1!function(e,t){"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:void 0,function(){function e(){}var t=e.prototype;return t.on=function(e,t){var i;return e&&t&&((i=(i=this._events=this._events||{})[e]=i[e]||[]).includes(t)||i.push(t)),this},t.once=function(e,t){var i;return e&&t&&(this.on(e,t),((i=this._onceEvents=this._onceEvents||{})[e]=i[e]||{})[t]=!0),this},t.off=function(e,t){e=this._events&&this._events[e];return e&&e.length&&(-1!=(t=e.indexOf(t))&&e.splice(t,1)),this},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var o=this._onceEvents&&this._onceEvents[e],n=_createForOfIteratorHelperLoose(i);!(s=n()).done;){var s=s.value;o&&o[s]&&(this.off(e,s),delete o[s]),s.apply(this,t)}}return this},t.allOff=function(){return delete this._events,delete this._onceEvents,this},e}),function(e,t){"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:void 0,function(t,e){var s=t.jQuery,r=t.console;function h(e,t,i){if(!(this instanceof h))return new h(e,t,i);var o,n=e;(n="string"==typeof e?document.querySelectorAll(e):n)?(this.elements=(o=n,Array.isArray(o)?o:"object"==typeof o&&"number"==typeof o.length?[].concat(o):[o]),this.options={},"function"==typeof t?i=t:Object.assign(this.options,t),i&&this.on("always",i),this.getImages(),s&&(this.jqDeferred=new s.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(n||e))}(h.prototype=Object.create(e.prototype)).getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};var a=[1,9,11],n=(h.prototype.addElementImages=function(e){"IMG"===e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&a.includes(t)){for(var t=e.querySelectorAll("img"),i=_createForOfIteratorHelperLoose(t);!(o=i()).done;){var o=o.value;this.addImage(o)}if("string"==typeof this.options.background)for(var t=e.querySelectorAll(this.options.background),n=_createForOfIteratorHelperLoose(t);!(s=n()).done;){var s=s.value;this.addElementBackgroundImages(s)}}},/url\((['"])?(.*?)\1\)/gi);function i(e){this.img=e}function o(e,t){this.url=e,this.element=t,this.img=new Image}return h.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=n.exec(t.backgroundImage);null!==i;){var o=i&&i[2];o&&this.addBackground(o,e),i=n.exec(t.backgroundImage)}},h.prototype.addImage=function(e){e=new i(e);this.images.push(e)},h.prototype.addBackground=function(e,t){e=new o(e,t);this.images.push(e)},h.prototype.check=function(){var t,o=this;this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?(t=function(e,t,i){setTimeout(function(){o.progress(e,t,i)})},this.images.forEach(function(e){e.once("progress",t),e.check()})):this.complete()},h.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+i,e,t)},h.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(e=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[e](this))},(i.prototype=Object.create(e.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},i.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},i.prototype.confirm=function(e,t){this.isLoaded=e;
1e=this.img.parentNode,e="PICTURE"===e.nodeName?e:this.img;this.emitEvent("progress",[this,e,t])},i.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(o.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},o.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},o.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},(h.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((s=e).fn.imagesLoaded=function(e,t){return new h(this,e,t).jqDeferred.promise(s(this))})})(),h}); 2!function(e,i){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)}(window,function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,l=void 0===n?function(){}:function(t){n.error(t)};function o(h,u,d){(d=d||e||t.jQuery)&&(u.prototype.option||(u.prototype.option=function(t){d.isPlainObject(t)&&(this.options=d.extend(!0,this.options,t))}),d.fn[h]=function(t){var e,n,o,s,r,a;return"string"==typeof t?(e=i.call(arguments,1),o=e,r="$()."+h+'("'+(n=t)+'")',(e=this).each(function(t,e){var i,e=d.data(e,h);e?(i=e[n])&&"_"!=n.charAt(0)?(i=i.apply(e,o),s=void 0===s?i:s):l(r+" is not a valid method"):l(h+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==s?s:e):(a=t,this.each(function(t,e){var i=d.data(e,h);i?(i.option(a),i._init()):(i=new u(e,a),d.data(e,h,i))}),this)},s(d))}function s(t){t&&!t.bridget&&(t.bridget=o)}return s(e||t.jQuery),o}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var i;if(t&&e)return i=this._events=this._events||{},i=i[t]=i[t]||[],-1==i.indexOf(e)&&i.push(e),this},e.once=function(t,e){var i;if(t&&e)return this.on(t,e),i=this._onceEvents=this._onceEvents||{},(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length)return e=t.indexOf(e),-1!=e&&t.splice(e,1),this},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var s=i[o];n&&n[s]&&(this.off(t,s),delete n[s]),s.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function g(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var e="undefined"==typeof console?function(){}:function(t){console.error(t)},y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],v=y.length;function _(t){t=getComputedStyle(t);return t||e("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}var z,E=!1;function b(t){if(E||(E=!0,(d=document.createElement("div")).style.width="200px",d.style.padding="1px 2px 3px 4px",d.style.borderStyle="solid",d.style.borderWidth="1px 2px 3px 4px",d.style.boxSizing="border-box",(u=document.body||document.documentElement).appendChild(d),s=_(d),z=200==Math.round(g(s.width)),b.isBoxSizeOuter=z,u.removeChild(d)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var e=_(t);if("none"==e.display){for(var i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0;n<v;n++)i[y[n]]=0;return i}for(var o={},s=(o.width=t.offsetWidth,o.height=t.offsetHeight,o.isBorderBox="border-box"==e.boxSizing),r=0;r<v;r++){var a=y[r],h=e[a],h=parseFloat(h);o[a]=isNaN(h)?0:h}var u=o.paddingLeft+o.paddingRight,d=o.paddingTop+o.paddingBottom,t=o.marginLeft+o.marginRight,l=o.marginTop+o.marginBottom,c=o.borderLeftWidth+o.borderRightWidth,f=o.borderTopWidth+o.borderBottomWidth,m=s&&z,p=g(e.width),p=(!1!==p&&(o.width=p+(m?0:u+c)),g(e.height));return!1!==p&&(o.height=p+(m?0:d+f)),o.innerWidth=o.width-(u+c),o.innerHeight=o.height-(d+f),o.outerWidth=o.width+t,o.outerHeight=o.height+l,o}}return b}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var i=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(t,e){return t[i](e)}}),function(e,i){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
2sandro-matches-selector/matches-selector"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("desandro-matches-selector")):e.fizzyUIUtils=i(e,e.matchesSelector)}(window,function(i,s){var h={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice,u=(h.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},h.removeFrom=function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},h.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,s(t,e))return t},h.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},h.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.filterFindElements=function(t,n){t=h.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(n){s(t,n)&&o.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)o.push(e[i])}else o.push(t)}),o},h.debounceMethod=function(t,e,n){n=n||100;var o=t.prototype[e],s=e+"Timeout";t.prototype[e]=function(){var t=this[s],e=(clearTimeout(t),arguments),i=this;this[s]=setTimeout(function(){o.apply(i,e),delete i[s]},n)}},h.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},h.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()},i.console);return h.htmlInit=function(r,a){h.docReady(function(){var t=h.toDashed(a),n="data-"+t,e=document.querySelectorAll("["+n+"]"),t=document.querySelectorAll(".js-"+t),e=h.makeArray(e).concat(h.makeArray(t)),o=n+"-options",s=i.jQuery;e.forEach(function(e){var t,i=e.getAttribute(n)||e.getAttribute(o);try{t=i&&JSON.parse(i)}catch(t){return void(u&&u.error("Error parsing "+n+" on "+e.className+": "+t))}i=new r(e,t);s&&s.data(e,a,i)})})},h}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";var i=document.documentElement.style,n="string"==typeof i.transition?"transition":"WebkitTransition",i="string"==typeof i.transform?"transform":"WebkitTransform",o={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],s={transform:i,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function r(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}t=r.prototype=Object.create(t.prototype);t.constructor=r,t._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getSize=function(){this.size=e(this.element)},t.css=function(t){var e,i=this.element.style;for(e in t)i[s[e]||e]=t[e]},t.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],t=t[i?"top":"bottom"],o=parseFloat(n),s=parseFloat(t),r=this.layout.size;-1!=n.indexOf("%")&&(o=o/100*r.width),-1!=t.indexOf("%")&&(s=s/100*r.height),o=isNaN(o)?0:o,s=isNaN(s)?0:s,o-=e?r.paddingLeft:r.paddingRight,s-=i?r.paddingTop:r.paddingBottom,this.position.x=o,this.position.y=s},t.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"right":"left",s=this.position.x+t[i?"paddingLeft":"paddingRight"],i=(e[i?"left":"right"]=this.getXValue(s),e[o]="",n?"paddingTop":"paddingBottom"),s=n?"bottom":"top",o=this.position.y+t[i];e[n?"top":"bottom"]=this.getYValue(o),e[s]="",this.css(e),this.emitEvent("layout",[this])},t.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},t.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},t._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;this.setPosition(t,e),o&&!this.isTransitioning?this.layoutPosition():((o={}).transform=this.getTranslate(t-i,e-n),this.transition({to:o,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0}))},t.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},t.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},t.moveTo=t._transitionTo,t.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},t._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},t.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,i=this._transn;for(e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var a="opacity,"+i.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()}),h=(t.enableTransition=function(){var t;this.isTransitioning||(t="number"==typeof(t=this.layout.options.transitionDuration)?t+"ms":t,this.css({transitionProperty:a,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(o,this,!1))},t.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},t.onotransitionend=function(t){this.ontransitionend(t)}
2,{"-webkit-transform":"transform"}),u=(t.ontransitionend=function(t){var e,i;t.target===this.element&&(e=this._transn,i=h[t.propertyName]||t.propertyName,delete e.ingProperties[i],function(t){for(var e in t)return;return 1}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this]))},t.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},t._removeStyles=function(t){var e,i={};for(e in t)i[e]="";this.css(i)},{transitionProperty:"",transitionDuration:"",transitionDelay:""});return t.removeTransitionStyles=function(){this.css(u)},t.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},t.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},t.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},t.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},t.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},t.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},t.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},t.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},t.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},r}),function(o,s){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,n){return s(o,t,e,i,n)}):"object"==typeof module&&module.exports?module.exports=s(o,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):o.Outlayer=s(o,o.EvEmitter,o.getSize,o.fizzyUIUtils,o.Outlayer.Item)}(window,function(t,e,o,n,s){"use strict";function i(){}var r=t.console,a=t.jQuery,h=0,u={};function d(t,e){var i=n.getQueryElement(t);i?(this.element=i,a&&(this.$element=a(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),e=++h,this.element.outlayerGUID=e,(u[e]=this)._create(),this._getOption("initLayout")&&this.layout()):r&&r.error("Bad element for "+this.constructor.namespace+": "+(i||t))}d.namespace="outlayer",d.Item=s,d.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var l=d.prototype;function c(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}n.extend(l,e.prototype),l.option=function(t){n.extend(this.options,t)},l._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},d.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},l._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},l.reloadItems=function(){this.items=this._itemize(this.element.children)},l._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var s=new i(e[o],this);n.push(s)}return n},l._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},l.getItemElements=function(){return this.items.map(function(t){return t.element})},l.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0}
2,l._init=l.layout,l._resetLayout=function(){this.getSize()},l.getSize=function(){this.size=o(this.element)},l._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),this[t]=i?o(i)[e]:n):this[t]=0},l.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},l._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},l._layoutItems=function(t,i){var n;this._emitCompleteOnItems("layout",t),t&&t.length&&(n=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n))},l._getItemLayoutPosition=function(){return{x:0,y:0}},l._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},l.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var t=t.match(/(^\d*\.?\d*)(\w*)/),e=t&&t[1],t=t&&t[2];if(!e.length)return 0;e=parseFloat(e);t=f[t]||1;return e*t}(t),this.stagger;this.stagger=0},l._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},l._postLayout=function(){this.resizeContainer()},l.resizeContainer=function(){var t;!this._getOption("resizeContainer")||(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},l._getContainerSize=i,l._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},l._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o,s=t.length;function r(){++o==s&&n()}t&&s?(o=0,t.forEach(function(t){t.once(e,r)})):n()},l.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n),a&&(this.$element=this.$element||a(this.element),e?((n=a.Event(e)).type=t,this.$element.trigger(n,i)):this.$element.trigger(t,i))},l.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},l.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},l.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},l.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},l._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},l._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},l._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},l._manageStamp=i,l._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=o(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},l.handleEvent=n.handleEvent,l.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},l.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},l.onresize=function(){this.resize()},n.debounceMethod(d,"onresize",100),l.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},l.needsResizeLayout=function(){var t=o(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},l.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},l.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},l.prepended=function(t){var e,t=this._itemize(t);t.length&&(e=this.items.slice(0),this.items=t.concat(e),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(e))},l.reveal=function(t){var i;this._emitCompleteOnItems("reveal",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.reveal()}))},l.hide=function(t){var i;this._emitCompleteOnItems("hide",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.hide()}))},l.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},l.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},l.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},l.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},l.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},l.destroy=function(){var t=this.element.style,t=(t.height="",t.position="",t.width="",this.items.forEac
2h(function(t){t.destroy()}),this.unbindResize(),this.element.outlayerGUID);delete u[t],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},d.data=function(t){t=(t=n.getQueryElement(t))&&t.outlayerGUID;return t&&u[t]},d.create=function(t,e){var i=c(d);return i.defaults=n.extend({},d.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},d.compatOptions),i.namespace=t,i.data=d.data,i.Item=c(s),n.htmlInit(i,t),a&&a.bridget&&a.bridget(t,i),i};var f={ms:1,s:1e3};return d.Item=s,d}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,a){var t=t.create("masonry"),e=(t.compatOptions.fitWidth="isFitWidth",t.prototype);return e._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},e.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(t=(t=this.items[0])&&t.element,this.columnWidth=t&&a(t).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,i=e/t,e=t-e%t,i=Math[e&&e<1?"round":"floor"](i);this.cols=Math.max(i,1)},e.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,t=a(t);this.containerWidth=t&&t.innerWidth},e._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,e=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),e=Math.min(e,this.cols),i=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](e,t),n={x:this.columnWidth*i.col,y:i.y},o=i.y+t.size.outerHeight,s=e+i.col,r=i.col;r<s;r++)this.colYs[r]=o;return n},e._getTopColPosition=function(t){var t=this._getTopColGroup(t),e=Math.min.apply(Math,t);return{col:t.indexOf(e),y:e}},e._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},e._getColGroupY=function(t,e){if(e<2)return this.colYs[t];t=this.colYs.slice(t,t+e);return Math.max.apply(Math,t)},e._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,e=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=e?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},e._manageStamp=function(t){var e=a(t),t=this._getElementOffset(t),i=this._getOption("originLeft")?t.left:t.right,n=i+e.outerWidth,i=Math.floor(i/this.columnWidth),i=Math.max(0,i),o=Math.floor(n/this.columnWidth);o-=n%this.columnWidth?0:1;for(var o=Math.min(this.cols-1,o),s=(this._getOption("originTop")?t.top:t.bottom)+e.outerHeight,r=i;r<=o;r++)this.colYs[r]=Math.max(s,this.colYs[r])},e._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},e._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},e.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},t}); 3!function(){"use strict";var t,n,o,l,a,d,e;"undefined"!=typeof window&&(t=window.navigator.userAgent.match(/Edge\/(\d{2})\./),n=!!t&&16<=parseInt(t[1],10),"objectFit"in document.documentElement.style==!1||n?(o=function(t){var e=window.getComputedStyle(t,null),i=e.getPropertyValue("position"),n=e.getPropertyValue("overflow"),e=e.getPropertyValue("display");i&&"static"!==i||(t.style.position="relative"),"hidden"!==n&&(t.style.overflow="hidden"),e&&"inline"!==e||(t.style.display="block"),0===t.clientHeight&&(t.style.height="100%"),-1===t.className.indexOf("object-fit-polyfill")&&(t.className=t.className+" object-fit-polyfill")},l=function(t){var e,i=window.getComputedStyle(t,null),n={"max-width":"none","max-height":"none","min-width":"0px","min-height":"0px",top:"auto",right:"auto",bottom:"auto",left:"auto","margin-top":"0px","margin-right":"0px","margin-bottom":"0px","margin-left":"0px"};for(e in n)i.getPropertyValue(e)!==n[e]&&(t.style[e]=n[e])}
3,a=function(t,e,i){var n,o,l,a,d;if((i=i.split(" ")).length<2&&(i[1]=i[0]),"x"===t)n=i[0],o=i[1],l="left",a="right",d=e.clientWidth;else{if("y"!==t)return;n=i[1],o=i[0],l="top",a="bottom",d=e.clientHeight}n===l||o===l?e.style[l]="0":n===a||o===a?e.style[a]="0":"center"===n||"50%"===n?(e.style[l]="50%",e.style["margin-"+l]=d/-2+"px"):0<=n.indexOf("%")?(n=parseInt(n))<50?(e.style[l]=n+"%",e.style["margin-"+l]=d*(n/-100)+"px"):(e.style[a]=(n=100-n)+"%",e.style["margin-"+a]=d*(n/-100)+"px"):e.style[l]=n},d=function(t){var e=(e=t.dataset?t.dataset.objectFit:t.getAttribute("data-object-fit"))||"cover",i=(t.dataset?t.dataset.objectPosition:t.getAttribute("data-object-position"))||"50% 50%",n=t.parentNode;o(n),l(t),t.style.position="absolute",t.style.height="100%",t.style.width="auto","scale-down"===e&&(t.style.height="auto",t.clientWidth<n.clientWidth&&t.clientHeight<n.clientHeight?(a("x",t,i),a("y",t,i)):(e="contain",t.style.height="100%")),"none"===e?(t.style.width="auto",t.style.height="auto",a("x",t,i),a("y",t,i)):"cover"===e&&t.clientWidth>n.clientWidth||"contain"===e&&t.clientWidth<n.clientWidth?(t.style.top="0",t.style.marginTop="0",a("x",t,i)):"scale-down"!==e&&(t.style.width="100%",t.style.height="auto",t.style.left="0",t.style.marginLeft="0",a("y",t,i))},e=function(t){if(void 0===t)t=document.querySelectorAll("[data-object-fit]");else if(t&&t.nodeName)t=[t];else if("object"!=typeof t||!t.length||!t[0].nodeName)return!1;for(var e,i=0;i<t.length;i++)t[i].nodeName&&("img"!==(e=t[i].nodeName.toLowerCase())||n?"video"===e&&(0<t[i].readyState?d(t[i]):t[i].addEventListener("loadedmetadata",function(){d(this)})):t[i].complete?d(t[i]):t[i].addEventListener("load",function(){d(this)}));return!0},document.addEventListener("DOMContentLoaded",function(){e()}),window.addEventListener("resize",function(){e()}),window.objectFitPolyfill=e):window.objectFitPolyfill=function(){return!1})}(); 4!function(e,i){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)}(window,function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,d=void 0===n?function(){}:function(t){n.error(t)};function s(l,h,c){(c=c||e||t.jQuery)&&(h.prototype.option||(h.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),c.fn[l]=function(t){var e,n,s,o,r,a;return"string"==typeof t?(e=i.call(arguments,1),s=e,r="$()."+l+'("'+(n=t)+'")',(e=this).each(function(t,e){var i,e=c.data(e,l);e?(i=e[n])&&"_"!=n.charAt(0)?(i=i.apply(e,s),o=void 0===o?i:o):d(r+" is not a valid method"):d(l+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==o?o:e):(a=t,this.each(function(t,e){var i=c.data(e,l);i?(i.option(a),i._init()):(i=new h(e,a),c.data(e,l,i))}),this)},o(c))}function o(t){t&&!t.bridget&&(t.bridget=s)}return o(e||t.jQuery),s}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var i;if(t&&e)return i=this._events=this._events||{},i=i[t]=i[t]||[],-1==i.indexOf(e)&&i.push(e),this},e.once=function(t,e){var i;if(t&&e)return this.on(t,e),i=this._onceEvents=this._onceEvents||{},(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length)return e=t.indexOf(e),-1!=e&&t.splice(e,1),this},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],s=0;s<i.length;s++){var o=i[s];n&&n[o]&&(this.off(t,o),delete n[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function m(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var e="undefined"==typeof console?function(){}:function(t){console.error(t)},v=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],y=v.length;function b(t){t=getComputedStyle(t);return t||e("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}var E,S=!1;function C(t){if(S||(S=!0,(c=document.createElement("div")).style.width="200px",c.style.padding="1px 2px 3px 4px",c.style.borderStyle="solid",c.style.borderWidth="1px 2px 3px 4px",c.style.boxSizing="border-box",(h=document.body||document.documentElement).appendChild(c),o=b(c),E=200==Math.round(m(o.width)),C.isBoxSizeOuter=E,h.removeChild(c)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var e=b(t);if("none"==e.display){for(var i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0;n<y;n++)i[v[n]]=0;return i}for(var s={},o=(s.width=t.offsetWidth,s.height=t.offsetHeight,s.isBorderBox="border-box"==e.boxSizing),r=0;r<y;r++){var a=v[r],l=e[a],l=parseFloat(l);s[a]=isNaN(l)?0:l}var h=s.paddingLeft+s.paddingRight,c=s.paddingTop+s.paddingBottom,t=s.marginLeft+s.marginRight,d=s.marginTop+s.marginBottom,u=s.borderLeftWidth+s.borderRightWidth,p=s.borderTopWidth+s.borderBottomWidth,f=o&&E,g=m(e.width),g=(!1!==g&&(s.width=g+(f?0:h+u)),m(e.height));return!1!==g&&(s.height=g+(f?0:c+p)),s.innerWidth=s.width-(h+u),s.innerHeight=s.height-(c+p),s.outerWidth=s.width+t,s.outerHeight=s.height+d,s}}return C}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var i=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(t,e){return t[i](e)}}),function(e,i){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
4sandro-matches-selector/matches-selector"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("desandro-matches-selector")):e.fizzyUIUtils=i(e,e.matchesSelector)}(window,function(i,o){var l={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice,h=(l.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},l.removeFrom=function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},l.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,o(t,e))return t},l.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},l.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.filterFindElements=function(t,n){t=l.makeArray(t);var s=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(n){o(t,n)&&s.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)s.push(e[i])}else s.push(t)}),s},l.debounceMethod=function(t,e,n){n=n||100;var s=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o],e=(clearTimeout(t),arguments),i=this;this[o]=setTimeout(function(){s.apply(i,e),delete i[o]},n)}},l.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},l.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()},i.console);return l.htmlInit=function(r,a){l.docReady(function(){var t=l.toDashed(a),n="data-"+t,e=document.querySelectorAll("["+n+"]"),t=document.querySelectorAll(".js-"+t),e=l.makeArray(e).concat(l.makeArray(t)),s=n+"-options",o=i.jQuery;e.forEach(function(e){var t,i=e.getAttribute(n)||e.getAttribute(s);try{t=i&&JSON.parse(i)}catch(t){return void(h&&h.error("Error parsing "+n+" on "+e.className+": "+t))}i=new r(e,t);o&&o.data(e,a,i)})})},l}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(t){return e(0,t)}):"object"==typeof module&&module.exports?module.exports=e(0,require("get-size")):(t.Flickity=t.Flickity||{},t.Flickity.Cell=e(0,t.getSize))}(window,function(t,e){function i(t,e){this.element=t,this.parent=e,this.create()}var n=i.prototype;return n.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0,this.element.style[this.parent.originSide]=0},n.destroy=function(){this.unselect(),this.element.style.position="";var t=this.parent.originSide;this.element.style[t]="",this.element.style.transform="",this.element.removeAttribute("aria-hidden")},n.getSize=function(){this.size=e(this.element)},n.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},n.updateTarget=n.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},n.renderPosition=function(t){var e;!1===this.element.classList.contains("sgs-transform")?(e=this.parent.originSide,this.element.style[e]=this.parent.getPositionValue(t)):(e="left"===this.parent.originSide?1:-1,t=this.parent.options.percentPosition?t*e*(this.parent.size.innerWidth/this.size.width):t*e,this.element.style.transform="translateX("+this.parent.getPositionValue(t)+")")},n.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},n.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},n.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},n.remove=function(){this.element.parentNode.removeChild(this.element)},i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/slide",e):"object"==typeof module&&module.exports?module.exports=e():(t.Flickity=t.Flickity||{},t.Flickity.Slide=e())}(window,function(){"use strict";function t(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}var e=t.prototype;return e.addCell=function(t){var e;this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1==this.cells.length&&(this.x=t.x,e=this.isOriginLeft?"marginLeft":"marginRight",this.firstMargin=t.size[e])},e.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft",e=this.getLastCell(),e=e?e.size[t]:0,t=this.outerWidth-(this.firstMargin+e);this.target=this.x+this.firstMargin+t*this.parent.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]}
4,e.select=function(){this.cells.forEach(function(t){t.select()})},e.unselect=function(){this.cells.forEach(function(t){t.unselect()})},e.getCellElements=function(){return this.cells.map(function(t){return t.element})},t}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/animate",["fizzy-ui-utils/utils"],function(t){return e(0,t)}):"object"==typeof module&&module.exports?module.exports=e(0,require("fizzy-ui-utils")):(t.Flickity=t.Flickity||{},t.Flickity.animatePrototype=e(0,t.fizzyUIUtils))}(window,function(t,e){var i={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var t,e=this.x;this.integratePhysics(),this.positionSlider(),this.settle(e),this.isAnimating&&(t=this,requestAnimationFrame(function(){t.animate()}))},positionSlider:function(){var t=this.x;this.options.wrapAround&&1<this.cells.length&&(t=e.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t)),this.setTranslateX(t,this.isAnimating),this.dispatchScrollEvent()},setTranslateX:function(t,e){t+=this.cursorPosition,t=this.options.rightToLeft?-t:t;t=this.getPositionValue(t);this.slider.style.transform=e?"translate3d("+t+",0,0)":"translateX("+t+")"},dispatchScrollEvent:function(){var t,e=this.slides[0];e&&(t=(e=-this.x-e.target)/this.slidesWidth,this.dispatchEvent("scroll",null,[t,e]))},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},settle:function(t){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*t)||this.restingFrames++,2<this.restingFrames&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(t){var e=this.cursorPosition+t,e=(this._shiftCells(this.beforeShiftCells,e,-1),this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition));this._shiftCells(this.afterShiftCells,e,1)},_shiftCells:function(t,e,i){for(var n=0;n<t.length;n++){var s=t[n];s.wrapShift(0<e?i:0),e-=s.size.outerWidth}},_unshiftCells:function(t){if(t&&t.length)for(var e=0;e<t.length;e++)t[e].wrapShift(0)},integratePhysics:function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},applyForce:function(t){this.velocity+=t},getFrictionFactor:function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},getRestingPosition:function(){return this.x+this.velocity/(1-this.getFrictionFactor())},applyDragForce:function(){var t;this.isDraggable&&this.isPointerDown&&(t=this.dragX-this.x-this.velocity,this.applyForce(t))},applySelectedAttraction:function(){var t;this.isDraggable&&this.isPointerDown||this.isFreeScrolling||!this.slides.length||(t=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction,this.applyForce(t))}};return i}),function(r,a){var t;"function"==typeof define&&define.amd?define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(t,e,i,n,s,o){return a(r,t,e,i,n,s,o)}):"object"==typeof module&&module.exports?module.exports=a(r,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./sli
4de"),require("./animate")):(t=r.Flickity,r.Flickity=a(r,r.EvEmitter,r.getSize,r.fizzyUIUtils,t.Cell,t.Slide,t.animatePrototype))}(window,function(n,t,e,r,i,a,s){var o=n.jQuery,l=n.getComputedStyle,h=n.console;function c(t,e){for(t=r.makeArray(t);t.length;)e.appendChild(t.shift())}var d=0,u={};function p(t,e){var i,n=r.getQueryElement(t);if(n){if(this.element=n,this.element.flickityGUID)return(i=u[this.element.flickityGUID])&&i.option(e),i;o&&(this.$element=o(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(e),this._create()}else h&&h.error("Bad element for Flickity: "+(n||t))}p.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},p.createMethods=[];var f=p.prototype,g=(r.extend(f,t.prototype),f._create=function(){var t,e=this.guid=++d;for(t in this.element.flickityGUID=e,(u[e]=this).selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&n.addEventListener("resize",this),this.options.on){var i=this.options.on[t];this.on(t,i)}p.createMethods.forEach(function(t){this[t]()},this),this.options.watchCSS?this.watchCSS():this.activate()},f.option=function(t){r.extend(this.options,t)},f.activate=function(){this.isActive||(this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize(),c(this._filterFindCellElements(this.element.children),this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready"))},f._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},f._filterFindCellElements=function(t){return r.filterFindElements(t,this.options.cellSelector)},f.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},f._makeCells=function(t){return this._filterFindCellElements(t).map(function(t){return new i(t,this)},this)},f.getLastCell=function(){return this.cells[this.cells.length-1]},f.getLastSlide=function(){return this.slides[this.slides.length-1]},f.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},f._positionCells=function(t){this.maxCellHeight=(t=t||0)&&this.maxCellHeight||0;for(var e,i=0,n=(0<t&&(i=(e=this.cells[t-1]).x+e.size.outerWidth),this.cells.length),s=t;s<n;s++){var o=this.cells[s];o.setPosition(i),i+=o.size.outerWidth,this.maxCellHeight=Math.max(o.size.outerHeight,this.maxCellHeight)}this.slideableWidth=i,this.updateSlides(),this._containSlides(),this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0},f._sizeCells=function(t){t.forEach(function(t){t.getSize()})},f.updateSlides=function(){var n,s,o;this.slides=[],this.cells.length&&(n=new a(this),this.slides.push(n),s="left"==this.originSide?"marginRight":"marginLeft",o=this._getCanCellFit(),this.cells.forEach(function(t,e){var i;n.cells.length&&(i=n.outerWidth-n.firstMargin+(t.size.outerWidth-t.size[s]),o.call(this,e,i)||(n.updateTarget(),n=new a(this),this.slides.push(n))),n.addCell(t)},this),n.updateTarget(),this.updateSelectedSlide())},f._getCanCellFit=function(){var e,t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t)return e=parseInt(t,10),function(t){return t%e!=0};var t="string"==typeof t&&t.match(/^(\d+)%$/),i=t?parseInt(t[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*i}},f._init=f.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},f.getSize=function(){this.size=e(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign},{center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}});return f.setCellAlign=function(){var t=g[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},f.setGallerySize=function(){var t;this.options.setGallerySize&&(t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight,this.viewport.style.height=t+"px")},f._getWrapShiftCells=function(){var t,e;this.options.wrapAround&&(this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells),t=this.cursorPosition,e=this.cells.length-1,this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1))}
4,f._getGapCells=function(t,e,i){for(var n=[];0<t;){var s=this.cells[e];if(!s)break;n.push(s),e+=i,t-=s.size.outerWidth}return n},f._containSlides=function(){var t,e,i,n,s,o;this.options.contain&&!this.options.wrapAround&&this.cells.length&&(t=(e=this.options.rightToLeft)?"marginRight":"marginLeft",e=e?"marginLeft":"marginRight",i=this.slideableWidth-this.getLastCell().size[e],n=i<this.size.innerWidth,s=this.cursorPosition+this.cells[0].size[t],o=i-this.size.innerWidth*(1-this.cellAlign),this.slides.forEach(function(t){n?t.target=i*this.cellAlign:(t.target=Math.max(t.target,s),t.target=Math.min(t.target,o))},this))},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n),o&&this.$element&&(n=t+=this.options.namespaceJQueryEvents?".flickity":"",e&&((e=new o.Event(e)).type=t,n=e),this.$element.trigger(n,i))},f.select=function(t,e,i){this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=r.modulo(t,this.slides.length)),this.slides[t]&&(e=this.selectedIndex,this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!=e&&this.dispatchEvent("change",null,[t]),this.dispatchEvent("cellSelect")))},f._wrapSelect=function(t){var e=this.slides.length;if(!(this.options.wrapAround&&1<e))return t;var i=r.modulo(t,e),n=Math.abs(i-this.selectedIndex),s=Math.abs(i+e-this.selectedIndex),i=Math.abs(i-e-this.selectedIndex);!this.isDragSelect&&s<n?t+=e:!this.isDragSelect&&i<n&&(t-=e),t<0?this.x-=this.slideableWidth:e<=t&&(this.x+=this.slideableWidth)},f.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},f.next=function(t,e){this.select(this.selectedIndex+1,t,e)},f.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),(this.selectedSlide=t).select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},f.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},f.selectInitialIndex=function(){var t=this.options.initialIndex;if(this.isInitActivated)this.select(this.selectedIndex,!1,!0);else{if(t&&"string"==typeof t)if(this.queryCell(t))return void this.selectCell(t,!1,!0);var e=0;t&&this.slides[t]&&(e=t),this.select(e,!1,!0)}},f.selectCell=function(t,e,i){var t=this.queryCell(t);t&&(t=this.getCellSlideIndex(t),this.select(t,e,i))},f.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++)if(-1!=this.slides[e].cells.indexOf(t))return e},f.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t)return i}},f.getCells=function(t){t=r.makeArray(t);var e=[];return t.forEach(function(t){t=this.getCell(t);t&&e.push(t)},this),e},f.getCellElements=function(){return this.cells.map(function(t){return t.element})},f.getParentCell=function(t){var e=this.getCell(t);return e||(t=r.getParent(t,".flickity-slider > *"),this.getCell(t))},f.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(i<=1+2*t)return this.getCellElements();for(var n=[],s=e-t;s<=e+t;s++){var o=this.options.wrapAround?r.modulo(s,i):s,o=this.slides[o];o&&(n=n.concat(o.getCellElements()))}return n},f.queryCell=function(t){if("number"==typeof t)return this.cells[t];if("string"==typeof t){if(t.match(/^[#.]?[\d/]/))return;t=this.element.querySelector(t)}return this.getCell(t)},f.uiChange=function(){this.emitEvent("uiChange")},f.childUIPointerDown=function(t){"touchstart"!=t.type&&t.preventDefault(),this.focus()},f.onresize=function(){this.watchCSS(),this.resize()},r.debounceMethod(p,"onresize",150),f.resize=function(){var t;!this.isActive||this.isAnimating||this.isDragging||(this.getSize(),this.options.wrapAround&&(this.x=r.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize"),t=this.selectedElements&&this.selectedElements[0],this.selectCell(t,!1,!0))},f.watchCSS=function(){this.options.watchCSS&&(-1!=l(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},f.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;this.options.accessibility&&!e&&(e=p.keyboardHandlers[t.keyCode])&&e.call(this)},p.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t]()}}
4,f.focus=function(){var t=n.pageYOffset;this.element.focus({preventScroll:!0}),n.pageYOffset!=t&&n.scrollTo(n.pageXOffset,t)},f.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(t){t.destroy()}),this.element.removeChild(this.viewport),c(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},f.destroy=function(){this.deactivate(),n.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),o&&this.$element&&o.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete u[this.guid]},r.extend(f,s),p.data=function(t){t=(t=r.getQueryElement(t))&&t.flickityGUID;return t&&u[t]},r.htmlInit(p,"flickity"),o&&o.bridget&&o.bridget("flickity",p),p.setJQuery=function(t){o=t},p.Cell=i,p.Slide=a,p}),function(e,i){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("ev-emitter")):e.Unipointer=i(e,e.EvEmitter)}(window,function(n,t){function e(){}var t=e.prototype=Object.create(t.prototype),i=(t.bindStartEvent=function(t){this._bindStartEvent(t,!0)},t.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},t._bindStartEvent=function(t,e){var e=(e=void 0===e||e)?"addEventListener":"removeEventListener",i="mousedown";"ontouchstart"in n?i="touchstart":n.PointerEvent&&(i="pointerdown"),t[e](i,this)},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier)return i}},t.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},t.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},t.onpointerdown=function(t){this._pointerDown(t,t)},t._pointerDown=function(t,e){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},t.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])},{mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]});return t._bindPostStartEvents=function(t){t&&((t=i[t.type]).forEach(function(t){n.addEventListener(t,this)},this),this._boundPointerEvents=t)},t._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(t){n.removeEventListener(t,this)},this),delete this._boundPointerEvents)},t.onmousemove=function(t){this._pointerMove(t,t)},t.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},t.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},t._pointerMove=function(t,e){jQuery("body").hasClass("semplice-cursor")&&jQuery("#semplice-cursor").css("transform","translate3d("+t.clientX+"px, "+t.clientY+"px, 0px)"),this.pointerMove(t,e)},t.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},t.onmouseup=function(t){this._pointerUp(t,t)},t.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},t.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},t._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},t.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},t._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},t._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},t.pointerDone=function(){},t.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},t.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},t._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},t.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},e.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},e}),function(e,i){"function"==typeof define&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("unipointer")):e.Unidragger=i(e,e.Unipointer)}(window,function(o,t){function e(){}var i=e.prototype=Object.create(t.prototype),n=(i.bindHandles=function(){this._bindHandles(!0)},i.unbindHandles=function(){this._bindHandles(!1)},i._bindHandles=function(t){for(var e=(t=void 0===t||t)?"addEventListener":"removeEventListener",i=t?this._touchActionValue:"",n=0;n<this.handles.length;n++){var s=this.handles[n];this._bindStartEvent(s,t),s[e]("click",this),o.PointerEvent&&(s.style.touchAction=i)}},i._touchActionValue="none",i.pointerDown=function(t,e){this.okayPointerDown(t)&&(this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))},{TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0}),s={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return i.okayPointerDown=function(t){var e=n[t.target.nodeName],t=s[t.target.type],e=!e||t;
vendor: 1,086 bytes, line 4
4return e||this._pointerReset(),e},i.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},i.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},i._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},i.hasDragStarted=function(t){return 3<Math.abs(t.x)||3<Math.abs(t.y)},i.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},i._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},i._dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(t,e)},i.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},i._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},i.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},i._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventing
4Clicks}.bind(this)),this.dragEnd(t,e)},i.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},i.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},i._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},i.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},e.getPointerPoint=t.getPointerPoint,e}),function(n,s){"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(t,e,i){return s(n,t,e,i)}):"object"==typeof module&&module.exports?module.exports=s(n,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):n.Flickity=s(n,n.Flickity,n.Unidragger,n.fizzyUIUtils)}(window,function(i,t,e,o){o.extend(t.defaults,{draggable:">1",dragThreshold:3}),t.createMethods.push("_createDrag");var n=t.prototype,s=(o.extend(n,e.prototype),n._touchActionValue="pan-y",n._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable)},n.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},n.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},n.updateDraggable=function(){">1"==this.options.draggable?this.isDraggable=1<this.slides.length:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},n.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},n.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},n._uiChangeDrag=function(){delete this.isFreeScrolling},n.pointerDown=function(t,e){this.isDraggable?this.okayPointerDown(t)&&(this._pointerDownPreventDefault(t),this.pointerDownFocus(t),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=r(),i.addEventListener("scroll",this),this._pointerDownDefault(t,e)):this._pointerDownDefault(t,e)},n._pointerDownDefault=function(t,e){this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},this._bindPostStartEvents(t),this.dispatchEvent("pointerDown",t,[e])},{INPUT:!0,TEXTAREA:!0,SELECT:!0});function r(){return{x:i.pageXOffset,y:i.pageYOffset}}return n.pointerDownFocus=function(t){s[t.target.nodeName]||this.focus()},n._pointerDownPreventDefault=function(t){var e="touchstart"==t.type,i="touch"==t.pointerType,n=s[t.target.nodeName];e||i||n||t.preventDefault()},n.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},n.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},n.pointerDone=function(){i.removeEventListener("scroll",this),delete this.pointerDownScroll},n.dragStart=function(t,e){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),i.removeEventListener("scroll",this),this.dispatchEvent("dragStart",t,[e]))},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]),this._dragMove(t,e,i)},n.dragMove=function(t,e,i){var n,s;this.isDraggable&&(t.preventDefault(),this.previousDragX=this.dragX,n=this.options.rightToLeft?-1:1,this.options.wrapAround&&(i.x%=this.slideableWidth),n=this.dragStartPosition+i.x*n,!this.options.wrapAround&&this.slides.length&&(n=(n=(s=Math.max(-this.slides[0].target,this.dragStartPosition))<n?.5*(n+s):n)<(s=Math.min(-this.getLastSlide().target,this.dragStartPosition))?.5*(n+s):n),this.dragX=n,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i]))},n.dragEnd=function(t,e){var i,n;this.isDraggable&&(this.options.freeScroll&&(this.isFreeScrolling=!0),i=this.dragEndRestingSelect(),this.options.freeScroll&&!this.options.wrapAround?(n=this.getRestingPosition(),this.isFreeScrolling=-n>this.slides[0].target&&-n<this.getLastSlide().target):this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect()),delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",t,[e]))},n.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),t=this._getClosestResting(t,e,-1);return(i.distance<t.distance?i:t).index}
4,n._getClosestResting=function(t,e,i){for(var n=this.selectedIndex,s=1/0,o=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};o(e,s)&&(s=e,null!==(e=this.getSlideDistance(-t,n+=i)));)e=Math.abs(e);return{distance:s,index:n-i}},n.getSlideDistance=function(t,e){var i=this.slides.length,n=this.options.wrapAround&&1<i,s=n?o.modulo(e,i):e,s=this.slides[s];if(!s)return null;n=n?this.slideableWidth*Math.floor(e/i):0;return t-(s.target+n)},n.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||100<new Date-this.dragMoveTime)return 0;var t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return 0<t&&0<e?1:t<0&&e<0?-1:0},n.staticClick=function(t,e){var i=this.getParentCell(t.target),n=i&&i.element,i=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,i])},n.onscroll=function(){var t=r(),e=this.pointerDownScroll.x-t.x,t=this.pointerDownScroll.y-t.y;(3<Math.abs(e)||3<Math.abs(t))&&this._pointerDone()},t}),function(t,n){"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(t,e,i){return n(0,t,e,i)}):"object"==typeof module&&module.exports?module.exports=n(0,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):n(0,t.Flickity,t.Unipointer,t.fizzyUIUtils)}(window,function(t,e,i,n){"use strict";var s="http://www.w3.org/2000/svg";function o(t,e){this.direction=t,this.parent=e,this._create()}(o.prototype=Object.create(i.prototype))._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1,t=(this.isLeft=this.direction==t,this.element=document.createElement("button")),e=(t.className="flickity-button flickity-prev-next-button",t.className+=this.isPrevious?" previous":" next",t.setAttribute("type","button"),this.disable(),t.setAttribute("aria-label",this.isPrevious?"Previous":"Next"),this.createSVG());t.appendChild(e),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},o.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},o.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},o.prototype.createSVG=function(){var t=document.createElementNS(s,"svg"),e=(t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100"),document.createElementNS(s,"path")),i="string"!=typeof(i=this.parent.options.arrowShape)?"M "+i.x0+",50 L "+i.x1+","+(i.y1+50)+" L "+i.x2+","+(i.y2+50)+" L "+i.x3+",50 L "+i.x2+","+(50-i.y2)+" L "+i.x1+","+(50-i.y1)+" Z":i;return e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},o.prototype.handleEvent=n.handleEvent,o.prototype.onclick=function(){var t;this.isEnabled&&(this.parent.uiChange(),t=this.isPrevious?"previous":"next",this.parent[t]())},o.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},o.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},o.prototype.update=function(){var t=this.parent.slides;this.parent.options.wrapAround&&1<t.length?this.enable():(t=t.length?t.length-1:0,t=this.isPrevious?0:t,this[this.parent.selectedIndex==t?"disable":"enable"]())},o.prototype.destroy=function(){this.deactivate(),this.allOff()},n.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");i=e.prototype;return i._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new o(-1,this),this.nextButton=new o(1,this),this.on("activate",this.activatePrevNextButtons))},i.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},i.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=o,e}),function(t,n){"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(t,e,
4i){return n(0,t,e,i)}):"object"==typeof module&&module.exports?module.exports=n(0,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):n(0,t.Flickity,t.Unipointer,t.fizzyUIUtils)}(window,function(t,e,i,n){function s(t){this.parent=t,this._create()}(s.prototype=Object.create(i.prototype))._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.handleClick=this.onClick.bind(this),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},s.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},s.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},s.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;0<t?this.addDots(t):t<0&&this.removeDots(-t)},s.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],n=this.dots.length,s=n+t,o=n;o<s;o++){var r=document.createElement("li");r.className="dot",r.setAttribute("aria-label","Page dot "+(o+1)),e.appendChild(r),i.push(r)}this.holder.appendChild(e),this.dots=this.dots.concat(i)},s.prototype.removeDots=function(t){this.dots.splice(this.dots.length-t,t).forEach(function(t){this.holder.removeChild(t)},this)},s.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},s.prototype.onTap=s.prototype.onClick=function(t){var t=t.target;"LI"==t.nodeName&&(this.parent.uiChange(),t=this.dots.indexOf(t),this.parent.select(t))},s.prototype.destroy=function(){this.deactivate(),this.allOff()},e.PageDots=s,n.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");i=e.prototype;return i._createPageDots=function(){this.options.pageDots&&(this.pageDots=new s(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},i.activatePageDots=function(){this.pageDots.activate()},i.updateSelectedPageDots=function(){this.pageDots.updateSelected()},i.updatePageDots=function(){this.pageDots.setDots()},i.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=s,e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):e(t.EvEmitter,t.fizzyUIUtils,t.Flickity)}(window,function(t,e,i){function n(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}(n.prototype=Object.create(t.prototype)).play=function(){"playing"!=this.state&&(document.hidden?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()))},n.prototype.tick=function(){var t,e;"playing"==this.state&&(t="number"==typeof(t=this.parent.options.autoPlay)?t:3e3,(e=this).clear(),this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t))},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");t=i.prototype;return t._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},t.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},t.playPlayer=function(){this.player.play()},t.stopPlayer=function(){this.player.stop()},t.pausePlayer=function(){this.player.pause()},t.unpausePlayer=function(){this.player.unpause()},t.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},t.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},t.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}),function(t,i){"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(t,e){return i(0,t,e)}):"object"==typeof module&&module.exports?module.exports=i(0,require("./flickity"),require("fizzy-ui-utils")):i(0,t.Flickity,t.fizzyUIUtils)}(window,function(t,e,n){var i=e.prototype;return i.insert=function(t,e){var i,n,s,o,r,t=this._makeCells(t);t&&t.length&&(i=this.cells.length,e=void 0===e?i:e,r=t,n=document.createDocumentFragment(),r.forEach(function(t){n.appendChild(t.element)}),r=n,(s=e==i)?this.slider.appendChild(r):(o=this.cells[e].element,this.slider.insertBefore(r,o)),0===e?this.cells=t.concat(this.cells):s?this.cells=this.cells.concat(t):(r=this.cells.splice(e,i-e),this.cells=this.cells.concat(t).concat(r)),this._sizeCells(t),this.cellChange(e,!0))},i.append=function(t){this.insert(t,this.cells.length)},i.prepend=function(t){this.insert(t,0)},i.remove=function(t){var i,t=this.getCells(t);t&&t.length&&(i=this.cells.length-1,t.forEach(function(t){t.remove();var e=this.cells.indexOf(t);i=Math.min(e,i),n.removeFrom(this.cells,t)},this),this.cellChange(i,!0))},i.cellSizeChange=function(t){var t=this.getCell(t);t&&(t.getSize(),t=this.cells.indexOf(t),this.cellChange(t))},i.cellChange=function(t,e){var i=this.selectedElement,i=(this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize(),this.getCell(i));i&&(this.selectedIndex=this.getCellSlideIndex(i)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}),function(t,i){"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(t,e){return i(0,t,e)}):"object"==typeof module&&module.exports?module.exports=i(0,require("./flickity"),require("fizzy-ui-utils")):i(0,t.Flickity,t.fizzyUIUtils)}(window,function(t,e,s){"use strict";e.createMethods.push("_createLazyload");var i=e.prototype;function n(t,e){this.img=t,this.flickity=e,this.load()}return i._createLazyload=function(){this.on("select",this.lazyLoad)},i.lazyLoad=function(){var e,t=this.options.lazyLoad;t&&(t=this.getAdjacentCellElements("number"==typeof t?t:0),e=[],t.forEach(function(t){t=function(t){if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),i=t.getAttribute("data-flickity-lazyload-src"),n=t.getAttribute("data-flickity-lazyload-srcset");if(e||i||n)return[t]}e=t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");return s.makeArray(e)}(t);e=e.concat(t)}),e.forEach(function(t){new n(t,this)},this))},n.prototype.handleEvent=s.handleEvent,n.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},n.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},n.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},n.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),i=i&&i.element;this.flickity.cellSizeChange(i),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,i)},e.LazyLoader=n,e}),function(t){"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],t):"object"==typeof module&&module.exports&&(module.exports=t(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))}((window,function(t){return t})),function(t,e){"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],e):"object"==typeof module&&module.exports?module.exports=e(require("flickity"),require("fizzy-ui-utils")):t.Flickity=e(t.Flickity,t.fizzyUIUtils)}(window,function(i,n){i.createMethods.push("_createAsNavFor");var t=i.prototype;return t._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var t,e=this.options.asNavFor;e&&(t=this,setTimeout(function(){t.setNavCompanion(e)}))},t.setNavCompanion=function(t){t=n.getQueryElement(t);var e,t=i.data(t);t&&t!=this&&(this.navCompanion=t,(e=this).onNavCompanionSelect=function(){e.navCompanionSelect()},t.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0))},t.navCompanionSelect=function(t){var e,i,n=this.navCompanion&&this.navCompanion.selectedCells;n&&(e=n[0],e=this.navCompanion.cells.indexOf(e),n=e+n.length-1,i=Math.floor((i=this.navCompanion.cellAlign,(n-e)*i+e)),this.selectCell(i,!1,t),this.removeNavSelectedElements(),i>=this.cells.length||(t=this.cells.slice(e,1+n),this.navSelectedElements=t.map(function(t){return t.element}),this.changeNavSelectedClass("add")))},t.changeNavSelectedClass=function(e){this.navSelectedElements.forEac
vendor: 4,568 bytes, line 4
4h(function(t){t.classList[e]("is-nav-selected")})},t.activateAsNavFor=function(){this.navCompanionSelect(!0)},t.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},t.onNavStaticClick=function(t,e,i,n){"number"==typeof n&&this.navCompanion.selectCell(n)},t.deactivateAsNavFor=function(){this.removeNavSelectedElements()},t.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},i}),function(e,i){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("ev-emitter")):e.imagesLoaded=i(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){var o=e.jQuery,r=e.console;function a(t,e){for(var i in e)t[i]=e[i];return t}var l=Array.prototype.slice;function h(t,e,i){if(!(this instanceof h))return new h(t,e,i);var n,s=t;(s="string"==typeof t?document.querySelectorAll(t):s)?(this.elements=(n=s,Array.isArray(n)?n:"object"==typeof n&&"number"==typeof n.length?l.call(n):[n]),this.options=a({},this.options),"function"==typeof e?i=e:a(this.options,e),i&&this.on("always",i),this.getImages(),o&&(this.jqDeferred=new o.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(s||t))}(h.prototype=Object.create(t.prototype)).options={},h.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},h.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&c[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var s=i[n];this.addImage(s)}if("string"==typeof this.options.background)for(var o=t.querySelectorAll(this.options.background),n=0;n<o.length;n++){var r=o[n];this.addElementBackgroundImages(r)}}};var c={1:!0,9:!0,11:!0};function i(t){this.img=t}function n(t,e){this.url=t,this.element=e,this.img=new Image}return h.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var s=n&&n[2];s&&this.addBackground(s,t),n=i.exec(e.backgroundImage)}},h.prototype.addImage=function(t){t=new i(t);this.images.push(t)},h.prototype.addBackground=function(t,e){t=new n(t,e);this.images.push(t)},h.prototype.check=function(){var n=this;function e(t,e,i){setTimeout(function(){n.progress(t,e,i)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},h.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+i,t,e)},h.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(i.prototype=Object.create(t.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},i.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},i.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(n.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWi
4dth,"naturalWidth"),this.unbindEvents())},n.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},n.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},(h.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((o=t).fn.imagesLoaded=function(t,e){return new h(this,t,e).jqDeferred.promise(o(this))})})(),h}),function(t,i){"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(t,e){return i(0,t,e)}):"object"==typeof module&&module.exports?module.exports=i(0,require("flickity"),require("imagesloaded")):t.Flickity=i(0,t.Flickity,t.imagesLoaded)}(window,function(t,e,n){"use strict";e.createMethods.push("_createImagesLoaded");var i=e.prototype;return i._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},i.imagesLoaded=function(){var i;this.options.imagesLoaded&&n((i=this).slider).on("progress",function(t,e){e=i.getParentCell(e.img),i.cellSizeChange(e&&e.element),i.options.freeScroll||i.positionSliderAtSelected()})},e}); 5!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&"object"==typeof module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(e){void 0!==e.easing&&(e.easing.jswing=e.easing.swing);var t=Math.pow,u=Math.sqrt,r=Math.sin,i=Math.cos,a=Math.PI,o=1.70158,c=1.525*o,s=1+o,f=2*a/3,I=2*a/4.5;function O(n){var e=7.5625,t=2.75;return n<1/t?e*n*n:n<2/t?e*(n-=1.5/t)*n+.75:n<2.5/t?e*(n-=2.25/t)*n+.9375:e*(n-=2.625/t)*n+.984375}return e.extend(e.easing,{def:"easeOutQuad",swing:function(n){return e.easing[e.easing.def](n)},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return 1-(1-n)*(1-n)},easeInOutQuad:function(n){return n<.5?2*n*n:1-t(-2*n+2,2)/2},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1-t(1-n,3)},easeInOutCubic:function(n){return n<.5?4*n*n*n:1-t(-2*n+2,3)/2},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1-t(1-n,4)},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-t(-2*n+2,4)/2},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1-t(1-n,5)},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1-t(-2*n+2,5)/2},easeInSine:function(n){return 1-i(n*a/2)},easeOutSine:function(n){return r(n*a/2)},easeInOutSine:function(n){return-(i(a*n)-1)/2},easeInExpo:function(n){return 0===n?0:t(2,10*n-10)},easeOutExpo:function(n){return 1===n?1:1-t(2,-10*n)},easeInOutExpo:function(n){return 0===n?0:1===n?1:n<.5?t(2,20*n-10)/2:(2-t(2,-20*n+10))/2},easeInCirc:function(n){return 1-u(1-t(n,2))},easeOutCirc:function(n){return u(1-t(n-1,2))},easeInOutCirc:function(n){return n<.5?(1-u(1-t(2*n,2)))/2:(u(1-t(-2*n+2,2))+1)/2}
5,easeInElastic:function(n){return 0===n?0:1===n?1:-t(2,10*n-10)*r((10*n-10.75)*f)},easeOutElastic:function(n){return 0===n?0:1===n?1:t(2,-10*n)*r((10*n-.75)*f)+1},easeInOutElastic:function(n){return 0===n?0:1===n?1:n<.5?-(t(2,20*n-10)*r((20*n-11.125)*I))/2:t(2,-20*n+10)*r((20*n-11.125)*I)/2+1},easeInBack:function(n){return s*n*n*n-o*n*n},easeOutBack:function(n){return 1+s*t(n-1,3)+o*t(n-1,2)},easeInOutBack:function(n){return n<.5?t(2*n,2)*(2*(1+c)*n-c)/2:(t(2*n-2,2)*((1+c)*(2*n-2)+c)+2)/2},easeInBounce:function(n){return 1-O(1-n)},easeOutBounce:O,easeInOutBounce:function(n){return n<.5?(1-O(1-2*n))/2:(1+O(2*n-1))/2}}),e}); 6!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function Z(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function U(t){return"string"==typeof t}function l(t){return"function"==typeof t}function $(t){return"number"==typeof t}function s(t){return void 0===t}function C(t){return"object"==typeof t}function z(t){return!1!==t}function i(){return"undefined"!=typeof window}function J(t){return l(t)||U(t)}function d(t){return(Ht=Xt(t,a))&&f}function K(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function tt(t,e){return!e&&console.warn(t)}function m(t,e){return t&&(a[t]=e)&&Ht&&(Ht[t]=e)||a}function g(){return 0}function et(t){var e,r,i=t[0];if(C(i)||l(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=Be.length;r--&&!Be[r].targetTest(i););e=Be[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Ze(t[r],e)))||t.splice(r,1);return t}function rt(t){return t._gsap||et(S(t))[0]._gsap}function v(t,e,r){return(r=t[e])&&l(r)?t[e]():s(r)&&t.getAttribute&&t.getAttribute(e)||r}function p(t,e){return(t=t.split(",")).forEach(e)||t}function F(t){return Math.round(1e5*t)/1e5||0}function A(t){return Math.round(1e7*t)/1e7||0}function it(t,e){var r=e.charAt(0),e=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+e:"-"===r?t-e:"*"===r?t*e:t/e}function nt(){var t,e,r=Ee.length,i=Ee.slice(0);for(Re={},t=Ee.length=0;t<r;t++)(e=i[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function y(t,e,r,i){Ee.length&&nt(),t.render(e,r,i||L),Ee.length&&nt()}function x(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(Ce).length<2?e:U(t)?t.trim():t}function w(t){return t}function B(t,e){for(var r in e)r in t||(t[r]=e[r]);return t}function b(t,e){for(var r in e)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(t[r]=C(e[r])?b(t[r]||(t[r]={}),e[r]):e[r]);return t}function st(t,e){var r,i={};for(r in t)r in e||(i[r]=t[r]);return i}function at(t){var i,e=t.parent||I,r=t.keyframes?(i=P(t.keyframes),function(t,e){for(var r in e)r in t||"duration"===r&&i||"ease"===r||(t[r]=e[r])}):B;if(z(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent||e._dp;return t}function M(t,e,r,i,n){void 0===r&&(r="_first");var s,a=t[i=void 0===i?"_last":i];if(n)for(s=e[n];a&&a[n]>s;)a=a._prev;a?(e._next=a._next,a._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=a,e.parent=e._dp=t}function O(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,s=e._next;n?n._next=s:t[r]===e&&(t[r]=s),s?s._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function ot(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function k(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t}function ut(t,e,r,i){t._startAt&&(L?t._startAt.revert(Pe):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))}function ht(t){return t._repeat?Nt(t._tTime,t=t.duration()+t._rDelay)*t:0}function ft(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function lt(t){t._end=A(t._start+(t._tDur/Math.abs(t._ts||t._rts||q)||0))}function ct(t,e){var r=t._dp;r&&r.smoothChildTiming&&t._ts&&(t._start=A(r._time-(0<t._ts?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),lt(t),r._dirty||k(r,t))}function pt(t,e){var r;if((e._time||e._initted&&!e._dur)&&(r=ft(t.rawTime(),e),(!e._dur||Vt(0,e.totalDuration(),r)-e._tTime>q)&&e.render(r,!0)),k(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)0<=r.rawTime()&&r.totalTime(r._tTime),r=r._dp;t._zTime=-q}}function D(t,e,r,i){return e.parent&&ot(e),e._start=A(($(r)?r:r||t!==I?h(t,r,e):t._time)+e._delay),e._end=A(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),M(t,e,"_first","_last",t._sort?"_start":0),qt(e)||(t._recent=e),i||pt(t,e),t._ts<0&&
vendor: 7,183 bytes, line 6
6ct(t,t._tTime),t}function _t(t,e){(a.ScrollTrigger||K("scrollTrigger",e))&&a.ScrollTrigger.create(e,t)}function dt(t,e,r,i){return rr(t,e),!t._initted||!r&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&$t!==_.frame&&(Ee.push(t),t._lazy=[e,i])}function mt(t,e,r,i){var n=t._repeat,e=A(e)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=e/t._dur),t._dur=e,t._tDur=n?n<0?1e10:A(e*(n+1)+t._rDelay*n):e,0<s&&!i?ct(t,t._tTime=t._tDur*s):t.parent&<(t),r||k(t.parent,t),t}function gt(t){return t instanceof R?k(t):mt(t,t._dur)}function vt(t,e,r){var i,n,s=$(e[1]),a=(s?2:1)+(t<2?0:1),o=e[a];if(s&&(o.duration=e[1]),o.parent=r,t){for(i=o,n=r;n&&!("immediateRender"in i);)i=n.vars.defaults||{},n=z(n.vars.inherit)&&n.parent;o.immediateRender=z(i.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new j(e[0],o,e[1+a])}function yt(t,e){return t||0===t?e(t):e}function X(t,e){return U(t)&&(e=Ae.exec(t))?e[1]:""}function xt(t,e){return t&&C(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&C(t[0]))&&!t.nodeType&&t!==u}function Tt(r){return r=S(r)[0]||tt("Invalid scope")||{},function(t){var e=r.current||r.nativeElement||r;return S(t,e.querySelectorAll?e:e===r?tt("Invalid scope")||Wt.createElement("div"):r)}}function wt(t){return t.sort(function(){return.5-Math.random()})}function bt(t){if(l(t))return t;var p=C(t)?t:{each:t},_=Ge(p.ease),d=p.from||0,m=parseFloat(p.base)||0,g={},t=0<d&&d<1,v=isNaN(d)||t,y=p.axis,x=d,T=d;return U(d)?x=T={center:.5,edges:.5,end:1}[d]||0:!t&&v&&(x=d[0],T=d[1]),function(t,e,r){var i,n,s,a,o,u,h,f,l=(r||p).length,c=g[l];if(!c){if(!(f="auto"===p.grid?0:(p.grid||[1,Y])[1])){for(u=-Y;u<(u=r[f++].getBoundingClientRect().left)&&f<l;);f--}for(c=g[l]=[],i=v?Math.min(f,l)*x-.5:d%f,n=f===Y?0:v?l*T/f-.5:d/f|0,h=Y,o=u=0;o<l;o++)a=o%f-i,s=n-(o/f|0),c[o]=a=y?Math.abs("y"===y?s:a):ve(a*a+s*s),u<a&&(u=a),a<h&&(h=a);"random"===d&&wt(c),c.max=u-h,c.min=h,c.v=l=(parseFloat(p.amount)||parseFloat(p.each)*(l<f?l-1:y?"y"===y?l/f:f:Math.max(f,l/f))||0)*("edges"===d?-1:1),c.b=l<0?m-l:m,c.u=X(p.amount||p.each)||0,_=_&&l<0?Qe(_):_}return l=(c[t]-c.min)/c.max||0,A(c.b+(_?_(l):l)*c.v)+c.u}}function Mt(r){var i=Math.pow(10,((r+"").split(".")[1]||"").length);return function(t){var e=A(Math.round(parseFloat(t)/r)*r*i);return(e-e%1)/i+($(t)?0:X(t))}}function Ot(u,t){var h,f,e=P(u);return!e&&C(u)&&(h=e=u.radius||Y,u.values?(u=S(u.values),(f=!$(u[0]))&&(h*=h)):u=Mt(u.increment)),yt(t,e?l(u)?function(t){return f=u(t),Math.abs(f-t)<=h?f:t}:function(t){for(var e,r,i=parseFloat(f?t.x:t),n=parseFloat(f?t.y:0),s=Y,a=0,o=u.length;o--;)(e=f?(e=u[o].x-i)*e+(r=u[o].y-n)*r:Math.abs(u[o]-i))<s&&(s=e,a=o);return a=!h||s<=h?u[a]:t,f||a===t||$(t)?a:a+X(t)}:Mt(u))}function kt(t,e,r,i){return yt(P(t)?!e:!0===r?!!(r=0):!i,function(){return P(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*i)/i})}function Ct(e,r,t){return yt(t,function(t){return e[~~r(t)]})}function At(t){for(var e,r,i,n,s=0,a="";~(e=t.indexOf("random(",s));)i=t.indexOf(")",e),n="["===t.charAt(e+7),r=t.substr(e+7,i-e-7).match(n?Ce:we),a+=t.substr(s,e-s)+kt(n?r:+r[0],n?0:+r[1],+r[2]||1e-5),s=i+1;return a+t.substr(s,t.length-s)}function Dt(t,e,r){var i,n,s,a=t.labels,o=Y;for(i in a)(n=a[i]-e)<0==!!r&&n&&o>(n=Math.abs(n))&&(s=i,o=n);return s}function Pt(t){return ot(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&T(t,"onInterrupt"),t}function St(t,e,r){return(6*(t+=t<0?1:1<t?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*c+.5|0}function Et(t,e,r){var i,n,s,a,o,u,h,f=t?$(t)?[t>>16,t>>8&c,t&c]:0:Ue.black;if(!f){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ue[t])f=Ue[t];else if("#"===t.charAt(0)){if(9===(t=t.length<6?"#"+(i=t.charAt(1))+i+(n=t.charAt(2))+n+(s=t.charAt(3))+s+(5===t.length?t.charAt(4)+t.charAt(4):""):t).length)return[(f=parseInt(t.substr(1,6),16))>>16,f>>8&c,f&c,parseInt(t.substr(7),16)/255];f=[(t=parseInt(t.substr(1),16))>>16,t>>8&c,t&c]}else if("hsl"===t.substr(0,3))if(f=h=t.match(we),e){if(~t.indexOf("="))return f=t.match(be),r&&f.length<4&&(f[3]=1),f}else a=+f[0]%360/360,o=f[1]/100,i=2*(u=f[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),3<f.length&&(f[3]*=1),f[0]=St(a+1/3,i,n),f[1]=St(a,i,n),f[2]=St(a-1/3,i,n);else f=t.match(we)||Ue.transparent;f=f.map(Number)}return e&&!h&&(i=f[0]/c,n=f[1]/c,s=f[2]/c,u=((t=Math.max(i,n,s))+(e=Math.min(i,n,s)))/2,t===e?a=o=0:(h=t-e,o=.5<u?h/(2-t-e):h/(t+e),a=t===i?(n-s)/h+(n<s?6:0):t===n?(s-i)/h+2:(i-n)/h+4,a*=60),f[0]=~~(a+.5),f[1]=~~(100*o+.5),f[2]=~~(100*u+.5)),r&&f.length<4&&(f[3]=1),f}function Rt(t){var e=[],r=[],i=-1;return t.split(Xe).forEach(function(t){t=t.match(Me)||[];e.push.apply(e,t),r.push(i+=t.length+1)}),e.c=r,e}function zt(t,e,r){var i,n,s,a,o="",u=(t+o).match(Xe),h=e?"hsla(":"rgba(",f=0;if(!u)return t;if(u=u.map(function(t){return(t=Et(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=Rt(t),(i=r.c).join(o)!==s.c.join(o)))for(a=(n=t.replace(Xe,"1").split(Me)).length-1;f<a;f++)o+=n[f]+(~i.indexOf(f)?u.shift()||h+"0,0,0,0)":(s.length?s:u.length?u:r).shift());if(!n)for(a=(n=t.split(Xe)).length-1;f<a;f++)o+=n[f]+u[f];return o+n[a]}function Ft(t){var e=t.join(" ");if(Xe.lastIndex=0,Xe.test(e))return e=Ne.test(e),t[1]=zt(t[1],e),t[0]=zt(t[0],e,Rt(t[1])),!0}function Bt(t,e){for(var r,i=t._first;i;)i instanceof R?Bt(i,e):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===e||(i.timeline?Bt(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next}function Lt(t,e,r,i){var n,s={easeIn:e,easeOut:r=void 0===r?function(t){return 1-e(1-t)}:r,easeInOut:i=void 0===i?function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2}:i};p(t,function(t){for(var e in E[t]=a[t]=s,E[n=t.toLowerCase()]=r,s)E[n+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=E[t+"."+e]=s[e]})}function It(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}}function Yt(r,t,e){function i(t){return 1===t?1:n*Math.pow(2,-10*t)*xe((t-s)*a)+1}var n=1<=t?t:1,s=(a=(e||(r?.3:.45))/(t<1?t:1))/de*(Math.asin(1/n)||0),e="out"===r?i:"in"===r?function(t){return 1-i(1-t)}:It(i),a=de/a;return e.config=function(t,e){return Yt(r,t,e)},e}function Ut(e,r){function i(t){return t?--t*t*((r+1)*t+r)+1:0}void 0===r&&(r=1.70158);var t="out"===e?i:"in"===e?function(t){return 1-i(1-t)}:It(i);return t.config=function(t){return Ut(e,t)},t}function Xt(t,e){for(var r in e)t[r]=e[r];return t}function Nt(t,e){return e=Math.floor(t/=e),t&&e===t?e-1:e}function qt(t){return"isFromStart"===(t=t.data)||"isStart"===t}function h(t,e,r){var i,n,s,a=t.labels,o=t._recent||Ie,u=t.duration()>=Y?o.endTime(!1):t._dur;return U(e)&&(isNaN(e)||e in a)?(n=e.charAt(0),s="%"===e.substr(-1),i=e.indexOf("="),"<"===n||">"===n?(0<=i&&(e=e.replace(/=/,"")),("<"===n?o._start:o.endTime(0<=o._repeat))+(parseFloat(e.substr(1))||0)*(s?(i<0?o:r).totalDuration()/100:1)):i<0?(e in a||(a[e]=u),a[e]):(n=parseFloat(e.charAt(i-1)+e.substr(i+1)),s&&r&&(n=n/100*(P(r)?r[0]:r).totalDuration()),1<i?h(t,e.substr(0,i-1),r)+n:u+n)):null==e?u:+e}function Vt(t,e,r){return r<t?t:e<r?e:r}function jt(e,t,r,i,n){var s=t-e,a=i-r;return yt(n,function(t){return r+((t-e)/s*a||0)})}function T(t,e,r){var i=t.vars,n=i[e],s=o,a=t._ctx;
6if(n)e=i[e+"Params"],i=i.callbackScope||t,r&&Ee.length&&nt(),a&&(o=a),t=e?n.apply(i,e):n.call(i),o=s}var Qt,L,o,I,u,Gt,Wt,Ht,Zt,$t,Jt,Kt,te,ee,re,ie,ne,se,ae,oe,ue,he,fe,le,ce,pe,N={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},_e={duration:.5,overwrite:!1,delay:0},Y=1e8,q=1/Y,de=2*Math.PI,me=de/4,ge=0,ve=Math.sqrt,ye=Math.cos,xe=Math.sin,Te="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},P=Array.isArray,we=/(?:-?\.?\d|\.)+/gi,be=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Me=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Oe=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ke=/[+-]=-?[.\d]+/,Ce=/[^,'"\[\]\s]+/gi,Ae=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,a={},De={suppressEvents:!0,isStart:!0},Pe={suppressEvents:!0},Se={},Ee=[],Re={},V={},ze={},Fe=30,Be=[],Le="",Ie={_start:0,endTime:g,totalDuration:g},Ye=[].slice,S=function(t,e,r){return o&&!e&&o.selector?o.selector(t):!U(t)||r||!Gt&&qe()?P(t)?(i=r,void 0===n&&(n=[]),t.forEach(function(t){return U(t)&&!i||xt(t,1)?n.push.apply(n,S(t)):n.push(t)})||n):xt(t)?Ye.call(t,0):t?[t]:[]:Ye.call((e||Wt).querySelectorAll(t),0);var i,n},c=255,Ue={aqua:[0,c,c],lime:[0,c,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,c],navy:[0,0,128],white:[c,c,c],olive:[128,128,0],yellow:[c,c,0],orange:[c,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[c,0,0],pink:[c,192,203],cyan:[0,c,c],transparent:[c,c,c,0]},Xe=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Ue)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Ne=/hsl[a]?\(/,_=(se=Date.now,ae=500,oe=33,ue=se(),he=ue,le=fe=1e3/240,re={time:0,frame:0,tick:function(){We(!0)},deltaRatio:function(t){return ie/(1e3/(t||60))},wake:function(){Zt&&(!Gt&&i()&&(u=Gt=window,Wt=u.document||{},a.gsap=f,(u.gsapVersions||(u.gsapVersions=[])).push(f.version),d(Ht||u.GreenSockGlobals||!u.gsap&&u||{}),ee=u.requestAnimationFrame),Kt&&re.sleep(),te=ee||function(t){return setTimeout(t,le-1e3*re.time+1|0)},Jt=1,We(2))},sleep:function(){(ee?u.cancelAnimationFrame:clearTimeout)(Kt),Jt=0,te=g},lagSmoothing:function(t,e){ae=t||1e8,oe=Math.min(e,ae,0)},fps:function(t){fe=1e3/(t||240),le=1e3*re.time+fe},add:function(n,t,e){var s=t?function(t,e,r,i){n(t,e,r,i),re.remove(s)}:n;return re.remove(n),ce[e?"unshift":"push"](s),qe(),s},remove:function(t,e){~(e=ce.indexOf(t))&&ce.splice(e,1)&&e<=ne&&ne--},_listeners:ce=[]}),qe=function(){return!Jt&&_.wake()},E={},Ve=/^[\d.\-M][\d.\-,\s]/,je=/["']/g,Qe=function(e){return function(t){return 1-e(1-t)}},Ge=function(t,e){return t&&(l(t)?t:E[t]||(s=((t=t)+"").split("("),(a=E[s[0]])&&1<s.length&&a.config?a.config.apply(null,~t.indexOf("{")?[function(t){for(var e,r,i,n={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,u=s.length;o<u;o++)r=s[o],e=o!==u-1?r.lastIndexOf(","):r.length,i=r.substr(0,e),n[a]=isNaN(i)?i.replace(je,"").trim():+i,a=r.substr(e+1).trim();return n}(s[1])]:(r=(s=t).indexOf("(")+1,i=s.indexOf(")"),n=s.indexOf("(",r),s.substring(r,~n&&n<i?s.indexOf(")",i+1):i).split(",").map(x))):E._CE&&Ve.test(t)?E._CE("",t):a))||e;var r,i,n,s,a};function We(t){var e,r,i,n=se()-he,s=!0===t;if(ae<n&&(ue+=n-oe),(0<(n=(r=(he+=n)-ue)-le)||s)&&(i=++re.frame,ie=r-1e3*re.time,re.time=r/=1e3,le+=n+(fe<=n?4:fe-n),e=1),s||(Kt=te(We)),e)for(ne=0;ne<ce.length;ne++)ce[ne](r,ie,i,t)}function He(t){return t<1/2.75?pe*t*t:t<.7272727272727273?pe*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?pe*(t-=2.25/2.75)*t+.9375:pe*Math.pow(t-2.625/2.75,2)+.984375}p("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Lt(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2})}),E.Linear.easeNone=E.none=E.Linear.easeIn,Lt("Elastic",Yt("in"),Yt("out"),Yt()),pe=7.5625,Lt("Bounce",function(t){return 1-He(1-t)},He),Lt("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),Lt("Circ",function(t){return-(ve(1-t*t)-1)}),Lt("Sine",function(t){return 1===t?1:1-ye(t*me)}),Lt("Back",Ut("in"),Ut("out"),Ut()),E.SteppedEase=E.steps=a.SteppedEase={config:function(t,e){var r=1/(t=void 0===t?1:t),i=t+(e?0:1),n=e?1:0;return function(t){return((i*Vt(0,.99999999,t)|0)+n)*r}}},_e.ease=E["quad.out"],p("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return Le+=t+","+t+"Param
6s,"});var Ze=function(t,e){this.id=ge++,(t._gsap=this).target=t,this.harness=e,this.get=e?e.get:v,this.set=e?e.getSetter:Tr},$e=((e=Je.prototype).delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(0<this._repeat?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,mt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(qe(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(ct(this,t),r._dp&&!r.parent&&pt(r,this);r&&r.parent;)r.parent._time!==r._start+(0<=r._ts?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(0<this._ts&&t<this._tDur||this._ts<0&&0<t||!this._tDur&&!t)&&D(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===q||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),y(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+ht(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+ht(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?Nt(this._tTime,r)+1:1},e.timeScale=function(t){if(!arguments.length)return this._rts===-q?0:this._rts;if(this._rts===t)return this;for(var e=this.parent&&this._ts?ft(this.parent._time,this):this._tTime,t=(this._rts=+t||0,this._ts=this._ps||t===-q?0:this._rts,this.totalTime(Vt(-this._delay,this._tDur,e),!0),lt(this),this),r=t.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return t},e.paused=function(t){return arguments.length?(this._ps!==t&&((this._ps=t)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(qe(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==q&&(this._tTime-=q)))),this):this._ps},e.startTime=function(t){var e;return arguments.length?(this._start=t,!(e=this.parent||this._dp)||!e._sort&&this.parent||D(e,this,t-this._delay),this):this._start},e.endTime=function(t){return this._start+(z(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ft(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){var e=L;return L=t=void 0===t?Pe:t,this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents),"nested"!==this.data&&ot(this),L=e,this},e.globalTime=function(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(e._ts||1),e=e._dp;return!this.parent&&this.vars.immediateRender?-1:r},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,gt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){var e;return arguments.length?(e=this._time,this._rDelay=t,gt(this),e?this.time(e):this):this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(h(this,t),z(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,z(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-q:0)),this):this._rts<0}
vendor: 14,966 bytes, line 6
6,e.invalidate=function(){return this._initted=this._act=0,this._zTime=-q,this},e.isActive=function(){var t=this.parent||this._dp,e=this._start;return!(t&&!(this._ts&&this._initted&&t.isActive()&&(t=t.rawTime(!0))>=e&&t<this.endTime(!0)-q))},e.eventCallback=function(t,e,r){var i=this.vars;return 1<arguments.length?(e?(i[t]=e,r&&(i[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},e.then=function(i){var n=this;return new Promise(function(e){function t(){var t=n.then;n.then=null,l(r)&&(r=r(n))&&(r.then||r===n)&&(n.then=t),e(r),n.then=t}var r=l(i)?i:w;n._initted&&1===n.totalProgress()&&0<=n._ts||!n._tTime&&n._ts<0?t():n._prom=t})},e.kill=function(){Pt(this)},Je);function Je(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,mt(this,+t.duration,1,1),this.data=t.data,o&&(this._ctx=o).data.push(this),Jt||_.wake()}B($e.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-q,_prom:0,_ps:!1,_rts:1});r(tr,Ke=$e),(e=tr.prototype).to=function(t,e,r){return vt(0,arguments,this),this},e.from=function(t,e,r){return vt(1,arguments,this),this},e.fromTo=function(t,e,r,i){return vt(2,arguments,this),this},e.set=function(t,e,r){return e.duration=0,e.parent=this,at(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new j(t,e,h(this,r),1),this},e.call=function(t,e,r){return D(this,j.delayedCall(0,t,e),r)},e.staggerTo=function(t,e,r,i,n,s,a){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=s,r.onCompleteParams=a,r.parent=this,new j(t,r,h(this,n)),this},e.staggerFrom=function(t,e,r,i,n,s,a){return r.runBackwards=1,at(r).immediateRender=z(r.immediateRender),this.staggerTo(t,e,r,i,n,s,a)},e.staggerFromTo=function(t,e,r,i,n,s,a,o){return i.startAt=r,at(i).immediateRender=z(i.immediateRender),this.staggerTo(t,e,i,n,s,a,o)},e.render=function(t,e,r){var i,n,s,a,o,u,h,f,l,c,p=this._time,_=this._dirty?this.totalDuration():this._tDur,d=this._dur,m=t<=0?0:A(t),g=this._zTime<0!=t<0&&(this._initted||!d);if((m=this!==I&&_<m&&0<=t?_:m)!==this._tTime||r||g){if(p!==this._time&&d&&(m+=this._time-p,t+=this._time-p),i=m,f=this._start,o=!(h=this._ts),g&&(d||(p=this._zTime),!t&&e||(this._zTime=t)),this._repeat){if(g=this._yoyo,a=d+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*a+t,e,r);if(i=A(m%a),m===_?(s=this._repeat,i=d):((s=~~(m/a))&&s===m/a&&(i=d,s--),d<i&&(i=d)),l=Nt(this._tTime,a),g&&1&s&&(i=d-i,c=1),s!==(l=!p&&this._tTime&&l!==s?s:l)&&!this._lock){var v=g&&1&l,g=v===(g&&1&s),p=(v=s<l?!v:v)?0:d;if(this._lock=1,this.render(p||(c?0:A(s*a)),e,!d)._lock=0,this._tTime=m,!e&&this.parent&&T(this,"onRepeat"),this.vars.repeatRefresh&&!c&&(this.invalidate()._lock=1),p&&p!==this._time||o!=!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(d=this._dur,_=this._tDur,g&&(this._lock=2,this.render(p=v?d:-1e-4,!0),this.vars.repeatRefresh&&!c&&this.invalidate()),this._lock=0,!this._ts&&!o)return this;Bt(this,c)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=function(t,e,r){var i;if(e<r)for(i=t._first;i&&i._start<=r;){if("isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start<e)return i;i=i._prev}}(this,A(p),A(i)))&&(m-=i-(i=u._start)),this._tTime=m,this._time=i,this._act=!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,p=0),!p&&i&&!e&&(T(this,"onStart"),this._tTime!==m))return this;if(p<=i&&0<=t)for(y=this._first;y;){if(n=y._next,(y._act||i>=y._start)&&y._ts&&u!==y){if(y.parent!==this)return this.render(t,e,r);if(y.render(0<y._ts?(i-y._start)*y._ts:(y._dirty?y.totalDuration():y._tDur)+(i-y._start)*y._ts,e,r),i!==this._time||!this._ts&&!o){u=0,n&&(m+=this._zTime=-q);break}}y=n}else{r=r||L;for(var y=this._last,x=t<0?t:i;y;){if(n=y._prev,(y._act||x<=y._end)&&y._ts&&u!==y){if(y.parent!==this)return this.render(t,e,r);if(y.render(0<y._ts?(x-y._start)*y._ts:(y._dirty?y.totalDuration():y._tDur)+(x-y._start)*y._ts,e,r),i!==this._time||!this._ts&&!o){u=0,n&&(m+=this._zTime=x?-q:q);break}}y=n}}if(u&&!e&&(this.pause(),u.render(p<=i?0:-q)._zTime=p<=i?1:-1,this._ts))return this._start=f,lt(this),this.render(t,e,r);this._onUpdate&&!e&&T(this,"onUpdate",!0),!(m===_&&this._tTime>=this.totalDuration()||!m&&p)||f!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||(!t&&d||!(m===_&&0<this._ts||!m&&this._ts<0)||ot(this,1),e||t<0&&!p||!m&&!p&&_||(T(this,m===_&&0<=t?"onComplete":"onReverseComplete",!0),!this._prom||m<_&&0<this.timeScale()||this._prom()))}return this},e.add=function(t,e){var r=this;if($(e)||(e=h(this,e,t)),!(t instanceof $e)){if(P(t))return t.forEach(function(t){return r.add(t,e)}),this;if(U(t))return this.addLabel(t,e);if(!l(t))return this;t=j.delayedCall(0,t)}return this!==t?D(this,t,e):this},e.getChildren=function(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-Y);for(var n=[],s=this._first;s;)s._start>=i&&(s instanceof j?e&&n.push(s):(r&&n.push(s),t&&n.push.apply(n,s.getChildren(!0,e,r)))),s=s._next;return n},e.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},e.remove=function(t){return U(t)?this.removeLabel(t):l(t)?this.killTweensOf(t):(O(this,t),t===this._recent&&(this._recent=this._last),k(this))},e.totalTime=function(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=A(_.time-(0<this._ts?t/this._ts:(this.totalDuration()-t)/-this._ts))),Ke.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},e.addLabel=function(t,e){return this.labels[t]=h(this,e),this},e.removeLabel=function(t){return delete this.labels[t],this},e.addPause=function(t,e,r){e=j.delayedCall(0,e||g,r);return e.data="isPause",this._hasPause=1,D(this,e,h(this,t))},e.removePause=function(t){var e=this._first;for(t=h(this,t);e;)e._start===t&&"isPause"===e.data&&ot(e),e=e._next},e.killTweensOf=function(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)nr!==i[n]&&i[n].kill(t,e);return this},e.getTweensOf=function(t,e){for(var r,i=[],n=S(t),s=this._first,a=$(e);s;)s instanceof j?function(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r}(s._targets,n)&&(a?(!nr||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&i.push(s):(r=s.getTweensOf(n,e)).length&&i.push.apply(i,r),s=s._next;return i},e.tweenTo=function(t,e){e=e||{};var r,i=this,n=h(i,t),s=e.startAt,a=e.onStart,o=e.onStartParams,t=e.immediateRender,u=j.to(i,B({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(s&&"time"in s?s.time:i._time))/i.timeScale())||q,onStart:function(){var t;i.pause(),r||(t=e.duration||Math.abs((n-(s&&"time"in s?s.time:i._time))/i.timeScale()),u._dur!==t&&mt(u,t,0,1).render(u._time,!0,!0),r=1),a&&a.apply(u,o||[])}},e));return t?u.render(0):u},e.tweenFromTo=function(t,e,r){return this.tweenTo(e,B({startAt:{time:h(this,t)}},r))},e.recent=function(){return this._recent},e.nextLabel=function(t){return void 0===t&&(t=this._time),Dt(this,h(this,t))},e.previousLabel=function(t){return void 0===t&&(t=this._time),Dt(this,h(this,t),1)},e.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+q)},e.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,s=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in s)s[i]>=r&&(s[i]+=t);return k(this)},e.invalidate=function(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return Ke.prototype.invalidate.call(this)},e.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),k(this)},e.totalDuration=function(t){var e,r,i,n=0,s=this,a=s._last,o=Y;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(i=s.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),o<(r=a._start)&&s._sort&&a._ts&&!s._lock?(s._lock=1,D(s,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(n-=r,(!i&&!s._dp||i&&i.smoothChildTiming)&&(s._start+=r/s._ts,s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-1/0),o=0),a._end>n&&a._ts&&(n=a._end),a=e;mt(s,s===I&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},tr.updateRoot=function(t){if(I._ts&&(y(I,ft(t,I)),$t=_.frame),_.frame>=Fe){Fe+=N.autoSleep||120;var e=I._first;if((!e||!e._ts)&&N.autoSleep&&_._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||_.sleep()}}};var Ke,R=tr;function tr(t,e){var r;return(r=Ke.call(this,t=void 0===t?{}:t)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=z(t.sortChildren),I&&D(t.parent||I,Z(r),e),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&_t(Z(r),t.scrollTrigger),r}function er(t,e,r,i,n,s){var a,o,u,h;if(V[t]&&!1!==(a=new V[t]).init(n,a.rawVars?e[t]:function(t,e,r,i,n){if(!C(t=l(t)?ir(t,n,e,r,i):t)||t.style&&t.nodeType||P(t)||Te(t))return U(t)?ir(t,n,e,r,i):t;var s,a={};for(s in t)a[s]=ir(t[s],n,e,r,i);return a}(e[t],i,n,s,r),r,i,s)&&(r._pt=o=new Q(r._pt,n,t,0,1,a.render,a,0,a.priority),r!==Br))for(u=r._ptLookup[r._targets.indexOf(n)],h=a._props.length;h--;)u[a._props[h]]=o;return a}B(R.prototype,{_lock:0,_hasPause:0,_forcing:0});function rr(t,e){var r,i,n,s,a,o,u,h,f,l,c,p,_,d=t.vars,m=d.ease,g=d.startAt,v=d.immediateRender,y=d.lazy,x=d.onUpdate,T=d.onUpdateParams,w=d.callbackScope,b=d.runBackwards,M=d.yoyoEase,O=d.keyframes,k=d.autoRevert,C=t._dur,A=t._startAt,D=t._targets,P=t.parent,S=P&&"nested"===P.data?P.parent._targets:D,E="auto"===t._overwrite&&!Qt,R=t.timeline;if(t._ease=Ge(m=!R||O&&m?m:"none",_e.ease),t._yEase=M?Qe(Ge(!0===M?m:M,_e.ease)):0,M&&t._yoyo&&!t._repeat&&(M=t._yEase,t._yEase=t._ease,t._ease=M),t._from=!R&&!!d.runBackwards,!R||O&&!d.stagger){if(p=(h=D[0]?rt(D[0]).harness:0)&&d[h.prop],r=st(d,Se),A&&(A.revert(b&&C?Pe:De),A._lazy=0),g){if(ot(t._startAt=j.set(D,B({data:"isStart",overwrite:!1,parent:P,immediateRender:!0,lazy:z(y),startAt:null,delay:0,onUpdate:x,onUpdateParams:T,callbackScope:w,stagger:0},g))),e<0&&(L||!v&&!k)&&t._startAt.revert(Pe),v&&C&&e<=0)return void(e&&(t._zTime=e))}else if(b&&C&&!A)if(n=B({overwrite:!1,data:"isFromStart",lazy:(v=e?!1:v)&&z(y),immediateRender:v,stagger:0,parent:P},r),p&&(n[h.prop]=p),ot(t._startAt=j.set(D,n)),e<0&&(L?t._startAt.revert(Pe):t._startAt.render(-1,!0)),t._zTime=e,v){if(!e)return}else rr(t._startAt,q);for(t._pt=t._ptCache=0,y=C&&z(y)||y&&!C,i=0;i<D.length;i++){if(u=(a=D[i])._gsap||et(D)[i]._gsap,t._ptLookup[i]=l={},Re[u.id]&&Ee.length&&nt(),c=S===D?i:S.indexOf(a),h&&!1!==(f=new h).init(a,p||r,t,c,S)&&(t._pt=s=new Q(t._pt,a,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(t){l[t]=s}),f.priority&&(o=1)),!h||p)for(n in r)V[n]&&(f=er(n,r,t,c,a,S))?f.priority&&(o=1):l[n]=s=or.call(t,a,n,"get",r[n],c,S,0,d.stringFilter);t._op&&t._op[i]&&t.kill(a,t._op[i]),E&&t._pt&&(nr=t,I.killTweensOf(a,l,t.globalTime(e)),_=!t.parent,nr=0),t._pt&&y&&(Re[u.id]=1)}o&&wr(t),t._onInit&&t._onInit(t)}t._onUpdate=x,t._initted=(!t._op||t._pt)&&!_,O&&e<=0&&R.render(Y,!0,!0)}function ir(t,e,r,i,n){return l(t)?t.call(e,r,i,n):U(t)&&~t.indexOf("random(")?At(t):t}var nr,sr,ar,or=function(t,e,r,i,n,s,a,o,u,h){l(i)&&(i=i(n||0,t,s));var f,n=t[e],s="get"!==r?r:l(n)?u?t[e.indexOf("set")||!l(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():n,r=l(n)?u?_r:pr:cr;if(U(i)&&("="!==(i=~i.indexOf("random(")?At(i):i).charAt(1)||!(f=it(s,i)+(X(s)||0))&&0!==f||(i=f)),!h||s!==i||sr)return isNaN(s*i)||""===i?(n||e in t||K(e,i),function(t,e,r,i,n,s,a){var o,u,h,f,l,c=new Q(this._pt,t,e,0,1,gr,null,n),p=0,_=0;for(c.b=r,c.e=i,r+="",(n=~(i+="").indexOf("random("))&&(i=At(i)),s&&(s(s=[r,i],t,e),r=s[0],i=s[1]),o=r.match(Oe)||[];f=Oe.exec(i);)h=f[0],f=i.substring(p,f.index),u?u=(u+1)%5:"rgba("===f.substr(-5)&&(u=1),h!==o[_++]&&(l=parseFloat(o[_-1])||0,c._pt={_next:c._pt,p:f||1===_?f:",",s:l,c:"="===h.charAt(1)?it(l,h)-l:parseFloat(h)-l,m:u&&u<4?Math.round:0},p=Oe.lastIndex);return c.c=p<i.length?i.substring(p,i.length):"",c.fp=a,(ke.test(i)||n)&&(c.e=0),this._pt=c}.call(this,t,e,s,i,r,o||N.stringFilter,u)):(f=new Q(this._pt,t,e,+s||0,i-(s||0),"boolean"==typeof n?mr:dr,0,r),u&&(f.fp=u),a&&f.modifier(a,this,t),this._pt=f)},ur=Le+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",hr={},j=(p(ur+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return hr[t]=1}),r(n,ar=$e),(e=n.prototype).render=function(t,e,r){var i,n,s=this._time,a=this._tDur,o=this._dur,u=t<0,h=a-q<t&&!u?a:t<q?0:t;if(o){if(h!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=u){if(m=h,p=this.timeline,this._repeat){if(f=o+this._rDelay,this._repeat<-1&&u)return this.totalTime(100*f+t,e,r);if(m=A(h%f),h===a?(v=this._repeat,m=o):((v=~~(h/f))&&v===h/f&&(m=o,v--),o<m&&(m=o)),(c=this._yoyo&&1&v)&&(l=this._yEase,m=o-m),y=Nt(this._tTime,f),m===s&&!r&&this._initted)return this._tTime=h,this;v!==y&&(p&&this._yEase&&Bt(p,c),!this.vars.repeatRefresh||c||this._lock||(this._lock=r=1,this.render(A(f*v),!0).invalidate()._lock=0))}if(!this._initted){if(dt(this,u?t:m,r,e))return this._tTime=0,this;if(s!==this._time)return this;if(o!==this._dur)return this.render(t,e,r)}if(this._tTime=h,this._time=m,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=n=(l||this._ease)(m/o),this._from&&(this.ratio=n=1-n),m&&!s&&!e&&(T(this,"onStart"),this._tTime!==h))return this;for(i=this._pt;i;)i.r(n,i.d),i=i._next;p&&p.render(t<0?t:!m&&c?-q:p._dur*p._ease(m/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(u&&ut(this,t,0,r),T(this,"onUpdate")),this._repeat&&v!==y&&this.vars.onRepeat&&!e&&this.parent&&T(this,"onRepeat"),h!==this._tDur&&h||this._tTime!==h||(u&&!this._onUpdate&&ut(this,t,0,!0),!t&&o||!(h===this._tDur&&0<this._ts||!h&&this._ts<0)||ot(this,1),e||u&&!s||!h&&!s||(T(this,h===a?"onComplete":"onReverseComplete",!0),!this._prom||h<a&&0<this.timeScale()||this._prom()))}}else{var f=this;var l=t;var c=e;var p=r;var _,d,m=f.ratio,g=l<0||!l&&(!f._start&&function t(e){e=e.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||t(e))}(f)&&(f._initted||!qt(f))||(f._ts<0||f._dp._ts<0)&&!qt(f))?0:1,v=f._rDelay,y=0;if(v&&f._repeat&&(y=Vt(0,f._tDur,l),d=Nt(y,v),f._yoyo&&1&d&&(g=1-g),d!==Nt(f._tTime,v)&&(m=1-g,f.vars.repeatRefresh&&f._initted&&f.invalidate())),g!==m||L||p||f._zTime===q||!l&&f._zTime){if(f._initted||!dt(f,l,p,c)){for(d=f._zTime,f._zTime=l||(c?q:0),c=c||l&&!d,f.ratio=g,f._from&&(g=1-g),f._time=0,f._tTime=y,_=f._pt;_;)_.r(g,_.d),_=_._next;l<0&&ut(f,l,0,!0),f._onUpdate&&!c&&T(f,"onUpdate"),y&&f._repeat&&!c&&f.parent&&T(f,"onRepeat"),(l>=f._tDur||l<0)&&f.ratio===g&&(g&&ot(f,1),c||(T(f,g?"onComplete":"onReverseComplete",!0),f._prom&&f._prom()))}}else f._zTime||(f._zTime=l)}return this},e.targets=function(){return this._targets}
vendor: 4,569 bytes, line 6
6,e.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),ar.prototype.invalidate.call(this)},e.resetTo=function(t,e,r,i){Jt||_.wake(),this._ts||this.play();var n,s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||rr(this,s),n=this._ease(s/this._dur),function(t,e,r,i,n,s,a){var o,u,h,f,l=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!l)for(l=t._ptCache[e]=[],h=t._ptLookup,f=t._targets.length;f--;){if((o=h[f][e])&&o.d&&o.d._pt)for(o=o.d._pt;o&&o.p!==e&&o.fp!==e;)o=o._next;if(!o)return sr=1,t.vars[e]="+=0",rr(t,a),sr=0,1;l.push(o)}for(f=l.length;f--;)(o=(u=l[f])._pt||u).s=!i&&0!==i||n?o.s+(i||0)+s*o.c:i,o.c=r-o.s,u.e&&(u.e=F(r)+X(u.e)),u.b&&(u.b=o.s+X(u.b))}(this,t,e,r,i,n,s)?this.resetTo(t,e,r,i):(ct(this,0),this.parent||M(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?Pt(this):this;if(this.timeline)c=this.timeline.totalDuration(),this.timeline.killTweensOf(t,e,nr&&!0!==nr.vars.overwrite)._first||Pt(this),this.parent&&c!==this.timeline.totalDuration()&&mt(this,this._dur*this.timeline._tDur/c,0,1);else{var r,i,n,s,a,o,u,h=this._targets,f=t?S(t):h,l=this._ptLookup,c=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(h,f))return"all"===e&&(this._pt=0),Pt(this);for(r=this._op=this._op||[],"all"!==e&&(U(e)&&(a={},p(e,function(t){return a[t]=1}),e=a),e=function(t,e){var r,i,n,s,t=t[0]?rt(t[0]).harness:0,a=t&&t.aliases;if(!a)return e;for(i in r=Xt({},e),a)if(i in r)for(n=(s=a[i].split(",")).length;n--;)r[s[n]]=r[i];return r}(h,e)),u=h.length;u--;)if(~f.indexOf(h[u]))for(a in i=l[u],"all"===e?(r[u]=e,s=i,n={}):(n=r[u]=r[u]||{},s=e),s)(o=i&&i[a])&&("kill"in o.d&&!0!==o.d.kill(a)||O(this,o,"_pt"),delete i[a]),"all"!==n&&(n[a]=1);this._initted&&!this._pt&&c&&Pt(this)}return this},n.to=function(t,e,r){return new n(t,e,r)},n.from=function(t,e){return vt(1,arguments)},n.delayedCall=function(t,e,r,i){return new n(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},n.fromTo=function(t,e,r){return vt(2,arguments)},n.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new n(t,e)},n.killTweensOf=function(t,e,r){return I.killTweensOf(t,e,r)},n);function n(t,e,r,i){var n;"number"==typeof e&&(r.duration=e,e=r,r=null);var s,a,o,u,h,f,l,c,i=(n=ar.call(this,i?e:at(e))||this).vars,p=i.duration,_=i.delay,d=i.immediateRender,m=i.stagger,g=i.overwrite,v=i.keyframes,y=i.defaults,x=i.scrollTrigger,T=i.yoyoEase,i=e.parent||I,w=(P(t)||Te(t)?$(t[0]):"length"in e)?[t]:S(t);if(n._targets=w.length?et(w):tt("GSAP target "+t+" not found. https://greensock.com",!N.nullTargetWarn)||[],n._ptLookup=[],n._overwrite=g,v||m||J(p)||J(_)){if(e=n.vars,(s=n.timeline=new R({data:"nested",defaults:y||{}})).kill(),s.parent=s._dp=Z(n),s._start=0,m||J(p)||J(_)){if(u=w.length,l=m&&bt(m),C(m))for(h in m)~ur.indexOf(h)&&((c=c||{})[h]=m[h]);for(a=0;a<u;a++)(o=st(e,hr)).stagger=0,T&&(o.yoyoEase=T),c&&Xt(o,c),f=w[a],o.duration=+ir(p,Z(n),a,f,w),o.delay=(+ir(_,Z(n),a,f,w)||0)-n._delay,!m&&1===u&&o.delay&&(n._delay=_=o.delay,n._start+=_,o.delay=0),s.to(f,o,l?l(a,f,w):0),s._ease=E.none;s.duration()?p=_=0:n.timeline=0}else if(v){at(B(s.vars.defaults,{ease:"none"})),s._ease=Ge(v.ease||e.ease||"none");var b,M,O,k=0;if(P(v))v.forEach(function(t){return s.to(w,t,">")}),s.duration();else{for(h in o={},v)"ease"!==h&&"easeEach"!==h&&function(t,r,e,i){var n,s,a=r.ease||i||"power1.inOut";if(P(r))s=e[t]||(e[t]=[]),r.forEach(function(t,e){return s.push({t:e/(r.length-1)*100,v:t,e:a})});else for(n in r)s=e[n]||(e[n]=[]),"ease"!==n&&s.push({t:parseFloat(t),v:r[n],e:a})}(h,v[h],o,v.easeEach);for(h in o)for(b=o[h].sort(function(t,e){return t.t-e.t}),a=k=0;a<b.length;a++)(O={ease:(M=b[a]).e,duration:(M.t-(a?b[a-1].t:0))/100*p})[h]=M.v,s.to(w,O,k),k+=O.duration;s.duration()<p&&s.to({},{duration:p-s.duration()})}}p||n.duration(p=s.duration())}else n.timeline=0;return!0!==g||Qt||(nr=Z(n),I.killTweensOf(w),nr=0),D(i,Z(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),(d||!p&&!v&&n._start===A(i._time)&&z(d)&&function t(e){return!e||e._ts&&t(e.parent)}(Z(n))&&"nested"!==i.data)&&(n._tTime=-q,n.render(Math.max(0,-_))),x&&_t(Z(n),x),n}function fr(t,e,r){return t.setAttribute(e,r)}function lr(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}
6B(j.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),p("staggerTo,staggerFrom,staggerFromTo",function(r){j[r]=function(){var t=new R,e=Ye.call(arguments,0);return e.splice("staggerFromTo"===r?5:4,0,0),t[r].apply(t,e)}});function cr(t,e,r){return t[e]=r}function pr(t,e,r){return t[e](r)}function _r(t,e,r,i){return t[e](i.fp,r)}function dr(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)}function mr(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)}function gr(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)}function vr(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next}function yr(t,e,r,i){for(var n,s=this._pt;s;)n=s._next,s.p===i&&s.modifier(t,e,r),s=n}function xr(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?O(this,i,"_pt"):i.dep||(e=1),i=r;return!e}var Tr=function(t,e){return l(t[e])?pr:s(t[e])&&t.setAttribute?fr:cr},wr=function(t){for(var e,r,i,n,s=t._pt;s;){for(e=s._next,r=i;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:n)?s._prev._next=s:i=s,(s._next=r)?r._prev=s:n=s,s=e}t._pt=i},Q=(br.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=lr,this.m=t,this.mt=r,this.tween=e},br);function br(t,e,r,i,n,s,a,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=s||dr,this.d=a||this,this.set=o||cr,this.pr=u||0,(this._next=t)&&(t._prev=this)}function Mr(t){(Cr[t]||Ar).map(function(t){return t()})}function Or(){var t=Date.now(),o=[];2<t-Dr&&(Mr("matchMediaInit"),kr.forEach(function(t){var e,r,i,n,s=t.queries,a=t.conditions;for(r in s)(e=u.matchMedia(s[r]).matches)&&(i=1),e!==a[r]&&(a[r]=e,n=1);n&&(t.revert(),i&&o.push(t))}),Mr("matchMediaRevert"),o.forEach(function(t){return t.onMatch(t)}),Dr=t,Mr("matchMedia"))}p(Le+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return Se[t]=1}),a.TweenMax=a.TweenLite=j,a.TimelineLite=a.TimelineMax=R,I=new R({sortChildren:!1,defaults:_e,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),N.stringFilter=Ft;var kr=[],Cr={},Ar=[],Dr=0,Pr=((e=Sr.prototype).add=function(t,i,n){function e(){var t,e=o,r=s.selector;return e&&e.data.push(s),n&&(s.selector=Tt(n)),o=s,l(t=i.apply(s,arguments))&&s._r.push(t),o=e,s.selector=r,s.isReverted=!1,t}l(t)&&(n=i,i=t,t=l);var s=this;return s.last=e,t===l?e(s):t?s[t]=e:e},e.ignore=function(t){var e=o;o=null,t(this),o=e},e.getTweens=function(){var e=[];return this.data.forEach(function(t){return t instanceof Sr?e.push.apply(e,t.getTweens()):t instanceof j&&t._targets[0]!==t.vars.onComplete&&e.push(t)}),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(e,t){var r=this;e?(this.getTweens().map(function(t){return{g:t.globalTime(0),t:t}}).sort(function(t,e){return e.g-t.g||-1}).forEach(function(t){return t.t.revert(e)}),this.data.forEach(function(t){return!(t instanceof $e)&&t.revert&&t.revert(e)}),this._r.forEach(function(t){return t(e,r)}),this.isReverted=!0):this.data.forEach(function(t){return t.kill&&t.kill()}),this.clear(),t&&~(t=kr.indexOf(this))&&kr.splice(t,1)},e.revert=function(t){this.kill(t||{})},Sr);function Sr(t,e){this.selector=e&&Tt(e),this.data=[],this._r=[],this.isReverted=!1,t&&this.add(t)}(e=Rr.prototype).add=function(t,e,r){C(t)||(t={matches:t});var i,n,s,a=new Pr(0,r||this.scope),o=a.conditions={};for(n in this.contexts.push(a),e=a.add("onMatch",e),a.queries=t)"all"===n?s=1:(i=u.matchMedia(t[n]))&&(kr.indexOf(a)<0&&kr.push(a),(o[n]=i.matches)&&(s=1),i.addListener?i.addListener(Or):i.addEventListener("change",Or));return s&&e(a),this},e.revert=function(t){this.kill(t||{})}
6,e.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})};var Er=Rr;function Rr(t){this.contexts=[],this.scope=t}var zr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t){var e=(t=!t.name&&t.default||t).name,r=l(t),r=e&&!r&&t.init?function(){this._props=[]}:t,i={init:g,render:vr,add:or,kill:xr,modifier:yr,rawVars:0},n={targetTest:0,get:0,getSetter:Tr,aliases:{},register:0};if(qe(),t!==r){if(V[e])return;B(r,B(st(t,i),n)),Xt(r.prototype,Xt(i,st(t,n))),V[r.prop=e]=r,t.targetTest&&(Be.push(r),Se[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}m(e,r),t.register&&t.register(f,r,Q)})},timeline:function(t){return new R(t)},getTweensOf:function(t,e){return I.getTweensOf(t,e)},getProperty:function(i,t,e,r){var n=rt((i=U(i)?S(i)[0]:i)||{}).get,s=e?w:x;return"native"===e&&(e=""),i&&(t?s((V[t]&&V[t].get||n)(i,t,e,r)):function(t,e,r){return s((V[t]&&V[t].get||n)(i,t,e,r))})},quickSetter:function(r,e,i){var n,s;if(1<(r=S(r)).length)return n=r.map(function(t){return f.quickSetter(t,e,i)}),s=n.length,function(t){for(var e=s;e--;)n[e](t)};r=r[0]||{};var a=V[e],o=rt(r),u=o.harness&&(o.harness.aliases||{})[e]||e,h=a?function(t){var e=new a;Br._pt=0,e.init(r,i?t+i:t,Br,0,[r]),e.render(1,e),Br._pt&&vr(1,Br)}:o.set(r,u);return a?h:function(t){return h(r,u,i?t+i:t,o,1)}},quickTo:function(t,i,e){function r(t,e,r){return n.resetTo(i,t,e,r)}var n=f.to(t,Xt(((t={})[i]="+=0.1",t.paused=!0,t),e||{}));return r.tween=n,r},isTweening:function(t){return 0<I.getTweensOf(t,!0).length},defaults:function(t){return t&&t.ease&&(t.ease=Ge(t.ease,_e.ease)),b(_e,t||{})},config:function(t){return b(N,t||{})},registerEffect:function(t){var i=t.name,n=t.effect,e=t.plugins,s=t.defaults,t=t.extendTimeline;(e||"").split(",").forEach(function(t){return t&&!V[t]&&!a[t]&&tt(i+" effect requires "+t+" plugin.")}),ze[i]=function(t,e,r){return n(S(t),B(e||{},s),r)},t&&(R.prototype[i]=function(t,e,r){return this.add(ze[i](t,C(e)?e:(r=e)&&{},this),r)})},registerEase:function(t,e){E[t]=Ge(e)},parseEase:function(t,e){return arguments.length?Ge(t,e):E},getById:function(t){return I.getById(t)},exportRoot:function(t,e){var r,i,n=new R(t=void 0===t?{}:t);for(n.smoothChildTiming=z(t.smoothChildTiming),I.remove(n),n._dp=0,n._time=n._tTime=I._time,r=I._first;r;)i=r._next,!e&&!r._dur&&r instanceof j&&r.vars.onComplete===r._targets[0]||D(n,r,r._start-r._delay),r=i;return D(I,n,0),n},context:function(t,e){return t?new Pr(t,e):o},matchMedia:function(t){return new Er(t)},matchMediaRefresh:function(){return kr.forEach(function(t){var e,r,i=t.conditions;for(r in i)i[r]&&(i[r]=!1,e=1);e&&t.revert()})||Or()},addEventListener:function(t,e){t=Cr[t]||(Cr[t]=[]);~t.indexOf(e)||t.push(e)},removeEventListener:function(t,e){t=Cr[t],e=t&&t.indexOf(e);0<=e&&t.splice(e,1)},utils:{wrap:function t(e,r,i){var n=r-e;return P(e)?Ct(e,t(0,e.length),r):yt(i,function(t){return(n+(t-e)%n)%n+e})},wrapYoyo:function t(e,r,i){var n=r-e,s=2*n;return P(e)?Ct(e,t(0,e.length-1),r):yt(i,function(t){return e+(n<(t=(s+(t-e)%s)%s||0)?s-t:t)})},distribute:bt,random:kt,snap:Ot,normalize:function(t,e,r){return jt(t,e,0,1,r)},getUnit:X,clamp:function(e,r,t){return yt(t,function(t){return Vt(e,r,t)})},splitColor:Et,toArray:S,selector:Tt,mapRange:jt,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function(e,r){return function(t){return e(parseFloat(t))+(r||X(t))}},interpolate:function t(e,r,i,n){var s=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!s){var a,o,u,h,f,l=U(e),c={};if(!0===i&&(n=1)&&(i=null),l)e={p:e},r={p:r};else if(P(e)&&!P(r)){for(u=[],h=e.length,f=h-2,o=1;o<h;o++)u.push(t(e[o-1],e[o]));h--,s=function(t){t*=h;var e=Math.min(f,~~t);return u[e](t-e)},i=r}else n||(e=Xt(P(e)?[]:{},e));if(!u){for(a in r)or.call(c,e,a,"get",r[a]);s=function(t){return vr(t,c),l?e.p:e}}}return yt(i,s)},shuffle:wt},install:d,effects:ze,ticker:_,updateRoot:R.updateRoot,plugins:V,globalTimeline:I,core:{PropTween:Q,globals:m,Tween:j,Timeline:R,Animation:$e,getCache:rt,_removeLinkedListItem:O,reverting:function(){return L},context:function(t){return t&&o&&(o.data.push(t),t._ctx=o),o},suppressOverwrites:function(t){return Qt=t}}};function Fr(t,f){return{name:t,rawVars:1,init:function(t,h,e){e._onInit=function(t){var e,r;if(U(h)&&(e={},p(h,function(t){return e[t]=1}),h=e),f){for(r in e={},h)e[r]=f(h[r]);h=e}var i,n,s,a=t,o=h,u=a._targets;for(i in o)for(n=u.length;n--;)(s=(s=a._ptLookup[n][i])&&s.d)&&(s._pt&&(s=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r}(s,i)),s&&s.modifier&&s.modifier(o[i],a,u[n],i))}}}}p("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return zr[t]=j[t]}),_.add(R.updateRoot);var Br=zr.to({},{duration:0}),f=zr.registerPlugin({name:"attr",init:function(t,e,r,i,n){var s,a,o;for(s in this.tween=r,e)o=t.getAttribute(s)||"",(a=this.add(t,"setAttribute",(o||0)+"",e[s],i,n,0,0,s)).op=s,a.b=o,this._props.push(s)},render:function(t,e){for(var r=e._pt;r;)L?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},Fr("roundProps",Mt),Fr("modifiers"),Fr("snap",Ot))||zr;function Lr(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function Ir(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function Yr(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function Ur(t,e){t=e.s+e.c*t;e.set(e.t,e.p,~~(t+(t<0?-.5:.5))+e.u,e)}function Xr(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function Nr(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function qr(t,e,r){return t.style[e]=r}function Vr(t,e,r){return t.style.setProperty(e,r)}function jr(t,e,r){return t._gsap[e]=r}function Qr(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r}function Gr(t,e,r,i,n){t=t._gsap;t.scaleX=t.scaleY=r,t.renderTransform(n,t)}function Wr(t,e,r,i,n){t=t._gsap;t[e]=r,t.renderTransform(n,t)}function Hr(t){var e=this,r=this.target,i=r.style;if(t in Ui){if(this.tfm=this.tfm||{},"transform"!==t&&(~(t=Gi[t]||t).indexOf(",")?t.split(",").forEach(function(t){return e.tfm[t]=Ji(r,t)}):this.tfm[t]=r._gsap.x?r._gsap[t]:Ji(r,t)),r._gsap.svg&&(this.svg=r.getAttribute(t)||""),0<=this.props.indexOf(W))return;t=W}i&&this.props.push(t,i[t])}function Zr(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))}function $r(){for(var t,e=this.props,r=this.target,i=r.style,n=r._gsap,s=0;s<e.length;s+=2)e[s+1]?i[e[s]]=e[s+1]:i.removeProperty(e[s].replace(Vi,"-$1").toLowerCase());if(this.tfm){for(t in n.svg&&r.setAttribute("transform",this.svg||""),this.tfm)n[t]=this.tfm[t];!(s=Ti())||s.isStart||i[W]||(Zr(i),n.uncache=1)}}function Jr(t,e){var r={target:t,props:[],revert:$r,save:Hr};
vendor: 9,245 bytes, line 6
6return e&&e.split(",").forEach(function(t){return r.save(t)}),r}function Kr(t,e){e=mi.createElementNS?mi.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):mi.createElement(t);return e.style?e:mi.createElement(t)}function G(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(Vi,"-$1").toLowerCase())||i.getPropertyValue(e)||!r&&G(t,Hi(e)||e,1)||""}function ti(){"undefined"!=typeof window&&window.document&&(gi=(mi=window.document).documentElement,yi=Kr("div")||{style:{}},Kr("div"),W=Hi(W),H=W+"Origin",yi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",wi=!!Hi("perspective"),Ti=f.core.reverting,vi=1)}function ei(t){var e,r=Kr("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,n=this.nextSibling,s=this.style.cssText;if(gi.appendChild(r),r.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=ei}catch(t){}else this._gsapBBox&&(e=this._gsapBBox());return i&&(n?i.insertBefore(this,n):i.appendChild(this)),gi.removeChild(r),this.style.cssText=s,e}function ri(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])}function ii(e){var r;try{r=e.getBBox()}catch(t){r=ei.call(e,!0)}return!(r=r&&(r.width||r.height)||e.getBBox===ei?r:ei.call(e,!0))||r.width||r.x||r.y?r:{x:+ri(e,["x","cx","x1"])||0,y:+ri(e,["y","cy","y1"])||0,width:0,height:0}}function ni(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!ii(t))}function si(t,e){e&&(t=t.style,e in Ui&&e!==H&&(e=W),t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(Vi,"-$1").toLowerCase())):t.removeAttribute(e))}function ai(t,e,r,i,n,s){e=new Q(t._pt,e,r,0,1,s?Nr:Xr);(t._pt=e).b=i,e.e=n,t._props.push(r)}function oi(t,e,r,i){var n,s=parseFloat(r)||0,a=(r+"").trim().substr((s+"").length)||"px",o=yi.style,u=ji.test(e),h="svg"===t.tagName.toLowerCase(),f=(h?"client":"offset")+(u?"Width":"Height"),l="px"===i,c="%"===i;return i===a||!s||Zi[i]||Zi[a]?s:("px"===a||l||(s=oi(t,e,r,"px")),r=t.getCTM&&ni(t),!c&&"%"!==a||!Ui[e]&&!~e.indexOf("adius")?(o[u?"width":"height"]=100+(l?a:i),e=~e.indexOf("adius")||"em"===i&&t.appendChild&&!h?t:t.parentNode,(i=(e=(e=r?(t.ownerSVGElement||{}).parentNode:e)&&e!==mi&&e.appendChild?e:mi.body)._gsap)&&c&&i.width&&u&&i.time===_.time&&!i.uncache?F(s/i.width*100):(!c&&"%"!==a||$i[G(e,"display")]||(o.position=G(t,"position")),e===t&&(o.position="static"),e.appendChild(yi),n=yi[f],e.removeChild(yi),o.position="absolute",u&&c&&((i=rt(e)).time=_.time,i.width=e[f]),F(l?n*s/100:n&&s?100/n*s:0))):(n=r?t.getBBox()[u?"width":"height"]:t[f],F(c?s/n*100:s/100*n)))}function ui(t,e,r,i){var n;r&&"none"!==r||((n=(s=Hi(e,t,1))&&G(t,s,1))&&n!==r?(e=s,r=n):"borderColor"===e&&(r=G(t,"borderTopColor")));var s,a,o,u,h,f,l,c,p,_=new Q(this._pt,t.style,e,0,1,gr),d=0,m=0;if(_.b=r,_.e=i,r+="","auto"==(i+="")&&(t.style[e]=i,i=G(t,e)||i,t.style[e]=r),Ft(s=[r,i]),i=s[1],a=(r=s[0]).match(Me)||[],(i.match(Me)||[]).length){for(;l=Me.exec(i);)c=l[0],l=i.substring(d,l.index),u?u=(u+1)%5:"rgba("!==l.substr(-5)&&"hsla("!==l.substr(-5)||(u=1),c!==(h=a[m++]||"")&&(o=parseFloat(h)||0,p=h.substr((o+"").length),"="===c.charAt(1)&&(c=it(o,c)+p),f=parseFloat(c),c=c.substr((f+"").length),d=Me.lastIndex-c.length,c||(c=c||N.units[e]||p,d===i.length&&(i+=c,_.e+=c)),p!==c&&(o=oi(t,e,h,c)||0),_._pt={_next:_._pt,p:l||1===m?l:",",s:o,c:f-o,m:u&&u<4||"zIndex"===e?Math.round:0});_.c=d<i.length?i.substring(d,i.length):""}else _.r="display"===e&&"none"===i?Nr:Xr;return ke.test(i)&&(_.e=0),this._pt=_}function hi(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,i,n,s=e.t,a=s.style,o=e.u,e=s._gsap;if("all"===o||!0===o)a.cssText="",i=1;else for(n=(o=o.split(",")).length;-1<--n;)r=o[n],Ui[r]&&(i=1,r="transformOrigin"===r?H:W),si(s,r);i&&(si(s,W),e&&(e.svg&&s.removeAttribute("transform"),nn(s,1),e.uncache=1,Zr(a)))}}function fi(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t}function li(t){t=G(t,W);return fi(t)?en:t.substr(7).match(be).map(F)}function ci(t,e){var r,i,n,s=t._gsap||rt(t),a=t.style,o=li(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(o=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?en:o:(o!==en||t.offsetParent||t===gi||s.svg||(i=a.display,a.display="block",(s=t.parentNode)&&t.offsetParent||(n=1,r=t.nextElementSibling,gi.appendChild(t)),o=li(t),i?a.display=i:si(t,"display"),n&&(r?s.insertBefore(t,r):s?s.appendChild(t):gi.removeChild(t))),e&&6<o.length?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)}function pi(t,e,r,i,n,s){var a,o=t._gsap,n=n||ci(t,!0),u=o.xOrigin||0,h=o.yOrigin||0,f=o.xOffset||0,l=o.yOffset||0,c=n[0],p=n[1],_=n[2],d=n[3],m=n[4],g=n[5],v=e.split(" "),y=parseFloat(v[0])||0,x=parseFloat(v[1])||0;r?n!==en&&(n=c*d-p*_)&&(a=y*(-p/n)+x*(c/n)-(c*g-p*m)/n,y=y*(d/n)+x*(-_/n)+(_*g-d*m)/n,x=a):(y=(n=ii(t)).x+(~v[0].indexOf("%")?y/100*n.width:y),x=n.y+(~(v[1]||v[0]).indexOf("%")?x/100*n.height:x)),i||!1!==i&&o.smooth?(o.xOffset=f+((m=y-u)*c+(g=x-h)*_)-m,o.yOffset=l+(m*p+g*d)-g):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=x,o.smooth=!!i,o.origin=e,o.originIsAbsolute=!!r,t.style[H]="0px 0px",s&&(ai(s,o,"xOrigin",u,y),ai(s,o,"yOrigin",h,x),ai(s,o,"xOffset",f,o.xOffset),ai(s,o,"yOffset",l,o.yOffset)),t.setAttribute("data-svg-origin",y+" "+x)}function _i(t,e,r){var i=X(e);return F(parseFloat(e)+parseFloat(oi(t,"x",r+"px",i)))+i}function di(t,e){for(var r in e)t[r]=e[r];return t}j.version=R.version=f.version="3.11.0",Zt=1,i()&&qe();var mi,gi,vi,yi,xi,Ti,wi,e=E.Power0,bi=E.Power1,Mi=E.Power2,Oi=E.Power3,ki=E.Power4,Ci=E.Linear,Ai=E.Quad,Di=E.Cubic,Pi=E.Quart,Si=E.Quint,Ei=E.Strong,Ri=E.Elastic,zi=E.Back,Fi=E.SteppedEase,Bi=E.Bounce,Li=E.Sine,Ii=E.Expo,Yi=E.Circ,Ui={},Xi=180/Math.PI,Ni=Math.PI/180,qi=Math.atan2,Vi=/([A-Z])/g,ji=/(left|right|width|margin|padding|x)/i,Qi=/[\s,\(]\S/,Gi={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},W="transform",H=W+"Origin",Wi="O,Moz,ms,Ms,Webkit".split(","),Hi=function(t,e,r){var i=(e||yi).style,n=5;if(t in i&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(Wi[n]+t in i););return n<0?null:(3===n?"ms":0<=n?Wi[n]:"")+t},Zi={deg:1,rad:1,turn:1},$i={grid:1,flex:1},Ji=function(t,e,r,i){var n;return vi||ti(),e in Gi&&"transform"!==e&&~(e=Gi[e]).indexOf(",")&&(e=e.split(",")[0]),Ui[e]&&"transform"!==e?(n=nn(t,i),n="transformOrigin"!==e?n[e]:n.svg?n.origin:sn(G(t,H))+" "+n.zOrigin+"px"):(n=t.style[e])&&"auto"!==n&&!i&&!~(n+"").indexOf("calc(")||(n=tn[e]&&tn[e](t,e,r)||G(t,e)||v(t,e)||("opacity"===e?1:0)),r&&!~(n+"").trim().indexOf(" ")?oi(t,e,n,r)+r:n},Ki={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},tn={clearProps:function(t,e,r,i,n){if("isFromStart"!==n.data)return(e=t._pt=new Q(t._pt,e,r,0,0,hi)).u=i,e.pr=-10,e.tween=n,t._props.push(r),1}},en=[1,0,0,1,0,0],rn={},nn=function(t,e){var r,i,n,s,a,o,u,h,f,l,c,p,_,d,m,g,v,y,x,T,w,b,M,O,k,C,A,D,P,S,E,R,z=t._gsap||new Ze(t);return"x"in z&&!e&&!z.uncache||(C=t.style,A=z.scaleX<0,D="deg",P=getComputedStyle(t),S=G(t,H)||"0",E=r=i=s=a=o=u=h=0,R=n=1,z.svg=!(!t.getCTM||!ni(t)),P.translate&&("none"===P.translate&&"none"===P.scale&&"none"===P.rotate||(C[W]=("none"!==P.translate?"translate3d("+(P.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==P.rotate?"rotate("+P.rotate+") ":"")+("none"!==P.scale?"scale("+P.scale.split(" ").join(",")+") ":"")+P[W]),C.scale=C.rotate=C.translate="none"),P=ci(t,z.svg),z.svg&&(v=(!z.uncache||"0px 0px"===S)&&!e&&t.getAttribute("data-svg-origin"),pi(t,v||S,!!v||z.originIsAbsolute,!1!==z.smooth,P)),k=z.xOrigin||0,M=z.yOrigin||0,P!==en&&(c=P[0],p=P[1],_=P[2],d=P[3],E=m=P[4],r=g=P[5],6===P.length?(R=Math.sqrt(c*c+p*p),n=Math.sqrt(d*d+_*_),s=c||p?qi(p,c)*Xi:0,(u=_||d?qi(_,d)*Xi+s:0)&&(n*=Math.abs(Math.cos(u*Ni))),z.svg&&(E-=k-(k*c+M*_),r-=M-(k*p+M*d))):(k=P[6],M=P[7],T=P[8],w=P[9],b=P[10],O=P[11],E=P[12],r=P[13],i=P[14],a=(P=qi(k,b))*Xi,P&&(v=m*(f=Math.cos(-P))+T*(l=Math.sin(-P)),y=g*f+w*l,x=k*f+b*l,T=m*-l+T*f,w=g*-l+w*f,b=k*-l+b*f,O=M*-l+O*f,m=v,g=y,k=x),o=(P=qi(-_,b))*Xi,P&&(f=Math.cos(-P),O=d*(l=Math.sin(-P))+O*f,c=v=c*f-T*l,p=y=p*f-w*l,_=x=_*f-b*l),s=(P=qi(p,c))*Xi,P&&(v=c*(f=Math.cos(P))+p*(l=Math.sin(P)),y=m*f+g*l,p=p*f-c*l,g=g*f-m*l,c=v,m=y),a&&359.9<Math.abs(a)+Math.abs(s)&&(a=s=0,o=180-o),R=F(Math.sqrt(c*c+p*p+_*_)),n=F(Math.sqrt(g*g+k*k)),P=qi(m,g),u=2e-4<Math.abs(P)?P*Xi:0,h=O?1/(O<0?-O:O):0),z.svg&&(v=t.getAttribute("transform"),z.forceCSS=t.setAttribute("transform","")||!fi(G(t,W)),v&&t.setAttribute("transform",v))),90<Math.abs(u)&&Math.abs(u)<270&&(A?(R*=-1,u+=s<=0?180:-180,s+=s<=0?180:-180):(n*=-1,u+=u<=0?180:-180)),e=e||z.uncache,z.x=E-((z.xPercent=E&&(!e&&z.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-E)?-50:0)))?t.offsetWidth*z.xPercent/100:0)+"px",z.y=r-((z.yPercent=r&&(!e&&z.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-r)?-50:0)))?t.offsetHeight*z.yPercent/100:0)+"px",z.z=i+"px",z.scaleX=F(R),z.scaleY=F(n),z.rotation=F(s)+D,z.rotationX=F(a)+D,z.rotationY=F(o)+D,z.skewX=u+D,z.skewY=0+D,z.transformPerspective=h+"px",(z.zOrigin=parseFloat(S.split(" ")[2])||0)&&(C[H]=sn(S)),z.xOffset=z.yOffset=0,z.force3D=N.force3D,z.renderTransform=z.svg?ln:wi?f
vendor: 6,759 bytes, line 6
6n:an,z.uncache=0),z},sn=function(t){return(t=t.split(" "))[0]+" "+t[1]},an=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,fn(t,e)},on="0deg",un="0px",hn=") ",fn=function(t,e){var r,i,e=e||this,n=e.xPercent,s=e.yPercent,a=e.x,o=e.y,u=e.z,h=e.rotation,f=e.rotationY,l=e.rotationX,c=e.skewX,p=e.skewY,_=e.scaleX,d=e.scaleY,m=e.transformPerspective,g=e.force3D,v=e.target,e=e.zOrigin,y="",t="auto"===g&&t&&1!==t||!0===g;!e||l===on&&f===on||(g=parseFloat(f)*Ni,i=Math.sin(g),r=Math.cos(g),g=parseFloat(l)*Ni,a=_i(v,a,i*(i=Math.cos(g))*-e),o=_i(v,o,-Math.sin(g)*-e),u=_i(v,u,r*i*-e+e)),m!==un&&(y+="perspective("+m+hn),(n||s)&&(y+="translate("+n+"%, "+s+"%) "),!t&&a===un&&o===un&&u===un||(y+=u!==un||t?"translate3d("+a+", "+o+", "+u+") ":"translate("+a+", "+o+hn),h!==on&&(y+="rotate("+h+hn),f!==on&&(y+="rotateY("+f+hn),l!==on&&(y+="rotateX("+l+hn),c===on&&p===on||(y+="skew("+c+", "+p+hn),1===_&&1===d||(y+="scale("+_+", "+d+hn),v.style[W]=y||"translate(0, 0)"},ln=function(t,e){var r,i,n,s,a,e=e||this,o=e.xPercent,u=e.yPercent,h=e.x,f=e.y,l=e.rotation,c=e.skewX,p=e.skewY,_=e.scaleX,d=e.scaleY,m=e.target,g=e.xOrigin,v=e.yOrigin,y=e.xOffset,x=e.yOffset,e=e.forceCSS,T=parseFloat(h),w=parseFloat(f),l=parseFloat(l),c=parseFloat(c);(p=parseFloat(p))&&(c+=p=parseFloat(p),l+=p),l||c?(l*=Ni,c*=Ni,r=Math.cos(l)*_,i=Math.sin(l)*_,n=Math.sin(l-c)*-d,s=Math.cos(l-c)*d,c&&(p*=Ni,a=Math.tan(c-p),n*=a=Math.sqrt(1+a*a),s*=a,p&&(a=Math.tan(p),r*=a=Math.sqrt(1+a*a),i*=a)),r=F(r),i=F(i),n=F(n),s=F(s)):(r=_,s=d,i=n=0),(T&&!~(h+"").indexOf("px")||w&&!~(f+"").indexOf("px"))&&(T=oi(m,"x",h,"px"),w=oi(m,"y",f,"px")),(g||v||y||x)&&(T=F(T+g-(g*r+v*n)+y),w=F(w+v-(g*i+v*s)+x)),(o||u)&&(T=F(T+o/100*(a=m.getBBox()).width),w=F(w+u/100*a.height)),m.setAttribute("transform",a="matrix("+r+","+i+","+n+","+s+","+T+","+w+")"),e&&(m.style[W]=a)};p("padding,margin,Width,Radius",function(e,r){var t="Right",i="Bottom",n="Left",o=(r<3?["Top",t,i,n]:["Top"+n,"Top"+t,i+t,i+n]).map(function(t){return r<2?e+t:"border"+t+e});tn[1<r?"border"+e:e]=function(e,t,r,i,n){var s,a;if(arguments.length<4)return s=o.map(function(t){return Ji(e,t,r)}),5===(a=s.join(" ")).split(s[0]).length?s[0]:a;s=(i+"").split(" "),a={},o.forEach(function(t,e){return a[t]=s[e]=s[e]||s[(e-1)/2|0]}),e.init(t,a,n)}});var cn,pn={name:"css",register:ti,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,i,n){var s,a,o,u,h,f,l,c,p,B,_,d,L,m,g,v,I,y,x,T,w,Y=this._props,b=t.style,M=r.vars.startAt;for(h in vi||ti(),this.styles=this.styles||Jr(t),m=this.styles.props,this.tween=r,e)if("autoRound"!==h&&(a=e[h],!V[h]||!er(h,e,r,i,t,n)))if(c=typeof a,u=tn[h],"function"===c&&(c=typeof(a=a.call(r,i,t,n))),"string"===c&&~a.indexOf("random(")&&(a=At(a)),u)u(this,t,h,a,r)&&(L=1);else if("--"===h.substr(0,2))s=(getComputedStyle(t).getPropertyValue(h)+"").trim(),a+="",Xe.lastIndex=0,Xe.test(s)||(f=X(s),l=X(a)),l?f!==l&&(s=oi(t,h,s,l)+l):f&&(a+=f),this.add(b,"setProperty",s,a,i,n,0,0,h),Y.push(h),m.push(h,b[h]);else if("undefined"!==c){if(M&&h in M?(X((s=U(s="function"==typeof M[h]?M[h].call(r,i,t,n):M[h])&&~s.indexOf("random(")?At(s):s)+"")||(s+=N.units[h]||X(Ji(t,h))||""),"="===(s+"").charAt(1)&&(s=Ji(t,h))):s=Ji(t,h),u=parseFloat(s),(c="string"===c&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),h in Gi&&("autoAlpha"===h&&(1===u&&"hidden"===Ji(t,"visibility")&&o&&(u=0),m.push("visibility",b.visibility),ai(this,b,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==h&&"transform"!==h&&~(h=Gi[h]).indexOf(",")&&(h=h.split(",")[0])),p=h in Ui)if(this.styles.save(h),B||((_=t._gsap).renderTransform&&!e.parseTransform||nn(t,e.parseTransform),d=!1!==e.smoothOrigin&&_.smooth,(B=this._pt=new Q(this._pt,b,W,0,1,_.renderTransform,_,0,-1)).dep=1),"scale"===h)this._pt=new Q(this._pt,_,"scaleY",_.scaleY,(c?it(_.scaleY,c+o):o)-_.scaleY||0,Lr),this._pt.u=0,Y.push("scaleY",h),h+="X";else{if("transformOrigin"===h){m.push(H,b[H]),w=T=x=void 0,x=(y=a).split(" "),T=x[0],w=x[1]||"50%","top"!==T&&"bottom"!==T&&"left"!==w&&"right"!==w||(y=T,T=w,w=y),x[0]=Ki[T]||T,x[1]=Ki[w]||w,a=x.join(" "),_.svg?pi(t,a,0,d,0,this):((l=parseFloat(a.split(" ")[2])||0)!==_.zOrigin&&ai(this,_,"zOrigin",_.zOrigin,l),ai(this,b,h,sn(s),sn(a)));continue}if("svgOrigin"===h){pi(t,a,1,d,0,this);continue}if(h in rn){y=this,T=_,w=h,x=u,g=c?it(u,c+a):a,I=v=E=F=void 0,F=360,E=U(g),v=parseFloat(g)*(E&&~g.indexOf("rad")?Xi:1)-x,I=x+v+"deg",E&&("short"===(E=g.split("_")[1])&&(v%=F)!=v%180&&(v+=v<0?F:-F),"cw"===E&&v<0?v=(v+36e9)%F-~~(v/F)*F:"ccw"===E&&0<v&&(v=(v-36e9)%F-~~(v/F)*F)),y._pt=g=new Q(y._pt,T,w,x,v,Ir),g.e=I,g.u="deg",y._props.push(w);continue}if("smoothOrigin"===h){ai(this,_,"smooth",_.smooth,a);continue}if("force3D"===h){_[h]=a;continue}if("transform"===h){F=z=P=D=A=D=C=k=O=R=E=S=void 0;var O,k,C,A,D,P,S=this,E=a,R=t,z=di({},R._gsap),F=R.style;for(k in z.svg?(C=R.getAttribute("transform"),R.setAttribute("transform",""),F[W]=E,O=nn(R,1),si(R,W),R.setAttribute("transform",C)):(C=getComputedStyle(R)[W],F[W]=E,O=nn(R,1),F[W]=C),Ui)(C=z[k])!==(D=O[k])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(k)<0&&(A=X(C)!==(P=X(D))?oi(R,k,C,P):parseFloat(C),D=parseFloat(D),S._pt=new Q(S._pt,O,k,A,D-A,Lr),S._pt.u=P||0,S._props.push(k));di(O,z);continue}}else h in b||(h=Hi(h)||h);if(p||(o||0===o)&&(u||0===u)&&!Qi.test(a)&&h in b)o=o||0,(f=(s+"").substr((u+"").length))!==(l=X(a)||(h in N.units?N.units[h]:f))&&(u=oi(t,h,s,l)),this._pt=new Q(this._pt,p?_:b,h,u,(c?it(u,c+o):o)-u,p||"px"!==l&&"zIndex"!==h||!1===e.autoRound?Lr:Ur),this._pt.u=l||0,f!==l&&"%"!==l&&(this._pt.b=s,this._pt.r=Yr);else if(h in b)ui.call(this,t,h,s,c?c+a:a);else{if(!(h in t)){K(h,a);continue}this.add(t,h,s||t[h],c?c+a:a,i,n)}p||m.push(h,b[h]),Y.push(h)}L&&wr(this)},render:function(t,e){if(e.tween._time||!Ti())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Ji,aliases:Gi,getSetter:function(t,e,r){var i=Gi[e];return(e=i&&i.indexOf(",")<0?i:e)in Ui&&e!==H&&(t._gsap.x||Ji(t,"x"))?r&&xi===r?"scale"===e?Qr:jr:(xi=r||{})&&("scale"===e?Gr:Wr):t.style&&!s(t.style[e])?qr:~e.indexOf("-")?Vr:Tr(t,e)},core:{_removeProperty:si,_getMatrix:ci}},_n=(f.utils.checkPrefix=Hi,f.core.getStyleSaver=Jr,cn=p("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(_n="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Ui[t]=1}),p(_n,function(t){N.units[t]="deg",rn[t]=1}),Gi[cn[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+_n,p("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){t=t.split(":");Gi[t[1]]=cn[t[0]]}),p("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){N.units[t]="px"}
6),f.registerPlugin(pn),f.registerPlugin(pn)||f),dn=_n.core.Tween;t.Back=zi,t.Bounce=Bi,t.CSSPlugin=pn,t.Circ=Yi,t.Cubic=Di,t.Elastic=Ri,t.Expo=Ii,t.Linear=Ci,t.Power0=e,t.Power1=bi,t.Power2=Mi,t.Power3=Oi,t.Power4=ki,t.Quad=Ai,t.Quart=Pi,t.Quint=Si,t.Sine=Li,t.SteppedEase=Fi,t.Strong=Ei,t.TimelineLite=R,t.TimelineMax=R,t.TweenLite=j,t.TweenMax=dn,t.default=_n,t.gsap=_n,"undefined"==typeof window||window!==t?Object.defineProperty(t,"__esModule",{value:!0}):delete t.default}); 7!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(){return Ee||"undefined"!=typeof window&&(Ee=window.gsap)&&Ee.registerPlugin&&Ee}function nt(e,t){return~De.indexOf(e)&&De[De.indexOf(e)+1][t]}function rt(e){return!!~a.indexOf(e)}function Te(e,t,n,r,o){e.addEventListener(t,n,{passive:!r,capture:!!o})}function Me(e,t,n,r){e.removeEventListener(t,n,!!r)}function ot(){return Oe&&Oe.isPressed||P.cache++}function i(n,r){function o(e){var t;return e||0===e?(f&&(Pe.history.scrollRestoration="manual"),t=Oe&&Oe.isPressed,e=o.v=Math.round(e)||(Oe&&Oe.iOS?1:0),n(e),o.cacheID=P.cache,t&&d("ss",e)):(r||P.cache!==o.cacheID||d("ref"))&&(o.cacheID=P.cache,o.v=n()),o.v+o.offset}return o.offset=0,n&&o}function Ce(e){return Ee.utils.toArray(e)[0]||("string"==typeof e&&!1!==Ee.config().nullTargetWarn?console.warn("Element not found:",e):null)}function it(t,e){var n=e.s,e=e.sc,r=P.indexOf(t),o=e===Ye.sc?1:2;return~r||(r=P.push(t)-1),P[r+o]||(P[r+o]=i(nt(t,n),!0)||(rt(t)?e:i(function(e){return arguments.length?t[n]=e:t[n]})))}function at(e,t,o){function i(e,t){var n=xt();t||r<n-l?(s=a,a=e,c=l,l=n):o?a+=e:a=s+(e-s)/(n-c)*(l-c)}var a=e,s=e,l=xt(),c=l,r=t||50,u=Math.max(500,3*r);return{update:i,reset:function(){s=a=o?0:a,c=l=0},getVelocity:function(e){var t=c,n=s,r=xt();return!e&&0!==e||e===a||i(e),l===c||u<r-c?0:(a+(o?n:-n))/((o?r:l)-t)*1e3}}}function st(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e}function lt(e){var t=Math.max.apply(Math,e),e=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(e)?t:e}function ct(){var e,n,t;(mt=Ee.core.globals().ScrollTrigger)&&mt.core&&(e=mt.core,n=e.bridge||{},t=e._scrollers,e=e._proxies,t.push.apply(t,P),e.push.apply(e,De),P=t,De=e,d=function(e,t){return n[e](t)})}function ut(e){return(Ee=e||o())&&"undefined"!=typeof document&&document.body&&(Pe=window,pt=(dt=document).documentElement,ht=dt.body,a=[Pe,dt,pt,ht],Ee.utils.clamp,vt="onpointerenter"in ht?"pointer":"mouse",gt=C.isTouch=Pe.matchMedia&&Pe.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Pe||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,Ae=C.eventTypes=("ontouchstart"in pt?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in pt?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return f=0},500),ct(),ft=1),ft}var Ee,ft,Pe,dt,pt,ht,gt,vt,mt,a,Oe,Ae,l,c,u,f=1,yt=[],P=[],De=[],xt=Date.now,d=function(e,t){return t},p="scrollLeft",h="scrollTop",Re={s:p,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:i(function(e){return arguments.length?Pe.scrollTo(e,Ye.sc()):Pe.pageXOffset||dt[p]||pt[p]||ht[p]||0})},Ye={s:h,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Re,sc:i(function(e){return arguments.length?Pe.scrollTo(Re.sc(),e):Pe.pageYOffset||dt[h]||pt[h]||ht[h]||0})},C=(Re.op=Ye,P.cache=0,g.prototype.init=function(e){ft||ut(Ee)||console.warn("Please gsap.registerPlugin(Observer)"),mt||ct();var o=e.tolerance,i=e.dragMinimum,t=e.type,r=e.target,n=e.lineHeight,a=e.debounce,s=e.preventDefault,l=e.onStop,X=e.onStopDelay,c=e.ignore,u=e.wheelSpeed,z=e.event,B=e.onDragStart,H=e.onDragEnd,L=e.onDrag,F=e.onPress,W=e.onRelease,N=e.onRight,V=e.onLeft,q=e.onUp,G=e.onDown,U=e.onCh
7angeX,j=e.onChangeY,K=e.onChange,Z=e.onToggleX,$=e.onToggleY,J=e.onHover,Q=e.onHoverEnd,f=e.onMove,ee=e.ignoreCheck,d=e.isNormalizer,te=e.onGestureStart,ne=e.onGestureEnd,re=e.onWheel,oe=e.onEnable,ie=e.onDisable,ae=e.onClick,p=e.scrollSpeed,h=e.capture,se=e.allowClicks,le=e.lockAxis,ce=e.onLockAxis;function ue(){return Se=xt()}function g(e,t){return(T.event=e)&&c&&~c.indexOf(e.target)||t&&ke&&"touch"!==e.pointerType||ee&&ee(e,t)}function v(){var e=T.deltaX=lt(D),t=T.deltaY=lt(R),n=Math.abs(e)>=o,r=Math.abs(t)>=o;K&&(n||r)&&K(T,e,t,D,R),n&&(N&&0<T.deltaX&&N(T),V&&T.deltaX<0&&V(T),U&&U(T),Z&&T.deltaX<0!=M<0&&Z(T),M=T.deltaX,D[0]=D[1]=D[2]=0),r&&(G&&0<T.deltaY&&G(T),q&&T.deltaY<0&&q(T),j&&j(T),$&&T.deltaY<0!=E<0&&$(T),E=T.deltaY,R[0]=R[1]=R[2]=0),(w||b)&&(f&&f(T),b&&(L(T),b=!1),w=!1),k&&!(k=!1)&&ce&&ce(T),_&&(re(T),_=!1),x=0}function fe(e,t,n){D[n]+=e,R[n]+=t,T._vx.update(e),T._vy.update(t),a?x=x||requestAnimationFrame(v):v()}function de(e,t){"y"!==S&&(D[2]+=e,T._vx.update(e,!0)),"x"!==S&&(R[2]+=t,T._vy.update(t,!0)),le&&!S&&(T.axis=S=Math.abs(e)>Math.abs(t)?"x":"y",k=!0),a?x=x||requestAnimationFrame(v):v()}function m(e){var t,n,r,o;g(e,1)||(t=(e=st(e,s)).clientX,e=e.clientY,n=t-T.x,r=e-T.y,o=T.isDragging,T.x=t,T.y=e,(o||Math.abs(T.startX-t)>=i||Math.abs(T.startY-e)>=i)&&(L&&(b=!0),o||(T.isDragging=!0),de(n,r),o||B&&B(T)))}function y(t){var e,n;g(t,1)||(Me(d?r:A,Ae[1],m,!0),e=T.isDragging&&(3<Math.abs(T.x-T.startX)||3<Math.abs(T.y-T.startY)),n=st(t),e||(T._vx.reset(),T._vy.reset(),s&&se&&Ee.delayedCall(.08,function(){var e;300<xt()-Se&&!t.defaultPrevented&&(t.target.click?t.target.click():A.createEvent&&((e=A.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,Pe,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)))})),T.isDragging=T.isGesturing=T.isPressed=!1,l&&!d&&I.restart(!0),H&&e&&H(T),W&&W(T,e))}function pe(e){return e.touches&&1<e.touches.length&&(T.isGesturing=!0)&&te(e,T.isDragging)}function he(){return T.isGesturing=!1,ne(T)}function ge(e){var t;g(e)||(e=P(),t=C(),fe((e-we)*p,(t-_e)*p,1),we=e,_e=t,l&&I.restart(!0))}function ve(e){var t;g(e)||(e=st(e,s),re&&(_=!0),t=(1===e.deltaMode?n:2===e.deltaMode?Pe.innerHeight:1)*u,fe(e.deltaX*t,e.deltaY*t,0),l&&!d&&I.restart(!0))}function me(e){var t,n,r;g(e)||(t=e.clientX,e=e.clientY,n=t-T.x,r=e-T.y,T.x=t,T.y=e,w=!0,(n||r)&&de(n,r))}function ye(e){T.event=e,J(T)}function xe(e){T.event=e,Q(T)}function be(e){return g(e)||st(e,s)&&ae(T)}this.target=r=Ce(r)||pt,this.vars=e;var x,b,w,_,k,S,c=c&&Ee.utils.toArray(c),o=o||1e-9,i=i||0,u=u||1,p=p||1,t=t||"wheel,touch,pointer",a=!1!==a,n=n||parseFloat(Pe.getComputedStyle(ht).lineHeight)||22,T=this,M=0,E=0,P=it(r,Re),C=it(r,Ye),we=P(),_e=C(),ke=~t.indexOf("touch")&&!~t.indexOf("pointer")&&"pointerdown"===Ae[0],O=rt(r),A=r.ownerDocument||dt,D=[0,0,0],R=[0,0,0],Se=0,Y=T.onPress=function(e){g(e,1)||(T.axis=S=null,I.pause(),T.isPressed=!0,e=st(e),M=E=0,T.startX=T.x=e.clientX,T.startY=T.y=e.clientY,T._vx.reset(),T._vy.reset(),Te(d?r:A,Ae[1],m,s,!0),T.deltaX=T.deltaY=0,F&&F(T))},I=T._dc=Ee.delayedCall(X||.25,function(){T._vx.reset(),T._vy.reset(),I.pause(),l&&l(T)}).pause();T.deltaX=T.deltaY=0,T._vx=at(0,50,!0),T._vy=at(0,50,!0),T.scrollX=P,T.scrollY=C,T.isDragging=T.isGesturing=T.isPressed=!1,T.enable=function(e){return T.isEnabled||(Te(O?A:r,"scroll",ot),0<=t.indexOf("scroll")&&Te(O?A:r,"scroll",ge,s,h),0<=t.indexOf("wheel")&&Te(r,"wheel",ve,s,h),(0<=t.indexOf("touch")&>||0<=t.indexOf("pointer"))&&(Te(r,Ae[0],Y,s,h),Te(A,Ae[2],y),Te(A,Ae[3],y),se&&Te(r,"click",ue,!1,!0),ae&&Te(r,"click",be),te&&Te(A,"gesturestart",pe),ne&&Te(A,"gestureend",he),J&&Te(r,vt+"enter",ye),Q&&Te(r,vt+"leave",xe),f&&Te(r,vt+"move",me)),T.isEnabled=!0,e&&e.type&&Y(e),oe&&oe(T)),T},T.disable=function(){T.isEnabled&&(yt.filter(function(e){return e!==T&&rt(e.target)}).length||Me(O?A:r,"scroll",ot),T.isPressed&&(T._vx.reset(),T._vy.reset(),Me(d?r:A,Ae[1],m,!0)),Me(O?A:r,"scroll",ge,h),Me(r,"wheel",ve,h),Me(r,Ae[0],Y,h),Me(A,Ae[2],y),Me(A,Ae[3],y),Me(r,"click",ue,!0),Me(r,"click",be),Me(A,"gesturestart",pe),Me(A,"gestureend",he),Me(r,vt+"enter",ye),Me(r,vt+"leave",xe),Me(r,vt+"move",me),T.isEnabled=T.isPressed=T.isDragging=!1,ie&&ie(T))},T.kill=function(){T.disable();
7var e=yt.indexOf(T);0<=e&&yt.splice(e,1),Oe===T&&(Oe=0)},yt.push(T),d&&rt(r)&&(Oe=T),T.enable(z)},l=g,(c=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&r(l.prototype,c),u&&r(l,u),g);function g(e){this.init(e)}function v(){return Gt=1}function m(){return Gt=0}function Ie(e){return e}function bt(e){return Math.round(1e5*e)/1e5||0}function y(){return"undefined"!=typeof window}function x(){return We||y()&&(We=window.gsap)&&We.registerPlugin&&We}function wt(e){return!!~Y.indexOf(e)}function _t(e){return nt(e,"getBoundingClientRect")||(wt(e)?function(){return hn.width=Ne.innerWidth,hn.height=Ne.innerHeight,hn}:function(){return Fe(e)})}function kt(e,t){t.s;var n,r=t.d2,o=t.d,t=t.a;return(n="scroll"+r)&&(t=nt(e,n))?t()-_t(e)()[o]:wt(e)?(qe[n]||Ge[n])-(Ne["inner"+r]||qe["client"+r]||Ge["client"+r]):e[n]-e["offset"+r]}function b(e,t){for(var n=0;n<L.length;n+=3)t&&!~t.indexOf(L[n+1])||e(L[n],L[n+1],L[n+2])}function Xe(e){return"string"==typeof e}function ze(e){return"function"==typeof e}function St(e){return"number"==typeof e}function Tt(e){return"object"==typeof e}function Mt(e,t,n){e&&e.progress(t?0:1)&&n&&e.pause()}function Et(e,t){e.enabled&&(t=t(e))&&t.totalTime&&(e.callbackAnimation=t)}function Be(e){return Ne.getComputedStyle(e)}function Pt(e,t){for(var n in t)n in e||(e[n]=t[n]);return e}function Ct(e,t){t=t.d2;return e["offset"+t]||e["client"+t]||0}function Ot(e){var t,n=[],r=e.labels,o=e.duration();for(t in r)n.push(r[t]/o);return n}function At(o){var i=We.utils.snap(o),a=Array.isArray(o)&&o.slice(0).sort(function(e,t){return e-t});return a?function(e,t,n){var r;if(void 0===n&&(n=.001),!t)return i(e);if(0<t){for(e-=n,r=0;r<a.length;r++)if(a[r]>=e)return a[r];return a[r-1]}for(r=a.length,e+=n;r--;)if(a[r]<=e)return a[r];return a[0]}:function(e,t,n){void 0===n&&(n=.001);var r=i(e);return!t||Math.abs(r-e)<n||r-e<0==t<0?r:i(t<0?e-o:e+o)}}function w(t,n,e,r){e.split(",").forEach(function(e){return t(n,e,r)})}function He(e,t,n,r,o){return e.addEventListener(t,n,{passive:!r,capture:!!o})}function Le(e,t,n,r){return e.removeEventListener(t,n,!!r)}function _(e,t,n){n&&n.wheelHandler&&e(t,"wheel",n)}function Dt(e,t){var n,r;return Xe(e)&&(r=~(n=e.indexOf("="))?(e.charAt(n-1)+1)*parseFloat(e.substr(n+1)):0,~n&&(e.indexOf("%")>n&&(r*=t/100),e=e.substr(0,n-1)),e=r+(e in Z?Z[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)),e}function Rt(e,t,n,r,o,i,a,s){var l=o.startColor,c=o.endColor,u=o.fontSize,f=o.indent,o=o.fontWeight,d=Ve.createElement("div"),p=wt(n)||"fixed"===nt(n,"pinType"),h=-1!==e.indexOf("scroller"),n=p?Ge:n,g=-1!==e.indexOf("start"),l=g?l:c,c="border-color:"+l+";font-size:"+u+";color:"+l+";font-weight:"+o+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return c+="position:"+((h||s)&&p?"fixed;":"absolute;"),!h&&!s&&p||(c+=(r===Ye?j:K)+":"+(i+parseFloat(f))+"px;"),a&&(c+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),d._isStart=g,d.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),d.style.cssText=c,d.innerText=t||0===t?e+"-"+t:e,n.children[0]?n.insertBefore(d,n.children[0]):n.appendChild(d),d._offset=d["offset"+r.op.d2],O(d,0,r,g),d}function k(){return 34<Ke()-Ze&&D()}function Yt(){t&&t.isPressed&&!(t.startX>Ge.clientWidth)||(P.cache++,G=G||requestAnimationFrame(D),Ze||Q("scrollStart"),Ze=Ke())}function S(){V=Ne.innerWidth,N=Ne.innerHeight}function It(){P.cache++,Ue||F||Ve.fullscreenElement||Ve.webkitFullscreenElement||W&&V===Ne.innerWidth&&!(Math.abs(Ne.innerHeight-N)>.25*Ne.innerHeight)||I.restart(!0)}function Xt(){return Le(s,"scrollEnd",Xt)||A(!0)}function T(e){for(var t=0;t<n.length;t+=5)(!e||n[t+4]&&n[t+4].query===e)&&(n[t].style.cssText=n[t+1],n[t].getBBox&&n[t].setAttribute("transform",n[t+2]||""),n[t+3].uncache=1)}function M(e,t){var n;for(je=0;je<et.length;je++)!(n=et[je])||t&&n._ctx!==t||(e?n.kill(1):n.revert(!0,!0));t&&T(t),t||Q("revert")}function E(){return P.cache++&&P.forEach(function(e){return"function"==typeof e&&(e.rec=0)})}function zt(e,t,n,r){if(!e._gsap.swappedIn){for(var o,i=ne.length,a=t.style,s=e.style;i--;)a[o=ne[i]]=n[o];a.position="absolute"===n.position?"absolute":"relative","inline"===n.display&&(a.display="inline-block"),s[K]=s[j]=a.flexBasis="auto",a.overflow="visible",a.boxSizing="border-box",a[nn]=Ct(e,Re)+Qe,a[rn]=Ct(e,Ye)+Qe,a[$e]=s[Je]=s.top=s.left="0",Wt(r),s[nn]=s.maxWidth=n[nn],s[rn]=s.maxHeight=n[rn],s[$e]=n[$e],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}}function Bt(e){for(var t=re.length,n=e.style,r=[],o=0;o<t;o++)r.push(re[o],n[re[o]]);return r.t=e,r}function Ht(e,t,n,r,o,i,a,s,l,c,u,f,d){Xe(e=ze(e)?e(s):e)&&"max"===e.substr(0,3)&&(e=f+("="===e.charAt(4)?Dt("0"+e.substr(3),n):0));var p,h,g,v=d?d.time():0;return d&&d.seek(0),St(e)?a&&O(a,n,r,!0):(ze(t)&&(t=t(s)),s=(e||"0").split(" "),h=Ce(t)||Ge,(t=Fe(h)||{})&&(t.left||t.top)||"none"!==Be(h).display||(p=h.style.display,h.style.display="block",t=Fe(h),p?h.style.display=p:h.style.removeProperty("display")),p=Dt(s[0],t[r.d]),s=Dt(s[1]||"0",n),e=t[r.p]-l[r.p]-c+p+o-s,a&&O(a,s,r,n-s<20||a._isStart&&20<s),n-=n-s),i&&(t=i._isStart,g="scroll"+r.d2,O(i,
7c=e+n,r,t&&20<c||!t&&(u?Math.max(Ge[g],qe[g]):i.parentNode[g])<=c+1),u&&(l=Fe(a),u&&(i.style[r.op.p]=l[r.op.p]-r.op.m-i._offset+Qe))),d&&h&&(g=Fe(h),d.seek(f),p=Fe(h),d._caScrollDist=g[r.p]-p[r.p],e=e/d._caScrollDist*f),d&&d.seek(v),d?e:Math.round(e)}function Lt(e,t,n,r){if(e.parentNode!==t){var o,i,a=e.style;if(t===Ge){for(o in e._stOrig=a.cssText,i=Be(e))+o||ie.test(o)||!i[o]||"string"!=typeof a[o]||"0"===o||(a[o]=i[o]);a.top=n,a.left=r}else a.cssText=e._stOrig;We.core.getCache(e).uncache=1,t.appendChild(e)}}function Ft(s,e){function l(e,t,n,r,o){var i=l.tween,a=t.onComplete;return n=n||f(),o=r&&o||0,r=r||e-n,i&&i.kill(),c=Math.round(n),t[d]=e,(t.modifiers={})[d]=function(e){return(e=Math.round(f()))!==c&&e!==u&&3<Math.abs(e-c)&&3<Math.abs(e-u)?(i.kill(),l.tween=0):e=n+r*i.ratio+o*i.ratio*i.ratio,u=c,c=Math.round(e)},t.onComplete=function(){l.tween=0,a&&a.call(i)},i=l.tween=We.to(s,t)}var c,u,f=it(s,e),d="_scroll"+e.p2;return(s[d]=f).wheelHandler=function(){return l.tween&&l.tween.kill()&&(l.tween=0)},He(s,"wheel",f.wheelHandler),l}C.version="3.11.0",C.create=function(e){return new C(e)},C.register=ut,C.getAll=function(){return yt.slice()},C.getById=function(t){return yt.filter(function(e){return e.vars.id===t})[0]},o()&&Ee.registerPlugin(C);function Fe(e,t){return t=t&&"matrix(1, 0, 0, 1, 0, 0)"!==Be(e)[z]&&We.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),e=e.getBoundingClientRect(),t&&t.progress(0).kill(),e}function O(e,t,n,r){var o={display:"block"},i=n[r?"os2":"p2"],a=n[r?"p2":"os2"];e._isFlipped=r,o[n.a+"Percent"]=r?-100:0,o[n.a]=r?"1px":0,o["border"+i+cn]=1,o["border"+a+cn]=0,o[n.p]=t+"px",We.set(e,o)}function A(e,t){!Ze||e?($t=!0,e=Q("refreshInit"),Ut&&s.sort(),t||M(),et.slice(0).forEach(function(e){return e.refresh()}),et.forEach(function(e){return"max"===e.vars.end&&e.setPositions(e.start,Math.max(e.start+1,kt(e.scroller,e._dir)))}),e.forEach(function(e){return e&&e.render&&e.render(-1)}),E(),I.pause(),ee++,$t=!1,Q("refresh")):He(s,"scrollEnd",Xt)}function D(){if(!$t){s.isUpdating=!0,Jt&&Jt.update(0);var e=et.length,t=Ke(),n=50<=t-U,r=e&&et[0].scroll();if(pn=r<te?-1:1,te=r,n&&(Ze&&!Gt&&200<t-Ze&&(Ze=0,Q("scrollEnd")),qt=U,U=t),pn<0){for(je=e;0<je--;)et[je]&&et[je].update(0,n);pn=1}else for(je=0;je<e;je++)et[je]&&et[je].update(0,n);s.isUpdating=!1}G=0}function Wt(e){if(e){var t,n,r=e.t.style,o=e.length,i=0;for((e.t._gsap||We.core.getCache(e.t)).uncache=1;i<o;i+=2)n=e[i+1],t=e[i],n?r[t]=n:r[t]&&r.removeProperty(t.replace(oe,"-$1").toLowerCase())}}var We,R,Ne,Ve,qe,Ge,Y,I,Nt,Vt,qt,X,Ue,Gt,z,je,B,H,L,Ut,jt,F,t,W,N,V,q,Kt,Zt,G,$t,Jt,Qt=1,Ke=Date.now,U=Ke(),Ze=0,en=0,tn=Math.abs,j="right",K="bottom",nn="width",rn="height",on="Right",an="Left",sn="Top",ln="Bottom",$e="padding",Je="margin",cn="Width",Qe="px",un={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},fn={toggleActions:"play",anticipatePin:0},Z={top:0,left:0,center:.5,bottom:1,right:1},et=[],dn={},$={},J=[],Q=function(e){return $[e]&&$[e].map(function(e){return e()})||J},n=[],ee=0,te=0,pn=1,ne=["left","top",K,j,Je+ln,Je+on,Je+sn,Je+an,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],re=ne.concat([nn,rn,"boxSizing","max"+cn,"maxHeight","position",Je,$e,$e+sn,$e+on,$e+ln,$e+an]),oe=/([A-Z])/g,hn={left:0,top:0},ie=/(webkit|moz|length|cssText|inset)/i,s=(tt.prototype.init=function(v,m){var y,r,W,x,N,b,w,_,V,q,G,k,U,j,K,S,Z,$,J,Q,ee,te,T,a,d,M,E,ne,re,oe,p,h,o,ie,ae,se,P,C,O,le,ce,s,ue,fe,g,de,A,pe,he,D,R,Y,I,X,ge,ve,me,z,B,ye,xe,be,we,H,L,_e,e,F,ke,l,c,t,n,u,f,i,Se,Te,Me,Ee,Pe;this.progress=this.start=0,this.vars&&this.kill(!0,!0),en?(p=(v=Pt(Xe(v)||St(v)||v.nodeType?{trigger:v}:v,fn)).onUpdate,h=v.toggleClass,o=v.id,ie=v.onToggle,ae=v.onRefresh,se=v.scrub,P=v.trigger,C=v.pin,O=v.pinSpacing,le=v.invalidateOnRefresh,ce=v.anticipatePin,s=v.onScrubComplete,ue=v.onSnapComplete,fe=v.once,g=v.snap,de=v.pinReparent,n=v.pinSpacer,A=v.containerAnimation,pe=v.fastScrollEnd,he=v.preventOverlaps,D=v.horizontal||v.containerAnimation&&!1!==v.horizontal?Re:Ye,R=!se&&0!==se,Y=Ce(v.scroller||Ne),e=We.core.getCache(Y),I=wt(Y),X="fixed"===("pinType"in v?v.pinType:nt(Y,"pinType")||I&&"fixed"),ge=[v.onEnter,v.onLeave,v.onEnterBack,v.onLeaveBack],ve=R&&v.toggleActions.split(" "),t=("markers"in v?v:fn).markers,me=!I&&parseFloat(Be(Y)["border"+D.p2+cn])||0,z=this,B=v.onRefreshInit&&function(){return v.onRefreshInit(z)},Se=Y,Te=I,Me=D.d,Ee=D.d2,Pe=D.a,ye=(Pe=nt(Se,"getBoundingClientRect"))?function(){return Pe()[Me]}:function(){return(Te?Ne["inner"+Ee]:Se["client"+Ee])||0},i=Y,xe=!I||~De.indexOf(i)?_t(i):function(){return hn},we=be=0,H=it(Y,D),Kt(z),z._dir=D,ce*=45,z.scroller=Y,z.scroll=A?A.time.bind(A):H,x=
7H(),z.vars=v,m=m||v.animation,"refreshPriority"in v&&(Ut=1,-9999===v.refreshPriority&&(Jt=z)),e.tweenScroll=e.tweenScroll||{top:Ft(Y,Ye),left:Ft(Y,Re)},z.tweenTo=y=e.tweenScroll[D.p],z.scrubDuration=function(e){(a=St(e)&&e)?T?T.duration(e):T=We.to(m,{ease:"expo",totalProgress:"+=0.001",duration:a,paused:!0,onComplete:function(){return s&&s(z)}}):(T&&T.progress(1).kill(),T=0)},m&&(m.vars.lazy=!1,m._initted||!1!==m.vars.immediateRender&&!1!==v.immediateRender&&m.render(0,!0,!0),z.animation=m.pause(),(m.scrollTrigger=z).scrubDuration(se),ee=0,o=o||m.vars.id),et.push(z),g&&(Tt(g)&&!g.push||(g={snapTo:g}),"scrollBehavior"in Ge.style&&We.set(I?[Ge,qe]:Y,{scrollBehavior:"auto"}),W=ze(g.snapTo)?g.snapTo:"labels"===g.snapTo?(f=m,function(e){return We.utils.snap(Ot(f),e)}):"labelsDirectional"===g.snapTo?(u=m,function(e,t){return At(Ot(u))(e,t.direction)}):!1!==g.directional?function(e,t){return At(g.snapTo)(e,Ke()-we<500?0:t.direction)}:We.utils.snap(g.snapTo),d=Tt(d=g.duration||{min:.1,max:2})?Vt(d.min,d.max):Vt(d,d),M=We.delayedCall(g.delay||a/2||.1,function(){var e,t,n,r,o,i,a,s,l,c=H(),u=Ke()-we<500,f=y.tween;!(u||Math.abs(z.getVelocity())<10)||f||Gt||be===c?z.isActive&&be!==c&&M.restart(!0):(e=(c-b)/_,t=m&&!R?m.totalProgress():e,u=!u&&(t-te)/(Ke()-qt)*1e3||0,n=We.utils.clamp(-e,1-e,tn(u/2)*u/.185),r=e+(!1===g.inertia?0:n),o=Vt(0,1,W(r,z)),i=Math.round(b+o*_),a=g.onStart,s=g.onInterrupt,l=g.onComplete,c<=w&&b<=c&&i!==c&&(f&&!f._initted&&f.data<=tn(i-c)||(!1===g.inertia&&(n=o-e),y(i,{duration:d(tn(.185*Math.max(tn(r-t),tn(o-t))/u/.05||0)),ease:g.ease||"power3",data:tn(i-c),onInterrupt:function(){return M.restart(!0)&&s&&s(z)},onComplete:function(){z.update(),be=H(),ee=te=m&&!R?m.totalProgress():z.progress,ue&&ue(z),l&&l(z)}},c,n*_,i-c-n*_),a&&a(z,y.tween))))}).pause()),o&&(dn[o]=z),i=(i=(P=z.trigger=Ce(P||C))&&P._gsap&&P._gsap.stRevert)&&i(z),C=!0===C?P:Ce(C),Xe(h)&&(h={targets:P,className:h}),C&&(!1!==O&&O!==Je&&(O=!(!O&&"flex"===Be(C.parentNode).display)&&$e),z.pin=C,!1!==v.force3D&&We.set(C,{force3D:!0}),(r=We.core.getCache(C)).spacer?V=r.pinState:(n&&((n=Ce(n))&&!n.nodeType&&(n=n.current||n.nativeElement),r.spacerIsNative=!!n,n&&(r.spacerState=Bt(n))),r.spacer=k=n||Ve.createElement("div"),k.classList.add("pin-spacer"),o&&k.classList.add("pin-spacer-"+o),r.pinState=V=Bt(C)),z.spacer=k=r.spacer,e=Be(C),Z=e[O+D.os2],U=We.getProperty(C),j=We.quickSetter(C,D.a,Qe),zt(C,k,e),G=Bt(C)),t&&(n=Tt(t)?Pt(t,un):un,L=Rt("scroller-start",o,Y,D,n,0),_e=Rt("scroller-end",o,Y,D,n,0,L),e=L["offset"+D.op.d2],t=Ce(nt(Y,"content")||Y),F=this.markerStart=Rt("start",o,t,D,n,e,0,A),ke=this.markerEnd=Rt("end",o,t,D,n,e,0,A),A&&(oe=We.quickSetter([F,ke],D.a,Qe)),X||De.length&&!0===nt(Y,"fixedMarkers")||(n=Be(t=I?Ge:Y).position,t.style.position="absolute"===n||"fixed"===n?n:"relative",We.set([L,_e],{force3D:!0}),J=We.quickSetter(L,D.a,Qe),Q=We.quickSetter(_e,D.a,Qe))),A&&(l=A.vars.onUpdate,c=A.vars.onUpdateParams,A.eventCallback("onUpdate",function(){z.update(0,0,1),l&&l.apply(c||[])})),z.previous=function(){return et[et.indexOf(z)-1]},z.next=function(){return et[et.indexOf(z)+1]},z.revert=function(e,t){if(!t)return z.kill(!0);var n,r=!1!==e||!z.enabled,t=Ue;r!==z.isReverted&&(r&&(!z.scroll.rec&&Ue&&$t&&(z.scroll.rec=H()),ne=Math.max(H(),z.scroll.rec||0),E=z.progress,re=m&&m.progress()),F&&[F,ke,L,_e].forEach(function(e){return e.style.display=r?"none":"block"}),r&&(Ue=1),z.update(r),Ue=t,C&&(r?(e=C,t=k,Wt(n=V),(n=e._gsap).spacerIsNative?Wt(n.spacerState):e._gsap.swappedIn&&(n=t.parentNode)&&(n.insertBefore(e,t),n.removeChild(t)),e._gsap.swappedIn=!1):de&&z.isActive||zt(C,k,Be(C),$)),z.isReverted=r)},z.refresh=function(e,t){if(!Ue&&z.enabled||t)if(C&&e&&Ze)He(tt,"scrollEnd",Xt);else{!$t&&B&&B(z),Ue=1,we=Ke(),y.tween&&(y.tween.kill(),y.tween=0),T&&T.pause(),le&&m&&m.revert().invalidate(),z.isReverted||z.revert(!0,!0);for(var n,r,o,i,a,t=ye(),e=xe(),s=A?A.duration():kt(Y,D),l=0,c=0,u=v.end,f=v.endTrigger||P,d=v.start||(0!==v.start&&P?C?"0 0":"0 100%":0),p=z.pinnedContainer=v.pinnedContainer&&Ce(v.pinnedContainer),h=P&&Math.max(0,et.indexOf(z))||0,g=h;g--;)(o=et[g]).end||o.refresh(0,1)||(Ue=1),!(i=o.pin)||i!==P&&i!==C||o.isReverted||((a=a||[]).unshift(o),o.revert(!0,!0)),o!==et[g]&&(h--,g--);for(ze(d)&&(d=d(z)),b=Ht(d,P,t,D,H(),F,L,z,e,me,X,s,A)||(C?-.001:0),Xe(u=ze(u)?u(z):u)&&!u.indexOf("+=")&&(~u.indexOf(" ")?u=(Xe(d)?d.split(" ")[0]:"")+u:(l=Dt(u.substr(2),t),u=Xe(d)?d:b+l,f=P)),w=Math.max(b,Ht(u||(f?"100% 0":s),f,t,D,H()+l,ke,_e,z,e,me,X,s,A))||-.001,_=w-b||(b-=.01)&&.001,l=0,g=h;g--;)(i=(o=et[g]).pin)&&o.start-o._pinPush<b&&!A&&0<o.end&&(n=o.end-o.start,i!==P&&i!==p||St(d)||(l+=n*(1-o.progress)),i===C&&(c+=n));if(b+=l,w+=l,z._pinPush=c,F&&l&&((n={})[D.a]="+="+l,p&&(n[D.p]="-="+H()),We.set([F,ke],n)),C)n=Be(C),u=D===Ye,f=H(),K=parseFloat(U(D.a))+c,!s&&1<w&&((I?Ge:Y).style["overflow-"+D.a]="scroll"),zt(C,k,n),G=Bt(C),r=Fe(C,!0),t=X&&it(Y,u?Re:Ye)(),O&&(($=[O+D.os2,_+c+Qe]).t=k,(g=O===$e?Ct(C,D)+_+c:0)&&$.push(D.d,g+Qe),Wt($),X&&H(ne)),X&&((e={top:r.top+(u?f-b:t)+Qe,left:r.left+(u?t:f-b)+Qe,boxSizing:"border-box",position:"fixed"})[nn]=e.maxWidth=Math.ceil(r.width)+Qe,e[rn]=e.maxHeight=Math.ceil(r.height)+Qe,e[Je]=e[Je+sn]=e[Je+on]=e[Je+ln]=e[Je+an]="0",e[$e]=n[$e],e[$e+sn]=n[$e+sn],e[$e+on]=n[$e+on],e[$e+ln]=n[$e+ln],e[$e+an]=n[$e+an],q=function(e,t,n){for(var r,o=[],i=e.length,a=n?8:0;a<i;a+=2)r=e[a],o.push(r,r in t?t[r]:e[a+1]);return o.t=e.t,o}(V,e,de)),m?(s=m._initted,jt(1),m.render(m.duration(),!0,!0),S=U(D.a)-K+_+c,_!==S&&X&&q.splice(q.length-2,2),m.render(0,!0,!0),s||m.invali
7date(),jt(0)):S=_;else if(P&&H()&&!A)for(r=P.parentNode;r&&r!==Ge;)r._pinOffset&&(b-=r._pinOffset,w-=r._pinOffset),r=r.parentNode;a&&a.forEach(function(e){return e.revert(!1,!0)}),z.start=b,z.end=w,x=N=H(),A||(x<ne&&H(ne),z.scroll.rec=0),z.revert(!1,!0),M&&(be=-1,z.isActive&&H(b+_*E),M.restart(!0)),Ue=0,m&&R&&(m._initted||re)&&m.progress()!==re&&m.progress(re,!0).render(m.time(),!0,!0),E===z.progress&&!A||(m&&!R&&m.totalProgress(E,!0),z.progress=(x-b)/_===E?0:E,z.update(0,0,1)),C&&O&&(k._pinOffset=Math.round(z.progress*S)),ae&&ae(z)}},z.getVelocity=function(){return(H()-N)/(Ke()-qt)*1e3||0},z.endAnimation=function(){Mt(z.callbackAnimation),m&&(T?T.progress(1):m.paused()?R||Mt(m,z.direction<0,1):Mt(m,m.reversed()))},z.labelToScroll=function(e){return m&&m.labels&&(b||z.refresh()||b)+m.labels[e]/m.duration()*_||0},z.getTrailing=function(t){var e=et.indexOf(z),e=0<z.direction?et.slice(0,e).reverse():et.slice(e+1);return(Xe(t)?e.filter(function(e){return e.vars.preventOverlaps===t}):e).filter(function(e){return 0<z.direction?e.end<=b:e.start>=w})},z.update=function(e,t,n){var r,o,i,a,s,l,c,u,f;A&&!n&&!e||(n=z.scroll(),s=(s=e?0:(n-b)/_)<0?0:1<s?1:s||0,c=z.progress,t&&(N=x,x=A?H():n,g&&(te=ee,ee=m&&!R?m.totalProgress():s)),(s=ce&&!s&&C&&!Ue&&!Qt&&Ze&&b<n+(n-N)/(Ke()-qt)*ce?1e-4:s)!==c&&z.enabled&&(u=(t=(r=z.isActive=!!s&&s<1)!=(!!c&&c<1))||!!s!=!!c,z.direction=c<s?1:-1,z.progress=s,u&&!Ue&&(o=s&&!c?0:1===s?1:1===c?2:3,R&&(i=!t&&"none"!==ve[o+1]&&ve[o+1]||ve[o],a=m&&("complete"===i||"reset"===i||i in m))),he&&(t||a)&&(a||se||!m)&&(ze(he)?he(z):z.getTrailing(he).forEach(function(e){return e.endAnimation()})),R||(!T||Ue||Qt?m&&m.totalProgress(s,!!Ue):((A||Jt&&Jt!==z)&&T.render(T._dp._time-T._start),T.resetTo?T.resetTo("totalProgress",s,m._tTime/m._tDur):(T.vars.totalProgress=s,T.invalidate().restart()))),C&&(e&&O&&(k.style[O+D.os2]=Z),X?u&&(c=!e&&c<s&&n<w+1&&n+1>=kt(Y,D),de&&(e||!r&&!c?Lt(C,k):(f=Fe(C,!0),l=n-b,Lt(C,Ge,f.top+(D===Ye?l:0)+Qe,f.left+(D===Ye?0:l)+Qe))),Wt(r||c?q:G),S!==_&&s<1&&r||j(K+(1!==s||c?0:S))):j(bt(K+S*s))),!g||y.tween||Ue||Qt||M.restart(!0),h&&(t||fe&&s&&(s<1||!Zt))&&Nt(h.targets).forEach(function(e){return e.classList[r||fe?"add":"remove"](h.className)}),!p||R||e||p(z),u&&!Ue?(R&&(a&&("complete"===i?m.pause().totalProgress(1):"reset"===i?m.restart(!0).pause():"restart"===i?m.restart(!0):m[i]()),p&&p(z)),!t&&Zt||(ie&&t&&Et(z,ie),ge[o]&&Et(z,ge[o]),fe&&(1===s?z.kill(!1,1):ge[o]=0),t||ge[o=1===s?1:3]&&Et(z,ge[o])),pe&&!r&&Math.abs(z.getVelocity())>(St(pe)?pe:2500)&&(Mt(z.callbackAnimation),T?T.progress(1):Mt(m,!s,1))):R&&p&&!Ue&&p(z)),Q&&(f=A?n/A.duration()*(A._caScrollDist||0):n,J(f+(L._isFlipped?1:0)),Q(f)),oe&&oe(-n/A.duration()*(A._caScrollDist||0)))},z.enable=function(e,t){z.enabled||(z.enabled=!0,He(Y,"resize",It),He(I?Ve:Y,"scroll",Yt),B&&He(tt,"refreshInit",B),!1!==e&&(z.progress=E=0,x=N=be=H()),!1!==t&&z.refresh())},z.getTween=function(e){return e&&y?y.tween:T},z.setPositions=function(e,t){C&&(K+=e-b,S+=t-e-_),z.start=b=e,z.end=w=t,_=t-e,z.update()},z.disable=function(e,t){if(z.enabled&&(!1!==e&&z.revert(!0,!0),z.enabled=z.isActive=!1,t||T&&T.pause(),ne=0,r&&(r.uncache=1),B&&Le(tt,"refreshInit",B),M&&(M.pause(),y.tween&&y.tween.kill()&&(y.tween=0)),!I)){for(var n=et.length;n--;)if(et[n].scroller===Y&&et[n]!==z)return;Le(Y,"resize",It),Le(Y,"scroll",Yt)}},z.kill=function(e,t){z.disable(e,t),T&&!t&&T.kill(),o&&delete dn[o];var n=et.indexOf(z);0<=n&&et.splice(n,1),n===je&&0<pn&&je--,n=0,et.forEach(function(e){return e.scroller===z.scroller&&(n=1)}),n||(z.scroll.rec=0),m&&(m.scrollTrigger=null,e&&m.render(-1),t||m.kill()),F&&[F,ke,L,_e].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),Jt===z&&(Jt=0),C&&(r&&(r.uncache=1),n=0,et.forEach(function(e){return e.pin===C&&n++}),n||(r.spacer=0)),v.onKill&&v.onKill(z)},z.enable(!1,!1),i&&i(z),m&&m.add&&!_?We.delayedCall(.01,function(){return b||w||z.refresh()})&&(_=.01)&&(b=w=0):z.refresh()):this.update=this.refresh=this.kill=Ie},tt.register=function(e){return R||(We=e||x(),y()&&window.document&&tt.enable(),R=en),R},tt.defaults=function(e){if(e)for(var t in e)fn[t]=e[t];return fn},tt.disable=function(t,n){en=0,et.forEach(function(e){return e[n?"kill":"disable"](t)}),Le(Ne,"wheel",Yt),Le(Ve,"scroll",Yt),clearInterval(X),Le(Ve,"touchcancel",Ie),Le(Ge,"touchstart",Ie),w(Le,Ve,"pointerdown,touchstart,mousedown",v),w(Le,Ve,"pointerup,touchend,mouseup",m),I.kill(),b(Le);for(var e=0;e<P.length;e+=3)_(Le,P[e],P[e+1]),_(Le,P[e],P[e+2])},tt.enable=function(){if(Ne=window,Ve=document,qe=Ve.documentElement,Ge=Ve.body,We&&(Nt=We.utils.toArray,Vt=We.utils.clamp,Kt=We.core.context||Ie,jt=We.core.suppressOverwrites||Ie,We.core.globals("ScrollTrigger",tt),Ge)){en=1,C.register(We),tt.isTouch=C.isTouch,q=C.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),He(Ne,"wheel",Yt),Y=[Ne,Ve,qe,Ge],We.matchMedia?(tt.matchMedia=function(e){var t,n;for(n in e)t?t.add(n,e[n]):t=We.matchMedia(n,e[n]);return t},We.addEventListener("matchMediaInit",function(){return M()}),We.addEventListener("matchMediaRevert",function(){return T()}),We.addEventListener("matchMedia",function(){A(0,1),Q("matchMedia")}),We.matchMedia("(orientation: portrait)",function(){return S(),S})):console.warn("Requires GSAP 3.11.0 or later"),He(Ve,"scroll",Yt);var e,t=Ge.style,n=t.borderTopStyle,r=We.core.Animation.prototype;for(r.revert||Object.defineProperty(r,"revert",{value:function(){return this.time(-.01,!0)}}),t.borderTopStyle="solid",r=Fe(Ge),Ye.m=Math.round(r.top+Ye.sc())||0,Re.m=Math.round(r.left+Re.sc())||0,n?t.borderTopStyle=n:t.removeProperty("border-top-style"),X=setInterval(k,250),We.delayedCall(.5,function(){return Qt=0}),He(Ve,"touchcancel",Ie),He(Ge,"touchstart",Ie),w(He,Ve,"pointerdown,touchstart,mousedown",v),w(He,Ve,"pointerup,touchend,mouseup",m),z=We.utils.checkPrefix("transform"),re.push(z),R=Ke(),I=We.delayedCall(.2,A).pause(),L=[Ve,"visibilitychange",function(){var e=Ne.innerWidth,t=Ne.innerHe
vendor: 3,183 bytes, line 7
7ight;Ve.hidden?(B=e,H=t):B===e&&H===t||It()},Ve,"DOMContentLoaded",A,Ne,"load",A,Ne,"resize",It],b(He),et.forEach(function(e){return e.enable(0,1)}),e=0;e<P.length;e+=3)_(Le,P[e],P[e+1]),_(Le,P[e],P[e+2])}},tt.config=function(e){"limitCallbacks"in e&&(Zt=!!e.limitCallbacks);var t=e.syncInterval;t&&clearInterval(X)||(X=t)&&setInterval(k,t),"ignoreMobileResize"in e&&(W=1===tt.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(b(Le),b(He,e.autoRefreshEvents||"none"),F=-1===(e.autoRefreshEvents+"").indexOf("resize"))},tt.scrollerProxy=function(e,t){var e=Ce(e),n=P.indexOf(e),r=wt(e);~n&&P.splice(n,r?6:2),t&&(r?De.unshift(Ne,t,Ge,t,qe,t):De.unshift(e,t))},tt.clearMatchMedia=function(t){et.forEach(function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)})},tt.isInViewport=function(e,t,n){e=(Xe(e)?Ce(e):e).getBoundingClientRect(),t=e[n?nn:rn]*t||0;return n?0<e.right-t&&e.left+t<Ne.innerWidth:0<e.bottom-t&&e.top+t<Ne.innerHeight},tt.positionInViewport=function(e,t,n){var e=(e=Xe(e)?Ce(e):e).getBoundingClientRect(),r=e[n?nn:rn],r=null==t?r/2:t in Z?Z[t]*r:~t.indexOf("%")?parseFloat(t)*r/100:parseFloat(t)||0;return n?(e.left+r)/Ne.innerWidth:(e.top+r)/Ne.innerHeight},tt.killAll=function(e){et.forEach(function(e){return"ScrollSmoother"!==e.vars.id&&e.kill()}),!0!==e&&(e=$.killAll||[],$={},e.forEach(function(e){return e()}))},tt);function tt(e,t){R||tt.register(We)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(e,t)}function ae(e,t,n,r){return r<t?e(r):t<0&&e(0),r<n?(r-t)/(n-t):n<0?t/(t-n):1}function se(e,t){!0===t?e.style.removeProperty("touch-action"):e.style.touchAction=!0===t?"auto":t?"pan-"+t+(C.isTouch?" pinch-zoom":""):"none",e===qe&&se(Ge,t)}function le(e){var t=e.event,n=e.target,e=e.axis,r=(t.changedTouches?t.changedTouches[0]:t).target,o=r._gsap||We.core.getCache(r),i=Ke();if(!o._isScrollT||2e3<i-o._isScrollT){for(;r&&r.scrollHeight<=r.clientHeight;)r=r.parentNode;o._isScroll=r&&!wt(r)&&r!==n&&(de[(n=Be(r)).overflowY]||de[n.overflowX]),o._isScrollT=i}!o._isScroll&&"x"!==e||(t.stopPropagation(),t._gsapAllow=!0)}function ce(e,t,n,r){return C.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:r=r&&le,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&He(Ve,C.eventTypes[0],he,!1,!0)},onDisable:function(){return Le(Ve,C.eventTypes[0],he,!0)}})}function ue(e){function n(){return c=!1}function i(){s=kt(v,Ye),E=Vt(q?1:0,s),h&&(M=Vt(0,kt(v,Re))),l=ee}function a(){y._gsap.y=bt(parseFloat(y._gsap.y)+x.offset)+"px",y.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(y._gsap.y)+", 0, 1)",x.offset=x.cacheID=0}function o(){i(),u.isActive()&&u.vars.scrollY>s&&(x()>s?u.progress(1)&&x(s):u.resetTo("scrollY",s))}(e=Tt(e)?e:{}).preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var r,s,l,c,u,f,d,p,h=e.normalizeScrollX,t=e.momentum,g=e.allowNestedScroll,v=Ce(e.target)||qe,m=We.core.globals().ScrollSmoother,m=m&&m.get(),y=q&&(e.content&&Ce(e.content)||m&&!1!==e.content&&!m.smooth()&&m.content()),x=it(v,Ye),b=it(v,Re),w=1,_=(C.isTouch&&Ne.visualViewport?Ne.visualViewport.scale*Ne.visualVie
7wport.width:Ne.outerWidth)/Ne.innerWidth,k=0,S=ze(t)?function(){return t(r)}:function(){return t||2.8},T=ce(v,e.type,!0,g),M=Ie,E=Ie;return y&&We.set(y,{y:"+=0"}),e.ignoreCheck=function(e){return q&&"touchmove"===e.type&&(c?(requestAnimationFrame(n),t=bt(r.deltaY/2),t=E(x.v-t),y&&t!==x.v+x.offset&&(x.offset=t-x.v,t=bt((parseFloat(y&&y._gsap.y)||0)-x.offset),y.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+t+", 0, 1)",y._gsap.y=t+"px",x.cacheID=P.cache,D()),!0):(x.offset&&a(),void(c=!0)))||1.05<w&&"touchstart"!==e.type||r.isGesturing||e.touches&&1<e.touches.length;var t},e.onPress=function(){var e=w;w=bt((Ne.visualViewport&&Ne.visualViewport.scale||1)/_),u.pause(),e!==w&&se(v,1.01<w||!h&&"x"),f=b(),d=x(),i(),l=ee},e.onRelease=e.onGestureStart=function(e,t){var n,r;x.offset&&a(),t?(P.cache++,t=S(),h&&(r=(n=b())+.05*t*-e.velocityX/.227,t*=ae(b,n,r,kt(v,Re)),u.vars.scrollX=M(r)),r=(n=x())+.05*t*-e.velocityY/.227,t*=ae(x,n,r,kt(v,Ye)),u.vars.scrollY=E(r),u.invalidate().duration(t).play(.01),(q&&u.vars.scrollY>=s||s-1<=n)&&We.to({},{onUpdate:o,duration:t})):p.restart(!0)},e.onWheel=function(){u._ts&&u.pause(),1e3<Ke()-k&&(l=0,k=Ke())},e.onChange=function(e,t,n,r,o){ee!==l&&i(),t&&h&&b(M(r[2]===t?f+(e.startX-e.x):b()+t-r[1])),n&&(x.offset&&a(),e=(r=o[2]===n)?d+e.startY-e.y:x()+n-o[1],o=E(e),r&&e!==o&&(d+=o-e),x(o)),(n||t)&&D()},e.onEnable=function(){se(v,!h&&"x"),He(Ne,"resize",o),T.enable()},e.onDisable=function(){se(v,!0),Le(Ne,"resize",o),T.kill()},e.lockAxis=!1!==e.lockAxis,((r=new C(e)).iOS=q)&&!x()&&x(1),q&&We.ticker.add(Ie),p=r._dc,u=We.to(r,{ease:"power4",paused:!0,scrollX:h?"+=0.1":"+=0",scrollY:"+=0.1",onComplete:p.vars.onComplete}),r}s.version="3.11.0",s.saveStyles=function(e){return e?Nt(e).forEach(function(e){var t;e&&e.style&&(0<=(t=n.indexOf(e))&&n.splice(t,5),n.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),We.core.getCache(e),Kt()))}):n},s.revert=function(e,t){return M(!e,t)},s.create=function(e,t){return new s(e,t)},s.refresh=function(e){return e?It():(R||s.register())&&A(!0)},s.update=D,s.clearScrollMemory=E,s.maxScroll=function(e,t){return kt(e,t?Re:Ye)},s.getScrollFunc=function(e,t){return it(Ce(e),t?Re:Ye)},s.getById=function(e){return dn[e]},s.getAll=function(){return et.filter(function(e){return"ScrollSmoother"!==e.vars.id})},s.isScrolling=function(){return!!Ze},s.snapDirectional=At,s.addEventListener=function(e,t){e=$[e]||($[e]=[]);~e.indexOf(t)||e.push(t)},s.removeEventListener=function(e,t){e=$[e],t=e&&e.indexOf(t);0<=t&&e.splice(t,1)},s.batch=function(e,t){var n,r=[],o={},i=t.interval||.016,a=t.batchMax||1e9;for(n in t)o[n]="on"===n.substr(0,2)&&ze(t[n])&&"onRefreshInit"!==n?function(e){var t=[],n=[],r=We.delayedCall(i,function(){e(t,n),t=[],n=[]}).pause();return function(e){t.length||r.restart(!0),t.push(e.trigger),n.push(e),a<=t.length&&r.progress(1)}}(t[n]):t[n];return ze(a)&&(a=a(),He(s,"refresh",function(){return a=t.batchMax()})),Nt(e).forEach(function(e){var t={};for(n in o)t[n]=o[n];t.trigger=e,r.push(s.create(t))}),r};var fe,de={auto:1,scroll:1},pe=/(input|label|select|textarea)/i,he=function(e){var t=pe.test(e.target.tagName);(t||fe)&&(e._gsapAllow=!0,fe=t)};s.sort=function(e){return et.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+e.start-(t.start+-1e6*(t.vars.refreshPriority||0))})},s.observe=function(e){return new C(e)},s.normalizeScroll=function(e){if(void 0===e)return t;if(!0===e&&t)return t.enable();if(!1===e)return t&&t.kill();e=e instanceof C?e:ue(e);return t&&t.target===e.target&&t.kill(),wt(e.target)&&(t=e),e},s.core={_getVelocityProp:at,_inputObserver:ce,_scrollers:P,_proxies:De,bridge:{ss:function(){Ze||Q("scrollStart"),Ze=Ke()},ref:function(){return Ue}}},x()&&We.registerPlugin(s),e.ScrollTrigger=s,e.default=s,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esModule",{value:!0}):delete e.default}); 8!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).window=e.window||{})}(this,function(e){"use strict";function o(){return E||"undefined"!=typeof window&&(E=window.gsap)&&E.registerPlugin&&E}function x(e,n){return!!(void 0===e?n:e&&!~(e+"").indexOf("false"))}function n(e){if(E=e||o()){a=E.registerEase;var n,t=E.parseEase();for(n in t)t[n].config||(t[n],0);for(n in a("slow",s),a("expoScale",u),a("rough",c),p)"version"!==n&&E.core.globals(n,p[n])}}function t(e,n,t){var o=(e=Math.min(1,e||.7))<1?n||0===n?n:.7:0,r=(1-e)/2,i=r+e,a=x(t);return function(e){var n=e+(.5-e)*o;return e<r?a?1-(e=1-e/r)*e:n-(e=1-e/r)*e*e*e*n:i<e?a?1===e?0:1-(e=(e-i)/r)*e:n+(e-n)*(e=(e-i)/r)*e*e*e:a?1:n}}function r(n,e,t){var o=Math.log(e/n),r=e-n;return t=t&&E.parseEase(t),function(e){return(n*Math.exp(o*(t?t(e):e))-n)/r}}function h(e,n,t){this.t=e,this.v=n,t&&(((this.next=t).prev=this).c=t.v-n,this.gap=t.t-e)}function i(e){for(var n,t,o,r,i,a,f,s=(e="object"!=typeof e?{points:+e||20}:e).taper||"none",u=[],c=0,p=0|(+e.points||20),d=p,l=x(e.randomize,!0),g=x(e.clamp),v=E?E.parseEase(e.template):0,w=.4*(+e.strength||1);-1<--d;)n=l?Math.random():1/p*d,t=v?v(n):n,o="none"===s?w:"out"===s?(r=1-n)*r*w:"in"===s?n*n*w:n<.5?(r=2*n)*r*.5*w:(r=2*(1-n))*r*.5*w,l?t+=Math.random()*o-.5*o:d%2?t+=.5*o:t-=.5*o,g&&(1<t?t=1:t<0&&(t=0)),u[c++]={x:n,y:t};for(u.sort(function(e,n){return e.x-n.x}),a=new h(1,1,null),d=p;d--;)a=new h((i=u[d]).x,i.y,a);return f=new h(0,0,a.t?a:a.next),function(e){var n=f;if(e>n.t){for(;n.next&&e>=n.t;)n=n.next;n=n.prev}else for(;n.prev&&e<=n.t;)n=n.prev;return(f=n).v+(e-n.t)/n.gap*n.c}}var E,a,f,s=t(.7),u=((s.ease=s).config=t,r(1,2)),c=(u.config=r,i()),p=((c.ease=c).config=i,{SlowMo:s,RoughEase:c,ExpoScaleEase:u});for(f in p)p[f].register=n,p[f].version="3.11.0";o()&&E.registerPlugin(s),e.EasePack=p,e.ExpoScaleEase=u,e.RoughEase=c,e.SlowMo=s,e.default=p,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esMo
8dule",{value:!0}):delete e.default}); 9!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function t(){return"undefined"!=typeof window}function o(){return a||t()&&(a=window.gsap)&&a.registerPlugin&&a}function s(e){return"string"==typeof e}function p(e){return"function"==typeof e}function d(e,t){var t="x"===t?"Width":"Height",o="scroll"+t,n="client"+t;return e===x||e===l||e===i?Math.max(l[o],i[o])-(x["inner"+t]||l[n]||i[n]):e[o]-e["offset"+t]}function f(e,t){var o="scroll"+("x"===t?"Left":"Top");return e===x&&(null!=e.pageXOffset?o="page"+t.toUpperCase()+"Offset":e=null!=l[o]?l:i),function(){return e[o]}}function r(e,t){if(!(e=g(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var e=e.getBoundingClientRect(),o=!t||t===x||t===i,n=o?{top:l.clientTop-(x.pageYOffset||l.scrollTop||i.scrollTop||0),left:l.clientLeft-(x.pageXOffset||l.scrollLeft||i.scrollLeft||0)}:t.getBoundingClientRect(),e={x:e.left-n.left,y:e.top-n.top};return!o&&t&&(e.x+=f(t,"x")(),e.y+=f(t,"y")()),e}function c(e,t,o,n,l){return isNaN(e)||"object"==typeof e?s(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+n-l:"max"===e?d(t,o)-l:Math.min(d(t,o),r(e,t)[o]-l):parseFloat(e)-l}function u(){a=o(),t()&&a&&document.body&&(x=window,i=document.body,l=document.documentElement,g=a.utils.toArray,a.config({autoKillThreshold:7}),T=a.config(),y=1)}var a,y,x,l,i,g,T,n={version:"3.11.0",name:"scrollTo",rawVars:1,register:function(e){a=e,u()},init:function(e,t,o,n,l){y||u();var r=this,i=a.getProperty(e,"scrollSnapType");r.isWin=e===x,r.target=e,r.tween=o,t=function(e,t,o,n){if("object"!=typeof(e=p(e)?e(t,o,n):e))return s(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var l,r={};for(l in e)r[l]="onAutoKill"!==l&&p(e[l])?e[l](t,o,n):e[l];return r}(t,n,e,l),r.vars=t,r.autoKill=!!t.autoKill,r.getX=f(e,"x"),r.getY=f(e,"y"),r.x=r.xPrev=r.getX(),r.y=r.yPrev=r.getY(),"smooth"===a.getProperty(e,"scrollBehavior")&&a.set(e,{scrollBehavior:"auto"}),i&&"none"!==i&&(r.snap=1,r.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=t.x?(r.add(r,"x",r.x,c(t.x,e,"x",r.x,t.offsetX||0),n,l),r._props.push("scrollTo_x")):r.skipX=1,null!=t.y?(r.add(r,"y",r.y,c(t.y,e,"y",r.y,t.offsetY||0),n,l),r._props.push("scrollTo_y")):r.skipY=1},render:function(e,t){for(var o,n,l,r=t._pt,i=t.target,s=t.tween,p=t.autoKill,f=t.xPrev,c=t.yPrev,u=t.isWin,a=t.snap,y=t.snapInline;r;)r.r(e,r.d),r=r._next;o=u||!t.skipX?t.getX():f,c=(n=u||!t.skipY?t.getY():c)-c,f=o-f,l=T.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),p&&(!t.skipX&&(l<f||f<-l)&&o<d(i,"x")&&(t.skipX=1),!t.skipY&&(l<c||c<-l)&&n<d(i,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(s.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(s,t.vars.onAutoKillParams||[]))),u?x.scrollTo(t.skipX?o:t.x,t.skipY?n:t.y):(t.skipY||(i.scrollTop=t.y),t.skipX||(i.scrollLeft=t.x)),!a||1!==e&&0!==e||(n=i.scrollTop,o=i.scrollLeft,y?i.style.scrollSnapType=y:i.style.removeProperty("scroll-snap-type"),i.scrollTop=n+1,i.scrollLeft=o+1,i.scrollTop=n,i.scrollLeft=o),t.xPrev=t.x,t.yPrev=t.y},kill:function(e){var t="scrollTo"===e;!t&&"scrollTo_x"!==e||(this.skipX=1),!t&&"scrollTo_y"!==e||(this.skipY=1)}};n.max=d,n.getOffset=r,n.buildGetter=f,o()&&a.registerPlugin(n),e.ScrollToPlugin=n,e.default=n,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esModule",{value:!0}):delete e.default}); 10!function(pn){window.fp_parallaxExtension=function(){function r(n){return{cover:{offsetNormal:n?0:u},reveal:{offsetNormal:n?-u:0}}}function o(n){return{cover:{offsetNormal:n?0:g},reveal:{offsetNormal:n?-g:0}}}function t(n){return n*v/100}function i(n){return n*m/100}function H(){h&&c(pn(q).length?pn(q):pn(M).first(),0)}function a(){var n=pn(q).length?pn(q):pn(M).first(),e=p===z,t=e?n.nextAll():n.prevAll(),n=e?n.prevAll():n.nextAll();t.each(function(){c(pn(this),r(e)[p].offsetNormal,"silent")}),n.each(function(){c(pn(this),0,"silent")}),pn(M).each(function(){pn(this).find(I).length&&l(pn(this).find(C).length?pn(this).find(C):pn(this).find(I).first())})}function l(n){var e=p===z,t=e?n.nextAll():n.prevAll(),n=e?n.prevAll():n.nextAll();t.each(function(){d(pn(this),o(e)[p].offsetNormal,"silent")}),n.each(function(){d(pn(this),0,"silent")})}function V(n,e){m=k.width(),e&&!S.scrollBar?(s(),P()):f()}function E(n){w.destroy(),fn=!1}function _(n,e){e?f():cn=!0}function G(n,e){pn(T).data("final-x",0),pn(T).data("final-y",0),x=document.querySelectorAll(M),a()}function L(n,e){B=!0,l("left"===e.xMovement?pn(q).find(I).first():pn(q).find(I).last()),setTimeout(function(){w.applyHorizontal(e)})}function j(n,e){F=!0,a(),setTimeout(function(){w.apply(e)})}function D(){an||!fn||!S.scrollBar&&S.autoScrolling&&!y.usingExtension("dragAndMove")||(requestAnimationFrame(K),an=!0)}function s(){var n=".fp-bg{transition: transform "+S.scrollingSpeed+"ms "+S.easingcss3+"}.fp-slide, .fp-section{will-change: transform;transition: background-position "+S.scrollingSpeed+"ms "+S.easingcss3+";}";S.autoScrolling&&!S.scrollBar&&e(nn,n)}function P(){var n=".fp-bg-animate{ transition: all "+S.scrollingSpeed+"ms "+S.easingcss3+"}";e(tn,n)}function f(){pn(en).remove()}function Q(){clearTimeout(X),X=setTimeout(U,350)}function U(){v=k.height(),m=k.width(),u=t(S.parallaxOptions.percentage),g=i(S.parallaxOptions.percentage),H(),a(),J(),S.autoScrolling&&S.scrollBar}function J(){pn(T).height(v)}function K(){var n=y.usingExtension("dragAndMove")?Math.abs(pn.fn.fullpage.dragAndMove.getCurrentScroll()):pn(window).scrollTop(),e=n<ln,t=pn(q).index(M),o=v+n;ln=n;for(var i=0;i<x.length;++i){var a=x[i],l=v+a.offsetTop;!e&&a.offsetTop<=o?t=i:e&&n<=l&&a.offsetTop<n&&x.length>i+1&&(t=i+1)}var s=(v-(x[t].offsetTop-n))*u/v,s=(p!==z&&--t,p!==z?s:s-u);c(pn(M).eq(t),s),0<=t-1&&c(pn(x[t-1]),r(!1)[p].offsetNormal),void 0!==x[t+1]&&c(pn(x[t+1]),r(!0)[p].offsetNormal),an=!1}function W(n){return Math.round(2*n)/2}function c(n,e,t){var o,e=W(e),i=n.find(I);i.length&&(n.index(M),n=(o=i.filter(b)).length?o:i.first()),h?n.css({"background-position-y":e+"px"}):n.hasClass($)&&!n.hasClass(Z)&&void 0===t||(i=void 0!==(o=n.find(T)).data("final-x")?o.data("final-x"):0,o.toggleClass(N,void 0!==t).css({transform:"translate3d("+i+"px, "+e+"px, 0)"}).data("final-x",i).data("final-y",e))}function d(n,e,t){var o,i,e=W(e),n=h?n:n.find(T);!S.scrollBar&&S.autoScrolling||n.addClass("fp-bg-animate"),h?n.toggleClass(N,void 0!==t).css("background-position-x",e+"px"):(o=0,"none"!==(i=n.data("final-y"))&&void 0!==i&&(o=i),n.toggleClass(N,void 0!==t).css({transform:"translate3d("+e+"px, "+o+"px, 0)"}).data("final-x",e).data("final-y",o))}function e(n,e){pn("#"+n).length||pn('<style id="'+n+'">'+e+"</style>").appendTo("head")}var p,u,g,v,m,x,h,A,X,w=this,n=pn.fn.fullpage.getFullpageData(),S=n.options,y=n.internals,Y=".fullpage-wrapper",Z="active",b="."+Z,M=".fp-section",q=M+b,$="fp-slide",I="."+$,C=I+b,N="fp-notransition",T=".fp-bg",z="reveal",nn="fp-parallax-transitions",en="#"+nn,tn="fp-parallax-transition-class",on="#"+tn,an=!1,ln=0,R=!1,O=!1,sn=!0,rn=!0,fn=!1,B=!1,F=!1,cn=!1,k=pn(window),dn=(n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,window.requestAnimationFrame=n,w.apply=function(n){if(cn&&s(),!n.localIsResizing&&!S.scrollBar&&S.autoScrolling)if((g_isAboutToRewindVertical="up"!==n.yMovement&&!n.sectionIndex||n.isMovementUp&&!(n.leavingSection-1))&&S.continuousVertical&&!F)g_isAboutToRewindVertical=!1;else{var e=r(R="up"===n.yMovement)[p].offsetNormal;c(pn(M).eq(n.sectionIndex),0),c(pn(M).eq(n.leavingSection-1),e),sn=1===Math.abs(n.leavingSection-1-n.sectionIndex);
10for(var t=Math.min(n.leavingSection-1,n.sectionIndex)+1;t<Math.max(n.leavingSection-1,n.sectionIndex);t++)c(pn(M).eq(t),0,"silent")}},w.applyHorizontal=function(n){if(!n.localIsResizing&&"none"!=n.xMovement)if((A=void 0!==n.direction&&n.direction!==n.xMovement)&&S.continuousHorizontal&&!B)A=!1;else{var e=o(O=A?"left"===n.direction:"left"===n.xMovement)[p].offsetNormal;d(n.section.find(I).eq(n.slideIndex),0),d(n.section.find(I).eq(n.prevSlideIndex),e),rn=1===Math.abs(n.slideIndex-n.prevSlideIndex);for(var t=Math.min(n.slideIndex,n.prevSlideIndex)+1;t<Math.max(n.slideIndex,n.prevSlideIndex);t++)d(n.section.find(I).eq(t),0,"silent")}},w.init=function(){v=k.height(),m=k.width(),p=S.parallaxOptions.type,u=t(S.parallaxOptions.percentage),g=i(S.parallaxOptions.percentage),x=document.querySelectorAll(S.sectionSelector),h="background"===S.parallaxOptions.property,J(),pn(Y).on("setAutoScrolling",V).on("destroy",E).on("onScroll",D).on("afterResponsive",G).on("onGrab",_).on("onContinuosHorizontal",L).on("onContinuousVertical",j).on("onResize",Q),h||(e("fp-parallax-stylesheet",".fp-bg{top:0;bottom:0;width: 100%;position:absolute;z-index: -1;}.fp-section, .fp-slide, .fp-section.fp-table, .fp-slide.fp-table, .fp-section .fp-tableCell, .fp-slide .fp-tableCell {position:relative;overflow: hidden;}"),s()),P(),H(),a(),fn=!0},w.destroy=function(){f(),pn(on).remove(),u=t(0),g=i(0),a(),pn(T).height(""),pn(Y).off("setAutoScrolling").off("destroy").off("onScroll").off("afterResponsive").off("onGrab").off("onContinuosHorizontal").off("onContinuousVertical").off("onResize")},w.setOption=function(n,e){"offset"===n?(S.parallaxOptions.percentage=e,u=t(e),g=i(e)):"type"===n&&(S.parallaxOptions.type=e,p=e),a()},w.applyProperties=c,w.afterSlideLoads=function(){var n,e,t;(h?(e=pn(q)).find(I).length?1<e.find(I).length?e.find(I):[e.find(I)]:[e]:pn(q).find(T)).removeClass("fp-bg-animate"),(B||A)&&(l(pn(q).find(C)),B=!1),rn||(n=o(O)[p].offsetNormal,e=pn(q).find(C),t=O?e.nextAll():e.prevAll(),(p===z&&O||"cover"===p&&!O)&&t.each(function(){d(pn(this),n,"silent")}))},w.afterLoad=function(){var n,e;S.scrollBar&&S.autoScrolling&&!y.usingExtension("dragAndMove")||((F||A)&&(a(),F=!1),sn)||(n=r(R)[p].offsetNormal,e=R?pn(q).nextAll():pn(q).prevAll(),(p===z&&R||"cover"===p&&!R)&&e.each(function(){c(pn(this),n,"silent")}))},w.c=y.c,w["common".charAt(0)]);return"complete"===document.readyState&&dn("parallax"),pn(window).on("load",function(){dn("parallax")}),w}}(jQuery); 11!function(n,t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,n,n.document,n.Math)}):"object"==typeof exports&&exports?module.exports=t(require("jquery"),n,n.document,n.Math):t(jQuery,n,n.document,n.Math)}("undefined"!=typeof window?window:this,function(Ln,Mn,On,En,Rn){"use strict";var Hn="fullpage-wrapper",zn="."+Hn,e="fp-scrollable",o="."+e,Bn="fp-responsive",Dn="fp-notransition",Pn="fp-destroyed",Fn="fp-enabled",Vn="fp-viewing",Wn="active",jn="."+Wn,Zn="fp-completely",Nn="fp-section",Yn="."+Nn,qn=Yn+jn,Un="fp-tableCell",Gn="."+Un,st="fp-nav",Xn="#"+st,ct="fp-tooltip",Qn="fp-slide",_n="."+Qn,Kn=_n+jn,dt="fp-slides",Jn="."+dt,$n="fp-slidesContainer",et="."+$n,nt="fp-table",ft="fp-slidesNav",tt="."+ft,ut=tt+" a",n="fp-controlArrow",ot="."+n,ht="fp-prev",it=ot+".fp-prev",pt=ot+".fp-next",rt=Ln(Mn),lt=Ln(On),vt={scrollbars:!0,mouseWheel:!0,hideScrollbars:!1,fadeScrollbars:!1,disableMouse:!0,interactiveScrollbars:!0},at=(Ln.fn.fullpage=function(h){function t(e,n){e||u(0),tn("autoScrolling",e,n);n=Ln(qn);h.autoScrolling&&!h.scrollBar?(S.css({overflow:"hidden",height:"100%"}),D(R.recordHistory,"internal"),A.css({"-ms-touch-action":"none","touch-action":"none"}),n.length&&u(n.position().top)):(S.css({overflow:"visible",height:"initial"}),D(!1,"internal"),A.css({"-ms-touch-action":"","touch-action":""}),$e(A),n.length&&S.scrollTop(n.position().top)),A.trigger("setAutoScrolling",[e])}function D(e,n){tn("recordHistory",e,n)}function o(e,n){"internal"!==n&&h.fadingEffect&&b.fadingEffect&&b.fadingEffect.update(e),tn("scrollingSpeed",e,n)}function P(e,n){tn("fitToSection",e,n)}function n(e){var n,t;e?(e="",Mn.addEventListener?n="addEventListener":(n="attachEvent",e="on"),"DOMMouseScroll"==(t="onwheel"in On.createElement("div")?"wheel":On.onmousewheel!==Rn?"mousewheel":"DOMMouseScroll")?On[n](e+"MozMousePixelScroll",c,!1):On[n](e+t,c,!1),A.on("mousedown",be).on("mouseup",xe)):(On.addEventListener?(On.removeEventListener("mousewheel",c,!1),On.removeEventListener("wheel",c,!1),On.removeEventListener("MozMousePixelScroll",c,!1)):On.detachEvent("onmousewheel",c),A.off("mousedown",be).off("mouseup",xe))}function i(t,e){void 0!==e?(e=e.replace(/ /g,"").split(","),Ln.each(e,function(e,n){Je(t,n,"m")})):t?(n(!0),(sn||C)&&(h.autoScrolling&&w.off(E.touchmove).on(E.touchmove,J),Ln(zn).off(E.touchstart).on(E.touchstart,ne).off(E.touchmove).on(E.touchmove,$))):(n(!1),(sn||C)&&Ln(zn).off(E.touchstart).off(E.touchmove))}function F(t,e){void 0!==e?(e=e.replace(/ /g,"").split(","),Ln.each(e,function(e,n){Je(t,n,"k")})):h.keyboardScrolling=t}
11function r(){var e=Ln(qn).prev(Yn);(e=e.length||!h.loopTop&&!h.continuousVertical?e:Ln(Yn).last()).length&&d(e,null,!0)}function l(){var e=Ln(qn).next(Yn);(e=e.length||!h.loopBottom&&!h.continuousVertical?e:Ln(Yn).first()).length&&d(e,null,!1)}function V(e,n){o(0,"internal"),a(e,n),o(R.scrollingSpeed,"internal")}function a(e,n){var t=je(e);void 0!==n?Ze(e,n):0<t.length&&d(t)}function W(e){oe("right",e)}function j(e){oe("left",e)}function Z(e){var n;A.hasClass(Pn)||(I=!0,T=rt.height(),Ln(Yn).each(function(){var e=Ln(this).find(Jn),n=Ln(this).find(_n);h.verticalCentered&&Ln(this).find(Gn).css("height",Ve(Ln(this))+"px"),Ln(this).css("height",q(Ln(this))+"px"),h.scrollOverflow&&(n.length?n.each(function(){Pe(Ln(this))}):Pe(Ln(this))),1<n.length&&f(e,e.find(Kn))}),(n=Ln(qn).index(Yn))&&V(n+1),I=!1,Ln.isFunction(h.afterResize)&&e&&h.afterResize.call(A),Ln.isFunction(h.afterReBuild)&&!e&&h.afterReBuild.call(A))}function N(e){var n=w.hasClass(Bn);e?n||(t(!1,"internal"),P(!1,"internal"),Ln(Xn).hide(),w.addClass(Bn),Ln.isFunction(h.afterResponsive)&&h.afterResponsive.call(A,e),h.responsiveSlides&&b.responsiveSlides&&b.responsiveSlides.toSections(),A.trigger("afterResponsive",[e])):n&&(t(R.autoScrolling,"internal"),P(R.autoScrolling,"internal"),Ln(Xn).show(),w.removeClass(Bn),Ln.isFunction(h.afterResponsive)&&h.afterResponsive.call(A,e),h.responsiveSlides&&b.responsiveSlides&&b.responsiveSlides.toSlides(),A.trigger("afterResponsive",[e]))}function e(e){var n="fp_"+e+"Extension";gn[e]=h[e+"Key"],b[e]=void 0!==Mn[n]?new Mn[n]:null,b[e]&&b[e].c(e)}function Y(e,n,t){var o=100*t,i=100/t;if((n.wrapAll('<div class="'+$n+'" />'),n.parent().wrap('<div class="'+dt+'" />'),e.find(et).css("width",o+"%"),1<t)&&(h.controlArrows&&((o=e).find(Jn).after('<div class="fp-controlArrow fp-prev"></div><div class="fp-controlArrow fp-next"></div>'),"#fff"!=h.controlArrowColor&&(o.find(pt).css("border-color","transparent transparent transparent "+h.controlArrowColor),o.find(it).css("border-color","transparent "+h.controlArrowColor+" transparent transparent")),h.loopHorizontal||o.find(it).hide()),h.slidesNavigation)){var r=t,l=((o=e).append('<div class="'+ft+'"><ul></ul></div>'),o.find(tt));l.addClass(h.slidesNavPosition);for(var a=0;a<r;a++)l.find("ul").append('<li><a href="#"><span></span></a></li>');l.css("margin-left","-"+l.width()/2+"px"),l.find("li").first().find("a").addClass(Wn)}n.each(function(e){Ln(this).css("width",i+"%"),h.verticalCentered&&Fe(Ln(this))});t=e.find(Kn);t.length&&(0!==Ln(qn).index(Yn)||0===Ln(qn).index(Yn)&&0!==t.index())?_e(t,"internal"):n.eq(0).addClass(Wn)}function q(e){return h.offsetSections&&b.offsetSections?b.offsetSections.getWindowHeight(e):T}function U(){Ln(Yn).each(function(){var e=Ln(this).find(_n);e.length?e.each(function(){Pe(Ln(this))}):Pe(Ln(this))}),G()}function G(){var e,n=Ln(qn);n.addClass(Zn),h.scrollOverflowHandler.afterRender&&h.scrollOverflowHandler.afterRender(n),p(n),se(n),h.scrollOverflowHandler.afterLoad(),e=Mn.location.hash.replace("#","").split("/"),(!(e=je(decodeURIComponent(e[0]))).length||e.length&&e.index()===an.index())&&Ln.isFunction(h.afterLoad)&&h.afterLoad.call(n,n.data("anchor"),n.index(Yn)+1),Ln.isFunction(h.afterRender)&&h.afterRender.call(A)}function X(){An||(requestAnimationFrame(Q),An=!0)}function Q(){if(A.trigger("onScroll"),(!h.autoScrolling||h.scrollBar||v("dragAndMove"))&&!nn()){var e,n,t,o,i,r,l,a=v("dragAndMove")?En.abs(b.dragAndMove.getCurrentScroll()):rt.scrollTop(),s=(d=a,Tn=d,0),c=a+rt.height()/2,d=(v("dragAndMove")?b.dragAndMove.getDocumentHeight():w.height()-rt.height())===a,f=On.querySelectorAll(Yn);if(d)s=f.length-1;else if(a)for(var u=0;u<f.length;++u)f[u].offsetTop<=c&&(s=u);else s=0;(d=Ln(f).eq(s)).hasClass(Wn)||(bn=!0,t=(a=Ln(qn)).index(Yn)+1,o=Be(d),i=d.data("anchor"),r=d.index(Yn)+1,(l=d.find(Kn)).length&&(n=l.data("anchor"),e=l.index()),k&&(d.addClass(Wn).siblings().removeClass(Wn),g("parallax","afterLoad"),Ln.isFunction(h.onLeave)&&h.onLeave.call(a,t,r,o),Ln.isFunction(h.afterLoad)&&h.afterLoad.call(d,i,r),h.resetSliders&&b.resetSliders&&b.resetSliders.apply({localIsResizing:
11I,leavingSection:t}),de(a),p(d),se(d),ze(i,r-1),h.anchors.length&&(x=i),Ye(e,n,i)),clearTimeout(hn),hn=setTimeout(function(){bn=!1},100)),h.fitToSection&&(clearTimeout(pn),pn=setTimeout(function(){h.fitToSection&&_()},h.fitToSectionDelay))}An=!1}function _(){k&&(I=!0,d(Ln(qn)),I=!1)}function K(e,n){var t,o;M.m[e]&&(t="down"===e?"bottom":"top",o="down"===e?l:r,b.scrollHorizontally&&(o=b.scrollHorizontally.getScrollSection(e,o)),0<n.length&&!h.scrollOverflowHandler.isScrolled(t,n)||o())}function J(e){var n=e.originalEvent;!ee(e.target)&&h.autoScrolling&&s(n)&&e.preventDefault()}function $(e){var n=e.originalEvent,t=Ln(n.target).closest(Yn);!ee(e.target)&&s(n)&&(h.autoScrolling&&e.preventDefault(),e=h.scrollOverflowHandler.scrollable(t),n=Qe(n),B=n.y,yn=n.x,t.find(Jn).length&&En.abs(xn-yn)>En.abs(z-B)?!y&&En.abs(xn-yn)>rt.outerWidth()/100*h.touchSensitivity&&(yn<xn?M.m.right&&W(t):M.m.left&&j(t)):h.autoScrolling&&k&&En.abs(z-B)>rt.height()/100*h.touchSensitivity&&(B<z?K("down",e):z<B&&K("up",e)))}function ee(e,n){n=n||0;e=Ln(e).parent();return!!(n<h.normalScrollElementTouchThreshold&&e.is(h.normalScrollElements))||n!=h.normalScrollElementTouchThreshold&&ee(e,++n)}function s(e){return void 0===e.pointerType||"mouse"!=e.pointerType}function ne(e){var e=e.originalEvent;h.fitToSection&&S.stop(),s(e)&&(e=Qe(e),z=e.y,xn=e.x)}function te(e,n){for(var t=0,o=e.slice(En.max(e.length-n,1)),i=0;i<o.length;i++)t+=o[i];return En.ceil(t/n)}function c(e){var n,t,o=(new Date).getTime(),i=Ln(".fp-completely").hasClass("fp-normal-scroll");if(h.autoScrolling&&!ln&&!i)return i=(e=e||Mn.event).wheelDelta||-e.deltaY||-e.detail,n=En.max(-1,En.min(1,i)),t=void 0!==e.wheelDeltaX||void 0!==e.deltaX,t=En.abs(e.wheelDeltaX)<En.abs(e.wheelDelta)||En.abs(e.deltaX)<En.abs(e.deltaY)||!t,149<L.length&&L.shift(),L.push(En.abs(i)),h.scrollBar&&(e.preventDefault?e.preventDefault():e.returnValue=!1),i=Ln(qn),e=h.scrollOverflowHandler.scrollable(i),i=o-Cn,Cn=o,200<i&&(L=[]),k&&!en()&&(o=te(L,10),te(L,70)<=o&&t&&K(n<0?"down":"up",e)),!1;h.fitToSection&&S.stop()}function oe(e,n){n=(void 0===n?Ln(qn):n).find(Jn);if(!(!n.length||en()||y||n.find(_n).length<2)){var t=n.find(Kn),o=null;if(!(o="left"===e?t.prev(_n):t.next(_n)).length){if(!h.loopHorizontal)return;o="left"===e?t.siblings(":last"):t.siblings(":first")}y=!0,f(n,o,e)}}function ie(){Ln(Kn).each(function(){_e(Ln(this),"internal")})}function re(e){var n=e.position(),t=n.top,n=v("dragAndMove")&&b.dragAndMove.isGrabbing?b.dragAndMove.isScrollingDown():n.top>Tn,o=t-T+e.outerHeight(),i=h.bigSectionsDestination;return e.outerHeight()>T?(n||i)&&"bottom"!==i||(t=o):(n||I&&e.is(":last-child"))&&(t=o),h.offsetSections&&b.offsetSections&&(t=b.offsetSections.getSectionPosition(n,t,e)),Tn=t}function d(e,n,t){var o,i,r;void 0===e||!e.length||(n={element:e,callback:n,isMovementUp:t,dtop:re(e),yMovement:Be(e),anchorLink:e.data("anchor"),sectionIndex:e.index(Yn),activeSlide:e.find(Kn),activeSection:Ln(qn),leavingSection:Ln(qn).index(Yn)+1,localIsResizing:I}).activeSection.is(e)&&!I||h.scrollBar&&rt.scrollTop()===n.dtop&&!e.hasClass("fp-auto-height")||(n.activeSlide.length&&(o=n.activeSlide.data("anchor"),i=n.activeSlide.index()),g("parallax","apply",n),h.autoScrolling&&h.continuousVertical&&void 0!==n.isMovementUp&&(!n.isMovementUp&&"up"==n.yMovement||n.isMovementUp&&"down"==n.yMovement)&&((t=n).isMovementUp?t.activeSection.before(t.activeSection.nextAll(Yn)):t.activeSection.after(t.activeSection.prevAll(Yn).get().reverse()),u(Ln(qn).position().top),ie(),t.wrapAroundElements=t.activeSection,t.dtop=t.element.position().top,t.yMovement=Be(t.element),t.leavingSection=t.activeSection.index(Yn)+1,t.sectionIndex=t.element.index(Yn),Ln(zn).trigger("onContinuousVertical",[t]),n=t),Ln.isFunction(h.onLeave)&&!n.localIsResizing&&!1===h.onLeave.call(n.activeSection,n.leavingSection,n.sectionIndex+1,n.yMovement)||(v("scrollOverflowReset")&&b.scrollOverflowReset.setPrevious(n.activeSection),n.localIsResizing||de(n.activeSection),h.scrollOverflowHandler.beforeLeave(),e.addClass(Wn).siblings().removeClass(Wn),p(e),h.scrollOverflowHandler.onLeave(),k=!1,Ye(i,o,n.anchorLink,n.sectionIndex),r=n,h.css3&&h.autoScrolling&&!h.scrollBar?(We("translate3d(0px, -"+En.round(r.dtop)+"px, 0px)",!0),h.scrollingSpeed?(clearTimeout(fn),fn=setTimeout(function(){le(r)},h.scrollingSpeed)):le(r)):(t=function(e){var n={};return h.autoScrolling&&!h.scrollBar?(n.options={top:-e.dtop},n.element=zn):(n.options={scrollTop:e.dtop},n.element="html, body"),n}(r),Ln(t.element).animate(t.options,h.scrollingSpeed,h.easing).promise().done(function(){h.scrollBar?setTimeout(function(){le(r)},30):le(r)})),x=n.anchorLink,ze(n.anchorLink,n.sectionIndex)))}function le(e){var n;(n=e).wrapAroundElements&&n.wrapAroundElements.length&&(n.isMovementUp?Ln(".fp-section:first").before(n.wrapAroundElements):Ln(".fp-section:last").after(n.wrapAroundElements),u(Ln(qn).position().top),ie(),n.sectionIndex=n.element.index(Yn),n.leavingSection=n.activeSection.index(Yn)+1),Ln.isFunction(h.afterLoad)&&!e.localIsResizing&&h.afterLoad.call(e.element,e.anchorLink,e.sectionIndex+1),h.scrollOverflowHandler.afterLoad(),g("parallax","afterLoad"),v("scrollOverflowReset")&&b.scrollOverflowReset.reset(),h.resetSliders&&b.resetSliders&&b.resetSliders.apply(e),e.localIsResizing||se(e.element),e.element.addClass(Zn).siblings().removeClass(Zn),k=!0,Ln.isFunction(e.callback)&&e.callback.call(this)}function ae(e,n){e.attr(n,e.data(n)).removeAttr("data-"+n)}function p(e){var o;h.lazyLoading&&fe(e).find("img[data-src], img[data-srcset], source[data-src], audio[data-src], iframe[data-src]").each(function(){o=Ln(this),Ln.each(["src","srcset"],function(e,n){var t=o.attr("data-"+n);void 0!==t&&t&&ae(o,n)}),o.is("source")&&o.closest("video").get(0).load()})}function se(e){e=fe(e);e.find("video, audio").each(function(){var e=Ln(this).get(0);e.hasAttribute("data-autoplay")&&"function"==typeof e.play&&e.play()}),e.find('iframe[src*="youtube.com/embed/"]').each(function(){var e=Ln(this).get(0);
11e.hasAttribute("data-autoplay")&&ce(e),e.onload=function(){e.hasAttribute("data-autoplay")&&ce(e)}})}function ce(e){e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}function de(e){e=fe(e);e.find("video, audio").each(function(){var e=Ln(this).get(0);e.hasAttribute("data-keepplaying")||"function"!=typeof e.pause||e.pause()}),e.find('iframe[src*="youtube.com/embed/"]').each(function(){var e=Ln(this).get(0);/youtube\.com\/embed\//.test(Ln(this).attr("src"))&&!e.hasAttribute("data-keepplaying")&&Ln(this).get(0).contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})}function fe(e){var n=e.find(Kn);return e=n.length?Ln(n):e}function ue(e){function n(e){var n,t,o,i,r,l,a="",s=0;for(e=e.replace(/[^A-Za-z0-9+\/=]/g,"");s<e.length;)o=v.indexOf(e.charAt(s++)),n=(15&(i=v.indexOf(e.charAt(s++))))<<4|(r=v.indexOf(e.charAt(s++)))>>2,t=(3&r)<<6|(l=v.indexOf(e.charAt(s++))),a+=String.fromCharCode(o<<2|i>>4),64!=r&&(a+=String.fromCharCode(n)),64!=l&&(a+=String.fromCharCode(t));for(var c,d=a,f="",u=0,h=0,p=0;u<d.length;)(h=d.charCodeAt(u))<128?(f+=String.fromCharCode(h),u++):191<h&&h<224?(p=d.charCodeAt(u+1),f+=String.fromCharCode((31&h)<<6|63&p),u+=2):(p=d.charCodeAt(u+1),c=d.charCodeAt(u+2),f+=String.fromCharCode((15&h)<<12|(63&p)<<6|63&c),u+=3);return f}function t(e){return e.slice(3).slice(0,-3)}var o,i,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return e=n(e),1<(i=e.split("_")).length?(o=i[1],e.replace(t(i[1]),"").split("_")[0]+"_"+n(o.slice(3).slice(0,-3))):t(e)}function he(e){var n=function(){if(On.domain.length){for(var e=On.domain.replace(/^(www\.)/,"").split(".");2<e.length;)e.shift();return e.join(".").replace(/(^\.*)|(\.*$)/g,"")}return""}(),t=["localhost","127.0.0.1","jshell.net","UDdDQU5ZNlNN"],o=t[0],i=t[1],r=t[2],t=ue(t[3]),o=[o,i,r].indexOf(n)<0&&0!==n.length,i=void 0!==gn[e]&&gn[e].length;if(i||!o)return r=i?ue(gn[e]):"",i=1<(r=r.split("_")).length&&-1<r[1].indexOf(e,r[1].length-e.length),(!(r[0].indexOf(n,r[0].length-n.length)<0)||!o||t==r[0])&&i||!o}function pe(e){var n,t;v(e)&&b[e]&&(n=ue("MTIzPGRpdiBzdHlsZT0iei1pbmRleDo5OTk5OTk5O3Bvc2l0aW9uOmZpeGVkOyB0b3A6IDIwcHg7IGxlZnQ6MjBweDsgYmFja2dyb3VuZDpyZWQ7IHBhZGRpbmc6IDdweCAxNXB4OyBmb250LXNpemU6IDE0cHg7IGZvbnQtZmFtaWx5OiBhcmlhbDsgY29sb3I6ICNmZmY7IGRpc3BsYXk6IGlubGluZS1ibG9jazsiPjxhIGhyZWY9Imh0dHA6Ly9hbHZhcm90cmlnby5jb20vZnVsbFBhZ2UvZXh0ZW5zaW9ucy8iIHN0eWxlPSJjb2xvcjogI2ZmZjsgdGV4dC1kZWNvcmF0aW9uOm5vbmU7Ij5VbmxpY2Vuc2VkIGZ1bGxQYWdlLmpzIEV4dGVuc2lvbjwvYT48L2Rpdj4xMjM="),t=En.random()<.5,he(e)||((e=function(){"9999999"!==(t?w.find("div").first():w.find("div").last()).css("z-index")&&(t?w.prepend(n):w.append(n))})(),setInterval(e,2e3)))}function ve(){var e=Mn.location.hash.replace("#","").split("/"),n=decodeURIComponent(e[0]),e=decodeURIComponent(e[1]);n&&(h.animateAnchor?Ze:V)(n,e)}function ge(){var e,n,t,o;bn||h.lockAnchors||(n=Mn.location.hash.replace("#","").split("/"),e=decodeURIComponent(n[0]),n=decodeURIComponent(n[1]),o=(t=void 0===x)&&void 0===n&&!y,e.length&&(e&&e!==x&&!t||o||!y&&rn!=n)&&Ze(e,n))}function me(t){clearTimeout(vn);var e=Ln(":focus");e.is("textarea")||e.is("input")||e.is("select")||"true"===e.attr("contentEditable")||""===e.attr("contentEditable")||!h.keyboardScrolling||!h.autoScrolling||(e=t.which,-1<Ln.inArray(e,[40,38,32,33,34])&&t.preventDefault(),ln=t.ctrlKey,vn=setTimeout(function(){var e=t,n=e.shiftKey;if(k||!([37,39].indexOf(e.which)<0))switch(e.which){case 38:case 33:M.k.up&&r();break;case 32:if(n&&M.k.up){r();break}case 40:case 34:M.k.down&&l();break;case 36:M.k.up&&a(1);break;case 35:M.k.down&&a(Ln(Yn).length);break;case 37:M.k.left&&j();break;case 39:M.k.right&&W();break;default:;}},150))}function Se(){Ln(this).prev().trigger("click")}function we(e){cn&&(ln=e.ctrlKey)}function be(e){2==e.which&&(In=e.pageY,A.on("mousemove",Ie))}function xe(e){2==e.which&&A.off("mousemove")}function ye(){var e=Ln(this).closest(Yn);Ln(this).hasClass(ht)?M.m.left&&j(e):M.m.right&&W(e)}function Ce(){ln=cn=!1}function Ae(e){e.preventDefault();e=Ln(this).parent().index();d(Ln(Yn).eq(e))}function Te(e){e.preventDefault();var e=Ln(this).closest(Yn).find(Jn),n=e.find(_n).eq(Ln(this).closest("li").index());f(e,n)}function Ie(e){k&&(e.pageY<In&&M.m.up?r():e.pageY>In&&M.m.down&&l()),In=e.pageY}function f(e,n,t){var o=e.closest(Yn),t={slides:e,destiny:n,direction:t,destinyPos:n.position(),slideIndex:n.index(),section:o,sectionIndex:o.index(Yn),anchorLink:o.data("anchor"),slidesNav:o.find(tt),slideAnchor:Ue(n),prevSlide:o.find(Kn),prevSlideIndex:o.find(Kn).index(),localIsResizing:
11I};return t.xMovement=De(t.prevSlideIndex,t.slideIndex),t.localIsResizing||(k=!1),g("parallax","applyHorizontal",t),h.onSlideLeave&&!t.localIsResizing&&"none"!==t.xMovement&&Ln.isFunction(h.onSlideLeave)&&!1===h.onSlideLeave.call(t.prevSlide,t.anchorLink,t.sectionIndex+1,t.prevSlideIndex,t.xMovement,t.slideIndex)?void(y=!1):(n.addClass(Wn).siblings().removeClass(Wn),t.localIsResizing||(de(t.prevSlide),p(n)),ke(t),o.hasClass(Wn)&&!t.localIsResizing&&Ye(t.slideIndex,t.slideAnchor,t.anchorLink,t.sectionIndex),b.continuousHorizontal&&b.continuousHorizontal.apply(t),nn()?Le(t):Me(e,t,!0),void(h.interlockedSlides&&b.interlockedSlides&&b.interlockedSlides.apply(t)))}function ke(e){!h.loopHorizontal&&h.controlArrows&&(e.section.find(it).toggle(0!==e.slideIndex),e.section.find(pt).toggle(!e.destiny.is(":last-child")))}function Le(e){var n,t;b.continuousHorizontal&&b.continuousHorizontal.afterSlideLoads(e),n=e.slidesNav,t=e.slideIndex,n.find(jn).removeClass(Wn),n.find("li").eq(t).find("a").addClass(Wn),e.localIsResizing||(g("parallax","afterSlideLoads"),Ln.isFunction(h.afterSlideLoad)&&h.afterSlideLoad.call(e.destiny,e.anchorLink,e.sectionIndex+1,e.slideAnchor,e.slideIndex),k=!0,se(e.destiny)),y=!1,b.interlockedSlides&&b.interlockedSlides.apply(e)}function Me(e,n,t){var o,i=n.destinyPos;h.css3?(o="translate3d(-"+En.round(i.left)+"px, 0px, 0px)",Re(e.find(et)).css(Ke(o)),un=setTimeout(function(){t&&Le(n)},h.scrollingSpeed,h.easing)):e.animate({scrollLeft:En.round(i.left)},h.scrollingSpeed,h.easing,function(){t&&Le(n)})}function Oe(){var e;A.trigger("onResize"),Ee(),sn?(e=Ln(On.activeElement)).is("textarea")||e.is("input")||e.is("select")||(e=rt.height(),En.abs(e-kn)>20*En.max(kn,e)/100&&(Z(!0),kn=e)):(clearTimeout(dn),dn=setTimeout(function(){Z(!0)},350))}function Ee(){var e=h.responsive||h.responsiveWidth,n=h.responsiveHeight,t=e&&rt.outerWidth()<e,o=n&&rt.height()<n;e&&n?N(t||o):e?N(t):n&&N(o)}function Re(e){var n="all "+h.scrollingSpeed+"ms "+h.easingcss3;return e.removeClass(Dn),e.css({"-webkit-transition":n,transition:n})}function He(e){return e.addClass(Dn)}function ze(e,n){var t;t=e,h.menu&&(Ln(h.menu).find(jn).removeClass(Wn),Ln(h.menu).find('[data-menuanchor="'+t+'"]').addClass(Wn)),t=e,e=n,h.navigation&&(Ln(Xn).find(jn).removeClass(Wn),(t?Ln(Xn).find('a[href="#'+t+'"]'):Ln(Xn).find("li").eq(e).find("a")).addClass(Wn))}function Be(e){var n=Ln(qn).index(Yn),e=e.index(Yn);return n==e?"none":e<n?"up":"down"}function De(e,n){return e==n?"none":n<e?"left":"right"}function Pe(e){var n,t,o,i,r;e.hasClass("fp-noscroll")||(e.css("overflow","hidden"),o=(t=h.scrollOverflowHandler).wrapContent(),r=e.closest(Yn),(i=t.scrollable(e)).length?n=t.scrollHeight(e):(n=e.get(0).scrollHeight,h.verticalCentered&&(n=e.find(Gn).get(0).scrollHeight)),(r=Ve(r))<n?i.length?t.update(e,r):((h.verticalCentered?e.find(Gn):e).wrapInner(o),t.create(e,r,h.scrollOverflowOptions)):t.remove(e),e.css("overflow",""))}function Fe(e){e.hasClass(nt)||e.addClass(nt).wrapInner('<div class="'+Un+'" style="height:'+Ve(e)+'px;" />')}function Ve(e){var n,t=q(e);return(h.paddingTop||h.paddingBottom)&&((n=e).hasClass(Nn)||(n=e.closest(Yn)),e=parseInt(n.css("padding-top"))+parseInt(n.css("padding-bottom")),t=T-e),t}function We(e,n){(n?Re:He)(A),A.css(Ke(e)),setTimeout(function(){A.removeClass(Dn)},10)}function je(e){if(!e)return[];var n=A.find(Yn+'[data-anchor="'+e+'"]');return n=n.length?n:Ln(Yn).eq(e-1)}function Ze(e,n){var t=je(e);t.length&&(void 0===n&&(n=0),e===x||t.hasClass(Wn)?Ne(t,n):d(t,function(){Ne(t,n)}))}function Ne(e,n){var t,o;void 0!==n&&(t=e.find(Jn),n=n,(e=o=(o=(e=(e=e).find(Jn)).find(_n+'[data-anchor="'+n+'"]')).length?o:e.find(_n).eq(n)).length&&f(t,e))}function Ye(e,n,t){var o="";h.anchors.length&&!h.lockAnchors&&(e?qe((o=void 0!==t?t:o)+"/"+(rn=n=void 0===n?e:n)):(void 0!==e&&(rn=n),qe(t))),Ge()}function qe(e){var n;h.recordHistory?location.hash=e:sn||C?Mn.history.replaceState(Rn,Rn,"#"+e):(n=Mn.location.href.split("#")[0],Mn.location.replace(n+"#"+e))}function Ue(e){var n=e.data("anchor"),e=e.index();return n=void 0===n?e:n}function Ge(){var e=Ln(qn),n=e.find(Kn),e=Ue(e),t=Ue(n),e=String(e),n=(e=(e=n.length?e+"-"+t:e).replace("/","-").replace("#",""),new RegExp("\\b\\s?"+Vn+"-[^\\s]+\\b","g"));w[0].className=w[0].className.replace(n,""),w.addClass(Vn+"-"+e)}function Xe(){return Mn.PointerEvent?{down:"pointerdown",move:"pointermove"}:{down:"MSPointerDown",move:"MSPointerMove"}}function Qe(e){var n=[];return n.y=(void 0!==e.pageY&&(e.pageY||e.pageX)?e:e.touches[0]).pageY,n.x=(void 0!==e.pageX&&(e.pageY||e.pageX)?e:e.touches[0]).pageX,C&&s(e)&&h.scrollBar&&(n.y=e.touches[0].pageY,n.x=e.touches[0].pageX),n}function _e(e,n){o(0,"internal"),void 0!==n&&(I=!0),f(e.closest(Jn),e),void 0!==n&&(I=!1),o(R.scrollingSpeed,"internal")}function u(e){e=En.round(e);h.css3&&h.autoScrolling&&!h.scrollBar?We("translate3d(0px, -"+e+"px, 0px)",!1):h.autoScrolling&&!h.scrollBar?A.css("top",-e):S.scrollTop(e)}function Ke(e){return{"-webkit-transform":e,"-moz-transform":e,"-ms-transform":e,transform:e}}function Je(e,n,t){switch(n){case"up":M[t].up=e;break;case"down":M[t].down=e;break;case"left":M[t].left=e;break;case"right":M[t].right=e;break;case"all":("m"==t?i:F)(e)}}function $e(e){e.css({"-webkit-transition":"none",transition:"none"})}function v(e){return null!==h[e]&&"object"==typeof h[e]?h[e].enabled&&b[e]:h[e]&&b[e]}function g(e,n,t){t=Array.isArray(t)?t.join(", "):t;v(e)&&b[e][n](t)}function en(){return v("dragAndMove")&&b.dragAndMove.isAnimating}function nn(){return v("dragAndMove")&&b.dragAndMove.isGrabbing}function tn(e,n,t){h[e]=n,"internal"!==t&&(R[e]=n)}function on(){return Ln("html").hasClass(Fn)?void m("error","Fullpage.js can only be initialized once and you are doing it multiple times!"):(h.continuousVertical&&(h.loopTop||h.loopBottom)&&(h.continuousVertical=!1,m("warn","Option `loopTop/loopBottom` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),h.scrollBar&&h.scrollOverflow&&m("warn","Option `scrollBar` is mutually exclusive with `scrollOverflow`. Sections with scrollOverflow might not work well in Firefox"),!h.continuousVertical||!h.scrollBar&&h.autoScrolling||(h.continuousVertical=!1,m("warn","Scroll bars (`scrollBar:true` or `autoScrolling:false`) are mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),void Ln.each(h.anchors,function(e,n){var t=lt.find("[name]").filter(function(){return Ln(this).attr("name")&&Ln(this).attr("name").toLowerCase()==n.toLowerCase()}
11),o=lt.find("[id]").filter(function(){return Ln(this).attr("id")&&Ln(this).attr("id").toLowerCase()==n.toLowerCase()});(o.length||t.length)&&(m("error","data-anchor tags can not have the same value as any `id` element on the site (or `name` element for IE)."),o.length&&m("error",'"'+n+'" is is being used by another element `id` property'),t.length&&m("error",'"'+n+'" is is being used by another element `name` property'))}))}function m(e,n){console&&console[e]&&console[e]("fullPage: "+n)}if(Ln("html").hasClass(Fn))on();else{var S=Ln("html, body"),w=Ln("body"),b=Ln.fn.fullpage;h=Ln.extend(!0,{menu:!1,anchors:[],lockAnchors:!1,navigation:!1,navigationPosition:"right",navigationTooltips:[],showActiveTooltip:!1,slidesNavigation:!1,slidesNavPosition:"bottom",scrollBar:!1,hybrid:!1,css3:!0,scrollingSpeed:700,autoScrolling:!0,fitToSection:!0,fitToSectionDelay:1e3,easing:"easeInOutCubic",easingcss3:"ease",loopBottom:!1,loopTop:!1,loopHorizontal:!0,continuousVertical:!1,continuousHorizontal:!1,scrollHorizontally:!1,interlockedSlides:!1,dragAndMove:!1,offsetSections:!1,resetSliders:!1,fadingEffect:!1,normalScrollElements:null,scrollOverflow:!1,scrollOverflowReset:!1,scrollOverflowHandler:at,scrollOverflowOptions:null,touchSensitivity:5,normalScrollElementTouchThreshold:5,bigSectionsDestination:null,keyboardScrolling:!0,animateAnchor:!0,recordHistory:!0,controlArrows:!0,controlArrowColor:"#fff",verticalCentered:!0,sectionsColor:[],paddingTop:0,paddingBottom:0,fixedElements:null,responsive:0,responsiveWidth:0,responsiveHeight:0,responsiveSlides:!1,parallax:!1,parallaxOptions:{type:"reveal",percentage:62,property:"translate"},sectionSelector:".section",slideSelector:".slide",afterLoad:null,onLeave:null,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null,afterResponsive:null,lazyLoading:!0},h);var x,rn,ln,an,y=!1,sn=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/),C="ontouchstart"in Mn||0<navigator.msMaxTouchPoints||navigator.maxTouchPoints,A=Ln(this),T=rt.height(),I=!1,cn=!0,k=!0,L=[],M={m:{up:!0,down:!0,left:!0,right:!0}};M.k=Ln.extend(!0,{},M.m);var dn,fn,un,hn,pn,vn,O=Xe(),E={touchmove:"ontouchmove"in Mn?"touchmove":O.move,touchstart:"ontouchstart"in Mn?"touchstart":O.down},R=Ln.extend(!0,{},h),gn={};if(on(),vt.click=C,h.scrollOverflowOptions=Ln.extend(vt,h.scrollOverflowOptions),Ln.extend(Ln.easing,{easeInOutCubic:function(e,n,t,o,i){return(n/=i/2)<1?o/2*n*n*n+t:o/2*((n-=2)*n*n+2)+t}}),Ln(this).length){b.setAutoScrolling=t,b.setRecordHistory=D,b.setScrollingSpeed=o,b.setFitToSection=P,b.setLockAnchors=function(e){h.lockAnchors=e},b.setMouseWheelScrolling=n,b.setAllowScrolling=i,b.setKeyboardScrolling=F,b.moveSectionUp=r,b.moveSectionDown=l,b.silentMoveTo=V,b.moveTo=a,b.moveSlideRight=W,b.moveSlideLeft=j,b.fitToSection=_,b.reBuild=Z,b.setResponsive=N,b.getFullpageData=function(){return{options:h,internals:{canScroll:k,isScrollAllowed:M,getDestinationPosition:re,isTouch:C,c:pe,getXmovement:De,removeAnimation:He,getTransforms:Ke,lazyLoad:p,addAnimation:Re,performHorizontalMove:Me,landscapeScroll:f,silentLandscapeScroll:_e,keepSlidesPosition:ie,silentScroll:u,styleSlides:Y,scrollHandler:X,getEventsPage:Qe,getMSPointer:Xe,isReallyTouch:s,checkParentForNormalScrollElement:ee,usingExtension:v,toggleControlArrows:ke}}},b.destroy=function(e){A.trigger("destroy",[e]),t(!1,"internal"),i(!1),F(!1),A.addClass(Pn),clearTimeout(un),clearTimeout(fn),clearTimeout(dn),clearTimeout(hn),clearTimeout(pn),rt.off("scroll",X).off("hashchange",ge).off("resize",Oe),lt.off("click touchstart",Xn+" a").off("mouseenter",Xn+" li").off("mouseleave",Xn+" li").off("click touchstart",ut).off("mouseover",h.normalScrollElements).off("mouseout",h.normalScrollElements),Ln(Yn).off("click touchstart",ot),v("dragAndMove")&&b.dragAndMove.destroy(),clearTimeout(un),clearTimeout(fn),e&&(u(0),A.find("img[data-src], source[data-src], audio[data-src], iframe[data-src]").each(function(){ae(Ln(this),"src")}),A.find("img[data-srcset]").each(function(){ae(Ln(this),"srcset")}),Ln(Xn+", "+tt+", "+ot).remove(),Ln(Yn).css({height:"","background-color":"",padding:""}),Ln(_n).css({width:""}),A.css({height:"",position:"","-ms-touch-action":"","touch-action":""}),S.css({overflow:"",height:""}),Ln("html").removeClass(Fn),w.removeClass(Bn),Ln.each(w.get(0).className.split(/\s+/),function(e,n){0===n.indexOf(Vn)&&w.removeClass(n)}),Ln(Yn+", "+_n).each(function(){h.scrollOverflowHandler.remove(Ln(this)),Ln(this).removeClass(nt+" "+Wn)}),$e(A),A.find(Gn+", "+et+", "+Jn).each(function(){Ln(this).replaceWith(this.childNodes)}),S.scrollTop(0),e=[Nn,Qn,$n],Ln.each(e,function(e,n){Ln("."+n).removeClass(n)}))}
11,b.landscapeScroll=f,e("continuousHorizontal"),e("scrollHorizontally"),e("resetSliders"),e("interlockedSlides"),e("responsiveSlides"),e("fadingEffect"),e("dragAndMove"),e("offsetSections"),e("scrollOverflowReset"),e("parallax"),v("dragAndMove")&&b.dragAndMove.init();{if(h.css3&&(h.css3=function(){var e,n,t=On.createElement("p"),o={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};for(n in On.body.insertBefore(t,null),o)t.style[n]!==Rn&&(t.style[n]="translate3d(1px,1px,1px)",e=Mn.getComputedStyle(t).getPropertyValue(o[n]));return On.body.removeChild(t),e!==Rn&&0<e.length&&"none"!==e}()),h.scrollBar=h.scrollBar||h.hybrid,O=A.find(h.sectionSelector),h.anchors.length||(h.anchors=O.filter("[data-anchor]").map(function(){return Ln(this).data("anchor").toString()}).get()),h.navigationTooltips.length||(h.navigationTooltips=O.filter("[data-tooltip]").map(function(){return Ln(this).data("tooltip").toString()}).get()),A.css({height:"100%",position:"relative"}),A.addClass(Hn),Ln("html").addClass(Fn),T=rt.height(),A.removeClass(Pn),A.find(h.sectionSelector).addClass(Nn),A.find(h.slideSelector).addClass(Qn),g("parallax","init"),Ln(Yn).each(function(e){var n,t,o=Ln(this),i=o.find(_n),r=i.length;n=o,(t=e)||0!==Ln(qn).length||n.addClass(Wn),an=Ln(qn),n.css("height",q(n)+"px"),h.paddingTop&&n.css("padding-top",h.paddingTop),h.paddingBottom&&n.css("padding-bottom",h.paddingBottom),void 0!==h.sectionsColor[t]&&n.css("background-color",h.sectionsColor[t]),void 0!==h.anchors[t]&&n.attr("data-anchor",h.anchors[t]),n=o,t=e,void 0!==h.anchors[t]&&n.hasClass(Wn)&&ze(h.anchors[t],t),h.menu&&h.css3&&Ln(h.menu).closest(zn).length&&Ln(h.menu).appendTo(w),0<r?Y(o,i,r):h.verticalCentered&&Fe(o)}),h.fixedElements&&h.css3&&Ln(h.fixedElements).appendTo(w),h.navigation){w.append('<div id="'+st+'"><ul></ul></div>');var mn=Ln(Xn);mn.addClass(function(){return h.showActiveTooltip?"fp-show-active "+h.navigationPosition:h.navigationPosition});for(var Sn=0;Sn<Ln(Yn).length;Sn++){var H="",H='<li><a href="#'+(H=h.anchors.length?h.anchors[Sn]:H)+'"><span></span></a>',wn=h.navigationTooltips[Sn];void 0!==wn&&""!==wn&&(H+='<div class="'+ct+" "+h.navigationPosition+'">'+wn+"</div>"),H+="</li>",mn.find("ul").append(H)}Ln(Xn).css("margin-top","-"+Ln(Xn).height()/2+"px"),Ln(Xn).find("li").eq(Ln(qn).index(Yn)).find("a").addClass(Wn)}A.find('iframe[src*="youtube.com/embed/"]').each(function(){var e,n,t;e=Ln(this),n="enablejsapi=1",t=e.attr("src"),e.attr("src",t+function(e){return/\?/.test(e)?"&":"?"}(t)+n)}),h.fadingEffect&&b.fadingEffect&&b.fadingEffect.apply(),h.scrollOverflow?("complete"===On.readyState&&U(),rt.on("load",U)):G(),i(!0),t(h.autoScrolling,"internal"),Ee(),Ge(),"complete"===On.readyState&&ve(),rt.on("load",ve)}rt.on("scroll",X).on("hashchange",ge).blur(Ce).resize(Oe),lt.keydown(me).keyup(we).on("click touchstart",Xn+" a",Ae).on("click touchstart",ut,Te).on("click",".fp-tooltip",Se),Ln(Yn).on("click touchstart",ot,ye),h.normalScrollElements&&(lt.on("mouseenter",h.normalScrollElements,function(){n(!1)}),lt.on("mouseleave",h.normalScrollElements,function(){n(!0)})),v("dragAndMove")&&b.dragAndMove.turnOffTouch()}var bn=!1,z=0,xn=0,B=0,yn=0,Cn=(O=Mn.requestAnimationFrame||Mn.mozRequestAnimationFrame||Mn.webkitRequestAnimationFrame||Mn.msRequestAnimationFrame,Mn.requestAnimationFrame=O,(new Date).getTime()),An=!1,Tn=0,In=0,kn=T}},"undefined"!=typeof IScroll&&(IScroll.prototype.wheelOn=function(){this.wrapper.addEventListener("wheel",this),this.wrapper.addEventListener("mousewheel",this),this.wrapper.addEventListener("DOMMouseScroll",this)},IScroll.prototype.wheelOff=function(){this.wrapper.removeEventListener("wheel",this),this.wrapper.removeEventListener("mousewheel",this),this.wrapper.removeEventListener("DOMMouseScroll",this)}),{refreshId:null,iScrollInstances:[],toggleWheel:function(n){Ln(qn).find(o).each(function(){var e=Ln(this).data("iscrollInstance");void 0!==e&&e&&(n?e.wheelOn():e.wheelOff())})},onLeave:function(){at.toggleWheel(!1)},beforeLeave:function(){at.onLeave()},afterLoad:function(){at.toggleWheel(!0)},create:function(e,n,t){e=e.find(o);e.height(n),e.each(function(){var e=Ln(this),n=e.data("iscrollInstance");n&&Ln.each(at.iScrollInstances,function(){Ln(this).destroy()}),(n=new IScroll(e.get(0),t)).on("scrollEnd",function(){this.fp_isAtTop=-30<this.y,this.fp_isAtEnd=this.y-this.maxScrollY<30}),at.iScrollInstances.push(n),n.wheelOff(),e.data("iscrollInstance",n)})},isScrolled:function(e,n){var t=n.data("iscrollInstance");return!t||("top"===e?0<=t.y&&!n.scrollTop():"bottom"===e?0-t.y+n.scrollTop()+1+n.innerHeight()>=n[0].scrollHeight:void 0)},scrollable:function(e){return(e.find(Jn).length?e.find(Kn):e).find(o)},scrollHeight:function(e){return e.find(o).children().first().get(0).scrollHeight},remove:function(e){var n,t=e.find(o);t.length&&((n=t.data("iscrollInstance"))&&n.destroy(),t.data("iscrollInstance",null)),e.find(o).children().first().children().first().unwrap().unwrap()},update:function(e,n){clearTimeout(at.refreshId),at.refreshId=setTimeout(function(){Ln.each(at.iScrollInstances,function(){Ln(this).get(0).refresh()})},150),e.find(o).css("height",n+"px").parent().css("height",n+"px")},wrapContent:function(){return'<div class="'+e+'"><div class="fp-scroller"></div></div>'}})}); 12"undefined"!=typeof navigator&&function(t,e){"function"==typeof define&&define.amd?define(function(){return e(t)}):"object"==typeof module&&module.exports?module.exports=e(t):(t.lottie=e(t),t.bodymovin=t.lottie)}(window||{},function(window){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",initialDefaultFrame=-999999,subframeEnabled=!0,expressionsPlugin,isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),cachedColors={}
12,bm_rounder=Math.round,bm_rnd,bm_pow=Math.pow,bm_sqrt=Math.sqrt,bm_abs=Math.abs,bm_floor=Math.floor,bm_max=Math.max,bm_min=Math.min,blitter=10,BMMath={};function ProjectInterface(){return{}}!function(){for(var t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],e=t.length,i=0;i<e;i+=1)BMMath[t[i]]=Math[t[i]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"==typeof t&&t.length){for(var e=createSizedArray(t.length),i=t.length,r=0;r<i;r+=1)e[r]=Math.abs(t[r]);return e}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){bm_rnd=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=t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility=t.style.webkitBackfaceVisibility="visible",t.style.transformStyle=t.style.webkitTransformStyle=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,this.currentTime=currentTime}roundValues(!1);var createElementID=function(){var t=0;return function(){return"__lottie_element_"+ ++t}}();function HSVtoRGB(t,e,i){var r,s,a,n=Math.floor(6*t),t=6*t-n,o=i*(1-e),h=i*(1-t*e),l=i*(1-(1-t)*e);switch(n%6){case 0:r=i,s=l,a=o;break;case 1:r=h,s=i,a=o;break;case 2:r=o,s=i,a=l;break;case 3:r=o,s=h,a=i;break;case 4:r=l,s=o,a=i;break;case 5:r=i,s=o,a=h}return[r,s,a]}function RGBtoHSV(t,e,i){var r,s=Math.max(t,e,i),a=Math.min(t,e,i),n=s-a,o=0===s?0:n/s,h=s/255;switch(s){case a:r=0;break;case t:r=e-i+n*(e<i?6:0),r/=6*n;break;case e:r=i-t+2*n,r/=6*n;break;case i:r=t-e+4*n,r/=6*n}return[r,o,h]}function addSaturationToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[1]+=e,1<t[1]?t[1]=1:t[1]<=0&&(t[1]=0),HSVtoRGB(t[0],t[1],t[2])}function addBrightnessToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[2]+=e,1<t[2]?t[2]=1:t[2]<0&&(t[2]=0),HSVtoRGB(t[0],t[1],t[2])}function addHueToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[0]+=e/360,1<t[0]?--t[0]:t[0]<0&&(t[0]+=1),HSVtoRGB(t[0],t[1],t[2])}var rgbToHex=function(){for(var t,r=[],e=0;e<256;e+=1)t=e.toString(16),r[e]=1==t.length?"0"+t:t;return function(t,e,i){return"#"+r[t=t<0?0:t]+r[e=e<0?0:e]+r[i=i<0?0:i]}}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t].length,r=0;r<i;r++)this._cbs[t][r](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,r=this._cbs[t].length;i<r;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),--i,--r),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var createTypedArray="function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,e){return"float32"===t?new Float32Array(e):"int16"===t?new Int16Array(e):"uint8c"===t?new Uint8ClampedArray(e):void 0}:function(t,e){var i,r=0,s=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(r=0;r<e;r+=1)s.push(i);return s};function createSizedArray(t){return Array.apply(null,{length:t})}function createNS(t){return document.createElementNS(svgNS,t)}function createTag(t){return document.createElement(t)}function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;for(var t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};
vendor: 10,738 bytes, line 12
12var getBlendMode=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}(),Matrix=function(){var r=Math.cos,s=Math.sin,a=Math.tan,n=Math.round;function t(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function e(t){if(0===t)return this;var e=r(t),t=s(t);return this._t(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1)}function i(t){if(0===t)return this;var e=r(t),t=s(t);return this._t(1,0,0,0,0,e,-t,0,0,t,e,0,0,0,0,1)}function o(t){if(0===t)return this;var e=r(t),t=s(t);return this._t(e,0,t,0,0,1,0,0,-t,0,e,0,0,0,0,1)}function h(t){if(0===t)return this;var e=r(t),t=s(t);return this._t(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1)}function l(t,e){return this._t(1,e,t,1,0,0)}function p(t,e){return this.shear(a(t),a(e))}function m(t,e){var i=r(e),e=s(e);return this._t(i,e,0,0,-e,i,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,a(t),1,0,0,0,0,1,0,0,0,0,1)._t(i,-e,0,0,e,i,0,0,0,0,1,0,0,0,0,1)}function f(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function c(t,e,i,r,s,a,n,o,h,l,p,m,f,c,d,u){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=r,this.props[4]=s,this.props[5]=a,this.props[6]=n,this.props[7]=o,this.props[8]=h,this.props[9]=l,this.props[10]=p,this.props[11]=m,this.props[12]=f,this.props[13]=c,this.props[14]=d,this.props[15]=u,this}function d(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function u(t,e,i,r,s,a,n,o,h,l,p,m,f,c,d,u){var y,g,v,b,E,x,P,S,_,A,C,T,k,M,D,F,w=this.props;return 1===t&&0===e&&0===i&&0===r&&0===s&&1===a&&0===n&&0===o&&0===h&&0===l&&1===p&&0===m?(w[12]=w[12]*t+w[15]*f,w[13]=w[13]*a+w[15]*c,w[14]=w[14]*p+w[15]*d,w[15]=w[15]*u,this._identityCalculated=!1):(y=w[0],g=w[1],v=w[2],b=w[3],E=w[4],x=w[5],P=w[6],S=w[7],_=w[8],A=w[9],C=w[10],T=w[11],k=w[12],M=w[13],D=w[14],F=w[15],w[0]=y*t+g*s+v*h+b*f,w[1]=y*e+g*a+v*l+b*c,w[2]=y*i+g*n+v*p+b*d,w[3]=y*r+g*o+v*m+b*u,w[4]=E*t+x*s+P*h+S*f,w[5]=E*e+x*a+P*l+S*c,w[6]=E*i+x*n+P*p+S*d,w[7]=E*r+x*o+P*m+S*u,w[8]=_*t+A*s+C*h+T*f,w[9]=_*e+A*a+C*l+T*c,w[10]=_*i+A*n+C*p+T*d,w[11]=_*r+A*o+C*m+T*u,w[12]=k*t+M*s+D*h+F*f,w[13]=k*e+M*a+D*l+F*c,w[14]=k*i+M*n+D*p+F*d,w[15]=k*r+M*o+D*m+F*u,this._identityCalculated=!1),this}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function g(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function v(t){for(var e=0;e<16;e+=1)t.props[e]=this.props[e]}function b(t){for(var e=0;e<16;e+=1)this.props[e]=t[e]}function E(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function x(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function P(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function S(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function _(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,r=-this.props[4]/t,s=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,t=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,n=new Matrix;return n.props[0]=e,n.props[1]=i,n.props[4]=r,n.props[5]=s,n.props[12]=a,n.props[13]=t,n}function A(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function C(t){for(var e=t.length,i=[],r=0;r<e;r+=1)i[r]=A(t[r]);return i}function T(t,e,i){var r,s,a,n,o,h,l=createTypedArray("float32",6);return this.isIdentity()?(l[0]=t[0],l[1]=t[1],l[2]=e[0],l[3]=e[1],l[4]=i[0],l[5]=i[1]):(r=this.props[0],s=this.props[1],a=this.props[4],n=this.props[5],o=this.props[12],h=this.props[13],l[0]=t[0]*r+t[1]*a+o,l[1]=t[0]*s+t[1]*n+h,l[2]=e[0]*r+e[1]*a+o,l[3]=e[0]*s+e[1]*n+h,l[4]=i[0]*r+i[1]*a+o,l[5]=i[0]*s+i[1]*n+h),l}function k(t,e,i){t=this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]];return t}function M(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function D(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i=i+n(1e4*e[t])/1e4+(15===t?")":","),t+=1;return i}function F(t){return t<1e-6&&0<t||-1e-6<t&&t<0?n(1e4*t)/1e4:t}function w(){var t=this.props;return"matrix("+F(t[0])+","+F(t[1])+","+F(t[4])+","+F(t[5])+","+F(t[12])+","+F(t[13])+")"}return function(){this.reset=t,this.rotate=e,this.rotateX=i,this.rotateY=o,this.rotateZ=h,this.skew=p,this.skewFromAxis=m,this.shear=l,this.scale=f,this.setTransform=c,this.translate=d,this.transform=u,this.applyToPoint=E,this.applyToX=x,this.applyToY=P,this.applyToZ=S,this.applyToPointArray=k,this.applyToTriplePoints=T,this.applyToPointStringified=M,this.toCSS=D,this.to2dCSS=w,this.clone=v,this.cloneFromProps=b,this.equals=g,this.inversePoints=C,this.inversePoint=A,this.getInverseMatrix=_,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}(),BezierFactory=(!function(n,o){var h,l=this,p=256,m=6,f="random",c=o.pow(p,m),d=o.pow(2,52),u=2*d,y=p-1;function g(t){var e,i=t.length,n=this,r=0,s=n.i=n.j=0,a=n.S=[];for(i||(t=[i++]);r<p;)a[r]=r++;for(r=0;r<p;r++)a[r]=a[s=y&s+t[r%i]+(e=a[r])],a[s]=e;n.g=function(t){for(var e,i=0,r=n.i,s=n.j,a=n.S;t--;)e=a[r=y&r+1],i=i*p+a[y&(a[r]=a[s=y&s+e])+(a[s]=e)];return n.i=r,n.j=s,i}}function v(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function b(t,e){for(var i,r=t+"",s=0;s<r.length;)e[y&s]=y&(i^=19*e[y&s])+r.charCodeAt(s++);return E(e)}function E(t){return String.fromCharCode.apply(0,t)}o["seed"+f]=function(t,e,i){function r(){for(var t=a.g(m),e=c,i=0;t<d;)t=(t+i)*p,e*=p,i=a.g(1);for(;u<=t;)t/=2,e/=2,i>>>=1;return(t+i)/e}var s=[],t=b(function t(e,i){var r,s=[],a=typeof e;if(i&&"object"==a)for(r in e)try{s.push(t(e[r],i-1))}catch(t){}return s.length?s:"string"==a?e:e+"\0"}((e=!0===e?{entropy:!0}:e||{}).entropy?[t,E(n)]:null===t?function(){try{if(h)return E(h.randomBytes(p));var e=new Uint8Array(p);return(l.crypto||l.msCrypto).getRandomValues(e),E(e)}catch(t){e=l.navigator,e=e&&e.plugins;return[+new Date,l,e,l.screen,E(n)]}}():t,3),s),a=new g(s);return r.int32=function(){return 0|a.g(4)},r.quick=function(){return a.g(4)/4294967296},r.double=r,b(E(a.S),n),(e.pass||i||function(t,e,i,r){return r&&(r.S&&v(r,a),t.state=function(){return v(a,{})}),i?(o[f]=t,e):t})(r,t,"global"in e?e.global:this==o,e.state)},b(o.random(),n)}([],BMMath),function(){var t={getBezierEasing:function(t,e,i,r,s){s=s||("bez_"+t+"_"+e+"_"+i+"_"+r).replace(/\./g,"p");if(a[s])return a[s];t=new n([t,e,i,r]);return a[s]=t}},a={};var S=11,_=1/(S-1),e="function"==typeof Float32Array;function r(t,e){return 1-3*e+3*t}function A(t,e,i){return((r(e,i)*t+(3*i-6*e))*t+3*e)*t}function C(t,e,i){return 3*r(e,i)*t*t+2*(3*i-6*e)*t+3*e}function n(t){this._p=t,this._mSampleValues=new(e?Float32Array:Array)(S),this._precomputed=!1,this.get=this.get.bind(this)}return n.prototype={get:function(t){var e=this._p[0],i=this._p[1],r=this._p[2],s=this._p[3];return this._precomputed||this._precompute(),e===i&&r===s?t:0===t?0:1===t?1:A(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<S;++i)this._mSampleValues[i]=A(i*_,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],r=this._mSampleValues,s=0,a=1,n=S-1;a!==n&&r[a]<=t;++a)s+=_;var o=s+(t-r[--a])/(r[a+1]-r[a])*_,h=C(o,e,i);if(.001<=h){for(var l=t,p=o,m=e,f=i,c=0;c<4;++c){var d=C(p,m,f);if(0===d)return p;p-=(A(p,m,f)-l)/d}return p}if(0===h)return o;for(var u,y,g=t,v=s,b=s+_,E=e,x=i,P=0;0<(u=A(y=v+(b-v)/2,E,x)-g)?b=y:v=y,1e-7<Math.abs(u)&&++P<10;);return y}},t}());function extendPrototype(t,e){for(var i,r=t.length,s=0;s<r;s+=1)for(var a in i=t[s].prototype)i.hasOwnProperty(a)&&(e.prototype[a]=i[a])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}function bezFunction(){Math;function y(t,e,i,r,s,a){s=t*r+e*s+i*a-s*r-a*t-i*e;return-.001<s&&s<.001}var p=function(t,e,i,r){for(var s,a,n,o,h=defaultCurveSegments,l=0,p=[],m=[],f=bezier_length_pool.newElement(),c=i.length,d=0;d<h;d+=1){for(n=d/(h-1),s=o=0;s<c;s+=1)a=bm_pow(1-n,3)*t[s]+3*bm_pow(1-n,2)*n*i[s]+3*(1-n)*bm_pow(n,2)*r[s]+bm_pow(n,3)*e[s],p[s]=a,null!==m[s]&&(o+=bm_pow(p[s]-m[s],2)),m[s]=p[s];o&&(l+=o=bm_sqrt(o)),f.percents[d]=n,f.lengths[d]=l}return f.addedLength=l,f};function g(t){this.segmentLength=0,this.points=new Array(t)}function v(t,e){this.partialLength=t,this.point=e}function t(t,e,i,r){var s=(t[0]+"_"+t[1]+"_"+e[0]+"_"+e[1]+"_"+i[0]+"_"+i[1]+"_"+r[0]+"_"+r[1]).replace(/\./g,"p");if(!b[s]){for(var a,n,o,h,l,p=defaultCurveSegments,m=0,f=null,c=new g(p=2===t.length&&(t[0]!=e[0]||t[1]!=e[1])&&y(t[0],t[1],e[0],e[1],t[0]+i[0],t[1]+i[1])&&y(t[0],t[1],e[0],e[1],e[0]+r[0],e[1]+r[1])?2:p),d=i.length,u=0;u<p;u+=1){for(l=createSizedArray(d),o=u/(p-1),a=h=0;a<d;a+=1)n=bm_pow(1-o,3)*t[a]+3*bm_pow(1-o,2)*o*(t[a]+i[a])+3*(1-o)*bm_pow(o,2)*(e[a]+r[a])+bm_pow(o,3)*e[a],l[a]=n,null!==f&&(h+=bm_pow(l[a]-f[a],2));m+=h=bm_sqrt(h),c.points[u]=new v(h,l),f=l}c.segmentLength=m,b[s]=c}return b[s]}var b;b={};function C(t,e){var i=e.percents,r=e.lengths,s=i.length,a=bm_floor((s-1)*t),n=t*e.addedLength,o=0;if(a===s-1||0===a||n===r[a])return i[a];for(var h=r[a]>n?-1:1,l=!0;l;)if(r[a]<=n&&r[a+1]>n?(o=(n-r[a])/(r[a+1]-r[a]),l=!1):a+=h,a<0||s-1<=a){if(a===s-1)return i[a];l=!1}return i[a]+(i[a+1]-i[a])*o}var T=createTypedArray("float32",8);return{getSegmentsLength:function(t){for(var e=segments_length_pool.newElement(),i=t.c,r=t.v,s=t.o,a=t.i,n=t._length,o=e.lengths,h=0,l=0;l<n-1;
12l+=1)o[l]=p(r[l],r[l+1],s[l],a[l+1]),h+=o[l].addedLength;return i&&n&&(o[l]=p(r[l],r[0],s[l],a[0]),h+=o[l].addedLength),e.totalLength=h,e},getNewSegment:function(t,e,i,r,s,a,n){for(var s=C(s=s<0?0:1<s?1:s,n),a=C(a=1<a?1:a,n),o=t.length,h=1-a,l=(n=1-s)*n*n,p=s*n*n*3,m=s*s*n*3,f=s*s*s,c=n*n*h,d=s*n*h+n*s*h+n*n*a,u=s*s*h+n*s*a+s*n*a,y=s*s*a,g=n*h*h,v=s*h*h+n*a*h+n*h*a,b=s*a*h+n*a*a+s*h*a,E=s*a*a,x=h*h*h,P=a*h*h+h*a*h+h*h*a,S=a*a*h+h*a*a+a*h*a,_=a*a*a,A=0;A<o;A+=1)T[4*A]=Math.round(1e3*(l*t[A]+p*i[A]+m*r[A]+f*e[A]))/1e3,T[4*A+1]=Math.round(1e3*(c*t[A]+d*i[A]+u*r[A]+y*e[A]))/1e3,T[4*A+2]=Math.round(1e3*(g*t[A]+v*i[A]+b*r[A]+E*e[A]))/1e3,T[4*A+3]=Math.round(1e3*(x*t[A]+P*i[A]+S*r[A]+_*e[A]))/1e3;return T},getPointInSegment:function(t,e,i,r,s,a){return s=C(s,a),a=1-s,[Math.round(1e3*(a*a*a*t[0]+(s*a*a+a*s*a+a*a*s)*i[0]+(s*s*a+a*s*s+s*a*s)*r[0]+s*s*s*e[0]))/1e3,Math.round(1e3*(a*a*a*t[1]+(s*a*a+a*s*a+a*a*s)*i[1]+(s*s*a+a*s*s+s*a*s)*r[1]+s*s*s*e[1]))/1e3]},buildBezierData:t,pointOnLine2D:y,pointOnLine3D:function(t,e,i,r,s,a,n,o,h){if(0===i&&0===a&&0===h)return y(t,e,r,s,n,o);var l=Math.sqrt(Math.pow(r-t,2)+Math.pow(s-e,2)+Math.pow(a-i,2)),t=Math.sqrt(Math.pow(n-t,2)+Math.pow(o-e,2)+Math.pow(h-i,2)),e=Math.sqrt(Math.pow(n-r,2)+Math.pow(o-s,2)+Math.pow(h-a,2));return-1e-4<(i=t<l?e<l?l-t-e:e-t-l:t<e?e-t-l:t-l-e)&&i<1e-4}}}!function(){for(var a=0,t=["ms","moz","webkit","o"],e=0;e<t.length&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[t[e]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[e]+"CancelAnimationFrame"]||window[t[e]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var i=(new Date).getTime(),r=Math.max(0,16-(i-a)),s=setTimeout(function(){t(i+r)},r);return a=i+r,s}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}();var bez=bezFunction();function dataFunctionManager(){function m(t,e,i){for(var r,s,a,n=t.length,o=0;o<n;o+=1)if("ks"in(a=t[o])&&!a.completed){if(a.completed=!0,a.tt&&(t[o-1].td=a.tt),a.hasMask)for(var h=a.masksProperties,l=h.length,p=0;p<l;p+=1)if(h[p].pt.k.i)f(h[p].pt.k);else for(s=h[p].pt.k.length,r=0;r<s;r+=1)h[p].pt.k[r].s&&f(h[p].pt.k[r].s[0]),h[p].pt.k[r].e&&f(h[p].pt.k[r].e[0]);0===a.ty?(a.layers=function(t,e){var i=0,r=e.length;for(;i<r;){if(e[i].id===t)return e[i].layers.__used?JSON.parse(JSON.stringify(e[i].layers)):(e[i].layers.__used=!0,e[i].layers);i+=1}}(a.refId,e),m(a.layers,e,i)):4===a.ty?function t(e){var i,r=e.length;var s,a;for(i=r-1;0<=i;--i)if("sh"==e[i].ty){if(e[i].ks.k.i)f(e[i].ks.k);else for(a=e[i].ks.k.length,s=0;s<a;s+=1)e[i].ks.k[s].s&&f(e[i].ks.k[s].s[0]),e[i].ks.k[s].e&&f(e[i].ks.k[s].e[0]);0}else"gr"==e[i].ty&&t(e[i].it)}(a.shapes):5!=a.ty||0!==(a=a).t.a.length||"m"in a.t.p||(a.singleShape=!0)}}function f(t){for(var e=t.i.length,i=0;i<e;i+=1)t.i[i][0]+=t.v[i][0],t.i[i][1]+=t.v[i][1],t.o[i][0]+=t.v[i][0],t.o[i][1]+=t.v[i][1]}function o(t,e){e=e?e.split("."):[100,100,100];return t[0]>e[0]||!(e[0]>t[0])&&(t[1]>e[1]||!(e[1]>t[1])&&(t[2]>e[2]||(e[2],void t[2])))}r=[4,4,14];var r,i=function(t){if(o(r,t.v)&&(s(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&s(t.assets[i].layers)};function s(t){for(var e,i,r=t.length,s=0;s<r;s+=1)5===t[s].ty&&(e=t[s],i=void 0,i=e.t.d,e.t.d={k:[{s:i,t:0}]})}h=[4,7,99];var h,a,n=function(t){if(t.chars&&!o(h,t.v))for(var e,i,r,s,a=t.chars.length,n=0;n<a;n+=1)if(t.chars[n].data&&t.chars[n].data.shapes)for(i=(s=t.chars[n].data.shapes[0].it).length,e=0;e<i;e+=1)(r=s[e].ks.k).__converted||(f(s[e].ks.k),r.__converted=!0)},l=(a=[4,1,9],function(t){if(o(a,t.v)&&(p(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&p(t.assets[i].layers)});function p(t){for(var e=t.length,i=0;i<e;i+=1)4===t[i].ty&&!function t(e){for(var i,r,s=e.length,a=0;a<s;a+=1)if("gr"===e[a].ty)t(e[a].it);else if("fl"===e[a].ty||"st"===e[a].ty)if(e[a].c.k&&e[a].c.k[0].i)for(r=e[a].c.k.length,i=0;i<r;i+=1)e[a].c.k[i].s&&(e[a].c.k[i].s[0]/=255,e[a].c.k[i].s[1]/=255,e[a].c.k[i].s[2]/=255,e[a].c.k[i].s[3]/=255),e[a].c.k[i].e&&(e[a].c.k[i].e[0]/=255,e[a].c.k[i].e[1]/=255,e[a].c.k[i].e[2]/=255,e[a].c.k[i].e[3]/=255);else e[a].c.k[0]/=255,e[a].c.k[1]/=255,e[a].c.k[2]/=255,e[a].c.k[3]/=255}(t[i].shapes)}c=[4,4,18];var c,d=function(t){if(o(c,t.v)&&(u(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&u(t.assets[i].layers)};function u(t){for(var e,i,r,s=t.length,a=0;a<s;a+=1){if((e=t[a]).hasMask)for(var n=e.masksProperties,o=n.length,h=0;h<o;h+=1)if(n[h].pt.k.i)n[h].pt.k.c=n[h].cl;else for(r=n[h].pt.k.length,i=0;i<r;i+=1)n[h].pt.k[i].s&&(n[h].pt.k[i].s[0].c=n[h].cl),n[h].pt.k[i].e&&(n[h].pt.k[i].e[0].c=n[h].cl);4===e.ty&&!function t(e){for(var i,r,s=e.length-1;0<=s;--s)if("sh"==e[s].ty)if(e[s].ks.k.i)e[s].ks.k.c=e[s].closed;else for(r=e[s].ks.k.length,i=0;i<r;i+=1)e[s].ks.k[i].s&&(e[s].ks.k[i].s[0].c=e[s].closed),e[s].ks.k[i].e&&(e[s].ks.k[i].e[0].c=e[s].closed);else"gr"==e[s].ty&&t(e[s].it)}(e.shapes)}}var t={completeData:function(t,e){t.__complete||(l(t),i(t),n(t),d(t),m(t.layers,t.assets,e),t.__complete=!0)}};return t.checkColors=l,t.checkChars=n,t.checkShapes=d,t.completeLayers=m,t}var dataManager=dataFunctionManager(),FontManager=function(){var a={w:0,size:0,shapes:[]};function c(t,e){var i=createTag("span"),r=(i.style.fontFamily=e,createTag("span")),s=(r.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300
12px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(r),document.body.appendChild(i),r.offsetWidth);return r.style.fontFamily=function(t){for(var e=t.split(","),i=e.length,r=[],s=0;s<i;s+=1)"sans-serif"!==e[s]&&"monospace"!==e[s]&&r.push(e[s]);return r.join(",")}(t)+", "+e,{node:r,w:s,parent:i}}function t(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)}var e=(e=[]).concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]),i=(t.getCombinedCharacterCodes=function(){return e},{addChars:function(t){if(t){this.chars||(this.chars=[]);for(var e,i,r=t.length,s=this.chars.length,a=0;a<r;a+=1){for(e=0,i=!1;e<s;)this.chars[e].style===t[a].style&&this.chars[e].fFamily===t[a].fFamily&&this.chars[e].ch===t[a].ch&&(i=!0),e+=1;i||(this.chars.push(t[a]),s+=1)}}},addFonts:function(t,e){if(t)if(this.chars)this.isLoaded=!0,this.fonts=t.list;else{for(var i,r,s=t.list,a=s.length,n=a,o=0;o<a;o+=1){var h,l,p,m,f=!0;if(s[o].loaded=!1,s[o].monoCase=c(s[o].fFamily,"monospace"),s[o].sansCase=c(s[o].fFamily,"sans-serif"),s[o].fPath){if("p"===s[o].fOrigin||3===s[o].origin)(f=0<(l=document.querySelectorAll('style[f-forigin="p"][f-family="'+s[o].fFamily+'"], style[f-origin="3"][f-family="'+s[o].fFamily+'"]')).length?!1:f)&&((p=createTag("style")).setAttribute("f-forigin",s[o].fOrigin),p.setAttribute("f-origin",s[o].origin),p.setAttribute("f-family",s[o].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+s[o].fFamily+"; font-style: normal; src: url('"+s[o].fPath+"');}",e.appendChild(p));else if("g"===s[o].fOrigin||1===s[o].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),h=0;h<l.length;h++)-1!==l[h].href.indexOf(s[o].fPath)&&(f=!1);f&&((p=createTag("link")).setAttribute("f-forigin",s[o].fOrigin),p.setAttribute("f-origin",s[o].origin),p.type="text/css",p.rel="stylesheet",p.href=s[o].fPath,document.body.appendChild(p))}else if("t"===s[o].fOrigin||2===s[o].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),h=0;h<l.length;h++)s[o].fPath===l[h].src&&(f=!1);f&&((m=createTag("link")).setAttribute("f-forigin",s[o].fOrigin),m.setAttribute("f-origin",s[o].origin),m.setAttribute("rel","stylesheet"),m.setAttribute("href",s[o].fPath),e.appendChild(m))}}else s[o].loaded=!0,--n;s[o].helper=(m=e,i=s[o],r=void 0,(r=createNS("text")).style.fontSize="100px",r.setAttribute("font-family",i.fFamily),r.setAttribute("font-style",i.fStyle),r.setAttribute("font-weight",i.fWeight),r.textContent="1",i.fClass?(r.style.fontFamily="inherit",r.setAttribute("class",i.fClass)):r.style.fontFamily=i.fFamily,m.appendChild(r),createTag("canvas").getContext("2d").font=i.fWeight+" "+i.fStyle+" 100px "+i.fFamily,r),s[o].cache={},this.fonts.push(s[o])}0===n?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,e,i){for(var r=0,s=this.chars.length;r<s;){if(this.chars[r].ch===t&&this.chars[r].style===e&&this.chars[r].fFamily===i)return this.chars[r];r+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&console.warn("Missing character from exported characters list: ",t,e,i),a},getFontByName:function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,i){var r,s,a,e=this.getFontByName(e),n=t.charCodeAt(0);return e.cache[n+1]||(r=e.helper," "===t?(r.textContent="|"+t+"|",s=r.getComputedTextLength(),r.textContent="||",a=r.getComputedTextLength(),e.cache[n+1]=(s-a)/100):(r.textContent=t,e.cache[n+1]=r.getComputedTextLength()/100)),e.cache[n+1]*i},checkLoadedFonts:function(){for(var t,e,i=this.fonts.length,r=i,s=0;s<i;s+=1)this.fonts[s].loaded?--r:"n"===this.fonts[s].fOrigin||0===this.fonts[s].origin?this.fonts[s].loaded=!0:(t=this.fonts[s].monoCase.node,e=this.fonts[s].monoCase.w,t.offsetWidth!==e?(--r,this.fonts[s].loaded=!0):(t=this.fonts[s].sansCase.node,e=this.fonts[s].sansCase.w,t.offsetWidth!==e&&(--r,this.fonts[s].loaded=!0)),this.fonts[s].loaded&&(this.fonts[s].sansCase.parent.parentNode.removeChild(this.fonts[s].sansCase.parent),this.fonts[s].monoCase.parent.parentNode.removeChild(this.fonts[s].monoCase.parent)));0!==r&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}});return t.prototype=i,t}(),PropertyFactory=function(){var m=initialDefaultFrame,s=Math.abs;function f(t,e){for(var i,r,s,a,n=this.offsetTime,o=("multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length)),e.lastIndex),h=o,l=this.keyframes.length-1,p=!0;p;){if(r=this.keyframes[h],s=this.keyframes[h+1],h===l-1&&t>=s.t-n){r.h&&(r=s),o=0;break}if(s.t-n>t){o=h;break}h<l-1?h+=1:(o=0,p=!1)}var m,f,c,d,u,y=s.t-n,g=r.t-n;if(r.to){r.bezierData||(r.bezierData=bez.buildBezierData(r.s,s.s||r.e,r.to,r.ti));var v=r.bezierData;if(y<=t||t<g)for(var b=y<=t?v.points.length-1:0,E=v.points[b].point.length,x=0;x<E;x+=1)i[x]=v.points[b].point[x];else{r.__fnct?a=r.__fnct:(a=BezierFactory.getBezierEasing(r.o.x,r.o.y,r.i.x,r.i.y,r.n).get,r.__fnct=a);for(var P,S=a((t-g)/(y-g)),_=v.segmentLength*S,A=e.lastFrame<t&&e._lastKeyframeIndex===h?e._lastAddedLe
vendor: 62,741 bytes, line 12
12ngth:0,C=e.lastFrame<t&&e._lastKeyframeIndex===h?e._lastPoint:0,p=!0,T=v.points.length;p;){if(A+=v.points[C].partialLength,0==_||0===S||C===v.points.length-1){for(E=v.points[C].point.length,x=0;x<E;x+=1)i[x]=v.points[C].point[x];break}if(A<=_&&_<A+v.points[C+1].partialLength){for(P=(_-A)/v.points[C+1].partialLength,E=v.points[C].point.length,x=0;x<E;x+=1)i[x]=v.points[C].point[x]+(v.points[C+1].point[x]-v.points[C].point[x])*P;break}C<T-1?C+=1:p=!1}e._lastPoint=C,e._lastAddedLength=A-v.points[C].partialLength,e._lastKeyframeIndex=h}}else{var k,M,D,F,w,I,V,l=r.s.length,R=s.s||r.e;if(this.sh&&1!==r.h)y<=t?(i[0]=R[0],i[1]=R[1],i[2]=R[2]):t<=g?(i[0]=r.s[0],i[1]=r.s[1],i[2]=r.s[2]):(I=B(r.s),V=B(R),m=i,I=function(t,e,i){var r,s,a,n=[],o=t[0],h=t[1],l=t[2],t=t[3],p=e[0],m=e[1],f=e[2],e=e[3];(a=o*p+h*m+l*f+t*e)<0&&(a=-a,p=-p,m=-m,f=-f,e=-e);a=1e-6<1-a?(a=Math.acos(a),r=Math.sin(a),s=Math.sin((1-i)*a)/r,Math.sin(i*a)/r):(s=1-i,i);return n[0]=s*o+a*p,n[1]=s*h+a*m,n[2]=s*l+a*f,n[3]=s*t+a*e,n}(I,V,(t-g)/(y-g)),V=I[0],f=I[1],c=I[2],I=I[3],d=Math.atan2(2*f*I-2*V*c,1-2*f*f-2*c*c),u=Math.asin(2*V*f+2*c*I),I=Math.atan2(2*V*I-2*f*c,1-2*V*V-2*c*c),m[0]=d/degToRads,m[1]=u/degToRads,m[2]=I/degToRads);else for(h=0;h<l;h+=1)1!==r.h&&(S=y<=t?1:t<g?0:(r.o.x.constructor===Array?(r.__fnct||(r.__fnct=[]),r.__fnct[h]?a=r.__fnct[h]:(k=void 0===r.o.x[h]?r.o.x[0]:r.o.x[h],M=void 0===r.o.y[h]?r.o.y[0]:r.o.y[h],D=void 0===r.i.x[h]?r.i.x[0]:r.i.x[h],F=void 0===r.i.y[h]?r.i.y[0]:r.i.y[h],a=BezierFactory.getBezierEasing(k,M,D,F).get,r.__fnct[h]=a)):r.__fnct?a=r.__fnct:(k=r.o.x,M=r.o.y,D=r.i.x,F=r.i.y,a=BezierFactory.getBezierEasing(k,M,D,F).get,r.__fnct=a),a((t-g)/(y-g)))),R=s.s||r.e,w=1===r.h?r.s[h]:r.s[h]+(R[h]-r.s[h])*S,"multidimensional"===this.propType?i[h]=w:i=w}return e.lastIndex=o,i}function B(t){var e=t[0]*degToRads,i=t[1]*degToRads,t=t[2]*degToRads,r=Math.cos(e/2),s=Math.cos(i/2),a=Math.cos(t/2),e=Math.sin(e/2),i=Math.sin(i/2),t=Math.sin(t/2);return[e*i*a+r*s*t,e*s*a+r*i*t,r*i*a-e*s*t,r*s*a-e*i*t]}function c(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;return t===this._caching.lastFrame||this._caching.lastFrame!==m&&(this._caching.lastFrame>=i&&i<=t||this._caching.lastFrame<e&&t<e)||(this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0),i=this.interpolateValue(t,this._caching),this.pv=i),this._caching.lastFrame=t,this.pv}function d(t){var e;if("unidimensional"===this.propType)e=t*this.mult,1e-5<s(this.v-e)&&(this.v=e,this._mdf=!0);else for(var i=0,r=this.v.length;i<r;)e=t[i]*this.mult,1e-5<s(this.v[i]-e)&&(this.v[i]=e,this._mdf=!0),i+=1}function u(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=this._isFirstFrame;for(var t=this.effectsSequence.length,e=this.kf?this.pv:this.data.k,i=0;i<t;i+=1)e=this.effectsSequence[i](e);this.setVValue(e),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function y(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function n(t,e,i,r){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=u,this.setVValue=d,this.addEffect=y}function o(t,e,i,r){this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,a=e.k.length;this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),createTypedArray("float32",a);for(this.vel=createTypedArray("float32",a),s=0;s<a;s+=1)this.v[s]=e.k[s]*this.mult,this.pv[s]=e.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=u,this.setVValue=d,this.addEffect=y}function h(t,e,i,r){this.propType="unidimensional",this.keyframes=e.k,this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:m,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=r,this.comp=t.comp,this.v=m,this.pv=m,this._isFirstFrame=!0,this.getValue=u,this.setVValue=d,this.interpolateValue=f,this.effectsSequence=[c.bind(this)],this.addEffect=y}function l(t,e,i,r){this.propType="multidimensional";for(var s,a,n,o,h=e.k.length,l=0;l<h-1;l+=1)e.k[l].to&&e.k[l].s&&e.k[l+1]&&e.k[l+1].s&&(s=e.k[l].s,a=e.k[l+1].s,n=e.k[l].to,o=e.k[l].ti,(2===s.length&&(s[0]!==a[0]||s[1]!==a[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],s[0]+n[0],s[1]+n[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],a[0]+o[0],a[1]+o[1])||3===s.length&&(s[0]!==a[0]||s[1]!==a[1]||s[2]!==a[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],s[0]+n[0],s[1]+n[1],s[2]+n[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],a[0]+o[0],a[1]+o[1],a[2]+o[2]))&&(e.k[l].to=null,e.k[l].ti=null),s[0]===a[0]&&s[1]===a[1]&&0===n[0]&&0===n[1]&&0===o[0]&&0===o[1]&&(2===s.length||s[2]===a[2]&&0===n[2]&&0===o[2])&&(e.k[l].to=null,e.k[l].ti=null));this.effectsSequence=[c.bind(this)],this.keyframes=e.k,this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=r,this.comp=t.comp,this.getValue=u,this.setVValue=d,this.interpolateValue=f,this.frameId=-1;var p=e.k[0].s.length;for(this.v=createTypedArray("float32",p),this.pv=createTypedArray("float32",p),l=0;l<p;l+=1)this.v[l]=m,this.pv[l]=m;this._caching={lastFrame:m,lastIndex:0,value:createTypedArray("float32",p)},this.addEffect=y}return{getProp:function(t,e,i,r,s){var a;if(e.k.length)if("number"==typeof e.k[0])a=new o(t,e,r,s);else switch(i){case 0:a=new h(t,e,r,s);break;case 1:a=new l(t,e,r,s)}else a=new n(t,e,r,s);return a.effectsSequence.length&&s.addDynamicProperty(a),a}}}(),TransformPropertyFactory=function(){var a=[0,0];function r(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti)for(var r=e.or.k.length,s=0;s<r;s+=1)e.or.k[s].to=e.or.k[s].ti=null;this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return r.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){var e,i,r,s;this.elem.globalData.frameId!==this.frameId&&(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),(this._mdf||t)&&(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented&&(t=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime?i=this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(e=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/t,0),this.p.getValueAtTime(this.p.keyframes[0].t/t,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(e=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/t,0),this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/t,0)):(e=this.p.pv,this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/t,this.p.offsetTime)):this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime?(e=[],i=[],r=this.px,s=this.py,r._caching.lastFrame+r.offsetTime<=r.keyframes[0].t?(e[0]=r.getValueAtTime((r.keyframes[0].t+.01)/t,0),e[1]=s.getValueAtTime((s.keyframes[0].t+.01)/t,0),i[0]=r.getValueAtTime(r.keyframes[0].t/t,0),i[1]=s.getValueAtTime(s.keyframes[0].t/t,0)):r._caching.lastFrame+r.offsetTime>=r.keyframes[r.keyframes.length-1].t?(e[0]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/t,0),e[1]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/t,0),i[0]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/t,0),i[1]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/t,0)):(e=[r.pv,s.pv],i[0]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/t,r.offsetTime),i[1]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/t,s.offsetTime))):e=i=a,this.v.rotate(-Math.atan2(e[1]-i[1],e[0]-i[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],r),r.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},r.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,e,i){return new r(t,e,i)}}}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=point_pool.newElement(),this.o[i]=point_pool.newElement(),this.i[i]=point_pool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,i,r,s){var a;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o}a[r]&&(!a[r]||s)||(a[r]=point_pool.newElement()),a[r][0]=t,a[r][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,r,s,a,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(i,r,"o",n,o),this.setXYAt(s,a,"i",n,o)},ShapePath.prototype.reverse=function(){for(var t=new ShapePath,e=(t.setPathData(this.c,this._length),this.v),i=this.o,r=this.i,s=0,a=(this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),s=1),this._length-1),n=this._length,o=s;o<n;o+=1)t.setTripleAt(e[a][0],e[a][1],r[a][0],r[a][1],i[a][0],i[a][1],o,!1),--a;return t};var ShapePropertyFactory=function(){var s=-999999;function t(t,e,i){var r,s,a,n,o,h,l,p=i.lastIndex,m=this.keyframes;if(t<m[0].t-this.offsetTime)r=m[0].s[0],s=!0,p=0;else if(t>=m[m.length-1].t-this.offsetTime)r=(m[m.length-1].s?m[m.length-1].s:m[m.length-2].e)[0],s=!0;else{for(var f,c,d,u,y,g=p,v=m.length-1,b=!0;b&&(f=m[g],!((c=m[g+1]).t-this.offsetTime>t));)g<v-1?g+=1:b=!1;p=g,(s=1===f.h)||(u=t>=c.t-this.offsetTime?1:t<f.t-this.offsetTime?0:(f.__fnct?d=f.__fnct:(d=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,f.__fnct=d),d((t-(f.t-this.offsetTime))/(c.t-this.offsetTime-(f.t-this.offsetTime)))),y=(c.s||f.e)[0]),r=f.s[0]}for(o=e._length,h=r.i[0].length,i.lastIndex=p,a=0;a<o;a+=1)for(n=0;n<h;n+=1)l=s?r.i[a][n]:r.i[a][n]+(y.i[a][n]-r.i[a][n])*u,e.i[a][n]=l,l=s?r.o[a][n]:r.o[a][n]+(y.o[a][n]-r.o[a][n])*u,e.o[a][n]=l,l=s?r.v[a][n]:r.v[a][n]+(y.v[a][n]-r.v[a][n])*u,e.v[a][n]=l}function r(){this.paths=this.localShapeCollection}function e(t){!function(t,e){if(t._length===e._length&&t.c===e.c){for(var i=t._length,r=0;r<i;r+=1)if(t.v[r][0]!==e.v[r][0]||t.v[r][1]!==e.v[r][1]||t.o[r][0]!==e.o[r][0]||t.o[r][1]!==e.o[r][1]||t.i[r][0]!==e.i[r][0]||t.i[r][1]!==e.i[r][1])return;return 1}}(this.v,t)&&(this.v=shape_pool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function i(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=!1;for(var t=this.kf?this.pv:(this.data.ks||this.data.pt).k,e=this.effectsSequence.length,i=0;i<e;i+=1)t=this.effectsSequence[i](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;t=(3===i?e.pt:e.ks).k;this.v=shape_pool.clone(t),this.pv=shape_pool.clone(this.v),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function n(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function o(t,e,i){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=(3===i?e.pt:e.ks).k,this.k=!0,this.kf=!0;t=this.keyframes[0].s[0].i.length;this.keyframes[0].s[0].i[0].length;this.v=shape_pool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,t),this.pv=shape_pool.clone(this.v),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=s,this.reset=r,this._caching={lastFrame:s,lastIndex:0},this.effectsSequence=[function(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==s&&(r<e&&t<e||i<r&&i<t)||(this._caching.lastIndex=r<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=i,a.prototype.setVValue=e,a.prototype.addEffect=n,o.prototype.getValue=i,o.prototype.interpolateShape=t,o.prototype.setVValue=e,o.prototype.addEffect=n;h=roundCorner,p.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,r=this.s.v[1]/2,s=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=e-r,a.v[1][0]=s?t+i:t-i,a.v[1][1]=e,a.v[2][0]=t,a.v[2][1]=e+r,a.v[3][0]=s?t-i:t+i,a.v[3][1]=e,a.i[0][0]=s?t-i*h:t+i*h,a.i[0][1]=e-r,a.i[1][0]=s?t+i:t-i,a.i[1][1]=e-r*h,a.i[2][0]=s?t+i*h:t-i*h,a.i[2][1]=e+r,a.i[3][0]=s?t-i:t+i,a.i[3][1]=e+r*h,a.o[0][0]=s?t+i*h:t-i*h,a.o[0][1]=e-r,a.o[1][0]=s?t+i:t-i,a.o[1][1]=e+r*h,a.o[2][0]=s?t-i*h:t+i*h,a.o[2][1]=e+r,a.o[3][0]=s?t-i:t+i,a.o[3][1]=e-r*h}},extendPrototype([DynamicPropertyContainer],p);var h,l=p;function p(t,e){this.v=shape_pool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}f.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){for(var t=2*Math.floor(this.pt.v),e=2*Math.PI/t,i=!0,r=this.or.v,s=this.ir.v,a=this.os.v,n=this.is.v,o=2*Math.PI*r/(2*t),h=2*Math.PI*s/(2*t),l=-Math.PI/2,p=(l+=this.r.v,3===this.data.d?-1:1),m=this.v._length=0;m<t;m+=1){var f=i?a:n,c=i?o:h,d=(u=i?r:s)*Math.cos(l),u=u*Math.sin(l),y=0===d&&0===u?0:u/Math.sqrt(d*d+u*u),g=0===d&&0===u?0:-d/Math.sqrt(d*d+u*u);d+=+this.p.v[0],u+=+this.p.v[1],this.v.setTripleAt(d,u,d-y*c*f*p,u-g*c*f*p,d+y*c*f*p,u+g*c*f*p,m,!0),i=!i,l+=e*p}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,r=this.or.v,s=this.os.v,a=2*Math.PI*r/(4*e),n=-Math.PI/2,o=3===this.data.d?-1:1;for(n+=this.r.v,t=this.v._length=0;t<e;t+=1){var h=r*Math.cos(n),l=r*Math.sin(n),p=0===h&&0===l?0:l/Math.sqrt(h*h+l*l),m=0===h&&0===l?0:-h/Math.sqrt(h*h+l*l);h+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(h,l,h-p*a*s*o,l-m*a*s*o,h+p*a*s*o,l+m*a*s*o,t,!0),n+=i*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],f);var m=f;function f(t,e){this.v=shape_pool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}d.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,r=this.s.v[1]/2,s=bm_min(i,r,this.r.v),a=s*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-r+s,t+i,e-r+s,t+i,e-r+a,0,!0),this.v.setTripleAt(t+i,e+r-s,t+i,e+r-a,t+i,e+r-s,1,!0),0!==s?(this.v.setTripleAt(t+i-s,e+r,t+i-s,e+r,t+i-a,e+r,2,!0),this.v.setTripleAt(t-i+s,e+r,t-i+a,e+r,t-i+s,e+r,3,!0),this.v.setTripleAt(t-i,e+r-s,t-i,e+r-s,t-i,e+r-a,4,!0),this.v.setTripleAt(t-i,e-r+s,t-i,e-r+a,t-i,e-r+s,5,!0),this.v.setTripleAt(t-i+s,e-r,t-i+s,e-r,t-i+a,e-r,6,!0),this.v.setTripleAt(t+i-s,e-r,t+i-a,e-r,t+i-s,e-r,7,!0)):(this.v.setTripleAt(t-i,e+r,t-i+a,e+r,t-i,e+r,2),this.v.setTripleAt(t-i,e-r,t-i,e-r+a,t-i,e-r,3))):(this.v.setTripleAt(t+i,e-r+s,t+i,e-r+a,t+i,e-r+s,0,!0),0!==s?(this.v.setTripleAt(t+i-s,e-r,t+i-s,e-r,t+i-a,e-r,1,!0),this.v.setTripleAt(t-i+s,e-r,t-i+a,e-r,t-i+s,e-r,2,!0),this.v.setTripleAt(t-i,e-r+s,t-i,e-r+s,t-i,e-r+a,3,!0),this.v.setTripleAt(t-i,e+r-s,t-i,e+r-a,t-i,e+r-s,4,!0),this.v.setTripleAt(t-i+s,e+r,t-i+s,e+r,t-i+a,e+r,5,!0),this.v.setTripleAt(t+i-s,e+r,t+i-a,e+r,t+i-s,e+r,6,!0),this.v.setTripleAt(t+i,e+r-s,t+i,e+r-s,t+i,e+r-a,7,!0)):(this.v.setTripleAt(t-i,e-r,t-i+a,e-r,t-i,e-r,1,!0),this.v.setTripleAt(t-i,e+r,t-i,e+r-a,t-i,e+r,2,!0),this.v.setTripleAt(t+i,e+r,t+i-a,e+r,t+i,e+r,3,!0)))},getValue:function(t){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],d);var c=d;function d(t,e){this.v=shape_pool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}var u={getShapeProp:function(t,e,i){var r;return 3===i||4===i?r=new((3===i?e.pt:e.ks).k.length?o:a)(t,e,i):5===i?r=new c(t,e):6===i?r=new l(t,e):7===i&&(r=new m(t,e)),r.k&&t.addDynamicProperty(r),r},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return o}};return u}(),ShapeModifiers=function(){var t={},r={};return t.registerModifier=function(t,e){r[t]||(r[t]=e)},t.getModifier=function(t,e,i){return new r[t](e,i)},t}();function ShapeModifier(){}function TrimModifier(){}function RoundCornersModifier(){}function PuckerAndBloatModifier(){}function RepeaterModifier(){}function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}function DashProperty(t,e,i,r){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);for(var s,a=e.length||0,n=0;n<a;n+=1)s=PropertyFactory.getProp(t,e[n].v,0,0,this),this.k=s.k||this.k,this.dataProps[n]={n:e[n].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function GradientProperty(t,e,i){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var r=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){var e;this.closed||(t.sh.container.addDynamicProperty(t.sh),e={shape:t.sh,data:t,localShapeCollection:shapeCollection_pool.newShapeCollection()},this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated())},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,r,s){for(var a,n,o=[],h=(e<=1?o.push({s:t,e:e}):1<=t?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1})),[]),l=o.length,p=0;p<l;p+=1)(n=o[p]).e*s<r||n.s*s>r+i||(a=n.s*s<=r?0:(n.s*s-r)/i,n=n.e*s>=r+i?1:(n.e*s-r)/i,h.push([a,n]));return h.length||h.push([0,0]),h},TrimModifier.prototype.releasePathsData=function(t){for(var e=t.length,i=0;i<e;i+=1)segments_length_pool.release(t[i]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,i,r,s;this._mdf||t?((e=this.o.v%360/360)<0&&(e+=1),i=(1<this.s.v?1:this.s.v<0?0:this.s.v)+e,(r=(1<this.e.v?1:this.e.v<0?0:this.e.v)+e)<i&&(e=i,i=r,r=e),i=1e-4*Math.round(1e4*i),r=1e-4*Math.round(1e4*r),this.sValue=i,this.eValue=r):(i=this.sValue,r=this.eValue);var a,n,o,h,l,p=this.shapes.length,m=0;if(r===i)for(u=0;u<p;u+=1)this.shapes[u].localShapeCollection.releaseShapes(),this.shapes[u].shape._mdf=!0,this.shapes[u].shape.paths=this.shapes[u].localShapeCollection,this._mdf&&(this.shapes[u].pathsData.length=0);else if(1===r&&0===i||0===r&&1===i){if(this._mdf)for(u=0;u<p;u+=1)this.shapes[u].pathsData.length=0,this.shapes[u].shape._mdf=!0}else{for(var f,c,d=[],u=0;u<p;u+=1)if((f=this.shapes[u]).shape._mdf||this._mdf||t||2===this.m){if(n=(s=f.shape.paths)._length,l=0,!f.shape._mdf&&f.pathsData.length)l=f.totalShapeLength;else{for(o=this.releasePathsData(f.pathsData),a=0;a<n;a+=1)h=bez.getSegmentsLength(s.shapes[a]),o.push(h),l+=h.totalLength;f.totalShapeLength=l,f.pathsData=o}m+=l,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var y,g=i,v=r,b=0;for(u=p-1;0<=u;--u)if((f=this.shapes[u]).shape._mdf){for((c=f.localShapeCollection).releaseShapes(),2===this.m&&1<p?(y=this.calculateShapeEdges(i,r,f.totalShapeLength,b,m),b+=f.totalShapeLength):y=[[g,v]],n=y.length,a=0;a<n;a+=1){g=y[a][0],v=y[a][1],d.length=0,v<=1?d.push({s:f.totalShapeLength*g,e:f.totalShapeLength*v}):1<=g?d.push({s:f.totalShapeLength*(g-1),e:f.totalShapeLength*(v-1)}):(d.push({s:f.totalShapeLength*g,e:f.totalShapeLength}),d.push({s:0,e:f.totalShapeLength*(v-1)}));var E,x=this.addShapes(f,d[0]);d[0].s!==d[0].e&&(1<d.length&&(x=f.shape.paths.shapes[f.shape.paths._length-1].c?(E=x.pop(),this.addPaths(x,c),this.addShapes(f,d[1],E)):(this.addPaths(x,c),this.addShapes(f,d[1]))),this.addPaths(x,c))}f.shape.paths=c}}},TrimModifier.prototype.addPaths=function(t,e){for(var i=t.length,r=0;r<i;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,i,r,s,a,n){s.setXYAt(e[0],e[1],"o",a),s.setXYAt(i[0],i[1],"i",a+1),n&&s.setXYAt(t[0],t[1],"v",a),s.setXYAt(r[0],r[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,r){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),r&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},TrimModifier.prototype.addShapes=function(t,e,i){var r,s,a,n,o,h,l,p,m=t.pathsData,f=t.shape.paths.shapes,c=t.shape.paths._length,d=0,u=[],y=!0,g=i?(n=i._length,i._length):(i=shape_pool.newElement(),n=0);for(u.push(i),r=0;r<c;r+=1){for(o=m[r].lengths,i.c=f[r].c,a=f[r].c?o.length:o.length+1,s=1;s<a;s+=1)if(d+(p=o[s-1]).addedLength<e.s)d+=p.addedLength,i.c=!1;else{if(d>e.e){i.c=!1;break}e.s<=d&&e.e>=d+p.addedLength?(this.addSegment(f[r].v[s-1],f[r].o[s-1],f[r].i[s],f[r].v[s],i,n,y),y=!1):(h=bez.getNewSegment(f[r].v[s-1],f[r].v[s],f[r].o[s-1],f[r].i[s],(e.s-d)/p.addedLength,(e.e-d)/p.addedLength,o[s-1]),this.addSegmentFromArray(h,i,n,y),i.c=y=!1),d+=p.addedLength,n+=1}if(f[r].c&&o.length&&(p=o[s-1],d<=e.e?(l=o[s-1].addedLength,e.s<=d&&e.e>=d+l?(this.addSegment(f[r].v[s-1],f[r].o[s-1],f[r].i[0],f[r].v[0],i,n,y),y=!1):(h=bez.getNewSegment(f[r].v[s-1],f[r].v[0],f[r].o[s-1],f[r].i[0],(e.s-d)/l,(e.e-d)/l,o[s-1]),this.addSegmentFromArray(h,i,n,y),i.c=y=!1)):i.c=!1,d+=p.addedLength,n+=1),i._length&&(i.setXYAt(i.v[g][0],i.v[g][1],"i",g),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),d>e.e)break;r<c-1&&(i=shape_pool.newElement(),y=!0,u.push(i),n=0)}return u},ShapeModifiers.registerModifier("tm",TrimModifier),extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var i=shape_pool.newElement();i.c=t.c;for(var r,s,a,n,o,h,l,p,m,f,c=t._length,d=0,u=0;u<c;u+=1)r=t.v[u],a=t.o[u],s=t.i[u],r[0]===a[0]&&r[1]===a[1]&&r[0]===s[0]&&r[1]===s[1]?0!==u&&u!==c-1||t.c?(n=0===u?t.v[c-1]:t.v[u-1],h=(o=Math.sqrt(Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2)))?Math.min(o/2,e)/o:0,m=r[0]+(n[0]-r[0])*h,f=r[1]-(r[1]-n[1])*h,l=m-(m-r[0])*roundCorner,p=f-(f-r[1])*roundCorner,i.setTripleAt(m,f,l,p,m,f,d),d+=1,n=u===c-1?t.v[0]:t.v[u+1],h=(o=Math.sqrt(Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2)))?Math.min(o/2,e)/o:0,l=r[0]+(n[0]-r[0])*h,p=r[1]+(n[1]-r[1])*h,m=l-(l-r[0])*roundCorner,f=p-(p-r[1])*roundCorner,i.setTripleAt(l,p,l,p,m,f,d)):i.setTripleAt(r[0],r[1],a[0],a[1],s[0],s[1],d):i.setTripleAt(t.v[u][0],t.v[u][1],t.o[u][0],t.o[u][1],t.i[u][0],t.i[u][1],d),d+=1;return i},RoundCornersModifier.prototype.processShapes=function(t){var e,i,r,s=this.shapes.length,a=this.rd.v;if(0!==a)for(var n,o,h=0;h<s;h+=1){if((n=this.shapes[h]).shape.paths,o=n.localShapeCollection,n.shape._mdf||this._mdf||t)for(o.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,r=n.shape.paths._length,i=0;i<r;i+=1)o.addShape(this.processPath(e[i],a));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ShapeModifiers.registerModifier("rd",RoundCornersModifier),extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){for(var i=e/100,r=[0,0],s=t._length,a=0,a=0;a<s;a+=1)r[0]+=t.v[a][0],r[1]+=t.v[a][1];r[0]/=s,r[1]/=s;var n,o,h,l,p,m,f=shape_pool.newElement();for(f.c=t.c,a=0;a<s;a+=1)n=t.v[a][0]+(r[0]-t.v[a][0])*i,o=t.v[a][1]+(r[1]-t.v[a][1])*i,h=t.o[a][0]+(r[0]-t.o[a][0])*-i,l=t.o[a][1]+(r[1]-t.o[a][1])*-i,p=t.i[a][0]+(r[0]-t.i[a][0])*-i,m=t.i[a][1]+(r[1]-t.i[a][1])*-i,f.setTripleAt(n,o,h,l,p,m,a);return f},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,r,s=this.shapes.length,a=this.amount.v;if(0!==a)for(var n,o,h=0;h<s;h+=1){if((n=this.shapes[h]).shape.paths,o=n.localShapeCollection,n.shape._mdf||this._mdf||t)for(o.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,r=n.shape.paths._length,i=0;i<r;i+=1)o.addShape(this.processPath(e[i],a));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,i,r,s,a){var n=a?-1:1,o=r.s.v[0]+(1-r.s.v[0])*(1-s),h=r.s.v[1]+(1-r.s.v[1])*(1-s);t.translate(r.p.v[0]*n*s,r.p.v[1]*n*s,r.p.v[2]),e.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),e.rotate(-r.r.v*n*s),e.translate(r.a.v[0],r.a.v[1],r.a.v[2]),i.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),i.scale(a?1/o:o,a?1/h:h),i.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,r){this.elem=t,this.arr=e,this.pos=i,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);for(;0<i;)this._elements.unshift(e[--i]),0;this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i]._processed=!1,"gr"===t[i].ty&&this.resetElements(t[i].it)},RepeaterModifier.prototype.cloneElements=function(t){t.length;t=JSON.parse(JSON.stringify(t));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(t,e){for(var i=t.length,r=0;r<i;r+=1)t[r]._render=e,"gr"===t[r].ty&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,i,r,s,a;if(this._mdf||t){var n,o=Math.ceil(this.c.v);if(this._groups.length<o){for(;this._groups.length<o;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes()}for(r=a=0;r<=this._groups.length-1;r+=1)this._groups[r]._render=n=a<o,this.changeGroupRender(this._groups[r].it,n),a+=1;this._currentCopies=o;var l,p,t=this.o.v,m=t%1,f=0<t?Math.floor(t):Math.ceil(t),c=(this.tr.v.props,this.pMatrix.props),d=this.rMatrix.props,u=this.sMatrix.props,y=(this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset(),0);if(0<t){for(;y<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),y+=1;m&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,m,!1),y+=m)}else if(t<0){for(;f<y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),--y;m&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-m,!0),y-=m)}for(r=1===this.data.m?0:this._currentCopies-1,s=1===this.data.m?1:-1,a=this._currentCopies;a;){if(p=(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=this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==y){for((0!==r&&1===s||r!==this._currentCopies-1&&-1===s)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.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]),this.matrix.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),this.matrix.transform(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14],c[15]),l=0;l<p;l+=1)i[l]=this.matrix.props[l];this.matrix.reset()}else for(this.matrix.reset(),l=0;l<p;l+=1)i[l]=this.matrix.props[l];y+=1,--a,r+=s}}else for(a=this._currentCopies,r=0,s=1;a;)i=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,--a,r+=s},RepeaterModifier.prototype.addShape=function(){},ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){for(var t=0;t<this._length;t+=1)shape_pool.release(this.shapes[t]);this._length=0},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!=this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,r=this.o.length/2;i<r;){if(.01<Math.abs(t[4*i]-t[4*e+2*i]))return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){for(var e,i,r=4*this.data.p,s=0;s<r;s+=1)e=s%4==0?100:255,i=Math.round(this.prop.v[s]*e),this.c[s]!==i&&(this.c[s]=i,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,s=4*this.data.p;s<r;s+=1)e=s%2==0?100:1,i=s%2==0?Math.round(100*this.prop.v[s]):this.prop.v[s],this.o[s-4*this.data.p]!==i&&(this.o[s-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty);var buildShapeString=function(t,e,i,r){if(0===e)return"";for(var s=t.o,a=t.i,n=t.v,o=" M"+r.applyToPointStringified(n[0][0],n[0][1]),h=1;h<e;h+=1)o+=" C"+r.applyToPointStringified(s[h-1][0],s[h-1][1])+" "+r.applyToPointStringified(a[h][0],a[h][1])+" "+r.applyToPointStringified(n[h][0],n[h][1]);return o=i&&e?o+(" C"+r.applyToPointStringified(s[h-1][0],s[h-1][1])+" "+r.applyToPointStringified(a[0][0],a[0][1])+" "+r.applyToPointStringified(n[0][0],n[0][1]))+"z":o},audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){for(var t=this.audios.length,e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){for(var t=this.audios.length,e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(t){for(var e=this.audios.length,i=0;i<e;i+=1)this.audios[i].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):Howl?new Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(t){return this._volume},_updateVolume:function(){for(var t=this.audios.length,e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),ImagePreloader=function(){(t=createTag("canvas")).width=1,t.height=1,(e=t.getContext("2d")).fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1);var t,e,s=t;function i(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(t,e,i){var r="";return r=t.e?t.p:e?e+(e=-1!==(e=t.p).indexOf("images/")?e.split("/")[1]:e):(r=i,(r+=t.u||"")+t.p)}function r(t){this._imageLoaded=i.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.loadedAssets=0,this.imagesLoadedCb=null,this.images=[]}return r.prototype={loadAssets:function(t,e){this.imagesLoadedCb=e;for(var i=t.length,r=0;r<i;r+=1)t[r].layers||(this.totalImages+=1,this.images.push(this._createImageData(t[r])))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loaded:function(){return this.totalImages===this.loadedAssets},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getImage:function(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}},createImgData:function(t){var e=a(t,this.assetsPath,this.path),i=createTag("img"),r=(i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){r.img=s,this._imageLoaded()}.bind(this),!1),i.src=e,{img:i,assetData:t});return r},createImageData:function(t){var e=a(t,this.assetsPath,this.path),i=createNS("image"),r=(i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){r.img=s,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",e),{img:i,assetData:t});return r},imageLoaded:i,setCacheType:function(t){this._createImageData=("svg"===t?this.createImageData:this.createImgData).bind(this)}},r}(),featureSupport=function(){var t={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),t}(),filtersFactory=function(){var t={};return t.createFilter=function(t){var e=createNS("filter");return e.setAttribute("id",t),e.setAttribute("filterUnits","objectBoundingBox"),e.setAttribute("x","0%"),e.setAttribute("y","0%"),e.setAttribute("width","100%"),e.setAttribute("height","100%"),e},t.createAlphaToLuminanceFilter=function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t},t}(),assetLoader=function(){function a(t){return t.response&&"object"==typeof t.response?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):void 0}return{load:function(t,e,i){var r,s=new XMLHttpRequest;s.open("GET",t,!0);try{s.responseType="json"}catch(t){}s.send(),s.onreadystatechange=function(){if(4==s.readyState)if(200==s.status)r=a(s),e(r);else try{r=a(s),e(r)}catch(t){i&&i(t)}}}}}();function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function TextAnimatorDataProperty(t,e,i){var r={propType:!1},s=PropertyFactory.getProp,a=e.a;this.a={r:a.r?s(t,a.r,0,degToRads,i):r,rx:a.rx?s(t,a.rx,0,degToRads,i):r,ry:a.ry?s(t,a.ry,0,degToRads,i):r,sk:a.sk?s(t,a.sk,0,degToRads,i):r,sa:a.sa?s(t,a.sa,0,degToRads,i):r,s:a.s?s(t,a.s,1,.01,i):r,a:a.a?s(t,a.a,1,0,i):r,o:a.o?s(t,a.o,0,.01,i):r,p:a.p?s(t,a.p,1,0,i):r,sw:a.sw?s(t,a.sw,0,0,i):r,sc:a.sc?s(t,a.sc,1,0,i):r,fc:a.fc?s(t,a.fc,1,0,i):r,fh:a.fh?s(t,a.fh,0,0,i):r,fs:a.fs?s(t,a.fs,0,.01,i):r,fb:a.fb?s(t,a.fb,0,.01,i):r,t:a.t?s(t,a.t,0,0,i):r},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function LetterProps(t,e,i,r,s,a){this.o=t,this.sw=e,this.sc=i,this.fc=r,this.m=s,this.p=a,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!r,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextAnimatorProperty.prototype.searchProperties=function(){for(var t,e=this._textData.a.length,i=PropertyFactory.getProp,r=0;r<e;r+=1)t=this._textData.a[r],this._animatorsData[r]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:this._textData.p.r,m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,B){if(this.lettersChangedFlag=B,this._mdf||this._isFirstFrame||B||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var e,i,r,L,s,a,n,o,h,G,l,z,p,m=this._moreOptions.alignment.v,f=this._animatorsData,c=this._textData,d=this.mHelper,N=this._renderType,O=this.renderedLetters.length,u=(this.data,t.l);if(this._hasMaskedPath){if(p=this._pathData.m,!this._pathData.n||this._pathData._mdf){for(var y,g=p.v,v={tLength:0,segments:[]},b=(g=this._pathData.r?g.reverse():g)._length-1,E=l=0;E<b;E+=1)y=bez.buildBezierData(g.v[E],g.v[E+1],[g.o[E][0]-g.v[E][0],g.o[E][1]-g.v[E][1]],[g.i[E+1][0]-g.v[E+1][0],g.i[E+1][1]-g.v[E+1][1]]),v.tLength+=y.segmentLength,v.segments.push(y),l+=y.segmentLength;E=b,p.v.c&&(y=bez.buildBezierData(g.v[E],g.v[0],[g.o[E][0]-g.v[E][0],g.o[E][1]-g.v[E][1]],[g.i[0][0]-g.v[0][0],g.i[0][1]-g.v[0][1]]),v.tLength+=y.segmentLength,v.segments.push(y),l+=y.segmentLength),this._pathData.pi=v}if(v=this._pathData.pi,e=this._pathData.f.v,s=1,L=!(r=a=0),h=v.segments,e<0&&p.v.c)for(v.tLength<Math.abs(e)&&(e=-Math.abs(e)%v.tLength),s=(o=h[a=h.length-1].points).length-1;e<0;)e+=o[s].partialLength,--s<0&&(s=(o=h[--a].points).length-1);n=(o=h[a].points)[s-1],G=(i=o[s]).partialLength}b=u.length;var x,H,P,S,j,q,_,A,C,T,k,W,Y,X,K,M,D=0,$=0,Z=1.2*t.finalSize*.714,J=!0,F=f.length,U=-1,Q=e,tt=a,et=s,it=-1,rt="",st=this.defaultPropsArray;if(2===t.j||1===t.j){var w=0,at=0,nt=2===t.j?-.5:-1,I=0,ot=!0;for(E=0;E<b;E+=1)if(u[E].n){for(w&&(w+=at);I<E;)u[I].animatorJustifyOffset=w,I+=1;ot=!(w=0)}else{for(R=0;R<F;R+=1)(x=f[R].a).t.propType&&(ot&&2===t.j&&(at+=x.t.v*nt),(P=f[R].s.getMult(u[E].anIndexes[R],c.a[R].s.totalChars)).length?w+=x.t.v*P[0]*nt:w+=x.t.v*P*nt);ot=!1}for(w&&(w+=at);I<E;)u[I].animatorJustifyOffset=w,I+=1}for(E=0;E<b;E+=1){if(d.reset(),_=1,u[E].n)$=$+t.yOffset+(J?1:0),e=Q,J=!1,D=0,this._hasMaskedPath&&(n=(o=h[a=tt].points)[(s=et)-1],G=(i=o[s]).partialLength,r=0),K=W=X=rt="",st=this.defaultPropsArray;else{if(this._hasMaskedPath){if(it!==u[E].line){switch(t.j){case 1:e+=l-t.lineWidths[u[E].line];break;case 2:e+=(l-t.lineWidths[u[E].line])/2}it=u[E].line}U!==u[E].ind&&(u[U]&&(e+=u[U].extra),e+=u[E].an/2,U=u[E].ind),e+=m[0]*u[E].an/200;for(var V=0,R=0;R<F;R+=1)(x=f[R].a).p.propType&&((P=f[R].s.getMult(u[E].anIndexes[R],c.a[R].s.totalChars)).length?V+=x.p.v[0]*P[0]:V+=x.p.v[0]*P),x.a.propType&&((P=f[R].s.getMult(u[E].anIndexes[R],c.a[R].s.totalChars)).length?V+=x.a.v[0]*P[0]:V+=x.a.v[0]*P);for(L=!0;L;)e+V<=r+G||!o?(z=(e+V-r)/i.partialLength,j=n.point[0]+(i.point[0]-n.point[0])*z,q=n.point[1]+(i.point[1]-n.point[1])*z,d.translate(-m[0]*u[E].an/200,-m[1]*Z/100),L=!1):o&&(r+=i.partialLength,(s+=1)>=o.length&&(s=0,o=h[a+=1]?h[a].points:p.v.c?h[a=s=0].points:(r-=i.partialLength,null)),o&&(n=i,G=(i=o[s]).partialLength));S=u[E].an/2-u[E].add,d.translate(-S,0,0)}else S=u[E].an/2-u[E].add,d.translate(-S,0,0),d.translate(-m[0]*u[E].an/200,-m[1]*Z/100,0);for(u[E].l,R=0;R<F;R+=1)(x=f[R].a).t.propType&&(P=f[R].s.getMult(u[E].anIndexes[R],c.a[R].s.totalChars),0===D&&0===t.j||(this._hasMaskedPath?P.length?e+=x.t.v*P[0]:e+=x.t.v*P:P.length?D+=x.t.v*P[0]:D+=x.t.v*P));for(u[E].l,t.strokeWidthAnim&&(C=t.sw||0),t.strokeColorAnim&&(A=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(T=[t.fc[0],t.fc[1],t.fc[2]]),R=0;R<F;R+=1)(x=f[R].a).a.propType&&((P=f[R].s.getMult(u[E].anIndexes[R],c.a[R].s.totalChars)).length?d.translate(-x.a.v[0]*P[0],-x.a.v[1]*P[1],x.a.v[2]*P[2]):d.translate(-x.a.v[0]*P,-x.a.v[1]*P,x.a.v[2]*P));for(R=0;R<F;R+=1)(x=f[R].a).s.propType&&((P=f[R].s.getMult(u[E].anIndexes[R],c.a[R].s.totalChars)).length?d.scale(1+(x.s.v[0]-1)*P[0],1+(x.s.v[1]-1)*P[1],1):d.scale(1+(x.s.v[0]-1)*P,1+(x.s.v[1]-1)*P,1));for(R=0;R<F;R+=1){if(x=f[R].a,P=f[R].s.getMult(u[E].anIndexes[R],c.a[R].s.totalChars),x.sk.propType&&(P.length?d.skewFromAxis(-x.sk.v*P[0],x.sa.v*P[1]):d.skewFromAxis(-x.sk.v*P,x.sa.v*P)),x.r.propType&&(P.length?d.rotateZ(-x.r.v*P[2]):d.rotateZ(-x.r.v*P)),x.ry.propType&&(P.length?d.rotateY(x.ry.v*P[1]):d.rotateY(x.ry.v*P)),x.rx.propType&&(P.length?d.rotateX(x.rx.v*P[0]):d.rotateX(x.rx.v*P)),x.o.propType&&(P.length?_+=(x.o.v*P[0]-_)*P[0]:_+=(x.o.v*P-_)*P),t.strokeWidthAnim&&x.sw.propType&&(P.length?C+=x.sw.v*P[0]:C+=x.sw.v*P),t.strokeColorAnim&&x.sc.propType)for(k=0;k<3;k+=1)P.length?A[k]=A[k]+(x.sc.v[k]-A[k])*P[0]:A[k]=A[k]+(x.sc.v[k]-A[k])*P;if(t.fillColorAnim&&t.fc){if(x.fc.propType)for(k=0;k<3;k+=1)P.length?T[k]=T[k]+(x.fc.v[k]-T[k])*P[0]:T[k]=T[k]+(x.fc.v[k]-T[k])*P;x.fh.propType&&(T=P.length?addHueToRGB(T,x.fh.v*P[0]):addHueToRGB(T,x.fh.v*P)),x.fs.propType&&(T=P.length?addSaturationToRGB(T,x.fs.v*P[0]):addSaturationToRGB(T,x.fs.v*P)),x.fb.propType&&(T=P.length?addBrightnessToRGB(T,x.fb.v*P[0]):addBrightnessToRGB(T,x.fb.v*P))}}for(R=0;R<F;R+=1)(x=f[R].a).p.propType&&(P=f[R].s.getMult(u[E].anIndexes[R],c.a[R].s.totalChars),this._hasMaskedPath?P.length?d.translate(0,x.p.v[1]*P[0],-x.p.v[2]*P[1]):d.translate(0,x.p.v[1]*P,-x.p.v[2]*P):P.length?d.translate(x.p.v[0]*P[0],x.p.v[1]*P[1],-x.p.v[2]*P[2]):d.translate(x.p.v[0]*P,x.p.v[1]*P,-x.p.v[2]*P));if(t.strokeWidthAnim&&(W=C<0?0:C),t.strokeColorAnim&&(Y="rgb("+Math.round(255*A[0])+","+Math.round(255*A[1])+","+Math.round(255*A[2])+")"),t.fillColorAnim&&t.fc&&(X="rgb("+Math.round(255*T[0])+","+Math.round(255*T[1])+","+Math.round(255*T[2])+")"),this._hasMaskedPath)d.translate(0,-t.ls),d.translate(0,m[1]*Z/100+$,0),c.p.p&&(M=(i.point[1]-n.point[1])/(i.point[0]-n.point[0]),M=180*Math.atan(M)/Math.PI,i.point[0]<n.point[0]&&(M+=180),d.rotate(-M*Math.PI/180)),d.translate(j,q,0),e-=m[0]*u[E].an/200,u[E+1]&&U!==u[E+1].ind&&(e=(e+=u[E].an/2)+t.tr/1e3*t.finalSize);else{switch(d.translate(D,$,0),t.ps&&d.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:d.translate(u[E].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[u[E].line]),0,0);break;case 2:d.translate(u[E].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[u[E].line])/2,0,0)}d.translate(0,-t.ls),d.translate(S,0,0),d.translate(m[0]*u[E].an/200,m[1]*Z/100,0),D+=u[E].l+t.tr/1e3*t.finalSize}"html"===N?rt=d.toCSS():"svg"===N?rt=d.to2dCSS():st=[d.props[0],d.props[1],d.props[2],d.props[3],d.props[4],d.props[5],d.props[6],d.props[7],d.props[8],d.props[9],d.props[10],d.props[11],d.props[12],d.props[13],d.props[14],d.props[15]],K=_}O<=E?(H=new LetterProps(K,W,Y,X,rt,st),this.renderedLetters.push(H),O+=1,this.lettersChangedFlag=!0):(H=this.renderedLetters[E],this.lettersChangedFlag=H.update(K,W,Y,X,rt,st)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),LetterProps.prototype.update=function(t,e,i,r,s,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1;var n=this._mdf.p=!1;return this.o!==t&&(this.o=t,n=this._mdf.o=!0),this.sw!==e&&(this.sw=e,n=this._mdf.sw=!0),this.sc!==i&&(this.sc=i,n=this._mdf.sc=!0),this.fc!==r&&(this.fc=r,n=this._mdf.fc=!0),this.m!==s&&(this.m=s,n=this._mdf.m=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,n=this._mdf.p=!0),n},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=1<this.data.d.k.length,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{this.lock=!0,this._mdf=!1;for(var r=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s,a=0;a<r;a+=1)s=i!==this.keysIndex?this.effectsSequence[a](s,s.t):this.effectsSequence[a](this.currentData,s.t);e!==s&&this.setCurrentData(s),this.pv=this.v=this.currentData,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,r=t.length;i<=r-1&&(t[i].s,!(i===r-1||t[i+1].t>e));)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i=FontManager.getCombinedCharacterCodes(),r=[],s=0,a=t.length;s<a;)e=t.charCodeAt(s),-1!==i.indexOf(e)?r[r.length-1]+=t.charAt(s):55296<=e&&e<=56319&&56320<=(e=t.charCodeAt(s+1))&&e<=57343?(r.push(t.substr(s,2)),++s):r.push(t.charAt(s)),s+=1;return r},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,r,s=this.elem.globalData.fontManager,a=this.data,n=[],o=0,h=a.m.g,l=0,p=0,m=0,f=[],c=0,d=0,u=s.getFontByName(t.f),y=0,g=u.fStyle?u.fStyle.split(" "):[],v="normal",b="normal";for(A=g.length,T=0;T<A;T+=1)switch(g[T].toLowerCase()){case"italic":b="italic";break;case"bold":v="700";break;case"black":v="900";break;case"medium":v="500";break;case"regular":case"normal":v="400";break;case"light":case"thin":v="200"}t.fWeight=u.fWeight||v,t.fStyle=b,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),A=t.finalText.length,t.finalLineHeight=t.lh;var E,x=t.tr/1e3*t.finalSize;if(t.sz)for(var P=!0,B=t.sz[0],L=t.sz[1];P;){for(var S,_=0,c=0,A=(S=this.buildFinalText(t.t)).length,x=t.tr/1e3*t.finalSize,C=-1,T=0;T<A;T+=1)E=S[T].charCodeAt(0),e=!1," "===S[T]?C=T:13!==E&&3!==E||(e=!(c=0),_+=t.finalLineHeight||1.2*t.finalSize),c=B<c+(y=s.chars?(r=s.getCharData(S[T],u.fStyle,u.fFamily),e?0:r.w*t.finalSize/100):s.measureText(S[T],t.f,t.finalSize))&&" "!==S[T]?(-1===C?A+=1:T=C,_+=t.finalLineHeight||1.2*t.finalSize,S.splice(T,C===T?1:0,"\r"),C=-1,0):c+y+x;_+=u.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&L<_?(--t.finalSize,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=S,A=t.finalText.length,P=!1)}c=-x;var k,y=0,M=0;for(T=0;T<A;T+=1)if(e=!1,13===(E=(k=t.finalText[T]).charCodeAt(0))||3===E?(M=0,f.push(c),d=d<c?c:d,c=-2*x,e=!(i=""),m+=1):i=k,y=s.chars?(r=s.getCharData(k,u.fStyle,s.getFontByName(t.f).fFamily),e?0:r.w*t.finalSize/100):s.measureText(i,t.f,t.finalSize)," "===k?M+=y+x:(c+=y+x+M,M=0),n.push({l:y,an:y,add:l,n:e,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==h){if(l+=y,""===i||" "===i||T===A-1){for(""!==i&&" "!==i||(l-=y);p<=T;)n[p].an=l,n[p].ind=o,n[p].extra=y,p+=1;o+=1,l=0}}else if(3==h){if(l+=y,""===i||T===A-1){for(""===i&&(l-=y);p<=T;)n[p].an=l,n[p].ind=o,n[p].extra=y,p+=1;l=0,o+=1}}else n[o].ind=o,n[o].extra=0,o+=1;if(t.l=n,d=d<c?c:d,f.push(c),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=d,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=f;for(var D,F,w,I,G=a.a,z=G.length,V=[],R=0;R<z;R+=1){for((D=G[R]).a.sc&&(t.strokeColorAnim=!0),D.a.sw&&(t.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(t.fillColorAnim=!0),w=D.s.b,T=I=0;T<A;T+=1)(F=n[T]).anIndexes[R]=I,(1==w&&""!==F.val||2==w&&""!==F.val&&" "!==F.val||3==w&&(F.n||" "==F.val||T==A-1)||4==w&&(F.n||T==A-1))&&(1===D.s.rn&&V.push(I),I+=1);a.a[R].s.totalChars=I;var N,O=-1;if(1===D.s.rn)for(T=0;T<A;T+=1)O!=(F=n[T]).anIndexes[R]&&(O=F.anIndexes[R],N=V.splice(Math.floor(Math.random()*V.length),1)[0]),F.anIndexes[R]=N}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=u.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s),i=this.copyData(i,t);this.data.d.k[e].s=i,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){t=this.data.d.k[t].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var o=Math.max,h=Math.min,l=Math.floor;function r(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),"e"in e?this.e=PropertyFactory.getProp(t,e.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(t){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var e,i=0,r=0,s=1,a=1,i=(0<this.ne.v?i=this.ne.v/100:r=-this.ne.v/100,0<this.xe.v?s=1-this.xe.v/100:a=1+this.xe.v/100,BezierFactory.getBezierEasing(i,r,s,a).get),r=0,s=this.finalS,a=this.finalE,n=this.data.sh;return(r=2===n?i(r=a===s?a<=t?1:0:o(0,h(.5/(a-s)+(t-s)/(a-s),1))):3===n?i(r=a===s?a<=t?0:1:1-o(0,h(.5/(a-s)+(t-s)/(a-s),1))):4===n?(a===s?r=0:(r=o(0,h(.5/(a-s)+(t-s)/(a-s),1)))<.5?r*=2:r=1-2*(r-.5),i(r)):i(r=5===n?a===s?0:(e=-(i=a-s)/2+(t=h(o(0,t+.5-s),a-s)),i=i/2,Math.sqrt(1-e*e/(i*i))):6===n?a===s?0:(t=h(o(0,t+.5-s),a-s),(1+Math.cos(Math.PI+2*Math.PI*t/(a-s)))/2):t>=l(s)?o(0,h(t-s<0?h(a,1)-(s-t):a-t,1)):r))*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 t=2===this.data.r?1:100/this.data.totalChars,e=this.o.v/t,i=this.s.v/t+e,t=this.e.v/t+e;t<i&&(e=i,i=t,t=e),this.finalS=i,this.finalE=t}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(t,e,i){return new r(t,e)}}}(),pool_factory=function(t,e,i,r){var s=0,a=t,n=createSizedArray(a);function o(){var t=s?n[--s]:e();return t}return{newElement:o,release:function(t){s===a&&(n=pooling.double(n),a*=2);i&&i(t);n[s]=t,s+=1}}},pooling={double:function(t){return t.concat(createSizedArray(t.length))}},point_pool=pool_factory(8,function(){return createTypedArray("float32",2)}),shape_pool=function(){var s=pool_factory(4,function(){return new ShapePath},function(t){for(var e=t._length,i=0;i<e;i+=1)point_pool.release(t.v[i]),point_pool.release(t.i[i]),point_pool.release(t.o[i]),t.v[i]=null,t.i[i]=null,t.o[i]=null;t._length=0,t.c=!1});return s.clone=function(t){var e,i=s.newElement(),r=void 0===t._length?t.v.length:t._length;for(i.setLength(r),i.c=t.c,e=0;e<r;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},s}(),shapeCollection_pool=function(){var t={newShapeCollection:function(){var t;t=r?a[--r]:new ShapeCollection;return t},release:function(t){var e,i=t._length;for(e=0;e<i;e+=1)shape_pool.release(t.shapes[e]);t._length=0,r===s&&(a=pooling.double(a),s*=2);a[r]=t,r+=1}},r=0,s=4,a=createSizedArray(s);return t}(),segments_length_pool=pool_factory(8,function(){return{lengths:[],totalLength:0}},function(t){for(var e=t.lengths.length,i=0;i<e;i+=1)bezier_length_pool.release(t.lengths[i]);t.lengths.length=0}),bezier_length_pool=pool_factory(8,function(){return{addedLength:0,percents:createTypedArray("float32",defaultCurveSegments),lengths:createTypedArray("float32",defaultCurveSegments)}});function BaseRenderer(){}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var t="",i=(e&&e.title&&(i=createNS("title"),r=createElementID(),i.setAttribute("id",r),i.textContent=e.title,this.svgElement.appendChild(i),t+=r),e&&e.description&&(i=createNS("desc"),r=createElementID(),i.setAttribute("id",r),i.textContent=e.description,this.svgElement.appendChild(i),t+=" "+r),t&&this.svgElement.setAttribute("aria-labelledby",t),createNS("defs")),r=(this.svgElement.appendChild(i),createNS("g"));this.svgElement.appendChild(r),this.layerElement=r,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!e||!1!==e.hideOnTransparent,viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"}},this.globalData={_mdf:!1,frameNum:-1,defs:i,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=ne
vendor: 4,336 bytes, line 12
12w Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!e||!1!==e.hideOnTransparent,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function MaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r=this.globalData.defs,s=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(s),this.solidPath="";for(var a,n,o,h,l,p=this.masksProperties,m=0,f=[],c=createElementID(),d="clipPath",u="clip-path",y=0;y<s;y++)if(("a"!==p[y].mode&&"n"!==p[y].mode||p[y].inv||100!==p[y].o.k||p[y].o.x)&&(u=d="mask"),"s"!=p[y].mode&&"i"!=p[y].mode||0!==m?n=null:((n=createNS("rect")).setAttribute("fill","#ffffff"),n.setAttribute("width",this.element.comp.data.w||0),n.setAttribute("height",this.element.comp.data.h||0),f.push(n)),a=createNS("path"),"n"==p[y].mode)this.viewData[y]={op:PropertyFactory.getProp(this.element,p[y].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[y],3),elem:a,lastPath:""},r.appendChild(a);else{if(m+=1,a.setAttribute("fill","s"===p[y].mode?"#000000":"#ffffff"),a.setAttribute("clip-rule","nonzero"),0!==p[y].x.k?(u=d="mask",h=PropertyFactory.getProp(this.element,p[y].x,0,null,this.element),l=createElementID(),(E=createNS("filter")).setAttribute("id",l),(o=createNS("feMorphology")).setAttribute("operator","erode"),o.setAttribute("in","SourceGraphic"),o.setAttribute("radius","0"),E.appendChild(o),r.appendChild(E),a.setAttribute("stroke","s"===p[y].mode?"#000000":"#ffffff")):h=o=null,this.storedData[y]={elem:a,x:h,expan:o,lastPath:"",lastOperator:"",filterId:l,lastRadius:0},"i"==p[y].mode){for(var g=f.length,v=createNS("g"),b=0;b<g;b+=1)v.appendChild(f[b]);var E=createNS("mask");E.setAttribute("mask-type","alpha"),E.setAttribute("id",c+"_"+m),E.appendChild(a),r.appendChild(E),v.setAttribute("mask","url("+locationHref+"#"+c+"_"+m+")"),f.length=0,f.push(v)}else f.push(a);p[y].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[y]={elem:a,lastPath:"",op:PropertyFactory.getProp(this.element,p[y].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[y],3),invRect:n},this.viewData[y].prop.k||this.drawPath(p[y],this.viewData[y].prop.v,this.viewData[y])}for(this.maskElement=createNS(d),s=f.length,y=0;y<s;y+=1)this.maskElement.appendChild(f[y]);0<m&&(this.maskElement.setAttribute("id",c),this.element.maskedElement.setAttribute(u,"url("+locationHref+"#"+c+")"),r.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,s=t.length;r<s;){if(t[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGTransformData(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}function SVGStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}
vendor: 4,517 bytes, line 12
12function SVGFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i}function SVGGradientFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function SVGGradientStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}BaseRenderer.prototype.checkLayers=function(t){var e,i,r=this.layers.length;for(this.completeLayers=!0,e=r-1;0<=e;e--)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: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)}return this.createNull(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.buildAllItems=function(){for(var t=this.layers.length,e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;for(var e,i=t.length,r=this.layers.length,s=0;s<i;s+=1)for(e=0;e<r;){if(this.layers[e].id==t[s].id){this.layers[e]=t[s];break}e+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,i){for(var r=this.elements,s=this.layers,a=0,n=s.length;a<n;)s[a].ind==e&&(r[a]&&!0!==r[a]?(i.push(r[a]),r[a].setAsParent(),void 0!==s[a].parent?this.buildElementParenting(t,s[a].parent,i):t.setHierarchy(i)):(this.buildItem(a),this.addPendingElement(t))),a+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){for(var e,i=t.length,r=0;r<i;r+=1)t[r].xt&&((e=this.createComp(t[r])).initExpressions(),this.globalData.projectInterface.registerComposition(e))},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},extendPrototype([BaseRenderer],SVGRenderer),SVGRenderer.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRenderer.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRenderer.prototype.createText=function(t){return new SVGTextElement(t,this.globalData,this)},SVGRenderer.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},SVGRenderer.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRenderer.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,
120,0)"),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs,i=(this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t,createNS("clipPath")),r=createNS("rect"),s=(r.setAttribute("width",t.w),r.setAttribute("height",t.h),r.setAttribute("x",0),r.setAttribute("y",0),createElementID());i.setAttribute("id",s),i.appendChild(r),this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+s+")"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRenderer.prototype.destroy=function(){this.animationItem.wrapper.innerText="",this.layerElement=null,this.globalData.defs=null;for(var t=this.layers?this.layers.length:0,e=0;e<t;e++)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRenderer.prototype.updateContainerSize=function(){},SVGRenderer.prototype.buildItem=function(t){var e,i=this.elements;i[t]||99==this.layers[t].ty||(i[t]=!0,e=this.createItem(this.layers[t]),i[t]=e,expressionsPlugin&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(e),e.initExpressions()),this.appendElementInPos(e,t),this.layers[t].tt&&(this.elements[t-1]&&!0!==this.elements[t-1]?e.setMatte(i[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(e))))},SVGRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){t.setMatte(this.elements[e-1].layerId);break}e+=1}}},SVGRenderer.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;0<=e;e--)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRenderer.prototype.appendElementInPos=function(t,e){t=t.getBaseElement();if(t){for(var i,r=0;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)}},SVGRenderer.prototype.hide=function(){this.layerElement.style.display="none"},SVGRenderer.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseRenderer],CanvasRenderer),CanvasRenderer.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRenderer.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRenderer.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},CanvasRenderer.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRenderer.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRenderer.prototype.ctxTransform=function(t){var e;1===t[0]&&0===t[1]&&0===t[4]&&1===t[5]&&0===t[12]&&0===t[13]||(this.renderConfig.clearCanvas?(this.transformMat.cloneFromProps(t),e=this.contextData.cTr.props,this.transformMat.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props),e=this.contextData.cTr.props,this.canvasContext.setTransform(e[0],e[1],e[4],e[5],e[12],e[13])):this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13]))},CanvasRenderer.prototype.ctxOpacity=function(t){this.renderConfig.clearCanvas?(this.contextData.cO*=t<0?0:t,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)):(this.canvasContext.globalAlpha*=t<0?0:t,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRenderer.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore(
12)},CanvasRenderer.prototype.save=function(t){if(this.renderConfig.clearCanvas){t&&this.canvasContext.save();var e=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();for(var i=this.contextData.saved[this.contextData.cArrPos],r=0;r<16;r+=1)i[r]=e[r];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRenderer.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),--this.contextData.cArrPos;for(var e=this.contextData.saved[this.contextData.cArrPos],i=this.contextData.cTr.props,r=0;r<16;r+=1)i[r]=e[r];this.canvasContext.setTransform(e[0],e[1],e[4],e[5],e[12],e[13]),e=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=e,this.globalData.currentGlobalAlpha!==e&&(this.canvasContext.globalAlpha=e,this.globalData.currentGlobalAlpha=e)}else this.canvasContext.restore()},CanvasRenderer.prototype.configAnimation=function(t){this.animationItem.wrapper?(this.animationItem.container=createTag("canvas"),this.animationItem.container.style.width="100%",this.animationItem.container.style.height="100%",this.animationItem.container.style.transformOrigin=this.animationItem.container.style.mozTransformOrigin=this.animationItem.container.style.webkitTransformOrigin=this.animationItem.container.style["-webkit-transform"]="0px 0px 0px",this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)):this.canvasContext=this.renderConfig.context,this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,(this.globalData.renderer=this).globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRenderer.prototype.updateContainerSize=function(){var t,e,i,r,s,a,n;this.reset(),this.animationItem.wrapper&&this.animationItem.container?(t=this.animationItem.wrapper.offsetWidth,e=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",t*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",e*this.renderConfig.dpr)):(t=this.canvasContext.canvas.width*this.renderConfig.dpr,e=this.canvasContext.canvas.height*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")?(i=(s=this.renderConfig.preserveAspectRatio.split(" "))[1]||"meet",r=(s=s[0]||"xMidYMid").substr(0,4),s=s.substr(4),(a=t/e)<(n=this.transformCanvas.w/this.transformCanvas.h)&&"meet"===i||n<a&&"slice"===i?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=e/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===r&&(n<a&&"meet"===i||a<n&&"slice"===i)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===r&&(n<a&&"meet"===i||a<n&&"slice"===i)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===s&&(a<n&&"meet"===i||n<a&&"slice"===i)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===s&&(a<n&&"meet"===i||n<a&&"slice"===i)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))*this.renderConfig.dpr:0):("none"==this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr)):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.t
vendor: 25,559 bytes, line 12
12y=0),this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRenderer.prototype.destroy=function(){this.renderConfig.clearCanvas&&(this.animationItem.wrapper.innerText="");for(var t=(this.layers?this.layers.length:0)-1;0<=t;--t)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){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 i,r=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=0;i<r;i++)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=r-1;0<=i;--i)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRenderer.prototype.buildItem=function(t){var e,i=this.elements;i[t]||99==this.layers[t].ty||(e=this.createItem(this.layers[t],this,this.globalData),(i[t]=e).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){t=t.getBaseElement();if(t){var i=this.layers[e];if(i.ddd&&this.supports3d)this.addTo3dContainer(t,e);else if(this.threeDElements)this.addTo3dContainer(t,e);else{for(var r,s,a=0;a<e;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a],r=(this.layers[a].ddd?this.getThreeDContainerByPos(a):s.getBaseElement())||r),a+=1;r?i.ddd&&this.supports3d||this.layerElement.insertBefore(t,r):i.ddd&&this.supports3d||this.layerElement.appendChild(t)}}},HybridRenderer.prototype.createShape=function(t){return new(this.supports3d?HShapeElement:SVGShapeElement)(t,this.globalData,this)},HybridRenderer.prototype.createText=function(t){return new(this.supports3d?HTextElement:SVGTextElement)(t,this.globalData,this)},HybridRenderer.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRenderer.prototype.createImage=function(t){return new(this.supports3d?HImageElement:IImageElement)(t,this.globalData,this)},HybridRenderer.prototype.createComp=function(t){return new(this.supports3d?HCompElement:SVGCompElement)(t,this.globalData,this)},HybridRenderer.prototype.createSolid=function(t){return new(this.supports3d?HSolidElement:ISolidElement)(t,this.globalData,this)},HybridRenderer.prototype.createNull=SVGRenderer.prototype.createNull,HybridRenderer.prototype.getThreeDContainerByPos=function(t){for(var e=0,i=this.threeDElements.length;e<i;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}},HybridRenderer.prototype.createThreeDContainer=function(t,e){var i=createTag("div"),r=(styleDiv(i),createTag("div")),r=(styleDiv(r),"3d"===e&&(i.style.width=this.globalData.compSize.w+"px",i.style.height=this.globalData.compSize.h+"px",i.style.transformOrigin=i.style.mozTransformOrigin=i.style.webkitTransformOrigin="50% 50%",r.style.transform=r.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)"),i.appendChild(r),{container:r,perspectiveElem:i,startPos:t,endPos:t,type:e});return this.threeDElements.push(r),r},HybridRenderer.prototype.build3dContainers=function(){for(var t,e=this.layers.length,i="",r=0;r<e;r+=1)this.layers[r].ddd&&3!==this.layers[r].ty?(t="3d"!==i?this.createThreeDContainer(r,i="3d"):t).endPos=Math.max(t.endPos,r):(t="2d"!==i?this.createThreeDContainer(r,i="2d"):t).endPos=Math.max(t.endPos,r);for(r=(e=this.threeDElements.length)-1;0<=r;r--)this.resizerElem.appendChild(this.threeDElements[r].perspectiveElem)},HybridRenderer.prototype.addTo3dContainer=function(t,e){for(var i=0,r=this.threeDElements.length;i<r;){if(e<=this.threeDElements[i].endPos){for(var s,a=this.threeDElements[i].startPos;a<e;)this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a].getBaseElement()),a+=1;s?this.threeDElements[i].container.insertBefore(t,s):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRenderer.prototype.configAnimation=function(t){var e=createTag("div"),i=this.animationItem.wrapper,i=(e.style.width=t.w+"px",e.style.height=t.h+"px",styleDiv(this.resizerElem=e),e.style.transformStyle=e.style.webkitTransformStyle=e.style.mozTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),i.appendChild(e),e.style.overflow="hidden",createNS("svg")),e=(i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i),createNS("defs"));i.appendChild(e),this.data=t,this.setupGlobalData(t,i),this.globalData.defs=e,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRenderer.prototype.destroy=function(){this.animationItem.wrapper.innerText="",this.animationItem.container=null,this.globalData.defs=null;for(var t=this.layers?this.layers.length:0,e=0;e<t;e++)this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRenderer.prototype.updateContainerSize=function(){var t,e,i,r=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,r=r/s<this.globalData.compSize.w/this.globalData.compSize.h?(t=r/this.globalData.compSize.w,e=r/this.globalData.compSize.w,i=0,(s-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,i=(r-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,0);this.resizerElem.style.transform=this.resizerElem.style.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+r+",0,1)"},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 for(var t=this.globalData.compSize.w,e=this.globalData.compSize.h,i=this.threeDElements.length,r=0;r<i;r+=1)this.threeDElements[r].perspectiveElem.style.perspective=this.threeDElements[r].perspectiveElem.style.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(e,2))+"px"},HybridRenderer.prototype.searchExtraCompositions=function(t){for(var e,i=t.length,r=createTag("div"),s=0;s<i;s+=1)t[s].xt&&((e=this.createComp(t[s],r,this.globalData.comp,null)).initExpressions(),this.globalData.projectInterface.registerComposition(e))},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){for(var e,i=this.element.finalTransform.mat,r=this.masksProperties.length,s=0;s<r;s++)(this.viewData[s].prop._mdf||t)&&this.drawPath(this.masksProperties[s],this.viewData[s].prop.v,this.viewData[s]),(this.viewData[s].op._mdf||t)&&this.viewData[s].elem.setAttribute("fill-opacity",this.viewData[s].op.v),"n"!==this.masksProperties[s].mode&&(this.viewData[s].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[s].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[s].x&&(this.storedData[s].x._mdf||t)&&(e=this.storedData[s].expan,this.storedData[s].x.v<0?("erode"!==this.storedData[s].lastOperator&&(this.storedData[s].lastOperator="erode",this.storedData[s].elem.setAttribute("filter","url("+locationHref+"#"+this.storedData[s].filterId+")")),e.setAttribute("radius",-this.storedData[s].x.v)):("dilate"!==this.storedData[s].lastOperator&&(this.storedData[s].lastOperator="dilate",this.storedData[s].elem.setAttribute("filter",null)),this.storedData[s].elem.setAttribute("stroke-width",2*this.storedData[s].x.v))))},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return(t+=" h"+this.globalData.compSize.w)+(" v"+this.globalData.compSize.h)+(" h-"+this.globalData.compSize.w)+(" v-"+this.globalData.compSize.h+" ")},MaskElement.prototype.drawPath=function(t,e,i){for(var r,s=" M"+e.v[0][0]+","+e.v[0][1],a=e._length,n=1;n<a;n+=1)s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[n][0]+","+e.i[n][1]+" "+e.v[n][0]+","+e.v[n][1];e.c&&1<a&&(s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==s&&(r="",i.elem&&(e.c&&(r=t.inv?this.solidPath+s:s),i.elem.setAttribute("d",r)),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){for(var i=this.dynamicProperties.length,r=0;r<i;r+=1)(e||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<r;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<r;i+=1)t=this.hierarchy[i].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){for(var e=[],i=(e.push(this.finalTransform),!0),r=this.comp;i;)r.finalTransform?(r.data.hasMask&&e.splice(0,0,r.finalTransform),r=r.comp):i=!1;for(var s,a=e.length,n=0;n<a;n+=1)s=e[n].mat.applyToPointArray(0,0,0),t=[t[0]-s[0],t[1]-s[1],0];return t},mHelper:new Matrix},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){for(var t=this.renderableComponents.length,e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,i){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){for(var i,r=createElementID(),s=createNS(1===e.t?"linearGradient":"radialGradient"),a=(s.setAttribute("id",r),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse"),[]),n=4*e.g.p,o=0;o<n;o+=4)i=createNS("stop"),s.appendChild(i),a.push(i);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+locationHref+"#"+r+")"),this.gf=s,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){for(var i,r,s=createNS("mask"),a=createNS("path"),n=(s.appendChild(a),createElementID()),o=createElementID(),h=(s.setAttribute("id",o),createNS(1===t.t?"linearGradient":"radialGradient")),l=(h.setAttribute("id",n),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),r=(t.g.k.k[0].s||t.g.k.k).length,this.stops),p=4*t.g.p;p<r;p+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(i),l.push(i);a.setAttribute("gf"===t.ty?"fill":"stroke","url("+locationHref+"#"+n+")"),this.of=h,this.ms=s,this.ost=l,this.maskId=o,e.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var SVGElementsRenderer=function(){var y=new Matrix,g=new Matrix;function e(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function i(t,e,i){for(var r,s,a,n,o,h,l,p,m,f,c=e.styles.length,d=e.lvl,u=0;u<c;u+=1){if(n=e.sh._mdf||i,e.styles[u].lvl<d){for(l=g.reset(),m=d-e.styles[u].lvl,f=e.transformers.length-1;!n&&0<m;)n=e.transformers[f].mProps._mdf||n,m--,f--;if(n)for(m=d-e.styles[u].lvl,f=e.transformers.length-1;0<m;)p=e.transformers[f].mProps.v.props,l.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),m--,f--}else l=y;if(s=(h=e.sh.paths)._length,n){for(a="",r=0;r<s;r+=1)(o=h.shapes[r])&&o._length&&(a+=buildShapeString(o,o._length,o.c,l));e.caches[u]=a}else a=e.caches[u];e.styles[u].d+=!0===t.hd?"":a,e.styles[u]._mdf=n||e.styles[u]._mdf}}function r(t,e,i){var r=e.style;(e.c._mdf||i)&&r.pElem.setAttribute("fill","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||i)&&r.pElem.setAttribute("fill-opacity",e.o.v)}function s(t,e,i){a(t,e,i),n(0,e,i)}function a(t,e,i){var r,s,a,n,o=e.gf,h=e.g._hasOpacity,l=e.s.v,p=e.e.v;if((e.o._mdf||i)&&(a="gf"===t.ty?"fill-opacity":"stroke-opacity",e.style.pElem.setAttribute(a,e.o.v)),(e.s._mdf||i)&&(n="x1"==(a=1===t.t?"x1":"cx")?"y1":"cy",o.setAttribute(a,l[0]),o.setAttribute(n,l[1]),h&&!e.g._collapsable&&(e.of.setAttribute(a,l[0]),e.of.setAttribute(n,l[1]))),e.g._cmdf||i)for(var m=e.cst,f=e.g.c,c=m.length,d=0;d<c;d+=1)(r=m[d]).setAttribute("offset",f[4*d]+"%"),r.setAttribute("stop-color","rgb("+f[4*d+1]+","+f[4*d+2]+","+f[4*d+3]+")");if(h&&(e.g._omdf||i)){var u=e.g.o;for(c=(m=e.g._collapsable?e.cst:e.ost).length,d=0;d<c;d+=1)r=m[d],e.g._collapsable||r.setAttribute("offset",u[2*d]+"%"),r.setAttribute("stop-opacity",u[2*d+1])}1===t.t?(e.e._mdf||i)&&(o.setAttribute("x2",p[0]),o.setAttribute("y2",p[1]),h&&!e.g._collapsable&&(e.of.setAttribute("x2",p[0]),e.of.setAttribute("y2",p[1]))):((e.s._mdf||e.e._mdf||i)&&(s=Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)),o.setAttribute("r",s),h&&!e.g._collapsable&&e.of.setAttribute("r",s)),(e.e._mdf||e.h._mdf||e.a._mdf||i)&&(s=s||Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)),a=Math.atan2(p[1]-l[1],p[0]-l[0]),n=s*(1<=e.h.v?.99:e.h.v<=-1?-.99:e.h.v),t=Math.cos(a+e.a.v)*n+l[0],i=Math.sin(a+e.a.v)*n+l[1],o.setAttribute("fx",t),o.setAttribute("fy",i),h&&!e.g._collapsable&&(e.of.setAttribute("fx",t),e.of.setAttribute("fy",i))))}function n(t,e,i){var r=e.style,s=e.d;s&&(s._mdf||i)&&s.dashStr&&(r.pElem.setAttribute("stroke-dasharray",s.dashStr),r.pElem.setAttribute("stroke-dashoffset",s.dashoffset[0])),e.c&&(e.c._mdf||i)&&r.pElem.setAttribute("stroke","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(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))}return{createRenderFunction:function(t){t.ty;switch(t.ty){case"fl":return r;case"gf":return a;case"gs":return s;case"st":return n;case"sh":case"el":case"rc":case"sr":return i;case"tr":return e}}}}();function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVShapeData(t,e,i,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;"rc"==e.ty?s=5:"el"==e.ty?s=6:"sr"==e.ty&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,s,t);for(var a,n=i.length,o=0;o<n;o+=1)i[o].closed||(a={transforms:r.addTransformSequence(i[o].transforms),trNodes:[]},this.styledShapes.push(a),i[o].elements.push(a))}function BaseElement(){}function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function SVGBaseElement(){}function IShapeElement(){}function ITextElement(){}function ICompElement(){}function IImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ISolidElement(t,e,i){this.initElement(t,e,i)}function AudioElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGCompElement(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGTextElement(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function SVGTintFilter(t,e){this.filterManager=e;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),i.setAttribute("result","f1"),t.appendChild(i),(i=createNS("feColorMatrix")).setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result","f2"),t.appendChild(i),this.matrixFilter=i,100===e.effectElements[2].p.v&&!e.effectElements[2].p.k||(i=createNS("feMerge"),t.appendChild(i),(e=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),i.appendChild(e),(e=createNS("feMergeNode")).setAttribute("in","f2"),i.appendChild(e))}function SVGFillFilter(t,e){this.filterManager=e;e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),t.appendChild(e),this.matrixFilter=e}function SVGGaussianBlurEffect(t,e){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;e=createNS("feGaussianBlur");t.appendChild(e),this.feGaussianBlur=e}function SVGStrokeEffect(t,e){this.initialized=!1,this.filterManager=e,this.elem=t,this.paths=[]}function SVGTritoneFilter(t,e){this.filterManager=e;e=createNS("feColorMatrix"),e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.setAttribute("result","f1"),t.appendChild(e),e=createNS("feComponentTransfer"),e.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(e),this.matrixFilter=e,t=createNS("feFuncR"),t.setAttribute("type","table"),e.appendChild(t),this.feFuncR=t,t=createNS("feFuncG"),t.setAttribute("type","table"),e.appendChild(t),this.feFuncG=t,t=createNS("feFuncB");t.setAttribute("type","table"),e.appendChild(t),this.feFuncB=t}function SVGProLevelsFilter(t,e){this.filterManager=e;var e=this.filterManager.effectElements,i=createNS("feComponentTransfer");(e[10].p.k||0!==e[10].p.v||e[11].p.k||1!==e[11].p.v||e[12].p.k||1!==e[12].p.v||e[13].p.k||0!==e[13].p.v||e[14].p.k||1!==e[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",i)),(e[17].p.k||0!==e[17].p.v||e[18].p.k||1!==e[18].p.v||e[19].p.k||1!==e[19].p.v||e[20].p.k||0!==e[20].p.v||e[21].p.k||1!==e[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",i)),(e[24].p.k||0!==e[24].p.v||e[25].p.k||1!==e[25].p.v||e[26].p.k||1!==e[26].p.v||e[27].p.k||0!==e[27].p.v||e[28].p.k||1!==e[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",i)),(e[31].p.k||0!==e[31].p.v||e[32].p.k||1!==e[32].p.v||e[33].p.k||1!==e[33].p.v||e[34].p.k||0!==e[34].p.v||e[35].p.k||1!==e[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",i)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(i.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(i),i=createNS("feComponentTransfer")),(e[3].p.k||0!==e[3].p.v||e[4].p.k||1!==e[4].p.v||e[5].p.k||1!==e[5].p.v||e[6].p.k||0!==e[6].p.v||e[7].p.k||1!==e[7].p.v)&&(i.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(i),this.feFuncRComposed=this.createFeFunc("feFuncR",i),this.feFuncGComposed=this.createFeFunc("feFuncG",i),this.feFuncBComposed=this.createFeFunc("feFuncB",i))}function SVGDropShadowEffect(t,e){var i=e.container.globalData.renderConfig.filterSize,i=(t.setAttribute("x",i.x),t.setAttribute("y",i.y),t.setAttribute("width",i.width),t.setAttribute("height",i.height),this.filterManager=e,createNS("feGaussianBlur")),e=(i.setAttribute("in","SourceAlpha"),i.setAttribute("result","drop_shadow_1"),i.setAttribute("stdDeviation","0"),this.feGaussianBlur=i,t.appendChild(i),createNS("feOffset")),i=(e.setAttribute("dx","25"),e.setAttribute("dy","0"),e.setAttribute("in","drop_shadow_1"),e.setAttribute("result","drop_shadow_2"),this.feOff
12set=e,t.appendChild(e),createNS("feFlood")),e=(i.setAttribute("flood-color","#00ff00"),i.setAttribute("flood-opacity","1"),i.setAttribute("result","drop_shadow_3"),this.feFlood=i,t.appendChild(i),createNS("feComposite")),i=(e.setAttribute("in","drop_shadow_3"),e.setAttribute("in2","drop_shadow_2"),e.setAttribute("operator","in"),e.setAttribute("result","drop_shadow_4"),t.appendChild(e),createNS("feMerge"));t.appendChild(i),e=createNS("feMergeNode"),i.appendChild(e),(e=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),this.feMergeNode=e,this.feMerge=i,this.originalNodeAdded=!1,i.appendChild(e)}ShapeTransformManager.prototype={addTransformSequence:function(t){for(var e=t.length,i="_",r=0;r<e;r+=1)i+=t[r].transform.key+"_";var s=this.sequences[i];return s||(s={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=s,this.sequenceList.push(s)),s},processSequence:function(t,e){for(var i,r=0,s=t.transforms.length,a=e;r<s&&!e;){if(t.transforms[r].transform.mProps._mdf){a=!0;break}r+=1}if(a)for(t.finalTransform.reset(),r=s-1;0<=r;--r)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=a},processSequences:function(t){for(var e=this.sequenceList.length,i=0;i<e;i+=1)this.processSequence(this.sequenceList[i],t)},getNewKey:function(){return"_"+this.transform_key_count++}},CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,BaseElement.prototype={checkMasks:function(){if(this.data.hasMask)for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t,e,i,r,s,a,n,o=null;this.data.td?3==this.data.td||1==this.data.td?((e=createNS("mask")).setAttribute("id",this.layerId),e.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),e.appendChild(this.layerElement),this.globalData.defs.appendChild(o=e),featureSupport.maskType||1!=this.data.td||(e.setAttribute("mask-type","luminance"),s=createElementID(),a=filtersFactory.createFilter(s),this.globalData.defs.appendChild(a),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(t=createNS("g")).appendChild(this.layerElement),o=t,e.appendChild(t),t.setAttribute("filter","url("+locationHref+"#"+s+")"))):2==this.data.td&&((e=createNS("mask")).setAttribute("id",this.layerId),e.setAttribute("mask-type","alpha"),i=createNS("g"),e.appendChild(i),s=createElementID(),a=filtersFactory.createFilter(s),(n=createNS("feComponentTransfer")).setAttribute("in","SourceGraphic"),a.appendChild(n),(r=createNS("feFuncA")).setAttribute("type","table"),r.setAttribute("tableValues","1.0 0.0"),n.appendChild(r),this.globalData.defs.appendChild(a),(n=createNS("rect")).setAttribute("width",this.comp.data.w),n.setAttribute("height",this.comp.data.h),n.setAttribute("x","0"),n.setAttribute("y","0"),n.setAttribute("fill","#ffffff"),n.setAttribute("op
12acity","0"),i.setAttribute("filter","url("+locationHref+"#"+s+")"),i.appendChild(n),i.appendChild(this.layerElement),o=i,featureSupport.maskType||(e.setAttribute("mask-type","luminance"),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),t=createNS("g"),i.appendChild(n),t.appendChild(this.layerElement),o=t,i.appendChild(t)),this.globalData.defs.appendChild(e)):this.data.tt?(this.matteElement.appendChild(this.layerElement),o=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.ty||this.data.hd||(r=createNS("clipPath"),(s=createNS("path")).setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z"),a=createElementID(),r.setAttribute("id",a),r.appendChild(s),this.globalData.defs.appendChild(r),this.checkMasks()?((n=createNS("g")).setAttribute("clip-path","url("+locationHref+"#"+a+")"),n.appendChild(this.layerElement),this.transformedElement=n,o?o.appendChild(this.transformedElement):this.baseElement=this.transformedElement):this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+a+")")),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+locationHref+"#"+t+")")}},IShapeElement.prototype={addShapeToModifiers:function(t){for(var e=this.shapeModifiers.length,i=0;i<e;i+=1)this.shapeModifiers[i].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){for(var t=this.shapes.length,e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;0<=e;--e)this.shapeModifiers[e].processShapes(this._isFirstFrame)}},lcEnum:{1:"butt",2:"round",3:"square"},ljEnum:{1:"miter",2:"round",3:"bevel"},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;i<r;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,r=i.length;r;)if(i[--r].elem===t)return void(i[r].pos=e);i.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}},ITextElement.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){for(var i,r=e.length,s="",a=0;a<r;a+=1)i=e[a].ks.k,s+=buildShapeString(i,i.i.length,!0,t);return s},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,
vendor: 20,648 bytes, line 12
12i,r,s){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(r,s,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){this.tm._placeholder?this.renderedFrame=t/this.data.sr:((t=this.tm.v)===this.data.op&&(t=this.data.op-1),this.renderedFrame=t);var e,t=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),e=t-1;0<=e;--e)(this.completeLayers||this.elements[e])&&(this.elements[e].prepareFrame(this.renderedFrame-this.layers[e].st),this.elements[e]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){for(var t=this.layers.length,e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){for(var t=this.layers.length,e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},AudioElement.prototype.prepareFrame=function(t){this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder?this._currentTime=t/this.data.sr:(t=this.tm.v,this._currentTime=t)},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||.1<Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek()))&&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(){},extendPrototype([SVGRenderer,ICompElement,SVGBaseElement],SVGCompElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextElement),SVGTextElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextElement.prototype.buildTextContents=function(t){for(var e=0,i=t.length,r=[],s="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(r.push(s),s=""):s+=t[e],e+=1;return r.push(s),r},SVGTextElement.prototype.buildNewText=function(){var t,e,i,r=this.textProperty.currentData,s=(this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize),this.globalData.fontManager.getFontByName(r.f)),a=(s.fClass?this.layerElement.setAttribute("class",s.fClass):(this.layerElement.setAttribute("font-family",s.fFamily),t=r.fWeight,e=r.fStyle,this.layerElement.setAttribute("font-style",e),this.layerElement.setAttribute("font-weight",t)),this.layerElement.setAttribute("aria-label",r.t),r.l||[]),n=!!this.globalData.fontManager.chars,o=(b=a.length,this.mHelper),h="",l=this.data.singleShape,p=0,m=0,f=!0,c=r.tr/1e3*r.finalSize;if(!l||n||r.sz){var d,u=this.textSpans.length;for(E=0;E<b;E+=1)n&&l&&0!==E||(i=E<u?this.textSpans[E]:createNS(n?"path":"text"),u<=E&&(i.setAttribute("stroke-linecap","butt"),i.setAttribute("stroke-linejoin","round"),i.setAttribute("stroke-miterlimit","4"),this.textSpans[E]=i,this.layerElement.appendChild(i)),i.style.display="inherit"),o.reset(),o.scale(r.finalSize/100,r.finalSize/100),l&&(a[E].n&&(p=-c,m=m+r.yOffset+(f?1:0),f=!1),this.applyTextPropertiesToMatrix(r,o,a[E].line,p,m),p=p+(a[E].l||0)+c),n?(d=(d=(d=this.globalData.fontManager.getCharData(r.finalText[E],s.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily))&&d.data||{}).shapes?d.shapes[0].it:[],l?h+=this.createPathShape(o,d):i.setAttribute("d",this.createPathShape(o,d))):(l&&i.setAttribute("transform","translate("+o.props[12]+","+o.props[13]+")"),i.textContent=a[E].val,i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));l&&i&&i.setAttribute("d",h)}else{var y=this.textContainer,g="start";switch(r.j){case 1:g="end";break;case 2:g="middle"}y.setAttribute("text-anchor",g),y.setAttribute("letter-spacing",c);for(var v=this.buildTextContents(r.finalText),b=v.length,m=r.ps?r.ps[1]+r.ascent:0,E=0;E<b;E+=1)(i=this.textSpans[E]||createNS("tspan")).textContent=v[E],i.setAttribute("x",0),i.setAttribute("y",m),i.style.display="inherit",y.appendChild(i),this.textSpans[E]=i,m+=r.finalLineHeight;this.layerElement.appendChild(y)}for(;E<this.textSpans.length;)this.textSpans[E].style.display="none",E+=1;this._sizeChanged=!0},SVGTextElement.prototype.sourceRectAtTime=function(t){var e;return this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged&&(this._sizeChanged=!1,e=this.layerElement.getBBox(),this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}),this.bbox},SVGTextElement.prototype.renderInnerContent=function(){if(!this.data.singleShape&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;for(var t,e,i=this.textAnimator.renderedLetters,r=this.textProperty.currentData.l,s=r.length,a=0;a<s;a+=1)r[a].n||(t=i[a],e=this.textSpans[a],t._mdf.m&&e.setAttribute("transform",t.m),t._mdf.o&&e.setAttribute("opacity",t.o),t._mdf.sw&&e.setAttribute("stroke-width",t.sw),t._mdf.sc&&e.setAttribute("stroke",t.sc),t._mdf.fc&&e.setAttribute("fill",t.fc))}},extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){for(var t,e,i,r=this.shapes.length,s=this.stylesList.length,a=[],n=!1,o=0;o<s;o+=1){for(i=this.stylesList[o],n=!1,t=a.length=0;t<r;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(i)&&(a.push(e),n=e._isAnimated||n);1<a.length&&n&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,e=new SVGStyleData(t,e),r=e.pElem;return"st"===t.ty?i=new SVGStrokeStyleData(this,t,e):"fl"===t.ty?i=new SVGFillStyleData(this,t,e):"gf"!==t.ty&&"gs"!==t.ty||(i=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,e),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),r.setAttribute("mask","url("+locationHref+"#"+i.maskId+")"))),"st"!==t.ty&&"gs"!==t.ty||(r.setAttribute("stroke-linecap",this.lcEnum[t.lc]||"round"),r.setAttribute("stroke-linejoin",this.ljEnum[t.lj]||"round"),r.setAttribute("fill-opacity","0"),1===t.lj&&r.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(e),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var i=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var r=4;"rc"===t.ty?r=5:"el"===t.ty?r=6:"sr"===t.ty&&(r=7);e=new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,r,this));return this.shapes.push(e),this.addShapeToModifiers(e),this.addToAnimatedContents(t,e),e},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,r=this.animatedContents.length;i<r;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){for(var e=t.styles,i=this.stylesList.length,r=0;r<i;r+=1)this.stylesList[r].closed||e.push(this.stylesList[r])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;for(var t=this.itemsData.length,e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,i,r,s,a,n){for(var o,h,l,p,m,f=[].concat(a),c=t.length-1,d=[],u=[],y=c;0<=y;--y){if((m=this.searchProcessedElement(t[y]))?e[y]=i[m-1]:t[y]._render=n,"fl"==t[y].ty||"st"==t[y].ty||"gf"==t[y].ty||"gs"==t[y].ty)m?e[y].style.closed=!1:e[y]=this.createStyleElement(t[y],s),t[y]._render&&r.appendChild(e[y].style.pElem),d.push(e[y].style);else if("gr"==t[y].ty){if(m)for(h=e[y].it.length,o=0;o<h;o+=1)e[y].prevViewData[o]=e[y].it[o];else e[y]=this.createGroupElement(t[y]);this.searchShapes(t[y].it,e[y].it,e[y].prevViewData,e[y].gr,s+1,f,n),t[y]._render&&r.appendChild(e[y].gr)}else"tr"==t[y].ty?(m||(e[y]=this.createTransformElement(t[y],r)),l=e[y].transform,f.push(l)):"sh"==t[y].ty||"rc"==t[y].ty||"el"==t[y].ty||"sr"==t[y].ty?(m||(e[y]=this.createShapeElement(t[y],f,s)),this.setElementStyles(e[y])):"tm"==t[y].ty||"rd"==t[y].ty||"ms"==t[y].ty||"pb"==t[y].ty?(m?(p=e[y]).closed=!1:((p=ShapeModifiers.getModifier(t[y].ty)).init(this,t[y]),e[y]=p,this.shapeModifiers.push(p)),u.push(p)):"rp"==t[y].ty&&(m?(p=e[y]).closed=!0:(p=ShapeModifiers.getModifier(t[y].ty),(e[y]=p).init(this,t,y,e),this.shapeModifiers.push(p),n=!1),u.push(p));this.addProcessedElement(t[y],y+1)}for(c=d.length,y=0;y<c;y+=1)d[y].closed=!0;for(c=u.length,y=0;y<c;y+=1)u[y].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();for(var t=this.stylesList.length,e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){for(var t,e=this.animatedContents.length,i=0;i<e;i+=1)t=this.animatedContents[i],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},SVGTintFilter.prototype.renderFrame=function(t){var e,i;(t||this.filterManager._mdf)&&(t=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100,this.matrixFilter.setAttribute("values",e[0]-t[0]+" 0 0 0 "+t[0]+" "+(e[1]-t[1])+" 0 0 0 "+t[1]+" "+(e[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 "+i+" 0"))},SVGFillFilter.prototype.renderFrame=function(t){var e;(t||this.filterManager._mdf)&&(t=this.filterManager.effectElements[2].p.v,e=this.filterManager.effectElements[6].p.v,this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+e+" 0"))},SVGGaussianBlurEffect.prototype.renderFrame=function(t){var e;(t||this.filterManager._mdf)&&(t=.3*this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,this.feGaussianBlur.setAttribute("stdDeviation",(3==e?0:t)+" "+(2==e?0:t)),e=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate",this.feGaussianBlur.setAttribute("edgeMode",e))},SVGStrokeEffect.prototype.initialize=function(){var t,e,i,r,s=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,i=0):r=(i=this.filterManager.effectElements[0].p.v-1)+1,(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);i<r;i+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),n=createElementID(),o=(a.setAttribute("id",n),a.setAttribute("mask-type","alpha"),a.appendChild(e),this.elem.globalData.defs.appendChild(a),createNS("g"));for(o.setAttribute("mask","url("+locationHref+"#"+n+")");s[0];)o.appendChild(s[0]);this.elem.layerElement.appendChild(o),this.masker=a,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(s=this.elem.layerElement.children||this.elem.layerElement.childNodes;s.length;)this.elem.layerElement.removeChild(s[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();for(var e,i,r=this.paths.length,s=0;s<r;s+=1)if(-1!==this.paths[s].m&&(a=this.elem.maskManager.viewData[this.paths[s].m],e=this.paths[s].p,(t||this.filterManager._mdf||a.prop._mdf)&&e.setAttribute("d",a.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||a.prop._mdf)){if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){for(var a=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,n=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,o=e.getTotalLength(),h="0 0 0 "+o*a+" ",l=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100,p=Math.floor(o*(n-a)/l),m=0;m<p;m+=1)h+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100+" ";h+="0 "+10*o+" 0 0"}else h="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100;e.setAttribute("stroke-dasharray",h)}(t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),1!==this.filterManager.effectElements[10].p.v&&2!==this.filterManager.effectElements[10].p.v||(t||this.filterManager.effectElements[3].p._mdf)&&(i=this.filterManager.effectElements[3].p.v,this.pathMasker.setAttribute("stroke","rgb("+bm_floor(255*i[0])+","+bm_floor(255*i[1])+","+bm_floor(255*i[2])+")"))},SVGTritoneFilter.prototype.renderFrame=function(t){var e,i,r,s;(t||this.filterManager._mdf)&&(t=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,i=(s=this.filterManager.effectElements[2].p.v)[0]+" "+e[0]+" "+t[0],r=s[1]+" "+e[1]+" "+t[1],s=s[2]+" "+e[2]+" "+t[2],this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",r),this.feFuncB.setAttribute("tableValues",s))},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){t=createNS(t);return t.setAttribute("type","table"),e.appendChild(t),t},SVGProLevelsFilter.prototype.getTableValue=function(t,e,i,r,s){for(var a,n=0,o=Math.min(t,e),h=Math.max(t,e),l=Array.call(null,{length:256}),p=0,m=s-r,f=e-t;n<=256;)a=(a=n/256)<=o?f<0?s:r:h<=a?f<0?r:s:r+m*Math.pow((a-t)/f,1/i),l[p++]=a,n+=256/255;return l.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){var e,i;(t||this.filterManager._mdf)&&(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){var e,i;(t||this.filterManager._mdf)&&((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)&&(i=this.filterManager.effectElements[0].p.v,this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*i[0]),Math.round(255*i[1]),Math.round(255*i[2])))),(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)&&(i=this.filterManager.effectElements[3].p.v,t=(this.filterManager.effectElements[2].p.v-90)*degToRads,e=i*Math.cos(t),i=i*Math.sin(t),this.feOff
12set.setAttribute("dx",e),this.feOffset.setAttribute("dy",i)))};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,(this.elem=i).matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGEffects(t){var e,i,r=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s),n=0;for(this.filters=[],e=0;e<r;e+=1)i=null,20===t.data.ef[e].ty?(n+=1,i=new SVGTintFilter(a,t.effectsManager.effectElements[e])):21===t.data.ef[e].ty?(n+=1,i=new SVGFillFilter(a,t.effectsManager.effectElements[e])):22===t.data.ef[e].ty?i=new SVGStrokeEffect(t,t.effectsManager.effectElements[e]):23===t.data.ef[e].ty?(n+=1,i=new SVGTritoneFilter(a,t.effectsManager.effectElements[e])):24===t.data.ef[e].ty?(n+=1,i=new SVGProLevelsFilter(a,t.effectsManager.effectElements[e])):25===t.data.ef[e].ty?(n+=1,i=new SVGDropShadowEffect(a,t.effectsManager.effectElements[e])):28===t.data.ef[e].ty?i=new SVGMatte3Effect(a,t.effectsManager.effectElements[e],t):29===t.data.ef[e].ty&&(n+=1,i=new SVGGaussianBlurEffect(a,t.effectsManager.effectElements[e])),i&&this.filters.push(i);n&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+locationHref+"#"+s+")")),this.filters.length&&t.addRenderableComponent(this)}function CVContextData(){this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1;var t;for(this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15}function CVBaseElement(){}function CVImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getImage(this.assetData),this.initElement(t,e,i)}function CVCompElement(t,e,i){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CVMaskElement(t,e){this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);for(var i=this.masksProperties.length,r=!1,s=0;s<i;s++)"n"!==this.masksProperties[s].mode&&(r=!0),this.viewData[s]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[s],3);(this.hasMasks=r)&&this.element.addRenderableComponent(this)}function CVShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,i)}function CVSolidElement(t,e,i){this.initElement(t,e,i)}function CVTextElement(t,e,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,i)}function CVEffects(){}function HBaseElement(t,e,i){}function HSolidElement(t,e,i){this.initElement(t,e,i)}function HCompElement(t,e,i){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,i)}function HImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i)}function HCameraElement(t,e,i){this.initFrame(),this.initBaseData(t,e,
vendor: 35,482 bytes, line 12
12i),this.initHierarchy();e=PropertyFactory.getProp;if(this.pe=e(this,t.pe,0,0,this),t.ks.p.s?(this.px=e(this,t.ks.p.x,1,0,this),this.py=e(this,t.ks.p.y,1,0,this),this.pz=e(this,t.ks.p.z,1,0,this)):this.p=e(this,t.ks.p,1,0,this),t.ks.a&&(this.a=e(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to)for(var r=t.ks.or.k.length,s=0;s<r;s+=1)t.ks.or.k[s].to=null,t.ks.or.k[s].ti=null;this.or=e(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=e(this,t.ks.rx,0,degToRads,this),this.ry=e(this,t.ks.ry,0,degToRads,this),this.rz=e(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HEffects(){}SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e<i;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var i=t.layerElement.parentNode;if(i){for(var r,s=i.children,a=0,n=s.length;a<n&&s[a]!==t.layerElement;)a+=1;a<=n-2&&(r=s[a+1]);var o=createNS("use");o.setAttribute("href","#"+e),r?i.insertBefore(o,r):i.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){var i,r,s,a;this.findSymbol(e)||(i=createElementID(),(r=createNS("mask")).setAttribute("id",e.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e),(a=t.globalData.defs).appendChild(r),(s=createNS("symbol")).setAttribute("id",i),this.replaceInParent(e,i),s.appendChild(e.layerElement),a.appendChild(s),(a=createNS("use")).setAttribute("href","#"+i),r.appendChild(a),e.data.hd=!1,e.show()),t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,r=e.length;i<r;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGEffects.prototype.renderFrame=function(t){for(var e=this.filters.length,i=0;i<e;i+=1)this.filters[i].renderFrame(t)},CVContextData.prototype.duplicate=function(){for(var t=2*this._length,e=this.savedOp,i=(this.savedOp=createTypedArray("float32",t),this.savedOp.set(e),0),i=this._length;i<t;i+=1)this.saved[i]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t,e=this.globalData;e.blendMode!==this.data.bm&&(e.blendMode=this.data.bm,t=getBlendMode(this.data.bm),e.canvasContext.globalCompositeOperation=t)},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){var t;this.hidden||this.data.hd||(this.renderTransform(),this.renderRenderable(),this.setBlendMode(),t=0===this.data.ty,this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(t),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){var t,e,i,r,s,a,n,o,h;!this.img.width||this.assetData.w===this.img.width&&this.assetData.h===this.img.height||((t=createTag("canvas")).width=this.assetData.w,t.height=this.assetData.h,e=t.getContext("2d"),i=this.img.width,r=this.img.height,a=this.assetData.w/this.assetData.h,h=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio,a<(s=i/r)&&"xMidYMid slice"===h||s<a&&"xMidYMid slice"!==h?n=(o=r)*a:o=(n=i)/a,e.drawImage(this.img,(i-n)/2,(r-o)/2,n,o,0,0,this.assetData.w,this.assetData.h),this.img=t)},CVImageElement.prototype.renderInnerContent=function(t){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([CanvasRenderer,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip();for(var e=this.layers.length-1;0<=e;--e)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){for(var t=this.layers.length-1;0<=t;--t)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,s=this.element.finalTransform.mat,a=this.element.canvasContext,n=this.masksProperties.length;for(a.beginPath(),t=0;t<n;t++)if("n"!==this.masksProperties[t].mode){this.masksProperties[t].inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),r=this.viewData[t].v,e=s.applyToPointArray(r.v[0][0],r.v[0][1],0),a.moveTo(e[0],e[1]);for(var o=r._length,h=1;h<o;h++)i=s.applyToTriplePoints(r.o[h-1],r.i[h],r.v[h]),a.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);i=s.applyToTriplePoints(r.o[h-1],r.i[0],r.v[0]),a.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}this.element.globalData.renderer.save(!0),a.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var i,e={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},r={};return"fl"==t.ty||"st"==t.ty?(r.c=PropertyFactory.getProp(this,t.c,1,255,this),r.c.k||(e.co="rgb("+bm_floor(r.c.v[0])+","+bm_floor(r.c.v[1])+","+bm_floor(r.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(r.s=PropertyFactory.getProp(this,t.s,1,null,this),r.e=PropertyFactory.getProp(this,t.e,1,null,this),r.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,t.g,this)),r.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"==t.ty||"gs"==t.ty?(e.lc=this.lcEnum[t.lc]||"round",e.lj=this.ljEnum[t.lj]||"round",1==t.lj&&(e.ml=t.ml),r.w=PropertyFactory.getProp(this,t.w,0,null,this),r.w.k||(e.wi=r.w.v),t.d&&(i=new DashProperty(this,t.d,"canvas",this),r.d=i,r.d.k||(e.da=r.d.dashArray,e.do=r.d.dashoffset[0]))):e.r=2===t.r?"evenodd":"nonzero",this.stylesList.push(e),r.style=e,r},CVShapeElement.prototype.createGroupElement=function(t){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){t=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;for(var t=this.itemsData.length,e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){for(var e=this.stylesList.length,i=0;i<e;i+=1)this.stylesList[i].closed||this.stylesList[i].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){for(var t=this.stylesList.length,e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,i,r,s){for(var a,n,o,h,l,p=t.length-1,m=[],f=[],c=[].concat(s),d=p;0<=d;--d){if((o=this.searchProcessedElement(t[d]))?e[d]=i[o-1]:t[d]._shouldRender=r,"fl"==t[d].ty||"st"==t[d].ty||"gf"==t[d].ty||"gs"==t[d].ty)o?e[d].style.closed=!1:e[d]=this.createStyleElement(t[d],c),m.push(e[d].style);else if("gr"==t[d].ty){if(o)for(n=e[d].it.length,a=0;a<n;a+=1)e[d].prevViewData[a]=e[d].it[a];else e[d]=this.createGroupElement(t[d]);this.searchShapes(t[d].it,e[d].it,e[d].prevViewData,r,c)}else"tr"==t[d].ty?(o||(l=this.createTransformElement(t[d]),e[d]=l),c.push(e[d]),this.addTransformToStyleList(e[d])):"sh"==t[d].ty||"rc"==t[d].ty||"el"==t[d].ty||"sr"==t[d].ty?o||(e[d]=this.createShapeElement(t[d])):"tm"==t[d].ty||"rd"==t[d].ty||"pb"==t[d].ty?(o?(h=e[d]).closed=!1:((h=ShapeModifiers.getModifier(t[d].ty)).init(this,t[d]),e[d]=h,this.shapeModifiers.push(h)),f.push(h)):"rp"==t[d].ty&&(o?(h=e[d]).closed=!0:(h=ShapeModifiers.getModifier(t[d].ty),(e[d]=h).init(this,t,d,e),this.shapeModifiers.push(h),r=!1),f.push(h));this.addProcessedElement(t[d],d+1)}for(this.removeTransformFromStyleList(),this.closeStyles(m),p=f.length,d=0;d<p;d+=1)f[d].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){for(var t,e,i,r,s,a,n,o,h=this.stylesList.length,l=this.globalData.renderer,p=this.globalData.canvasContext,m=0;m<h;m+=1)if(("st"!==(n=(o=this.stylesList[m]).type)&&"gs"!==n||0!==o.wi)&&o.data._shouldRender&&0!==o.coOp&&0!==this.globalData.currentGlobalAlpha){for(l.save(),s=o.elements,"st"===n||"gs"===n?(p.strokeStyle="st"===n?o.co:o.grd,p.lineWidth=o.wi,p.lineCap=o.lc,p.lineJoin=o.lj,p.miterLimit=o.ml||0):p.fillStyle="fl"===n?o.co:o.grd,l.ctxOpacity(o.coOp),"st"!==n&&"gs"!==n&&p.beginPath(),l.ctxTransform(o.preTransforms.finalTransform.props),e=s.length,t=0;t<e;t+=1){for("st"!==n&&"gs"!==n||(p.beginPath(),o.da&&(p.setLineDash(o.da),p.lineDashOffset=o.do)),r=(a=s[t].trNodes).length,i=0;i<r;i+=1)"m"==a[i].t?p.moveTo(a[i].p[0],a[i].p[1]):"c"==a[i].t?p.bezierCurveTo(a[i].pts[0],a[i].pts[1],a[i].pts[2],a[i].pts[3],a[i].pts[4],a[i].pts[5]):p.closePath();"st"!==n&&"gs"!==n||(p.stroke(),o.da&&p.setLineDash(this.dashResetter))}"st"!==n&&"gs"!==n&&p.fill(o.r),l.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,r){for(var s=t,a=e.length-1;0<=a;--a)"tr"==e[a].ty?(s=i[a].transform,this.renderShapeTransform(t,s)):"sh"==e[a].ty||"el"==e[a].ty||"rc"==e[a].ty||"sr"==e[a].ty?this.renderPath(e[a],i[a]):"fl"==e[a].ty?this.renderFill(e[a],i[a],s):"st"==e[a].ty?this.renderStroke(e[a],i[a],s):"gf"==e[a].ty||"gs"==e[a].ty?this.renderGradientFill(e[a],i[a],s):"gr"==e[a].ty?this.renderShape(s,e[a].it,i[a].it):e[a].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){for(var i,r,s=t.trNodes,a=e.paths,n=a._length,o=(s.length=0,t.transforms.finalTransform),h=0;h<n;h+=1){var l=a.shapes[h];if(l&&l.v){for(r=l._length,i=1;i<r;i+=1)1===i&&s.push({t:"m",p:o.applyToPointArray(l.v[0][0],l.v[0][1],0)}),s.push({t:"c",pts:o.applyToTriplePoints(l.o[i-1],l.i[i],l.v[i])});1===r&&s.push({t:"m",p:o.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&r&&(s.push({t:"c",pts:o.applyToTriplePoints(l.o[i-1],l.i[0],l.v[0])}),s.push({t:"z"}))}}t.trNodes=s}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender)for(var i=e.styledShapes.length,r=0;r<i;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)},CVShapeElement.prototype.renderFill=function(t,e,i){var r=e.style;(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,i){var r=e.style;if(!r.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var s,a,n,o,h=this.globalData.canvasContext,l=e.s.v,p=e.e.v;o=1===t.t?h.createLinearGradient(l[0],l[1],p[0],p[1]):(s=Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)),p=Math.atan2(p[1]-l[1],p[0]-l[0]),a=s*(1<=e.h.v?.99:e.h.v<=-1?-.99:e.h.v),n=Math.cos(p+e.a.v)*a+l[0],p=Math.sin(p+e.a.v)*a+l[1],h.createRadialGradient(n,p,0,l[0],l[1],s));for(var m=t.g.p,f=e.g.c,c=1,d=0;d<m;d+=1)e.g._hasOpacity&&e.g._collapsable&&(c=e.g.o[2*d+1]),o.addColorStop(f[4*d]/100,"rgba("+f[4*d+1]+","+f[4*d+2]+","+f[4*d+3]+","+c+")");r.grd=o}r.coOp=e.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(t,e,i){var r=e.style,s=e.d;s&&(s._mdf||this._isFirstFrame)&&(r.da=s.dashArray,r.do=s.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(r.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){for(var t,e,i,r,s,a,n,o,h,l=this.textProperty.currentData,p=(this.renderedLetters=createSizedArray(l.l?l.l.length:0),!1),p=(l.fc?(p=!0,this.values.fill=this.buildColor(l.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=p,!1),m=(l.sc&&(p=!0,this.values.stroke=this.buildColor(l.sc),this.values.sWidth=l.sw),this.globalData.fontManager.getFontByName(l.f)),f=l.l,c=this.mHelper,d=(this.stroke=p,this.values.fValue=l.finalSize+"px "+this.globalData.fontManager.getFontByName(l.f).fFamily,l.finalText.length),u=this.data.singleShape,y=l.tr/1e3*l.finalSize,g=0,v=0,b=!0,E=0,x=0;x<d;x+=1){for(t=(t=this.globalData.fontManager.getCharData(l.finalText[x],m.fStyle,this.globalData.fontManager.getFontByName(l.f).fFamily))&&t.data||{},c.reset(),u&&f[x].n&&(g=-y,v=v+l.yOffset+(b?1:0),b=!1),a=(r=t.shapes?t.shapes[0].it:[]).length,c.scale(l.finalSize/100,l.finalSize/100),u&&this.applyTextPropertiesToMatrix(l,c,f[x].line,g,v),o=createSizedArray(a),s=0;s<a;s+=1){for(i=r[s].ks.k.i.length,n=r[s].ks.k,h=[],e=1;e<i;e+=1)1==e&&h.push(c.applyToX(n.v[0][0],n.v[0][1],0),c.applyToY(n.v[0][0],n.v[0][1],0)),h.push(c.applyToX(n.o[e-1][0],n.o[e-1][1],0),c.applyToY(n.o[e-1][0],n.o[e-1][1],0),c.applyToX(n.i[e][0],n.i[e][1],0),c.applyToY(n.i[e][0],n.i[e][1],0),c.applyToX(n.v[e][0],n.v[e][1],0),c.applyToY(n.v[e][0],n.v[e][1],0));h.push(c.applyToX(n.o[e-1][0],n.o[e-1][1],0),c.applyToY(n.o[e-1][0],n.o[e-1][1],0),c.applyToX(n.i[0][0],n.i[0][1],0),c.applyToY(n.i[0][0],n.i[0][1],0),c.applyToX(n.v[0][0],n.v[0][1],0),c.applyToY(n.v[0][0],n.v[0][1],0)),o[s]=h}u&&(g=g+f[x].l+y),this.textSpans[E]?this.textSpans[E].elem=o:this.textSpans[E]={elem:o},E+=1}},CVTextElement.prototype.renderInnerContent=function(){for(var t,e,i,r,s,a,n,o=this.canvasContext,h=(this.finalTransform.mat.props,o.font=this.values.fValue,o.lineCap="butt",o.lineJoin="miter",o.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.textAnimator.renderedLetters),l=this.textProperty.currentData.l,p=l.length,m=null,f=null,c=null,d=0;d<p;d+=1)if(!l[d].n){if((s=h[d])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(s.p),this.globalData.renderer.ctxOpacity(s.o)),this.fill){for(s&&s.fc?m!==s.fc&&(m=s.fc,o.fillStyle=s.fc):m!==this.values.fill&&(m=this.values.fill,o.fillStyle=this.values.fill),e=(a=this.textSpans[d].elem).length,this.globalData.canvasContext.beginPath(),t=0;t<e;t+=1)for(r=(n=a[t]).length,this.globalData.canvasContext.moveTo(n[0],n[1]),i=2;i<r;i+=6)this.globalData.canvasContext.bezierCurveTo(n[i],n[i+1],n[i+2],n[i+3],n[i+4],n[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(s&&s.sw?c!==s.sw&&(c=s.sw,o.lineWidth=s.sw):c!==this.values.sWidth&&(c=this.values.sWidth,o.lineWidth=this.values.sWidth),s&&s.sc?f!==s.sc&&(f=s.sc,o.strokeStyle=s.sc):f!==this.values.stroke&&(f=this.values.stroke,o.strokeStyle=this.values.stroke),e=(a=this.textSpans[d].elem).length,this.globalData.canvasContext.beginPath(),t=0;t<e;t+=1)for(r=(n=a[t]).length,this.globalData.canvasContext.moveTo(n[0],n[1]),i=2;i<r;i+=6)this.globalData.canvasContext.bezierCurveTo(n[i],n[i+1],n[i+2],n[i+3],n[i+4],n[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}s&&this.globalData.renderer.restore()}},CVEffects.prototype.renderFrame=function(){},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&(this.transformedElement.style.transform=this.transformedElement.style.webkitTransform=this.finalTransform.mat.toCSS()),this.finalTransform._opMdf&&(this.transformedElement.style.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=HybridRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([HybridRenderer,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var i,r=0;r<e;)this.elements[r]&&this.elements[r].getBaseElement&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t,e;this.baseElement.style.fontSize=0,this.data.hasMask?(this.layerElement.appendChild(this.shapesContainer),t=this.svgElement):(t=createNS("svg"),e=this.comp.data||this.globalData.compSize,t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)),this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){for(var i=t.length,r=0;r<i;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i,r,s,a,n,o=t.sh.v,h=t.transformers,l=o._length;if(!(l<=1)){for(i=0;i<l-1;i+=1)r=this.getTransformedPoint(h,o.v[i]),s=this.getTransformedPoint(h,o.o[i]),a=this.getTransformedPoint(h,o.i[i+1]),n=this.getTransformedPoint(h,o.v[i+1]),this.checkBounds(r,s,a,n,e);o.c&&(r=this.getTransformedPoint(h,o.v[i]),s=this.getTransformedPoint(h,o.o[i]),a=this.getTransformedPoint(h,o.i[0]),n=this.getTransformedPoint(h,o.v[0]),this.checkBounds(r,s,a,n,e))}},HShapeElement.prototype.checkBounds=function(t,e,i,r,s){this.getBoundsOfCurve(t,e,i,r);t=this.shapeBoundingBox;s.x=bm_min(t.left,s.x),s.xMax=bm_max(t.right,s.xMax),s.y=bm_min(t.top,s.y),s.yMax=bm_max(t.bottom,s.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,i,r){for(var s,a,n,o,h=[[t[0],r[0]],[t[1],r[1]]],l=0;l<2;++l)a=6*t[l]-12*e[l]+6*i[l],s=-3*t[l]+9*e[l]-9*i[l]+3*r[l],o=3*e[l]-3*t[l],a|=0,o|=0,0==(s|=0)?0!=a&&0<(n=-o/a)&&n<1&&h[l].push(this.calculateF(n,t,e,i,r,l)):(n=a*a-4*o*s)<0||(0<(o=(-a+bm_sqrt(n))/(2*s))&&o<1&&h[l].push(this.calculateF(o,t,e,i,r,l)),0<(o=(-a-bm_sqrt(n))/(2*s))&&o<1&&h[l].push(this.calculateF(o,t,e,i,r,l)));this.shapeBoundingBox.left=bm_min.apply(null,h[0]),this.shapeBoundingBox.top=bm_min.apply(null,h[1]),this.shapeBoundingBox.right=bm_max.apply(null,h[0]),this.shapeBoundingBox.bottom=bm_max.apply(null,h[1])},HShapeElement.prototype.calculateF=function(t,e,i,r,s,a){return bm_pow(1-t,3)*e[a]+3*bm_pow(1-t,2)*t*i[a]+3*(1-t)*bm_pow(t,2)*r[a]+bm_pow(t,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){for(var i=t.length,r=0;r<i;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it&&this.calculateBoundingBox(t[r].it,e)},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){var t,e;this._renderShapeFrame(),this.hidden||!this._isFirstFrame&&!this._mdf||((t=this.tempBoundingBox).x=e=999999,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t)||(e=!1,this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),e=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),e=!0),!e&&this.currentBBox.x===t.x&&this.currentBBox.y===t.y||(this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),this.shapeCont.style.transform=this.shapeCont.style.webkitTransform="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)")))},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){var t;this.isMasked=this.checkMasks(),this.isMasked?(this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH),t=createNS("g"),this.maskedElement.appendChild(t),this.innerElem=t):(this.renderType="html",this.innerElem=this.layerElement),this.checkParenting()},HTextElement.prototype.buildNewText=function(){for(var t,e,i,r,s,a,n,o=this.textProperty.currentData,h=(this.renderedLetters=createSizedArray(o.l?o.l.length:0),this.innerElem.style),l=(h.color=h.fill=o.fc?this.buildColor(o.fc):"rgba(0,0,0,0)",o.sc&&(h.stroke=this.buildColor(o.sc),h.strokeWidth=o.sw+"px"),this.globalData.fontManager.getFontByName(o.f)),p=(this.globalData.fontManager.chars||(h.fontSize=o.finalSize+"px",h.lineHeight=o.finalSize+"px",l.fClass?this.innerElem.className=l.fClass:(h.fontFamily=l.fFamily,t=o.fWeight,e=o.fStyle,h.fontStyle=e,h.fontWeight=t)),o.l),m=p.length,f=this.mHelper,c=0,d=0;d<m;d+=1)this.globalData.fontManager.chars?(this.textPaths[c]?i=this.textPaths[c]:((i=createNS("path")).setAttribute("stroke-linecap","butt"),i.setAttribute("stroke-linejoin","round"),i.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[c]?s=(r=this.textSpans[c]).children[0]:((r=createTag("div")).style.lineHeight=0,(s=createNS("svg")).appendChild(i),styleDiv(r)))):this.isMasked?i=this.textPaths[c]||createNS("text"):this.textSpans[c]?(r=this.textSpans[c],i=this.textPaths[c]):(styleDiv(r=createTag("span")),styleDiv(i=createTag("span")),r.appendChild(i)),this.globalData.fontManager.chars?(n=(n=this.globalData.fontManager.getCharData(o.finalText[d],l.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily))?n.data:null,f.reset(),n&&n.shapes&&(a=n.shapes[0].it,f.scale(o.finalSize/100,o.finalSize/100),a=this.createPathShape(f,a),i.setAttribute("d",a)),this.isMasked?this.innerElem.appendChild(i):(this.innerElem.appendChild(r),n&&n.shapes?(document.body.appendChild(s),a=s.getBBox(),s.setAttribute("width",a.width+2),s.setAttribute("height",a.height+2),s.setAttribute("viewBox",a.x-1+" "+(a.y-1)+" "+(a.width+2)+" "+(a.height+2)),s.style.transform=s.style.webkitTransform="translate("+(a.x-1)+"px,"+(a.y-1)+"px)",p[d].yOffset=a.y-1):(s.setAttribute("width",1),s.setAttribute("height",1)),r.appendChild(s))):(i.textContent=p[d].val,i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked?this.innerElem.appendChild(i):(this.innerElem.appendChild(r),i.style.transform=i.style.webkitTransform="translate3d(0,"+-o.finalSize/1.2+"px,0)")),this.isMasked?this.textSpans[c]=i:this.textSpans[c]=r,this.textSpans[c].style.display="block",this.textPaths[c]=i,c+=1;for(;c<this.textSpans.length;)this.textSpans[c].style.display="none",c+=1},HTextElement.prototype.renderInnerContent=function(){if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;this.isMasked&&this.finalTransform._matMdf&&(this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),this.svgElement.style.transform=this.svgElement.style.webkitTransform="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)")}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){for(var t,e,i,r,s=0,a=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l,o=n.length,h=0;h<o;h+=1)n[h].n?s+=1:(e=this.textSpans[h],i=this.textPaths[h],t=a[s],s+=1,t._mdf.m&&(this.isMasked?e.setAttribute("transform",t.m):e.style.transform=e.style.webkitTransform=t.m),e.style.opacity=t.o,t.sw&&t._mdf.sw&&i.setAttribute("stroke-width",t.sw),t.sc&&t._mdf.sc&&i.setAttribute("stroke",t.sc),t.fc&&t._mdf.fc&&(i.setAttribute("fill",t.fc),i.style.color=t.fc));this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)&&(r=this.innerElem.getBBox(),this.currentBBox.w!==r.width&&(this.currentBBox.w=r.width,this.svgElement.setAttribute("width",r.width)),this.currentBBox.h!==r.height&&(this.currentBBox.h=r.height,this.svgElement.setAttribute("height",r.height)),this.currentBBox.w===r.width+2&&this.currentBBox.h===r.height+2&&this.currentBBox.x===r.x-1&&this.currentBBox.y===r.y-1||(this.currentBBox.w=r.width+2,this.currentBBox.h=r.height+2,this.currentBBox.x=r.x-1,this.currentBBox.y=r.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),this.svgElement.style.transform=this.svgElement.style.webkitTransform="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)"))}},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){for(var t,e=this.comp.threeDElements.length,i=0;i<e;i+=1)"3d"===(t=this.comp.threeDElements[i]).type&&(t.perspectiveElem.style.perspective=t.perspectiveElem.style.webkitPerspective=this.pe.v+"px",t.container.style.transformOrigin=t.container.style.mozTransformOrigin=t.container.style.webkitTransformOrigin="0px 0px 0px",t.perspectiveElem.style.transform=t.perspectiveElem.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)")},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,i=0;i<e;i+=1)t=this.hierarchy[i].finalTransform.mProp._mdf||t;if(t||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(var e,i=e=this.hierarchy.length-1;0<=i;--i){var r=this.hierarchy[i].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])}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&&(a=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]],s=Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)),a=[a[0]/s,a[1]/s,a[2]/s],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),s=Math.atan2(a[1],s),a=Math.atan2(a[0],-a[2]),this.mat.rotateY(a).rotateX(-s)),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 s,a,n,o=!this._prevMat.equals(this.mat);if((o||this.pe._mdf)&&this.comp.threeDElements){for(e=this.comp.threeDElements.length,i=0;i<e;i+=1)"3d"===(n=this.comp.threeDElements[i]).type&&(o&&(n.container.style.transform=n.container.style.webkitTransform=this.mat.toCSS()),this.pe._mdf&&(n.perspectiveElem.style.perspective=n.perspectiveElem.style.webkitPerspective=this.pe.v+"px"));this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},HEffects.prototype.renderFrame=function(){};var animationManager=function(){var t={},s=[],r=0,a=0,n=0,o=!0,h=!1;function i(t){for(var e=0,i=t.target;e<a;)s[e].animation===i&&(s.splice(e,1),--e,--a,i.isPaused||m()),e+=1}function l(t,e){if(!t)return null;for(var i=0;i<a;){if(s[i].elem==t&&null!==s[i].elem)return s[i].animation;i+=1}var r=new AnimationItem;return f(r,t),r.setData(t,e),r}function p(){n+=1,d()}function m(){--n}function f(t,e){t.addEventListener("destroy",i),t.addEventListener("_active",p),t.addEventListener("_idle",m),s.push({elem:e,animation:t}),a+=1}function c(t){for(var e=t-r,i=0;i<a;i+=1)s[i].animation.advanceTime(e);r=t,n&&!h?window.requestAnimationFrame(c):o=!0}function e(t){r=t,window.requestAnimationFrame(c)}function d(){!h&&n&&o&&(window.requestAnimationFrame(e),o=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new AnimationItem;return f(e,null),e.setParams(t),e},t.setSpeed=function(t,e){for(var i=0;i<a;i+=1)s[i].animation.setSpeed(t,e)},t.setDirection=function(t,e){for(var i=0;i<a;i+=1)s[i].animation.setDirection(t,e)},t.play=function(t){for(var e=0;e<a;e+=1)s[e].animation.play(t)},t.pause=function(t){for(var e=0;e<a;e+=1)s[e].animation.pause(t)},t.stop=function(t){for(var e=0;e<a;e+=1)s[e].animation.stop(t)},t.togglePause=function(t){for(var e=0;e<a;e+=1)s[e].animation.togglePause(t)}
12,t.searchAnimations=function(t,e,i){for(var r,s=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=s.length,n=0;n<a;n+=1)i&&s[n].setAttribute("data-bm-type",i),l(s[n],t);e&&0===a&&(i=i||"svg",(e=document.getElementsByTagName("body")[0]).innerText="",(r=createTag("div")).style.width="100%",r.style.height="100%",r.setAttribute("data-bm-type",i),e.appendChild(r),l(r,t))},t.resize=function(){for(var t=0;t<a;t+=1)s[t].animation.resize()},t.goToAndStop=function(t,e,i){for(var r=0;r<a;r+=1)s[r].animation.goToAndStop(t,e,i)},t.destroy=function(t){for(var e=a-1;0<=e;--e)s[e].animation.destroy(t)},t.freeze=function(){h=!0},t.unfreeze=function(){h=!1,d()},t.setVolume=function(t,e){for(var i=0;i<a;i+=1)s[i].animation.setVolume(t,e)},t.mute=function(t){for(var e=0;e<a;e+=1)s[e].animation.mute(t)},t.unmute=function(t){for(var e=0;e<a;e+=1)s[e].animation.unmute(t)},t.getRegisteredAnimations=function(){for(var t=s.length,e=[],i=0;i<t;i+=1)e.push(s[i].animation);return e},t}(),AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=subframeEnabled,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory()},Expressions=(extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e=t.animType||t.renderer||"svg";switch(e){case"canvas":this.renderer=new CanvasRenderer(this,t.rendererSettings);break;case"svg":this.renderer=new SVGRenderer(this,t.rendererSettings);break;default:this.renderer=new HybridRenderer(this,t.rendererSettings)}this.imagePreloader.setCacheType(e),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name||"",this.autoloadSegments=!t.hasOwnProperty("autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.configAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),assetLoader.load(t.path,this.configAnimation.bind(this),function(){this.trigger("data_failed")}.bind(this)))},AnimationItem.prototype.setData=function(t,e){var e={wrapper:t,animationData:e?"object"==typeof e?e:JSON.parse(e):null},t=t.attributes,i=(e.path=t.getNamedItem("data-animation-path")?t.getNamedItem("data-animation-path").value:t.getNamedItem("data-bm-path")?t.getNamedItem("data-bm-path").value:t.getNamedItem("bm-path")?t.getNamedItem("bm-path").value:"",e.animType=t.getNamedItem("data-anim-type")?t.getNamedItem("data-anim-type").value:t.getNamedItem("data-bm-type")?t.getNamedItem("data-bm-type").value:t.getNamedItem("bm-type")?t.getNamedItem("bm-type").value:t.getNamedItem("data-bm-renderer")?t.getNamedItem("data-bm-renderer").value:t.getNamedItem("bm-renderer")?t.getNamedItem("bm-renderer").value:"canvas",t.getNamedItem("data-anim-loop")?t.getNamedItem("data-anim-loop").value:t.getNamedItem("data-bm-loop")?t.getNamedItem("data-bm-loop").value:t.getNamedItem("bm-loop")?t.getNamedItem("bm-loop").value:""),i=(""!==i&&(e.loop="false"!==i&&("true"===i||parseInt(i))),t.getNamedItem("data-anim-
12autoplay")?t.getNamedItem("data-anim-autoplay").value:t.getNamedItem("data-bm-autoplay")?t.getNamedItem("data-bm-autoplay").value:!t.getNamedItem("bm-autoplay")||t.getNamedItem("bm-autoplay").value);e.autoplay="false"!==i,e.name=t.getNamedItem("data-name")?t.getNamedItem("data-name").value:t.getNamedItem("data-bm-name")?t.getNamedItem("data-bm-name").value:t.getNamedItem("bm-name")?t.getNamedItem("bm-name").value:"","false"===(t.getNamedItem("data-anim-prerender")?t.getNamedItem("data-anim-prerender").value:t.getNamedItem("data-bm-prerender")?t.getNamedItem("data-bm-prerender").value:t.getNamedItem("bm-prerender")?t.getNamedItem("bm-prerender").value:"")&&(e.prerender=!1),this.setParams(e)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));for(var e,i=this.animationData.layers,r=i.length,s=t.layers,a=s.length,n=0;n<a;n+=1)for(e=0;e<r;){if(i[e].id==s[n].id){i[e]=s[n];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(r=t.assets.length,e=0;e<r;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),this.renderer.includeLayers(t.layers),expressionsPlugin&&expressionsPlugin.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;t&&0!==t.length&&this.autoloadSegments?(t=t.shift(),this.timeCompleted=t.time*this.frameRate,t=this.path+this.fileName+"_"+this.segmentPos+".json",this.segmentPos+=1,assetLoader.load(t,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))):(this.trigger("data_ready"),this.timeCompleted=this.totalFrames)},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){this.isLoaded||!this.renderer.globalData.fontManager.isLoaded||!this.imagePreloader.loaded()&&"canvas"===this.renderer.rendererType||(this.isLoaded=!0,dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),expressionsPlugin&&expressionsPlugin.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play())},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}
vendor: 4,637 bytes, line 12
12catch(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.goToAndStop=function(t,e,i){i&&this.name!=i||(e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},AnimationItem.prototype.goToAndPlay=function(t,e,i){this.goToAndStop(t,e,i),this.play()},AnimationItem.prototype.advanceTime=function(t){var e;!0!==this.isPaused&&!1!==this.isLoaded&&(e=!1,(t=this.currentRawFrame+t*this.frameModifier)>=this.totalFrames-1&&0<this.frameModifier?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(e=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(e=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),e&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete")))},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(0<this.frameModifier&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.timeCompleted=this.totalFrames=t[0]-t[1],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.timeCompleted=this.totalFrames=t[1]-t[0],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.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.timeCompleted=this.totalFrames=e-t,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"==typeof t[0])for(var i=t.length,r=0;r<i;r+=1)this.segments.push(t[r]);else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!=t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=this.onLoopComplete=this.onComplete=this.onSegmentStart=this.onDestroy=null,this.renderer=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e,i="";return i=t.e?t.p:this.assetsPath?(-1!==(e=t.p).indexOf("images/")&&(e=e.split("/")[1]),this.assetsPath+e):(i=this.path,(i+=t.u||"")+t.p)},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;
12){if(t==this.assets[e].id)return this.assets[e];e+=1}},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){t=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(t){t=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},function(){var t={};return t.initExpressions=function(t){var i=0,r=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){i+=1},t.renderer.globalData.popExpression=function(){if(0===--i){var t,e=r.length;for(t=0;t<e;t+=1)r[t].release();r.length=0}},t.renderer.globalData.registerExpressionProperty=function(t){-1===r.indexOf(t)&&r.push(t)}},t}()),expressionsPlugin=Expressions,ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(t){var e=typeof t;if(!("number"==e||"boolean"==e||t instanceof Number))if($bm_isInstanceOfArray(t))for(var i=t.length,r=[],s=0;s<i;s+=1)r[s]=-t[s];else t.propType&&t.v}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var i=typeof t,r=typeof e;if("string"==i||"string"==r)return t+e;if(isNumerable(i,t)&&isNumerable(r,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]=t[0]+e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var s=0,a=t.length,n=e.length,o=[];s<a||s<n;)("number"==typeof t[s]||t[s]instanceof Number)&&("number"==typeof e[s]||e[s]instanceof Number)?o[s]=t[s]+e[s]:o[s]=void 0===e[s]?t[s]:t[s]||e[s],s+=1;return o}return 0}var add=sum;function sub(t,e){var i=typeof t,r=typeof e;if(isNumerable(i,t)&&isNumerable(r,e))return(t="string"==i?parseInt(t):t)-(e="string"==r?parseInt(e):e);if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]=t[0]-e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var s=0,a=t.length,n=e.length,o=[];s<a||s<n;)("number"==typeof t[s]||t[s]instanceof Number)&&("number"==typeof e[s]||e[s]instanceof Number)?o[s]=t[s]-e[s]:o[s]=void 0===e[s]?t[s]:t[s]||e[s],s+=1;return o}return 0}function mul(t,e){var i,r,s,a=typeof t,n=typeof e;if(isNumerable(a,t)&&isNumerable(n,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(s=t.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t[r]*e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=e.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t*e[r];return i}return 0}function div(t,e){var i,r,s,a=typeof t,n=typeof e;if(isNumerable(a,t)&&isNumerable(n,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(s=t.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t[r]/e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=e.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t/e[r];return i}return 0}function mod(t,e){return(t="string"==typeof t?parseInt(t):t)%(e="string"==typeof e?parseInt(e):e)}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;
12function clamp(t,e,i){var r;i<e&&(r=i,i=e,e=r),Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return Math.abs(t-(e=e||0));for(var i=Math.min(t.length,(e=e||helperLengthArray).length),r=0,s=0;s<i;s+=1)r+=Math.pow(e[s]-t[s],2);return Math.sqrt(r)}function normalize(t){div(t,length(t))}function rgbToHsl(t){var e=t[0],i=t[1],r=t[2],s=Math.max(e,i,r),a=Math.min(e,i,r);if(s==a)0;else{switch(s){case e:0;break;case i:0;break;case r:0}0}t[3]}function hue2rgb(t,e,i){return i<0&&(i+=1),1<i&&--i,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=t[0],i=t[1],r=t[2];0!==i&&(hue2rgb(i=2*r-(r=r<.5?r*(1+i):r+i-r*i),r,e+1/3),hue2rgb(i,r,e),hue2rgb(i,r,e-1/3)),t[3]}function linear(t,e,i,r,s){var a;if(void 0!==r&&void 0!==s||(r=e,s=i,e=0,i=1),i<e&&(a=i,i=e,e=a),!(t<=e||i<=t)){var n=i===e?0:(t-e)/(i-e);if(r.length)for(var o=r.length,h=createTypedArray("float32",o),l=0;l<o;l+=1)h[l]=r[l]+(s[l]-r[l])*n}}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length)for(var i=e.length,r=(t=t||createTypedArray("float32",i),createTypedArray("float32",i)),s=BMMath.random(),a=0;a<i;a+=1)r[a]=t[a]+s*(e[a]-t[a]);else{void 0===t&&(t=0);BMMath.random()}}function createPath(t,e,i,r){for(var s,a,n=t.length,o=shape_pool.newElement(),h=(o.setPathData(!!r,n),[0,0]),l=0;l<n;l+=1)s=e&&e[l]?e[l]:h,a=i&&i[l]?i[l]:h,o.setTripleAt(t[l][0],t[l][1],a[0]+t[l][0],a[1]+t[l][1],s[0]+t[l][0],s[1]+t[l][1],l,!0)}function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property,inPoint=(thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0,elem.data.ip/elem.comp.globalData.frameRate),outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw||0,height=elem.data.sh||0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,__expression_functions=[],scoped_bm_rt;if(data.xf)for(var i,len=data.xf.length,i=0;i<len;i+=1)__expression_functions[i]=eval("(function(){ return "+data.xf[i]+"}())");var expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){for(var i=this.pv.length||1,r=createTypedArray("float32",i),s=Math.floor(5*time),a=0,n=0;a<s;){for(n=0;n<i;n+=1)r[n]+=-e+2*e*BMMath.random();a+=1}var o=5*time,h=o-Math.floor(o),l=createTypedArray("float32",i);if(1<i){for(n=0;n<i;n+=1)l[n]=this.pv[n]+r[n]+(-e+2*e*BMMath.random())*h;return l}return this.pv+r[0]+(-e+2*e*BMMath.random())*h}.bind(this);function loopInDuration(t,e){loopIn(t,e,!0)}function loopOutDuration(t,e){loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){e=[e[0]-t[0],e[1]-t[1],e[2]-t[2]];Math.atan2(e[0],Math.sqrt(e[1]*e[1]+e[2]*e[2])),Math.atan2(e[1],e[2])}function easeOut(t,e,i,r,s){applyEase(easeOutBez,t,e,i,r,s)}function easeIn(t,e,i,r,s){applyEase(easeInBez,t,e,i,r,s)}function ease(t,e,i,r,s){applyEase(easeInOutBez,t,e,i,r,s)}function applyEase(t,e,i,r,s,a){void 0===s?(s=i,a=r):e=(e-i)/(r-i);var n=t(e=1<e?1:e<0?0:e);if($bm_isInstanceOfArray(s)){for(var o=s.length,h=createTypedArray("float32",o),l=0;l<o;l+=1)h[l]=(a[l]-s[l])*n+s[l];return h}return(a-s)*n+s}function nearestKey(t){var e,i,r,s=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(i=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,r=data.k[0].t;else{for(e=0;e<s-1;e+=1){if(t===data.k[e].t){i=e+1,r=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){r=t-data.k[e].t>data.k[e+1].t-t?(i=e+2,data.k[e+1].t):(i=e+1,data.k[e].t);break}}-1===i&&(i=e+1,r=data.k[e].t)}else r=i=0;var a={};a.index=i,a.time=r/elem.comp.globalData.frameRate}function key(t){if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);for(var e={time:data.k[--t].t/elem.comp.globalData.frameRate,value:[]},i=data.k[t].hasOwnProperty("s")?data.k[t].s:data.k[t-1].e,r=i.length,s=0;s<r;s+=1)e[s]=i[s],e.value[s]=i[s]}function framesToTime(t,e){e=e||elem.comp.globalData.frameRate}function timeToFrames(t,e){t||0===t||(t=time),e=e||elem.comp.globalData.frameRate}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){elem.sourceRectAtTime()}function substring(t,e){if("string"==typeof value)return void 0===e?value.substring(t):value.substring(t,e)}function substr(t,e){if("string"==typeof value)return void 0===e?value.substr(t):value.substr(t,e)}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,_needsRandom&&seedRandom(randSeed),this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),($bm_transform=transform)&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect=effect||thisLayer(4),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt="shape"===scoped_bm_rt.propType?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression}return ob.initiateExpression=initiateExpression,ob}
vendor: 8,847 bytes, line 12
12(),expressionHelpers={searchExpressions:function(t,e,i){e.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(t,e,i).bind(i)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),i=this.getValueAtTime(t+-.01),r=0;if(e.length){for(var s=0;s<e.length;s+=1)r+=Math.pow(i[s]-e[s],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e=this.getValueAtTime(t),i=this.getValueAtTime(t+-.001);if(e.length)for(var r=createTypedArray("float32",e.length),s=0;s<e.length;s+=1)r[s]=(i[s]-e[s])/-.001;else r=(i-e)/-.001;return r},getValueAtTime:function(t){return(t=(t*=this.elem.globalData.frameRate)-this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}},ShapePathInterface=(!function(){function n(t,e,i){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var r,s,a,n,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[l.length-1].t;if(h<=p)return this.pv;if(i?s=p-(r=e?Math.abs(p-elem.comp.globalData.frameRate*e):Math.max(0,p-this.elem.data.ip)):((!e||e>l.length-1)&&(e=l.length-1),r=p-(s=l[l.length-1-e].t)),"pingpong"===t){if(Math.floor((h-s)/r)%2!=0)return this.getValueAtTime((r-(h-s)%r+s)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var m=this.getValueAtTime(s/this.comp.globalData.frameRate,0),f=this.getValueAtTime(p/this.comp.globalData.frameRate,0),c=this.getValueAtTime(((h-s)%r+s)/this.comp.globalData.frameRate,0),d=Math.floor((h-s)/r);if(this.pv.length){for(n=(o=new Array(m.length)).length,a=0;a<n;a+=1)o[a]=(f[a]-m[a])*d+c[a];return o}return(f-m)*d+c}if("continue"===t){var u=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n=(o=new Array(u.length)).length,a=0;a<n;a+=1)o[a]=u[a]+(u[a]-y[a])*((h-p)/this.comp.globalData.frameRate)/5e-4;return o}return u+(h-p)/.001*(u-y)}}return this.getValueAtTime(((h-s)%r+s)/this.comp.globalData.frameRate,0)}function o(t,e,i){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var r,s,a,n,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[0].t;if(p<=h)return this.pv;if(i?s=p+(r=e?Math.abs(elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-p)):r=(s=l[e=!e||e>l.length-1?l.length-1:e].t)-p,"pingpong"===t){if(Math.floor((p-h)/r)%2==0)return this.getValueAtTime(((p-h)%r+p)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var m=this.getValueAtTime(p/this.comp.globalData.frameRate,0),f=this.getValueAtTime(s/this.comp.globalData.frameRate,0),c=this.getValueAtTime((r-(p-h)%r+p)/this.comp.globalData.frameRate,0),d=Math.floor((p-h)/r)+1;if(this.pv.length){for(n=(o=new Array(m.length)).length,a=0;a<n;a+=1)o[a]=c[a]-(f[a]-m[a])*d;return o}return c-(f-m)*d}if("continue"===t){var u=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n=(o=new Array(u.length)).length,a=0;a<n;a+=1)o[a]=u[a]+(u[a]-y[a])*(p-h)/.001;return o}return u+(u-y)*(p-h)/.001}}return this.getValueAtTime((r-(p-h)%r+p)/this.comp.globalData.frameRate,0)}function h(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;for(var i,r=this.comp.renderedFrame/this.comp.globalData.frameRate,s=r-t,a=1<e?(r+t-s)/(e-1):1,n=0,o=0,h=this.pv.length?createTypedArray("float32",this.pv.length):0;n<e;){if(i=this.getValueAtTime(s+n*a),this.pv.length)for(o=0;o<this.pv.length;o+=1)h[o]+=i[o];else h+=i;n+=1}if(this.pv.length)for(o=0;o<this.pv.length;o+=1)h[o]/=e;else h/=e;return h}var r=TransformPropertyFactory.getTransformProperty,l=(TransformPropertyFactory.getTransformProperty=function(t,e,i){t=r(t,e,i);return t.dynamicProperties.length?t.getValueAtTime=function(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e,i,r,s,a=this._transformCachingAtTime.v;return a.cloneFromProps(this.pre.props),this.appliedTransformations<1&&(i=this.a.getValueAtTime(t),a.translate(-i[0],-i[1],i[2])),this.appliedTransformations<2&&(i=this.s.getValueAtTime(t),a.scale(i[0],i[1],i[2])),this.sk&&this.appliedTransformations<3&&(i=this.sk.getValueAtTime(t),e=this.sa.getValueAtTime(t),a.skewFromAxis(-i,e)),this.r&&this.appliedTransformations<4?(i=this.r.getValueAtTime(t),a.rotate(-i)):!this.r&&this.appliedTransformations<4&&(e=this.rz.getValueAtTime(t),i=this.ry.getValueAtTime(t),r=this.rx.getValueAtTime(t),s=this.or.getValueAtTime(t),a.rotateZ(-e.v).rotateY(i.v).rotateX(r.v).rotateZ(-s[2]).rotateY(s[1]).rotateX(s[0])),this.data.p&&this.data.p.s?(e=this.px.getValueAtTime(t),i=this.py.getValueAtTime(t),this.data.p.z?(r=this.pz.getValueAtTime(t),a.translate(e,i,-r)):a.translate(e,i,0)):(s=this.p.getValueAtTime(t),a.translate(s[0],s[1],-s[2])),a}.bind(t):t.getValueAtTime=function(t){}.bind(t),t.setGroupProperty=expressionHelpers.setGroupProperty,t},PropertyFactory.getProp);PropertyFactory.getProp=function(t,e,i,r,s){var r=l(t,e,i,r,s),a=(r.kf?r.getValueAtTime=expressionHelpers.getValueAtTime.bind(r):r.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(r),r.setGroupProperty=expressionHelpers.setGroupProperty,r.loopOut=n,r.loopIn=o,r.smooth=h,r.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(r),r.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(r),r.numKeys=1===e.a?e.k.length:0,r.propertyIndex=e.ix,0);return 0!==i&&(a=createTypedArray("float32",(1===e.a?e.k[0].s:e.k).length)),r._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:a},expressionHelpers.searchExpressions(t,e,r),r.k&&s.addDynamicProperty(r),r};var t=ShapePropertyFactory.getConstructorFunction(),e=ShapePropertyFactory.getKeyframedConstructorFunction();function i(){}i.prototype={vertices:function(t,e){this.k&&this.getValue();for(var i=this.v,r=(i=void 0!==e?this.getValueAtTime(e,0):i)._length,s=i[t],a=i.v,n=createSizedArray(r),o=0;o<r;o+=1)n[o]="i"===t||"o"===t?[s[o][0]-a[o][0],s[o][1]-a[o][1]]:[s[o][0],s[o][1]];return n},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){for(var i=this.v,e=(void 0!==e&&(i=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(i)),this._segmentsLength),r=e.lengths,s=e.totalLength*t,a=0,n=r.length,o=0;a<n;){if(o+r[a].addedLength>s){var h=a,l=i.c&&a===n-1?0:a+1,p=(s-o)/r[a].addedLength,m=bez.getPointInSegment(i.v[h],i.v[l],i.o[h],i.i[l],p,r[a]);break}o+=r[a].addedLength,a+=1}return m=m||(i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]])},vectorOnPath:function(t,e,i){t=1==t?this.v.c?0:.999:t;var r=this.pointOnPath(t,e),t=this.pointOnPath(t+.001,e),e=t[0]-r[0],t=t[1]-r[1],r=Math.sqrt(Math.pow(e,2)+Math.pow(t,2));return 0===r?[0,0]:"tangent"===i?[e/r,t/r]:[-t/r,e/r]},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([i],t),extendPrototype([i],e),e.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shape_pool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),(t=(t*=this.elem.globalData.frameRate)-this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},e.prototype.initiateExpression=ExpressionManager.initiateExpression;var a=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,r,s){r=a(t,e,i,r,s);return r.propertyIndex=e.ix,r.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,r):4===i&&expressionHelpers.searchExpressions(t,e.ks,r),r.k&&t.addDynamicProperty(r),r}}(),TextProperty.prototype.getExpressionValue=function(t,e){var i,e=this.calculateExpression(e);return t.t!==e?(this.copyData(i={},t),i.t=e.toString(),i.__complete=!1,i):t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){if(this.data.d.x)return this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0}
12,function(t,e,i){var r=e.sh;function s(t){if("Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t)return s.path}e=propertyGroupFactory(s,i);return r.setGroupProperty(PropertyInterface("Path",e)),Object.defineProperties(s,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),s}),propertyGroupFactory=function(e,i){return function(t){return(t=void 0===t?1:t)<=0?e:i(t-1)}},PropertyInterface=function(t,e){var i={_name:t};return function(t){return(t=void 0===t?1:t)<=0?i:e(--t)}},ShapeExpressionInterface=function(){function n(t,e,i){for(var r=[],s=t?t.length:0,a=0;a<s;a+=1)"gr"==t[a].ty?r.push(function(t,e,i){function r(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return r.content;default:return r.transform}}r.propertyGroup=propertyGroupFactory(r,i);i=function(t,e,i){function r(t){for(var e=0,i=s.length;e<i;){if(s[e]._name===t||s[e].mn===t||s[e].propertyIndex===t||s[e].ix===t||s[e].ind===t)return s[e];e+=1}if("number"==typeof t)return s[t-1]}r.propertyGroup=propertyGroupFactory(r,i),s=n(t.it,e.it,r.propertyGroup),r.numProperties=s.length;var s,i=o(t.it[t.it.length-1],e.it[e.it.length-1],r.propertyGroup);return r.transform=i,r.propertyIndex=t.cix,r._name=t.nm,r}(t,e,r.propertyGroup),e=o(t.it[t.it.length-1],e.it[e.it.length-1],r.propertyGroup);return r.content=i,r.transform=e,Object.defineProperty(r,"_name",{get:function(){return t.nm}}),r.numProperties=t.np,r.propertyIndex=t.ix,r.nm=t.nm,r.mn=t.mn,r}(t[a],e[a],i)):"fl"==t[a].ty?r.push(function(t,e,i){function r(t){return"Color"===t||"color"===t?r.color:"Opacity"===t||"opacity"===t?r.opacity:void 0}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),r}(t[a],e[a],i)):"st"==t[a].ty?r.push(function(e,i,t){var t=propertyGroupFactory(o,t),r=propertyGroupFactory(void 0,t);var s,a=e.d?e.d.length:0,n={};for(s=0;s<a;s+=1)!function(t){Object.defineProperty(n,e.d[t].nm,{get:ExpressionPropertyInterface(i.d.dataProps[t].p)})}(s),i.d.dataProps[s].p.setGroupProperty(r);function o(t){return"Color"===t||"color"===t?o.color:"Opacity"===t||"opacity"===t?o.opacity:"Stroke Width"===t||"stroke width"===t?o.strokeWidth:void 0}return Object.defineProperties(o,{color:{get:ExpressionPropertyInterface(i.c)},opacity:{get:ExpressionPropertyInterface(i.o)},strokeWidth:{get:ExpressionPropertyInterface(i.w)},dash:{get:function(){return n}},_name:{value:e.nm},mn:{value:e.mn}}),i.c.setGroupProperty(PropertyInterface("Color",t)),i.o.setGroupProperty(PropertyInterface("Opacity",t)),i.w.setGroupProperty(PropertyInterface("Stroke Width",t)),o}(t[a],e[a],i)):"tm"==t[a].ty?r.push(function(e,t,i){function r(t){return t===e.e.ix||"End"===t||"end"===t?r.end:t===e.s.ix?r.start:t===e.o.ix?r.offset:void 0}var s=propertyGroupFactory(r,i);return r.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",s)),t.e.setGroupProperty(PropertyInterface("End",s)),t.o.setGroupProperty(PropertyInterface("Offset",s)),r.propertyIndex=e.ix,r.propertyGroup=i,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"tr"!=t[a].ty&&("el"==t[a].ty?r.push(function(e,t,i){function r(t){return e.p.ix===t?r.position:e.s.ix===t?r.size:void 0}i=propertyGroupFactory(r,i),r.propertyIndex=e.ix,t="tm"===t.sh.ty?t.sh.prop:t.sh;return t.s.setGroupProperty(PropertyInterface("Size",i)),t.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(t.s)},position:{get:ExpressionPropertyInterface(t.p)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"sr"==t[a].ty?r.push(function(e,t,i){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.rotation:e.pt.ix===t?r.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?r.outerRadius:e.os.ix===t?r.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?r.innerRoundness:void 0:r.innerRadius}
12i=propertyGroupFactory(r,i),t="tm"===t.sh.ty?t.sh.prop:t.sh;r.propertyIndex=e.ix,t.or.setGroupProperty(PropertyInterface("Outer Radius",i)),t.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),t.pt.setGroupProperty(PropertyInterface("Points",i)),t.p.setGroupProperty(PropertyInterface("Position",i)),t.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(t.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),t.is.setGroupProperty(PropertyInterface("Inner Roundness",i)));return Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(t.p)},rotation:{get:ExpressionPropertyInterface(t.r)},points:{get:ExpressionPropertyInterface(t.pt)},outerRadius:{get:ExpressionPropertyInterface(t.or)},outerRoundness:{get:ExpressionPropertyInterface(t.os)},innerRadius:{get:ExpressionPropertyInterface(t.ir)},innerRoundness:{get:ExpressionPropertyInterface(t.is)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"sh"==t[a].ty?r.push(ShapePathInterface(t[a],e[a],i)):"rc"==t[a].ty?r.push(function(e,t,i){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?r.size:void 0}i=propertyGroupFactory(r,i),t="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,t.p.setGroupProperty(PropertyInterface("Position",i)),t.s.setGroupProperty(PropertyInterface("Size",i)),t.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(t.p)},roundness:{get:ExpressionPropertyInterface(t.r)},size:{get:ExpressionPropertyInterface(t.s)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"rd"==t[a].ty?r.push(function(e,t,i){function r(t){if(e.r.ix===t||"Round Corners 1"===t)return r.radius}i=propertyGroupFactory(r,i);return r.propertyIndex=e.ix,t.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(t.rd)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"rp"==t[a].ty&&r.push(function(e,t,i){function r(t){return e.c.ix===t||"Copies"===t?r.copies:e.o.ix===t||"Offset"===t?r.offset:void 0}i=propertyGroupFactory(r,i);return r.propertyIndex=e.ix,t.c.setGroupProperty(PropertyInterface("Copies",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(t.c)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)));return r}function o(e,t,i){function r(t){return e.a.ix===t||"Anchor Point"===t?r.anchorPoint:e.o.ix===t||"Opacity"===t?r.opacity:e.p.ix===t||"Position"===t?r.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?r.rotation:e.s.ix===t||"Scale"===t?r.scale:e.sk&&e.sk.ix===t||"Skew"===t?r.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?r.skewAxis:void 0}var s=propertyGroupFactory(r,i);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",s)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",s)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",s)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",s)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",s)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",s)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",s))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",s)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),r.ty="tr",r.mn=e.mn,r.propertyGroup=i,r}return function(t,e,r){var s;function i(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?r:s[t-1];for(var e=0,i=s.length;e<i;){if(s[e]._name===t)return s[e];e+=1}}return i.propertyGroup=r,s=n(t,e,i),i.numProperties=s.length,i}}(),TextExpressionInterface=function(e){var i;function r(t){if("ADBE Text Document"===t)return r.sourceText}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var t=e.textProperty.currentData.t;return void 0!==t&&(e.textProperty.currentData.t=void 0,(i=new String(t)).value=t||new String(t)),i}}),r},LayerExpressionInterface=function(){function s(t,e){var i=new Matrix;if(i.reset(),void 0!==e?i=this._elem.finalTransform.mProp.getValueAtTime(e):this._elem.finalTransform.mProp.applyToMatrix(i),this._elem.hierarchy&&this._elem.hierarchy.length)for(var r=this._elem.hierarchy.length,s=0;s<r;s+=1)this._elem.hierarchy[s].finalTransform.mProp.applyToMatrix(i);return i.applyToPointArray(t[0],t[1],t[2]||0)}function a(t,e){var i=new Matrix;if(i.reset(),void 0!==e?i=this._elem.finalTransform.mProp.getValueAtTime(e):this._elem.finalTransform.mProp.applyToMatrix(i),this._elem.hierarchy&&this._elem.hierarchy.length)for(var r=this._elem.hierarchy.length,s=0;s<r;s+=1)this._elem.hierarchy[s].finalTransform.mProp.applyToMatrix(i);return i.inversePoint(t)}function n(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length)for(var i=this._elem.hierarchy.length,r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}function o(){return[1,1,1,1]}return function(e){function i(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return i.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return r;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return i.effect;case"ADBE Text Properties":return i.textInterface}}i.toWorld=s,i.fromWorld=a,i.toComp=s,i.fromComp=n,i.sampleImage=o,i.sourceRectAtTime=e.sourceRectAtTime.bind(e);var r,t=getDescriptor(r=TransformExpressionInterface((i._elem=e).finalTransform.mProp),"anchorPoint");return Object.defineProperties(i,{hasParent:{get:function(){return e.hierarchy.length}},parent:{get:function(){return e.hierarchy[0].layerInterface}},rotation:getDescriptor(r,"rotation"),scale:getDescriptor(r,"scale"),position:getDescriptor(r,"position"),opacity:getDescriptor(r,"opacity"),anchorPoint:t,anchor_point:t,transform:{get:function(){return r}},active:{get:function(){return e.isInRange}}}),i.startTime=e.data.st,i.index=e.data.ind,i.source=e.data.refId,i.height=0===e.data.ty?e.data.h:100,i.width=0===e.data.ty?e.data.w:100,i.inPoint=e.data.ip/e.comp.globalData.frameRate,i.outPoint=e.data.op/e.comp.globalData.frameRate,i._name=e.data.nm,i.registerMaskInterface=function(t){i.mask=new MaskManagerInterface(t,e)},i.registerEffectsInterface=function(t){i.effect=t},i}}(),CompExpressionInterface=function(r){function t(t){for(var e=0,i=r.layers.length;e<i;){if(r.layers[e].nm===t||r.layers[e].ind===t)return r.elements[e].layerInterface;e+=1}return null}return Object.defineProperty(t,"_name",{value:r.data.nm}),(t.layer=t).pixelAspect=1,t.height=r.data.h||r.globalData.compSize.h,t.width=r.data.w||r.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/r.globalData.frameRate,t.displayStartTime=0,t.numLayers=r.layers.length,t},TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity}}var i,r,s,a;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?i=ExpressionPropertyInterface(t.p):(r=ExpressionPropertyInterface(t.px),s=ExpressionPropertyInterface(t.py),t.pz&&(
12a=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?i():[r(),s(),a?a():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},ProjectInterface=function(){function e(t){this.compositions.push(t)}return function(){function t(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),EffectsExpressionInterface=function(){function p(t,e,i,r){var s=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===e?i.comp.compInterface(t.p.v):s()}}return{createEffectsInterface:function(t,e){if(t.effectsManager){var i,r=[],s=t.data.ef,a=t.effectsManager.effectElements.length;for(i=0;i<a;i+=1)r.push(function t(s,e,i,r){function a(t){for(var e=s.ef,i=0,r=e.length;i<r;){if(t===e[i].nm||t===e[i].mn||t===e[i].ix)return 5===e[i].ty?o[i]:o[i]();i+=1}throw new Error}var n=propertyGroupFactory(a,i);var o=[];var h,l=s.ef.length;for(h=0;h<l;h+=1)5===s.ef[h].ty?o.push(t(s.ef[h],e.effectElements[h],e.effectElements[h].propertyGroup,r)):o.push(p(e.effectElements[h],s.ef[h].ty,r,n));"ADBE Color Control"===s.mn&&Object.defineProperty(a,"color",{get:function(){return o[0]()}});Object.defineProperties(a,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:n}});a.active=a.enabled=0!==s.en;return a}(s[i],t.effectsManager.effectElements[i],e,t));var n=t.data.ef||[],o=function(t){for(i=0,a=n.length;i<a;){if(t===n[i].nm||t===n[i].mn||t===n[i].ix)return r[i];i+=1}};return Object.defineProperty(o,"numProperties",{get:function(){return n.length}}),o}}}}(),MaskManagerInterface=function(){function a(t,e){this._mask=t,this._data=e}Object.defineProperty(a.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(a.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}});return function(e,t){for(var i=createSizedArray(e.viewData.length),r=e.viewData.length,s=0;s<r;s+=1)i[s]=new a(e.viewData[s],e.masksProperties[s]);return function(t){for(s=0;s<r;){if(e.masksProperties[s].nm===t)return i[s];s+=1}}}}(),ExpressionPropertyInterface=function(){var p={pv:0,v:0,mult:1},m={pv:[0,0,0],v:[0,0,0],mult:1};function f(r,s,a){Object.defineProperty(r,"velocity",{get:function(){return s.getVelocityAtTime(s.comp.currentFrame)}}),r.numKeys=s.keyframes?s.keyframes.length:0,r.key=function(t){var e,i;return r.numKeys?(e="",e="s"in s.keyframes[t-1]?s.keyframes[t-1].s:"e"in s.keyframes[t-2]?s.keyframes[t-2].e:s.keyframes[t-2].s,(i="unidimensional"===a?new Number(e):Object.assign({},e)).time=s.keyframes[t-1].t/s.elem.comp.globalData.frameRate,i.value="unidimensional"===a?e[0]:e,i):0},r.valueAtTime=s.getValueAtTime,r.speedAtTime=s.getSpeedAtTime,r.velocityAtTime=s.getVelocityAtTime,r.propertyGroup=s.propertyGroup}function c(){return p}return function(t){return t?"unidimensional"===t.propType?(o=1/(n=(n=t)&&"pv"in n?n:p).mult,h=n.pv*o,(l=new Number(h)).value=h,f(l,n,"unidimensional"),function(){return n.k&&n.getValue(),h=n.v*o,l.value!==h&&((l=new Number(h)).value=h,f(l,n,"unidimensional")),l}):(i=1/(e=(e=t)&&"pv"in e?e:m).mult,r=e.pv.length,s=createTypedArray("float32",r),a=createTypedArray("float32",r),s.value=a,f(s,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<r;t+=1)s[t]=a[t]=e.v[t]*i;return s}):c;var e,i,r,s,a,n,o,h,l}}();function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function LayerIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function MaskIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(){}function EffectsManager(t,e){var i=t.ef||[];this.effectElements=[];for(var r,s=i.length,a=0;a<s;a++)r=new GroupEffect(i[a],e),this.effectElements.push(r)}function GroupEffect(t,e){this.init(t,e)}!function(){var r=function(t,e){this.pv=1,this.comp=t.comp,this.elem=t,this.mult=.01,this.propType="textSelector",this.textTotal=e.totalChars,this.selectorValue=100,this.lastValue=[1,1,1],this.k=!0,this.x=!0,this.getValue=ExpressionManager.initiateExpression.bind(this)(t,e,this),this.getMult=i,this.getVelocityAtTime=expressionHelpers.getVelocityAtTime,this.kf?this.getValueAtTime=expressionHelpers.getValueAtTime.bind(this):this.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(this),this.setGroupProperty=expressionHelpers.setGroupProperty};function i(t,e){return this.textIndex=t+1,this.textTotal=e,this.v=this.getValue()*this.mult,this.v}var s=TextSelectorProp.getTextSelectorProp;
12TextSelectorProp.getTextSelectorProp=function(t,e,i){return 1===e.t?new r(t,e,i):s(t,e,i)}}(),extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);for(var i,r=this.data.ef.length,s=this.data.ef,a=0;a<r;a+=1){switch(i=null,s[a].ty){case 0:i=new SliderEffect(s[a],e,this);break;case 1:i=new AngleEffect(s[a],e,this);break;case 2:i=new ColorEffect(s[a],e,this);break;case 3:i=new PointEffect(s[a],e,this);break;case 4:case 7:i=new CheckboxEffect(s[a],e,this);break;case 10:i=new LayerIndexEffect(s[a],e,this);break;case 11:i=new MaskIndexEffect(s[a],e,this);break;case 5:i=new EffectsManager(s[a],e,this);break;default:i=new NoValueEffect(s[a],e,this)}i&&this.effectElements.push(i)}};var lottie={},_isFrozen=!1;function setLocationHref(t){locationHref=t}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){subframeEnabled=t}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":defaultCurveSegments=200;break;case"medium":defaultCurveSegments=50;break;case"low":defaultCurveSegments=10}else!isNaN(t)&&1<t&&(defaultCurveSegments=t);roundValues(!(50<=defaultCurveSegments))}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}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i<e.length;i++){var r=e[i].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocationHref,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.__getFactory=getFactory,lottie.version="5.7.3";var standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="",scripts,index,myScript,queryString,renderer,readyStateCheckInterval=(standalone&&(scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""},queryString=myScript.src.replace(/^[^\?]+\??/,""),renderer=getQueryVariable("renderer")),setInterval(checkReady,100));return lottie}); 13this.PIXI=this.PIXI||{};var _pixi_constants=function(E){"use strict";return E.BLEND_MODES={NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16,NORMAL_NPM:17,ADD_NPM:18,SCREEN_NPM:19,NONE:20,SRC_OVER:0,SRC_IN:21,SRC_OUT:22,SRC_ATOP:23,DST_OVER:24,DST_IN:25,DST_OUT:26,DST_ATOP:27,ERASE:26,SUBTRACT:28},E.DRAW_MODES={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},E.ENV={WEBGL_LEGACY:0,WEBGL:1,WEBGL2:2},E.FORMATS={RGBA:6408,RGB:6407,ALPHA:6406,LUMINANCE:6409,LUMINANCE_ALPHA:6410,DEPTH_COMPONENT:6402,DEPTH_STENCIL:34041}
13,E.GC_MODES={AUTO:0,MANUAL:1},E.MIPMAP_MODES={OFF:0,POW2:1,ON:2},E.PRECISION={LOW:"lowp",MEDIUM:"mediump",HIGH:"highp"},E.RENDERER_TYPE={UNKNOWN:0,WEBGL:1,CANVAS:2},E.SCALE_MODES={LINEAR:1,NEAREST:0},E.TARGETS={TEXTURE_2D:3553,TEXTURE_CUBE_MAP:34067,TEXTURE_2D_ARRAY:35866,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074},E.TYPES={UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123,UNSIGNED_SHORT_5_6_5:33635,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,FLOAT:5126,HALF_FLOAT:36193},E.WRAP_MODES={CLAMP:33071,REPEAT:10497,MIRRORED_REPEAT:33648},E}({});Object.assign(this.PIXI,_pixi_constants); 14this.PIXI=this.PIXI||{};var _pixi_math=function(t){"use strict";function n(t,i){void 0===i&&(i=0),this.x=t=void 0===t?0:t,this.y=i}function s(t,i,s,h){void 0===h&&(h=0),this._x=s=void 0===s?0:s,this._y=h,this.cb=t,this.scope=i}n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.copyFrom=function(t){return this.set(t.x,t.y),this},n.prototype.copyTo=function(t){return t.set(this.x,this.y),t},n.prototype.equals=function(t){return t.x===this.x&&t.y===this.y},n.prototype.set=function(t,i){this.x=t||0,this.y=i||(0!==i?this.x:0)};function i(t,i,s,h,o,n){void 0===i&&(i=0),void 0===s&&(s=0),void 0===h&&(h=1),void 0===o&&(o=0),void 0===n&&(n=0),this.a=t=void 0===t?1:t,this.b=i,this.c=s,this.d=h,this.tx=o,this.ty=n,this.array=null}var h={x:{configurable:!0},y:{configurable:!0}},a=(s.prototype.clone=function(t,i){t=(t=void 0===t?null:t)||this.cb,i=(i=void 0===i?null:i)||this.scope;return new s(t,i,this._x,this._y)},s.prototype.set=function(t,i){t=t||0,i=i||(0!==i?t:0);this._x===t&&this._y===i||(this._x=t,this._y=i,this.cb.call(this.scope))},s.prototype.copyFrom=function(t){return this._x===t.x&&this._y===t.y||(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this},s.prototype.copyTo=function(t){return t.set(this._x,this._y),t},s.prototype.equals=function(t){return t.x===this._x&&t.y===this._y},h.x.get=function(){return this._x},h.x.set=function(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))},h.y.get=function(){return this._y},h.y.set=function(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))},Object.defineProperties(s.prototype,h),2*Math.PI),h=180/Math.PI,o=Math.PI/180,r={POLY:0,RECT:1,CIRC:2,ELIP:3,RREC:4},e={IDENTITY:{configurable:!0},TEMP_MATRIX:{configurable:!0}},c=(i.prototype.fromArray=function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]},i.prototype.set=function(t,i,s,h,o,n){return this.a=t,this.b=i,this.c=s,this.d=h,this.tx=o,this.ty=n,this},i.prototype.toArray=function(t,i){this.array||(this.array=new Float32Array(9));i=i||this.array;return t?(i[0]=this.a,i[1]=this.b,i[2]=0,i[3]=this.c,i[4]=this.d,i[5]=0,i[6]=this.tx,i[7]=this.ty):(i[0]=this.a,i[1]=this.c,i[2]=this.tx,i[3]=this.b,i[4]=this.d,i[5]=this.ty,i[6]=0,i[7]=0),i[8]=1,i},i.prototype.apply=function(t,i){i=i||new n;var s=t.x,t=t.y;return i.x=this.a*s+this.c*t+this.tx,i.y=this.b*s+this.d*t+this.ty,i},i.prototype.applyInverse=function(t,i){i=i||new n;var s=1/(this.a*this.d+this.c*-this.b),h=t.x,t=t.y;return i.x=this.d*s*h+-this.c*s*t+(this.ty*this.c-this.tx*this.d)*s,i.y=this.a*s*t+-this.b*s*h+(-this.ty*this.a+this.tx*this.b)*s,i},i.prototype.translate=function(t,i){return this.tx+=t,this.ty+=i,this},i.prototype.scale=function(t,i){return this.a*=t,this.d*=i,this.c*=t,this.b*=i,this.tx*=t,this.ty*=i,this},i.prototype.rotate=function(t){var i=Math.cos(t),t=Math.sin(t),s=this.a,h=this.c,o=this.tx;return this.a=s*i-this.b*t,this.b=s*t+this.b*i,this.c=h*i-this.d*t,this.d=h*t+this.d*i,this.tx=o*i-this.ty*t,this.ty=o*t+this.ty*i,this},i.prototype.append=function(t){var i=this.a,s=this.b,h=this.c,o=this.d;return this.a=t.a*i+t.b*h,this.b=t.a*s+t.b*o,this.c=t.c*i+t.d*h,this.d=t.c*s+t.d*o,this.tx=t.tx*i+t.ty*h+this.tx,this.ty=t.tx*s+t.ty*o+this.ty,this},i.prototype.setTransform=function(t,i,s,h,o,n,r,e,a){return this.a=Math.cos(r+a)*o,this.b=Math.sin(r+a)*o,this.c=-Math.sin(r-e)*n,this.d=Math.cos(r-e)*n,this.tx=t-(s*this.a+h*this.c),this.ty=i-(s*this.b+h*this.d),this},i.prototype.prepend=function(t){var i,s,h=this.tx;return 1===t.a&&0===t.b&&0===t.c&&1===t.d||(i=this.a,s=this.c,this.a=i*t.a+this.b*t.c,this.b=i*t.b+this.b*t.d,this.c=s*t.a+this.d*t.c,this.d=s*t.b+this.d*t.d),this.tx=h*t.a+this.ty*t.c+t.tx,this.ty=h*t.b+this.ty*t.d+t.ty,this},i.prototype.decompose=function(t){var i=this.a,s=this.b,h=this.c,o=this.d,n=-Math.atan2(-h,o),r=M
14ath.atan2(s,i),e=Math.abs(n+r);return e<1e-5||Math.abs(a-e)<1e-5?(t.rotation=r,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=n,t.skew.y=r),t.scale.x=Math.sqrt(i*i+s*s),t.scale.y=Math.sqrt(h*h+o*o),t.position.x=this.tx,t.position.y=this.ty,t},i.prototype.invert=function(){var t=this.a,i=this.b,s=this.c,h=this.d,o=this.tx,n=t*h-i*s;return this.a=h/n,this.b=-i/n,this.c=-s/n,this.d=t/n,this.tx=(s*this.ty-h*o)/n,this.ty=-(t*this.ty-i*o)/n,this},i.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},i.prototype.clone=function(){var t=new i;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},i.prototype.copyTo=function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},i.prototype.copyFrom=function(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this},e.IDENTITY.get=function(){return new i},e.TEMP_MATRIX.get=function(){return new i},Object.defineProperties(i,e),[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1]),y=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],u=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],p=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],d=[],x=[],f=Math.sign;for(var l=0;l<16;l++){var _=[];d.push(_);for(var b=0;b<16;b++)for(var v=f(c[l]*c[b]+u[l]*y[b]),w=f(y[l]*c[b]+p[l]*y[b]),g=f(c[l]*u[b]+u[l]*p[b]),I=f(y[l]*u[b]+p[l]*p[b]),M=0;M<16;M++)if(c[M]===v&&y[M]===w&&u[M]===g&&p[M]===I){_.push(M);break}}for(var m=0;m<16;m++){var D=new i;D.set(c[m],y[m],u[m],p[m],0,0),x.push(D)}function T(){this.worldTransform=new i,this.localTransform=new i,this.position=new s(this.onChange,this,0,0),this.scale=new s(this.onChange,this,1,1),this.pivot=new s(this.onChange,this,0,0),this.skew=new s(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}function E(t,i,s,h){void 0===t&&(t=0),void 0===i&&(i=0),void 0===s&&(s=0),void 0===h&&(h=0),this.x=Number(t),this.y=Number(i),this.width=Number(s),this.height=Number(h),this.type=r.RECT}function R(t,i,s){void 0===i&&(i=0),void 0===s&&(s=0),this.x=t=void 0===t?0:t,this.y=i,this.radius=s,this.type=r.CIRC}function P(t,i,s,h){void 0===i&&(i=0),void 0===s&&(s=0),void 0===h&&(h=0),this.x=t=void 0===t?0:t,this.y=i,this.width=s,this.height=h,this.type=r.ELIP}function A(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];if((t=Array.isArray(t[0])?t[0]:t)[0]instanceof n){for(var s=[],h=0,o=t.length;h<o;h++)s.push(t[h].x,t[h].y);t=s}this.points=t,this.type=r.POLY,this.closeStroke=!0}function N(t,i,s,h,o){void 0===i&&(i=0),void 0===s&&(s=0),void 0===h&&(h=0),void 0===o&&(o=20),this.x=t=void 0===t?0:t,this.y=i,this.width=s,this.height=h,this.radius=o,this.type=r.RREC}var O={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(t){return c[t]},uY:function(t){return y[t]},vX:function(t){return u[t]},vY:function(t){return p[t]},inv:function(t){return 8&t?15&t:7&-t},add:function(t,i){return d[t][i]},sub:function(t,i){return d[t][O.inv(i)]},rotate180:function(t){return 4^t},isVertical:function(t){return 2==(3&t)},byDirection:function(t,i){return 2*Math.abs(t)<=Math.abs(i)?0<=i?O.S:O.N:2*Math.abs(i)<=Math.abs(t)?0<t?O.E:O.W:0<i?0<t?O.SE:O.SW:0<t?O.NE:O.NW},matrixAppendRotationInv:function(t,i,s,h){void 0===s&&(s=0),void 0===h&&(h=0);i=x[O.inv(i)];i.tx=s,i.ty=h,t.append(i)}},e={rotation:{configurable:!0}},e=(T.prototype.onChange=function(){this._localID++},T.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew._y),this._sx=Math.sin(this._rotation+this.skew._y),this._cy=-Math.sin(this._rotation-this.skew._x),this._sy=Math.cos(this._rotation-this.skew._x),this._localID++},T.prototype.updateLocalTransform=function(){var t=this.localTransform;this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale._x,t.b=this._sx*this.scale._x,t.c=this._cy*this.scale._y,t.d=this._sy*this.scale._y,t.tx=this.position._x-(this.pivot._x*t.a+this.pivot._y*t.c),t.ty=this.position._y-(this.pivot._x*t.b+this.pivot._y*t.d),this._currentLocalID=this._localID,this._parentID=-1)},T.prototype.updateTransform=function(t){var i,s,h=this.localTransform;this._localID!==this._currentLocalID&&(h.a=this._cx*this.scale._x,h.b=this._sx*this.scale._x,h.c=this._cy*this.scale._y,h.d=this._sy*this.scale._y,h.tx=this.position._x-(this.pivot._x*h.a+this.pivot._y*h.c),h.ty=this.position._y-(this.pivot._x*h.b+this.pivot._y*h.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID&&(i=t.worldTransform,(s=this.worldTransform).a=h.a*i.a+h.b*i.c,s.b=h.a*i.b+h.b*i.d,s.c=h.c*i.a+h.d*i.c,s.d=h.c*i.b+h.d*i.d,s.tx=h.tx*i.a+h.ty*i.c+i.tx,s.ty=h.tx*i.b+h.ty*i.d+i.ty,this._parentID=t._worldID,this._worldID++)},T.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},e.rotation.get=function(){return this._rotation},e.rotation.set=function(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())},Object.defineProperties(T.prototype,e),T.IDENTITY=new T,{left:{configurable:!0},right:{configurable:!0},top:{configurable:!0},bottom:{configurable:!0}}),k={EMPTY:{configurable:!0}};e.left.get=function(){return this.x},e.right.get=function(){return this.x+this.width},e.top.get=function(){return this.y},e.bottom.get=function(){return this.y+this.height},k.EMPTY.get=function(){return new E(0,0,0,0)},E.prototype.clone=function(){return new E(this.x,this.y,this.width,this.height)},E.prototype.copyFrom=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},E.prototype.copyTo=function(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t},E.prototype.contains=function(t,i){return!(this.width<=0||this.height<=0)&&(t>=this.x&&t<this.x+this.width&&i>=this.y&&i<this.y+this.height)},E.prototype.pad=function(t,i){t=t||0,i=i||(0!==i?t:0),this.x-=t,this.y-=i,this.width+=2*t,this.height+=2*i},E.prototype.fit=function(t){var i=Math.max(this.x,t.x),s=Math.min(this.x+this.width,t.x+t.width),h=Math.max(this.y,t.y),t=Math.min(this.y+this.height,t.y+t.height);this.x=i,this.width=Math.max(s-i,0),this.y=h,this.height=Math.max(t-h,0)},E.prototype.ceil=function(t,i){void 0===t&&(t=1),void 0===i&&(i=.001);var s=Math.ceil((this.x+this.width-i)*t)/t,h=Math.ceil((this.y+this.height-i)*t)/t;this.x=Math.floor((this.x+i)*t)/t,this.y=Math.floor((this.y+i)*t)/t,this.width=s-this.x,this.height=h-this.y},E.prototype.enlarge=function(t){var i=Math.min(this.x,t.x),s=Math.max(this.x+this.width,t.x+t.width),h=Math.min(this.y,t.y),t=Math.max(this.y+this.height,t.y+t.height);this.x=i,this.width=s-i,this.y=h,this.height=t-h},Object.defineProperties(E.prototype,e),Object.defineProperties(E,k),R.prototype.clone=function(){return new R(this.x,this.y,this.radius)},R.prototype.contains=function(t,i){if(this.radius<=0)return!1;var s=this.radius*this.radius,t=this.x-t,i=this.y-i;return(t*=t)+(i*=i)<=s},R.prototype.getBounds=function(){return new E(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)},P.prototype.clone=function(){return new P(this.x,this.y,this.width,this.height)},P.prototype.contains=function(t,i){if(this.width<=0||this.height<=0)return!1;t=(t-this.x)/this.width,i=(i-this.y)/this.height;return(t*=t)+(i*=i)<=1},P.prototype.getBounds=function(){return new E(this.x-this.width,this.y-this.height,this.width,this.height)},A.prototype.clone=function(){var t=new A(this.points.slice());return t.closeStroke=this.closeStroke,t},A.prototype.contains=function(t,i){for(var s=!1,h=this.points.length/2,o=0,n=h-1;o<h;n=o++){var r=this.points[2*o],e=this.points[2*o+1],a=this.points[2*n],c=this.points[2*n+1];i<e!=i<c&&t<(i-e)/(c-e)*(a-r)+r&&(s=!s)}return s};return N.prototype.clone=function(){return new N(this.x,this.y,this.width,this.height,this.radius)},N.prototype.contains=function(t,i){if(!(this.width<=0||this.height<=0)&&t>=this.x&&t<=this.x+this.width&&i>=this.y&&i<=this.y+this.height){if(i>=this.y+this.radius&&i<=this.y+this.height-this.radius||t>=this.x+this.radius&&t<=this.x+this.width-this.radius)return!0;var s=t-(this.x+this.radius),h=i-(this.y+this.radius),o=this.radius*this.radius;if(s*s+h*h<=o)return!0;
14if((s=t-(this.x+this.width-this.radius))*s+h*h<=o)return!0;if(s*s+(h=i-(this.y+this.height-this.radius))*h<=o)return!0;if((s=t-(this.x+this.radius))*s+h*h<=o)return!0}return!1},t.Circle=R,t.DEG_TO_RAD=o,t.Ellipse=P,t.GroupD8=O,t.Matrix=i,t.ObservablePoint=s,t.PI_2=a,t.Point=n,t.Polygon=A,t.RAD_TO_DEG=h,t.Rectangle=E,t.RoundedRectangle=N,t.SHAPES=r,t.Transform=T,t}({});Object.assign(this.PIXI,_pixi_math); 15this.PIXI=this.PIXI||{};var _pixi_runner=function(t){"use strict";function e(t){this.items=[],this._name=t,this._aliasCount=0}var i={empty:{configurable:!0},name:{configurable:!0}};return e.prototype.emit=function(t,e,i,s,n,r,o,h){if(8<arguments.length)throw new Error("max arguments reached");var u=this.name,m=this.items;this._aliasCount++;for(var a=0,p=m.length;a<p;a++)m[a][u](t,e,i,s,n,r,o,h);return m===this.items&&this._aliasCount--,this},e.prototype.ensureNonAliasedItems=function(){0<this._aliasCount&&1<this.items.length&&(this._aliasCount=0,this.items=this.items.slice(0))},e.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},e.prototype.remove=function(t){t=this.items.indexOf(t);return-1!==t&&(this.ensureNonAliasedItems(),this.items.splice(t,1)),this},e.prototype.contains=function(t){return-1!==this.items.indexOf(t)},e.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},e.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},i.empty.get=function(){return 0===this.items.length},i.name.get=function(){return this._name},Object.defineProperties(e.prototype,i),e.prototype.dispatch=e.prototype.emit,e.prototype.run=e.prototype.emit,t.Runner=e,t}({});Object.assign(this.PIXI,_pixi_runner); 16this.PIXI=this.PIXI||{};var _pixi_settings=function(e){"use strict";var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};(function(e){function o(e,i){return e.test(i)}function i(e){var e=e||("undefined"!=typeof navigator?navigator.userAgent:""),i=e.split("[FBAN"),i=(void 0!==(i=(e=void 0!==i[1]?i[0]:e).split("Twitter"))[1]&&(e=i[0]),{apple:{phone:o(t,e)&&!o(b,e),ipod:o(d,e),tablet:!o(t,e)&&o(r,e)&&!o(b,e),device:(o(t,e)||o(d,e)||o(r,e))&&!o(b,e)},amazon:{phone:o(s,e),tablet:!o(s,e)&&o(l,e),device:o(s,e)||o(l,e)},android:{phone:!o(b,e)&&o(s,e)||!o(b,e)&&o(a,e),tablet:!o(b,e)&&!o(s,e)&&!o(a,e)&&(o(l,e)||o(p,e)),device:!o(b,e)&&(o(s,e)||o(l,e)||o(a,e)||o(p,e))||o(/\bokhttp\b/i,e)},windows:{phone:o(b,e),tablet:o(E,e),device:o(b,e)||o(E,e)},other:{blackberry:o(h,e),blackberry10:o(c,e),opera:o(_,e),firefox:o(f,e),chrome:o(A,e),device:o(h,e)||o(c,e)||o(_,e)||o(f,e)||o(A,e)}});return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}var n,t,d,r,a,p,s,l,b,E,h,c,_,A,f;n=v,t=/iPhone/i,d=/iPod/i,r=/iPad/i,a=/\bAndroid(?:.+)Mobile\b/i,p=/Android/i,s=/\bAndroid(?:.+)SD4930UR\b/i,l=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,b=/Windows Phone/i,E=/\bWindows(?:.+)ARM\b/i,h=/BlackBerry/i,c=/BB10/i,_=/Opera Mini/i,A=/\b(CriOS|Chrome)(?:.+)Mobile/i,f=/Mobile(?:.+)Firefox\b/i,e.exports&&"undefined"==typeof window?e.exports=i:e.exports&&"undefined"!=typeof window?(e.exports=i(),e.exports.isMobile=i):n.isMobile=i()})(i={exports:{}});var i=i.exports;i.isMobile;var o,n,t={MIPMAP_TEXTURES:1,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,SPRITE_MAX_TEXTURES:(o=32,n=!0,(i.tablet||i.phone)&&(n=!1,i.apple.device&&(t=navigator.userAgent.match(/OS (\d+)_(\d+)?/))&&11<=parseInt(t[1],10)&&(n=!0),i.android.device&&(t=navigator.userAgent.match(/Android\s([0-9.]*)/))&&7<=parseInt(t[1],10)&&(n=!0)),n?o:4),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,forceFXAA:!1,autoDensity:!1,transparent:!1,backgroundColor:0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:0,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:33071,SCALE_MODE:1,PRECISION_VERTEX:"highp",PRECISION_FRAGMENT:i.apple.device?"highp":"mediump",CAN_UPLOAD_SAME_BUFFER:!i.apple.device,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};return e.isMobile=i,e.settings=t,e}({});Object.assign(this.PIXI,_pixi_settings); 17this.PIXI=this.PIXI||{};var _pixi_ticker=function(t,n){"use strict";n.settings.TARGET_FPMS=.06;function s(t,e,i,s){void 0===e&&(e=null),void 0===i&&(i=0),void 0===s&&(s=!1),this.fn=t,this.context=e,this.priority=i,this.once=s,this.next=null,this.previous=null,this._destroyed=!1}function i(){var e=this;this._head=new s(null,null,1/0),this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this.autoStart=!1,this.deltaTime=1,this.deltaMS=1/n.settings.TARGET_FPMS,this.elapsedMS=1/n.settings.TARGET_FPMS,this.lastTime=-1,this.speed=1,this.started=!1,this._protected=!1,this._lastFrame=-1,this._tick=function(t){e._requestId=null,e.started&&(e.update(t),e.started&&null===e._requestId&&e._head.next&&(e._requestId=requestAnimationFrame(e._tick)))}}function e(){}var r={INTERACTION:50,HIGH:25,NORMAL:0,LOW:-25,UTILITY:-50},h=(s.prototype.match=function(t,e){return e=e||null,this.fn===t&&this.context===e},s.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));t=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),t},s.prototype.connect=function(t){(this.previous=t).next&&(t.next.previous=this),this.next=t.
17next,t.next=this},s.prototype.destroy=function(t){void 0===t&&(t=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var e=this.next;return this.next=t?null:e,this.previous=null,e},{FPS:{configurable:!0},minFPS:{configurable:!0},maxFPS:{configurable:!0}}),a={shared:{configurable:!0},system:{configurable:!0}};i.prototype._requestIfNeeded=function(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},i.prototype._cancelIfNeeded=function(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)},i.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},i.prototype.add=function(t,e,i){return this._addListener(new s(t,e,i=void 0===i?r.NORMAL:i))},i.prototype.addOnce=function(t,e,i){return this._addListener(new s(t,e,i=void 0===i?r.NORMAL:i,!0))},i.prototype._addListener=function(t){var e=this._head.next,i=this._head;if(e){for(;e;){if(t.priority>e.priority){t.connect(i);break}e=(i=e).next}t.previous||t.connect(i)}else t.connect(i);return this._startIfPossible(),this},i.prototype.remove=function(t,e){for(var i=this._head.next;i;)i=i.match(t,e)?i.destroy():i.next;return this._head.next||this._cancelIfNeeded(),this},i.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},i.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},i.prototype.destroy=function(){if(!this._protected){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}},i.prototype.update=function(t){var e;if((t=void 0===t?performance.now():t)>this.lastTime){if((e=this.elapsedMS=t-this.lastTime)>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){var i=t-this._lastFrame|0;if(i<this._minElapsedMS)return;this._lastFrame=t-i%this._minElapsedMS}this.deltaMS=e,this.deltaTime=this.deltaMS*n.settings.TARGET_FPMS;for(var i=this._head,s=i.next;s;)s=s.emit(this.deltaTime);i.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=t},h.FPS.get=function(){return 1e3/this.elapsedMS},h.minFPS.get=function(){return 1e3/this._maxElapsedMS},h.minFPS.set=function(t){t=Math.min(this.maxFPS,t),t=Math.min(Math.max(0,t)/1e3,n.settings.TARGET_FPMS);this._maxElapsedMS=1/t},h.maxFPS.get=function(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0},h.maxFPS.set=function(t){0===t?this._minElapsedMS=0:(t=Math.max(this.minFPS,t),this._minElapsedMS=1/(t/1e3))},a.shared.get=function(){var t;return i._shared||((t=i._shared=new i).autoStart=!0,t._protected=!0),i._shared},a.system.get=function(){var t;return i._system||((t=i._system=new i).autoStart=!0,t._protected=!0),i._system},Object.defineProperties(i.prototype,h),Object.defineProperties(i,a);return e.init=function(t){var e=this;t=Object.assign({autoStart:!0,sharedTicker:!1},t),Object.defineProperty(this,"ticker",{set:function(t){this._ticker&&this._ticker.remove(this.render,this),(this._ticker=t)&&t.add(this.render,this,r.LOW)},get:function(){return this._ticker}}),this.stop=function(){e._ticker.stop()},this.start=function(){e._ticker.start()},this._ticker=null,this.ticker=t.sharedTicker?i.shared:new i,t.autoStart&&this.start()},e.destroy=function(){var t;this._ticker&&(t=this._ticker,this.ticker=null,t.destroy())},t.Ticker=i,t.TickerPlugin=e,t.UPDATE_PRIORITY=r,t}({},PIXI);Object.assign(this.PIXI,_pixi_ticker); 18this.PIXI=this.PIXI||{},this.PIXI.utils=this.PIXI.utils||{};var _pixi_utils=function(t,s,o){"use strict";var j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var b=e(function(t){var r=Object.prototype.hasOwnProperty,x="~";function n(){}function s(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(t,e,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");n=new s(n,r||t,o),r=x?x+e:e;return t._events[r]?t._events[r].fn?t._events[r]=[t._events[r],n]:t._events[r].push(n):(t._events[r]=n,t._eventsCount++),t}function h(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function e(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(x=!1)),e.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)r.call(t,e)&&n.push(x?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},e.prototype.listeners=function(t){var t=x?x+t:t,e=this._events[t];if(!e)return[];if(e.fn)return[e.fn];for(var n=0,r=e.length,o=new Array(r);n<r;n++)o[n]=e[n].fn;return o},e.prototype.listenerCount=function(t){t=x?x+t:t,t=this._events[t];return t?t.fn?1:t.length:0},e.prototype.emit=function(t,e,n,r,o,s){var i=arguments,a=x?x+t:t;if(!this._events[a])return!1;var h,u=this._events[a],c=arguments.length;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),c){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,e),!0;case 3:return u.fn.call(u.context,e,n),!0;case 4:return u.fn.call(u.context,e,n,r),!0;case 5:return u.fn.call(u.context,e,n,r,o),!0;case 6:return u.fn.call(u.context,e,n,r,o,s),!0}for(p=1,h=new Array(c-1);p<c;p++)h[p-1]=i[p];u.fn.apply(u.context,h)}else for(var f,l=u.length,p=0;p<l;p++)switch(u[p].once&&this.removeListener(t,u[p].fn,void 0,!0),c){case 1:u[p].fn.call(u[p].context);break;case 2:u[p].fn.call(u[p].context,e);break;case 3:u[p].fn.call(u[p].context,e,n);break;case 4:u[p].fn.call(u[p].context,e,n,r);break;default:if(!h)for(f=1,h=new Array(c-1);f<c;f++)h[f-1]=i[f];u[p].fn.apply(u[p].context,h)}return!0},e.prototype.on=function(t,e,n){return o(this,t,e,n,!1)},e.prototype.once=function(t,e,n){return o(this,t,e,n,!0)},e.prototype.removeListener=function(t,e,n,r){t=x?x+t:t;if(this._events[t])if(e){var o=this._events[t];if(o.fn)o.fn!==e||r&&!o.once||n&&o.context!==n||h(this,t);else{for(var s=0,i=[],a=o.length;s<a;s++)(o[s].fn!==e||r&&!o[s].once||n&&o[s].context!==n)&&i.push(o[s]);i.length?this._events[t]=1===i.length?i[0]:i:h(this,t)}}else h(this,t);return this},e.prototype.removeAllListeners=function(t){return t?(t=x?x+t:t,this._events[t]&&h(this,t)):(this._events=new n,this._eventsCount=0),this},e.prototype.off=e.prototype.removeListener,e.prototype.addListener=e.prototype.on,e.prefixed=x,t.exports=e.EventEmitter=e}),n=i,r=i;function i(t,e,n){n=n||2;var r,o,s,i,a,h=e&&e.length,u=h?e[0]*n:t.length,c=k(t,0,u,n,!0),f=[];if(c&&c.next!==c.prev){if(h&&(c=function(t,e,n,r){var o,s,i,a,h=[];for(o=0,s=e.length;o<s;o++)a=e[o]*r,i=o<s-1?e[o+1]*r:t.length,(a=k(t,a,i,r,!1))===a.next&&(a.steiner=!0),h.push(function(t){var e=t,n=t;
vendor: 6,283 bytes, line 18
18for(;(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next,e!==t;);return n}(a));for(h.sort(T),o=0;o<h.length;o++)!function(t,e){(e=function(t,e){var n,r=e,o=t.x,s=t.y,i=-1/0;do{if(s<=r.y&&s>=r.next.y&&r.next.y!==r.y){var a=r.x+(s-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=o&&i<a){if((i=a)===o){if(s===r.y)return r;if(s===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}}while(r=r.next,r!==e);if(!n)return null;if(o!==i){var h,u=n,c=n.x,f=n.y,l=1/0;for(r=n;o>=r.x&&r.x>=c&&o!==r.x&&D(s<f?o:i,s,c,f,s<f?i:o,s,r.x,r.y)&&(h=Math.abs(s-r.y)/(o-r.x),L(r,t)&&(h<l||h===l&&(r.x>n.x||r.x===n.x&&function(t,e){return M(t.prev,t,e.prev)<0&&M(e.next,t,t.next)<0}(n,r)))&&(n=r,l=h)),(r=r.next)!==u;);}return n}(t,e))&&E(e=U(e,t),e.next)}(h[o],n),n=E(n,n.next);return n}(t,e,c,n)),t.length>80*n){for(var l=r=t[0],p=o=t[1],x=n;x<u;x+=n)(s=t[x])<l&&(l=s),(i=t[x+1])<p&&(p=i),r<s&&(r=s),o<i&&(o=i);a=0!==(a=Math.max(r-l,o-p))?1/a:0}A(c,f,n,l,p,a)}return f}function k(t,e,n,r,o){var s,i;if(o===0<v(t,e,n,r))for(s=e;s<n;s+=r)i=F(s,t[s],t[s+1],i);else for(s=n-r;e<=s;s-=r)i=F(s,t[s],t[s+1],i);return i&&R(i,i.next)&&(P(i),i=i.next),i}function E(t,e){if(!t)return t;e=e||t;var n,r=t;do{if(n=!1,r.steiner||!R(r,r.next)&&0!==M(r.prev,r,r.next))r=r.next;else{if(P(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function A(t,e,n,r,o,s,i){if(t){if(!i&&s){for(var a=t,h=r,u=o,c=s,f=a;null===f.z&&(f.z=I(f.x,f.y,h,u,c)),f.prevZ=f.prev,f.nextZ=f.next,(f=f.next)!==a;);f.prevZ.nextZ=null,f.prevZ=null;var l,p,x,v,d,y,g,m,b=f,w=1;do{for(p=b,d=b=null,y=0;p;){for(y++,x=p,l=g=0;l<w&&(g++,x=x.nextZ);l++);for(m=w;0<g||0<m&&x;)0!==g&&(0===m||!x||p.z<=x.z)?(p=(v=p).nextZ,g--):(x=(v=x).nextZ,m--),d?d.nextZ=v:b=v,v.prevZ=d,d=v;p=x}}while(d.nextZ=null,w*=2,1<y)}for(var O,_,C=t;t.prev!==t.next;)if(O=t.prev,_=t.next,s?function(t,e,n,r){var o=t.prev,s=t,i=t.next;if(0<=M(o,s,i))return;var a=(o.x<s.x?o.x<i.x?o:i:s.x<i.x?s:i).x,h=(o.y<s.y?o.y<i.y?o:i:s.y<i.y?s:i).y,u=(o.x>s.x?o.x>i.x?o:i:s.x>i.x?s:i).x,c=(o.y>s.y?o.y>i.y?o:i:s.y>i.y?s:i).y,f=I(a,h,e,n,r),l=I(u,c,e,n,r),p=t.prevZ,x=t.nextZ;for(;p&&p.z>=f&&x&&x.z<=l;){if(p!==t.prev&&p!==t.next&&D(o.x,o.y,s.x,s.y,i.x,i.y,p.x,p.y)&&0<=M(p.prev,p,p.next))return;if(p=p.prevZ,x!==t.prev&&x!==t.next&&D(o.x,o.y,s.x,s.y,i.x,i.y,x.x,x.y)&&0<=M(x.prev,x,x.next))return;x=x.nextZ}for(;p&&p.z>=f;){if(p!==t.prev&&p!==t.next&&D(o.x,o.y,s.x,s.y,i.x,i.y,p.x,p.y)&&0<=M(p.prev,p,p.next))return;p=p.prevZ}for(;x&&x.z<=l;){if(x!==t.prev&&x!==t.next&&D(o.x,o.y,s.x,s.y,i.x,i.y,x.x,x.y)&&0<=M(x.prev,x,x.next))return;x=x.nextZ}return 1}(t,r,o,s):function(t){var e=t.prev,n=t,r=t.next;if(0<=M(e,n,r))return;var o=t.next.next;for(;o!==t.prev;){if(D(e.x,e.y,n.x,n.y,r.x,r.y,o.x,o.y)&&0<=M(o.prev,o,o.next))return;o=o.next}return 1}(t))e.push(O.i/n),e.push(t.i/n),e.push(_.i/n),P(t),t=_.next,C=_.next;else if((t=_)===C){i?1===i?A(t=function(t,e,n){var r=t;do{var o=r.prev,s=r.next.next}while(!R(o,s)&&q(o,r,r.next,s)&&L(o,s)&&L(s,o)&&(e.push(o.i/n),e.push(r.i/n),e.push(s.i/n),P(r),P(r.next),r=t=s),r=r.next,r!==t);return E(r)}(E(t),e,n),e,n,r,o,s,2):2===i&&function(t,e,n,r,o,s){var i=t;do{for(var a,h=i.next.next;h!==i.prev;){if(i.i!==h.i&&function(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&q(n,n.next,t,e))return 1}while(n=n.next,n!==t);return}(t,e)&&(L(t,e)&&L(e,t)&&function(t,e){var n=t,r=!1,o=(t.x+e.x)/2,s=(t.y+e.y)/2;for(;n.y>s!=n.next.y>s&&n.next.y!==n.y&&o<(n.next.x-n.x)*(s-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next,n!==t;);return r}(t,e)&&(M(t.prev,t,e.prev)||M(t,e.prev,e))||R(t,e)&&0<M(t.prev,t,t.next)&&0<M(e.prev,e,e.next))}(i,h))return a=U(i,h),i=E(i,i.next),a=E(a,a.next),A(i,e,n,r,o,s),A(a,e,n,r,o,s);h=h.next}}while(i=i.next,i!==t)}(t,e,n,r,o,s):A(E(t),e,n,r,o,s,1);break}}}function T(t,e){return t.x-e.x}function I(t,e,n,r,o){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*o)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*o)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function D(t,e,n,r,o,s,i,a){return 0<=(o-i)*(e-a)-(t-i)*(s-a)&&0<=(t-i)*(r-a)-(n-i)*(e-a)&&0<=(n-i)*(s-a)-(o-i)*(r-a)}function M(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function R(t,e){return t.x===e.x&&t.y===e.y}function q(t,e,n,r){var o=u(M(t,e,n)),s=u(M(t,e,r)),i=u(M(n,r,t)),a=u(M(n,r,e));return o!==s&&i!==a||(0===o&&h(t,n,e)||(0===s&&h(t,r,e)||(0===i&&h(n,t,r)||!(0!==a||!h(n,e,r)))))}function h(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function u(t){return 0<t?1:t<0?-1:0}function L(t,e){return M(t.prev,t,t.next)<0?0<=M(t,e,t.next)&&0<=M(t,t.prev,e):M(t,e,t.prev)<0||M(t,t.next,e)<0}function U(t,e){var n=new a(t.i,t.x,t.y),r=new a(e.i,e.x,e.y),o=t.next,s=e.prev;return(t.next=e).prev=t,(n.next=o).prev=n,(r.next=n).prev=r,(s.next=r).prev=s,r}function F(t,e,n,r){t=new a(t,e,n);return r?(t.next=r.next,(t.prev=r).next.prev=t,r.next=t):(t.prev=t).next=t,t}function P(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function a(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function v(t,e,n,r){for(var o=0,s=e,i=n-r;s<n;s+=r)o+=(t[i]-t[s])*(t[s+1]+t[i+1]),i=s;return o}i.deviation=function(t,e,n,r){var o=e&&e.length,s=o?e[0]*n:t.length,i=Math.abs(v(t,0,s,n));if(o)for(var a=0,h=e.length;a<h;a++){var u=e[a]*n,c=a<h-1?e[a+1]*n:t.length;i-=Math.abs(v(t,u,c,n))}for(var f=0,a=0;a<r.length;a+=3){var l=r[a]*n,p=r[a+1]*n,x=r[a+2]*n;f+=Math.abs((t[l]-t[x])*(t[1+p]-t[1+l])-(t[l]-t[p])*(t[1+x]-t[1+l]))}return 0===i&&0===f?0:Math.abs((f-i)/i)},i.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,o=0;o<t.length;o++){for(var s=0;s<t[o].length;s++)for(var i=0;i<e;i++)n.vertices.push(t[o][s][i]);0<o&&(r+=t[o-1].length,n.holes.push(r))}return n},n.default=r;var B=e(function(t,e){var n=j,r=e&&!e.nodeType&&e,e=t&&!t.nodeType&&t,o="object"==typeof j&&j;o.global!==o&&o.window!==o&&o.self!==o||(n=o);var s,i,d=2147483647,y=36,g=26,a=38,h=700,u=/^xn--/,c=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >
18= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=y-1,m=Math.floor,b=String.fromCharCode;function w(t){throw RangeError(l[t])}function x(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function v(t,e){var n=t.split("@"),r="",n=(1<n.length&&(r=n[0]+"@",t=n[1]),(t=t.replace(f,".")).split("."));return r+x(n,e).join(".")}function O(t){for(var e,n,r=[],o=0,s=t.length;o<s;)55296<=(e=t.charCodeAt(o++))&&e<=56319&&o<s?56320==(64512&(n=t.charCodeAt(o++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),o--):r.push(e);return r}function _(t){return x(t,function(t){var e="";return 65535<t&&(e+=b((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=b(t)}).join("")}function C(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function E(t,e,n){var r=0;for(t=n?m(t/h):t>>1,t+=m(t/e);p*g>>1<t;r+=y)t=m(t/p);return m(r+(p+1)*t/(t+a))}function A(t){var e,n,r,o,s,i,a,h=[],u=t.length,c=0,f=128,l=72,p=t.lastIndexOf("-");for(p<0&&(p=0),n=0;n<p;++n)128<=t.charCodeAt(n)&&w("not-basic"),h.push(t.charCodeAt(n));for(r=0<p?p+1:0;r<u;){for(o=c,s=1,i=y;u<=r&&w("invalid-input"),a=t.charCodeAt(r++),(y<=(a=a-48<10?a-22:a-65<26?a-65:a-97<26?a-97:y)||a>m((d-c)/s))&&w("overflow"),c+=a*s,!(a<(a=i<=l?1:l+g<=i?g:i-l));i+=y)s>m(d/(a=y-a))&&w("overflow"),s*=a;l=E(c-o,e=h.length+1,0==o),m(c/e)>d-f&&w("overflow"),f+=m(c/e),c%=e,h.splice(c++,0,f)}return _(h)}function I(t){for(var e,n,r,o,s,i,a,h,u,c,f=[],l=(t=O(t)).length,p=128,x=72,v=e=0;v<l;++v)(a=t[v])<128&&f.push(b(a));for(n=r=f.length,r&&f.push("-");n<l;){for(o=d,v=0;v<l;++v)p<=(a=t[v])&&a<o&&(o=a);for(o-p>m((d-e)/(h=n+1))&&w("overflow"),e+=(o-p)*h,p=o,v=0;v<l;++v)if((a=t[v])<p&&++e>d&&w("overflow"),a==p){for(s=e,i=y;!(s<(u=i<=x?1:x+g<=i?g:i-x));i+=y)f.push(b(C(u+(c=s-u)%(u=y-u),0))),s=m(c/u);f.push(b(C(s,0))),x=E(e,h,n==r),e=0,++n}++e,++p}return f.join("")}if(s={version:"1.3.2",ucs2:{decode:O,encode:_},decode:A,encode:I,toASCII:function(t){return v(t,function(t){return c.test(t)?"xn--"+I(t):t})},toUnicode:function(t){return v(t,function(t){return u.test(t)?A(t.slice(4).toLowerCase()):t})}},r&&e)if(t.exports==r)e.exports=s;else for(i in s)s.hasOwnProperty(i)&&(r[i]=s[i]);else n.punycode=s}),_=function(t){return"string"==typeof t},z=function(t){return"object"==typeof t&&null!==t},w=function(t){return null===t},X=function(t){return null==t};function J(t,e,n,r){e=e||"&",n=n||"=";var o={};if("string"==typeof t&&0!==t.length){var s=/\+/g,e=(t=t.split(e),1e3),i=(r&&"number"==typeof r.maxKeys&&(e=r.maxKeys),t.length);0<e&&e<i&&(i=e);for(var a=0;a<i;++a){var h,u=t[a].replace(s,"%20"),c=u.indexOf(n),c=0<=c?(h=u.substr(0,c),u.substr(c+1)):(h=u,""),u=decodeURIComponent(h),c=decodeURIComponent(c);Object.prototype.hasOwnProperty.call(o,u)?Array.isArray(o[u])?o[u].push(c):o[u]=[o[u],c]:o[u]=c}}return o}function c(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}function W(n,r,o,t){return r=r||"&",o=o||"=","object"==typeof(n=null===n?void 0:n)?Object.keys(n).map(function(t){var e=encodeURIComponent(c(t))+o;return Array.isArray(n[t])?n[t].map(function(t){return e+encodeURIComponent(c(t))}).join(r):e+encodeURIComponent(c(n[t]))}).join(r):t?encodeURIComponent(c(t))+o+encodeURIComponent(c(n)):""}function H(t,e){return l(t,!1,!0).resolve(e)}function $(t,e){return t?l(t,!1,!0).resolveObject(e):e}function G(t){return(t=_(t)?l(t):t)instanceof O?t.format():O.prototype.format.call(t)}var C=e(function(t,e){e.decode=e.parse=J,e.encode=e.stringify=W}),r=(C.decode,C.parse,C.encode,C.stringify,l),K=O;function O(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var V=/^([a-z0-9.+-]+:)/i,Q=/:[0-9]*$/,Y=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),N=["'"].concat(f),tt=["%","/","?",";","#"].concat(N),et=["/","?","#"],nt=/^[+a-z0-9A-Z_-]{0,63}$/,rt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ot={javascript:!0,"javascript:":!0},S={javascript:!0,"javascript:":!0},Z={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function l(t,e,n){if(t&&z(t)&&t instanceof O)return t;var r=new O;return r.parse(t,e,n),r}O.prototype.parse=function(t,e,n){if(!_(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var r=t.indexOf("?"),r=-1!==r&&r<t.indexOf("#")?"?":"#",o=t.split(r);o[0]=o[0].replace(/\\/g,"/");var s=(s=t=o.join(r)).trim();if(!n&&1===t.split("#").length){o=Y.exec(s);if(o)return this.path=s,this.href=s,this.pathname=o[1],o[2]?(this.search=o[2],this.query=e?C.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var i,r=V.exec(s);if(r&&(i=(r=r[0]).toLowerCase(),this.protocol=i,s=s.substr(r.length)),!(n||r||s.match(/^\/\/[^@\/]+@[^@\/]+/))||!(b="//"===s.substr(0,2))||r&&S[r]||(s=s.substr(2),this.slashes=!0),!S[r]&&(b||r&&!Z[r])){for(var a=-1,h=0;h<et.length;
vendor: 4,759 bytes, line 18
18h++)-1!==(u=s.indexOf(et[h]))&&(-1===a||u<a)&&(a=u);-1!==(t=-1===a?s.lastIndexOf("@"):s.lastIndexOf("@",a))&&(o=s.slice(0,t),s=s.slice(t+1),this.auth=decodeURIComponent(o));for(var u,a=-1,h=0;h<tt.length;h++)-1!==(u=s.indexOf(tt[h]))&&(-1===a||u<a)&&(a=u);-1===a&&(a=s.length),this.host=s.slice(0,a),s=s.slice(a),this.parseHost(),this.hostname=this.hostname||"";n="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!n)for(var c=this.hostname.split(/\./),h=0,f=c.length;h<f;h++){var l=c[h];if(l&&!l.match(nt)){for(var p="",x=0,v=l.length;x<v;x++)127<l.charCodeAt(x)?p+="x":p+=l[x];if(!p.match(nt)){var d=c.slice(0,h),y=c.slice(h+1),g=l.match(rt);g&&(d.push(g[1]),y.unshift(g[2])),y.length&&(s="/"+y.join(".")+s),this.hostname=d.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),n||(this.hostname=B.toASCII(this.hostname));var m=this.port?":"+this.port:"",b=this.hostname||"";this.host=b+m,this.href+=this.host,n&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!ot[i])for(h=0,f=N.length;h<f;h++){var w,O=N[h];-1!==s.indexOf(O)&&((w=encodeURIComponent(O))===O&&(w=escape(O)),s=s.split(O).join(w))}r=s.indexOf("#"),-1!==r&&(this.hash=s.substr(r),s=s.slice(0,r)),t=s.indexOf("?");return-1!==t?(this.search=s.substr(t),this.query=s.substr(t+1),e&&(this.query=C.parse(this.query)),s=s.slice(0,t)):e&&(this.search="",this.query={}),s&&(this.pathname=s),Z[i]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(m=this.pathname||"",o=this.search||"",this.path=m+o),this.href=this.format(),this},O.prototype.format=function(){var t=this.auth||"",e=(t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@"),this.protocol||""),n=this.pathname||"",r=this.hash||"",o=!1,s="",t=(this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&z(this.query)&&Object.keys(this.query).length&&(s=C.stringify(this.query)),this.search||s&&"?"+s||"");return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||Z[e])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o=o||"",r&&"#"!==r.charAt(0)&&(r="#"+r),t&&"?"!==t.charAt(0)&&(t="?"+t),e+o+(n=n.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(t=t.replace("#","%23"))+r},O.prototype.resolve=function(t){return this.resolveObject(l(t,!1,!0)).format()},O.prototype.resolveObject=function(t){_(t)&&((l=new O).parse(t,!1,!0),t=l);for(var e=new O,n=Object.keys(this),r=0;r<n.length;r++){var o=n[r];e[o]=this[o]}if(e.hash=t.hash,""===t.href)e.href=e.format();else if(t.slashes&&!t.protocol){for(var s=Object.keys(t),i=0;i<s.length;i++){var a=s[i];"protocol"!==a&&(e[a]=t[a])}Z[e.protocol]&&e.hostname&&!e.pathname&&(e.path=e.pathname="/"),e.href=e.format()}else if(t.protocol&&t.protocol!==e.protocol)if(Z[t.protocol]){if(e.protocol=t.protocol,t.host||S[t.protocol])e.pathname=t.pathname;else{for(var h=(t.pathname||"").split("/");h.length&&!(t.host=h.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),e.pathname=h.join("/")}e.search=t.search,e.query=t.query,e.host=t.host||"",e.auth=t.auth,e.hostname=t.hostname||t.host,e.port=t.port,(e.pathname||e.search)&&(l=e.pathname||"",p=e.search||"",e.path=l+p),e.slashes=e.slashes||t.slashes,e.href=e.format()}else{for(var u=Object.keys(t),c=0;c<u.length;c++){var f=u[c];e[f]=t[f]}e.href=e.format()}else{var l=e.pathname&&"/"===e.pathname.charAt(0),p=t.host||t.pathname&&"/"===t.pathname.charAt(0),l=p||l||e.host&&t.pathname,x=l,v=e.pathname&&e.pathname.split("/")||[],h=t.pathname&&t.pathname.split("/")||[],d=e.protocol&&!Z[e.protocol];if(d&&(e.hostname="",e.port=null,e.host&&(""===v[0]?v[0]=e.host:v.unshift(e.host)),e.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===h[0]?h[0]=t.host:h.unshift(t.host)),t.host=null),l=l&&(""===h[0]||""===v[0])),p)e.host=(t.host||""===t.host?t:e).host,e.hostname=(t.hostname||""===t.hostname?t:e).hostname,e.search=t.search,e.query=t.query,v=h;else if(h.length)(v=v||[]).pop(),v=v.concat(h),e.search=t.search,e.query=t.query;else if(!X(t.search))return d&&(e.hostname=e.host=v.shift(),(b=!!(e.host&&0<e.host.indexOf("@"))&&e.host.split("@"))&&(e.auth=b.shift(),e.host=e.hostname=b.shift())),e.search=t.search,e.query=t.query,w(e.pathname)&&w(e.search)||(e.path=(e.pathname||"")+(e.search||"")),e.href=e.format(),e;if(v.length){for(var y=v.slice(-1)[0],p=(e.host||t.host||1<v.length)&&("."===y||".."===y)||""===y,g=0,m=v.length;0<=m;m--)"."===(y=v[m])?v.splice(m,1):".."===y?(v.splice(m,1),g++):g&&(v.splice(m,1),g--);if(!l&&!x)for(;g--;)v.unshift("..");!l||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),p&&"/"!==v.j
18oin("/").substr(-1)&&v.push("");var b,x=""===v[0]||v[0]&&"/"===v[0].charAt(0);d&&(e.hostname=e.host=!x&&v.length?v.shift():"",(b=!!(e.host&&0<e.host.indexOf("@"))&&e.host.split("@"))&&(e.auth=b.shift(),e.host=e.hostname=b.shift())),(l=l||e.host&&v.length)&&!x&&v.unshift(""),v.length?e.pathname=v.join("/"):(e.pathname=null,e.path=null),w(e.pathname)&&w(e.search)||(e.path=(e.pathname||"")+(e.search||"")),e.auth=t.auth||e.auth,e.slashes=e.slashes||t.slashes,e.href=e.format()}else e.pathname=null,e.search?e.path="/"+e.search:e.path=null,e.href=e.format()}return e},O.prototype.parseHost=function(){var t=this.host,e=Q.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var p,st={parse:r,resolve:H,resolveObject:$,format:G,Url:K},x=(s.settings.RETINA_PREFIX=/@([0-9\.]+)x/,!(s.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!0));var it=function(){for(var t=[],e=[],n=0;n<32;n++)e[t[n]=n]=n;t[o.BLEND_MODES.NORMAL_NPM]=o.BLEND_MODES.NORMAL,t[o.BLEND_MODES.ADD_NPM]=o.BLEND_MODES.ADD,t[o.BLEND_MODES.SCREEN_NPM]=o.BLEND_MODES.SCREEN,e[o.BLEND_MODES.NORMAL]=o.BLEND_MODES.NORMAL_NPM,e[o.BLEND_MODES.ADD]=o.BLEND_MODES.ADD_NPM,e[o.BLEND_MODES.SCREEN]=o.BLEND_MODES.SCREEN_NPM;var r=[];return r.push(e),r.push(t),r}();var at=0;var d=Object.create(null),y=Object.create(null);function g(t,e,n){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=n||s.settings.RESOLUTION,this.resize(t,e)}var m,f={width:{configurable:!0},height:{configurable:!0}},ht=(g.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},g.prototype.resize=function(t,e){this.canvas.width=t*this.resolution,this.canvas.height=e*this.resolution},g.prototype.destroy=function(){this.context=null,this.canvas=null},f.width.get=function(){return this.canvas.width},f.width.set=function(t){this.canvas.width=t},f.height.get=function(){return this.canvas.height},f.height.set=function(t){this.canvas.height=t},Object.defineProperties(g.prototype,f),/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i);var ut={};return Object.defineProperty(t,"isMobile",{enumerable:!0,get:function(){return s.isMobile}}),t.BaseTextureCache=y,t.CanvasRenderTarget=g,t.DATA_URI=ht,t.EventEmitter=b,t.ProgramCache={},t.TextureCache=d,t.clearTextureCache=function(){for(var t in d)delete d[t];for(t in y)delete y[t]},t.correctBlendMode=function(t,e){return it[e?1:0][t]},t.createIndicesForQuads=function(t,e){var n=6*t;
18if((e=(e=void 0===e?null:e)||new Uint16Array(n)).length!==n)throw new Error("Out buffer length is incorrect, got "+e.length+" and expected "+n);for(var r=0,o=0;r<n;r+=6,o+=4)e[r+0]=o+0,e[r+1]=o+1,e[r+2]=o+2,e[r+3]=o+0,e[r+4]=o+2,e[r+5]=o+3;return e},t.decomposeDataUri=function(t){if(t=ht.exec(t))return{mediaType:t[1]?t[1].toLowerCase():void 0,subType:t[2]?t[2].toLowerCase():void 0,charset:t[3]?t[3].toLowerCase():void 0,encoding:t[4]?t[4].toLowerCase():void 0,data:t[5]}},t.deprecation=function(t,e,n){var r;void 0===n&&(n=3),ut[e]||(void 0===(r=(new Error).stack)?console.warn("PixiJS Deprecation Warning: ",e+"\nDeprecated since v"+t):(r=r.split("\n").splice(n).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",e+"\nDeprecated since v"+t),console.warn(r),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",e+"\nDeprecated since v"+t),console.warn(r))),ut[e]=!0)},t.destroyTextureCache=function(){for(var t in d)d[t].destroy();for(t in y)y[t].destroy()},t.determineCrossOrigin=function(t,e){if(void 0===e&&(e=window.location),0===t.indexOf("data:"))return"";e=e||window.location,(m=m||document.createElement("a")).href=t;var n=!(t=st.parse(m.href)).port&&""===e.port||t.port===e.port;return t.hostname===e.hostname&&n&&t.protocol===e.protocol?"":"anonymous"},t.earcut=n,t.getResolutionOfUrl=function(t,e){return(t=s.settings.RETINA_PREFIX.exec(t))?parseFloat(t[1]):void 0!==e?e:1},t.hex2rgb=function(t,e){return(e=e||[])[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255,e},t.hex2string=function(t){return t=t.toString(16),"#"+(t="000000".substr(0,6-t.length)+t)},t.isPow2=function(t){return!(t&t-1||!t)},t.isWebGLSupported=function(){return p=void 0===p?function(){var t={stencil:!0,failIfMajorPerformanceCaveat:s.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!window.WebGLRenderingContext)return!1;var e,n=document.createElement("canvas"),r=n.getContext("webgl",t)||n.getContext("experimental-webgl",t),o=!(!r||!r.getContextAttributes().stencil);return r&&(e=r.getExtension("WEBGL_lose_context"))&&e.loseContext(),r=null,o}catch(t){return!1}}():p},t.log2=function(t){var e=(65535<t)<<4,n=(255<(t>>>=e))<<3;return(e|=n)|(n=(15<(t>>>=n))<<2)|(n=(3<(t>>>=n))<<1)|(t>>>=n)>>1},t.nextPow2=function(t){return t+=0===t,--t,(t=(t=(t=(t=(t|=t>>>1)|t>>>2)|t>>>4)|t>>>8)|t>>>16)+1},t.premultiplyBlendMode=it,t.premultiplyRgba=function(t,e,n,r){return n=n||new Float32Array(4),r||void 0===r?(n[0]=t[0]*e,n[1]=t[1]*e,n[2]=t[2]*e):(n[0]=t[0],n[1]=t[1],n[2]=t[2]),n[3]=e,n},t.premultiplyTint=function(t,e){return 1===e?(255*e<<24)+t:0===e?0:(255*e<<24)+(((t>>16&255)*e+.5|0)<<16)+(((t>>8&255)*e+.5|0)<<8)+((255&t)*e+.5|0)},t.premultiplyTintToRgba=function(t,e,n,r){return(n=n||new Float32Array(4))[0]=(t>>16&255)/255,n[1]=(t>>8&255)/255,n[2]=(255&t)/255,!r&&void 0!==r||(n[0]*=e,n[1]*=e,n[2]*=e),n[3]=e,n},t.removeItems=function(t,e,n){var r=t.length;if(!(r<=e||0===n)){for(var o=r-(n=r<e+n?r-e:n),s=e;s<o;++s)t[s]=t[s+n];t.length=o}},t.rgb2hex=function(t){return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},t.sayHello=function(t){x||(-1<navigator.userAgent.toLowerCase().indexOf("chrome")?window.console.log.apply(console,["\n %c %c %c PixiJS 5.1.5 - ✰ "+t+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"]):window.console&&window.console.log("PixiJS 5.1.5 - "+t+" - http://www.pixijs.com/"),x=!0)},t.sign=function(t){return 0===t?0:t<0?-1:1},t.skipHello=function(){x=!0},t.string2hex=function(t){return"string"==typeof t&&"#"===t[0]&&(t=t.substr(1)),parseInt(t,16)},t.trimCanvas=function(t){for(var e,n,r=t.width,o=t.height,s=(t=t.getContext("2d")).getImageData(0,0,r,o).data,i=s.length,a={top:null,left:null,right:null,bottom:null},h=null,u=0;u<i;u+=4)0!==s[u+3]&&(e=u/4%r,n=~~(u/4/r),null===a.top&&(a.top=n),(null===a.left||e<a.left)&&(a.left=e),(null===a.right||a.right<e)&&(a.right=1+e),(null===a.bottom||a.bottom<n)&&(a.bottom=n));return null!==a.top&&(r=a.right-a.left,o=a.bottom-a.top+1,h=t.getImageData(a.left,a.top,r,o)),{height:o,width:r,data:h}},t.uid=function(){return++at},t.url=st,t}({},PIXI,PIXI);Object.assign(this.PIXI.utils,_pixi_utils); 19this.PIXI=this.PIXI||{};var _pixi_display=function(t,e,n,r){"use strict";e.settings.SORTABLE_CHILDREN=!1;function o(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null}o.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},o.prototype.clear=function(){this.updateID++,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},o.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?n.Rectangle.EMPTY:((t=t||new n.Rectangle(0,0,1,1)).x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)},o.prototype.addPoint=function(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)},o.prototype.addQuad=function(t){var i=this.minX,e=this.minY,n=this.maxX,s=this.maxY,r=t[0],o=t[1],i=r
19<i?r:i,e=o<e?o:e,n=n<r?r:n,s=s<o?o:s;i=(r=t[2])<i?r:i,e=(o=t[3])<e?o:e,n=n<r?r:n,s=s<o?o:s,i=(r=t[4])<i?r:i,e=(o=t[5])<e?o:e,n=n<r?r:n,s=s<o?o:s,r=t[6],e=(o=t[7])<e?o:e,n=n<r?r:n,s=s<o?o:s,this.minX=i=r<i?r:i,this.minY=e,this.maxX=n,this.maxY=s},o.prototype.addFrame=function(t,i,e,n,s){var t=t.worldTransform,r=t.a,o=t.b,h=t.c,a=t.d,l=t.tx,t=t.ty,d=r*i+h*e+l,m=o*i+a*e+t,p=d<(p=this.minX)?d:p,u=m<(u=this.minY)?m:u,c=(c=this.maxX)<d?d:c,f=(f=this.maxY)<m?m:f;p=(d=r*n+h*e+l)<p?d:p,u=(m=o*n+a*e+t)<u?m:u,c=c<d?d:c,f=f<m?m:f,p=(d=r*i+h*s+l)<p?d:p,u=(m=o*i+a*s+t)<u?m:u,f=f<m?m:f,u=(m=o*n+a*s+t)<u?m:u,c=(c=c<d?d:c)<(d=r*n+h*s+l)?d:c,f=f<m?m:f,this.minX=p=d<p?d:p,this.minY=u,this.maxX=c,this.maxY=f},o.prototype.addVertexData=function(t,i,e){for(var n=this.minX,s=this.minY,r=this.maxX,o=this.maxY,h=i;h<e;h+=2)var a=t[h],l=t[h+1],n=a<n?a:n,s=l<s?l:s,r=r<a?a:r,o=o<l?l:o;this.minX=n,this.minY=s,this.maxX=r,this.maxY=o},o.prototype.addVertices=function(t,i,e,n){for(var t=t.worldTransform,s=t.a,r=t.b,o=t.c,h=t.d,a=t.tx,l=t.ty,d=this.minX,m=this.minY,p=this.maxX,u=this.maxY,c=e;c<n;c+=2)var f=i[c],y=i[c+1],_=s*f+o*y+a,y=h*y+r*f+l,d=_<d?_:d,m=y<m?y:m,p=p<_?_:p,u=u<y?y:u;this.minX=d,this.minY=m,this.maxX=p,this.maxY=u},o.prototype.addBounds=function(t){var i=this.minX,e=this.minY,n=this.maxX,s=this.maxY;this.minX=t.minX<i?t.minX:i,this.minY=t.minY<e?t.minY:e,this.maxX=t.maxX>n?t.maxX:n,this.maxY=t.maxY>s?t.maxY:s},o.prototype.addBoundsMask=function(t,i){var e,n,s,r=(t.minX>i.minX?t:i).minX,o=(t.minY>i.minY?t:i).minY,h=(t.maxX<i.maxX?t:i).maxX,t=(t.maxY<i.maxY?t:i).maxY;r<=h&&o<=t&&(i=this.minX,e=this.minY,n=this.maxX,s=this.maxY,this.minX=r<i?r:i,this.minY=o<e?o:e,this.maxX=n<h?h:n,this.maxY=s<t?t:s)},o.prototype.addBoundsArea=function(t,i){var e,n,s,r=t.minX>i.x?t.minX:i.x,o=t.minY>i.y?t.minY:i.y,h=t.maxX<i.x+i.width?t.maxX:i.x+i.width,t=t.maxY<i.y+i.height?t.maxY:i.y+i.height;r<=h&&o<=t&&(i=this.minX,e=this.minY,n=this.maxX,s=this.maxY,this.minX=r<i?r:i,this.minY=o<e?o:e,this.maxX=n<h?h:n,this.maxY=s<t?t:s)};var i=function(t){function s(){t.call(this),this.tempDisplayObjectParent=null,this.transform=new n.Transform,this.alpha=1,this.visible=!0,this.renderable=!0,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new o,this._boundsID=0,this._lastBoundsID=-1,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._destroyed=!1,this.isSprite=!1}t&&(s.__proto__=t);var i={_tempDisplayObjectParent:{configurable:!0},x:{configurable:!0},y:{configurable:!0},worldTransform:{configurable:!0},localTransform:{configurable:!0},position:{configurable:!0},scale:{configurable:!0},pivot:{configurable:!0},skew:{configurable:!0},rotation:{configurable:!0},angle:{configurable:!0},zIndex:{configurable:!0},worldVisible:{configurable:!0},mask:{configurable:!0}};return((s.prototype=Object.create(t&&t.prototype)).constructor=s).mixin=function(t){for(var i=Object.keys(t),e=0;e<i.length;++e){var n=i[e];Object.defineProperty(s.prototype,n,Object.getOwnPropertyDescriptor(t,n))}},i._tempDisplayObjectParent.get=function(){return null===this.tempDisplayObjectParent&&(this.tempDisplayObjectParent=new s),this.tempDisplayObjectParent},s.prototype.updateTransform=function(){this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha,this._bounds.updateID++},s.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},s.prototype.getBounds=function(t,i){return t||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._boundsID!==this._lastBoundsID&&(this.calculateBounds(),this._lastBoundsID=this._boundsID),i||(this._boundsRect||(this._boundsRect=new n.Rectangle),i=this._boundsRect),this._bounds.getRectangle(i)},s.prototype.getLocalBounds=function(t){var i=this.transform,e=this.parent,t=(this.parent=null,this.transform=this._tempDisplayObjectParent.transform,t||(this._localBoundsRect||(this._localBoundsRect=new n.Rectangle),t=this._localBoundsRect),this.getBounds(!1,t));return this.parent=e,this.transform=i,t},s.prototype.toGlobal=function(t,i,e){return(e=void 0===e?!1:e)||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(t,i)},s.prototype.toLocal=function(t,i,e,n){return i&&(t=i.toGlobal(t,e,n)),n||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(t,e)},s.prototype.render=function(t){},s.prototype.setParent=function(t){if(t&&t.addChild)return t.addChild(this),t;throw new Error("setParent: Argument must be a Container")},s.prototype.setTransform=function(t,i,e,n,s,r,o,h,a){return void 0===i&&(i=0),void 0===e&&(e=1),void 0===n&&(n=1),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o=0),void 0===h&&(h=0),void 0===a&&(a=0),this.position.x=t=void 0===t?0:t,this.position.y=i,this.scale.x=e||1,this.scale.y=n||1,this.rotation=s,this.skew.x=r,this.skew.y=o,this.pivot.x=h,this.pivot.y=a,this},s.prototype.destroy=function(){this.removeAllListeners(),this.parent&&this.parent.removeChild(this),this.transform=null,this.parent=null,this._bounds=null,this._currentBounds=null,this._mask=null,this.filterArea=null,this.interactive=!1,this.interactiveChildren=!1,this._destroyed=!0},i.x.get=function(){return this.position.x},i.x.set=function(t){this.transform.position.x=t},i.y.get=function(){return this.position.y},i.y.set=function(t){this.transform.position.y=t},i.worldTransform.get=function(){return this.transform.worldTransform},i.localTransform.get=function(){return this.transform.localTransform},i.position.get=function(){return this.transform.position},i.position.set=function(t){this.transform.position.copyFrom(t)},i.scale.get=function(){return this.transform.scale},i.scale.set=function(t){this.transform.scale.copyFrom(t)},i.pivot.get=function(){return this.transform.pivot},i.pivot.set=function(t){this.transform.pivot.copyFrom(t)},i.skew.get=function(){return this.transform.skew},i.skew.set=function(t){this.transform.skew.copyFrom(t)},i.rotation.get=function(){return this.transform.rotation},i.rotation.set=function(t){this.transform.rotation=t},i.angle.get=function(){return this.transform.rotation*n.RAD_TO_DEG},i.angle.set=function(t){this.transform.rotation=t*n.DEG_TO_RAD},i.zIndex.get=function(){return this._zIndex},i.zIndex.set=function(t){this._zIndex=t,this.parent&&(this.parent.sortDirty=!0)},i.worldVisible.get=function(){var t=this;do{if(!t.visible)return!1}while(t=t.parent);return!0},i.mask.get=function(){return this._mask},i.mask.set=function(t){this._mask&&(this._mask.renderable=!0,this._mask.isMask=!1),this._mask=t,this._mask&&(this._mask.renderable=!1,this._mask.isMask=!0)}
19,Object.defineProperties(s.prototype,i),s}(r.EventEmitter);function h(t,i){return t.zIndex===i.zIndex?t._lastSortedIndex-i._lastSortedIndex:t.zIndex-i.zIndex}i.prototype.displayObjectUpdateTransform=i.prototype.updateTransform;var s=function(s){function t(){s.call(this),this.children=[],this.sortableChildren=e.settings.SORTABLE_CHILDREN,this.sortDirty=!1}s&&(t.__proto__=s);var i={width:{configurable:!0},height:{configurable:!0}};return((t.prototype=Object.create(s&&s.prototype)).constructor=t).prototype.onChildrenChange=function(){},t.prototype.addChild=function(t){var i=arguments,e=arguments.length;if(1<e)for(var n=0;n<e;n++)this.addChild(i[n]);else t.parent&&t.parent.removeChild(t),(t.parent=this).sortDirty=!0,t.transform._parentID=-1,this.children.push(t),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",t,this,this.children.length-1),t.emit("added",this);return t},t.prototype.addChildAt=function(t,i){if(i<0||i>this.children.length)throw new Error(t+"addChildAt: The index "+i+" supplied is out of bounds "+this.children.length);return t.parent&&t.parent.removeChild(t),(t.parent=this).sortDirty=!0,t.transform._parentID=-1,this.children.splice(i,0,t),this._boundsID++,this.onChildrenChange(i),t.emit("added",this),this.emit("childAdded",t,this,i),t},t.prototype.swapChildren=function(t,i){var e,n;t!==i&&(e=this.getChildIndex(t),n=this.getChildIndex(i),this.children[e]=i,this.children[n]=t,this.onChildrenChange(e<n?e:n))},t.prototype.getChildIndex=function(t){t=this.children.indexOf(t);if(-1===t)throw new Error("The supplied DisplayObject must be a child of the caller");return t},t.prototype.setChildIndex=function(t,i){if(i<0||i>=this.children.length)throw new Error("The index "+i+" supplied is out of bounds "+this.children.length);var e=this.getChildIndex(t);r.removeItems(this.children,e,1),this.children.splice(i,0,t),this.onChildrenChange(i)},t.prototype.getChildAt=function(t){if(t<0||t>=this.children.length)throw new Error("getChildAt: Index ("+t+") does not exist.");return this.children[t]},t.prototype.removeChild=function(t){var i=arguments,e=arguments.length;if(1<e)for(var n=0;n<e;n++)this.removeChild(i[n]);else{var s=this.children.indexOf(t);if(-1===s)return null;t.parent=null,t.transform._parentID=-1,r.removeItems(this.children,s,1),this._boundsID++,this.onChildrenChange(s),t.emit("removed",this),this.emit("childRemoved",t,this,s)}return t},t.prototype.removeChildAt=function(t){var i=this.getChildAt(t);return i.parent=null,i.transform._parentID=-1,r.removeItems(this.children,t,1),this._boundsID++,this.onChildrenChange(t),i.emit("removed",this),this.emit("childRemoved",i,this,t),i},t.prototype.removeChildren=function(t,i){var e=t=void 0===t?0:t,i="number"==typeof i?i:this.children.length,n=i-e;if(0<n&&n<=i){for(var s=this.children.splice(e,n),r=0;r<s.length;++r)s[r].parent=null,s[r].transform&&(s[r].transform._parentID=-1);this._boundsID++,this.onChildrenChange(t);for(var o=0;o<s.length;++o)s[o].emit("removed",this),this.emit("childRemoved",s[o],this,o);return s}if(0==n&&0===this.children.length)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},t.prototype.sortChildren=function(){for(var t=!1,i=0,e=this.children.length;i<e;++i){var n=this.children[i];n._lastSortedIndex=i,t||0===n.zIndex||(t=!0)}t&&1<this.children.length&&this.children.sort(h),this.sortDirty=!1},t.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var t=0,i=this.children.length;t<i;++t){var e=this.children[t];e.visible&&e.updateTransform()}},t.prototype.calculateBounds=function(){this._bounds.clear(),this._calculateBounds();for(var t=0;t<this.children.length;t++){var i=this.children[t];i.visible&&i.renderable&&(i.calculateBounds(),i._mask?(i._mask.calculateBounds(),this._bounds.addBoundsMask(i._bounds,i._mask._bounds)):i.filterArea?this._bounds.addBoundsArea(i._bounds,i.filterArea):this._bounds.addBounds(i._bounds))}this._lastBoundsID=this._boundsID},t.prototype._calculateBounds=function(){},t.prototype.render=function(t){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this.filters&&this.filters.length)this.renderAdvanced(t);else{this._render(t);for(var i=0,e=this.children.length;i<e;++i)this.children[i].render(t)}},t.prototype.renderAdvanced=function(t){t.batch.flush();var i=this.filters,e=this._mask;if(i){this._enabledFilters||(this._enabledFilters=[]);for(var n=this._enabledFilters.length=0;n<i.length;n++)i[n].enabled&&this._enabledFilters.push(i[n]);this._enabledFilters.length&&t.filter.push(this,this._enabledFilters)}e&&t.mask.push(this,this._mask),this._render(t);for(var s=0,r=this.children.length;s<r;s++)this.children[s].render(t);t.batch.flush(),e&&t.mask.pop(this,this._mask),i&&this._enabledFilters&&this._enabledFilters.length&&t.filter.pop()},t.prototype._render=function(t){},t.prototype.destroy=function(t){s.prototype.destroy.call(this),this.sortDirty=!1;var i="boolean"==typeof t?t:t&&t.children,e=this.removeChildren(0,this.children.length);if(i)for(var n=0;n<e.length;++n)e[n].destroy(t)},i.width.get=function(){return this.scale.x*this.getLocalBounds().width},i.width.set=function(t){var i=this.getLocalBounds().width;this.scale.x=0!==i?t/i:1,this._width=t},i.height.get=function(){return this.scale.y*this.getLocalBounds().height},i.height.set=function(t){var i=this.getLocalBounds().height;this.scale.y=0!==i?t/i:1,this._height=t}
19,Object.defineProperties(t.prototype,i),t}(i);return s.prototype.containerUpdateTransform=s.prototype.updateTransform,t.Bounds=o,t.Container=s,t.DisplayObject=i,t}({},PIXI,PIXI,PIXI.utils);Object.assign(this.PIXI,_pixi_display); 20this.PIXI=this.PIXI||{};var _pixi_core=function(t,n,C,I,p,i,h,U){"use strict";function g(t,e){void 0===e&&(e=0),this._width=t=void 0===t?0:t,this._height=e,this.destroyed=!1,this.internal=!1,this.onResize=new n.Runner("setRealSize",2),this.onUpdate=new n.Runner("update"),this.onError=new n.Runner("onError",1)}var e={valid:{configurable:!0},width:{configurable:!0},height:{configurable:!0}},e=(g.prototype.bind=function(t){this.onResize.add(t),this.onUpdate.add(t),this.onError.add(t),(this._width||this._height)&&this.onResize.run(this._width,this._height)},g.prototype.unbind=function(t){this.onResize.remove(t),this.onUpdate.remove(t),this.onError.remove(t)},g.prototype.resize=function(t,e){t===this._width&&e===this._height||(this._width=t,this._height=e,this.onResize.run(t,e))},e.valid.get=function(){return!!this._width&&!!this._height},g.prototype.update=function(){this.destroyed||this.onUpdate.run()},g.prototype.load=function(){return Promise.resolve()},e.width.get=function(){return this._width},e.height.get=function(){return this._height},g.prototype.upload=function(t,e,r){return!1},g.prototype.style=function(t,e,r){return!1},g.prototype.dispose=function(){},g.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)},Object.defineProperties(g.prototype,e),function(i){function t(t){var e=t.naturalWidth||t.videoWidth||t.width,r=t.naturalHeight||t.videoHeight||t.height;i.call(this,e,r),this.source=t,this.noSubImage=!1}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).crossOrigin=function(t,e,r){void 0===r&&0!==e.indexOf("data:")?t.crossOrigin=C.determineCrossOrigin(e):!1!==r&&(t.crossOrigin="string"==typeof r?r:"anonymous")},t.prototype.upload=function(t,e,r,i){var t=t.gl,n=e.realWidth,o=e.realHeight;return i=i||this.source,t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.premultiplyAlpha),this.noSubImage||e.target!==t.TEXTURE_2D||r.width!==n||r.height!==o?(r.width=n,r.height=o,t.texImage2D(e.target,0,e.format,e.format,e.type,i)):t.texSubImage2D(t.TEXTURE_2D,0,0,0,e.format,e.type,i),!0},t.prototype.update=function(){var t,e;this.destroyed||(t=this.source.naturalWidth||this.source.videoWidth||this.source.width,e=this.source.naturalHeight||this.source.videoHeight||this.source.height,this.resize(t,e),i.prototype.update.call(this))},t.prototype.dispose=function(){this.source=null},t}(g)),u=function(s){function t(t,e){var r;e=e||{},t instanceof HTMLImageElement||(r=new Image,s.crossOrigin(r,t,e.crossorigin),r.src=t,t=r),s.call(this,t),!t.complete&&this._width&&this._height&&(this._width=0,this._height=0),this.url=t.src,this._process=null,this.preserveBitmap=!1,this.createBitmap=(void 0!==e.createBitmap?e.createBitmap:I.settings.CREATE_IMAGE_BITMAP)&&!!window.createImageBitmap,this.premultiplyAlpha=!1!==e.premultiplyAlpha,this.bitmap=null,this._load=null,!1!==e.autoLoad&&this.load()}return s&&(t.__proto__=s),((t.prototype=Object.create(s&&s.prototype)).constructor=t).prototype.load=function(t){var i=this;return void 0!==t&&(this.createBitmap=t),this._load||(this._load=new Promise(function(t){i.url=i.source.src;function e(){i.destroyed||(r.onload=null,r.onerror=null,i.resize(r.width,r.height),i._load=null,i.createBitmap?t(i.process()):t(i))}var r=i.source;r.complete&&r.src?e():(r.onload=e,r.onerror=function(t){return i.onError.run(t)})})),this._load},t.prototype.process=function(){var e=this;if(null===this._process){if(null!==this.bitmap||!window.createImageBitmap)return Promise.resolve(this);this._process=window.createImageBitmap(this.source,0,0,this.source.width,this.source.height,{premultiplyAlpha:this.premultiplyAlpha?"premultiply":"none"}).then(function(t){return e.destroyed?Promise.reject():(e.bitmap=t,e.update(
20),e._process=null,Promise.resolve(e))})}return this._process},t.prototype.upload=function(t,e,r){if(e.premultiplyAlpha=this.premultiplyAlpha,!this.createBitmap)return s.prototype.upload.call(this,t,e,r);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(s.prototype.upload.call(this,t,e,r,this.bitmap),!this.preserveBitmap){var i,n=!0;for(i in e._glTextures){var o=e._glTextures[i];if(o!==r&&o.dirtyId!==e.dirtyId){n=!1;break}}n&&(this.bitmap.close&&this.bitmap.close(),this.bitmap=null)}return!0},t.prototype.dispose=function(){this.source.onload=null,this.source.onerror=null,s.prototype.dispose.call(this),this.bitmap&&(this.bitmap.close(),this.bitmap=null),this._process=null,this._load=null},t}(e),s=[];function B(t,e){if(!t)return null;var r,i="";"string"==typeof t&&(r=/\.(\w{3,4})(?:$|\?|#)/i.exec(t))&&(i=r[1].toLowerCase());for(var n=s.length-1;0<=n;--n){var o=s[n];if(o.test&&o.test(t,i))return new o(t,e)}return new u(t,e)}function r(t){this.renderer=t}function o(t,e){this.width=Math.ceil(t||100),this.height=Math.ceil(e||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new n.Runner("disposeFramebuffer",2)}function l(){this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsFloat32=new Float32Array(8)}var a=function(i){function t(t,e){var e=e||{},r=e.width,e=e.height;if(!r||!e)throw new Error("BufferResource width or height invalid");i.call(this,r,e),this.data=t}return i&&(t.__proto__=i),((t.prototype=Object.create(i&&i.prototype)).constructor=t).prototype.upload=function(t,e,r){t=t.gl;return t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.premultiplyAlpha),r.width===e.width&&r.height===e.height?t.texSubImage2D(e.target,0,0,0,e.width,e.height,e.format,e.type,this.data):(r.width=e.width,r.height=e.height,t.texImage2D(e.target,0,r.internalFormat,e.width,e.height,0,e.format,r.type,this.data)),!0},t.prototype.dispose=function(){this.data=null},t.test=function(t){return t instanceof Float32Array||t instanceof Uint8Array||t instanceof Uint32Array},t}(g),L={scaleMode:p.SCALE_MODES.NEAREST,format:p.FORMATS.RGBA,premultiplyAlpha:!1},R=function(f){function o(t,e){void 0===t&&(t=null),void 0===e&&(e=null),f.call(this);var r=(e=e||{}).premultiplyAlpha,i=e.mipmap,n=e.anisotropicLevel,o=e.scaleMode,s=e.width,a=e.height,h=e.wrapMode,u=e.format,l=e.type,d=e.target,c=e.resolution,e=e.resourceOptions;!t||t instanceof g||((t=B(t,e)).internal=!0),this.width=s||0,this.height=a||0,this.resolution=c||I.settings.RESOLUTION,this.mipmap=void 0!==i?i:I.settings.MIPMAP_TEXTURES,this.anisotropicLevel=void 0!==n?n:I.settings.ANISOTROPIC_LEVEL,this.wrapMode=h||I.settings.WRAP_MODE,this.scaleMode=void 0!==o?o:I.settings.SCALE_MODE,this.format=u||p.FORMATS.RGBA,this.type=l||p.TYPES.UNSIGNED_BYTE,this.target=d||p.TARGETS.TEXTURE_2D,this.premultiplyAlpha=!1!==r,this.uid=C.uid(),this.touched=0,this.isPowerOfTwo=!1,this._refreshPOT(),this._glTextures={},this.dirtyId=0,this.dirtyStyleId=0,this.cacheId=null,this.valid=0<s&&0<a,this.textureCacheIds=[],this.destroyed=!1,this.resource=null,this._batchEnabled=0,this.setResource(t)}f&&(o.__proto__=f),(o.prototype=Object.create(f&&f.prototype)).constructor=o;var t={realWidth:{configurable:!0},realHeight:{configurable:!0}};return t.realWidth.get=function(){return Math.ceil(this.width*this.resolution-1e-4)},t.realHeight.get=function(){return Math.ceil(this.height*this.resolution-1e-4)},o.prototype.setStyle=function(t,e){var r;return void 0!==t&&t!==this.scaleMode&&(this.scaleMode=t,r=!0),void 0!==e&&e!==this.mipmap&&(this.mipmap=e,r=!0),r&&this.dirtyStyleId++,this},o.prototype.setSize=function(t,e,r){return this.resolution=r||this.resolution,this.width=t,this.height=e,this._refreshPOT(),this.update(),this},o.prototype.setRealSize=function(t,e,r){return this.resolution=r||this.resolution,this.width=t/this.resolution,this.height=e/this.resolution,this._refreshPOT(),this.update(),this},o.prototype._refreshPOT=function(){this.isPowerOfTwo=C.isPow2(this.realWidth)&&C.isPow2(this.realHeight)},o.prototype.setResolution=function(t){var e=this.resolution;return e!==t&&(this.resolution=t,this.valid&&(this.width=this.width*e/t,this.height=this.height*e/t,this.emit
20("update",this)),this._refreshPOT()),this},o.prototype.setResource=function(t){if(this.resource!==t){if(this.resource)throw new Error("Resource can be set only once");t.bind(this),this.resource=t}return this},o.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):0<this.width&&0<this.height&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},o.prototype.onError=function(t){this.emit("error",this,t)},o.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete C.BaseTextureCache[this.cacheId],delete C.TextureCache[this.cacheId],this.cacheId=null),this.dispose(),o.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},o.prototype.dispose=function(){this.emit("dispose",this)},o.from=function(t,e){var r=null,r="string"==typeof t?t:(t._pixiId||(t._pixiId="pixiid_"+C.uid()),t._pixiId),i=C.BaseTextureCache[r];return i||((i=new o(t,e)).cacheId=r,o.addToCache(i,r)),i},o.fromBuffer=function(t,e,r,i){t=t||new Float32Array(e*r*4);var n=new a(t,{width:e,height:r}),t=t instanceof Float32Array?p.TYPES.FLOAT:p.TYPES.UNSIGNED_BYTE;return new o(n,Object.assign(L,i||{width:e,height:r,type:t}))},o.addToCache=function(t,e){e&&(-1===t.textureCacheIds.indexOf(e)&&t.textureCacheIds.push(e),C.BaseTextureCache[e]&&console.warn("BaseTexture added to the cache with an id ["+e+"] that already had an entry"),C.BaseTextureCache[e]=t)},o.removeFromCache=function(t){if("string"==typeof t){var e,r=C.BaseTextureCache[t];if(r)return-1<(e=r.textureCacheIds.indexOf(t))&&r.textureCacheIds.splice(e,1),delete C.BaseTextureCache[t],r}else if(t&&t.textureCacheIds){for(var i=0;i<t.textureCacheIds.length;++i)delete C.BaseTextureCache[t.textureCacheIds[i]];return t.textureCacheIds.length=0,t}return null},Object.defineProperties(o.prototype,t),o}(C.EventEmitter),d=(R._globalBatch=0,function(a){function t(t,e){e=e||{};var r,i=t;Array.isArray(t)&&(i=(r=t).length),a.call(this,e.width,e.height),this.items=[],this.itemDirtyIds=[];for(var n=0;n<i;n++){var o=new R;this.items.push(o),this.itemDirtyIds.push(-1)}if(this.length=i,this._load=null,r)for(var s=0;s<i;s++)this.addResourceAt(B(r[s],e),s)}return a&&(t.__proto__=a),((t.prototype=Object.create(a&&a.prototype)).constructor=t).prototype.dispose=function(){for(var t=0,e=this.length;t<e;t++)this.items[t].destroy();this.items=null,this.itemDirtyIds=null,this._load=null},t.prototype.addResourceAt=function(t,e){if(this.items[e])return t.valid&&!this.valid&&this.resize(t.width,t.height),this.items[e].setResource(t),this;throw new Error("Index "+e+" is out of bounds")},t.prototype.bind=function(t){a.prototype.bind.call(this,t),t.target=p.TARGETS.TEXTURE_2D_ARRAY;for(var e=0;e<this.length;e++)this.items[e].on("update",t.update,t)},t.prototype.unbind=function(t){a.prototype.unbind.call(this,t);for(var e=0;e<this.length;e++)this.items[e].off("update",t.update,t)},t.prototype.load=function(){var r,t,i=this;return this._load||(t=(r=this.items.map(function(t){return t.resource})).map(function(t){return t.load()}),this._load=Promise.all(t).then(function(){var t=r[0],e=t.width,t=t.height;return i.resize(e,t),Promise.resolve(i)})),this._load},t.prototype.upload=function(t,e,r){var i=this.length,n=this.itemDirtyIds,o=this.items,s=t.gl;r.dirtyId<0&&s.texImage3D(s.TEXTURE_2D_ARRAY,0,e.format,this._width,this._height,i,0,e.format,e.type,null);for(var a=0;a<i;a++){var h=o[a];n[a]<h.dirtyId&&(n[a]=h.dirtyId,h.valid&&s.texSubImage3D(s.TEXTURE_2D_ARRAY,0,0,0,a,h.resource.width,h.resource.height,1,e.format,e.type,h.resource.source))}return!0},t}(g)),c=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).test=function(t){var e=window.OffscreenCanvas;return!!(e&&t instanceof e)||t instanceof HTMLCanvasElement},e}(e),f=function(i){function s(t,e){if(i.call(this,t,e=e||{}),this.length!==s.SIDES)throw new Error("Invalid length. Got "+this.length+", expected 6");for(var r=0;r<s.SIDES;r++)this.items[r].target=p.TARGETS.TEXTURE_CUBE_MAP_POSITIVE_X+r;!1!==e.autoLoad&&this.load()}return i&&(s.__proto__=i),((s.prototype=Object.create(i&&i.prototype)).constructor=s).prototype.bind=function(t){i.prototype.bind.call(this,t),t.target=p.TARGETS.TEXTURE_CUBE_MAP},s.prototype.upload=function(t,e,r){for(var i=this.itemDirtyIds,n=0;n<s.SIDES;n++){var o=this.items[n];
20i[n]<o.dirtyId&&(i[n]=o.dirtyId,o.valid&&o.resource.upload(t,o,r))}return!0},s}(d),_=(f.SIDES=6,function(r){function i(t,e){e=e||{},r.call(this,document.createElement("canvas")),this._width=0,this._height=0,this.svg=t,this.scale=e.scale||1,this._overrideWidth=e.width,this._overrideHeight=e.height,this._resolve=null,this._crossorigin=e.crossorigin,this._load=null,!1!==e.autoLoad&&this.load()}return r&&(i.__proto__=r),((i.prototype=Object.create(r&&r.prototype)).constructor=i).prototype.load=function(){var e=this;return this._load||(this._load=new Promise(function(t){if(e._resolve=function(){e.resize(e.source.width,e.source.height),t(e)},/^\<svg/.test(e.svg.trim())){if(!btoa)throw new Error("Your browser doesn't support base64 conversions.");e.svg="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e.svg)))}e._loadSvg()})),this._load},i.prototype._loadSvg=function(){var o=this,s=new Image;r.crossOrigin(s,this.svg,this._crossorigin),s.src=this.svg,s.onerror=function(t){s.onerror=null,o.onError.run(t)},s.onload=function(){var t=s.width,e=s.height;if(!t||!e)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");var r=t*o.scale,i=e*o.scale,n=((o._overrideWidth||o._overrideHeight)&&(r=o._overrideWidth||o._overrideHeight/e*t,i=o._overrideHeight||o._overrideWidth/t*e),r=Math.round(r),i=Math.round(i),o.source);n.width=r,n.height=i,n._pixiId="canvas_"+C.uid(),n.getContext("2d").drawImage(s,0,0,t,e,0,0,r,i),o._resolve(),o._resolve=null}},i.getSize=function(t){var t=i.SVG_SIZE.exec(t),e={};return t&&(e[t[1]]=Math.round(parseFloat(t[3])),e[t[5]]=Math.round(parseFloat(t[7]))),e},i.prototype.dispose=function(){r.prototype.dispose.call(this),this._resolve=null,this._crossorigin=null},i.test=function(t,e){return"svg"===e||"string"==typeof t&&0===t.indexOf("data:image/svg+xml;base64")||"string"==typeof t&&0===t.indexOf("<svg")},i}(e)),m=(_.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,function(h){function r(t,e){if(e=e||{},!(t instanceof HTMLVideoElement)){var r=document.createElement("video");r.setAttribute("preload","auto"),r.setAttribute("webkit-playsinline",""),r.setAttribute("playsinline",""),h.crossOrigin(r,(t="string"==typeof t?[t]:t)[0].src||t[0],e.crossorigin);for(var i=0;i<t.length;++i){var n=document.createElement("source"),o=t[i],s=o.src,o=o.mime,a=(s=s||t[i]).split("?").shift().toLowerCase(),a=a.substr(a.lastIndexOf(".")+1),o=o||"video/"+a;n.src=s,n.type=o,r.appendChild(n)}t=r}h.call(this,t),this.noSubImage=!0,this._autoUpdate=!0,this._isAutoUpdating=!1,this._updateFPS=e.updateFPS||0,this._msToNextUpdate=0,this.autoPlay=!1!==e.autoPlay,this._load=null,this._resolve=null,this._onCanPlay=this._onCanPlay.bind(this),this._onError=this._onError.bind(this),!1!==e.autoLoad&&this.load()}h&&(r.__proto__=h);var t={autoUpdate:{configurable:!0},updateFPS:{configurable:!0}};return((r.prototype=Object.create(h&&h.prototype)).constructor=r).prototype.update=function(t){var e;void 0===t&&(t=0),this.destroyed||(e=i.Ticker.shared.elapsedMS*this.source.playbackRate,this._msToNextUpdate=Math.floor(this._msToNextUpdate-e),(!this._updateFPS||this._msToNextUpdate<=0)&&(h.prototype.update.call(this,t),this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0))},r.prototype.load=function(){var e,r=this;return this._load||(((e=this.source).readyState===e.HAVE_ENOUGH_DATA||e.readyState===e.HAVE_FUTURE_DATA)&&e.width&&e.height&&(e.complete=!0),e.addEventListener("play",this._onPlayStart.bind(this)),e.addEventListener("pause",this._onPlayStop.bind(this)),this._isSourceReady()?this._onCanPlay():(e.addEventListener("canplay",this._onCanPlay),e.addEventListener("canplaythrough",this._onCanPlay),e.addEventListener("error",this._onError,!0)),this._load=new Promise(function(t){r.valid?t(r):(r._resolve=t,e.load())})),this._load},r.prototype._onError=function(){this.source.removeEventListener("error",this._onError,!0),this.onError.run(event)},r.prototype._isSourcePlaying=function(){var t=this.source;return 0<t.currentTime&&!1===t.paused&&!1===t.ended&&2<t.readyState},r.prototype._isSourceReady=function(){return 3===this.source.readyState||4===this.source.readyState},r.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),!this._isAutoUpdating&&this.autoUpdate&&(i.Ticker.shared.add(this.update,this),this._isAutoUpdating=!0)},r.prototype._onPlayStop=function(){this._isAutoUpdating&&(i.Ticker.shared.remove(this.update,this),this._isAutoUpdating=!1)},r.prototype._onCanPlay=function(){var t=this.source,e=(t.removeEventListener("canplay",this._onCanPlay),t.removeEventListener("canplaythrough",this._onCanPlay),this.valid);this.resize(t.videoWidth,t.videoHeight),!e&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&t.play()},r.prototype.dispose=function(){this._isAutoUpdating&&i.Ticker.shared.remove(this.update,this),this.source&&(this.source.removeEventListener("error",this._onError,!0),this.source.pause(),this.source.src="",this.source.load()),h.prototype.dispose.call(this)},t.autoUpdate.get=function(){return this._autoUpdate},t.autoUpdate.set=function(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isAutoUpdating?(i.Ticker.shared.remove(this.update,this),this._isAutoUpdating=!1):this._autoUpdate&&!this._isAutoUpdating&&(i.Ticker.shared.add(this.update,this),this._isAutoUpdating=!0))},t.updateFPS.get=function(){return this._updateFPS},t.updateFPS.set=function(t){t!==this._updateFPS&&(this._updateFPS=t)},r.test=function(t,e){return t instanceof HTMLVideoElement||-1<r.TYPES.indexOf(e)},Object.defineProperties(r.prototype,t),r}(e)),v=(m.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).test=function(t){return!!window.createImageBitmap&&t instanceof ImageBitmap},e}(e)),d=(s.push(u,v,c,m,_,a,f,d),{INSTALLED:s,autoDetectResource:B,ArrayRes
20ource:d,BufferResource:a,CanvasResource:c,CubeResource:f,ImageResource:u,ImageBitmapResource:v,SVGResource:_,VideoResource:m,Resource:g,BaseImageResource:e}),k=(r.prototype.destroy=function(){this.renderer=null},function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.upload=function(t,e,r){t=t.gl;return t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.premultiplyAlpha),r.width===e.width&&r.height===e.height?t.texSubImage2D(e.target,0,0,0,e.width,e.height,e.format,e.type,this.data):(r.width=e.width,r.height=e.height,t.texImage2D(e.target,0,t.DEPTH_COMPONENT16,e.width,e.height,0,e.format,e.type,this.data)),!0},e}(a)),v={colorTexture:{configurable:!0}},y=(v.colorTexture.get=function(){return this.colorTextures[0]},o.prototype.addColorTexture=function(t,e){return this.colorTextures[t=void 0===t?0:t]=e||new R(null,{scaleMode:0,resolution:1,mipmap:!1,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},o.prototype.addDepthTexture=function(t){return this.depthTexture=t||new R(new k(null,{width:this.width,height:this.height}),{scaleMode:0,resolution:1,width:this.width,height:this.height,mipmap:!1,format:p.FORMATS.DEPTH_COMPONENT,type:p.TYPES.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},o.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},o.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},o.prototype.resize=function(t,e){if(t=Math.ceil(t),e=Math.ceil(e),t!==this.width||e!==this.height){this.width=t,this.height=e,this.dirtyId++,this.dirtySize++;for(var r,i=0;i<this.colorTextures.length;i++){var n=this.colorTextures[i],o=n.resolution;n.setSize(t/o,e/o)}this.depthTexture&&(r=this.depthTexture.resolution,this.depthTexture.setSize(t/r,e/r))}},o.prototype.dispose=function(){this.disposeRunner.run(this,!1)},Object.defineProperties(o.prototype,v),function(r){function t(t){r.call(this,null,t="number"==typeof t?{width:arguments[0],height:arguments[1],scaleMode:arguments[2],resolution:arguments[3]}:t);var t=t||{},e=t.width,t=t.height;this.mipmap=!1,this.width=Math.ceil(e)||100,this.height=Math.ceil(t)||100,this.valid=!0,this._canvasRenderTarget=null,this.clearColor=[0,0,0,0],this.framebuffer=new o(this.width*this.resolution,this.height*this.resolution).addColorTexture(0,this),this.stencilMaskStack=[],this.filterStack=[{}]}return r&&(t.__proto__=r),((t.prototype=Object.create(r&&r.prototype)).constructor=t).prototype.resize=function(t,e){t=Math.ceil(t),e=Math.ceil(e),this.framebuffer.resize(t*this.resolution,e*this.resolution)},t.prototype.dispose=function(){this.framebuffer.dispose(),r.prototype.dispose.call(this)},t.prototype.destroy=function(){r.prototype.destroy.call(this,!0),this.framebuffer=null},t}(R)),G=(l.prototype.set=function(t,e,r){var i,n,o,s,a=e.width,e=e.height;r?(i=t.width/2/a,n=t.height/2/e,o=t.x/a+i,s=t.y/e+n,r=h.GroupD8.add(r,h.GroupD8.NW),this.x0=o+i*h.GroupD8.uX(r),this.y0=s+n*h.GroupD8.uY(r),r=h.GroupD8.add(r,2),this.x1=o+i*h.GroupD8.uX(r),this.y1=s+n*h.GroupD8.uY(r),r=h.GroupD8.add(r,2),this.x2=o+i*h.GroupD8.uX(r),this.y2=s+n*h.GroupD8.uY(r),r=h.GroupD8.add(r,2),this.x3=o+i*h.GroupD8.uX(r),this.y3=s+n*h.GroupD8.uY(r)):(this.x0=t.x/a,this.y0=t.y/e,this.x1=(t.x+t.width)/a,this.y1=t.y/e,this.x2=(t.x+t.width)/a,this.y2=(t.y+t.height)/e,this.x3=t.x/a,this.y3=(t.y+t.height)/e),this.uvsFloat32[0]=this.x0,this.uvsFloat32[1]=this.y0,this.uvsFloat32[2]=this.x1,this.uvsFloat32[3]=this.y1,this.uvsFloat32[4]=this.x2,this.uvsFloat32[5]=this.y2,this.uvsFloat32[6]=this.x3,this.uvsFloat32[7]=this.y3},new l),_=function(s){function a(t,e,r,i,n,o){if(s.call(this),this.noFrame=!1,e||(this.noFrame=!0,e=new h.Rectangle(0,0,1,1)),t instanceof a&&(t=t.baseTexture),this.baseTexture=t,this._frame=e,this.trim=i,this.valid=!1,this.requiresUpdate=!1,this._uvs=G,this.uvMatrix=null,this.orig=r||e,this._rotate=Number(n||0),!0===n)this._rotate=2;else if(this._rotate%2!=0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");this.defaultAnchor=o?new h.Point(o.x,o.y):new h.Point(0,0),this._updateID=0,this.textureCacheIds=[],t.valid?this.noFrame?t.valid&&this.onBaseTextureUpdated(t):this.frame=e:t.once("loaded",this.onBaseTextureUpdated,this),this.noFrame&&t.on("update",this.onBaseTextureUpdated,this)}s&&(a.__proto__=s);var t={resolution:{configurable:!0},frame:{configurable:!0},rotate:{configurable:!0},width:{configurable:!0},height:{configurable:!0}};return((a.prototype=Object.create(s&&s.prototype)).constructor=a).prototype.update=function(){this.baseTexture.resource&&this.baseTexture.resource.update(
20)},a.prototype.onBaseTextureUpdated=function(t){if(this.noFrame){if(!this.baseTexture.valid)return;this._frame.width=t.width,this._frame.height=t.height,this.valid=!0,this.updateUvs()}else this.frame=this._frame;this.emit("update",this)},a.prototype.destroy=function(t){this.baseTexture&&(t&&((t=this.baseTexture.resource)&&C.TextureCache[t.url]&&a.removeFromCache(t.url),this.baseTexture.destroy()),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture=null),this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,a.removeFromCache(this),this.textureCacheIds=null},a.prototype.clone=function(){return new a(this.baseTexture,this.frame,this.orig,this.trim,this.rotate,this.defaultAnchor)},a.prototype.updateUvs=function(){this._uvs===G&&(this._uvs=new l),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++},a.from=function(t,e){void 0===e&&(e={});var r=null,r="string"==typeof t?t:(t._pixiId||(t._pixiId="pixiid_"+C.uid()),t._pixiId),i=C.TextureCache[r];return i||(e.resolution||(e.resolution=C.getResolutionOfUrl(t)),(i=new a(new R(t,e))).baseTexture.cacheId=r,R.addToCache(i.baseTexture,r),a.addToCache(i,r)),i},a.fromBuffer=function(t,e,r,i){return new a(R.fromBuffer(t,e,r,i))},a.fromLoader=function(t,e,r){t=new u(t);t.url=e;t=new a(new R(t,{scaleMode:I.settings.SCALE_MODE,resolution:C.getResolutionOfUrl(e)}));return R.addToCache(t.baseTexture,r=r||e),a.addToCache(t,r),r!==e&&(R.addToCache(t.baseTexture,e),a.addToCache(t,e)),t},a.addToCache=function(t,e){e&&(-1===t.textureCacheIds.indexOf(e)&&t.textureCacheIds.push(e),C.TextureCache[e]&&console.warn("Texture added to the cache with an id ["+e+"] that already had an entry"),C.TextureCache[e]=t)},a.removeFromCache=function(t){if("string"==typeof t){var e,r=C.TextureCache[t];if(r)return-1<(e=r.textureCacheIds.indexOf(t))&&r.textureCacheIds.splice(e,1),delete C.TextureCache[t],r}else if(t&&t.textureCacheIds){for(var i=0;i<t.textureCacheIds.length;++i)C.TextureCache[t.textureCacheIds[i]]===t&&delete C.TextureCache[t.textureCacheIds[i]];return t.textureCacheIds.length=0,t}return null},t.resolution.get=function(){return this.baseTexture.resolution},t.frame.get=function(){return this._frame},t.frame.set=function(t){this._frame=t,this.noFrame=!1;var e=t.x,r=t.y,i=t.width,n=t.height,o=e+i>this.baseTexture.width,s=r+n>this.baseTexture.height;if(o||s)throw e="X: "+e+" + "+i+" = "+(e+i)+" > "+this.baseTexture.width,r="Y: "+r+" + "+n+" = "+(r+n)+" > "+this.baseTexture.height,new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+e+" "+(o&&s?"and":"or")+" "+r);this.valid=i&&n&&this.baseTexture.valid,this.trim||this.rotate||(this.orig=t),this.valid&&this.updateUvs()},t.rotate.get=function(){return this._rotate},t.rotate.set=function(t){this._rotate=t,this.valid&&this.updateUvs()},t.width.get=function(){return this.orig.width},t.height.get=function(){return this.orig.height},Object.defineProperties(a.prototype,t),a}(C.EventEmitter);function V(t){t.destroy=function(){},t.on=function(){},t.once=function(){},t.emit=function(){}}_.EMPTY=new _(new R),V(_.EMPTY),V(_.EMPTY.baseTexture),_.WHITE=((m=document.createElement("canvas")).width=16,m.height=16,(e=m.getContext("2d")).fillStyle="white",e.fillRect(0,0,16,16),new _(new R(new c(m)))),V(_.WHITE),V(_.WHITE.baseTexture);function x(t){this.texturePool={},this.textureOptions=t||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0}function E(t,e,r,i,n,o,s){void 0===r&&(r=!1),void 0===i&&(i=5126),this.buffer=t,this.size=e,this.normalized=r,this.type=i,this.stride=n,this.start=o,this.instance=s}function T(t,e,r){void 0===e&&(e=!0),void 0===r&&(r=!1),this.data=t||new Float32Array(1),this._glBuffers={},this._updateID=0,this.index=r,this.static=e,this.id=z++,this.disposeRunner=new n.Runner("disposeBuffer",2)}var X=function(a){function e(t,e){var r,i,n,o,s=null;t instanceof y||(r=arguments[1],i=arguments[2],n=arguments[3],o=arguments[4],console.warn("Please use RenderTexture.create("+r+", "+i+") instead of the ctor directly."),s=arguments[0],e=null,t=new y({width:r,height:i,scaleMode:n,resolution:o})),a.call(this,t,e),this.legacyRenderer=s,this.valid=!0,this.filterFrame=null,this.filterPoolKey=null,this.updateUvs()}return a&&(e.__proto__=a),((e.prototype=Object.create(a&&a.prototype)).constructor=e).prototype.resize=function(t,e,r){void 0===r&&(r=!0),t=Math.ceil(t),e=Math.ceil(e),this.valid=0<t&&0<e,this._frame.width=this.orig.width=t,this._frame.height=this.orig.height=e,r&&this.baseTexture.resize(t,e),this.updateUvs()},e.prototype.setResolution=function(t){var e=this.baseTexture;e.resolution!==t&&(e.setResolution(t),this.resize(e.width,e.height,!1))},e.create=function(t){return new e(new y(t="number"==typeof t?{width:t,height:arguments[1],scaleMode:arguments[2],resolution:arguments[3]}:t))},e}(_),z=(x.prototype.createTexture=function(t,e){t=new y(Object.assign({width:t,height:e,resolution:1},this.textureOptions));return new X(t)},x.prototype.getOptimalTexture=function(t,e,r){var i=x.SCREEN_KEY,n=(t*=r=void 0===r?1:r,e*=r,this.enableFullScreen&&t===this._pixelsWidth&&e===this._pixelsHeight||(i=(65535&(t=C.nextPow2(t)))<<16|65535&(e=C.nextPow2(e))),this.texturePool[i]||(this.texturePool[i]=[]),this.texturePool[i].pop());return(n=n||this.createTexture(t,e)).filterPoolKey=i,n.setResolution(r),n},x.prototype.getFilterTexture=function(t,e){e=this.getOptimalTexture(t.width,t.height,e||t.resolution);return e.filterFrame=t.filterFrame,e},x.prototype.returnTexture=function(t){var e=t.filterPoolKey;t.filterFrame=null,this.texturePool[e].push(t)},x.prototype.returnFilterTexture=function(t){this.returnTexture(t)},x.prototype.clear=function(t){if(t=!1!==t)for(var e in this.texturePool){var r=this.texturePool[e];if(r)for(var i=0;i<r.length;i++)r[i].destroy(!0)}this.texturePool={}},x.prototype.setScreenSize=function(t){if(t.width!==this._pixelsWidth||t.height!==this._pixelsHeight){var e=x.SCREEN_KEY,r=this.texturePool[e];if(this.enableFullScreen=0<t.width&&0<t.height,r)for(var i=0;i<r.length;i++)r[i].destroy(!0);this.texturePool[e]=[],this._pixelsWidth=t.width,this._pixelsHeight=t.height}},x.SCREEN_KEY="screen",E.prototype.destroy=function(){this.buffer=null},E.from=function(t,e,r,i,n){return new E(t,e,r,i,n)},0);function j(t){if(4===t.BYTES_PER_ELEMENT)return t instanceof Float32Array?"Float32Array":t instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===t.BYTES_PER_ELEMENT){if(t instanceof Uint16Array)return"Uint16Array"}else if(1===t.BYTES_PER_ELEMENT&&t instanceof Uint8Array)return"Uint8Array";return null}T.prototype.update=function(t){this.data=t||this.data,this._updateID++},T.prototype.dispose=function(){this.disposeRunner.run(this,!1)},T.prototype.destroy=function(){this.dispose(),this.data=null},T.from=function(t){return t instanceof Array&&(t=new Float32Array(t)),new T(t)};var H={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};function b(t,e){void 0===e&&(e={}),this.buffers=t=void 0===t?[]:t,this.indexBuffer=null,this.attributes=e,this.glVertexArrayObjects={},this.id=q++,this.instanced=!1,this.instanceCount=1,this.disposeRunner=new n.Runner("disposeGeometry",2),this.refCount=0}function w(t,e){this.uniforms=t,this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=J++,this.static=!!e}function W(){this.renderTexture=null,this.target=null,this.legacy=!1,this.resolution=1,this.sourceFrame=new h.Rectangle,this.destinationFrame=new h.Rectangle,this.filters=[]}function S(t){this.renderer=t}function Y(t){this.buffer=t,this.updateID=-1,this.byteLength=-1,this.refCount=0}var K={5126:4,5123:2,5121:1},q=0,Z={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array},Q=(b.prototype.addAttribute=function(t,e,r,i,n,o,s,a){if(void 0===i&&(i=!1),void 0===a&&(a=!1),!e)throw new Error("You must pass a buffer when creating an attribute");e.data||(e instanceof Array&&(e=new Float32Array(e)),e=new T(e));var h=t.split("|");if(1<h.length)for(var u=0;u<h.length;u++)this.addAttribute(h[u],e,r,i,n);else{var l=this.buffers.indexOf(e);-1===l&&(this.buffers.push(e),l=this.buffers.length-1),this.attributes[t]=new E(l,r,i,n,o,s,a),this.instanced=this.instanced||a}return this},b.prototype.getAttribute=function(t){return this.attributes[t]},b.prototype.getBuffer=function(t){return this.buffers[this.getAttribute(t).buffer]},b.prototype.addIndex=function(t){return t.data||(t instanceof Array&&(t=new Uint16Array(t)),t=new T(t)),t.index=!0,this.indexBuffer=t,-1===this.buffers.indexOf(t)&&this.buffers.push(t),this},b.prototype.getIndex=function(){return this.indexBuffer},b.prototype.interleave=function(){if(!(1===this.buffers.length||2===this.buffers.length&&this.indexBuffer)){var t,e=[],r=[],i=new T;for(t in this.attributes){var n=this.attributes[t],o=this.buffers[n.buffer];e.push(o.data),r.push(n.size*K[n.type]/4),n.buffer=0}for(i.data=function(t,e){for(var r=0,i=0,n={},o=0;o<t.length;o++)i+=e[o],r+=t[o].length;for(var s=new ArrayBuffer(4*r),a=null,h=0,u=0;u<t.length;u++){var l=e[u],d=t[u],c=j(d);n[c]||(n[c]=new H[c](s));for(var a=n[c],f=0;f<d.length;f++)a[(f/l|0)*i+h+f%l]=d[f];h+=l}return new Float32Array(s)}(e,r),t=0;t<this.buffers.length;t++)this.buffers[t]!==this.indexBuffer&&this.buffers[t].destroy();this.buffers=[i],this.indexBuffer&&this.buffers.push(this.indexBuffer)}return this},b.prototype.getSize=function(){for(var t in this.attributes){t=this.attributes[t];return this.buffers[t.buffer].data.length/(t.stride/4||t.size)}return 0},b.prototype.dispose=function(){this.disposeRunner.run(this,!1)},b.prototype.destroy=function(){this.dispose(),this.buffers=null,this.indexBuffer.destroy(),this.attributes=null},b.prototype.clone=function(){for(var t,e=new b,r=0;r<this.buffers.length;r++)e.buffers[r]=new T(this.buffers[r].data.slice());for(t in this.attributes){var i=this.attributes[t];e.attributes[t]=new E(i.buffer,i.size,i.normalized,i.type,i.stride,i.start,i.instance)}return this.indexBuffer&&(e.indexBuffer=e.buffers[this.buffers.indexOf(this.indexBuffer)],e.indexBuffer.index=!0),e},b.merge=function(t){for(var e=new b,r=[],i=[],n=[],o=0;o<t.length;o++)for(var s=t[o],a=0;a<s.buffers.length;a++)i[a]=i[a]||0,i[a]+=s.buffers[a].data.length,n[a]=0;for(var h=0;h<s.buffers.length;h++)r[h]=new Z[j(s.buffers[h].data)](i[h]),e.buffers[h]=new T(r[h]);for(var u=0;u<t.length;u++){s=t[u];for(var l=0;l<s.buffers.length;l++)r[l].set(s.buffers[l].data,n[l]),n[l]+=s.buffers[l].data.length}if(e.attributes=s.attributes,s.indexBuffer){e.indexBuffer=e.buffers[s.buffers.indexOf(s.indexBuffer)],e.indexBuffer.index=!0;for(var d,c=0,f=0,p=0,g=0,_=0;_<s.buffers.length;_++)if(s.buffers[_]!==s.indexBuffer){g=_;break}for(d in s.attributes){var m=s.attributes[d];(0|m.buffer)===g&&(f+=m.size*K[m.type]/4)}for(var v=0;v<t.length;v++){for(var y=t[v].indexBuffer.data,x=0;x<y.length;x++)e.indexBuffer.data[x+p]+=c;c+=s.buffers[g].data.length/f,p+=y.length}}return e},function(t){function e(){t.call(this),this.addAttribute("aVertexPosition",[0,0,1,0,1,1,0,1]).addIndex([0,1,3,2])}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e}(b)),$=function(t){function e(){t.call(this),this.vertices=new Float32Array([-1,-1,1,-1,1,1,-1,1]),this.uvs=new Float32Array([0,0,1,0,1,1,0,1]),this.vertexBuffer=new T(this.vertices),this.uvBuffer=new T(this.uvs),this.addAttribute("aVertexPosition",this.vertexBuffer).addAttribute("aTextureCoord",this.uvBuffer).addIndex([0,1,2,0,2,3])}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.map=function(t,e){var r;return this.uvs[0]=0,this.uvs[1]=0,this.uvs[2]=0+e.width/t.width,this.uvs[3]=0,this.uvs[4]=0+e.width/t.width,this.uvs[5]=0+e.he
20ight/t.height,this.uvs[6]=0,this.uvs[7]=0+e.height/t.height,t=e.x,r=e.y,this.vertices[0]=t,this.vertices[1]=r,this.vertices[2]=t+e.width,this.vertices[3]=r,this.vertices[4]=t+e.width,this.vertices[5]=r+e.height,this.vertices[6]=t,this.vertices[7]=r+e.height,this.invalidate(),this},e.prototype.invalidate=function(){return this.vertexBuffer._updateID++,this.uvBuffer._updateID++,this},e}(b),J=0,tt=(w.prototype.update=function(){this.dirtyId++},w.prototype.add=function(t,e,r){this.uniforms[t]=new w(e,r)},w.from=function(t,e){return new w(t,e)},W.prototype.clear=function(){this.target=null,this.filters=null,this.renderTexture=null},function(e){function t(t){e.call(this,t),this.defaultFilterStack=[{}],this.texturePool=new x,this.texturePool.setScreenSize(t.view),this.statePool=[],this.quad=new Q,this.quadUv=new $,this.tempRect=new h.Rectangle,this.activeState={},this.globalUniforms=new w({outputFrame:this.tempRect,inputSize:new Float32Array(4),inputPixel:new Float32Array(4),inputClamp:new Float32Array(4),resolution:1,filterArea:new Float32Array(4),filterClamp:new Float32Array(4)},!0),this._pixelsWidth=t.view.width,this._pixelsHeight=t.view.height}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.push=function(t,e){for(var r=this.renderer,i=this.defaultFilterStack,n=this.statePool.pop()||new W,o=e[0].resolution,s=e[0].padding,a=e[0].autoFit,h=e[0].legacy,u=1;u<e.length;u++)var l=e[u],o=Math.min(o,l.resolution),s=Math.max(s,l.padding),a=a||l.autoFit,h=h||l.legacy;1===i.length&&(this.defaultFilterStack[0].renderTexture=r.renderTexture.current),i.push(n),n.resolution=o,n.legacy=h,n.target=t,n.sourceFrame.copyFrom(t.filterArea||t.getBounds(!0)),n.sourceFrame.pad(s),a&&n.sourceFrame.fit(this.renderer.renderTexture.sourceFrame),n.sourceFrame.ceil(o),n.renderTexture=this.getOptimalFilterTexture(n.sourceFrame.width,n.sourceFrame.height,o),n.filters=e,n.destinationFrame.width=n.renderTexture.width,n.destinationFrame.height=n.renderTexture.height,n.renderTexture.filterFrame=n.sourceFrame,r.renderTexture.bind(n.renderTexture,n.sourceFrame),r.renderTexture.clear()},t.prototype.pop=function(){var t=this.defaultFilterStack,e=t.pop(),r=e.filters,i=(this.activeState=e,this.globalUniforms.uniforms),n=(i.outputFrame=e.sourceFrame,i.resolution=e.resolution,i.inputSize),o=i.inputPixel,s=i.inputClamp,n=(n[0]=e.destinationFrame.width,n[1]=e.destinationFrame.height,n[2]=1/n[0],n[3]=1/n[1],o[0]=n[0]*e.resolution,o[1]=n[1]*e.resolution,o[2]=1/o[0],o[3]=1/o[1],s[0]=.5*o[2],s[1]=.5*o[3],s[2]=e.sourceFrame.width*n[2]-.5*o[2],s[3]=e.sourceFrame.height*n[3]-.5*o[3],e.legacy&&((s=i.filterArea)[0]=e.destinationFrame.width,s[1]=e.destinationFrame.height,s[2]=e.sourceFrame.x,s[3]=e.sourceFrame.y,i.filterClamp=i.inputClamp),this.globalUniforms.update(),t[t.length-1]);if(1===r.length)r[0].apply(this,e.renderTexture,n.renderTexture,!1,e),this.returnFilterTexture(e.renderTexture);else{for(var a=e.renderTexture,h=((l=this.getOptimalFilterTexture(a.width,a.height,e.resolution)).filterFrame=a.filterFrame,0),h=0;h<r.length-1;++h){r[h].apply(this,a,l,!0,e);var u=a,a=l,l=u}r[h].apply(this,a,n.renderTexture,!1,e),this.returnFilterTexture(a),this.returnFilterTexture(l)}e.clear(),this.statePool.push(e)},t.prototype.applyFilter=function(t,e,r,i){var n=this.renderer;n.renderTexture.bind(r,r?r.filterFrame:null),i&&n.renderTexture.clear(),t.uniforms.uSampler=e,t.uniforms.filterGlobals=this.globalUniforms,n.state.set(t.state),n.shader.bind(t),t.legacy?(this.quadUv.map(e._frame,e.filterFrame),n.geometry.bind(this.quadUv),n.geometry.draw(p.DRAW_MODES.TRIANGLES)):(n.geometry.bind(this.quad),n.geometry.draw(p.DRAW_MODES.TRIANGLE_STRIP))},t.prototype.calculateSpriteMatrix=function(t,e){var r=this.activeState,i=r.sourceFrame,r=r.destinationFrame,n=e._texture.orig,t=t.set(r.width,0,0,r.height,i.x,i.y),r=e.worldTransform.copyTo(h.Matrix.TEMP_MATRIX);return r.invert(),t.prepend(r),t.scale(1/n.width,1/n.height),t.translate(e.anchor.x,e.anchor.y),t},t.prototype.destroy=function(){this.texturePool.clear(!1)},t.prototype.getOptimalFilterTexture=function(t,e,r){return this.texturePool.getOptimalTexture(t,e,r=void 0===r?1:r)},t.prototype.getFilterTexture=function(t,e){"number"==typeof t&&(r=t,t=e,e=r),t=t||this.activeState.renderTexture;var r=this.texturePool.getOptimalTexture(t.width,t.height,e||t.resolution);return r.filterFrame=t.filterFrame,r},t.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},t.prototype.emptyPool=function(){this.texturePool.clear(!0)},t.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view
20)},t}(r)),et=(S.prototype.flush=function(){},S.prototype.destroy=function(){this.renderer=null},S.prototype.start=function(){},S.prototype.stop=function(){this.flush()},S.prototype.render=function(t){},function(e){function t(t){e.call(this,t),this.emptyRenderer=new S(t),this.currentRenderer=this.emptyRenderer}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},t.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},t}(r)),rt=(I.settings.PREFER_ENV=C.isMobile.any?p.ENV.WEBGL:p.ENV.WEBGL2,0),it=function(e){function t(t){e.call(this,t),this.webGLVersion=1,this.extensions={},this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this),t.view.addEventListener("webglcontextlost",this.handleContextLost,!1),t.view.addEventListener("webglcontextrestored",this.handleContextRestored,!1)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var r={isLost:{configurable:!0}};return r.isLost.get=function(){return!this.gl||this.gl.isContextLost()},t.prototype.contextChange=function(t){this.gl=t,this.renderer.gl=t,this.renderer.CONTEXT_UID=rt++,t.isContextLost()&&t.getExtension("WEBGL_lose_context")&&t.getExtension("WEBGL_lose_context").restoreContext()},t.prototype.initFromContext=function(t){this.gl=t,this.validateContext(t),this.renderer.gl=t,this.renderer.CONTEXT_UID=rt++,this.renderer.runners.contextChange.run(t)},t.prototype.initFromOptions=function(t){t=this.createContext(this.renderer.view,t);this.initFromContext(t)},t.prototype.createContext=function(t,e){var r;if(r=I.settings.PREFER_ENV>=p.ENV.WEBGL2?t.getContext("webgl2",e):r)this.webGLVersion=2;else if(this.webGLVersion=1,!(r=t.getContext("webgl",e)||t.getContext("experimental-webgl",e)))throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=r,this.getExtensions(),r},t.prototype.getExtensions=function(){var t=this.gl;1===this.webGLVersion?Object.assign(this.extensions,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBKIT_WEBGL_depth_texture"),loseContext:t.getExtension("WEBGL_lose_context"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):2===this.webGLVersion&&Object.assign(this.extensions,{anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),colorBufferFloat:t.getExtension("EXT_color_buffer_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear")})},t.prototype.handleContextLost=function(t){t.preventDefault()},t.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.run(this.gl)},t.prototype.destroy=function(){var t=this.renderer.view;t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},t.prototype.postrender=function(){this.gl.flush()},t.prototype.validateContext=function(t){t.getContextAttributes().stencil||console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly")},Object.defineProperties(t.prototype,r),t}(r),nt=function(e){function t(t){e.call(this,t),this.managedFramebuffers=[],this.unknownFramebuffer=new o(10,10)}e&&(t.__proto__=e);var r={size:{configurable:!0}};return((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.contextChange=function(){var e,t,r=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new h.Rectangle,this.hasMRT=!0,this.writeDepthTexture=!0,this.disposeAll(!0),1===this.renderer.context.webGLVersion&&(e=this.renderer.context.extensions.drawBuffers,t=this.renderer.context.extensions.depthTexture,I.settings.PREFER_ENV===p.ENV.WEBGL_LEGACY&&(t=e=null),e?r.drawBuffers=function(t){return e.drawBuffersWEBGL(t)}:(this.hasMRT=!1,r.drawBuffers=function(){}),t||(this.writeDepthTexture=!1))},t.prototype.bind=function(t,e){var r=this.gl;if(t){var i=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,r.bindFramebuffer(r.FRAMEBUFFER,i.framebuffer)),i.dirtyId!==t.dirtyId&&
20(i.dirtyId=t.dirtyId,i.dirtyFormat!==t.dirtyFormat?(i.dirtyFormat=t.dirtyFormat,this.updateFramebuffer(t)):i.dirtySize!==t.dirtySize&&(i.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var n=0;n<t.colorTextures.length;n++)t.colorTextures[n].texturePart?this.renderer.texture.unbind(t.colorTextures[n].texture):this.renderer.texture.unbind(t.colorTextures[n]);t.depthTexture&&this.renderer.texture.unbind(t.depthTexture),e?this.setViewport(e.x,e.y,e.width,e.height):this.setViewport(0,0,t.width,t.height)}else this.current&&(this.current=null,r.bindFramebuffer(r.FRAMEBUFFER,null)),e?this.setViewport(e.x,e.y,e.width,e.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},t.prototype.setViewport=function(t,e,r,i){var n=this.viewport;n.width===r&&n.height===i&&n.x===t&&n.y===e||(n.x=t,n.y=e,n.width=r,n.height=i,this.gl.viewport(t,e,r,i))},r.size.get=function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},t.prototype.clear=function(t,e,r,i){var n=this.gl;n.clearColor(t,e,r,i),n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT)},t.prototype.initFramebuffer=function(t){var e={framebuffer:this.gl.createFramebuffer(),stencil:null,dirtyId:0,dirtyFormat:0,dirtySize:0};return t.glFramebuffers[this.CONTEXT_UID]=e,this.managedFramebuffers.push(t),t.disposeRunner.add(this),e},t.prototype.resizeFramebuffer=function(t){for(var e=this.gl,r=t.glFramebuffers[this.CONTEXT_UID],i=(r.stencil&&(e.bindRenderbuffer(e.RENDERBUFFER,r.stencil),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,t.width,t.height)),t.colorTextures),n=0;n<i.length;n++)this.renderer.texture.bind(i[n],0);t.depthTexture&&this.renderer.texture.bind(t.depthTexture,0)},t.prototype.updateFramebuffer=function(t){for(var e,r=this.gl,i=t.glFramebuffers[this.CONTEXT_UID],n=t.colorTextures.length,o=(r.drawBuffers||(n=Math.min(n,1)),[]),s=0;s<n;s++){var a=t.colorTextures[s];a.texturePart?(this.renderer.texture.bind(a.texture,0),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0+s,r.TEXTURE_CUBE_MAP_NEGATIVE_X+a.side,a.texture._glTextures[this.CONTEXT_UID].texture,0)):(this.renderer.texture.bind(a,0),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0+s,r.TEXTURE_2D,a._glTextures[this.CONTEXT_UID].texture,0)),o.push(r.COLOR_ATTACHMENT0+s)}1<o.length&&r.drawBuffers(o),t.depthTexture&&this.writeDepthTexture&&(e=t.depthTexture,this.renderer.texture.bind(e,0),r.framebufferTexture2D(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.TEXTURE_2D,e._glTextures[this.CONTEXT_UID].texture,0)),i.stencil||!t.stencil&&!t.depth||(i.stencil=r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,i.stencil),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height),t.depthTexture||r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,i.stencil))},t.prototype.disposeFramebuffer=function(t,e){var r,i=t.glFramebuffers[this.CONTEXT_UID],n=this.gl;i&&(delete t.glFramebuffers[this.CONTEXT_UID],0<=(r=this.managedFramebuffers.indexOf(t))&&this.managedFramebuffers.splice(r,1),t.disposeRunner.remove(this),e||(n.deleteFramebuffer(i.framebuffer),i.stencil&&n.deleteRenderbuffer(i.stencil)))},t.prototype.disposeAll=function(t){var e=this.managedFramebuffers;this.managedFramebuffers=[];for(var r=0;r<e.length;r++)this.disposeFramebuffer(e[r],t)},t.prototype.forceStencil=function(){var t,e,r,i,n=this.current;!n||(t=n.glFramebuffers[this.CONTEXT_UID])&&!t.stencil&&(n.enableStencil(),e=n.width,n=n.height,i=(r=this.gl).createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,i),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,e,n),t.stencil=i,r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,i))},t.prototype.reset=function(){this.current=this.unknownFramebuffer,this.viewport=new h.Rectangle},Object.defineProperties(t.prototype,r),t}(r),ot={5126:4,5123:2,5121:1},st=function(e){function t(t){e.call(this,t),this._activeGeometry=null,this._activeVao=null,this.hasVao=!0,this.hasInstance=!0,this.canUseUInt32ElementIndex=!1,this.boundBuffers={},this.managedGeometries={},this.managedBuffers={}}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.contextChange=function(){this.disposeAll(!0);var e,o,t=this.gl=this.renderer.gl,r=this.renderer.context;this.CONTEXT_UID=this.renderer.CONTEXT_UID,t.createVertexArray||(e=this.renderer.context.extensions.vertexArrayObject,(e=I.settings.PREFER_ENV===p.ENV.WEBGL_LEGACY?null:e)?(t.createVertexArray=function(){return e.createVertexArrayOES()},t.bindVertexArray=function(t){return e.bindVertexArrayOES(t)},t.deleteVertexArray=function(t){return e.deleteVertexArrayOES(t)}):(this.hasVao=!1,t.createVertexArray=function(){},t.bindVertexArray=function(){},t.deleteVertexArray=function(){})),t.vertexAttribDivisor||((o=t.getExtension("ANGLE_instanced_arrays"))?(t.vertexAttribDivisor=function(t,e){return o.vertexAttribDivisorANGLE(t,e)},t.drawElementsInstanced=function(t,e,r,i,n){return o.drawElementsInstancedANGLE(t,e,r,i,n)},t.drawArraysInstanced=function(t,e,r,i){return o.drawArraysInstancedANGLE(t,e,r,i)}):this.hasInstance=!1),this.canUseUInt32ElementIndex=2===r.webGLVersion||!!r.extensions.uint32ElementIndex},t.prototype.bind=function(t,e){e=e||this.renderer.shader.shader;var r=this.gl,i=t.glVertexArrayObjects[this.CONTEXT_UID],i=(i||((this.managedGeometries[t.id]=t).disposeRunner.add(this),t.glVertexArrayObjects[this.CONTEXT_UID]=i={}),i[e.program.id]||this.initGeometryVao(t,e.program));this._activeGeometry=t,this._activeVao!==i&&(this._activeVao=i,this.hasVao?r.bindVertexArray(i):this.activateVao(t,e.program)),this.updateBuffers()},t.prototype.reset=function(){this.unbind()},t.prototype.updateBuffers=function(){for(var t=this._activeGeometry,e=this.gl,r=0;r<t.buffers.length;r++){var i,n,o=t.buffers[r],s=o._glBuffers[this.CONTEXT_UID];o._updateID!==s.updateID&&(s.updateID=o._updateID,i=o.index?e.ELEMENT_ARRAY_BUFFER:e.ARRAY_BUFFER,e.bindBuffer(i,s.buffer),(this._boundBuffer=s).byteLength>=o.data.byteLength?e.bufferSubData(i,0,o.data):(n=o.static?e.STATIC_DRAW:e.DYNAMIC_DRAW,s.byteLength=o.data.byteLength,e.bufferData(i,o.data,n)))}},t.prototype.checkCompatibility=function(t,e){var r,i=t.attributes;for(r in e.attributeData)if(!i[r])throw new Error('shader and geometry incompatible, geometry missing the "'+r+'" attribute')},t.prototype.getSignature=function(t,e){var r,i=t.attributes,n=e.attributeData,o=["g",t.id];for(r in i)n[r]&&o.push(r);return o.join("-")},t.prototype.initGeometryVao=function(t,e){this.checkCompatibility(t,e);var r=this.gl,i=this.CONTEXT_UID,n=this.getSignature(t,e),o=t.glVertexArrayObjects[this.CONTEXT_UID],s=o[n];if(s)return o[e.id]=s;var a,h,u,l=t.buffers,d=t.attributes,c={},f={};for(a in l)c[a]=0,f[a]=0;for(h in d)!d[h].size&&e.attributeData[h]?d[h].size=e.attributeData[h].size:d[h].size||console.warn("PIXI Geometry attribute '"+h+"' size cannot be determined (likely the bound shader does not have the attribute)"),c[d[h].buffer]+=d[h].size*ot[d[h].type];for(u in d){var p=d[u],g=p.size;
20void 0===p.stride&&(c[p.buffer]===g*ot[p.type]?p.stride=0:p.stride=c[p.buffer]),void 0===p.start&&(p.start=f[p.buffer],f[p.buffer]+=g*ot[p.type])}s=r.createVertexArray(),r.bindVertexArray(s);for(var _=0;_<l.length;_++){var m=l[_];m._glBuffers[i]||(m._glBuffers[i]=new Y(r.createBuffer()),(this.managedBuffers[m.id]=m).disposeRunner.add(this)),m._glBuffers[i].refCount++}return this.activateVao(t,e),this._activeVao=s,o[e.id]=s,o[n]=s},t.prototype.disposeBuffer=function(t,e){var r,i;this.managedBuffers[t.id]&&(delete this.managedBuffers[t.id],r=t._glBuffers[this.CONTEXT_UID],i=this.gl,t.disposeRunner.remove(this),r&&(e||i.deleteBuffer(r.buffer),delete t._glBuffers[this.CONTEXT_UID]))},t.prototype.disposeGeometry=function(t,e){if(this.managedGeometries[t.id]){delete this.managedGeometries[t.id];var r=t.glVertexArrayObjects[this.CONTEXT_UID],i=this.gl,n=t.buffers;if(t.disposeRunner.remove(this),r){for(var o=0;o<n.length;o++){var s=n[o]._glBuffers[this.CONTEXT_UID];s.refCount--,0!==s.refCount||e||this.disposeBuffer(n[o],e)}if(!e)for(var a in r)"g"===a[0]&&(a=r[a],this._activeVao===a&&this.unbind(),i.deleteVertexArray(a));delete t.glVertexArrayObjects[this.CONTEXT_UID]}}},t.prototype.disposeAll=function(t){for(var e=Object.keys(this.managedGeometries),r=0;r<e.length;r++)this.disposeGeometry(this.managedGeometries[e[r]],t);for(var e=Object.keys(this.managedBuffers),i=0;i<e.length;i++)this.disposeBuffer(this.managedBuffers[e[i]],t)},t.prototype.activateVao=function(t,e){var r,i=this.gl,n=this.CONTEXT_UID,o=t.buffers,s=t.attributes,a=(t.indexBuffer&&i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,t.indexBuffer._glBuffers[n].buffer),null);for(r in s){var h=s[r],u=o[h.buffer]._glBuffers[n];if(e.attributeData[r]){a!==u&&(i.bindBuffer(i.ARRAY_BUFFER,u.buffer),a=u);u=e.attributeData[r].location;if(i.enableVertexAttribArray(u),i.vertexAttribPointer(u,h.size,h.type||i.FLOAT,h.normalized,h.stride,h.start),h.instance){if(!this.hasInstance)throw new Error("geometry error, GPU Instancing is not supported on this device");i.vertexAttribDivisor(u,1)}}}},t.prototype.draw=function(t,e,r,i){var n,o,s=this.gl,a=this._activeGeometry;return a.indexBuffer?(o=2===(n=a.indexBuffer.data.BYTES_PER_ELEMENT)?s.UNSIGNED_SHORT:s.UNSIGNED_INT,2===n||4===n&&this.canUseUInt32ElementIndex?a.instanced?s.drawElementsInstanced(t,e||a.indexBuffer.data.length,o,(r||0)*n,i||1):s.drawElements(t,e||a.indexBuffer.data.length,o,(r||0)*n):console.warn("unsupported index buffer type: uint32")):a.instanced?s.drawArraysInstanced(t,r,e||a.getSize(),i||1):s.drawArrays(t,r,e||a.getSize()),this},t.prototype.unbind=function(){this.gl.bindVertexArray(null),this._activeVao=null,this._activeGeometry=null},t}(r);function at(t,e,r,i){var e=ht(t,t.VERTEX_SHADER,e),r=ht(t,t.FRAGMENT_SHADER,r),n=t.createProgram();if(t.attachShader(n,e),t.attachShader(n,r),i)for(var o in i)t.bindAttribLocation(n,i[o],o);return t.linkProgram(n),t.getProgramParameter(n,t.LINK_STATUS)||(console.error("Pixi.js Error: Could not initialize shader."),console.error("gl.VALIDATE_STATUS",t.getProgramParameter(n,t.VALIDATE_STATUS)),console.error("gl.getError()",t.getError()),""!==t.getProgramInfoLog(n)&&console.warn("Pixi.js Warning: gl.getProgramInfoLog()",t.getProgramInfoLog(n)),t.deleteProgram(n),n=null),t.deleteShader(e),t.deleteShader(r),n}function ht(t,e,r){e=t.createShader(e);return t.shaderSource(e,r),t.compileShader(e),t.getShaderParameter(e,t.COMPILE_STATUS)?e:(console.warn(r),console.error(t.getShaderInfoLog(e)),null)}function ut(t,e){switch(t){case"float":return 0;case"vec2":return new Float32Array(2*e);case"vec3":return new Float32Array(3*e);case"vec4":return new Float32Array(4*e);case"int":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*e);case"ivec3":return new Int32Array(3*e);case"ivec4":return new Int32Array(4*e);case"bool":return!1;case"bvec2":return lt(2*e);case"bvec3":return lt(3*e);case"bvec4":return lt(4*e);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}function lt(t){for(var e=new Array(t),r=0;r<e.length;r++)e[r]=!1;return e}var dt,ct={},ft=ct;function pt(){var t,e;return ft!==ct&&!ft.isContextLost()||(t=document.createElement("canvas"),(e=I.settings.PREFER_ENV>=p.ENV.WEBGL2?t.getContext("webgl2",{}):e)||((e=t.getContext("webgl",{})||t.getContext("experimental-webgl",{}))?e.getExtension("WEBGL_draw_buffers"):e=null),ft=e),ft}function gt(t,e,r){return"precision"!==t.substring(0,9)?"precision "+(e===p.PRECISION.HIGH&&r!==p.PRECISION.HIGH?p.PRECISION.MEDIUM:e)+" float;\n"+t:r!==p.PRECISION.HIGH&&"precision highp"===t.substring(0,15)?t.replace("precision highp","precision mediump"):t}var _t={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};var mt=null,vt={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray"};function yt(t,e){if(!mt){var r=Object.keys(vt);mt={};for(var i=0;i<r.length;++i){var n=r[i];mt[t[n]]=vt[n]}}return mt[e]}var xt={float:"\n if(cv !== v)\n {\n cv.v = v;\n gl.uniform1f(location, v)\n }",vec2:"\n if(cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n gl.uniform2f(location, v[0], v[1])\n }",vec3:"\n if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3f(location, v[0], v[1], v[2])\n }",vec4:"gl.uniform4f(location, v[0], v[1], v[2], v[3])",int:"gl.uniform1i(location, v)",ivec2:"gl.uniform2i(location, v[0], v[1])",ivec3:"gl.uniform3i(location, v[0], v[1], v[2])",ivec4:"gl.uniform4i(location, v[0], v[1], v[2], v[3])",bool:"gl.uniform1i(location, v)",bvec2:"gl.uniform2i(location, v[0], v[1])",bvec3:"gl.uniform3i(location, v[0], v[1], v[2])",bvec4:"gl.uniform4i(location, v[0], v[1], v[2], v[3])",mat2:"gl.uniformMatrix2fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",sampler2D:"gl.uniform1i(location, v)",samplerCube:"gl.uniform1i(location, v)",sampler2DArray:"gl.uniform1i(location, v)"},Et={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};var Tt,bt=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join("\n");function wt(t,e){if(0===t)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");for(var r=e.createShader(e.FRAGMENT_SHADER);;){var i=bt.replace(/%forloop%/gi,function(t){for(var e="",r=0;r<t;++r)0<r&&(e+="\nelse "),r<t-1&&(e+="if(test == "+r+".0){}");return e}(t));if(e.shaderSource(r,i),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS))break;t=t/2|0}return t}function A(t,e,r){void 0===r&&(r="pixi-shader"),this.id=At++,this.vertexSrc=t||A.defaultVertexSrc,this.fragmentSrc=e||A.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),"#version"!==this.vertexSrc.substring(0,8)&&(r=r.replace(/\s+/g,"-"),Ct[r]?(Ct[r]++,r+="-"+Ct[r]):Ct[r]=1,this.vertexSrc="#define SHADER_NAME "+r+"\n"+this.vertexSrc,this.fragmentSrc="#define SHADER_NAME "+r+"\n"+this.fragmentSrc,this.vertexSrc=gt(this.vertexSrc,I.settings.PRECISION_VERTEX,p.PRECISION.HIGH),this.fragmentSrc=gt(this.fragmentSrc,I.settings.PRECISION_FRAGMENT,(dt||(dt=p.PRECISION.MEDIUM,(t=pt())&&t.getShaderPrecisionFormat&&(t=t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT),dt=t.precision?p.PRECISION.HIGH:p.PRECISION.MEDIUM)),dt))),this.extractData(this.vertexSrc,this.fragmentSrc),this.glPrograms={},this.syncUniforms=null}function O(t,e){for(var r in this.program=t,this.uniformGroup=e?e instanceof w?e:new w(e):new w({}),t.uniformData)this.uniformGroup.uniforms[r]instanceof Array&&(this.uniformGroup.uniforms[r]=new Float32Array(this.uniformGroup.uniforms[r]))}function M(){this.data=0,this.blendMode=p.BLEND_MODES.NORMAL,this.polygonOffset=0,this.blend=!0}function P(t,e){this._texture=t,this.mapCoord=new h.Matrix,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._updateID=-1,this.clampOffset=0,this.clampMargin=void 0===e?.5:e,this.isSimple=!1}function St(t,e){this.program=t,this.uniformData=e,this.uniformGroups={}}var At=0,Ct={},v={defaultVertexSrc:{configurable:!0},defaultFragmentSrc:{configurable:!0}},e=(A.prototype.extractData=function(t,e){var r=pt();r?(t=at(r,t,e),this.attributeData=this.getAttributeData(t,r),this.uniformData=this.getUniformData(t,r),r.deleteProgram(t)):(this.uniformData={},this.attributeData={})},A.prototype.getAttributeData=function(t,e){for(var r={},i=[],n=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),o=0;o<n;o++){var s=e.getActiveAttrib(t,o),a=yt(e,s.type),a={type:a,name:s.name,size:_t[a],location:0};r[s.name]=a,i.push(a)}i.sort(function(t,e){return t.name>e.name?1:-1});for(var h=0;h<i.length;h++)i[h].location=h;return r},A.prototype.getUniformData=function(t,e){for(var r={},i=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),n=0;n<i;n++){var o=e.getActiveUniform(t,n),s=o.name.replace(/\[.*?\]/,""),a=o.name.match(/\[.*?\]/,""),h=yt(e,o.type);r[s]={type:h,size:o.size,isArray:a,value:ut(h,o.size)}}return r},v.defaultVertexSrc.get=function(){return"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0
20)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}\n"},v.defaultFragmentSrc.get=function(){return"varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n gl_FragColor *= texture2D(uSampler, vTextureCoord);\n}"},A.from=function(t,e,r){var i=t+e,n=C.ProgramCache[i];return n||(C.ProgramCache[i]=n=new A(t,e,r)),n},Object.defineProperties(A,v),{uniforms:{configurable:!0}}),c=(O.prototype.checkUniformExists=function(t,e){if(e.uniforms[t])return!0;for(var r in e.uniforms){r=e.uniforms[r];if(r.group&&this.checkUniformExists(t,r))return!0}return!1},O.prototype.destroy=function(){this.uniformGroup=null},e.uniforms.get=function(){return this.uniformGroup.uniforms},O.from=function(t,e,r){t=A.from(t,e);return new O(t,r)},Object.defineProperties(O.prototype,e),{blend:{configurable:!0},offsets:{configurable:!0},culling:{configurable:!0},depthTest:{configurable:!0},clockwiseFrontFace:{configurable:!0},blendMode:{configurable:!0},polygonOffset:{configurable:!0}}),m=(c.blend.get=function(){return!!(1&this.data)},c.blend.set=function(t){!!(1&this.data)!==t&&(this.data^=1)},c.offsets.get=function(){return!!(2&this.data)},c.offsets.set=function(t){!!(2&this.data)!==t&&(this.data^=2)},c.culling.get=function(){return!!(4&this.data)},c.culling.set=function(t){!!(4&this.data)!==t&&(this.data^=4)},c.depthTest.get=function(){return!!(8&this.data)},c.depthTest.set=function(t){!!(8&this.data)!==t&&(this.data^=8)},c.clockwiseFrontFace.get=function(){return!!(16&this.data)},c.clockwiseFrontFace.set=function(t){!!(16&this.data)!==t&&(this.data^=16)},c.blendMode.get=function(){return this._blendMode},c.blendMode.set=function(t){this.blend=t!==p.BLEND_MODES.NONE,this._blendMode=t},c.polygonOffset.get=function(){return this._polygonOffset},c.polygonOffset.set=function(t){this.offsets=!!t,this._polygonOffset=t},M.for2d=function(){var t=new M;return t.depthTest=!1,t.blend=!0,t},Object.defineProperties(M.prototype,c),function(i){function n(t,e,r){t=A.from(t||n.defaultVertexSrc,e||n.defaultFragmentSrc);i.call(this,t,r),this.padding=0,this.resolution=I.settings.FILTER_RESOLUTION,this.enabled=!0,this.autoFit=!0,this.legacy=!!this.program.attributeData.aTextureCoord,this.state=new M}i&&(n.__proto__=i);var t={blendMode:{configurable:!0}},e={defaultVertexSrc:{configurable:!0},defaultFragmentSrc:{configurable:!0}};return((n.prototype=Object.create(i&&i.prototype)).constructor=n).prototype.apply=function(t,e,r,i,n){t.applyFilter(this,e,r,i,n)},t.blendMode.get=function(){return this.state.blendMode},t.blendMode.set=function(t){this.state.blendMode=t},e.defaultVertexSrc.get=function(){return"attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n}\n"},e.defaultFragmentSrc.get=function(){return"varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n}\n"},Object.defineProperties(n.prototype,t),Object.defineProperties(n,e),n}(O)),It=(m.SOURCE_KEY_MAP={},new h.Matrix),v={texture:{configurable:!0}},Rt=(v.texture.get=function(){return this._texture},v.texture.set=function(t){this._texture=t,this._updateID=-1},P.prototype.multiplyUvs=function(t,e){void 0===e&&(e=t);for(var r=this.mapCoord,i=0;i<t.length;i+=2){var n=t[i],o=t[i+1];e[i]=n*r.a+o*r.c+r.tx,e[i+1]=n*r.b+o*r.d+r.ty}return e},P.prototype.update=function(t){var e=this._texture;if(!e||!e.valid)return!1;if(!t&&this._updateID===e._updateID)return!1;this._updateID=e._updateID;var t=e._uvs,t=(this.mapCoord.set(t.x1-t.x0,t.y1-t.y0,t.x3-t.x0,t.y3-t.y0,t.x0,t.y0),e.orig),r=e.trim,t=(r&&(It.set(t.width/r.width,0,0,t.height/r.height,-r.x/r.width,-r.y/r.height),this.mapCoord.append(It)),e.baseTexture),r=this.uClampFrame,i=this.clampMargin/t.resolution,n=this.clampOffset;return r[0]=(e._frame.x+i+n)/t.width,r[1]=(e._frame.y+i+n)/t.height,r[2]=(e._frame.x+e._frame.width-i+n)/t.width,r[3]=(e._frame.y+e._frame.height-i+n)/t.height,this.uClampOffset[0]=n/t.realWidth,this.uClampOffset[1]=n/t.realHeight,this.isSimple=e._frame.width===t.width&&e._frame.height===t.height&&0===e.rotate,!0},Object.defineProperties(P.prototype,v),function(r){function t(t){var e=new h.Matrix;r.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0
20)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;\n}\n","varying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform sampler2D mask;\nuniform float alpha;\nuniform float npmAlpha;\nuniform vec4 maskClamp;\n\nvoid main(void)\n{\n float clip = step(3.5,\n step(maskClamp.x, vMaskCoord.x) +\n step(maskClamp.y, vMaskCoord.y) +\n step(vMaskCoord.x, maskClamp.z) +\n step(vMaskCoord.y, maskClamp.w));\n\n vec4 original = texture2D(uSampler, vTextureCoord);\n vec4 masky = texture2D(mask, vMaskCoord);\n float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);\n\n original *= (alphaMul * masky.r * alpha * clip);\n\n gl_FragColor = original;\n}\n"),t.renderable=!1,this.maskSprite=t,this.maskMatrix=e}return r&&(t.__proto__=r),((t.prototype=Object.create(r&&r.prototype)).constructor=t).prototype.apply=function(t,e,r,i){var n=this.maskSprite,o=this.maskSprite.texture;o.valid&&(o.transform||(o.transform=new P(o,0)),o.transform.update(),this.uniforms.npmAlpha=o.baseTexture.premultiplyAlpha?0:1,this.uniforms.mask=o,this.uniforms.otherMatrix=t.calculateSpriteMatrix(this.maskMatrix,n).prepend(o.transform.mapCoord),this.uniforms.alpha=n.worldAlpha,this.uniforms.maskClamp=o.transform.uClampFrame,t.applyFilter(this,e,r,i))},t}(m)),Ot=function(e){function t(t){e.call(this,t),this.scissor=!1,this.scissorData=null,this.scissorRenderTarget=null,this.enableScissor=!1,this.alphaMaskPool=[],this.alphaMaskIndex=0}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.push=function(t,e){var r;e.isSprite?this.pushSpriteMask(t,e):this.enableScissor&&!this.scissor&&this.renderer._activeRenderTarget.root&&!this.renderer.stencil.stencilMaskStack.length&&e.isFastRect()?(r=e.worldTransform,r=Math.atan2(r.b,r.a),(r=Math.round(r*(180/Math.PI)))%90?this.pushStencilMask(e):this.pushScissorMask(t,e)):this.pushStencilMask(e)},t.prototype.pop=function(t,e){e.isSprite?this.popSpriteMask(t,e):this.enableScissor&&!this.renderer.stencil.stencilMaskStack.length?this.popScissorMask(t,e):this.popStencilMask(t,e)},t.prototype.pushSpriteMask=function(t,e){var r=this.alphaMaskPool[this.alphaMaskIndex],i=((r=r||(this.alphaMaskPool[this.alphaMaskIndex]=[new Rt(e)]))[0].resolution=this.renderer.resolution,r[0].maskSprite=e,t.filterArea);t.filterArea=e.getBounds(!0),this.renderer.filter.push(t,r),t.filterArea=i,this.alphaMaskIndex++},t.prototype.popSpriteMask=function(){this.renderer.filter.pop(),this.alphaMaskIndex--},t.prototype.pushStencilMask=function(t){this.renderer.batch.flush(),this.renderer.stencil.pushStencil(t)},t.prototype.popStencilMask=function(){this.renderer.stencil.popStencil()},t.prototype.pushScissorMask=function(t,e){e.renderable=!0;var r=this.renderer._activeRenderTarget,i=e.getBounds(),n=(i.fit(r.size),e.renderable=!1,this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.resolution);this.renderer.gl.scissor(i.x*n,(r.root?r.size.height-i.y-i.height:i.y)*n,i.width*n,i.height*n),this.scissorRenderTarget=r,this.scissorData=e,this.scissor=!0},t.prototype.popScissorMask=function(){this.scissorRenderTarget=null,this.scissorData=null,this.scissor=!1;var t=this.renderer.gl;t.disable(t.SCISSOR_TEST)},t}(r),Mt=function(e){function t(t){e.call(this,t),this.stencilMaskStack=[]}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.setMaskStack=function(t){var e=this.renderer.gl,r=this.stencilMaskStack.length;(this.stencilMaskStack=t).length!==r&&(0===t.length?e.disable(e.STENCIL_TEST):(e.enable(e.STENCIL_TEST),this._useCurrent()))},t.prototype.pushStencil=function(t){var e=this.renderer.gl,r=this.stencilMaskStack.length;0===r&&(this.renderer.framebuffer.forceStencil(),e.enable(e.STENCIL_TEST)),this.stencilMaskStack.push(t),e.colorMask(!1,!1,!1,!1),e.stencilFunc(e.EQUAL,r,this._getBitwiseMask()),e.stencilOp(e.KEEP,e.KEEP,e.INCR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,this._useCurrent()},t.prototype.popStencil=function(){var t=this.renderer.gl,e=this.stencilMaskStack.pop();0===this.stencilMaskStack.length?(t.disable(t.STENCIL_TEST),t.clear(t.STENCIL_BUFFER_BIT),t.clearStencil(0)):(t.colorMask(!1,!1,!1,!1),t.stencilOp(t.KEEP,t.KEEP,t.DECR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,this._useCurrent())},t.prototype._useCurrent=function(){var t=this.renderer.gl;
20t.colorMask(!0,!0,!0,!0),t.stencilFunc(t.EQUAL,this.stencilMaskStack.length,this._getBitwiseMask()),t.stencilOp(t.KEEP,t.KEEP,t.KEEP)},t.prototype._getBitwiseMask=function(){return(1<<this.stencilMaskStack.length)-1},t.prototype.destroy=function(){e.prototype.destroy.call(this,this),this.stencilMaskStack=null},t}(r),Pt=function(e){function t(t){e.call(this,t),this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new h.Matrix,this.transform=null}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.update=function(t,e,r,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=e||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,r,i),this.transform&&this.projectionMatrix.append(this.transform);e=this.renderer;e.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,e.globalUniforms.update(),e.shader.shader&&e.shader.syncUniformGroup(e.shader.shader.uniforms.globals)},t.prototype.calculateProjection=function(t,e,r,i){var n=this.projectionMatrix;i?(n.a=1/t.width*2*r,n.d=-1/t.height*2*r,n.tx=-1-e.x*n.a,n.ty=1-e.y*n.d):(n.a=1/t.width*2*r,n.d=1/t.height*2*r,n.tx=-1-e.x*n.a,n.ty=-1-e.y*n.d)},t.prototype.setTransform=function(){},t}(r),F=new h.Rectangle,Ft=function(e){function t(t){e.call(this,t),this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new h.Rectangle,this.destinationFrame=new h.Rectangle}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.bind=function(t,e,r){this.current=t=void 0===t?null:t;var i,n=this.renderer;t?(i=(t=t.baseTexture).resolution,r||(F.width=t.realWidth,F.height=t.realHeight,r=F),e=e||r,this.renderer.framebuffer.bind(t.framebuffer,r),this.renderer.projection.update(r,e,i,!1),this.renderer.stencil.setMaskStack(t.stencilMaskStack)):(i=this.renderer.resolution,r||(F.width=n.width,F.height=n.height,r=F),e=e||r,n.framebuffer.bind(null,r),this.renderer.projection.update(r,e,i,!0),this.renderer.stencil.setMaskStack(this.defaultMaskStack)),this.sourceFrame.copyFrom(e),this.destinationFrame.x=r.x/i,this.destinationFrame.y=r.y/i,this.destinationFrame.width=r.width/i,this.destinationFrame.height=r.height/i,e===r&&this.sourceFrame.copyFrom(this.destinationFrame)},t.prototype.clear=function(t){t=this.current?t||this.current.baseTexture.clearColor:t||this.clearColor,this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3])},t.prototype.resize=function(){this.bind(null)},t.prototype.reset=function(){this.bind(null)},t}(r),Dt=(St.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.program=null},0),Nt=function(e){function t(t){e.call(this,t),this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this.id=Dt++}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.systemCheck=function(){if(!function(){if("boolean"!=typeof Tt)try{var t=new Function("param1","param2","param3","return param1[param2] === param3;");Tt=!0===t({a:"b"},"a","b")}catch(t){Tt=!1}return Tt}())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")},t.prototype.contextChange=function(t){this.gl=t,this.reset()},t.prototype.bind=function(t,e){t.uniforms.globals=this.renderer.globalUniforms;var r=t.program,i=r.glPrograms[this.renderer.CONTEXT_UID]||this.generateShader(t);return this.shader=t,this.program!==r&&(this.program=r,this.gl.useProgram(i.program)),e||this.syncUniformGroup(t.uniformGroup),i},t.prototype.setUniforms=function(t){var e=this.shader.program,r=e.glPrograms[this.renderer.CONTEXT_UID];e.syncUniforms(r.uniformData,t,this.renderer)},t.prototype.syncUniformGroup=function(t){var e=this.getglProgram();t.static&&t.dirtyId===e.uniformGroups[t.id]||(e.uniformGroups[t.id]=t.dirtyId,this.syncUniforms(t,e))},t.prototype.syncUniforms=function(t,e){(t.syncUniforms[this.shader.program.id]||this.createSyncGroups(t))(e.uniformData,t.uniforms,this.renderer)},t.prototype.createSyncGroups=function(t){var e=this.getSignature(t,this.shader.program.uniformData);return this.cache[e]||(this.cache[e]=function(t,e){var r,i=0,n="var v = null;\n var cv = null\n var gl = renderer.gl";for(r in t.uniforms){var o=e[r];o?"float"===o.type&&1===o.size?n+="\n if(uv."+r+" !== ud."+r+".value)\n {\n ud."+r+".value = uv."+r+"\n gl.uniform1f(ud."+r+".location, uv."+r+")\n }\n":"sampler2D"!==o.type&&"samplerCube"!==o.type&&"sampler2DArray"!==o.type||1!==o.size||o.isArray?"mat3"===o.type&&1===o.size?void 0!==t.uniforms[r].a?n+="\n gl.uniformMatrix3fv(ud."+r+".location, false, uv."+r+".toArray(true));\n \n":n+="\n gl.uniformMatrix3fv(ud."+r+".location, false, uv."+r+");\n \n":"vec2"===o.type&&1===o.size?void 0!==t.uniforms[r].x?n+="\n cv = ud."+r+".value;\n v = uv."+r+";\n\n if(cv[0] !== v.x || cv[1] !== v.y)\n {\n cv[0] = v.x;\n cv[1] = v.y;\n gl.uniform2f(ud."+r+".location, v.x, v.y);\n }\n":n+="\n cv = ud."+r+".value;\n v = uv."+r+";\n\n if(cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n gl.uniform2f(ud."+r+".location, v[0], v[1]);\n }\n \n":"vec4"===o.type&&1===o.size?void 0!==t.uniforms[r].width?n+="\n cv = ud."+r+".value;\n v = uv."+r+";\n\n if(cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height)\n {\n cv[0] = v.x;\n cv[1] = v.y;\n cv[2] = v.width;\n cv[3] = v.height;\n gl.uniform4f(ud."+r+".location, v.x, v.y, v.width, v.height)\n }\n":n+="\n cv = ud."+r+".value;\n v = uv."+r+";\n\n if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4f(ud."+r+".location, v[0], v[1], v[2], v[3])\n }\n \n":n+="\n cv = ud."+r+".value;\n v = uv."+r+";\n "+(1===o.size?xt:Et)[o.type].replace("location","ud."+r+".location")+";\n":(n+="\n renderer.texture.bind(uv."+r+", "+i+");\n\n if(ud."+r+".value !== "+i+")\n {\n ud."+r+".value = "+i+";\n gl.uniform1i(ud."+r+".location, "+i+");\n; // eslint-disable-line max-len\n }\n",i++):t.uniforms[r].group&&(n+="\n renderer.shader.syncUniformGroup(uv."+r+");\n ")}return new Function("ud","uv","renderer",n)}(t,this.shader.program.uniformData)),t.syncUniforms[this.shader.program.id]=this.cache[e],t.syncUniforms[this.shader.program.id]},t.prototype.getSignature=function(t,e){var r,i=[];for(r in t.uniforms)i.push(r),e[r]&&i.push(e[r].type);return i.join("-")},t.prototype.getglProgram=function(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null},t.prototype.generateShader=function(t){var e,r=this.gl,i=t.program,n={};for(e in i.attributeData)n[e]=i.attributeData[e].location;var o,s=at(r,i.vertexSrc,i.fragmentSrc,n),a={};for(o in i.uniformData){var h=i.uniformData[o];a[o]={location:r.getUniformLocation(s,o),value:ut(h.type,h.size)}}t=new St(s,a);return i.glPrograms[this.renderer.CONTEXT_UID]=t},t.prototype.reset=function(){this.program=null,this.shader=null},t.prototype.destroy=function(){this.destroyed=!0},t}(r);function Ut(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=6408,this.internalFormat=5121}var Bt=function(e){function r(t){e.call(this,t),this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=p.BLEND_MODES.NONE,this._blendEq=!1,this.map=[],this.map[0]=this.setBlend,this.map[1]=this.setOffset,this.map[2]=this.setCullFace,this.map[3]=this.setDepthTest,this.map[4]=this.setFrontFace,this.checks=[],this.defaultState=new M,this.defaultState.blend=!0,this.defaultState.depth=!0}return e&&(r.__proto__=e),((r.prototype=Object.create(e&&e.prototype)).constructor=r).prototype.contextChange=function(t){var e;this.gl=t,this.blendModes=(t=t,(e=void 0===e?[]:e)[p.BLEND_MODES.NORMAL]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.ADD]=[t.ONE,t.ONE],e[p.BLEND_MODES.MULTIPLY]=[t.DST_COLOR,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.SCREEN]=[t.ONE,t.ONE_MINUS_SRC_COLOR,t.ONE,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.OVERLAY]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.DARKEN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.LIGHTEN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.COLOR_DODGE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.COLOR_BURN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.HARD_LIGHT]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.SOFT_LIGHT]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.DIFFERENCE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.EXCLUSION]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.HUE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.SATURATION]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.COLOR]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.LUMINOSITY]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.NONE]=[0,0],e[p.BLEND_MODES.NORMAL_NPM]=[t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.ADD_NPM]=[t.SRC_ALPHA,t.ONE,t.ONE,t.ONE],e[p.BLEND_MODES.SCREEN_NPM]=[t.SRC_ALPHA,t.ONE_MINUS_SRC_COLOR,t.ONE,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.SRC_IN]=[t.DST_ALPHA,t.ZERO],e[p.BLEND_MODES.SRC_OUT]=[t.ONE_MINUS_DST_ALPHA,t.ZERO],e[p.BLEND_MODES.SRC_ATOP]=[t.DST_ALPHA,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.DST_OVER]=[t.ONE_MINUS_DST_ALPHA,t.ONE],e[p.BLEND_MODES.DST_IN]=[t.ZERO,t.SRC_ALPHA],e[p.BLEND_MODES.DST_OUT]=[t.ZERO,t.ONE_MINUS_SRC_ALPHA],e[p.BLEND_MODES.DST_ATOP]=[t.ONE_MINUS_DST_ALPHA,t.SRC_ALPHA],e[p.BLEND_MODES.SUBTRACT]=[t.ONE,t.ONE,t.ONE,t.ONE,t.FUNC_REVERSE_SUBTRACT,t.FUNC_ADD],e),this.set(this.defaultState),this.reset()},r.prototype.set=function(t){if(t=t||this.defaultState,this.stateId!==t.data){for(var e=this.stateId^t.data,r=0;e;)1&e&&this.map[r].call(this,!!(t.data&1<<r)),e>>=1,r++;this.stateId=t.data}for(var i=0;i<this.checks.length;i++)this.checks[i](this,t)},r.prototype.forceState=function(t){t=t||this.defaultState;for(var e=0;e<this.map.length;e++)this.map[e].call(this,!!(t.data&1<<e));for(var r=0;r<this.checks.length;r++)this.checks[r](this,t);this.stateId=t.data},r.prototype.setBlend=function(t){this.updateCheck(r.checkBlendMode,t),this.gl[t?"enable":"disable"](this.gl.BLEND)},r.prototype.setOffset=function(t){this.updateCheck(r.checkPolygonOffset,t),this.gl[t?"enable":"disable"](this.gl.POLYGON_OFFSET_FILL)},r.prototype.setDepthTest=function(t){this.gl[t?"enable":"disable"](this.gl.DEPTH_TEST)},r.prototype.setCullFace=function(t){this.gl[t?"enable":"disable"](this.gl.CULL_FACE)},r.prototype.setFrontFace=function(t){this.gl.frontFace(this.gl[t?"CW":"CCW"])},r.prototype.setBlendMode=function(t){var e;t!==this.blendMode&&(this.blendMode=t,t=this.blendModes[t],e=this.gl,2===t.length?e.blendFunc(t[0],t[1]):e.blendFuncSeparate(t[0],t[1],t[2],t[3]),6===t.length?(this._blendEq=!0,e.blendEquationSeparate(t[4],t[5])):this._blendEq&&(this._blendEq=!1,e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD)))},r.prototype.setPolygonOffset=function(t,e){this.gl.polygonOffset(t,e)},r.prototype.reset=function(){this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.forceState(0),this._blendEq=!0,this.blendMode=-1,this.setBlendMode(0)},r.prototype.updateCheck=function(t,e){var r=this.checks.indexOf(t);e&&-1===r?this.checks.push(t):e||-1===r||this.checks.splice(r,1)},r.checkBlendMode=function(t,e){t.setBlendMode(e.blendMode)},r.checkPolygonOffset=function(t,e){t.setPolygonOffset(e.polygonOffset,0)},r}(r),Lt=function(e){function t(t){e.call(this,t),this.count=0,this.checkCount=0,this.maxIdle=I.settings.GC_MAX_IDLE,this.checkCountMax=I.settings.GC_MAX_CHECK_COUNT,this.mode=I.settings.GC_MODE}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.postrender=function(){this.count++,this.mode!==p.GC_MODES.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run()))},t.prototype.run=function(){for(var t=this.renderer.texture,e=t.managedTextures,r=!1,i=0;i<e.length;i++){var n=e[i];!n.framebuffer&&this.count-n.touched>
20this.maxIdle&&(t.destroyTexture(n,!0),r=!(e[i]=null))}if(r){for(var o=0,s=0;s<e.length;s++)null!==e[s]&&(e[o++]=e[s]);e.length=o}},t.prototype.unload=function(t){var e=this.renderer.textureSystem;t._texture&&t._texture._glRenderTargets&&e.destroyTexture(t._texture);for(var r=t.children.length-1;0<=r;r--)this.unload(t.children[r])},t}(r),kt=function(e){function t(t){e.call(this,t),this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new R}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.contextChange=function(){var t=this.gl=this.renderer.gl,e=(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS));this.boundTextures.length=e;for(var r=0;r<e;r++)this.boundTextures[r]=null;this.emptyTextures={};var i=new Ut(t.createTexture());t.bindTexture(t.TEXTURE_2D,i.texture),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,new Uint8Array(4)),this.emptyTextures[t.TEXTURE_2D]=i,this.emptyTextures[t.TEXTURE_CUBE_MAP]=new Ut(t.createTexture()),t.bindTexture(t.TEXTURE_CUBE_MAP,this.emptyTextures[t.TEXTURE_CUBE_MAP].texture);for(var n=0;n<6;n++)t.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+n,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,null);t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MIN_FILTER,t.LINEAR);for(var o=0;o<this.boundTextures.length;o++)this.bind(null,o)},t.prototype.bind=function(t,e){void 0===e&&(e=0);var r,i=this.gl;t?(t=t.baseTexture||t).valid&&(t.touched=this.renderer.textureGC.count,r=t._glTextures[this.CONTEXT_UID]||this.initTexture(t),this.currentLocation!==e&&(this.currentLocation=e,i.activeTexture(i.TEXTURE0+e)),this.boundTextures[e]!==t&&i.bindTexture(t.target,r.texture),r.dirtyId!==t.dirtyId&&this.updateTexture(t),this.boundTextures[e]=t):(this.currentLocation!==e&&(this.currentLocation=e,i.activeTexture(i.TEXTURE0+e)),i.bindTexture(i.TEXTURE_2D,this.emptyTextures[i.TEXTURE_2D].texture),this.boundTextures[e]=null)},t.prototype.reset=function(){this._unknownBoundTextures=!0,this.currentLocation=-1;for(var t=0;t<this.boundTextures.length;t++)this.boundTextures[t]=this.unknownTexture},t.prototype.unbind=function(t){var e=this.gl,r=this.boundTextures;if(this._unknownBoundTextures){this._unknownBoundTextures=!1;for(var i=0;i<r.length;i++)r[i]===this.unknownTexture&&this.bind(null,i)}for(var n=0;n<r.length;n++)r[n]===t&&(this.currentLocation!==n&&(e.activeTexture(e.TEXTURE0+n),this.currentLocation=n),e.bindTexture(e.TEXTURE_2D,this.emptyTextures[t.target].texture),r[n]=null)},t.prototype.initTexture=function(t){var e=new Ut(this.gl.createTexture());return e.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=e,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),e},t.prototype.initTextureType=function(t,e){var r;e.internalFormat=t.format,e.type=t.type,2===this.webGLVersion&&(r=this.renderer.gl,t.type===r.FLOAT&&t.format===r.RGBA&&(e.internalFormat=r.RGBA32F),t.type===p.TYPES.HALF_FLOAT&&(e.type=r.HALF_FLOAT),e.type===r.HALF_FLOAT&&t.format===r.RGBA&&(e.internalFormat=r.RGBA16F))},t.prototype.updateTexture=function(t){var e,r,i,n=t._glTextures[this.CONTEXT_UID];n&&(i=this.renderer,this.initTextureType(t,n),t.resource&&t.resource.upload(i,t,n)||(e=t.realWidth,r=t.realHeight,i=i.gl,(n.width!==e||n.height!==r||n.dirtyId<0)&&(n.width=e,n.height=r,i.texImage2D(t.target,0,n.internalFormat,e,r,0,t.format,n.type,null))),t.dirtyStyleId!==n.dirtyStyleId&&this.updateTextureStyle(t),n.dirtyId=t.dirtyId)},t.prototype.destroyTexture=function(t,e){var r=this.gl;(t=t.baseTexture||t)._glTextures[this.CONTEXT_UID]&&(this.unbind(t),r.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],e||-1!==(r=this.managedTextures.indexOf(t))&&C.removeItems(this.managedTextures,r,1))},t.prototype.updateTextureStyle=function(t){var e=t._glTextures[this.CONTEXT_UID];e&&(t.mipmap!==p.MIPMAP_MODES.POW2&&2===this.webGLVersion||t.isPowerOfTwo?(e.mipmap=1<=t.mipmap,e.wrapMode=t.wrapMode):(e.mipmap=0,e.wrapMode=p.WRAP_MODES.CLAMP),t.resource&&t.resource.style(this.renderer,t,e)||this.setStyle(t,e),e.dirtyStyleId=t.dirtyStyleId)},t.prototype.setStyle=function(t,e){var r,i=this.gl;e.mipmap&&i.generateMipmap(t.target),i.texParameteri(t.target,i.TEXTURE_WRAP_S,e.wrapMode),i.texParameteri(t.target,i.TEXTURE_WRAP_T,e.wrapMode),e.mipmap?(i.texParameteri(t.target,i.TEXTURE_MIN_FILTER,t.scaleMode?i.LINEAR_MIPMAP_LINEAR:i.NEAREST_MIPMAP_NEAREST),(e=this.renderer.context.extensions.anisotropicFiltering)&&0<t.anisotropicLevel&&t.scaleMode===p.SCALE_MODES.LINEAR&&(r=Math.min(t.anisotropicLevel,i.getParameter(e.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),i.texParameterf(t.target,e.TEXTURE_MAX_ANISOTROPY_EXT,r))):i.texParameteri(t.target,i.TEXTURE_MIN_FILTER,t.scaleMode?i.LINEAR:i.NEAREST),i.texParameteri(t.target,i.TEXTURE_MAG_FILTER,t.scaleMode?i.LINEAR:i.NEAREST)},t}(r),e={FilterSystem:tt,BatchSystem:et,ContextSystem:it,FramebufferSystem:nt,GeometrySystem:st,MaskSystem:Ot,StencilSystem:Mt,ProjectionSystem:Pt,RenderTextureSystem:Ft,ShaderSystem:Nt,StateSystem:Bt,TextureGCSystem:Lt,TextureSystem:kt},Gt=new h.Matrix,c=function(r){function t(t,e){r.call(this),(e=Object.assign({}
20,I.settings.RENDER_OPTIONS,e)).roundPixels&&(I.settings.ROUND_PIXELS=e.roundPixels,C.deprecation("5.0.0","Renderer roundPixels option is deprecated, please use PIXI.settings.ROUND_PIXELS",2)),this.options=e,this.type=p.RENDERER_TYPE.UNKNOWN,this.screen=new h.Rectangle(0,0,e.width,e.height),this.view=e.view||document.createElement("canvas"),this.resolution=e.resolution||I.settings.RESOLUTION,this.transparent=e.transparent,this.autoDensity=e.autoDensity||e.autoResize||!1,this.preserveDrawingBuffer=e.preserveDrawingBuffer,this.clearBeforeRender=e.clearBeforeRender,this._backgroundColor=0,this._backgroundColorRgba=[0,0,0,0],this._backgroundColorString="#000000",this.backgroundColor=e.backgroundColor||this._backgroundColor,this._tempDisplayObjectParent=new U.Container,this._lastObjectRendered=this._tempDisplayObjectParent,this.plugins={}}r&&(t.__proto__=r);var e={width:{configurable:!0},height:{configurable:!0},backgroundColor:{configurable:!0}};return((t.prototype=Object.create(r&&r.prototype)).constructor=t).prototype.initPlugins=function(t){for(var e in t)this.plugins[e]=new t[e](this)},e.width.get=function(){return this.view.width},e.height.get=function(){return this.view.height},t.prototype.resize=function(t,e){this.screen.width=t,this.screen.height=e,this.view.width=t*this.resolution,this.view.height=e*this.resolution,this.autoDensity&&(this.view.style.width=t+"px",this.view.style.height=e+"px")},t.prototype.generateTexture=function(t,e,r,i){0===(i=i||t.getLocalBounds()).width&&(i.width=1),0===i.height&&(i.height=1);e=X.create(0|i.width,0|i.height,e,r);return Gt.tx=-i.x,Gt.ty=-i.y,this.render(t,e,!1,Gt,!!t.parent),e},t.prototype.destroy=function(t){for(var e in this.plugins)this.plugins[e].destroy(),this.plugins[e]=null;t&&this.view.parentNode&&this.view.parentNode.removeChild(this.view),this.plugins=null,this.type=p.RENDERER_TYPE.UNKNOWN,this.view=null,this.screen=null,this.resolution=0,this.transparent=!1,this.autoDensity=!1,this.blendModes=null,this.options=null,this.preserveDrawingBuffer=!1,this.clearBeforeRender=!1,this._backgroundColor=0,this._backgroundColorRgba=null,this._backgroundColorString=null,this._tempDisplayObjectParent=null,this._lastObjectRendered=null},e.backgroundColor.get=function(){return this._backgroundColor},e.backgroundColor.set=function(t){this._backgroundColor=t,this._backgroundColorString=C.hex2string(t),C.hex2rgb(t,this._backgroundColorRgba)},Object.defineProperties(t.prototype,e),t}(C.EventEmitter),Vt=function(r){function i(t){r.call(this,"WebGL",t=void 0===t?{}:t),t=this.options,this.type=p.RENDERER_TYPE.WEBGL,this.gl=null,this.CONTEXT_UID=0,this.runners={destroy:new n.Runner("destroy"),contextChange:new n.Runner("contextChange",1),reset:new n.Runner("reset"),update:new n.Runner("update"),postrender:new n.Runner("postrender"),prerender:new n.Runner("prerender"),resize:new n.Runner("resize",2)},this.globalUniforms=new w({projectionMatrix:new h.Matrix},!0),this.addSystem(Ot,"mask").addSystem(it,"context").addSystem(Bt,"state").addSystem(Nt,"shader").addSystem(kt,"texture").addSystem(st,"geometry").addSystem(nt,"framebuffer").addSystem(Mt,"stencil").addSystem(Pt,"projection").addSystem(Lt,"textureGC").addSystem(tt,"filter").addSystem(Ft,"renderTexture").addSystem(et,"batch"),this.initPlugins(i.__plugins),t.context?this.context.initFromContext(t.context):this.context.initFromOptions({alpha:this.transparent,antialias:t.antialias,premultipliedAlpha:this.transparent&&"notMultiplied"!==this.transparent,stencil:!0,preserveDrawingBuffer:t.preserveDrawingBuffer,powerPreference:this.options.powerPreference}),this.renderingToScreen=!0,C.sayHello(2===this.context.webGLVersion?"WebGL 2":"WebGL 1"),this.resize(this.options.width,this.options.height)}return r&&(i.__proto__=r),((i.prototype=Object.create(r&&r.prototype)).constructor=i).create=function(t){if(C.isWebGLSupported())return new i(t);throw new Error('WebGL unsupported in this browser, use "pixi.js-legacy" for fallback canvas2d support.')},i.prototype.addSystem=function(t,e){e=e||t.name;var r,i=new t(this);if(this[e])throw new Error('Whoops! The name "'+e+'" is already in use');for(r in this[e]=i,this.runners)this.runners[r].add(i);return this},i.prototype.render=function(t,e,r,i,n){this.renderingToScreen=!e,this.runners.prerender.run(),this.emit
20("prerender"),this.projection.transform=i,this.context.isLost||(e||(this._lastObjectRendered=t),n||(i=t.parent,t.parent=this._tempDisplayObjectParent,t.updateTransform(),t.parent=i),this.renderTexture.bind(e),this.batch.currentRenderer.start(),(void 0!==r?r:this.clearBeforeRender)&&this.renderTexture.clear(),t.render(this),this.batch.currentRenderer.flush(),e&&e.baseTexture.update(),this.runners.postrender.run(),this.projection.transform=null,this.emit("postrender"))},i.prototype.resize=function(t,e){r.prototype.resize.call(this,t,e),this.runners.resize.run(t,e)},i.prototype.reset=function(){return this.runners.reset.run(),this},i.prototype.clear=function(){this.framebuffer.bind(),this.framebuffer.clear()},i.prototype.destroy=function(t){for(var e in this.runners.destroy.run(),this.runners)this.runners[e].destroy();r.prototype.destroy.call(this,t),this.gl=null},i.registerPlugin=function(t,e){(i.__plugins=i.__plugins||{})[t]=e},i}(c);function Xt(){this.textures=[],this.ids=[],this.blend=0,this.textureCount=0,this.start=0,this.size=0,this.type=4}function D(t){this.rawBinaryData=new ArrayBuffer(t),this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}function zt(t,e){if(this.vertexSrc=t,this.fragTemplate=e,this.programCache={},this.defaultGroupCache={},e.indexOf("%count%")<0)throw new Error('Fragment template must contain "%count%".');if(e.indexOf("%forloop%")<0)throw new Error('Fragment template must contain "%forloop%".')}function jt(){}var v=function(t){function r(){t.apply(this,arguments)}return t&&(r.__proto__=t),((r.prototype=Object.create(t&&t.prototype)).constructor=r).from=function(t,e){return new r(new f(t,e))},r}(R),N={int8View:{configurable:!0},uint8View:{configurable:!0},int16View:{configurable:!0},uint16View:{configurable:!0},int32View:{configurable:!0}},Ht=(N.int8View.get=function(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View},N.uint8View.get=function(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View},N.int16View.get=function(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View},N.uint16View.get=function(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View},N.int32View.get=function(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View},D.prototype.view=function(t){return this[t+"View"]},D.prototype.destroy=function(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null},D.sizeOf=function(t){switch(t){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(t+" isn't a valid view type")}},Object.defineProperties(D.prototype,N),function(r){function t(t){r.call(this,t),this.shaderGenerator=null,this.geometryClass=null,this.vertexSize=null,this.state=M.for2d(),this.size=8e3,this._vertexCount=0,this._indexCount=0,this._bufferedElements=[],this._bufferSize=0,this._shader=null,this._packedGeometries=[],this._packedGeometryPoolSize=2,this._flushId=0,this._drawCalls=[];for(var e=0;e<this.size/4;e++)this._drawCalls[e]=new Xt;this._aBuffers={},this._iBuffers={},this.MAX_TEXTURES=1,this.renderer.on("prerender",this.onPrerender,this),t.runners.contextChange.add(this)}return r&&(t.__proto__=r),((t.prototype=Object.create(r&&r.prototype)).constructor=t).prototype.contextChange=function(){var t=this.renderer.gl;I.settings.PREFER_ENV===p.ENV.WEBGL_LEGACY?this.MAX_TEXTURES=1:(this.MAX_TEXTURES=Math.min(t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),I.settings.SPRITE_MAX_TEXTURES),this.MAX_TEXTURES=wt(this.MAX_TEXTURES,t)),this._shader=this.shaderGenerator.generateShader(this.MAX_TEXTURES);for(var e=0;e<this._packedGeometryPoolSize;e++)this._packedGeometries[e]=new this.geometryClass},t.prototype.onPrerender=function(){this._flushId=0},t.prototype.render=function(t){t._texture.valid&&(this._vertexCount+t.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=t.vertexData.length/2,this._indexCount+=t.indices.length,this._bufferedElements[this._bufferSize++]=t)},t.prototype.flush=function(){if(0!==this._vertexCount){for(var t,e,r=this.getAttributeBuffer(this._vertexCount),i=this.getIndexBuffer(this._indexCount),n=this.renderer.gl,o=this,s=o._bufferedElements,a=o._drawCalls,h=o.MAX_TEXTURES,u=o._packedGeometries,l=o.vertexSize,d=this.renderer.textureGC.count,c=0,f=0,p=0,g=a[0],_=0,m=-1,v=(g.textureCount=0,g.start=0,g.blend=m,++R._globalBatch),y=0;y<this._bufferSize;++y){var x=s[y],E=(s[y]=null,t=x._texture.baseTexture,C.premultiplyBlendMode[t.premultiplyAlpha?1:0][x.blendMode]);m!==E&&(m=E,e=null,p=h,v++),e!==t&&(e=t)._batchEnabled!==v&&(p===h&&(v++,p=0,g.size=f-g.start,(g=a[_++]).textureCount=0,g.blend=m,g.start=f),t.touched=d,t._batchEnabled=v,t._id=p,g.textures[g.textureCount++
20]=t,p++),this.packInterleavedGeometry(x,r,i,c,f),c+=x.vertexData.length/2*l,f+=x.indices.length}R._globalBatch=v,g.size=f-g.start,I.settings.CAN_UPLOAD_SAME_BUFFER?(u[this._flushId]._buffer.update(r.rawBinaryData,0),u[this._flushId]._indexBuffer.update(i,0),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,u[this._flushId]=new this.geometryClass),u[this._flushId]._buffer.update(r.rawBinaryData,0),u[this._flushId]._indexBuffer.update(i,0),this.renderer.geometry.bind(u[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++);var T=this.renderer.texture,b=this.renderer.state;for(y=0;y<_;y++){for(var w=a[y],S=w.textureCount,A=0;A<S;A++)T.bind(w.textures[A],A),w.textures[A]=null;b.setBlendMode(w.blend),n.drawElements(w.type,w.size,n.UNSIGNED_SHORT,2*w.start)}this._bufferSize=0,this._vertexCount=0,this._indexCount=0}},t.prototype.start=function(){this.renderer.state.set(this.state),this.renderer.shader.bind(this._shader),I.settings.CAN_UPLOAD_SAME_BUFFER&&this.renderer.geometry.bind(this._packedGeometries[this._flushId])},t.prototype.stop=function(){this.flush()},t.prototype.destroy=function(){for(var t=0;t<this._packedGeometryPoolSize;t++)this._packedGeometries[t]&&this._packedGeometries[t].destroy();this.renderer.off("prerender",this.onPrerender,this),this._aBuffers=null,this._iBuffers=null,this._packedGeometries=null,this._drawCalls=null,this._shader&&(this._shader.destroy(),this._shader=null),r.prototype.destroy.call(this)},t.prototype.getAttributeBuffer=function(t){var t=C.nextPow2(Math.ceil(t/8)),e=C.log2(t),t=8*t,e=(this._aBuffers.length<=e&&(this._iBuffers.length=e+1),this._aBuffers[t]);return e||(this._aBuffers[t]=e=new D(t*this.vertexSize*4)),e},t.prototype.getIndexBuffer=function(t){var t=C.nextPow2(Math.ceil(t/12)),e=C.log2(t),t=12*t,r=(this._iBuffers.length<=e&&(this._iBuffers.length=e+1),this._iBuffers[e]);return r||(this._iBuffers[e]=r=new Uint16Array(t)),r},t.prototype.packInterleavedGeometry=function(t,e,r,i,n){for(var o=e.uint32View,s=e.float32View,a=i/this.vertexSize,h=t.uvs,u=t.indices,l=t.vertexData,d=t._texture.baseTexture._id,e=Math.min(t.worldAlpha,1),c=e<1&&t._texture.baseTexture.premultiplyAlpha?C.premultiplyTint(t._tintRGB,e):t._tintRGB+(255*e<<24),f=0;f<l.length;f+=2)s[i++]=l[f],s[i++]=l[f+1],s[i++]=h[f],s[i++]=h[f+1],o[i++]=c,s[i++]=d;for(var p=0;p<u.length;p++)r[n++]=a+u[p]},t}(S)),Wt=(zt.prototype.generateShader=function(t){if(!this.programCache[t]){for(var e=new Int32Array(t),r=0;r<t;r++)e[r]=r;this.defaultGroupCache[t]=w.from({uSamplers:e},!0);var i=this.fragTemplate;i=(i=i.replace(/%count%/gi,""+t)).replace(/%forloop%/gi,this.generateSampleSrc(t)),this.programCache[t]=new A(this.vertexSrc,i)}i={tint:new Float32Array([1,1,1,1]),translationMatrix:new h.Matrix,default:this.defaultGroupCache[t]};return new O(this.programCache[t],i)},zt.prototype.generateSampleSrc=function(t){for(var e=(e="")+"\n"+"\n",r=0;r<t;r++)0<r&&(e+="\nelse "),r<t-1&&(e+="if(vTextureId < "+r+".5)"),e=(e+="\n{")+"\n\tcolor = texture2D(uSamplers["+r+"], vTextureCoord);\n}";return e=e+"\n"+"\n"},function(e){function t(t){void 0===t&&(t=!1),e.call(this),this._buffer=new T(null,t,!1),this._indexBuffer=new T(null,t,!0),this.addAttribute("aVertexPosition",this._buffer,2,!1,p.TYPES.FLOAT).addAttribute("aTextureCoord",this._buffer,2,!1,p.TYPES.FLOAT).addAttribute("aColor",this._buffer,4,!0,p.TYPES.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,p.TYPES.FLOAT).addIndex(this._indexBuffer)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t}(b)),Yt="precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform vec4 tint;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0
20)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vTextureId = aTextureId;\n vColor = aColor * tint;\n}\n",Kt="varying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\nuniform sampler2D uSamplers[%count%];\n\nvoid main(void){\n vec4 color;\n %forloop%\n gl_FragColor = color * vColor;\n}\n",N={defaultVertexSrc:{configurable:!0},defaultFragmentTemplate:{configurable:!0}},N=(jt.create=function(t){var t=Object.assign({vertex:Yt,fragment:Kt,geometryClass:Wt,vertexSize:6},t),r=t.vertex,i=t.fragment,n=t.vertexSize,o=t.geometryClass;return function(e){function t(t){e.call(this,t),this.shaderGenerator=new zt(r,i),this.geometryClass=o,this.vertexSize=n}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t}(Ht)},N.defaultVertexSrc.get=function(){return Yt},N.defaultFragmentTemplate.get=function(){return Kt},Object.defineProperties(jt,N),jt.create());return t.AbstractBatchRenderer=Ht,t.AbstractRenderer=c,t.Attribute=E,t.BaseRenderTexture=y,t.BaseTexture=R,t.BatchDrawCall=Xt,t.BatchGeometry=Wt,t.BatchPluginFactory=jt,t.BatchRenderer=N,t.BatchShaderGenerator=zt,t.Buffer=T,t.CubeTexture=v,t.Filter=m,t.Framebuffer=o,t.GLProgram=St,t.GLTexture=R,t.Geometry=b,t.ObjectRenderer=S,t.Program=A,t.Quad=Q,t.QuadUv=$,t.RenderTexture=X,t.RenderTexturePool=x,t.Renderer=Vt,t.Shader=O,t.SpriteMaskFilter=Rt,t.State=M,t.System=r,t.Texture=_,t.TextureMatrix=P,t.TextureUvs=l,t.UniformGroup=w,t.ViewableBuffer=D,t.autoDetectRenderer=function(t){return Vt.create(t)},t.checkMaxIfStatementsInShader=wt,t.defaultFilterVertex="attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n}\n",t.defaultVertex="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0
20)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}",t.resources=d,t.systems=e,t}({},PIXI,PIXI.utils,PIXI,PIXI,PIXI,PIXI,PIXI);Object.assign(this.PIXI,_pixi_core); 21this.PIXI=this.PIXI||{};var _pixi_sprite=function(t,r,s,h,n,e,o){"use strict";var a=new r.Point,u=new Uint16Array([0,1,2,0,2,3]),e=function(e){function i(t){e.call(this),this._anchor=new r.ObservablePoint(this._onAnchorUpdate,this,t?t.defaultAnchor.x:0,t?t.defaultAnchor.y:0),this._texture=null,this._width=0,this._height=0,this._tint=null,this._tintRGB=null,this.tint=16777215,this.blendMode=n.BLEND_MODES.NORMAL,this.shader=null,this._cachedTint=16777215,this.uvs=null,this.texture=t||h.Texture.EMPTY,this.vertexData=new Float32Array(8),this.vertexTrimmedData=null,this._transformID=-1,this._textureID=-1,this._transformTrimmedID=-1,this._textureTrimmedID=-1,this.indices=u,this.size=4,this.start=0,this.pluginName="batch",this.isSprite=!0,this._roundPixels=o.settings.ROUND_PIXELS}e&&(i.__proto__=e);var t={roundPixels:{configurable:!0},width:{configurable:!0},height:{configurable:!0},anchor:{configurable:!0},tint:{configurable:!0},texture:{configurable:!0}};return((i.prototype=Object.create(e&&e.prototype)).constructor=i).prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=s.sign(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=s.sign(this.scale.y)*this._height/this._texture.orig.height)},i.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},i.prototype.calculateVertices=function(){var t=this._texture;if(this._transformID!==this.transform._worldID||this._textureID!==t._updateID){this._textureID!==t._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=t._updateID;var e=this.transform.worldTransform,i=e.a,r=e.b,s=e.c,h=e.d,n=e.tx,e=e.ty,o=this.vertexData,a=t.trim,t=t.orig,u=this._anchor,_=0,c=0,d=0,l=0,d=a?(_=(c=a.x-u._x*t.width)+a.width,(l=a.y-u._y*t.height)+a.height):(_=(c=-u._x*t.width)+t.width,(l=-u._y*t.height)+t.height);if(o[0]=i*c+s*l+n,o[1]=h*l+r*c+e,o[2]=i*_+s*l+n,o[3]=h*l+r*_+e,o[4]=i*_+s*d+n,o[5]=h*d+r*_+e,o[6]=i*c+s*d+n,o[7]=h*d+r*c+e,this._roundPixels)for(var x=0;x<8;x++)o[x]=Math.round(o[x])}},i.prototype.calculateTrimmedVertices=function(){if(this.vertexTrimmedData){if(this._transformTrimmedID===this.transform._worldID&&this._textureTrimmedID===this._texture._updateID)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=this.transform._worldID,this._textureTrimmedID=this._texture._updateID;var t=this._texture,e=this.vertexTrimmedData,t=t.orig,i=this._anchor,r=this.transform.worldTransform,s=r.a,h=r.b,n=r.c,o=r.d,a=r.tx,r=r.ty,u=-i._x*t.width,_=u+t.width,i=-i._y*t.height,t=i+t.height;e[0]=s*u+n*i+a,e[1]=o*i+h*u+r,e[2]=s*_+n*i+a,e[3]=o*i+h*_+r,e[4]=s*_+n*t+a,e[5]=o*t+h*_+r,e[6]=s*u+n*t+a,e[7]=o*t+h*u+r},i.prototype._render=function(t){this.calculateVertices(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this)},i.prototype._calculateBounds=function(){var t=this._texture.trim,e=this._texture.orig;!t||t.width===e.width&&t.height===e.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))},i.prototype.getLocalBounds=function(t){return 0===this.children.length?(this._bounds.minX=this._texture.orig.width*-this._anchor._x,this._bounds.minY=this._texture.orig.height*-this._anchor._y,this._bounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._bounds.maxY=this._texture.orig.height*(1-this._anchor._y),t||(this._localBoundsRect||(this._localBoundsRect=new r.Rectangle),t=this._localBoundsRect),this._bounds.getRectangle(t)):e.prototype.getLocalBounds.call(this,t)},i.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,a);var t=this._texture.orig.width,e=this._texture.orig.height,i=-t*this.anchor.x;return a.x>=i&&a.x<i+t&&(i=-e*this.anchor.y,a.y>=i&&a.y<i+e)},i.prototype.destroy=function(t){e.prototype.destroy.call(this,t),this._texture.off("update",this._onTextureUpdate,this),this._anchor=null,("boolean"==typeof t?t:t&&t.texture)&&(t="boolean"==typeof t?t:t&&t.baseTexture,this._texture.destroy(!!t)),this._texture=null,this.shader=null},i.from=function(t,e){return new i(t instanceof h.Texture?t:h.Texture.from(t,e))},t.roundPixels.set=function(t){this._roundPixels!==t&&(this._transformID=-1),this._roundPixels=t},t.roundPixels.get=function(){return this._roundPixels},t.width.get=function(){return Math.abs(this.scale.x)*this._texture.orig.width},t.width.set=function(t){var e=s.sign(this.scale.x)||1;this.scale.x=e*t/this._texture.orig.width,this._width=t},t.height.get=function(){return Math.abs(this.scale.y)*this._texture.orig.height},t.height.set=function(t){var e=s.sign(this.scale.y)||1;this.scale.y=e*t/this._texture.orig.height,this._height=t},t.anchor.get=function(){return this._anchor},t.anchor.set=function(t){this._anchor.copyFrom(t)},t.tint.get=function(){return this._tint},t.tint.set=function(t){this._tint=t,this._tintRGB=(t>>16)+(65280&t)+((255&t)<<16)},t.texture.get=function(){return this._texture},t.texture.set=function(t){this._texture!==t&&(this._texture=t||h.Texture.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,t&&(t.baseTexture.valid?this._onTextureUpdate():t.once("update",this._onTextureUpdate,this)))},Object.defineProperties(i.prototype,t),i}(e.Container);return t.Sprite=e,t}({},PIXI,PIXI.utils,PIXI,PIXI,PIXI,PIXI);Object.assign(this.PIXI,_pixi_sprite); 22this.PIXI=this.PIXI||{},this.PIXI.filters=this.PIXI.filters||{};var _pixi_filter_displacement=function(t,r,n){"use strict";r=function(e){function t(t,r){var i=new n.Matrix;t.renderable=!1,e.call(this,"attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\nuniform mat3 filterMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vFilterCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
22\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n\tgl_Position = filterVertexPosition();\n\tvTextureCoord = filterTextureCoord();\n\tvFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy;\n}\n","varying vec2 vFilterCoord;\nvarying vec2 vTextureCoord;\n\nuniform vec2 scale;\nuniform mat2 rotation;\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nuniform highp vec4 inputSize;\nuniform vec4 inputClamp;\n\nvoid main(void)\n{\n vec4 map = texture2D(mapSampler, vFilterCoord);\n\n map -= 0.5;\n map.xy = scale * inputSize.zw * (rotation * map.xy);\n\n gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));\n}\n",{mapSampler:t._texture,filterMatrix:i,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])}),this.maskSprite=t,this.maskMatrix=i,this.scale=new n.Point(r=null==r?20:r,r)}e&&(t.__proto__=e);var r={map:{configurable:!0}};return((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.apply=function(t,r,i,e){this.uniforms.filterMatrix=t.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var n=this.maskSprite.transform.worldTransform,o=Math.sqrt(n.a*n.a+n.b*n.b),a=Math.sqrt(n.c*n.c+n.d*n.d);0!==o&&0!==a&&(this.uniforms.rotation[0]=n.a/o,this.uniforms.rotation[1]=n.b/o,this.uniforms.rotation[2]=n.c/a,this.uniforms.rotation[3]=n.d/a),t.applyFilter(this,r,i,e)},r.map.get=function(){return this.uniforms.mapSampler},r.map.set=function(t){this.uniforms.mapSampler=t},Object.defineProperties(t.prototype,r),t}(r.Filter);return t.DisplacementFilter=r,t}({},PIXI,PIXI);Object.assign(this.PIXI.filters,_pixi_filter_displacement); 23this.PIXI=this.PIXI||{};var _pixi_app=function(e,t,n){"use strict";function s(i){var r=this;i=Object.assign({forceCanvas:!1},i),this.renderer=n.autoDetectRenderer(i),this.stage=new t.Container,s._plugins.forEach(function(e){e.init.call(r,i)})}function i(){}var r={view:{configurable:!0},screen:{configurable:!0}};s.registerPlugin=function(e){s._plugins.push(e)},s.prototype.render=function(){this.renderer.render(this.stage)},r.view.get=function(){return this.renderer.view},r.screen.get=function(){return this.renderer.screen},s.prototype.destroy=function(e,i){var r=this,t=s._plugins.slice(0);t.reverse(),t.forEach(function(e){e.destroy.call(r)}),this.stage.destroy(i),this.stage=null,this.renderer.destroy(e),this.renderer=null,this._options=null},Object.defineProperties(s.prototype,r),s._plugins=[];return i.init=function(e){var i=this;Object.defineProperty(this,"resizeTo",{set:function(e){window.removeEventListener("resize",this.resize),(this._resizeTo=e)&&(window.addEventListener("resize",this.resize),this.resize())},get:function(){return this._resizeTo}}),this.resize=function(){i._resizeTo&&(i._resizeTo===window?i.renderer.resize(window.innerWidth,window.innerHeight):i.renderer.resize(i._resizeTo.clientWidth,i._resizeTo.clientHeight))},this._resizeTo=null,this.resizeTo=e.resizeTo||null},i.destroy=function(){this.resizeTo=null,this.resize=null},s.registerPlugin(i),e.Application=s,e}({},PIXI,PIXI);Object.assign(this.PIXI,_pixi_app); 24"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(s){"function"==typeof define&&define.amd?define(["jquery"],s):"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),s(i),i}:s(jQuery)}(function(g){return g.fn.tilt=function(i){function s(t){this.ticking=!1,g(this).css({"will-change":"transform"}),o.call(this),g(this).trigger("tilt.mouseEnter")}function e(t){this.mousePositions=l(t),r.call(this)}function n(){o.call(this),this.reset=!0,r.call(this),g(this).trigger("tilt.mouseLeave")}function a(){this.glareElement.css({width:""+2*g(this).outerWidth(),height:""+2*g(this).outerWidth()})}var r=function(){this.ticking||(requestAnimationFrame(t.bind(this)),this.ticking=!0)},o=function(){var t=this;void 0!==this.timeout&&clearTimeout(this.timeout),g(this).css({transition:this.settings.speed+"ms "+this.settings.easing}),this.settings.glare&&this.glareElement.css({transition:"opacity "+this.settings.speed+"ms "+this.settings.easing}),this.timeout=setTimeout(function(){g(t).css({transition:""}),t.settings.glare&&t.glareElement.css({transition:""})},this.settings.speed)},l=function(t){return{x:(t=void 0===t?{pageX:g(this).offset().left+g(this).outerWidth()/2,pageY:g(this).offset().top+g(this).outerHeight()/2}:t).pageX,y:t.pageY}},h=function(){var t=g(this).outerWidth(),i=g(this).outerHeight(),s=g(this).offset().left,e=g(this).offset().top,n=(this.mousePositions.x-s)/t,a=(this.mousePositions.y-e)/i;return{tiltX:(this.settings.maxTilt/2-n*this.settings.maxTilt).toFixed(2),tiltY:(a*this.settings.maxTilt-this.settings.maxTilt/2).toFixed(2),percentageX:100*n,percentageY:100*a,angle:Math.atan2(this.mousePositions.x-(s+t/2),-(this.mousePositions.y-(e+i/2)))*(180/Math.PI)}},t=function(){this.transforms=h.call(this),this.reset?(this.reset=!1,g(this).css("transform","perspective("+this.settings.perspective+"px) rotateX(0deg) rotateY(0deg)"),this.settings.glare&&(this.glareElement.css("transform","rotate(180deg) translate(-50%, -50%)"),this.glareElement.css("opacity","0"))):(g(this).css("transform","perspective("+this.settings.perspective+"px) rotateX("+("x"===this.settings.disableAxis?0:this.transforms.tiltY)+"deg) rotateY("+("y"===this.settings.disableAxis?0:this.transforms.tiltX)+"deg) scale3d("+this.settings.scale+","+this.settings.scale+","+this.settings.scale+")"),this.settings.glare&&(this.glareElement.css("transform","rotate("+this.transforms.angle+"deg) translate(-50%, -50%)"),this.glareElement.css("opacity",""+this.transforms.percentageY*this.settings.maxGlare/100)),g(this).trigger("change",[this.transforms]),this.ticking=!1)};return g.fn.tilt.destroy=function(){g(this).each(function(){g(this).find(".js-tilt-glare").remove(),g(this).css({"will-change":"",transform:""}),g(this).off("mousemove mouseenter mouseleave")})},g.fn.tilt.getValues=function(){var t=[];return g(this).each(function(){this.mousePositions=l.call(this),t.push(h.call(this))}),t},g.fn.tilt.reset=function(){g(this).each(function(){var t=this;this.mousePositions=l.call(this),this.settings=g(this).data("settings"),n.call(this),setTimeout(function(){t.reset=!1},this.settings.transition)})},this.each(function(){var t=this;this.settings=g.extend({maxTilt:g(this).is("[data-tilt-max]")?g(this).data("tilt-max"):20,perspective:g(this).is("[data-tilt-perspective]")?g(this).data("tilt-perspective"):300,easing:g(this).is("[data-tilt-easing]")?g(this).data("tilt-easing"):"cubic-bezier(.03,.98,.52,.99)",scale:g(this).is("[data-tilt-scale]")?g(this).data("tilt-scale"):"1",speed:g(this).is("[data-tilt-speed]")?g(this).data("tilt-speed"):"400",transition:!g(this).is("[data-tilt-transition]")||g(this).data("tilt-transition"),disableAxis:g(this).is("[data-tilt-disable-axis]")?g(this).data("tilt-disable-axis"):null,axis:g(this).is("[data-tilt-axis]")?g(this).data("tilt-axis"):null,reset:!g(this).is("[data-tilt-reset]")||g(this).data("tilt-reset"),glare:!!g(this).is("[data-tilt-glare]")&&g(this).data("tilt-glare"),maxGlare:g(this).is("[data-tilt-maxglare]")?g(this).data("tilt-maxglare"):1},i),null!==this.settings.axis&&(console.warn("Tilt.js: the axis setting has been renamed to disableAxis. See https://github.com/gijsroge/tilt.js/pull/26 for more information"),this.settings.disableAxis=this.settings.axis),this.init=function(){g(t).data("settings",t.settings),t.settings.glare&&function(){var t=this.settings.glarePrerender;t||g(this).append('<div class="js-tilt-glare"><div class="js-tilt-glare-inner"></div></div>'),this.glareElementWrapper=g(this).find(".js-tilt-glare"),this.glareElement=g(this).find(".js-tilt-glare-inner"),t||(this.glareElementWrapper.css({position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}).css({overflow:"hidden","pointer-events":"none"}),this.glareElement.css({position:"absolute",top:"50%",left:"50%","background-image":"linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%)",width:""+2*g(this).outerWidth(),height:""+2*g(this).outerWidth(),transform:"rotate(180deg) translate(-50%, -50%)","transform-origin":"0% 0%",opacity:"0"}))}.call(t),function(){g(this).on("mousemove",e),g(this).on("mouseenter",s),this.settings.reset&&g(this).on("mouseleave",n),this.settings.glare&&g(window).on("resize",a.bind(this))}.call(t)},this.init()})},g("[data-tilt]").tilt(),!0});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.