PageSourceSearch

https://kiarasky.com/cdn/shop/t/281/assets/libs.js?v=167359466963087094361790900966

js kiarasky.com collected 2026-10-02 04:54:24 UTC 193,502 bytes, 1 lines download raw bytes

1!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?this:self:global:window,e.domDelegate=t()}}(function(){return function r(p,c,a){function e(s,t){if(!c[s]){if(!p[s]){var i="function"==typeof require&&require;if(!t&&i)return i(s,!0);if(n)return n(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var o=c[s]={exports:{}};p[s][0].call(o.exports,function(n){var t=p[s][1][n];return e(t?t:n)},o,o.exports,r,p,c,a)}return c[s].exports}for(var n="function"==typeof require&&require,t=0;t<a.length;t++)e(a[t]);return e}({1:[function(r,o){"use strict";function a(t){this.listenerMap=[{},{}],t&&this.root(t),this.handle=a.prototype.handle.bind(this)}function d(t,e){return t.toLowerCase()===e.tagName.toLowerCase()}function n(t,e){return this.rootElement===window?e===document:this.rootElement===e}function s(t,e){return t===e.id}o.exports=a,a.prototype.root=function(t){var e,o=this.listenerMap;if(this.rootElement){for(e in o[1])o[1].hasOwnProperty(e)&&this.rootElement.removeEventListener(e,this.handle,!0);for(e in o[0])o[0].hasOwnProperty(e)&&this.rootElement.removeEventListener(e,this.handle,!1)}if(!t||!t.addEventListener)return this.rootElement&&delete this.rootElement,this;for(e in this.rootElement=t,o[1])o[1].hasOwnProperty(e)&&this.rootElement.addEventListener(e,this.handle,!0);for(e in o[0])o[0].hasOwnProperty(e)&&this.rootElement.addEventListener(e,this.handle,!1);return this},a.prototype.captureForType=function(t){return-1!==["blur","error","focus","load","resize","scroll"].indexOf(t)},a.prototype.on=function(e,o,r,a){var c,m,u,h;if(!e)throw new TypeError("Invalid event type: "+e);if("function"==typeof o&&(a=r,r=o,o=null),void 0===a&&(a=this.captureForType(e)),"function"!=typeof r)throw new TypeError("Handler must be a type of Function");return c=this.rootElement,m=this.listenerMap[a?1:0],m[e]||(c&&c.addEventListener(e,this.handle,a),m[e]=[]),o?/^[a-z]+$/i.test(o)?(h=o,u=d):/^#[a-z0-9\-_]+$/i.test(o)?(h=o.slice(1),u=s):(h=o,u=t):(h=null,u=n.bind(this)),m[e].push({selector:o,handler:r,matcher:u,matcherParam:h}),this},a.prototype.off=function(t,e,n,o){var r,a,s,l,d;if("function"==typeof e&&(o=n,n=e,e=null),void 0===o)return this.off(t,e,n,!0),this.off(t,e,n,!1),this;if(s=this.listenerMap[o?1:0],!t){for(d in s)s.hasOwnProperty(d)&&this.off(d,e,n);return this}if(l=s[t],!l||!l.length)return this;for(r=l.length-1;0<=r;r--)a=l[r],e&&e!==a.selector||n&&n!==a.handler||l.splice(r,1);return l.length||(delete s[t],this.rootElement&&this.rootElement.removeEventListener(t,this.handle,o)),this},a.prototype.handle=function(i){var e,n,o,r,a,s,l,_=i.type,h=[];if(!0!==i.ftLabsDelegateIgnore){switch(l=i.target,3===l.nodeType&&(l=l.parentNode),o=this.rootElement,r=i.eventPhase||(i.target===i.currentTarget?2:3)){case 1:h=this.listenerMap[1][_];break;case 2:this.listenerMap[0]&&this.listenerMap[0][_]&&(h=h.concat(this.listenerMap[0][_])),this.listenerMap[1]&&this.listenerMap[1][_]&&(h=h.concat(this.listenerMap[1][_]));break;case 3:h=this.listenerMap[0][_]}for(n=h.length;l&&n;){for(e=0;e<n&&(a=h[e]);e++)if(a.matcher.call(l,a.matcherParam,l)&&(s=this.fire(i,l,a)),!1===s)return i.ftLabsDelegateIgnore=!0,void i.preventDefault();if(l===o)break;n=h.length,l=l.parentElement}}},a.prototype.fire=function(t,e,i){return i.handler.call(e,t,e)};var t=function(t){if(t){var e=t.prototype;return e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector}}(Element);a.prototype.destroy=function(){this.off(),this.root()}},{}],2:[function(e,i){"use strict";var n=e("./delegate");i.exports=function(e){return new n(e)},i.exports.Delegate=n},{"./delegate":1}]},{},[2])(2)});var disableBodyScroll=function(){var n,o=!1,s=!1,d=function(e){!1!==s&&e.target.closest(o)||e.preventDefault()},c=function(e){1===e.targetTouches.length&&(n=e.targetTouches[0].clientY)},l=function(e){if(1===e.targetTouches.length){var t=e.targetTouches[0].clientY-n;0===s.scrollTop&&0<t&&e.preventDefault(),s.scrollHeight-s.scrollTop<=s.clientHeight&&0>t&&e.preventDefault()}};return function(e,t){"undefined"!=typeof t&&(o=t,s=document.querySelector(t));var n=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){n=!0}}))}catch(t){}!0===e?(s&&(s.addEventListener("touchstart",c,!1),s.addEventListener("touchmove",l,!1)),document.body.addEventListener("touchmove",d,!!n&&{capture:!1,passive:!1})):(s&&(s.removeEventListener("touchstart",c,!1),s.removeEventListener("touchmove",l,!1)),document.body.removeEventListener("touchmove",d,!!n&&{capture:!1,passive:!1}))}}();!function(r){"use strict";function a(){var e=this;e.reads=[],e.writes=[],e.raf=i.bind(r),d("initialized",e)}function c(e){e.scheduled||(e.scheduled=!0,e.raf(s.bind(null,e)),d("flush scheduled"))}function s(t){d("flush");var n,o=t.writes,r=t.reads;try{d("flushing reads",r.length),e(r),d("flushing writes",o.length),e(o)}catch(e){n=e}
1if(t.scheduled=!1,(r.length||o.length)&&c(t),n){if(d("task errored",n.message),!t["catch"])throw n;t["catch"](n)}}function e(t){d("run tasks");for(var e;e=t.shift();)e()}function l(t,e){var i=t.indexOf(e);return!!~i&&!!t.splice(i,1)}function t(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}var d=function(){},i=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.msRequestAnimationFrame||function(t){return setTimeout(t,16)};a.prototype={constructor:a,measure:function(t,n){d("measure");var i=n?t.bind(n):t;return this.reads.push(i),c(this),i},mutate:function(t,n){d("mutate");var i=n?t.bind(n):t;return this.writes.push(i),c(this),i},clear:function(e){return d("clear",e),l(this.reads,e)||l(this.writes,e)},extend:function(n){if(d("extend",n),"object"!=typeof n)throw new Error("expected object");var i=Object.create(this);return t(i,n),i.fastdom=this,i.initialize&&i.initialize(),i},catch:null};var n=r.fastdom=r.fastdom||new a;"function"==typeof define?define(function(){return n}):"object"==typeof module&&(module.exports=n)}("undefined"==typeof window?this:window),function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(d,e){"use strict";function n(p,n,f){function o(e,n,o){var d,c="$()."+p+"(\""+n+"\")";return e.each(function(e,t){var i=f.data(t,p);if(!i)return void u(p+" not initialized. Cannot call methods, i.e. "+c);var r=i[n];if(!r||"_"==n.charAt(0))return void u(c+" is not a valid method");var a=r.apply(i,o);d=void 0===d?a:d}),void 0===d?e:d}function r(e,i){e.each(function(o,r){var e=f.data(r,p);e?(e.option(i),e._init()):(e=new n(r,i),f.data(r,p,e))})}f=f||e||d.jQuery,f&&(n.prototype.option||(n.prototype.option=function(t){f.isPlainObject(t)&&(this.options=f.extend(!0,this.options,t))}),f.fn[p]=function(n){if("string"==typeof n){var e=i.call(arguments,1);return o(this,n,e)}return r(this,n),this},t(f))}function t(e){!e||e&&e.bridget||(e.bridget=n)}var i=Array.prototype.slice,o=d.console,u="undefined"==typeof o?function(){}:function(t){o.error(t)};return t(e||d.jQuery),n}),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?this:window,function(){function t(){}var e=t.prototype;return e.on=function(o,t){if(o&&t){var e=this._events=this._events||{},i=e[o]=e[o]||[];return-1==i.indexOf(t)&&i.push(t),this}},e.once=function(o,t){if(o&&t){this.on(o,t);var e=this._onceEvents=this._onceEvents||{},i=e[o]=e[o]||{};return i[t]=!0,this}},e.off=function(o,t){var e=this._events&&this._events[o];if(e&&e.length){var i=e.indexOf(t);return-1!=i&&e.splice(i,1),this}},e.emitEvent=function(t,e){var o=this._events&&this._events[t];if(o&&o.length){o=o.slice(0),e=e||[];for(var s=this._onceEvents&&this._onceEvents[t],r=0;r<o.length;r++){var l=o[r],d=s&&s[l];d&&(this.off(t,l),delete s[l]),l.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function u(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function g(){for(var e,i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},o=0;o<r;o++)e=s[o],i[e]=0;return i}function h(n){var e=getComputedStyle(n);return e||i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function n(){if(!t){t=!0;var r=document.createElement("div");r.style.width="200px",r.style.padding="1px 2px 3px 4px",r.style.borderStyle="solid",r.style.borderWidth="1px 2px 3px 4px",r.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(r);var o=h(r);e.isBoxSizeOuter=m=200==u(o.width),i.removeChild(r)}}function e(e){if(n(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var o=h(e);if("none"==o.display)return g();for(var i={width:e.offsetWidth,height:e.offsetHeight},a=i.isBorderBox="border-box"==o.boxSizing,l=0;l<r;l++){var d=s[l],f=o[d],v=parseFloat(f);i[d]=isNaN(v)?0:v}var E=i.paddingLeft+i.paddingRight,k=i.paddingTop+i.paddingBottom,P=i.marginLeft+i.marginRight,O=i.marginTop+i.marginBottom,w=i.borderLeftWidth+i.borderRightWidth,S=i.borderTopWidth+i.borderBottomWidth,C=a&&m,x=u(o.width);!1!==x&&(i.width=x+(C?0:E+w));var T=u(o.height);return!1!==T&&(i.height=T+(C?0:k+S)),i.innerWidth=i.width-(E+w),i.innerHeight=i.height-(k+S),i.outerWidth=i.width+P,i.outerHeight=i.height+O,i}}var m,i="undefined"==typeof console?function(){}:function(t){console.error(t)},s=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=s.length,t=!1;return e}),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 t=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 o=e[i],r=o+"MatchesSelector";if(t[r])return r}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
1sandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(r,e){var a={};a.extend=function(t,e){for(var i in e)t[i]=e[i];return t},a.modulo=function(t,e){return(t%e+e)%e},a.makeArray=function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"object"==typeof t&&"number"==typeof t.length)for(var n=0;n<t.length;n++)e.push(t[n]);else e.push(t);return e},a.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},a.getParent=function(t,n){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,n))return t},a.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},a.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},a.filterFindElements=function(t,s){t=a.makeArray(t);var l=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!s)return void l.push(t);e(t,s)&&l.push(t);for(var i=t.querySelectorAll(s),n=0;n<i.length;n++)l.push(i[n])}}),l},a.debounceMethod=function(e,i,n){var o=e.prototype[i],r=i+"Timeout";e.prototype[i]=function(){var t=this[r];t&&clearTimeout(t);var e=arguments,i=this;this[r]=setTimeout(function(){o.apply(i,e),delete i[r]},n||100)}},a.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},a.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var t=r.console;return a.htmlInit=function(i,e){a.docReady(function(){var s=a.toDashed(e),l="data-"+s,d=document.querySelectorAll("["+l+"]"),p=document.querySelectorAll(".js-"+s),n=a.makeArray(d).concat(a.makeArray(p)),m=r.jQuery;n.forEach(function(r){var n,d=r.getAttribute(l)||r.getAttribute(l+"-options");try{n=d&&JSON.parse(d)}catch(i){return void(t&&t.error("Error parsing "+l+" on "+r.className+": "+i))}var s=new i(r,n);m&&m.data(r,e,s)})})},a}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("get-size")):(t.Flickity=t.Flickity||{},t.Flickity.Cell=e(t,t.getSize))}(window,function(o,t){function e(t,e){this.element=t,this.parent=e,this.create()}var i=e.prototype;return i.create=function(){this.element.style.position="absolute",this.x=0,this.shift=0},i.destroy=function(){this.element.style.position="";var t=this.parent.originSide;this.element.style[t]=""},i.getSize=function(){this.size=t(this.element)},i.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},i.updateTarget=i.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},i.renderPosition=function(t){var e=this.parent.originSide;this.element.style[e]=this.parent.getPositionValue(t)},i.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},i.remove=function(){this.element.parentNode.removeChild(this.element)},e}),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){if(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;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}},e.updateTarget=function(){var o=this.isOriginLeft?"marginRight":"marginLeft",t=this.getLastCell(),e=t?t.size[o]:0,i=this.outerWidth-(this.firstMargin+e);this.target=this.x+this.firstMargin+i*this.parent.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]},e.select=function(){this.changeSelectedClass("add")},e.unselect=function(){this.changeSelectedClass("remove")}
1,e.changeSelectedClass=function(t){this.cells.forEach(function(e){e.element.classList[t]("is-selected")})},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(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("fizzy-ui-utils")):(t.Flickity=t.Flickity||{},t.Flickity.animatePrototype=e(t,t.fizzyUIUtils))}(window,function(i,n){var e=Math.round,t=i.requestAnimationFrame||i.webkitRequestAnimationFrame,a=0;t||(t=function(o){var t=new Date().getTime(),e=Math.max(0,16-(t-a)),i=setTimeout(o,e);return a=t+e,i});var d={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var e=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(e),this.isAnimating){var n=this;t(function(){n.animate()})}}},p=function(){var t=document.documentElement.style;return"string"==typeof t.transform?"transform":"WebkitTransform"}();return d.positionSlider=function(){var e=this.x;this.options.wrapAround&&1<this.cells.length&&(e=n.modulo(e,this.slideableWidth),e-=this.slideableWidth,this.shiftWrapCells(e)),e+=this.cursorPosition,e=this.options.rightToLeft&&p?-e:e;var r=this.getPositionValue(e);this.slider.style[p]=this.isAnimating?"translate3d("+r+",0,0)":"translateX("+r+")";var i=this.slides[0];if(i){var a=-this.x-i.target,s=a/this.slidesWidth;this.dispatchEvent("scroll",null,[s,a])}},d.positionSliderAtSelected=function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.positionSlider())},d.getPositionValue=function(t){return this.options.percentPosition?.01*e(1e4*(t/this.size.innerWidth))+"%":e(t)+"px"},d.settle=function(t){this.isPointerDown||e(100*this.x)!=e(100*t)||this.restingFrames++,2<this.restingFrames&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle"))},d.shiftWrapCells=function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);var i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)},d._shiftCells=function(t,e,i){for(var o=0;o<t.length;o++){var a=t[o],s=0<e?i:0;a.wrapShift(s),e-=a.size.outerWidth}},d._unshiftCells=function(t){if(t&&t.length)for(var e=0;e<t.length;e++)t[e].wrapShift(0)},d.integratePhysics=function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},d.applyForce=function(t){this.velocity+=t},d.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},d.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},d.applyDragForce=function(){if(this.isPointerDown){var t=this.dragX-this.x,e=t-this.velocity;this.applyForce(e)}},d.applySelectedAttraction=function(){if(!this.isPointerDown&&!this.isFreeScrolling&&this.cells.length){var t=-1*this.selectedSlide.target-this.x,e=t*this.options.selectedAttraction;this.applyForce(e)}},d}),function(d,i){if("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(e,n,o,r,a,s){return i(d,e,n,o,r,a,s)});else if("object"==typeof module&&module.exports)module.exports=i(d,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./sli
1de"),require("./animate"));else{var t=d.Flickity;d.Flickity=i(d,d.EvEmitter,d.getSize,d.fizzyUIUtils,t.Cell,t.Slide,t.animatePrototype)}}(window,function(c,u,t,_,h,x,e){function i(e,t){for(e=_.makeArray(e);e.length;)t.appendChild(e.shift())}function n(n,o){var t=_.getQueryElement(n);if(!t)return void(s&&s.error("Bad element for Flickity: "+(t||n)));if(this.element=t,this.element.flickityGUID){var e=d[this.element.flickityGUID];return e.option(o),e}r&&(this.$element=r(this.element)),this.options=_.extend({},this.constructor.defaults),this.option(o),this._create()}var f=Math.abs,v=Math.max,r=c.jQuery,o=c.getComputedStyle,s=c.console,l=0,d={};n.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},n.createMethods=[];var m=n.prototype;_.extend(m,u.prototype),m._create=function(){var t=this.guid=++l;this.element.flickityGUID=t,d[t]=this,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)&&c.addEventListener("resize",this),n.createMethods.forEach(function(t){this[t]()},this),this.options.watchCSS?this.watchCSS():this.activate()},m.option=function(t){_.extend(this.options,t)},m.activate=function(){if(!this.isActive){this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize();var o=this._filterFindCellElements(this.element.children);i(o,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");var t,r=this.options.initialIndex;t=this.isInitActivated?this.selectedIndex:void 0!==r&&this.cells[r]?r:0,this.select(t,!1,!0),this.isInitActivated=!0}},m._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},m._filterFindCellElements=function(t){return _.filterFindElements(t,this.options.cellSelector)},m.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},m._makeCells=function(i){var n=this._filterFindCellElements(i),t=n.map(function(t){return new h(t,this)},this);return t},m.getLastCell=function(){return this.cells[this.cells.length-1]},m.getLastSlide=function(){return this.slides[this.slides.length-1]},m.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},m._positionCells=function(e){e=e||0,this.maxCellHeight=e?this.maxCellHeight||0:0;var n=0;if(0<e){var a=this.cells[e-1];n=a.x+a.size.outerWidth}for(var r,l=this.cells.length,d=e;d<l;
1d++)r=this.cells[d],r.setPosition(n),n+=r.size.outerWidth,this.maxCellHeight=v(r.size.outerHeight,this.maxCellHeight);this.slideableWidth=n,this.updateSlides(),this._containSlides(),this.slidesWidth=l?this.getLastSlide().target-this.slides[0].target:0},m._sizeCells=function(t){t.forEach(function(t){t.getSize()})},m.updateSlides=function(){if(this.slides=[],this.cells.length){var s=new x(this);this.slides.push(s);var e="left"==this.originSide,n=e?"marginRight":"marginLeft",i=this._getCanCellFit();this.cells.forEach(function(t,e){if(!s.cells.length)return void s.addCell(t);var r=s.outerWidth-s.firstMargin+(t.size.outerWidth-t.size[n]);i.call(this,e,r)?s.addCell(t):(s.updateTarget(),s=new x(this),this.slides.push(s),s.addCell(t))},this),s.updateTarget(),this.updateSelectedSlide()}},m._getCanCellFit=function(){var t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){var i=parseInt(t,10);return function(t){return 0!=t%i}}var n="string"==typeof t&&t.match(/^(\d+)%$/),r=n?parseInt(n[1],10)/100:1;return function(i,e){return e<=(this.size.innerWidth+1)*r}},m._init=m.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},m.getSize=function(){this.size=t(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var g={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return m.setCellAlign=function(){var e=g[this.options.cellAlign];this.cellAlign=e?e[this.originSide]:this.options.cellAlign},m.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}},m._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var e=this.cursorPosition,t=this.cells.length-1;this.beforeShiftCells=this._getGapCells(e,t,-1),e=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(e,0,1)}},m._getGapCells=function(e,t,o){for(var r,l=[];0<e&&(r=this.cells[t],!!r);)l.push(r),t+=o,e-=r.size.outerWidth;return l},m._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var n=this.options.rightToLeft,e=n?"marginRight":"marginLeft",t=n?"marginLeft":"marginRight",o=this.slideableWidth-this.getLastCell().size[t],r=o<this.size.innerWidth,a=this.cursorPosition+this.cells[0].size[e],s=o-this.size.innerWidth*(1-this.cellAlign);
1this.slides.forEach(function(t){r?t.target=o*this.cellAlign:(t.target=v(t.target,a),t.target=Math.min(t.target,s))},this)}},m.dispatchEvent=function(e,a,s){var n=a?[a].concat(s):s;if(this.emitEvent(e,n),r&&this.$element){e+=this.options.namespaceJQueryEvents?".flickity":"";var o=e;if(a){var l=r.Event(a);l.type=e,o=l}this.$element.trigger(o,s)}},m.select=function(t,n,i){this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||n)&&(t=_.modulo(t,this.slides.length)),this.slides[t]&&(this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select"),this.dispatchEvent("cellSelect")))},m._wrapSelect=function(e){var s=this.slides.length,i=this.options.wrapAround&&1<s;if(!i)return e;var o=_.modulo(e,s),l=f(o-this.selectedIndex),r=f(o+s-this.selectedIndex),a=f(o-s-this.selectedIndex);!this.isDragSelect&&r<l?e+=s:!this.isDragSelect&&a<l&&(e-=s),0>e?this.x-=this.slideableWidth:e>=s&&(this.x+=this.slideableWidth)},m.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},m.next=function(t,e){this.select(this.selectedIndex+1,t,e)},m.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),this.selectedSlide=t,t.select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},m.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},m.selectCell=function(e,t,r){var n;"number"==typeof e?n=this.cells[e]:("string"==typeof e&&(e=this.element.querySelector(e)),n=this.getCell(e));for(var a=0;n&&a<this.slides.length;a++){var s=this.slides[a],l=s.cells.indexOf(n);if(-1!=l)return void this.select(a,t,r)}},m.getCell=function(t){for(var e,n=0;n<this.cells.length;n++)if(e=this.cells[n],e.element==t)return e},m.getCells=function(e){e=_.makeArray(e);var o=[];return e.forEach(function(t){var i=this.getCell(t);i&&o.push(i)},this),o},m.getCellElements=function(){return this.cells.map(function(t){return t.element})},m.getParentCell=function(e){var t=this.getCell(e);return t?t:(e=_.getParent(e,".flickity-slider > *"),this.getCell(e))},m.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(1+2*t>=i)return this.getCellElements();for(var o=[],s=e-t;s<=e+t;s++){var l=this.options.wrapAround?_.modulo(s,i):s,d=this.slides[l];
1d&&(o=o.concat(d.getCellElements()))}return o},m.uiChange=function(){this.emitEvent("uiChange")},m.childUIPointerDown=function(t){this.emitEvent("childUIPointerDown",[t])},m.onresize=function(){this.watchCSS(),this.resize()},_.debounceMethod(n,"onresize",150),m.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=_.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)}},m.watchCSS=function(){var t=this.options.watchCSS;if(t){var e=o(this.element,":after").content;-1==e.indexOf("flickity")?this.deactivate():this.activate()}},m.onkeydown=function(t){if(this.options.accessibility&&(!document.activeElement||document.activeElement==this.element))if(37==t.keyCode){var e=this.options.rightToLeft?"next":"previous";this.uiChange(),this[e]()}else if(39==t.keyCode){var i=this.options.rightToLeft?"previous":"next";this.uiChange(),this[i]()}},m.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.cells.forEach(function(t){t.destroy()}),this.unselectSelectedSlide(),this.element.removeChild(this.viewport),i(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},m.destroy=function(){this.deactivate(),c.removeEventListener("resize",this),this.emitEvent("destroy"),r&&this.$element&&r.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete d[this.guid]},_.extend(m,e),n.data=function(e){e=_.getQueryElement(e);var t=e&&e.flickityGUID;return t&&d[t]},_.htmlInit(n,"flickity"),r&&r.bridget&&r.bridget("flickity",n),n.setJQuery=function(e){r=e},n.Cell=h,n}),function(t,e){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.Unipointer=e(t,t.EvEmitter)}(window,function(n,r){function t(){}var e=t.prototype=Object.create(r.prototype);e.bindStartEvent=function(t){this._bindStartEvent(t,!0)},e.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},e._bindStartEvent=function(t,e){e=void 0===e||!!e;var r=e?"addEventListener":"removeEventListener";n.PointerEvent?t[r]("pointerdown",this):(t[r]("mousedown",this),t[r]("touchstart",this))},e.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},e.getTouch=function(t){for(var e,n=0;n<t.length;n++)if(e=t[n],e.identifier==this.pointerIdentifier)return e},e.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},e.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},e.onpointerdown=function(t){this._pointerDown(t,t)},e._pointerDown=function(t,e){this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0===e.pointerId?e.identifier:e.pointerId,this.pointerDown(t,e))},e.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])};var a={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return e._bindPostStartEvents=function(e){if(e){var i=a[e.type];i.forEach(function(t){n.addEventListener(t,this)},this),this._boundPointerEvents=i}},e._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(t){n.removeEventListener(t,this)},this),delete this._boundPointerEvents)},e.onmousemove=function(t){this._pointerMove(t,t)},e.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},e.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},e._pointerMove=function(t,e){this.pointerMove(t,e)},e.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},e.onmouseup=function(t){this._pointerUp(t,t)},e.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},e.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},e._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},e.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},e._pointerDone=function(){this.isPointerDown=!1,delete this.pointerIdentifier,this._unbindPostStartEvents(),this.pointerDone()},e.pointerDone=function(){},e.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},e.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},e._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},e.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},t.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},t}),function(t,e){"function"==typeof define&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("unipointer")):t.Unidragger=e(t,t.Unipointer)}(window,function(o,r){function t(){}var e=Math.abs,i=t.prototype=Object.create(r.prototype);return i.bindHandles=function(){this._bindHandles(!0)},i.unbindHandles=function(){this._bindHandles(!1)},i._bindHandles=function(t){t=void 0===t||!!t;for(var i,s=t?"addEventListener":"removeEventListener",r=0;r<this.handles.length;r++)i=this.handles[r],this._bindStartEvent(i,t),i[s]("click",this),o.PointerEvent&&(i.style.touchAction=t?this._touchActionValue:"")},i._touchActionValue="none",i.pointerDown=function(t,e){if("INPUT"==t.target.nodeName&&"range"==t.target.type)return this.isPointerDown=!1,void delete this.pointerIdentifier;this._dragPointerDown(t,e);var i=document.activeElement;i&&i.blur&&i.blur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])},i._dragPointerDown=function(t,i){this.pointerDownPoint=r.getPointerPoint(i);var n=this.canPreventDefaultOnPointerDown(t,i);n&&t.preventDefault()},i.canPreventDefaultOnPointerDown=function(t){return"SELECT"!=t.target.nodeName},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(e,t){var i=r.getPointerPoint(t),n={x:i.x-this.pointerDownPoint.x,y:i.y-this.pointerDownPoint.y};return!this.isDragging&&this.hasDragStarted(n)&&this._dragStart(e,t),n},i.hasDragStarted=function(i){return 3<e(i.x)||3<e(i.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,i){this.isDragging=!0,this.dragStartPoint=r.getPointerPoint(i),this.isPreventing
1Clicks=!0,this.dragStart(t,i)},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.isPreventingClicks}.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){if(!this.isIgnoringMouseUp||"mouseup"!=t.type){var i=t.target.nodeName;"INPUT"!=i&&"TEXTAREA"!=i||t.target.focus(),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])},t.getPointerPoint=r.getPointerPoint,t}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(i,n,r){return e(t,i,n,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):t.Flickity=e(t,t.Flickity,t.Unidragger,t.fizzyUIUtils)}(window,function(n,m,i,u){function g(o){var t="touchstart"==o.type,e="touch"==o.pointerType,i=s[o.target.nodeName];return t||e||i}function f(){return{x:n.pageXOffset,y:n.pageYOffset}}var h=Math.abs;u.extend(m.defaults,{draggable:!0,dragThreshold:3}),m.createMethods.push("_createDrag");var t=m.prototype;u.extend(t,i.prototype),t._touchActionValue="pan-y pinch-zoom";var e="createTouch"in document,o=!1;t._createDrag=function(){this.on("activate",this.bindDrag),this.on("uiChange",this._uiChangeDrag),this.on("childUIPointerDown",this._childUIPointerDownDrag),this.on("deactivate",this.unbindDrag),e&&!o&&(n.addEventListener("touchmove",function(){}),o=!0)},t.bindDrag=function(){this.options.draggable&&!this.isDragBound&&(this.element.classList.add("is-draggable"),this.handles=[this.viewport],this.bindHandles(),this.isDragBound=!0)},t.unbindDrag=function(){this.isDragBound&&(this.element.classList.remove("is-draggable"),this.unbindHandles(),delete this.isDragBound)},t._uiChangeDrag=function(){delete this.isFreeScrolling},t._childUIPointerDownDrag=function(t){t.preventDefault(),this.pointerDownFocus(t)};var r={TEXTAREA:!0,INPUT:!0,OPTION:!0},a={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};t.pointerDown=function(s,t){var e=r[s.target.nodeName]&&!a[s.target.type];if(e)return this.isPointerDown=!1,void delete this.pointerIdentifier;this._dragPointerDown(s,t);var i=document.activeElement;i&&i.blur&&i!=this.element&&i!=document.body&&i.blur(),this.pointerDownFocus(s),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this._bindPostStartEvents(s),this.pointerDownScroll=f(),n.addEventListener("scroll",this),this.dispatchEvent("pointerDown",s,[t])},t.pointerDownFocus=function(i){var o=g(i);if(this.options.accessibility&&!o){var t=n.pageYOffset;this.element.focus(),n.pageYOffset!=t&&n.scrollTo(n.pageXOffset,t)}};var s={INPUT:!0,SELECT:!0};return t.canPreventDefaultOnPointerDown=function(e){var i=g(e);return!i},t.hasDragStarted=function(e){return h(e.x)>this.options.dragThreshold},t.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},t.pointerDone=function(){n.removeEventListener("scroll",this),delete this.pointerDownScroll},t.dragStart=function(i,t){this.dragStartPosition=this.x,this.startAnimation(),n.removeEventListener("scroll",this),this.dispatchEvent("dragStart",i,[t])},t.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]),this._dragMove(t,e,i)},t.dragMove=function(t,e,i){t.preventDefault(),this.previousDragX=this.dragX;var n=this.options.rightToLeft?-1:1,o=this.dragStartPosition+i.x*n;if(!this.options.wrapAround&&this.slides.length){var s=Math.max(-this.slides[0].target,this.dragStartPosition);o=o>s?.5*(o+s):o;var a=Math.min(-this.getLastSlide().target,this.dragStartPosition);o=o<a?.5*(o+a):o}this.dragX=o,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i])},t.dragEnd=function(t,e){this.options.freeScroll&&(this.isFreeScrolling=!0);var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var o=this.getRestingPosition();this.isFreeScrolling=-o>this.slides[0].target&&-o<this.getLastSlide().target}else 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])},t.dragEndRestingSelect=function(){var o=this.getRestingPosition(),r=h(this.getSlideDistance(-o,this.selectedIndex)),i=this._getClosestResting(o,r,1),t=this._getClosestResting(o,r,-1),e=i.distance<t.distance?i.index:t.index;return e},t._getClosestResting=function(t,e,n){for(var o=this.selectedIndex,a=1/0,d=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};d(e,a)&&(o+=n,a=e,e=this.getSlideDistance(-t,o),null!==e);)e=h(e);return{distance:a,index:o-n}},t.getSlideDistance=function(s,n){var o=this.slides.length,r=this.options.wrapAround&&1<o,t=r?u.modulo(n,o):n,e=this.slides[t];
1if(!e)return null;var a=r?this.slideableWidth*Math.floor(n/o):0;return s-(e.target+a)},t.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:0>t&&0>e?-1:0},t.staticClick=function(t,e){var i=this.getParentCell(t.target),n=i&&i.element,r=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,r])},t.onscroll=function(){var i=f(),t=this.pointerDownScroll.x-i.x,e=this.pointerDownScroll.y-i.y;(3<h(t)||3<h(e))&&this._pointerDone()},m}),function(t,e){"function"==typeof define&&define.amd?define("tap-listener/tap-listener",["unipointer/unipointer"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("unipointer")):t.TapListener=e(t,t.Unipointer)}(window,function(r,s){function e(t){this.bindTap(t)}var i=e.prototype=Object.create(s.prototype);return i.bindTap=function(t){t&&(this.unbindTap(),this.tapElement=t,this._bindStartEvent(t,!0))},i.unbindTap=function(){this.tapElement&&(this._bindStartEvent(this.tapElement,!0),delete this.tapElement)},i.pointerUp=function(o,a){if(!this.isIgnoringMouseUp||"mouseup"!=o.type){var l=s.getPointerPoint(a),p=this.tapElement.getBoundingClientRect(),d=r.pageXOffset,t=r.pageYOffset,e=l.x>=p.left+d&&l.x<=p.right+d&&l.y>=p.top+t&&l.y<=p.bottom+t;if(e&&this.emitEvent("tap",[o,a]),"mouseup"!=o.type){this.isIgnoringMouseUp=!0;var i=this;setTimeout(function(){delete i.isIgnoringMouseUp},400)}}},i.destroy=function(){this.pointerDone(),this.unbindTap()},e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(i,n,r){return e(t,i,n,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):e(t,t.Flickity,t.TapListener,t.fizzyUIUtils)}(window,function(i,n,o,r){"use strict";function a(t,e){this.direction=t,this.parent=e,this._create()}function s(t){return"string"==typeof t?t:"M "+t.x0+",50 L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50  L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}a.prototype=new o,a.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"previous":"next");var i=this.createSVG();e.appendChild(i),this.on("tap",this.onTap),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},a.prototype.activate=function(){this.bindTap(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},a.prototype.deactivate=function(){this.parent.element.removeChild(this.element),o.prototype.destroy.call(this),this.element.removeEventListener("click",this)},a.prototype.createSVG=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS("http://www.w3.org/2000/svg","path"),i=s(this.parent.options.arrowShape);return e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},a.prototype.onTap=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},a.prototype.handleEvent=r.handleEvent,a.prototype.onclick=function(){var t=document.activeElement;t&&t==this.element&&this.onTap()},a.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},a.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},a.prototype.update=function(){var o=this.parent.slides;if(this.parent.options.wrapAround&&1<o.length)return void this.enable();var t=o.length?o.length-1:0,e=this.isPrevious?0:t,i=this.parent.selectedIndex==e?"disable":"enable";this[i]()},a.prototype.destroy=function(){this.deactivate()},r.extend(n.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),n.createMethods.push("_createPrevNextButtons");var t=n.prototype;return t._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new a(-1,this),this.nextButton=new a(1,this),this.on("activate",this.activatePrevNextButtons))},t.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},t.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},n.PrevNextButton=a,n}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(i,n,r){return e(t,i,n,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):e(t,t.Flickity,t.TapListener,t.fizzyUIUtils)}(window,function(e,i,n,r){function a(t){this.parent=t,this._create()}a.prototype=new n,a.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.on("tap",this.onTap),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},a.prototype.activate=function(){this.setDots(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},a.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),n.prototype.destroy.call(this)},a.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;0<t?this.addDots(t):0>t&&this.removeDots(-t)},a.prototype.addDots=function(t){for(var n,o=document.createDocumentFragment(),a=[];t;)n=document.createElement("li"),n.className="dot",o.appendChild(n),a.push(n),t--;this.holder.appendChild(o),this.dots=this.dots.concat(a)},a.prototype.removeDots=function(t){var e=this.dots.splice(this.dots.length-t,t);e.forEach(function(t){this.holder.removeChild(t)},this)},a.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot"),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected")},a.prototype.onTap=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)}},a.prototype.destroy=function(){this.deactivate()},i.PageDots=a,r.extend(i.defaults,{pageDots:!0}),i.createMethods.push("_createPageDots");var o=i.prototype;return o._createPageDots=function(){this.options.pageDots&&(this.pageDots=new a(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))},o.activatePageDots=function(){this.pageDots.activate()},o.updateSelectedPageDots=function(){this.pageDots.updateSelected()},o.updatePageDots=function(){this.pageDots.setDots()},o.deactivatePageDots=function(){this.pageDots.deactivate()},i.PageDots=a,i}),function(t,o){"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(e,t,i){return o(e,t,i)}):"object"==typeof module&&module.exports?module.exports=o(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):o(t.EvEmitter,t.fizzyUIUtils,t.Flickity)}
1(window,function(t,e,i){function n(t){this.parent=t,this.state="stopped",a&&(this.onVisibilityChange=function(){this.visibilityChange()}.bind(this),this.onVisibilityPlay=function(){this.visibilityPlay()}.bind(this))}var o,a;"hidden"in document?(o="hidden",a="visibilitychange"):"webkitHidden"in document&&(o="webkitHidden",a="webkitvisibilitychange"),n.prototype=Object.create(t.prototype),n.prototype.play=function(){if("playing"!=this.state){var e=document[o];if(a&&e)return void document.addEventListener(a,this.onVisibilityPlay);this.state="playing",a&&document.addEventListener(a,this.onVisibilityChange),this.tick()}},n.prototype.tick=function(){if("playing"==this.state){var e=this.parent.options.autoPlay;e="number"==typeof e?e:3e3;var t=this;this.clear(),this.timeout=setTimeout(function(){t.parent.next(!0),t.tick()},e)}},n.prototype.stop=function(){this.state="stopped",this.clear(),a&&document.removeEventListener(a,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(){var e=document[o];this[e?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener(a,this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var s=i.prototype;return s._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)},s.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},s.playPlayer=function(){this.player.play()},s.stopPlayer=function(){this.player.stop()},s.pausePlayer=function(){this.player.pause()},s.unpausePlayer=function(){this.player.unpause()},s.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},s.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},s.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}),function(o,t){"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(e,i){return t(o,e,i)}):"object"==typeof module&&module.exports?module.exports=t(o,require("./flickity"),require("fizzy-ui-utils")):t(o,o.Flickity,o.fizzyUIUtils)}(window,function(t,i,o){function n(i){var e=document.createDocumentFragment();return i.forEach(function(t){e.appendChild(t.element)}),e}var r=i.prototype;return r.insert=function(r,e){var c=this._makeCells(r);if(c&&c.length){var i=this.cells.length;e=void 0===e?i:e;var o=n(c),a=e==i;if(a)this.slider.appendChild(o);else{var l=this.cells[e].element;this.slider.insertBefore(o,l)}if(0===e)this.cells=c.concat(this.cells);else if(a)this.cells=this.cells.concat(c);else{var s=this.cells.splice(e,i-e);this.cells=this.cells.concat(c).concat(s)}this._sizeCells(c);var d=e>this.selectedIndex?0:c.length;this._cellAddedRemoved(e,d)}},r.append=function(t){this.insert(t,this.cells.length)},r.prepend=function(t){this.insert(t,0)},r.remove=function(t){var i,n,a=this.getCells(t),d=0,p=a.length;for(i=0;i<p;i++){n=a[i];var c=this.cells.indexOf(n)<this.selectedIndex;d-=c?1:0}for(i=0;i<p;i++)n=a[i],n.remove(),o.removeFrom(this.cells,n);a.length&&this._cellAddedRemoved(0,d)},r._cellAddedRemoved=function(t,e){e=e||0,this.selectedIndex+=e,this.selectedIndex=Math.max(0,Math.min(this.slides.length-1,this.selectedIndex)),this.cellChange(t,!0),this.emitEvent("cellAddedRemoved",[t,e])},r.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)}},r.cellChange=function(o,t){var e=this.slideableWidth;if(this._positionCells(o),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("cellChange",[o]),this.options.freeScroll){var i=e-this.slideableWidth;this.x+=i*this.cellAlign,this.positionSlider()}else t&&this.positionSliderAtSelected(),this.select(this.selectedIndex)},i}),function(o,t){"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(e,i){return t(o,e,i)}):"object"==typeof module&&module.exports?module.exports=t(o,require("./flickity"),require("fizzy-ui-utils")):t(o,o.Flickity,o.fizzyUIUtils)}(window,function(a,o,r){"use strict";function t(t){if("IMG"==t.nodeName&&t.getAttribute("data-flickity-lazyload"))return[t];var e=t.querySelectorAll("img[data-flickity-lazyload]");return r.makeArray(e)}function e(t,e){this.img=t,this.flickity=e,this.load()}o.createMethods.push("_createLazyload");var i=o.prototype;return i._createLazyload=function(){this.on("select",this.lazyLoad)},i.lazyLoad=function(){var i=this.options.lazyLoad;if(i){var a="number"==typeof i?i:0,n=this.getAdjacentCellElements(a),r=[];
1n.forEach(function(e){var i=t(e);r=r.concat(i)}),r.forEach(function(i){new e(i,this)},this)}},e.prototype.handleEvent=r.handleEvent,e.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.img.getAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload")},e.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},e.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},e.prototype.complete=function(o,t){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var e=this.flickity.getParentCell(this.img),i=e&&e.element;this.flickity.cellSizeChange(i),this.img.classList.add(t),this.flickity.dispatchEvent("lazyLoad",o,i)},o.LazyLoader=e,o}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],e):"object"==typeof module&&module.exports&&(module.exports=e(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(t,e){function o(t,e,i){return(e-t)*i+t}t.createMethods.push("_createAsNavFor");var i=t.prototype;return i._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var t=this.options.asNavFor;if(t){var e=this;setTimeout(function(){e.setNavCompanion(t)})}},i.setNavCompanion=function(i){i=e.getQueryElement(i);var a=t.data(i);if(a&&a!=this){this.navCompanion=a;var r=this;this.onNavCompanionSelect=function(){r.navCompanionSelect()},a.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},i.navCompanionSelect=function(s){if(this.navCompanion){var i=this.navCompanion.selectedCells[0],r=this.navCompanion.cells.indexOf(i),t=r+this.navCompanion.selectedCells.length-1,e=Math.floor(o(r,t,this.navCompanion.cellAlign));if(this.selectCell(e,!1,s),this.removeNavSelectedElements(),!(e>=this.cells.length)){var a=this.cells.slice(r,t+1);this.navSelectedElements=a.map(function(t){return t.element}),this.changeNavSelectedClass("add")}}},i.changeNavSelectedClass=function(t){this.navSelectedElements.forEach(function(e){e.classList[t]("is-nav-selected")})},i.activateAsNavFor=function(){this.navCompanionSelect(!0)},i.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},i.onNavStaticClick=function(o,t,e,i){"number"==typeof i&&this.navCompanion.selectCell(i)},i.deactivateAsNavFor=function(){this.removeNavSelectedElements()},i.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},t}),function(){var t;t=function(){function t(t,e){var i,o;if(this.options={target:"instafeed",get:"popular",resolution:"thumbnail",sortBy:"none",links:!0,mock:!1,useHttp:!1},"object"==typeof t)for(i in t)o=t[i],this.options[i]=o;this.context=null==e?this:e,this.unique=this._genKey()}return t.prototype.hasNext=function(){return"string"==typeof this.context.nextUrl&&0<this.context.nextUrl.length},t.prototype.next=function(){return!!this.hasNext()&&this.run(this.context.nextUrl)},t.prototype.run=function(e){var i,o,r;if("string"!=typeof this.options.clientId&&"string"!=typeof this.options.accessToken)throw new Error("Missing clientId or accessToken.");if("string"!=typeof this.options.accessToken&&"string"!=typeof this.options.clientId)throw new Error("Missing clientId or accessToken.");return null!=this.options.before&&"function"==typeof this.options.before&&this.options.before.call(this),"undefined"!=typeof document&&null!==document&&(r=document.createElement("script"),r.id="instafeed-fetcher",r.src=e||this._buildUrl(),i=document.getElementsByTagName("head"),i[0].appendChild(r),o="instafeedCache"+this.unique,window[o]=new t(this.options,this),window[o].unique=this.unique),!0},t.prototype.parse=function(t){var e,n,o,r,a,s,l,d,p,c,m,u,g,f,h,_,y,x,v,b,T,w,k,P,S,C,E,O,A,D,z,M;if("object"!=typeof t){if(null!=this.options.error&&"function"==typeof this.options.error)return this.options.error.call(this,"Invalid JSON data"),!1;throw new Error("Invalid JSON response")}if(200!==t.meta.code){if(null!=this.options.error&&"function"==typeof this.options.error)return this.options.error.call(this,t.meta.error_message),!1;throw new Error("Error from Instagram: "+t.meta.error_message)}if(0===t.data.length){if(null!=this.options.error&&"function"==typeof this.options.error)return this.options.error.call(this,"No images were returned from Instagram"),!1;throw new Error("No images were returned from Instagram")}if(null!=this.options.success&&"function"==typeof this.options.success&&this.options.success.call(this,t),this.context.nextUrl="",null!=t.pagination&&(this.context.nextUrl=t.pagination.next_url),"none"!==this.options.sortBy)switch(D="random"===this.options.sortBy?["","random"]:this.options.sortBy.split("-"),A="least"===D[0],D[1]){case"random":t.data.sort(function(){return .5-Math.random()});break;
1case"recent":t.data=this._sortBy(t.data,"created_time",A);break;case"liked":t.data=this._sortBy(t.data,"likes.count",A);break;case"commented":t.data=this._sortBy(t.data,"comments.count",A);break;default:throw new Error("Invalid option for sortBy: '"+this.options.sortBy+"'.")}if("undefined"!=typeof document&&null!==document&&!1===this.options.mock){if(h=t.data,O=parseInt(this.options.limit,10),null!=this.options.limit&&h.length>O&&(h=h.slice(0,O)),s=document.createDocumentFragment(),null!=this.options.filter&&"function"==typeof this.options.filter&&(h=this._filter(h,this.options.filter)),null!=this.options.template&&"string"==typeof this.options.template){for(d="",g="",v="",M=document.createElement("div"),c=0,P=h.length;c<P;c++){if(m=h[c],u=m.images[this.options.resolution],"object"!=typeof u)throw a="No image found for resolution: "+this.options.resolution+".",new Error(a);b=u.width,y=u.height,x="square",b>y&&(x="landscape"),b<y&&(x="portrait"),f=u.url,p=0<=window.location.protocol.indexOf("http"),p&&!this.options.useHttp&&(f=f.replace(/https?:\/\//,"//")),g=this._makeTemplate(this.options.template,{model:m,id:m.id,link:m.link,type:m.type,image:f,width:b,height:y,orientation:x,caption:this._getObjectProperty(m,"caption.text"),likes:m.likes.count,comments:m.comments.count,location:this._getObjectProperty(m,"location.name")}),d+=g}for(M.innerHTML=d,r=[],o=0,n=M.childNodes.length;o<n;)r.push(M.childNodes[o]),o+=1;for(w=0,S=r.length;w<S;w++)E=r[w],s.appendChild(E)}else for(k=0,C=h.length;k<C;k++){if(m=h[k],_=document.createElement("img"),u=m.images[this.options.resolution],"object"!=typeof u)throw a="No image found for resolution: "+this.options.resolution+".",new Error(a);f=u.url,p=0<=window.location.protocol.indexOf("http"),p&&!this.options.useHttp&&(f=f.replace(/https?:\/\//,"//")),_.src=f,!0===this.options.links?(e=document.createElement("a"),e.href=m.link,e.appendChild(_),s.appendChild(e)):s.appendChild(_)}if(z=this.options.target,"string"==typeof z&&(z=document.getElementById(z)),null==z)throw a="No element with id=\""+this.options.target+"\" on page.",new Error(a);z.appendChild(s),l=document.getElementsByTagName("head")[0],l.removeChild(document.getElementById("instafeed-fetcher")),T="instafeedCache"+this.unique,window[T]=void 0;try{delete window[T]}catch(t){}}return null!=this.options.after&&"function"==typeof this.options.after&&this.options.after.call(this),!0},t.prototype._buildUrl=function(){var e,t,i;switch(e="https://api.instagram.com/v1",this.options.get){case"popular":t="media/popular";break;case"tagged":if(!this.options.tagName)throw new Error("No tag name specified. Use the 'tagName' option.");t="tags/"+this.options.tagName+"/media/recent";break;case"location":if(!this.options.locationId)throw new Error("No location specified. Use the 'locationId' option.");t="locations/"+this.options.locationId+"/media/recent";break;case"user":if(!this.options.userId)throw new Error("No user specified. Use the 'userId' option.");t="users/"+this.options.userId+"/media/recent";break;default:throw new Error("Invalid option for get: '"+this.options.get+"'.")}return i=e+"/"+t,i+=null==this.options.accessToken?"?client_id="+this.options.clientId:"?access_token="+this.options.accessToken,null!=this.options.limit&&(i+="&count="+this.options.limit),i+="&callback=instafeedCache"+this.unique+".parse"},t.prototype._genKey=function(){var t;return t=function(){return(0|65536*(1+Math.random())).toString(16).substring(1)},""+t()+t()+t()+t()},t.prototype._makeTemplate=function(t,e){var i,o,r,a,s;for(o=/(?:\{{2})([\w\[\]\.]+)(?:\}{2})/,i=t;o.test(i);)a=i.match(o)[1],s=null==(r=this._getObjectProperty(e,a))?"":r,i=i.replace(o,function(){return""+s});return i},t.prototype._getObjectProperty=function(e,t){var i,n;for(t=t.replace(/\[(\w+)\]/g,".$1"),n=t.split(".");n.length;){if(i=n.shift(),!(null!=e&&i in e))return null;e=e[i]}return e},t.prototype._sortBy=function(t,r,a){var i;return i=function(e,t){var i,s;return i=this._getObjectProperty(e,r),s=this._getObjectProperty(t,r),a?i>s?1:-1:i<s?1:-1},t.sort(i.bind(this)),t},t.prototype._filter=function(n,e){var t,r,a,s,l;for(t=[],r=function(i){if(e(i))return t.push(i)},a=0,l=n.length;a<l;a++)s=n[a],r(s);return t},t}(),function(t,e){return"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.Instafeed=e()}(this,function(){return t})}.call(this),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.PhotoSwipe=e()}(this,function(){"use strict";
1var t=Math.PI,_=Math.abs,o=Math.min,d=Math.round,p=Math.max,e=function(g,e,i,r){var S={features:null,bind:function(t,e,a,n){var o=(n?"remove":"add")+"EventListener";e=e.split(" ");for(var r=0;r<e.length;r++)e[r]&&t[o](e[r],a,!1)},isArray:function(t){return t instanceof Array},createEl:function(t,e){var i=document.createElement(e||"div");return t&&(i.className=t),i},getScrollY:function(){var t=window.pageYOffset;return void 0===t?document.documentElement.scrollTop:t},unbind:function(t,e,i){S.bind(t,e,i,!0)},removeClass:function(t,e){var i=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(i," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(t,e){S.hasClass(t,e)||(t.className+=(t.className?" ":"")+e)},hasClass:function(t,e){return t.className&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className)},getChildByClass:function(t,e){for(var i=t.firstChild;i;){if(S.hasClass(i,e))return i;i=i.nextSibling}},arraySearch:function(o,t,e){for(var i=o.length;i--;)if(o[i][e]===t)return i;return-1},extend:function(o,t,e){for(var i in t)if(t.hasOwnProperty(i)){if(e&&o.hasOwnProperty(i))continue;o[i]=t[i]}},easing:{sine:{out:function(e){return Math.sin(e*(t/2))},inOut:function(e){return-(Math.cos(t*e)-1)/2}},cubic:{out:function(t){return--t*t*t+1}}},detectFeatures:function(){if(S.features)return S.features;var i=S.createEl(),n=i.style,t="",o={};if(o.oldIE=document.all&&!document.addEventListener,o.touch="ontouchstart"in window,window.requestAnimationFrame&&(o.raf=window.requestAnimationFrame,o.caf=window.cancelAnimationFrame),o.pointerEvent=navigator.pointerEnabled||navigator.msPointerEnabled,!o.pointerEvent){var a=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var s=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);s&&0<s.length&&(s=parseInt(s[1],10),1<=s&&8>s&&(o.isOldIOSPhone=!0))}var l=a.match(/Android\s([0-9\.]*)/),d=l?l[1]:0;d=parseFloat(d),1<=d&&(4.4>d&&(o.isOldAndroid=!0),o.androidVersion=d),o.isMobileOpera=/opera mini|o
1pera mobi/i.test(a)}for(var u,g,f=["transform","perspective","animationName"],_=["","webkit","Moz","ms","O"],y=0;4>y;y++){t=_[y];for(var v=0;3>v;v++)u=f[v],g=t+(t?u.charAt(0).toUpperCase()+u.slice(1):u),!o[u]&&g in n&&(o[u]=g);t&&!o.raf&&(t=t.toLowerCase(),o.raf=window[t+"RequestAnimationFrame"],o.raf&&(o.caf=window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]))}if(!o.raf){var b=0;o.raf=function(e){var i=new Date().getTime(),n=p(0,16-(i-b)),o=window.setTimeout(function(){e(i+n)},n);return b=i+n,o},o.caf=function(t){clearTimeout(t)}}return o.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,S.features=o,o}};S.detectFeatures(),S.features.oldIE&&(S.bind=function(t,e,r,o){e=e.split(" ");for(var a,s=(o?"detach":"attach")+"Event",p=function(){r.handleEvent.call(r)},d=0;d<e.length;d++)if(a=e[d])if("object"==typeof r&&r.handleEvent){if(!o)r["oldIE"+a]=p;else if(!r["oldIE"+a])return!1;t[s]("on"+a,r["oldIE"+a])}else t[s]("on"+a,r)});var T=this,y={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(t){return"A"===t.tagName},getDoubleTapZoom:function(t,e){return t?1:.7>e.initialZoomLevel?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};S.extend(y,r);var l,s,h,x,c,u,a,C,E,O,A,D,z,L,R,I,n,F,N,M,X,B,j,U,W,Y,H,Z,V,G,q,Q,$,K,J,ee,te,ne,oe,re,ae,se,le,de,pe,ce,me,ue,ge,fe,_e,ye,Te,we,ke,Pe,Oe,yt=function(){return{x:0,y:0}},ht=yt(),_t=yt(),xt=yt(),vt={},bt=0,Pt={},Tt=yt(),wt=0,St=!0,Dt=[],Ot={},Et=!1,It=function(t,e){S.extend(T,e.publicMethods),Dt.push(t)},Lt=function(t){var e=hn();return t>e-1?t-e:0>t?e+t:t},zt={},Nt=function(t,e){return zt[t]||(zt[t]=[]),zt[t].push(e)},Mt=function(o){var t=zt[o];if(t){var e=Array.prototype.slice.call(arguments);e.shift();for(var i=0;i<t.length;i++)t[i].apply(T,e)}},Bt=function(){return new Date().getTime()},jt=function(t){ke=t,T.bg.style.opacity=t*y.bgOpacity},Xt=function(t,e,o,i,a){(!Et||a&&a!==T.currItem)&&(i/=a?a.fitRatio:T.currItem.fitRatio),t[B]=D+e+"px, "+o+"px"+z+" scale("+i+")"},Ut=function(t){fe&&(t&&(O>T.currItem.fitRatio?Et||(An(T.currItem,!1,!0),Et=!0):Et&&(An(T.currItem),Et=!1)),Xt(fe,xt.x,xt.y,O))},Yt=function(t){t.container&&Xt(t.container.style,t.initialPosition.x,t.initialPosition.y,t.initialZoomLevel,t)},Ht=function(e,i){i[B]=D+e+"px, 0px"+z},Zt=function(e,t){if(!y.loop&&t){var o=x+(Tt.x*bt-e)/Tt.x,n=d(e-Gi.x);(0>o&&0<n||o>=hn()-1&&0>n)&&(e=Gi.x+n*y.mainScrollEndFriction)}Gi.x=e,Ht(e,c)},Gt=function(t,e){var i=Fi[t]-Pt[t];return _t[t]+ht[t]+i-i*(e/A)},qt=function(t,e){t.x=e.x,t.y=e.y,e.id&&(t.id=e.id)},$t=function(t){t.x=d(t.x),t.y=d(t.y)},Kt=null,Jt=function(){Kt&&(S.unbind(document,"mousemove",Jt),S.addClass(g,"pswp--has_mouse"),y.mouseUsed=!0,Mt("mouseUsed")),Kt=setTimeout(function(){Kt=null},100)},ei=function(){S.bind(document,"keydown",T),q.transform&&S.bind(T.scrollWrap,"click",T),y.mouseUsed||S.bind(document,"mousemove",Jt),S.bind(window,"resize scroll orientationchange",T),Mt("bindEvents")},ti=function(){S.unbind(window,"resize scroll orientationchange",T),S.unbind(window,"scroll",E.scroll),S.unbind(document,"keydown",T),S.unbind(document,"mousemove",Jt),q.transform&&S.unbind(T.scrollWrap,"click",T),oe&&S.unbind(window,a,T),clearTimeout(Q),Mt("unbindEvents")},oi=function(t,e){var i=Fn(T.currItem,vt,t);return e&&(ge=i),i},ri=function(t){return t||(t=T.currItem),t.fitRatio},ai=function(t){return t||(t=T.currItem),0<t.w?y.maxSpreadZoom:1},ni=function(o,t,e,i){return i===T.currItem.initialZoomLevel?(e[o]=T.currItem.initialPosition[o],!0):(e[o]=Gt(o,i),e[o]>t.min[o]?(e[o]=t.min[o],!0):e[o]<t.max[o]&&(e[o]=t.max[o],!0))},si=function(){if(B){var t=q.perspective&&!U;return D="translate"+(t?"3d(":"("),void(z=q.perspective?", 0px)":")")}B="left",S.addClass(g,"pswp--ie"),Ht=function(t,e){e.left=t+"px"},Yt=function(t){var e=1<t.fitRatio?1:t.fitRatio,i=t.container.style,n=e*t.w,r=e*t.h;i.width=n+"px",i.height=r+"px",i.left=t.initialPosition.x+"px",i.top=t.initialPosition.y+"px"}
1,Ut=function(){if(fe){var t=fe,e=T.currItem,i=1<e.fitRatio?1:e.fitRatio,n=i*e.w,r=i*e.h;t.width=n+"px",t.height=r+"px",t.left=xt.x+"px",t.top=xt.y+"px"}}},li=function(t){var e="";y.escKey&&27===t.keyCode?e="close":y.arrowKeys&&(37===t.keyCode?e="prev":39===t.keyCode&&(e="next")),e&&(t.ctrlKey||t.altKey||t.shiftKey||t.metaKey||(t.preventDefault?t.preventDefault():t.returnValue=!1,T[e]()))},pi=function(t){t&&(se||ae||_e||te)&&(t.preventDefault(),t.stopPropagation())},di=function(){T.setScrollOffset(0,S.getScrollY())},ci={},mi=0,Si=function(t){ci[t]&&(ci[t].raf&&Y(ci[t].raf),mi--,delete ci[t])},ui=function(t){ci[t]&&Si(t),ci[t]||(mi++,ci[t]={})},gi=function(){for(var t in ci)ci.hasOwnProperty(t)&&Si(t)},fi=function(t,e,i,n,r,o,s){var a,p=Bt();ui(t);var c=function(){if(ci[t]){if(a=Bt()-p,a>=n)return Si(t),o(i),void(s&&s());o((i-e)*r(a/n)+e),ci[t].raf=W(c)}};c()},hi={},vi={},_i={},yi={},bi={},Ti=[],xi={},wi=[],Ei={},Pi=0,Ri=yt(),Di=0,Gi=yt(),Fi=yt(),Ni=yt(),qi=function(t,e){return t.x===e.x&&t.y===e.y},ln=function(t,e){return 25>_(t.x-e.x)&&25>_(t.y-e.y)},Qi=function(t,e){return Ei.x=_(t.x-e.x),Ei.y=_(t.y-e.y),Math.sqrt(Ei.x*Ei.x+Ei.y*Ei.y)},Mi=function(){le&&(Y(le),le=null)},$i=function(){oe&&(le=W($i),Vi())},Ki=function(){return"fit"!==y.scaleMode||O!==T.currItem.initialZoomLevel},Ji=function(t,e){return t&&t!==document&&!(t.getAttribute("class")&&-1<t.getAttribute("class").indexOf("pswp__scroll-wrap"))&&(e(t)?t:Ji(t.parentNode,e))},Bi={},en=function(t,e){return Bi.prevent=!Ji(t.target,y.isClickableElement),Mt("preventDragEvent",t,e,Bi),Bi.prevent},dn=function(t,e){return e.x=t.pageX,e.y=t.pageY,e.id=t.identifier,e},Ui=function(t,e,i){i.x=.5*(t.x+e.x),i.y=.5*(t.y+e.y)},Ai=function(o,t,e){if(50<o-K){var i=2<wi.length?wi.shift():{};i.x=t,i.y=e,wi.push(i),K=o}},tn=function(){var t=xt.y-T.currItem.initialPosition.y;return 1-_(t/(vt.y/2))},nn={},zi={},on=[],rn=function(t){for(;0<on.length;)on.pop();return j?(Oe=0,Ti.forEach(function(t){0===Oe?on[0]=t:1==Oe&&(on[1]=t),Oe++}
1)):-1<t.type.indexOf("touch")?t.touches&&0<t.touches.length&&(on[0]=dn(t.touches[0],nn),1<t.touches.length&&(on[1]=dn(t.touches[1],zi))):(nn.x=t.pageX,nn.y=t.pageY,nn.id="",on[0]=nn),on},sn=function(t,e){var i,o,r,a,s=0,p=xt[t]+e[t],h=0<e[t],_=Gi.x+e.x,u=Gi.x-xi.x;return i=p>ge.min[t]||p<ge.max[t]?y.panEndFriction:1,p=xt[t]+e[t]*i,y.allowPanToNext&&(fe?"h"!==ye||"x"!==t||ae||(h?(p>ge.min[t]&&(i=y.panEndFriction,s=ge.min[t]-p,o=ge.min[t]-_t[t]),(0>=o||0>u)&&1<hn()?(a=_,0>u&&_>xi.x&&(a=xi.x)):ge.min.x!==ge.max.x&&(r=p)):(p<ge.max[t]&&(i=y.panEndFriction,s=p-ge.max[t],o=_t[t]-ge.max[t]),(0>=o||0<u)&&1<hn()?(a=_,0<u&&_<xi.x&&(a=xi.x)):ge.min.x!==ge.max.x&&(r=p))):a=_,"x"===t)?(void 0!==a&&(Zt(a,!0),de=a!==xi.x),ge.min.x!==ge.max.x&&(void 0===r?de||(xt.x+=e.x*i):xt.x=r),void 0!==a):void(_e||de||O>T.currItem.fitRatio&&(xt[t]+=e[t]*i))},Ii=function(t){if(!("mousedown"===t.type&&0<t.button)){if(gn)return void t.preventDefault();if(!ne||"mousedown"!==t.type){if(en(t,!0)&&t.preventDefault(),Mt("pointerDown"),j){var e=S.arraySearch(Ti,t.pointerId,"id");0>e&&(e=Ti.length),Ti[e]={x:t.pageX,y:t.pageY,id:t.pointerId}}var i=rn(t),o=i.length;pe=null,gi(),oe&&1!==o||(oe=Te=!0,S.bind(window,a,T),ee=Pe=we=te=de=se=re=ae=!1,ye=null,Mt("firstTouchStart",i),qt(_t,xt),ht.x=ht.y=0,qt(yi,i[0]),qt(bi,yi),xi.x=Tt.x*bt,wi=[{x:yi.x,y:yi.y}],K=$=Bt(),oi(O,!0),Mi(),$i()),ce||!(1<o)||_e||de||(A=O,ae=!1,ce=re=!0,ht.y=ht.x=0,qt(_t,xt),qt(hi,i[0]),qt(vi,i[1]),Ui(hi,vi,Ni),Fi.x=_(Ni.x)-xt.x,Fi.y=_(Ni.y)-xt.y,me=ue=Qi(hi,vi))}}},Wi=function(t){if(t.preventDefault(),j){var e=S.arraySearch(Ti,t.pointerId,"id");if(-1<e){var i=Ti[e];i.x=t.pageX,i.y=t.pageY}}if(oe){var n=rn(t);if(ye||se||ce)pe=n;else if(Gi.x!==Tt.x*bt)ye="h";else{var o=_(n[0].x-yi.x)-_(n[0].y-yi.y);10<=_(o)&&(ye=0<o?"h":"v",pe=n)}}},Vi=function(){if(pe){var t=pe.length;if(0!==t)if(qt(hi,pe[0]),_i.x=hi.x-yi.x,_i.y=hi.y-yi.y,ce&&1<t){if(yi.x=hi.x,yi.y=hi.y,!_i.x&&!_i.y&&qi(pe[1],vi))return;qt(vi,pe[1]),ae||(ae=!0,Mt("zoomGestureStarted"));var e=Qi(hi,vi),i=ji(e);i>T.currItem.initialZoomLevel+T.currItem.initialZoomLevel/15&&(Pe=!0);var r=1,a=ri(),p=ai();if(!(i<a))i>p&&(r=(i-p)/(6*a),1<r&&(r=1),i=p+r*a);else if(y.pinchToClose&&!Pe&&A<=T.currItem.initialZoomLevel){var m=a-i,l=1-m/(a/1.2);jt(l),Mt("onPinchClose",l),we=!0}else r=(a-i)/a,1<r&&(r=1),i=a-r*(a/3);0>r&&(r=0),me=e,Ui(hi,vi,Ri),ht.x+=Ri.x-Ni.x,ht.y+=Ri.y-Ni.y,qt(Ni,Ri),xt.x=Gt("x",i),xt.y=Gt("y",i),ee=i>O,O=i,Ut()}else{if(!ye)return;if(Te&&(Te=!1,10<=_(_i.x)&&(_i.x-=pe[0].x-bi.x),10<=_(_i.y)&&(_i.y-=pe[0].y-bi.y)),yi.x=hi.x,yi.y=hi.y,0===_i.x&&0===_i.y)return;if("v"===ye&&y.closeOnVerticalDrag&&!Ki()){ht.y+=_i.y,xt.y+=_i.y;var d=tn();return te=!0,Mt("onVerticalDrag",d),jt(d),void Ut()}Ai(Bt(),hi.x,hi.y),se=!0,ge=T.currItem.bounds;var c=sn("x",_i);c||(sn("y",_i),$t(xt),Ut())}}},Xi=function(t){if(q.isOldAndroid){if(ne&&"mouseup"===t.type)return;-1<t.type.indexOf("touch")&&(clearTimeout(ne),ne=setTimeout(function(){ne=0},600))}Mt("pointerUp"),en(t,!1)&&t.preventDefault();var e;if(j){var d=S.arraySearch(Ti,t.pointerId,"id");if(-1<d)if(e=Ti.splice(d,1)[0],navigator.pointerEnabled)e.type=t.pointerType||"mouse";else{var n={4:"mouse",2:"touch",3:"pen"};e.type=n[t.pointerType],e.type||(e.type=t.pointerType||"mouse")}}var o,m=rn(t),s=m.length;if("mouseup"===t.type&&(s=0),2===s)return pe=null,!0;1===s&&qt(bi,m[0]),0!==s||ye||_e||(e||("mouseup"===t.type?e={x:t.pageX,y:t.pageY,type:"mouse"}:t.changedTouches&&t.changedTouches[0]&&(e={x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY,type:"touch"})),Mt("touchRelease",t,e));var g=-1;if(0===s&&(oe=!1,S.unbind(window,a,T),Mi(),ce?g=0:-1!==Di&&(g=Bt()-Di)),Di=1===s?Bt():-1,o=-1!=g&&150>g?"zoom":"swipe",ce&&2>s&&(ce=!1,1===s&&(o="zoomPointerUp"),Mt("zoomGestureEnded")),pe=null,se||ae||_e||te)if(gi(),J||(J=an()),J.calculateSwipeSpeed("x"),te){var _=tn();if(_<y.verticalDragRange)T.close();else{var c=xt.y,u=ke;fi("verticalDrag",0,1,300,S.easing.cubic.out,function(t){xt.y=(T.currItem.initialPosition.y-c)*t+c,jt((1-u)*t+u),Ut()}),Mt("onVerticalDrag",1)}}else{if((de||_e)&&0===s){var f=Li(o,J);if(f)return;o="zoomPointerUp"}if(!_e)return"swipe"===o?void(!de&&O>T.currItem.fitRatio&&pn(J)):void Yi()}},an=function(){var e,n,r={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{}
1,backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(t){1<wi.length?(e=Bt()-K+50,n=wi[wi.length-2][t]):(e=Bt()-$,n=bi[t]),r.lastFlickOffset[t]=yi[t]-n,r.lastFlickDist[t]=_(r.lastFlickOffset[t]),r.lastFlickSpeed[t]=20<r.lastFlickDist[t]?r.lastFlickOffset[t]/e:0,.1>_(r.lastFlickSpeed[t])&&(r.lastFlickSpeed[t]=0),r.slowDownRatio[t]=.95,r.slowDownRatioReverse[t]=1-r.slowDownRatio[t],r.speedDecelerationRatio[t]=1},calculateOverBoundsAnimOffset:function(t,e){r.backAnimStarted[t]||(xt[t]>ge.min[t]?r.backAnimDestination[t]=ge.min[t]:xt[t]<ge.max[t]&&(r.backAnimDestination[t]=ge.max[t]),void 0!==r.backAnimDestination[t]&&(r.slowDownRatio[t]=.7,r.slowDownRatioReverse[t]=1-r.slowDownRatio[t],.05>r.speedDecelerationRatioAbs[t]&&(r.lastFlickSpeed[t]=0,r.backAnimStarted[t]=!0,fi("bounceZoomPan"+t,xt[t],r.backAnimDestination[t],e||300,S.easing.sine.out,function(e){xt[t]=e,Ut()}))))},calculateAnimOffset:function(t){r.backAnimStarted[t]||(r.speedDecelerationRatio[t]*=r.slowDownRatio[t]+r.slowDownRatioReverse[t]-r.slowDownRatioReverse[t]*r.timeDiff/10,r.speedDecelerationRatioAbs[t]=_(r.lastFlickSpeed[t]*r.speedDecelerationRatio[t]),r.distanceOffset[t]=r.lastFlickSpeed[t]*r.speedDecelerationRatio[t]*r.timeDiff,xt[t]+=r.distanceOffset[t])},panAnimLoop:function(){if(ci.zoomPan&&(ci.zoomPan.raf=W(r.panAnimLoop),r.now=Bt(),r.timeDiff=r.now-r.lastNow,r.lastNow=r.now,r.calculateAnimOffset("x"),r.calculateAnimOffset("y"),Ut(),r.calculateOverBoundsAnimOffset("x"),r.calculateOverBoundsAnimOffset("y"),.05>r.speedDecelerationRatioAbs.x&&.05>r.speedDecelerationRatioAbs.y))return xt.x=d(xt.x),xt.y=d(xt.y),Ut(),void Si("zoomPan")}};return r},pn=function(t){return t.calculateSwipeSpeed("y"),ge=T.currItem.bounds,t.backAnimDestination={},t.backAnimStarted={},.05>=_(t.lastFlickSpeed.x)&&.05>=_(t.lastFlickSpeed.y)?(t.speedDecelerationRatioAbs.x=t.speedDecelerationRatioAbs.y=0,t.calculateOverBoundsAnimOffset("x"),t.calculateOverBoundsAnimOffset("y"),!0):(ui("zoomPan"),t.lastNow=Bt(),void t.panAnimLoop())},Li=function(i,n){var t;_e||(Pi=x);var r;if("swipe"===i){var a=yi.x-bi.x,d=10>n.lastFlickDist.x;30<a&&(d||20<n.lastFlickOffset.x)?r=-1:-30>a&&(d||-20>n.lastFlickOffset.x)&&(r=1)}var l;r&&(x+=r,0>x?(x=y.loop?hn()-1:0,l=!0):x>=hn()&&(x=y.loop?0:hn()-1,l=!0),l&&!y.loop||(wt+=r,bt-=r,t=!0));var c,g=Tt.x*bt,h=_(g-Gi.x);return t||g>Gi.x==0<n.lastFlickSpeed.x?(c=0<_(n.lastFlickSpeed.x)?h/_(n.lastFlickSpeed.x):333,c=o(c,400),c=p(c,250)):c=333,Pi===x&&(t=!1),_e=!0,Mt("mainScrollAnimStart"),fi("mainScroll",Gi.x,g,c,S.easing.cubic.out,Zt,function(){gi(),_e=!1,Pi=-1,(t||Pi!==x)&&T.updateCurrItem(),Mt("mainScrollAnimComplete")}),t&&T.updateCurrItem(!0),t},ji=function(t){return 1/ue*t*A},Yi=function(){var e=O,t=ri(),o=ai();O<t?e=t:O>o&&(e=o);var n,s=1,l=ke;return we&&!ee&&!Pe&&O<t?(T.close(),!0):(we&&(n=function(t){jt((1-l)*t+l)}),T.zoomTo(e,0,200,S.easing.cubic.out,n),!0)};It("Gestures",{publicMethods:{initGestures:function(){var t=function(t,e,i,n,o){F=t+e,N=t+i,M=t+n,X=o?t+o:""};j=q.pointerEvent,j&&q.touch&&(q.touch=!1),j?navigator.pointerEnabled?t("pointer","down","move","up","cancel"):t("MSPointer","Down","Move","Up","Cancel"):q.touch?(t("touch","start","move","end","cancel"),U=!0):t("mouse","down","move","up"),a=N+" "+M+" "+X,C=F,j&&!U&&(U=1<navigator.maxTouchPoints||1<navigator.msMaxTouchPoints),T.likelyTouchDevice=U,E[F]=Ii,E[N]=Wi,E[M]=Xi,X&&(E[X]=E[M]),q.touch&&(C+=" mousedown",a+=" mousemove mouseup",E.mousedown=E[F],E.mousemove=E[N],E.mouseup=E[M]),U||(y.allowPanToNext=!1)}}});var Hi,mn,un,gn,fn,hn,_n,Sn=function(e,i,p,o){Hi&&clearTimeout(Hi),gn=!0,un=!0;var c;e.initialLayout?(c=e.initialLayout,e.initialLayout=null):c=y.getThumbBoundsFn&&y.getThumbBoundsFn(x);var f=p?y.hideAnimationDuration:y.showAnimationDuration,u=function(){Si("initialZoom"),p?(T.template.removeAttribute("style"),T.bg.removeAttribute("style")):(jt(1),i&&(i.style.display="block"),S.addClass(g,"pswp--animated-in"),Mt("initialZoom"+(p?"OutEnd":"InEnd"))),o&&o(),gn=!1};if(!f||!c||void 0===c.x)return Mt("initialZoom"+(p?"Out":"In")),O=e.initialZoomLevel,qt(xt,e.initialPosition),Ut(),g.style.opacity=p?0:1,jt(1),void(f?setTimeout(function(){u()},f):u());var n=function(){var i=h,o=!T.currItem.src||T.currItem.loadError||y.showHideOpacity;e.miniImg&&(e.miniImg.style.webkitBackfaceVisibility="hidden"),p||(O=c.w/e.w,xt.x=c.x,xt.y=c.y-Z,T[o?"template":"bg"].style.opacity=.001,Ut()),ui("initialZoom"),p&&!i&&S.removeClass(g,"pswp--animated-in"),o&&(p?S[(i?"remove":"add")+"Class"](g,"pswp--animate_opacity"):setTimeout(function(){S.addClass(g,"pswp--animate_opacity")},30)),Hi=setTimeout(function(){if(Mt("initialZoom"+(p?"Out":"In")),p){var r=c.w/e.w,n={x:xt.x,y:xt.y},a=O,s=ke,l=function(e){1===e?(O=r,xt.x=c.x,xt.y=c.y-G):(O=(r-a)*e+a,xt.x=(c.x-n.x)*e+n.x,xt.y=(c.y-G-n.y)*e+n.y),Ut(),o?g.style.opacity=1-e:jt(s-e*s)};i?fi("initialZoom",0,1,f,S.easing.cubic.out,l,u):(l(1),Hi=setTimeout(u,f+20))}else O=e.initialZoomLevel,qt(xt,e.initialPosition),Ut(),jt(1),o?g.style.opacity=1:jt(1),Hi=setTimeout(u,f+20)},p?25:90)};n()},kn={},yn=[],In={index:0,errorMsg:"<div class=\"pswp__error-msg\"><a href=\"%url%\" target=\"_blank\">The image</a> could not be loaded.</div>",forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return mn.length}},En=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},Cn=function(o,t,e){var i=o.bounds;i.center.x=d((kn.x-t)/2),i.center.y=d((kn.y-e)/2)+o.vGap.top,i.max.x=t>kn.x?d(kn.x-t):i.center.x,i.max.y=e>kn.y?d(kn.y-e)+o.vGap.top:i.center.y,i.min.x=t>kn.x?0:i.center.x,i.min.y=e>kn.y?o.vGap.top:i.center.y},Fn=function(i,n,t){if(i.src&&!i.loadError){var o=!t;if(o&&(i.vGap||(i.vGap={top:0,bottom:0}),Mt("parseVerticalMargin",i)),kn.x=n.x,kn.y=n.y-i.vGap.top-i.vGap.bottom,o){var r=kn.x/i.w,a=kn.y/i.h;i.fitRatio=r<a?r:a;var s=y.scaleMode;"orig"===s?t=1:"fit"===s?t=i.fitRatio:"zoom"===s&&(t=p(i.initialZoomLevel||1,i.fitRatio)),1<t&&(t=1),i.initialZoomLevel=t,i.bounds||(i.bounds=En())}return t?(Cn(i,i.w*t,i.h*t),o&&t===i.initialZoomLevel&&(i.initialPosition=i.bounds.center),i.bounds):void 0}return i.w=i.h=0,i.initialZoomLevel=i.fitRatio=1,i.bounds=En(),i.initialPosition=i.bounds.center,i.bounds},Nn=function(e,i,n,r,o,a){i.loadError||r&&(i.imageAppended=!0,An(i,r,i===T.currItem&&Et),n.appendChild(r),a&&setTimeout(function(){i&&i.loaded&&i.placeholder&&(i.placeholder.style.display="none",i.placeholder=null)},500))},Dn=function(t){t.loading=!0,t.loaded=!1;var e=t.img=S.createEl("pswp__img","img"),n=function(){t.loading=!1,t.loaded=!0,t.loadComplete?t.loadComplete(t):t.img=null,e.onload=e.onerror=null,e=null};return e.onload=n,e.onerror=function(){t.loadError=!0,n()},e.src=t.src,e},On=function(t,e){if(t.src&&t.loadError&&t.container)return e&&(t.container.innerHTML=""),t.container.innerHTML=y.errorMsg.replace("%url%",t.src),!0},An=function(t,e,n){if(t.src){e||(e=t.container.lastChild);var a=n?t.w:d(t.w*t.fitRatio),o=n?t.h:d(t.h*t.fitRatio);t.placeholder&&!t.loaded&&(t.placeholder.style.width=a+"px",t.placeholder.style.height=o+"px"),e.style.width=a+"px",e.style.height=o+"px"}},Ln=function(){if(yn.length){for(var e,t=0;t<yn.length;t++)e=yn[t],e.holder.index===e.index&&Nn(e.index,e.item,e.baseDiv,e.img,!1,e.clearPlaceholder);yn=[]}};It("Controller",{publicMethods:{lazyLoadItem:function(e){e=Lt(e);var t=fn(e);t&&(!t.loaded&&!t.loading||R)&&(Mt("gettingData",e,t),t.src&&Dn(t))},initController:function(){S.extend(y,In,!0),T.items=mn=i,fn=T.getItemAt,hn=y.getNumItemsFn,_n=y.loop,3>hn()&&(y.loop=!1),Nt("beforeChange",function(e){var n,r=y.preload,l=null===e||0<=e,i=o(r[0],hn()),a=o(r[1],hn());for(n=1;n<=(l?a:i);n++)T.lazyLoadItem(x+n);for(n=1;n<=(l?i:a);n++)T.lazyLoadItem(x-n)}),Nt("initialLayout",function(){T.currItem.initialLayout=y.getThumbBoundsFn&&y.getThumbBoundsFn(x)}),Nt("mainScrollAnimComplete",Ln),Nt("initialZoomInEnd",Ln),Nt("destroy",function(){for(var e,t=0;t<mn.length;t++)e=mn[t],e.container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);yn=null})},getItemAt:function(t){return 0<=t&&void 0!==mn[t]&&mn[t]},allowProgressiveImg:function(){return y.forceProgressiveLoading||!U||y.mouseUsed||1200<screen.width},setContent:function(t,e){y.loop&&(e=Lt(e));var i=T.getItemAt(t.index);i&&(i.container=null);var r,d=T.getItemAt(e);if(!d)return void(t.el.innerHTML="");Mt("gettingData",e,d),t.index=e,t.item=d;var c=d.container=S.createEl("pswp__zoom-wrap");if(!d.src&&d.html&&(d.html.tagName?c.appendChild(d.html):c.innerHTML=d.html),On(d),Fn(d,vt),!d.src||d.loadError||d.loaded)d.src&&!d.loadError&&(r=S.createEl("pswp__img","img"),r.style.opacity=1,r.src=d.src,An(d,r),Nn(e,d,c,r,!0));else{if(d.loadComplete=function(n){if(l){if(t&&t.index===e){if(On(n,
1!0))return n.loadComplete=n.img=null,Fn(n,vt),Yt(n),void(t.index===x&&T.updateCurrZoomItem());n.imageAppended?!gn&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):q.transform&&(_e||gn)?yn.push({item:n,baseDiv:c,img:n.img,index:e,holder:t,clearPlaceholder:!0}):Nn(e,n,c,n.img,_e||gn,!0)}n.loadComplete=null,n.img=null,Mt("imageLoadComplete",e,n)}},S.features.transform){var s="pswp__img pswp__img--placeholder";s+=d.msrc?"":" pswp__img--placeholder--blank";var m=S.createEl(s,d.msrc?"img":"");d.msrc&&(m.src=d.msrc),An(d,m),c.appendChild(m),d.placeholder=m}d.loading||Dn(d),T.allowProgressiveImg()&&(!un&&q.transform?yn.push({item:d,baseDiv:c,img:d.img,index:e,holder:t}):Nn(e,d,c,d.img,!0,!0))}un||e!==x?Yt(d):(fe=c.style,Sn(d,r||d.img)),t.el.innerHTML="",t.el.appendChild(c)},cleanSlide:function(t){t.img&&(t.img.onload=t.img.onerror=null),t.loaded=t.loading=t.img=t.imageAppended=!1}}});var Rn,Bn={},Un=function(t,e,i){var n=document.createEvent("CustomEvent"),r={origEvent:t,target:t.target,releasePoint:e,pointerType:i||"touch"};n.initCustomEvent("pswpTap",!0,!0,r),t.target.dispatchEvent(n)};It("Tap",{publicMethods:{initTap:function(){Nt("firstTouchStart",T.onTapStart),Nt("touchRelease",T.onTapRelease),Nt("destroy",function(){Bn={},Rn=null})},onTapStart:function(t){1<t.length&&(clearTimeout(Rn),Rn=null)},onTapRelease:function(o,t){if(t&&!se&&!re&&!mi){var e=t;if(Rn&&(clearTimeout(Rn),Rn=null,ln(e,Bn)))return void Mt("doubleTap",e);if("mouse"===t.type)return void Un(o,t,"mouse");var i=o.target.tagName.toUpperCase();if("BUTTON"===i||S.hasClass(o.target,"pswp__single-tap"))return void Un(o,t);qt(Bn,e),Rn=setTimeout(function(){Un(o,t),Rn=null},300)}}}});var Xn;It("DesktopZoom",{publicMethods:{initDesktopZoom:function(){V||(U?Nt("mouseUsed",function(){T.setupDesktopZoom()}):T.setupDesktopZoom(!0))},setupDesktopZoom:function(e){Xn={};var i="wheel mousewheel DOMMouseScroll";Nt("bindEvents",function(){S.bind(g,"wheel mousewheel DOMMouseScroll",T.handleMouseWheel)}),Nt("unbindEvents",function(){Xn&&S.unbind(g,"wheel mousewheel DOMMouseScroll",T.handleMouseWheel)}),T.mouseZoomedIn=!1;var n,a=function(){T.mouseZoomedIn&&(S.removeClass(g,"pswp--zoomed-in"),T.mouseZoomedIn=!1),1>O?S.addClass(g,"pswp--zoom-allowed"):S.removeClass(g,"pswp--zoom-allowed"),o()},o=function(){n&&(S.removeClass(g,"pswp--dragging"),n=!1)};Nt("resize",a),Nt("afterChange",a),Nt("pointerDown",function(){T.mouseZoomedIn&&(n=!0,S.addClass(g,"pswp--dragging"))}),Nt("pointerUp",o),e||a()},handleMouseWheel:function(t){if(O<=T.currItem.fitRatio)return y.modal&&(!y.closeOnScroll||mi||oe?t.preventDefault():B&&2<_(t.deltaY)&&(h=!0,T.close())),!0;if(t.stopPropagation(),Xn.x=0,"deltaX"in t)1===t.deltaMode?(Xn.x=18*t.deltaX,Xn.y=18*t.deltaY):(Xn.x=t.deltaX,Xn.y=t.deltaY);else if("wheelDelta"in t)t.wheelDeltaX&&(Xn.x=-.16*t.wheelDeltaX),Xn.y=t.wheelDeltaY?-.16*t.wheelDeltaY:-.16*t.wheelDelta;else{if(!("detail"in t))return;Xn.y=t.detail}oi(O,!0);var e=xt.x-Xn.x,i=xt.y-Xn.y;(y.modal||e<=ge.min.x&&e>=ge.max.x&&i<=ge.min.y&&i>=ge.max.y)&&t.preventDefault(),T.panTo(e,i)},toggleDesktopZoom:function(e){e=e||{x:vt.x/2+Pt.x,y:vt.y/2+Pt.y};var i=y.getDoubleTapZoom(!0,T.currItem),n=O===i;T.mouseZoomedIn=!n,T.zoomTo(n?T.currItem.initialZoomLevel:i,e,333),S[(n?"remove":"add")+"Class"](g,"pswp--zoomed-in")}}}),S.extend(T,{shout:Mt,listen:Nt,viewportSize:vt,options:y,isMainScrollAnimating:function(){return _e},getZoomLevel:function(){return O},getCurrentIndex:function(){return x},isDragging:function(){return oe},isZooming:function(){return ce},setScrollOffset:function(t,e){Pt.x=t,G=Pt.y=e,Mt("updateScrollOffset",Pt)},applyZoomPan:function(o,t,e,i){xt.x=t,xt.y=e,O=o,Ut(i)},init:function(){if(!l&&!s){var i;T.framework=S,T.template=g,T.bg=S.getChildByClass(g,"pswp__bg"),H=g.className,l=!0,q=S.detectFeatures(),W=q.raf,Y=q.caf,B=q.transform,V=q.oldIE,T.scrollWrap=S.getChildByClass(g,"pswp__scroll-wrap"),T.container=S.getChildByClass(T.scrollWrap,"pswp__container"),c=T.container.style,T.itemHolders=I=[{el:T.container.children[0],wrap:0,index:-1},{el:T.container.children[1],wrap:0,index:-1},{el:T.container.children[2],wrap:0,index:-1}],I[0].el.style.display=I[2].el.style.display="none",si(),E={resize:T.updateSize,orientationchange:function(){clearTimeout(Q),Q=setTimeout(function(){vt.x!==T.scrollWrap.clientWidth&&T.updateSize()},500)},scroll:di,keydown:li,click:pi};var o=q.isOldIOSPhone||q.isOldAndroid||q.isMobileOpera;for(q.animationName&&q.transform&&!o||(y.showAnimationDuration=y.hideAnimationDuration=0),i=0;i<Dt.length;i++)T["init"+Dt[i]]();if(e){var r=T.ui=new e(T,S);r.init()}Mt("firstUpdate"),x=x||y.index||0,(isNaN(x)||0>x||x>=hn())&&(x=0),T.currItem=fn(x),(q.isOldIOSPhone||q.isOldAndroid)&&(St=!1),g.setAttribute("aria-hidden","false"),y.modal&&(St?g.style.position="fixed":(g.style.position="absolute",g.style.top=S.get
1ScrollY()+"px")),void 0===G&&(Mt("initialLayout"),G=Z=S.getScrollY());var n="pswp--open ";for(y.mainClass&&(n+=y.mainClass+" "),y.showHideOpacity&&(n+="pswp--animate_opacity "),n+=U?"pswp--touch":"pswp--notouch",n+=q.animationName?" pswp--css_animation":"",n+=q.svg?" pswp--svg":"",S.addClass(g,n),T.updateSize(),u=-1,wt=null,i=0;3>i;i++)Ht((i+u)*Tt.x,I[i].el.style);V||S.bind(T.scrollWrap,C,T),Nt("initialZoomInEnd",function(){T.setContent(I[0],x-1),T.setContent(I[2],x+1),I[0].el.style.display=I[2].el.style.display="block",y.focus&&g.focus(),ei()}),T.setContent(I[1],x),T.updateCurrItem(),Mt("afterInit"),St||(L=setInterval(function(){mi||oe||ce||O!==T.currItem.initialZoomLevel||T.updateSize()},1e3)),S.addClass(g,"pswp--visible")}},close:function(){l&&(l=!1,s=!0,Mt("close"),ti(),Sn(T.currItem,null,!0,T.destroy))},destroy:function(){Mt("destroy"),Hi&&clearTimeout(Hi),g.setAttribute("aria-hidden","true"),g.className=H,L&&clearInterval(L),S.unbind(T.scrollWrap,C,T),S.unbind(window,"scroll",T),Mi(),gi(),zt=null},panTo:function(e,t,i){i||(e>ge.min.x?e=ge.min.x:e<ge.max.x&&(e=ge.max.x),t>ge.min.y?t=ge.min.y:t<ge.max.y&&(t=ge.max.y)),xt.x=e,xt.y=t,Ut()},handleEvent:function(t){t=t||window.event,E[t.type]&&E[t.type](t)},goTo:function(e){e=Lt(e);var t=e-x;wt=t,x=e,T.currItem=fn(x),bt-=t,Zt(Tt.x*bt),gi(),_e=!1,T.updateCurrItem()},next:function(){T.goTo(x+1)},prev:function(){T.goTo(x-1)},updateCurrZoomItem:function(t){if(t&&Mt("beforeChange",0),I[1].el.children.length){var e=I[1].el.children[0];fe=S.hasClass(e,"pswp__zoom-wrap")?e.style:null}else fe=null;ge=T.currItem.bounds,A=O=T.currItem.initialZoomLevel,xt.x=ge.center.x,xt.y=ge.center.y,t&&Mt("afterChange")},invalidateCurrItems:function(){R=!0;for(var t=0;3>t;t++)I[t].item&&(I[t].item.needsUpdate=!0)},updateCurrItem:function(i){if(0!==wt){var t,o=_(wt);if(!(i&&2>o)){T.currItem=fn(x),Et=!1,Mt("beforeChange",wt),3<=o&&(u+=wt+(0<wt?-3:3),o=3);for(var a=0;a<o;a++)0<wt?(t=I.shift(),I[2]=t,u++,Ht((u+2)*Tt.x,t.el.style),T.setContent(t,x-o+a+1+1)):(t=I.pop(),I.unshift(t),u--,Ht(u*Tt.x,t.el.style),T.setContent(t,x+o-a-1-1));if(fe&&1===_(wt)){var s=fn(n);s.initialZoomLevel!==O&&(Fn(s,vt),An(s),Yt(s))}wt=0,T.updateCurrZoomItem(),n=x,Mt("afterChange")}}},updateSize:function(e){if(!St&&y.modal){var i=S.getScrollY();if(G!==i&&(g.style.top=i+"px",G=i),!e&&Ot.x===window.innerWidth&&Ot.y===window.innerHeight)return;Ot.x=window.innerWidth,Ot.y=window.innerHeight,g.style.height=Ot.y+"px"}if(vt.x=T.scrollWrap.clientWidth,vt.y=T.scrollWrap.clientHeight,di(),Tt.x=vt.x+d(vt.x*y.spacing),Tt.y=vt.y,Zt(Tt.x*bt),Mt("beforeResize"),void 0!==u){for(var n,o,l,p=0;3>p;p++)n=I[p],Ht((p+u)*Tt.x,n.el.style),l=x+p-1,y.loop&&2<hn()&&(l=Lt(l)),o=fn(l),o&&(R||o.needsUpdate||!o.bounds)?(T.cleanSlide(o),T.setContent(n,l),1===p&&(T.currItem=o,T.updateCurrZoomItem(!0)),o.needsUpdate=!1):-1===n.index&&0<=l&&T.setContent(n,l),o&&o.container&&(Fn(o,vt),An(o),Yt(o));R=!1}A=O=T.currItem.initialZoomLevel,ge=T.currItem.bounds,ge&&(xt.x=ge.center.x,xt.y=ge.center.y,Ut(!0)),Mt("resize")},zoomTo:function(o,r,a,s,l){r&&(A=O,Fi.x=_(r.x)-xt.x,Fi.y=_(r.y)-xt.y,qt(_t,xt));var d=oi(o,!1),p={};ni("x",d,p,o),ni("y",d,p,o);var t=O,e={x:xt.x,y:xt.y};$t(p);var i=function(i){1===i?(O=o,xt.x=p.x,xt.y=p.y):(O=(o-t)*i+t,xt.x=(p.x-e.x)*i+e.x,xt.y=(p.y-e.y)*i+e.y),l&&l(i),Ut(1===i)};a?fi("customZoomTo",0,1,a,s||S.easing.sine.inOut,i):i(1)}})};return e}),function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.Rellax=e()}(this,function(){var o=Math.round,t=function(e,n){"use strict";var k=Object.create(t.prototype),r=0,x=0,g=[],c=!1,m=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(t){setTimeout(t,1e3/60)},f=window.transformProp||function(){var t=document.createElement("div");if(null==t.style.transform){var e=["Webkit","Moz","ms"];for(var i in e)if(void 0!==t.style[e[i]+"Transform"])return e[i]+"Transform"}return"transform"}(),y=function(t,e,i){return t<=e?e:t>=i?i:t};k.options={speed:-2,center:!1,round:!0,callback:function(){}}
1,n&&Object.keys(n).forEach(function(t){k.options[t]=n[t]}),k.options.speed=y(k.options.speed,-10,10),e||(e=".rellax");var a=document.querySelectorAll(e);if(!(0<a.length))throw new Error("The elements you're trying to select don't exist.");k.elems=a;var h=function(){x=window.innerHeight,l();for(var e,t=0;t<k.elems.length;t++)e=s(k.elems[t]),g.push(e);window.addEventListener("resize",function(){p()}),d(),p()},s=function(t){var e=t.getAttribute("data-rellax-percentage"),i=t.getAttribute("data-rellax-speed"),o=t.getAttribute("data-rellax-zindex")||0,r=e||k.options.center?window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop:0,a=r+t.getBoundingClientRect().top,s=t.clientHeight||t.offsetHeight||t.scrollHeight,l=e?e:(r-a+x)/(s+x);k.options.center&&(l=.5);var p=i?y(i,-10,10):k.options.speed;(e||k.options.center)&&(p=y(i||k.options.speed,-5,5));var u=v(l,p),g=t.style.cssText,m="";if(0<=g.indexOf("transform")){var b=g.indexOf("transform"),f=g.slice(b),h=f.indexOf(";");m=h?" "+f.slice(11,h).replace(/\s/g,""):" "+f.slice(11).replace(/\s/g,"")}return{base:u,top:a,height:s,speed:p,style:g,transform:m,zindex:o}},l=function(){var t=r;return r=void 0===window.pageYOffset?(document.documentElement||document.body.parentNode||document.body).scrollTop:window.pageYOffset,t!=r},v=function(t,e){var i=e*(100*(1-t));return k.options.round?o(i):o(100*i)/100},d=function(){l()&&!1==c&&p(),m(d)},p=function(){for(var e=0;e<k.elems.length;e++){var t=(r-g[e].top+x)/(g[e].height+x),o=v(t,g[e].speed)-g[e].base,a=g[e].zindex,l="translate3d(0,"+o+"px,"+a+"px) "+g[e].transform;k.elems[e].style[f]=l}k.options.callback(o)};return k.destroy=function(){for(var t=0;t<k.elems.length;t++)k.elems[t].style.cssText=g[t].style;c=!0},h(),k};return t}),function(){"use strict";function e(t){var e=["MSIE ","Trident/","Edge/"];return new RegExp(e.join("|")).test(t)}function t(){function i(t,e){this.scrollLeft=t,this.scrollTop=e}function n(t){return .5*(1-Math.cos(Math.PI*t))}function l(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(i,e){return"Y"===e?i.clientHeight+p<i.scrollHeight:"X"===e?i.clientWidth+p<i.scrollWidth:void 0}function c(t,e){var n=g.getComputedStyle(t,null)["overflow"+e];return"auto"===n||"scroll"===n}function t(n){var e=d(n,"Y")&&c(n,"Y"),t=d(n,"X")&&c(n,"X");return e||t}function o(n){var o;do n=n.parentNode,o=n===_.body;while(!1===o&&!1===t(n));return o=null,n}function f(i){var e,o,l,c=h(),p=(c-i.startTime)/s;p=1<p?1:p,e=n(p),o=i.startX+(i.x-i.startX)*e,l=i.startY+(i.y-i.startY)*e,i.method.call(i.scrollable,o,l),o===i.x&&l===i.y||g.requestAnimationFrame(f.bind(g,i))}function r(n,r,o){var e,p,c,u,y=h();n===_.body?(e=g,p=g.scrollX||g.pageXOffset,c=g.scrollY||g.pageYOffset,u=m.scroll):(e=n,p=n.scrollLeft,c=n.scrollTop,u=i),f({scrollable:e,method:u,startTime:y,startX:p,startY:c,x:r,y:o})}if(!("scrollBehavior"in _.documentElement.style&&!0!==g.__forceSmoothScrollPolyfill__)){var a=g.HTMLElement||g.Element,s=468,p=e(g.navigator.userAgent)?1:0,m={scroll:g.scroll||g.scrollTo,scrollBy:g.scrollBy,elementScroll:a.prototype.scroll||i,scrollIntoView:a.prototype.scrollIntoView},h=g.performance&&g.performance.now?g.performance.now.bind(g.performance):Date.now;g.scroll=g.scrollTo=function(){if(void 0!==arguments[0])return!0===l(arguments[0])?void m.scroll.call(g,void 0===arguments[0].left?"object"==typeof arguments[0]?g.scrollX||g.pageXOffset:arguments[0]:arguments[0].left,void 0===arguments[0].top?void 0===arguments[1]?g.scrollY||g.pageYOffset:arguments[1]:arguments[0].top):void r.call(g,_.body,void 0===arguments[0].left?g.scrollX||g.pageXOffset:~~arguments[0].left,void 0===arguments[0].top?g.scrollY||g.pageYOffset:~~arguments[0].top)},g.scrollBy=function(){if(void 0!==arguments[0])return l(arguments[0])?void m.scrollBy.call(g,void 0===arguments[0].left?"object"==typeof arguments[0]?0:arguments[0]:arguments[0].left,void 0===arguments[0].top?void 0===arguments[1]?0:arguments[1]:arguments[0].top):void r.call(g,_.body,~~arguments[0].left+(g.scrollX||g.pageXOffset),~~arguments[0].top+(g.scrollY||g.pageYOffset))},a.prototype.scroll=a.prototype.scrollTo=function(){if(void 0!==arguments[0]){if
1(!0===l(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value couldn't be converted");return void m.elementScroll.call(this,void 0===arguments[0].left?"object"==typeof arguments[0]?this.scrollLeft:~~arguments[0]:~~arguments[0].left,void 0===arguments[0].top?void 0===arguments[1]?this.scrollTop:~~arguments[1]:~~arguments[0].top)}var e=arguments[0].left,t=arguments[0].top;r.call(this,this,"undefined"==typeof e?this.scrollLeft:~~e,"undefined"==typeof t?this.scrollTop:~~t)}},a.prototype.scrollBy=function(){if(void 0!==arguments[0])return!0===l(arguments[0])?void m.elementScroll.call(this,void 0===arguments[0].left?~~arguments[0]+this.scrollLeft:~~arguments[0].left+this.scrollLeft,void 0===arguments[0].top?~~arguments[1]+this.scrollTop:~~arguments[0].top+this.scrollTop):void this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})},a.prototype.scrollIntoView=function(){if(!0===l(arguments[0]))return void m.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);var t=o(this),i=t.getBoundingClientRect(),n=this.getBoundingClientRect();t===_.body?g.scrollBy({left:n.left,top:n.top,behavior:"smooth"}):(r.call(this,t,t.scrollLeft+n.left-i.left,t.scrollTop+n.top-i.top),"fixed"!==g.getComputedStyle(t).position&&g.scrollBy({left:i.left,top:i.top,behavior:"smooth"}))}}}var g=window,_=document;"object"==typeof exports?module.exports={polyfill:t}:t()}(),function(y,x){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}function g(t){return parseFloat(t)||0}function t(e){for(var t=0;e;)t+=e.offsetTop,e=e.offsetParent;return t}function r(){function n(){y.pageXOffset==i.left?y.pageYOffset!=i.top&&(i.top=y.pageYOffset,i.left=y.pageXOffset,a.forEach(function(t){return t._recalcPosition()})):(i.top=y.pageYOffset,i.left=y.pageXOffset,p.refreshAll())}function s(){c=setInterval(function(){a.forEach(function(t){return t._fastCheck()})},500)}function o(){clearInterval(c)}n(),y.addEventListener("scroll",n),y.addEventListener("resize",p.refreshAll),y.addEventListener("orientationchange",p.refreshAll);var t,l,c=void 0;"hidden"in x?(t="hidden",l="visibilitychange"):"webkitHidden"in x&&(t="webkitHidden",l="webkitvisibilitychange"),l?(x[t]||s(),x.addEventListener(l,function(){x[t]?o():s()})):s()}var s=Math.abs,e=function(){function o(t,e){for(var i,o=0;o<e.length;o++)i=e[o],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}return function(t,e,i){return e&&o(t.prototype,e),i&&o(t,i),t}}(),f=!1;y.getComputedStyle?!function(){var t=x.createElement("div");["","-webkit-","-moz-","-ms-"].some(function(e){try{t.style.position=e+"sticky"}catch(t){}return""!=t.style.position})&&(f=!0)}():f=!0;var l="undefined"!=typeof ShadowRoot,i={top:null,left:null},a=[],c=function(){function r(t){if(o(this,r),!(t instanceof HTMLElement))throw new Error("First argument must be HTMLElement");if(a.some(function(e){return e._node===t}))throw new Error("Stickyfill is already applied to this node");this._node=t,this._stickyMode=null,this._active=!1,a.push(this),this.refresh()}return e(r,[{key:"refresh",value:function(){if(!f&&!this._removed){this._active&&this._deactivate();var a=this._node,e=getComputedStyle(a),d={top:e.top,display:e.display,marginTop:e.marginTop,marginBottom:e.marginBottom,marginLeft:e.marginLeft,marginRight:e.marginRight,cssFloat:e.cssFloat};if(!isNaN(parseFloat(d.top))&&"table-cell"!=d.display&&"none"!=d.display){this._active=!0;var h=a.parentNode,i=l&&h instanceof ShadowRoot?h.host:h,p=a.getBoundingClientRect(),c=i.getBoundingClientRect(),o=getComputedStyle(i);this._parent={node:i,styles:{position:i.style.position},offsetHeight:i.offsetHeight},this._offsetToWindow={left:p.left,right:x.documentElement.clientWidth-p.right},this._offsetToParent={top:p.top-c.top-g(o.borderTopWidth),left:p.left-c.left-g(o.borderLeftWidth),right:-p.right+c.right-g(o.borderRightWidth)},this._styles={position:a.style.position,top:a.style.top,bottom:a.style.bottom,left:a.style.left,right:a.style.right,width:a.style.width,marginTop:a.style.marginTop,marginLeft:a.style.marginLeft,marginRight:a.style.marginRight};var n=g(d.top);this._limits={start:p.top+y.pageYOffset-n,end:c.top+y.pageYOffset+i.offsetHeight-g(o.borderBottomWidth)-a.offsetHeight-n-g(d.marginBottom)};var r=o.position;"absolute"!=r&&"relative"!=r&&(i.style.position="relative"),this._recalcPosition();var s=this._clone={};s.node=x.createElement("div"),u(s.node.style,{width:p.right-p.left+"px",height:p.bottom-p.top+"px",marginTop:d.marginTop,marginBottom:
1d.marginBottom,marginLeft:d.marginLeft,marginRight:d.marginRight,cssFloat:d.cssFloat,padding:0,border:0,borderSpacing:0,fontSize:"1em",position:"static"}),h.insertBefore(s.node,a),s.docOffsetTop=t(s.node)}}}},{key:"_recalcPosition",value:function(){if(this._active&&!this._removed){var t=i.top<=this._limits.start?"start":i.top>=this._limits.end?"end":"middle";this._stickyMode!=t&&("start"===t?u(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:this._offsetToParent.top+"px",bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0}):"middle"===t?u(this._node.style,{position:"fixed",left:this._offsetToWindow.left+"px",right:this._offsetToWindow.right+"px",top:this._styles.top,bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0}):"end"===t?u(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:"auto",bottom:0,width:"auto",marginLeft:0,marginRight:0}):void 0,this._stickyMode=t)}}},{key:"_fastCheck",value:function(){this._active&&!this._removed&&(1<s(t(this._clone.node)-this._clone.docOffsetTop)||1<s(this._parent.node.offsetHeight-this._parent.offsetHeight))&&this.refresh()}},{key:"_deactivate",value:function(){var i=this;this._active&&!this._removed&&(this._clone.node.parentNode.removeChild(this._clone.node),delete this._clone,u(this._node.style,this._styles),delete this._styles,a.some(function(t){return t!==i&&t._parent&&t._parent.node===i._parent.node})||u(this._parent.node.style,this._parent.styles),delete this._parent,this._stickyMode=null,this._active=!1,delete this._offsetToWindow,delete this._offsetToParent,delete this._limits)}},{key:"remove",value:function(){var t=this;this._deactivate(),a.some(function(e,i){if(e._node===t._node)return a.splice(i,1),!0}),this._removed=!0}}]),r}(),p={stickies:a,Sticky:c,addOne:function(i){if(!(i instanceof HTMLElement)){if(!i.length||!i[0])return;i=i[0]}for(var n=0;n<a.length;n++)if(a[n]._node===i)return a[n];return new c(i)},add:function(r){if(r instanceof HTMLElement&&(r=[r]),r.length){for(var s=[],e=function(i){var e=r[i];return e instanceof HTMLElement?a.some(function(t){if(t._node===e)return s.push(t),!0})?"continue":void s.push(new c(e)):(s.push(void 0),"continue")},t=0;t<r.length;t++)e(t);return s}},refreshAll:function(){a.forEach(function(t){return t.refresh()})},removeOne:function(t){if(!(t instanceof HTMLElement)){if(!t.length||!t[0])return;t=t[0]}a.some(function(e){if(e._node===t)return e.remove(),!0})},remove:function(n){if(n instanceof HTMLElement&&(n=[n]),n.length)for(var t=function(e){var t=n[e];a.some(function(i){if(i._node===t)return i.remove(),!0})},i=0;i<n.length;i++)t(i)},removeAll:function(){for(;a.length;)a[0].remove()}};f||r(),"undefined"!=typeof module&&module.exports?module.exports=p:y.Stickyfill=p}(window,document),function(h,t){"use strict";var e=Math.min,n=Math.round,d={},i=h.document,a=h.GreenSockGlobals=h.GreenSockGlobals||h;if(!a.TweenLite){var o,s,l,D,z,R=function(t){var i,r=t.split("."),n=a;for(i=0;i<r.length;i++)n[r[i]]=n=n[r[i]]||{};return n},u=R("com.greensock"),L=1e-10,x=function(i){var e,n=[],r=i.length;for(e=0;e!==r;n.push(i[e++]));return n},_=function(){},f=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),b={},T=function(n,s,l,o){this.sc=b[n]?b[n].sc:[],b[n]=this,this.gsClass=null,this.func=l;var i=[];this.check=function(e){for(var r,c,m,u,_=s.length,y=_;-1<--_;)(r=b[s[_]]||new T(s[_],[])).gsClass?(i[_]=r.gsClass,y--):e&&r.sc.push(this);if(0===y&&l){if(c=("com.greensock."+n).split("."),m=c.pop(),u=R(c.join("."))[m]=this.gsClass=l.apply(l,i),o)if(a[m]=d[m]=u,!("undefined"!=typeof module&&module.exports))"function"==typeof define&&define.amd&&define((h.GreenSockAMDPath?h.GreenSockAMDPath+"/":"")+n.split(".").pop(),[],function(){return u});else if(n===t)for(_ in module.exports=d[t]=u,d)u[_]=d[_];else d[t]&&(d[t][m]=u);for(_=0;_<this.sc.length;_++)this.sc[_].check()}},this.check(!0)},w=h._gsDefine=function(o,t,e,i){return new T(o,t,e,i)},k=u._class=function(t,e,o){return e=e||function(){},w(t,[],function(){return e},o),e};w.globals=a;var S=[0,0,1,1],C=k("easing.Ease",function(o,t,e,i){this._func=o,this._type=e||0,this._power=i||0,this._params=t?S.concat(t):S},!0),E=C.map={},O=C.register=function(t,r,n,e){for(var i,a,p,c,h=r.split(","),m=h.length,_=(n||"easeIn,easeOut,easeInOut").split(",");-1<--m;)for(a=h[m],i=e?k("easing."+a,null,!0):u.easing[a]||{},p=_.length;-1<--p;)c=_[p],E[a+"."+c]=E[c+a]=i[c]=t.getRatio?t:t[c]||new t};
1for(l=C.prototype,l._calcEnd=!1,l.getRatio=function(o){if(this._func)return this._params[0]=o,this._func.apply(null,this._params);var t=this._type,e=this._power,i=1===t?1-o:2===t?o:.5>o?2*o:2*(1-o);return 1===e?i*=i:2===e?i*=i*i:3===e?i*=i*i*i:4===e&&(i*=i*i*i*i),1===t?1-i:2===t?i:.5>o?i/2:1-i/2},o=["Linear","Quad","Cubic","Quart","Quint,Strong"],s=o.length;-1<--s;)l=o[s]+",Power"+s,O(new C(null,null,1,s),l,"easeOut",!0),O(new C(null,null,2,s),l,"easeIn"+(0===s?",easeNone":"")),O(new C(null,null,3,s),l,"easeInOut");E.linear=u.easing.Linear.easeIn,E.swing=u.easing.Quad.easeInOut;var y=k("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});l=y.prototype,l.addEventListener=function(t,e,i,n,o){o=o||0;var a,s,l=this._listeners[t],p=0;for(this!==D||z||D.wake(),null==l&&(this._listeners[t]=l=[]),s=l.length;-1<--s;)a=l[s],a.c===e&&a.s===i?l.splice(s,1):0===p&&a.pr<o&&(p=s+1);l.splice(p,0,{c:e,s:i,up:n,pr:o})},l.removeEventListener=function(t,e){var i,r=this._listeners[t];if(r)for(i=r.length;-1<--i;)if(r[i].c===e)return void r.splice(i,1)},l.dispatchEvent=function(t){var e,n,o,r=this._listeners[t];if(r)for(e=r.length,1<e&&(r=r.slice(0)),n=this._eventTarget;-1<--e;)o=r[e],o&&(o.up?o.c.call(o.s||n,{type:t,target:n}):o.c.call(o.s||n))};var c=h.requestAnimationFrame,I=h.cancelAnimationFrame,M=Date.now||function(){return new Date().getTime()},X=M();for(o=["ms","moz","webkit","o"],s=o.length;-1<--s&&!c;)c=h[o[s]+"RequestAnimationFrame"],I=h[o[s]+"CancelAnimationFrame"]||h[o[s]+"CancelRequestAnimationFrame"];k("Ticker",function(n,o){var s,l,u,g,f,v=this,b=M(),r=!1!==o&&c&&"auto",P=500,S=33,a="tick",C=function(e){var i,n,o=M()-X;o>P&&(b+=o-S),X+=o,v.time=(X-b)/1e3,i=v.time-f,(!s||0<i||!0===e)&&(v.frame++,f+=i+(i>=g?.004:g-i),n=!0),!0!==e&&(u=l(C)),n&&v.dispatchEvent("tick")};y.call(v),v.time=v.frame=0,v.tick=function(){C(!0)},v.lagSmoothing=function(n,t){return arguments.length?(P=n||1e10,void(S=e(t,P,0))):1e10>P},v.sleep=function(){null!=u&&(r&&I?I(u):clearTimeout(u),l=_,u=null,v===D&&(z=!1))},v.wake=function(e){null===u?e?b+=-X+(X=M()):10<v.frame&&(X=M()-P+5):v.sleep(),l=0===s?_:r&&c?c:function(t){return setTimeout(t,0|1e3*(f-v.time)+1)},v===D&&(z=!0),C(2)},v.fps=function(t){return arguments.length?(s=t,g=1/(s||60),f=this.time+g,void v.wake()):s},v.useRAF=function(e){return arguments.length?(v.sleep(),r=e,void v.fps(s)):r},v.fps(n),setTimeout(function(){"auto"===r&&5>v.frame&&"hidden"!==i.visibilityState&&v.useRAF(!1)},1500)}),l=u.Ticker.prototype=new u.events.EventDispatcher,l.constructor=u.Ticker;var B=k("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=+e.delay||0,this._timeScale=1,this._active=!0===e.immediateRender,this.data=e.data,this._reversed=!0===e.reversed,ae){z||D.wake();var n=this.vars.useFrames?le:ae;n.add(this,n._time),this.vars.paused&&this.paused(!0)}});D=B.ticker=new u.Ticker,l=B.prototype,l._dirty=l._gc=l._initted=l._paused=!1,l._totalTime=l._time=0,l._rawPrevTime=-1,l._next=l._last=l._onUpdate=l._timeline=l.timeline=null,l._paused=!1;var U=function(){z&&2e3<M()-X&&("hidden"!==i.visibilityState||!D.lagSmoothing())&&D.wake();var e=setTimeout(U,2e3);e.unref&&e.unref()};U(),l.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},l.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},l.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},l.seek=function(t,e){return this.totalTime(+t,!1!==e)},l.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},l.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},l.render=function(t,e,i){},l.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},l.isActive=function(){var t,i=this._timeline,o=this._startTime;return!i||!this._gc&&!this._paused&&i.isActive()&&(t=i.rawTime(!0))>=o&&t<o+this.totalDuration()/this._timeScale-1e-7},l._enabled=function(t,e){return z||D.wake(),this._gc=!t,this._active=this.isActive(),!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},l._kill=function(t,e){return this._enabled(!1,!1)},l.kill=function(t,e){return this._kill(t,e),this},l._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},l._swapSelfInParams=function(t){for(var e=t.length,n=t.concat();-1<--e;)"{self}"===t[e]&&(n[e]=this);return n}
vendor: 5,079 bytes, line 1
1,l._callback=function(e){var i=this.vars,n=i[e],r=i[e+"Params"],a=i[e+"Scope"]||i.callbackScope||this,o=r?r.length:0;0===o?n.call(a):1===o?n.call(a,r[0]):2===o?n.call(a,r[0],r[1]):n.apply(a,r)},l.eventCallback=function(t,e,i,n){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=f(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,r[t+"Scope"]=n),"onUpdate"===t&&(this._onUpdate=e)}return this},l.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},l.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},l.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},l.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},l.totalTime=function(t,a,n){if(z||D.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!n&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var i=this._totalDuration,o=this._timeline;if(t>i&&!n&&(t=i),this._startTime=(this._paused?this._pauseTime:o._time)-(this._reversed?i-t:t)/this._timeScale,o._dirty||this._uncache(!1),o._timeline)for(;o._timeline;)o._timeline._time!==(o._startTime+o._totalTime)/o._timeScale&&o.totalTime(o._totalTime,!0),o=o._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(Y.length&&me(),this.render(t,a,!1),Y.length&&me())}return this},l.progress=l.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},l.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},l.endTime=function(t){return this._startTime+(0==t?this.duration():this.totalDuration())/this._timeScale},l.timeScale=function(e){if(!arguments.length)return this._timeScale;var t,i;for(e=e||L,this._timeline&&this._timeline.smoothChildTiming&&(t=this._pauseTime,i=t||0===t?t:this._timeline.totalTime(),this._startTime=i-(i-this._startTime)*this._timeScale/e),this._timeScale=e,i=this.timeline;i&&i.timeline;)i._dirty=!0,i.totalDuration(),i=i.timeline;return this},l.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},l.paused=function(t){if(!arguments.length)return this._paused;var e,o,a=this._timeline;return t!=this._paused&&a&&(z||t||D.wake(),e=a.rawTime(),o=e-this._pauseTime,!t&&a.smoothChildTiming&&(this._startTime+=o,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==o&&this._initted&&this.duration()&&(e=a.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var W=k("core.SimpleTimeline",function(t){B.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});l=W.prototype=new B,l.constructor=W,l.kill()._gc=!1,l._first=l._last=l._recent=null,l._sortChildren=!1,l.add=l.insert=function(t,e,i,n){var r,s;if(t._startTime=+(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),r=this._last,this._sortChildren)for(s=t._startTime;r&&r._startTime>s;)r=r._prev;return r?(t._next=r._next,r._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=r,this._recent=t,this._timeline&&this._uncache(!0),this},l._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},l.render=function(o,t,e){var i,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=o;r;)i=r._next,(r._active||o>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(o-r._startTime)*r._timeScale,t,e):r.render((o-r._startTime)*r._timeScale,t,e)),r=i},l.rawTime=function(){return z||D.wake(),this._totalTime};var G=k("TweenLite",function(n,o,a){if(B.call(this,o,a),this.render=G.prototype.render,null==n)throw"Cannot tween a null target.";this.target=n="string"==typeof n?G.selector(n)||n:n;var t,s,l,u=n.jquery||n.length&&n!==h&&n[0]&&(n[0]===h||n[0].nodeType&&n[0].style&&!n.nodeType),m=this.vars.over
1write;if(this._overwrite=m=null==m?se[G.defaultOverwrite]:"number"==typeof m?m>>0:se[m],(u||n instanceof Array||n.push&&f(n))&&"number"!=typeof n[0])for(this._targets=l=x(n),this._propLookup=[],this._siblings=[],t=0;t<l.length;t++)s=l[t],s?"string"==typeof s?(s=l[t--]=G.selector(s),"string"==typeof s&&l.splice(t+1,1)):s.length&&s!==h&&s[0]&&(s[0]===h||s[0].nodeType&&s[0].style&&!s.nodeType)?(l.splice(t--,1),this._targets=l=l.concat(x(s))):(this._siblings[t]=pe(s,this,!1),1===m&&1<this._siblings[t].length&&fe(s,this,null,1,this._siblings[t])):l.splice(t--,1);else this._propLookup={},this._siblings=pe(n,this,!1),1===m&&1<this._siblings.length&&fe(n,this,null,1,this._siblings);(this.vars.immediateRender||0===o&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-L,this.render(e(0,-this._delay)))},!0),j=function(t){return t&&t.length&&t!==h&&t[0]&&(t[0]===h||t[0].nodeType&&t[0].style&&!t.nodeType)},H=function(t,e){var i,r={};for(i in t)re[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!te[i]||te[i]&&te[i]._autoCSS)||(r[i]=t[i],delete t[i]);t.css=r};l=G.prototype=new B,l.constructor=G,l.kill()._gc=!1,l.ratio=0,l._firstPT=l._targets=l._overwrittenProps=l._startAt=null,l._notifyPluginsOfEnabled=l._lazy=!1,G.version="1.20.3",G.defaultEase=l._ease=new C(null,null,1,1),G.defaultOverwrite="auto",G.ticker=D,G.autoSleep=120,G.lagSmoothing=function(t,e){D.lagSmoothing(t,e)},G.selector=h.$||h.jQuery||function(n){var e=h.$||h.jQuery;return e?(G.selector=e,e(n)):"undefined"==typeof i?n:i.querySelectorAll?i.querySelectorAll(n):i.getElementById("#"===n.charAt(0)?n.substr(1):n)};var Y=[],V={},Q=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,q=/[\+-]=-?[\.\d]/,$=function(t){for(var e,o=this._firstPT,a=1e-6;o;)e=o.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:o.c*t+o.s,o.m?e=o.m(e,this._target||o.t):e<a&&e>-a&&!o.blob&&(e=0),o.f?o.fp?o.t[o.p](o.fp,e):o.t[o.p](e):o.t[o.p]=e,o=o._next},ee=function(t,o,d,r){var a,p,c,u,f,_,x,T=[],b=0,k="",C=0;for(T.start=t,T.end=o,t=T[0]=t+"",o=T[1]=o+"",d&&(d(T),t=T[0],o=T[1]),T.length=0,a=t.match(Q)||[],p=o.match(Q)||[],r&&(r._next=null,r.blob=1,T._firstPT=T._applyPT=r),f=p.length,u=0;u<f;u++)x=p[u],_=o.substr(b,o.indexOf(x,b)-b),k+=_||!u?_:",",b+=_.length,C?C=(C+1)%5:"rgba("===_.substr(-5)&&(C=1),x===a[u]||a.length<=u?k+=x:(k&&(T.push(k),k=""),c=parseFloat(a[u]),T.push(c),T._firstPT={_next:T._firstPT,t:T,p:T.length-1,s:c,c:("="===x.charAt(1)?parseInt(x.charAt(0)+"1",10)*parseFloat(x.substr(2)):parseFloat(x)-c)||0,f:0,m:C&&4>C?n:0}),b+=x.length;return k+=o.substr(b),k&&T.push(k),T.setRatio=$,q.test(o)&&(T.end=null),T},K=function(l,o,t,e,u,r,d,p,c){"function"==typeof e&&(e=e(c||0,l));var a,y=typeof l[o],_="function"==y?o.indexOf("set")||"function"!=typeof l["get"+o.substr(3)]?o:"get"+o.substr(3):"",g="get"===t?_?d?l[_](d):l[_]():l[o]:t,f="string"==typeof e&&"="===e.charAt(1),h={t:l,p:o,s:g,f:"function"==y,pg:0,n:u||o,m:r?"function"==typeof r?r:n:0,pr:0,c:f?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2)):parseFloat(e)-g||0};if(("number"!=typeof g||"number"!=typeof e&&!f)&&(d||isNaN(g)||!f&&isNaN(e)||"boolean"==typeof g||"boolean"==typeof e?(h.fp=d,a=ee(g,f?parseFloat(h.s)+h.c:e,p||G.defaultStringFilter,h),h={t:a,p:"setRatio",s:0,c:1,f:2,pg:0,n:u||o,pr:0,m:0}):(h.s=parseFloat(g),f||(h.c=parseFloat(e)-h.s||0))),h.c)return(h._next=this._firstPT)&&(h._next._prev=h),this._firstPT=h,h},J=G._internals={isArray:f,isSelector:j,lazyTweens:Y,blobDif:ee},te=G._plugins={},ie=J.tweenLookup={},ne=0,re=J.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1},se={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},le=B._rootFramesTimeline=new W,ae=B._rootTimeline=new W,de=30,me=J.lazyRender=function(){var e,t=Y.length;for(V={};-1<--t;)e=Y[t],e&&!1!==e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0),e._lazy=!1);Y.length=0};ae._startTime=D.time,le._startTime=D.frame,ae._active=le._active=!0,setTimeout(me,1),B._updateRoot=G.render=function(){var e,t,o;if(Y.length&&me(),ae.render((D.time-ae._startTime)*ae._timeScale,!1,!1),le.render((D.frame-le._startTime)*le._timeScale,!1,!1),Y.length&&me(),D.frame>=de){for(o in de=D.frame+(parseInt(G.autoSleep,10)||120),ie){for(t=ie[o].tweens,e=t.length;-1<--e;)t[e]._gc&&t.splice(e,1);0===t.length&&delete ie[o]}if(o=ae._first,(!o||o._paused)&&G.autoSleep&&!le._first&&1===D._listeners.tick.length){for(;o&&o._paused;)o=o._next;o||D.sleep()}}},D.addEventListener("tick",B._updateRoot);var pe=function(o,t,e){var i,r,s=o._gsTweenID;if(ie[s||(o._gsTweenID=s="t"+ne++)]||(ie[s]={target:o,tweens:[]}),t&&(i=ie[s].tweens,i[r=i.length]=t,e))for(;-1<--r;)i[r]===t&&i.splice(r,1);return ie[s].tweens}
1,ge=function(t,e,i,n){var o,a,s=t.vars.onOverwrite;return s&&(o=s(t,e,i,n)),s=G.onOverwrite,s&&(a=s(t,e,i,n)),!1!==o&&!1!==a},fe=function(e,i,n,r,o){var a,s,l,d;if(1===r||4<=r){for(d=o.length,a=0;a<d;a++)if((l=o[a])!==i)l._gc||l._kill(null,e,i)&&(s=!0);else if(5===r)break;return s}var c,h=i._startTime+L,_=[],f=0,v=0===i._duration;for(a=o.length;-1<--a;)(l=o[a])===i||l._gc||l._paused||(l._timeline===i._timeline?l._startTime<=h&&l._startTime+l.totalDuration()/l._timeScale>h&&((v||!l._initted)&&2e-10>=h-l._startTime||(_[f++]=l)):(c=c||he(i,0,v),0===he(l,c,v)&&(_[f++]=l)));for(a=f;-1<--a;)if(l=_[a],2===r&&l._kill(n,e,i)&&(s=!0),2!==r||!l._firstPT&&l._initted){if(2!==r&&!ge(l,i))continue;l._enabled(!1,!1)&&(s=!0)}return s},he=function(o,t,e){for(var i=o._timeline,r=i._timeScale,s=o._startTime;i._timeline;){if(s+=i._startTime,r*=i._timeScale,i._paused)return-100;i=i._timeline}return s/=r,s>t?s-t:e&&s===t||!o._initted&&s-t<2*L?L:(s+=o.totalDuration()/o._timeScale/r)>t+L?0:s-t-L};l._init=function(){var e,t,i,n,l,d,g=this.vars,h=this._overwrittenProps,u=this._duration,f=!!g.immediateRender,_=g.ease;if(g.startAt){for(n in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),l={},g.startAt)l[n]=g.startAt[n];if(l.data="isStart",l.overwrite=!1,l.immediateRender=!0,l.lazy=f&&!1!==g.lazy,l.startAt=l.delay=null,l.onUpdate=g.onUpdate,l.onUpdateParams=g.onUpdateParams,l.onUpdateScope=g.onUpdateScope||g.callbackScope||this,this._startAt=G.to(this.target,0,l),f)if(0<this._time)this._startAt=null;else if(0!==u)return}else if(g.runBackwards&&0!==u)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(n in 0!==this._time&&(f=!1),i={},g)re[n]&&"autoCSS"!==n||(i[n]=g[n]);if(i.overwrite=0,i.data="isFromStart",i.lazy=f&&!1!==g.lazy,i.immediateRender=f,this._startAt=G.to(this.target,0,i),!f)this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null);else if(0===this._time)return}if(this._ease=_=_?_ instanceof C?_:"function"==typeof _?new C(_,g.easeParams):E[_]||G.defaultEase:G.defaultEase,g.easeParams instanceof Array&&_.config&&(this._ease=_.config.apply(_,g.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(d=this._targets.length,e=0;e<d;e++)this._initProps(this._targets[e],this._propLookup[e]={},this._siblings[e],h?h[e]:null,e)&&(t=!0);else t=this._initProps(this.target,this._propLookup,this._siblings,h,0);if(t&&G._onPluginEvent("_onInitAllProps",this),h&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),g.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=g.onUpdate,this._initted=!0},l._initProps=function(o,e,t,i,n){var r,l,c,g,_,y;if(null==o)return!1;for(r in V[o._gsTweenID]&&me(),this.vars.css||o.style&&o!==h&&o.nodeType&&te.css&&!1!==this.vars.autoCSS&&H(this.vars,o),this.vars)if(y=this.vars[r],re[r])y&&(y instanceof Array||y.push&&f(y))&&-1!==y.join("").indexOf("{self}")&&(this.vars[r]=y=this._swapSelfInParams(y,this));else if(te[r]&&(g=new te[r])._onInitTween(o,this.vars[r],this,n)){for(this._firstPT=_={_next:this._firstPT,t:g,p:"setRatio",s:0,c:1,f:1,n:r,pg:1,pr:g._priority,m:0},l=g._overwriteProps.length;-1<--l;)e[g._overwriteProps[l]]=this._firstPT;(g._priority||g._onInitAllProps)&&(c=!0),(g._onDisable||g._onEnable)&&(this._notifyPluginsOfEnabled=!0),_._next&&(_._next._prev=_)}else e[r]=K.call(this,o,r,"get",y,r,0,null,this.vars.stringFilter,n);return i&&this._kill(i,o)?this._initProps(o,e,t,i,n):1<this._overwrite&&this._firstPT&&1<t.length&&fe(o,this,e,this._overwrite,t)?(this._kill(e,o),this._initProps(o,e,t,i,n)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(V[o._gsTweenID]=!0),c)},l.render=function(t,o,i){var r,l,c,m,h=this._time,f=this._duration,_=this._rawPrevTime;if(t>=f-1e-7&&0<=t)this._totalTime=this._time=f,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(r=!0,l="onComplete",i=i||this._timeline.autoRemoveChildren),0===f&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0>_||0>=t&&-1e-7<=t||_===L&&"isPause"!==this.data)&&_!==t&&(i=!0,_>L&&(l="onReverseComplete")),this._rawPrevTime=m=!o||t||_===t?t:L);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==h||0===f&&0<_)&&(l="onReverseComplete",r=this._reversed),0>t&&(this._active=!1,0===f&&(this._initted||!this.vars.lazy||i)&&(0<=_&&(_!==L||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=m=!o||t||_===t?t:L)),(!this._initted||this._startAt&&this._startAt.progress())&&(i=!0);else if(this._totalTime=this._time=t,this._easeType){var u=t/f,y=this._easeType,x=this._easePower;(1===y||3===y&&.5<=u)&&(u=1-u),3===y&&(u*=2),1===x?u*=u:2===x?u*=u*u:3===x?u*=u*u*u:4===x&&(u*=u*u*u*u),this.ratio=1===y?1-u:2===y?u:.5>t/f?u/2:1-u/2}else this.ratio=this._ease.getRatio(t/f);
1if(this._time!==h||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=h,this._rawPrevTime=_,Y.push(this),void(this._lazy=[t,o]);this._time&&!r?this.ratio=this._ease.getRatio(this._time/f):r&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==h&&0<=t&&(this._active=!0),0===h&&(this._startAt&&(0<=t?this._startAt.render(t,!0,i):l||(l="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==f||o||this._callback("onStart"))),c=this._firstPT;c;)c.f?c.t[c.p](c.c*this.ratio+c.s):c.t[c.p]=c.c*this.ratio+c.s,c=c._next;this._onUpdate&&(0>t&&this._startAt&&-1e-4!==t&&this._startAt.render(t,!0,i),o||(this._time!==h||r||i)&&this._callback("onUpdate")),l&&(this._gc&&!i||(0>t&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,!0,i),r&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!o&&this.vars[l]&&this._callback(l),0===f&&this._rawPrevTime===L&&m!==L&&(this._rawPrevTime=0)))}},l._kill=function(e,t,r){if("all"===e&&(e=null),null==e&&(null==t||t===this.target))return this._lazy=!1,this._enabled(!1,!1);t="string"==typeof t?G.selector(t)||t:t||this._targets||this.target;var a,l,d,p,c,_,y,x,v,b=r&&this._time&&r._startTime===this._startTime&&this._timeline===r._timeline;if((f(t)||j(t))&&"number"!=typeof t[0])for(a=t.length;-1<--a;)this._kill(e,t[a],r)&&(_=!0);else{if(this._targets){for(a=this._targets.length;-1<--a;)if(t===this._targets[a]){c=this._propLookup[a]||{},this._overwrittenProps=this._overwrittenProps||[],l=this._overwrittenProps[a]=e?this._overwrittenProps[a]||{}:"all";break}}else{if(t!==this.target)return!1;c=this._propLookup,l=this._overwrittenProps=e?this._overwrittenProps||{}:"all"}if(c){if(y=e||c,x=e!==l&&"all"!==l&&e!==c&&("object"!=typeof e||!e._tempKill),r&&(G.onOverwrite||this.vars.onOverwrite)){for(d in y)c[d]&&(v||(v=[]),v.push(d));if((v||!e)&&!ge(this,r,t,v))return!1}for(d in y)(p=c[d])&&(b&&(p.f?p.t[p.p](p.s):p.t[p.p]=p.s,_=!0),p.pg&&p.t._kill(y)&&(_=!0),p.pg&&0!==p.t._overwriteProps.length||(p._prev?p._prev._next=p._next:p===this._firstPT&&(this._firstPT=p._next),p._next&&(p._next._prev=p._prev),p._next=p._prev=null),delete c[d]),x&&(l[d]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return _},l.invalidate=function(){return this._notifyPluginsOfEnabled&&G._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],B.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-L,this.render(e(0,-this._delay))),this},l._enabled=function(t,e){if(z||D.wake(),t&&this._gc){var i,r=this._targets;if(r)for(i=r.length;-1<--i;)this._siblings[i]=pe(r[i],this,!0);else this._siblings=pe(this.target,this,!0)}return B.prototype._enabled.call(this,t,e),this._notifyPluginsOfEnabled&&this._firstPT&&G._onPluginEvent(t?"_onEnable":"_onDisable",this)},G.to=function(t,e,i){return new G(t,e,i)},G.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new G(t,e,i)},G.fromTo=function(o,t,e,i){return i.startAt=e,i.immediateRender=0!=i.immediateRender&&0!=e.immediateRender,new G(o,t,i)},G.delayedCall=function(t,e,i,n,r){return new G(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},G.set=function(t,e){return new G(t,0,e)},G.getTweensOf=function(t,o){if(null==t)return[];t="string"==typeof t?G.selector(t)||t:t;var i,r,a,p;if((f(t)||j(t))&&"number"!=typeof t[0]){for(i=t.length,r=[];-1<--i;)r=r.concat(G.getTweensOf(t[i],o));for(i=r.length;-1<--i;)for(p=r[i],a=i;-1<--a;)p===r[a]&&r.splice(i,1)}else if(t._gsTweenID)for(r=pe(t).concat(),i=r.length;-1<--i;)(r[i]._gc||o&&!r[i].isActive())&&r.splice(i,1);return r||[]},G.killTweensOf=G.killDelayedCallsTo=function(t,e,o){"object"==typeof e&&(o=e,e=!1);for(var a=G.getTweensOf(t,e),r=a.length;-1<--r;)a[r]._kill(o,t)};var ue=k("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=ue.prototype},!0);if(l=ue.prototype,ue.version="1.19.0",ue.API=2,l._firstPT=null,l._addTween=K,l.setRatio=$,l._kill=function(i){var e,r=this._overwriteProps,o=this._firstPT;if(null!=i[this._propName])this._overwriteProps=[];else for(e=r.length;-1<--e;)null!=i[r[e]]&&r.splice(e,1);for(;o;)null!=i[o.n]&&(o._next&&(o._next._prev=o._prev),o._prev?(o._prev._next=o._next,o._prev=null):this._firstPT===o&&(this._firstPT=o._next)),o=o._next;return!1},l._mod=l._roundProps=function(t){for(var e,n=this._firstPT;n;)e=t[this._propName]||null!=n.n&&t[n.n.split(this._propName+"_").join("")],e&&"function"==typeof e&&(2===n.f?n.t._applyPT.m=e:n.m=e),n=n._next},G._onPluginEvent=function(t,e){var i,o,r,a,s,l=e._firstPT;if("_onInitAllProps"===t){for(;l;){for(s=l._next,o=r;o&&o.pr>l.pr;)o=o._next;(l._prev=o?o._prev:a)?l._prev._next=l:r=l,(l._next=o)?o._prev=l:a=l,l=s}l=e._firstPT=r}for(;l;)l.pg&&"function"==typeof l.t[t]&&l.t[t]()&&(i=!0),l=l._next;return i},ue.activate=function(t){for(var e=t.length;-1<--e;)t[e].API===ue.API&&(te[new t[e]()._propName]=t[e]);return!0},w.plugin=function(i){if(!(i&&i.propName&&i.init&&i.API))throw"illegal plugin definition.";var e,o=i.propName,s=i.priority||0,l=i.overwriteProps,a={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},d=k("plugins."+o.charAt(0).toUpperCase()+o.substr(1)+"Plugin",function(){ue.call(this,o,s),this._overwriteProps=l||[]},!0===i.global),n=d.prototype=new ue(o);for(e in n.constructor=d,d.API=i.API,a)"function"==typeof i[e]&&(n[a[e]]=i[e]);return d.version=i.version,ue.activate([d]),d},o=h._gsQueue){for(s=0;s<o.length;s++)o[s]();for(l in b)b[l].func||h.console.log("GSAP encountered missing dependency: "+l)}z=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenLite");var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(b,c,k){var w=function(i){c.call(this,i),this._labels={},this.autoRemoveChildren=!0===this.vars.autoRemoveChildren,this.smoothChildTiming=!0===this.vars.smoothChildTiming,this._sortChildren=!0,this._onUpdate=this.vars.onUp
1date;var e,n,a=this.vars;for(n in a)e=a[n],m(e)&&-1!==e.join("").indexOf("{self}")&&(a[n]=this._swapSelfInParams(e));m(a.tweens)&&this.add(a.tweens,0,a.align,a.stagger)},s=1e-10,t=k._internals,i=w._internals={},n=t.isSelector,m=t.isArray,e=t.lazyTweens,d=t.lazyRender,u=_gsScope._gsDefine.globals,h=function(t){var e,o={};for(e in t)o[e]=t[e];return o},l=function(o,t,e){var i,r,l=o.cycle;for(i in l)r=l[i],o[i]="function"==typeof r?r(e,t[e]):r[e%r.length];delete o.cycle},a=i.pauseCallback=function(){},p=function(i){var e,n=[],r=i.length;for(e=0;e!==r;n.push(i[e++]));return n},r=w.prototype=new c;return w.version="1.20.3",r.constructor=w,r.kill()._gc=r._forcingPlayhead=r._hasPause=!1,r.to=function(t,e,n,o){var r=n.repeat&&u.TweenMax||k;return e?this.add(new r(t,e,n),o):this.set(t,n,o)},r.from=function(i,t,e,n){return this.add((e.repeat&&u.TweenMax||k).from(i,t,e),n)},r.fromTo=function(e,n,r,o,a){var i=o.repeat&&u.TweenMax||k;return n?this.add(i.fromTo(e,n,r,o),a):this.set(e,o,a)},r.staggerTo=function(e,i,a,r,s,_,m,u){var c,y,x=new w({onComplete:_,onCompleteParams:m,callbackScope:u,smoothChildTiming:this.smoothChildTiming}),v=a.cycle;for("string"==typeof e&&(e=k.selector(e)||e),e=e||[],n(e)&&(e=p(e)),r=r||0,0>r&&(e=p(e),e.reverse(),r*=-1),y=0;y<e.length;y++)c=h(a),c.startAt&&(c.startAt=h(c.startAt),c.startAt.cycle&&l(c.startAt,e,y)),v&&(l(c,e,y),null!=c.duration&&(i=c.duration,delete c.duration)),x.to(e[y],i,c,y*r);return this.add(x,s)},r.staggerFrom=function(t,e,i,n,r,s,o,a){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,n,r,s,o,a)},r.staggerFromTo=function(r,s,o,a,l,d,t,e,i){return a.startAt=o,a.immediateRender=0!=a.immediateRender&&0!=o.immediateRender,this.staggerTo(r,s,a,l,d,t,e,i)},r.call=function(i,t,e,n){return this.add(k.delayedCall(0,i,t,e),n)},r.set=function(t,e,n){return n=this._parseTimeOrLabel(n,0,!0),null==e.immediateRender&&(e.immediateRender=n===this._time&&!this._paused),this.add(new k(t,0,e),n)},w.exportRoot=function(e,t){e=e||{},null==e.smoothChildTiming&&(e.smoothChildTiming=!0);var i,o,a,d,u=new w(e),m=u._timeline;for(null==t&&(t=!0),m._remove(u,!0),u._startTime=0,u._rawPrevTime=u._time=u._totalTime=m._time,a=m._first;a;)d=a._next,t&&a instanceof k&&a.target===a.vars.onComplete||(o=a._startTime-a._delay,0>o&&(i=1),u.add(a,o)),a=d;return m.add(u,0),i&&u.totalDuration(),u},r.add=function(i,n,o,r){var a,l,d,u,g,x;if("number"!=typeof n&&(n=this._parseTimeOrLabel(n,0,!0,i)),!(i instanceof b)){if(i instanceof Array||i&&i.push&&m(i)){for(o=o||"normal",r=r||0,a=n,l=i.length,d=0;d<l;d++)m(u=i[d])&&(u=new w({tweens:u})),this.add(u,a),"string"!=typeof u&&"function"!=typeof u&&("sequence"===o?a=u._startTime+u.totalDuration()/u._timeScale:"start"===o&&(u._startTime-=u.delay())),a+=r;return this._uncache(!0)}if("string"==typeof i)return this.addLabel(i,n);if("function"!=typeof i)throw"Cannot add "+i+" into the timeline; it is not a tween, timeline, function, or string.";i=k.delayedCall(0,i)}if(c.prototype.add.call(this,i,n),i._time&&i.render((this.rawTime()-i._startTime)*i._timeScale,!1,!1),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(g=this,x=g.rawTime()>i._startTime;g._timeline;)x&&g._timeline.smoothChildTiming?g.totalTime(g._totalTime,!0):g._gc&&g._enabled(!0,!1),g=g._timeline;return this},r.remove=function(n){if(n instanceof b){this._remove(n,!1);var i=n._timeline=n.vars.useFrames?b._rootFramesTimeline:b._rootTimeline;return n._startTime=(n._paused?n._pauseTime:i._time)-(n._reversed?n.totalDuration()-n._totalTime:n._totalTime)/n._timeScale,this}if(n instanceof Array||n&&n.push&&m(n)){for(var t=n.length;-1<--t;)this.remove(n[t]);return this}return"string"==typeof n?this.removeLabel(n):this.kill(null,n)},r._remove=function(i,n){c.prototype._remove.call(this,i,n);var e=this._last;return e?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},r.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},r.insert=r.insertMultiple=function(o,t,e,i){return this.add(o,t||0,e,i)},r.appendMultiple=function(o,t,e,i){return this.add(o,this._parseTimeOrLabel(null,t,!0,o),e,i)},r.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},r.addPause=function(t,i,n,o){var e=k.delayedCall(0,a,n,o||this);return e.vars.onComplete=e.vars.onReverseComplete=i,e.data="isPause",this._hasPause=!0,this.add(e,t)},r.removeLabel=function(t){return delete this._labels[t],this},r.getLabelTime=function(t){return null==this._labels[t]?-1:this._labels[t]},r._parseTimeOrLabel=function(t,i,o,a){var n,l;if(a instanceof b&&a.timeline===this)this.remove(a);else if(a&&(a instanceof Array||a.push&&m(a)))for(l=a.length;-1<--l;)a[l]instanceof b&&a[l].timeline===this&&this.remove(a[l]);if(n="number"!=typeof t||i?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof i)return this._parseTimeOrLabel(i,o&&"number"==typeof t&&null==this._labels[i]?t-n:0,o);if(i=i||0,"string"!=typeof t||!isNaN(t)&&null==this._labels[t])null==t&&(t=n);else{if(l=t.indexOf("="),-1===l)return null==this._labels[t]?o?this._labels[t]=n+i:i:this._labels[t]+i;i=parseInt(t.charAt(l-1)+"1",10)*+t.substr(l+1),t=1<l?this._parseTimeOrLabel(t.substr(0,l-1),0,o):n}return+t+i},r.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},r.stop=function(){return this.paused(!0)},r.gotoAndPlay=function(t,e){return this.play(t,e)},r.gotoAndStop=function(t,e){return this.pause(t,e)},r.render=function(r,a,o){this._gc&&this._enabled(!0,!1);var i,c,u,g,h,x,v,S=this._time,b=this._dirty?this.totalDuration():this._totalDuration,k=this._startTime,w=this._timeScale,P=this._paused;if(S!==this._time&&(r+=this._time-S),r>=b-1e-7&&0<=r)this._totalTime=this._time=b,this._reversed||this._hasPausedChild()||(c=!0,g="onComplete",h=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=r&&-1e-7<=r||0>this._rawPrevTime||this._rawPrevTime===s)&&this._rawPrevTime!==r&&this._first&&(h=!0,this._rawPrevTime>s&&(g="onReverseComplete"))),this._rawPrevTime=this._duration||!a||r||this._rawPrevTime===r?r:s,r=b+1e-4;else if(!(1e-7>r)){if(this._hasPause&&!this._forcingPlayhead&&!a){if(r>=S)for(i=this._first;i&&i._startTime<=r&&!x;)i._duration||"isPause"!==i.data||i.ratio||0===i._startTime&&0===this._rawPrevTime||(x=i),i=i._next;else for(i=this._last;i&&i._startTime>=r&&!x;)i._duration||"isPause"===i.data&&0<i._rawPrevTime&&(x=i),i=i._prev;
1x&&(this._time=r=x._startTime,this._totalTime=r+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=r}else if(this._totalTime=this._time=0,(0!==S||0===this._duration&&this._rawPrevTime!==s&&(0<this._rawPrevTime||0>r&&0<=this._rawPrevTime))&&(g="onReverseComplete",c=this._reversed),0>r)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(h=c=!0,g="onReverseComplete"):0<=this._rawPrevTime&&this._first&&(h=!0),this._rawPrevTime=r;else{if(this._rawPrevTime=this._duration||!a||r||this._rawPrevTime===r?r:s,0===r&&c)for(i=this._first;i&&0===i._startTime;)i._duration||(c=!1),i=i._next;r=0,this._initted||(h=!0)}if(this._time!==S&&this._first||o||h||x){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==S&&0<r&&(this._active=!0),0===S&&this.vars.onStart&&(0===this._time&&this._duration||a||this._callback("onStart")),v=this._time,v>=S)for(i=this._first;i&&(u=i._next,v===this._time&&(!this._paused||P));)(i._active||i._startTime<=v&&!i._paused&&!i._gc)&&(x===i&&this.pause(),i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(r-i._startTime)*i._timeScale,a,o):i.render((r-i._startTime)*i._timeScale,a,o)),i=u;else for(i=this._last;i&&(u=i._prev,v===this._time&&(!this._paused||P));){if(i._active||i._startTime<=S&&!i._paused&&!i._gc){if(x===i){for(x=i._prev;x&&x.endTime()>this._time;)x.render(x._reversed?x.totalDuration()-(r-x._startTime)*x._timeScale:(r-x._startTime)*x._timeScale,a,o),x=x._prev;x=null,this.pause()}i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(r-i._startTime)*i._timeScale,a,o):i.render((r-i._startTime)*i._timeScale,a,o)}i=u}this._onUpdate&&(a||(e.length&&d(),this._callback("onUpdate"))),g&&(this._gc||k!==this._startTime&&w===this._timeScale||(0===this._time||b>=this.totalDuration())&&(c&&(e.length&&d(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!a&&this.vars[g]&&this._callback(g)))}},r._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof w&&t._hasPausedChild())return!0;t=t._next}return!1},r.getChildren=function(i,t,e,n){n=n||-9999999999;for(var r=[],a=this._first,s=0;a;)a._startTime<n||(a instanceof k?!1!==t&&(r[s++]=a):(!1!==e&&(r[s++]=a),!1!==i&&(r=r.concat(a.getChildren(!0,t,e)),s=r.length))),a=a._next;return r},r.getTweensOf=function(t,i){var n,r,s=this._gc,d=[],a=0;for(s&&this._enabled(!0,!0),n=k.getTweensOf(t),r=n.length;-1<--r;)(n[r].timeline===this||i&&this._contains(n[r]))&&(d[a++]=n[r]);return s&&this._enabled(!1,!0),d},r.recent=function(){return this._recent},r._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},r.shiftChildren=function(t,e,i){i=i||0;for(var o,r=this._first,d=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(o in d)d[o]>=i&&(d[o]+=t);return this._uncache(!0)},r._kill=function(o,t){if(!o&&!t)return this._enabled(!1,!1);for(var e=t?this.getTweensOf(t):this.getChildren(!0,!0,!1),i=e.length,r=!1;-1<--i;)e[i]._kill(o,t)&&(r=!0);return r},r.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;-1<--i;)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},r.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return b.prototype.invalidate.call(this)},r._enabled=function(i,n){if(i===this._gc)for(var e=this._first;e;)e._enabled(i,!0),e=e._next;return c.prototype._enabled.call(this,i,n)},r.totalTime=function(e,t,i){this._forcingPlayhead=!0;var n=b.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,n},r.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},r.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,n,o=0,r=this._last,s=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>s&&this._sortChildren&&!r._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(r,r._startTime-r._delay),this._calculatingDuration=0):s=r._startTime,0>r._startTime&&!r._paused&&(o-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale,this._time-=r._startTime,this._totalTime-=r._startTime,this._rawPrevTime-=r._startTime),this.shiftChildren(-r._startTime,!1,-9999999999),s=0),n=r._startTime+r._totalDuration/r._timeScale,n>o&&(o=n),r=e;this._duration=this._totalDuration=o,this._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},r.paused=function(t){if(!t)for(var i=this._first,o=this._time;i;)i._startTime===o&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return b.prototype.paused.apply(this,arguments)},r.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===b._rootFramesTimeline},r.rawTime=function(t){return t&&(this._paused||this._repeat&&0<this.time()&&1>this.totalProgress())?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},w},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"undefined"!=typeof module&&module.exports?(require("./TweenLite.js"),module.exports=e()):"function"==typeof define&&define.amd&&define(["TweenLite"],e)}("TimelineLite");var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var n=Math.sqrt,Y=Math.cos,o=Math.sin,a=Math.PI,t=Math.abs,i=Math.round;_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(e,l){var g,T,H,w,E=function(){e.call(this,"css"),this._overwriteProps.length=0,this.setRatio=E.prototype.setRatio},c=_gsScope._gsDefine.globals,C={},d=E.prototype=new e("css");d.constructor=E,E.version="1.20.3",E.API=2,E.defaultTransformPerspective=0,E.defaultSkewType="compensated",E.defaultSmoothOrigin=!0,d="px",E.suffixMap={top:d,right:d,bottom:d,left
1:d,width:d,height:d,fontSize:d,padding:d,margin:d,perspective:d,lineHeight:""};var z,k,O,L,B,h,q,Q,ee=/(?:\-|\.|\b)(\d|\.|e\-)+/g,M=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,x=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,b=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,K=/(?:\d|\-|\+|=|#|\.)*/g,ie=/opacity *= *([^)]*)/i,ae=/opacity:([^;]*)/i,se=/alpha\(opacity *=.+?\)/i,de=/^(rgb|hsl)/,S=/([A-Z])/g,pe=/-([a-z])/gi,m=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,ce=function(t,e){return e.toUpperCase()},me=/(?:Left|Right|Width)/i,f=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,ge=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,fe=/,(?=[^\)]*(?:\(|$))/gi,he=/[\s,\(]/i,ze=a/180,s=180/a,u={},y={style:{}},Le=_gsScope.document||{createElement:function(){return y}},v=function(t,e){return Le.createElementNS?Le.createElementNS(e||"http://www.w3.org/1999/xhtml",t):Le.createElement(t)},U=v("div"),j=v("img"),W=E._internals={_specialProps:C},V=(_gsScope.navigator||{}).userAgent||"",J=function(){var t=V.indexOf("Android"),e=v("a");return O=-1!==V.indexOf("Safari")&&-1===V.indexOf("Chrome")&&(-1===t||3<parseFloat(V.substr(t+8,2))),B=O&&6>parseFloat(V.substr(V.indexOf("Version/")+8,2)),L=-1!==V.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(V)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(V))&&(h=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),te=function(t){return ie.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},ne=function(t){_gsScope.console&&console.log(t)},P="",oe="",re=function(e,t){t=t||U;var i,n,d=t.style;if(void 0!==d[e])return e;for(e=e.charAt(0).toUpperCase()+e.substr(1),i=["O","Moz","ms","Ms","Webkit"],n=5;-1<--n&&void 0===d[i[n]+e];);return 0<=n?(oe=3===n?"ms":i[n],P="-"+oe.toLowerCase()+"-",oe+e):null},Re=Le.defaultView?Le.defaultView.getComputedStyle:function(){},Ie=E.getStyle=function(t,e,i,n,r){var a;return J||"opacity"!==e?(!n&&t.style[e]?a=t.style[e]:(i=i||Re(t))?a=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(S,"-$1").toLowerCase()):t.currentStyle&&(a=t.currentStyle[e]),null==r||a&&"none"!==a&&"auto"!==a&&"auto auto"!==a?a:r):te(t)},Fe=W.convertToPixels=function(e,t,i,n,a){if("px"===n||!n&&"lineHeight"!==t)return i;if("auto"===n||!i)return 0;var r,d,g,h=me.test(t),m=e,x=U.style,_=0>i,y=1===i;if(_&&(i=-i),y&&(i*=100),!("lineHeight"!==t||n))d=Re(e).lineHeight,e.style.lineHeight=i,r=parseFloat(Re(e).lineHeight),e.style.lineHeight=d;else if("%"===n&&-1!==t.indexOf("border"))r=i/100*(h?e.clientWidth:e.clientHeight);else{if(x.cssText="border:0 solid red;position:"+Ie(e,"position")+";line-height:0;","%"!==n&&m.appendChild&&"v"!==n.charAt(0)&&"rem"!==n)x[h?"borderLeftWidth":"borderTopWidth"]=i+n;else{if(m=e.parentNode||Le.body,-1!==Ie(m,"display").indexOf("flex")&&(x.position="absolute"),d=m._gsCache,g=l.ticker.frame,d&&h&&d.time===g)return d.width*i/100;x[h?"width":"height"]=i+n}m.appendChild(U),r=parseFloat(U[h?"offsetWidth":"offsetHeight"]),m.removeChild(U),h&&"%"==n&&!1!==E.cacheWidths&&(d=m._gsCache=m._gsCache||{},d.time=g,d.width=100*(r/i)),0!==r||a||(r=Fe(e,t,i,n,!0))}return y&&(r/=100),_?-r:r},ye=W.calculateOffset=function(t,e,i){if("absolute"!==Ie(t,"position",i))return 0;var n="left"===e?"Left":"Top",r=Ie(t,"margin"+n,i);return t["offset"+n]-(Fe(t,e,parseFloat(r),r.replace(K,""))||0)},_e=function(i,e){var n,o,r,a={};if(e=e||Re(i,null)){if(n=e.length)for(;-1<--n;)r=e[n],-1!==r.indexOf("-transform")&&mt!==r||(a[r.replace(pe,ce)]=e.getPropertyValue(r));else for(n in e)-1!==n.indexOf("Transform")&&ct!==n||(a[n]=e[n]);}else if(e=i.currentStyle||i.style)for(n in e)"string"==typeof n&&void 0===a[n]&&(a[n.replace(pe,ce)]=e[n]);return J||(a.opacity=te(i)),o=yt(i,e,!1),a.rotation=o.rotation,a.skewX=o.skewX,a.scaleX=o.scaleX,a.scaleY=o.scaleY,a.x=o.x,a.y=o.y,Tt&&(a.z=o.z,a.rotationX=o.rotationX,a.rotationY=o.rotationY,a.scaleZ=o.scaleZ),a.filters&&delete a.filters,a},Ne=function(e,i,n,r,o){var a,l,d,c={},m=e.style;for(l in n)"cssText"!==l&&"length"!==l&&isNaN(l)&&(i[l]!==(a=n[l])||o&&o[l])&&-1===l.indexOf("Origin")&&("number"!=typeof a&&"string"!=typeof a||(c[l]="auto"!==a||"left"!==l&&"top"!==l?""!==a&&"auto"!==a&&"none"!==a||"string"!=typeof i[l]||""===i[l].replace(b,"")?a:0:ye(e,l),void 0!==m[l]&&(d=new Ye(m,l,m[l],d))));if(r)for(l in r)"className"!==l&&(c[l]=r[l]);return{difs:c,firstMPT:d}},ve={width:["Left","Right"],height:["Top","Bottom"]},xe=["marginLeft","marginRight","marginTop","marginBottom"],Te=function(t,e,
1i){if("svg"===(t.nodeName+"").toLowerCase())return(i||Re(t))[e]||0;if(t.getCTM&&nt(t))return t.getBBox()[e]||0;var o=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),a=ve[e],s=a.length;for(i=i||Re(t,null);-1<--s;)o-=parseFloat(Ie(t,"padding"+a[s],i,!0))||0,o-=parseFloat(Ie(t,"border"+a[s]+"Width",i,!0))||0;return o},we=function(t,o){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";null!=t&&""!==t||(t="0 0");var i,r=t.split(" "),s=-1===t.indexOf("left")?-1===t.indexOf("right")?r[0]:"100%":"0%",d=-1===t.indexOf("top")?-1===t.indexOf("bottom")?r[1]:"100%":"0%";if(3<r.length&&!o){for(r=t.split(", ").join(",").split(","),t=[],i=0;i<r.length;i++)t.push(we(r[i]));return t.join(",")}return null==d?d="center"===s?"50%":"0":"center"===d&&(d="50%"),("center"===s||isNaN(parseFloat(s))&&-1===(s+"").indexOf("="))&&(s="50%"),t=s+" "+d+(2<r.length?" "+r[2]:""),o&&(o.oxp=-1!==s.indexOf("%"),o.oyp=-1!==d.indexOf("%"),o.oxr="="===s.charAt(1),o.oyr="="===d.charAt(1),o.ox=parseFloat(s.replace(b,"")),o.oy=parseFloat(d.replace(b,"")),o.v=t),o||t},ke=function(e,t){return"function"==typeof e&&(e=e(Q,q)),"string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2)):parseFloat(e)-parseFloat(t)||0},Se=function(e,t){return"function"==typeof e&&(e=e(Q,q)),null==e?t:"string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2))+t:parseFloat(e)||0},Ee=function(t,r,n,i){var a,d,p,m,u,_=1e-6;return"function"==typeof t&&(t=t(Q,q)),null==t?m=r:"number"==typeof t?m=t:(a=360,d=t.split("_"),u="="===t.charAt(1),p=(u?parseInt(t.charAt(0)+"1",10)*parseFloat(d[0].substr(2)):parseFloat(d[0]))*(-1===t.indexOf("rad")?1:s)-(u?0:r),d.length&&(i&&(i[n]=r+p),-1!==t.indexOf("short")&&(p%=a,p!==p%(a/2)&&(p=0>p?p+a:p-a)),-1!==t.indexOf("_cw")&&0>p?p=(p+9999999999*a)%a-(0|p/a)*a:-1!==t.indexOf("ccw")&&0<p&&(p=(p-9999999999*a)%a-(0|p/a)*a)),m=r+p),m<_&&m>-_&&(m=0),m},be={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},Pe=function(t,n,i){return t=0>t?t+1:1<t?t-1:t,0|255*(1>6*t?n+6*((i-n)*t):.5>t?i:2>3*t?n+6*((i-n)*(2/3-t)):n)+.5},Ce=E.parseColor=function(t,o){var i,r,a,s,d,p,u,g,h,x,k;if(!t)i=be.black;else if("number"==typeof t)i=[t>>16,255&t>>8,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),be[t])i=be[t];else if("#"===t.charAt(0))4===t.length&&(r=t.charAt(1),a=t.charAt(2),s=t.charAt(3),t="#"+r+r+a+a+s+s),t=parseInt(t.substr(1),16),i=[t>>16,255&t>>8,255&t];else if("hsl"!==t.substr(0,3))i=t.match(ee)||be.transparent;else if(i=k=t.match(ee),!o)d=+i[0]%360/360,p=+i[1]/100,u=+i[2]/100,a=.5>=u?u*(p+1):u+p-u*p,r=2*u-a,3<i.length&&(i[3]=+i[3]),i[0]=Pe(d+1/3,r,a),i[1]=Pe(d,r,a),i[2]=Pe(d-1/3,r,a);else if(-1!==t.indexOf("="))return t.match(M);i[0]=+i[0],i[1]=+i[1],i[2]=+i[2],3<i.length&&(i[3]=+i[3])}return o&&!k&&(r=i[0]/255,a=i[1]/255,s=i[2]/255,g=Math.max(r,a,s),h=Math.min(r,a,s),u=(g+h)/2,g===h?d=p=0:(x=g-h,p=.5<u?x/(2-g-h):x/(g+h),d=g===r?(a-s)/x+(a<s?6:0):g===a?(s-r)/x+2:(r-a)/x+4,d*=60),i[0]=0|d+.5,i[1]=0|100*p+.5,i[2]=0|100*u+.5),i},Oe=function(e,t){var i,o,r,l=e.match(Ae)||[],p=0,c="";if(!l.length)return e;for(i=0;i<l.length;i++)o=l[i],r=e.substr(p,e.indexOf(o,p)-p),p+=r.length+o.length,o=Ce(o,t),3===o.length&&o.push(1),c+=r+(t?"hsla("+o[0]+","+o[1]+"%,"+o[2]+"%,"+o[3]:"rgba("+o.join(","))+")";return c+e.substr(p)},Ae="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(d in be)Ae+="|"+d+"\\b";Ae=new RegExp(Ae+")","gi"),E.colorStringFilter=function(t){var e,o=t[0]+" "+t[1];Ae.test(o)&&(e=-1!==o.indexOf("hsl(")||-1!==o.indexOf("hsla("),t[0]=Oe(t[0],e),t[1]=Oe(t[1],e)),Ae.lastIndex=0},l.defaultStringFilter||(l.defaultStringFilter=E.colorStringFilter);var je=function(t,n,c,e){if(null==t)return function(t){return t};var i,m=n?(t.match(Ae)||[""])[0]:"",a=t.split(m).join("").match(x)||[],d=t.substr(0,t.indexOf(a[0])),p=")"===t.charAt(t.length-1)?")":"",s=-1===t.indexOf(" ")?",":" ",l=a.length,f=0<l?a[0].replace(ee,""):"";return l?i=n?function(n){var r,u,_,v;if("number"==typeof n)n+=f;else if(e&&fe.test(n)){for(v=n.replace(fe,"|").split("|"),_=0;_<v.length;_++)v[_]=i(v[_]);return v.join(",")}if(r=(n.match(Ae)||[m])[0],u=n.split(r).join("").match(x)||[],_=u.length,l>_--)for(;++_<l;)u[_]=c?u[0|(_-1)/2]:a[_];return d+u.join(s)+s+r+p+(-1===n.indexOf("inset")?"":" inset")}:function(n){var r,u,g;if("number"==typeof n)n+=f;else if(e&&fe.test(n)){for(u=n.replace(fe,"|").split("|"),g=0;g<u.length;g++)u[g]=i(u[g]);return u.join(",")}if(r=n.match(x)||[],g=r.length,l>g--)for(;++g<l;)r[g]=c?r[0|(g-1)/2]:a[g];return d+r.join(s)+p}:function(t){return t}},We=function(t){return t=t.split(","),function(e,n,r,s,o,a,l){var d,m=(n+"").split(" ");for(l={},d=0;4>d;d++)l[t[d]]=m[d]=m[d]||m[(d-1)/2>>0];return s.parse(e,l,o,a)}},Ye=(W._setPluginRatio=function(e){this.plugin.setRatio(e);for(var t,r,a,s,d,f=this.data,g=f.proxy,c=f.firstMPT,_=1e-6;c;)t=g[c.v],c.r?t=i(t):t<_&&t>-_&&(t=0),c.t[c.p]=t,c=c._next;if(f.autoRotate&&(f.autoRotate.rotation=f.mod?f.mod(g.rotation,this.t):g.rotation),1===e||0===e)for(c=f.firstMPT,d=1===e?"e":"b";c;){if(r=c.t,!r.type)r[d]+=r.xs0;else if(1===r.type){for(s=r.xs0+r.s+r.xs1,a=1;a<r.l;
1a++)s+=r["xn"+a]+r["xs"+(a+1)];r[d]=s}c=c._next}},function(t,e,i,n,r){this.t=t,this.p=e,this.v=i,this.r=r,n&&(n._prev=this,this._next=n)}),He=(W._parseToProxy=function(o,t,e,i,r,a){var s,g,f,x,b,w=i,y={},T={},_=e._transform,v=u;for(e._transform=null,u=t,i=b=e.parse(o,t,i,r),u=v,a&&(e._transform=_,w&&(w._prev=null,w._prev&&(w._prev._next=null)));i&&i!==w;){if(1>=i.type&&(g=i.p,T[g]=i.s+i.c,y[g]=i.s,a||(x=new Ye(i,"s",g,x,i.r),i.c=0),1===i.type))for(s=i.l;0<--s;)f="xn"+s,g=i.p+"_"+f,T[g]=i.data[f],y[g]=i[f],a||(x=new Ye(i,f,g,x,i.rxp[f]));i=i._next}return{proxy:y,end:T,firstMPT:x,pt:b}},W.CSSPropTween=function(c,e,n,r,o,a,s,l,d,p,t){this.t=c,this.p=e,this.s=n,this.c=r,this.n=s||e,c instanceof He||w.push(this.n),this.r=l,this.type=a||0,d&&(this.pr=d,g=!0),this.b=void 0===p?n:p,this.e=void 0===t?n+r:t,o&&(this._next=o,o._prev=this)}),Me=function(t,e,i,n,r,s){var o=new He(t,e,i,n-i,r,-1,s);return o.b=i,o.e=o.xs0=n,o},Be=E.parseComplex=function(t,e,i,o,r,s,l,u,c,g){i=i||s||"","function"==typeof o&&(o=o(Q,q)),l=new He(t,e,0,0,l,g?2:1,null,!1,u,i,o),o+="",r&&Ae.test(o+i)&&(o=[i,o],E.colorStringFilter(o),i=o[0],o=o[1]);var m,f,_,v,w,S,A,D,R,I,F,X,W,Z=i.split(", ").join(",").split(" "),V=o.split(", ").join(",").split(" "),G=Z.length,$=!1!==z;for(-1===o.indexOf(",")&&-1===i.indexOf(",")||(-1!==(o+i).indexOf("rgb")||-1!==(o+i).indexOf("hsl")?(Z=Z.join(" ").replace(fe,", ").split(" "),V=V.join(" ").replace(fe,", ").split(" ")):(Z=Z.join(" ").split(",").join(", ").split(" "),V=V.join(" ").split(",").join(", ").split(" ")),G=Z.length),G!==V.length&&(Z=(s||"").split(" "),G=Z.length),l.plugin=c,l.setRatio=g,Ae.lastIndex=0,m=0;m<G;m++)if(v=Z[m],w=V[m],D=parseFloat(v),D||0===D)l.appendXtra("",D,ke(w,D),w.replace(M,""),$&&-1!==w.indexOf("px"),!0);else if(r&&Ae.test(v))X=w.indexOf(")")+1,X=")"+(X?w.substr(X):""),W=-1!==w.indexOf("hsl")&&J,I=w,v=Ce(v,W),w=Ce(w,W),R=6<v.length+w.length,R&&!J&&0===w[3]?(l["xs"+l.l]+=l.l?" transparent":"transparent",l.e=l.e.split(V[m]).join("transparent")):(J||(R=!1),W?l.appendXtra(I.substr(0,I.indexOf("hsl"))+(R?"hsla(":"hsl("),v[0],ke(w[0],v[0]),",",!1,!0).appendXtra("",v[1],ke(w[1],v[1]),"%,",!1).appendXtra("",v[2],ke(w[2],v[2]),R?"%,":"%"+X,!1):l.appendXtra(I.substr(0,I.indexOf("rgb"))+(R?"rgba(":"rgb("),v[0],w[0]-v[0],",",!0,!0).appendXtra("",v[1],w[1]-v[1],",",!0).appendXtra("",v[2],w[2]-v[2],R?",":X,!0),R&&(v=4>v.length?1:v[3],l.appendXtra("",v,(4>w.length?1:w[3])-v,X,!1))),Ae.lastIndex=0;else if(S=v.match(ee)){if(A=w.match(M),!A||A.length!==S.length)return l;for(_=0,f=0;f<S.length;f++)F=S[f],I=v.indexOf(F,_),l.appendXtra(v.substr(_,I-_),+F,ke(A[f],F),"",$&&"px"===v.substr(I+F.length,2),0===f),_=I+F.length;l["xs"+l.l]+=v.substr(_)}else l["xs"+l.l]+=l.l||l["xs"+l.l]?" "+w:w;if(-1!==o.indexOf("=")&&l.data){for(X=l.xs0+l.data.s,m=1;m<l.l;m++)X+=l["xs"+m]+l.data["xn"+m];l.e=X+l["xs"+m]}return l.l||(l.type=-1,l.xs0=l.e),l.xfirst||l},Ue=9;for(d=He.prototype,d.l=d.pr=0;0<--Ue;)d["xn"+Ue]=0,d["xs"+Ue]="";d.xs0="",d._next=d._prev=d.xfirst=d.data=d.plugin=d.setRatio=d.rxp=null,d.appendXtra=function(t,e,i,n,r,s){var o=this,a=o.l;return o["xs"+a]+=s&&(a||o["xs"+a])?" "+t:t||"",i||0===a||o.plugin?(o.l++,o.type=o.setRatio?2:1,o["xs"+o.l]=n||"",0<a?(o.data["xn"+a]=e+i,o.rxp["xn"+a]=r,o["xn"+a]=e,o.plugin||(o.xfirst=new He(o,"xn"+a,e,i,o.xfirst||o,0,o.n,r,o.pr),o.xfirst.xs0=0),o):(o.data={s:e+i},o.rxp={},o.s=e,o.c=i,o.r=r,o)):(o["xs"+a]+=e+(n||""),o)};var Ge=function(t,e){e=e||{},this.p=e.prefix?re(t)||t:t,C[t]=C[this.p]=this,this.format=e.formatter||je(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},tt=W._registerComplexSpecialProp=function(t,e,n){"object"!=typeof e&&(e={parser:n});var r,a,p=t.split(","),c=e.defaultValue;for(n=n||[c],r=0;r<p.length;r++)e.prefix=0===r&&e.prefix,e.defaultValue=n[r]||c,a=new Ge(p[r],e)},Ze=W._registerPluginProp=function(t){if(!C[t]){var a=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";tt(t,{parser:function(s,i,l,d,t,n,e){var o=c.com.greensock.plugins[a];return o?(o._cssRegister(),C[l].parse(s,i,l,d,t,n,e)):(ne("Error: "+a+" js file not loaded."),t)}})}};d=Ge.prototype,d.parseComplex=function(t,e,o,l,s,r){var d,p,m,f,_,y,v=this.keyword;if(this.multi&&(fe.test(o)||fe.test(e)?(p=e.replace(fe,"|").split("|"),m=o.replace(fe,"|").split("|")):v&&(p=[e],m=[o])),m){for(f=m.length>p.length?m.length:p.length,d=0;d<f;d++)e=p[d]=p[d]||this.dflt,o=m[d]=m[d]||this.dflt,v&&(_=e.indexOf(v),y=o.indexOf(v),_!==y&&(-1===y?p[d]=p[d].split(v).join(""):-1===_&&(p[d]+=" "+v)));e=p.join(", "),o=m.join(", ")}return Be(t,this.p,e,o,this.clrs,this.dflt,l,this.pr,s,r)}
1,d.parse=function(t,e,i,n,s,o,a){return this.parseComplex(t.style,this.format(Ie(t,this.p,H,!1,this.dflt)),this.format(e),s,o)},E.registerSpecialProp=function(t,o,r){tt(t,{parser:function(a,s,l,d,p,e,t){var i=new He(a,l,0,0,p,2,l,!1,r);return i.plugin=e,i.setRatio=o(a,s,d._tween,l),i},priority:r})},E.useSVGTransformAttr=!0;var Ve,it=["scaleX","scaleY","scaleZ","x","y","z","skewX","skewY","rotation","rotationX","rotationY","perspective","xPercent","yPercent"],ct=re("transform"),mt=P+"transform",ut=re("transformOrigin"),Tt=null!==re("perspective"),gt=W.Transform=function(){this.perspective=parseFloat(E.defaultTransformPerspective)||0,this.force3D=!1!==E.defaultForce3D&&Tt&&(E.defaultForce3D||"auto")},ft=_gsScope.SVGElement,Ke=function(o,t,e){var i,a=Le.createElementNS("http://www.w3.org/2000/svg",o),s=/([a-z])([A-Z])/g;for(i in e)a.setAttributeNS(null,i.replace(s,"$1-$2").toLowerCase(),e[i]);return t.appendChild(a),a},ht=Le.documentElement||{},_t=function(){var e,t,i,n=h||/Android/i.test(V)&&!_gsScope.chrome;return Le.createElementNS&&!n&&(e=Ke("svg",ht),t=Ke("rect",e,{width:100,height:50,x:100}),i=t.getBoundingClientRect().width,t.style[ut]="50% 50%",t.style[ct]="scaleX(0.5)",n=i===t.getBoundingClientRect().width&&!(L&&Tt),ht.removeChild(e)),n}(),xt=function(t,e,i,o,r,s){var a,d,p,c,m,u,g,f,h,_,y,x,v,T,w=t._gsTransform,X=rt(t,!0);w&&(v=w.xOrigin,T=w.yOrigin),(!o||2>(a=o.split(" ")).length)&&(g=t.getBBox(),0===g.x&&0===g.y&&0===g.width+g.height&&(g={x:parseFloat(t.hasAttribute("x")?t.getAttribute("x"):t.hasAttribute("cx")?t.getAttribute("cx"):0)||0,y:parseFloat(t.hasAttribute("y")?t.getAttribute("y"):t.hasAttribute("cy")?t.getAttribute("cy"):0)||0,width:0,height:0}),e=we(e).split(" "),a=[(-1===e[0].indexOf("%")?parseFloat(e[0]):parseFloat(e[0])/100*g.width)+g.x,(-1===e[1].indexOf("%")?parseFloat(e[1]):parseFloat(e[1])/100*g.height)+g.y]),i.xOrigin=c=parseFloat(a[0]),i.yOrigin=m=parseFloat(a[1]),o&&X!==ot&&(u=X[0],g=X[1],f=X[2],h=X[3],_=X[4],y=X[5],x=u*h-g*f,x&&(d=c*(h/x)+m*(-f/x)+(f*y-h*_)/x,p=c*(-g/x)+m*(u/x)-(u*y-g*_)/x,c=i.xOrigin=a[0]=d,m=i.yOrigin=a[1]=p)),w&&(s&&(i.xOffset=w.xOffset,i.yOffset=w.yOffset,w=i),r||!1!==r&&!1!==E.defaultSmoothOrigin?(d=c-v,p=m-T,w.xOffset+=d*X[0]+p*X[2]-d,w.yOffset+=d*X[1]+p*X[3]-p):w.xOffset=w.yOffset=0),s||t.setAttribute("data-svg-origin",a.join(" "))},vt=function(t){var e,o=v("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,r=this.nextSibling,a=this.style.cssText;if(ht.appendChild(o),o.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=vt}catch(t){}else this._originalGetBBox&&(e=this._originalGetBBox());return r?n.insertBefore(this,r):n.appendChild(this),ht.removeChild(o),this.style.cssText=a,e},$e=function(t){try{return t.getBBox()}catch(e){return vt.call(t,!0)}},nt=function(t){return ft&&t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&$e(t)},ot=[1,0,0,1,0,0],rt=function(t,n){var i,r,a,c,m,u,y=t._gsTransform||new gt,h=1e5,g=t.style;if(ct?r=Ie(t,mt,null,!0):t.currentStyle&&(r=t.currentStyle.filter.match(f),r=r&&4===r.length?[r[0].substr(4),+r[2].substr(4),+r[1].substr(4),r[3].substr(4),y.x||0,y.y||0].join(","):""),i=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,!ct||!(u=!Re(t)||"none"===Re(t).display)&&t.parentNode||(u&&(c=g.display,g.display="block"),t.parentNode||(m=1,ht.appendChild(t)),r=Ie(t,mt,null,!0),i=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,c?g.display=c:u&&Je(g,"display"),m&&ht.removeChild(t)),(y.svg||t.getCTM&&nt(t))&&(i&&-1!==(g[ct]+"").indexOf("matrix")&&(r=g[ct],i=0),a=t.getAttribute("transform"),i&&a&&(-1===a.indexOf("matrix")?-1!==a.indexOf("translate")&&(r="matrix(1,0,0,1,"+a.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",i=0):(r=a,i=0))),i)return ot;for(a=(r||"").match(ee)||[],Ue=a.length;-1<--Ue;)c=+a[Ue],a[Ue]=(m=c-(c|=0))?(0|1e5*m+(0>m?-.5:.5))/1e5+c:c;return n&&6<a.length?[a[0],a[1],a[4],a[5],a[12],a[13]]:a},yt=W.getTransform=function(i,e,a,d){var p=Math.atan2;if(i._gsTransform&&a&&!d)return i._gsTransform;var c,m,u,g,w,k,A=a?i._gsTransform||new gt:new gt,T=0>A.scaleX,h=2e-5,x=1e5,C=Tt?parseFloat(Ie(i,ut,e,!1,"0 0 0").split(" ")[2])||A.zOrigin||0:0,O=parseFloat(E.defaultTransformPerspective)||0;if(A.svg=i.getCTM&&nt(i),A.svg&&(xt(i,Ie(i,ut,e,!1,"50% 50%")+"",A,i.getAttribute("data-svg-origin")),Ve=E.useSVGTransformAttr||_t),c=rt(i),c!==ot){if(16===c.length){var P,D,L,M,B,j=c[0],W=c[1],Z=c[2],Q=c[3],H=c[4],$=c[5],J=c[6],ee=c[7],K=c[8],ne=c[9],oe=c[10],re=c[12],le=c[13],pe=c[14],ce=c[11],ue=p(J,oe);A.zOrigin&&(pe=-A.zOrigin,re=K*pe-c[12],le=ne*pe-c[13],pe=oe*pe+A.zOrigin-c[14]),A.rotationX=ue*s,ue&&(M=Y(-ue),B=o(-ue),P=H*M+K*B,D=$*M+ne*B,L=J*M+oe*B,K=H*-B+K*M,ne=$*-B+ne*M,oe=J*-B+oe*M,ce=ee*-B+ce*M,H=P,$=D,J=L),ue=p(-Z,oe),A.rotationY=ue*s,ue&&(M=Y(-ue),B=o(-ue),P=j*M-K*B,D=W*M-ne*B,L=Z*M-oe*B,ne=W*B+ne*M,oe=Z*B+oe*M,ce=Q*B+ce*M,j=P,W=D,Z=L),ue=p(W,j),A.rotation=ue*s,ue&&(M=Y(ue),B=o(ue),P=j*M+W*B,D=H*M+$*B,L=K*M+ne*B,W=W*M-j*B,$=$*M-H*B,ne=ne*M-K*B,j=P,H=D,K=L),A.rotationX&&359.9<t(A.rotationX)+t(A.rotation)&&(A.rotationX=A.rotation=0,A.rotationY=180-A.rotationY),ue=p(H,$),A.scaleX=(0|1e5*n(j*j+W*W+Z*Z)+.5)/1e5,A.scaleY=(0|1e5*n($*$+J*J)+.5)/1e5,A.scaleZ=(0|1e5*n(K*K+ne*ne+oe*oe)+.5)/1e5,j/=A.scaleX,H/=A.scaleY,W/=A.scaleX,$/=A.scaleY,t(ue)>h?(A.skewX=ue*s,H=0,"simple"!==A.skewType&&(A.scaleY*=1/Y(ue))):A.skewX=0,A.perspective=ce?1/(0>
1ce?-ce:ce):0,A.x=re,A.y=le,A.z=pe,A.svg&&(A.x-=A.xOrigin-(A.xOrigin*j-A.yOrigin*H),A.y-=A.yOrigin-(A.yOrigin*W-A.xOrigin*$))}else if(!Tt||d||!c.length||A.x!==c[4]||A.y!==c[5]||!A.rotationX&&!A.rotationY){var _e=6<=c.length,ye=_e?c[0]:1,xe=c[1]||0,he=c[2]||0,be=_e?c[3]:1;A.x=c[4]||0,A.y=c[5]||0,u=n(ye*ye+xe*xe),g=n(be*be+he*he),w=ye||xe?p(xe,ye)*s:A.rotation||0,k=he||be?p(he,be)*s+w:A.skewX||0,A.scaleX=u,A.scaleY=g,A.rotation=w,A.skewX=k,Tt&&(A.rotationX=A.rotationY=A.z=0,A.perspective=O,A.scaleZ=1),A.svg&&(A.x-=A.xOrigin-(A.xOrigin*ye+A.yOrigin*he),A.y-=A.yOrigin-(A.xOrigin*xe+A.yOrigin*be))}for(m in 90<t(A.skewX)&&270>t(A.skewX)&&(T?(A.scaleX*=-1,A.skewX+=0>=A.rotation?180:-180,A.rotation+=0>=A.rotation?180:-180):(A.scaleY*=-1,A.skewX+=0>=A.skewX?180:-180)),A.zOrigin=C,A)A[m]<h&&A[m]>-h&&(A[m]=0)}return a&&(i._gsTransform=A,A.svg&&(Ve&&i.style[ct]?l.delayedCall(.001,function(){Je(i.style,ct)}):!Ve&&i.getAttribute("transform")&&l.delayedCall(.001,function(){i.removeAttribute("transform")}))),A},lt=function(e){var t,l,c=this.data,d=-c.rotation*ze,r=d+c.skewX*ze,p=1e5,m=(0|1e5*(Y(d)*c.scaleX))/1e5,a=(0|1e5*(o(d)*c.scaleX))/1e5,u=(0|1e5*(o(r)*-c.scaleY))/1e5,_=(0|1e5*(Y(r)*c.scaleY))/1e5,v=this.t.style,b=this.t.currentStyle;if(b){l=a,a=-u,u=-l,t=b.filter,v.filter="";var x,k,P=this.t.offsetWidth,S=this.t.offsetHeight,C="absolute"!==b.position,w="progid:DXImageTransform.Microsoft.Matrix(M11="+m+", M12="+a+", M21="+u+", M22="+_,L=c.x+P*c.xPercent/100,F=c.y+S*c.yPercent/100;if(null!=c.ox&&(x=(c.oxp?.01*(P*c.ox):c.ox)-P/2,k=(c.oyp?.01*(S*c.oy):c.oy)-S/2,L+=x-(x*m+k*a),F+=k-(x*u+k*_)),C?(x=P/2,k=S/2,w+=", Dx="+(x-(x*m+k*a)+L)+", Dy="+(k-(x*u+k*_)+F)+")"):w+=", sizingMethod='auto expand')",v.filter=-1===t.indexOf("DXImageTransform.Microsoft.Matrix(")?w+" "+t:t.replace(ge,w),0!==e&&1!==e||1===m&&0===a&&0===u&&1===_&&(C&&-1===w.indexOf("Dx=0, Dy=0")||ie.test(t)&&100!==parseFloat(RegExp.$1)||-1===t.indexOf(t.indexOf("Alpha"))&&v.removeAttribute("filter")),!C){var N,M,X,B=8>h?1:-1;for(x=c.ieOffsetX||0,k=c.ieOffsetY||0,c.ieOffsetX=i((P-((0>m?-m:m)*P+(0>a?-a:a)*S))/2+L),c.ieOffsetY=i((S-((0>_?-_:_)*S+(0>u?-u:u)*P))/2+F),Ue=0;4>Ue;Ue++)M=xe[Ue],N=b[M],l=-1===N.indexOf("px")?Fe(this.t,M,parseFloat(N),N.replace(K,""))||0:parseFloat(N),X=l===c[M]?2>Ue?x-c.ieOffsetX:k-c.ieOffsetY:2>Ue?-c.ieOffsetX:-c.ieOffsetY,v[M]=(c[M]=i(l-X*(0===Ue||2===Ue?1:B)))+"px"}}},bt=W.set3DTransformRatio=W.setTransformRatio=function(e){var t,r,s,l,c,m,u,f,b,k,P,C,A,D,F,N,X,B,H,V,G,q,Q,J=Math.tan,ee=this.data,K=this.t.style,te=ee.rotation,re=ee.rotationX,ie=ee.rotationY,ne=ee.scaleX,le=ee.scaleY,me=ee.scaleZ,ue=ee.x,ge=ee.y,fe=ee.z,xe=ee.svg,_e=ee.perspective,be=ee.force3D,ye=ee.skewY,ve=ee.skewX;if(ye&&(ve+=ye,te+=ye),((1===e||0===e)&&"auto"===be&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!be)&&!fe&&!_e&&!ie&&!re&&1===me||Ve&&xe||!Tt)return void(te||ve||xe?(te*=ze,q=ve*ze,Q=1e5,r=Y(te)*ne,c=o(te)*ne,s=o(te-q)*-le,m=Y(te-q)*le,q&&"simple"===ee.skewType&&(t=J(q-ye*ze),t=n(1+t*t),s*=t,m*=t,ye&&(t=J(ye*ze),t=n(1+t*t),r*=t,c*=t)),xe&&(ue+=ee.xOrigin-(ee.xOrigin*r+ee.yOrigin*s)+ee.xOffset,ge+=ee.yOrigin-(ee.xOrigin*c+ee.yOrigin*m)+ee.yOffset,Ve&&(ee.xPercent||ee.yPercent)&&(F=this.t.getBBox(),ue+=.01*ee.xPercent*F.width,ge+=.01*ee.yPercent*F.height),F=1e-6,ue<F&&ue>-F&&(ue=0),ge<F&&ge>-F&&(ge=0)),H=(0|r*Q)/Q+","+(0|c*Q)/Q+","+(0|s*Q)/Q+","+(0|m*Q)/Q+","+ue+","+ge+")",xe&&Ve?this.t.setAttribute("transform","matrix("+H):K[ct]=(ee.xPercent||ee.yPercent?"translate("+ee.xPercent+"%,"+ee.yPercent+"%) matrix(":"matrix(")+H):K[ct]=(ee.xPercent||ee.yPercent?"translate("+ee.xPercent+"%,"+ee.yPercent+"%) matrix(":"matrix(")+ne+",0,0,"+le+","+ue+","+ge+")");if(L&&(F=1e-4,ne<F&&ne>-F&&(ne=me=2e-5),le<F&&le>-F&&(le=me=2e-5),!_e||ee.z||ee.rotationX||ee.rotationY||(_e=0)),te||ve)te*=ze,N=r=Y(te),X=c=o(te),ve&&(te-=ve*ze,N=Y(te),X=o(te),"simple"===ee.skewType&&(t=J((ve-ye)*ze),t=n(1+t*t),N*=t,X*=t,ee.skewY&&(t=J(ye*ze),t=n(1+t*t),r*=t,c*=t))),s=-X,m=N;else{if(!(ie||re||1!==me||_e||xe))return void(K[ct]=(ee.xPercent||ee.yPercent?"translate("+ee.xPercent+"%,"+ee.yPercent+"%) translate3d(":"translate3d(")+ue+"px,"+ge+"px,"+fe+"px)"+(1!==ne||1!==le?" scale("+ne+","+le+")":""));r=m=1,s=c=0}k=1,l=u=f=b=P=C=0,A=_e?-1/_e:0,D=ee.zOrigin,F=1e-6,V=",",G="0",te=ie*ze,te&&(N=Y(te),X=o(te),f=-X,P=A*-X,l=r*X,u=c*X,k=N,A*=N,r*=N,c*=N),te=re*ze,te&&(N=Y(te),X=o(te),t=s*N+l*X,B=m*N+u*X,b=k*X,C=A*X,l=s*-X+l*N,u=m*-X+u*N,k*=N,A*=N,s=t,m=B),1!==me&&(l*=me,u*=me,k*=me,A*=me),1!==le&&(s*=le,m*=le,b*=le,C*=le),1!==ne&&(r*=ne,c*=ne,f*=ne,P*=ne),(D||xe)&&(D&&(ue+=l*-D,ge+=u*-D,fe+=k*-D+D),xe&&(ue+=ee.xOrigin-(ee.xOrigin*r+ee.yOrigin*s)+ee.xOffset,ge+=ee.yOrigin-(ee.xOrigin*c+ee.yOrigin*m)+ee.yOffset),ue<F&&ue>-F&&(ue=G),ge<F&&ge>-F&&(ge=G),fe<F&&fe>-F&&(fe=0)),H=ee.xPercent||ee.yPercent?"translate("+ee.xPercent+"%,"+ee.yPercent+"%) matrix3d(":"matrix3d(",H+=(r<F&&r>-F?G:r)+V+(c<F&&c>-F?G:c)+V+(f<F&&f>-F?G:f),H+=V+(P<F&&P>-F?G:P)+V+(s<F&&s>-F?G:s)+V+(m<F&&m>-F?G:m),re||ie||1!==me?(H+=V+(b<F&&b>-F?G:b)+V+(C<F&&C>-F?G:C)+V+(l<F&&l>-F?G:l),H+=V+(u<F&&u>-F?G:u)+V+(k<F&&k>-F?G:k)+V+(A<F&&A>-F?G:A)+V):H+=",0,0,0,0,1,0,",H+=ue+V+ge+V+fe+V+(_e?1+-fe/_e:1)+")",K[ct]=H};d=gt.prototype,d.x=d.y=d.z=d.skewX=d.skewY=d.rotation=d.rotationX=d.rotationY=d.zOrigin=d.xPercent=d.yPercent=d.xOffset=d.yOffset=0,d.scaleX=d.scaleY=d.scaleZ=1,tt("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,
vendor: 4,846 bytes, line 1
1i,n,r,a,s){if(n._lastParsedTransform===s)return r;n._lastParsedTransform=s;var d,m=s.scale&&"function"==typeof s.scale?s.scale:0;"function"==typeof s[i]&&(d=s[i],s[i]=e),m&&(s.scale=m(Q,t));var c,g,h,y,x,T,k,C,A,D=t._gsTransform,R=t.style,I=1e-6,S=it.length,F=s,N={},M="transformOrigin",X=yt(t,H,!0,F.parseTransform),B=F.transform&&("function"==typeof F.transform?F.transform(Q,q):F.transform);if(X.skewType=F.skewType||X.skewType||E.defaultSkewType,n._transform=X,B&&"string"==typeof B&&ct)g=U.style,g[ct]=B,g.display="block",g.position="absolute",Le.body.appendChild(U),c=yt(U,null,!1),"simple"===X.skewType&&(c.scaleY*=Y(c.skewX*ze)),X.svg&&(T=X.xOrigin,k=X.yOrigin,c.x-=X.xOffset,c.y-=X.yOffset,(F.transformOrigin||F.svgOrigin)&&(B={},xt(t,we(F.transformOrigin),B,F.svgOrigin,F.smoothOrigin,!0),T=B.xOrigin,k=B.yOrigin,c.x-=B.xOffset-X.xOffset,c.y-=B.yOffset-X.yOffset),(T||k)&&(C=rt(U,!0),c.x-=T-(T*C[0]+k*C[2]),c.y-=k-(T*C[1]+k*C[3]))),Le.body.removeChild(U),c.perspective||(c.perspective=X.perspective),null!=F.xPercent&&(c.xPercent=Se(F.xPercent,X.xPercent)),null!=F.yPercent&&(c.yPercent=Se(F.yPercent,X.yPercent));else if("object"==typeof F){if(c={scaleX:Se(null==F.scaleX?F.scale:F.scaleX,X.scaleX),scaleY:Se(null==F.scaleY?F.scale:F.scaleY,X.scaleY),scaleZ:Se(F.scaleZ,X.scaleZ),x:Se(F.x,X.x),y:Se(F.y,X.y),z:Se(F.z,X.z),xPercent:Se(F.xPercent,X.xPercent),yPercent:Se(F.yPercent,X.yPercent),perspective:Se(F.transformPerspective,X.perspective)},x=F.directionalRotation,null!=x)if("object"==typeof x)for(g in x)F[g]=x[g];else F.rotation=x;"string"==typeof F.x&&-1!==F.x.indexOf("%")&&(c.x=0,c.xPercent=Se(F.x,X.xPercent)),"string"==typeof F.y&&-1!==F.y.indexOf("%")&&(c.y=0,c.yPercent=Se(F.y,X.yPercent)),c.rotation=Ee("rotation"in F?F.rotation:"shortRotation"in F?F.shortRotation+"_short":"rotationZ"in F?F.rotationZ:X.rotation,X.rotation,"rotation",N),Tt&&(c.rotationX=Ee("rotationX"in F?F.rotationX:"shortRotationX"in F?F.shortRotationX+"_short":X.rotationX||0,X.rotationX,"rotationX",N),c.rotationY=Ee("rotationY"in F?F.rotationY:"shortRotationY"in F?F.shortRotationY+"_short":X.rotationY||0,X.rotationY,"rotationY",N)),c.skewX=Ee(F.skewX,X.skewX),c.skewY=Ee(F.skewY,X.skewY)}for(Tt&&null!=F.force3D&&(X.force3D=F.force3D,y=!0),h=X.force3D||X.z||X.rotationX||X.rotationY||c.z||c.rotationX||c.rotationY||c.perspective,h||null==F.scale||(c.scaleZ=1);-1<--S;)A=it[S],B=c[A]-X[A],(B>I||B<-I||null!=F[A]||null!=u[A])&&(y=!0,r=new He(X,A,X[A],B,r),A in N&&(r.e=N[A]),r.xs0=0,r.plugin=a,n._overwriteProps.push(r.n));return B=F.transformOrigin,X.svg&&(B||F.svgOrigin)&&(T=X.xOffset,k=X.yOffset,xt(t,we(B),c,F.svgOrigin,F.smoothOrigin),r=Me(X,"xOrigin",(D?X:c).xOrigin,c.xOrigin,r,"transformOrigin"),r=Me(X,"yOrigin",(D?X:c).yOrigin,c.yOrigin,r,"transformOrigin"),T===X.xOffset&&k===X.yOffset||(r=Me(X,"xOffset",D?T:X.xOffset,X.xOffset,r,"transformOrigin"),r=Me(X,"yOffset",D?k:X.yOffset,X.yOffset,r,"transformOrigin")),B="0px 0px"),(B||Tt&&h&&X.zOrigin)&&(ct?(y=!0,A=ut,B=(B||Ie(t,A,H,!1,"50% 50%"))+"",r=new He(R,A,0,0,r,-1,"transformOrigin"),r.b=R[A],r.plugin=a,Tt?(g=X.zOrigin,B=B.split(" "),X.zOrigin=(2<B.length&&(0===g||"0px"!==B[2])?parseFloat(B[2]):g)||0,r.xs0=r.e=B[0]+" "+(B[1]||"50%")+" 0px",r=new He(X,"zOrigin",0,0,r,-1,r.n),r.b=g,r.xs0=r.e=X.zOrigin):r.xs0=r.e=B):we(B+"",X)),y&&(n._transformType=X.svg&&Ve||!h&&3!==this._transformType?2:3),d&&(s[i]=d),m&&(s.scale=m),r},prefix:!0}),tt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),tt("borderRadius",{defaultValue:"0px",parser:function(t,e,n,r,a,d){e=this.format(e);var s,p,g,f,h,_,y,b,w,P,S,D,z,L,R,N,X=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],W=t.style;for(w=parseFloat(t.offsetWidth),P=parseFloat(t.offsetHeight),s=e.split(" "),p=0;p<X.length;p++)this.p.indexOf("border")&&(X[p]=re(X[p])),h=f=Ie(t,X[p],H,!1,"0px"),-1!==h.indexOf(" ")&&(f=h.split(" "),h=f[0],f=f[1]),_=g=s[p],y=parseFloat(h),D=h.substr((y+"").length),z="="===_.charAt(1),z?(b=parseInt(_.charAt(0)+"1",10),_=_.substr(2),b*=parseFloat(_),S=_.substr((b+"").length-(0>b?1:0))||""):(b=parseFloat(_),S=_.substr((b+"").length)),""===S&&(S=T[n]||D),S!==D&&(L=Fe(t,"borderLeft",y,D),R=Fe(t,"borderTop",y,D),"%"===S?(h=100*(L/w)+"%",f=100*(R/P)+"%"):"em"===S?(N=Fe(t,"borderLeft",1,"em"),h=L/N+"em",f=R/N+"em"):(h=L+"px",f=R+"px"),z&&(_=parseFloat(h)+b+S,g=parseFloat(f)+b+S)),a=Be(W,X[p],h+" "+f,_+" "+g,!1,"0px",a);return a},prefix:!0,formatter:je("0px 0px 0px 0px",!1,!0)}),tt("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(e,i,n,a,o,r){return Be(e.style,n,this.format(Ie(e,n,H,!1,"0px 0px")),this.format(i),!1,"0px",o)},prefix:!0,formatter:je("0px 0px",!1,!0)}),tt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,
1i,n,o,a){var s,u,g,f,b,w,k="background-position",y=H||Re(t,null),x=this.format((y?h?y.getPropertyValue("background-position-x")+" "+y.getPropertyValue("background-position-y"):y.getPropertyValue("background-position"):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),P=this.format(e);if(-1!==x.indexOf("%")!=(-1!==P.indexOf("%"))&&2>P.split(",").length&&(w=Ie(t,"backgroundImage").replace(m,""),w&&"none"!==w)){for(s=x.split(" "),u=P.split(" "),j.setAttribute("src",w),g=2;-1<--g;)x=s[g],f=-1!==x.indexOf("%"),f!==(-1!==u[g].indexOf("%"))&&(b=0===g?t.offsetWidth-j.width:t.offsetHeight-j.height,s[g]=f?parseFloat(x)/100*b+"px":100*(parseFloat(x)/b)+"%");x=s.join(" ")}return this.parseComplex(t.style,x,P,o,a)},formatter:we}),tt("backgroundSize",{defaultValue:"0 0",formatter:function(t){return t+="",we(-1===t.indexOf(" ")?t+" "+t:t)}}),tt("perspective",{defaultValue:"0px",prefix:!0}),tt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),tt("transformStyle",{prefix:!0}),tt("backfaceVisibility",{prefix:!0}),tt("userSelect",{prefix:!0}),tt("margin",{parser:We("marginTop,marginRight,marginBottom,marginLeft")}),tt("padding",{parser:We("paddingTop,paddingRight,paddingBottom,paddingLeft")}),tt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,s,o){var a,c,m;return 9>h?(c=t.currentStyle,m=8>h?" ":",",a="rect("+c.clipTop+m+c.clipRight+m+c.clipBottom+m+c.clipLeft+")",e=this.format(e).split(",").join(m)):(a=this.format(Ie(t,this.p,H,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,a,e,s,o)}}),tt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),tt("autoRound,strictUnits",{parser:function(t,e,i,n,r){return r}}),tt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,n,s,o){var a=Ie(t,"borderTopWidth",H,!1,"0px"),l=this.format(e).split(" "),d=l[0].replace(K,"");return"px"!==d&&(a=parseFloat(a)/Fe(t,"borderTopWidth",1,d)+d),this.parseComplex(t.style,this.format(a+" "+Ie(t,"borderTopStyle",H,!1,"solid")+" "+Ie(t,"borderTopColor",H,!1,"#000")),l.join(" "),s,o)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(Ae)||["#000"])[0]}}),tt("borderWidth",{parser:We("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),tt("float,cssFloat,styleFloat",{parser:function(t,e,i,n,r,s){var o=t.style,a="cssFloat"in o?"cssFloat":"styleFloat";return new He(o,a,0,0,r,-1,i,!1,0,o[a],e)}});var Qe=function(i){var e,o=this.t,r=o.filter||Ie(this.data,"filter")||"",s=0|this.s+this.c*i;100==s&&(-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(o.removeAttribute("filter"),e=!Ie(this.data,"filter")):(o.filter=r.replace(se,""),e=!0)),e||(this.xn1&&(o.filter=r=r||"alpha(opacity="+s+")"),-1===r.indexOf("pacity")?0===s&&this.xn1||(o.filter=r+" alpha(opacity="+s+")"):o.filter=r.replace(ie,"opacity="+s))};tt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,r,n,o,s){var l=parseFloat(Ie(t,"opacity",H,!1,"1")),d=t.style,c="autoAlpha"===r;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+l),c&&1===l&&"hidden"===Ie(t,"visibility",H)&&0!==e&&(l=0),J?o=new He(d,"opacity",l,e-l,o):(o=new He(d,"opacity",100*l,100*(e-l),o),o.xn1=c?1:0,d.zoom=1,o.type=2,o.b="alpha(opacity="+o.s+")",o.e="alpha(opacity="+(o.s+o.c)+")",o.data=t,o.plugin=s,o.setRatio=Qe),c&&(o=new He(d,"visibility",0,0,o,-1,null,!1,0,0===l?"hidden":"inherit",0===e?"hidden":"inherit"),o.xs0="inherit",n._overwriteProps.push(o.n),n._overwriteProps.push(r)),o}});var Je=function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(S,"-$1").toLowerCase())):t.removeAttribute(e))},at=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,n=this.t.style;e;)e.v?n[e.p]=e.v:Je(n,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};tt("className",{parser:function(o,e,n,r,t,d,a){var l,m,f,_,x,b=o.getAttribute("class")||"",y=o.style.cssText;if(t=r._classNamePT=new He(o,n,0,0,t,2),t.setRatio=at,t.pr=-11,g=!0,t.b=b,m=_e(o,H),f=o._gsClassPT){for(_={},x=f.data;x;)_[x.p]=1,x=x._next;f.setRatio(1)}return o._gsClassPT=t,t.e="="===e.charAt(1)?b.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""):e,o.setAttribute("class",t.e),l=Ne(o,m,_e(o),a,_),o.setAttribute("class",b),t.data=l.firstMPT,o.style.cssText=y,t=t.xfirst=r.parse(o,l.difs,t,d)}});var st=function(i){if((1===i||0===i)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,n,o,r,s,c=this.t.style,u=C.transform.parse;if("all"===this.e)c.cssText="",r=!0;else for(e=this.e.split(" ").join("").split(","),o=e.length;-1<--o;)n=e[o],C[n]&&(C[n].parse===u?r=!0:n="transformOrigin"===n?ut:C[n].p),Je(c,n);r&&(Je(c,ct),s=this.t._gsTransform,s&&(s.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(tt("clearProps",{parser:function(r,e,n,o,t){return t=new He(r,n,0,0,t,2),t.setRatio=st,t.e=e,t.pr=-10,t.data=o._tween,g=!0,t}}),d=["bezier","throwProps","physicsProps","physics2D"],Ue=d.length;Ue--;)Ze(d[Ue]);d=E.prototype,d._firstPT=d._lastParsedTransform=d._transform=null,d._onInitTween=function(i,e,r,n){if(!i.nodeType)return!1;this._target=q=i,this._tween=r,this._vars=e,Q=n,z=e.autoRound,g=!1,T=e.suffixMap||E.suffixMap,H=Re(i,""),w=this._overwriteProps;var o,l,p,m,_,b,P,S,A,D=i.style;if(k&&""===D.zIndex&&(o=Ie(i,"zIndex",H),"auto"!==o&&""!==o||this._addLazySet(D,"zIndex",0)),"string"==typeof e&&(m=D.cssText,o=_e(i,H),D.cssText=m+";"+e,o=Ne(i,o,_e(i)).difs,!J&&ae.test(e)&&(o.opacity=parseFloat(RegExp.$1)),e=o,D.cssText=m),this._firstPT=e.className?l=C.className.parse(i,e.className,"className",this,null,null,e):l=this.parse(i,e,null),this._transformType){for(A=3===this._transformType,ct?O&&(k=!0,""===D.zIndex&&(P=Ie(i,"zIndex",H),"auto"!==P&&""!==P||this._addLazySet(D,"zIndex",0)),B&&this._addLazySet(D,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(A?"visible":"hidden"))):D.zoom=1,p=l;p&&p._next;)p=p._next;S=new He(i,"transform",0,0,null,2),this._linkCSSP(S,null,p),S.setRatio=ct?bt:lt,S.data=this._transform||yt(i,H,!0),S.tween=r,S.pr=-1,w.pop()}if(g){for(;l;){for(b=l._next,p=m;p&&p.pr>l.pr;)p=p._next;(l._prev=p?p._prev:_)?l._prev._next=l:m=l,(l._next=p)?p._prev=l:_=l,l=b}this._firstPT=m}return!0}
1,d.parse=function(t,e,i,a){var r,s,l,d,p,g,_,b,w,P,E=t.style;for(r in e){if(g=e[r],"function"==typeof g&&(g=g(Q,q)),s=C[r])i=s.parse(t,g,r,this,i,a,e);else{if("--"===r.substr(0,2)){this._tween._propLookup[r]=this._addTween.call(this._tween,t.style,"setProperty",Re(t).getPropertyValue(r)+"",g+"",r,!1,r);continue}p=Ie(t,r,H)+"",w="string"==typeof g,"color"===r||"fill"===r||"stroke"===r||-1!==r.indexOf("Color")||w&&de.test(g)?(w||(g=Ce(g),g=(3<g.length?"rgba(":"rgb(")+g.join(",")+")"),i=Be(E,r,p,g,!0,"transparent",i,0,a)):w&&he.test(g)?i=Be(E,r,p,g,!0,null,i,0,a):(l=parseFloat(p),_=l||0===l?p.substr((l+"").length):"",""!==p&&"auto"!==p||("width"===r||"height"===r?(l=Te(t,r,H),_="px"):"left"===r||"top"===r?(l=ye(t,r,H),_="px"):(l="opacity"===r?1:0,_="")),P=w&&"="===g.charAt(1),P?(d=parseInt(g.charAt(0)+"1",10),g=g.substr(2),d*=parseFloat(g),b=g.replace(K,"")):(d=parseFloat(g),b=w?g.replace(K,""):""),""===b&&(b=r in T?T[r]:_),g=d||0===d?(P?d+l:d)+b:e[r],_!==b&&(""===b&&"lineHeight"!==r||(d||0===d)&&l&&(l=Fe(t,r,l,_),"%"===b?(l/=Fe(t,r,100,"%")/100,!0!==e.strictUnits&&(p=l+"%")):"em"===b||"rem"===b||"vw"===b||"vh"===b?l/=Fe(t,r,1,b):"px"!==b&&(d=Fe(t,r,d,b),b="px"),P&&(d||0===d)&&(g=d+l+b))),P&&(d+=l),(l||0===l)&&(d||0===d)?(i=new He(E,r,l,d-l,i,0,r,!1!==z&&("px"===b||"zIndex"===r),0,p,g),i.xs0=b):void 0!==E[r]&&(g||"NaN"!=g+""&&null!=g)?(i=new He(E,r,d||l||0,0,i,-1,r,!1,0,p,g),i.xs0="none"!==g||"display"!==r&&-1===r.indexOf("Style")?g:p):ne("invalid "+r+" tween value: "+e[r]))}a&&i&&!i.plugin&&(i.plugin=a)}return i},d.setRatio=function(e){var t,r,a,s=this._firstPT,d=1e-6;if(1===e&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;s;){if(2===s.type)s.setRatio(e);else if(!(s.r&&-1!==s.type))s.t[s.p]=s.e;else if(t=i(s.s+s.c),!s.type)s.t[s.p]=t+s.xs0;else if(1===s.type){for(a=s.l,r=s.xs0+t+s.xs1,a=1;a<s.l;a++)r+=s["xn"+a]+s["xs"+(a+1)];s.t[s.p]=r}s=s._next}else if(e||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;s;){if(t=s.c*e+s.s,s.r?t=i(t):t<d&&t>-d&&(t=0),!s.type)s.t[s.p]=t+s.xs0;else if(1!==s.type)-1===s.type?s.t[s.p]=s.xs0:s.setRatio&&s.setRatio(e);else if(a=s.l,2===a)s.t[s.p]=s.xs0+t+s.xs1+s.xn1+s.xs2;else if(3===a)s.t[s.p]=s.xs0+t+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3;else if(4===a)s.t[s.p]=s.xs0+t+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4;else if(5===a)s.t[s.p]=s.xs0+t+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4+s.xn4+s.xs5;else{for(r=s.xs0+t+s.xs1,a=1;a<s.l;a++)r+=s["xn"+a]+s["xs"+(a+1)];s.t[s.p]=r}s=s._next}else for(;s;)2===s.type?s.setRatio(e):s.t[s.p]=s.b,s=s._next},d._enableTransforms=function(t){this._transform=this._transform||yt(this._target,H,!0),this._transformType=this._transform.svg&&Ve||!t&&3!==this._transformType?2:3};var dt=function(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};d._addLazySet=function(o,t,e){var i=this._firstPT=new He(o,t,0,0,this._firstPT,2);i.e=e,i.setRatio=dt,i.data=this},d._linkCSSP=function(o,t,e,i){return o&&(t&&(t._prev=o),o._next&&(o._next._prev=o._prev),o._prev?o._prev._next=o._next:this._firstPT===o&&(this._firstPT=o._next,i=!0),e?e._next=o:i||null!==this._firstPT||(this._firstPT=o),o._next=t,o._prev=e),o},d._mod=function(e){for(var t=this._firstPT;t;)"function"==typeof e[t.p]&&e[t.p]===i&&(t.r=1),t=t._next},d._kill=function(o){var i,a,l,d=o;if(o.autoAlpha||o.alpha){for(a in d={},o)d[a]=o[a];d.opacity=1,d.autoAlpha&&(d.visibility=1)}for(o.className&&(i=this._classNamePT)&&(l=i.xfirst,l&&l._prev?this._linkCSSP(l._prev,i._next,l._prev._prev):l===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,l._prev),this._classNamePT=null),i=this._firstPT;i;)i.plugin&&i.plugin!==a&&i.plugin._kill&&(i.plugin._kill(o),a=i.plugin),i=i._next;return e.prototype._kill.call(this,d)};var pt=function(o,t,e){var i,r,a,s;if(o.slice)for(r=o.length;-1<--r;)pt(o[r],t,e);else for(i=o.childNodes,r=i.length;-1<--r;)a=i[r],s=a.type,a.style&&(t.push(_e(a)),e&&e.push(a)),(1===s||9===s||11===s)&&a.childNodes.length&&pt(a,t,e)};return E.cascadeTo=function(e,t,n){var o,a,p,g,x=l.to(e,t,n),h=[x],_=[],y=[],m=[],u=l._internals.reservedProps;for(e=x._targets||x.target,pt(e,_,m),x.render(t,!0,!0),pt(e,y),x.render(0,!0,!0),x._enabled(!0),o=m.length;-1<--o;)if(a=Ne(m[o],_[o],y[o]),a.firstMPT){for(p in a=a.difs,n)u[p]&&(a[p]=n[p]);for(p in g={},a)g[p]=_[o][p];h.push(l.fromTo(m[o],t,g,a))}return h},e.activate([E]),E},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"undefined"!=typeof module&&module.exports?(require("../TweenLite.js"),module.exports=e()):"function"==typeof define&&define.amd&&define(["TweenLite"],e)}("CSSPlugin");function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var i,r=0;r<e.length;r++)i=e[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}function _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),t}var Sticky=function(){function o(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,o),this.selector=t,this.elements=[],this.version="1.2.2",this.vp=this.getViewportSize(),this.body=document.querySelector("body"),this.options={wrap:e.wrap||!1,marginTop:e.marginTop||0,stickyFor:e.stickyFor||0,stickyClass:e.stickyClass||null,stickyContainer:e.stickyContainer||"body"},this.updateScrollTopPosition=this.updateScrollTopPosition.bind(this),this.updateScrollTopPosition(),window.addEventListener("load",this.updateScrollTopPosition),window.addEventListener("scroll",this.updateScrollTopPosition),this.run()}var i=Math.max;return _createClass(o,[{key:"run",value:function(){var t=this,i=setInterval(function(){if("complete"===document.readyState){clearInterval(i);var n=document.querySelectorAll(t.selector);t.forEach(n,function(i){return t.renderElement(i)})}},10)}},{key:"renderElement",value:function(t){var e=this;t.sticky={},t.sticky.active=!1,t.sticky.marginTop=parseInt(t.getAttribute("data-margin-top"))||this.options.marginTop,t.sticky.stickyFor=parseInt(t.getAttribute("data-sticky-for"))||this.options.stickyFor,t.sticky.stickyClass=t.getAttribute("data-sticky-class")||this.options.stickyClass,t.sticky.wrap=!!t.hasAttribute("data-sticky-wrap")||this.options.wrap,t.sticky.stickyContainer=this.options.stickyContainer,t.sticky.container=this.getStickyContainer(t),t.sticky.container.rect=this.getRectangle(t.sticky.container),t.sticky.rect=this.getRectangle(t),"img"===t.tagName.toLowerCase()&&(t.onload=function(){return t.sticky.rect=e.getRectangle(t)}),t.sticky.wrap&&this.wrapElement(t),this.activate(t)}},{key:"wrapElement",value:function(t){t.insertAdjacentHTML("beforebegin","<span></span>
1"),t.previousSibling.appendChild(t)}},{key:"activate",value:function(t){t.sticky.rect.top+t.sticky.rect.height<t.sticky.container.rect.top+t.sticky.container.rect.height&&t.sticky.stickyFor<this.vp.width&&!t.sticky.active&&(t.sticky.active=!0),0>this.elements.indexOf(t)&&this.elements.push(t),t.sticky.resizeEvent||(this.initResizeEvents(t),t.sticky.resizeEvent=!0),t.sticky.scrollEvent||(this.initScrollEvents(t),t.sticky.scrollEvent=!0),this.setPosition(t)}},{key:"initResizeEvents",value:function(t){var e=this;t.sticky.resizeListener=function(){return e.onResizeEvents(t)},window.addEventListener("resize",t.sticky.resizeListener)}},{key:"destroyResizeEvents",value:function(t){window.removeEventListener("resize",t.sticky.resizeListener)}},{key:"onResizeEvents",value:function(t){this.vp=this.getViewportSize(),t.sticky.rect=this.getRectangle(t),t.sticky.container.rect=this.getRectangle(t.sticky.container),t.sticky.rect.top+t.sticky.rect.height<t.sticky.container.rect.top+t.sticky.container.rect.height&&t.sticky.stickyFor<this.vp.width&&!t.sticky.active?t.sticky.active=!0:(t.sticky.rect.top+t.sticky.rect.height>=t.sticky.container.rect.top+t.sticky.container.rect.height||t.sticky.stickyFor>=this.vp.width&&t.sticky.active)&&(t.sticky.active=!1),this.setPosition(t)}},{key:"initScrollEvents",value:function(t){var e=this;t.sticky.scrollListener=function(){return e.onScrollEvents(t)},window.addEventListener("scroll",t.sticky.scrollListener)}},{key:"destroyScrollEvents",value:function(t){window.removeEventListener("scroll",t.sticky.scrollListener)}},{key:"onScrollEvents",value:function(t){t.sticky.active&&this.setPosition(t)}},{key:"setPosition",value:function(t){this.css(t,{position:"",width:"",top:"",left:""}),this.vp.height<t.sticky.rect.height||!t.sticky.active||(t.sticky.rect.width||(t.sticky.rect=this.getRectangle(t)),t.sticky.wrap&&this.css(t.parentNode,{display:"block",width:t.sticky.rect.width+"px",height:t.sticky.rect.height+"px"}),0===t.sticky.rect.top&&t.sticky.container===this.body?this.css(t,{position:"fixed",top:t.sticky.rect.top+"px",left:t.sticky.rect.left+"px",width:t.sticky.rect.width+"px"}):this.scrollTop>t.sticky.rect.top-t.sticky.marginTop?(this.css(t,{position:"fixed",width:t.sticky.rect.width+"px",left:t.sticky.rect.left+"px"}),this.scrollTop+t.sticky.rect.height+t.sticky.marginTop>t.sticky.container.rect.top+t.sticky.container.offsetHeight?(t.sticky.stickyClass&&t.classList.remove(t.sticky.stickyClass),this.css(t,{top:t.sticky.container.rect.top+t.sticky.container.offsetHeight-(this.scrollTop+t.sticky.rect.height)+"px"})):(t.sticky.stickyClass&&t.classList.add(t.sticky.stickyClass),this.css(t,{top:t.sticky.marginTop+"px"}))):(t.sticky.stickyClass&&t.classList.remove(t.sticky.stickyClass),this.css(t,{position:"",width:"",top:"",left:""}),t.sticky.wrap&&this.css(t.parentNode,{display:"",width:"",height:""})))}},{key:"update",value:function(){var e=this;this.forEach(this.elements,function(t){t.sticky.rect=e.getRectangle(t),t.sticky.container.rect=e.getRectangle(t.sticky.container),e.activate(t),e.setPosition(t)})}},{key:"destroy",value:function(){var e=this;window.removeEventListener("load",this.updateScrollTopPosition),window.removeEventListener("scroll",this.updateScrollTopPosition),this.forEach(this.elements,function(t){e.destroyResizeEvents(t),e.destroyScrollEvents(t),delete t.sticky})}},{key:"getStickyContainer",value:function(t){for(var e=t.parentNode;!e.hasAttribute("data-sticky-container")&&!e.parentNode.querySelector(t.sticky.stickyContainer)&&e!==this.body;)e=e.parentNode;return e}},{key:"getRectangle",value:function(t){this.css(t,{position:"",width:"",top:"",left:""});for(var a=i(t.offsetWidth,t.clientWidth,t.scrollWidth),o=i(t.offsetHeight,t.clientHeight,t.scrollHeight),n=0,s=0;n+=t.offsetTop||0,s+=t.offsetLeft||0,t=t.offsetParent;);return{top:n,left:s,width:a,height:o}}},{key:"getViewportSize",value:function(){return{width:i(document.documentElement.clientWidth,window.innerWidth||0),height:i(document.documentElement.clientHeight,window.innerHeight||0)}}},{key:"updateScrollTopPosition",value:function(){this.scrollTop=(window.pageYOffset||document.scrollTop)-(document.clientTop||0)||0}}
1,{key:"forEach",value:function(t,e){for(var i=0,r=t.length;i<r;i++)e(t[i])}},{key:"css",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style[i]=e[i])}}]),o}();!function(t,e){"undefined"==typeof exports?"function"==typeof define&&define.amd?define([],function(){return e}):t.Sticky=e:module.exports=e}(this,Sticky);

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.