vendor: 2,271 bytes, lines 1-6
1/*! 2 * Bootstrap v5.2.0-beta1 (https://getbootstrap.com/) 3 * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 4 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 5 */ 6!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},r=e=>{e.dispatchEvent(new Event(t))},s=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),o=t=>s(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,a=t=>{if(!s(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},l=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),h=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?h(t.parentNode):null},c=()=>{},d=t=>{t.offsetHeight},p=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,u=[],f=()=>"rtl"===document.documentElement.dir,m=t=>{var e;e=()=>{const e=p();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?(u.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of u)t()})),u.push(e)):e()},g=t=>{"function"==typeof t&&t()},v=(e,i,n=!0)=>
6{if(!n)return void g(e);const s=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),r=Number.parseFloat(i);return n||r?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(i)+5;let o=!1;const a=({target:n})=>{n===i&&(o=!0,i.removeEventListener(t,a),g(e))};i.addEventListener(t,a),setTimeout((()=>{o||r(i)}),s)},y=(t,e,i,n)=>{const r=t.length;let s=t.indexOf(e);return-1===s?!i&&n?t[r-1]:t[0]:(s+=i?1:-1,n&&(s=(s+r)%r),t[Math.max(0,Math.min(s,r-1))])},b=/[^.]*(?=\..*)\.|.*/,_=/\..*/,w=/::\d+$/,x={};let S=1;const E={mouseenter:"mouseover",mouseleave:"mouseout"},C=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function T(t,e){return e&&`${e}::${S++}`||t.uidEvent||S++}function k(t){const e=T(t);return t.uidEvent=e,x[e]=x[e]||{},x[e]}function P(t,e,i=null){return Object.values(t).find((t=>t.originalHandler===e&&t.delegationSelector===i))}function A(t,e,i){const n="string"==typeof e,r=n?i:e;let s=O(t);return C.has(s)||(s=t),[n,r,s]}function M(t,e,i,n,r){if("string"!=typeof e||!t)return;if(i||(i=n,n=null),e in 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,o,a]=A(e,i,n),l=k(t),h=l[a]||(l[a]={}),c=P(h,o,s?i:null);if(c)return void(c.oneOff=c.oneOff&&r);const d=T(o,e.replace(b,"")),p=s?function(t,e,i){return function n(r){const s=t.querySelectorAll(e);for(let{target:o}=r;o&&o!==this;o=o.parentNode)for(const a of s)if(a===o)return r.delegateTarget=o,n.oneOff&&L.off(t,r.type,e,i),i.apply(o,[r])}}(t,i,n):function(t,e){return function i(n){return n.delegateTarget=t,i.oneOff&&L.off(t,n.type,e),e.apply(t,[n])}}(t,i);p.delegationSelector=s?i:null,p.originalHandler=o,p.oneOff=r,p.uidEvent=d,h[d]=p,t.addEventListener(a,p,s)}function D(t,e,i,n,r){const s=P(e[i],n,r);s&&(t.removeEventListener(i,s,Boolean(r)),delete e[i][s.uidEvent])}function I(t,e,i,n){const r=e[i]||{};for(const s of Object.keys(r))if(s.includes(n)){const n=r[s];D(t,e,i,n.originalHandler,n.delegationSelector)}}function O(t){return t=t.replace(_,""),E[t]||t}const L={on(t,e,i,n){M(t,e,i,n,!1)},one(t,e,i,n){M(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[r,s,o]=A(e,i,n),a=o!==e,l=k(t),h=e.startsWith(".");if(void 0!==s){if(!l||!l[o])return;return void D(t,l,o,s,r?i:null)}if(h)for(const i of Object.keys(l))I(t,l,i,e.slice(1));const c=l[o]||{};for(const i of Object.keys(c)){const n=i.replace(w,"");if(!a||e.includes(n)){const e=c[i];D(t,l,o,e.originalHandler,e.delegationSelector)}}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=p();let r=null,s=!0,o=!0,a=!1;e!==O(e)&&n&&(r=n.Event(e,i),n(t).trigger(r),s=!r.isPropagationStopped(),o=!r.isImmediatePropagationStopped(),a=r.isDefaultPrevented());const l=new Event(e,{bubbles:s,cancelable:!0});if(void 0!==i)for(const t of Object.keys(i))Object.defineProperty(l,t,{get:()=>i[t]});return a&&l.preventDefault(),o&&t.dispatchEvent(l),l.defaultPrevented&&r&&r.preventDefault(),l}},F=new Map,R={set(t,e,i){F.has(t)||F.set(t,new Map);const n=F.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)=>F.has(t)&&F.get(t).get(e)||null,remove(t,e){if(!F.has(t))return;const i=F.get(t);i.delete(e),0===i.size&&F.delete(t)}};function z(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function $(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const B={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${$(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${$(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=z(t.dataset[n])}return e},getDataAttribute:(t,e)=>z(t.getAttribute(`data-bs-${$(e)}`))};class N{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=s(e)?B.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...s(e)?B.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const n of Object.keys(e)){const r=e[n],o=t[n],a=s(o)?"element":null==(i=o)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${r}".`)}var i}}class j extends N{constructor(t,e){super(),(t=o(t))&&(this._element=t,this._config=this._getConfig(e),R.set(this._element,this.constructor.DATA_KEY,this))}dispose(){R.remove(this._element,this.constructor.DATA_KEY),L.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){v(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return R.get(o(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.2.0-beta1"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const G=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;
6L.on(document,i,`[data-bs-dismiss="${r}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),l(this))return;const s=n(this)||this.closest(`.${r}`);t.getOrCreateInstance(s)[e]()}))};class V extends j{static get NAME(){return"alert"}close(){if(L.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(),L.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=V.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)}}))}}G(V,"close"),m(V);const H='[data-bs-toggle="button"]';class q extends j{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=q.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}L.on(document,"click.bs.button.data-api",H,(t=>{t.preventDefault();const e=t.target.closest(H);q.getOrCreateInstance(e).toggle()})),m(q);const X={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!l(t)&&a(t)))}},W={leftCallback:null,rightCallback:null,endCallback:null},Y={leftCallback:"(function|null)",rightCallback:"(function|null)",endCallback:"(function|null)"};class U extends N{constructor(t,e){super(),this._element=t,t&&U.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return W}static get DefaultType(){return Y}static get NAME(){return"swipe"}dispose(){L.off(this._element,".bs.swipe")}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),g(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&g(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(L.on(this._element,"pointerdown.bs.swipe",(t=>this._start(t))),L.on(this._element,"pointerup.bs.swipe",(t=>this._end(t))),this._element.classList.add("pointer-event")):(L.on(this._element,"touchstart.bs.swipe",(t=>this._start(t))),L.on(this._element,"touchmove.bs.swipe",(t=>this._move(t))),L.on(this._element,"touchend.bs.swipe",(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const K="next",Z="prev",Q="left",J="right",tt="slid.bs.carousel",et="carousel",it="active",nt={ArrowLeft:J,ArrowRight:Q},rt={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},st={interval:"(number|boolean)",keyboard:"boolean",ride:"(boolean|string)",pause:"(string|boolean)",touch:"boolean",wrap:"boolean"};class ot extends j{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=X.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===et&&this.cycle()}static get Default(){return rt}static get DefaultType(){return st}static get NAME(){return"carousel"}next(){this._slide(K)}nextWhenVisible(){!document.hidden&&a(this._element)&&this.next()}prev(){this._slide(Z)}pause(){this._isSliding&&r(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?L.one(this._element,tt,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void L.one(this._element,tt,(()=>this.to(t)));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?K:Z;this._slide(n,e[t])}
6dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&L.on(this._element,"keydown.bs.carousel",(t=>this._keydown(t))),"hover"===this._config.pause&&(L.on(this._element,"mouseenter.bs.carousel",(()=>this.pause())),L.on(this._element,"mouseleave.bs.carousel",(()=>this._maybeEnableCycle()))),this._config.touch&&U.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of X.find(".carousel-item img",this._element))L.on(t,"dragstart.bs.carousel",(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(Q)),rightCallback:()=>this._slide(this._directionToOrder(J)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new U(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=nt[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=X.findOne(".active",this._indicatorsElement);e.classList.remove(it),e.removeAttribute("aria-current");const i=X.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(it),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),n=t===K,r=e||y(this._getItems(),i,n,this._config.wrap);if(r===i)return;const s=this._getItemIndex(r),o=e=>L.trigger(this._element,e,{relatedTarget:r,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:s});if(o("slide.bs.carousel").defaultPrevented)return;if(!i||!r)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=r;const l=n?"carousel-item-start":"carousel-item-end",h=n?"carousel-item-next":"carousel-item-prev";r.classList.add(h),d(r),i.classList.add(l),r.classList.add(l),this._queueCallback((()=>{r.classList.remove(l,h),r.classList.add(it),i.classList.remove(it,h,l),this._isSliding=!1,o(tt)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return X.findOne(".active.carousel-item",this._element)}_getItems(){return X.find(".carousel-item",this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return f()?t===Q?Z:K:t===Q?K:Z}_orderToDirection(t){return f()?t===Z?Q:J:t===Z?J:Q}static jQueryInterface(t){return this.each((function(){const e=ot.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}L.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",(function(t){const e=n(this);if(!e||!e.classList.contains(et))return;t.preventDefault();const i=ot.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");return r?(i.to(r),void i._maybeEnableCycle()):"next"===B.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),L.on(window,"load.bs.carousel.data-api",(()=>{const t=X.find('[data-bs-ride="carousel"]');for(const e of t)ot.getOrCreateInstance(e)})),m(ot);const at="show",lt="collapse",ht="collapsing",ct='[data-bs-toggle="collapse"]',dt={toggle:!0,parent:null},pt={toggle:"boolean",parent:"(null|element)"};class ut extends j{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=X.find(ct);for(const t of n){const e=i(t),n=X.find(e).filter((t=>t===this._element));null!==e&&n.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return dt}static get DefaultType(){return pt}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>ut.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(L.trigger(this._element,"show.bs.collapse").defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(lt),this._element.classList.add(ht),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ht),this._element.classList.add(lt,at),this._element.style[e]="",L.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}
6hide(){if(this._isTransitioning||!this._isShown())return;if(L.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,d(this._element),this._element.classList.add(ht),this._element.classList.remove(lt,at);for(const t of this._triggerArray){const e=n(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ht),this._element.classList.add(lt),L.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(at)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=o(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(ct);for(const e of t){const t=n(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=X.find(":scope .collapse .collapse",this._config.parent);return X.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const i=ut.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}L.on(document,"click.bs.collapse.data-api",ct,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=i(this),n=X.find(e);for(const t of n)ut.getOrCreateInstance(t,{toggle:!1}).toggle()})),m(ut);var ft="top",mt="bottom",gt="right",vt="left",yt="auto",bt=[ft,mt,gt,vt],_t="start",wt="end",xt="clippingParents",St="viewport",Et="popper",Ct="reference",Tt=bt.reduce((function(t,e){return t.concat([e+"-"+_t,e+"-"+wt])}),[]),kt=[].concat(bt,[yt]).reduce((function(t,e){return t.concat([e,e+"-"+_t,e+"-"+wt])}),[]),Pt="beforeRead",At="read",Mt="afterRead",Dt="beforeMain",It="main",Ot="afterMain",Lt="beforeWrite",Ft="write",$t="afterWrite",Rt=[Pt,At,Mt,Dt,It,Ot,Lt,Ft,$t];function zt(t){return t?(t.nodeName||"").toLowerCase():null}function Bt(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 Bt(t).Element||t instanceof Element}function jt(t){return t instanceof Bt(t).HTMLElement||t instanceof HTMLElement}function Gt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Bt(t).ShadowRoot||t instanceof ShadowRoot)}const Vt={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]||{},r=e.elements[t];jt(r)&&zt(r)&&(Object.assign(r.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?r.removeAttribute(t):r.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],r=e.attributes[t]||{},s=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});jt(n)&&zt(n)&&(Object.assign(n.style,s),Object.keys(r).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};function Ht(t){return t.split("-")[0]}var qt=Math.max,Xt=Math.min,Wt=Math.round;function Yt(t,e){void 0===e&&(e=!1);var i=t.getBoundingClientRect(),n=1,r=1;if(jt(t)&&e){var s=t.offsetHeight,o=t.offsetWidth;o>0&&(n=Wt(i.width)/o||1),s>0&&(r=Wt(i.height)/s||1)}return{width:i.width/n,height:i.height/r,top:i.top/r,right:i.right/n,bottom:i.bottom/r,left:i.left/n,x:i.left/n,y:i.top/r}}function Ut(t){var e=Yt(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 Kt(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;
vendor: 4,115 bytes, line 6
6if(i&&Gt(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Zt(t){return Bt(t).getComputedStyle(t)}function Qt(t){return["table","td","th"].indexOf(zt(t))>=0}function Jt(t){return((Nt(t)?t.ownerDocument:t.document)||window.document).documentElement}function te(t){return"html"===zt(t)?t:t.assignedSlot||t.parentNode||(Gt(t)?t.host:null)||Jt(t)}function ee(t){return jt(t)&&"fixed"!==Zt(t).position?t.offsetParent:null}function ie(t){for(var e=Bt(t),i=ee(t);i&&Qt(i)&&"static"===Zt(i).position;)i=ee(i);return i&&("html"===zt(i)||"body"===zt(i)&&"static"===Zt(i).position)?e:i||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&jt(t)&&"fixed"===Zt(t).position)return null;var i=te(t);for(Gt(i)&&(i=i.host);jt(i)&&["html","body"].indexOf(zt(i))<0;){var n=Zt(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 ne(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function re(t,e,i){return qt(t,Xt(e,i))}function se(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 ae={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,r=t.options,s=i.elements.arrow,o=i.modifiersData.popperOffsets,a=Ht(i.placement),l=ne(a),h=[vt,gt].indexOf(a)>=0?"height":"width";if(s&&o){var c=function(t,e){return se("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:oe(t,bt))}(r.padding,i),d=Ut(s),p="y"===l?ft:vt,u="y"===l?mt:gt,f=i.rects.reference[h]+i.rects.reference[l]-o[l]-i.rects.popper[h],m=o[l]-i.rects.reference[l],g=ie(s),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,b=c[p],_=v-d[h]-c[u],w=v/2-d[h]/2+y,x=re(b,w,_),S=l;i.modifiersData[n]=((e={})[S]=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)))&&Kt(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function le(t){return t.split("-")[1]}var he={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ce(t){var e,i=t.popper,n=t.popperRect,r=t.placement,s=t.variation,o=t.offsets,a=t.position,l=t.gpuAcceleration,h=t.adaptive,c=t.roundOffsets,d=t.isFixed,p=o.x,u=void 0===p?0:p,f=o.y,m=void 0===f?0:f,g="function"==typeof c?c({x:u,y:m}):{x:u,y:m};u=g.x,m=g.y;var v=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),b=vt,_=ft,w=window;if(h){var x=ie(i),S="clientHeight",E="clientWidth";x===Bt(i)&&"static"!==Zt(x=Jt(i)).position&&"absolute"===a&&(S="scrollHeight",E="scrollWidth"),(r===ft||(r===vt||r===gt)&&s===wt)&&(_=mt,m-=(d&&x===w&&w.visualViewport?w.visualViewport.height:x[S])-n.height,m*=l?1:-1),r!==vt&&(r!==ft&&r!==mt||s!==wt)||(b=gt,u-=(d&&x===w&&w.visualViewport?w.visualViewport.width:x[E])-n.width,u*=l?1:-1)}var C,T=Object.assign({position:a},h&&he),k=!0===c?function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Wt(e*n)/n||0,y:Wt(i*n)/n||0}}({x:u,y:m}):{x:u,y:m};return u=k.x,m=k.y,l?Object.assign({},T,((C={})[_]=y?"0":"",C[b]=v?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+u+"px, "+m+"px)":"translate3d("+u+"px, "+m+"px, 0)",C)):Object.assign({},T,((e={})[_]=y?m+"px":"",e[b]=v?u+"px":"",e.transform="",e))}const de={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,r=void 0===n||n,s=i.adaptive,o=void 0===s||s,a=i.roundOffsets,l=void 0===a||a,h={placement:Ht(e.placement),variation:le(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ce(Object.assign({},h,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roun
vendor: 1,861 bytes, line 6
6dOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ce(Object.assign({},h,{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 pe={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,r=n.scroll,s=void 0===r||r,o=n.resize,a=void 0===o||o,l=Bt(e.elements.popper),h=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&h.forEach((function(t){t.addEventListener("scroll",i.update,pe)})),a&&l.addEventListener("resize",i.update,pe),function(){s&&h.forEach((function(t){t.removeEventListener("scroll",i.update,pe)})),a&&l.removeEventListener("resize",i.update,pe)}},data:{}};var fe={left:"right",right:"left",bottom:"top",top:"bottom"};function me(t){return t.replace(/left|right|bottom|top/g,(function(t){return fe[t]}))}var ge={start:"end",end:"start"};function ve(t){return t.replace(/start|end/g,(function(t){return ge[t]}))}function ye(t){var e=Bt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function be(t){return Yt(Jt(t)).left+ye(t).scrollLeft}function _e(t){var e=Zt(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function we(t){return["html","body","#document"].indexOf(zt(t))>=0?t.ownerDocument.body:jt(t)&&_e(t)?t:we(te(t))}function xe(t,e){var i;void 0===e&&(e=[]);var n=we(t),r=n===(null==(i=t.ownerDocument)?void 0:i.body),s=Bt(n),o=r?[s].concat(s.visualViewport||[],_e(n)?n:[]):n,a=e.concat(o);return r?a:a.concat(xe(te(o)))}function Se(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ee(t,e){return e===St?Se(function(t){var e=Bt(t),i=Jt(t),n=e.visualVie
vendor: 1,516 bytes, line 6
6wport,r=i.clientWidth,s=i.clientHeight,o=0,a=0;return n&&(r=n.width,s=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,a=n.offsetTop)),{width:r,height:s,x:o+be(t),y:a}}(t)):Nt(e)?function(t){var e=Yt(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):Se(function(t){var e,i=Jt(t),n=ye(t),r=null==(e=t.ownerDocument)?void 0:e.body,s=qt(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=qt(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+be(t),l=-n.scrollTop;return"rtl"===Zt(r||i).direction&&(a+=qt(i.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}(Jt(t)))}function Ce(t){var e,i=t.reference,n=t.element,r=t.placement,s=r?Ht(r):null,o=r?le(r):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(s){case ft:e={x:a,y:i.y-n.height};break;case mt:e={x:a,y:i.y+i.height};break;case gt:e={x:i.x+i.width,y:l};break;case vt:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var h=s?ne(s):null;if(null!=h){var c="y"===h?"height":"width";switch(o){case _t:e[h]=e[h]-(i[c]/2-n[c]/2);break;case wt:e[h]=e[h]+(i[c]/2-n[c]/2)}}return e}function Te(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=void 0===n?t.placement:n,s=i.boundary,o=void 0===s?xt:s,a=i.rootBoundary,l=void 0===a?St:a,h=i.elementContext,c=void 0===h?Et:h,d=i.altBoundary,p=void 0!==d&&d,u=i.padding,f
vendor: 6,021 bytes, lines 6-7
6=void 0===u?0:u,m=se("number"!=typeof f?f:oe(f,bt)),g=c===Et?Ct:Et,v=t.rects.popper,y=t.elements[p?g:c],b=function(t,e,i){var n="clippingParents"===e?function(t){var e=xe(te(t)),i=["absolute","fixed"].indexOf(Zt(t).position)>=0&&jt(t)?ie(t):t;return Nt(i)?e.filter((function(t){return Nt(t)&&Kt(t,i)&&"body"!==zt(t)})):[]}(t):[].concat(e),r=[].concat(n,[i]),s=r[0],o=r.reduce((function(e,i){var n=Ee(t,i);return e.top=qt(n.top,e.top),e.right=Xt(n.right,e.right),e.bottom=Xt(n.bottom,e.bottom),e.left=qt(n.left,e.left),e}),Ee(t,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(Nt(y)?y:y.contextElement||Jt(t.elements.popper),o,l),_=Yt(t.elements.reference),w=Ce({reference:_,element:v,strategy:"absolute",placement:r}),x=Se(Object.assign({},v,w)),S=c===Et?x:_,E={top:b.top-S.top+m.top,bottom:S.bottom-b.bottom+m.bottom,left:b.left-S.left+m.left,right:S.right-b.right+m.right},C=t.modifiersData.offset;if(c===Et&&C){var T=C[r];Object.keys(E).forEach((function(t){var e=[gt,mt].indexOf(t)>=0?1:-1,i=[ft,mt].indexOf(t)>=0?"y":"x";E[t]+=T[i]*e}))}return E}const ke={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){ 7for(var r=i.mainAxis,s=void 0===r||r,o=i.altAxis,a=void 0===o||o,l=i.fallbackPlacements,h=i.padding,c=i.boundary,d=i.rootBoundary,p=i.altBoundary,u=i.flipVariations,f=void 0===u||u,m=i.allowedAutoPlacements,g=e.options.placement,v=Ht(g),y=l||(v!==g&&f?function(t){if(Ht(t)===yt)return[];var e=me(t);return[ve(t),e,ve(e)]}(g):[me(g)]),b=[g].concat(y).reduce((function(t,i){return t.concat(Ht(i)===yt?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=i.boundary,s=i.rootBoundary,o=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,h=void 0===l?kt:l,c=le(n),d=c?a?Tt:Tt.filter((function(t){return le(t)===c})):bt,p=d.filter((function(t){return h.indexOf(t)>=0}));0===p.length&&(p=d);var u=p.reduce((function(e,i){return e[i]=Te(t,{placement:i,boundary:r,rootBoundary:s,padding:o})[Ht(i)],e}),{});return Object.keys(u).sort((function(t,e){return u[t]-u[e]}))}(e,{placement:i,boundary:c,rootBoundary:d,padding:h,flipVariations:f,allowedAutoPlacements:m}):i)}),[]),_=e.rects.reference,w=e.rects.popper,x=new Map,S=!0,E=b[0],C=0;C<b.length;C++){var T=b[C],k=Ht(T),P=le(T)===_t,A=[ft,mt].indexOf(k)>=0,M=A?"width":"height",D=Te(e,{placement:T,boundary:c,rootBoundary:d,altBoundary:p,padding:h}),I=A?P?gt:vt:P?mt:ft;_[M]>w[M]&&(I=me(I));var O=me(I),L=[];if(s&&L.push(D[k]<=0),a&&L.push(D[I]<=0,D[O]<=0),L.every((function(t){return t}))){E=T,S=!1;break}x.set(T,L)}if(S)for(var F=function(t){var e=b.find((function(e){var i=x.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return E=e,"break"},R=f?3:1;R>0&&"break"!==F(R);R--);e.placement!==E&&(e.modifiersData[n]._skip=!0,e.placement=E,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Pe(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 Ae(t){return[ft,gt,mt,vt].some((function(e){return t[e]>=0}))}const Me={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,r=e.rects.popper,s=e.modifiersData.preventOverflow,o=Te(e,{elementContext:"reference"}),a=Te(e,{altBoundary:!0}),l=Pe(o,n),h=Pe(a,r,s),c=Ae(l),d=Ae(h);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:h,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},De={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,r=i.offset,s=void 0===r?[0,0]:r,o=kt.reduce((function(t,i){return t[i]=function(t,e,i){var n=Ht(t),r=[vt,ft].indexOf(n)>=0?-1:1,s="function"==typeof i?i(Object.assign({},e,{placement:t})):i,o=s[0],a=s[1];return o=o||0,a=(a||0)*r,[vt,gt].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}(i,e.rects,s),t}),{}),a=o[e.placement],l=a.x,h=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=h),e.modifiersData[n]=o}},Ie={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Ce({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,r=i.mainAxis,s=void 0===r||r,o=i.altAxis,a=void 0!==o&&o,l=i.boundary,h=i.rootBoundary,c=i.altBoundary,d=i.padding,p=i.tether,u=void 0===p||p,f=i.tetherOffset,m=void 0===f?0:f,g=Te(e,{boundary:l,rootBoundary:h,padding:d,altBoundary:c}),v=Ht(e.placement),y=le(e.placement),b=!y,_=ne(v),w="x"===_?"y":"x",x=e.modifiersData.popperOffsets,S=e.rects.reference,E=e.rects.popper,C="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,T="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),k=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(x){if(s){var A,M="y"===_?ft:vt,D="y"===_?mt:gt,I="y"===_?"height":"width",O=x[_],L=O+g[M],F=O-g[D],R=u?-E[I]/2:0,z=y===_t?S[I]:E[I],$=y===_t?-E[I]:-S[I],B=e.elements.arrow,N=u&&B?Ut(B):{width:0,height:0},j=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},G=j[M],V=j[D],H=re(0,S[I],N[I]),q=b?S[I]/2-R-H-G-T.mainAxis:z-H-G-T.mainAxis,X=b?-S[I]/2+R+H+V+T.mainAxis:$+H+V+T.mainAxis,W=e.elements.arrow&&ie(e.elements.arrow),Y=W?"y"===_?W.clientTop||0:W.clientLeft||0:0,U=null!=(A=null==k?void 0:k[_])?A:0,K=O+X-U,Z=re(u?Xt(L,O+q-U-Y):L,O,u?qt(F,K):F);x[_]=Z,P[_]=Z-O}if(a){var Q,J="x"===_?ft:vt,tt="x"===_?mt:gt,et=x[w],it="y"===w?"height":"width",nt=et+g[J],rt=et-g[tt],st=-1!==[ft,vt].indexOf(v),ot=null!=(Q=null==k?void 0:k[w])?Q:0,at=st?nt:et-S[it]-E[it]-ot+T.altAxis,lt=st?et+S[it]+E[it]-ot-T.altAxis:rt,ht=u&&st?function(t,e,
vendor: 4,221 bytes, line 7
7i){var n=re(t,e,i);return n>i?i:n}(at,et,lt):re(u?at:nt,et,u?lt:rt);x[w]=ht,P[w]=ht-et}e.modifiersData[n]=P}},requiresIfExists:["offset"]};function Le(t,e,i){void 0===i&&(i=!1);var n,r,s=jt(e),o=jt(e)&&function(t){var e=t.getBoundingClientRect(),i=Wt(e.width)/t.offsetWidth||1,n=Wt(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=Jt(e),l=Yt(t,o),h={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!i)&&(("body"!==zt(e)||_e(a))&&(h=(n=e)!==Bt(n)&&jt(n)?{scrollLeft:(r=n).scrollLeft,scrollTop:r.scrollTop}:ye(n)),jt(e)?((c=Yt(e,!0)).x+=e.clientLeft,c.y+=e.clientTop):a&&(c.x=be(a))),{x:l.left+h.scrollLeft-c.x,y:l.top+h.scrollTop-c.y,width:l.width,height:l.height}}function Fe(t){var e=new Map,i=new Set,n=[];function r(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&r(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||r(t)})),n}var $e={placement:"bottom",modifiers:[],strategy:"absolute"};function Re(){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 ze(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,r=e.defaultOptions,s=void 0===r?$e:r;return function(t,e,i){void 0===i&&(i=s);var r,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},$e,s),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],h=!1,c={state:a,setOptions:function(i){var r="function"==typeof i?i(a.options):i;d(),a.options=Object.assign({},s,a.options,r),a.scrollParents={reference:Nt(t)?xe(t):t.contextElement?xe(t.contextElement):[],popper:xe(e)};var o,h,p=function(t){var e=Fe(t);return Rt.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}((o=[].concat(n,a.options.modifiers),h=o.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(h).map((function(t){return h[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,r=t.effect;if("function"==typeof r){var s=r({state:a,name:e,instance:c,options:n});l.push(s||function(){})}})),c.update()},forceUpdate:function(){if(!h){var t=a.elements,e=t.reference,i=t.popper;if(Re(e,i)){a.rects={reference:Le(e,ie(i),"fixed"===a.options.strategy),popper:Ut(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 r=a.orderedModifiers[n],s=r.fn,o=r.options,l=void 0===o?{}:o,d=r.name;"function"==typeof s&&(a=s({state:a,options:l,name:d,instance:c})||a)}else a.reset=!1,n=-1}}},update:(r=function(){return new Promise((function(t){c.forceUpdate(),t(a)}))},function(){return o||(o=new Promise((function(t){Promise.resolve().then((function(){o=void 0,t(r())}))}))),o}),destroy:function(){d(),h=!0}};if(!Re(t,e))return c;function d(){l.forEach((function(t){return t()})),l=[]}return c.setOptions(i).then((function(t){!h&&i.onFirstUpdate&&i.onFirstUpdate(t)})),c}}var Be=ze(),Ne=ze({defaultModifiers:[ue,Ie,de,Vt]}),je=ze({defaultModifiers:[ue,Ie,de,Vt,De,ke,Oe,ae,Me]});const Ge=Object.freeze(Object.defineProperty({__proto__:null,popperGenerator:ze,detectOverflow:Te,createPopperBase:Be,createPopper:je,createPopperLite:Ne,top:ft,bottom:mt,right:gt,left:vt,auto:yt,basePlacements:bt,start:_t,end:wt,clippingParents:xt,viewport:St,popper:Et,reference:Ct,variationPlacements:Tt,placements:kt,beforeRead:Pt,read:At,afterRead:Mt,beforeMain:Dt,main:It,afterMain:Ot,beforeWrite:Lt,write:Ft,afterWrite:$t,modifierPhases:Rt,applyStyles:Vt,arrow:ae,computeStyles:de,eventListeners:ue,flip:ke,hide:Me,offset:De,popperOffsets:Ie,preventOverflow:Oe},Symbol.toStringTag,{value:"Module"})),Ve="dropdown",He="ArrowUp",qe="ArrowDown",Xe="click.bs.dropdown.data-api",We="keydown.bs.dropdown.data-api",Ye="show",Ue='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ke=`${Ue}
7.show`,Ze=".dropdown-menu",Qe=f()?"top-end":"top-start",Je=f()?"top-start":"top-end",ti=f()?"bottom-end":"bottom-start",ei=f()?"bottom-start":"bottom-end",ii=f()?"left-start":"right-start",ni=f()?"right-start":"left-start",ri={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},si={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class oi extends j{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=X.findOne(Ze,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ri}static get DefaultType(){return si}static get NAME(){return Ve}toggle(){return this._isShown()?this.hide():this.show()}show(){if(l(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!L.trigger(this._element,"show.bs.dropdown",t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".
7navbar-nav"))for(const t of[].concat(...document.body.children))L.on(t,"mouseover",c);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ye),this._element.classList.add(Ye),L.trigger(this._element,"shown.bs.dropdown",t)}}hide(){if(l(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!L.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))L.off(t,"mouseover",c);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ye),this._element.classList.remove(Ye),this._element.setAttribute("aria-expanded","false"),B.removeDataAttribute(this._menu,"popper"),L.trigger(this._element,"hidden.bs.dropdown",t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!s(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Ve.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===Ge)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:s(this._config.reference)?t=o(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=je(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Ye)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return ii;if(t.classList.contains("dropstart"))return ni;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Je:Qe:e?ei:ti}
7_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(B.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const i=X.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>a(t)));i.length&&y(i,e,t===qe,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=oi.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(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=X.find(Ke);for(const i of e){const e=oi.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),r=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!r||"outside"===e._config.autoClose&&r)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const s={relatedTarget:e._element};"click"===t.type&&(s.clickEvent=t),e._completeHide(s)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,n=[He,qe].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const r=X.findOne(Ue,t.delegateTarget.parentNode),s=oi.getOrCreateInstance(r);if(n)return t.stopPropagation(),s.show(),void s._selectMenuItem(t);s._isShown()&&(t.stopPropagation(),s.hide(),r.focus())}}L.on(document,We,Ue,oi.dataApiKeydownHandler),L.on(document,We,Ze,oi.dataApiKeydownHandler),L.on(document,Xe,oi.clearMenus),L.on(document,"keyup.bs.dropdown.data-api",oi.clearMenus),L.on(document,Xe,Ue,(function(t){t.preventDefault(),oi.getOrCreateInstance(this).toggle()})),m(oi);const ai=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",li=".sticky-top",hi="padding-right",ci="margin-right";class di{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,hi,(e=>e+t)),this._setElementAttributes(ai,hi,(e=>e+t)),this._setElementAttributes(li,ci,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,hi),this._resetElementAttributes(ai,hi),this._resetElementAttributes(li,ci)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const r=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(r))}px`)}))}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&B.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=B.getDataAttribute(t,e);null!==i?(B.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(s(t))e(t);else for(const i of X.find(t,this._element))e(i)}}const pi="show",ui="mousedown.bs.backdrop",fi={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},mi={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"};class gi extends N{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return fi}static get DefaultType(){return mi}static get NAME(){return"backdrop"}show(t){if(!this._config.isVisible)return void g(t);this._append();const e=this._getElement();this._config.isAnimated&&d(e),e.classList.add(pi),this._emulateAnimation((()=>{g(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(pi),this._emulateAnimation((()=>{this.dispose(),g(t)}))):g(t)}dispose(){this._isAppended&&(L.off(this._element,ui),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=o(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),L.on(t,ui,(()=>{g(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){v(t,this._getElement(),this._config.isAnimated)}}const vi=".bs.focustrap",yi="backward",bi={trapElement:null,autofocus:!0},_i={trapElement:"element",autofocus:"boolean"};class wi extends N{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return bi}static get DefaultType(){return _i}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),L.off(document,vi),L.on(document,"focusin.bs.focustrap",(t=>this._handleFocusin(t))),L.on(document,"keydown.tab.bs.focustrap",(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,L.off(document,vi))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=X.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===yi?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?yi:"forward")}}const xi="hidden.bs.modal",Si="show.bs.modal",Ei="modal-open",Ci="show",Ti="modal-static",ki={backdrop:!0,keyboard:!0,focus:!0},Pi={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"};class Ai extends j{constructor(t,e){super(t,e),this._dialog=X.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new di,this._addEventListeners()}static get Default(){return ki}static get DefaultType(){return Pi}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||L.trigger(this._element,Si,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ei),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(L.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ci),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){for(const t of[window,this._dialog])L.off(t,".bs.modal");this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new gi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new wi({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=X.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),d(this._element),this._element.classList.add(Ci),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,L.trigger(this._element,"shown.bs.modal",{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){L.on(this._element,"keydown.dismiss.bs.modal",(t=>{if("Escape"===t.key)return this._config.keyboard?(t.preventDefault(),void this.hide()):void this._triggerBackdropTransition()})),L.on(window,"resize.bs.modal",(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),L.on(this._element,"click.dismiss.bs.modal",(t=>{t.target===t.currentTarget&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(Ei),this._resetAdjustments(),this._scrollBar.reset(),L.trigger(this._element,xi)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(L.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(Ti)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Ti),this._queueCallback((()=>{this._element.classList.remove(Ti),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=f()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=f()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=Ai.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method n
7amed "${t}"`);i[t](e)}}))}}L.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=n(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),L.one(e,Si,(t=>{t.defaultPrevented||L.one(e,xi,(()=>{a(this)&&this.focus()}))}));const i=X.findOne(".modal.show");i&&Ai.getInstance(i).hide(),Ai.getOrCreateInstance(e).toggle(this)})),G(Ai),m(Ai);const Mi="show",Di="showing",Ii="hiding",Oi=".offcanvas.show",Li="hidePrevented.bs.offcanvas",Fi="hidden.bs.offcanvas",$i={backdrop:!0,keyboard:!0,scroll:!1},Ri={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class zi extends j{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return $i}static get DefaultType(){return Ri}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||L.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new di).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Di),this._queueCallback((()=>{this._config.scroll||this._focustrap.activate(),this._element.classList.add(Mi),this._element.classList.remove(Di),L.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(L.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ii),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(Mi,Ii),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new di).reset(),L.trigger(this._element,Fi)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new gi({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():L.trigger(this._element,Li)}:null})}_initializeFocusTrap(){return new wi({trapElement:this._element})}_addEventListeners(){L.on(this._element,"keydown.dismiss.bs.offcanvas",(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():L.trigger(this._element,Li))}))}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)}}))}}L.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(),l(this))return;L.one(e,Fi,(()=>{a(this)&&this.focus()}));const i=X.findOne(Oi);i&&i!==e&&zi.getInstance(i).hide(),zi.getOrCreateInstance(e).toggle(this)})),L.on(window,"load.bs.offcanvas.data-api",(()=>{for(const t of X.find(Oi))zi.getOrCreateInstance(t).show()})),L.on(window,"resize.bs.offcanvas",(()=>{for(const t of X.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&zi.getOrCreateInstance(t).hide()})),G(zi),m(zi);const Bi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ni=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,ji=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Gi=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!Bi.has(i)||Boolean(Ni.test(t.nodeValue)||ji.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))},Vi={"*":["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:[]},Hi={extraClass:"",template:"<div></div>",content:{},html:!1,sanitize:!0,sanitizeFn:null,allowList:Vi},qi={extraClass:"(string|function)",template:"string",content:"object",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object"},Xi={selector:"(string|element)",entry:"(string|element|function|null)"};class Wi extends N{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Hi}static get DefaultType(){return qi}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>
vendor: 4,222 bytes, line 7
7this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},Xi)}_setContent(t,e,i){const n=X.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?s(e)?this._putElementInTemplate(o(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),r=[].concat(...n.body.querySelectorAll("*"));for(const t of r){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),r=[].concat(e["*"]||[],e[i]||[]);for(const e of n)Gi(e,r)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return"function"==typeof t?t(this):t}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const Yi=new Set(["sanitize","allowList","sanitizeFn"]),Ui="fade",Ki="show",Zi=".modal",Qi="hide.bs.modal",Ji="hover",tn="focus",en={AUTO:"auto",TOP:"top",RIGHT:f()?"left":"right",BOTTOM:"bottom",LEFT:f()?"right":"left"},nn={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:Vi,popperConfig:null},rn={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)"};class sn extends j{constructor(t,e){if(void 0===Ge)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=!1,this._activeTrigger={},this._popper=null,this._templateFactory=null,this.tip=null,this._setListeners()}static get Default(){return nn}static get DefaultType(){return rn}static get NAME(){return"tooltip"}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);return e._activeTrigger.click=!e._activeTrigger.click,void(e._isWithActiveTrigger()?e._enter():e._leave())}this._isShown()?this._leave():this._enter()}}dispose(){clearTimeout(this._timeout),L.off(this._element.closest(Zi),Qi,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=L.trigger(this._element,this.constructor.eventName("show")),e=(h(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),L.trigger(this._element,this.constructor.eventName("inserted"))),this._popper?this._popper.update(
7):this._createPopper(i),i.classList.add(Ki),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))L.on(t,"mouseover",c);this._queueCallback((()=>{const t=this._isHovered;this._isHovered=!1,L.trigger(this._element,this.constructor.eventName("shown")),t&&this._leave()}),this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(L.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;const t=this._getTipElement();if(t.classList.remove(Ki),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))L.off(t,"mouseover",c);this._activeTrigger.click=!1, 8this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this._isHovered=!1,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||t.remove(),this._element.removeAttribute("aria-describedby"),L.trigger(this._element,this.constructor.eventName("hidden")),this._disposePopper())}),this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Ui,Ki),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(Ui),e}setContent(t){let e=!1;this.tip&&(e=this._isShown(),this.tip.remove(),this.tip=null),this._disposePopper(),this.tip=this._createTipElement(t),e&&this.show()}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Wi({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._config.title}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ui)}_isShown(){return this.tip&&this.tip.classList.contains(Ki)}_createPopper(t){const e="function"==typeof this._config.placement?this._config.placement.call(this,t,this._element):this._config.placement,i=en[e.toUpperCase()];this._popper=je(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)L.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>this.toggle(t)));else if("manual"!==e){const t=e===Ji?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===Ji?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");L.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?tn:Ji]=!0,e._enter()})),L.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?tn:Ji]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},L.on(this._element.closest(Zi),Qi,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._config.originalTitle;t&&(this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=B.getDataAttributes(this._element);for(const t of Object.keys(e))Yi.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:o(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.originalTitle=this._element.getAttribute("title")||"",t.title=this._resolvePossibleFunction(t.title)||t.originalTitle,"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each((function(){const e=sn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
8amed "${t}"`);e[t]()}}))}}m(sn);const on={...sn.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>'},an={...sn.DefaultType,content:"(null|string|element|function)"};class ln extends sn{static get Default(){return on}static get DefaultType(){return an}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=ln.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}m(ln);const hn="click.bs.scrollspy",cn="active",dn="[href]",pn={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null},un={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element"};class fn extends j{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return pn}static get DefaultType(){return un}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=o(t.target)||document.body,t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(L.off(this._config.target,hn),L.on(this._config.target,hn,dn,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n});i.scrollTop=n}})))}_getNewObserver(){const t={root:this._rootElement,threshold:[.1,.5,1],rootMargin:this._getRootMargin()};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,r=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const s of t){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(s));continue}const t=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&t){if(i(s),!n)return}else r||t||i(s)}}_getRootMargin(){return this._config.offset?`${this._config.offset}px 0px -30%`:this._config.rootMargin}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=X.find(dn,this._config.target);for(const e of t){if(!e.hash||l(e))continue;const t=X.findOne(e.hash,this._element);a(t)&&(this._targetLinks.set(e.hash,e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(cn),this._activateParents(t),L.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))X.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(cn);else for(const e of X.parents(t,".nav, .list-group"))for(const t of X.prev(e,".nav-link, .nav-item > .nav-link, .list-group-item"))t.classList.add(cn)}_clearActiveClass(t){t.classList.remove(cn);const e=X.find("[href].active",t);for(const t of e)t.classList.remove(cn)}static jQueryInterface(t){return this.each((function(){const e=fn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
8amed "${t}"`);e[t]()}}))}}L.on(window,"load.bs.scrollspy.data-api",(()=>{for(const t of X.find('[data-bs-spy="scroll"]'))fn.getOrCreateInstance(t)})),m(fn);const mn="ArrowLeft",gn="ArrowRight",vn="ArrowUp",yn="ArrowDown",bn="active",_n="fade",wn="show",xn='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Sn=`.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), ${xn}`;class En extends j{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),L.on(this._element,"keydown.bs.tab",(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?L.trigger(e,"hide.bs.tab",{relatedTarget:t}):null;L.trigger(t,"show.bs.tab",{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(bn),this._activate(n(t));const i=t.classList.contains(_n);this._queueCallback((()=>{i&&t.classList.add(wn),"tab"===t.getAttribute("role")&&(t.focus(),t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),L.trigger(t,"shown.bs.tab",{relatedTarget:e}))}),t,i)}_deactivate(t,e){if(!t)return;t.classList.remove(bn),t.blur(),this._deactivate(n(t));const i=t.classList.contains(_n);this._queueCallback((()=>{i&&t.classList.remove(wn),"tab"===t.getAttribute("role")&&(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),L.trigger(t,"hidden.bs.tab",{relatedTarget:e}))}),t,i)}_keydown(t){if(![mn,gn,vn,yn].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=[gn,yn].includes(t.key),i=y(this._getChildren().filter((t=>!l(t))),t.target,e,!0);i&&En.getOrCreateInstance(i).show()}_getChildren(){return X.find(Sn,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=n(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`#${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const r=X.findOne(t,i);r&&r.classList.toggle(n,e)};n(".dropdown-toggle",bn),n(".dropdown-menu",wn),n(".dropdown-item",bn),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(bn)}_getInnerElement(t){return t.matches(Sn)?t:X.findOne(Sn,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=En.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}L.on(document,"click.bs.tab",xn,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),l(this)||En.getOrCreateInstance(this).show()})),L.on(window,"load.bs.tab",(()=>{for(const t of X.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))En.getOrCreateInstance(t)})),m(En);const Cn="hide",Tn="show",kn="showing",Pn={animation:"boolean",autohide:"boolean",delay:"number"},An={animation:!0,autohide:!0,delay:5e3};class Mn extends j{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return An}static get DefaultType(){return Pn}static get NAME(){return"toast"}show(){L.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Cn),d(this._element),this._element.classList.add(Tn,kn),this._queueCallback((()=>{this._element.classList.remove(kn),L.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(L.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(kn),this._queueCallback((()=>{this._element.classList.add(Cn),this._element.classList.remove(kn,Tn),L.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Tn),super.dispose()}isShown(){return this._element.classList.contains(Tn)}_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(){L.on(this._element,"mouseover.bs.toast",(t=>this._onInteraction(t,!0))),L.on(this._element,"mouseout.bs.toast",(t=>this._onInteraction(t,!1))),L.on(this._element,"focusin.bs.toast",(t=>this._onInteraction(t,!0))),L.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=Mn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
8amed "${t}"`);e[t](this)}}))}}return G(Mn),m(Mn),{Alert:V,Button:q,Carousel:ot,Collapse:ut,Dropdown:oi,Modal:Ai,Offcanvas:zi,Popover:ln,ScrollSpy:fn,Tab:En,Toast:Mn,Tooltip:sn}})),/*! smooth-scroll v16.1.3 | (c) 2020 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/smooth-scroll */ 9window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(t){var e,i=(this.document||this.ownerDocument).querySelectorAll(t),n=this;do{for(e=i.length;0<=--e&&i.item(e)!==n;);}while(e<0&&(n=n.parentElement));return n}),function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}"function"!=typeof window.CustomEvent&&(t.prototype=window.Event.prototype,window.CustomEvent=t)}(),function(){for(var t=0,e=["ms","moz","webkit","o"],i=0;i<e.length&&!window.requestAnimationFrame;++i)window.requestAnimationFrame=window[e[i]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[i]+"CancelAnimationFrame"]||window[e[i]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,i){var n=(new Date).getTime(),r=Math.max(0,16-(n-t)),s=window.setTimeout((function(){e(n+r)}),r);return t=n+r,s}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}(),function(t,e){"function"==typeof define&&define.amd?define([],(function(){return e(t)})):"object"==typeof exports?module.exports=e(t):t.SmoothScroll=e(t)}("undefined"!=typeof global?global:"undefined"!=typeof window?window:this,(function(t){"use strict";var e={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash:!0,speed:500,speedAsDuration:!1,durationMax:null,durationMin:null,clip:!0,offset:0,easing:"easeInOutCubic",customEasing:null,updateURL:!0,popstate:!0,emitEvents:!0},i=function(){var t={};return Array.prototype.forEach.call(arguments,(function(e){for(var i in e){if(!e.hasOwnProperty(i))return;t[i]=e[i]}})),t},n=function(t){"#"===t.charAt(0)&&(t=t.substr(1));for(var e,i=String(t),n=i.length,r=-1,s="",o=i.charCodeAt(0);++r<n;){if(0===(e=i.charCodeAt(r)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");s+=1<=e&&e<=31||127==e||0===r&&48<=e&&e<=57||1===r&&48<=e&&e<=57&&45===o?"\\"+e.toString(16)+" ":128<=e||45===e||95===e||48<=e&&e<=57||65<=e&&e<=90||97<=e&&e<=122?i.charAt(r):"\\"+i.charAt(r)}return"#"+s},r=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},s=function(e,i,n){0===e&&document.body.focus(),n||(e.focus(),document.activeElement!==e&&(e.setAttribute("tabindex","-1"),e.focus(),e.style.outline="none"),t.scrollTo(0,i))},o=function(e,i,n,r){if(i.emitEvents&&"function"==typeof t.CustomEvent){var s=new CustomEvent(e,{bubbles:!0,detail:{anchor:n,toggle:r}});document.dispatchEvent(s)}};return function(a,l){var h,c,d,p,u={cancelScroll:function(t){cancelAnimationFrame(p),p=null,t||o("scrollCancel",h)}};u.animateScroll=function(n,a,l){u.cancelScroll();var c=i(h||e,l||{}),f="[object Number]"===Object.prototype.toString.call(n),m=f||!n.tagName?null:n;if(f||m){var g=t.pageYOffset;c.header&&!d&&(d=document.querySelector(c.header));var v,y,b,_,w,x,S,E,C=function(e){return e?(i=e,parseInt(t.getComputedStyle(i).height,10)+e.offsetTop):0;var i}(d),T=f?n:function(e,i,n,s){var o=0;if(e.offsetParent)for(;o+=e.offsetTop,e=e.offsetParent;);return o=Math.max(o-i-n,0),s&&(o=Math.min(o,r()-t.innerHeight)),o}(m,C,parseInt("function"==typeof c.offset?c.offset(n,a):c.offset,10),c.clip),k=T-g,P=r(),A=0,M=(v=k,b=(y=c).speedAsDuration?y.speed:Math.abs(v/1e3*y.speed),y.durationMax&&b>y.durationMax?y.durationMax:y.durationMin&&b<y.durationMin?y.durationMin:parseInt(b,10)),D=function(e){var i,r,l;_||(_=e),A+=e-_,x=g+k*(r=w=1<(w=0===M?0:A/M)?1:w,"easeInQuad"===(i=c).easing&&(l=r*r),"easeOutQuad"===i.easing&&(l=r*(2-r)),"easeInOutQuad"===i.easing&&(l=r<.5?2*r*r:(4-2*r)*r-1),"easeInCubic"===i.easing&&(l=r*r*r),"easeOutCubic"===i.easing&&(l=--r*r*r+1),"easeInOutCubic"===i.easing&&(l=r<.5?4*r*r*r:(r-1)*(2*r-2)*(2*r-2)+1),"easeInQuart"===i.easing&&(l=r*r*r*r),"easeOutQuart"===i.easing&&(l=1- --r*r*r*r),"easeInOutQuart"===i.easing&&(l=r<.5?8*r*r*r*r:1-8*--r*r*r*r),"easeInQuint"===i.easing&&(l=r*r*r*r*r),"easeOutQuint"===i.easing&&(l=1+--r*r*r*r*r),"easeInOutQuint"===i.easing&&(l=r<.5?16*r*r*r*r*r:1+16*--r*r*r*r*r),i.customEasing&&(l=i.customEasing(r)),l||r),t.scrollTo(0,Math.floor(x)),function(e,i){var r=t.pageYOffset;
9if(e==i||r==i||(g<i&&t.innerHeight+r)>=P)return u.cancelScroll(!0),s(n,i,f),o("scrollStop",c,n,a),!(p=_=null)}(x,T)||(p=t.requestAnimationFrame(D),_=e)};0===t.pageYOffset&&t.scrollTo(0,0),S=n,E=c,f||history.pushState&&E.updateURL&&history.pushState({smoothScroll:JSON.stringify(E),anchor:S.id},document.title,S===document.documentElement?"#top":"#"+S.id),"matchMedia"in t&&t.matchMedia("(prefers-reduced-motion)").matches?s(n,Math.floor(T),!1):(o("scrollStart",c,n,a),u.cancelScroll(!0),t.requestAnimationFrame(D))}};var f=function(e){if(!e.defaultPrevented&&!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey)&&"closest"in e.target&&(c=e.target.closest(a))&&"a"===c.tagName.toLowerCase()&&!e.target.closest(h.ignore)&&c.hostname===t.location.hostname&&c.pathname===t.location.pathname&&/#/.test(c.href)){var i,r;try{i=n(decodeURIComponent(c.hash))}catch(e){i=n(c.hash)}if("#"===i){if(!h.topOnEmptyHash)return;r=document.documentElement}else r=document.querySelector(i);(r=r||"#top"!==i?r:document.documentElement)&&(e.preventDefault(),function(e){if(history.replaceState&&e.updateURL&&!history.state){var i=t.location.hash;i=i||"",history.replaceState({smoothScroll:JSON.stringify(e),anchor:i||t.pageYOffset},document.title,i||t.location.href)}}(h),u.animateScroll(r,c))}},m=function(t){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(h)){var e=history.state.anchor;"string"==typeof e&&e&&!(e=document.querySelector(n(history.state.anchor)))||u.animateScroll(e,null,{updateURL:!1})}};return u.destroy=function(){h&&(document.removeEventListener("click",f,!1),t.removeEventListener("popstate",m,!1),u.cancelScroll(),p=d=c=h=null)},function(){if(!("querySelector"in document&&"addEventListener"in t&&"requestAnimationFrame"in t&&"closest"in t.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";u.destroy(),h=i(e,l||{}),d=h.header?document.querySelector(h.header):null,document.addEventListener("click",f,!1),h.updateURL&&h.popstate&&t.addEventListener("popstate",m,!1)}(),u}})),function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.Rellax=e()}("undefined"!=typeof window?window:global,(function(){var t=function(e,i){"use strict";var n=Object.create(t.prototype),r=0,s=0,o=0,a=0,l=[],h=!0,c=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return setTimeout(t,1e3/60)},d=null,p=!1;try{var u=Object.defineProperty({},"passive",{get:function(){p=!0}});window.addEventListener("testPassive",null,u),window.removeEventListener("testPassive",null,u)}catch(t){}var f=window.cancelAnimationFrame||window.mozCancelAnimationFrame||clearTimeout,m=window.transformProp||function(){var t=document.createElement("div");if(null===t.style.transform){var e=["Webkit","Moz","ms"];for(var i in e)if(void 0!==t.style[e[i]+"Transform"])return e[i]+"Transform"}return"transform"}();n.options={speed:-2,verticalSpeed:null,horizontalSpeed:null,breakpoints:[576,768,1201],center:!1,wrapper:null,relativeToWrapper:!1,round:!0,vertical:!0,horizontal:!1,verticalScrollAxis:"y",horizontalScrollAxis:"x",callback:function(){}}
9,i&&Object.keys(i).forEach((function(t){n.options[t]=i[t]})),i&&i.breakpoints&&function(){if(3===n.options.breakpoints.length&&Array.isArray(n.options.breakpoints)){var t,e=!0,i=!0;if(n.options.breakpoints.forEach((function(n){"number"!=typeof n&&(i=!1),null!==t&&n<t&&(e=!1),t=n})),e&&i)return}n.options.breakpoints=[576,768,1201],console.warn("Rellax: You must pass an array of 3 numbers in ascending order to the breakpoints option. Defaults reverted")}(),e||(e=".rellax");var g="string"==typeof e?document.querySelectorAll(e):[e];if(g.length>0){if(n.elems=g,n.options.wrapper&&!n.options.wrapper.nodeType){var v=document.querySelector(n.options.wrapper);if(!v)return void console.warn("Rellax: The wrapper you're trying to use doesn't exist.");n.options.wrapper=v}var y,b=function(){for(var t=0;t<l.length;t++)n.elems[t].style.cssText=l[t].style;var e,i;l=[],s=window.innerHeight,a=window.innerWidth,e=a,i=n.options.breakpoints,y=e<i[0]?"xs":e>=i[0]&&e<i[1]?"sm":e>=i[1]&&e<i[2]?"md":"lg",w(),function(){for(var t=0;t<n.elems.length;t++){var e=_(n.elems[t]);l.push(e)}}(),C(),h&&(window.addEventListener("resize",b),h=!1,E())},_=function(t){var e,i=t.getAttribute("data-rellax-percentage"),r=t.getAttribute("data-rellax-speed"),o=t.getAttribute("data-rellax-xs-speed"),l=t.getAttribute("data-rellax-mobile-speed"),h=t.getAttribute("data-rellax-tablet-speed"),c=t.getAttribute("data-rellax-desktop-speed"),d=t.getAttribute("data-rellax-vertical-speed"),p=t.getAttribute("data-rellax-horizontal-speed"),u=t.getAttribute("data-rellax-vertical-scroll-axis"),f=t.getAttribute("data-rellax-horizontal-scroll-axis"),m=t.getAttribute("data-rellax-zindex")||0,g=t.getAttribute("data-rellax-min"),v=t.getAttribute("data-rellax-max"),b=t.getAttribute("data-rellax-min-x"),_=t.getAttribute("data-rellax-max-x"),w=t.getAttribute("data-rellax-min-y"),S=t.getAttribute("data-rellax-max-y"),E=!0;o||l||h||c?e={xs:o,sm:l,md:h,lg:c}:E=!1;var C=n.options.wrapper?n.options.wrapper.scrollTop:window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;n.options.relativeToWrapper&&(C=(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)-n.options.wrapper.offsetTop);var T=n.options.vertical&&(i||n.options.center)?C:0,k=n.options.horizontal&&(i||n.options.center)?n.options.wrapper?n.options.wrapper.scrollLeft:window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft:0,P=T+t.getBoundingClientRect().top,A=t.clientHeight||t.offsetHeight||t.scrollHeight,M=k+t.getBoundingClientRect().left,D=t.clientWidth||t.offsetWidth||t.scrollWidth,I=i||(T-P+s)/(A+s),O=i||(k-M+a)/(D+a);n.options.center&&(O=.5,I=.5);var L=E&&null!==e[y]?Number(e[y]):r||n.options.speed,F=d||n.options.verticalSpeed,R=p||n.options.horizontalSpeed,z=u||n.options.verticalScrollAxis,B=f||n.options.horizontalScrollAxis,N=x(O,I,L,F,R),j=t.style.cssText,G="",V=/transform\s*:/i.exec(j);if(V){var H=V.index,q=j.slice(H),X=q.indexOf(";");G=X?" "+q.slice(11,X).replace(/\s/g,""):" "+q.slice(11).replace(/\s/g,"")}return{baseX:N.x,baseY:N.y,top:P,left:M,height:A,width:D,speed:L,verticalSpeed:F,horizontalSpeed:R,verticalScrollAxis:z,horizontalScrollAxis:B,style:j,transform:G,zindex:m,min:g,max:v,minX:b,maxX:_,minY:w,maxY:S}},w=function(){var t=r,e=o;if(r=n.options.wrapper?n.options.wrapper.scrollTop:(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset,o=n.options.wrapper?n.options.wrapper.scrollLeft:(document.documentElement||document.body.parentNode||document.body).scrollLeft||window.pageXOffset,n.options.relativeToWrapper){var i=(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset;r=i-n.options.wrapper.offsetTop}return!(t==r||!n.options.vertical)||!(e==o||!n.options.horizontal)},x=function(t,e,i,r,s){var o={},a=(s||i)*(100*(1-t)),l=(r||i)*(100*(1-e));return o.x=n.options.round?Math.round(a):Math.round(100*a)/100,o.y=n.options.round?Math.round(l):Math.round(100*l)/100,o},S=function(){window.removeEventListener("resize",S),window.removeEventListener("orientationchange",S),(n.options.wrapper?n.options.wrapper:window).removeEventListener("scroll",S),(n.options.wrapper?n.options.wrapper:document).removeEventListener("touchmove",S),d=c(E)},E=function(){w()&&!1===h?(C(),d=c(E)):(d=null,window.addEventListener("resize",S),window.addEventListener("orientationchange",S),(n.options.wrapper?n.options.wrapper:window).addEventListener("scroll",S,!!p&&{passive:!0}),(n.options.wrapper?n.options.wrapper:document).addEventListener("touchmove",S,!!p&&{passive:!0}))},C=function(){for(var t,e=0;e<n.elems.length;e++){var i=l[e].verticalScrollAxis.toLowerCase(),h=l[e].horizontalScrollAxis.toLowerCase(),c=-1!=i.indexOf("x")?r:0,d=-1!=i.indexOf("y")?r:0,p=-1!=h.indexOf("x")?o:0,u=(d+(-1!=h.indexOf("y")?o:0)-l[e].top+s)/(l[e].height+s),f=(c+p-l[e].left+a)/(l[e].width+a),g=(t=x(f,u,l[e].speed,l[e].verticalSpeed,l[e].horizontalSpeed)).y-l[e].baseY,v=t.x-l[e].baseX;null!==l[e].min&&(n.options.vertical&&!n.options.horizontal&&(g=g<=l[e].min?l[e].min:g),n.options.horizontal&&!n.options.vertical&&(v=v<=l[e].min?l[e].min:v)),null!=l[e].minY&&(g=g<=l[e].minY?l[e].minY:g),null!=l[e].minX&&(v=v<=l[e].minX?l[e].minX:v),null!==l[e].max&&(n.options.vertical&&!n.options.horizontal&&(g=g>=l[e].max?l[e].max:g),n.options.horizontal&&!n.options.vertical&&(v=v>=l[e].max?l[e].max:v)),null!=l[e].maxY&&(g=g>=l[e].maxY?l[e].maxY:g),null!=l[e].maxX&&(v=v>=l[e].maxX?l[e].maxX:v);var y=l[e].zindex,b="translate3d("+(n.options.horizontal?v:"0")+"px,"+(n.options.vertical?g:"0")+"px,"+y+"px) "+l[e].transform;n.elems[e].style[m]=b}n.options.callback(t)};return n.destroy=function(){for(var t=0;t<n.elems.length;t++)n.elems[t].style.cssText=l[t].style;h||(window.removeEventListener("resize",b),h=!0),f(d),d=null},b(),n.refresh=b,n}console.warn("Rellax: The elements you're trying to select don't exist.")};return t})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["lottie-player"]={})}(this,(function(exports){"use strict";function _asyncIterator(t){var e,i,n,r=2;for("undefined"!=typeof Symbol&&(i=Symbol.asyncIterator,n=Symbol.iterator);r--;){if(i&&null!=(e=t[i]))return e.call(t);if(n&&null!=(e=t[n]))return new AsyncFromSyncIterator(e.call(t));i="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function AsyncFromSyncIterator(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return AsyncFromSyncIterator=function(t){this.s=t,this.n=t.next},AsyncFromSyncIterator.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var i=this.s.return;return void 0===i?Promise.resolve({value:t,done:!0}):e(i.apply(this.s,arguments))},throw:function(t){var i=this.s.return;return void 0===i?Promise.reject(t):e(i.apply(this.s,arguments))}},new AsyncFromSyncIterator(t)}var REACT_ELEMENT_TYPE;function _jsx(t,e,i,n){REACT_ELEMENT_TYPE||(REACT_ELEMENT_TYPE="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var r=t&&t.defaultProps,s=arguments.length-3;if(e||0===s||(e={children:void 0}),1===s)e.children=n;else if(s>1){for(var o=new Array(s),a=0;a<s;a++)o[a]=arguments[a+3];e.children=o}if(e&&r)for(var l in r)void 0===e[l]&&(e[l]=r[l]);else e||(e=r||{});return{$$typeof:REACT_ELEMENT_TYPE,type:t,key:void 0===i?null:""+i,ref:null,props:e,_owner:null}}function ownKeys(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}
vendor: 60,532 bytes, lines 9-85
9function _objectSpread2(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(i),!0).forEach((function(e){_defineProperty(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _wrapRegExp(){_wrapRegExp=function(t,e){return new i(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function i(t,n,r){var s=new RegExp(t,n);return e.set(s,r||e.get(t)),_setPrototypeOf(s,i.prototype)}function n(t,i){var n=e.get(i);return Object.keys(n).reduce((function(e,i){return e[i]=t[n[i]],e}),Object.create(null))}return _inherits(i,RegExp),i.prototype.exec=function(e){var i=t.exec.call(this,e);return i&&(i.groups=n(i,this)),i},i.prototype[Symbol.replace]=function(i,r){if("string"==typeof r){var s=e.get(this);return t[Symbol.replace].call(this,i,r.replace(/\$<([^>]+)>/g,(function(t,e){return"$"+s[e]})))}if("function"==typeof r){var o=this;return t[Symbol.replace].call(this,i,(function(){var t=arguments;return"object"!=typeof t[t.length-1]&&(t=[].slice.call(t)).push(n(t,o)),r.apply(this,t)}))}return t[Symbol.replace].call(this,i,r)},_wrapRegExp.apply(this,arguments)}function _AwaitValue(t){this.wrapped=t}function _AsyncGenerator(t){var e,i;function n(e,i){try{var s=t[e](i),o=s.value,a=o instanceof _AwaitValue;Promise.resolve(a?o.wrapped:o).then((function(t){a?n("return"===e?"return":"next",t):r(s.done?"return":"normal",t)}),(function(t){n("throw",t)}))}catch(t){r("throw",t)}}function r(t,r){switch(t){case"return":e.resolve({value:r,done:!0});break;case"throw":e.reject(r);break;default:e.resolve({value:r,done:!1})}(e=e.next)?n(e.key,e.arg):i=null}this._invoke=function(t,r){return new Promise((function(s,o){var a={key:t,arg:r,resolve:s,reject:o,next:null};i?i=i.next=a:(e=i=a,n(t,r))}))},"function"!=typeof t.return&&(this.return=void 0)}function _wrapAsyncGenerator(t){return function(){return new _AsyncGenerator(t.apply(this,arguments))}}function _awaitAsyncGenerator(t){return new _AwaitValue(t)}function _asyncGeneratorDelegate(t,e){var i={},n=!1;function r(i,r){return n=!0,r=new Promise((function(e){e(t[i](r))})),{done:!1,value:e(r)}}return i["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},i.next=function(t){return n?(n=!1,t):r("next",t)},"function"==typeof t.throw&&(i.throw=function(t){if(n)throw n=!1,t;return r("throw",t)}),"function"==typeof t.return&&(i.return=function(t){return n?(n=!1,t):r("return",t)}),i}function asyncGeneratorStep(t,e,i,n,r,s,o){try{var a=t[s](o),l=a.value}catch(t){return void i(t)}a.done?e(l):Promise.resolve(l).then(n,r)}function _asyncToGenerator(t){return function(){var e=this,i=arguments;return new Promise((function(n,r){var s=t.apply(e,i);function o(t){asyncGeneratorStep(s,n,r,o,a,"next",t)}function a(t){asyncGeneratorStep(s,n,r,o,a,"throw",t)}o(void 0)}))}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function _defineEnumerableProperties(t,e){for(var i in e)(s=e[i]).configurable=s.enumerable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,i,s);if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),r=0;r<n.length;r++){var s,o=n[r];(s=e[o]).configurable=s.enumerable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,o,s)}return t}function _defaults(t,e){for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var r=i[n],s=Object.getOwnPropertyDescriptor(e,r);s&&s.configurable&&void 0===t[r]&&Object.defineProperty(t,r,s)}return t}function _defineProperty(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _extends(){return _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},_extends.apply(this,arguments)}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?Object(arguments[e]):{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(i).filter((function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable}))),n.forEach((function(e){_defineProperty(t,e,i[e])}))}return t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e)}function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,_setPrototypeOf(t,e)}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _construct(t,e,i){return _construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var r=new(Function.bind.apply(t,n));return i&&_setPrototypeOf(r,i.prototype),r},_construct.apply(null,arguments)}function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(i,t)},_wrapNativeSuper(t)}function _instanceof(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,i=new WeakMap;return(_getRequireWildcardCache=function(t){return t?i:e})(t)}function _interopRequireWildcard(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=_getRequireWildcardCache(e);if(i&&i.has(t))return i.get(t);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var o=r?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(n,s,o):n[s]=t[s]}return n.default=t,i&&i.set(t,n),n}function _newArrowCheck(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}function _objectDestructuringEmpty(t){if(null==t)throw new TypeError("Cannot destructure undefined")}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var i,n,r={},s=Object.keys(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||(r[i]=t[i]);return r}function _objectWithoutProperties(t,e){if(null==t)return{};var i,n,r=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _possibleConstructorReturn(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var i,n=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function _superPropBase(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=_superPropBase(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(arguments.length<3?t:i):r.value}},_get.apply(this,arguments)}function set(t,e,i,n){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,i,n){var r,s=_superPropBase(t,e);if(s){if((r=Object.getOwnPropertyDescriptor(s,e)).set)return r.set.call(n,i),!0;if(!r.writable)return!1}if(r=Object.getOwnPropertyDescriptor(n,e)){if(!r.writable)return!1;r.value=i,Object.defineProperty(n,e,r)}else _defineProperty(n,e,i);return!0},set(t,e,i,n)}function _set(t,e,i,n,r){if(!set(t,e,i,n||t)&&r)throw new Error("failed to set property");return i}function _taggedTemplateLiteral(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function _taggedTemplateLiteralLoose(t,e){return e||(e=t.slice(0)),t.raw=e,t}function _readOnlyError(t){throw new TypeError('"'+t+'" is read-only')}function _writeOnlyError(t){throw new TypeError('"'+t+'" is write-only')}function _classNameTDZError(t){throw new Error('Class "'+t+'" cannot be referenced in computed property keys.')}function _temporalUndefined(){}function _tdz(t){throw new ReferenceError(t+" is not defined - temporal dead zone")}function _temporalRef(t,e){return t===_temporalUndefined?_tdz(e):t}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _slicedToArrayLoose(t,e){return _arrayWithHoles(t)||_iterableToArrayLimitLoose(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _toArray(t){return _arrayWithHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableRest()}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _maybeArrayLike(t,e,i){if(e&&!Array.isArray(e)&&"number"==typeof e.length){var n=e.length;return _arrayLikeToArray(e,void 0!==i&&i<n?i:n)}return t(e,i)}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _iterableToArrayLimit(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,r,s=[],o=!0,a=!1;try{for(i=i.call(t);!(o=(n=i.next()).done)&&(s.push(n.value),!e||s.length!==e);o=!0);}catch(t){a=!0,r=t}finally{try{o||null==i.return||i.return()}finally{if(a)throw r}}return s}}function _iterableToArrayLimitLoose(t,e){var i=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=i){var n=[];for(i=i.call(t),_step;!(_step=i.next()).done&&(n.push(_step.value),!e||n.length!==e););return n}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _createForOfIteratorHelper(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){a=!0,s=t},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw s}}}}function _createForOfIteratorHelperLoose(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _skipFirstGeneratorNext(t){return function(){var e=t.apply(this,arguments);return e.next(),e}}function _toPrimitive(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==typeof e?e:String(e)}function _initializerWarningHelper(t,e){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}function _initializerDefineProperty(t,e,i,n){i&&Object.defineProperty(t,e,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function _applyDecoratedDescriptor(t,e,i,n,r){var s={};return Object.keys(n).forEach((function(t){s[t]=n[t]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=i.slice().reverse().reduce((function(i,n){return n(t,e,i)||i}),s),r&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(r):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(t,e,s),s=null),s}_AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},_AsyncGenerator.prototype.next=function(t){return this._invoke("next",t)},_AsyncGenerator.prototype.throw=function(t){return this._invoke("throw",t)},_AsyncGenerator.prototype.return=function(t){return this._invoke("return",t)};var id=0;function _classPrivateFieldLooseKey(t){return"__private_"+id+++"_"+t}function _classPrivateFieldLooseBase(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}function _classPrivateFieldGet(t,e){return _classApplyDescriptorGet(t,_classExtractFieldDescriptor(t,e,"get"))}function _classPrivateFieldSet(t,e,i){return _classApplyDescriptorSet(t,_classExtractFieldDescriptor(t,e,"set"),i),i}function _classPrivateFieldDestructureSet(t,e){return _classApplyDescriptorDestructureSet(t,_classExtractFieldDescriptor(t,e,"set"))}function _classExtractFieldDescriptor(t,e,i){if(!e.has(t))throw new TypeError("attempted to "+i+" private field on non-instance");return e.get(t)} 10function _classStaticPrivateFieldSpecGet(t,e,i){return _classCheckPrivateStaticAccess(t,e),_classCheckPrivateStaticFieldDescriptor(i,"get"),_classApplyDescriptorGet(t,i)}function _classStaticPrivateFieldSpecSet(t,e,i,n){return _classCheckPrivateStaticAccess(t,e),_classCheckPrivateStaticFieldDescriptor(i,"set"),_classApplyDescriptorSet(t,i,n),n}function _classStaticPrivateMethodGet(t,e,i){return _classCheckPrivateStaticAccess(t,e),i}function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}function _classApplyDescriptorGet(t,e){return e.get?e.get.call(t):e.value}function _classApplyDescriptorSet(t,e,i){if(e.set)e.set.call(t,i);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=i}}function _classApplyDescriptorDestructureSet(t,e){if(e.set)return"__destrObj"in e||(e.__destrObj={set value(i){e.set.call(t,i)}}),e.__destrObj;if(!e.writable)throw new TypeError("attempted to set read only private field");return e}function _classStaticPrivateFieldDestructureSet(t,e,i){return _classCheckPrivateStaticAccess(t,e),_classCheckPrivateStaticFieldDescriptor(i,"set"),_classApplyDescriptorDestructureSet(t,i)}function _classCheckPrivateStaticAccess(t,e){if(t!==e)throw new TypeError("Private static access of wrong provenance")}function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}function _decorate(t,e,i,n){var r=_getDecoratorsApi();if(n)for(var s=0;s<n.length;s++)r=n[s](r);var o=e((function(t){r.initializeInstanceElements(t,a.elements)}),i),a=r.decorateClass(_coalesceClassElements(o.d.map(_createElementDescriptor)),t);return r.initializeClassElements(o.F,a.elements),r.runClassFinishers(o.F,a.finishers)}function _getDecoratorsApi(){_getDecoratorsApi=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(i){e.forEach((function(e){e.kind===i&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var i=t.prototype;["method","field"].forEach((function(n){e.forEach((function(e){var r=e.placement;if(e.kind===n&&("static"===r||"prototype"===r)){var s="static"===r?t:i;this.defineClassElement(s,e)}}),this)}),this)},defineClassElement:function(t,e){var i=e.descriptor;if("field"===e.kind){var n=e.initializer;i={enumerable:i.enumerable,writable:i.writable,configurable:i.configurable,value:void 0===n?void 0:n.call(t)}}Object.defineProperty(t,e.key,i)},decorateClass:function(t,e){var i=[],n=[],r={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,r)}),this),t.forEach((function(t){if(!_hasDecorators(t))return i.push(t);var e=this.decorateElement(t,r);i.push(e.element),i.push.apply(i,e.extras),n.push.apply(n,e.finishers)}),this),!e)return{elements:i,finishers:n};var s=this.decorateConstructor(i,e);return n.push.apply(n,s.finishers),s.finishers=n,s},addElementPlacement:function(t,e,i){var n=e[t.placement];if(!i&&-1!==n.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");n.push(t.key)},decorateElement:function(t,e){for(var i=[],n=[],r=t.decorators,s=r.length-1;s>=0;s--){var o=e[t.placement];o.splice(o.indexOf(t.key),1);var a=this.fromElementDescriptor(t),l=this.toElementFinisherExtras((0,r[s])(a)||a);t=l.element,this.addElementPlacement(t,e),l.finisher&&n.push(l.finisher);var h=l.extras;if(h){for(var c=0;c<h.length;c++)this.addElementPlacement(h[c],e);i.push.apply(i,h)}}return{element:t,finishers:n,extras:i}},decorateConstructor:function(t,e){for(var i=[],n=e.length-1;n>=0;n--){var r=this.fromClassDescriptor(t),s=this.toClassDescriptor((0,e[n])(r)||r);if(void 0!==s.finisher&&i.push(s.finisher),void 0!==s.elements){t=s.elements;for(var o=0;o<t.length-1;o++)for(var a=o+1;a<t.length;a++)if(t[o].key===t[a].key&&t[o].placement===t[a].placement)throw new TypeError("Duplicated element ("+t[o].key+")")}}return{elements:t,finishers:i}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){if(void 0!==t)return _toArray(t).map((function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e}),this)},toElementDescriptor:function(t){var e=String(t.kind);if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var i=_toPropertyKey(t.key),n=String(t.placement);if("static"!==n&&"prototype"!==n&&"own"!==n)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+n+'"');var r=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var s={kind:e,key:i,placement:n,descriptor:Object.assign({},r)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(r,"get","The property descriptor of a field descriptor"),this.disallowProperty(r,"set","The property descriptor of a field descriptor"),this.disallowProperty(r,"value","The property descriptor of a field descriptor"),s.initializer=t.initializer),s},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:_optionalCallableProperty(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=String(t.kind);if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var i=_optionalCallableProperty(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:i}},runClassFinishers:function(t,e){for(var i=0;i<e.length;i++){var n=(0,e[i])(t);if(void 0!==n){if("function"!=typeof n)throw new TypeError("Finishers must return a constructor.");t=n}}return t},disallowProperty:function(t,e,i){if(void 0!==t[e])throw new TypeError(i+" can't have a ."+e+" property.")}};return t}function _createElementDescriptor(t){var e,i=_toPropertyKey(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var n={kind:"field"===t.kind?"field":"method",key:i,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(n.decorators=t.decorators),"field"===t.kind&&(n.initializer=t.value),n}function _coalesceGetterSetter(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function _coalesceClassElements(t){for(var e=[],i=function(t){return"method"===t.kind&&t.key===s.key&&t.placement===s.placement},n=0;n<t.length;n++){var r,s=t[n];if("method"===s.kind&&(r=e.find(i)))if(_isDataDescriptor(s.descriptor)||_isDataDescriptor(r.descriptor)){if(_hasDecorators(s)||_hasDecorators(r))throw new ReferenceError("Duplicated methods ("+s.key+") can't be decorated.");r.descriptor=s.descriptor}else{if(_hasDecorators(s)){if(_hasDecorators(r))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+s.key+").");r.decorators=s.decorators}_coalesceGetterSetter(s,r)}else e.push(s)}return e}function _hasDecorators(t){return t.decorators&&t.decorators.length}function _isDataDescriptor(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function _optionalCallableProperty(t,e){var i=t[e];if(void 0!==i&&"function"!=typeof i)throw new TypeError("Expected '"+e+"' to be a function");return i}function _classPrivateMethodGet(t,e,i){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return i}function _checkPrivateRedeclaration(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldInitSpec(t,e,i){_checkPrivateRedeclaration(t,e),e.set(t,i)}function _classPrivateMethodInitSpec(t,e){_checkPrivateRedeclaration(t,e),e.add(t)}function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")} 11/*! ***************************************************************************** 12 Copyright (c) Microsoft Corporation. 13 14 Permission to use, copy, modify, and/or distribute this software for any 15 purpose with or without fee is hereby granted. 16 17 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 18 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 19 AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 20 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 21 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 22 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 23 PERFORMANCE OF THIS SOFTWARE. 24 ***************************************************************************** */var _extendStatics=function(t,e){return _extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},_extendStatics(t,e)};function __extends(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}_extendStatics(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var _assign=function(){return _assign=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},_assign.apply(this,arguments)};function __rest(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]])}return i}function __decorate(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o}function __param(t,e){return function(i,n){e(i,n,t)}}function __metadata(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function __awaiter(t,e,i,n){return new(i||(i=Promise))((function(r,s){function o(t){try{l(n.next(t))}catch(t){s(t)}}function a(t){try{l(n.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,a)}l((n=n.apply(t,e||[])).next())}))}function __generator(t,e){var i,n,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],n=0}finally{i=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}var __createBinding=Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]};function __exportStar(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||__createBinding(e,t,i)}function __values(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,s=i.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o}function __spread(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(__read(arguments[e]));return t}function __spreadArrays(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<i;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,r++)n[r]=s[o];return n}function __spreadArray(t,e,i){if(i||2===arguments.length)for(var n,r=0,s=e.length;r<s;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))}function __await(t){return this instanceof __await?(this.v=t,this):new __await(t)}function __asyncGenerator(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,r=i.apply(t,e||[]),s=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(t){r[t]&&(n[t]=function(e){return new Promise((function(i,n){s.push([t,e,i,n])>1||a(t,e)}))})}function a(t,e){try{!function(t){t.value instanceof __await?Promise.resolve(t.value.v).then(l,h):c(s[0][2],t)}(r[t](e))}catch(t){c(s[0][3],t)}}function l(t){a("next",t)}function h(t){a("throw",t)}function c(t,e){t(e),s.shift(),s.length&&a(s[0][0],s[0][1])}}function __asyncDelegator(t){var e,i;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,r){e[n]=t[n]?function(e){return(i=!i)?{value:__await(t[n](e)),done:"return"===n}:r?r(e):e}:r}}function __asyncValues(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(i){e[i]=t[i]&&function(e){return new Promise((function(n,r){!function(t,e,i,n){Promise.resolve(n).then((function(e){t({value:e,done:i})}),e)}(n,r,(e=t[i](e)).done,e.value)}))}}}function __makeTemplateObject(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var __setModuleDefault=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function __importStar(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&__createBinding(e,t,i);return __setModuleDefault(e,t),e}function __importDefault(t){return t&&t.__esModule?t:{default:t}}function __classPrivateFieldGet(t,e,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)}function __classPrivateFieldSet(t,e,i,n,r){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(t,i):r?r.value=i:e.set(t,i),i 25/** 26 * @license 27 * Copyright 2019 Google LLC 28 * SPDX-License-Identifier: BSD-3-Clause 29 */}var t$3=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,e$8=Symbol(),n$5=new Map;class s$3{constructor(t,e){if(this._$cssResult$=!0,e!==e$8)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){var t=n$5.get(this.cssText);return t$3&&void 0===t&&(n$5.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}var o$5=t=>new s$3("string"==typeof t?t:t+"",e$8),r$3=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];var r=1===t.length?t[0]:i.reduce(((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1]),t[0]);return new s$3(r,e$8)},i$3=(t,e)=>{t$3?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{var i=document.createElement("style"),n=window.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,t.appendChild(i)}))},S$1=t$3?t=>t:t=>t instanceof CSSStyleSheet?(t=>{var e="";for(var i of t.cssRules)e+=i.cssText;return o$5(e)})(t):t 30/** 31 * @license 32 * Copyright 2017 Google LLC 33 * SPDX-License-Identifier: BSD-3-Clause 34 */,s$2,e$7=window.trustedTypes,r$2=e$7?e$7.emptyScript:"",h$2=window.reactiveElementPolyfillSupport,o$4={toAttribute(t,e){switch(e){case Boolean:t=t?r$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){var i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},n$4=(t,e)=>e!==t&&(e==e||t==t),l$3={attribute:!0,type:String,converter:o$4,reflect:!1,hasChanged:n$4},t$2;class a$1 extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();var t=[];return this.elementProperties.forEach(((e,i)=>{var n=this._$Eh(i,e);void 0!==n&&(this._$Eu.set(n,i),t.push(n))})),t}static createProperty(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l$3;if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){var i="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,i,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(n){var r=this[t];this[e]=n,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||l$3}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;var t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){var e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(var n of i)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){var e=[];if(Array.isArray(t)){var i=new Set(t.flat(1/0).reverse());for(var n of i)e.unshift(S$1(n))}else void 0!==t&&e.push(S$1(t));return e}static _$Eh(t,e){var i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t,e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return i$3(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e){var i,n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l$3,s=this.constructor._$Eh(t,r);if(void 0!==s&&!0===r.reflect){var o=(null!==(n=null===(i=r.converter)||void 0===i?void 0:i.toAttribute)&&void 0!==n?n:o$4.toAttribute)(e,r.type);this._$Ei=t,null==o?this.removeAttribute(s):this.setAttribute(s,o),this._$Ei=null}}_$AK(t,e){var i,n,r,s=this.constructor,o=s._$Eu.get(t);if(void 0!==o&&this._$Ei!==o){var a=s.getPropertyOptions(o),l=a.converter,h=null!==(r=null!==(n=null===(i=l)||void 0===i?void 0:i.fromAttribute)&&void 0!==n?n:"function"==typeof l?l:null)&&void 0!==r?r:o$4.fromAttribute;this._$Ei=o,this[o]=h(e,a.type),this._$Ei=null}}requestUpdate(t,e,i){var n=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||n$4)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$Ep=this._$EC())}_$EC(){var t=this;return _asyncToGenerator((function*(){t.isUpdatePending=!0;try{yield t._$Ep}catch(e){Promise.reject(e)}var e=t.scheduleUpdate();return null!=e&&(yield e),!t.isUpdatePending}))()}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(this.isUpdatePending){this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);var e=!1,i=this._$AL;try{(e=this.shouldUpdate(i))?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}a$1.finalized=!0,a$1.elementProperties=new Map,a$1.elementStyles=[],a$1.shadowRootOptions={mode:"open"},null==h$2||h$2({ReactiveElement:a$1}),(null!==(s$2=globalThis.reactiveElementVersions)&&void 0!==s$2?s$2:globalThis.reactiveElementVersions=[]).push("1.2.1");var i$2=globalThis.trustedTypes,s$1=i$2?i$2.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$6="lit$".concat((Math.random()+"").slice(9),"$"),o$3="?"+e$6,n$3="<".concat(o$3,">"),l$2=document,h$1=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return l$2.createComment(t)},r$1=t=>null===t||"object"!=typeof t&&"function"!=typeof t,d=Array.isArray,u=t=>{var e;return d(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},c=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,a=/>/g,f=/>|[ \n�\r](?:([^\s"'>=/]+)([ \n�\r]*=[ \n�\r]*(?:[^ \n�\r"'`<>=]|("|')|))|$)/g,_=/'/g,m=/"/g,g=/^(?:script|style|textarea)$/i,p=t=>function(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return{_$litType$:t,strings:e,values:n}},$=p(1),y=p(2),b=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),T=new WeakMap,x=(t,e,i)=>{var n,r,s=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e,o=s._$litPart$;if(void 0===o){var a=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;s._$litPart$=o=new N(e.insertBefore(h$1(),a),a,void 0,null!=i?i:{})}return o._$AI(t),o},A=l$2.createTreeWalker(l$2,129,null,!1),C=(t,e)=>{for(var i,n=t.length-1,r=[],s=2===e?"<svg>":"",o=c,l=0;l<n;l++){for(var h=t[l],d=void 0,p=void 0,u=-1,y=0;y<h.length&&(o.lastIndex=y,null!==(p=o.exec(h)));)y=o.lastIndex,o===c?"!--"===p[1]?o=v:void 0!==p[1]?o=a:void 0!==p[2]?(g.test(p[2])&&(i=RegExp("</"+p[2],"g")),o=f):void 0!==p[3]&&(o=f):o===f?">"===p[0]?(o=null!=i?i:c,u=-1):void 0===p[1]?u=-2:(u=o.lastIndex-p[2].length,d=p[1],o=void 0===p[3]?f:'"'===p[3]?m:_):o===m||o===_?o=f:o===v||o===a?o=c:(o=f,i=void 0);var b=o===f&&t[l+1].startsWith("/>")?" ":"";s+=o===c?h+n$3:u>=0?(r.push(d),h.slice(0,u)+"$lit$"+h.slice(u)+e$6+b):h+e$6+(-2===u?(r.push(void 0),l):b)}var w=s+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==s$1?s$1.createHTML(w):w,r]};class E{constructor(t,e){var i,{strings:n,_$litType$:r}=t;this.parts=[];var s=0,o=0,a=n.length-1,l=this.parts,[h,c]=C(n,r);if(this.el=E.createElement(h,e),A.currentNode=this.el.content,2===r){var d=this.el.content,p=d.firstChild;p.remove(),d.append(...p.childNodes)}for(;null!==(i=A.nextNode())&&l.length<a;){if(1===i.nodeType){if(i.hasAttributes()){var u=[];for(var f of i.getAttributeNames())if(f.endsWith("$lit$")||f.startsWith(e$6)){var m=c[o++];if(u.push(f),void 0!==m){var v=i.getAttribute(m.toLowerCase()+"$lit$").split(e$6),y=/([.?@])?(.*)/.exec(m);l.push({type:1,index:s,name:y[2],strings:v,ctor:"."===y[1]?M:"?"===y[1]?H:"@"===y[1]?I:S})}else l.push({type:6,index:s})}for(var b of u)i.removeAttribute(b)}if(g.test(i.tagName)){var _=i.textContent.split(e$6),w=_.length-1;if(w>0){i.textContent=i$2?i$2.emptyScript:"";for(var x=0;x<w;x++)i.append(_[x],h$1()),A.nextNode(),l.push({type:2,index:++s});i.append(_[w],h$1())}}}else if(8===i.nodeType)if(i.data===o$3)l.push({type:2,index:s});else for(var T=-1;-1!==(T=i.data.indexOf(e$6,T+1));)l.push({type:7,index:s}),T+=e$6.length-1;s++}}static createElement(t,e){var i=l$2.createElement("template");return i.innerHTML=t,i}}function P(t,e){var i,n,r,s,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,a=arguments.length>3?arguments[3]:void 0;if(e===b)return e;var l=void 0!==a?null===(i=o._$Cl)||void 0===i?void 0:i[a]:o._$Cu,h=r$1(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===h?l=void 0:(l=new h(t))._$AT(t,o,a),void 0!==a?(null!==(r=(s=o)._$Cl)&&void 0!==r?r:s._$Cl=[])[a]=l:o._$Cu=l),void 0!==l&&(e=P(t,l._$AS(t,e.values),l,a)),e}class V{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e,{el:{content:i},parts:n}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:l$2).importNode(i,!0);A.currentNode=r;for(var s=A.nextNode(),o=0,a=0,l=n[0];void 0!==l;){if(o===l.index){var h=void 0;2===l.type?h=new N(s,s.nextSibling,this,t):1===l.type?h=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(h=new L(s,this,t)),this.v.push(h),l=n[++a]}o!==(null==l?void 0:l.index)&&(s=A.nextNode(),o++)}return r}m(t){var e=0;for(var i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class N{constructor(t,e,i,n){var r;this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cg=null===(r=null==n?void 0:n.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){var t=this._$AA.parentNode,e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t){t=P(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),r$1(t)?t===w||null==t||""===t?(this._$AH!==w&&this._$AR(),this._$AH=w):t!==this._$AH&&t!==b&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):u(t)?this.A(t):this.$(t)}M(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._$AB;return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==w&&r$1(this._$AH)?this._$AA.nextSibling.data=t:this.S(l$2.createTextNode(t)),this._$AH=t}T(t){var e,{values:i,_$litType$:n}=t,r="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=E.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.m(i);else{var s=new V(r,this),o=s.p(this.options);s.m(i),this.S(o),this._$AH=s}}_$AC(t){var e=T.get(t.strings);return void 0===e&&T.set(t.strings,e=new E(t)),e}A(t){d(this._$AH)||(this._$AH=[],this._$AR());var e,i=this._$AH,n=0;for(var r of t)n===i.length?i.push(e=new N(this.M(h$1()),this.M(h$1()),this,this.options)):e=i[n],e._$AI(r),n++;n<i.length&&(this._$AR(e&&e._$AB.nextSibling,n),i.length=n)}_$AR(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,i=arguments.length>1?arguments[1]:void 0;for(null===(t=this._$AP)||void 0===t||t.call(this,!1,!0,i);e&&e!==this._$AB;){var n=e.nextSibling;e.remove(),e=n}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class S{constructor(t,e,i,n,r){this.type=1,this._$AH=w,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=w}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,r=this.strings,s=!1;if(void 0===r)t=P(this,t,e,0),(s=!r$1(t)||t!==this._$AH&&t!==b)&&(this._$AH=t);else{var o,a,l=t;for(t=r[0],o=0;o<r.length-1;o++)(a=P(this,l[i+o],e,o))===b&&(a=this._$AH[o]),s||(s=!r$1(a)||a!==this._$AH[o]),a===w?t=w:t!==w&&(t+=(null!=a?a:"")+r[o+1]),this._$AH[o]=a}s&&!n&&this.k(t)}k(t){t===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class M extends S{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===w?void 0:t}}var k=i$2?i$2.emptyScript:"";class H extends S{constructor(){super(...arguments),this.type=4}k(t){t&&t!==w?this.element.setAttribute(this.name,k):this.element.removeAttribute(this.name)}}class I extends S{constructor(t,e,i,n,r){super(t,e,i,n,r),this.type=5}_$AI(t){var e;if((t=null!==(e=P(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==e?e:w)!==b){var i=this._$AH,n=t===w&&i!==w||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==w&&(i===w||n);n&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class L{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}}var R={P:"$lit$",V:e$6,L:o$3,I:1,N:C,R:V,D:u,j:P,H:N,O:S,F:H,B:I,W:M,Z:L},z=window.litHtmlPolyfillSupport,l$1,o$2;null==z||z(E,N),(null!==(t$2=globalThis.litHtmlVersions)&&void 0!==t$2?t$2:globalThis.litHtmlVersions=[]).push("2.1.2");var r=a$1;class s extends a$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e,i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){var e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=x(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return b}}s.finalized=!0,s._$litElement$=!0,null===(l$1=globalThis.litElementHydrateSupport)||void 0===l$1||l$1.call(globalThis,{LitElement:s});var n$2=globalThis.litElementPolyfillSupport;null==n$2||n$2({LitElement:s});var h={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(o$2=globalThis.litElementVersions)&&void 0!==o$2?o$2:globalThis.litElementVersions=[]).push("3.1.2"); 35/** 36 * @license 37 * Copyright 2017 Google LLC 38 * SPDX-License-Identifier: BSD-3-Clause 39 */ 40var n$1=t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{var{kind:i,elements:n}=e;return{kind:i,elements:n,finisher(e){window.customElements.define(t,e)}}})(t,e) 41/** 42 * @license 43 * Copyright 2017 Google LLC 44 * SPDX-License-Identifier: BSD-3-Clause 45 */,i$1=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?_objectSpread2(_objectSpread2({},e),{},{finisher(i){i.createProperty(e.key,t)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function e$5(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):i$1(t,e)} 46/** 47 * @license 48 * Copyright 2017 Google LLC 49 * SPDX-License-Identifier: BSD-3-Clause 50 */function t$1(t){return e$5(_objectSpread2(_objectSpread2({},t),{},{state:!0}))} 51/** 52 * @license 53 * Copyright 2017 Google LLC 54 * SPDX-License-Identifier: BSD-3-Clause 55 */var e$4=(t,e,i)=>{Object.defineProperty(e,i,t)},t=(t,e)=>({kind:"method",placement:"prototype",key:e.key,descriptor:t}),o$1=t=>{var{finisher:e,descriptor:i}=t;return(t,n)=>{var r;if(void 0===n){var s=null!==(r=t.originalKey)&&void 0!==r?r:t.key,o=null!=i?{kind:"method",placement:"prototype",key:s,descriptor:i(t.key)}:_objectSpread2(_objectSpread2({},t),{},{key:s});return null!=e&&(o.finisher=function(t){e(t,s)}),o}var a=t.constructor;void 0!==i&&Object.defineProperty(t,n,i(n)),null==e||e(a,n)}},n; 56/** 57 * @license 58 * Copyright 2017 Google LLC 59 * SPDX-License-Identifier: BSD-3-Clause 60 */function e$3(t){return o$1({finisher:(e,i)=>{Object.assign(e.prototype[i],t)}})} 61/** 62 * @license 63 * Copyright 2017 Google LLC 64 * SPDX-License-Identifier: BSD-3-Clause 65 */function i(t,e){return o$1({descriptor:i=>{var n={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){var r="symbol"==typeof i?Symbol():"__"+i;n.get=function(){var e,i;return void 0===this[r]&&(this[r]=null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null),this[r]}}return n}})} 66/** 67 * @license 68 * Copyright 2017 Google LLC 69 * SPDX-License-Identifier: BSD-3-Clause 70 */function e$2(t){return o$1({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})} 71/** 72 * @license 73 * Copyright 2017 Google LLC 74 * SPDX-License-Identifier: BSD-3-Clause 75 */function e$1(t){return o$1({descriptor:e=>({get(){var e=this;return _asyncToGenerator((function*(){var i;return yield e.updateComplete,null===(i=e.renderRoot)||void 0===i?void 0:i.querySelector(t)}))()},enumerable:!0,configurable:!0})})} 76/** 77 * @license 78 * Copyright 2021 Google LLC 79 * SPDX-License-Identifier: BSD-3-Clause 80 */var e=null!=(null===(n=window.HTMLSlotElement)||void 0===n?void 0:n.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function l(t){var{slot:i,selector:n}=null!=t?t:{};return o$1({descriptor:r=>({get(){var r,s="slot"+(i?"[name=".concat(i,"]"):":not([name])"),o=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(s),a=null!=o?e(o,t):[];return n?a.filter((t=>t.matches(n))):a},enumerable:!0,configurable:!0})})} 81/** 82 * @license 83 * Copyright 2017 Google LLC 84 * SPDX-License-Identifier: BSD-3-Clause 85 */function o(t,e,i){var n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},i?l({slot:r,flatten:e,selector:i}):o$1({descriptor:t=>({get(){var t,e,i="slot"+(r?"[name=".concat(r,"]"):":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function getDefaultExportFromNamespaceIfPresent(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function getDefaultExportFromNamespaceIfNotNamed(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")&&1===Object.keys(t).length?t.default:t}function getAugmentedNamespace(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach((function(i){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})})),e}function commonjsRequire(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var lottie$1={exports:{}};(function(module){var root,factory;"undefined"!=typeof navigator&&(root=window||{},factory=function(window){var svgNS="http://www.w3.org/2000/svg",locationHref="",initialDefaultFrame=-999999,_useWebWorker=!1,subframeEnabled=!0,idPrefix="",expressionsPlugin,isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),cachedColors={},bmRnd,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface(){return{}}!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i=e.length;for(t=0;t<i;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"==typeof t&&t.length){var e,i=createSizedArray(t.length),n=t.length;for(e=0;e<n;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){bmRnd=t?Math.round:function(t){return t}}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,i,n){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=n<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,n){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=n<0?-1:1}function BMSegmentStartEvent(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}roundValues(!1);var createElementID=(_count=0,function(){return idPrefix+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,i){var n,r,s,o,a,l,h,c;switch(l=i*(1-e),h=i*(1-(a=6*t-(o=Math.floor(6*t)))*e),c=i*(1-(1-a)*e),o%6){case 0:n=i,r=c,s=l;break;case 1:n=h,r=i,s=l;break;case 2:n=l,r=i,s=c;break;case 3:n=l,r=h,s=i;break;case 4:n=c,r=l,s=i;break;case 5:n=i,r=l,s=h}return[n,r,s]}function RGBtoHSV(t,e,i){var n,r=Math.max(t,e,i),s=Math.min(t,e,i),o=r-s,a=0===r?0:o/r,l=r/255;switch(r){case s:n=0;break;case t:n=e-i+o*(e<i?6:0),n/=6*o;break;case e:n=i-t+2*o,n/=6*o;break;case i:n=t-e+4*o,n/=6*o}return[n,a,l]}function addSaturationToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e;return function(t,e,n){return t<0&&(t=0),e<0&&(e=0),n<0&&(n=0),"#"+i[t]+i[e]+i[n]}}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],n=0;n<i.length;n+=1)i[n](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,n=this._cbs[t].length;i<n;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,n-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var createTypedArray=function(){function t(t,e){var i,n=0,r=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(n=0;n<e;n+=1)r.push(i);return r}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,i){return"float32"===e?new Float32Array(i):"int16"===e?new Int16Array(i):"uint8c"===e?new Uint8ClampedArray(i):t(e,i)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function createNS(t){return document.createElementNS(svgNS,t)}function createTag(t){return document.createElement(t)}function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};
vendor: 4,600 bytes, line 85
85var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return blendModeEnums[t]||""}),blendModeEnums,lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"},Matrix=function(){var t=Math.cos,e=Math.sin,i=Math.tan,n=Math.round;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function s(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(n,-r,0,0,r,n,0,0,0,0,1,0,0,0,0,1)}function o(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(1,0,0,0,0,n,-r,0,0,r,n,0,0,0,0,1)}function a(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(n,0,r,0,0,1,0,0,-r,0,n,0,0,0,0,1)}function l(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(n,-r,0,0,r,n,0,0,0,0,1,0,0,0,0,1)}function h(t,e){return this._t(1,e,t,1,0,0)}function c(t,e){return this.shear(i(t),i(e))}function d(n,r){var s=t(r),o=e(r);return this._t(s,o,0,0,-o,s,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(n),1,0,0,0,0,1,0,0,0,0,1)._t(s,-o,0,0,o,s,0,0,0,0,1,0,0,0,0,1)}function p(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function u(t,e,i,n,r,s,o,a,l,h,c,d,p,u,f,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=n,this.props[4]=r,this.props[5]=s,this.props[6]=o,this.props[7]=a,this.props[8]=l,this.props[9]=h,this.props[10]=c,this.props[11]=d,this.props[12]=p,this.props[13]=u,this.props[14]=f,this.props[15]=m,this}function f(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function m(t,e,i,n,r,s,o,a,l,h,c,d,p,u,f,m){var g=this.props;if(1===t&&0===e&&0===i&&0===n&&0===r&&1===s&&0===o&&0===a&&0===l&&0===h&&1===c&&0===d)return g[12]=g[12]*t+g[15]*p,g[13]=g[13]*s+g[15]*u,g[14]=g[14]*c+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],_=g[3],w=g[4],x=g[5],S=g[6],E=g[7],C=g[8],T=g[9],k=g[10],P=g[11],A=g[12],M=g[13],D=g[14],I=g[15];return g[0]=v*t+y*r+b*l+_*p,g[1]=v*e+y*s+b*h+_*u,g[2]=v*i+y*o+b*c+_*f,g[3]=v*n+y*a+b*d+_*m,g[4]=w*t+x*r+S*l+E*p,g[5]=w*e+x*s+S*h+E*u,g[6]=w*i+x*o+S*c+E*f,g[7]=w*n+x*a+S*d+E*m,g[8]=C*t+T*r+k*l+P*p,g[9]=C*e+T*s+k*h+P*u,g[10]=C*i+T*o+k*c+P*f,g[11]=C*n+T*a+k*d+P*m,g[12]=A*t+M*r+D*l+I*p,g[13]=A*e+M*s+D*h+I*u,g[14]=A*i+M*o+D*c+I*f,g[15]=A*n+M*a+D*d+I*m,this._identityCalculated=!1,this}function g(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function y(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function b(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function _(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function w(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function x(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function S(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function E(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,n=-this.props[4]/t,r=this.props[0]/t,s=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,a=new Matrix;return a.props[0]=e,a.props[1]=i,a.props[4]=n,a.props[5]=r,a.props[12]=s,a.props[13]=o,a}function C(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function T(t){var e,i=t.length,n=[];for(e=0;e<i;e+=1)n[e]=C(t[e]);return n}function k(t,e,i){var n=createTypedArray("float32",6);if(this.isIdentity())n[0]=t[0],n[1]=t[1],n[2]=e[0],n[3]=e[1],n[4]=i[0],n[5]=i[1];else{var r=this.props[0],s=this.props[1],o=this.props[4],a=this.props[5],l=this.props[12],h=this.props[13];
vendor: 4,143 bytes, line 85
85n[0]=t[0]*r+t[1]*o+l,n[1]=t[0]*s+t[1]*a+h,n[2]=e[0]*r+e[1]*o+l,n[3]=e[0]*s+e[1]*a+h,n[4]=i[0]*r+i[1]*o+l,n[5]=i[0]*s+i[1]*a+h}return n}function P(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function A(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function M(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i+=n(1e4*e[t])/1e4,i+=15===t?")":",",t+=1;return i}function D(t){return t<1e-6&&t>0||t>-1e-6&&t<0?n(1e4*t)/1e4:t}function I(){var t=this.props;return"matrix("+D(t[0])+","+D(t[1])+","+D(t[4])+","+D(t[5])+","+D(t[12])+","+D(t[13])+")"}return function(){this.reset=r,this.rotate=s,this.rotateX=o,this.rotateY=a,this.rotateZ=l,this.skew=c,this.skewFromAxis=d,this.shear=h,this.scale=p,this.setTransform=u,this.translate=f,this.transform=m,this.applyToPoint=_,this.applyToX=w,this.applyToY=x,this.applyToZ=S,this.applyToPointArray=P,this.applyToTriplePoints=k,this.applyToPointStringified=A,this.toCSS=M,this.to2dCSS=I,this.clone=y,this.cloneFromProps=b,this.equals=v,this.inversePoints=T,this.inversePoint=C,this.getInverseMatrix=E,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();!function(t,e){var i=this,n=256,r=e.pow(n,6),s=e.pow(2,52),o=2*s,a=255;function l(t){var e,i=t.length,r=this,s=0,o=r.i=r.j=0,l=r.S=[];for(i||(t=[i++]);s<n;)l[s]=s++;for(s=0;s<n;s++)l[s]=l[o=a&o+t[s%i]+(e=l[s])],l[o]=e;r.g=function(t){for(var e,i=0,s=r.i,o=r.j,l=r.S;t--;)e=l[s=a&s+1],i=i*n+l[a&(l[s]=l[o=a&o+e])+(l[o]=e)];return r.i=s,r.j=o,i}}function h(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function c(t,e){var i,n=[],r=typeof t;if(e&&"object"==r)for(i in t)try{n.push(c(t[i],e-1))}catch(t){}return n.length?n:"string"==r?t:t+"\0"}function d(t,e){for(var i,n=t+"",r=0;r<n.length;)e[a&r]=a&(i^=19*e[a&r])+n.charCodeAt(r++);return p(e)}function p(t){return String.fromCharCode.apply(0,t)}e.seedrandom=function(a,u,f){var m=[],g=d(c((u=!0===u?{entropy:!0}:u||{}).entropy?[a,p(t)]:null===a?function(){try{var e=new Uint8Array(n);return(i.crypto||i.msCrypto).getRandomValues(e),p(e)}catch(e){var r=i.navigator,s=r&&r.plugins;return[+new Date,i,s,i.screen,p(t)]}}():a,3),m),v=new l(m),y=function(){for(var t=v.g(6),e=r,i=0;t<s;)t=(t+i)*n,e*=n,i=v.g(1);for(;t>=o;)t/=2,e/=2,i>>>=1;return(t+i)/e};return y.int32=function(){return 0|v.g(4)},y.quick=function(){return v.g(4)/4294967296},y.double=y,d(p(v.S),t),(u.pass||f||function(t,i,n,r){return r&&(r.S&&h(r,v),t.state=function(){return h(v,{})}),n?(e.random=t,i):t})(y,g,"global"in u?u.global:this==e,u.state)},d(e.random(),t)}([],BMMath);var BezierFactory=function(){var t={getBezierEasing:function(t,i,n,r,s){var o=s||("bez_"+t+"_"+i+"_"+n+"_"+r).replace(/\./g,"p");if(e[o])return e[o];var a=new h([t,i,n,r]);return e[o]=a,a}},e={},i=.1,n="function"==typeof Float32Array;function r(t,e){return 1-3*e+3*t}function s(t,e){return 3*e-6*t}function o(t){return 3*t}function a(t,e,i){return((r(e,i)*t+s(e,i))*t+o(e))*t}function l(t,e,i){return 3*r(e,i)*t*t+2*s(e,i)*t+o(e)}function h(t){this._p=t,this._mSampleValues=n?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return h.prototype={get:function(t){var e=this._p[0],i=this._p[1],n=this._p[2],r=this._p[3];return this._precomputed||this._precompute(),e===i&&n===r?t:0===t?0:1===t?1:a(this._getTForX(t),i,r)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],n=this._p[3];this._precomputed=!0,t===e&&i===n||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<11;++n)this._mSampleValues[n]=a(n*i,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],r=this._mSampleValues,s=0,o=1;10!==o&&r[o]<=t;++o)s+=i;var h=s+(t-r[--o])/(r[o+1]-r[o])*i,c=l(h,e,n);return c>=.001?function(t,e,i,n){for(var r=0;r<4;++r){var s=l(e,i,n);if(0===s)return e;e-=(a(e,i,n)-t)/s}return e}
vendor: 4,295 bytes, line 85
85(t,h,e,n):0===c?h:function(t,e,i,n,r){var s,o,l=0;do{(s=a(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o}while(Math.abs(s)>1e-7&&++l<10);return o}(t,s,s+i,e,n)}},t}();function extendPrototype(t,e){var i,n,r=t.length;for(i=0;i<r;i+=1)for(var s in n=t[i].prototype)Object.prototype.hasOwnProperty.call(n,s)&&(e.prototype[s]=n[s])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}function bezFunction(){var t=Math;function e(t,e,i,n,r,s){var o=t*n+e*r+i*s-r*n-s*t-i*e;return o>-.001&&o<.001}var i=function(t,e,i,n){var r,s,o,a,l,h,c=defaultCurveSegments,d=0,p=[],u=[],f=bezierLengthPool.newElement();for(o=i.length,r=0;r<c;r+=1){for(l=r/(c-1),h=0,s=0;s<o;s+=1)a=bmPow(1-l,3)*t[s]+3*bmPow(1-l,2)*l*i[s]+3*(1-l)*bmPow(l,2)*n[s]+bmPow(l,3)*e[s],p[s]=a,null!==u[s]&&(h+=bmPow(p[s]-u[s],2)),u[s]=p[s];h&&(d+=h=bmSqrt(h)),f.percents[r]=l,f.lengths[r]=d}return f.addedLength=d,f};function n(t){this.segmentLength=0,this.points=new Array(t)}function r(t,e){this.partialLength=t,this.point=e}var s,o=(s={},function(t,i,o,a){var l=(t[0]+"_"+t[1]+"_"+i[0]+"_"+i[1]+"_"+o[0]+"_"+o[1]+"_"+a[0]+"_"+a[1]).replace(/\./g,"p");if(!s[l]){var h,c,d,p,u,f,m,g=defaultCurveSegments,v=0,y=null;2===t.length&&(t[0]!==i[0]||t[1]!==i[1])&&e(t[0],t[1],i[0],i[1],t[0]+o[0],t[1]+o[1])&&e(t[0],t[1],i[0],i[1],i[0]+a[0],i[1]+a[1])&&(g=2);var b=new n(g);for(d=o.length,h=0;h<g;h+=1){for(m=createSizedArray(d),u=h/(g-1),f=0,c=0;c<d;c+=1)p=bmPow(1-u,3)*t[c]+3*bmPow(1-u,2)*u*(t[c]+o[c])+3*(1-u)*bmPow(u,2)*(i[c]+a[c])+bmPow(u,3)*i[c],m[c]=p,null!==y&&(f+=bmPow(m[c]-y[c],2));v+=f=bmSqrt(f),b.points[h]=new r(f,m),y=m}b.segmentLength=v,s[l]=b}return s[l]});function a(t,e){var i=e.percents,n=e.lengths,r=i.length,s=bmFloor((r-1)*t),o=t*e.addedLength,a=0;if(s===r-1||0===s||o===n[s])return i[s];for(var l=n[s]>o?-1:1,h=!0;h;)if(n[s]<=o&&n[s+1]>o?(a=(o-n[s])/(n[s+1]-n[s]),h=!1):s+=l,s<0||s>=r-1){if(s===r-1)return i[s];h=!1}return i[s]+(i[s+1]-i[s])*a}var l=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,n=segmentsLengthPool.newElement(),r=t.c,s=t.v,o=t.o,a=t.i,l=t._length,h=n.lengths,c=0;for(e=0;e<l-1;e+=1)h[e]=i(s[e],s[e+1],o[e],a[e+1]),c+=h[e].addedLength;return r&&l&&(h[e]=i(s[e],s[0],o[e],a[0]),c+=h[e].addedLength),n.totalLength=c,n},getNewSegment:function(e,i,n,r,s,o,h){s<0?s=0:s>1&&(s=1);var c,d=a(s,h),p=a(o=o>1?1:o,h),u=e.length,f=1-d,m=1-p,g=f*f*f,v=d*f*f*3,y=d*d*f*3,b=d*d*d,_=f*f*m,w=d*f*m+f*d*m+f*f*p,x=d*d*m+f*d*p+d*f*p,S=d*d*p,E=f*m*m,C=d*m*m+f*p*m+f*m*p,T=d*p*m+f*p*p+d*m*p,k=d*p*p,P=m*m*m,A=p*m*m+m*p*m+m*m*p,M=p*p*m+m*p*p+p*m*p,D=p*p*p;for(c=0;c<u;c+=1)l[4*c]=t.round(1e3*(g*e[c]+v*n[c]+y*r[c]+b*i[c]))/1e3,l[4*c+1]=t.round(1e3*(_*e[c]+w*n[c]+x*r[c]+S*i[c]))/1e3,l[4*c+2]=t.round(1e3*(E*e[c]+C*n[c]+T*r[c]+k*i[c]))/1e3,l[4*c+3]=t.round(1e3*(P*e[c]+A*n[c]+M*r[c]+D*i[c]))/1e3;return l},getPointInSegment:function(e,i,n,r,s,o){var l=a(s,o),h=1-l;return[t.round(1e3*(h*h*h*e[0]+(l*h*h+h*l*h+h*h*l)*n[0]+(l*l*h+h*l*l+l*h*l)*r[0]+l*l*l*i[0]))/1e3,t.round(1e3*(h*h*h*e[1]+(l*h*h+h*l*h+h*h*l)*n[1]+(l*l*h+h*l*l+l*h*l)*r[1]+l*l*l*i[1]))/1e3]},buildBezierData:o,pointOnLine2D:e,pointOnLine3D:function(i,n,r,s,o,a,l,h,c){if(0===r&&0===a&&0===c)return e(i,n,s,o,l,h);var d,p=t.sqrt(t.pow(s-i,2)+t.pow(o-n,2)+t.pow(a-r,2)),u=t.sqrt(t.pow(l-i,2)+t.pow(h-n,2)+t.pow(c-r,2)),f=t.sqrt(t.pow(l-s,2)+t.pow(h-o,2)+t.pow(c-a,2));return(d=p>u?p>f?p-u-f:f-u-p:f>u?f-u-p:u-p-f)>-1e-4&&d<1e-4}}}!function(){for(var t=0,e=["ms","moz","webkit","o"],i=0;i<e.length&&!window.requestAnimationFrame;++i)window.requestAnimationFrame=window[e[i]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[i]+"CancelAnimationFrame"]||window[e[i]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e){var i=(new Date).getTime(),n=Math.max(0,16-(i-t)),r=setTimeout((function(){e(i+n)}),n);return t=i+n,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}();var bez=bezFunction(),dataManager=function(){var t,e,i=1,n=[],r={onmessage:function(){},postMessage:function(e){t({data:e})}},s={postMessage:function(t){r.onmessage({data:t})}};function o(){e||(e=function(e){if(window.Worker&&window.Blob&&_useWebWorker){var i=new Blob(["var _workerSelf = self;
85 self.onmessage = ",e.toString()],{type:"text/javascript"}),n=URL.createObjectURL(i);return new Worker(n)}return t=e,r}((function(t){if(s.dataManager||(s.dataManager=function(){function t(r,s){var o,a,l,h,c,p,u=r.length;for(a=0;a<u;a+=1)if("ks"in(o=r[a])&&!o.completed){if(o.completed=!0,o.tt&&(r[a-1].td=o.tt),o.hasMask){var f=o.masksProperties;for(h=f.length,l=0;l<h;l+=1)if(f[l].pt.k.i)n(f[l].pt.k);else for(p=f[l].pt.k.length,c=0;c<p;c+=1)f[l].pt.k[c].s&&n(f[l].pt.k[c].s[0]),f[l].pt.k[c].e&&n(f[l].pt.k[c].e[0])}0===o.ty?(o.layers=e(o.refId,s),t(o.layers,s)):4===o.ty?i(o.shapes):5===o.ty&&d(o)}}function e(t,e){for(var i=0,n=e.length;i<n;){if(e[i].id===t)return e[i].layers.__used?JSON.parse(JSON.stringify(e[i].layers)):(e[i].layers.__used=!0,e[i].layers);i+=1}return null}function i(t){var e,r,s;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)n(t[e].ks.k);else for(s=t[e].ks.k.length,r=0;r<s;r+=1)t[e].ks.k[r].s&&n(t[e].ks.k[r].s[0]),t[e].ks.k[r].e&&n(t[e].ks.k[r].e[0]);else"gr"===t[e].ty&&i(t[e].it)}function n(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function r(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var s,o=function(){var t=[4,4,14];function e(t){var e,i,n,r=t.length;for(e=0;e<r;e+=1)5===t[e].ty&&(void 0,n=(i=t[e]).t.d,i.t.d={k:[{s:n,t:0}]})}return function(i){if(r(t,i.v)&&(e(i.layers),i.assets)){var n,s=i.assets.length;for(n=0;n<s;n+=1)i.assets[n].layers&&e(i.assets[n].layers)}}}(),a=(s=[4,7,99],function(t){if(t.chars&&!r(s,t.v)){var e,i,o,a,l,h=t.chars.length;for(e=0;e<h;e+=1)if(t.chars[e].data&&t.chars[e].data.shapes)for(o=(l=t.chars[e].data.shapes[0].it).length,i=0;i<o;i+=1)(a=l[i].ks.k).__converted||(n(l[i].ks.k),a.__converted=!0)}}),l=function(){var t=[5,7,15];function e(t){var e,i,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(i=void 0,"number"==typeof(i=t[e].t.p).a&&(i.a={a:0,k:i.a}),"number"==typeof i.p&&(i.p={a:0,k:i.p}),"number"==typeof i.r&&(i.r={a:0,k:i.r}))}return function(i){if(r(t,i.v)&&(e(i.layers),i.assets)){var n,s=i.assets.length;for(n=0;n<s;n+=1)i.assets[n].layers&&e(i.assets[n].layers)}}}(),h=function(){var t=[4,1,9];function e(t){var i,n,r,s=t.length;for(i=0;i<s;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(r=t[i].c.k.length,n=0;n<r;n+=1)t[i].c.k[n].s&&(t[i].c.k[n].s[0]/=255,t[i].c.k[n].s[1]/=255,t[i].c.k[n].s[2]/=255,t[i].c.k[n].s[3]/=255),t[i].c.k[n].e&&(t[i].c.k[n].e[0]/=255,t[i].c.k[n].e[1]/=255,t[i].c.k[n].e[2]/=255,t[i].c.k[n].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function i(t){var i,n=t.length;for(i=0;i<n;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var n,s=e.assets.length;for(n=0;n<s;n+=1)e.assets[n].layers&&i(e.assets[n].layers)}}}(),c=function(){var t=[4,4,18];function e(t){var i,n,r;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(r=t[i].ks.k.length,n=0;n<r;n+=1)t[i].ks.k[n].s&&(t[i].ks.k[n].s[0].c=t[i].closed),t[i].ks.k[n].e&&(t[i].ks.k[n].e[0].c=t[i].closed);else"gr"===t[i].ty&&e(t[i].it)}function i(t){var i,n,r,s,o,a,l=t.length;for(n=0;n<l;n+=1){if((i=t[n]).hasMask){var h=i.masksProperties;for(s=h.length,r=0;r<s;r+=1)if(h[r].pt.k.i)h[r].pt.k.c=h[r].cl;else for(a=h[r].pt.k.length,o=0;o<a;o+=1)h[r].pt.k[o].s&&(h[r].pt.k[o].s[0].c=h[r].cl),h[r].pt.k[o].e&&(h[r].pt.k[o].e[0].c=h[r].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var n,s=e.assets.length;for(n=0;n<s;n+=1)e.assets[n].layers&&i(e.assets[n].layers)}}}();function d(t){0!==t.t.a.length||"m"in t.t.p||(t.singleShape=!0)}var p={completeData:function(e){e.__complete||(h(e),o(e),a(e),l(e),c(e),t(e.layers,e.assets),e.__complete=!0)}};return p.checkColors=h,p.checkChars=a,p.checkPathProperties=l,p.checkShapes=c,p.completeLayers=t,p}()),s.assetLoader||(s.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"==typeof t.response?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,i,n,r){var s,o=new XMLHttpRequest;try{o.responseType="json"}catch(t){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)s=t(o),n(s);else try{s=t(o),n(s)}catch(t){r&&r(t)}};try{o.open("GET",e,!0)}catch(t){o.open("GET",i+"/"+e,!0)}o.send()}}}()),"loadAnimation"===t.data.type)s.assetLoader.load(t.data.path,t.data.fullPath,(function(e){s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){s.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var e=t.data.animation;s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&s.assetLoader.load(t.data.path,t.data.fullPath,(function(e){s.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){s.postMessage({id:t.data.id,status:"error"})}))})),e.onmessage=function(t){var e=t.data,i=e.id,r=n[i];
vendor: 4,106 bytes, line 85
85n[i]=null,"success"===e.status?r.onComplete(e.payload):r.onError&&r.onError()})}function a(t,e){var r="processId_"+(i+=1);return n[r]={onComplete:t,onError:e},r}return{loadAnimation:function(t,i,n){o();var r=a(i,n);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:r})},loadData:function(t,i,n){o();var r=a(i,n);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:r})},completeAnimation:function(t,i,n){o();var r=a(i,n);e.postMessage({type:"complete",animation:t,id:r})}}}();function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",n="normal",r=e.length,s=0;s<r;s+=1)switch(e[s].toLowerCase()){case"italic":n="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:n,weight:t.fWeight||i}}var FontManager=function(){var t={w:0,size:0,shapes:[]},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],n=[65039,8205];function r(t,e){var i=createTag("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=e;var n=createTag("span");n.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(n),document.body.appendChild(i);var r=n.offsetWidth;return n.style.fontFamily=function(t){var e,i=t.split(","),n=i.length,r=[];for(e=0;e<n;e+=1)"sans-serif"!==i[e]&&"monospace"!==i[e]&&r.push(i[e]);return r.join(",")}(t)+", "+e,{node:n,w:r,parent:i}}function s(t,e){var i=createNS("text");i.style.fontSize="100px";var n=getFontProperties(e);return i.setAttribute("font-family",e.fFamily),i.setAttribute("font-style",n.style),i.setAttribute("font-weight",n.weight),i.textContent="1",e.fClass?(i.style.fontFamily="inherit",i.setAttribute("class",e.fClass)):i.style.fontFamily=e.fFamily,t.appendChild(i),createTag("canvas").getContext("2d").font=e.fWeight+" "+e.fStyle+" 100px "+e.fFamily,i}var o=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};o.isModifier=function(t,e){var n=t.toString(16)+e.toString(16);return-1!==i.indexOf(n)},o.isZeroWidthJoiner=function(t,e){return e?t===n[0]&&e===n[1]:t===n[1]},o.isCombinedCharacter=function(t){return-1!==e.indexOf(t)};var a={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var i,n,r=t.length,s=this.chars.length;for(e=0;e<r;e+=1){for(i=0,n=!1;i<s;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(n=!0),i+=1;n||(this.chars.push(t[e]),s+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);var i,n=t.list,o=n.length,a=o;for(i=0;i<o;i+=1){var l,h,c=!0;if(n[i].loaded=!1,n[i].monoCase=r(n[i].fFamily,"monospace"),n[i].sansCase=r(n[i].fFamily,"sans-serif"),n[i].fPath){if("p"===n[i].fOrigin||3===n[i].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[i].fFamily+'"], style[f-origin="3"][f-family="'+n[i].fFamily+'"]')).length>0&&(c=!1),c){var d=createTag("style");d.setAttribute("f-forigin",n[i].fOrigin),d.setAttribute("f-origin",n[i].origin),d.setAttribute("f-family",n[i].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+n[i].fFamily+"; font-style: normal; src: url('"+n[i].fPath+"');}",e.appendChild(d)}}else if("g"===n[i].fOrigin||1===n[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),h=0;h<l.length;h+=1)-1!==l[h].href.indexOf(n[i].fPath)&&(c=!1);if(c){var p=createTag("link");p.setAttribute("f-forigin",n[i].fOrigin),p.setAttribute("f-origin",n[i].origin),p.t
vendor: 8,820 bytes, lines 85-86
85ype="text/css",p.rel="stylesheet",p.href=n[i].fPath,document.body.appendChild(p)}}else if("t"===n[i].fOrigin||2===n[i].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),h=0;h<l.length;h+=1)n[i].fPath===l[h].src&&(c=!1);if(c){var u=createTag("link");u.setAttribute("f-forigin",n[i].fOrigin),u.setAttribute("f-origin",n[i].origin),u.setAttribute("rel","stylesheet"),u.setAttribute("href",n[i].fPath),e.appendChild(u)}}}else n[i].loaded=!0,a-=1;n[i].helper=s(e,n[i]),n[i].cache={},this.fonts.push(n[i])}0===a?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,i,n){for(var r=0,s=this.chars.length;r<s;){if(this.chars[r].ch===e&&this.chars[r].style===i&&this.chars[r].fFamily===n)return this.chars[r];r+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,i,n)),t},getFontByName:function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,i){var n=this.getFontByName(e),r=t.charCodeAt(0);if(!n.cache[r+1]){var s=n.helper;if(" "===t){s.textContent="|"+t+"|";var o=s.getComputedTextLength();s.textContent="||";var a=s.getComputedTextLength();n.cache[r+1]=(o-a)/100}else s.textContent=t,n.cache[r+1]=s.getComputedTextLength()/100}return n.cache[r+1]*i},checkLoadedFonts:function(){var t,e,i,n=this.fonts.length,r=n;for(t=0;t<n;t+=1)this.fonts[t].loaded?r-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,i=this.fonts[t].monoCase.w,e.offsetWidth!==i?(r-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,i=this.fonts[t].sansCase.w,e.offsetWidth!==i&&(r-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==r&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return o.prototype=a,o}(),PropertyFactory=function(){var t=initialDefaultFrame,e=Math.abs;function i(t,e){var i,r=this.offsetTime;"multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length));for(var s,o,a,l,h,c,d,p,u,f=e.lastIndex,m=f,g=this.keyframes.length-1,v=!0;v;){if(s=this.keyframes[m],o=this.keyframes[m+1],m===g-1&&t>=o.t-r){s.h&&(s=o),f=0;break}if(o.t-r>t){f=m;break}m<g-1?m+=1:(f=0,v=!1)}a=this.keyframesMetadata[m]||{};var y,b,_,w,x,S,E,C,T,k,P=o.t-r,A=s.t-r;if(s.to){a.bezierData||(a.bezierData=bez.buildBezierData(s.s,o.s||s.e,s.to,s.ti));var M=a.bezierData;if(t>=P||t<A){var D=t>=P?M.points.length-1:0;for(h=M.points[D].point.length,l=0;l<h;l+=1)i[l]=M.points[D].point[l]}else{a.__fnct?u=a.__fnct:(u=BezierFactory.getBezierEasing(s.o.x,s.o.y,s.i.x,s.i.y,s.n).get,a.__fnct=u), 86c=u((t-A)/(P-A));var I,O=M.segmentLength*c,L=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastAddedLength:0;for(p=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastPoint:0,v=!0,d=M.points.length;v;){if(L+=M.points[p].partialLength,0===O||0===c||p===M.points.length-1){for(h=M.points[p].point.length,l=0;l<h;l+=1)i[l]=M.points[p].point[l];break}if(O>=L&&O<L+M.points[p+1].partialLength){for(I=(O-L)/M.points[p+1].partialLength,h=M.points[p].point.length,l=0;l<h;l+=1)i[l]=M.points[p].point[l]+(M.points[p+1].point[l]-M.points[p].point[l])*I;break}p<d-1?p+=1:v=!1}e._lastPoint=p,e._lastAddedLength=L-M.points[p].partialLength,e._lastKeyframeIndex=m}}else{var F,R,z,B,$;if(g=s.s.length,y=o.s||s.e,this.sh&&1!==s.h)if(t>=P)i[0]=y[0],i[1]=y[1],i[2]=y[2];else if(t<=A)i[0]=s.s[0],i[1]=s.s[1],i[2]=s.s[2];else{b=i,_=function(t,e,i){var n,r,s,o,a,l=[],h=t[0],c=t[1],d=t[2],p=t[3],u=e[0],f=e[1],m=e[2],g=e[3];return(r=h*u+c*f+d*m+p*g)<0&&(r=-r,u=-u,f=-f,m=-m,g=-g),1-r>1e-6?(n=Math.acos(r),s=Math.sin(n),o=Math.sin((1-i)*n)/s,a=Math.sin(i*n)/s):(o=1-i,a=i),l[0]=o*h+a*u,l[1]=o*c+a*f,l[2]=o*d+a*m,l[3]=o*p+a*g,l}(n(s.s),n(y),(t-A)/(P-A)),w=_[0],x=_[1],S=_[2],E=_[3],C=Math.atan2(2*x*E-2*w*S,1-2*x*x-2*S*S),T=Math.asin(2*w*x+2*S*E),k=Math.atan2(2*w*E-2*x*S,1-2*w*w-2*S*S),b[0]=C/degToRads,b[1]=T/degToRads,b[2]=k/degToRads}else for(m=0;m<g;m+=1)1!==s.h&&(t>=P?c=1:t<A?c=0:(s.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[m]?u=a.__fnct[m]:(F=void 0===s.o.x[m]?s.o.x[0]:s.o.x[m],R=void 0===s.o.y[m]?s.o.y[0]:s.o.y[m],z=void 0===s.i.x[m]?s.i.x[0]:s.i.x[m],B=void 0===s.i.y[m]?s.i.y[0]:s.i.y[m],u=BezierFactory.getBezierEasing(F,R,z,B).get,a.__fnct[m]=u)):a.__fnct?u=a.__fnct:(F=s.o.x,R=s.o.y,z=s.i.x,B=s.i.y,u=BezierFactory.getBezierEasing(F,R,z,B).get,s.keyframeMetadata=u),c=u((t-A)/(P-A)))),y=o.s||s.e,$=1===s.h?s.s[m]:s.s[m]+(y[m]-s.s[m])*c,"multidimensional"===this.propType?i[m]=$:i=$}return e.lastIndex=f,i}function n(t){var e=t[0]*degToRads,i=t[1]*degToRads,n=t[2]*degToRads,r=Math.cos(e/2),s=Math.cos(i/2),o=Math.cos(n/2),a=Math.sin(e/2),l=Math.sin(i/2),h=Math.sin(n/2);return[a*l*o+r*s*h,a*s*o+r*l*h,r*l*o-a*s*h,r*s*o-a*l*h]}function r(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<i&&e<i))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function s(t){var i;if("unidimensional"===this.propType)i=t*this.mult,e(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var n=0,r=this.v.length;n<r;)i=t[n]*this.mult,e(this.v[n]-i)>1e-5&&(this.v[n]=i,this._mdf=!0),n+=1}function o(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function a(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(t,e,i,n){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=o,this.setVValue=s,this.addEffect=a}function h(t,e,i,n){var r;this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var l=e.k.length;for(this.v=createTypedArray("float32",l),this.pv=createTypedArray("float32",l),this.vel=createTypedArray("float32",l),r=0;r<l;r+=1)this.v[r]=e.k[r]*this.mult,this.pv[r]=e.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=o,this.setVValue=s,this.addEffect=a}function c(e,n,l,h){this.propType="unidimensional",this.keyframes=n.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=n,this.mult=l||1,this.elem=e,this.container=h,this.comp=e.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=o,this.setVValue=s,this.interpolateValue=i,this.effectsSequence=[r.bind(this)],this.addEffect=a}function d(e,n,l,h){var c;this.propType="multidimensional";var d,p,u,f,m=n.k.length;for(c=0;c<m-1;c+=1)n.k[c].to&&n.k[c].s&&n.k[c+1]&&n.k[c+1].s&&(d=n.k[c].s,p=n.k[c+1].s,u=n.k[c].to,f=n.k[c].ti,(2===d.length&&(d[0]!==p[0]||d[1]!==p[1])&&bez.pointOnLine2D(d[0],d[1],p[0],p[1],d[0]+u[0],d[1]+u[1])&&bez.pointOnLine2D(d[0],d[1],p[0],p[1],p[0]+f[0],p[1]+f[1])||3===d.length&&(d[0]!==p[0]||d[1]!==p[1]||d[2]!==p[2])&&bez.pointOnLine3D(d[0],d[1],d[2],p[0],p[1],p[2],d[0]+u[0],d[1]+u[1],d[2]+u[2])&&bez.pointOnLine3D(d[0],d[1],d[2],p[0],p[1],p[2],p[0]+f[0],p[1]+f[1],p[2]+f[2]))&&(n.k[c].to=null,n.k[c].ti=null),d[0]===p[0]&&d[1]===p[1]&&0===u[0]&&0===u[1]&&0===f[0]&&0===f[1]&&(2===d.length||d[2]===p[2]&&0===u[2]&&0===f[2])&&(n.k[c].to=null,n.k[c].ti=null));this.effectsSequence=[r.bind(this)],this.data=n,this.keyframes=n.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=e,this.container=h,this.comp=e.comp,this.getValue=o,this.setVValue=s,this.interpolateValue=i,this.frameId=-1;var g=n.k[0].s.length;for(this.v=createTypedArray("float32",g),this.pv=createTypedArray("float32",g),c=0;c<g;c+=1)this.v[c]=t,this.pv[c]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",g)},this.addEffect=a}
vendor: 4,374 bytes, line 86
86var p={getProp:function(t,e,i,n,r){var s;if(e.k.length)if("number"==typeof e.k[0])s=new h(t,e,n,r);else switch(i){case 0:s=new c(t,e,n,r);break;case 1:s=new d(t,e,n,r)}else s=new l(t,e,n,r);return s.effectsSequence.length&&r.addDynamicProperty(s),s}};return p}(),TransformPropertyFactory=function(){var t=[0,0];function e(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var n,r=e.or.k.length;for(n=0;n<r;n+=1)e.or.k[n].to=null,e.or.k[n].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var n,r;if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),r=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(n=this.p.pv,r=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],r=[];var s=this.px,o=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(n[0]=s.getValueAtTime((s.keyframes[0].t+.01)/i,0),n[1]=o.getValueAtTime((o.keyframes[0].t+.01)/i,0),r[0]=s.getValueAtTime(s.keyframes[0].t/i,0),r[1]=o.getValueAtTime(o.keyframes[0].t/i,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(n[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/i,0),n[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/i,0),r[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/i,0),r[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/i,0)):(n=[s.pv,o.pv],r[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/i,s.offsetTime),r[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/i,o.offsetTime))}else n=r=t;
vendor: 8,099 bytes, line 86
86this.v.rotate(-Math.atan2(n[1]-r[1],n[0]-r[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,i,n){return new e(t,i,n)}}}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,i,n,r){var s;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}(!s[n]||s[n]&&!r)&&(s[n]=pointPool.newElement()),s[n][0]=t,s[n][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,n,r,s,o,a){this.setXYAt(t,e,"v",o,a),this.setXYAt(i,n,"o",o,a),this.setXYAt(r,s,"i",o,a)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,n=this.i,r=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],n[0][0],n[0][1],i[0][0],i[0][1],0,!1),r=1);var s,o=this._length-1,a=this._length;for(s=r;s<a;s+=1)t.setTripleAt(e[o][0],e[o][1],n[o][0],n[o][1],i[o][0],i[o][1],s,!1),o-=1;return t};var ShapePropertyFactory=function(){var t=-999999;function e(t,e,i){var n,r,s,o,a,l,h,c,d,p=i.lastIndex,u=this.keyframes;if(t<u[0].t-this.offsetTime)n=u[0].s[0],s=!0,p=0;else if(t>=u[u.length-1].t-this.offsetTime)n=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0],s=!0;else{for(var f,m,g,v=p,y=u.length-1,b=!0;b&&(f=u[v],!((m=u[v+1]).t-this.offsetTime>t));)v<y-1?v+=1:b=!1;if(g=this.keyframesMetadata[v]||{},p=v,!(s=1===f.h)){if(t>=m.t-this.offsetTime)c=1;else if(t<f.t-this.offsetTime)c=0;else{var _;g.__fnct?_=g.__fnct:(_=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=_),c=_((t-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}r=m.s?m.s[0]:f.e[0]}n=f.s[0]}for(l=e._length,h=n.i[0].length,i.lastIndex=p,o=0;o<l;o+=1)for(a=0;a<h;a+=1)d=s?n.i[o][a]:n.i[o][a]+(r.i[o][a]-n.i[o][a])*c,e.i[o][a]=d,d=s?n.o[o][a]:n.o[o][a]+(r.o[o][a]-n.o[o][a])*c,e.o[o][a]=d,d=s?n.v[o][a]:n.v[o][a]+(r.v[o][a]-n.v[o][a])*c,e.v[o][a]=d}function i(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==t&&(r<i&&e<i||r>n&&e>n)||(this._caching.lastIndex=r<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function n(){this.paths=this.localShapeCollection}function r(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,n=t._length;for(i=0;i<n;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function s(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var i=this.effectsSequence.length;for(e=0;e<i;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function o(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var r=3===i?e.pt.k:e.ks.k;this.v=shapePool.clone(r),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function a(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,r,s){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===s?r.pt.k:r.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=n,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}o.prototype.interpolateShape=e,o.prototype.getValue=s,o.prototype.setVValue=r,o.prototype.addEffect=a,l.prototype.getValue=s,l.prototype.interpolateShape=e,l.prototype.setVValue=r,l.prototype.addEffect=a;var h=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],i=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,s=3!==this.d,o=this.v;o.v[0][0]=e,o.v[0][1]=i-r,o.v[1][0]=s?e+n:e-n,o.v[1][1]=i,o.v[2][0]=e,o.v[2][1]=i+r,o.v[3][0]=s?e-n:e+n,o.v[3][1]=i,o.i[0][0]=s?e-n*t:e+n*t,o.i[0][1]=i-r,o.i[1][0]=s?e+n:e-n,o.i[1][1]=i-r*t,o.i[2][0]=s?e+n*t:e-n*t,o.i[2][1]=i+r,o.i[3][0]=s?e-n:e+n,o.i[3][1]=i+r*t,o.o[0][0]=s?e+n*t:e-n*t,o.o[0][1]=i-r,o.o[1][0]=s?e+n:e-n,o.o[1][1]=i+r*t,o.o[2][0]=s?e-n*t:e+n*t,o.o[2][1]=i+r,o.o[3][0]=s?e-n:e+n,o.o[3][1]=i-r*t}},extendPrototype([DynamicPropertyContainer],e),e}(),c=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Pro
vendor: 8,993 bytes, line 86
86pertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,i,n,r=2*Math.floor(this.pt.v),s=2*Math.PI/r,o=!0,a=this.or.v,l=this.ir.v,h=this.os.v,c=this.is.v,d=2*Math.PI*a/(2*r),p=2*Math.PI*l/(2*r),u=-Math.PI/2;u+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<r;t+=1){i=o?h:c,n=o?d:p;var m=(e=o?a:l)*Math.cos(u),g=e*Math.sin(u),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*n*i*f,g-y*n*i*f,m+v*n*i*f,g+y*n*i*f,t,!0),o=!o,u+=s*f}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,n=this.or.v,r=this.os.v,s=2*Math.PI*n/(4*e),o=.5*-Math.PI,a=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=n*Math.cos(o),h=n*Math.sin(o),c=0===l&&0===h?0:h/Math.sqrt(l*l+h*h),d=0===l&&0===h?0:-l/Math.sqrt(l*l+h*h);l+=+this.p.v[0],h+=+this.p.v[1],this.v.setTripleAt(l,h,l-c*s*r*a,h-d*s*r*a,l+c*s*r*a,h+d*s*r*a,t,!0),o+=i*a}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),d=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,n=this.s.v[1]/2,r=bmMin(i,n,this.r.v),s=r*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-n+r,t+i,e-n+r,t+i,e-n+s,0,!0),this.v.setTripleAt(t+i,e+n-r,t+i,e+n-s,t+i,e+n-r,1,!0),0!==r?(this.v.setTripleAt(t+i-r,e+n,t+i-r,e+n,t+i-s,e+n,2,!0),this.v.setTripleAt(t-i+r,e+n,t-i+s,e+n,t-i+r,e+n,3,!0),this.v.setTripleAt(t-i,e+n-r,t-i,e+n-r,t-i,e+n-s,4,!0),this.v.setTripleAt(t-i,e-n+r,t-i,e-n+s,t-i,e-n+r,5,!0),this.v.setTripleAt(t-i+r,e-n,t-i+r,e-n,t-i+s,e-n,6,!0),this.v.setTripleAt(t+i-r,e-n,t+i-s,e-n,t+i-r,e-n,7,!0)):(this.v.setTripleAt(t-i,e+n,t-i+s,e+n,t-i,e+n,2),this.v.setTripleAt(t-i,e-n,t-i,e-n+s,t-i,e-n,3))):(this.v.setTripleAt(t+i,e-n+r,t+i,e-n+s,t+i,e-n+r,0,!0),0!==r?(this.v.setTripleAt(t+i-r,e-n,t+i-r,e-n,t+i-s,e-n,1,!0),this.v.setTripleAt(t-i+r,e-n,t-i+s,e-n,t-i+r,e-n,2,!0),this.v.setTripleAt(t-i,e-n+r,t-i,e-n+r,t-i,e-n+s,3,!0),this.v.setTripleAt(t-i,e+n-r,t-i,e+n-s,t-i,e+n-r,4,!0),this.v.setTripleAt(t-i+r,e+n,t-i+r,e+n,t-i+s,e+n,5,!0),this.v.setTripleAt(t+i-r,e+n,t+i-s,e+n,t+i-r,e+n,6,!0),this.v.setTripleAt(t+i,e+n-r,t+i,e+n-r,t+i,e+n-s,7,!0)):(this.v.setTripleAt(t-i,e-n,t-i+s,e-n,t-i,e-n,1,!0),this.v.setTripleAt(t-i,e+n,t-i,e+n-s,t-i,e+n,2,!0),this.v.setTripleAt(t+i,e+n,t+i-s,e+n,t+i,e+n,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],t),t}(),p={getShapeProp:function(t,e,i){var n;return 3===i||4===i?n=(3===i?e.pt:e.ks).k.length?new l(t,e,i):new o(t,e,i):5===i?n=new d(t,e):6===i?n=new h(t,e):7===i&&(n=new c(t,e)),n.k&&t.addDynamicProperty(n),n},getConstructorFunction:function(){return o},getKeyframedConstructorFunction:function(){return l}};return p}(),ShapeModifiers=(ob={},modifiers={},ob.registerModifier=function(t,e){modifiers[t]||(modifiers[t]=e)},ob.getModifier=function(t,e,i){return new modifiers[t](e,i)},ob),ob,modifiers;function ShapeModifier(){}function TrimModifier(){}function RoundCornersModifier(){}function PuckerAndBloatModifier(){}function RepeaterModifier(){}function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}function DashProperty(t,e,i,n){var r;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var s,o=e.length||0;for(r=0;r<o;r+=1)s=PropertyFactory.getProp(t,e[r].v,0,0,this),this.k=s.k||this.k,this.dataProps[r]={n:e[r].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function GradientProperty(t,e,i){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var n=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,n,r){var s=[];e<=1?s.push({s:t,e:e}):t>=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var o,a,l=[],h=s.length;for(o=0;o<h;o+=1){var c,d;(a=s[o]).e*r<n||a.s*r>n+i||(c=a.s*r<=n?0:(a.s*r-n)/i,d=a.e*r>=n+i?1:(a.e*r-n)/i,l.push([c,d]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,i,n,r;if(this._mdf||t){var s=this.o.v%360/360;if(s<0&&(s+=1),(e=this.s.v>1?1+s:this.s.v<0?0+s:this.s.v+s)>(i=this.e.v>1?1+s:this.e.v<0?0+s:this.e.v+s)){var o=e;e=i,i=o}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var a,l,h,c,d,p=this.shapes.length,u=0;if(i===e)for(r=0;r<p;r+=1)this.shapes[r].localShapeCollection.releaseShapes(),this.shapes[r].shape._mdf=!0,this.shapes[r].shape.paths=this.shapes[r].localShapeCollection,this._mdf&&(this.shapes[r].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(r=0;r<p;r+=1)this.shapes[r].pathsData.length=0,this.shapes[r].shape._mdf=!0}else{var f,m,g=[];for(r=0;r<p;r+=1)if((f=this.shapes[r]).shape._mdf||this._mdf||t||2===this.m){if(l=(n=f.shape.paths)._length,d=0,!f.shape._mdf&&f.pathsData.length)d=f.totalShapeLength;else{for(h=this.releasePathsData(f.pathsData),a=0;a<l;a+=1)c=bez.getSegmentsLength(n.shapes[a]),h.push(c),d+=c.totalLength;f.totalShapeLength=d,f.pathsData=h}u+=d,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var v,y=e,b=i,_=0;for(r=p-1;r>=0;r-=1)if((f=this.shapes[r]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&p>1?(v=this.calculateShapeEdges(e,i,f.totalShapeLength,_,u),_+=f.totalShapeLength):v=[[y,b]],l=v.length,a=0;a<l;a+=1){y=v[a][0],b=v[a][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*y,e:f.totalShapeLength*b}):y>=1?g.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var w=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>
vendor: 10,223 bytes, lines 86-87
861)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var x=w.pop();this.addPaths(w,m),w=this.addShapes(f,g[1],x)}else this.addPaths(w,m),w=this.addShapes(f,g[1]);this.addPaths(w,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)e.addShape(t[i])},TrimModifier.prototype.addSegment=function(t,e,i,n,r,s,o){r.setXYAt(e[0],e[1],"o",s),r.setXYAt(i[0],i[1],"i",s+1),o&&r.setXYAt(t[0],t[1],"v",s),r.setXYAt(n[0],n[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,n){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),n&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},TrimModifier.prototype.addShapes=function(t,e,i){var n,r,s,o,a,l,h,c,d=t.pathsData,p=t.shape.paths.shapes,u=t.shape.paths._length,f=0,m=[],g=!0;for(i?(a=i._length,c=i._length):(i=shapePool.newElement(),a=0,c=0),m.push(i),n=0;n<u;n+=1){for(l=d[n].lengths,i.c=p[n].c,s=p[n].c?l.length:l.length+1,r=1;r<s;r+=1)if(f+(o=l[r-1]).addedLength<e.s)f+=o.addedLength,i.c=!1;else{if(f>e.e){i.c=!1;break}e.s<=f&&e.e>=f+o.addedLength?(this.addSegment(p[n].v[r-1],p[n].o[r-1],p[n].i[r],p[n].v[r],i,a,g),g=!1):(h=bez.getNewSegment(p[n].v[r-1],p[n].v[r],p[n].o[r-1],p[n].i[r],(e.s-f)/o.addedLength,(e.e-f)/o.addedLength,l[r-1]),this.addSegmentFromArray(h,i,a,g),g=!1,i.c=!1),f+=o.addedLength,a+=1}if(p[n].c&&l.length){if(o=l[r-1],f<=e.e){var v=l[r-1].addedLength;e.s<=f&&e.e>=f+v?(this.addSegment(p[n].v[r-1],p[n].o[r-1],p[n].i[0],p[n].v[0],i,a,g),g=!1):(h=bez.getNewSegment(p[n].v[r-1],p[n].v[0],p[n].o[r-1],p[n].i[0],(e.s-f)/v,(e.e-f)/v,l[r-1]),this.addSegmentFromArray(h,i,a,g),g=!1,i.c=!1)}else i.c=!1;f+=o.addedLength,a+=1}if(i._length&&(i.setXYAt(i.v[c][0],i.v[c][1],"i",c),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),f>e.e)break;n<u-1&&(i=shapePool.newElement(),g=!0,m.push(i),a=0)}return m},ShapeModifiers.registerModifier("tm",TrimModifier),extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var i,n=shapePool.newElement();n.c=t.c;var r,s,o,a,l,h,c,d,p,u,f,m,g=t._length,v=0;for(i=0;i<g;i+=1)r=t.v[i],o=t.o[i],s=t.i[i],r[0]===o[0]&&r[1]===o[1]&&r[0]===s[0]&&r[1]===s[1]?0!==i&&i!==g-1||t.c?(a=0===i?t.v[g-1]:t.v[i-1],h=(l=Math.sqrt(Math.pow(r[0]-a[0],2)+Math.pow(r[1]-a[1],2)))?Math.min(l/2,e)/l:0,c=f=r[0]+(a[0]-r[0])*h,d=m=r[1]-(r[1]-a[1])*h,p=c-(c-r[0])*roundCorner,u=d-(d-r[1])*roundCorner,n.setTripleAt(c,d,p,u,f,m,v),v+=1,a=i===g-1?t.v[0]:t.v[i+1],h=(l=Math.sqrt(Math.pow(r[0]-a[0],2)+Math.pow(r[1]-a[1],2)))?Math.min(l/2,e)/l:0,c=p=r[0]+(a[0]-r[0])*h,d=u=r[1]+(a[1]-r[1])*h,f=c-(c-r[0])*roundCorner,m=d-(d-r[1])*roundCorner,n.setTripleAt(c,d,p,u,f,m,v),v+=1):(n.setTripleAt(r[0],r[1],o[0],o[1],s[0],s[1],v),v+=1):(n.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],v),v+=1);return n},RoundCornersModifier.prototype.processShapes=function(t){var e,i,n,r,s,o,a=this.shapes.length,l=this.rd.v;if(0!==l)for(i=0;i<a;i+=1){if(o=(s=this.shapes[i]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r=s.shape.paths._length,n=0;n<r;n+=1)o.addShape(this.processPath(e[n],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ShapeModifiers.registerModifier("rd",RoundCornersModifier),extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var i=e/100,n=[0,0],r=t._length,s=0;for(s=0;s<r;s+=1)n[0]+=t.v[s][0],n[1]+=t.v[s][1];n[0]/=r,n[1]/=r;var o,a,l,h,c,d,p=shapePool.newElement();for(p.c=t.c,s=0;s<r;s+=1)o=t.v[s][0]+(n[0]-t.v[s][0])*i,a=t.v[s][1]+(n[1]-t.v[s][1])*i,l=t.o[s][0]+(n[0]-t.o[s][0])*-i,h=t.o[s][1]+(n[1]-t.o[s][1])*-i,c=t.i[s][0]+(n[0]-t.i[s][0])*-i,d=t.i[s][1]+(n[1]-t.i[s][1])*-i,p.setTripleAt(o,a,l,h,c,d,s);return p},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,n,r,s,o,a=this.shapes.length,l=this.amount.v;if(0!==l)for(i=0;i<a;i+=1){if(o=(s=this.shapes[i]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r=s.shape.paths._length,n=0;n<r;n+=1)o.addShape(this.processPath(e[n],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier), 87extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,i,n,r,s){var o=s?-1:1,a=n.s.v[0]+(1-n.s.v[0])*(1-r),l=n.s.v[1]+(1-n.s.v[1])*(1-r);t.translate(n.p.v[0]*o*r,n.p.v[1]*o*r,n.p.v[2]),e.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),e.rotate(-n.r.v*o*r),e.translate(n.a.v[0],n.a.v[1],n.a.v[2]),i.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),i.scale(s?1/a:a,s?1/l:l),i.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,n){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,i,n,r,s,o=!1;if(this._mdf||t){var a,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}for(s=0,n=0;n<=this._groups.length-1;n+=1){if(a=s<l,this._groups[n]._render=a,this.changeGroupRender(this._groups[n].it,a),!a){var c=this.elemsData[n].it,d=c[c.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}s+=1}this._currentCopies=l;var p=this.o.v,u=p%1,f=p>0?Math.floor(p):Math.ceil(p),m=this.pMatrix.props,g=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,_=0;if(p>0){for(;_<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),_+=u)}else if(p<0){for(;_>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),_-=u)}for(n=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,s=this._currentCopies;s;){if(b=(i=(e=this.elemsData[n].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==_){for((0!==n&&1===r||n!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),y=0;y<b;y+=1)i[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<b;y+=1)i[y]=this.matrix.props[y];_+=1,s-=1,n+=r}}else for(s=this._currentCopies,n=0,r=1;s;)i=(e=this.elemsData[n].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,s-=1,n+=r;return o},RepeaterModifier.prototype.addShape=function(){},ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,n=this.o.length/2;i<n;
vendor: 6,388 bytes, line 87
87){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,n,r=4*this.data.p;for(e=0;e<r;e+=1)i=e%4==0?100:255,n=Math.round(this.prop.v[e]*i),this.c[e]!==n&&(this.c[e]=n,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,e=4*this.data.p;e<r;e+=1)i=e%2==0?100:1,n=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==n&&(this.o[e-4*this.data.p]=n,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty);var buildShapeString=function(t,e,i,n){if(0===e)return"";var r,s=t.o,o=t.i,a=t.v,l=" M"+n.applyToPointStringified(a[0][0],a[0][1]);for(r=1;r<e;r+=1)l+=" C"+n.applyToPointStringified(s[r-1][0],s[r-1][1])+" "+n.applyToPointStringified(o[r][0],o[r][1])+" "+n.applyToPointStringified(a[r][0],a[r][1]);return i&&e&&(l+=" C"+n.applyToPointStringified(s[r-1][0],s[r-1][1])+" "+n.applyToPointStringified(o[0][0],o[0][1])+" "+n.applyToPointStringified(a[0][0],a[0][1]),l+="z"),l},audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):Howl?new Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(t,e,i){var n="";if(t.e)n=t.p;else if(e){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),n=e+r}else n=i,n+=t.u?t.u:"",n+=t.p;return n}function r(t){var e=0,i=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}function s(t){var e={assetData:t},i=n(t,this.assetsPath,this.path);return dataManager.loadData(i,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function o(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(t,e){var i;this.imagesLoadedCb=e;var n=t.length;for(i=0;i<n;i+=1)t[i].layers||(t[i].t&&"seq"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var i=n(e,this.assetsPath,this.path),r=createTag("img");r.crossOrigin="anonymous",r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),r.src=i;var s={img:r,assetData:e};return s},createImageData:function(e){var i=n(e,this.assetsPath,this.path),r=createNS("image");isSafari?this.testImageLoaded(r):r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),r.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(r):this._elementHelper.appendChild(r);var s={img:r,assetData:e};return s},imageLoaded:e,footageLoaded:i,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}(),featureSupport=function(){var t={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),t}(),filtersFactory=function(){var t={createFilter:function(t,e){var i=createNS("filter");return i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}};return t}();function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animators
vendor: 17,293 bytes, line 87
87Data=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function TextAnimatorDataProperty(t,e,i){var n={propType:!1},r=PropertyFactory.getProp,s=e.a;this.a={r:s.r?r(t,s.r,0,degToRads,i):n,rx:s.rx?r(t,s.rx,0,degToRads,i):n,ry:s.ry?r(t,s.ry,0,degToRads,i):n,sk:s.sk?r(t,s.sk,0,degToRads,i):n,sa:s.sa?r(t,s.sa,0,degToRads,i):n,s:s.s?r(t,s.s,1,.01,i):n,a:s.a?r(t,s.a,1,0,i):n,o:s.o?r(t,s.o,0,.01,i):n,p:s.p?r(t,s.p,1,0,i):n,sw:s.sw?r(t,s.sw,0,0,i):n,sc:s.sc?r(t,s.sc,1,0,i):n,fc:s.fc?r(t,s.fc,1,0,i):n,fh:s.fh?r(t,s.fh,0,0,i):n,fs:s.fs?r(t,s.fs,0,.01,i):n,fb:s.fb?r(t,s.fb,0,.01,i):n,t:s.t?r(t,s.t,0,0,i):n},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function LetterProps(t,e,i,n,r,s){this.o=t,this.sw=e,this.sc=i,this.fc=n,this.m=r,this.p=s,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!n,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,n=PropertyFactory.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,n,r,s,o,a,l,h,c,d,p,u,f,m,g,v,y,b,_,w=this._moreOptions.alignment.v,x=this._animatorsData,S=this._textData,E=this.mHelper,C=this._renderType,T=this.renderedLetters.length,k=t.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,A=_.v;for(this._pathData.r.v&&(A=A.reverse()),o={tLength:0,segments:[]},s=A._length-1,v=0,r=0;r<s;r+=1)P=bez.buildBezierData(A.v[r],A.v[r+1],[A.o[r][0]-A.v[r][0],A.o[r][1]-A.v[r][1]],[A.i[r+1][0]-A.v[r+1][0],A.i[r+1][1]-A.v[r+1][1]]),o.tLength+=P.segmentLength,o.segments.push(P),v+=P.segmentLength;r=s,_.v.c&&(P=bez.buildBezierData(A.v[r],A.v[0],[A.o[r][0]-A.v[r][0],A.o[r][1]-A.v[r][1]],[A.i[0][0]-A.v[0][0],A.i[0][1]-A.v[0][1]]),o.tLength+=P.segmentLength,o.segments.push(P),v+=P.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,a=this._pathData.f.v,p=0,d=1,h=0,c=!0,m=o.segments,a<0&&_.v.c)for(o.tLength<Math.abs(a)&&(a=-Math.abs(a)%o.tLength),d=(f=m[p=m.length-1].points).length-1;a<0;)a+=f[d].partialLength,(d-=1)<0&&(d=(f=m[p-=1].points).length-1);u=(f=m[p].points)[d-1],g=(l=f[d]).partialLength}s=k.length,i=0,n=0;var M,D,I,O,L,F=1.2*t.finalSize*.714,R=!0;I=x.length;var z,B,$,N,j,G,V,H,q,X,W,Y,U=-1,K=a,Z=p,Q=d,J=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var it=0,nt=0,rt=2===t.j?-.5:-1,st=0,ot=!0;for(r=0;r<s;r+=1)if(k[r].n){for(it&&(it+=nt);st<r;)k[st].animatorJustifyOffset=it,st+=1;it=0,ot=!0}else{for(D=0;D<I;D+=1)(M=x[D].a).t.propType&&(ot&&2===t.j&&(nt+=M.t.v*rt),(L=x[D].s.getMult(k[r].anIndexes[D],S.a[D].s.totalChars)).length?it+=M.t.v*L[0]*rt:it+=M.t.v*L*rt);ot=!1}for(it&&(it+=nt);st<r;)k[st].animatorJustifyOffset=it,st+=1}for(r=0;r<s;r+=1){if(E.reset(),N=1,k[r].n)i=0,n+=t.yOffset,n+=R?1:0,a=K,R=!1,this._hasMaskedPath&&(d=Q,u=(f=m[p=Z].points)[d-1],g=(l=f[d]).partialLength,h=0),tt="",W="",q="",Y="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(J!==k[r].line){switch(t.j){case 1:a+=v-t.lineWidths[k[r].line];break;case 2:a+=(v-t.lineWidths[k[r].line])/2}J=k[r].line}U!==k[r].ind&&(k[U]&&(a+=k[U].extra),a+=k[r].an/2,U=k[r].ind),a+=w[0]*k[r].an*.005;var at=0;for(D=0;D<I;D+=1)(M=x[D].a).p.propType&&((L=x[D].s.getMult(k[r].anIndexes[D],S.a[D].s.totalChars)).length?at+=M.p.v[0]*L[0]:at+=M.p.v[0]*L),M.a.propType&&((L=x[D].s.getMult(k[r].anIndexes[D],S.a[D].s.totalChars)).length?at+=M.a.v[0]*L[0]:at+=M.a.v[0]*L);for(c=!0,this._pathData.a.v&&(a=.5*k[0].an+(v-this._pathData.f.v-.5*k[0].an-.5*k[k.length-1].an)*U/(s-1),a+=this._pathData.f.v);c;)h+g>=a+at||!f?(y=(a+at-h)/l.partialLength,B=u.point[0]+(l.point[0]-u.point[0])*y,$=u.point[1]+(l.point[1]-u.point[1])*y,E.translate(-w[0]*k[r].an*.005,-w[1]*F*.01),c=!1):f&&(h+=l.partialLength,(d+=1)>=f.length&&(d=0,m[p+=1]?f=m[p].points:_.v.c?(d=0,f=m[p=0].points):(h-=l.partialLength,f=null)),f&&(u=l,g=(l=f[d]).partialLength));z=k[r].an/2-k[r].add,E.translate(-z,0,0)}else z=k[r].an/2-k[r].add,E.translate(-z,0,0),E.translate(-w[0]*k[r].an*.005,-w[1]*F*.01,0);for(D=0;D<I;D+=1)(M=x[D].a).t.propType&&(L=x[D].s.getMult(k[r].anIndexes[D],S.a[D].s.totalChars),0===i&&0===t.j||(this._hasMaskedPath?L.length?a+=M.t.v*L[0]:a+=M.t.v*L:L.length?i+=M.t.v*L[0]:i+=M.t.v*L));for(t.strokeWidthAnim&&(G=t.sw||0),t.strokeColorAnim&&(j=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(V=[t.fc[0],t.fc[1],t.fc[2]]),D=0;D<I;D+=1)(M=x[D].a).a.propType&&((L=x[D].s.getMult(k[r].anIndexes[D],S.a[D].s.totalChars)).length?E.translate(-M.a.v[0]*L[0],-M.a.v[1]*L[1],M.a.v[2]*L[2]):E.translate(-M.a.v[0]*L,-M.a.v[1]*L,M.a.v[2]*L));for(D=0;D<I;D+=1)(M=x[D].a).s.propType&&((L=x[D].s.getMult(k[r].anIndexes[D],S.a[D].s.totalChars)).length?E.scale(1+(M.s.v[0]-1)*L[0],1+(M.s.v[1]-1)*L[1],1):E.scale(1+(M.s.v[0]-1)*L,1+(M.s.v[1]-1)*L,1));for(D=0;D<I;D+=1){if(M=x[D].a,L=x[D].s.getMult(k[r].anIndexes[D],S.a[D].s.totalChars),M.sk.propType&&(L.length?E.skewFromAxis(-M.sk.v*L[0],M.sa.v*L[1]):E.skewFromAxis(-M.sk.v*L,M.sa.v*L)),M.r.propType&&(L.length?E.rotateZ(-M.r.v*L[2]):E.rotateZ(-M.r.v*L)),M.ry.propType&&(L.length?E.rotateY(M.ry.v*L[1]):E.rotateY(M.ry.v*L)),M.rx.propType&&(L.length?E.rotateX(M.rx.v*L[0]):E.rotateX(M.rx.v*L)),M.o.propType&&(L.length?N+=(M.o.v*L[0]-N)*L[0]:N+=(M.o.v*L-N)*L),t.strokeWidthAnim&&M.sw.propType&&(L.length?G+=M.sw.v*L[0]:G+=M.sw.v*L),t.strokeColorAnim&&M.sc.propType)for(H=0;H<3;H+=1)L.length?j[H]+=(M.sc.v[H]-j[H])*L[0]:j[H]+=(M.sc.v[H]-j[H])*L;if(t.fillColorAnim&&t.fc){if(M.fc.propType)for(H=0;H<3;H+=1)L.length?V[H]+=(M.fc.v[H]-V[H])*L[0]:V[H]+=(M.fc.v[H]-V[H])*L;M.fh.propType&&(V=L.length?addHueToRGB(V,M.fh.v*L[0]):addHueToRGB(V,M.fh.v*L)),M.fs.propType&&(V=L.length?addSaturationToRGB(V,M.fs.v*L[0]):addSaturationToRGB(V,M.fs.v*L)),M.fb.propType&&(V=L.length?addBrightnessToRGB(V,M.fb.v*L[0]):addBrightnessToRGB(V,M.fb.v*L))}}for(D=0;D<I;D+=1)(M=x[D].a).p.propType&&(L=x[D].s.getMult(k[r].anIndexes[D],S.a[D].s.totalChars),this._hasMaskedPath?L.length?E.translate(0,M.p.v[1]*L[0],-M.p.v[2]*L[1]):E.translate(0,M.p.v[1]*L,-M.p.v[2]*L):L.length?E.translate(M.p.v[0]*L[0],M.p.v[1]*L[1],-M.p.v[2]*L[2]):E.translate(M.p.v[0]*L,M.p.v[1]*L,-M.p.v[2]*L));if(t.strokeWidthAnim&&(q=G<0?0:G),t.strokeColorAnim&&(X="rgb("+Math.round(255*j[0])+","+Math.round(255*j[1])+","+Math.round(255*j[2])+")"),t.fillColorAnim&&t.fc&&(W="rgb("+Math.round(255*V[0])+","+Math.round(255*V[1])+","+Math.round(255*V[2])+")"),this._hasMaskedPath){if(E.translate(0,-t.ls),E.translate(0,w[1]*F*.01+n,0),this._pathData.p.v){b=(l.point[1]-u.point[1])/(l.point[0]-u.point[0]);var lt=180*Math.atan(b)/Math.PI;l.point[0]<u.point[0]&&(lt+=180),E.rotate(-lt*Math.PI/180)}E.translate(B,$,0),a-=w[0]*k[r].an*.005,k[r+1]&&U!==k[r+1].ind&&(a+=k[r].an/2,a+=.001*t.tr*t.finalSize)}else{switch(E.translate(i,n,0),t.ps&&E.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:E.translate(k[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[k[r].line]),0,0);break;case 2:E.translate(k[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[k[r].line])/2,0,0)}E.translate(0,-t.ls),E.translate(z,0,0),E.translate(w[0]*k[r].an*.005,w[1]*F*.01,0),i+=k[r].l+.001*t.tr*t.finalSize}"html"===C?tt=E.toCSS():"svg"===C?tt=E.to2dCSS():et=[E.props[0],E.props[1],E.props[2],E.props[3],E.props[4],E.props[5],E.props[6],E.props[7],E.props[8],E.props[9],E.props[10],E.props[11],E.props[12],E.props[13],E.props[14],E.props[15]],Y=N}T<=r?(O=new LetterProps(Y,q,X,W,tt,et),this.renderedLetters.push(O),T+=1,this.lettersChangedFlag=!0):(O=this.renderedLetters[r],this.lettersChangedFlag=O.update(Y,q,X,W,tt,et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),LetterProps.prototype.update=function(t,e,i,n,r,s){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,o=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,o=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,o=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,o=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,o=!0),!s.length||this.p[0]===s[0]&&this.p[1]===s[1]&&this.p[4]===s[4]&&this.p[5]===s[5]&&this.p[12]===s[12]&&this.p[13]===s[13]||(this.p=s,this._mdf.p=!0,o=!0),o},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var n;this.lock=!0,this._mdf=!1;var r=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(n=0;n<r;n+=1)s=i!==this.keysIndex?this.effectsSequence[n](s,s.t):this.effectsSequence[n](this.currentData,s.t);e!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,n=t.length;i<=n-1&&!(i===n-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,n=[],r=0,s=t.length,o=!1;r<s;)e=t.charCodeAt(r),FontManager.isCombinedCharacter(e)?n[n.length-1]+=t.charAt(r):e>=55296&&e<=56319?(i=t.charCodeAt(r+1))>=56320&&i<=57343?(o||FontManager.isModifier(e,i)?(n[n.length-1]+=t.substr(r,2),o=!1):n.push(t.substr(r,2)),r+=1):n.push(t.charAt(r)):e>56319?(i=t.charCodeAt(r+1),FontManager.isZeroWidthJoiner(e,i)?(o=!0,n[n.length-1]+=t.substr(r,2),r+=1):n.push(t.charAt(r))):FontManager.isZeroWidthJoiner(e)?(n[n.length-1]+=t.charAt(r),o=!0):n.push(t.charAt(r)),r+=1;return n},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,n,r,s,o,a,l=this.elem.globalData.fontManager,h=this.data,c=[],d=0,p=h.m.g,u=0,f=0,m=0,g=[],v=0,y=0,b=l.getFontByName(t.f),_=0,w=getFontProperties(b);t.fWeight=w.weight,t.fStyle=w.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var x,S=t.tr/1e3*t.finalSize;if(t.sz)for(var E,C,T=!0,k=t.sz[0],P=t.sz[1];T;){E=0,v=0,i=(C=this.buildFinalText(t.t)).length,S=t.tr/1e3*t.finalSize;var A=-1;for(e=0;e<i;e+=1)x=C[e].charCodeAt(0),n=!1," "===C[e]?A=e:13!==x&&3!==x||(v=0,n=!0,E+=t.finalLineHeight||1.2*t.finalSize),l.chars?(a=l.getCharData(C[e],b.fStyle,b.fFamily),_=n?0:a.w*t.finalSize/100):_=l.measureText(C[e],t.f,t.finalSize),v+_>k&&" "!==C[e]?(-1===A?i+=1:e=A,E+=t.finalLineHeight||1.2*t.finalSize,C.splice(e,A===e?1:0,"\r"),A=-1,v=0):(v+=_,v+=S);E+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&P<E?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=C,i=t.finalText.length,T=!1)}v=-S,_=0;var M,D=0;for(e=0;e<i;e+=1)if(n=!1,13===(x=(M=t.finalText[e]).charCodeAt(0))||3===x?(D=0,g.push(v),y=v>y?v:y,v=-2*S,r="",n=!0,m+=1):r=M,l.chars?(a=l.getCharData(M,b.fStyle,l.getFontByName(t.f).fFamily),_=n?0:a.w*t.finalSize/100):_=l.measureText(r,t.f,t.finalSize)," "===M?D+=_+S:(v+=_+S+D,D=0),c.push({l:_,an:_,add:u,n:n,anIndexes:[],val:r,line:m,animatorJustifyOffset:0}),2==p){if(u+=_,""===r||" "===r||e===i-1){for(""!==r&&" "!==r||(u-=_);f<=e;)c[f].an=u,c[f].ind=d,c[f].extra=_,f+=1;d+=1,u=0}}else if(3==p){if(u+=_,""===r||e===i-1){for(""===r&&(u-=_);f<=e;)c[f].an=u,c[f].ind=d,c[f].extra=_,f+=1;u=0,d+=1}}else c[d].ind=d,c[d].extra=0,d+=1;if(t.l=c,y=v>y?v:y,g.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=y,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var I,O,L,F,R=h.a;o=R.length;var z=[];for(s=0;s<o;s+=1){for((I=R[s]).a.sc&&(t.strokeColorAnim=!0),I.a.sw&&(t.strokeWidthAnim=!0),(I.a.fc||I.a.fh||I.a.fs||I.a.fb)&&(t.fillColorAnim=!0),F=0,L=I.s.b,e=0;e<i;e+=1)(O=c[e]).anIndexes[s]=F,(1==L&&""!==O.val||2==L&&""!==O.val&&" "!==O.val||3==L&&(O.n||" "==O.val||e==i-1)||4==L&&(O.n||e==i-1))&&(1===I.s.rn&&z.push(F),F+=1);h.a[s].s.totalChars=F;var B,$=-1;if(1===I.s.rn)for(e=0;e<i;e+=1)$!=(O=c[e]).anIndexes[s]&&($=O.anIndexes[s],B=z.splice(Math.floor(Math.random()*z.length),1)[0]),O.anIndexes[s]=B}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,i=Math.floor;function n(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var r=0,s=0,o=1,a=1;this.ne.v>0?r=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:a=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(r,s,o,a).get,h=0,c=this.finalS,d=this.finalE,p=this.data.sh;if(2===p)h=l(h=d===c?n>=d?1:0:t(0,e(.5/(d-c)+(n-c)/(d-c),1)));else if(3===p)h=l(h=d===c?n>=d?0:1:1-t(0,e(.5/(d-c)+(n-c)/(d-c),1)));else if(4===p)d===c?h=0:(h=t(0,e(.5/(d-c)+(n-c)/(d-c),1)))<.5?h*=2:h=1-2*(h-.5),h=l(h);else if(5===p){if(d===c)h=0;else{var u=d-c,f=-u/2+(n=e(t(0,n+.5-c),d-c)),m=u/2;h=Math.sqrt(1-f*f/(m*m))}h=l(h)}else 6===p?(d===c?h=0:(n=e(t(0,n+.5-c),d-c),h=(1+Math.cos(Math.PI+2*Math.PI*n/(d-c)))/2),h=l(h)):(n>=i(c)&&(h=t(0,e(n-c<0?e(d,1)-(c-n):d-n,1))),h=l(h));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;h<v?h=0:(h=(h-v)/g)>1&&(h=1)}return h*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,n=this.s.v/e+i,r=this.e.v/e+i;if(n>r){var s=n;n=r,r=s}this.finalS=n,this.finalE=r}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(t,e,
vendor: 4,104 bytes, lines 87-88
87i){return new n(t,e,i)}}}(),poolFactory=function(t,e,i){var n=0,r=t,s=createSizedArray(r);return{newElement:function(){return n?s[n-=1]:e()},release:function(t){n===r&&(s=pooling.double(s),r*=2),i&&i(t),s[n]=t,n+=1}}},pooling={double:function(t){return t.concat(createSizedArray(t.length))}},pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)})),shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(t){var e,i=t._length;for(e=0;e<i;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1})),factory.clone=function(t){var e,i=factory.newElement(),n=void 0===t._length?t.v.length:t._length;for(i.setLength(n),i.c=t.c,e=0;e<n;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},factory),factory,shapeCollectionPool=function(){var t={newShapeCollection:function(){return e?n[e-=1]:new ShapeCollection},release:function(t){var r,s=t._length;for(r=0;r<s;r+=1)shapePool.release(t.shapes[r]);t._length=0,e===i&&(n=pooling.double(n),i*=2),n[e]=t,e+=1}},e=0,i=4,n=createSizedArray(i);return t}(),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0})),bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",defaultCurveSegments),lengths:createTypedArray("float32",defaultCurveSegments)}})),markerParser=function(){function t(t){for(var e,i=t.split("\r\n"),n={},r=0,s=0;s<i.length;s+=1)2===(e=i[s].split(":")).length&&(n[e[0]]=e[1].trim(),r+=1);if(0===r)throw new Error;return n}return function(e){for(var i=[],n=0;n<e.length;n+=1){var r=e[n],s={time:r.tm,duration:r.dr};try{s.payload=JSON.parse(e[n].cm)}catch(i){try{s.payload=t(e[n].cm)}catch(t){s.payload={name:e[n]}}}i.push(s)}return i}}();function BaseRenderer(){}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(e&&e.title){var n=createNS("title"),r=createElementID();n.setAttribute("id",r),n.textContent=e.title,this.svgElement.appendChild(n),i+=r}if(e&&e.description){var s=createNS("desc"),o=createElementID();s.setAttribute("id",o),s.textContent=e.description,this.svgElement.appendChild(s),i+=" "+o}i&&this.svgElement.setAttribute("aria-labelledby",i);var a=createNS("defs");this.svgElement.appendChild(a);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1, 88hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"}},this.globalData={_mdf:!1,frameNum:-1,defs:a,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=ne
vendor: 11,898 bytes, line 88
88w Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function MaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n,r,s=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var a,l,h,c,d,p,u=this.masksProperties,f=0,m=[],g=createElementID(),v="clipPath",y="clip-path";for(n=0;n<o;n+=1)if(("a"!==u[n].mode&&"n"!==u[n].mode||u[n].inv||100!==u[n].o.k||u[n].o.x)&&(v="mask",y="mask"),"s"!==u[n].mode&&"i"!==u[n].mode||0!==f?h=null:((h=createNS("rect")).setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data.w||0),h.setAttribute("height",this.element.comp.data.h||0),m.push(h)),r=createNS("path"),"n"===u[n].mode)this.viewData[n]={op:PropertyFactory.getProp(this.element,u[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[n],3),elem:r,lastPath:""},s.appendChild(r);else{var b;if(f+=1,r.setAttribute("fill","s"===u[n].mode?"#000000":"#ffffff"),r.setAttribute("clip-rule","nonzero"),0!==u[n].x.k?(v="mask",y="mask",p=PropertyFactory.getProp(this.element,u[n].x,0,null,this.element),b=createElementID(),(c=createNS("filter")).setAttribute("id",b),(d=createNS("feMorphology")).setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),c.appendChild(d),s.appendChild(c),r.setAttribute("stroke","s"===u[n].mode?"#000000":"#ffffff")):(d=null,p=null),this.storedData[n]={elem:r,x:p,expan:d,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===u[n].mode){l=m.length;var _=createNS("g");for(a=0;a<l;a+=1)_.appendChild(m[a]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",g+"_"+f),w.appendChild(r),s.appendChild(w),_.setAttribute("mask","url("+locationHref+"#"+g+"_"+f+")"),m.length=0,m.push(_)}else m.push(r);u[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:r,lastPath:"",op:PropertyFactory.getProp(this.element,u[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[n],3),invRect:h},this.viewData[n].prop.k||this.drawPath(u[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(v),o=m.length,n=0;n<o;n+=1)this.maskElement.appendChild(m[n]);f>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(y,"url("+locationHref+"#"+g+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}function HierarchyElement(){}function FrameElement(){}function TransformElement(){}function RenderableElement(){}function RenderableDOMElement(){}function ProcessedElement(t,e){this.elem=t,this.pos=e}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var n=0,r=t.length;n<r;){if(t[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}function SVGTransformData(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}function SVGStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i}function SVGGradientFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function SVGGradientStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}BaseRenderer.prototype.checkLayers=function(t){var e,i,n=this.layers.length;for(this.completeLayers=!0,e=n-1;e>=0;e-=1)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var i,n=t.length,r=this.layers.length;for(e=0;e<n;e+=1)for(i=0;i<r;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,i){for(var n=this.elements,r=this.layers,s=0,o=r.length;s<o;)r[s].ind==e&&(n[s]&&!0!==n[s]?(i.push(n[s]),n[s].setAsParent(),void 0!==r[s].parent?this.buildElementParenting(t,r[s].parent,i):t.setHierarchy(i)):(this.buildItem(s),this.addPendingElement(t))),s+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var n=this.createComp(t[e]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},extendPrototype([BaseRenderer],SVGRenderer),SVGRenderer.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRenderer.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRenderer.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRenderer.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},SVGRenderer.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRenderer.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",t.w),n.setAttribute("height",t.h),n.setAttribute("x",0),n.setAttribute("y",0);var r=createElementID();i.setAttribute("id",r),i.appendChild(n),this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+r+")"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRenderer.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRenderer.prototype.updateContainerSize=function(){},SVGRenderer.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);e[t]=i,expressionsPlugin&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt&&(this.elements[t-1]&&!0!==this.elements[t-1]?i.setMatte(e[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(i)))}},SVGRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){t.setMatte(this.elements[e-1].layerId);break}e+=1}}},SVGRenderer.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRenderer.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){for(var n,r=0;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&
88(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(i,n):this.layerElement.appendChild(i)}},SVGRenderer.prototype.hide=function(){this.layerElement.style.display="none"},SVGRenderer.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseRenderer],CanvasRenderer),CanvasRenderer.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRenderer.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRenderer.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},CanvasRenderer.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRenderer.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRenderer.prototype.ctxTransform=function(t){if(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(t);var e=this.contextData.cTr.props;this.transformMat.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var i=this.contextData.cTr.props;this.canvasContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])}else this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRenderer.prototype.ctxOpacity=function(t){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=t<0?0:t,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRenderer.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRenderer.prototype.save=function(t){if(this.renderConfig.clearCanvas){t&&this.canvasContext.save();var e,i=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var n=this.contextData.saved[this.contextData.cArrPos];for(e=0;e<16;e+=1)n[e]=i[e];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRenderer.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var e,i=this.contextData.saved[this.contextData.cArrPos],n=this.contextData.cTr.props;for(e=0;e<16;e+=1)n[e]=i[e];this.canvasContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),i=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=i,this.globalData.currentGlobalAlpha!==i&&(this.canvasContext.globalAlpha=i,this.globalData.currentGlobalAlpha=i)}else this.canvasContext.restore()},CanvasRenderer.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var i="0px 0px 0px";e.transformOrigin=i,e.mozTransformOrigin=i,e.webkitTransformOrigin=i,e["-webkit-transform"]=i,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRenderer.prototype.updateContainerSize=function(){var t,e,i,n;if(this.reset(),this.animationItem.wrapper&&this.animationItem.container?(t=this.animationItem.wrapper.offsetWidth,e=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",t*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",e*this.renderConfig.dpr)):(t=this.canvasContext.canvas.width*this.renderConfig.dpr,e=this.canvasContext.canvas.height*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var r=this.renderConfig.preserveAspectRatio.split(" "),s=r[1]||"meet",o=r[0]||"xMidYMid",a=o.substr(0,4),l=o.substr(4);i=t/e,(n=this.transformCanvas.w/this.transformCanvas.h)>i&&"meet"===s||n<i&&"slice"===s?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=e/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===a&&(n<i&&"meet"===s||n>i&&"slice"===s)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===a&&(n<i&&"meet"===s||n>i&&"slice"===s)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.t
vendor: 10,163 bytes, line 88
88y="YMid"===l&&(n>i&&"meet"===s||n<i&&"slice"===s)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===l&&(n>i&&"meet"===s||n<i&&"slice"===s)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRenderer.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRenderer.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var i;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var n=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=0;i<n;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRenderer.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions()}},CanvasRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRenderer.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRenderer.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([BaseRenderer],HybridRenderer),HybridRenderer.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRenderer.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){var n=this.layers[e];if(n.ddd&&this.supports3d)this.addTo3dContainer(i,e);else if(this.threeDElements)this.addTo3dContainer(i,e);else{for(var r,s,o=0;o<e;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement&&(s=this.elements[o],r=(this.layers[o].ddd?this.getThreeDContainerByPos(o):s.getBaseElement())||r),o+=1;r?n.ddd&&this.supports3d||this.layerElement.insertBefore(i,r):n.ddd&&this.supports3d||this.layerElement.appendChild(i)}}},HybridRenderer.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRenderer.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRenderer.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRenderer.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},HybridRenderer.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRenderer.prototype.createNull=SVGRenderer.prototype.createNull,HybridRenderer.prototype.getThreeDContainerByPos=function(t){for(var e=0,i=this.threeDElements.length;e<i;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRenderer.prototype.createThreeDContainer=function(t,e){var i,n,r=createTag("div");styleDiv(r);var s=createTag("div");if(styleDiv(s),"3d"===e){(i=r.style).width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var o="50% 50%";i.webkitTransformOrigin=o,i.mozTransformOrigin=o,i.transformOrigin=o;var a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(n=s.style).transform=a,n.webkitTransform=a}r.appendChild(s);var l={container:s,perspectiveElem:r,startPos:t,endPos:t,type:e};return this.threeDElements.push(l),l},HybridRenderer.prototype.build3dContainers=function(){var t,e,i=this.layers.length,n="";for(t=0;t<i;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==n&&(n="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==n&&(n="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(i=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRenderer.prototype.addTo3dContainer=function(t,e){for(var i=0,n=this.threeDElements.length;i<n;){if(e<=this.threeDElements[i].endPos){for(var r,s=this.threeDElements[i].startPos;s<e;)this.elements[s]&&this.elements[s].getBaseElement&&(r=this.elements[s].getBaseElement()),s+=1;r?this.threeDElements[i].container.insertBefore(t,r):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRenderer.prototype.configAnimation=function(t){var e=createTag("div"),i=this.animationItem.wrapper,n=e.style;n.width=t.w+"px",n.height=t.h+"px",this.resizerElem=e,styleDiv(e),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),i.appendChild(e),n.overflow="hidden";var r=createNS("svg");r.setAttribute("width","1"),r.setAttribute("height","1"),styleDiv(r),this.resizerElem.appendChild(r);var s=createNS("defs");r.appendChild(s),this.data=t,this.setupGlobalData(t,r),this.globalData.defs=s,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRenderer.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRenderer.prototype.updateContainerSize=function(){var t,e,i,n,r=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,o=r/s;this.globalData.compSize.w/this.globalData.compSize.h>o?(t=r/this.globalData.compSize.w,e=r/this.globalData.compSize.w,i=0,n=(s-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,i=(r-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,n=0);var a=this.resizerElem.style;a.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+n+",0,1)",a.transform=a.webkitTransform},HybridRenderer.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRenderer.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRenderer.prototype.show=function(){this.resizerElem.style.display="block"},HybridRenderer.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,i=this.globalData.compSize.h,n=this.threeDElements.length;for(t=0;t<n;t+=1){var r=this.threeDElements[t].perspectiveElem.style;r.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(i,2))+"px",r.perspective=r.webkitPerspective}}},HybridRenderer.prototype.searchExtraCompositions=function(t){var e,i=t.length,n=createTag("div");for(e=0;e<i;e+=1)if(t[e].xt){var r=this.createComp(t[e],n,this.globalData.comp,null);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,n=this.masksProperties.length;for(e=0;e<n;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var r=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+locationHref+"#"+this.storedData[e].filterId+")")),r.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "}
vendor: 5,308 bytes, lines 88-89
88,MaskElement.prototype.drawPath=function(t,e,i){var n,r,s=" M"+e.v[0][0]+","+e.v[0][1];for(r=e._length,n=1;n<r;n+=1)s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[n][0]+","+e.i[n][1]+" "+e.v[n][0]+","+e.v[n][1];if(e.c&&r>1&&(s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==s){var o="";i.elem&&(e.c&&(o=t.inv?this.solidPath+s:s),i.elem.setAttribute("d",o)),i.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,n=this.dynamicProperties.length;for(i=0;i<n;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<n;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<n;i+=1)t=this.hierarchy[i].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i,n=!0,r=this.comp;n;)r.finalTransform?(r.data.hasMask&&e.splice(0,0,r.finalTransform),r=r.comp):n=!1;var s,o=e.length;for(i=0;i<o;i+=1)s=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-s[0],t[1]-s[1],0];return t},mHelper:new Matrix},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)}, 89checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,
vendor: 4,718 bytes, line 89
89i){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var i=createElementID(),n=createNS(1===e.t?"linearGradient":"radialGradient");n.setAttribute("id",i),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var r,s,o,a=[];for(o=4*e.g.p,s=0;s<o;s+=4)r=createNS("stop"),n.appendChild(r),a.push(r);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+locationHref+"#"+i+")"),this.gf=n,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,n,r,s=createNS("mask"),o=createNS("path");s.appendChild(o);var a=createElementID(),l=createElementID();s.setAttribute("id",l);var h=createNS(1===t.t?"linearGradient":"radialGradient");h.setAttribute("id",a),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),r=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var c=this.stops;for(n=4*t.g.p;n<r;n+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(i),c.push(i);o.setAttribute("gf"===t.ty?"fill":"stroke","url("+locationHref+"#"+a+")"),"gs"===t.ty&&(o.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&o.setAttribute("stroke-miterlimit",t.ml)),this.of=h,this.ms=s,this.ost=c,this.maskId=l,e.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function i(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function n(i,n,r){var s,o,a,l,h,c,d,p,u,f,m,g=n.styles.length,v=n.lvl;for(c=0;c<g;c+=1){if(l=n.sh._mdf||r,n.styles[c].lvl<v){for(p=e.reset(),f=v-n.styles[c].lvl,m=n.transformers.length-1;!l&&f>0;)l=n.transformers[m].mProps._mdf||l,f-=1,m-=1;if(l)for(f=v-n.styles[c].lvl,m=n.transformers.length-1;f>0;)u=n.transformers[m].mProps.v.props,p.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),f-=1,m-=1}else p=t;if(o=(d=n.sh.paths)._length,l){for(a="",s=0;s<o;s+=1)(h=d.shapes[s])&&h._length&&(a+=buildShapeString(h,h._length,h.c,p));n.caches[c]=a}else a=n.caches[c];n.styles[c].d+=!0===i.hd?"":a,n.styles[c]._mdf=l||n.styles[c]._mdf}}function r(t,e,i){var n=e.style;(e.c._mdf||i)&&n.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&n.pElem.setAttribute("fill-opacity",e.o.v)}function s(t,e,i){o(t,e,i),a(0,e,i)}function o(t,e,i){var n,r,s,o,a,l=e.gf,h=e.g._hasOpacity,c=e.s.v,d=e.e.v;if(e.o._mdf||i){var p="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(p,e.o.v)}if(e.s._mdf||i){var u=1===t.t?"x1":"cx",f="x1"===u?"y1":"cy";l.setAttribute(u,c[0]),l.setAttribute(f,c[1]),h&&!e.g._collapsable&&(e.of.setAttribute(u,c[0]),e.of.setAttribute(f,c[1]))}if(e.g._cmdf||i){n=e.cst;var m=e.g.c;for(s=n.length,r=0;r<s;r+=1)(o=n[r]).setAttribute("offset",m[4*r]+"%"),o.setAttribute("stop-color","rgb("+m[4*r+1]+","+m[4*r+2]+","+m[4*r+3]+")")}if(h&&(e.g._omdf||i)){var g=e.g.o;for(s=(n=e.g._collapsable?e.cst:e.ost).length,r=0;r<s;r+=1)o=n[r],e.g._collapsable||o.setAttribute("offset",g[2*r]+"%"),o.setAttribute("stop-opacity",g[2*r+1])}if(1===t.t)(e.e._mdf||i)&&(l.setAttribute("x2",d[0]),l.setAttribute("y2",d[1]),h&&!e.g._collapsable&&(e.of.setAttribute("x2",d[0]),e.of.setAttribute("y2",d[1])));else if((e.s._mdf||e.e._mdf||i)&&(a=Math.sqrt(Math.pow(c[0]-d[0],2)+Math.pow(c[1]-d[1],2)),l.setAttribute("r",a),h&&!e.g._collapsable&&e.of.setAttribute("r",a)),e.e._mdf||e.h._mdf||e.a._mdf||i){a||(a=Math.sqrt(Math.pow(c[0]-d[0],2)+Math.pow(c[1]-d[1],2)));var v=Math.atan2(d[1]-c[1],d[0]-c[0]),y=e.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=a*y,_=Math.cos(v+e.a.v)*b+c[0],w=Math.sin(v+e.a.v)*b+c[1];l.setAttribute("fx",_),l.setAttribute("fy",w),h&&!e.g._collapsable&&(e.of.setAttribute("fx",_),e.of.setAttribute("fy",w))}}function a(t,e,i){var n=e.style,r=e.d;r&&(r._mdf||i)&&r.dashStr&&(n.pElem.setAttribute("stroke-dasharray",r.dashStr),n.pElem.setAttribute("stroke-dashoffset",r.dash
vendor: 5,943 bytes, line 89
89offset[0])),e.c&&(e.c._mdf||i)&&n.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&n.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(n.pElem.setAttribute("stroke-width",e.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return r;case"gf":return o;case"gs":return s;case"st":return a;case"sh":case"el":case"rc":case"sr":return n;case"tr":return i;default:return null}}}}();function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVShapeData(t,e,i,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r,s=4;"rc"===e.ty?s=5:"el"===e.ty?s=6:"sr"===e.ty&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,s,t);var o,a=i.length;for(r=0;r<a;r+=1)i[r].closed||(o={transforms:n.addTransformSequence(i[r].transforms),trNodes:[]},this.styledShapes.push(o),i[r].elements.push(o))}function BaseElement(){}function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function SVGBaseElement(){}function IShapeElement(){}function ITextElement(){}function ICompElement(){}function IImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ISolidElement(t,e,i){this.initElement(t,e,i)}function AudioElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function FootageElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function SVGCompElement(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGTextLottieElement(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function SVGTintFilter(t,e){this.filterManager=e;var i=createNS("feColorMatrix");if(i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),i.setAttribute("result","f1"),t.appendChild(i),(i=createNS("feColorMatrix")).setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result","f2"),t.appendChild(i),this.matrixFilter=i,100!==e.effectElements[2].p.v||e.effectElements[2].p.k){var n,r=createNS("feMerge");t.appendChild(r),(n=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),r.appendChild(n),(n=createNS("feMergeNode")).setAttribute("in","f2"),r.appendChild(n)}}function SVGFillFilter(t,e){this.filterManager=e;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),t.appendChild(i),this.matrixFilter=i}function SVGGaussianBlurEffect(t,e){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var i=createNS("feGaussianBlur");t.appendChild(i),this.feGaussianBlur=i}function SVGStrokeEffect(t,e){this.initialized=!1,this.filterManager=e,this.elem=t,this.paths=[]}function SVGTritoneFilter(t,e){this.filterManager=e;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),i.setAttribute("result","f1"),t.appendChild(i);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(n),this.matrixFilter=n;var r=createNS("feFuncR");r.setAttribute("type","table"),n.appendChild(r),this.feFuncR=r;var s=createNS("feFuncG");s.setAttribute("type","table"),n.appendChild(s),this.feFuncG=s;var o=createNS("feFuncB");o.setAttribute("type","table"),n.appendChild(o),this.feFuncB=o}function SVGProLevelsFilter(t,e){this.filterManager=e;var i=this.filterManager.effectElements,n=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(n),n=createNS("feComponentTransfer")),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5
89].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&(n.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}function SVGDropShadowEffect(t,e){var i=e.container.globalData.renderConfig.filterSize;t.setAttribute("x",i.x),t.setAttribute("y",i.y),t.setAttribute("width",i.width),t.setAttribute("height",i.height),this.filterManager=e;var n=createNS("feGaussianBlur");n.setAttribute("in","SourceAlpha"),n.setAttribute("result","drop_shadow_1"),n.setAttribute("stdDeviation","0"),this.feGaussianBlur=n,t.appendChild(n);var r=createNS("feOffset");r.setAttribute("dx","25"),r.setAttribute("dy","0"),r.setAttribute("in","drop_shadow_1"),r.setAttribute("result","drop_shadow_2"),this.feOffset=r,t.appendChild(r);var s=createNS("feFlood");s.setAttribute("flood-color","#00ff00"),s.setAttribute("flood-opacity","1"),s.setAttribute("result","drop_shadow_3"),this.feFlood=s,t.appendChild(s);var o=createNS("feComposite");o.setAttribute("in","drop_shadow_3"),o.setAttribute("in2","drop_shadow_2"),o.setAttribute("operator","in"),o.setAttribute("result","drop_shadow_4"),t.appendChild(o);var a,l=createNS("feMerge");t.appendChild(l),a=createNS("feMergeNode"),l.appendChild(a),(a=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),this.feMergeNode=a,this.feMerge=l,this.originalNodeAdded=!1,l.appendChild(a)}ShapeTransformManager.prototype={addTransformSequence:function(t){var e,i=t.length,n="_";for(e=0;e<i;e+=1)n+=t[e].transform.key+"_";var r=this.sequences[n];return r||(r={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=r,this.sequenceList.push(r)),r},processSequence:function(t,e){for(var i,n=0,r=t.transforms.length,s=e;n<r&&!e;){if(t.transforms[n].transform.mProps._mdf){s=!0;break}n+=1}if(s)for(t.finalTransform.reset(),n=r-1;n>=0;n-=1)i=t.transforms[n].transform.mProps.v.props,t.finalTransform.transform(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],i[9],i[10],i[11],i[12],i[13],i[14],i[15]);t._mdf=s},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e<i;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t,e,i,n=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var r=createNS("mask");r.setAttribute("id",this.layerId),r.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),r.appendChild(this.layerElement),n=r,this.globalData.defs.appendChild(r),featureSupport.maskType||1!=this.data.td||(r.setAttribute("mask-type","luminance"),t=createElementID(),e=filtersFactory.createFilter(t),this.globalData.defs.appendChild(e),e.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(i=createNS("g")).appendChild(this.layerElement),n=i,r.appendChild(i),i.setAttribute("filter","url("+locationHref+"#"+t+")"))}else if(2==this.data.td){var s=createNS("mask");s.setAttribute("id",this.layerId),s.setAttribute("mask-type","alpha");var o=createNS("g");s.appendChild(o),t=createElementID(),e=filtersFactory.createFilter(t);var a=createNS("feComponentTransfer");a.setAttribute("in","SourceGraphic"),e.appendChild(a);var l=createNS("feFuncA");l.setAttribute("type","table"),l.setAttribute("tableValues","1.0 0.0"),a.appendChild(l),this.globalData.defs.appendChild(e);var h=createNS("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("op
89acity","0"),o.setAttribute("filter","url("+locationHref+"#"+t+")"),o.appendChild(h),o.appendChild(this.layerElement),n=o,featureSupport.maskType||(s.setAttribute("mask-type","luminance"),e.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),o.appendChild(h),i.appendChild(this.layerElement),n=i,o.appendChild(i)),this.globalData.defs.appendChild(s)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),n=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var c=createNS("clipPath"),d=createNS("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=createElementID();if(c.setAttribute("id",p),c.appendChild(d),this.globalData.defs.appendChild(c),this.checkMasks()){var u=createNS("g");u.setAttribute("clip-path","url("+locationHref+"#"+p+")"),u.appendChild(this.layerElement),this.transformedElement=u,n?n.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+p+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+locationHref+"#"+t+")")}},IShapeElement.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,n=e.length;i<n;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,n=i.length;n;)if(i[n-=1].elem===t)return void(i[n].pos=e);i.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}},ITextElement.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){var i,n,r=e.length,s="";for(i=0;i<r;i+=1)n=e[i].ks.k,s+=buildShapeString(n,n.i.length,!0,t);return s},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,
vendor: 4,280 bytes, line 89
89i,n,r){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(n,r,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this.audio.volume(t)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},FootageElement.prototype.prepareFrame=function(){}
89,extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){this.layerInterface=FootageInterface(this)},FootageElement.prototype.getFootageData=function(){return this.footageData},extendPrototype([SVGRenderer,ICompElement,SVGBaseElement],SVGCompElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,i=t.length,n=[],r="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(n.push(r),r=""):r+=t[e],e+=1;return n.push(r),n},SVGTextLottieElement.prototype.buildNewText=function(){var t,e,i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var n=this.globalData.fontManager.getFontByName(i.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var r=i.fWeight,s=i.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",i.t);var o,a=i.l||[],l=!!this.globalData.fontManager.chars;e=a.length;var h,c=this.mHelper,d="",p=this.data.singleShape,u=0,f=0,m=!0,g=.001*i.tr*i.finalSize;if(!p||l||i.sz){var v,y,b=this.textSpans.length;for(t=0;t<e;t+=1)l&&p&&0!==t||(o=b>t?this.textSpans[t]:createNS(l?"path":"text"),b<=t&&(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=o,this.layerElement.appendChild(o)),o.style.display="inherit"),c.reset(),c.scale(i.finalSize/100,i.finalSize/100),p&&(a[t].n&&(u=-g,f+=i.yOffset,f+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(i,c,a[t].line,u,f),u+=a[t].l||0,u+=g),l?(h=(v=(y=this.globalData.fontManager.getCharData(i.finalText[t],n.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily))&&y.data||{}).shapes?v.shapes[0].it:[],p?d+=this.createPathShape(c,h):o.setAttribute("d",this.createPathShape(c,h))):(p&&o.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),o.textContent=a[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));p&&o&&o.setAttribute("d",d)}else{var _=this.textContainer,w="start";switch(i.j){case 1:w="end";break;case 2:w="middle";break;default:w="start"}_.setAttribute("text-anchor",w),_.setAttribute("letter-spacing",g);var x=this.buildTextContents(i.finalText);for(e=x.length,f=i.ps?i.ps[1]+i.ascent:0,t=0;t<e;t+=1)(o=this.textSpans[t]||createNS("tspan")).textContent=x[t],o.setAttribute("x",0),o.setAttribute("y",f),o.style.display="inherit",_.appendChild(o),this.textSpans[t]=o,f+=i.finalLineHeight;this.layerElement.appendChild(_)}for(;t<this.textSpans.length;)this.textSpans[t].style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.renderInnerContent=function(){if(!this.data.singleShape&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var i,n,r=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;for(e=s.length,t=0;t<e;t+=1)s[t].n||(i=r[t],n=this.textSpans[t],i._mdf.m&&n.setAttribute("transform",i.m),i._mdf.o&&n.setAttribute("op
vendor: 8,181 bytes, lines 89-90
89acity",i.o),i._mdf.sw&&n.setAttribute("stroke-width",i.sw),i._mdf.sc&&n.setAttribute("stroke",i.sc),i._mdf.fc&&n.setAttribute("fill",i.fc))}},extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes() 90},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,i,n,r=this.shapes.length,s=this.stylesList.length,o=[],a=!1;for(i=0;i<s;i+=1){for(n=this.stylesList[i],a=!1,o.length=0,t=0;t<r;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(n)&&(o.push(e),a=e._isAnimated||a);o.length>1&&a&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,n=new SVGStyleData(t,e),r=n.pElem;return"st"===t.ty?i=new SVGStrokeStyleData(this,t,n):"fl"===t.ty?i=new SVGFillStyleData(this,t,n):"gf"!==t.ty&&"gs"!==t.ty||(i=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,n),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),r.setAttribute("mask","url("+locationHref+"#"+i.maskId+")"))),"st"!==t.ty&&"gs"!==t.ty||(r.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),r.setAttribute("fill-opacity","0"),1===t.lj&&r.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(n),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var i=TransformPropertyFactory.getTransformProperty(this,t,this),n=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var n=4;"rc"===t.ty?n=5:"el"===t.ty?n=6:"sr"===t.ty&&(n=7);var r=new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,n,this));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,n=this.animatedContents.length;i<n;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,i=t.styles,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].closed||i.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,i,n,r,s,o){var a,l,h,c,d,p,u=[].concat(s),f=t.length-1,m=[],g=[];for(a=f;a>=0;a-=1){if((p=this.searchProcessedElement(t[a]))?e[a]=i[p-1]:t[a]._render=o,"fl"===t[a].ty||"st"===t[a].ty||"gf"===t[a].ty||"gs"===t[a].ty)p?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],r),t[a]._render&&e[a].style.pElem.parentNode!==n&&n.appendChild(e[a].style.pElem),m.push(e[a].style);else if("gr"===t[a].ty){if(p)for(h=e[a].it.length,l=0;l<h;l+=1)e[a].prevViewData[l]=e[a].it[l];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,e[a].gr,r+1,u,o),t[a]._render&&e[a].gr.parentNode!==n&&n.appendChild(e[a].gr)}else"tr"===t[a].ty?(p||(e[a]=this.createTransformElement(t[a],n)),c=e[a].transform,u.push(c)):"sh"===t[a].ty||"rc"===t[a].ty||"el"===t[a].ty||"sr"===t[a].ty?(p||(e[a]=this.createShapeElement(t[a],u,r)),this.setElementStyles(e[a])):"tm"===t[a].ty||"rd"===t[a].ty||"ms"===t[a].ty||"pb"===t[a].ty?(p?(d=e[a]).closed=!1:((d=ShapeModifiers.getModifier(t[a].ty)).init(this,t[a]),e[a]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===t[a].ty&&(p?(d=e[a]).closed=!0:(d=ShapeModifiers.getModifier(t[a].ty),e[a]=d,d.init(this,t,a,e),this.shapeModifiers.push(d),o=!1),g.push(d));this.addProcessedElement(t[a],a+1)}for(f=m.length,a=0;a<f;a+=1)m[a].closed=!0;for(f=g.length,a=0;a<f;a+=1)g[a].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",i[0]-e[0]+" 0 0 0 "+e[0]+" "+(i[1]-e[1])+" 0 0 0 "+e[1]+" "+(i[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+n+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=3==i?0:e,r=2==i?0:e;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+r);var s=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}},SVGStrokeEffect.prototype.initialize=function(){var t,e,i,n,r=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(n=this.elem.maskManager.masksProperties.length,i=0):n=1+(i=this.filterManager.effectElements[0].p.v-1),(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);i<n;i+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var s=createNS("mask"),o=createElementID();s.setAttribute("id",o),s.setAttribute("mask-type","alpha"),s.appendChild(e),this.elem.globalData.defs.appendChild(s);var a=createNS("g");for(a.setAttribute("mask","url("+locationHref+"#"+o+")");r[0];)a.appendChild(r[0]);this.elem.layerElement.appendChild(a),this.masker=s,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(r=this.elem.layerElement.children||this.elem.layerElement.childNodes;r.length;)this.elem.layerElement.removeChild(r[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var i,n,r=this.paths.length;for(e=0;e<r;
vendor: 4,503 bytes, line 90
90e+=1)if(-1!==this.paths[e].m&&(i=this.elem.maskManager.viewData[this.paths[e].m],n=this.paths[e].p,(t||this.filterManager._mdf||i.prop._mdf)&&n.setAttribute("d",i.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var s;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var o=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),a=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=n.getTotalLength();s="0 0 0 "+l*o+" ";var h,c=l*(a-o),d=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(c/d);for(h=0;h<p;h+=1)s+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+10*l+" 0 0"}else s="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",s)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var u=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*u[0])+","+bmFloor(255*u[1])+","+bmFloor(255*u[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,r=n[0]+" "+i[0]+" "+e[0],s=n[1]+" "+i[1]+" "+e[1],o=n[2]+" "+i[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",r),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",o)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var i=createNS(t);return i.setAttribute("type","table"),e.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(t,e,i,n,r){for(var s,o,a=0,l=Math.min(t,e),h=Math.max(t,e),c=Array.call(null,{length:256}),d=0,p=r-n,u=e-t;a<=256;)o=(s=a/256)<=l?u<0?r:n:s>=h?u<0?n:r:n+p*Math.pow((s-t)/u,1/i),c[d]=o,d+=1,a+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,
90n=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=i*Math.cos(n),s=i*Math.sin(n);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGEffects(t){var e,i,n=t.data.ef?t.data.ef.length:0,r=createElementID(),s=filtersFactory.createFilter(r,!0),o=0;for(this.filters=[],e=0;e<n;e+=1)i=null,20===t.data.ef[e].ty?(o+=1,i=new SVGTintFilter(s,t.effectsManager.effectElements[e])):21===t.data.ef[e].ty?(o+=1,i=new SVGFillFilter(s,t.effectsManager.effectElements[e])):22===t.data.ef[e].ty?i=new SVGStrokeEffect(t,t.effectsManager.effectElements[e]):23===t.data.ef[e].ty?(o+=1,i=new SVGTritoneFilter(s,t.effectsManager.effectElements[e])):24===t.data.ef[e].ty?(o+=1,i=new SVGProLevelsFilter(s,t.effectsManager.effectElements[e])):25===t.data.ef[e].ty?(o+=1,i=new SVGDropShadowEffect(s,t.effectsManager.effectElements[e])):28===t.data.ef[e].ty?i=new SVGMatte3Effect(s,t.effectsManager.effectElements[e],t):29===t.data.ef[e].ty&&(o+=1,i=new SVGGaussianBlurEffect(s,t.effectsManager.effectElements[e])),i&&this.filters.push(i);o&&(t.globalData.defs.appendChild(s),t.layerElement.setAttribute("filter","url("+locationHref+"#"+r+")")),this.filters.length&&t.addRenderableComponent(this)}function CVContextData(){var t;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15}function CVBaseElement(){}function CVImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,i)}function CVCompElement(t,e,i){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CVMaskElement(t,e){var i;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n=this.masksProperties.length,r=!1;for(i=0;i<n;i+=1)"n"!==this.masksProperties[i].mode&&(r=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=r,r&&this.element.addRenderableComponent(this)}function CVShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,i)}function CVSolidElement(t,e,i){this.initElement(t,e,i)}function CVTextElement(t,e,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,i)}function CVEffects(){}function HBaseElement(){}function HSolidElement(t,e,i){this.initElement(t,e,i)}function HCompElement(t,e,i){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,i)}function HImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i)}function HCameraElement(t,e,i){this.initFrame(),this.initBaseData(t,e,
vendor: 23,253 bytes, lines 90-91
90i),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,t.pe,0,0,this),t.ks.p.s?(this.px=n(this,t.ks.p.x,1,0,this),this.py=n(this,t.ks.p.y,1,0,this),this.pz=n(this,t.ks.p.z,1,0,this)):this.p=n(this,t.ks.p,1,0,this),t.ks.a&&(this.a=n(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var r,s=t.ks.or.k.length;for(r=0;r<s;r+=1)t.ks.or.k[r].to=null,t.ks.or.k[r].ti=null}this.or=n(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,t.ks.rx,0,degToRads,this),this.ry=n(this,t.ks.ry,0,degToRads,this),this.rz=n(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HEffects(){}SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e<i;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var i=t.layerElement.parentNode;if(i){for(var n,r=i.children,s=0,o=r.length;s<o&&r[s]!==t.layerElement;)s+=1;s<=o-2&&(n=r[s+1]);var a=createNS("use");a.setAttribute("href","#"+e),n?i.insertBefore(a,n):i.appendChild(a)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var i=createElementID(),n=createNS("mask");n.setAttribute("id",e.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var r=t.globalData.defs;r.appendChild(n);var s=createNS("symbol");s.setAttribute("id",i),this.replaceInParent(e,i),s.appendChild(e.layerElement),r.appendChild(s);var o=createNS("use");o.setAttribute("href","#"+i),n.appendChild(o),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,n=e.length;i<n;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=createTypedArray("float32",t),this.savedOp.set(e);var i=0;for(i=this._length;i<t;i+=1)this.saved[i]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var t=0===this.data.ty;this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(t),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,i,n=t.getContext("2d"),r=this.img.width,s=this.img.height,o=r/s,a=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>a&&"xMidYMid slice"===l||o<a&&"xMidYMid slice"!==l?e=(i=s)*a:i=(e=r)/a,n.drawImage(this.img,(r-e)/2,(s-i)/2,e,i,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([CanvasRenderer,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,i,n,r=this.element.finalTransform.mat,s=this.element.canvasContext,o=this.masksProperties.length;for(s.beginPath(),t=0;t<o;t+=1)if("n"!==this.masksProperties[t].mode){var a;this.masksProperties[t].inv&&(s.moveTo(0,0),s.lineTo(this.element.globalData.compSize.w,0),s.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),s.lineTo(0,this.element.globalData.compSize.h),s.lineTo(0,0)),n=this.viewData[t].v,e=r.applyToPointArray(n.v[0][0],n.v[0][1],0),s.moveTo(e[0],e[1]);var l=n._length;for(a=1;a<l;a+=1)i=r.applyToTriplePoints(n.o[a-1],n.i[a],n.v[a]),s.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);i=r.applyToTriplePoints(n.o[a-1],n.i[0],n.v[0]),s.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}this.element.globalData.renderer.save(!0),s.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var i={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},n={};if("fl"===t.ty||"st"===t.ty?(n.c=PropertyFactory.getProp(this,t.c,1,255,this),n.c.k||(i.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(n.s=PropertyFactory.getProp(this,t.s,1,null,this),n.e=PropertyFactory.getProp(this,t.e,1,null,this),n.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,t.g,this)),n.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty){if(i.lc=lineCapEnum[t.lc||2],i.lj=lineJoinEnum[t.lj||2],1==t.lj&&(i.ml=t.ml),n.w=PropertyFactory.getProp(this,t.w,0,null,this),n.w.k||(i.wi=n.w.v),t.d){var r=new DashProperty(this,t.d,"canvas",this);n.d=r,n.d.k||(i.da=n.d.dashArray,i.do=n.d.dashoffset[0])}}else i.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(i),n.style=i,n},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,i,n,r){var s,o,a,l,h,c,d=t.length-1,p=[],u=[],f=[].concat(r);for(s=d;s>=0;s-=1){if((l=this.searchProcessedElement(t[s]))?e[s]=i[l-1]:t[s]._shouldRender=n,"fl"===t[s].ty||"st"===t[s].ty||"gf"===t[s].ty||"gs"===t[s].ty)l?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],f),p.push(e[s].style);else if("gr"===t[s].ty){if(l)for(a=e[s].it.length,o=0;o<a;o+=1)e[s].prevViewData[o]=e[s].it[o];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,n,f)}else"tr"===t[s].ty?(l||(c=this.createTransformElement(t[s]),e[s]=c),f.push(e[s]),this.addTransformToStyleList(e[s])):"sh"===t[s].ty||"rc"===t[s].ty||"el"===t[s].ty||"sr"===t[s].ty?l||(e[s]=this.createShapeElement(t[s])):"tm"===t[s].ty||"rd"===t[s].ty||"pb"===t[s].ty?(l?(h=e[s]).closed=!1:((h=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=h,this.shapeModifiers.push(h)),u.push(h)):"rp"===t[s].ty&&(l?(h=e[s]).closed=!0:(h=ShapeModifiers.getModifier(t[s].ty),e[s]=h,h.init(this,t,s,e),this.shapeModifiers.push(h),n=!1),u.push(h));this.addProcessedElement(t[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(p),d=u.length,s=0;s<d;s+=1)u[s].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,i,n,r,s,o,a,l,h=this.stylesList.length,c=this.globalData.renderer,d=this.globalData.canvasContext;for(t=0;t<h;t+=1)if(("st"!==(a=(l=this.stylesList[t]).type)&&"gs"!==a||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(c.save(),s=l.elements,"st"===a||"gs"===a?(d.strokeStyle="st"===a?l.co:l.grd,d.lineWidth=l.wi,d.lineCap=l.lc,d.lineJoin=l.lj,d.miterLimit=l.ml||0):d.fillStyle="fl"===a?l.co:l.grd,c.ctxOpacity(l.coOp),"st"!==a&&"gs"!==a&&d.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),i=s.length,e=0;e<i;e+=1){for("st"!==a&&"gs"!==a||(d.beginPath(),l.da&&(d.setLineDash(l.da),d.lineDashOffset=l.do)),r=(o=s[e].trNodes).length,n=0;n<r;n+=1)"m"===o[n].t?d.moveTo(o[n].p[0],o[n].p[1]):"c"===o[n].t?d.bezierCurveTo(o[n].pts[0],o[n].pts[1],o[n].pts[2],o[n].pts[3],o[n].pts[4],o[n].pts[5]):d.closePath();"st"!==a&&"gs"!==a||(d.stroke(),l.da&&d.setLineDash(this.dashResetter))}"st"!==a&&"gs"!==a&&d.fill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,n){var r,s;for(s=t,r=e.length-1;r>=0;r-=1)"tr"===e[r].ty?(s=i[r].transform,this.renderShapeTransform(t,s)):"sh"===e[r].ty||"el"===e[r].ty||"rc"===e[r].ty||"sr"===e[r].ty?this.renderPath(e[r],i[r]):"fl"===e[r].ty?this.renderFill(e[r],i[r],s):"st"===e[r].ty?this.renderStroke(e[r],i[r],s):"gf"===e[r].ty||"gs"===e[r].ty?this.renderGradientFill(e[r],i[r],s):"gr"===e[r].ty?this.renderShape(s,e[r].it,i[r].it):e[r].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,n,r,s=t.trNodes,o=e.paths,a=o._length;s.length=0;var l=t.transforms.finalTransform;for(r=0;r<a;r+=1){var h=o.shapes[r];if(h&&h.v){for(n=h._length,i=1;i<n;i+=1)1===i&&s.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),s.push({t:"c",pts:l.applyToTriplePoints(h.o[i-1],h.i[i],h.v[i])});1===n&&s.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),h.c&&n&&(s.push({t:"c",pts:l.applyToTriplePoints(h.o[i-1],h.i[0],h.v[0])}),s.push({t:"z"}))}}t.trNodes=s}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var i,n=e.styledShapes.length;for(i=0;i<n;i+=1)this.renderStyledShape(e.styledShapes[i],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,i){var n=e.style;(e.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(n.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,i){var n,r=e.style;if(!r.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var s,o=this.globalData.canvasContext,a=e.s.v,l=e.e.v;if(1===t.t)n=o.createLinearGradient(a[0],a[1],l[0],l[1]);else{var h=Math.sqrt(Math.pow(a[0]-l[0],2)+Math.pow(a[1]-l[1],2)),c=Math.atan2(l[1]-a[1],l[0]-a[0]),d=e.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var p=h*d,u=Math.cos(c+e.a.v)*p+a[0],f=Math.sin(c+e.a.v)*p+a[1];n=o.createRadialGradient(u,f,0,a[0],a[1],h)}var m=t.g.p,g=e.g.c,v=1;for(s=0;s<m;s+=1)e.g._hasOpacity&&e.g._collapsable&&(v=e.g.o[2*s+1]),n.addColorStop(g[4*s]/100,"rgba("+g[4*s+1]+","+g[4*s+2]+","+g[4*s+3]+","+v+")");r.grd=n}r.coOp=e.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(t,e,i){var n=e.style,r=e.d;r&&(r._mdf||this._isFirstFrame)&&(n.da=r.dashArray,n.do=r.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(n.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(n.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var i=!1;t.sc&&(i=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw) 91;var n,r,s,o,a,l,h,c,d,p,u,f,m=this.globalData.fontManager.getFontByName(t.f),g=t.l,v=this.mHelper;this.stroke=i,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,r=t.finalText.length;var y=this.data.singleShape,b=.001*t.tr*t.finalSize,_=0,w=0,x=!0,S=0;for(n=0;n<r;n+=1){for(o=(s=this.globalData.fontManager.getCharData(t.finalText[n],m.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&s.data||{},v.reset(),y&&g[n].n&&(_=-b,w+=t.yOffset,w+=x?1:0,x=!1),d=(h=o.shapes?o.shapes[0].it:[]).length,v.scale(t.finalSize/100,t.finalSize/100),y&&this.applyTextPropertiesToMatrix(t,v,g[n].line,_,w),u=createSizedArray(d),c=0;c<d;c+=1){for(l=h[c].ks.k.i.length,p=h[c].ks.k,f=[],a=1;a<l;a+=1)1===a&&f.push(v.applyToX(p.v[0][0],p.v[0][1],0),v.applyToY(p.v[0][0],p.v[0][1],0)),f.push(v.applyToX(p.o[a-1][0],p.o[a-1][1],0),v.applyToY(p.o[a-1][0],p.o[a-1][1],0),v.applyToX(p.i[a][0],p.i[a][1],0),v.applyToY(p.i[a][0],p.i[a][1],0),v.applyToX(p.v[a][0],p.v[a][1],0),v.applyToY(p.v[a][0],p.v[a][1],0));f.push(v.applyToX(p.o[a-1][0],p.o[a-1][1],0),v.applyToY(p.o[a-1][0],p.o[a-1][1],0),v.applyToX(p.i[0][0],p.i[0][1],0),v.applyToY(p.i[0][0],p.i[0][1],0),v.applyToX(p.v[0][0],p.v[0][1],0),v.applyToY(p.v[0][0],p.v[0][1],0)),u[c]=f}y&&(_+=g[n].l,_+=b),this.textSpans[S]?this.textSpans[S].elem=u:this.textSpans[S]={elem:u},S+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,i,n,r,s,o=this.canvasContext;o.font=this.values.fValue,o.lineCap="butt",o.lineJoin="miter",o.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;e=h.length;var c,d,p=null,u=null,f=null;for(t=0;t<e;t+=1)if(!h[t].n){if((a=l[t])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(a.p),this.globalData.renderer.ctxOpacity(a.o)),this.fill){for(a&&a.fc?p!==a.fc&&(p=a.fc,o.fillStyle=a.fc):p!==this.values.fill&&(p=this.values.fill,o.fillStyle=this.values.fill),n=(c=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<n;i+=1)for(s=(d=c[i]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),r=2;r<s;r+=6)this.globalData.canvasContext.bezierCurveTo(d[r],d[r+1],d[r+2],d[r+3],d[r+4],d[r+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(a&&a.sw?f!==a.sw&&(f=a.sw,o.lineWidth=a.sw):f!==this.values.sWidth&&(f=this.values.sWidth,o.lineWidth=this.values.sWidth),a&&a.sc?u!==a.sc&&(u=a.sc,o.strokeStyle=a.sc):u!==this.values.stroke&&(u=this.values.stroke,o.strokeStyle=this.values.stroke),n=(c=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<n;i+=1)for(s=(d=c[i]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),r=2;r<s;r+=6)this.globalData.canvasContext.bezierCurveTo(d[r],d[r+1],d[r+2],d[r+3],d[r+4],d[r+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}a&&this.globalData.renderer.restore()}},CVEffects.prototype.renderFrame=function(){},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=HybridRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([HybridRenderer,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var i,n=0;n<e;)this.elements[n]&&this.elements[n].getBaseElement&&(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)e=t[i].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i,n,r,s,o,a=t.sh.v,l=t.transformers,h=a._length;if(!(h<=1)){for(i=0;i<h-1;i+=1)n=this.getTransformedPoint(l,a.v[i]),r=this.getTransformedPoint(l,a.o[i]),s=this.getTransformedPoint(l,a.i[i+1]),o=this.getTransformedPoint(l,a.v[i+1]),this.checkBounds(n,r,s,o,e);a.c&&(n=this.getTransformedPoint(l,a.v[i]),r=this.getTransformedPoint(l,a.o[i]),s=this.getTransformedPoint(l,a.i[0]),o=this.getTransformedPoint(l,a.v[0]),this.checkBounds(n,r,s,o,e))}}
vendor: 10,141 bytes, line 91
91,HShapeElement.prototype.checkBounds=function(t,e,i,n,r){this.getBoundsOfCurve(t,e,i,n);var s=this.shapeBoundingBox;r.x=bmMin(s.left,r.x),r.xMax=bmMax(s.right,r.xMax),r.y=bmMin(s.top,r.y),r.yMax=bmMax(s.bottom,r.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,i,n){for(var r,s,o,a,l,h,c,d=[[t[0],n[0]],[t[1],n[1]]],p=0;p<2;++p)s=6*t[p]-12*e[p]+6*i[p],r=-3*t[p]+9*e[p]-9*i[p]+3*n[p],o=3*e[p]-3*t[p],s|=0,o|=0,0==(r|=0)&&0===s||(0===r?(a=-o/s)>0&&a<1&&d[p].push(this.calculateF(a,t,e,i,n,p)):(l=s*s-4*o*r)>=0&&((h=(-s+bmSqrt(l))/(2*r))>0&&h<1&&d[p].push(this.calculateF(h,t,e,i,n,p)),(c=(-s-bmSqrt(l))/(2*r))>0&&c<1&&d[p].push(this.calculateF(c,t,e,i,n,p))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[1])},HShapeElement.prototype.calculateF=function(t,e,i,n,r,s){return bmPow(1-t,3)*e[s]+3*bmPow(1-t,2)*t*i[s]+3*(1-t)*bmPow(t,2)*n[s]+bmPow(t,3)*r[s]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)t[i]&&t[i].sh?this.calculateShapeBoundingBox(t[i],e):t[i]&&t[i].it&&this.calculateBoundingBox(t[i].it,e)},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var i=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),i=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),i=!0),i||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,r="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=r,n.webkitTransform=r}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,i=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=i,e.color=i,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var n,r,s=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",s.fClass)this.innerElem.className=s.fClass;else{e.fontFamily=s.fFamily;var o=t.fWeight,a=t.fStyle;e.fontStyle=a,e.fontWeight=o}var l,h,c,d=t.l;r=d.length;var p,u=this.mHelper,f="",m=0;for(n=0;n<r;n+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?c=(h=this.textSpans[m]).children[0]:((h=createTag("div")).style.lineHeight=0,(c=createNS("svg")).appendChild(l),styleDiv(h)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(h=this.textSpans[m],l=this.textPaths[m]):(styleDiv(h=createTag("span")),styleDiv(l=createTag("span")),h.appendChild(l)),this.globalData.fontManager.chars){var g,v=this.globalData.fontManager.getCharData(t.finalText[n],s.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(g=v?v.data:null,u.reset(),g&&g.shapes&&(p=g.shapes[0].it,u.scale(t.finalSize/100,t.finalSize/100),f=this.createPathShape(u,p),l.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(h),g&&g.shapes){document.body.appendChild(c);var y=c.getBBox();c.setAttribute("width",y.width+2),c.setAttribute("height",y.height+2),c.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var b=c.style,_="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";b.transform=_,b.webkitTransform=_,d[n].yOffset=y.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);h.appendChild(c)}}else if(l.textContent=d[n].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(h);var w=l.style,x="translate3d(0,"+-t.finalSize/1.2+"px,0)";w.transform=x,w.webkitTransform=x}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=h,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var i,n,r,s,o,a=0,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;for(n=h.length,i=0;i<n;i+=1)h[i].n?a+=1:(s=this.textSpans[i],o=this.textPaths[i],r=l[a],a+=1,r._mdf.m&&(this.isMasked?s.setAttribute("transform",r.m):(s.style.webkitTransform=r.m,s.style.transform=r.m)),s.style.opacity=r.o,r.sw&&r._mdf.sw&&o.setAttribute("stroke-width",r.sw),r.sc&&r._mdf.sc&&o.setAttribute("stroke",r.sc),r.fc&&r._mdf.fc&&(o.setAttribute("fill",r.fc),o.style.color=r.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height)),this.currentBBox.w!==c.width+2||this.currentBBox.h!==c.height+2||this.currentBBox.x!==c.x-1||this.currentBBox.y!==c.y-1){this.currentBBox.w=c.width+2,this.currentBBox.h=c.height+2,this.currentBBox.x=c.x-1,this.currentBBox.y=c.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=d,t.webkitTransform=d}}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,i,n,r=this.comp.threeDElements.length;for(t=0;t<r;t+=1)if("3d"===(e=this.comp.threeDElements[t]).type){i=e.perspectiveElem.style,n=e.container.style;var s=this.pe.v+"px",o="0px 0px 0px",a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=s,i.webkitPerspective=s,n.transformOrigin=o,n.mozTransformOrigin=o,n.webkitTransformOrigin=o,i.transform=a,i.webkitTransform=a}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,i=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)i=this.hierarchy[t].finalTransform.mProp._mdf||i;if(i||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(t=e=this.hierarchy.length-1;t>=0;t-=1){var n=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var r;r=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var s=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),o=[r[0]/s,r[1]/s,r[2]/s],a=Math.sqrt(o[2]*o[2]+o[0]*o[
vendor: 6,847 bytes, line 91
910]),l=Math.atan2(o[1],a),h=Math.atan2(o[0],-o[2]);this.mat.rotateY(h).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){var d,p,u;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if("3d"===(d=this.comp.threeDElements[t]).type){if(c){var f=this.mat.toCSS();(u=d.container.style).transform=f,u.webkitTransform=f}this.pe._mdf&&((p=d.perspectiveElem.style).perspective=this.pe.v+"px",p.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},HEffects.prototype.renderFrame=function(){};var animationManager=function(){var t={},e=[],i=0,n=0,r=0,s=!0,o=!1;function a(t){for(var i=0,r=t.target;i<n;)e[i].animation===r&&(e.splice(i,1),i-=1,n-=1,r.isPaused||c()),i+=1}function l(t,i){if(!t)return null;for(var r=0;r<n;){if(e[r].elem===t&&null!==e[r].elem)return e[r].animation;r+=1}var s=new AnimationItem;return d(s,t),s.setData(t,i),s}function h(){r+=1,f()}function c(){r-=1}function d(t,i){t.addEventListener("destroy",a),t.addEventListener("_active",h),t.addEventListener("_idle",c),e.push({elem:i,animation:t}),n+=1}function p(t){var a,l=t-i;for(a=0;a<n;a+=1)e[a].animation.advanceTime(l);i=t,r&&!o?window.requestAnimationFrame(p):s=!0}function u(t){i=t,window.requestAnimationFrame(p)}function f(){!o&&r&&s&&(window.requestAnimationFrame(u),s=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new AnimationItem;return d(e,null),e.setParams(t),e},t.setSpeed=function(t,i){var r;for(r=0;r<n;r+=1)e[r].animation.setSpeed(t,i)},t.setDirection=function(t,i){var r;for(r=0;r<n;r+=1)e[r].animation.setDirection(t,i)},t.play=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.play(t)},t.pause=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.pause(t)},t.stop=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.stop(t)},t.togglePause=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.togglePause(t)},t.searchAnimations=function(t,e,i){var n,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),s=r.length;for(n=0;n<s;n+=1)i&&r[n].setAttribute("data-bm-type",i),l(r[n],t);if(e&&0===s){i||(i="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var a=createTag("div");a.style.width="100%",a.style.height="100%",a.setAttribute("data-bm-type",i),o.appendChild(a),l(a,t)}},t.resize=function(){var t;for(t=0;t<n;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,i,r){var s;for(s=0;s<n;s+=1)e[s].animation.goToAndStop(t,i,r)},t.destroy=function(t){var i;for(i=n-1;i>=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){o=!0},t.unfreeze=function(){o=!1,f()},t.setVolume=function(t,i){var r;for(r=0;r<n;r+=1)e[r].animation.setVolume(t,i)},t.mute=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.mute(t)},t.unmute=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,i=e.length,n=[];for(t=0;t<i;t+=1)n.push(e[t].animation);return n},t}(),AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=subframeEnabled,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";switch(t.animType?e=t.animType:t.renderer&&(e=t.renderer),e){case"canvas":this.renderer=new CanvasRenderer(this,t.rendererSettings);break;case"svg":this.renderer=new SVGRenderer(this,t.rendererSettings);break;default:this.renderer=new HybridRenderer(this,t.rendererSettings)}this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!=typeof e&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},n=t.attributes;i.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",i.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:"canvas";var r=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";"false"===r?i.loop=!1:"true"===r?i.loop=!0:""!==r&&(i.loop=parseInt(r,10));
vendor: 9,794 bytes, lines 91-92
91var s=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;i.autoplay="false"!==s,i.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"","false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),this.setParams(i)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,n=this.animationData.layers,r=n.length,s=t.layers,o=s.length;for(i=0;i<o;i+=1)for(e=0;e<r;){if(n[e].id===s[i].id){n[e]=s[i];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(r=t.assets.length,e=0;e<r;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t,expressionsPlugin&&expressionsPlugin.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()&&(this.isLoaded=!0,expressionsPlugin&&expressionsPlugin.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play())},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){var n=Number(t);if(isNaN(n)){var r=this.getMarkerData(t);r&&this.goToAndStop(r.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var n=Number(t);if(isNaN(n)){var r=this.getMarkerData(t);r&&(r.duration?this.playSegments([r.time,r.time+r.duration],!0):this.goToAndStop(r.time,!0))}else this.goToAndStop(n,e,i);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1 92;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"==typeof t[0]){var i,n=t.length;for(i=0;i<n;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;
vendor: 12,638 bytes, line 92
92){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":case"drawnFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var Expressions=function(){var t={initExpressions:function(t){var e=0,i=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0==(e-=1)&&function(){var t,e=i.length;for(t=0;t<e;t+=1)i[t].release();i.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===i.indexOf(t)&&i.push(t)}}};return t}();expressionsPlugin=Expressions;var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(t){var e=typeof t;if("number"===e||"boolean"===e||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){var i,n=t.length,r=[];for(i=0;i<n;i+=1)r[i]=-t[i];return r}return t.propType?t.v:-t}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var i=typeof t,n=typeof e;if("string"===i||"string"===n)return t+e;if(isNumerable(i,t)&&isNumerable(n,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var r=0,s=t.length,o=e.length,a=[];r<s||r<o;)("number"==typeof t[r]||t[r]instanceof Number)&&("number"==typeof e[r]||e[r]instanceof Number)?a[r]=t[r]+e[r]:a[r]=void 0===e[r]?t[r]:t[r]||e[r],r+=1;return a}return 0}var add=sum;function sub(t,e){var i=typeof t,n=typeof e;if(isNumerable(i,t)&&isNumerable(n,e))return"string"===i&&(t=parseInt(t,10)),"string"===n&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var r=0,s=t.length,o=e.length,a=[];r<s||r<o;)("number"==typeof t[r]||t[r]instanceof Number)&&("number"==typeof e[r]||e[r]instanceof Number)?a[r]=t[r]-e[r]:a[r]=void 0===e[r]?t[r]:t[r]||e[r],r+=1;return a}return 0}function mul(t,e){var i,n,r,s=typeof t,o=typeof e;if(isNumerable(s,t)&&isNumerable(o,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(r=t.length,i=createTypedArray("float32",r),n=0;n<r;n+=1)i[n]=t[n]*e;return i}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(r=e.length,i=createTypedArray("float32",r),n=0;n<r;n+=1)i[n]=t*e[n];return i}return 0}function div(t,e){var i,n,r,s=typeof t,o=typeof e;if(isNumerable(s,t)&&isNumerable(o,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(r=t.length,i=createTypedArray("float32",r),n=0;n<r;n+=1)i[n]=t[n]/e;return i}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(r=e.length,i=createTypedArray("float32",r),n=0;n<r;n+=1)i[n]=t/e[n];return i}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t,10)),"string"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,i){if(e>i){var n=i;i=e,e=n}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var i;e||(e=helperLengthArray);var n=Math.min(t.length,e.length),r=0;for(i=0;i<n;i+=1)r+=Math.pow(e[i]-t[i],2);return Math.sqrt(r)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,i,n=t[0],r=t[1],s=t[2],o=Math.max(n,r,s),a=Math.min(n,r,s),l=(o+a)/2;if(o===a)e=0,i=0;else{var h=o-a;switch(i=l>.5?h/(2-o-a):h/(o+a),o){case n:e=(r-s)/h+(r<s?6:0);break;case r:e=(s-n)/h+2;break;case s:e=(n-r)/h+4}e/=6}return[e,i,l,t[3]]}function hue2rgb(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,n,r=t[0],s=t[1],o=t[2];if(0===s)e=o,n=o,i=o;else{var a=o<.5?o*(1+s):o+s-o*s,l=2*o-a;e=hue2rgb(l,a,r+1/3),i=hue2rgb(l,a,r),n=hue2rgb(l,a,r-1/3)}return[e,i,n,t[3]]}function linear(t,e,i,n,r){if(void 0!==n&&void 0!==r||(n=e,r=i,e=0,i=1),i<e){var s=i;i=e,e=s}if(t<=e)return n;if(t>=i)return r;var o,a=i===e?0:(t-e)/(i-e);if(!n.length)return n+(r-n)*a;var l=n.length,h=createTypedArray("float32",l);for(o=0;o<l;o+=1)h[o]=n[o]+(r[o]-n[o])*a;return h}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var i,n=e.length;t||(t=createTypedArray("float32",n));var r=createTypedArray("float32",n),s=BMMath.random();for(i=0;i<n;i+=1)r[i]=t[i]+s*(e[i]-t[i]);return r}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,i,n){var r,s=t.length,o=shapePool.newElement();o.setPathData(!!n,s);var a,l,h=[0,0];for(r=0;r<s;r+=1)a=e&&e[r]?e[r]:h,l=i&&i[r]?i[r]:h,o.setTripleAt(t[r][0],t[r][1],l[0]+t[r][0],l[1]+t[r][1],a[0]+t[r][0],a[1]+t[r][1],r,!0);return o}function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var i,n,r=this.pv.length?this.pv.length:1,s=createTypedArray("float32",r),o=Math.floor(5*time);for(i=0,n=0;i<o;){for(n=0;n<r;n+=1)s[n]+=-e+2*e*BMMath.random();i+=1}var a=5*time,l=a-Math.floor(a),h=createTypedArray("float32",r);if(r>1){for(n=0;n<r;n+=1)h[n]=this.pv[n]+s[n]+(-e+2*e*BMMath.random())*l;return h}return this.pv+s[0]+(-e+2*e*BMMath.random())*l}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var i=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],n=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads;return[-Math.atan2(i[1],i[2])/degToRads,n,0]}function easeOut(t,e,i,n,r){return applyEase(easeOutBez,t,e,i,n,r)}function easeIn(t,e,i,n,r){return applyEase(easeInBez,t,e,i,n,r)}function ease(t,e,i,n,r){return applyEase(easeInOutBez,t,e,i,n,r)}function applyEase(t,e,i,n,r,s){void 0===r?(r=i,s=n):e=(e-i)/(n-i),e>1?e=1:e<0&&(e=0);var o=t(e);if($bm_isInstanceOfArray(r)){var a,l=r.length,h=createTypedArray("float32",l);for(a=0;a<l;a+=1)h[a]=(s[a]-r[a])*o+r[a];return h}return(s-r)*o+r}function nearestKey(t){var e,i,n,r=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(i=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,n=data.k[0].t;else{for(e=0;e<r-1;e+=1){if(t===data.k[e].t){i=e+1,n=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(i=e+2,n=data.k[e+1].t):(i=e+1,n=data.k[e].t);break}}-1===i&&(i=e+1,n=data.k[e].t)}else i=0,n=0;var s={};return s.index=i,s.time=n/elem.comp.globalData.frameRate,s}function key(t){var e,i,n;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var r=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(n=r.length,i=0;i<n;i+=1)e[i]=r[i],e.value[i]=r[i];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,"shape"===scoped_bm_rt.propType&&(scoped_bm_rt=scoped_bm_rt.v),scoped_bm_rt)}return executeExpression}return ob.initiateExpression=initiateExpression,ob}
vendor: 8,461 bytes, line 92
92(),expressionHelpers={searchExpressions:function(t,e,i){e.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(t,e,i).bind(i)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),i=this.getValueAtTime(t+-.01),n=0;if(e.length){var r;for(r=0;r<e.length;r+=1)n+=Math.pow(i[r]-e[r],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,i,n=-.001,r=this.getValueAtTime(t),s=this.getValueAtTime(t+n);if(r.length)for(e=createTypedArray("float32",r.length),i=0;i<r.length;i+=1)e[i]=(s[i]-r[i])/n;else e=(s-r)/n;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};!function(){function t(t,e,i){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var n,r,s,o,a,l=this.comp.renderedFrame,h=this.keyframes,c=h[h.length-1].t;if(l<=c)return this.pv;if(i?r=c-(n=e?Math.abs(c-this.elem.comp.globalData.frameRate*e):Math.max(0,c-this.elem.data.ip)):((!e||e>h.length-1)&&(e=h.length-1),n=c-(r=h[h.length-1-e].t)),"pingpong"===t){if(Math.floor((l-r)/n)%2!=0)return this.getValueAtTime((n-(l-r)%n+r)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var d=this.getValueAtTime(r/this.comp.globalData.frameRate,0),p=this.getValueAtTime(c/this.comp.globalData.frameRate,0),u=this.getValueAtTime(((l-r)%n+r)/this.comp.globalData.frameRate,0),f=Math.floor((l-r)/n);if(this.pv.length){for(o=(a=new Array(d.length)).length,s=0;s<o;s+=1)a[s]=(p[s]-d[s])*f+u[s];return a}return(p-d)*f+u}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(a=new Array(m.length)).length,s=0;s<o;s+=1)a[s]=m[s]+(m[s]-g[s])*((l-c)/this.comp.globalData.frameRate)/5e-4;return a}return m+(l-c)/.001*(m-g)}}return this.getValueAtTime(((l-r)%n+r)/this.comp.globalData.frameRate,0)}function e(t,e,i){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var n,r,s,o,a,l=this.comp.renderedFrame,h=this.keyframes,c=h[0].t;if(l>=c)return this.pv;if(i?r=c+(n=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-c)):((!e||e>h.length-1)&&(e=h.length-1),n=(r=h[e].t)-c),"pingpong"===t){if(Math.floor((c-l)/n)%2==0)return this.getValueAtTime(((c-l)%n+c)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var d=this.getValueAtTime(c/this.comp.globalData.frameRate,0),p=this.getValueAtTime(r/this.comp.globalData.frameRate,0),u=this.getValueAtTime((n-(c-l)%n+c)/this.comp.globalData.frameRate,0),f=Math.floor((c-l)/n)+1;if(this.pv.length){for(o=(a=new Array(d.length)).length,s=0;s<o;s+=1)a[s]=u[s]-(p[s]-d[s])*f;return a}return u-(p-d)*f}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(a=new Array(m.length)).length,s=0;s<o;s+=1)a[s]=m[s]+(m[s]-g[s])*(c-l)/.001;return a}return m+(m-g)*(c-l)/.001}}return this.getValueAtTime((n-((c-l)%n+c))/this.comp.globalData.frameRate,0)}function i(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var i,n,r=this.comp.renderedFrame/this.comp.globalData.frameRate,s=r-t,o=e>1?(r+t-s)/(e-1):1,a=0,l=0;for(i=this.pv.length?createTypedArray("float32",this.pv.length):0;a<e;){if(n=this.getValueAtTime(s+a*o),this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]+=n[l];else i+=n;a+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]/=e;else i/=e;return i}function n(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var i=this.a.getValueAtTime(t);e.translate(-i[0]*this.a.mult,-i[1]*this.a.mult,i[2]*this.a.mult)}if(this.appliedTransformations<2){var n=this.s.getValueAtTime(t);e.scale(n[0]*this.s.mult,n[1]*this.s.mult,n[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var r=this.sk.getValueAtTime(t),s=this.sa.getValueAtTime(t);e.skewFromAxis(-r*this.sk.mult,s*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var o=this.r.getValueAtTime(t);e.rotate(-o*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var a=this.rz.getValueAtTime(t),l=this.ry.getValueAtTime(t),h=this.rx.getValueAtTime(t),c=this.or.getValueAtTime(t);e.rotateZ(-a*this.rz.mult).rotateY(l*this.ry.mult).rotateX(h*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var d=this.px.getValueAtTime(t),p=this.py.getValueAtTime(t);if(this.data.p.z){var u=this.pz.getValueAtTime(t);e.translate(d*this.px.mult,p*this.py.mult,-u*this.pz.mult)}else e.translate(d*this.px.mult,p*this.py.mult,0)}else{var f=this.p.getValueAtTime(t);e.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[2]*this.p.mult)}return e}function r(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,i){var o=s(t,e,i);return o.dynamicProperties.length?o.getValueAtTime=n.bind(o):o.getValueAtTime=r.bind(o),o.setGroupProperty=expressionHelpers.setGroupProperty,o};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(n,r,s,a,l){var h=o(n,r,s,a,l);h.kf?h.getValueAtTime=expressionHelpers.getValueAtTime.bind(h):h.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(h),h.setGroupProperty=expressionHelpers.setGroupProperty,h.loopOut=t,h.loopIn=e,h.smooth=i,h.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(h),h.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(h),h.numKeys=1===r.a?r.k.length:0,h.propertyIndex=r.ix;var c=0;return 0!==s&&(c=createTypedArray("float32",1===r.a?r.k[0].s.length:r.k.length)),h._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(n,r,h),h.k&&l.addDynamicProperty(h),h};var a=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.prototype={vertices:function(t,e){this.k&&this.getValue();var i,n=this.v;void 0!==e&&(n=this.getValueAtTime(e,0));var r=n._length,s=n[t],o=n.v,a=createSizedArray(r);for(i=0;i<r;i+=1)a[i]="i"===t||"o"===t?[s[i][0]-o[i][0],s[i][1]-o[i][1]]:[s[i][0],s[i][1]];return a},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var i=this.v;void 0!==e&&(i=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(i));for(var n,r=this._segmentsLength,s=r.lengths,o=r.totalLength*t,a=0,l=s.length,h=0;a<l;){if(h+s[a].addedLength>o){var c=a,d=i.c&&a===l-1?0:a+1,p=(o-h)/s[a].addedLength;n=bez.getPointInSegment(i.v[c],i.v[d],i.o[c],i.i[d],p,s[a]);break}h+=s[a].addedLength,a+=1}return n||(n=i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]]),n},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var n=this.pointOnPath(t,e),r=this.pointOnPath(t+.001,e),s=r[0]-n[0],o=r[1]-n[1],a=Math.sqrt(Math.pow(s,2)+Math.pow(o,2));return 0===a?[0,0]:"tangent"===i?[s/a,o/a]:[-o/a,s/a]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([h],a),extendPrototype([h],l),l.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;
vendor: 21,360 bytes, lines 92-93
92ShapePropertyFactory.getShapeProp=function(t,e,i,n,r){var s=c(t,e,i,n,r);return s.propertyIndex=e.ix,s.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,s):4===i&&expressionHelpers.searchExpressions(t,e.ks,s),s.k&&t.addDynamicProperty(s),s}}(),TextProperty.prototype.getExpressionValue=function(t,e){var i=this.calculateExpression(e);if(t.t!==i){var n={};return this.copyData(n,t),n.t=i.toString(),n.__complete=!1,n}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null};var ShapePathInterface=function(t,e,i){var n=e.sh;function r(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?r.path:null}var s=propertyGroupFactory(r,i);return n.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(r,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),r},propertyGroupFactory=function(t,e){return function(i){return(i=void 0===i?1:i)<=0?t:e(i-1)}},PropertyInterface=function(t,e){var i={_name:t};return function(t){return(t=void 0===t?1:t)<=0?i:e(t-1)}},ShapeExpressionInterface=function(){function t(t,o,p){var u,f=[],m=t?t.length:0;for(u=0;u<m;u+=1)"gr"===t[u].ty?f.push(e(t[u],o[u],p)):"fl"===t[u].ty?f.push(i(t[u],o[u],p)):"st"===t[u].ty?f.push(r(t[u],o[u],p)):"tm"===t[u].ty?f.push(s(t[u],o[u],p)):"tr"===t[u].ty||("el"===t[u].ty?f.push(a(t[u],o[u],p)):"sr"===t[u].ty?f.push(l(t[u],o[u],p)):"sh"===t[u].ty?f.push(ShapePathInterface(t[u],o[u],p)):"rc"===t[u].ty?f.push(h(t[u],o[u],p)):"rd"===t[u].ty?f.push(c(t[u],o[u],p)):"rp"===t[u].ty?f.push(d(t[u],o[u],p)):"gf"===t[u].ty?f.push(n(t[u],o[u],p)):f.push((t[u],o[u],function(){return null})));return f}function e(e,i,n){var r=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return r.content;default:return r.transform}};r.propertyGroup=propertyGroupFactory(r,n);var s=function(e,i,n){var r,s=function(t){for(var e=0,i=r.length;e<i;){if(r[e]._name===t||r[e].mn===t||r[e].propertyIndex===t||r[e].ix===t||r[e].ind===t)return r[e];e+=1}return"number"==typeof t?r[t-1]:null};s.propertyGroup=propertyGroupFactory(s,n),r=t(e.it,i.it,s.propertyGroup),s.numProperties=r.length;var a=o(e.it[e.it.length-1],i.it[i.it.length-1],s.propertyGroup);return s.transform=a,s.propertyIndex=e.cix,s._name=e.nm,s}(e,i,r.propertyGroup),a=o(e.it[e.it.length-1],i.it[i.it.length-1],r.propertyGroup);return r.content=s,r.transform=a,Object.defineProperty(r,"_name",{get:function(){return e.nm}}),r.numProperties=e.np,r.propertyIndex=e.ix,r.nm=e.nm,r.mn=e.mn,r}function i(t,e,i){function n(t){return"Color"===t||"color"===t?n.color:"Opacity"===t||"opacity"===t?n.opacity:null}return Object.defineProperties(n,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),n}function n(t,e,i){function n(t){return"Start Point"===t||"start point"===t?n.startPoint:"End Point"===t||"end point"===t?n.endPoint:"Opacity"===t||"opacity"===t?n.opacity:null}return Object.defineProperties(n,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",i)),e.e.setGroupProperty(PropertyInterface("End Point",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),n}function r(t,e,i){var n,r=propertyGroupFactory(h,i),s=propertyGroupFactory(l,r);function o(i){Object.defineProperty(l,t.d[i].nm,{get:ExpressionPropertyInterface(e.d.dataProps[i].p)})}var a=t.d?t.d.length:0,l={};for(n=0;n<a;n+=1)o(n),e.d.dataProps[n].p.setGroupProperty(s);function h(t){return"Color"===t||"color"===t?h.color:"Opacity"===t||"opacity"===t?h.opacity:"Stroke Width"===t||"stroke width"===t?h.strokeWidth:null}return Object.defineProperties(h,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return l}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),e.w.setGroupProperty(PropertyInterface("Stroke Width",r)),h}function s(t,e,i){function n(e){return e===t.e.ix||"End"===e||"end"===e?n.end:e===t.s.ix?n.start:e===t.o.ix?n.offset:null}var r=propertyGroupFactory(n,i);return n.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",r)),e.e.setGroupProperty(PropertyInterface("End",r)),e.o.setGroupProperty(PropertyInterface("Offset",r)),n.propertyIndex=t.ix,n.propertyGroup=i,Object.defineProperties(n,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),n.mn=t.mn,n}function o(t,e,i){function n(e){return t.a.ix===e||"Anchor Point"===e?n.anchorPoint:t.o.ix===e||"Opacity"===e?n.opacity:t.p.ix===e||"Position"===e?n.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?n.rotation:t.s.ix===e||"Scale"===e?n.scale:t.sk&&t.sk.ix===e||"Skew"===e?n.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?n.skewAxis:null}var r=propertyGroupFactory(n,i);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",r)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",r)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",r)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",r)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",r)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",r)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",r))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",r)),Object.defineProperties(n,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),n.ty="tr",n.mn=t.mn,n.propertyGroup=i,n}function a(t,e,i){function n(e){return t.p.ix===e?n.position:t.s.ix===e?n.size:null}var r=propertyGroupFactory(n,i);n.propertyIndex=t.ix;var s="tm"===e.sh.ty?e.sh.prop:e.sh;return s.s.setGroupProperty(PropertyInterface("Size",r)),s.p.setGroupProperty(PropertyInterface("Position",r)),Object.defineProperties(n,{size:{get:ExpressionPropertyInterface(s.s)},position:{get:ExpressionPropertyInterface(s.p)},_name:{value:t.nm}}),n.mn=t.mn,n}function l(t,e,i){function n(e){return t.p.ix===e?n.position:t.r.ix===e?n.rotation:t.pt.ix===e?n.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?n.outerRadius:t.os.ix===e?n.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?n.innerRoundness:null:n.innerRadius}var r=propertyGroupFactory(n,i),s="tm"===e.sh.ty?e.sh.prop:e.sh;return n.propertyIndex=t.ix,s.or.setGroupProperty(PropertyInterface("Outer Radius",r)),s.os.setGroupProperty(PropertyInterface("Outer Roundness",r)),s.pt.setGroupProperty(PropertyInterface("Points",r)),s.p.setGroupProperty(PropertyInterface("Position",r)),s.r.setGroupProperty(PropertyInterface("Rotation",r)),t.ir&&(s.ir.setGroupProperty(PropertyInterface("Inner Radius",r)),s.is.setGroupProperty(PropertyInterface("Inner Roundness",r))),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(s.p)},rotation:{get:ExpressionPropertyInterface(s.r)},points:{get:ExpressionPropertyInterface(s.pt)},outerRadius:{get:ExpressionPropertyInterface(s.or)},outerRoundness:{get:ExpressionPropertyInterface(s.os)},innerRadius:{get:ExpressionPropertyInterface(s.ir)},innerRoundness:{get:ExpressionPropertyInterface(s.is)},_name:{value:t.nm}}),n.mn=t.mn,n}function h(t,e,i){ 93function n(e){return t.p.ix===e?n.position:t.r.ix===e?n.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?n.size:null}var r=propertyGroupFactory(n,i),s="tm"===e.sh.ty?e.sh.prop:e.sh;return n.propertyIndex=t.ix,s.p.setGroupProperty(PropertyInterface("Position",r)),s.s.setGroupProperty(PropertyInterface("Size",r)),s.r.setGroupProperty(PropertyInterface("Rotation",r)),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(s.p)},roundness:{get:ExpressionPropertyInterface(s.r)},size:{get:ExpressionPropertyInterface(s.s)},_name:{value:t.nm}}),n.mn=t.mn,n}function c(t,e,i){function n(e){return t.r.ix===e||"Round Corners 1"===e?n.radius:null}var r=propertyGroupFactory(n,i),s=e;return n.propertyIndex=t.ix,s.rd.setGroupProperty(PropertyInterface("Radius",r)),Object.defineProperties(n,{radius:{get:ExpressionPropertyInterface(s.rd)},_name:{value:t.nm}}),n.mn=t.mn,n}function d(t,e,i){function n(e){return t.c.ix===e||"Copies"===e?n.copies:t.o.ix===e||"Offset"===e?n.offset:null}var r=propertyGroupFactory(n,i),s=e;return n.propertyIndex=t.ix,s.c.setGroupProperty(PropertyInterface("Copies",r)),s.o.setGroupProperty(PropertyInterface("Offset",r)),Object.defineProperties(n,{copies:{get:ExpressionPropertyInterface(s.c)},offset:{get:ExpressionPropertyInterface(s.o)},_name:{value:t.nm}}),n.mn=t.mn,n}return function(e,i,n){var r;function s(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?n:r[t-1];for(var e=0,i=r.length;e<i;){if(r[e]._name===t)return r[e];e+=1}return null}return s.propertyGroup=propertyGroupFactory(s,(function(){return n})),r=t(e,i,s.propertyGroup),s.numProperties=r.length,s._name="Contents",s}}(),TextExpressionInterface=function(t){var e,i;function n(t){return"ADBE Text Document"===t?n.sourceText:null}return Object.defineProperty(n,"sourceText",{get:function(){t.textProperty.getValue();var n=t.textProperty.currentData.t;return n!==e&&(t.textProperty.currentData.t=e,(i=new String(n)).value=n||new String(n)),i}}),n},LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.applyPoint(i,t)}function i(t,e){var i=this.getMatrix(e);return this.applyPoint(i,t)}function n(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.invertPoint(i,t)}function r(t,e){var i=this.getMatrix(e);return this.invertPoint(i,t)}function s(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,n=this._elem.hierarchy.length;for(i=0;i<n;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function o(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,n=this._elem.hierarchy.length;for(i=0;i<n;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function a(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var i,n=this._elem.hierarchy.length;for(i=0;i<n;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function l(){return[1,1,1,1]}return function(h){var c;function d(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return d.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return d.effect;case"ADBE Text Properties":return d.textInterface;default:return null}}d.getMatrix=t,d.invertPoint=o,d.applyPoint=s,d.toWorld=i,d.toWorldVec=e,d.fromWorld=r,d.fromWorldVec=n,d.toComp=i,d.fromComp=a,d.sampleImage=l,d.sourceRectAtTime=h.sourceRectAtTime.bind(h),d._elem=h;var p=getDescriptor(c=TransformExpressionInterface(h.finalTransform.mProp),"anchorPoint");return Object.defineProperties(d,{hasParent:{get:function(){return h.hierarchy.length}},parent:{get:function(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:p,anchor_point:p,transform:{get:function(){return c}},active:{get:function(){return h.isInRange}}}),d.startTime=h.data.st,d.index=h.data.ind,d.source=h.data.refId,d.height=0===h.data.ty?h.data.h:100,d.width=0===h.data.ty?h.data.w:100,d.inPoint=h.data.ip/h.comp.globalData.frameRate,d.outPoint=h.data.op/h.comp.globalData.frameRate,d._name=h.data.nm,d.registerMaskInterface=function(t){d.mask=new MaskManagerInterface(t,h)},d.registerEffectsInterface=function(t){d.effect=t},d}}(),FootageInterface=(dataInterfaceFactory=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",i=t.getFootageData();function n(t){if(i[t])return e=t,"object"==typeof(i=i[t])?n:i;var r=t.indexOf(e);if(-1!==r){var s=parseInt(t.substr(r+e.length),10);return"object"==typeof(i=i[s])?n:i}return""}return function(){return e="",i=t.getFootageData(),n}}(t),e},function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,CompExpressionInterface=function(t){function e(e){for(var i=0,n=t.layers.length;i<n;){if(t.layers[i].nm===e||t.layers[i].ind===e)return t.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e},TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var i,n,r,s;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?s=ExpressionPropertyInterface(t.p):(i=ExpressionPropertyInterface(t.px),n=ExpressionPropertyInterface(t.py),t.pz&&(r=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?s():[i(),n(),r?r():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),EffectsExpressionInterface=function(){var t={createEffectsInterface:function(t,i){if(t.effectsManager){var n,r=[],s=t.data.ef,o=t.effectsManager.effectElements.length;for(n=0;n<o;n+=1)r.push(e(s[n],t.effectsManager.effectElements[n],i,t));var a=t.data.ef||[],l=function(t){for(n=0,o=a.length;n<o;){if(t===a[n].nm||t===a[n].mn||t===a[n].ix)return r[n];n+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return a.length}}),l}return null}};function e(t,n,r,s){function o(e){for(var i=t.ef,n=0,r=i.length;n<r;){if(e===i[n].nm||e===i[n].mn||e===i[n].ix)return 5===i[n].ty?h[n]:h[n]();n+=1}throw new Error}var a,l=propertyGroupFactory(o,r),h=[],c=t.ef.length;for(a=0;a<c;a+=1)5===t.ef[a].ty?h.push(e(t.ef[a],n.effectElements[a],n.effectElements[a].propertyGroup,s)):h.push(i(n.effectElements[a],t.ef[a].ty,s,l));return"ADBE Color Control"===t.mn&&Object.defineProperty(o,"color",{get:function(){return h[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return t.np}},_name:{value:t.nm},propertyGroup:{value:l}}),o.enabled=0!==t.en,o.active=o.enabled,o}function i(t,e,i,n){var r=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",n)),function(){return 10===e?i.comp.compInterface(t.p.v):r()}}return t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var i,n=createSizedArray(e.viewData.length),r=e.viewData.length;for(i=0;i<r;i+=1)n[i]=new t(e.viewData[i],e.masksProperties[i]);return function(t){for(i=0;i<r;){if(e.masksProperties[i].nm===t)return n[i];i+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function i(t,e,i){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(n){if(!t.numKeys)return 0;var r;r="s"in e.keyframes[n-1]?e.keyframes[n-1].s:"e"in e.keyframes[n-2]?e.keyframes[n-2].e:e.keyframes[n-2].s;var s="unidimensional"===i?new Number(r):Object.assign({},r);return s.time=e.keyframes[n-1].t/e.elem.comp.globalData.frameRate,s.value="unidimensional"===i?r[0]:r,s},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function n(){return t}return function(r){return r?"unidimensional"===r.propType?function(e){e&&"pv"in e||(e=t);var n=1/e.mult,r=e.pv*n,s=new Number(r);return s.value=r,i(s,e,"unidimensional"),function(){return e.k&&e.getValue(),r=e.v*n,s.value!==r&&((s=new Number(r)).value=r,i(s,e,"unidimensional")),s}}(r):function(t){t&&"pv"in t||(t=e);var n=1/t.mult,r=t.data&&t.data.l||t.pv.length,s=createTypedArray("float32",r),o=createTypedArray("float32",r);return s.value=o,i(s,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<r;e+=1)o[e]=t.v[e]*n,s[e]=o[e];return s}}(r):n}}(),TextExpressionSelectorPropFactory=function(){function t(t,e){return this.textIndex=t+1,this.textTotal=e,this.v=this.getValue()*this.mult,this.v}return function(e,i){this.pv=1,this.comp=e.comp,this.elem=e,this.mult=.01,this.propType="textSelector",this.textTotal=i.totalChars,this.selectorValue=100,this.lastValue=[1,1,1],this.k=!0,this.x=!0,this.getValue=ExpressionManager.initiateExpression.bind(this)(e,i,this),this.getMult=t,this.getVelocityAtTime=expressionHelpers.getVelocityAtTime,this.kf?this.getValueAtTime=expressionHelpers.getValueAtTime.bind(this):this.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(this),this.setGroupProperty=expressionHelpers.setGroupProperty}}(),propertyGetTextProp=TextSelectorProp.getTextSelectorProp;function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function LayerIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function MaskIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var i,n=t.ef||[];this.effectElements=[];var r,s=n.length;for(i=0;i<s;i+=1)r=new GroupEffect(n[i],e),this.effectElements.push(r)}function GroupEffect(t,e){this.init(t,e)}
93TextSelectorProp.getTextSelectorProp=function(t,e,i){return 1===e.t?new TextExpressionSelectorPropFactory(t,e,i):propertyGetTextProp(t,e,i)},extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var i;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var n,r=this.data.ef.length,s=this.data.ef;for(i=0;i<r;i+=1){switch(n=null,s[i].ty){case 0:n=new SliderEffect(s[i],e,this);break;case 1:n=new AngleEffect(s[i],e,this);break;case 2:n=new ColorEffect(s[i],e,this);break;case 3:n=new PointEffect(s[i],e,this);break;case 4:case 7:n=new CheckboxEffect(s[i],e,this);break;case 10:n=new LayerIndexEffect(s[i],e,this);break;case 11:n=new MaskIndexEffect(s[i],e,this);break;case 5:n=new EffectsManager(s[i],e,this);break;default:n=new NoValueEffect(s[i],e,this)}n&&this.effectElements.push(n)}};var lottie={};function setLocationHref(t){locationHref=t}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){subframeEnabled=t}function setIDPrefix(t){idPrefix=t}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":defaultCurveSegments=200;break;default:case"medium":defaultCurveSegments=50;break;case"low":defaultCurveSegments=10}else!isNaN(t)&&t>1&&(defaultCurveSegments=t);roundValues(!(defaultCurveSegments>=50))}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&(expressionsPlugin=e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i<e.length;i+=1){var n=e[i].split("=");if(decodeURIComponent(n[0])==t)return decodeURIComponent(n[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocationHref,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=function(t){_useWebWorker=t},lottie.setIDPrefix=setIDPrefix,lottie.__getFactory=getFactory,lottie.version="5.8.1";var standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="",queryString;if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src.replace(/^[^\?]+\??/,""),renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);return lottie},module.exports?module.exports=factory(root):(root.lottie=factory(root),root.bodymovin=root.lottie))})(lottie$1);var lottie=lottie$1.exports,_templateObject$1,styles=r$3(_templateObject$1||(_templateObject$1=_taggedTemplateLiteral(["\n * {\n box-sizing: border-box;\n }\n\n :host {\n --lottie-player-toolbar-height: 35px;\n --lottie-player-toolbar-background-color: transparent;\n --lottie-player-toolbar-icon-color: #999;\n --lottie-player-toolbar-icon-hover-color: #222;\n --lottie-player-toolbar-icon-active-color: #555;\n --lottie-player-seeker-track-color: #ccc;\n --lottie-player-seeker-thumb-color: rgba(0, 107, 120, 0.8);\n --lottie-player-seeker-display: block;\n\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .main {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n }\n\n .animation {\n width: 100%;\n height: 100%;\n display: flex;\n }\n .animation.controls {\n height: calc(100% - 35px);\n }\n\n .toolbar {\n display: flex;
93\n align-items: center;\n justify-items: center;\n background-color: var(--lottie-player-toolbar-background-color);\n margin: 0 5px;\n height: 35px;\n }\n\n .toolbar button {\n cursor: pointer;\n fill: var(--lottie-player-toolbar-icon-color);\n display: flex;\n background: none;\n border: 0;\n padding: 0;\n outline: none;\n height: 100%;\n }\n\n .toolbar button:hover {\n fill: var(--lottie-player-toolbar-icon-hover-color);\n }\n\n .toolbar button.active {\n fill: var(--lottie-player-toolbar-icon-active-color);\n }\n\n .toolbar button.active:hover {\n fill: var(--lottie-player-toolbar-icon-hover-color);\n }\n\n .toolbar button:focus {\n outline: 1px dotted var(--lottie-player-toolbar-icon-active-color);\n }\n\n .toolbar button svg {\n }\n\n .toolbar button.disabled svg {\n display: none;\n }\n\n .seeker {\n -webkit-appearance: none;\n width: 95%;\n outline: none;\n background-color: var(--lottie-player-toolbar-background-color);\n display: var(--lottie-player-seeker-display);\n }\n\n .seeker::-webkit-slider-runnable-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-webkit-slider-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n -webkit-appearance: none;\n margin-top: -5px;\n }\n .seeker:focus::-webkit-slider-runnable-track {\n background: #999;\n }\n .seeker::-moz-range-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-moz-range-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n }\n .seeker::-ms-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: transparent;\n border-color: transparent;\n color: transparent;\n }\n .seeker::-ms-fill-lower {\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-ms-thumb {\n border: 0;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n }\n .seeker:focus::-ms-fill-lower {\n background: var(--lottie-player-seeker-track-color);\n }\n .seeker:focus::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n }\n\n .error {\n display: flex;\n justify-content: center;\n height: 100%;\n align-items: center;\n }\n"]))),_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,PlayerState,PlayMode,PlayerEvents;function parseSrc(t){if("object"==typeof t)return t;try{return JSON.parse(t)}catch(e){return new URL(t,window.location.href).toString()}}function isLottie(t){return["v","ip","op","layers","fr","w","h"].every((e=>Object.prototype.hasOwnProperty.call(t,e)))}function fromURL(t){return _fromURL.apply(this,arguments)}function _fromURL(){return(_fromURL=_asyncToGenerator((function*(t){if("string"!=typeof t)throw new Error("The url value must be a string");var e;try{var i=new URL(t),n=yield fetch(i.toString());e=yield n.json()}catch(t){throw new Error("An error occurred while trying to load the Lottie file from URL")}return e}))).apply(this,arguments)}exports.PlayerState=void 0,PlayerState=exports.PlayerState||(exports.PlayerState={}),PlayerState.Destroyed="destroyed",PlayerState.Error="error",PlayerState.Frozen="frozen",PlayerState.Loading="loading",PlayerState.Paused="paused",PlayerState.Playing="playing",PlayerState.Stopped="stopped",exports.PlayMode=void 0,PlayMode=exports.PlayMode||(exports.PlayMode={}),PlayMode.Bounce="bounce",PlayMode.Normal="normal",exports.PlayerEvents=void 0,PlayerEvents=exports.PlayerEvents||(exports.PlayerEvents={}),PlayerEvents.Complete="complete",PlayerEvents.Destroyed="destroyed",PlayerEvents.Error="error",PlayerEvents.Frame="frame",PlayerEvents.Freeze="freeze",PlayerEvents.Load="load",PlayerEvents.Loop="loop",PlayerEvents.Pause="pause",PlayerEvents.Play="play",PlayerEvents.Ready="ready",PlayerEvents.Rendered="rendered",PlayerEvents.Stop="stop",exports.LottiePlayer=class extends s{constructor(){super(...arguments),this.autoplay=!1,this.background="transparent",this.controls=!1,this.currentState=exports.PlayerState.Loading,this.description="Lottie animation",this.direction=1,this.hover=!1,this.intermission=1,this.loop=!1,this.mode=exports.PlayMode.Normal,this.preserveAspectRatio="xMidYMid meet",this.renderer="svg",this.speed=1,this._io=void 0,this._counter=1}load(t){var e=this;return _asyncToGenerator((function*(){if(e.shadowRoot){var i={container:e.container,loop:!1,autoplay:!1,renderer:e.renderer,rendererSettings:{preserveAspectRatio:e.preserveAspectRatio,clearCanvas:!1,progressiveLoad:!0,hideOnTransparent:!0}};try{var n=parseSrc(t),r={},s="string"==typeof n?"path":"animationData";e._lottie&&e._lottie.destroy(),e.webworkers&&lottie$1.exports.useWebWorker(!0),e._lottie=lottie$1.exports.loadAnimation(Object.assign(Object.assign({},i),{[s]:n})),e._attachEventListeners(),"path"===s?(r=yield fromURL(n),s="animationData"):r=n,isLottie(r)||(e.currentState=exports.PlayerState.Error,e.dispatchEvent(new CustomEvent(exports.PlayerEvents.Error)))}catch(t){e.currentState=exports.PlayerState.Error,e.dispatchEvent(new CustomEvent(exports.PlayerEvents.Error))}}}))()}getLottie(){return this._lottie}play(){this._lottie&&(this._lottie.play(),this.currentState=exports.PlayerState.Playing,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Play)))}pause(){this._lottie&&(this._lottie.pause(),this.currentState=exports.PlayerState.Paused,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Pause)))}stop(){this._lottie&&(this._counter=1,this._lottie.stop(),this.currentState=exports.PlayerState.Stopped,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Stop)))}destroy(){this._lottie&&(this._lottie.destroy(),this._lottie=null,this.currentState=exports.PlayerState.Destroyed,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Destroyed)),this.remove())}seek(t){if(this._lottie){var e=/^(\d+)(%?)$/.exec(t.toString());if(e){var i="%"===e[2]?this._lottie.totalFrames*Number(e[1])/100:Number(e[1]);this.seeker=i,this.currentState===exports.PlayerState.Playing?this._lottie.goToAndPlay(i,!0):(this._lottie.goToAndStop(i,!0),this._lottie.pause())}}}
vendor: 9,135 bytes, lines 93-94
93snapshot(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.shadowRoot){var e=this.shadowRoot.querySelector(".animation svg"),i=(new XMLSerializer).serializeToString(e);if(t){var n=document.createElement("a");n.href="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(i)),n.download="download_".concat(this.seeker,".svg"),document.body.appendChild(n),n.click(),document.body.removeChild(n)}return i}}setSpeed(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this._lottie&&this._lottie.setSpeed(t)}setDirection(t){this._lottie&&this._lottie.setDirection(t)}setLooping(t){this._lottie&&(this.loop=t,this._lottie.loop=t)}togglePlay(){return this.currentState===exports.PlayerState.Playing?this.pause():this.play()}toggleLooping(){this.setLooping(!this.loop)}resize(){this._lottie&&this._lottie.resize()}static get styles(){return styles}disconnectedCallback(){this.isConnected||(this._io&&(this._io.disconnect(),this._io=void 0),document.removeEventListener("visibilitychange",(()=>this._onVisibilityChange())),this.destroy())}render(){var t=this.controls?"main controls":"main",e=this.controls?"animation controls":"animation";return $(_templateObject||(_templateObject=_taggedTemplateLiteral([' <div\n id="animation-container"\n class=','\n lang="en"\n aria-label=','\n role="img"\n >\n <div\n id="animation"\n class=','\n style="background:',';"\n >\n ',"\n </div>\n ","\n </div>"])),t,this.description,e,this.background,this.currentState===exports.PlayerState.Error?$(_templateObject2||(_templateObject2=_taggedTemplateLiteral(['<div class="error">â ï¸</div>']))):void 0,this.controls?this.renderControls():void 0)}firstUpdated(){"IntersectionObserver"in window&&(this._io=new IntersectionObserver((t=>{t[0].isIntersecting?this.currentState===exports.PlayerState.Frozen&&this.play():this.currentState===exports.PlayerState.Playing&&this.freeze()})),this._io.observe(this.container)),void 0!==document.hidden&&document.addEventListener("visibilitychange",(()=>this._onVisibilityChange())),this.src&&this.load(this.src),this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Rendered))}renderControls(){var t=this.currentState===exports.PlayerState.Playing,e=this.currentState===exports.PlayerState.Paused,i=this.currentState===exports.PlayerState.Stopped;return $(_templateObject3||(_templateObject3=_taggedTemplateLiteral(['\n <div\n id="lottie-controls"\n aria-label="lottie-animation-controls"\n class="toolbar"\n >\n <button\n id="lottie-play-button"\n @click=',"\n class=",'\n style="align-items:center;"\n tabindex="0"\n aria-label="play-pause"\n >\n ','\n </button>\n <button\n id="lottie-stop-button"\n @click=',"\n class=",'\n style="align-items:center;"\n tabindex="0"\n aria-label="stop"\n >\n <svg width="24" height="24" aria-hidden="true" focusable="false">\n <path d="M6 6h12v12H6V6z" />\n </svg>\n </button>\n <input\n id="lottie-seeker-input"\n class="seeker"\n type="range"\n min="0"\n step="1"\n max="100"\n .value=',"\n @input=","\n @mousedown=","\n @mouseup=",'\n aria-valuemin="1"\n aria-valuemax="100"\n role="slider"\n aria-valuenow=','\n tabindex="0"\n aria-label="lottie-seek-input"\n />\n <button\n id="lottie-loop-toggle"\n @click=',"\n class=",'\n style="align-items:center;"\n tabindex="0"\n aria-label="loop-toggle"\n >\n <svg width="24" height="24" aria-hidden="true" focusable="false">\n <path\n d="M17.016 17.016v-4.031h1.969v6h-12v3l-3.984-3.984 3.984-3.984v3h10.031zM6.984 6.984v4.031H5.015v-6h12v-3l3.984 3.984-3.984 3.984v-3H6.984z"\n />\n </svg>\n </button>\n </div>\n '])),this.togglePlay,t||e?"active":"",$(t?_templateObject4||(_templateObject4=_taggedTemplateLiteral(['<svg\n width="24"\n height="24"\n aria-hidden="true"\n focusable="false"\n >\n <path\n d="M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z"\n />\n </svg>'])):_templateObject5||(_templateObject5=_taggedTemplateLiteral(['<svg\n width="24"\n height="24"\n aria-hidden="true"\n focusable="false"\n >\n <path d="M8.016 5.016L18.985 12 8.016 18.984V5.015z" />\n </svg>']))),this.stop,i?"active":"",this.seeker,this._handleSeekChange,(()=>{this._prevState=this.currentState,this.freeze()}),(()=>{this._prevState===exports.PlayerState.Playing&&this.play()}),this.seeker,this.toggleLooping,this.loop?"active":"")}_onVisibilityChange(){!0===document.hidden&&this.currentState===exports.PlayerState.Playing?this.freeze():this.currentState===exports.PlayerState.Frozen&&this.play()}_handleSeekChange(t){if(this._lottie&&!isNaN(t.target.value)){var e=t.target.value/100*this._lottie.totalFrames;this.seek(e)}}_attachEventListeners(){this._lottie.addEventListener("enterFrame",(()=>{this.seeker=this._lottie.currentFrame/this._lottie.totalFrames*100,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Frame,{detail:{frame:this._lottie.currentFrame,seeker:this.seeker}}))})),this._lottie.addEventListener("complete",(()=>{if(this.currentState===exports.PlayerState.Playing){if(!this.loop||this.count&&this._counter>=this.count){if(this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Complete)),this.mode!==exports.PlayMode.Bounce)return;if(0===this._lottie.currentFrame)return}this.mode===exports.PlayMode.Bounce?(this.count&&(this._counter+=.5),setTimeout((()=>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Loop)),this.currentState===exports.PlayerState.Playing&&(this._lottie.setDirection(-1*this._lottie.playDirection),this._lottie.play())}),this.intermission)):(this.count&&(this._counter+=1),window.setTimeout((()=>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Loop)),this.currentState===exports.PlayerState.Playing&&(-1===this.direction?(this.seek("99%"),this.play()):(this._lottie.stop(),this._lottie.play()))}),this.intermission))}else this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Complete))})),this._lottie.addEventListener("DOMLoaded",(()=>{this.setSpeed(this.speed),this.setDirection(this.direction),this.autoplay&&(-1===this.direction&&this.seek("100%"),this.play()),this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Ready))})),this._lottie.addEventListener("data_ready",(()=>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Load))})),this._lottie.addEventListener("data_failed",(()=>{this.currentState=exports.PlayerState.Error,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Error))})),this.container.addEventListener("mouseenter",(()=>{this.hover&&this.currentState!==exports.PlayerState.Playing&&this.play()})),this.container.addEventListener("mouseleave",(()=>{this.hover&&this.currentState===exports.PlayerState.Playing&&this.stop()}))}freeze(){this._lottie&&(this._lottie.pause(),this.currentState=exports.PlayerState.Frozen,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Freeze)))}},__decorate([e$5({type:Boolean})],exports.LottiePlayer.prototype,"autoplay",void 0),__decorate([e$5({type:String,reflect:!0 94})],exports.LottiePlayer.prototype,"background",void 0),__decorate([e$5({type:Boolean})],exports.LottiePlayer.prototype,"controls",void 0),__decorate([e$5({type:Number})],exports.LottiePlayer.prototype,"count",void 0),__decorate([e$5({type:String})],exports.LottiePlayer.prototype,"currentState",void 0),__decorate([e$5({type:String})],exports.LottiePlayer.prototype,"description",void 0),__decorate([e$5({type:Number})],exports.LottiePlayer.prototype,"direction",void 0),__decorate([e$5({type:Boolean})],exports.LottiePlayer.prototype,"hover",void 0),__decorate([e$5()],exports.LottiePlayer.prototype,"intermission",void 0),__decorate([e$5({type:Boolean,reflect:!0})],exports.LottiePlayer.prototype,"loop",void 0),__decorate([e$5()],exports.LottiePlayer.prototype,"mode",void 0),__decorate([e$5({type:String})],exports.LottiePlayer.prototype,"preserveAspectRatio",void 0),__decorate([e$5({type:String})],exports.LottiePlayer.prototype,"renderer",void 0),__decorate([e$5()],exports.LottiePlayer.prototype,"seeker",void 0),__decorate([e$5({type:Number})],exports.LottiePlayer.prototype,"speed",void 0),__decorate([e$5({type:String})],exports.LottiePlayer.prototype,"src",void 0),__decorate([e$5({type:Boolean})],exports.LottiePlayer.prototype,"webworkers",void 0),__decorate([i(".animation")],exports.LottiePlayer.prototype,"container",void 0),exports.LottiePlayer=__decorate([n$1("lottie-player")],exports.LottiePlayer),exports.parseSrc=parse
94Src,Object.defineProperty(exports,"__esModule",{value:!0})})),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).Swiper=e()}(this,(function(){"use strict";function t(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function e(i,n){void 0===i&&(i={}),void 0===n&&(n={}),Object.keys(n).forEach((r=>{void 0===i[r]?i[r]=n[r]:t(n[r])&&t(i[r])&&Object.keys(n[r]).length>0&&e(i[r],n[r])}))}const i={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function n(){const t="undefined"!=typeof document?document:{};return e(t,i),t}const r={document:i,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:t=>"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0),cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function s(){const t="undefined"!=typeof window?window:{};return e(t,r),t}class o extends Array{constructor(t){"number"==typeof t?super(t):(super(...t||[]),function(t){const e=t.__proto__;Object.defineProperty(t,"__proto__",{get:()=>e,set(t){e.__proto__=t}})}(this))}}function a(t){void 0===t&&(t=[]);const e=[];return t.forEach((t=>{Array.isArray(t)?e.push(...a(t)):e.push(t)})),e}function l(t,e){return Array.prototype.filter.call(t,e)}function $(t,e){const i=s(),r=n();let a=[];if(!e&&t instanceof o)return t;if(!t)return new o(a);if("string"==typeof t){const i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){let t="div";0===i.indexOf("<li")&&(t="ul"),0===i.indexOf("<tr")&&(t="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(t="tr"),0===i.indexOf("<tbody")&&(t="table"),0===i.indexOf("<option")&&(t="select");const e=r.createElement(t);e.innerHTML=i;for(let t=0;t<e.childNodes.length;t+=1)a.push(e.childNodes[t])}else a=function(t,e){if("string"!=typeof t)return[t];const i=[],n=e.querySelectorAll(t);for(let t=0;t<n.length;t+=1)i.push(n[t]);return i}(t.trim(),e||r)}else if(t.nodeType||t===i||t===r)a.push(t);else if(Array.isArray(t)){if(t instanceof o)return t;a=t}return new o(function(t){const e=[];for(let i=0;i<t.length;i+=1)-1===e.indexOf(t[i])&&e.push(t[i]);return e}(a))}$.fn=o.prototype;const h={addClass:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];const n=a(e.map((t=>t.split(" "))));return this.forEach((t=>{t.classList.add(...n)})),this},removeClass:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];const n=a(e.map((t=>t.split(" "))));return this.forEach((t=>{t.classList.remove(...n)})),this},hasClass:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];const n=a(e.map((t=>t.split(" "))));return l(this,(t=>n.filter((e=>t.classList.contains(e))).length>0)).length>0},toggleClass:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];const n=a(e.map((t=>t.split(" "))));this.forEach((t=>{n.forEach((e=>{t.classList.toggle(e)}))}))},attr:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(t,e);else for(const e in t)this[i][e]=t[e],this[i].setAttribute(e,t[e]);return this},removeAttr:function(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},transform:function(t){for(let e=0;e<this.length;e+=1)this[e].style.transform=t;return this},transition:function(t){for(let e=0;e<this.length;e+=1)this[e].style.transitionDuration="string"!=typeof t?`${t}ms`:t;return this},on:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];let[n,r,s,o]=e;function a(t){const e=t.target;if(!e)return;const i=t.target.dom7EventData||[];if(i.indexOf(t)<0&&i.unshift(t),$(e).is(r))s.apply(e,i);else{const t=$(e).parents();for(let e=0;e<t.length;e+=1)$(t[e]).is(r)&&s.apply(t[e],i)}}function l(t){const e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),s.apply(this,e)}"function"==typeof e[1]&&([n,s,o]=e,r=void 0),o||(o=!1);const h=n.split(" ");let c;for(let t=0;t<this.length;t+=1){const e=this[t];if(r)for(c=0;c<h.length;c+=1){const t=h[c];e.dom7LiveListeners||(e.dom7LiveListeners={}),e.dom7LiveListeners[t]||(e.dom7LiveListeners[t]=[]),e.dom7LiveListeners[t].push({listener:s,proxyListener:a}),e.addEventListener(t,a,o)}else for(c=0;c<h.length;c+=1){const t=h[c];e.dom7Listeners||(e.dom7Listeners={}),e.dom7Listeners[t]||(e.dom7Listeners[t]=[]),e.dom7Listeners[t].push({listener:s,proxyListener:l}),e.addEventListener(t,l,o)}}return this},off:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];let[n,r,s,o]=e;"function"==typeof e[1]&&([n,s,o]=e,r=void 0),o||(o=!1);const a=n.split(" ");for(let t=0;t<a.length;t+=1){const e=a[t];for(let t=0;t<this.length;t+=1){const i=this[t];let n;if(!r&&i.dom7Listeners?n=i.dom7Listeners[e]:r&&i.dom7LiveListeners&&(n=i.dom7LiveListeners[e]),n&&n.length)for(let t=n.length-1;t>=0;t-=1){const r=n[t];s&&r.listener===s||s&&r.listener&&r.listener.dom7proxy&&r.listener.dom7proxy===s?(i.removeEventListener(e,r.proxyListener,o),n.splice(t,1)
94):s||(i.removeEventListener(e,r.proxyListener,o),n.splice(t,1))}}}return this},trigger:function(){const t=s();for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];const r=i[0].split(" "),o=i[1];for(let e=0;e<r.length;e+=1){const n=r[e];for(let e=0;e<this.length;e+=1){const r=this[e];if(t.CustomEvent){const e=new t.CustomEvent(n,{detail:o,bubbles:!0,cancelable:!0});r.dom7EventData=i.filter(((t,e)=>e>0)),r.dispatchEvent(e),r.dom7EventData=[],delete r.dom7EventData}}}return this},transitionEnd:function(t){const e=this;return t&&e.on("transitionend",(function i(n){n.target===this&&(t.call(this,n),e.off("transitionend",i))})),this},outerWidth:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const t=s();return this[0]?t.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const t=s(),e=n(),i=this[0],r=i.getBoundingClientRect(),o=e.body,a=i.clientTop||o.clientTop||0,l=i.clientLeft||o.clientLeft||0,h=i===t?t.scrollY:i.scrollTop,c=i===t?t.scrollX:i.scrollLeft;return{top:r.top+h-a,left:r.left+c-l}}return null},css:function(t,e){const i=s();let n;if(1===arguments.length){if("string"!=typeof t){for(n=0;n<this.length;n+=1)for(const e in t)this[n].style[e]=t[e];return this}if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this},each:function(t){return t?(this.forEach(((e,i)=>{t.apply(e,[e,i])})),this):this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:null;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(t){const e=s(),i=n(),r=this[0];let a,l;if(!r||void 0===t)return!1;if("string"==typeof t){if(r.matches)return r.matches(t);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(r.msMatchesSelector)return r.msMatchesSelector(t);for(a=$(t),l=0;l<a.length;l+=1)if(a[l]===r)return!0;return!1}if(t===i)return r===i;if(t===e)return r===e;if(t.nodeType||t instanceof o){for(a=t.nodeType?[t]:t,l=0;l<a.length;l+=1)if(a[l]===r)return!0;return!1}return!1},index:function(){let t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;const e=this.length;if(t>e-1)return $([]);if(t<0){const i=e+t;return $(i<0?[]:[this[i]])}return $([this[t]])},append:function(){let t;const e=n();for(let i=0;i<arguments.length;i+=1){t=i<0||arguments.length<=i?void 0:arguments[i];for(let i=0;i<this.length;i+=1)if("string"==typeof t){const n=e.createElement("div");for(n.innerHTML=t;n.firstChild;)this[i].appendChild(n.firstChild)}else if(t instanceof o)for(let e=0;e<t.length;e+=1)this[i].appendChild(t[e]);else this[i].appendChild(t)}return this},prepend:function(t){const e=n();let i,r;for(i=0;i<this.length;i+=1)if("string"==typeof t){const n=e.createElement("div");for(n.innerHTML=t,r=n.childNodes.length-1;r>=0;r-=1)this[i].insertBefore(n.childNodes[r],this[i].childNodes[0])}else if(t instanceof o)for(r=0;r<t.length;r+=1)this[i].insertBefore(t[r],this[i].childNodes[0]);else this[i].insertBefore(t,this[i].childNodes[0]);return this},next:function(t){return this.length>0?t?this[0].nextElementSibling&&$(this[0].nextElementSibling).is(t)?$([this[0].nextElementSibling]):$([]):this[0].nextElementSibling?$([this[0].nextElementSibling]):$([]):$([])},nextAll:function(t){const e=[];let i=this[0];if(!i)return $([]);for(;i.nextElementSibling;){const n=i.nextElementSibling;t?$(n).is(t)&&e.push(n):e.push(n),i=n}return $(e)},prev:function(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&$(e.previousElementSibling).is(t)?$([e.previousElementSibling]):$([]):e.previousElementSibling?$([e.previousElementSibling]):$([])}return $([])},prevAll:function(t){const e=[];let i=this[0];if(!i)return $([]);for(;i.previousElementSibling;){const n=i.previousElementSibling;t?$(n).is(t)&&e.push(n):e.push(n),i=n}return $(e)},parent:function(t){const e=[];for(let i=0;i<this.length;i+=1)null!==this[i].parentNode&&(t?$(this[i].parentNode).is(t)&&e.push(this[i].parentNode):e.push(this[i].parentNode));return $(e)},parents:function(t){const e=[];for(let i=0;i<this.length;i+=1){let n=this[i].parentNode;for(;n;)t?$(n).is(t)&&e.push(n):e.push(n),n=n.parentNode}return $(e)},closest:function(t){let e=this;return void 0===t?$([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){const e=[];for(let i=0;i<this.length;i+=1){const n=this[i].querySelectorAll(t);for(let t=0;t<n.length;t+=1)e.push(n[t])}return $(e)},children:function(t){const e=[];for(let i=0;i<this.length;i+=1){const n=this[i].children;for(let i=0;i<n.length;i+=1)t&&!$(n[i]).is(t)||e.push(n[i])}return $(e)},filter:function(t){return $(l(this,t))},remove:function(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}};function c(t,e){return void 0===e&&(e=0),setTimeout(t,e)}function d(){return Date.now()}function p(t,e){void 0===e&&(e="x");const i=s();let n,r,o;const a=function(t){const e=s();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}(t);return i.WebKitCSSMatrix?(r=a.transform||a.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map((t=>t.replace(",","."))).join(", ")),o=new i.WebKitCSSMatrix("none"===r?"":r)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),"x"===e&&(r=i.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===e&&(r=i.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0}function u(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function f(t){return"undefined"!=typeof window&&void 0!==window.HTMLElement?t instanceof HTMLElement:t&&(1===t.nodeType||11===t.nodeType)}function m(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const n=i<0||arguments.length<=i?void 0:arguments[i];if(null!=n&&!f(n)){const i=Object.keys(Object(n)).filter((t=>e.indexOf(t)<0));for(let e=0,r=i.length;e<r;e+=1){const r=i[e],s=Object.getOwnPropertyDescriptor(n,r);void 0!==s&&s.enumerable&&(u(t[r])&&u(n[r])?n[r].__swiper__?t[r]=n[r]:m(t[r],n[r]):!u(t[r])&&u(n[r])?(t[r]={},n[r].__swiper__?t[r]=n[r]:m(t[r],n[r])):t[r]=n[r])}}}return t}function g(t,e,i){t.style.setProperty(e,i)}function v(t){let{swiper:e,targetPosition:i,side:n}=t;const r=s(),o=-e.translate;let a,l=null;const h=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const c=i>o?"next":"prev",d=(t,e)=>"next"===c&&t>=e||"prev"===c&&t<=e,p=()=>
94{a=(new Date).getTime(),null===l&&(l=a);const t=Math.max(Math.min((a-l)/h,1),0),s=.5-Math.cos(t*Math.PI)/2;let c=o+s*(i-o);if(d(c,i)&&(c=i),e.wrapperEl.scrollTo({[n]:c}),d(c,i))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout((()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:c})})),void r.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=r.requestAnimationFrame(p)};p()}let y,b,_;function w(){return y||(y=function(){const t=s(),e=n();return{smoothScroll:e.documentElement&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),passiveListener:function(){let e=!1;try{const i=Object.defineProperty({},"passive",{get(){e=!0}});t.addEventListener("testPassiveListener",null,i)}catch(t){}return e}(),gestures:"ongesturestart"in t}}()),y}function x(t){return void 0===t&&(t={}),b||(b=function(t){let{userAgent:e}=void 0===t?{}:t;const i=w(),n=s(),r=n.navigator.platform,o=e||n.navigator.userAgent,a={ios:!1,android:!1},l=n.screen.width,h=n.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let d=o.match(/(iPad).*OS\s([\d_]+)/);const p=o.match(/(iPod)(.*OS\s([\d_]+))?/),u=!d&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===r;let m="MacIntel"===r;return!d&&m&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${h}`)>=0&&(d=o.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),m=!1),c&&!f&&(a.os="android",a.android=!0),(d||u||p)&&(a.os="ios",a.ios=!0),a}(t)),b}function S(){return _||(_=function(){const t=s();return{isSafari:function(){const e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),_}Object.keys(h).forEach((t=>{Object.defineProperty($.fn,t,{value:h[t],writable:!0})}));var E={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const r=i?"unshift":"push";return t.split(" ").forEach((t=>{n.eventsListeners[t]||(n.eventsListeners[t]=[]),n.eventsListeners[t][r](e)})),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;function r(){n.off(t,r),r.__emitterProxy&&delete r.__emitterProxy;for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];e.apply(n,s)}return r.__emitterProxy=e,n.on(t,r,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(t.split(" ").forEach((t=>{void 0===e?i.eventsListeners[t]=[]:i.eventsListeners[t]&&i.eventsListeners[t].forEach(((n,r)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&i.eventsListeners[t].splice(r,1)}))})),i):i},emit(){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let e,i,n;for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];"string"==typeof s[0]||Array.isArray(s[0])?(e=s[0],i=s.slice(1,s.length),n=t):(e=s[0].events,i=s[0].data,n=s[0].context||t),i.unshift(n);return(Array.isArray(e)?e:e.split(" ")).forEach((e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach((t=>{t.apply(n,[e,...i])})),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach((t=>{t.apply(n,i)}))})),t}};var C={updateSize:function(){const t=this;let e,i;const n=t.$el;e=void 0!==t.params.width&&null!==t.params.width?t.params.width:n[0].clientWidth,i=void 0!==t.params.height&&null!==t.params.height?t.params.height:n[0].clientHeight,0===e&&t.isHorizontal()||0===i&&t.isVertical()||(e=e-parseInt(n.css("padding-left")||0,10)-parseInt(n.css("padding-right")||0,10),i=i-parseInt(n.css("padding-top")||0,10)-parseInt(n.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))},updateSlides:function(){const t=this;function e(e){return t.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}function i(t,i){return parseFloat(t.getPropertyValue(e(i))||0)}const n=t.params,{$wrapperEl:r,size:s,rtlTranslate:o,wrongRTL:a}=t,l=t.virtual&&n.virtual.enabled,h=l?t.virtual.slides.length:t.slides.length,c=r.children(`.${t.params.slideClass}`),d=l?t.virtual.slides.length:c.length;let p=[];const u=[],f=[];let m=n.slidesOffsetBefore;"function"==typeof m&&(m=n.slidesOffsetBefore.call(t));let v=n.slidesOffsetAfter;"function"==typeof v&&(v=n.slidesOffsetAfter.call(t));const y=t.snapGrid.length,b=t.slidesGrid.length;let _=n.spaceBetween,w=-m,x=0,S=0;if(void 0===s)return;"string"==typeof _&&_.indexOf("%")>=0&&(_=parseFloat(_.replace("%",""))/100*s),t.virtualSize=-_,o?c.css({marginLeft:"",marginBottom:"",marginTop:""}):c.css({marginRight:"",marginBottom:"",marginTop:""}),n.centeredSlides&&n.cssMode&&(g(t.wrapperEl,"--swiper-centered-offset-before",""),g(t.wrapperEl,"--swiper-centered-offset-after",""));const E=n.grid&&n.grid.rows>1&&t.grid;let C;E&&t.grid.initSlides(d);const T="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((t=>void 0!==n.breakpoints[t].slidesPerView)).length>0;for(let r=0;r<d;r+=1){C=0;const o=c.eq(r);if(E&&t.grid.updateSlide(r,o,d,e),"none"!==o.css("display")){if("auto"===n.slidesPerView){T&&(c[r].style[e("width")]="");const s=getComputedStyle(o[0]),a=o[0].style.transform,l=o[0].style.webkitTransform;
94if(a&&(o[0].style.transform="none"),l&&(o[0].style.webkitTransform="none"),n.roundLengths)C=t.isHorizontal()?o.outerWidth(!0):o.outerHeight(!0);else{const t=i(s,"width"),e=i(s,"padding-left"),n=i(s,"padding-right"),r=i(s,"margin-left"),a=i(s,"margin-right"),l=s.getPropertyValue("box-sizing");if(l&&"border-box"===l)C=t+r+a;else{const{clientWidth:i,offsetWidth:s}=o[0];C=t+e+n+r+a+(s-i)}}a&&(o[0].style.transform=a),l&&(o[0].style.webkitTransform=l),n.roundLengths&&(C=Math.floor(C))}else C=(s-(n.slidesPerView-1)*_)/n.slidesPerView,n.roundLengths&&(C=Math.floor(C)),c[r]&&(c[r].style[e("width")]=`${C}px`);c[r]&&(c[r].swiperSlideSize=C),f.push(C),n.centeredSlides?(w=w+C/2+x/2+_,0===x&&0!==r&&(w=w-s/2-_),0===r&&(w=w-s/2-_),Math.abs(w)<.001&&(w=0),n.roundLengths&&(w=Math.floor(w)),S%n.slidesPerGroup===0&&p.push(w),u.push(w)):(n.roundLengths&&(w=Math.floor(w)),(S-Math.min(t.params.slidesPerGroupSkip,S))%t.params.slidesPerGroup===0&&p.push(w),u.push(w),w=w+C+_),t.virtualSize+=C+_,x=C,S+=1}}if(t.virtualSize=Math.max(t.virtualSize,s)+v,o&&a&&("slide"===n.effect||"coverflow"===n.effect)&&r.css({width:`${t.virtualSize+n.spaceBetween}px`}),n.setWrapperSize&&r.css({[e("width")]:`${t.virtualSize+n.spaceBetween}px`}),E&&t.grid.updateWrapperSize(C,p,e),!n.centeredSlides){const e=[];for(let i=0;i<p.length;i+=1){let r=p[i];n.roundLengths&&(r=Math.floor(r)),p[i]<=t.virtualSize-s&&e.push(r)}p=e,Math.floor(t.virtualSize-s)-Math.floor(p[p.length-1])>1&&p.push(t.virtualSize-s)}if(0===p.length&&(p=[0]),0!==n.spaceBetween){const i=t.isHorizontal()&&o?"marginLeft":e("marginRight");c.filter(((t,e)=>!n.cssMode||e!==c.length-1)).css({[i]:`${_}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let t=0;f.forEach((e=>{t+=e+(n.spaceBetween?n.spaceBetween:0)})),t-=n.spaceBetween;const e=t-s;p=p.map((t=>t<0?-m:t>e?e+v:t))}if(n.centerInsufficientSlides){let t=0;if(f.forEach((e=>{t+=e+(n.spaceBetween?n.spaceBetween:0)})),t-=n.spaceBetween,t<s){const e=(s-t)/2;p.forEach(((t,i)=>{p[i]=t-e})),u.forEach(((t,i)=>{u[i]=t+e}))}}if(Object.assign(t,{slides:c,snapGrid:p,slidesGrid:u,slidesSizesGrid:f}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){g(t.wrapperEl,"--swiper-centered-offset-before",-p[0]+"px"),g(t.wrapperEl,"--swiper-centered-offset-after",t.size/2-f[f.length-1]/2+"px");const e=-t.snapGrid[0],i=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map((t=>t+e)),t.slidesGrid=t.slidesGrid.map((t=>t+i))}if(d!==h&&t.emit("slidesLengthChange"),p.length!==y&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),u.length!==b&&t.emit("slidesGridLengthChange"),n.watchSlidesProgress&&t.updateSlidesOffset(),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const e=`${n.containerModifierClass}backface-hidden`,i=t.$el.hasClass(e);d<=n.maxBackfaceHiddenSlides?i||t.$el.addClass(e):i&&t.$el.removeClass(e)}},updateAutoHeight:function(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let r,s=0;"number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed);const o=t=>n?e.slides.filter((e=>parseInt(e.getAttribute("data-swiper-slide-index"),10)===t))[0]:e.slides.eq(t)[0];if("auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||$([])).each((t=>{i.push(t)}));else for(r=0;r<Math.ceil(e.params.slidesPerView);r+=1){const t=e.activeIndex+r;if(t>e.slides.length&&!n)break;i.push(o(t))}else i.push(o(e.activeIndex));for(r=0;r<i.length;r+=1)if(void 0!==i[r]){const t=i[r].offsetHeight;s=t>s?t:s}(s||0===s)&&e.$wrapperEl.css("height",`${s}px`)},updateSlidesOffset:function(){const t=this,e=t.slides;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=t.isHorizontal()?e[i].offsetLeft:e[i].offsetTop},updateSlidesProgress:function(t){void 0===t&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:n,rtlTranslate:r,snapGrid:s}=e;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&e.updateSlidesOffset();let o=-t;r&&(o=t),n.removeClass(i.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let t=0;t<n.length;t+=1){const a=n[t];let l=a.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(l-=n[0].swiperSlideOffset);const h=(o+(i.centeredSlides?e.minTranslate():0)-l)/(a.swiperSlideSize+i.spaceBetween),c=(o-s[0]+(i.centeredSlides?e.minTranslate():0)-l)/(a.swiperSlideSize+i.spaceBetween),d=-(o-l),p=d+e.slidesSizesGrid[t];(d>=0&&d<e.size-1||p>1&&p<=e.size||d<=0&&p>=e.size)&&(e.visibleSlides.push(a),e.visibleSlidesIndexes.push(t),n.eq(t).addClass(i.slideVisibleClass)),a.progress=r?-h:h,a.originalProgress=r?-c:c}e.visibleSlides=$(e.visibleSlides)},updateProgress:function(t){const e=this;if(void 0===t){const i=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*i||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:s,isEnd:o}=e;const a=s,l=o;0===n?(r=0,s=!0,o=!0):(r=(t-e.minTranslate())/n,s=r<=0,o=r>=1),Object.assign(e,{progress:r,isBeginning:s,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),s&&!a&&e.emit("reachBeginning toEdge"),o&&!l&&e.emit("reachEnd toEdge"),(a&&!s||l&&!o)&&e.emit("fromEdge"),e.emit("progress",r)},updateSlidesClasses:function(){const t=this,{slides:e,params:i,$wrapperEl:n,activeIndex:r,realIndex:s}=t,o=t.virtual&&i.virtual.enabled;let a;e.removeClass(`${i.slideActiveClass} ${i.slideNextClass} ${i.slidePrevClass} ${i.slideDuplicateActiveClass} ${i.slideDuplicateNextClass} ${i.slideDuplicatePrevClass}`),a=o?t.$wrapperEl.find(`.${i.slideClass}[data-swiper-slide-index="${r}"]`):e.eq(r),a.addClass(i.slideActiveClass),i.loop&&(a.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${s}"]`).addClass(i.slideDuplicateActiveClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${s}"]`).addClass(i.slideDuplicateActiveClass));let l=a.nextAll(`.${i.slideClass}`).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=e.eq(0),l.addClass(i.slideNextClass));let h=a.prevAll(`.${i.slideClass}`).eq(0).addClass(i.slidePrevClass);i.loop&&0===h.length&&(h=e.eq(-1),h.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass),h.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass)),t.emitSlidesClasses()},updateActiveIndex:function(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:n,snapGrid:r,params:s,activeIndex:o,realIndex:a,snapIndex:l}=e;let h,c=t;if(void 0===c){for(let t=0;t<n.length;t+=1)void 0!==n[t+1]?i>=n[t]&&i<n[t+1]-(n[t+1]-n[t])/2?c=t:i>=n[t]&&i<n[t+1]&&(c=t+1):i>=n[t]&&(c=t);s.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(r.indexOf(i)>=0)h=r.indexOf(i);else{const t=Math.min(s.slidesPerGroupSkip,c);h=t+Math.floor((c-t)/s.slidesPerGroup)}if(h>=r.length&&(h=r.length-1),c===o)return void(h!==l&&(e.snapIndex=h,e.emit("snapIndexChange")));const d=parseInt(e.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(e,{snapIndex:h,realIndex:d,previousIndex:o,activeIndex:c}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),a!==d&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")},updateClickedSlide:function(t){const e=this,i=e.params,n=$(t).closest(`.${i.slideClass}`)[0];let r,s=!1;if(n)for(let t=0;t<e.slides.length;t+=1)if(e.slides[t]===n){s=!0,r=t;break}if(!n||!s)return e.clickedSlide=void 0,void(e.clickedIndex=void 0);e.clickedSlide=n,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt($(n).attr("data-swiper-slide-index"),10):e.clickedIndex=r,i.slideToClickedSlide&&void 0!==e.clickedIndex&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}};var T={getTranslate:function(t){void 0===t&&(t=this.isHorizontal()?"x":"y");const{params:e,rtlTranslate:i,translate:n,$wrapperEl:r}=this;if(e.virtualTranslate)return i?-n:n;if(e.cssMode)return n;let s=p(r[0],t);return i&&(s=-s),s||0},setTranslate:function(t,e){const i=this,{rtlTranslate:n,params:r,$wrapperEl:s,wrapperEl:o,progress:a}=i;let l,h=0,c=0;i.isHorizontal()?h=n?-t:t:c=t,r.roundLengths&&(h=Math.floor(h),c=Math.floor(c)),r.cssMode?o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-h:-c:r.virtualTranslate||s.transform(`translate3d(${h}px, ${c}px, 0px)`),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?h:c;const d=i.maxTranslate()-i.minTranslate();l=0===d?0:(t-i.minTranslate())/d,l!==a&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}
94,translateTo:function(t,e,i,n,r){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===i&&(i=!0),void 0===n&&(n=!0);const s=this,{params:o,wrapperEl:a}=s;if(s.animating&&o.preventInteractionOnTransition)return!1;const l=s.minTranslate(),h=s.maxTranslate();let c;if(c=n&&t>l?l:n&&t<h?h:t,s.updateProgress(c),o.cssMode){const t=s.isHorizontal();if(0===e)a[t?"scrollLeft":"scrollTop"]=-c;else{if(!s.support.smoothScroll)return v({swiper:s,targetPosition:-c,side:t?"left":"top"}),!0;a.scrollTo({[t?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===e?(s.setTransition(0),s.setTranslate(c),i&&(s.emit("beforeTransitionStart",e,r),s.emit("transitionEnd"))):(s.setTransition(e),s.setTranslate(c),i&&(s.emit("beforeTransitionStart",e,r),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(t){s&&!s.destroyed&&t.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,i&&s.emit("transitionEnd"))}),s.$wrapperEl[0].addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd))),!0}};function k(t){let{swiper:e,runCallbacks:i,direction:n,step:r}=t;const{activeIndex:s,previousIndex:o}=e;let a=n;if(a||(a=s>o?"next":s<o?"prev":"reset"),e.emit(`transition${r}`),i&&s!==o){if("reset"===a)return void e.emit(`slideResetTransition${r}`);e.emit(`slideChangeTransition${r}`),"next"===a?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}var P={slideTo:function(t,e,i,n,r){if(void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===i&&(i=!0),"number"!=typeof t&&"string"!=typeof t)throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof t}] given.`);if("string"==typeof t){const e=parseInt(t,10);if(!isFinite(e))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${t}] given.`);t=e}const s=this;let o=t;o<0&&(o=0) 95;const{params:a,snapGrid:l,slidesGrid:h,previousIndex:c,activeIndex:d,rtlTranslate:p,wrapperEl:u,enabled:f}=s;if(s.animating&&a.preventInteractionOnTransition||!f&&!n&&!r)return!1;const m=Math.min(s.params.slidesPerGroupSkip,o);let g=m+Math.floor((o-m)/s.params.slidesPerGroup);g>=l.length&&(g=l.length-1),(d||a.initialSlide||0)===(c||0)&&i&&s.emit("beforeSlideChangeStart");const y=-l[g];if(s.updateProgress(y),a.normalizeSlideIndex)for(let t=0;t<h.length;t+=1){const e=-Math.floor(100*y),i=Math.floor(100*h[t]),n=Math.floor(100*h[t+1]);void 0!==h[t+1]?e>=i&&e<n-(n-i)/2?o=t:e>=i&&e<n&&(o=t+1):e>=i&&(o=t)}if(s.initialized&&o!==d){if(!s.allowSlideNext&&y<s.translate&&y<s.minTranslate())return!1;if(!s.allowSlidePrev&&y>s.translate&&y>s.maxTranslate()&&(d||0)!==o)return!1}let b;if(b=o>d?"next":o<d?"prev":"reset",p&&-y===s.translate||!p&&y===s.translate)return s.updateActiveIndex(o),a.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==a.effect&&s.setTranslate(y),"reset"!==b&&(s.transitionStart(i,b),s.transitionEnd(i,b)),!1;if(a.cssMode){const t=s.isHorizontal(),i=p?y:-y;if(0===e){const e=s.virtual&&s.params.virtual.enabled;e&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),u[t?"scrollLeft":"scrollTop"]=i,e&&requestAnimationFrame((()=>{s.wrapperEl.style.scrollSnapType="",s._swiperImmediateVirtual=!1}))}else{if(!s.support.smoothScroll)return v({swiper:s,targetPosition:i,side:t?"left":"top"}),!0;u.scrollTo({[t?"left":"top"]:i,behavior:"smooth"})}return!0}return s.setTransition(e),s.setTranslate(y),s.updateActiveIndex(o),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,n),s.transitionStart(i,b),0===e?s.transitionEnd(i,b):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(t){s&&!s.destroyed&&t.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(i,b))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd)),!0}
95,slideToLoop:function(t,e,i,n){if(void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===i&&(i=!0),"string"==typeof t){const e=parseInt(t,10);if(!isFinite(e))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${t}] given.`);t=e}const r=this;let s=t;return r.params.loop&&(s+=r.loopedSlides),r.slideTo(s,e,i,n)},slideNext:function(t,e,i){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);const n=this,{animating:r,enabled:s,params:o}=n;if(!s)return n;let a=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(a=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex<o.slidesPerGroupSkip?1:a;if(o.loop){if(r&&o.loopPreventsSlide)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}return o.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+l,t,e,i)},slidePrev:function(t,e,i){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);const n=this,{params:r,animating:s,snapGrid:o,slidesGrid:a,rtlTranslate:l,enabled:h}=n;if(!h)return n;if(r.loop){if(s&&r.loopPreventsSlide)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}function c(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const d=c(l?n.translate:-n.translate),p=o.map((t=>c(t)));let u=o[p.indexOf(d)-1];if(void 0===u&&r.cssMode){let t;o.forEach(((e,i)=>{d>=e&&(t=i)})),void 0!==t&&(u=o[t>0?t-1:t])}let f=0;if(void 0!==u&&(f=a.indexOf(u),f<0&&(f=n.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(f=f-n.slidesPerViewDynamic("previous",!0)+1,f=Math.max(f,0))),r.rewind&&n.isBeginning){const r=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(r,t,e,i)}return n.slideTo(f,t,e,i)},slideReset:function(t,e,i){return void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),this.slideTo(this.activeIndex,t,e,i)},slideToClosest:function(t,e,i,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),void 0===n&&(n=.5);const r=this;let s=r.activeIndex;const o=Math.min(r.params.slidesPerGroupSkip,s),a=o+Math.floor((s-o)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[a]){const t=r.snapGrid[a];l-t>(r.snapGrid[a+1]-t)*n&&(s+=r.params.slidesPerGroup)}else{const t=r.snapGrid[a-1];l-t<=(r.snapGrid[a]-t)*n&&(s-=r.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,r.slidesGrid.length-1),r.slideTo(s,t,e,i)},slideToClickedSlide:function(){const t=this,{params:e,$wrapperEl:i}=t,n="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let r,s=t.clickedIndex;if(e.loop){if(t.animating)return;r=parseInt($(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?s<t.loopedSlides-n/2||s>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),s=i.children(`.${e.slideClass}[data-swiper-slide-index="${r}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),c((()=>{t.slideTo(s)}))):t.slideTo(s):s>t.slides.length-n?(t.loopFix(),s=i.children(`.${e.slideClass}[data-swiper-slide-index="${r}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),c((()=>{t.slideTo(s)}))):t.slideTo(s)}else t.slideTo(s)}};var A={loopCreate:function(){const t=this,e=n(),{params:i,$wrapperEl:r}=t,s=r.children().length>0?$(r.children()[0].parentNode):r;s.children(`.${i.slideClass}.${i.slideDuplicateClass}`).remove();let o=s.children(`.${i.slideClass}`);if(i.loopFillGroupWithBlank){const t=i.slidesPerGroup-o.length%i.slidesPerGroup;if(t!==i.slidesPerGroup){for(let n=0;n<t;n+=1){const t=$(e.createElement("div")).addClass(`${i.slideClass} ${i.slideBlankClass}`);s.append(t)}o=s.children(`.${i.slideClass}`)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=o.length),t.loopedSlides=Math.ceil(parseFloat(i.loopedSlides||i.slidesPerView,10)),t.loopedSlides+=i.loopAdditionalSlides,t.loopedSlides>o.length&&(t.loopedSlides=o.length);const a=[],l=[];o.each(((e,i)=>{const n=$(e);i<t.loopedSlides&&l.push(e),i<o.length&&i>=o.length-t.loopedSlides&&a.push(e),n.attr("data-swiper-slide-index",i)}));for(let t=0;t<l.length;t+=1)s.append($(l[t].cloneNode(!0)).addClass(i.slideDuplicateClass));for(let t=a.length-1;t>=0;t-=1)s.prepend($(a[t].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){const t=this;t.emit("beforeLoopFix");const{activeIndex:e,slides:i,loopedSlides:n,allowSlidePrev:r,allowSlideNext:s,snapGrid:o,rtlTranslate:a}=t;let l;t.allowSlidePrev=!0,t.allowSlideNext=!0;const h=-o[e]-t.getTranslate();if(e<n){l=i.length-3*n+e,l+=n;t.slideTo(l,0,!1,!0)&&0!==h&&t.setTranslate((a?-t.translate:t.translate)-h)}else if(e>=i.length-n){l=-i.length+e+n,l+=n;t.slideTo(l,0,!1,!0)&&0!==h&&t.setTranslate((a?-t.translate:t.translate)-h)}t.allowSlidePrev=r,t.allowSlideNext=s,t.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:t,params:e,slides:i}=this;t.children(`.${e.slideClass}.${e.slideDuplicateClass},.${e.slideClass}.${e.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}};function M(t){const e=this,i=n(),r=s(),o=e.touchEventsData,{params:a,touches:l,enabled:h}=e;if(!h)return;if(e.animating&&a.preventInteractionOnTransition)return;!e.animating&&a.cssMode&&a.loop&&e.loopFix();let c=t;c.originalEvent&&(c=c.originalEvent);let p=$(c.target);if("wrapper"===a.touchEventsTarget&&!p.closest(e.wrapperEl).length)return;if(o.isTouchEvent="touchstart"===c.type,!o.isTouchEvent&&"which"in c&&3===c.which)return;if(!o.isTouchEvent&&"button"in c&&c.button>0)return;if(o.isTouched&&o.isMoved)return;!!a.noSwipingClass&&""!==a.noSwipingClass&&c.target&&c.target.shadowRoot&&t.path&&t.path[0]&&(p=$(t.path[0]));const u=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,f=!(!c.target||!c.target.shadowRoot);if(a.noSwiping&&(f?function(t,e){return void 0===e&&(e=this),function e(i){if(!i||i===n()||i===s())return null;i.assignedSlot&&(i=i.assignedSlot);const r=i.closest(t);return r||i.getRootNode?r||e(i.getRootNode().host):null}(e)}(u,p[0]):p.closest(u)[0]))return void(e.allowClick=!0);if(a.swipeHandler&&!p.closest(a.swipeHandler)[0])return;l.currentX="touchstart"===c.type?c.targetTouches[0].pageX:c.pageX,l.currentY="touchstart"===c.type?c.targetTouches[0].pageY:c.pageY;const m=l.currentX,g=l.currentY,v=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,y=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(v&&(m<=y||m>=r.innerWidth-y)){if("prevent"!==v)return;t.preventDefault()}if(Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=m,l.startY=g,o.touchStartTime=d(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,a.threshold>0&&(o.allowThresholdMove=!1),"touchstart"!==c.type){let t=!0;
95p.is(o.focusableElements)&&(t=!1,"SELECT"===p[0].nodeName&&(o.isTouched=!1)),i.activeElement&&$(i.activeElement).is(o.focusableElements)&&i.activeElement!==p[0]&&i.activeElement.blur();const n=t&&e.allowTouchMove&&a.touchStartPreventDefault;!a.touchStartForcePreventDefault&&!n||p[0].isContentEditable||c.preventDefault()}e.params.freeMode&&e.params.freeMode.enabled&&e.freeMode&&e.animating&&!a.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",c)}function D(t){const e=n(),i=this,r=i.touchEventsData,{params:s,touches:o,rtlTranslate:a,enabled:l}=i;if(!l)return;let h=t;if(h.originalEvent&&(h=h.originalEvent),!r.isTouched)return void(r.startMoving&&r.isScrolling&&i.emit("touchMoveOpposite",h));if(r.isTouchEvent&&"touchmove"!==h.type)return;const c="touchmove"===h.type&&h.targetTouches&&(h.targetTouches[0]||h.changedTouches[0]),p="touchmove"===h.type?c.pageX:h.pageX,u="touchmove"===h.type?c.pageY:h.pageY;if(h.preventedByNestedSwiper)return o.startX=p,void(o.startY=u);if(!i.allowTouchMove)return $(h.target).is(r.focusableElements)||(i.allowClick=!1),void(r.isTouched&&(Object.assign(o,{startX:p,startY:u,currentX:p,currentY:u}),r.touchStartTime=d()));if(r.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop)if(i.isVertical()){if(u<o.startY&&i.translate<=i.maxTranslate()||u>o.startY&&i.translate>=i.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(p<o.startX&&i.translate<=i.maxTranslate()||p>o.startX&&i.translate>=i.minTranslate())return;if(r.isTouchEvent&&e.activeElement&&h.target===e.activeElement&&$(h.target).is(r.focusableElements))return r.isMoved=!0,void(i.allowClick=!1);if(r.allowTouchCallbacks&&i.emit("touchMove",h),h.targetTouches&&h.targetTouches.length>1)return;o.currentX=p,o.currentY=u;const f=o.currentX-o.startX,m=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(f**2+m**2)<i.params.threshold)return;if(void 0===r.isScrolling){let t;i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:f*f+m*m>=25&&(t=180*Math.atan2(Math.abs(m),Math.abs(f))/Math.PI,r.isScrolling=i.isHorizontal()?t>s.touchAngle:90-t>s.touchAngle)}if(r.isScrolling&&i.emit("touchMoveOpposite",h),void 0===r.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(r.startMoving=!0)),r.isScrolling)return void(r.isTouched=!1);if(!r.startMoving)return;i.allowClick=!1,!s.cssMode&&h.cancelable&&h.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&h.stopPropagation(),r.isMoved||(s.loop&&!s.cssMode&&i.loopFix(),r.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!s.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",h)),i.emit("sliderMove",h),r.isMoved=!0;let g=i.isHorizontal()?f:m;o.diff=g,g*=s.touchRatio,a&&(g=-g),i.swipeDirection=g>0?"prev":"next",r.currentTranslate=g+r.startTranslate;let v=!0,y=s.resistanceRatio;if(s.touchReleaseOnEdges&&(y=0),g>0&&r.currentTranslate>i.minTranslate()?(v=!1,s.resistance&&(r.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+r.startTranslate+g)**y)):g<0&&r.currentTranslate<i.maxTranslate()&&(v=!1,s.resistance&&(r.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-r.startTranslate-g)**y)),v&&(h.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),i.allowSlidePrev||i.allowSlideNext||(r.currentTranslate=r.startTranslate),s.threshold>0){if(!(Math.abs(g)>s.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);
95if(!r.allowThresholdMove)return r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,void(o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}s.followFinger&&!s.cssMode&&((s.freeMode&&s.freeMode.enabled&&i.freeMode||s.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),i.params.freeMode&&s.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(r.currentTranslate),i.setTranslate(r.currentTranslate))}function I(t){const e=this,i=e.touchEventsData,{params:n,touches:r,rtlTranslate:s,slidesGrid:o,enabled:a}=e;if(!a)return;let l=t;if(l.originalEvent&&(l=l.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",l),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const h=d(),p=h-i.touchStartTime;if(e.allowClick){const t=l.path||l.composedPath&&l.composedPath();e.updateClickedSlide(t&&t[0]||l.target),e.emit("tap click",l),p<300&&h-i.lastClickTime<300&&e.emit("doubleTap doubleClick",l)}if(i.lastClickTime=d(),c((()=>{e.destroyed||(e.allowClick=!0)})),!i.isTouched||!i.isMoved||!e.swipeDirection||0===r.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let u;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,u=n.followFinger?s?e.translate:-e.translate:-i.currentTranslate,n.cssMode)return;if(e.params.freeMode&&n.freeMode.enabled)return void e.freeMode.onTouchEnd({currentPos:u});let f=0,m=e.slidesSizesGrid[0];for(let t=0;t<o.length;t+=t<n.slidesPerGroupSkip?1:n.slidesPerGroup){const e=t<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;void 0!==o[t+e]?u>=o[t]&&u<o[t+e]&&(f=t,m=o[t+e]-o[t]):u>=o[t]&&(f=t,m=o[o.length-1]-o[o.length-2])}let g=null,v=null;n.rewind&&(e.isBeginning?v=e.params.virtual&&e.params.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(g=0));const y=(u-o[f])/m,b=f<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(p>n.longSwipesMs){if(!n.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(y>=n.longSwipesRatio?e.slideTo(n.rewind&&e.isEnd?g:f+b):e.slideTo(f)),"prev"===e.swipeDirection&&(y>1-n.longSwipesRatio?e.slideTo(f+b):null!==v&&y<0&&Math.abs(y)>n.longSwipesRatio?e.slideTo(v):e.slideTo(f))}else{if(!n.shortSwipes)return void e.slideTo(e.activeIndex);e.navigation&&(l.target===e.navigation.nextEl||l.target===e.navigation.prevEl)?l.target===e.navigation.nextEl?e.slideTo(f+b):e.slideTo(f):("next"===e.swipeDirection&&e.slideTo(null!==g?g:f+b),"prev"===e.swipeDirection&&e.slideTo(null!==v?v:f))}}function O(){const t=this,{params:e,el:i}=t;if(i&&0===i.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:r,snapGrid:s}=t;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=r,t.allowSlideNext=n,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function L(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function F(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)return;let r;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const s=t.maxTranslate()-t.minTranslate();r=0===s?0:(t.translate-t.minTranslate())/s,r!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}let R=!1;function z(){}const B=(t,e)=>{const i=n(),{params:r,touchEvents:s,el:o,wrapperEl:a,device:l,support:h}=t,c=!!r.nested,d="on"===e?"addEventListener":"removeEventListener",p=e;if(h.touch){const e=!("touchstart"!==s.start||!h.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};o[d](s.start,t.onTouchStart,e),o[d](s.move,t.onTouchMove,h.passiveListener?{passive:!1,capture:c}:c),o[d](s.end,t.onTouchEnd,e),s.cancel&&o[d](s.cancel,t.onTouchEnd,e)}else o[d](s.start,t.onTouchStart,!1),i[d](s.move,t.onTouchMove,c),i[d](s.end,t.onTouchEnd,!1);(r.preventClicks||r.preventClicksPropagation)&&o[d]("click",t.onClick,!0),r.cssMode&&a[d]("scroll",t.onScroll),r.updateOnWindowResize?t[p](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",O,!0):t[p]("observerUpdate",O,!0)};var N={attachEvents:function(){const t=this,e=n(),{params:i,support:r}=t;t.onTouchStart=M.bind(t),t.onTouchMove=D.bind(t),t.onTouchEnd=I.bind(t),i.cssMode&&(t.onScroll=F.bind(t)),t.onClick=L.bind(t),r.touch&&!R&&(e.addEventListener("touchstart",z),R=!0),B(t,"on")},detachEvents:function(){B(this,"off")}};const j=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;var G={addClasses:function(){const t=this,{classNames:e,params:i,rtl:n,$el:r,device:s,support:o}=t,a=function(t,e){const i=[];return t.forEach((t=>{"object"==typeof t?Object.keys(t).forEach((n=>{t[n]&&i.push(e+n)})):"string"==typeof t&&i.push(e+t)})),i}(["initialized",i.direction,{"pointer-events":!o.touch},{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:s.android},{ios:s.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...a),r.addClass([...e].join(" ")),t.emitContainerClasses()},removeClasses:function(){const{$el:t,classNames:e}=this;t.removeClass(e.join(" ")),this.emitContainerClasses()}};var V={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",
95spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function H(t,e){return function(i){void 0===i&&(i={});const n=Object.keys(i)[0],r=i[n];"object"==typeof r&&null!==r?(["navigation","pagination","scrollbar"].indexOf(n)>=0&&!0===t[n]&&(t[n]={auto:!0}),n in t&&"enabled"in r?(!0===t[n]&&(t[n]={enabled:!0}),"object"!=typeof t[n]||"enabled"in t[n]||(t[n].enabled=!0),t[n]||(t[n]={enabled:!1}),m(e,i)):m(e,i)):m(e,i)}}const q={eventsEmitter:E,update:C,translate:T,transition:{setTransition:function(t,e){const i=this;i.params.cssMode||i.$wrapperEl.transition(t),i.emit("setTransition",t,e)},transitionStart:function(t,e){void 0===t&&(t=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),k({swiper:i,runCallbacks:t,direction:e,step:"Start"}))},transitionEnd:function(t,e){void 0===t&&(t=!0);const i=this,{params:n}=i;i.animating=!1,n.cssMode||(i.setTransition(0),k({swiper:i,runCallbacks:t,direction:e,step:"End"}))}},slide:P,loop:A,grabCursor:{setGrabCursor:function(t){const e=this;if(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i="container"===e.params.touchEventsTarget?e.el:e.wrapperEl;i.style.cursor="move",i.style.cursor=t?"grabbing":"grab"},unsetGrabCursor:function(){const t=this;t.support.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t["container"===t.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:N,breakpoints:{setBreakpoint:function(){const t=this,{activeIndex:e,initialized:i,loopedSlides:n=0,params:r,$el:s}=t,o=r.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const a=t.getBreakpoint(o,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const l=(a in o?o[a]:void 0)||t.originalParams,h=j(t,r),c=j(t,l),d=r.enabled;h&&!c?(s.removeClass(`${r.containerModifierClass}grid ${r.containerModifierClass}grid-column`),t.emitContainerClasses()):!h&&c&&(s.addClass(`${r.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===r.grid.fill)&&s.addClass(`${r.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((e=>{const i=r[e]&&r[e].enabled,n=l[e]&&l[e].enabled;i&&!n&&t[e].disable(),!i&&n&&t[e].enable()}));const p=l.direction&&l.direction!==r.direction,u=r.loop&&(l.slidesPerView!==r.slidesPerView||p);p&&i&&t.changeDirection(),m(t.params,l);const f=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),d&&!f?t.disable():!d&&f&&t.enable(),t.currentBreakpoint=a,t.emit("_beforeBreakpoint",l),u&&i&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-n+t.loopedSlides,0,!1)),t.emit("breakpoint",l)}
95,getBreakpoint:function(t,e,i){if(void 0===e&&(e="window"),!t||"container"===e&&!i)return;let n=!1;const r=s(),o="window"===e?r.innerHeight:i.clientHeight,a=Object.keys(t).map((t=>{if("string"==typeof t&&0===t.indexOf("@")){const e=parseFloat(t.substr(1));return{value:o*e,point:t}}return{value:t,point:t}}));a.sort(((t,e)=>parseInt(t.value,10)-parseInt(e.value,10)));for(let t=0;t<a.length;t+=1){const{point:s,value:o}=a[t];"window"===e?r.matchMedia(`(min-width: ${o}px)`).matches&&(n=s):o<=i.clientWidth&&(n=s)}return n||"max"}},checkOverflow:{checkOverflow:function(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const e=t.slides.length-1,i=t.slidesGrid[e]+t.slidesSizesGrid[e]+2*n;t.isLocked=t.size>i}else t.isLocked=1===t.snapGrid.length;!0===i.allowSlideNext&&(t.allowSlideNext=!t.isLocked),!0===i.allowSlidePrev&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}},classes:G,images:{loadImage:function(t,e,i,n,r,o){const a=s();let l;function h(){o&&o()}$(t).parent("picture")[0]||t.complete&&r?h():e?(l=new a.Image,l.onload=h,l.onerror=h,n&&(l.sizes=n),i&&(l.srcset=i),e&&(l.src=e)):h()},preloadImages:function(){const t=this;function e(){null!=t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(let i=0;i<t.imagesToLoad.length;i+=1){const n=t.imagesToLoad[i];t.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,e)}}}},X={};class W{constructor(){let t,e;for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];if(1===n.length&&n[0].constructor&&"Object"===Object.prototype.toString.call(n[0]).slice(8,-1)?e=n[0]:[t,e]=n,e||(e={}),e=m({},e),t&&!e.el&&(e.el=t),e.el&&$(e.el).length>1){const t=[];return $(e.el).each((i=>{const n=m({},e,{el:i});t.push(new W(n))})),t}const s=this;s.__swiper__=!0,s.support=w(),s.device=x({userAgent:e.userAgent}),s.browser=S(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],e.modules&&Array.isArray(e.modules)&&s.modules.push(...e.modules);const o={};s.modules.forEach((t=>{t({swiper:s,extendParams:H(e,o),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})}));const a=m({},V,o);return s.params=m({},a,X,e),s.originalParams=m({},s.params),s.passedParams=m({}
95,e),s.params&&s.params.on&&Object.keys(s.params.on).forEach((t=>{s.on(t,s.params.on[t])})),s.params&&s.params.onAny&&s.onAny(s.params.onAny),s.$=$,Object.assign(s,{enabled:s.params.enabled,el:t,classNames:[],slides:$(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===s.params.direction,isVertical:()=>"vertical"===s.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEvents:function(){const t=["touchstart","touchmove","touchend","touchcancel"],e=["pointerdown","pointermove","pointerup"];return s.touchEventsTouch={start:t[0],move:t[1],end:t[2],cancel:t[3]},s.touchEventsDesktop={start:e[0],move:e[1],end:e[2]},s.support.touch||!s.params.simulateTouch?s.touchEventsTouch:s.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:d(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,e){const i=this;t=Math.min(Math.max(t,0),1);const n=i.minTranslate(),r=(i.maxTranslate()-n)*t+n;i.translateTo(r,void 0===e?0:e),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=t.el.className.split(" ").filter((e=>0===e.indexOf("swiper")||0===e.indexOf(t.params.containerModifierClass)));t.emit("_containerClasses",e.join(" "))}getSlideClasses(t){const e=this;return e.destroyed?"":t.className.split(" ").filter((t=>0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass))).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=[];t.slides.each((i=>{const n=t.getSlideClasses(i);e.push({slideEl:i,classNames:n}),t.emit("_slideClass",i,n)})),t.emit("_slideClasses",e)}slidesPerViewDynamic(t,e){void 0===t&&(t="current"),void 0===e&&(e=!1);const{params:i,slides:n,slidesGrid:r,slidesSizesGrid:s,size:o,activeIndex:a}=this;let l=1;if(i.centeredSlides){let t,e=n[a].swiperSlideSize;for(let i=a+1;i<n.length;i+=1)n[i]&&!t&&(e+=n[i].swiperSlideSize,l+=1,e>o&&(t=!0));for(let i=a-1;i>=0;i-=1)n[i]&&!t&&(e+=n[i].swiperSlideSize,l+=1,e>o&&(t=!0))}else if("current"===t)for(let t=a+1;t<n.length;t+=1){(e?r[t]+s[t]-r[a]<o:r[t]-r[a]<o)&&(l+=1)}else for(let t=a-1;t>=0;t-=1){r[a]-r[t]<o&&(l+=1)}return l}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:e,params:i}=t;function n(){const e=t.rtlTranslate?-1*t.translate:t.translate,i=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}let r;i.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode&&t.params.freeMode.enabled?(n(),t.params.autoHeight&&t.updateAutoHeight()):(r=("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),r||n()),i.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,e){void 0===e&&(e=!0);const i=this,n=i.params.direction;return t||(t="horizontal"===n?"vertical":"horizontal"),t===n||"horizontal"!==t&&"vertical"!==t||(i.$el.removeClass(`${i.params.containerModifierClass}${n}`).addClass(`${i.params.containerModifierClass}${t}`),i.emitContainerClasses(),i.params.direction=t,i.slides.each((e=>{"vertical"===t?e.style.width="":e.style.height=""})),i.emit("changeDirection"),e&&i.update()),i}mount(t){const e=this;if(e.mounted)return!0;const i=$(t||e.params.el);if(!(t=i[0]))return!1;t.swiper=e;const r=()=>`.${(e.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=(()=>
95{if(t&&t.shadowRoot&&t.shadowRoot.querySelector){const e=$(t.shadowRoot.querySelector(r()));return e.children=t=>i.children(t),e}return i.children?i.children(r()):$(i).children(r())})();if(0===s.length&&e.params.createElements){const t=n().createElement("div");s=$(t),t.className=e.params.wrapperClass,i.append(t),i.children(`.${e.params.slideClass}`).each((t=>{s.append(t)}))}return Object.assign(e,{$el:i,el:t,$wrapperEl:s,wrapperEl:s[0],mounted:!0,rtl:"rtl"===t.dir.toLowerCase()||"rtl"===i.css("direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===i.css("direction")),wrongRTL:"-webkit-box"===s.css("display")}),!0}init(t){const e=this;if(e.initialized)return e;return!1===e.mount(t)||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit,!1,!0):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.attachEvents(),e.initialized=!0,e.emit("init"),e.emit("afterInit")),e}destroy(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);const i=this,{params:n,$el:r,$wrapperEl:s,slides:o}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),e&&(i.removeClasses(),r.removeAttr("style"),s.removeAttr("style"),o&&o.length&&o.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((t=>{i.off(t)})),!1!==t&&(i.$el[0].swiper=null,function(t){const e=t;Object.keys(e).forEach((t=>{try{e[t]=null}catch(t){}try{delete e[t]}catch(t){}}))}(i)), 96i.destroyed=!0),null}static extendDefaults(t){m(X,t)}static get extendedDefaults(){return X}static get defaults(){return V}static installModule(t){W.prototype.__modules__||(W.prototype.__modules__=[]);const e=W.prototype.__modules__;"function"==typeof t&&e.indexOf(t)<0&&e.push(t)}static use(t){return Array.isArray(t)?(t.forEach((t=>W.installModule(t))),W):(W.installModule(t),W)}}function Y(t,e,i,r){const s=n();return t.params.createElements&&Object.keys(r).forEach((n=>{if(!i[n]&&!0===i.auto){let o=t.$el.children(`.${r[n]}`)[0];o||(o=s.createElement("div"),o.className=r[n],t.$el.append(o)),i[n]=o,e[n]=o}})),i}function U(t){return void 0===t&&(t=""),`.${t.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function K(t){const e=this,{$wrapperEl:i,params:n}=e;if(n.loop&&e.loopDestroy(),"object"==typeof t&&"length"in t)for(let e=0;e<t.length;e+=1)t[e]&&i.append(t[e]);else i.append(t);n.loop&&e.loopCreate(),n.observer||e.update()}function Z(t){const e=this,{params:i,$wrapperEl:n,activeIndex:r}=e;i.loop&&e.loopDestroy();let s=r+1;if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&n.prepend(t[e]);s=r+t.length}else n.prepend(t);i.loop&&e.loopCreate(),i.observer||e.update(),e.slideTo(s,0,!1)}function Q(t,e){const i=this,{$wrapperEl:n,params:r,activeIndex:s}=i;let o=s;r.loop&&(o-=i.loopedSlides,i.loopDestroy(),i.slides=n.children(`.${r.slideClass}`));const a=i.slides.length;if(t<=0)return void i.prependSlide(e);if(t>=a)return void i.appendSlide(e);let l=o>t?o+1:o;const h=[];for(let e=a-1;e>=t;e-=1){const t=i.slides.eq(e);t.remove(),h.unshift(t)}if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&n.append(e[t]);l=o>t?o+e.length:o}else n.append(e);for(let t=0;t<h.length;t+=1)n.append(h[t]);r.loop&&i.loopCreate(),r.observer||i.update(),r.loop?i.slideTo(l+i.loopedSlides,0,!1):i.slideTo(l,0,!1)}function J(t){const e=this,{params:i,$wrapperEl:n,activeIndex:r}=e;let s=r;i.loop&&(s-=e.loopedSlides,e.loopDestroy(),e.slides=n.children(`.${i.slideClass}`));let o,a=s;if("object"==typeof t&&"length"in t){for(let i=0;i<t.length;i+=1)o=t[i],e.slides[o]&&e.slides.eq(o).remove(),o<a&&(a-=1);a=Math.max(a,0)}else o=t,e.slides[o]&&e.slides.eq(o).remove(),o<a&&(a-=1),a=Math.max(a,0);
96i.loop&&e.loopCreate(),i.observer||e.update(),i.loop?e.slideTo(a+e.loopedSlides,0,!1):e.slideTo(a,0,!1)}function tt(){const t=this,e=[];for(let i=0;i<t.slides.length;i+=1)e.push(i);t.removeSlide(e)}function et(t){const{effect:e,swiper:i,on:n,setTranslate:r,setTransition:s,overwriteParams:o,perspective:a,recreateShadows:l,getEffectParams:h}=t;let c;n("beforeInit",(()=>{if(i.params.effect!==e)return;i.classNames.push(`${i.params.containerModifierClass}${e}`),a&&a()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const t=o?o():{};Object.assign(i.params,t),Object.assign(i.originalParams,t)})),n("setTranslate",(()=>{i.params.effect===e&&r()})),n("setTransition",((t,n)=>{i.params.effect===e&&s(n)})),n("transitionEnd",(()=>{if(i.params.effect===e&&l){if(!h||!h().slideShadows)return;i.slides.each((t=>{i.$(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove()})),l()}})),n("virtualUpdate",(()=>{i.params.effect===e&&(i.slides.length||(c=!0),requestAnimationFrame((()=>{c&&i.slides&&i.slides.length&&(r(),c=!1)})))}))}function it(t,e){return t.transformEl?e.find(t.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):e}function nt(t){let{swiper:e,duration:i,transformEl:n,allSlides:r}=t;const{slides:s,activeIndex:o,$wrapperEl:a}=e;if(e.params.virtualTranslate&&0!==i){let t,i=!1;t=r?n?s.find(n):s:n?s.eq(o).find(n):s.eq(o),t.transitionEnd((()=>{if(i)return;if(!e||e.destroyed)return;i=!0,e.animating=!1;const t=["webkitTransitionEnd","transitionend"];for(let e=0;e<t.length;e+=1)a.trigger(t[e])}))}}function rt(t,e,i){const n="swiper-slide-shadow"+(i?`-${i}`:""),r=t.transformEl?e.find(t.transformEl):e;let s=r.children(`.${n}`);return s.length||(s=$(`<div class="swiper-slide-shadow${i?`-${i}`:""}"></div>`),r.append(s)),s}Object.keys(q).forEach((t=>{Object.keys(q[t]).forEach((e=>{W.prototype[e]=q[t][e]}))})),W.use([function(t){let{swiper:e,on:i,emit:n}=t;const r=s();let o=null,a=null;const l=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},h=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};i("init",(()=>{e.params.resizeObserver&&void 0!==r.ResizeObserver?e&&!e.destroyed&&e.initialized&&(o=new ResizeObserver((t=>{a=r.requestAnimationFrame((()=>{const{width:i,height:n}=e;let r=i,s=n;t.forEach((t=>{let{contentBoxSize:i,contentRect:n,target:o}=t;o&&o!==e.el||(r=n?n.width:(i[0]||i).inlineSize,s=n?n.height:(i[0]||i).blockSize)})),r===i&&s===n||l()}))})),o.observe(e.el)):(r.addEventListener("resize",l),r.addEventListener("orientationchange",h))})),i("destroy",(()=>{a&&r.cancelAnimationFrame(a),o&&o.unobserve&&e.el&&(o.unobserve(e.el),o=null),r.removeEventListener("resize",l),r.removeEventListener("orientationchange",h)}))},function(t){let{swiper:e,extendParams:i,on:n,emit:r}=t;const o=[],a=s(),l=function(t,e){void 0===e&&(e={});const i=new(a.MutationObserver||a.WebkitMutationObserver)((t=>{if(1===t.length)return void r("observerUpdate",t[0]);const e=function(){r("observerUpdate",t[0])};a.requestAnimationFrame?a.requestAnimationFrame(e):a.setTimeout(e,0)}));i.observe(t,{attributes:void 0===e.attributes||e.attributes,childList:void 0===e.childList||e.childList,characterData:void 0===e.characterData||e.characterData}),o.push(i)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",(()=>{if(e.params.observer){if(e.params.observeParents){const t=e.$el.parents();for(let e=0;e<t.length;e+=1)l(t[e])}l(e.$el[0],{childList:e.params.observeSlideChildren}),l(e.$wrapperEl[0],{attributes:!1})}})),n("destroy",(()=>{o.forEach((t=>{t.disconnect()})),o.splice(0,o.length)}))}]);const st=[function(t){let e,{swiper:i,extendParams:n,on:r,emit:s}=t;function o(t,e){const n=i.params.virtual;if(n.cache&&i.virtual.cache[e])return i.virtual.cache[e];const r=n.renderSlide?$(n.renderSlide.call(i,t,e)):$(`<div class="${i.params.slideClass}" data-swiper-slide-index="${e}">${t}</div>`);return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",e),n.cache&&(i.virtual.cache[e]=r),r}function a(t){const{slidesPerView:e,slidesPerGroup:n,centeredSlides:r}=i.params,{addSlidesBefore:a,addSlidesAfter:l}=i.params.virtual,{from:h,to:c,slides:d,slidesGrid:p,offset:u}=i.virtual;i.params.cssMode||i.updateActiveIndex();const f=i.activeIndex||0;let m,g,v;m=i.rtlTranslate?"right":i.isHorizontal()?"left":"top",r?(g=Math.floor(e/2)+n+l,v=Math.floor(e/2)+n+a):(g=e+(n-1)+l,v=n+a);const y=Math.max((f||0)-v,0),b=Math.min((f||0)+g,d.length-1),_=(i.slidesGrid[y]||0)-(i.slidesGrid[0]||0);function w(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),i.lazy&&i.params.lazy.enabled&&i.lazy.load(),s("virtualUpdate")}if(Object.assign(i.virtual,{from:y,to:b,offset:_,slidesGrid:i.slidesGrid}),h===y&&c===b&&!t)return i.slidesGrid!==p&&_!==u&&i.slides.css(m,`${_}px`),i.updateProgress(),void s("virtualUpdate");if(i.params.virtual.renderExternal)return i.params.virtual.renderExternal.call(i,{offset:_,from:y,to:b,slides:function(){const t=[];for(let e=y;e<=b;
96e+=1)t.push(d[e]);return t}()}),void(i.params.virtual.renderExternalUpdate?w():s("virtualUpdate"));const x=[],S=[];if(t)i.$wrapperEl.find(`.${i.params.slideClass}`).remove();else for(let t=h;t<=c;t+=1)(t<y||t>b)&&i.$wrapperEl.find(`.${i.params.slideClass}[data-swiper-slide-index="${t}"]`).remove();for(let e=0;e<d.length;e+=1)e>=y&&e<=b&&(void 0===c||t?S.push(e):(e>c&&S.push(e),e<h&&x.push(e)));S.forEach((t=>{i.$wrapperEl.append(o(d[t],t))})),x.sort(((t,e)=>e-t)).forEach((t=>{i.$wrapperEl.prepend(o(d[t],t))})),i.$wrapperEl.children(".swiper-slide").css(m,`${_}px`),w()}n({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}}),i.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]},r("beforeInit",(()=>{i.params.virtual.enabled&&(i.virtual.slides=i.params.virtual.slides,i.classNames.push(`${i.params.containerModifierClass}virtual`),i.params.watchSlidesProgress=!0,i.originalParams.watchSlidesProgress=!0,i.params.initialSlide||a())})),r("setTranslate",(()=>{i.params.virtual.enabled&&(i.params.cssMode&&!i._immediateVirtual?(clearTimeout(e),e=setTimeout((()=>{a()}),100)):a())})),r("init update resize",(()=>{i.params.virtual.enabled&&i.params.cssMode&&g(i.wrapperEl,"--swiper-virtual-size",`${i.virtualSize}px`)})),Object.assign(i.virtual,{appendSlide:function(t){if("object"==typeof t&&"length"in t)for(let e=0;e<t.length;e+=1)t[e]&&i.virtual.slides.push(t[e]);else i.virtual.slides.push(t);a(!0)},prependSlide:function(t){const e=i.activeIndex;let n=e+1,r=1;if(Array.isArray(t)){for(let e=0;e<t.length;e+=1)t[e]&&i.virtual.slides.unshift(t[e]);n=e+t.length,r=t.length}else i.virtual.slides.unshift(t);if(i.params.virtual.cache){const t=i.virtual.cache,e={};Object.keys(t).forEach((i=>{const n=t[i],s=n.attr("data-swiper-slide-index");s&&n.attr("data-swiper-slide-index",parseInt(s,10)+r),e[parseInt(i,10)+r]=n})),i.virtual.cache=e}a(!0),i.slideTo(n,0)},removeSlide:function(t){if(null==t)return;let e=i.activeIndex;if(Array.isArray(t))for(let n=t.length-1;n>=0;n-=1)i.virtual.slides.splice(t[n],1),i.params.virtual.cache&&delete i.virtual.cache[t[n]],t[n]<e&&(e-=1),e=Math.max(e,0);else i.virtual.slides.splice(t,1),i.params.virtual.cache&&delete i.virtual.cache[t],t<e&&(e-=1),e=Math.max(e,0);a(!0),i.slideTo(e,0)},removeAllSlides:function(){i.virtual.slides=[],i.params.virtual.cache&&(i.virtual.cache={}),a(!0),i.slideTo(0,0)},update:a})},function(t){let{swiper:e,extendParams:i,on:r,emit:o}=t;const a=n(),l=s();function h(t){if(!e.enabled)return;const{rtlTranslate:i}=e;let n=t;n.originalEvent&&(n=n.originalEvent);const r=n.keyCode||n.charCode,s=e.params.keyboard.pageUpDown,h=s&&33===r,c=s&&34===r,d=37===r,p=39===r,u=38===r,f=40===r;if(!e.allowSlideNext&&(e.isHorizontal()&&p||e.isVertical()&&f||c))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&d||e.isVertical()&&u||h))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey||a.activeElement&&a.activeElement.nodeName&&("input"===a.activeElement.nodeName.toLowerCase()||"textarea"===a.activeElement.nodeName.toLowerCase()))){if(e.params.keyboard.onlyInViewport&&(h||c||d||p||u||f)){let t=!1;if(e.$el.parents(`.${e.params.slideClass}`).length>0&&0===e.$el.parents(`.${e.params.slideActiveClass}`).length)return;const n=e.$el,r=n[0].clientWidth,s=n[0].clientHeight,o=l.innerWidth,a=l.innerHeight,h=e.$el.offset();i&&(h.left-=e.$el[0].scrollLeft);const c=[[h.left,h.top],[h.left+r,h.top],[h.left,h.top+s],[h.left+r,h.top+s]];for(let e=0;e<c.length;e+=1){const i=c[e];if(i[0]>=0&&i[0]<=o&&i[1]>=0&&i[1]<=a){if(0===i[0]&&0===i[1])continue;t=!0}}if(!t)return}e.isHorizontal()?((h||c||d||p)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),((c||p)&&!i||(h||d)&&i)&&e.slideNext(),((h||d)&&!i||(c||p)&&i)&&e.slidePrev()):((h||c||u||f)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),(c||f)&&e.slideNext(),(h||u)&&e.slidePrev()),o("keyPress",r)}}function c(){e.keyboard.enabled||($(a).on("keydown",h),e.keyboard.enabled=!0)}function d(){e.keyboard.enabled&&($(a).off("keydown",h),e.keyboard.enabled=!1)}e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),r("init",(()=>{e.params.keyboard.enabled&&c()})),r("destroy",(()=>{e.keyboard.enabled&&d()})),Object.assign(e.keyboard,{enable:c,disable:d})},function(t){let{swiper:e,extendParams:i,on:n,emit:r}=t;const o=s();let a;i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),e.mousewheel={enabled:!1};let l,h=d();const p=[];function u(){e.enabled&&(e.mouseEntered=!0)}function f(){e.enabled&&(e.mouseEntered=!1)}function m(t){return!(e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta)&&(!(e.params.mousewheel.thresholdTime&&d()-h<e.params.mousewheel.thresholdTime)&&(t.delta>=6&&d()-h<60||(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),r("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),r("scroll",t.raw)),h=(new o.Date).getTime(),!1)))}function g(t){let i=t,n=!0;if(!e.enabled)return;const s=e.params.mousewheel;e.params.cssMode&&i.preventDefault();let o=e.$el;if("container"!==e.params.mousewheel.eventsTarget&&(o=$(e.params.mousewheel.eventsTarget)),!e.mouseEntered&&!o[0].contains(i.target)&&!s.releaseOnEdges)return!0;
96i.originalEvent&&(i=i.originalEvent);let h=0;const u=e.rtlTranslate?-1:1,f=function(t){let e=0,i=0,n=0,r=0;return"detail"in t&&(i=t.detail),"wheelDelta"in t&&(i=-t.wheelDelta/120),"wheelDeltaY"in t&&(i=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=i,i=0),n=10*e,r=10*i,"deltaY"in t&&(r=t.deltaY),"deltaX"in t&&(n=t.deltaX),t.shiftKey&&!n&&(n=r,r=0),(n||r)&&t.deltaMode&&(1===t.deltaMode?(n*=40,r*=40):(n*=800,r*=800)),n&&!e&&(e=n<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:e,spinY:i,pixelX:n,pixelY:r}}(i);if(s.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(f.pixelX)>Math.abs(f.pixelY)))return!0;h=-f.pixelX*u}else{if(!(Math.abs(f.pixelY)>Math.abs(f.pixelX)))return!0;h=-f.pixelY}else h=Math.abs(f.pixelX)>Math.abs(f.pixelY)?-f.pixelX*u:-f.pixelY;if(0===h)return!0;s.invert&&(h=-h);let g=e.getTranslate()+h*s.sensitivity;if(g>=e.minTranslate()&&(g=e.minTranslate()),g<=e.maxTranslate()&&(g=e.maxTranslate()),n=!!e.params.loop||!(g===e.minTranslate()||g===e.maxTranslate()),n&&e.params.nested&&i.stopPropagation(),e.params.freeMode&&e.params.freeMode.enabled){const t={time:d(),delta:Math.abs(h),direction:Math.sign(h)},n=l&&t.time<l.time+500&&t.delta<=l.delta&&t.direction===l.direction;if(!n){l=void 0,e.params.loop&&e.loopFix();let o=e.getTranslate()+h*s.sensitivity;const d=e.isBeginning,u=e.isEnd;if(o>=e.minTranslate()&&(o=e.minTranslate()),o<=e.maxTranslate()&&(o=e.maxTranslate()),e.setTransition(0),e.setTranslate(o),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!d&&e.isBeginning||!u&&e.isEnd)&&e.updateSlidesClasses(),e.params.freeMode.sticky){clearTimeout(a),a=void 0,p.length>=15&&p.shift();const i=p.length?p[p.length-1]:void 0,n=p[0];if(p.push(t),i&&(t.delta>i.delta||t.direction!==i.direction))p.splice(0);else if(p.length>=15&&t.time-n.time<500&&n.delta-t.delta>=1&&t.delta<=6){const i=h>0?.8:.2;l=t,p.splice(0),a=c((()=>{e.slideToClosest(e.params.speed,!0,void 0,i)}),0)}a||(a=c((()=>{l=t,p.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)}),500))}if(n||r("scroll",i),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),o===e.minTranslate()||o===e.maxTranslate())return!0}}else{const i={time:d(),delta:Math.abs(h),direction:Math.sign(h),raw:t};p.length>=2&&p.shift();const n=p.length?p[p.length-1]:void 0;if(p.push(i),n?(i.direction!==n.direction||i.delta>n.delta||i.time>n.time+150)&&m(i):m(i),function(t){const i=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&i.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&i.releaseOnEdges)return!0;return!1}(i))return!0}return i.preventDefault?i.preventDefault():i.returnValue=!1,!1}function v(t){let i=e.$el;"container"!==e.params.mousewheel.eventsTarget&&(i=$(e.params.mousewheel.eventsTarget)),i[t]("mouseenter",u),i[t]("mouseleave",f),i[t]("wheel",g)}function y(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",g),!0):!e.mousewheel.enabled&&(v("on"),e.mousewheel.enabled=!0,!0)}function b(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,g),!0):!!e.mousewheel.enabled&&(v("off"),e.mousewheel.enabled=!1,!0)}n("init",(()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&b(),e.params.mousewheel.enabled&&y()})),n("destroy",(()=>{e.params.cssMode&&y(),e.mousewheel.enabled&&b()})),Object.assign(e.mousewheel,{enable:y,disable:b})},function(t){let{swiper:e,extendParams:i,on:n,emit:r}=t;function s(t){let i;return t&&(i=$(t),e.params.uniqueNavElements&&"string"==typeof t&&i.length>1&&1===e.$el.find(t).length&&(i=e.$el.find(t))),i}function o(t,i){const n=e.params.navigation;t&&t.length>0&&(t[i?"addClass":"removeClass"](n.disabledClass),t[0]&&"BUTTON"===t[0].tagName&&(t[0].disabled=i),e.params.watchOverflow&&e.enabled&&t[e.isLocked?"addClass":"removeClass"](n.lockClass))}function a(){if(e.params.loop)return;const{$nextEl:t,$prevEl:i}=e.navigation;o(i,e.isBeginning&&!e.params.rewind),o(t,e.isEnd&&!e.params.rewind)}function l(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&e.slidePrev()}function h(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&e.slideNext()}function c(){const t=e.params.navigation;if(e.params.navigation=Y(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;const i=s(t.nextEl),n=s(t.prevEl);i&&i.length>0&&i.on("click",h),n&&n.length>0&&n.on("click",l),Object.assign(e.navigation,{$nextEl:i,nextEl:i&&i[0],$prevEl:n,prevEl:n&&n[0]}),e.enabled||(i&&i.addClass(t.lockClass),n&&n.addClass(t.lockClass))}function d(){const{$nextEl:t,$prevEl:i}=e.navigation;t&&t.length&&(t.off("click",h),t.removeClass(e.params.navigation.disabledClass)),i&&i.length&&(i.off("
96click",l),i.removeClass(e.params.navigation.disabledClass))}i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},n("init",(()=>{!1===e.params.navigation.enabled?p():(c(),a())})),n("toEdge fromEdge lock unlock",(()=>{a()})),n("destroy",(()=>{d()})),n("enable disable",(()=>{const{$nextEl:t,$prevEl:i}=e.navigation;t&&t[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),i&&i[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)})),n("click",((t,i)=>{const{$nextEl:n,$prevEl:s}=e.navigation,o=i.target;if(e.params.navigation.hideOnClick&&!$(o).is(s)&&!$(o).is(n)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;let t;n?t=n.hasClass(e.params.navigation.hiddenClass):s&&(t=s.hasClass(e.params.navigation.hiddenClass)),r(!0===t?"navigationShow":"navigationHide"),n&&n.toggleClass(e.params.navigation.hiddenClass),s&&s.toggleClass(e.params.navigation.hiddenClass)}}));const p=()=>{e.$el.addClass(e.params.navigation.navigationDisabledClass),d()};Object.assign(e.navigation,{enable:()=>{e.$el.removeClass(e.params.navigation.navigationDisabledClass),c(),a()},disable:p,update:a,init:c,destroy:d})},function(t){let{swiper:e,extendParams:i,on:n,emit:r}=t;const s="swiper-pagination";let o;i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,$el:null,bullets:[]};let a=0;function l(){return!e.params.pagination.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length}function h(t,i){const{bulletActiveClass:n}=e.params.pagination;t[i]().addClass(`${n}-${i}`)[i]().addClass(`${n}-${i}-${i}`)}function c(){const t=e.rtl,i=e.params.pagination;if(l())return;const n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,s=e.pagination.$el;let c;const d=e.params.loop?Math.ceil((n-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(c=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),c>n-1-2*e.loopedSlides&&(c-=n-2*e.loopedSlides),c>d-1&&(c-=d),c<0&&"bullets"!==e.params.paginationType&&(c=d+c)):c=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===i.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const n=e.pagination.bullets;let r,l,d;if(i.dynamicBullets&&(o=n.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),s.css(e.isHorizontal()?"width":"height",o*(i.dynamicMainBullets+4)+"px"),i.dynamicMainBullets>1&&void 0!==e.previousIndex&&(a+=c-(e.previousIndex-e.loopedSlides||0),a>i.dynamicMainBullets-1?a=i.dynamicMainBullets-1:a<0&&(a=0)),r=Math.max(c-a,0),l=r+(Math.min(n.length,i.dynamicMainBullets)-1),d=(l+r)/2),n.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((t=>`${i.bulletActiveClass}${t}`)).join(" ")),s.length>1)n.each((t=>{const e=$(t),n=e.index();n===c&&e.addClass(i.bulletActiveClass),i.dynamicBullets&&(n>=r&&n<=l&&e.addClass(`${i.bulletActiveClass}-main`),n===r&&h(e,"prev"),n===l&&h(e,"next"))}));else{const t=n.eq(c),s=t.index();if(t.addClass(i.bulletActiveClass),i.dynamicBullets){const t=n.eq(r),o=n.eq(l);for(let t=r;t<=l;t+=1)n.eq(t).addClass(`${i.bulletActiveClass}-main`);if(e.params.loop)if(s>=n.length){for(let t=i.dynamicMainBullets;t>=0;t-=1)n.eq(n.length-t).addClass(`${i.bulletActiveClass}-main`);n.eq(n.length-i.dynamicMainBullets-1).addClass(`${i.bulletActiveClass}-prev`)}else h(t,"prev"),h(o,"next");else h(t,"prev"),h(o,"next")}}if(i.dynamicBullets){const r=Math.min(n.length,i.dynamicMainBullets+4),s=(o*r-o)/2-d*o,a=t?"right":"left";n.css(e.isHorizontal()?a:"top",`${s}px`)}}
96if("fraction"===i.type&&(s.find(U(i.currentClass)).text(i.formatFractionCurrent(c+1)),s.find(U(i.totalClass)).text(i.formatFractionTotal(d))),"progressbar"===i.type){let t;t=i.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const n=(c+1)/d;let r=1,o=1;"horizontal"===t?r=n:o=n,s.find(U(i.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${r}) scaleY(${o})`).transition(e.params.speed)}"custom"===i.type&&i.renderCustom?(s.html(i.renderCustom(e,c+1,d)),r("paginationRender",s[0])):r("paginationUpdate",s[0]),e.params.watchOverflow&&e.enabled&&s[e.isLocked?"addClass":"removeClass"](i.lockClass)}function d(){const t=e.params.pagination;if(l())return;const i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,n=e.pagination.$el;let s="";if("bullets"===t.type){let r=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&!e.params.loop&&r>i&&(r=i);for(let i=0;i<r;i+=1)t.renderBullet?s+=t.renderBullet.call(e,i,t.bulletClass):s+=`<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`;n.html(s),e.pagination.bullets=n.find(U(t.bulletClass))}"fraction"===t.type&&(s=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`,n.html(s)),"progressbar"===t.type&&(s=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`,n.html(s)),"custom"!==t.type&&r("paginationRender",e.pagination.$el[0])}function p(){e.params.pagination=Y(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let i=$(t.el);0!==i.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&i.length>1&&(i=e.$el.find(t.el),i.length>1&&(i=i.filter((t=>$(t).parents(".swiper")[0]===e.el)))),"bullets"===t.type&&t.clickable&&i.addClass(t.clickableClass),i.addClass(t.modifierClass+t.type),i.addClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(i.addClass(`${t.modifierClass}${t.type}-dynamic`),a=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&i.addClass(t.progressbarOppositeClass),t.clickable&&i.on("click",U(t.bulletClass),(function(t){t.preventDefault();let i=$(this).index()*e.params.slidesPerGroup;e.params.loop&&(i+=e.loopedSlides),e.slideTo(i)})),Object.assign(e.pagination,{$el:i,el:i[0]}),e.enabled||i.addClass(t.lockClass))}function u(){const t=e.params.pagination;if(l())return;const i=e.pagination.$el;i.removeClass(t.hiddenClass),i.removeClass(t.modifierClass+t.type),i.removeClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),e.pagination.bullets&&e.pagination.bullets.removeClass&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&i.off("click",U(t.bulletClass))}n("init",(()=>{!1===e.params.pagination.enabled?f():(p(),d(),c())})),n("activeIndexChange",(()=>{(e.params.loop||void 0===e.snapIndex)&&c()})),n("snapIndexChange",(()=>{e.params.loop||c()})),n("slidesLengthChange",(()=>{e.params.loop&&(d(),c())})),n("snapGridLengthChange",(()=>{e.params.loop||(d(),c())})),n("destroy",(()=>{u()})),n("enable disable",(()=>{const{$el:t}=e.pagination;t&&t[e.enabled?"removeClass":"addClass"](e.params.pagination.lockClass)})),n("lock unlock",(()=>{c()})),n("click",((t,i)=>{const n=i.target,{$el:s}=e.pagination;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&s.length>0&&!$(n).hasClass(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&n===e.navigation.nextEl||e.navigation.prevEl&&n===e.navigation.prevEl))return;const t=s.hasClass(e.params.pagination.hiddenClass);r(!0===t?"paginationShow":"paginationHide"),s.toggleClass(e.params.pagination.hiddenClass)}}));const f=()=>{e.$el.addClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.addClass(e.params.pagination.paginationDisabledClass),u()};Object.assign(e.pagination,{enable:()=>{e.$el.removeClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.removeClass(e.params.pagination.paginationDisabledClass),p(),d(),c()},disable:f,render:d,update:c,init:p,destroy:u})},function(t){let{swiper:e,extendParams:i,on:r,emit:s}=t;const o=n();let a,l,h,d,p=!1,u=null,f=null;function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtlTranslate:i,progress:n}=e,{$dragEl:r,$el:s}=t,o=e.params.scrollbar;let a=l,c=(h-l)*n;i?(c=-c,c>0?(a=l-c,c=0):-c+l>h&&(a=h+c)):c<0?(a=l+c,c=0):c+l>h&&(a=h-c),e.isHorizontal()?(r.transform(`translate3d(${c}
96px, 0, 0)`),r[0].style.width=`${a}px`):(r.transform(`translate3d(0px, ${c}px, 0)`),r[0].style.height=`${a}px`),o.hide&&(clearTimeout(u),s[0].style.opacity=1,u=setTimeout((()=>{s[0].style.opacity=0,s.transition(400)}),1e3))}function g(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t}=e,{$dragEl:i,$el:n}=t;i[0].style.width="",i[0].style.height="",h=e.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,d=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),l="auto"===e.params.scrollbar.dragSize?h*d:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?i[0].style.width=`${l}px`:i[0].style.height=`${l}px`,n[0].style.display=d>=1?"none":"",e.params.scrollbar.hide&&(n[0].style.opacity=0),e.params.watchOverflow&&e.enabled&&t.$el[e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}function v(t){return e.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientX:t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientY:t.clientY}function y(t){const{scrollbar:i,rtlTranslate:n}=e,{$el:r}=i;let s;s=(v(t)-r.offset()[e.isHorizontal()?"left":"top"]-(null!==a?a:l/2))/(h-l),s=Math.max(Math.min(s,1),0),n&&(s=1-s);const o=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*s;e.updateProgress(o),e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}function b(t){const i=e.params.scrollbar,{scrollbar:n,$wrapperEl:r}=e,{$el:o,$dragEl:l}=n;p=!0,a=t.target===l[0]||t.target===l?v(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),r.transition(100),l.transition(100),y(t),clearTimeout(f),o.transition(0),i.hide&&o.css("opacity",1),e.params.cssMode&&e.$wrapperEl.css("scroll-snap-type","none"),s("scrollbarDragStart",t)}function _(t){const{scrollbar:i,$wrapperEl:n}=e,{$el:r,$dragEl:o}=i;p&&(t.preventDefault?t.preventDefault():t.returnValue=!1,y(t),n.transition(0),r.transition(0),o.transition(0),s("scrollbarDragMove",t))}function w(t){const i=e.params.scrollbar,{scrollbar:n,$wrapperEl:r}=e,{$el:o}=n;p&&(p=!1,e.params.cssMode&&(e.$wrapperEl.css("scroll-snap-type",""),r.transition("")),i.hide&&(clearTimeout(f),f=c((()=>{o.css("opacity",0),o.transition(400)}),1e3)),s("scrollbarDragEnd",t),i.snapOnRelease&&e.slideToClosest())}function x(t){const{scrollbar:i,touchEventsTouch:n,touchEventsDesktop:r,params:s,support:a}=e,l=i.$el;if(!l)return;const h=l[0],c=!(!a.passiveListener||!s.passiveListeners)&&{passive:!1,capture:!1},d=!(!a.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};if(!h)return;const p="on"===t?"addEventListener":"removeEventListener";a.touch?(h[p](n.start,b,c),h[p](n.move,_,c),h[p](n.end,w,d)):(h[p](r.
96start,b,c),o[p](r.move,_,c),o[p](r.end,w,d))}function S(){const{scrollbar:t,$el:i}=e;e.params.scrollbar=Y(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const n=e.params.scrollbar;if(!n.el)return;let r=$(n.el);e.params.uniqueNavElements&&"string"==typeof n.el&&r.length>1&&1===i.find(n.el).length&&(r=i.find(n.el));let s=r.find(`.${e.params.scrollbar.dragClass}`);0===s.length&&(s=$(`<div class="${e.params.scrollbar.dragClass}"></div>`),r.append(s)),Object.assign(t,{$el:r,el:r[0],$dragEl:s,dragEl:s[0]}),n.draggable&&e.params.scrollbar.el&&e.scrollbar.el&&x("on"),r&&r[e.enabled?"removeClass":"addClass"](e.params.scrollbar.lockClass)}function E(){e.params.scrollbar.el&&e.scrollbar.el&&x("off")}i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled"}}),e.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null},r("init",(()=>{!1===e.params.scrollbar.enabled?C():(S(),g(),m())})),r("update resize observerUpdate lock unlock",(()=>{g()})),r("setTranslate",(()=>{m()})),r("setTransition",((t,i)=>{!function(t){e.params.scrollbar.el&&e.scrollbar.el&&e.scrollbar.$dragEl.transition(t)}(i)})),r("enable disable",(()=>{const{$el:t}=e.scrollbar;t&&t[e.enabled?"removeClass":"addClass"](e.params.scrollbar.lockClass)})),r("destroy",(()=>{E()}));const C=()=>{e.$el.addClass(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.$el&&e.scrollbar.$el.addClass(e.params.scrollbar.scrollbarDisabledClass),E()};Object.assign(e.scrollbar,{enable:()=>{e.$el.removeClass(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.$el&&e.scrollbar.$el.removeClass(e.params.scrollbar.scrollbarDisabledClass),S(),g(),m()},disable:C,updateSize:g,setTranslate:m,init:S,destroy:E})},function(t){let{swiper:e,extendParams:i,on:n}=t;i({parallax:{enabled:!1}});const r=(t,i)=>{const{rtl:n}=e,r=$(t),s=n?-1:1,o=r.attr("data-swiper-parallax")||"0";let a=r.attr("data-swiper-parallax-x"),l=r.attr("data-swiper-parallax-y");const h=r.attr("data-swiper-parallax-scale"),c=r.attr("data-swiper-parallax-opacity");if(a||l?(a=a||"0",l=l||"0"):e.isHorizontal()?(a=o,l="0"):(l=o,a="0"),a=a.indexOf("%")>=0?parseInt(a,10)*i*s+"%":a*i*s+"px",l=l.indexOf("%")>=0?parseInt(l,10)*i+"%":l*i+"px",null!=c){const t=c-(c-1)*(1-Math.abs(i));r[0].style.opacity=t}if(null==h)r.transform(`translate3d(${a}, ${l}, 0px)`);else{const t=h-(h-1)*(1-Math.abs(i));r.transform(`translate3d(${a}, ${l}, 0px) scale(${t})`)}},s=()=>{const{$el:t,slides:i,progress:n,snapGrid:s}=e;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t=>{ 97r(t,n)})),i.each(((t,i)=>{let o=t.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(o+=Math.ceil(i/2)-n*(s.length-1)),o=Math.min(Math.max(o,-1),1),$(t).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t=>{r(t,o)}))}))};n("beforeInit",(()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)})),n("init",(()=>{e.params.parallax.enabled&&s()})),n("setTranslate",(()=>{e.params.parallax.enabled&&s()})),n("setTransition",((t,i)=>{e.params.parallax.enabled&&function(t){void 0===t&&(t=e.params.speed);const{$el:i}=e;i.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e=>{const i=$(e);let n=parseInt(i.attr("data-swiper-parallax-duration"),10)||t;0===t&&(n=0),i.transition(n)}))}(i)}))},function(t){let{swiper:e,extendParams:i,on:n,emit:r}=t;const o=s();i({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let a,l,h,c=1,d=!1;const u={$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},f={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},m={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let g=1;function v(t){if(t.targetTouches.length<2)return 1;const e=t.targetTouches[0].pageX,i=t.targetTouches[0].pageY,n=t.targetTouches[1].pageX,r=t.targetTouches[1].pageY;return Math.sqrt((n-e)**2+(r-i)**2)}function y(t){const i=e.support,n=e.params.zoom;if(l=!1,h=!1,!i.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;l=!0,u.scaleStart=v(t)}u.$slideEl&&u.$slideEl.length||(u.$slideEl=$(t.target).closest(`.${e.params.slideClass}`),0===u.$slideEl.length&&(u.$slideEl=e.slides.eq(e.activeIndex)),u.$imageEl=u.$slideEl.find(`.${n.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),u.$imageWrapEl=u.$imageEl.parent(`.${n.containerClass}`),u.maxRatio=u.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,0!==u.$imageWrapEl.length)?(u.$imageEl&&u.$imageEl.transition(0),d=!0):u.$imageEl=void 0}function b(t){const i=e.support,n=e.params.zoom,r=e.zoom;if(!i.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;h=!0,u.scaleMove=v(t)}u.$imageEl&&0!==u.$imageEl.length?(i.gestures?r.scale=t.scale*c:r.scale=u.scaleMove/u.scaleStart*c,r.scale>u.maxRatio&&(r.scale=u.maxRatio-1+(r.scale-u.maxRatio+1)**.5),r.scale<n.minRatio&&(r.scale=n.minRatio+1-(n.minRatio-r.scale+1)**.5),u.$imageEl.transform(`translate3d(0,
970,0) scale(${r.scale})`)):"gesturechange"===t.type&&y(t)}function _(t){const i=e.device,n=e.support,r=e.params.zoom,s=e.zoom;if(!n.gestures){if(!l||!h)return;if("touchend"!==t.type||"touchend"===t.type&&t.changedTouches.length<2&&!i.android)return;l=!1,h=!1}u.$imageEl&&0!==u.$imageEl.length&&(s.scale=Math.max(Math.min(s.scale,u.maxRatio),r.minRatio),u.$imageEl.transition(e.params.speed).transform(`translate3d(0,0,0) scale(${s.scale})`),c=s.scale,d=!1,1===s.scale&&(u.$slideEl=void 0))}function w(t){const i=e.zoom;if(!u.$imageEl||0===u.$imageEl.length)return;if(e.allowClick=!1,!f.isTouched||!u.$slideEl)return;f.isMoved||(f.width=u.$imageEl[0].offsetWidth,f.height=u.$imageEl[0].offsetHeight,f.startX=p(u.$imageWrapEl[0],"x")||0,f.startY=p(u.$imageWrapEl[0],"y")||0,u.slideWidth=u.$slideEl[0].offsetWidth,u.slideHeight=u.$slideEl[0].offsetHeight,u.$imageWrapEl.transition(0));const n=f.width*i.scale,r=f.height*i.scale;if(!(n<u.slideWidth&&r<u.slideHeight)){if(f.minX=Math.min(u.slideWidth/2-n/2,0),f.maxX=-f.minX,f.minY=Math.min(u.slideHeight/2-r/2,0),f.maxY=-f.minY,f.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,f.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!f.isMoved&&!d){if(e.isHorizontal()&&(Math.floor(f.minX)===Math.floor(f.startX)&&f.touchesCurrent.x<f.touchesStart.x||Math.floor(f.maxX)===Math.floor(f.startX)&&f.touchesCurrent.x>f.touchesStart.x))return void(f.isTouched=!1);if(!e.isHorizontal()&&(Math.floor(f.minY)===Math.floor(f.startY)&&f.touchesCurrent.y<f.touchesStart.y||Math.floor(f.maxY)===Math.floor(f.startY)&&f.touchesCurrent.y>f.touchesStart.y))return void(f.isTouched=!1)}t.cancelable&&t.preventDefault(),t.stopPropagation(),f.isMoved=!0,f.currentX=f.touchesCurrent.x-f.touchesStart.x+f.startX,f.currentY=f.touchesCurrent.y-f.touchesStart.y+f.startY,f.currentX<f.minX&&(f.currentX=f.minX+1-(f.minX-f.currentX+1)**.8),f.currentX>f.maxX&&(f.currentX=f.maxX-1+(f.currentX-f.maxX+1)**.8),f.currentY<f.minY&&(f.currentY=f.minY+1-(f.minY-f.currentY+1)**.8),f.currentY>f.maxY&&(f.currentY=f.maxY-1+(f.currentY-f.maxY+1)**.8),m.prevPositionX||(m.prevPositionX=f.touchesCurrent.x),m.prevPositionY||(m.prevPositionY=f.touchesCurrent.y),m.prevTime||(m.prevTime=Date.now()),m.x=(f.touchesCurrent.x-m.prevPositionX)/(Date.now()-m.prevTime)/2,m.y=(f.touchesCurrent.y-m.prevPositionY)/(Date.now()-m.prevTime)/2,Math.abs(f.touchesCurrent.x-m.prevPositionX)<2&&(m.x=0),Math.abs(f.touchesCurrent.y-m.prevPositionY)<2&&(m.y=0),m.prevPositionX=f.touchesCurrent.x,m.prevPositionY=f.touchesCurrent.y,m.prevTime=Date.now(),u.$imageWrapEl.transform(`translate3d(${f.currentX}px, ${f.currentY}px,0)`)}}function x(){const t=e.zoom;u.$slideEl&&e.previousIndex!==e.activeIndex&&(u.$imageEl&&u.$imageEl.transform("translate3d(0,0,0) scale(1)"),u.$imageWrapEl&&u.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,c=1,u.$slideEl=void 0,u.$imageEl=void 0,u.$imageWrapEl=void 0)}function S(t){const i=e.zoom,n=e.params.zoom;if(u.$slideEl||(t&&t.target&&(u.$slideEl=$(t.target).closest(`.${e.params.slideClass}`)),u.$slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?u.$slideEl=e.$wrapperEl.children(`.${e.params.slideActiveClass}`):u.$slideEl=e.slides.eq(e.activeIndex)),u.$imageEl=u.$slideEl.find(`.${n.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),u.$imageWrapEl=u.$imageEl.parent(`.${n.containerClass}`)),!u.$imageEl||0===u.$imageEl.length||!u.$imageWrapEl||0===u.$imageWrapEl.length)return;let r,s,a,l,h,d,p,m,g,v,y,b,_,w,x,S,E,C;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),u.$slideEl.addClass(`${n.zoomedSlideClass}`),void 0===f.touchesStart.x&&t?(r="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,s="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(r=f.touchesStart.x,s=f.touchesStart.y),i.scale=u.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,c=u.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,t?(E=u.$slideEl[0].offsetWidth,C=u.$slideEl[0].offsetHeight,a=u.$slideEl.offset().left+o.scrollX,l=u.$slideEl.offset().top+o.scrollY,h=a+E/2-r,d=l+C/2-s,g=u.$imageEl[0].offsetWidth,v=u.$imageEl[0].offsetHeight,y=g*i.scale,b=v*i.scale,_=Math.min(E/2-y/2,0),w=Math.min(C/2-b/2,0),x=-_,S=-w,p=h*i.scale,m=d*i.scale,p<_&&(p=_),p>x&&(p=x),m<w&&(m=w),m>S&&(m=S)):(p=0,m=0),u.$imageWrapEl.transition(300).transform(`translate3d(${p}px, ${m}
97px,0)`),u.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${i.scale})`)}function E(){const t=e.zoom,i=e.params.zoom;u.$slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?u.$slideEl=e.$wrapperEl.children(`.${e.params.slideActiveClass}`):u.$slideEl=e.slides.eq(e.activeIndex),u.$imageEl=u.$slideEl.find(`.${i.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),u.$imageWrapEl=u.$imageEl.parent(`.${i.containerClass}`)),u.$imageEl&&0!==u.$imageEl.length&&u.$imageWrapEl&&0!==u.$imageWrapEl.length&&(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),t.scale=1,c=1,u.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),u.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),u.$slideEl.removeClass(`${i.zoomedSlideClass}`),u.$slideEl=void 0)}function C(t){const i=e.zoom;i.scale&&1!==i.scale?E():S(t)}function T(){const t=e.support;return{passiveListener:!("touchstart"!==e.touchEvents.start||!t.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1},activeListenerWithCapture:!t.passiveListener||{passive:!1,capture:!0}}}function k(){return`.${e.params.slideClass}`}function P(t){const{passiveListener:i}=T(),n=k();e.$wrapperEl[t]("gesturestart",n,y,i),e.$wrapperEl[t]("gesturechange",n,b,i),e.$wrapperEl[t]("gestureend",n,_,i)}function A(){a||(a=!0,P("on"))}function M(){a&&(a=!1,P("off"))}function D(){const t=e.zoom;if(t.enabled)return;t.enabled=!0;const i=e.support,{passiveListener:n,activeListenerWithCapture:r}=T(),s=k();i.gestures?(e.$wrapperEl.on(e.touchEvents.start,A,n),e.$wrapperEl.on(e.touchEvents.end,M,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,s,y,n),e.$wrapperEl.on(e.touchEvents.move,s,b,r),e.$wrapperEl.on(e.touchEvents.end,s,_,n),e.touchEvents.cancel&&e.$wrapperEl.on(e.touchEvents.cancel,s,_,n)),e.$wrapperEl.on(e.touchEvents.move,`.${e.params.zoom.containerClass}`,w,r)}function I(){const t=e.zoom;if(!t.enabled)return;const i=e.support;t.enabled=!1;const{passiveListener:n,activeListenerWithCapture:r}=T(),s=k();i.gestures?(e.$wrapperEl.off(e.touchEvents.start,A,n),e.$wrapperEl.off(e.touchEvents.end,M,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,s,y,n),e.$wrapperEl.off(e.touchEvents.move,s,b,r),e.$wrapperEl.off(e.touchEvents.end,s,_,n),e.touchEvents.cancel&&e.$wrapperEl.off(e.touchEvents.cancel,s,_,n)),e.$wrapperEl.off(e.touchEvents.move,`.${e.params.zoom.containerClass}`,w,r)}Object.defineProperty(e.zoom,"scale",{get:()=>g,set(t){if(g!==t){const e=u.$imageEl?u.$imageEl[0]:void 0,i=u.$slideEl?u.$slideEl[0]:void 0;r("zoomChange",t,e,i)}g=t}}),n("init",(()=>{e.params.zoom.enabled&&D()})),n("destroy",(()=>{I()})),n("touchStart",((t,i)=>{e.zoom.enabled&&function(t){const i=e.device;u.$imageEl&&0!==u.$imageEl.length&&(f.isTouched||(i.android&&t.cancelable&&t.preventDefault(),f.isTouched=!0,f.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,f.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))}(i)})),n("touchEnd",((t,i)=>{e.zoom.enabled&&function(){const t=e.zoom;if(!u.$imageEl||0===u.$imageEl.length)return;if(!f.isTouched||!f.isMoved)return f.isTouched=!1,void(f.isMoved=!1);f.isTouched=!1,f.isMoved=!1;let i=300,n=300;const r=m.x*i,s=f.currentX+r,o=m.y*n,a=f.currentY+o;0!==m.x&&(i=Math.abs((s-f.currentX)/m.x)),0!==m.y&&(n=Math.abs((a-f.currentY)/m.y));const l=Math.max(i,n);f.currentX=s,f.currentY=a;const h=f.width*t.scale,c=f.height*t.scale;f.minX=Math.min(u.slideWidth/2-h/2,0),f.maxX=-f.minX,f.minY=Math.min(u.slideHeight/2-c/2,0),f.maxY=-f.minY,f.currentX=Math.max(Math.min(f.currentX,f.maxX),f.minX),f.currentY=Math.max(Math.min(f.currentY,f.maxY),f.minY),u.$imageWrapEl.transition(l).transform(`translate3d(${f.currentX}px, ${f.currentY}px,0)`)}()})),n("doubleTap",((t,i)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&C(i)})),n("transitionEnd",(()=>{e.zoom.enabled&&e.params.zoom.enabled&&x()})),n("slideChange",(()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&x()})),Object.assign(e.zoom,{enable:D,disable:I,in:S,out:E,toggle:C})},function(t){let{swiper:e,extendParams:i,on:n,emit:r}=t;i({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}),e.lazy={};let o=!1,a=!1;function l(t,i){void 0===i&&(i=!0);const n=e.params.lazy;if(void 0===t)return;if(0===e.slides.length)return;const s=e.virtual&&e.params.virtual.enabled?e.$wrapperEl.children(`.${e.params.slideClass}[data-swiper-slide-index="${t}"]`):e.slides.eq(t),o=s.find(`.${n.elementClass}:not(.${n.loadedClass}):not(.${n.loadingClass})`);!s.hasClass(n.elementClass)||s.hasClass(n.loadedClass)||s.hasClass(n.loadingClass)||o.push(s[0]),0!==o.length&&o.each((t=>{const o=$(t);o.addClass(n.loadingClass);const a=o.attr("data-background"),h=o.attr("data-src"),c=o.attr("data-srcset"),d=o.attr("data-sizes"),p=o.parent("picture");e.loadImage(o[0],h||a,c,d,!1,(()=>
97{if(null!=e&&e&&(!e||e.params)&&!e.destroyed){if(a?(o.css("background-image",`url("${a}")`),o.removeAttr("data-background")):(c&&(o.attr("srcset",c),o.removeAttr("data-srcset")),d&&(o.attr("sizes",d),o.removeAttr("data-sizes")),p.length&&p.children("source").each((t=>{const e=$(t);e.attr("data-srcset")&&(e.attr("srcset",e.attr("data-srcset")),e.removeAttr("data-srcset"))})),h&&(o.attr("src",h),o.removeAttr("data-src"))),o.addClass(n.loadedClass).removeClass(n.loadingClass),s.find(`.${n.preloaderClass}`).remove(),e.params.loop&&i){const t=s.attr("data-swiper-slide-index");if(s.hasClass(e.params.slideDuplicateClass)){l(e.$wrapperEl.children(`[data-swiper-slide-index="${t}"]:not(.${e.params.slideDuplicateClass})`).index(),!1)}else{l(e.$wrapperEl.children(`.${e.params.slideDuplicateClass}[data-swiper-slide-index="${t}"]`).index(),!1)}}r("lazyImageReady",s[0],o[0]),e.params.autoHeight&&e.updateAutoHeight()}})),r("lazyImageLoad",s[0],o[0])}))}function h(){const{$wrapperEl:t,params:i,slides:n,activeIndex:r}=e,s=e.virtual&&i.virtual.enabled,o=i.lazy;let h=i.slidesPerView;function c(e){if(s){if(t.children(`.${i.slideClass}[data-swiper-slide-index="${e}"]`).length)return!0}else if(n[e])return!0;return!1}function d(t){return s?$(t).attr("data-swiper-slide-index"):$(t).index()}if("auto"===h&&(h=0),a||(a=!0),e.params.watchSlidesProgress)t.children(`.${i.slideVisibleClass}`).each((t=>{l(s?$(t).attr("data-swiper-slide-index"):$(t).index())}));else if(h>1)for(let t=r;t<r+h;t+=1)c(t)&&l(t);else l(r);if(o.loadPrevNext)if(h>1||o.loadPrevNextAmount&&o.loadPrevNextAmount>1){const t=o.loadPrevNextAmount,e=Math.ceil(h),i=Math.min(r+e+Math.max(t,e),n.length),s=Math.max(r-Math.max(e,t),0);for(let t=r+e;t<i;t+=1)c(t)&&l(t);for(let t=s;t<r;t+=1)c(t)&&l(t)}else{const e=t.children(`.${i.slideNextClass}`);e.length>0&&l(d(e));const n=t.children(`.${i.slidePrevClass}`);n.length>0&&l(d(n))}}function c(){const t=s();if(!e||e.destroyed)return;const i=e.params.lazy.scrollingElement?$(e.params.lazy.scrollingElement):$(t),n=i[0]===t,r=n?t.innerWidth:i[0].offsetWidth,a=n?t.innerHeight:i[0].offsetHeight,l=e.$el.offset(),{rtlTranslate:d}=e;let p=!1;d&&(l.left-=e.$el[0].scrollLeft);const u=[[l.left,l.top],[l.left+e.width,l.top],[l.left,l.top+e.height],[l.left+e.width,l.top+e.height]];for(let t=0;t<u.length;t+=1){const e=u[t];if(e[0]>=0&&e[0]<=r&&e[1]>=0&&e[1]<=a){if(0===e[0]&&0===e[1])continue;p=!0}}const f=!("touchstart"!==e.touchEvents.start||!e.support.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};p?(h(),i.off("scroll",c,f)):o||(o=!0,i.on("scroll",c,f))}n("beforeInit",(()=>{e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)})),n("init",(()=>{e.params.lazy.enabled&&(e.params.lazy.checkInView?c():h())})),n("scroll",(()=>{e.params.freeMode&&e.params.freeMode.enabled&&!e.params.freeMode.sticky&&h()})),n("scrollbarDragMove resize _freeModeNoMomentumRelease",(()=>{e.params.lazy.enabled&&(e.params.lazy.checkInView?c():h())})),n("transitionStart",(()=>{e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!a)&&(e.params.lazy.checkInView?c():h())})),n("transitionEnd",(()=>{e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&(e.params.lazy.checkInView?c():h())})),n("slideChange",(()=>{const{lazy:t,cssMode:i,watchSlidesProgress:n,touchReleaseOnEdges:r,resistanceRatio:s}=e.params;t.enabled&&(i||n&&(r||0===s))&&h()})),n("destroy",(()=>{e.$el&&e.$el.find(`.${e.params.lazy.loadingClass}`).removeClass(e.params.lazy.loadingClass)})),Object.assign(e.lazy,{load:h,loadInSlide:l})},function(t){let{swiper:e,extendParams:i,on:n}=t;function r(t,e){const i=function(){let t,e,i;return(n,r)=>{for(e=-1,t=n.length;t-e>1;)i=t+e>>1,n[i]<=r?e=i:t=i;return t}}();let n,r;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(r=i(this.x,t),n=r-1,(t-this.x[n])*(this.y[r]-this.y[n])/(this.x[r]-this.x[n])+this.y[n]):0},this}function s(){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)}i({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0},n("beforeInit",(()=>{e.controller.control=e.params.controller.control})),n("update",(()=>{s()})),n("resize",(()=>{s()})),n("observerUpdate",(()=>{s()})),n("setTranslate",((t,i,n)=>{e.controller.control&&e.controller.setTranslate(i,n)})),n("setTransition",((t,i,n)=>{e.controller.control&&e.controller.setTransition(i,n)})),Object.assign(e.controller,{setTranslate:function(t,i){const n=e.controller.control;let s,o;const a=e.constructor;function l(t){const i=e.rtlTranslate?-e.translate:e.translate;"slide"===e.params.controller.by&&(!function(t){e.controller.spline||(e.controller.spline=e.params.loop?new r(e.slidesGrid,t.slidesGrid):new r(e.snapGrid,t.snapGrid))}(t),o=-e.controller.spline.interpolate(-i)),o&&"container"!==e.params.controller.by||(s=(t.maxTranslate()-t.minTranslate())/(e.maxTranslate()-e.minTranslate()),o=(i-e.minTranslate())*s+t.minTranslate()),e.params.controller.inverse&&(o=t.maxTranslate()-o),t.updateProgress(o),t.setTranslate(o,e),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(n))for(let t=0;t<n.length;t+=1)n[t]!==i&&n[t]instanceof a&&l(n[t]);else n instanceof a&&i!==n&&l(n)},setTransition:function(t,i){const n=e.constructor,r=e.controller.control;let s;function o(i){i.setTransition(t,e),0!==t&&(i.transitionStart(),i.params.autoHeight&&c((()=>{i.updateAutoHeight()})),i.$wrapperEl.transitionEnd((()=>{r&&(i.params.loop&&"slide"===e.params.controller.by&&i.loopFix(),i.transitionEnd())})))}if(Array.isArray(r))for(s=0;s<r.length;s+=1)r[s]!==i&&r[s]instanceof n&&o(r[s]);else r instanceof n&&i!==r&&o(r)}})},function(t){let{swiper:e,extendParams:i,on:n}=t;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}});let r=null;function s(t){const e=r;0!==e.length&&(e.html(""),e.html(t))}function o(t){t.attr("tabIndex","0")}function a(t){t.attr("tabIndex","-1")}function l(t,e){t.attr("role",e)}function h(t,e){t.attr("aria-roledescription",e)}function c(t,e){t.attr("aria-label",e)}function d(t){t.attr("aria-disabled",!0)}function p(t){t.attr("aria-disabled",!1)}function u(t){if(13!==t.keyCode&&32!==t.keyCode)return;const i=e.params.a11y,n=$(t.target);e.navigation&&e.navigation.$nextEl&&n.is(e.navigation.$nextEl)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?s(i.lastSlideMessage):s(i.nextSlideMessage)),e.navigation&&e.navigation.$prevEl&&n.is(e.navigation.$prevEl)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?s(i.firstSlideMessage):s(i.prevSlideMessage)),e.pagination&&n.is(U(e.params.pagination.bulletClass))&&n[0].click()}function f(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function m(){return f()&&e.params.pagination.clickable}const g=(t,e,i)=>
97{o(t),"BUTTON"!==t[0].tagName&&(l(t,"button"),t.on("keydown",u)),c(t,i),function(t,e){t.attr("aria-controls",e)}(t,e)},v=t=>{const i=t.target.closest(`.${e.params.slideClass}`);if(!i||!e.slides.includes(i))return;const n=e.slides.indexOf(i)===e.activeIndex,r=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(i);n||r||e.slideTo(e.slides.indexOf(i),0)},y=()=>{const t=e.params.a11y;t.itemRoleDescriptionMessage&&h($(e.slides),t.itemRoleDescriptionMessage),l($(e.slides),t.slideRole);const i=e.params.loop?e.slides.filter((t=>!t.classList.contains(e.params.slideDuplicateClass))).length:e.slides.length;e.slides.each(((n,r)=>{const s=$(n),o=e.params.loop?parseInt(s.attr("data-swiper-slide-index"),10):r;c(s,t.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,i))}))},b=()=>{const t=e.params.a11y;e.$el.append(r);const i=e.$el;t.containerRoleDescriptionMessage&&h(i,t.containerRoleDescriptionMessage),t.containerMessage&&c(i,t.containerMessage);const n=e.$wrapperEl,s=t.id||n.attr("id")||`swiper-wrapper-${o=16,void 0===o&&(o=16),"x".repeat(o).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var o;const a=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";var l;let d,p;l=s,n.attr("id",l),function(t,e){t.attr("aria-live",e)}(n,a),y(),e.navigation&&e.navigation.$nextEl&&(d=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(p=e.navigation.$prevEl),d&&d.length&&g(d,s,t.nextSlideMessage),p&&p.length&&g(p,s,t.prevSlideMessage),m()&&e.pagination.$el.on("keydown",U(e.params.pagination.bulletClass),u),e.$el.on("focus",v,!0)};n("beforeInit",(()=>{r=$(`<span class="${e.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)})),n("afterInit",(()=>{e.params.a11y.enabled&&b()})),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{e.params.a11y.enabled&&y()})),n("fromEdge toEdge afterInit lock unlock",(()=>{e.params.a11y.enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{$nextEl:t,$prevEl:i}=e.navigation;i&&i.length>0&&(e.isBeginning?(d(i),a(i)):(p(i),o(i))),t&&t.length>0&&(e.isEnd?(d(t),a(t)):(p(t),o(t)))}()})),n("paginationUpdate",(()=>{e.params.a11y.enabled&&function(){const t=e.params.a11y;f()&&e.pagination.bullets.each((i=>{const n=$(i);e.params.pagination.clickable&&(o(n),e.params.pagination.renderBullet||(l(n,"button"),c(n,t.paginationBulletMessage.replace(/\{\{index\}\}/,n.index()+1)))),n.is(`.${e.params.pagination.bulletActiveClass}`)?n.attr("aria-current","true"):n.removeAttr("aria-current")}))}()})),n("destroy",(()=>{e.params.a11y.enabled&&function(){let t,i;r&&r.length>0&&r.remove(),e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(i=e.navigation.$prevEl),t&&t.off("keydown",u),i&&i.off("keydown",u),m()&&e.pagination.$el.off("keydown",U(e.params.pagination.bulletClass),u),e.$el.off("focus",v,!0)}()}))},function(t){let{swiper:e,extendParams:i,on:n}=t;i({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let r=!1,o={};const a=t=>t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),l=t=>{const e=s();let i;i=t?new URL(t):e.location;const n=i.pathname.slice(1).split("/").filter((t=>""!==t)),r=n.length;return{key:n[r-2],value:n[r-1]}},h=(t,i)=>{const n=s();if(!r||!e.params.history.enabled)return;let o;o=e.params.url?new URL(e.params.url):n.location;const l=e.slides.eq(i);let h=a(l.attr("data-history"));if(e.params.history.root.length>0){let i=e.params.history.root;"/"===i[i.length-1]&&(i=i.slice(0,i.length-1)),h=`${i}/${t}/${h}`}else o.pathname.includes(t)||(h=`${t}/${h}`);e.params.history.keepQuery&&(h+=o.search);const c=n.history.state;c&&c.value===h||(e.params.history.replaceState?n.history.replaceState({value:h},null,h):n.history.pushState({value:h},null,h))},c=(t,i,n)=>{if(i)for(let r=0,s=e.slides.length;r<s;r+=1){const s=e.slides.eq(r);if(a(s.attr("data-history"))===i&&!s.hasClass(e.params.slideDuplicateClass)){const i=s.index();e.slideTo(i,t,n)}}else e.slideTo(0,t,n)},d=()=>{o=l(e.params.url),c(e.params.speed,o.value,!1)};n("init",(()=>{e.params.history.enabled&&(()=>{const t=s();
97if(e.params.history){if(!t.history||!t.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);r=!0,o=l(e.params.url),(o.key||o.value)&&(c(0,o.value,e.params.runCallbacksOnInit),e.params.history.replaceState||t.addEventListener("popstate",d))}})()})),n("destroy",(()=>{e.params.history.enabled&&(()=>{const t=s();e.params.history.replaceState||t.removeEventListener("popstate",d)})()})),n("transitionEnd _freeModeNoMomentumRelease",(()=>{r&&h(e.params.history.key,e.activeIndex)})),n("slideChange",(()=>{r&&e.params.cssMode&&h(e.params.history.key,e.activeIndex)}))},function(t){let{swiper:e,extendParams:i,emit:r,on:o}=t,a=!1;const l=n(),h=s();i({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}});const c=()=>{r("hashChange");const t=l.location.hash.replace("#","");if(t!==e.slides.eq(e.activeIndex).attr("data-hash")){const i=e.$wrapperEl.children(`.${e.params.slideClass}[data-hash="${t}"]`).index();if(void 0===i)return;e.slideTo(i)}},d=()=>{if(a&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&h.history&&h.history.replaceState)h.history.replaceState(null,null,`#${e.slides.eq(e.activeIndex).attr("data-hash")}`||""),r("hashSet");else{const t=e.slides.eq(e.activeIndex),i=t.attr("data-hash")||t.attr("data-history");l.location.hash=i||"",r("hashSet")}};o("init",(()=>{e.params.hashNavigation.enabled&&(()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;a=!0;const t=l.location.hash.replace("#","");if(t){const i=0;for(let n=0,r=e.slides.length;n<r;n+=1){const r=e.slides.eq(n);if((r.attr("data-hash")||r.attr("data-history"))===t&&!r.hasClass(e.params.slideDuplicateClass)){const t=r.index();e.slideTo(t,i,e.params.runCallbacksOnInit,!0)}}}e.params.hashNavigation.watchState&&$(h).on("hashchange",c)})()})),o("destroy",(()=>{e.params.hashNavigation.enabled&&e.params.hashNavigation.watchState&&$(h).off("hashchange",c)})),o("transitionEnd _freeModeNoMomentumRelease",(()=>{a&&d()})),o("slideChange",(()=>{a&&e.params.cssMode&&d()}))},function(t){let e,{swiper:i,extendParams:r,on:s,emit:o}=t;function a(){const t=i.slides.eq(i.activeIndex);let n=i.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||i.params.autoplay.delay),clearTimeout(e),e=c((()=>{let t;i.params.autoplay.reverseDirection?i.params.loop?(i.loopFix(),t=i.slidePrev(i.params.speed,!0,!0),o("autoplay")):i.isBeginning?i.params.autoplay.stopOnLastSlide?h():(t=i.slideTo(i.slides.length-1,i.params.speed,!0,!0),o("autoplay")):(t=i.slidePrev(i.params.speed,!0,!0),o("autoplay")):i.params.loop?(i.loopFix(),t=i.slideNext(i.params.speed,!0,!0),o("autoplay")):i.isEnd?i.params.autoplay.stopOnLastSlide?h():(t=i.slideTo(0,i.params.speed,!0,!0),o("autoplay")):(t=i.slideNext(i.params.speed,!0,!0),o("autoplay")),(i.params.cssMode&&i.autoplay.running||!1===t)&&a()}),n)}function l(){return void 0===e&&(!i.autoplay.running&&(i.autoplay.running=!0,o("autoplayStart"),a(),!0))}function h(){return!!i.autoplay.running&&(void 0!==e&&(e&&(clearTimeout(e),e=void 0),i.autoplay.running=!1,o("autoplayStop"),!0))}function d(t){i.autoplay.running&&(i.autoplay.paused||(e&&clearTimeout(e),i.autoplay.paused=!0,0!==t&&i.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach((t=>{i.$wrapperEl[0].addEventListener(t,u)})):(i.autoplay.paused=!1,a())))}function p(){const t=n();"hidden"===t.visibilityState&&i.autoplay.running&&d(),"visible"===t.visibilityState&&i.autoplay.paused&&(a(),i.autoplay.paused=!1)}function u(t){i&&!i.destroyed&&i.$wrapperEl&&t.target===i.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach((t=>{i.$wrapperEl[0].removeEventListener(t,u)})),i.autoplay.paused=!1,i.autoplay.running?a():h())}function f(){i.params.autoplay.disableOnInteraction?h():(o("autoplayPause"),d()),["transitionend","webkitTransitionEnd"].forEach((t=>{i.$wrapperEl[0].removeEventListener(t,u)}))}function m(){i.params.autoplay.disableOnInteraction||(i.autoplay.paused=!1,o("autoplayResume"),a())}i.autoplay={running:!1,paused:!1},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),s("init",(()=>{if(i.params.autoplay.enabled){l();n().addEventListener("visibilitychange",p),i.params.autoplay.pauseOnMouseEnter&&(i.$el.on("mouseenter",f),i.$el.on("mouseleave",m))}})),s("beforeTransitionStart",((t,e,n)=>{i.autoplay.running&&(n||!i.params.autoplay.disableOnInteraction?i.autoplay.pause(e):h())})),s("sliderFirstMove",(()=>{i.autoplay.running&&(i.params.autoplay.disableOnInteraction?h():d())})),s("touchEnd",(()=>{i.params.cssMode&&i.autoplay.paused&&!i.params.autoplay.disableOnInteraction&&a()})),s("destroy",(()=>{i.$el.off("mouseenter",f),i.$el.off("mouseleave",m),i.autoplay.running&&h();n().removeEventListener("visibilitychange",p)})),Object.assign(i.autoplay,{pause:d,run:a,start:l,stop:h})},function(t){let{swiper:e,extendParams:i,on:n}=t;i({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,s=!1;function o(){const t=e.thumbs.swiper;if(!t||t.destroyed)return;const i=t.clickedIndex,n=t.clickedSlide;if(n&&$(n).hasClass(e.params.thumbs.slideThumbActiveClass))return;if(null==i)return;let r;if(r=t.params.loop?parseInt($(t.clickedSlide).attr("data-swiper-slide-index"),10):i,e.params.loop){let t=e.activeIndex;e.slides.eq(t).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,t=e.activeIndex);const i=e.slides.eq(t).prevAll(`[data-swiper-slide-index="${r}"]`).eq(0).index(),n=e.slides.eq(t).nextAll(`[data-swiper-slide-index="${r}"]`).eq(0).index();r=void 0===i?n:void 0===n?i:n-t<t-i?n:i}e.slideTo(r)}function a(){const{thumbs:t}=e.params;if(r)return!1;r=!0;const i=e.constructor;if(t.swiper instanceof i)e.thumbs.swiper=t.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1});else if(u(t.swiper)){const n=Object.assign({},t.swiper);Object.assign(n,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new i(n),s=!0}return e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",o),!0}function l(t){const i=e.thumbs.swiper;if(!i||i.destroyed)return;const n="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView,r=e.params.thumbs.autoScrollOffset,s=r&&!i.params.loop;if(e.realIndex!==i.realIndex||s){let o,a,l=i.activeIndex;if(i.params.loop){i.slides.eq(l).hasClass(i.params.slideDuplicateClass)&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,l=i.activeIndex);const t=i.slides.eq(l).prevAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index(),n=i.slides.eq(l).nextAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index();o=void 0===t?n:void 0===n?t:n-l===l-t?i.params.slidesPerGroup>1?n:l:n-l<l-t?n:t,a=e.activeIndex>e.previousIndex?"next":"prev"}else o=e.realIndex,a=o>e.previousIndex?"next":"prev";s&&(o+="next"===a?r:-1*r),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(o)<0&&(i.params.centeredSlides?o=o>l?o-Math.floor(n/2)+1:o+Math.floor(n/2)-1:o>l&&i.params.slidesPerGroup,i.slideTo(o,t?0:void 0))}let o=1;const a=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(o=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(o=1),o=Math.floor(o),i.slides.removeClass(a),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let t=0;t<o;t+=1)i.$wrapperEl.children(`[data-swiper-slide-index="${e.realIndex+t}"]`).addClass(a);else for(let t=0;t<o;t+=1)i.slides.eq(e.realIndex+t).addClass(a)}e.thumbs={swiper:null},n("beforeInit",(()=>{const{thumbs:t}=e.params;t&&t.swiper&&(a(),l(!0))})),n("slideChange update resize observerUpdate",(()=>{l()})),n("setTransition",((t,i)=>{const n=e.thumbs.swiper;
97n&&!n.destroyed&&n.setTransition(i)})),n("beforeDestroy",(()=>{const t=e.thumbs.swiper;t&&!t.destroyed&&s&&t.destroy()})),Object.assign(e.thumbs,{init:a,update:l 98})},function(t){let{swiper:e,extendParams:i,emit:n,once:r}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(e,{freeMode:{onTouchStart:function(){const t=e.getTranslate();e.setTranslate(t),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})},onTouchMove:function(){const{touchEventsData:t,touches:i}=e;0===t.velocities.length&&t.velocities.push({position:i[e.isHorizontal()?"startX":"startY"],time:t.touchStartTime}),t.velocities.push({position:i[e.isHorizontal()?"currentX":"currentY"],time:d()})},onTouchEnd:function(t){let{currentPos:i}=t;const{params:s,$wrapperEl:o,rtlTranslate:a,snapGrid:l,touchEventsData:h}=e,c=d()-h.touchStartTime;if(i<-e.minTranslate())e.slideTo(e.activeIndex);else if(i>-e.maxTranslate())e.slides.length<l.length?e.slideTo(l.length-1):e.slideTo(e.slides.length-1);else{if(s.freeMode.momentum){if(h.velocities.length>1){const t=h.velocities.pop(),i=h.velocities.pop(),n=t.position-i.position,r=t.time-i.time;e.velocity=n/r,e.velocity/=2,Math.abs(e.velocity)<s.freeMode.minimumVelocity&&(e.velocity=0),(r>150||d()-t.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=s.freeMode.momentumVelocityRatio,h.velocities.length=0;let t=1e3*s.freeMode.momentumRatio;const i=e.velocity*t;let c=e.translate+i;a&&(c=-c);let p,u=!1;const f=20*Math.abs(e.velocity)*s.freeMode.momentumBounceRatio;let m;if(c<e.maxTranslate())s.freeMode.momentumBounce?(c+e.maxTranslate()<-f&&(c=e.maxTranslate()-f),p=e.maxTranslate(),u=!0,h.allowMomentumBounce=!0):c=e.maxTranslate(),s.loop&&s.centeredSlides&&(m=!0);else if(c>e.minTranslate())s.freeMode.momentumBounce?(c-e.minTranslate()>f&&(c=e.minTranslate()+f),p=e.minTranslate(),u=!0,h.allowMomentumBounce=!0):c=e.minTranslate(),s.loop&&s.centeredSlides&&(m=!0);else if(s.freeMode.sticky){let t;for(let e=0;e<l.length;e+=1)if(l[e]>-c){t=e;break}c=Math.abs(l[t]-c)<Math.abs(l[t-1]-c)||"next"===e.swipeDirection?l[t]:l[t-1],c=-c}if(m&&r("transitionEnd",(()=>{e.loopFix()})),0!==e.velocity){if(t=a?Math.abs((-c-e.translate)/e.velocity):Math.abs((c-e.translate)/e.velocity),s.freeMode.sticky){const i=Math.abs((a?-c:c)-e.translate),n=e.slidesSizesGrid[e.activeIndex];t=i<n?s.speed:i<2*n?1.5*s.speed:2.5*s.speed}}else if(s.freeMode.sticky)return void e.slideToClosest();s.freeMode.momentumBounce&&u?(e.updateProgress(p),e.setTransition(t),e.setTranslate(c),e.transitionStart(!0,e.swipeDirection),e.animating=!0,o.transitionEnd((()=>{e&&!e.destroyed&&h.allowMomentumBounce&&(n("momentumBounce"),e.setTransition(s.speed),setTimeout((()=>{e.setTranslate(p),o.transitionEnd((()=>{e&&!e.destroyed&&e.transitionEnd()}))}),0))}))):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(c),e.setTransition(t),e.setTranslate(c),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,o.transitionEnd((()=>{e&&!e.destroyed&&e.transitionEnd()})))):e.updateProgress(c),e.updateActiveIndex(),e.updateSlidesClasses()}else{if(s.freeMode.sticky)return void e.slideToClosest();s.freeMode&&n("_freeModeNoMomentumRelease")}(!s.freeMode.momentum||c>=s.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}}}})},function(t){let e,i,n,{swiper:r,extendParams:s}=t;s({grid:{rows:1,fill:"column"}}),r.grid={initSlides:t=>{const{slidesPerView:s}=r.params,{rows:o,fill:a}=r.params.grid;i=e/o,n=Math.floor(t/o),e=Math.floor(t/o)===t/o?t:Math.ceil(t/o)*o,"auto"!==s&&"row"===a&&(e=Math.max(e,s*o))},updateSlide:(t,s,o,a)=>{const{slidesPerGroup:l,spaceBetween:h}=r.params,{rows:c,fill:d}=r.params.grid;let p,u,f;if("row"===d&&l>1){const i=Math.floor(t/(l*c)),n=t-c*l*i,r=0===i?l:Math.min(Math.ceil((o-i*c*l)/c),l);f=Math.floor(n/r),u=n-f*r+i*l,p=u+f*e/c,s.css({"-webkit-order":p,order:p})}else"column"===d?(u=Math.floor(t/c),f=t-u*c,(u>n||u===n&&f===c-1)&&(f+=1,f>=c&&(f=0,u+=1))):(f=Math.floor(t/i),u=t-f*i);s.css(a("margin-top"),0!==f?h&&`${h}px`:"")},updateWrapperSize:(t,i,n)=>{const{spaceBetween:s,centeredSlides:o,roundLengths:a}=r.params,{rows:l}=r.params.grid;if(r.virtualSize=(t+s)*e,r.virtualSize=Math.ceil(r.virtualSize/l)-s,r.$wrapperEl.css({[n("width")]:`${r.virtualSize+s}px`}),o){i.splice(0,i.length);const t=[];for(let e=0;e<i.length;e+=1){let n=i[e];a&&(n=Math.floor(n)),i[e]<r.virtualSize+i[0]&&t.push(n)}i.push(...t)}}}},function(t){let{swiper:e}=t;
98Object.assign(e,{appendSlide:K.bind(e),prependSlide:Z.bind(e),addSlide:Q.bind(e),removeSlide:J.bind(e),removeAllSlides:tt.bind(e)})},function(t){let{swiper:e,extendParams:i,on:n}=t;i({fadeEffect:{crossFade:!1,transformEl:null}}),et({effect:"fade",swiper:e,on:n,setTranslate:()=>{const{slides:t}=e,i=e.params.fadeEffect;for(let n=0;n<t.length;n+=1){const t=e.slides.eq(n);let r=-t[0].swiperSlideOffset;e.params.virtualTranslate||(r-=e.translate);let s=0;e.isHorizontal()||(s=r,r=0);const o=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(t[0].progress),0):1+Math.min(Math.max(t[0].progress,-1),0);it(i,t).css({opacity:o}).transform(`translate3d(${r}px, ${s}px, 0px)`)}},setTransition:t=>{const{transformEl:i}=e.params.fadeEffect;(i?e.slides.find(i):e.slides).transition(t),nt({swiper:e,duration:t,transformEl:i,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})},function(t){let{swiper:e,extendParams:i,on:n}=t;i({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const r=(t,e,i)=>{let n=i?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),r=i?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===n.length&&(n=$(`<div class="swiper-slide-shadow-${i?"left":"top"}"></div>`),t.append(n)),0===r.length&&(r=$(`<div class="swiper-slide-shadow-${i?"right":"bottom"}"></div>`),t.append(r)),n.length&&(n[0].style.opacity=Math.max(-e,0)),r.length&&(r[0].style.opacity=Math.max(e,0))};et({effect:"cube",swiper:e,on:n,setTranslate:()=>{const{$el:t,$wrapperEl:i,slides:n,width:s,height:o,rtlTranslate:a,size:l,browser:h}=e,c=e.params.cubeEffect,d=e.isHorizontal(),p=e.virtual&&e.params.virtual.enabled;let u,f=0;c.shadow&&(d?(u=i.find(".swiper-cube-shadow"),0===u.length&&(u=$('<div class="swiper-cube-shadow"></div>'),i.append(u)),u.css({height:`${s}px`})):(u=t.find(".swiper-cube-shadow"),0===u.length&&(u=$('<div class="swiper-cube-shadow"></div>'),t.append(u))));for(let t=0;t<n.length;t+=1){const e=n.eq(t);let i=t;p&&(i=parseInt(e.attr("data-swiper-slide-index"),10));let s=90*i,o=Math.floor(s/360);a&&(s=-s,o=Math.floor(-s/360));const h=Math.max(Math.min(e[0].progress,1),-1);let u=0,m=0,g=0;i%4==0?(u=4*-o*l,g=0):(i-1)%4==0?(u=0,g=4*-o*l):(i-2)%4==0?(u=l+4*o*l,g=l):(i-3)%4==0&&(u=-l,g=3*l+4*l*o),a&&(u=-u),d||(m=u,u=0);const v=`rotateX(${d?0:-s}deg) rotateY(${d?s:0}deg) translate3d(${u}px, ${m}px, ${g}px)`;h<=1&&h>-1&&(f=90*i+90*h,a&&(f=90*-i-90*h)),e.transform(v),c.slideShadows&&r(e,h,d)}if(i.css({"-webkit-transform-origin":`50% 50% -${l/2}px`,"transform-origin":`50% 50% -${l/2}px`}),c.shadow)if(d)u.transform(`translate3d(0px, ${s/2+c.shadowOffset}px, ${-s/2}px) rotateX(90deg) rotateZ(0deg) scale(${c.shadowScale})`);else{const t=Math.abs(f)-90*Math.floor(Math.abs(f)/90),e=1.5-(Math.sin(2*t*Math.PI/360)/2+Math.cos(2*t*Math.PI/360)/2),i=c.shadowScale,n=c.shadowScale/e,r=c.shadowOffset;u.transform(`scale3d(${i}, 1, ${n}) translate3d(0px, ${o/2+r}px, ${-o/2/n}px) rotateX(-90deg)`)}const m=h.isSafari||h.isWebView?-l/2:0;i.transform(`translate3d(0px,0,${m}px) rotateX(${e.isHorizontal()?0:f}deg) rotateY(${e.isHorizontal()?-f:0}deg)`),i[0].style.setProperty("--swiper-cube-translate-z",`${m}px`)},setTransition:t=>{const{$el:i,slides:n}=e;n.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.cubeEffect.shadow&&!e.isHorizontal()&&i.find(".swiper-cube-shadow").transition(t)},recreateShadows:()=>{const t=e.isHorizontal();e.slides.each((e=>{const i=Math.max(Math.min(e.progress,1),-1);r($(e),i,t)}))},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(t){let{swiper:e,extendParams:i,on:n}=t;i({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}});const r=(t,i,n)=>{let r=e.isHorizontal()?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),s=e.isHorizontal()?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===r.length&&(r=rt(n,t,e.isHorizontal()?"left":"top")),0===s.length&&(s=rt(n,t,e.isHorizontal()?"right":"bottom")),r.length&&(r[0].style.opacity=Math.max(-i,0)),s.length&&(s[0].style.opacity=Math.max(i,0))};et({effect:"flip",swiper:e,on:n,setTranslate:()=>{const{slides:t,rtlTranslate:i}=e,n=e.params.flipEffect;for(let s=0;s<t.length;s+=1){const o=t.eq(s);let a=o[0].progress;e.params.flipEffect.limitRotation&&(a=Math.max(Math.min(o[0].progress,
981),-1));const l=o[0].swiperSlideOffset;let h=-180*a,c=0,d=e.params.cssMode?-l-e.translate:-l,p=0;e.isHorizontal()?i&&(h=-h):(p=d,d=0,c=-h,h=0),o[0].style.zIndex=-Math.abs(Math.round(a))+t.length,n.slideShadows&&r(o,a,n);const u=`translate3d(${d}px, ${p}px, 0px) rotateX(${c}deg) rotateY(${h}deg)`;it(n,o).transform(u)}},setTransition:t=>{const{transformEl:i}=e.params.flipEffect;(i?e.slides.find(i):e.slides).transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),nt({swiper:e,duration:t,transformEl:i})},recreateShadows:()=>{const t=e.params.flipEffect;e.slides.each((i=>{const n=$(i);let s=n[0].progress;e.params.flipEffect.limitRotation&&(s=Math.max(Math.min(i.progress,1),-1)),r(n,s,t)}))},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})},function(t){let{swiper:e,extendParams:i,on:n}=t;i({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0,transformEl:null}}),et({effect:"coverflow",swiper:e,on:n,setTranslate:()=>{const{width:t,height:i,slides:n,slidesSizesGrid:r}=e,s=e.params.coverflowEffect,o=e.isHorizontal(),a=e.translate,l=o?t/2-a:i/2-a,h=o?s.rotate:-s.rotate,c=s.depth;for(let t=0,e=n.length;t<e;t+=1){const e=n.eq(t),i=r[t],a=(l-e[0].swiperSlideOffset-i/2)/i,d="function"==typeof s.modifier?s.modifier(a):a*s.modifier;let p=o?h*d:0,u=o?0:h*d,f=-c*Math.abs(d),m=s.stretch;"string"==typeof m&&-1!==m.indexOf("%")&&(m=parseFloat(s.stretch)/100*i);let g=o?0:m*d,v=o?m*d:0,y=1-(1-s.scale)*Math.abs(d);Math.abs(v)<.001&&(v=0),Math.abs(g)<.001&&(g=0),Math.abs(f)<.001&&(f=0),Math.abs(p)<.001&&(p=0),Math.abs(u)<.001&&(u=0),Math.abs(y)<.001&&(y=0);const b=`translate3d(${v}px,${g}px,${f}px) rotateX(${u}deg) rotateY(${p}deg) scale(${y})`;if(it(s,e).transform(b),e[0].style.zIndex=1-Math.abs(Math.round(d)),s.slideShadows){let t=o?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),i=o?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===t.length&&(t=rt(s,e,o?"left":"top")),0===i.length&&(i=rt(s,e,o?"right":"bottom")),t.length&&(t[0].style.opacity=d>0?d:0),i.length&&(i[0].style.opacity=-d>0?-d:0)}}},setTransition:t=>{const{transformEl:i}=e.params.coverflowEffect;(i?e.slides.find(i):e.slides).transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(t){let{swiper:e,extendParams:i,on:n}=t;i({creativeEffect:{transformEl:null,limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const r=t=>"string"==typeof t?t:`${t}px`;et({effect:"creative",swiper:e,on:n,setTranslate:()=>{const{slides:t,$wrapperEl:i,slidesSizesGrid:n}=e,s=e.params.creativeEffect,{progressMultiplier:o}=s,a=e.params.centeredSlides;if(a){const t=n[0]/2-e.params.slidesOffsetBefore||0;i.transform(`translateX(calc(50% - ${t}px))`)}for(let i=0;i<t.length;i+=1){const n=t.eq(i),l=n[0].progress,h=Math.min(Math.max(n[0].progress,-s.limitProgress),s.limitProgress);let c=h;a||(c=Math.min(Math.max(n[0].originalProgress,-s.limitProgress),s.limitProgress));const d=n[0].swiperSlideOffset,p=[e.params.cssMode?-d-e.translate:-d,0,0],u=[0,0,0];let f=!1;e.isHorizontal()||(p[1]=p[0],p[0]=0);let m={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};h<0?(m=s.next,f=!0):h>0&&(m=s.prev,f=!0),p.forEach(((t,e)=>{p[e]=`calc(${t}px + (${r(m.translate[e])} * ${Math.abs(h*o)}))`})),u.forEach(((t,e)=>{u[e]=m.rotate[e]*Math.abs(h*o)})),n[0].style.zIndex=-Math.abs(Math.round(l))+t.length;const g=p.join(", "),v=`rotateX(${u[0]}deg) rotateY(${u[1]}deg) rotateZ(${u[2]}deg)`,y=c<0?`scale(${1+(1-m.scale)*c*o})`:`scale(${1-(1-m.scale)*c*o})`,b=c<0?1+(1-m.opacity)*c*o:1-(1-m.opacity)*c*o,_=`translate3d(${g}) ${v} ${y}`;if(f&&m.shadow||!f){let t=n.children(".swiper-slide-shadow");if(0===t.length&&m.shadow&&(t=rt(s,n)),t.length){const e=s.shadowPerProgress?h*(1/s.limitProgress):h;t[0].style.opacity=Math.min(Math.max(Math.abs(e),0),1)}}const w=it(s,n);w.transform(_).css({opacity:b}),m.origin&&w.css("transform-origin",m.origin)}},setTransition:t=>{const{transformEl:i}=e.params.creativeEffect;(i?e.slides.find(i):e.slides).transition(t).find(".swiper-slide-shadow").transition(t),nt({swiper:e,duration:t,transformEl:i,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})},function(t){let{swiper:e,extendParams:i,on:n}=t;i({cardsEffect:{slideShadows:!0,transformEl:null,rotate:!0}}),et({effect:"cards",swiper:e,on:n,setTranslate:()=>{const{slides:t,activeIndex:i}=e,n=e.params.cardsEffect,{startTranslate:r,isTouched:s}=e.touchEventsData,o=e.translate;
98for(let a=0;a<t.length;a+=1){const l=t.eq(a),h=l[0].progress,c=Math.min(Math.max(h,-4),4);let d=l[0].swiperSlideOffset;e.params.centeredSlides&&!e.params.cssMode&&e.$wrapperEl.transform(`translateX(${e.minTranslate()}px)`),e.params.centeredSlides&&e.params.cssMode&&(d-=t[0].swiperSlideOffset);let p=e.params.cssMode?-d-e.translate:-d,u=0;const f=-100*Math.abs(c);let m=1,g=-2*c,v=8-.75*Math.abs(c);const y=e.virtual&&e.params.virtual.enabled?e.virtual.from+a:a,b=(y===i||y===i-1)&&c>0&&c<1&&(s||e.params.cssMode)&&o<r,_=(y===i||y===i+1)&&c<0&&c>-1&&(s||e.params.cssMode)&&o>r;if(b||_){const t=(1-Math.abs((Math.abs(c)-.5)/.5))**.5;g+=-28*c*t,m+=-.5*t,v+=96*t,u=-25*t*Math.abs(c)+"%"}if(p=c<0?`calc(${p}px + (${v*Math.abs(c)}%))`:c>0?`calc(${p}px + (-${v*Math.abs(c)}%))`:`${p}px`,!e.isHorizontal()){const t=u;u=p,p=t}const w=c<0?""+(1+(1-m)*c):""+(1-(1-m)*c),x=`\n translate3d(${p}, ${u}, ${f}px)\n rotateZ(${n.rotate?g:0}deg)\n scale(${w})\n `;if(n.slideShadows){let t=l.find(".swiper-slide-shadow");0===t.length&&(t=rt(n,l)),t.length&&(t[0].style.opacity=Math.min(Math.max((Math.abs(c)-.5)/.5,0),1))}l[0].style.zIndex=-Math.abs(Math.round(h))+t.length;it(n,l).transform(x)}},setTransition:t=>{const{transformEl:i}=e.params.cardsEffect;(i?e.slides.find(i):e.slides).transition(t).find(".swiper-slide-shadow").transition(t),nt({swiper:e,duration:t,transformEl:i})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}];return W.use(st),W})),function(t,e,i,n,r){if("customElements"in i)r();else{if(i.AWAITING_WEB_COMPONENTS_POLYFILL)return void i.AWAITING_WEB_COMPONENTS_POLYFILL.then(r);var s=i.AWAITING_WEB_COMPONENTS_POLYFILL=l();s.then(r);var o=i.WEB_COMPONENTS_POLYFILL||"//cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/2.0.2/webcomponents-bundle.js",a=i.ES6_CORE_POLYFILL||"//cdnjs.cloudflare.com/ajax/libs/core-js/2.5.3/core.min.js";"Promise"in i?h(o).then((function(){s.isDone=!0,s.exec()})):h(a).then((function(){h(o).then((function(){s.isDone=!0,s.exec()}))}))}function l(){var t=[];return t.isDone=!1,t.exec=function(){t.splice(0).forEach((function(t){t()}))},t.then=function(e){return t.isDone?e():t.push(e),t},t}function h(t){var e=l(),i=n.createElement("script");return i.type="text/javascript",i.readyState?i.onreadystatechange=function(){"loaded"!=i.readyState&&"complete"!=i.readyState||(i.onreadystatechange=null,e.isDone=!0,e.exec())}:i.onload=function(){e.isDone=!0,e.exec()},i.src=t,n.getElementsByTagName("head")[0].appendChild(i),i.then=e.then,i}}(0,0,window,document,(function(){var t,e;t=window,e=function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=5)}([function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=function(t,e){var i,n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var s=(i=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),o=r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}));return[n].concat(o).concat([s]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;r<this.length;r++){var s=this[r][0];"number"==typeof s&&(n[s]=!0)}for(r=0;r<t.length;r++){var o=t[r];"number"==typeof o[0]&&n[o[0]]||(i&&!o[2]?o[2]=i:i&&(o[2]="("+o[2]+") and ("+i+")"),e.push(o))}},e}}
98,function(t,e,i){var n=i(3);t.exports="string"==typeof n?n:n.toString()},function(t,e,i){var n=i(4);t.exports="string"==typeof n?n:n.toString()},function(t,e,i){(t.exports=i(0)(!1)).push([t.i,"@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes burst{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}90%{-webkit-transform:scale(1.5);transform:scale(1.5);opacity:0}}@keyframes burst{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}90%{-webkit-transform:scale(1.5);transform:scale(1.5);opacity:0}}@-webkit-keyframes flashing{0%{opacity:1}45%{opacity:0}90%{opacity:1}}@keyframes flashing{0%{opacity:1}45%{opacity:0}90%{opacity:1}}@-webkit-keyframes fade-left{0%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}75%{-webkit-transform:translateX(-20px);transform:translateX(-20px);opacity:0}}@keyframes fade-left{0%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}75%{-webkit-transform:translateX(-20px);transform:translateX(-20px);opacity:0}}@-webkit-keyframes fade-right{0%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}75%{-webkit-transform:translateX(20px);transform:translateX(20px);opacity:0}}@keyframes fade-right{0%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}75%{-webkit-transform:translateX(20px);transform:translateX(20px);opacity:0}}@-webkit-keyframes fade-up{0%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}75%{-webkit-transform:translateY(-20px);transform:translateY(-20px);opacity:0}}@keyframes fade-up{0%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}75%{-webkit-transform:translateY(-20px);transform:translateY(-20px);opacity:0}}@-webkit-keyframes fade-down{0%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}75%{-webkit-transform:translateY(20px);transform:translateY(20px);opacity:0}}@keyframes fade-down{0%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}75%{-webkit-transform:translateY(20px);transform:translateY(20px);opacity:0}}@-webkit-keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.95,.95,.95) rotate(-10deg);transform:scale3d(.95,.95,.95) rotate(-10deg)}30%,50%,70%,90%{-webkit-transform:scaleX(1) rotate(10deg);transform:scaleX(1) rotate(10deg)}40%,60%,80%{-webkit-transform:scaleX(1) rotate(-10deg);transform:scaleX(1) rotate(-10deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.95,.95,.95) rotate(-10deg);transform:scale3d(.95,.95,.95) rotate(-10deg)}30%,50%,70%,90%{-webkit-transform:scaleX(1) rotate(10deg);transform:scaleX(1) rotate(10deg)}40%,60%,80%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.bx-spin,.bx-spin-hover:hover{-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite}.bx-tada,.bx-tada-hover:hover{-webkit-animation:tada 1.5s ease infinite;animation:tada 1.5s ease infinite}.bx-flashing,.bx-flashing-hover:hover{-webkit-animation:flashing 1.5s infinite linear;animation:flashing 1.5s infinite linear}.bx-burst,.bx-burst-hover:hover{-webkit-animation:burst 1.5s infinite linear;animation:burst 1.5s infinite linear}.bx-fade-up,.bx-fade-up-hover:hover{-webkit-animation:fade-up 1.5s infinite linear;animation:fade-up 1.5s infinite linear}.bx-fade-down,.bx-fade-down-hover:hover{-webkit-animation:fade-down 1.5s infinite linear;animation:fade-down 1.5s infinite linear}.bx-fade-left,.bx-fade-left-hover:hover{-webkit-animation:fade-left 1.5s infinite linear;animation:fade-left 1.5s infinite linear}.bx-fade-right,.bx-fade-right-hover:hover{-webkit-animation:fade-right 1.5s infinite linear;animation:fade-right 1.5s infinite linear}",""])},function(t,e,i){(t.exports=i(0)(!1)).push([t.i,'.bx-rotate-90{transform:rotate(90deg);-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)"}.bx-rotate-180{transform:rotate(180deg);-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)"}.bx-rotate-270{transform:rotate(270deg);-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)"}
98.bx-flip-horizontal{transform:scaleX(-1);-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)"}.bx-flip-vertical{transform:scaleY(-1);-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}',""])},function(t,e,i){"use strict";i.r(e),i.d(e,"BoxIconElement",(function(){return y}));var n,r,s,o,a=i(1),l=i.n(a),h=i(2),c=i.n(h),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),u=(r=(n=Object).getPrototypeOf||function(t){return t.__proto__},s=n.setPrototypeOf||function(t,e){return t.__proto__=e,t},o="object"===("undefined"==typeof Reflect?"undefined":d(Reflect))?Reflect.construct:function(t,e,i){var n,r=[null];return r.push.apply(r,e),n=t.bind.apply(t,r),s(new n,i.prototype)},function(t){var e=r(t);return s(t,s((function(){return o(e,arguments,r(this).constructor)}),e))}),f=window,m={},g=document.createElement("template"),v=function(){return!!f.ShadyCSS};g.innerHTML='\n<style>\n:host {\n display: inline-block;\n font-size: initial;\n box-sizing: border-box;\n width: 24px;\n height: 24px;\n}\n:host([size=xs]) {\n width: 0.8rem;\n height: 0.8rem;\n}\n:host([size=sm]) {\n width: 1.55rem;\n height: 1.55rem;\n}\n:host([size=md]) {\n width: 2.25rem;\n height: 2.25rem;\n}\n:host([size=lg]) {\n width: 3.0rem;\n height: 3.0rem;\n}\n\n:host([size]:not([size=""]):not([size=xs]):not([size=sm]):not([size=md]):not([size=lg])) {\n width: auto;\n height: auto;\n}\n:host([pull=left]) #icon {\n float: left;\n margin-right: .3em!important;\n}\n:host([pull=right]) #icon {\n float: right;\n margin-left: .3em!important;\n}\n:host([border=square]) #icon {\n padding: .25em;\n border: .07em solid rgba(0,0,0,.1);\n border-radius: .25em;\n}\n:host([border=circle]) #icon {\n padding: .25em;\n border: .07em solid rgba(0,0,0,.1);\n border-radius: 50%;\n}\n#icon,\nsvg {\n width: 100%;\n height: 100%;\n}\n#icon {\n box-sizing: border-box;\n} \n'+l.a+"\n"+c.a+'\n</style>\n<div id="icon"></div>';var y=u(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.$ui=e.attachShadow({mode:"open"}),e.$ui.appendChild(e.ownerDocument.importNode(g.content,!0)),v()&&f.ShadyCSS.styleElement(e),e._state={$iconHolder:e.$ui.getElementById("icon"),type:e.getAttribute("type")},e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,HTMLElement),p(t,null,[{key:"getIconSvg",value:function(t,e){var i=this.cdnUrl+"/regular/bx-"+t+".
98svg";return"solid"===e?i=this.cdnUrl+"/solid/bxs-"+t+".svg":"logo"===e&&(i=this.cdnUrl+"/logos/bxl-"+t+".svg"),i&&m[i]||(m[i]=new Promise((function(t,e){var n=new XMLHttpRequest;n.addEventListener("load",(function(){this.status<200||this.status>=300?e(new Error(this.status+" "+this.responseText)):t(this.responseText)})),n.onerror=e,n.onabort=e,n.open("GET",i),n.send()}))),m[i]}},{key:"define",value:function(t){t=t||this.tagName,v()&&f.ShadyCSS.prepareTemplate(g,t),customElements.define(t,this)}},{key:"cdnUrl",get:function(){return"//unpkg.com/[email protected]/svg"}},{key:"tagName",get:function(){return"box-icon"}},{key:"observedAttributes",get:function(){return["type","name","color","size","rotate","flip","animation","border","pull"]}}]),p(t,[{key:"attributeChangedCallback",value:function(t,e,i){var n=this._state.$iconHolder;switch(t){case"type":!function(t,e,i){var n=t._state;n.$iconHolder.textContent="",n.type&&(n.type=null),n.type=!i||"solid"!==i&&"logo"!==i?"regular":i,void 0!==n.currentName&&t.constructor.getIconSvg(n.currentName,n.type).then((function(t){n.type===i&&(n.$iconHolder.innerHTML=t)})).catch((function(t){console.error("Failed to load icon: "+n.currentName+"\n"+t)}))}(this,0,i);break;case"name":!function(t,e,i){var n=t._state;n.currentName=i,n.$iconHolder.textContent="",i&&void 0!==n.type&&t.constructor.getIconSvg(i,n.type).then((function(t){n.currentName===i&&(n.$iconHolder.innerHTML=t)})).catch((function(t){console.error("Failed to load icon: "+i+"\n"+t)}))}(this,0,i);break;case"color":n.style.fill=i||"";break;case"size":!function(t,e,i){var n=t._state;n.size&&(n.$iconHolder.style.width=n.$iconHolder.style.height="",n.size=n.sizeType=null),i&&!/^(xs|sm|md|lg)$/.test(n.size)&&(n.size=i.trim(),n.$iconHolder.style.width=n.$iconHolder.style.height=n.size)}(this,0,i);break;case"rotate":e&&n.classList.remove("bx-rotate-"+e),i&&n.classList.add("bx-rotate-"+i);break;case"flip":e&&n.classList.remove("bx-flip-"+e),i&&n.classList.add("bx-flip-"+i);break;case"animation":e&&n.classList.remove("bx-"+e),i&&n.classList.add("bx-"+i)}}},{key:"connectedCallback",value:function(){v()&&f.ShadyCSS.styleElement(this)}}]),t}());e.default=y,y.define()}])},"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.BoxIconElement=e():t.BoxIconElement=e()})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Cleave=e():t.Cleave=e()}(this,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}return i.m=t,i.c=e,i.p="",i(0)}([function(t,exports,e){(function(i){"use strict";var n=function(t,e){var i=this,r=!1;if("string"==typeof t?(i.element=document.querySelector(t),r=document.querySelectorAll(t).length>1):void 0!==t.length&&t.length>0?(i.element=t[0],r=t.length>1):i.element=t,!i.element)throw new Error("[cleave.js] Please check the element");if(r)try{console.warn("[cleave.js] Multiple input fields matched, cleave.js will only take the first one.")}catch(t){}e.initValue=i.element.value,i.properties=n.DefaultProperties.assign({},e),i.init()};n.prototype={init:function(){var t=this,e=t.properties;e.numeral||e.phone||e.creditCard||e.time||e.date||0!==e.blocksLength||e.prefix?(e.maxLength=n.Util.getMaxLength(e.blocks),t.isAndroid=n.Util.isAndroid(),t.lastInputValue="",t.isBackward="",t.onChangeListener=t.onChange.bind(t),t.onKeyDownListener=t.onKeyDown.bind(t),t.onFocusListener=t.onFocus.bind(t),t.onCutListener=t.onCut.bind(t),t.onCopyListener=t.onCopy.bind(t),t.initSwapHiddenInput(),t.element.addEventListener("input",t.onChangeListener),t.element.addEventListener("keydown",t.onKeyDownListener),t.element.addEventListener("focus",t.onFocusListener),t.element.addEventListener("cut",t.onCutListener),t.element.addEventListener("copy",t.onCopyListener),t.initPhoneFormatter(),t.initDateFormatter(),t.initTimeFormatter(),t.initNumeralFormatter(),(e.initValue||e.prefix&&!e.noImmediatePrefix)&&t.onInput(e.initValue)):t.onInput(e.initValue)},initSwapHiddenInput:function(){var t=this;if(t.properties.swapHiddenInput){var e=t.element.cloneNode(!0);t.element.parentNode.insertBefore(e,t.element),t.elementSwapHidden=t.element,t.elementSwapHidden.type="hidden",t.element=e,t.element.i
vendor: 5,833 bytes, lines 98-99
98d=""}},initNumeralFormatter:function(){var t=this.properties;t.numeral&&(t.numeralFormatter=new n.NumeralFormatter(t.numeralDecimalMark,t.numeralIntegerScale,t.numeralDecimalScale,t.numeralThousandsGroupStyle,t.numeralPositiveOnly,t.stripLeadingZeroes,t.prefix,t.signBeforePrefix,t.tailPrefix,t.delimiter))},initTimeFormatter:function(){var t=this.properties;t.time&&(t.timeFormatter=new n.TimeFormatter(t.timePattern,t.timeFormat),t.blocks=t.timeFormatter.getBlocks(),t.blocksLength=t.blocks.length,t.maxLength=n.Util.getMaxLength(t.blocks))},initDateFormatter:function(){var t=this.properties;t.date&&(t.dateFormatter=new n.DateFormatter(t.datePattern,t.dateMin,t.dateMax),t.blocks=t.dateFormatter.getBlocks(),t.blocksLength=t.blocks.length,t.maxLength=n.Util.getMaxLength(t.blocks))},initPhoneFormatter:function(){var t=this.properties;if(t.phone)try{t.phoneFormatter=new n.PhoneFormatter(new t.root.Cleave.AsYouTypeFormatter(t.phoneRegionCode),t.delimiter)}catch(t){throw new Error("[cleave.js] Please include phone-type-formatter.{country}.js lib")}},onKeyDown:function(t){var e=this,i=t.which||t.keyCode;e.lastInputValue=e.element.value,e.isBackward=8===i},onChange:function(t){var e=this,i=e.properties,r=n.Util 99;e.isBackward=e.isBackward||"deleteContentBackward"===t.inputType;var s=r.getPostDelimiter(e.lastInputValue,i.delimiter,i.delimiters);e.isBackward&&s?i.postDelimiterBackspace=s:i.postDelimiterBackspace=!1,this.onInput(this.element.value)},onFocus:function(){var t=this,e=t.properties;t.lastInputValue=t.element.value,e.prefix&&e.noImmediatePrefix&&!t.element.value&&this.onInput(e.prefix),n.Util.fixPrefixCursor(t.element,e.prefix,e.delimiter,e.delimiters)},onCut:function(t){n.Util.checkFullSelection(this.element.value)&&(this.copyClipboardData(t),this.onInput(""))},onCopy:function(t){n.Util.checkFullSelection(this.element.value)&&this.copyClipboardData(t)},copyClipboardData:function(t){var e=this.properties,i=n.Util,r=this.element.value,s="";s=e.copyDelimiter?r:i.stripDelimiters(r,e.delimiter,e.delimiters);try{t.clipboardData?t.clipboardData.setData("Text",s):window.clipboardData.setData("Text",s),t.preventDefault()}catch(t){}},onInput:function(t){var e=this,i=e.properties,r=n.Util,s=r.getPostDelimiter(t,i.delimiter,i.delimiters);return i.numeral||!i.postDelimiterBackspace||s||(t=r.headStr(t,t.length-i.postDelimiterBackspace.length)),i.phone?(!i.prefix||i.noImmediatePrefix&&!t.length?i.result=i.phoneFormatter.format(t):i.result=i.prefix+i.phoneFormatter.format(t).slice(i.prefix.length),void e.updateValueState()):i.numeral?(i.prefix&&i.noImmediatePrefix&&0===t.length?i.result="":i.result=i.numeralFormatter.format(t),void e.updateValueState()):(i.date&&(t=i.dateFormatter.getValidatedDate(t)),i.time&&(t=i.timeFormatter.getValidatedTime(t)),t=r.stripDelimiters(t,i.delimiter,i.delimiters),t=r.getPrefixStrippedValue(t,i.prefix,i.prefixLength,i.result,i.delimiter,i.delimiters,i.noImmediatePrefix,i.tailPrefix,i.signBeforePrefix),t=i.numericOnly?r.strip(t,/[^\d]/g):t,t=i.uppercase?t.toUpperCase():t,t=i.lowercase?t.toLowerCase():t,i.prefix&&(i.tailPrefix?t+=i.prefix:t=i.prefix+t,0===i.blocksLength)?(i.result=t,void e.updateValueState()):(i.creditCard&&e.updateCreditCardPropsByValue(t),t=r.headStr(t,i.maxLength),i.result=r.getFormattedValue(t,i.blocks,i.blocksLength,i.delimiter,i.delimiters,i.delimiterLazyShow),void e.updateValueState()))},updateCreditCardPropsByValue:function(t){var e,i=this.properties,r=n.Util;r.headStr(i.result,4)!==r.headStr(t,4)&&(e=n.CreditCardDetector.getInfo(t,i.creditCardStrictMode),i.blocks=e.blocks,i.blocksLength=i.blocks.length,i.maxLength=r.getMaxLength(i.blocks),i.creditCardType!==e.type&&(i.creditCardType=e.type,i.onCreditCardTypeChanged.call(this,i.creditCardType)))},updateValueState:function(){var t=this,e=n.Util,i=t.properties;if(t.element){var r=t.element.selectionEnd,s=t.element.value,o=i.result;r=e.getNextCursorPosition(r,s,o,i.delimiter,i.delimiters),t.isAndroid?window.setTimeout((function(){t.element.value=o,e.setSelection(t.element,r,i.document,!1),t.callOnValueChanged()}),1):(t.element.value=o,i.swapHiddenInput&&(t.elementSwapHidden.value=t.getRawValue()),e.setSelection(t.element,r,i.document,!1),t.callOnValueChanged())}},callOnValueChanged:function(){var t=this,e=t.properties;e.onValueChanged.call(t,{target:{name:t.element.name,value:e.result,rawValue:t.getRawValue()}})},setPhoneRegionCode:function(t){var e=this;e.properties.phoneRegionCode=t,e.initPhoneFormatter(),e.onChange()},setRawValue:function(t){var e=this,i=e.properties;t=null!=t?t.toString():"",i.numeral&&(t=t.replace(".",i.numeralDecimalMark)),i.postDelimiterBackspace=!1,e.element.value=t,e.onInput(t)},getRawValue:function(){var t=this.properties,e=n.Util,i=this.element.value;return t.rawValueTrimPrefix&&(i=e.getPrefixStrippedValue(i,t.prefix,t.prefixLength,t.result,t.delimiter,t.delimiters,t.noImmediatePrefix,t.tailPrefix,t.signBeforePrefix)),i=t.numeral?t.numeralFormatter.getRawValue(i):e.stripDelimiters(i,t.delimiter,t.delimiters)},getISOFormatDate:function(){var t=this.properties;return t.date?t.dateFormatter.getISOFormatDate():""},getISOFormatTime:function(){var t=this.properties;return t.time?t.timeFormatter.getISOFormatTime():""},getFormattedValue:function(){return this.element.value},destroy:function(){var t=this;t.element.removeEventListener("input",t.onChangeListener),t.element.removeEventListener("keydown",t.onKeyDownListener),t.element.removeEventListener("focus",t.onFocusListener),t.element.removeEventListener("cut",t.onCutListener),t.element.removeEventListener("copy",t.onCopyListener)},toString:function(){return"[Cleave Object]"}},n.NumeralFormatter=e(1),n.DateFormatter=e(2),n.TimeFormatter=e(3),n.PhoneFormatter=e(4),n.CreditCardDetector=e(5),n.Util=e(6),n.DefaultProperties=e(7),("object"==typeof i&&i?i:window).Cleave=n,t.exp
99orts=n}).call(exports,function(){return this}())},function(t,exports){"use strict";var e=function(t,i,n,r,s,o,a,l,h,c){var d=this;d.numeralDecimalMark=t||".",d.numeralIntegerScale=i>0?i:0,d.numeralDecimalScale=n>=0?n:2,d.numeralThousandsGroupStyle=r||e.groupStyle.thousand,d.numeralPositiveOnly=!!s,d.stripLeadingZeroes=!1!==o,d.prefix=a||""===a?a:"",d.signBeforePrefix=!!l,d.tailPrefix=!!h,d.delimiter=c||""===c?c:",",d.delimiterRE=c?new RegExp("\\"+c,"g"):""};e.groupStyle={thousand:"thousand",lakh:"lakh",wan:"wan",none:"none"},e.prototype={getRawValue:function(t){return t.replace(this.delimiterRE,"").replace(this.numeralDecimalMark,".")},format:function(t){var i,n,r,s,o=this,a="";switch(t=t.replace(/[A-Za-z]/g,"").replace(o.numeralDecimalMark,"M").replace(/[^\dM-]/g,"").replace(/^\-/,"N").replace(/\-/g,"").replace("N",o.numeralPositiveOnly?"":"-").replace("M",o.numeralDecimalMark),o.stripLeadingZeroes&&(t=t.replace(/^(-)?0+(?=\d)/,"$1")),n="-"===t.slice(0,1)?"-":"",r=void 0!==o.prefix?o.signBeforePrefix?n+o.prefix:o.prefix+n:n,s=t,t.indexOf(o.numeralDecimalMark)>=0&&(s=(i=t.split(o.numeralDecimalMark))[0],a=o.numeralDecimalMark+i[1].slice(0,o.numeralDecimalScale)),"-"===n&&(s=s.slice(1)),o.numeralIntegerScale>0&&(s=s.slice(0,o.numeralIntegerScale)),o.numeralThousandsGroupStyle){case e.groupStyle.lakh:s=s.replace(/(\d)(?=(\d\d)+\d$)/g,"$1"+o.delimiter);break;case e.groupStyle.wan:s=s.replace(/(\d)(?=(\d{4})+$)/g,"$1"+o.delimiter);break;case e.groupStyle.thousand:s=s.replace(/(\d)(?=(\d{3})+$)/g,"$1"+o.delimiter)}return o.tailPrefix?n+s.toString()+(o.numeralDecimalScale>0?a.toString():"")+o.prefix:r+s.toString()+(o.numeralDecimalScale>0?a.toString():"")}},t.exports=e},function(t,exports){"use strict";var e=function(t,e,i){var n=this;n.date=[],n.blocks=[],n.datePattern=t,n.dateMin=e.split("-").reverse().map((function(t){return parseInt(t,10)})),2===n.dateMin.length&&n.dateMin.unshift(0),n.dateMax=i.split("-").reverse().map((function(t){return parseInt(t,10)})),2===n.dateMax.length&&n.dateMax.unshift(0),n.initBlocks()};e.prototype={initBlocks:function(){var t=this;t.datePattern.forEach((function(e){"Y"===e?t.blocks.push(4):t.blocks.push(2)}))},getISOFormatDate:function(){var t=this,e=t.date;return e[2]?e[2]+"-"+t.addLeadingZero(e[1])+"-"+t.addLeadingZero(e[0]):""},getBlocks:function(){return this.blocks},getValidatedDate:function(t){var e=this,i="";return t=t.replace(/[^\d]/g,""),e.blocks.forEach((function(n,r){if(t.length>0){var s=t.slice(0,n),o=s.slice(0,1),a=t.slice(n);switch(e.datePattern[r]){case"d":"00"===s?s="01":parseInt(o,10)>3?s="0"+o:parseInt(s,10)>31&&(s="31");break;case"m":"00"===s?s="01":parseInt(o,10)>1?s="0"+o:parseInt(s,10)>12&&(s="12")}i+=s,t=a}})),this.getFixedDateString(i)},getFixedDateString:function(t){var e,i,n,r=this,s=r.datePattern,o=[],a=0,l=0,h=0,c=0,d=0,p=0,u=!1;return 4===t.length&&"y"!==s[0].toLowerCase()&&"y"!==s[1].toLowerCase()&&(d=2-(c="d"===s[0]?0:2),e=parseInt(t.slice(c,c+2),10),i=parseInt(t.slice(d,d+2),10),o=this.getFixedDate(e,i,0)),8===t.length&&(s.forEach((function(t,e){switch(t){case"d":a=e;break;case"m":l=e;break;default:h=e}})),p=2*h,c=a<=h?2*a:2*a+2,d=l<=h?2*l:2*l+2,e=parseInt(t.slice(c,c+2),10),i=parseInt(t.slice(d,d+2),10),n=parseInt(t.slice(p,p+4),10),u=4===t.slice(p,p+4).length,o=this.getFixedDate(e,i,n)),4!==t.length||"y"!==s[0]&&"y"!==s[1]||(p=2-(d="m"===s[0]?0:2),i=parseInt(t.slice(d,d+2),10),n=parseInt(t.slice(p,p+2),10),u=2===t.slice(p,p+2).length,o=[0,i,n]),6!==t.length||"Y"!==s[0]&&"Y"!==s[1]||(p=2-.5*(d="m"===s[0]?0:4),i=parseInt(t.slice(d,d+2),10),n=parseInt(t.slice(p,p+4),10),u=4===t.slice(p,p+4).length,o=[0,i,n]),o=r.getRangeFixedDate(o),r.date=o,0===o.length?t:s.reduce((function(t,e){switch(e){case"d":return t+(0===o[0]?"":r.addLeadingZero(o[0]));case"m":return t+(0===o[1]?"":r.addLeadingZero(o[1]));case"y":return t+(u?r.addLeadingZeroForYear(o[2],!1):"");case"Y":return t+(u?r.addLeadingZeroForYear(o[2],!0):"")}}),"")},getRangeFixedDate:function(t){var e=this,i=e.datePattern,n=e.dateMin||[],r=e.dateMax||[];return!t.length||n.length<3&&r.length<3||i.find((function(t){return"y"===t.toLowerCase()}))&&0===t[2]?t:r.length&&(r[2]<t[2]||r[2]===t[2]&&(r[1]<t[1]||r[1]===t[1]&&r[0]<t[0]))?r:n.length&&(n[2]>t[2]||n[2]===t[2]&&(n[1]>t[1]||n[1]===t[1]&&n[0]>t[0]))?n:t}
99,getFixedDate:function(t,e,i){return t=Math.min(t,31),e=Math.min(e,12),i=parseInt(i||0,10),(e<7&&e%2==0||e>8&&e%2==1)&&(t=Math.min(t,2===e?this.isLeapYear(i)?29:28:30)),[t,e,i]},isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},addLeadingZero:function(t){return(t<10?"0":"")+t},addLeadingZeroForYear:function(t,e){return e?(t<10?"000":t<100?"00":t<1e3?"0":"")+t:(t<10?"0":"")+t}},t.exports=e},function(t,exports){"use strict";var e=function(t,e){var i=this;i.time=[],i.blocks=[],i.timePattern=t,i.timeFormat=e,i.initBlocks()};e.prototype={initBlocks:function(){var t=this;t.timePattern.forEach((function(){t.blocks.push(2)}))},getISOFormatTime:function(){var t=this,e=t.time;return e[2]?t.addLeadingZero(e[0])+":"+t.addLeadingZero(e[1])+":"+t.addLeadingZero(e[2]):""},getBlocks:function(){return this.blocks},getTimeFormatOptions:function(){return"12"===String(this.timeFormat)?{maxHourFirstDigit:1,maxHours:12,maxMinutesFirstDigit:5,maxMinutes:60}:{maxHourFirstDigit:2,maxHours:23,maxMinutesFirstDigit:5,maxMinutes:60}},getValidatedTime:function(t){var e=this,i="";t=t.replace(/[^\d]/g,"");var n=e.getTimeFormatOptions();return e.blocks.forEach((function(r,s){if(t.length>0){var o=t.slice(0,r),a=o.slice(0,1),l=t.slice(r);switch(e.timePattern[s]){case"h":parseInt(a,10)>n.maxHourFirstDigit?o="0"+a:parseInt(o,10)>n.maxHours&&(o=n.maxHours+"");break;case"m":case"s":parseInt(a,10)>n.maxMinutesFirstDigit?o="0"+a:parseInt(o,10)>n.maxMinutes&&(o=n.maxMinutes+"")}i+=o,t=l}})),this.getFixedTimeString(i)},getFixedTimeString:function(t){var e,i,n,r=this,s=r.timePattern,o=[],a=0,l=0,h=0,c=0,d=0,p=0;return 6===t.length&&(s.forEach((function(t,e){switch(t){case"s":a=2*e;break;case"m":l=2*e;break;case"h":h=2*e}})),p=h,d=l,c=a,e=parseInt(t.slice(c,c+2),10),i=parseInt(t.slice(d,d+2),10),n=parseInt(t.slice(p,p+2),10),o=this.getFixedTime(n,i,e)),4===t.length&&r.timePattern.indexOf("s")<0&&(s.forEach((function(t,e){switch(t){case"m":l=2*e;break;case"h":h=2*e}})),p=h,d=l,e=0,i=parseInt(t.slice(d,d+2),10),n=parseInt(t.slice(p,p+2),10),o=this.getFixedTime(n,i,e)),r.time=o,0===o.length?t:s.reduce((function(t,e){switch(e){case"s":return t+r.addLeadingZero(o[2]);case"m":return t+r.addLeadingZero(o[1]);case"h":return t+r.addLeadingZero(o[0])}}),"")},getFixedTime:function(t,e,i){return i=Math.min(parseInt(i||0,10),60),e=Math.min(e,60),[t=Math.min(t,60),e,i]},addLeadingZero:function(t){return(t<10?"0":"")+t}},t.exports=e},function(t,exports){"use strict";var e=function(t,e){var i=this;i.delimiter=e||""===e?e:" ",i.delimiterRE=e?new RegExp("\\"+e,"g"):"",i.formatter=t};e.prototype={setFormatter:function(t){this.formatter=t},format:function(t){var e=this;e.formatter.clear();for(var i,n="",r=!1,s=0,o=(t=(t=(t=t.replace(/[^\d+]/g,"")).replace(/^\+/,"B").replace(/\+/g,"").replace("B","+")).replace(e.delimiterRE,"")).length;s<o;s++)i=e.formatter.inputDigit(t.charAt(s)),/[\s()-]/g.test(i)?(n=i,r=!0):r||(n=i);return n=(n=n.replace(/[()]/g,"")).replace(/[\s-]/g,e.delimiter)}},t.exports=e},function(t,exports){"use strict";var e={blocks:{uatp:[4,5,6],amex:[4,6,5],diners:[4,6,4],discover:[4,4,4,4],mastercard:[4,4,4,4],dankort:[4,4,4,4],instapayment:[4,4,4,4],jcb15:[4,6,5],jcb:[4,4,4,4],maestro:[4,4,4,4],visa:[4,4,4,4],mir:[4,4,4,4],unionPay:[4,4,4,4],general:[4,4,4,4]},re:{uatp:/^(?!1800)1\d{0,14}/,amex:/^3[47]\d{0,13}/,discover:/^(?:6011|65\d{0,2}|64[4-9]\d?)\d{0,12}/,diners:/^3(?:0([0-5]|9)|[689]\d?)\d{0,11}/,mastercard:/^(5[1-5]\d{0,2}|22[2-9]\d{0,1}|2[3-7]\d{0,2})\d{0,12}/,dankort:/^(5019|4175|4571)\d{0,12}/,instapayment:/^63[7-9]\d{0,13}/,jcb15:/^(?:2131|1800)\d{0,11}/,jcb:/^(?:35\d{0,2})\d{0,12}/,maestro:/^(?:5[0678]\d{0,2}|6304|67\d{0,2})\d{0,12}/,mir:/^220[0-4]\d{0,12}/,visa:/^4\d{0,15}/,unionPay:/^(62|81)\d{0,14}/},getStrictBlocks:function(t){var e=t.reduce((function(t,e){return t+e}),0);return t.concat(19-e)},getInfo:function(t,i){var n=e.blocks,r=e.re;for(var s in i=!!i,r)if(r[s].test(t)){var o=n[s];return{type:s,blocks:i?this.getStrictBlocks(o):o}}return{type:"unknown",blocks:i?this.getStrictBlocks(n.general):n.general}}};t.exports=e},function(t,exports){"use strict";var e={noop:function(){},strip:function(t,e){return t.replace(e,"")}
99,getPostDelimiter:function(t,e,i){if(0===i.length)return t.slice(-e.length)===e?e:"";var n="";return i.forEach((function(e){t.slice(-e.length)===e&&(n=e)})),n},getDelimiterREByDelimiter:function(t){return new RegExp(t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"g")},getNextCursorPosition:function(t,e,i,n,r){return e.length===t?i.length:t+this.getPositionOffset(t,e,i,n,r)},getPositionOffset:function(t,e,i,n,r){var s,o,a;return s=this.stripDelimiters(e.slice(0,t),n,r),o=this.stripDelimiters(i.slice(0,t),n,r),0!==(a=s.length-o.length)?a/Math.abs(a):0},stripDelimiters:function(t,e,i){var n=this;if(0===i.length){var r=e?n.getDelimiterREByDelimiter(e):"";return t.replace(r,"")}return i.forEach((function(e){e.split("").forEach((function(e){t=t.replace(n.getDelimiterREByDelimiter(e),"")}))})),t},headStr:function(t,e){return t.slice(0,e)},getMaxLength:function(t){return t.reduce((function(t,e){return t+e}),0)},getPrefixStrippedValue:function(t,e,i,n,r,s,o,a,l){if(0===i)return t;if(t===e&&""!==t)return"";if(l&&"-"==t.slice(0,1)){var h="-"==n.slice(0,1)?n.slice(1):n;return"-"+this.getPrefixStrippedValue(t.slice(1),e,i,h,r,s,o,a,l)}if(n.slice(0,i)!==e&&!a)return o&&!n&&t?t:"";if(n.slice(-i)!==e&&a)return o&&!n&&t?t:"";var c=this.stripDelimiters(n,r,s);return t.slice(0,i)===e||a?t.slice(-i)!==e&&a?c.slice(0,-i-1):a?t.slice(0,-i):t.slice(i):c.slice(i)},getFirstDiffIndex:function(t,e){for(var i=0;t.charAt(i)===e.charAt(i);)if(""===t.charAt(i++))return-1;return i},getFormattedValue:function(t,e,i,n,r,s){var o="",a=r.length>0,l="";return 0===i?t:(e.forEach((function(e,h){if(t.length>0){var c=t.slice(0,e),d=t.slice(e);l=a?r[s?h-1:h]||l:n,s?(h>0&&(o+=l),o+=c):(o+=c,c.length===e&&h<i-1&&(o+=l)),t=d}})),o)},fixPrefixCursor:function(t,e,i,n){if(t){var r=t.value,s=i||n[0]||" ";if(t.setSelectionRange&&e&&!(e.length+s.length<=r.length)){var o=2*r.length;setTimeout((function(){t.setSelectionRange(o,o)}),1)}}},checkFullSelection:function(t){try{return(window.getSelection()||document.getSelection()||{}).toString().length===t.length}catch(t){}return!1},setSelection:function(t,e,i){if(t===this.getActiveElement(i)&&!(t&&t.value.length<=e))if(t.createTextRange){var n=t.createTextRange();n.move("character",e),n.select()}else try{t.setSelectionRange(e,e)}catch(t){console.warn("The input element type does not support selection")}},getActiveElement:function(t){var e=t.activeElement;return e&&e.shadowRoot?this.getActiveElement(e.shadowRoot):e},isAndroid:function(){return navigator&&/android/i.test(navigator.userAgent)},isAndroidBackspaceKeydown:function(t,e){return!!(this.isAndroid()&&t&&e)&&e===t.slice(0,-1)}};t.exports=e},function(t,exports){(function(e){"use strict";var i={assign:function(t,i){return i=i||{},(t=t||{}).creditCard=!!i.creditCard,t.creditCardStrictMode=!!i.creditCardStrictMode,t.creditCardType="",t.onCreditCardTypeChanged=i.onCreditCardTypeChanged||function(){},t.phone=!!i.phone,t.phoneRegionCode=i.phoneRegionCode||"AU",t.phoneFormatter={},t.time=!!i.time,t.timePattern=i.timePattern||["h","m","s"],t.timeFormat=i.timeFormat||"24",t.timeFormatter={},t.date=!!i.date,t.datePattern=i.datePattern||["d","m","Y"],t.dateMin=i.dateMin||"",t.dateMax=i.dateMax||"",t.dateFormatter={},t.numeral=!!i.numeral,t.numeralIntegerScale=i.numeralIntegerScale>0?i.numeralIntegerScale:0,t.numeralDecimalScale=i.numeralDecimalScale>=0?i.numeralDecimalScale:2,t.numeralDecimalMark=i.numeralDecimalMark||".",t.numeralThousandsGroupStyle=i.numeralThousandsGroupStyle||"thousand",t.numeralPositiveOnly=!!i.numeralPositiveOnly,t.stripLeadingZeroes=!1!==i.stripLeadingZeroes,t.signBeforePrefix=!!i.signBeforePrefix,t.tailPrefix=!!i.tailPrefix,t.swapHiddenInput=!!i.swapHiddenInput,t.numericOnly=t.creditCard||t.date||!!i.numericOnly,t.uppercase=!!i.uppercase,t.lowercase=!!i.lowercase,t.prefix=t.creditCard||t.date?"":i.prefix||"",t.noImmediatePrefix=!!i.noImmediatePrefix,t.prefixLength=t.prefix.length,t.rawValueTrimPrefix=!!i.rawValueTrimPrefix,t.copyDelimiter=!!i.copyDelimiter,t.initValue=void 0!==i.initValue&&null!==i.initValue?i.initValue.toString():"",t.delimiter=i.delimiter||""===i.delimiter?i.delimiter:i.date?"/":i.time?":":i.numeral?",":(i.phone," "),t.delimiterLength=t.delimiter.length,t.delimiterLazyShow=!!i.delimiterLazyShow,t.delimiters=i.delimiters||[],t.blocks=i.blocks||[],t.blocksLength=t.blocks.length,t.root="object"==typeof e&&e?e:window,t.document=i.document||t.root.document,t.maxLength=0,t.backspace=!1,t.result="",t.onValueChanged=i.onValueChanged||function(){},t}};t.exports=i}).call(exports,function(){return this}())}])})), 100/*! 101 * imagesLoaded PACKAGED v5.0.0 102 * JavaScript is all like "You images are done yet or what?" 103 * MIT License 104 */ 105function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},n=i[t]=i[t]||[];return n.includes(e)||n.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let n=i.indexOf(e);return-1!=n&&i.splice(n,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let n=this._onceEvents&&this._onceEvents[t];for(let r of i){n&&n[r]&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})), 106/*! 107 * imagesLoaded v5.0.0 108 * JavaScript is all like "You images are done yet or what?" 109 * MIT License 110 */ 111function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let $=t.jQuery,i=t.console;function n(t,e,r){if(!(this instanceof n))return new n(t,e,r);let s=t;"string"==typeof t&&(s=document.querySelectorAll(t)),s?(this.elements=function(t){return Array.isArray(t)?t:"object"==typeof t&&"number"==typeof t.length?[...t]:[t]}(s),this.options={},"function"==typeof e?r=e:Object.assign(this.options,e),r&&this.on("always",r),this.getImages(),$&&(this.jqDeferred=new $.Deferred),setTimeout(this.check.bind(this))):i.error(`Bad element for imagesLoaded ${s||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEac
111h(this.addElementImages,this)};const r=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!r.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const s=/url\((['"])?(.*?)\1\)/gi;function o(t){this.img=t}function a(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=s.exec(e.backgroundImage);for(;null!==i;){let n=i&&i[2];n&&this.addBackground(n,t),i=s.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new o(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new a(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&i&&i.log(`progress: ${n}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},o.prototype=Object.create(e.prototype),o.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},o.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},o.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,n="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,n,e])},o.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},o.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},o.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},o.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},a.prototype=Object.create(o.prototype),a.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},a.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},a.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&($=e,$.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise($(this))})},n.makeJQueryPlugin(),n})), 112/*! 113 * Jarallax v2.0.3 (https://github.com/nk-o/jarallax) 114 * Copyright 2022 nK <https://nkdev.info> 115 * Licensed under MIT (https://github.com/nk-o/jarallax/blob/master/LICENSE) 116 */ 117function(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).jarallax=e()}(this,(function(){"use strict";function t(t){"complete"===document.readyState||"interactive"===document.readyState?t():document.addEventListener("DOMContentLoaded",t,{capture:!0,once:!0,passive:!0})}let e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var i=e;const{navigator:n}=i,r=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n.userAgent);let s,o;function a(){r?(!s&&document.body&&(s=document.createElement("div"),s.style.cssText="position: fixed; top: -9999px; left: 0; height: 100vh; width: 0;",document.body.appendChild(s)),o=(s?s.clientHeight:0)||i.innerHeight||document.documentElement.clientHeight):o=i.innerHeight||document.documentElement.clientHeight}a(),i.addEventListener("resize",a),i.addEventListener("orientationchange",a),i.addEventListener("load",a),t((()=>{a()}));const l=[];function h(){l.length&&(l.forEach(((t,e)=>{const{instance:n,oldData:r}=t,s=n.$item.getBoundingClientRect(),a={width:s.width,height:s.height,top:s.top,bottom:s.bottom,wndW:i.innerWidth,wndH:o},h=!r||r.wndW!==a.wndW||r.wndH!==a.wndH||r.width!==a.width||r.height!==a.height,c=h||!r||r.top!==a.top||r.bottom!==a.bottom;l[e].oldData=a,h&&n.onResize(),c&&n.onScroll()})),i.requestAnimationFrame(h))}let c=0;class d{constructor(t,e){const i=this;
117i.instanceID=c,c+=1,i.$item=t,i.defaults={type:"scroll",speed:.5,imgSrc:null,imgElement:".jarallax-img",imgSize:"cover",imgPosition:"50% 50%",imgRepeat:"no-repeat",keepImg:!1,elementInViewport:null,zIndex:-100,disableParallax:!1,disableVideo:!1,videoSrc:null,videoStartTime:0,videoEndTime:0,videoVolume:0,videoLoop:!0,videoPlayOnlyVisible:!0,videoLazyLoading:!0,onScroll:null,onInit:null,onDestroy:null,onCoverImage:null};const r=i.$item.dataset||{},s={};if(Object.keys(r).forEach((t=>{const e=t.substr(0,1).toLowerCase()+t.substr(1);e&&void 0!==i.defaults[e]&&(s[e]=r[t])})),i.options=i.extend({},i.defaults,s,e),i.pureOptions=i.extend({},i.options),Object.keys(i.options).forEach((t=>{"true"===i.options[t]?i.options[t]=!0:"false"===i.options[t]&&(i.options[t]=!1)})),i.options.speed=Math.min(2,Math.max(-1,parseFloat(i.options.speed))),"string"==typeof i.options.disableParallax&&(i.options.disableParallax=new RegExp(i.options.disableParallax)),i.options.disableParallax instanceof RegExp){const t=i.options.disableParallax;i.options.disableParallax=()=>t.test(n.userAgent)}if("function"!=typeof i.options.disableParallax&&(i.options.disableParallax=()=>!1),"string"==typeof i.options.disableVideo&&(i.options.disableVideo=new RegExp(i.options.disableVideo)),i.options.disableVideo instanceof RegExp){const t=i.options.disableVideo;i.options.disableVideo=()=>t.test(n.userAgent)}"function"!=typeof i.options.disableVideo&&(i.options.disableVideo=()=>!1);let o=i.options.elementInViewport;o&&"object"==typeof o&&void 0!==o.length&&([o]=o),o instanceof Element||(o=null),i.options.elementInViewport=o,i.image={src:i.options.imgSrc||null,$container:null,useImgTag:!1,position:"fixed"},i.initImg()&&i.canInitParallax()&&i.init()}css(t,e){return"string"==typeof e?i.getComputedStyle(t).getPropertyValue(e):(Object.keys(e).forEach((i=>{t.style[i]=e[i]})),t)}extend(t,...e){return t=t||{},Object.keys(e).forEach((i=>{e[i]&&Object.keys(e[i]).forEach((n=>{t[n]=e[i][n]}))})),t}getWindowData(){return{width:i.innerWidth||document.documentElement.clientWidth,height:o,y:document.documentElement.scrollTop}}initImg(){const t=this;let e=t.options.imgElement;return e&&"string"==typeof e&&(e=t.$item.querySelector(e)),e instanceof Element||(t.options.imgSrc?(e=new Image,e.src=t.options.imgSrc):e=null),e&&(t.options.keepImg?t.image.$item=e.cloneNode(!0):(t.image.$item=e,t.image.$itemParent=e.parentNode),t.image.useImgTag=!0),!!t.image.$item||(null===t.image.src&&(t.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",t.image.bgImage=t.css(t.$item,"background-image")),!(!t.image.bgImage||"none"===t.image.bgImage))}canInitParallax(){return!this.options.disableParallax()}init(){const t=this,e={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"};let n={pointerEvents:"none",transformStyle:"preserve-3d",backfaceVisibility:"hidden",willChange:"transform,opacity"};if(!t.options.keepImg){const e=t.$item.getAttribute("style");if(e&&t.$item.setAttribute("data-jarallax-original-styles",e),t.image.useImgTag){const e=t.image.$item.getAttribute("style");e&&t.image.$item.setAttribute("data-jarallax-original-styles",e)}}if("static"===t.css(t.$item,"position")&&t.css(t.$item,{position:"relative"}),"auto"===t.css(t.$item,"z-index")&&t.css(t.$item,{zIndex:0}),t.image.$container=document.createElement("div"),t.css(t.image.$container,e),t.css(t.image.$container,{"z-index":t.options.zIndex}),"fixed"===this.image.position&&t.css(t.image.$container,{"-webkit-clip-path":"polygon(0 0, 100% 0, 100% 100%, 0 100%)","clip-path":"polygon(0 0, 100% 0, 100% 100%, 0 100%)"}),t.image.$container.setAttribute("id",`jarallax-container-${t.instanceID}`),t.$item.appendChild(t.image.$container),t.image.useImgTag?n=t.extend({"object-fit":t.options.imgSize,"object-position":t.options.imgPosition,"max-width":"none"},e,n):(t.image.$item=document.createElement("div"),t.image.src&&(n=t.extend({"background-position":t.options.imgPosition,"background-size":t.options.imgSize,"background-repeat":t.options.imgRepeat,"background-image":t.image.bgImage||`url("${t.image.src}")`},e,n))),"opacity"!==t.options.type&&"scale"!==t.options.type&&"scale-opacity"!==t.options.type&&1!==t.options.speed||(t.image.position="absolute"),"fixed"===t.image.position){const e=function(t){const e=[];for(;null!==t.parentElement;)1===(t=t.parentElement).nodeType&&e.push(t);return e}(t.$item).filter((t=>{const e=i.getComputedStyle(t),n=e["-webkit-transform"]||e["-moz-transform"]||e.transform;return n&&"none"!==n||/(auto|scroll)/.test(e.overflow+e["overflow-y"]+e["overflow-x"])}));t.image.position=e.length?"absolute":"fixed"}n.position=t.image.position,t.css(t.image.$item,n),t.image.$container.appendChild(t.image.$item),t.onResize(),t.onScroll(!0),t.options.onInit&&t.options.onInit.call(t),"none"!==t.css(t.$item,"background-image")&&t.css(t.$item,{"background-image":"none"}),t.addToParallaxList()}addToParallaxList(){l.push({instance:this}),1===l.length&&i.requestAnimationFrame(h)}removeFromParallaxList(){const t=this;l.forEach(((e,i)=>{e.instance.instanceID===t.instanceID&&l.splice(i,1)}))}destroy(){const t=this;t.removeFromParallaxList();const e=t.$item.getAttribute("data-jarallax-original-styles");if(t.$item.removeAttribute("data-jarallax-original-styles"),e?t.$item.setAttribute("style",e):t.$item.removeAttribute("style"),t.image.useImgTag){const i=t.image.$item.getAttribute("data-jarallax-original-styles");t.image.$item.removeAttribute("data-jarallax-original-styles"),i?t.image.$item.setAttribute("style",e):t.image.$item.removeAttribute("style"),t.image.$itemParent&&t.image.$itemParent.appendChild(t.image.$item)}t.image.$container&&t.image.$container.parentNode.removeChild(t.image.$container),t.options.onDestroy&&t.options.onDestroy.call(t),delete t.$item.jarallax}clipContainer(){}coverImage(){const t=this,e=t.image.$container.getBoundingClientRect(),i=e.height,{speed:n}=t.options,r="scroll"===t.options.type||"scroll-opacity"===t.options.type;let s=0,a=i,l=0;return r&&(0>n?(s=n*Math.max(i,o),o<i&&(s-=n*(i-o))):s=n*(i+o),1<n?a=Math.abs(s-o):0>n?a=s/n+Math.abs(s):a+=(o-i)*(1-n),s/=2),t.parallaxScrollDistance=s,l=r?(o-a)/2:(i-a)/2,t.css(t.image.$item,{height:`${a}px`,marginTop:`${l}px`,left:"fixed"===t.image.position?`${e.left}px`:"0",width:`${e.width}px`}),t.options.onCoverImage&&t.options.onCoverImage.call(t),{image:{height:a,marginTop:l},container:e}}isVisible(){return this.isElementInViewport||!1}onScroll(t){const e=this,n=e.$item.getBoundingClientRect(),r=n.top,s=n.height,a={};let l=n;if(e.options.elementInViewport&&(l=e.options.elementInViewport.getBoundingClientRect()),e.isElementInViewport=0<=l.bottom&&0<=l.right&&l.top<=o&&l.left<=i.innerWidth,!t&&!e.isElementInViewport)return;const h=Math.max(0,r),c=Math.max(0,s+r),d=Math.max(0,-r),p=Math.max(0,r+s-o),u=Math.max(0,s-(r+s-o)),f=Math.max(0,-r+o-s),m=1-(o-r)/(o+s)*2;let g=1;if(s<o?g=1-(d||p)/s:c<=o?g=c/o:u<=o&&(g=u/o),"opacity"!==e.options.type&&"scale-opacity"!==e.options.type&&"scroll-opacity"!==e.options.type||(a.transform="translate3d(0,
1170,0)",a.opacity=g),"scale"===e.options.type||"scale-opacity"===e.options.type){let t=1;0>e.options.speed?t-=e.options.speed*g:t+=e.options.speed*(1-g),a.transform=`scale(${t}) translate3d(0,0,0)`}if("scroll"===e.options.type||"scroll-opacity"===e.options.type){let t=e.parallaxScrollDistance*m;"absolute"===e.image.position&&(t-=r),a.transform=`translate3d(0,${t}px,0)`}e.css(e.image.$item,a),e.options.onScroll&&e.options.onScroll.call(e,{section:n,beforeTop:h,beforeTopEnd:c,afterTop:d,beforeBottom:p,beforeBottomEnd:u,afterBottom:f,visiblePercent:g,fromViewportCenter:m})}onResize(){this.coverImage()}}const p=function(t,e,...i){("object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)&&(t=[t]);const n=t.length;let r,s=0;for(;s<n;s+=1)if("object"==typeof e||void 0===e?t[s].jarallax||(t[s].jarallax=new d(t[s],e)):t[s].jarallax&&(r=t[s].jarallax[e].apply(t[s].jarallax,i)),void 0!==r)return r;return t};p.constructor=d;const $=i.jQuery;if(void 0!==$){const t=function(...t){Array.prototype.unshift.call(t,this);const e=p.apply(i,t);return"object"!=typeof e?e:this};t.constructor=p.constructor;const e=$.fn.jarallax;$.fn.jarallax=t,$.fn.jarallax.noConflict=function(){return $.fn.jarallax=e,this}}return t((()=>{p(document.querySelectorAll("[data-jarallax]"))})),p})),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).lightGallery=e()}(this,(function(){"use strict";var t=function(){return(t=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},e="lgUpdateSlides",i="lgPosterClick",n="lgBeforeNextSlide",r="lgBeforePrevSlide",s={mode:"lg-slide",easing:"ease",speed:400,licenseKey:"0000-0000-000-0000",height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:300,container:"",startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:"1280-720",loadYouTubePoster:!0,defaultCaptionHeight:0,ariaLabelledby:"",ariaDescribedby:"",closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:0,iframeWidth:"100%",iframeHeight:"100%",iframeMaxWidth:"100%",iframeMaxHeight:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],extraProps:[],exThumbImage:"",isMobile:void 0,mobileSettings:{controls:!1,showCloseIcon:!1,download:!1},plugins:[],strings:{closeGallery:"Close gallery",toggleMaximize:"Toggle maximize",previousSlide:"Previous slide",nextSlide:"Next slide",download:"Download",playVideo:"Play video"}},o=function(){function t(t){return this.cssVenderPrefixes=["TransitionDuration","TransitionTimingFunction","Transform","Transition"],this.selector=this._getSelector(t),this.firstElement=this._getFirstEl(),this}return t.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))},t.prototype._getSelector=function(t,e){return void 0===e&&(e=document),"string"!=typeof t?t:(e=e||document,"#"===t.substring(0,1)?e.querySelector(t):e.querySelectorAll(t))},t.prototype._each=function(t){return this.selector?(void 0!==this.selector.length?[].forEach.call(this.selector,t):t(this.selector,0),this):this},t.prototype._setCssVendorPrefix=function(t,e,i){var n=e.replace(/-([a-z])/gi,(function(t,e){return e.toUpperCase()}));-1!==this.cssVenderPrefixes.indexOf(n)?(t.style[n.charAt(0).toLowerCase()+n.slice(1)]=i,t.style["webkit"+n]=i,t.style["moz"+n]=i,t.style["ms"+n]=i,t.style["o"+n]=i):t.style[n]=i},t.prototype._getFirstEl=function(){return this.selector&&void 0!==this.selector.length?this.selector[0]:this.selector},t.prototype.isEventMatched=function(t,e){var i=e.split(".");return t.split(".").filter((function(t){return t})).every((function(t){return-1!==i.indexOf(t)}))},t.prototype.attr=function(t,e){return void 0===e?this.firstElement?this.firstElement.getAttribute(t):"":(this._each((function(i){i.setAttribute(t,e)})),this)},t.prototype.find=function(t){return a(this._getSelector(t,this.selector))},t.prototype.first=function(){return this.selector&&void 0!==this.selector.length?a(this.selector[0]):a(this.selector)},t.prototype.eq=function(t){return a(this.selector[t])},t.prototype.parent=function(){return a(this.selector.parentElement)},t.prototype.get=function(){return this._getFirstEl()},t.prototype.removeAttr=function(t){var e=t.split(" ");return this._each((function(t){e.forEach((function(e){return t.removeAttribute(e)}))})),this},t.prototype.wrap=function(t){if(!this.firstElement)return this;var e=document.createElement("div");return e.className=t,this.firstElement.parentNode.insertBefore(e,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),e.appendChild(this.firstElement),this},t.prototype.addClass=function(t){return void 0===t&&(t=""),this._each((function(e){t.split(" ").forEach((function(t){t&&e.classList.add(t)}))})),this},t.prototype.removeClass=function(t){return this._each((function(e){t.split(" ").forEach((function(t){t&&e.classList.remove(t)}))}
vendor: 9,221 bytes, line 117
117)),this},t.prototype.hasClass=function(t){return!!this.firstElement&&this.firstElement.classList.contains(t)},t.prototype.hasAttribute=function(t){return!!this.firstElement&&this.firstElement.hasAttribute(t)},t.prototype.toggleClass=function(t){return this.firstElement?(this.hasClass(t)?this.removeClass(t):this.addClass(t),this):this},t.prototype.css=function(t,e){var i=this;return this._each((function(n){i._setCssVendorPrefix(n,t,e)})),this},t.prototype.on=function(e,i){var n=this;return this.selector?(e.split(" ").forEach((function(e){Array.isArray(t.eventListeners[e])||(t.eventListeners[e]=[]),t.eventListeners[e].push(i),n.selector.addEventListener(e.split(".")[0],i)})),this):this},t.prototype.once=function(t,e){var i=this;return this.on(t,(function(){i.off(t),e(t)})),this},t.prototype.off=function(e){var i=this;return this.selector?(Object.keys(t.eventListeners).forEach((function(n){i.isEventMatched(e,n)&&(t.eventListeners[n].forEach((function(t){i.selector.removeEventListener(n.split(".")[0],t)})),t.eventListeners[n]=[])})),this):this},t.prototype.trigger=function(t,e){if(!this.firstElement)return this;var i=new CustomEvent(t.split(".")[0],{detail:e||null});return this.firstElement.dispatchEvent(i),this},t.prototype.load=function(t){var e=this;return fetch(t).then((function(t){return t.text()})).then((function(t){e.selector.innerHTML=t})),this},t.prototype.html=function(t){return void 0===t?this.firstElement?this.firstElement.innerHTML:"":(this._each((function(e){e.innerHTML=t})),this)},t.prototype.append=function(t){return this._each((function(e){"string"==typeof t?e.insertAdjacentHTML("beforeend",t):e.appendChild(t)})),this},t.prototype.prepend=function(t){return this._each((function(e){e.insertAdjacentHTML("afterbegin",t)})),this},t.prototype.remove=function(){return this._each((function(t){t.parentNode.removeChild(t)})),this},t.prototype.empty=function(){return this._each((function(t){t.innerHTML=""})),this},t.prototype.scrollTop=function(t){return void 0!==t?(document.body.scrollTop=t,document.documentElement.scrollTop=t,this):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},t.prototype.scrollLeft=function(t){return void 0!==t?(document.body.scrollLeft=t,document.documentElement.scrollLeft=t,this):window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},t.prototype.offset=function(){if(!this.firstElement)return{left:0,top:0};var t=this.firstElement.getBoundingClientRect(),e=a("body").style().marginLeft;return{left:t.left-parseFloat(e)+this.scrollLeft(),top:t.top+this.scrollTop()}},t.prototype.style=function(){return this.firstElement?this.firstElement.currentStyle||window.getComputedStyle(this.firstElement):{}},t.prototype.width=function(){var t=this.style();return this.firstElement.clientWidth-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)},t.prototype.height=function(){var t=this.style();return this.firstElement.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)},t.eventListeners={},t}();function a(t){return function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:null};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}}(),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),new o(t)}var l=["src","sources","subHtml","subHtmlUrl","html","video","poster","slideName","responsive","srcset","sizes","iframe","downloadUrl","download","width","facebookShareUrl","tweetText","iframeTitle","twitterShareUrl","pinterestShareUrl","pinterestText","fbHtml","disqusIdentifier","disqusUrl"];function h(t){return"href"===t?"src":t=(t=(t=t.replace("data-","")).charAt(0).toLowerCase()+t.slice(1)).replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))}var c=function(t,e,i,n){void 0===i&&(i=0);var r=a(t).attr("data-lg-size")||n;if(r){var s=r.split(",");if(s[1])for(var o=window.innerWidth,l=0;l<s.length;l++){var h=s[l];if(parseInt(h.split("-")[2],10)>o){r=h;break}l===s.length-1&&(r=h)}var c=r.split("-"),d=parseInt(c[0],10),p=parseInt(c[1],10),u=e.width(),f=e.height()-i,m=Math.min(u,d),g=Math.min(f,p),v=Math.min(m/d,g/p);return{width:d*v,height:p*v}}},d=function(t,e,i,n,r){if(r){var s=a(t).find("img").first();if(s.get()){var o=e.get().getBoundingClientRect(),l=o.width,h=e.height()-(i+n),c=s.width(),d=s.height(),p=s.style(),u=(l-c)/2-s.offset().left+(parseFloat(p.paddingLeft)||0)+(parseFloat(p.borderLeft)||0)+a(window).scrollLeft()+o.left,f=(h-d)/2-s.offset().top+(parseFloat(p.paddingTop)||0)+(parseFloat(p.borderTop)||0)+a(window).scrollTop()+i;return"translate3d("+(u*=-1)+"px, "+(f*=-1)+"px, 0) scale3d("+c/r.width+", "+d/r.height+", 1)"}}},p=function(t,e,i,n,r,s){var o="<img "+i+" "+(n?'srcset="'+n+'"':"")+" "+(r?'sizes="'+r+'"':"")+' class="lg-object lg-image" data-index="'+t+'" src="'+e+'" />',a="";return s&&(a=("string"==typeof s?JSON.parse(s):s).map((function(t){var e="";return Object.keys(t).forEach((function(i){e+=" "+i+'="'+t[i]+'"'})),"<source "+e+"></source>"}))),""+a+o},u=function(t,e,i,n){var r=[],s=function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<i;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,r++)n[r]=s[o];return n}(l,e);return[].forEach.call(t,(function(t){for(var e={},o=0;o<t.attributes.length;o++){var l=t.attributes[o];if(l.specified){var c=h(l.name),d="";s.indexOf(c)>-1&&(d=c),d&&(e[d]=l.value)}}var p=a(t),u=p.find("img").first().attr("alt"),f=p.attr("title"),m=n?p.attr(n):p.find("img").first().attr("src");e.thumb=m,i&&!e.subHtml&&(e.subHtml=f||u||""),e.alt=u||f||"",r.push(e)})),r},f=0,m=function(){function l(t,e){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!t)return this;if(f++,this.lgId=f,this.el=t,this.LGel=a(t),this.generateSettings(e),this.buildModules(),this.settings.dynamic&&void 0!==this.settings.dynamicEl&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}return l.prototype.generateSettings=function(e){if(this.settings=t(t({},s),e),this.settings.isMobile&&"function"==typeof this.settings.isMobile?this.settings.isMobile():/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)){var i=t(t({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=t(t({},this.settings),i)}},l.prototype.normalizeSettings=function(){this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container||(this.settings.container=document.body),this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},l.prototype.init=function(){var t=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger("lgInit",{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout((function(){t.enableDrag(),t.enableSwipe(),t.triggerPosterClick()}),50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},l.prototype.openGalleryOnItemClick=function(){for(var t=this,e=function(e){var n=i.items[e],r=a(n),s=o.generateUUID();r.attr("data-lg-id",s).on("click.lgcustom-item-"+s,(function(i){i.preventDefault();var r=t.settings.index||e;t.openGallery(r,n)}))},i=this,n=0;n<this.items.length;n++)e(n)},l.prototype.buildModules=function(){var t=this;this.settings.plugins.forEach((function(e){t.plugins.push(new e(t,a))}))},l.prototype.validateLicense=function(){this.settings.licenseKey?"0000-0000-000-0000"===this.settings.licenseKey&&console.warn("lightGallery: "+this.settings.licenseKey+" license key is not valid for production use"):console.error("Please provide a valid license key")},l.prototype.getSlideItem=function(t){return a(this.getSlideItemId(t))},l.prototype.getSlideItemId=function(t){return"#lg-item-"+this.lgId+"-"+t},l.prototype.getIdName=function(t){return t+"-"+this.lgId},l.prototype.getElementById=function(t){return a("#"+this.getIdName(t))},l.prototype.manageSingleSlideClassName=function(){this.galleryItems.length<2?this.outer.addClass("lg-single-item"):this.outer.removeClass("lg-single-item")},l.prototype.buildStructure=function(){var t=this;if(!this.$container||!this.$container.get()){var e="",i="";this.settings.controls&&(e='<button type="button" id="'+this.getIdName("lg-prev")+'" aria-label="'+this.settings.strings.previousSlide+'" class="lg-prev lg-icon"> '+this.settings.prevHtml+' </button>\n <button type="button" id="'+this.getIdName("lg-next")+'" aria-label="'+this.settings.strings.nextSlide+'" class="lg-next lg-icon"> '+this.settings.nextHtml+" </button>"),".lg-item"!==this.settings.appendSubHtmlTo&&(i='<div class="lg-sub-html" role="status" aria-l
117ive="polite"></div>');var n="";this.settings.allowMediaOverlap&&(n+="lg-media-overlap ");var r=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",s=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",o="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),l=this.settings.closable&&this.settings.showCloseIcon?'<button type="button" aria-label="'+this.settings.strings.closeGallery+'" id="'+this.getIdName("lg-close")+'" class="lg-close lg-icon"></button>':"",h=this.settings.showMaximizeIcon?'<button type="button" aria-label="'+this.settings.strings.toggleMaximize+'" id="'+this.getIdName("lg-maximize")+'" class="lg-maximize lg-icon"></button>':"",c='\n <div class="'+o+'" id="'+this.getIdName("lg-container")+'" tabindex="-1" aria-modal="true" '+r+" "+s+' role="dialog"\n >\n <div id="'+this.getIdName("lg-backdrop")+'" class="lg-backdrop"></div>\n\n <div id="'+this.getIdName("lg-outer")+'" class="lg-outer lg-use-css3 lg-css3 lg-hide-items '+n+' ">\n\n <div id="'+this.getIdName("lg-content")+'" class="lg-content">\n <div id="'+this.getIdName("lg-inner")+'" class="lg-inner">\n </div>\n '+e+'\n </div>\n <div id="'+this.getIdName("lg-toolbar")+'" class="lg-toolbar lg-group">\n '+h+"\n "+l+"\n </div>\n "+(".lg-outer"===this.settings.appendSubHtmlTo?i:"")+'\n <div id="'+this.getIdName("lg-components")+'" class="lg-components">\n '+(".lg-sub-html"===this.settings.appendSubHtmlTo?i:"")+"\n </div>\n </div>\n </div>\n ";a(this.settings.container).append(c),document.body!==this.settings.container&&a(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var d=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(d+="lg-grab "),this.outer.addClass(d),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append('<a id="'+this.getIdName("lg-download")+'" target="_blank" rel="noopener" aria-label="'+this.settings.strings.download+'" download class="lg-download lg-icon"></a>'),this.counter(),a(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,(function(){t.refreshOnResize()})),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},l.prototype.refreshOnResize=function(){if(this.lgOpened){var t=this.galleryItems[this.index].__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var e=this.mediaContainerPosition,i=e.top,n=e.bottom;if(this.currentImageSize=c(this.items[this.index],this.outer,i+n,t&&this.settings.videoMaxSize),t&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var r=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",r)}this.LGel.trigger("lgContainerResize")}},l.prototype.resizeVideoSlide=function(t,e){var i=this.getVideoContStyle(e);this.getSlideItem(t).find(".lg-video-cont").attr("style",i)},l.prototype.updateSlides=function(t,i){if(this.index>t.length-1&&(this.index=t.length-1),1===t.length&&(this.index=0),t.length){var n=this.galleryItems[i].src;this.galleryItems=t,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var r=0;this.galleryItems.some((function(t,e){return t.src===n&&(r=e,!0)})),this.currentItemsInDom=this.organizeSlideItems(r,-1),this.loadContent(r,!0),this.get
vendor: 5,560 bytes, lines 117-118
117SlideItem(r).addClass("lg-current"),this.index=r,this.updateCurrentCounter(r),this.LGel.trigger(e)}else this.closeGallery()},l.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if("this"===this.settings.selector)this.items.push(this.el);else if(this.settings.selector)if("string"==typeof this.settings.selector)if(this.settings.selectWithin){var t=a(this.settings.selectWithin);this.items=t.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector);else this.items=this.settings.selector;else this.items=this.el.children;return u(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},l.prototype.openGallery=function(t,e){var i=this;if(void 0===t&&(t=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.get().focus(),this.outer.removeClass("lg-hide-items"),this.$container.addClass("lg-show");var n=this.getItemsToBeInsertedToDom(t,t);this.currentItemsInDom=n;var r="";n.forEach((function(t){r=r+'<div id="'+t+'" class="lg-item"></div>'})),this.$inner.append(r),this.addHtml(t);var s="";this.mediaContainerPosition=this.getMediaContainerPosition();var o=this.mediaContainerPosition,l=o.top,h=o.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(l,h);var p=this.galleryItems[t].__slideVideoInfo;this.zoomFromOrigin&&e&&(this.currentImageSize=c(e,this.outer,l+h,p&&this.settings.videoMaxSize),s=d(e,this.outer,l,h,this.currentImageSize)),this.zoomFromOrigin&&s||(this.outer.addClass(this.settings.startClass),this.getSlideItem(t).removeClass("lg-complete"));var u=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout((function(){i.outer.addClass("lg-components-open")}),u),this.index=t,this.LGel.trigger("lgBeforeOpen"),this.getSlideItem(t).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=a(window).scrollTop(),setTimeout((function(){if(i.zoomFromOrigin&&s){var e=i.getSlideItem(t);e.css("transform",s),setTimeout((function(){e.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",i.settings.startAnimationDuration+"ms"),i.outer.addClass("lg-zoom-from-image")})),setTimeout((function(){e.css("transform","translate3d(0, 0, 0)")}),100)}setTimeout((function(){i.$backdrop.addClass("in"),i.$container.addClass("lg-show-in")}),10),i.zoomFromOrigin&&s||setTimeout((function(){i.outer.addClass("lg-visible")}),i.settings.backdropDuration),i.slide(t,!1,!1,!1),i.LGel.trigger("lgAfterOpen")})),document.body===this.settings.container&&a("html").addClass("lg-on")}},l.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var t=this.$toolbar.get().clientHeight||0,e=this.outer.find(".lg-components .lg-sub-html").get(),i=this.settings.defaultCaptionHeight||e&&e.clientHeight||0,n=this.outer.find(".lg-thumb-outer").get();return{top:t,bottom:(n?n.clientHeight:0)+i}},l.prototype.setMediaContainerPosition=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.$content.css("top",t+"px").css("bottom",e+"px")},l.prototype.hideBars=function(){var t=this;setTimeout((function(){t.outer.removeClass("lg-hide-items"),t.settings.hideBarsDelay>0&&(t.outer.on("mousemove.lg click.lg touchstart.lg",(function(){t.outer.removeClass("lg-hide-items"),clearTimeout(t.hideBarTimeout),t.hideBarTimeout=setTimeout((function(){t.outer.addClass("lg-hide-items")}),t.settings.hideBarsDelay)})),t.outer.trigger("mousemove.lg"))}),this.settings.showBarsAfter)},l.prototype.initPictureFill=function(t){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[t.get()]})}catch(t){console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},l.prototype.counter=function(){if(this.settings.counter){var t='<div class="lg-counter" role="status" aria-live="polite">\n <span id="'+this.getIdName("lg-counter-current")+'" class="lg-counter-current">'+(this.index+1)+' </span> /\n <span id="'+this.getIdName("lg-counter-all")+'" class="lg-counter-all">'+this.galleryItems.length+" </span></div>";this.outer.find(this.settings.appendCounterTo).append(t)}},l.prototype.addHtml=function(t){var e,i 118;if(this.galleryItems[t].subHtmlUrl?i=this.galleryItems[t].subHtmlUrl:e=this.galleryItems[t].subHtml,!i)if(e){var n=e.substring(0,1);"."!==n&&"#"!==n||(e=this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?a(this.items).eq(t).find(e).first().html():a(e).first().html())}else e="";if(".lg-item"!==this.settings.appendSubHtmlTo)i?this.outer.find(".lg-sub-html").load(i):this.outer.find(".lg-sub-html").html(e);else{var r=a(this.getSlideItemId(t));i?r.load(i):r.append('<div class="lg-sub-html">'+e+"</div>")}null!=e&&(""===e?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger("lgAfterAppendSubHtml",{index:t})},l.prototype.preload=function(t){for(var e=1;e<=this.settings.preload&&!(e>=this.galleryItems.length-t);e++)this.loadContent(t+e,!1);for(var i=1;i<=this.settings.preload&&!(t-i<0);i++)this.loadContent(t-i,!1)},l.prototype.getDummyImgStyles=function(t){return t?"width:"+t.width+"px;\n margin-left: -"+t.width/2+"px;\n margin-top: -"+t.height/2+"px;\n height:"+t.height+"px":""},l.prototype.getVideoContStyle=function(t){return t?"width:"+t.width+"px;\n height:"+t.height+"px":""}
118,l.prototype.getDummyImageContent=function(t,e,i){var n;if(this.settings.dynamic||(n=a(this.items).eq(e)),n){var r;if(!(r=this.settings.exThumbImage?n.attr(this.settings.exThumbImage):n.find("img").first().attr("src")))return"";var s="<img "+i+' style="'+this.getDummyImgStyles(this.currentImageSize)+'" class="lg-dummy-img" src="'+r+'" />';return t.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),s}return""},l.prototype.setImgMarkup=function(t,e,i){var n=this.galleryItems[i],r=n.alt,s=n.srcset,o=n.sizes,a=n.sources,l=r?'alt="'+r+'"':"",h='<picture class="lg-img-wrap"> '+(this.isFirstSlideWithZoomAnimation()?this.getDummyImageContent(e,i,l):p(i,t,l,s,o,a))+"</picture>";e.prepend(h)},l.prototype.onSlideObjectLoad=function(t,e,i,n){var r=t.find(".lg-object").first();(function(t){return!!t&&!!t.complete&&0!==t.naturalWidth})(r.get())||e?i():(r.on("load.lg error.lg",(function(){i&&i()})),r.on("error.lg",(function(){n&&n()})))},l.prototype.onLgObjectLoad=function(t,e,i,n,r,s){var o=this;this.onSlideObjectLoad(t,s,(function(){o.triggerSlideItemLoad(t,e,i,n,r)}),(function(){t.addClass("lg-complete lg-complete_"),t.html('<span class="lg-error-msg">Oops... Failed to load content...</span>')}))},l.prototype.triggerSlideItemLoad=function(t,e,i,n,r){var s=this,o=this.galleryItems[e],a=r&&"video"===this.getSlideType(o)&&!o.poster?n:0;setTimeout((function(){t.addClass("lg-complete lg-complete_"),s.LGel.trigger("lgSlideItemLoad",{index:e,delay:i||0,isFirstSlide:r})}),a)},l.prototype.isFirstSlideWithZoomAnimation=function(){return!(this.lGalleryOn||!this.zoomFromOrigin||!this.currentImageSize)},l.prototype.addSlideVideoInfo=function(t){var e=this;t.forEach((function(t,i){t.__slideVideoInfo=function(t,e,i){if(!t)return e?{html5:!0}:void console.error("lightGallery :- data-src is not provided on slide item "+(i+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");var n=t.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),r=t.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),s=t.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);return n?{youtube:n}:r?{vimeo:r}:s?{wistia:s}:void 0}(t.src,!!t.video,i),t.__slideVideoInfo&&e.settings.loadYouTubePoster&&!t.poster&&t.__slideVideoInfo.youtube&&(t.poster="//img.youtube.com/vi/"+t.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")}))},l.prototype.loadContent=function(t,e){var i=this,n=this.galleryItems[t],r=a(this.getSlideItemId(t)),s=n.poster,o=n.srcset,l=n.sizes,h=n.sources,d=n.src,u=n.video,f=u&&"string"==typeof u?JSON.parse(u):u;if(n.responsive){var m=n.responsive.split(",");d=function(t){for(var e=[],i=[],n="",r=0;r<t.length;r++){var s=t[r].split(" ");""===s[0]&&s.splice(0,1),i.push(s[0]),e.push(s[1])}for(var o=window.innerWidth,a=0;a<e.length;a++)if(parseInt(e[a],10)>o){n=i[a];break}return n}(m)||d}var g=n.__slideVideoInfo,v="",y=!!n.iframe,b=!this.lGalleryOn,_=0;if(b&&(_=this.zoomFromOrigin&&this.currentImageSize?this.settings.startAnimationDuration+10:this.settings.backdropDuration+10),!r.hasClass("lg-loaded")){if(g){var w=this.mediaContainerPosition,x=w.top,S=w.bottom,E=c(this.items[t],this.outer,x+S,g&&this.settings.videoMaxSize);v=this.getVideoContStyle(E)}if(y){var C=function(t,e,i,n,r,s){return'<div class="lg-video-cont lg-has-iframe" style="width:'+t+"; max-width:"+i+"; height: "+e+"; max-height:"+n+'">\n <iframe class="lg-object" frameborder="0" '+(s?'title="'+s+'"':"")+' src="'+r+'" allowfullscreen="true"></iframe>\n </div>'}(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,d,n.iframeTitle);r.prepend(C)}else if(s){var T="";b&&this.zoomFromOrigin&&this.currentImageSize&&(T=this.getDummyImageContent(r,t,"")),C=function(t,e,i,n,r){return'<div class="lg-video-cont '+(r&&r.youtube?"lg-has-youtube":r&&r.vimeo?"lg-has-vimeo":"lg-has-html5")+'" style="'+i+'">\n <div class="lg-video-play-button">
118\n <svg\n viewBox="0 0 20 20"\n preserveAspectRatio="xMidYMid"\n focusable="false"\n aria-labelledby="'+n+'"\n role="img"\n class="lg-video-play-icon"\n >\n <title>'+n+'</title>\n <polygon class="lg-video-play-icon-inner" points="1,0 20,10 1,20"></polygon>\n </svg>\n <svg class="lg-video-play-icon-bg" viewBox="0 0 50 50" focusable="false">\n <circle cx="50%" cy="50%" r="20"></circle></svg>\n <svg class="lg-video-play-icon-circle" viewBox="0 0 50 50" focusable="false">\n <circle cx="50%" cy="50%" r="20"></circle>\n </svg>\n </div>\n '+(e||"")+'\n <img class="lg-object lg-video-poster" src="'+t+'" />\n </div>'}(s,T||"",v,this.settings.strings.playVideo,g),r.prepend(C)}else if(g)C='<div class="lg-video-cont " style="'+v+'"></div>',r.prepend(C);else if(this.setImgMarkup(d,r,t),o||h){var k=r.find(".lg-object");this.initPictureFill(k)}(s||g)&&this.LGel.trigger("lgHasVideo",{index:t,src:d,html5Video:f,hasPoster:!!s}),this.LGel.trigger("lgAfterAppendSlide",{index:t}),this.lGalleryOn&&".lg-item"===this.settings.appendSubHtmlTo&&this.addHtml(t)}var P=0;_&&!a(document.body).hasClass("lg-from-hash")&&(P=_),this.isFirstSlideWithZoomAnimation()&&(setTimeout((function(){r.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")}),this.settings.startAnimationDuration+100),r.hasClass("lg-loaded")||setTimeout((function(){if("image"===i.getSlideType(n)&&(r.find(".lg-img-wrap").append(p(t,d,"",o,l,n.sources)),o||h)){var e=r.find(".lg-object");i.initPictureFill(e)}("image"===i.getSlideType(n)||"video"===i.getSlideType(n)&&s)&&(i.onLgObjectLoad(r,t,_,P,!0,!1),i.onSlideObjectLoad(r,!(!g||!g.html5||s),(function(){i.loadContentOnFirstSlideLoad(t,r,P)}),(function(){i.loadContentOnFirstSlideLoad(t,r,P)})))}),this.settings.startAnimationDuration+100)),r.addClass("lg-loaded"),this.isFirstSlideWithZoomAnimation()&&("video"!==this.getSlideType(n)||s)||this.onLgObjectLoad(r,t,_,P,b,!(!g||!g.html5||s)),this.zoomFromOrigin&&this.currentImageSize||!r.hasClass("lg-complete_")||this.lGalleryOn||setTimeout((function(){r.addClass("lg-complete")}),this.settings.backdropDuration),this.lGalleryOn=!0,!0===e&&(r.hasClass("lg-complete_")?this.preload(t):r.find(".lg-object").first().on("load.lg error.lg",(function(){i.preload(t)})))},l.prototype.loadContentOnFirstSlideLoad=function(t,e,i){var n=this;setTimeout((function(){e.find(".lg-dummy-img").remove(),e.removeClass("lg-first-slide"),n.outer.removeClass("lg-first-slide-loading"),n.isDummyImageRemoved=!0,n.preload(t)}),i+300)},l.prototype.getItemsToBeInsertedToDom=function(t,e,i){var n=this;void 0===i&&(i=0);var r=[],s=Math.max(i,3);s=Math.min(s,this.galleryItems.length);var o="lg-item-"+this.lgId+"-"+e;if(this.galleryItems.length<=3)return this.galleryItems.forEach((function(t,e){r.push("lg-item-"+n.lgId+"-"+e)})),r;if(t<(this.galleryItems.length-1)/2){for(var a=t;a>t-s/2&&a>=0;a--)r.push("lg-item-"+this.lgId+"-"+a);var l=r.length;for(a=0;a<s-l;a++)r.push("lg-item-"+this.lgId+"-"+(t+a+1))}else{for(a=t;a<=this.galleryItems.length-1&&a<t+s/2;a++)r.push("lg-item-"+this.lgId+"-"+a);for(l=r.length,a=0;a<s-l;a++)r.push("lg-item-"+this.lgId+"-"+(t-a-1))}return this.settings.loop&&(t===this.galleryItems.length-1?r.push("lg-item-"+this.lgId+"-0"):0===t&&r.push("lg-item-"+this.lgId+"-"+(this.galleryItems.length-1))),-1===r.indexOf(o)&&r.push("lg-item-"+this.lgId+"-"+e),r},l.prototype.organizeSlideItems=function(t,e){var i=this,n=this.getItemsToBeInsertedToDom(t,e,this.settings.numberOfSlideItemsInDom);return n.forEach((function(t){-1===i.currentItemsInDom.indexOf(t)&&i.$inner.append('<div id="'+t+'" class="lg-item"></div>')})),this.currentItemsInDom.forEach((function(t){-1===n.indexOf(t)&&a("#"+t).remove()})),n},l.prototype.getPreviousSlideIndex=function(){var t=0;try{var e=this.outer.find(".lg-current").first().attr("id");t=parseInt(e.split("-")[3])||0}catch(e){t=0}return t},l.prototype.setDownloadValue=function(t){if(this.settings.download){var e=this.galleryItems[t];if(!1===e.downloadUrl||"false"===e.downloadUrl)this.outer.addClass("lg-hide-download");
vendor: 8,946 bytes, line 118
118else{var i=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),i.attr("href",e.downloadUrl||e.src),e.download&&i.attr("download",e.download)}}},l.prototype.makeSlideAnimation=function(t,e,i){var n=this;this.lGalleryOn&&i.addClass("lg-slide-progress"),setTimeout((function(){n.outer.addClass("lg-no-trans"),n.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),"prev"===t?(e.addClass("lg-prev-slide"),i.addClass("lg-next-slide")):(e.addClass("lg-next-slide"),i.addClass("lg-prev-slide")),setTimeout((function(){n.outer.find(".lg-item").removeClass("lg-current"),e.addClass("lg-current"),n.outer.removeClass("lg-no-trans")}),50)}),this.lGalleryOn?this.settings.slideDelay:0)},l.prototype.slide=function(t,e,i,n){var r=this,s=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(t,s),!this.lGalleryOn||s!==t){var o=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(t);var a=this.getSlideItem(t),l=this.getSlideItem(s),h=this.galleryItems[t],d=h.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(h)),this.setDownloadValue(t),d){var p=this.mediaContainerPosition,u=p.top,f=p.bottom,m=c(this.items[t],this.outer,u+f,d&&this.settings.videoMaxSize);this.resizeVideoSlide(t,m)}if(this.LGel.trigger("lgBeforeSlide",{prevIndex:s,index:t,fromTouch:!!e,fromThumb:!!i}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(t),n||(t<s?n="prev":t>s&&(n="next")),e){this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var g=void 0,v=void 0;o>2?(g=t-1,v=t+1,(0===t&&s===o-1||t===o-1&&0===s)&&(v=0,g=o-1)):(g=0,v=1),"prev"===n?this.getSlideItem(v).addClass("lg-next-slide"):this.getSlideItem(g).addClass("lg-prev-slide"),a.addClass("lg-current")}else this.makeSlideAnimation(n,a,l);this.lGalleryOn?setTimeout((function(){r.loadContent(t,!0),".lg-item"!==r.settings.appendSubHtmlTo&&r.addHtml(t)}),this.settings.speed+50+(e?0:this.settings.slideDelay)):this.loadContent(t,!0),setTimeout((function(){r.lgBusy=!1,l.removeClass("lg-slide-progress"),r.LGel.trigger("lgAfterSlide",{prevIndex:s,index:t,fromTouch:e,fromThumb:i})}),(this.lGalleryOn?this.settings.speed+100:100)+(e?0:this.settings.slideDelay))}this.index=t}},l.prototype.updateCurrentCounter=function(t){this.getElementById("lg-counter-current").html(t+1+"")},l.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},l.prototype.getSlideType=function(t){return t.__slideVideoInfo?"video":t.iframe?"iframe":"image"},l.prototype.touchMove=function(t,e,i){var n=e.pageX-t.pageX,r=e.pageY-t.pageY,s=!1;if(this.swipeDirection?s=!0:Math.abs(n)>15?(this.swipeDirection="horizontal",s=!0):Math.abs(r)>15&&(this.swipeDirection="vertical",s=!0),s){var o=this.getSlideItem(this.index);if("horizontal"===this.swipeDirection){null==i||i.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(o,n,0);var a=o.get().offsetWidth,l=15*a/100-Math.abs(10*n/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-a+n-l,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),a+n+l,0)}else if("vertical"===this.swipeDirection&&this.settings.swipeToClose){null==i||i.preventDefault(),this.$container.addClass("lg-dragging-vertical");var h=1-Math.abs(r)/window.innerHeight;this.$backdrop.css("opacity",h);var c=1-Math.abs(r)/(2*window.innerWidth);this.setTranslate(o,0,r,c,c),Math.abs(r)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},l.prototype.touchEnd=function(t,e,n){var r,s=this;"lg-slide"!==this.settings.mode&&this.outer.addClass("lg-slide"),setTimeout((function(){s.$container.removeClass("lg-dragging-vertical"),s.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var o=!0;if("horizontal"===s.swipeDirection){r=t.pageX-e.pageX;var l=Math.abs(t.pageX-e.pageX);r<0&&l>s.settings.swipeThreshold?(s.goToNextSlide(!0),o=!1):r>0&&l>s.settings.swipeThreshold&&(s.goToPrevSlide(!0),o=!1)}else if("vertical"===s.swipeDirection){if(r=Math.abs(t.pageY-e.pageY),s.settings.closable&&s.settings.swipeToClose&&r>100)return void s.closeGallery();s.$backdrop.css("opacity",1)}if(s.outer.find(".lg-item").removeAttr("style"),o&&Math.abs(t.pageX-e.pageX)<5){var h=a(n.target);s.isPosterElement(h)&&s.LGel.trigger(i)}s.swipeDirection=void 0})),setTimeout((function(){s.outer.hasClass("lg-dragging")||"lg-slide"===s.settings.mode||s.outer.removeClass("lg-slide")}),this.settings.speed+100)},l.prototype.enableSwipe=function(){var t=this,e={},n={},r=!1,s=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",(function(i){t.dragOrSwipeEnabled=!0;var n=t.getSlideItem(t.index);!a(i.target).hasClass("lg-item")&&!n.get().contains(i.target)||t.outer.hasClass("lg-zoomed")||t.lgBusy||1!==i.targetTouches.length||(s=!0,t.touchAction="swipe",t.manageSwipeClass(),e={pageX:i.targetTouches[0].pageX,pageY:i.targetTouches[0].pageY})})),this.$inner.on("touchmove.lg",(function(i){s&&"swipe"===t.touchAction&&1===i.targetTouches.length&&(n={pageX:i.targetTouches[0].pageX,pageY:i.targetTouches[0].pageY},t.touchMove(e,n,i),r=!0)})),this.$inner.on("touchend.lg",(function(o){if("swipe"===t.touchAction){if(r)r=!1,t.touchEnd(n,e,o);else if(s){var l=a(o.target);t.isPosterElement(l)&&t.LGel.trigger(i)}t.touchAction=void 0,s=!1}})))},l.prototype.enableDrag=function(){var t=this,e={},n={},r=!1,s=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",(function(i){t.dragOrSwipeEnabled=!0;var n=t.getSlideItem(t.index);(a(i.target).hasClass("lg-item")||n.get().contains(i.target))&&(t.outer.hasClass("lg-zoomed")||t.lgBusy||(i.preventDefault(),t.lgBusy||(t.manageSwipeClass(),e={pageX:i.pageX,pageY:i.pageY},r=!0,t.outer.get().scrollLeft+=1,t.outer.get().scrollLeft-=1,t.outer.removeClass("lg-grab").addClass("lg-grabbing"),t.LGel.trigger("lgDragStart"))))})),a(window).on("mousemove.lg.global"+this.lgId,(function(i){r&&t.lgOpened&&(s=!0,n={pageX:i.pageX,pageY:i.pageY},t.touchMove(e,n),t.LGel.trigger("lgDragMove"))})),a(window).on("mouseup.lg.global"+this.lgId,(function(o){if(t.lgOpened){var l=a(o.target);s?(s=!1,t.touchEnd(n,e,o),t.LGel.trigger("lgDragEnd")):t.isPosterElement(l)&&t.LGel.trigger(i),r&&(r=!1,t.outer.removeClass("lg-grabbing").addClass("lg-grab"))}})))},l.prototype.triggerPosterClick=function(){var t=this;this.$inner.on("click.lg",(function(e){!t.dragOrSwipeEnabled&&t.isPosterElement(a(e.target))&&t.LGel.trigger(i)}))},l.prototype.manageSwipeClass=function(){var t=this.index+1,e=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(0===this.index?e=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(t=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),e>-1&&this.getSlideItem(e).addClass("lg-prev-slide"),this.getSlideItem(t).addClass("lg-next-slide")},l.prototype.goToNextSlide=function(t){var e=this,i=this.settings.loop;t&&this.galleryItems.length<3&&(i=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger(n,{index:this.index}),this.slide(this.index,!!t,!1,"next")):i?(this.index=0,this.LGel.trigger(n,{index:this.index}),this.slide(this.index,!!t,!1,"next")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-right-end"),setTimeout((function(){e.outer.removeClass("lg-right-end")}),400)))},l.prototype.goToPrevSlide=function(t){var e=this,i=this.settings.loop;t&&this.galleryItems.length<3&&(i=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger(r,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):i?(this.index=this.galleryItems.length-1,this.LGel.trigger(r,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-left-end"),setTimeout((function(){e.outer.removeClass("lg-left-end")}),400)))},l.prototype.keyPress=function(){var t=this;a(window).on("keydown.lg.global"+this.lgId,(function(e){t.lgOpened&&!0===t.settings.escKey&&27===e.keyCode&&(e.preventDefault(),t.settings.allowMediaOverlap&&t.outer.hasClass("lg-can-toggle")&&t.outer.hasClass("lg-components-open")?t.outer.removeClass("lg-components-open"):t.closeGallery()),t.lgOpened&&t.galleryItems.length>1&&(37===e.keyCode&&(e.preventDefault(),t.goToPrevSlide()),39===e.keyCode&&(e.preventDefault(),t.goToNextSlide()))}))},l.prototype.arrow=function(){var t=this;this.getElementById("lg-prev").on("click.lg",(function(){t.goToPrevSlide()})),this.getElementById("lg-next").on("click.lg",(function(){t.goToNextSlide()}))},l.prototype.arrowDisable=function(t){if(!this.settings.loop&&this.settings.hideControlOnEnd){var e=this.getElementById("lg-prev"),i=this.getElementById("lg-next");t+1===this.galleryItems.length?i.attr("disabled","disabled").addClass("disabled"):i.removeAttr("disabled").removeClass("disabled"),0===t?e.attr("disabled","disabled").addClass("disabled"):e.removeAttr("disabled").removeClass("disabled")}}
118,l.prototype.setTranslate=function(t,e,i,n,r){void 0===n&&(n=1),void 0===r&&(r=1),t.css("transform","translate3d("+e+"px, "+i+"px, 0px) scale3d("+n+", "+r+", 1)")},l.prototype.mousewheel=function(){var t=this,e=0;this.outer.on("wheel.lg",(function(i){if(i.deltaY&&!(t.galleryItems.length<2)){i.preventDefault();var n=(new Date).getTime();n-e<1e3||(e=n,i.deltaY>0?t.goToNextSlide():i.deltaY<0&&t.goToPrevSlide())}}))},l.prototype.isSlideElement=function(t){return t.hasClass("lg-outer")||t.hasClass("lg-item")||t.hasClass("lg-img-wrap")},l.prototype.isPosterElement=function(t){var e=this.getSlideItem(this.index).find(".lg-video-play-button").get();return t.hasClass("lg-video-poster")||t.hasClass("lg-video-play-button")||e&&e.contains(t.get())},l.prototype.toggleMaximize=function(){var t=this;this.getElementById("lg-maximize").on("click.lg",(function(){t.$container.toggleClass("lg-inline"),t.refreshOnResize()}))},l.prototype.invalidateItems=function(){for(var t=0;t<this.items.length;t++){var e=a(this.items[t]);e.off("click.lgcustom-item-"+e.attr("data-lg-id"))}},l.prototype.manageCloseGallery=function(){var t=this;if(this.settings.closable){var e=!1;this.getElementById("lg-close").on("click.lg",(function(){t.closeGallery()})),this.settings.closeOnTap&&(this.outer.on("mousedown.lg",(function(i){var n=a(i.target);e=!!t.isSlideElement(n)})),this.outer.on("mousemove.lg",(function(){e=!1})),this.outer.on("mouseup.lg",(function(i){var n=a(i.target);t.isSlideElement(n)&&e&&(t.outer.hasClass("lg-dragging")||t.closeGallery())})))}},l.prototype.closeGallery=function(t){var e=this;if(!this.lgOpened||!this.settings.closable&&!t)return 0;this.LGel.trigger("lgBeforeClose"),a(window).scrollTop(this.prevScrollTop);var i,n=this.items[this.index];if(this.zoomFromOrigin&&n){var r=this.mediaContainerPosition,s=r.top,o=r.bottom,l=this.galleryItems[this.index],h=l.__slideVideoInfo,p=l.poster,u=c(n,this.outer,s+o,h&&p&&this.settings.videoMaxSize);i=d(n,this.outer,s,o,u)}this.zoomFromOrigin&&i?(this.outer.addClass("lg-closing lg-zoom-from-image"),this.getSlideItem(this.index).addClass("lg-start-end-progress").css("transition-duration",this.settings.startAnimationDuration+"ms").css("transform",i)):(this.outer.addClass("lg-hide-items"),this.outer.removeClass("lg-zoom-from-image")),this.destroyModules(),this.lGalleryOn=!1,this.isDummyImageRemoved=!1,this.zoomFromOrigin=this.settings.zoomFromOrigin,clearTimeout(this.hideBarTimeout),this.hideBarTimeout=!1,a("html").removeClass("lg-on"),this.outer.removeClass("lg-visible lg-components-open"),this.$backdrop.removeClass("in").css("opacity",0);var f=this.zoomFromOrigin&&i?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass("lg-show-in"),setTimeout((function(){e.zoomFromOrigin&&i&&e.outer.removeClass("lg-zoom-from-image"),e.$container.removeClass("lg-show"),e.$backdrop.removeAttr("style").css("transition-duration",e.settings.backdropDuration+"ms"),e.outer.removeClass("lg-closing "+e.settings.startClass),e.getSlideItem(e.index).removeClass("lg-start-end-progress"),e.$inner.empty(),e.lgOpened&&e.LGel.trigger("lgAfterClose",{instance:e}),e.outer.get()&&e.outer.get().blur(),e.lgOpened=!1}),f+100),f+100},l.prototype.initModules=function(){this.plugins.forEach((function(t){try{t.init()}catch(t){console.warn("lightGallery:- make sure lightGallery module is properly initiated")}}))},l.prototype.destroyModules=function(t){this.plugins.forEach((function(e){try{t?e.destroy():e.closeGallery&&e.closeGallery()}catch(t){console.warn("lightGallery:- make sure lightGallery module is properly destroyed")}}))},l.prototype.refresh=function(t){this.settings.dynamic||this.invalidateItems(),this.galleryItems=t||this.getItems(),this.updateControls(),this.openGalleryOnItemClick(),this.LGel.trigger(e)},l.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems),this.updateCounterTotal(),this.manageSingleSlideClassName()},l.prototype.destroy=function(){var t=this,e=this.closeGallery(!0);return setTimeout((function(){t.destroyModules(!0),t.settings.dynamic||t.invalidateItems(),a(window).off(".lg.global"+t.lgId),t.LGel.off(".lg"),t.$container.remove()}),e),e},l}();return function(t,e){return new m(t,e)}})),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).lgFullscreen=e()}(this,(function(){"use strict";var t=function(){return(t=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},e={fullScreen:!0,fullscreenPluginStrings:{toggleFullscreen:"Toggle Fullscreen"}};return function(){function i(i,n){return this.core=i,this.$LG=n,this.settings=t(t({},e),this.core.settings),this}return i.prototype.init=function(){var t="";if(this.settings.fullScreen){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))return;t='<button type="button" aria-label="'+this.settings.fullscreenPluginStrings.toggleFullscreen+'" class="lg-fullscreen lg-icon"></button>',this.core.$toolbar.append(t),this.fullScreen()}},i.prototype.isFullScreen=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},i.prototype.requestFullscreen=function(){var t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()},i.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},i.prototype.fullScreen=function(){var t=this;this.$LG(document).on("fullscreenchange.lg.global"+this.core.lgId+" \n webkitfullscreenchange.lg.global"+this.core.lgId+" \n mozfullscreenchange.lg.global"+this.core.lgId+" \n MSFullscreenChange.lg.global"+this.core.lgId,(function(){t.core.lgOpened&&t.core.outer.toggleClass("lg-fullscreen-on")})),this.core.outer.find(".lg-fullscreen").first().on("click.lg",(function(){t.isFullScreen()?t.exitFullscreen():t.requestFullscreen()}))},i.prototype.closeGallery=function(){this.isFullScreen()&&this.exitFullscreen()},i.prototype.destroy=function(){this.$LG(document).off("fullscreenchange.lg.global"+this.core.lgId+" \n webkitfullscreenchange.lg.global"+this.core.lgId+" \n mozfullscreenchange.lg.global"+this.core.lgId+" \n MSFullscreenChange.lg.global"+this.core.lgId)},i}()})),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).lgZoom=e()}(this,(function(){"use strict";var t=function(){return(t=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},e={scale:1,zoom:!0,actualSize:!0,showZoomInOutIcons:!1,actualSizeIcons:{zoomIn:"lg-zoom-in",zoomOut:"lg-zoom-out"},enableZoomAfter:300,zoomPluginStrings:{zoomIn:"Zoom in",zoomOut:"Zoom out",viewActualSize:"View actual size"}};return function(){function i(i,n){return this.core=i,this.$LG=n,this.settings=t(t({},e),this.core.settings),this}return i.prototype.buildTemplates=function(){var t=this.settings.showZoomInOutIcons?'<button id="'+this.core.getIdName("lg-zoom-in")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomIn+'" class="lg-zoom-in lg-icon"></button><button id="'+this.core.getIdName("lg-zoom-out")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomIn+'" class="lg-zoom-out lg-icon"></button>':"";this.settings.actualSize&&(t+='<button id="'+this.core.getIdName("lg-actual-size")+'" t
118ype="button" aria-label="'+this.settings.zoomPluginStrings.viewActualSize+'" class="'+this.settings.actualSizeIcons.zoomIn+' lg-icon"></button>'),this.core.outer.addClass("lg-use-transition-for-zoom"),this.core.$toolbar.first().append(t)},i.prototype.enableZoom=function(t){var e=this,i=this.settings.enableZoomAfter+t.detail.delay;this.$LG("body").first().hasClass("lg-from-hash")&&t.detail.delay?i=0:this.$LG("body").first().removeClass("lg-from-hash"),this.zoomableTimeout=setTimeout((function(){e.isImageSlide()&&(e.core.getSlideItem(t.detail.index).addClass("lg-zoomable"),t.detail.index===e.core.index&&e.setZoomEssentials())}),i+30)},i.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on("lgSlideItemLoad.zoom",this.enableZoom.bind(this))},i.prototype.getModifier=function(t,e,i){var n=t;t=Math.abs(t);var r=this.getCurrentTransform(i);if(!r)return 1;var s=1;if("X"===e){var o=Math.sign(parseFloat(r[0]));0===t||180===t?s=1:90===t&&(s=-90===n&&1===o||90===n&&-1===o?-1:1),s*=o}else{var a=Math.sign(parseFloat(r[3]));if(0===t||180===t)s=1;else if(90===t){var l=parseFloat(r[1]),h=parseFloat(r[2]);s=Math.sign(l*h*n*a)}s*=a}return s},i.prototype.getImageSize=function(t,e,i){return 90===Math.abs(e)&&(i="x"===i?"y":"x"),t[{y:"offsetHeight",x:"offsetWidth"}[i]]},i.prototype.getDragCords=function(t,e){return 90===e?{x:t.pageY,y:t.pageX}:{x:t.pageX,y:t.pageY}},i.prototype.getSwipeCords=function(t,e){var i=t.targetTouches[0].pageX,n=t.targetTouches[0].pageY;return 90===e?{x:n,y:i}:{x:i,y:n}},i.prototype.getDragAllowedAxises=function(t,e){e=e||this.scale||1;var i=this.imageYSize*e>this.containerRect.height,n=this.imageXSize*e>this.containerRect.width;return 90===t?{allowX:i,allowY:n}:{allowX:n,allowY:i}},i.prototype.getCurrentTransform=function(t){if(t){var e=window.getComputedStyle(t,null),i=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("-moz-transform")||e.getPropertyValue("-ms-transform")||e.getPropertyValue("-o-transform")||e.getPropertyValue("transform")||"none";return"none"!==i?i.split("(")[1].split(")")[0].split(","):void 0}},i.prototype.getCurrentRotation=function(t){if(!t)return 0;var e=this.getCurrentTransform(t);return e?Math.round(Math.atan2(parseFloat(e[1]),parseFloat(e[0]))*(180/Math.PI)):0},i.prototype.setZoomEssentials=function(){var t=this.core.getSlideItem(this.core.index).find(".lg-image").first(),e=this.core.getSlideItem(this.core.index).find(".lg-img-rotate").first().get();this.rotateValue=this.getCurrentRotation(e),this.imageYSize=this.getImageSize(t.get(),this.rotateValue,"y"),this.imageXSize=this.getImageSize(t.get(),this.rotateValue,"x"),this.containerRect=this.core.outer.get().getBoundingClientRect(),this.modifierX=this.getModifier(this.rotateValue,"X",e),this.modifierY=this.getModifier(this.rotateValue,"Y",e)},i.prototype.zoomImage=function(t){var e,i,n=(this.containerRect.width-this.imageXSize)/2+this.containerRect.left,r=this.core.mediaContainerPosition,s=r.top,o=r.bottom,a=Math.abs(s-o)/2,l=(this.containerRect.height-this.imageYSize-a*this.modifierX)/2+this.scrollTop+this.containerRect.top;1===t&&(this.positionChanged=!1);var h=this.getDragAllowedAxises(Math.abs(this.rotateValue),t),c=h.allowY,d=h.allowX;this.positionChanged&&(e=this.left/(this.scale-1),i=this.top/(this.scale-1),this.pageX=Math.abs(e)+n,this.pageY=Math.abs(i)+l,this.positionChanged=!1);var p=this.getPossibleSwipeDragCords(this.rotateValue,t),u=(t-1)*(n-this.pageX),f=(t-1)*(l-this.pageY);d?this.isBeyondPossibleLeft(u,p.minX)?u=p.minX:this.isBeyondPossibleRight(u,p.maxX)&&(u=p.maxX):t>1&&(u<p.minX?u=p.minX:u>p.maxX&&(u=p.maxX)),c?this.isBeyondPossibleTop(f,p.minY)?f=p.minY:this.isBeyondPossibleBottom(f,p.maxY)&&(f=p.maxY):t>1&&(f<p.minY?f=p.minY:f>p.maxY&&(f=p.maxY)),this.setZoomStyles({x:u,y:f,scale:t})},i.prototype.setZoomStyles=function(t){var e=this.core.getSlideItem(this.core.index).find(".lg-image").first(),i=this.core.outer.find(".lg-current .lg-dummy-img").first(),n=e.parent();this.scale=t.scale,e.css("transform","scale3d("+t.scale+", "+t.scale+", 1)"),i.css("transform","scale3d("+t.scale+", "+t.scale+", 1)");var r="translate3d("+t.x+"px, "+t.y+"px, 0)";n.css("transform",r),this.left=t.x,this.top=t.y},i.prototype.setActualSize=function(t,e){var i=this;if(this.isImageSlide()&&!this.core.outer.hasClass("lg-first-slide-loading")){var n=this.getCurrentImageActualSizeScale();this.core.outer.hasClass("lg-zoomed")?this.scale=1:this.scale=this.getScale(n),this.setPageCords(e),this.beginZoom(this.scale),this.zoomImage(this.scale),setTimeout((function(){i.core.outer.removeClass("lg-grabbing").addClass("lg-grab")}),10)}}
118,i.prototype.getNaturalWidth=function(t){var e=this.core.getSlideItem(t).find(".lg-image").first(),i=this.core.galleryItems[t].width;return i?parseFloat(i):e.get().naturalWidth},i.prototype.getActualSizeScale=function(t,e){return t>e?t/e||2:1},i.prototype.getCurrentImageActualSizeScale=function(){var t=this.core.getSlideItem(this.core.index).find(".lg-image").first().get().offsetWidth,e=this.getNaturalWidth(this.core.index)||t;return this.getActualSizeScale(e,t)},i.prototype.getPageCords=function(t){ 119var e={};if(t)e.x=t.pageX||t.targetTouches[0].pageX,e.y=t.pageY||t.targetTouches[0].pageY;else{var i=this.core.outer.get().getBoundingClientRect();e.x=i.width/2+i.left,e.y=i.height/2+this.scrollTop+i.top}return e},i.prototype.setPageCords=function(t){var e=this.getPageCords(t);this.pageX=e.x,this.pageY=e.y},i.prototype.beginZoom=function(t){return this.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),t>1?(this.core.outer.addClass("lg-zoomed"),this.core.getElementById("lg-actual-size").removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut)):this.resetZoom(),t>1},i.prototype.getScale=function(t){var e=this.getCurrentImageActualSizeScale();return t<1?t=1:t>e&&(t=e),t},i.prototype.init=function(){var t=this;if(this.settings.zoom){this.buildTemplates(),this.enableZoomOnSlideItemLoad();var e=null;this.core.outer.on("dblclick.lg",(function(e){t.$LG(e.target).hasClass("lg-image")&&t.setActualSize(t.core.index,e)})),this.core.outer.on("touchstart.lg",(function(i){var n=t.$LG(i.target);1===i.targetTouches.length&&n.hasClass("lg-image")&&(e?(clearTimeout(e),e=null,i.preventDefault(),t.setActualSize(t.core.index,i)):e=setTimeout((function(){e=null}),300))})),this.core.LGel.on("lgContainerResize.zoom lgRotateRight.zoom lgRotateLeft.zoom lgFlipHorizontal.zoom lgFlipVertical.zoom",(function(){t.core.lgOpened&&t.isImageSlide()&&(t.setPageCords(),t.setZoomEssentials(),t.zoomImage(t.scale))})),this.$LG(window).on("scroll.lg.zoom.global"+this.core.lgId,(function(){t.core.lgOpened&&(t.scrollTop=t.$LG(window).scrollTop())})),this.core.getElementById("lg-zoom-out").on("click.lg",(function(){t.core.outer.find(".lg-current .lg-image").get()&&(t.scale-=t.settings.scale,t.scale=t.getScale(t.scale),t.beginZoom(t.scale),t.zoomImage(t.scale))})),this.core.getElementById("lg-zoom-in").on("click.lg",(function(){t.zoomIn()})),this.core.getElementById("lg-actual-size").on("click.lg",(function(){t.setActualSize(t.core.index)})),this.core.LGel.on("lgBeforeOpen.zoom",(function(){t.core.outer.find(".lg-item").removeClass("lg-zoomable")})),this.core.LGel.on("lgAfterOpen.zoom",(function(){t.scrollTop=t.$LG(window).scrollTop(),t.pageX=t.core.outer.width()/2,t.pageY=t.core.outer.height()/2+t.scrollTop,t.scale=1})),this.core.LGel.on("lgAfterSlide.zoom",(function(e){var i=e.detail.prevIndex;t.scale=1,t.positionChanged=!1,t.resetZoom(i),t.isImageSlide()&&t.setZoomEssentials()})),this.zoomDrag(),this.pinchZoom(),this.zoomSwipe(),this.zoomableTimeout=!1,this.positionChanged=!1}},i.prototype.zoomIn=function(t){this.isImageSlide()&&(t?this.scale=t:this.scale+=this.settings.scale,this.scale=this.getScale(this.scale),this.beginZoom(this.scale),this.zoomImage(this.scale))},i.prototype.resetZoom=function(t){this.core.outer.removeClass("lg-zoomed lg-zoom-drag-transition");var e=this.core.getElementById("lg-actual-size"),i=this.core.getSlideItem(void 0!==t?t:this.core.index);e.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn),i.find(".lg-img-wrap").first().removeAttr("style"),i.find(".lg-image").first().removeAttr("style"),this.scale=1,this.left=0,this.top=0,this.setPageCords()},i.prototype.getTouchDistance=function(t){return Math.sqrt((t.targetTouches[0].pageX-t.targetTouches[1].pageX)*(t.targetTouches[0].pageX-t.targetTouches[1].pageX)+(t.targetTouches[0].pageY-t.targetTouches[1].pageY)*(t.targetTouches[0].pageY-t.targetTouches[1].pageY))},i.prototype.pinchZoom=function(){var t=this,e=0,i=!1,n=1,r=this.core.getSlideItem(this.core.index);this.core.$inner.on("touchstart.lg",(function(i){r=t.core.getSlideItem(t.core.index),t.isImageSlide()&&(2!==i.targetTouches.length||t.core.outer.hasClass("lg-first-slide-loading")||!t.$LG(i.target).hasClass("lg-item")&&!r.get().contains(i.target)||(n=t.scale||1,t.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),t.core.touchAction="pinch",e=t.getTouchDistance(i)))})),this.core.$inner.on("touchmove.lg",(function(s){if(2===s.targetTouches.length&&"pinch"===t.core.touchAction&&(t.$LG(s.target).hasClass("lg-item")||r.get().contains(s.target))){s.preventDefault();
119var o=t.getTouchDistance(s),a=e-o;!i&&Math.abs(a)>5&&(i=!0),i&&(t.scale=Math.max(1,n+.008*-a),t.zoomImage(t.scale))}})),this.core.$inner.on("touchend.lg",(function(n){"pinch"===t.core.touchAction&&(t.$LG(n.target).hasClass("lg-item")||r.get().contains(n.target))&&(i=!1,e=0,t.scale<=1?t.resetZoom():(t.scale=t.getScale(t.scale),t.zoomImage(t.scale),t.core.outer.addClass("lg-zoomed")),t.core.touchAction=void 0)}))},i.prototype.touchendZoom=function(t,e,i,n,r,s){var o=e.x-t.x,a=e.y-t.y,l=Math.abs(o)/r+1,h=Math.abs(a)/r+1;l>2&&(l+=1),h>2&&(h+=1),o*=l,a*=h;var c=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),d={};d.x=this.left+o*this.modifierX,d.y=this.top+a*this.modifierY;var p=this.getPossibleSwipeDragCords(s);(Math.abs(o)>15||Math.abs(a)>15)&&(n&&(this.isBeyondPossibleTop(d.y,p.minY)?d.y=p.minY:this.isBeyondPossibleBottom(d.y,p.maxY)&&(d.y=p.maxY)),i&&(this.isBeyondPossibleLeft(d.x,p.minX)?d.x=p.minX:this.isBeyondPossibleRight(d.x,p.maxX)&&(d.x=p.maxX)),n?this.top=d.y:d.y=this.top,i?this.left=d.x:d.x=this.left,this.setZoomSwipeStyles(c,d),this.positionChanged=!0)},i.prototype.getZoomSwipeCords=function(t,e,i,n,r){var s={};if(n){if(s.y=this.top+(e.y-t.y)*this.modifierY,this.isBeyondPossibleTop(s.y,r.minY)){var o=r.minY-s.y;s.y=r.minY-o/6}else if(this.isBeyondPossibleBottom(s.y,r.maxY)){var a=s.y-r.maxY;s.y=r.maxY+a/6}}else s.y=this.top;if(i){if(s.x=this.left+(e.x-t.x)*this.modifierX,this.isBeyondPossibleLeft(s.x,r.minX)){var l=r.minX-s.x;s.x=r.minX-l/6}else if(this.isBeyondPossibleRight(s.x,r.maxX)){var h=s.x-r.maxX;s.x=r.maxX+h/6}}else s.x=this.left;return s},i.prototype.isBeyondPossibleLeft=function(t,e){return t>=e},i.prototype.isBeyondPossibleRight=function(t,e){return t<=e},i.prototype.isBeyondPossibleTop=function(t,e){return t>=e},i.prototype.isBeyondPossibleBottom=function(t,e){return t<=e},i.prototype.isImageSlide=function(){var t=this.core.galleryItems[this.core.index];return"image"===this.core.getSlideType(t)},i.prototype.getPossibleSwipeDragCords=function(t,e){var i=e||this.scale||1,n=Math.abs(i),r=this.core.mediaContainerPosition,s=r.top,o=r.bottom,a=Math.abs(s-o)/2,l=(this.imageYSize-this.containerRect.height)/2+a*this.modifierX,h=this.containerRect.height-this.imageYSize*n+l,c=(this.imageXSize-this.containerRect.width)/2,d=this.containerRect.width-this.imageXSize*n+c,p={minY:l,maxY:h,minX:c,maxX:d};return 90===Math.abs(t)&&(p={minY:c,maxY:d,minX:l,maxX:h}),p},i.prototype.setZoomSwipeStyles=function(t,e){t.css("transform","translate3d("+e.x+"px, "+e.y+"px, 0)")},i.prototype.zoomSwipe=function(){var t,e,i=this,n={},r={},s=!1,o=!1,a=!1,l=new Date,h=(new Date,this.core.getSlideItem(this.core.index));this.core.$inner.on("touchstart.lg",(function(r){if(i.isImageSlide()&&(h=i.core.getSlideItem(i.core.index),(i.$LG(r.target).hasClass("lg-item")||h.get().contains(r.target))&&1===r.targetTouches.length&&i.core.outer.hasClass("lg-zoomed"))){r.preventDefault(),l=new Date,i.core.touchAction="zoomSwipe",e=i.core.getSlideItem(i.core.index).find(".lg-img-wrap").first();var s=i.getDragAllowedAxises(Math.abs(i.rotateValue));a=s.allowY,((o=s.allowX)||a)&&(n=i.getSwipeCords(r,Math.abs(i.rotateValue))),t=i.getPossibleSwipeDragCords(i.rotateValue),i.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition")}})),this.core.$inner.on("touchmove.lg",(function(l){if(1===l.targetTouches.length&&"zoomSwipe"===i.core.touchAction&&(i.$LG(l.target).hasClass("lg-item")||h.get().contains(l.target))){l.preventDefault(),i.core.touchAction="zoomSwipe",r=i.getSwipeCords(l,Math.abs(i.rotateValue));var c=i.getZoomSwipeCords(n,r,o,a,t);(Math.abs(r.x-n.x)>15||Math.abs(r.y-n.y)>15)&&(s=!0,i.setZoomSwipeStyles(e,c))}})),this.core.$inner.on("touchend.lg",(function(t){if("zoomSwipe"===i.core.touchAction&&(i.$LG(t.target).hasClass("lg-item")||h.get().contains(t.target))){if(i.core.touchAction=void 0,i.core.outer.removeClass("lg-zoom-dragging"),!s)return;s=!1;var e=(new Date).valueOf()-l.valueOf();i.touchendZoom(n,r,o,a,e,i.rotateValue)}}))},i.prototype.zoomDrag=function(){var t,e,i,n,r=this,s={},o={},a=!1,l=!1,h=!1,c=!1;this.core.outer.on("mousedown.lg.zoom",(function(e){if(r.isImageSlide()){var o=r.core.getSlideItem(r.core.
119index);if(r.$LG(e.target).hasClass("lg-item")||o.get().contains(e.target)){t=new Date,n=r.core.getSlideItem(r.core.index).find(".lg-img-wrap").first();var l=r.getDragAllowedAxises(Math.abs(r.rotateValue));c=l.allowY,h=l.allowX,r.core.outer.hasClass("lg-zoomed")&&r.$LG(e.target).hasClass("lg-object")&&(h||c)&&(e.preventDefault(),s=r.getDragCords(e,Math.abs(r.rotateValue)),i=r.getPossibleSwipeDragCords(r.rotateValue),a=!0,r.core.outer.get().scrollLeft+=1,r.core.outer.get().scrollLeft-=1,r.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"))}}})),this.$LG(window).on("mousemove.lg.zoom.global"+this.core.lgId,(function(t){if(a){l=!0,o=r.getDragCords(t,Math.abs(r.rotateValue));var e=r.getZoomSwipeCords(s,o,h,c,i);r.setZoomSwipeStyles(n,e)}})),this.$LG(window).on("mouseup.lg.zoom.global"+this.core.lgId,(function(i){if(a){if(e=new Date,a=!1,r.core.outer.removeClass("lg-zoom-dragging"),l&&(s.x!==o.x||s.y!==o.y)){o=r.getDragCords(i,Math.abs(r.rotateValue));var n=e.valueOf()-t.valueOf();r.touchendZoom(s,o,h,c,n,r.rotateValue)}l=!1}r.core.outer.removeClass("lg-grabbing").addClass("lg-grab")}))},i.prototype.closeGallery=function(){this.resetZoom()},i.prototype.destroy=function(){this.$LG(window).off(".lg.zoom.global"+this.core.lgId),this.core.LGel.off(".lg.zoom"),this.core.LGel.off(".zoom"),clearTimeout(this.zoomableTimeout),this.zoomableTimeout=!1},i}()})),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).lgThumbnail=e()}(this,(function(){"use strict";var t=function(){return(t=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},e={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",alignThumbnails:"middle",thumbWidth:100,thumbHe
vendor: 6,492 bytes, line 119
119ight:"80px",thumbMargin:5,appendThumbnailsTo:".lg-components",toggleThumb:!1,enableThumbDrag:!0,enableThumbSwipe:!0,thumbnailSwipeThreshold:10,loadYouTubeThumbnail:!0,youTubeThumbSize:1,thumbnailPluginStrings:{toggleThumbnails:"Toggle thumbnails"}},i="lgBeforeSlide";return function(){function n(t,e){return this.thumbOuterWidth=0,this.thumbTotalWidth=0,this.translateX=0,this.thumbClickable=!1,this.core=t,this.$LG=e,this}return n.prototype.init=function(){this.settings=t(t({},e),this.core.settings),this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.galleryItems.length*(this.settings.thumbWidth+this.settings.thumbMargin),this.translateX=0,this.setAnimateThumbStyles(),this.core.settings.allowMediaOverlap||(this.settings.toggleThumb=!1),this.settings.thumbnail&&(this.build(),this.settings.animateThumb?(this.settings.enableThumbDrag&&this.enableThumbDrag(),this.settings.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toggleThumbBar(),this.thumbKeyPress())},n.prototype.build=function(){var t=this;this.setThumbMarkup(),this.manageActiveClassOnSlideChange(),this.$lgThumb.first().on("click.lg touchend.lg",(function(e){var i=t.$LG(e.target);i.hasAttribute("data-lg-item-id")&&setTimeout((function(){if(t.thumbClickable&&!t.core.lgBusy){var e=parseInt(i.attr("data-lg-item-id"));t.core.slide(e,!1,!0,!1)}}),50)})),this.core.LGel.on(i+".thumb",(function(e){var i=e.detail.index;t.animateThumb(i)})),this.core.LGel.on("lgBeforeOpen.thumb",(function(){t.thumbOuterWidth=t.core.outer.get().offsetWidth})),this.core.LGel.on("lgUpdateSlides.thumb",(function(){t.rebuildThumbnails()})),this.core.LGel.on("lgContainerResize.thumb",(function(){t.core.lgOpened&&setTimeout((function(){t.thumbOuterWidth=t.core.outer.get().offsetWidth,t.animateThumb(t.core.index),t.thumbOuterWidth=t.core.outer.get().offsetWidth}),50)}))},n.prototype.setThumbMarkup=function(){var t="lg-thumb-outer ";this.settings.alignThumbnails&&(t+="lg-thumb-align-"+this.settings.alignThumbnails);var e='<div class="'+t+'">\n <div class="lg-thumb lg-group">\n </div>\n </div>';this.core.outer.addClass("lg-has-thumb"),".lg-components"===this.settings.appendThumbnailsTo?this.core.$lgComponents.append(e):this.core.outer.append(e),this.$thumbOuter=this.core.outer.find(".lg-thumb-outer").first(),this.$lgThumb=this.core.outer.find(".lg-thumb").first(),this.settings.animateThumb&&this.core.outer.find(".lg-thumb").css("transition-duration",this.core.settings.speed+"ms").css("width",this.thumbTotalWidth+"px").css("position","relative"),this.setThumbItemHtml(this.core.galleryItems)},n.prototype.enableThumbDrag=function(){var t=this,e={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},i=!1;this.$thumbOuter.addClass("lg-grab"),this.core.outer.find(".lg-thumb").first().on("mousedown.lg.thumb",(function(n){t.thumbTotalWidth>t.thumbOuterWidth&&(n.preventDefault(),e.cords.startX=n.pageX,e.startTime=new Date,t.thumbClickable=!1,i=!0,t.core.outer.get().scrollLeft+=1,t.core.outer.get().scrollLeft-=1,t.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))})),this.$LG(window).on("mousemove.lg.thumb.global"+this.core.lgId,(function(n){t.core.lgOpened&&i&&(e.cords.endX=n.pageX,e=t.onThumbTouchMove(e))})),this.$LG(window).on("mouseup.lg.thumb.global"+this.core.lgId,(function(){t.core.lgOpened&&(e.isMoved?e=t.onThumbTouchEnd(e):t.thumbClickable=!0,i&&(i=!1,t.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab")))}))},n.prototype.enableThumbSwipe=function(){var t=this,e={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on("touchstart.lg",(function(i){t.thumbTotalWidth>t.thumbOuterWidth&&(i.preventDefault(),e.cords.startX=i.targetTouches[0].pageX,t.thumbClickable=!1,e.startTime=new Date)})),this.$lgThumb.on("touchmove.lg",(function(i){t.thumbTotalWidth>t.thumbOuterWidth&&(i.preventDefault(),e.cords.endX=i.targetTouches[0].pageX,e=t.onThumbTouchMove(e))})),this.$lgThumb.on("touchend.lg",(function(){e.isMoved?e=t.onThumbTouchEnd(e):t.thumbClickable=!0}))},n.prototype.rebuildThumbnails=function(){var t=this;this.$thumbOuter.addClass("lg-rebuilding-thumbnails"),setTimeout((function(){t.thumbTotalWidth=t.core.galleryItems.length*(t.settings.thumbWidth+t.settings.thumbMargin),t.$lgThumb.css("width",t.thumbTotalWidth+"px"),t.$lgThumb.empty(),t.setThumbItemHtml(t.core.galleryItems),t.animateThumb(t.core.index)}),50),setTimeout((function(){t.$thumbOuter.removeClass("lg-rebuilding-thumbnails")}),200)},n.prototype.setTranslate=function(t){this.$lgThumb.css("transform","translate3d(-"+t+"px, 0px, 0px)")},n.prototype.getPossibleTransformX=function(t){return t>this.thumbTotalWidth-this.thumbOuterWidth&&(t=this.thumbTotalWidth-this.thumbOuterWidth),t<0&&(t=0),t},n.prototype.animateThumb=function(t){if(this.$lgThumb.css("transition-duration",this.core.settings.speed+"ms"),this.settings.animateThumb){var e=0;switch(this.settings.currentPagerPosition){case"left":e=0;break;case"middle":e=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case"right":e=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*t-1-e,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},n.prototype.onThumbTouchMove=function(t){return t.newTranslateX=this.translateX,t.isMoved=!0,t.touchMoveTime=(new Date).valueOf(),t.newTranslateX-=t.cords.endX-t.cords.startX,t.newTranslateX=this.getPossibleTransformX(t.newTranslateX),this.setTranslate(t.newTranslateX),this.$thumbOuter.addClass("lg-dragging"),t},n.prototype.onThumbTouchEnd=function(t){t.isMoved=!1,t.endTime=new Date,this.$thumbOuter.removeClass("lg-dragging");var e=t.endTime.valueOf()-t.startTime.valueOf(),i=t.cords.endX-t.cords.startX,n=Math.abs(i)/e;return n>.15&&t.endTime.valueOf()-t.touchMoveTime<30?((n+=1)>2&&(n+=1),n+=n*(Math.abs(i)/this.thumbOuterWidth),this.$lgThumb.css("transition-duration",Math.min(n-1,2)+"settings"),i*=n,this.translateX=this.getPossibleTransformX(this.translateX-i),this.setTranslate(this.translateX)):this.translateX=t.newTranslateX,Math.abs(t.cords.endX-t.cords.startX)<this.settings.thumbnailSwipeThreshold&&(this.thumbClickable=!0),t},n.prototype.getThumbHtml=function(t,e){var i,n=this.core.galleryItems[e].__slideVideoInfo||{};
119return i=n.youtube&&this.settings.loadYouTubeThumbnail?"//img.youtube.com/vi/"+n.youtube[1]+"/"+this.settings.youTubeThumbSize+".jpg":t,'<div data-lg-item-id="'+e+'" class="lg-thumb-item '+(e===this.core.index?" active":"")+'" \n style="width:'+this.settings.thumbWidth+"px; height: "+this.settings.thumbHeight+";\n margin-right: "+this.settings.thumbMargin+'px;">\n <img data-lg-item-id="'+e+'" src="'+i+'" />\n </div>'},n.prototype.getThumbItemHtml=function(t){for(var e="",i=0;i<t.length;i++)e+=this.getThumbHtml(t[i].thumb,i);return e},n.prototype.setThumbItemHtml=function(t){var e=this.getThumbItemHtml(t);this.$lgThumb.html(e)},n.prototype.setAnimateThumbStyles=function(){this.settings.animateThumb&&this.core.outer.addClass("lg-animate-thumb")},n.prototype.manageActiveClassOnSlideChange=function(){var t=this;this.core.LGel.on(i+".thumb",(function(e){var i=t.core.outer.find(".lg-thumb-item"),n=e.detail.index;i.removeClass("active"),i.eq(n).addClass("active")}))},n.prototype.toggleThumbBar=function(){var t=this;this.settings.toggleThumb&&(this.core.outer.addClass("lg-can-toggle"),this.core.$toolbar.append('<button type="button" aria-label="'+this.settings.thumbnailPluginStrings.toggleThumbnails+'" class="lg-toggle-thumb lg-icon"></button>'),this.core.outer.find(".lg-toggle-thumb").first().on("click.lg",(function(){t.core.outer.toggleClass("lg-components-open")})))},n.prototype.thumbKeyPress=function(){var t=this;this.$LG(window).on("keydown.lg.thumb.global"+this.core.lgId,(function(e){t.core.lgOpened&&t.settings.toggleThumb&&(38===e.keyCode?(e.preventDefault(),t.core.outer.addClass("lg-components-open")):40===e.keyCode&&(e.preventDefault(),t.core.outer.removeClass("lg-components-open")))}))},n.prototype.destroy=function(){this.settings.thumbnail&&(this.$LG(window).off(".lg.thumb.global"+this.core.lgId),this.core.LGel.off(".lg.thumb"),this.core.LGel.off(".thumb"),this.$thumbOuter.remove(),this.core.outer.removeClass("lg-has-thumb"))},n}()})),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Parallax=t()}}((function(){return function t(e,i,n){function r(o,a){if(!i[o]){if(!e[o]){var l="function"==typeof require&&require;if(!a&&l)return l(o,!0);if(s)return s(o,!0);var h=new Error("Cannot find module '"+o+"'");throw h.code="MODULE_NOT_FOUND",h}var c=i[o]={exports:{}};e[o][0].call(c.exports,(function(t){var i=e[o][1][t];return r(i||t)}),c,c.exports,t,e,i,n)}return i[o].exports}for(var s="function"==typeof require&&require,o=0;o<n.length;o++)r(n[o]);return r}({1:[function(require,t,exports){ 120/* 121object-assign 122(c) Sindre Sorhus 123@license MIT
124*/ 125"use strict";var e=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,r){for(var s,o,a=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),l=1;l<arguments.length;l++){for(var h in s=Object(arguments[l]))i.call(s,h)&&(a[h]=s[h]);if(e){o=e(s);for(var c=0;c<o.length;c++)n.call(s,o[c])&&(a[o[c]]=s[o[c]])}}return a}},{}],2:[function(require,t,exports){(function(e){(function(){var i,n,r,s,o,a;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:null!=e&&e.hrtime?(t.exports=function(){return(i()-o)/1e6},n=e.hrtime,s=(i=function(){var t;return 1e9*(t=n())[0]+t[1]})(),a=1e9*e.uptime(),o=s-a):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)}).call(this,require("_process"))},{_process:3}],3:[function(require,t,exports){var e,i,n=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===r||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(i){try{return e.call(null,t,0)}catch(i){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:r}catch(t){e=r}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var a,l=[],h=!1,c=-1;function d(){h&&a&&(h=!1,a.length?l=a.concat(l):c=-1,l.length&&p())}function p(){if(!h){var t=o(d);h=!0;for(var e=l.length;e;){for(a=l,l=[];++c<e;)a&&a[c].run();c=-1,e=l.length}a=null,h=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function u(t,e){this.fun=t,this.array=e}function f(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new u(t,e)),1!==l.length||h||o(p)},u.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=f,n.addListener=f,n.once=f,n.off=f,n.removeListener=f,n.removeAllListeners=f,n.emit=f,n.prependListener=f,n.prependOnceListener=f,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},{}],4:[function(require,t,exports){(function(e){for(var i=require("performance-now"),n="undefined"==typeof window?e:window,r=["moz","webkit"],s="AnimationFrame",o=n["request"+s],a=n["cancel"+s]||n["cancelRequest"+s],l=0;!o&&l<r.length;l++)o=n[r[l]+"Request"+s],a=n[r[l]+"Cancel"+s]||n[r[l]+"CancelRequest"+s];if(!o||!a){var h=0,c=0,d=[],p=1e3/60;o=function(t){if(0===d.length){var e=i(),n=Math.max(0,p-(e-h));h=n+e,setTimeout((function(){var t=d.slice(0);d.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(h)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(n))}return d.push({handle:++c,callback:t,cancelled:!1}),c},a=function(t){for(var e=0;e<d.length;e++)d[e].handle===t&&(d[e].cancelled=!0)}}t.exports=function(t){return o.call(n,t)},t.exports.cancel=function(){a.apply(n,arguments)},t.exports.polyfill=function(){n.requestAnimationFrame=o,n.cancelAnimationFrame=a}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"performance-now":2}],5:[function(require,t,exports){"use strict";var e=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}
125return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var i=require("raf"),n=require("object-assign"),r={propertyCache:{},vendors:[null,["-webkit-","webkit"],["-moz-","Moz"],["-o-","O"],["-ms-","ms"]],clamp:function(t,e,i){return e<i?t<e?e:t>i?i:t:t<i?i:t>e?e:t},data:function(t,e){return r.deserialize(t.getAttribute("data-"+e))},deserialize:function(t){return"true"===t||"false"!==t&&("null"===t?null:!isNaN(parseFloat(t))&&isFinite(t)?parseFloat(t):t)},camelCase:function(t){return t.replace(/-+(.)?/g,(function(t,e){return e?e.toUpperCase():""}))},accelerate:function(t){r.css(t,"transform","translate3d(0,0,0) rotate(0.0001deg)"),r.css(t,"transform-style","preserve-3d"),r.css(t,"backface-visibility","hidden")},transformSupport:function(t){for(var e=document.createElement("div"),i=!1,n=null,s=!1,o=null,a=null,l=0,h=r.vendors.length;l<h;l++)if(null!==r.vendors[l]?(o=r.vendors[l][0]+"transform",a=r.vendors[l][1]+"Transform"):(o="transform",a="transform"),void 0!==e.style[a]){i=!0;break}switch(t){case"2D":s=i;break;case"3D":if(i){var c=document.body||document.createElement("body"),d=document.documentElement,p=d.style.overflow,u=!1;document.body||(u=!0,d.style.overflow="hidden",d.appendChild(c),c.style.overflow="hidden",c.style.background=""),c.appendChild(e),e.style[a]="translate3d(1px,1px,1px)",s=void 0!==(n=window.getComputedStyle(e).getPropertyValue(o))&&n.length>0&&"none"!==n,d.style.overflow=p,c.removeChild(e),u&&(c.removeAttribute("style"),c.parentNode.removeChild(c))}}return s},css:function(t,e,i){var n=r.propertyCache[e];if(!n)for(var s=0,o=r.vendors.length;s<o;s++)if(n=null!==r.vendors[s]?r.camelCase(r.vendors[s][1]+"-"+e):e,void 0!==t.style[n]){r.propertyCache[e]=n;break}t.style[n]=i}},s={relativeInput:!1,clipRelativeInput:!1,inputElement:null,hoverOnly:!1,calibrationThreshold:100,calibrationDelay:500,supportDelay:500,calibrateX:!1,calibrateY:!0,invertX:!0,invertY:!0,limitX:!1,limitY:!1,scalarX:10,scalarY:10,frictionX:.1,frictionY:.1,originX:.5,originY:.5,pointerEvents:!1,precision:1,onReady:null,selector:null},o=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.element=e;var o={calibrateX:r.data(this.element,"calibrate-x"),calibrateY:r.data(this.element,"calibrate-y"),invertX:r.data(this.element,"invert-x"),invertY:r.data(this.element,"invert-y"),limitX:r.data(this.element,"limit-x"),limitY:r.data(this.element,"limit-y"),scalarX:r.data(this.element,"scalar-x"),scalarY:r.data(this.element,"scalar-y"),frictionX:r.data(this.element,"friction-x"),frictionY:r.data(this.element,"friction-y"),originX:r.data(this.element,"origin-x"),originY:r.data(this.element,"origin-y"),pointerEvents:r.data(this.element,"pointer-events"),precision:r.data(this.element,"precision"),relativeInput:r.data(this.element,"relative-input"),clipRelativeInput:r.data(this.element,"clip-relative-input"),hoverOnly:r.data(this.element,"hover-only"),inputElement:document.querySelector(r.data(this.element,"input-element")),selector:r.data(this.element,"selector")};for(var a in o)null===o[a]&&delete o[a];n(this,s,o,i),this.inputElement||(this.inputElement=this.element),this.calibrationTimer=null,this.calibrationFlag=!0,this.enabled=!1,this.depthsX=[],this.depthsY=[],this.raf=null,this.bounds=null,this.elementPositionX=0,this.elementPositionY=0,this.elementWidth=0,this.elementHeight=0,this.elementCenterX=0,this.elementCenterY=0,this.elementRangeX=0,this.elementRangeY=0,this.calibrationX=0,this.calibrationY=0,this.inputX=0,this.inputY=0,this.motionX=0,this.motionY=0,this.velocityX=0,this.velocityY=0,this.onMouseMove=this.onMouseMove.bind(this),this.onDeviceOrientation=this.onDeviceOrientation.bind(this),this.onDeviceMotion=this.onDeviceMotion.bind(this),this.onOrientationTimer=this.onOrientationTimer.bind(this),this.onMotionTimer=this.onMotionTimer.bind(this),this.onCalibrationTimer=this.onCalibrationTimer.bind(this),this.onAnimationFrame=this.onAnimationFrame.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.windowWidth=null,this.windowHeight=null,this.windowCenterX=null,this.windowCenterY=null,this.windowRadiusX=null,this.windowRadiusY=null,this.portrait=!1,this.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i),this.motionSupport=!!window.DeviceMotionEvent&&!this.desktop,this.orientationSupport=!!window.DeviceOrientationEvent&&!this.desktop,this.orientationStatus=0,this.motionStatus=0,this.initialise()}return e(t,[{key:"initialise",value:function(){void 0===this.transform2DSupport&&(this.transform2DSupport=r.transformSupport("2D"),this.transform3DSupport=r.transformSupport("3D")),this.transform3DSupport&&r.accelerate(this.element),"static"===window.getComputedStyle(this.element).getPropertyValue("position")&&(this.element.style.position="relative"),this.pointerEvents||(this.element.style.pointerEvents="none"),this.updateLayers(),this.updateDimensions(),this.enable(),this.queueCalibration(this.calibrationDelay)}},{key:"doReadyCallback",value:function(){this.onReady&&this.onReady()}},{key:"updateLayers",value:function(){this.selector?this.layers=this.element.querySelectorAll(this.selector):this.layers=this.element.children,this.layers.length||console.warn("ParallaxJS: Your scene does not have any layers."),this.depthsX=[],this.depthsY=[];for(var t=0;t<this.layers.length;t++){var e=this.layers[t];this.transform3DSupport&&r.accelerate(e),e.style.position=t?"absolute":"relative",e.style.display="block",e.style.left=0,e.style.top=0;var i=r.data(e,"depth")||0;this.depthsX.push(r.data(e,"depth-x")||i),this.depthsY.push(r.data(e,"depth-y")||i)}}},{key:"updateDimensions",value:function(){this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight,this.windowCenterX=this.windowWidth*this.originX,this.windowCenterY=this.windowHeight*this.originY,this.windowRadiusX=Math.max(this.windowCenterX,this.windowWidth-this.windowCenterX),this.windowRadiusY=Math.max(this.windowCenterY,this.windowHeight-this.windowCenterY)}},{key:"updateBounds",value:function(){this.bounds=this.inputElement.getBoundingClientRect(),this.elementPositionX=this.bounds.left,this.elementPositionY=this.bounds.top,this.elementWidth=this.bounds.width,this.elementHeight=this.bounds.height,this.elementCenterX=this.elementWidth*this.originX,this.elementCenterY=this.elementHeight*this.originY,this.elementRangeX=Math.max(this.elementCenterX,this.elementWidth-this.elementCenterX),this.elementRangeY=Math.max(this.elementCenterY,this.elementHeight-this.elementCenterY)}},{key:"queueCalibration",value:function(t){clearTimeout(this.calibrationTimer),this.calibrationTimer=setTimeout(this.onCalibrationTimer,t)}},{key:"enable",value:function(){this.enabled||(this.enabled=!0,this.orientationSupport?(this.portrait=!1,window.addEventListener("deviceorientation",this.onDeviceOrientation),this.detectionTimer=setTimeout(this.onOrientationTimer,this.supportDelay)):this.motionSupport?(this.portrait=!1,window.addEventListener("devicemotion",this.onDeviceMotion),this.detectionTimer=setTimeout(this.onMotionTimer,this.supportDelay)):(this.calibrationX=0,this.calibrationY=0,this.portrait=!1,window.addEventListener("mousemove",this.onMouseMove),this.doReadyCallback()),window.addEventListener("resize",this.onWindowResize),this.raf=i(this.onAnimationFrame))}},{key:"disable",value:function(){this.enabled&&(this.enabled=!1,this.orientationSupport?window.removeEventListener("deviceorientation",this.onDeviceOrientation):this.motionSupport?window.removeEventListener("devicemotion",this.onDeviceMotion):window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("resize",this.onWindowResize),i.cancel(this.raf))}},{key:"calibrate",value:function(t,e){this.calibrateX=void 0===t?this.calibrateX:t,this.calibrateY=void 0===e?this.calibrateY:e}},{key:"invert",value:function(t,e){this.invertX=void 0===t?this.invertX:t,this.invertY=void 0===e?this.invertY:e}},{key:"friction",value:function(t,e){this.frictionX=void 0===t?this.frictionX:t,this.frictionY=void 0===e?this.frictionY:e}},{key:"scalar",value:function(t,e){this.scalarX=void 0===t?this.scalarX:t,this.scalarY=void 0===e?this.scalarY:e}},{key:"limit",value:function(t,e){this.limitX=void 0===t?this.limitX:t,this.limitY=void 0===e?this.limitY:e}},{key:"origin",value:function(t,e){this.originX=void 0===t?this.originX:t,this.originY=void 0===e?this.originY:e}},{key:"setInputElement",value:function(t){this.inputElement=t,this.updateDimensions()}}
125,{key:"setPosition",value:function(t,e,i){e=e.toFixed(this.precision)+"px",i=i.toFixed(this.precision)+"px",this.transform3DSupport?r.css(t,"transform","translate3d("+e+","+i+",0)"):this.transform2DSupport?r.css(t,"transform","translate("+e+","+i+")"):(t.style.left=e,t.style.top=i)}},{key:"onOrientationTimer",value:function(){this.orientationSupport&&0===this.orientationStatus?(this.disable(),this.orientationSupport=!1,this.enable()):this.doReadyCallback()}},{key:"onMotionTimer",value:function(){this.motionSupport&&0===this.motionStatus?(this.disable(),this.motionSupport=!1,this.enable()):this.doReadyCallback()}},{key:"onCalibrationTimer",value:function(){this.calibrationFlag=!0}},{key:"onWindowResize",value:function(){this.updateDimensions()}},{key:"onAnimationFrame",value:function(){this.updateBounds();var t=this.inputX-this.calibrationX,e=this.inputY-this.calibrationY;(Math.abs(t)>this.calibrationThreshold||Math.abs(e)>this.calibrationThreshold)&&this.queueCalibration(0),this.portrait?(this.motionX=this.calibrateX?e:this.inputY,this.motionY=this.calibrateY?t:this.inputX):(this.motionX=this.calibrateX?t:this.inputX,this.motionY=this.calibrateY?e:this.inputY),this.motionX*=this.elementWidth*(this.scalarX/100),this.motionY*=this.elementHeight*(this.scalarY/100),isNaN(parseFloat(this.limitX))||(this.motionX=r.clamp(this.motionX,-this.limitX,this.limitX)),isNaN(parseFloat(this.limitY))||(this.motionY=r.clamp(this.motionY,-this.limitY,this.limitY)),this.velocityX+=(this.motionX-this.velocityX)*this.frictionX,this.velocityY+=(this.motionY-this.velocityY)*this.frictionY;for(var n=0;n<this.layers.length;n++){var s=this.layers[n],o=this.depthsX[n],a=this.depthsY[n],l=this.velocityX*(o*(this.invertX?-1:1)),h=this.velocityY*(a*(this.invertY?-1:1));this.setPosition(s,l,h)}this.raf=i(this.onAnimationFrame)}},{key:"rotate",value:function(t,e){var i=(t||0)/30,n=(e||0)/30,r=this.windowHeight>this.windowWidth;this.portrait!==r&&(this.portrait=r,this.calibrationFlag=!0),this.calibrationFlag&&(this.calibrationFlag=!1,this.calibrationX=i,this.calibrationY=n),this.inputX=i,this.inputY=n}},{key:"onDeviceOrientation",value:function(t){var e=t.beta,i=t.gamma;null!==e&&null!==i&&(this.orientationStatus=1,this.rotate(e,i))}},{key:"onDeviceMotion",value:function(t){var e=t.rotationRate.beta,i=t.rotationRate.gamma;null!==e&&null!==i&&(this.motionStatus=1,this.rotate(e,i))}},{key:"onMouseMove",value:function(t){var e=t.clientX,i=t.clientY;if(this.hoverOnly&&(e<this.elementPositionX||e>this.elementPositionX+this.elementWidth||i<this.elementPositionY||i>this.elementPositionY+this.elementHeight))return this.inputX=0,void(this.inputY=0);this.relativeInput?(this.clipRelativeInput&&(e=Math.max(e,this.elementPositionX),e=Math.min(e,this.elementPositionX+this.elementWidth),i=Math.max(i,this.elementPositionY),i=Math.min(i,this.elementPositionY+this.elementHeight)),this.elementRangeX&&this.elementRangeY&&(this.inputX=(e-this.elementPositionX-this.elementCenterX)/this.elementRangeX,this.inputY=(i-this.elementPositionY-this.elementCenterY)/this.elementRangeY)):this.windowRadiusX&&this.windowRadiusY&&(this.inputX=(e-this.windowCenterX)/this.windowRadiusX,this.inputY=(i-this.windowCenterY)/this.windowRadiusY)}},{key:"destroy",value:function(){this.disable(),clearTimeout(this.calibrationTimer),clearTimeout(this.detectionTimer),this.element.removeAttribute("style");for(var t=0;t<this.layers.length;t++)this.layers[t].removeAttribute("style");delete this.element,delete this.layers}},{key:"version",value:function(){return"3.1.0"}}]),t}();t.exports=o},{"object-assign":1,raf:4}]},{},[5])(5)})),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(i),i}:t(jQuery)}((function(t){var e,i,n,r,s,o,a,l,h,c,d,p,u,f,m=((x=t&&t.fn&&t.fn.select2&&t.fn.select2.amd?t.fn.select2.amd:x)&&x.requirejs||(x?i=x:x={},l={},h={},c={},d={},p=Object.prototype.hasOwnProperty,u=[].slice,f=/\.js$/,o=function(t,e){var i,n,r=_(t),s=r[0];e=e[1];return t=r[1],s&&(i=b(s=v(s,e))),s?t=i&&i.normalize?i.normalize(t,(n=e,function(t){return v(t,n)})):v(t,e):(s=(r=_(t=v(t,e)))[0],t=r[1],s&&(i=b(s))),{f:s?s+"!"+t:t,n:t,pr:s,p:i}},a={require:function(t){return y(t)},exports:function(t){var e=l[t];return void 0!==e?e:l[t]={}},module:function(t){return{id:t,uri:"",exports:l[t],config:(e=t,function(){return c&&c.config&&c.config[e]||{}})};var e}}
125,r=function(t,e,i,r){var s,c,p,u,f,m=[],v=typeof i,_=w(r=r||t);if("undefined"==v||"function"==v){for(e=!e.length&&i.length?["require","exports","module"]:e,u=0;u<e.length;u+=1)if("require"===(c=(p=o(e[u],_)).f))m[u]=a.require(t);else if("exports"===c)m[u]=a.exports(t),f=!0;else if("module"===c)s=m[u]=a.module(t);else if(g(l,c)||g(h,c)||g(d,c))m[u]=b(c);else{if(!p.p)throw new Error(t+" missing "+c);p.p.load(p.n,y(r,!0),function(t){return function(e){l[t]=e}}(c),{}),m[u]=l[c]}v=i?i.apply(l[t],m):void 0,t&&(s&&s.exports!==n&&s.exports!==l[t]?l[t]=s.exports:v===n&&f||(l[t]=v))}else t&&(l[t]=i)},e=i=s=function(t,e,i,l,h){if("string"==typeof t)return a[t]?a[t](e):b(o(t,w(e)).f);if(!t.splice){if((c=t).deps&&s(c.deps,c.callback),!e)return;e.splice?(t=e,e=i,i=null):t=n}return e=e||function(){},"function"==typeof i&&(i=l,l=h),l?r(n,t,e,i):setTimeout((function(){r(n,t,e,i)}),4),s},s.config=function(t){return s(t)},e._defined=l,(m=function(t,e,i){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(i=e,e=[]),g(l,t)||g(h,t)||(h[t]=[t,e,i])}).amd={jQuery:!0},x.requirejs=e,x.require=i,x.define=m),x.define("almond",(function(){})),x.define("jquery",[],(function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e})),x.define("select2/utils",["jquery"],(function(t){var e={};function i(t){var e,i=t.prototype,n=[];for(e in i)"function"==typeof i[e]&&"constructor"!==e&&n.push(e);return n}function n(){this.listeners={}}e.Extend=function(t,e){var i,n={}.hasOwnProperty;function r(){this.constructor=t}for(i in e)n.call(e,i)&&(t[i]=e[i]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},e.Decorate=function(t,e){var n=i(e),r=i(t);function s(){var i=Array.prototype.unshift,n=e.prototype.constructor.length,r=t.prototype.constructor;0<n&&(i.call(arguments,t.prototype.constructor),r=e.prototype.constructor),r.apply(this,arguments)}e.displayName=t.displayName,s.prototype=new function(){this.constructor=s};for(var o=0;o<r.length;o++){var a=r[o];s.prototype[a]=t.prototype[a]}for(var l=0;l<n.length;l++){var h=n[l];s.prototype[h]=function(t){var i=function(){};t in s.prototype&&(i=s.prototype[t]);var n=e.prototype[t];return function(){return Array.prototype.unshift.call(arguments,i),n.apply(this,arguments)}}(h)}return s},n.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},n.prototype.trigger=function(t){var e=Array.prototype.slice,i=e.call(arguments,1);this.listeners=this.listeners||{},0===(i=null==i?[]:i).length&&i.push({}),(i[0]._type=t)in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},n.prototype.invoke=function(t,e){for(var i=0,n=t.length;i<n;i++)t[i].apply(this,e)},e.Observable=n,e.generateChars=function(t){for(var e="",i=0;i<t;i++)e+=Math.floor(36*Math.random()).toString(36);return e},e.bind=function(t,e){return function(){t.apply(e,arguments)}},e._convertData=function(t){for(var e in t){var i=e.split("-"),n=t;if(1!==i.length){for(var r=0;r<i.length;r++){var s=i[r];(s=s.substring(0,1).toLowerCase()+s.substring(1))in n||(n[s]={}),r==i.length-1&&(n[s]=t[e]),n=n[s]}delete t[e]}}return t},e.hasScroll=function(e,i){var n=t(i),r=i.style.overflowX,s=i.style.overflowY;return(r!==s||"hidden"!==s&&"visible"!==s)&&("scroll"===r||"scroll"===s||n.innerHeight()<i.scrollHeight||n.innerWidth()<i.scrollWidth)},e.escapeMarkup=function(t){var e={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))},e.__cache={};var r=0;return e.GetUniqueElementId=function(t){var i=t.getAttribute("data-select2-id");return null!=i||(i=t.id?"select2-data-"+t.id:"select2-data-"+(++r).toString()+"-"+e.generateChars(4),t.setAttribute("data-select2-id",i)),i},e.StoreData=function(t,i,n){t=e.GetUniqueElementId(t),e.__cache[t]||(e.__cache[t]={}),e.__cache[t][i]=n},e.GetData=function(i,n){var r=e.GetUniqueElementId(i);return n?e.__cache[r]&&null!=e.__cache[r][n]?e.__cache[r][n]:t(i).data(n):e.__cache[r]},e.RemoveData=function(t){var i=e.GetUniqueElementId(t);null!=e.__cache[i]&&delete e.__cache[i],t.removeAttribute("data-select2-id")}
125,e.copyNonInternalCssClasses=function(t,e){var i=(i=t.getAttribute("class").trim().split(/\s+/)).filter((function(t){return 0===t.indexOf("select2-")}));e=(e=e.getAttribute("class").trim().split(/\s+/)).filter((function(t){return 0!==t.indexOf("select2-")})),e=i.concat(e);t.setAttribute("class",e.join(" "))},e})),x.define("select2/results",["jquery","./utils"],(function(t,e){function i(t,e,n){this.$element=t,this.data=n,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var i=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=t('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);n.append(i(r(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var i=0;i<t.results.length;i++){var n=t.results[i];n=this.option(n);e.push(n)}this.$results.append(e)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(t,e){e.find(".select2-results").append(t)},i.prototype.sort=function(t){return this.options.get("sorter")(t)},i.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option--selectable"),e=t.filter(".select2-results__option--selected");(0<e.length?e:t).first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var i=this;this.data.current((function(n){var r=n.map((function(t){return t.id.toString()}));i.$results.find(".select2-results__option--selectable").each((function(){var i=t(this),n=e.GetData(this,"data"),s=""+n.id;null!=n.element&&n.element.selected||null==n.element&&-1<r.indexOf(s)?(this.classList.add("select2-results__option--selected"),i.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),i.attr("aria-selected","false"))}))}))},i.prototype.showLoading=function(t){this.hideLoading(),t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(t)},(t=this.option(t)).className+=" loading-results",this.$results.prepend(t)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(i){var n=document.createElement("li");n.classList.add("select2-results__option"),n.classList.add("select2-results__option--selectable");var r,s={role:"option"},o=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(r in(null!=i.element&&o.call(i.element,":disabled")||null==i.element&&i.disabled)&&(s["aria-disabled"]="true",n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--disabled")),null==i.id&&n.classList.remove("select2-results__option--selectable"),null!=i._resultId&&(n.id=i._resultId),i.title&&(n.title=i.title),i.children&&(s.role="group",s["aria-label"]=i.text,n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--group")),s){var a=s[r];n.setAttribute(r,a)}if(i.children){var l=t(n),h=document.createElement("strong");h.className="select2-results__group",this.template(i,h);for(var c=[],d=0;d<i.children.length;d++){var p=i.children[d];p=this.option(p);c.push(p)}(o=t("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"})).append(c),l.append(h),l.append(o)}else this.template(i,n);return e.StoreData(n,"data",i),n},i.prototype.bind=function(i,n){var r=this,s=i.id+"-results";this.$results.attr("id",s),i.on("results:all",(function(t){r.clear(),r.append(t.data),i.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),i.on("results:append",(function(t){r.append(t.data),i.isOpen()&&r.setClasses()})),i.on("query",(function(t){r.hideMessages(),r.showLoading(t)}
125)),i.on("select",(function(){i.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),i.on("unselect",(function(){i.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),i.on("open",(function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()})),i.on("close",(function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")})),i.on("results:toggle",(function(){var t=r.getHighlightedResults();0!==t.length&&t.trigger("mouseup")})),i.on("results:select",(function(){var t,i=r.getHighlightedResults();0!==i.length&&(t=e.GetData(i[0],"data"),i.hasClass("select2-results__option--selected")?r.trigger("close",{}):r.trigger("select",{data:t}))})),i.on("results:previous",(function(){var t,e=r.getHighlightedResults(),i=r.$results.find(".select2-results__option--selectable"),n=i.index(e);n<=0||(t=n-1,0===e.length&&(t=0),(n=i.eq(t)).trigger("mouseenter"),e=r.$results.offset().top,i=n.offset().top,n=r.$results.scrollTop()+(i-e),0===t?r.$results.scrollTop(0):i-e<0&&r.$results.scrollTop(n))})),i.on("results:next",(function(){var t,e=r.getHighlightedResults(),i=r.$results.find(".select2-results__option--selectable"),n=i.index(e)+1;n>=i.length||((t=i.eq(n)).trigger("mouseenter"),e=r.$results.offset().top+r.$results.outerHeight(!1),i=t.offset().top+t.outerHeight(!1),t=r.$results.scrollTop()+i-e,0===n?r.$results.scrollTop(0):e<i&&r.$results.scrollTop(t))})),i.on("results:focus",(function(t){t.element[0].classList.add("select2-results__option--highlighted"),t.element[0].setAttribute("aria-selected","true")})),i.on("results:message",(function(t){r.displayMessage(t)})),t.fn.mousewheel&&this.$results.on("mousewheel",(function(t){var e=r.$results.scrollTop(),i=r.$results.get(0).scrollHeight-e+t.deltaY;e=0<t.deltaY&&e-t.deltaY<=0,i=t.deltaY<0&&i<=r.$results.height();e?(r.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):i&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),t.preventDefault(),t.stopPropagation())})),this.$results.on("mouseup",".select2-results__option--selectable",(function(i){var n=t(this),s=e.GetData(this,"data");n.hasClass("select2-results__option--selected")?r.options.get("multiple")?r.trigger("unselect",{originalEvent:i,data:s}):r.trigger("close",{}):r.trigger("select",{originalEvent:i,data:s})})),this.$results.on("mouseenter",".select2-results__option--selectable",(function(i){var n=e.GetData(this,"data");r.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),r.trigger("results:focus",{data:n,element:t(this)})}))},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var t,e,i,n,r=this.getHighlightedResults();0!==r.length&&(t=this.$results.find(".select2-results__option--selectable").index(r),n=this.$results.offset().top,e=r.offset().top,i=this.$results.scrollTop()+(e-n),n=e-n,i-=2*r.outerHeight(!1),t<=2?this.$results.scrollTop(0):(n>this.$results.outerHeight()||n<0)&&this.$results.scrollTop(i))},i.prototype.template=function(e,i){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup");null==(e=n(e,i))?i.style.display="none":"string"==typeof e?i.innerHTML=r(e):t(i).append(e)},i})),x.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),x.define("select2/selection/base",["jquery","../utils","../keys"],(function(t,e,i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var i=t('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=e.GetData(this.$element[0],"old-tabindex")?this._tabindex=e.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),i.attr("title",this.$element.attr("title")),i.attr("tabindex",this._tabindex),i.attr("aria-disabled","false"),this.$selection=i},n.prototype.bind=function(t,e){var n=this,r=t.id+"-results";this.container=t,this.$selection.on("focus",(function(t){n.trigger("focus",t)})),this.$selection.on("blur",(function(t){n._handleBlur(t)})),this.$selection.on("keydown",(function(t){n.trigger("keypress",t),t.which===i.SPACE&&t.preventDefault()})),t.on("results:focus",(function(t){n.$selection.attr("aria-activedescendant",t.data._resultId)})),t.on("selection:update",(function(t){n.update(t.data)})),t.on("open",(function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(t)})),t.on("close",(function(){n.$selection.attr("aria-expanded","fal
125se"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(t)})),t.on("enable",(function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")})),t.on("disable",(function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")}))},n.prototype._handleBlur=function(e){var i=this;window.setTimeout((function(){document.activeElement==i.$selection[0]||t.contains(i.$selection[0],document.activeElement)||i.trigger("blur",e)}),1)},n.prototype._attachCloseHandler=function(i){t(document.body).on("mousedown.select2."+i.id,(function(i){ 126var n=t(i.target).closest(".select2");t(".select2.select2-container--open").each((function(){this!=n[0]&&e.GetData(this,"element").select2("close")}))}))},n.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},n.prototype.position=function(t,e){e.find(".selection").append(t)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},n.prototype.isEnabled=function(){return!this.isDisabled()},n.prototype.isDisabled=function(){return this.options.get("disabled")},n})),x.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(t,e,i,n){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,e),r.prototype.render=function(){var t=r.__super__.render.call(this);return t[0].classList.add("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},r.prototype.bind=function(t,e){var i=this;r.__super__.bind.apply(this,arguments);var n=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",n),this.$selection.attr("aria-controls",n),this.$selection.on("mousedown",(function(t){1===t.which&&i.trigger("toggle",{originalEvent:t})})),this.$selection.on("focus",(function(t){})),this.$selection.on("blur",(function(t){})),t.on("focus",(function(e){t.isOpen()||i.$selection.trigger("focus")}))},r.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},r.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},r.prototype.selectionContainer=function(){return t("<span></span>")},r.prototype.update=function(t){var e,i;0!==t.length?(i=t[0],e=this.$selection.find(".select2-selection__rendered"),t=this.display(i,e),e.empty().append(t),(i=i.title||i.text)?e.attr("title",i):e.removeAttr("title")):this.clear()},r})),x.define("select2/selection/multiple",["jquery","./base","../utils"],(function(t,e,i){function n(t,e){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,e),n.prototype.render=function(){var t=n.__super__.render.call(this);return t[0].classList.add("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},n.prototype.bind=function(e,r){var s=this;n.__super__.bind.apply(this,arguments);var o=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",o),this.$selection.on("click",(function(t){s.trigger("toggle",{originalEvent:t})})),this.$selection.on("click",".select2-selection__choice__remove",(function(e){var n;s.isDisabled()||(n=t(this).parent(),n=i.GetData(n[0],"data"),s.trigger("unselect",{originalEvent:e,data:n}))})),this.$selection.on("keydown",".select2-selection__choice__remove",(function(t){s.isDisabled()||t.stopPropagation()}))},n.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},n.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},n.prototype.selectionContainer=function(){return t('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">×</span></button><span class="select2-selection__choice__display"></span></li>')},n.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],n=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",r=0;r<t.length;r++){var s=t[r],o=this.selectionContainer(),a=this.display(s,o),l=n+i.generateChars(4)+"-";s.id?l+=s.id:l+=i.generateChars(4),o.find(".select2-selection__choice__display").append(a).attr("id",l);var h=s.title||s.text;h&&o.attr("title",h),a=this.options.get("translations").get("removeItem"),(h=o.find(".select2-selection__choice__remove")).attr("title",a()),h.attr("aria-label",a()),h.attr("aria-describedby",l),i.StoreData(o[0],"data",s),e.push(o)}this.$selection.find(".select2-selection__rendered").append(e)}},n})),x.define("select2/selection/placeholder",[],(function(){function t(t,e,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i)}return t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e?{id:"",text:e}:e},t.prototype.createPlaceholder=function(t,e){var i=this.selectionContainer();return i.html(this.display(e)),i[0].classList.add("select2-selection__placeholder"),i[0].classList.remove("select2-selection__choice"),e=e.title||e.text||i.text(),this.$selection.find(".select2-selection__rendered").attr("title",e),i},t.prototype.update=function(t,e){var i=1==e.length&&e[0].id!=this.placeholder.id;if(1<e.length||i)return t.call(this,e);this.clear(),e=this.createPlaceholder(this.placeholder),this.$selection.find(".select2-selection__rendered").append(e)},t}
126)),x.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(t,e,i){function n(){}return n.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(t){n._handleClear(t)})),e.on("keypress",(function(t){n._handleKeyboardClear(t,e)}))},n.prototype._handleClear=function(t,e){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){e.stopPropagation();var r=i.GetData(n[0],"data"),s=this.$element.val();this.$element.val(this.placeholder.id);var o={data:r};if(this.trigger("clear",o),o.prevented)this.$element.val(s);else{for(var a=0;a<r.length;a++)if(o={data:r[a]},this.trigger("unselect",o),o.prevented)return void this.$element.val(s);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},n.prototype._handleKeyboardClear=function(t,i,n){n.isOpen()||i.which!=e.DELETE&&i.which!=e.BACKSPACE||this._handleClear(i)},n.prototype.update=function(e,n){var r,s;e.call(this,n),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),0<this.$selection.find(".select2-selection__placeholder").length||0===n.length||(r=this.$selection.find(".select2-selection__rendered").attr("id"),s=this.options.get("translations").get("removeAllItems"),(e=t('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">×</span></button>')).attr("title",s()),e.attr("aria-label",s()),e.attr("aria-describedby",r),i.StoreData(e[0],"data",n),this.$selection.prepend(e),this.$selection[0].classList.add("select2-selection--clearable"))},n})),x.define("select2/selection/search",["jquery","../utils","../keys"],(function(t,e,i){function n(t,e,i){t.call(this,e,i)}return n.prototype.render=function(e){var i=this.options.get("translations").get("search"),n=t('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>');return this.$searchContainer=n,this.$search=n.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",i()),e=e.call(this),this._transferTabIndex(),e.append(this.$searchContainer),e},n.prototype.bind=function(t,n,r){var s=this,o=n.id+"-results",a=n.id+"-container";t.call(this,n,r),s.$search.attr("aria-describedby",a),n.on("open",(function(){s.$search.attr("aria-controls",o),s.$search.trigger("focus")})),n.on("close",(function(){s.$search.val(""),s.resizeSearch(),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")})),n.on("enable",(function(){s.$search.prop("disabled",!1),s._transferTabIndex()})),n.on("disable",(function(){s.$search.prop("disabled",!0)})),n.on("focus",(function(t){s.$search.trigger("focus")})),n.on("results:focus",(function(t){t.data._resultId?s.$search.attr("aria-activedescendant",t.data._resultId):s.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(t){s.trigger("focus",t)})),this.$selection.on("focusout",".select2-search--inline",(function(t){s._handleBlur(t)})),this.$selection.on("keydown",".select2-search--inline",(function(t){var n;t.stopPropagation(),s.trigger("keypress",t),s._keyUpPrevented=t.isDefaultPrevented(),t.which!==i.BACKSPACE||""!==s.$search.val()||0<(n=s.$selection.find(".select2-selection__choice").last()).length&&(n=e.GetData(n[0],"data"),s.searchRemoveChoice(n),t.preventDefault())})),this.$selection.on("click",".select2-search--inline",(function(t){s.$search.val()&&t.stopPropagation()}));var l=(n=document.documentMode)&&n<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(t){l?s.$selection.off("input.search input.searchcheck"):s.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(t){var e;l&&"input"===t.type?s.$selection.off("input.search input.searchcheck"):(e=t.which)!=i.SHIFT&&e!=i.CTRL&&e!=i.ALT&&e!=i.TAB&&s.handleSearch(t)}))},n.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},n.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},n.prototype.update=function(t,e){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.resizeSearch(),i&&this.$search.trigger("focus")},n.prototype.handleSearch=function(){var t;this.resizeSearch(),this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},n.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},n.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="100%";""===this.$search.attr("placeholder")&&(t=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",t)},n})),x.define("select2/selection/selectionCss",["../utils"],(function(t){function e(){}return e.prototype.render=function(e){var i=e.call(this);return-1!==(e=this.options.get("selectionCssClass")||"").indexOf(":all:")&&(e=e.replace(":all:",""),t.copyNonInternalCssClasse
126s(i[0],this.$element[0])),i.addClass(e),i},e})),x.define("select2/selection/eventRelay",["jquery"],(function(t){function e(){}return e.prototype.bind=function(e,i,n){var r=this,s=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,i,n),i.on("*",(function(e,i){var n;-1!==s.indexOf(e)&&(i=i||{},n=t.Event("select2:"+e,{params:i}),r.$element.trigger(n),-1!==o.indexOf(e)&&(i.prevented=n.isDefaultPrevented()))}))},e})),x.define("select2/translation",["jquery","require"],(function(t,e){function i(t){this.dict=t||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(t){return this.dict[t]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(t){var n;return t in i._cache||(n=e(t),i._cache[t]=n),new i(i._cache[t])},i})),x.define("select2/diacritics",[],(function(){return{"â¶":"A","A":"A","Ã":"A","Ã":"A","Ã":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ä":"A","Ä":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ç ":"A","Ã":"A","Ç":"A","Ả":"A","Ã
":"A","Ǻ":"A","Ç":"A","È":"A","È":"A","Ạ":"A","Ậ":"A","Ặ":"A","á¸":"A","Ä":"A","Ⱥ":"A","Ɐ":"A","ê²":"AA","Ã":"AE","Ǽ":"AE","Ç¢":"AE","ê´":"AO","ê¶":"AU","ê¸":"AV","êº":"AV","ê¼":"AY","â·":"B","ï¼¢":"B","á¸":"B","á¸":"B","á¸":"B","É":"B","Æ":"B","Æ":"B","â¸":"C","ï¼£":"C","Ä":"C","Ä":"C","Ä":"C","Ä":"C","Ã":"C","á¸":"C","Æ":"C","È»":"C","ê¾":"C","â¹":"D","D":"D","á¸":"D","Ä":"D","á¸":"D","á¸":"D","á¸":"D","á¸":"D","Ä":"D","Æ":"D","Æ":"D","Æ":"D","ê¹":"D","DZ":"DZ","Ç":"DZ","Dz":"Dz","Ç
":"Dz","âº":"E","ï¼¥":"E","Ã":"E","Ã":"E","Ã":"E","á»":"E","Ế":"E","á»":"E","á»":"E","Ẽ":"E","Ä":"E","á¸":"E","á¸":"E","Ä":"E","Ä":"E","Ã":"E","Ẻ":"E","Ä":"E","È":"E","È":"E","Ẹ":"E","á»":"E","Ȩ":"E","á¸":"E","Ä":"E","á¸":"E","á¸":"E","Æ":"E","Æ":"E","â»":"F","F":"F","á¸":"F","Æ":"F","ê»":"F","â¼":"G","ï¼§":"G","Ç´":"G","Ä":"G","Ḡ":"G","Ä":"G","Ä ":"G","Ǧ":"G","Ä¢":"G","Ǥ":"G","Æ":"G","ê ":"G","ê½":"G","ê¾":"G","â½":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","È":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","â±§":"H","â±µ":"H","ê":"H","â¾":"I","I":"I","Ã":"I","Ã":"I","Ã":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ã":"I","Ḯ":"I","á»":"I","Ç":"I","È":"I","È":"I","á»":"I","Ä®":"I","Ḭ":"I","Æ":"I","â¿":"J","J":"J","Ä´":"J","É":"J","â":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Æ":"K","Ⱪ":"K","ê":"K","ê":"K","ê":"K","ê¢":"K","â":"L","L":"L","Ä¿":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ä»":"L","Ḽ":"L","Ḻ":"L","Å":"L","Ƚ":"L","â±¢":"L","â± ":"L","ê":"L","ê":"L","ê":"L","Ç":"LJ","Ç":"Lj","â":"M","ï¼":"M","Ḿ":"M","á¹":"M","á¹":"M","â±®":"M","Æ":"M","â":"N","ï¼®":"N","Ǹ":"N","Å":"N","Ã":"N","á¹":"N","Å":"N","á¹":"N","Å
":"N","á¹":"N","á¹":"N","È ":"N","Æ":"N","ê":"N","ê¤":"N","Ç":"NJ","Ç":"Nj","â":"O","O":"O","Ã":"O","Ã":"O","Ã":"O","á»":"O","á»":"O","á»":"O","á»":"O","Ã":"O","á¹":"O","Ȭ":"O","á¹":"O","Å":"O","á¹":"O","á¹":"O","Å":"O","È®":"O","Ȱ":"O","Ã":"O","Ȫ":"O","á»":"O","Å":"O","Ç":"O","È":"O","È":"O","Æ ":"O","á»":"O","á»":"O","á» ":"O","á»":"O","Ợ":"O","á»":"O","á»":"O","Ǫ":"O","Ǭ":"O","Ã":"O","Ǿ":"O","Æ":"O","Æ":"O","ê":"O","ê":"O","Å":"OE","Æ¢":"OI","ê":"OO","È¢":"OU","â
":"P","ï¼°":"P","á¹":"P","á¹":"P","Ƥ":"P","â±£":"P","ê":"P","ê":"P","ê":"P","â":"Q","ï¼±":"Q","ê":"Q","ê":"Q","É":"Q","â":"R","ï¼²":"R","Å":"R","á¹":"R","Å":"R","È":"R","È":"R","á¹":"R","á¹":"R","Å":"R","á¹":"R","É":"R","Ɽ":"R","ê":"R","ê¦":"R","ê":"R","â":"S","ï¼³":"S","áº":"S","Å":"S","Ṥ":"S","Å":"S","á¹ ":"S","Å ":"S","Ṧ":"S","á¹¢":"S","Ṩ":"S","È":"S","Å":"S","â±¾":"S","ê¨":"S","ê":"S","â":"T","ï¼´":"T","Ṫ":"T","Ť":"T","Ṭ":"T","È":"T","Å¢":"T","á¹°":"T","á¹®":"T","Ŧ":"T","Ƭ":"T","Æ®":"T","Ⱦ":"T","ê":"T","ê¨":"TZ","â":"U","ï¼µ":"U","Ã":"U","Ã":"U","Ã":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ã":"U","Ç":"U","Ç":"U","Ç":"U","Ç":"U","Ủ":"U","Å®":"U","Ű":"U","Ç":"U","È":"U","È":"U","Ư":"U","Ừ":"U","Ứ":"U","á»®":"U","Ử":"U","á»°":"U","Ụ":"U","á¹²":"U","Ų":"U","á¹¶":"U","á¹´":"U","É":"U","â":"V","ï¼¶":"V","á¹¼":"V","á¹¾":"V","Ʋ":"
126V","ê":"V","É
":"V","ê ":"VY","â":"W","ï¼·":"W","áº":"W","áº":"W","Å´":"W","áº":"W","áº":"W","áº":"W","â±²":"W","â":"X","X":"X","áº":"X","áº":"X","â":"Y","ï¼¹":"Y","Ỳ":"Y","Ã":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","áº":"Y","Ÿ":"Y","á»¶":"Y","á»´":"Y","Ƴ":"Y","É":"Y","Ỿ":"Y","â":"Z","Z":"Z","Ź":"Z","áº":"Z","Å»":"Z","Ž":"Z","áº":"Z","áº":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","ê¢":"Z","â":"a","ï½":"a","áº":"a","à ":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","Ä":"a","Ä":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","Ç¡":"a","ä":"a","Ç":"a","ả":"a","Ã¥":"a","Ç»":"a","Ç":"a","È":"a","È":"a","ạ":"a","áº":"a","ặ":"a","á¸":"a","Ä
":"a","â±¥":"a","É":"a","ê³":"aa","æ":"ae","ǽ":"ae","Ç£":"ae","êµ":"ao","ê·":"au","ê¹":"av","ê»":"av","ê½":"ay","â":"b","ï½":"b","á¸":"b","á¸
":"b","á¸":"b","Æ":"b","Æ":"b","É":"b","â":"c","ï½":"c","Ä":"c","Ä":"c","Ä":"c","Ä":"c","ç":"c","á¸":"c","Æ":"c","ȼ":"c","ê¿":"c","â":"c","â":"d","ï½":"d","á¸":"d","Ä":"d","á¸":"d","á¸":"d","á¸":"d","á¸":"d","Ä":"d","Æ":"d","É":"d","É":"d","êº":"d","dz":"dz","Ç":"dz","â":"e","ï½
":"e","è":"e","é":"e","ê":"e","á»":"e","ế":"e","á»
":"e","á»":"e","ẽ":"e","Ä":"e","á¸":"e","á¸":"e","Ä":"e","Ä":"e","ë":"e","ẻ":"e","Ä":"e","È
":"e","È":"e","ẹ":"e","á»":"e","È©":"e","á¸":"e","Ä":"e","á¸":"e","á¸":"e","É":"e","É":"e","Ç":"e","â":"f","ï½":"f","á¸":"f","Æ":"f","ê¼":"f","â":"g","ï½":"g","ǵ":"g","Ä":"g","ḡ":"g","Ä":"g","Ä¡":"g","ǧ":"g","Ä£":"g","Ç¥":"g","É ":"g","ê¡":"g","áµ¹":"g","ê¿":"g","â":"h","ï½":"h","Ä¥":"h","ḣ":"h","ḧ":"h","È":"h","ḥ":"h","ḩ":"h","ḫ":"h","áº":"h","ħ":"h","ⱨ":"h","â±¶":"h","É¥":"h","Æ":"hv","â":"i","ï½":"i","ì":"i","Ã":"i","î":"i","Ä©":"i","Ä«":"i","Ä":"i","ï":"i","ḯ":"i","á»":"i","Ç":"i","È":"i","È":"i","á»":"i","į":"i","á¸":"i","ɨ":"i","ı":"i","â":"j","ï½":"j","ĵ":"j","ǰ":"j","É":"j","â":"k","ï½":"k","ḱ":"k","Ç©":"k","ḳ":"k","Ä·":"k","ḵ":"k","Æ":"k","ⱪ":"k","ê":"k","ê":"k","ê
":"k","ê£":"k","â":"l","ï½":"l","Å":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","Å¿":"l","Å":"l","Æ":"l","É«":"l","ⱡ":"l","ê":"l","ê":"l","ê":"l","Ç":"lj","â":"m","ï½":"m","ḿ":"m","á¹":"m","á¹":"m","ɱ":"m","ɯ":"m","â":"n","ï½":"n","ǹ":"n","Å":"n","ñ":"n","á¹
":"n","Å":"n","á¹":"n","Å":"n","á¹":"n","á¹":"n","Æ":"n","ɲ":"n","Å":"n","ê":"n","ê¥":"n","Ç":"nj","â":"o","ï½":"o","ò":"o","ó":"o","ô":"o","á»":"o","á»":"o","á»":"o","á»":"o","õ":"o","á¹":"o","È":"o","á¹":"o","Å":"o","á¹":"o","á¹":"o","Å":"o","ȯ":"o","ȱ":"o","ö":"o","È«":"o","á»":"o","Å":"o","Ç":"o","È":"o","È":"o","Æ¡":"o","á»":"o","á»":"o","ỡ":"o","á»":"o","ợ":"o","á»":"o","á»":"o","Ç«":"o","Ç":"o","ø":"o","Ç¿":"o","É":"o","ê":"o","ê":"o","ɵ":"o","Å":"oe","Æ£":"oi","È£":"ou","ê":"oo","â":"p","ï½":"p","á¹":"p","á¹":"p","Æ¥":"p","áµ½":"p","ê":"p","ê":"p","ê":"p","â ":"q","ï½":"q","É":"q","ê":"q","ê":"q","â¡":"r","ï½":"r","Å":"r","á¹":"r","Å":"r","È":"r","È":"r","á¹":"r","á¹":"r","Å":"r","á¹":"r","É":"r","ɽ":"r","ê":"r","ê§":"r","ê":"r","â¢":"s","ï½":"s","Ã":"s","Å":"s","á¹¥":"s","Å":"s","ṡ":"s","Å¡":"s","á¹§":"s","á¹£":"s","ṩ":"s","È":"s","Å":"s","È¿":"s","ê©":"s","ê
":"s","áº":"s","â£":"t","ï½":"t","ṫ":"t","áº":"t","Å¥":"t","á¹":"t","È":"t","Å£":"t","á¹±":"t","ṯ":"t","ŧ":"t","Æ":"t","Ê":"t","ⱦ":"t","ê":"t","ê©":"tz","â¤":"u","ï½":"u","ù":"u","ú":"u","û":"u","Å©":"u","á¹¹":"u","Å«":"u","á¹»":"u","Å":"u","ü":"u","Ç":"u","Ç":"u","Ç":"u","Ç":"u","á»§":"u","ů":"u","ű":"u","Ç":"u","È":"u","È":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","á»":"u","á»±":"u","ụ":"u","á¹³":"u","ų":"u","á¹·":"u","á¹µ":"u","Ê":"u","â¥":"v","ï½":"v","á¹½":"v","ṿ":"v","Ê":"v","ê":"v","Ê":"v","ê¡":"vy","â¦":"w","ï½":"w","áº":"w","áº":"w","ŵ":"w","áº":"w","áº
":"w","áº":"w","áº":"w","â±³":"w","â§":"x","ï½":"x","áº":"x","áº":"x","â¨":"y","ï½":"y","ỳ":"y","ý":"y","Å·":"y","ỹ":"y","ȳ":"y","áº":"y","ÿ":"y","á»·":"y","áº":"y","ỵ":"y","Æ´":"y","É":"y","ỿ":"y","â©":"z","ï½":"z","ź":"z","áº":"z","ż":"z","ž":"z","áº":"z","áº":"z","ƶ":"z","È¥":"z","É":"z","ⱬ":"z","ê£":"z","Î":"Î","Î":"Î","Î":"Î","Î":"Î","Ϊ":"Î","Î":"Î","Î":"Î¥","Ϋ":"Î¥","Î":"Ω","ά":"α","Î":"ε","ή":"η","ί":"ι","Ï":"ι","Î":"ι","Ï":"ο","Ï":"Ï
","Ï":"Ï
","ΰ":"Ï
","Ï":"Ï","Ï":"Ï","â":"'"}})),x.define("select2/data/base",["../utils"],(function(t){function e(t,i){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,i){return e=e.id+"-result-",e+=t.generateChars(4),null!=i.id?e+="-"+i.id.toString():e+="-"+t.generateChars(4),e},e})),x.define("select2/data/select",["./base","../utils","jquery"],(function(t,e,
126i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,t),n.prototype.current=function(t){var e=this;t(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),(function(t){return e.item(i(t))})))},n.prototype.select=function(t){var e,i=this;if(t.selected=!0,null!=t.element&&"option"===t.element.tagName.toLowerCase())return t.element.selected=!0,void this.$element.trigger("input").trigger("change");this.$element.prop("multiple")?this.current((function(e){var n=[];(t=[t]).push.apply(t,e);for(var r=0;r<t.length;r++){var s=t[r].id;-1===n.indexOf(s)&&n.push(s)}i.$element.val(n),i.$element.trigger("input").trigger("change")})):(e=t.id,this.$element.val(e),this.$element.trigger("input").trigger("change"))},n.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple")){if(t.selected=!1,null!=t.element&&"option"===t.element.tagName.toLowerCase())return t.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(i){for(var n=[],r=0;r<i.length;r++){var s=i[r].id;s!==t.id&&-1===n.indexOf(s)&&n.push(s)}e.$element.val(n),e.$element.trigger("input").trigger("change")}))}},n.prototype.bind=function(t,e){var i=this;(this.container=t).on("select",(function(t){i.select(t.data)})),t.on("unselect",(function(t){i.unselect(t.data)}))},n.prototype.destroy=function(){this.$element.find("*").each((function(){e.RemoveData(this)}))},n.prototype.query=function(t,e){var n=[],r=this;this.$element.children().each((function(){var e;"option"!==this.tagName.toLowerCase()&&"optgroup"!==this.tagName.toLowerCase()||(e=i(this),e=r.item(e),null!==(e=r.matches(t,e))&&n.push(e))})),e({results:n})},n.prototype.addOptions=function(t){this.$element.append(t)},n.prototype.option=function(t){var n;return t.children?(n=document.createElement("optgroup")).label=t.text:void 0!==(n=document.createElement("option")).textContent?n.textContent=t.text:n.innerText=t.text,void 0!==t.id&&(n.value=t.id),t.disabled&&(n.disabled=!0),t.selected&&(n.selected=!0),t.title&&(n.title=t.title),(t=this._normalizeItem(t)).element=n,e.StoreData(n,"data",t),i(n)},n.prototype.item=function(t){var n={};if(null!=(n=e.GetData(t[0],"data")))return n;var r=t[0];if("option"===r.tagName.toLowerCase())n={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if("optgroup"===r.tagName.toLowerCase()){n={text:t.prop("label"),children:[],title:t.prop("title")};for(var s=t.children("option"),o=[],a=0;a<s.length;a++){var l=i(s[a]);l=this.item(l);o.push(l)}n.children=o}return(n=this._normalizeItem(n)).element=t[0],e.StoreData(t[0],"data",n),n},n.prototype._normalizeItem=function(t){return t!==Object(t)&&(t={id:t,text:t}),null!=(t=i.extend({},{text:""},t)).id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),i.extend({},{selected:!1,disabled:!1},t)},n.prototype.matches=function(t,e){return this.options.get("matcher")(t,e)},n})),x.define("select2/data/array",["./select","../utils","jquery"],(function(t,e,i){function n(t,e){this._dataToConvert=e.get("data")||[],n.__super__.constructor.call(this,t,e)}return e.Extend(n,t),n.prototype.bind=function(t,e){n.__super__.bind.call(this,t,e),this.addOptions(this.convertToOptions(this._dataToConvert))},n.prototype.select=function(t){var e=this.$element.find("option").filter((function(e,i){return i.value==t.id.toString()}));0===e.length&&(e=this.option(t),this.addOptions(e)),n.__super__.select.call(this,t)},n.prototype.convertToOptions=function(t){for(var e=this,n=this.$element.find("option"),r=n.map((function(){return e.item(i(this)).id})).get(),s=[],o=0;o<t.length;o++){var a,l,h=this._normalizeItem(t[o]);0<=r.indexOf(h.id)?(a=n.filter(function(t){return function(){return i(this).val()==t.id}}(h)),l=this.item(a),l=i.extend(!0,{},h,l),l=this.option(l),a.replaceWith(l)):(l=this.option(h),h.children&&(h=this.convertToOptions(h.children),l.append(h)),s.push(l))}return s},n})),x.define("select2/data/ajax",["./array","../utils","jquery"],(function(t,e,
126i){function n(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,t,e)}return e.Extend(n,t),n.prototype._applyDefaults=function(t){var e={data:function(t){return i.extend({},t,{q:t.term})},transport:function(t,e,n){return(t=i.ajax(t)).then(e),t.fail(n),t}};return i.extend({},e,t,!0)},n.prototype.processResults=function(t){return t},n.prototype.query=function(t,e){var n=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var r=i.extend({type:"GET"},this.ajaxOptions);function s(){var i=r.transport(r,(function(i){i=n.processResults(i,t),n.options.get("debug")&&window.console&&console.error&&(i&&i.results&&Array.isArray(i.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(i)}),(function(){"status"in i&&(0===i.status||"0"===i.status)||n.trigger("results:message",{message:"errorLoading"})}));n._request=i}"function"==typeof r.url&&(r.url=r.url.call(this.$element,t)),"function"==typeof r.data&&(r.data=r.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(s,this.ajaxOptions.delay)):s()},n})),x.define("select2/data/tags",["jquery"],(function(t){function e(t,e,i){var n=i.get("tags"),r=i.get("createTag");if(void 0!==r&&(this.createTag=r),void 0!==(r=i.get("insertTag"))&&(this.insertTag=r),t.call(this,e,i),Array.isArray(n))for(var s=0;s<n.length;s++){var o=n[s];o=this._normalizeItem(o),o=this.option(o);this.$element.append(o)}}return e.prototype.query=function(t,e,i){var n=this;this._removeOldTags(),null!=e.term&&null==e.page?t.call(this,e,(function t(r,s){for(var o=r.results,a=0;a<o.length;a++){var l=o[a],h=null!=l.children&&!t({results:l.children},!0);if((l.text||"").toUpperCase()===(e.term||"").toUpperCase()||h)return!s&&(r.data=o,void i(r))}if(s)return!0;var c,d=n.createTag(e);null!=d&&((c=n.option(d)).attr("data-select2-tag","true"),n.addOptions([c]),n.insertTag(o,d)),r.results=o,i(r)})):t.call(this,e,i)},e.prototype.createTag=function(t,e){return null==e.term||""===(e=e.term.trim())?null:{id:e,text:e}},e.prototype.insertTag=function(t,e,i){e.unshift(i)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each((function(){this.selected||t(this).remove()}))},e})),x.define("select2/data/tokenizer",["jquery"],(function(t){function e(t,e,i){var n=i.get("tokenizer");void 0!==n&&(this.tokenizer=n),t.call(this,e,i)}return e.prototype.bind=function(t,e,i){t.call(this,e,i),this.$search=e.dropdown.$search||e.selection.$search||i.find(".select2-search__field")},e.prototype.query=function(e,i,n){var r=this;i.term=i.term||"";var s=this.tokenizer(i,this.options,(function(e){var i,n=r._normalizeItem(e);r.$element.find("option").filter((function(){return t(this).val()===n.id})).length||((i=r.option(n)).attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([i])),i=n,r.trigger("select",{data:i})}));s.term!==i.term&&(this.$search.length&&(this.$search.val(s.term),this.$search.trigger("focus")),i.term=s.term),e.call(this,i,n)},e.prototype.tokenizer=function(e,i,n,r){for(var s=n.get("tokenSeparators")||[],o=i.term,a=0,l=this.createTag||function(t){return{id:t.term,text:t.term}};a<o.length;){var h=o[a];-1!==s.indexOf(h)?(h=o.substr(0,a),null!=(h=l(t.extend({},i,{term:h})))?(r(h),o=o.substr(a+1)||"",a=0):a++):a++}return{term:o}},e})),x.define("select2/data/minimumInputLength",[],(function(){function t(t,e,i){this.minimumInputLength=i.get("minimumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){e.term=e.term||"",e.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):t.call(this,e,i)},t})),x.define("select2/data/maximumInputLength",[],(function(){function t(t,e,i){this.maximumInputLength=i.get("maximumInputLength"),t.call(this,e,i)}
126return t.prototype.query=function(t,e,i){e.term=e.term||"",0<this.maximumInputLength&&e.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,i)},t})),x.define("select2/data/maximumSelectionLength",[],(function(){function t(t,e,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),t.call(this,e,i)}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("select",(function(){n._checkIfMaximumSelected()}))},t.prototype.query=function(t,e,i){var n=this;this._checkIfMaximumSelected((function(){t.call(n,e,i)}))},t.prototype._checkIfMaximumSelected=function(t,e){var i=this;this.current((function(t){t=null!=t?t.length:0,0<i.maximumSelectionLength&&t>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):e&&e()}))},t})),x.define("select2/dropdown",["jquery","./utils"],(function(t,e){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},i.prototype.bind=function(){},i.prototype.position=function(t,e){},i.prototype.destroy=function(){this.$dropdown.remove()},i})),x.define("select2/dropdown/search",["jquery"],(function(t){function e(){}return e.prototype.render=function(e){var i=e.call(this),n=this.options.get("translations").get("search");e=t('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=e,this.$search=e.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n()),i.prepend(e),i},e.prototype.bind=function(e,i,n){var r=this,s=i.id+"-results";e.call(this,i,n),this.$search.on("keydown",(function(t){r.trigger("keypress",t),r._keyUpPrevented=t.isDefaultPrevented()})),this.$search.on("input",(function(e){t(this).off("keyup")})),this.$search.on("keyup input",(function(t){r.handleSearch(t)})),i.on("open",(function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",s),r.$search.trigger("focus"),window.setTimeout((function(){r.$search.trigger("focus")}),0)})),i.on("close",(function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")})),i.on("focus",(function(){i.isOpen()||r.$search.trigger("focus")})),i.on("results:all",(function(t){null!=t.query.term&&""!==t.query.term||(r.showSearch(t)?r.$searchContainer[0].classList.remove("select2-search--hide"):r.$searchContainer[0].classList.add("select2-search--hide"))})),i.on("results:focus",(function(t){t.data._resultId?r.$search.attr("aria-activedescendant",t.data._resultId):r.$search.removeAttr("aria-activedescendant")}))},e.prototype.handleSearch=function(t){var e;this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},e.prototype.showSearch=function(t,e){return!0},e})),x.define("select2/dropdown/hidePlaceholder",[],(function(){function t(t,e,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i,n)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e?{id:"",text:e}:e},t.prototype.removePlaceholder=function(t,e){for(var i=e.slice(0),n=e.length-1;0<=n;n--){var r=e[n];this.placeholder.id===r.id&&i.splice(n,1)}return i},t})),x.define("select2/dropdown/infiniteScroll",["jquery"],(function(t){function e(t,e,i,n){this.lastParams={},t.call(this,e,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())}
126,e.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("query",(function(t){n.lastParams=t,n.loading=!0})),e.on("query:append",(function(t){n.lastParams=t,n.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=t.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&(e=this.$results.offset().top+this.$results.outerHeight(!1), 127this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=e+50&&this.loadMore())},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),i=this.options.get("translations").get("loadingMore");return e.html(i(this.lastParams)),e},e})),x.define("select2/dropdown/attachBody",["jquery","../utils"],(function(t,e){function i(e,i,n){this.$dropdownParent=t(n.get("dropdownParent")||document.body),e.call(this,i,n)}return i.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("open",(function(){n._showDropdown(),n._attachPositioningHandler(e),n._bindContainerResultHandlers(e)})),e.on("close",(function(){n._hideDropdown(),n._detachPositioningHandler(e)})),this.$dropdownContainer.on("mousedown",(function(t){t.stopPropagation()}))},i.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},i.prototype.position=function(t,e,i){e.attr("class",i.attr("class")),e[0].classList.remove("select2"),e[0].classList.add("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=i},i.prototype.render=function(e){var i=t("<span></span>");e=e.call(this);return i.append(e),this.$dropdownContainer=i},i.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},i.prototype._bindContainerResultHandlers=function(t,e){var i;this._containerResultsHandlersBound||(i=this,e.on("results:all",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("results:append",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("results:message",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("select",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("unselect",(function(){i._positionDropdown(),i._resizeDropdown()})),this._containerResultsHandlersBound=!0)},i.prototype._attachPositioningHandler=function(i,n){var r=this,s="scroll.select2."+n.id,o="resize.select2."+n.id,a="orientationchange.select2."+n.id;(n=this.$container.parents().filter(e.hasScroll)).each((function(){e.StoreData(this,"select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})})),n.on(s,(function(i){var n=e.GetData(this,"select2-scroll-position");t(this).scrollTop(n.y)})),t(window).on(s+" "+o+" "+a,(function(t){r._positionDropdown(),r._resizeDropdown()}))},i.prototype._detachPositioningHandler=function(i,n){var r="scroll.select2."+n.id,s="resize.select2."+n.id;n="orientationchange.select2."+n.id;this.$container.parents().filter(e.hasScroll).off(r),t(window).off(r+" "+s+" "+n)},i.prototype._positionDropdown=function(){var e=t(window),i=this.$dropdown[0].classList.contains("select2-dropdown--above"),n=this.$dropdown[0].classList.contains("select2-dropdown--below"),r=null,s=this.$container.offset();s.bottom=s.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=s.top,o.bottom=s.top+o.height;var a=this.$dropdown.outerHeight(!1),l=e.scrollTop(),h=e.scrollTop()+e.height(),c=l<s.top-a;e=h>s.bottom+a,l={left:s.left,top:o.bottom};"static"===(h=this.$dropdownParent).css("position")&&(h=h.offsetParent()),s={top:0,left:0},(t.contains(document.body,h[0])||h[0].isConnected)&&(s=h.offset()),l.top-=s.top,l.left-=s.left,i||n||(r="below"),e||!c||i?!c&&e&&i&&(r="below"):r="above",("above"==r||i&&"below"!==r)&&(l.top=o.top-s.top-a),null!=r&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+r),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+r)),this.$dropdownContainer.css(l)},i.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},i.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i})),x.define("select2/dropdown/minimumResultsForSearch",[],(function(){function t(t,e,i,n){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,i,n)}return t.prototype.showSearch=function(t,e){return!(function t(e){for(var i=0,n=0;n<e.length;n++){var r=e[n];r.children?i+=t(r.children):i++}return i}(e.data.results)<this.minimumResultsForSearch)&&t.call(this,e)},t})),x.define("select2/dropdown/selectOnClose",["../utils"],(function(t){function e(){}
127return e.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("close",(function(t){n._handleSelectOnClose(t)}))},e.prototype._handleSelectOnClose=function(e,i){if(i&&null!=i.originalSelect2Event){var n=i.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}(n=this.getHighlightedResults()).length<1||null!=(n=t.GetData(n[0],"data")).element&&n.element.selected||null==n.element&&n.selected||this.trigger("select",{data:n})},e})),x.define("select2/dropdown/closeOnSelect",[],(function(){function t(){}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("select",(function(t){n._selectTriggered(t)})),e.on("unselect",(function(t){n._selectTriggered(t)}))},t.prototype._selectTriggered=function(t,e){var i=e.originalEvent;i&&(i.ctrlKey||i.metaKey)||this.trigger("close",{originalEvent:i,originalSelect2Event:e})},t})),x.define("select2/dropdown/dropdownCss",["../utils"],(function(t){function e(){}return e.prototype.render=function(e){var i=e.call(this);return-1!==(e=this.options.get("dropdownCssClass")||"").indexOf(":all:")&&(e=e.replace(":all:",""),t.copyNonInternalCssClasses(i[0],this.$element[0])),i.addClass(e),i},e})),x.define("select2/dropdown/tagsSearchHighlight",["../utils"],(function(t){function e(){}return e.prototype.highlightFirstItem=function(e){if(0<(i=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)")).length){var i,n=i.first();if((i=t.GetData(n[0],"data").element)&&i.getAttribute&&"true"===i.getAttribute("data-select2-tag"))return void n.trigger("mouseenter")}e.call(this)},e})),x.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum;t="Please delete "+e+" character";return 1!=e&&(t+="s"),t},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more resultsâ¦"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searchingâ¦"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}})),x.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],(function(t,e,i,n,r,s,o,a,l,h,c,d,p,u,f,m,g,v,$,y,b,_,w,x,S,E,C,T,k,P,A){function M(){this.reset()}return M.prototype.apply=function(c){var d;null==(c=t.extend(!0,{},this.defaults,c)).dataAdapter&&(null!=c.ajax?c.dataAdapter=f:null!=c.data?c.dataAdapter=u:c.dataAdapter=p,0<c.minimumInputLength&&(c.dataAdapter=h.Decorate(c.dataAdapter,v)),0<c.maximumInputLength&&(c.dataAdapter=h.Decorate(c.dataAdapter,$)),0<c.maximumSelectionLength&&(c.dataAdapter=h.Decorate(c.dataAdapter,y)),c.tags&&(c.dataAdapter=h.Decorate(c.dataAdapter,m)),null==c.tokenSeparators&&null==c.tokenizer||(c.dataAdapter=h.Decorate(c.dataAdapter,g))),null==c.resultsAdapter&&(c.resultsAdapter=e,null!=c.ajax&&(c.resultsAdapter=h.Decorate(c.resultsAdapter,x)),null!=c.placeholder&&(c.resultsAdapter=h.Decorate(c.resultsAdapter,w)),c.selectOnClose&&(c.resultsAdapter=h.Decorate(c.resultsAdapter,C)),c.tags&&(c.resultsAdapter=h.Decorate(c.resultsAdapter,P))),null==c.dropdownAdapter&&(c.multiple?c.dropdownAdapter=b:(d=h.Decorate(b,_),c.dropdownAdapter=d),0!==c.minimumResultsForSearch&&(c.dropdownAdapter=h.Decorate(c.dropdownAdapter,E)),c.closeOnSelect&&(c.dropdownAdapter=h.Decorate(c.dropdownAdapter,T)),null!=c.dropdownCssClass&&(c.dropdownAdapter=h.Decorate(c.dropdownAdapter,k)),c.dropdownAdapter=h.Decorate(c.dropdownAdapter,S)),null==c.selectionAdapter&&(c.multiple?c.selectionAdapter=n:c.selectionAdapter=i,null!=c.placeholder&&(c.selectionAdapter=h.Decorate(c.selectionAdapter,r)),c.allowClear&&(c.selectionAdapter=h.Decorate(c.selectionAdapter,s
127)),c.multiple&&(c.selectionAdapter=h.Decorate(c.selectionAdapter,o)),null!=c.selectionCssClass&&(c.selectionAdapter=h.Decorate(c.selectionAdapter,a)),c.selectionAdapter=h.Decorate(c.selectionAdapter,l)),c.language=this._resolveLanguage(c.language),c.language.push("en");for(var A=[],M=0;M<c.language.length;M++){var D=c.language[M];-1===A.indexOf(D)&&A.push(D)}return c.language=A,c.translations=this._processTranslations(c.language,c.debug),c},M.prototype.reset=function(){function e(t){return t.replace(/[^\u0000-\u007E]/g,(function(t){return d[t]||t}))}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:h.escapeMarkup,language:{},matcher:function i(n,r){if(null==n.term||""===n.term.trim())return r;if(r.children&&0<r.children.length){for(var s=t.extend(!0,{},r),o=r.children.length-1;0<=o;o--)null==i(n,r.children[o])&&s.children.splice(o,1);return 0<s.children.length?s:i(n,s)}var a=e(r.text).toUpperCase(),l=e(n.term).toUpperCase();return-1<a.indexOf(l)?r:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},M.prototype.applyFromElement=function(t,e){var i=t.language,n=this.defaults.language,r=e.prop("lang");e=e.closest("[lang]").prop("lang"),e=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(e));return t.language=e,t},M.prototype._resolveLanguage=function(e){if(!e)return[];if(t.isEmptyObject(e))return[];if(t.isPlainObject(e))return[e];for(var i,n=Array.isArray(e)?e:[e],r=[],s=0;s<n.length;s++)r.push(n[s]),"string"==typeof n[s]&&0<n[s].indexOf("-")&&(i=n[s].split("-")[0],r.push(i));return r},M.prototype._processTranslations=function(e,i){for(var n=new c,r=0;r<e.length;r++){var s=new c,o=e[r];if("string"==typeof o)try{s=c.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,s=c.loadPath(o)}catch(e){i&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else s=t.isPlainObject(o)?new c(o):o;n.extend(s)}return n},M.prototype.set=function(e,i){var n={};n[t.camelCase(e)]=i,n=h._convertData(n),t.extend(!0,this.defaults,n)},new M})),x.define("select2/options",["jquery","./defaults","./utils"],(function(t,e,i){function n(t,i){this.options=t,null!=i&&this.fromElement(i),null!=i&&(this.options=e.applyFromElement(this.options,i)),this.options=e.apply(this.options)}return n.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.autocomplete&&e.prop("autocomplete")&&(this.options.autocomplete=e.prop("autocomplete")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),i.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),i.StoreData(e[0],"data",i.GetData(e[0],"select2Tags")),i.StoreData(e[0],"tags",!0)),i.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",i.GetData(e[0],"ajaxUrl")),i.StoreData(e[0],"ajax-Url",i.GetData(e[0],"ajaxUrl")));var r={};function s(t,e){return e.toUpperCase()}for(var o=0;o<e[0].attributes.length;o++){var a=e[0].attributes[o].name,l="data-";a.substr(0,l.length)==l&&(a=a.substring(l.length),l=i.GetData(e[0],a),r[a.replace(/-([a-z])/g,s)]=l)}t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset&&(r=t.extend(!0,{},e[0].dataset,r));var h,c=t.extend(!0,{},i.GetData(e[0]),r);for(h in c=i._convertData(c))-1<n.indexOf(h)||(t.isPlainObject(this.options[h])?t.extend(this.options[h],c[h]):this.options[h]=c[h]);return this},n.prototype.get=function(t){return this.options[t]},n.prototype.set=function(t,e){this.options[t]=e},n})),x.define("select2/core",["jquery","./options","./utils","./keys"],(function(t,e,
127i,n){var r=function(t,n){null!=i.GetData(t[0],"select2")&&i.GetData(t[0],"select2").destroy(),this.$element=t,this.id=this._generateId(t),n=n||{},this.options=new e(n,t),r.__super__.constructor.call(this);var s=t.attr("tabindex")||0;i.StoreData(t[0],"old-tabindex",s),t.attr("tabindex","-1"),n=this.options.get("dataAdapter"),this.dataAdapter=new n(t,this.options),s=this.render(),this._placeContainer(s),n=this.options.get("selectionAdapter"),this.selection=new n(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s),n=this.options.get("dropdownAdapter"),this.dropdown=new n(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s),s=this.options.get("resultsAdapter"),this.results=new s(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var o=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(t){o.trigger("selection:update",{data:t})})),t[0].classList.add("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),i.StoreData(t[0],"select2",this),t.data("select2",this)};return i.Extend(r,i.Observable),r.prototype._generateId=function(t){return"select2-"+(null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+i.generateChars(2):i.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},r.prototype._resolveWidth=function(t,e){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var n=this._resolveWidth(t,"style");return null!=n?n:this._resolveWidth(t,"element")}if("element"==e)return(n=t.outerWidth(!1))<=0?"auto":n+"px";if("style"!=e)return"computedstyle"!=e?e:window.getComputedStyle(t[0]).width;if("string"!=typeof(t=t.attr("style")))return null;for(var r=t.split(";"),s=0,o=r.length;s<o;s+=1){var a=r[s].replace(/\s/g,"").match(i);if(null!==a&&1<=a.length)return a[1]}return null},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",(function(){t.dataAdapter.current((function(e){t.trigger("selection:update",{data:e})}))})),this.$element.on("focus.select2",(function(e){t.trigger("focus",e)})),this._syncA=i.bind(this._syncAttributes,this),this._syncS=i.bind(this._syncSubtree,this),this._observer=new window.MutationObserver((function(e){t._syncA(),t._syncS(e)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},r.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",(function(e,i){t.trigger(e,i)}))},r.prototype._registerSelectionEvents=function(){var t=this,e=["toggle","focus"];this.selection.on("toggle",(function(){t.toggleDropdown()})),this.selection.on("focus",(function(e){t.focus(e)})),this.selection.on("*",(function(i,n){-1===e.indexOf(i)&&t.trigger(i,n)}))},r.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",(function(e,i){t.trigger(e,i)}))},r.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",(function(e,i){t.trigger(e,i)}))},r.prototype._registerEvents=function(){var t=this;this.on("open",(function(){t.$container[0].classList.add("select2-container--open")})),this.on("close",(function(){t.$container[0].classList.remove("select2-container--open")})),this.on("enable",(function(){t.$container[0].classList.remove("select2-container--disabled")})),this.on("disable",(function(){t.$container[0].classList.add("select2-container--disabled")})),this.on("blur",(function(){t.$container[0].classList.remove("select2-container--focus")})),this.on("query",(function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,(function(i){t.trigger("results:all",{data:i,query:e})}))})),this.on("query:append",(function(e){this.dataAdapter.query(e,(function(i){t.trigger("results:append",{data:i,query:e})}))})),this.on("keypress",(function(e){var i=e.which;t.isOpen()?i===n.ESC||i===n.UP&&e.altKey?(t.close(e),e.preventDefault()):i===n.ENTER||i===n.TAB?(t.trigger("results:select",{}),e.preventDefault()):i===n.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):i===n.UP?(t.trigger("results:previous",{}),e.preventDefault()):i===n.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(i===n.ENTER||i===n.SPACE||i===n.DOWN&&e.altKey)&&(t.open(),e.preventDefault())}))},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(t){var e=this;if(t.addedNodes&&0<t.addedNodes.length){for(var i=0;i<t.addedNodes.length;i++)if(t.addedNodes[i].selected)return!0}else{if(t.removedNodes&&0<t.removedNodes.length)return!0;
127if(Array.isArray(t))return t.some((function(t){return e._isChangeMutation(t)}))}return!1},r.prototype._syncSubtree=function(t){t=this._isChangeMutation(t);var e=this;t&&this.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))},r.prototype.trigger=function(t,e){var i=r.__super__.trigger;if(void 0===e&&(e={}),t in(s={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"})){var n=s[t],s={prevented:!1,name:t,args:e};if(i.call(this,n,s),s.prevented)return void(e.prevented=!0)}i.call(this,t,e)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(t){this.isOpen()&&this.trigger("close",{originalEvent:t})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},r.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},r.prototype.focus=function(t){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),t=!(t=null==t||0===t.length?[!0]:t)[0],this.$element.prop("disabled",t)},r.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current((function(e){t=e})),t},r.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();t=t[0],Array.isArray(t)&&(t=t.map((function(t){return t.toString()}))),this.$element.val(t).trigger("input").trigger("change")},r.prototype.destroy=function(){i.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",i.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),i.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),i.StoreData(e[0],"element",this.$element),e},r})),x.define("select2/dropdown/attachContainer",[],(function(){function t(t,e,i){t.call(this,e,i)}return t.prototype.position=function(t,e,i){i.find(".dropdown-wrapper").append(e),e[0].classList.add("select2-dropdown--below"),i[0].classList.add("select2-container--below")},t})),x.define("select2/dropdown/stopPropagation",[],(function(){function t(){}return t.prototype.bind=function(t,e,i){t.call(this,e,i),this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),(function(t){t.stopPropagation()}))},t})),x.define("select2/selection/stopPropagation",[],(function(){function t(){}
127return t.prototype.bind=function(t,e,i){t.call(this,e,i),this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),(function(t){t.stopPropagation()}))},t})),m=function(t){var e,i,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],s=Array.prototype.slice;if(t.event.fixHooks)for(var o=n.length;o;)t.event.fixHooks[n[--o]]=t.event.mouseHooks;var a=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=r.length;e;)this.addEventListener(r[--e],l,!1);else this.onmousewheel=l;t.data(this,"mousewheel-line-height",a.getLineHeight(this)),t.data(this,"mousewheel-page-height",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=r.length;e;)this.removeEventListener(r[--e],l,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var i=t(e);return(e=i["offsetParent"in t.fn?"offsetParent":"parent"]()).length||(e=t("body")),parseInt(e.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(n){var r,o=n||window.event,l=s.call(arguments,1),d=0,p=0,u=0,f=0,m=0,g=0;if((n=t.event.fix(o)).type="mousewheel","detail"in o&&(u=-1*o.detail),"wheelDelta"in o&&(u=o.wheelDelta),"wheelDeltaY"in o&&(u=o.wheelDeltaY),"wheelDeltaX"in o&&(p=-1*o.wheelDeltaX),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(p=-1*u,u=0),d=0===u?p:u,"deltaY"in o&&(d=u=-1*o.deltaY),"deltaX"in o&&(p=o.deltaX,0===u&&(d=-1*p)),0!==u||0!==p)return 1===o.deltaMode?(d*=r=t.data(this,"mousewheel-line-height"),u*=r,p*=r):2===o.deltaMode&&(d*=r=t.data(this,"mousewheel-page-height"),u*=r,p*=r),f=Math.max(Math.abs(u),Math.abs(p)),(!i||f<i)&&c(o,i=f)&&(i/=40),c(o,f)&&(d/=40,p/=40,u/=40),d=Math[1<=d?"floor":"ceil"](d/i),p=Math[1<=p?"floor":"ceil"](p/i),u=Math[1<=u?"floor":"ceil"](u/i),a.settings.normalizeOffset&&this.getBoundingClientRect&&(f=this.getBoundingClientRect(),m=n.clientX-f.left,g=n.clientY-f.top),n.deltaX=p,n.deltaY=u,n.deltaFactor=i,n.offsetX=m,n.offsetY=g,n.deltaMode=0,l.unshift(n,d,p,u),e&&clearTimeout(e),e=setTimeout(h,200),(t.event.dispatch||t.event.handle).apply(this,l)}function h(){i=null}function c(t,e){return a.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0}t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})},"function"==typeof x.define&&x.define.amd?x.define("jquery-mousewheel",["jquery"],m):"object"==typeof exports?module.exports=m:m(t),x.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(t,e,i,n,r){var s;return null==t.fn.select2&&(s=["open","close","destroy"],t.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each((function(){var n=t.extend(!0,{},e);new i(t(this),n)})),this;if("string"!=typeof e)throw new Error("Invalid arguments for Select2: "+e);var n,o=Array.prototype.slice.call(arguments,1);return this.each((function(){var t=r.GetData(this,"select2");null==t&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),n=t[e].apply(t,o)})),-1<s.indexOf(e)?this:n}),null==t.fn.select2.defaults&&(t.fn.select2.defaults=n),i})),{define:x.define,require:x.require});function g(t,e){return p.call(t,e)}function v(t,e){var i,n,r,s,o,a,l,h,d,p,u=e&&e.split("/"),m=c.map,g=m&&m["*"]||{};if(t){for(e=(t=t.split("/")).length-1,c.nodeIdCompat&&f.test(t[e])&&(t[e]=t[e].replace(f,"")),"."===t[0].charAt(0)&&u&&(t=u.slice(0,u.length-1).concat(t)),h=0;h<t.length;h++)"."===(p=t[h])?(t.splice(h,1),--h):".."===p&&(0===h||1===h&&".."===t[2]||".."===t[h-1]||0<h&&(t.splice(h-1,2),h-=2));t=t.join("/")}if((u||g)&&m){for(h=(i=t.split("/")).length;0<h;
127--h){if(n=i.slice(0,h).join("/"),u)for(d=u.length;0<d;--d)if(r=(r=m[u.slice(0,d).join("/")])&&r[n]){s=r,o=h;break}if(s)break;!a&&g&&g[n]&&(a=g[n],l=h)}!s&&a&&(s=a,o=l),s&&(i.splice(0,o,s),t=i.join("/"))}return t}function y(t,e){return function(){var i=u.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),s.apply(n,i.concat([t,e]))}}function b(t){var e;if(g(h,t)&&(e=h[t],delete h[t],d[t]=!0,r.apply(n,e)),!g(l,t)&&!g(d,t))throw new Error("No "+t);return l[t]}function _(t){var e,i=t?t.indexOf("!"):-1;return-1<i&&(e=t.substring(0,i),t=t.substring(i+1,t.length)),[e,t]}function w(t){return t?_(t):[]}var x=m.require("jquery.select2");return t.fn.select2.amd=m,x})); 128/*! 129 * VERSION: 1.20.2 130 * DATE: 2017-06-30 131 * UPDATES AND DOCS AT: http://greensock.com 132 * 133 * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin 134 * 135 * @license Copyright (c) 2008-2017, GreenSock. All rights reserved. 136 * This work is subject to the terms at http://greensock.com/standard-license or for 137 * Club GreenSock members, the software agreement that was issued with your membership. 138 * 139 * @author: Jack Doyle, [email protected] 140 **/ 141var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push((function(){"use strict";var t,e,i,n,r,s,o,a,l,h,c,d,p,u,f,m;_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],(function(t,e,i){var n=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},r=function(t,e,i){var n,r,s=t.cycle;for(n in s)r=s[n],t[n]="function"==typeof r?r(i,e[i]):r[i%r.length];delete t.cycle},s=function(t,e,n){i.call(this,t,e,n),this._cycle=0,this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=s.prototype.render},o=1e-10,a=i._internals,l=a.isSelector,h=a.isArray,c=s.prototype=i.to({},.1,{}),d=[];s.version="1.20.2",c.constructor=s,c.kill()._gc=!1,s.killTweensOf=s.killDelayedCallsTo=i.killTweensOf,s.getTweensOf=i.getTweensOf,s.lagSmoothing=i.lagSmoothing,s.ticker=i.ticker,s.render=i.render,c.invalidate=function(){return this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),i.prototype.invalidate.call(this)},c.updateTo=function(t,e){var n,r=this.ratio,s=this.vars.immediateRender||t.immediateRender;for(n in e&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay)),t)this.vars[n]=t[n];if(this._initted||s)if(e)this._initted=!1,s&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&i._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var o=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(o,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||s)for(var a,l=1/(1-r),h=this._firstPT;h;)a=h.s+h.c,h.c*=l,h.s=a-h.c,h=h._next;return this},c.render=function(t,e,n){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var r,s,l,h,c,d,p,u,f,m=this._dirty?this.totalDuration():this._totalDuration,g=this._time,v=this._totalTime,y=this._cycle,b=this._duration,_=this._rawPrevTime;if(t>=m-1e-7&&t>=0?(this._totalTime=m,this._cycle=this._repeat,this._yoyo&&1&this._cycle?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=b,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(r=!0,s="onComplete",n=n||this._timeline.autoRemoveChildren),0===b&&(this._initted||!this.vars.lazy||n)&&(this._startTime===this._timeline._duration&&(t=0),(0>_||0>=t&&t>=-1e-7||_===o&&"isPause"!==this.data)&&_!==t&&(n=!0,_>o&&(s="onReverseComplete")),this._rawPrevTime=u=!e||t||_===t?t:o)):1e-7>t?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==v||0===b&&_>0)&&(s="onReverseComplete",r=this._reversed),0>t&&(this._active=!1,0===b&&(this._initted||!this.vars.lazy||n)&&(_>=0&&(n=!0),this._rawPrevTime=u=!e||t||_===t?t:o)),this._initted||(n=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(h=b+this._repeatDelay,this._cycle=this._totalTime/h|0,0!==this._cycle&&this._cycle===this._totalTime/h&&t>=v&&this._cycle--,this._time=this._totalTime-this._cycle*h,this._yoyo&&!!(1&this._cycle)&&(this._time=b-this._time,(f=this._yoyoEase||this.vars.yoyoEase)&&(this._yoyoEase||(!0!==f||this._initted?this._yoyoEase=f=!0===f?this._ease:f instanceof Ease?f:Ease.map[f]:(f=this.vars.ease,this._yoyoEase=f=f?f instanceof Ease?f:"function"==typeof f?new Ease(f,this.vars.easeParams):Ease.map[f]||i.defaultEase:i.defaultEase)),this.ratio=f?1-f.getRatio((b-this._time)/b):0)),this._time>b?this._time=b:this._time<0&&(this._time=0)),this._easeType&&!f?(c=this._time/b,(1===(d=this._easeType)||3===d&&c>=.5)&&(c=1-c),3===d&&(c*=2),1===(p=this._easePower)?c*=c:2===p?c*=c*c:3===p?c*=c*c*c:4===p&&
141(c*=c*c*c*c),1===d?this.ratio=1-c:2===d?this.ratio=c:this._time/b<.5?this.ratio=c/2:this.ratio=1-c/2):f||(this.ratio=this._ease.getRatio(this._time/b))),g!==this._time||n||y!==this._cycle){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!n&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=g,this._totalTime=v,this._rawPrevTime=_,this._cycle=y,a.lazyTweens.push(this),void(this._lazy=[t,e]);!this._time||r||f?r&&this._ease._calcEnd&&!f&&(this.ratio=this._ease.getRatio(0===this._time?0:1)):this.ratio=this._ease.getRatio(this._time/b)}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==g&&t>=0&&(this._active=!0),0===v&&(2===this._initted&&t>0&&this._init(),this._startAt&&(t>=0?this._startAt.render(t,e,n):s||(s="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===b)&&(e||this._callback("onStart"))),l=this._firstPT;l;)l.f?l.t[l.p](l.c*this.ratio+l.s):l.t[l.p]=l.c*this.ratio+l.s,l=l._next;this._onUpdate&&(0>t&&this._startAt&&this._startTime&&this._startAt.render(t,e,n),e||(this._totalTime!==v||s)&&this._callback("onUpdate")),this._cycle!==y&&(e||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),s&&(!this._gc||n)&&(0>t&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,e,n),r&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[s]&&this._callback(s),0===b&&this._rawPrevTime===o&&u!==o&&(this._rawPrevTime=0))}else v!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},s.to=function(t,e,i){return new s(t,e,i)},s.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new s(t,e,i)},s.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new s(t,e,n)},s.staggerTo=s.allTo=function(t,e,o,a,c,p,u){a=a||0;var f,m,g,v,y=0,b=[],_=function(){o.onComplete&&o.onComplete.apply(o.onCompleteScope||this,arguments),c.apply(u||o.callbackScope||this,p||d)},w=o.cycle,x=o.startAt&&o.startAt.cycle;for(h(t)||("string"==typeof t&&(t=i.selector(t)||t),l(t)&&(t=n(t))),t=t||[],0>a&&((t=n(t)).reverse(),a*=-1),f=t.length-1,g=0;f>=g;g++){for(v in m={},o)m[v]=o[v];if(w&&(r(m,t,g),null!=m.duration&&(e=m.duration,delete m.duration)),x){for(v in x=m.startAt={},o.startAt)x[v]=o.startAt[v];r(m.startAt,t,g)}m.delay=y+(m.delay||0),g===f&&c&&(m.onComplete=_),b[g]=new s(t[g],e,m),y+=a}return b},s.staggerFrom=s.allFrom=function(t,e,i,n,r,o,a){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,s.staggerTo(t,e,i,n,r,o,a)},s.staggerFromTo=s.allFromTo=function(t,e,i,n,r,o,a,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,s.staggerTo(t,e,n,r,o,a,l)},s.delayedCall=function(t,e,i,n,r){return new s(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:r,overwrite:0})},s.set=function(t,e){return new s(t,0,e)},s.isTweening=function(t){return i.getTweensOf(t,!0).length>0};var p=function(t,e){for(var n=[],r=0,s=t._first;s;)s instanceof i?n[r++]=s:(e&&(n[r++]=s),r=(n=n.concat(p(s,e))).length),s=s._next;return n},u=s.getAllTweens=function(e){return p(t._rootTimeline,e).concat(p(t._rootFramesTimeline,e))};s.killAll=function(t,i,n,r){null==i&&(i=!0),null==n&&(n=!0);var s,o,a,l=u(0!=r),h=l.length,c=i&&n&&r;for(a=0;h>a;a++)o=l[a],(c||o instanceof e||(s=o.target===o.vars.onComplete)&&n||i&&!s)&&(t?o.totalTime(o._reversed?0:o.totalDuration()):o._enabled(!1,!1))},s.killChildTweensOf=function(t,e){if(null!=t){var r,o,c,d,p,u=a.tweenLookup;if("string"==typeof t&&(t=i.selector(t)||t),l(t)&&(t=n(t)),h(t))for(d=t.length;--d>-1;)s.killChildTweensOf(t[d],e);else{for(c in r=[],u)for(o=u[c].target.parentNode;o;)o===t&&(r=r.concat(u[c].tweens)),o=o.parentNode;for(p=r.length,d=0;p>d;d++)e&&r[d].totalTime(r[d].totalDuration()),r[d]._enabled(!1,!1)}}};var f=function(t,i,n,r){i=!1!==i,n=!1!==n;for(var s,o,a=u(r=!1!==r),l=i&&n&&r,h=a.length;--h>-1;)o=a[h],(l||o instanceof e||(s=o.target===o.vars.onComplete)&&n||i&&
141!s)&&o.paused(t)};return s.pauseAll=function(t,e,i){f(!0,t,e,i)},s.resumeAll=function(t,e,i){f(!1,t,e,i)},s.globalTimeScale=function(e){var n=t._rootTimeline,r=i.ticker.time;return arguments.length?(e=e||o,n._startTime=r-(r-n._startTime)*n._timeScale/e,n=t._rootFramesTimeline,r=i.ticker.frame,n._startTime=r-(r-n._startTime)*n._timeScale/e,n._timeScale=t._rootTimeline._timeScale=e,e):n._timeScale},c.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&1&this._cycle?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},c.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},c.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&1&this._cycle?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},c.duration=function(e){return arguments.length?t.prototype.duration.call(this,e):this._duration},c.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},c.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},c.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},c.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},s}),!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],(function(t,e,i){var n=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=!0===this.vars.autoRemoveChildren,this.smoothChildTiming=!0===this.vars.smoothChildTiming,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,n,r=this.vars;for(n in r)i=r[n],l(i)&&-1!==i.join("").indexOf("{self}")&&(r[n]=this._swapSelfInParams(i));l(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,s=i._internals,o=n._internals={},a=s.isSelector,l=s.isArray,h=s.lazyTweens,c=s.lazyRender,d=_gsScope._gsDefine.globals,p=function(t){var e,i={};for(e in t)i[e]=t[e];return i},u=function(t,e,i){var n,r,s=t.cycle;for(n in s)r=s[n],t[n]="function"==typeof r?r(i,e[i]):r[i%r.length];delete t.cycle},f=o.pauseCallback=function(){},m=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},g=n.prototype=new e;return n.version="1.20.2",g.constructor=n,g.kill()._gc=g._forcingPlayhead=g._hasPause=!1,g.to=function(t,e,n,r){var s=n.repeat&&d.TweenMax||i;return e?this.add(new s(t,e,n),r):this.set(t,n,r)},g.from=function(t,e,n,r){return this.add((n.repeat&&d.TweenMax||i).from(t,e,n),r)},g.fromTo=function(t,e,n,r,s){var o=r.repeat&&d.TweenMax||i;return e?this.add(o.fromTo(t,e,n,r),s):this.set(t,r,s)},g.staggerTo=function(t,e,r,s,o,l,h,c){var d,f,g=new n({onComplete:l,onCompleteParams:h,callbackScope:c,smoothChildTiming:this.smoothChildTiming}),v=r.cycle;for("string"==typeof t&&(t=i.selector(t)||t),a(t=t||[])&&(t=m(t)),0>(s=s||0)&&((t=m(t)).reverse(),s*=-1),f=0;f<t.length;f++)(d=p(r)).startAt&&(d.startAt=p(d.startAt),d.startAt.cycle&&u(d.startAt,t,f)),v&&(u(d,t,f),null!=d.duration&&(e=d.duration,delete d.duration)),g.to(t[f],e,d,f*s);return this.add(g,o)},g.staggerFrom=function(t,e,i,n,r,s,o,a){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,n,r,s,o,a)},g.staggerFromTo=function(t,e,i,n,r,s,o,a,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,n,r,s,o,a,l)},g.call=function(t,e,n,r){return this.add(i.delayedCall(0,t,e,n),r)},g.set=function(t,e,n){return n=this._parseTimeOrLabel(n,0,!0),null==e.immediateRender&&(e.immediateRender=n===this._time&&!this._paused),this.add(new i(t,0,e),n)},n.exportRoot=function(t,e){null==(t=t||{}).smoothChildTiming&&(t.smoothChildTiming=!0);var r,s,o=new n(t),a=o._timeline;for(null==e&&(e=!0),a._remove(o,!0),o._startTime=0,o._rawPrevTime=o._time=o._totalTime=a._time,r=a._first;r;)s=r._next,e&&r instanceof i&&r.target===r.vars.onComplete||o.add(r,r._startTime-r._delay),r=s;
141return a.add(o,0),o},g.add=function(r,s,o,a){var h,c,d,p,u,f;if("number"!=typeof s&&(s=this._parseTimeOrLabel(s,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&l(r)){for(o=o||"normal",a=a||0,h=s,c=r.length,d=0;c>d;d++)l(p=r[d])&&(p=new n({tweens:p})),this.add(p,h),"string"!=typeof p&&"function"!=typeof p&&("sequence"===o?h=p._startTime+p.totalDuration()/p._timeScale:"start"===o&&(p._startTime-=p.delay())),h+=a;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,s);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(e.prototype.add.call(this,r,s),r._time&&r.render((this.rawTime()-r._startTime)*r._timeScale,!1,!1),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(f=(u=this).rawTime()>r._startTime;u._timeline;)f&&u._timeline.smoothChildTiming?u.totalTime(u._totalTime,!0):u._gc&&u._enabled(!0,!1),u=u._timeline;return this},g.remove=function(e){if(e instanceof t){this._remove(e,!1);var i=e._timeline=e.vars.useFrames?t._rootFramesTimeline:t._rootTimeline;return e._startTime=(e._paused?e._pauseTime:i._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&l(e)){for(var n=e.length;--n>-1;)this.remove(e[n]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},g._remove=function(t,i){return e.prototype._remove.call(this,t,i),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},g.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},g.insert=g.insertMultiple=function(t,e,i,n){return this.add(t,e||0,i,n)},g.appendMultiple=function(t,e,i,n){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,n)},g.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},g.addPause=function(t,e,n,r){var s=i.delayedCall(0,f,n,r||this);return s.vars.onComplete=s.vars.onReverseComplete=e,s.data="isPause",this._hasPause=!0,this.add(s,t)},g.removeLabel=function(t){return delete this._labels[t],this},g.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},g._parseTimeOrLabel=function(e,i,n,r){var s,o;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&l(r)))for(o=r.length;--o>-1;)r[o]instanceof t&&r[o].timeline===this&&this.remove(r[o]);if(s=this.duration()>99999999999?this.recent().endTime(!1):this._duration,"string"==typeof i)return this._parseTimeOrLabel(i,n&&"number"==typeof e&&null==this._labels[i]?e-s:0,n);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=s);else{if(-1===(o=e.indexOf("=")))return null==this._labels[e]?n?this._labels[e]=s+i:i:this._labels[e]+i;i=parseInt(e.charAt(o-1)+"1",10)*Number(e.substr(o+1)),e=o>1?this._parseTimeOrLabel(e.substr(0,o-1),0,n):s}return Number(e)+i},g.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},g.stop=function(){return this.paused(!0)}
141,g.gotoAndPlay=function(t,e){return this.play(t,e)},g.gotoAndStop=function(t,e){return this.pause(t,e)},g.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,s,o,a,l,d,p,u=this._dirty?this.totalDuration():this._totalDuration,f=this._time,m=this._startTime,g=this._timeScale,v=this._paused;if(t>=u-1e-7&&t>=0)this._totalTime=this._time=u,this._reversed||this._hasPausedChild()||(s=!0,a="onComplete",l=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=t&&t>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===r)&&this._rawPrevTime!==t&&this._first&&(l=!0,this._rawPrevTime>r&&(a="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=u+1e-4;else if(1e-7>t)if(this._totalTime=this._time=0,(0!==f||0===this._duration&&this._rawPrevTime!==r&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(a="onReverseComplete",s=this._reversed),0>t)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(l=s=!0,a="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(l=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,0===t&&s)for(n=this._first;n&&0===n._startTime;)n._duration||(s=!1),n=n._next;t=0,this._initted||(l=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!e){if(t>=f)for(n=this._first;n&&n._startTime<=t&&!d;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(d=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!d;)n._duration||"isPause"===n.data&&n._rawPrevTime>0&&(d=n),n=n._prev;d&&(this._time=t=d._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=t}if(this._time!==f&&this._first||i||l||d){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==f&&t>0&&(this._active=!0),0===f&&this.vars.onStart&&(0===this._time&&this._duration||e||this._callback("onStart")),(p=this._time)>=f)for(n=this._first;n&&(o=n._next,p===this._time&&(!this._paused||v));)(n._active||n._startTime<=p&&!n._paused&&!n._gc)&&(d===n&&this.pause(),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=o;else for(n=this._last;n&&(o=n._prev,p===this._time&&(!this._paused||v));){if(n._active||n._startTime<=f&&!n._paused&&!n._gc){if(d===n){for(d=n._prev;d&&d.endTime()>this._time;)d.render(d._reversed?d.totalDuration()-(t-d._startTime)*d._timeScale:(t-d._startTime)*d._timeScale,e,i),d=d._prev;d=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=o}this._onUpdate&&(e||(h.length&&c(),this._callback("onUpdate"))),a&&(this._gc||(m===this._startTime||g!==this._timeScale)&&(0===this._time||u>=this.totalDuration())&&(s&&(h.length&&c(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[a]&&this._callback(a)))}},g._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof n&&t._hasPausedChild())return!0;t=t._next}return!1},g.getChildren=function(t,e,n,r){r=r||-9999999999;for(var s=[],o=this._first,a=0;o;)o._startTime<r||(o instanceof i?!1!==e&&(s[a++]=o):(!1!==n&&(s[a++]=o),!1!==t&&(a=(s=s.concat(o.getChildren(!0,e,n))).length))),o=o._next;return s},g.getTweensOf=function(t,e){var n,r,s=this._gc,o=[],a=0;for(s&&this._enabled(!0,!0),r=(n=i.getTweensOf(t)).length;--r>-1;)(n[r].timeline===this||e&&this._contains(n[r]))&&(o[a++]=n[r]);return s&&this._enabled(!1,!0),o},g.recent=function(){return this._recent},g._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},g.shiftChildren=function(t,e,i){i=i||0;for(var n,r=this._first,s=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(n in s)s[n]>=i&&(s[n]+=t);return this._uncache(!0)},g._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),n=i.length,r=!1;--n>-1;)i[n]._kill(t,e)&&(r=!0);return r},g.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;
141)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},g.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},g._enabled=function(t,i){if(t===this._gc)for(var n=this._first;n;)n._enabled(t,!0),n=n._next;return e.prototype._enabled.call(this,t,i)},g.totalTime=function(e,i,n){this._forcingPlayhead=!0;var r=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},g.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},g.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,n=0,r=this._last,s=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>s&&this._sortChildren&&!r._paused?this.add(r,r._startTime-r._delay):s=r._startTime,r._startTime<0&&!r._paused&&(n-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale),this.shiftChildren(-r._startTime,!1,-9999999999),s=0),(i=r._startTime+r._totalDuration/r._timeScale)>n&&(n=i),r=e;this._duration=this._totalDuration=n,this._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},g.paused=function(e){if(!e)for(var i=this._first,n=this._time;i;)i._startTime===n&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},g.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},g.rawTime=function(t){return t&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},n}),!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],(function(t,e,i){var n=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._dirty=!0},r=1e-10,s=e._internals,o=s.lazyTweens,a=s.lazyRender,l=_gsScope._gsDefine.globals,h=new i(null,null,1,0),c=n.prototype=new t;return c.constructor=n,c.kill()._gc=!1,n.version="1.20.2",c.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},c.addCallback=function(t,i,n,r){return this.add(e.delayedCall(0,t,n,r),i)},c.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),n=i.length,r=this._parseTimeOrLabel(e);--n>-1;)i[n]._startTime===r&&i[n]._enabled(!1,!1);return this},c.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},c.tweenTo=function(t,i){i=i||{};var n,r,s,o={ease:h,useFrames:this.usesFrames(),immediateRender:!1},a=i.repeat&&l.TweenMax||e;for(r in i)o[r]=i[r];return o.time=this._parseTimeOrLabel(t),n=Math.abs(Number(o.time)-this._time)/this._timeScale||.001,s=new a(this,n,o),o.onStart=function(){s.target.paused(!0),s.vars.time!==s.target.time()&&n===s.duration()&&s.duration(Math.abs(s.vars.time-s.target.time())/s.target._timeScale),i.onStart&&i.onStart.apply(i.onStartScope||i.callbackScope||s,i.onStartParams||[])},s},c.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=!1!==i.immediateRender;var n=this.tweenTo(e,i);return n.duration(Math.abs(n.vars.time-t)/this._timeScale||.001)},c.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,s,l,h,c,d,p,u,f=this._dirty?this.totalDuration():this._totalDuration,m=this._duration,g=this._time,v=this._totalTime,y=this._startTime,b=this._timeScale,_=this._rawPrevTime,w=this._paused,x=this._cycle;if(t>=f-1e-7&&t>=0)this._locked||(this._totalTime=f,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(s=!0,h="onComplete",c=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=t&&t>=-1e-7||0>_||_===r)&&_!==t&&this._first&&(c=!0,_>r&&(h="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,this._yoyo&&1&this._cycle?this._time=t=0:(this._time=m,t
141=m+1e-4);else if(1e-7>t)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==g||0===m&&_!==r&&(_>0||0>t&&_>=0)&&!this._locked)&&(h="onReverseComplete",s=this._reversed),0>t)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(c=s=!0,h="onReverseComplete"):_>=0&&this._first&&(c=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=m||!e||t||this._rawPrevTime===t?t:r,0===t&&s)for(n=this._first;n&&0===n._startTime;)n._duration||(s=!1),n=n._next;t=0,this._initted||(c=!0)}else if(0===m&&0>_&&(c=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(d=m+this._repeatDelay,this._cycle=this._totalTime/d|0,0!==this._cycle&&this._cycle===this._totalTime/d&&t>=v&&this._cycle--,this._time=this._totalTime-this._cycle*d,this._yoyo&&!!(1&this._cycle)&&(this._time=m-this._time),this._time>m?(this._time=m,t=m+1e-4):this._time<0?this._time=t=0:t=this._time)),this._hasPause&&!this._forcingPlayhead&&!e){if((t=this._time)>=g||this._repeat&&x!==this._cycle)for(n=this._first;n&&n._startTime<=t&&!p;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(p=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!p;)n._duration||"isPause"===n.data&&n._rawPrevTime>0&&(p=n),n=n._prev;p&&p._startTime<m&&(this._time=t=p._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==x&&!this._locked){var S=this._yoyo&&!!(1&x),E=S===(this._yoyo&&!!(1&this._cycle)),C=this._totalTime,T=this._cycle,k=this._rawPrevTime,P=this._time;if(this._totalTime=x*m,this._cycle<x?S=!S:this._totalTime+=m,this._time=g,this._rawPrevTime=0===m?_-1e-4:_,this._cycle=x,this._locked=!0,g=S?0:m,this.render(g,e,0===m),e||this._gc||this.vars.onRepeat&&(this._cycle=T,this._locked=!1,this._callback("onRepeat")),g!==this._time)return;if(E&&(this._cycle=x,this._locked=!0,g=S?m+1e-4:-1e-4,this.render(g,!0,!1)),this._locked=!1,this._paused&&!w)return;this._time=P,this._totalTime=C,this._cycle=T,this._rawPrevTime=k}if(this._time!==g&&this._first||i||c||p){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==v&&t>0&&(this._active=!0),0===v&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||e||this._callback("onStart")),(u=this._time)>=g)for(n=this._first;n&&(l=n._next,u===this._time&&(!this._paused||w));)(n._active||n._startTime<=this._time&&!n._paused&&!n._gc)&&(p===n&&this.pause(),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=l;else for(n=this._last;n&&(l=n._prev,u===this._time&&(!this._paused||w));){if(n._active||n._startTime<=g&&!n._paused&&!n._gc){if(p===n){for(p=n._prev;p&&p.endTime()>this._time;)p.render(p._reversed?p.totalDuration()-(t-p._startTime)*p._timeScale:(t-p._startTime)*p._timeScale,e,i),p=p._prev;p=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=l}this._onUpdate&&(e||(o.length&&a(),this._callback("onUpdate"))),h&&(this._locked||this._gc||(y===this._startTime||b!==this._timeScale)&&(0===this._time||f>=this.totalDuration())&&(s&&(o.length&&a(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[h]&&this._callback(h)))}else v!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},c.getActive=function(t,e,i){null==t&&(t=!0),null==e&&(e=!0),null==i&&(i=!1);var n,r,s=[],o=this.getChildren(t,e,i),a=0,l=o.length;for(n=0;l>n;n++)(r=o[n]).isActive()&&(s[a++]=r);return s},c.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),n=i.length;for(e=0;n>e;e++)if(i[e].time>t)return i[e].name;return null},c.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;--i>-1;)if(e[i].time<t)return e[i].name;return null},c.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort((function(t,e){return t.time-e.time})),e},c.invalidate=function(){return this._locked=!1,t.prototype.invalidate.call(this)},c.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&1&this._cycle?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()||0},c.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()||0},c.totalDuration=function(e){return arguments.length?-1!==this._repeat&&e?this.timeScale(this.totalDuration()/e):this:(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},c.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&1&this._cycle?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},c.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},c.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},c.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},c.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},n}),!0),t=180/Math.PI,e=[],i=[],n=[],r={}
141,s=_gsScope._gsDefine.globals,o=function(t,e,i,n){i===n&&(i=n-(n-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=n,this.da=n-t,this.ca=i-t,this.ba=e-t},a=function(t,e,i,n){var r={a:t},s={},o={},a={c:n},l=(t+e)/2,h=(e+i)/2,c=(i+n)/2,d=(l+h)/2,p=(h+c)/2,u=(p-d)/8;return r.b=l+(t-l)/4,s.b=d+u,r.c=s.a=(r.b+s.b)/2,s.c=o.a=(d+p)/2,o.b=p-u,a.b=c+(n-c)/4,o.c=a.a=(o.b+a.b)/2,[r,s,o,a]},l=function(t,r,s,o,l){var h,c,d,p,u,f,m,g,v,y,b,_,w,x=t.length-1,S=0,E=t[0].a;for(h=0;x>h;h++)c=(u=t[S]).a,d=u.d,p=t[S+1].d,l?(b=e[h],w=((_=i[h])+b)*r*.25/(o?.5:n[h]||.5),g=d-((f=d-(d-c)*(o?.5*r:0!==b?w/b:0))+(((m=d+(p-d)*(o?.5*r:0!==_?w/_:0))-f)*(3*b/(b+_)+.5)/4||0))):g=d-((f=d-(d-c)*r*.5)+(m=d+(p-d)*r*.5))/2,f+=g,m+=g,u.c=v=f,u.b=0!==h?E:E=u.a+.6*(u.c-u.a),u.da=d-c,u.ca=v-c,u.ba=E-c,s?(y=a(c,E,v,d),t.splice(S,1,y[0],y[1],y[2],y[3]),S+=4):S++,E=m;(u=t[S]).b=E,u.c=E+.4*(u.d-E),u.da=u.d-u.a,u.ca=u.c-u.a,u.ba=E-u.a,s&&(y=a(u.a,E,u.c,u.d),t.splice(S,1,y[0],y[1],y[2],y[3]))},h=function(t,n,r,s){var a,l,h,c,d,p,u=[];if(s)for(l=(t=[s].concat(t)).length;--l>-1;)"string"==typeof(p=t[l][n])&&"="===p.charAt(1)&&(t[l][n]=s[n]+Number(p.charAt(0)+p.substr(2)));if(0>(a=t.length-2))return u[0]=new o(t[0][n],0,0,t[0][n]),u;for(l=0;a>l;l++)h=t[l][n],c=t[l+1][n],u[l]=new o(h,0,0,c),r&&(d=t[l+2][n],e[l]=(e[l]||0)+(c-h)*(c-h),i[l]=(i[l]||0)+(d-c)*(d-c));return u[l]=new o(t[l][n],0,0,t[l+1][n]),u},c=function(t,s,o,a,c,d){var p,u,f,m,g,v,y,b,_={},w=[],x=d||t[0];for(u in c="string"==typeof c?","+c+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==s&&(s=1),t[0])w.push(u);if(t.length>1){for(b=t[t.length-1],y=!0,p=w.length;--p>-1;)if(u=w[p],Math.abs(x[u]-b[u])>.05){y=!1;break}y&&(t=t.concat(),d&&t.unshift(d),t.push(t[1]),d=t[t.length-3])}for(e.length=i.length=n.length=0,p=w.length;--p>-1;)u=w[p],r[u]=-1!==c.indexOf(","+u+","),_[u]=h(t,u,r[u],d);for(p=e.length;--p>-1;)e[p]=Math.sqrt(e[p]),i[p]=Math.sqrt(i[p]);if(!a){for(p=w.length;--p>-1;)if(r[u])for(v=(f=_[w[p]]).length-1,m=0;v>m;m++)g=f[m+1].da/i[m]+f[m].da/e[m]||0,n[m]=(n[m]||0)+g*g;for(p=n.length;--p>-1;)n[p]=Math.sqrt(n[p])}for(p=w.length,m=o?4:1;--p>-1;)f=_[u=w[p]],l(f,s,o,a,r[u]),y&&(f.splice(0,m),f.splice(f.length-m,m));return _},d=function(t,e,i){var n,r,s,a,l,h,c,d,p,u,f,m={},g="cubic"===(e=e||"soft")?3:2,v="soft"===e,y=[];if(v&&i&&(t=[i].concat(t)),null==t||t.length<g+1)throw"invalid Bezier data";for(p in t[0])y.push(p) 142;for(h=y.length;--h>-1;){for(m[p=y[h]]=l=[],u=0,d=t.length,c=0;d>c;c++)n=null==i?t[c][p]:"string"==typeof(f=t[c][p])&&"="===f.charAt(1)?i[p]+Number(f.charAt(0)+f.substr(2)):Number(f),v&&c>1&&d-1>c&&(l[u++]=(n+l[u-2])/2),l[u++]=n;for(d=u-g+1,u=0,c=0;d>c;c+=g)n=l[c],r=l[c+1],s=l[c+2],a=2===g?0:l[c+3],l[u++]=f=3===g?new o(n,r,s,a):new o(n,(2*r+n)/3,(2*r+s)/3,s);l.length=u}return m},p=function(t,e,i){for(var n,r,s,o,a,l,h,c,d,p,u,f=1/i,m=t.length;--m>-1;)for(s=(p=t[m]).a,o=p.d-s,a=p.c-s,l=p.b-s,n=r=0,c=1;i>=c;c++)n=r-(r=((h=f*c)*h*o+3*(d=1-h)*(h*a+d*l))*h),e[u=m*i+c-1]=(e[u]||0)+n*n},u=function(t,e){var i,n,r,s,o=[],a=[],l=0,h=0,c=(e=0|e||6)-1,d=[],u=[];for(i in t)p(t[i],o,e);for(r=o.length,n=0;r>n;n++)l+=Math.sqrt(o[n]),u[s=n%e]=l,s===c&&(h+=l,d[s=n/e|0]=u,a[s]=h,l=0,u=[]);return{length:h,lengths:a,segments:d}},f=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var n,r,s,o,a,l=e.values||[],h={},p=l[0],f=e.autoRotate||i.vars.orientToBezier;for(n in this._autoRotate=f?f instanceof Array?f:[["x","y","rotation",!0===f?0:Number(f)||0]]:null,p)this._props.push(n);for(s=this._props.length;--s>-1;)n=this._props[s],this._overwriteProps.push(n),r=this._func[n]="function"==typeof t[n],h[n]=r?t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(t[n]),a||h[n]!==l[0][n]&&(a=h);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?c(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,a):d(l,e.type,h),this._segCount=this._beziers[n].length,this._timeRes){var m=u(this._beziers,this._timeRes);this._length=m.length,this._lengths=m.lengths,this._segments=m.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(f=this._autoRotate)for(this._initialRotations=[],f[0]instanceof Array||(this._autoRotate=f=[f]),s=f.length;--s>-1;){for(o=0;3>o;o++)n=f[s][o],this._func[n]="function"==typeof t[n]&&t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)];n=f[s][2],this._initialRotations[s]=(this._func[n]?this._func[n].call(this._target):this._target[n])||0,this._overwriteProps.push(n)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(e){var i,n,r,s,o,a,l,h,c,d,p=this._segCount,u=this._func,f=this._target,m=e!==this._startRatio;if(this._timeRes){if(c=this._lengths,d=this._curSeg,e*=this._length,r=this._li,e>this._l2&&p-1>r){for(h=p-1;h>r&&(this._l2=c[++r])<=e;);this._l1=c[r-1],this._li=r,this._curSeg=d=this._segments[r],this._s2=d[this._s1=this._si=0]}else if(e<this._l1&&r>0){for(;r>0&&(this._l1=c[--r])>=e;);0===r&&e<this._l1?this._l1=0:r++,this._l2=c[r],this._li=r,this._curSeg=d=this._segments[r],this._s1=d[(this._si=d.length-1)-1]||0,this._s2=d[this._si]}if(i=r,e-=this._l1,r=this._si,e>this._s2&&r<d.length-1){for(h=d.length-1;h>r&&(this._s2=d[++r])<=e;);this._s1=d[r-1],this._si=r}else if(e<this._s1&&r>0){for(;r>0&&(this._s1=d[--r])>=e;);0===r&&e<this._s1?this._s1=0:r++,this._s2=d[r],this._si=r}a=(r+(e-this._s1)/(this._s2-this._s1))*this._prec||0}else a=(e-(i=0>e?0:e>=1?p-1:p*e|0)*(1/p))*p;for(n=1-a,r=this._props.length;--r>-1;)s=this._props[r],l=(a*a*(o=this._beziers[s][i]).da+3*n*(a*o.ca+n*o.ba))*a+o.a,this._mod[s]&&(l=this._mod[s](l,f)),u[s]?f[s](l):f[s]=l;if(this._autoRotate){var g,v,y,b,_,w,x,S=this._autoRotate;for(r=S.length;--r>-1;)s=S[r][2],w=S[r][3]||0,x=!0===S[r][4]?1:t,o=this._beziers[S[r][0]],g=this._beziers[S[r][1]],o&&g&&(o=o[i],g=g[i],v=o.a+(o.b-o.a)*a,v+=((b=o.b+(o.c-o.b)*a)-v)*a,b+=(o.c+(o.d-o.c)*a-b)*a,y=g.a+(g.b-g.a)*a,y+=((_=g.b+(g.c-g.b)*a)-y)*a,_+=(g.c+(g.d-g.c)*a-_)*a,l=m?Math.atan2(_-y,b-v)*x+w:this._initialRotations[r],this._mod[s]&&(l=this._mod[s](l,f)),u[s]?f[s](l):f[s]=l)}}}),m=f.prototype,f.bezierThrough=c,f.cubicToQuadratic=a,f._autoCSS=!0,f.quadraticToCubic=function(t,e,
142i){return new o(t,(2*e+t)/3,(2*e+i)/3,i)},f._cssRegister=function(){var t=s.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,n=e._setPluginRatio,r=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,s,o,a,l){e instanceof Array&&(e={values:e}),l=new f;var h,c,d,p=e.values,u=p.length-1,m=[],g={};if(0>u)return a;for(h=0;u>=h;h++)d=i(t,p[h],o,a,l,u!==h),m[h]=d.end;for(c in e)g[c]=e[c];return g.values=m,(a=new r(t,"bezier",0,0,d.pt,2)).data=d,a.plugin=l,a.setRatio=n,0===g.autoRotate&&(g.autoRotate=!0),!g.autoRotate||g.autoRotate instanceof Array||(h=!0===g.autoRotate?0:Number(g.autoRotate),g.autoRotate=null!=d.end.left?[["left","top","rotation",h,!1]]:null!=d.end.x&&[["x","y","rotation",h,!1]]),g.autoRotate&&(o._transform||o._enableTransforms(!1),d.autoRotate=o._target._gsTransform,d.proxy.rotation=d.autoRotate.rotation||0,o._overwriteProps.push("rotation")),l._onInitTween(d.proxy,g,o._tween),a}})}},m._mod=function(t){for(var e,i=this._overwriteProps,n=i.length;--n>-1;)(e=t[i[n]])&&"function"==typeof e&&(this._mod[i[n]]=e)},m._kill=function(t){var e,i,n=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=n.length;--i>-1;)n[i]===e&&n.splice(i,1);if(n=this._autoRotate)for(i=n.length;--i>-1;)t[n[i][2]]&&n.splice(i,1);return this._super._kill.call(this,t)},_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],(function(t,e){var i,n,r,s,o=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=o.prototype.setRatio},a=_gsScope._gsDefine.globals,l={},h=o.prototype=new t("css");h.constructor=o,o.version="1.20.0",o.API=2,o.defaultTransformPerspective=0,o.defaultSkewType="compensated",o.defaultSmoothOrigin=!0,h="px",o.suffixMap={top:h,right:h,bottom:h,left:h,width:h,height:h,fontSize:h,padding:h,margin:h,perspective:h,lineHeight:""};var c,d,p,u,f,m,g,v,y=/(?:\-|\.|\b)(\d|\.|e\-)+/g,b=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,_=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,w=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,x=/(?:\d|\-|\+|=|#|\.)*/g,S=/opacity *= *([^)]*)/i,E=/opacity:([^;]*)/i,C=/alpha\(opacity *=.+?\)/i,T=/^(rgb|hsl)/,k=/([A-Z])/g,P=/-([a-z])/gi,A=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,M=function(t,e){return e.toUpperCase()},D=/(?:Left|Right|Width)/i,I=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,O=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,L=/,(?=[^\)]*(?:\(|$))/gi,F=/[\s,\(]/i,R=Math.PI/180,z=180/Math.PI,B={},N={style:{}},j=_gsScope.document||{createElement:function(){return N}},G=function(t,e){return j.createElementNS?j.createElementNS(e||"http://www.w3.org/1999/xhtml",t):j.createElement(t)},V=G("div"),H=G("img"),q=o._internals={_specialProps:l},X=(_gsScope.navigator||{}).userAgent||"",W=function(){var t=X.indexOf("Android"),e=G("a");return p=-1!==X.indexOf("Safari")&&-1===X.indexOf("Chrome")&&(-1===t||parseFloat(X.substr(t+8,2))>3),f=p&&parseFloat(X.substr(X.indexOf("Version/")+8,2))<6,u=-1!==X.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(X)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(X))&&(m=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),Y=function(t){return S.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},U=function(t){_gsScope.console&&console.log(t)},K="",Z="",Q=function(t,e){var i,n,r=(e=e||V).style;if(void 0!==r[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],n=5;--n>-1&&void 0===r[i[n]+t];);return n>=0?(Z=3===n?"ms":i[n],K="-"+Z.toLowerCase()+"-",Z+t):null},$=j.defaultView?j.defaultView.getComputedStyle:function(){},J=o.getStyle=function(t,e,i,n,r){var s;return W||"opacity"!==e?(!n&&t.style[e]?s=t.style[e]:(i=i||$(t))?s=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(k,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==r||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:r):Y(t)},tt=q.convertToPixels=function(t,i,n,r,s){if("px"===r||!r&&"lineHeight"!==i)return n;if("auto"===r||!n)return 0;var a,l,h,c=D.test(i),d=t,p=V.style,u=0>n,f=1===n;if(u&&(n=-n),f&&(n*=100),"lineHeight"!==i||r)if("%"===r&&-1!==i.indexOf("border"))a=n/100*(c?t.clientWidth:t.clientHeight);else{if(p.cssText="border:0 solid red;position:"+J(t,"position")+";line-height:0;","%"!==r&&d.appendChild&&"v"!==r.charAt(0)&&"rem"!==r)p[c?"borderLeftWidth":"borderTopWidth"]=n+r;else{if(d=t.parentNode||j.body,-1!==J(d,"display").indexOf("flex")&&(p.position="absolute"),l=d._gsCache,h=e.ticker.frame,l&&c&&l.time===h)return l.width*n/100;p[c?"width":"height"]=n+r}d.appendChild(V),a=parseFloat(V[c?"offsetWidth":"offsetHeight"]),d.removeChild(V),c&&"%"===r&&!1!==o.cacheWidths&&((l=d._gsCache=d._gsCache||{}
142).time=h,l.width=a/n*100),0!==a||s||(a=tt(t,i,n,r,!0))}else l=$(t).lineHeight,t.style.lineHeight=n,a=parseFloat($(t).lineHeight),t.style.lineHeight=l;return f&&(a/=100),u?-a:a},et=q.calculateOffset=function(t,e,i){if("absolute"!==J(t,"position",i))return 0;var n="left"===e?"Left":"Top",r=J(t,"margin"+n,i);return t["offset"+n]-(tt(t,e,parseFloat(r),r.replace(x,""))||0)},it=function(t,e){var i,n,r,s={};if(e=e||$(t,null))if(i=e.length)for(;--i>-1;)(-1===(r=e[i]).indexOf("-transform")||At===r)&&(s[r.replace(P,M)]=e.getPropertyValue(r));else for(i in e)(-1===i.indexOf("Transform")||Pt===i)&&(s[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===s[i]&&(s[i.replace(P,M)]=e[i]);return W||(s.opacity=Y(t)),n=Gt(t,e,!1),s.rotation=n.rotation,s.skewX=n.skewX,s.scaleX=n.scaleX,s.scaleY=n.scaleY,s.x=n.x,s.y=n.y,Dt&&(s.z=n.z,s.rotationX=n.rotationX,s.rotationY=n.rotationY,s.scaleZ=n.scaleZ),s.filters&&delete s.filters,s},nt=function(t,e,i,n,r){var s,o,a,l={},h=t.style;for(o in i)"cssText"!==o&&"length"!==o&&isNaN(o)&&(e[o]!==(s=i[o])||r&&r[o])&&-1===o.indexOf("Origin")&&("number"==typeof s||"string"==typeof s)&&(l[o]="auto"!==s||"left"!==o&&"top"!==o?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof e[o]||""===e[o].replace(w,"")?s:0:et(t,o),void 0!==h[o]&&(a=new yt(h,o,h[o],a)));if(n)for(o in n)"className"!==o&&(l[o]=n[o]);return{difs:l,firstMPT:a}},rt={width:["Left","Right"],height:["Top","Bottom"]},st=["marginLeft","marginRight","marginTop","marginBottom"],ot=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||$(t))[e]||0;if(t.getCTM&&Bt(t))return t.getBBox()[e]||0;var n=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),r=rt[e],s=r.length;for(i=i||$(t,null);--s>-1;)n-=parseFloat(J(t,"padding"+r[s],i,!0))||0,n-=parseFloat(J(t,"border"+r[s]+"Width",i,!0))||0;return n},at=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";(null==t||""===t)&&(t="0 0");var i,n=t.split(" "),r=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":n[0],s=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":n[1];if(n.length>3&&!e){for(n=t.split(", ").join(",").split(","),t=[],i=0;i<n.length;i++)t.push(at(n[i]));return t.join(",")}return null==s?s="center"===r?"50%":"0":"center"===s&&(s="50%"),("center"===r||isNaN(parseFloat(r))&&-1===(r+"").indexOf("="))&&(r="50%"),t=r+" "+s+(n.length>2?" "+n[2]:""),e&&(e.oxp=-1!==r.indexOf("%"),e.oyp=-1!==s.indexOf("%"),e.oxr="="===r.charAt(1),e.oyr="="===s.charAt(1),e.ox=parseFloat(r.replace(w,"")),e.oy=parseFloat(s.replace(w,"")),e.v=t),e||t},lt=function(t,e){return"function"==typeof t&&(t=t(v,g)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},ht=function(t,e){return"function"==typeof t&&(t=t(v,g)),null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},ct=function(t,e,i,n){var r,s,o,a,l,h=1e-6;return"function"==typeof t&&(t=t(v,g)),null==t?a=e:"number"==typeof t?a=t:(r=360,s=t.split("_"),o=((l="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(s[0].substr(2)):parseFloat(s[0]))*(-1===t.indexOf("rad")?1:z)-(l?0:e),s.length&&(n&&(n[i]=e+o),-1!==t.indexOf("short")&&((o%=r)!==o%180&&(o=0>o?o+r:o-r)),-1!==t.indexOf("_cw")&&0>o?o=(o+9999999999*r)%r-(o/r|0)*r:-1!==t.indexOf("ccw")&&o>0&&(o=(o-9999999999*r)%r-(o/r|0)*r)),a=e+o),h>a&&a>-h&&(a=0),a},dt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},pt=function(t,e,i){return 255*(1>6*(t=0>t?t+1:t>1?t-1:t)?e+(i-e)*t*6:.5>t?i:2>3*t?e+(i-e)*(2/3-t)*6:e)+.5|0},ut=o.parseColor=function(t,e){var i,n,r,s,o,a,l,h,c,d,p;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),dt[t])i=dt[t];else if("#"===t.charAt(0))4===t.length&&(n=t.charAt(1),r=t.charAt(2),s=t.charAt(3),t="#"+n+n+r+r+s+s),i=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=p=t.match(y),e){if(-1!==t.indexOf("="))return t.match(b)}else o=Number(i[0])%360/360,a=Number(i[1])/100,n=2*(l=Number(i[2])/100)-(r=.5>=l?l*(a+1):l+a-l*a),i.length>3&&(i[3]=Number(t[3])),i[0]=pt(o+1/3,n,r),i[1]=pt(o,n,r),i[2]=pt(o-1/3,n,r);else i=t.match(y)||dt.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),i.length>3&&(i[3]=Number(i[3]))}else i=dt.black;return e&&!p&&(n=i[0]/255,r=i[1]/255,s=i[2]/255,l=((h=Math.max(n,r,s))+(c=Math.min(n,r,s)))/2,h===c?o=a=0:(d=h-c,a=l>.5?d/(2-h-c):d/(h+c),o=h===n?(r-s)/d+(s>r?6:0):h===r?(s-n)/d+2:(n-r)/d+4,o*=60),i[0]=o+.5|0,i[1]=100*a+.5|0,i[2]=100*l+.5|0),i},ft=function(t,e){var i,n,r,s=t.match(mt)||[],o=0,a="";if(!s.length)return t;for(i=0;i<s.length;i++)n=s[i],o+=(r=t.substr(o,t.indexOf(n,o)-o)).length+n.length,3===(n=ut(n,e)).length&&n.push(1),a+=r+(e?"hsla("+n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:"rgba("+n.join(","))+")";return a+t.substr(o)},mt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(h in dt)mt+="|"+h+"\\b";mt=new RegExp(mt+")","gi"),o.colorStringFilter=function(t){var e,i=t[0]+" "+t[1];mt.test(i)&&(e=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),t[0]=ft(t[0],e),t[1]=ft(t[1],e)),mt.lastIndex=0},e.defaultStringFilter||(e.defaultStringFilter=o.colorStringFilter);
142var gt=function(t,e,i,n){if(null==t)return function(t){return t};var r,s=e?(t.match(mt)||[""])[0]:"",o=t.split(s).join("").match(_)||[],a=t.substr(0,t.indexOf(o[0])),l=")"===t.charAt(t.length-1)?")":"",h=-1!==t.indexOf(" ")?" ":",",c=o.length,d=c>0?o[0].replace(y,""):"";return c?r=e?function(t){var e,p,u,f;if("number"==typeof t)t+=d;else if(n&&L.test(t)){for(f=t.replace(L,"|").split("|"),u=0;u<f.length;u++)f[u]=r(f[u]);return f.join(",")}if(e=(t.match(mt)||[s])[0],u=(p=t.split(e).join("").match(_)||[]).length,c>u--)for(;++u<c;)p[u]=i?p[(u-1)/2|0]:o[u];return a+p.join(h)+h+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,s,p;if("number"==typeof t)t+=d;else if(n&&L.test(t)){for(s=t.replace(L,"|").split("|"),p=0;p<s.length;p++)s[p]=r(s[p]);return s.join(",")}if(p=(e=t.match(_)||[]).length,c>p--)for(;++p<c;)e[p]=i?e[(p-1)/2|0]:o[p];return a+e.join(h)+l}:function(t){return t}},vt=function(t){return t=t.split(","),function(e,i,n,r,s,o,a){var l,h=(i+"").split(" ");for(a={},l=0;4>l;l++)a[t[l]]=h[l]=h[l]||h[(l-1)/2|0];return r.parse(e,a,s,o)}},yt=(q._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,n,r,s,o=this.data,a=o.proxy,l=o.firstMPT,h=1e-6;l;)e=a[l.v],l.r?e=Math.round(e):h>e&&e>-h&&(e=0),l.t[l.p]=e,l=l._next;if(o.autoRotate&&(o.autoRotate.rotation=o.mod?o.mod(a.rotation,this.t):a.rotation),1===t||0===t)for(l=o.firstMPT,s=1===t?"e":"b";l;){if((i=l.t).type){if(1===i.type){for(r=i.xs0+i.s+i.xs1,n=1;n<i.l;n++)r+=i["xn"+n]+i["xs"+(n+1)];i[s]=r}}else i[s]=i.s+i.xs0;l=l._next}},function(t,e,i,n,r){this.t=t,this.p=e,this.v=i,this.r=r,n&&(n._prev=this,this._next=n)}),bt=(q._parseToProxy=function(t,e,i,n,r,s){var o,a,l,h,c,d=n,p={},u={},f=i._transform,m=B;for(i._transform=null,B=e,n=c=i.parse(t,e,n,r),B=m,s&&(i._transform=f,d&&(d._prev=null,d._prev&&(d._prev._next=null)));n&&n!==d;){if(n.type<=1&&(u[a=n.p]=n.s+n.c,p[a]=n.s,s||(h=new yt(n,"s",a,h,n.r),n.c=0),1===n.type))for(o=n.l;--o>0;)l="xn"+o,u[a=n.p+"_"+l]=n.data[l],p[a]=n[l],s||(h=new yt(n,l,a,h,n.rxp[l]));n=n._next}return{proxy:p,end:u,firstMPT:h,pt:c}},q.CSSPropTween=function(t,e,n,r,o,a,l,h,c,d,p){this.t=t,this.p=e,this.s=n,this.c=r,this.n=l||e,t instanceof bt||s.push(this.n),this.r=h,this.type=a||0,c&&(this.pr=c,i=!0),this.b=void 0===d?n:d,this.e=void 0===p?n+r:p,o&&(this._next=o,o._prev=this)}),_t=function(t,e,i,n,r,s){var o=new bt(t,e,i,n-i,r,-1,s);return o.b=i,o.e=o.xs0=n,o},wt=o.parseComplex=function(t,e,i,n,r,s,a,l,h,d){i=i||s||"","function"==typeof n&&(n=n(v,g)),a=new bt(t,e,0,0,a,d?2:1,null,!1,l,i,n),n+="",r&&mt.test(n+i)&&(n=[i,n],o.colorStringFilter(n),i=n[0],n=n[1]);var p,u,f,m,_,w,x,S,E,C,T,k,P,A=i.split(", ").join(",").split(" "),M=n.split(", ").join(",").split(" "),D=A.length,I=!1!==c;for((-1!==n.indexOf(",")||-1!==i.indexOf(","))&&(A=A.join(" ").replace(L,", ").split(" "),M=M.join(" ").replace(L,", ").split(" "),D=A.length),D!==M.length&&(D=(A=(s||"").split(" ")).length),a.plugin=h,a.setRatio=d,mt.lastIndex=0,p=0;D>p;p++)if(m=A[p],_=M[p],(S=parseFloat(m))||0===S)a.appendXtra("",S,lt(_,S),_.replace(b,""),I&&-1!==_.indexOf("px"),!0);else if(r&&mt.test(m))k=")"+((k=_.indexOf(")")+1)?_.substr(k):""),P=-1!==_.indexOf("hsl")&&W,C=_,m=ut(m,P),_=ut(_,P),(E=m.length+_.length>6)&&!W&&0===_[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(M[p]).join("transparent")):(W||(E=!1),P?a.appendXtra(C.substr(0,C.indexOf("hsl"))+(E?"hsla(":"hsl("),m[0],lt(_[0],m[0]),",",!1,!0).appendXtra("",m[1],lt(_[1],m[1]),"%,",!1).appendXtra("",m[2],lt(_[2],m[2]),E?"%,":"%"+k,!1):a.appendXtra(C.substr(0,C.indexOf("rgb"))+(E?"rgba(":"rgb("),m[0],_[0]-m[0],",",!0,!0).appendXtra("",m[1],_[1]-m[1],",",!0).appendXtra("",m[2],_[2]-m[2],E?",":k,!0),E&&(m=m.length<4?1:m[3],a.appendXtra("",m,(_.length<4?1:_[3])-m,k,!1))),mt.lastIndex=0;else if(w=m.match(y)){if(!(x=_.match(b))||x.length!==w.length)return a;for(f=0,u=0;u<w.length;u++)T=w[u],C=m.indexOf(T,f),a.appendXtra(m.substr(f,C-f),Number(T),lt(x[u],T),"",I&&"px"===m.substr(C+T.length,2),0===u),f=C+T.length;a["xs"+a.l]+=m.substr(f)}else a["xs"+a.l]+=a.l||a["xs"+a.l]?" "+_:_;if(-1!==n.indexOf("=")&&a.data){for(k=a.xs0+a.data.s,p=1;p<a.l;p++)k+=a["xs"+p]+a.data["xn"+p];a.e=k+a["xs"+p]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},xt=9;for((h=bt.prototype).l=h.pr=0;--xt>0;
142)h["xn"+xt]=0,h["xs"+xt]="";h.xs0="",h._next=h._prev=h.xfirst=h.data=h.plugin=h.setRatio=h.rxp=null,h.appendXtra=function(t,e,i,n,r,s){var o=this,a=o.l;return o["xs"+a]+=s&&(a||o["xs"+a])?" "+t:t||"",i||0===a||o.plugin?(o.l++,o.type=o.setRatio?2:1,o["xs"+o.l]=n||"",a>0?(o.data["xn"+a]=e+i,o.rxp["xn"+a]=r,o["xn"+a]=e,o.plugin||(o.xfirst=new bt(o,"xn"+a,e,i,o.xfirst||o,0,o.n,r,o.pr),o.xfirst.xs0=0),o):(o.data={s:e+i},o.rxp={},o.s=e,o.c=i,o.r=r,o)):(o["xs"+a]+=e+(n||""),o)};var St=function(t,e){e=e||{},this.p=e.prefix&&Q(t)||t,l[t]=l[this.p]=this,this.format=e.formatter||gt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},Et=q._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var n,r=t.split(","),s=e.defaultValue;for(i=i||[s],n=0;n<r.length;n++)e.prefix=0===n&&e.prefix,e.defaultValue=i[n]||s,new St(r[n],e)},Ct=q._registerPluginProp=function(t){if(!l[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";Et(t,{parser:function(t,i,n,r,s,o,h){var c=a.com.greensock.plugins[e];return c?(c._cssRegister(),l[n].parse(t,i,n,r,s,o,h)):(U("Error: "+e+" js file not loaded."),s)}})}};(h=St.prototype).parseComplex=function(t,e,i,n,r,s){var o,a,l,h,c,d,p=this.keyword;if(this.multi&&(L.test(i)||L.test(e)?(a=e.replace(L,"|").split("|"),l=i.replace(L,"|").split("|")):p&&(a=[e],l=[i])),l){for(h=l.length>a.length?l.length:a.length,o=0;h>o;o++)e=a[o]=a[o]||this.dflt,i=l[o]=l[o]||this.dflt,p&&((c=e.indexOf(p))!==(d=i.indexOf(p))&&(-1===d?a[o]=a[o].split(p).join(""):-1===c&&(a[o]+=" "+p)));e=a.join(", "),i=l.join(", ")}return wt(t,this.p,e,i,this.clrs,this.dflt,n,this.pr,r,s)},h.parse=function(t,e,i,n,s,o,a){return this.parseComplex(t.style,this.format(J(t,this.p,r,!1,this.dflt)),this.format(e),s,o)},o.registerSpecialProp=function(t,e,i){Et(t,{parser:function(t,n,r,s,o,a,l){var h=new bt(t,r,0,0,o,2,r,!1,i);return h.plugin=a,h.setRatio=e(t,n,s._tween,r),h},priority:i})},o.useSVGTransformAttr=!0;var Tt,kt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Pt=Q("transform"),At=K+"transform",Mt=Q("transformOrigin"),Dt=null!==Q("perspective"),It=q.Transform=function(){this.perspective=parseFloat(o.defaultTransformPerspective)||0,this.force3D=!(!1===o.defaultForce3D||!Dt)&&(o.defaultForce3D||"auto")},Ot=_gsScope.SVGElement,Lt=function(t,e,i){var n,r=j.createElementNS("http://www.w3.org/2000/svg",t),s=/([a-z])([A-Z])/g;for(n in i)r.setAttributeNS(null,n.replace(s,"$1-$2").toLowerCase(),i[n]);return e.appendChild(r),r},Ft=j.documentElement||{},$t=function(){var t,e,i,n=m||/Android/i.test(X)&&!_gsScope.chrome;return j.createElementNS&&!n&&(t=Lt("svg",Ft),i=(e=Lt("rect",t,{width:100,height:50,x:100})).getBoundingClientRect().width,e.style[Mt]="50% 50%",e.style[Pt]="scaleX(0.5)",n=i===e.getBoundingClientRect().width&&!(u&&Dt),Ft.removeChild(t)),n}(),Rt=function(t,e,i,n,r,s){var a,l,h,c,d,p,u,f,m,g,v,y,b,_,w=t._gsTransform,x=jt(t,!0);w&&(b=w.xOrigin,_=w.yOrigin),(!n||(a=n.split(" ")).length<2)&&(0===(u=t.getBBox()).x&&0===u.y&&u.width+u.height===0&&(u={x:parseFloat(t.hasAttribute("x")?t.getAttribute("x"):t.hasAttribute("cx")?t.getAttribute("cx"):0)||0,y:parseFloat(t.hasAttribute("y")?t.getAttribute("y"):t.hasAttribute("cy")?t.getAttribute("cy"):0)||0,width:0,height:0}),a=[(-1!==(e=at(e).split(" "))[0].indexOf("%")?parseFloat(e[0])/100*u.width:parseFloat(e[0]))+u.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*u.height:parseFloat(e[1]))+u.y]),i.xOrigin=c=parseFloat(a[0]),i.yOrigin=d=parseFloat(a[1]),n&&x!==Nt&&(p=x[0],u=x[1],f=x[2],m=x[3],g=x[4],v=x[5],(y=p*m-u*f)&&(l=c*(m/y)+d*(-f/y)+(f*v-m*g)/y,h=c*(-u/y)+d*(p/y)-(p*v-u*g)/y,c=i.xOrigin=a[0]=l,d=i.yOrigin=a[1]=h)),w&&(s&&(i.xOffset=w.xOffset,i.yOffset=w.yOffset,w=i),r||!1!==r&&!1!==o.defaultSmoothOrigin?(l=c-b,h=d-_,w.xOffset+=l*x[0]+h*x[2]-l,w.yOffset+=l*x[1]+h*x[3]-h):w.xOffset=w.yOffset=0),s||t.setAttribute("data-svg-origin",a.join(" "))},zt=function(t){var e,i=G("svg",this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,r=this.nextSibling,s=this.style.cssText;if(Ft.appendChild(i),i.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=zt}catch(t){}else this._originalGetBBox&&(e=this._originalGetBBox());return r?n.insertBefore(this,r):n.appendChild(this),Ft.removeChild(i),this.style.cssText=s,e},Bt=function(t){return!(!(Ot&&t.getCTM&&function(t){try{return t.getBBox()}catch(e){return zt.call(t,!0)}}(t))||t.parentNode&&!t.ownerSVGElement)},Nt=[1,0,0,1,0,0],jt=function(t,e){var i,n,r,s,o,a,l=t._gsTransform||new It,h=1e5,c=t.style;if(Pt?n=J(t,At,null,!0):t.currentStyle&&(n=(n=t.currentStyle.filter.match(I))&&4===n.length?[n[
1420].substr(4),Number(n[2].substr(4)),Number(n[1].substr(4)),n[3].substr(4),l.x||0,l.y||0].join(","):""),i=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,!Pt||!(a="none"===$(t).display)&&t.parentNode||(a&&(s=c.display,c.display="block"),t.parentNode||(o=1,Ft.appendChild(t)),i=!(n=J(t,At,null,!0))||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,s?c.display=s:a&&Xt(c,"display"),o&&Ft.removeChild(t)),(l.svg||t.getCTM&&Bt(t))&&(i&&-1!==(c[Pt]+"").indexOf("matrix")&&(n=c[Pt],i=0),r=t.getAttribute("transform"),i&&r&&(-1!==r.indexOf("matrix")?(n=r,i=0):-1!==r.indexOf("translate")&&(n="matrix(1,0,0,1,"+r.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",i=0))),i)return Nt;for(r=(n||"").match(y)||[],xt=r.length;--xt>-1;)s=Number(r[xt]),r[xt]=(o=s-(s|=0))?(o*h+(0>o?-.5:.5)|0)/h+s:s;return e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r},Gt=q.getTransform=function(t,i,n,r){if(t._gsTransform&&n&&!r)return t._gsTransform;var s,a,l,h,c,d,p=n&&t._gsTransform||new It,u=p.scaleX<0,f=2e-5,m=1e5,g=Dt&&(parseFloat(J(t,Mt,i,!1,"0 0 0").split(" ")[2])||p.zOrigin)||0,v=parseFloat(o.defaultTransformPerspective)||0;if(p.svg=!(!t.getCTM||!Bt(t)),p.svg&&(Rt(t,J(t,Mt,i,!1,"50% 50%")+"",p,t.getAttribute("data-svg-origin")),Tt=o.useSVGTransformAttr||$t),(s=jt(t))!==Nt){if(16===s.length){var y,b,_,w,x,S=s[0],E=s[1],C=s[2],T=s[3],k=s[4],P=s[5],A=s[6],M=s[7],D=s[8],I=s[9],O=s[10],L=s[12],F=s[13],R=s[14],B=s[11],N=Math.atan2(A,O);p.zOrigin&&(L=D*(R=-p.zOrigin)-s[12],F=I*R-s[13],R=O*R+p.zOrigin-s[14]),p.rotationX=N*z,N&&(y=k*(w=Math.cos(-N))+D*(x=Math.sin(-N)),b=P*w+I*x,_=A*w+O*x,D=k*-x+D*w,I=P*-x+I*w,O=A*-x+O*w,B=M*-x+B*w,k=y,P=b,A=_),N=Math.atan2(-C,O),p.rotationY=N*z,N&&(b=E*(w=Math.cos(-N))-I*(x=Math.sin(-N)),_=C*w-O*x,I=E*x+I*w,O=C*x+O*w,B=T*x+B*w,S=y=S*w-D*x,E=b,C=_),N=Math.atan2(E,S),p.rotation=N*z,N&&(y=S*(w=Math.cos(N))+E*(x=Math.sin(N)),b=k*w+P*x,_=D*w+I*x,E=E*w-S*x,P=P*w-k*x,I=I*w-D*x,S=y,k=b,D=_),p.rotationX&&Math.abs(p.rotationX)+Math.abs(p.rotation)>359.9&&(p.rotationX=p.rotation=0,p.rotationY=180-p.rotationY),N=Math.atan2(k,P),p.scaleX=(Math.sqrt(S*S+E*E+C*C)*m+.5|0)/m,p.scaleY=(Math.sqrt(P*P+A*A)*m+.5|0)/m,p.scaleZ=(Math.sqrt(D*D+I*I+O*O)*m+.5|0)/m,S/=p.scaleX,k/=p.scaleY,E/=p.scaleX,P/=p.scaleY,Math.abs(N)>f?(p.skewX=N*z,k=0,"simple"!==p.skewType&&(p.scaleY*=1/Math.cos(N))):p.skewX=0,p.perspective=B?1/(0>B?-B:B):0,p.x=L,p.y=F,p.z=R,p.svg&&(p.x-=p.xOrigin-(p.xOrigin*S-p.yOrigin*k),p.y-=p.yOrigin-(p.yOrigin*E-p.xOrigin*P))}else if(!Dt||r||!s.length||p.x!==s[4]||p.y!==s[5]||!p.rotationX&&!p.rotationY){var j=s.length>=6,G=j?s[0]:1,V=s[1]||0,H=s[2]||0,q=j?s[3]:1;p.x=s[4]||0,p.y=s[5]||0,l=Math.sqrt(G*G+V*V),h=Math.sqrt(q*q+H*H),c=G||V?Math.atan2(V,G)*z:p.rotation||0,d=H||q?Math.atan2(H,q)*z+c:p.skewX||0,p.scaleX=l,p.scaleY=h,p.rotation=c,p.skewX=d,Dt&&(p.rotationX=p.rotationY=p.z=0,p.perspective=v,p.scaleZ=1),p.svg&&(p.x-=p.xOrigin-(p.xOrigin*G+p.yOrigin*H),p.y-=p.yOrigin-(p.xOrigin*V+p.yOrigin*q))}for(a in Math.abs(p.skewX)>90&&Math.abs(p.skewX)<270&&(u?(p.scaleX*=-1,p.skewX+=p.rotation<=0?180:-180,p.rotation+=p.rotation<=0?180:-180):(p.scaleY*=-1,p.skewX+=p.skewX<=0?180:-180)),p.zOrigin=g,p)p[a]<f&&p[a]>-f&&(p[a]=0)}return n&&(t._gsTransform=p,p.svg&&(Tt&&t.style[Pt]?e.delayedCall(.001,(function(){Xt(t.style,Pt)})):!Tt&&t.getAttribute("transform")&&e.delayedCall(.001,(function(){t.removeAttribute("transform")})))),p},Vt=function(t){var e,i,n=this.data,r=-n.rotation*R,s=r+n.skewX*R,o=1e5,a=(Math.cos(r)*n.scaleX*o|0)/o,l=(Math.sin(r)*n.scaleX*o|0)/o,h=(Math.sin(s)*-n.scaleY*o|0)/o,c=(Math.cos(s)*n.scaleY*o|0)/o,d=this.t.style,p=this.t.currentStyle;if(p){i=l,l=-h,h=-i,e=p.filter,d.filter="";var u,f,g=this.t.offsetWidth,v=this.t.offsetHeight,y="absolute"!==p.position,b="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+l+", M21="+h+", M22="+c,_=n.x+g*n.xPercent/100,w=n.y+v*n.yPercent/100;if(null!=n.ox&&(_+=(u=(n.oxp?g*n.ox*.01:n.ox)-g/2)-(u*a+(f=(n.oyp?v*n.oy*.01:n.oy)-v/2)*l),w+=f-(u*h+f*c)),y?b+=", Dx="+((u=g/2)-(u*a+(f=v/2)*l)+_)+", Dy="+(f-(u*h+f*c)+w)+")":b+=", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?d.filter=e.replace(O,b):d.filter=b+" "+e,(0===t||1===t)&&1===a&&0===l&&0===h&&1===c&&(y&&-1===b.indexOf("Dx=0, Dy=0")||S.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&d.removeAttribute("filter")),!y){var E,C,T,k=8>m?1:-1;for(u=n.ieOffsetX||0,f=n.ieOffsetY||0,n.ieOffsetX=Math.round((g-((0>a?-a:a)*g+(0>l?-l:l)*v))/2+_),n.ieOffsetY=Math.round((v-((0>c?-c:c)*v+(0>h?-h:h)*g))/2+w),xt=0;4>xt;xt++)T=(i=-1!==(E=p[C=st[xt]]).indexOf("px")?parseFloat(E):tt(this.t,C,parseFloat(E),E.replace(x,""))||0)!==n[C]?2>xt?-n.ieOffsetX:-n.ieOffsetY:2>xt?u-n.ieOffsetX:f-n.ieOffsetY,d[C]=(n[C]=Math.round(i-T*(0===xt||2===xt?1:k)))+"px"}}},Ht=q.set3DTransformRatio=q.setTransformRatio=function(t){var e,i,n,r,s,o,a,l,h,c,d,p,f,m,g,v,y,b,_,w,x,S,E,C=this.data,T=this.t.style,k=C.rotation,P=C.rotationX,A=C.rotationY,M=C.scaleX,D=C.scaleY,I=C.scaleZ,O=C.x,L=C.y,F=C.z,z=C.svg,B=C.perspective,N=C.force3D,j=C.skewY,G=C.skewX;if(j&&(G+=j,k+=j),!((1!==t&&0!==t||"auto"!==N||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&N||F||B||A||P||1!==I)||Tt&&z||!Dt)k||G||z?(k*=R,S=G*R,E=1e5,i=Math.cos(k)*M,s=Math.sin(k)*M,n=Math.sin(k-S)*-D,o=Math.cos(k-S)*D,S&&"simple"===C.skewType&&(e=Math.tan(S-j*R),n*=e=Math.sqrt(1+e*e),o*=e,j&&(e=Math.tan(j*R
142),i*=e=Math.sqrt(1+e*e),s*=e)),z&&(O+=C.xOrigin-(C.xOrigin*i+C.yOrigin*n)+C.xOffset,L+=C.yOrigin-(C.xOrigin*s+C.yOrigin*o)+C.yOffset,Tt&&(C.xPercent||C.yPercent)&&(g=this.t.getBBox(),O+=.01*C.xPercent*g.width,L+=.01*C.yPercent*g.height),(g=1e-6)>O&&O>-g&&(O=0),g>L&&L>-g&&(L=0)),_=(i*E|0)/E+","+(s*E|0)/E+","+(n*E|0)/E+","+(o*E|0)/E+","+O+","+L+")",z&&Tt?this.t.setAttribute("transform","matrix("+_):T[Pt]=(C.xPercent||C.yPercent?"translate("+C.xPercent+"%,"+C.yPercent+"%) matrix(":"matrix(")+_):T[Pt]=(C.xPercent||C.yPercent?"translate("+C.xPercent+"%,"+C.yPercent+"%) matrix(":"matrix(")+M+",0,0,"+D+","+O+","+L+")";else{if(u&&((g=1e-4)>M&&M>-g&&(M=I=2e-5),g>D&&D>-g&&(D=I=2e-5),!B||C.z||C.rotationX||C.rotationY||(B=0)),k||G)k*=R,v=i=Math.cos(k),y=s=Math.sin(k),G&&(k-=G*R,v=Math.cos(k),y=Math.sin(k),"simple"===C.skewType&&(e=Math.tan((G-j)*R),v*=e=Math.sqrt(1+e*e),y*=e,C.skewY&&(e=Math.tan(j*R),i*=e=Math.sqrt(1+e*e),s*=e))),n=-y,o=v;else{if(!(A||P||1!==I||B||z))return void(T[Pt]=(C.xPercent||C.yPercent?"translate("+C.xPercent+"%,"+C.yPercent+"%) translate3d(":"translate3d(")+O+"px,"+L+"px,"+F+"px)"+(1!==M||1!==D?" scale("+M+","+D+")":""));i=o=1,n=s=0}c=1,r=a=l=h=d=p=0,f=B?-1/B:0,m=C.zOrigin,g=1e-6,w=",",x="0",(k=A*R)&&(v=Math.cos(k),l=-(y=Math.sin(k)),d=f*-y,r=i*y,a=s*y,c=v,f*=v,i*=v,s*=v),(k=P*R)&&(e=n*(v=Math.cos(k))+r*(y=Math.sin(k)),b=o*v+a*y,h=c*y,p=f*y,r=n*-y+r*v,a=o*-y+a*v,c*=v,f*=v,n=e,o=b),1!==I&&(r*=I,a*=I,c*=I,f*=I),1!==D&&(n*=D,o*=D,h*=D,p*=D),1!==M&&(i*=M,s*=M,l*=M,d*=M),(m||z)&&(m&&(O+=r*-m,L+=a*-m,F+=c*-m+m),z&&(O+=C.xOrigin-(C.xOrigin*i+C.yOrigin*n)+C.xOffset,L+=C.yOrigin-(C.xOrigin*s+C.yOrigin*o)+C.yOffset),g>O&&O>-g&&(O=x),g>L&&L>-g&&(L=x),g>F&&F>-g&&(F=0)),_=C.xPercent||C.yPercent?"translate("+C.xPercent+"%,"+C.yPercent+"%) matrix3d(":"matrix3d(",_+=(g>i&&i>-g?x:i)+w+(g>s&&s>-g?x:s)+w+(g>l&&l>-g?x:l),_+=w+(g>d&&d>-g?x:d)+w+(g>n&&n>-g?x:n)+w+(g>o&&o>-g?x:o),P||A||1!==I?(_+=w+(g>h&&h>-g?x:h)+w+(g>p&&p>-g?x:p)+w+(g>r&&r>-g?x:r),_+=w+(g>a&&a>-g?x:a)+w+(g>c&&c>-g?x:c)+w+(g>f&&f>-g?x:f)+w):_+=",0,0,0,0,1,0,",_+=O+w+L+w+F+w+(B?1+-F/B:1)+")",T[Pt]=_}};(h=It.prototype).x=h.y=h.z=h.skewX=h.skewY=h.rotation=h.rotationX=h.rotationY=h.zOrigin=h.xPercent=h.yPercent=h.xOffset=h.yOffset=0,h.scaleX=h.scaleY=h.scaleZ=1,Et("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,i,n,s,a,l){if(n._lastParsedTransform===l)return s;n._lastParsedTransform=l;var h,c=l.scale&&"function"==typeof l.scale?l.scale:0;"function"==typeof l[i]&&(h=l[i],l[i]=e),c&&(l.scale=c(v,t));var d,p,u,f,m,y,b,_,w,x=t._gsTransform,S=t.style,E=1e-6,C=kt.length,T=l,k={},P="transformOrigin",A=Gt(t,r,!0,T.parseTransform),M=T.transform&&("function"==typeof T.transform?T.transform(v,g):T.transform);if(A.skewType=T.skewType||A.skewType||o.defaultSkewType,n._transform=A,M&&"string"==typeof M&&Pt)(p=V.style)[Pt]=M,p.display="block",p.position="absolute", 143j.body.appendChild(V),d=Gt(V,null,!1),"simple"===A.skewType&&(d.scaleY*=Math.cos(d.skewX*R)),A.svg&&(y=A.xOrigin,b=A.yOrigin,d.x-=A.xOffset,d.y-=A.yOffset,(T.transformOrigin||T.svgOrigin)&&(M={},Rt(t,at(T.transformOrigin),M,T.svgOrigin,T.smoothOrigin,!0),y=M.xOrigin,b=M.yOrigin,d.x-=M.xOffset-A.xOffset,d.y-=M.yOffset-A.yOffset),(y||b)&&(_=jt(V,!0),d.x-=y-(y*_[0]+b*_[2]),d.y-=b-(y*_[1]+b*_[3]))),j.body.removeChild(V),d.perspective||(d.perspective=A.perspective),null!=T.xPercent&&(d.xPercent=ht(T.xPercent,A.xPercent)),null!=T.yPercent&&(d.yPercent=ht(T.yPercent,A.yPercent));else if("object"==typeof T){if(d={scaleX:ht(null!=T.scaleX?T.scaleX:T.scale,A.scaleX),scaleY:ht(null!=T.scaleY?T.scaleY:T.scale,A.scaleY),scaleZ:ht(T.scaleZ,A.scaleZ),x:ht(T.x,A.x),y:ht(T.y,A.y),z:ht(T.z,A.z),xPercent:ht(T.xPercent,A.xPercent),yPercent:ht(T.yPercent,A.yPercent),perspective:ht(T.transformPerspective,A.perspective)},null!=(m=T.directionalRotation))if("object"==typeof m)for(p in m)T[p]=m[p];else T.rotation=m;"string"==typeof T.x&&-1!==T.x.indexOf("%")&&(d.x=0,d.xPercent=ht(T.x,A.xPercent)),"string"==typeof T.y&&-1!==T.y.indexOf("%")&&(d.y=0,d.yPercent=ht(T.y,A.yPercent)),d.rotation=ct("rotation"in T?T.rotation:"shortRotation"in T?T.shortRotation+"_short":"rotationZ"in T?T.rotationZ:A.rotation,A.rotation,"rotation",k),Dt&&(d.rotationX=ct("rotationX"in T?T.rotationX:"shortRotationX"in T?T.shortRotationX+"_short":A.rotationX||0,A.rotationX,"rotationX",k),d.rotationY=ct("rotationY"
143in T?T.rotationY:"shortRotationY"in T?T.shortRotationY+"_short":A.rotationY||0,A.rotationY,"rotationY",k)),d.skewX=ct(T.skewX,A.skewX),d.skewY=ct(T.skewY,A.skewY)}for(Dt&&null!=T.force3D&&(A.force3D=T.force3D,f=!0),(u=A.force3D||A.z||A.rotationX||A.rotationY||d.z||d.rotationX||d.rotationY||d.perspective)||null==T.scale||(d.scaleZ=1);--C>-1;)((M=d[w=kt[C]]-A[w])>E||-E>M||null!=T[w]||null!=B[w])&&(f=!0,s=new bt(A,w,A[w],M,s),w in k&&(s.e=k[w]),s.xs0=0,s.plugin=a,n._overwriteProps.push(s.n));return M=T.transformOrigin,A.svg&&(M||T.svgOrigin)&&(y=A.xOffset,b=A.yOffset,Rt(t,at(M),d,T.svgOrigin,T.smoothOrigin),s=_t(A,"xOrigin",(x?A:d).xOrigin,d.xOrigin,s,P),s=_t(A,"yOrigin",(x?A:d).yOrigin,d.yOrigin,s,P),(y!==A.xOffset||b!==A.yOffset)&&(s=_t(A,"xOffset",x?y:A.xOffset,A.xOffset,s,P),s=_t(A,"yOffset",x?b:A.yOffset,A.yOffset,s,P)),M="0px 0px"),(M||Dt&&u&&A.zOrigin)&&(Pt?(f=!0,w=Mt,M=(M||J(t,w,r,!1,"50% 50%"))+"",(s=new bt(S,w,0,0,s,-1,P)).b=S[w],s.plugin=a,Dt?(p=A.zOrigin,M=M.split(" "),A.zOrigin=(M.length>2&&(0===p||"0px"!==M[2])?parseFloat(M[2]):p)||0,s.xs0=s.e=M[0]+" "+(M[1]||"50%")+" 0px",(s=new bt(A,"zOrigin",0,0,s,-1,s.n)).b=p,s.xs0=s.e=A.zOrigin):s.xs0=s.e=M):at(M+"",A)),f&&(n._transformType=A.svg&&Tt||!u&&3!==this._transformType?2:3),h&&(l[i]=h),c&&(l.scale=c),s},prefix:!0}
143),Et("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Et("borderRadius",{defaultValue:"0px",parser:function(t,e,i,s,o,a){e=this.format(e);var l,h,c,d,p,u,f,m,g,v,y,b,_,w,x,S,E=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],C=t.style;for(g=parseFloat(t.offsetWidth),v=parseFloat(t.offsetHeight),l=e.split(" "),h=0;h<E.length;h++)this.p.indexOf("border")&&(E[h]=Q(E[h])),-1!==(p=d=J(t,E[h],r,!1,"0px")).indexOf(" ")&&(d=p.split(" "),p=d[0],d=d[1]),u=c=l[h],f=parseFloat(p),b=p.substr((f+"").length),(_="="===u.charAt(1))?(m=parseInt(u.charAt(0)+"1",10),u=u.substr(2),m*=parseFloat(u),y=u.substr((m+"").length-(0>m?1:0))||""):(m=parseFloat(u),y=u.substr((m+"").length)),""===y&&(y=n[i]||b),y!==b&&(w=tt(t,"borderLeft",f,b),x=tt(t,"borderTop",f,b),"%"===y?(p=w/g*100+"%",d=x/v*100+"%"):"em"===y?(p=w/(S=tt(t,"borderLeft",1,"em"))+"em",d=x/S+"em"):(p=w+"px",d=x+"px"),_&&(u=parseFloat(p)+m+y,c=parseFloat(d)+m+y)),o=wt(C,E[h],p+" "+d,u+" "+c,!1,"0px",o);return o},prefix:!0,formatter:gt("0px 0px 0px 0px",!1,!0)}),Et("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,n,s,o){return wt(t.style,i,this.format(J(t,i,r,!1,"0px 0px")),this.format(e),!1,"0px",s)},prefix:!0,formatter:gt("0px 0px",!1,!0)}),Et("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,n,s,o){var a,l,h,c,d,p,u="background-position",f=r||$(t,null),g=this.format((f?m?f.getPropertyValue(u+"-x")+" "+f.getPropertyValue(u+"-y"):f.getPropertyValue(u):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),v=this.format(e);if(-1!==g.indexOf("%")!=(-1!==v.indexOf("%"))&&v.split(",").length<2&&((p=J(t,"backgroundImage").replace(A,""))&&"none"!==p)){for(a=g.split(" "),l=v.split(" "),H.setAttribute("src",p),h=2;--h>-1;)(c=-1!==(g=a[h]).indexOf("%"))!==(-1!==l[h].indexOf("%"))&&(d=0===h?t.offsetWidth-H.width:t.offsetHeight-H.height,a[h]=c?parseFloat(g)/100*d+"px":parseFloat(g)/d*100+"%");g=a.join(" ")}return this.parseComplex(t.style,g,v,s,o)},formatter:at}),Et("backgroundSize",{defaultValue:"0 0",formatter:function(t){return at(-1===(t+="").indexOf(" ")?t+" "+t:t)}}),Et("perspective",{defaultValue:"0px",prefix:!0}
143),Et("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Et("transformStyle",{prefix:!0}),Et("backfaceVisibility",{prefix:!0}),Et("userSelect",{prefix:!0}),Et("margin",{parser:vt("marginTop,marginRight,marginBottom,marginLeft")}),Et("padding",{parser:vt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Et("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,n,s,o){var a,l,h;return 9>m?(l=t.currentStyle,h=8>m?" ":",",a="rect("+l.clipTop+h+l.clipRight+h+l.clipBottom+h+l.clipLeft+")",e=this.format(e).split(",").join(h)):(a=this.format(J(t,this.p,r,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,a,e,s,o)}}),Et("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Et("autoRound,strictUnits",{parser:function(t,e,i,n,r){return r}}),Et("border",{defaultValue:"0px solid #000",parser:function(t,e,i,n,s,o){var a=J(t,"borderTopWidth",r,!1,"0px"),l=this.format(e).split(" "),h=l[0].replace(x,"");return"px"!==h&&(a=parseFloat(a)/tt(t,"borderTopWidth",1,h)+h),this.parseComplex(t.style,this.format(a+" "+J(t,"borderTopStyle",r,!1,"solid")+" "+J(t,"borderTopColor",r,!1,"#000")),l.join(" "),s,o)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(mt)||["#000"])[0]}}),Et("borderWidth",{parser:vt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Et("float,cssFloat,styleFloat",{parser:function(t,e,i,n,r,s){var o=t.style,a="cssFloat"in o?"cssFloat":"styleFloat";return new bt(o,a,0,0,r,-1,i,!1,0,o[a],e)}});var qt=function(t){var e,i=this.t,n=i.filter||J(this.data,"filter")||"",r=this.s+this.c*t|0;100===r&&(-1===n.indexOf("atrix(")&&-1===n.indexOf("radient(")&&-1===n.indexOf("oader(")?(i.removeAttribute("filter"),e=!J(this.data,"filter")):(i.filter=n.replace(C,""),e=!0)),e||(this.xn1&&(i.filter=n=n||"alpha(opacity="+r+")"),-1===n.indexOf("pacity")?0===r&&this.xn1||(i.filter=n+" alpha(opacity="+r+")"):i.filter=n.replace(S,"opacity="+r))};Et("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,n,s,o){var a=parseFloat(J(t,"opacity",r,!1,"1")),l=t.style,h="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+a),h&&1===a&&"hidden"===J(t,"visibility",r)&&0!==e&&(a=0),W?s=new bt(l,"opacity",a,e-a,s):((s=new bt(l,"opacity",100*a,100*(e-a),s)).xn1=h?1:0,l.zoom=1,s.type=2,s.b="alpha(opacity="+s.s+")",s.e="alpha(opacity="+(s.s+s.c)+")",s.data=t,s.plugin=o,s.setRatio=qt),h&&((s=new bt(l,"visibility",0,0,s,-1,null,!1,0,0!==a?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",n._overwriteProps.push(s.n),n._overwriteProps.push(i)),s}});var Xt=function(t,e){e&&(t.removeProperty?(("ms"===e.substr(0,2)||"webkit"===e.substr(0,6))&&(e="-"+e),t.removeProperty(e.replace(k,"-$1").toLowerCase())):t.removeAttribute(e))},Wt=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:Xt(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Et("className",{parser:function(t,e,n,s,o,a,l){var h,c,d,p,u,f=t.getAttribute("class")||"",m=t.style.cssText;if((o=s._classNamePT=new bt(t,n,0,0,o,2)).setRatio=Wt,o.pr=-11,i=!0,o.b=f,c=it(t,r),d=t._gsClassPT){for(p={},u=d.data;u;)p[u.p]=1,u=u._next;d.setRatio(1)}return t._gsClassPT=o,o.e="="!==e.charAt(1)?e:f.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",o.e),h=nt(t,c,it(t),l,p),t.setAttribute("class",f),o.data=h.firstMPT,t.style.cssText=m,o.xfirst=s.parse(t,h.difs,o,a)}});var Yt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,n,r,s,o=this.t.style,a=l.transform.parse;if("all"===this.e)o.cssText="",r=!0;else for(n=(e=this.e.split(" ").join("").split(",")).length;--n>-1;)i=e[n],l[i]&&(l[i].parse===a?r=!0:i="transformOrigin"===i?Mt:l[i].p),Xt(o,i);r&&(Xt(o,Pt),(s=this.t._gsTransform)&&(s.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Et("clearProps",{parser:function(t,e,n,r,s){return(s=new bt(t,n,0,0,s,2)).setRatio=Yt,s.e=e,s.pr=-10,s.data=r._tween,i=!0,s}}),h="bezier,throwProps,physicsProps,physics2D".split(","),xt=h.length;xt--;)Ct(h[xt]);(h=o.prototype)._firstPT=h._lastParsedTransform=h._transform=null,h._onInitTween=function(t,e,a,h){if(!t.nodeType)return!1;this._target=g=t,this._tween=a,this._vars=e,v=h,c=e.autoRound,i=!1,n=e.suffixMap||o.suffixMap,r=$(t,""),s=this._overwriteProps;var u,m,y,b,_,w,x,S,C,T=t.style;
143if(d&&""===T.zIndex&&(("auto"===(u=J(t,"zIndex",r))||""===u)&&this._addLazySet(T,"zIndex",0)),"string"==typeof e&&(b=T.cssText,u=it(t,r),T.cssText=b+";"+e,u=nt(t,u,it(t)).difs,!W&&E.test(e)&&(u.opacity=parseFloat(RegExp.$1)),e=u,T.cssText=b),e.className?this._firstPT=m=l.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=m=this.parse(t,e,null),this._transformType){for(C=3===this._transformType,Pt?p&&(d=!0,""===T.zIndex&&(("auto"===(x=J(t,"zIndex",r))||""===x)&&this._addLazySet(T,"zIndex",0)),f&&this._addLazySet(T,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(C?"visible":"hidden"))):T.zoom=1,y=m;y&&y._next;)y=y._next;S=new bt(t,"transform",0,0,null,2),this._linkCSSP(S,null,y),S.setRatio=Pt?Ht:Vt,S.data=this._transform||Gt(t,r,!0),S.tween=a,S.pr=-1,s.pop()}if(i){for(;m;){for(w=m._next,y=b;y&&y.pr>m.pr;)y=y._next;(m._prev=y?y._prev:_)?m._prev._next=m:b=m,(m._next=y)?y._prev=m:_=m,m=w}this._firstPT=b}return!0},h.parse=function(t,e,i,s){var o,a,h,d,p,u,f,m,y,b,_=t.style;for(o in e){if("function"==typeof(u=e[o])&&(u=u(v,g)),a=l[o])i=a.parse(t,u,o,this,i,s,e);else{if("--"===o.substr(0,2)){this._tween._propLookup[o]=this._addTween.call(this._tween,t.style,"setProperty",$(t).getPropertyValue(o)+"",u+"",o,!1,o);continue}p=J(t,o,r)+"",y="string"==typeof u,"color"===o||"fill"===o||"stroke"===o||-1!==o.indexOf("Color")||y&&T.test(u)?(y||(u=((u=ut(u)).length>3?"rgba(":"rgb(")+u.join(",")+")"),i=wt(_,o,p,u,!0,"transparent",i,0,s)):y&&F.test(u)?i=wt(_,o,p,u,!0,null,i,0,s):(f=(h=parseFloat(p))||0===h?p.substr((h+"").length):"",(""===p||"auto"===p)&&("width"===o||"height"===o?(h=ot(t,o,r),f="px"):"left"===o||"top"===o?(h=et(t,o,r),f="px"):(h="opacity"!==o?0:1,f="")),(b=y&&"="===u.charAt(1))?(d=parseInt(u.charAt(0)+"1",10),u=u.substr(2),d*=parseFloat(u),m=u.replace(x,"")):(d=parseFloat(u),m=y?u.replace(x,""):""),""===m&&(m=o in n?n[o]:f),u=d||0===d?(b?d+h:d)+m:e[o],f!==m&&(""!==m||"lineHeight"===o)&&(d||0===d)&&h&&(h=tt(t,o,h,f),"%"===m?(h/=tt(t,o,100,"%")/100,!0!==e.strictUnits&&(p=h+"%")):"em"===m||"rem"===m||"vw"===m||"vh"===m?h/=tt(t,o,1,m):"px"!==m&&(d=tt(t,o,d,m),m="px"),b&&(d||0===d)&&(u=d+h+m)),b&&(d+=h),!h&&0!==h||!d&&0!==d?void 0!==_[o]&&(u||u+""!="NaN"&&null!=u)?(i=new bt(_,o,d||h||0,0,i,-1,o,!1,0,p,u)).xs0="none"!==u||"display"!==o&&-1===o.indexOf("Style")?u:p:U("invalid "+o+" tween value: "+e[o]):(i=new bt(_,o,h,d-h,i,0,o,!1!==c&&("px"===m||"zIndex"===o),0,p,u)).xs0=m)}s&&i&&!i.plugin&&(i.plugin=s)}return i},h.setRatio=function(t){var e,i,n,r=this._firstPT,s=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;r;){if(e=r.c*t+r.s,r.r?e=Math.round(e):s>e&&e>-s&&(e=0),r.type)if(1===r.type)if(2===(n=r.l))r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2;else if(3===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3;else if(4===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4;else if(5===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4+r.xn4+r.xs5;else{for(i=r.xs0+e+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.t[r.p]=i}else-1===r.type?r.t[r.p]=r.xs0:r.setRatio&&r.setRatio(t);else r.t[r.p]=e+r.xs0;r=r._next}else for(;r;)2!==r.type?r.t[r.p]=r.b:r.setRatio(t),r=r._next;else for(;r;){if(2!==r.type)if(r.r&&-1!==r.type)if(e=Math.round(r.s+r.c),r.type){if(1===r.type){for(n=r.l,i=r.xs0+e+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.t[r.p]=i}}else r.t[r.p]=e+r.xs0;else r.t[r.p]=r.e;else r.setRatio(t);r=r._next}},h._enableTransforms=function(t){this._transform=this._transform||Gt(this._target,r,!0),this._transformType=this._transform.svg&&Tt||!t&&3!==this._transformType?2:3};var Ut=function(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};h._addLazySet=function(t,e,i){var n=this._firstPT=new bt(t,e,0,0,this._firstPT,2);n.e=i,n.setRatio=Ut,n.data=this},h._linkCSSP=function(t,e,i,n){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,n=!0),i?i._next=t:n||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},h._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&t[e.p]===Math.round&&(e.r=1),e=e._next},h._kill=function(e){var i,n,r,s=e;if(e.autoAlpha||e.alpha){for(n in s={},e)s[n]=e[n];s.opacity=1,s.autoAlpha&&(s.visibility=1)}for(e.className&&(i=this._classNamePT)&&((r=i.xfirst)&&r._prev?this._linkCSSP(r._prev,i._next,r._prev._prev):r===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,r._prev),this._classNamePT=null),i=this._firstPT;i;)i.plugin&&i.plugin!==n&&i.plugin._kill&&(i.plugin._kill(e),n=i.plugin),i=i._next;return t.prototype._kill.call(this,s)};
143var Kt=function(t,e,i){var n,r,s,o;if(t.slice)for(r=t.length;--r>-1;)Kt(t[r],e,i);else for(r=(n=t.childNodes).length;--r>-1;)o=(s=n[r]).type,s.style&&(e.push(it(s)),i&&i.push(s)),1!==o&&9!==o&&11!==o||!s.childNodes.length||Kt(s,e,i)};return o.cascadeTo=function(t,i,n){var r,s,o,a,l=e.to(t,i,n),h=[l],c=[],d=[],p=[],u=e._internals.reservedProps;for(t=l._targets||l.target,Kt(t,c,p),l.render(i,!0,!0),Kt(t,d),l.render(0,!0,!0),l._enabled(!0),r=p.length;--r>-1;)if((s=nt(p[r],c[r],d[r])).firstMPT){for(o in s=s.difs,n)u[o]&&(s[o]=n[o]);for(o in a={},s)a[o]=c[r][o];h.push(e.fromTo(p[r],i,a,s))}return h},t.activate([o]),o}),!0),function(){var t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),e=function(t){for(;t;)t.f||t.blob||(t.m=Math.round),t=t._next},i=t.prototype;i._onInitAllProps=function(){for(var t,i,n,r=this._tween,s=r.vars.roundProps.join?r.vars.roundProps:r.vars.roundProps.split(","),o=s.length,a={},l=r._propLookup.roundProps;--o>-1;)a[s[o]]=Math.round;for(o=s.length;--o>-1;)for(t=s[o],i=r._firstPT;i;)n=i._next,i.pg?i.t._mod(a):i.n===t&&(2===i.f&&i.t?e(i.t._firstPT):(this._add(i.t,t,i.s,i.c),n&&(n._prev=i._prev),i._prev?i._prev._next=n:r._firstPT===i&&(r._firstPT=n),i._next=i._prev=null,r._propLookup[t]=l)),i=n;return!1},i._add=function(t,e,i,n){this._addTween(t,e,i,i+n,e,Math.round),this._overwriteProps.push(e)}}(),_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(t,e,i,n){var r,s;if("function"!=typeof t.setAttribute)return!1;for(r in e)"function"==typeof(s=e[r])&&(s=s(n,t)),this._addTween(t,"setAttribute",t.getAttribute(r)+"",s+"",r,!1,r),this._overwriteProps.push(r);return!0}}),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(t,e,i,n){"object"!=typeof e&&(e={rotation:e}),this.finals={};var r,s,o,a,l,h,c=!0===e.useRadians?2*Math.PI:360,d=1e-6;for(r in e)"useRadians"!==r&&("function"==typeof(a=e[r])&&(a=a(n,t)),s=(h=(a+"").split("_"))[0],o=parseFloat("function"!=typeof t[r]?t[r]:t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]()),l=(a=this.finals[r]="string"==typeof s&&"="===s.charAt(1)?o+parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)):Number(s)||0)-o,h.length&&(-1!==(s=h.join("_")).indexOf("short")&&((l%=c)!==l%(c/2)&&(l=0>l?l+c:l-c)),-1!==s.indexOf("_cw")&&0>l?l=(l+9999999999*c)%c-(l/c|0)*c:-1!==s.indexOf("ccw")&&l>0&&(l=(l-9999999999*c)%c-(l/c|0)*c)),(l>d||-d>l)&&(this._addTween(t,r,o,o+l,r),this._overwriteProps.push(r)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],(function(t){var e,i,n,r=_gsScope.GreenSockGlobals||_gsScope,s=r.com.greensock,o=2*Math.PI,a=Math.PI/2,l=s._class,h=function(e,i){var n=l("easing."+e,(function(){}),!0),r=n.prototype=new t;return r.constructor=n,r.getRatio=i,n},c=t.register||function(){},d=function(t,e,i,n,r){var s=l("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new n},!0);return c(s,t),s},p=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},u=function(e,i){var n=l("easing."+e,(function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1}),!0),r=n.prototype=new t;return r.constructor=n,r.getRatio=i,r.config=function(t){return new n(t)},n},f=d("Back",u("BackOut",(function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1})),u("BackIn",(function(t){return t*t*((this._p1+1)*t-this._p1)})),u("BackInOut",(function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)}))),m=l("easing.SlowMo",(function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=!0===i}),!0),g=m.prototype=new t;return g.constructor=m,g.getRatio=function(t){var e=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e}
143,m.ease=new m(.7,.7),g.config=m.config=function(t,e,i){return new m(t,e,i)},e=l("easing.SteppedEase",(function(t,e){t=t||1,this._p1=1/t,this._p2=t+(e?0:1),this._p3=e?1:0}),!0),(g=e.prototype=new t).constructor=e,g.getRatio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},g.config=e.config=function(t,i){return new e(t,i)},i=l("easing.RoughEase",(function(e){for(var i,n,r,s,o,a,l=(e=e||{}).taper||"none",h=[],c=0,d=0|(e.points||20),u=d,f=!1!==e.randomize,m=!0===e.clamp,g=e.template instanceof t?e.template:null,v="number"==typeof e.strength?.4*e.strength:.4;--u>-1;)i=f?Math.random():1/d*u,n=g?g.getRatio(i):i,"none"===l?r=v:"out"===l?r=(s=1-i)*s*v:"in"===l?r=i*i*v:.5>i?r=(s=2*i)*s*.5*v:r=(s=2*(1-i))*s*.5*v,f?n+=Math.random()*r-.5*r:u%2?n+=.5*r:n-=.5*r,m&&(n>1?n=1:0>n&&(n=0)),h[c++]={x:i,y:n};for(h.sort((function(t,e){return t.x-e.x})),a=new p(1,1,null),u=d;--u>-1;)o=h[u],a=new p(o.x,o.y,a);this._prev=new p(0,0,0!==a.t?a:a.next)}),!0),(g=i.prototype=new t).constructor=i,g.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},g.config=function(t){return new i(t)},i.ease=new i,d("Bounce",h("BounceOut",(function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375})),h("BounceIn",(function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)})),h("BounceInOut",(function(t){var e=.5>t;return t=1/2.75>(t=e?1-2*t:2*t-1)?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5}))),d("Circ",h("CircOut",(function(t){return Math.sqrt(1-(t-=1)*t)})),h("CircIn",(function(t){return-(Math.sqrt(1-t*t)-1)})),h("CircInOut",(function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}))),n=function(e,i,n){var r=l("easing."+e,(function(t,e){this._p1=t>=1?t:1,this._p2=(e||n)/(1>t?t:1),this._p3=this._p2/o*(Math.asin(1/this._p1)||0),this._p2=o/this._p2}),!0),s=r.prototype=new t;return s.constructor=r,s.getRatio=i,s.config=function(t,e){return new r(t,e)},r},d("Elastic",n("ElasticOut",(function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1}),.3),n("ElasticIn",(function(t){return-this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)}),.3),n("ElasticInOut",(function(t){return(t*=2)<1?this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)*.5+1}),.45)),d("Expo",h("ExpoOut",(function(t){return 1-Math.pow(2,-10*t)})),h("ExpoIn",(function(t){return Math.pow(2,10*(t-1))-.001})),h("ExpoInOut",(function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))}))),d("Sine",h("SineOut",(function(t){return Math.sin(t*a)})),h("SineIn",(function(t){return 1-Math.cos(t*a)})),h("SineInOut",(function(t){return-.5*(Math.cos(Math.PI*t)-1)}))),l("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),c(r.SlowMo,"SlowMo","ease,"),c(i,"RoughEase","ease,"),c(e,"SteppedEase","ease,"),f}),!0)})),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t,e){"use strict";var i={},n=t.document,r=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!r.TweenLite){var s,o,a,l,h,c=function(t){var e,i=t.split("."),n=r;for(e=0;e<i.length;e++)n[i[e]]=n=n[i[e]]||{};return n},d=c("com.greensock"),p=1e-10,u=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},f=function(){},m=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),g={},v=function(n,s,o,a){this.sc=g[n]?g[n].sc:[],g[n]=this,this.gsClass=null,this.func=o;var l=[];this.check=function(h){for(var d,p,u,f,m=s.length,y=m;--m>-1;)(d=g[s[m]]||new v(s[m],[])).gsClass?(l[m]=d.gsClass,y--):h&&d.sc.push(this);if(0===y&&o){if(u=(p=("com.greensock."+n).split(".")).pop(),f=c(p.join("."))[u]=this.gsClass=o.apply(o,l),a)if(r[u]=i[u]=f,"undefined"!=typeof module&&module.exports)if(n===e)for(m in module.exports=i[e]=f,i)f[m]=i[m];else i[e]&&(i[e][u]=f);else"function"==typeof define&&define.amd&&define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+n.split(".").pop(),[],(function(){return f}));for(m=0;m<this.sc.length;m++)this.sc[m].check()}},this.check(!0)}
143,y=t._gsDefine=function(t,e,i,n){return new v(t,e,i,n)},b=d._class=function(t,e,i){return e=e||function(){},y(t,[],(function(){return e}),i),e};y.globals=r;var _=[0,0,1,1],w=b("easing.Ease",(function(t,e,i,n){this._func=t,this._type=i||0,this._power=n||0,this._params=e?_.concat(e):_}),!0),x=w.map={},S=w.register=function(t,e,i,n){for(var r,s,o,a,l=e.split(","),h=l.length,c=(i||"easeIn,easeOut,easeInOut").split(",");--h>-1;)for(s=l[h],r=n?b("easing."+s,null,!0):d.easing[s]||{},o=c.length;--o>-1;)a=c[o],x[s+"."+a]=x[a+s]=r[a]=t.getRatio?t:t[a]||new t};for((a=w.prototype)._calcEnd=!1,a.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,n=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?n*=n:2===i?n*=n*n:3===i?n*=n*n*n:4===i&&(n*=n*n*n*n),1===e?1-n:2===e?n:.5>t?n/2:1-n/2},o=(s=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;--o>-1;)a=s[o]+",Power"+o,S(new w(null,null,1,o),a,"easeOut",!0),S(new w(null,null,2,o),a,"easeIn"+(0===o?",easeNone":"")),S(new w(null,null,3,o),a,"easeInOut");x.linear=d.easing.Linear.easeIn,x.swing=d.easing.Quad.easeInOut;var E=b("events.EventDispatcher",(function(t){this._listeners={},this._eventTarget=t||this}));(a=E.prototype).addEventListener=function(t,e,i,n,r){r=r||0;var s,o,a=this._listeners[t],c=0;for(this!==l||h||l.wake(),null==a&&(this._listeners[t]=a=[]),o=a.length;--o>-1;)(s=a[o]).c===e&&s.s===i?a.splice(o,1):0===c&&s.pr<r&&(c=o+1);a.splice(c,0,{c:e,s:i,up:n,pr:r})},a.removeEventListener=function(t,e){var i,n=this._listeners[t];if(n)for(i=n.length;--i>-1;)if(n[i].c===e)return void n.splice(i,1)},a.dispatchEvent=function(t){var e,i,n,r=this._listeners[t];if(r)for((e=r.length)>1&&(r=r.slice(0)),i=this._eventTarget;--e>-1;)(n=r[e])&&(n.up?n.c.call(n.s||i,{type:t,target:i}):n.c.call(n.s||i))};var C=t.requestAnimationFrame,T=t.cancelAnimationFrame,k=Date.now||function(){return(new Date).getTime()},P=k();for(o=(s=["ms","moz","webkit","o"]).length;--o>-1&&!C;)C=t[s[o]+"RequestAnimationFrame"],T=t[s[o]+"CancelAnimationFrame"]||t[s[o]+"CancelRequestAnimationFrame"];b("Ticker",(function(t,e){var i,r,s,o,a,c=this,d=k(),u=!(!1===e||!C)&&"auto",m=500,g=33,v=function(t){var e,n,l=k()-P;l>m&&(d+=l-g),P+=l,c.time=(P-d)/1e3,e=c.time-a,(!i||e>0||!0===t)&&(c.frame++,a+=e+(e>=o?.004:o-e),n=!0),!0!==t&&(s=r(v)),n&&c.dispatchEvent("tick")};E.call(c),c.time=c.frame=0,c.tick=function(){v(!0)},c.lagSmoothing=function(t,e){m=t||1/p,g=Math.min(e,m,0)},c.sleep=function(){null!=s&&(u&&T?T(s):clearTimeout(s),r=f,s=null,c===l&&(h=!1))},c.wake=function(t){null!==s?c.sleep():t?d+=-P+(P=k()):c.frame>10&&(P=k()-m+5),r=0===i?f:u&&C?C:function(t){return setTimeout(t,1e3*(a-c.time)+1|0)},c===l&&(h=!0),v(2)},c.fps=function(t){return arguments.length?(o=1/((i=t)||60),a=this.time+o,void c.wake()):i},c.useRAF=function(t){return arguments.length?(c.sleep(),u=t,void c.fps(i)):u},c.fps(t),setTimeout((function(){"auto"===u&&c.frame<5&&"hidden"!==n.visibilityState&&c.useRAF(!1)}),1500)})),(a=d.Ticker.prototype=new d.events.EventDispatcher).constructor=d.Ticker;var A=b("core.Animation",(function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!0===e.immediateRender,this.data=e.data,this._reversed=!0===e.reversed,U){h||l.wake();var i=this.vars.useFrames?Y:U;i.add(this,i._time),this.vars.paused&&this.paused(!0)}}));l=A.ticker=new d.Ticker,(a=A.prototype)._dirty=a._gc=a._initted=a._paused=!1,a._totalTime=a._time=0,a._rawPrevTime=-1,a._next=a._last=a._onUpdate=a._timeline=a.timeline=null,a._paused=!1;var M=function(){h&&k()-P>2e3&&"hidden"!==n.visibilityState&&l.wake();var t=setTimeout(M,2e3);t.unref&&t.unref()};M(),a.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},a.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},a.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},a.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},a.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},a.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)}
143,a.render=function(t,e,i){},a.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},a.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<i+this.totalDuration()/this._timeScale-1e-7},a._enabled=function(t,e){return h||l.wake(),this._gc=!t,this._active=this.isActive(),!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},a._kill=function(t,e){return this._enabled(!1,!1)},a.kill=function(t,e){return this._kill(t,e),this},a._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},a._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},a._callback=function(t){var e=this.vars,i=e[t],n=e[t+"Params"],r=e[t+"Scope"]||e.callbackScope||this;switch(n?n.length:0){case 0:i.call(r);break;case 1:i.call(r,n[0]);break;case 2:i.call(r,n[0],n[1]);break;default:i.apply(r,n)}},a.eventCallback=function(t,e,i,n){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=m(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,r[t+"Scope"]=n),"onUpdate"===t&&(this._onUpdate=e)}return this},a.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},a.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},a.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},a.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},a.totalTime=function(t,e,i){if(h||l.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,r=this._timeline;if(t>n&&!i&&(t=n),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?n-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(L.length&&Z(),this.render(t,e,!1),L.length&&Z())}return this},a.progress=a.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},a.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},a.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},a.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||p,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},a.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},a.paused=function(t){if(!arguments.length)return this._paused;var e,i,n=this._timeline;return t!=this._paused&&n&&(h||t||l.wake(),i=(e=n.rawTime())-this._pauseTime,!t&&n.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&(e=n.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var D=b("core.SimpleTimeline",(function(t){A.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0}));(a=D.prototype=new A).constructor=D,a.kill()._gc=!1,a._first=a._last=a._recent=null,a._sortChildren=!1,a.add=a.insert=function(t,e,
143i,n){var r,s;if(t._startTime=Number(e||0)+t._delay, 144t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),r=this._last,this._sortChildren)for(s=t._startTime;r&&r._startTime>s;)r=r._prev;return r?(t._next=r._next,r._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=r,this._recent=t,this._timeline&&this._uncache(!0),this},a._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},a.render=function(t,e,i){var n,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)n=r._next,(r._active||t>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=n},a.rawTime=function(){return h||l.wake(),this._totalTime};var I=b("TweenLite",(function(e,i,n){if(A.call(this,i,n),this.render=I.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:I.selector(e)||e;var r,s,o,a=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?W[I.defaultOverwrite]:"number"==typeof l?l|0:W[l],(a||e instanceof Array||e.push&&m(e))&&"number"!=typeof e[0])for(this._targets=o=u(e),this._propLookup=[],this._siblings=[],r=0;r<o.length;r++)(s=o[r])?"string"!=typeof s?s.length&&s!==t&&s[0]&&(s[0]===t||s[0].nodeType&&s[0].style&&!s.nodeType)?(o.splice(r--,1),this._targets=o=o.concat(u(s))):(this._siblings[r]=$(s,this,!1),1===l&&this._siblings[r].length>1&&J(s,this,null,1,this._siblings[r])):"string"==typeof(s=o[r--]=I.selector(s))&&o.splice(r+1,1):o.splice(r--,1);else this._propLookup={},this._siblings=$(e,this,!1),1===l&&this._siblings.length>1&&J(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-p,this.render(Math.min(0,-this._delay)))}),!0),O=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)};(a=I.prototype=new A).constructor=I,a.kill()._gc=!1,a.ratio=0,a._firstPT=a._targets=a._overwrittenProps=a._startAt=null,a._notifyPluginsOfEnabled=a._lazy=!1,I.version="1.20.2",I.defaultEase=a._ease=new w(null,null,1,1),I.defaultOverwrite="auto",I.ticker=l,I.autoSleep=120,I.lagSmoothing=function(t,e){l.lagSmoothing(t,e)},I.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(I.selector=i,i(e)):void 0===n?e:n.querySelectorAll?n.querySelectorAll(e):n.getElementById("#"===e.charAt(0)?e.substr(1):e)};var L=[],F={},R=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,z=/[\+-]=-?[\.\d]/,B=function(t){for(var e,i=this._firstPT,n=1e-6;i;)e=i.blob?1===t&&this.end?this.end:t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m(e,this._target||i.t):n>e&&e>-n&&!i.blob&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},N=function(t,e,i,n){var r,s,o,a,l,h,c,d=[],p=0,u="",f=0;for(d.start=t,d.end=e,t=d[0]=t+"",e=d[1]=e+"",i&&(i(d),t=d[0],e=d[1]),d.length=0,r=t.match(R)||[],s=e.match(R)||[],n&&(n._next=null,n.blob=1,d._firstPT=d._applyPT=n),l=s.length,a=0;l>a;a++)c=s[a],u+=(h=e.substr(p,e.indexOf(c,p)-p))||!a?h:",",p+=h.length,f?f=(f+1)%5:"rgba("===h.substr(-5)&&(f=1),c===r[a]||r.length<=a?u+=c:(u&&(d.push(u),u=""),o=parseFloat(r[a]),d.push(o),d._firstPT={_next:d._firstPT,t:d,p:d.length-1,s:o,c:("="===c.charAt(1)?parseInt(c.charAt(0)+"1",10)*parseFloat(c.substr(2)):parseFloat(c)-o)||0,f:0,m:f&&4>f?Math.round:0}),p+=c.length;return(u+=e.substr(p))&&d.push(u),d.setRatio=B,z.test(e)&&(d.end=0),d},j=function(t,e,i,n,r,s,o,a,l){"function"==typeof n&&(n=n(l||0,t));var h=typeof t[e],c="function"!==h?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),d="get"!==i?i:c?o?t[c](o):t[c]():t[e],p="str
144ing"==typeof n&&"="===n.charAt(1),u={t:t,p:e,s:d,f:"function"===h,pg:0,n:r||e,m:s?"function"==typeof s?s:Math.round:0,pr:0,c:p?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-d||0};return("number"!=typeof d||"number"!=typeof n&&!p)&&(o||isNaN(d)||!p&&isNaN(n)||"boolean"==typeof d||"boolean"==typeof n?(u.fp=o,u={t:N(d,p?parseFloat(u.s)+u.c:n,a||I.defaultStringFilter,u),p:"setRatio",s:0,c:1,f:2,pg:0,n:r||e,pr:0,m:0}):(u.s=parseFloat(d),p||(u.c=parseFloat(n)-u.s||0))),u.c?((u._next=this._firstPT)&&(u._next._prev=u),this._firstPT=u,u):void 0},G=I._internals={isArray:m,isSelector:O,lazyTweens:L,blobDif:N},V=I._plugins={},H=G.tweenLookup={},q=0,X=G.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1},W={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},Y=A._rootFramesTimeline=new D,U=A._rootTimeline=new D,K=30,Z=G.lazyRender=function(){var t,e=L.length;for(F={};--e>-1;)(t=L[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);L.length=0};U._startTime=l.time,Y._startTime=l.frame,U._active=Y._active=!0,setTimeout(Z,1),A._updateRoot=I.render=function(){var t,e,i;if(L.length&&Z(),U.render((l.time-U._startTime)*U._timeScale,!1,!1),Y.render((l.frame-Y._startTime)*Y._timeScale,!1,!1),L.length&&Z(),l.frame>=K){for(i in K=l.frame+(parseInt(I.autoSleep,10)||120),H){for(t=(e=H[i].tweens).length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete H[i]}if((!(i=U._first)||i._paused)&&I.autoSleep&&!Y._first&&1===l._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||l.sleep()}}},l.addEventListener("tick",A._updateRoot);var $=function(t,e,i){var n,r,s=t._gsTweenID;if(H[s||(t._gsTweenID=s="t"+q++)]||(H[s]={target:t,tweens:[]}),e&&((n=H[s].tweens)[r=n.length]=e,i))for(;--r>-1;)n[r]===e&&n.splice(r,1);return H[s].tweens},Q=function(t,e,i,n){var r,s,o=t.vars.onOverwrite;return o&&(r=o(t,e,i,n)),(o=I.onOverwrite)&&(s=o(t,e,i,n)),!1!==r&&!1!==s},J=function(t,e,i,n,r){var s,o,a,l;if(1===n||n>=4){for(l=r.length,s=0;l>s;s++)if((a=r[s])!==e)a._gc||a._kill(null,t,e)&&(o=!0);else if(5===n)break;return o}var h,c=e._startTime+p,d=[],u=0,f=0===e._duration;for(s=r.length;--s>-1;)(a=r[s])===e||a._gc||a._paused||(a._timeline!==e._timeline?(h=h||tt(e,0,f),0===tt(a,h,f)&&(d[u++]=a)):a._startTime<=c&&a._startTime+a.totalDuration()/a._timeScale>c&&((f||!a._initted)&&c-a._startTime<=2e-10||(d[u++]=a)));for(s=u;--s>-1;)if(a=d[s],2===n&&a._kill(i,t,e)&&(o=!0),2!==n||!a._firstPT&&a._initted){if(2!==n&&!Q(a,e))continue;a._enabled(!1,!1)&&(o=!0)}return o},tt=function(t,e,i){for(var n=t._timeline,r=n._timeScale,s=t._startTime;n._timeline;){if(s+=n._startTime,r*=n._timeScale,n._paused)return-100;n=n._timeline}return(s/=r)>e?s-e:i&&s===e||!t._initted&&2*p>s-e?p:(s+=t.totalDuration()/t._timeScale/r)>e+p?0:s-e-p};a._init=function(){var t,e,i,n,r,s,o=this.vars,a=this._overwrittenProps,l=this._duration,h=!!o.immediateRender,c=o.ease;if(o.startAt){for(n in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={},o.startAt)r[n]=o.startAt[n];if(r.overwrite=!1,r.immediateRender=!0,r.lazy=h&&!1!==o.lazy,r.startAt=r.delay=null,r.onUpdate=o.onUpdate,r.onUpdateScope=o.onUpdateScope||o.callbackScope||this,this._startAt=I.to(this.target,0,r),h)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(o.runBackwards&&0!==l)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(n in 0!==this._time&&(h=!1),i={},o)X[n]&&"autoCSS"!==n||(i[n]=o[n]);if(i.overwrite=0,i.data="isFromStart",i.lazy=h&&!1!==o.lazy,i.immediateRender=h,this._startAt=I.to(this.target,0,i),h){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=c=c?c instanceof w?c:"function"==typeof c?new w(c,o.easeParams):x[c]||I.defaultEase:I.defaultEase,o.easeParams instanceof Array&&c.config&&(this._ease=c.config.apply(c,o.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(s=this._targets.length,t=0;s>t;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],a?a[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,a,0);if(e&&I._onPluginEvent("_onInitAllProps",this),a&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),o.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=o.onUpdate,this._initted=!0}
144,a._initProps=function(e,i,n,r,s){var o,a,l,h,c,d;if(null==e)return!1;for(o in F[e._gsTweenID]&&Z(),this.vars.css||e.style&&e!==t&&e.nodeType&&V.css&&!1!==this.vars.autoCSS&&function(t,e){var i,n={};for(i in t)X[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!V[i]||V[i]&&V[i]._autoCSS)||(n[i]=t[i],delete t[i]);t.css=n}(this.vars,e),this.vars)if(d=this.vars[o],X[o])d&&(d instanceof Array||d.push&&m(d))&&-1!==d.join("").indexOf("{self}")&&(this.vars[o]=d=this._swapSelfInParams(d,this));else if(V[o]&&(h=new V[o])._onInitTween(e,this.vars[o],this,s)){for(this._firstPT=c={_next:this._firstPT,t:h,p:"setRatio",s:0,c:1,f:1,n:o,pg:1,pr:h._priority,m:0},a=h._overwriteProps.length;--a>-1;)i[h._overwriteProps[a]]=this._firstPT;(h._priority||h._onInitAllProps)&&(l=!0),(h._onDisable||h._onEnable)&&(this._notifyPluginsOfEnabled=!0),c._next&&(c._next._prev=c)}else i[o]=j.call(this,e,o,"get",d,o,0,null,this.vars.stringFilter,s);return r&&this._kill(r,e)?this._initProps(e,i,n,r,s):this._overwrite>1&&this._firstPT&&n.length>1&&J(e,this,i,this._overwrite,n)?(this._kill(i,e),this._initProps(e,i,n,r,s)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(F[e._gsTweenID]=!0),l)},a.render=function(t,e,i){var n,r,s,o,a=this._time,l=this._duration,h=this._rawPrevTime;if(t>=l-1e-7&&t>=0)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(n=!0,r="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0>h||0>=t&&t>=-1e-7||h===p&&"isPause"!==this.data)&&h!==t&&(i=!0,h>p&&(r="onReverseComplete")),this._rawPrevTime=o=!e||t||h===t?t:p);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==a||0===l&&h>0)&&(r="onReverseComplete",n=this._reversed),0>t&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(h!==p||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=o=!e||t||h===t?t:p)),(!this._initted||this._startAt&&this._startAt.progress())&&(i=!0);else if(this._totalTime=this._time=t,this._easeType){var c=t/l,d=this._easeType,u=this._easePower;(1===d||3===d&&c>=.5)&&(c=1-c),3===d&&(c*=2),1===u?c*=c:2===u?c*=c*c:3===u?c*=c*c*c:4===u&&(c*=c*c*c*c),this.ratio=1===d?1-c:2===d?c:.5>t/l?c/2:1-c/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==a||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=a,this._rawPrevTime=h,L.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/l):n&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==a&&t>=0&&(this._active=!0),0===a&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(e||this._callback("onStart"))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(0>t&&this._startAt&&-1e-4!==t&&this._startAt.render(t,e,i),e||(this._time!==a||n||i)&&this._callback("onUpdate")),r&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,e,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===l&&this._rawPrevTime===p&&o!==p&&(this._rawPrevTime=0))}},a._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:I.selector(e)||e;var n,r,s,o,a,l,h,c,d,p=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((m(e)||O(e))&&"number"!=typeof e[0])for(n=e.length;--n>-1;)this._kill(t,e[n],i)&&(l=!0);else{if(this._targets){for(n=this._targets.length;--n>-1;)if(e===this._targets[n]){a=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[n]=t?this._overwrittenProps[n]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(a){if(h=t||a,c=t!==r&&"all"!==r&&t!==a&&("object"!=typeof t||!t._tempKill),i&&(I.onOverwrite||this.vars.onOverwrite)){for(s in h)a[s]&&(d||(d=[]),d.push(s));
144if((d||!t)&&!Q(this,i,e,d))return!1}for(s in h)(o=a[s])&&(p&&(o.f?o.t[o.p](o.s):o.t[o.p]=o.s,l=!0),o.pg&&o.t._kill(h)&&(l=!0),o.pg&&0!==o.t._overwriteProps.length||(o._prev?o._prev._next=o._next:o===this._firstPT&&(this._firstPT=o._next),o._next&&(o._next._prev=o._prev),o._next=o._prev=null),delete a[s]),c&&(r[s]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},a.invalidate=function(){return this._notifyPluginsOfEnabled&&I._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],A.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-p,this.render(Math.min(0,-this._delay))),this},a._enabled=function(t,e){if(h||l.wake(),t&&this._gc){var i,n=this._targets;if(n)for(i=n.length;--i>-1;)this._siblings[i]=$(n[i],this,!0);else this._siblings=$(this.target,this,!0)}return A.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&I._onPluginEvent(t?"_onEnable":"_onDisable",this)},I.to=function(t,e,i){return new I(t,e,i)},I.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new I(t,e,i)},I.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new I(t,e,n)},I.delayedCall=function(t,e,i,n,r){return new I(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},I.set=function(t,e){return new I(t,0,e)},I.getTweensOf=function(t,e){if(null==t)return[];var i,n,r,s;if(t="string"!=typeof t?t:I.selector(t)||t,(m(t)||O(t))&&"number"!=typeof t[0]){for(i=t.length,n=[];--i>-1;)n=n.concat(I.getTweensOf(t[i],e));for(i=n.length;--i>-1;)for(s=n[i],r=i;--r>-1;)s===n[r]&&n.splice(i,1)}else if(t._gsTweenID)for(i=(n=$(t).concat()).length;--i>-1;)(n[i]._gc||e&&!n[i].isActive())&&n.splice(i,1);return n||[]},I.killTweensOf=I.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var n=I.getTweensOf(t,e),r=n.length;--r>-1;)n[r]._kill(i,t)};var et=b("plugins.TweenPlugin",(function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=et.prototype}),!0);if(a=et.prototype,et.version="1.19.0",et.API=2,a._firstPT=null,a._addTween=j,a.setRatio=B,a._kill=function(t){var e,i=this._overwriteProps,n=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;n;)null!=t[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},a._mod=a._roundProps=function(t){for(var e,i=this._firstPT;i;)(e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},I._onPluginEvent=function(t,e){var i,n,r,s,o,a=e._firstPT;if("_onInitAllProps"===t){for(;a;){for(o=a._next,n=r;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:s)?a._prev._next=a:r=a,(a._next=n)?n._prev=a:s=a,a=o}a=e._firstPT=r}for(;a;)a.pg&&"function"==typeof a.t[t]&&a.t[t]()&&(i=!0),a=a._next;return i},et.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===et.API&&(V[(new t[e])._propName]=t[e]);return!0},y.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,n=t.priority||0,r=t.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},o=b("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",(function(){et.call(this,i,n),this._overwriteProps=r||[]}),!0===t.global),a=o.prototype=new et(i);for(e in a.constructor=o,o.API=t.API,s)"function"==typeof t[e]&&(a[s[e]]=t[e]);return o.version=t.version,et.activate([o]),o},s=t._gsQueue){for(o=0;o<s.length;o++)s[o]();for(a in g)g[a].func||t.console.log("GSAP encountered missing dependency: "+a)}h=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax"), 145/*! 146 * ScrollMagic v2.0.8 (2020-08-14) 147 * The javascript library for magical scroll interactions. 148 * (c) 2020 Jan Paepke (@janpaepke) 149 * Project Website: http://scrollmagic.io 150 * 151 * @version 2.0.8 152 * @license Dual licensed under MIT license and GPL. 153 * @author Jan Paepke - [email protected] 154 * 155 * @file ScrollMagic main library. 156 */ 157function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.ScrollMagic=e()}(this,(function(){"use strict";var t=function(){r.log(2,"(COMPATIBILITY NOTICE) -> As of ScrollMagic 2.0.0 you need to use 'new ScrollMagic.Controller()' to create a new controller instance. Use 'new ScrollMagic.Scene()' to instance a scene.")};t.version="2.0.8","undefined"!=typeof window&&window.addEventListener("mousewheel",void 0);var e="data-scrollmagic-pin-spacer";t.Controller=function(n){var s,o,a="ScrollMagic.Controller",l="REVERSE",h="PAUSED",c=i.defaults,d=this,p=r.extend({},c,n),u=[],f=!1,m=0,g=h,v=!0,y=0,b=!0,_=function(){p.refreshInterval>0&&(o=window.setTimeout(k,p.refreshInterval))},w=function(){return p.vertical?r.get.scrollTop(p.container):r.get.scrollLeft(p.container)}
157,x=function(){return p.vertical?r.get.height(p.container):r.get.width(p.container)},S=this._setScrollPos=function(t){p.vertical?v?window.scrollTo(r.get.scrollLeft(),t):p.container.scrollTop=t:v?window.scrollTo(t,r.get.scrollTop()):p.container.scrollLeft=t},E=function(){if(b&&f){var t=r.type.Array(f)?f:u.slice(0);f=!1;var e=m,i=(m=d.scrollPos())-e;0!==i&&(g=i>0?"FORWARD":l),g===l&&t.reverse(),t.forEach((function(e,i){P(3,"updating Scene "+(i+1)+"/"+t.length+" ("+u.length+" total)"),e.update(!0)})),0===t.length&&p.loglevel>=3&&P(3,"updating 0 Scenes (nothing added to controller)")}},C=function(){s=r.rAF(E)},T=function(t){P(3,"event fired causing an update:",t.type),"resize"==t.type&&(y=x(),g=h),!0!==f&&(f=!0,C())},k=function(){if(!v&&y!=x()){var t;try{t=new Event("resize",{bubbles:!1,cancelable:!1})}catch(e){(t=document.createEvent("Event")).initEvent("resize",!1,!1)}p.container.dispatchEvent(t)}u.forEach((function(t,e){t.refresh()})),_()},P=this._log=function(t,e){p.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+a+") ->"),r.log.apply(window,arguments))};this._options=p;var A=function(t){if(t.length<=1)return t;var e=t.slice(0);return e.sort((function(t,e){return t.scrollOffset()>e.scrollOffset()?1:-1})),e};return this.addScene=function(e){if(r.type.Array(e))e.forEach((function(t,e){d.addScene(t)}));else if(e instanceof t.Scene){if(e.controller()!==d)e.addTo(d);else if(u.indexOf(e)<0){for(var i in u.push(e),u=A(u),e.on("shift.controller_sort",(function(){u=A(u)})),p.globalSceneOptions)e[i]&&e[i].call(e,p.globalSceneOptions[i]);P(3,"adding Scene (now "+u.length+" total)")}}else P(1,"ERROR: invalid argument supplied for '.addScene()'");return d},this.removeScene=function(t){if(r.type.Array(t))t.forEach((function(t,e){d.removeScene(t)}));else{var e=u.indexOf(t);e>-1&&(t.off("shift.controller_sort"),u.splice(e,1),P(3,"removing Scene (now "+u.length+" left)"),t.remove())}return d},this.updateScene=function(e,i){return r.type.Array(e)?e.forEach((function(t,e){d.updateScene(t,i)})):i?e.update(!0):!0!==f&&e instanceof t.Scene&&(-1==(f=f||[]).indexOf(e)&&f.push(e),f=A(f),C()),d},this.update=function(t){return T({type:"resize"}),t&&E(),d},this.scrollTo=function(i,n){if(r.type.Number(i))S.call(p.container,i,n);else if(i instanceof t.Scene)i.controller()===d?d.scrollTo(i.scrollOffset(),n):P(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",i);else if(r.type.Function(i))S=i;else{var s=r.get.elements(i)[0];if(s){for(;s.parentNode.hasAttribute(e);)s=s.parentNode;var o=p.vertical?"top":"left",a=r.get.offset(p.container),l=r.get.offset(s);v||(a[o]-=d.scrollPos()),d.scrollTo(l[o]-a[o],n)}else P(2,"scrollTo(): The supplied argument is invalid. Scroll cancelled.",i)}return d},this.scrollPos=function(t){return arguments.length?(r.type.Function(t)?w=t:P(2,"Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'."),d):w.call(d)},this.info=function(t){var e={size:y,vertical:p.vertical,scrollPos:m,scrollDirection:g,container:p.container,isDocument:v};return arguments.length?void 0!==e[t]?e[t]:void P(1,'ERROR: option "'+t+'" is not available'):e},this.loglevel=function(t){return arguments.length?(p.loglevel!=t&&(p.loglevel=t),d):p.loglevel},this.enabled=function(t){return arguments.length?(b!=t&&(b=!!t,d.updateScene(u,!0)),d):b},this.destroy=function(t){window.clearTimeout(o);for(var e=u.length;e--;)u[e].destroy(t);return p.container.removeEventListener("resize",T),p.container.removeEventListener("scroll",T),r.cAF(s),P(3,"destroyed "+a+" (reset: "+(t?"true":"false")+")"),null},function(){for(var e in p)c.hasOwnProperty(e)||(P(2,'WARNING: Unknown option "'+e+'"'),delete p[e]);if(p.container=r.get.elements(p.container)[0],!p.container)throw P(1,"ERROR creating object "+a+": No valid scroll container supplied"),a+" init failed.";(v=p.container===window||p.container===document.body||!document.body.contains(p.container))&&(p.container=window),y=x(),p.container.addEventListener("resize",T),p.container.addEventListener("scroll",T);var i=parseInt(p.refreshInterval,10);p.refreshInterval=r.type.Number(i)?i:c.refreshInterval,_(),P(3,"added new "+a+" controller (v"+t.version+")")}(),d};var i={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};t.Controller.addOption=function(t,e){i.defaults[t]=e},t.Controller.extend=function(e){var i=this;t.Controller=function(){return i.apply(this,arguments),this.$super=r.extend({},this),e.apply(this,arguments)||this},r.extend(t.Controller,i),t.Controller.prototype=i.prototype,t.Controller.prototype.constructor=t.Controller},t.Scene=function(i){var s,o,a="ScrollMagic.Scene",l="BEFORE",h="DURING",c="AFTER",d=n.defaults,p=this,u=r.extend({},d,i),f=l,m=0,g={start:0,end:0},v=0,y=!0,b={};this.on=function(t,e){return r.type.Function(e)?(t=t.trim().split(" ")).forEac
157h((function(t){var i=t.split("."),n=i[0],r=i[1];"*"!=n&&(b[n]||(b[n]=[]),b[n].push({namespace:r||"",callback:e}))})):_(1,"ERROR when calling '.on()': Supplied callback for '"+t+"' is not a valid function!"),p},this.off=function(t,e){return t?((t=t.trim().split(" ")).forEach((function(t,i){var n=t.split("."),r=n[0],s=n[1]||"";("*"===r?Object.keys(b):[r]).forEach((function(t){for(var i=b[t]||[],n=i.length;n--;){var r=i[n];!r||s!==r.namespace&&"*"!==s||e&&e!=r.callback||i.splice(n,1)}i.length||delete b[t]}))})),p):(_(1,"ERROR: Invalid event name supplied."),p)},this.trigger=function(e,i){if(e){var n=e.trim().split("."),r=n[0],s=n[1],o=b[r];_(3,"event fired:",r,i?"->":"",i||""),o&&o.forEach((function(e,n){s&&s!==e.namespace||e.callback.call(p,new t.Event(r,e.namespace,p,i))}))}else _(1,"ERROR: Invalid event name supplied.");return p},p.on("change.internal",(function(t){"loglevel"!==t.what&&"tweenChanges"!==t.what&&("triggerElement"===t.what?C():"reverse"===t.what&&p.update())})).on("shift.internal",(function(t){S(),p.update()}));var _=this._log=function(t,e){u.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+a+") ->"),r.log.apply(window,arguments))};this.addTo=function(e){return e instanceof t.Controller?o!=e&&(o&&o.removeScene(p),o=e,P(),E(!0),C(!0),S(),o.info("container").addEventListener("resize",T),e.addScene(p),p.trigger("add",{controller:o}),_(3,"added "+a+" to controller"),p.update()):_(1,"ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic Controller"),p},this.enabled=function(t){return arguments.length?(y!=t&&(y=!!t,p.update(!0)),p):y},this.remove=function(){if(o){o.info("container").removeEventListener("resize",T);var t=o;o=void 0,t.removeScene(p),p.trigger("remove"),_(3,"removed "+a+" from controller")}return p},this.destroy=function(t){return p.trigger("destroy",{reset:t}),p.remove(),p.off("*.*"),_(3,"destroyed "+a+" (reset: "+(t?"true":"false")+")"),null},this.update=function(t){if(o)if(t)if(o.enabled()&&y){var e,i=o.info("scrollPos");e=u.duration>0?(i-g.start)/(g.end-g.start):i>=g.start?1:0,p.trigger("update",{startPos:g.start,endPos:g.end,scrollPos:i}),p.progress(e)}else w&&f===h&&D(!0);else o.updateScene(p,!1);return p},this.refresh=function(){return E(),C(),p},this.progress=function(t){if(arguments.length){var e=!1,i=f,n=o?o.info("scrollDirection"):"PAUSED",r=u.reverse||t>=m;if(0===u.duration?(e=m!=t,f=0===(m=t<1&&r?0:1)?l:h):t<0&&f!==l&&r?(m=0,f=l,e=!0):t>=0&&t<1&&r?(m=t,f=h,e=!0):t>=1&&f!==c?(m=1,f=c,e=!0):f!==h||r||D(),e){var s={progress:m,state:f,scrollDirection:n},a=f!=i,d=function(t){p.trigger(t,s)};a&&i!==h&&(d("enter"),d(i===l?"start":"end")),d("progress"),a&&f!==h&&(d(f===l?"start":"end"),d("leave"))}return p}return m};var w,x,S=function(){g={start:v+u.offset},o&&u.triggerElement&&(g.start-=o.info("size")*u.triggerHook),g.end=g.start+u.duration},E=function(t){if(s){var e="duration";A(e,s.call(p))&&!t&&(p.trigger("change",{what:e,newval:u[e]}),p.trigger("shift",{reason:e}))}},C=function(t){var i=0,n=u.triggerElement;if(o&&(n||v>0)){if(n)if(n.parentNode){for(var s=o.info(),a=r.get.offset(s.container),l=s.vertical?"top":"left";n.parentNode.hasAttribute(e);)n=n.parentNode;var h=r.get.offset(n);s.isDocument||(a[l]-=o.scrollPos()),i=h[l]-a[l]}else _(2,"WARNING: triggerElement was removed from DOM and will be reset to",void 0),p.triggerElement(void 0);var c=i!=v;v=i,c&&!t&&p.trigger("shift",{reason:"triggerElementPosition"})}},T=function(t){u.triggerHook>0&&p.trigger("shift",{reason:"containerResize"})},k=r.extend(n.validate,{duration:function(t){if(r.type.String(t)&&t.match(/^(\.|\d)*\d+%$/)){var e=parseFloat(t)/100;t=function(){return o?o.info("size")*e:0}}if(r.type.Function(t)){s=t;try{t=parseFloat(s.call(p))}catch(e){t=-1}}if(t=parseFloat(t),!r.type.Number(t)||t<0)throw s?(s=void 0,['Invalid return value of supplied function for option "duration":',t]):['Invalid value for option "duration":',t];return t}}),P=function(t){(t=arguments.length?[t]:Object.keys(k)).forEach((function(t,e){var i;if(k[t])try{i=k[t](u[t])}catch(e){i=d[t];var n=r.type.String(e)?[e]:e;r.type.Array(n)?(n[0]="ERROR: "+n[0],n.unshift(1),_.apply(this,n)):_(1,"ERROR: Problem executing validation callback for option '"+t+"':",e.message)}finally{u[t]=i}}))},A=function(t,e){var i=!1,n=u[t];return u[t]!=e&&(u[t]=e,P(t),i=n!=u[t]),i},M=function(t){p[t]||(p[t]=function(e){return arguments.length?("duration"===t&&(s=void 0),A(t,e)&&(p.trigger("change",{what:t,newval:u[t]}),n.shifts.indexOf(t)>-1&&p.trigger("shift",{reason:t})),p):u[t]})};this.controller=function(){return o},this.state=function(){return f},this.scrollOffset=function(){return g.start},this.triggerPosition=function(){var t=u.offset;return o&&(u.triggerElement?t+=v:t+=o.info("size")*p.triggerHook()),t},p.on("shift.internal",(function(t){var e="duration"===t.reason;(f===c&&e||f===h&&0===u.duration)&&D(),e&&I()})).on("progress.internal",(function(t){D()})).on("add.internal",(function(t){I()})).on("destroy.internal",(function(t){p.removePin(t.reset)}));var D=function(t){if(w&&o){var e=o.info(),i=x.spacer.firstChild;if(t||f!==h){var n={position:x.inFlow?"relative":"absolute",top:0,left:0},s=r.css(i,"position")!=n.position;x.pushFollowers?u.duration>0&&(f===c&&0===parseFloat(r.css(x.spacer,"padding-top"))||f===l&&0===parseFloat(r.css(x.spacer,"padding-bottom")))&&(s=!0):n[e.vertical?"top":"left"]=u.duration*m,r.css(i,n),s&&I()}else{"fixed"!=r.css(i,"position")&&(r.css(i,{position:"fixed"}),I());var a=r.get.offset(x.spacer,!0),d=u.reverse||0===u.duration?e.scrollPos-g.start:Math.round(m*u.duration*10)/10;a[e.vertical?"top":"left"]+=d,r.css(x.spacer.firstChild,{top:a.top,left
157:a.left})}}},I=function(){if(w&&o&&x.inFlow){var t=f===h,e=o.info("vertical"),i=x.spacer.firstChild,n=r.isMarginCollapseType(r.css(x.spacer,"display")),s={};x.relSize.width||x.relSize.autoFullWidth?t?r.css(w,{width:r.get.width(x.spacer)}):r.css(w,{width:"100%"}):(s["min-width"]=r.get.width(e?w:i,!0,!0),s.width=t?s["min-width"]:"auto"),x.relSize.height?t?r.css(w,{height:r.get.height(x.spacer)-(x.pushFollowers?u.duration:0)}):r.css(w,{height:"100%"}):(s["min-height"]=r.get.height(e?i:w,!0,!n),s.height=t?s["min-height"]:"auto"),x.pushFollowers&&(s["padding"+(e?"Top":"Left")]=u.duration*m,s["padding"+(e?"Bottom":"Right")]=u.duration*(1-m)),r.css(x.spacer,s)}},O=function(){o&&w&&f===h&&!o.info("isDocument")&&D()},L=function(){o&&w&&f===h&&((x.relSize.width||x.relSize.autoFullWidth)&&r.get.width(window)!=r.get.width(x.spacer.parentNode)||x.relSize.height&&r.get.height(window)!=r.get.height(x.spacer.parentNode))&&I()},F=function(t){o&&w&&f===h&&!o.info("isDocument")&&(t.preventDefault(),o._setScrollPos(o.info("scrollPos")-((t.wheelDelta||t[o.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-t.detail)))};this.setPin=function(t,i){var n=i&&i.hasOwnProperty("pushFollowers");if(i=r.extend({},{pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"},i),!(t=r.get.elements(t)[0]))return _(1,"ERROR calling method 'setPin()': Invalid pin element supplied."),p;if("fixed"===r.css(t,"position"))return _(1,"ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'."),p;if(w){if(w===t)return p;p.removePin()}var s=(w=t).parentNode.style.display,o=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];w.parentNode.style.display="none";var a="absolute"!=r.css(w,"position"),l=r.css(w,o.concat(["display"])),h=r.css(w,["width","height"]);w.parentNode.style.display=s,!a&&i.pushFollowers&&(_(2,"WARNING: If the pinned element is positioned absolutely pushFollowers will be disabled."),i.pushFollowers=!1),window.setTimeout((function(){w&&0===u.duration&&n&&i.pushFollowers&&_(2,"WARNING: pushFollowers =",!0,"has no effect, when scene duration is 0.")}),0);var c=w.parentNode.insertBefore(document.createElement("div"),w),d=r.extend(l,{position:a?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});if(a||r.extend(d,r.css(w,["width","height"])),r.css(c,d),c.setAttribute(e,""),r.addClass(c,i.spacerClass),x={spacer:c,relSize:{width:"%"===h.width.slice(-1),height:"%"===h.height.slice(-1),autoFullWidth:"auto"===h.width&&a&&r.isMarginCollapseType(l.display)},pushFollowers:i.pushFollowers,inFlow:a},!w.___origStyle){w.___origStyle={};var f=w.style;o.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]).forEach((function(t){w.___origStyle[t]=f[t]||""}))}return x.relSize.width&&r.css(c,{width:h.width}),x.relSize.height&&r.css(c,{height:h.height}),c.appendChild(w),r.css(w,{position:a?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(x.relSize.width||x.relSize.autoFullWidth)&&r.css(w,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",O),window.addEventListener("resize",O),window.addEventListener("resize",L),w.addEventListener("mousewheel",F),w.addEventListener("DOMMouseScroll",F),_(3,"added pin"),D(),p},this.removePin=function(t){if(w){if(f===h&&D(!0),t||!o){var i=x.spacer.firstChild;if(i.hasAttribute(e)){var n=x.spacer.style,s={};["margin","marginLeft","marginRight","marginTop","marginBottom"].forEach((function(t){s[t]=n[t]||""})),r.css(i,s)}x.spacer.parentNode.insertBefore(i,x.spacer),x.spacer.parentNode.removeChild(x.spacer),w.parentNode.hasAttribute(e)||(r.css(w,w.___origStyle),delete w.___origStyle)}window.removeEventListener("scroll",O),window.removeEventListener("resize",O),window.removeEventListener("resize",L),w.removeEventListener("mousewheel",F),w.removeEventListener("DOMMouseScroll",F),w=void 0,_(3,"removed pin (reset: "+(t?"true":"false")+")")}return p};var R,z=[];return p.on("destroy.internal",(function(t){p.removeClassToggle(t.reset)})),this.setClassToggle=function(t,e){var i=r.get.elements(t);return 0!==i.length&&r.type.String(e)?(z.length>
1570&&p.removeClassToggle(),R=e,z=i,p.on("enter.internal_class leave.internal_class",(function(t){var e="enter"===t.type?r.addClass:r.removeClass;z.forEach((function(t,i){e(t,R)}))})),p):(_(1,"ERROR calling method 'setClassToggle()': Invalid "+(0===i.length?"element":"classes")+" supplied."),p)},this.removeClassToggle=function(t){return t&&z.forEach((function(t,e){r.removeClass(t,R)})),p.off("start.internal_class end.internal_class"),R=void 0,z=[],p},function(){for(var t in u)d.hasOwnProperty(t)||(_(2,'WARNING: Unknown option "'+t+'"'),delete u[t]);for(var e in d)M(e);P()}(),p};var n={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(t){if(t=parseFloat(t),!r.type.Number(t))throw['Invalid value for option "offset":',t];return t},triggerElement:function(t){if(t=t||void 0){var e=r.get.elements(t)[0];if(!e||!e.parentNode)throw['Element defined in option "triggerElement" was not found:',t];t=e}return t},triggerHook:function(t){var e={onCenter:.5,onEnter:1,onLeave:0};if(r.type.Number(t))t=Math.max(0,Math.min(parseFloat(t),1));else{if(!(t in e))throw['Invalid value for option "triggerHook": ',t];t=e[t]}return t},reverse:function(t){return!!t},loglevel:function(t){if(t=parseInt(t),!r.type.Number(t)||t<0||t>3)throw['Invalid value for option "loglevel":',t];return t}},shifts:["duration","offset","triggerHook"]};t.Scene.addOption=function(e,i,r,s){e in n.defaults?t._util.log(1,"[static] ScrollMagic.Scene -> Cannot add Scene option '"+e+"', because it already exists."):(n.defaults[e]=i,n.validate[e]=r,s&&n.shifts.push(e))},t.Scene.extend=function(e){var i=this;t.Scene=function(){return i.apply(this,arguments),this.$super=r.extend({},this),e.apply(this,arguments)||this},r.extend(t.Scene,i),t.Scene.prototype=i.prototype,t.Scene.prototype.constructor=t.Scene},t.Event=function(t,e,i,n){for(var r in n=n||{})this[r]=n[r];return this.type=t,this.target=this.currentTarget=i,this.namespace=e||"",this.timeStamp=this.timestamp=Date.now(),this};var r=t._util=function(t){var e,i={},n=function(t){return parseFloat(t)||0},r=function(e){return e.currentStyle?e.currentStyle:t.getComputedStyle(e)},s=function(e,i,s,o){if((i=i===document?t:i)===t)o=!1;else if(!f.DomElement(i))return 0;e=e.charAt(0).toUpperCase()+e.substr(1).toLowerCase();var a=(s?i["offset"+e]||i["outer"+e]:i["client"+e]||i["inner"+e])||0;if(s&&o){var l=r(i);a+="Height"===e?n(l.marginTop)+n(l.marginBottom):n(l.marginLeft)+n(l.marginRight)}return a},o=function(t){return t.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))};i.extend=function(t){for(t=t||{},e=1;e<arguments.length;e++)if(arguments[e])for(var i in arguments[e])arguments[e].hasOwnProperty(i)&&(t[i]=arguments[e][i]);return t},i.isMarginCollapseType=function(t){return["block","flex","list-item","table","-webkit-box"].indexOf(t)>-1};var a=0,l=["ms","moz","webkit","o"],h=t.requestAnimationFrame,c=t.cancelAnimationFrame;for(e=0;!h&&e<l.length;++e)h=t[l[e]+"RequestAnimationFrame"],c=t[l[e]+"CancelAnimationFrame"]||t[l[e]+"CancelRequestAnimationFrame"];h||(h=function(e){var i=(new Date).getTime(),n=Math.max(0,16-(i-a)),r=t.setTimeout((function(){e(i+n)}),n);return a=i+n,r}),c||(c=function(e){t.clearTimeout(e)}),i.rAF=h.bind(t),i.cAF=c.bind(t);var d=["error","warn","log"],p=t.console||{};for(p.log=p.log||function(){},e=0;e<d.length;e++){var u=d[e];p[u]||(p[u]=p.log)}i.log=function(t){(t>d.length||t<=0)&&(t=d.length);var e=new Date,i=("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)+":"+("0"+e.getSeconds()).slice(-2)+":"+("00"+e.getMilliseconds()).slice(-3),n=d[t-1],r=Array.prototype.splice.call(arguments,1),s=Function.prototype.bind.call(p[n],p);r.unshift(i),s.apply(p,r)};var f=i.type=function(t){return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/,"$1").toLowerCase()};f.String=function(t){return"string"===f(t)},f.Function=function(t){return"function"===f(t)},f.Array=function(t){return Array.isArray(t)},f.Number=function(t){return!f.Array(t)&&t-parseFloat(t)+1>=0},f.DomElement=function(t){return"object"==typeof HTMLElement||"function"==typeof HTMLElement?t instanceof HTMLElement||t instanceof SVGElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName};var m=i.get={};return m.elements=function(e){var i=[];if(f.String(e))try{e=document.querySelectorAll(e)}catch(t){return i}if("nodelist"===f(e)||f.Array(e)||e instanceof NodeList)for(var n=0,r=i.length=e.length;n<r;n++){var s=e[n];i[n]=f.DomElement(s)?s:m.elements(s)}else(f.DomElement(e)||e===document||e===t)&&(i=[e]);return i},m.scrollTop=function(e){return e&&"number"==typeof e.scrollTop?e.scrollTop:t.pageYOffset||0},m.scrollLeft=function(e){return e&&"number"==typeof e.scrollLeft?e.scrollLeft:t.pageXOffset||0}
157,m.width=function(t,e,i){return s("width",t,e,i)},m.height=function(t,e,i){return s("height",t,e,i)},m.offset=function(t,e){var i={top:0,left:0};if(t&&t.getBoundingClientRect){var n=t.getBoundingClientRect();i.top=n.top,i.left=n.left,e||(i.top+=m.scrollTop(),i.left+=m.scrollLeft())}return i},i.addClass=function(t,e){e&&(t.classList?t.classList.add(e):t.className+=" "+e)},i.removeClass=function(t,e){e&&(t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," "))},i.css=function(t,e){if(f.String(e))return r(t)[o(e)];if(f.Array(e)){var i={},n=r(t);return e.forEach((function(t,e){i[t]=n[o(t)]})),i}for(var s in e){var a=e[s];a==parseFloat(a)&&(a+="px"),t.style[o(s)]=a}},i}(window||{});return t.Scene.prototype.addIndicators=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling addIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},t.Scene.prototype.removeIndicators=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},t.Scene.prototype.setTween=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},t.Scene.prototype.removeTween=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},t.Scene.prototype.setVelocity=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},t.Scene.prototype.removeVelocity=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},t})), 158/*! 159 * ScrollMagic v2.0.8 (2020-08-14) 160 * The javascript library for magical scroll interactions. 161 * (c) 2020 Jan Paepke (@janpaepke) 162 * Project Website: http://scrollmagic.io 163 * 164 * @version 2.0.8 165 * @license Dual licensed under MIT license and GPL. 166 * @author Jan Paepke - [email protected] 167 * 168 * @file ScrollMagic GSAP Animation Plugin. 169 * 170 * requires: GSAP ~1.14 171 * Powered by the Greensock Animation Platform (GSAP): http://www.greensock.com/js 172 * Greensock License info at http://www.greensock.com/licensing/ 173 */ 174function(t,e){if("function"==typeof define&&define.amd)define(["ScrollMagic","gsap","TweenMax","TimelineMax"],e);else if("object"==typeof exports){var i=require("gsap/dist/gsap")||require("gsap");e(require("scrollmagic"),i,TweenMax||i,TimelineMax||i)}else e(t.ScrollMagic||t.jQuery&&t.jQuery.ScrollMagic,t.gsap,t.gsap||t.TweenMax||t.TweenLite,t.gsap||t.TimelineMax||t.TimelineLite)}(this,(function(t,e,i,n){"use strict";var r="animation.gsap",s=e&&parseFloat(e.version)>=3,o=window.console||{},a=Function.prototype.bind.call(o.error||o.log||function(){},o);t||a("("+r+") -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs."),i||a("("+r+") -> ERROR: TweenLite or TweenMax could not be found. Please make sure GSAP is loaded before ScrollMagic or use an asynchronous loader like requirejs."),t.Scene.addOption("tweenChanges",!1,(function(t){return!!t})),t.Scene.extend((function(){var t,e=this,o=function(){e._log&&(Array.prototype.splice.call(arguments,1,0,"("+r+")","->"),e._log.apply(this,arguments))};e.on("progress.plugin_gsap",(function(){a()})),e.on("destroy.plugin_gsap",(function(t){e.removeTween(t.reset)}));var a=function(){if(t){var i=e.progress(),n=e.state();t.repeat&&-1===t.repeat()?"DURING"===n&&t.paused()?t.play():"DURING"===n||t.paused()||t.pause():i!=t.progress()&&(0===e.duration()?i>0?t.play():t.reverse():e.tweenChanges()&&t.tweenTo?t.tweenTo(i*t.duration()):t.progress(i).pause())}};e.setTween=function(r,l,h){var c;if(arguments.length>1){var d="number"==typeof arguments[1];s?(d||(h=l),h.hasOwnProperty("duration")||(h.duration=d?l:1)):arguments.length<3&&(h=l,l=1),r=s?i.to(r,h):i.to(r,l,h)}try{(c=n&&!s?new n({smoothChildTiming:!0}).add(r):r).pause()}catch(t){return o(1,"ERROR calling method 'setTween()': Supplied argument is not a valid TweenObject"),e}if(t&&e.removeTween(),t=c,r.repeat&&-1===r.repeat()&&(t.repeat(-1),t.yoyo(r.yoyo())),e.tweenChanges()&&!t.tweenTo&&o(2,"WARNING: tweenChanges will only work if the TimelineMax object is available for ScrollMagic."),t&&e.controller()&&e.triggerElement()&&e.loglevel()>=2){var p=i.getTweensOf(e.triggerElement()),u=e.controller().info("vertical");p.forEach((function(t,e){var i=t.vars.css||t.vars;if(u?void 0!==i.top||void 0!==i.bottom:void 0!==i.left||void 0!==i.right)return o(2,"WARNING: Tweening the position of the trigger element affects the scene timing and should be avoided!"),!1}))}if(parseFloat(TweenLite.version)>=1.14)for(var f,m,g=s?"onInterrupt":"onOverwrite",v=t.getChildren?t.getChildren(!0,!0,!1):[t],y=function(){o(2,"WARNING: tween was overwritten by another. To learn how to avoid this issue see here: https://github.com/janpaepke/ScrollMagic/wiki/WARNING:-tween-was-overwritten-by-another")},b=0;b<v.length;b++)f=v[b],m!==y&&(m=f.vars[g],f.vars[g]=function(){m&&m.apply(this,arguments),y.apply(this,arguments)});return o(3,"added tween"),a(),e},e.removeTween=function(i){return t&&(i&&t.progress(0).pause(),t.kill(),t=void 0,o(3,"removed tween (reset: "+(i?"true":"false")+")")),e}}))})), 175/*! 176 * ScrollMagic v2.0.8 (2020-08-14) 177 * The javascript library for magical scroll interactions. 178 * (c) 2020 Jan Paepke (@janpaepke) 179 * Project Website: http://scrollmagic.io 180 * 181 * @version 2.0.8 182 * @license Dual licensed under MIT license and GPL. 183 * @author Jan Paepke - [email protected] 184 * 185 * @file Debug Extension for ScrollMagic. 186 */ 187function(t,e){"function"==typeof define&&define.amd?define(["ScrollMagic"],e):"object"==typeof exports?e(require("scrollmagic")):e(t.ScrollMagic||t.jQuery&&t.jQuery.ScrollMagic)}(this,(function(t){"use strict";var e="debug.addIndicators",i=window.console||{},n=Function.prototype.bind.call(i.error||i.log||function(){},i);t||n("("+e+") -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs.");var r="0.85em",s="9999",o=t._util,a=0;
187t.Scene.extend((function(){var t,e=this;e.addIndicators=function(i){if(!t){var n={name:"",indent:0,parent:void 0,colorStart:"green",colorEnd:"red",colorTrigger:"blue"};i=o.extend({},n,i),a++,t=new l(e,i),e.on("add.plugin_addIndicators",t.add),e.on("remove.plugin_addIndicators",t.remove),e.on("destroy.plugin_addIndicators",e.removeIndicators),e.controller()&&t.add()}return e},e.removeIndicators=function(){return t&&(t.remove(),this.off("*.plugin_addIndicators"),t=void 0),e}})),t.Controller.addOption("addIndicators",!1),t.Controller.extend((function(){var i=this,n=i.info(),r=n.container,s=n.isDocument,a=n.vertical,l={groups:[]};i._indicators&&function(){i._log&&(Array.prototype.splice.call(arguments,1,0,"("+e+")","->"),i._log.apply(this,arguments))}(2,"WARNING: Scene already has a property '_indicators', which will be overwritten by plugin."),this._indicators=l;var h=function(){l.updateBoundsPositions()},c=function(){l.updateTriggerGroupPositions()};return r.addEventListener("resize",c),s||(window.addEventListener("resize",c),window.addEventListener("scroll",c)),r.addEventListener("resize",h),r.addEventListener("scroll",h),this._indicators.updateBoundsPositions=function(t){for(var e,i,n,s=t?[o.extend({},t.triggerGroup,{members:[t]})]:l.groups,h=s.length,c={},d=a?"left":"top",p=a?"width":"height",u=a?o.get.scrollLeft(r)+o.get.width(r)-15:o.get.scrollTop(r)+o.get.height(r)-15;h--;)for(e=(n=s[h]).members.length,i=o.get[p](n.element.firstChild);e--;)c[d]=u-i,o.css(n.members[e].bounds,c)},this._indicators.updateTriggerGroupPositions=function(t){for(var e,n,h,c,d=t?[t]:l.groups,p=d.length,u=s?document.body:r,f=s?{top:0,left:0}:o.get.offset(u,!0),m=a?o.get.width(r)-15:o.get.height(r)-15,g=a?"width":"height",v=a?"Y":"X";p--;)n=(e=d[p]).element,c=(h=e.triggerHook*i.info("size"))>o.get[g](n.firstChild.firstChild)?"translate"+v+"(-100%)":"",o.css(n,{top:f.top+(a?h:m-e.members[0].options.indent),left:f.left+(a?m-e.members[0].options.indent:h)}),o.css(n.firstChild.firstChild,{"-ms-transform":c,"-webkit-transform":c,transform:c})},this._indicators.updateTriggerGroupLabel=function(t){var e="trigger"+(t.members.length>1?"":" "+t.members[0].options.name),i=t.element.firstChild.firstChild;i.textContent!==e&&(i.textContent=e,a&&l.updateBoundsPositions())},this.addScene=function(e){this._options.addIndicators&&e instanceof t.Scene&&e.controller()===i&&e.addIndicators(),this.$super.addScene.apply(this,arguments)},this.destroy=function(){r.removeEventListener("resize",c),s||(window.removeEventListener("resize",c),window.removeEventListener("scroll",c)),r.removeEventListener("resize",h),r.removeEventListener("scroll",h),this.$super.destroy.apply(this,arguments)},i}));var l=function(t,i){var n,r,s=this,l=h.bounds(),c=h.start(i.colorStart),d=h.end(i.colorEnd),p=i.parent&&o.get.elements(i.parent)[0],u=function(){t._log&&(Array.prototype.splice.call(arguments,1,0,"("+e+")","->"),t._log.apply(this,arguments))};i.name=i.name||a,c.firstChild.textContent+=" "+i.name,d.textContent+=" "+i.name,l.appendChild(c),l.appendChild(d),s.options=i,s.bounds=l,s.triggerGroup=void 0,this.add=function(){r=t.controller(),n=r.info("vertical");var e=r.info("isDocument");p||(p=e?document.body:r.info("container")),e||"static"!==o.css(p,"position")||o.css(p,{position:"relative"}),t.on("change.plugin_addIndicators",m),t.on("shift.plugin_addIndicators",f),b(),v(),setTimeout((function(){r._indicators.updateBoundsPositions(s)}),0),u(3,"added indicators")},this.remove=function(){if(s.triggerGroup){if(t.off("change.plugin_addIndicators",m),t.off("shift.plugin_addIndicators",f),s.triggerGroup.members.length>1){var e=s.triggerGroup;e.members.splice(e.members.indexOf(s),1),r._indicators.updateTriggerGroupLabel(e),r._indicators.updateTriggerGroupPositions(e),s.triggerGroup=void 0}else y();g(),u(3,"removed indicators")}};var f=function(){v()},m=function(t){"triggerHook"===t.what&&b()},g=function(){l.parentNode.removeChild(l)},v=function(){var e;l.parentNode!==p&&(e=r.info("vertical"),o.css(c.firstChild,{"border-bottom-width":e?1:0,"border-right-width":e?0:1,bottom:e?-1:i.indent,right:e?i.indent:-1,padding:e?"0 8px":"2px 4px"}),o.css(d,{"border-top-width":e?1:0,"border-left-width":e?0:1,top:e?"100%":"",right:e?i.indent:"",bottom:e?"":i.indent,left:e?"":"100%",padding:e?"0 8px":"2px 4px"}),p.appendChild(l));var s={};s[n?"top":"left"]=t.triggerPosition(),s[n?"height":"width"]=t.duration(),o.css(l,s),o.css(d,{display:t.duration()>
1870?"":"none"})},y=function(){r._indicators.groups.splice(r._indicators.groups.indexOf(s.triggerGroup),1),s.triggerGroup.element.parentNode.removeChild(s.triggerGroup.element),s.triggerGroup=void 0},b=function(){var e=t.triggerHook(),a=1e-4;if(!(s.triggerGroup&&Math.abs(s.triggerGroup.triggerHook-e)<a)){for(var l,c=r._indicators.groups,d=c.length;d--;)if(l=c[d],Math.abs(l.triggerHook-e)<a)return s.triggerGroup&&(1===s.triggerGroup.members.length?y():(s.triggerGroup.members.splice(s.triggerGroup.members.indexOf(s),1),r._indicators.updateTriggerGroupLabel(s.triggerGroup),r._indicators.updateTriggerGroupPositions(s.triggerGroup))),l.members.push(s),s.triggerGroup=l,void r._indicators.updateTriggerGroupLabel(l);if(s.triggerGroup){if(1===s.triggerGroup.members.length)return s.triggerGroup.triggerHook=e,void r._indicators.updateTriggerGroupPositions(s.triggerGroup);s.triggerGroup.members.splice(s.triggerGroup.members.indexOf(s),1),r._indicators.updateTriggerGroupLabel(s.triggerGroup),r._indicators.updateTriggerGroupPositions(s.triggerGroup),s.triggerGroup=void 0}!function(){var e=h.trigger(i.colorTrigger),a={};a[n?"right":"bottom"]=0,a[n?"border-top-width":"border-left-width"]=1,o.css(e.firstChild,a),o.css(e.firstChild.firstChild,{padding:n?"0 8px 3px 8px":"3px 4px"}),document.body.appendChild(e);var l={triggerHook:t.triggerHook(),element:e,members:[s]};r._indicators.groups.push(l),s.triggerGroup=l,r._indicators.updateTriggerGroupLabel(l),r._indicators.updateTriggerGroupPositions(l)}()}}},h={start:function(t){var e=document.createElement("div");e.textContent="start",o.css(e,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:t,"border-color":t});var i=document.createElement("div");return o.css(i,{position:"absolute",overflow:"visible",width:0,height:0}),i.appendChild(e),i},end:function(t){var e=document.createElement("div");return e.textContent="end",o.css(e,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:t,"border-color":t}),e},bounds:function(){var t=document.createElement("div");return o.css(t,{position:"absolute",overflow:"visible","white-space":"nowrap","pointer-events":"none","font-size":r}),t.style.zIndex=s,t},trigger:function(t){var e=document.createElement("div");e.textContent="trigger",o.css(e,{position:"relative"});var i=document.createElement("div");o.css(i,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:t,"border-color":t}),i.appendChild(e);var n=document.createElement("div");return o.css(n,{position:"fixed",overflow:"visible","white-space":"nowrap","pointer-events":"none","font-size":r}),n.style.zIndex=s,n.appendChild(i),n}}})),function(){function t(t){return t&&t.__esModule?t.default:t}function e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}
vendor: 41,033 bytes, lines 187-188
187function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}function l(t,i){return!i||"object"!=((n=i)&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof i?e(t):i;var n}var h;function c(t){return Array.isArray(t)||"[object Object]"=={}.toString.call(t)}function d(t){return!t||"object"!=typeof t&&"function"!=typeof t}h=function t(){var e=[].slice.call(arguments),i=!1;"boolean"==typeof e[0]&&(i=e.shift());var n=e[0];if(d(n))throw new Error("extendee must be an object");for(var r=e.slice(1),s=r.length,o=0;o<s;o++){var a=r[o];for(var l in a)if(Object.prototype.hasOwnProperty.call(a,l)){var h=a[l];if(i&&c(h)){var p=Array.isArray(h)?[]:{};n[l]=t(!0,Object.prototype.hasOwnProperty.call(n,l)&&!d(n[l])?n[l]:p,h)}else n[l]=h}}return n};var p=function(){"use strict";function t(){i(this,t)}return r(t,[{key:"on",value:function(t,e){return this._callbacks=this._callbacks||{},this._callbacks[t]||(this._callbacks[t]=[]),this._callbacks[t].push(e),this}},{key:"emit",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this._callbacks=this._callbacks||{};var r=this._callbacks[t],s=!0,o=!1,a=void 0;if(r)try{for(var l,h=r[Symbol.iterator]();!(s=(l=h.next()).done);s=!0){l.value.apply(this,i)}}catch(t){o=!0,a=t}finally{try{s||null==h.return||h.return()}finally{if(o)throw a}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+t,{args:i})),this}},{key:"makeEvent",value:function(t,e){var i={bubbles:!0,cancelable:!0,detail:e};if("function"==typeof window.CustomEvent)return new CustomEvent(t,i);var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,i.bubbles,i.cancelable,i.detail),n}},{key:"off",value:function(t,e){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var i=this._callbacks[t];if(!i)return this;if(1===arguments.length)return delete this._callbacks[t],this;for(var n=0;n<i.length;n++){if(i[n]===e){i.splice(n,1);break}}return this}}]),t}(),u={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2097152,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,defaultHeaders:!0,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(t,e,i){if(i)return{dzuuid:i.file.upload.uuid,dzchunkindex:i.index,dztotalfilesize:i.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:i.file.upload.totalChunkCount,dzchunkbyteoffset:i.index*this.options.chunkSize}},accept:function(t,e){return e()},chunksUploaded:function(t,e){e()},binaryBody:!1,fallback:function(){var t;this.element.className="".concat(this.element.className," dz-browser-not-supported");var e=!0,i=!1,n=void 0;try{for(var r,s=this.element.getElementsByTagName("div")[Symbol.iterator]();!(e=(r=s.next()).done);e=!0){var o=r.value;if(/(^| )dz-message($| )/.test(o.className)){t=o,o.className="dz-message";break}}}catch(t){i=!0,n=t}finally{try{e||null==s.return||s.return()}finally{if(i)throw n}}t||(t=f.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(t));var a=t.getElementsByTagName("span")[0];return a&&(null!=a.textContent?a.textContent=this.options.dictFallbackMessage:null!=a.innerText&&(a.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(t,e,i,n){var r={srcX:0,srcY:0,srcWidth:t.width,srcHeight:t.height},s=t.width/t.height;null==e&&null==i?(e=r.srcWidth,i=r.srcHeight):null==e?e=i*s:null==i&&(i=e/s);var o=(e=Math.min(e,r.srcWidth))/(i=Math.min(i,r.srcHeight));if(r.srcWidth>e||r.srcHeight>i)if("crop"===n)s>o?(r.srcHeight=t.height,r.srcWidth=r.srcHeight*o):(r.srcWidth=t.width,r.srcHeight=r.srcWidth/o);else{if("contain"!==n)throw new Error("Unknown resizeMethod '".concat(n,"'"));s>o?i=e/s:e=i*s}return r.srcX=(t.width-r.srcWidth)/2,r.srcY=(t.height-r.srcHeight)/2,r.trgWidth=e,r.trgHeight=i,r},transformFile:function(t,e){return(this.options.resizeWidth||this.options.resizeHeight)&&t.type.match(/image.*/)?this.resizeImage(t,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,e):e(t)},previewTemplate:t('<div class="dz-file-preview dz-preview"> <div class="dz-image"><img data-dz-thumbnail=""></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size=""></span></div> <div class="dz-filename"><span data-dz-name=""></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress=""></span> </div> <div class="dz-error-message"><span data-dz-errormessage=""></span></div> <div class="dz-success-mark"> <svg width="54" height="54" fill="#fff"><path d="m10.207 29.793 4.086-4.086a1 1 0 0 1 1.414 0l5.586 5.586a1 1 0 0 0 1.414 0l15.586-15.586a1 1 0 0 1 1.414 0l4.086 4.086a1 1 0 0 1 0 1.414L22.707 42.293a1 1 0 0 1-1.414 0L10.207 31.207a1 1 0 0 1 0-1.414Z"/></svg> </div> <div class="dz-error-mark"> <svg width="54" height="54" fill="#fff"><path d="m26.293 20.293-7.086-7.086a1 1 0 0 0-1.414 0l-4.586 4.586a1 1 0 0 0 0 1.414l7.086 7.086a1 1 0 0 1 0 1.414l-7.086 7.086a1 1 0 0 0 0 1.414l4.586 4.586a1 1 0 0 0 1.414 0l7.086-7.086a1 1 0 0 1 1.414 0l7.086 7.086a1 1 0 0 0 1.414 0l4.586-4.586a1 1 0 0 0 0-1.414l-7.086-7.086a1 1 0 0 1 0-1.414l7.086-7.086a1 1 0 0 0 0-1.414l-4.586-4.586a1 1 0 0 0-1.414 0l-7.086 7.086a1 1 0 0 1-1.414 0Z"/></svg> </div> </div>'),drop:function(t){return this.element.classList.remove("dz-drag-hover")},dragstart:function(t){},dragend:function(t){return this.element.classList.remove("dz-drag-hover")},dragenter:function(t){return this.element.classList.add("dz-drag-hover")},dragover:function(t){return this.element.classList.add("dz-drag-hover")},dragleave:function(t){return this.element.classList.remove("dz-drag-hover")},paste:function(t){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(t){if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){var e=this;t.previewElement=f.createElement(this.options.previewTemplate.trim()),t.previewTemplate=t.previewElement,this.previewsContainer.appendChild(t.previewElement);var i=!0,n=!1,r=void 0;try{for(var s,o=t.previewElement.querySelectorAll("[data-dz-name]")[Symbol.iterator]();!(i=(s=o.next()).done);i=!0){var a=s.value;a.textContent=t.name}}catch(t){n=!0,r=t}finally{try{i||null==o.return||o.return()}finally{if(n)throw r}}var l=!0,h=!1,c=void 0;try{for(var d,p=t.previewElement.querySelectorAll("[data-dz-size]")[Symbol.iterator]();!(l=(d=p.next()).done);l=!0)(a=d.value).innerHTML=this.filesize(t.size)}catch(t){h=!0,c=t}finally{try{l||null==p.return||p.return()}finally{if(h)throw c}}this.options.addRemoveLinks&&(t._removeLink=f.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),t.previewElement.appendChild(t._removeLink));var u=function(i){var n=e;if(i.preventDefault(),i.stopPropagation(),t.status===f.UPLOADING)return f.confirm(e.options.dictCancelUploadConfirmation,(function(){return n.removeFile(t)}));var r=e;return e.options.dictRemoveFileConfirmation?f.confirm(e.options.dictRemoveFileConfirmation,(function(){return r.removeFile(t)})):e.removeFile(t)},m=!0,g=!1,v=void 0;try{for(var y,b=t.previewElement.querySelectorAll("[data-dz-remove]")[Symbol.iterator]();!(m=(y=b.next()).done);m=!0)y.value.addEventListener("click",u)}catch(t){g=!0,v=t}finally{try{m||null==b.return||b.return()}finally{if(g)throw v}}}},removedfile:function(t){return null!=t.previewElement&&null!=t.previewElement.parentNode&&t.previewElement.parentNode.removeChild(t.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(t,e){if(t.previewElement){t.previewElement.classList.remove("dz-file-preview");var i=!0,n=!1,r=void 0;try{for(var s,o=t.previewElement.querySelectorAll("[data-dz-thumbnail]")[Symbol.iterator]();!(i=(s=o.next()).done);i=!0){var a=s.value;a.alt=t.name,a.src=e}}catch(t){n=!0,r=t}finally{try{i||null==o.return||o.return()}finally{if(n)throw r}}return setTimeout((function(){return t.previewElement.classList.add("dz-image-preview")}),1)}},error:function(t,e){if(t.previewElement){t.previewElement.classList.add("dz-error"),"string"!=typeof e&&e.error&&(e=e.error);var i=!0,n=!1,r=void 0;try{for(var s,o=t.previewElement.querySelectorAll("[data-dz-errormessage]")[Symbol.iterator]();!(i=(s=o.next()).done);i=!0)s.value.textContent=e}catch(t){n=!0,r=t}finally{try{i||null==o.return||o.return()}finally{if(n)throw r}}}},errormultiple:function(){},processing:function(t){if(t.previewElement&&(t.previewElement.classList.add("dz-processing"),t._removeLink))return t._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(t,e,i){var n=!0,r=!1,s=void 0;if(t.previewElement)try{for(var o,a=t.previewElement.querySelectorAll("[data-dz-uploadprogress]")[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var l=o.value;"PROGRESS"===l.nodeName?l.value=e:l.style.width="".concat(e,"%")}}catch(t){r=!0,s=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw s}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(t){if(t.previewElement)return t.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(t){return this.emit("error",t,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(t){if(t._removeLink&&(t._removeLink.innerHTML=this.options.dictRemoveFile),t.previewElement)return t.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},f=function(n){"use strict";function o(n,r){var a,c,d,p;if(i(this,o),(a=l(this,(c=o,s(c)).call(this))).element=n,a.clickableElements=[],a.listeners=[],a.files=[],"string"==typeof a.element&&(a.element=document.querySelector(a.element)),!a.element||null==a.element.nodeType)throw new Error("Invalid dropzone element.");if(a.element.dropzone)throw new Error("Dropzone already attached.");o.instances.push(e(a)),a.element.dropzone=e(a);var f=null!=(p=o.optionsForElement(a.element))?p:{};if(a.options=t(h)(!0,{},u,f,null!=r?r:{}),a.options.previewTemplate=a.options.previewTemplate.replace(/\n*/g,""),a.options.forceFallback||!o.isBrowserSupported())return l(a,a.options.fallback.call(e(a)));if(null==a.options.url&&(a.options.url=a.element.getAttribute("action")),!a.options.url)throw new Error("No URL provided.");if(a.options.acceptedFiles&&a.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(a.options.uploadMultiple&&a.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");if(a.options.binaryBody&&a.options.uploadMultiple)throw new Error("You cannot set both: binaryBody and uploadMultiple.");return a.options.acceptedMimeTypes&&(a.options.acceptedFiles=a.options.acceptedMimeTypes,delete a.options.acceptedMimeTypes),null!=a.options.renameFilename&&(a.options.renameFile=function(t){return a.options.renameFilename.call(e(a),t.name,t)}),"string"==typeof a.options.method&&(a.options.method=a.options.method.toUpperCase()),(d=a.getExistingFallback())&&d.parentNode&&d.parentNode.removeChild(d),!1!==a.options.previewsContainer&&(a.options.previewsContainer?a.previewsContainer=o.getElement(a.options.previewsContainer,"previewsContainer"):a.previewsContainer=a.element),a.options.clickable&&(!0===a.options.clickable?a.clickableElements=[a.element]:a.clickableElements=o.getElements(a.options.clickable,"clickable")),a.init(),a}return a(o,n),r(o,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(t){return t.accepted})).map((function(t){return t}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(t){return!t.accepted})).map((function(t){return t}))}},{key:"getFilesWithStatus",value:function(t){return this.files.filter((function(e){return e.status===t})).map((function(t){return t}))}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(o.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(o.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(o.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(t){return t.status===o.UPLOADING||t.status===o.QUEUED})).map((function(t){return t}))}},{key:"init",value:function(){var t=this,e=this,i=this,n=this,r=this,s=this,a=this,l=this,h=this,c=this,d=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(o.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var p=this,u=function(){var t=p;p.hiddenFileInput&&p.hiddenFileInput.parentNode.removeChild(p.hiddenFileInput),p.hiddenFileInput=document.createElement("input"),p.hiddenFileInput.setAttribute("type","file"),(null===p.options.maxFiles||p.options.maxFiles>1)&&p.hiddenFileInput.setAttribute("multiple","multiple"),p.hiddenFileInput.className="dz-hidden-input",null!==p.options.acceptedFiles&&p.hiddenFileInput.setAttribute("accept",p.options.acceptedFiles),null!==p.options.capture&&p.hiddenFileInput.setAttribute("capture",p.options.capture),p.hiddenFileInput.setAttribute("tabindex","-1"),p.hiddenFileInput.style.visibility="hidden",p.hiddenFileInput.style.position="absolute",p.hiddenFileInput.style.top="0",p.hiddenFileInput.style.left="0",p.hiddenFileInput.style.height="0",p.hiddenFileInput.style.width="0",o.getElement(p.options.hiddenInputContainer,"hiddenInputContainer").appendChild(p.hiddenFileInput),p.hiddenFileInput.addEventListener("change",(function(){var e=t.hiddenFileInput.files,i=!0,n=!1,r=void 0;if(e.length)try{for(var s,o=e[Symbol.iterator]();!(i=(s=o.next()).done);i=!0){var a=s.value;t.addFile(a)}}catch(t){n=!0,r=t}finally{try{i||null==o.return||o.return()}finally{if(n)throw r}}t.emit("addedfiles",e),u()}))};u()}this.URL=null!==window.URL?window.URL:window.webkitURL;var f=!0,m=!1,g=void 0;try{for(var v,y=this.events[Symbol.iterator]();!(f=(v=y.next()).done);f=!0){var b=v.value;this.on(b,this.options[b])}}catch(t){m=!0,g=t}finally{try{f||null==y.return||y.return()}finally{if(m)throw g}}this.on("uploadprogress",(function(){return t.updateTotalUploadProgress()})),this.on("removedfile",(function(){return e.updateTotalUploadProgress()})),this.on("canceled",(function(t){return i.emit("complete",t)})),this.on("complete",(function(t){var e=n;if(0===n.getAddedFiles().length&&0===n.getUploadingFiles().length&&0===n.getQueuedFiles().length)return setTimeout((function(){return e.emit("queuecomplete")}),0)}));var _=function(t){if(function(t){if(t.dataTransfer.types)for(var e=0;e<t.dataTransfer.types.length;e++)if("Files"===t.dataTransfer.types[e])return!0;return!1}(t))return t.stopPropagation(),t.preventDefault?t.preventDefault():t.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return r.emit("dragstart",t)},dragenter:function(t){return _(t),s.emit("dragenter",t)},dragover:function(t){var e;try{e=t.dataTransfer.effectAllowed}catch(t){}return t.dataTransfer.dropEffect="move"===e||"linkMove"===e?"move":"copy",_(t),a.emit("dragover",t)},dragleave:function(t){return l.emit("dragleave",t)},drop:function(t){return _(t),h.drop(t)},dragend:function(t){return c.emit("dragend",t)}}}],this.clickableElements.forEach((function(t){var e=d;return d.listeners.push({element:t,events:{click:function(i){return(t!==e.element||i.target===e.element||o.elementInside(i.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})})),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,o.instances.splice(o.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var t,e=0,i=0;if(this.getActiveFiles().length){var n=!0,r=!1,s=void 0;try{for(var o,a=this.getActiveFiles()[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var l=o.value;e+=l.upload.bytesSent,i+=l.upload.total}}catch(t){r=!0,s=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw s}}t=100*e/i}else t=100;return this.emit("totaluploadprogress",t,i,e)}},{key:"_getParamName",value:function(t){return"function"==typeof this.options.paramName?this.options.paramName(t):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(t,"]"):"")}},{key:"_renameFile",value:function(t){return"function"!=typeof this.options.renameFile?t.name:this.options.renameFile(t)}},{key:"getFallbackForm",value:function(){var t,e;if(t=this.getExistingFallback())return t;var i='<div class="dz-fallback">';this.options.dictFallbackText&&(i+="<p>".concat(this.options.dictFallbackText,"</p>")),i+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var n=o.createElement(i);return"FORM"!==this.element.tagName?(e=o.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>'))).appendChild(n):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=e?e:n}},{key:"getExistingFallback",value:function(){var t=function(t){var e=!0,i=!1,n=void 0;try{for(var r,s=t[Symbol.iterator]();!(e=(r=s.next()).done);e=!0){var o=r.value;if(/(^| )fallback($| )/.test(o.className))return o}}catch(t){i=!0,n=t}finally{try{e||null==s.return||s.return()}finally{if(i)throw n}}},e=!0,i=!1,n=void 0;try{for(var r,s=["div","form"][Symbol.iterator]();!(e=(r=s.next()).done);e=!0){var o,a=r.value;if(o=t(this.element.getElementsByTagName(a)))return o}}catch(t){i=!0,n=t}finally{try{e||null==s.return||s.return()}finally{if(i)throw n}}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(t){return function(){var e=[];for(var i in t.events){var n=t.events[i];e.push(t.element.addEventListener(i,n,!1))}return e}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(t){return function(){var e=[];for(var i in t.events){var n=t.events[i];e.push(t.element.removeEventListener(i,n,!1))}return e}()}))}},{key:"disable",value:function(){var t=this;return this.clickableElements.forEach((function(t){return t.classList.remove("dz-clickable")})),this.removeEventListeners(),this.disabled=!0,this.files.map((function(e){return t.cancelUpload(e)}))}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach((function(t){return t.classList.add("dz-clickable")})),this.setupEventListeners()}},{key:"filesize",value:function(t){var e=0,i="b";if(t>0){for(var n=["tb","gb","mb","kb","b"],r=0;r<n.length;r++){var s=n[r];if(t>=Math.pow(this.options.filesizeBase,4-r)/10){e=t/Math.pow(this.options.filesizeBase,4-r),i=s;break}}e=Math.round(10*e)/10}return"<strong>".concat(e,"</strong> ").concat(this.options.dictFileSizeUnits[i])}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(t){if(t.dataTransfer){this.emit("drop",t);for(var e=[],i=0;i<t.dataTransfer.files.length;i++)e[i]=t.dataTransfer.files[i];if(e.length){var n=t.dataTransfer.items;n&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(e)}this.emit("addedfiles",e)}}},{key:"paste",value:function(t){if(null!=(i=function(t){return t.items},null!=(e=null!=t?t.clipboardData:void 0)?i(e):void 0)){var e,i;this.emit("paste",t);var n=t.clipboardData.items;return n.length?this._addFilesFromItems(n):void 0}}},{key:"handleFiles",value:function(t){var e=!0,i=!1,n=void 0;try{for(var r,s=t[Symbol.iterator]();!(e=(r=s.next()).done);e=!0){var o=r.value;this.addFile(o)}}catch(t){i=!0,n=t}finally{try{e||null==s.return||s.return()}finally{if(i)throw n}}}},{key:"_addFilesFromItems",value:function(t){var e=this;return function(){var i=[],n=!0,r=!1,s=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var l,h=o.value;null!=h.webkitGetAsEntry&&(l=h.webkitGetAsEntry())?l.isFile?i.push(e.addFile(h.getAsFile())):l.isDirectory?i.push(e._addFilesFromDirectory(l,l.name)):i.push(void 0):null==h.getAsFile||null!=h.kind&&"file"!==h.kind?i.push(void 0):i.push(e.addFile(h.getAsFile()))}}catch(t){r=!0,s=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw s}}return i}()}},{key:"_addFilesFromDirectory",value:function(t,e){var i=this,n=t.createReader(),r=function(t){return i=function(e){return e.log(t)},null!=(e=console)&&"function"==typeof e.log?i(e):void 0;var e,i},s=function(){var t=i;return n.readEntries((function(i){if(i.length>0){var n=!0,r=!1,o=void 0;try{for(var a,l=i[Symbol.iterator]();!(n=(a=l.next()).done);n=!0){var h=a.value,c=t;h.isFile?h.file((function(t){if(!c.options.ignoreHiddenFiles||"."!==t.name.substring(0,1))return t.fullPath="".concat(e,"/").concat(t.name),c.addFile(t)})):h.isDirectory&&t._addFilesFromDirectory(h,"".concat(e,"/").concat(h.name))}}catch(t){r=!0,o=t}finally{try{n||null==l.return||l.return()}finally{if(r)throw o}}s()}return null}),r)};return s()}},{key:"accept",value:function(t,e){ 188this.options.maxFilesize&&t.size>1048576*this.options.maxFilesize?e(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(t.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):o.isValidFile(t,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(e(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",t)):this.options.accept.call(this,t,e):e(this.options.dictInvalidFileType)}},{key:"addFile",value:function(t){var e=this;t.upload={uuid:o.uuidv4(),progress:0,total:t.size,bytesSent:0,filename:this._renameFile(t)},this.files.push(t),t.status=o.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,(function(i){i?(t.accepted=!1,e._errorProcessing([t],i)):(t.accepted=!0,e.options.autoQueue&&e.enqueueFile(t)),e._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(t){var e=!0,i=!1,n=void 0;try{for(var r,s=t[Symbol.iterator]();!(e=(r=s.next()).done);e=!0){var o=r.value;this.enqueueFile(o)}}catch(t){i=!0,n=t}finally{try{e||null==s.return||s.return()}finally{if(i)throw n}}return null}},{key:"enqueueFile",value:function(t){if(t.status!==o.ADDED||!0!==t.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");var e=this;if(t.status=o.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return e.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(t){if(this.options.createImageThumbnails&&t.type.match(/image.*/)&&t.size<=1048576*this.options.maxThumbnailFilesize){var e=this;return this._thumbnailQueue.push(t),setTimeout((function(){return e._processThumbnailQueue()}),0)}}},{key:"_processThumbnailQueue",value:function(){var t=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var e=this._thumbnailQueue.shift();return this.createThumbnail(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(i){return t.emit("thumbnail",e,i),t._processingThumbnail=!1,t._processThumbnailQueue()}))}}},{key:"removeFile",value:function(t){if(t.status===o.UPLOADING&&this.cancelUpload(t),this.files=m(this.files,t),this.emit("removedfile",t),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(t){null==t&&(t=!1);var e=!0,i=!1,n=void 0;try{for(var r,s=this.files.slice()[Symbol.iterator]();!(e=(r=s.next()).done);e=!0){var a=r.value;(a.status!==o.UPLOADING||t)&&this.removeFile(a)}}catch(t){i=!0,n=t}finally{try{e||null==s.return||s.return()}finally{if(i)throw n}}return null}},{key:"resizeImage",value:function(t,e,i,n,r){var s=this;return this.createThumbnail(t,e,i,n,!0,(function(e,i){if(null==i)return r(t);var n=s.options.resizeMimeType;null==n&&(n=t.type);var a=i.toDataURL(n,s.options.resizeQuality);return"image/jpeg"!==n&&"image/jpg"!==n||(a=y.restore(t.dataURL,a)),r(o.dataURItoBlob(a))}))}},{key:"createThumbnail",value:function(t,e,i,n,r,s){var o=this,a=new FileReader;a.onload=function(){t.dataURL=a.result,"image/svg+xml"!==t.type?o.createThumbnailFromUrl(t,e,i,n,r,s):null!=s&&s(a.result)},a.readAsDataURL(t)}},{key:"displayExistingFile",value:function(t,e,i,n,r){var s=void 0===r||r;if(this.emit("addedfile",t),this.emit("complete",t),s){var o=this;t.dataURL=e,this.createThumbnailFromUrl(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,(function(e){o.emit("thumbnail",t,e),i&&i()}),n)}else this.emit("thumbnail",t,e),i&&i()}},{key:"createThumbnailFromUrl",value:function(t,e,i,n,r,s,o){var a=this,l=document.createElement("img");return o&&(l.crossOrigin=o),r="from-image"!=getComputedStyle(document.body).imageOrientation&&r,l.onload=function(){var o=a,h=function(t){return t(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&r&&(h=function(t){return EXIF.getData(l,(function(){return t(EXIF.getTag(this,"Orientation"))}))}),h((function(r){t.width=l.width,t.height=l.height;var a=o.options.resize.call(o,t,e,i,n),h=document.createElement("canvas"),c=h.getContext("2d");switch(h.width=a.trgWidth,h.height=a.trgHeight,r>4&&(h.width=a.trgHeight,h.height=a.trgWidth),r){case 2:c.translate(h.width,0),c.scale(-1,1);break;case 3:c.translate(h.width,h.height),c.rotate(Math.PI);break;case 4:c.translate(0,h.height),c.scale(1,-1);break;case 5:c.rotate(.5*Math.PI),c.scale(1,-1);break;case 6:c.rotate(.5*Math.PI),c.translate(0,-h.width);break;case 7:c.rotate(.5*Math.PI),c.translate(h.height,-h.width),c.scale(-1,1);break;case 8:c.rotate(-.5*Math.PI),c.translate(-h.height,0)}v(c,l,null!=a.srcX?a.srcX:0,null!=a.srcY?a.srcY:0,a.srcWidth,a.srcHeight,null!=a.trgX?a.trgX:0,null!=a.trgY?a.trgY:0,a.trgWidth,a.trgHeight);var d=h.toDataURL("image/png");if(null!=s)return s(d,h)}))},null!=s&&(l.onerror=s),l.src=t.dataURL}},{key:"processQueue",value:function(){var t=this.options.parallelUploads,e=this.getUploadingFiles().length,i=e;if(!(e>=t)){var n=this.getQueuedFiles();if(n.length>0){if(this.options.uploadMultiple)return this.processFiles(n.slice(0,t-e));for(;i<t;){if(!n.length)return;this.processFile(n.shift()),i++}}}}},{key:"processFile",value:function(t){return this.processFiles([t])}},{key:"processFiles",value:function(t){var e=!0,i=!1,n=void 0;try{for(var r,s=t[Symbol.iterator]();!(e=(r=s.next()).done);e=!0){var a=r.value;a.processing=!0,a.status=o.UPLOADING,this.emit("processing",a)}}catch(t){i=!0,n=t}finally{try{e||null==s.return||s.return()}finally{if(i)throw n}}return this.options.uploadMultiple&&this.emit("processingmultiple",t),this.uploadFiles(t)}},{key:"_getFilesWithXhr",value:function(t){return this.files.filter((function(e){return e.xhr===t})).map((function(t){return t}))}},{key:"cancelUpload",value:function(t){if(t.status===o.UPLOADING){var e=this._getFilesWithXhr(t.xhr),i=!0,n=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)(u=s.value).status=o.CANCELED}catch(t){n=!0,r=t}finally{try{i||null==a.return||a.return()}finally{if(n)throw r}}void 0!==t.xhr&&t.xhr.abort();var l=!0,h=!1,c=void 0;try{for(var d,p=e[Symbol.iterator]();!(l=(d=p.next()).done);l=!0){var u=d.value;this.emit("canceled",u)}}catch(t){h=!0,c=t}finally{try{l||null==p.return||p.return()}finally{if(h)throw c}}this.options.uploadMultiple&&this.emit("canceledmultiple",e)}else t.status!==o.ADDED&&t.status!==o.QUEUED||(t.status=o.CANCELED,this.emit("canceled",t),this.options.uploadMultiple&&this.emit("canceledmultiple",[t]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return"function"==typeof t?t.apply(this,i):t}},{key:"uploadFile",value:function(t){return this.uploadFiles([t])}},{key:"uploadFiles",value:function(t){var e=this;this._transformFiles(t,(function(i){if(e.options.chunking){var n=i[0];t[0].upload.chunked=e.options.chunking&&(e.options.forceChunking||n.size>e.options.chunkSize),t[0].upload.totalChunkCount=Math.ceil(n.size/e.options.chunkSize)}if(t[0].upload.chunked){var r=e,s=e,a=t[0];n=i[0],a.upload.chunks=[];var l=function(){for(var e=0;void 0!==a.upload.chunks[e];)e++;if(!(e>=a.upload.totalChunkCount)){var i=e*r.options.chunkSize,s=Math.min(i+r.options.chunkSize,n.size),l={name:r._getParamName(0),data:n.webkitSlice?n.webkitSlice(i,s):n.slice(i,s),filename:a.upload.filename,chunkIndex:e};a.upload.chunks[e]={file:a,index:e,dataBlock:l,status:o.UPLOADING,progress:0,retries:0},r._uploadData(t,[l])}};if(a.upload.finishedChunkUpload=function(e,i){var n=s,r=!0;e.status=o.SUCCESS,e.dataBlock=null,e.response=e.xhr.responseText,e.responseHeaders=e.xhr.getAllResponseHeaders(),e.xhr=null;for(var h=0;h<a.upload.totalChunkCount;h++){if(void 0===a.upload.chunks[h])return l();a.upload.chunks[h].status!==o.SUCCESS&&(r=!1)}r&&s.options.chunksUploaded(a,(function(){n._finished(t,i,null)}))},e.options.parallelChunkUploads)for(var h=0;h<a.upload.totalChunkCount;h++)l();else l()}else{var c=[];for(h=0;h<t.length;h++)c[h]={name:e._getParamName(h),data:i[h],filename:t[h].upload.filename};e._uploadData(t,c)}}))}},{key:"_getChunk",value:function(t,e){for(var i=0;i<t.upload.totalChunkCount;i++)if(void 0!==t.upload.chunks[i]&&t.upload.chunks[i].xhr===e)return t.upload.chunks[i]}},{key:"_uploadData",value:function(e,i){var n=this,r=this,s=this,o=this,a=new XMLHttpRequest,l=!0,c=!1,d=void 0;try{for(var p=e[Symbol.iterator]();!(l=(E=p.next()).done);l=!0)(y=E.value).xhr=a}catch(t){c=!0,d=t}finally{try{l||null==p.return||p.return()}finally{if(c)throw d}}e[0].upload.chunked&&(e[0].upload.chunks[i[0].chunkIndex].xhr=a);var u=this.resolveOption(this.options.method,e,i),f=this.resolveOption(this.options.url,e,i);a.open(u,f,!0),this.resolveOption(this.options.timeout,e)&&(a.timeout=this.resolveOption(this.options.timeout,e)),a.withCredentials=!!this.options.withCredentials,a.onload=function(t){n._finishedUploading(e,a,t)},a.ontimeout=function(){r._handleUploadError(e,a,"Request timedout after ".concat(r.options.timeout/1e3," seconds"))},a.onerror=function(){s._handleUploadError(e,a)},(null!=a.upload?a.upload:a).onprogress=function(t){return o._updateFilesUploadProgress(e,a,t)};var m=this.options.defaultHeaders?{Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"}:{};for(var g in this.options.binaryBody&&(m["Content-Type"]=e[0].type),this.options.headers&&t(h)(m,this.options.headers),m){var v=m[g];v&&a.setRequestHeader(g,v)}if(this.options.binaryBody){l=!0,c=!1,d=void 0;try{for(p=e[Symbol.iterator]();!(l=(E=p.next()).done);l=!0){var y=E.value;this.emit("sending",y,a)}}catch(t){c=!0,d=t}finally{try{l||null==p.return||p.return()}finally{if(c)throw d}}this.options.uploadMultiple&&this.emit("sendingmultiple",e,a),this.submitRequest(a,null,e)}else{var b=new FormData;if(this.options.params){var _=this.options.params;for(var w in"function"==typeof _&&(_=_.call(this,e,a,e[0].upload.chunked?this._getChunk(e[0],a):null)),_){var x=_[w];if(Array.isArray(x))for(var S=0;S<x.length;S++)b.append(w,x[S]);else b.append(w,x)}}l=!0,c=!1,d=void 0;try{var E;for(p=e[Symbol.iterator]();!(l=(E=p.next()).done);l=!0)y=E.value,this.emit("sending",y,a,b)}catch(t){c=!0,d=t}finally{try{l||null==p.return||p.return()}finally{if(c)throw d}}for(this.options.uploadMultiple&&this.emit("sendingmultiple",e,a,b),this._addFormElementData(b),S=0;S<i.length;S++){var C=i[S];b.append(C.name,C.data,C.filename)}this.submitRequest(a,b,e)}}},{key:"_transformFiles",value:function(t,e){for(var i=this,n=function(n){i.options.transformFile.call(i,t[n],(function(i){r[n]=i,++s===t.length&&e(r)}))},r=[],s=0,o=0;o<t.length;o++)n(o)}},{key:"_addFormElementData",value:function(t){var e=!0,i=!1,n=void 0;if("FORM"===this.element.tagName)try{for(var r=this.element.querySelectorAll("input, textarea, select, button")[Symbol.iterator]();!(e=(l=r.next()).done);e=!0){var s=l.value,o=s.getAttribute("name"),a=s.getAttribute("type");if(a&&(a=a.toLowerCase()),null!=o)if("SELECT"===s.tagName&&s.hasAttribute("multiple")){e=!0,i=!1,n=void 0;try{var l;for(r=s.options[Symbol.iterator]();!(e=(l=r.next()).done);e=!0){var h=l.value;h.selected&&t.append(o,h.value)}}catch(t){i=!0,n=t}finally{try{e||null==r.return||r.return()}finally{if(i)throw n}}}else(!a||"checkbox"!==a&&"radio"!==a||s.checked)&&t.append(o,s.value)}}catch(t){i=!0,n=t}finally{try{e||null==r.return||r.return()}finally{if(i)throw n}}}},{key:"_updateFilesUploadProgress",value:function(t,e,i){var n=!0,r=!1,s=void 0;if(t[0].upload.chunked){c=t[0];var o=this._getChunk(c,e);i?(o.progress=100*i.loaded/i.total,o.total=i.total,o.bytesSent=i.loaded):(o.progress=100,o.bytesSent=o.total),c.upload.progress=0,c.upload.total=0,c.upload.bytesSent=0;for(var a=0;a<c.upload.totalChunkCount;a++)c.upload.chunks[a]&&void 0!==c.upload.chunks[a].progress&&(c.upload.progress+=c.upload.chunks[a].progress,c.upload.total+=c.upload.chunks[a].total,c.upload.bytesSent+=c.upload.chunks[a].bytesSent);c.upload.progress=c.upload.progress/c.upload.totalChunkCount,this.emit("uploadprogress",c,c.upload.progress,c.upload.bytesSent)}else try{for(var l,h=t[Symbol.iterator]();!(n=(l=h.next()).done);n=!0){var c;(c=l.value).upload.total&&c.upload.bytesSent&&c.upload.bytesSent==c.upload.total||(i?(c.upload.progress=100*i.loaded/i.total,c.upload.total=i.total,c.upload.bytesSent=i.loaded):(c.upload.progress=100,c.upload.bytesSent=c.upload.total),this.emit("uploadprogress",c,c.upload.progress,c.upload.bytesSent))}}catch(t){r=!0,s=t}finally{try{n||null==h.return||h.return()}finally{if(r)throw s}}}},{key:"_finishedUploading",value:function(t,e,i){var n;if(t[0].status!==o.CANCELED&&4===e.readyState){if("arraybuffer"!==e.responseType&&"blob"!==e.responseType&&(n=e.responseText,e.getResponseHeader("content-type")&&~e.getResponseHeader("content-type").indexOf("application/json")))try{n=JSON.parse(n)}catch(t){i=t,n="Invalid JSON response from server."}this._updateFilesUploadProgress(t,e),200<=e.status&&e.status<300?t[0].upload.chunked?t[0].upload.finishedChunkUpload(this._getChunk(t[0],e),n):this._finished(t,n,i):this._handleUploadError(t,e,n)}}},{key:"_handleUploadError",value:function(t,e,i){if(t[0].status!==o.CANCELED){if(t[0].upload.chunked&&this.options.retryChunks){var n=this._getChunk(t[0],e);if(n.retries++<this.options.retryChunksLimit)return void this._uploadData(t,[n.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(t,i||this.options.dictResponseError.replace("{{statusCode}}",e.status),e)}}},{key:"submitRequest",value:function(t,e,i){if(1==t.readyState)if(this.options.binaryBody)if(i[0].upload.chunked){var n=this._getChunk(i[0],t);t.send(n.dataBlock.data)}else t.send(i[0]);else t.send(e);else console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.")}},{key:"_finished",value:function(t,e,i){var n=!0,r=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(n=(a=l.next()).done);n=!0){var h=a.value;h.status=o.SUCCESS,this.emit("success",h,e,i),this.emit("complete",h)}}catch(t){r=!0,s=t}finally{try{n||null==l.return||l.return()}finally{if(r)throw s}}if(this.options.uploadMultiple&&(this.emit("successmultiple",t,e,i),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(t,e,i){var n=!0,r=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(n=(a=l.next()).done);n=!0){var h=a.value;h.status=o.ERROR,this.emit("error",h,e,i),this.emit("complete",h)}}catch(t){r=!0,s=t}finally{try{n||null==l.return||l.return()}finally{if(r)throw s}}if(this.options.uploadMultiple&&(this.emit("errormultiple",t,e,i),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=p,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}}]),o}(p);f.initClass(),f.options={},f.optionsForElement=function(t){return t.getAttribute("id")?f.options[g(t.getAttribute("id"))]:void 0},f.instances=[],f.forElement=function(t){if("string"==typeof t&&(t=document.querySelector(t)),null==(null!=t?t.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return t.dropzone},f.discover=function(){var t;if(document.querySelectorAll)t=document.querySelectorAll(".dropzone");else{t=[];var e=function(e){return function(){var i=[],n=!0,r=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var l=o.value;/(^| )dropzone($| )/.test(l.className)?i.push(t.push(l)):i.push(void 0)}}catch(t){r=!0,s=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw s}}return i}()};e(document.getElementsByTagName("div")),e(document.getElementsByTagName("form"))}return function(){var e=[],i=!0,n=!1,r=void 0;try{for(var s,o=t[Symbol.iterator]();!(i=(s=o.next()).done);i=!0){var a=s.value;!1!==f.optionsForElement(a)?e.push(new f(a)):e.push(void 0)}}catch(t){n=!0,r=t}finally{try{i||null==o.return||o.return()}finally{if(n)throw r}}return e}()},f.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],f.isBrowserSupported=function(){var t=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a")){void 0!==f.blacklistedBrowsers&&(f.blockedBrowsers=f.blacklistedBrowsers);var e=!0,i=!1,n=void 0;try{for(var r,s=f.blockedBrowsers[Symbol.iterator]();!(e=(r=s.next()).done);e=!0)r.value.test(navigator.userAgent)&&(t=!1)}catch(t){i=!0,n=t}finally{try{e||null==s.return||s.return()}finally{if(i)throw n}}}else t=!1;else t=!1;return t},f.dataURItoBlob=function(t){for(var e=atob(t.split(",")[1]),i=t.split(",")[0].split(":")[1].split(";
188")[0],n=new ArrayBuffer(e.length),r=new Uint8Array(n),s=0,o=e.length,a=0<=o;a?s<=o:s>=o;a?s++:s--)r[s]=e.charCodeAt(s);return new Blob([n],{type:i})};var m=function(t,e){return t.filter((function(t){return t!==e})).map((function(t){return t}))},g=function(t){return t.replace(/[\-_](\w)/g,(function(t){return t.charAt(1).toUpperCase()}))};f.createElement=function(t){var e=document.createElement("div");return e.innerHTML=t,e.childNodes[0]},f.elementInside=function(t,e){if(t===e)return!0;for(;t=t.parentNode;)if(t===e)return!0;return!1},f.getElement=function(t,e){var i;if("string"==typeof t?i=document.querySelector(t):null!=t.nodeType&&(i=t),null==i)throw new Error("Invalid `".concat(e,"` option provided. Please provide a CSS selector or a plain HTML element."));return i},f.getElements=function(t,e){var i,n;if(t instanceof Array){n=[];try{var r=!0,s=!1,o=void 0;try{for(var a=t[Symbol.iterator]();!(r=(l=a.next()).done);r=!0)i=l.value,n.push(this.getElement(i,e))}catch(t){s=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(s)throw o}}}catch(t){n=null}}else if("string"==typeof t){n=[],r=!0,s=!1,o=void 0;try{var l;for(a=document.querySelectorAll(t)[Symbol.iterator]();!(r=(l=a.next()).done);r=!0)i=l.value,n.push(i)}catch(t){s=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(s)throw o}}}else null!=t.nodeType&&(n=[t]);if(null==n||!n.length)throw new Error("Invalid `".concat(e,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return n},f.confirm=function(t,e,i){return window.confirm(t)?e():null!=i?i():void 0},f.isValidFile=function(t,e){if(!e)return!0;e=e.split(",");var i=t.type,n=i.replace(/\/.*$/,""),r=!0,s=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done);r=!0){var h=a.value;if("."===(h=h.trim()).charAt(0)){if(-1!==t.name.toLowerCase().indexOf(h.toLowerCase(),t.name.length-h.length))return!0}else if(/\/\*$/.test(h)){if(n===h.replace(/\/.*$/,""))return!0}else if(i===h)return!0}}catch(t){s=!0,o=t}finally{try{r||null==l.return||l.return()}finally{if(s)throw o}}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(t){return this.each((function(){return new f(this,t)}))}),f.ADDED="added",f.QUEUED="queued",f.ACCEPTED=f.QUEUED,f.UPLOADING="uploading",f.PROCESSING=f.UPLOADING,f.CANCELED="canceled",f.ERROR="error",f.SUCCESS="success";var v=function(t,e,i,n,r,s,o,a,l,h){var c=function(t){t.naturalWidth;var e=t.naturalHeight,i=document.createElement("canvas");i.width=1,i.height=e;var n=i.getContext("2d");n.drawImage(t,0,0);for(var r=n.getImageData(1,0,1,e).data,s=0,o=e,a=e;a>s;)0===r[4*(a-1)+3]?o=a:s=a,a=o+s>>1;var l=a/e;return 0===l?1:l}(e);return t.drawImage(e,i,n,r,s,o,a,l,h/c)},y=function(){"use strict";function t(){i(this,t)}return r(t,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(t){for(var e="",i=void 0,n=void 0,r="",s=void 0,o=void 0,a=void 0,l="",h=0;s=(i=t[h++])>>2,o=(3&i)<<4|(n=t[h++])>>4,a=(15&n)<<2|(r=t[h++])>>6,l=63&r,isNaN(n)?a=l=64:isNaN(r)&&(l=64),e=e+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(l),i=n=r="",s=o=a=l="",h<t.length;);return e}},{key:"restore",value:function(t,e){if(!t.match("data:image/jpeg;base64,"))return e;var i=this.decode64(t.replace("data:image/jpeg;base64,","")),n=this.slice2Segments(i),r=this.exifManipulation(e,n);return"data:image/jpeg;base64,".concat(this.encode64(r))}},{key:"exifManipulation",value:function(t,e){var i=this.getExifArray(e),n=this.insertExif(t,i);return new Uint8Array(n)}},{key:"getExifArray",value:function(t){for(var e=void 0,i=0;i<t.length;){if(255===(e=t[i])[0]&225===e[1])return e;i++}return[]}},{key:"insertExif",value:function(t,e){var i=t.replace("data:image/jpeg;base64,",""),n=this.decode64(i),r=n.indexOf(255,3),s=n.slice(0,r),o=n.slice(r),a=s;return(a=a.concat(e)).concat(o)}},{key:"slice2Segments",value:function(t){for(var e=0,i=[];!(255===t[e]&218===t[e+1]);){if(255===t[e]&216===t[e+1])e+=2;else{var n=e+(256*t[e+2]+t[e+3])+2,r=t.slice(e,n);i.push(r),e=n}if(e>t.length)break}return i}},{key:"decode64",value:function(t){var e=void 0,i=void 0,n="",r=void 0,s=void 0,o="",a=0,l=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(t)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");e=this.KEY_STR.indexOf(t.charAt(a++))<<2|(r=this.KEY_STR.indexOf(t.charAt(a++)))>>4,i=(15&r)<<4|(s=this.KEY_STR.indexOf(t.charAt(a++)))>>2,n=(3&s)<<6|(o=this.KEY_STR.indexOf(t.charAt(a++))),l.push(e),64!==s&&l.push(i),64!==o&&l.push(n),e=i=n="",r=s=o="",a<t.length;);return l}}]),t}();y.initClass(),window.Dropzone=f}(),(()=>{"use strict";
vendor: 4,550 bytes, line 188
188var t={90:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(645),r=i.n(n)()((function(t){return t[1]}));r.push([t.id,':host{--divider-width: 1px;--divider-color: #fff;--divider-shadow: none;--default-handle-width: 50px;--default-handle-color: #fff;--default-handle-opacity: 1;--default-handle-shadow: none;position:relative;display:inline-block;overflow:hidden;line-height:0;direction:ltr}@media screen and (-webkit-min-device-pixel-ratio: 0)and (min-resolution: 0.001dpcm){:host{outline-offset:1px}}::slotted(*){-webkit-user-drag:none;-khtml-user-drag:none;-moz-user-drag:none;-o-user-drag:none;user-drag:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.first{position:absolute;left:0;top:0;line-height:normal;font-size:100%;max-height:100%;height:100%;width:100%;--exposure: 50%;--transition-time: 0ms;transform:translateX(calc(var(--exposure) * -1));transition:transform var(--transition-time)}.first .first-overlay-container{position:relative;transform:translateX(var(--exposure));transition:transform var(--transition-time);height:100%}.first .first-overlay{overflow:hidden;height:100%}.first.focused{will-change:transform}.first.focused .first-overlay-container{will-change:transform}@media not all and (min-resolution: 0.001dpcm){@supports(-webkit-appearance: none){.first.focused{will-change:auto}.first.focused .first-overlay-container{will-change:auto}}}.second{position:relative}.handle-container{transform:translateX(50%);position:absolute;top:0;right:0;height:100%;display:flex;align-items:flex-end;justify-content:center;flex-direction:column}.divider{position:absolute;height:100%;width:100%;left:0;top:0;display:flex;align-items:center;justify-content:center;flex-direction:column}.divider:after{content:" ";display:block;height:100%;border-left-width:var(--divider-width);border-left-style:solid;border-left-color:var(--divider-color);box-shadow:var(--divider-shadow)}.handle{pointer-events:none;box-sizing:border-box;margin-left:1px;transform:translateX(-0.5px)}.default-handle{width:var(--default-handle-width);opacity:var(--default-handle-opacity);transition:all 1s;filter:drop-shadow(var(--default-handle-shadow))}.default-handle path{stroke:var(--default-handle-color)}.vertical.first{transform:translateY(calc(var(--exposure) * -1))}.vertical.first .first-overlay-container{transform:translateY(var(--exposure))}.vertical .handle-container{transform:translateY(50%);height:auto;top:unset;bottom:0;width:100%;left:0;flex-direction:row}.vertical .divider:after{height:1px;width:100%;border-top-width:var(--divider-width);border-top-style:solid;border-top-color:var(--divider-color);border-left:0}.vertical .handle{transform:translateX(-0.5px) rotate(90deg)}',""]);const s=r},645:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=t(e);return e[2]?"@media ".concat(e[2]," {").concat(i,"}"):i})).join("")},e.i=function(t,i,n){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(n)for(var s=0;s<this.length;s++){var o=this[s][0];null!=o&&(r[o]=!0)}for(var a=0;a<t.length;a++){var l=[].concat(t[a]);n&&r[l[0]]||(i&&(l[2]?l[2]="".concat(i," and ").concat(l[2]):l[2]=i),e.push(l))}},e}}},e={};function i(n){var r=e[n];if(void 0!==r)return r.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,i),s.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=i(90);const e="rendered",n=document.createElement("template");n.innerHTML='<div class="second" id="second"> <slot name="second"><slot name="before"></slot></slot> </div> <div class="first" id="first"> <div class="first-overlay"> <div class="first-overlay-container" id="firstImageContainer"> <slot name="first"><slot name="after"></slot></slot> </div> </div> <div class="handle-container"> <div class="divider"></div> <div class="handle"> <slot name="handle"> <svg xmlns="http://www.w3.org/2000/svg" class="default-handle" viewBox="-8 -3 16 6"> <path d="M -5 -2 L -7 0 L -5 2 M 5 -2 L 7 0 L 5 2" fill="none" vector-effect="non-scaling-stroke"/> </svg> </slot> </div> </div> </div> ';const r={ArrowLeft:-1,ArrowRight:1},s=["horizontal","vertical"],o=t=>({x:t.touches[0].pageX,y:t.touches[0].pageY}),a=t=>({x:t.pageX,y:t.pageY});class l extends HTMLElement{constructor(){super(),this.exposure=this.hasAttribute("value")?parseFloat(this.getAttribute("value")):
18850,this.slideOnHover=!1,this.slideDirection="horizontal",this.keyboard="enabled",this.isMouseDown=!1,this.isFocused=!1,this.onMouseMove=t=>{if(this.isMouseDown||this.slideOnHover){const e=a(t);this.slideToPage(e)}},this.bodyUserSelectStyle="",this.onMouseDown=t=>{if(this.slideOnHover)return;window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onWindowMouseUp),this.isMouseDown=!0,this.enableTransition();const e=a(t);this.slideToPage(e),this.focus(),this.bodyUserSelectStyle=window.document.body.style.userSelect,window.document.body.style.userSelect="none"},this.onWindowMouseUp=()=>{this.isMouseDown=!1,window.document.body.style.userSelect=this.bodyUserSelectStyle,window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onWindowMouseUp)},this.isTouchComparing=!1,this.hasTouchMoved=!1,this.onTouchStart=t=>{this.touchStartPoint=o(t),this.isFocused&&(this.enableTransition(),this.slideToPage(this.touchStartPoint))},this.onTouchMove=t=>{const e=o(t);if(this.isTouchComparing)return this.slideToPage(e),t.preventDefault(),!1;if(!this.hasTouchMoved){const i=Math.abs(e.y-this.touchStartPoint.y),n=Math.abs(e.x-this.touchStartPoint.x);if("horizontal"===this.slideDirection&&i<n||"vertical"===this.slideDirection&&i>n)return this.isTouchComparing=!0,this.focus(),this.slideToPage(e),t.preventDefault(),!1;this.hasTouchMoved=!0}},this.onTouchEnd=()=>{this.isTouchComparing=!1,this.hasTouchMoved=!1},this.onBlur=()=>{this.stopSlideAnimation(),this.isFocused=!1,this.firstElement.classList.remove("focused")},this.onFocus=()=>{this.isFocused=!0,this.firstElement.classList.add("focused")},this.onKeyDown=t=>{if("disabled"===this.keyboard)return;if(this.isAnimating)return;this.isAnimating=!0;const e=t.key;void 0!==r[e]&&this.startSlideAnimation(r[e])},this.onKeyUp=t=>
188{"disabled"!==this.keyboard&&this.isAnimating&&void 0!==r[t.key]&&this.stopSlideAnimation()},this.resetDimensions=()=>{this.imageWidth=this.offsetWidth,this.imageHeight=this.offsetHeight};const e=this.attachShadow({mode:"open"}),i=document.createElement("style");i.innerHTML=t.Z,this.getAttribute("nonce")&&i.setAttribute("nonce",this.getAttribute("nonce")),e.appendChild(i),e.appendChild(n.content.cloneNode(!0)),this.firstElement=e.getElementById("first"),this.firstImageContainerElement=e.getElementById("firstImageContainer"),this.secondElement=e.getElementById("second")}get value(){return this.exposure}set value(t){const e=parseFloat(t);e!==this.exposure&&(this.exposure=e,this.enableTransition(),this.setExposure())}get hover(){return this.slideOnHover}set hover(t){this.slideOnHover="false"!==t.toString().toLowerCase(),this.removeEventListener("mousemove",this.onMouseMove),this.slideOnHover&&this.addEventListener("mousemove",this.onMouseMove)}get direction(){return this.slideDirection}set direction(t){this.slideDirection=t.toString().toLowerCase(),this.slide(0),this.firstElement.classList.remove(...s),s.includes(this.slideDirection)&&this.firstElement.classList.add(this.slideDirection)}static get observedAttributes(){return["hover","direction"]}connectedCallback(){this.hasAttribute("tabindex")||(this.tabIndex=0),this.addEventListener("dragstart",(t=>(t.preventDefault(),!1))),new ResizeObserver(this.resetDimensions).observe(this),this.setExposure(0),this.keyboard=this.hasAttribute("keyboard")&&"disabled"===this.getAttribute("keyboard")?"disabled":"enabled",this.addEventListener("keydown",this.onKeyDown),this.addEventListener("keyup",this.onKeyUp),this.addEventListener("focus",this.onFocus),this.addEventListener("blur",this.onBlur),this.addEventListener("touchstart",this.onTouchStart,{passive:!0}),this.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.addEventListener("touchend",this.onTouchEnd),this.addEventListener("mousedown",this.onMouseDown),this.hover=!!this.hasAttribute("hover")&&this.getAttribute("hover"),this.direction=this.hasAttribute("direction")?this.getAttribute("direction"):"horizontal",this.resetDimensions(),this.classList.contains(e)||this.classList.add(e),this.querySelectorAll('[slot="before"], [slot="after"]').length>0&&console.warn('<img-comparison-slider>: slot names "before" and "after" are deprecated and soon won\'t be supported. Please use slot="first" instead of slot="after", and slot="second" instead of slot="before".')}disconnectedCallback(){this.transitionTimer&&window.clearTimeout(this.transitionTimer)}attributeChangedCallback(t,e,i){"hover"===t&&(this.hover=i),"direction"===t&&(this.direction=i),"keyboard"===t&&(this.keyboard="disabled"===i?"disabled":"enabled")}setExposure(t=0){var e;this.exposure=(e=this.exposure+t)<0?0:e>100?100:e,this.firstElement.style.setProperty("--exposure",100-this.exposure+"%")}slide(t=0){this.setExposure(t);const e=new Event("slide");this.dispatchEvent(e)}slideToPage(t){"horizontal"===this.slideDirection&&this.slideToPageX(t.x),"vertical"===this.slideDirection&&this.slideToPageY(t.y)}slideToPageX(t){const e=t-this.getBoundingClientRect().left-window.scrollX;this.exposure=e/this.imageWidth*100,this.slide(0)}slideToPageY(t){const e=t-this.getBoundingClientRect().top-window.scrollY 189;this.exposure=e/this.imageHeight*100,this.slide(0)}enableTransition(){this.firstElement.style.setProperty("--transition-time","100ms"),this.transitionTimer=window.setTimeout((()=>{this.firstElement.style.setProperty("--transition-time","0ms"),this.transitionTimer=null}),100)}startSlideAnimation(t){let e=null;const i=n=>{null===e&&(e=n);const r=(n-e)/16.666666666666668*t;this.slide(r),this.isAnimating&&(window.requestAnimationFrame(i),e=n)};window.requestAnimationFrame(i)}stopSlideAnimation(){this.isAnimating=!1}}"undefined"!=typeof window&&window.customElements.define("img-comparison-slider",l)})()})(),$(document).ready((function(e){if($(".side-widget .widget-close").on("click",(function(){$(this).parent().removeClass("open")}
189)),$(".side-widget .inner").on("click",(function(t){var e=$(this).parent();e.is(".open")||t.preventDefault(),e.addClass("open")})),window.controller=new ScrollMagic.Controller,$(".reveal-down").length>0)for(var revealElements=document.getElementsByClassName("reveal-down"),i=0;i<revealElements.length;i++)new ScrollMagic.Scene({triggerElement:revealElements[i],offset:-100}).setClassToggle(revealElements[i],"visible").addTo(controller);if($(".reveal-left").length>0)for(var revealElements=document.getElementsByClassName("reveal-left"),i=0;i<revealElements.length;i++)new ScrollMagic.Scene({triggerElement:revealElements[i],offset:-100}).setClassToggle(revealElements[i],"visible").addTo(controller);if($(".typewriting").length>0){function typing(t,e,i,n){e<=i&&$(t).text(n.substring(0,e))}$(".typewriting").each((function(e,section){var myId=$(this).attr("id"),myText=$(this).attr("data-text"),myTextLength=myText.length,tempvar=eval(myId);temp=myId+"Scroll";var tempvarScroll=eval(temp+" = '';"),tempvarScroll=new TimelineMax;tempvar=new ScrollMagic.Scene({triggerElement:"#"+myId,duration:300,offset:-200}).on("progress",(function(){scrollProgress=Math.ceil(tempvar.progress()*myTextLength),typing("#"+myId,scrollProgress,myTextLength,myText)})).setTween(tempvarScroll).addTo(controller)}))}if($(".staged-reveal").length>0)for(var revealElements=document.getElementsByClassName("staged-reveal"),staged_offset=50,i=0;i<revealElements.length;i++)new ScrollMagic.Scene({triggerElement:revealElements[i],offset:staged_offset,triggerHook:.8}).setClassToggle(revealElements[i],"visible").addTo(controller),staged_offset+=10;if($(".product-reveal").length>0)for(var revealElements=document.getElementsByClassName("product-reveal"),staged_offset=50,i=0;i<revealElements.length;i++)new ScrollMagic.Scene({triggerElement:revealElements[i],offset:staged_offset,triggerHook:.9}).setClassToggle(revealElements[i],"visible").addTo(controller),staged_offset+=50;if($(".phone-button").length>0&&$(".phone-button").on("click",(function(t){if(t.preventDefault(),$(".mobile-success").html("").slideUp(),$(".mobile-error").html("").slideUp(),phonenumber=$("#phonenumber").val(),1==new RegExp("^(\\+44\\s?7(\\d?){3}|\\(?07(\\d?){3}\\)?)\\s?(\\d?){3}\\s?(\\d?){3}$").test(phonenumber)){$(".mobile-success").html("Thank you. You will shortly receive a text message.").removeClass("d-none").slideDown();var e={phonenumber:phonenumber};$.ajax({url:"/ajax.sms.send.app.link.php",type:"POST",data:e,success:function(t,e,i){},error:function(t,e,i){}})}else console.log("tel invalid"),$(".mobile-error").html("Please enter a valid number.").removeClass("d-none").slideDown()})),$(".product-page").length>0){if($(".header-contact-bar").length>0){let t=document.querySelector(".header-contact-bar"),e=$(".services-nav").outerHeight();if(null==t)return;let n=parseInt(e,10);window.addEventListener("scroll",(e=>{e.currentTarget.pageYOffset>n?t.classList.add("fixed-contact"):t.classList.remove("fixed-contact")}))}}else if($(".services-nav").length>0){let r=document.querySelector(".services-nav"),s=$("#navbarcontact").outerHeight();if(null==r)return;let o=parseInt(s,10);window.addEventListener("scroll",(t=>{t.currentTarget.pageYOffset>o?r.classList.add("fixed-products"):r.classList.remove("fixed-products")}))}if($('[data-toggle="touchspin"]').length>0){var defaultOptions={};$('[data-toggle="touchspin"]').each((function(t,e){var i=$.extend({},defaultOptions,$(e).data());console.log(i),$(e).TouchSpin(i)}))}function updatewistiavideo(t,e){wistiaEmbed=Wistia.embed(t,{videoFoam:!0})}if($(".productsearch").length>0&&(typeahead=$.typeahead({input:".productsearch",minLength:3,order:"asc",dynamic:!0,delay:500,filter:!1,backdrop:{opacity:.8,background:"#000000"},template:function(t,e){return console.log(e),'<div class="row align-items-center"><div class="col-2 col-md-2 col-lg-2 col-xl-1 text-center"><span class="display_value">{{display_image}}</div><div class="col"><div class="">{{display_value}}<br><span style="font-size:0.8rem;">{{display_cat}}</span></div></div></div></div>'},emptyTemplate:"no result for {{query}}",source:{product:{display:"display_value",ajax:function(t){return{type:"GET",url:"/includes/ajax.search.equipment.php",path:"data.product",data:{Query:"{{query}}"},callback:{done:function(t){return console.log(t),t}}}}}}
189,callback:{onClick:function(t,e,i,n){window.location=i.href},onSendRequest:function(t,e){console.log("request is sent")},onReceiveRequest:function(t,e){console.log("request is received")}},debug:!0})),$(".qr-productsearch").length>0&&(typeahead=$.typeahead({input:".qr-productsearch",minLength:3,order:"asc",dynamic:!0,delay:500,filter:!1,backdrop:{opacity:.8,background:"#000000"},template:function(t,e){return console.log(e),'<div class="row align-items-center"><div class="col-12">{{display_value}}</div></div>'},emptyTemplate:"no result for {{query}}",source:{product:{display:"display_value",ajax:function(t){return{type:"GET",url:"/includes/ajax.search.qr.equipment.php",path:"data.product",data:{Query:"{{query}}"},callback:{done:function(t){return console.log(t),t}}}}}},callback:{onClick:function(t,e,i,n){$(".qr-productsearch")},onSendRequest:function(t,e){console.log("request is sent")},onReceiveRequest:function(t,e){console.log("request is received")}},debug:!0})),$(".wistia_embed").length>0){function addScript(t){if(t){var e=document.createElement("script"),i=!1,n=document.getElementsByTagName("head")[0];e.onload=e.onreadystatechange=function(){i||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(i=!0,e.onload=e.onreadystatechange=null,n&&e.parentNode&&n.removeChild(e))},e.setAttribute("type","text/javascript"),e.setAttribute("src",t),n.appendChild(e)}}addScript("//fast.wistia.net/static/E-v1.js")}if($(".highlight-lines p").length>0){$(".highlight-lines p").html((function(){return $(this).text().replace(/([^\s]+)/gm,"<span>$&</span>")}));const a=$(window).height()/2,l=$(".highlight-lines p span");function onWindowScroll(){const t=$(window).scrollTop();let e;l.removeClass("highlight"),l.filter((function(){const i=$(this).offset();if(void 0===e){const n=t+a<i.top;return n&&(e=i.top),n}return i.top===e})).addClass("highlight")}$(window).on("scroll",onWindowScroll),onWindowScroll()}function handlePrintRouteInstructionsClick(){usingdark=!1,$("html").hasClass("dark-mode")&&(console.log("using dark style sheet"),usingdark=!0,$("html").removeClass("dark-mode")),setTimeout(window.print(),400),1==usingdark&&$("html").addClass("dark-mode")}$(".flag").on("click",(function(t){console.log("flag click"),t.preventDefault(),$(".flag").removeClass("active"),$(this).addClass("active"),video_id=$(this).attr("data-videoid"),$("#video-holder").attr("data-videoid",video_id)})),$(document).on("click",".print-page",(function(t){console.log("print page clicked"),handlePrintRouteInstructionsClick()}));var showChar=125,ellipsestext="...",moretext="more",lesstext="less";$(".more").each((function(){var t=$(this).html(),e=$(this).text();if(e.length>showChar){var i='<span class="read-more-container"><span>'+e.substr(0,showChar)+'</span><span class="moreelipses">'+ellipsestext+'</span></span><span class="morecontent">'+t+"</span>";$(this).html(i),$(this).after('<a href="" class="morelink">'+moretext+"</a>")}})),$(".morelink").click((function(){return $(this).hasClass("less")?($(this).removeClass("less"),$(this).html(moretext),$(this).prev().children(".morecontent").fadeToggle(500,(function(){$(this).prev().fadeToggle(500)}))):($(this).addClass("less"),$(this).html(lesstext),$(this).prev().children(".read-more-container").fadeToggle(500,(function(){$(this).next().fadeToggle(500)}))),!1}));var contactmoretext="Contact Details",contactlesstext="Hide",showCharcontact=0;$(".morecontact").each((function(){var t=$(this).html(),e=$(this).text();if(e.length>showCharcontact){var i='<span class="read-more-container"><span>'+e.substr(0,showCharcontact)+'</span></span><span class="morecontact">'+t+"</span>";$(this).html(i),$(this).after('<a href="" class="morecontact">'+contactmoretext+"</a>")}})),$(".morecontact").click((function(){return $(this).hasClass("less")?($(this).removeClass("less"),$(this).html(contactmoretext),$(this).prev().children(".morecontent").fadeToggle(500,(function(){$(this).prev().fadeToggle(500)}))):($(this).addClass("less"),$(this).html(contactlesstext),$(this).prev().children(".read-more-container").fadeToggle(500,(function(){$(this).next().fadeToggle(500)}))),!1}))})),$(window).ready((function(t){if($(".submit-recaptcha").length>0){var e="";window.onSubmit=function(t){$("#"+e+" .g-recaptcha-response").val(t),$("#"+e).submit()},$(".submit-recaptcha").on("click",(function(t){e=$(this).attr("data-formid"),t.preventDefault(),grecaptcha.execute()}))}window.CaptchaCallback=function(){console.log("CaptchaCallback"),$(".g-recaptcha").each((function(t,e){grecaptcha.render(e,{sitekey:$(this).attr("data-sitekey"),callback:$(this).attr("data-callback"),size:$(this).attr("data-size"),badge:$(this).attr("data-badge")})}))},$(".recaptcha3").length>
1890&&(recaptcha3=function(t,e){grecaptcha.ready((function(){grecaptcha.execute($("#recaptchaToken").attr("data-rKey"),{action:t}).then(e)}))}),$(".callback-submit-button").on("click",(function(t){t.preventDefault(),$(".callback-submit-button").attr("disabled","disabled"),recaptcha3("callbackForm",(function(t){$("#callbackForm #recaptchaToken").val(t),$("#callbackForm").submit()}))})),window.getBasketId=function(){var t="Couldn't add item to basket. Please try again.",e=null;return $.ajax({type:"POST",url:"/ajax.get.basket.php",async:!1,success:function(i,n,r){if(!i)return showAlert("error",t),null;e=i},error:function(e,i,n){return showAlert("error",t),null}}),e},$(".read-more").length>0&&$(".read-more").readmore({speed:75,moreLink:'<a href="#">Read more</a>',lessLink:'<a href="#">Close</a>',startOpen:!1,heightMargin:16,collapsedHeight:100,embedCSS:!1}),pageinit()})),$(window).on("load",(function(){if($(".masonry-gallery").length>0)$(".masonry-gallery").masonry({percentPosition:!0});$(".get-app-button").length>0&&$(".get-app-button").on("click",(function(t){t.preventDefault(),console.log("get-app-button"),$(".mobile-success").addClass("d-none").slideUp(),$(".mobile-error").html("").addClass("d-none").slideUp(),phonenumber=$("#phonenumber").val(),1==new RegExp("^(\\+44\\s?7\\d{3}|\\(?07\\d{3}\\)?)\\s?\\d{3}\\s?\\d{3}$").test(phonenumber)?(console.log("Valid Number"),$(".get-app-button").attr("disabled","disabled"),recaptcha3("getAppForm",(function(t){$("#getAppForm").find("#recaptchaToken").val(t),$("#getAppForm").submit()}))):(console.log("tel invalid"),$(".mobile-error").html("Please enter a valid number.").removeClass("d-none").slideDown())}))})),window.addEventListener("load",(function(){initCookieConsent().run({autorun:!0,current_lang:"en",autoclear_cookies:!0,page_scripts:!0,onFirstAction:function(t,e){},onAccept:function(t){},onChange:function(t,e){},languages:{en:{consent_modal:{layout:"bar",position:"bottom center",title:"We use cookies",description:'We use necessary cookies that are essential to make our website work. We would also like to set analytics cookies that help us continue to improve our usersâ experience of this website. These will be set only if you accept. If you would like to know more <a aria-label="Cookie policy" class="cc-link" href="/cookie-policy/">Read more</a> or <a href="#" data-cc="c-settings">View Settings</a>',primary_btn:{text:"Accept",role:"accept_all"},secondary_btn:{text:"Reject",role:"accept_necessary"}},settings_modal:{title:"Cookie preferences",save_settings_btn:"Save all",accept_all_btn:"Accept all",reject_all_btn:"Reject all",cookie_table_headers:[{col1:"Name"},{col2:"Domain"},{col3:"Expiration"},{col4:"Description"},{col5:"Type"}],blocks:[{title:"Cookie usage ð¢",description:'We use cookies to ensure the basic functionalities of the website and to enhance your online experience. You can choose for each category to opt-in/out whenever you want. For more details relative to cookies and other sensitive data, please read the full <a href="/cookie-policy/" class="cc-link">privacy policy</a>.'},{title:"Strictly necessary cookies",description:"These cookies are essential for the proper functioning of my website. Without these cookies, the website would not work properly",toggle:{value:"necessary",enabled:!0,readonly:!0}},{title:"Performance and Analytics cookies",description:"These cookies allow the website to remember the choices you have made in the past",toggle:{value:"analytics",enabled:!0,readonly:!1},cookie_table:[{col1:"^_ga",col2:"google.com",col3:"2 years",col4:"Google Analytics",col5:"Permanent cookie",is_regex:!0},{col1:"_gid",col2:"google.com",col3:"1 day",col4:"Google Analytics",col5:"Permanent cookie"}]},{title:"Performance and Analytics cookies",description:"These cookies allow the website to remember the choices you have made in the past",toggle:{value:"ads",enabled:!0,readonly:!1},cookie_table:[{col1:"_fbp",col2:"ardenthire.com",col3:"3 months",col4:"Used by Meta to deliver a series of advertisement products such as real time bidding from third party advertisers",col5:"Permanent cookie"},{col1:"bcookie",col2:"linkedin.com",col3:"1 year",col4:"This is a Microsoft MSN 1st party cookie for sharing the content of the website via social media.",col5:"Permanent cookie"},{col1:"UserMatchHistory",col2:"linkedin.com",col3:"1 month",col4:"This cookie is used to track visitors so that more relevant ads can be presented based on the visitors preferences.",col5:"Permanent cookie"},{col1:"AnalyticsSyncHistory",col2:"linkedin.com",col3:"1 month",col4:"Used to store information about the time a sync with the lms_analytics cookie took place for users in the Designated Countries.",col5:"Permanent cookie"},{col1:"li_gc",col2:"linkedin.com",col3:"6 month",col4:"Used to store guest consent to the use of cookies for non-e
189ssential purposes",col5:"Permanent cookie"},{col1:"lidc",col2:"linkedin.com",col3:"1 day",col4:"This is a Microsoft MSN 1st party cookie that ensures the proper functioning of this website.",col5:"Permanent cookie"},{col1:"bscookie",col2:"linkedin.com",col3:"1 year",col4:"Used by the social networking service, LinkedIn, for tracking the use of embedded services.",col5:"Permanent cookie"}]},{title:"More information",description:'For any queries in relation to my policy on cookies and your choices, please <a class="cc-link" href="/contact/">contact us</a>.'}]}}}})}));var formCareersModal=document.getElementById("formCareersModal");formCareersModal&&formCareersModal.addEventListener("show.bs.modal",(function(t){var e=t.relatedTarget,i=e.getAttribute("data-bs-jobName");e.getAttribute("data-bs-careerId");document.querySelector('input[name="career_Id"]').value=e.getAttribute("data-bs-careerId");var n=formCareersModal.querySelector(".modal-title");formCareersModal.querySelector(".modal-body input");n.textContent="Apply for "+i}));var formModal=document.getElementById("formModal");formCareersModal&&formModal.addEventListener("show.bs.modal",(function(t){var e=t.relatedTarget,i=e.getAttribute("data-bs-dlname");e.getAttribute("data-bs-dlId");document.querySelector('input[name="file_Id"]').value=e.getAttribute("data-bs-dlId"),$("#DownloadReponseError").addClass("d-none").slideUp(),$("#DownloadReponseSuccess").addClass("d-none").slideUp(),$("#product-download-form").removeClass("d-none").slideDown();var n=formModal.querySelector(".modal-title");formModal.querySelector(".modal-body input");n.textContent="Download your "+i})),$(document).on("click",".career-submit",(function(t){t.preventDefault(),$(".career-submit").attr("disabled","disabled");var e=$("#careerForm"),i=new FormData(e[0]);console.log(i),$.ajax({url:"/ajax-career-enquiry-process/",type:"POST",data:i,cache:!1,contentType:!1,processData:!1,success:function(t){var e=JSON.parse(t);"Success"==e.status?($(".career-submit").removeAttr("disabled"),$("#CareerReponseError").addClass("d-none").slideUp(),$("#CareerReponseSuccess").removeClass("d-none").slideDown(),$("#CareerReponseSuccess .message-text").html(e.message),$("html, body").animate({scrollTop:$("#CareerReponseSuccess").offset().top},200),$("#career-form").addClass("d-none").slideUp(),gtag("set","user_data",{email:i.get("Contact_Email")}),gtag("event","conversion",{send_to:"AW-1069242353/nkiFCLGoqwgQ8a_t_QM"}),gtag("event","generate_lead_form",{event_category:"Submit_Form",event_label:"Career_Form"})):"Error"==e.status&&($("#CareerReponseError").removeClass("d-none").slideDown(),$("#CareerReponseError .message-text").html(e.message),$("html, body").animate({scrollTop:$("#CareerReponseError").offset().top},200),$(".career-submit").removeAttr("disabled"))},error:function(t,e){}})})),$(document).on("click",".download-activate",(function(t){t.preventDefault(),$(".download-activate").attr("disabled","disabled"),Download_First_Name=$("#Download_First_Name").val(),Download_Surname=$("#Download_Surname").val(),Download_Email=$("#Download_Email").val(),Download_Telephone=$("#Download_Telephone").val(),Download_Company=$("#Download_Company").val(),Download_Postcode=$("#Download_Postcode").val(),Download_Country=$("#Download_Country option:selected").text(),Download_Region=$("#Download_Region").val(),Download_Newsletter="N",$("#Download_Newsletter").is(":checked")&&(Download_Newsletter="Y"),file_Id=$("#file_Id").val(),data={Download_First_Name:Download_First_Name,Download_Surname:Download_Surname,Download_Email:Download_Email,Download_Telephone:Download_Telephone,Download_Company:Download_Company,Download_Country:Download_Country,Download_Postcode:Download_Postcode,Download_Region:Download_Region,Download_Newsletter:Download_Newsletter,file_Id:file_Id},console.log(data),$.ajax({url:"/ajax-download-enquiry-process/",type:"POST",data:data,success:function(t){var e=JSON.parse(t);"Success"==e.status?($("#DownloadReponseError").addClass("d-none").slideUp(),$("#DownloadReponseSuccess").removeClass("d-none").slideDown(),$("#DownloadReponseSuccess .message-text").html(e.message),$("html, body").animate({scrollTop:$("#DownloadReponseSuccess").offset().top},200),$(".download-activate").removeAttr("disabled"),$("#product-download-form").addClass("d-none").slideUp(),gtag("set","user_data",{email:Download_Email}),gtag("event","conversion",{send_to:"AW-1069242353/nkiFCLGoqwgQ8a_t_QM"}),gtag("event","generate_lead_form",{event_category:"Submit_Form",event_label:"Download_Form"}),console.log("Download success"),window.lintrk("track",{conversion_id:66339}),window.open(e.filename,"_blank")):"Error"==e.status&&($("#DownloadReponseError").removeClass("d-none").slideDown(),$("#DownloadReponseError .message-text").html(e.message),$("html, body").animate({scrollTop:$("#DownloadReponseError").offset().top},200),$(".download-activate").removeAttr("disabled"),console.log("Download Fail"))},error:function(t,e){}})}));var employment=[{id:"Employed",text:"Employed"},{id:"Self Employed",text:"Self Employed"},{id:"Unemployed",text:"Unemployed"},{id:"Student",text:"Student"},{id:"Graduate",text:"Graduate"},{id:"Service Leaver",text:"Service Leaver"}];function formatEmployment(t){return t.text}$(".selectboxit-employment-apply").select2({dropdownParent:$("#EmploymentSelect"),theme:"bootstrap-5",placeholder:"Select Employment status",templateSelection:formatEmployment,templateResult:formatEmployment,data:employment});var isoCountries=[{id:"GB",text:"United Kingdom"},{id:"AF",text:"Afghanistan"},{id:"AL",text:"Albania"},{id:"DZ",text:"Algeria"},{id:"AD",text:"Andorra"},{id:"AO",text:"Angola"},{id:"AG",text:"Antigua And Barbuda"},{id:"AM",text:"Armenia"},{id:"AU",text:"Australia"},{id:"AT",text:"Austria"},{id:"AZ",text:"Azerbaijan"},{id:"BS",text:"Bahamas"},{id:"BH",text:"Bahrain"},{id:"BD",text:"Bangladesh"},{id:"BB",text:"Barbados"},{id:"BY",text:"Belarus"},{id:"BE",text:"Belgium"},{id:"BZ",text:"Belize"},{id:"BJ",text:"Benin"},{id:"BT",text:"Bhutan"},{id:"BO",text:"Bolivia"},{id:"BA",text:"Bosnia And Herzegovina"},{id:"BW",text:"Botswana"},{id:"BR",text:"Brazil"},{id:"BN",text:"Brunei Darussalam"},{id:"BG",text:"Bulgaria"},{id:"BF",text:"Burkina Faso"},{id:"BI",text:"Burundi"},{id:"KH",text:"Cambodia"},{id:"CM",text:"Cameroon"},{id:"CA",text:"Canada"},{id:"CV",text:"Cape Verde"},{id:"CF",text:"Central African Republic"},{id:"TD",text:"Chad"},{id:"CL",text:"Chile"},{id:"CN",text:"China"},{id:"CO",text:"Colombia"},{id:"KM",text:"Comoros"},{id:"CG",text:"Congo"},{id:"CR",text:"Costa Rica"},{id:"CI",text:"Cote D'Ivoire"},{id:"HR",text:"Croatia"},{id:"CU",text:"Cuba"},{id:"CY",text:"Cyprus"},{id:"CZ",text:"Czech Republic"},{id:"DK",text:"Denmark"},{id:"CD",text:"Democratic Republic Of Congo"},{id:"DJ",text:"Djibouti"},{id:"DM",text:"Dominica"},{id:"DO",text:"Dominican Republic"},{id:"EC",text:"Ecuador"},{id:"EG",text:"Egypt"},{id:"SV",text:"El Salvador"},{id:"GQ",text:"Equatorial Guinea"},{id:"ER",text:"Eritrea"},{id:"EE",text:"Estonia"},{id:"ET",text:"Ethiopia"},{id:"FJ",text:"Fiji"},{id:"FI",text:"Finland"},{id:"FR",text:"France"},{id:"GA",text:"Gabon"},{id:"GM",text:"Gambia"},{id:"GE",text:"Georgia"},{id:"DE",text:"Germany"},{id:"GH",text:"Ghana"},{id:"GR",text:"Greece"},{id:"GD",text:"Grenada"},{id:"GT",text:"Guatemala"},{id:"GN",text:"Guinea"},{id:"GW",text:"Guinea-Bissau"},{id:"GY",text:"Guyana"},{id:"HT",text:"Haiti"},{id:"VA",text:"Vatican City"},{id:"HN",text:"Honduras"},{id:"HU",text:"Hungary"},{id:"IS",text:"Iceland"},{id:"IN",text:"India"},{id:"ID",text:"Indonesia"},{id:"IR",text:"Iran"},{id:"IQ",text:"Iraq"},{id:"IE",text:"Ireland"},{id:"IL",text:"Israel"},{id:"IT",text:"Italy"},{id:"JM",text:"Jamaica"},{id:"JP",text:"Japan"},{id:"JO",text:"Jordan"},{id:"KZ",text:"Kazakhstan"},{id:"KE",text:"Kenya"},{id:"KI",text:"Kiribati"},{id:"KR",text:"Korea"},{id:"KW",text:"Kuwait"},{id:"KG",text:"Kyrgyzstan"},{id:"LA",text:"Lao People's Democratic Republic"},{id:"LV",text:"Latvia"},{id:"LB",text:"Lebanon"},{id:"LS",text:"Lesotho"},{id:"LR",text:"Liberia"},{id:"LY",text:"Libyan Arab Jamahiriya"},{id:"LI",text:"Liechtenstein"},{id:"LT",text:"Lithuania"},{id:"LU",text:"Luxembourg"},{id:"MK",text:"Macedonia"},{id:"MG",text:"Madagascar"},{id:"MW",text:"Malawi"},{id:"MY",text:"Malaysia"},{id:"MV",text:"Maldives"},{id:"ML",text:"Mali"},{id:"MT",text:"Malta"},{id:"MH",text:"Marshall Islands"},{id:"MR",text:"Mauritania"},{id:"MU",text:"Mauritius"},{id:"MX",text:"Mexico"},{id:"FM",text:"Micronesia"},{id:"MD",text:"Moldova"},{id:"MC",text:"Monaco"},{id:"MN",text:"Mongolia"},{id:"ME",text:"Montenegro"},{id:"MA",text:"Morocco"},{id:"MZ",text:"Mozambique"},{id:"MM",text:"Myanmar"},{id:"NA",text:"Namibia"},{id:"NR",text:"Nauru"},{id:"NP",text:"Nepal"},{id:"NL",text:"Netherlands"},{id:"NZ",text:"New Zealand"},{id:"NI",text:"Nicaragua"},{id:"NE",text:"Niger"},{id:"NG",text:"Nigeria"},{id:"NO",text:"Norway"},{id:"OM",text:"Oman"},{id:"PK",text:"Pakistan"},{id:"PW",text:"Palau"},{id:"PA",text:"Panama"},{id:"PG",text:"Papua New Guinea"},{id:"PY",text:"Paraguay"},{id:"PE",text:"Peru"},{id:"PH",text:"Philippines"},{id:"PL",text:"Poland"},{id:"PT",text:"Portugal"},{id:"PR",text:"Puerto Rico"},{id:"QA",text:"Qatar"},{id:"RO",text:"Romania"},{id:"RU",text:"Russian Federation"},{id:"RW",text:"Rwanda"},{id:"KN",text:"Saint Kitts And Nevis"},{id:"LC",text:"Saint Lucia"},{id:"VC",text:"Saint Vincent And Grenadines"},{id:"WS",text:"Samoa"},{id:"SM",text:"San Marino"},{id:"ST",text:"Sao Tome And Principe"},{id:"SA",text:"Saudi Arabia"},{id:"SN",text:"Senegal"},{id:"RS",text:"Serbia"},{id:"SC",text:"Seychelles"},{id:"SL",text:"Sierra Leone"},{id:"SG",text:"Singapore"},{id:"SK",text:"Slovakia"},{id:"SI",text:"Slovenia"},{id:"SB",text:"Solomon Islands"},{id:"SO",text:"Somalia"},{id:"ZA",text:"South Africa"},{id:"ES",text:"Spain"},{id:"LK",text:"Sri Lanka"},{id:"SD",text:"Sudan"},{id:"SR",text:"Suriname"},{id:"SZ",text:"Swaziland"},{id:"SE",text:"Sweden"},{id:"CH",text:"Switzerland"},{id:"SY",text:"Syrian Arab Republic"},{id:"TW",text:"Taiwan"},{id:"TJ",text:"Tajikistan"},{id:"TZ",text:"Tanzania"},{id:"TH",text:"Thailand"},{id:"TL",text:"Timor-Leste"},{id:"TG",text:"Togo"},{id:"TO",text:"Tonga"},{id:"TT",text:"Trinidad And Tobago"},{id:"TN",text:"Tunisia"},{id:"TR",text:"Turkey"},{id:"TM",text:"Turkmenistan"},{id:"TV",text:"Tuvalu"},{id:"UG",text:"Uganda"},{id:"UA",text:"Ukraine"},{id:"AE",text:"United Arab Emirates"},{id:"US",text:"United States"},{id:"UY",text:"Uruguay"},{id:"UZ",text:"Uzbekistan"},{id:"VU",text:"Vanuatu"},{id:"VE",text:"Venezuela"},{id:"VN",text:"Vietnam"},{id:"EH",text:"Western Sahara"},{id:"YE",text:"Yemen"},{id:"ZM",text:"Zambia"},{id:"ZW",text:"Zimbabwe"}];function formatFlags(t){return t.text}$(".selectboxit-country-apply").select2({dropdownParent:$("#CountrySelect"),theme:"bootstrap-5",placeholder:"Select Country",templateSelection:formatFlags,templateResult:formatFlags,data:isoCountries}),$(".selectboxit-country-apply").on("change",(function(t){console.log("change",t),console.log("change",$(".selectboxit-country-apply").val()),"GB"==$(".selectboxit-country-apply").val()?($("#dlPostcode").removeClass("d-none").slideDown(),$("#RegionSelect").removeClass("d-none").slideDown()):($("#dlPostcode").addClass("d-none").slideDown(),$("#RegionSelect").addClass("d-none").slideDown())})),$(".selectboxit-career-country-apply").select2({dropdownParent:$("#careerCountrySelect"),theme:"bootstrap-5",placeholder:"Select Country",templateSelection:formatFlags,templateResult:formatFlags,data:isoCountries}),$(".selectboxit-career-country-apply").on("change",(function(t){console.log("change",t),console.log("change",$(".selectboxit-country-apply").val()),"GB"==$(".selectboxit-career-country-apply").val()?$("#careerRegionSelect").removeClass("d-none").slideDown():$("#careerRegionSelect").addClass("d-none").slideDown()}));var regions=[{id:"Aberdeenshire",text:"Aberdeenshire"},{id:"Anglesey",text:"Anglesey"},{id:"Angus",text:"Angus"},{id:"Argyll",text:"Argyll"},{id:"Ayrshire",text:"Ayrshire"},{id:"Banffshire",text:"Banffshire"},{id:"Bedfordshire",text:"Bedfordshire"},{id:"Berwickshire",text:"Berwickshire"},{id:"Breconshire",text:"Breconshire"},{id:"Buckinghamshire",text:"Buckinghamshire"},{id:"Bute",text:"Bute"},{id:"Caernarvonshire",text:"Caernarvonshire"},{id:"Caithness",text:"Caithness"},{id:"Cambridgeshire",text:"Cambridgeshire"},{id:"Cardiganshire",text:"Cardiganshire"},{id:"Carmarthenshire",text:"Carmarthenshire"},{id:"Cheshire",text:"Cheshire"},{id:"Clackmannanshire",text:"Clackmannanshire"},{id:"Cornwall and Isles of Scilly",text:"Cornwall and Isles of Scilly"},{id:"County Antrim",text:"County Antrim"},{id:"County Armagh",text:"County Armagh"},{id:"County Down",text:"County Down"},{id:"County Fermanagh",text:"County Fermanagh"},{id:"County Londonderry",text:"County Londonderry"},{id:"County Tyrone",text:"County Tyrone"},{id:"Cumbria",text:"Cumbria"},{id:"Denbighshire",text:"Denbighshire"},{id:"Derbyshire",text:"Derbyshire"},{id:"Devon",text:"Devon"},{id:"Dorset",text:"Dorset"},{id:"Dumbartonshire",text:"Dumbartonshire"},{id:"Dumfriesshire",text:"Dumfriesshire"},{id:"Durham",text:"Durham"},{id:"East Lothian",text:"East Lothian"},{id:"East Sussex",text:"East Sussex"},{id:"Essex",text:"Essex"},{id:"Fife",text:"Fife"},{id:"Flintshire",text:"Flintshire"},{id:"Glamorgan",text:"Glamorgan"},{id:"Gloucestershire",text:"Gloucestershire"},{id:"Greater London",text:"Greater London"},{id:"Greater Manchester",text:"Greater Manchester"},{id:"Hampshire",text:"Hampshire"},{id:"Hertfordshire",text:"Hertfordshire"},{id:"Inverness",text:"Inverness"},{id:"Kent",text:"Kent"},{id:"Kincardineshire",text:"Kincardineshire"},{id:"Kinross-shire",text:"Kinross-shire"},{id:"Kirkcudbrightshire",text:"Kirkcudbrightshire"},{id:"Lanarkshire",text:"Lanarkshire"},{id:"Lancashire",text:"Lancashire"},{id:"Leicestershire",text:"Leicestershire"},{id:"Lincolnshire",text:"Lincolnshire"},{id:"London",text:"London"},{id:"Merionethshire",text:"Merionethshire"},{id:"Merseyside",text:"Merseyside"},{id:"Midlothian",text:"Midlothian"},{id:"Monmouthshire",text:"Monmouthshire"},{id:"Montgomeryshire",text:"Montgomeryshire"},{id:"Moray",text:"Moray"},{id:"Nairnshire",text:"Nairnshire"},{id:"Norfolk",text:"Norfolk"},{id:"Northamptonshire",text:"Northamptonshire"},{id:"Northumberland",text:"Northumberland"},{id:"North Yorkshire",text:"North Yorkshire"},{id:"Nottinghamshire",text:"Nottinghamshire"},{id:"Orkney",text:"Orkney"},{id:"Oxfordshire",text:"Oxfordshire"},{id:"Peebleshire",text:"Peebleshire"},{id:"Pembrokeshire",text:"Pembrokeshire"},{id:"Perthshire",text:"Perthshire"},{id:"Radnorshire",text:"Radnorshire"},{id:"Renfrewshire",text:"Renfrewshire"},{id:"Ross & Cromarty",text:"Ross & Cromarty"},{id:"Roxburghshire",text:"Roxburghshire"},{id:"Selkirkshire",text:"Selkirkshire"},{id:"Shetland",text:"Shetland"},{id:"Shropshire",text:"Shropshire"},{id:"Somerset",text:"Somerset"},{id:"South Yorkshire",text:"South Yorkshire"},{id:"Staffordshire",text:"Staffordshire"},{id:"Stirlingshire",text:"Stirlingshire"},{id:"Suffolk",text:"Suffolk"},{id:"Surrey",text:"Surrey"},{id:"Sutherland",text:"Sutherland"},{id:"Tyne and Wear",text:"Tyne and Wear"},{id:"Warwickshire",text:"Warwickshire"},{id:"West Lothian",text:"West Lothian"},{id:"West Midlands",text:"West Midlands"},{id:"West Sussex",text:"West Sussex"},{id:"West Yorkshire",text:"West Yorkshire"},{id:"Wigtownshire",text:"Wigtownshire"},{id:"Wiltshire",text:"Wiltshire"},{id:"Worcestershire",text:"Worcestershire"},{id:"Carlow",text:"Carlow"},{id:"Cavan",text:"Cavan"},{id:"Clare",text:"Clare"},{id:"Cork",text:"Cork"},{id:"Donegal",text:"Donegal"},{id:"Dublin",text:"Dublin"},{id:"Galway",text:"Galway"},{id:"Kerry",text:"Kerry"},{id:"Kildare",text:"Kildare"},{id:"Kilkenny",text:"Kilkenny"},{id:"Leitrim",text:"Leitrim"},{id:"Leix",text:"Leix"},{id:"Limerick",text:"Limerick"},{id:"Longford",text:"Longford"},{id:"Louth",text:"Louth"},{id:"Mayo",text:"Mayo"},{id:"Meath",text:"Meath"},{id:"Monaghan",text:"Monaghan"},{id:"Offaly",text:"Offaly"},{id:"Roscommon",text:"Roscommon"},{id:"Sligo",text:"Sligo"},{id:"Tipperary",text:"Tipperary"},{id:"Waterford",text:"Waterford"},{id:"Westmeath",text:"Westmeath"},{id:"Wexford",text:"Wexford"},{id:"Wicklow",text:"Wicklow"}];function formatRegions(t){return t.text}function getRegion(t){data={postcode:t},$.ajax({url:"/includes/aj
189ax.region.request.php",data:data,type:"POST",success:function(t){if(obj=$.parseJSON(t),console.log(obj),"Success"==obj.Status){console.log("Success"+obj.Region);var e=obj.Region;$.grep(regions,(function(t){return t.id===e||t.text===e})).length>0?(console.log(e+" exists in the array."),$(".selectboxit-region-apply").val(e).trigger("change")):(console.log(e+" does not exist in the array."),$(".selectboxit-region-apply").val("Please select Region").trigger("change"))}else console.log("Error "+obj.Response),$(".selectboxit-region-apply").val("Please select Region").trigger("change")},error:function(){},complete:function(){}})}$(".selectboxit-region-apply").select2({dropdownParent:$("#RegionSelect"),theme:"bootstrap-5",placeholder:"Select Region",templateSelection:formatRegions,templateResult:formatRegions,data:regions}),$(".selectboxit-career-region-apply").select2({dropdownParent:$("#careerRegionSelect"),theme:"bootstrap-5",placeholder:"Select Region", 190templateSelection:formatRegions,templateResult:formatRegions,data:regions}),$("#Download_Postcode").on("keyup",(function(t){var e=$(this).val();postcode=new RegExp("^([A-Za-z][A-Ha-hJ-Yj-y]?[0-9][A-Za-z0-9]? ?[0-9][A-Za-z]{2}|[Gg][Ii][Rr] ?0[Aa]{2})$"),postcode.test(e)?(console.log("Key pressed. Current value: postcode valid = True"),getRegion(e)):(console.log("Key pressed. Current value: postcode valid = NOPE"),$(".selectboxit-region-apply").val("Please select Region").trigger("change"))})),$("#Contact_Postcode").on("keyup",(function(t){var e=$(this).val();postcode=new RegExp("^([A-Za-z][A-Ha-hJ-Yj-y]?[0-9][A-Za-z0-9]? ?[0-9][A-Za-z]{2}|[Gg][Ii][Rr] ?0[Aa]{2})$"),postcode.test(e)?(console.log("Key pressed. Current value: postcode valid = True"),getRegion(e)):(console.log("Key pressed. Current value: postcode valid = NOPE"),$(".selectboxit-region-apply").val("Please select Region").trigger("change"))})),function(t){var e;"function"==typeof define&&define.amd?define("jquery-typeahead",["jquery"],(function(e){return t(e)})):"object"==typeof module&&module.exports?module.exports=(void 0===e&&(e="undefined"!=typeof window?require("jquery"):require("jquery")(void 0)),t(e)):t(jQuery)}((function(t){"use strict";function e(t,e){this.rawQuery=t.val()||"",this.query=t.val()||"",this.selector=t[0].selector,this.deferred=null,this.tmpSource={},this.source={},this.dynamicGroups=[],this.hasDynamicGroups=!1,this.generatedGroupCount=0,this.groupBy="group",this.groups=[],this.searchGroups=[],this.generateGroups=[],this.requestGroups=[],this.result=[],this.tmpResult={},this.groupTemplate="",this.resultHtml=null,this.resultCount=0,this.resultCountPerGroup={},this.options=e,this.node=t,this.namespace="."+this.helper.slugify.call(this,this.selector)+".typeahead",this.isContentEditable=void 0!==this.node.attr("contenteditable")&&"false"!==this.node.attr("contenteditable"),this.container=null,this.resultContainer=null,this.item=null,this.items=null,this.comparedItems=null,this.xhr={},this.hintIndex=null,this.filters={dropdown:{},dynamic:{}},this.dropdownFilter={static:[],dynamic:[]},this.dropdownFilterAll=null,this.isDropdownEvent=!1,this.requests={},this.backdrop={},this.hint={},this.label={},this.hasDragged=!1,this.focusOnly=!1,this.displayEmptyTemplate,this.__construct()}var i,n={input:null,minLength:2,maxLength:!(window.Typeahead={version:"2.11.1"}),maxItem:8,dynamic:!1,delay:300,order:null,offset:!1,hint:!1,accent:!1,highlight:!0,multiselect:null,group:!1,groupOrder:null,maxItemPerGroup:null,dropdownFilter:!1,dynamicFilter:null,backdrop:!1,backdropOnFocus:!1,cache:!1,ttl:36e5,compression:!1,searchOnFocus:!1,blurOnTab:!0,resultContainer:null,generateOnLoad:null,mustSelectItem:!1,href:null,display:["display"],template:null,templateValue:null,groupTemplate:null,correlativeTemplate:!1,emptyTemplate:!1,cancelButton:!0,loadingAnimation:!0,asyncResult:!1,filter:!0,matcher:null,source:null,callback:{onInit:null,onReady:null,onShowLayout:null,onHideLayout:null,onSearch:null,onResult:null,onLayoutBuiltBefore:null,onLayoutBuiltAfter:null,onNavigateBefore:null,onNavigateAfter:null,onEnter:null,onLeave:null,onClickBefore:null,onClickAfter:null,onDropdownFilter:null,onSendRequest:null,onReceiveRequest:null,onPopulateSource:null,onCacheSave:null,onSubmit:null,onCancel:null},selector:{container:"typeahead__container",result:"typeahead__result",list:"typeahead__list",group:"typeahead__group",item:"typeahead__item",empty:"typeahead__empty",display:"typeahead__display",query:"typeahead__query",filter:"typeahead__filter",filterButton:"typeahead__filter-button",dropdown:"typeahead__dropdown",dropdownItem:"t
190ypeahead__dropdown-item",labelContainer:"typeahead__label-container",label:"typeahead__label",button:"typeahead__button",backdrop:"typeahead__backdrop",hint:"typeahead__hint",cancelButton:"typeahead__cancel-button"},debug:!1},r={from:"ãà áäâẽèéëêìÃïîõòóöôùúüûñç",to:"aaaaaeeeeeiiiiooooouuuunc"},s=~window.navigator.appVersion.indexOf("MSIE 9."),o=~window.navigator.appVersion.indexOf("MSIE 10"),a=!!~window.navigator.userAgent.indexOf("Trident")&&~window.navigator.userAgent.indexOf("rv:11");e.prototype={_validateCacheMethod:function(t){var e;if(!0===t)t="localStorage";else if("string"==typeof t&&!~["localStorage","sessionStorage"].indexOf(t))return!1;e=void 0!==window[t];try{window[t].setItem("typeahead","typeahead"),window[t].removeItem("typeahead")}catch(t){e=!1}return e&&t||!1},extendOptions:function(){if(this.options.cache=this._validateCacheMethod(this.options.cache),this.options.compression&&("object"==typeof LZString&&this.options.cache||(this.options.compression=!1)),this.options.maxLength&&!isNaN(this.options.maxLength)||(this.options.maxLength=1/0),void 0!==this.options.maxItem&&~[0,!1].indexOf(this.options.maxItem)&&(this.options.maxItem=1/0),this.options.maxItemPerGroup&&!/^\d+$/.test(this.options.maxItemPerGroup)&&(this.options.maxItemPerGroup=null),this.options.display&&!Array.isArray(this.options.display)&&(this.options.display=[this.options.display]),this.options.multiselect&&(this.items=[],this.comparedItems=[],"string"==typeof this.options.multiselect.matchOn&&(this.options.multiselect.matchOn=[this.options.multiselect.matchOn])),this.options.group&&(Array.isArray(this.options.group)||("string"==typeof this.options.group?this.options.group={key:this.options.group}:"boolean"==typeof this.options.group&&(this.options.group={key:"group"}),this.options.group.key=this.options.group.key||"group")),this.options.highlight&&!~["any",!0].indexOf(this.options.highlight)&&(this.options.highlight=!1),this.options.dropdownFilter&&this.options.dropdownFilter instanceof Object){Array.isArray(this.options.dropdownFilter)||(this.options.dropdownFilter=[this.options.dropdownFilter]);for(var e=0,i=this.options.dropdownFilter.length;e<i;++e)this.dropdownFilter[this.options.dropdownFilter[e].value?"static":"dynamic"].push(this.options.dropdownFilter[e])}this.options.dynamicFilter&&!Array.isArray(this.options.dynamicFilter)&&(this.options.dynamicFilter=[this.options.dynamicFilter]),this.options.accent&&("object"==typeof this.options.accent?this.options.accent.from&&this.options.accent.to&&(this.options.accent.from.length,this.options.accent.to.length):this.options.accent=r),this.options.groupTemplate&&(this.groupTemplate=this.options.groupTemplate),this.options.resultContainer&&("string"==typeof this.options.resultContainer&&(this.options.resultContainer=t(this.options.resultContainer)),this.options.resultContainer instanceof t&&this.options.resultContainer[0]&&(this.resultContainer=this.options.resultContainer)),this.options.group&&this.options.group.key&&(this.groupBy=this.options.group.key),this.options.callback&&this.options.callback.onClick&&(this.options.callback.onClickBefore=this.options.callback.onClick,delete this.options.callback.onClick),this.options.callback&&this.options.callback.onNavigate&&(this.options.callback.onNavigateBefore=this.options.callback.onNavigate,delete this.options.callback.onNavigate),this.options=t.extend(!0,{},n,this.options)},unifySourceFormat:function(){var t,e,i;for(t in this.dynamicGroups=[],Array.isArray(this.options.source)&&(this.options.source={group:{data:this.options.source}}),"string"==typeof this.options.source&&(this.options.source={group:{ajax:{url:this.options.source}}}),this.options.source.ajax&&(this.options.source={group:{ajax:this.options.source.ajax}}),(this.options.source.url||this.options.source.data)&&(this.options.source={group:this.options.source}),this.options.source)if(this.options.source.hasOwnProperty(t)){if("string"==typeof(e=this.options.source[t])&&(e={ajax:{url:e}}),i=e.url||e.ajax,Array.isArray(i)?(e.ajax="string"==typeof i[0]?{url:i[0]}:i[0],e.ajax.path=e.ajax.path||i[1]||null):"object"==typeof e.url?e.ajax=e.url:"string"==typeof e.url&&(e.ajax={url:e.url}),delete e.url,!e.data&&!e.ajax)return!1;e.display&&!Array.isArray(e.display)&&(e.display=[e.display]),e.minLength="number"==typeof e.minLength?e.minLength:this.options.minLength,e.maxLength="number"==typeof e.maxLength?e.maxLength:this.options.maxLength,e.dynamic="boolean"==typeof e.dynamic||this.options.dynamic,e.minLength>e.maxLength&&(e.minLength=e.maxLength),this.options.source[t]=e,this.options.source[t].dynamic&&this.dynamicGroups.push(t),e.cache=void 0!==e.cache?this._val
190idateCacheMethod(e.cache):this.options.cache,e.compression&&("object"==typeof LZString&&e.cache||(e.compression=!1))}return this.hasDynamicGroups=this.options.dynamic||!!this.dynamicGroups.length,!0},init:function(){this.helper.executeCallback.call(this,this.options.callback.onInit,[this.node]),this.container=this.node.closest("."+this.options.selector.container)},delegateEvents:function(){var e=this,i=["focus"+this.namespace,"input"+this.namespace,"propertychange"+this.namespace,"keydown"+this.namespace,"keyup"+this.namespace,"search"+this.namespace,"generate"+this.namespace];t("html").on("touchmove",(function(){e.hasDragged=!0})).on("touchstart",(function(){e.hasDragged=!1})),this.node.closest("form").on("submit",(function(t){if(!e.options.mustSelectItem||!e.helper.isEmpty(e.item))return e.options.backdropOnFocus||e.hideLayout(),e.options.callback.onSubmit?e.helper.executeCallback.call(e,e.options.callback.onSubmit,[e.node,this,e.item||e.items,t]):void 0;t.preventDefault()})).on("reset",(function(){setTimeout((function(){e.node.trigger("input"+e.namespace),e.hideLayout()}))}));var n=!1;if(this.node.attr("placeholder")&&(o||a)){var r=!0;this.node.on("focusin focusout",(function(){r=!(this.value||!this.placeholder)})),this.node.on("input",(function(t){r&&(t.stopImmediatePropagation(),r=!1)}))}this.node.off(this.namespace).on(i.join(" "),(function(i,r){switch(i.type){case"generate":e.generateSource(Object.keys(e.options.source));break;case"focus":if(e.focusOnly){e.focusOnly=!1;break}e.options.backdropOnFocus&&(e.buildBackdropLayout(),e.showLayout()
190),e.options.searchOnFocus&&!e.item&&(e.deferred=t.Deferred(),e.assignQuery(),e.generateSource());break;case"keydown":8===i.keyCode&&e.options.multiselect&&e.options.multiselect.cancelOnBackspace&&""===e.query&&e.items.length?e.cancelMultiselectItem(e.items.length-1,null,i):i.keyCode&&~[9,13,27,38,39,40].indexOf(i.keyCode)&&(n=!0,e.navigate(i));break;case"keyup":s&&e.node[0].value.replace(/^\s+/,"").toString().length<e.query.length&&e.node.trigger("input"+e.namespace);break;case"propertychange":if(n){n=!1;break}case"input":e.deferred=t.Deferred(),e.assignQuery(),""===e.rawQuery&&""===e.query&&(i.originalEvent=r||{},e.helper.executeCallback.call(e,e.options.callback.onCancel,[e.node,e.item,i]),e.item=null),e.options.cancelButton&&e.toggleCancelButtonVisibility(),e.options.hint&&e.hint.container&&""!==e.hint.container.val()&&0!==e.hint.container.val().indexOf(e.rawQuery)&&(e.hint.container.val(""),e.isContentEditable&&e.hint.container.text("")),e.hasDynamicGroups?e.helper.typeWatch((function(){e.generateSource()}),e.options.delay):e.generateSource();break;case"search":e.searchResult(),e.buildLayout(),e.result.length||e.searchGroups.length&&e.displayEmptyTemplate?e.showLayout():e.hideLayout(),e.deferred&&e.deferred.resolve()}return e.deferred&&e.deferred.promise()})),this.options.generateOnLoad&&this.node.trigger("generate"+this.namespace)},assignQuery:function(){this.isContentEditable?this.rawQuery=this.node.text():this.rawQuery=this.node.val().toString(),this.rawQuery=this.rawQuery.replace(/^\s+/,""),this.rawQuery!==this.query&&(this.query=this.rawQuery)},filterGenerateSource:function(){if(this.searchGroups=[],this.generateGroups=[],!this.focusOnly||this.options.multiselect)for(var t in this.options.source)if(this.options.source.hasOwnProperty(t)&&this.query.length>=this.options.source[t].minLength&&this.query.length<=this.options.source[t].maxLength){if(this.filters.dropdown&&"group"===this.filters.dropdown.key&&this.filters.dropdown.value!==t)continue;if(this.searchGroups.push(t),!this.options.source[t].dynamic&&this.source[t])continue;this.generateGroups.push(t)}},generateSource:function(e){if(this.filterGenerateSource(),this.generatedGroupCount=0,Array.isArray(e)&&e.length)this.generateGroups=e;else if(!this.generateGroups.length)return void this.node.trigger("search"+this.namespace);if(this.requestGroups=[],this.options.loadingAnimation&&this.container.addClass("loading"),!this.helper.isEmpty(this.xhr)){for(var i in this.xhr)this.xhr.hasOwnProperty(i)&&this.xhr[i].abort();this.xhr={}}for(var n,r,s,o,a,l,h,c=this,d=(i=0,this.generateGroups.length);i<d;++i){if(n=this.generateGroups[i],o=(s=this.options.source[n]).cache,a=s.compression,this.options.asyncResult&&delete this.source[n],o&&(l=window[o].getItem("TYPEAHEAD_"+this.selector+":"+n))){a&&(l=LZString.decompressFromUTF16(l)),h=!1;try{(l=JSON.parse(l+"")).data&&l.ttl>(new Date).getTime()?(this.populateSource(l.data,n),h=!0):window[o].removeItem("TYPEAHEAD_"+this.selector+":"+n)}catch(e){}if(h)continue}!s.data||s.ajax?s.ajax&&(this.requests[n]||(this.requests[n]=this.generateRequestObject(n)),this.requestGroups.push(n)):"function"==typeof s.data?(r=s.data.call(this),Array.isArray(r)?c.populateSource(r,n):"function"==typeof r.promise&&function(e){t.when(r).then((function(t){t&&Array.isArray(t)&&c.populateSource(t,e)}))}(n)):this.populateSource(t.extend(!0,[],s.data),n)}return this.requestGroups.length&&this.handleRequests(),this.options.asyncResult&&this.searchGroups.length!==this.generateGroups&&this.node.trigger("search"+this.namespace),!!this.generateGroups.length},generateRequestObject:function(t){var e=this,i=this.options.source[t],n={request:{url:i.ajax.url||null,dataType:"json",beforeSend:function(n,r){e.xhr[t]=n;var s=e.requests[t].callback.beforeSend||i.ajax.beforeSend;"function"==typeof s&&s.apply(null,arguments)}},callback:{beforeSend:null,done:null,fail:null,then:null,always:null},extra:{path:i.ajax.path||null,group:t},validForGroup:[t]};if("function"!=typeof i.ajax&&(i.ajax instanceof Object&&(n=this.extendXhrObject(n,i.ajax)),1<Object.keys(this.options.source).length))for(var r in this.requests)this.requests.hasOwnProperty(r)&&(this.requests[r].isDuplicated||n.request.url&&n.request.url===this.requests[r].request.url&&(this.requests[r].validForGroup.push(t),n.isDuplicated=!0,delete n.val
190idForGroup));return n},extendXhrObject:function(e,i){return"object"==typeof i.callback&&(e.callback=i.callback,delete i.callback),"function"==typeof i.beforeSend&&(e.callback.beforeSend=i.beforeSend,delete i.beforeSend),e.request=t.extend(!0,e.request,i),"jsonp"!==e.request.dataType.toLowerCase()||e.request.jsonpCallback||(e.request.jsonpCallback="callback_"+e.extra.group),e},handleRequests:function(){var e,i=this,n=this.requestGroups.length;if(!1!==this.helper.executeCallback.call(this,this.options.callback.onSendRequest,[this.node,this.query]))for(var r=0,s=this.requestGroups.length;r<s;++r)e=this.requestGroups[r],this.requests[e].isDuplicated||function(e,r){if("function"==typeof i.options.source[e].ajax){var s=i.options.source[e].ajax.call(i,i.query);if("object"!=typeof(r=i.extendXhrObject(i.generateRequestObject(e),"object"==typeof s?s:{})).request||!r.request.url)return i.populateSource([],e);i.requests[e]=r}var o,a=!1,l={};if(~r.request.url.indexOf("{{query}}")&&(a||(r=t.extend(!0,{},r),a=!0),r.request.url=r.request.url.replace("{{query}}",encodeURIComponent(i.query))),r.request.data)for(var h in r.request.data)if(r.request.data.hasOwnProperty(h)&&~String(r.request.data[h]).indexOf("{{query}}")){a||(r=t.extend(!0,{},r),a=!0),r.request.data[h]=r.request.data[h].replace("{{query}}",i.query);break}t.ajax(r.request).done((function(t,e,n){for(var s,a=0,h=r.validForGroup.length;a<h;a++)s=r.validForGroup[a],"function"==typeof(o=i.requests[s]).callback.done&&(l[s]=o.callback.done.call(i,t,e,n))})).fail((function(t,e,n){for(var s=0,a=r.validForGroup.length;s<a;s++)(o=i.requests[r.validForGroup[s]]).callback.fail instanceof Function&&o.callback.fail.call(i,t,e,n)})).always((function(t,e,s){for(var a,h=0,c=r.validForGroup.length;h<c;h++){if(a=r.validForGroup[h],(o=i.requests[a]).callback.always instanceof Function&&o.callback.always.call(i,t,e,s),"abort"===e)return;i.populateSource(null!==t&&"function"==typeof t.promise&&[]||l[a]||t,o.extra.group,o.extra.path||o.request.path),0==(n-=1)&&i.helper.executeCallback.call(i,i.options.callback.onReceiveRequest,[i.node,i.query])}})).then((function(t,e){for(var n=0,s=r.validForGroup.length;n<s;n++)(o=i.requests[r.validForGroup[n]]).callback.then instanceof Function&&o.callback.then.call(i,t,e)}))}(e,this.requests[e])},populateSource:function(e,i,n){var r=this,s=this.options.source[i],o=s.ajax&&s.data;n&&"string"==typeof n&&(e=this.helper.namespace.call(this,n,e)),Array.isArray(e)||(e=[]),o&&("function"==typeof o&&(o=o()),Array.isArray(o)&&(e=e.concat(o)));for(var a,l=s.display?"compiled"===s.display[0]?s.display[1]:s.display[0]:"compiled"===this.options.display[0]?this.options.display[1]:this.options.display[0],h=0,c=e.length;h<c;h++)null!==e[h]&&"boolean"!=typeof e[h]&&("string"==typeof e[h]&&((a={})[l]=e[h],e[h]=a),e[h].group=i);if(!this.hasDynamicGroups&&this.dropdownFilter.dynamic.length){var d,p,u={};for(h=0,c=e.length;h<c;h++)for(var f=0,m=this.dropdownFilter.dynamic.length;f<m;f++)d=this.dropdownFilter.dynamic[f].key,(p=e[h][d])&&(this.dropdownFilter.dynamic[f].value||(this.dropdownFilter.dynamic[f].value=[]),u[d]||(u[d]=[]),~u[d].indexOf(p.toLowerCase())||(u[d].push(p.toLowerCase()),this.dropdownFilter.dynamic[f].value.push(p)))}if(this.options.correlativeTemplate){var g=s.template||this.options.template,v="";if("function"==typeof g&&(g=g.call(this,"",{})),g){if(Array.isArray(this.options.correlativeTemplate))for(h=0,c=this.options.correlativeTemplate.length;h<c;h++)v+="{{"+this.options.correlativeTemplate[h]+"}} ";else v=g.replace(/<.+?>/g," ").replace(/\s{2,}/," ").trim();for(h=0,c=e.length;h<c;h++)e[h].compiled=t("<textarea />").html(v.replace(/\{\{([\w\-\.]+)(?:\|(\w+))?}}/g,(function(t,i){return r.helper.namespace.call(r,i,e[h],"get","")})).trim()).text();s.display?~s.display.indexOf("compiled")||s.display.unshift("compiled"):~this.options.display.indexOf("compiled")||this.options.display.unshift("compiled")}}this.options.callback.onPopulateSource&&(e=this.helper.executeCallback.call(this,this.options.callback.onPopulateSource,[this.node,e,i,n])),this.tmpSource[i]=Array.isArray(e)&&e||[];var y=this.options.source[i].cache,b=this.options.source[i].compression,_=this.options.source[i].ttl||this.options.ttl;if(y&&!window[y].getItem("TYPEAHEAD_"+this.selector+":"+i)){this.options.callback.onCacheSave&&(e=this.helper.executeCallback.call(this,this.options.callback.onCacheSave,[this.node,e,i,n]));var w=JSON.stringify({data:e,ttl:(new Date).getTime()+_});b&&(w=LZString.compressToUTF16(w)),window[y].setItem("TYPEAHEAD_"+this.selector+":"+i,w)}this.incrementGeneratedGroup(i)},incrementGeneratedGroup:function(t){if(this.generatedGroupCount++,this.generatedGroupCount===this.generateGroups.length||this.options.asyncResult){this.xhr&&this.xhr[t]&&delete this.xhr[t];for(var e=0,i=this.generateGroups.length;e<i;e++)this.source[this.generateGroups[e]]=this.tmpSource[this.generateGroups[e]];this.hasDynamicGroups||this.buildDropdownItemLayout("dynamic"),this.generatedGroupCount===this.generateGroups.length&&(this.xhr={},this.options.loadingAnimation&&this.container.removeClass("loading")),this.node.trigger("search"+this.namespace)}},navigate:function(t){if(this.helper.executeCallback.call(this,this.options.callback.onNavigateBefore,[this.node,this.query,t]),27===t.keyCode)return t.preventDefault(),void(this.query.length?(this.resetInput(),this.node.trigger("input"+this.namespace,[t])):(this.node.blur(),this.hideLayout()));if(this.result.length){var e,i=this.resultContainer.find("."+this.options.selector.item).not("[disabled]"),n=i.filter(".active"),r=n[0]?i.index(n):null,s=n[0]?n.attr("data-index"):null,o=null;if(this.clearActiveItem(),this.helper.executeCallback.call(this,this.options.callback.onLeave,[this.node,null!==r&&i.eq(r)||void 0,null!==s&&this.result[s]||void 0,t]),13===t.keyCode)return t.preventDefault(),void(0<n.length?"javascript:;"===n.find("a:first")[0].href?n.find("a:first").trigger("click",t):n.find("a:first")[0].click():this.node.closest("form").trigger("submit"));if(39!==t.keyCode){9===t.keyCode?this.options.blurOnTab?this.hideLayout():0<n.length?r+1<i.length?(t.preventDefault(),o=r+1,this.addActiveItem(i.eq(o))):this.hideLayout():i.length?(t.preventDefault(),o=0,this.addActiveItem(i.first())):this.hideLayout():38===t.keyCode?(t.preventDefault(),0<n.length?0<=r-1&&(o=r-1,this.addActiveItem(i.eq(o))):i.length&&(o=i.length-1,this.addActiveItem(i.last()))):40===t.keyCode&&(t.preventDefault(),0<n.length?r+1<i.length&&(o=r+1,this.addActiveItem(i.eq(o))):i.length&&(o=0,this.addActiveItem(i.first()))),e=null!==o?i.eq(o).attr("data-index"):null,this.helper.executeCallback.call(this,this.options.callback.onEnter,[this.node,null!==o&&i.eq(o)||void 0,null!==e&&this.result[e]||void 0,t]),t.preventInputChange&&~[38,40].indexOf(t.keyCode)&&this.buildHintLayout(null!==e&&e<this.result.length?[this.result[e]]:null),this.options.hint&&this.hint.container&&this.hint.container.css("color",t.preventInputChange?this.hint.css.color:null===e&&this.hint.css.color||this.hint.container.css("background-color")||"fff");var a=null===e||t.preventInputChange?this.rawQuery:this.getTemplateValue.call(this,this.result[e]);this.node.val(a),this.isContentEditable&&this.node.text(a),this.helper.executeCallback.call(this,this.options.callback.onNavigateAfter,[this.node,i,null!==o&&i.eq(o).find("a:first")||void 0,null!==e&&this.result[e]||void 0,this.query,t])}else null!==r?i.eq(r).find("a:first")[0].click():this.options.hint&&""!==this.hint.container.val()&&this.helper.getCaret(this.node[0])>=this.query.length&&i.filter('[data-index="'+this.hintIndex+'"]').find("a:first")[0].click()}},getTemplateValue:function(t){if(t){var e=t.group&&this.options.source[t.group].templateValue||this.options.templateValue;if("function"==typeof e&&(e=e.call(this)),!e)return this.helper.namespace.call(this,t.matchedKey,t).toString();var i=this;return e.replace(/\{\{([\w\-.]+)}}/gi,(function(e,n){return i.helper.namespace.call(i,n,t,"get","")}))}},clearActiveItem:function(){this.resultContainer.find("."+this.options.selector.item).removeClass("active")},addActiveItem:function(t){t.addClass("active")},searchResult:function(){this.resetLayout(),!1!==this.helper.executeCallback.call(this,this.options.callback.onSearch,[this.node,this.query])&&(!this.searchGroups.length||this.options.multiselect&&this.options.multiselect.limit&&this.items.length>=this.options.multiselect.limit||this.searchResultData(),this.helper.executeCallback.call(this,this.options.callback.onResult,[this.node,this.query,this.result,this.resultCount,this.resultCountPerGroup]),this.isDropdownEvent&&(this.helper.executeCallback.call(this,this.options.callback.onDropdownFilter,[this.node,this.query,this.filters.dropdown,this.result]),this.isDropdownEvent=!1))},searchResultData:function(){var e,i,n,r,s,o,a,l,h,c,d,p=this.groupBy,u=null,f=this.query.toLowerCase(),m=this.options.maxItem,g=this.options.maxItemPerGroup,v=this.filters.dynamic&&!this.helper.isEmpty(this.filters.dynamic),y="function"==typeof this.options.matcher&&this.options.matcher;this.options.accent&&(f=this.helper.removeAccent.call(this,f));for(var b=0,_=this.searchGroups.length;b<_;++b)if(A=this.searchGroups[b],(!this.filters.dropdown||"group"!==this.filters.dropdown.key||this.filters.dropdown.value===A)&&(s=void 0!==this.options.source[A].filter?this.options.source[A].filter:this.options.filter,a="function"==typeof this.options.source[A].matcher&&this.options.source[A].matcher||y,this.source[A]))for(var w=0,x=this.source[A].length;w<x&&(!(this.resultItemCount>=m)||this.options.callback.onResult);w++)if((!v||this.dynamicFilter.validate.apply(this,[this.source[A][w]]))&&null!==(e=this.source[A][w])&&"boolean"!=typeof e&&(!this.options.multiselect||this.isMultiselectUniqueData(e))&&(!this.filters.dropdown||(e[this.filters.dropdown.key]||"").toLowerCase()===(this.filters.dropdown.value||"").toLowerCase())){if((u="group"===p?A:e[p]?e[p]:e.group)&&!this.tmpResult[u]&&(this.tmpResult[u]=[],this.resultCountPerGroup[u]=0),g&&"group"===p&&this.tmpResult[u].length>=g&&!this.options.callback.onResult)break;for(var S=0,E=(P=this.options.source[A].display||this.options.display).length;S<E;++S){if(!1!==s){if(void 0===(r=/\./.test(P[S])?this.helper.namespace.call(this,P[S],e):e[P[S]])||""===r)continue;r=this.helper.cleanStringFromScript(r)}if("function"==typeof s){if(void 0===(o=s.call(this,e,r)))break;if(!o)continue;"object"==typeof o&&(e=o)}if(~[void 0,!0].indexOf(s)){if(null===r)continue;if(n=(n=r).toString().toLowerCase(),this.options.accent&&(n=this.helper.removeAccent.call(this,n)),i=n.indexOf(f),this.options.correlativeTemplate&&"compiled"===P[S]&&i<0&&/\s/.test(f)){h=!0,d=n;for(var C=0,T=(c=f.split(" ")).length;C<T;
190C++)if(""!==c[C]){if(!~d.indexOf(c[C])){h=!1;break}d=d.replace(c[C],"")}}if(i<0&&!h)continue;if(this.options.offset&&0!==i)continue;if(a){if(void 0===(l=a.call(this,e,r)))break;if(!l)continue;"object"==typeof l&&(e=l)}}if(this.resultCount++,this.resultCountPerGroup[u]++,this.resultItemCount<m){if(g&&this.tmpResult[u].length>=g)break;this.tmpResult[u].push(t.extend(!0,{matchedKey:P[S]},e)),this.resultItemCount++}break}if(!this.options.callback.onResult){if(this.resultItemCount>=m)break;if(g&&this.tmpResult[u].length>=g&&"group"===p)break}}if(this.options.order){var k,P=[];for(var A in this.tmpResult)if(this.tmpResult.hasOwnProperty(A)){for(b=0,_=this.tmpResult[A].length;b<_;b++)k=this.options.source[this.tmpResult[A][b].group].display||this.options.display,~P.indexOf(k[0])||P.push(k[0]);this.tmpResult[A].sort(this.helper.sort(P,"asc"===this.options.order,(function(t){return t?t.toString().toUpperCase():""})))}}var M,D=[];for(b=0,_=(M="function"==typeof this.options.groupOrder?this.options.groupOrder.apply(this,[this.node,this.query,this.tmpResult,this.resultCount,this.resultCountPerGroup]):Array.isArray(this.options.groupOrder)?this.options.groupOrder:"string"==typeof this.options.groupOrder&&~["asc","desc"].indexOf(this.options.groupOrder)?Object.keys(this.tmpResult).sort(this.helper.sort([],"asc"===this.options.groupOrder,(function(t){return t.toString().toUpperCase()}))):Object.keys(this.tmpResult)).length;b<_;b++)D=D.concat(this.tmpResult[M[b]]||[]);this.groups=JSON.parse(JSON.stringify(M)),this.result=D},buildLayout:function(){this.buildHtmlLayout(),this.buildBackdropLayout(),this.buildHintLayout(),this.options.callback.onLayoutBuiltBefore&&(this.tmpResultHtml=this.helper.executeCallback.call(this,this.options.callback.onLayoutBuiltBefore,[this.node,this.query,this.result,this.resultHtml])),this.tmpResultHtml instanceof t?this.resultContainer.html(this.tmpResultHtml):this.resultHtml instanceof t&&this.resultContainer.html(this.resultHtml),this.options.callback.onLayoutBuiltAfter&&this.helper.executeCallback.call(this,this.options.callback.onLayoutBuiltAfter,[this.node,this.query,this.result])},buildHtmlLayout:function(){if(!1!==this.options.resultContainer){var e;if(this.resultContainer||(this.resultContainer=t("<div/>",{class:this.options.selector.result}),this.container.append(this.resultContainer)),!this.result.length&&this.generatedGroupCount===this.generateGroups.length)if(this.options.multiselect&&this.options.multiselect.limit&&this.items.length>=this.options.multiselect.limit)e=this.options.multiselect.limitTemplate?"function"==typeof this.options.multiselect.limitTemplate?this.options.multiselect.limitTemplate.call(this,this.query):this.options.multiselect.limitTemplate.replace(/\{\{query}}/gi,t("<div>").text(this.helper.cleanStringFromScript(this.query)).html()):"Can't select more than "+this.items.length+" items.";else{if(!this.options.emptyTemplate||""===this.query)return;e="function"==typeof this.options.emptyTemplate?this.options.emptyTemplate.call(this,this.query):this.options.emptyTemplate.replace(/\{\{query}}/gi,t("<div>").text(this.helper.cleanStringFromScript(this.query)).html())}this.displayEmptyTemplate=!!e;var i=this.query.toLowerCase();this.options.accent&&(i=this.helper.removeAccent.call(this,i));var n=this,r=this.groupTemplate||"<ul></ul>",s=!1;this.groupTemplate?r=t(r.replace(/<([^>]+)>\{\{(.+?)}}<\/[^>]+>/g,(function(t,i,r,o,a){var l="",h="group"===r?n.groups:[r];if(!n.result.length)return!0===s?"":(s=!0,"<"+i+' class="'+n.options.selector.empty+'">'+e+"</"+i+">");for(var c=0,d=h.length;c<d;++c)l+="<"+i+' data-group-template="'+h[c]+'"><ul></ul></'+i+">";return l}))):(r=t(r),this.result.length||r.append(e instanceof t?e:'<li class="'+n.options.selector.empty+'">'+e+"</li>")),r.addClass(this.options.selector.list+(this.helper.isEmpty(this.result)?" empty":""));for(var o,a,l,h,c,d,p,u,f,m,g,v,y,b=this.groupTemplate&&this.result.length&&n.groups||[],_=0,w=this.result.length;_<w;++_)o=(l=this.result[_]).group,h=!this.options.multiselect&&this.options.source[l.group].href||this.options.href,u=[],f=this.options.source[l.group].display||this.options.display,this.options.group&&(o=l[this.options.group.key],this.options.group.template&&("function"==typeof this.options.group.template?a=this.options.group.template.call(this,l):"string"==typeof this.options.group.template&&(a=this.options.group.template.replace(/\{\{([\w\-\.]+)}}/gi,(function(t,e){return n.helper.namespace.call(n,e,l,"get","")})))),r.find('[data-search-group="'+o+'"]')[0]||(this.groupTemplate?r.find('[data-group-template="'+o+'"] ul'):r).append(t("<li/>",{class:n.options.selector.group,html:t("<a/>",{href:"javascript:;",html:a||o,tabindex:-1}),"data-search-group":o}))),this.groupTemplate&&b.length&&~(g=b.indexOf(o||l.group))&&b.splice(g,1),c=t("<li/>",{class:n.options.selector.item+" "+n.options.selector.group+"-"+this.helper.slugify.call(this,o),disabled:!!l.disabled,"data-group":o,"data-index":_,html:t("<a/>
190",{href:h&&!l.disabled?(v=h,y=l,y.href=n.generateHref.call(n,v,y)):"javascript:;",html:function(){if(d=l.group&&n.options.source[l.group].template||n.options.template)"function"==typeof d&&(d=d.call(n,n.query,l)),p=d.replace(/\{\{([^\|}]+)(?:\|([^}]+))*}}/gi,(function(t,e,r){var s=n.helper.cleanStringFromScript(String(n.helper.namespace.call(n,e,l,"get","")));return~(r=r&&r.split("|")||[]).indexOf("slugify")&&(s=n.helper.slugify.call(n,s)),~r.indexOf("raw")||!0===n.options.highlight&&i&&~f.indexOf(e)&&(s=n.helper.highlight.call(n,s,i.split(" "),n.options.accent)),s}));else{for(var e=0,r=f.length;e<r;e++)void 0!==(m=/\./.test(f[e])?n.helper.namespace.call(n,f[e],l,"get",""):l[f[e]])&&""!==m&&u.push(m);p='<span class="'+n.options.selector.display+'">'+n.helper.cleanStringFromScript(String(u.join(" ")))+"</span>"}(!0===n.options.highlight&&i&&!d||"any"===n.options.highlight)&&(p=n.helper.highlight.call(n,p,i.split(" "),n.options.accent)),t(this).append(p)}})}),function(e,i,r){r.on("click",(function(e,r){i.disabled?e.preventDefault():(r&&"object"==typeof r&&(e.originalEvent=r),n.options.mustSelectItem&&n.helper.isEmpty(i)?e.preventDefault():(n.options.multiselect||(n.item=i),!1!==n.helper.executeCallback.call(n,n.options.callback.onClickBefore,[n.node,t(this),i,e])&&(e.originalEvent&&e.originalEvent.defaultPrevented||e.isDefaultPrevented()||(n.options.multiselect?(n.query=n.rawQuery="",n.addMultiselectItemLayout(i)):(n.focusOnly=!0,n.query=n.rawQuery=n.getTemplateValue.call(n,i),n.isContentEditable&&(n.node.text(n.query),n.helper.setCaretAtEnd(n.node[0]))),n.hideLayout(),n.node.val(n.query).focus(),n.options.cancelButton&&n.toggleCancelButtonVisibility(),n.helper.executeCallback.call(n,n.options.callback.onClickAfter,[n.node,t(this),i,e])))))})),r.on("mouseenter",(function(e){i.disabled||(n.clearActiveItem(),n.addActiveItem(t(this))),n.helper.executeCallback.call(n,n.options.callback.onEnter,[n.node,t(this),i,e])})),r.on("mouseleave",(function(e){i.disabled||n.clearActiveItem(), 191n.helper.executeCallback.call(n,n.options.callback.onLeave,[n.node,t(this),i,e])}))}(0,l,c),(this.groupTemplate?r.find('[data-group-template="'+o+'"] ul'):r).append(c);if(this.result.length&&b.length)for(_=0,w=b.length;_<w;++_)r.find('[data-group-template="'+b[_]+'"]').remove();this.resultHtml=r}},generateHref:function(t,e){var i=this;return"string"==typeof t?t=t.replace(/\{\{([^\|}]+)(?:\|([^}]+))*}}/gi,(function(t,n,r){var s=i.helper.namespace.call(i,n,e,"get","");return~(r=r&&r.split("|")||[]).indexOf("slugify")&&(s=i.helper.slugify.call(i,s)),s})):"function"==typeof t&&(t=t.call(this,e)),t},getMultiselectComparedData:function(t){var e="";if(Array.isArray(this.options.multiselect.matchOn))for(var i=0,n=this.options.multiselect.matchOn.length;i<n;++i)e+=void 0!==t[this.options.multiselect.matchOn[i]]?t[this.options.multiselect.matchOn[i]]:"";else{var r=JSON.parse(JSON.stringify(t)),s=["group","matchedKey","compiled","href"];for(i=0,n=s.length;i<n;++i)delete r[s[i]];e=JSON.stringify(r)}return e},buildBackdropLayout:function(){this.options.backdrop&&(this.backdrop.container||(this.backdrop.css=t.extend({opacity:.6,filter:"alpha(opacity=60)",position:"fixed",top:0,right:0,bottom:0,left:0,"z-index":1040,"background-color":"#000"},this.options.backdrop),this.backdrop.container=t("<div/>",{class:this.options.selector.backdrop,css:this.backdrop.css}).insertAfter(this.container)),this.container.addClass("backdrop").css({"z-index":this.backdrop.css["z-index"]+1,position:"relative"}))},buildHintLayout:function(e){if(this.options.hint)if(this.node[0].scrollWidth>Math.ceil(this.node.innerWidth()))this.hint.container&&this.hint.container.val("");else{var i=this,n="",r=(e=e||this.result,this.query.toLowerCase());if(this.options.accent&&(r=this.helper.removeAccent.call(this,r)),this.hintIndex=null,this.searchGroups.length){if(this.hint.container||(this.hint.css=t.extend({"border-color":"transparent",position:"absolute",top:0,display:"inline","z-index":-1,float:"none",color:"silver","box-shadow":"none",cursor:"default","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"},this.options.hint),this.hint.container=t("<"+this.node[0].nodeName+"/>",{type:this.node.attr("type"),class:this.node.attr("class"),readonly:!0,unselectable:"on","aria-hidden":"true",tabindex:-1,
191click:function(){i.node.focus()}}).addClass(this.options.selector.hint).css(this.hint.css).insertAfter(this.node),this.node.parent().css({position:"relative"})),this.hint.container.css("color",this.hint.css.color),r)for(var s,o,a,l=0,h=e.length;l<h;l++)if(!e[l].disabled){o=e[l].group;for(var c=0,d=(s=this.options.source[o].display||this.options.display).length;c<d;c++)if(a=String(e[l][s[c]]).toLowerCase(),this.options.accent&&(a=this.helper.removeAccent.call(this,a)),0===a.indexOf(r)){n=String(e[l][s[c]]),this.hintIndex=l;break}if(null!==this.hintIndex)break}var p=0<n.length&&this.rawQuery+n.substring(this.query.length)||"";this.hint.container.val(p),this.isContentEditable&&this.hint.container.text(p)}}},buildDropdownLayout:function(){if(this.options.dropdownFilter){var e=this;t("<span/>",{class:this.options.selector.filter,html:function(){t(this).append(t("<button/>",{type:"button",class:e.options.selector.filterButton,style:"display: none;",click:function(){e.container.toggleClass("filter");var i=e.namespace+"-dropdown-filter";t("html").off(i),e.container.hasClass("filter")&&t("html").on("click"+i+" touchend"+i,(function(n){t(n.target).closest("."+e.options.selector.filter)[0]&&t(n.target).closest(e.container)[0]||e.hasDragged||(e.container.removeClass("filter"),t("html").off(i))}))}})),t(this).append(t("<ul/>",{class:e.options.selector.dropdown}))}}).insertAfter(e.container.find("."+e.options.selector.query))}},buildDropdownItemLayout:function(e){if(this.options.dropdownFilter){var i,n,r=this,s="string"==typeof this.options.dropdownFilter&&this.options.dropdownFilter||"All",o=this.container.find("."+this.options.selector.dropdown);"static"!==e||!0!==this.options.dropdownFilter&&"string"!=typeof this.options.dropdownFilter||this.dropdownFilter.static.push({key:"group",template:"{{group}}",all:s,value:Object.keys(this.options.source)});for(var a=0,l=this.dropdownFilter[e].length;a<l;a++){n=this.dropdownFilter[e][a],Array.isArray(n.value)||(n.value=[n.value]),n.all&&(this.dropdownFilterAll=n.all);for(var h=0,c=n.value.length;h<=c;h++)h===c&&a!==l-1||h===c&&a===l-1&&"static"===e&&this.dropdownFilter.dynamic.length||(i=this.dropdownFilterAll||s,n.value[h]?i=n.template?n.template.replace(new RegExp("{{"+n.key+"}}","gi"),n.value[h]):n.value[h]:this.container.find("."+r.options.selector.filterButton).html(i),function(e,i,n){o.append(t("<li/>",{class:r.options.selector.dropdownItem+" "+r.helper.slugify.call(r,i.key+"-"+(i.value[e]||s)),html:t("<a/>",{href:"javascript:;",html:n,click:function(t){t.preventDefault(),d.call(r,{key:i.key,value:i.value[e]||"*",template:n})}})}))}(h,n,i))}this.dropdownFilter[e].length&&this.container.find("."+r.options.selector.filterButton).removeAttr("style")}function d(t){"*"===t.value?delete this.filters.dropdown:this.filters.dropdown=t,this.container.removeClass("filter").find("."+this.options.selector.filterButton).html(t.template),this.isDropdownEvent=!0,this.node.trigger("input"+this.namespace),this.options.multiselect&&this.adjustInputSize(),this.node.focus()}},dynamicFilter:{init:function(){this.options.dynamicFilter&&(this.dynamicFilter.bind.call(this),this.isDynamicFilterEnabled=!0)},validate:function(t){var e,i,n=null,r=null;for(var s in this.filters.dynamic)if(this.filters.dynamic.hasOwnProperty(s)&&(i=~s.indexOf(".")?this.helper.namespace.call(this,s,t,"get"):t[s],"|"!==this.filters.dynamic[s].modifier||n||(n=i==this.filters.dynamic[s].value||!1),"&"===this.filters.dynamic[s].modifier)){if(i!=this.filters.dynamic[s].value){r=!1;break}r=!0}return e=n,null!==r&&!0===(e=r)&&null!==n&&(e=n),!!e},set:function(t,e){var i=t.match(/^([|&])?(.+)/);e?this.filters.dynamic[i[2]]={modifier:i[1]||"|",value:e}:delete this.filters.dynamic[i[2]],this.isDynamicFilterEnabled&&this.generateSource()},bind:function(){for(var e,i=this,n=0,r=this.options.dynamicFilter.length;n<r;n++)"string"==typeof(e=this.options.dynamicFilter[n]).selector&&(e.selector=t(e.selector)),e.selector instanceof t&&e.selector[0]&&e.key&&function(t){t.selector.off(i.namespace).on("change"+i.namespace,(function(){i.dynamicFilter.set.apply(i,[t.ke
191y,i.dynamicFilter.getValue(this)])})).trigger("change"+i.namespace)}(e)},getValue:function(t){var e;return"SELECT"===t.tagName?e=t.value:"INPUT"===t.tagName&&("checkbox"===t.type?e=t.checked&&t.getAttribute("value")||t.checked||null:"radio"===t.type&&t.checked&&(e=t.value)),e}},buildMultiselectLayout:function(){if(this.options.multiselect){var e,i=this;this.label.container=t("<span/>",{class:this.options.selector.labelContainer,"data-padding-left":parseFloat(this.node.css("padding-left"))||0,"data-padding-right":parseFloat(this.node.css("padding-right"))||0,"data-padding-top":parseFloat(this.node.css("padding-top"))||0,click:function(e){t(e.target).hasClass(i.options.selector.labelContainer)&&i.node.focus()}}),this.node.closest("."+this.options.selector.query).prepend(this.label.container),this.options.multiselect.data&&(Array.isArray(this.options.multiselect.data)?this.populateMultiselectData(this.options.multiselect.data):"function"==typeof this.options.multiselect.data&&(e=this.options.multiselect.data.call(this),Array.isArray(e)?this.populateMultiselectData(e):"function"==typeof e.promise&&t.when(e).then((function(t){t&&Array.isArray(t)&&i.populateMultiselectData(t)}))))}},isMultiselectUniqueData:function(t){for(var e=!0,i=0,n=this.comparedItems.length;i<n;++i)if(this.comparedItems[i]===this.getMultiselectComparedData(t)){e=!1;break}return e},populateMultiselectData:function(t){for(var e=0,i=t.length;e<i;++e)this.addMultiselectItemLayout(t[e]);this.node.trigger("search"+this.namespace,{origin:"populateMultiselectData"})},addMultiselectItemLayout:function(e){if(this.isMultiselectUniqueData(e)){this.items.push(e),this.comparedItems.push(this.getMultiselectComparedData(e));var i,n=this.getTemplateValue(e),r=this,s=this.options.multiselect.href?"a":"span",o=t("<span/>",{class:this.options.selector.label,html:t("<"+s+"/>",{text:n,click:function(e){var i=t(this).closest("."+r.options.selector.label),n=r.label.container.find("."+r.options.selector.label).index(i);r.options.multiselect.callback&&r.helper.executeCallback.call(r,r.options.multiselect.callback.onClick,[r.node,r.items[n],e])},href:this.options.multiselect.href?(i=r.items[r.items.length-1],r.generateHref.call(r,r.options.multiselect.href,i)):null})});return o.append(t("<span/>",{class:this.options.selector.cancelButton,html:"Ã",click:function(e){var i=t(this).closest("."+r.options.selector.label),n=r.label.container.find("."+r.options.selector.label).index(i);r.cancelMultiselectItem(n,i,e)}})),this.label.container.append(o),this.adjustInputSize(),!0}},cancelMultiselectItem:function(t,e,i){var n=this.items[t];(e=e||this.label.container.find("."+this.options.selector.label).eq(t)).remove(),this.items.splice(t,1),this.comparedItems.splice(t,1),this.options.multiselect.callback&&this.helper.executeCallback.call(this,this.options.multiselect.callback.onCancel,[this.node,n,i]),this.adjustInputSize(),this.focusOnly=!0,this.node.focus().trigger("input"+this.namespace,{origin:"cancelMultiselectItem"})},adjustInputSize:function(){var e=this.node[0].getBoundingClientRect().width-(parseFloat(this.label.container.data("padding-right"))||0)-(parseFloat(this.label.container.css("padding-left"))||0),i=0,n=0,r=0,s=!1,o=0;this.label.container.find("."+this.options.selector.label).filter((function(a,l){0===a&&(o=t(l)[0].getBoundingClientRect().height+parseFloat(t(l).css("margin-bottom")||0)),i=t(l)[0].getBoundingClientRect().width+parseFloat(t(l).css("margin-right")||0),.7*e<r+i&&!s&&(n++,s=!0),r+i<e?r+=i:(s=!1,r=i)}));var a=parseFloat(this.label.container.data("padding-left")||0)+(s?0:r),l=n*o+parseFloat(this.label.container.data("padding-top")||0);this.container.find("."+this.options.selector.query).find("input, textarea, [contenteditable], .typeahead__hint").css({paddingLeft:a,paddingTop:l})},showLayout:function(){!this.container.hasClass("result")&&(this.result.length||this.displayEmptyTemplate||this.options.backdropOnFocus)&&(function(){var e=this;t("html").off("keydown"+this.namespace).on("keydown"+this.namespace,(function(i){i.keyCode&&9===i.keyCode&&setTimeout((function(){t(":focus").closest(e.container).find(e.node)[0]||e.hideLayout()}),0)})),t("html").off("click"+this.namespace+" touchend"+this.namespace).on("click"+this.namespace+" touchend"+this.namespace,(function(i){t(i.target).closest(e.container)[0]||t(i.target).closest("."+e.options.selector.item)[0]||i.target.className===e.options.selector.cancelButton||e.hasDragged||e.hideLayout()}))}.call(this),this.container.addClass([this.result.length||this.searchGroups.length&&this.displayEmptyTemplate?"result ":"",this.options.hint&&this.searchGroups.length?"hint":"",this.options.backdrop||this.options.backdropOnFocus?"backdrop":""].join(" ")),this.helper.executeCallback.call(this,this.options.callback.onShowLayout,[this.node,this.query]))},hideLayout:function(){(this.container.hasClass("result")||this.container.hasClass("backdrop"))&&(this.container.removeClass("result hint filter"+(this.options.backdropOnFocus&&t(this.node).is(":focus")?"":" backdrop")),this.options.backdropOnFocus&&this.container.hasClass("backdrop")||(t("html").off(this.namespace),this.helper.executeCallback.call(this,this.options.callback.onHideLayout,[this.node,this.query])))},resetLayout:function(){this.result=[],this.tmpResult={},this.groups=[],this.resultCount=0,this.resultCountPerGroup={},this.resultItemCount=0,this.resultHtml=null,this.options.hint&&this.hint.container&&(this.hint.container.val(""),this.isContentEditable&&this.hint.container.text(""))},resetInput:function(){this.node.val(""),this.isContentEditable&&this.node.text(""),this.query="",this.rawQuery=""},buildCancelButtonLayout:function(){if(this.options.cancelButton){var e=this;t("<span/>",{class:this.options.selector.cancelButton,html:"Ã",mousedown:function(t){t.stopImmediatePropagation(),t.preventDefault(),e.resetInput(),e.node.trigger("input"+e.namespace,[t])}}).insertBefore(this.node)}},toggleCancelButtonVisibility:function(){this.container.toggleClass("cancel",!!this.query.length)},__construct:function(){this.extendOptions(),this.unifySourceFormat()&&(this.dynamicFilter.init.a
191pply(this),this.init(),this.buildDropdownLayout(),this.buildDropdownItemLayout("static"),this.buildMultiselectLayout(),this.delegateEvents(),this.buildCancelButtonLayout(),this.helper.executeCallback.call(this,this.options.callback.onReady,[this.node]))},helper:{isEmpty:function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},removeAccent:function(t){if("string"==typeof t){var e=r;return"object"==typeof this.options.accent&&(e=this.options.accent),t.toLowerCase().replace(new RegExp("["+e.from+"]","g"),(function(t){return e.to[e.from.indexOf(t)]}))}},slugify:function(t){return""!==(t=String(t))&&(t=(t=this.helper.removeAccent.call(this,t)).replace(/[^-a-z0-9]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")),t},sort:function(t,e,i){function n(e){for(var n=0,r=t.length;n<r;n++)if(void 0!==e[t[n]])return i(e[t[n]]);return e}return e=[-1,1][+!!e],function(t,i){return t=n(t),i=n(i),e*((i<t)-(t<i))}},replaceAt:function(t,e,i,n){return t.substring(0,e)+n+t.substring(e+i)},highlight:function(t,e,i){t=String(t);var n=i&&this.helper.removeAccent.call(this,t)||t,r=[];Array.isArray(e)||(e=[e]),e.sort((function(t,e){return e.length-t.length}));for(var s=e.length-1;0<=s;s--)""!==e[s].trim()?e[s]=e[s].replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e.splice(s,1);for(n.replace(new RegExp("(?:"+e.join("|")+")(?!([^<]+)?>)","gi"),(function(t,e,i){r.push({offset:i,length:t.length})})),s=r.length-1;0<=s;s--)t=this.helper.replaceAt(t,r[s].offset,r[s].length,"<strong>"+t.substr(r[s].offset,r[s].length)+"</strong>");return t},getCaret:function(t){var e=0;if(t.selectionStart)return t.selectionStart;if(document.selection){var i=document.selection.createRange();if(null===i)return e;var n=t.createTextRange(),r=n.duplicate();n.moveToBookmark(i.getBookmark()),r.setEndPoint("EndToStart",n),e=r.text.length}else if(window.getSelection){var s=window.getSelection();if(s.rangeCount){var o=s.getRangeAt(0);o.commonAncestorContainer.parentNode==t&&(e=o.endOffset)}}return e},setCaretAtEnd:function(t){if(void 0!==window.getSelection&&void 0!==document.createRange){var e=document.createRange();e.selectNodeContents(t),e.collapse(!1);var i=window.getSelection();i.removeAllRanges(),i.addRange(e)}else if(void 0!==document.body.createTextRange){var n=document.body.createTextRange();n.moveToElementText(t),n.collapse(!1),n.select()}},cleanStringFromScript:function(t){return"string"==typeof t&&t.replace(/<\/?(?:script|iframe)\b[^>]*>/gm,"")||t},executeCallback:function(t,e){if(t){var i;if("function"==typeof t)i=t;else if(("string"==typeof t||Array.isArray(t))&&("string"==typeof t&&(t=[t,[]]),"function"!=typeof(i=this.helper.namespace.call(this,t[0],window))))return;return i.apply(this,(t[1]||[]).concat(e||[]))}},namespace:function(t,e,i,n){if("string"!=typeof t||""===t)return!1;var r=void 0!==n?n:void 0;if(!~t.indexOf("."))return e[t]||r;for(var s=t.split("."),o=e||window,a=(i=i||"get",""),l=0,h=s.length;l<h;l++){if(void 0===o[a=s[l]]){if(~["get","delete"].indexOf(i))return void 0!==n?n:void 0;o[a]={}}if(~["set","create","delete"].indexOf(i)&&l===h-1){if("set"!==i&&"create"!==i)return delete o[a],!0;o[a]=r}o=o[a]}return o},typeWatch:(i=0,function(t,e){clearTimeout(i),i=setTimeout(t,e)})}},t.fn.typeahead=t.typeahead=function(t){return l.typeahead(this,t)};var l={typeahead:function(i,n){if(n&&n.source&&"object"==typeof n.source){if("function"==typeof i){if(!n.input)return;i=t(n.input)}if(i.length){if(void 0===i[0].value&&(i[0].value=i.text()),1===i.length)return i[0].selector=i.selector||n.input||i[0].nodeName.toLowerCase(),window.Typeahead[i[0].selector]=new e(i,n);for(var r,s={},o=0,a=i.length;o<a;++o)void 0!==s[r=i[o].nodeName.toLowerCase()]&&(r+=o),i[o].selector=r,window.Typeahead[r]=s[r]=new e(i.eq(o),n);return s}}}};return window.console=window.console||{log:function(){}},Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),"trim"in String.prototype||(String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}),"indexOf"in Array.prototype||(Array.prototype.indexOf=function(t,e){void 0===e&&(e=0),e<0&&(e+=this.length),e<0&&(e=0);for(var i=this.length;e<i;e++)if(e in this&&this[e]===t)return e;return-1}),Object.keys||(Object.keys=function(t){var e,i=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&i.push(e);return i}),e}));"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=function(e,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(i),i}:t(jQuery)}((function(t){var e=0;t.fn.TouchSpin=function(i){var n={min:0,max:100,initval:"",replacementval:"",firstclickvalueifempty:null,step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:!1,verticalup:"+",verticaldown:"−",verticalupclass:"",verticaldownclass:"",prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:"btn btn-primary",buttonup_class:"btn btn-primary",buttondown_txt:"−",buttonup_txt:"+",callback_before_calculation:function(t){return t},callback_after_calculation:function(t){return t}},r={min:"min",max:"max",initval:"init-val",replacementval:"replacement-val",firstclickvalueifempty:"first-click-value-if-empty",step:"step",decimals:"decimals",stepinterval:"step-interval",verticalbuttons:"vertical-buttons",verticalupclass:"vertical-up-class",verticaldownclass:"vertical-down-class",forcestepdivisibility:"force-step-divisibility",stepintervaldelay:"step-interval-delay",prefix:"prefix",postfix:"postfix",prefix_extraclass:"prefix-extra-class",postfix_extraclass:"postfix-extra-class",booster:"booster",boostat:"boostat",maxboostedstep:"max-boosted-step",mousewheel:"mouse-wheel",buttondown_class:"button-down-class",buttonup_class:"button-up-class",buttondown_txt:"button-down-txt",buttonup_txt:"button-up-txt"};return this.each((function(){var s,o,a,l,h,c,d,p,u,f,m,g,v,y,b,_,w,x=t(this),S=x.data(),E=0,C=!1;function T(){""===s.prefix&&(o=l.prefix.detach()),""===s.postfix&&(a=l.postfix.detach())}function k(){var t,e,i=s.callback_before_calculation(x.val());""===i?""!==s.replacementval&&(x.val(s.replacementval),x.trigger("change")):0<s.decimals&&"."===i||(t=parseFloat(i),(e=t=isNaN(t)?""!==s.replacementval?s.replacementval:0:t).toString()!==i&&(e=t),e=function(t){switch(s.forcestepdivisibility){case"round":return(Math.round(t/s.step)*s.step).toFixed(s.decimals);case"floor":return(Math.floor(t/s.step)*s.step).toFixed(s.decimals);case"ceil":return(Math.ceil(t/s.step)*s.step).toFixed(s.decimals);default:return t.toFixed(s.decimals)}}(t),null!==s.min&&t<s.min&&(e=s.min),null!==s.max&&t>s.max&&(e=s.max),parseFloat(t).toString()!==parseFloat(e).toString()&&x.val(e),x.val(s.callback_after_calculation(parseFloat(e).toFixed(s.decimals))))}function P(){var t;return s.booster?(t=Math.pow(2,Math.floor(E/s.boostat))*s.step,s.maxboostedstep&&t>s.maxboostedstep&&(t=s.maxboostedstep,c=Math.round(c/t)*t),Math.max(s.step,t)):s.step}function A(){return"number"==typeof s.firstclickvalueifempty?s.firstclickvalueifempty:(s.min+s.max)/2}function M(){var t=x.is(":disabled,[readonly]");l.up.prop("disabled",t),l.down.prop("disabled",t),t&&F()}function D(){var t,e;x.is(":disabled,[readonly]")||(k(),t=c=parseFloat(s.callback_before_calculation(l.input.val())),isNaN(c)?c=A():(e=P(),c+=e),null!==s.max&&c>=s.max&&(c=s.max,x.trigger("touchspin.on.max"),F()),l.input.val(s.callback_after_calculation(parseFloat(c).toFixed(s.decimals))),t!==c&&x.trigger("change"))}function I(){var t,e;x.is(":disabled,[readonly]")||(k(),t=c=parseFloat(s.callback_before_calculation(l.input.val())),isNaN(c)?c=A():(e=P(),c-=e),null!==s.min&&c<=s.min&&(c=s.min,x.trigger("touchspin.on.min"),F()),l.input.val(s.callback_after_calculation(parseFloat(c).toFixed(s.decimals))),t!==c&&x.trigger("change"))}function O(){x.is(":disabled,[readonly]")||(F(),E=0,C="down",x.trigger("touchspin.on.startspin"),x.trigger("touchspin.on.startdownspin"),u=setTimeout((function(){d=setInterval((function(){E++,I()}),s.stepinterval)}),s.stepintervaldelay))}function L(){x.is(":disabled,[readonly]")||(F(),E=0,C="up",x.trigger("touchspin.on.startspin"),x.trigger("touchspin.on.startupspin"),f=setTimeout((function(){p=setInterval((function(){E++,D()}),s.stepinterval)}),s.stepintervaldelay))}function F(){switch(clearTimeout(u),clearTimeout(f),clearInterval(d),clearInterval(p),C){case"up":x.trigger("touchspin.on.stopupspin"),x.trigger("touchspin.on.stopspin");break;case"down":x.trigger("touchspin.on.stopdownspin"),x.trigger("touchspin.on.stopspin")}E=0,C=!1}x.data("alreadyinitialized")||(x.data("alreadyinitialized",!0),e
191+=1,x.data("spinnerid",e),x.is("input")?(s=t.extend({},n,S,function(){var e={};return t.each(r,(function(t,i){i="bts-"+i,x.is("[data-"+i+"]")&&(e[t]=x.data(i))})),t.each(["min","max","step"],(function(t,i){x.is("["+i+"]")&&(void 0!==e[i]&&console.warn('Both the "data-bts-'+i+'" data attribute and the "'+i+'" individual attribute were specified, the individual attribute will take precedence on: ',x),e[i]=x.attr(i))})),e}(),i),1!==parseFloat(s.step)&&(0!=(m=s.max%s.step)&&(s.max=parseFloat(s.max)-m),0!=(m=s.min%s.step))&&(s.min=parseFloat(s.min)+(parseFloat(s.step)-m)),""!==s.initval&&""===x.val()&&x.val(s.initval),k(),m=x.val(),S=x.parent(),""!==m&&(m=s.callback_before_calculation(m),m=s.callback_after_calculation(parseFloat(m).toFixed(s.decimals))),x.data("initvalue",m).val(m),x.addClass("form-control"),h='\n <span class="input-group-addon bootstrap-touchspin-vertical-button-wrapper">\n <span class="input-group-btn-vertical">\n <button tabindex="-1" class="'.concat(s.buttondown_class," bootstrap-touchspin-up ").concat(s.verticalupclass,'" type="button">').concat(s.verticalup,'</button>\n <button tabindex="-1" class="').concat(s.buttonup_class," bootstrap-touchspin-down ").concat(s.verticaldownclass,'" type="button">').concat(s.verticaldown,"</button>\n </span>\n </span>\n "),S.hasClass("input-group")?(S.addClass("bootstrap-touchspin"),w=x.prev(),y=x.next(),b='\n <span class="input-group-addon input-group-prepend bootstrap-touchspin-prefix input-group-prepend bootstrap-touchspin-injected">\n <span class="input-group-text">'.concat(s.prefix,"</span>\n </span>\n "),_='\n <span class="input-group-addon input-group-append bootstrap-touchspin-postfix input-group-append bootstrap-touchspin-injected">\n <span class="input-group-text">'.concat(s.postfix,"</span>\n </span>\n "),s.verticalbuttons?t(h).insertAfter(x):(w.hasClass("input-group-btn")||w.hasClass("input-group-prepend")?(g='\n <button tabindex="-1" class="'.concat(s.buttondown_class,' bootstrap-touchspin-down bootstrap-touchspin-injected" type="button">').concat(s.buttondown_txt,"</button>\n "),w.append(g)):(g='\n <span class="input-group-btn input-group-prepend bootstrap-touchspin-injected">\n <button tabindex="-1" class="'.concat(s.buttondown_class,' bootstrap-touchspin-down" type="button">').concat(s.buttondown_txt,"</button>\n </span>\n "),t(g).insertBefore(x)),y.hasClass("input-group-btn")||y.hasClass("input-group-append")?(v='\n <button tabindex="-1" class="'.concat(s.buttonup_class,' bootstrap-touchspin-up bootstrap-touchspin-injected" type="button">').concat(s.buttonup_txt,"</button>\n "),y.prepend(v)):(v='\n <span class="input-group-btn input-group-append bootstrap-touchspin-injected">\n <button tabindex="-1" class="'.concat(s.buttonup_class,' bootstrap-touchspin-up" type="button">').concat(s.buttonup_txt,"</button>\n </span>\n "),t(v).insertAfter(x))),t(b).insertBefore(x),t(_).insertAfter(x),g=S):(w="",x.hasClass("input-sm")||x.hasClass("form-control-sm")?w="input-group-sm":(x.hasClass("input-lg")||x.hasClass("form-control-lg"))&&(w="input-group-lg"),w=s.verticalbuttons?'\n <div class="input-group '.concat(w,' bootstrap-touchspin bootstrap-touchspin-injected">\n <span class="input-group-addon input-group-prepend bootstrap-touchspin-prefix">\n <span class="input-group-text">').concat(s.prefix,'</span>\n </span>\n <span class="input-group-addon bootstrap-touchspin-postfix input-group-append">\n <span class="input-group-text">').concat(s.postfix,"</span>\n </span>\n ").concat(h,"\n </div>\n "):'\n <div class="input-group bootstrap-touchspin bootstrap-touchspin-injected">\n <span class="input-group-btn input-group-prepend">\n <button tabindex="-1" class="'.concat(s.buttondown_class,' bootstrap-touchspin-down" type="button">').concat(s.buttondown_txt,'</button>\n </span>
191\n <span class="input-group-addon bootstrap-touchspin-prefix input-group-prepend">\n <span class="input-group-text">').concat(s.prefix,'</span>\n </span>\n <span class="input-group-addon bootstrap-touchspin-postfix input-group-append">\n <span class="input-group-text">').concat(s.postfix,'</span>\n </span>\n <span class="input-group-btn input-group-append">\n <button tabindex="-1" class="').concat(s.buttonup_class,' bootstrap-touchspin-up" type="button">').concat(s.buttonup_txt,"</button>\n </span>\n </div>"),g=t(w).insertBefore(x),t(".bootstrap-touchspin-prefix",g).after(x),x.hasClass("input-sm")||x.hasClass("form-control-sm")?g.addClass("input-group-sm"):(x.hasClass("input-lg")||x.hasClass("form-control-lg"))&&g.addClass("input-group-lg")),l={down:t(".bootstrap-touchspin-down",g),up:t(".bootstrap-touchspin-up",g),input:t("input",g),prefix:t(".bootstrap-touchspin-prefix",g).addClass(s.prefix_extraclass),postfix:t(".bootstrap-touchspin-postfix",g).addClass(s.postfix_extraclass)},M(),T(),"undefined"!=typeof MutationObserver&&new MutationObserver((function(t){t.forEach((function(t){"attributes"!==t.type||"disabled"!==t.attributeName&&"readonly"!==t.attributeName||M()}))})).observe(x[0],{attributes:!0}),x.on("keydown.touchspin",(function(t){var e=t.keyCode||t.which;38===e?("up"!==C&&(D(),L()),t.preventDefault()):40===e?("down"!==C&&(I(),O()),t.preventDefault()):9!==e&&13!==e||k()})),x.on("keyup.touchspin",(function(t){38!==(t=t.keyCode||t.which)&&40!==t||F()})),t(document).on("mousedown touchstart",(function(e){t(e.target).is(x)||k()})),x.on("blur.touchspin",(function(){k()})),l.down.on("keydown",(function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("down"!==C&&(I(),O()),t.preventDefault())})),l.down.on("keyup.touchspin",(function(t){32!==(t=t.keyCode||t.which)&&13!==t||F()})),l.up.on("keydown.touchspin",(function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("up"!==C&&(D(),L()),t.preventDefault())})),l.up.on("keyup.touchspin",(function(t){32!==(t=t.keyCode||t.which)&&13!==t||F()})),l.down.on("mousedown.touchspin",(function(t){l.down.off("touchstart.touchspin"),x.is(":disabled,[readonly]")||(I(),O(),t.preventDefault(),t.stopPropagation())})),l.down.on("touchstart.touchspin",(function(t){l.down.off("mousedown.touchspin"),x.is(":disabled,[readonly]")||(I(),O(),t.preventDefault(),t.stopPropagation())})),l.up.on("mousedown.touchspin",(function(t){l.up.off("touchstart.touchspin"),x.is(":disabled,[readonly]")||(D(),L(),t.preventDefault(),t.stopPropagation())})),l.up.on("touchstart.touchspin",(function(t){l.up.off("mousedown.touchspin"),x.is(":disabled,[readonly]")||(D(),L(),t.preventDefault(),t.stopPropagation())})),l.up.on("mouseup.touchspin mouseout.touchspin touchleave.touchspin touchend.touchspin touchcancel.touchspin",(function(t){C&&(t.stopPropagation(),F())})),l.down.on("mouseup.touchspin mouseout.touchspin touchleave.touchspin touchend.touchspin touchcancel.touchspin",(function(t){C&&(t.stopPropagation(),F())})),l.down.on("mousemove.touchspin touchmove.touchspin",(function(t){C&&(t.stopPropagation(),t.preventDefault())})),l.up.on("mousemove.touchspin touchmove.touchspin",(function(t){C&&(t.stopPropagation(),t.preventDefault())})),x.on("mousewheel.touchspin DOMMouseScroll.touchspin",(function(t){var e;s.mousewheel&&x.is(":focus")&&(e=t.originalEvent.wheelDelta||-t.originalEvent.deltaY||-t.originalEvent.detail,t.stopPropagation(),t.preventDefault(),(e<0?I:D)())})),x.on("touchspin.destroy",(function(){var e=x.parent();F(),x.off(".touchspin"),e.hasClass("bootstrap-touchspin-injected")?(x.siblings().remove(),x.unwrap()):(t(".bootstrap-touchspin-injected",e).remove(),e.removeClass("bootstrap-touchspin")),x.data("alreadyinitialized",!1)})),x.on("touchspin.uponce",(function(){F(),D()})),x.on("touchspin.downonce",(function(){F(),I()})),x.on("touchspin.startupspin",(function(){L()})),x.on("touchspin.startdownspin",(function(){O()})),x.on("touchspin.stopspin",(function(){F()})),x.on("touchspin.updatesettings",(function(e,i){var n=i;s=t.extend({},s,n),n.postfix&&(0===x.parent().find(".bootstrap-touchspin-postfix").length&&a.insertAfter(x),x.parent().find(".bootstrap-touchspin-postfix .input-group-text").text(n.postfix)),n.prefix&&(0===x.parent().find(".bootstrap-touchspin-prefix").length&&o.insertBefore(x),x.parent().find(".bootstrap-touchspin-prefix .input-group-text").text(n.prefix)),T(),k(),""!==(i=l.input.val())&&(i=parseFloat(s.callback_before_calculation(l.input.val())),l.input.val(s.callback_after_calculation(parseFloat(i).toFixed(s.decimals))))}))):console.log("Must be an input."))}))}})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exp
191orts.GTagOptIn=e():t.GTagOptIn=e()}(self,(function(){return(()=>{var t={d:(e,i)=>{for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{register:()=>r,optIn:()=>a,optOut:()=>o});let i,n=!1;const r=t=>{s(t),i=t},s=t=>{if(!t)throw new Error("gtag-opt-in: invalid value passed to `register` method. Make sure to use a valid Analytics ID.")},o=()=>{l(),window[`ga-disable-${i}`]=!0},a=()=>{l(),h(),window[`ga-disable-${i}`]=!1},l=()=>{if(!i)throw new Error("gtag-opt-in: no value found for Analytics ID. Make sure to register before by calling the `register` method.")},h=()=>{n||(c(),n=!0)},c=()=>{const t=d();p(t)},d=()=>(window.dataLayer=window.dataLayer||[],function(){dataLayer.push(arguments)}),p=t=>{t("js",new Date),t("config",i,{anonymize_ip:!0})};return e})()})),function(){var t="initCookieConsent";"undefined"!=typeof window&&"function"!=typeof window[t]&&(window[t]=function(t){var e,i,n,r,s,o,a,l,h,c,d,p,u,f,m,g,v,y,b,_,w,x,S,E,C,T,k,P,A,M,D,I,O,L,F,R={ 192mode:"opt-in",current_lang:"en",auto_language:null,autorun:!0,page_scripts:!0,hide_from_bots:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},z={},B={},N=null,j=!0,G=!1,V=!1,H=!1,q=!1,X=!0,W=[],Y=!1,U=[],K=[],Z=[],Q=!1,J=[],$=[],tt=[],et=[],it=[],nt=document.documentElement,rt=function(t){"number"==typeof(e=t).cookie_expiration&&(R.cookie_expiration=e.cookie_expiration),"number"==typeof e.cookie_necessary_only_expiration&&(R.cookie_necessary_only_expiration=e.cookie_necessary_only_expiration),"boolean"==typeof e.autorun&&(R.autorun=e.autorun),"string"==typeof e.cookie_domain&&(R.cookie_domain=e.cookie_domain),"string"==typeof e.cookie_same_site&&(R.cookie_same_site=e.cookie_same_site),"string"==typeof e.cookie_path&&(R.cookie_path=e.cookie_path),"string"==typeof e.cookie_name&&(R.cookie_name=e.cookie_name),"function"==typeof e.onAccept&&(d=e.onAccept),"function"==typeof e.onFirstAction&&(u=e.onFirstAction),"function"==typeof e.onChange&&(p=e.onCh
192ange),"opt-out"===e.mode&&(R.mode="opt-out"),"number"==typeof e.revision&&(e.revision>-1&&(R.revision=e.revision),q=!0),"boolean"==typeof e.autoclear_cookies&&(R.autoclear_cookies=e.autoclear_cookies),!0===e.use_rfc_cookie&&(R.use_rfc_cookie=!0),"boolean"==typeof e.hide_from_bots&&(R.hide_from_bots=e.hide_from_bots),R.hide_from_bots&&(Q=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),R.page_scripts=!0===e.page_scripts,"browser"===e.auto_language||!0===e.auto_language?R.auto_language="browser":"document"===e.auto_language&&(R.auto_language="document"),R.auto_language,R.current_lang=pt(e.languages,e.current_lang)},st=function(t){for(var e="accept-",i=a("c-settings"),n=a(e+"all"),r=a(e+"necessary"),s=a(e+"custom"),o=0;o<i.length;o++)i[o].setAttribute("aria-haspopup","dialog"),_t(i[o],"click",(function(t){t.preventDefault(),z.showSettings(0)}));for(o=0;o<n.length;o++)_t(n[o],"click",(function(t){l(t,"all")}));for(o=0;o<s.length;o++)_t(s[o],"click",(function(t){l(t)}));for(o=0;o<r.length;o++)_t(r[o],"click",(function(t){l(t,[])}));function a(e){return(t||document).querySelectorAll('[data-cc="'+e+'"]')}function l(t,e){t.preventDefault(),z.accept(e),z.hideSettings(),z.hide()}},ot=function(t,e){return e.hasOwnProperty(t)?t:wt(e).length>0?e.hasOwnProperty(R.current_lang)?R.current_lang:wt(e)[0]:void 0},at=function(t){if(!0===e.force_consent&&xt(nt,"force--consent"),!b){b=dt("div");var i=dt("div"),n=dt("div");b.id="cm",i.id="c-inr-i",n.id="cm-ov",b.tabIndex=-1,b.setAttribute("role","dialog"),b.setAttribute("aria-modal","true"),b.setAttribute("aria-hidden","false"),b.setAttribute("aria-labelledby","c-ttl"),b.setAttribute("aria-describedby","c-txt"),y.appendChild(b),y.appendChild(n),b.style.visibility=n.style.visibility="hidden",n.style.opacity=0}var r=e.languages[t].consent_modal.title;r&&(_||((_=dt("div")).id="c-ttl",_.setAttribute("role","heading"),_.setAttribute("aria-level","2"),i.appendChild(_)),_.innerHTML=r);var s=e.languages[t].consent_modal.description;q&&(s=X?s.replace("{{revision_message}}",""):s.replace("{{revision_message}}",e.languages[t].consent_modal.revision_message||"")),w||((w=dt("div")).id="c-txt",i.appendChild(w)),w.innerHTML=s;var o,a=e.languages[t].consent_modal.primary_btn,l=e.languages[t].consent_modal.secondary_btn;a&&(x||((x=dt("button")).id="c-p-bn",x.className="c-bn",x.appendChild(Ct(1)),"accept_all"===a.role&&(o="all"),_t(x,"click",(function(){z.hide(),z.accept(o)}))),x.firstElementChild.innerHTML=e.languages[t].consent_modal.primary_btn.text),l&&(S||((S=dt("button")).id="c-s-bn",S.className="c-bn c_link",S.appendChild(Ct(1)),"accept_necessary"===l.role?_t(S,"click",(function(){z.hide(),z.accept([])})):_t(S,"click",(function(){z.showSettings(0)}))),S.firstElementChild.innerHTML=e.languages[t].consent_modal.secondary_btn.text);var h=e.gui_options;C||((C=dt("div")).id="c-inr",C.appendChild(i)),E||((E=dt("div")).id="c-bns",h&&h.consent_modal&&!0===h.consent_modal.swap_buttons?(l&&E.appendChild(S),a&&E.appendChild(x),E.className="swap"):(a&&E.appendChild(x),l&&E.appendChild(S)),(a||l)&&C.appendChild(E),b.appendChild(C)),G=!0,st(C)},lt=function(t){if(T)(D=dt("div")).id="s-bl";else{(T=dt("div")).tabIndex=-1;var i=dt("div"),n=dt("div"),r=dt("div");k=dt("div"),P=dt("div");var s=dt("div");(A=dt("button")).appendChild(Ct(2));var o=dt("div");M=dt("div");var a=dt("div");_t(r,"click",(function(t){H&&!k.contains(t.target)&&z.hideSettings()}),!0),T.id="s-cnt",i.id="c-vln",r.id="c-s-in",n.id="cs",P.id="s-ttl",k.id="s-inr",s.id="s-hdr",M.id="s-bl",A.id="s-c-bn",a.id="cs-ov",o.id="s-c-bnc",A.className="c-bn",T.setAttribute("role","dialog"),T.setAttribute("aria-modal","true"),T.setAttribute("aria-hidden","true"),T.setAttribute("aria-labelledby","s-ttl"),P.setAttribute("role","heading"),T.style.visibility=a.style.visibility="hidden",a.style.opacity=0,o.appendChild(A),_t(document,"keydown",(function(t){27===t.keyCode&&H&&z.hideSettings()}
192),!0),_t(A,"click",(function(){z.hideSettings()}))}var l=e.languages[t].settings_modal;A.setAttribute("aria-label",l.close_btn_label||"Close"),c=l.blocks,h=l.cookie_table_headers;var d=l.cookie_table_caption,p=c.length;P.innerHTML=l.title;for(var u=0;u<p;++u){var f=c[u].title,m=c[u].description,g=c[u].toggle,v=c[u].cookie_table,b=!0===e.remove_cookie_tables,_=!!m||!b&&!!v,w=dt("div"),x=dt("div");if(m){var S=dt("div");S.className="p",S.insertAdjacentHTML("beforeend",m)}var E=dt("div");if(E.className="title",w.className="c-bl",x.className="desc",void 0!==g){var C="c-ac-"+u,R=dt(_?"button":"div"),N=dt("label"),G=dt("input"),V=dt("span"),q=dt("span"),X=dt("span"),W=dt("span");R.className=_?"b-tl exp":"b-tl",N.className="b-tg",G.className="c-tgl",X.className="on-i",W.className="off-i",V.className="c-tg",q.className="t-lb",_&&(R.setAttribute("aria-expanded","false"),R.setAttribute("aria-controls",C)),G.type="checkbox",V.setAttribute("aria-hidden","true");var Y=g.value;G.value=Y,q.textContent=f,R.insertAdjacentHTML("beforeend",f),E.appendChild(R),V.appendChild(X),V.appendChild(W),j?g.enabled?(G.checked=!0,!D&&tt.push(!0),g.enabled&&!D&&Z.push(Y)):!D&&tt.push(!1):ct(B.categories,Y)>-1?(G.checked=!0,!D&&tt.push(!0)):!D&&tt.push(!1),!D&&et.push(Y),g.readonly&&(G.disabled=!0,xt(V,"c-ro"),!D&&it.push(Y)),xt(x,"b-acc"),xt(E,"b-bn"),xt(w,"b-ex"),x.id=C,x.setAttribute("aria-hidden","true"),N.appendChild(G),N.appendChild(V),N.appendChild(q),E.appendChild(N),_&&function(t,e,i){_t(R,"click",(function(){Et(e,"act")?(St(e,"act"),i.setAttribute("aria-expanded","false"),t.setAttribute("aria-hidden","true")):(xt(e,"act"),i.setAttribute("aria-expanded","true"),t.setAttribute("aria-hidden","false"))}),!1)}(x,w,R)}else if(f){var U=dt("div");U.className="b-tl",U.setAttribute("role","heading"),U.setAttribute("aria-level","3"),U.insertAdjacentHTML("beforeend",f),E.appendChild(U)}if(f&&w.appendChild(E),m&&x.appendChild(S),!b&&void 0!==v){for(var K=document.createDocumentFragment(),Q=0;Q<h.length;++Q){var J=dt("th"),$=h[Q];if(J.setAttribute("scope","col"),$){var nt=$&&wt($)[0];J.textContent=h[Q][nt],K.appendChild(J)}}var rt=dt("tr");rt.appendChild(K);var st=dt("thead");st.appendChild(rt);var ot=dt("table");if(d){var at=dt("caption");at.innerHTML=d,ot.appendChild(at)}ot.appendChild(st);for(var lt=document.createDocumentFragment(),ht=0;ht<v.length;ht++){for(var pt=dt("tr"),ut=0;ut<h.length;++ut)if($=h[ut]){nt=wt($)[0];var ft=dt("td");ft.insertAdjacentHTML("beforeend",v[ht][nt]),ft.setAttribute("data-column",$[nt]),pt.appendChild(ft)}lt.appendChild(pt)}var mt=dt("tbody");mt.appendChild(lt),ot.appendChild(mt),x.appendChild(ot)}(g&&f||!g&&(f||m))&&(w.appendChild(x),D?D.appendChild(w):M.appendChild(w))}I||((I=dt("div")).id="s-bns"),L||((L=dt("button")).id="s-all-bn",L.className="c-bn",I.appendChild(L),_t(L,"click",(function(){z.accept("all"),z.hideSettings(),z.hide()}))),L.innerHTML=l.accept_all_btn;var gt=l.reject_all_btn;if(gt&&(F||((F=dt("button")).id="s-rall-bn",F.className="c-bn",_t(F,"click",(function(){z.accept([]),z.hideSettings(),z.hide()})),k.className="bns-t",I.appendChild(F)),F.innerHTML=gt),O||((O=dt("button")).id="s-sv-bn",O.className="c-bn",I.appendChild(O),_t(O,"click",(function(){z.accept(),z.hideSettings(),z.hide()}))),O.innerHTML=l.save_settings_btn,D)return k.replaceChild(D,M),void(M=D);s.appendChild(P),s.appendChild(o),k.appendChild(s),k.appendChild(M),k.appendChild(I),r.appendChild(k),n.appendChild(r),i.appendChild(n),T.appendChild(i),y.appendChild(T),y.appendChild(a)};z.updateLanguage=function(t,i){if("string"==typeof t){var n=ot(t,e.languages);return(n!==R.current_lang||!0===i)&&(R.current_lang=n,G&&at(n),lt(n),!0)}};var ht=function(t){var e=c.length,i=-1;Y=!1;var n=yt("","all"),r=[R.cookie_domain,"."+R.cookie_domain];if("www."===R.cookie_domain.slice(0,4)){var s=R.cookie_domain.substr(4);r.push(s),r.push("."+s)}for(var o=0;o<e;o++){var a=c[o];if(a.hasOwnProperty("toggle")){var l=ct(W,a.toggle.value)>-1;if(!tt[++i]&&a.hasOwnProperty("cookie_table")&&(t||l)){var d=a.cookie_table,p=wt(h[0])[0],u=d.length;"on_disable"===a.toggle.reload&&l&&(Y=!0);for(var f=0;f<u;f++){var m=r,g=d[f],v=[],y=g[p],b=g.is_regex||!1,_=g.domain||null,w=g.path||!1;if(_&&(m=[_,"."+_]),b)for(var x=0;x<n.length;x++)n[x].match(y)&&v.push(n[x]);else{var S=ct(n,y);S>-1&&v.push(n[S])}v.length>0&&(bt(v,w,m),"on_clear"===a.toggle.reload&&(Y=!0))}}}}},ct=function(t,e){return t.indexOf(e)},dt=function(t){var e=document.createElement(t);return"button"===t&&e.setAttribute("type",t),e},pt=function(t,e){return"browser"===R.auto_language?ot(ut(),t):"document"===R.auto_language?ot(document.documentElement.lang,t):"string"==typeof e?R.current_lang=ot(e,t):(R.current_lang,R.current_lang)},ut=function(){var t=navigator.language||navigator.browserLanguage;return t.length>2&&(t=t[0]+t[1]),t.toLowerCase()};z.allowedCategory=function(t){if(j&&"opt-in"!==R.mode)e=Z;else var e=JSON.parse(yt(R.cookie_name,"one",!0)||"{}").categories||[];return ct(e,t)>-1},z.run=function(e){if(!document.getElementById("cc_div")){if(rt(e),Q)return;B=JSON.parse(yt(R.cookie_name,"one",!0)||"{}");var a=void 0!==(r=B.consent_uuid);if((i=B.consent_date)&&(i=new Date(i)),(n=B.last_consent_update)&&(n=new Date(n)),N=void 0!==B.data?B.data:null,q&&B.revision!==R.revision&&(X=!1),G=j=!(a&&X&&i&&n&&r),function(){(v=dt("div")).id="cc--main",v.style.position="fixed",v.innerHTML='<div id="cc_div" class="cc_div"></div>',y=v.children[0];var e=R.current_lang;G&&at(e),lt(e),(t||document.body).appendChild(v)}(),function(){var t=["[href]","button","input","details",'[tabindex="0"]'];function e(e,i){var n=!1,r=!1;try{for(var s,o=e.querySelectorAll(t.join(':not([tabindex="-1"]), ')),a=o.length,l=0;l<a;)s=o[l].getAttribute("data-focus"),r||"1"!==s?"0"===s&&(n=o[l],r||"0"===o[l+1].getAttribute("data-focus")||(r=o[l+1])):r=o[l],l++}catch(i){return e.querySelectorAll(t.join(", "))}i[0]=o[0],i[1]=o[o.length-1],i[2]=n,i[3]=r}e(k,$),G&&e(b,J)}(),function(t){if("object"==typeof t){var e=t.consent_modal,i=t.settings_modal;G&&e&&n(b,["box","bar","cloud"],["top","middle","bottom"],["zoom","slide"],e.layout,e.position,e.transition),i&&n(T,["bar"],["left","right"],["zoom","slide"],i.layout,i.position,i.transition)}function n(t,e,i,n,r,s,o){if(s=s&&s.split(" ")||[],ct(e,r)>-1&&(xt(t,r),("bar"!==r||"middle"!==s[0])&&ct(i,s[0])>-1))for(var a=0;a<s.length;a++)xt(t,s[a]);ct(n,o)>-1&&xt(t,o)}}(e.gui_options),st(),R.autorun&&G&&z.show(e.delay||0),setTimeout((function(){xt(v,"c--anim")}),30),setTimeout((function(){_t(document,"keydown",(function(t){if("Tab"===t.key&&(V||H)&&s){var e=Pt();t.shiftKey?e!==s[0]&&o.contains(e)||(t.preventDefault(),Tt(s[1])):e!==s[1]&&o.contains(e)||(t.preventDefault(),Tt(s[0]))}}))}),100),j)"opt-out"===R.mode&&(R.mode,ft(Z));else{var l="boolean"==typeof B.rfc_cookie;(!l||l&&B.rfc_cookie!==R.use_rfc_cookie)&&(B.rfc_cookie=R.use_rfc_cookie,vt(R.cookie_name,JSON.stringify(B))),f=gt(mt()),ft(),"function"==typeof d&&d(B)}}};var ft=function(t){if(R.page_scripts){var e=document.querySelectorAll("script["+R.script_selector+"]"),i=t||B.categories||[],n=function(t,e){if(e<t.length){var r=t[e],s=r.getAttribute(R.script_selector);if(ct(i,s)>-1){r.type=r.getAttribute("data-type")||"text/javascript",r.removeAttribute(R.script_selector);var o=r.getAttribute("data-src");o&&r.removeAttribute("data-src");var a=dt("script");
192if(a.textContent=r.innerHTML,function(t,e){for(var i=e.attributes,n=i.length,r=0;r<n;r++){var s=i[r].nodeName;t.setAttribute(s,e[s]||e.getAttribute(s))}}(a,r),o?a.src=o:o=r.src,o&&(a.readyState?a.onreadystatechange=function(){"loaded"!==a.readyState&&"complete"!==a.readyState||(a.onreadystatechange=null,n(t,++e))}:a.onload=function(){a.onload=null,n(t,++e)}),r.parentNode.replaceChild(a,r),o)return}n(t,++e)}};n(e,0)}};z.set=function(t,e){return"data"===t&&function(t,e){var i=!1;if("update"===e){var n=typeof(N=z.get("data"))==typeof t;if(n&&"object"==typeof N)for(var r in!N&&(N={}),t)N[r]!==t[r]&&(N[r]=t[r],i=!0);else!n&&N||N===t||(N=t,i=!0)}else N=t,i=!0;return i&&(B.data=N,vt(R.cookie_name,JSON.stringify(B))),i}(e.value,e.mode)},z.get=function(t,e){return JSON.parse(yt(e||R.cookie_name,"one",!0)||"{}")[t]},z.getConfig=function(t){return R[t]||e[t]};var mt=function(){return U=B.categories||[],K=et.filter((function(t){return-1===ct(U,t)})),{accepted:U,rejected:K}},gt=function(t){var e="custom",i=it.length;return t.accepted.length===et.length?e="all":t.accepted.length===i&&(e="necessary"),e};z.getUserPreferences=function(){var t=mt();return{accept_type:gt(t),accepted_categories:t.accepted,rejected_categories:t.rejected}},z.loadScript=function(t,e,i){var n="function"==typeof e;if(document.querySelector('script[src="'+t+'"]'))n&&e();else{var r=dt("script");if(i&&i.length>0)for(var s=0;s<i.length;++s)i[s]&&r.setAttribute(i[s].name,i[s].value);n&&(r.onload=e),r.src=t,document.head.appendChild(r)}},z.updateScripts=function(){ft()},z.show=function(t,e){!0===e&&at(R.current_lang),G&&(m=Pt(),s=J,o=b,V=!0,b.removeAttribute("aria-hidden"),setTimeout((function(){xt(nt,"show--consent")}),t>0?t:e?30:0))},z.hide=function(){G&&(V=!1,Tt(a),b.setAttribute("aria-hidden","true"),St(nt,"show--consent"),Tt(m),m=null)},z.showSettings=function(t){H=!0,T.removeAttribute("aria-hidden"),V?g=Pt():m=Pt(),o=T,s=$,setTimeout((function(){xt(nt,"show--settings")}),t>0?t:0)},z.hideSettings=function(){H=!1,kt(),Tt(l),T.setAttribute("aria-hidden","true"),St(nt,"show--settings"),V?(Tt(g),g=null,o=b,s=J):(Tt(m),m=null)},z.accept=function(t,e){var s=t||void 0,o=e||[],a=[];if(s)if("object"==typeof s&&"number"==typeof s.length)for(var l=0;l<s.length;l++)-1!==ct(et,s[l])&&a.push(s[l]);else"string"==typeof s&&("all"===s?a=et.slice():-1!==ct(et,s)&&a.push(s));else a=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(o.length>=1)for(l=0;l<o.length;l++)a=a.filter((function(t){return t!==o[l]}));for(l=0;l<et.length;l++)!0===it.includes(et[l])&&-1===ct(a,et[l])&&a.push(et[l]);!function(t){W=[];var e=T.querySelectorAll(".c-tgl")||[];if(e.length>0)for(var s=0;s<e.length;s++)-1!==ct(t,et[s])?(e[s].checked=!0,tt[s]||(W.push(et[s]),tt[s]=!0)):(e[s].checked=!1,tt[s]&&(W.push(et[s]),tt[s]=!1));!j&&R.autoclear_cookies&&W.length>0&&ht(),i||(i=new Date),r||(r=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){try{return(t^(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}catch(t){return""}}))),B={categories:t,level:t,revision:R.revision,data:N,rfc_cookie:R.use_rfc_cookie,consent_date:i.toISOString(),consent_uuid:r},(j||W.length>0)&&(X=!0,n=n?new Date:i,B.last_consent_update=n.toISOString(),f=gt(mt()),vt(R.cookie_name,JSON.stringify(B)),ft()),j&&(R.autoclear_cookies&&ht(!0),"function"==typeof u&&u(z.getUserPreferences(),B),"function"==typeof d&&d(B),j=!1,"opt-in"===R.mode)||("function"==typeof p&&W.length>0&&p(B,W),Y&&location.reload())}(a)},z.eraseCookies=function(t,e,i){var n=[],r=i?[i,"."+i]:[R.cookie_domain,"."+R.cookie_domain];if("object"==typeof t&&t.length>0)for(var s=0;s<t.length;s++)this.validCookie(t[s])&&n.push(t[s]);else this.validCookie(t)&&n.push(t);bt(n,e,r)};var vt=function(t,e){var i=R.cookie_expiration;"number"==typeof R.cookie_necessary_only_expiration&&"necessary"===f&&(i=R.cookie_necessary_only_expiration),e=R.use_rfc_cookie?encodeURIComponent(e):e;var n=new Date;n.setTime(n.getTime()+24*i*60*60*1e3);var r=t+"="+(e||"")+"; expires="+n.toUTCString()+"; Path="+R.cookie_path+";";r+=" SameSite="+R.cookie_same_site+";",location.hostname.indexOf(".")>-1&&R.cookie_domain&&(r+=" Domain="+R.cookie_domain+";"),"https:"===location.protocol&&(r+=" Secure;"),document.cookie=r}
192,yt=function(t,e,i){var n;if("one"===e){if((n=(n=document.cookie.match("(^|;)\\s*"+t+"\\s*=\\s*([^;]+)"))?i?n.pop():t:"")&&t===R.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){var r=document.cookie.split(/;\s*/);n=[];for(var s=0;s<r.length;s++)n.push(r[s].split("=")[0])}return n},bt=function(t,e,i){for(var n=e||"/",r=0;r<t.length;r++){for(var s=0;s<i.length;s++)document.cookie=t[r]+"=; path="+n+(0==i[s].indexOf(".")?"; domain="+i[s]:"")+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";t[r]}};z.validCookie=function(t){return""!==yt(t,"one",!0)};var _t=function(t,e,i,n){t.addEventListener(e,i,!0===n&&{passive:!0})},wt=function(t){if("object"==typeof t)return Object.keys(t)},xt=function(t,e){t.classList.add(e)},St=function(t,e){t.classList.remove(e)},Et=function(t,e){return t.classList.contains(e)},Ct=function(t){var e=dt("span");return e.tabIndex=-1,1===t?a=e:l=e,e},Tt=function(t){t&&t instanceof HTMLElement&&t.focus()},kt=function(){for(var t=k.querySelectorAll(".c-tgl"),e=0;e<t.length;e++){var i=t[e].value,n=it.includes(i);t[e].checked=n||z.allowedCategory(i)}},Pt=function(){return document.activeElement};return z})}(), 193/*! 194 * @preserve 195 * 196 * Readmore.js jQuery plugin 197 * Author: @jed_foster 198 * Project home: http://jedfoster.github.io/Readmore.js 199 * Licensed under the MIT license 200 * 201 * Debounce function from http://davidwalsh.name/javascript-debounce-function 202 */ 203function($){var t="readmore",e={speed:100,collapsedHeight:200,heightMargin:16,moreLink:'<a href="#">Read More</a>',lessLink:'<a href="#">Close</a>',embedCSS:!0,blockCSS:"display: block; width: 100%;",startOpen:!1,beforeToggle:function(){},afterToggle:function(){}},i={},n=0;function r(t){var e=t.clone().css({height:"auto",width:t.width(),maxHeight:"none",overflow:"hidden"}).insertAfter(t),i=e.outerHeight(),n=parseInt(e.css({maxHeight:""}).css("max-height").replace(/[^-\d\.]/g,""),10),r=t.data("defaultHeight");e.remove();var s=n||t.data("collapsedHeight")||r;
203t.data({expandedHeight:i,maxHeight:n,collapsedHeight:s}).css({maxHeight:"none"})}var s,o,a,l,h=(s=function(){$("[data-readmore]").each((function(){var t=$(this),e="true"===t.attr("aria-expanded");r(t),t.css({height:t.data(e?"expandedHeight":"collapsedHeight")})}))},o=100,function(){var t=this,e=arguments,i=a&&!l;clearTimeout(l),l=setTimeout((function(){l=null,a||s.apply(t,e)}),o),i&&s.apply(t,e)});function c(n,r){this.element=n,this.options=$.extend({},e,r),function(t){if(!i[t.selector]){var e=" ";t.embedCSS&&""!==t.blockCSS&&(e+=t.selector+" + [data-readmore-toggle], "+t.selector+"[data-readmore]{"+t.blockCSS+"}"),r=e+=t.selector+"[data-readmore]{transition: height "+t.speed+"ms;overflow: hidden;}",(s=(n=document).createElement("style")).type="text/css",s.styleSheet?s.styleSheet.cssText=r:s.appendChild(n.createTextNode(r)),n.getElementsByTagName("head")[0].appendChild(s),i[t.selector]=!0}var n,r,s}(this.options),this._defaults=e,this._name=t,this.init(),window.addEventListener?(window.addEventListener("load",h),window.addEventListener("resize",h)):(window.attachEvent("load",h),window.attachEvent("resize",h))}c.prototype={init:function(){var t=this,e=$(this.element);e.data({defaultHeight:this.options.collapsedHeight,heightMargin:this.options.heightMargin}),r(e);var i=e.data("collapsedHeight"),s=e.data("heightMargin");if(e.outerHeight(!0)<=i+s)return!0;var o=e.attr("id")||function(t){var e=++n;return String(null==t?"rmjs-":t)+e}(),a=t.options.startOpen?t.options.lessLink:t.options.moreLink;e.attr({"data-readmore":"","aria-expanded":!1,id:o}),e.after($(a).on("click",(function(i){t.toggle(this,e[0],i)})).attr({"data-readmore-toggle":"","aria-controls":o})),t.options.startOpen||e.css({height:i})},toggle:function(t,e,i){i&&i.preventDefault(),t||(t=$('[aria-controls="'+this.element.id+'"]')[0]),e||(e=this.element);var n=this,r=$(e),s="",o="",a=!1,l=r.data("collapsedHeight");r.height()<=l?(s=r.data("expandedHeight")+"px",o="lessLink",a=!0):(s=l,o="moreLink"),n.options.beforeToggle(t,r,!a),r.css({height:s}),r.on("transitionend",(function(){n.options.afterToggle(t,r,a),$(this).attr({"aria-expanded":a}).off("transitionend")})),$(t).replaceWith($(n.options[o]).on("click",(function(t){n.toggle(this,e,t)})).attr({"data-readmore-toggle":"","aria-controls":r.attr("id")}))},destroy:function(){$(this.element).each((function(){var t=$(this);t.attr({"data-readmore":null,"aria-expanded":null}).css({maxHeight:"",height:""}).next("[data-readmore-toggle]").remove(),t.removeData()}))}},$.fn.readmore=function(e){var i=arguments,n=this.selector;return"object"==typeof(e=e||{})?this.each((function(){if($.data(this,"plugin_"+t)){var i=$.data(this,"plugin_"+t);i.destroy.apply(i)}e.selector=n,$.data(this,"plugin_"+t,new c(this,e))})):"string"==typeof e&&"_"!==e[0]&&"init"!==e?this.each((function(){var n=$.data(this,"plugin_"+t);n instanceof c&&"function"==typeof n[e]&&n[e].apply(n,Array.prototype.slice.call(i,1))})):void 0}}(jQuery), 204/*! 205 * Signature Pad v5.0.4 | https://github.com/szimek/signature_pad 206 * (c) 2024 Szymon Nowak | Released under the MIT license 207 */ 208function(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).SignaturePad=e()}(this,(function(){class t{constructor(t,e,i,n){if(isNaN(t)||isNaN(e))throw new Error(`Point is invalid: (${t}, ${e})`);this.x=+t,this.y=+e,this.pressure=i||0,this.time=n||Date.now()}distanceTo(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}equals(t){return this.x===t.x&&this.y===t.y&&this.pressure===t.pressure&&this.time===t.time}velocityFrom(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}class e{static fromPoints(t,i){const n=this.calculateControlPoints(t[0],t[1],t[2]).c2,r=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new e(t[1],n,r,t[2],i.start,i.end)}static calculateControlPoints(e,i,n){const r=e.x-i.x,s=e.y-i.y,o=i.x-n.x,a=i.y-n.y,l=(e.x+i.x)/2,h=(e.y+i.y)/2,c=(i.x+n.x)/2,d=(i.y+n.y)/2,p=Math.sqrt(r*r+s*s),u=
208Math.sqrt(o*o+a*a),f=p+u==0?0:u/(p+u),m=c+(l-c)*f,g=d+(h-d)*f,v=i.x-m,y=i.y-g;return{c1:new t(l+v,h+y),c2:new t(c+v,d+y)}}constructor(t,e,i,n,r,s){this.startPoint=t,this.control2=e,this.control1=i,this.endPoint=n,this.startWidth=r,this.endWidth=s}length(){let t,e,i=0;for(let n=0;n<=10;n+=1){const r=n/10,s=this.point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),o=this.point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(n>0){const n=s-t,r=o-e;i+=Math.sqrt(n*n+r*r)}t=s,e=o}return i}point(t,e,i,n,r){return e*(1-t)*(1-t)*(1-t)+3*i*(1-t)*(1-t)*t+3*n*(1-t)*t*t+r*t*t*t}}class i{constructor(){try{this._et=new EventTarget}catch(t){this._et=document}}addEventListener(t,e,i){this._et.addEventListener(t,e,i)}dispatchEvent(t){return this._et.dispatchEvent(t)}removeEventListener(t,e,i){this._et.removeEventListener(t,e,i)}}class n extends i{constructor(t,e={}){var i,r,s;super(),this.canvas=t,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=t=>{this._isLeftButtonPressed(t,!0)&&!this._drawingStroke&&this._strokeBegin(this._pointerEventToSignatureEvent(t))},this._handleMouseMove=t=>{this._isLeftButtonPressed(t,!0)&&this._drawingStroke?this._strokeMoveUpdate(this._pointerEventToSignatureEvent(t)):this._strokeEnd(this._pointerEventToSignatureEvent(t),!1)},this._handleMouseUp=t=>{this._isLeftButtonPressed(t)||this._strokeEnd(this._pointerEventToSignatureEvent(t))},this._handleTouchStart=t=>{1!==t.targetTouches.length||this._drawingStroke||(t.cancelable&&t.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(t)))},this._handleTouchMove=t=>{1===t.targetTouches.length&&(t.cancelable&&t.preventDefault(),this._drawingStroke?this._strokeMoveUpdate(this._touchEventToSignatureEvent(t)):this._strokeEnd(this._touchEventToSignatureEvent(t),!1))},this._handleTouchEnd=t=>{0===t.targetTouches.length&&(t.cancelable&&t.preventDefault(),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this._strokeEnd(this._touchEventToSignatureEvent(t)))},this._handlePointerDown=t=>{t.isPrimary&&this._isLeftButtonPressed(t)&&!this._drawingStroke&&(t.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(t)))},this._handlePointerMove=t=>{t.isPrimary&&(this._isLeftButtonPressed(t,!0)&&this._drawingStroke?(t.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(t))):this._strokeEnd(this._pointerEventToSignatureEvent(t),!1))},this._handlePointerUp=t=>{t.isPrimary&&!this._isLeftButtonPressed(t)&&(t.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(t)))},this.velocityFilterWeight=e.velocityFilterWeight||.7,this.minWidth=e.minWidth||.5,this.maxWidth=e.maxWidth||2.5,this.throttle=null!==(i=e.throttle)&&void 0!==i?i:16,this.minDistance=null!==(r=e.minDistance)&&void 0!==r?r:5,this.dotSize=e.dotSize||0,this.penColor=e.penColor||"black",this.backgroundColor=e.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=e.compositeOperation||"source-over",this.canvasContextOptions=null!==(s=e.canvasContextOptions)&&void 0!==s?s:{},this._strokeMoveUpdate=this.throttle?function(t,e=250){let i,n,r,s=0,o=null;const a=()=>{s=Date.now(),o=null,i=t.apply(n,r),o||(n=null,r=[])};return function(...l){const h=Date.now(),c=e-(h-s);return n=this,r=l,c<=0||c>e?(o&&(clearTimeout(o),o=null),s=h,i=t.apply(n,r),o||(n=null,r=[])):o||(o=window.setTimeout(a,c)),i}}(n.prototype._strokeUpdate,this.throttle):n.prototype._strokeUpdate,this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:t,canvas:e}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(t,e={}){return new Promise(((i,n)=>{const r=new Image,s=e.ratio||window.devicePixelRatio||1,o=e.width||this.canvas.width/s,a=e.height||this.canvas.height/s,l=e.xOffset||0,h=e.yOffset||0;this._reset(this._getPointGroupOptions()),r.onload=()=>{this._ctx.drawImage(r,l,h,o,a),i()},r.onerror=t=>{n(t)},r.crossOrigin="anonymous",r.src=t,this._isEmpty=!1}))}toDataURL(t="image/png",e){return"image/svg+xml"===t?("object"!=typeof e&&(e=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(e))}`):("number"!=typeof e&&(e=void 0),this.canvas.toDataURL(t,e))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerDown),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this._removeMoveUpEventListeners()}_getListenerFunctions(){var t;const e=window.document===this.canvas.ownerDocument?window:null!==(t=this.canvas.ownerDocument.defaultView)&&void 0!==t?t:this.canvas.ownerDocument;return{addEventListener:e.addEventListener.bind(e),removeEventListener:e.removeEventListener.bind(e)}}_removeMoveUpEventListeners(){const{removeEventListener:t}=this._getListenerFunctions();t("pointermove",this._handlePointerMove),t("pointerup",this._handlePointerUp),t("mou
208semove",this._handleMouseMove),t("mouseup",this._handleMouseUp),t("touchmove",this._handleTouchMove),t("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(t,{clear:e=!0}={}){e&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_isLeftButtonPressed(t,e){return e?1===t.buttons:!(1&~t.buttons)}_pointerEventToSignatureEvent(t){return{event:t,type:t.type,x:t.clientX,y:t.clientY,pressure:"pressure"in t?t.pressure:0}}_touchEventToSignatureEvent(t){const e=t.changedTouches[0];return{event:t,type:t.type,x:e.clientX,y:e.clientY,pressure:e.force}}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;const{addEventListener:e}=this._getListenerFunctions();switch(t.event.type){case"mousedown":e("mousemove",this._handleMouseMove),e("mouseup",this._handleMouseUp);break;case"touchstart":e("touchmove",this._handleTouchMove),e("touchend",this._handleTouchEnd);break;case"pointerdown":e("pointermove",this._handlePointerMove),e("pointerup",this._handlePointerUp)}this._drawingStroke=!0;const i=this._getPointGroupOptions(),n=Object.assign(Object.assign({},i),{points:[]});this._data.push(n),this._reset(i),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(0===this._data.length)return void this._strokeBegin(t);this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const e=this._createPoint(t.x,t.y,t.pressure),i=this._data[this._data.length-1],n=i.points,r=n.length>0&&n[n.length-1],s=!!r&&e.distanceTo(r)<=this.minDistance,o=this._getPointGroupOptions(i);if(!r||!r||!s){const t=this._addPoint(e,o);r?t&&this._drawCurve(t,o):this._drawDot(e,o),n.push({time:e.time,x:e.x,y:e.y,pressure:e.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t,e=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(e&&this._strokeUpdate(t),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart)}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(e,i,n){const r=this.canvas.getBoundingClientRect();return new t(e-r.left,i-r.top,n,(new Date).getTime())}_addPoint(t,i){const{_lastPoints:n}=this;if(n.push(t),n.length>2){3===n.length&&n.unshift(n[0]);const t=this._calculateCurveWidths(n[1],n[2],i),r=e.fromPoints(n,t);return n.shift(),r}return null}_calculateCurveWidths(t,e,i){const n=i.velocityFilterWeight*e.velocityFrom(t)+(1-i.velocityFilterWeight)*this._lastVelocity,r=this._strokeWidth(n,i),s={end:r,start:this._lastWidth};return this._lastVelocity=n,this._lastWidth=r,s}_strokeWidth(t,e){return Math.max(e.maxWidth/(t+1),e.minWidth)}_drawCurveSegment(t,e,i){const n=this._ctx;n.moveTo(t,e),n.arc(t,e,i,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,e){const i=this._ctx,n=t.endWidth-t.startWidth,r=2*Math.ceil(t.length());i.beginPath(),i.fillStyle=e.penColor;for(let i=0;i<r;i+=1){const s=i/r,o=s*s,a=o*s,l=1-s,h=l*l,c=h*l;let d=c*t.startPoint.x;d+=3*h*s*t.control1.x,d+=3*l*o*t.control2.x,d+=a*t.endPoint.x;let p=c*t.startPoint.y;p+=3*h*s*t.control1.y,p+=3*l*o*t.control2.y,p+=a*t.endPoint.y;const u=Math.min(t.startWidth+a*n,e.maxWidth);this._drawCurveSegment(d,p,u)}i.closePath(),i.fill()}_drawDot(t,e){const i=this._ctx,n=e.dotSize>0?e.dotSize:(e.minWidth+e.maxWidth)/2;i.beginPath(),this._drawCurveSegment(t.x,t.y,n),i.closePath(),i.fillStyle=e.penColor,i.fill()}_fromData(e,i,n){for(const r of e){const{points:e}=r,s=this._getPointGroupOptions(r);if(e.length>1)for(let n=0;n<e.length;n+=1){const r=e[n],o=new t(r.x,r.y,r.pressure,r.time);0===n&&this._reset(s);const a=this._addPoint(o,s);a&&i(a,s)}else this._reset(s),n(e[0],s)}}
vendor: 1,521 bytes, line 208
208toSVG({includeBackgroundColor:t=!1}={}){const e=this._data,i=Math.max(window.devicePixelRatio||1,1),n=this.canvas.width/i,r=this.canvas.height/i,s=document.createElementNS("http://www.w3.org/2000/svg","svg");if(s.setAttribute("xmlns","http://www.w3.org/2000/svg"),s.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),s.setAttribute("viewBox",`0 0 ${n} ${r}`),s.setAttribute("width",n.toString()),s.setAttribute("height",r.toString()),t&&this.backgroundColor){const t=document.createElement("rect");t.setAttribute("width","100%"),t.setAttribute("height","100%"),t.setAttribute("fill",this.backgroundColor),s.appendChild(t)}return this._fromData(e,((t,{penColor:e})=>{const i=document.createElement("path");if(!(isNaN(t.control1.x)||isNaN(t.control1.y)||isNaN(t.control2.x)||isNaN(t.control2.y))){const n=`M ${t.startPoint.x.toFixed(3)},${t.startPoint.y.toFixed(3)} C ${t.control1.x.toFixed(3)},${t.control1.y.toFixed(3)} ${t.control2.x.toFixed(3)},${t.control2.y.toFixed(3)} ${t.endPoint.x.toFixed(3)},${t.endPoint.y.toFixed(3)}`;i.setAttribute("d",n),i.setAttribute("stroke-width",(2.25*t.endWidth).toFixed(3)),i.setAttribute("stroke",e),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),s.appendChild(i)}}),((t,{penColor:e,dotSize:i,minWidth:n,maxWidth:r})=>{const o=document.createElement("circle"),a=i>0?i:(n+r)/2;o.setAttribute("r",a.toString()),o.setAttribute("cx",t.x.toString()),o.setAttribute("cy",t.y.toString()),o.setAttribute("fill",e),s.appendChild(o)})),s.outerHTML}}return n}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.