function swiperAnimateCache(t){for(j=0;j0?(n.stop().fadeIn(),n.append($(this).attr("data-video-src"))):(e.stop().fadeIn(),r.attr("src",$(this).attr("data-video-src")),r.trigger("play")))}),r.click(function(t){t.stopPropagation()}),i.click(function(t){t.stopPropagation(),e.stop().fadeOut(),r.trigger("pause")}),e.click(function(t){t.stopPropagation(),e.stop().fadeOut(),r.trigger("pause")}),s.click(function(t){t.stopPropagation(),n.stop().fadeOut(),n.find("iframe").remove()}),n.click(function(t){t.stopPropagation(),n.stop().fadeOut(),n.find("iframe").remove()})}function HiVideoPop2(t){var e=$("#hi-video-pop2");$(document).on("click",t,function(){$(this).attr("data-video-src")&&(e[0].requestFullscreen?e[0].requestFullscreen():e[0].msRequestFullscreen?e[0].msRequestFullscreen():e[0].mozRequestFullScreen?e[0].mozRequestFullScreen():e[0].webkitRequestFullScreen&&e[0].webkitRequestFullScreen(),e.show(),e.attr("src",$(this).attr("data-video-src")),e.trigger("play"))}),$(window).resize(function(){0==e.outerHeight()&&(e.hide(),e.trigger("pause"))})}function HiImgPop(t){var e=$("#hi-img-pop"),i=e.find(".hi-close"),r=e.find("img");$(document).on("click",t,function(){$(this).attr("data-img-src")&&(e.stop().fadeIn(),r.attr("src",$(this).attr("data-img-src")))}),r.click(function(t){t.stopPropagation()}),i.click(function(t){t.stopPropagation(),e.stop().fadeOut()}),e.click(function(t){t.stopPropagation(),e.stop().fadeOut()})}function HiResumePop(t,e){var i=$("#hi-resume-pop"),r=i.find(".hi-close"),n=i.find(".hi-text"),s=i.find(".hi-file"),a=i.find("form"),o="";$(document).on("click",t,function(){i.stop().fadeIn()}),a.click(function(t){t.stopPropagation()}),i.click(function(t){t.stopPropagation(),i.stop().fadeOut()}),r.click(function(t){t.stopPropagation(),i.stop().fadeOut()}),s.change(function(t){o=$(this).val().split("\\"),o=o[o.length-1],n.text(e+o)})}function HiVideoPlay(t){var e=t.element,i=t.element2,r=t.offset,n=t.once;0!=e.length&&i.each(function(){function t(){s&&($(window).scrollTop()>=e.offset().top-$(window).height()+$(window).height()*r&&$(window).scrollTop()0?(a.parents(".swiper-slide-active").length>0||a.parents(".swiper-slide-thumb-active").length>0)&&a.trigger("play"):a.trigger("play")):(i=!0,a[0].currentTime=0,a.trigger("pause")))}var i=!0,s=!0,a=$(this),o=null;$(window).scroll(function(){t()}),o=setTimeout(function(){t(),clearTimeout(o)},500)})}function HiAddClass(t){var e=t.element,i=t.element2,r=t.offset,n=t.class,s=t.once;0!=e.length&&i.each(function(){function t(){a&&($(window).scrollTop()>e.offset().top-$(window).height()+$(window).height()*r&&$(window).scrollTop()n.offset().top-$(window).height()+$(window).height()*t.offset&&$(window).scrollTop(){n.hasClass(t)&&(s=t)});var a="";r(),$(window).scroll(function(){r()})})}function HiNumberJump(t){$(document).ready(function(){var e=t.element,i=t.total,r=t.intervalTime,n=t.delimiter,s=t.offset,a=t.once;e.each(function(){function t(){$(window).scrollTop();if(A)if($(window).scrollTop()>h.offset().top-$(window).height()+$(window).height()*s&&$(window).scrollTop()=e&&(t=e,clearInterval(c)),n?h.html(t.toLocaleString("en-US")):h.html(t),t+=o},r)}}else l=!0,clearInterval(c),h.html(0)}var e=Number($(this).html()),o=Math.ceil(e/i),l=!0,A=!0,h=$(this),c=null;0!=$(this).length&&$(this).offset().top,h.html(0),t(),$(window).scroll(function(){t()})})})}function HiRotate360(t){var e=t.element,i=t.element2,r=i.length-1,n=t.class,s=0,a=0,o=!1;0!=e.length&&(i.eq(0).addClass(n),e.mousedown(function(t){a=t.pageX,o=!0,e.addClass(n),$(this).mousemove(function(t){1==o&&(t.pageX-a>=20?(a=t.pageX,s++,s>r&&(s=0)):t.pageX-a<=-20&&(a=t.pageX,s--,s<0&&(s=r)),i.eq(s).addClass(n).siblings().removeClass(n))})}),$("body").mouseup(function(){o=!1,e.removeClass(n)}),e.get(0).addEventListener("touchstart",function(t){a=t.targetTouches[0].pageX,o=!0}),e.get(0).addEventListener("touchmove",function(t){1==o&&(t.targetTouches[0].pageX-a>=20?(a=t.targetTouches[0].pageX,s++,s>r&&(s=0)):t.targetTouches[0].pageX-a<=-20&&(a=t.targetTouches[0].pageX,s--,s<0&&(s=r)),i.eq(s).addClass(n).siblings().removeClass(n))}),e.get(0).addEventListener("touchend",function(t){o=!1}))}function HiTextLyric(t){var e=t.element,i=t.element2,r=/(
|\S| )/g,n=t.offset,s=t.class,a=t.duration;(e.length||"number"==typeof e)&&i.each(function(){var t=$(this),i=t.html().match(r);t.html("");var o="";i.forEach(t=>{o+=""+t+""}),t.html(o);var l=t.find("span"),A=a/l.length;l.each(function(){function t(){var t="object"==typeof e?e.offset().top:Number(e);$(window).scrollTop()>t-$(window).height()+$(window).height()*n+i.index()*A?i.addClass(s):i.removeClass(s)}var i=$(this);$(window).scroll(function(){t()}),t()})})}function HiHoverRotate(t){var e=t.element,i=t.element2,r=t.sensitivityX,n=t.sensitivityY,s=t.perspective,a=t.duration,o=!0,l=!0,A=null;0!=e.length&&e.mousemove(function(t){o&&(o=!1,clearTimeout(A),A=setTimeout(function(){l=!1},1e3*a));var e=t.pageX-$(this).offset().left,h=t.pageY-$(this).offset().top,c=$(this).outerWidth(),p=$(this).outerHeight(),d=(h-p/2)/(p/2)*r,u=(e-c/2)/(c/2)*n;i.each(function(){$(this).css({transition:1==l?a+"s":"0s","will-change":"transform",transform:"perspective("+s+") rotateX("+d+"deg) rotateY("+u+"deg) scale3d(1,1,1)"})})}).mouseleave(function(){o=!0,l=!0,i.each(function(){$(this).css({transition:a+"s","will-change":"transform",transform:"perspective("+s+") rotateX(0deg) rotateY(0deg)"})})})}function HiHoverParallax(t){var e=t.element,i=t.element2,r=t.sensitivityX,n=t.sensitivityY,s=t.duration,a=!0,o=!0,l=null;0!=e.length&&e.mousemove(function(t){a&&(a=!1,clearTimeout(l),l=setTimeout(function(){o=!1},1e3*s));var e=t.pageX-$(this).offset().left,A=t.pageY-$(this).offset().top,h=$(this).outerWidth(),c=$(this).outerHeight(),p=(e-h/2)/(h/2)*r,d=(A-c/2)/(c/2)*n;i.each(function(){$(this).css({transition:1==o?s+"s":"0s",transform:"translateX("+p+"px) translateY("+d+"px)"})})}).mouseleave(function(){a=!0,o=!0,i.each(function(){$(this).css({transition:s+"s",transform:"translateX(0px) translateY(0px)"})})})}function HiCanvasPlay(t){var e=t.element,i=t.element2,r=t.offset,n=t.once,s=t.player;0!=e.length&&i.each(function(){function t(){a&&($(window).scrollTop()>=e.offset().top-$(window).height()+$(window).height()*r&&$(window).scrollTop()0?(o.parents(".swiper-slide-active").length>0||o.parents(".swiper-slide-thumb-active").length>0)&&s.play():o.parents(".c-360-main").length>0?o.parents(".on").length>0&&s.play():o.parents(".c-720-main").length>0?o.parents(".on").length>0&&s.play():s.play()):(i=!0,s.currentTime=0,s.pause()))}var i=!0,a=!0,o=$(this),l=null;$(window).scroll(function(){t()}),l=setTimeout(function(){t(),clearTimeout(l)},500)})}function HiLazyload(t){var e=t.element,i=t.offset;e.each(function(){function t(){e&&$(window).scrollTop()>r.offset().top-$(window).height()+$(window).height()*-i&&(e=!1,"IMG"!=r.prop("tagName")&&"VIDEO"!=r.prop("tagName")&&"AUDIO"!=r.prop("tagName")||r.attr("src",r.data("src")),"SOURCE"==r.prop("tagName")&&("VIDEO"!=r.parent().prop("tagName")&&"AUDIO"!=r.parent().prop("tagName")||r.attr("src",r.data("src")),"PICTURE"==r.parent().prop("tagName")&&r.attr("srcset",r.data("src"))))}var e=!0,r=$(this);t(),$(window).scroll(function(){t()})})}!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";function i(t,e,i){var r,n,s=(i=i||ct).createElement("script");if(s.text=t,e)for(r in pt)(n=e[r]||e.getAttribute&&e.getAttribute(r))&&s.setAttribute(r,n);i.head.appendChild(s).parentNode.removeChild(s)}function r(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?rt[nt.call(t)]||"object":typeof t}function n(t){var e=!!t&&"length"in t&&t.length,i=r(t);return!At(t)&&!ht(t)&&("array"===i||0===e||"number"==typeof e&&0_.cacheLength&&delete e[t.shift()],e[i+" "]=r}}function r(t){return t[D]=!0,t}function n(t){var e=S.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function a(t){return function(e){return s(e,"input")&&e.type===t}}function o(t){return function(e){return(s(e,"input")||s(e,"button"))&&e.type===t}}function l(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ht(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function A(t){return r(function(e){return e=+e,r(function(i,r){for(var n,s=t([],i.length,e),a=s.length;a--;)i[n=s[a]]&&(i[n]=!(r[n]=i[n]))})})}function h(t){return t&&void 0!==t.getElementsByTagName&&t}function c(t){var i,r=t?t.ownerDocument||t:bt;return r!=S&&9===r.nodeType&&r.documentElement&&(B=(S=r).documentElement,T=!ft.isXMLDoc(S),k=B.matches||B.webkitMatchesSelector||B.msMatchesSelector,B.msMatchesSelector&&bt!=S&&(i=S.defaultView)&&i.top!==i&&i.addEventListener("unload",At),lt.getById=n(function(t){return B.appendChild(t).id=ft.expando,!S.getElementsByName||!S.getElementsByName(ft.expando).length}),lt.disconnectedMatch=n(function(t){return k.call(t,"*")}),lt.scope=n(function(){return S.querySelectorAll(":scope")}),lt.cssHas=n(function(){try{return S.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}}),lt.getById?(_.filter.ID=function(t){var e=t.replace(at,ot);return function(t){return t.getAttribute("id")===e}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&T){var i=e.getElementById(t);return i?[i]:[]}}):(_.filter.ID=function(t){var e=t.replace(at,ot);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&T){var i,r,n,s=e.getElementById(t);if(s){if((i=s.getAttributeNode("id"))&&i.value===t)return[s];for(n=e.getElementsByName(t),r=0;s=n[r++];)if((i=s.getAttributeNode("id"))&&i.value===t)return[s]}return[]}}),_.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},_.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&T)return e.getElementsByClassName(t)},P=[],n(function(t){var e;B.appendChild(t).innerHTML="",t.querySelectorAll("[selected]").length||P.push("\\["+vt+"*(?:value|"+q+")"),t.querySelectorAll("[id~="+D+"-]").length||P.push("~="),t.querySelectorAll("a#"+D+"+*").length||P.push(".#.+[+~]"),t.querySelectorAll(":checked").length||P.push(":checked"),(e=S.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),B.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&P.push(":enabled",":disabled"),(e=S.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||P.push("\\["+vt+"*name"+vt+"*="+vt+"*(?:''|\"\")")}),lt.cssHas||P.push(":has"),P=P.length&&new RegExp(P.join("|")),G=function(t,i){if(t===i)return x=!0,0;var r=!t.compareDocumentPosition-!i.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)==(i.ownerDocument||i)?t.compareDocumentPosition(i):1)||!lt.sortDetached&&i.compareDocumentPosition(t)===r?t===S||t.ownerDocument==bt&&e.contains(bt,t)?-1:i===S||i.ownerDocument==bt&&e.contains(bt,i)?1:I?it.call(I,t)-it.call(I,i):0:4&r?-1:1)}),S}function p(){}function d(t,i){var r,n,s,a,o,l,A,h=L[t+" "];if(h)return i?0:h.slice(0);for(o=t,l=[],A=_.preFilter;o;){for(a in r&&!(n=j.exec(o))||(n&&(o=o.slice(n[0].length)||o),l.push(s=[])),r=!1,(n=U.exec(o))&&(r=n.shift(),s.push({value:r,type:n[0].replace(Et," ")}),o=o.slice(r.length)),_.filter)!(n=K[a].exec(o))||A[a]&&!(n=A[a](n))||(r=n.shift(),s.push({value:r,type:a,matches:n}),o=o.slice(r.length));if(!r)break}return i?o.length:o?e.error(t):L(t,l).slice(0)}function u(t){for(var e=0,i=t.length,r="";e+~]|"+vt+")"+vt+"*"),Y=new RegExp(vt+"|>"),J=new RegExp(z),W=new RegExp("^"+H+"$"),K={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+$),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+vt+"*(even|odd|(([+-]|)(\\d*)n|)"+vt+"*(?:([+-]|)"+vt+"*(\\d+)|))"+vt+"*\\)|)","i"),bool:new RegExp("^(?:"+q+")$","i"),needsContext:new RegExp("^"+vt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+vt+"*((?:-\\d)?\\d*)"+vt+"*\\)|)(?=[^-]|$)","i")},tt=/^(?:input|select|textarea|button)$/i,et=/^h\d$/i,rt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,nt=/[+~]/,at=new RegExp("\\\\[\\da-fA-F]{1,6}"+vt+"?|\\\\([^\\r\\n\\f])","g"),ot=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},At=function(){c()},ht=f(function(t){return!0===t.disabled&&s(t,"fieldset")},{dir:"parentNode",next:"legend"});try{M.apply(X=Z.call(bt.childNodes),bt.childNodes),X[bt.childNodes.length].nodeType}catch(b){M={apply:function(t,e){_t.apply(t,Z.call(e))},call:function(t){_t.apply(t,Z.call(arguments,1))}}}for(b in e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if(c(t),T&&!N[i+" "]&&(!P||!P.test(i)))try{var r=k.call(t,i);if(r||lt.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){N(i,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(at,ot),t[3]=(t[3]||t[4]||t[5]||"").replace(at,ot),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return K.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&J.test(i)&&(e=d(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(at,ot).toLowerCase();return"*"===t?function(){return!0}:function(t){return s(t,e)}},CLASS:function(t){var e=R[t+" "];return e||(e=new RegExp("(^|"+vt+")"+t+"("+vt+"|$)"))&&R(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,i,r){return function(n){var s=e.attr(n,t);return null==s?"!="===i:!i||(s+="","="===i?s===r:"!="===i?s!==r:"^="===i?r&&0===s.indexOf(r):"*="===i?r&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;ft.filter=function(t,e,i){var r=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?ft.find.matchesSelector(r,t)?[r]:[]:ft.find.matches(t,ft.grep(e,function(t){return 1===t.nodeType}))},ft.fn.extend({find:function(t){var e,i,r=this.length,n=this;if("string"!=typeof t)return this.pushStack(ft(t).filter(function(){for(e=0;e)[^>]*|#([\w-]+))$/;(ft.fn.init=function(t,e,i){var r,n;if(!t)return this;if(i=i||Bt,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:Tt.exec(t))||!r[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof ft?e[0]:e,ft.merge(this,ft.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:ct,!0)),St.test(r[1])&&ft.isPlainObject(e))for(r in e)At(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(n=ct.getElementById(r[2]))&&(this[0]=n,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):At(t)?void 0!==i.ready?i.ready(t):t(ft):ft.makeArray(t,this)}).prototype=ft.fn,Bt=ft(ct);var Pt=/^(?:parents|prev(?:Until|All))/,kt={children:!0,contents:!0,next:!0,prev:!0};ft.fn.extend({has:function(t){var e=ft(t,this),i=e.length;return this.filter(function(){for(var t=0;t\x20\t\r\n\f]*)/i,ee=/^$|^module$|\/(?:java|ecma)script/i;Xt=ct.createDocumentFragment().appendChild(ct.createElement("div")),(Kt=ct.createElement("input")).setAttribute("type","radio"),Kt.setAttribute("checked","checked"),Kt.setAttribute("name","t"),Xt.appendChild(Kt),lt.checkClone=Xt.cloneNode(!0).cloneNode(!0).lastChild.checked,Xt.innerHTML="",lt.noCloneChecked=!!Xt.cloneNode(!0).lastChild.defaultValue,Xt.innerHTML="",lt.option=!!Xt.lastChild;var ie={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ie.tbody=ie.tfoot=ie.colgroup=ie.caption=ie.thead,ie.th=ie.td,lt.option||(ie.optgroup=ie.option=[1,""]);var re=/<|&#?\w+;/,ne=/^([^.]*)(?:\.(.+)|)/;ft.event={global:{},add:function(t,e,i,r,n){var s,a,o,l,A,h,c,p,d,u,f,m=Nt.get(t);if(Ot(t))for(i.handler&&(i=(s=i).handler,n=s.selector),n&&ft.find.matchesSelector(jt,n),i.guid||(i.guid=ft.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(e){return void 0!==ft&&ft.event.triggered!==e.type?ft.event.dispatch.apply(t,arguments):void 0}),A=(e=(e||"").match(Mt)||[""]).length;A--;)d=f=(o=ne.exec(e[A])||[])[1],u=(o[2]||"").split(".").sort(),d&&(c=ft.event.special[d]||{},d=(n?c.delegateType:c.bindType)||d,c=ft.event.special[d]||{},h=ft.extend({type:d,origType:f,data:r,handler:i,guid:i.guid,selector:n,needsContext:n&&ft.expr.match.needsContext.test(n),namespace:u.join(".")},s),(p=l[d])||((p=l[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,r,u,a)||t.addEventListener&&t.addEventListener(d,a)),c.add&&(c.add.call(t,h),h.handler.guid||(h.handler.guid=i.guid)),n?p.splice(p.delegateCount++,0,h):p.push(h),ft.event.global[d]=!0)},remove:function(t,e,i,r,n){var s,a,o,l,A,h,c,p,d,u,f,m=Nt.hasData(t)&&Nt.get(t);if(m&&(l=m.events)){for(A=(e=(e||"").match(Mt)||[""]).length;A--;)if(d=f=(o=ne.exec(e[A])||[])[1],u=(o[2]||"").split(".").sort(),d){for(c=ft.event.special[d]||{},p=l[d=(r?c.delegateType:c.bindType)||d]||[],o=o[2]&&new RegExp("(^|\\.)"+u.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=s=p.length;s--;)h=p[s],!n&&f!==h.origType||i&&i.guid!==h.guid||o&&!o.test(h.namespace)||r&&r!==h.selector&&("**"!==r||!h.selector)||(p.splice(s,1),h.selector&&p.delegateCount--,c.remove&&c.remove.call(t,h));a&&!p.length&&(c.teardown&&!1!==c.teardown.call(t,u,m.handle)||ft.removeEvent(t,d,m.handle),delete l[d])}else for(d in l)ft.event.remove(t,d+e[A],i,r,!0);ft.isEmptyObject(l)&&Nt.remove(t,"handle events")}},dispatch:function(t){var e,i,r,n,s,a,o=new Array(arguments.length),l=ft.event.fix(t),A=(Nt.get(this,"events")||Object.create(null))[l.type]||[],h=ft.event.special[l.type]||{};for(o[0]=l,e=1;e\s*$/g;ft.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var r,n,s,a,o,l,A,h=t.cloneNode(!0),c=Ut(t);if(!(lt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ft.isXMLDoc(t)))for(a=v(h),r=0,n=(s=v(t)).length;r").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&n("error"===t.type?404:200,t.type)}),ct.head.appendChild(e[0])},abort:function(){i&&i()}}});var Xe,Ke=[],Ze=/(=)\?(?=&|$)|\?\?/;ft.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ke.pop()||ft.expando+"_"+ke.guid++;return this[t]=!0,t}}),ft.ajaxPrefilter("json jsonp",function(e,i,r){var n,s,a,o=!1!==e.jsonp&&(Ze.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ze.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return n=e.jsonpCallback=At(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(Ze,"$1"+n):!1!==e.jsonp&&(e.url+=(Me.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return a||ft.error(n+" was not called"),a[0]},e.dataTypes[0]="json",s=t[n],t[n]=function(){a=arguments},r.always(function(){void 0===s?ft(t).removeProp(n):t[n]=s,e[n]&&(e.jsonpCallback=i.jsonpCallback,Ke.push(n)),a&&At(s)&&s(a[0]),a=s=void 0}),"script"}),lt.createHTMLDocument=((Xe=ct.implementation.createHTMLDocument("").body).innerHTML="
",2===Xe.childNodes.length),ft.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(lt.createHTMLDocument?((r=(e=ct.implementation.createHTMLDocument("")).createElement("base")).href=ct.location.href,e.head.appendChild(r)):e=ct),s=!i&&[],(n=St.exec(t))?[e.createElement(n[1])]:(n=C([t],e,s),s&&s.length&&ft(s).remove(),ft.merge([],n.childNodes)));var r,n,s},ft.fn.load=function(t,e,i){var r,n,s,a=this,o=t.indexOf(" ");return-1").append(ft.parseHTML(t)).find(r):t)}).always(i&&function(t,e){a.each(function(){i.apply(this,s||[t.responseText,e,t])})}),this},ft.expr.pseudos.animated=function(t){return ft.grep(ft.timers,function(e){return t===e.elem}).length},ft.offset={setOffset:function(t,e,i){var r,n,s,a,o,l,A=ft.css(t,"position"),h=ft(t),c={};"static"===A&&(t.style.position="relative"),o=h.offset(),s=ft.css(t,"top"),l=ft.css(t,"left"),("absolute"===A||"fixed"===A)&&-1<(s+l).indexOf("auto")?(a=(r=h.position()).top,n=r.left):(a=parseFloat(s)||0,n=parseFloat(l)||0),At(e)&&(e=e.call(t,i,ft.extend({},o))),null!=e.top&&(c.top=e.top-o.top+a),null!=e.left&&(c.left=e.left-o.left+n),"using"in e?e.using.call(t,c):h.css(c)}},ft.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ft.offset.setOffset(this,t,e)});var e,i,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),i=r.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,r=this[0],n={top:0,left:0};if("fixed"===ft.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),i=r.ownerDocument,t=r.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===ft.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((n=ft(t).offset()).top+=ft.css(t,"borderTopWidth",!0),n.left+=ft.css(t,"borderLeftWidth",!0))}return{top:e.top-n.top-ft.css(r,"marginTop",!0),left:e.left-n.left-ft.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===ft.css(t,"position");)t=t.offsetParent;return t||jt})}}),ft.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i="pageYOffset"===e;ft.fn[t]=function(r){return Ft(this,function(t,r,n){var s;if(ht(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===n)return s?s[e]:t[r];s?s.scrollTo(i?s.pageXOffset:n,i?n:s.pageYOffset):t[r]=n},t,r,arguments.length)}}),ft.each(["top","left"],function(t,e){ft.cssHooks[e]=D(lt.pixelPosition,function(t,i){if(i)return i=M(t,e),le.test(i)?ft(t).position()[e]+"px":i})}),ft.each({Height:"height",Width:"width"},function(t,e){ft.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,r){ft.fn[r]=function(n,s){var a=arguments.length&&(i||"boolean"!=typeof n),o=i||(!0===n||!0===s?"margin":"border");return Ft(this,function(e,i,n){var s ;return ht(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===n?ft.css(e,i,o):ft.style(e,i,n,o)},e,a?n:void 0,a)}})}),ft.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ft.fn[e]=function(t){return this.on(e,t)}}),ft.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,r){return this.on(e,t,i,r)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),ft.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){ft.fn[e]=function(t,i){return 00?a[a.length-1]:null;null===o?a.push(e):Math.floor(Math.abs(s-n))<=i?a[a.length-1]=o.add(e):a.push(e),s=n}),a},s=function(e){var i={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?t.extend(i,e):("boolean"==typeof e?i.byRow=e:"remove"===e&&(i.remove=!0),i)},a=t.fn.matchHeight=function(e){var i=s(e);if(i.remove){var r=this;return this.css(i.property,""),t.each(a._groups,function(t,e){e.elements=e.elements.not(r)}),this}return this.length<=1&&!i.target?this:(a._groups.push({elements:this,options:i}),a._apply(this,i),this)};a.version="0.7.2",a._groups=[],a._throttle=80,a._maintainScroll=!1,a._beforeUpdate=null,a._afterUpdate=null,a._rows=n,a._parse=r,a._parseOptions=s,a._apply=function(e,i){var o=s(i),l=t(e),A=[l],h=t(window).scrollTop(),c=t("html").outerHeight(!0),p=l.parents().filter(":hidden");return p.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),p.css("display","block"),o.byRow&&!o.target&&(l.each(function(){var e=t(this),i=e.css("display");"inline-block"!==i&&"flex"!==i&&"inline-flex"!==i&&(i="block"),e.data("style-cache",e.attr("style")),e.css({display:i,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),A=n(l),l.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(A,function(e,i){var n=t(i),s=0;if(o.target)s=o.target.outerHeight(!1);else{if(o.byRow&&n.length<=1)return void n.css(o.property,"");n.each(function(){var e=t(this),i=e.attr("style"),r=e.css("display");"inline-block"!==r&&"flex"!==r&&"inline-flex"!==r&&(r="block");var n={display:r};n[o.property]="",e.css(n),e.outerHeight(!1)>s&&(s=e.outerHeight(!1)),i?e.attr("style",i):e.css("display","")})}n.each(function(){var e=t(this),i=0;o.target&&e.is(o.target)||("border-box"!==e.css("box-sizing")&&(i+=r(e.css("border-top-width"))+r(e.css("border-bottom-width")),i+=r(e.css("padding-top"))+r(e.css("padding-bottom"))),e.css(o.property,s-i+"px"))})}),p.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),a._maintainScroll&&t(window).scrollTop(h/c*t("html").outerHeight(!0)),this},a._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var i=t(this),r=i.attr("data-mh")||i.attr("data-match-height");e[r]=r in e?e[r].add(i):i}),t.each(e,function(){this.matchHeight(!0)})};var o=function(e){a._beforeUpdate&&a._beforeUpdate(e,a._groups),t.each(a._groups,function(){a._apply(this.elements,this.options)}),a._afterUpdate&&a._afterUpdate(e,a._groups)};a._update=function(r,n){if(n&&"resize"===n.type){var s=t(window).width();if(s===e)return;e=s}r?-1===i&&(i=setTimeout(function(){o(n),i=-1},a._throttle)):o(n)},t(a._applyDataApi);var l=t.fn.on?"on":"bind";t(window)[l]("load",function(t){a._update(!1,t)}),t(window)[l]("resize orientationchange",function(t){a._update(!0,t)})}),function(){var t,e,i,r,n,s=function(t,e){return function(){return t.apply(e,arguments)}},a=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};e=function(){function t(){}return t.prototype.extend=function(t,e){var i,r;for(i in e)r=e[i],null==t[i]&&(t[i]=r);return t},t.prototype.isMobile=function(t){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)},t.prototype.createEvent=function(t,e,i,r){var n;return null==e&&(e=!1),null==i&&(i=!1),null==r&&(r=null),null!=document.createEvent?(n=document.createEvent("CustomEvent"),n.initCustomEvent(t,e,i,r)):null!=document.createEventObject?(n=document.createEventObject(),n.eventType=t):n.eventName=t,n},t.prototype.emitEvent=function(t,e){return null!=t.dispatchEvent?t.dispatchEvent(e):e in(null!=t)?t[e]():"on"+e in(null!=t)?t["on"+e]():void 0},t.prototype.addEvent=function(t,e,i){return null!=t.addEventListener?t.addEventListener(e,i,!1):null!=t.attachEvent?t.attachEvent("on"+e,i):t[e]=i},t.prototype.removeEvent=function(t,e,i){return null!=t.removeEventListener?t.removeEventListener(e,i,!1):null!=t.detachEvent?t.detachEvent("on"+e,i):delete t[e]},t.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},t}(),i=this.WeakMap||this.MozWeakMap||(i=function(){function t(){this.keys=[],this.values=[]}return t.prototype.get=function(t){var e,i,r,n,s;for(s=this.keys,e=r=0,n=s.length;n>r;e=++r)if(i=s[e],i===t)return this.values[e]},t.prototype.set=function(t,e){var i,r,n,s,a;for(a=this.keys,i=n=0,s=a.length;s>n;i=++n)if(r=a[i],r===t)return void(this.values[i]=e);return this.keys.push(t),this.values.push(e)},t}()),t=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(t=function(){function t(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return t.notSupported=!0,t.prototype.observe=function(){},t}()),r=this.getComputedStyle||function(t){return this.getPropertyValue=function(e){var i;return"float"===e&&(e="styleFloat"),n.test(e)&&e.replace(n,function(t,e){return e.toUpperCase()}),(null!=(i=t.currentStyle)?i[e]:void 0)||null},this},n=/(\-([a-z]){1})/g,this.WOW=function(){function n(t){null==t&&(t={}),this.scrollCallback=s(this.scrollCallback,this),this.scrollHandler=s(this.scrollHandler,this),this.resetAnimation=s(this.resetAnimation,this),this.start=s(this.start,this),this.scrolled=!0,this.config=this.util().extend(t,this.defaults),null!=t.scrollContainer&&(this.config.scrollContainer=document.querySelector(t.scrollContainer)),this.animationNameCache=new i,this.wowEvent=this.util().createEvent(this.config.boxClass)}return n.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},n.prototype.init=function(){var t;return this.element=window.document.documentElement,"interactive"===(t=document.readyState)||"complete"===t?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},n.prototype.start=function(){var e,i,r,n;if(this.stopped=!1,this.boxes=function(){var t,i,r,n;for(r=this.element.querySelectorAll("."+this.config.boxClass),n=[],t=0,i=r.length;i>t;t++)e=r[t],n.push(e);return n}.call(this),this.all=function(){var t,i,r,n;for(r=this.boxes,n=[],t=0,i=r.length;i>t;t++)e=r[t],n.push(e);return n}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(n=this.boxes,i=0,r=n.length;r>i;i++)e=n[i],this.applyStyle(e,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new t(function(t){return function(e){var i,r,n,s,a;for(a=[],i=0,r=e.length;r>i;i++)s=e[i],a.push(function(){var t,e,i,r;for(i=s.addedNodes||[],r=[],t=0,e=i.length;e>t;t++)n=i[t],r.push(this.doSync(n));return r}.call(t));return a}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},n.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},n.prototype.sync=function(){return t.notSupported?this.doSync(this.element):void 0},n.prototype.doSync=function(t){var e,i,r,n,s;if(null==t&&(t=this.element),1===t.nodeType){for(t=t.parentNode||t,n=t.querySelectorAll("."+this.config.boxClass),s=[],i=0,r=n.length;r>i;i++)e=n[i],a.call(this.all,e)<0?(this.boxes.push(e),this.all.push(e),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(e,!0),s.push(this.scrolled=!0)):s.push(void 0);return s}},n.prototype.show=function(t){return this.applyStyle(t),t.className=t.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(t),this.util().emitEvent(t,this.wowEvent),this.util().addEvent(t,"animationend",this.resetAnimation),this.util().addEvent(t,"oanimationend",this.resetAnimation),this.util().addEvent(t,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(t,"MSAnimationEnd",this.resetAnimation),t},n.prototype.applyStyle=function(t,e){var i,r,n,s;return r=t.getAttribute("data-wow-duration"),i=t.getAttribute("data-wow-delay"),n=t.getAttribute("data-wow-iteration"),this.animate((s=this,function(){return s.customStyle(t,e,r,i,n)}))},n.prototype.animate="requestAnimationFrame"in window?function(t){return window.requestAnimationFrame(t)}:function(t){return t()},n.prototype.resetStyle=function(){var t,e,i,r,n;for(r=this.boxes,n=[],e=0,i=r.length;i>e;e++)t=r[e],n.push(t.style.visibility="visible");return n},n.prototype.resetAnimation=function(t){var e;return t.type.toLowerCase().indexOf("animationend")>=0?(e=t.target||t.srcElement,e.className=e.className.replace(this.config.animateClass,"").trim()):void 0},n.prototype.customStyle=function(t,e,i,r,n){return e&&this.cacheAnimationName(t),t.style.visibility=e?"hidden":"visible",i&&this.vendorSet(t.style,{animationDuration:i}),r&&this.vendorSet(t.style,{animationDelay:r}),n&&this.vendorSet(t.style,{animationIterationCount:n}),this.vendorSet(t.style,{animationName:e?"none":this.cachedAnimationName(t)}),t},n.prototype.vendors=["moz","webkit"],n.prototype.vendorSet=function(t,e){var i,r,n,s;for(i in r=[],e)n=e[i],t[""+i]=n,r.push(function(){var e,r,a,o;for(a=this.vendors,o=[],e=0,r=a.length;r>e;e++)s=a[e],o.push(t[""+s+i.charAt(0).toUpperCase()+i.substr(1)]=n);return o}.call(this));return r},n.prototype.vendorCSS=function(t,e){var i,n,s,a,o,l;for(o=r(t),a=o.getPropertyCSSValue(e),s=this.vendors,i=0,n=s.length;n>i;i++)l=s[i],a=a||o.getPropertyCSSValue("-"+l+"-"+e);return a},n.prototype.animationName=function(t){var e;try{e=this.vendorCSS(t,"animation-name").cssText}catch(i){e=r(t).getPropertyValue("animation-name")}return"none"===e?"":e},n.prototype.cacheAnimationName=function(t){return this.animationNameCache.set(t,this.animationName(t))},n.prototype.cachedAnimationName=function(t){return this.animationNameCache.get(t)},n.prototype.scrollHandler=function(){return this.scrolled=!0},n.prototype.scrollCallback=function(){var t;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var e,i,r,n;for(r=this.boxes,n=[],e=0,i=r.length;i>e;e++)t=r[e],t&&(this.isVisible(t)?this.show(t):n.push(t));return n}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},n.prototype.offsetTop=function(t){for(var e;void 0===t.offsetTop;)t=t.parentNode;for(e=t.offsetTop;t=t.offsetParent;)e+=t.offsetTop;return e},n.prototype.isVisible=function(t){var e,i,r,n,s;return i=t.getAttribute("data-wow-offset")||this.config.offset,s=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,n=s+Math.min(this.element.clientHeight,this.util().innerHeight())-i,r=this.offsetTop(t),e=r+t.clientHeight,n>=r&&e>=s},n.prototype.util=function(){return null!=this._util?this._util:this._util=new e},n.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},n}()}.call(this),function(t){function e(){var e=.1*t(window).height(),i=.1,r=!0,n=new WOW({boxClass:"wow",animateClass:"animated",offset:e,callback:function(e){(e=t(e)).css("animation-delay",i.toFixed(1)+"s"),i+=.1}});t(window).scroll(function(){r&&(i=.2,setTimeout(function(){r=!0},150),r=!1)}),n.init()}e()}(jQuery),function(t){var e=function(t){this.init(t)};e.prototype={init:function(e){var i={id:"",title:{text:"",className:""},content:{text:[],className:""},point:{lng:0,lat:0},type:[],level:15,zoom:!1};if(this.opts=t.extend({},i,e),!this.opts.id)throw"id不能为空";this.renderMap()},renderMap:function(){var t=this.opts,e=t.id,i=t.level||15,r=this.map=new BMap.Map(e),n=this.point=new BMap.Point(t.point.lng,t.point.lat);r.centerAndZoom(n,i),this.addControl()},addControl:function(){var t=this.opts,e=this.map,i=t.type,r=t.zoom;if(e.addControl(new BMap.NavigationControl),e.addControl(new BMap.ScaleControl),e.addControl(new BMap.OverviewMapControl),r&&e.enableScrollWheelZoom(!0),i.length>0){var n=this.getMapType(i);e.addControl(new BMap.MapTypeControl({mapTypes:n}))}this.createMarker()},getMapType:function(e){var i=[],r={"地图":BMAP_NORMAL_MAP,"卫星":BMAP_SATELLITE_MAP,"三维":BMAP_PERSPECTIVE_MAP};return t.each(e,function(t,e){e in r&&i.push(r[e])}),i},createMarker:function(){var t=this,e=this.map,i=this.point,r=new BMap.Marker(i),n=this.opts.icon;n&&n.url&&(r=new BMap.Marker(i,{icon:new BMap.Icon(n.url,new BMap.Size(n.width,n.height))})),e.addOverlay(r),this.renderInfoWindow(),r.addEventListener("click",function(){t.openInfoWindow()})},renderInfoWindow:function(){this.map,this.point;var e=this.opts,i=e.content.text,r="";i.length>0&&t.each(i,function(t,i){r+='
'+i+"
"}),this.infoWindow=new BMap.InfoWindow(r,{width:e.width||0,height:e.height||0,title:'
'+e.title.text+"
"}),this.openInfoWindow()},openInfoWindow:function(){var t=this.map,e=this.point,i=this.infoWindow;i.isOpen()||t.openInfoWindow(i,e)}},window.BaiduMap=e}(jQuery),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={},r={}){Object.keys(r).forEach(n=>{void 0===i[n]?i[n]=r[n]:t(r[n])&&t(i[n])&&Object.keys(r[n]).length>0&&e(i[n],r[n])})}function i(){const t="undefined"!=typeof document?document:{};return e(t,L),t}function r(){const t="undefined"!=typeof window?window:{};return e(t,O),t}function n(t=[]){const e=[];return t.forEach(t=>{Array.isArray(t)?e.push(...n(t)):e.push(t)}),e}function s(t,e){return Array.prototype.filter.call(t,e)}function a(t,e){const n=r(),s=i();let a=[];if(!e&&t instanceof N)return t;if(!t)return new N(a);if("string"==typeof t){const i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){let t="div";0===i.indexOf("6&&(s=s.split(", ").map(t=>t.replace(",",".")).join(", ")),a=new i.WebKitCSSMatrix("none"===s?"":s)):(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=a.toString().split(",")),"x"===e&&(s=i.WebKitCSSMatrix?a.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===e&&(s=i.WebKitCSSMatrix?a.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),s||0}function h(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function c(...t){const e=Object(t[0]),i=["__proto__","constructor","prototype"];for(let n=1;ni.indexOf(t)<0);for(let i=0,r=t.length;is?"next":"prev",h=(t,e)=>"next"===A&&t>=e||"prev"===A&&t<=e,c=()=>{a=(new Date).getTime(),null===o&&(o=a);const r=Math.max(Math.min((a-o)/l,1),0),A=.5-Math.cos(r*Math.PI)/2;let p=s+A*(e-s);if(h(p,e)&&(p=e),t.wrapperEl.scrollTo({[i]:p}),h(p,e))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:p})}),void n.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=n.requestAnimationFrame(c)};c()}function u(){return q||(q=function(){const t=r(),e=i();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}}()),q}function f(t={}){return H||(H=function({userAgent:t}={}){const e=u(),i=r(),n=i.navigator.platform,s=t||i.navigator.userAgent,a={ios:!1,android:!1},o=i.screen.width,l=i.screen.height,A=s.match(/(Android);?[\s\/]+([\d.]+)?/);let h=s.match(/(iPad).*OS\s([\d_]+)/);const c=s.match(/(iPod)(.*OS\s([\d_]+))?/),p=!h&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),d="Win32"===n;let f="MacIntel"===n;return!h&&f&&e.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${l}`)>=0&&(h=s.match(/(Version)\/([\d.]+)/),h||(h=[0,1,"13_0_0"]),f=!1),A&&!d&&(a.os="android",a.android=!0),(h||p||c)&&(a.os="ios",a.ios=!0),a}(t)),H}function m(){return $||($=function(){const t=r();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)}}()),$}function g({swiper:t,runCallbacks:e,direction:i,step:r}){const{activeIndex:n,previousIndex:s}=t;let a=i;if(a||(a=n>s?"next":n0)return;if(o.isTouched&&o.isMoved)return;A.noSwipingClass&&""!==A.noSwipingClass&&p.target&&p.target.shadowRoot&&t.path&&t.path[0]&&(d=a(t.path[0]));const u=A.noSwipingSelector?A.noSwipingSelector:`.${A.noSwipingClass}`,f=!(!p.target||!p.target.shadowRoot);if(A.noSwiping&&(f?function(t,e=this){return function e(n){return n&&n!==i()&&n!==r()?(n.assignedSlot&&(n=n.assignedSlot),n.closest(t)||e(n.getRootNode().host)):null}(e)}(u,p.target):d.closest(u)[0]))return void(e.allowClick=!0);if(A.swipeHandler&&!d.closest(A.swipeHandler)[0])return;h.currentX="touchstart"===p.type?p.targetTouches[0].pageX:p.pageX,h.currentY="touchstart"===p.type?p.targetTouches[0].pageY:p.pageY;const m=h.currentX,g=h.currentY,y=A.edgeSwipeDetection||A.iOSEdgeSwipeDetection,v=A.edgeSwipeThreshold||A.iOSEdgeSwipeThreshold;if(y&&(m<=v||m>=s.innerWidth-v)){if("prevent"!==y)return;t.preventDefault()}if(Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),h.startX=m,h.startY=g,o.touchStartTime=l(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,A.threshold>0&&(o.allowThresholdMove=!1),"touchstart"!==p.type){let t=!0;d.is(o.focusableElements)&&(t=!1),n.activeElement&&a(n.activeElement).is(o.focusableElements)&&n.activeElement!==d[0]&&n.activeElement.blur();const i=t&&e.allowTouchMove&&A.touchStartPreventDefault;!A.touchStartForcePreventDefault&&!i||d[0].isContentEditable||p.preventDefault()}e.emit("touchStart",p)}function v(t){const e=i(),r=this,n=r.touchEventsData,{params:s,touches:o,rtlTranslate:A,enabled:h}=r;if(!h)return;let c=t;if(c.originalEvent&&(c=c.originalEvent),!n.isTouched)return void(n.startMoving&&n.isScrolling&&r.emit("touchMoveOpposite",c));if(n.isTouchEvent&&"touchmove"!==c.type)return;const p="touchmove"===c.type&&c.targetTouches&&(c.targetTouches[0]||c.changedTouches[0]),d="touchmove"===c.type?p.pageX:c.pageX,u="touchmove"===c.type?p.pageY:c.pageY;if(c.preventedByNestedSwiper)return o.startX=d,void(o.startY=u);if(!r.allowTouchMove)return r.allowClick=!1,void(n.isTouched&&(Object.assign(o,{startX:d,startY:u,currentX:d,currentY:u}),n.touchStartTime=l()));if(n.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop)if(r.isVertical()){if(uo.startY&&r.translate>=r.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(do.startX&&r.translate>=r.minTranslate())return;if(n.isTouchEvent&&e.activeElement&&c.target===e.activeElement&&a(c.target).is(n.focusableElements))return n.isMoved=!0,void(r.allowClick=!1);if(n.allowTouchCallbacks&&r.emit("touchMove",c),c.targetTouches&&c.targetTouches.length>1)return;o.currentX=d,o.currentY=u;const f=o.currentX-o.startX,m=o.currentY-o.startY;if(r.params.threshold&&Math.sqrt(f**2+m**2)=25&&(t=180*Math.atan2(Math.abs(m),Math.abs(f))/Math.PI,n.isScrolling=r.isHorizontal()?t>s.touchAngle:90-t>s.touchAngle)}if(n.isScrolling&&r.emit("touchMoveOpposite",c),void 0===n.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(n.startMoving=!0)),n.isScrolling)return void(n.isTouched=!1);if(!n.startMoving)return;r.allowClick=!1,!s.cssMode&&c.cancelable&&c.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&c.stopPropagation(),n.isMoved||(s.loop&&!s.cssMode&&r.loopFix(),n.startTranslate=r.getTranslate(),r.setTransition(0),r.animating&&r.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!s.grabCursor||!0!==r.allowSlideNext&&!0!==r.allowSlidePrev||r.setGrabCursor(!0),r.emit("sliderFirstMove",c)),r.emit("sliderMove",c),n.isMoved=!0;let g=r.isHorizontal()?f:m;o.diff=g,g*=s.touchRatio,A&&(g=-g),r.swipeDirection=g>0?"prev":"next",n.currentTranslate=g+n.startTranslate;let y=!0,v=s.resistanceRatio;if(s.touchReleaseOnEdges&&(v=0),g>0&&n.currentTranslate>r.minTranslate()?(y=!1,s.resistance&&(n.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+n.startTranslate+g)**v)):g<0&&n.currentTranslaten.startTranslate&&(n.currentTranslate=n.startTranslate),r.allowSlidePrev||r.allowSlideNext||(n.currentTranslate=n.startTranslate),s.threshold>0){if(!(Math.abs(g)>s.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,n.currentTranslate=n.startTranslate,void(o.diff=r.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}s.followFinger&&!s.cssMode&&((s.freeMode&&s.freeMode.enabled&&r.freeMode||s.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),r.params.freeMode&&s.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(n.currentTranslate),r.setTranslate(n.currentTranslate))}function E(t){const e=this,i=e.touchEventsData,{params:r,touches:n,rtlTranslate:s,slidesGrid:a,enabled:A}=e;if(!A)return;let h=t;if(h.originalEvent&&(h=h.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",h),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&r.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);r.grabCursor&&i.isMoved&&i.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const c=l(),p=c-i.touchStartTime;if(e.allowClick){const t=h.path||h.composedPath&&h.composedPath();e.updateClickedSlide(t&&t[0]||h.target),e.emit("tap click",h),p<300&&c-i.lastClickTime<300&&e.emit("doubleTap doubleClick",h)}if(i.lastClickTime=l(),o(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||0===n.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let d;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,d=r.followFinger?s?e.translate:-e.translate:-i.currentTranslate,r.cssMode)return;if(e.params.freeMode&&r.freeMode.enabled)return void e.freeMode.onTouchEnd({currentPos:d});let u=0,f=e.slidesSizesGrid[0];for(let t=0;t=a[t]&&d=a[t]&&(u=t,f=a[a.length-1]-a[a.length-2])}const m=(d-a[u])/f,g=ur.longSwipesMs){if(!r.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(m>=r.longSwipesRatio?e.slideTo(u+g):e.slideTo(u)),"prev"===e.swipeDirection&&(m>1-r.longSwipesRatio?e.slideTo(u+g):e.slideTo(u))}else{if(!r.shortSwipes)return void e.slideTo(e.activeIndex);!e.navigation||h.target!==e.navigation.nextEl&&h.target!==e.navigation.prevEl?("next"===e.swipeDirection&&e.slideTo(u+g),"prev"===e.swipeDirection&&e.slideTo(u)):h.target===e.navigation.nextEl?e.slideTo(u+g):e.slideTo(u)}}function C(){const t=this,{params:e,el:i}=t;if(i&&0===i.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:n,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=n,t.allowSlideNext=r,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function b(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function _(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:r}=t;if(!r)return;let n;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();n=0===s?0:(t.translate-t.minTranslate())/s,n!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function w(){}function I(t,e){return function(i={}){const r=Object.keys(i)[0],n=i[r];"object"==typeof n&&null!==n?(["navigation","pagination","scrollbar"].indexOf(r)>=0&&!0===t[r]&&(t[r]={auto:!0}),r in t&&"enabled"in n?(!0===t[r]&&(t[r]={enabled:!0}),"object"!=typeof t[r]||"enabled"in t[r]||(t[r].enabled=!0),t[r]||(t[r]={enabled:!1}),c(e,i)):c(e,i)):c(e,i)}}function x(t,e,r,n){const s=i();return t.params.createElements&&Object.keys(n).forEach(i=>{if(!r[i]&&!0===r.auto){let a=t.$el.children(`.${n[i]}`)[0];a||(a=s.createElement("div"),a.className=n[i],t.$el.append(a)),r[i]=a,e[i]=a}}),r}function S(t=""){return`.${t.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function B(t){const e=this,{$wrapperEl:i,params:r}=e;if(r.loop&&e.loopDestroy(),"object"==typeof t&&"length"in t)for(let e=0;e=o)return void i.appendSlide(e);let l=a>t?a+1:a;const A=[];for(let e=o-1;e>=t;e-=1){const t=i.slides.eq(e);t.remove(),A.unshift(t)}if("object"==typeof e&&"length"in e){for(let t=0;tt?a+e.length:a}else r.append(e);for(let t=0;t{if(i.params.effect!==e)return;i.classNames.push(`${i.params.containerModifierClass}${e}`),o&&o()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const t=a?a():{};Object.assign(i.params,t),Object.assign(i.originalParams,t)}),r("setTranslate",()=>{i.params.effect===e&&n()}),r("setTransition",(t,r)=>{i.params.effect===e&&s(r)})}function Q(t,e){return t.transformEl?e.find(t.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):e}function F({swiper:t,duration:e,transformEl:i,allSlides:r}){const{slides:n,activeIndex:s,$wrapperEl:a}=t;if(t.params.virtualTranslate&&0!==e){let e,o=!1;e=r?i?n.find(i):n:i?n.eq(s).find(i):n.eq(s),e.transitionEnd(()=>{if(o)return;if(!t||t.destroyed)return;o=!0,t.animating=!1;const e=["webkitTransitionEnd","transitionend"];for(let t=0;t`),n.append(s)),s}const L={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:""}},O={document:L,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)}};class N extends Array{constructor(t){super(...t||[]),function(t){const e=t.__proto__;Object.defineProperty(t,"__proto__",{get:()=>e,set(t){e.__proto__=t}})}(this)}}a.fn=N.prototype;const G={addClass:function(...t){const e=n(t.map(t=>t.split(" ")));return this.forEach(t=>{t.classList.add(...e)}),this},removeClass:function(...t){const e=n(t.map(t=>t.split(" ")));return this.forEach(t=>{t.classList.remove(...e)}),this},hasClass:function(...t){const e=n(t.map(t=>t.split(" ")));return s(this,t=>e.filter(e=>t.classList.contains(e)).length>0).length>0},toggleClass:function(...t){const e=n(t.map(t=>t.split(" ")));this.forEach(t=>{e.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=0;t-=1){const i=a[t];r&&i.listener===r||r&&i.listener&&i.listener.dom7proxy&&i.listener.dom7proxy===r?(s.removeEventListener(e,i.proxyListener,n),a.splice(t,1)):r||(s.removeEventListener(e,i.proxyListener,n),a.splice(t,1))}}}return this},trigger:function(...t){const e=r(),i=t[0].split(" "),n=t[1];for(let r=0;re>0),r.dispatchEvent(i),r.dom7EventData=[],delete r.dom7EventData}}}return this},transitionEnd:function(t){const e=this;return t&&e.on("transitionend",function i(r){r.target===this&&(t.call(this,r),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=r();return this[0]?t.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const t=r(),e=i(),n=this[0],s=n.getBoundingClientRect(),a=e.body,o=n.clientTop||a.clientTop||0,l=n.clientLeft||a.clientLeft||0,A=n===t?t.scrollY:n.scrollTop,h=n===t?t.scrollX:n.scrollLeft;return{top:s.top+A-o,left:s.left+h-l}}return null},css:function(t,e){const i=r();let n;if(1===arguments.length){if("string"!=typeof t){for(n=0;n{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;ee-1)return a([]);if(t<0){const i=e+t;return a(i<0?[]:[this[i]])}return a([this[t]])},append:function(...t){let e;const r=i();for(let i=0;i=0;n-=1)this[r].insertBefore(i.childNodes[n],this[r].childNodes[0])}else if(t instanceof N)for(n=0;n0?t?this[0].nextElementSibling&&a(this[0].nextElementSibling).is(t)?a([this[0].nextElementSibling]):a([]):this[0].nextElementSibling?a([this[0].nextElementSibling]):a([]):a([])},nextAll:function(t){const e=[];let i=this[0];if(!i)return a([]);for(;i.nextElementSibling;){const r=i.nextElementSibling;t?a(r).is(t)&&e.push(r):e.push(r),i=r}return a(e)},prev:function(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&a(e.previousElementSibling).is(t)?a([e.previousElementSibling]):a([]):e.previousElementSibling?a([e.previousElementSibling]):a([])}return a([])},prevAll:function(t){const e=[];let i=this[0];if(!i)return a([]);for(;i.previousElementSibling;){const r=i.previousElementSibling;t?a(r).is(t)&&e.push(r):e.push(r),i=r}return a(e)},parent:function(t){const e=[];for(let i=0;i{Object.defineProperty(a.fn,t,{value:G[t],writable:!0})});var z={on(t,e,i){const r=this;if("function"!=typeof e)return r;const n=i?"unshift":"push";return t.split(" ").forEach(t=>{r.eventsListeners[t]||(r.eventsListeners[t]=[]),r.eventsListeners[t][n](e)}),r},once(t,e,i){function r(...i){n.off(t,r),r.__emitterProxy&&delete r.__emitterProxy,e.apply(n,i)}const n=this;return"function"!=typeof e?n:(r.__emitterProxy=e,n.on(t,r,i))},onAny(t,e){const i=this;if("function"!=typeof t)return i;const r=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[r](t),i},offAny(t){const e=this;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?(t.split(" ").forEach(t=>{void 0===e?i.eventsListeners[t]=[]:i.eventsListeners[t]&&i.eventsListeners[t].forEach((r,n)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&i.eventsListeners[t].splice(n,1)})}),i):i},emit(...t){const e=this;if(!e.eventsListeners)return e;let i,r,n;return"string"==typeof t[0]||Array.isArray(t[0])?(i=t[0],r=t.slice(1,t.length),n=e):(i=t[0].events,r=t[0].data,n=t[0].context||e),r.unshift(n),(Array.isArray(i)?i:i.split(" ")).forEach(t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(e=>{e.apply(n,[t,...r])}),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach(t=>{t.apply(n,r)})}),e}};let V=!1;const j=(t,e)=>{const r=i(),{params:n,touchEvents:s,el:a,wrapperEl:o,device:l,support:A}=t,h=!!n.nested,c="on"===e?"addEventListener":"removeEventListener",p=e;if(A.touch){const e=!("touchstart"!==s.start||!A.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};a[c](s.start,t.onTouchStart,e),a[c](s.move,t.onTouchMove,A.passiveListener?{passive:!1,capture:h}:h),a[c](s.end,t.onTouchEnd,e),s.cancel&&a[c](s.cancel,t.onTouchEnd,e)}else a[c](s.start,t.onTouchStart,!1),r[c](s.move,t.onTouchMove,h),r[c](s.end,t.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&a[c]("click",t.onClick,!0),n.cssMode&&o[c]("scroll",t.onScroll),n.updateOnWindowResize?t[p](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",C,!0):t[p]("observerUpdate",C,!0)},U=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;var Y={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",spaceBetween: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,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};const J={eventsEmitter:z,update:{updateSize:function(){const t=this;let e,i;const r=t.$el;e=void 0!==t.params.width&&null!==t.params.width?t.params.width:r[0].clientWidth,i=void 0!==t.params.height&&null!==t.params.height?t.params.height:r[0].clientHeight,0===e&&t.isHorizontal()||0===i&&t.isVertical()||(e=e-parseInt(r.css("padding-left")||0,10)-parseInt(r.css("padding-right")||0,10),i=i-parseInt(r.css("padding-top")||0,10)-parseInt(r.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(){function t(t){return i.isHorizontal()?t:{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"}[t]}function e(e,i){return parseFloat(e.getPropertyValue(t(i))||0)}const i=this,r=i.params,{$wrapperEl:n,size:s,rtlTranslate:a,wrongRTL:o}=i,l=i.virtual&&r.virtual.enabled,A=l?i.virtual.slides.length:i.slides.length,h=n.children(`.${i.params.slideClass}`),c=l?i.virtual.slides.length:h.length;let d=[];const u=[],f=[];let m=r.slidesOffsetBefore;"function"==typeof m&&(m=r.slidesOffsetBefore.call(i));let g=r.slidesOffsetAfter;"function"==typeof g&&(g=r.slidesOffsetAfter.call(i));const y=i.snapGrid.length,v=i.slidesGrid.length;let E=r.spaceBetween,C=-m,b=0,_=0;if(void 0===s)return;"string"==typeof E&&E.indexOf("%")>=0&&(E=parseFloat(E.replace("%",""))/100*s),i.virtualSize=-E,a?h.css({marginLeft:"",marginBottom:"",marginTop:""}):h.css({marginRight:"",marginBottom:"",marginTop:""}),r.centeredSlides&&r.cssMode&&(p(i.wrapperEl,"--swiper-centered-offset-before",""),p(i.wrapperEl,"--swiper-centered-offset-after",""));const w=r.grid&&r.grid.rows>1&&i.grid;let I;w&&i.grid.initSlides(c);const x="auto"===r.slidesPerView&&r.breakpoints&&Object.keys(r.breakpoints).filter(t=>void 0!==r.breakpoints[t].slidesPerView).length>0;for(let n=0;n1&&d.push(i.virtualSize-s)}if(0===d.length&&(d=[0]),0!==r.spaceBetween){const e=i.isHorizontal()&&a?"marginLeft":t("marginRight");h.filter((t,e)=>!r.cssMode||e!==h.length-1).css({[e]:`${E}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let t=0;f.forEach(e=>{t+=e+(r.spaceBetween?r.spaceBetween:0)}),t-=r.spaceBetween;const e=t-s;d=d.map(t=>t<0?-m:t>e?e+g:t)}if(r.centerInsufficientSlides){let t=0;if(f.forEach(e=>{t+=e+(r.spaceBetween?r.spaceBetween:0)}),t-=r.spaceBetween,t{d[i]=t-e}),u.forEach((t,i)=>{u[i]=t+e})}}if(Object.assign(i,{slides:h,snapGrid:d,slidesGrid:u,slidesSizesGrid:f}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){p(i.wrapperEl,"--swiper-centered-offset-before",-d[0]+"px"),p(i.wrapperEl,"--swiper-centered-offset-after",i.size/2-f[f.length-1]/2+"px");const t=-i.snapGrid[0],e=-i.slidesGrid[0];i.snapGrid=i.snapGrid.map(e=>e+t),i.slidesGrid=i.slidesGrid.map(t=>t+e)}c!==A&&i.emit("slidesLengthChange"),d.length!==y&&(i.params.watchOverflow&&i.checkOverflow(),i.emit("snapGridLengthChange")),u.length!==v&&i.emit("slidesGridLengthChange"),r.watchSlidesProgress&&i.updateSlidesOffset()},updateAutoHeight:function(t){const e=this,i=[],r=e.virtual&&e.params.virtual.enabled;let n,s=0;"number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed);const a=t=>r?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(n=0;ne.slides.length&&!r)break;i.push(a(t))}else i.push(a(e.activeIndex));for(n=0;ns?t:s}(s||0===s)&&e.$wrapperEl.css("height",`${s}px`)},updateSlidesOffset:function(){const t=this,e=t.slides;for(let i=0;i=0&&c1&&p<=e.size||c<=0&&p>=e.size)&&(e.visibleSlides.push(a),e.visibleSlidesIndexes.push(t),r.eq(t).addClass(i.slideVisibleClass)),a.progress=n?-A:A,a.originalProgress=n?-h:h}e.visibleSlides=a(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,r=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:s,isEnd:a}=e;const o=s,l=a;0===r?(n=0,s=!0,a=!0):(n=(t-e.minTranslate())/r,s=n<=0,a=n>=1),Object.assign(e,{progress:n,isBeginning:s,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),s&&!o&&e.emit("reachBeginning toEdge"),a&&!l&&e.emit("reachEnd toEdge"),(o&&!s||l&&!a)&&e.emit("fromEdge"),e.emit("progress",n)},updateSlidesClasses:function(){const t=this,{slides:e,params:i,$wrapperEl:r,activeIndex:n,realIndex:s}=t,a=t.virtual&&i.virtual.enabled;let o;e.removeClass(`${i.slideActiveClass} ${i.slideNextClass} ${i.slidePrevClass} ${i.slideDuplicateActiveClass} ${i.slideDuplicateNextClass} ${i.slideDuplicatePrevClass}`),o=a?t.$wrapperEl.find(`.${i.slideClass}[data-swiper-slide-index="${n}"]`):e.eq(n),o.addClass(i.slideActiveClass),i.loop&&(o.hasClass(i.slideDuplicateClass)?r.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${s}"]`).addClass(i.slideDuplicateActiveClass):r.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${s}"]`).addClass(i.slideDuplicateActiveClass));let l=o.nextAll(`.${i.slideClass}`).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=e.eq(0),l.addClass(i.slideNextClass));let A=o.prevAll(`.${i.slideClass}`).eq(0).addClass(i.slidePrevClass);i.loop&&0===A.length&&(A=e.eq(-1),A.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?r.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass):r.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass),A.hasClass(i.slideDuplicateClass)?r.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${A.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass):r.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${A.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass)),t.emitSlidesClasses()},updateActiveIndex:function(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:r,snapGrid:n,params:s,activeIndex:a,realIndex:o,snapIndex:l}=e;let A,h=t;if(void 0===h){for(let t=0;t=r[t]&&i=r[t]&&i=r[t]&&(h=t);s.normalizeSlideIndex&&(h<0||void 0===h)&&(h=0)}if(n.indexOf(i)>=0)A=n.indexOf(i);else{const t=Math.min(s.slidesPerGroupSkip,h);A=t+Math.floor((h-t)/s.slidesPerGroup)}if(A>=n.length&&(A=n.length-1),h===a)return void(A!==l&&(e.snapIndex=A,e.emit("snapIndexChange")));const c=parseInt(e.slides.eq(h).attr("data-swiper-slide-index")||h,10);Object.assign(e,{snapIndex:A,realIndex:c,previousIndex:a,activeIndex:h}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),o!==c&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")},updateClickedSlide:function(t){const e=this,i=e.params,r=a(t).closest(`.${i.slideClass}`)[0];let n,s=!1;if(r)for(let t=0;tl?l:r&&t=l.length&&(g=l.length-1),(c||o.initialSlide||0)===(h||0)&&i&&s.emit("beforeSlideChangeStart");const y=-l[g];if(s.updateProgress(y),o.normalizeSlideIndex)for(let t=0;t=i&&e=i&&e=i&&(a=t)}if(s.initialized&&a!==c){if(!s.allowSlideNext&&ys.translate&&y>s.maxTranslate()&&(c||0)!==a)return!1}let v;if(v=a>c?"next":a{s.wrapperEl.style.scrollSnapType="",s._swiperImmediateVirtual=!1})}else{if(!s.support.smoothScroll)return d({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(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,r),s.transitionStart(i,v),0===e?s.transitionEnd(i,v):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,v))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(t=0,e=this.params.speed,i=!0,r){const n=this;let s=t;return n.params.loop&&(s+=n.loopedSlides),n.slideTo(s,e,i,r)},slideNext:function(t=this.params.speed,e=!0,i){const r=this,{animating:n,enabled:s,params:a}=r;if(!s)return r;let o=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(o=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndexr(t));let d=o[p.indexOf(c)-1];if(void 0===d&&s.cssMode){let t;o.forEach((e,i)=>{c>=e&&(t=i)}),void 0!==t&&(d=o[t>0?t-1:t])}let u=0;return void 0!==d&&(u=l.indexOf(d),u<0&&(u=n.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(u=u-n.slidesPerViewDynamic("previous",!0)+1,u=Math.max(u,0))),s.rewind&&n.isBeginning?n.slideTo(n.slides.length-1,t,e,i):n.slideTo(u,t,e,i)},slideReset:function(t=this.params.speed,e=!0,i){return this.slideTo(this.activeIndex,t,e,i)},slideToClosest:function(t=this.params.speed,e=!0,i,r=.5){const n=this;let s=n.activeIndex ;const a=Math.min(n.params.slidesPerGroupSkip,s),o=a+Math.floor((s-a)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[o]){const t=n.snapGrid[o];l-t>(n.snapGrid[o+1]-t)*r&&(s+=n.params.slidesPerGroup)}else{const t=n.snapGrid[o-1];l-t<=(n.snapGrid[o]-t)*r&&(s-=n.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,n.slidesGrid.length-1),n.slideTo(s,t,e,i)},slideToClickedSlide:function(){const t=this,{params:e,$wrapperEl:i}=t,r="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let n,s=t.clickedIndex;if(e.loop){if(t.animating)return;n=parseInt(a(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?st.slides.length-t.loopedSlides+r/2?(t.loopFix(),s=i.children(`.${e.slideClass}[data-swiper-slide-index="${n}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),o(()=>{t.slideTo(s)})):t.slideTo(s):s>t.slides.length-r?(t.loopFix(),s=i.children(`.${e.slideClass}[data-swiper-slide-index="${n}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),o(()=>{t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}},loop:{loopCreate:function(){const t=this,e=i(),{params:r,$wrapperEl:n}=t,s=n.children().length>0?a(n.children()[0].parentNode):n;s.children(`.${r.slideClass}.${r.slideDuplicateClass}`).remove();let o=s.children(`.${r.slideClass}`);if(r.loopFillGroupWithBlank){const t=r.slidesPerGroup-o.length%r.slidesPerGroup;if(t!==r.slidesPerGroup){for(let i=0;io.length&&(t.loopedSlides=o.length);const l=[],A=[];o.each((e,i)=>{const r=a(e);i=o.length-t.loopedSlides&&l.push(e),r.attr("data-swiper-slide-index",i)});for(let t=0;t=0;t-=1)s.prepend(a(l[t].cloneNode(!0)).addClass(r.slideDuplicateClass))},loopFix:function(){const t=this;t.emit("beforeLoopFix");const{activeIndex:e,slides:i,loopedSlides:r,allowSlidePrev:n,allowSlideNext:s,snapGrid:a,rtlTranslate:o}=t;let l;t.allowSlidePrev=!0,t.allowSlideNext=!0;const A=-a[e]-t.getTranslate();e=i.length-r&&(l=-i.length+e+r,l+=r,t.slideTo(l,0,!1,!0)&&0!==A&&t.setTranslate((o?-t.translate:t.translate)-A)),t.allowSlidePrev=n,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")}},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?"-webkit-grabbing":"-webkit-grab",i.style.cursor=t?"-moz-grabbin":"-moz-grab",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:{attachEvents:function(){const t=this,e=i(),{params:r,support:n}=t;t.onTouchStart=y.bind(t),t.onTouchMove=v.bind(t),t.onTouchEnd=E.bind(t),r.cssMode&&(t.onScroll=_.bind(t)),t.onClick=b.bind(t),n.touch&&!V&&(e.addEventListener("touchstart",w),V=!0),j(t,"on")},detachEvents:function(){j(this,"off")}},breakpoints:{setBreakpoint:function(){const t=this,{activeIndex:e,initialized:i,loopedSlides:r=0,params:n,$el:s}=t,a=n.breakpoints;if(!a||a&&0===Object.keys(a).length)return;const o=t.getBreakpoint(a,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const l=(o in a?a[o]:void 0)||t.originalParams,A=U(t,n),h=U(t,l),p=n.enabled;A&&!h?(s.removeClass(`${n.containerModifierClass}grid ${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!A&&h&&(s.addClass(`${n.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===n.grid.fill)&&s.addClass(`${n.containerModifierClass}grid-column`),t.emitContainerClasses());const d=l.direction&&l.direction!==n.direction,u=n.loop&&(l.slidesPerView!==n.slidesPerView||d);d&&i&&t.changeDirection(),c(t.params,l);const f=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),p&&!f?t.disable():!p&&f&&t.enable(),t.currentBreakpoint=o,t.emit("_beforeBreakpoint",l),u&&i&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-r+t.loopedSlides,0,!1)),t.emit("breakpoint",l)},getBreakpoint:function(t,e="window",i){if(!t||"container"===e&&!i)return;let n=!1;const s=r(),a="window"===e?s.innerHeight:i.clientHeight,o=Object.keys(t).map(t=>{if("string"==typeof t&&0===t.indexOf("@")){const e=parseFloat(t.substr(1));return{value:a*e,point:t}}return{value:t,point:t}});o.sort((t,e)=>parseInt(t.value,10)-parseInt(e.value,10));for(let t=0;ti}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:{addClasses:function(){const t=this,{classNames:e,params:i,rtl:r,$el:n,device:s,support:a}=t,o=function(t,e){const i=[];return t.forEach(t=>{"object"==typeof t?Object.keys(t).forEach(r=>{t[r]&&i.push(e+r)}):"string"==typeof t&&i.push(e+t)}),i}(["initialized",i.direction,{"pointer-events":!a.touch},{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:r},{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}],i.containerModifierClass);e.push(...o),n.addClass([...e].join(" ")),t.emitContainerClasses()},removeClasses:function(){const{$el:t,classNames:e}=this;t.removeClass(e.join(" ")),this.emitContainerClasses()}},images:{loadImage:function(t,e,i,n,s,o){function l(){o&&o()}const A=r();let h;a(t).parent("picture")[0]||t.complete&&s?l():e?(h=new A.Image,h.onload=l,h.onerror=l,n&&(h.sizes=n),i&&(h.srcset=i),e&&(h.src=e)):l()},preloadImages:function(){function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}const e=this;e.imagesToLoad=e.$el.find("img");for(let i=0;i1){const t=[];return a(i.el).each(e=>{const r=c({},i,{el:e});t.push(new X(r))}),t}const r=this;r.__swiper__=!0,r.support=u(),r.device=f({userAgent:i.userAgent}),r.browser=m(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],i.modules&&Array.isArray(i.modules)&&r.modules.push(...i.modules);const n={};r.modules.forEach(t=>{t({swiper:r,extendParams:I(i,n),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const s=c({},Y,n);return r.params=c({},s,W,i),r.originalParams=c({},r.params),r.passedParams=c({},i),r.params&&r.params.on&&Object.keys(r.params.on).forEach(t=>{r.on(t,r.params.on[t])}),r.params&&r.params.onAny&&r.onAny(r.params.onAny),r.$=a,Object.assign(r,{enabled:r.params.enabled,el:e,classNames:[],slides:a(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEvents:function(){const t=["touchstart","touchmove","touchend","touchcancel"],e=["pointerdown","pointermove","pointerup"];return r.touchEventsTouch={start:t[0],move:t[1],end:t[2],cancel:t[3]},r.touchEventsDesktop={start:e[0],move:e[1],end:e[2]},r.support.touch||!r.params.simulateTouch?r.touchEventsTouch:r.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:r.params.focusableElements,lastClickTime:l(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}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 r=i.minTranslate(),n=(i.maxTranslate()-r)*t+r;i.translateTo(n,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 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 r=t.getSlideClasses(i);e.push({slideEl:i,classNames:r}),t.emit("_slideClass",i,r)}),t.emit("_slideClasses",e)}slidesPerViewDynamic(t="current",e=!1){const{params:i,slides:r,slidesGrid:n,slidesSizesGrid:s,size:a,activeIndex:o}=this;let l=1;if(i.centeredSlides){let t,e=r[o].swiperSlideSize;for(let i=o+1;ia&&(t=!0));for(let i=o-1;i>=0;i-=1)r[i]&&!t&&(e+=r[i].swiperSlideSize,l+=1,e>a&&(t=!0))}else if("current"===t)for(let t=o+1;t=0;t-=1)n[o]-n[t]1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),n||t()),r.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(t,e=!0){const i=this,r=i.params.direction;return t||(t="horizontal"===r?"vertical":"horizontal"),t===r||"horizontal"!==t&&"vertical"!==t||(i.$el.removeClass(`${i.params.containerModifierClass}${r}`).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 r=a(t||e.params.el);if(!(t=r[0]))return!1;t.swiper=e;const n=()=>`.${(e.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=(()=>{if(t&&t.shadowRoot&&t.shadowRoot.querySelector){const e=a(t.shadowRoot.querySelector(n()));return e.children=(t=>r.children(t)),e}return r.children(n())})();if(0===s.length&&e.params.createElements){const t=i().createElement("div");s=a(t),t.className=e.params.wrapperClass,r.append(t),r.children(`.${e.params.slideClass}`).each(t=>{s.append(t)})}return Object.assign(e,{$el:r,el:t,$wrapperEl:s,wrapperEl:s[0],mounted:!0,rtl:"rtl"===t.dir.toLowerCase()||"rtl"===r.css("direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===r.css("direction")),wrongRTL:"-webkit-box"===s.css("display")}),!0}init(t){const e=this;return e.initialized?e:(!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=!0,e=!0){const i=this,{params:r,$el:n,$wrapperEl:s,slides:a}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),r.loop&&i.loopDestroy(),e&&(i.removeClasses(),n.removeAttr("style"),s.removeAttr("style"),a&&a.length&&a.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.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)),i.destroyed=!0),null}static extendDefaults(t){c(W,t)}static get extendedDefaults(){return W}static get defaults(){return Y}static installModule(t){X.prototype.__modules__||(X.prototype.__modules__=[]);const e=X.prototype.__modules__;"function"==typeof t&&e.indexOf(t)<0&&e.push(t)}static use(t){return Array.isArray(t)?(t.forEach(t=>X.installModule(t)),X):(X.installModule(t),X)}}Object.keys(J).forEach(t=>{Object.keys(J[t]).forEach(e=>{X.prototype[e]=J[t][e]})}),X.use([function({swiper:t,on:e,emit:i}){const n=r();let s=null;const a=()=>{t&&!t.destroyed&&t.initialized&&(i("beforeResize"),i("resize"))},o=()=>{t&&!t.destroyed&&t.initialized&&i("orientationchange")};e("init",()=>{t.params.resizeObserver&&void 0!==n.ResizeObserver?t&&!t.destroyed&&t.initialized&&(s=new ResizeObserver(e=>{const{width:i,height:r}=t;let n=i,s=r;e.forEach(({contentBoxSize:e,contentRect:i,target:r})=>{r&&r!==t.el||(n=i?i.width:(e[0]||e).inlineSize,s=i?i.height:(e[0]||e).blockSize)}),n===i&&s===r||a()}),s.observe(t.el)):(n.addEventListener("resize",a),n.addEventListener("orientationchange",o))}),e("destroy",()=>{s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null),n.removeEventListener("resize",a),n.removeEventListener("orientationchange",o)})},function({swiper:t,extendParams:e,on:i,emit:n}){const s=[],a=r(),o=(t,e={})=>{const i=new(a.MutationObserver||a.WebkitMutationObserver)(t=>{if(1===t.length)return void n("observerUpdate",t[0]);const e=function(){n("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}),s.push(i)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",()=>{if(t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let t=0;t{s.forEach(t=>{t.disconnect()}),s.splice(0,s.length)})}]);const K=[function({swiper:t,extendParams:e,on:i}){function r(e,i){const r=t.params.virtual;if(r.cache&&t.virtual.cache[i])return t.virtual.cache[i];const n=r.renderSlide?a(r.renderSlide.call(t,e,i)):a(`
${e}
`);return n.attr("data-swiper-slide-index")||n.attr("data-swiper-slide-index",i),r.cache&&(t.virtual.cache[i]=n),n}function n(e){function i(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}const{slidesPerView:n,slidesPerGroup:s,centeredSlides:a}=t.params,{addSlidesBefore:o,addSlidesAfter:l}=t.params.virtual,{from:A,to:h,slides:c,slidesGrid:p,offset:d}=t.virtual;t.params.cssMode||t.updateActiveIndex();const u=t.activeIndex||0;let f,m,g;f=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",a?(m=Math.floor(n/2)+s+l,g=Math.floor(n/2)+s+o):(m=n+(s-1)+l,g=s+o);const y=Math.max((u||0)-g,0),v=Math.min((u||0)+m,c.length-1),E=(t.slidesGrid[y]||0)-(t.slidesGrid[0]||0);if(Object.assign(t.virtual,{from:y,to:v,offset:E,slidesGrid:t.slidesGrid}),A===y&&h===v&&!e)return t.slidesGrid!==p&&E!==d&&t.slides.css(f,`${E}px`),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:E,from:y,to:v,slides:function(){const t=[];for(let e=y;e<=v;e+=1)t.push(c[e]);return t}()}),void(t.params.virtual.renderExternalUpdate&&i());const C=[],b=[];if(e)t.$wrapperEl.find(`.${t.params.slideClass}`).remove();else for(let e=A;e<=h;e+=1)(ev)&&t.$wrapperEl.find(`.${t.params.slideClass}[data-swiper-slide-index="${e}"]`).remove();for(let t=0;t=y&&t<=v&&(void 0===h||e?b.push(t):(t>h&&b.push(t),t{t.$wrapperEl.append(r(c[e],e))}),C.sort((t,e)=>e-t).forEach(e=>{t.$wrapperEl.prepend(r(c[e],e))}),t.$wrapperEl.children(".swiper-slide").css(f,`${E}px`),i()}let s;e({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}}),t.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]},i("beforeInit",()=>{t.params.virtual.enabled&&(t.virtual.slides=t.params.virtual.slides,t.classNames.push(`${t.params.containerModifierClass}virtual`),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0,t.params.initialSlide||n())}),i("setTranslate",()=>{t.params.virtual.enabled&&(t.params.cssMode&&!t._immediateVirtual?(clearTimeout(s),s=setTimeout(()=>{n()},100)):n())}),i("init update resize",()=>{t.params.virtual.enabled&&t.params.cssMode&&p(t.wrapperEl,"--swiper-virtual-size",`${t.virtualSize}px`)}),Object.assign(t.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let i=0;i{const r=e[t],n=r.attr("data-swiper-slide-index");n&&r.attr("data-swiper-slide-index",parseInt(n,10)+s),i[parseInt(t,10)+s]=r}),t.virtual.cache=i}n(!0),t.slideTo(r,0)},removeSlide:function(e){if(null==e)return;let i=t.activeIndex;if(Array.isArray(e))for(let r=e.length-1;r>=0;r-=1)t.virtual.slides.splice(e[r],1),t.params.virtual.cache&&delete t.virtual.cache[e[r]],e[r]0&&0===t.$el.parents(`.${t.params.slideActiveClass}`).length)return;const r=t.$el,n=r[0].clientWidth,s=r[0].clientHeight,a=c.innerWidth,o=c.innerHeight,l=t.$el.offset();i&&(l.left-=t.$el[0].scrollLeft);const A=[[l.left,l.top],[l.left+n,l.top],[l.left,l.top+s],[l.left+n,l.top+s]];for(let t=0;t=0&&i[0]<=a&&i[1]>=0&&i[1]<=o){if(0===i[0]&&0===i[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((o||l||A||p)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),((l||p)&&!i||(o||A)&&i)&&t.slideNext(),((o||A)&&!i||(l||p)&&i)&&t.slidePrev()):((o||l||d||u)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),(l||u)&&t.slideNext(),(o||d)&&t.slidePrev()),s("keyPress",n)}}function l(){t.keyboard.enabled||(a(h).on("keydown",o),t.keyboard.enabled=!0)}function A(){t.keyboard.enabled&&(a(h).off("keydown",o),t.keyboard.enabled=!1)}const h=i(),c=r();t.keyboard={enabled:!1},e({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),n("init",()=>{t.params.keyboard.enabled&&l()}),n("destroy",()=>{t.keyboard.enabled&&A()}),Object.assign(t.keyboard,{enable:l,disable:A})},function({swiper:t,extendParams:e,on:i,emit:n}){function s(){t.enabled&&(t.mouseEntered=!0)}function A(){t.enabled&&(t.mouseEntered=!1)}function h(e){return!(t.params.mousewheel.thresholdDelta&&e.delta=6&&l()-y<60)&&(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),n("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),n("scroll",e.raw)),y=(new f.Date).getTime(),1))}function c(e){let i=e,r=!0;if(!t.enabled)return;const s=t.params.mousewheel;t.params.cssMode&&i.preventDefault();let A=t.$el;if("container"!==t.params.mousewheel.eventsTarget&&(A=a(t.params.mousewheel.eventsTarget)),!t.mouseEntered&&!A[0].contains(i.target)&&!s.releaseOnEdges)return!0;i.originalEvent&&(i=i.originalEvent);let c=0;const p=t.rtlTranslate?-1:1,d=function(t){let e=0,i=0,r=0,n=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),r=10*e,n=10*i,"deltaY"in t&&(n=t.deltaY),"deltaX"in t&&(r=t.deltaX),t.shiftKey&&!r&&(r=n,n=0),(r||n)&&t.deltaMode&&(1===t.deltaMode?(r*=40,n*=40):(r*=800,n*=800)),r&&!e&&(e=r<1?-1:1),n&&!i&&(i=n<1?-1:1),{spinX:e,spinY:i,pixelX:r,pixelY:n}}(i);if(s.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(d.pixelX)>Math.abs(d.pixelY)))return!0;c=-d.pixelX*p}else{if(!(Math.abs(d.pixelY)>Math.abs(d.pixelX)))return!0;c=-d.pixelY}else c=Math.abs(d.pixelX)>Math.abs(d.pixelY)?-d.pixelX*p:-d.pixelY;if(0===c)return!0;s.invert&&(c=-c);let u=t.getTranslate()+c*s.sensitivity;if(u>=t.minTranslate()&&(u=t.minTranslate()),u<=t.maxTranslate()&&(u=t.maxTranslate()),r=!!t.params.loop||!(u===t.minTranslate()||u===t.maxTranslate()),r&&t.params.nested&&i.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:l(),delta:Math.abs(c),direction:Math.sign(c)},r=g&&e.time=t.minTranslate()&&(a=t.minTranslate()),a<=t.maxTranslate()&&(a=t.maxTranslate()),t.setTransition(0),t.setTranslate(a),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!l&&t.isBeginning||!A&&t.isEnd)&&t.updateSlidesClasses(),t.params.freeMode.sticky){clearTimeout(m),m=void 0,v.length>=15&&v.shift();const i=v.length?v[v.length-1]:void 0,r=v[0];if(v.push(e),i&&(e.delta>i.delta||e.direction!==i.direction))v.splice(0);else if(v.length>=15&&e.time-r.time<500&&r.delta-e.delta>=1&&e.delta<=6){const i=c>0?.8:.2;g=e,v.splice(0),m=o(()=>{t.slideToClosest(t.params.speed,!0,void 0,i)},0)}m||(m=o(()=>{g=e,v.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)},500))}if(r||n("scroll",i),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),a===t.minTranslate()||a===t.maxTranslate())return!0}}else{const i={time:l(),delta:Math.abs(c),direction:Math.sign(c),raw:e};v.length>=2&&v.shift();const r=v.length?v[v.length-1]:void 0;if(v.push(i),r?(i.direction!==r.direction||i.delta>r.delta||i.time>r.time+150)&&h(i):h(i),function(e){const i=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&i.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&i.releaseOnEdges)return!0;return!1}(i))return!0}return i.preventDefault?i.preventDefault():i.returnValue=!1,!1}function p(e){let i=t.$el;"container"!==t.params.mousewheel.eventsTarget&&(i=a(t.params.mousewheel.eventsTarget)),i[e]("mouseenter",s),i[e]("mouseleave",A),i[e]("wheel",c)}function d(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",c),!0):!t.mousewheel.enabled&&(p("on"),t.mousewheel.enabled=!0,!0)}function u(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,c),!0):!!t.mousewheel.enabled&&(p("off"),t.mousewheel.enabled=!1,!0)}const f=r();let m;e({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),t.mousewheel={enabled:!1};let g,y=l();const v=[];i("init",()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&u(),t.params.mousewheel.enabled&&d()}),i("destroy",()=>{t.params.cssMode&&d(),t.mousewheel.enabled&&u()}),Object.assign(t.mousewheel,{enable:d,disable:u})},function({swiper:t,extendParams:e,on:i,emit:r}){function n(e){let i;return e&&(i=a(e),t.params.uniqueNavElements&&"string"==typeof e&&i.length>1&&1===t.$el.find(e).length&&(i=t.$el.find(e))),i}function s(e,i){const r=t.params.navigation;e&&e.length>0&&(e[i?"addClass":"removeClass"](r.disabledClass),e[0]&&"BUTTON"===e[0].tagName&&(e[0].disabled=i),t.params.watchOverflow&&t.enabled&&e[t.isLocked?"addClass":"removeClass"](r.lockClass))}function o(){if(t.params.loop)return;const{$nextEl:e,$prevEl:i}=t.navigation;s(i,t.isBeginning&&!t.params.rewind),s(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&t.slidePrev()}function A(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&t.slideNext()}function h(){const e=t.params.navigation;if(t.params.navigation=x(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;const i=n(e.nextEl),r=n(e.prevEl);i&&i.length>0&&i.on("click",A),r&&r.length>0&&r.on("click",l),Object.assign(t.navigation,{$nextEl:i,nextEl:i&&i[0],$prevEl:r,prevEl:r&&r[0]}),t.enabled||(i&&i.addClass(e.lockClass),r&&r.addClass(e.lockClass))}function c(){const{$nextEl:e,$prevEl:i}=t.navigation;e&&e.length&&(e.off("click",A),e.removeClass(t.params.navigation.disabledClass)),i&&i.length&&(i.off("click",l),i.removeClass(t.params.navigation.disabledClass))}e({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}}),t.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},i("init",()=>{h(),o()}),i("toEdge fromEdge lock unlock",()=>{o()}),i("destroy",()=>{c()}),i("enable disable",()=>{const{$nextEl:e,$prevEl:i}=t.navigation;e&&e[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),i&&i[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)}),i("click",(e,i)=>{const{$nextEl:n,$prevEl:s}=t.navigation,o=i.target;if(t.params.navigation.hideOnClick&&!a(o).is(s)&&!a(o).is(n)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===o||t.pagination.el.contains(o)))return;let e;n?e=n.hasClass(t.params.navigation.hiddenClass):s&&(e=s.hasClass(t.params.navigation.hiddenClass)),r(!0===e?"navigationShow":"navigationHide"),n&&n.toggleClass(t.params.navigation.hiddenClass),s&&s.toggleClass(t.params.navigation.hiddenClass)}}),Object.assign(t.navigation,{update:o,init:h,destroy:c})},function({swiper:t,extendParams:e,on:i,emit:r}){function n(){return!t.params.pagination.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length}function s(e,i){const{bulletActiveClass:r}=t.params.pagination;e[i]().addClass(`${r}-${i}`)[i]().addClass(`${r}-${i}-${i}`)}function o(){const e=t.rtl,i=t.params.pagination;if(n())return;const o=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,l=t.pagination.$el;let A;const h=t.params.loop?Math.ceil((o-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(A=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),A>o-1-2*t.loopedSlides&&(A-=o-2*t.loopedSlides),A>h-1&&(A-=h),A<0&&"bullets"!==t.params.paginationType&&(A=h+A)):A=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===i.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const r=t.pagination.bullets;let n,o,h;if(i.dynamicBullets&&(p=r.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),l.css(t.isHorizontal()?"width":"height",p*(i.dynamicMainBullets+4)+"px"),i.dynamicMainBullets>1&&void 0!==t.previousIndex&&(d+=A-(t.previousIndex-t.loopedSlides||0),d>i.dynamicMainBullets-1?d=i.dynamicMainBullets-1:d<0&&(d=0)),n=Math.max(A-d,0),o=n+(Math.min(r.length,i.dynamicMainBullets)-1),h=(o+n)/2),r.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map(t=>`${i.bulletActiveClass}${t}`).join(" ")),l.length>1)r.each(t=>{const e=a(t),r=e.index();r===A&&e.addClass(i.bulletActiveClass),i.dynamicBullets&&(r>=n&&r<=o&&e.addClass(`${i.bulletActiveClass}-main`),r===n&&s(e,"prev"),r===o&&s(e,"next"))});else{const e=r.eq(A),a=e.index();if(e.addClass(i.bulletActiveClass),i.dynamicBullets){const e=r.eq(n),l=r.eq(o);for(let t=n;t<=o;t+=1)r.eq(t).addClass(`${i.bulletActiveClass}-main`);if(t.params.loop)if(a>=r.length){for(let t=i.dynamicMainBullets;t>=0;t-=1)r.eq(r.length-t).addClass(`${i.bulletActiveClass}-main`);r.eq(r.length-i.dynamicMainBullets-1).addClass(`${i.bulletActiveClass}-prev`)}else s(e,"prev"),s(l,"next");else s(e,"prev"),s(l,"next")}}if(i.dynamicBullets){const n=Math.min(r.length,i.dynamicMainBullets+4),s=(p*n-p)/2-h*p,a=e?"right":"left";r.css(t.isHorizontal()?a:"top",`${s}px`)}}if("fraction"===i.type&&(l.find(S(i.currentClass)).text(i.formatFractionCurrent(A+1)),l.find(S(i.totalClass)).text(i.formatFractionTotal(h))),"progressbar"===i.type){let e;e=i.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const r=(A+1)/h;let n=1,s=1;"horizontal"===e?n=r:s=r,l.find(S(i.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${n}) scaleY(${s})`).transition(t.params.speed)}"custom"===i.type&&i.renderCustom?(l.html(i.renderCustom(t,A+1,h)),r("paginationRender",l[0])):r("paginationUpdate",l[0]),t.params.watchOverflow&&t.enabled&&l[t.isLocked?"addClass":"removeClass"](i.lockClass)}function l(){const e=t.params.pagination;if(n())return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,s=t.pagination.$el;let a="";if("bullets"===e.type){let r=t.params.loop?Math.ceil((i-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&!t.params.loop&&r>i&&(r=i) ;for(let i=0;i`;s.html(a),t.pagination.bullets=s.find(S(e.bulletClass))}"fraction"===e.type&&(a=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):` / `,s.html(a)),"progressbar"===e.type&&(a=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):``,s.html(a)),"custom"!==e.type&&r("paginationRender",t.pagination.$el[0])}function A(){t.params.pagination=x(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let i=a(e.el);0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&i.length>1&&(i=t.$el.find(e.el),i.length>1&&(i=i.filter(e=>a(e).parents(".swiper")[0]===t.el))),"bullets"===e.type&&e.clickable&&i.addClass(e.clickableClass),i.addClass(e.modifierClass+e.type),i.addClass(e.modifierClass+t.params.direction),"bullets"===e.type&&e.dynamicBullets&&(i.addClass(`${e.modifierClass}${e.type}-dynamic`),d=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.addClass(e.progressbarOppositeClass),e.clickable&&i.on("click",S(e.bulletClass),function(e){e.preventDefault();let i=a(this).index()*t.params.slidesPerGroup;t.params.loop&&(i+=t.loopedSlides),t.slideTo(i)}),Object.assign(t.pagination,{$el:i,el:i[0]}),t.enabled||i.addClass(e.lockClass))}function h(){const e=t.params.pagination;if(n())return;const i=t.pagination.$el;i.removeClass(e.hiddenClass),i.removeClass(e.modifierClass+e.type),i.removeClass(e.modifierClass+t.params.direction),t.pagination.bullets&&t.pagination.bullets.removeClass&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&i.off("click",S(e.bulletClass))}const c="swiper-pagination";let p;e({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:`${c}-bullet`,bulletActiveClass:`${c}-bullet-active`,modifierClass:`${c}-`,currentClass:`${c}-current`,totalClass:`${c}-total`,hiddenClass:`${c}-hidden`,progressbarFillClass:`${c}-progressbar-fill`,progressbarOppositeClass:`${c}-progressbar-opposite`,clickableClass:`${c}-clickable`,lockClass:`${c}-lock`,horizontalClass:`${c}-horizontal`,verticalClass:`${c}-vertical`}}),t.pagination={el:null,$el:null,bullets:[]};let d=0;i("init",()=>{A(),l(),o()}),i("activeIndexChange",()=>{(t.params.loop||void 0===t.snapIndex)&&o()}),i("snapIndexChange",()=>{t.params.loop||o()}),i("slidesLengthChange",()=>{t.params.loop&&(l(),o())}),i("snapGridLengthChange",()=>{t.params.loop||(l(),o())}),i("destroy",()=>{h()}),i("enable disable",()=>{const{$el:e}=t.pagination;e&&e[t.enabled?"removeClass":"addClass"](t.params.pagination.lockClass)}),i("lock unlock",()=>{o()}),i("click",(e,i)=>{const n=i.target,{$el:s}=t.pagination;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&s.length>0&&!a(n).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&n===t.navigation.nextEl||t.navigation.prevEl&&n===t.navigation.prevEl))return;const e=s.hasClass(t.params.pagination.hiddenClass);r(!0===e?"paginationShow":"paginationHide"),s.toggleClass(t.params.pagination.hiddenClass)}}),Object.assign(t.pagination,{render:l,update:o,init:A,destroy:h})},function({swiper:t,extendParams:e,on:r,emit:n}){function s(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:i,progress:r}=t,{$dragEl:n,$el:s}=e,a=t.params.scrollbar;let o=v,l=(E-v)*r;i?(l=-l,l>0?(o=v-l,l=0):-l+v>E&&(o=E+l)):l<0?(o=v+l,l=0):l+v>E&&(o=E-l),t.isHorizontal()?(n.transform(`translate3d(${l}px, 0, 0)`),n[0].style.width=`${o}px`):(n.transform(`translate3d(0px, ${l}px, 0)`),n[0].style.height=`${o}px`),a.hide&&(clearTimeout(_),s[0].style.opacity=1,_=setTimeout(()=>{s[0].style.opacity=0,s.transition(400)},1e3))}function l(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{$dragEl:i,$el:r}=e;i[0].style.width="",i[0].style.height="",E=t.isHorizontal()?r[0].offsetWidth:r[0].offsetHeight,C=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),v="auto"===t.params.scrollbar.dragSize?E*C:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?i[0].style.width=`${v}px`:i[0].style.height=`${v}px`,r[0].style.display=C>=1?"none":"",t.params.scrollbar.hide&&(r[0].style.opacity=0),t.params.watchOverflow&&t.enabled&&e.$el[t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)}function A(e){return t.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY}function h(e){const{scrollbar:i,rtlTranslate:r}=t,{$el:n}=i;let s;s=(A(e)-n.offset()[t.isHorizontal()?"left":"top"]-(null!==y?y:v/2))/(E-v),s=Math.max(Math.min(s,1),0),r&&(s=1-s);const a=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*s;t.updateProgress(a),t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}function c(e){const i=t.params.scrollbar,{scrollbar:r,$wrapperEl:s}=t,{$el:a,$dragEl:o}=r;b=!0,y=e.target===o[0]||e.target===o?A(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),s.transition(100),o.transition(100),h(e),clearTimeout(w),a.transition(0),i.hide&&a.css("opacity",1),t.params.cssMode&&t.$wrapperEl.css("scroll-snap-type","none"),n("scrollbarDragStart",e)}function p(e){const{scrollbar:i,$wrapperEl:r}=t,{$el:s,$dragEl:a}=i;b&&(e.preventDefault?e.preventDefault():e.returnValue=!1,h(e),r.transition(0),s.transition(0),a.transition(0),n("scrollbarDragMove",e))}function d(e){const i=t.params.scrollbar,{scrollbar:r,$wrapperEl:s}=t,{$el:a}=r;b&&(b=!1,t.params.cssMode&&(t.$wrapperEl.css("scroll-snap-type",""),s.transition("")),i.hide&&(clearTimeout(w),w=o(()=>{a.css("opacity",0),a.transition(400)},1e3)),n("scrollbarDragEnd",e),i.snapOnRelease&&t.slideToClosest())}function u(e){const{scrollbar:i,touchEventsTouch:r,touchEventsDesktop:n,params:s,support:a}=t,o=i.$el[0],l=!(!a.passiveListener||!s.passiveListeners)&&{passive:!1,capture:!1},A=!(!a.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};if(!o)return;const h="on"===e?"addEventListener":"removeEventListener";a.touch?(o[h](r.start,c,l),o[h](r.move,p,l),o[h](r.end,d,A)):(o[h](n.start,c,l),g[h](n.move,p,l),g[h](n.end,d,A))}function f(){const{scrollbar:e,$el:i}=t;t.params.scrollbar=x(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const r=t.params.scrollbar;if(!r.el)return;let n=a(r.el);t.params.uniqueNavElements&&"string"==typeof r.el&&n.length>1&&1===i.find(r.el).length&&(n=i.find(r.el));let s=n.find(`.${t.params.scrollbar.dragClass}`);0===s.length&&(s=a(`
`),n.append(s)),Object.assign(e,{$el:n,el:n[0],$dragEl:s,dragEl:s[0]}),r.draggable&&t.params.scrollbar.el&&u("on"),n&&n[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)}function m(){t.params.scrollbar.el&&u("off")}const g=i();let y,v,E,C,b=!1,_=null,w=null;e({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}}),t.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null},r("init",()=>{f(),l(),s()}),r("update resize observerUpdate lock unlock",()=>{l()}),r("setTranslate",()=>{s()}),r("setTransition",(e,i)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)}(i)}),r("enable disable",()=>{const{$el:e}=t.scrollbar;e&&e[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)}),r("destroy",()=>{m()}),Object.assign(t.scrollbar,{updateSize:l,setTranslate:s,init:f,destroy:m})},function({swiper:t,extendParams:e,on:i}){e({parallax:{enabled:!1}});const r=(e,i)=>{const{rtl:r}=t,n=a(e),s=r?-1:1,o=n.attr("data-swiper-parallax")||"0";let l=n.attr("data-swiper-parallax-x"),A=n.attr("data-swiper-parallax-y");const h=n.attr("data-swiper-parallax-scale"),c=n.attr("data-swiper-parallax-opacity");if(l||A?(l=l||"0",A=A||"0"):t.isHorizontal()?(l=o,A="0"):(A=o,l="0"),l=l.indexOf("%")>=0?parseInt(l,10)*i*s+"%":l*i*s+"px",A=A.indexOf("%")>=0?parseInt(A,10)*i+"%":A*i+"px",null!=c){const t=c-(c-1)*(1-Math.abs(i));n[0].style.opacity=t}if(null==h)n.transform(`translate3d(${l}, ${A}, 0px)`);else{const t=h-(h-1)*(1-Math.abs(i));n.transform(`translate3d(${l}, ${A}, 0px) scale(${t})`)}},n=()=>{const{$el:e,slides:i,progress:n,snapGrid:s}=t;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(t=>{r(t,n)}),i.each((e,i)=>{let o=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(o+=Math.ceil(i/2)-n*(s.length-1)),o=Math.min(Math.max(o,-1),1),a(e).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)})})};i("beforeInit",()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)}),i("init",()=>{t.params.parallax.enabled&&n()}),i("setTranslate",()=>{t.params.parallax.enabled&&n()}),i("setTransition",(e,i)=>{t.params.parallax.enabled&&((e=t.params.speed)=>{const{$el:i}=t;i.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(t=>{const i=a(t);let r=parseInt(i.attr("data-swiper-parallax-duration"),10)||e;0===e&&(r=0),i.transition(r)})})(i)})},function({swiper:t,extendParams:e,on:i,emit:n}){function s(t){if(t.targetTouches.length<2)return 1;const e=t.targetTouches[0].pageX,i=t.targetTouches[0].pageY,r=t.targetTouches[1].pageX,n=t.targetTouches[1].pageY;return Math.sqrt((r-e)**2+(n-i)**2)}function o(e){const i=t.support,r=t.params.zoom;if(I=!1,x=!1,!i.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;I=!0,T.scaleStart=s(e)}T.$slideEl&&T.$slideEl.length||(T.$slideEl=a(e.target).closest(`.${t.params.slideClass}`),0===T.$slideEl.length&&(T.$slideEl=t.slides.eq(t.activeIndex)),T.$imageEl=T.$slideEl.find(`.${r.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),T.$imageWrapEl=T.$imageEl.parent(`.${r.containerClass}`),T.maxRatio=T.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,0!==T.$imageWrapEl.length)?(T.$imageEl&&T.$imageEl.transition(0),B=!0):T.$imageEl=void 0}function l(e){const i=t.support,r=t.params.zoom,n=t.zoom;if(!i.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;x=!0,T.scaleMove=s(e)}T.$imageEl&&0!==T.$imageEl.length?(i.gestures?n.scale=e.scale*S:n.scale=T.scaleMove/T.scaleStart*S,n.scale>T.maxRatio&&(n.scale=T.maxRatio-1+(n.scale-T.maxRatio+1)**.5),n.scaleP.touchesStart.x))return void(P.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(P.minY)===Math.floor(P.startY)&&P.touchesCurrent.yP.touchesStart.y))return void(P.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),P.isMoved=!0,P.currentX=P.touchesCurrent.x-P.touchesStart.x+P.startX,P.currentY=P.touchesCurrent.y-P.touchesStart.y+P.startY,P.currentXP.maxX&&(P.currentX=P.maxX-1+(P.currentX-P.maxX+1)**.8),P.currentYP.maxY&&(P.currentY=P.maxY-1+(P.currentY-P.maxY+1)**.8),k.prevPositionX||(k.prevPositionX=P.touchesCurrent.x),k.prevPositionY||(k.prevPositionY=P.touchesCurrent.y),k.prevTime||(k.prevTime=Date.now()),k.x=(P.touchesCurrent.x-k.prevPositionX)/(Date.now()-k.prevTime)/2,k.y=(P.touchesCurrent.y-k.prevPositionY)/(Date.now()-k.prevTime)/2,Math.abs(P.touchesCurrent.x-k.prevPositionX)<2&&(k.x=0),Math.abs(P.touchesCurrent.y-k.prevPositionY)<2&&(k.y=0),k.prevPositionX=P.touchesCurrent.x,k.prevPositionY=P.touchesCurrent.y,k.prevTime=Date.now(),T.$imageWrapEl.transform(`translate3d(${P.currentX}px, ${P.currentY}px,0)`)}}function p(){const e=t.zoom;T.$slideEl&&t.previousIndex!==t.activeIndex&&(T.$imageEl&&T.$imageEl.transform("translate3d(0,0,0) scale(1)"),T.$imageWrapEl&&T.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,S=1,T.$slideEl=void 0,T.$imageEl=void 0,T.$imageWrapEl=void 0)}function d(e){const i=t.zoom,r=t.params.zoom;if(T.$slideEl||(e&&e.target&&(T.$slideEl=a(e.target).closest(`.${t.params.slideClass}`)),T.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?T.$slideEl=t.$wrapperEl.children(`.${t.params.slideActiveClass}`):T.$slideEl=t.slides.eq(t.activeIndex)),T.$imageEl=T.$slideEl.find(`.${r.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),T.$imageWrapEl=T.$imageEl.parent(`.${r.containerClass}`)),!T.$imageEl||0===T.$imageEl.length||!T.$imageWrapEl||0===T.$imageWrapEl.length)return;let n,s,o,l,A,h,c,p,d,u,f,m,g,y,v,E,C,b;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="proxy.php?url=https%3A%2F%2Fdroidup.com%2Fnone"),T.$slideEl.addClass(`${r.zoomedSlideClass}`),void 0===P.touchesStart.x&&e?(n="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,s="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(n=P.touchesStart.x,s=P.touchesStart.y),i.scale=T.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,S=T.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,e?(C=T.$slideEl[0].offsetWidth,b=T.$slideEl[0].offsetHeight,o=T.$slideEl.offset().left+_.scrollX,l=T.$slideEl.offset().top+_.scrollY,A=o+C/2-n,h=l+b/2-s,d=T.$imageEl[0].offsetWidth,u=T.$imageEl[0].offsetHeight,f=d*i.scale,m=u*i.scale,g=Math.min(C/2-f/2,0),y=Math.min(b/2-m/2,0),v=-g,E=-y,c=A*i.scale,p=h*i.scale,cv&&(c=v),pE&&(p=E)):(c=0,p=0),T.$imageWrapEl.transition(300).transform(`translate3d(${c}px, ${p}px,0)`),T.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${i.scale})`)}function u(){const e=t.zoom,i=t.params.zoom;T.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?T.$slideEl=t.$wrapperEl.children(`.${t.params.slideActiveClass}`):T.$slideEl=t.slides.eq(t.activeIndex),T.$imageEl=T.$slideEl.find(`.${i.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),T.$imageWrapEl=T.$imageEl.parent(`.${i.containerClass}`)),T.$imageEl&&0!==T.$imageEl.length&&T.$imageWrapEl&&0!==T.$imageWrapEl.length&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,S=1,T.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),T.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),T.$slideEl.removeClass(`${i.zoomedSlideClass}`),T.$slideEl=void 0)}function f(e){const i=t.zoom;i.scale&&1!==i.scale?u():d(e)}function m(){const e=t.support;return{passiveListener:!("touchstart"!==t.touchEvents.start||!e.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},activeListenerWithCapture:!e.passiveListener||{passive:!1,capture:!0}}}function g(){return`.${t.params.slideClass}`}function y(e){const{passiveListener:i}=m(),r=g();t.$wrapperEl[e]("gesturestart",r,o,i),t.$wrapperEl[e]("gesturechange",r,l,i),t.$wrapperEl[e]("gestureend",r,h,i)}function v(){w||(w=!0,y("on"))}function E(){w&&(w=!1,y("off"))}function C(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const i=t.support,{passiveListener:r,activeListenerWithCapture:n}=m(),s=g();i.gestures?(t.$wrapperEl.on(t.touchEvents.start,v,r),t.$wrapperEl.on(t.touchEvents.end,E,r)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,s,o,r),t.$wrapperEl.on(t.touchEvents.move,s,l,n),t.$wrapperEl.on(t.touchEvents.end,s,h,r),t.touchEvents.cancel&&t.$wrapperEl.on(t.touchEvents.cancel,s,h,r)),t.$wrapperEl.on(t.touchEvents.move,`.${t.params.zoom.containerClass}`,c,n)}function b(){const e=t.zoom;if(!e.enabled)return;const i=t.support;e.enabled=!1;const{passiveListener:r,activeListenerWithCapture:n}=m(),s=g();i.gestures?(t.$wrapperEl.off(t.touchEvents.start,v,r),t.$wrapperEl.off(t.touchEvents.end,E,r)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,s,o,r),t.$wrapperEl.off(t.touchEvents.move,s,l,n),t.$wrapperEl.off(t.touchEvents.end,s,h,r),t.touchEvents.cancel&&t.$wrapperEl.off(t.touchEvents.cancel,s,h,r)),t.$wrapperEl.off(t.touchEvents.move,`.${t.params.zoom.containerClass}`,c,n)}const _=r();e({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let w,I,x,S=1,B=!1;const T={$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},P={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:{}},k={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let M=1;Object.defineProperty(t.zoom,"scale",{get:()=>M,set(t){if(M!==t){const e=T.$imageEl?T.$imageEl[0]:void 0,i=T.$slideEl?T.$slideEl[0]:void 0;n("zoomChange",t,e,i)}M=t}}),i("init",()=>{t.params.zoom.enabled&&C()}),i("destroy",()=>{b()}),i("touchStart",(e,i)=>{t.zoom.enabled&&function(e){const i=t.device;T.$imageEl&&0!==T.$imageEl.length&&(P.isTouched||(i.android&&e.cancelable&&e.preventDefault(),P.isTouched=!0,P.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,P.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))}(i)}),i("touchEnd",(e,i)=>{t.zoom.enabled&&function(){const e=t.zoom;if(!T.$imageEl||0===T.$imageEl.length)return;if(!P.isTouched||!P.isMoved)return P.isTouched=!1,void(P.isMoved=!1);P.isTouched=!1,P.isMoved=!1;let i=300,r=300;const n=k.x*i,s=P.currentX+n,a=k.y*r,o=P.currentY+a;0!==k.x&&(i=Math.abs((s-P.currentX)/k.x)),0!==k.y&&(r=Math.abs((o-P.currentY)/k.y));const l=Math.max(i,r);P.currentX=s,P.currentY=o;const A=P.width*e.scale,h=P.height*e.scale;P.minX=Math.min(T.slideWidth/2-A/2,0),P.maxX=-P.minX,P.minY=Math.min(T.slideHeight/2-h/2,0),P.maxY=-P.minY,P.currentX=Math.max(Math.min(P.currentX,P.maxX),P.minX),P.currentY=Math.max(Math.min(P.currentY,P.maxY),P.minY),T.$imageWrapEl.transition(l).transform(`translate3d(${P.currentX}px, ${P.currentY}px,0)`)}()}),i("doubleTap",(e,i)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&f(i)}),i("transitionEnd",()=>{t.zoom.enabled&&t.params.zoom.enabled&&p()}),i("slideChange",()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&p()}),Object.assign(t.zoom,{enable:C,disable:b,in:d,out:u,toggle:f})},function({swiper:t,extendParams:e,on:i,emit:n}){function s(e,i=!0){const r=t.params.lazy;if(void 0===e)return;if(0===t.slides.length)return;const o=t.virtual&&t.params.virtual.enabled?t.$wrapperEl.children(`.${t.params.slideClass}[data-swiper-slide-index="${e}"]`):t.slides.eq(e),l=o.find(`.${r.elementClass}:not(.${r.loadedClass}):not(.${r.loadingClass})`);!o.hasClass(r.elementClass)||o.hasClass(r.loadedClass)||o.hasClass(r.loadingClass)||l.push(o[0]),0!==l.length&&l.each(e=>{const l=a(e);l.addClass(r.loadingClass);const A=l.attr("data-background"),h=l.attr("data-src"),c=l.attr("data-srcset"),p=l.attr("data-sizes"),d=l.parent("picture");t.loadImage(l[0],h||A,c,p,!1,()=>{if(null!=t&&t&&(!t||t.params)&&!t.destroyed){if(A?(l.css("background-image",`url("${A}")`),l.removeAttr("data-background")):(c&&(l.attr("srcset",c),l.removeAttr("data-srcset")),p&&(l.attr("sizes",p),l.removeAttr("data-sizes")),d.length&&d.children("source").each(t=>{const e=a(t);e.attr("data-srcset")&&(e.attr("srcset",e.attr("data-srcset")),e.removeAttr("data-srcset"))}),h&&(l.attr("src",h),l.removeAttr("data-src"))),l.addClass(r.loadedClass).removeClass(r.loadingClass),o.find(`.${r.preloaderClass}`).remove(),t.params.loop&&i){const e=o.attr("data-swiper-slide-index");o.hasClass(t.params.slideDuplicateClass)?s(t.$wrapperEl.children(`[data-swiper-slide-index="${e}"]:not(.${t.params.slideDuplicateClass})`).index(),!1):s(t.$wrapperEl.children(`.${t.params.slideDuplicateClass}[data-swiper-slide-index="${e}"]`).index(),!1)}n("lazyImageReady",o[0],l[0]),t.params.autoHeight&&t.updateAutoHeight()}}),n("lazyImageLoad",o[0],l[0])})}function o(){function e(t){if(A){if(r.children(`.${n.slideClass}[data-swiper-slide-index="${t}"]`).length)return!0}else if(o[t])return!0;return!1}function i(t){return A?a(t).attr("data-swiper-slide-index"):a(t).index()}const{$wrapperEl:r,params:n,slides:o,activeIndex:l}=t,A=t.virtual&&n.virtual.enabled,c=n.lazy;let p=n.slidesPerView;if("auto"===p&&(p=0),h||(h=!0),t.params.watchSlidesProgress)r.children(`.${n.slideVisibleClass}`).each(t=>{s(A?a(t).attr("data-swiper-slide-index"):a(t).index())});else if(p>1)for(let t=l;t1||c.loadPrevNextAmount&&c.loadPrevNextAmount>1){const t=c.loadPrevNextAmount,i=p,r=Math.min(l+i+Math.max(t,i),o.length),n=Math.max(l-Math.max(i,t),0);for(let t=l+p;t0&&s(i(t));const e=r.children(`.${n.slidePrevClass}`);e.length>0&&s(i(e))}}function l(){const e=r();if(!t||t.destroyed)return;const i=t.params.lazy.scrollingElement?a(t.params.lazy.scrollingElement):a(e),n=i[0]===e,s=n?e.innerWidth:i[0].offsetWidth,h=n?e.innerHeight:i[0].offsetHeight,c=t.$el.offset(),{rtlTranslate:p}=t;let d=!1;p&&(c.left-=t.$el[0].scrollLeft);const u=[[c.left,c.top],[c.left+t.width,c.top],[c.left,c.top+t.height],[c.left+t.width,c.top+t.height]];for(let t=0;t=0&&e[0]<=s&&e[1]>=0&&e[1]<=h){if(0===e[0]&&0===e[1])continue;d=!0}}const f=!("touchstart"!==t.touchEvents.start||!t.support.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1};d?(o(),i.off("scroll",l,f)):A||(A=!0,i.on("scroll",l,f))}e({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"}}),t.lazy={};let A=!1,h=!1;i("beforeInit",()=>{t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)}),i("init",()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?l():o())}),i("scroll",()=>{t.params.freeMode&&t.params.freeMode.enabled&&!t.params.freeMode.sticky&&o()}),i("scrollbarDragMove resize _freeModeNoMomentumRelease",()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?l():o())}),i("transitionStart",()=>{t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!h)&&(t.params.lazy.checkInView?l():o())}),i("transitionEnd",()=>{t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&(t.params.lazy.checkInView?l():o())}),i("slideChange",()=>{const{lazy:e,cssMode:i,watchSlidesProgress:r,touchReleaseOnEdges:n,resistanceRatio:s}=t.params;e.enabled&&(i||r&&(n||0===s))&&o()}),Object.assign(t.lazy,{load:o,loadInSlide:s})},function({swiper:t,extendParams:e,on:i}){function r(t,e){const i=function(){let t,e,i;return(r,n)=>{for(e=-1,t=r.length;t-e>1;)i=t+e>>1,r[i]<=n?e=i:t=i;return t}}();let r,n;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(n=i(this.x,t),r=n-1,(t-this.x[r])*(this.y[n]-this.y[r])/(this.x[n]-this.x[r])+this.y[r]):0},this}function n(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}e({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},i("beforeInit",()=>{t.controller.control=t.params.controller.control}),i("update",()=>{n()}),i("resize",()=>{n()}),i("observerUpdate",()=>{n()}),i("setTranslate",(e,i,r)=>{t.controller.control&&t.controller.setTranslate(i,r)}),i("setTransition",(e,i,r)=>{t.controller.control&&t.controller.setTransition(i,r)}),Object.assign(t.controller,{setTranslate:function(e,i){function n(e){const i=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(function(e){t.controller.spline||(t.controller.spline=t.params.loop?new r(t.slidesGrid,e.slidesGrid):new r(t.snapGrid,e.snapGrid))}(e),o=-t.controller.spline.interpolate(-i)),o&&"container"!==t.params.controller.by||(a=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),o=(i-t.minTranslate())*a+e.minTranslate()),t.params.controller.inverse&&(o=e.maxTranslate()-o),e.updateProgress(o),e.setTranslate(o,t),e.updateActiveIndex(),e.updateSlidesClasses()}const s=t.controller.control;let a,o;const l=t.constructor;if(Array.isArray(s))for(let t=0;t{i.updateAutoHeight()}),i.$wrapperEl.transitionEnd(()=>{s&&(i.params.loop&&"slide"===t.params.controller.by&&i.loopFix(),i.transitionEnd())}))}const n=t.constructor,s=t.controller.control;let a;if(Array.isArray(s))for(a=0;a0&&(t.isBeginning?(h(i),s(i)):(c(i),n(i))),e&&e.length>0&&(t.isEnd?(h(e),s(e)):(c(e),n(e)))}function u(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function f(){return u()&&t.params.pagination.clickable}function m(){const e=t.params.a11y;t.$el.append(g);const i=t.$el;e.containerRoleDescriptionMessage&&l(i,e.containerRoleDescriptionMessage),e.containerMessage&&A(i,e.containerMessage);const r=t.$wrapperEl,n=r.attr("id")||`swiper-wrapper-${function(t=16){return"x".repeat(t).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16)}`,s=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var h;h=n,r.attr("id",h),function(t,e){t.attr("aria-live",e)}(r,s),e.itemRoleDescriptionMessage&&l(a(t.slides),e.itemRoleDescriptionMessage),o(a(t.slides),e.slideRole);const c=t.params.loop?t.slides.filter(e=>!e.classList.contains(t.params.slideDuplicateClass)).length:t.slides.length;let d,u;t.slides.each((i,r)=>{const n=a(i),s=t.params.loop?parseInt(n.attr("data-swiper-slide-index"),10):r;A(n,e.slideLabelMessage.replace(/\{\{index\}\}/,s+1).replace(/\{\{slidesLength\}\}/,c))}),t.navigation&&t.navigation.$nextEl&&(d=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(u=t.navigation.$prevEl),d&&d.length&&y(d,n,e.nextSlideMessage),u&&u.length&&y(u,n,e.prevSlideMessage),f()&&t.pagination.$el.on("keydown",S(t.params.pagination.bulletClass),p)}e({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"}});let g=null;const y=(t,e,i)=>{n(t),"BUTTON"!==t[0].tagName&&(o(t,"button"),t.on("keydown",p)),A(t,i),function(t,e){t.attr("aria-controls",e)}(t,e)};i("beforeInit",()=>{g=a(``)}),i("afterInit",()=>{t.params.a11y.enabled&&(m(),d())}),i("toEdge",()=>{t.params.a11y.enabled&&d()}),i("fromEdge",()=>{t.params.a11y.enabled&&d()}),i("paginationUpdate",()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;u()&&t.pagination.bullets.each(i=>{const r=a(i);t.params.pagination.clickable&&(n(r),t.params.pagination.renderBullet||(o(r,"button"),A(r,e.paginationBulletMessage.replace(/\{\{index\}\}/,r.index()+1)))),r.is(`.${t.params.pagination.bulletActiveClass}`)?r.attr("aria-current","true"):r.removeAttr("aria-current")})}()}),i("destroy",()=>{t.params.a11y.enabled&&function(){let e,i;g&&g.length>0&&g.remove(),t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(i=t.navigation.$prevEl),e&&e.off("keydown",p),i&&i.off("keydown",p),f()&&t.pagination.$el.off("keydown",S(t.params.pagination.bulletClass),p)}()})},function({swiper:t,extendParams:e,on:i}){e({history:{enabled:!1,root:"",replaceState:!1,key:"slides"}});let n=!1,s={};const a=t=>t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=t=>{const e=r();let i;i=t?new URL(t):e.location;const n=i.pathname.slice(1).split("/").filter(t=>""!==t),s=n.length;return{key:n[s-2],value:n[s-1]}},l=(e,i)=>{const s=r();if(!n||!t.params.history.enabled)return;let o;o=t.params.url?new URL(t.params.url):s.location;const l=t.slides.eq(i);let A=a(l.attr("data-history"));if(t.params.history.root.length>0){let i=t.params.history.root;"/"===i[i.length-1]&&(i=i.slice(0,i.length-1)),A=`${i}/${e}/${A}`}else o.pathname.includes(e)||(A=`${e}/${A}`);const h=s.history.state;h&&h.value===A||(t.params.history.replaceState?s.history.replaceState({value:A},null,A):s.history.pushState({value:A},null,A))},A=(e,i,r)=>{if(i)for(let n=0,s=t.slides.length;n{s=o(t.params.url),A(t.params.speed,t.paths.value,!1)};i("init",()=>{ t.params.history.enabled&&(()=>{const e=r();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);n=!0,s=o(t.params.url),(s.key||s.value)&&(A(0,s.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",h))}})()}),i("destroy",()=>{t.params.history.enabled&&(()=>{const e=r();t.params.history.replaceState||e.removeEventListener("popstate",h)})()}),i("transitionEnd _freeModeNoMomentumRelease",()=>{n&&l(t.params.history.key,t.activeIndex)}),i("slideChange",()=>{n&&t.params.cssMode&&l(t.params.history.key,t.activeIndex)})},function({swiper:t,extendParams:e,emit:n,on:s}){let o=!1;const l=i(),A=r();e({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}});const h=()=>{n("hashChange");const e=l.location.hash.replace("#","");if(e!==t.slides.eq(t.activeIndex).attr("data-hash")){const i=t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${e}"]`).index();if(void 0===i)return;t.slideTo(i)}},c=()=>{if(o&&t.params.hashNavigation.enabled)if(t.params.hashNavigation.replaceState&&A.history&&A.history.replaceState)A.history.replaceState(null,null,`#${t.slides.eq(t.activeIndex).attr("data-hash")}`||""),n("hashSet");else{const e=t.slides.eq(t.activeIndex),i=e.attr("data-hash")||e.attr("data-history");l.location.hash=i||"",n("hashSet")}};s("init",()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;o=!0;const e=l.location.hash.replace("#","");if(e){const i=0;for(let r=0,n=t.slides.length;r{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&a(A).off("hashchange",h)}),s("transitionEnd _freeModeNoMomentumRelease",()=>{o&&c()}),s("slideChange",()=>{o&&t.params.cssMode&&c()})},function({swiper:t,extendParams:e,on:r,emit:n}){function s(){const e=t.slides.eq(t.activeIndex);let i=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(i=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(u),u=o(()=>{let e;t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),e=t.slidePrev(t.params.speed,!0,!0),n("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?l():(e=t.slideTo(t.slides.length-1,t.params.speed,!0,!0),n("autoplay")):(e=t.slidePrev(t.params.speed,!0,!0),n("autoplay")):t.params.loop?(t.loopFix(),e=t.slideNext(t.params.speed,!0,!0),n("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?l():(e=t.slideTo(0,t.params.speed,!0,!0),n("autoplay")):(e=t.slideNext(t.params.speed,!0,!0),n("autoplay")),(t.params.cssMode&&t.autoplay.running||!1===e)&&s()},i)}function a(){return void 0===u&&!t.autoplay.running&&(t.autoplay.running=!0,n("autoplayStart"),s(),!0)}function l(){return!!t.autoplay.running&&void 0!==u&&(u&&(clearTimeout(u),u=void 0),t.autoplay.running=!1,n("autoplayStop"),!0)}function A(e){t.autoplay.running&&(t.autoplay.paused||(u&&clearTimeout(u),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach(e=>{t.$wrapperEl[0].addEventListener(e,c)}):(t.autoplay.paused=!1,s())))}function h(){const e=i();"hidden"===e.visibilityState&&t.autoplay.running&&A(),"visible"===e.visibilityState&&t.autoplay.paused&&(s(),t.autoplay.paused=!1)}function c(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===t.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach(e=>{t.$wrapperEl[0].removeEventListener(e,c)}),t.autoplay.paused=!1,t.autoplay.running?s():l())}function p(){t.params.autoplay.disableOnInteraction?l():A(),["transitionend","webkitTransitionEnd"].forEach(e=>{t.$wrapperEl[0].removeEventListener(e,c)})}function d(){t.params.autoplay.disableOnInteraction||(t.autoplay.paused=!1,s())}let u;t.autoplay={running:!1,paused:!1},e({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),r("init",()=>{t.params.autoplay.enabled&&(a(),i().addEventListener("visibilitychange",h),t.params.autoplay.pauseOnMouseEnter&&(t.$el.on("mouseenter",p),t.$el.on("mouseleave",d)))}),r("beforeTransitionStart",(e,i,r)=>{t.autoplay.running&&(r||!t.params.autoplay.disableOnInteraction?t.autoplay.pause(i):l())}),r("sliderFirstMove",()=>{t.autoplay.running&&(t.params.autoplay.disableOnInteraction?l():A())}),r("touchEnd",()=>{t.params.cssMode&&t.autoplay.paused&&!t.params.autoplay.disableOnInteraction&&s()}),r("destroy",()=>{t.$el.off("mouseenter",p),t.$el.off("mouseleave",d),t.autoplay.running&&l(),i().removeEventListener("visibilitychange",h)}),Object.assign(t.autoplay,{pause:A,run:s,start:a,stop:l})},function({swiper:t,extendParams:e,on:i}){function r(){const e=t.thumbs.swiper;if(!e)return;const i=e.clickedIndex,r=e.clickedSlide;if(r&&a(r).hasClass(t.params.thumbs.slideThumbActiveClass))return;if(null==i)return;let n;if(n=e.params.loop?parseInt(a(e.clickedSlide).attr("data-swiper-slide-index"),10):i,t.params.loop){let e=t.activeIndex;t.slides.eq(e).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,e=t.activeIndex);const i=t.slides.eq(e).prevAll(`[data-swiper-slide-index="${n}"]`).eq(0).index(),r=t.slides.eq(e).nextAll(`[data-swiper-slide-index="${n}"]`).eq(0).index();n=void 0===i?r:void 0===r?i:r-e1?r:l:r-lt.previousIndex?"next":"prev"}else a=t.realIndex,o=a>t.previousIndex?"next":"prev";s&&(a+="next"===o?n:-1*n),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(a)<0&&(i.params.centeredSlides?a=a>l?a-Math.floor(r/2)+1:a+Math.floor(r/2)-1:a>l&&i.params.slidesPerGroup,i.slideTo(a,e?0:void 0))}let a=1;const o=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(a=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(a=1),a=Math.floor(a),i.slides.removeClass(o),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let e=0;e{const{thumbs:e}=t.params;e&&e.swiper&&(n(),s(!0))}),i("slideChange update resize observerUpdate",()=>{t.thumbs.swiper&&s()}),i("setTransition",(e,i)=>{const r=t.thumbs.swiper;r&&r.setTransition(i)}),i("beforeDestroy",()=>{const e=t.thumbs.swiper;e&&l&&e&&e.destroy()}),Object.assign(t.thumbs,{init:n,update:s})},function({swiper:t,extendParams:e,emit:i,once:r}){e({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchMove:function(){const{touchEventsData:e,touches:i}=t;0===e.velocities.length&&e.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:l()})},onTouchEnd:function({currentPos:e}){const{params:n,$wrapperEl:s,rtlTranslate:a,snapGrid:o,touchEventsData:A}=t,h=l()-A.touchStartTime;if(e<-t.minTranslate())t.slideTo(t.activeIndex);else if(e>-t.maxTranslate())t.slides.length1){const e=A.velocities.pop(),i=A.velocities.pop(),r=e.position-i.position,s=e.time-i.time;t.velocity=r/s,t.velocity/=2,Math.abs(t.velocity)150||l()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=n.freeMode.momentumVelocityRatio,A.velocities.length=0;let e=1e3*n.freeMode.momentumRatio;const h=t.velocity*e;let c=t.translate+h;a&&(c=-c);let p,d=!1;const u=20*Math.abs(t.velocity)*n.freeMode.momentumBounceRatio;let f;if(ct.minTranslate())n.freeMode.momentumBounce?(c-t.minTranslate()>u&&(c=t.minTranslate()+u),p=t.minTranslate(),d=!0,A.allowMomentumBounce=!0):c=t.minTranslate(),n.loop&&n.centeredSlides&&(f=!0);else if(n.freeMode.sticky){let e;for(let t=0;t-c){e=t;break}c=Math.abs(o[e]-c){t.loopFix()}),0!==t.velocity){if(e=a?Math.abs((-c-t.translate)/t.velocity):Math.abs((c-t.translate)/t.velocity),n.freeMode.sticky){const i=Math.abs((a?-c:c)-t.translate),r=t.slidesSizesGrid[t.activeIndex];e=i{t&&!t.destroyed&&A.allowMomentumBounce&&(i("momentumBounce"),t.setTransition(n.speed),setTimeout(()=>{t.setTranslate(p),s.transitionEnd(()=>{t&&!t.destroyed&&t.transitionEnd()})},0))})):t.velocity?(i("_freeModeNoMomentumRelease"),t.updateProgress(c),t.setTransition(e),t.setTranslate(c),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,s.transitionEnd(()=>{t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(c),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(n.freeMode.sticky)return void t.slideToClosest();n.freeMode&&i("_freeModeNoMomentumRelease")}(!n.freeMode.momentum||h>=n.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function({swiper:t,extendParams:e}){let i,r,n;e({grid:{rows:1,fill:"column"}}),t.grid={initSlides:e=>{const{slidesPerView:s}=t.params,{rows:a,fill:o}=t.params.grid;r=i/a,n=Math.floor(e/a),i=Math.floor(e/a)===e/a?e:Math.ceil(e/a)*a,"auto"!==s&&"row"===o&&(i=Math.max(i,s*a))},updateSlide:(e,s,a,o)=>{const{slidesPerGroup:l,spaceBetween:A}=t.params,{rows:h,fill:c}=t.params.grid;let p,d,u;if("row"===c&&l>1){const t=Math.floor(e/(l*h)),r=e-h*l*t,n=0===t?l:Math.min(Math.ceil((a-t*h*l)/h),l);u=Math.floor(r/n),d=r-u*n+t*l,p=d+u*i/h,s.css({"-webkit-order":p,order:p})}else"column"===c?(d=Math.floor(e/h),u=e-d*h,(d>n||d===n&&u===h-1)&&(u+=1,u>=h&&(u=0,d+=1))):(u=Math.floor(e/r),d=e-u*r);s.css(o("margin-top"),0!==u?A&&`${A}px`:"")},updateWrapperSize:(e,r,n)=>{const{spaceBetween:s,centeredSlides:a,roundLengths:o}=t.params,{rows:l}=t.params.grid;if(t.virtualSize=(e+s)*i,t.virtualSize=Math.ceil(t.virtualSize/l)-s,t.$wrapperEl.css({[n("width")]:`${t.virtualSize+s}px`}),a){r.splice(0,r.length);const e=[];for(let i=0;i{const{slides:e}=t,i=t.params.fadeEffect;for(let r=0;r{const{transformEl:i}=t.params.fadeEffect;(i?t.slides.find(i):t.slides).transition(e),F({swiper:t,duration:e,transformEl:i,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function({swiper:t,extendParams:e,on:i}){e({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}}),D({effect:"cube",swiper:t,on:i,setTranslate:()=>{const{$el:e,$wrapperEl:i,slides:r,width:n,height:s,rtlTranslate:o,size:l,browser:A}=t,h=t.params.cubeEffect,c=t.isHorizontal(),p=t.virtual&&t.params.virtual.enabled;let d,u=0;h.shadow&&(c?(d=i.find(".swiper-cube-shadow"),0===d.length&&(d=a('
'),i.append(d)),d.css({height:`${n}px`})):(d=e.find(".swiper-cube-shadow"),0===d.length&&(d=a('
'),e.append(d))));for(let t=0;t-1&&(u=90*i+90*A,o&&(u=90*-i-90*A)),e.transform(g),h.slideShadows){let t=c?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),i=c?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===t.length&&(t=a(`
`),e.append(t)),0===i.length&&(i=a(`
`),e.append(i)),t.length&&(t[0].style.opacity=Math.max(-A,0)),i.length&&(i[0].style.opacity=Math.max(A,0))}}if(i.css({"-webkit-transform-origin":`50% 50% -${l/2}px`,"transform-origin":`50% 50% -${l/2}px`}),h.shadow)if(c)d.transform(`translate3d(0px, ${n/2+h.shadowOffset}px, ${-n/2}px) rotateX(90deg) rotateZ(0deg) scale(${h.shadowScale})`);else{const t=Math.abs(u)-90*Math.floor(Math.abs(u)/90),e=1.5-(Math.sin(2*t*Math.PI/360)/2+Math.cos(2*t*Math.PI/360)/2),i=h.shadowScale,r=h.shadowScale/e,n=h.shadowOffset;d.transform(`scale3d(${i}, 1, ${r}) translate3d(0px, ${s/2+n}px, ${-s/2/r}px) rotateX(-90deg)`)}const f=A.isSafari||A.isWebView?-l/2:0;i.transform(`translate3d(0px,0,${f}px) rotateX(${t.isHorizontal()?0:u}deg) rotateY(${t.isHorizontal()?-u:0}deg)`)},setTransition:e=>{const{$el:i,slides:r}=t;r.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&i.find(".swiper-cube-shadow").transition(e)},perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function({swiper:t,extendParams:e,on:i}){e({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}}),D({effect:"flip",swiper:t,on:i,setTranslate:()=>{const{slides:e,rtlTranslate:i}=t,r=t.params.flipEffect;for(let n=0;n{const{transformEl:i}=t.params.flipEffect;(i?t.slides.find(i):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),F({swiper:t,duration:e,transformEl:i})},perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function({swiper:t,extendParams:e,on:i}){e({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0,transformEl:null}}),D({effect:"coverflow",swiper:t,on:i,setTranslate:()=>{const{width:e,height:i,slides:r,slidesSizesGrid:n}=t,s=t.params.coverflowEffect,a=t.isHorizontal(),o=t.translate,l=a?e/2-o:i/2-o,A=a?s.rotate:-s.rotate,h=s.depth;for(let t=0,e=r.length;t0?o:0),i.length&&(i[0].style.opacity=-o>0?-o:0)}}},setTransition:e=>{const{transformEl:i}=t.params.coverflowEffect;(i?t.slides.find(i):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function({swiper:t,extendParams:e,on:i}){e({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`;D({effect:"creative",swiper:t,on:i,setTranslate:()=>{const{slides:e,$wrapperEl:i,slidesSizesGrid:n}=t,s=t.params.creativeEffect,{progressMultiplier:a}=s,o=t.params.centeredSlides;if(o){const e=n[0]/2-t.params.slidesOffsetBefore||0;i.transform(`translateX(calc(50% - ${e}px))`)}for(let i=0;i0&&(f=s.prev,u=!0),p.forEach((t,e)=>{p[e]=`calc(${t}px + (${r(f.translate[e])} * ${Math.abs(A*a)}))`}),d.forEach((t,e)=>{d[e]=f.rotate[e]*Math.abs(A*a)}),n[0].style.zIndex=-Math.abs(Math.round(l))+e.length;const m=p.join(", "),g=`rotateX(${d[0]}deg) rotateY(${d[1]}deg) rotateZ(${d[2]}deg)`,y=h<0?`scale(${1+(1-f.scale)*h*a})`:`scale(${1-(1-f.scale)*h*a})`,v=h<0?1+(1-f.opacity)*h*a:1-(1-f.opacity)*h*a,E=`translate3d(${m}) ${g} ${y}`;if(u&&f.shadow||!u){let t=n.children(".swiper-slide-shadow");if(0===t.length&&f.shadow&&(t=R(s,n)),t.length){const e=s.shadowPerProgress?A*(1/s.limitProgress):A;t[0].style.opacity=Math.min(Math.max(Math.abs(e),0),1)}}const C=Q(s,n);C.transform(E).css({opacity:v}),f.origin&&C.css("transform-origin",f.origin)}},setTransition:e=>{const{transformEl:i}=t.params.creativeEffect;(i?t.slides.find(i):t.slides).transition(e).find(".swiper-slide-shadow").transition(e),F({swiper:t,duration:e,transformEl:i,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function({swiper:t,extendParams:e,on:i}){e({cardsEffect:{slideShadows:!0,transformEl:null}}),D({effect:"cards",swiper:t,on:i,setTranslate:()=>{const{slides:e,activeIndex:i}=t,r=t.params.cardsEffect,{startTranslate:n,isTouched:s}=t.touchEventsData,a=t.translate;for(let o=0;o0&&h<1&&(s||t.params.cssMode)&&a-1&&(s||t.params.cssMode)&&a>n;if(y||v){const t=(1-Math.abs((Math.abs(h)-.5)/.5))**.5;m+=-28*h*t,f+=-.5*t,g+=96*t,d=-25*t*Math.abs(h)+"%"}if(p=h<0?`calc(${p}px + (${g*Math.abs(h)}%))`:h>0?`calc(${p}px + (-${g*Math.abs(h)}%))`:`${p}px`,!t.isHorizontal()){const t=d;d=p,p=t}const E=`\n translate3d(${p}, ${d}, ${u}px)\n rotateZ(${m}deg)\n scale(${h<0?""+(1+(1-f)*h):""+(1-(1-f)*h)})\n `;if(r.slideShadows){let t=l.find(".swiper-slide-shadow");0===t.length&&(t=R(r,l)),t.length&&(t[0].style.opacity=Math.min(Math.max((Math.abs(h)-.5)/.5,0),1))}l[0].style.zIndex=-Math.abs(Math.round(A))+e.length,Q(r,l).transform(E)}},setTransition:e=>{const{transformEl:i}=t.params.cardsEffect;(i?t.slides.find(i):t.slides).transition(e).find(".swiper-slide-shadow").transition(e),F({swiper:t,duration:e,transformEl:i})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}];return X.use(K),X});var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,e,i){var r=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0},n=1e-8,s=e._internals,a=s.lazyTweens,o=s.lazyRender,l=_gsScope._gsDefine.globals,A=new i(null,null,1,0),h=r.prototype=new t;return h.constructor=r,h.kill()._gc=!1,r.version="2.1.2",h.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},h.addCallback=function(t,i,r,n){return this.add(e.delayedCall(0,t,r,n),i)},h.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),r=i.length,n=this._parseTimeOrLabel(e);--r>-1;)i[r]._startTime===n&&i[r]._enabled(!1,!1);return this},h.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},h.tweenTo=function(t,i){i=i||{};var r,n,s,a={ease:A,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},o=i.repeat&&l.TweenMax||e;for(n in i)a[n]=i[n];return a.time=this._parseTimeOrLabel(t),r=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,s=new o(this,r,a),a.onStart=function(){s.target.paused(!0),s.vars.time===s.target.time()||r!==s.duration()||s.isFromTo||s.duration(Math.abs(s.vars.time-s.target.time())/s.target._timeScale).render(s.time(),!0,!0),i.onStart&&i.onStart.apply(i.onStartScope||i.callbackScope||s,i.onStartParams||[])},s},h.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 r=this.tweenTo(e,i);return r.isFromTo=1,r.duration(Math.abs(r.vars.time-t)/this._timeScale||.001)},h.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,s,l,A,h,c,p,d,u,f=this,m=f._time,g=f._dirty?f.totalDuration():f._totalDuration,y=f._duration,v=f._totalTime,E=f._startTime,C=f._timeScale,b=f._rawPrevTime,_=f._paused,w=f._cycle;if(m!==f._time&&(t+=f._time-m),t>=g-n&&t>=0)f._locked||(f._totalTime=g,f._cycle=f._repeat),f._reversed||f._hasPausedChild()||(s=!0,A="onComplete",h=!!f._timeline.autoRemoveChildren,0===f._duration&&(0>=t&&t>=-n||0>b||b===n)&&b!==t&&f._first&&(h=!0,b>n&&(A="onReverseComplete"))),f._rawPrevTime=f._duration||!e||t||f._rawPrevTime===t?t:n,f._yoyo&&1&f._cycle?f._time=t=0:(f._time=y,t=y+1e-4);else if(n>t)if(f._locked||(f._totalTime=f._cycle=0),f._time=0,t>-n&&(t=0),(0!==m||0===y&&b!==n&&(b>0||0>t&&b>=0)&&!f._locked)&&(A="onReverseComplete",s=f._reversed),0>t)f._active=!1,f._timeline.autoRemoveChildren&&f._reversed?(h=s=!0,A="onReverseComplete"):b>=0&&f._first&&(h=!0),f._rawPrevTime=t;else{if(f._rawPrevTime=y||!e||t||f._rawPrevTime===t?t:n,0===t&&s)for(r=f._first;r&&0===r._startTime;)r._duration||(s=!1),r=r._next;t=0,f._initted||(h=!0)}else if(0===y&&0>b&&(h=!0),f._time=f._rawPrevTime=t,f._locked||(f._totalTime=t,0!==f._repeat&&(c=y+f._repeatDelay,f._cycle=f._totalTime/c>>0,f._cycle&&f._cycle===f._totalTime/c&&t>=v&&f._cycle--,f._time=f._totalTime-f._cycle*c,f._yoyo&&1&f._cycle&&(f._time=y-f._time),f._time>y?(f._time=y,t=y+1e-4):f._time<0?f._time=t=0:t=f._time)),f._hasPause&&!f._forcingPlayhead&&!e){if(t=f._time,t>=m||f._repeat&&w!==f._cycle)for(r=f._first;r&&r._startTime<=t&&!p;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===f._rawPrevTime||(p=r),r=r._next;else for(r=f._last;r&&r._startTime>=t&&!p;)r._duration||"isPause"===r.data&&r._rawPrevTime>0&&(p=r),r=r._prev;p&&(u=f._startTime+p._startTime/f._timeScale,p._startTime0&&(f._active=!0),0===v&&f.vars.onStart&&(0===f._totalTime&&f._totalDuration||e||f._callback("onStart")),d=f._time,d>=m)for(r=f._first;r&&(l=r._next,d===f._time&&(!f._paused||_));)(r._active||r._startTime<=f._time&&!r._paused&&!r._gc)&&(p===r&&(f.pause(),f._pauseTime=u),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=l;else for(r=f._last;r&&(l=r._prev,d===f._time&&(!f._paused||_));){if(r._active||r._startTime<=m&&!r._paused&&!r._gc){if(p===r){for(p=r._prev;p&&p.endTime()>f._time;)p.render(p._reversed?p.totalDuration()-(t-p._startTime)*p._timeScale:(t-p._startTime)*p._timeScale,e,i),p=p._prev;p=null,f.pause(),f._pauseTime=u}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=l}f._onUpdate&&(e||(a.length&&o(),f._callback("onUpdate"))),A&&(f._locked||f._gc||(E===f._startTime||C!==f._timeScale)&&(0===f._time||g>=f.totalDuration())&&(s&&(a.length&&o(),f._timeline.autoRemoveChildren&&f._enabled(!1,!1),f._active=!1),!e&&f.vars[A]&&f._callback(A)))}else v!==f._totalTime&&f._onUpdate&&(e||f._callback("onUpdate"))},h.getActive=function(t,e,i){var r,n,s=[],a=this.getChildren(t||null==t,e||null==t,!!i),o=0,l=a.length;for(r=0;l>r;r++)n=a[r],n.isActive()&&(s[o++]=n);return s},h.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),r=i.length;for(e=0;r>e;e++)if(i[e].time>t)return i[e].name;return null},h.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;--i>-1;)if(e[i].timei&&(t=i),this.totalTime(this._yoyo&&1&r?i-t+n:this._repeat?t+n:t,e)},h.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},h.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},h.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},h.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+n)},r},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var r=function(t){e.call(this,t);var i,r,n=this,s=n.vars;for(r in n._labels={},n.autoRemoveChildren=!!s.autoRemoveChildren,n.smoothChildTiming=!!s.smoothChildTiming,n._sortChildren=!0,n._onUpdate=s.onUpdate,s)i=s[r],l(i)&&-1!==i.join("").indexOf("{self}")&&(s[r]=n._swapSelfInParams(i));l(s.tweens)&&n.add(s.tweens,0,s.align,s.stagger)},n=1e-8,s=i._internals,a=r._internals={},o=s.isSelector,l=s.isArray,A=s.lazyTweens,h=s.lazyRender,c=_gsScope._gsDefine.globals,p=function(t){var e,i={};for(e in t)i[e]=t[e];return i},d=function(t,e,i){var r,n,s=t.cycle;for(r in s)n=s[r],t[r]="function"==typeof n?n(i,e[i],e):n[i%n.length];delete t.cycle},u=a.pauseCallback=function(){},f=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i},m=function(t,e,i,r){var n="immediateRender";return n in e||(e[n]=!(i&&!1===i[n]||r)),e},g=function(t){if("function"==typeof t)return t;var e="object"==typeof t?t:{each:t},i=e.ease,r=e.from||0,n=e.base||0,s={},a=isNaN(r),o=e.axis,l={center:.5,end:1}[r]||0;return function(t,A,h){var c,p,d,u,f,m,g,y,v,E=(h||e).length,C=s[E];if(!C){if(v="auto"===e.grid?0:(e.grid||[1/0])[0],!v){for(g=-1/0;g<(g=h[v++].getBoundingClientRect().left)&&E>v;);v--}for(C=s[E]=[],c=a?Math.min(v,E)*l-.5:r%v,p=a?E*l/v-.5:r/v|0,g=0,y=1/0,m=0;E>m;m++)d=m%v-c,u=p-(m/v|0),C[m]=f=o?Math.abs("y"===o?u:d):Math.sqrt(d*d+u*u),f>g&&(g=f),y>f&&(y=f);C.max=g-y,C.min=y, C.v=E=e.amount||e.each*(v>E?E:o?"y"===o?E/v:v:Math.max(v,E/v))||0,C.b=0>E?n-E:n}return E=(C[t]-C.min)/C.max,C.b+(i?i.getRatio(E):E)*C.v}},y=r.prototype=new e;return r.version="2.1.2",r.distribute=g,y.constructor=r,y.kill()._gc=y._forcingPlayhead=y._hasPause=!1,y.to=function(t,e,r,n){var s=r.repeat&&c.TweenMax||i;return e?this.add(new s(t,e,r),n):this.set(t,r,n)},y.from=function(t,e,r,n){return this.add((r.repeat&&c.TweenMax||i).from(t,e,m(this,r)),n)},y.fromTo=function(t,e,r,n,s){var a=n.repeat&&c.TweenMax||i;return n=m(this,n,r),e?this.add(a.fromTo(t,e,r,n),s):this.set(t,n,s)},y.staggerTo=function(t,e,n,s,a,l,A,h){var c,u,m=new r({onComplete:l,onCompleteParams:A,callbackScope:h,smoothChildTiming:this.smoothChildTiming}),y=g(n.stagger||s),v=n.startAt,E=n.cycle;for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],o(t)&&(t=f(t)),u=0;us&&(n=1),l.add(a,s)),a=o;return A.add(l,0),n&&l.totalDuration(),l},y.add=function(n,s,a,o){var A,h,c,p,d,u,f=this;if("number"!=typeof s&&(s=f._parseTimeOrLabel(s,0,!0,n)),!(n instanceof t)){if(n instanceof Array||n&&n.push&&l(n)){for(a=a||"normal",o=o||0,A=s,h=n.length,c=0;h>c;c++)l(p=n[c])&&(p=new r({tweens:p})),f.add(p,A),"string"!=typeof p&&"function"!=typeof p&&("sequence"===a?A=p._startTime+p.totalDuration()/p._timeScale:"start"===a&&(p._startTime-=p.delay())),A+=o;return f._uncache(!0)}if("string"==typeof n)return f.addLabel(n,s);if("function"!=typeof n)throw"Cannot add "+n+" into the timeline; it is not a tween, timeline, function, or string.";n=i.delayedCall(0,n)}if(e.prototype.add.call(f,n,s),(n._time||!n._duration&&n._initted)&&(A=(f.rawTime()-n._startTime)*n._timeScale,(!n._duration||Math.abs(Math.max(0,Math.min(n.totalDuration(),A)))-n._totalTime>1e-5)&&n.render(A,!1,!1)),(f._gc||f._time===f._duration)&&!f._paused&&f._durationn._startTime;d._timeline;)u&&d._timeline.smoothChildTiming?d.totalTime(d._totalTime,!0):d._gc&&d._enabled(!0,!1),d=d._timeline;return f},y.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 r=e.length;--r>-1;)this.remove(e[r]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},y._remove=function(t,i){e.prototype._remove.call(this,t,i);var r=this._last;return r?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},y.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},y.insert=y.insertMultiple=function(t,e,i,r){return this.add(t,e||0,i,r)},y.appendMultiple=function(t,e,i,r){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,r)},y.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},y.addPause=function(t,e,r,n){var s=i.delayedCall(0,u,r,n||this);return s.vars.onComplete=s.vars.onReverseComplete=e,s.data="isPause",this._hasPause=!0,this.add(s,t)},y.removeLabel=function(t){return delete this._labels[t],this},y.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},y._parseTimeOrLabel=function(e,i,r,n){var s,a;if(n instanceof t&&n.timeline===this)this.remove(n);else if(n&&(n instanceof Array||n.push&&l(n)))for(a=n.length;--a>-1;)n[a]instanceof t&&n[a].timeline===this&&this.remove(n[a]);if(s="number"!=typeof e||i?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,"string"==typeof i)return this._parseTimeOrLabel(i,r&&"number"==typeof e&&null==this._labels[i]?e-s:0,r);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=s);else{if(a=e.indexOf("="),-1===a)return null==this._labels[e]?r?this._labels[e]=s+i:i:this._labels[e]+i;i=parseInt(e.charAt(a-1)+"1",10)*Number(e.substr(a+1)),e=a>1?this._parseTimeOrLabel(e.substr(0,a-1),0,r):s}return Number(e)+i},y.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},y.stop=function(){return this.paused(!0)},y.gotoAndPlay=function(t,e){return this.play(t,e)},y.gotoAndStop=function(t,e){return this.pause(t,e)},y.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,s,a,o,l,c,p,d,u=this,f=u._time,m=u._dirty?u.totalDuration():u._totalDuration,g=u._startTime,y=u._timeScale,v=u._paused;if(f!==u._time&&(t+=u._time-f),t>=m-n&&t>=0)u._totalTime=u._time=m,u._reversed||u._hasPausedChild()||(s=!0,o="onComplete",l=!!u._timeline.autoRemoveChildren,0===u._duration&&(0>=t&&t>=-n||u._rawPrevTime<0||u._rawPrevTime===n)&&u._rawPrevTime!==t&&u._first&&(l=!0,u._rawPrevTime>n&&(o="onReverseComplete"))),u._rawPrevTime=u._duration||!e||t||u._rawPrevTime===t?t:n,t=m+1e-4;else if(n>t)if(u._totalTime=u._time=0,t>-n&&(t=0),(0!==f||0===u._duration&&u._rawPrevTime!==n&&(u._rawPrevTime>0||0>t&&u._rawPrevTime>=0))&&(o="onReverseComplete",s=u._reversed),0>t)u._active=!1,u._timeline.autoRemoveChildren&&u._reversed?(l=s=!0,o="onReverseComplete"):u._rawPrevTime>=0&&u._first&&(l=!0),u._rawPrevTime=t;else{if(u._rawPrevTime=u._duration||!e||t||u._rawPrevTime===t?t:n,0===t&&s)for(r=u._first;r&&0===r._startTime;)r._duration||(s=!1),r=r._next;t=0,u._initted||(l=!0)}else{if(u._hasPause&&!u._forcingPlayhead&&!e){if(t>=f)for(r=u._first;r&&r._startTime<=t&&!c;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===u._rawPrevTime||(c=r),r=r._next;else for(r=u._last;r&&r._startTime>=t&&!c;)r._duration||"isPause"===r.data&&r._rawPrevTime>0&&(c=r),r=r._prev;c&&(u._time=u._totalTime=t=c._startTime,d=u._startTime+t/u._timeScale)}u._totalTime=u._time=u._rawPrevTime=t}if(u._time!==f&&u._first||i||l||c){if(u._initted||(u._initted=!0),u._active||!u._paused&&u._time!==f&&t>0&&(u._active=!0),0===f&&u.vars.onStart&&(0===u._time&&u._duration||e||u._callback("onStart")),p=u._time,p>=f)for(r=u._first;r&&(a=r._next,p===u._time&&(!u._paused||v));)(r._active||r._startTime<=p&&!r._paused&&!r._gc)&&(c===r&&(u.pause(),u._pauseTime=d),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=a;else for(r=u._last;r&&(a=r._prev,p===u._time&&(!u._paused||v));){if(r._active||r._startTime<=f&&!r._paused&&!r._gc){if(c===r){for(c=r._prev;c&&c.endTime()>u._time;)c.render(c._reversed?c.totalDuration()-(t-c._startTime)*c._timeScale:(t-c._startTime)*c._timeScale,e,i),c=c._prev;c=null,u.pause(),u._pauseTime=d}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=a}u._onUpdate&&(e||(A.length&&h(),u._callback("onUpdate"))),o&&(u._gc||(g===u._startTime||y!==u._timeScale)&&(0===u._time||m>=u.totalDuration())&&(s&&(A.length&&h(),u._timeline.autoRemoveChildren&&u._enabled(!1,!1),u._active=!1),!e&&u.vars[o]&&u._callback(o)))}},y._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof r&&t._hasPausedChild())return!0;t=t._next}return!1},y.getChildren=function(t,e,r,n){n=n||-9999999999;for(var s=[],a=this._first,o=0;a;)a._startTime-1;)(r[n].timeline===this||e&&this._contains(r[n]))&&(a[o++]=r[n]);return s&&this._enabled(!1,!0),a},y.recent=function(){return this._recent},y._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},y.shiftChildren=function(t,e,i){i=i||0;for(var r,n=this._first,s=this._labels;n;)n._startTime>=i&&(n._startTime+=t),n=n._next;if(e)for(r in s)s[r]>=i&&(s[r]+=t);return this._uncache(!0)},y._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),r=i.length,n=!1;--r>-1;)i[r]._kill(t,e)&&(n=!0);return n},y.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},y.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},y._enabled=function(t,i){if(t===this._gc)for(var r=this._first;r;)r._enabled(t,!0),r=r._next;return e.prototype._enabled.call(this,t,i)},y.totalTime=function(e,i,r){this._forcingPlayhead=!0;var n=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,n},y.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},y.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,r=0,n=this,s=n._last,a=999999999999;s;)e=s._prev,s._dirty&&s.totalDuration(),s._startTime>a&&n._sortChildren&&!s._paused&&!n._calculatingDuration?(n._calculatingDuration=1,n.add(s,s._startTime-s._delay),n._calculatingDuration=0):a=s._startTime,s._startTime<0&&!s._paused&&(r-=s._startTime,n._timeline.smoothChildTiming&&(n._startTime+=s._startTime/n._timeScale,n._time-=s._startTime,n._totalTime-=s._startTime,n._rawPrevTime-=s._startTime),n.shiftChildren(-s._startTime,!1,-9999999999),a=0),i=s._startTime+s._totalDuration/s._timeScale,i>r&&(r=i),s=e;n._duration=n._totalDuration=r,n._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},y.paused=function(e){if(!1===e&&this._paused)for(var i=this._first;i;)i._startTime===this._time&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},y.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},y.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},r},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"undefined"!=typeof module&&module.exports?(require("./TweenLite.min.js"),module.exports=e()):"function"==typeof define&&define.amd&&define(["TweenLite"],e)}("TimelineMax");var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t,e,i,r,n,s,a,o,l,A,h,c,p,d,u,f,m;_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var r=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i},n=function(t,e,i){var r,n,s=t.cycle;for(r in s)n=s[r],t[r]="function"==typeof n?n(i,e[i],e):n[i%n.length];delete t.cycle},s=function(t){if("function"==typeof t)return t;var e="object"==typeof t?t:{each:t},i=e.ease,r=e.from||0,n=e.base||0,s={},a=isNaN(r),o=e.axis,l={center:.5,end:1}[r]||0;return function(t,A,h){var c,p,d,u,f,m,g,y,v,E=(h||e).length,C=s[E];if(!C){if(v="auto"===e.grid?0:(e.grid||[1/0])[0],!v){for(g=-1/0;g<(g=h[v++].getBoundingClientRect().left)&&E>v;);v--}for(C=s[E]=[],c=a?Math.min(v,E)*l-.5:r%v,p=a?E*l/v-.5:r/v|0,g=0,y=1/0,m=0;E>m;m++)d=m%v-c,u=p-(m/v|0),C[m]=f=o?Math.abs("y"===o?u:d):Math.sqrt(d*d+u*u),f>g&&(g=f),y>f&&(y=f);C.max=g-y,C.min=y,C.v=E=e.amount||e.each*(v>E?E:o?"y"===o?E/v:v:Math.max(v,E/v))||0,C.b=0>E?n-E:n}return E=(C[t]-C.min)/C.max,C.b+(i?i.getRatio(E):E)*C.v}},a=function(t,e,r){i.call(this,t,e,r),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._repeat&&this._uncache(!0),this.render=a.prototype.render},o=1e-8,l=i._internals,A=l.isSelector,h=l.isArray,c=a.prototype=i.to({},.1,{}),p=[];a.version="2.1.2",c.constructor=a,c.kill()._gc=!1,a.killTweensOf=a.killDelayedCallsTo=i.killTweensOf,a.getTweensOf=i.getTweensOf,a.lagSmoothing=i.lagSmoothing,a.ticker=i.ticker,a.render=i.render,a.distribute=s,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 r,n=this,s=n.ratio,a=n.vars.immediateRender||t.immediateRender;for(r in e&&n._startTime.998){var o=n._totalTime;n.render(0,!0,!1),n._initted=!1,n.render(o,!0,!1)}else if(n._initted=!1,n._init(),n._time>0||a)for(var l,A=1/(1-s),h=n._firstPT;h;)l=h.s+h.c,h.c*=A,h.s=l-h.c,h=h._next;return n},c.render=function(t,e,r){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var n,s,a,A,h,c,p,d,u,f=this,m=f._dirty?f.totalDuration():f._totalDuration,g=f._time,y=f._totalTime,v=f._cycle,E=f._duration,C=f._rawPrevTime;if(t>=m-o&&t>=0?(f._totalTime=m,f._cycle=f._repeat,f._yoyo&&0!=(1&f._cycle)?(f._time=0,f.ratio=f._ease._calcEnd?f._ease.getRatio(0):0):(f._time=E,f.ratio=f._ease._calcEnd?f._ease.getRatio(1):1),f._reversed||(n=!0,s="onComplete",r=r||f._timeline.autoRemoveChildren),0===E&&(f._initted||!f.vars.lazy||r)&&(f._startTime===f._timeline._duration&&(t=0),(0>C||0>=t&&t>=-o||C===o&&"isPause"!==f.data)&&C!==t&&(r=!0,C>o&&(s="onReverseComplete")),f._rawPrevTime=d=!e||t||C===t?t:o)):o>t?(f._totalTime=f._time=f._cycle=0,f.ratio=f._ease._calcEnd?f._ease.getRatio(0):0,(0!==y||0===E&&C>0)&&(s="onReverseComplete",n=f._reversed),t>-o?t=0:0>t&&(f._active=!1,0===E&&(f._initted||!f.vars.lazy||r)&&(C>=0&&(r=!0),f._rawPrevTime=d=!e||t||C===t?t:o)),f._initted||(r=!0)):(f._totalTime=f._time=t,0!==f._repeat&&(A=E+f._repeatDelay,f._cycle=f._totalTime/A>>0,0!==f._cycle&&f._cycle===f._totalTime/A&&t>=y&&f._cycle--,f._time=f._totalTime-f._cycle*A,f._yoyo&&0!=(1&f._cycle)&&(f._time=E-f._time,u=f._yoyoEase||f.vars.yoyoEase,u&&(f._yoyoEase||(!0!==u||f._initted?f._yoyoEase=u=!0===u?f._ease:u instanceof Ease?u:Ease.map[u]:(u=f.vars.ease,f._yoyoEase=u=u?u instanceof Ease?u:"function"==typeof u?new Ease(u,f.vars.easeParams):Ease.map[u]||i.defaultEase:i.defaultEase)),f.ratio=u?1-u.getRatio((E-f._time)/E):0)),f._time>E?f._time=E:f._time<0&&(f._time=0)),f._easeType&&!u?(h=f._time/E,c=f._easeType,p=f._easePower,(1===c||3===c&&h>=.5)&&(h=1-h),3===c&&(h*=2),1===p?h*=h:2===p?h*=h*h:3===p?h*=h*h*h:4===p&&(h*=h*h*h*h),f.ratio=1===c?1-h:2===c?h:f._time/E<.5?h/2:1-h/2):u||(f.ratio=f._ease.getRatio(f._time/E))),g!==f._time||r||v!==f._cycle){if(!f._initted){if(f._init(),!f._initted||f._gc)return;if(!r&&f._firstPT&&(!1!==f.vars.lazy&&f._duration||f.vars.lazy&&!f._duration))return f._time=g,f._totalTime=y,f._rawPrevTime=C,f._cycle=v,l.lazyTweens.push(f),void(f._lazy=[t,e]);!f._time||n||u?n&&this._ease._calcEnd&&!u&&(f.ratio=f._ease.getRatio(0===f._time?0:1)):f.ratio=f._ease.getRatio(f._time/E)}for(!1!==f._lazy&&(f._lazy=!1),f._active||!f._paused&&f._time!==g&&t>=0&&(f._active=!0),0===y&&(2===f._initted&&t>0&&f._init(),f._startAt&&(t>=0?f._startAt.render(t,!0,r):s||(s="_dummyGS")),f.vars.onStart&&(0!==f._totalTime||0===E)&&(e||f._callback("onStart"))),a=f._firstPT;a;)a.f?a.t[a.p](a.c*f.ratio+a.s):a.t[a.p]=a.c*f.ratio+a.s,a=a._next;f._onUpdate&&(0>t&&f._startAt&&f._startTime&&f._startAt.render(t,!0,r),e||(f._totalTime!==y||s)&&f._callback("onUpdate")),f._cycle!==v&&(e||f._gc||f.vars.onRepeat&&f._callback("onRepeat")),s&&(!f._gc||r)&&(0>t&&f._startAt&&!f._onUpdate&&f._startTime&&f._startAt.render(t,!0,r),n&&(f._timeline.autoRemoveChildren&&f._enabled(!1,!1),f._active=!1),!e&&f.vars[s]&&f._callback(s),0===E&&f._rawPrevTime===o&&d!==o&&(f._rawPrevTime=0))}else y!==f._totalTime&&f._onUpdate&&(e||f._callback("onUpdate"))},a.to=function(t,e,i){return new a(t,e,i)},a.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new a(t,e,i)},a.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new a(t,e,r)},a.staggerTo=a.allTo=function(t,e,o,l,c,d,u){var f,m,g,y,v=[],E=s(o.stagger||l),C=o.cycle,b=(o.startAt||p).cycle;for(h(t)||("string"==typeof t&&(t=i.selector(t)||t),A(t)&&(t=r(t))),t=t||[],f=t.length-1,g=0;f>=g;g++){for(y in m={},o)m[y]=o[y];if(C&&(n(m,t,g),null!=m.duration&&(e=m.duration,delete m.duration)),b){for(y in b=m.startAt={},o.startAt)b[y]=o.startAt[y];n(m.startAt,t,g)}m.delay=E(g,t[g],t)+(m.delay||0),g===f&&c&&(m.onComplete=function(){o.onComplete&&o.onComplete.apply(o.onCompleteScope||this,arguments),c.apply(u||o.callbackScope||this,d||p)}),v[g]=new a(t[g],e,m)}return v},a.staggerFrom=a.allFrom=function(t,e,i,r,n,s,o){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,a.staggerTo(t,e,i,r,n,s,o)},a.staggerFromTo=a.allFromTo=function(t,e,i,r,n,s,o,l){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,a.staggerTo(t,e,r,n,s,o,l)},a.delayedCall=function(t,e,i,r,n){return new a(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:n,overwrite:0})},a.set=function(t,e){return new a(t,0,e)},a.isTweening=function(t){return i.getTweensOf(t,!0).length>0};var d=function(t,e){for(var r=[],n=0,s=t._first;s;)s instanceof i?r[n++]=s:(e&&(r[n++]=s),r=r.concat(d(s,e)),n=r.length),s=s._next;return r},u=a.getAllTweens=function(e){return d(t._rootTimeline,e).concat(d(t._rootFramesTimeline,e))};a.killAll=function(t,i,r,n){null==i&&(i=!0),null==r&&(r=!0);var s,a,o,l=u(0!=n),A=l.length,h=i&&r&&n;for(o=0;A>o;o++)a=l[o],(h||a instanceof e||(s=a.target===a.vars.onComplete)&&r||i&&!s)&&(t?a.totalTime(a._reversed?0:a.totalDuration()):a._enabled(!1,!1))},a.killChildTweensOf=function(t,e){if(null!=t){var n,s,o,c,p,d=l.tweenLookup;if("string"==typeof t&&(t=i.selector(t)||t),A(t)&&(t=r(t)),h(t))for(c=t.length;--c>-1;)a.killChildTweensOf(t[c],e);else{for(o in n=[],d)for(s=d[o].target.parentNode;s;)s===t&&(n=n.concat(d[o].tweens)),s=s.parentNode;for(p=n.length,c=0;p>c;c++)e&&n[c].totalTime(n[c].totalDuration()),n[c]._enabled(!1,!1)}}};var f=function(t,i,r,n){i=!1!==i,r=!1!==r,n=!1!==n;for(var s,a,o=u(n),l=i&&r&&n,A=o.length;--A>-1;)a=o[A],(l||a instanceof e||(s=a.target===a.vars.onComplete)&&r||i&&!s)&&a.paused(t)};return a.pauseAll=function(t,e,i){f(!0,t,e,i)},a.resumeAll=function(t,e,i){f(!1,t,e,i)},a.globalTimeScale=function(e){var r=t._rootTimeline,n=i.ticker.time;return arguments.length?(e=e||o,r._startTime=n-(n-r._startTime)*r._timeScale/e,r=t._rootFramesTimeline,n=i.ticker.frame,r._startTime=n-(n-r._startTime)*r._timeScale/e,r._timeScale=t._rootTimeline._timeScale=e,e):r._timeScale},c.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(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){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var i=this._duration,r=this._cycle,n=r*(i+this._repeatDelay);return t>i&&(t=i),this.totalTime(this._yoyo&&1&r?i-t+n:this._repeat?t+n:t,e)},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},a},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var r=function(t){e.call(this,t);var i,r,n=this,s=n.vars;for(r in n._labels={},n.autoRemoveChildren=!!s.autoRemoveChildren,n.smoothChildTiming=!!s.smoothChildTiming,n._sortChildren=!0,n._onUpdate=s.onUpdate,s)i=s[r],l(i)&&-1!==i.join("").indexOf("{self}")&&(s[r]=n._swapSelfInParams(i));l(s.tweens)&&n.add(s.tweens,0,s.align,s.stagger)},n=1e-8,s=i._internals,a=r._internals={},o=s.isSelector,l=s.isArray,A=s.lazyTweens,h=s.lazyRender,c=_gsScope._gsDefine.globals,p=function(t){var e,i={};for(e in t)i[e]=t[e];return i},d=function(t,e,i){var r,n,s=t.cycle;for(r in s)n=s[r],t[r]="function"==typeof n?n(i,e[i],e):n[i%n.length];delete t.cycle},u=a.pauseCallback=function(){},f=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i},m=function(t,e,i,r){var n="immediateRender";return n in e||(e[n]=!(i&&!1===i[n]||r)),e},g=function(t){if("function"==typeof t)return t;var e="object"==typeof t?t:{each:t},i=e.ease,r=e.from||0,n=e.base||0,s={},a=isNaN(r),o=e.axis,l={center:.5,end:1}[r]||0;return function(t,A,h){var c,p,d,u,f,m,g,y,v,E=(h||e).length,C=s[E];if(!C){if(v="auto"===e.grid?0:(e.grid||[1/0])[0],!v){for(g=-1/0;g<(g=h[v++].getBoundingClientRect().left)&&E>v;);v--}for(C=s[E]=[],c=a?Math.min(v,E)*l-.5:r%v,p=a?E*l/v-.5:r/v|0,g=0,y=1/0,m=0;E>m;m++)d=m%v-c,u=p-(m/v|0),C[m]=f=o?Math.abs("y"===o?u:d):Math.sqrt(d*d+u*u),f>g&&(g=f),y>f&&(y=f);C.max=g-y,C.min=y,C.v=E=e.amount||e.each*(v>E?E:o?"y"===o?E/v:v:Math.max(v,E/v))||0,C.b=0>E?n-E:n}return E=(C[t]-C.min)/C.max,C.b+(i?i.getRatio(E):E)*C.v}},y=r.prototype=new e;return r.version="2.1.2",r.distribute=g,y.constructor=r,y.kill()._gc=y._forcingPlayhead=y._hasPause=!1,y.to=function(t,e,r,n){var s=r.repeat&&c.TweenMax||i;return e?this.add(new s(t,e,r),n):this.set(t,r,n)},y.from=function(t,e,r,n){return this.add((r.repeat&&c.TweenMax||i).from(t,e,m(this,r)),n)},y.fromTo=function(t,e,r,n,s){var a=n.repeat&&c.TweenMax||i;return n=m(this,n,r),e?this.add(a.fromTo(t,e,r,n),s):this.set(t,n,s)},y.staggerTo=function(t,e,n,s,a,l,A,h){var c,u,m=new r({onComplete:l,onCompleteParams:A,callbackScope:h,smoothChildTiming:this.smoothChildTiming}),y=g(n.stagger||s),v=n.startAt,E=n.cycle;for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],o(t)&&(t=f(t)),u=0;us&&(n=1),l.add(a,s)),a=o;return A.add(l,0),n&&l.totalDuration(),l},y.add=function(n,s,a,o){var A,h,c,p,d,u,f=this;if("number"!=typeof s&&(s=f._parseTimeOrLabel(s,0,!0,n)),!(n instanceof t)){if(n instanceof Array||n&&n.push&&l(n)){for(a=a||"normal",o=o||0,A=s,h=n.length,c=0;h>c;c++)l(p=n[c])&&(p=new r({tweens:p})),f.add(p,A),"string"!=typeof p&&"function"!=typeof p&&("sequence"===a?A=p._startTime+p.totalDuration()/p._timeScale:"start"===a&&(p._startTime-=p.delay())),A+=o;return f._uncache(!0)}if("string"==typeof n)return f.addLabel(n,s);if("function"!=typeof n)throw"Cannot add "+n+" into the timeline; it is not a tween, timeline, function, or string.";n=i.delayedCall(0,n)}if(e.prototype.add.call(f,n,s),(n._time||!n._duration&&n._initted)&&(A=(f.rawTime()-n._startTime)*n._timeScale,(!n._duration||Math.abs(Math.max(0,Math.min(n.totalDuration(),A)))-n._totalTime>1e-5)&&n.render(A,!1,!1)),(f._gc||f._time===f._duration)&&!f._paused&&f._durationn._startTime;d._timeline;)u&&d._timeline.smoothChildTiming?d.totalTime(d._totalTime,!0):d._gc&&d._enabled(!0,!1),d=d._timeline;return f},y.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 r=e.length;--r>-1;)this.remove(e[r]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},y._remove=function(t,i){e.prototype._remove.call(this,t,i);var r=this._last;return r?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},y.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},y.insert=y.insertMultiple=function(t,e,i,r){return this.add(t,e||0,i,r)},y.appendMultiple=function(t,e,i,r){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,r)},y.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},y.addPause=function(t,e,r,n){var s=i.delayedCall(0,u,r,n||this);return s.vars.onComplete=s.vars.onReverseComplete=e,s.data="isPause",this._hasPause=!0,this.add(s,t)},y.removeLabel=function(t){return delete this._labels[t],this},y.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},y._parseTimeOrLabel=function(e,i,r,n){var s,a;if(n instanceof t&&n.timeline===this)this.remove(n);else if(n&&(n instanceof Array||n.push&&l(n)))for(a=n.length;--a>-1;)n[a]instanceof t&&n[a].timeline===this&&this.remove(n[a]);if(s="number"!=typeof e||i?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,"string"==typeof i)return this._parseTimeOrLabel(i,r&&"number"==typeof e&&null==this._labels[i]?e-s:0,r);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=s);else{if(a=e.indexOf("="),-1===a)return null==this._labels[e]?r?this._labels[e]=s+i:i:this._labels[e]+i;i=parseInt(e.charAt(a-1)+"1",10)*Number(e.substr(a+1)),e=a>1?this._parseTimeOrLabel(e.substr(0,a-1),0,r):s}return Number(e)+i},y.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},y.stop=function(){return this.paused(!0)},y.gotoAndPlay=function(t,e){return this.play(t,e)},y.gotoAndStop=function(t,e){return this.pause(t,e)},y.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,s,a,o,l,c,p,d,u=this,f=u._time,m=u._dirty?u.totalDuration():u._totalDuration,g=u._startTime,y=u._timeScale,v=u._paused;if(f!==u._time&&(t+=u._time-f),t>=m-n&&t>=0)u._totalTime=u._time=m,u._reversed||u._hasPausedChild()||(s=!0,o="onComplete",l=!!u._timeline.autoRemoveChildren,0===u._duration&&(0>=t&&t>=-n||u._rawPrevTime<0||u._rawPrevTime===n)&&u._rawPrevTime!==t&&u._first&&(l=!0,u._rawPrevTime>n&&(o="onReverseComplete"))),u._rawPrevTime=u._duration||!e||t||u._rawPrevTime===t?t:n,t=m+1e-4;else if(n>t)if(u._totalTime=u._time=0,t>-n&&(t=0),(0!==f||0===u._duration&&u._rawPrevTime!==n&&(u._rawPrevTime>0||0>t&&u._rawPrevTime>=0))&&(o="onReverseComplete",s=u._reversed),0>t)u._active=!1,u._timeline.autoRemoveChildren&&u._reversed?(l=s=!0,o="onReverseComplete"):u._rawPrevTime>=0&&u._first&&(l=!0),u._rawPrevTime=t;else{if(u._rawPrevTime=u._duration||!e||t||u._rawPrevTime===t?t:n,0===t&&s)for(r=u._first;r&&0===r._startTime;)r._duration||(s=!1),r=r._next;t=0,u._initted||(l=!0)}else{if(u._hasPause&&!u._forcingPlayhead&&!e){if(t>=f)for(r=u._first;r&&r._startTime<=t&&!c;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===u._rawPrevTime||(c=r),r=r._next;else for(r=u._last;r&&r._startTime>=t&&!c;)r._duration||"isPause"===r.data&&r._rawPrevTime>0&&(c=r),r=r._prev;c&&(u._time=u._totalTime=t=c._startTime,d=u._startTime+t/u._timeScale)}u._totalTime=u._time=u._rawPrevTime=t}if(u._time!==f&&u._first||i||l||c){if(u._initted||(u._initted=!0),u._active||!u._paused&&u._time!==f&&t>0&&(u._active=!0),0===f&&u.vars.onStart&&(0===u._time&&u._duration||e||u._callback("onStart")),p=u._time,p>=f)for(r=u._first;r&&(a=r._next,p===u._time&&(!u._paused||v));)(r._active||r._startTime<=p&&!r._paused&&!r._gc)&&(c===r&&(u.pause(),u._pauseTime=d),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=a;else for(r=u._last;r&&(a=r._prev,p===u._time&&(!u._paused||v));){if(r._active||r._startTime<=f&&!r._paused&&!r._gc){if(c===r){for(c=r._prev;c&&c.endTime()>u._time;)c.render(c._reversed?c.totalDuration()-(t-c._startTime)*c._timeScale:(t-c._startTime)*c._timeScale,e,i),c=c._prev;c=null,u.pause(),u._pauseTime=d}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=a}u._onUpdate&&(e||(A.length&&h(),u._callback("onUpdate"))),o&&(u._gc||(g===u._startTime||y!==u._timeScale)&&(0===u._time||m>=u.totalDuration())&&(s&&(A.length&&h(),u._timeline.autoRemoveChildren&&u._enabled(!1,!1),u._active=!1),!e&&u.vars[o]&&u._callback(o)))}},y._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof r&&t._hasPausedChild())return!0;t=t._next}return!1},y.getChildren=function(t,e,r,n){n=n||-9999999999;for(var s=[],a=this._first,o=0;a;)a._startTime-1;)(r[n].timeline===this||e&&this._contains(r[n]))&&(a[o++]=r[n]);return s&&this._enabled(!1,!0),a},y.recent=function(){return this._recent},y._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},y.shiftChildren=function(t,e,i){i=i||0;for(var r,n=this._first,s=this._labels;n;)n._startTime>=i&&(n._startTime+=t),n=n._next;if(e)for(r in s)s[r]>=i&&(s[r]+=t);return this._uncache(!0)},y._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),r=i.length,n=!1;--r>-1;)i[r]._kill(t,e)&&(n=!0);return n},y.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},y.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},y._enabled=function(t,i){if(t===this._gc)for(var r=this._first;r;)r._enabled(t,!0),r=r._next;return e.prototype._enabled.call(this,t,i)},y.totalTime=function(e,i,r){this._forcingPlayhead=!0;var n=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,n},y.duration=function(t){ return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},y.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,r=0,n=this,s=n._last,a=999999999999;s;)e=s._prev,s._dirty&&s.totalDuration(),s._startTime>a&&n._sortChildren&&!s._paused&&!n._calculatingDuration?(n._calculatingDuration=1,n.add(s,s._startTime-s._delay),n._calculatingDuration=0):a=s._startTime,s._startTime<0&&!s._paused&&(r-=s._startTime,n._timeline.smoothChildTiming&&(n._startTime+=s._startTime/n._timeScale,n._time-=s._startTime,n._totalTime-=s._startTime,n._rawPrevTime-=s._startTime),n.shiftChildren(-s._startTime,!1,-9999999999),a=0),i=s._startTime+s._totalDuration/s._timeScale,i>r&&(r=i),s=e;n._duration=n._totalDuration=r,n._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},y.paused=function(e){if(!1===e&&this._paused)for(var i=this._first;i;)i._startTime===this._time&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},y.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},y.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},r},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,e,i){var r=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0},n=1e-8,s=e._internals,a=s.lazyTweens,o=s.lazyRender,l=_gsScope._gsDefine.globals,A=new i(null,null,1,0),h=r.prototype=new t;return h.constructor=r,h.kill()._gc=!1,r.version="2.1.2",h.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},h.addCallback=function(t,i,r,n){return this.add(e.delayedCall(0,t,r,n),i)},h.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),r=i.length,n=this._parseTimeOrLabel(e);--r>-1;)i[r]._startTime===n&&i[r]._enabled(!1,!1);return this},h.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},h.tweenTo=function(t,i){i=i||{};var r,n,s,a={ease:A,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},o=i.repeat&&l.TweenMax||e;for(n in i)a[n]=i[n];return a.time=this._parseTimeOrLabel(t),r=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,s=new o(this,r,a),a.onStart=function(){s.target.paused(!0),s.vars.time===s.target.time()||r!==s.duration()||s.isFromTo||s.duration(Math.abs(s.vars.time-s.target.time())/s.target._timeScale).render(s.time(),!0,!0),i.onStart&&i.onStart.apply(i.onStartScope||i.callbackScope||s,i.onStartParams||[])},s},h.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 r=this.tweenTo(e,i);return r.isFromTo=1,r.duration(Math.abs(r.vars.time-t)/this._timeScale||.001)},h.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,s,l,A,h,c,p,d,u,f=this,m=f._time,g=f._dirty?f.totalDuration():f._totalDuration,y=f._duration,v=f._totalTime,E=f._startTime,C=f._timeScale,b=f._rawPrevTime,_=f._paused,w=f._cycle;if(m!==f._time&&(t+=f._time-m),t>=g-n&&t>=0)f._locked||(f._totalTime=g,f._cycle=f._repeat),f._reversed||f._hasPausedChild()||(s=!0,A="onComplete",h=!!f._timeline.autoRemoveChildren,0===f._duration&&(0>=t&&t>=-n||0>b||b===n)&&b!==t&&f._first&&(h=!0,b>n&&(A="onReverseComplete"))),f._rawPrevTime=f._duration||!e||t||f._rawPrevTime===t?t:n,f._yoyo&&1&f._cycle?f._time=t=0:(f._time=y,t=y+1e-4);else if(n>t)if(f._locked||(f._totalTime=f._cycle=0),f._time=0,t>-n&&(t=0),(0!==m||0===y&&b!==n&&(b>0||0>t&&b>=0)&&!f._locked)&&(A="onReverseComplete",s=f._reversed),0>t)f._active=!1,f._timeline.autoRemoveChildren&&f._reversed?(h=s=!0,A="onReverseComplete"):b>=0&&f._first&&(h=!0),f._rawPrevTime=t;else{if(f._rawPrevTime=y||!e||t||f._rawPrevTime===t?t:n,0===t&&s)for(r=f._first;r&&0===r._startTime;)r._duration||(s=!1),r=r._next;t=0,f._initted||(h=!0)}else if(0===y&&0>b&&(h=!0),f._time=f._rawPrevTime=t,f._locked||(f._totalTime=t,0!==f._repeat&&(c=y+f._repeatDelay,f._cycle=f._totalTime/c>>0,f._cycle&&f._cycle===f._totalTime/c&&t>=v&&f._cycle--,f._time=f._totalTime-f._cycle*c,f._yoyo&&1&f._cycle&&(f._time=y-f._time),f._time>y?(f._time=y,t=y+1e-4):f._time<0?f._time=t=0:t=f._time)),f._hasPause&&!f._forcingPlayhead&&!e){if(t=f._time,t>=m||f._repeat&&w!==f._cycle)for(r=f._first;r&&r._startTime<=t&&!p;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===f._rawPrevTime||(p=r),r=r._next;else for(r=f._last;r&&r._startTime>=t&&!p;)r._duration||"isPause"===r.data&&r._rawPrevTime>0&&(p=r),r=r._prev;p&&(u=f._startTime+p._startTime/f._timeScale,p._startTime0&&(f._active=!0),0===v&&f.vars.onStart&&(0===f._totalTime&&f._totalDuration||e||f._callback("onStart")),d=f._time,d>=m)for(r=f._first;r&&(l=r._next,d===f._time&&(!f._paused||_));)(r._active||r._startTime<=f._time&&!r._paused&&!r._gc)&&(p===r&&(f.pause(),f._pauseTime=u),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=l;else for(r=f._last;r&&(l=r._prev,d===f._time&&(!f._paused||_));){if(r._active||r._startTime<=m&&!r._paused&&!r._gc){if(p===r){for(p=r._prev;p&&p.endTime()>f._time;)p.render(p._reversed?p.totalDuration()-(t-p._startTime)*p._timeScale:(t-p._startTime)*p._timeScale,e,i),p=p._prev;p=null,f.pause(),f._pauseTime=u}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=l}f._onUpdate&&(e||(a.length&&o(),f._callback("onUpdate"))),A&&(f._locked||f._gc||(E===f._startTime||C!==f._timeScale)&&(0===f._time||g>=f.totalDuration())&&(s&&(a.length&&o(),f._timeline.autoRemoveChildren&&f._enabled(!1,!1),f._active=!1),!e&&f.vars[A]&&f._callback(A)))}else v!==f._totalTime&&f._onUpdate&&(e||f._callback("onUpdate"))},h.getActive=function(t,e,i){var r,n,s=[],a=this.getChildren(t||null==t,e||null==t,!!i),o=0,l=a.length;for(r=0;l>r;r++)n=a[r],n.isActive()&&(s[o++]=n);return s},h.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),r=i.length;for(e=0;r>e;e++)if(i[e].time>t)return i[e].name;return null},h.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;--i>-1;)if(e[i].timei&&(t=i),this.totalTime(this._yoyo&&1&r?i-t+n:this._repeat?t+n:t,e)},h.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},h.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},h.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},h.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+n)},r},!0),t=180/Math.PI,e=[],i=[],r=[],n={},s=_gsScope._gsDefine.globals,a=function(t,e,i,r){i===r&&(i=r-(r-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=r,this.da=r-t,this.ca=i-t,this.ba=e-t},o=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",l=function(t,e,i,r){var n={a:t},s={},a={},o={c:r},l=(t+e)/2,A=(e+i)/2,h=(i+r)/2,c=(l+A)/2,p=(A+h)/2,d=(p-c)/8;return n.b=l+(t-l)/4,s.b=c+d,n.c=s.a=(n.b+s.b)/2,s.c=a.a=(c+p)/2,a.b=p-d,o.b=h+(r-h)/4,a.c=o.a=(a.b+o.b)/2,[n,s,a,o]},A=function(t,n,s,a,o){var A,h,c,p,d,u,f,m,g,y,v,E,C,b=t.length-1,_=0,w=t[0].a;for(A=0;b>A;A++)d=t[_],h=d.a,c=d.d,p=t[_+1].d,o?(v=e[A],E=i[A],C=(E+v)*n*.25/(a?.5:r[A]||.5),u=c-(c-h)*(a?.5*n:0!==v?C/v:0),f=c+(p-c)*(a?.5*n:0!==E?C/E:0),m=c-(u+((f-u)*(3*v/(v+E)+.5)/4||0))):(u=c-(c-h)*n*.5,f=c+(p-c)*n*.5,m=c-(u+f)/2),u+=m,f+=m,d.c=g=u,d.b=0!==A?w:w=d.a+.6*(d.c-d.a),d.da=c-h,d.ca=g-h,d.ba=w-h,s?(y=l(h,w,g,c),t.splice(_,1,y[0],y[1],y[2],y[3]),_+=4):_++,w=f;d=t[_],d.b=w,d.c=w+.4*(d.d-w),d.da=d.d-d.a,d.ca=d.c-d.a,d.ba=w-d.a,s&&(y=l(d.a,w,d.c,d.d),t.splice(_,1,y[0],y[1],y[2],y[3]))},h=function(t,r,n,s){var o,l,A,h,c,p,d=[];if(s)for(t=[s].concat(t),l=t.length;--l>-1;)"string"==typeof(p=t[l][r])&&"="===p.charAt(1)&&(t[l][r]=s[r]+Number(p.charAt(0)+p.substr(2)));if(o=t.length-2,0>o)return d[0]=new a(t[0][r],0,0,t[0][r]),d;for(l=0;o>l;l++)A=t[l][r],h=t[l+1][r],d[l]=new a(A,0,0,h),n&&(c=t[l+2][r],e[l]=(e[l]||0)+(h-A)*(h-A),i[l]=(i[l]||0)+(c-h)*(c-h));return d[l]=new a(t[l][r],0,0,t[l+1][r]),d},c=function(t,s,a,l,c,p){var d,u,f,m,g,y,v,E,C={},b=[],_=p||t[0];for(u in c="string"==typeof c?","+c+",":o,null==s&&(s=1),t[0])b.push(u);if(t.length>1){for(E=t[t.length-1],v=!0,d=b.length;--d>-1;)if(u=b[d],Math.abs(_[u]-E[u])>.05){v=!1;break}v&&(t=t.concat(),p&&t.unshift(p),t.push(t[1]),p=t[t.length-3])}for(e.length=i.length=r.length=0,d=b.length;--d>-1;)u=b[d],n[u]=-1!==c.indexOf(","+u+","),C[u]=h(t,u,n[u],p);for(d=e.length;--d>-1;)e[d]=Math.sqrt(e[d]),i[d]=Math.sqrt(i[d]);if(!l){for(d=b.length;--d>-1;)if(n[u])for(f=C[b[d]],y=f.length-1,m=0;y>m;m++)g=f[m+1].da/i[m]+f[m].da/e[m]||0,r[m]=(r[m]||0)+g*g;for(d=r.length;--d>-1;)r[d]=Math.sqrt(r[d])}for(d=b.length,m=a?4:1;--d>-1;)u=b[d],f=C[u],A(f,s,a,l,n[u]),v&&(f.splice(0,m),f.splice(f.length-m,m));return C},p=function(t,e,i){e=e||"soft";var r,n,s,o,l,A,h,c,p,d,u,f={},m="cubic"===e?3:2,g="soft"===e,y=[];if(g&&i&&(t=[i].concat(t)),null==t||t.length-1;){for(p=y[A],f[p]=l=[],d=0,c=t.length,h=0;c>h;h++)r=null==i?t[h][p]:"string"==typeof(u=t[h][p])&&"="===u.charAt(1)?i[p]+Number(u.charAt(0)+u.substr(2)):Number(u),g&&h>1&&c-1>h&&(l[d++]=(r+l[d-2])/2),l[d++]=r;for(c=d-m+1,d=0,h=0;c>h;h+=m)r=l[h],n=l[h+1],s=l[h+2],o=2===m?0:l[h+3],l[d++]=u=3===m?new a(r,n,s,o):new a(r,(2*n+r)/3,(2*n+s)/3,s);l.length=d}return f},d=function(t,e,i){for(var r,n,s,a,o,l,A,h,c,p,d,u=1/i,f=t.length;--f>-1;)for(p=t[f],s=p.a,a=p.d-s,o=p.c-s,l=p.b-s,r=n=0,h=1;i>=h;h++)A=u*h,c=1-A,r=n-(n=(A*A*a+3*c*(A*o+c*l))*A),d=f*i+h-1,e[d]=(e[d]||0)+r*r},u=function(t,e){e=e>>0||6;var i,r,n,s,a=[],o=[],l=0,A=0,h=e-1,c=[],p=[];for(i in t)d(t[i],a,e);for(n=a.length,r=0;n>r;r++)l+=Math.sqrt(a[r]),s=r%e,p[s]=l,s===h&&(A+=l,s=r/e>>0,c[s]=p,o[s]=A,l=0,p=[]);return{length:A,lengths:o,segments:c}},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 r,n,s,a,o,l=e.values||[],A={},h=l[0],d=e.autoRotate||i.vars.orientToBezier;for(r in this._autoRotate=d?d instanceof Array?d:[["x","y","rotation",!0===d?0:Number(d)||0]]:null,h)this._props.push(r);for(s=this._props.length;--s>-1;)r=this._props[s],this._overwriteProps.push(r),n=this._func[r]="function"==typeof t[r],A[r]=n?t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]():parseFloat(t[r]),o||A[r]!==l[0][r]&&(o=A);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,o):p(l,e.type,A),this._segCount=this._beziers[r].length,this._timeRes){var f=u(this._beziers,this._timeRes);this._length=f.length,this._lengths=f.lengths,this._segments=f.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(d=this._autoRotate)for(this._initialRotations=[],d[0]instanceof Array||(this._autoRotate=d=[d]),s=d.length;--s>-1;){for(a=0;3>a;a++)r=d[s][a],this._func[r]="function"==typeof t[r]&&t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)];r=d[s][2],this._initialRotations[s]=(this._func[r]?this._func[r].call(this._target):this._target[r])||0,this._overwriteProps.push(r)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(e){var i,r,n,s,a,o,l,A,h,c,p=this._segCount,d=this._func,u=this._target,f=e!==this._startRatio;if(this._timeRes){if(h=this._lengths,c=this._curSeg,e*=this._length,n=this._li,e>this._l2&&p-1>n){for(A=p-1;A>n&&(this._l2=h[++n])<=e;);this._l1=h[n-1],this._li=n,this._curSeg=c=this._segments[n],this._s2=c[this._s1=this._si=0]}else if(e0){for(;n>0&&(this._l1=h[--n])>=e;);0===n&&ethis._s2&&nn&&(this._s2=c[++n])<=e;);this._s1=c[n-1],this._si=n}else if(e0){for(;n>0&&(this._s1=c[--n])>=e;);0===n&&ee?0:e>=1?p-1:p*e>>0,o=(e-i*(1/p))*p;for(r=1-o,n=this._props.length;--n>-1;)s=this._props[n],a=this._beziers[s][i],l=(o*o*a.da+3*r*(o*a.ca+r*a.ba))*o+a.a,this._mod[s]&&(l=this._mod[s](l,u)),d[s]?u[s](l):u[s]=l;if(this._autoRotate){var m,g,y,v,E,C,b,_=this._autoRotate;for(n=_.length;--n>-1;)s=_[n][2],C=_[n][3]||0,b=!0===_[n][4]?1:t,a=this._beziers[_[n][0]],m=this._beziers[_[n][1]],a&&m&&(a=a[i],m=m[i],g=a.a+(a.b-a.a)*o,v=a.b+(a.c-a.b)*o,g+=(v-g)*o,v+=(a.c+(a.d-a.c)*o-v)*o,y=m.a+(m.b-m.a)*o,E=m.b+(m.c-m.b)*o,y+=(E-y)*o,E+=(m.c+(m.d-m.c)*o-E)*o,l=f?Math.atan2(E-y,v-g)*b+C:this._initialRotations[n],this._mod[s]&&(l=this._mod[s](l,u)),d[s]?u[s](l):u[s]=l)}}}),m=f.prototype,f.bezierThrough=c,f.cubicToQuadratic=l,f._autoCSS=!0,f.quadraticToCubic=function(t,e,i){return new a(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,r=e._setPluginRatio,n=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,s,a,o,l){e instanceof Array&&(e={values:e}),l=new f;var A,h,c,p=e.values,d=p.length-1,u=[],m={};if(0>d)return o;for(A=0;d>=A;A++)c=i(t,p[A],a,o,l,d!==A),u[A]=c.end;for(h in e)m[h]=e[h];return m.values=u,o=new n(t,"bezier",0,0,c.pt,2),o.data=c,o.plugin=l,o.setRatio=r,0===m.autoRotate&&(m.autoRotate=!0),!m.autoRotate||m.autoRotate instanceof Array||(A=!0===m.autoRotate?0:Number(m.autoRotate),m.autoRotate=null!=c.end.left?[["left","top","rotation",A,!1]]:null!=c.end.x&&[["x","y","rotation",A,!1]]),m.autoRotate&&(a._transform||a._enableTransforms(!1),c.autoRotate=a._target._gsTransform,c.proxy.rotation=c.autoRotate.rotation||0,a._overwriteProps.push("rotation")),l._onInitTween(c.proxy,m,a._tween),o}})}},m._mod=function(t){for(var e,i=this._overwriteProps,r=i.length;--r>-1;)e=t[i[r]],e&&"function"==typeof e&&(this._mod[i[r]]=e)},m._kill=function(t){var e,i,r=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=r.length;--i>-1;)r[i]===e&&r.splice(i,1);if(r=this._autoRotate)for(i=r.length;--i>-1;)t[r[i][2]]&&r.splice(i,1);return this._super._kill.call(this,t)},_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,r,n,s,a=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=a.prototype.setRatio},o=_gsScope._gsDefine.globals,l={},A=a.prototype=new t("css");A.constructor=a,a.version="2.1.0",a.API=2,a.defaultTransformPerspective=0,a.defaultSkewType="compensated",a.defaultSmoothOrigin=!0,A="px",a.suffixMap={top:A,right:A,bottom:A,left:A,width:A,height:A,fontSize:A,padding:A,margin:A,perspective:A,lineHeight:""};var h,c,p,d,u,f,m,g,y=/(?:\-|\.|\b)(\d|\.|e\-)+/g,v=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,E=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,C=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,b=/(?:\d|\-|\+|=|#|\.)*/g,_=/opacity *= *([^)]*)/i,w=/opacity:([^;]*)/i,I=/alpha\(opacity *=.+?\)/i,x=/^(rgb|hsl)/,S=/([A-Z])/g,B=/-([a-z])/gi,T=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,P=function(t,e){return e.toUpperCase()},k=/(?:Left|Right|Width)/i,M=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,D=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,Q=/,(?=[^\)]*(?:\(|$))/gi,F=/[\s,\(]/i,R=Math.PI/180,L=180/Math.PI,O={},N={style:{}},G=_gsScope.document||{createElement:function(){return N}},q=function(t,e){return e&&G.createElementNS?G.createElementNS(e,t):G.createElement(t)},H=q("div"),$=q("img"),z=a._internals={_specialProps:l},V=(_gsScope.navigator||{}).userAgent||"",j=function(){var t=V.indexOf("Android"),e=q("a");return p=-1!==V.indexOf("Safari")&&-1===V.indexOf("Chrome")&&(-1===t||parseFloat(V.substr(t+8,2))>3),u=p&&parseFloat(V.substr(V.indexOf("Version/")+8,2))<6,d=-1!==V.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(V)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(V))&&(f=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),U=function(t){return _.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},Y=function(t){_gsScope.console&&console.log(t)},J="",W="",X=function(t,e){e=e||H;var i,r,n=e.style;if(void 0!==n[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],r=5;--r>-1&&void 0===n[i[r]+t];);return r>=0?(W=3===r?"ms":i[r],J="-"+W.toLowerCase()+"-",W+t):null},K="undefined"!=typeof window?window:G.defaultView||{getComputedStyle:function(){}},Z=function(t){return K.getComputedStyle(t)},tt=a.getStyle=function(t,e,i,r,n){var s;return j||"opacity"!==e?(!r&&t.style[e]?s=t.style[e]:(i=i||Z(t))?s=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(S,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==n||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:n):U(t)},et=z.convertToPixels=function(t,i,r,n,s){if("px"===n||!n&&"lineHeight"!==i)return r;if("auto"===n||!r)return 0;var o,l,A,h=k.test(i),c=t,p=H.style,d=0>r,u=1===r;if(d&&(r=-r),u&&(r*=100),"lineHeight"!==i||n)if("%"===n&&-1!==i.indexOf("border"))o=r/100*(h?t.clientWidth:t.clientHeight);else{if(p.cssText="border:0 solid red;position:"+tt(t,"position")+";line-height:0;","%"!==n&&c.appendChild&&"v"!==n.charAt(0)&&"rem"!==n)p[h?"borderLeftWidth":"borderTopWidth"]=r+n;else{if(c=t.parentNode||G.body,-1!==tt(c,"display").indexOf("flex")&&(p.position="absolute"),l=c._gsCache,A=e.ticker.frame,l&&h&&l.time===A)return l.width*r/100;p[h?"width":"height"]=r+n}c.appendChild(H),o=parseFloat(H[h?"offsetWidth":"offsetHeight"]),c.removeChild(H),h&&"%"===n&&!1!==a.cacheWidths&&(l=c._gsCache=c._gsCache||{},l.time=A,l.width=o/r*100),0!==o||s||(o=et(t,i,r,n,!0))}else l=Z(t).lineHeight,t.style.lineHeight=r,o=parseFloat(Z(t).lineHeight),t.style.lineHeight=l;return u&&(o/=100),d?-o:o},it=z.calculateOffset=function(t,e,i){if("absolute"!==tt(t,"position",i))return 0;var r="left"===e?"Left":"Top",n=tt(t,"margin"+r,i);return t["offset"+r]-(et(t,e,parseFloat(n),n.replace(b,""))||0)},rt=function(t,e){var i,r,n,s={};if(e=e||Z(t,null))if(i=e.length)for(;--i>-1;)n=e[i],(-1===n.indexOf("-transform")||Pt===n)&&(s[n.replace(B,P)]=e.getPropertyValue(n));else for(i in e)(-1===i.indexOf("Transform")||Tt===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(B,P)]=e[i]);return j||(s.opacity=U(t)),r=zt(t,e,!1),s.rotation=r.rotation,s.skewX=r.skewX,s.scaleX=r.scaleX,s.scaleY=r.scaleY,s.x=r.x,s.y=r.y,Mt&&(s.z=r.z,s.rotationX=r.rotationX,s.rotationY=r.rotationY,s.scaleZ=r.scaleZ),s.filters&&delete s.filters,s},nt=function(t,e,i,r,n){var s,a,o,l={},A=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(s=i[a])||n&&n[a])&&-1===a.indexOf("Origin")&&("number"==typeof s||"string"==typeof s)&&(l[a]="auto"!==s||"left"!==a&&"top"!==a?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof e[a]||""===e[a].replace(C,"")?s:0:it(t,a),void 0!==A[a]&&(o=new vt(A,a,A[a],o)));if(r)for(a in r)"className"!==a&&(l[a]=r[a]);return{difs:l,firstMPT:o}},st={width:["Left","Right"],height:["Top","Bottom"]},at=["marginLeft","marginRight","marginTop","marginBottom"],ot=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||Z(t))[e]||0;if(t.getCTM&&qt(t))return t.getBBox()[e]||0;var r=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),n=st[e],s=n.length;for(i=i||Z(t,null);--s>-1;)r-=parseFloat(tt(t,"padding"+n[s],i,!0))||0,r-=parseFloat(tt(t,"border"+n[s]+"Width",i,!0))||0;return r},lt=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";(null==t||""===t)&&(t="0 0");var i,r=t.split(" "),n=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":r[0],s=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":r[1];if(r.length>3&&!e){for(r=t.split(", ").join(",").split(","),t=[],i=0;i2?" "+r[2]:""),e&&(e.oxp=-1!==n.indexOf("%"),e.oyp=-1!==s.indexOf("%"),e.oxr="="===n.charAt(1),e.oyr="="===s.charAt(1),e.ox=parseFloat(n.replace(C,"")),e.oy=parseFloat(s.replace(C,"")),e.v=t),e||t},At=function(t,e){return"function"==typeof t&&(t=t(g,m)),"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){"function"==typeof t&&(t=t(g,m));var i="string"==typeof t&&"="===t.charAt(1);return"string"==typeof t&&"v"===t.charAt(t.length-2)&&(t=(i?t.substr(0,2):0)+window["inner"+("vh"===t.substr(-2)?"Height":"Width")]*(parseFloat(i?t.substr(2):t)/100)),null==t?e:i?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},ct=function(t,e,i,r){var n,s,a,o,l,A=1e-6;return"function"==typeof t&&(t=t(g,m)),null==t?o=e:"number"==typeof t?o=t:(n=360,s=t.split("_"),l="="===t.charAt(1),a=(l?parseInt(t.charAt(0)+"1",10)*parseFloat(s[0].substr(2)):parseFloat(s[0]))*(-1===t.indexOf("rad")?1:L)-(l?0:e),s.length&&(r&&(r[i]=e+a),-1!==t.indexOf("short")&&(a%=n,a!==a%(n/2)&&(a=0>a?a+n:a-n)),-1!==t.indexOf("_cw")&&0>a?a=(a+9999999999*n)%n-(a/n|0)*n:-1!==t.indexOf("ccw")&&a>0&&(a=(a-9999999999*n)%n-(a/n|0)*n)),o=e+a),A>o&&o>-A&&(o=0),o},pt={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]},dt=function(t,e,i){return t=0>t?t+1:t>1?t-1:t,255*(1>6*t?e+(i-e)*t*6:.5>t?i:2>3*t?e+(i-e)*(2/3-t)*6:e)+.5|0},ut=a.parseColor=function(t,e){var i,r,n,s,a,o,l,A,h,c,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)),pt[t])i=pt[t];else if("#"===t.charAt(0))4===t.length&&(r=t.charAt(1),n=t.charAt(2),s=t.charAt(3),t="#"+r+r+n+n+s+s),t=parseInt(t.substr(1),16),i=[t>>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(v)}else a=Number(i[0])%360/360,o=Number(i[1])/100,l=Number(i[2])/100,n=.5>=l?l*(o+1):l+o-l*o,r=2*l-n,i.length>3&&(i[3]=Number(i[3])),i[0]=dt(a+1/3,r,n),i[1]=dt(a,r,n),i[2]=dt(a-1/3,r,n);else i=t.match(y)||pt.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=pt.black;return e&&!p&&(r=i[0]/255,n=i[1]/255,s=i[2]/255,A=Math.max(r,n,s),h=Math.min(r,n,s),l=(A+h)/2,A===h?a=o=0:(c=A-h,o=l>.5?c/(2-A-h):c/(A+h),a=A===r?(n-s)/c+(s>n?6:0):A===n?(s-r)/c+2:(r-n)/c+4,a*=60),i[0]=a+.5|0,i[1]=100*o+.5|0,i[2]=100*l+.5|0),i},ft=function(t,e){var i,r,n,s=t.match(mt)||[],a=0,o="";if(!s.length)return t;for(i=0;i0?a[0].replace(y,""):"";return h?n=e?function(t){var e,p,d,u;if("number"==typeof t)t+=c;else if(r&&Q.test(t)){for(u=t.replace(Q,"|").split("|"),d=0;dd--)for(;++dp--)for(;++pl;l++)o[t[l]]=A[l]=A[l]||A[(l-1)/2>>0];return n.parse(e,o,s,a)}},vt=(z._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,r,n,s,a=this.data,o=a.proxy,l=a.firstMPT,A=1e-6;l;)e=o[l.v],l.r?e=l.r(e):A>e&&e>-A&&(e=0),l.t[l.p]=e,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod.call(this._tween,o.rotation,this.t,this._tween):o.rotation),1===t||0===t)for(l=a.firstMPT,s=1===t?"e":"b";l;){if(i=l.t,i.type){if(1===i.type){for(n=i.xs0+i.s+i.xs1,r=1;r0;)l="xn"+a,o=r.p+"_"+l,d[o]=r.data[l],p[o]=r[l],s||(A=new vt(r,l,o,A,r.rxp[l]));r=r._next}return{proxy:p,end:d,firstMPT:A,pt:h}},z.CSSPropTween=function(t,e,r,n,a,o,l,A,h,c,p){this.t=t,this.p=e,this.s=r,this.c=n,this.n=l||e,t instanceof Et||s.push(this.n),this.r=A?"function"==typeof A?A:Math.round:A,this.type=o||0,h&&(this.pr=h,i=!0),this.b=void 0===c?r:c,this.e=void 0===p?r+n:p,a&&(this._next=a,a._prev=this)}),Ct=function(t,e,i,r,n,s){var a=new Et(t,e,i,r-i,n,-1,s);return a.b=i,a.e=a.xs0=r,a},bt=a.parseComplex=function(t,e,i,r,n,s,o,l,A,c){i=i||s||"","function"==typeof r&&(r=r(g,m)),o=new Et(t,e,0,0,o,c?2:1,null,!1,l,i,r),r+="",n&&mt.test(r+i)&&(r=[i,r],a.colorStringFilter(r),i=r[0],r=r[1]);var p,d,u,f,E,C,b,_,w,I,x,S,B,T=i.split(", ").join(",").split(" "),P=r.split(", ").join(",").split(" "),k=T.length,M=!1!==h;for((-1!==r.indexOf(",")||-1!==i.indexOf(","))&&(-1!==(r+i).indexOf("rgb")||-1!==(r+i).indexOf("hsl")?(T=T.join(" ").replace(Q,", ").split(" "),P=P.join(" ").replace(Q,", ").split(" ")):(T=T.join(" ").split(",").join(", ").split(" "),P=P.join(" ").split(",").join(", ").split(" ")),k=T.length),k!==P.length&&(T=(s||"").split(" "),k=T.length),o.plugin=A,o.setRatio=c,mt.lastIndex=0,p=0;k>p;p++)if(f=T[p],E=P[p]+"",_=parseFloat(f),_||0===_)o.appendXtra("",_,At(E,_),E.replace(v,""),!(!M||-1===E.indexOf("px"))&&Math.round,!0);else if(n&&mt.test(f))S=E.indexOf(")")+1,S=")"+(S?E.substr(S):""),B=-1!==E.indexOf("hsl")&&j,I=E,f=ut(f,B),E=ut(E,B),w=f.length+E.length>6,w&&!j&&0===E[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(P[p]).join("transparent")):(j||(w=!1),B?o.appendXtra(I.substr(0,I.indexOf("hsl"))+(w?"hsla(":"hsl("),f[0],At(E[0],f[0]),",",!1,!0).appendXtra("",f[1],At(E[1],f[1]),"%,",!1).appendXtra("",f[2],At(E[2],f[2]),w?"%,":"%"+S,!1):o.appendXtra(I.substr(0,I.indexOf("rgb"))+(w?"rgba(":"rgb("),f[0],E[0]-f[0],",",Math.round,!0).appendXtra("",f[1],E[1]-f[1],",",Math.round).appendXtra("",f[2],E[2]-f[2],w?",":S,Math.round),w&&(f=f.length<4?1:f[3],o.appendXtra("",f,(E.length<4?1:E[3])-f,S,!1))),mt.lastIndex=0;else if(C=f.match(y)){if(b=E.match(v),!b||b.length!==C.length)return o;for(u=0,d=0;d0;)A["xn"+_t]=0,A["xs"+_t]="";A.xs0="",A._next=A._prev=A.xfirst=A.data=A.plugin=A.setRatio=A.rxp=null,A.appendXtra=function(t,e,i,r,n,s){var a=this,o=a.l;return a["xs"+o]+=s&&(o||a["xs"+o])?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=r||"",o>0?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=n,a["xn"+o]=e,a.plugin||(a.xfirst=new Et(a,"xn"+o,e,i,a.xfirst||a,0,a.n,n,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=n,a)):(a["xs"+o]+=e+(r||""),a)};var wt=function(t,e){e=e||{},this.p=e.prefix&&X(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.allowFunc=e.allowFunc,this.pr=e.priority||0},It=z._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var r,n=t.split(","),s=e.defaultValue;for(i=i||[s],r=0;ro.length?l.length:o.length,a=0;A>a;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,p&&(h=e.indexOf(p),c=i.indexOf(p),h!==c&&(-1===c?o[a]=o[a].split(p).join(""):-1===h&&(o[a]+=" "+p)));e=o.join(", "),i=l.join(", ")}return bt(t,this.p,e,i,this.clrs,this.dflt,r,this.pr,n,s)},A.parse=function(t,e,i,r,s,a,o){return this.parseComplex(t.style,this.format(tt(t,this.p,n,!1,this.dflt)),this.format(e),s,a)},a.registerSpecialProp=function(t,e,i){It(t,{parser:function(t,r,n,s,a,o,l){var A=new Et(t,n,0,0,a,2,n,!1,i);return A.plugin=o,A.setRatio=e(t,r,s._tween,n),A},priority:i})},a.useSVGTransformAttr=!0;var St,Bt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Tt=X("transform"),Pt=J+"transform",kt=X("transformOrigin"),Mt=null!==X("perspective"),Dt=z.Transform=function(){this.perspective=parseFloat(a.defaultTransformPerspective)||0,this.force3D=!(!1===a.defaultForce3D||!Mt)&&(a.defaultForce3D||"auto")},Qt=_gsScope.SVGElement,Ft=function(t,e,i){var r,n=G.createElementNS("http://www.w3.org/2000/svg",t),s=/([a-z])([A-Z])/g;for(r in i)n.setAttributeNS(null,r.replace(s,"$1-$2").toLowerCase(),i[r]);return e.appendChild(n),n},Rt=G.documentElement||{},Lt=function(){var t,e,i,r=f||/Android/i.test(V)&&!_gsScope.chrome;return G.createElementNS&&!r&&(t=Ft("svg",Rt),e=Ft("rect",t,{width:100,height:50,x:100}),i=e.getBoundingClientRect().width,e.style[kt]="50% 50%",e.style[Tt]="scaleX(0.5)",r=i===e.getBoundingClientRect().width&&!(d&&Mt),Rt.removeChild(t)),r}(),Ot=function(t,e,i,r,n,s){var o,l,A,h,c,p,d,u,f,m,g,y,v,E,C=t._gsTransform,b=$t(t,!0);C&&(v=C.xOrigin,E=C.yOrigin),(!r||(o=r.split(" ")).length<2)&&(d=t.getBBox(),0===d.x&&0===d.y&&d.width+d.height===0&&(d={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}),e=lt(e).split(" "),o=[(-1!==e[0].indexOf("%")?parseFloat(e[0])/100*d.width:parseFloat(e[0]))+d.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*d.height:parseFloat(e[1]))+d.y]),i.xOrigin=h=parseFloat(o[0]),i.yOrigin=c=parseFloat(o[1]),r&&b!==Ht&&(p=b[0],d=b[1],u=b[2],f=b[3],m=b[4],g=b[5],y=p*f-d*u,y&&(l=h*(f/y)+c*(-u/y)+(u*g-f*m)/y,A=h*(-d/y)+c*(p/y)-(p*g-d*m)/y,h=i.xOrigin=o[0]=l,c=i.yOrigin=o[1]=A)),C&&(s&&(i.xOffset=C.xOffset,i.yOffset=C.yOffset,C=i),n||!1!==n&&!1!==a.defaultSmoothOrigin?(l=h-v,A=c-E,C.xOffset+=l*b[0]+A*b[2]-l,C.yOffset+=l*b[1]+A*b[3]-A):C.xOffset=C.yOffset=0),s||t.setAttribute("data-svg-origin",o.join(" "))},Nt=function(t){var e,i=q("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,n=this.nextSibling,s=this.style.cssText;if(Rt.appendChild(i),i.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Nt}catch(t){}else this._originalGetBBox&&(e=this._originalGetBBox());return n?r.insertBefore(this,n):r.appendChild(this),Rt.removeChild(i),this.style.cssText=s,e},Gt=function(t){try{return t.getBBox()}catch(e){return Nt.call(t,!0)}},qt=function(t){return!(!Qt||!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Gt(t))},Ht=[1,0,0,1,0,0],$t=function(t,e){var i,r,n,s,a,o,l,A=t._gsTransform||new Dt,h=1e5,c=t.style;if(Tt?r=tt(t,Pt,null,!0):t.currentStyle&&(r=t.currentStyle.filter.match(M),r=r&&4===r.length?[r[0].substr(4),Number(r[2].substr(4)),Number(r[1].substr(4)),r[3].substr(4),A.x||0,A.y||0].join(","):""),i=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,Tt&&i&&!t.offsetParent&&(s=c.display,c.display="block",l=t.parentNode,l&&t.offsetParent||(a=1,o=t.nextSibling,Rt.appendChild(t)),r=tt(t,Pt,null,!0),i=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,s?c.display=s:Yt(c,"display"),a&&(o?l.insertBefore(t,o):l?l.appendChild(t):Rt.removeChild(t))),(A.svg||t.getCTM&&qt(t))&&(i&&-1!==(c[Tt]+"").indexOf("matrix")&&(r=c[Tt],i=0),n=t.getAttribute("transform"),i&&n&&(n=t.transform.baseVal.consolidate().matrix,r="matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")",i=0)),i)return Ht;for(n=(r||"").match(y)||[],_t=n.length;--_t>-1;)s=Number(n[_t]),n[_t]=(a=s-(s|=0))?(a*h+(0>a?-.5:.5)|0)/h+s:s;return e&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n},zt=z.getTransform=function(t,i,r,n){if(t._gsTransform&&r&&!n)return t._gsTransform;var s,o,l,A,h,c,p=r&&t._gsTransform||new Dt,d=p.scaleX<0,u=2e-5,f=1e5,m=Mt&&(parseFloat(tt(t,kt,i,!1,"0 0 0").split(" ")[2])||p.zOrigin)||0,g=parseFloat(a.defaultTransformPerspective)||0;if(p.svg=!(!t.getCTM||!qt(t)),p.svg&&(Ot(t,tt(t,kt,i,!1,"50% 50%")+"",p,t.getAttribute("data-svg-origin")),St=a.useSVGTransformAttr||Lt),s=$t(t),s!==Ht){if(16===s.length){var y,v,E,C,b,_=s[0],w=s[1],I=s[2],x=s[3],S=s[4],B=s[5],T=s[6],P=s[7],k=s[8],M=s[9],D=s[10],Q=s[12],F=s[13],R=s[14],O=s[11],N=Math.atan2(T,D);p.zOrigin&&(R=-p.zOrigin,Q=k*R-s[12],F=M*R-s[13],R=D*R+p.zOrigin-s[14]),p.rotationX=N*L,N&&(C=Math.cos(-N),b=Math.sin(-N),y=S*C+k*b,v=B*C+M*b,E=T*C+D*b,k=S*-b+k*C,M=B*-b+M*C,D=T*-b+D*C,O=P*-b+O*C,S=y,B=v,T=E),N=Math.atan2(-I,D),p.rotationY=N*L,N&&(C=Math.cos(-N),b=Math.sin(-N),y=_*C-k*b,v=w*C-M*b,E=I*C-D*b,M=w*b+M*C,D=I*b+D*C,O=x*b+O*C,_=y,w=v,I=E),N=Math.atan2(w,_),p.rotation=N*L,N&&(C=Math.cos(N),b=Math.sin(N),y=_*C+w*b,v=S*C+B*b,E=k*C+M*b,w=w*C-_*b,B=B*C-S*b,M=M*C-k*b,_=y,S=v,k=E),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(S,B),p.scaleX=(Math.sqrt(_*_+w*w+I*I)*f+.5|0)/f,p.scaleY=(Math.sqrt(B*B+T*T)*f+.5|0)/f,p.scaleZ=(Math.sqrt(k*k+M*M+D*D)*f+.5|0)/f,_/=p.scaleX,S/=p.scaleY,w/=p.scaleX,B/=p.scaleY,Math.abs(N)>u?(p.skewX=N*L,S=0,"simple"!==p.skewType&&(p.scaleY*=1/Math.cos(N))):p.skewX=0,p.perspective=O?1/(0>O?-O:O):0,p.x=Q,p.y=F,p.z=R,p.svg&&(p.x-=p.xOrigin-(p.xOrigin*_-p.yOrigin*S),p.y-=p.yOrigin-(p.yOrigin*w-p.xOrigin*B))}else if(!Mt||n||!s.length||p.x!==s[4]||p.y!==s[5]||!p.rotationX&&!p.rotationY){var G=s.length>=6,q=G?s[0]:1,H=s[1]||0,$=s[2]||0,z=G?s[3]:1;p.x=s[4]||0,p.y=s[5]||0,l=Math.sqrt(q*q+H*H),A=Math.sqrt(z*z+$*$),h=q||H?Math.atan2(H,q)*L:p.rotation||0,c=$||z?Math.atan2($,z)*L+h:p.skewX||0,p.scaleX=l,p.scaleY=A,p.rotation=h,p.skewX=c,Mt&&(p.rotationX=p.rotationY=p.z=0,p.perspective=g,p.scaleZ=1),p.svg&&(p.x-=p.xOrigin-(p.xOrigin*q+p.yOrigin*$),p.y-=p.yOrigin-(p.xOrigin*H+p.yOrigin*z))}for(o in Math.abs(p.skewX)>90&&Math.abs(p.skewX)<270&&(d?(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=m,p)p[o]-u&&(p[o]=0)}return r&&(t._gsTransform=p,p.svg&&(St&&t.style[Tt]?e.delayedCall(.001,function(){Yt(t.style,Tt)}):!St&&t.getAttribute("transform")&&e.delayedCall(.001,function(){t.removeAttribute("transform")}))),p},Vt=function(t){var e,i,r=this.data,n=-r.rotation*R,s=n+r.skewX*R,a=1e5,o=(Math.cos(n)*r.scaleX*a|0)/a,l=(Math.sin(n)*r.scaleX*a|0)/a,A=(Math.sin(s)*-r.scaleY*a|0)/a,h=(Math.cos(s)*r.scaleY*a|0)/a,c=this.t.style,p=this.t.currentStyle;if(p){i=l,l=-A,A=-i,e=p.filter,c.filter="";var d,u,m=this.t.offsetWidth,g=this.t.offsetHeight,y="absolute"!==p.position,v="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+l+", M21="+A+", M22="+h,E=r.x+m*r.xPercent/100,C=r.y+g*r.yPercent/100;if(null!=r.ox&&(d=(r.oxp?m*r.ox*.01:r.ox)-m/2,u=(r.oyp?g*r.oy*.01:r.oy)-g/2,E+=d-(d*o+u*l),C+=u-(d*A+u*h)),y?(d=m/2,u=g/2,v+=", Dx="+(d-(d*o+u*l)+E)+", Dy="+(u-(d*A+u*h)+C)+")"):v+=", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?c.filter=e.replace(D,v):c.filter=v+" "+e,(0===t||1===t)&&1===o&&0===l&&0===A&&1===h&&(y&&-1===v.indexOf("Dx=0, Dy=0")||_.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&c.removeAttribute("filter")),!y){var w,I,x,S=8>f?1:-1;for(d=r.ieOffsetX||0,u=r.ieOffsetY||0,r.ieOffsetX=Math.round((m-((0>o?-o:o)*m+(0>l?-l:l)*g))/2+E),r.ieOffsetY=Math.round((g-((0>h?-h:h)*g+(0>A?-A:A)*m))/2+C),_t=0;4>_t;_t++)I=at[_t],w=p[I],i=-1!==w.indexOf("px")?parseFloat(w):et(this.t,I,parseFloat(w),w.replace(b,""))||0,x=i!==r[I]?2>_t?-r.ieOffsetX:-r.ieOffsetY:2>_t?d-r.ieOffsetX:u-r.ieOffsetY,c[I]=(r[I]=Math.round(i-x*(0===_t||2===_t?1:S)))+"px"}}},jt=z.set3DTransformRatio=z.setTransformRatio=function(t){var e,i,r,n,s,a,o,l,A,h,c,p,u,f,m,g,y,v,E,C,b,_,w,I=this.data,x=this.t.style,S=I.rotation,B=I.rotationX,T=I.rotationY,P=I.scaleX,k=I.scaleY,M=I.scaleZ,D=I.x,Q=I.y,F=I.z,L=I.svg,O=I.perspective,N=I.force3D,G=I.skewY,q=I.skewX;if(G&&(q+=G,S+=G),!((1!==t&&0!==t||"auto"!==N||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&N||F||O||T||B||1!==M)||St&&L||!Mt)S||q||L?(S*=R,_=q*R,w=1e5,i=Math.cos(S)*P,s=Math.sin(S)*P,r=Math.sin(S-_)*-k,a=Math.cos(S-_)*k,_&&"simple"===I.skewType&&(e=Math.tan(_-G*R),e=Math.sqrt(1+e*e),r*=e,a*=e,G&&(e=Math.tan(G*R),e=Math.sqrt(1+e*e),i*=e,s*=e)),L&&(D+=I.xOrigin-(I.xOrigin*i+I.yOrigin*r)+I.xOffset,Q+=I.yOrigin-(I.xOrigin*s+I.yOrigin*a)+I.yOffset,St&&(I.xPercent||I.yPercent)&&(m=this.t.getBBox(),D+=.01*I.xPercent*m.width,Q+=.01*I.yPercent*m.height),m=1e-6,m>D&&D>-m&&(D=0),m>Q&&Q>-m&&(Q=0)),E=(i*w|0)/w+","+(s*w|0)/w+","+(r*w|0)/w+","+(a*w|0)/w+","+D+","+Q+")",L&&St?this.t.setAttribute("transform","matrix("+E):x[Tt]=(I.xPercent||I.yPercent?"translate("+I.xPercent+"%,"+I.yPercent+"%) matrix(":"matrix(")+E):x[Tt]=(I.xPercent||I.yPercent?"translate("+I.xPercent+"%,"+I.yPercent+"%) matrix(":"matrix(")+P+",0,0,"+k+","+D+","+Q+")";else{if(d&&(m=1e-4,m>P&&P>-m&&(P=M=2e-5),m>k&&k>-m&&(k=M=2e-5),!O||I.z||I.rotationX||I.rotationY||(O=0)),S||q)S*=R,g=i=Math.cos(S),y=s=Math.sin(S),q&&(S-=q*R,g=Math.cos(S),y=Math.sin(S),"simple"===I.skewType&&(e=Math.tan((q-G)*R),e=Math.sqrt(1+e*e),g*=e,y*=e,I.skewY&&(e=Math.tan(G*R),e=Math.sqrt(1+e*e),i*=e,s*=e))),r=-y,a=g;else{if(!(T||B||1!==M||O||L))return void(x[Tt]=(I.xPercent||I.yPercent?"translate("+I.xPercent+"%,"+I.yPercent+"%) translate3d(":"translate3d(")+D+"px,"+Q+"px,"+F+"px)"+(1!==P||1!==k?" scale("+P+","+k+")":""));i=a=1,r=s=0}h=1,n=o=l=A=c=p=0,u=O?-1/O:0,f=I.zOrigin,m=1e-6,C=",",b="0",S=T*R,S&&(g=Math.cos(S),y=Math.sin(S),l=-y,c=u*-y,n=i*y,o=s*y,h=g,u*=g,i*=g,s*=g),S=B*R,S&&(g=Math.cos(S),y=Math.sin(S),e=r*g+n*y,v=a*g+o*y,A=h*y,p=u*y,n=r*-y+n*g,o=a*-y+o*g,h*=g,u*=g,r=e,a=v),1!==M&&(n*=M,o*=M,h*=M,u*=M),1!==k&&(r*=k,a*=k,A*=k,p*=k),1!==P&&(i*=P,s*=P,l*=P,c*=P),(f||L)&&(f&&(D+=n*-f,Q+=o*-f,F+=h*-f+f),L&&(D+=I.xOrigin-(I.xOrigin*i+I.yOrigin*r)+I.xOffset,Q+=I.yOrigin-(I.xOrigin*s+I.yOrigin*a)+I.yOffset),m>D&&D>-m&&(D=b),m>Q&&Q>-m&&(Q=b),m>F&&F>-m&&(F=0)),E=I.xPercent||I.yPercent?"translate("+I.xPercent+"%,"+I.yPercent+"%) matrix3d(":"matrix3d(",E+=(m>i&&i>-m?b:i)+C+(m>s&&s>-m?b:s)+C+(m>l&&l>-m?b:l),E+=C+(m>c&&c>-m?b:c)+C+(m>r&&r>-m?b:r)+C+(m>a&&a>-m?b:a),B||T||1!==M?(E+=C+(m>A&&A>-m?b:A)+C+(m>p&&p>-m?b:p)+C+(m>n&&n>-m?b:n),E+=C+(m>o&&o>-m?b:o)+C+(m>h&&h>-m?b:h)+C+(m>u&&u>-m?b:u)+C):E+=",0,0,0,0,1,0,",E+=D+C+Q+C+F+C+(O?1+-F/O:1)+")",x[Tt]=E}};A=Dt.prototype,A.x=A.y=A.z=A.skewX=A.skewY=A.rotation=A.rotationX=A.rotationY=A.zOrigin=A.xPercent=A.yPercent=A.xOffset=A.yOffset=0,A.scaleX=A.scaleY=A.scaleZ=1,It("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,r,s,o,l){if(r._lastParsedTransform===l)return s;r._lastParsedTransform=l;var A=l.scale&&"function"==typeof l.scale?l.scale:0;A&&(l.scale=A(g,t));var h,c,p,d,u,f,y,v,E,C=t._gsTransform,b=t.style,_=1e-6,w=Bt.length,I=l,x={},S="transformOrigin",B=zt(t,n,!0,I.parseTransform),T=I.transform&&("function"==typeof I.transform?I.transform(g,m):I.transform);if(B.skewType=I.skewType||B.skewType||a.defaultSkewType,r._transform=B,"rotationZ"in I&&(I.rotation=I.rotationZ),T&&"string"==typeof T&&Tt)c=H.style,c[Tt]=T,c.display="block",c.position="absolute",-1!==T.indexOf("%")&&(c.width=tt(t,"width"),c.height=tt(t,"height")),G.body.appendChild(H),h=zt(H,null,!1),"simple"===B.skewType&&(h.scaleY*=Math.cos(h.skewX*R)),B.svg&&(f=B.xOrigin,y=B.yOrigin,h.x-=B.xOffset,h.y-=B.yOffset,(I.transformOrigin||I.svgOrigin)&&(T={},Ot(t,lt(I.transformOrigin),T,I.svgOrigin,I.smoothOrigin,!0),f=T.xOrigin,y=T.yOrigin,h.x-=T.xOffset-B.xOffset,h.y-=T.yOffset-B.yOffset),(f||y)&&(v=$t(H,!0),h.x-=f-(f*v[0]+y*v[2]),h.y-=y-(f*v[1]+y*v[3]))),G.body.removeChild(H),h.perspective||(h.perspective=B.perspective),null!=I.xPercent&&(h.xPercent=ht(I.xPercent,B.xPercent)),null!=I.yPercent&&(h.yPercent=ht(I.yPercent,B.yPercent));else if("object"==typeof I){if(h={scaleX:ht(null!=I.scaleX?I.scaleX:I.scale,B.scaleX),scaleY:ht(null!=I.scaleY?I.scaleY:I.scale,B.scaleY),scaleZ:ht(I.scaleZ,B.scaleZ),x:ht(I.x,B.x),y:ht(I.y,B.y),z:ht(I.z,B.z),xPercent:ht(I.xPercent,B.xPercent),yPercent:ht(I.yPercent,B.yPercent),perspective:ht(I.transformPerspective,B.perspective)},u=I.directionalRotation,null!=u)if("object"==typeof u)for(c in u)I[c]=u[c];else I.rotation=u;"string"==typeof I.x&&-1!==I.x.indexOf("%")&&(h.x=0,h.xPercent=ht(I.x,B.xPercent)),"string"==typeof I.y&&-1!==I.y.indexOf("%")&&(h.y=0,h.yPercent=ht(I.y,B.yPercent)),h.rotation=ct("rotation"in I?I.rotation:"shortRotation"in I?I.shortRotation+"_short":B.rotation,B.rotation,"rotation",x),Mt&&(h.rotationX=ct("rotationX"in I?I.rotationX:"shortRotationX"in I?I.shortRotationX+"_short":B.rotationX||0,B.rotationX,"rotationX",x),h.rotationY=ct("rotationY"in I?I.rotationY:"shortRotationY"in I?I.shortRotationY+"_short":B.rotationY||0,B.rotationY,"rotationY",x)),h.skewX=ct(I.skewX,B.skewX),h.skewY=ct(I.skewY,B.skewY)}for(Mt&&null!=I.force3D&&(B.force3D=I.force3D,d=!0),p=B.force3D||B.z||B.rotationX||B.rotationY||h.z||h.rotationX||h.rotationY||h.perspective,p||null==I.scale||(h.scaleZ=1);--w>-1;)E=Bt[w],T=h[E]-B[E],(T>_||-_>T||null!=I[E]||null!=O[E])&&(d=!0,s=new Et(B,E,B[E],T,s),E in x&&(s.e=x[E]),s.xs0=0,s.plugin=o,r._overwriteProps.push(s.n));return T="function"==typeof I.transformOrigin?I.transformOrigin(g,m):I.transformOrigin,B.svg&&(T||I.svgOrigin)&&(f=B.xOffset,y=B.yOffset,Ot(t,lt(T),h,I.svgOrigin,I.smoothOrigin),s=Ct(B,"xOrigin",(C?B:h).xOrigin,h.xOrigin,s,S),s=Ct(B,"yOrigin",(C?B:h).yOrigin,h.yOrigin,s,S),(f!==B.xOffset||y!==B.yOffset)&&(s=Ct(B,"xOffset",C?f:B.xOffset,B.xOffset,s,S),s=Ct(B,"yOffset",C?y:B.yOffset,B.yOffset,s,S)),T="0px 0px"),(T||Mt&&p&&B.zOrigin)&&(Tt?(d=!0,E=kt,T||(T=(tt(t,E,n,!1,"50% 50%")+"").split(" "),T=T[0]+" "+T[1]+" "+B.zOrigin+"px"),T+="",s=new Et(b,E,0,0,s,-1,S),s.b=b[E],s.plugin=o,Mt?(c=B.zOrigin,T=T.split(" "),B.zOrigin=(T.length>2?parseFloat(T[2]):c)||0,s.xs0=s.e=T[0]+" "+(T[1]||"50%")+" 0px",s=new Et(B,"zOrigin",0,0,s,-1,s.n),s.b=c,s.xs0=s.e=B.zOrigin):s.xs0=s.e=T):lt(T+"",B)),d&&(r._transformType=B.svg&&St||!p&&3!==this._transformType?2:3),A&&(l.scale=A),s},allowFunc:!0,prefix:!0}),It("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),It("clipPath",{defaultValue:"inset(0px)",prefix:!0,multi:!0,formatter:gt("inset(0px 0px 0px 0px)",!1,!0)}),It("borderRadius",{defaultValue:"0px",parser:function(t,e,i,s,a,o){e=this.format(e);var l,A,h,c,p,d,u,f,m,g,y,v,E,C,b,_,w=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],I=t.style;for(m=parseFloat(t.offsetWidth),g=parseFloat(t.offsetHeight),l=e.split(" "),A=0;Af?1:0))||""):(f=parseFloat(d),y=d.substr((f+"").length)),""===y&&(y=r[i]||v),y!==v&&(C=et(t,"borderLeft",u,v),b=et(t,"borderTop",u,v),"%"===y?(p=C/m*100+"%",c=b/g*100+"%"):"em"===y?(_=et(t,"borderLeft",1,"em"),p=C/_+"em",c=b/_+"em"):(p=C+"px",c=b+"px"),E&&(d=parseFloat(p)+f+y,h=parseFloat(c)+f+y)),a=bt(I,w[A],p+" "+c,d+" "+h,!1,"0px",a);return a},prefix:!0,formatter:gt("0px 0px 0px 0px",!1,!0)}),It("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,r,s,a){return bt(t.style,i,this.format(tt(t,i,n,!1,"0px 0px")),this.format(e),!1,"0px",s)},prefix:!0,formatter:gt("0px 0px",!1,!0)}),It("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,r,s,a){var o,l,A,h,c,p,d="background-position",u=n||Z(t,null),m=this.format((u?f?u.getPropertyValue(d+"-x")+" "+u.getPropertyValue(d+"-y"):u.getPropertyValue(d):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),g=this.format(e);if(-1!==m.indexOf("%")!=(-1!==g.indexOf("%"))&&g.split(",").length<2&&(p=tt(t,"backgroundImage").replace(T,""),p&&"none"!==p)){for(o=m.split(" "),l=g.split(" "),$.setAttribute("src",p),A=2;--A>-1;)m=o[A],h=-1!==m.indexOf("%"),h!==(-1!==l[A].indexOf("%"))&&(c=0===A?t.offsetWidth-$.width:t.offsetHeight-$.height,o[A]=h?parseFloat(m)/100*c+"px":parseFloat(m)/c*100+"%");m=o.join(" ")}return this.parseComplex(t.style,m,g,s,a)},formatter:lt}),It("backgroundSize",{defaultValue:"0 0",formatter:function(t){return t+="","co"===t.substr(0,2)?t:lt(-1===t.indexOf(" ")?t+" "+t:t)}}),It("perspective",{defaultValue:"0px",prefix:!0}),It("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),It("transformStyle",{prefix:!0}),It("backfaceVisibility",{prefix:!0}),It("userSelect",{prefix:!0}),It("margin",{parser:yt("marginTop,marginRight,marginBottom,marginLeft")}),It("padding",{parser:yt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),It("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,s,a){var o,l,A;return 9>f?(l=t.currentStyle,A=8>f?" ":",",o="rect("+l.clipTop+A+l.clipRight+A+l.clipBottom+A+l.clipLeft+")",e=this.format(e).split(",").join(A)):(o=this.format(tt(t,this.p,n,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,o,e,s,a)}}),It("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),It("autoRound,strictUnits",{parser:function(t,e,i,r,n){return n}}),It("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,s,a){var o=tt(t,"borderTopWidth",n,!1,"0px"),l=this.format(e).split(" "),A=l[0].replace(b,"");return"px"!==A&&(o=parseFloat(o)/et(t,"borderTopWidth",1,A)+A),this.parseComplex(t.style,this.format(o+" "+tt(t,"borderTopStyle",n,!1,"solid")+" "+tt(t,"borderTopColor",n,!1,"#000")),l.join(" "),s,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(mt)||["#000"])[0]}}),It("borderWidth",{parser:yt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),It("float,cssFloat,styleFloat",{parser:function(t,e,i,r,n,s){var a=t.style,o="cssFloat"in a?"cssFloat":"styleFloat";return new Et(a,o,0,0,n,-1,i,!1,0,a[o],e)}});var Ut=function(t){var e,i=this.t,r=i.filter||tt(this.data,"filter")||"",n=this.s+this.c*t|0;100===n&&(-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(i.removeAttribute("filter"),e=!tt(this.data,"filter")):(i.filter=r.replace(I,""),e=!0)),e||(this.xn1&&(i.filter=r=r||"alpha(opacity="+n+")"),-1===r.indexOf("pacity")?0===n&&this.xn1||(i.filter=r+" alpha(opacity="+n+")"):i.filter=r.replace(_,"opacity="+n))};It("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,s,a){var o=parseFloat(tt(t,"opacity",n,!1,"1")),l=t.style,A="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+o),A&&1===o&&"hidden"===tt(t,"visibility",n)&&0!==e&&(o=0),j?s=new Et(l,"opacity",o,e-o,s):(s=new Et(l,"opacity",100*o,100*(e-o),s),s.xn1=A?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=a,s.setRatio=Ut),A&&(s=new Et(l,"visibility",0,0,s,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit"),s.xs0="inherit",r._overwriteProps.push(s.n),r._overwriteProps.push(i)),s}});var Yt=function(t,e){e&&(t.removeProperty?(("ms"===e.substr(0,2)||"webkit"===e.substr(0,6))&&(e="-"+e),t.removeProperty(e.replace(S,"-$1").toLowerCase())):t.removeAttribute(e))},Jt=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:Yt(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)};It("className",{parser:function(t,e,r,s,a,o,l){var A,h,c,p,d,u=t.getAttribute("class")||"",f=t.style.cssText;if(a=s._classNamePT=new Et(t,r,0,0,a,2),a.setRatio=Jt,a.pr=-11,i=!0,a.b=u,h=rt(t,n),c=t._gsClassPT){for(p={},d=c.data;d;)p[d.p]=1,d=d._next;c.setRatio(1)}return t._gsClassPT=a,a.e="="!==e.charAt(1)?e:u.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",a.e),A=nt(t,h,rt(t),l,p),t.setAttribute("class",u),a.data=A.firstMPT,t.style.cssText=f,a.xfirst=s.parse(t,A.difs,a,o)}});var Wt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,r,n,s,a=this.t.style,o=l.transform.parse;if("all"===this.e)a.cssText="",n=!0;else for(e=this.e.split(" ").join("").split(","),r=e.length;--r>-1;)i=e[r],l[i]&&(l[i].parse===o?n=!0:i="transformOrigin"===i?kt:l[i].p),Yt(a,i);n&&(Yt(a,Tt),s=this.t._gsTransform,s&&(s.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(It("clearProps",{parser:function(t,e,r,n,s){return s=new Et(t,r,0,0,s,2),s.setRatio=Wt,s.e=e,s.pr=-10,s.data=n._tween,i=!0,s}}),A="bezier,throwProps,physicsProps,physics2D".split(","),_t=A.length;_t--;)xt(A[_t]);A=a.prototype,A._firstPT=A._lastParsedTransform=A._transform=null,A._onInitTween=function(t,e,o,A){if(!t.nodeType)return!1;this._target=m=t,this._tween=o,this._vars=e,g=A,h=e.autoRound,i=!1,r=e.suffixMap||a.suffixMap,n=Z(t,""),s=this._overwriteProps;var d,f,y,v,E,C,b,_,I,x=t.style;if(c&&""===x.zIndex&&(d=tt(t,"zIndex",n),("auto"===d||""===d)&&this._addLazySet(x,"zIndex",0)),"string"==typeof e&&(v=x.cssText,d=rt(t,n),x.cssText=v+";"+e,d=nt(t,d,rt(t)).difs,!j&&w.test(e)&&(d.opacity=parseFloat(RegExp.$1)),e=d,x.cssText=v),e.className?this._firstPT=f=l.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=f=this.parse(t,e,null),this._transformType){for(I=3===this._transformType,Tt?p&&(c=!0,""===x.zIndex&&(b=tt(t,"zIndex",n),("auto"===b||""===b)&&this._addLazySet(x,"zIndex",0)),u&&this._addLazySet(x,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(I?"visible":"hidden"))):x.zoom=1,y=f;y&&y._next;)y=y._next;_=new Et(t,"transform",0,0,null,2),this._linkCSSP(_,null,y),_.setRatio=Tt?jt:Vt,_.data=this._transform||zt(t,n,!0),_.tween=o,_.pr=-1,s.pop()}if(i){for(;f;){for(C=f._next,y=v;y&&y.pr>f.pr;)y=y._next;(f._prev=y?y._prev:E)?f._prev._next=f:v=f,(f._next=y)?y._prev=f:E=f,f=C}this._firstPT=v}return!0},A.parse=function(t,e,i,s){var a,o,A,c,p,d,u,f,y,v,E=t.style;for(a in e){if(d=e[a],o=l[a],"function"!=typeof d||o&&o.allowFunc||(d=d(g,m)),o)i=o.parse(t,d,a,this,i,s,e);else{if("--"===a.substr(0,2)){this._tween._propLookup[a]=this._addTween.call(this._tween,t.style,"setProperty",Z(t).getPropertyValue(a)+"",d+"",a,!1,a);continue}p=tt(t,a,n)+"",y="string"==typeof d,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexOf("Color")||y&&x.test(d)?(y||(d=ut(d),d=(d.length>3?"rgba(":"rgb(")+d.join(",")+")"),i=bt(E,a,p,d,!0,"transparent",i,0,s)):y&&F.test(d)?i=bt(E,a,p,d,!0,null,i,0,s):(A=parseFloat(p),u=A||0===A?p.substr((A+"").length):"",(""===p||"auto"===p)&&("width"===a||"height"===a?(A=ot(t,a,n),u="px"):"left"===a||"top"===a?(A=it(t,a,n),u="px"):(A="opacity"!==a?0:1,u="")),v=y&&"="===d.charAt(1),v?(c=parseInt(d.charAt(0)+"1",10),d=d.substr(2),c*=parseFloat(d),f=d.replace(b,"")):(c=parseFloat(d),f=y?d.replace(b,""):""),""===f&&(f=a in r?r[a]:u),d=c||0===c?(v?c+A:c)+f:e[a],u!==f&&(""!==f||"lineHeight"===a)&&(c||0===c)&&A&&(A=et(t,a,A,u),"%"===f?(A/=et(t,a,100,"%")/100,!0!==e.strictUnits&&(p=A+"%")):"em"===f||"rem"===f||"vw"===f||"vh"===f?A/=et(t,a,1,f):"px"!==f&&(c=et(t,a,c,f),f="px"),v&&(c||0===c)&&(d=c+A+f)),v&&(c+=A),!A&&0!==A||!c&&0!==c?void 0!==E[a]&&(d||d+""!="NaN"&&null!=d)?(i=new Et(E,a,c||A||0,0,i,-1,a,!1,0,p,d),i.xs0="none"!==d||"display"!==a&&-1===a.indexOf("Style")?d:p):Y("invalid "+a+" tween value: "+e[a]):(i=new Et(E,a,A,c-A,i,0,a,!1!==h&&("px"===f||"zIndex"===a),0,p,d),i.xs0=f))}s&&i&&!i.plugin&&(i.plugin=s)}return i},A.setRatio=function(t){var e,i,r,n=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(;n;){if(e=n.c*t+n.s,n.r?e=n.r(e):s>e&&e>-s&&(e=0),n.type)if(1===n.type)if(r=n.l,2===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2;else if(3===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3;else if(4===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4;else if(5===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4+n.xn4+n.xs5;else{for(i=n.xs0+e+n.xs1,r=1;r-1;)Kt(t[n],e,i);else for(r=t.childNodes,n=r.length;--n>-1;)s=r[n],a=s.type,s.style&&(e.push(rt(s)),i&&i.push(s)),1!==a&&9!==a&&11!==a||!s.childNodes.length||Kt(s,e,i)};return a.cascadeTo=function(t,i,r){var n,s,a,o,l=e.to(t,i,r),A=[l],h=[],c=[],p=[],d=e._internals.reservedProps;for(t=l._targets||l.target,Kt(t,h,p),l.render(i,!0,!0),Kt(t,c),l.render(0,!0,!0),l._enabled(!0),n=p.length;--n>-1;)if(s=nt(p[n],h[n],c[n]),s.firstMPT){for(a in s=s.difs,r)d[a]&&(s[a]=r[a]);for(a in o={},s)o[a]=h[n][a];A.push(e.fromTo(p[n],i,o,s))}return A},t.activate([a]),a},!0),function(){var t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),e=function(t){var e=1>t?Math.pow(10,(t+"").length-2):1;return function(i){return(Math.round(i/t)*t*e|0)/e}},i=function(t,e){for(;t;)t.f||t.blob||(t.m=e||Math.round),t=t._next},r=t.prototype;r._onInitAllProps=function(){var t,r,n,s,a=this._tween,o=a.vars.roundProps,l={},A=a._propLookup.roundProps;if("object"!=typeof o||o.push)for("string"==typeof o&&(o=o.split(",")),n=o.length;--n>-1;)l[o[n]]=Math.round;else for(s in o)l[s]=e(o[s]);for(s in l)for(t=a._firstPT;t;)r=t._next,t.pg?t.t._mod(l):t.n===s&&(2===t.f&&t.t?i(t.t._firstPT,l[s]):(this._add(t.t,s,t.s,t.c,l[s]),r&&(r._prev=t._prev),t._prev?t._prev._next=r:a._firstPT===t&&(a._firstPT=r),t._next=t._prev=null,a._propLookup[s]=A)),t=r;return!1},r._add=function(t,e,i,r,n){this._addTween(t,e,i,i+r,e,n||Math.round),this._overwriteProps.push(e)}}(),_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(t,e,i,r){var n,s;if("function"!=typeof t.setAttribute)return!1;for(n in e)s=e[n],"function"==typeof s&&(s=s(r,t)),this._addTween(t,"setAttribute",t.getAttribute(n)+"",s+"",n,!1,n),this._overwriteProps.push(n);return!0}}),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(t,e,i,r){"object"!=typeof e&&(e={rotation:e}),this.finals={};var n,s,a,o,l,A,h=!0===e.useRadians?2*Math.PI:360,c=1e-6;for(n in e)"useRadians"!==n&&(o=e[n],"function"==typeof o&&(o=o(r,t)),A=(o+"").split("_"),s=A[0],a=parseFloat("function"!=typeof t[n]?t[n]:t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]()),o=this.finals[n]="string"==typeof s&&"="===s.charAt(1)?a+parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)):Number(s)||0,l=o-a,A.length&&(s=A.join("_"),-1!==s.indexOf("short")&&(l%=h,l!==l%(h/2)&&(l=0>l?l+h:l-h)),-1!==s.indexOf("_cw")&&0>l?l=(l+9999999999*h)%h-(l/h|0)*h:-1!==s.indexOf("ccw")&&l>0&&(l=(l-9999999999*h)%h-(l/h|0)*h)),(l>c||-c>l)&&(this._addTween(t,n,a,a+l,n),this._overwriteProps.push(n)));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,r,n,s=_gsScope.GreenSockGlobals||_gsScope,a=s.com.greensock,o=2*Math.PI,l=Math.PI/2,A=a._class,h=function(e,i){var r=A("easing."+e,function(){},!0),n=r.prototype=new t;return n.constructor=r,n.getRatio=i,r},c=t.register||function(){},p=function(t,e,i,r,n){var s=A("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new r},!0);return c(s,t),s},d=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 r=A("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),n=r.prototype=new t;return n.constructor=r,n.getRatio=i,n.config=function(t){return new r(t)},r},f=p("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=A("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 tthis._p3?this._calcEnd?1===t?0:1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},m.ease=new m(.7,.7),g.config=m.config=function(t,e,i){return new m(t,e,i)},e=A("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,g.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=A("easing.ExpoScaleEase",function(t,e,i){this._p1=Math.log(e/t),this._p2=e-t,this._p3=t,this._ease=i},!0),g=i.prototype=new t,g.constructor=i,g.getRatio=function(t){return this._ease&&(t=this._ease.getRatio(t)),(this._p3*Math.exp(this._p1*t)-this._p3)/this._p2}, g.config=i.config=function(t,e,r){return new i(t,e,r)},r=A("easing.RoughEase",function(e){e=e||{};for(var i,r,n,s,a,o,l=e.taper||"none",A=[],h=0,c=0|(e.points||20),p=c,u=!1!==e.randomize,f=!0===e.clamp,m=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;--p>-1;)i=u?Math.random():1/c*p,r=m?m.getRatio(i):i,"none"===l?n=g:"out"===l?(s=1-i,n=s*s*g):"in"===l?n=i*i*g:.5>i?(s=2*i,n=s*s*.5*g):(s=2*(1-i),n=s*s*.5*g),u?r+=Math.random()*n-.5*n:p%2?r+=.5*n:r-=.5*n,f&&(r>1?r=1:0>r&&(r=0)),A[h++]={x:i,y:r};for(A.sort(function(t,e){return t.x-e.x}),o=new d(1,1,null),p=c;--p>-1;)a=A[p],o=new d(a.x,a.y,o);this._prev=new d(0,0,0!==o.t?o:o.next)},!0),g=r.prototype=new t,g.constructor=r,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 r(t)},r.ease=new r,p("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=e?1-2*t:2*t-1,t=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,e?.5*(1-t):.5*t+.5})),p("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,r){var n=A("easing."+e,function(t,e){this._p1=t>=1?t:1,this._p2=(e||r)/(1>t?t:1),this._p3=this._p2/o*(Math.asin(1/this._p1)||0),this._p2=o/this._p2},!0),s=n.prototype=new t;return s.constructor=n,s.getRatio=i,s.config=function(t,e){return new n(t,e)},n},p("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)),p("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)))})),p("Sine",h("SineOut",function(t){return Math.sin(t*l)}),h("SineIn",function(t){return 1-Math.cos(t*l)}),h("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),A("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),c(s.SlowMo,"SlowMo","ease,"),c(r,"RoughEase","ease,"),c(e,"SteppedEase","ease,"),f},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t,e){"use strict";var i={},r=t.document,n=t.GreenSockGlobals=t.GreenSockGlobals||t,s=n[e];if(s)return"undefined"!=typeof module&&module.exports&&(module.exports=s),s;var a,o,l,A,h,c=function(t){var e,i=t.split("."),r=n;for(e=0;e-1;)(h=g[s[f]]||new y(s[f],[])).gsClass?(l[f]=h.gsClass,m--):A&&h.sc.push(this);if(0===m&&a){if(p=("com.greensock."+r).split("."),d=p.pop(),u=c(p.join("."))[d]=this.gsClass=a.apply(a,l),o)if(n[d]=i[d]=u,"undefined"!=typeof module&&module.exports)if(r===e)for(f in module.exports=i[e]=u,i)u[f]=i[f];else i[e]&&(i[e][d]=u);else"function"==typeof define&&define.amd&&define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+r.split(".").pop(),[],function(){return u});for(f=0;f-1;)for(s=l[A],n=r?E("easing."+s,null,!0):p.easing[s]||{},a=h.length;--a>-1;)o=h[a],_[s+"."+o]=_[o+s]=n[o]=t.getRatio?t:t[o]||new t};for(l=b.prototype,l._calcEnd=!1,l.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,r=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?r*=r:2===i?r*=r*r:3===i?r*=r*r*r:4===i&&(r*=r*r*r*r),1===e?1-r:2===e?r:.5>t?r/2:1-r/2},a=["Linear","Quad","Cubic","Quart","Quint,Strong"],o=a.length;--o>-1;)l=a[o]+",Power"+o,w(new b(null,null,1,o),l,"easeOut",!0),w(new b(null,null,2,o),l,"easeIn"+(0===o?",easeNone":"")),w(new b(null,null,3,o),l,"easeInOut");_.linear=p.easing.Linear.easeIn,_.swing=p.easing.Quad.easeInOut;var I=E("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});l=I.prototype,l.addEventListener=function(t,e,i,r,n){n=n||0;var s,a,o=this._listeners[t],l=0;for(this!==A||h||A.wake(),null==o&&(this._listeners[t]=o=[]),a=o.length;--a>-1;)s=o[a],s.c===e&&s.s===i?o.splice(a,1):0===l&&s.pr-1;)if(r[i].c===e)return void r.splice(i,1)},l.dispatchEvent=function(t){var e,i,r,n=this._listeners[t];if(n)for(e=n.length,e>1&&(n=n.slice(0)),i=this._eventTarget;--e>-1;)r=n[e],r&&(r.up?r.c.call(r.s||i,{type:t,target:i}):r.c.call(r.s||i))};var x=t.requestAnimationFrame,S=t.cancelAnimationFrame,B=Date.now||function(){return(new Date).getTime()},T=B();for(a=["ms","moz","webkit","o"],o=a.length;--o>-1&&!x;)x=t[a[o]+"RequestAnimationFrame"],S=t[a[o]+"CancelAnimationFrame"]||t[a[o]+"CancelRequestAnimationFrame"];E("Ticker",function(t,e){var i,n,s,a,o,l=this,c=B(),p=!(!1===e||!x)&&"auto",u=500,m=33,g="tick",y=function(t){var e,r,A=B()-T;A>u&&(c+=A-m),T+=A,l.time=(T-c)/1e3,e=l.time-o,(!i||e>0||!0===t)&&(l.frame++,o+=e+(e>=a?.004:a-e),r=!0),!0!==t&&(s=n(y)),r&&l.dispatchEvent(g)};I.call(l),l.time=l.frame=0,l.tick=function(){y(!0)},l.lagSmoothing=function(t,e){return arguments.length?(u=t||1/d,void(m=Math.min(e,u,0))):1/d>u},l.sleep=function(){null!=s&&(p&&S?S(s):clearTimeout(s),n=f,s=null,l===A&&(h=!1))},l.wake=function(t){null!==s?l.sleep():t?c+=-T+(T=B()):l.frame>10&&(T=B()-u+5),n=0===i?f:p&&x?x:function(t){return setTimeout(t,1e3*(o-l.time)+1|0)},l===A&&(h=!0),y(2)},l.fps=function(t){return arguments.length?(i=t,a=1/(i||60),o=this.time+a,void l.wake()):i},l.useRAF=function(t){return arguments.length?(l.sleep(),p=t,void l.fps(i)):p},l.fps(t),setTimeout(function(){"auto"===p&&l.frame<5&&"hidden"!==(r||{}).visibilityState&&l.useRAF(!1)},1500)}),l=p.Ticker.prototype=new p.events.EventDispatcher,l.constructor=p.Ticker;var P=E("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=!!e.immediateRender,this.data=e.data,this._reversed=!!e.reversed,X){h||A.wake();var i=this.vars.useFrames?W:X;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});A=P.ticker=new p.Ticker,l=P.prototype,l._dirty=l._gc=l._initted=l._paused=!1,l._totalTime=l._time=0,l._rawPrevTime=-1,l._next=l._last=l._onUpdate=l._timeline=l.timeline=null,l._paused=!1;var k=function(){h&&B()-T>2e3&&("hidden"!==(r||{}).visibilityState||!A.lagSmoothing())&&A.wake();var t=setTimeout(k,2e3);t.unref&&t.unref()};k(),l.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},l.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},l.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},l.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},l.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},l.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},l.render=function(t,e,i){},l.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},l.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=i&&t-1;)"{self}"===t[e]&&(i[e]=this);return i},l._callback=function(t){var e=this.vars,i=e[t],r=e[t+"Params"],n=e[t+"Scope"]||e.callbackScope||this,s=r?r.length:0;switch(s){case 0:i.call(n);break;case 1:i.call(n,r[0]);break;case 2:i.call(n,r[0],r[1]);break;default:i.apply(n,r)}},l.eventCallback=function(t,e,i,r){if("on"===(t||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[t];null==e?delete n[t]:(n[t]=e,n[t+"Params"]=m(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,n[t+"Scope"]=r),"onUpdate"===t&&(this._onUpdate=e)}return this},l.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},l.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._timethis._duration?this._duration:t,e)):this._time},l.totalTime=function(t,e,i){if(h||A.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var r=this._totalDuration,n=this._timeline;if(t>r&&!i&&(t=r),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?r-t:t)/this._timeScale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._startTime+n._totalTime)/n._timeScale&&n.totalTime(n._totalTime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(R.length&&Z(),this.render(t,e,!1),R.length&&Z())}return this},l.progress=l.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},l.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},l.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},l.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,i;for(t=t||d,this._timeline&&this._timeline.smoothChildTiming&&(e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime(),this._startTime=i-(i-this._startTime)*this._timeScale/t),this._timeScale=t,i=this.timeline;i&&i.timeline;)i._dirty=!0,i.totalDuration(),i=i.timeline;return this},l.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},l.paused=function(t){if(!arguments.length)return this._paused;var e,i,r=this._timeline;return t!=this._paused&&r&&(h||t||A.wake(),e=r.rawTime(),i=e-this._pauseTime,!t&&r.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=r.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var M=E("core.SimpleTimeline",function(t){P.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});l=M.prototype=new P,l.constructor=M,l.kill()._gc=!1,l._first=l._last=l._recent=null,l._sortChildren=!1,l.add=l.insert=function(t,e,i,r){var n,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=this.rawTime()-(t._timeline.rawTime()-t._pauseTime)),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),n=this._last,this._sortChildren)for(s=t._startTime;n&&n._startTime>s;)n=n._prev;return n?(t._next=n._next,n._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=n,this._recent=t,this._timeline&&this._uncache(!0),this},l._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},l.render=function(t,e,i){var r,n=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;n;)r=n._next,(n._active||t>=n._startTime&&!n._paused&&!n._gc)&&(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=r},l.rawTime=function(){return h||A.wake(),this._totalTime};var D=E("TweenLite",function(e,i,r){if(P.call(this,i,r),this.render=D.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:D.selector(e)||e;var n,s,a,o=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?J[D.defaultOverwrite]:"number"==typeof l?l>>0:J[l],(o||e instanceof Array||e.push&&m(e))&&"number"!=typeof e[0])for(this._targets=a=u(e),this._propLookup=[],this._siblings=[],n=0;n1&&it(s,this,null,1,this._siblings[n])):(s=a[n--]=D.selector(s),"string"==typeof s&&a.splice(n+1,1)):a.splice(n--,1);else this._propLookup={},this._siblings=tt(e,this,!1),1===l&&this._siblings.length>1&&it(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-d,this.render(Math.min(0,-this._delay)))},!0),Q=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},F=function(t,e){var i,r={};for(i in t)Y[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)||(r[i]=t[i],delete t[i]);t.css=r};l=D.prototype=new P,l.constructor=D,l.kill()._gc=!1,l.ratio=0,l._firstPT=l._targets=l._overwrittenProps=l._startAt=null,l._notifyPluginsOfEnabled=l._lazy=!1,D.version="2.1.2",D.defaultEase=l._ease=new b(null,null,1,1),D.defaultOverwrite="auto",D.ticker=A,D.autoSleep=120,D.lagSmoothing=function(t,e){A.lagSmoothing(t,e)},D.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(D.selector=i,i(e)):(r||(r=t.document),r?r.querySelectorAll?r.querySelectorAll(e):r.getElementById("#"===e.charAt(0)?e.substr(1):e):e)};var R=[],L={},O=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,N=/[\+-]=-?[\.\d]/,G=function(t){for(var e,i=this._firstPT,r=1e-6;i;)e=i.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m.call(this._tween,e,this._target||i.t,this._tween):r>e&&e>-r&&!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},q=function(t){return(1e3*t|0)/1e3+""},H=function(t,e,i,r){var n,s,a,o,l,A,h,c=[],p=0,d="",u=0;for(c.start=t,c.end=e,t=c[0]=t+"",e=c[1]=e+"",i&&(i(c),t=c[0],e=c[1]),c.length=0,n=t.match(O)||[],s=e.match(O)||[],r&&(r._next=null,r.blob=1,c._firstPT=c._applyPT=r),l=s.length,o=0;l>o;o++)h=s[o],A=e.substr(p,e.indexOf(h,p)-p),d+=A||!o?A:",",p+=A.length,u?u=(u+1)%5:"rgba("===A.substr(-5)&&(u=1),h===n[o]||n.length<=o?d+=h:(d&&(c.push(d),d=""),a=parseFloat(n[o]),c.push(a),c._firstPT={_next:c._firstPT,t:c,p:c.length-1,s:a,c:("="===h.charAt(1)?parseInt(h.charAt(0)+"1",10)*parseFloat(h.substr(2)):parseFloat(h)-a)||0,f:0,m:u&&4>u?Math.round:q}),p+=h.length;return d+=e.substr(p),d&&c.push(d),c.setRatio=G,N.test(e)&&(c.end=null),c},$=function(t,e,i,r,n,s,a,o,l){"function"==typeof r&&(r=r(l||0,t));var A,h=typeof t[e],c="function"!==h?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),p="get"!==i?i:c?a?t[c](a):t[c]():t[e],d="string"==typeof r&&"="===r.charAt(1),u={t:t,p:e,s:p,f:"function"===h,pg:0,n:n||e,m:s?"function"==typeof s?s:Math.round:0,pr:0,c:d?parseInt(r.charAt(0)+"1",10)*parseFloat(r.substr(2)):parseFloat(r)-p||0};return("number"!=typeof p||"number"!=typeof r&&!d)&&(a||isNaN(p)||!d&&isNaN(r)||"boolean"==typeof p||"boolean"==typeof r?(u.fp=a,A=H(p,d?parseFloat(u.s)+u.c+(u.s+"").replace(/[0-9\-\.]/g,""):r,o||D.defaultStringFilter,u),u={t:A,p:"setRatio",s:0,c:1,f:2,pg:0,n:n||e,pr:0,m:0}):(u.s=parseFloat(p),d||(u.c=parseFloat(r)-u.s||0))),u.c?((u._next=this._firstPT)&&(u._next._prev=u),this._firstPT=u,u):void 0},z=D._internals={isArray:m,isSelector:Q,lazyTweens:R,blobDif:H},V=D._plugins={},j=z.tweenLookup={},U=0,Y=z.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,stagger:1},J={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},W=P._rootFramesTimeline=new M,X=P._rootTimeline=new M,K=30,Z=z.lazyRender=function(){var t,e,i=R.length;for(L={},t=0;i>t;t++)e=R[t],e&&!1!==e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0),e._lazy=!1);R.length=0};X._startTime=A.time,W._startTime=A.frame,X._active=W._active=!0,setTimeout(Z,1),P._updateRoot=D.render=function(){var t,e,i;if(R.length&&Z(),X.render((A.time-X._startTime)*X._timeScale,!1,!1),W.render((A.frame-W._startTime)*W._timeScale,!1,!1),R.length&&Z(),A.frame>=K){for(i in K=A.frame+(parseInt(D.autoSleep,10)||120),j){for(e=j[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete j[i]}if(i=X._first,(!i||i._paused)&&D.autoSleep&&!W._first&&1===A._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||A.sleep()}}},A.addEventListener("tick",P._updateRoot);var tt=function(t,e,i){var r,n,s=t._gsTweenID;if(j[s||(t._gsTweenID=s="t"+U++)]||(j[s]={target:t,tweens:[]}),e&&(r=j[s].tweens,r[n=r.length]=e,i))for(;--n>-1;)r[n]===e&&r.splice(n,1);return j[s].tweens},et=function(t,e,i,r){var n,s,a=t.vars.onOverwrite;return a&&(n=a(t,e,i,r)),a=D.onOverwrite,a&&(s=a(t,e,i,r)),!1!==n&&!1!==s},it=function(t,e,i,r,n){var s,a,o,l;if(1===r||r>=4){for(l=n.length,s=0;l>s;s++)if((o=n[s])!==e)o._gc||o._kill(null,t,e)&&(a=!0);else if(5===r)break;return a}var A,h=e._startTime+d,c=[],p=0,u=0===e._duration;for(s=n.length;--s>-1;)(o=n[s])===e||o._gc||o._paused||(o._timeline!==e._timeline?(A=A||rt(e,0,u),0===rt(o,A,u)&&(c[p++]=o)):o._startTime<=h&&o._startTime+o.totalDuration()/o._timeScale>h&&((u||!o._initted)&&h-o._startTime<=2*d||(c[p++]=o)));for(s=p;--s>-1;)if(o=c[s],l=o._firstPT,2===r&&o._kill(i,t,e)&&(a=!0),2!==r||!o._firstPT&&o._initted&&l){if(2!==r&&!et(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},rt=function(t,e,i){for(var r=t._timeline,n=r._timeScale,s=t._startTime;r._timeline;){if(s+=r._startTime,n*=r._timeScale,r._paused)return-100;r=r._timeline}return s/=n,s>e?s-e:i&&s===e||!t._initted&&2*d>s-e?d:(s+=t.totalDuration()/t._timeScale/n)>e+d?0:s-e-d};l._init=function(){var t,e,i,r,n,s,a=this.vars,o=this._overwrittenProps,l=this._duration,A=!!a.immediateRender,h=a.ease,c=this._startAt;if(a.startAt){for(r in c&&(c.render(-1,!0),c.kill()),n={},a.startAt)n[r]=a.startAt[r];if(n.data="isStart",n.overwrite=!1,n.immediateRender=!0,n.lazy=A&&!1!==a.lazy,n.startAt=n.delay=null,n.onUpdate=a.onUpdate,n.onUpdateParams=a.onUpdateParams,n.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=D.to(this.target||{},0,n),A)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(c)c.render(-1,!0),c.kill(),this._startAt=null;else{for(r in 0!==this._time&&(A=!1),i={},a)Y[r]&&"autoCSS"!==r||(i[r]=a[r]);if(i.overwrite=0,i.data="isFromStart",i.lazy=A&&!1!==a.lazy,i.immediateRender=A,this._startAt=D.to(this.target,0,i),A){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=h=h?h instanceof b?h:"function"==typeof h?new b(h,a.easeParams):_[h]||D.defaultEase:D.defaultEase,a.easeParams instanceof Array&&h.config&&(this._ease=h.config.apply(h,a.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],o?o[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,o,0);if(e&&D._onPluginEvent("_onInitAllProps",this),o&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),a.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=a.onUpdate,this._initted=!0},l._initProps=function(e,i,r,n,s){var a,o,l,A,h,c;if(null==e)return!1;for(a in L[e._gsTweenID]&&Z(),this.vars.css||e.style&&e!==t&&e.nodeType&&V.css&&!1!==this.vars.autoCSS&&F(this.vars,e),this.vars)if(c=this.vars[a],Y[a])c&&(c instanceof Array||c.push&&m(c))&&-1!==c.join("").indexOf("{self}")&&(this.vars[a]=c=this._swapSelfInParams(c,this));else if(V[a]&&(A=new V[a])._onInitTween(e,this.vars[a],this,s)){for(this._firstPT=h={_next:this._firstPT,t:A,p:"setRatio",s:0,c:1,f:1,n:a,pg:1,pr:A._priority,m:0},o=A._overwriteProps.length;--o>-1;)i[A._overwriteProps[o]]=this._firstPT;(A._priority||A._onInitAllProps)&&(l=!0),(A._onDisable||A._onEnable)&&(this._notifyPluginsOfEnabled=!0),h._next&&(h._next._prev=h)}else i[a]=$.call(this,e,a,"get",c,a,0,null,this.vars.stringFilter,s);return n&&this._kill(n,e)?this._initProps(e,i,r,n,s):this._overwrite>1&&this._firstPT&&r.length>1&&it(e,this,i,this._overwrite,r)?(this._kill(i,e),this._initProps(e,i,r,n,s)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(L[e._gsTweenID]=!0),l)},l.render=function(t,e,i){var r,n,s,a,o=this,l=o._time,A=o._duration,h=o._rawPrevTime;if(t>=A-d&&t>=0)o._totalTime=o._time=A,o.ratio=o._ease._calcEnd?o._ease.getRatio(1):1,o._reversed||(r=!0,n="onComplete",i=i||o._timeline.autoRemoveChildren),0===A&&(o._initted||!o.vars.lazy||i)&&(o._startTime===o._timeline._duration&&(t=0),(0>h||0>=t&&t>=-d||h===d&&"isPause"!==o.data)&&h!==t&&(i=!0,h>d&&(n="onReverseComplete")),o._rawPrevTime=a=!e||t||h===t?t:d);else if(d>t)o._totalTime=o._time=0,o.ratio=o._ease._calcEnd?o._ease.getRatio(0):0,(0!==l||0===A&&h>0)&&(n="onReverseComplete",r=o._reversed),t>-d?t=0:0>t&&(o._active=!1,0===A&&(o._initted||!o.vars.lazy||i)&&(h>=0&&(h!==d||"isPause"!==o.data)&&(i=!0),o._rawPrevTime=a=!e||t||h===t?t:d)),(!o._initted||o._startAt&&o._startAt.progress())&&(i=!0);else if(o._totalTime=o._time=t,o._easeType){var c=t/A,p=o._easeType,u=o._easePower;(1===p||3===p&&c>=.5)&&(c=1-c),3===p&&(c*=2),1===u?c*=c:2===u?c*=c*c:3===u?c*=c*c*c:4===u&&(c*=c*c*c*c),o.ratio=1===p?1-c:2===p?c:.5>t/A?c/2:1-c/2}else o.ratio=o._ease.getRatio(t/A);if(o._time!==l||i){if(!o._initted){if(o._init(),!o._initted||o._gc)return;if(!i&&o._firstPT&&(!1!==o.vars.lazy&&o._duration||o.vars.lazy&&!o._duration))return o._time=o._totalTime=l,o._rawPrevTime=h,R.push(o),void(o._lazy=[t,e]);o._time&&!r?o.ratio=o._ease.getRatio(o._time/A):r&&o._ease._calcEnd&&(o.ratio=o._ease.getRatio(0===o._time?0:1))}for(!1!==o._lazy&&(o._lazy=!1),o._active||!o._paused&&o._time!==l&&t>=0&&(o._active=!0),0===l&&(o._startAt&&(t>=0?o._startAt.render(t,!0,i):n||(n="_dummyGS")),o.vars.onStart&&(0!==o._time||0===A)&&(e||o._callback("onStart"))),s=o._firstPT;s;)s.f?s.t[s.p](s.c*o.ratio+s.s):s.t[s.p]=s.c*o.ratio+s.s,s=s._next;o._onUpdate&&(0>t&&o._startAt&&-1e-4!==t&&o._startAt.render(t,!0,i),e||(o._time!==l||r||i)&&o._callback("onUpdate")),n&&(!o._gc||i)&&(0>t&&o._startAt&&!o._onUpdate&&-1e-4!==t&&o._startAt.render(t,!0,i),r&&(o._timeline.autoRemoveChildren&&o._enabled(!1,!1),o._active=!1),!e&&o.vars[n]&&o._callback(n),0===A&&o._rawPrevTime===d&&a!==d&&(o._rawPrevTime=0))}},l._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:D.selector(e)||e;var r,n,s,a,o,l,A,h,c,p=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline,d=this._firstPT;if((m(e)||Q(e))&&"number"!=typeof e[0])for(r=e.length;--r>-1;)this._kill(t,e[r],i)&&(l=!0);else{if(this._targets){for(r=this._targets.length;--r>-1;)if(e===this._targets[r]){o=this._propLookup[r]||{},this._overwrittenProps=this._overwrittenProps||[],n=this._overwrittenProps[r]=t?this._overwrittenProps[r]||{}:"all";break}}else{if(e!==this.target)return!1;o=this._propLookup,n=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(o){if(A=t||o,h=t!==n&&"all"!==n&&t!==o&&("object"!=typeof t||!t._tempKill),i&&(D.onOverwrite||this.vars.onOverwrite)){for(s in A)o[s]&&(c||(c=[]),c.push(s));if((c||!t)&&!et(this,i,e,c))return!1}for(s in A)(a=o[s])&&(p&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(A)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[s]),h&&(n[s]=1);!this._firstPT&&this._initted&&d&&this._enabled(!1,!1)}}return l},l.invalidate=function(){this._notifyPluginsOfEnabled&&D._onPluginEvent("_onDisable",this);var t=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],P.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-d,this.render(t,!1,!1!==this.vars.lazy)),this},l._enabled=function(t,e){if(h||A.wake(),t&&this._gc){var i,r=this._targets;if(r)for(i=r.length;--i>-1;)this._siblings[i]=tt(r[i],this,!0);else this._siblings=tt(this.target,this,!0)}return P.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&D._onPluginEvent(t?"_onEnable":"_onDisable",this)},D.to=function(t,e,i){return new D(t,e,i)},D.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new D(t,e,i)},D.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new D(t,e,r)},D.delayedCall=function(t,e,i,r,n){return new D(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},D.set=function(t,e){return new D(t,0,e)},D.getTweensOf=function(t,e){if(null==t)return[];var i,r,n,s;if(t="string"!=typeof t?t:D.selector(t)||t,(m(t)||Q(t))&&"number"!=typeof t[0]){for(i=t.length,r=[];--i>-1;)r=r.concat(D.getTweensOf(t[i],e));for(i=r.length;--i>-1;)for(s=r[i],n=i;--n>-1;)s===r[n]&&r.splice(i,1)}else if(t._gsTweenID)for(r=tt(t).concat(),i=r.length;--i>-1;)(r[i]._gc||e&&!r[i].isActive())&&r.splice(i,1);return r||[]},D.killTweensOf=D.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var r=D.getTweensOf(t,e),n=r.length;--n>-1;)r[n]._kill(i,t)};var nt=E("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=nt.prototype},!0);if(l=nt.prototype,nt.version="1.19.0",nt.API=2,l._firstPT=null,l._addTween=$,l.setRatio=G,l._kill=function(t){var e,i=this._overwriteProps,r=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(;r;)null!=t[r.n]&&(r._next&&(r._next._prev=r._prev),r._prev?(r._prev._next=r._next,r._prev=null):this._firstPT===r&&(this._firstPT=r._next)),r=r._next;return!1},l._mod=l._roundProps=function(t){for(var e,i=this._firstPT;i;)e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")],e&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},D._onPluginEvent=function(t,e){var i,r,n,s,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,r=n;r&&r.pr>o.pr;)r=r._next;(o._prev=r?r._prev:s)?o._prev._next=o:n=o,(o._next=r)?r._prev=o:s=o,o=a}o=e._firstPT=n}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},nt.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===nt.API&&(V[(new t[e])._propName]=t[e]);return!0},v.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,r=t.priority||0,n=t.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=E("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){nt.call(this,i,r),this._overwriteProps=n||[]},!0===t.global),o=a.prototype=new nt(i);for(e in o.constructor=a,a.API=t.API,s)"function"==typeof t[e]&&(o[s[e]]=t[e]);return a.version=t.version,nt.activate([a]),a},a=t._gsQueue){for(o=0;oe.scrollOffset()?1:-1}),e}var l,A,h="REVERSE",c="PAUSED",p=i.defaults,d=this,u=n.extend({},p,r),f=[],m=!1,g=0,y=c,v=!0,E=0,C=!0,b=function(){0=y.start?1:0,u.trigger("update",{startPos:y.start,endPos:y.end,scrollPos:e}),u.progress(i)):b&&m===c&&M(!0):A.updateScene(u,!1)),u},this.refresh=function(){return I(),x(),u},this.progress=function(t){if(arguments.length){var e,i,r,n=!1,s=m,a=A?A.info("scrollDirection"):"PAUSED",o=f.reverse||g<=t;return 0===f.duration?(n=g!=t,m=0==(g=t<1&&o?0:1)?h:c):t<0&&m!==h&&o?(m=h,n=!(g=0)):0<=t&&t<1&&o?(g=t,m=c,n=!0):1<=t&&m!==p?(g=1,m=p,n=!0):m!==c||o||M(),n&&(e={progress:g,state:m,scrollDirection:a},r=function(t){u.trigger(t,e)},(i=m!=s)&&s!==c&&(r("enter"),r(s===h?"start":"end")),r("progress"),i&&m!==c&&(r(m===h?"start":"end"),r("leave"))),u}return g};var b,_,w=function(){y={start:v+f.offset},A&&f.triggerElement&&(y.start-=A.info("size")*f.triggerHook),y.end=y.start+f.duration},I=function(t){var e;!l||P(e="duration",l.call(u))&&!t&&(u.trigger("change",{what:e,newval:f[e]}),u.trigger("shift",{reason:e}))},x=function(t){var i=0,r=f.triggerElement;if(A&&(r||00?parseInt(e.data("counter-time")):r.time,i=parseInt(e.data("counter-delay"))>0?parseInt(e.data("counter-delay")):r.delay,n=t/i,s=e.data("counterupTo"),a=[s],o=/[0-9]+,[0-9]+/.test(s);s=s.replace(/,/g,"");for(var l=(/^[0-9]+$/.test(s),/^[0-9]+\.[0-9]+$/.test(s)),A=l?(s.split(".")[1]||[]).length:0,h=n;h>=1;h--){var c=parseInt(Math.round(s/n*h));if(l&&(c=parseFloat(s/n*h).toFixed(A)),o)for(;/(\d+)(\d{3})/.test(c.toString());)c=c.toString().replace(/(\d+)(\d{3})/,"$1,$2");a.unshift(c)}e.data("counterup-nums",a),e.text("0");var p=function(){e.data("counterup-nums")&&(e.text(e.data("counterup-nums").shift()),e.data("counterup-nums").length?setTimeout(e.data("counterup-func"),i):(e.data("counterup-nums"),e.data("counterup-nums",null),e.data("counterup-func",null)))};e.data("counterup-func",p),setTimeout(e.data("counterup-func"),i)};e.waypoint(n,{offset:"100%",triggerOnce:!0})})}}(jQuery),function(){"use strict";function t(r){if(!r)throw new Error("No options passed to Waypoint constructor");if(!r.element)throw new Error("No element option passed to Waypoint constructor");if(!r.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,r),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=r.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var r in i)e.push(i[r]);for(var n=0,s=e.length;s>n;n++)e[n][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,r[t.waypointContextKey]=this,i+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,r={},n=window.Waypoint,s=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete r[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,n.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||n.isTouch)&&(e.didScroll=!0,n.requestAnimationFrame(t))})},e.prototype.handleResize=function(){n.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var r=e[i],n=r.newScroll>r.oldScroll,s=n?r.forward:r.backward;for(var a in this.waypoints[i]){var o=this.waypoints[i][a],l=r.oldScroll=o.triggerPoint,h=l&&A,c=!l&&!A;(h||c)&&(o.queueTrigger(s),t[o.group.id]=o.group)}}for(var p in t)t[p].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var r=0,n=t.length;n>r;r++)t[r].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),r={};for(var s in this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},t){var a=t[s];for(var o in this.waypoints[s]){var l,A,h,c,p,d=this.waypoints[s][o],u=d.options.offset,f=d.triggerPoint,m=0,g=null==f;d.element!==d.element.window&&(m=d.adapter.offset()[a.offsetProp]),"function"==typeof u?u=u.apply(d):"string"==typeof u&&(u=parseFloat(u),d.options.offset.indexOf("%")>-1&&(u=Math.ceil(a.contextDimension*u/100))),l=a.contextScroll-a.contextOffset,d.triggerPoint=m+l-u,A=f=a.oldScroll,c=A&&h,p=!A&&!h,!g&&c?(d.queueTrigger(a.backward),r[d.group.id]=d.group):!g&&p?(d.queueTrigger(a.forward),r[d.group.id]=d.group):g&&a.oldScroll>=d.triggerPoint&&(d.queueTrigger(a.forward),r[d.group.id]=d.group)}}return n.requestAnimationFrame(function(){for(var t in r)r[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in r)r[t].refresh()},e.findByElement=function(t){return r[t.waypointContextKey]},window.onload=function(){s&&s(),e.refreshAll()},n.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)},n.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis, this.waypoints=[],this.clearTriggerQueues(),r[this.axis][this.name]=this}var r={vertical:{},horizontal:{}},n=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var r=this.triggerQueues[i],n="up"===i||"left"===i;r.sort(n?e:t);for(var s=0,a=r.length;a>s;s+=1){var o=r[s];(o.options.continuous||s===r.length-1)&&o.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints),r=i===this.waypoints.length-1;return r?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return r[t.axis][t.name]||new i(t)},n.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,r){t[r]=e[r]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],r=arguments[0];return t.isFunction(arguments[0])&&(r=t.extend({},arguments[1]),r.handler=arguments[0]),this.each(function(){var n=t.extend({},r,{element:this});"string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]),i.push(new e(n))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}(),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,r,n=2;for("undefined"!=typeof Symbol&&(i=Symbol.asyncIterator,r=Symbol.iterator);n--;){if(i&&null!=(e=t[i]))return e.call(t);if(r&&null!=(e=t[r]))return new AsyncFromSyncIterator(e.call(t));i="@@asyncIterator",r="@@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)}function _jsx(t,e,i,r){REACT_ELEMENT_TYPE||(REACT_ELEMENT_TYPE="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var n=t&&t.defaultProps,s=arguments.length-3;if(e||0===s||(e={children:void 0}),1===s)e.children=r;else if(s>1){for(var a=new Array(s),o=0;o]+)>/g,function(t,e){return"$"+s[e]}))}if("function"==typeof n){var a=this;return i[Symbol.replace].call(this,t,function(){var t=arguments;return"object"!=typeof t[t.length-1]&&(t=[].slice.call(t)).push(e(t,a)),n.apply(this,t)})}return i[Symbol.replace].call(this,t,n)},_wrapRegExp.apply(this,arguments)}function _AwaitValue(t){this.wrapped=t}function _AsyncGenerator(t){function e(r,n){try{var s=t[r](n),a=s.value,o=a instanceof _AwaitValue;Promise.resolve(o?a.wrapped:a).then(function(t){o?e("return"===r?"return":"next",t):i(s.done?"return":"normal",t)},function(t){e("throw",t)})}catch(t){i("throw",t)}}function i(t,i){switch(t){case"return":r.resolve({value:i,done:!0});break;case"throw":r.reject(i);break;default:r.resolve({value:i,done:!1})}(r=r.next)?e(r.key,r.arg):n=null}var r,n;this._invoke=function(t,i){return new Promise(function(s,a){var o={key:t,arg:i,resolve:s,reject:a,next:null};n?n=n.next=o:(r=n=o,e(t,i))})},"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){function i(i,r){return n=!0,r=new Promise(function(e){e(t[i](r))}),{done:!1,value:e(r)}}var r={},n=!1;return r["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},r.next=function(t){return n?(n=!1,t):i("next",t)},"function"==typeof t.throw&&(r.throw=function(t){if(n)throw n=!1,t;return i("throw",t)}),"function"==typeof t.return&&(r.return=function(t){return n?(n=!1,t):i("return",t)}),r}function asyncGeneratorStep(t,e,i,r,n,s,a){try{var o=t[s](a),l=o.value}catch(t){return void i(t)}o.done?e(l):Promise.resolve(l).then(r,n)}function _asyncToGenerator(t){return function(){var e=this,i=arguments;return new Promise(function(r,n){function s(t){asyncGeneratorStep(o,r,n,s,a,"next",t)}function a(t){asyncGeneratorStep(o,r,n,s,a,"throw",t)}var o=t.apply(e,i);s(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=0||(n[i]=t[i]);return n}function _objectWithoutProperties(t,e){if(null==t)return{};var i,r,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}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,r=_getPrototypeOf(t);if(e){var n=_getPrototypeOf(this).constructor;i=Reflect.construct(r,arguments,n)}else i=r.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 r=_superPropBase(t,e);if(r){var n=Object.getOwnPropertyDescriptor(r,e);return n.get?n.get.call(arguments.length<3?t:i):n.value}},_get.apply(this,arguments)}function set(t,e,i,r){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,i,r){var n,s=_superPropBase(t,e);if(s){if((n=Object.getOwnPropertyDescriptor(s,e)).set)return n.set.call(r,i),!0;if(!n.writable)return!1}if(n=Object.getOwnPropertyDescriptor(r,e)){if(!n.writable)return!1;n.value=i,Object.defineProperty(r,e,n)}else _defineProperty(r,e,i);return!0},set(t,e,i,r)}function _set(t,e,i,r,n){if(!set(t,e,i,r||t)&&n)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 r=e.length;return _arrayLikeToArray(e,void 0!==i&&it.length)&&(e=t.length);for(var i=0,r=new Array(e);i=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f: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.")}var s,a=!0,o=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){o=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(o)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 r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[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.")}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 r=i.call(t,e||"default");if("object"!=typeof r)return r;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,r){i&&Object.defineProperty(t,e,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function _applyDecoratedDescriptor(t,e,i,r,n){var s={};return Object.keys(r).forEach(function(t){s[t]=r[t]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=i.slice().reverse().reduce(function(i,r){return r(t,e,i)||i},s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(t,e,s),s=null),s}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)}function _classStaticPrivateFieldSpecGet(t,e,i){return _classCheckPrivateStaticAccess(t,e),_classCheckPrivateStaticFieldDescriptor(i,"get"),_classApplyDescriptorGet(t,i)}function _classStaticPrivateFieldSpecSet(t,e,i,r){return _classCheckPrivateStaticAccess(t,e),_classCheckPrivateStaticFieldDescriptor(i,"set"),_classApplyDescriptorSet(t,i,r),r}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,r){var n=_getDecoratorsApi();if(r)for(var s=0;s=0;s--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var o=this.fromElementDescriptor(t),l=this.toElementFinisherExtras((0,n[s])(o)||o);t=l.element,this.addElementPlacement(t,e),l.finisher&&r.push(l.finisher);var A=l.extras;if(A){for(var h=0;h=0;r--){var n=this.fromClassDescriptor(t),s=this.toClassDescriptor((0,e[r])(n)||n);if(void 0!==s.finisher&&i.push(s.finisher),void 0!==s.elements){t=s.elements;for(var a=0;a=0;o--)(n=t[o])&&(a=(s<3?n(a):s>3?n(e,i,a):n(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a}function __param(t,e){return function(i,r){e(i,r,t)}}function __metadata(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function __awaiter(t,e,i,r){return new(i||(i=Promise))(function(n,s){function a(t){try{l(r.next(t))}catch(t){s(t)}}function o(t){try{l(r.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,o)}l((r=r.apply(t,e||[])).next())})}function __generator(t,e){function i(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(s=2&i[0]?n.return:i[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,i[1])).done)return s;switch(n=0,s&&(i=[2&i[0],s.value]),i[0]){case 0:case 1:s=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(s=o.trys,!((s=s.length>0&&s[s.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!s||i[1]>s[0]&&i[1]=t.length&&(t=void 0),{value:t&&t[r++],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 r,n,s=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=s.next()).done;)a.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return a}function __spread(){for(var t=[],e=0;e1||n(t,e)})})}function n(t,e){try{!function(t){t.value instanceof __await?Promise.resolve(t.value.v).then(s,a):o(h[0][2],t)}(A[t](e))}catch(t){o(h[0][3],t)}}function s(t){n("next",t)}function a(t){n("throw",t)}function o(t,e){t(e),h.shift(),h.length&&n(h[0][0],h[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l,A=i.apply(t,e||[]),h=[];return l={},r("next"),r("throw"),r("return"),l[Symbol.asyncIterator]=function(){return this},l}function __asyncDelegator(t){function e(e,n){i[e]=t[e]?function(i){return(r=!r)?{value:__await(t[e](i)),done:"return"===e}:n?n(i):i}:n}var i,r;return i={},e("next"),e("throw",function(t){throw t}),e("return"),i[Symbol.iterator]=function(){return this},i}function __asyncValues(t){function e(e){i[e]=t[e]&&function(i){return new Promise(function(r,n){(function(t,e,i,r){Promise.resolve(r).then(function(e){t({value:e,done:i})},e)})(r,n,(i=t[e](i)).done,i.value)})}}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t[Symbol.asyncIterator];return r?r.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),i={},e("next"),e("throw"),e("return"),i[Symbol.asyncIterator]=function(){return this},i)}function __makeTemplateObject(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}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,r){if("a"===i&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(t):r?r.value:e.get(t)}function __classPrivateFieldSet(t,e,i,r,n){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(t,i):n?n.value=i:e.set(t,i),i}function P(t,e){var i,r,n,s,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,o=arguments.length>3?arguments[3]:void 0;if(e===b)return e;var l=void 0!==o?null===(i=a._$Cl)||void 0===i?void 0:i[o]:a._$Cu,A=r$1(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==A&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===A?l=void 0:(l=new A(t))._$AT(t,a,o),void 0!==o?(null!==(n=(s=a)._$Cl)&&void 0!==n?n:s._$Cl=[])[o]=l:a._$Cu=l),void 0!==l&&(e=P(t,l._$AS(t,e.values),l,o)),e}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)}function t$1(t){return e$5(_objectSpread2(_objectSpread2({},t),{},{state:!0}))}function e$3(t){return o$1({finisher:(e,i)=>{Object.assign(e.prototype[i],t)}})}function i(t,e){return o$1({descriptor:i=>{var r={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 n="symbol"==typeof i?Symbol():"__"+i;r.get=function(){var e,i;return void 0===this[n]&&(this[n]=null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null),this[n]}}return r}})}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})})}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})})}function l(t){var{slot:i,selector:r}=null!=t?t:{};return o$1({descriptor:n=>({get(){var n,s="slot"+(i?"[name=".concat(i,"]"):":not([name])"),a=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(s),o=null!=a?e(a,t):[];return r?o.filter(t=>t.matches(r)):o},enumerable:!0,configurable:!0})})}function o(t,e,i){var r,n=t;return"object"==typeof t?(n=t.slot,r=t):r={flatten:e},i?l({slot:n,flatten:e,selector:i}):o$1({descriptor:t=>({get(){var t,e,i="slot"+(n?"[name=".concat(n,"]"):":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(r))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}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 r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,r.get?r:{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.')}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),r=yield fetch(i.toString());e=yield r.json()}catch(t){throw new Error("An error occurred while trying to load the Lottie file from URL")}return e})).apply(this,arguments)}var REACT_ELEMENT_TYPE;_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,_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)},_assign=function(){return _assign=Object.assign||function(t){for(var e,i=1,r=arguments.length;inew 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),r=1;re+(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[r+1],t[0]);return new s$3(n,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"),r=window.litNonce;void 0!==r&&i.setAttribute("nonce",r),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,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 r=this._$Eh(i,e);void 0!==r&&(this._$Eu.set(r,i),t.push(r))}),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,r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){var n=this[t];this[e]=r,this.requestUpdate(t,n,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 r of i)this.createProperty(r,e[r])}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 r of i)e.unshift(S$1(r))}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,r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l$3,s=this.constructor._$Eh(t,n);if(void 0!==s&&!0===n.reflect){var a=(null!==(r=null===(i=n.converter)||void 0===i?void 0:i.toAttribute)&&void 0!==r?r:o$4.toAttribute)(e,n.type);this._$Ei=t,null==a?this.removeAttribute(s):this.setAttribute(s,a),this._$Ei=null}}_$AK(t,e){var i,r,n,s=this.constructor,a=s._$Eu.get(t);if(void 0!==a&&this._$Ei!==a){var o=s.getPropertyOptions(a),l=o.converter,A=null!==(n=null!==(r=null===(i=l)||void 0===i?void 0:i.fromAttribute)&&void 0!==r?r:"function"==typeof l?l:null)&&void 0!==n?n:o$4.fromAttribute;this._$Ei=a,this[a]=A(e,o.type),this._$Ei=null}}requestUpdate(t,e,i){var r=!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))):r=!1),!this.isUpdatePending&&r&&(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,r=new Array(i>1?i-1:0),n=1;n{var r,n,s=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e,a=s._$litPart$;if(void 0===a){var o=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=a=new N(e.insertBefore(h$1(),o),o,void 0,null!=i?i:{})}return a._$AI(t),a},A=l$2.createTreeWalker(l$2,129,null,!1),C=(t,e)=>{for(var i,r=t.length-1,n=[],s=2===e?"":"",o=c,l=0;l"===p[0]?(o=null!=i?i:c,d=-1):void 0===p[1]?d=-2:(d=o.lastIndex-p[2].length,h=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 y=o===f&&t[l+1].startsWith("/>")?" ":"";s+=o===c?A+n$3:d>=0?(n.push(h),A.slice(0,d)+"$lit$"+A.slice(d)+e$6+y):A+e$6+(-2===d?(n.push(void 0),l):y)}var E=s+(t[r]||"")+(2===e?"":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==s$1?s$1.createHTML(E):E,n]};class E{constructor(t,e){var i,{strings:r,_$litType$:n}=t;this.parts=[];var s=0,a=0,o=r.length-1,l=this.parts,[h,c]=C(r,n);if(this.el=E.createElement(h,e),A.currentNode=this.el.content,2===n){var p=this.el.content,d=p.firstChild;d.remove(),p.append(...d.childNodes)}for(;null!==(i=A.nextNode())&&l.length0){i.textContent=i$2?i$2.emptyScript:"";for(var x=0;x1&&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$:r}=t,n="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=E.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{var s=new V(n,this),a=s.p(this.options);s.m(i),this.S(a),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,r=0;for(var n of t)r===i.length?i.push(e=new N(this.M(h$1()),this.M(h$1()),this,this.options)):e=i[r],e._$AI(n),r++;r0&&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 r=e.nextSibling;e.remove(),e=r}}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,r,n){this.type=1,this._$AH=w,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,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,r=arguments.length>3?arguments[3]:void 0,n=this.strings,s=!1;if(void 0===n)t=P(this,t,e,0),(s=!r$1(t)||t!==this._$AH&&t!==b)&&(this._$AH=t);else{var a,o,l=t;for(t=n[0],a=0;a1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==e?e:w)!==b){var i=this._$AH,r=t===w&&i!==w||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==w&&(i===w||r);r&&this.element.removeEventListener(this.name,this,i),n&&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");var n$1=t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{var{kind:i,elements:r}=e;return{kind:i,elements:r,finisher(e){window.customElements.define(t,e)}}})(t,e),i$1=(t,e)=>"method"!==e.kind||!e.descriptor||"value"in e.descriptor?{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)}}:_objectSpread2(_objectSpread2({},e),{},{finisher(i){i.createProperty(e.key,t)}}),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,r)=>{var n;if(void 0===r){var s=null!==(n=t.originalKey)&&void 0!==n?n:t.key,a=null!=i?{kind:"method",placement:"prototype",key:s,descriptor:i(t.key)}:_objectSpread2(_objectSpread2({},t),{},{key:s});return null!=e&&(a.finisher=function(t){e(t,s)}),a}var o=t.constructor;void 0!==i&&Object.defineProperty(t,r,i(r)),null==e||e(o,r)}},n,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),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},lottie$1={exports:{}};(function(module){var root,factory;"undefined"!=typeof navigator&&(root=window||{},factory=function(window){function ProjectInterface(){return{}}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,r){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=r<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,r){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=r<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}function HSVtoRGB(t,e,i){var r,n,s,a,o,l,A,h;switch(l=i*(1-e),A=i*(1-(o=6*t-(a=Math.floor(6*t)))*e),h=i*(1-(1-o)*e),a%6){case 0:r=i,n=h,s=l;break;case 1:r=A,n=i,s=l;break;case 2:r=l,n=i,s=h;break;case 3:r=l,n=A,s=i;break;case 4:r=h,n=l,s=i;break;case 5:r=i,n=l,s=A}return[r,n,s]}function RGBtoHSV(t,e,i){var r,n=Math.max(t,e,i),s=Math.min(t,e,i),a=n-s,o=0===n?0:a/n,l=n/255;switch(n){case s:r=0;break;case t:r=e-i+a*(e1?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])}function BaseEvent(){}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(){}function extendPrototype(t,e){var i,r,n=t.length;for(i=0;i-.001&&a<.001}function e(t){this.segmentLength=0,this.points=new Array(t)}function i(t,e){this.partialLength=t,this.point=e}function r(t,e){var i=e.percents,r=e.lengths,n=i.length,s=bmFloor((n-1)*t),a=t*e.addedLength,o=0;if(s===n-1||0===s||a===r[s])return i[s];for(var l=r[s]>a?-1:1,A=!0;A;)if(r[s]<=a&&r[s+1]>a?(o=(a-r[s])/(r[s+1]-r[s]),A=!1):s+=l,s<0||s>=n-1){if(s===n-1)return i[s];A=!1}return i[s]+(i[s+1]-i[s])*o}var n,s=Math,a=function(t,e,i,r){var n,s,a,o,l,A,h=defaultCurveSegments,c=0,p=[],d=[],u=bezierLengthPool.newElement();for(a=i.length,n=0;n1&&(a=1);var h,c=r(a,A),p=r(o=o>1?1:o,A),d=t.length,u=1-c,f=1-p,m=u*u*u,g=c*u*u*3,y=c*c*u*3,v=c*c*c,E=u*u*f,C=c*u*f+u*c*f+u*u*p,b=c*c*f+u*c*p+c*u*p,_=c*c*p,w=u*f*f,I=c*f*f+u*p*f+u*f*p,x=c*p*f+u*p*p+c*f*p,S=c*p*p,B=f*f*f,T=p*f*f+f*p*f+f*f*p,P=p*p*f+f*p*p+p*f*p,k=p*p*p;for(h=0;hd?p>u?p-d-u:u-d-p:u>d?u-d-p:d-p-u)>-1e-4&&c<1e-4}}}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",r="normal",n=e.length,s=0;s0&&(this.maskElement.setAttribute("id",m),this.element.maskedElement.setAttribute(y,"url("+locationHref+"#"+m+")"),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 r=0,n=t.length;r1&&(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;i0||t>-1e-6&&t<0?M(1e4*t)/1e4:t}function B(){var t=this.props;return"matrix("+S(t[0])+","+S(t[1])+","+S(t[4])+","+S(t[5])+","+S(t[12])+","+S(t[13])+")"}var T=Math.cos,P=Math.sin,k=Math.tan,M=Math.round;return function(){this.reset=t,this.rotate=e,this.rotateX=i,this.rotateY=r,this.rotateZ=n,this.skew=a,this.skewFromAxis=o,this.shear=s,this.scale=l,this.setTransform=A,this.translate=h,this.transform=c,this.applyToPoint=m,this.applyToX=g,this.applyToY=y,this.applyToZ=v,this.applyToPointArray=w,this.applyToTriplePoints=_,this.applyToPointStringified=I,this.toCSS=x,this.to2dCSS=B,this.clone=u,this.cloneFromProps=f,this.equals=d,this.inversePoints=b,this.inversePoint=C,this.getInverseMatrix=E,this._t=this.transform,this.isIdentity=p,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();!function(t,e){function i(t){var e,i=t.length,r=this,n=0,s=r.i=r.j=0,a=r.S=[];for(i||(t=[i++]);n=c;)t/=2,e/=2,i>>>=1;return(t+i)/e};return y.int32=function(){return 0|g.g(4)},y.quick=function(){return g.g(4)/4294967296},y.double=y,s(a(g.S),t),(d.pass||u||function(t,i,n,s){return s&&(s.S&&r(s,g),t.state=function(){return r(g,{})}),n?(e.random=t,i):t})(y,m,"global"in d?d.global:this==e,d.state)},s(e.random(),t)}([],BMMath);var BezierFactory=function(){function t(t,e){return 1-3*e+3*t}function e(t,e){return 3*e-6*t}function i(t){return 3*t}function r(r,n,s){return((t(n,s)*r+e(n,s))*r+i(n))*r}function n(r,n,s){return 3*t(n,s)*r*r+2*e(n,s)*r+i(n)}function s(t){this._p=t,this._mSampleValues=A?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}var a={getBezierEasing:function(t,e,i,r,n){var a=n||("bez_"+t+"_"+e+"_"+i+"_"+r).replace(/\./g,"p");if(o[a])return o[a];var l=new s([t,e,i,r]);return o[a]=l,l}},o={},l=.1,A="function"==typeof Float32Array;return s.prototype={get:function(t){var e=this._p[0],i=this._p[1],n=this._p[2],s=this._p[3];return this._precomputed||this._precompute(),e===i&&n===s?t:0===t?0:1===t?1:r(this._getTForX(t),i,s)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],r=this._p[3];this._precomputed=!0,t===e&&i===r||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<11;++i)this._mSampleValues[i]=r(i*l,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],s=this._mSampleValues,a=0,o=1;10!==o&&s[o]<=t;++o)a+=l;var A=a+(t-s[--o])/(s[o+1]-s[o])*l,h=n(A,e,i);return h>=.001?function(t,e,i,s){for(var a=0;a<4;++a){var o=n(e,i,s);if(0===o)return e;e-=(r(e,i,s)-t)/o}return e}(t,A,e,i):0===h?A:function(t,e,i,n,s){var a,o,l=0;do{(a=r(o=e+(i-e)/2,n,s)-t)>0?i=o:e=o}while(Math.abs(a)>1e-7&&++l<10);return o}(t,a,a+l,e,i)}},a}();!function(){for(var t=0,e=["ms","moz","webkit","o"],i=0;i=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)r(t[e].ks.k);else for(s=t[e].ks.k.length,n=0;ni[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}function s(t){0!==t.t.a.length||"m"in t.t.p||(t.singleShape=!0)}var a,o=function(){function t(t){var e,i,r,n=t.length;for(e=0;e=0;i-=1)if("sh"===e[i].ty)if(e[i].ks.k.i)e[i].ks.k.c=e[i].closed;else for(n=e[i].ks.k.length,r=0;r0&&(h=!1),h){var c=createTag("style");c.setAttribute("f-forigin",s[n].fOrigin),c.setAttribute("f-origin",s[n].origin),c.setAttribute("f-family",s[n].fFamily),c.type="text/css",c.innerText="@font-face {font-family: "+s[n].fFamily+"; font-style: normal; src: url('"+s[n].fPath+"');}",r.appendChild(c)}}else if("g"===s[n].fOrigin||1===s[n].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),A=0;A=a.t-n){s.h&&(s=a),u=0;break}if(a.t-n>t){u=f;break}f=B||t=B?P.points.length-1:0;for(A=P.points[k].point.length,l=0;l=Q&&D=B)r[0]=y[0],r[1]=y[1],r[2]=y[2];else if(t<=T)r[0]=s.s[0],r[1]=s.s[1],r[2]=s.s[2];else{var G=e(s.s),q=e(y);v=r,E=function(t,e,i){var r,n,s,a,o,l=[],A=t[0],h=t[1],c=t[2],p=t[3],d=e[0],u=e[1],f=e[2],m=e[3];return(n=A*d+h*u+c*f+p*m)<0&&(n=-n,d=-d,u=-u,f=-f,m=-m),1-n>1e-6?(r=Math.acos(n),s=Math.sin(r),a=Math.sin((1-i)*r)/s,o=Math.sin(i*r)/s):(a=1-i,o=i),l[0]=a*A+o*d,l[1]=a*h+o*u,l[2]=a*c+o*f,l[3]=a*p+o*m,l}(G,q,(t-T)/(B-T)),C=E[0],b=E[1],_=E[2],w=E[3],I=Math.atan2(2*b*w-2*C*_,1-2*b*b-2*_*_),x=Math.asin(2*C*b+2*_*w),S=Math.atan2(2*C*w-2*b*_,1-2*C*C-2*_*_),v[0]=I/degToRads,v[1]=x/degToRads,v[2]=S/degToRads}else for(f=0;f=B?h=1:t=i&&t>=i||this._caching.lastFrame=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(t,this._caching);this.pv=r}return this._caching.lastFrame=t,this.pv}function r(t){var e;if("unidimensional"===this.propType)e=t*this.mult,c(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,r=this.v.length;i1e-5&&(this.v[i]=e,this._mdf=!0),i+=1}function n(){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=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(r=this.p.pv,n=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){r=[],n=[];var s=this.px,a=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(r[0]=s.getValueAtTime((s.keyframes[0].t+.01)/i,0),r[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),n[0]=s.getValueAtTime(s.keyframes[0].t/i,0),n[1]=a.getValueAtTime(a.keyframes[0].t/i,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(r[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/i,0),r[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),n[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/i,0),n[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)):(r=[s.pv,a.pv],n[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/i,s.offsetTime),n[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime))}else r=n=e;this.v.rotate(-Math.atan2(r[1]-n[1],r[0]-n[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],t),t.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,i,r){return new t(e,i,r)}}}();ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i=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[r]||s[r]&&!n)&&(s[r]=pointPool.newElement()),s[r][0]=t,s[r][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,r,n,s,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,r,"o",a,o),this.setXYAt(n,s,"i",a,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,r=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),n=1);var s,a=this._length-1,o=this._length;for(s=n;s=d[d.length-1].t-this.offsetTime)r=d[d.length-1].s?d[d.length-1].s[0]:d[d.length-2].e[0],s=!0;else{for(var u,f,m,g=p,y=d.length-1,v=!0;v&&(u=d[g],!((f=d[g+1]).t-this.offsetTime>t));)g=f.t-this.offsetTime)h=1;else if(ti&&t>i)||(this._caching.lastIndex=r=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var a,o,l=[],A=s.length;for(a=0;ar+i||(h=o.s*n<=r?0:(o.s*n-r)/i,c=o.e*n>=r+i?1:(o.e*n-r)/i,l.push([h,c]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e1?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 a=e;e=i,i=a}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 o,l,A,h,c,p=this.shapes.length,d=0;if(i===e)for(n=0;n=0;n-=1)if((u=this.shapes[n]).shape._mdf){for((f=u.localShapeCollection).releaseShapes(),2===this.m&&p>1?(g=this.calculateShapeEdges(e,i,u.totalShapeLength,E,d),E+=u.totalShapeLength):g=[[y,v]],l=g.length,o=0;o=1?m.push({s:u.totalShapeLength*(y-1),e:u.totalShapeLength*(v-1)}):(m.push({s:u.totalShapeLength*y,e:u.totalShapeLength}),m.push({s:0,e:u.totalShapeLength*(v-1)}));var C=this.addShapes(u,m[0]);if(m[0].s!==m[0].e){if(m.length>1)if(u.shape.paths.shapes[u.shape.paths._length-1].c){var b=C.pop();this.addPaths(C,f),C=this.addShapes(u,m[1],b)}else this.addPaths(C,f),C=this.addShapes(u,m[1]);this.addPaths(C,f)}}u.shape.paths=f}}},TrimModifier.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;ie.e){i.c=!1;break}e.s<=u&&e.e>=u+a.addedLength?(this.addSegment(p[r].v[n-1],p[r].o[n-1],p[r].i[n],p[r].v[n],i,o,m),m=!1):(A=bez.getNewSegment(p[r].v[n-1],p[r].v[n],p[r].o[n-1],p[r].i[n],(e.s-u)/a.addedLength,(e.e-u)/a.addedLength,l[n-1]),this.addSegmentFromArray(A,i,o,m),m=!1,i.c=!1),u+=a.addedLength,o+=1}if(p[r].c&&l.length){if(a=l[n-1],u<=e.e){var g=l[n-1].addedLength;e.s<=u&&e.e>=u+g?(this.addSegment(p[r].v[n-1],p[r].o[n-1],p[r].i[0],p[r].v[0],i,o,m),m=!1):(A=bez.getNewSegment(p[r].v[n-1],p[r].v[0],p[r].o[n-1],p[r].i[0],(e.s-u)/g,(e.e-u)/g,l[n-1]),this.addSegmentFromArray(A,i,o,m),m=!1,i.c=!1)}else i.c=!1;u+=a.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[h][0],i.v[h][1],"i",h),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),u>e.e)break;r0;)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;e0?Math.floor(p):Math.ceil(p),f=this.pMatrix.props,m=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,v,E=0;if(p>0){for(;Eu;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),E-=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-d,!0),E-=d)}for(r=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,s=this._currentCopies;s;){if(v=(i=(e=this.elemsData[r].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)*(r/(this._currentCopies-1)),0!==E){for((0!==r&&1===n||r!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),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]),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(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),y=0;y.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;t500)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}function n(t){var e={assetData:t},r=i(t,this.assetsPath,this.path);return dataManager.loadData(r,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function s(){this._imageLoaded=t.bind(this),this._footageLoaded=e.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=n.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}var a=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}();return s.prototype={loadAssets:function(t,e){var i;this.imagesLoadedCb=e;var r=t.length;for(i=0;i=o+ot||!u?(y=(o+ot-A)/l.partialLength,O=d.point[0]+(l.point[0]-d.point[0])*y,N=d.point[1]+(l.point[1]-d.point[1])*y,w.translate(-C[0]*S[n].an*.005,-C[1]*F*.01),h=!1):u&&(A+=l.partialLength,(c+=1)>=u.length&&(c=0,f[p+=1]?u=f[p].points:E.v.c?(c=0,u=f[p=0].points):(A-=l.partialLength,u=null)),u&&(d=l,m=(l=u[c]).partialLength));L=S[n].an/2-S[n].add,w.translate(-L,0,0)}else L=S[n].an/2-S[n].add,w.translate(-L,0,0),w.translate(-C[0]*S[n].an*.005,-C[1]*F*.01,0);for(k=0;k1,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 r;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(r=0;re);)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,r=[],n=0,s=t.length,a=!1;n=55296&&e<=56319?(i=t.charCodeAt(n+1))>=56320&&i<=57343?(a||FontManager.isModifier(e,i)?(r[r.length-1]+=t.substr(n,2),a=!1):r.push(t.substr(n,2)),n+=1):r.push(t.charAt(n)):e>56319?(i=t.charCodeAt(n+1),FontManager.isZeroWidthJoiner(e,i)?(a=!0,r[r.length-1]+=t.substr(n,2),n+=1):r.push(t.charAt(n))):FontManager.isZeroWidthJoiner(e)?(r[r.length-1]+=t.charAt(n),a=!0):r.push(t.charAt(n)),n+=1;return r},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,r,n,s,a,o,l=this.elem.globalData.fontManager,A=this.data,h=[],c=0,p=A.m.g,d=0,u=0,f=0,m=[],g=0,y=0,v=l.getFontByName(t.f),E=0,C=getFontProperties(v);t.fWeight=C.weight,t.fStyle=C.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var b,_=t.tr/1e3*t.finalSize;if(t.sz)for(var w,I,x=!0,S=t.sz[0],B=t.sz[1];x;){w=0,g=0,i=(I=this.buildFinalText(t.t)).length,_=t.tr/1e3*t.finalSize;var T=-1;for(e=0;eS&&" "!==I[e]?(-1===T?i+=1:e=T,w+=t.finalLineHeight||1.2*t.finalSize,I.splice(e,T===e?1:0,"\r"),T=-1,g=0):(g+=E,g+=_);w+=v.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&By?g:y,g=-2*_,n="",r=!0,f+=1):n=P,l.chars?(o=l.getCharData(P,v.fStyle,l.getFontByName(t.f).fFamily),E=r?0:o.w*t.finalSize/100):E=l.measureText(n,t.f,t.finalSize)," "===P?k+=E+_:(g+=E+_+k,k=0),h.push({l:E,an:E,add:d,n:r,anIndexes:[],val:n,line:f,animatorJustifyOffset:0}),2==p){if(d+=E,""===n||" "===n||e===i-1){for(""!==n&&" "!==n||(d-=E);u<=e;)h[u].an=d,h[u].ind=c,h[u].extra=E,u+=1;c+=1,d=0}}else if(3==p){if(d+=E,""===n||e===i-1){for(""===n&&(d-=E);u<=e;)h[u].an=d,h[u].ind=c,h[u].extra=E,u+=1;d=0,c+=1}}else h[c].ind=c,h[c].extra=0,c+=1;if(t.l=h,y=g>y?g:y,m.push(g),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=m;var M,D,Q,F,R=A.a;a=R.length;var L=[];for(s=0;s0?n=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(n,s,a,o).get,A=0,h=this.finalS,c=this.finalE,p=this.data.sh;if(2===p)A=l(A=c===h?t>=c?1:0:e(0,i(.5/(c-h)+(t-h)/(c-h),1)));else if(3===p)A=l(A=c===h?t>=c?0:1:1-e(0,i(.5/(c-h)+(t-h)/(c-h),1)));else if(4===p)c===h?A=0:(A=e(0,i(.5/(c-h)+(t-h)/(c-h),1)))<.5?A*=2:A=1-2*(A-.5),A=l(A);else if(5===p){if(c===h)A=0;else{var d=c-h,u=-d/2+(t=i(e(0,t+.5-h),c-h)),f=d/2;A=Math.sqrt(1-u*u/(f*f))}A=l(A)}else 6===p?(c===h?A=0:(t=i(e(0,t+.5-h),c-h),A=(1+Math.cos(Math.PI+2*Math.PI*t/(c-h)))/2),A=l(A)):(t>=r(h)&&(A=e(0,i(t-h<0?i(c,1)-(h-t):c-t,1))),A=l(A));if(100!==this.sm.v){var m=.01*this.sm.v;0===m&&(m=1e-8);var g=.5-.5*m;A1&&(A=1)}return A*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,r=this.s.v/e+i,n=this.e.v/e+i;if(r>n){var s=r;r=n,n=s}this.finalS=r,this.finalE=n}},extendPrototype([DynamicPropertyContainer],t),{getTextSelectorProp:function(e,i,r){return new t(e,i,r)}}}(),poolFactory=function(t,e,i){var r=0,n=t,s=createSizedArray(n);return{newElement:function(){return r?s[r-=1]:e()},release:function(t){r===n&&(s=pooling.double(s),n*=2),i&&i(t),s[r]=t,r+=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=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=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;ei&&"meet"===s||ri&&"slice"===s)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===o&&(ri&&"slice"===s)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===l&&(r>i&&"meet"===s||ri&&"meet"===s||r=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 r=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=0;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 r=this.layers[e];if(r.ddd&&this.supports3d)this.addTo3dContainer(i,e);else if(this.threeDElements)this.addTo3dContainer(i,e);else{for(var n,s,a=0;a=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRenderer.prototype.createThreeDContainer=function(t,e){var i,r,n=createTag("div");styleDiv(n);var s=createTag("div");if(styleDiv(s),"3d"===e){(i=n.style).width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var a="50% 50%";i.webkitTransformOrigin=a,i.mozTransformOrigin=a,i.transformOrigin=a;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=s.style).transform=o,r.webkitTransform=o}n.appendChild(s);var l={container:s,perspectiveElem:n,startPos:t,endPos:t,type:e};return this.threeDElements.push(l),l},HybridRenderer.prototype.build3dContainers=function(){var t,e,i=this.layers.length,r="";for(t=0;t=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRenderer.prototype.addTo3dContainer=function(t,e){for(var i=0,r=this.threeDElements.length;ia?(t=n/this.globalData.compSize.w,e=n/this.globalData.compSize.w,i=0,r=(s-this.globalData.compSize.h*(n/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,i=(n-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,r=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+r+",0,1)",o.transform=o.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,r=this.threeDElements.length;for(t=0;t1&&(s+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==s){var a="";i.elem&&(e.c&&(a=t.inv?this.solidPath+s:s),i.elem.setAttribute("d",a)),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,r=this.dynamicProperties.length;for(i=0;it?!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;t0;)l=e.transformers[f].mProps._mdf||l,u-=1,f-=1;if(l)for(u=g-e.styles[h].lvl,f=e.transformers.length-1;u>0;)d=e.transformers[f].mProps.v.props,p.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),u-=1,f-=1}else p=a;if(n=(c=e.sh.paths)._length,l){for(s="",r=0;r=1?y=.99:y<=-1&&(y=-.99);var v=o*y,E=Math.cos(g+e.a.v)*v+h[0],C=Math.sin(g+e.a.v)*v+h[1];l.setAttribute("fx",E),l.setAttribute("fy",C),A&&!e.g._collapsable&&(e.of.setAttribute("fx",E),e.of.setAttribute("fy",C))}}function s(t,e,i){var r=e.style,n=e.d;n&&(n._mdf||i)&&n.dashStr&&(r.pElem.setAttribute("stroke-dasharray",n.dashStr),r.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),e.c&&(e.c._mdf||i)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",e.w.v))}var a=new Matrix,o=new Matrix;return{createRenderFunction:function(a){switch(a.ty){case"fl":return i;case"gf":return n;case"gs":return r;case"st":return s;case"sh":case"el":case"rc":case"sr":return e;case"tr":return t;default:return null}}}}();ShapeTransformManager.prototype={addTransformSequence:function(t){var e,i=t.length,r="_";for(e=0;e=0;r-=1)i=t.transforms[r].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=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;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.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(){},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,r=[],n="";et?this.textSpans[t]:createNS(l?"path":"text"),v<=t&&(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=a,this.layerElement.appendChild(a)),a.style.display="inherit"),h.reset(),h.scale(i.finalSize/100,i.finalSize/100),p&&(o[t].n&&(d=-m,u+=i.yOffset,u+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(i,h,o[t].line,d,u),d+=o[t].l||0,d+=m),l?(A=(g=(y=this.globalData.fontManager.getCharData(i.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily))&&y.data||{}).shapes?g.shapes[0].it:[],p?c+=this.createPathShape(h,A):a.setAttribute("d",this.createPathShape(h,A))):(p&&a.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")"),a.textContent=o[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));p&&a&&a.setAttribute("d",c)}else{var E=this.textContainer,C="start";switch(i.j){case 1:C="end";break;case 2:C="middle";break;default:C="start"}E.setAttribute("text-anchor",C),E.setAttribute("letter-spacing",m);var b=this.buildTextContents(i.finalText);for(e=b.length,u=i.ps?i.ps[1]+i.ascent:0,t=0;t1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;o-=1){if((p=this.searchProcessedElement(t[o]))?e[o]=i[p-1]:t[o]._render=a,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty)p?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],n),t[o]._render&&e[o].style.pElem.parentNode!==r&&r.appendChild(e[o].style.pElem),f.push(e[o].style);else if("gr"===t[o].ty){if(p)for(A=e[o].it.length,l=0;l=A?d<0?r:n:r+p*Math.pow((s-t)/d,1/i),h[c]=a,c+=1,o+=256/255;return h.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,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=i*Math.cos(r),s=i*Math.sin(r);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;eo&&"xMidYMid slice"===l||a=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,r,n=this.element.finalTransform.mat,s=this.element.canvasContext,a=this.masksProperties.length;for(s.beginPath(),t=0;t=0;s-=1){if((l=this.searchProcessedElement(t[s]))?e[s]=i[l-1]:t[s]._shouldRender=r,"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],u),p.push(e[s].style);else if("gr"===t[s].ty){if(l)for(o=e[s].it.length,a=0;a=0;n-=1)"tr"===e[n].ty?(s=i[n].transform,this.renderShapeTransform(t,s)):"sh"===e[n].ty||"el"===e[n].ty||"rc"===e[n].ty||"sr"===e[n].ty?this.renderPath(e[n],i[n]):"fl"===e[n].ty?this.renderFill(e[n],i[n],s):"st"===e[n].ty?this.renderStroke(e[n],i[n],s):"gf"===e[n].ty||"gs"===e[n].ty?this.renderGradientFill(e[n],i[n],s):"gr"===e[n].ty?this.renderShape(s,e[n].it,i[n].it):e[n].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,r,n,s=t.trNodes,a=e.paths,o=a._length;s.length=0;var l=t.transforms.finalTransform;for(n=0;n=1?c=.99:c<=-1&&(c=-.99);var p=A*c,d=Math.cos(h+e.a.v)*p+o[0],u=Math.sin(h+e.a.v)*p+o[1];r=a.createRadialGradient(d,u,0,o[0],o[1],A)}var f=t.g.p,m=e.g.c,g=1;for(s=0;s0&&o<1&&c[p].push(this.calculateF(o,t,e,i,r,p)):(l=s*s-4*a*n)>=0&&((A=(-s+bmSqrt(l))/(2*n))>0&&A<1&&c[p].push(this.calculateF(A,t,e,i,r,p)),(h=(-s-bmSqrt(l))/(2*n))>0&&h<1&&c[p].push(this.calculateF(h,t,e,i,r,p))));this.shapeBoundingBox.left=bmMin.apply(null,c[0]),this.shapeBoundingBox.top=bmMin.apply(null,c[1]),this.shapeBoundingBox.right=bmMax.apply(null,c[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,c[1])},HShapeElement.prototype.calculateF=function(t,e,i,r,n,s){return bmPow(1-t,3)*e[s]+3*bmPow(1-t,2)*t*i[s]+3*(1-t)*bmPow(t,2)*r[s]+bmPow(t,3)*n[s]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,r=t.length;for(i=0;i=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=0;t-=1){var r=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.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 n;n=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(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),a=[n[0]/s,n[1]/s,n[2]/s],o=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],o),A=Math.atan2(a[0],-a[2]);this.mat.rotateY(A).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 h=!this._prevMat.equals(this.mat);if((h||this.pe._mdf)&&this.comp.threeDElements){var c,p,d;for(e=this.comp.threeDElements.length,t=0;t=0;e-=1)A[e].animation.destroy(t)},l.freeze=function(){u=!0},l.unfreeze=function(){u=!1,o()},l.setVolume=function(t,e){var i;for(i=0;ithis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,r=this.animationData.layers,n=r.length,s=t.layers,a=s.length;for(i=0;ithis.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.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]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;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(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,r=t.length;for(i=0;ii){var r=i;i=e,e=r}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}function degreesToRadians(t){return t*degToRads}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 r=Math.min(t.length,e.length),n=0;for(i=0;i.5?A/(2-a-o):A/(a+o),a){case r:e=(n-s)/A+(n1&&(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,r,n=t[0],s=t[1],a=t[2];if(0===s)e=a,r=a,i=a;else{var o=a<.5?a*(1+s):a+s-a*s,l=2*a-o;e=hue2rgb(l,o,n+1/3),i=hue2rgb(l,o,n),r=hue2rgb(l,o,n-1/3)}return[e,i,r,t[3]]}function linear(t,e,i,r,n){if(void 0!==r&&void 0!==n||(r=e,n=i,e=0,i=1),i=i)return n;var a,o=i===e?0:(t-e)/(i-e);if(!r.length)return r+(n-r)*o;var l=r.length,A=createTypedArray("float32",l);for(a=0;a1?e=1:e<0&&(e=0);var a=t(e);if($bm_isInstanceOfArray(n)){var o,l=n.length,A=createTypedArray("float32",l);for(o=0;odata.k[e].t&&tdata.k[e+1].t-t?(i=e+2,r=data.k[e+1].t):(i=e+1,r=data.k[e].t);break}}-1===i&&(i=e+1,r=data.k[e].t)}else i=0,r=0;var s={};return s.index=i,s.time=r/elem.comp.globalData.frameRate,s}function key(t){var e,i,r;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 n=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(r=n.length,i=0;i1){for(r=0;rA.length-1)&&(e=A.length-1),r=h-(n=A[A.length-1-e].t)),"pingpong"===t){if(Math.floor((l-n)/r)%2!=0)return this.getValueAtTime((r-(l-n)%r+n)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var c=this.getValueAtTime(n/this.comp.globalData.frameRate,0),p=this.getValueAtTime(h/this.comp.globalData.frameRate,0),d=this.getValueAtTime(((l-n)%r+n)/this.comp.globalData.frameRate,0),u=Math.floor((l-n)/r);if(this.pv.length){for(a=(o=new Array(c.length)).length,s=0;s=h)return this.pv;if(i?n=h+(r=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-h)):((!e||e>A.length-1)&&(e=A.length-1),r=(n=A[e].t)-h),"pingpong"===t){if(Math.floor((h-l)/r)%2==0)return this.getValueAtTime(((h-l)%r+h)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var c=this.getValueAtTime(h/this.comp.globalData.frameRate,0),p=this.getValueAtTime(n/this.comp.globalData.frameRate,0),d=this.getValueAtTime((r-(h-l)%r+h)/this.comp.globalData.frameRate,0),u=Math.floor((h-l)/r)+1;if(this.pv.length){for(a=(o=new Array(c.length)).length,s=0;s1?(n+t-s)/(e-1):1,o=0,l=0;for(i=this.pv.length?createTypedArray("float32",this.pv.length):0;oa){var h=o,c=i.c&&o===l-1?0:o+1,p=(a-A)/s[o].addedLength;r=bez.getPointInSegment(i.v[h],i.v[c],i.o[h],i.i[c],p,s[o]);break}A+=s[o].addedLength,o+=1}return r||(r=i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]]),r},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var r=this.pointOnPath(t,e),n=this.pointOnPath(t+.001,e),s=n[0]-r[0],a=n[1]-r[1],o=Math.sqrt(Math.pow(s,2)+Math.pow(a,2));return 0===o?[0,0]:"tangent"===i?[s/o,a/o]:[-a/o,s/o]},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([s],l),extendPrototype([s],A),A.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.lastTime0&&void 0!==arguments[0])||arguments[0];if(this.shadowRoot){var e=this.shadowRoot.querySelector(".animation svg"),i=(new XMLSerializer).serializeToString(e);if(t){var r=document.createElement("a");r.href="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(i)),r.download="download_".concat(this.seeker,".svg"),document.body.appendChild(r),r.click(),document.body.removeChild(r)}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._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([' \n \n ',"\n \n ","\n "])),t,this.description,e,this.background,this.currentState===exports.PlayerState.Error?$(_templateObject2||(_templateObject2=_taggedTemplateLiteral(['
⚠️
']))):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 \n \n ','\n \n \n \n \n \n \n \n \n \n '])),this.togglePlay,t||e?"active":"",$(t?_templateObject4||(_templateObject4=_taggedTemplateLiteral(['