1/*! For license information please see index.js.LICENSE */ 2!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=101)}([function(t,e,n){"use strict";(function(t,i){n.d(e,"k",(function(){return r})),n.d(e,"m",(function(){return a})),n.d(e,"l",(function(){return o})),n.d(e,"i",(function(){return u})),n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return d})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return _})),n.d(e,"h",(function(){return m})),n.d(e,"j",(function(){return v}));var r="undefined"!=typeof window?window:t.exports&&void 0!==i?i:{},o=function(t){var e={},n=t.document,i=t.GreenSockGlobals=t.GreenSockGlobals||t;if(i.TweenLite)return i.TweenLite;var r,o,a,s,u,c,l,f=function(t){var e,n=t.split("."),r=i;for(e=0;e<n.length;e++)r[n[e]]=r=r[n[e]]||{};return r},h=f("com.greensock"),d=function(t){var e,n=[],i=t.length;for(e=0;e!==i;n.push(t[e++]));return n},p=function(){},_=(c=Object.prototype.toString,l=c.call([]),function(t){return null!=t&&(t instanceof Array||"object"==typeof t&&!!t.push&&c.call(t)===l)}),m={},v=function(t,n,r,o){this.sc=m[t]?m[t].sc:[],m[t]=this,this.gsClass=null,this.func=r;var a=[];this.check=function(s){for(var u,c,l,h,d=n.length,p=d;--d>-1;)(u=m[n[d]]||new v(n[d],[])).gsClass?(a[d]=u.gsClass,p--):s&&u.sc.push(this);if(0===p&&r)for(l=(c=("com.greensock."+t).split(".")).pop(),h=f(c.join("."))[l]=this.gsClass=r.apply(r,a),o&&(i[l]=e[l]=h),d=0;d<this.sc.length;d++)this.sc[d].check()},this.check(!0)},g=t._gsDefine=function(t,e,n,i){return new v(t,e,n,i)},y=h._class=function(t,e,n){return e=e||function(){},g(t,[],(function(){return e}),n),e};g.globals=i;var b=[0,0,1,1],w=y("easing.Ease",(function(t,e,n,i){this._func=t,this._type=n||0,this._power=i||0,this._params=e?b.concat(e):b}),!0),x=w.map={},E=w.register=function(t,e,n,i){for(var r,o,a,s,u=e.split(","),c=u.length,l=(n||"easeIn,easeOut,easeInOut").split(",");--c>-1;)for(o=u[c],r=i?y("easing."+o,null,!0):h.easing[o]||{},a=l.length;--a>-1;)s=l[a],x[o+"."+s]=x[s+o]=r[s]=t.getRatio?t:t[s]||new t};for((a=w.prototype)._calcEnd=!1,a.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,n=this._power,i=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===n?i*=i:2===n?i*=i*i:3===n?i*=i*i*i:4===n&&(i*=i*i*i*i),1===e?1-i:2===e?i:t<.5?i/2:1-i/2},o=(r=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;--o>-1;)a=r[o]+",Power"+o,E(new w(null,null,1,o),a,"easeOut",!0),E(new w(null,null,2,o),a,"easeIn"+(0===o?",easeNone":"")),E(new w(null,null,3,o),a,"easeInOut");x.linear=h.easing.Linear.easeIn,x.swing=h.easing.Quad.easeInOut;var T=y("events.EventDispatcher",(function(t){this._listeners={},this._eventTarget=t||this}));(a=T.prototype).addEventListener=function(t,e,n,i,r){r=r||0;var o,a,c=this._listeners[t],l=0;for(this!==s||u||s.wake(),null==c&&(this._listeners[t]=c=[]),a=c.length;--a>-1;)(o=c[a]).c===e&&o.s===n?c.splice(a,1):0===l&&o.pr<r&&(l=a+1);c.splice(l,0,{c:e,s:n,up:i,pr:r})},a.removeEventListener=function(t,e){var n,i=this._listeners[t];if(i)for(n=i.length;--n>-1;)if(i[n].c===e)return void i.splice(n,1)},a.dispatchEvent=function(t){var e,n,i,r=this._listeners[t];if(r)for((e=r.length)>1&&(r=r.slice(0)),n=this._eventTarget;--e>-1;)(i=r[e])&&(i.up?i.c.call(i.s||n,{type:t,target:n}):i.c.call(i.s||n))};var P=t.requestAnimationFrame,A=t.cancelAnimationFrame,C=Date.now||function(){return(new Date).getTime()},O=C();
vendor: 11,093 bytes, line 2
2for(o=(r=["ms","moz","webkit","o"]).length;--o>-1&&!P;)P=t[r[o]+"RequestAnimationFrame"],A=t[r[o]+"CancelAnimationFrame"]||t[r[o]+"CancelRequestAnimationFrame"];y("Ticker",(function(t,e){var i,r,o,a,c,l=this,f=C(),h=!(!1===e||!P)&&"auto",d=500,_=33,m=function(t){var e,n,s=C()-O;s>d&&(f+=s-_),O+=s,l.time=(O-f)/1e3,e=l.time-c,(!i||e>0||!0===t)&&(l.frame++,c+=e+(e>=a?.004:a-e),n=!0),!0!==t&&(o=r(m)),n&&l.dispatchEvent("tick")};T.call(l),l.time=l.frame=0,l.tick=function(){m(!0)},l.lagSmoothing=function(t,e){if(!arguments.length)return d<1e8;d=t||1e8,_=Math.min(e,d,0)},l.sleep=function(){null!=o&&(h&&A?A(o):clearTimeout(o),r=p,o=null,l===s&&(u=!1))},l.wake=function(t){null!==o?l.sleep():t?f+=-O+(O=C()):l.frame>10&&(O=C()-d+5),r=0===i?p:h&&P?P:function(t){return setTimeout(t,1e3*(c-l.time)+1|0)},l===s&&(u=!0),m(2)},l.fps=function(t){if(!arguments.length)return i;a=1/((i=t)||60),c=this.time+a,l.wake()},l.useRAF=function(t){if(!arguments.length)return h;l.sleep(),h=t,l.fps(i)},l.fps(t),setTimeout((function(){"auto"===h&&l.frame<5&&"hidden"!==(n||{}).visibilityState&&l.useRAF(!1)}),1500)})),(a=h.Ticker.prototype=new h.events.EventDispatcher).constructor=h.Ticker;var S=y("core.Animation",(function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!!e.immediateRender,this.data=e.data,this._reversed=!!e.reversed,Y){u||s.wake();var n=this.vars.useFrames?W:Y;n.add(this,n._time),this.vars.paused&&this.paused(!0)}}));s=S.ticker=new h.Ticker,(a=S.prototype)._dirty=a._gc=a._initted=a._paused=!1,a._totalTime=a._time=0,a._rawPrevTime=-1,a._next=a._last=a._onUpdate=a._timeline=a.timeline=null,a._paused=!1;var k=function(){u&&C()-O>2e3&&("hidden"!==(n||{}).visibilityState||!s.lagSmoothing())&&s.wake();var t=setTimeout(k,2e3);t.unref&&t.unref()};k(),a.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},a.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},a.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},a.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},a.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},a.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},a.render=function(t,e,n){},a.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},a.isActive=function(){var t,e=this._timeline,n=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=n&&t<n+this.totalDuration()/this._timeScale-1e-8},a._enabled=function(t,e){return u||s.wake(),this._gc=!t,this._active=this.isActive(),!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},a._kill=function(t,e){return this._enabled(!1,!1)},a.kill=function(t,e){return this._kill(t,e),this},a._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},a._swapSelfInParams=function(t){for(var e=t.length,n=t.concat();--e>-1;)"{self}"===t[e]&&(n[e]=this);return n},a._callback=function(t){var e=this.vars,n=e[t],i=e[t+"Params"],r=e[t+"Scope"]||e.callbackScope||this;switch(i?i.length:0){case 0:n.call(r);break;case 1:n.call(r,i[0]);break;case 2:n.call(r,i[0],i[1]);break;default:n.apply(r,i)}},a.eventCallback=function(t,e,n,i){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"]=_(n)&&-1!==n.join("").indexOf("{self}")?this._swapSelfInParams(n):n,r[t+"Scope"]=i),"onUpdate"===t&&(this._onUpdate=e)}return this},a.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},a.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},a.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},a.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},a.totalTime=function(t,e,n){if(u||s.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!n&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var i=this._totalDuration,r=this._timeline;if(t>i&&!n&&(t=i),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?i-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(D.length&&Q(),this.render(t,e,!1),D.length&&Q())}return this},a.progress=a.totalProgress=function(t,e){var n=this.duration();return arguments.length?this.totalTime(n*t,e):n?this._time/n:this.ratio},a.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},a.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},a.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,n;for(t=t||1e-8,this._timeline&&this._timeline.smoothChildTiming&&(n=(e=this._pauseTime)||0===e?e:this._timeline.totalTime(),this._startTime=n-(n-this._startTime)*this._timeScale/t),this._timeScale=t,n=this.timeline;n&&n.timeline;)n._dirty=!0,n.totalDuration(),n=n.timeline;return this},a.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},a.paused=function(t){if(!arguments.length)return this._paused;var e,n,i=this._timeline;return t!=this._paused&&i&&(u||t||s.wake(),n=(e=i.rawTime())-this._pauseTime,!t&&i.smoothChildTiming&&(this._startTime+=n,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==n&&this._initted&&this.duration()&&(e=i.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var I=y("core.SimpleTimeline",(function(t){S.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0}));(a=I.prototype=new S).constructor=I,a.kill()._gc=!1,a._first=a._last=a._recent=null,a._sortChildren=!1,a.add=a.insert=function(t,e,n,i){var r,o;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=this.rawTime()-(t._timeline.rawTime()-t._pauseTime)),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),r=this._last,this._sortChildren)for(o=t._startTime;r&&r._startTime>o;)r=r._prev;return r?(t._next=r._next,r._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=r,this._recent=t,this._timeline&&this._uncache(!0),this},a._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},a.render=function(t,e,n){var i,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)i=r._next,(r._active||t>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,n):r.render((t-r._startTime)*r._timeScale,e,n)),r=i},a.rawTime=function(){return u||s.wake(),this._totalTime};var R=y("TweenLite",(function(e,n,i){if(S.call(this,n,i),this.render=R.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:R.selector(e)||e;var r,o,a,s=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),u=this.vars.overwrite;if(this._overwrite=u=null==u?q[R.defaultOverwrite]:"number"==typeof u?u>>0:q[u],(s||e instanceof Array||e.push&&_(e))&&"number"!=typeof e[0])for(this._targets=a=d(e),this._propLookup=[],this._siblings=[],r=0;r<a.length;r++)(o=a[r])?"string"!=typeof o?o.length&&o!==t&&o[0]&&(o[0]===t||o[0].nodeType&&o[0].style&&!o.nodeType)?(a.splice(r--,1),this._targets=a=a.concat(d(o))):(this._siblings[r]=J(o,this,!1),1===u&&this._siblings[r].length>1&&tt(o,this,null,1,this._siblings[r])):"string"==typeof(o=a[r--]=R.selector(o))&&a.splice(r+1,1):a.splice(r--,1);else this._propLookup={},this._siblings=J(e,this,!1),1===u&&this._siblings.length>1&&tt(e,this,null,1,this._siblings);(this.vars.immediateRender||0===n&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-1e-8,this.render(Math.min(0,-this._delay)))}),!0),j=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)};(a=R.prototype=new S).constructor=R,a.kill()._gc=!1,a.ratio=0,a._firstPT=a._targets=a._overwrittenProps=a._startAt=null,a._notifyPluginsOfEnabled=a._lazy=!1,R.version="2.1.3",R.defaultEase=a._ease=new w(null,null,1,1),R.defaultOverwrite="auto",R.ticker=s,R.autoSleep=120,R.lagSmoothing=function(t,e){s.lagSmoothing(t,e)},R.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(R.selector=i,i(e)):(n||(n=t.document),n?n.querySelectorAll?n.querySelectorAll(e):n.getElementById("#"===e.charAt(0)?e.substr(1):e):e)};var D=[],M={},L=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,N=/[\+-]=-?[\.\d]/,$=function(t){for(var e,n=this._firstPT;n;)e=n.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:n.c*t+n.s,n.m?e=n.m.call(this._tween,e,this._target||n.t,this._tween):e<1e-6&&e>-1e-6&&!n.blob&&(e=0),n.f?n.fp?n.t[n.p](n.fp,e):n.t[n.p](e):n.t[n.p]=e,n=n._next},F=function(t){return(1e3*t|0)/1e3+""},B=function(t,e,n,i){var r,o,a,s,u,c,l,f=[],h=0,d="",p=0;for(f.start=t,f.end=e,t=f[0]=t+"",e=f[1]=e+"",n&&(n(f),t=f[0],e=f[1]),f.length=0,r=t.match(L)||[],o=e.match(L)||[],i&&(i._next=null,i.blob=1,f._firstPT=f._applyPT=i),u=o.length,s=0;s<u;s++)l=o[s],d+=(c=e.substr(h,e.indexOf(l,h)-h))||!s?c:",",h+=c.length,p?p=(p+1)%5:"rgba("===c.substr(-5)&&(p=1),l===r[s]||r.length<=s?d+=l:(d&&(f.push(d),d=""),a=parseFloat(r[s]),f.push(a),f._firstPT={_next:f._firstPT,t:f,p:f.length-1,s:a,c:("="===l.charAt(1)?parseInt(l.charAt(0)+"1",10)*parseFloat(l.substr(2)):parseFloat(l)-a)||0,f:0,m:p&&p<4?Math.round:F}),h+=l.length;return(d+=e.substr(h))&&f.push(d),f.setRatio=$,N.test(e)&&(f.end=null),f},U=function(t,e,n,i,r,o,a,s,u){"function"==typeof i&&(i=i(u||0,t));var c=typeof t[e],l="function"!==c?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),f="get"!==n?n:l?a?t[l](a):t[l]():t[e],h="str
2ing"==typeof i&&"="===i.charAt(1),d={t:t,p:e,s:f,f:"function"===c,pg:0,n:r||e,m:o?"function"==typeof o?o:Math.round:0,pr:0,c:h?parseInt(i.charAt(0)+"1",10)*parseFloat(i.substr(2)):parseFloat(i)-f||0};if(("number"!=typeof f||"number"!=typeof i&&!h)&&(a||isNaN(f)||!h&&isNaN(i)||"boolean"==typeof f||"boolean"==typeof i?(d.fp=a,d={t:B(f,h?parseFloat(d.s)+d.c+(d.s+"").replace(/[0-9\-\.]/g,""):i,s||R.defaultStringFilter,d),p:"setRatio",s:0,c:1,f:2,pg:0,n:r||e,pr:0,m:0}):(d.s=parseFloat(f),h||(d.c=parseFloat(i)-d.s||0))),d.c)return(d._next=this._firstPT)&&(d._next._prev=d),this._firstPT=d,d},V=R._internals={isArray:_,isSelector:j,lazyTweens:D,blobDif:B},z=R._plugins={},X=V.tweenLookup={},H=0,G=V.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1,stagger:1},q={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},W=S._rootFramesTimeline=new I,Y=S._rootTimeline=new I,K=30,Q=V.lazyRender=function(){var t,e,n=D.length;for(M={},t=0;t<n;t++)(e=D[t])&&!1!==e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0),e._lazy=!1);D.length=0};Y._startTime=s.time,W._startTime=s.frame,Y._active=W._active=!0,setTimeout(Q,1),S._updateRoot=R.render=function(){var t,e,n;if(D.length&&Q(),Y.render((s.time-Y._startTime)*Y._timeScale,!1,!1),W.render((s.frame-W._startTime)*W._timeScale,!1,!1),D.length&&Q(),s.frame>=K){for(n in K=s.frame+(parseInt(R.autoSleep,10)||120),X){for(t=(e=X[n].tweens).length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete X[n]}if((!(n=Y._first)||n._paused)&&R.autoSleep&&!W._first&&1===s._listeners.tick.length){for(;n&&n._paused;)n=n._next;n||s.sleep()}}},s.addEventListener("tick",S._updateRoot);var J=function(t,e,n){var i,r,o=t._gsTweenID;if(X[o||(t._gsTweenID=o="t"+H++)]||(X[o]={target:t,tweens:[]}),e&&((i=X[o].tweens)[r=i.length]=e,n))for(;--r>-1;)i[r]===e&&i.splice(r,1);return X[o].tweens},Z=function(t,e,n,i){var r,o,a=t.vars.onOverwrite;return a&&(r=a(t,e,n,i)),(a=R.onOverwrite)&&(o=a(t,e,n,i)),!1!==r&&!1!==o},tt=function(t,e,n,i,r){var o,a,s,u;if(1===i||i>=4){for(u=r.length,o=0;o<u;o++)if((s=r[o])!==e)s._gc||s._kill(null,t,e)&&(a=!0);else if(5===i)break;return a}var c,l=e._startTime+1e-8,f=[],h=0,d=0===e._duration;for(o=r.length;--o>-1;)(s=r[o])===e||s._gc||s._paused||(s._timeline!==e._timeline?(c=c||et(e,0,d),0===et(s,c,d)&&(f[h++]=s)):s._startTime<=l&&s._startTime+s.totalDuration()/s._timeScale>l&&((d||!s._initted)&&l-s._startTime<=2e-8||(f[h++]=s)));for(o=h;--o>-1;)if(u=(s=f[o])._firstPT,2===i&&s._kill(n,t,e)&&(a=!0),2!==i||!s._firstPT&&s._initted&&u){if(2!==i&&!Z(s,e))continue;s._enabled(!1,!1)&&(a=!0)}return a},et=function(t,e,n){for(var i=t._timeline,r=i._timeScale,o=t._startTime;i._timeline;){if(o+=i._startTime,r*=i._timeScale,i._paused)return-100;i=i._timeline}return(o/=r)>e?o-e:n&&o===e||!t._initted&&o-e<2e-8?1e-8:(o+=t.totalDuration()/t._timeScale/r)>e+1e-8?0:o-e-1e-8};a._init=function(){var t,e,n,i,r,o,a=this.vars,s=this._overwrittenProps,u=this._duration,c=!!a.immediateRender,l=a.ease,f=this._startAt;if(a.startAt){for(i in f&&(f.render(-1,!0),f.kill()),r={},a.startAt)r[i]=a.startAt[i];if(r.data="isStart",r.overwrite=!1,r.immediateRender=!0,r.lazy=c&&!1!==a.lazy,r.startAt=r.delay=null,r.onUpdate=a.onUpdate,r.onUpdateParams=a.onUpdateParams,r.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=R.to(this.target||{},0,r),c)if(this._time>0)this._startAt=null;else if(0!==u)return}else if(a.runBackwards&&0!==u)if(f)f.render(-1,!0),f.kill(),this._startAt=null;else{for(i in 0!==this._time&&(c=!1),n={},a)G[i]&&"autoCSS"!==i||(n[i]=a[i]);if(n.overwrite=0,n.data="isFromStart",n.lazy=c&&!1!==a.lazy,n.immediateRender=c,this._startAt=R.to(this.target,0,n),c){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=l=l?l instanceof w?l:"function"==typeof l?new w(l,a.easeParams):x[l]||R.defaultEase:R.defaultEase,a.easeParams instanceof Array&&l.config&&(this._ease=l.config.apply(l,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(o=this._targets.length,t=0;t<o;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],s?s[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,s,0);if(e&&R._onPluginEvent("_onInitAllProps",this),s&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),a.runBackwards)for(n=this._firstPT;n;)n.s+=n.c,n.c=-n.c,n=n._next;this._onUpdate=a.onUpdate,this._initted=!0}
vendor: 6,220 bytes, line 2
2,a._initProps=function(e,n,i,r,o){var a,s,u,c,l,f;if(null==e)return!1;for(a in M[e._gsTweenID]&&Q(),this.vars.css||e.style&&e!==t&&e.nodeType&&z.css&&!1!==this.vars.autoCSS&&function(t,e){var n,i={};for(n in t)G[n]||n in e&&"transform"!==n&&"x"!==n&&"y"!==n&&"width"!==n&&"height"!==n&&"className"!==n&&"border"!==n||!(!z[n]||z[n]&&z[n]._autoCSS)||(i[n]=t[n],delete t[n]);t.css=i}(this.vars,e),this.vars)if(f=this.vars[a],G[a])f&&(f instanceof Array||f.push&&_(f))&&-1!==f.join("").indexOf("{self}")&&(this.vars[a]=f=this._swapSelfInParams(f,this));else if(z[a]&&(c=new z[a])._onInitTween(e,this.vars[a],this,o)){for(this._firstPT=l={_next:this._firstPT,t:c,p:"setRatio",s:0,c:1,f:1,n:a,pg:1,pr:c._priority,m:0},s=c._overwriteProps.length;--s>-1;)n[c._overwriteProps[s]]=this._firstPT;(c._priority||c._onInitAllProps)&&(u=!0),(c._onDisable||c._onEnable)&&(this._notifyPluginsOfEnabled=!0),l._next&&(l._next._prev=l)}else n[a]=U.call(this,e,a,"get",f,a,0,null,this.vars.stringFilter,o);return r&&this._kill(r,e)?this._initProps(e,n,i,r,o):this._overwrite>1&&this._firstPT&&i.length>1&&tt(e,this,n,this._overwrite,i)?(this._kill(n,e),this._initProps(e,n,i,r,o)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(M[e._gsTweenID]=!0),u)},a.render=function(t,e,n){var i,r,o,a,s=this._time,u=this._duration,c=this._rawPrevTime;if(t>=u-1e-8&&t>=0)this._totalTime=this._time=u,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(i=!0,r="onComplete",n=n||this._timeline.autoRemoveChildren),0===u&&(this._initted||!this.vars.lazy||n)&&(this._startTime===this._timeline._duration&&(t=0),(c<0||t<=0&&t>=-1e-8||1e-8===c&&"isPause"!==this.data)&&c!==t&&(n=!0,c>1e-8&&(r="onReverseComplete")),this._rawPrevTime=a=!e||t||c===t?t:1e-8);else if(t<1e-8)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==s||0===u&&c>0)&&(r="onReverseComplete",i=this._reversed),t>-1e-8?t=0:t<0&&(this._active=!1,0===u&&(this._initted||!this.vars.lazy||n)&&(c>=0&&(1e-8!==c||"isPause"!==this.data)&&(n=!0),this._rawPrevTime=a=!e||t||c===t?t:1e-8)),(!this._initted||this._startAt&&this._startAt.progress())&&(n=!0);else if(this._totalTime=this._time=t,this._easeType){var l=t/u,f=this._easeType,h=this._easePower;(1===f||3===f&&l>=.5)&&(l=1-l),3===f&&(l*=2),1===h?l*=l:2===h?l*=l*l:3===h?l*=l*l*l:4===h&&(l*=l*l*l*l),this.ratio=1===f?1-l:2===f?l:t/u<.5?l/2:1-l/2}else this.ratio=this._ease.getRatio(t/u);if(this._time!==s||n){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!n&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=s,this._rawPrevTime=c,D.push(this),void(this._lazy=[t,e]);this._time&&!i?this.ratio=this._ease.getRatio(this._time/u):i&&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!==s&&t>=0&&(this._active=!0),0===s&&(this._startAt&&(t>=0?this._startAt.render(t,!0,n):r||(r="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==u||e||this._callback("onStart"))),o=this._firstPT;o;)o.f?o.t[o.p](o.c*this.ratio+o.s):o.t[o.p]=o.c*this.ratio+o.s,o=o._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,!0,n),e||(this._time!==s||i||n)&&this._callback("onUpdate")),r&&(this._gc&&!n||(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,!0,n),i&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===u&&1e-8===this._rawPrevTime&&1e-8!==a&&(this._rawPrevTime=0)))}},a._kill=function(t,e,n){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:R.selector(e)||e;var i,r,o,a,s,u,c,l,f,h=n&&this._time&&n._startTime===this._startTime&&this._timeline===n._timeline,d=this._firstPT;if((_(e)||j(e))&&"number"!=typeof e[0])for(i=e.length;--i>-1;)this._kill(t,e[i],n)&&(u=!0);else{if(this._targets){for(i=this._targets.length;--i>-1;)if(e===this._targets[i]){s=this._propLookup[i]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[i]=t?this._overwrittenProps[i]||{}:"all";break}}else{if(e!==this.target)return!1;s=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(s){if(c=t||s,l=t!==r&&"all"!==r&&t!==s&&("object"!=typeof t||!t._tempKill),n&&(R.onOverwrite||this.vars.onOverwrite)){for(o in c)s[o]&&(f||(f=[]),f.push(o));if((f||!t)&&!Z(this,n,e,f))return!1}for(o in c)(a=s[o])&&(h&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,u=!0),a.pg&&a.t._kill(c)&&(u=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete s[o]),l&&(r[o]=1);!this._firstPT&&this._initted&&d&&this._enabled(!1,!1)}}return u},a.invalidate=function(){this._notifyPluginsOfEnabled&&R._onPluginEvent("_onDisable",this);var t=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],S.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-1e-8,this.render(t,!1,!1!==this.vars.lazy)),this},a._enabled=function(t,e){if(u||s.wake(),t&&this._gc){var n,i=this._targets;if(i)for(n=i.length;--n>-1;)this._siblings[n]=J(i[n],this,!0);else this._siblings=J(this.target,this,!0)}return S.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&R._onPluginEvent(t?"_onEnable":"_onDisable",this)},R.to=function(t,e,n){return new R(t,e,n)},R.from=function(t,e,n){return n.runBackwards=!0,n.immediateRender=0!=n.immediateRender,new R(t,e,n)},R.fromTo=function(t,e,n,i){return i.startAt=n,i.immediateRender=0!=i.immediateRender&&0!=n.immediateRender,new R(t,e,i)},R.delayedCall=function(t,e,n,i,r){return new R(e,0,{delay:t,onComplete:e,onCompleteParams:n,callbackScope:i,onReverseComplete:e,onReverseCompleteParams:n,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},R.set=function(t,e){return new R(t,0,e)},R.getTweensOf=function(t,e){if(null==t)return[];var n,i,r,o;
2if(t="string"!=typeof t?t:R.selector(t)||t,(_(t)||j(t))&&"number"!=typeof t[0]){for(n=t.length,i=[];--n>-1;)i=i.concat(R.getTweensOf(t[n],e));for(n=i.length;--n>-1;)for(o=i[n],r=n;--r>-1;)o===i[r]&&i.splice(n,1)}else if(t._gsTweenID)for(n=(i=J(t).concat()).length;--n>-1;)(i[n]._gc||e&&!i[n].isActive())&&i.splice(n,1);return i||[]},R.killTweensOf=R.killDelayedCallsTo=function(t,e,n){"object"==typeof e&&(n=e,e=!1);for(var i=R.getTweensOf(t,e),r=i.length;--r>-1;)i[r]._kill(n,t)};var nt=y("plugins.TweenPlugin",(function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=nt.prototype}),!0);if(a=nt.prototype,nt.version="1.19.0",nt.API=2,a._firstPT=null,a._addTween=U,a.setRatio=$,a._kill=function(t){var e,n=this._overwriteProps,i=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=n.length;--e>-1;)null!=t[n[e]]&&n.splice(e,1);for(;i;)null!=t[i.n]&&(i._next&&(i._next._prev=i._prev),i._prev?(i._prev._next=i._next,i._prev=null):this._firstPT===i&&(this._firstPT=i._next)),i=i._next;return!1},a._mod=a._roundProps=function(t){for(var e,n=this._firstPT;n;)(e=t[this._propName]||null!=n.n&&t[n.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===n.f?n.t._applyPT.m=e:n.m=e),n=n._next},R._onPluginEvent=function(t,e){var n,i,r,o,a,s=e._firstPT;if("_onInitAllProps"===t){for(;s;){for(a=s._next,i=r;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:o)?s._prev._next=s:r=s,(s._next=i)?i._prev=s:o=s,s=a}s=e._firstPT=r}for(;s;)s.pg&&"function"==typeof s.t[t]&&s.t[t]()&&(n=!0),s=s._next;return n},nt.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===nt.API&&(z[(new t[e])._propName]=t[e]);return!0},g.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,n=t.propName,i=t.priority||0,r=t.overwriteProps,o={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=y("plugins."+n.charAt(0).toUpperCase()+n.substr(1)+"Plugin",(function(){nt.call(this,n,i),this._overwriteProps=r||[]}),!0===t.global),s=a.prototype=new nt(n);for(e in s.constructor=a,a.API=t.API,o)"function"==typeof t[e]&&(s[o[e]]=t[e]);return a.version=t.version,nt.activate([a]),a},r=t._gsQueue){for(o=0;o<r.length;o++)r[o]();for(a in m)m[a].func||t.console.log("GSAP encountered missing dependency: "+a)}return u=!1,R}(r),a=r.GreenSockGlobals,s=a.com.greensock,u=s.core.SimpleTimeline,c=s.core.Animation,l=a.Ease,f=a.Linear,h=f,d=a.Power1,p=a.Power2,_=a.Power3,m=a.Power4,v=a.TweenPlugin;s.events.EventDispatcher}).call(this,n(126)(t),n(12))},function(t,e,n){var i;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(n,r){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,u=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},c=o.push,l=o.indexOf,f={},h=f.toString,d=f.hasOwnProperty,p=d.toString,_=p.call(Object),m={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},g=function(t){return null!=t&&t===t.window},y=n.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function w(t,e,n){var i,r,o=(n=n||y).createElement("script");if(o.text=t,e)for(i in b)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function x(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?f[h.call(t)]||"object":typeof t}var E=function(t,e){return new E.fn.init(t,e)};function T(t){var e=!!t&&"length"in t&&t.length,n=x(t);return!v(t)&&!g(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}E.fn=E.prototype={jquery:"3.5.1",constructor:E,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=E.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return E.each(this,t)},map:function(t){return this.pushStack(E.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(E.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},E.extend=E.fn.extend=function(){var t,e,n,i,r,o,a=arguments[0]||{},s=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(t=arguments[s]))for(e in t)i=t[e],"__proto__"!==e&&a!==i&&(c&&i&&(E.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[e],o=r&&!Array.isArray(n)?[]:r||E.isPlainObject(n)?n:{},r=!1,a[e]=E.extend(c,o,i)):void 0!==i&&(a[e]=i));return a},E.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;
vendor: 26,752 bytes, line 2
2return!(!t||"[object Object]"!==h.call(t))&&(!(e=a(t))||"function"==typeof(n=d.call(e,"constructor")&&e.constructor)&&p.call(n)===_)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){w(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(T(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},makeArray:function(t,e){var n=e||[];return null!=t&&(T(Object(t))?E.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:l.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!==a&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,a=[];if(T(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&a.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&a.push(r);return u(a)},guid:1,support:m}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=o[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){f["[object "+e+"]"]=e.toLowerCase()}));var P=function(t){var e,n,i,r,o,a,s,u,c,l,f,h,d,p,_,m,v,g,y,b="sizzle"+1*new Date,w=t.document,x=0,E=0,T=ut(),P=ut(),A=ut(),C=ut(),O=function(t,e){return t===e&&(f=!0),0},S={}.hasOwnProperty,k=[],I=k.pop,R=k.push,j=k.push,D=k.slice,M=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",$="(?:\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",F="\\["+N+"*("+$+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+$+"))|)"+N+"*\\]",B=":("+$+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",U=new RegExp(N+"+","g"),V=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g"),z=new RegExp("^"+N+"*,"+N+"*"),X=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),H=new RegExp(N+"|>"),G=new RegExp(B),q=new RegExp("^"+$+"$"),W={ID:new RegExp("^#("+$+")"),CLASS:new RegExp("^\\.("+$+")"),TAG:new RegExp("^("+$+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},it=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){h()},at=bt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{j.apply(k=D.call(w.childNodes),w.childNodes),k[w.childNodes.length].nodeType}catch(t){j={apply:k.length?function(t,e){R.apply(t,D.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function st(t,e,i,r){var o,s,c,l,f,p,v,g=e&&e.ownerDocument,w=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==w&&9!==w&&11!==w)return i;if(!r&&(h(e),e=e||d,_)){if(11!==w&&(f=Z.exec(t)))if(o=f[1]){if(9===w){if(!(c=e.getElementById(o)))return i;if(c.id===o)return i.push(c),i}else if(g&&(c=g.getElementById(o))&&y(e,c)&&c.id===o)return i.push(c),i}else{if(f[2])return j.apply(i,e.getElementsByTagName(t)),i;if((o=f[3])&&n.getElementsByClassName&&e.getElementsByClassName)return j.apply(i,e.getElementsByClassName(o)),i}if(n.qsa&&!C[t+" "]&&(!m||!m.test(t))&&(1!==w||"object"!==e.nodeName.toLowerCase())){if(v=t,g=e,1===w&&(H.test(t)||X.test(t))){for((g=tt.test(t)&&vt(e.parentNode)||e)===e&&n.scope||((l=e.getAttribute("id"))?l=l.replace(it,rt):e.setAttribute("id",l=b)),s=(p=a(t)).length;s--;)p[s]=(l?"#"+l:":scope")+" "+yt(p[s]);v=p.join(",")}try{return j.apply(i,g.querySelectorAll(v)),i}catch(e){C(t,!0)}finally{l===b&&e.removeAttribute("id")}}}return u(t.replace(V,"$1"),e,i,r)}function ut(){var t=[];return function e(n,r){return t.push(n+" ")>i.cacheLength&&delete e[t.shift()],e[n+" "]=r}}function ct(t){return t[b]=!0,t}function lt(t){var e=d.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ft(t,e){for(var n=t.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=e}function ht(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function dt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function _t(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function mt(t){return ct((function(e){return e=+e,ct((function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=st.support={},o=st.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!Y.test(e||n&&n.nodeName||"HTML")},h=st.setDocument=function(t){var e,r,a=t?t.ownerDocument||t:w;return a!=d&&9===a.nodeType&&a.documentElement?(p=(d=a).documentElement,_=!o(d),w!=d&&(r=d.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ot,!1):r.attachEvent&&r.attachEvent("onunload",ot)),n.scope=lt((function(t){return p.appendChild(t).appendChild(d.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=lt((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=lt((function(t){return t.appendChild(d.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(d.getElementsByClassName),n.getById=lt((function(t){return p.appendChild(t).id=b,!d.getElementsByName||!d.getElementsByName(b).length})),n.getById?(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&_){var n=e.getElementById(t);return n?[n]:[]}}):(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&_){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),i.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&_)return e.getElementsByClassName(t)},v=[],m=[],(n.qsa=J.test(d.querySelectorAll))&&(lt((function(t){var e;p.appendChild(t).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+N+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+N+"*(?:value|"+L+")"),t.querySelectorAll("[id~="+b+"-]").length||m.push("~="),(e=d.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||m.push("\\["+N+"*name"+N+"*="+N+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]"),t.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),lt((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=d.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+N+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=J.test(g=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&<((function(t){n.disconnectedMatch=g.call(t,"*"),g.call(t,"[s!='']:x"),v.push("!=",B)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),e=J.test(p.compareDocumentPosition),y=e||J.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},O=e?function(t,e){if(t===e)return f=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===i?t==d||t.ownerDocument==w&&y(w,t)?-1:e==d||e.ownerDocument==w&&y(w,e)?1:l?M(l,t)-M(l,e):0:4&i?-1:1)}:function(t,e){if(t===e)return f=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!r||!o)return t==d?-1:e==d?1:r?-1:o?1:l?M(l,t)-M(l,e):0;if(r===o)return ht(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ht(a[i],s[i]):a[i]==w?-1:s[i]==w?1:0},d):d},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(h(t),n.matchesSelector&&_&&!C[e+" "]&&(!v||!v.test(e))&&(!m||!m.test(e)))try{var i=g.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){C(e,!0)}return st(e,d,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=d&&h(t),y(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=d&&h(t);var r=i.attrHandle[e.toLowerCase()],o=r&&S.call(i.attrHandle,e.toLowerCase())?r(t,e,!_):void 0;return void 0!==o?o:n.attributes||!_?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},st.escape=function(t){return(t+"").replace(it,rt)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,i=[],r=0,o=0;if(f=!n.detectDuplicates,l=!n.sortStable&&t.slice(0),t.sort(O),f){for(;e=t[o++];)e===t[o]&&(r=i.push(o));for(;r--;)t.splice(i[r],1)}return l=null,t},r=st.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=r(e);return n},(i=st.selectors={cacheLength:50,createPseudo:ct,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return W.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&G.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=T[t+" "];return e||(e=new RegExp("(^|"+N+")"+t+"("+N+"|$)"))&&T(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var r=st.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(U," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,u){var c,l,f,h,d,p,_=o!==a?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),g=!u&&!s,y=!1;if(m){if(o){for(;_;){for(h=e;h=h[_];)if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=_="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&g){for(y=(d=(c=(l=(f=(h=m)[b]||(h[b]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]||[])[0]===x&&c[1])&&c[2],h=d&&m.childNodes[d];h=++d&&h&&h[_]||(y=d=0)||p.pop();)if(1===h.nodeType&&++y&&h===e){l[t]=[x,d,y];break}}else if(g&&(y=d=(c=(l=(f=(h=e)[b]||(h[b]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]||[])[0]===x&&c[1]),!1===y)for(;(h=++d&&h&&h[_]||(y=d=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++y||(g&&((l=(f=h[b]||(h[b]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]=[x,y]),h!==e)););return(y-=r)===i||y%i==0&&y/i>=0}}},PSEUDO:function(t,e){var n,r=i.pseudos[t]||i.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return r[b]?r(e):r.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,n){for(var i,o=r(t,e),a=o.length;a--;)t[i=M(t,o[a])]=!(n[i]=o[a])})):function(t){return r(t,0,n)}):r}},pseudos:{not:ct((function(t){var e=[],n=[],i=s(t.replace(V,"$1"));return i[b]?ct((function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}})),has:ct((function(t){return function(e){return st(t,e).length>0}})),contains:ct((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||r(e)).indexOf(t)>-1}})),lang:ct((function(t){return q.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=_?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:_t(!1),disabled:_t(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return Q.test(t.nodeName)},input:function(t){return K.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:mt((function(){return[0]})),last:mt((function(t,e){return[e-1]})),eq:mt((function(t,e,n){return[n<0?n+e:n]})),even:mt((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:mt((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:mt((function(t,e,n){for(var i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:mt((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[e]=dt(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=pt(e);function gt(){}function yt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function bt(t,e,n){var i=e.dir,r=e.next,o=r||i,a=n&&"parentNode"===o,s=E++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,r);return!1}:function(e,n,u){var c,l,f,h=[x,s];if(u){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,u))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(l=(f=e[b]||(e[b]={}))[e.uniqueID]||(f[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[i]||e;else{if((c=l[o])&&c[0]===x&&c[1]===s)return h[2]=c[2];if(l[o]=h,h[2]=t(e,n,u))return!0}return!1}}function wt(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function xt(t,e,n,i,r){for(var o,a=[],s=0,u=t.length,c=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,i,r)||(a.push(o),c&&e.push(s)));return a}function Et(t,e,n,i,r,o){return i&&!i[b]&&(i=Et(i)),r&&!r[b]&&(r=Et(r,o)),ct((function(o,a,s,u){var c,l,f,h=[],d=[],p=a.length,_=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)st(t,e[i],n);return n}(e||"*",s.nodeType?[s]:s,[]),m=!t||!o&&e?_:xt(_,h,t,s,u),v=n?r||(o?t:p||i)?[]:a:m;if(n&&n(m,v,s,u),i)for(c=xt(v,d),i(c,[],s,u),l=c.length;l--;)(f=c[l])&&(v[d[l]]=!(m[d[l]]=f));if(o){if(r||t){if(r){for(c=[],l=v.length;l--;)(f=v[l])&&c.push(m[l]=f);r(null,v=[],c,u)}for(l=v.length;l--;)(f=v[l])&&(c=r?M(o,f):h[l])>-1&&(o[c]=!(a[c]=f))}}else v=xt(v===a?v.splice(p,v.length):v),r?r(null,a,v,u):j.apply(a,v)}))}function Tt(t){for(var e,n,r,o=t.length,a=i.relative[t[0].type],s=a||i.relative[" "],u=a?1:0,l=bt((function(t){return t===e}),s,!0),f=bt((function(t){return M(e,t)>-1}),s,!0),h=[function(t,n,i){var r=!a&&(i||n!==c)||((e=n).nodeType?l(t,n,i):f(t,n,i));return e=null,r}];u<o;u++)if(n=i.relative[t[u].type])h=[bt(wt(h),n)];else{if((n=i.filter[t[u].type].apply(null,t[u].matches))[b]){for(r=++u;r<o&&!i.relative[t[r].type];r++);return Et(u>1&&wt(h),u>1&&yt(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(V,"$1"),n,u<r&&Tt(t.slice(u,r)),r<o&&Tt(t=t.slice(r)),r<o&&yt(t))}h.push(n)}return wt(h)}return gt.prototype=i.filters=i.pseudos,i.setFilters=new gt,a=st.tokenize=function(t,e){var n,r,o,a,s,u,c,l=P[t+" "];if(l)return e?0:l.slice(0);for(s=t,u=[],c=i.preFilter;s;){for(a in n&&!(r=z.exec(s))||(r&&(s=s.slice(r[0].length)||s),u.push(o=[])),n=!1,(r=X.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(V," ")}),s=s.slice(n.length)),i.filter)!(r=W[a].exec(s))||c[a]&&!(r=c[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return e?s.length:s?st.error(t):P(t,u).slice(0)},s=st.compile=function(t,e){var n,r=[],o=[],s=A[t+" "];if(!s){for(e||(e=a(t)),n=e.length;n--;)(s=Tt(e[n]))[b]?r.push(s):o.push(s);(s=A(t,function(t,e){var n=e.length>0,r=t.length>0,o=function(o,a,s,u,l){var f,p,m,v=0,g="0",y=o&&[],b=[],w=c,E=o||r&&i.find.TAG("*",l),T=x+=null==w?1:Math.random()||.1,P=E.length;for(l&&(c=a==d||a||l);g!==P&&null!=(f=E[g]);g++){if(r&&f){for(p=0,a||f.ownerDocument==d||(h(f),s=!_);m=t[p++];)if(m(f,a||d,s)){u.push(f);break}l&&(x=T)}n&&((f=!m&&f)&&v--,o&&y.push(f))}if(v+=g,n&&g!==v){for(p=0;m=e[p++];)m(y,b,a,s);if(o){if(v>0)for(;g--;)y[g]||b[g]||(b[g]=I.call(u));b=xt(b)}j.apply(u,b),l&&!o&&b.length>0&&v+e.length>1&&st.uniqueSort(u)}return l&&(x=T,c=w),y};return n?ct(o):o}(o,r))).selector=t}return s},u=st.select=function(t,e,n,r){var o,u,c,l,f,h="function"==typeof t&&t,d=!r&&a(t=h.selector||t);if(n=n||[],1===d.length){if((u=d[0]=d[0].slice(0)).length>2&&"ID"===(c=u[0]).type&&9===e.nodeType&&_&&i.relative[u[1].type]){if(!(e=(i.find.ID(c.matches[0].replace(et,nt),e)||[])[0]))return n;h&&(e=e.parentNode),t=t.slice(u.shift().value.length)}for(o=W.needsContext.test(t)?0:u.length;o--&&(c=u[o],!i.relative[l=c.type]);)if((f=i.find[l])&&(r=f(c.matches[0].replace(et,nt),tt.test(u[0].type)&&vt(e.parentNode)||e))){if(u.splice(o,1),!(t=r.length&&yt(u)))return j.apply(n,r),n;break}}return(h||s(t,d))(r,e,!_,n,!e||tt.test(t)&&vt(e.parentNode)||e),n},n.sortStable=b.split("").sort(O).join("")===b,n.detectDuplicates=!!f,h(),n.sortDetached=lt((function(t){return 1&t.compareDocumentPosition(d.createElement("fieldset"))})),lt((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ft("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&<((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ft("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),lt((function(t){return null==t.getAttribute("disabled")}))||ft(L,(function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null})),st}(n);E.find=P,E.expr=P.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=P.uniqueSort,E.text=P.getText,E.isXMLDoc=P.isXML,E.contains=P.contains,E.escapeSelector=P.escape;var A=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&E(t).is(n))break;i.push(t)}return i},C=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},O=E.expr.match.needsContext;function S(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var k=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function I(t,e,n){return v(e)?E.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?E.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?E.grep(t,(function(t){return l.call(e,t)>-1!==n})):E.filter(e,t,n)}E.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?E.find.matchesSelector(i,t)?[i]:[]:E.find.matches(t,E.grep(e,(function(t){return 1===t.nodeType})))},E.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(E(t).filter((function(){for(e=0;e<i;e++)if(E.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)E.find(t,r[e],n);return i>1?E.uniqueSort(n):n},filter:function(t){return this.pushStack(I(this,t||[],!1))},not:function(t){return this.pushStack(I(this,t||[],!0))},is:function(t){return!!I(this,"string"==typeof t&&O.test(t)?E(t):t||[],!1).length}});var R,j=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||R,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:j.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof E?e[0]:e,E.merge(this,E.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:y,!0)),k.test(i[1])&&E.isPlainObject(e))for(i in e)v(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=y.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(E):E.makeArray(t,this)}).prototype=E.fn,R=E(y);var D=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function L(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}E.fn.extend({has:function(t){var e=E(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(E.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,o=[],a="string"!=typeof t&&E(t);if(!O.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&E.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?E.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?l.call(E(t),this[0]):l.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),E.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return A(t,"parentNode")},parentsUntil:function(t,e,n){return A(t,"parentNode",n)},next:function(t){return L(t,"nextSibling")},prev:function(t){return L(t,"previousSibling")},nextAll:function(t){return A(t,"nextSibling")},prevAll:function(t){return A(t,"previousSibling")},nextUntil:function(t,e,n){return A(t,"nextSibling",n)},prevUntil:function(t,e,n){return A(t,"previousSibling",n)},siblings:function(t){return C((t.parentNode||{}).firstChild,t)},children:function(t){return C(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(S(t,"template")&&(t=t.content||t),E.merge([],t.childNodes))}},(function(t,e){E.fn[t]=function(n,i){var r=E.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=E.filter(i,r)),this.length>1&&(M[t]||E.uniqueSort(r),D.test(t)&&r.reverse()),this.pushStack(r)}}));var N=/[^\x20\t\r\n\f]+/g;function $(t){return t}function F(t){throw t}function B(t,e,n,i){var r;try{t&&v(r=t.promise)?r.call(t).done(e).fail(n):t&&v(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}E.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return E.each(t.match(N)||[],(function(t,n){e[n]=!0})),e}(t):E.extend({},t);var e,n,i,r,o=[],a=[],s=-1,u=function(){for(r=r||t.once,i=e=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},c={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function e(n){E.each(n,(function(n,i){v(i)?t.unique&&c.has(i)||o.push(i):i&&i.length&&"string"!==x(i)&&e(i)}))}(arguments),n&&!e&&u()),this},remove:function(){return E.each(arguments,(function(t,e){for(var n;(n=E.inArray(e,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(t){return t?E.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},E.extend({Deferred:function(t){var e=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],i="pe
2nding",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return E.Deferred((function(n){E.each(e,(function(e,i){var r=v(t[i[4]])&&t[i[4]];o[i[1]]((function(){var t=r&&r.apply(this,arguments);t&&v(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,i,r){var o=0;function a(t,e,i,r){return function(){var s=this,u=arguments,c=function(){var n,c;if(!(t<o)){if((n=i.apply(s,u))===e.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,v(c)?r?c.call(n,a(o,e,$,r),a(o,e,F,r)):(o++,c.call(n,a(o,e,$,r),a(o,e,F,r),a(o,e,$,e.notifyWith))):(i!==$&&(s=void 0,u=[n]),(r||e.resolveWith)(s,u))}},l=r?c:function(){try{c()}catch(n){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(n,l.stackTrace),t+1>=o&&(i!==F&&(s=void 0,u=[n]),e.rejectWith(s,u))}};t?l():(E.Deferred.getStackHook&&(l.stackTrace=E.Deferred.getStackHook()),n.setTimeout(l))}}return E.Deferred((function(n){e[0][3].add(a(0,n,v(r)?r:$,n.notifyWith)),e[1][3].add(a(0,n,v(t)?t:$)),e[2][3].add(a(0,n,v(i)?i:F))})).promise()},promise:function(t){return null!=t?E.extend(t,r):r}},o={};return E.each(e,(function(t,n){var a=n[2],s=n[5];r[n[1]]=a.add,s&&a.add((function(){i=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=s.call(arguments),o=E.Deferred(),a=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?s.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(B(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||v(r[n]&&r[n].then)))return o.then();for(;n--;)B(r[n],a(n),o.reject);return o.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&U.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},E.readyException=function(t){n.setTimeout((function(){throw t}))};var V=E.Deferred();function z(){y.removeEventListener("DOMContentLoaded",z),n.removeEventListener("load",z),E.ready()}E.fn.ready=function(t){return V.then(t).catch((function(t){E.readyException(t)})),this},E.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--E.readyWait:E.isReady)||(E.isReady=!0,!0!==t&&--E.readyWait>0||V.resolveWith(y,[E]))}}),E.ready.then=V.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?n.setTimeout(E.ready):(y.addEventListener("DOMContentLoaded",z),n.addEventListener("load",z));var X=function(t,e,n,i,r,o,a){var s=0,u=t.length,c=null==n;if("object"===x(n))for(s in r=!0,n)X(t,e,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,v(i)||(a=!0),c&&(a?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(E(t),n)})),e))for(;s<u;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return r?t:c?e.call(t):u?e(t[0],n):o},H=/^-ms-/,G=/-([a-z])/g;function q(t,e){return e.toUpperCase()}function W(t){return t.replace(H,"ms-").replace(G,q)}var Y=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function K(){this.expando=E.expando+K.uid++}K.uid=1,K.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Y(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[W(e)]=n;else for(i in e)r[W(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][W(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(W):(e=W(e))in i?[e]:e.match(N)||[]).length;for(;n--;)delete i[e[n]]}
vendor: 4,556 bytes, line 2
2(void 0===e||E.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!E.isEmptyObject(e)}};var Q=new K,J=new K,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,tt=/[A-Z]/g;function et(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(tt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Z.test(t)?JSON.parse(t):t)}(n)}catch(t){}J.set(t,e,n)}else n=void 0;return n}E.extend({hasData:function(t){return J.hasData(t)||Q.hasData(t)},data:function(t,e,n){return J.access(t,e,n)},removeData:function(t,e){J.remove(t,e)},_data:function(t,e,n){return Q.access(t,e,n)},_removeData:function(t,e){Q.remove(t,e)}}),E.fn.extend({data:function(t,e){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=J.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=W(i.slice(5)),et(o,i,r[i]));Q.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){J.set(this,t)})):X(this,(function(e){var n;if(o&&void 0===e)return void 0!==(n=J.get(o,t))?n:void 0!==(n=et(o,t))?n:void 0;this.each((function(){J.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){J.remove(this,t)}))}}),E.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Q.get(t,e),n&&(!i||Array.isArray(n)?i=Q.access(t,e,E.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=E.queue(t,e),i=n.length,r=n.shift(),o=E._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,(function(){E.dequeue(t,e)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Q.get(t,n)||Q.access(t,n,{empty:E.Callbacks("once memory").add((function(){Q.remove(t,[e+"queue",n])}))})}}),E.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?E.queue(this[0],t):void 0===e?this:this.each((function(){var n=E.queue(this,t,e);E._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&E.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){E.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=E.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=Q.get(o[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(e)}});var nt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,it=new RegExp("^(?:([+-])=|)("+nt+")([a-z%]*)$","i"),rt=["Top","Right","Bottom","Left"],ot=y.documentElement,at=function(t){return E.contains(t.ownerDocument,t)},st={composed:!0};ot.getRootNode&&(at=function(t){return E.contains(t.ownerDocument,t)||t.getRootNode(st)===t.ownerDocument});var ut=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&at(t)&&"none"===E.css(t,"display")};function ct(t,e,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return E.css(t,e,"")},u=s(),c=n&&n[3]||(E.cssNumber[e]?"":"px"),l=t.nodeType&&(E.cssNumber[e]||"px"!==c&&+u)&&it.exec(E.css(t,e));if(l&&l[3]!==c){for(u/=2,c=c||l[3],l=+u||1;a--;)E.style(t,e,l+c),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),l/=o;l*=2,E.style(t,e,l+c),n=n||[]}return n&&(l=+l||+u||0,r=n[1]?l+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=l,i.end=r)),r}var lt={};function ft(t){var e,n=t.ownerDocument,i=t.nodeName,r=lt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=E.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),lt[i]=r,r)}function ht(t,e){for(var n,i,r=[],o=0,a=t.length;o<a;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=Q.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&ut(i)&&(r[o]=ft(i))):"none"!==n&&(r[o]="none",Q.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}E.fn.extend({show:function(){return ht(this,!0)},hide:function(){return ht(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){ut(this)?E(this).show():E(this).hide()}))}});var dt,pt,_t=/^(?:checkbox|radio)$/i,mt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,vt=/^$|^module$|\/(?:java|ecma)script/i;dt=y.createDocumentFragment().appendChild(y.createElement("div")),(pt=y.createElement("input")).setAttribute("type","radio"),pt.setAttribute("checked","checked"),pt.setAttribute("name","t"),dt.appendChild(pt),m.checkClone
vendor: 4,824 bytes, line 2
2=dt.cloneNode(!0).cloneNode(!0).lastChild.checked,dt.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!dt.cloneNode(!0).lastChild.defaultValue,dt.innerHTML="<option></option>",m.option=!!dt.lastChild;var gt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function yt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&S(t,e)?E.merge([t],n):n}function bt(t,e){for(var n=0,i=t.length;n<i;n++)Q.set(t[n],"globalEval",!e||Q.get(e[n],"globalEval"))}gt.tbody=gt.tfoot=gt.colgroup=gt.caption=gt.thead,gt.th=gt.td,m.option||(gt.optgroup=gt.option=[1,"<select multiple='multiple'>","</select>"]);var wt=/<|&#?\w+;/;function xt(t,e,n,i,r){for(var o,a,s,u,c,l,f=e.createDocumentFragment(),h=[],d=0,p=t.length;d<p;d++)if((o=t[d])||0===o)if("object"===x(o))E.merge(h,o.nodeType?[o]:o);else if(wt.test(o)){for(a=a||f.appendChild(e.createElement("div")),s=(mt.exec(o)||["",""])[1].toLowerCase(),u=gt[s]||gt._default,a.innerHTML=u[1]+E.htmlPrefilter(o)+u[2],l=u[0];l--;)a=a.lastChild;E.merge(h,a.childNodes),(a=f.firstChild).textContent=""}else h.push(e.createTextNode(o));for(f.textContent="",d=0;o=h[d++];)if(i&&E.inArray(o,i)>-1)r&&r.push(o);else if(c=at(o),a=yt(f.appendChild(o),"script"),c&&bt(a),n)for(l=0;o=a[l++];)vt.test(o.type||"")&&n.push(o);return f}var Et=/^key/,Tt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Pt=/^([^.]*)(?:\.(.+)|)/;function At(){return!0}function Ct(){return!1}function Ot(t,e){return t===function(){try{return y.activeElement}catch(t){}}()==("focus"===e)}function St(t,e,n,i,r,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)St(t,s,n,i,e[s],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Ct;else if(!r)return t;return 1===o&&(a=r,(r=function(t){return E().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=E.guid++)),t.each((function(){E.event.add(this,e,r,i,n)}))}function kt(t,e,n){n?(Q.set(t,e,!1),E.event.add(t,e,{namespace:!1,handler:function(t){var i,r,o=Q.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(E.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=s.call(arguments),Q.set(this,e,o),i=n(this,e),this[e](),o!==(r=Q.get(this,e))||i?Q.set(this,e,!1):r={},o!==r)return t.stopImmediatePropagation(),t.preventDefault(),r.value}else o.length&&(Q.set(this,e,{value:E.event.trigger(E.extend(o[0],E.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===Q.get(t,e)&&E.event.add(t,e,At)}E.event={global:{},add:function(t,e,n,i,r){var o,a,s,u,c,l,f,h,d,p,_,m=Q.get(t);if(Y(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&E.find.matchesSelector(ot,r),n.guid||(n.guid=E.guid++),(u=m.events)||(u=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(e){return void 0!==E&&E.event.triggered!==e.type?E.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(N)||[""]).length;c--;)d=_=(s=Pt.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),d&&(f=E.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,f=E.event.special[d]||{},l=E.extend({type:d,origType:_,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&E.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=u[d])||((h=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,i,p,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,l):h.push(l),E.event.global[d]=!0)},remove:function(t,e,n,i,r){var o,a,s,u,c,l,f,h,d,p,_,m=Q.hasData(t)&&Q.get(t);if(m&&(u=m.events)){for(c=(e=(e||"").match(N)||[""]).length;c--;)if(d=_=(s=Pt.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),d){for(f=E.event.special[d]||{},h=u[d=(i?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)l=h[o],!r&&_!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||i&&i!==l.selector&&("**"!==i||!l.selector)||(h.splice(o,1),l.selector&&h.delegateCount--,f.remove&&f.remove.call(t,l));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,p,m.handle)||E.removeEvent(t,d,m.handle),delete u[d])}else for(d in u)E.event.remove(t,d+e[c],n,i,!0);E.isEmptyObject(u)&&Q.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,a,s=new Array(arguments.length),u=E.event.fix(t),c=(Q.get(this,"events")||Object.create(null))[u.type]||[],l=E.event.special[u.type]||{};for(s[0]=u,e=1;e<arguments.length;e++)s[e]=arguments[e];if(u.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,u)){for(a=E.event.handlers.call(this,u,c),e=0;(r=a[e++])&&!u.isPropagationStopped();
vendor: 3,521 bytes, line 2
2)for(u.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(i=((E.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(u.result=i)&&(u.preventDefault(),u.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,u),u.result}},handlers:function(t,e){var n,i,r,o,a,s=[],u=e.delegateCount,c=t.target;if(u&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[r=(i=e[n]).selector+" "]&&(a[r]=i.needsContext?E(r,this).index(c)>-1:E.find(r,this,null,[c]).length),a[r]&&o.push(i);o.length&&s.push({elem:c,handlers:o})}return c=this,u<e.length&&s.push({elem:c,handlers:e.slice(u)}),s},addProp:function(t,e){Object.defineProperty(E.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[E.expando]?t:new E.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return _t.test(e.type)&&e.click&&S(e,"input")&&kt(e,"click",At),!1},trigger:function(t){var e=this||t;return _t.test(e.type)&&e.click&&S(e,"input")&&kt(e,"click"),!0},_default:function(t){var e=t.target;return _t.test(e.type)&&e.click&&S(e,"input")&&Q.get(e,"click")||S(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},E.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},E.Event=function(t,e){if(!(this instanceof E.Event))return new E.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?At:Ct,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&E.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:Ct,isPropagationStopped:Ct,isImmediatePropagationStopped:Ct,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=At,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=At,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=At,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},E.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&Et.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&Tt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},(function(t,e){E.event.special[t]={setup:function(){return kt(this,t,Ot),!1},trigger:function(){return kt(this,t),!0},delegateType:e}}
vendor: 4,565 bytes, line 2
2)),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){E.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===i||E.contains(i,r))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}})),E.fn.extend({on:function(t,e,n,i){return St(this,t,e,n,i)},one:function(t,e,n,i){return St(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,E(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Ct),this.each((function(){E.event.remove(this,t,n,e)}))}});var It=/<script|<style|<link/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,jt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Dt(t,e){return S(t,"table")&&S(11!==e.nodeType?e:e.firstChild,"tr")&&E(t).children("tbody")[0]||t}function Mt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Lt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Nt(t,e){var n,i,r,o,a,s;if(1===e.nodeType){if(Q.hasData(t)&&(s=Q.get(t).events))for(r in Q.remove(e,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)E.event.add(e,r,s[r][n]);J.hasData(t)&&(o=J.access(t),a=E.extend({},o),J.set(e,a))}}function $t(t,e){var n=e.nodeName.toLowerCase();"input"===n&&_t.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ft(t,e,n,i){e=u(e);var r,o,a,s,c,l,f=0,h=t.length,d=h-1,p=e[0],_=v(p);if(_||h>1&&"string"==typeof p&&!m.checkClone&&Rt.test(p))return t.each((function(r){var o=t.eq(r);_&&(e[0]=p.call(this,r,o.html())),Ft(o,e,n,i)}));if(h&&(o=(r=xt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(s=(a=E.map(yt(r,"script"),Mt)).length;f<h;f++)c=r,f!==d&&(c=E.clone(c,!0,!0),s&&E.merge(a,yt(c,"script"))),n.call(t[f],c,f);if(s)for(l=a[a.length-1].ownerDocument,E.map(a,Lt),f=0;f<s;f++)c=a[f],vt.test(c.type||"")&&!Q.access(c,"globalEval")&&E.contains(l,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?E._evalUrl&&!c.noModule&&E._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},l):w(c.textContent.replace(jt,""),c,l))}return t}function Bt(t,e,n){for(var i,r=e?E.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||E.cleanData(yt(i)),i.parentNode&&(n&&at(i)&&bt(yt(i,"script")),i.parentNode.removeChild(i));return t}E.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,a,s=t.cloneNode(!0),u=at(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||E.isXMLDoc(t)))for(a=yt(s),i=0,r=(o=yt(t)).length;i<r;i++)$t(o[i],a[i]);if(e)if(n)for(o=o||yt(t),a=a||yt(s),i=0,r=o.length;i<r;i++)Nt(o[i],a[i]);else Nt(t,s);return(a=yt(s,"script")).length>0&&bt(a,!u&&yt(t,"script")),s},cleanData:function(t){for(var e,n,i,r=E.event.special,o=0;void 0!==(n=t[o]);o++)if(Y(n)){if(e=n[Q.expando]){if(e.events)for(i in e.events)r[i]?E.event.remove(n,i):E.removeEvent(n,i,e.handle);n[Q.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),E.fn.extend({detach:function(t){return Bt(this,t,!0)},remove:function(t){return Bt(this,t)},text:function(t){return X(this,(function(t){return void 0===t?E.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ft(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Dt(this,t).appendChild(t)}))},prepend:function(){return Ft(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Dt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ft(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ft(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(E.cleanData(yt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return E.clone(this,t,e)}))},html:function(t){return X(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!It.test(t)&&!gt[(mt.exec(t)||["",""])[1].toLowerCase()]){t=E.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}
vendor: 2,437 bytes, line 2
2).nodeType&&(E.cleanData(yt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Ft(this,arguments,(function(e){var n=this.parentNode;E.inArray(this,t)<0&&(E.cleanData(yt(this)),n&&n.replaceChild(e,this))}),t)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){E.fn[t]=function(t){for(var n,i=[],r=E(t),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),E(r[a])[e](n),c.apply(i,n.get());return this.pushStack(i)}}));var Ut=new RegExp("^("+nt+")(?!px)[a-z%]+$","i"),Vt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},zt=function(t,e,n){var i,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=o[r];return i},Xt=new RegExp(rt.join("|"),"i");function Ht(t,e,n){var i,r,o,a,s=t.style;return(n=n||Vt(t))&&(""!==(a=n.getPropertyValue(e)||n[e])||at(t)||(a=E.style(t,e)),!m.pixelBoxStyles()&&Ut.test(a)&&Xt.test(e)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function Gt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(l){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ot.appendChild(c).appendChild(l);var t=n.getComputedStyle(l);i="1%"!==t.top,u=12===e(t.marginLeft),l.style.right="60%",a=36===e(t.right),r=36===e(t.width),l.style.position="absolute",o=12===e(l.offsetWidth/3),ot.removeChild(c),l=null}}function e(t){return Math.round(parseFloat(t))}var i,r,o,a,s,u,c=y.createElement("div"),l=y.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===l.style.backgroundClip,E.extend(m,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,i,r;return null==s&&(t=y.createElement("table"),e=y.createElement("tr"),i=y.createElement("div"),t.style.cssText="position:absolute;
2left:-11111px",e.style.height="1px",i.style.height="9px",ot.appendChild(t).appendChild(e).appendChild(i),r=n.getComputedStyle(e),s=parseInt(r.height)>3,ot.removeChild(t)),s}}))}();var qt=["Webkit","Moz","ms"],Wt=y.createElement("div").style,Yt={};function Kt(t){var e=E.cssProps[t]||Yt[t];return e||(t in Wt?t:Yt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=qt.length;n--;)if((t=qt[n]+e)in Wt)return t}(t)||t)}var Qt=/^(none|table(?!-c[ea]).+)/,Jt=/^--/,Zt={position:"absolute",visibility:"hidden",display:"block"},te={letterSpacing:"0",fontWeight:"400"};function ee(t,e,n){var i=it.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ne(t,e,n,i,r,o){var a="width"===e?1:0,s=0,u=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=E.css(t,n+rt[a],!0,r)),i?("content"===n&&(u-=E.css(t,"padding"+rt[a],!0,r)),"margin"!==n&&(u-=E.css(t,"border"+rt[a]+"Width",!0,r))):(u+=E.css(t,"padding"+rt[a],!0,r),"padding"!==n?u+=E.css(t,"border"+rt[a]+"Width",!0,r):s+=E.css(t,"border"+rt[a]+"Width",!0,r));return!i&&o>=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-u-s-.5))||0),u}function ie(t,e,n){var i=Vt(t),r=(!m.boxSizingReliable()||n)&&"border-box"===E.css(t,"boxSizing",!1,i),o=r,a=Ht(t,e,i),s="offset"+e[0].toUpperCase()+e.slice(1);if(Ut.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&S(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===E.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===E.css(t,"boxSizing",!1,i),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+ne(t,e,n||(r?"border":"content"),o,i,a)+"px"}function re(t,e,n,i,r){return new re.prototype.init(t,e,n,i,r)}E.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Ht(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=W(e),u=Jt.test(e),c=t.style;if(u||(e=Kt(s)),a=E.cssHooks[e]||E.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:c[e];"string"===(o=typeof n)&&(r=it.exec(n))&&r[1]&&(n=ct(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=r&&r[3]||(E.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(u?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,i){var r,o,a,s=W(e);return Jt.test(e)||(e=Kt(s)),(a=E.cssHooks[e]||E.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=Ht(t,e,i)),"normal"===r&&e in te&&(r=te[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),E.each(["height","width"],(function(t,e){E.cssHooks[e]={get:function(t,n,i){if(n)return!Qt.test(E.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ie(t,e,i):zt(t,Zt,(function(){return ie(t,e,i)}))},set:function(t,n,i){var r,o=Vt(t),a=!m.scrollboxSize()&&"absolute"===o.position,s=(a||i)&&"border-box"===E.css(t,"boxSizing",!1,o),u=i?ne(t,e,i,s,o):0;return s&&a&&(u-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ne(t,e,"border",!1,o)-.5)),u&&(r=it.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=E.css(t,e)),ee(0,n,u)}}})),E.cssHooks.marginLeft=Gt(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Ht(t,"marginLeft"))||t.getBoundingClientRect().left-zt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),E.each({margin:"",padding:"",border:"Width"},(function(t,e){E.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+rt[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(E.cssHooks[t+e].set=ee)})),E.fn.extend({css:function(t,e){return X(this,(function(t,e,n){var i,r,o={},a=0;if(Array.isArray(e)){for(i=Vt(t),r=e.length;a<r;a++)o[e[a]]=E.css(t,e[a],!1,i);return o}return void 0!==n?E.style(t,e,n):E.css(t,e)}),t,e,arguments.length>1)}}),E.Tween=re,re.prototype={constructor:re,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||E.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(E.cssNumber[n]?"":"px")},cur:function(){var t=re.propHooks[this.prop];return t&&t.get?t.get(this):re.propHooks._default.get(this)},run:function(t){var e,n=re.propHooks[this.prop];return this.options.duration?this.pos=e=E.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):re.propHooks._default.set(this),this}},re.prototype.init.prototype=re.prototype,re.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=E.css(t.elem,t.prop,""))&&"auto"!==e?e:0}
vendor: 7,977 bytes, line 2
2,set:function(t){E.fx.step[t.prop]?E.fx.step[t.prop](t):1!==t.elem.nodeType||!E.cssHooks[t.prop]&&null==t.elem.style[Kt(t.prop)]?t.elem[t.prop]=t.now:E.style(t.elem,t.prop,t.now+t.unit)}}},re.propHooks.scrollTop=re.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},E.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},E.fx=re.prototype.init,E.fx.step={};var oe,ae,se=/^(?:toggle|show|hide)$/,ue=/queueHooks$/;function ce(){ae&&(!1===y.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ce):n.setTimeout(ce,E.fx.interval),E.fx.tick())}function le(){return n.setTimeout((function(){oe=void 0})),oe=Date.now()}function fe(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=rt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function he(t,e,n){for(var i,r=(de.tweeners[e]||[]).concat(de.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function de(t,e,n){var i,r,o=0,a=de.prefilters.length,s=E.Deferred().always((function(){delete u.elem})),u=function(){if(r)return!1;for(var e=oe||le(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(i);return s.notifyWith(t,[c,i,n]),i<1&&a?n:(a||s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:E.extend({},e),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},n),originalProperties:e,originalOptions:n,startTime:oe||le(),duration:n.duration,tweens:[],createTween:function(e,n){var i=E.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),l=c.props;for(!function(t,e){var n,i,r,o,a;for(n in t)if(r=e[i=W(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(a=E.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(l,c.opts.specialEasing);o<a;o++)if(i=de.prefilters[o].call(c,t,l,c.opts))return v(i.stop)&&(E._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return E.map(l,he,c),v(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),E.fx.timer(E.extend(u,{elem:t,anim:c,queue:c.opts.queue})),c}E.Animation=E.extend(de,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return ct(n.elem,t,it.exec(e),n),n}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match(N);for(var n,i=0,r=t.length;i<r;i++)n=t[i],de.tweeners[n]=de.tweeners[n]||[],de.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,a,s,u,c,l,f="width"in e||"height"in e,h=this,d={},p=t.style,_=t.nodeType&&ut(t),m=Q.get(t,"fxshow");for(i in n.queue||(null==(a=E._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,E.queue(t,"fx").length||a.empty.fire()}))}))),e)if(r=e[i],se.test(r)){if(delete e[i],o=o||"toggle"===r,r===(_?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;_=!0}d[i]=m&&m[i]||E.style(t,i)}if((u=!E.isEmptyObject(e))||!E.isEmptyObject(d))for(i in f&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=Q.get(t,"display")),"none"===(l=E.css(t,"display"))&&(c?l=c:(ht([t],!0),c=t.style.display||c,l=E.css(t,"display"),ht([t]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===E.css(t,"float")&&(u||(h.done((function(){p.display=c})),null==c&&(l=p.display,c="none"===l?"":l)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),u=!1,d)u||(m?"hidden"in m&&(_=m.hidden):m=Q.access(t,"fxshow",{display:c}),o&&(m.hidden=!_),_&&ht([t],!0),h.done((function(){for(i in _||ht([t]),Q.remove(t,"fxshow"),d)E.style(t,i,d[i])}))),u=he(_?m[i]:0,i,h),i in m||(m[i]=u.start,_&&(u.end=u.start,u.start=0))}],prefilter:function(t,e){e?de.prefilters.unshift(t):de.prefilters.push(t)}}),E.speed=function(t,e,n){var i=t&&"object"==typeof t?E.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return E.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in E.fx.speeds?i.duration=E.fx.speeds[i.duration]:i.duration=E.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&E.dequeue(this,i.queue)},i},E.fn.extend({fadeTo:function(t,e,n,i){return this.filter(ut).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=E.isEmptyObject(t),o=E.speed(e,n,i),a=function(){var e=de(this,E.extend({},t),o);(r||Q.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",o=E.timers,a=Q.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&ue.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||E.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=Q.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=E.timers,a=i?i.length:0;for(n.finish=!0,E.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),E.each(["toggle","show","hide"],(function(t,e){var n=E.fn[e];E.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(fe(e,!0),t,i,r)}})),E.each({slideDown:fe("show"),slideUp:fe("hide"),slideToggle:fe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){E.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),E.timers=[],E.fx.tick=function(){var t,e=0,n=E.timers;for(oe=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||E.fx.stop(),oe=void 0},E.fx.timer=function(t){E.timers.push(t),E.fx.start()},E.fx.interval=13,E.fx.start=function(){ae||(ae=!0,ce())},E.fx.stop=function(){ae=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(t,e){return t=E.fx&&E.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,i){var r=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(r)}}))},function(){var t=y.createElement("input"),e=y.createElement("select").appendChild(y.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=e.selected,(t=y.createElement("input")).value="t",t.type="radio",m.radioValue="t"===t.value}();var pe,_e=E.expr.attrHandle;E.fn.extend({attr:function(t,e){return X(this,E.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){E.removeAttr(this,t)}))}}),E.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?E.prop(t,e,n):(1===o&&E.isXMLDoc(t)||(r=E.attrHooks[e.toLowerCase()]||(E.expr.match.bool.test(e)?pe:void 0)),void 0!==n?null===n?void E.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=E.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&S(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(N);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),pe={set:function(t,e,n){return!1===e?E.removeAttr(t,n):t.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=_e[e]||E.find.attr;
vendor: 20,300 bytes, line 2
2_e[e]=function(t,e,i){var r,o,a=e.toLowerCase();return i||(o=_e[a],_e[a]=r,r=null!=n(t,e,i)?a:null,_e[a]=o),r}}));var me=/^(?:input|select|textarea|button)$/i,ve=/^(?:a|area)$/i;function ge(t){return(t.match(N)||[]).join(" ")}function ye(t){return t.getAttribute&&t.getAttribute("class")||""}function be(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(N)||[]}E.fn.extend({prop:function(t,e){return X(this,E.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[E.propFix[t]||t]}))}}),E.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(t)||(e=E.propFix[e]||e,r=E.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=E.find.attr(t,"tabindex");return e?parseInt(e,10):me.test(t.nodeName)||ve.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(E.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){E.propFix[this.toLowerCase()]=this})),E.fn.extend({addClass:function(t){var e,n,i,r,o,a,s,u=0;if(v(t))return this.each((function(e){E(this).addClass(t.call(this,e,ye(this)))}));if((e=be(t)).length)for(;n=this[u++];)if(r=ye(n),i=1===n.nodeType&&" "+ge(r)+" "){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(s=ge(i))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,r,o,a,s,u=0;if(v(t))return this.each((function(e){E(this).removeClass(t.call(this,e,ye(this)))}));if(!arguments.length)return this.attr("class","");if((e=be(t)).length)for(;n=this[u++];)if(r=ye(n),i=1===n.nodeType&&" "+ge(r)+" "){for(a=0;o=e[a++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(s=ge(i))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,i="string"===n||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):v(t)?this.each((function(n){E(this).toggleClass(t.call(this,n,ye(this),e),e)})):this.each((function(){var e,r,o,a;if(i)for(r=0,o=E(this),a=be(t);e=a[r++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=ye(this))&&Q.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Q.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+ge(ye(n))+" ").indexOf(e)>-1)return!0;return!1}});var we=/\r/g;E.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=v(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,E(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=E.map(r,(function(t){return null==t?"":t+""}))),(e=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=E.valHooks[r.type]||E.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(we,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(t){var e=E.find.attr(t,"value");return null!=e?e:ge(E.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],u=a?o+1:r.length;for(i=o<0?u:a?o:0;i<u;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(e=E(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,i,r=t.options,o=E.makeArray(e),a=r.length;a--;)((i=r[a]).selected=E.inArray(E.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],(function(){E.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=E.inArray(E(t).val(),e)>-1}},m.checkOn||(E.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),m.focusin="onfocusin"in n;var xe=/^(?:focusinfocus|focusoutblur)$/,Ee=function(t){t.stopPropagation()};E.extend(E.event,{trigger:function(t,e,i,r){var o,a,s,u,c,l,f,h,p=[i||y],_=d.call(t,"type")?t.type:t,m=d.call(t,"namespace")?t.namespace.split("."):[];if(a=h=s=i=i||y,3!==i.nodeType&&8!==i.nodeType&&!xe.test(_+E.event.triggered)&&(_.indexOf(".")>-1&&(m=_.split("."),_=m.shift(),m.sort()),c=_.indexOf(":")<0&&"on"+_,(t=t[E.expando]?t:new E.Event(_,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:E.makeArray(e,[t]),f=E.event.special[_]||{},r||!f.trigger||!1!==f.trigger.apply(i,e))){if(!r&&!f.noBubble&&!g(i)){for(u=f.delegateType||_,xe.test(u+_)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(i.ownerDocument||y)&&p.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)h=a,t.type=o>1?u:f.bindType||_,(l=(Q.get(a,"events")||Object.create(null))[t.type]&&Q.get(a,"handle"))&&l.apply(a,e),(l=c&&a[c])&&l.apply&&Y(a)&&(t.result=l.apply(a,e),!1===t.result&&t.preventDefault());return t.type=_,r||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),e)||!Y(i)||c&&v(i[_])&&!g(i)&&((s=i[c])&&(i[c]=null),E.event.triggered=_,t.isPropagationStopped()&&h.addEventListener(_,Ee),i[_](),t.isPropagationStopped()&&h.removeEventListener(_,Ee),E.event.triggered=void 0,s&&(i[c]=s)),t.result}},simulate:function(t,e,n){var i=E.extend(new E.Event,n,{type:t,isSimulated:!0});E.event.trigger(i,null,e)}}),E.fn.extend({trigger:function(t,e){return this.each((function(){E.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return E.event.trigger(t,e,n,!0)}}),m.focusin||E.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){E.event.simulate(e,t.target,E.event.fix(t))};E.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=Q.access(i,e);r||i.addEventListener(t,n,!0),Q.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=Q.access(i,e)-1;r?Q.access(i,e,r):(i.removeEventListener(t,n,!0),Q.remove(i,e))}}}));var Te=n.location,Pe={guid:Date.now()},Ae=/\?/;E.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||E.error("Invalid XML: "+t),e};var Ce=/\[\]$/,Oe=/\r?\n/g,Se=/^(?:submit|button|image|reset|file)$/i,ke=/^(?:input|select|textarea|keygen)/i;function Ie(t,e,n,i){var r;if(Array.isArray(e))E.each(e,(function(e,r){n||Ce.test(t)?i(t,r):Ie(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==x(e))i(t,e);else for(r in e)Ie(t+"["+r+"]",e[r],n,i)}E.param=function(t,e){var n,i=[],r=function(t,e){var n=v(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!E.isPlainObject(t))E.each(t,(function(){r(this.name,this.value)}));else for(n in t)Ie(n,t[n],e,r);return i.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=E.prop(this,"elements");return t?E.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!E(this).is(":disabled")&&ke.test(this.nodeName)&&!Se.test(t)&&(this.checked||!_t.test(t))})).map((function(t,e){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,(function(t){return{name:e.name,value:t.replace(Oe,"\r\n")}})):{name:e.name,value:n.replace(Oe,"\r\n")}})).get()}});var Re=/%20/g,je=/#.*$/,De=/([?&])_=[^&]*/,Me=/^(.*?):[ \t]*([^\r\n]*)$/gm,Le=/^(?:GET|HEAD)$/,Ne=/^\/\//,$e={},Fe={},Be="*/".concat("*"),Ue=y.createElement("a");function Ve(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(N)||[];if(v(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function ze(t,e,n,i){var r={},o=t===Fe;function a(s){var u;return r[s]=!0,E.each(t[s]||[],(function(t,s){var c=s(e,n,i);return"string"!=typeof c||o||r[c]?o?!(u=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),u}return a(e.dataTypes[0])||!r["*"]&&a("*")}function Xe(t,e){var n,i,r=E.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&E.extend(!0,t,i),t}Ue.href=Te.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Te.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Te.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Be,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Xe(Xe(t,E.ajaxSettings),e):Xe(E.ajaxSettings,t)},ajaxPrefilter:Ve($e),ajaxTransport:Ve(Fe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,r,o,a,s,u,c,l,f,h,d=E.ajaxSetup({},e),p=d.context||d,_=d.context&&(p.nodeType||p.jquery)?E(p):E.event,m=E.Deferred(),v=E.Callbacks("once memory"),g=d.statusCode||{},b={},w={},x="canceled",T={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=Me.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==c&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)T.always(t[T.status]);else for(e in t)g[e]=[g[e],t[e]];return this},abort:function(t){var e=t||x;return i&&i.abort(e),P(0,e),this}};if(m.promise(T),d.url=((t||d.url||Te.href)+"").replace(Ne,Te.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(N)||[""],null==d.crossDomain){u=y.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=Ue.protocol+"//"+Ue.host!=u.protocol+"//"+u.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=E.param(d.data,d.traditional)),ze($e,d,e,T),c)return T;for(f in(l=E.event&&d.global)&&0==E.active++&&E.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Le.test(d.type),r=d.url.replace(je,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Re,"+")):(h=d.url.slice(r.length),d.data&&(d.processData||"string"==typeof d.data)&&(r+=(Ae.test(r)?"&":"?")+d.data,delete d.data),!1===d.cache&&(r=r.replace(De,"$1"),h=(Ae.test(r)?"&":"?")+"_="+Pe.guid+++h),d.url=r+h),d.ifModified&&(E.lastModified[r]&&T.setRequestHeader("If-Modified-Since",E.lastModified[r]),E.etag[r]&&T.setRequestHeader("If-None-Match",E.etag[r])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&T.setRequestHeader("Content-Type",d.contentType),T.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Be+"; q=0.01":""):d.accepts["*"]),d.headers)T.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(p,T,d)||c))return T.abort();if(x="abort",v.add(d.complete),T.done(d.success),T.fail(d.error),i=ze(Fe,d,e,T)){if(T.readyState=1,l&&_.trigger("ajaxSend",[T,d]),c)return T;d.async&&d.timeout>0&&(s=n.setTimeout((function(){T.abort("timeout")}),d.timeout));try{c=!1,i.send(b,P)}catch(t){if(c)throw t;P(-1,t)}}else P(-1,"No Transport");function P(t,e,a,u){var f,h,y,b,w,x=e;c||(c=!0,s&&n.clearTimeout(s),i=void 0,o=u||"",T.readyState=t>0?4:0,f=t>=200&&t<300||304===t,a&&(b=function(t,e,n){for(var i,r,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){u.unshift(r);break}if(u[0]in n)o=u[0];else{for(r in n){if(!u[0]||t.converters[r+" "+u[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(d,T,a)),!f&&E.inArray("script",d.dataTypes)>-1&&(d.converters["text script"]=function(){}),b=function(t,e,n,i){var r,o,a,s,u,c={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=l.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=c[u+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}(d,b,T,f),f?(d.ifModified&&((w=T.getResponseHeader("Last-Modified"))&&(E.lastModified[r]=w),(w=T.getResponseHeader("etag"))&&(E.etag[r]=w)),204===t||"HEAD"===d.type?x="nocontent":304===t?x="notmodified":(x=b.state,h=b.data,f=!(y=b.error))):(y=x,!t&&x||(x="error",t<0&&(t=0))),T.status=t,T.statusText=(e||x)+"",f?m.resolveWith(p,[h,x,T]):m.rejectWith(p,[T,x,y]),T.statusCode(g),g=void 0,l&&_.trigger(f?"ajaxSuccess":"ajaxError",[T,d,f?h:y]),v.fireWith(p,[T,x]),l&&(_.trigger("ajaxComplete",[T,d]),--E.active||E.event.trigger("ajaxStop")))}return T},getJSON:function(t,e,n){return E.get(t,e,n,"json")},getScript:function(t,e){return E.get(t,void 0,e,"script")}}),E.each(["get","post"],(function(t,e){E[e]=function(t,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),E.ajax(E.extend({url:t,type:e,dataType:r,data:n,success:i},E.isPlainObject(t)&&t))}})),E.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),E._evalUrl=function(t,e,n){return E.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){E.globalEval(t,e,n)}})},E.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=E(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(e){E(this).wrapInner(t.call(this,e))})):this.each((function(){var e=E(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(n){E(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){E(this).replaceWith(this.childNodes)})),this}}),E.expr.pseudos.hidden=function(t){return!E.expr.pseudos.visible(t)},E.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var He={0:200,1223:204},Ge=E.ajaxSettings.xhr();m.cors=!!Ge&&"withCredentials"in Ge,m.ajax=Ge=!!Ge,E.ajaxTransport((function(t){var e,i;if(m.cors||Ge&&!t.crossDomain)return{send:function(r,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(He[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),i=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){e&&i()}))},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),E.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return E.globalEval(t),t}}}),E.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),E.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=E("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),y.head.appendChild(e[0])},abort:function(){n&&n()}}}));var qe,We=[],Ye=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=We.pop()||E.expando+"_"+Pe.guid++;return this[t]=!0,t}}),E.ajaxPrefilter("json jsonp",(function(t,e,i){var r,o,a,s=!1!==t.jsonp&&(Ye.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ye.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ye,"$1"+r):!1!==t.jsonp&&(t.url+=(Ae.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||E.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=n[r],n[r]=function(){a=arguments},i.always((function(){void 0===o?E(n).removeProp(r):n[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,We.push(r)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),m.createHTMLDocument=((qe=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===qe.childNodes.length),E.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(m.createHTMLDocument?((i=(e=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,e.head.appendChild(i)):e=y),o=!n&&[],(r=k.exec(t))?[e.createElement(r[1])]:(r=xt([t],e,o),o&&o.length&&E(o).remove(),E.merge([],r.childNodes)));var i,r,o},E.fn.load=function(t,e,n){var i,r,o,a=this,s=t.indexOf(" ");return s>-1&&(i=ge(t.slice(s)),t=t.slice(0,s)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&E.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,a.html(i?E("<div>").append(E.parseHTML(t)).find(i):t)})).always(n&&function(t,e){a.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},E.expr.pseudos.animated=function(t){return E.grep(E.timers,(function(e){return t===e.elem})).length},E.offset={setOffset:function(t,e,n){var i,r,o,a,s,u,c=E.css(t,"position"),l=E(t),f={};"static"===c&&(t.style.position="relative"),s=l.offset(),o=E.css(t,"top"),u=E.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1?(a=(i=l.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(u)||0),v(e)&&(e=e.call(t,n,E.extend({},s))),null!=e.top&&(f.top=e.top-s.top+a),null!=e.left&&(f.left=e.left-s.left+r),"using"in e?e.using.call(t,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),l.css(f))}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){E.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===E.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===E.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=E(t).offset()).top+=E.css(t,"borderTopWidth",!0),r.left+=E.
vendor: 4,669 bytes, line 2
2css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-E.css(i,"marginTop",!0),left:e.left-r.left-E.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===E.css(t,"position");)t=t.offsetParent;return t||ot}))}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;E.fn[t]=function(i){return X(this,(function(t,i,r){var o;if(g(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r}),t,i,arguments.length)}})),E.each(["top","left"],(function(t,e){E.cssHooks[e]=Gt(m.pixelPosition,(function(t,n){if(n)return n=Ht(t,e),Ut.test(n)?E(t).position()[e]+"px":n}))})),E.each({Height:"height",Width:"width"},(function(t,e){E.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){E.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return X(this,(function(e,n,r){var o;return g(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?E.css(e,n,s):E.style(e,n,r,s)}),e,a?r:void 0,a)}}))})),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){E.fn[e]=function(t){return this.on(e,t)}})),E.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){E.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var Ke=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;E.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),v(t))return i=s.call(arguments,2),(r=function(){return t.apply(e||this,i.concat(s.call(arguments)))}).guid=t.guid=t.guid||E.guid++,r},E.holdReady=function(t){t?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=S,E.isFunction=v,E.isWindow=g,E.camelCase=W,E.type=x,E.now=Date.now,E.isNumeric=function(t){var e=E.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},E.trim=function(t){return null==t?"":(t+"").replace(Ke,"")},void 0===(i=function(){return E}.apply(e,[]))||(t.exports=i);var Qe=n.jQuery,Je=n.$;return E.noConflict=function(t){return n.$===E&&(n.$=Je),t&&n.jQuery===E&&(n.jQuery=Qe),E},void 0===r&&(n.jQuery=n.$=E),E}))},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=n(103),a=i(n(3)),s=function(){function t(){}return t.setup=function(){var t=this;return new Promise((function(e,n){r.default(document);var i=r.default("body");t._assetDir=i.data("template-dir")+"/assets/",t._imageDir=t._assetDir+"images/",t._shaderDir=t._assetDir+"shaders/",t._styleDir=t._assetDir+"styles/",t._webFonts={custom:{families:["Univers Next W01 Regular","Univers Next W01 Bold"],urls:[t._styleDir+"index.css"]},typekit:{id:"wrz2hnc"}},e()}))},Object.defineProperty(t,"assetDir",{get:function(){return this._assetDir},enumerable:!0,configurable:!0}),Object.defineProperty(t,"imageDir",{get:function(){return this._imageDir},enumerable:!0,configurable:!0}),Object.defineProperty(t,"shaderDir",{get:function(){return this._shaderDir},enumerable:!0,configurable:!0}),Object.defineProperty(t,"styleDir",{get:function(){return this._styleDir},enumerable:!0,configurable:!0}),Object.defineProperty(t,"webFonts",{get:function(){return this._webFonts},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isMobile",{get:function(){return"mobile"===(new o.UAParser).getDevice().type},enumerable:!0,configurable:!0}),t.VIDEO_PLATFORM_YOUTUBE="YouTube",t.VIDEO_PLATFORM_VIMEO="Vimeo",t.DEFAULT_BACKGROUND_COLOR_DARK=a.default.hexToRgb("#000000"),t.DEFAULT_BACKGROUND_COLOR_LIGHT=a.default.hexToRgb("#ffffff"),t.DEFAULT_DOMINANT_COLOR_DARK={primary:t.DEFAULT_BACKGROUND_COLOR_DARK,secondary:t.DEFAULT_BACKGROUND_COLOR_DARK},t.DEFAULT_DOMINANT_COLOR_LIGHT={primary:t.DEFAULT_BACKGROUND_COLOR_LIGHT,secondary:t.DEFAULT_BACKGROUND_COLOR_LIGHT},t.INDEX_INTERVAL=5e3,t.BASE_DURATION=2500,t}();e.default=s},function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.hexToRgb=function(t){return[parseInt(t.substring(1,3),16),parseInt(t.substring(3,5),16),parseInt(t.substring(5,7),16)]},t.hexToRgbString=function(t){var e=this.hexToRgb(t);return"rgb("+e[0]+","+e[1]+","+e[2]+")"},t.rgbToRgbString=function(t){return"rgb("+t[0]+","+t[1]+","+t[2]+")"},t.rgbStringToRgb=function(t){var e=t.match(/\d+/g);if(e){var n=new Array;return n[0]=parseInt(e[0]),n[1]=parseInt(e[1]),n[2]=parseInt(e[2]),n}return[0,0,0]},t.rgbToHex=function(t){return"#"+parseInt(t[0].toString(16))+parseInt(t[1].toString(16))+parseInt(t[2].toString(16))},t}();e.default=i},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=n(57),a=i(n(2)),s=function(){function t(){}return t.setup=function(t){var e=this;return new Promise((function(n,i){e._$container=t,e._$navigation=t.find(".js-header__navigation"),e._$toggleButton=t.find(".js-header__toggle-button"),e._addEvent(),n()}))},t.show=function(){var t=this;return new Promise((function(e,n){var i=t._$container;i.hasClass("is-hidden")?(i.on("transitionend",(function(){i.off("transitionend"),e()})),i.removeClass("is-hidden")):e()}))},t.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container;i.on("transitionend",(function(){i.off("transitionend"),e()})),i.hasClass("is-hidden")?e():i.addClass("is-hidden")}))},t.exit=function(){var t=this;return new Promise((function(e,n){t._removeEvent(),t._isVisibleNavigation=!1}))},t.darkModeColor=function(){var t=this;return new Promise((function(e,n){var i=t._$container;i.hasClass("is-white")?e():(i.on("transitionend",(function(){i.off("transitionend"),e()})),i.addClass("is-white"))}))},t.defaultColor=function(){var t=this;return new Promise((function(e,n){var i=t._$container;i.hasClass("is-white")?(i.on("transitionend",(function(){i.off("transitionend"),e()})),i.removeClass("is-white")):e()}))},t.clearBackground=function(){var t=this;return new Promise((function(e,n){var i=t._$container;i.hasClass("fill-background")&&i.removeClass("fill-background"),e()}))},t.fillBackground=function(){var t=this;return new Promise((function(e,n){var i=t._$container;i.hasClass("fill-background")||i.addClass("fill-background"),e()}))},t.toggleNavigation=function(){var t=this;return new Promise((function(e,n){var i=t._$container;t._isVisibleNavigation?t._hideNavigation().then((function(){o.clearAllBodyScrollLocks(),e()})).catch((function(t){n(t)})):t._showNavigation().then((function(){o.disableBodyScroll(i.get(0)),e()})).catch((function(t){n(t)}))}))},t.onBeforeResize=function(t,e){this._resize(t,e)},t.onAfterResize=function(t,e){this._resize(t,e)},Object.defineProperty(t,"isVisibleNavigation",{get:function(){return this._isVisibleNavigation},enumerable:!0,configurable:!0}),Object.defineProperty(t,"$container",{get:function(){return this._$container},enumerable:!0,configurable:!0}),Object.defineProperty(t,"current",{set:function(t){for(var e=this._$navigation.find(".js-header__navigation-button"),n=0;n<e.length;n++){var i=r.default(e[n]),o=i.attr("href"),a=o?o.split("/"):[];a[a.length-2]===t?i.addClass("is-selected"):i.removeClass("is-selected")}},enumerable:!0,configurable:!0}),t._showNavigation=function(){var e=this;return new Promise((function(n,i){var o=e._$container;o.addClass("is-visible-navigation"),o.css({height:window.innerHeight}),e._isVisibleNavigation=!0,r.default(e).trigger(t.ON_SHOW_NAVIGATION),n()}))},t._hideNavigation=function(){var e=this;return new Promise((function(n,i){var o=e._$container;o.removeClass("is-visible-navigation"),o.css({height:""}),e._isVisibleNavigation=!1,r.default(e).trigger(t.ON_HIDE_NAVIGATION),n()}))},t._resize=function(t,e){var n=this._$container;this._isVisibleNavigation&&a.default.isMobile&&n.css({height:e})},t._addEvent=function(){var t=this;this._$toggleButton.on("click",(function(){return t.toggleNavigation(),!1}))},t._removeEvent=function(){this._$toggleButton.off("click")},t.ON_SHOW_NAVIGATION="onShowNavigation",t.ON_HIDE_NAVIGATION="onHideNavigation",t._isVisibleNavigation=!1,t}();e.default=s},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(36)),a=i(n(37)),s=n(11),u=i(n(2)),c=i(n(3)),l=i(n(65)),f=function(){function t(){}return t.setup=function(e){var n=this;return new Promise((function(i,o){n._$background=r.default("html"),n._$container=e,n._args={scale:t.DEFAULT_NOISE_SCALE,velocity:t.DEFAULT_NOISE_VELOCITY},n._canvas=n._createCanvas(),n._sandbox=new a.default(n._canvas,{backgroundColor:"rgba( 0, 0, 0, 1 )"}),n._sandbox.pause(),n._current=n._getCurrentBackgroundColor(),e.append(r.default(n._canvas)),i()}))},t.show=function(){var t=this;return new Promise((function(e,n){t._$container.addClass("is-visible"),e()}))},t.hide=function(){var t=this;return new Promise((function(e,n){t._$container.removeClass("is-visible"),t._current=t._getCurrentBackgroundColor(),e()}))},t.exit=function(){var t=this;return new Promise((function(e,n){var i=t._canvas,o=r.default(i),a=t._sandbox;t._stop(),t._timeline.kill(),a.destroy(),o.remove(),t._apply=0,t._animationFrameId=0,e()}))},t.update=function(e){var n=this;return new Promise((function(i,r){var o=n._$background,a={apply:0};n._timeline.kill(),n._timeline.to(a,l.default.HIDE_DURATION/1e3,{apply:1,ease:s.Power1.easeIn,onStart:function(){n._apply=0,n._updateColorFrom=n._getCurrentBackgroundColor(),n._updateColorTo=n._current,n._start()},onUpdate:function(){n._apply=a.apply},onComplete:function(){a.apply=0}}).to(a,t.TRANSITION_DURATION/1e3,{apply:1,ease:s.Power1.easeOut,onStart:function(){n._apply=0,n._updateColorFrom=n._current,n._updateColorTo=e},onUpdate:function(){n._apply=a.apply},onComplete:function(){o.css({"background-color":c.default.rgbToRgbString(e.primary)}),n._current=e,n._stop(),i()}})}))},t.toSolidColor=function(){var t=this;return new Promise((function(e,n){var i=t._current,r=t._getCurrentBackgroundColor(),o={apply:0};t._tween.kill(),t._tween=new s.TweenLite(o,l.default.SHOW_DURATION/1e3,{apply:1,ease:s.Power1.easeInOut,onStart:function(){t._apply=0,t._updateColorFrom=i,t._updateColorTo=r,t._start()},onUpdate:function(){t._apply=o.apply},onComplete:function(){t._stop(),e()}})}))},t.resize=function(t,e){var n=this._canvas;n.width=t,n.height=e,this._ratio=t/e},t._start=function(){var t=this._sandbox;this._update(),t.play()},t._stop=function(){var t=this._sandbox;this._tween.kill(),t.pause(),window.cancelAnimationFrame(this._animationFrameId)},t._update=function(){var t=this;this._animationFrameId=window.requestAnimationFrame((function(){var e=t._sandbox,n=t._args,i=t._updateColorFrom,r=t._updateColorTo,o=i.primary,a=i.secondary,s=r.primary,u=r.secondary;e.setUniform("u_colorFromPrimary",o[0]/255,o[1]/255,o[2]/255),e.setUniform("u_colorFromSecondary",a[0]/255,a[1]/255,a[2]/255),e.setUniform("u_colorToPrimary",s[0]/255,s[1]/255,s[2]/255),e.setUniform("u_colorToSecondary",u[0]/255,u[1]/255,u[2]/255),e.setUniform("u_noiseScale",n.scale,n.scale/t._ratio),e.setUniform("u_noiseVelocity",n.velocity),e.setUniform("u_apply",t._apply),t._update()}))},t._createCanvas=function(){var e=document.createElement("canvas"),n=u.default.shaderDir+t.FRAGMENT_SHADER;return e.width=window.innerWidth,e.height=window.innerHeight,this._ratio=e.width/e.height,r.default(e).attr({"data-fragment-url":n}),e},t._getCurrentBackgroundColor=function(){var t=this._$background,e=c.default.rgbStringToRgb(t.css("background-color"));return{primary:e,secondary:e}},t._setupGui=function(){this._gui=new o.default.GUI;var t=this._args,e=this._gui;e.add(t,"scale",0,16,.01).listen(),e.add(t,"velocity",0,8,.01).listen(),r.default(e.domElement).css({position:"fixed",right:0,bottom:0})},t.FRAGMENT_SHADER="background.frag",t.DEFAULT_NOISE_SCALE=.67,t.DEFAULT_NOISE_VELOCITY=.67,t.TRANSITION_DURATION=u.default.INDEX_INTERVAL/8,t._current={primary:[],secondary:[]},t._updateColorFrom={primary:[],secondary:[]},t._updateColorTo={primary:[],secondary:[]},t._args={scale:0,velocity:0},t._apply=0,t._animationFrameId=0,t._ratio=0,t._timeline=new s.TimelineLite,t._tween=new s.TweenLite({},0,{}),t}();e.default=f},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(127)),o=i(n(2)),a=function(){function t(){}return t.getColorByUrl=function(t){return new Promise((function(e,n){r.default.from(t).getPalette().then((function(t){var n=t.DarkMuted?t.DarkMuted.rgb:o.default.DEFAULT_BACKGROUND_COLOR_DARK,i=t.DarkVibrant?t.DarkVibrant.rgb:o.default.DEFAULT_BACKGROUND_COLOR_DARK,r=t.Vibrant?t.Vibrant.rgb:o.default.DEFAULT_BACKGROUND_COLOR_LIGHT,a=t.Muted?t.Muted.rgb:o.default.DEFAULT_BACKGROUND_COLOR_DARK;e({primary:n,secondary:i,vibrant:r,muted:a})})).catch((function(t){n(t)}))}))},t}();e.default=a},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=n(11),a=i(n(2)),s=function(){function t(){}return t.setup=function(t){this._$body=r.default("body"),this._$container=t,this._$label=t.find(".js-loading__label"),this.resize(window.innerWidth,window.innerHeight)},t.appear=function(){var t=this;return new Promise((function(e,n){t._$container;t.show().then((function(){t._start(),e()})).catch((function(t){n(t)}))}))},t.show=function(){var t=this;return new Promise((function(e,n){var i=t._$body,r=t._$container;i.addClass("is-loading"),r.removeClass("is-hidden"),e()}))},t.hide=function(){var e=this;return new Promise((function(n,i){var r=e._$body,o=e._$container;o.hasClass("is-appearing")?e._tweenValue(100,t.APPEAR_DEFAULT_DURATION_LAST).then((function(){e._stop(),o.removeClass("is-appearing"),r.removeClass("is-loading"),o.addClass("is-hidden"),e._animationId=0,e._value=0,n()})).catch((function(t){i(t)})):(r.removeClass("is-loading"),o.addClass("is-hidden"),n())}))},t.resize=function(t,e){a.default.isMobile&&this._$container.css({height:e})},t._start=function(){var e=Math.random()*(99-this._value)+this._value,n=t.APPEAR_DEFAULT_DURATION;this._tweenValue(e,n),this._update()},t._stop=function(){this._tween.kill(),window.cancelAnimationFrame(this._animationId)},t._update=function(){var t=this;this._animationId=window.requestAnimationFrame((function(){var e=t._$label,n=t._value;e.text(Math.floor(n)),t._update()}))},t._tweenValue=function(e,n){var i=this;return new Promise((function(r,a){var s={value:i._value};i._tween.kill(),i._tween=new o.TweenLite.to(s,n/1e3,{value:e,ease:o.Power1.easeOut,onUpdate:function(){i._value=s.value},onComplete:function(){if(100==e)r();else{var n=Math.random()*(99-i._value)+i._value,o=t.APPEAR_DEFAULT_DURATION;i._tweenValue(n,o)}}})}))},t.APPEAR_DEFAULT_DURATION=a.default.INDEX_INTERVAL/4,t.APPEAR_DEFAULT_DURATION_LAST=a.default.INDEX_INTERVAL/16,t._animationId=0,t._value=0,t._tween=new o.TweenLite({},0,{}),t}();e.default=s},function(t,e,n){var i=n(70),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();t.exports=o},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(t){void 0===t&&(t="default"),this._$container={},this._namespace=t}return t.prototype.init=function(){return new Promise((function(t,e){t()}))},t.prototype.onBeforeAppear=function(t){var e=this;return new Promise((function(n,i){e.onBefore(t).then((function(){n()}))}))},t.prototype.onAppear=function(t){var e=this;return new Promise((function(n,i){e.onEnter(t).then((function(){n()}))}))},t.prototype.onAfterAppear=function(t){var e=this;return new Promise((function(n,i){e.onAfter(t).then((function(){n()}))}))},t.prototype.onBefore=function(t){return new Promise((function(t,e){t()}))},t.prototype.onLeave=function(t){return new Promise((function(t,e){t()}))},t.prototype.onEnter=function(t){var e=this;return new Promise((function(n,i){e._$container=r.default(t.next.container),n()}))},t.prototype.onAfter=function(t){return new Promise((function(t,e){t()}))},t.prototype.onBeforeResize=function(t,e){},t.prototype.onAfterResize=function(t,e){},Object.defineProperty(t.prototype,"namespace",{get:function(){return this._namespace},enumerable:!0,configurable:!0}),t.prototype._addEvent=function(){},t.prototype._removeEvent=function(){},t}();e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return $})),n.d(e,"TweenLite",(function(){return i.l})),n.d(e,"TweenMax",(function(){return $})),n.d(e,"TimelineLite",(function(){return r})),n.d(e,"TimelineMax",(function(){return o}
2)),n.d(e,"CSSPlugin",(function(){return s})),n.d(e,"AttrPlugin",(function(){return u})),n.d(e,"BezierPlugin",(function(){return A})),n.d(e,"RoundPropsPlugin",(function(){return c})),n.d(e,"DirectionalRotationPlugin",(function(){return d})),n.d(e,"TweenPlugin",(function(){return i.j})),n.d(e,"Ease",(function(){return i.b})),n.d(e,"Power0",(function(){return i.d})),n.d(e,"Power1",(function(){return i.e})),n.d(e,"Power2",(function(){return i.f})),n.d(e,"Power3",(function(){return i.g})),n.d(e,"Power4",(function(){return i.h})),n.d(e,"Linear",(function(){return i.c})),n.d(e,"Back",(function(){return O})),n.d(e,"Elastic",(function(){return S})),n.d(e,"Bounce",(function(){return k})),n.d(e,"RoughEase",(function(){return I})),n.d(e,"SlowMo",(function(){return R})),n.d(e,"SteppedEase",(function(){return j})),n.d(e,"Circ",(function(){return D})),n.d(e,"Expo",(function(){return M})),n.d(e,"Sine",(function(){return L})),n.d(e,"ExpoScaleEase",(function(){return N})),n.d(e,"_gsScope",(function(){return i.k}));var i=n(0);i.k._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],(function(){var t=function(t){i.i.call(this,t);var e,n,r=this.vars;for(n in this._labels={},this.autoRemoveChildren=!!r.autoRemoveChildren,this.smoothChildTiming=!!r.smoothChildTiming,this._sortChildren=!0,this._onUpdate=r.onUpdate,r)e=r[n],o(e)&&-1!==e.join("").indexOf("{self}")&&(r[n]=this._swapSelfInParams(e));o(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},e=i.l._internals,n=t._internals={},r=e.isSelector,o=e.isArray,a=e.lazyTweens,s=e.lazyRender,u=i.k._gsDefine.globals,c=function(t){var e,n={};for(e in t)n[e]=t[e];return n},l=function(t,e,n){var i,r,o=t.cycle;for(i in o)r=o[i],t[i]="function"==typeof r?r(n,e[n],e):r[n%r.length];delete t.cycle},f=n.pauseCallback=function(){},h=function(t,e,n,i){var r="immediateRender";return r in e||(e[r]=!(n&&!1===n[r]||i)),e},d=function(t){if("function"==typeof t)return t;var e="object"==typeof t?t:{each:t},n=e.ease,i=e.from||0,r=e.base||0,o={},a=isNaN(i),s=e.axis,u={center:.5,end:1}[i]||0;return function(t,c,l){var f,h,d,p,_,m,v,g,y,b=(l||e).length,w=o[b];if(!w){if(!(y="auto"===e.grid?0:(e.grid||[1/0])[0])){for(v=-1/0;v<(v=l[y++].getBoundingClientRect().left)&&y<b;);y--}for(w=o[b]=[],f=a?Math.min(y,b)*u-.5:i%y,h=a?b*u/y-.5:i/y|0,v=0,g=1/0,m=0;m<b;m++)d=m%y-f,p=h-(m/y|0),w[m]=_=s?Math.abs("y"===s?p:d):Math.sqrt(d*d+p*p),_>v&&(v=_),_<g&&(g=_);w.max=v-g,w.min=g,w.v=b=e.amount||e.each*(y>b?b-1:s?"y"===s?b/y:y:Math.max(y,b/y))||0,w.b=b<0?r-b:r}return b=(w[t]-w.min)/w.max,w.b+(n?n.getRatio(b):b)*w.v}},p=t.prototype=new i.i;return t.version="2.1.3",t.distribute=d,p.constructor=t,p.kill()._gc=p._forcingPlayhead=p._hasPause=!1,p.to=function(t,e,n,r){var o=n.repeat&&u.TweenMax||i.l;return e?this.add(new o(t,e,n),r):this.set(t,n,r)},p.from=function(t,e,n,r){return this.add((n.repeat&&u.TweenMax||i.l).from(t,e,h(0,n)),r)},p.fromTo=function(t,e,n,r,o){var a=r.repeat&&u.TweenMax||i.l;return r=h(0,r,n),e?this.add(a.fromTo(t,e,n,r),o):this.set(t,r,o)},p.staggerTo=function(e,n,o,a,s,u,f,h){var p,_,m=new t({onComplete:u,onCompleteParams:f,callbackScope:h,smoothChildTiming:this.smoothChildTiming}),v=d(o.stagger||a),g=o.startAt,y=o.cycle;for("string"==typeof e&&(e=i.l.selector(e)||e),r(e=e||[])&&(e=function(t){var e,n=[],i=t.length;for(e=0;e!==i;n.push(t[e++]));return n}(e)),_=0;_<e.length;_++)p=c(o),g&&(p.startAt=c(g),g.cycle&&l(p.startAt,e,_)),y&&(l(p,e,_),null!=p.duration&&(n=p.duration,delete p.duration)),m.to(e[_],n,p,v(_,e[_],e));return this.add(m,s)},p.staggerFrom=function(t,e,n,i,r,o,a,s){return n.runBackwards=!0,this.staggerTo(t,e,h(0,n),i,r,o,a,s)},p.staggerFromTo=function(t,e,n,i,r,o,a,s,u){return i.startAt=n,this.staggerTo(t,e,h(0,i,n),r,o,a,s,u)},p.call=function(t,e,n,r){return this.add(i.l.delayedCall(0,t,e,n),r)},p.set=function(t,e,n){return this.add(new i.l(t,0,h(0,e,null,!0)),n)}
2,t.exportRoot=function(e,n){null==(e=e||{}).smoothChildTiming&&(e.smoothChildTiming=!0);var r,o,a,s,u=new t(e),c=u._timeline;for(null==n&&(n=!0),c._remove(u,!0),u._startTime=0,u._rawPrevTime=u._time=u._totalTime=c._time,a=c._first;a;)s=a._next,n&&a instanceof i.l&&a.target===a.vars.onComplete||((o=a._startTime-a._delay)<0&&(r=1),u.add(a,o)),a=s;return c.add(u,0),r&&u.totalDuration(),u},p.add=function(e,n,r,a){var s,u,c,l,f,h;if("number"!=typeof n&&(n=this._parseTimeOrLabel(n,0,!0,e)),!(e instanceof i.a)){if(e instanceof Array||e&&e.push&&o(e)){for(r=r||"normal",a=a||0,s=n,u=e.length,c=0;c<u;c++)o(l=e[c])&&(l=new t({tweens:l})),this.add(l,s),"string"!=typeof l&&"function"!=typeof l&&("sequence"===r?s=l._startTime+l.totalDuration()/l._timeScale:"start"===r&&(l._startTime-=l.delay())),s+=a;return this._uncache(!0)}if("string"==typeof e)return this.addLabel(e,n);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=i.l.delayedCall(0,e)}if(i.i.prototype.add.call(this,e,n),(e._time||!e._duration&&e._initted)&&(s=(this.rawTime()-e._startTime)*e._timeScale,(!e._duration||Math.abs(Math.max(0,Math.min(e.totalDuration(),s)))-e._totalTime>1e-5)&&e.render(s,!1,!1)),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(h=(f=this).rawTime()>e._startTime;f._timeline;)h&&f._timeline.smoothChildTiming?f.totalTime(f._totalTime,!0):f._gc&&f._enabled(!0,!1),f=f._timeline;return this},p.remove=function(t){if(t instanceof i.a){this._remove(t,!1);var e=t._timeline=t.vars.useFrames?i.a._rootFramesTimeline:i.a._rootTimeline;return t._startTime=(t._paused?t._pauseTime:e._time)-(t._reversed?t.totalDuration()-t._totalTime:t._totalTime)/t._timeScale,this}if(t instanceof Array||t&&t.push&&o(t)){for(var n=t.length;--n>-1;)this.remove(t[n]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},p._remove=function(t,e){return i.i.prototype._remove.call(this,t,e),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},p.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},p.insert=p.insertMultiple=function(t,e,n,i){return this.add(t,e||0,n,i)},p.appendMultiple=function(t,e,n,i){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),n,i)},p.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},p.addPause=function(t,e,n,r){var o=i.l.delayedCall(0,f,n,r||this);return o.vars.onComplete=o.vars.onReverseComplete=e,o.data="isPause",this._hasPause=!0,this.add(o,t)},p.removeLabel=function(t){return delete this._labels[t],this},p.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},p._parseTimeOrLabel=function(t,e,n,r){var a,s;if(r instanceof i.a&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&o(r)))for(s=r.length;--s>-1;)r[s]instanceof i.a&&r[s].timeline===this&&this.remove(r[s]);if(a="number"!=typeof t||e?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,"string"==typeof e)return this._parseTimeOrLabel(e,n&&"number"==typeof t&&null==this._labels[e]?t-a:0,n);if(e=e||0,"string"!=typeof t||!isNaN(t)&&null==this._labels[t])null==t&&(t=a);else{if(-1===(s=t.indexOf("=")))return null==this._labels[t]?n?this._labels[t]=a+e:e:this._labels[t]+e;e=parseInt(t.charAt(s-1)+"1",10)*Number(t.substr(s+1)),t=s>1?this._parseTimeOrLabel(t.substr(0,s-1),0,n):a}return Number(t)+e},p.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},p.stop=function(){return this.paused(!0)},p.gotoAndPlay=function(t,e){return this.play(t,e)},p.gotoAndStop=function(t,e){return this.pause(t,e)},p.render=function(t,e,n){this._gc&&this._enabled(!0,!1);var i,r,o,u,c,l,f,h,d=this._time,p=this._dirty?this.totalDuration():this._totalDuration,_=this._startTime,m=this._timeScale,v=this._paused;if(d!==this._time&&(t+=this._time-d),this._hasPause&&!this._forcingPlayhead&&!e){if(t>d)for(i=this._first;i&&i._startTime<=t&&!l;)i._duration||"isPause"!==i.data||i.ratio||0===i._startTime&&0===this._rawPrevTime||(l=i),i=i._next;else for(i=this._last;i&&i._startTime>=t&&!l;)i._duration||"isPause"===i.data&&i._rawPrevTime>0&&(l=i),i=i._prev;l&&(this._time=this._totalTime=t=l._startTime,h=this._startTime+(this._reversed?this._duration-t:t)/this._timeScale)}
2if(t>=p-1e-8&&t>=0)this._totalTime=this._time=p,this._reversed||this._hasPausedChild()||(r=!0,u="onComplete",c=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&t>=-1e-8||this._rawPrevTime<0||1e-8===this._rawPrevTime)&&this._rawPrevTime!==t&&this._first&&(c=!0,this._rawPrevTime>1e-8&&(u="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-8,t=p+1e-4;else if(t<1e-8)if(this._totalTime=this._time=0,t>-1e-8&&(t=0),(0!==d||0===this._duration&&1e-8!==this._rawPrevTime&&(this._rawPrevTime>0||t<0&&this._rawPrevTime>=0))&&(u="onReverseComplete",r=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(c=r=!0,u="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(c=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-8,0===t&&r)for(i=this._first;i&&0===i._startTime;)i._duration||(r=!1),i=i._next;t=0,this._initted||(c=!0)}else this._totalTime=this._time=this._rawPrevTime=t;if(this._time!==d&&this._first||n||c||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==d&&t>0&&(this._active=!0),0===d&&this.vars.onStart&&(0===this._time&&this._duration||e||this._callback("onStart")),(f=this._time)>=d)for(i=this._first;i&&(o=i._next,f===this._time&&(!this._paused||v));)(i._active||i._startTime<=f&&!i._paused&&!i._gc)&&(l===i&&(this.pause(),this._pauseTime=h),i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(t-i._startTime)*i._timeScale,e,n):i.render((t-i._startTime)*i._timeScale,e,n)),i=o;else for(i=this._last;i&&(o=i._prev,f===this._time&&(!this._paused||v));){if(i._active||i._startTime<=d&&!i._paused&&!i._gc){if(l===i){for(l=i._prev;l&&l.endTime()>this._time;)l.render(l._reversed?l.totalDuration()-(t-l._startTime)*l._timeScale:(t-l._startTime)*l._timeScale,e,n),l=l._prev;l=null,this.pause(),this._pauseTime=h}i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(t-i._startTime)*i._timeScale,e,n):i.render((t-i._startTime)*i._timeScale,e,n)}i=o}this._onUpdate&&(e||(a.length&&s(),this._callback("onUpdate"))),u&&(this._gc||_!==this._startTime&&m===this._timeScale||(0===this._time||p>=this.totalDuration())&&(r&&(a.length&&s(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[u]&&this._callback(u)))}},p._hasPausedChild=function(){for(var e=this._first;e;){if(e._paused||e instanceof t&&e._hasPausedChild())return!0;e=e._next}return!1},p.getChildren=function(t,e,n,r){r=r||-9999999999;for(var o=[],a=this._first,s=0;a;)a._startTime<r||(a instanceof i.l?!1!==e&&(o[s++]=a):(!1!==n&&(o[s++]=a),!1!==t&&(s=(o=o.concat(a.getChildren(!0,e,n))).length))),a=a._next;return o},p.getTweensOf=function(t,e){var n,r,o=this._gc,a=[],s=0;for(o&&this._enabled(!0,!0),r=(n=i.l.getTweensOf(t)).length;--r>-1;)(n[r].timeline===this||e&&this._contains(n[r]))&&(a[s++]=n[r]);return o&&this._enabled(!1,!0),a},p.recent=function(){return this._recent},p._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},p.shiftChildren=function(t,e,n){n=n||0;for(var i,r=this._first,o=this._labels;r;)r._startTime>=n&&(r._startTime+=t),r=r._next;if(e)for(i in o)o[i]>=n&&(o[i]+=t);return this._uncache(!0)},p._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var n=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),i=n.length,r=!1;--i>-1;)n[i]._kill(t,e)&&(r=!0);return r},p.clear=function(t){var e=this.getChildren(!1,!0,!0),n=e.length;for(this._time=this._totalTime=0;--n>-1;)e[n]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},p.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return i.a.prototype.invalidate.call(this)},p._enabled=function(t,e){if(t===this._gc)for(var n=this._first;n;)n._enabled(t,!0),n=n._next;return i.i.prototype._enabled.call(this,t,e)},p.totalTime=function(t,e,n){this._forcingPlayhead=!0;var r=i.a.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},p.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},p.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,n,i=0,r=this,o=r._last,a=999999999999;o;)e=o._prev,o._dirty&&o.totalDuration(),o._startTime>a&&r._sortChildren&&!o._paused&&!r._calculatingDuration?(r._calculatingDuration=1,r.add(o,o._startTime-o._delay),r._calculatingDuration=0):a=o._startTime,o._startTime<0&&!o._paused&&(i-=o._startTime,r._timeline.smoothChildTiming&&(r._startTime+=o._startTime/r._timeScale,r._time-=o._startTime,r._totalTime-=o._startTime,r._rawPrevTime-=o._startTime),r.shiftChildren(-o._startTime,!1,-9999999999),a=0),(n=o._startTime+o._totalDuration/o._timeScale)>i&&(i=n),o=e;r._duration=r._totalDuration=i,r._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},p.paused=function(t){if(!1===t&&this._paused)for(var e=this._first;e;)e._startTime===this._time&&"isPause"===e.data&&(e._rawPrevTime=0),e=e._next;return i.a.prototype.paused.apply(this,arguments)},p.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===i.a._rootFramesTimeline},p.rawTime=function(t){return t&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},t}),!0);var r=i.m.TimelineLite;i.k._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],(function(){var t=function(t){r.call(this,t),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0},e=i.l._internals,n=e.lazyTweens,o=e.lazyRender,a=i.k._gsDefine.globals,s=new i.b(null,null,1,0
2),u=t.prototype=new r;return u.constructor=t,u.kill()._gc=!1,t.version="2.1.3",u.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),r.prototype.invalidate.call(this)},u.addCallback=function(t,e,n,r){return this.add(i.l.delayedCall(0,t,n,r),e)},u.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var n=this.getTweensOf(t,!1),i=n.length,r=this._parseTimeOrLabel(e);--i>-1;)n[i]._startTime===r&&n[i]._enabled(!1,!1);return this},u.removePause=function(t){return this.removeCallback(r._internals.pauseCallback,t)},u.tweenTo=function(t,e){e=e||{};var n,r,o,u={ease:s,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},c=e.repeat&&a.TweenMax||i.l;for(r in e)u[r]=e[r];return u.time=this._parseTimeOrLabel(t),n=Math.abs(Number(u.time)-this._time)/this._timeScale||.001,o=new c(this,n,u),u.onStart=function(){o.target.paused(!0),o.vars.time===o.target.time()||n!==o.duration()||o.isFromTo||o.duration(Math.abs(o.vars.time-o.target.time())/o.target._timeScale).render(o.time(),!0,!0),e.onStart&&e.onStart.apply(e.onStartScope||e.callbackScope||o,e.onStartParams||[])},o},u.tweenFromTo=function(t,e,n){n=n||{},t=this._parseTimeOrLabel(t),n.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},n.immediateRender=!1!==n.immediateRender;var i=this.tweenTo(e,n);return i.isFromTo=1,i.duration(Math.abs(i.vars.time-t)/this._timeScale||.001)},u.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,a,s,u,c,l,f,h,d,p=this._time,_=this._dirty?this.totalDuration():this._totalDuration,m=this._duration,v=this._totalTime,g=this._startTime,y=this._timeScale,b=this._rawPrevTime,w=this._paused,x=this._cycle;if(p!==this._time&&(t+=this._time-p),t>=_-1e-8&&t>=0)this._locked||(this._totalTime=_,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(a=!0,u="onComplete",c=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&t>=-1e-8||b<0||1e-8===b)&&b!==t&&this._first&&(c=!0,b>1e-8&&(u="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-8,this._yoyo&&1&this._cycle?this._time=t=0:(this._time=m,t=m+1e-4);else if(t<1e-8)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,t>-1e-8&&(t=0),(0!==p||0===m&&1e-8!==b&&(b>0||t<0&&b>=0)&&!this._locked)&&(u="onReverseComplete",a=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(c=a=!0,u="onReverseComplete"):b>=0&&this._first&&(c=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=m||!e||t||this._rawPrevTime===t?t:1e-8,0===t&&a)for(r=this._first;r&&0===r._startTime;)r._duration||(a=!1),r=r._next;t=0,this._initted||(c=!0)}else 0===m&&b<0&&(c=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(l=m+this._repeatDelay,this._cycle=this._totalTime/l>>0,this._cycle&&this._cycle===this._totalTime/l&&v<=t&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&1&this._cycle&&(this._time=m-this._time),this._time>m?(this._time=m,t=m+1e-4):this._time<0?this._time=t=0:t=this._time));if(this._hasPause&&!this._forcingPlayhead&&!e){if((t=this._time)>p||this._repeat&&x!==this._cycle)for(r=this._first;r&&r._startTime<=t&&!f;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===this._rawPrevTime||(f=r),r=r._next;else for(r=this._last;r&&r._startTime>=t&&!f;)r._duration||"isPause"===r.data&&r._rawPrevTime>0&&(f=r),r=r._prev;f&&(d=this._startTime+(this._reversed?this._duration-f._startTime:f._startTime)/this._timeScale,f._startTime<m&&(this._time=this._rawPrevTime=t=f._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay)))}if(this._cycle!==x&&!this._locked){var E=this._yoyo&&0!=(1&x),T=E===(this._yoyo&&0!=(1&this._cycle)),P=this._totalTime,A=this._cycle,C=this._rawPrevTime,O=this._time;if(this._totalTime=x*m,this._cycle<x?E=!E:this._totalTime+=m,this._time=p,this._rawPrevTime=0===m?b-1e-4:b,this._cycle=x,this._locked=!0,p=E?0:m,this.render(p,e,0===m),e||this._gc||this.vars.onRepeat&&(this._cycle=A,this._locked=!1,this._callback("onRepeat")),p!==this._time)return;if(T&&(this._cycle=x,this._locked=!0,p=E?m+1e-4:-1e-4,this.render(p,!0,!1)),this._locked=!1,this._paused&&!w)return;this._time=O,this._totalTime=P,this._cycle=A,this._rawPrevTime=C}if(this._time!==p&&this._first||i||c||f){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==v&&t>0&&(this._active=!0),0===v&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||e||this._callback("onStart")),(h=this._time)>=p)for(r=this._first;r&&(s=r._next,h===this._time&&(!this._paused||w));)(r._active||r._startTime<=this._time&&!r._paused&&!r._gc)&&(f===r&&(this.pause(),this._pauseTime=d),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=s;else for(r=this._last;r&&(s=r._prev,h===this._time&&(!this._paused||w));
2){if(r._active||r._startTime<=p&&!r._paused&&!r._gc){if(f===r){for(f=r._prev;f&&f.endTime()>this._time;)f.render(f._reversed?f.totalDuration()-(t-f._startTime)*f._timeScale:(t-f._startTime)*f._timeScale,e,i),f=f._prev;f=null,this.pause(),this._pauseTime=d}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)}r=s}this._onUpdate&&(e||(n.length&&o(),this._callback("onUpdate"))),u&&(this._locked||this._gc||g!==this._startTime&&y===this._timeScale||(0===this._time||_>=this.totalDuration())&&(a&&(n.length&&o(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[u]&&this._callback(u)))}else v!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},u.getActive=function(t,e,n){var i,r,o=[],a=this.getChildren(t||null==t,e||null==t,!!n),s=0,u=a.length;for(i=0;i<u;i++)(r=a[i]).isActive()&&(o[s++]=r);return o},u.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,n=this.getLabelsArray(),i=n.length;for(e=0;e<i;e++)if(n[e].time>t)return n[e].name;return null},u.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),n=e.length;--n>-1;)if(e[n].time<t)return e[n].name;return null},u.getLabelsArray=function(){var t,e=[],n=0;for(t in this._labels)e[n++]={time:this._labels[t],name:t};return e.sort((function(t,e){return t.time-e.time})),e},u.invalidate=function(){return this._locked=!1,r.prototype.invalidate.call(this)},u.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()||0},u.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()||0},u.totalDuration=function(t){return arguments.length?-1!==this._repeat&&t?this.timeScale(this.totalDuration()/t):this:(this._dirty&&(r.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},u.time=function(t,e){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var n=this._duration,i=this._cycle,r=i*(n+this._repeatDelay);return t>n&&(t=n),this.totalTime(this._yoyo&&1&i?n-t+r:this._repeat?t+r:t,e)},u.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},u.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},u.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},u.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},t}),!0);var o=i.m.TimelineMax;i.k._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],(function(){var t=function(t){var e,n=[],i=t.length;for(e=0;e!==i;n.push(t[e++]));return n},e=function(t,e,n){var i,r,o=t.cycle;for(i in o)r=o[i],t[i]="function"==typeof r?r(n,e[n],e):r[n%r.length];delete t.cycle},n=function(t){if("function"==typeof t)return t;var e="object"==typeof t?t:{each:t},n=e.ease,i=e.from||0,r=e.base||0,o={},a=isNaN(i),s=e.axis,u={center:.5,end:1}[i]||0;return function(t,c,l){var f,h,d,p,_,m,v,g,y,b=(l||e).length,w=o[b];if(!w){if(!(y="auto"===e.grid?0:(e.grid||[1/0])[0])){for(v=-1/0;v<(v=l[y++].getBoundingClientRect().left)&&y<b;);y--}for(w=o[b]=[],f=a?Math.min(y,b)*u-.5:i%y,h=a?b*u/y-.5:i/y|0,v=0,g=1/0,m=0;m<b;m++)d=m%y-f,p=h-(m/y|0),w[m]=_=s?Math.abs("y"===s?p:d):Math.sqrt(d*d+p*p),_>v&&(v=_),_<g&&(g=_);w.max=v-g,w.min=g,w.v=b=e.amount||e.each*(y>b?b-1:s?"y"===s?b/y:y:Math.max(y,b/y))||0,w.b=b<0?r-b:r}return b=(w[t]-w.min)/w.max,w.b+(n?n.getRatio(b):b)*w.v}},r=function(t,e,n){i.l.call(this,t,e,n),this._cycle=0,this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=r.prototype.render},o=i.l._internals,a=o.isSelector,s=o.isArray,u=r.prototype=i.l.to({},.1,{}),c=[];r.version="2.1.3",u.constructor=r,u.kill()._gc=!1,r.killTweensOf=r.killDelayedCallsTo=i.l.killTweensOf,r.getTweensOf=i.l.getTweensOf,r.lagSmoothing=i.l.lagSmoothing,r.ticker=i.l.ticker,r.render=i.l.render,r.distribute=n,u.invali
2date=function(){return this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),i.l.prototype.invalidate.call(this)},u.updateTo=function(t,e){var n,r=this.ratio,o=this.vars.immediateRender||t.immediateRender;for(n in e&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay)),t)this.vars[n]=t[n];if(this._initted||o)if(e)this._initted=!1,o&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&i.l._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var a=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(a,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||o)for(var s,u=1/(1-r),c=this._firstPT;c;)s=c.s+c.c,c.c*=u,c.s=s-c.c,c=c._next;return this},u.render=function(t,e,n){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var r,a,s,u,c,l,f,h,d,p=this._dirty?this.totalDuration():this._totalDuration,_=this._time,m=this._totalTime,v=this._cycle,g=this._duration,y=this._rawPrevTime;if(t>=p-1e-8&&t>=0?(this._totalTime=p,this._cycle=this._repeat,this._yoyo&&0!=(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=g,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(r=!0,a="onComplete",n=n||this._timeline.autoRemoveChildren),0===g&&(this._initted||!this.vars.lazy||n)&&(this._startTime===this._timeline._duration&&(t=0),(y<0||t<=0&&t>=-1e-8||1e-8===y&&"isPause"!==this.data)&&y!==t&&(n=!0,y>1e-8&&(a="onReverseComplete")),this._rawPrevTime=h=!e||t||y===t?t:1e-8)):t<1e-8?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==m||0===g&&y>0)&&(a="onReverseComplete",r=this._reversed),t>-1e-8?t=0:t<0&&(this._active=!1,0===g&&(this._initted||!this.vars.lazy||n)&&(y>=0&&(n=!0),this._rawPrevTime=h=!e||t||y===t?t:1e-8)),this._initted||(n=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(u=g+this._repeatDelay,this._cycle=this._totalTime/u>>0,0!==this._cycle&&this._cycle===this._totalTime/u&&m<=t&&this._cycle--,this._time=this._totalTime-this._cycle*u,this._yoyo&&0!=(1&this._cycle)&&(this._time=g-this._time,(d=this._yoyoEase||this.vars.yoyoEase)&&(this._yoyoEase||(!0!==d||this._initted?this._yoyoEase=d=!0===d?this._ease:d instanceof i.b?d:i.b.map[d]:(d=this.vars.ease,this._yoyoEase=d=d?d instanceof i.b?d:"function"==typeof d?new i.b(d,this.vars.easeParams):i.b.map[d]||i.l.defaultEase:i.l.defaultEase)),this.ratio=d?1-d.getRatio((g-this._time)/g):0)),this._time>g?this._time=g:this._time<0&&(this._time=0)),this._easeType&&!d?(c=this._time/g,(1===(l=this._easeType)||3===l&&c>=.5)&&(c=1-c),3===l&&(c*=2),1===(f=this._easePower)?c*=c:2===f?c*=c*c:3===f?c*=c*c*c:4===f&&(c*=c*c*c*c),this.ratio=1===l?1-c:2===l?c:this._time/g<.5?c/2:1-c/2):d||(this.ratio=this._ease.getRatio(this._time/g))),_!==this._time||n||v!==this._cycle){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!n&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=_,this._totalTime=m,this._rawPrevTime=y,this._cycle=v,o.lazyTweens.push(this),void(this._lazy=[t,e]);!this._time||r||d?r&&this._ease._calcEnd&&!d&&(this.ratio=this._ease.getRatio(0===this._time?0:1)):this.ratio=this._ease.getRatio(this._time/g)}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==_&&t>=0&&(this._active=!0),0===m&&(2===this._initted&&t>0&&this._init(),this._startAt&&(t>=0?this._startAt.render(t,!0,n):a||(a="_dummyGS")),this.vars.onStart&&(0===this._totalTime&&0!==g||e||this._callback("onStart"))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(t<0&&this._startAt&&this._startTime&&this._startAt.render(t,!0,n),e||(this._totalTime!==m||a)&&this._callback("onUpdate")),this._cycle!==v&&(e||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),a&&(this._gc&&!n||(t<0&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,!0,n),r&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[a]&&this._callback(a),0===g&&1e-8===this._rawPrevTime&&1e-8!==h&&(this._rawPrevTime=0)))}else m!==this._totalTime&&this._onUpdate&&(e||this._callback("onUp
2date"))},r.to=function(t,e,n){return new r(t,e,n)},r.from=function(t,e,n){return n.runBackwards=!0,n.immediateRender=0!=n.immediateRender,new r(t,e,n)},r.fromTo=function(t,e,n,i){return i.startAt=n,i.immediateRender=0!=i.immediateRender&&0!=n.immediateRender,new r(t,e,i)},r.staggerTo=r.allTo=function(o,u,l,f,h,d,p){var _,m,v,g,y=[],b=n(l.stagger||f),w=l.cycle,x=(l.startAt||c).cycle;for(s(o)||("string"==typeof o&&(o=i.l.selector(o)||o),a(o)&&(o=t(o))),_=(o=o||[]).length-1,v=0;v<=_;v++){for(g in m={},l)m[g]=l[g];if(w&&(e(m,o,v),null!=m.duration&&(u=m.duration,delete m.duration)),x){for(g in x=m.startAt={},l.startAt)x[g]=l.startAt[g];e(m.startAt,o,v)}m.delay=b(v,o[v],o)+(m.delay||0),v===_&&h&&(m.onComplete=function(){l.onComplete&&l.onComplete.apply(l.onCompleteScope||this,arguments),h.apply(p||l.callbackScope||this,d||c)}),y[v]=new r(o[v],u,m)}return y},r.staggerFrom=r.allFrom=function(t,e,n,i,o,a,s){return n.runBackwards=!0,n.immediateRender=0!=n.immediateRender,r.staggerTo(t,e,n,i,o,a,s)},r.staggerFromTo=r.allFromTo=function(t,e,n,i,o,a,s,u){return i.startAt=n,i.immediateRender=0!=i.immediateRender&&0!=n.immediateRender,r.staggerTo(t,e,i,o,a,s,u)},r.delayedCall=function(t,e,n,i,o){return new r(e,0,{delay:t,onComplete:e,onCompleteParams:n,callbackScope:i,onReverseComplete:e,onReverseCompleteParams:n,immediateRender:!1,useFrames:o,overwrite:0})},r.set=function(t,e){return new r(t,0,e)},r.isTweening=function(t){return i.l.getTweensOf(t,!0).length>0};var l=function(t,e){for(var n=[],r=0,o=t._first;o;)o instanceof i.l?n[r++]=o:(e&&(n[r++]=o),r=(n=n.concat(l(o,e))).length),o=o._next;return n},f=r.getAllTweens=function(t){return l(i.a._rootTimeline,t).concat(l(i.a._rootFramesTimeline,t))};r.killAll=function(t,e,n,r){null==e&&(e=!0),null==n&&(n=!0);var o,a,s,u=f(0!=r),c=u.length,l=e&&n&&r;for(s=0;s<c;s++)a=u[s],(l||a instanceof i.i||(o=a.target===a.vars.onComplete)&&n||e&&!o)&&(t?a.totalTime(a._reversed?0:a.totalDuration()):a._enabled(!1,!1))},r.killChildTweensOf=function(e,n){if(null!=e){var u,c,l,f,h,d=o.tweenLookup;if("string"==typeof e&&(e=i.l.selector(e)||e),a(e)&&(e=t(e)),s(e))for(f=e.length;--f>-1;)r.killChildTweensOf(e[f],n);else{for(l in u=[],d)for(c=d[l].target.parentNode;c;)c===e&&(u=u.concat(d[l].tweens)),c=c.parentNode;for(h=u.length,f=0;f<h;f++)n&&u[f].totalTime(u[f].totalDuration()),u[f]._enabled(!1,!1)}}};var h=function(t,e,n,r){e=!1!==e,n=!1!==n;for(var o,a,s=f(r=!1!==r),u=e&&n&&r,c=s.length;--c>-1;)a=s[c],(u||a instanceof i.i||(o=a.target===a.vars.onComplete)&&n||e&&!o)&&a.paused(t)};return r.pauseAll=function(t,e,n){h(!0,t,e,n)},r.resumeAll=function(t,e,n){h(!1,t,e,n)},r.globalTimeScale=function(t){var e=i.a._rootTimeline,n=i.l.ticker.time;return arguments.length?(t=t||1e-8,e._startTime=n-(n-e._startTime)*e._timeScale/t,e=i.a._rootFramesTimeline,n=i.l.ticker.frame,e._startTime=n-(n-e._startTime)*e._timeScale/t,e._timeScale=i.a._rootTimeline._timeScale=t,t):e._timeScale},u.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this.duration()?this._time/this._duration:this.ratio},u.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},u.time=function(t,e){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var n=this._duration,i=this._cycle,r=i*(n+this._repeatDelay);return t>n&&(t=n),this.totalTime(this._yoyo&&1&i?n-t+r:this._repeat?t+r:t,e)},u.duration=function(t){return arguments.length?i.a.prototype.duration.call(this,t):this._duration},u.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},u.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},u.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},u.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},r}),!0);var a=i.m.TweenMax;i.k._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],(function(){var t,e,n,r,o=function(){i.j.call(this,"css"),this._overwriteProps.length=0,this.setRatio=o.prototype.setRatio},a=i.k._gsDefine.globals,s={},u=o.prototype=new i.j("css");u.constructor=o,o.version="2.1.3",o.API=2,o.defaultTransformPerspective=0,o.defaultSkewType="compensated",o.defaultSmoothOrigin=!0,u="px",o.suffixMap={top:u,right:u,bottom:u,left:u,width:u,height:u,fontSize:u,padding:u,margin:u,perspective:u,lineHeight:""};
vendor: 4,758 bytes, line 2
2var c,l,f,h,d,p,_,m,v=/(?:\-|\.|\b)(\d|\.|e\-)+/g,g=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,y=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,b=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b),?/gi,w=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,x=/(?:\d|\-|\+|=|#|\.)*/g,E=/opacity *= *([^)]*)/i,T=/opacity:([^;]*)/i,P=/alpha\(opacity *=.+?\)/i,A=/^(rgb|hsl)/,C=/([A-Z])/g,O=/-([a-z])/gi,S=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,k=function(t,e){return e.toUpperCase()},I=/(?:Left|Right|Width)/i,R=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,j=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,D=/,(?=[^\)]*(?:\(|$))/gi,M=/[\s,\(]/i,L=Math.PI/180,N=180/Math.PI,$={},F={style:{}},B=i.k.document||{createElement:function(){return F}},U=function(t,e){var n=B.createElementNS?B.createElementNS(e||"http://www.w3.org/1999/xhtml",t):B.createElement(t);return n.style?n:B.createElement(t)},V=U("div"),z=U("img"),X=o._internals={_specialProps:s},H=(i.k.navigator||{}).userAgent||"",G=function(){var t=H.indexOf("Android"),e=U("a");return f=-1!==H.indexOf("Safari")&&-1===H.indexOf("Chrome")&&(-1===t||parseFloat(H.substr(t+8,2))>3),d=f&&parseFloat(H.substr(H.indexOf("Version/")+8,2))<6,h=-1!==H.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(H)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(H))&&(p=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),q=function(t){return E.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},W=function(t){i.k.console},Y="",K="",Q=function(t,e){var n,i,r=(e=e||V).style;if(void 0!==r[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),n=["O","Moz","ms","Ms","Webkit"],i=5;--i>-1&&void 0===r[n[i]+t];);return i>=0?(Y="-"+(K=3===i?"ms":n[i]).toLowerCase()+"-",K+t):null},J="undefined"!=typeof window?window:B.defaultView||{getComputedStyle:function(){}},Z=function(t){return J.getComputedStyle(t)},tt=o.getStyle=function(t,e,n,i,r){var o;return G||"opacity"!==e?(!i&&t.style[e]?o=t.style[e]:(n=n||Z(t))?o=n[e]||n.getPropertyValue(e)||n.getPropertyValue(e.replace(C,"-$1").toLowerCase()):t.currentStyle&&(o=t.currentStyle[e]),null==r||o&&"none"!==o&&"auto"!==o&&"auto auto"!==o?o:r):q(t)},et=X.convertToPixels=function(t,e,n,r,a){if("px"===r||!r&&"lineHeight"!==e)return n;if("auto"===r||!n)return 0;var s,u,c,l=I.test(e),f=t,h=V.style,d=n<0,p=1===n;if(d&&(n=-n),p&&(n*=100),"lineHeight"!==e||r)if("%"===r&&-1!==e.indexOf("border"))s=n/100*(l?t.clientWidth:t.clientHeight);else{if(h.cssText="border:0 solid red;position:"+tt(t,"position")+";line-height:0;","%"!==r&&f.appendChild&&"v"!==r.charAt(0)&&"rem"!==r)h[l?"borderLeftWidth":"borderTopWidth"]=n+r;else{if(f=t.parentNode||B.body,-1!==tt(f,"display").indexOf("flex")&&(h.position="absolute"),u=f._gsCache,c=i.l.ticker.frame,u&&l&&u.time===c)return u.width*n/100;h[l?"width":"height"]=n+r}f.appendChild(V),s=parseFloat(V[l?"offsetWidth":"offsetHeight"]),f.removeChild(V),l&&"%"===r&&!1!==o.cacheWidths&&((u=f._gsCache=f._gsCache||{}).time=c,u.width=s/n*100),0!==s||a||(s=et(t,e,n,r,!0))}else u=Z(t).lineHeight,t.style.lineHeight=n,s=parseFloat(Z(t).lineHeight),t.style.lineHeight=u;return p&&(s/=100),d?-s:s},nt=X.calculateOffset=function(t,e,n){if("absolute"!==tt(t,"position",n))return 0;var i="left"===e?"Left":"Top",r=tt(t,"margin"+i,n);return t["offset"+i]-(et(t,e,parseFloat(r),r.replace(x,""))||0)},it=function(t,e){var n,i,r,o={};if(e=e||Z(t))if(n=e.length)for(;--n>-1;)-1!==(r=e[n]).indexOf("-transform")&&Dt!==r||(o[r.replace(O,k)]=e.getPropertyValue(r));else for(n in e)-1!==n.indexOf("Transform")&&jt!==n||(o[n]=e[n]);else if(e=t.currentStyle||t.style)for(n in e)"string"==typeof n&&void 0===o[n]&&(o[n.replace(O,k)]=e[n]);return G||(o.opacity=q(t)),i=qt(t,e,!1),o.rotation=i.rotation,o.skewX=i.skewX,o.scaleX=i.scaleX,o.scaleY=i.scaleY,o.x=i.x,o.y=i.y,Lt&&(o.z=i.z,o.rotationX=i.rotationX,o.rotationY=i.rotationY,o.scaleZ=i.scaleZ),o.filters&&delete o.filters,o},rt=function(t,e,n,i,r){var o,a,s,u={},c=t.style;for(a in n)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(o=n[a])||r&&r[a])&&-1===a.indexOf("Origin")&&("number"!=typeof o&&"string"!=typeof o||(u[a]="auto"!==o||"left"!==a&&"top"!==a?""!==o&&"auto"!==o&&"none"!==o||"string"!=typeof e[a]||""===e[a].replace(w,"")?o:0:nt(t,a),void 0!==c[a]&&(s=new yt(c,a,c[a],s))));if(i)for(a in i)"className"!==a&&(u[a]=i[a]);return{difs:u,firstMPT:s}},ot={width:["Left","Right"],height:["Top","Bottom"]},at=["marginLeft","marginRight","marginTop","marginBottom"],st=function(t,e,n){if("svg"===(t.nodeName+"").toLowerCase())return(n||Z(t))[e]||0;if(t.getCTM&&Xt(t))return t.getBBox()[e]||0;var i=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),r=ot[e],o=r.length;for(n=n||Z(t);--o>-1;
2)i-=parseFloat(tt(t,"padding"+r[o],n,!0))||0,i-=parseFloat(tt(t,"border"+r[o]+"Width",n,!0))||0;return i},ut=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";null!=t&&""!==t||(t="0 0");var n,i=t.split(" "),r=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],o=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1];if(i.length>3&&!e){for(i=t.split(", ").join(",").split(","),t=[],n=0;n<i.length;n++)t.push(ut(i[n]));return t.join(",")}return null==o?o="center"===r?"50%":"0":"center"===o&&(o="50%"),("center"===r||isNaN(parseFloat(r))&&-1===(r+"").indexOf("="))&&(r="50%"),t=r+" "+o+(i.length>2?" "+i[2]:""),e&&(e.oxp=-1!==r.indexOf("%"),e.oyp=-1!==o.indexOf("%"),e.oxr="="===r.charAt(1),e.oyr="="===o.charAt(1),e.ox=parseFloat(r.replace(w,"")),e.oy=parseFloat(o.replace(w,"")),e.v=t),e||t},ct=function(t,e){return"function"==typeof t&&(t=t(m,_)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},lt=function(t,e){"function"==typeof t&&(t=t(m,_));var n="string"==typeof t&&"="===t.charAt(1);return"string"==typeof t&&"v"===t.charAt(t.length-2)&&(t=(n?t.substr(0,2):0)+window["inner"+("vh"===t.substr(-2)?"Height":"Width")]*(parseFloat(n?t.substr(2):t)/100)),null==t?e:n?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},ft=function(t,e,n,i){var r,o,a,s;return"function"==typeof t&&(t=t(m,_)),null==t?a=e:"number"==typeof t?a=t:(360,r=t.split("_"),o=((s="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(r[0].substr(2)):parseFloat(r[0]))*(-1===t.indexOf("rad")?1:N)-(s?0:e),r.length&&(i&&(i[n]=e+o),-1!==t.indexOf("short")&&(o%=360)!==o%180&&(o=o<0?o+360:o-360),-1!==t.indexOf("_cw")&&o<0?o=(o+3599999999640)%360-360*(o/360|0):-1!==t.indexOf("ccw")&&o>0&&(o=(o-3599999999640)%360-360*(o/360|0))),a=e+o),a<1e-6&&a>-1e-6&&(a=0),a},ht={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},dt=function(t,e,n){return 255*(6*(t=t<0?t+1:t>1?t-1:t)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)+.5|0},pt=o.parseColor=function(t,e){var n,i,r,o,a,s,u,c,l,f,h;if(t)if("number"==typeof t)n=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),ht[t])n=ht[t];else if("#"===t.charAt(0))4===t.length&&(i=t.charAt(1),r=t.charAt(2),o=t.charAt(3),t="#"+i+i+r+r+o+o),n=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(n=h=t.match(v),e){if(-1!==t.indexOf("="))return t.match(g)}else a=Number(n[0])%360/360,s=Number(n[1])/100,i=2*(u=Number(n[2])/100)-(r=u<=.5?u*(s+1):u+s-u*s),n.length>3&&(n[3]=Number(n[3])),n[0]=dt(a+1/3,i,r),n[1]=dt(a,i,r),n[2]=dt(a-1/3,i,r);else n=t.match(v)||ht.transparent;n[0]=Number(n[0]),n[1]=Number(n[1]),n[2]=Number(n[2]),n.length>3&&(n[3]=Number(n[3]))}else n=ht.black;return e&&!h&&(i=n[0]/255,r=n[1]/255,o=n[2]/255,u=((c=Math.max(i,r,o))+(l=Math.min(i,r,o)))/2,c===l?a=s=0:(f=c-l,s=u>.5?f/(2-c-l):f/(c+l),a=c===i?(r-o)/f+(r<o?6:0):c===r?(o-i)/f+2:(i-r)/f+4,a*=60),n[0]=a+.5|0,n[1]=100*s+.5|0,n[2]=100*u+.5|0),n},_t=function(t,e){var n,i,r,o=t.match(mt)||[],a=0,s="";if(!o.length)return t;for(n=0;n<o.length;n++)i=o[n],a+=(r=t.substr(a,t.indexOf(i,a)-a)).length+i.length,3===(i=pt(i,e)).length&&i.push(1),s+=r+(e?"hsla("+i[0]+","+i[1]+"%,"+i[2]+"%,"+i[3]:"rgba("+i.join(","))+")";return s+t.substr(a)},mt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(u in ht)mt+="|"+u+"\\b";mt=new RegExp(mt+")","gi"),o.colorStringFilter=function(t){var e,n=t[0]+" "+t[1];mt.test(n)&&(e=-1!==n.indexOf("hsl(")||-1!==n.indexOf("hsla("),t[0]=_t(t[0],e),t[1]=_t(t[1],e)),mt.lastIndex=0},i.l.defaultStringFilter||(i.l.defaultStringFilter=o.colorStringFilter);var vt=function(t,e,n,i){if(null==t)return function(t){return t};var r,o=e?(t.match(mt)||[""])[0]:"",a=t.split(o).join("").match(y)||[],s=t.substr(0,t.indexOf(a[0])),u=")"===t.charAt(t.length-1)?")":"",c=-1!==t.indexOf(" ")?" ":",",l=a.length,f=l>0?a[0].replace(v,""):"";return l?r=e?function(t){var e,h,d,p;
vendor: 4,516 bytes, line 2
2if("number"==typeof t)t+=f;else if(i&&D.test(t)){for(p=t.replace(D,"|").split("|"),d=0;d<p.length;d++)p[d]=r(p[d]);return p.join(",")}if(e=(t.match(mt)||[o])[0],d=(h=t.split(e).join("").match(y)||[]).length,l>d--)for(;++d<l;)h[d]=n?h[(d-1)/2|0]:a[d];return s+h.join(c)+c+e+u+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,o,h;if("number"==typeof t)t+=f;else if(i&&D.test(t)){for(o=t.replace(D,"|").split("|"),h=0;h<o.length;h++)o[h]=r(o[h]);return o.join(",")}if(h=(e=t.match(","===c?y:b)||[]).length,l>h--)for(;++h<l;)e[h]=n?e[(h-1)/2|0]:a[h];return(s&&"none"!==t&&t.substr(0,t.indexOf(e[0]))||s)+e.join(c)+u}:function(t){return t}},gt=function(t){return t=t.split(","),function(e,n,i,r,o,a,s){var u,c=(n+"").split(" ");for(s={},u=0;u<4;u++)s[t[u]]=c[u]=c[u]||c[(u-1)/2>>0];return r.parse(e,s,o,a)}},yt=(X._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,n,i,r,o,a=this.data,s=a.proxy,u=a.firstMPT;u;)e=s[u.v],u.r?e=u.r(e):e<1e-6&&e>-1e-6&&(e=0),u.t[u.p]=e,u=u._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod.call(this._tween,s.rotation,this.t,this._tween):s.rotation),1===t||0===t)for(u=a.firstMPT,o=1===t?"e":"b";u;){if((n=u.t).type){if(1===n.type){for(r=n.xs0+n.s+n.xs1,i=1;i<n.l;i++)r+=n["xn"+i]+n["xs"+(i+1)];n[o]=r}}else n[o]=n.s+n.xs0;u=u._next}},function(t,e,n,i,r){this.t=t,this.p=e,this.v=n,this.r=r,i&&(i._prev=this,this._next=i)}),bt=(X._parseToProxy=function(t,e,n,i,r,o){var a,s,u,c,l,f=i,h={},d={},p=n._transform,_=$;for(n._transform=null,$=e,i=l=n.parse(t,e,i,r),$=_,o&&(n._transform=p,f&&(f._prev=null,f._prev&&(f._prev._next=null)));i&&i!==f;){if(i.type<=1&&(d[s=i.p]=i.s+i.c,h[s]=i.s,o||(c=new yt(i,"s",s,c,i.r),i.c=0),1===i.type))for(a=i.l;--a>0;)u="xn"+a,d[s=i.p+"_"+u]=i.data[u],h[s]=i[u],o||(c=new yt(i,u,s,c,i.rxp[u]));i=i._next}return{proxy:h,end:d,firstMPT:c,pt:l}},X.CSSPropTween=function(e,n,i,o,a,s,u,c,l,f,h){this.t=e,this.p=n,this.s=i,this.c=o,this.n=u||n,e instanceof bt||r.push(this.n),this.r=c?"function"==typeof c?c:Math.round:c,this.type=s||0,l&&(this.pr=l,t=!0),this.b=void 0===f?i:f,this.e=void 0===h?i+o:h,a&&(this._next=a,a._prev=this)}),wt=function(t,e,n,i,r,o){var a=new bt(t,e,n,i-n,r,-1,o);return a.b=n,a.e=a.xs0=i,a},xt=o.parseComplex=function(t,e,n,i,r,a,s,u,l,f){n=n||a||"","function"==typeof i&&(i=i(m,_)),s=new bt(t,e,0,0,s,f?2:1,null,!1,u,n,i),i+="",r&&mt.test(i+n)&&(i=[n,i],o.colorStringFilter(i),n=i[0],i=i[1]);var h,d,p,y,b,w,x,E,T,P,A,C,O,S=n.split(", ").join(",").split(" "),k=i.split(", ").join(",").split(" "),I=S.length,R=!1!==c;for(-1===i.indexOf(",")&&-1===n.indexOf(",")||(-1!==(i+n).indexOf("rgb")||-1!==(i+n).indexOf("hsl")?(S=S.join(" ").replace(D,", ").split(" "),k=k.join(" ").replace(D,", ").split(" ")):(S=S.join(" ").split(",").join(", ").split(" "),k=k.join(" ").split(",").join(", ").split(" ")),I=S.length),I!==k.length&&(I=(S=(a||"").split(" ")).length),s.plugin=l,s.setRatio=f,mt.lastIndex=0,h=0;h<I;h++)if(y=S[h],b=k[h]+"",(E=parseFloat(y))||0===E)s.appendXtra("",E,ct(b,E),b.replace(g,""),!(!R||-1===b.indexOf("px"))&&Math.round,!0);else if(r&&mt.test(y))C=")"+((C=b.indexOf(")")+1)?b.substr(C):""),O=-1!==b.indexOf("hsl")&&G,P=b,y=pt(y,O),b=pt(b,O),(T=y.length+b.length>6)&&!G&&0===b[3]?(s["xs"+s.l]+=s.l?" transparent":"transparent",s.e=s.e.split(k[h]).join("transparent")):(G||(T=!1),O?s.appendXtra(P.substr(0,P.indexOf("hsl"))+(T?"hsla(":"hsl("),y[0],ct(b[0],y[0]),",",!1,!0).appendXtra("",y[1],ct(b[1],y[1]),"%,",!1).appendXtra("",y[2],ct(b[2],y[2]),T?"%,":"%"+C,!1):s.appendXtra(P.substr(0,P.indexOf("rgb"))+(T?"rgba(":"rgb("),y[0],b[0]-y[0],",",Math.round,!0).appendXtra("",y[1],b[1]-y[1],",",Math.round).appendXtra("",y[2],b[2]-y[2],T?",":C,Math.round),T&&(y=y.length<4?1:y[3],s.appendXtra("",y,(b.length<4?1:b[3])-y,C,!1))),mt.lastIndex=0;else if(w=y.match(v)){if(!(x=b.match(g))||x.length!==w.length)return s;for(p=0,d=0;d<w.length;d++)A=w[d],P=y.indexOf(A,p),s.appendXtra(y.substr(p,P-p),Number(A),ct(x[d],A),"",!(!R||"px"!==y.substr(P+A.length,2))&&Math.round,0===d),p=P+A.length;s["xs"+s.l]+=y.substr(p)}else s["xs"+s.l]+=s.l||s["xs"+s.l]?" "+b:b;if(-1!==i.indexOf("=")&&s.data){for(C=s.xs0+s.data.s,h=1;h<s.l;h++)C+=s["xs"+h]+s.data["xn"+h];s.e=C+s["xs"+h]}return s.l||(s.type=-1,s.xs0=s.e),s.xfirst||s},Et=9;for((u=bt.prototype).l=u.pr=0;--Et>0;)u["xn"+Et]=0,u["xs"+Et]="";u.xs0="",u._next=u._prev=u.xfirst=u.data=u.plugin=u.setRatio=u.rxp=null,u.appendXtra=function(t,e,n,i,r,o){var a=this,s=a.l;return a["xs"+s]+=o&&(s||a["xs"+s])?" "+t:t||"",n||0===s||a.plugin?(a.l++,a.type=a.setRatio?2
2:1,a["xs"+a.l]=i||"",s>0?(a.data["xn"+s]=e+n,a.rxp["xn"+s]=r,a["xn"+s]=e,a.plugin||(a.xfirst=new bt(a,"xn"+s,e,n,a.xfirst||a,0,a.n,r,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+n},a.rxp={},a.s=e,a.c=n,a.r=r,a)):(a["xs"+s]+=e+(i||""),a)};var Tt=function(t,e){e=e||{},this.p=e.prefix&&Q(t)||t,s[t]=s[this.p]=this,this.format=e.formatter||vt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.allowFunc=e.allowFunc,this.pr=e.priority||0},Pt=X._registerComplexSpecialProp=function(t,e,n){"object"!=typeof e&&(e={parser:n});var i,r=t.split(","),o=e.defaultValue;for(n=n||[o],i=0;i<r.length;i++)e.prefix=0===i&&e.prefix,e.defaultValue=n[i]||o,new Tt(r[i],e)},At=X._registerPluginProp=function(t){if(!s[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";Pt(t,{parser:function(t,n,i,r,o,u,c){var l=a.com.greensock.plugins[e];return l?(l._cssRegister(),s[i].parse(t,n,i,r,o,u,c)):(W(),o)}})}};(u=Tt.prototype).parseComplex=function(t,e,n,i,r,o){var a,s,u,c,l,f,h=this.keyword;if(this.multi&&(D.test(n)||D.test(e)?(s=e.replace(D,"|").split("|"),u=n.replace(D,"|").split("|")):h&&(s=[e],u=[n])),u){for(c=u.length>s.length?u.length:s.length,a=0;a<c;a++)e=s[a]=s[a]||this.dflt,n=u[a]=u[a]||this.dflt,h&&(l=e.indexOf(h))!==(f=n.indexOf(h))&&(-1===f?s[a]=s[a].split(h).join(""):-1===l&&(s[a]+=" "+h));e=s.join(", "),n=u.join(", ")}return xt(t,this.p,e,n,this.clrs,this.dflt,i,this.pr,r,o)},u.parse=function(t,e,i,r,o,a,s){return this.parseComplex(t.style,this.format(tt(t,this.p,n,!1,this.dflt)),this.format(e),o,a)},o.registerSpecialProp=function(t,e,n){Pt(t,{parser:function(t,i,r,o,a,s,u){var c=new bt(t,r,0,0,a,2,r,!1,n);return c.plugin=s,c.setRatio=e(t,i,o._tween,r),c},priority:n})},o.useSVGTransformAttr=!0;var Ct,Ot,St,kt,It,Rt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),jt=Q("transform"),Dt=Y+"transform",Mt=Q("transformOrigin"),Lt=null!==Q("perspective"),Nt=X.Transform=function(){this.perspective=parseFloat(o.defaultTransformPerspective)||0,this.force3D=!(!1===o.defaultForce3D||!Lt)&&(o.defaultForce3D||"auto")},$t=i.k.SVGElement,Ft=function(t,e,n){var i,r=B.createElementNS("http://www.w3.org/2000/svg",t),o=/([a-z])([A-Z])/g;for(i in n)r.setAttributeNS(null,i.replace(o,"$1-$2").toLowerCase(),n[i]);return e.appendChild(r),r},Bt=B.documentElement||{},Ut=(It=p||/Android/i.test(H)&&!i.k.chrome,B.createElementNS&&Bt.appendChild&&!It&&(Ot=Ft("svg",Bt),kt=(St=Ft("rect",Ot,{width:100,height:50,x:100})).getBoundingClientRect().width,St.style[Mt]="50% 50%",St.style[jt]="scaleX(0.5)",It=kt===St.getBoundingClientRect().width&&!(h&&Lt),Bt.removeChild(Ot)),It),Vt=function(t,e,n,i,r,a){var s,u,c,l,f,h,d,p,_,m,v,g,y,b,w=t._gsTransform,x=Gt(t,!0);w&&(y=w.xOrigin,b=w.yOrigin),(!i||(s=i.split(" ")).length<2)&&(0===(d=t.getBBox()).x&&0===d.y&&d.width+d.height===0&&(d={x:parseFloat(t.hasAttribute("x")?t.getAttribute("x"):t.hasAttribute("cx")?t.getAttribute("cx"):0)||0,y:parseFloat(t.hasAttribute("y")?t.getAttribute("y"):t.hasAttribute("cy")?t.getAttribute("cy"):0)||0,width:0,height:0}),s=[(-1!==(e=ut(e).split(" "))[0].indexOf("%")?parseFloat(e[0])/100*d.width:parseFloat(e[0]))+d.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*d.height:parseFloat(e[1]))+d.y]),n.xOrigin=l=parseFloat(s[0]),n.yOrigin=f=parseFloat(s[1]),i&&x!==Ht&&(h=x[0],d=x[1],p=x[2],_=x[3],m=x[4],v=x[5],(g=h*_-d*p)&&(u=l*(_/g)+f*(-p/g)+(p*v-_*m)/g,c=l*(-d/g)+f*(h/g)-(h*v-d*m)/g,l=n.xOrigin=s[0]=u,f=n.yOrigin=s[1]=c)),w&&(a&&(n.xOffset=w.xOffset,n.yOffset=w.yOffset,w=n),r||!1!==r&&!1!==o.defaultSmoothOrigin?(u=l-y,c=f-b,w.xOffset+=u*x[0]+c*x[2]-u,w.yOffset+=u*x[1]+c*x[3]-c):w.xOffset=w.yOffset=0),a||t.setAttribute("data-svg-origin",s.join(" "))},zt=function(t){var e,n=U("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,r=this.nextSibling,o=this.style.cssText;if(Bt.appendChild(n),n.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=zt}catch(t){}else this._originalGetBBox&&(e=this._originalGetBBox());return r?i.insertBefore(this,r):i.appendChild(this),Bt.removeChild(n),this.style.cssText=o,e},Xt=function(t){return!(!$t||!t.getCTM||t.parentNode&&!t.ownerSVGElement||!function(t){try{return t.getBBox()}catch(e){return zt.call(t,!0)}}(t))},Ht=[1,0,0,1,0,0],Gt=function(t,e){var n,i,r,o,a,s,u,c=t._gsTransform||new Nt,l=t.style;if(jt?i=tt(t,Dt,null,!0):t.currentStyle&&(i=(i=t.currentStyle.filter.match(R))&&4===i.length?[i[0].substr(4),Number(i[2].substr(4)),Number(i[1].substr(4)),i[3].substr(4),c.x||0,c.y||0].join(","):""),n=!i||"none"===i||"matrix(1, 0, 0, 1, 0, 0)"===i,jt&&n&&!t.offsetParent&&t!==Bt&&(o=l.display,l.display="block",(u=t.parentNode)&&t.offsetParent||(a=1,s=t.nextSibling,Bt.appendChild(t)),n=!(i=tt(t,Dt,null,!0))||"none"===i||"matrix(1, 0, 0, 1, 0, 0)"===i,o?l.display=o:Qt(l,"display"),a&&(s?u.insertBefore(t,s):u?u.appendChild(t):Bt.removeChild(t))),(c.svg||t.getCTM&&Xt(t))&&(n&&-1!==(l[jt]+"").indexOf("matrix")&&(i=l[jt],n=0),r=t.getAttribute("transform"),n&&r&&(i="matrix("+(r=t.transform.baseVal.consolidate().matrix).a+","+r.b+","+r.c+","+r.d+","+r.e+","+r.f+")",n=0)),n)return Ht;for(r=(i||"").match(v)||[],Et=r.length;--Et>-1;)o=Number(r[Et]),r[Et]=(a=o-(o|=0))?(1e5*a+(a<0?-.5:.5)|0)/1e5+o:o;return e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r},qt=X.getTransform=function(t,e,n,r){if(t._gsTransform&&n&&!r)return t._gsTransform;var a,s,u,c,l,f,h=n&&t._gsTransform||new Nt,d=h.scaleX<0,p=Lt&&(parseFloat(tt(t,Mt,e,!1,"0 0 0").split(" ")[2])||h.zOrigin)||0,_=parseFloat(o.defaultTransformPerspective)||0;if(h.svg=!(!t.getCTM||!Xt(t)),h.svg&&(Vt(t,tt(t,Mt,e,!1,"50% 50%")+"",h,t.getAttribute("data-svg-origin")),Ct=o.useSVGTransformAttr||Ut),(a=Gt(t))!==Ht){if(16===a.length){var m,v,g,y,b,w=a[0],x=a[1],E=a[2],T=a[3],P=a[4],A=a[5],C=a[6],O=a[7],S=a[8],k=a[9],I=a[10],R=a[12],j=a[13],D=a[14],M=a[11],L=Math.atan2(C,I);h.zOrigin&&(R=S*(D=-h.zOrigin)-a[12],j=k*D-a[13],D=I*D+h.zOrigin-a[14]),h.rotationX=L*N,L&&(m=P*(y=Math.cos(-L))+S*(b=Math.sin(-L)),v=A*y+k*b,g=C*y+I*b,S=P*-b+S*y,k=A*-b+k*y,I=C*-b+I*y,M=O*-b+M*y,P=m,A=v,C=g),L=Math.atan2(-E,I),h.rotationY=L*N,L&&(v=x*(y=Math.cos(-L))-k*(b=Math.sin(-L)),g=E*y-I*b,k=x*b+k*y,I=E*b+I*y,M=T*b+M*y,w=m=w*y-S*b,x=v,E=g),L=Math.atan2(x,w),h.rotation=L*N,L&&(m=w*(y=Math.cos(L))+x*(b=Math.sin(L)),v=P*y+A*b,g=S*y+k*b,x=x*y-w*b,A=A*y-P*b,k=k*y-S*b,w=m,P=v,S=g),h.rotationX&&Math.abs(h.rotationX)+Math.abs(h.rotation)>359.9&&(h.rotationX=h.rotation=0,h.rotationY=180-h.rotationY),L=Math.atan2(P,A),h.scaleX=(1e5*Math.sqrt(w*w+x*x+E*E)+.5|0)/1e5,h.scaleY=(1e5*Math.sqrt(A*A+C*C)+.5|0)/1e5,h.scaleZ=(1e5*
2Math.sqrt(S*S+k*k+I*I)+.5|0)/1e5,w/=h.scaleX,P/=h.scaleY,x/=h.scaleX,A/=h.scaleY,Math.abs(L)>2e-5?(h.skewX=L*N,P=0,"simple"!==h.skewType&&(h.scaleY*=1/Math.cos(L))):h.skewX=0,h.perspective=M?1/(M<0?-M:M):0,h.x=R,h.y=j,h.z=D,h.svg&&(h.x-=h.xOrigin-(h.xOrigin*w-h.yOrigin*P),h.y-=h.yOrigin-(h.yOrigin*x-h.xOrigin*A))}else if(!Lt||r||!a.length||h.x!==a[4]||h.y!==a[5]||!h.rotationX&&!h.rotationY){var $=a.length>=6,F=$?a[0]:1,B=a[1]||0,U=a[2]||0,V=$?a[3]:1;h.x=a[4]||0,h.y=a[5]||0,u=Math.sqrt(F*F+B*B),c=Math.sqrt(V*V+U*U),l=F||B?Math.atan2(B,F)*N:h.rotation||0,f=U||V?Math.atan2(U,V)*N+l:h.skewX||0,h.scaleX=u,h.scaleY=c,h.rotation=l,h.skewX=f,Lt&&(h.rotationX=h.rotationY=h.z=0,h.perspective=_,h.scaleZ=1),h.svg&&(h.x-=h.xOrigin-(h.xOrigin*F+h.yOrigin*U),h.y-=h.yOrigin-(h.xOrigin*B+h.yOrigin*V))}for(s in Math.abs(h.skewX)>90&&Math.abs(h.skewX)<270&&(d?(h.scaleX*=-1,h.skewX+=h.rotation<=0?180:-180,h.rotation+=h.rotation<=0?180:-180):(h.scaleY*=-1,h.skewX+=h.skewX<=0?180:-180)),h.zOrigin=p,h)h[s]<2e-5&&h[s]>-2e-5&&(h[s]=0)}return n&&(t._gsTransform=h,h.svg&&(Ct&&t.style[jt]?i.l.delayedCall(.001,(function(){Qt(t.style,jt)})):!Ct&&t.getAttribute("transform")&&i.l.delayedCall(.001,(function(){t.removeAttribute("transform")})))),h},Wt=function(t){var e,n,i=this.data,r=-i.rotation*L,o=r+i.skewX*L,a=(Math.cos(r)*i.scaleX*1e5|0)/1e5,s=(Math.sin(r)*i.scaleX*1e5|0)/1e5,u=(Math.sin(o)*-i.scaleY*1e5|0)/1e5,c=(Math.cos(o)*i.scaleY*1e5|0)/1e5,l=this.t.style,f=this.t.currentStyle;if(f){n=s,s=-u,u=-n,e=f.filter,l.filter="";var h,d,_=this.t.offsetWidth,m=this.t.offsetHeight,v="absolute"!==f.position,g="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+s+", M21="+u+", M22="+c,y=i.x+_*i.xPercent/100,b=i.y+m*i.yPercent/100;if(null!=i.ox&&(y+=(h=(i.oxp?_*i.ox*.01:i.ox)-_/2)-(h*a+(d=(i.oyp?m*i.oy*.01:i.oy)-m/2)*s),b+=d-(h*u+d*c)),g+=v?", Dx="+((h=_/2)-(h*a+(d=m/2)*s)+y)+", Dy="+(d-(h*u+d*c)+b)+")":", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=e.replace(j,g):l.filter=g+" "+e,0!==t&&1!==t||1===a&&0===s&&0===u&&1===c&&(v&&-1===g.indexOf("Dx=0, Dy=0")||E.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&l.removeAttribute("filter")),!v){var w,T,P,A=p<8?1:-1;for(h=i.ieOffsetX||0,d=i.ieOffsetY||0,i.ieOffsetX=Math.round((_-((a<0?-a:a)*_+(s<0?-s:s)*m))/2+y),i.ieOffsetY=Math.round((m-((c<0?-c:c)*m+(u<0?-u:u)*_))/2+b),Et=0;Et<4;Et++)P=(n=-1!==(w=f[T=at[Et]]).indexOf("px")?parseFloat(w):et(this.t,T,parseFloat(w),w.replace(x,""))||0)!==i[T]?Et<2?-i.ieOffsetX:-i.ieOffsetY:Et<2?h-i.ieOffsetX:d-i.ieOffsetY,l[T]=(i[T]=Math.round(n-P*(0===Et||2===Et?1:A)))+"px"}}},Yt=X.set3DTransformRatio=X.setTransformRatio=function(t){var e,n,i,r,o,a,s,u,c,l,f,d,p,_,m,v,g,y,b,w,x=this.data,E=this.t.style,T=x.rotation,P=x.rotationX,A=x.rotationY,C=x.scaleX,O=x.scaleY,S=x.scaleZ,k=x.x,I=x.y,R=x.z,j=x.svg,D=x.perspective,M=x.force3D,N=x.skewY,$=x.skewX;if(N&&($+=N,T+=N),!((1!==t&&0!==t||"auto"!==M||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&M||R||D||A||P||1!==S)||Ct&&j||!Lt)T||$||j?(T*=L,w=$*L,1e5,n=Math.cos(T)*C,o=Math.sin(T)*C,i=Math.sin(T-w)*-O,a=Math.cos(T-w)*O,w&&"simple"===x.skewType&&(e=Math.tan(w-N*L),i*=e=Math.sqrt(1+e*e),a*=e,N&&(e=Math.tan(N*L),n*=e=Math.sqrt(1+e*e),o*=e)),j&&(k+=x.xOrigin-(x.xOrigin*n+x.yOrigin*i)+x.xOffset,I+=x.yOrigin-(x.xOrigin*o+x.yOrigin*a)+x.yOffset,Ct&&(x.xPercent||x.yPercent)&&(m=this.t.getBBox(),k+=.01*x.xPercent*m.width,I+=.01*x.yPercent*m.height),k<(m=1e-6)&&k>-m&&(k=0),I<m&&I>-m&&(I=0)),b=(1e5*n|0)/1e5+","+(1e5*o|0)/1e5+","+(1e5*i|0)/1e5+","+(1e5*a|0)/1e5+","+k+","+I+")",j&&Ct?this.t.setAttribute("transform","matrix("+b):E[jt]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix(":"matrix(")+b):E[jt]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix(":"matrix(")+C+",0,0,"+O+","+k+","+I+")";else{if(h&&(C<(m=1e-4)&&C>-m&&(C=S=2e-5),O<m&&O>-m&&(O=S=2e-5),!D||x.z||x.rotationX||x.rotationY||(D=0)),T||$)T*=L,v=n=Math.cos(T),g=o=Math.sin(T),$&&(T-=$*L,v=Math.cos(T),g=Math.sin(T),"simple"===x.skewType&&(e=Math.tan(($-N)*L),v*=e=Math.sqrt(1+e*e),g*=e,x.skewY&&(e=Math.tan(N*L),n*=e=Math.sqrt(1+e*e),o*=e))),i=-g,a=v;else{if(!(A||P||1!==S||D||j))return void(E[jt]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) translate3d(":"translate3d(")+k+"px,"+I+"px,"+R+"px)"+(1!==C||1!==O?" scale("+C+","+O+")":""));n=a=1,i=o=0}l=1,r=s=u=c=f=d=0,p=D?-1/D:0,_=x.zOrigin,m=1e-6,",","0",(T=A*L)&&(v=Math.cos(T),u=-(g=Math.sin(T)),f=p*-g,r=n*g,s=o*g,l=v,p*=v,n*=v,o*=v),(T=P*L)&&(e=i*(v=Math.cos(T))+r*(g=
2Math.sin(T)),y=a*v+s*g,c=l*g,d=p*g,r=i*-g+r*v,s=a*-g+s*v,l*=v,p*=v,i=e,a=y),1!==S&&(r*=S,s*=S,l*=S,p*=S),1!==O&&(i*=O,a*=O,c*=O,d*=O),1!==C&&(n*=C,o*=C,u*=C,f*=C),(_||j)&&(_&&(k+=r*-_,I+=s*-_,R+=l*-_+_),j&&(k+=x.xOrigin-(x.xOrigin*n+x.yOrigin*i)+x.xOffset,I+=x.yOrigin-(x.xOrigin*o+x.yOrigin*a)+x.yOffset),k<m&&k>-m&&(k="0"),I<m&&I>-m&&(I="0"),R<m&&R>-m&&(R=0)),b=x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix3d(":"matrix3d(",b+=(n<m&&n>-m?"0":n)+","+(o<m&&o>-m?"0":o)+","+(u<m&&u>-m?"0":u),b+=","+(f<m&&f>-m?"0":f)+","+(i<m&&i>-m?"0":i)+","+(a<m&&a>-m?"0":a),P||A||1!==S?(b+=","+(c<m&&c>-m?"0":c)+","+(d<m&&d>-m?"0":d)+","+(r<m&&r>-m?"0":r),b+=","+(s<m&&s>-m?"0":s)+","+(l<m&&l>-m?"0":l)+","+(p<m&&p>-m?"0":p)+","):b+=",0,0,0,0,1,0,",b+=k+","+I+","+R+","+(D?1+-R/D:1)+")",E[jt]=b}};(u=Nt.prototype).x=u.y=u.z=u.skewX=u.skewY=u.rotation=u.rotationX=u.rotationY=u.zOrigin=u.xPercent=u.yPercent=u.xOffset=u.yOffset=0,u.scaleX=u.scaleY=u.scaleZ=1,Pt("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,i,r,a,s,u){if(r._lastParsedTransform===u)return a;r._lastParsedTransform=u;var c=u.scale&&"function"==typeof u.scale?u.scale:0;c&&(u.scale=c(m,t));var l,f,h,d,p,v,g,y,b,w=t._gsTransform,x=t.style,E=Rt.length,T=u,P={},A=qt(t,n,!0,T.parseTransform),C=T.transform&&("function"==typeof T.transform?T.transform(m,_):T.transform);if(A.skewType=T.skewType||A.skewType||o.defaultSkewType,r._transform=A,"rotationZ"in T&&(T.rotation=T.rotationZ),C&&"string"==typeof C&&jt)(f=V.style)[jt]=C,f.display="block",f.position="absolute",-1!==C.indexOf("%")&&(f.width=tt(t,"width"),f.height=tt(t,"height")),B.body.appendChild(V),l=qt(V,null,!1),"simple"===A.skewType&&(l.scaleY*=Math.cos(l.skewX*L)),A.svg&&(v=A.xOrigin,g=A.yOrigin,l.x-=A.xOffset,l.y-=A.yOffset,(T.transformOrigin||T.svgOrigin)&&(C={},Vt(t,ut(T.transformOrigin),C,T.svgOrigin,T.smoothOrigin,!0),v=C.xOrigin,g=C.yOrigin,l.x-=C.xOffset-A.xOffset,l.y-=C.yOffset-A.yOffset),(v||g)&&(y=Gt(V,!0),l.x-=v-(v*y[0]+g*y[2]),l.y-=g-(v*y[1]+g*y[3]))),B.body.removeChild(V),l.perspective||(l.perspective=A.perspective),null!=T.xPercent&&(l.xPercent=lt(T.xPercent,A.xPercent)),null!=T.yPercent&&(l.yPercent=lt(T.yPercent,A.yPercent));else if("object"==typeof T){if(l={scaleX:lt(null!=T.scaleX?T.scaleX:T.scale,A.scaleX),scaleY:lt(null!=T.scaleY?T.scaleY:T.scale,A.scaleY),scaleZ:lt(T.scaleZ,A.scaleZ),x:lt(T.x,A.x),y:lt(T.y,A.y),z:lt(T.z,A.z),xPercent:lt(T.xPercent,A.xPercent),yPercent:lt(T.yPercent,A.yPercent),perspective:lt(T.transformPerspective,A.perspective)},null!=(p=T.directionalRotation))if("object"==typeof p)for(f in p)T[f]=p[f];else T.rotation=p;"string"==typeof T.x&&-1!==T.x.indexOf("%")&&(l.x=0,l.xPercent=lt(T.x,A.xPercent)),"string"==typeof T.y&&-1!==T.y.indexOf("%")&&(l.y=0,l.yPercent=lt(T.y,A.yPercent)),l.rotation=ft("rotation"in T?T.rotation:"shortRotation"in T?T.shortRotation+"_short":A.rotation,A.rotation,"rotation",P),Lt&&(l.rotationX=ft("rotationX"in T?T.rotationX:"shortRotationX"in T?T.shortRotationX+"_short":A.rotationX||0,A.rotationX,"rotationX",P),l.rotationY=ft("rotationY"in T?T.rotationY:"shortRotationY"in T?T.shortRotationY+"_short":A.rotationY||0,A.rotationY,"rotationY",P)),l.skewX=ft(T.skewX,A.skewX),l.skewY=ft(T.skewY,A.skewY)}for(Lt&&null!=T.force3D&&(A.force3D=T.force3D,d=!0),(h=A.force3D||A.z||A.rotationX||A.rotationY||l.z||l.rotationX||l.rotationY||l.perspective)||null==T.scale||(l.scaleZ=1);--E>-1;)((C=l[b=Rt[E]]-A[b])>1e-6||C<-1e-6||null!=T[b]||null!=$[b])&&(d=!0,a=new bt(A,b,A[b],C,a),b in P&&(a.e=P[b]),a.xs0=0,a.plugin=s,r._overwriteProps.push(a.n));return C="function"==typeof T.transformOrigin?T.transformOrigin(m,_):T.transformOrigin,A.svg&&(C||T.svgOrigin)&&(v=A.xOffset,g=A.yOffset,Vt(t,ut(C),l,T.svgOrigin,T.smoothOrigin),a=wt(A,"xOrigin",(w?A:l).xOrigin,l.xOrigin,a,"transformOrigin"),a=wt(A,"yOrigin",(w?A:l).yOrigin,l.yOrigin,a,"transformOrigin"),v===A.xOffset&&g===A.yOffset||(a=wt(A,"xOffset",w?v:A.xOffset,A.xOffset,a,"transformOrigin"),a=wt(A,"yOffset",w?g:A.yOffset,A.yOffset,a,"transformOrigin")),C="0px 0px"),(C||Lt&&h&&A.zOrigin)&&(jt?(d=!0,b=Mt,C||(C=(C=(tt(t,b,n,!1,"50% 50%")+"").split(" "))[0]+" "+C[1]+" "+A.zOrigin+"px"),C+="",(a=new bt(x,b,0,0,a,-1,"transformOrigin")).b=x[b],a.plugin=s,Lt?(f=A.zOrigin,C=C.split(" "),A.zOrigin=(C.length>2?parseFloat(C[2]):f)||0,a.xs0=a.e=C[0]+" "+(C[1]||"50%")+" 0px",(a=new bt(A,"zOrigin",0,0,a,-1,a.n)).b=f,a.xs0=a.e=A.zOrigin):a.xs0=a.e=C):ut(C+"",A)),d&&(r._transformType=A.svg&&Ct||!h&&3!==this._transformType?2:3),c&&(u.scale=c),a},allowFunc:!0,prefix:!0}),Pt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Pt("clipPath",{defaultValue:"inset(0%)",prefix:!0,multi:!0,formatter:vt("inset(0% 0% 0% 0%)",!1,!0)}),Pt("borderRadius",{defaultValue:"0px",parser:function(t,i,r,o,a,s){i=this.format(i);var u,c,l,f,h,d,p,_,m,v,g,y,b,w,x,E,T=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],P=t.style;for(m=parseFloat(t.offsetWidth),v=parseFloat(t.offsetHeight),u=i.split(" "),c=0;c<T.length;c++)this.p.indexOf("border")&&(T[c]=Q(T[c])),-1!==(h=f=tt(t,T[c],n,!1,"0px")).indexOf(" ")&&(f=h.split(" "),h=f[0],f=f[1]),d=l=u[c],p=parseFloat(h),y=h.substr((p+"").length),(b="="===d.charAt(1))?(_=parseInt(d.charAt(0)+"1",10),d=d.substr(2),_*=parseFloat(d),g=d.substr((_+"").length-(_<0?1:0))||""):(_=parseFloat(d),g=d.substr((_+"").length)),""===g&&(g=e[r]||y),g!==y&&(w=et(t,"borderLeft",p,y),x=et(t,"borderTop",p,y),"%"===g?(h=w/m*100+"%",f=x/v*100+"%"):"em"===g?(h=w/(E=et(t,"borderLeft",1,"em"))+"em",f=x/E+"em"):(h=w+"px",f=x+"px"),b&&(d=parseFloat(h)+_+g,l=parseFloat(f)+_+g)),a=xt(P,T[c],h+" "+f,d+" "+l,!1,"0px",a);return a},prefix:!0,formatter:vt("0px 0px 0px 0px",!1,!0)}),Pt("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,
vendor: 5,058 bytes, line 2
2i,r,o,a){return xt(t.style,i,this.format(tt(t,i,n,!1,"0px 0px")),this.format(e),!1,"0px",o)},prefix:!0,formatter:vt("0px 0px",!1,!0)}),Pt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,r,o,a){var s,u,c,l,f,h,d="background-position",_=n||Z(t),m=this.format((_?p?_.getPropertyValue(d+"-x")+" "+_.getPropertyValue(d+"-y"):_.getPropertyValue(d):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),v=this.format(e);if(-1!==m.indexOf("%")!=(-1!==v.indexOf("%"))&&v.split(",").length<2&&(h=tt(t,"backgroundImage").replace(S,""))&&"none"!==h){for(s=m.split(" "),u=v.split(" "),z.setAttribute("src",h),c=2;--c>-1;)(l=-1!==(m=s[c]).indexOf("%"))!==(-1!==u[c].indexOf("%"))&&(f=0===c?t.offsetWidth-z.width:t.offsetHeight-z.height,s[c]=l?parseFloat(m)/100*f+"px":parseFloat(m)/f*100+"%");m=s.join(" ")}return this.parseComplex(t.style,m,v,o,a)},formatter:ut}),Pt("backgroundSize",{defaultValue:"0 0",formatter:function(t){return"co"===(t+="").substr(0,2)?t:ut(-1===t.indexOf(" ")?t+" "+t:t)}}),Pt("perspective",{defaultValue:"0px",prefix:!0}),Pt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Pt("transformStyle",{prefix:!0}),Pt("backfaceVisibility",{prefix:!0}),Pt("userSelect",{prefix:!0}),Pt("margin",{parser:gt("marginTop,marginRight,marginBottom,marginLeft")}),Pt("padding",{parser:gt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Pt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,o,a){var s,u,c;return p<9?(u=t.currentStyle,c=p<8?" ":",",s="rect("+u.clipTop+c+u.clipRight+c+u.clipBottom+c+u.clipLeft+")",e=this.format(e).split(",").join(c)):(s=this.format(tt(t,this.p,n,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,s,e,o,a)}}),Pt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Pt("autoRound,strictUnits",{parser:function(t,e,n,i,r){return r}}),Pt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,o,a){var s=tt(t,"borderTopWidth",n,!1,"0px"),u=this.format(e).split(" "),c=u[0].replace(x,"");return"px"!==c&&(s=parseFloat(s)/et(t,"borderTopWidth",1,c)+c),this.parseComplex(t.style,this.format(s+" "+tt(t,"borderTopStyle",n,!1,"solid")+" "+tt(t,"borderTopColor",n,!1,"#000")),u.join(" "),o,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(mt)||["#000"])[0]}}),Pt("borderWidth",{parser:gt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Pt("float,cssFloat,styleFloat",{parser:function(t,e,n,i,r,o){var a=t.style,s="cssFloat"in a?"cssFloat":"styleFloat";return new bt(a,s,0,0,r,-1,n,!1,0,a[s],e)}});var Kt=function(t){var e,n=this.t,i=n.filter||tt(this.data,"filter")||"",r=this.s+this.c*t|0;100===r&&(-1===i.indexOf("atrix(")&&-1===i.indexOf("radient(")&&-1===i.indexOf("oader(")?(n.removeAttribute("filter"),e=!tt(this.data,"filter")):(n.filter=i.replace(P,""),e=!0)),e||(this.xn1&&(n.filter=i=i||"alpha(opacity="+r+")"),-1===i.indexOf("pacity")?0===r&&this.xn1||(n.filter=i+" alpha(opacity="+r+")"):n.filter=i.replace(E,"opacity="+r))};Pt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,o,a){var s=parseFloat(tt(t,"opacity",n,!1,"1")),u=t.style,c="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+s),c&&1===s&&"hidden"===tt(t,"visibility",n)&&0!==e&&(s=0),G?o=new bt(u,"opacity",s,e-s,o):((o=new bt(u,"opacity",100*s,100*(e-s),o)).xn1=c?1:0,u.zoom=1,o.type=2,o.b="alpha(opacity="+o.s+")",o.e="alpha(opacity="+(o.s+o.c)+")",o.data=t,o.plugin=a,o.setRatio=Kt),c&&((o=new bt(u,"visibility",0,0,o,-1,null,!1,0,0!==s?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",r._overwriteProps.push(o.n),r._overwriteProps.push(i)),o}});var Qt=function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(C,"-$1").toLowerCase())):t.removeAttribute(e))},Jt=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,n=this.t.style;e;)e.v?n[e.p]=e.v:Qt(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)};Pt("className",{parser:function(e,i,r,o,a,s,u){var c,l,f,h,d,p=e.getAttribute("class")||"",_=e.style.cssText;if((a=o._classNamePT=new bt(e,r,0,0,a,2)).setRatio=Jt,a.pr=-11,t=!0,a.b=p,l=it(e,n),f=e._gsClassPT){for(h={},d=f.data;d;)h[d.p]=1,d=d._next;f.setRatio(1)}return e._gsClassPT=a,a.e="="!==i.charAt(1)?i:p.replace(new RegExp("(?:\\s|^)"+i.substr(2)+"(?![\\w-])"),"")+("+"===i.charAt(0)?" "+i.substr(2):""),e.setAttribute("class",a.e),c=rt(e,l,it(e),u,h),e.setAttribute("class",p),a.data=c.firstMPT,e.style.cssText!==_&&(e.style.cssText=_),a=a.xfirst=o.parse(e,c.difs,a,s)}});var Zt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,n,i,r,o,a=this.t.style,u=s.transform.parse;if("all"===this.e)a.cssText="",r=!0;else for(i=(e=this.e.split(" ").join("").split(",")).length;--i>-1;
2)n=e[i],s[n]&&(s[n].parse===u?r=!0:n="transformOrigin"===n?Mt:s[n].p),Qt(a,n);r&&(Qt(a,jt),(o=this.t._gsTransform)&&(o.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Pt("clearProps",{parser:function(e,n,i,r,o){return(o=new bt(e,i,0,0,o,2)).setRatio=Zt,o.e=n,o.pr=-10,o.data=r._tween,t=!0,o}}),u="bezier,throwProps,physicsProps,physics2D".split(","),Et=u.length;Et--;)At(u[Et]);(u=o.prototype)._firstPT=u._lastParsedTransform=u._transform=null,u._onInitTween=function(i,a,u,h){if(!i.nodeType)return!1;this._target=_=i,this._tween=u,this._vars=a,m=h,c=a.autoRound,t=!1,e=a.suffixMap||o.suffixMap,n=Z(i),r=this._overwriteProps;var p,v,g,y,b,w,x,E,P,A=i.style;if(l&&""===A.zIndex&&("auto"!==(p=tt(i,"zIndex",n))&&""!==p||this._addLazySet(A,"zIndex",0)),"string"==typeof a&&(y=A.cssText,p=it(i,n),A.cssText=y+";"+a,p=rt(i,p,it(i)).difs,!G&&T.test(a)&&(p.opacity=parseFloat(RegExp.$1)),a=p,A.cssText=y),a.className?this._firstPT=v=s.className.parse(i,a.className,"className",this,null,null,a):this._firstPT=v=this.parse(i,a,null),this._transformType){for(P=3===this._transformType,jt?f&&(l=!0,""===A.zIndex&&("auto"!==(x=tt(i,"zIndex",n))&&""!==x||this._addLazySet(A,"zIndex",0)),d&&this._addLazySet(A,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(P?"visible":"hidden"))):A.zoom=1,g=v;g&&g._next;)g=g._next;E=new bt(i,"transform",0,0,null,2),this._linkCSSP(E,null,g),E.setRatio=jt?Yt:Wt,E.data=this._transform||qt(i,n,!0),E.tween=u,E.pr=-1,r.pop()}if(t){for(;v;){for(w=v._next,g=y;g&&g.pr>v.pr;)g=g._next;(v._prev=g?g._prev:b)?v._prev._next=v:y=v,(v._next=g)?g._prev=v:b=v,v=w}this._firstPT=y}return!0},u.parse=function(t,i,r,o){var a,u,l,f,h,d,p,v,g,y,b=t.style;for(a in i){if(d=i[a],u=s[a],"function"!=typeof d||u&&u.allowFunc||(d=d(m,_)),u)r=u.parse(t,d,a,this,r,o,i);else{if("--"===a.substr(0,2)){this._tween._propLookup[a]=this._addTween.call(this._tween,t.style,"setProperty",Z(t).getPropertyValue(a)+"",d+"",a,!1,a);continue}h=tt(t,a,n)+"",g="string"==typeof d,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexOf("Color")||g&&A.test(d)?(g||(d=((d=pt(d)).length>3?"rgba(":"rgb(")+d.join(",")+")"),r=xt(b,a,h,d,!0,"transparent",r,0,o)):g&&M.test(d)?r=xt(b,a,h,d,!0,null,r,0,o):(p=(l=parseFloat(h))||0===l?h.substr((l+"").length):"",""!==h&&"auto"!==h||("width"===a||"height"===a?(l=st(t,a,n),p="px"):"left"===a||"top"===a?(l=nt(t,a,n),p="px"):(l="opacity"!==a?0:1,p="")),(y=g&&"="===d.charAt(1))?(f=parseInt(d.charAt(0)+"1",10),d=d.substr(2),f*=parseFloat(d),v=d.replace(x,"")):(f=parseFloat(d),v=g?d.replace(x,""):""),""===v&&(v=a in e?e[a]:p),d=f||0===f?(y?f+l:f)+v:i[a],p!==v&&(""===v&&"lineHeight"!==a||(f||0===f)&&l&&(l=et(t,a,l,p),"%"===v?(l/=et(t,a,100,"%")/100,!0!==i.strictUnits&&(h=l+"%")):"em"===v||"rem"===v||"vw"===v||"vh"===v?l/=et(t,a,1,v):"px"!==v&&(f=et(t,a,f,v),v="px"),y&&(f||0===f)&&(d=f+l+v))),y&&(f+=l),!l&&0!==l||!f&&0!==f?void 0!==b[a]&&(d||d+""!="NaN"&&null!=d)?(r=new bt(b,a,f||l||0,0,r,-1,a,!1,0,h,d)).xs0="none"!==d||"display"!==a&&-1===a.indexOf("Style")?d:h:W(i[a]):(r=new bt(b,a,l,f-l,r,0,a,!1!==c&&("px"===v||"zIndex"===a),0,h,d)).xs0=v)}o&&r&&!r.plugin&&(r.plugin=o)}return r},u.setRatio=function(t){var e,n,i,r=this._firstPT;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;r;){if(e=r.c*t+r.s,r.r?e=r.r(e):e<1e-6&&e>-1e-6&&(e=0),r.type)if(1===r.type)if(2===(i=r.l))r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2;else if(3===i)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3;else if(4===i)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4;else if(5===i)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4+r.xn4+r.xs5;else{for(n=r.xs0+e+r.xs1,i=1;i<r.l;i++)n+=r["xn"+i]+r["xs"+(i+1)];r.t[r.p]=n}else-1===r.type?r.t[r.p]=r.xs0:r.setRatio&&r.setRatio(t);else r.t[r.p]=e+r.xs0;r=r._next}else for(;r;)2!==r.type?r.t[r.p]=r.b:r.setRatio(t),r=r._next;else for(;r;){if(2!==r.type)if(r.r&&-1!==r.type)if(e=r.r(r.s+r.c),r.type){if(1===r.type){for(i=r.l,n=r.xs0+e+r.xs1,i=1;i<r.l;
2i++)n+=r["xn"+i]+r["xs"+(i+1)];r.t[r.p]=n}}else r.t[r.p]=e+r.xs0;else r.t[r.p]=r.e;else r.setRatio(t);r=r._next}},u._enableTransforms=function(t){this._transform=this._transform||qt(this._target,n,!0),this._transformType=this._transform.svg&&Ct||!t&&3!==this._transformType?2:3};var te=function(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};u._addLazySet=function(t,e,n){var i=this._firstPT=new bt(t,e,0,0,this._firstPT,2);i.e=n,i.setRatio=te,i.data=this},u._linkCSSP=function(t,e,n,i){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,i=!0),n?n._next=t:i||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=n),t},u._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&(e.r=t[e.p]),e=e._next},u._kill=function(t){var e,n,r,o=t;if(t.autoAlpha||t.alpha){for(n in o={},t)o[n]=t[n];o.opacity=1,o.autoAlpha&&(o.visibility=1)}for(t.className&&(e=this._classNamePT)&&((r=e.xfirst)&&r._prev?this._linkCSSP(r._prev,e._next,r._prev._prev):r===this._firstPT&&(this._firstPT=e._next),e._next&&this._linkCSSP(e._next,e._next._next,r._prev),this._classNamePT=null),e=this._firstPT;e;)e.plugin&&e.plugin!==n&&e.plugin._kill&&(e.plugin._kill(t),n=e.plugin),e=e._next;return i.j.prototype._kill.call(this,o)};var ee=function(t,e,n){var i,r,o,a;if(t.slice)for(r=t.length;--r>-1;)ee(t[r],e,n);else for(r=(i=t.childNodes).length;--r>-1;)a=(o=i[r]).type,o.style&&(e.push(it(o)),n&&n.push(o)),1!==a&&9!==a&&11!==a||!o.childNodes.length||ee(o,e,n)};return o.cascadeTo=function(t,e,n){var r,o,a,s,u=i.l.to(t,e,n),c=[u],l=[],f=[],h=[],d=i.l._internals.reservedProps;for(t=u._targets||u.target,ee(t,l,h),u.render(e,!0,!0),ee(t,f),u.render(0,!0,!0),u._enabled(!0),r=h.length;--r>-1;)if((o=rt(h[r],l[r],f[r])).firstMPT){for(a in o=o.difs,n)d[a]&&(o[a]=n[a]);for(a in s={},o)s[a]=l[r][a];c.push(i.l.fromTo(h[r],e,s,o))}return c},i.j.activate([o]),o}),!0);var s=i.m.CSSPlugin,u=i.k._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(t,e,n,i){var r,o;if("function"!=typeof t.setAttribute)return!1;for(r in e)"function"==typeof(o=e[r])&&(o=o(i,t)),this._addTween(t,"setAttribute",t.getAttribute(r)+"",o+"",r,!1,r),this._overwriteProps.push(r);return!0}}),c=i.k._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(t,e,n){return this._tween=n,!0}}),l=function(t){var e=t<1?Math.pow(10,(t+"").length-2):1;return function(n){return(Math.round(n/t)*t*e|0)/e}},f=function(t,e){for(;t;)t.f||t.blob||(t.m=e||Math.round),t=t._next},h=c.prototype;h._onInitAllProps=function(){var t,e,n,i,r=this._tween,o=r.vars.roundProps,a={},s=r._propLookup.roundProps;if("object"!=typeof o||o.push)for("string"==typeof o&&(o=o.split(",")),n=o.length;--n>-1;)a[o[n]]=Math.round;else for(i in o)a[i]=l(o[i]);for(i in a)for(t=r._firstPT;t;)e=t._next,t.pg?t.t._mod(a):t.n===i&&(2===t.f&&t.t?f(t.t._firstPT,a[i]):(this._add(t.t,i,t.s,t.c,a[i]),e&&(e._prev=t._prev),t._prev?t._prev._next=e:r._firstPT===t&&(r._firstPT=e),t._next=t._prev=null,r._propLookup[i]=s)),t=e;return!1},h._add=function(t,e,n,i,r){this._addTween(t,e,n,n+i,e,r||Math.round),this._overwriteProps.push(e)};var d=i.k._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(t,e,n,i){"object"!=typeof e&&(e={rotation:e}),this.finals={};var r,o,a,s,u,c,l=!0===e.useRadians?2*Math.PI:360;for(r in e)"useRadians"!==r&&("function"==typeof(s=e[r])&&(s=s(i,t)),o=(c=(s+"").split("_"))[0],a=parseFloat("function"!=typeof t[r]?t[r]:t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]()),u=(s=this.finals[r]="string"==typeof o&&"="===o.charAt(1)?a+parseInt(o.charAt(0)+"1",10)*Number(o.substr(2)):Number(o)||0)-a,c.length&&(-1!==(o=c.join("_")).indexOf("short")&&(u%=l)!==u%(l/2)&&(u=u<0?u+l:u-l),-1!==o.indexOf("_cw")&&u<0?u=(u+9999999999*l)%l-(u/l|0)*l:-1!==o.indexOf("ccw")&&u>0&&(u=(u-9999999999*l)%l-(u/l|0)*l)),(u>1e-6||u<-1e-6)&&(this._addTween(t,r,a,a+u,r),this._overwriteProps.push(r)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}});d._autoCSS=!0;var p=180/Math.PI,_=[],m=[],v=[],g={},y=i.k._gsDefine.globals,b=function(t,e,n,i){n===i&&(n=i-(i-e)/1e6),t===e&&(e=t+(n-t)/1e6),this.a=t,this.b=e,this.c=n,this.d=i,this.da=i-t,this.ca=n-t,this.ba=e-t},w=function(t,e,n,i){var r={a:t},o={},a={},s={c:i},u=(t+e)/2,c=(e+n)/2,l=(n+i)/2,f=(u+c)/2,h=(c+l)/2,d=(h-f)/8;return r.b=u+(t-u)/4,o.b=f+d,r.c=o.a=(r.b+o.b)/2,o.c=a.a=(f+h)/2,a.b=h-d,s.b=l+(i-l)/4,a.c=s.a=(a.b+s.b)/2,[r,o,a,s]},x=function(t,e,n,i,r){var o,a,s,u,c,l,f,h,d,p,g,y,b,x=t.length-1,E=0,T=t[0].a;for(o=0;o<x;o++)a=(c=t[E]).a,s=c.d,u=t[E+1].d,r?(g=_[o],b=((y=m[o])+g)*e*.25/(i?.5:v[o]||.5),h=s-((l=s-(s-a)*(i?.5*e:0!==g?b/g:0))+(((f=s+(u-s)*(i?.5*e:0!==y?b/y:0))-l)*(3*g/(g+y)+.5)/4||0))):h=s-((l=s-(s-a)*e*.5)+(f=s+(u-s)*e*.5))/2,l+=h,f+=h,c.c=d=l,c.b=0!==o?T:T=c.a+.6*(c.c-c.a),c.da=s-a,c.ca=d-a,c.ba=T-a,n?(p=w(a,T,d,s),t.splice(E,1,p[0],p[1],p[2],p[3]),E+=4):E++,T=f;(c=t[E]).b=T,c.c=T+.4*(c.d-T),c.da=c.d-c.a,c.ca=c.c-c.a,c.ba=T-c.a,n&&(p=w(c.a,T,c.c,c.d),t.splice(E,1,p[0],p[1],p[2],p[3]))},E=function(t,e,n,i){var r,o,a,s,u,c,l=[];
2if(i)for(o=(t=[i].concat(t)).length;--o>-1;)"string"==typeof(c=t[o][e])&&"="===c.charAt(1)&&(t[o][e]=i[e]+Number(c.charAt(0)+c.substr(2)));if((r=t.length-2)<0)return l[0]=new b(t[0][e],0,0,t[0][e]),l;for(o=0;o<r;o++)a=t[o][e],s=t[o+1][e],l[o]=new b(a,0,0,s),n&&(u=t[o+2][e],_[o]=(_[o]||0)+(s-a)*(s-a),m[o]=(m[o]||0)+(u-s)*(u-s));return l[o]=new b(t[o][e],0,0,t[o+1][e]),l},T=function(t,e,n,i,r,o){var a,s,u,c,l,f,h,d,p={},y=[],b=o||t[0];for(s in r="string"==typeof r?","+r+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==e&&(e=1),t[0])y.push(s);if(t.length>1){for(d=t[t.length-1],h=!0,a=y.length;--a>-1;)if(s=y[a],Math.abs(b[s]-d[s])>.05){h=!1;break}h&&(t=t.concat(),o&&t.unshift(o),t.push(t[1]),o=t[t.length-3])}for(_.length=m.length=v.length=0,a=y.length;--a>-1;)s=y[a],g[s]=-1!==r.indexOf(","+s+","),p[s]=E(t,s,g[s],o);for(a=_.length;--a>-1;)_[a]=Math.sqrt(_[a]),m[a]=Math.sqrt(m[a]);if(!i){for(a=y.length;--a>-1;)if(g[s])for(f=(u=p[y[a]]).length-1,c=0;c<f;c++)l=u[c+1].da/m[c]+u[c].da/_[c]||0,v[c]=(v[c]||0)+l*l;for(a=v.length;--a>-1;)v[a]=Math.sqrt(v[a])}for(a=y.length,c=n?4:1;--a>-1;)u=p[s=y[a]],x(u,e,n,i,g[s]),h&&(u.splice(0,c),u.splice(u.length-c,c));return p},P=function(t,e,n){for(var i,r,o,a,s,u,c,l,f,h,d,p=1/n,_=t.length;--_>-1;)for(o=(h=t[_]).a,a=h.d-o,s=h.c-o,u=h.b-o,i=r=0,l=1;l<=n;l++)i=r-(r=((c=p*l)*c*a+3*(f=1-c)*(c*s+f*u))*c),e[d=_*n+l-1]=(e[d]||0)+i*i},A=i.k._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.9",API:2,global:!0,init:function(t,e,n){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var i,r,o,a,s,u=e.values||[],c={},l=u[0],f=e.autoRotate||n.vars.orientToBezier;for(i in this._autoRotate=f?f instanceof Array?f:[["x","y","rotation",!0===f?0:Number(f)||0]]:null,l)this._props.push(i);for(o=this._props.length;--o>-1;)i=this._props[o],this._overwriteProps.push(i),r=this._func[i]="function"==typeof t[i],c[i]=r?t[i.indexOf("set")||"function"!=typeof t["get"+i.substr(3)]?i:"get"+i.substr(3)]():parseFloat(t[i]),s||c[i]!==u[0][i]&&(s=c);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?T(u,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,s):function(t,e,n){var i,r,o,a,s,u,c,l,f,h,d,p={},_="cubic"===(e=e||"soft")?3:2,m="soft"===e,v=[];if(m&&n&&(t=[n].concat(t)),null==t||t.length<_+1)throw"invalid Bezier data";for(f in t[0])v.push(f);for(u=v.length;--u>-1;){for(p[f=v[u]]=s=[],h=0,l=t.length,c=0;c<l;c++)i=null==n?t[c][f]:"string"==typeof(d=t[c][f])&&"="===d.charAt(1)?n[f]+Number(d.charAt(0)+d.substr(2)):Number(d),m&&c>1&&c<l-1&&(s[h++]=(i+s[h-2])/2),s[h++]=i;for(l=h-_+1,h=0,c=0;c<l;c+=_)i=s[c],r=s[c+1],o=s[c+2],a=2===_?0:s[c+3],s[h++]=d=3===_?new b(i,r,o,a):new b(i,(2*r+i)/3,(2*r+o)/3,o);s.length=h}return p}(u,e.type,c),this._segCount=this._beziers[i].length,this._timeRes){var h=function(t,e){var n,i,r,o,a=[],s=[],u=0,c=0,l=(e=e>>0||6)-1,f=[],h=[];for(n in t)P(t[n],a,e);for(r=a.length,i=0;i<r;i++)u+=Math.sqrt(a[i]),h[o=i%e]=u,o===l&&(c+=u,f[o=i/e>>0]=h,s[o]=c,u=0,h=[]);return{length:c,lengths:s,segments:f}}(this._beziers,this._timeRes);this._length=h.length,this._lengths=h.lengths,this._segments=h.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(f=this._autoRotate)for(this._initialRotations=[],f[0]instanceof Array||(this._autoRotate=f=[f]),o=f.length;--o>-1;){for(a=0;a<3;a++)i=f[o][a],this._func[i]="function"==typeof t[i]&&t[i.indexOf("set")||"function"!=typeof t["get"+i.substr(3)]?i:"get"+i.substr(3)];i=f[o][2],this._initialRotations[o]=(this._func[i]?this._func[i].call(this._target):this._target[i])||0,this._overwriteProps.push(i)}return this._startRatio=n.vars.runBackwards?1:0,!0},set:function(t){var e,n,i,r,o,a,s,u,c,l,f,h=this._segCount,d=this._func,_=this._target,m=t!==this._startRatio;if(this._timeRes){if(c=this._lengths,l=this._curSeg,f=t*this._length,i=this._li,f>this._l2&&i<h-1){for(u=h-1;i<u&&(this._l2=c[++i])<=f;);this._l1=c[i-1],this._li=i,this._curSeg=l=this._segments[i],this._s2=l[this._s1=this._si=0]}else if(f<this._l1&&i>0){for(;i>0&&(this._l1=c[--i])>=f;);0===i&&f<this._l1?this._l1=0:i++,this._l2=c[i],this._li=i,this._curSeg=l=this._segments[i],this._s1=l[(this._si=l.length-1)-1]||0,this._s2=l[this._si]}if(e=i,f-=this._l1,i=this._si,f>this._s2&&i<l.length-1){for(u=l.length-1;i<u&&(this._s2=l[++i])<=f;);this._s1=l[i-1],this._si=i}else if(f<this._s1&&i>0){for(;i>0&&(this._s1=l[--i])>=f;);0===i&&f<this._s1?this._s1=0:i++,this._s2=l[i],this._si=i}a=1===t?1:(i+(f-this._s1)/(this._s2-this._s1))*this._prec||0}else a=(t-(e=t<0?0:t>=1?h-1:h*t>>0)*(1/h))*h;for(n=1-a,i=this._props.length;--i>-1;)r=this._props[i],s=(a*a*(o=this._beziers[r][e]).da+3*n*(a*o.ca+n*o.ba))*a+o.a,this._mod[r]&&(s=this._mod[r](s,_)),d[r]?_[r](s):_[r]=s;if(this._autoRotate){var v,g,y,b,w,x,E,T=this._autoRotate;for(i=T.length;--i>-1;)r=T[i][2],x=T[i][3]||0,E=!0===T[i][4]?1:p,o=this._beziers[T[i][0]],v=this._beziers[T[i][1]],o&&v&&(o=o[e],v=v[e],g=o.a+(o.b-o.a)*a,g+=((b=o.b+(o.c-o.b)*a)-g)*a,b+=(o.c+(o.d-o.c)*a-b)*a,y=v.a+(v.b-v.a)*a,y+=((w=v.b+(v.c-v.b)*a)-y)*a,w+=(v.c+(v.d-v.c)*a-w)*a,s=m?Math.atan2(w-y,b-g)*E+x:this._initialRotations[i],this._mod[r]&&(s=this._mod[r](s,_)),d[r]?_[r](s):_[r]=s)}}}),C=A.prototype;A.bezierThrough=T,A.cubicToQuadratic=w,A._autoCSS=!0,A.quadraticToCubic=function(t,e,n){return new b(t,(2*e+t)/3,(2*e+n)/3,n)},A._cssRegister=function(){var t=y.CSSPlugin;if(t){var e=t._internals,n=e._parseToProxy,i=e._setPluginRatio,r=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,o,a,s,u){e instanceof Array&&(e={values:e}),u=new A;var c,l,f,h=e.values,d=h.length-1,p=[],_={};if(d<0)return s;for(c=0;c<=d;c++)f=n(t,h[c],a,s,u,d!==c),p[c]=f.end;for(l in e)_[l]=e[l];return _.values=p,(s=new r(t,"bezier",0,0,f.pt,2)).data=f,s.plugin=u,s.setRatio=i,0===_.autoRotate&&(_.autoRotate=!0),!_.autoRotate||_.autoRotate instanceof Array||(c=!0===_.autoRotate?0:Number(_.autoRotate),_.autoRotate=null!=f.end.left?[["left","top","rotation",c,!1]]:null!=f.end.x&&[["x","y","rotation",c,!1]]),_.autoRotate&&(a._transform||a._enableTransforms(!1),f.autoRotate=a._target._gsTransform,f.proxy.rotation=f.autoRotate.rotation||0,a._over
2writeProps.push("rotation")),u._onInitTween(f.proxy,_,a._tween),s}})}},C._mod=function(t){for(var e,n=this._overwriteProps,i=n.length;--i>-1;)(e=t[n[i]])&&"function"==typeof e&&(this._mod[n[i]]=e)},C._kill=function(t){var e,n,i=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],n=i.length;--n>-1;)i[n]===e&&i.splice(n,1);if(i=this._autoRotate)for(n=i.length;--n>-1;)t[i[n][2]]&&i.splice(n,1);return this._super._kill.call(this,t)},i.k._gsDefine("easing.Back",["easing.Ease"],(function(){var t,e,n,r,o=i.k.GreenSockGlobals||i.k,a=o.com.greensock,s=2*Math.PI,u=Math.PI/2,c=a._class,l=function(t,e){var n=c("easing."+t,(function(){}),!0),r=n.prototype=new i.b;return r.constructor=n,r.getRatio=e,n},f=i.b.register||function(){},h=function(t,e,n,i,r){var o=c("easing."+t,{easeOut:new e,easeIn:new n,easeInOut:new i},!0);return f(o,t),o},d=function(t,e,n){this.t=t,this.v=e,n&&(this.next=n,n.prev=this,this.c=n.v-e,this.gap=n.t-t)},p=function(t,e){var n=c("easing."+t,(function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1}),!0),r=n.prototype=new i.b;return r.constructor=n,r.getRatio=e,r.config=function(t){return new n(t)},n},_=h("Back",p("BackOut",(function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1})),p("BackIn",(function(t){return t*t*((this._p1+1)*t-this._p1)})),p("BackInOut",(function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)}))),m=c("easing.SlowMo",(function(t,e,n){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=!0===n}),!0),v=m.prototype=new i.b;return v.constructor=m,v.getRatio=function(t){var e=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1===t?0:1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},m.ease=new m(.7,.7),v.config=m.config=function(t,e,n){return new m(t,e,n)},(v=(t=c("easing.SteppedEase",(function(t,e){t=t||1,this._p1=1/t,this._p2=t+(e?0:1),this._p3=e?1:0}),!0)).prototype=new i.b).constructor=t,v.getRatio=function(t){return t<0?t=0:t>=1&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},v.config=t.config=function(e,n){return new t(e,n)},(v=(e=c("easing.ExpoScaleEase",(function(t,e,n){this._p1=Math.log(e/t),this._p2=e-t,this._p3=t,this._ease=n}),!0)).prototype=new i.b).constructor=e,v.getRatio=function(t){return this._ease&&(t=this._ease.getRatio(t)),(this._p3*Math.exp(this._p1*t)-this._p3)/this._p2},v.config=e.config=function(t,n,i){return new e(t,n,i)},(v=(n=c("easing.RoughEase",(function(t){for(var e,n,r,o,a,s,u=(t=t||{}).taper||"none",c=[],l=0,f=0|(t.points||20),h=f,p=!1!==t.randomize,_=!0===t.clamp,m=t.template instanceof i.b?t.template:null,v="number"==typeof t.strength?.4*t.strength:.4;--h>-1;)e=p?Math.random():1/f*h,n=m?m.getRatio(e):e,r="none"===u?v:"out"===u?(o=1-e)*o*v:"in"===u?e*e*v:e<.5?(o=2*e)*o*.5*v:(o=2*(1-e))*o*.5*v,p?n+=Math.random()*r-.5*r:h%2?n+=.5*r:n-=.5*r,_&&(n>1?n=1:n<0&&(n=0)),c[l++]={x:e,y:n};for(c.sort((function(t,e){return t.x-e.x})),s=new d(1,1,null),h=f;--h>-1;)a=c[h],s=new d(a.x,a.y,s);this._prev=new d(0,0,0!==s.t?s:s.next)}),!0)).prototype=new i.b).constructor=n,v.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},v.config=function(t){return new n(t)},n.ease=new n,h("Bounce",l("BounceOut",(function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375})),l("BounceIn",(function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)})),l("BounceInOut",(function(t){var e=t<.5;return(t=e?1-2*t:2*t-1)<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5}))),h("Circ",l("CircOut",(function(t){return Math.sqrt(1-(t-=1)*t)})),l("CircIn",(function(t){return-(Math.sqrt(1-t*t)-1)})),l("CircInOut",(function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}))),h("Elastic",(r=function(t,e,n){var r=c("easing."+t,(function(t,e){this._p1=t>=1?t:1,this._p2=(e||n)/(t<1?t:1),this._p3=this._p2/s*(Math.asin(1/this._p1)||0),this._p2=s/this._p2}),!0),o=r.prototype=new i.b;return o.constructor=r,o.getRatio=e,o.config=function(t,e){return new r(t,e)},r})("ElasticOut",(function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1}),.3),r("ElasticIn",(function(t){return-this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)}),.3),r("ElasticInOut",(function(t){return(t*=2)<1?this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)*.5+1}),.45)),h("Expo",l("ExpoOut",(function(t){return 1-Math.pow(2,-10*t)})),l("ExpoIn",(function(t){return Math.pow(2,10*(t-1))-.001})),l("ExpoInOut",(function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))}))),h("Sine",l("SineOut",(function(t){return Math.sin(t*u)})),l("SineIn",(function(t){return 1-Math.cos(t*u)})),l("SineInOut",(function(t){return-.5*(Math.cos(Math.PI*t)-1)}))),c("easing.EaseLookup",{find:function(t){return i.b.map[t]}},!0),f(o.SlowMo,"SlowMo","ease,"),f(n,"RoughEase","ease,"),f(t,"SteppedEase","ease,"),_}),!0);var O=i.m.Back,S=i.m.Elastic,k=i.m.Bounce,I=i.m.RoughEase,R=i.m.SlowMo,j=i.m.SteppedEase,D=i.m.Circ,M=i.m.Expo,L=i.m.Sine,N=i.m.ExpoScaleEase,$=a;$._autoActivated=[r,o,s,u,A,c,d,O,S,k,I,R,j,D,M,L,N]},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var i=n(156),r=n(159);t.exports=function(t,e){var n=r(t,e);return i(n)?n:void 0}},function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.prototype.load=function(t){return new Promise((function(e,n){var i=new Image;i.onload=function(){e(i)},i.onerror=function(){n(new Error("Not Found : "+i.src))},i.src=t}))},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.setup=function(){return new Promise((function(t,e){t()}))},t.abort=function(){this._controller.abort()},t.fetchItems=function(t){var e=this;return new Promise((function(n,i){var r=new URLSearchParams;for(var o in t)r.set("filter["+o+"]",t[o]);e._controller=new AbortController,e._fetch("item?"+r.toString()+"&filter[orderby]=rand").then((function(t){n(t)})).catch((function(t){i(t)}))}))},t.fetchProjectByItemId=function(t){var e=this;return new Promise((function(n,i){var r="filter[meta_query][0][key]=project_gallery_$_project_gallery_item_id&filter[meta_query][0][value]=";r+=t,e._controller=new AbortController,e._fetch("project?"+r).then((function(t){n(t)})).catch((function(t){i(t)}))}))},t.fetchPost=function(e,n){var i=this;return new Promise((function(r,o){i._controller=new AbortController;var a=i._controller,s=t.WP_REST_API+e+"/"+n;fetch(s,{signal:a.signal}).then((function(t){return t.ok||o(new Error("HTTP Status : "+t.status)),t.json()})).then((function(t){r(t)})).catch((function(t){t.name,o(t)}))}))},t._fetch=function(e){var n=this;return new Promise((function(i,r){var o=n._controller,a=t.WP_REST_API+e+t.WP_PER_PAGE;fetch(a,{signal:o.signal}).then((function(t){return t.ok||r(new Error("HTTP Status : "+t.status)),t.json()})).then((function(t){i(t)})).catch((function(t){t.name,r(t)}))}))},t.WP_REST_API="/wp-json/wp/v2/",t.WP_PER_PAGE="&per_page=48",t._controller=new AbortController,t}();e.default=i},function(t,e,n){var i=n(68),r=n(140),o=n(27);t.exports=function(t){return o(t)?i(t):r(t)}},function(t,e,n){var i=n(20),r=n(136),o=n(137),a="[object Null]",s="[object Undefined]",u=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?s:a:u&&u in Object(t)?r(t):o(t)}},function(t,e,n){var i=n(8).Symbol;t.exports=i},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=n(57),a=i(n(92)),s=i(n(93)),u=i(n(2)),c=i(n(255)),l=i(n(256)),f=i(n(257)),h=i(n(258)),d=function(){function t(){}return t.setup=function(t){var e=this;return new Promise((function(n,i){e._$container=t,e._$player=t.find(".js-movie-player__player"),e._$closeButton=t.find(".js-movie-player__close-button"),e._$loading=t.find(".js-movie-player__loading"),e._youtube=new a.default,e._vimeo=new s.default;var r=t.find(".js-movie-player__ui"),o=t.find(".js-movie-player__seek-bar"),d=t.find(".js-movie-player__sound-button"),p=t.find(".js-movie-player__full-screen-button"),_=!u.default.isMobile;e._ui=new h.default(r),e._seekBar=new f.default(o),e._soundButton=new c.default(d),e._fullScreenButton=new l.default(p),e._animationFrameId=0,Promise.all([e._youtube.init(e._$player,a.default.PLAYER_ID,_),e._vimeo.init(e._$player,s.default.PLAYER_ID,_)]).then((function(){e.resize(window.innerWidth,window.innerHeight),n()})).catch((function(t){i(t)}))}))},t.load=function(t,e){var n=this;return new Promise((function(i,r){var o=n._youtube,a=n._vimeo;switch(e){case u.default.VIDEO_PLATFORM_VIMEO:n._player=a;break;case u.default.VIDEO_PLATFORM_YOUTUBE:n._player=o}var s=n._$container,c=n._player,l=n._ui,f=n._seekBar,h=n._soundButton,d=n._fullScreenButton;s.addClass("is-visible"),c.load(t).then((function(){return n._unmute(),Promise.all([f.init(),h.init(),d.init(),l.init()])})).then((function(){i()})).catch((function(t){r(t)}))}))},t.show=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._$loading,a=t._player,s=t._ui,u=t._seekBar,c=t._soundButton,l=t._fullScreenButton;o.disableBodyScroll(i.get(0)),Promise.all([a.show(),u.show(),c.show(),l.show()]).then((function(){r.addClass("is-hidden"),t._addEvent(),t._update(),s.start(),e()})).catch((function(t){n(t)}))}))},t.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._$loading,a=t._player,s=t._ui,u=t._seekBar,c=t._soundButton,l=t._fullScreenButton;null!==t._fullscreenElement&&t._exitFullScreen(),window.cancelAnimationFrame(t._animationFrameId),t._removeEvent(),s.stop().then((function(){return Promise.all([a.hide(),u.hide(),c.hide(),l.hide()])})).then((function(){i.removeClass("is-visible"),r.removeClass("is-hidden"),o.clearAllBodyScrollLocks(),e()})).catch((function(t){n(t)}))}))},t.exit=function(){var t=this;return new Promise((function(e,n){var i=t._player,r=t._ui,o=t._seekBar,a=t._soundButton,s=t._fullScreenButton;Promise.all([i.exit(),r.exit(),o.exit(),a.exit(),s.exit()]).then((function(){e()})).catch((function(t){n(t)}))}))},t.resize=function(t,e){u.default.isMobile&&this._$container.css({height:e})},t._update=function(){var t=this,e=this._player,n=this._seekBar;this._animationFrameId=window.requestAnimationFrame((function(){var i=e.currentTime,r=e.duration;n.update(i,r),t._update()}))},t._play=function(){this._player.play()},t._pause=function(){this._player.pause()},t._stop=function(){this._player.pause()},t._seekTo=function(t){this._player.seekTo(t)},t._mute=function(){this._player.mute()},t._unmute=function(){this._player.unmute()},t._fullScreen=function(){var t=this._$container.get(0);t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.requestFullscreen&&t.requestFullscreen()},t._exitFullScreen=function(){var t=document;t.webkitCancelFullScreen?t.webkitCancelFullScreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.exitFullscreen&&t.exitFullscreen()},Object.defineProperty(t,"_fullscreenElement",{get:function(){var t=document;return t.webkitFullscreenElement?t.webkitFullscreenElement:t.mozFullScreenElement?t.mozFullScreenElement:t.fullscreenElement?t.fullscreenElement:void 0},enumerable:!0,configurable:!0}),t._addEvent=function(){var t=this,e=this._$container,n=this._$closeButton,i=this._soundButton,o=this._fullScreenButton,a=this._seekBar,s=this._player;n.on("click",(function(){return t.hide(),!1}
2)),r.default(i).on("click",(function(e,n){n?t._mute():t._unmute()})),r.default(o).on("click",(function(e,n){n?t._fullScreen():t._exitFullScreen()})),r.default(a).on("click",(function(e,n){var i=s.duration;t._seekTo(n*i)})),e.on("click",(function(){return s.isPlaying?t._pause():t._play(),!1})),e.on("webkitfullscreenchange mozfullscreenchange fullscreenchange",(function(e){t._fullscreenElement||(o.isFullScreen=!1)}))},t._removeEvent=function(){var t=this._$container,e=this._$closeButton,n=r.default(this._seekBar),i=r.default(this._soundButton),o=r.default(this._fullScreenButton);t.off(),e.off("click"),n.off("click"),i.off("click"),o.off("click")},t}();e.default=d},function(t,e,n){"use strict";var i=n(110);t.exports=Function.prototype.bind||i},function(t,e,n){"use strict";var i=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=Object.getPrototypeOf||function(t){return t.__proto__},a=void 0,s="undefined"==typeof Uint8Array?void 0:o(Uint8Array),u={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":r?o([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":a&&r&&Symbol.asyncIterator?a[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":r?o(o([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&r?o((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":R
2angeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&r?o((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":r?o(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":r?Symbol:void 0,"$ %SymbolPrototype%":r?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":i,"$ %TypedArray%":s,"$ %TypedArrayPrototype%":s?s.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};t.exports=function(t,e){if(arguments.length>1&&"boolean"!=typeof e)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+t;if(!(n in u))throw new SyntaxError("intrinsic "+t+" does not exist!");if(void 0===u[n]&&!e)throw new TypeError("intrinsic "+t+" exists, but is not available. Please file an issue!");return u[n]}},function(t,e,n){"use strict";function i(t){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return null===e?null:[e[1],e[2],e[3]].map((function(t){return parseInt(t,16)}))}function r(t,e,n){return e/=255,n/=255,t=(t/=255)>.04045?Math.pow((t+.005)/1.055,2.4):t/12.92,e=e>.04045?Math.pow((e+.005)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.005)/1.055,2.4):n/12.92,[.4124*(t*=100)+.3576*(e*=100)+.1805*(n*=100),.2126*t+.7152*e+.0722*n,.0193*t+.1192*e+.9505*n]}function o(t,e,n){return e/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(e=e>.008856?Math.pow(e,1/3):7.787*e+16/116)-16,500*(t-e),200*(e-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]}function a(t,e,n){var i=r(t,e,n);return o(i[0],i[1],i[2])}function s(t,e){var n=t[0],i=t[1],r=t[2],o=e[0],a=e[1],s=e[2],u=n-o,c=i-a,l=r-s,f=Math.sqrt(i*i+r*r),h=o-n,d=Math.sqrt(a*a+s*s)-f,p=Math.sqrt(u*u+c*c+l*l),_=Math.sqrt(p)>Math.sqrt(Math.abs(h))+Math.sqrt(Math.abs(d))?Math.sqrt(p*p-h*h-d*d):0;return h/=1,d/=1*(1+.045*f),_/=1*(1+.015*f),Math.sqrt(h*h+d*d+_*_)}function u(t,e){return s(a.apply(void 0,t),a.apply(void 0,e))}Object.defineProperty(e,"__esModule",{value:!0}),e.DELTAE94_DIFF_STATUS={NA:0,PERFECT:1,CLOSE:2,GOOD:10,SIMILAR:50},e.SIGBITS=5,e.RSHIFT=8-e.SIGBITS,e.defer=function(){var t,e,n=new Promise((function(n,i){t=n,e=i}));return{resolve:t,reject:e,promise:n}},e.hexToRgb=i,e.rgbToHex=function(t,e,n){return"#"+((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1,7)},e.rgbToHsl=function(t,e,n){t/=255,e/=255,n/=255;var i,r,o=Math.max(t,e,n),a=Math.min(t,e,n),s=(o+a)/2;if(o===a)i=r=0;else{var u=o-a;switch(r=s>.5?u/(2-o-a):u/(o+a),o){case t:i=(e-n)/u+(e<n?6:0);break;case e:i=(n-t)/u+2;break;case n:i=(t-e)/u+4}i/=6}return[i,r,s]},e.hslToRgb=function(t,e,n){var i,r,o;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(0===e)i=r=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,u=2*n-s;
2i=a(u,s,t+1/3),r=a(u,s,t),o=a(u,s,t-1/3)}return[255*i,255*r,255*o]},e.rgbToXyz=r,e.xyzToCIELab=o,e.rgbToCIELab=a,e.deltaE94=s,e.rgbDiff=u,e.hexDiff=function(t,e){return u(i(t),i(e))},e.getColorDiffStatus=function(t){return t<e.DELTAE94_DIFF_STATUS.NA?"N/A":t<=e.DELTAE94_DIFF_STATUS.PERFECT?"Perfect":t<=e.DELTAE94_DIFF_STATUS.CLOSE?"Close":t<=e.DELTAE94_DIFF_STATUS.GOOD?"Good":t<e.DELTAE94_DIFF_STATUS.SIMILAR?"Similar":"Wrong"},e.getColorIndex=function(t,n,i){return(t<<2*e.SIGBITS)+(n<<e.SIGBITS)+i}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var i=n(73),r=n(43);t.exports=function(t){return null!=t&&r(t.length)&&!i(t)}},function(t,e,n){var i=n(146),r=n(147),o=n(148),a=n(149),s=n(150);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}u.prototype.clear=i,u.prototype.delete=r,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var i=n(21);t.exports=function(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}},function(t,e,n){var i=n(15)(Object,"create");t.exports=i},function(t,e,n){var i=n(168);t.exports=function(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var i=n(182),r=n(48),o=n(183),a=n(184),s=n(185),u=n(19),c=n(74),l=c(i),f=c(r),h=c(o),d=c(a),p=c(s),_=u;(i&&"[object DataView]"!=_(new i(new ArrayBuffer(1)))||r&&"[object Map]"!=_(new r)||o&&"[object Promise]"!=_(o.resolve())||a&&"[object Set]"!=_(new a)||s&&"[object WeakMap]"!=_(new s))&&(_=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,i=n?c(n):"";if(i)switch(i){case l:return"[object DataView]";case f:return"[object Map]";case h:return"[object Promise]";case d:return"[object Set]";case p:return"[object WeakMap]"}return e}),t.exports=_},function(t,e,n){var i=n(52),r=1/0;t.exports=function(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-r?"-0":e}},function(t,e,n){var i=n(86),r=n(87);t.exports=function(t,e,n,o){var a=!n;n||(n={});for(var s=-1,u=e.length;++s<u;){var c=e[s],l=o?o(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),a?r(n,c,l):i(n,c,l)}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.load=function(){var e=this;return new Promise((function(n,i){var r=location.hostname,o=r!==t.HOST_NAME_LOACAL?t.API_URL_CONOHA:t.API_URL_TYPESQUARE;e._isLoaded?(r!==t.HOST_NAME_LOACAL&&Ts.loadFont(),n()):e._load(o).then((function(){n()})).catch((function(t){i(t)}))}))},Object.defineProperty(t,"isLoaded",{get:function(){return this._isLoaded},set:function(t){this._isLoaded=t},enumerable:!0,configurable:!0}),t._load=function(t){var e=this;return new Promise((function(n,i){var r=document.getElementsByTagName("head")[0],o=document.getElementsByTagName("script")[0],a=document.createElement("script");a.src=t+"&fadein=-1&auto_load_font=true",r.insertBefore(a,o),e._isLoaded=!0,n()}))},t.HOST_NAME_LOACAL="local.sasaguchi.com",t.HOST_NAME_DEVELOP="sasaguchi.conohawing.com",t.HOST_NAME_PRODUCTION="sasaguchi.com",t.ID="rj520-iaP8k%3D",t.API_URL_CONOHA="//code.typesquare.com/static/5b0e3c4aee6847bda5a036abac1e024a/typesquare.js?",t.API_URL_TYPESQUARE="//typesquare.com/3/tsst/script/ja/typesquare.js?"+t.ID,t._isLoaded=!1,t}();e.default=i},function(t,e,n){"use strict";function i(t,e){var n=t.__state.conversionName.toString(),i=Math.round(t.r),r=Math.round(t.g),o=Math.round(t.b),a=t.a,s=Math.round(t.h),u=t.s.toFixed(1),c=t.v.toFixed(1);if(e||"THREE_CHAR_HEX"===n||"SIX_CHAR_HEX"===n){for(var l=t.hex.toString(16);l.length<6;)l="0"+l;return"#"+l}return"CSS_RGB"===n?"rgb("+i+","+r+","+o+")":"CSS_RGBA"===n?"rgba("+i+","+r+","+o+","+a+")":"HEX"===n?"0x"+t.hex.toString(16):"RGB_ARRAY"===n?"["+i+","+r+","+o+"]":"RGBA_ARRAY"===n?"["+i+","+r+","+o+","+a+"]":"RGB_OBJ"===n?"{r:"+i+",g:"+r+",b:"+o+"}":"RGBA_OBJ"===n?"{r:"+i+",g:"+r+",b:"+o+",a:"+a+"}":"HSV_OBJ"===n?"{h:"+s+",s:"+u+",v:"+c+"}":"HSVA_OBJ"===n?"{h:"+s+",s:"+u+",v:"+c+",a:"+a+"}":"unknown format"}n.r(e),n.d(e,"color",(function(){return lt})),n.d(e,"controllers",(function(){return ft})),n.d(e,"dom",(function(){return ht})),n.d(e,"gui",(function(){return dt})),n.d(e,"GUI",(function(){return pt}));var r=Array.prototype.forEach,o=Array.prototype.slice,a={BREAK:{}
vendor: 14,936 bytes, line 2
2,extend:function(t){return this.each(o.call(arguments,1),(function(e){(this.isObject(e)?Object.keys(e):[]).forEach(function(n){this.isUndefined(e[n])||(t[n]=e[n])}.bind(this))}),this),t},defaults:function(t){return this.each(o.call(arguments,1),(function(e){(this.isObject(e)?Object.keys(e):[]).forEach(function(n){this.isUndefined(t[n])&&(t[n]=e[n])}.bind(this))}),this),t},compose:function(){var t=o.call(arguments);return function(){for(var e=o.call(arguments),n=t.length-1;n>=0;n--)e=[t[n].apply(this,e)];return e[0]}},each:function(t,e,n){if(t)if(r&&t.forEach&&t.forEach===r)t.forEach(e,n);else if(t.length===t.length+0){var i,o=void 0;for(o=0,i=t.length;o<i;o++)if(o in t&&e.call(n,t[o],o)===this.BREAK)return}else for(var a in t)if(e.call(n,t[a],a)===this.BREAK)return},defer:function(t){setTimeout(t,0)},debounce:function(t,e,n){var i=void 0;return function(){var r=this,o=arguments;function a(){i=null,n||t.apply(r,o)}var s=n||!i;clearTimeout(i),i=setTimeout(a,e),s&&t.apply(r,o)}},toArray:function(t){return t.toArray?t.toArray():o.call(t)},isUndefined:function(t){return void 0===t},isNull:function(t){return null===t},isNaN:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){return isNaN(t)})),isArray:Array.isArray||function(t){return t.constructor===Array},isObject:function(t){return t===Object(t)},isNumber:function(t){return t===t+0},isString:function(t){return t===t+""},isBoolean:function(t){return!1===t||!0===t},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)}},s=[{litmus:a.isString,conversions:{THREE_CHAR_HEX:{read:function(t){var e=t.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);return null!==e&&{space:"HEX",hex:parseInt("0x"+e[1].toString()+e[1].toString()+e[2].toString()+e[2].toString()+e[3].toString()+e[3].toString(),0)}},write:i},SIX_CHAR_HEX:{read:function(t){var e=t.match(/^#([A-F0-9]{6})$/i);return null!==e&&{space:"HEX",hex:parseInt("0x"+e[1].toString(),0)}},write:i},CSS_RGB:{read:function(t){var e=t.match(/^rgb\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\)/);return null!==e&&{space:"RGB",r:parseFloat(e[1]),g:parseFloat(e[2]),b:parseFloat(e[3])}},write:i},CSS_RGBA:{read:function(t){var e=t.match(/^rgba\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\)/);return null!==e&&{space:"RGB",r:parseFloat(e[1]),g:parseFloat(e[2]),b:parseFloat(e[3]),a:parseFloat(e[4])}},write:i}}},{litmus:a.isNumber,conversions:{HEX:{read:function(t){return{space:"HEX",hex:t,conversionName:"HEX"}},write:function(t){return t.hex}}}},{litmus:a.isArray,conversions:{RGB_ARRAY:{read:function(t){return 3===t.length&&{space:"RGB",r:t[0],g:t[1],b:t[2]}},write:function(t){return[t.r,t.g,t.b]}},RGBA_ARRAY:{read:function(t){return 4===t.length&&{space:"RGB",r:t[0],g:t[1],b:t[2],a:t[3]}},write:function(t){return[t.r,t.g,t.b,t.a]}}}},{litmus:a.isObject,conversions:{RGBA_OBJ:{read:function(t){return!!(a.isNumber(t.r)&&a.isNumber(t.g)&&a.isNumber(t.b)&&a.isNumber(t.a))&&{space:"RGB",r:t.r,g:t.g,b:t.b,a:t.a}},write:function(t){return{r:t.r,g:t.g,b:t.b,a:t.a}}},RGB_OBJ:{read:function(t){return!!(a.isNumber(t.r)&&a.isNumber(t.g)&&a.isNumber(t.b))&&{space:"RGB",r:t.r,g:t.g,b:t.b}},write:function(t){return{r:t.r,g:t.g,b:t.b}}},HSVA_OBJ:{read:function(t){return!!(a.isNumber(t.h)&&a.isNumber(t.s)&&a.isNumber(t.v)&&a.isNumber(t.a))&&{space:"HSV",h:t.h,s:t.s,v:t.v,a:t.a}},write:function(t){return{h:t.h,s:t.s,v:t.v,a:t.a}}},HSV_OBJ:{read:function(t){return!!(a.isNumber(t.h)&&a.isNumber(t.s)&&a.isNumber(t.v))&&{space:"HSV",h:t.h,s:t.s,v:t.v}},write:function(t){return{h:t.h,s:t.s,v:t.v}}}}}],u=void 0,c=void 0,l=function(){c=!1;var t=arguments.length>1?a.toArray(arguments):arguments[0];return a.each(s,(function(e){if(e.litmus(t))return a.each(e.conversions,(function(e,n){if(u=e.read(t),!1===c&&!1!==u)return c=u,u.conversionName=n,u.conversion=e,a.BREAK})),a.BREAK})),c},f=void 0,h={hsv_to_rgb:function(t,e,n){var i=Math.floor(t/60)%6,r=t/60-Math.floor(t/60),o=n*(1-e),a=n*(1-r*e),s=n*(1-(1-r)*e),u=[[n,s,o],[a,n,o],[o,n,s],[o,a,n],[s,o,n],[n,o,a]][i];return{r:255*u[0],g:255*u[1],b:255*u[2]}},rgb_to_hsv:function(t,e,n){var i=Math.min(t,e,n),r=Math.max(t,e,n),o=r-i,a=void 0;return 0===r?{h:NaN,s:0,v:0}:(a=t===r?(e-n)/o:e===r?2+(n-t)/o:4+(t-e)/o,(a/=6)<0&&(a+=1),{h:360*a,s:o/r,v:r/255})},rgb_to_hex:function(t,e,n){var i=this.hex_with_component(0,2,t);return i=this.hex_with_component(i,1,e),i=this.hex_with_component(i,0,n)},component_from_hex:function(t,e){return t>>8*e&255},hex_with_component:function(t,e,n){return n<<(f=8*e)|t&~(255<<f)}},d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},_=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),m=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0},v=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},g=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},y=function(){function t(){if(p(this,t),this.__state=l.apply(this,arguments),!1===this.__state)throw new Error("Failed to interpret color arguments");this.__state.a=this.__state.a||1}return _(t,[{key:"toString",value:function(){return i(this)}},{key:"toHexString",value:function(){return i(this,!0)}},{key:"toOriginal",value:function(){return this.__state.conversion.write(this)}}]),t}();function b(t,e,n){Object.defineProperty(t,e,{get:function(){return"RGB"===this.__state.space?this.__state[e]:(y.recalculateRGB(this,e,n),this.__state[e])},set:function(t){"RGB"!==this.__state.space&&(y.recalculateRGB(this,e,n),this.__state.space="RGB"),this.__state[e]=t}})}function w(t,e){Object.defineProperty(t,e,{get:function(){return"HSV"===this.__state.space?this.__state[e]:(y.recalculateHSV(this),this.__state[e])},set:function(t){"HSV"!==this.__state.space&&(y.recalculateHSV(this),this.__state.space="HSV"),this.__state[e]=t}})}y.recalculateRGB=function(t,e,n){if("HEX"===t.__state.space)t.__state[e]=h.component_from_hex(t.__state.hex,n);else{if("HSV"!==t.__state.space)throw new Error("Corrupted color state");a.extend(t.__state,h.hsv_to_rgb(t.__state.h,t.__state.s,t.__state.v))}},y.recalculateHSV=function(t){var e=h.rgb_to_hsv(t.r,t.g,t.b);a.extend(t.__state,{s:e.s,v:e.v}),a.isNaN(e.h)?a.isUndefined(t.__state.h)&&(t.__state.h=0):t.__state.h=e.h},y.COMPONENTS=["r","g","b","h","s","v","hex","a"],b(y.prototype,"r",2),b(y.prototype,"g",1),b(y.prototype,"b",0),w(y.prototype,"h"),w(y.prototype,"s"),w(y.prototype,"v"),Object.defineProperty(y.prototype,"a",{get:function(){return this.__state.a},set:function(t){this.__state.a=t}}),Object.defineProperty(y.prototype,"hex",{get:function(){return"HEX"!==!this.__state.space&&(this.__state.hex=h.rgb_to_hex(this.r,this.g,this.b)),this.__state.hex},set:function(t){this.__state.space="HEX",this.__state.hex=t}});var x=function(){function t(e,n){p(this,t),this.initialValue=e[n],this.domElement=document.createElement("div"),this.object=e,this.property=n,this.__onChange=void 0,this.__onFinishChange=void 0}return _(t,[{key:"onChange",value:function(t){return this.__onChange=t,this}},{key:"onFinishChange",value:function(t){return this.__onFinishChange=t,this}},{key:"setValue",value:function(t){return this.object[this.property]=t,this.__onChange&&this.__onChange.call(this,t),this.updateDisplay(),this}},{key:"getValue",value:function(){return this.object[this.property]}},{key:"updateDisplay",value:function(){return this}},{key:"isModified",value:function(){return this.initialValue!==this.getValue()}}]),t}(),E={};a.each({HTMLEvents:["change"],MouseEvents:["click","mousemove","mousedown","mouseup","mouseover"],KeyboardEvents:["keydown"]},(function(t,e){a.each(t,(function(t){E[t]=e}))}));var T=/(\d+(\.\d+)?)px/;function P(t){if("0"===t||a.isUndefined(t))return 0;var e=t.match(T);return a.isNull(e)?0:parseFloat(e[1])}var A={makeSelectable:function(t,e){void 0!==t&&void 0!==t.style&&(t.onselectstart=e?function(){return!1}:function(){},t.style.MozUserSelect=e?"auto":"none",t.style.KhtmlUserSelect=e?"auto":"none",t.unselectable=e?"on":"off")},makeFullscreen:function(t,e,n){var i=n,r=e;a.isUndefined(r)&&(r=!0),a.isUndefined(i)&&(i=!0),t.style.position="absolute",r&&(t.style.left=0,t.style.right=0),i&&(t.style.top=0,t.style.bottom=0)},fakeEvent:function(t,e,n,i){var r=n||{},o=E[e];if(!o)throw new Error("Event type "+e+" not supported.");var s=document.createEvent(o);switch(o){case"MouseEvents":var u=r.x||r.clientX||0,c=r.y||r.clientY||0;s.initMouseEvent(e,r.bubbles||!1,r.cancelable||!0,window,r.clickCount||1,0,0,u,c,!1,!1,!1,!1,0,null);break;case"KeyboardEvents":var l=s.initKeyboardEvent||s.initKeyEvent;a.defaults(r,{cancelable:!0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,keyCode:void 0,charCode:void 0}),l(e,r.bubbles||!1,r.cancelable,window,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.keyCode,r.charCode);break;default:s.initEvent(e,r.bubbles||!1,r.cancelable||!0)}a.defaults(s,i),t.dispatchEvent(s)},bind:function(t,e,n,i){var r=i||!1;return t.addEventListener?t.addEventListener(e,n,r):t.attachEvent&&t.attachEvent("on"+e,n),A},unbind:function(t,e,n,i){var r=i||!1;return t.removeEventListener?t.removeEventListener(e,n,r):t.detachEvent&&t.detachEvent("on"+e,n),A},addClass:function(t,e){if(void 0===t.className)t.className=e;else if(t.className!==e){var n=t.className.split(/ +/);-1===n.indexOf(e)&&(n.push(e),t.className=n.join(" ").replace(/^\s+/,"").replace(/\s+$/,""))}return A},removeClass:function(t,e){if(e)if(t.className===e)t.removeAttribute("class");else{var n=t.className.split(/ +/),i=n.indexOf(e);-1!==i&&(n.splice(i,1),t.className=n.join(" "))}else t.className=void 0;return A},hasClass:function(t,e){return new RegExp("(?:^|\\s+)"+e+"(?:\\s+|$)").test(t.className)||!1},getWidth:function(t){var e=getComputedStyle(t);return P(e["border-left-width"])+P(e["border-right-width"])+P(e["padding-left"])+P(e["padding-right"])+P(e.width)},getHeight:function(t){var e=getComputedStyle(t);return P(e["border-top-width"])+P(e["border-bottom-width"])+P(e["padding-top"])+P(e["padding-bottom"])+P(e.height)},getOffset:function(t){var e=t,n={left:0,top:0};if(e.offsetParent)do{n.left+=e.offsetLeft,n.top+=e.offsetTop,e=e.offsetParent}while(e);return n},isActive:function(t){return t===document.activeElement&&(t.type||t.href)}},C=function(t){function e(t,n){p(this,e);var i=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),r=i;return i.__prev=i.getValue(),i.__checkbox=document.createElement("input"),i.__checkbox.setAttribute("type","checkbox"),A.bind(i.__checkbox,"change",(function(){r.setValue(!r.__prev)}),!1),i.domElement.appendChild(i.__checkbox),i.updateDisplay(),i}return v(e,t),_(e,[{key:"setValue",value:function(t){var n=m(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setValue",this).call(this,t);return this.__onFinishChange&&this.__onFinishChange.call(this,this.getValue()),this.__prev=this.getValue(),n}},{key:"updateDisplay",value:function(){return!0===this.getValue()?(this.__checkbox.setAttribute("checked","checked"),this.__checkbox.checked=!0,this.__prev=!0):(this.__checkbox.checked=!1,this.__prev=!1),m(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"updateDisplay",this).call(this)}}]),e}(x),O=function(t){function e(t,n,i){p(this,e);var r=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),o=i,s=r;if(r.__select=document.createElement("select"),a.isArray(o)){var u={};a.each(o,(function(t){u[t]=t})),o=u}return a.each(o,(function(t,e){var n=document.createElement("option");n.innerHTML=e,n.setAttribute("value",t),s.__select.appendChild(n)})),r.updateDisplay(),A.bind(r.__select,"change",(function(){var t=this.options[this.selectedIndex].value;s.setValue(t)})),r.domElement.appendChild(r.__select),r}return v(e,t),_(e,[{key:"setValue",value:function(t){var n=m(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setValue",this).call(this,t);return this.__onFinishChange&&this.__onFinishChange.call(this,this.getValue()),n}},{key:"updateDisplay",value:function(){return A.isActive(this.__select)?this:(this.__select.value=this.getValue(),m(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"updateDisplay",this).call(this))}}]),e}(x),S=function(t){function e(t,n){p(this,e);var i=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),r=i;function o(){r.setValue(r.__input.value)}return i.__input=document.createElement("input"),i.__input.setAttribute("type","text"),A.bind(i.__input,"keyup",o),A.bind(i.__input,"change",o),A.bind(i.__input,"blur",(function(){r.__onFinishChange&&r.__onFinishChange.call(r,r.getValue())})),A.bind(i.__input,"keydown",(function(t){13===t.keyCode&&this.blur()})),i.updateDisplay(),i.domElement.appendChild(i.__input),i}return v(e,t),_(e,[{key:"updateDisplay",value:function(){return A.isActive(this.__input)||(this.__input.value=this.getValue()),m(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"updateDisplay",this).call(this)}}]),e}(x);function k(t){var e=t.toString();return e.indexOf(".")>-1?e.length-e.indexOf(".")-1:0}var I=function(t){function e(t,n,i){p(this,e);var r=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),o=i||{};return r.__min=o.min,r.__max=o.max,r.__step=o.step,a.isUndefined(r.__step)?0===r.initialValue?r.__impliedStep=1:r.__impliedStep=Math.pow(10,Math.floor(Math.log(Math.abs(r.initialValue))/Math.LN10))/10:r.__impliedStep=r.__step,r.__precision=k(r.__impliedStep),r}return v(e,t),_(e,[{key:"setValue",value:function(t){var n=t;return void 0!==this.__min&&n<this.__min?n=this.__min:void 0!==this.__max&&n>this.__max&&(n=this.__max),void 0!==this.__step&&n%this.__step!=0&&(n=Math.round(n/this.__step)*this.__step),m(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setValue",this).call(this,n)}},{key:"min",value:function(t){return this.__min=t,this}},{key:"max",value:function(t){return this.__max=t,this}},{key:"step",value:function(t){return this.__step=t,this.__impliedStep=t,this.__precision=k(t),this}}]),e}(x);var R=function(t){function e(t,n,i){p(this,e);var r=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n,i)
2);r.__truncationSuspended=!1;var o=r,s=void 0;function u(){o.__onFinishChange&&o.__onFinishChange.call(o,o.getValue())}function c(t){var e=s-t.clientY;o.setValue(o.getValue()+e*o.__impliedStep),s=t.clientY}function l(){A.unbind(window,"mousemove",c),A.unbind(window,"mouseup",l),u()}return r.__input=document.createElement("input"),r.__input.setAttribute("type","text"),A.bind(r.__input,"change",(function(){var t=parseFloat(o.__input.value);a.isNaN(t)||o.setValue(t)})),A.bind(r.__input,"blur",(function(){u()})),A.bind(r.__input,"mousedown",(function(t){A.bind(window,"mousemove",c),A.bind(window,"mouseup",l),s=t.clientY})),A.bind(r.__input,"keydown",(function(t){13===t.keyCode&&(o.__truncationSuspended=!0,this.blur(),o.__truncationSuspended=!1,u())})),r.updateDisplay(),r.domElement.appendChild(r.__input),r}return v(e,t),_(e,[{key:"updateDisplay",value:function(){var t,n,i;return this.__input.value=this.__truncationSuspended?this.getValue():(t=this.getValue(),n=this.__precision,i=Math.pow(10,n),Math.round(t*i)/i),m(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"updateDisplay",this).call(this)}}]),e}(I);function j(t,e,n,i,r){return i+(t-e)/(n-e)*(r-i)}var D=function(t){function e(t,n,i,r,o){p(this,e);var a=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n,{min:i,max:r,step:o})),s=a;function u(t){t.preventDefault();var e=s.__background.getBoundingClientRect();return s.setValue(j(t.clientX,e.left,e.right,s.__min,s.__max)),!1}function c(){A.unbind(window,"mousemove",u),A.unbind(window,"mouseup",c),s.__onFinishChange&&s.__onFinishChange.call(s,s.getValue())}function l(t){var e=t.touches[0].clientX,n=s.__background.getBoundingClientRect();s.setValue(j(e,n.left,n.right,s.__min,s.__max))}function f(){A.unbind(window,"touchmove",l),A.unbind(window,"touchend",f),s.__onFinishChange&&s.__onFinishChange.call(s,s.getValue())}return a.__background=document.createElement("div"),a.__foreground=document.createElement("div"),A.bind(a.__background,"mousedown",(function(t){document.activeElement.blur(),A.bind(window,"mousemove",u),A.bind(window,"mouseup",c),u(t)})),A.bind(a.__background,"touchstart",(function(t){if(1!==t.touches.length)return;A.bind(window,"touchmove",l),A.bind(window,"touchend",f),l(t)})),A.addClass(a.__background,"slider"),A.addClass(a.__foreground,"slider-fg"),a.updateDisplay(),a.__background.appendChild(a.__foreground),a.domElement.appendChild(a.__background),a}return v(e,t),_(e,[{key:"updateDisplay",value:function(){var t=(this.getValue()-this.__min)/(this.__max-this.__min);return this.__foreground.style.width=100*t+"%",m(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"updateDisplay",this).call(this)}}]),e}(I),M=function(t){function e(t,n,i){p(this,e);var r=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),o=r;return r.__button=document.createElement("div"),r.__button.innerHTML=void 0===i?"Fire":i,A.bind(r.__button,"click",(function(t){return t.preventDefault(),o.fire(),!1})),A.addClass(r.__button,"button"),r.domElement.appendChild(r.__button),r}return v(e,t),_(e,[{key:"fire",value:function(){this.__onChange&&this.__onChange.call(this),this.getValue().call(this.object),this.__onFinishChange&&this.__onFinishChange.call(this,this.getValue())}}]),e}(x),L=function(t){function e(t,n){p(this,e);var i=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));i.__color=new y(i.getValue()),i.__temp=new y(0);var r=i;i.domElement=document.createElement("div"),A.makeSelectable(i.domElement,!1),i.__selector=document.createElement("div"),i.__selector.className="selector",i.__saturation_field=document.createElement("div"),i.__saturation_field.className="saturation-field",i.__field_knob=document.createElement("div"),i.__field_knob.className="field-knob",i.__field_knob_border="2px solid ",i.__hue_knob=document.createElement("div"),i.__hue_knob.className="hue-knob",i.__hue_field=document.createElement("div"),i.__hue_field.className="hue-field",i.__input=document.createElement("input"),i.__input.type="text",i.__input_textShadow="0 1px 1px ",A.bind(i.__input,"keydown",(function(t){13===t.keyCode&&d.call(this)})),A.bind(i.__input,"blur",d),A.bind(i.__selector,"mousedown",(function(){A.addClass(this,"drag").bind(window,"mouseup",(function(){A.removeClass(r.__selector,"drag")}))})),A.bind(i.__selector,"touchstart",(function(){A.addClass(this,"drag").bind(window,"touchend",(function(){A.removeClass(r.__selector,"drag")}))}));var o,s=document.createElement("div");function u(t){m(t),A.bind(window,"mousemove",m),A.bind(window,"touchmove",m),A.bind(window,"mouseup",f),A.bind(window,"touchend",f)}function c(t){v(t),A.bind(window,"mousemove",v),A.bind(window,"touchmove",v),A.bind(window,"mouseup",h),A.bind(window,"touchend",h)}function f(){A.unbind(window,"mousemove",m),A.unbind(window,"touchmove",m),A.unbind(window,"mouseup",f),A.unbind(window,"touchend",f),_()}function h(){A.unbind(window,"mousemove",v),A.unbind(window,"touchmove",v),A.unbind(window,"mouseup",h),A.unbind(window,"touchend",h),_()}function d(){var t=l(this.value);!1!==t?(r.__color.__state=t,r.setValue(r.__color.toOriginal())):this.value=r.__color.toString()}function _(){r.__onFinishChange&&r.__onFinishChange.call(r,r.__color.toOriginal())}function m(t){-1===t.type.indexOf("touch")&&t.preventDefault();var e=r.__saturation_field.getBoundingClientRect(),n=t.touches&&t.touches[0]||t,i=n.clientX,o=n.clientY,a=(i-e.left)/(e.right-e.left),s=1-(o-e.top)/(e.bottom-e.top);return s>1?s=1:s<0&&(s=0),a>1?a=1:a<0&&(a=0),r.__color.v=s,r.__color.s=a,r.setValue(r.__color.toOriginal()),!1}function v(t){-1===t.type.indexOf("touch")&&t.preventDefault();var e=r.__hue_field.getBoundingClientRect(),n=1-((t.touches&&t.touches[0]||t).
vendor: 10,596 bytes, line 2
2clientY-e.top)/(e.bottom-e.top);return n>1?n=1:n<0&&(n=0),r.__color.h=360*n,r.setValue(r.__color.toOriginal()),!1}return a.extend(i.__selector.style,{width:"122px",height:"102px",padding:"3px",backgroundColor:"#222",boxShadow:"0px 1px 3px rgba(0,0,0,0.3)"}),a.extend(i.__field_knob.style,{position:"absolute",width:"12px",height:"12px",border:i.__field_knob_border+(i.__color.v<.5?"#fff":"#000"),boxShadow:"0px 1px 3px rgba(0,0,0,0.5)",borderRadius:"12px",zIndex:1}),a.extend(i.__hue_knob.style,{position:"absolute",width:"15px",height:"2px",borderRight:"4px solid #fff",zIndex:1}),a.extend(i.__saturation_field.style,{width:"100px",height:"100px",border:"1px solid #555",marginRight:"3px",display:"inline-block",cursor:"pointer"}),a.extend(s.style,{width:"100%",height:"100%",background:"none"}),$(s,"top","rgba(0,0,0,0)","#000"),a.extend(i.__hue_field.style,{width:"15px",height:"100px",border:"1px solid #555",cursor:"ns-resize",position:"absolute",top:"3px",right:"3px"}),(o=i.__hue_field).style.background="",o.style.cssText+="background: -moz-linear-gradient(top, #ff0000 0%, #ff00ff 17%, #0000ff 34%, #00ffff 50%, #00ff00 67%, #ffff00 84%, #ff0000 100%);",o.style.cssText+="background: -webkit-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);",o.style.cssText+="background: -o-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);",o.style.cssText+="background: -ms-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);",o.style.cssText+="background: linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);",a.extend(i.__input.style,{outline:"none",textAlign:"center",color:"#fff",border:0,fontWeight:"bold",textShadow:i.__input_textShadow+"rgba(0,0,0,0.7)"}),A.bind(i.__saturation_field,"mousedown",u),A.bind(i.__saturation_field,"touchstart",u),A.bind(i.__field_knob,"mousedown",u),A.bind(i.__field_knob,"touchstart",u),A.bind(i.__hue_field,"mousedown",c),A.bind(i.__hue_field,"touchstart",c),i.__saturation_field.appendChild(s),i.__selector.appendChild(i.__field_knob),i.__selector.appendChild(i.__saturation_field),i.__selector.appendChild(i.__hue_field),i.__hue_field.appendChild(i.__hue_knob),i.domElement.appendChild(i.__input),i.domElement.appendChild(i.__selector),i.updateDisplay(),i}return v(e,t),_(e,[{key:"updateDisplay",value:function(){var t=l(this.getValue());if(!1!==t){var e=!1;a.each(y.COMPONENTS,(function(n){if(!a.isUndefined(t[n])&&!a.isUndefined(this.__color.__state[n])&&t[n]!==this.__color.__state[n])return e=!0,{}}),this),e&&a.extend(this.__color.__state,t)}a.extend(this.__temp.__state,this.__color.__state),this.__temp.a=1;var n=this.__color.v<.5||this.__color.s>.5?255:0,i=255-n;a.extend(this.__field_knob.style,{marginLeft:100*this.__color.s-7+"px",marginTop:100*(1-this.__color.v)-7+"px",backgroundColor:this.__temp.toHexString(),border:this.__field_knob_border+"rgb("+n+","+n+","+n+")"}),this.__hue_knob.style.marginTop=100*(1-this.__color.h/360)+"px",this.__temp.s=1,this.__temp.v=1,$(this.__saturation_field,"left","#fff",this.__temp.toHexString()),this.__input.value=this.__color.toString(),a.extend(this.__input.style,{backgroundColor:this.__color.toHexString(),color:"rgb("+n+","+n+","+n+")",textShadow:this.__input_textShadow+"rgba("+i+","+i+","+i+",.7)"})}}]),e}(x),N=["-moz-","-o-","-webkit-","-ms-",""];function $(t,e,n,i){t.style.background="",a.each(N,(function(r){t.style.cssText+="background: "+r+"linear-gradient("+e+", "+n+" 0%, "+i+" 100%); "}))}var F=function(t,e){var n=e||document,i=document.createElement("style");i.type="text/css",i.innerHTML=t;var r=n.getElementsByTagName("head")[0];try{r.appendChild(i)}catch(t){}},B='<div id="dg-save" class="dg dialogue">\n\n Here\'s the new load parameter for your <code>GUI</code>\'s constructor:\n\n <textarea id="dg-new-constructor"></textarea>\n\n <div id="dg-save-locally">\n\n <input id="dg-local-storage" type="checkbox"/> Automatically save\n values to <code>localStorage</code> on exit.\n\n <div id="dg-local-explain">The values saved to <code>localStorage</code> will\n override those passed to <code>dat.GUI</code>\'s constructor. This makes it\n easier to work incrementally, but <code>localStorage</code> is fragile,\n and your friends may not see the same values you do.\n\n </div>\n\n </div>\n\n</div>',U=function(t,e){var n=t[e];return a.isArray(arguments[2])||a.isObject(arguments[2])?new O(t,e,arguments[2]):a.isNumber(n)?a.isNumber(arguments[2])&&a.isNumber(arguments[3])?a.isNumber(arguments[4])?new D(t,e,arguments[2],arguments[3],arguments[4]):new D(t,e,arguments[2],arguments[3]):a.isNumber(arguments[4])?new R(t,e,{min:arguments[2],max:arguments[3],step:arguments[4]}):new R(t,e,{min:arguments[2],max:arguments[3]}):a.isString(n)?new S(t,e):a.isFunction(n)?new M(t,e,""):a.isBoolean(n)?new C(t,e):null};var V=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,1e3/60)},z=function(){function t(){p(this,t),this.backgroundElement=document.createElement("div"),a.extend(this.backgroundElement.style,{backgroundColor:"rgba(0,0,0,0.8)",top:0,left:0,display:"none",zIndex:"1000",opacity:0,WebkitTransition:"opacity 0.2s linear",transition:"opacity 0.2s linear"}),A.makeFullscreen(this.backgroundElement),this.backgroundElement.style.position="fixed",this.domElement=document.createElement("div"),a.extend(this.domElement.style,{position:"fixed",display:"none",zIndex:"1001",opacity:0,WebkitTransition:"-webkit-transform 0.2s ease-out, opacity 0.2s linear",transition:"transform 0.2s ease-out, opacity 0.2s linear"}),document.body.appendChild(this.backgroundElement),document.body.appendChild(this.domElement);var e=this;A.bind(this.backgroundElement,"click",(function(){e.hide()}))}return _(t,[{key:"show",value:function(){var t=this;this.backgroundElement.style.display="block",this.domElement.style.display="block",this.domElement.style.opacity=0,this.domElement.style.webkitTransform="scale(1.1)",this.layout(),a.defer((function(){t.backgroundElement.style.opacity=1,t.domElement.style.opacity=1,t.domElement.style.webkitTransform="scale(1)"}))}},{key:"hide",value:function(){var t=this,e=function e(){t.domElement.style.display="none",t.backgroundElement.style.display="none",A.unbind(t.domElement,"webkitTransitionEnd",e),A.unbind(t.domElement,"transitionend",e),A.unbind(t.domElement,"oTransitionEnd",e)};A.bind(this.domElement,"webkitTransitionEnd",e),A.bind(this.domElement,"transitionend",e),A.bind(this.domElement,"oTransitionEnd",e),this.backgroundElement.style.opacity=0,this.domElement.style.opacity=0,this.domElement.style.webkitTransform="scale(1.1)"}},{key:"layout",value:function(){this.domElement.style.left=window.innerWidth/2-A.getWidth(this.domElement)/2+"px",this.domElement.style.top=window.innerHeight/2-A.getHeight(this.domElement)/2+"px"}}]),t}();F(function(t){if(t&&"undefined"!=typeof window){var e=document.createElement("style");return e.setAttribute("type","text/css"),e.innerHTML=t,document.head.appendChild(e),t}}(".dg ul{list-style:none;margin:0;padding:0;width:100%;clear:both}.dg.ac{position:fixed;top:0;left:0;right:0;height:0;z-index:0}.dg:not(.ac) .main{overflow:hidden}.dg.main{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear}.dg.main.taller-than-window{overflow-y:auto}.dg.main.taller-than-window .close-button{opacity:1;margin-top:-1px;border-top:1px solid #2c2c2c}.dg.main ul.closed .close-button{opacity:1 !important}.dg.main:hover .close-button,.dg.main .close-button.drag{opacity:1}.dg.main .close-button{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear;border:0;line-height:19px;height:20px;cursor:pointer;text-align:center;background-color:#000}.dg.main .close-button.close-top{position:relative}.dg.main .close-button.close-bottom{position:absolute}.dg.main .close-button:hover{background-color:#111}.dg.a{float:right;margin-right:15px;overflow-y:visible}.dg.a.has-save>ul.close-top{margin-top:0}.dg.a.has-save>ul.close-bottom{margin-top:27px}.dg.a.has-save>ul.closed{margin-top:0}.dg.a .save-row{top:0;z-index:1002}.dg.a .save-row.close-top{position:relative}.dg.a .save-row.close-bottom{position:fixed}.dg li{-webkit-transition:height .1s ease-out;-o-transition:height .1s ease-out;-moz-transition:height .1s ease-out;transition:height .1s ease-out;-webkit-transition:overflow .1s linear;-o-transition:overflow .1s linear;-moz-transition:overflow .1s linear;transition:overflow .1s linear}.dg li:not(.folder){cursor:auto;height:27px;line-height:27px;padding:0 4px 0 5px}.dg li.folder{padding:0;border-left:4px solid rgba(0,0,0,0)}.dg li.title{cursor:pointer;margin-left:-4px}.dg .closed li:not(.title),.dg .closed ul li,.dg .closed ul li>*{height:0;overflow:hidden;border:0}.dg .cr{clear:both;padding-left:3px;height:27px;overflow:hidden}.dg .property-name{cursor:default;float:left;clear:left;width:40%;overflow:hidden;text-overflow:ellipsis}.dg .c{float:left;width:60%;position:relative}.dg .c input[type=text]{border:0;margin-top:4px;padding:3px;width:100%;float:right}.dg .has-slider input[type=text]{width:30%;margin-left:0}.dg .slider{float:left;width:66%;margin-left:-5px;margin-right:0;height:19px;margin-top:4px}.dg .slider-fg{height:100%}.dg .c input[type=checkbox]{margin-top:7px}.dg .c select{margin-top:5px}.dg .cr.function,.dg .cr.function .property-name,.dg .cr.function *,.dg .cr.boolean,.dg .cr.boolean *{cursor:pointer}.dg .cr.color{overflow:visible}.dg .selector{display:none;position:absolute;margin-left:-9px;margin-top:23px;z-index:10}.dg .c:hover .selector,.dg .selector.drag{display:block}.dg li.save-row{padding:0}.dg li.save-row .button{display:inline-block;padding:0px 6px}.dg.dialogue{background-color:#222;width:460px;padding:15px;font-size:13px;line-height:15px}#dg-new-constructor{padding:10px;color:#222;font-family:Monaco, monospace;font-size:10px;border:0;resize:none;box-shadow:inset 1px 1px 1px #888;word-wrap:break-word;margin:12px 0;display:block;width:440px;overflow-y:scroll;height:100px;position:relative}#dg-local-explain{display:none;font-size:11px;line-height:17px;border-radius:3px;background-color:#333;padding:8px;margin-top:10px}#dg-local-explain code{font-size:10px}#dat-gui-save-locally{display:none}.dg{color:#eee;
2font:11px 'Lucida Grande', sans-serif;text-shadow:0 -1px 0 #111}.dg.main::-webkit-scrollbar{width:5px;background:#1a1a1a}.dg.main::-webkit-scrollbar-corner{height:0;display:none}.dg.main::-webkit-scrollbar-thumb{border-radius:5px;background:#676767}.dg li:not(.folder){background:#1a1a1a;border-bottom:1px solid #2c2c2c}.dg li.save-row{line-height:25px;background:#dad5cb;border:0}.dg li.save-row select{margin-left:5px;width:108px}.dg li.save-row .button{margin-left:5px;margin-top:1px;border-radius:2px;font-size:9px;line-height:7px;padding:4px 4px 5px 4px;background:#c5bdad;color:#fff;text-shadow:0 1px 0 #b0a58f;box-shadow:0 -1px 0 #b0a58f;cursor:pointer}.dg li.save-row .button.gears{background:#c5bdad url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAANCAYAAAB/9ZQ7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQJJREFUeNpiYKAU/P//PwGIC/ApCABiBSAW+I8AClAcgKxQ4T9hoMAEUrxx2QSGN6+egDX+/vWT4e7N82AMYoPAx/evwWoYoSYbACX2s7KxCxzcsezDh3evFoDEBYTEEqycggWAzA9AuUSQQgeYPa9fPv6/YWm/Acx5IPb7ty/fw+QZblw67vDs8R0YHyQhgObx+yAJkBqmG5dPPDh1aPOGR/eugW0G4vlIoTIfyFcA+QekhhHJhPdQxbiAIguMBTQZrPD7108M6roWYDFQiIAAv6Aow/1bFwXgis+f2LUAynwoIaNcz8XNx3Dl7MEJUDGQpx9gtQ8YCueB+D26OECAAQDadt7e46D42QAAAABJRU5ErkJggg==) 2px 1px no-repeat;height:7px;width:8px}.dg li.save-row .button:hover{background-color:#bab19e;box-shadow:0 -1px 0 #b0a58f}.dg li.folder{border-bottom:0}.dg li.title{padding-left:16px;background:#000 url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlI+hKgFxoCgAOw==) 6px 10px no-repeat;cursor:pointer;border-bottom:1px solid rgba(255,255,255,0.2)}.dg .closed li.title{background-image:url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlGIWqMCbWAEAOw==)}.dg .cr.boolean{border-left:3px solid #806787}.dg .cr.color{border-left:3px solid}.dg .cr.function{border-left:3px solid #e61d5f}.dg .cr.number{border-left:3px solid #2FA1D6}.dg .cr.number input[type=text]{color:#2FA1D6}.dg .cr.string{border-left:3px solid #1ed36f}.dg .cr.string input[type=text]{color:#1ed36f}.dg .cr.function:hover,.dg .cr.boolean:hover{background:#111}.dg .c input[type=text]{background:#303030;outline:none}.dg .c input[type=text]:hover{background:#3c3c3c}.dg .c input[type=text]:focus{background:#494949;color:#fff}.dg .c .slider{background:#303030;cursor:ew-resize}.dg .c .slider-fg{background:#2FA1D6;max-width:100%}.dg .c .slider:hover{background:#3c3c3c}.dg .c .slider:hover .slider-fg{background:#44abda}\n"));var X="Default",H=function(){try{return!!window.localStorage}catch(t){return!1}}(),G=void 0,q=!0,W=void 0,Y=!1,K=[],Q=function t(e){var n=this,i=e||{};this.domElement=document.createElement("div"),this.__ul=document.createElement("ul"),this.domElement.appendChild(this.__ul),A.addClass(this.domElement,"dg"),this.__folders={},this.__controllers=[],this.__rememberedObjects=[],this.__rememberedObjectIndecesToControllers=[],this.__listening=[],i=a.defaults(i,{closeOnTop:!1,autoPlace:!0,width:t.DEFAULT_WIDTH}),i=a.defaults(i,{resizable:i.autoPlace,hideable:i.autoPlace}),a.isUndefined(i.load)?i.load={preset:X}:i.preset&&(i.load.preset=i.preset),a.isUndefined(i.parent)&&i.hideable&&K.push(this),i.resizable=a.isUndefined(i.parent)&&i.resizable,i.autoPlace&&a.isUndefined(i.scrollable)&&(i.scrollable=!0);var r,o=H&&"true"===localStorage.getItem(it(this,"isLocal")),s=void 0,u=void 0;if(Object.defineProperties(this,{parent:{get:function(){return i.parent}},scrollable:{get:function(){return i.scrollable}},autoPlace:{get:function(){return i.autoPlace}},closeOnTop:{get:function(){return i.closeOnTop}},preset:{get:function(){return n.parent?n.getRoot().preset:i.load.preset},set:function(t){n.parent?n.getRoot().preset=t:i.load.preset=t,function(t){for(var e=0;e<t.__preset_select.length;e++)t.__preset_select[e].value===t.preset&&(t.__preset_select.selectedIndex=e)}(this),n.revert()}},width:{get:function(){return i.width},set:function(t){i.width=t,ut(n,t)}},name:{get:function(){return i.name},set:function(t){i.name=t,u&&(u.innerHTML=i.name)}},closed:{get:function(){return i.closed},set:function(e){i.closed=e,i.closed?A.addClass(n.__ul,t.CLASS_CLOSED):A.removeClass(n.__ul,t.CLASS_CLOSED),this.onResize(),n.__closeButton&&(n.__closeButton.innerHTML=e?t.TEXT_OPEN:t.TEXT_CLOSED)}},load:{get:function(){return i.load}},useLocalStorage:{get:function(){return o}
vendor: 6,580 bytes, line 2
2,set:function(t){H&&(o=t,t?A.bind(window,"unload",s):A.unbind(window,"unload",s),localStorage.setItem(it(n,"isLocal"),t))}}}),a.isUndefined(i.parent)){if(this.closed=i.closed||!1,A.addClass(this.domElement,t.CLASS_MAIN),A.makeSelectable(this.domElement,!1),H&&o){n.useLocalStorage=!0;var c=localStorage.getItem(it(this,"gui"));c&&(i.load=JSON.parse(c))}this.__closeButton=document.createElement("div"),this.__closeButton.innerHTML=t.TEXT_CLOSED,A.addClass(this.__closeButton,t.CLASS_CLOSE_BUTTON),i.closeOnTop?(A.addClass(this.__closeButton,t.CLASS_CLOSE_TOP),this.domElement.insertBefore(this.__closeButton,this.domElement.childNodes[0])):(A.addClass(this.__closeButton,t.CLASS_CLOSE_BOTTOM),this.domElement.appendChild(this.__closeButton)),A.bind(this.__closeButton,"click",(function(){n.closed=!n.closed}))}else{void 0===i.closed&&(i.closed=!0);var l=document.createTextNode(i.name);A.addClass(l,"controller-name"),u=J(n,l);A.addClass(this.__ul,t.CLASS_CLOSED),A.addClass(u,"title"),A.bind(u,"click",(function(t){return t.preventDefault(),n.closed=!n.closed,!1})),i.closed||(this.closed=!1)}i.autoPlace&&(a.isUndefined(i.parent)&&(q&&(W=document.createElement("div"),A.addClass(W,"dg"),A.addClass(W,t.CLASS_AUTO_PLACE_CONTAINER),document.body.appendChild(W),q=!1),W.appendChild(this.domElement),A.addClass(this.domElement,t.CLASS_AUTO_PLACE)),this.parent||ut(n,i.width)),this.__resizeHandler=function(){n.onResizeDebounced()},A.bind(window,"resize",this.__resizeHandler),A.bind(this.__ul,"webkitTransitionEnd",this.__resizeHandler),A.bind(this.__ul,"transitionend",this.__resizeHandler),A.bind(this.__ul,"oTransitionEnd",this.__resizeHandler),this.onResize(),i.resizable&&st(this),s=function(){H&&"true"===localStorage.getItem(it(n,"isLocal"))&&localStorage.setItem(it(n,"gui"),JSON.stringify(n.getSaveObject()))},this.saveToLocalStorageIfPossible=s,i.parent||((r=n.getRoot()).width+=1,a.defer((function(){r.width-=1})))};function J(t,e,n){var i=document.createElement("li");return e&&i.appendChild(e),n?t.__ul.insertBefore(i,n):t.__ul.appendChild(i),t.onResize(),i}function Z(t){A.unbind(window,"resize",t.__resizeHandler),t.saveToLocalStorageIfPossible&&A.unbind(window,"unload",t.saveToLocalStorageIfPossible)}function tt(t,e){var n=t.__preset_select[t.__preset_select.selectedIndex];n.innerHTML=e?n.value+"*":n.value}function et(t,e){var n=t.getRoot(),i=n.__rememberedObjects.indexOf(e.object);if(-1!==i){var r=n.__rememberedObjectIndecesToControllers[i];if(void 0===r&&(r={},n.__rememberedObjectIndecesToControllers[i]=r),r[e.property]=e,n.load&&n.load.remembered){var o=n.load.remembered,a=void 0;if(o[t.preset])a=o[t.preset];else{if(!o[X])return;a=o[X]}if(a[i]&&void 0!==a[i][e.property]){var s=a[i][e.property];e.initialValue=s,e.setValue(s)}}}}function nt(t,e,n,i){if(void 0===e[n])throw new Error('Object "'+e+'" has no property "'+n+'"');var r=void 0;if(i.color)r=new L(e,n);else{var o=[e,n].concat(i.factoryArgs);r=U.apply(t,o)}i.before instanceof x&&(i.before=i.before.__li),et(t,r),A.addClass(r.domElement,"c");var s=document.createElement("span");A.addClass(s,"property-name"),s.innerHTML=r.property;var u=document.createElement("div");u.appendChild(s),u.appendChild(r.domElement);var c=J(t,u,i.before);return A.addClass(c,Q.CLASS_CONTROLLER_ROW),r instanceof L?A.addClass(c,"color"):A.addClass(c,d(r.getValue())),function(t,e,n){if(n.__li=e,n.__gui=t,a.extend(n,{options:function(e){if(arguments.length>1){var i=n.__li.nextElementSibling;return n.remove(),nt(t,n.object,n.property,{before:i,factoryArgs:[a.toArray(arguments)]})}if(a.isArray(e)||a.isObject(e)){var r=n.__li.nextElementSibling;return n.remove(),nt(t,n.object,n.property,{before:r,factoryArgs:[e]})}},name:function(t){return n.__li.firstElementChild.firstElementChild.innerHTML=t,n},listen:function(){return n.__gui.listen(n),n},remove:function(){return n.__gui.remove(n),n}}),n instanceof D){var i=new R(n.object,n.property,{min:n.__min,max:n.__max,step:n.__step});a.each(["updateDisplay","onChange","onFinishChange","step","min","max"],(function(t){var e=n[t],r=i[t];n[t]=i[t]=function(){var t=Array.prototype.slice.call(arguments);return r.apply(i,t),e.apply(n,t)}})),A.addClass(e,"has-slider"),n.domElement.insertBefore(i.domElement,n.domElement.firstElementChild)}else if(n instanceof R){var r=function(e){if(a.isNumber(n.__min)&&a.isNumber(n.__max)){var i=n.__li.firstElementChild.firstElementChild.innerHTML,r=n.__gui.__listening.indexOf(n)>-1;n.remove();var o=nt(t,n.object,n.property,{before:n.__li.nextElementSibling,factoryArgs:[n.__min,n.__max,n.__step]});return o.name(i),r&&o.listen(),o}return e};n.min=a.compose(r,n.min),n.max=a.compose(r,n.max)}else n instanceof C?(A.bind(e,"click",(function(){A.fakeEvent(n.__checkbox,"click")})),A.bind(n.__checkbox,"click",(function(t){t.stopPropagation()}))):n instanceof M?(A.bind(e,"click",(function(){A.fakeEvent(n.__button,"click")})),A.bind(e,"mouseover",(function(){A.addClass(n.__button,"hover")})),A.bind(e,"mouseout",(function(){A.removeClass(n.__button,"hover")}))):n instanceof L&&(A.addClass(e,"color"),n.updateDisplay=a.compose((function(t){return e.style.borderLeftColor=n.__color.toString(),t}),n.updateDisplay),n.updateDisplay());n.setValue=a.compose((function(e){return t.getRoot().__preset_select&&n.isModified()&&tt(t.getRoot(),!0),e}),n.setValue)}(t,c,r),t.__controllers.push(r),r}function it(t,e){return document.location.href+"."+e}function rt(t,e,n){var i=document.createElement("option");i.innerHTML=e,i.value=e,t.__preset_select.appendChild(i),n&&(t.__preset_select.selectedIndex=t.__preset_select.length-1)}function ot(t,e){e.style.display=t.useLocalStorage?"block":"none"}function at(t){var e=t.__save_row=document.createElement("li");A.addClass(t.domElement,"has-save"),t.__ul.insertBefore(e,t.__ul.firstChild),A.addClass(e,"save-row");var n=document.createElement("span");n.innerHTML=" ",A.addClass(n,"button gears");var i=document.createElement("span");i.innerHTML="Save",A.addClass(i,"button"),A.addClass(i,"save");var r=document.createElement("span");r.innerHTML="New",A.addClass(r,"button"),A.addClass(r,"save-as");var o=document.createElement("span");o.innerHTML="Revert",A.addClass(o,"button"),A.addClass(o,"revert");var s=t.__preset_select=document.createElement("select");if(t.load&&t.load.remembered?a.each(t.load.remembered,(function(e,n){rt(t,n,n===t.preset)})):rt(t,X,!1),A.bind(s,"change",(function(){for(var e=0;e<t.__preset_select.length;e++)t.__preset_select[e].innerHTML=t.__preset_select[e].value;t.preset=this.value})),e.appendChild(s),e.appendChild(n),e.appendChild(i),e.appendChild(r),e.a
2ppendChild(o),H){var u=document.getElementById("dg-local-explain"),c=document.getElementById("dg-local-storage");document.getElementById("dg-save-locally").style.display="block","true"===localStorage.getItem(it(0,"isLocal"))&&c.setAttribute("checked","checked"),ot(t,u),A.bind(c,"change",(function(){t.useLocalStorage=!t.useLocalStorage,ot(t,u)}))}var l=document.getElementById("dg-new-constructor");A.bind(l,"keydown",(function(t){!t.metaKey||67!==t.which&&67!==t.keyCode||G.hide()})),A.bind(n,"click",(function(){l.innerHTML=JSON.stringify(t.getSaveObject(),void 0,2),G.show(),l.focus(),l.select()})),A.bind(i,"click",(function(){t.save()})),A.bind(r,"click",(function(){var e=prompt("Enter a new preset name.");e&&t.saveAs(e)})),A.bind(o,"click",(function(){t.revert()}))}function st(t){var e=void 0;function n(n){return n.preventDefault(),t.width+=e-n.clientX,t.onResize(),e=n.clientX,!1}function i(){A.removeClass(t.__closeButton,Q.CLASS_DRAG),A.unbind(window,"mousemove",n),A.unbind(window,"mouseup",i)}function r(r){return r.preventDefault(),e=r.clientX,A.addClass(t.__closeButton,Q.CLASS_DRAG),A.bind(window,"mousemove",n),A.bind(window,"mouseup",i),!1}t.__resize_handle=document.createElement("div"),a.extend(t.__resize_handle.style,{width:"6px",marginLeft:"-3px",height:"200px",cursor:"ew-resize",position:"absolute"}),A.bind(t.__resize_handle,"mousedown",r),A.bind(t.__closeButton,"mousedown",r),t.domElement.insertBefore(t.__resize_handle,t.domElement.firstElementChild)}function ut(t,e){t.domElement.style.width=e+"px",t.__save_row&&t.autoPlace&&(t.__save_row.style.width=e+"px"),t.__closeButton&&(t.__closeButton.style.width=e+"px")}function ct(t,e){var n={};return a.each(t.__rememberedObjects,(function(i,r){var o={},s=t.__rememberedObjectIndecesToControllers[r];a.each(s,(function(t,n){o[n]=e?t.initialValue:t.getValue()})),n[r]=o})),n}Q.toggleHide=function(){Y=!Y,a.each(K,(function(t){t.domElement.style.display=Y?"none":""}))},Q.CLASS_AUTO_PLACE="a",Q.CLASS_AUTO_PLACE_CONTAINER="ac",Q.CLASS_MAIN="main",Q.CLASS_CONTROLLER_ROW="cr",Q.CLASS_TOO_TALL="taller-than-window",Q.CLASS_CLOSED="closed",Q.CLASS_CLOSE_BUTTON="close-button",Q.CLASS_CLOSE_TOP="close-top",Q.CLASS_CLOSE_BOTTOM="close-bottom",Q.CLASS_DRAG="drag",Q.DEFAULT_WIDTH=245,Q.TEXT_CLOSED="Close Controls",Q.TEXT_OPEN="Open Controls",Q._keydownHandler=function(t){"text"===document.activeElement.type||72!==t.which&&72!==t.keyCode||Q.toggleHide()},A.bind(window,"keydown",Q._keydownHandler,!1),a.extend(Q.prototype,{add:function(t,e){return nt(this,t,e,{factoryArgs:Array.prototype.slice.call(arguments,2)})},addColor:function(t,e){return nt(this,t,e,{color:!0})},remove:function(t){this.__ul.removeChild(t.__li),this.__controllers.splice(this.__controllers.indexOf(t),1);var e=this;a.defer((function(){e.onResize()}))},destroy:function(){if(this.parent)throw new Error("Only the root GUI should be removed with .destroy(). For subfolders, use gui.removeFolder(folder) instead.");this.autoPlace&&W.removeChild(this.domElement);var t=this;a.each(this.__folders,(function(e){t.removeFolder(e)})),A.unbind(window,"keydown",Q._keydownHandler,!1),Z(this)},addFolder:function(t){if(void 0!==this.__folders[t])throw new Error('You already have a folder in this GUI by the name "'+t+'"');var e={name:t,parent:this};e.autoPlace=this.autoPlace,this.load&&this.load.folders&&this.load.folders[t]&&(e.closed=this.load.folders[t].closed,e.load=this.load.folders[t]);var n=new Q(e);this.__folders[t]=n;var i=J(this,n.domElement);return A.addClass(i,"folder"),n},removeFolder:function(t){this.__ul.removeChild(t.domElement.parentElement),delete this.__folders[t.name],this.load&&this.load.folders&&this.load.folders[t.name]&&delete this.load.folders[t.name],Z(t);var e=this;a.each(t.__folders,(function(e){t.removeFolder(e)})),a.defer((function(){e.onResize()}))},open:function(){this.closed=!1},close:function(){this.closed=!0},hide:function(){this.domElement.style.display="none"},show:function(){this.domElement.style.display=""},onResize:function(){var t=this.getRoot();if(t.scrollable){var e=A.getOffset(t.__ul).top,n=0;a.each(t.__ul.childNodes,(function(e){t.autoPlace&&e===t.__save_row||(n+=A.getHeight(e))})),window.innerHeight-e-20<n?(A.addClass(t.domElement,Q.CLASS_TOO_TALL),t.__ul.style.height=window.innerHeight-e-20+"px"):(A.removeClass(t.domElement,Q.CLASS_TOO_TALL),t.__ul.style.height="auto")}t.__resize_handle&&a.defer((function(){t.__resize_handle.style.height=t.__ul.offsetHeight+"px"})),t.__closeButton&&(t.__closeButton.style.width=t.width+"px")},onResizeDebounced:a.debounce((function(){this.onResize()}),50),remember:function(){if(a.isUndefined(G)&&((G=new z).domElement.innerHTML=B),this.parent)throw new Error("You can only call remember on a top level GUI.");var t=this;a.each(Array.prototype.slice.call(arguments),(function(e){0===t.__rememberedObjects.length&&at(t),-1===t.__rememberedObjects.indexOf(e)&&t.__rememberedObjects.push(e)})),this.autoPlace&&ut(this,this.width)},getRoot:function(){for(var t=this;t.parent;)t=t.parent;return t},getSaveObject:function(){var t=this.load;return t.closed=this.closed,this.__rememberedObjects.length>0&&(t.preset=this.preset,t.remembered||(t.remembered={}),t.remembered[this.preset]=ct(this)),t.folders={},a.each(this.__folders,(function(e,n){t.folders[n]=e.getSaveObject()})),t},save:function(){this.load.remembered||(this.load.remembered={}),this.load.remembered[this.preset]=ct(this),tt(this,!1),this.saveToLocalStorageIfPossible()},saveAs:function(t){this.load.remembered||(this.load.remembered={},this.load.remembered[X]=ct(this,!0)),this.load.remembered[t]=ct(this),this.preset=t,rt(this,t,!0),this.saveToLocalStorageIfPossible()},revert:function(t){a.each(this.__controllers,(function(e){this.getRoot().load.remembered?et(t||this.getRoot(),e):e.setValue(e.initialValue),e.__onFinishChange&&e.__onFinishChange.call(e,e.getValue())}),this),a.each(this.__folders,(function(t){t.revert(t)})),t||tt(this.getRoot(),!1)},listen:function(t){var e=0===this.__listening.length;
2this.__listening.push(t),e&&function t(e){0!==e.length&&V.call(window,(function(){t(e)}));a.each(e,(function(t){t.updateDisplay()}))}(this.__listening)},updateDisplay:function(){a.each(this.__controllers,(function(t){t.updateDisplay()})),a.each(this.__folders,(function(t){t.updateDisplay()}))}});var lt={Color:y,math:h,interpret:l},ft={Controller:x,BooleanController:C,OptionController:O,StringController:S,NumberController:I,NumberControllerBox:R,NumberControllerSlider:D,FunctionController:M,ColorController:L},ht={dom:A},dt={GUI:Q},pt=Q,_t={color:lt,controllers:ft,dom:ht,gui:dt,GUI:pt};e.default=_t},function(t,e,n){"use strict";n.r(e);var i=n(60),r=n.n(i),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=(function(){function t(t){this.value=t}function e(e){var n,i;function r(n,i){try{var a=e[n](i),s=a.value;s instanceof t?Promise.resolve(s.value).then((function(t){r("next",t)}),(function(t){r("throw",t)})):o(a.done?"return":"normal",a.value)}catch(t){o("throw",t)}}function o(t,e){switch(t){case"return":n.resolve({value:e,done:!0});break;case"throw":n.reject(e);break;default:n.resolve({value:e,done:!1})}(n=n.next)?r(n.key,n.arg):i=null}this._invoke=function(t,e){return new Promise((function(o,a){var s={key:t,arg:e,resolve:o,reject:a,next:null};i?i=i.next=s:(n=i=s,r(t,e))}))},"function"!=typeof e.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(e.prototype[Symbol.asyncIterator]=function(){return this}),e.prototype.next=function(t){return this._invoke("next",t)},e.prototype.throw=function(t){return this._invoke("throw",t)},e.prototype.return=function(t){return this._invoke("return",t)}}(),function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}),s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),u=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)},c="";var l='\n\tThis page requires a browser that supports WebGL.<br/>\n\t<a href="http://get.webgl.org">Click here to upgrade your browser.</a>\n',f='\n\tIt does not appear your computer can support WebGL.<br/>\n\t<a href="http://get.webgl.org/troubleshooting/">Click here for more information.</a>\n',h=1,d=2;function p(t,e,n){function i(e,i){var r,o;"function"==typeof n?n(e):(r=i,(o=t.parentNode)&&(o.innerHTML='\n<table style="background-color: #8CE; width: 100%; height: 100%;"><tr>\n<td align="center">\n<div style="display: table-cell; vertical-align: middle;">\n<div style="">'+r+"</div>\n</div>\n</td></tr></table>\n"))}if(!window.WebGLRenderingContext)return i(h,l),null;var r=function(t,e){for(var n=["webgl","experimental-webgl"],i=null,r=0;r<n.length;++r)try{i=t.getContext(n[r],e)}catch(t){if(i)break}return i}(t,e);return r?r.getExtension("OES_standard_derivatives"):i(d,f),r}function _(t,e,n,i){var r=t.gl,o=r.createShader(n);return r.shaderSource(o,e),r.compileShader(o),r.getShaderParameter(o,r.COMPILE_STATUS)?o:(c=r.getShaderInfoLog(o),t.trigger("error",{shader:o,source:e,type:n,error:c,offset:i||0}),r.deleteShader(o),null)}function m(t,e,n,i){for(var r=t.gl,o=r.createProgram(),a=0;a<e.length;++a)r.attachShader(o,e[a]);if(n)for(var s=0;s<n.length;++s)r.bindAttribLocation(o,i?i[s]:s,n[s]);return r.linkProgram(o),r.getProgramParameter(o,r.LINK_STATUS)?o:(c=r.getProgramInfoLog(o),r.deleteProgram(o),null)}function v(t){return 0==(t&t-1)}function g(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function y(t,e){return!(!t||!e)&&t.toString()!==e.toString()}function b(t){var e=new Set;return Object.assign(t,{on:function(t,n){var i={};i[t]=n,e.add(i)},off:function(t,n){if(n){var i={};i[t]=n,e.delete(i)}else{var r=!0,o=!1,a=void 0;try{for(var s,u=e[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var c=s.value,l=!0,f=!1,h=void 0;try{for(var d,p=Object.keys(c)[Symbol.iterator]();!(l=(d=p.next()).done);l=!0){if(d.value===t)return void e.delete(c)}}catch(t){f=!0,h=t}finally{try{!l&&p.return&&p.return()}finally{if(f)throw h}}}}catch(t){o=!0,a=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}}},listSubscriptions:function(){var t=!0,n=!1,i=void 0;try{for(var r,o=e[Symbol.iterator]();!(t=(r=o.next()).done);t=!0)r.value}catch(t){n=!0,i=t}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}},subscribe:function(t){e.add(t)},unsubscribe:function(t){e.delete(t)},unsubscribeAll:function(){e.clear()},trigger:function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var o=!0,a=!1,s=void 0;try{for(var c,l=e[Symbol.iterator]();!(o=(c=l.next()).done);o=!0){var f=c.value;"function"==typeof f[t]&&f[t].apply(f,u(i))}}catch(t){a=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(a)throw s}}}})}var w=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(this,t),b(this),this.gl=e,this.texture=e.createTexture(),this.texture&&(this.valid=!0),this.bind(),this.name=n,this.source=null,this.sourceType=null,this.loading=null,this.setData(1,1,new Uint8Array([0,0,0,255]),{filtering:"linear"}),this.setFiltering(i.filtering),this.load(i)}return s(t,[{key:"destroy",value:function(){this.valid&&(this.gl.deleteTexture(this.texture),this.texture=null,delete this.data,this.data=null,this.valid=!1)}},{key:"bind",value:function(e){this.valid&&("number"==typeof e&&t.activeUnit!==e&&(this.gl.activeTexture(this.gl.TEXTURE0+e),t.activeUnit=e),t.activeTexture!==this.texture&&(this.gl.bindTexture(this.gl.TEXTURE_2D,this.texture),t.activeTexture=this.texture))}},{key:"load",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.loading=null,"string"==typeof t.url?void 0!==this.url&&t.url===this.url||this.setUrl(t.url,t):t.element?this.setElement(t.element,t):t.data&&t.width&&t.height&&this.setData(t.width,t.height,t.data,t)}},{key:"setUrl",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.valid)return this.url=t,this.source=this.url,this.sourceType="url",this.loading=new Promise((function(i,r){var o=t.split(".").pop().toLowerCase(),a="ogv"===o||"webm"===o||"mp4"===o,s=void 0;a?((s=document.createElement("video")).autoplay=!0,n.filtering="nearest"):s=new Image,s.onload=function(){try{e.setElement(s,n)}catch(t){}i(e)},s.onerror=function(t){i(e)},g()&&"data:"===e.source.slice(0,5)||(s.crossOrigin="anonymous"),s.src=e.source,a&&e.setElement(s,n)})),this.loading}},{key:"setData",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.width=t,this.height=e,this.source=n,this.sourceType="data",this.update(i),this.setFiltering(i),this.loading=Promise.resolve(this),this.loading}},{key:"setElement",value:function(t,e){var n=this,i=t;if("string"==typeof t&&(t=document.querySelector(t)),t instanceof HTMLCanvasElement||t instanceof HTMLImageElement||t instanceof HTMLVideoElement)this.source=t,this.sourceType="element",t instanceof HTMLVideoElement?(t.addEventListener("canplaythrough",(function(){n.intervalID=setInterval((function(){n.update(e)}),15)}),!0),t.addEventListener("ended",(function(){t.currentTime=0,t.play()}),!0)):this.update(e),this.setFiltering(e);else{JSON.stringify(i);"selector string, or a <canvas>, <image> or <video> object"}return this.loading=Promise.resolve(this),this.loading}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.valid&&(this.bind(),this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1!==t.UNPACK_FLIP_Y_WEBGL),this.gl.pixelStorei(this.gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.UNPACK_PREMULTIPLY_ALPHA_WEBGL||!1),"element"===this.sourceType&&(this.source instanceof HTMLCanvasElement||this.source instanceof HTMLVideoElement||this.source instanceof HTMLImageElement&&this.source.complete)?(this.source instanceof HTMLVideoElement?(this.width=this.source.videoWidth,this.height=this.source.videoHeight):(this.width=this.source.width,this.height=this.source.height),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.source)):"data"===this.sourceType&&this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.width,this.height,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.source),this.trigger("loaded",this))}},{key:"setFiltering",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.valid){this.powerOf2=v(this.width)&&v(this.height);var e=this.powerOf2?"mipmap":"linear";this.filtering=t.filtering||e;var n=this.gl;this.bind(),this.powerOf2?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,t.TEXTURE_WRAP_S||t.repeat&&n.REPEAT||n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,t.TEXTURE_WRAP_T||t.repeat&&n.REPEAT||n.CLAMP_TO_EDGE),"mipmap"===this.filtering?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.L
2INEAR_MIPMAP_LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),n.generateMipmap(n.TEXTURE_2D)):"linear"===this.filtering?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR)):"nearest"===this.filtering&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.NEAREST))):(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),"mipmap"===this.filtering&&(this.filtering="linear"),"nearest"===this.filtering?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.NEAREST)):(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR)))}}}]),t}();w.getMaxTextureSize=function(t){return t.getParameter(t.MAX_TEXTURE_SIZE)},w.activeUnit=-1;var x=function(){function t(e,n,i){var o=this;a(this,t),b(this),n=n||{},i=i||{},!e.hasAttribute("data-fullscreen")||"1"!=e.getAttribute("data-fullscreen")&&"true"!=e.getAttribute("data-fullscreen")?(this.width=e.clientWidth,this.height=e.clientHeight):(this.width=window.innerWidth,this.height=window.innerHeight,e.width=window.innerWidth,e.height=window.innerHeight),this.canvas=e,this.gl=void 0,this.program=void 0,this.textures={},this.buffers={},this.uniforms={},this.vbo={},this.isValid=!1,this.animationFrameRequest=void 0,this.BUFFER_COUNT=0,this.vertexString=n.vertexString||"\n#ifdef GL_ES\nprecision mediump float;\n#endif\n\nattribute vec2 a_position;\nattribute vec2 a_texcoord;\n\nvarying vec2 v_texcoord;\n\nvoid main() {\n gl_Position = vec4(a_position, 0.0, 1.0);\n v_texcoord = a_texcoord;\n}\n",this.fragmentString=n.fragmentString||"\n#ifdef GL_ES\nprecision mediump float;\n#endif\n\nvarying vec2 v_texcoord;\n\nvoid main(){\n gl_FragColor = vec4(0.0);\n}\n";var s=p(e,n,i.onError);if(s){if(this.gl=s,this.timeLoad=this.timePrev=performance.now(),this.timeDelta=0,this.forceRender=!0,this.paused=!1,this.realToCSSPixels=window.devicePixelRatio||1,e.style.backgroundColor=n.backgroundColor||"rgba(1,1,1,0)",e.hasAttribute("data-fragment"))this.fragmentString=e.getAttribute("data-fragment");else if(e.hasAttribute("data-fragment-url")){var u=e.getAttribute("data-fragment-url");r.a.get(u,(function(t,e,n){o.load(n,o.vertexString)}))}if(e.hasAttribute("data-vertex"))this.vertexString=e.getAttribute("data-vertex");else if(e.hasAttribute("data-vertex-url")){var c=e.getAttribute("data-vertex-url");r.a.get(c,(function(t,e,n){o.load(o.fragmentString,n)}))}if(this.load(),this.program){var l=s.getAttribLocation(this.program,"a_texcoord");this.vbo.texCoords=s.createBuffer(),this.gl.bindBuffer(s.ARRAY_BUFFER,this.vbo.texCoords),this.gl.bufferData(s.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),s.STATIC_DRAW),this.gl.enableVertexAttribArray(l),this.gl.vertexAttribPointer(l,2,s.FLOAT,!1,0,0);var f=s.getAttribLocation(this.program,"a_position");if(this.vbo.vertices=s.createBuffer(),this.gl.bindBuffer(s.ARRAY_BUFFER,this.vbo.vertices),this.gl.bufferData(s.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),s.STATIC_DRAW),this.gl.enableVertexAttribArray(f),this.gl.vertexAttribPointer(f,2,s.FLOAT,!1,0,0),e.hasAttribute("data-textures")){var h=e.getAttribute("data-textures").split(",");for(var d in h)this.setUniform("u_tex"+d,h[d])}var _={x:0,y:0};document.addEventListener("mousemove",(function(t){_.x=t.clientX||t.pageX,_.y=t.clientY||t.pageY}),!1);var m=this;return this.setMouse({x:0,y:0}),function t(){m.nMouse>1&&m.setMouse(_),m.resize()&&(m.forceRender=!0),m.render(),m.animationFrameRequest=window.requestAnimationFrame(t)}(),this}}}return s(t,[{key:"destroy",value:function(){for(var t in cancelAnimationFrame(this.animationFrameRequest),this.animated=!1,this.isValid=!1,this.textures)t.destroy&&t.destroy();for(var e in this.textures={},this.attribs)this.gl.deleteBuffer(this.attribs[e]);for(var n in this.gl.useProgram(null),this.gl.deleteProgram(this.program),this.buffers){var i=this.buffers[n];this.gl.deleteProgram(i.program)}this.program=null,this.gl=null}},{key:"load",value:function(t,e){if(e&&(this.vertexString=e),t&&(this.fragmentString=t),this.animated=!1,this.nDelta=(this.fragmentString.match(/u_delta/g)||[]).length,this.nTime=(this.fragmentString.match(/u_time/g)||[]).length,this.nDate=(this.fragmentString.match(/u_date/g)||[]).length,this.nMouse=(this.fragmentString.match(/u_mou
2se/g)||[]).length,this.animated=this.nDate>1||this.nTime>1||this.nMouse>1,this.fragmentString.search(/sampler2D/g))for(var n=this.fragmentString.split("\n"),i=0;i<n.length;i++){var r=n[i].match(/uniform\s*sampler2D\s*([\w]*);\s*\/\/\s*([\w|\:\/\/|\.|\-|\_]*)/i);if(r){var o=r[2].split(".").pop().toLowerCase();r[1]&&r[2]&&("jpg"===o||"jpeg"===o||"png"===o||"ogv"===o||"webm"===o||"mp4"===o)&&this.setUniform(r[1],r[2])}if(n[i].match(/\s*void\s*main\s*/g))break}var a=_(this,this.vertexString,this.gl.VERTEX_SHADER),s=_(this,this.fragmentString,this.gl.FRAGMENT_SHADER);s?this.isValid=!0:(s=_(this,"void main(){\n\tgl_FragColor = vec4(1.0);\n}",this.gl.FRAGMENT_SHADER),this.isValid=!1);var u=m(this,[a,s]);this.gl.useProgram(u),this.gl.deleteShader(a),this.gl.deleteShader(s),this.program=u,this.change=!0,this.BUFFER_COUNT=0;var c=this.getBuffers(this.fragmentString);Object.keys(c).length&&this.loadPrograms(c),this.buffers=c,this.texureIndex=this.BUFFER_COUNT,this.trigger("load",{}),this.forceRender=!0,this.render()}},{key:"test",value:function(t,e,n){var i=this.vertexString,r=this.fragmentString,o=this.paused,a=this.gl.getExtension("EXT_disjoint_timer_query"),s=a.createQueryEXT(),u=this.isValid;(e||n)&&(this.load(e,n),u=this.isValid,this.forceRender=!0,this.render()),this.paused=!0,a.beginQueryEXT(a.TIME_ELAPSED_EXT,s),this.forceRender=!0,this.render(),a.endQueryEXT(a.TIME_ELAPSED_EXT);var c=this;!function l(){c.forceRender=!0,c.render();var f=a.getQueryObjectEXT(s,a.QUERY_RESULT_AVAILABLE_EXT),h=c.gl.getParameter(a.GPU_DISJOINT_EXT);if(f&&!h){var d={wasValid:u,frag:e||c.fragmentString,vert:n||c.vertexString,timeElapsedMs:a.getQueryObjectEXT(s,a.QUERY_RESULT_EXT)/1e6};c.paused=o,(e||n)&&c.load(r,i),t(d)}else window.requestAnimationFrame(l)}()}},{key:"loadTexture",value:function(t,e,n){var i=this;n||(n={}),"string"==typeof e?n.url=e:"object"===(void 0===e?"undefined":o(e))&&e.data&&e.width&&e.height?(n.data=e.data,n.width=e.width,n.height=e.height):"object"===(void 0===e?"undefined":o(e))&&(n.element=e),this.textures[t]?this.textures[t]&&(this.textures[t].load(n),this.textures[t].on("loaded",(function(t){i.forceRender=!0}))):(this.textures[t]=new w(this.gl,t,n),this.textures[t].on("loaded",(function(t){i.forceRender=!0})))}},{key:"refreshUniforms",value:function(){this.uniforms={}}},{key:"setUniform",value:function(t){for(var e={},n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];e[t]=i,this.setUniforms(e)}},{key:"setUniforms",value:function(t){var e=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=[];for(var r in e){var a=e[r],s=void 0;if(n&&(r=n+"."+r),"number"==typeof a)i.push({type:"float",method:"1f",name:r,value:a});else if(Array.isArray(a)){if("number"==typeof a[0])1===a.length?i.push({type:"float",method:"1f",name:r,value:a}):a.length>=2&&a.length<=4?i.push({type:"vec"+a.length,method:a.length+"fv",name:r,value:a}):a.length>4&&i.push({type:"float[]",method:"1fv",name:r+"[0]",value:a});else if("string"==typeof a[0])i.push({type:"sampler2D",method:"1i",name:r,value:a});else if(Array.isArray(a[0])&&"number"==typeof a[0][0]){if(a[0].length>=2&&a[0].length<=4)for(s=0;s<a.length;s++)i.push({type:"vec"+a[0].length,method:a[s].length+"fv",name:r+"["+s+"]",value:a[s]})}else if("object"===o(a[0]))for(s=0;s<a.length;s++)i.push.apply(i,u(t(a[s],r+"["+s+"]")))}else"boolean"==typeof a?i.push({type:"bool",method:"1i",name:r,value:a}):"string"==typeof a?i.push({type:"sampler2D",method:"1i",name:r,value:a}):"object"===(void 0===a?"undefined":o(a))&&i.push.apply(i,u(t(a,r)))}return i}(t);for(var n in e)"sampler2D"===e[n].type?this.loadTexture(e[n].name,e[n].value[0]):this.uniform(e[n].method,e[n].type,e[n].name,e[n].value);this.forceRender=!0}},{key:"setMouse",value:function(t){var e=this.canvas.getBoundingClientRect();if(t&&t.x&&t.x>=e.left&&t.x<=e.right&&t.y&&t.y>=e.top&&t.y<=e.bottom){var n=(t.x-e.left)*this.realToCSSPixels,i=this.canvas.height-(t.y-e.top)*this.realToCSSPixels;this.uniform("2f","vec2","u_mouse",n,i)}}},{key:"uniform",value:function(t,e,n){this.uniforms[n]=this.uniforms[n]||{};for(var i=this.uniforms[n],r=arguments.length,o=Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];var s=y(i.value,o);if(s||this.change||!i.location||!i.value)for(var u in i.name=n,i.type=e,i.value=o,i.method="uniform"+t,this.gl.useProgram(this.program),i.location=this.gl.getUniformLocation(this.program,n),this.gl[i.method].apply(this.gl,[i.location].concat(i.value)),this.buffers){var c=this.buffers[u];this.gl.useProgram(c.program);var l=this.gl.getUniformLocation(c.program,n);this.gl[i.method].apply(this.gl,[l].concat(i.value))}}},{key:"uniformTexture",value:function(t,e,n){if(void 0===this.textures[t])this.loadTexture(t,e,n);else{for(var i in this.uniform("1i","sampler2D",t,this.texureIndex),this.buffers){var r=this.buffers[i];this.gl.useProgram(r.program),this.gl.activeTexture(this.gl.TEXTURE0+this.texureIndex),this.gl.bindTexture(this.gl.TEXTURE_2D,this.textures[t].texture)}this.gl.useProgram(this.program),this.gl.activeTexture(this.gl.TEXTURE0+this.texureIndex),this.gl.bindTexture(this.gl.TEXTURE_2D,this.textures[t].texture),this.uniform("2f","vec2",t+"Resolution",this.textures[t].width,this.textures[t].height)}}},{key:"resize",value:function(){if(this.width!==this.canvas.clientWidth||this.height!==this.canvas.clientHeight){this.realToCSSPixels=window.devicePixelRatio||1;var t=Math.floor(this.gl.canvas.clientWidth*this.realToCSSPixels),e=Math.floor(this.gl.canvas.clientHeight*this.realToCSSPixels);return this.gl.canvas.width===t&&this.gl.canvas.height===e||(this.gl.canvas.width=t,this.gl.canvas.height=e,this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height)),this.width=this.canvas.clientWidth,this.height=this.canvas.clientHeight,this.resizeSwappableBuffers(),!0}return!1}},{key:"render",value:function(){var t;if(this.visible=(t=this.canvas).getBoundingClientRect().top+t.height>0&&t.getBoundingClientRect().top<(window.innerHeight||document.documentElement.clientHeight),this.forceRender||this.change||this.animated&&this.visible&&!this.paused){var e=new Date,n=performance.now();for(var i in this.timeDelta=(n-this.timePrev)/1e3,this.timePrev=n,this.nDelta>1&&this.uniform("1f","float","u_delta",this.timeDelta),this.nTime>1&&this.uniform("1f","float","u_time",(n-this.timeLoad)/1e3),this.nDate&&this.uniform("4f","float","u_date",e.getFullYear(),e.getMonth(),e.getDate(),3600*e.getHours()+60*e.getMinutes()+e.getSeconds()+.001*e.getMilliseconds()),this.uniform("2f","vec2","u_resolution",this.canvas.width,this.canvas.height),this.buffers){var r=this.buffers[i];this.uniform("1i","sampler2D",r.name,r.bundle.input.index)}for(var o in this.texureIndex=this.BUFFER_COUNT,this.textures)this.uniformTexture(o),this.texureIndex++;this.renderPrograms(),this.trigger("render",{}),this.change=!1,this.forceRender=!1}}},{key:"pause",value:function(){this.paused=!0}},{key:"play",value:function(){this.paused=!1}},{key:"renderPrograms",value:function(){var t=this.gl,e=t.canvas.width,n=t.canvas.height;for(var i in t.viewport(0,0,e,n),this.buffers){var r=this.buffers[i];r.bundle.render(e,n,r.program,r.name),t.bindFramebuffer(t.FRAMEBUFFER,null)}t.useProgram(this.program),t.drawArrays(t.TRIANGLES,0,6)}},{key:"getBuffers",value:function(t){var e={};return t&&t.replace(/(?:^\s*)((?:#if|#elif)(?:\s*)(defined\s*\(\s*BUFFER_)(\d+)(?:\s*\))|(?:#ifdef)(?:\s*BUFFER_)(\d+)(?:\s*))/gm,(function(){var n=arguments[3]||arguments[4];e["u_buffer"+n]={fragment:"#define BUFFER_"+n+"\n"+t}})),e}},{key:"loadPrograms",value:function(t){var e=this.gl,n=_(this,this.vertexString,e.VERTEX_SHADER);for(var i in t){var r=t[i],o=_(this,r.fragment,e.FRAGMENT_SHADER,1);o?this.isValid=!0:(o=_(this,"void main(){\n\tgl_FragColor = vec4(1.0);\n}",e.FRAGMENT_SHADER),this.isValid=!1);var a=m(this,[n,o]);r.name=i,r.program=a,r.bundle=this.createSwappableBuffer(this.canvas.width,this.canvas.height,a),e.deleteShader(o)}e.deleteShader(n)}},{key:"createSwappableBuffer",value:function(t,e,n){var i=this.createBuffer(t,e,n),r=this.createBuffer(t,e,n),o=this.gl;return{input:i,output:r,swap:function(){var t=i;i=r,r=t,this.input=i,this.output=r},render:function(t,e,n,i){o.useProgram(n),o.viewport(0,0,t,e),o.bindFramebuffer(o.FRAMEBUFFER,this.input.buffer),o.framebufferTexture2D(o.FRAMEBUFFER,o.COLOR_ATTACHMENT0,o.TEXTURE_2D,this.output.texture,0),o.drawArrays(o.TRIANGLES,0,6),this.swap()},resize:function(t,e,n,i){o.useProgram(n),o.viewport(0,0,t,e),this.input.resize(t,e),this.output.resize(t,e)}}}},{key:"createBuffer",value:function(t,e,n){var i=this.gl,r=this.BUFFER_COUNT;this.BUFFER_COUNT+=2,i.getExtension("OES_texture_float");var o=i.createTexture();i.activeTexture(i.TEXTURE0+r),i.bindTexture(i.TEXTURE_2D,o),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,t,e,0,i.RGBA,i.FLOAT,null),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.NEAREST),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.NEAREST),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE);var a=i.createFramebuffer();return{index:r,texture:o,buffer:a,W:t,H:e,resize:function(t,e){i.bindFramebuffer(i.FRAMEBUFFER,a);var n=Math.min(t,this.W),s=Math.min(e,this.H),u=new Float32Array(n*s*4);i.readPixels(0,0,n,s,i.RGBA,i.FLOAT,u),i.bindFramebuffer(i.FRAMEBUFFER,null);var c=r+1,l=i.createTexture();i.activeTexture(i.TEXTURE0+c),i.bindTexture(i.TEXTURE_2D,l),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,t,e,0,i.RGBA,i.FLOAT,null),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.NEAREST),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.NEAREST),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texSubImage2D(i.TEXTURE_2D,0,0,0,n,s,i.RGBA,i.FLOAT,u);var f=i.createFramebuffer();i.bindFramebuffer(i.FRAMEBUFFER,null),i.deleteTexture(o),i.activeTexture(i.TEXTURE0+r),i.bindTexture(i.TEXTURE_2D,l),r=this.index=r,o=this.texture=l,a=this.buffer=f,this.W=t,this.H=e}}}},{key:"resizeSwappableBuffers",value:function(){var t=this.gl,e=t.canvas.width,n=t.canvas.height;for(var i in t.viewport(0,0,e,n),this.buffers){var r=this.buffers[i];r.bundle.resize(e,n,r.program,r.name)}
2t.useProgram(this.program)}},{key:"version",value:function(){return"0.1.7"}}]),t}();window.addEventListener("load",(function(){!function(){var t=document.getElementsByClassName("glslCanvas");if(t.length>0){window.glslCanvases=[];for(var e=0;e<t.length;e++){var n=new x(t[e]);n.isValid&&window.glslCanvases.push(n)}}}()})),e.default=x},function(t,e,n){"use strict";var i=n(23);t.exports=i.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e,n){"use strict";var i=Function.prototype.toString,r=/^\s*class\b/,o=function(t){try{var e=i.call(t);return r.test(e)}catch(t){return!1}},a=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(s)return function(t){try{return!o(t)&&(i.call(t),!0)}catch(t){return!1}}(t);if(o(t))return!1;var e=a.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(25),r=n(128),o=function(){function t(t,e){this._rgb=t,this._population=e}return t.applyFilter=function(t,e){return"function"==typeof e?r(t,(function(t){var n=t.r,i=t.g,r=t.b;return e(n,i,r,255)})):t},Object.defineProperty(t.prototype,"r",{get:function(){return this._rgb[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"g",{get:function(){return this._rgb[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"b",{get:function(){return this._rgb[2]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rgb",{get:function(){return this._rgb},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hsl",{get:function(){if(!this._hsl){var t=this._rgb,e=t[0],n=t[1],r=t[2];this._hsl=i.rgbToHsl(e,n,r)}return this._hsl},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hex",{get:function(){if(!this._hex){var t=this._rgb,e=t[0],n=t[1],r=t[2];this._hex=i.rgbToHex(e,n,r)}return this._hex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"population",{get:function(){return this._population},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){return{rgb:this.rgb,population:this.population}},t.prototype.getRgb=function(){return this._rgb},t.prototype.getHsl=function(){return this.hsl},t.prototype.getPopulation=function(){return this._population},t.prototype.getHex=function(){return this.hex},t.prototype.getYiq=function(){if(!this._yiq){var t=this._rgb;this._yiq=(299*t[0]+587*t[1]+114*t[2])/1e3}return this._yiq},Object.defineProperty(t.prototype,"titleTextColor",{get:function(){return this._titleTextColor||(this._titleTextColor=this.getYiq()<200?"#fff":"#000"),this._titleTextColor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bodyTextColor",{get:function(){return this._bodyTextColor||(this._bodyTextColor=this.getYiq()<150?"#fff":"#000"),this._bodyTextColor},enumerable:!0,configurable:!0}),t.prototype.getTitleTextColor=function(){return this.titleTextColor},t.prototype.getBodyTextColor=function(){return this.bodyTextColor},t}();e.Swatch=o},function(t,e,n){(function(t){var i=n(8),r=n(138),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?i.Buffer:void 0,u=(s?s.isBuffer:void 0)||r;t.exports=u}).call(this,n(26)(t))},function(t,e){var n=9007199254740991,i=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?n:e)&&("number"==r||"symbol"!=r&&i.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var i=n(70),r=e&&!e.nodeType&&e,o=r&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===r&&i.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(this,n(26)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var i=n(28),r=n(151),o=n(152),a=n(153),s=n(154),u=n(155);function c(t){var e=this.__data__=new i(t);this.size=e.size}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,t.exports=c},function(t,e,n){var i=n(15)(n(8),"Map");t.exports=i},function(t,e,n){var i=n(160),r=n(167),o=n(169),a=n(170),s=n(171);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}u.prototype.clear=i,u.prototype.delete=r,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exp
2orts=u},function(t,e,n){var i=n(67),r=n(81),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),i(a(t),(function(e){return o.call(t,e)})))}:r;t.exports=s},function(t,e,n){var i=n(9),r=n(52),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(i(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!r(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var i=n(19),r=n(13),o="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||r(t)&&i(t)==o}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var i=n(68),r=n(207),o=n(27);t.exports=function(t){return o(t)?i(t,!0):r(t)}},function(t,e,n){var i=n(77);t.exports=function(t){var e=new t.constructor(t.byteLength);return new i(e).set(new i(t)),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),r=function(){function t(e,n){if(this._$clipPath=e,this._$target=n,this._id=e.parent().attr("id"),this._props={x:0,y:0,width:0,height:0},this._tween=new i.TweenLite({},0,{}),CSS.supports("clip-path","inset(100px 50px)"))this._cssProp=t.CSS_PROP_CLIPPATH,this._$target.css(this._cssProp,"url(#"+this._id+")");else if(CSS.supports("-webkit-clip-path","inset(100px 50px)"))this._cssProp=t.CSS_PROP_CLIPPATH_WEBKIT,this._$target.css(this._cssProp,"url(#"+this._id+")");else{var r=this._convertToRect(this._props);this._cssProp=t.CSS_PROP_CLIP,this._$target.css(this._cssProp,r),this._$target.css({position:"absolute"}),this._$target.addClass("is-clip")}}return t.prototype.init=function(){return new Promise((function(t,e){t()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._tween.kill(),t._props={x:0,y:0,width:0,height:0},e()}))},t.prototype.resize=function(e,n){var i=this._$clipPath,r=this._$target,o=this._cssProp;if(this._props.width>0)if(o!==t.CSS_PROP_CLIP)i.attr({x:0,y:0,width:e,height:n});else{var a={x:0,y:0,width:e,height:n},s=this._convertToRect(a);r.css(o,s)}},t.prototype.tween=function(e,n,i){var r=this;return void 0===i&&(i=1e3),new Promise((function(o,a){var s=r._cssProp,u=new Array;s!==t.CSS_PROP_CLIP?u.push(r._tweenClipPath(e,n,i)):u.push(r._tweenClip(e,n,i)),Promise.all(u).then((function(){o()})).catch((function(t){a(t)}))}))},t.prototype._tweenClipPath=function(t,e,n){var r=this;return void 0===n&&(n=1e3),new Promise((function(o,a){var s=r._$clipPath,u=r._$target,c=r._id,l=r._cssProp;r._tween.kill(),r._tween=new i.TweenLite(t,n/1e3,{x:e.x,y:e.y,width:e.width,height:e.height,ease:i.Power1.easeInOut,onStart:function(){s.attr({x:t.x,y:t.y,width:t.width,height:t.height}),r._props=t},onUpdate:function(){s.attr({x:t.x,y:t.y,width:t.width,height:t.height}),u.css(l,"none"),u.width(),u.css(l,"url(#"+c+")"),r._props=t},onComplete:function(){o()}})}))},t.prototype._tweenClip=function(t,e,n){var r=this;return void 0===n&&(n=1e3),new Promise((function(o,a){var s=r._$target,u=r._cssProp;r._tween.kill(),r._tween=new i.TweenLite(t,n/1e3,{x:e.x,y:e.y,width:e.width,height:e.height,ease:i.Power1.easeInOut,onStart:function(){var e=r._convertToRect(t);s.css(u,e),r._props=t},onUpdate:function(){var e=r._convertToRect(t);s.css(u,e),r._props=t},onComplete:function(){o()}})}))},t.prototype._convertToRect=function(t){var e=t.y,n=t.x+t.width,i=t.y+t.height,r=t.x,o="rect(";return o+=e.toString()+"px ",o+=n.toString()+"px ",o+=i.toString()+"px ",o+=r.toString()+"px)"},t.CSS_PROP_CLIPPATH="clip-path",t.CSS_PROP_CLIPPATH_WEBKIT="-webkit-clip-path",t.CSS_PROP_CLIP="clip",t}();e.default=r},function(t,e,n){var i,r,o;r=[e],void 0===(o="function"==typeof(i=function(t){"use strict";function e(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}Object.defineProperty(t,"__esModule",{value:!0});var n=!1;if("undefined"!=typeof window){var i={get passive(){n=!0}};window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}var r="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),o=[],a=!1,s=-1,u=void 0,c=void 0,l=function(t){return o.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))},f=function(t){var e=t||window.event;return!!l(e.target)||1<e.touches.length||(e.preventDefault&&e.preventDefault(),!1)},h=function(){setTimeout((function(){void 0!==c&&(document.body.style.paddingRight=c,c=void 0),void 0!==u&&(document.body.style.overflow=u,u=void 0)}))};t.disableBodyScroll=function(t,i){if(r){if(!t)return;if(t&&!o.some((function(e){return e.targetElement===t}
2))){var h={targetElement:t,options:i||{}};o=[].concat(e(o),[h]),t.ontouchstart=function(t){1===t.targetTouches.length&&(s=t.targetTouches[0].clientY)},t.ontouchmove=function(e){var n,i,r,o;1===e.targetTouches.length&&(i=t,o=(n=e).targetTouches[0].clientY-s,!l(n.target)&&(i&&0===i.scrollTop&&0<o?f(n):(r=i)&&r.scrollHeight-r.scrollTop<=r.clientHeight&&o<0?f(n):n.stopPropagation()))},a||(document.addEventListener("touchmove",f,n?{passive:!1}:void 0),a=!0)}}else{p=i,setTimeout((function(){if(void 0===c){var t=!!p&&!0===p.reserveScrollBarGap,e=window.innerWidth-document.documentElement.clientWidth;t&&0<e&&(c=document.body.style.paddingRight,document.body.style.paddingRight=e+"px")}void 0===u&&(u=document.body.style.overflow,document.body.style.overflow="hidden")}));var d={targetElement:t,options:i||{}};o=[].concat(e(o),[d])}var p},t.clearAllBodyScrollLocks=function(){r?(o.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),a&&(document.removeEventListener("touchmove",f,n?{passive:!1}:void 0),a=!1),o=[],s=-1):(h(),o=[])},t.enableBodyScroll=function(t){if(r){if(!t)return;t.ontouchstart=null,t.ontouchmove=null,o=o.filter((function(e){return e.targetElement!==t})),a&&0===o.length&&(document.removeEventListener("touchmove",f,n?{passive:!1}:void 0),a=!1)}else(o=o.filter((function(e){return e.targetElement!==t}))).length||h()}})?i.apply(e,r):i)||(t.exports=o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this._id=0}return t.prototype.setTimeout=function(t){var e=this;return void 0===t&&(t=1e3),new Promise((function(n,i){e._id=window.setTimeout((function(){n()}),t)}))},t.prototype.clearTimeout=function(){var t=this;return new Promise((function(e,n){window.clearTimeout(t._id),t._id=0,e()}))},t}();e.default=i},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(317)),a=function(){function t(){this._$container={},this._ja=new o.default,this._en=new o.default,this._isEn=!1}return t.prototype.init=function(e){var n=this;return new Promise((function(i,r){var o=n._ja,a=n._en,s=e.find(".js-language__ja"),u=e.find(".js-language__en"),c=n._getCookie(t.KEY)==t.MODE_EN;Promise.all([o.init(s,!c),a.init(u,c)]).then((function(){c&&n._setCookie(t.KEY,t.MODE_EN),n._$container=e,n._isEn=c,i()})).catch((function(t){r(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){var i=t._ja,r=t._en;t._removeEvent(),Promise.all([i.exit(),r.exit()]).then((function(){t._isEn=!1,e()})).catch((function(t){n(t)}))}))},t.prototype.enable=function(){this._addEvent()},Object.defineProperty(t.prototype,"isEn",{get:function(){return this._isEn},enumerable:!0,configurable:!0}),t.prototype._addEvent=function(){var e=this,n=(this._$container,this._ja),i=this._en;r.default(n).on("click",(function(){if(!n.isSelected)return n.toggle(),i.toggle(),e._isEn=!1,e._setCookie(t.KEY,t.MODE_JA),r.default(e).trigger(t.ON_CHANGE,[t.MODE_JA]),!1})),r.default(i).on("click",(function(){if(!i.isSelected)return n.toggle(),i.toggle(),e._isEn=!0,e._setCookie(t.KEY,t.MODE_EN),r.default(e).trigger(t.ON_CHANGE,[t.MODE_EN]),!1}))},t.prototype._removeEvent=function(){var t=this._ja,e=this._en;r.default(t).off("click"),r.default(e).off("click")},t.prototype._getCookie=function(t){var e=document.cookie.split("; ").find((function(e){return e.startsWith(t+"=")}));return e?e.split("=")[1]:""},t.prototype._setCookie=function(t,e){var n=new Date,i=new Date;i.setHours(n.getHours()+24),document.cookie=t+"="+e+"; path=/; expires="+i.toUTCString()},t.ON_CHANGE="onChange",t.MODE_JA="ja",t.MODE_EN="en",t.KEY="sasaguchiLanguage",t}();e.default=a},function(t,e,n){"use strict";var i=n(106),r=n(107),o=n(108),a=n(125);function s(t,e,n){var i=t;return r(e)?(n=e,"string"==typeof t&&(i={uri:t})):i=a(e,{uri:t}),i.callback=n,i}function u(t,e,n){return c(e=s(t,e,n))}function c(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,n=function(n,i,r){e||(e=!0,t.callback(n,i,r))};function i(){var t=void 0;if(t=l.response?l.response:l.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(t){}return null}(l),v)try{t=JSON.parse(t)}catch(t){}return t}function r(t){return clearTimeout(f),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,n(t,g)}function a(){if(!c){var e;clearTimeout(f),e=t.useXDR&&void 0===l.status?200:1223===l.status?204:l.status;var r=g,a=null;return 0!==e?(r={body:i(),statusCode:e,method:d,headers:{},url:h,rawRequest:l},l.getAllResponseHeaders&&(r.headers=o(l.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),n(a,r,r.body)}}var s,c,l=t.xhr||null;l||(l=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var f,h=l.url=t.uri||t.url,d=l.method=t.method||"GET",p=t.body||t.data,_=l.headers=t.headers||{},m=!!t.sync,v=!1,g={body:void 0,headers:{},statusCode:0,method:d,url:h,rawRequest:l};if("json"in t&&!1!==t.json&&(v=!0,_.accept||_.Accept||(_.Accept="application/json"),"GET"!==d&&"HEAD"!==d&&(_["content-type"]||_["Content-Type"]||(_["Content-Type"]="application/json"),p=JSON.stringify(!0===t.json?p:t.json))),l.onreadystatechange=function(){4===l.readyState&&setTimeout(a,0)},l.onload=a,l.onerror=r,l.onprogress=function(){},l.onabort=function(){c=!0},l.ontimeout=r,l.open(d,h,!m,t.username,t.password),m||(l.withCredentials=!!t.withCredentials),!m&&t.timeout>0&&(f=setTimeout((function(){if(!c){c=!0,l.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",r(t)}}),t.timeout)),l.setRequestHeader)for(s in _)_.hasOwnProperty(s)&&l.setRequestHeader(s,_[s]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(l.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(l),l.send(p||null),l}t.exports=u,t.exports.default=u,u.XMLHttpRequest=i.XMLHttpRequest||function(){},u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:i.XD
2omainRequest,function(t,e){for(var n=0;n<t.length;n++)e(t[n])}(["get","put","post","patch","head","delete"],(function(t){u["delete"===t?"del":t]=function(e,n,i){return(n=s(e,n,i)).method=t.toUpperCase(),c(n)}}))},function(t,e,n){"use strict";var i=n(111),r="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=s&&function(){var t={};try{for(var e in s(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),c=function(t,e,n,i){var r;e in t&&("function"!=typeof(r=i)||"[object Function]"!==o.call(r)||!i())||(u?s(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},l=function(t,e){var n=arguments.length>2?arguments[2]:{},o=i(e);r&&(o=a.call(o,Object.getOwnPropertySymbols(e)));for(var s=0;s<o.length;s+=1)c(t,o[s],e[o[s]],n[o[s]])};l.supportsDescriptors=!!u,t.exports=l},function(t,e,n){"use strict";var i=Object.prototype.toString;t.exports=function(t){var e=i.call(t),n="[object Arguments]"===e;return n||(n="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===i.call(t.callee)),n}},function(t,e,n){"use strict";var i=n(23),r=n(113),o=i.call(Function.call,String.prototype.replace),a=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,s=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;t.exports=function(){var t=r.ToString(r.CheckObjectCoercible(this));return o(o(t,a,""),s,"")}},function(t,e,n){"use strict";var i=n(63);t.exports=function(){return String.prototype.trim&&"â"==="â".trim()?String.prototype.trim:i}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(3)),a=i(n(6)),s=i(n(2)),u=i(n(16)),c=i(n(56)),l=i(n(250)),f=function(){function t(t){this._$container=t,this._$holder=t.find(".js-project-gallery__image-holder"),this._$image=t.find(".js-project-gallery__image"),this._dominantColor={primary:[],secondary:[]},this._mediaFormat=t.data("media-format");var e=t.find(".js-project-gallery__image__clip-path"),n=t.find(".js-project-gallery__play-button"),i=t.find(".js-project-gallery__button__clip-path");this._clipPath=new c.default(e,this._$image),this._playButton=new l.default(n,i),this._isLoaded=!1}return t.prototype.init=function(t){var e=this;return void 0===t&&(t=!1),new Promise((function(t,n){e._playButton.init().then((function(){e._resizeImage(),t()})).catch((function(t){n(t)}))}))},t.prototype._load=function(){var t=this;return new Promise((function(e,n){if(t._isLoaded)e();else{var i=t._$image,o=i.attr("data-image-src"),a=i.attr("data-image-src-mobile"),c=r.default("<source></source>"),l=r.default("<img>"),f=new u.default,h=s.default.isMobile?a:o;f.load(h).then((function(){c.attr({media:"(max-width:768px)",srcset:a}),l.attr({src:o,decoding:"async"}),i.append(c),i.append(l),t._isLoaded=!0,e()})).catch((function(t){n(t)}))}}))},t.prototype.show=function(e){var n=this;return void 0===e&&(e=!1),new Promise((function(i,r){var o=n._$container,a=n._$image,s=n._clipPath,u=n._playButton,c=n._mediaFormat,l=a.width(),f=a.height(),h={x:l,y:0,width:0,height:f},d={x:0,y:0,width:l,height:f};e&&(h.x=0),Promise.all([n._load(),n._resizeImage()]).then((function(){return o.addClass("is-visible"),a.addClass("is-visible"),s.tween(h,d,t.SHOW_DURATION)})).then((function(){"video"===c?u.show().then((function(){i()})):i()})).catch((function(t){r(t)}))}))},t.prototype.hide=function(e){var n=this;return void 0===e&&(e=!1),new Promise((function(i,r){var o=n._$container,a=n._$image,s=n._clipPath,u=n._playButton,c=n._mediaFormat,l=a.width(),f=a.height(),h={x:0,y:0,width:l,height:f},d={x:0,y:0,width:0,height:f};e&&(d.x=l);var p=new Array;p.push(s.tween(h,d,t.HIDE_DURATION)),"video"===c&&p.push(u.hide()),a.removeClass("is-visible"),Promise.all(p).then((function(){o.removeClass("is-visible"),i()})).catch((function(t){r(t)}))}
2))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){var i=t._playButton,r=t._clipPath;Promise.all([r.exit(),i.exit()]).then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype.getDominantColor=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._dominantColor;if(r.primary.length>0)e(r);else{var o=i.data("color-mode"),a=i.data("color-source");t._createColor(o,a).then((function(n){t._dominantColor=n,e(n)})).catch((function(t){n(t)}))}}))},t.prototype.onBeforeResize=function(t,e){},t.prototype.onAfterResize=function(t,e){this._resizeImage();var n=this._$image,i=n.width(),r=n.height();this._clipPath.resize(i,r)},t.prototype._resizeImage=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._$holder,o=t._$image,a=r.width(),s=r.height(),u=parseInt(o.attr("data-image-width")),c=parseInt(o.attr("data-image-height")),l=a/u;i.hasClass("c-gallery__item--size-large")?c*l<s&&(l=s/c):c*l>s&&(l=s/c);var f=u*l,h=c*l;o.css({width:f+"px",height:h+"px"}),e()}))},t.prototype._createColor=function(t,e){return new Promise((function(n,i){switch(t){case"manual":var r=o.default.hexToRgb(e);n({primary:r,secondary:r});break;case"auto":a.default.getColorByUrl(e).then((function(t){n(t)})).catch((function(t){}));break;default:n(s.default.DEFAULT_DOMINANT_COLOR_DARK)}}))},t.SHOW_DURATION=s.default.INDEX_INTERVAL/8,t.HIDE_DURATION=s.default.INDEX_INTERVAL/8,t}();e.default=f},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var o=n(40),a=i(n(201)),s=r(n(25)),u=r(n(226)),c=r(n(230)),l=r(n(240)),f=n(91),h=function(){function t(e,n){this._src=e,this.opts=f({},n,t.DefaultOpts),this.opts.combinedFilter=l.combineFilters(this.opts.filters)}return t.from=function(t){return new a.default(t)},t.prototype._process=function(t,e){var n=e.quantizer,i=e.generator;return t.scaleDown(e),t.applyFilter(e.combinedFilter).then((function(t){return n(t.data,e)})).then((function(t){return o.Swatch.applyFilter(t,e.combinedFilter)})).then((function(t){return Promise.resolve(i(t))}))},t.prototype.palette=function(){return this.swatches()},t.prototype.swatches=function(){return this._palette},t.prototype.getPalette=function(t){var e=this,n=new this.opts.ImageClass,i=n.load(this._src).then((function(t){return e._process(t,e.opts)})).then((function(t){return e._palette=t,n.remove(),t}),(function(t){throw n.remove(),t}));return t&&i.then((function(e){return t(null,e)}),(function(e){return t(e)})),i},t.Builder=a.default,t.Quantizer=u,t.Generator=c,t.Filter=l,t.Util=s,t.Swatch=o.Swatch,t.DefaultOpts={colorCount:64,quality:5,generator:c.Default,ImageClass:null,quantizer:u.MMCQ,filters:[l.Default]},t}();e.default=h},function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var a=t[n];e(a,n,t)&&(o[r++]=a)}return o}},function(t,e,n){var i=n(134),r=n(69),o=n(9),a=n(41),s=n(42),u=n(71),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),l=!n&&r(t),f=!n&&!l&&a(t),h=!n&&!l&&!f&&u(t),d=n||l||f||h,p=d?i(t.length,String):[],_=p.length;for(var m in t)!e&&!c.call(t,m)||d&&("length"==m||f&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,_))||p.push(m);return p}},function(t,e,n){var i=n(135),r=n(13),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=i(function(){return arguments}())?i:function(t){return r(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(12))},function(t,e,n){var i=n(139),r=n(44),o=n(45),a=o&&o.isTypedArray,s=a?r(a):i;t.exports=s},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var i=n(19),r=n(14),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";t.exports=function(t){if(!r(t))return!1;var e=i(t);return e==a||e==s||e==o||e==u}},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var i=n(172),r=n(13);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!r(e)&&!r(n)?e!=e&&n!=n:i(e,n,o,a,t,s))}},function(t,e,n){var i=n(173),r=n(176),o=n(177),a=1,s=2;t.exports=function(t,e,n,u,c,l){var f=n&a,h=t.length,d=e.length;if(h!=d&&!(f&&d>h))return!1;var p=l.get(t);if(p&&l.get(e))return p==e;var _=-1,m=!0,v=n&s?new i:void 0;for(l.set(t,e),l.set(e,t);++_<h;){var g=t[_],y=e[_];
2if(u)var b=f?u(y,g,_,e,t,l):u(g,y,_,t,e,l);if(void 0!==b){if(b)continue;m=!1;break}if(v){if(!r(e,(function(t,e){if(!o(v,e)&&(g===t||c(g,t,n,u,l)))return v.push(e)}))){m=!1;break}}else if(g!==y&&!c(g,y,n,u,l)){m=!1;break}}return l.delete(t),l.delete(e),m}},function(t,e,n){var i=n(8).Uint8Array;t.exports=i},function(t,e,n){var i=n(79),r=n(50),o=n(18);t.exports=function(t){return i(t,o,r)}},function(t,e,n){var i=n(80),r=n(9);t.exports=function(t,e,n){var o=e(t);return r(t)?o:i(o,n(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var i=n(14);t.exports=function(t){return t==t&&!i(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},function(t,e,n){var i=n(85),r=n(33);t.exports=function(t,e){for(var n=0,o=(e=i(e,t)).length;null!=t&&n<o;)t=t[r(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var i=n(9),r=n(51),o=n(189),a=n(192);t.exports=function(t,e){return i(t)?t:r(t,e)?[t]:o(a(t))}},function(t,e,n){var i=n(87),r=n(21),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&r(a,n)&&(void 0!==n||e in t)||i(t,e,n)}},function(t,e,n){var i=n(88);t.exports=function(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var i=n(15),r=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=r},function(t,e,n){var i=n(80),r=n(90),o=n(50),a=n(81),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)i(e,o(t)),t=r(t);return e}:a;t.exports=s},function(t,e,n){var i=n(72)(Object.getPrototypeOf,Object);t.exports=i},function(t,e,n){var i=n(232),r=n(21),o=n(239),a=n(54),s=Object.prototype,u=s.hasOwnProperty,c=i((function(t,e){t=Object(t);var n=-1,i=e.length,c=i>2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(i=1);++n<i;)for(var l=e[n],f=a(l),h=-1,d=f.length;++h<d;){var p=f[h],_=t[p];(void 0===_||r(_,s[p])&&!u.call(t,p))&&(t[p]=l[p])}return t}));t.exports=c},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(){this._wasLoadedApi=!1,this._isPlaying=!1}return t.prototype.init=function(e,n,i){var o=this;return void 0===n&&(n=t.PLAYER_ID),void 0===i&&(i=!0),new Promise((function(t,a){o._$container=e,o._$player=o._createDom(n),o._createPlayer(n,i).then((function(e){o._player=e,o._$player=r.default(e.getIframe()),t()})).catch((function(t){a(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t.hide().then((function(){t._player.destroy(),e()})).catch((function(t){n(t)}))}))},t.prototype.load=function(t){var e=this;return new Promise((function(n,i){var r=e._player;e.show().then((function(){e.mute(),r.addEventListener("onStateChange",(function(t){1===t.data&&(r.removeEventListener("onStateChange"),e._isPlaying=!0,e._addEvent(),n())})),r.loadVideoById(t)}))}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){var i=t._$player;i.hasClass("is-visible")||i.addClass("is-visible"),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$player;i.hasClass("is-visible")&&i.removeClass("is-visible"),t.stop(),t._removeEvent(),t._isPlaying=!1,e()}))},t.prototype.play=function(){this._player.playVideo()},t.prototype.pause=function(){this._player.pauseVideo()},t.prototype.stop=function(){this._player.stopVideo()},t.prototype.seekTo=function(t){this._player.seekTo(t)},t.prototype.mute=function(){this._player.mute()},t.prototype.unmute=function(){this._player.unMute()},Object.defineProperty(t.prototype,"isPlaying",{get:function(){return this._isPlaying},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._player.getDuration()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentTime",{get:function(){return this._player.getCurrentTime()},enumerable:!0,configurable:!0}),t.prototype._addEvent=function(){var t=this;this._player.addEventListener("onStateChange",(function(e){switch(e.data){case 1:t._isPlaying=!0;break;case 0:t._isPlaying=!1,t.play();break;case 2:t._isPlaying=!1}}))},t.prototype._removeEvent=function(){this._player.removeEventListener("onStateChange")},t.prototype._createPlayer=function(e,n){var i=this;return void 0===n&&(n=!0),new Promise((function(o,a){var s=function(t){i._wasLoadedApi=!0,o(t.target)},u=function(t){a(t.data)},c=function(){new YT.Player(e,{playerVars:{autoplay:0,controls:0,cc_load_policy:0,disablekb:1,enablejsapi:1,fs:0,iv_load_policy:3,loop:1,modestbranding:1,playsinline:Number(n),rel:0},events:{onReady:s,onError:u}}
2)};if(i._wasLoadedApi)c();else{for(var l=r.default("script"),f=0;f<l.length;f++){if(r.default(l[f]).attr("src")===t.YOUTUBE_API_URL)return void c()}var h=document.getElementsByTagName("head")[0],d=document.getElementsByTagName("script")[0],p=document.createElement("script");window.onYouTubeIframeAPIReady=c,p.src=t.YOUTUBE_API_URL,h.insertBefore(p,d)}}))},t.prototype._createDom=function(t){var e=this._$container,n=r.default("<div></div>");return n.attr("id",t),n.addClass("c-youtube-player"),e.append(n),n},t.PLAYER_ID="js-youtube-player",t.YOUTUBE_API_URL="https://www.youtube.com/iframe_api",t}();e.default=o},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(251)),a=function(){function t(){this._$container={},this._$player={},this._player={},this._playerId="",this._isPlaying=!1,this._isReady=!1,this._duration=0,this._currentTime=0,this._playsinline=!0}return t.prototype.init=function(e,n,i){var r=this;return void 0===n&&(n=t.PLAYER_ID),void 0===i&&(i=this._playsinline),new Promise((function(t,o){r._$container=e,r._$player=r._createDom(n),r._playerId=n,r._playsinline=i,t()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t.hide().then((function(){return t._player.destroy()})).then((function(){t._isReady=!1,e()})).catch((function(t){n(t)}))}))},t.prototype.load=function(t){var e=this;return new Promise((function(n,i){e._player;e._isReady?e._player.loadVideo(Number(t)).then((function(){return e._addEvent(),e.show()})).then((function(){n()})).catch((function(t){i(t)})):e._createPlayer(Number(t),e._playerId).then((function(t){return e._player=t,e._isReady=!0,e._addEvent(),e.show()})).then((function(){n()})).catch((function(t){i(t)}))}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){var i=t._$player;i.hasClass("is-visible")||i.addClass("is-visible"),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$player,r=t._player;i.hasClass("is-visible")&&i.removeClass("is-visible"),r.unload().then((function(){t.stop(),t._removeEvent(),t._isPlaying=!1,t._duration=0,t._currentTime=0,e()})).catch((function(t){n(t)}))}))},t.prototype.play=function(){this._player.play().then((function(){})).catch((function(t){}))},t.prototype.pause=function(){this._player.pause().then((function(){})).catch((function(t){}))},t.prototype.stop=function(){this.pause()},t.prototype.seekTo=function(t){this._player.setCurrentTime(t).then((function(){})).catch((function(t){}))},t.prototype.mute=function(){this._player.setVolume(0)},t.prototype.unmute=function(){this._player.setVolume(1)},Object.defineProperty(t.prototype,"isPlaying",{get:function(){return this._isPlaying},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentTime",{get:function(){return this._currentTime},enumerable:!0,configurable:!0}),t.prototype._addEvent=function(){var t=this,e=this._player;e.on("play",(function(e){t._duration=e.duration,t._currentTime=e.seconds,t._isPlaying=!0})),e.on("pause",(function(e){t._duration=e.duration,t._currentTime=e.seconds,t._isPlaying=!1})),e.on("timeupdate",(function(e){t._duration=e.duration,t._currentTime=e.seconds})),e.on("ended",(function(e){t._duration=e.duration,t._currentTime=e.seconds,t._isPlaying=!1})),e.on("error",(function(t){}))},t.prototype._removeEvent=function(){var t=this._player;t.off("play"),t.off("pause"),t.off("timeupdate"),t.off("ended"),t.off("error")},t.prototype._createPlayer=function(t,e){var n=this;return new Promise((function(i,r){var a=n._playsinline,s={id:t,autopause:!1,autoplay:!0,byline:!1,controls:!1,muted:!0,playsinline:a,title:!1,loop:!0},u=new o.default(e,s);u.on("loaded",(function(){i(u)}))}))},t.prototype._createDom=function(t){var e=this._$container,n=r.default("<div></div>");return n.attr("id",t),n.addClass("c-vimeo-player"),e.append(n),n},t.PLAYER_ID="js-vimeo-player",t}();e.default=a},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(t){this._$container=t}return t.prototype.init=function(){return new Promise((function(t,e){t()}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){t._$container.addClass("is-visible"),t._addEvent(),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container;t._removeEvent(),i.removeClass("is-visible"),e()}))},t.prototype.exit=function(){return new Promise((function(t,e){t()}))},t.prototype._addEvent=function(){var t=this;this._$container.on("click",(function(e){r.default(t).trigger(e)}))},t.prototype._removeEvent=function(){this._$container.off("click")},t}();e.default=o},function(t,e,n){t.exports=function(){var t=function(){function t(){}return t.prototype.then=function(n,i){var r=new t,o=this.s;if(o){var a=1&o?n:i;if(a){try{e(r,1,a(this.v))}catch(t){e(r,2,t)}return r}return this}return this.o=function(t){try{var o=t.v;1&t.s?e(r,1,n?n(o):o):i?e(r,1,i(o)):e(r,2,o)}catch(t){e(r,2,t)}},r},t}();function e(n,i,r){if(!n.s){if(r instanceof t){if(!r.s)return void(r.o=e.bind(null,n,i));1&i&&(i=r.s),r=r.v}if(r&&r.then)return void r.then(e.bind(null,n,i),e.bind(null,n,2));n.s=i,n.v=r;var o=n.o;o&&o(n)}}function n(t,e){try{var n=t()}catch(t){return e(t)}return n&&n.then?n.then(void 0,e):n}var i={};!function(){function n(t){this.t=t,this.i=null,this.u=null,this.h=null,this.l=null}function r(t){return{value:t,done:!0}}function o(t){return{value:t,done:!1}}n.prototype[Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator"))]=function(){return this},n.prototype.p=function(e){return this.u(e&&e.then?e.then(o):o(e)),this.i=new t},n.prototype.next=function(n){var o=this;return o.l=new Promise((function(a){var s=o.i;if(null===s){var u=o.t;if(null===u)return a(o.l);function c(t){o.u(t&&t.then?t.then(r):r(t)),o.i=null,o.u=null}o.t=null,o.u=a,u(o).then(c,(function(e){if(e===i)c(o.h);else{var n=new t;o.u(n),o.i=null,o.u=null,_resolve(n,2,e)}}))}else o.i=null,o.u=a,e(s,1,n)}))},n.prototype.return=function(t){var n=this;return n.l=new Promise((function(o){var a=n.i;if(null===a)return null===n.t?o(n.l):(n.t=null,o(t&&t.then?t.then(r):r(t)));n.h=t,n.u=o,n.i=null,e(a,2,i)}))},n.prototype.throw=function(t){var n=this;return n.l=new Promise((function(i,r){var o=n.i;if(null===o)return null===n.t?i(n.l):(n.t=null,r(t));n.u=i,n.i=null,e(o,2,t)}))}}();var r,o,a=(function(t){var e=t.exports=function(t,e){return e=e||function(){},function(){var n=!1,i=arguments,r=new Promise((function(e,r){var o,a=t.apply({async:function(){return n=!0,function(t,n){t?r(t):e(n)}}},Array.prototype.slice.call(i));n||(!(o=a)||"object"!=typeof o&&"function"!=typeof o||"function"!=typeof o.then?e(a):a.then(e,r))}));return r.then(e.bind(null,null),e),r}};e.cb=function(t,n){return e((function(){var e=Array.prototype.slice.call(arguments);return e.length===t.length-1&&e.push(this.async()),t.apply(this,e)}),n)}}(r={exports:{}}),r.exports);!function(t){t[t.off=0]="off",t[t.error=1]="error",t[t.warning=2]="warning",t[t.info=3]="info",t[t.debug=4]="debug"}(o||(o={}));var s=o.off,u=function(t){this.m=t};u.getLevel=function(){return s},u.setLevel=function(t){return s=o[t]},u.prototype.error=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];this.P(console.error,o.error,t)},u.prototype.warn=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];this.P(console.warn,o.warning,t)},u.prototype.info=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];this.P(console.info,o.info,t)},u.prototype.debug=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];this.P(console.log,o.debug,t)},u.prototype.P=function(t,e,n){e<=u.getLevel()&&t.apply(console,["["+this.m+"] "].concat(n))};var c=function(){this.logger=new u("@barba/core"),this.all=["ready","page","reset","currentAdded","currentRemoved","nextAdded","nextRemoved","beforeAppear","appear","afterAppear","appearCanceled","before","beforeLeave","leave","afterLeave","leaveCanceled","beforeEnter","enter","afterEnter","enterCanceled","after"],this.registered=new Map,this.init()};c.prototype.init=function(){var t=this;this.registered.clear(),this.all.forEach((function(e){t[e]||(t[e]=function(n,i){void 0===i&&(i=null),t.registered.has(e)||t.registered.set(e,new Set),t.registered.get(e).add({ctx:i,fn:n})})}))},c.prototype.do=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if(this.registered.has(t)){var i=Promise.resolve();return this.registered.get(t).forEach((function(t){var n=t.ctx?t.fn.bind(t.ctx):t.fn;i=i.then((function(){return a(n).apply(void 0,e)}))})),i}return Promise.resolve()},c.prototype.clear=function(){var t=this;this.all.forEach((function(e){delete t[e]})),this.init()},c.prototype.help=function(){this.logger.info("Available hooks: "+this.all.join(","));var t=[];this.registered.forEach((function(e,n){return t.push(n)})),this.logger.info("Registered hooks: "+t.join(","))};var l=new c,f=function t(e,n,i){return e instanceof RegExp?function(t,e){if(!e)return t;var n=t.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return t}(e,n):Array.isArray(e)?function(e,n,i){for(var r=[],o=0;o<e.length;o++)r.push(t(e[o],n,i).source);return new RegExp("(?:"+r.join("|")+")",w(i))}(e,n,i):function(t,e,n){return x(v(t,n),e,n)}(e,n,i)},h=v,d=g,p=x,_="/",m=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function v(t,e){for(var n,i=[],r=0,o=0,a="",s=e&&e.delimiter||_,u=e&&e.whitelist||void 0,c=!1;null!==(n=m.exec(t));){var l=n[0],f=n[1],h=n.index;if(a+=t.slice(o,h),o=h+l.length,f)a+=f[1],c=!0;else{var d="",p=n[2],v=n[3],g=n[4],w=n[5];if(!c&&a.length){var x=a.length-1,E=a[x];(!u||u.indexOf(E)>-1)&&(d=E,a=a.slice(0,x))}a&&(i.push(a),a="",c=!1);var T=v||g,P=d||s;i.push({name:p||r++,prefix:d,delimiter:P,optional:"?"===w||"*"===w,repeat:"+"===w||"*"===w,pattern:T?b(T):"[^"+y(P===s?P:P+s)+"]+?"})}}return(a||o<t.length)&&i.push(a+t.substr(o)),i}function g(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"==typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,i){for(var r="",o=i&&i.encode||encodeURIComponent,a=0;a<t.length;a++){var s=t[a];if("string"!=typeof s){var u,c=n?n[s.name]:void 0;
2if(Array.isArray(c)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but got array');if(0===c.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var l=0;l<c.length;l++){if(u=o(c[l],s),!e[a].test(u))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'"');r+=(0===l?s.prefix:s.delimiter)+u}}else if("string"!=typeof c&&"number"!=typeof c&&"boolean"!=typeof c){if(!s.optional)throw new TypeError('Expected "'+s.name+'" to be '+(s.repeat?"an array":"a string"))}else{if(u=o(String(c),s),!e[a].test(u))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but got "'+u+'"');r+=s.prefix+u}}else r+=s}return r}}function y(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function b(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function w(t){return t&&t.sensitive?"":"i"}function x(t,e,n){for(var i=(n=n||{}).strict,r=!1!==n.start,o=!1!==n.end,a=n.delimiter||_,s=[].concat(n.endsWith||[]).map(y).concat("$").join("|"),u=r?"^":"",c=0;c<t.length;c++){var l=t[c];if("string"==typeof l)u+=y(l);else{var f=l.repeat?"(?:"+l.pattern+")(?:"+y(l.delimiter)+"(?:"+l.pattern+"))*":l.pattern;e&&e.push(l),u+=l.optional?l.prefix?"(?:"+y(l.prefix)+"("+f+"))?":"("+f+")?":y(l.prefix)+"("+f+")"}}if(o)i||(u+="(?:"+y(a)+")?"),u+="$"===s?"$":"(?="+s+")";else{var h=t[t.length-1],d="string"==typeof h?h[h.length-1]===a:void 0===h;i||(u+="(?:"+y(a)+"(?="+s+"))?"),d||(u+="(?="+y(a)+"|"+s+")")}return new RegExp(u,w(n))}f.parse=h,f.compile=function(t,e){return g(v(t,e))},f.tokensToFunction=d,f.tokensToRegExp=p;var E={container:"container",namespace:"namespace",prefix:"data-barba",prevent:"prevent",wrapper:"wrapper"},T=function(){this.g=E,this.A=new DOMParser,this.T=null};T.prototype.toString=function(t){return t.outerHTML},T.prototype.toDocument=function(t){return this.A.parseFromString(t,"text/html")},T.prototype.toElement=function(t){var e=document.createElement("div");return e.innerHTML=t,e},T.prototype.getHtml=function(t){return void 0===t&&(t=document),this.toString(t.documentElement)},T.prototype.getWrapper=function(t){return void 0===t&&(t=document),t.querySelector("["+this.g.prefix+'="'+this.g.wrapper+'"]')},T.prototype.getContainer=function(t){return void 0===t&&(t=document),t.querySelector("["+this.g.prefix+'="'+this.g.container+'"]')},T.prototype.removeContainer=function(t){document.body.contains(t)&&(this.T=t.nextElementSibling,t.parentNode.removeChild(t))},T.prototype.addContainer=function(t,e){this.T?e.insertBefore(t,this.T):e.appendChild(t)},T.prototype.getNamespace=function(t){void 0===t&&(t=document);var e=t.querySelector("["+this.g.prefix+"-"+this.g.namespace+"]");return e?e.getAttribute(this.g.prefix+"-"+this.g.namespace):null},T.prototype.getHref=function(t){if(t.tagName&&"a"===t.tagName.toLowerCase()){var e=t.getAttribute("href");if(e)return e.baseVal||e}return null};var P=new T,A=function(){this.j=[]},C={current:{configurable:!0},previous:{configurable:!0},size:{configurable:!0}};A.prototype.init=function(t,e){var n={index:0,ns:e,scroll:{x:window.scrollX,y:window.scrollY},url:t};this.j.push(n),window.history&&window.history.replaceState(n,"",n.url)},A.prototype.add=function(t,e,n,i){void 0===n&&(n=null),void 0===i&&(i=!0);var r={index:n||this.size,ns:e,scroll:{x:window.scrollX,y:window.scrollY},url:t};this.j.push(r),i&&window.history&&window.history.pushState(r,"",r.url)},A.prototype.remove=function(){this.j.pop()},A.prototype.clear=function(){this.j=[]},A.prototype.update=function(t){var e=Object.assign({},this.current,t);this.current=e,window.history&&window.history.replaceState(e,"",e.url)},A.prototype.cancel=function(){this.remove(),window.history&&window.history.back()},A.prototype.get=function(t){return this.j[t]},A.prototype.getDirection=function(t){var e="popstate";return t<this.current.index?e="back":t>this.current.index&&(e="forward"),e},C.current.get=function(){return this.j[this.j.length-1]},C.current.set=function(t){this.j[this.j.length-1]=t},C.previous.get=function(){return this.j.length<2?null:this.j[this.j.length-2]},C.size.get=function(){return this.j.length},Object.defineProperties(A.prototype,C);var O=new A,S=function(t,e){try{var n=function(){if(!e.next.html)return Promise.resolve(t).then((function(t){var n=e.next;if(t){var i=P.toElement(t);n.namespace=P.getNamespace(i),n.container=P.getContainer(i),n.html=t,O.update({ns:n.namespace});var r=P.toDocument(t);document.title=r.title}}
2))}();return Promise.resolve(n&&n.then?n.then((function(){})):void 0)}catch(t){return Promise.reject(t)}},k=f,I={update:S,nextTick:function(){return new Promise((function(t){window.requestAnimationFrame(t)}))},pathToRegexp:k},R=function(){return window.location.origin},j=function(t){var e=t||window.location.port,n=window.location.protocol;return""!==e?parseInt(e,10):"https:"===n?443:80},D=function(t){var e,n=t.replace(R(),""),i={},r=n.indexOf("#");r>=0&&(e=n.slice(r+1),n=n.slice(0,r));var o=n.indexOf("?");return o>=0&&(i=M(n.slice(o+1)),n=n.slice(0,o)),{hash:e,path:n,query:i}},M=function(t){return t.split("&").reduce((function(t,e){var n=e.split("=");return t[n[0]]=n[1],t}),{})},L=function(t){return t.replace(/(\/#.*|\/|#.*)$/,"")},N={getHref:function(){return window.location.href},getOrigin:R,getPort:j,getPath:function(t){return D(t).path},parse:D,parseQuery:M,clean:L},$=function(t){if(this.k=[],"boolean"==typeof t)this.O=t;else{var e=Array.isArray(t)?t:[t];this.k=e.map((function(t){return k(t)}))}};$.prototype.checkUrl=function(t){if("boolean"==typeof this.O)return this.O;var e=D(t).path;return this.k.some((function(t){return null!==t.exec(e)}))};var F=function(t){function e(e){t.call(this,e),this.j=new Map}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.set=function(t,e,n){return this.checkUrl(t)||this.j.set(t,{action:n,request:e}),{action:n,request:e}},e.prototype.get=function(t){return this.j.get(t)},e.prototype.getRequest=function(t){return this.j.get(t).request},e.prototype.getAction=function(t){return this.j.get(t).action},e.prototype.has=function(t){return this.j.has(t)},e.prototype.delete=function(t){return this.j.delete(t)},e.prototype.update=function(t,e){var n=Object.assign({},this.j.get(t),e);return this.j.set(t,n),n},e}($);function B(t,e,n){return void 0===e&&(e=2e3),new Promise((function(i,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE)if(200===o.status)i(o.responseText);else if(o.status){var e={status:o.status,statusText:o.statusText};n(t,e),r(e)}},o.ontimeout=function(){var i=new Error("Timeout error ["+e+"]");n(t,i),r(i)},o.onerror=function(){var e=new Error("Fetch error");n(t,e),r(e)},o.open("GET",t),o.timeout=e,o.setRequestHeader("Accept","text/html,application/xhtml+xml,application/xml"),o.setRequestHeader("x-barba","yes"),o.send()}))}var U=function(){return!window.history.pushState},V=function(t){return!t.el||!t.href},z=function(t){var e=t.event;return e.which>1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey},X=function(t){var e=t.el;return e.hasAttribute("target")&&"_blank"===e.target},H=function(t){var e=t.el;return void 0!==e.protocol&&window.location.protocol!==e.protocol||void 0!==e.hostname&&window.location.hostname!==e.hostname},G=function(t){var e=t.el;return void 0!==e.port&&j()!==j(e.port)},q=function(t){var e=t.el;return e.getAttribute&&"string"==typeof e.getAttribute("download")},W=function(t){return t.el.hasAttribute(E.prefix+"-"+E.prevent)},Y=function(t){return Boolean(t.el.closest("["+E.prefix+"-"+E.prevent+'="all"]'))},K=function(t){return L(t.href)===L(window.location.href)},Q=function(t){function e(e){t.call(this,e),this.suite=[],this.tests=new Map,this.init()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.init=function(){this.add("pushState",U),this.add("exists",V),this.add("newTab",z),this.add("blank",X),this.add("corsDomain",H),this.add("corsPort",G),this.add("download",q),this.add("preventSelf",W),this.add("preventAll",Y),this.add("sameUrl",K,!1)},e.prototype.add=function(t,e,n){void 0===n&&(n=!0),this.tests.set(t,e),n&&this.suite.push(t)},e.prototype.run=function(t,e,n,i){return this.tests.get(t)({el:e,event:n,href:i})},e.prototype.checkLink=function(t,e,n){var i=this;return this.suite.some((function(r){return i.run(r,t,e,n)}))},e}($),J=function(t){void 0===t&&(t=[]),this.logger=new u("@barba/core"),this.all=[],this.appear=[],this.R=[{name:"namespace",type:"strings"},{name:"custom",type:"function"}],t&&(this.all=this.all.concat(t)),this.update()};J.prototype.add=function(t,e){switch(t){case"rule":this.R.splice(e.position||0,0,e.value);break;case"transition":default:this.all.push(e)}this.update()},J.prototype.resolve=function(t,e){var n,i=this;void 0===e&&(e={});var r=e.appear?this.appear:this.all;r=r.filter(e.self?function(t){return t.name&&"self"===t.name}:function(t){return!t.name||"self"!==t.name});var o=new Map,a=r.find((function(n){var r=!0,a={};
2return!(!e.self||"self"!==n.name)||(i.R.reverse().forEach((function(o){r&&(r=i.L(n,o,t,a),e.appear||(n.from&&n.to&&(r=i.L(n,o,t,a,"from")&&i.L(n,o,t,a,"to")),n.from&&!n.to&&(r=i.L(n,o,t,a,"from")),!n.from&&n.to&&(r=i.L(n,o,t,a,"to"))))})),o.set(n,a),r)})),s=o.get(a),u=[];if(u.push(e.appear?"appear":"page"),e.self&&u.push("self"),s){var c=[a];Object.keys(s).length>0&&c.push(s),(n=this.logger).info.apply(n,["Transition found ["+u.join(",")+"]"].concat(c))}else this.logger.info("No transition found ["+u.join(",")+"]");return a},J.prototype.update=function(){var t=this;this.all=this.all.map((function(e){return t.M(e)})).sort((function(t,e){return t.priority-e.priority})).reverse().map((function(t){return delete t.priority,t})),this.appear=this.all.filter((function(t){return void 0!==t.appear}))},J.prototype.L=function(t,e,n,i,r){var o=!0,a=!1,s=t,u=e.name,c=u,l=u,f=u,h=r?s[r]:s,d="to"===r?n.next:n.current;if(r?h&&h[u]:h[u]){switch(e.type){case"strings":default:var p=Array.isArray(h[c])?h[c]:[h[c]];d[c]&&-1!==p.indexOf(d[c])&&(a=!0),-1===
2p.indexOf(d[c])&&(o=!1);break;case"object":var _=Array.isArray(h[l])?h[l]:[h[l]];d[l]&&(d[l].name&&-1!==_.indexOf(d[l].name)&&(a=!0),-1===_.indexOf(d[l].name)&&(o=!1));break;case"function":h[f](n)?a=!0:o=!1}a&&(r?(i[r]=i[r]||{},i[r][u]=s[r][u]):i[u]=s[u])}return o},J.prototype.S=function(t,e,n){var i=0;return(t[e]||t.from&&t.from[e]||t.to&&t.to[e])&&(i+=Math.pow(10,n),t.from&&t.from[e]&&(i+=1),t.to&&t.to[e]&&(i+=2)),i},J.prototype.M=function(t){var e=this;t.priority=0;var n=0;return this.R.forEach((function(i,r){n+=e.S(t,i.name,r+1)})),t.priority=n,t};var Z=function(t){void 0===t&&(t=[]),this.logger=new u("@barba/core"),this.$=!1,this.store=new J(t)},tt={isRunning:{configurable:!0},hasAppear:{configurable:!0},hasSelf:{configurable:!0},shouldWait:{configurable:!0}};Z.prototype.get=function(t,e){return this.store.resolve(t,e)},tt.isRunning.get=function(){return this.$},tt.isRunning.set=function(t){this.$=t},tt.hasAppear.get=function(){return this.store.appear.length>0},tt.hasSelf.get=function(){return this.store.all.some((function(t){return"self"===t.name}))},tt.shouldWait.get=function(){return this.store.all.some((function(t){return t.to&&!t.to.route||t.sync}))},Z.prototype.doAppear=function(t){var e=t.data,i=t.transition;try{var r=this;function o(t){r.$=!1}var a=i||{};r.$=!0;var s=n((function(){return Promise.resolve(r.q("beforeAppear",e,a)).then((function(){return Promise.resolve(r.appear(e,a)).then((function(){return Promise.resolve(r.q("afterAppear",e,a)).then((function(){}))}))}))}),(function(t){throw r.$=!1,r.logger.error(t),new Error("Transition error [appear]")}));return s&&s.then?s.then(o):o()}catch(t){return Promise.reject(t)}},Z.prototype.doPage=function(t){var e=t.data,i=t.transition,r=t.page,o=t.wrapper;try{var a=this;function s(t){a.$=!1}var u=i||{},c=!0===u.sync||!1;a.$=!0;var l=n((function(){function t(){return Promise.resolve(a.q("before",e,u)).then((function(){function t(t){return Promise.resolve(a.q("after",e,u)).then((function(){return Promise.resolve(a.remove(e)).then((function(){}))}))}var i=function(){if(c)return n((function(){return Promise.resolve(a.add(e,o)).then((function(){return Promise.resolve(a.q("beforeLeave",e,u)).then((function(){return Promise.resolve(a.q("beforeEnter",e,u)).then((function(){return Promise.resolve(Promise.all([a.leave(e,u),a.enter(e,u)])).then((function(){return Promise.resolve(a.q("afterLeave",e,u)).then((function(){return Promise.resolve(a.q("afterEnter",e,u)).then((function(){}))}))}))}))}))}))}),(function(){throw new Error("Transition error [page][sync]")}));{function t(t){return n((function(){var t=function(){if(!1!==i)return Promise.resolve(a.add(e,o)).then((function(){return Promise.resolve(a.q("beforeEnter",e,u)).then((function(){return Promise.resolve(a.enter(e,u,i)).then((function(){return Promise.resolve(a.q("afterEnter",e,u)).then((function(){}))}))}))}))}();if(t&&t.then)return t.then((function(){}))}),(function(){throw new Error("Transition error [page][enter]")}))}var i=!1,s=n((function(){return Promise.resolve(a.q("beforeLeave",e,u)).then((function(){return Promise.resolve(Promise.all([a.leave(e,u),S(r,e)]).then((function(t){return t[0]}))).then((function(t){return i=t,Promise.resolve(a.q("afterLeave",e,u)).then((function(){}))}))}))}),(function(){throw new Error("Transition error [page][leave]")}));return s&&s.then?s.then(t):t()}}();return i&&i.then?i.then(t):t()}))}var i=function(){if(c)return Promise.resolve(S(r,e)).then((function(){}))}();return i&&i.then?i.then(t):t()}),(function(t){throw a.$=!1,a.logger.error(t),new Error("Transition error")}));return l&&l.then?l.then(s):s()}catch(t){return Promise.reject(t)}},Z.prototype.appear=function(t,e){try{return Promise.resolve(l.do("appear",t,e)).then((function(){return e.appear?a(e.appear)(t):Promise.resolve()}))}catch(t){return Promise.reject(t)}},Z.prototype.leave=function(t,e){try{return Promise.resolve(l.do("leave",t,e)).then((function(){return e.leave?a(e.leave)(t):Promise.resolve()}))}catch(t){return Promise.reject(t)}},Z.prototype.enter=function(t,e,n){try{return Promise.resolve(l.do("enter",t,e)).then((function(){return e.enter?a(e.enter)(t,n):Promise.resolve()}))}catch(t){return Promise.reject(t)}},Z.prototype.add=function(t,e){try{P.addContainer(t.next.container,e),l.do("nextAdded",t)}catch(t){return Promise.reject(t)}},Z.prototype.remove=function(t){try{P.removeContainer(t.current.container),l.do("currentRemoved",t)}catch(t){return Promise.reject(t)}},Z.prototype.q=function(t,e,n){try{return Promise.resolve(l.do(t,e,n)).then((function(){return n[t]?a(n[t])(e):Promise.resolve()}))}catch(t){return Promise.reject(t)}},Object.defineProperties(Z.prototype,tt);var et=function(t){var e=this;this.names=["beforeAppear","afterAppear","beforeLeave","afterLeave","beforeEnter","afterEnter"],this.byNamespace=new Map,0!==t.length&&(t.forEach((function(t){e.byNamespace.set(t.namespace,t)}
2)),this.names.forEach((function(t){l[t](e.C(t),e)})))};et.prototype.C=function(t){var e=this;return function(n){var i=t.match(/enter/i)?n.next:n.current,r=e.byNamespace.get(i.namespace);r&&r[t]&&r[t](n)}},Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});var nt={container:void 0,html:void 0,namespace:void 0,url:{hash:void 0,href:void 0,path:void 0,query:{}}},it=function(){this.version="2.6.0",this.schemaPage=nt,this.Logger=u,this.logger=new u("@barba/core"),this.plugins=[],this.hooks=l,this.dom=P,this.helpers=I,this.history=O,this.request=B,this.url=N},rt={data:{configurable:!0},wrapper:{configurable:!0}};return it.prototype.use=function(t,e){var n=this.plugins;n.indexOf(t)>-1?this.logger.warn("Plugin ["+t.name+"] already installed."):"function"==typeof t.install?(t.install(this,e),n.push(t)):this.logger.warn("Plugin ["+t.name+'] has no "install" method.')},it.prototype.init=function(t){void 0===t&&(t={});var e=t.transitions;void 0===e&&(e=[]);var n=t.views;void 0===n&&(n=[]);var i=t.prevent;void 0===i&&(i=null);var r=t.timeout;void 0===r&&(r=2e3);var o=t.requestError,a=t.cacheIgnore;void 0===a&&(a=!1);var s=t.prefetchIgnore;void 0===s&&(s=!1);var c=t.schema;void 0===c&&(c=E);var l=t.debug;void 0===l&&(l=!1);var f=t.logLevel;if(void 0===f&&(f="off"),u.setLevel(!0===l?"debug":f),this.logger.info(this.version),Object.keys(c).forEach((function(t){E[t]&&(E[t]=c[t])})),this.B=o,this.timeout=r,this.cacheIgnore=a,this.prefetchIgnore=s,this.H=this.dom.getWrapper(),!this.H)throw new Error("[@barba/core] No Barba wrapper found");this.H.setAttribute("aria-live","polite"),this.I();var h=this.data.current;if(!h.container)throw new Error("[@barba/core] No Barba container found");if(this.cache=new F(a),this.prevent=new Q(s),this.transitions=new Z(e),this.views=new et(n),null!==i){if("function"!=typeof i)throw new Error("[@barba/core] Prevent should be a function");this.prevent.add("preventCustom",i)}this.history.init(h.url.href,h.namespace),this.N=this.N.bind(this),this.U=this.U.bind(this),this.D=this.D.bind(this),this.X(),this.plugins.forEach((function(t){return t.init()}));var d=this.data;d.trigger="barba",d.next=d.current,this.hooks.do("ready",d),this.appear(d),this.I()},it.prototype.destroy=function(){this.I(),this._(),this.history.clear(),this.hooks.clear(),this.plugins=[]},rt.data.get=function(){return this.F},rt.wrapper.get=function(){return this.H},it.prototype.force=function(t){window.location.assign(t)},it.prototype.go=function(t,e,n){var i;if(void 0===e&&(e="barba"),this.transitions.isRunning)this.force(t);else if(!(i="popstate"===e?this.history.current&&this.url.getPath(this.history.current.url)===this.url.getPath(t):this.prevent.run("sameUrl",null,null,t))||this.transitions.hasSelf){if("popstate"===e){var r=n.state;e=this.history.getDirection(r.index),this.history.add(t,r.ns,r.index,!1)}else this.history.add(t,"tmp");return n&&(n.stopPropagation(),n.preventDefault()),this.page(t,e,i)}},it.prototype.appear=function(t){try{var e=this;return Promise.resolve(e.hooks.do("beforeEnter",t)).then((function(){function i(){return Promise.resolve(e.hooks.do("afterEnter",t)).then((function(){}))}var r=function(){if(e.transitions.hasAppear){var i=n((function(){var n=e.transitions.get(t,{appear:!0});return Promise.resolve(e.transitions.doAppear({transition:n,data:t})).then((function(){}))}),(function(t){e.logger.error(t)}));if(i&&i.then)return i.then((function(){}))}}();return r&&r.then?r.then(i):i()}))}catch(t){return Promise.reject(t)}},it.prototype.page=function(t,e,i){try{var r=this;function o(){var t=r.data;return Promise.resolve(r.hooks.do("page",t)).then((function(){var e=n((function(){var e=r.transitions.get(t,{appear:!1,self:i});return Promise.resolve(r.transitions.doPage({data:t,page:a,transition:e,wrapper:r.H})).then((function(){r.I()}))}),(function(t){r.logger.error(t)}));if(e&&e.then)return e.then((function(){}))}))}r.data.next.url=Object.assign({},{href:t},r.url.parse(t)),r.data.trigger=e;
2var a=r.cache.has(t)?r.cache.update(t,{action:"click"}).request:r.cache.set(t,r.request(t,r.timeout,r.onRequestError.bind(r,e)),"click").request,s=function(){if(r.transitions.shouldWait)return Promise.resolve(S(a,r.data)).then((function(){}))}();return s&&s.then?s.then(o):o()}catch(t){return Promise.reject(t)}},it.prototype.onRequestError=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];this.transitions.isRunning=!1;var i=e[0],r=e[1],o=this.cache.getAction(i);return this.cache.delete(i),!(this.B&&!1===this.B(t,o,i,r)||("click"===o&&this.force(i),1))},it.prototype.prefetch=function(t){var e=this;this.cache.has(t)||this.cache.set(t,this.request(t,this.timeout,this.onRequestError.bind(this,"barba")).catch((function(t){e.logger.error(t)})),"prefetch")},it.prototype.X=function(){!0!==this.prefetchIgnore&&(document.addEventListener("mouseover",this.N),document.addEventListener("touchstart",this.N)),document.addEventListener("click",this.U),window.addEventListener("popstate",this.D)},it.prototype._=function(){!0!==this.prefetchIgnore&&(document.removeEventListener("mouseover",this.N),document.removeEventListener("touchstart",this.N)),document.removeEventListener("click",this.U),window.removeEventListener("popstate",this.D)},it.prototype.N=function(t){var e=this,n=this.G(t);if(n){var i=this.dom.getHref(n);this.prevent.checkUrl(i)||this.cache.has(i)||this.cache.set(i,this.request(i,this.timeout,this.onRequestError.bind(this,n)).catch((function(t){e.logger.error(t)})),"enter")}},it.prototype.U=function(t){var e=this.G(t);e&&this.go(this.dom.getHref(e),e,t)},it.prototype.D=function(t){this.go(this.url.getPath(this.url.getHref()),"popstate",t)},it.prototype.G=function(t){for(var e=t.target;e&&!this.dom.getHref(e);)e=e.parentNode;if(e&&!this.prevent.checkLink(e,t,this.dom.getHref(e)))return e},it.prototype.I=function(){var t=this.url.getPath(this.url.getHref()),e={container:this.dom.getContainer(),html:this.dom.getHtml(),namespace:this.dom.getNamespace(),url:Object.assign({},{href:t},this.url.parse(t))};this.F={current:e,next:Object.assign({},this.schemaPage),trigger:void 0},this.hooks.do("reset",this.data)},Object.defineProperties(it.prototype,rt),new it}()},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(37)),a=n(11),s=i(n(16)),u=i(n(2)),c=i(n(97)),l=function(){function t(){this._imageProps={src:"",width:0,height:0,horizontalOrigin:0,verticalOrigin:0},this._attacks=c.default.ATTACKS,this._animationFrameId=0,this._apply=0,this._attack=c.default.START_ATTACK,this._effectId=c.default.EFFECT_DEFAULT_ID,this._lastEffectId=c.default.EFFECT_DEFAULT_ID,this._isAttacking=!1,this._isVisible=!1,this._tween=new a.TweenLite({},0,{}),this._args=c.default.getArgs(this._effectId)}return t.prototype.init=function(t,e){var n=this;return new Promise((function(i,a){n._$container=t,n._sources=e[0].images,n._preloadImages(e).then((function(){n._canvas=n._createCanvas(),n._sandbox=new o.default(n._canvas,{backgroundColor:"rgb( 0, 0, 0 )"}),n._sandbox.loadTexture(n._changeImage().src),n._sandbox.pause(),t.append(r.default(n._canvas)),i()})).catch((function(t){a(t)}))}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){var i=t._canvas;t._sandbox;t._start().then((function(){r.default(i).removeClass("is-hidden"),t._isVisible=!0,e()})).catch((function(t){n(t)}))}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._canvas;r.default(i).addClass("is-hidden"),t._isVisible=!1,t._stop().then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){var i=t._canvas,o=r.default(i),a=t._sandbox;t._stop().then((function(){a.destroy(),o.remove(),t._attacks=[],t._isVisible=!1,t._isAttacking=!1,t._imageProps={src:"",width:0,height:0,horizontalOrigin:0,verticalOrigin:0},c.default.destroyGui(),e()})).catch((function(t){n(t)}))}))},t.prototype.update=function(t){var e=this;return new Promise((function(n,i){var r=e._sandbox,o=e._isVisible;e._sources=t,e._stop().then((function(){return e._imageProps=e._changeImage(),r.loadTexture("u_source",e._imageProps.src),r.render(),o?e._start():e.show()})).then((function(){e._tweenArgs(),n()})).catch((function(t){i(t)}))}))},t.prototype._start=function(){var t=this;return new Promise((function(e,n){var i=t._sandbox;t._update(),i.play(),e()}))},t.prototype._stop=function(){var t=this;return new Promise((function(e,n){var i=t._sandbox;i.setUniform("u_effectId",c.default.EFFECT_CLEAR_ID),i.pause(),window.cancelAnimationFrame(t._animationFrameId),t._clear(),t._tween.kill(),t._animationFrameId=0,t._apply=0,t._attack=c.default.START_ATTACK,t._effectId=c.default.EFFECT_DEFAULT_ID,t._lastEffectId=c.default.EFFECT_DEFAULT_ID,t._args=c.default.getArgs(t._effectId),e()}))},t.prototype._clear=function(){var t=this._canvas.getContext("webgl");t.clearColor(0,0,0,1),t.clear(t.COLOR_BUFFER_BIT)},t.prototype._update=function(){var t=this;this._animationFrameId=window.requestAnimationFrame((function(){var e=t._sandbox,n=t._apply,i=t._attack;if(n>c.default.STOP_ATTACK){if(t._isAttacking=!0,n<=i){var r=t._attacks,o=Math.floor(Math.random()*r.length);t._effectId=t._changeEffect(),t._effectId=6,t._args=c.default.getArgs(t._effectId),t._attack-=r[o]}}else t._isAttacking&&(t._isAttacking=!1,t._effectId=t._changeEffect(!0),t._args=c.default.getArgs(t._effectId));var a=t._args,s=t._effectId,u=t._imageProps;e.setUniform("u_effectId",s),e.setUniform("u_sourceResolution",u.width,u.height),e.setUniform("u_sourceOrigin",u.horizontalOrigin,u.verticalOrigin),e.setUniform("u_apply",n),e.setUniform("u_attack",c.default.STOP_ATTACK),e.setUniform("u_fringe",a.fringe),e.setUniform("u_displacement",a.displacementX,a.displacementY),e.setUniform("u_gridScale",a.gridScaleX,a.gridScaleY),e.setUniform("u_noiseScale",a.noiseScaleX,a.noiseScaleY),e.setUniform("u_noiseVelocity",a.noiseVelocity),e.setUniform("u_offsetScale",a.offsetScale),e.setUniform("u_vignetteScale",a.vignetteScale),t._update()}))},t.prototype._tweenArgs=function(){var t=this,e=c.default.INTERVAL,n={apply:1};this._apply=1,this._tween.kill(),this._tween=new a.TweenLite(n,e/1e3,{apply:0,ease:a.Power0.easeInOut,onStart:function(){},onUpdate:function(){t._apply=n.apply},onComplete:function(){}})},t.prototype._changeEffect=function(t){void 0===t&&(t=!1);var e=this._effectId,n=Math.floor(Math.random()*c.default.EFFECT_LENGTH);return e===n&&(n=n>=c.default.EFFECT_LENGTH-1?0:n+1),t&&n===this._lastEffectId&&(n=n>=c.default.EFFECT_LENGTH-1?0:n+1),n},t.prototype._changeImage=function(e){void 0===e&&(e=t.IMAGE_SIZE_ID_DESKTOP);var n=this._sources[u.default.isMobile?t.IMAGE_SIZE_ID_MOBILE:e],i=this._convertOrigin(n.origin);return{src:n.src,width:n.size.width,height:n.size.height,horizontalOrigin:i[0],verticalOrigin:i[1]}},t.prototype._createImageIndex=function(){var t=this._sources;return Math.floor(Math.random()*t.length)},t.prototype._convertOrigin=function(t){var e=new Array;switch(t.horizontal){case"left":e[0]=0;break;case"center":e[0]=.5;break;case"right":e[0]=1;break;default:e[0]=.5}switch(t.vertical){case"top":e[1]=1;break;case"middle":e[1]=.5;break;case"bottom":e[1]=0;break;default:e[1]=.5}return e},t.prototype._createCanvas=function(e){void 0===e&&(e=t.FRAGMENT_SHADER);var n=document.createElement("canvas"),i=u.default.shaderDir+e;return n.width=window.innerWidth,n.height=window.innerHeight,r.default(n).attr({"data-fragment-url":i}),n},t.prototype._preloadImages=function(e){return new Promise((function(n,i){for(var r=new s.default,o=new Array,a=0,c=e;a<c.length;a++){var l=c[a].images,f=l[t.IMAGE_SIZE_ID_DESKTOP],h=l[t.IMAGE_SIZE_ID_MOBILE],d=l[t.IMAGE_SIZE_ID_LOW];u.default.isMobile?o.push(r.load(h.src)):(o.push(r.load(f.src)),o.push(r.load(d.src)))}Promise.all(o).then((function(){n()})).catch((function(t){i(t)}))}))},t.FRAGMENT_SHADER="index_background.frag",t.IMAGE_SIZE_ID_DESKTOP=0,t.IMAGE_SIZE_ID_MOBILE=1,t.IMAGE_SIZE_ID_LOW=2,t}();e.default=l},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};
2Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(1)),a=r(n(36)),s=i(n(2)),u=function(){function t(){}return t.getArgs=function(t){return this._createArgs(t),this._args},t.destroyGui=function(){this._gui&&this._gui.destroy()},t.setupGui=function(){this._gui=new a.GUI;var e=this._gui,n=this._args;e.add(n,"displacementX",t.DISPLACEMENT_X_MIN,t.DISPLACEMENT_X_MAX,.001).listen(),e.add(n,"displacementY",t.DISPLACEMENT_Y_MIN,t.DISPLACEMENT_Y_MAX,.001).listen(),e.add(n,"fringe",0,1,.001).listen(),e.add(n,"gridScaleX",t.GRID_SCALE_X_MIN,t.GRID_SCALE_X_MAX,1).listen(),e.add(n,"gridScaleY",t.GRID_SCALE_Y_MIN,t.GRID_SCALE_Y_MAX,1).listen(),e.add(n,"noiseScaleX",t.NOISE_SCALE_X_MIN,t.NOISE_SCALE_X_MAX,.001).listen(),e.add(n,"noiseScaleY",t.NOISE_SCALE_Y_MIN,t.NOISE_SCALE_Y_MAX,.001).listen(),e.add(n,"noiseVelocity",t.NOISE_VELOCITY_MIN,t.NOISE_VELOCITY_MAX,.001).listen(),e.add(n,"offsetScale",0,1,.001).listen(),e.add(n,"vignetteScale",t.VIGNETTE_SCALE_MIN,t.VIGNETTE_SCALE_MAX,.001).listen(),e.close(),o.default(e.domElement).css({position:"fixed",right:0,bottom:48})},t._createArgs=function(e){this._initArgs();var n=this._args;switch(e){case 0:n.displacementX=0,n.displacementY=0,n.noiseScaleX=0,n.noiseScaleY=0;break;case 1:case 2:break;case 3:n.gridScaleX=Math.floor(3*Math.random()+2),n.gridScaleY=Math.floor(4*Math.random()+1),n.displacementX=t.DISPLACEMENT_X_MAX*Math.random()/n.gridScaleX,n.displacementY=t.DISPLACEMENT_Y_MAX*Math.random()/n.gridScaleY,n.fringe=t.FRINGE_DEFAULT*n.gridScaleX,n.offsetScale=.5;break;case 4:break;case 5:n.displacementX=.008,n.noiseScaleX=4,n.noiseScaleY=0;break;case 6:n.gridScaleX=Math.floor(3*Math.random()+2),n.gridScaleY=Math.floor(4*Math.random()+1),n.displacementX=0,n.displacementY=0,n.noiseScaleX=0,n.noiseScaleY=0,n.offsetScale=t.OFFSET_SCALE_DEFAULT}},t._initArgs=function(){var e=this._args;e.displacementX=t.DISPLACEMENT_X_DEFAULT,e.displacementY=t.DISPLACEMENT_Y_DEFAULT,e.fringe=t.FRINGE_DEFAULT,e.gridScaleX=t.GRID_SCALE_X_DEFAULT,e.gridScaleY=t.GRID_SCALE_Y_DEFAULT,e.noiseScaleX=t.NOISE_SCALE_X_DEFAULT,e.noiseScaleY=t.NOISE_SCALE_Y_DEFAULT,e.noiseVelocity=t.NOISE_VELOCITY_DEFAULT,e.offsetScale=t.OFFSET_SCALE_DEFAULT,e.vignetteScale=t.VIGNETTE_SCALE_DEFAULT},t.INTERVAL=s.default.INDEX_INTERVAL,t.START_ATTACK=1,t.STOP_ATTACK=.875,t.ATTACKS=[1/32,1/64],t.EFFECT_LENGTH=8,t.EFFECT_DEFAULT_ID=0,t.EFFECT_CLEAR_ID=-1,t.DISPLACEMENT_X_DEFAULT=.125,t.DISPLACEMENT_X_MAX=.5,t.DISPLACEMENT_X_MIN=0,t.DISPLACEMENT_Y_DEFAULT=.125,t.DISPLACEMENT_Y_MAX=.5,t.DISPLACEMENT_Y_MIN=0,t.FRINGE_DEFAULT=.008,t.GRID_SCALE_X_DEFAULT=16,t.GRID_SCALE_X_MAX=256,t.GRID_SCALE_X_MIN=1,t.GRID_SCALE_Y_DEFAULT=16,t.GRID_SCALE_Y_MAX=256,t.GRID_SCALE_Y_MIN=1,t.NOISE_SCALE_X_DEFAULT=1.5,t.NOISE_SCALE_X_MAX=16,t.NOISE_SCALE_X_MIN=0,t.NOISE_SCALE_Y_DEFAULT=1.5,t.NOISE_SCALE_Y_MAX=16,t.NOISE_SCALE_Y_MIN=0,t.NOISE_VELOCITY_DEFAULT=.125,t.NOISE_VELOCITY_MAX=8,t.NOISE_VELOCITY_MIN=0,t.OFFSET_SCALE_DEFAULT=.125,t.VIGNETTE_SCALE_DEFAULT=1.5,t.VIGNETTE_SCALE_MAX=4,t.VIGNETTE_SCALE_MIN=0,t._args={displacementX:0,displacementY:0,fringe:0,gridScaleX:0,gridScaleY:0,noiseScaleX:0,noiseScaleY:0,noiseVelocity:0,offsetScale:0,vignetteScale:0},t}();e.default=u},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(92)),o=i(n(93)),a=i(n(2)),s=function(){function t(t,e){this._$container=t,this._id=e}return t.prototype.init=function(t,e){var n=this;return new Promise((function(i,s){switch(e){case a.default.VIDEO_PLATFORM_VIMEO:n._player=new o.default;break;case a.default.VIDEO_PLATFORM_YOUTUBE:n._player=new r.default}var u=n._$container,c=n._player;u.append(u),c.init(u,n._id).then((function(){return c.load(t)})).then((function(){i()})).catch((function(t){s(t)}))}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._player;i.addClass("is-visible"),r.isPlaying||r.play(),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){t._$container.removeClass("is-visible"),e()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){var i=t._$container;t._player.exit(),i.remove(),e()}))},t.prototype._addEvent=function(){},t.prototype._removeEvent=function(){},t}();e.default=s},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=n(11),a=i(n(4)),s=function(){function t(){this._tween=new o.TweenLite({},0,{})}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t,e._addEvent(),n()}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){t._$container.addClass("is-visible"),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){t._$container.removeClass("is-visible"),e()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._tween.kill(),t._removeEvent(),e()}))},t.prototype._addEvent=function(){var t=this,e=this._$container;e.on("click",(function(){var n=e.attr("href");return t._scroll(n),!1}))},t.prototype._removeEvent=function(){this._$container.off()},t.prototype._scroll=function(t){var e=this;return new Promise((function(n,i){var s=r.default(t),u=r.default(window),c=s.offset(),l=a.default.$container.outerHeight(),f=u.scrollTop(),h=c?c.top-l:0,d={scrollTop:f};e._tween.kill(),e._tween=new o.TweenLite.to(d,1,{scrollTop:h,ease:o.Power1.easeOut,onStart:function(){},onUpdate:function(){u.scrollTop(d.scrollTop)},onComplete:function(){n()}})}))},t}();e.default=s},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(){}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t,e._addEvent(),n()}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){t._$container.addClass("is-visible"),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){t._$container.removeClass("is-visible"),e()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._removeEvent(),e()}))},t.prototype._addEvent=function(){var t=this;this._$container.on("click",(function(e){return r.default(t).trigger(e),!1}))},t.prototype._removeEvent=function(){this._$container.off("click")},t}();e.default=o},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1));n(102);var o=i(n(2)),a=i(n(104)),s=i(n(5)),u=i(n(4)),c=i(n(7)),l=i(n(22)),f=i(n(259));r.default((function(){var t=r.default(":root"),e=r.default(".js-loading"),n=r.default(".js-background"),i=r.default(".js-header"),h=r.default(".js-movie-player"),d=new f.default,p=document.body.clientWidth,_=window.innerHeight;t[0].style.setProperty("--vw",p+"px"),t[0].style.setProperty("--vh",_+"px"),c.default.setup(e),o.default.setup().then((function(){return a.default.load(o.default.webFonts)})).then((function(){return c.default.appear()})).then((function(){return Promise.all([u.default.setup(i),s.default.setup(n),l.default.setup(h)])})).then((function(){return d.init()})).then((function(){})).catch((function(t){}))}))},function(t,e){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=window.document,e=[];i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},i.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},i.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(r(window,"resize",this._checkForIntersections,!0),r(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,o(window,"resize",this._checkForIntersections,!0),o(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};
2this._observationTargets.forEach((function(i){var r=i.element,o=a(r),s=this._rootContainsTarget(r),u=i.entry,c=t&&s&&this._computeTargetAndRootIntersection(r,e),l=i.entry=new n({time:window.performance&&performance.now&&performance.now(),target:r,boundingClientRect:o,rootBounds:e,intersectionRect:c});u?t&&s?this._hasCrossedThreshold(u,l)&&this._queuedEntries.push(l):u&&u.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(e,n){if("none"!=window.getComputedStyle(e).display){for(var i,r,o,s,c,l,f,h,d=a(e),p=u(e),_=!1;!_;){var m=null,v=1==p.nodeType?window.getComputedStyle(p):{};if("none"==v.display)return;if(p==this.root||p==t?(_=!0,m=n):p!=t.body&&p!=t.documentElement&&"visible"!=v.overflow&&(m=a(p)),m&&(i=m,r=d,o=void 0,s=void 0,c=void 0,l=void 0,f=void 0,h=void 0,o=Math.max(i.top,r.top),s=Math.min(i.bottom,r.bottom),c=Math.max(i.left,r.left),l=Math.min(i.right,r.right),h=s-o,!(d=(f=l-c)>=0&&h>=0&&{top:o,bottom:s,left:c,right:l,width:f,height:h})))break;p=u(p)}return d}},i.prototype._getRootRect=function(){var e;if(this.root)e=a(this.root);else{var n=t.documentElement,i=t.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},i.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,i=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==i)for(var r=0;r<this.thresholds.length;r++){var o=this.thresholds[r];if(o==n||o==i||o<n!=o<i)return!0}},i.prototype._rootIsInDom=function(){return!this.root||s(t,this.root)},i.prototype._rootContainsTarget=function(e){return s(this.root||t,e)},i.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},i.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=i,window.IntersectionObserverEntry=n}function n(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,i=this.intersectionRect,r=i.width*i.height;this.intersectionRatio=n?Number((r/n).toFixed(4)):this.isIntersecting?1:0}function i(t,e){var n,i,r,o=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(o.root&&1!=o.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),i=this.THROTTLE_TIMEOUT,r=null,function(){r||(r=setTimeout((function(){n(),r=null}),i))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(o.rootMargin),this.thresholds=this._initThresholds(o.threshold),this.root=o.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" ")}function r(t,e,n,i){"function"==typeof t.addEventListener?t.addEventListener(e,n,i||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function o(t,e,n,i){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,i||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function a(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function s(t,e){for(var n=e;n;){if(n==t)return!0;n=u(n)}return!1}function u(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}}()},function(t,e,n){var i;!function(r,o){"use strict";var a="model",s="name",u="type",c="vendor",l="version",f="mobile",h="tablet",d={extend:function(t,e){var n={};
vendor: 8,865 bytes, line 2
2for(var i in t)e[i]&&e[i].length%2==0?n[i]=e[i].concat(t[i]):n[i]=t[i];return n},has:function(t,e){return"string"==typeof t&&-1!==e.toLowerCase().indexOf(t.toLowerCase())},lowerize:function(t){return t.toLowerCase()},major:function(t){return"string"==typeof t?t.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},p={rgx:function(t,e){for(var n,i,r,o,a,s,u=0;u<e.length&&!a;){var c=e[u],l=e[u+1];for(n=i=0;n<c.length&&!a;)if(a=c[n++].exec(t))for(r=0;r<l.length;r++)s=a[++i],"object"==typeof(o=l[r])&&o.length>0?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=s?s.replace(o[1],o[2]):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0:4==o.length&&(this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0):this[o]=s||void 0;u+=2}},str:function(t,e){for(var n in e)if("object"==typeof e[n]&&e[n].length>0){for(var i=0;i<e[n].length;i++)if(d.has(e[n][i],t))return"?"===n?void 0:n}else if(d.has(e[n],t))return"?"===n?void 0:n;return t}},_={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},m={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[s,l],[/(opios)[\/\s]+([\w\.]+)/i],[[s,"Opera Mini"],l],[/\s(opr)\/([\w\.]+)/i],[[s,"Opera"],l],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[s,l],[/(konqueror)\/([\w\.]+)/i],[[s,"Konqueror"],l],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[s,"IE"],l],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[s,"Edge"],l],[/(yabrowser)\/([\w\.]+)/i],[[s,"Yandex"],l],[/(puffin)\/([\w\.]+)/i],[[s,"Puffin"],l],[/(focus)\/([\w\.]+)/i],[[s,"Firefox Focus"],l],[/(opt)\/([\w\.]+)/i],[[s,"Opera Touch"],l],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[s,"UCBrowser"],l],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],l],[/(windowswechat qbcore)\/([\w\.]+)/i],[[s,"WeChat(Win) Desktop"],l],[/(micromessenger)\/([\w\.]+)/i],[[s,"WeChat"],l],[/(brave)\/([\w\.]+)/i],[[s,"Brave"],l],[/(qqbrowserlite)\/([\w\.]+)/i],[s,l],[/(QQ)\/([\d\.]+)/i],[s,l],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[s,l],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[s,l],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[s,l],[/(MetaSr)[\/\s]?([\w\.]+)/i],[s],[/(LBBROWSER)/i],[s],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[l,[s,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[l,[s,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[s,l],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[l,[s,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[s,/(.+)/,"$1 WebView"],l],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[s,/(.+(?:g|us))(.+)/,"$1 $2"],l],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[l,[s,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[s,"Sailfish Browser"],l],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[s,l],[/(dolfin)\/([\w\.]+)/i],[[s,"Dolphin"],l],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[s,"Chrome"],l],[/(coast)\/([\w\.]+)/i],[[s,"Opera Coast"],l],[/fxios\/([\w\.-]+)/i],[l,[s,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[l,[s,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[l,s],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[s,"GSA"],l],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[s,[l,p.str,_.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[s,l],[/(navigator|netscape)\/([\w\.-]+)/i],[[s,"Netscape"],l],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[s,l]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",d.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",d.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",d.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[a,c,[u,h]],[/applecoremedia\/[\w\.]+ \((ipad)/],[a,[c,"Apple"],[u,h]],[/(apple\s{0,1}tv)/i],[[a,"Apple TV"],[c,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[c,a,[u,h]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[a,[c,"Amazon"],[u,h]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[a,p.str,_.device.amazon.model],[c,"Amazon"],[u,f]],[/android.+aft([bms])\sbuild/i],[a,[c,"Amazon"],[u,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[a,c,[u,f]],[/\((ip[honed|\s\w*]+);/i],[a,[c,"Apple"],[u,f]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[c,a,[u,f]],[/\(bb10;\s(\w+)/i],[a,[c,"BlackBerry"],[u,f]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[a,[c,"Asus"],[u,h]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[c,"Sony"],[a,"Xperia Tablet"],[u,h]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[c,"Sony"],[u,f]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[c,a,[u,"console"]],[/android.+;\s(shield)\sbuild/i],[a,[c,"Nvidia"],[u,"console"]],[/(playstation\s[34portablevi]+)/i],[a,[c,"Sony"],[u,"console"]],[/(sprint\s(\w+))/i],[[c,p.str,_.device.sprint.vendor],[a,p.str,_.device.sprint.model],[u,f]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[c,[a,/_/g," "],[u,f]],[/(nexus\s9)/i],[a,[c,"HTC"],[u,h]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[a,[c,"Huawei"],[u,f]],[/(microsoft);\s(lumia[\s\w]+)/i],[c,a,[u,f]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[a,[c,"Microsoft"],[u,"console"]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[c,"Microsoft"],[u,f]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[a,[c,"Motorola"],[u,f]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[a,[c,"Motorola"],[u,h]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[c,d.trim],[a,d.trim],[u,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[c,"Samsung"],[u,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[a,[c,"Sharp"],[u,"smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[c,"Samsung"],a,[u,h]],[/smart-tv.+(samsung)/i],[c,[u,"smarttv"],a],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[c,"Samsung"],a,[u,f]],[/sie-(\w*)/i],[a,[c,"Siemens"],[u,f]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[c,"Nokia"],a,[u,f]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[a,[c,"Acer"],[u,h]],[/android.+([vl]k\-?\d{3})\s+build/i],[a,[c,"LG"],[u,h]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[c,"LG"],a,[u,h]],[/(lg) netcast\.tv/i],[c,a,[u,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[a,[c,"LG"],[u,f]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[c,a,[u,h]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[a,[c,"Lenovo"],[u,h]],[/(lenovo)[_\s-]?([\w-]+)/i],[c,a,[u,f]],[/linux;.+((jolla));/i],[c,a,[u,f]],[/((pebble))app\/[\d\.]+\s/i],[c,a,[u,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[c,a,[u,f]],[/crkey/i],[[a,"Chromecast"],[c,"Google"]],[/android.+;\s(glass)\s\d/i],[a,[c,"Google"],[u,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[a,[c,"Google"],[u,h]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[a,[c,"Google"],[u,f]],[/android.+;
vendor: 2,977 bytes, line 2
2\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[a,/_/g," "],[c,"Xiaomi"],[u,f]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[a,/_/g," "],[c,"Xiaomi"],[u,h]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[a,[c,"Meizu"],[u,f]],[/(mz)-([\w-]{2,})/i],[[c,"Meizu"],a,[u,f]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[a,[c,"OnePlus"],[u,f]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[a,[c,"RCA"],[u,h]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[a,[c,"Dell"],[u,h]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[a,[c,"Verizon"],[u,h]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[c,"Barnes & Noble"],a,[u,h]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[a,[c,"NuVision"],[u,h]],[/android.+;\s(k88)\sbuild/i],[a,[c,"ZTE"],[u,h]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[a,[c,"Swiss"],[u,f]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[a,[c,"Swiss"],[u,h]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[a,[c,"Zeki"],[u,h]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[c,"Dragon Touch"],a,[u,h]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[a,[c,"Insignia"],[u,h]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[a,[c,"NextBook"],[u,h]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[c,"Voice"],a,[u,f]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[c,"LvTel"],a,[u,f]],[/android.+;\s(PH-1)\s/i],[a,[c,"Essential"],[u,f]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[a,[c,"Envizen"],[u,h]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[c,a,[u,h]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[a,[c,"MachSpeed"],[u,h]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[c,a,[u,h]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[a,[c,"Rotor"],[u,h]],[/android.+(KS(.+))\s+build/i],[a,[c,"Amazon"],[u,h]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[c,a,[u,h]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[u,d.lowerize],c,a],[/[\s\/\(](smart-?tv)[;\)]/i],[[u,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[a,[c,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[l,[s,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)/i],[[s,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[s,l],[/rv\:([\w\.]{1,9}).+(gecko)/i],[l,s]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[s,l],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[s,[l,p.str,_.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[s,"Windows"],[l,p.str,_.os.windows.version]],[/\((bb)(10);
2/i],[[s,"BlackBerry"],l],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[s,l],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[s,"Symbian"],l],[/\((series40);/i],[s],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[s,"Firefox OS"],l],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[s,l],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[s,"Chromium OS"],l],[/(sunos)\s?([\w\.\d]*)/i],[[s,"Solaris"],l],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[s,l],[/(haiku)\s(\w+)/i],[s,l],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[l,/_/g,"."],[s,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[s,"Mac OS"],[l,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[s,l]]},v=function(t,e){if("object"==typeof t&&(e=t,t=void 0),!(this instanceof v))return new v(t,e).getResult();var n=t||(r&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:""),i=e?d.extend(m,e):m;return this.getBrowser=function(){var t={name:void 0,version:void 0};return p.rgx.call(t,n,i.browser),t.major=d.major(t.version),t},this.getCPU=function(){var t={architecture:void 0};return p.rgx.call(t,n,i.cpu),t},this.getDevice=function(){var t={vendor:void 0,model:void 0,type:void 0};return p.rgx.call(t,n,i.device),t},this.getEngine=function(){var t={name:void 0,version:void 0};return p.rgx.call(t,n,i.engine),t},this.getOS=function(){var t={name:void 0,version:void 0};return p.rgx.call(t,n,i.os),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(t){return n=t,this},this};v.VERSION="0.7.20",v.BROWSER={NAME:s,MAJOR:"major",VERSION:l},v.CPU={ARCHITECTURE:"architecture"},v.DEVICE={MODEL:a,VENDOR:c,TYPE:u,CONSOLE:"console",MOBILE:f,SMARTTV:"smarttv",TABLET:h,WEARABLE:"wearable",EMBEDDED:"embedded"},v.ENGINE={NAME:s,VERSION:l},v.OS={NAME:s,VERSION:l},void 0!==e?(void 0!==t&&t.exports&&(e=t.exports=v),e.UAParser=v):void 0===(i=function(){return v}.call(e,n,e,t))||(t.exports=i);var g=r&&(r.jQuery||r.Zepto);if(void 0!==g&&!g.ua){var y=new v;g.ua=y.getResult(),g.ua.get=function(){return y.getUA()},g.ua.set=function(t){y.setUA(t);var e=y.getResult();for(var n in e)g.ua[n]=e[n]}}}("object"==typeof window?window:this)},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(105)),o=function(){function t(){}return t.load=function(t){return new Promise((function(e,n){t.classes=!1,t.timeout=3e3,t.loading=function(){},t.active=function(){e()},t.inactive=function(){e()},t.fontloading=function(t,e){},t.fontactive=function(t,e){},t.fontinactive=function(t,e){},r.default.load(t)}))},t}();e.default=o},function(t,e,n){var i;!function(){function r(t,e,n){return t.call.apply(t.bind,arguments)}function o(t,e,n){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function a(t,e,n){return(a=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?r:o).apply(null,arguments)}var s=Date.now||function(){return+new Date};function u(t,e){this.a=t,this.o=e||t,this.c=this.o.document}var c=!!window.FontFace;function l(t,e,n,i){if(e=t.c.createElement(e),n)for(var r in n)n.hasOwnProperty(r)&&("style"==r?e.style.cssText=n[r]:e.setAttribute(r,n[r]));return i&&e.appendChild(t.c.createTextNode(i)),e}function f(t,e,n){(t=t.c.getElementsByTagName(e)[0])||(t=document.documentElement),t.insertBefore(n,t.lastChild)}function h(t){t.parentNode&&t.parentNode.removeChild(t)}function d(t,e,n){e=e||[],n=n||[];for(var i=t.className.split(/\s+/),r=0;r<e.length;r+=1){for(var o=!1,a=0;a<i.length;a+=1)if(e[r]===i[a]){o=!0;break}o||i.push(e[r])}for(e=[],r=0;r<i.length;r+=1){for(o=!1,a=0;a<n.length;a+=1)if(i[r]===n[a]){o=!0;break}o||e.push(i[r])}t.className=e.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function p(t,e){for(var n=t.className.split(/\s+/),i=0,r=n.length;i<r;i++)if(n[i]==e)return!0;return!1}function _(t,e,n){function i(){s&&r&&o&&(s(a),s=null)}e=l(t,"link",{rel:"stylesheet",href:e,media:"all"});var r=!1,o=!0,a=null,s=n||null;c?(e.onload=function(){r=!0,i()},e.onerror=function(){r=!0,a=Error("Stylesheet failed to load"),i()}):setTimeout((function(){r=!0,i()}),0),f(t,"head",e)}function m(t,e,n,i){var r=t.c.getElementsByTagName("head")[0];if(r){var o=l(t,"script",{src:e}),a=!1;return o.onload=o.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),o.onload=o.onreadystatechange=null,"HEAD"==o.parentNode.tagName&&r.removeChild(o))},r.appendChild(o),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),i||5e3),o}return null}function v(){this.a=0,this.c=null}function g(t){return t.a++,function(){t.a--,b(t)}}function y(t,e){t.c=e,b(t)}function b(t){0==t.a&&t.c&&(t.c(),t.c=null)}function w(t){this.a=t||"-"}function x(t,e){this.c=t,this.f=4,this.a="n";var n=(e||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function E(t){var e=[];t=t.split(/,\s*/);for(var n=0;n<t.length;n++){var i=t[n].replace(/['"]/g,"");-1!=i.indexOf(" ")||/^\d/.test(i)?e.push("'"+i+"'"):e.push(i)}return e.join(",")}function T(t){return t.a+t.f}function P(t){var e="normal";return"o"===t.a?e="oblique":"i"===t.a&&(e="italic"),e}function A(t){var e=4,n="n",i=null;return t&&((i=t.match(/(normal|oblique|italic)/i))&&i[1]&&(n=i[1].substr(0,1).toLowerCase()),(i=t.match(/([1-9]00|normal|bold)/i))&&i[1]&&(/bold/i.test(i[1])?e=7:/[1-9]00/.test(i[1])&&(e=parseInt(i[1].substr(0,1),10)))),n+e}function C(t,e){this.c=t,this.f=t.o.document.documentElement,this.h=e,this.a=new w("-"),this.j=!1!==e.events,this.g=!1!==e.classes}function O(t){if(t.g){var e=p(t.f,t.a.c("wf","active")),n=[],i=[t.a.c("wf","loading")];e||n.push(t.a.c("wf","inactive")),d(t.f,n,i)}S(t,"inactive")}function S(t,e,n){t.j&&t.h[e]&&(n?t.h[e](n.c,T(n)):t.h[e]())}function k(){this.c={}}function I(t,e){this.c=t,this.f=e,this.a=l(this.c,"span",{"aria-hidden":"true"},this.f)}function R(t){f(t.c,"body",t.a)}function j(t){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+E(t.c)+";font-style:"+P(t)+";font-weight:"+t.f+"00;"}function D(t,e,n,i,r,o){this.g=t,this.j=e,this.a=i,this.c=n,this.f=r||3e3,this.h=o||void 0}function M(t,e,n,i,r,o,a){this.v=t,this.B=e,this.c=n,this.a=i,this.s=a||"BESbswy",this.f={},this.w=r||3e3,this.u=o||null,this.m=this.j=this.h=this.g=null,this.g=new I(this.c,this.s),this.h=new I(this.c,this.s),this.j=new I(this.c,this.s),this.m=new I(this.c,this.s),t=j(t=new x(this.a.c+",serif",T(this.a))),this.g.a.style.cssText=t,t=j(t=new x(this.a.c+",sans-serif",T(this.a))),this.h.a.style.cssText=t,t=j(t=new x("serif",T(this.a))),this.j.a.style.cssText=t,t=j(t=new x("sans-serif",T(this.a))),this.m.a.style.cssText=t,R(this.g),R(this.h),R(this.j),R(this.m)}w.prototype.c=function(t){for(var e=[],n=0;n<arguments.length;n++)e.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return e.join(this.a)},D.prototype.start=function(){var t=this.c.o.document,e=this,n=s(),i=new Promise((function(i,r){!function o(){s()-n>=e.f?r():t.fonts.load(function(t){return P(t)+" "+t.f+"00 300px "+E(t.c)}
vendor: 5,414 bytes, line 2
2(e.a),e.h).then((function(t){1<=t.length?i():setTimeout(o,25)}),(function(){r()}))}()})),r=null,o=new Promise((function(t,n){r=setTimeout(n,e.f)}));Promise.race([o,i]).then((function(){r&&(clearTimeout(r),r=null),e.g(e.a)}),(function(){e.j(e.a)}))};var L={D:"serif",C:"sans-serif"},N=null;function $(){if(null===N){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);N=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))}return N}function F(t,e,n){for(var i in L)if(L.hasOwnProperty(i)&&e===t.f[L[i]]&&n===t.f[L[i]])return!0;return!1}function B(t){var e,n=t.g.a.offsetWidth,i=t.h.a.offsetWidth;(e=n===t.f.serif&&i===t.f["sans-serif"])||(e=$()&&F(t,n,i)),e?s()-t.A>=t.w?$()&&F(t,n,i)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?U(t,t.v):U(t,t.B):function(t){setTimeout(a((function(){B(this)}),t),50)}(t):U(t,t.v)}function U(t,e){setTimeout(a((function(){h(this.g.a),h(this.h.a),h(this.j.a),h(this.m.a),e(this.a)}),t),0)}function V(t,e,n){this.c=t,this.a=e,this.f=0,this.m=this.j=!1,this.s=n}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),B(this)};var z=null;function X(t){0==--t.f&&t.j&&(t.m?((t=t.a).g&&d(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),S(t,"active")):O(t.a))}function H(t){this.j=t,this.a=new k,this.h=0,this.f=this.g=!0}function G(t,e,n,i,r){var o=0==--t.h;(t.f||t.g)&&setTimeout((function(){var t=r||null,s=i||{};if(0===n.length&&o)O(e.a);else{e.f+=n.length,o&&(e.j=o);var u,c=[];for(u=0;u<n.length;u++){var l=n[u],f=s[l.c],h=e.a,p=l;if(h.g&&d(h.f,[h.a.c("wf",p.c,T(p).toString(),"loading")]),S(h,"fontloading",p),h=null,null===z)if(window.FontFace){p=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var _=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);z=p?42<parseInt(p[1],10):!_}else z=!1;h=z?new D(a(e.g,e),a(e.h,e),e.c,l,e.s,f):new M(a(e.g,e),a(e.h,e),e.c,l,e.s,t,f),c.push(h)}for(u=0;u<c.length;u++)c[u].start()}}),0)}function q(t,e){this.c=t,this.a=e}function W(t,e){this.c=t,this.a=e}function Y(t,e){this.c=t||K,this.a=[],this.f=[],this.g=e||""}V.prototype.g=function(t){var e=this.a;e.g&&d(e.f,[e.a.c("wf",t.c,T(t).toString(),"active")],[e.a.c("wf",t.c,T(t).toString(),"loading"),e.a.c("wf",t.c,T(t).toString(),"inactive")]),S(e,"fontactive",t),this.m=!0,X(this)},V.prototype.h=function(t){var e=this.a;if(e.g){var n=p(e.f,e.a.c("wf",t.c,T(t).toString(),"active")),i=[],r=[e.a.c("wf",t.c,T(t).toString(),"loading")];n||i.push(e.a.c("wf",t.c,T(t).toString(),"inactive")),d(e.f,i,r)}S(e,"fontinactive",t),X(this)},H.prototype.load=function(t){this.c=new u(this.j,t.context||this.j),this.g=!1!==t.events,this.f=!1!==t.classes,function(t,e,n){var i=[],r=n.timeout;!function(t){t.g&&d(t.f,[t.a.c("wf","loading")]),S(t,"loading")}(e);i=function(t,e,n){var i,r=[];for(i in e)if(e.hasOwnProperty(i)){var o=t.c[i];o&&r.push(o(e[i],n))}return r}(t.a,n,t.c);var o=new V(t.c,e,r);for(t.h=i.length,e=0,n=i.length;e<n;e++)i[e].load((function(e,n,i){G(t,o,e,n,i)}))}(this,new C(this.c,t),t)},q.prototype.load=function(t){var e=this,n=e.a.projectId,i=e.a.version;if(n){var r=e.c.o;m(this.c,(e.a.api||"https://fast.fonts.net/jsapi")+"/"+n+".js"+(i?"?v="+i:""),(function(i){i?t([]):(r["__MonotypeConfiguration__"+n]=function(){return e.a},function e(){if(r["__mti_fntLst"+n]){var i,o=r["__mti_fntLst"+n](),a=[];if(o)for(var s=0;s<o.length;s++){var u=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(i=o[s].fontStyle+o[s].fontWeight,a.push(new x(u,i))):a.push(new x(u))}t(a)}else setTimeout((function(){e()}),50)}())})).id="__MonotypeAPIScript__"+n}else t([])},W.prototype.load=function(t){var e,n,i=this.a.urls||[],r=this.a.families||[],o=this.a.testStrings||{},a=new v;for(e=0,n=i.length;e<n;e++)_(this.c,i[e],g(a));var s=[];for(e=0,n=r.length;e<n;e++)if((i=r[e].split(":"))[1])for(var u=i[1].split(","),c=0;c<u.length;c+=1)s.push(new x(i[0],u[c]));else s.push(new x(i[0]));y(a,(function(){t(s,o)}))};var K="https://fonts.googleapis.com/css";function Q(t){this.f=t,this.a=[],this.c={}}var J={latin:"BESbswy","latin-ext":"çöüÄÅ",cyrillic:"йÑÐ",greek:"αβΣ",khmer:"ááá",Hanuman:"ááá"},Z={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},tt={i:"i",italic:"i",n:"n",normal:"n"},et=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function nt(t,e){this.c=t,this.a=e}var it={Arimo:!0,Cousine:!0,Tinos:!0};function rt(t,e){this.c=t,this.a=e}function ot(t,e){this.c=t,this.f=e,this.a=[]}nt.prototype.load=function(t){var e=new v,n=this.c,i=new Y(this.a.api,this.a.text),r=this.a.families;!function(t,e){for(var n=e.length,i=0;i<n;i++){var r=e[i].split(":");3==r.length&&t.f.push(r.pop());var o="";2==r.length&&""!=r[1]&&(o=":"),t.a.push(r.join(o))}}(i,r);var o=new Q(r);!function(t){for(var e=t.f.length,n=0;n<e;n++){var i=t.f[n].split(":"),r=i[0].replace(/\+/g," "),o=["n4"];if(2<=i.length){var a;if(a=[],s=i[1])for(var s,u=(s=s.split(",")).length,c=0;c<u;c++){var l;if((l=s[c]).match(/^[\w-]+$/))if(null==(h=et.exec(l.toLowerCase())))l="";
2else{if(l=null==(l=h[2])||""==l?"n":tt[l],null==(h=h[1])||""==h)h="4";else var f=Z[h],h=f||(isNaN(h)?"4":h.substr(0,1));l=[l,h].join("")}else l="";l&&a.push(l)}0<a.length&&(o=a),3==i.length&&(a=[],0<(i=(i=i[2])?i.split(","):a).length&&(i=J[i[0]])&&(t.c[r]=i))}for(t.c[r]||(i=J[r])&&(t.c[r]=i),i=0;i<o.length;i+=1)t.a.push(new x(r,o[i]))}}(o),_(n,function(t){if(0==t.a.length)throw Error("No fonts to load!");if(-1!=t.c.indexOf("kit="))return t.c;for(var e=t.a.length,n=[],i=0;i<e;i++)n.push(t.a[i].replace(/ /g,"+"));return e=t.c+"?family="+n.join("%7C"),0<t.f.length&&(e+="&subset="+t.f.join(",")),0<t.g.length&&(e+="&text="+encodeURIComponent(t.g)),e}(i),g(e)),y(e,(function(){t(o.a,o.c,it)}))},rt.prototype.load=function(t){var e=this.a.id,n=this.c.o;e?m(this.c,(this.a.api||"https://use.typekit.net")+"/"+e+".js",(function(e){if(e)t([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){e=n.Typekit.config.fn;for(var i=[],r=0;r<e.length;r+=2)for(var o=e[r],a=e[r+1],s=0;s<a.length;s++)i.push(new x(o,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(t){}t(i)}}),2e3):t([])},ot.prototype.load=function(t){var e=this.f.id,n=this.c.o,i=this;e?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[e]=function(e,n){for(var r=0,o=n.fonts.length;r<o;++r){var a=n.fonts[r];i.a.push(new x(a.name,A("font-weight:"+a.weight+";font-style:"+a.style)))}t(i.a)},m(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(t){return t.o.location.hostname||t.a.location.hostname}(this.c)+"/"+e+".js",(function(e){e&&t([])}))):t([])};var at=new H(window);at.a.c.custom=function(t,e){return new W(e,t)},at.a.c.fontdeck=function(t,e){return new ot(e,t)},at.a.c.monotype=function(t,e){return new q(e,t)},at.a.c.typekit=function(t,e){return new rt(e,t)},at.a.c.google=function(t,e){return new nt(e,t)};var st={load:a(at.load,at)};void 0===(i=function(){return st}.call(e,n,e,t))||(t.exports=i)}()},function(t,e,n){(function(e){var n;n="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=n}).call(this,n(12))},function(t,e){t.exports=function(t){var e=n.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var n=Object.prototype.toString},function(t,e,n){var i=n(109),r=n(124);t.exports=function(t){if(!t)return{};var e={};return r(i(t).split("\n"),(function(t){var n,r=t.indexOf(":"),o=i(t.slice(0,r)).toLowerCase(),a=i(t.slice(r+1));void 0===e[o]?e[o]=a:(n=e[o],"[object Array]"===Object.prototype.toString.call(n)?e[o].push(a):e[o]=[e[o],a])})),e}},function(t,e,n){"use strict";var i=n(23),r=n(61),o=n(63),a=n(64),s=n(123),u=i.call(Function.call,a());r(u,{getPolyfill:a,implementation:o,shim:s}),t.exports=u},function(t,e,n){"use strict";var i="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,o=Object.prototype.toString;t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==o.call(e))throw new TypeError(i+e);for(var n,a=r.call(arguments,1),s=function(){if(this instanceof n){var i=e.apply(this,a.concat(r.call(arguments)));return Object(i)===i?i:this}return e.apply(t,a.concat(r.call(arguments)))},u=Math.max(0,e.length-a.length),c=[],l=0;l<u;l++)c.push("$"+l);if(n=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(s),e.prototype){var f=function(){};f.prototype=e.prototype,n.prototype=new f,f.prototype=null}return n}},function(t,e,n){"use strict";var i=Array.prototype.slice,r=n(62),o=Object.keys,a=o?function(t){return o(t)}:n(112),s=Object.keys;a.shim=function(){Object.keys?function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2)||(Object.keys=function(t){return r(t)?s(i.call(t)):s(t)}):Object.keys=a;return Object.keys||a},t.exports=a},function(t,e,n){"use strict";var i;if(!Object.keys){var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(62),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call((function(){}
2),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(t){var e=t.constructor;return e&&e.prototype===t},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!h["$"+t]&&r.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{f(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();i=function(t){var e=null!==t&&"object"==typeof t,n="[object Function]"===o.call(t),i=a(t),s=e&&"[object String]"===o.call(t),h=[];if(!e&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var p=c&&n;if(s&&t.length>0&&!r.call(t,0))for(var _=0;_<t.length;++_)h.push(String(_));if(i&&t.length>0)for(var m=0;m<t.length;++m)h.push(String(m));else for(var v in t)p&&"prototype"===v||!r.call(t,v)||h.push(String(v));if(u)for(var g=function(t){if("undefined"==typeof window||!d)return f(t);try{return f(t)}catch(t){return!1}}(t),y=0;y<l.length;++y)g&&"constructor"===l[y]||!r.call(t,l[y])||h.push(l[y]);return h}}t.exports=i},function(t,e,n){"use strict";var i=n(24),r=i("%Object%"),o=i("%TypeError%"),a=i("%String%"),s=i("%Number%"),u=n(114),c=n(115),l=n(116),f=n(117),h=n(118),d=n(119),p=n(39),_=n(120),m=n(38),v=n(122)(a.prototype.slice),g=function(t,e){return t===e||!(t.length>e.length)&&v(e,0,t.length)===t},y={ToPrimitive:_,ToBoolean:function(t){return!!t},ToNumber:function(t){return+t},ToInteger:function(t){var e=this.ToNumber(t);return l(e)?0:0!==e&&f(e)?h(e)*Math.floor(Math.abs(e)):e},ToInt32:function(t){return this.ToNumber(t)>>0},ToUint32:function(t){return this.ToNumber(t)>>>0},ToUint16:function(t){var e=this.ToNumber(t);if(l(e)||0===e||!f(e))return 0;var n=h(e)*Math.floor(Math.abs(e));return d(n,65536)},ToString:function(t){return a(t)},ToObject:function(t){return this.CheckObjectCoercible(t),r(t)},CheckObjectCoercible:function(t,e){if(null==t)throw new o(e||"Cannot call method on "+t);return t},IsCallable:p,SameValue:function(t,e){return t===e?0!==t||1/t==1/e:l(t)&&l(e)},Type:function(t){return null===t?"Null":void 0===t?"Undefined":"function"==typeof t||"object"==typeof t?"Object":"number"==typeof t?"Number":"boolean"==typeof t?"Boolean":"string"==typeof t?"String":void 0},IsPropertyDescriptor:function(t){return c(this,t)},IsAccessorDescriptor:function(t){return void 0!==t&&(u(this,"Property Descriptor","Desc",t),!(!m(t,"[[Get]]")&&!m(t,"[[Set]]")))},IsDataDescriptor:function(t){return void 0!==t&&(u(this,"Property Descriptor","Desc",t),!(!m(t,"[[Value]]")&&!m(t,"[[Writable]]")))},IsGenericDescriptor:function(t){return void 0!==t&&(u(this,"Property Descriptor","Desc",t),!this.IsAccessorDescriptor(t)&&!this.IsDataDescriptor(t))},FromPropertyDescriptor:function(t){if(void 0===t)return t;if(u(this,"Property Descriptor","Desc",t),this.IsDataDescriptor(t))return{value:t["[[Value]]"],writable:!!t["[[Writable]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};if(this.IsAccessorDescriptor(t))return{get:t["[[Get]]"],set:t["[[Set]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};throw new o("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(t){if("Object"!==this.Type(t))throw new o("ToPropertyDescriptor requires an object");var e={};if(m(t,"enumerable")&&(e["[[Enumerable]]"]=this.ToBoolean(t.enumerable)),m(t,"configurable")&&(e["[[Configurable]]"]=this.ToBoolean(t.configurable)),m(t,"value")&&(e["[[Value]]"]=t.value),m(t,"writable")&&(e["[[Writable]]"]=this.ToBoolean(t.writable)),m(t,"get")){var n=t.get;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("getter must be a function");e["[[Get]]"]=n}if(m(t,"set")){var i=t.set;if(void 0!==i&&!this.IsCallable(i))throw new o("setter must be a function");e["[[Set]]"]=i}if((m(e,"[[Get]]")||m(e,"[[Set]]"))&&(m(e,"[[Value]]")||m(e,"[[Writable]]")))throw new o("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return e},"Abstract Equality Comparison":function(t,e){var n=this.Type(t),i=this.Type(e);return n===i?t===e:null==t&&null==e||("Number"===n&&"String"===i?this["Abstract Equality Comparison"](t,this.ToNumber(e)):"String"===n&&"Number"===i?this["Abstract Equality Comparison"](this.ToNumber(t),e):"Boolean"===n?this["Abstract Equality Comparison"](this.ToNumber(t),e):"Boolean"===i?this["Abstract Equality Comparison"](t,this.ToNumber(e)):"String"!==n&&"Number"!==n||"Object"!==i?"Object"===n&&("String"===i||"Number"===i)&&this["Abstract Equality Comparison"](this.ToPrimitive(t),e):this["Abstract Equality Comparison"](t,this.ToPrimitive(e)))},"Strict Equality Comparison":function(t,e){var n=this.Type(t);return n===this.Type(e)&&("Undefined"===n||"Null"===n||t===e)},"Abstract Relational Comparison":function(t,e,n){if("Boolean"!==this.Type(n))throw new o("Assertion failed: LeftFirst argument must be a Boolean");var i,r;if(n?(i=this.ToPrimitive(t,s),r=this.ToPrimitive(e,s)):(r=this.ToPrimitive(e,s),i=this.ToPrimitive(t,s)),!("String"===this.Type(i)&&"String"===this.Type(r))){var a=this.ToNumber(i),u=this.ToNumber(r);
2if(l(a)||l(u))return;return(!f(a)||!f(u)||a!==u)&&((0!==a||0!==u)&&(a!==1/0&&(u===1/0||u!==-1/0&&(a===-1/0||a<u))))}return!g(r,i)&&(!!g(i,r)||i<r)}};t.exports=y},function(t,e,n){"use strict";var i=n(24),r=i("%TypeError%"),o=i("%SyntaxError%"),a=n(38),s={"Property Descriptor":function(t,e){if("Object"!==t.Type(e))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var i in e)if(a(e,i)&&!n[i])return!1;var o=a(e,"[[Value]]"),s=a(e,"[[Get]]")||a(e,"[[Set]]");if(o&&s)throw new r("Property Descriptors may not be both accessor and data descriptors");return!0}};t.exports=function(t,e,n,i){var a=s[e];if("function"!=typeof a)throw new o("unknown record type: "+e);if(!a(t,i))throw new r(n+" must be a "+e)}},function(t,e,n){"use strict";var i=n(24),r=n(38),o=i("%TypeError%");t.exports=function(t,e){if("Object"!==t.Type(e))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var i in e)if(r(e,i)&&!n[i])return!1;if(t.IsDataDescriptor(e)&&t.IsAccessorDescriptor(e))throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}},function(t,e,n){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},function(t,e,n){"use strict";var i=Number.isNaN||function(t){return t!=t};t.exports=Number.isFinite||function(t){return"number"==typeof t&&!i(t)&&t!==1/0&&t!==-1/0}},function(t,e,n){"use strict";t.exports=function(t){return t>=0?1:-1}},function(t,e,n){"use strict";t.exports=function(t,e){var n=t%e;return Math.floor(n>=0?n:n+e)}},function(t,e,n){"use strict";var i=Object.prototype.toString,r=n(121),o=n(39),a=function(t){var e;if((e=arguments.length>1?arguments[1]:"[object Date]"===i.call(t)?String:Number)===String||e===Number){var n,a,s=e===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a<s.length;++a)if(o(t[s[a]])&&(n=t[s[a]](),r(n)))return n;throw new TypeError("No default value")}throw new TypeError("invalid [[DefaultValue]] hint supplied")};t.exports=function(t){return r(t)?t:arguments.length>1?a(t,arguments[1]):a(t)}},function(t,e){t.exports=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t}},function(t,e,n){"use strict";var i=n(23),r=n(24)("%Function%"),o=r.apply,a=r.call;t.exports=function(){return i.apply(a,arguments)},t.exports.apply=function(){return i.apply(o,arguments)}},function(t,e,n){"use strict";var i=n(61),r=n(64);t.exports=function(){var t=r();return i(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t}},function(t,e,n){"use strict";var i=n(39),r=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(t,e,n){for(var i=0,r=t.length;i<r;i++)o.call(t,i)&&(null==n?e(t[i],i,t):e.call(n,t[i],i,t))},s=function(t,e,n){for(var i=0,r=t.length;i<r;i++)null==n?e(t.charAt(i),i,t):e.call(n,t.charAt(i),i,t)},u=function(t,e,n){for(var i in t)o.call(t,i)&&(null==n?e(t[i],i,t):e.call(n,t[i],i,t))};t.exports=function(t,e,n){if(!i(e))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=n),"[object Array]"===r.call(t)?a(t,e,o):"string"==typeof t?s(t,e,o):u(t,e,o)}},function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var i=arguments[e];for(var r in i)n.call(i,r)&&(t[r]=i[r])}return t};var n=Object.prototype.hasOwnProperty},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},r=i(n(66)),o=i(n(242));r.default.DefaultOpts.ImageClass=o.default,t.exports=r.default},function(t,e,n){var i=n(67),r=n(129),o=n(143),a=n(9);t.exports=function(t,e){return(a(t)?i:r)(t,o(e,3))}},function(t,e,n){var i=n(130);t.exports=function(t,e){var n=[];return i(t,(function(t,i,r){e(t,i,r)&&n.push(t)})),n}},function(t,e,n){var i=n(131),r=n(142)(i);t.exports=r},function(t,e,n){var i=n(132),r=n(18);t.exports=function(t,e){return t&&i(t,e,r)}},function(t,e,n){var i=n(133)();t.exports=i},function(t,e){t.exports=function(t){return function(e,n,i){for(var r=-1,o=Object(e),a=i(e),s=a.length;s--;){var u=a[t?s:++r];if(!1===n(o[u],u,o))break}return e}}},function(t,e){t.exports=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}},function(t,e,n){var i=n(19),r=n(13),o="[object Arguments]";t.exports=function(t){return r(t)&&i(t)==o}},function(t,e,n){var i=n(20),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var r=a.call(t);return i&&(e?t[s]=n:delete t[s]),r}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var i=n(19),r=n(43),o=n(13),a={};
vendor: 4,594 bytes, line 2
2a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&r(t.length)&&!!a[i(t)]}},function(t,e,n){var i=n(46),r=n(141),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return r(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var i=n(72)(Object.keys,Object);t.exports=i},function(t,e,n){var i=n(27);t.exports=function(t,e){return function(n,r){if(null==n)return n;if(!i(n))return t(n,r);for(var o=n.length,a=e?o:-1,s=Object(n);(e?a--:++a<o)&&!1!==r(s[a],a,s););return n}}},function(t,e,n){var i=n(144),r=n(187),o=n(53),a=n(9),s=n(198);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?r(t[0],t[1]):i(t):s(t)}},function(t,e,n){var i=n(145),r=n(186),o=n(83);t.exports=function(t){var e=r(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||i(n,t,e)}}},function(t,e,n){var i=n(47),r=n(75),o=1,a=2;t.exports=function(t,e,n,s){var u=n.length,c=u,l=!s;if(null==t)return!c;for(t=Object(t);u--;){var f=n[u];if(l&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++u<c;){var h=(f=n[u])[0],d=t[h],p=f[1];if(l&&f[2]){if(void 0===d&&!(h in t))return!1}else{var _=new i;if(s)var m=s(d,p,h,t,e,_);if(!(void 0===m?r(p,d,o|a,s,_):m))return!1}}return!0}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var i=n(29),r=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():r.call(e,n,1),--this.size,!0)}},function(t,e,n){var i=n(29);t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var i=n(29);t.exports=function(t){return i(this.__data__,t)>-1}},function(t,e,n){var i=n(29);t.exports=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},function(t,e,n){var i=n(28);t.exports=function(){this.__data__=new i,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var i=n(28),r=n(48),o=n(49),a=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof i){var s=n.__data__;if(!r||s.length<a-1)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var i=n(73),r=n(157),o=n(14),a=n(74),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||r(t))&&(i(t)?h:s).test(a(t))}},function(t,e,n){var i,r=n(158),o=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var i=n(8)["__core-js_shared__"];t.exports=i},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var i=n(161),r=n(28),o=n(48);t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||r),string:new i}}},function(t,e,n){var i=n(162),r=n(163),o=n(164),a=n(165),s=n(166);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}u.prototype.clear=i,u.prototype.delete=r,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var i=n(30);t.exports=function(){this.__data__=i?i(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var i=n(30),r="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(i){var n=e[t];return n===r?void 0:n}return o.call(e,t)?e[t]:void 0}},function(t,e,n){var i=n(30),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return i?void 0!==e[t]:r.call(e,t)}},function(t,e,n){var i=n(30),r="__lodash_hash_undefined__";
vendor: 1,109 bytes, line 2
2t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?r:e,this}},function(t,e,n){var i=n(31);t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var i=n(31);t.exports=function(t){return i(this,t).get(t)}},function(t,e,n){var i=n(31);t.exports=function(t){return i(this,t).has(t)}},function(t,e,n){var i=n(31);t.exports=function(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}},function(t,e,n){var i=n(47),r=n(76),o=n(178),a=n(181),s=n(32),u=n(9),c=n(41),l=n(71),f=1,h="[object Arguments]",d="[object Array]",p="[object Object]",_=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,m,v,g){var y=u(t),b=u(e),w=y?d:s(t),x=b?d:s(e),E=(w=w==h?p:w)==p,T=(x=x==h?p:x)==p,P=w==x;if(P&&c(t)){if(!c(e))return!1;y=!0,E=!1}if(P&&!E)return g||(g=new i),y||l(t)?r(t,e,n,m,v,g):o(t,e,w,n,m,v,g);if(!(n&f)){var A=E&&_.call(t,"__wrapped__"),C=T&&_.call(e,"__wrapped__");
vendor: 5,153 bytes, line 2
2if(A||C){var O=A?t.value():t,S=C?e.value():e;return g||(g=new i),v(O,S,n,m,g)}}return!!P&&(g||(g=new i),a(t,e,n,m,v,g))}},function(t,e,n){var i=n(49),r=n(174),o=n(175);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new i;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=r,a.prototype.has=o,t.exports=a},function(t,e){var n="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,n),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var i=n(20),r=n(77),o=n(21),a=n(76),s=n(179),u=n(180),c=1,l=2,f="[object Boolean]",h="[object Date]",d="[object Error]",p="[object Map]",_="[object Number]",m="[object RegExp]",v="[object Set]",g="[object String]",y="[object Symbol]",b="[object ArrayBuffer]",w="[object DataView]",x=i?i.prototype:void 0,E=x?x.valueOf:void 0;t.exports=function(t,e,n,i,x,T,P){switch(n){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case b:return!(t.byteLength!=e.byteLength||!T(new r(t),new r(e)));case f:case h:case _:return o(+t,+e);case d:return t.name==e.name&&t.message==e.message;case m:case g:return t==e+"";case p:var A=s;case v:var C=i&c;if(A||(A=u),t.size!=e.size&&!C)return!1;var O=P.get(t);if(O)return O==e;i|=l,P.set(t,e);var S=a(A(t),A(e),i,x,T,P);return P.delete(t),S;case y:if(E)return E.call(t)==E.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var i=n(78),r=1,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,a,s,u){var c=n&r,l=i(t),f=l.length;if(f!=i(e).length&&!c)return!1;for(var h=f;h--;){var d=l[h];if(!(c?d in e:o.call(e,d)))return!1}var p=u.get(t);if(p&&u.get(e))return p==e;var _=!0;u.set(t,e),u.set(e,t);for(var m=c;++h<f;){var v=t[d=l[h]],g=e[d];if(a)var y=c?a(g,v,d,e,t,u):a(v,g,d,t,e,u);if(!(void 0===y?v===g||s(v,g,n,a,u):y)){_=!1;break}m||(m="constructor"==d)}if(_&&!m){var b=t.constructor,w=e.constructor;b!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w)&&(_=!1)}return u.delete(t),u.delete(e),_}},function(t,e,n){var i=n(15)(n(8),"DataView");t.exports=i},function(t,e,n){var i=n(15)(n(8),"Promise");t.exports=i},function(t,e,n){var i=n(15)(n(8),"Set");t.exports=i},function(t,e,n){var i=n(15)(n(8),"WeakMap");t.exports=i},function(t,e,n){var i=n(82),r=n(18);t.exports=function(t){for(var e=r(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,i(a)]}return e}},function(t,e,n){var i=n(75),r=n(188),o=n(195),a=n(51),s=n(82),u=n(83),c=n(33),l=1,f=2;t.exports=function(t,e){return a(t)&&s(e)?u(c(t),e):function(n){var a=r(n,t);return void 0===a&&a===e?o(n,t):i(e,a,l|f)}}},function(t,e,n){var i=n(84);t.exports=function(t,e,n){var r=null==t?void 0:i(t,e);return void 0===r?n:r}},function(t,e,n){var i=n(190),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=i((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,(function(t,n,i,r){e.push(i?r.replace(o,"$1"):n||t)})),e}));t.exports=a},function(t,e,n){var i=n(191),r=500;t.exports=function(t){var e=i(t,(function(t){return n.size===r&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var i=n(49),r="Expected a function";function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(r);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(o.Cache||i),n}o.Cache=i,t.exports=o},function(t,e,n){var i=n(193);t.exports=function(t){return null==t?"":i(t)}},function(t,e,n){var i=n(20),r=n(194),o=n(9),a=n(52),s=1/0,u=i?i.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return r(e,t)+"";if(a(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-s?"-0":n}},function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}},function(t,e,n){var i=n(196),r=n(197);t.exports=function(t,e){return null!=t&&r(t,e,i)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var i=n(85),r=n(69),o=n(9),a=n(42),s=n(43),u=n(33);t.exports=function(t,e,n){for(var c=-1,l=(e=i(e,t)).length,f=!1;++c<l;){var h=u(e[c]);if(!(f=null!=t&&n(t,h)))break;t=t[h]}return f||++c!=l?f:!!(l=null==t?0:t.length)&&s(l)&&a(h,l)&&(o(t)||r(t))}},function(t,e,n){var i=n(199),r=n(200),o=n(51),a=n(33);t.exports=function(t){return o(t)?i(a(t)):r(t)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var i=n(84);t.exports=function(t){return function(e){return i(e,t)}}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
vendor: 4,418 bytes, line 2
2Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(66)),o=n(202),a=function(){function t(t,e){void 0===e&&(e={}),this._src=t,this._opts=e,this._opts.filters=o(r.default.DefaultOpts.filters)}return t.prototype.maxColorCount=function(t){return this._opts.colorCount=t,this},t.prototype.maxDimension=function(t){return this._opts.maxDimension=t,this},t.prototype.addFilter=function(t){return this._opts.filters.push(t),this},t.prototype.removeFilter=function(t){var e=this._opts.filters.indexOf(t);return e>0&&this._opts.filters.splice(e),this},t.prototype.clearFilters=function(){return this._opts.filters=[],this},t.prototype.quality=function(t){return this._opts.quality=t,this},t.prototype.useImageClass=function(t){return this._opts.ImageClass=t,this},t.prototype.useGenerator=function(t){return this._opts.generator=t,this},t.prototype.useQuantizer=function(t){return this._opts.quantizer=t,this},t.prototype.build=function(){return new r.default(this._src,this._opts)},t.prototype.getPalette=function(t){return this.build().getPalette(t)},t.prototype.getSwatches=function(t){return this.build().getPalette(t)},t}();e.default=a},function(t,e,n){var i=n(203),r=4;t.exports=function(t){return i(t,r)}},function(t,e,n){var i=n(47),r=n(204),o=n(86),a=n(205),s=n(206),u=n(209),c=n(210),l=n(211),f=n(212),h=n(78),d=n(213),p=n(32),_=n(214),m=n(215),v=n(220),g=n(9),y=n(41),b=n(222),w=n(14),x=n(224),E=n(18),T=1,P=2,A=4,C="[object Arguments]",O="[object Function]",S="[object GeneratorFunction]",k="[object Object]",I={};I[C]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[k]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[O]=I["[object WeakMap]"]=!1,t.exports=function t(e,n,R,j,D,M){var L,N=n&T,$=n&P,F=n&A;if(R&&(L=D?R(e,j,D,M):R(e)),void 0!==L)return L;if(!w(e))return e;var B=g(e);if(B){if(L=_(e),!N)return c(e,L)}else{var U=p(e),V=U==O||U==S;if(y(e))return u(e,N);if(U==k||U==C||V&&!D){if(L=$||V?{}:v(e),!N)return $?f(e,s(L,e)):l(e,a(L,e))}else{if(!I[U])return D?e:{};L=m(e,U,N)}}M||(M=new i);var z=M.get(e);if(z)return z;M.set(e,L),x(e)?e.forEach((function(i){L.add(t(i,n,R,i,e,M))})):b(e)&&e.forEach((function(i,r){L.set(r,t(i,n,R,r,e,M))}));var X=F?$?d:h:$?keysIn:E,H=B?void 0:X(e);return r(H||e,(function(i,r){H&&(i=e[r=i]),o(L,r,t(i,n,R,r,e,M))})),L}},function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}},function(t,e,n){var i=n(34),r=n(18);t.exports=function(t,e){return t&&i(e,r(e),t)}},function(t,e,n){var i=n(34),r=n(54);t.exports=function(t,e){return t&&i(e,r(e),t)}},function(t,e,n){var i=n(14),r=n(46),o=n(208),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return o(t);var e=r(t),n=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&n.push(s);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){(function(t){var i=n(8),r=e&&!e.nodeType&&e,o=r&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===r?i.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,i=s?s(n):new t.constructor(n);return t.copy(i),i}}).call(this,n(26)(t))},function(t,e){t.exports=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}},function(t,e,n){var i=n(34),r=n(50);t.exports=function(t,e){return i(t,r(t),e)}},function(t,e,n){var i=n(34),r=n(89);t.exports=function(t,e){return i(t,r(t),e)}},function(t,e,n){var i=n(79),r=n(89),o=n(54);t.exports=function(t){return i(t,o,r)}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,i=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(i.index=t.index,i.input=t.input),i}},function(t,e,n){var i=n(55),r=n(216),o=n(217),a=n(218),s=n(219),u="[object Boolean]",c="[object Date]",l="[object Map]",f="[object Number]",h="[object RegExp]",d="[object Set]",p="[object String]",_="[object Symbol]",m="[object ArrayBuffer]",v="[object DataView]",g="[object Float32Array]",y="[object Float64Array
2]",b="[object Int8Array]",w="[object Int16Array]",x="[object Int32Array]",E="[object Uint8Array]",T="[object Uint8ClampedArray]",P="[object Uint16Array]",A="[object Uint32Array]";t.exports=function(t,e,n){var C=t.constructor;switch(e){case m:return i(t);case u:case c:return new C(+t);case v:return r(t,n);case g:case y:case b:case w:case x:case E:case T:case P:case A:return s(t,n);case l:return new C;case f:case p:return new C(t);case h:return o(t);case d:return new C;case _:return a(t)}}},function(t,e,n){var i=n(55);t.exports=function(t,e){var n=e?i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var i=n(20),r=i?i.prototype:void 0,o=r?r.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},function(t,e,n){var i=n(55);t.exports=function(t,e){var n=e?i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var i=n(221),r=n(90),o=n(46);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:i(r(t))}},function(t,e,n){var i=n(14),r=Object.create,o=function(){function t(){}return function(e){if(!i(e))return{};if(r)return r(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},function(t,e,n){var i=n(223),r=n(44),o=n(45),a=o&&o.isMap,s=a?r(a):i;t.exports=s},function(t,e,n){var i=n(32),r=n(13),o="[object Map]";t.exports=function(t){return r(t)&&i(t)==o}},function(t,e,n){var i=n(225),r=n(44),o=n(45),a=o&&o.isSet,s=a?r(a):i;t.exports=s},function(t,e,n){var i=n(32),r=n(13),o="[object Set]";t.exports=function(t){return r(t)&&i(t)==o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(227);e.MMCQ=i.default,e.WebWorker=null},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=n(40),o=i(n(228)),a=i(n(229));function s(t,e){for(var n=t.size();t.size()<e;){var i=t.pop();if(!(i&&i.count()>0))break;var r=i.split(),o=r[0],a=r[1];if(t.push(o),a&&a.count()>0&&t.push(a),t.size()===n)break;n=t.size()}}e.default=function(t,e){if(0===t.length||e.colorCount<2||e.colorCount>256)throw new Error("Wrong MMCQ parameters");var n=o.default.build(t),i=n.hist,u=(Object.keys(i).length,new a.default((function(t,e){return t.count()-e.count()})));u.push(n),s(u,.75*e.colorCount);var c=new a.default((function(t,e){return t.count()*t.volume()-e.count()*e.volume()}));return c.contents=u.contents,s(c,e.colorCount-c.size()),function(t){var e=[];for(;t.size();){var n=t.pop(),i=n.avg();i[0],i[1],i[2];e.push(new r.Swatch(i,n.count()))}return e}(c)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(25),r=function(){function t(t,e,n,i,r,o,a){this._volume=-1,this._count=-1,this.dimension={r1:t,r2:e,g1:n,g2:i,b1:r,b2:o},this.hist=a}return t.build=function(e,n){var r,o,a,s,u,c,l,f,h,d=1<<3*i.SIGBITS,p=new Uint32Array(d);r=a=u=0,o=s=c=Number.MAX_VALUE;for(var _=e.length/4,m=0;m<_;){var v=4*m;if(m++,l=e[v+0],f=e[v+1],h=e[v+2],0!==e[v+3])l>>=i.RSHIFT,f>>=i.RSHIFT,h>>=i.RSHIFT,p[i.getColorIndex(l,f,h)]+=1,l>r&&(r=l),l<o&&(o=l),f>a&&(a=f),f<s&&(s=f),h>u&&(u=h),h<c&&(c=h)}return new t(o,r,s,a,c,u,p)},t.prototype.invalidate=function(){this._volume=this._count=-1,this._avg=null},t.prototype.volume=function(){if(this._volume<0){var t=this.dimension,e=t.r1,n=t.r2,i=t.g1,r=t.g2,o=t.b1,a=t.b2;this._volume=(n-e+1)*(r-i+1)*(a-o+1)}return this._volume},t.prototype.count=function(){if(this._count<0){for(var t=this.hist,e=this.dimension,n=e.r1,r=e.r2,o=e.g1,a=e.g2,s=e.b1,u=e.b2,c=0,l=n;l<=r;l++)for(var f=o;f<=a;f++)for(var h=s;h<=u;h++){c+=t[i.getColorIndex(l,f,h)]}this._count=c}return this._count},t.prototype.clone=function(){var e=this.hist,n=this.dimension;return new t(n.r1,n.r2,n.g1,n.g2,n.b1,n.b2,e)},t.prototype.avg=function(){if(!this._avg){var t=this.hist,e=this.dimension,n=e.r1,r=e.r2,o=e.g1,a=e.g2,s=e.b1,u=e.b2,c=0,l=1<<8-i.SIGBITS,f=void 0,h=void 0,d=void 0;f=h=d=0;for(var p=n;p<=r;p++)for(var _=o;_<=a;_++)for(var m=s;m<=u;m++){var v=t[i.getColorIndex(p,_,m)];c+=v,f+=v*(p+.5)*l,h+=v*(_+.5)*l,d+=v*(m+.5)*l}this._avg=c?[~~(f/c),~~(h/c),~~(d/c)]:[~~(l*(n+r+1)/2),~~(l*(o+a+1)/2),~~(l*(s+u+1)/2)]}return this._avg},t.prototype.contains=function(t){var e=t[0],n=t[1],r=t[2],o=this.dimension,a=o.r1,s=o.r2,u=o.g1,c=o.g2,l=o.b1,f=o.b2;return e>>=i.RSHIFT,n>>=i.RSHIFT,r>>=i.RSHIFT,e>=a&&e<=s&&n>=u&&n<=c&&r>=l&&r<=f},t.prototype.split=function(){var t=this.hist,e=this.dimension,n=e.r1,r=e.r2,o=e.g1,a=e.g2,s=e.b1,u=e.b2,c=this.count();if(!c)return[];if(1===c)return[this.clone()];var l,f,h=r-n+1,d=a-o+1,p=u-s+1,_=Math.max(h,d,p),m=null;l=f=0;var v=null;if(_===h){v="r",m=new Uint32Array(r+1);for(var g=n;g<=r;g++){l=0;for(var y=o;y<=a;y++)for(var b=s;b<=u;b++){l+=t[i.getColorIndex(g,y,b)]}f+=l,m[g]=f}}else if(_===d){v="g",m=new Uint32Array(a+1);for(y=o;y<=a;y++){l=0;for(g=n;g<=r;g++)for(b=s;b<=u;b++){l+=t[i.getColorIndex(g,y,b)]}f+=l,m[y]=f}}else{v="b",m=new Uint32Array(u+1);for(b=s;b<=u;b++){l=0;for(g=n;g<=r;g++)for(y=o;y<=a;y++){l+=t[i.getColorIndex(g,y,b)]}f+=l,m[b]=f}}for(var w=-1,x=new Uint32Array(m.length),E=0;E<m.length;E++){var T=m[E];w<0&&T>f/2&&(w=E),x[E]=f-T}var P=this;return function(t){var e=t+"1",n=t+"2",i=P.dimension[e],r=P.dimension[n],o=P.clone(),a=P.clone(),s=w-i,u=r-w;
2for(s<=u?(r=Math.min(r-1,~~(w+u/2)),r=Math.max(0,r)):(r=Math.max(i,~~(w-1-s/2)),r=Math.min(P.dimension[n],r));!m[r];)r++;for(var c=x[r];!c&&m[r-1];)c=x[--r];return o.dimension[n]=r,a.dimension[e]=r+1,[o,a]}(v)},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this._comparator=t,this.contents=[],this._sorted=!1}return t.prototype._sort=function(){this._sorted||(this.contents.sort(this._comparator),this._sorted=!0)},t.prototype.push=function(t){this.contents.push(t),this._sorted=!1},t.prototype.peek=function(t){return this._sort(),t="number"==typeof t?t:this.contents.length-1,this.contents[t]},t.prototype.pop=function(){return this._sort(),this.contents.pop()},t.prototype.size=function(){return this.contents.length},t.prototype.map=function(t){return this._sort(),this.contents.map(t)},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(231);e.Default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(40),r=n(25),o=n(91),a={targetDarkLuma:.26,maxDarkLuma:.45,minLightLuma:.55,targetLightLuma:.74,minNormalLuma:.3,targetNormalLuma:.5,maxNormalLuma:.7,targetMutesSaturation:.3,maxMutesSaturation:.4,targetVibrantSaturation:1,minVibrantSaturation:.35,weightSaturation:3,weightLuma:6.5,weightPopulation:.5};function s(t,e,n,i,r,o,a,s,u,c){var l=null,f=0;return e.forEach((function(e){var h=e.getHsl(),d=h[1],p=h[2];if(d>=s&&d<=u&&p>=r&&p<=o&&!function(t,e){return t.Vibrant===e||t.DarkVibrant===e||t.LightVibrant===e||t.Muted===e||t.DarkMuted===e||t.LightMuted===e}(t,e)){var _=function(t,e,n,i,r,o,a){function s(t,e){return 1-Math.abs(t-e)}return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=0,r=0;r<t.length;r+=2){var o=t[r],a=t[r+1];n+=o*a,i+=a}return n/i}(s(t,e),a.weightSaturation,s(n,i),a.weightLuma,r/o,a.weightPopulation)}(d,a,p,i,e.getPopulation(),n,c);(null===l||_>f)&&(l=e,f=_)}})),l}e.default=function(t,e){e=o({},e,a);var n=function(t){var e=0;return t.forEach((function(t){e=Math.max(e,t.getPopulation())})),e}(t),u=function(t,e,n){var i={};return i.Vibrant=s(i,t,e,n.targetNormalLuma,n.minNormalLuma,n.maxNormalLuma,n.targetVibrantSaturation,n.minVibrantSaturation,1,n),i.LightVibrant=s(i,t,e,n.targetLightLuma,n.minLightLuma,1,n.targetVibrantSaturation,n.minVibrantSaturation,1,n),i.DarkVibrant=s(i,t,e,n.targetDarkLuma,0,n.maxDarkLuma,n.targetVibrantSaturation,n.minVibrantSaturation,1,n),i.Muted=s(i,t,e,n.targetNormalLuma,n.minNormalLuma,n.maxNormalLuma,n.targetMutesSaturation,0,n.maxMutesSaturation,n),i.LightMuted=s(i,t,e,n.targetLightLuma,n.minLightLuma,1,n.targetMutesSaturation,0,n.maxMutesSaturation,n),i.DarkMuted=s(i,t,e,n.targetDarkLuma,0,n.maxDarkLuma,n.targetMutesSaturation,0,n.maxMutesSaturation,n),i}(t,n,e);return function(t,e,n){if(null===t.Vibrant&&null===t.DarkVibrant&&null===t.LightVibrant){if(null===t.DarkVibrant&&null!==t.DarkMuted){var o=t.DarkMuted.getHsl(),a=o[0],s=o[1],u=o[2];u=n.targetDarkLuma,t.DarkVibrant=new i.Swatch(r.hslToRgb(a,s,u),0)}if(null===t.LightVibrant&&null!==t.LightMuted){var c=t.LightMuted.getHsl();a=c[0],s=c[1],u=c[2];u=n.targetDarkLuma,t.DarkVibrant=new i.Swatch(r.hslToRgb(a,s,u),0)}}if(null===t.Vibrant&&null!==t.DarkVibrant){var l=t.DarkVibrant.getHsl();a=l[0],s=l[1],u=l[2];u=n.targetNormalLuma,t.Vibrant=new i.Swatch(r.hslToRgb(a,s,u),0)}else if(null===t.Vibrant&&null!==t.LightVibrant){var f=t.LightVibrant.getHsl();a=f[0],s=f[1],u=f[2];u=n.targetNormalLuma,t.Vibrant=new i.Swatch(r.hslToRgb(a,s,u),0)}if(null===t.DarkVibrant&&null!==t.Vibrant){var h=t.Vibrant.getHsl();a=h[0],s=h[1],u=h[2];u=n.targetDarkLuma,t.DarkVibrant=new i.Swatch(r.hslToRgb(a,s,u),0)}if(null===t.LightVibrant&&null!==t.Vibrant){var d=t.Vibrant.getHsl();a=d[0],s=d[1],u=d[2];u=n.targetLightLuma,t.LightVibrant=new i.Swatch(r.hslToRgb(a,s,u),0)}if(null===t.Muted&&null!==t.Vibrant){var p=t.Vibrant.getHsl();a=p[0],s=p[1],u=p[2];u=n.targetMutesSaturation,t.Muted=new i.Swatch(r.hslToRgb(a,s,u),0)}if(null===t.DarkMuted&&null!==t.DarkVibrant){var _=t.DarkVibrant.getHsl();a=_[0],s=_[1],u=_[2];u=n.targetMutesSaturation,t.DarkMuted=new i.Swatch(r.hslToRgb(a,s,u),0)}if(null===t.LightMuted&&null!==t.LightVibrant){var m=t.LightVibrant.getHsl();a=m[0],s=m[1],u=m[2];u=n.targetMutesSaturation,t.LightMuted=new i.Swatch(r.hslToRgb(a,s,u),0)}}(u,0,e),u}},function(t,e,n){var i=n(53),r=n(233),o=n(235);t.exports=function(t,e){return o(r(t,e,i),t+"")}},function(t,e,n){var i=n(234),r=Math.max;t.exports=function(t,e,n){return e=r(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=r(o.length-e,0),u=Array(s);++a<s;)u[a]=o[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=o[a];return c[e]=n(u),i(t,this,c)}}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var i=n(236),r=n(238)(i);t.exports=r},function(t,e,n){var i=n(237),r=n(88),o=n(53),a=r?function(t,e){return r(t,"toString",{configurable:!0,enumerable:!1,value:i(e),writable:!0})}:o;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var n=800,i=16,r=Date.now;t.exports=function(t){var e=0,o=0;return function(){var a=r(),s=i-(a-o);if(o=a,s>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var i=n(21),r=n(27),o=n(42),a=n(14);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?r(n)&&o(e,n.length):"string"==s&&e in n)&&i(n[e],t)}},function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});var i=n(241);e.Default=i.default,e.combineFilters=function(t){return Array.isArray(t)&&0!==t.length?function(e,n,i,r){if(0===r)return!1;for(var o=0;o<t.length;o++)if(!t[o](e,n,i,r))return!1;return!0}:null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i){return i>=125&&!(t>250&&e>250&&n>250)}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var a=n(243),s=o(n(244));var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._initCanvas=function(){var t=this.image,e=this._canvas=document.createElement("canvas"),n=this._context=e.getContext("2d");e.className="vibrant-canvas",e.style.display="none",this._width=e.width=t.width,this._height=e.height=t.height,n.drawImage(t,0,0),document.body.appendChild(e)},e.prototype.load=function(t){var e,n,i,r,o,a,u=this,c=null,l=null;if("string"==typeof t)c=document.createElement("img"),o=t,null===(a=s.parse(o)).protocol&&null===a.host&&null===a.port||(e=window.location.href,n=t,i=s.parse(e),r=s.parse(n),i.protocol===r.protocol&&i.hostname===r.hostname&&i.port===r.port)||(c.crossOrigin="anonymous"),l=c.src=t;else{if(!(t instanceof HTMLImageElement))return Promise.reject(new Error("Cannot load buffer as an image in browser"));c=t,l=t.src}return this.image=c,new Promise((function(t,e){var n=function(){u._initCanvas(),t(u)};c.complete?n():(c.onload=n,c.onerror=function(t){return e(new Error("Fail to load image: "+l))})}))},e.prototype.clear=function(){this._context.clearRect(0,0,this._width,this._height)},e.prototype.update=function(t){this._context.putImageData(t,0,0)},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.resize=function(t,e,n){var i=this._canvas,r=this._context,o=this.image;this._width=i.width=t,this._height=i.height=e,r.scale(n,n),r.drawImage(o,0,0)},e.prototype.getPixelCount=function(){return this._width*this._height},e.prototype.getImageData=function(){return this._context.getImageData(0,0,this._width,this._height)},e.prototype.remove=function(){this._canvas&&this._canvas.parentNode&&this._canvas.parentNode.removeChild(this._canvas)},e}(a.ImageBase);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.prototype.scaleDown=function(t){var e=this.getWidth(),n=this.getHeight(),i=1;if(t.maxDimension>0){var r=Math.max(e,n);r>t.maxDimension&&(i=t.maxDimension/r)}else i=1/t.quality;i<1&&this.resize(e*i,n*i,i)},t.prototype.applyFilter=function(t){var e=this.getImageData();if("function"==typeof t)for(var n=e.data,i=n.length/4,r=void 0,o=0;o<i;o++)t(n[(r=4*o)+0],n[r+1],n[r+2],n[r+3])||(n[r+3]=0);return Promise.resolve(e)},t}();e.ImageBase=i},function(t,e,n){"use strict";var i=n(245),r=n(246);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=y,e.resolve=function(t,e){return y(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?y(t,!1,!0).resolveObject(e):e},e.format=function(t){r.isString(t)&&(t=y(t));return t instanceof o?t.format():o.prototype.format.call(t)},e.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),h=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(247);function y(t,e,n){if(t&&r.isObject(t)&&t instanceof o)return t;var i=new o;return i.parse(t,e,n),i}o.prototype.parse=function(t,e,n){if(!r.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),s=-1!==o&&o<t.indexOf("#")?"?":"#",c=t.split(s);c[0]=c[0].replace(/\\/g,"/");var y=t=c.join(s);if(y=y.trim(),!n&&1===t.split("#").length){var b=u.exec(y);if(b)return this.path=y,this.href=y,this.pathname=b[1],b[2]?(this.search=b[2],this.query=e?g.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var w=a.exec(y);if(w){var x=(w=w[0]).toLowerCase();this.protocol=x,y=y.substr(w.length)}if(n||w||y.match(/^\/\/[^@\/]+@[^@\/]+/)){var E="//"===y.substr(0,2);!E||w&&m[w]||(y=y.substr(2),this.slashes=!0)}if(!m[w]&&(E||w&&!v[w])){for(var T,P,A=-1,C=0;C<h.length;C++){-1!==(O=y.indexOf(h[C]))&&(-1===A||O<A)&&(A=O)}-1!==(P=-1===A?y.lastIndexOf("@"):y.lastIndexOf("@",A))&&(T=y.slice(0,P),y=y.slice(P+1),this.auth=decodeURIComponent(T)),A=-1;for(C=0;C<f.length;C++){var O;-1!==(O=y.indexOf(f[C]))&&(-1===A||O<A)&&(A=O)}-1===A&&(A=y.length),this.host=y.slice(0,A),y=y.slice(A),this.parseHost(),this.hostname=this.hostname||"";var S="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!S)for(var k=this.hostname.split(/\./),I=(C=0,k.length);C<I;C++){var R=k[C];if(R&&!R.match(d)){for(var j="",D=0,M=R.length;D<M;
vendor: 5,442 bytes, line 2
2D++)R.charCodeAt(D)>127?j+="x":j+=R[D];if(!j.match(d)){var L=k.slice(0,C),N=k.slice(C+1),$=R.match(p);$&&(L.push($[1]),N.unshift($[2])),N.length&&(y="/"+N.join(".")+y),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),S||(this.hostname=i.toASCII(this.hostname));var F=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+F,this.href+=this.host,S&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!_[x])for(C=0,I=l.length;C<I;C++){var U=l[C];if(-1!==y.indexOf(U)){var V=encodeURIComponent(U);V===U&&(V=escape(U)),y=y.split(U).join(V)}}var z=y.indexOf("#");-1!==z&&(this.hash=y.substr(z),y=y.slice(0,z));var X=y.indexOf("?");if(-1!==X?(this.search=y.substr(X),this.query=y.substr(X+1),e&&(this.query=g.parse(this.query)),y=y.slice(0,X)):e&&(this.search="",this.query={}),y&&(this.pathname=y),v[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var H=this.search||"";this.path=F+H}return this.href=this.format(),this},o.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",i=this.hash||"",o=!1,a="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&r.isObject(this.query)&&Object.keys(this.query).length&&(a=g.stringify(this.query));var s=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||v[e])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),i&&"#"!==i.charAt(0)&&(i="#"+i),s&&"?"!==s.charAt(0)&&(s="?"+s),e+o+(n=n.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(s=s.replace("#","%23"))+i},o.prototype.resolve=function(t){return this.resolveObject(y(t,!1,!0)).format()},o.prototype.resolveObject=function(t){if(r.isString(t)){var e=new o;e.parse(t,!1,!0),t=e}for(var n=new o,i=Object.keys(this),a=0;a<i.length;a++){var s=i[a];n[s]=this[s]}if(n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),c=0;c<u.length;c++){var l=u[c];"protocol"!==l&&(n[l]=t[l])}return v[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(t.protocol&&t.protocol!==n.protocol){if(!v[t.protocol]){for(var f=Object.keys(t),h=0;h<f.length;h++){var d=f[h];n[d]=t[d]}return n.href=n.format(),n}if(n.protocol=t.protocol,t.host||m[t.protocol])n.pathname=t.pathname;else{for(var p=(t.pathname||"").split("/");p.length&&!(t.host=p.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var _=n.pathname||"",g=n.search||"";n.path=_+g}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),b=t.host||t.pathname&&"/"===t.pathname.charAt(0),w=b||y||n.host&&t.pathname,x=w,E=n.pathname&&n.pathname.split("/")||[],T=(p=t.pathname&&t.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(T&&(n.hostname="",n.port=null,n.host&&(""===E[0]?E[0]=n.host:E.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===p[0]?p[0]=t.host:p.unshift(t.host)),t.host=null),w=w&&(""===p[0]||""===E[0])),b)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,E=p;else if(p.length)E||(E=[]),E.pop(),E=E.concat(p),n.search=t.search,n.query=t.query;else if(!r.isNullOrUndefined(t.search)){if(T)n.hostname=n.host=E.shift(),(S=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=S.shift(),n.host=n.hostname=S.shift());return n.search=t.search,n.query=t.query,r.isNull(n.pathname)&&r.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var P=E.slice(-1)[0],A=(n.host||t.host||E.length>1)&&("."===P||".."===P)||""===P,C=0,O=E.length;O>=0;O--)"."===(P=E[O])?E.splice(O,1):".."===P?(E.splice(O,1),C++):C&&(E.splice(O,1),C--);if(!w&&!x)for(;C--;C)E.unshift("..");!w||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),A&&"/"!==E.join("/").substr(-1)&&E.push("");var S,k=""===E[0]||E[0]&&"/"===E[0].charAt(0);T&&(n.hostname=n.host=k?"":E.length?E.shift():"",(S=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=S.shift(),n.host=n.hostname=S.shift()));return(w=w||n.host&&E.length)&&!k&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),r.isNull(n.pathname)&&r.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var t=this.host,e=s.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,n){(function(t,i){var r;!function(o){e&&e.nodeType,t&&t.nodeType;var a="object"==typeof i&&i;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,c=36,l=1,f=26,h=38,d=700,p=72,_=128,m="-",v=/^xn--/,g=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >
2= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=c-l,x=Math.floor,E=String.fromCharCode;function T(t){throw new RangeError(b[t])}function P(t,e){for(var n=t.length,i=[];n--;)i[n]=e(t[n]);return i}function A(t,e){var n=t.split("@"),i="";return n.length>1&&(i=n[0]+"@",t=n[1]),i+P((t=t.replace(y,".")).split("."),e).join(".")}function C(t){for(var e,n,i=[],r=0,o=t.length;r<o;)(e=t.charCodeAt(r++))>=55296&&e<=56319&&r<o?56320==(64512&(n=t.charCodeAt(r++)))?i.push(((1023&e)<<10)+(1023&n)+65536):(i.push(e),r--):i.push(e);return i}function O(t){return P(t,(function(t){var e="";return t>65535&&(e+=E((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=E(t)})).join("")}function S(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function k(t,e,n){var i=0;for(t=n?x(t/d):t>>1,t+=x(t/e);t>w*f>>1;i+=c)t=x(t/w);return x(i+(w+1)*t/(t+h))}function I(t){var e,n,i,r,o,a,s,h,d,v,g,y=[],b=t.length,w=0,E=_,P=p;for((n=t.lastIndexOf(m))<0&&(n=0),i=0;i<n;++i)t.charCodeAt(i)>=128&&T("not-basic"),y.push(t.charCodeAt(i));for(r=n>0?n+1:0;r<b;){for(o=w,a=1,s=c;r>=b&&T("invalid-input"),((h=(g=t.charCodeAt(r++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:c)>=c||h>x((u-w)/a))&&T("overflow"),w+=h*a,!(h<(d=s<=P?l:s>=P+f?f:s-P));s+=c)a>x(u/(v=c-d))&&T("overflow"),a*=v;P=k(w-o,e=y.length+1,0==o),x(w/e)>u-E&&T("overflow"),E+=x(w/e),w%=e,y.splice(w++,0,E)}return O(y)}function R(t){var e,n,i,r,o,a,s,h,d,v,g,y,b,w,P,A=[];for(y=(t=C(t)).length,e=_,n=0,o=p,a=0;a<y;++a)(g=t[a])<128&&A.push(E(g));for(i=r=A.length,r&&A.push(m);i<y;){for(s=u,a=0;a<y;++a)(g=t[a])>=e&&g<s&&(s=g);for(s-e>x((u-n)/(b=i+1))&&T("overflow"),n+=(s-e)*b,e=s,a=0;a<y;++a)if((g=t[a])<e&&++n>u&&T("overflow"),g==e){for(h=n,d=c;!(h<(v=d<=o?l:d>=o+f?f:d-o));d+=c)P=h-v,w=c-v,A.push(E(S(v+P%w,0))),h=x(P/w);A.push(E(S(h,0))),o=k(n,b,i==r),n=0,++i}++n,++e}return A.join("")}s={version:"1.4.1",ucs2:{decode:C,encode:O},decode:I,encode:R,toASCII:function(t){return A(t,(function(t){return g.test(t)?"xn--"+R(t):t}))},toUnicode:function(t){return A(t,(function(t){return v.test(t)?I(t.slice(4).toLowerCase()):t}))}},void 0===(r=function(){return s}.call(e,n,e,t))||(t.exports=r)}()}).call(this,n(26)(t),n(12))},function(t,e,n){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e,n){"use strict";e.decode=e.parse=n(248),e.encode=e.stringify=n(249)},function(t,e,n){"use strict";function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,o){e=e||"&",n=n||"=";var a={};if("string"!=typeof t||0===t.length)return a;var s=/\+/g;t=t.split(e);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var c=t.length;u>0&&c>u&&(c=u);for(var l=0;l<c;++l){var f,h,d,p,_=t[l].replace(s,"%20"),m=_.indexOf(n);m>=0?(f=_.substr(0,m),h=_.substr(m+1)):(f=_,h=""),d=decodeURIComponent(f),p=decodeURIComponent(h),i(a,d)?r(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";var i=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,s){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?o(a(t),(function(a){var s=encodeURIComponent(i(a))+n;return r(t[a])?o(t[a],(function(t){return s+encodeURIComponent(i(t))})).join(e):s+encodeURIComponent(i(t[a]))})).join(e):s?encodeURIComponent(i(s))+n+encodeURIComponent(i(t)):""};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var n=[],i=0;i<t.length;i++)n.push(e(t[i],i));return n}var a=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(2)),o=i(n(56)),a=i(n(22)),s=function(){function t(t,e){this._$container=t,this._$button=t.find(".js-project-gallery__button"),this._clipPath=new o.default(e,t),this._videoId=this._$button.data("video-id"),this._videoPlatform=this._$button.data("video-platform")}return t.prototype.init=function(){return new Promise((function(t,e){t()}))},t.prototype.show=function(){var e=this;return new Promise((function(n,i){var r=e._$container,o=e._clipPath,a=e._createTweenArgs(r);r.addClass("is-visible"),o.tween(a[0],a[1],t.SHOW_DURATION).then((function(){e._addEvent(),n()})).catch((function(t){i(t)}))}))},t.prototype.hide=function(){var e=this;return new Promise((function(n,i){var r=e._$container,o=e._clipPath,a=e._createTweenArgs(r,!0);e._removeEvent(),o.tween(a[0],a[1],t.HIDE_DURATION).then((function(){return r.removeClass("is-visible"),e.init(
2)})).then((function(){n()})).catch((function(t){i(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){var i=t._clipPath;t.hide().then((function(){return i.exit()})).then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype._addEvent=function(){var t=this._$button,e=this._videoId,n=this._videoPlatform;t.on("click",(function(){return a.default.load(e,n).then((function(){a.default.show()})),!1}))},t.prototype._removeEvent=function(){this._$button.off("click")},t.prototype._createTweenArgs=function(t,e){void 0===e&&(e=!1);var n=t.outerWidth()+8,i=t.outerHeight()+8,r={x:-4,y:-4,width:0,height:i},o={x:-4,y:-4,width:n,height:i};return e&&(r.width=n,o.width=0),[r,o]},t.SHOW_DURATION=r.default.INDEX_INTERVAL/8,t.HIDE_DURATION=r.default.INDEX_INTERVAL/8,t}();e.default=s},function(t,e,n){"use strict";n.r(e),function(t,n){function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var r=void 0!==t&&"[object global]"==={}.toString.call(t);function o(t,e){return 0===t.indexOf(e.toLowerCase())?t:"".concat(e.toLowerCase()).concat(t.substr(0,1).toUpperCase()).concat(t.substr(1))}function a(t){return/^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(t)}function s(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.id,i=e.url,r=n||i;if(!r)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(t=r,!isNaN(parseFloat(t))&&isFinite(t)&&Math.floor(t)==t)return"https://vimeo.com/".concat(r);if(a(r))return r.replace("http:","https:");if(n)throw new TypeError("â".concat(n,"â is not a valid video id."));throw new TypeError("â".concat(r,"â is not a vimeo.com url."))}var u=void 0!==Array.prototype.indexOf,c="undefined"!=typeof window&&void 0!==window.postMessage;if(!(r||u&&c))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var l="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};!function(t){if(!t.WeakMap){var e=Object.prototype.hasOwnProperty,n=function(t,e,n){Object.defineProperty?Object.defineProperty(t,e,{configurable:!0,writable:!0,value:n}):t[e]=n};t.WeakMap=function(){function t(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(n(this,"_id","_WeakMap"+"_"+o()+"."+o()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function r(t,n){if(!i(t)||!e.call(t,"_id"))throw new TypeError(n+" method called on incompatible receiver "+typeof t)}function o(){return Math.random().toString().substring(2)}return n(t.prototype,"delete",(function(t){if(r(this,"delete"),!i(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)&&(delete t[this._id],!0)})),n(t.prototype,"get",(function(t){if(r(this,"get"),i(t)){var e=t[this._id];return e&&e[0]===t?e[1]:void 0}})),n(t.prototype,"has",(function(t){if(r(this,"has"),!i(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)})),n(t.prototype,"set",(function(t,e){if(r(this,"set"),!i(t))throw new TypeError("Invalid value used as weak map key");var o=t[this._id];return o&&o[0]===t?(o[1]=e,this):(n(t,this._id,[t,e]),this)})),n(t,"_polyfill",!0),t}()}function i(t){return Object(t)===t}}("undefined"!=typeof self?self:"undefined"!=typeof window?window:l);var f=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t){var e,i,r;r=function(){var t,e,i,r=Object.prototype.toString,o=void 0!==n?function(t){return n(t)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(t,e,n,i){return Object.defineProperty(t,e,{value:n,writable:!0,configurable:!1!==i})}}catch(e){t=function(t,e,n){return t[e]=n,t}}function a(t,n){i.add(t,n),e||(e=o(i.drain))}function s(t){var e,n=typeof t;return null==t||"object"!=n&&"function"!=n||(e=t.then),"function"==typeof e&&e}function u(){for(var t=0;t<this.chain.length;t++)c(this,1===this.state?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function c(t,e,n){var i,r;try{!1===e?n.reject(t.msg):(i=!0===e?t.msg:e.call(void 0,t.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(r=s(i))?r.call(i,n.resolve,n.reject):n.resolve(i)}catch(t){n.reject(t)}}function l(t){var e,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(e=s(t))?a((function(){var i=new d(n);try{e.call(t,(function(){l.apply(i,arguments)}),(function(){f.apply(i,arguments)}))}catch(t){f.call(i,t)}})):(n.msg=t,n.state=1,n.chain.length>
vendor: 6,627 bytes, line 2
20&&a(u,n))}catch(t){f.call(new d(n),t)}}}function f(t){var e=this;e.triggered||(e.triggered=!0,e.def&&(e=e.def),e.msg=t,e.state=2,e.chain.length>0&&a(u,e))}function h(t,e,n,i){for(var r=0;r<e.length;r++)!function(r){t.resolve(e[r]).then((function(t){n(r,t)}),i)}(r)}function d(t){this.def=t,this.triggered=!1}function p(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function _(t){if("function"!=typeof t)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var e=new p(this);this.then=function(t,n){var i={success:"function"!=typeof t||t,failure:"function"==typeof n&&n};return i.promise=new this.constructor((function(t,e){if("function"!=typeof t||"function"!=typeof e)throw TypeError("Not a function");i.resolve=t,i.reject=e})),e.chain.push(i),0!==e.state&&a(u,e),i.promise},this.catch=function(t){return this.then(void 0,t)};try{t.call(void 0,(function(t){l.call(e,t)}),(function(t){f.call(e,t)}))}catch(t){f.call(e,t)}}i=function(){var t,n,i;function r(t,e){this.fn=t,this.self=e,this.next=void 0}return{add:function(e,o){i=new r(e,o),n?n.next=i:t=i,n=i,i=void 0},drain:function(){var i=t;for(t=n=e=void 0;i;)i.fn.call(i.self),i=i.next}}}();var m=t({},"constructor",_,!1);return _.prototype=m,t(m,"__NPO__",0,!1),t(_,"resolve",(function(t){return t&&"object"==typeof t&&1===t.__NPO__?t:new this((function(e,n){if("function"!=typeof e||"function"!=typeof n)throw TypeError("Not a function");e(t)}))})),t(_,"reject",(function(t){return new this((function(e,n){if("function"!=typeof e||"function"!=typeof n)throw TypeError("Not a function");n(t)}))})),t(_,"all",(function(t){var e=this;return"[object Array]"!=r.call(t)?e.reject(TypeError("Not an array")):0===t.length?e.resolve([]):new e((function(n,i){if("function"!=typeof n||"function"!=typeof i)throw TypeError("Not a function");var r=t.length,o=Array(r),a=0;h(e,t,(function(t,e){o[t]=e,++a===r&&n(o)}),i)}))})),t(_,"race",(function(t){var e=this;return"[object Array]"!=r.call(t)?e.reject(TypeError("Not an array")):new e((function(n,i){if("function"!=typeof n||"function"!=typeof i)throw TypeError("Not a function");h(e,t,(function(t,e){n(e)}),i)}))})),_},(i=l)[e="Promise"]=i[e]||r(),t.exports&&(t.exports=i[e])})),h=new WeakMap;function d(t,e,n){var i=h.get(t.element)||{};e in i||(i[e]=[]),i[e].push(n),h.set(t.element,i)}function p(t,e){return(h.get(t.element)||{})[e]||[]}function _(t,e,n){var i=h.get(t.element)||{};if(!i[e])return!0;if(!n)return i[e]=[],h.set(t.element,i),!0;var r=i[e].indexOf(n);return-1!==r&&i[e].splice(r,1),h.set(t.element,i),i[e]&&0===i[e].length}var m=["autopause","autoplay","background","byline","color","controls","dnt","height","id","loop","maxheight","maxwidth","muted","playsinline","portrait","responsive","speed","texttrack","title","transparent","url","width"];function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return m.reduce((function(e,n){var i=t.getAttribute("data-vimeo-".concat(n));return(i||""===i)&&(e[n]=""===i?1:i),e}),e)}function g(t,e){var n=t.html;if(!e)throw new TypeError("An element must be provided");if(null!==e.getAttribute("data-vimeo-initialized"))return e.querySelector("iframe");var i=document.createElement("div");return i.innerHTML=n,e.appendChild(i.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((function(i,r){if(!a(t))throw new TypeError("â".concat(t,"â is not a vimeo.com url."));var o="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(t));for(var s in e)e.hasOwnProperty(s)&&(o+="&".concat(s,"=").concat(encodeURIComponent(e[s])));var u="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;u.open("GET",o,!0),u.onload=function(){if(404!==u.status)if(403!==u.status)try{var e=JSON.parse(u.responseText);if(403===e.domain_status_code)return g(e,n),void r(new Error("â".concat(t,"â is not embeddable.")));i(e)}catch(t){r(t)}else r(new Error("â".concat(t,"â is not embeddable.")));else r(new Error("â".concat(t,"â was not found.")))},u.onerror=function(){var t=u.status?" (".concat(u.status,")"):"";r(new Error("There was an error fetching the embed code from Vimeo".concat(t,".")))},u.send()}))}function b(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return{}}return t}function w(t,e,n){if(t.element.contentWindow&&t.element.contentWindow.postMessage){var i={method:e};void 0!==n&&(i.value=n);var r=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));r>=8&&r<10&&(i=JSON.stringify(i)),t.element.contentWindow.postMessage(i,t.origin)}}function x(t,e){var n,i=[];if((e=b(e)).event){if("error"===e.event)p(t,e.data.method).forEach((function(n){var i=new Error(e.data.message);i.name=e.data.name,n.reject(i),_(t,e.data.method,n)}));i=p(t,"event:".concat(e.event)),n=e.data}else if(e.method){var r=function(t,e){var n=p(t,e);if(n.length<1)return!1;var i=n.shift();return _(t,e,i),i}(t,e.method);r&&(i.push(r),n=e.value)}i.forEach((function(e){try{if("function"==typeof e)return void e.call(t,n);e.resolve(n)}catch(t){}}))}var E=new WeakMap,T=new WeakMap,P=function(){function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn,e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!function(t){return Boolean(t&&1===t.nodeType&&"nodeName"in t&&t.ownerDocument&&t.ownerDocument.defaultView)}(e))throw new TypeError("You must pass either a valid element or a valid id.");var r=e.ownerDocument.defaultView;if("IFRAME"!==e.nodeName){var o=e.querySelector("iframe");o&&(e=o)}if("IFRAME"===e.nodeName&&!a(e.getAttribute("src")||""))throw new Error("The player element passed isnât a Vimeo embed.");if(E.has(e))return E.get(e);this.element=e,this.origin="*";var u=new f((function(t,o){var u=function(e){if(a(e.origin)&&n.element.contentWindow===e.source){"*"===n.origin&&(n.origin=e.origin);var i=b(e.data);if(i&&"error"===i.event&&i.data&&"ready"===i.data.method){var r=new Error(i.data.message);return r.name=i.data.name,void o(r)}var s=i&&"ready"===i.event,u=i&&"ping"===i.method;if(s||u)return n.element.setAttribute("data-ready","true"),void t();x(n,i)}};if(r.addEventListener?r.addEventListener("message",u,!1):r.attachEvent&&r.attachEvent("onmessage",u),"IFRAME"!==n.element.nodeName){var c=v(e,i
2);y(s(c),c,e).then((function(t){var i,r,o,a=g(t,e);return n.element=a,n._originalElement=e,i=e,r=a,o=h.get(i),h.set(r,o),h.delete(i),E.set(n.element,n),t})).catch(o)}}));return T.set(this,u),E.set(this.element,this),"IFRAME"===this.element.nodeName&&w(this,"ping"),this}var e,n,r;return e=t,(n=[{key:"callMethod",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new f((function(i,r){return e.ready().then((function(){d(e,t,{resolve:i,reject:r}),w(e,t,n)})).catch(r)}))}},{key:"get",value:function(t){var e=this;return new f((function(n,i){return t=o(t,"get"),e.ready().then((function(){d(e,t,{resolve:n,reject:i}),w(e,t)})).catch(i)}))}},{key:"set",value:function(t,e){var n=this;return new f((function(i,r){if(t=o(t,"set"),null==e)throw new TypeError("There must be a value to set.");return n.ready().then((function(){d(n,t,{resolve:i,reject:r}),w(n,t,e)})).catch(r)}))}},{key:"on",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(!e)throw new TypeError("You must pass a callback function.");if("function"!=typeof e)throw new TypeError("The callback must be a function.");0===p(this,"event:".concat(t)).length&&this.callMethod("addEventListener",t).catch((function(){})),d(this,"event:".concat(t),e)}},{key:"off",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(e&&"function"!=typeof e)throw new TypeError("The callback must be a function.");_(this,"event:".concat(t),e)&&this.callMethod("removeEventListener",t).catch((function(t){}))}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=T.get(this)||new f((function(t,e){e(new Error("Unknown player. Probably unloaded."))}));return f.resolve(t)}},{key:"addCuePoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:t,data:e})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,e){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:e})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var t=this;return new f((function(e){T.delete(t),E.delete(t.element),t._originalElement&&(E.delete(t._originalElement),t._originalElement.removeAttribute("data-vimeo-initialized")),t.element&&"IFRAME"===t.element.nodeName&&t.element.parentNode&&t.element.parentNode.removeChild(t.element),e()}))}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getColor",value:function(){return this.get("color")}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"setMuted",value:function(t){return this.set("muted",t)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(t){return this.set("playbackRate",t)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}}])&&i(e.prototype,n),r&&i(e,r),t}();r||(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=[].slice.call(t.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(t){"console"in window&&console.error};e.forEach((function(t){try{if(null!==t.getAttribute("data-vimeo-defer"))return;var e=v(t);y(s(e),e,t).then((function(e){return g(e,t)})).catch(n)}catch(t){n()}}))}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var e=function(e){if(a(e.origin)&&e.data&&"spacechange"===e.data.event)for(var n=t.querySelectorAll("iframe"),i=0;i<n.length;i++)if(n[i].contentWindow===e.source){n[i].parentElement.style.paddingBottom="".concat(e.data.data[0].bottom,"px");break}};window.addEventListener?window.addEventListener("message",e,!1):window.attachEvent&&window.attachEvent("onmessage",e)}}()),e.default=P}.call(this,n(12),n(252).setImmediate)},function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(r.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(253),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(12))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,o,a,s,u=1,c={},l=!1,f=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){p(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},i=function(t){o.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(r=f.documentElement,i=function(t){var e=f.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):i=function(t){setTimeout(p,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),i=function(e){t.postMessage(
vendor: 4,944 bytes, line 2
2a+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return c[u]=r,i(u),u++},h.clearImmediate=d}function d(t){delete c[t]}function p(t){if(l)setTimeout(p,0,t);else{var e=c[t];if(e){l=!0;try{!function(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(n,i)}}(e)}finally{d(t),l=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(12),n(254))},function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var t=s(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function _(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new p(t,e)),1!==c.length||l||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=_,r.addListener=_,r.once=_,r.off=_,r.removeListener=_,r.removeAllListeners=_,r.emit=_,r.prependListener=_,r.prependOnceListener=_,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(1)),s=function(t){function e(e){var n=this;return(n=t.call(this,e)||this)._isMute=!1,n}return r(e,t),e.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container;t._removeEvent(),i.removeClass("is-visible"),i.removeClass("is-mute"),e()}))},Object.defineProperty(e.prototype,"isMute",{get:function(){return this._isMute},set:function(t){var e=this._$container;t?e.addClass("is-mute"):e.removeClass("is-mute"),this._isMute=t},enumerable:!0,configurable:!0}),e.prototype._addEvent=function(){var t=this;this._$container.on("click",(function(e){return t.isMute=!t._isMute,a.default(t).trigger(e,t._isMute),!1}))},e.prototype._removeEvent=function(){this._$container.off("click")},e}(o(n(94)).default);e.default=s},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(1)),s=function(t){function e(e){var n=this;return(n=t.call(this,e)||this)._isFullScreen=!1,n}return r(e,t),e.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container;t._removeEvent(),i.removeClass("is-visible"),i.removeClass("is-full-screen"),e()}))},Object.defineProperty(e.prototype,"isFullScreen",{get:function(){return this._isFullScreen},set:function(t){var e=this._$container;t?e.addClass("is-full-screen"):e.removeClass("is-full-screen"),this._isFullScreen=t},enumerable:!0,configurable:!0}),e.prototype._addEvent=function(){var t=this;this._$container.on("click",(function(e){return t.isFullScreen=!t._isFullScreen,a.default(t).trigger(e,t._isFullScreen),!1}))},e.prototype._removeEvent=function(){this._$container.off("click")},e}(o(n(94)).default);e.default=s},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(t){this._$container=t,this._$totalTime=t.find(".js-movie-player__total-time"),this._$elapsedTime=t.find(".js-movie-player__elapsed-time")}return t.prototype.init=function(){return new Promise((function(t,e){t()}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){t._addEvent(),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$elapsedTime;t._removeEvent(),i.css({width:"0"}),e()}))},t.prototype.exit=function(){return new Promise((function(t,e){t()}))},t.prototype.update=function(t,e){var n=this._$elapsedTime,i=this._$totalTime,r=t/e*Number(i.innerWidth());n.css({width:r+"px"})},t.prototype._addEvent=function(){var t=this,e=this._$container;e.on("click",(function(n){var i=Number(e.innerWidth()),o=Number(n.offsetX/i);return r.default(t).trigger(n,o),!1}))},t.prototype._removeEvent=function(){this._$container.off("click")},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this._timerId=0,this._mouseMoveId=0,this._$container=t}return t.prototype.init=function(){return new Promise((function(t,e){t()}))},t.prototype.exit=function(){return new Promise((function(t,e){t()}))},t.prototype.start=function(){var t=this;return new Promise((function(e,n){t._addEvent(),t._start(),e()}))},t.prototype.stop=function(){var t=this;return new Promise((function(e,n){t._removeEvent(),t._stop(),t._timerId=0,t._mouseMoveId=0,e()}))},t.prototype._show=function(){var t=this;return new Promise((function(e,n){var i=t._$container;i.hasClass("is-hidden")&&i.removeClass("is-hidden"),e()}))},t.prototype._hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container;i.hasClass("is-hidden")||i.addClass("is-hidden"),e()}))},t.prototype._start=function(){var e=this;this._timerId=window.setTimeout((function(){e._hide()}),t.INTERVAL)},t.prototype._stop=function(){this._show(),clearTimeout(this._timerId),clearTimeout(this._mouseMoveId)},t.prototype._addEvent=function(){var t=this,e=this._$container,n=!0;e.on("mousemove",(function(){n&&(t._stop(),n=!1),clearTimeout(t._mouseMoveId),t._mouseMoveId=window.setTimeout((function(){t._start(),n=!0}),500)}))},t.prototype._removeEvent=function(){this._$container.off("mousemove")},t.INTERVAL=3e3,t}();e.default=i},function(t,e,n){"use strict";var i=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{u(i.next(t))}catch(t){o(t)}}function s(t){try{u(i.throw(t))}catch(t){o(t)}}function u(t){t.done?r(t.value):new n((function(e){e(t.value)})).then(a,s)}u((i=i.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(1)),s=o(n(95)),u=o(n(5)),c=o(n(4)),l=o(n(7)),f=o(n(22)),h=o(n(260)),d=o(n(270)),p=o(n(277)),_=o(n(286)),m=o(n(292)),v=o(n(302)),g=o(n(312)),y=o(n(316)),b=o(n(321)),w=o(n(325)),x=function(){function t(){this._views=new Array,this._current=""}return t.prototype.init=function(){var t=this;return new Promise((function(e,n){for(var o=t,u=[new h.default,new d.default,new p.default,new g.default,new _.default,new m.default,new v.default,new y.default,new b.default,new w.default],l=t._views,f=new Array,x=[{name:"default",beforeAppear:function(t){return i(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,l[t.current.namespace].onBeforeAppear(t)];case 1:return e.sent(),[2]}}))}))},appear:function(t){return i(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return o._current=t.next.namespace,[4,l[t.current.namespace].onAppear(t).then((function(){c.default.current=o._getDirectory(),a.default(window).scrollTop(0)}))];case 1:return e.sent(),[2]}}))}))},afterAppear:function(t){return i(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,l[t.current.namespace].onAfterAppear(t)];case 1:return e.sent(),[2]}}))}))},before:function(t){return i(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,l[t.current.namespace].onBefore(t)];case 1:return e.sent(),[2]}}))}))},leave:function(t){return i(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return c.default.isVisibleNavigation&&c.default.toggleNavigation(),[4,l[t.current.namespace].onLeave(t).then((function(){c.default.current=o._getDirectory(),a.default(window).scrollTop(0)}))];case 1:return e.sent(),[2]}}))}))},enter:function(t){return i(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return o._current=t.next.namespace,[4,l[t.next.namespace].onEnter(t)];case 1:return e.sent(),[2]}}))}))},after:function(t){return i(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,l[t.next.namespace].onAfter(t).then((function(){ga("set","page",window.location.pathname),ga("send","pageview")}))];case 1:return e.sent(),[2]}}))}))}}],E=0;E<u.length;E++){var T=u[E];f.push(T.init()),l[T.namespace]=T}Promise.all(f).then((function(){s.default.init({timeout:5e3,transitions:x}),t._addEvent(),e()})).catch((function(t){n(t)}))}))},t.prototype._addEvent=function(){var t=this,e=a.default(window),n=a.default(":root"),i=this._views,r=0,o=!0;e.on("resize",(function(){var e=document.body.clientWidth,a=window.innerHeight,s=t._current;n[0].style.setProperty("--vw",e+"px"),n[0].style.setProperty("--vh",a+"px"),o&&(i[s].onBeforeResize(e,a),c.default.onBeforeResize(e,a),o=!1),clearTimeout(r),r=setTimeout((function(){i[s].onAfterResize(e,a),c.default.onAfterResize(e,a),u.default.resize(e,a),l.default.resize(e,a),f.default.resize(e,a),o=!0}),500)}))},t.prototype._removeEvent=function(){a.default(window).off("resize")},t.prototype._getDirectory=function(){return location.pathname.split("/")[1]},t}();e.default=x},function(t,e,n){"use strict";
2var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(1)),s=o(n(95)),u=o(n(2)),c=o(n(10)),l=o(n(5)),f=o(n(7)),h=o(n(4)),d=o(n(261)),p=o(n(262)),_=o(n(266)),m=o(n(269)),v=function(t){function e(e){void 0===e&&(e="page-index");var n=this;return(n=t.call(this,e)||this)._projects=new d.default,n._background=new p.default,n._head=new m.default,n._foot=new _.default,n}return r(e,t),e.prototype.onLeave=function(t){var e=this;return new Promise((function(t,n){var i=e._projects,r=e._background,o=e._foot,a=e._head;e._removeEvent(),i.exit().then((function(){return Promise.all([a.hide(),o.hide(),r.hide()])})).then((function(){return f.default.show()})).then((function(){return Promise.all([a.exit(),o.exit(),r.exit()])})).then((function(){h.default.show(),t()})).catch((function(t){n(t)}))}))},e.prototype.onEnter=function(t){var n=this;return new Promise((function(i,r){n._$container=a.default(t.next.container),n._$hitArea=n._$container.find(".js-index__hit-area");var o=n._$container,s=o.find(".js-index__background"),c=o.find(".js-index__foot"),f=o.find(".js-index__head"),d=a.default("#json_projects"),p=JSON.parse(d.html()),_=n._projects,m=n._background,v=n._foot,g=n._head;u.default.isMobile&&o.css({height:window.innerHeight}),Promise.all([h.default.hide(),l.default.show()]).then((function(){return l.default.update(e.BACKGROUND_COLOR)})).then((function(){return Promise.all([_.init(p),m.init(s,p),v.init(c,p),g.init(f),l.default.hide()])})).then((function(){i()})).catch((function(t){r(t)}))}))},e.prototype.onAfter=function(t){var e=this;return new Promise((function(t,n){var i=e._projects,r=e._background,o=e._foot,a=e._head;f.default.hide().then((function(){return Promise.all([r.show(),o.show(),a.show()])})).then((function(){e._update(i.current),e._addEvent(),i.start(),t()})).catch((function(t){n(t)}))}))},e.prototype.onBeforeResize=function(t,e){u.default.isMobile||this._$container.remove()},e.prototype.onAfterResize=function(t,e){u.default.isMobile||location.reload()},e.prototype._update=function(t){var e=this._projects,n=this._background,i=this._foot;e.isBusy||(e.isBusy=!0,Promise.all([n.update(t),i.update(t)]).then((function(){e.isBusy=!1})))},e.prototype._addEvent=function(){var t=this,e=this._projects,n=this._foot,i=this._$hitArea;a.default(e).on(d.default.ON_UPDATED,(function(e,n){t._update(n)})),a.default(n).on("click",(function(t,n){e.update(n)})),i.on("click",(function(){u.default.isMobile?h.default.toggleNavigation():s.default.go("projects")}))},e.prototype._removeEvent=function(){var t=this._projects,e=this._foot,n=this._$hitArea;a.default(t).off(d.default.ON_UPDATED),a.default(e).off("click"),n.off("click")},e.BACKGROUND_COLOR=u.default.DEFAULT_DOMINANT_COLOR_DARK,e}(c.default);e.default=v},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(2)),a=function(){function t(){this._data=new Array,this._current=0,this._startTime=0,this._animationFrameId=0,this._isBusy=!1}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._data=t,n()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t.stop(),t._data=[],t._current=0,t._startTime=0,t._animationFrameId=0,t._isBusy=!1,e()}))},t.prototype.update=function(e){var n=this;return new Promise((function(i,o){var a=n._isBusy?n._current:e;n.stop(),n._current=a,n.start(),r.default(n).trigger(t.ON_UPDATED,[a]),i()}))},t.prototype.start=function(){var t=this;this._animationFrameId=window.requestAnimationFrame((function(e){t._startTime=e,t._update()}))},t.prototype.stop=function(){window.cancelAnimationFrame(this._animationFrameId)}
2,Object.defineProperty(t.prototype,"current",{get:function(){return this._current},set:function(t){this._current=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBusy",{get:function(){return this._isBusy},set:function(t){this._isBusy=t},enumerable:!0,configurable:!0}),t.prototype._next=function(){this.stop(),++this._current,this._current>=this._data.length&&(this._current=0),this.update(this._current)},t.prototype._previous=function(){this.stop(),--this._current,this._current<0&&(this._current=this._data.length),this.update(this._current)},t.prototype._update=function(){var t=this,e=this._startTime;this._animationFrameId=window.requestAnimationFrame((function(n){n-e>=o.default.INDEX_INTERVAL?t._next():t._update()}))},t.ON_UPDATED="onUpdated",t}();e.default=a},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(2)),o=i(n(96)),a=i(n(263)),s=i(n(265)),u=function(){function t(){r.default.isMobile?this._image=new o.default:this._image=new a.default,this._video=new s.default,this._current=0}return t.prototype.init=function(t,e){var n=this;return new Promise((function(i,r){var o=n._image,a=n._video;n._$container=t,n._data=e,Promise.all([o.init(t,e),a.init(t,e)]).then((function(){i()})).catch((function(t){r(t)}))}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){t._$container.removeClass("is-hidden"),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){t._$container.addClass("is-hidden"),e()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){var i=t._image,r=t._video;Promise.all([i.exit(),r.exit()]).then((function(){t._data=[],t._current=0,e()}))}))},t.prototype.update=function(t){var e=this;return new Promise((function(n,i){var r=e._image,o=e._video,a=e._data[e._current],s=e._data[t];switch(s.format){case"image":r.update(s.images).then((function(){e._current=t,n()})).catch((function(t){i(t)}));break;case"video":o.update(s.video).then((function(){"image"==a.format?r.hide().then((function(){e._current=t,n()})):(e._current=t,n())})).catch((function(t){i(t)}))}}))},t}();e.default=u},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(1)),s=o(n(37)),u=n(11),c=o(n(96)),l=o(n(264)),f=function(t){function e(){var e=this;return(e=t.call(this)||this)._imageProps={src:"",width:0,height:0,horizontalOrigin:0,verticalOrigin:0},e._attacks=l.default.ATTACKS,e._animationFrameId=0,e._apply=0,e._attack=l.default.START_ATTACK,e._effectId=l.default.EFFECT_DEFAULT_ID,e._lastEffectId=l.default.EFFECT_DEFAULT_ID,e._isAttacking=!1,e._isVisible=!1,e._tween=new u.TweenLite({},0,{}),e._args=l.default.getArgs(e._effectId),e}return r(e,t),e.prototype.init=function(t,n){var i=this;return new Promise((function(r,o){i._$container=t,i._sources=n[0].images,i._preloadImages(n).then((function(){i._canvas=i._createCanvas(e.FRAGMENT_SHADER),i._sandbox=new s.default(i._canvas,{backgroundColor:"rgb( 0, 0, 0 )"}),i._sandbox.loadTexture(i._changeImage().src),i._sandbox.pause(),t.append(a.default(i._canvas)),r()})).catch((function(t){o(t)}))}))},e.prototype._update=function(){var t=this;this._animationFrameId=window.requestAnimationFrame((function(){var e=t._sandbox,n=t._apply,i=t._attack;if(n>l.default.STOP_ATTACK){if(t._isAttacking=!0,n<i){var r=t._attacks,o=Math.floor(Math.random()*r.length);t._effectId=t._changeEffect(),t._args=l.default.getArgs(t._effectId),t._attack-=r[o]}}else t._isAttacking&&(t._isAttacking=!1,t._effectId=t._changeEffect(!0),t._lastEffectId=t._effectId,t._args=l.default.getArgs(t._effectId));var a=t._args,s=t._effectId,u=t._imageProps;e.setUniform("u_effectId",s),e.setUniform("u_sourceResolution",u.width,u.height),e.setUniform("u_sourceOrigin",u.horizontalOrigin,u.verticalOrigin),e.setUniform("u_apply",n),e.setUniform("u_attack",l.default.STOP_ATTACK),e.setUniform("u_fringe",a.fringe),e.setUniform("u_displacement",a.displacementX,a.displacementY),e.setUniform("u_gridScale",a.gridScaleX,a.gridScaleY),e.setUniform("u_noiseScale",a.noiseScaleX,a.noiseScaleY),e.setUniform("u_noiseVelocity",a.noiseVelocity),e.setUniform("u_offsetScale",a.offsetScale),e.setUniform("u_vignetteScale",a.vignetteScale),t._update()}))},e.FRAGMENT_SHADER="index_background_advanced.frag",e}(c.default);e.default=f},function(t,e,n){"use strict";
2var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var s=o(n(1)),u=a(n(36)),c=o(n(2)),l=o(n(97)),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.setupGui=function(){this._gui=new u.GUI;var t=this._gui,n=this._args;t.add(n,"displacementX",e.DISPLACEMENT_X_MIN,e.DISPLACEMENT_X_MAX,.001).listen(),t.add(n,"displacementY",e.DISPLACEMENT_Y_MIN,e.DISPLACEMENT_Y_MAX,.001).listen(),t.add(n,"fringe",0,1,.001).listen(),t.add(n,"gridScaleX",e.GRID_SCALE_X_MIN,e.GRID_SCALE_X_MAX,1).listen(),t.add(n,"gridScaleY",e.GRID_SCALE_Y_MIN,e.GRID_SCALE_Y_MAX,1).listen(),t.add(n,"noiseScaleX",e.NOISE_SCALE_X_MIN,e.NOISE_SCALE_X_MAX,.001).listen(),t.add(n,"noiseScaleY",e.NOISE_SCALE_Y_MIN,e.NOISE_SCALE_Y_MAX,.001).listen(),t.add(n,"noiseVelocity",e.NOISE_VELOCITY_MIN,e.NOISE_VELOCITY_MAX,.001).listen(),t.add(n,"offsetScale",0,1,.001).listen(),t.add(n,"vignetteScale",e.VIGNETTE_SCALE_MIN,e.VIGNETTE_SCALE_MAX,.001).listen(),s.default(t.domElement).css({position:"fixed",right:0,bottom:48}),s.default(t.domElement).parent().css({"z-index":1e3})},e._createArgs=function(t){this._initArgs();var e=this._args;switch(t){case 0:e.displacementX=0,e.displacementY=0,e.noiseScaleX=0,e.noiseScaleY=0;break;case 1:case 2:break;case 3:e.gridScaleX=Math.floor(3*Math.random()+2),e.gridScaleY=Math.floor(4*Math.random()+1),e.displacementX=l.default.DISPLACEMENT_X_MAX*Math.random()/e.gridScaleX,e.displacementY=l.default.DISPLACEMENT_Y_MAX*Math.random()/e.gridScaleY,e.fringe=l.default.FRINGE_DEFAULT*e.gridScaleX;break;case 4:break;case 5:e.displacementX=.008,e.noiseScaleX=6,e.noiseScaleY=0;break;case 6:e.gridScaleX=Math.floor(3*Math.random()+2),e.gridScaleY=Math.floor(4*Math.random()+1),e.displacementX=0,e.displacementY=0,e.noiseScaleX=0,e.noiseScaleY=0,e.offsetScale=.5}},e._initArgs=function(){var t=this._args;t.displacementX=e.DISPLACEMENT_X_DEFAULT,t.displacementY=e.DISPLACEMENT_Y_DEFAULT,t.fringe=e.FRINGE_DEFAULT,t.gridScaleX=e.GRID_SCALE_X_DEFAULT,t.gridScaleY=e.GRID_SCALE_Y_DEFAULT,t.noiseScaleX=e.NOISE_SCALE_X_DEFAULT,t.noiseScaleY=e.NOISE_SCALE_Y_DEFAULT,t.noiseVelocity=e.NOISE_VELOCITY_DEFAULT,t.offsetScale=e.OFFSET_SCALE_DEFAULT,t.vignetteScale=e.VIGNETTE_SCALE_DEFAULT},e.INTERVAL=c.default.INDEX_INTERVAL,e.START_ATTACK=1,e.STOP_ATTACK=.875,e.ATTACKS=[1/16,1/32],e.EFFECT_LENGTH=8,e.EFFECT_DEFAULT_ID=0,e.EFFECT_CLEAR_ID=-1,e.DISPLACEMENT_X_DEFAULT=.125,e.DISPLACEMENT_X_MAX=.5,e.DISPLACEMENT_X_MIN=0,e.DISPLACEMENT_Y_DEFAULT=.125,e.DISPLACEMENT_Y_MAX=.5,e.DISPLACEMENT_Y_MIN=0,e.FRINGE_DEFAULT=.008,e.GRID_SCALE_X_DEFAULT=32,e.GRID_SCALE_X_MAX=256,e.GRID_SCALE_X_MIN=1,e.GRID_SCALE_Y_DEFAULT=32,e.GRID_SCALE_Y_MAX=256,e.GRID_SCALE_Y_MIN=1,e.NOISE_SCALE_X_DEFAULT=1.5,e.NOISE_SCALE_X_MAX=16,e.NOISE_SCALE_X_MIN=0,e.NOISE_SCALE_Y_DEFAULT=1.5,e.NOISE_SCALE_Y_MAX=16,e.NOISE_SCALE_Y_MIN=0,e.NOISE_VELOCITY_DEFAULT=.125,e.NOISE_VELOCITY_MAX=8,e.NOISE_VELOCITY_MIN=0,e.OFFSET_SCALE_DEFAULT=.0625,e.VIGNETTE_SCALE_DEFAULT=1.5,e.VIGNETTE_SCALE_MAX=4,e.VIGNETTE_SCALE_MIN=0,e._args={displacementX:0,displacementY:0,fringe:0,gridScaleX:0,gridScaleY:0,noiseScaleX:0,noiseScaleY:0,noiseVelocity:0,offsetScale:0,vignetteScale:0},e}(l.default);e.default=f},function(t,e,n){"use strict";var i=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{u(i.next(t))}catch(t){o(t)}}function s(t){try{u(i.throw(t))}catch(t){o(t)}}function u(t){t.done?r(t.value):new n((function(e){e(t.value)})).then(a,s)}u((i=i.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]}
2,trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(1)),s=o(n(98)),u=function(){function t(){this._players={}}return t.prototype.init=function(t,e){var n=this;return new Promise((function(o,s){return i(n,void 0,void 0,(function(){var n,i,u,c;return r(this,(function(l){switch(l.label){case 0:this._$container=t,this._$holder=a.default("<div></div>").addClass("background__movie-holder"),this._$holder.appendTo(t),n=this._players,i=function(t){var i,o;return r(this,(function(r){switch(r.label){case 0:return"video"!==e[t].format?[3,2]:(i=e[t].video.videoId,o=e[t].video.platform,[4,u._createMoviePlayer(i,o).then((function(t){n[i]=t})).catch((function(t){s(t)}))]);case 1:r.sent(),r.label=2;case 2:return[2]}}
2))},u=this,c=0,l.label=1;case 1:return c<e.length?[5,i(c)]:[3,4];case 2:l.sent(),l.label=3;case 3:return c++,[3,1];case 4:return o(),[2]}}))}))}))},t.prototype.show=function(t){var e=this;return new Promise((function(n,i){e._players[t].show().then((function(){n()})).catch((function(t){i(t)}))}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){for(var i=t._players,r=new Array,o=0,a=Object.keys(i);o<a.length;o++){var s=i[a[o]];r.push(s.hide())}Promise.all(r).then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){for(var i=t._$holder,r=t._players,o=new Array,a=0,s=Object.keys(r);a<s.length;a++){var u=r[s[a]];o.push(u.exit())}Promise.all(o).then((function(){t._players={},i.remove(),e()})).catch((function(t){n(t)}))}))},t.prototype.update=function(t){var e=this;return new Promise((function(n,i){e.hide().then((function(){return e.show(t.videoId)})).then((function(){n()})).catch((function(t){i(t)}))}))},t.prototype._createMoviePlayer=function(t,e){var n=this;return new Promise((function(i,r){var o=n._$holder,u=a.default("<div></div>").addClass("background__movie-player"),c="js-index__background-movie--"+t,l=new s.default(u,c);o.append(u),l.init(t,e).then((function(){i(l)})).catch((function(t){r(t)}))}))},t}();e.default=u},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(267)),a=i(n(268)),s=function(){function t(){this._projectName=new o.default,this._bullets=new a.default}return t.prototype.init=function(t,e){var n=this;return new Promise((function(i,r){var o=t.find(".js-index__project-bullets"),a=t.find(".js-index__project-name"),s=n._bullets,u=n._projectName;n._$container=t,n._data=e,Promise.all([u.init(a),s.init(o,e.length)]).then((function(){i()})).catch((function(t){r(t)}))}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._projectName;i.addClass("is-visible"),Promise.all([r.show()]).then((function(){t._addEvent(),e()}))}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._projectName;t._removeEvent(),Promise.all([r.hide()]).then((function(){i.removeClass("is-visible"),e()}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){var i=t._bullets,r=t._projectName;Promise.all([i.exit(),r.exit()]).then((function(){t._data=[],e()}))}))},t.prototype.update=function(t){var e=this;return new Promise((function(n,i){var r=e._data,o=e._bullets,a=e._projectName;Promise.all([o.update(t),a.update(r[t])]).then((function(){n()}))}))},t.prototype._addEvent=function(){var t=this,e=this._bullets;r.default(e).on("click",(function(e,n){r.default(t).trigger(e,[n])}))},t.prototype._removeEvent=function(){var t=this._bullets;r.default(t).off("click")},t}();e.default=s},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=n(11),a=i(n(2)),s=function(){function t(){}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t,n()}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){t._$container.addClass("is-visible"),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){t._$container.removeClass("is-visible"),e()}))},t.prototype.exit=function(){return new Promise((function(t,e){t()}))},t.prototype.update=function(t){var e=this;return new Promise((function(n,i){var o=e._$container.find("a"),a=t.name,s=new Array;o.empty(),o.attr({href:t.permalink});for(var u=0;u<a.length;u++){var c=r.default("<span></span>");c.text(a.charAt(u)),c.css({color:"transparent"}),o.append(c),s.push(e._createTimeline(c))}Promise.all(s).then((function(){n()}))}))},t.prototype._createTimeline=function(t){return new Promise((function(e,n){for(var i={alpha:0},r=a.default.INDEX_INTERVAL/64/1e3,s=new o.TimelineMax({delay:Math.floor(4*Math.random())*r,paused:!0,onComplete:function(){e()}}),u=0;u<4;u++)s.add(o.TweenLite.to(i,r,{alpha:0,ease:o.Power0.ease,onStart:function(){i.alpha=1},onUpdate:function(){t.css({"background-color":"rgba(255, 255, 255, "+String(i.alpha)+")"})},onComplete:function(){t.css({"background-color":""}),t.css({color:""})}}));s.play()}))},t}();e.default=s},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(){}return t.prototype.init=function(t,e){var n=this;return new Promise((function(i,o){n._$container=t;for(var a=function(e){var i=n._createBullet();i.on("click",(function(t){return r.default(n).trigger(t,[e]),!1})),t.append(i)},s=0;s<e;s++)a(s);i()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){var i=t._$container;i.children("li").each((function(t,e){r.default(e).off("click")})),i.empty(),e()}))},t.prototype.update=function(t){var e=this;return new Promise((function(n,i){for(var o=e._$container.find(".projects__bullet"),a=0;a<o.length;a++){var s=r.default(o[a]);s.hasClass("is-selected")&&s.removeClass("is-selected")}o.eq(t).addClass("is-selected"),n()}))},t.prototype._createBullet=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=document.createElementNS("http://www.w3.org/2000/svg","use");e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#svg_bullet");var n=r.default("<li></li>"),i=r.default(t),o=r.default(e);return i.attr({viewBox:"0 0 24 24",version:"1.1"}),o.attr({x:10,y:10,width:4,height:4}),i.append(o),n.append(i),n.addClass("projects__bullet"),n},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t,e._$logotype=t.find(".js-index__logotype"),e._$name=t.find(".js-index__name"),n()}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){var i=t._$container;t._$logotype,t._$name;i.addClass("is-visible"),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container;t._$logotype,t._$name;i.removeClass("is-visible"),e()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._$container,t._$logotype,t._$name;e()}))},t.prototype._addEvent=function(){},t.prototype._removeEvent=function(){},t}();e.default=i},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(1)),s=o(n(17)),u=o(n(2)),c=o(n(10)),l=o(n(99)),f=o(n(5)),h=o(n(4)),d=o(n(7)),p=o(n(271)),_=o(n(273)),m=o(n(275)),v=o(n(276)),g=function(t){function e(e){void 0===e&&(e="archive-project");var n=t.call(this,e)||this;return n._projects=new p.default,n._items=new _.default,n._terms=new m.default,n._message=new v.default,n._anchorLink=new l.default,n._isBusy=!1,n}return r(e,t),e.prototype.onLeave=function(t){var e=this;return new Promise((function(t,n){var i=e._projects,r=e._items,o=e._terms,a=e._message,u=e._anchorLink;e._removeEvent(),Promise.all([i.hide(),o.hide(),r.hide(),a.hide(),u.hide(),h.default.clearBackground()]).then((function(){return d.default.show()})).then((function(){return Promise.all([i.exit(),r.exit(),o.exit(),a.exit(),u.exit()])})).then((function(){s.default.abort(),e._isBusy=!1,t()})).catch((function(t){n(t)}))}))},e.prototype.onEnter=function(t){var n=this;return new Promise((function(i,r){n._$container=a.default(t.next.container);var o=a.default(".js-projects__projects"),s=a.default(".js-projects__items"),u=a.default(".js-projects__terms"),c=a.default(".js-projects__message"),l=a.default(".js-anchor-link"),d=n._projects,p=n._items,_=n._terms,m=n._message,v=n._anchorLink;Promise.all([d.init(o),p.init(s),_.init(u),m.init(c),v.init(l),f.default.show()]).then((function(){return f.default.update(e.BACKGROUND_COLOR)})).then((function(){f.default.hide(),h.default.fillBackground(),i()})).catch((function(t){r(t)}))}))},e.prototype.onAfter=function(t){var e=this;return new Promise((function(t,n){var i=e._projects,r=(e._items,e._terms),o=e._anchorLink;d.default.hide().then((function(){return Promise.all([i.show(),r.show(),o.show()])}
2)).then((function(){i.loadMovies(),e._addEvent(),t()})).catch((function(t){n(t)}))}))},e.prototype.onBeforeResize=function(t,e){var n=this._items,i=this._projects;n.onBeforeResize(t,e),i.onBeforeResize(t,e)},e.prototype.onAfterResize=function(t,e){var n=this._items,i=this._projects;n.onAfterResize(t,e),i.onAfterResize(t,e)},e.prototype._addEvent=function(){var t=this,e=this._terms;this._message;a.default(e).on("click",(function(e){t._updateItems()}))},e.prototype._removeEvent=function(){var t=this._terms;this._message;a.default(t).off("click")},e.prototype._updateItems=function(){var t=this;return this._isBusy?Promise.resolve():new Promise((function(e,n){var i=t._items,r=t._terms,o=t._message;t._isBusy=!0,o.isVisible&&o.hide(),r.disable().then((function(){return r.getTaxonomies()})).then((function(t){return i.update(t)})).then((function(){r.enable(),t._isBusy=!1,e()})).catch((function(e){n(e),t._clearItems()}))}))},e.prototype._clearItems=function(){var t=this;return new Promise((function(e,n){var i=t._items,r=t._terms,o=t._message;i.clear().then((function(){r.clear(),r.enable(),o.show(),t._isBusy=!1,e()})).catch((function(t){n(t)}))}))},e.BACKGROUND_COLOR=u.default.DEFAULT_DOMINANT_COLOR_LIGHT,e}(c.default);e.default=g},function(t,e,n){"use strict";var i=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{u(i.next(t))}catch(t){o(t)}}function s(t){try{u(i.throw(t))}catch(t){o(t)}}function u(t){t.done?r(t.value):new n((function(e){e(t.value)})).then(a,s)}u((i=i.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(1)),s=o(n(272)),u=function(){function t(){this._$container={},this._projects=new Array}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t,e._projects=e._createProject();for(var r=e._projects,o=new Array,a=0;a<r.length;a++){var s=r[a];o.push(s.init())}Promise.all(o).then((function(){n()})).catch((function(t){i(t)}))}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._projects,o=new Array;i.addClass("is-visible");for(var a=0;a<r.length;a++){var s=r[a];o.push(s.show())}Promise.all(o).then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){for(var i=t._$container,r=t._projects,o=new Array,a=0;a<r.length;a++){var s=r[a];o.push(s.hide())}Promise.all(o).then((function(){i.removeClass("is-visible"),e()})).catch((function(t){n(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){for(var i=t._projects,r=new Array,o=0;o<i.length;o++){var a=i[o];r.push(a.exit())}Promise.all(r).then((function(){t._projects=[],e()})).catch((function(t){n(t)}))}))},t.prototype.loadMovies=function(){var t=this;return new Promise((function(e,n){return i(t,void 0,void 0,(function(){var t,n;return r(this,(function(i){switch(i.label){case 0:t=this._projects,n=0,i.label=1;case 1:return n<t.length?[4,t[n].loadMovie()]:[3,4];case 2:i.sent(),i.label=3;case 3:return n++,[3,1];case 4:return e(),[2]}}))}))}))},t.prototype.onBeforeResize=function(t,e){},t.prototype.onAfterResize=function(t,e){},t.prototype._createProject=function(){for(var t=this._$container.find(".js-projects__project"),e=new Array,n=0;n<t.length;n++){var i=a.default(t[n]),r=new s.default(i);e.push(r)}return e},t}();e.default=u},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(3)),a=i(n(6)),s=i(n(98)),u=function(){function t(t){this._$container=t,this._$thumbnail=t.find(".js-projects__thumbnail"),this._$moviePlayer={},this._$loading={},this._backgroundMovie={},this._mediaFormat=t.data("media-format")}return t.prototype.init=function(){var t=this;return new Promise((function(e,n){if("video"===t._mediaFormat)t._createMovieHolder().then((function(n){var i=n[0],r=n[1];t._$moviePlayer=i,t._$loading=r,e()})).catch((function(t){n(t)}));else{var i=t._$container,r=t._$thumbnail,o=i.attr("data-image-source");t._getBackgroundColor(o).then((function(t){r.css({"background-color":t}),e()})).catch((function(t){n(t)}))}}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){t._addEvent(),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){t._removeEvent(),e()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){"video"===t._mediaFormat?t._backgroundMovie.exit().then((function(){e()})).catch((function(t){n(t)})):e()}))},t.prototype.loadMovie=function(){var t=this;return new Promise((function(e,n){var i=t._$thumbnail;"video"===t._mediaFormat?t._createMoviePlayer().then((function(n){i.addClass("is-hidden"),t._$loading.remove(),t._backgroundMovie=n,e()})).catch((function(t){n(t)})):e()}))},Object.defineProperty(t.prototype,"$container",{get:function(){return this._$container},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mediaFormat",{get:function(){return this._mediaFormat},enumerable:!0,configurable:!0}),t.prototype._createMovieHolder=function(){var t=this;return new Promise((function(e,n){var i=t._$container.find("a"),o=r.default("<div></div>").addClass("project__movie-holder"),a=r.default("<div></div>").addClass("project__movie-player"),s=r.default("<div></div>").addClass("c-loading"),u=r.default("<div></div>").addClass("c-loading__icon");s.append(u),o.append(a),o.append(s),i.append(o),e([a,s])}))},t.prototype._createMoviePlayer=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._$moviePlayer,o=i.data("video-id"),a=i.data("video-platform"),u="js-project__movie-player--"+o,c=new s.default(r,u);c.init(o,a).then((function(){e(c)})).catch((function(t){n(t)}))}))},t.prototype._getBackgroundColor=function(t){return new Promise((function(e,n){a.default.getColorByUrl(t).then((function(t){e(o.default.rgbToRgbString(t.primary))})).catch((function(t){n(t)}))}))},t.prototype._addEvent=function(){var t=this,e=this._$container;e.on("mouseover",(function(e){r.default(t).trigger(e)})),e.on("mouseout",(function(e){r.default(t).trigger(e)}))},t.prototype._removeEvent=function(){this._$container.off("click mouseover mouseout")},t}();e.default=u},function(t,e,n){"use strict";var i=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{u(i.next(t))}catch(t){o(t)}}function s(t){try{u(i.throw(t))}catch(t){o(t)}}function u(t){t.done?r(t.value):new n((function(e){e(t.value)})).then(a,s)}u((i=i.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(17)),s=o(n(274)),u=function(){function t(){this._$container={},this._items=new Array}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t,n()}))},t.prototype.update=function(t){var e=this;return new Promise((function(n,i){e._fetchItems(t).then((function(t){if(e._removeItems(),t.length>0)return e._createItems(t);throw new Error("ProjectsItems.update: Not Found")})).then((function(){return e._addItems()})).then((function(){n()})).catch((function(t){i(t)}))}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){for(var i=t._items,r=new Array,o=0;o<i.length;o++){var a=i[o];r.push(a.hide())}Promise.all(r).then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._removeItems().then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype.clear=function(){var t=this;return new Promise((function(e,n){t._removeItems().then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype.onBeforeResize=function(t,e){},t.prototype.onAfterResize=function(t,e){},t.prototype._createItems=function(t){var e=this;return new Promise((function(n,i){for(var r=e._$container,o=e._items,a=new Array,u=0;u<t.length;u++){var c=new s.default(r,t[u]);o.push(c),a.push(c.init())}Promise.all(a).then((function(){n()})).catch((function(t){i(t)}))}))},t.prototype._addItems=function(){var e=this;return new Promise((function(n,o){return i(e,void 0,void 0,(function(){var e,i;return r(this,(function(r){switch(r.label){case 0:e=this._items,new Array,i=0,r.label=1;case 1:return i<e.length?[4,this._addItem(i).catch((function(t){o(t)}))]:[3,4];case 2:r.sent(),r.label=3;case 3:return i+=t.ADD_NUM,[3,1];case 4:return n(),[2]}}))}))}))},t.prototype._addItem=function(e){var n=this;return new Promise((function(i,r){for(var o=n._items,a=new Array,s=e+t.ADD_NUM>o.length?o.length:e+t.ADD_NUM,u=e;u<s;u++){var c=o[u];a.push(c.show())}Promise.all(a).then((function(){i()})).catch((function(t){r(t)}))}))},t.prototype._removeItems=function(){var t=this;return new Promise((function(e,n){for(var i=t._items,r=0;r<i.length;r++){i[r].remove()}t._items=[],e()}))},t.prototype._fetchItems=function(t){return new Promise((function(e,n){a.default.fetchItems(t).then((function(t){e(t)})).catch((function(t){n(t)}))}))},t.ADD_NUM=6,t}();e.default=u},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(3)),a=i(n(6)),s=i(n(17)),u=function(){function t(t,e){this._$container=r.default("<li></li>").appendTo(t),this._data=e}return t.prototype.init=function(){var t=this;return new Promise((function(e,n){var i=t._data;Promise.all([t._addBackgroundColor(i),t._addDataAttributes(i)]).then((function(){t._addEvent(),e()})).catch((function(t){n(t)}))}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._data;t._fetchPermalink(r).then((function(e){return t._addItem(e)})).then((function(){setTimeout((function(){i.addClass("is-visible"),e()}),1e3/60)})).catch((function(t){n(t)}))}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container;i.on("transitionend",(function(){i.off("transitionend"),e()})),i.removeClass("is-visible")}))},t.prototype.remove=function(){var t=this;return new Promise((function(e,n){var i=t._$container;t._removeEvent(),i.remove(),e()}))},Object.defineProperty(t.prototype,"$container",{get:function(){return this._$container},enumerable:!0,configurable:!0}),t.prototype._addBackgroundColor=function(t){var e=this;return new Promise((function(n,i){var r=e._$container,s=t.acf.item_image.sizes.image_128x128;a.default.getColorByUrl(s).then((function(t){r.css({"background-color":o.default.rgbToRgbString(t.primary)}),n()})).catch((function(t){i(t)}))}))},t.prototype._addDataAttributes=function(t){var e=this;return new Promise((function(n,i){var r=e._$container,o=t.acf,a=o.item_image.sizes.image_16x16,s=o.item_origin,u=s.item_origin_horizontal,c=s.item_origin_vertical;r.attr({"data-image-source":a,"data-origin-horizontal":u,"data-origin-vertical":c}),n()}))},t.prototype._addItem=function(t){var e=this;return new Promise((function(n,i){var o=t.permalink,a=t.acf,s=a.item_origin,u=(s.item_origin_vertical,s.item_origin_horizontal,a.item_image),c=u.sizes.image_384x0,l=u.sizes.image_384x0,f=u.sizes.image_384x0,h=e._$container,d=r.default("<a></a>"),p=r.default("<picture></picture>
2").addClass("c-thumbnails__thumbnail c-thumbnail--top-center"),_=r.default("<source></source>"),m=r.default("<img></img>");d.attr({href:o}),_.attr({media:"(max-width:768px)",srcset:c}),m.attr({src:l,srcset:l+" 1x, "+f+" 2x",decoding:"async"}),p.append(_),p.append(m),d.append(p),h.append(d),n()}))},t.prototype._fetchPermalink=function(t){var e=this;return new Promise((function(n,i){s.default.fetchProjectByItemId(t.id).then((function(i){var r=e._getIndexByItemId(i[0].acf.project_gallery,t.id),o=i[0].link;r>-1&&(o=o+"#"+(r+1)),t.permalink=o,n(t)})).catch((function(t){i(t)}))}))},t.prototype._getIndexByItemId=function(t,e){return t.findIndex((function(t){return t.project_gallery_item_id.ID===e}))},t.prototype._addEvent=function(){var t=this,e=this._$container;e.on("mouseover",(function(e){r.default(t).trigger(e)})),e.on("mouseout",(function(e){r.default(t).trigger(e)}))},t.prototype._removeEvent=function(){this._$container.off("mouseover mouseout")},t.HOLDER_DEFAULT_WIDTH=140,t.HOLDER_DEFAULT_HEIGHT=210,t}();e.default=u},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(){}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t,n()}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){t._$container.addClass("is-visible"),t._addEvent(),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){t._$container.removeClass("is-visible"),e()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t.clear(),t._removeEvent(),e()}))},t.prototype.enable=function(){var t=this;return new Promise((function(e,n){t._$container.removeClass("is-disable"),t._addEvent(),e()}))},t.prototype.disable=function(){var t=this;return new Promise((function(e,n){var i=t._$container;t._removeEvent(),i.addClass("is-disable"),e()}))},t.prototype.clear=function(){for(var t=this._$container.find(".is-selected"),e=0;e<t.length;e++){r.default(t[e]).removeClass("is-selected")}},t.prototype.random=function(){for(var e=this._$container.find(".js-projects__term"),n=0;n<e.length;n++){var i=r.default(e[n]);Math.random()<t.RANDOM_SELECTED_RATE&&i.addClass("is-selected")}},t.prototype.getTaxonomies=function(){var t=this;return new Promise((function(e,n){var i=t._$container.find(".is-selected"),o=new Array,a=new Array,s=new Array,u=new Array,c=new Array,l=new Array;i.length<1&&n();for(var f=0;f<i.length;f++){var h=r.default(i[f]),d=h.data("taxonomy"),p=h.data("term");switch(d){case"item_format":o.push(p);break;case"item_category":a.push(p);break;case"item_subject":s.push(p);break;case"item_place":u.push(p);break;case"item_color":c.push(p);break;case"item_others":l.push(p)}}e({item_format:o,item_category:a,item_subject:s,item_place:u,item_color:c,item_others:l})}))},t.prototype._addEvent=function(){for(var t=this,e=this._$container.find(".js-projects__term"),n=function(n){var i=r.default(e[n]);i.on("click",(function(e){return i.hasClass("is-selected")?i.removeClass("is-selected"):i.addClass("is-selected"),r.default(t).trigger(e),!1}))},i=0;i<e.length;i++)n(i)},t.prototype._removeEvent=function(){for(var t=this._$container.find(".js-projects__term"),e=0;e<t.length;e++){r.default(t[e]).off("click")}},t.RANDOM_SELECTED_RATE=.2,t}();e.default=o},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(){this._isVisible=!1}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t,n()}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){t._$container.addClass("is-visible"),t._isVisible=!0,e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container;t._isVisible=!1,i.removeClass("is-visible"),e()}))},t.prototype.exit=function(){return new Promise((function(t,e){t()}))},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},enumerable:!0,configurable:!0}),t.prototype._addEvent=function(){var t=this;this._$container.on("click",(function(e){r.default(t).trigger(e)}))},t.prototype._removeEvent=function(){this._$container.off("click")},t}();e.default=o},function(t,e,n){"use strict";
2var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(1)),s=n(11),u=n(57),c=o(n(2)),l=o(n(10)),f=o(n(5)),h=o(n(4)),d=o(n(7)),p=o(n(278)),_=o(n(282)),m=o(n(284)),v=o(n(285)),g=function(t){function e(e){void 0===e&&(e="single-project");var n=this;return(n=t.call(this,e)||this)._index=new _.default,n._gallery=new p.default,n._title=new m.default,n._ui=new v.default,n._tween=new s.TweenLite({},0,{}),n._isIndexView=!1,n._isBusy=!1,n}return r(e,t),e.prototype.onLeave=function(t){var e=this;return new Promise((function(t,n){var i=e._gallery,r=e._index,o=e._title,a=e._ui;e._tween.kill(),e._removeEvent(),Promise.resolve().then((function(){return e._isIndexView?e._toGalleryView():void 0})).then((function(){return Promise.all([i.hide(),r.hide(),o.hide(),a.stop(),f.default.hide()])})).then((function(){return d.default.show()})).then((function(){return Promise.all([i.exit(),r.exit(),o.exit(),a.exit()])})).then((function(){return h.default.defaultColor()})).then((function(){e._isIndexView=!1,e._isBusy=!1,u.clearAllBodyScrollLocks(),t()})).catch((function(t){n(t)}))}))},e.prototype.onEnter=function(t){var n=this;return new Promise((function(i,r){n._$container=a.default(t.next.container);var o=t.next.url.hash?t.next.url.hash:1,s=n._gallery,l=n._index,d=n._title,p=n._ui,_=n._$container,m=a.default(".js-project-gallery"),v=a.default(".js-project-index"),g=a.default(".js-project-title");c.default.isMobile&&_.css({height:window.innerHeight}),u.disableBodyScroll(_.get(0)),Promise.all([s.init(m,o),l.init(v,o),d.init(g),p.init(_),f.default.show()]).then((function(){return Promise.all([h.default.darkModeColor(),f.default.update(e.BACKGROUND_COLOR)])})).then((function(){i()})).catch((function(t){r(t)}))}))},e.prototype.onAfter=function(t){var e=this;return new Promise((function(t,n){var i=e._gallery,r=e._title,o=e._ui;d.default.hide().then((function(){return Promise.all([r.show(),i.show(i.current)])})).then((function(){o.start(),e._addEvent(),t()})).catch((function(t){n(t)}))}))},e.prototype.onBeforeResize=function(t,e){var n=this._gallery,i=this._index;n.onBeforeResize(t,e),i.onBeforeResize(t,e)},e.prototype.onAfterResize=function(t,e){var n=this._$container,i=this._gallery,r=this._index;c.default.isMobile&&n.css({height:e}),i.onAfterResize(t,e),r.onAfterResize(t,e)},e.prototype._toIndexView=function(){var t=this;return this._isIndexView||this._isBusy?Promise.resolve():new Promise((function(e,n){var i=t._$container,r=t._gallery,o=t._index,a=t._title,s=t._ui;t._isBusy=!0,s.stop(),Promise.all([h.default.defaultColor(),r.toIndexView(),o.toIndexView(),a.toIndexView()]).then((function(){h.default.fillBackground(),i.addClass("is-index-view"),t._isIndexView=!0,t._isBusy=!1,e()})).catch((function(t){n(t)}))}))},e.prototype._toGalleryView=function(){var t=this;return!this._isIndexView||this._isBusy?Promise.resolve():new Promise((function(e,n){var i=t._$container,r=t._gallery,o=t._index,a=t._title,s=t._ui;t._isBusy=!0,s.start(),h.default.clearBackground(),Promise.all([h.default.darkModeColor(),r.toGalleryView(),o.toGalleryView(),a.toGalleryView(),t._scorollTween()]).then((function(){i.removeClass("is-index-view"),t._isIndexView=!1,t._isBusy=!1,e()})).catch((function(t){n(t)}))}))},e.prototype._addEvent=function(){var t=this,e=this._gallery,n=this._index,i=(this._title,a.default(document));a.default(e).on(p.default.ON_VIEW_INDEX,(function(){t._toIndexView()})),a.default(e).on(p.default.ON_UPDATED,(function(t,e){n.current=e})),a.default(n).on(_.default.ON_CLICKED_BACK_BUTTON,(function(){t._toGalleryView()})),a.default(n).on(_.default.ON_CLICKED_ITEM,(function(n,i){t._toGalleryView().then((function(){e.goTo(i)}))})),i.on("keydown",(function(n){switch(n.key){case"ArrowRight":t._isIndexView||e.next();break;case"ArrowLeft":t._isIndexView||e.previous();break;case"ArrowUp":t._isIndexView&&t._toGalleryView();break;case"ArrowDown":t._isIndexView||t._toIndexView()}}))},e.prototype._removeEvent=function(){var t=this._gallery,e=this._index,n=a.default(document);a.default(t).off(p.default.ON_UPDATED),a.default(t).off(p.default.ON_VIEW_INDEX),a.default(e).off(_.default.ON_CLICKED_BACK_BUTTON),a.default(e).off(_.default.ON_CLICKED_ITEM
2),n.off("keydown")},e.prototype._scorollTween=function(t){var e=this;return void 0===t&&(t=c.default.INDEX_INTERVAL/8),new Promise((function(n,i){var r=e._$container;e._tween.kill(),e._tween=new s.TweenLite(r,t/1e3,{scrollTop:0,ease:s.Power1.easeInOut,onComplete:function(){n()}})}))},e.BACKGROUND_COLOR=c.default.DEFAULT_DOMINANT_COLOR_DARK,e}(l.default);e.default=g},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(5)),a=i(n(65)),s=i(n(279)),u=i(n(100)),c=function(){function t(){this._$container={},this._navigation=new s.default,this._indexButton=new u.default,this._items=new Array,this._current=1,this._isBusy=!1}return t.prototype.init=function(t,e){var n=this;return void 0===e&&(e=1),new Promise((function(i,o){var s=t.find(".js-project-gallery__index-button"),u=t.find(".js-project-gallery__item"),c=t.find(".js-project-gallery__navigation"),l=n._items,f=n._navigation,h=n._indexButton,d=new Array;d.push(f.init(c,e)),d.push(h.init(s));for(var p=0;p<u.length;p++){var _=r.default(u[p]),m=new a.default(_);l.push(m),d.push(m.init())}Promise.all(d).then((function(){n._$container=t,n._current=e,i()})).catch((function(t){o(t)}))}))},t.prototype.show=function(t){var e=this;return new Promise((function(n,i){var r=e._navigation,a=e._indexButton,s=e._items[t-1];e._isBusy=!0,s.getDominantColor().then((function(t){return o.default.update(t)})).then((function(){return Promise.all([o.default.toSolidColor(),e._showItem(t),r.show(),a.show()])})).then((function(){e._current=t,e._isBusy=!1,e._addEvent(),n()})).catch((function(t){i(t)}))}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._navigation,r=t._indexButton;t._removeEvent(),Promise.all([t._hideItem(t._current),i.hide(),r.hide()]).then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){for(var i=t._items,r=t._indexButton,o=t._navigation,a=new Array,s=0;s<i.length;s++){var u=i[s];a.push(u.exit())}a.push(r.exit()),a.push(o.exit()),Promise.all(a).then((function(){t._items=[],t._current=1,e()})).catch((function(t){n(t)}))}))},t.prototype.goTo=function(t){this._update(t)},t.prototype.next=function(){var e=this._current;++e>this._items.length?r.default(this).trigger(t.ON_VIEW_INDEX):this._update(e)},t.prototype.previous=function(){var e=this._current;--e<1?r.default(this).trigger(t.ON_VIEW_INDEX):this._update(e)},t.prototype.toIndexView=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._navigation,o=t._indexButton;r.hide(),o.hide(),i.on("transitionend",(function(){i.off("transitionend"),e()})),i.addClass("is-index-view")}))},t.prototype.toGalleryView=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._navigation,o=t._indexButton;i.on("transitionend",(function(){i.off("transitionend"),Promise.all([r.show(),o.show()]).then((function(){e()})).catch((function(t){n(t)}))})),i.removeClass("is-index-view")}))},t.prototype.onBeforeResize=function(t,e){for(var n=this._items,i=0;i<n.length;i++){n[i].onBeforeResize(t,e)}},t.prototype.onAfterResize=function(t,e){for(var n=this._items,i=0;i<n.length;i++){n[i].onAfterResize(t,e)}},Object.defineProperty(t.prototype,"current",{get:function(){return this._current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBusy",{get:function(){return this._isBusy},enumerable:!0,configurable:!0}),t.prototype._update=function(e){var n=this;return this._isBusy?Promise.resolve():new Promise((function(i,a){var s=n._current,u=n._navigation,c=n._items[e-1],l=s>e;n._isBusy=!0,c.getDominantColor().then((function(t){return Promise.all([o.default.update(t),n._hideItem(n._current,l)])})).then((function(){return o.default.toSolidColor(),n._showItem(e,l)})).then((function(){u.current=e,n._current=e,n._isBusy=!1,r.default(n).trigger(t.ON_UPDATED,[e]),i()})).catch((function(t){a(t)}))}))},t.prototype._showItem=function(t,e){var n=this;return void 0===e&&(e=!1),new Promise((function(i,r){n._items[t-1].show(e).then((function(){i()})).catch((function(t){r(t)}))}
2))},t.prototype._hideItem=function(t,e){var n=this;return void 0===e&&(e=!1),new Promise((function(i,r){n._items[t-1].hide(e).then((function(){i()})).catch((function(t){r(t)}))}))},t.prototype._addEvent=function(){var e=this,n=this._indexButton,i=this._navigation;r.default(i).on(s.default.ON_CLICKED_PREVIOUS,(function(){e.previous()})),r.default(i).on(s.default.ON_CLICKED_NEXT,(function(){e.next()})),r.default(n).on("click",(function(n){r.default(e).trigger(t.ON_VIEW_INDEX)}))},t.prototype._removeEvent=function(){var t=this._indexButton,e=this._navigation;r.default(t).off("click"),r.default(e).off(s.default.ON_CLICKED_PREVIOUS),r.default(e).off(s.default.ON_CLICKED_NEXT)},t.ON_UPDATED="onUpdated",t.ON_VIEW_INDEX="onViewIndex",t}();e.default=c},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(280)),a=i(n(281)),s=function(){function t(){this._$container={},this._background=new o.default,this._controller=new a.default}return t.prototype.init=function(t,e){var n=this;return void 0===e&&(e=1),new Promise((function(i,r){var o=n._background,a=n._controller,s=t.find(".js-project-gallery__navigation-background"),u=t.find(".js-project-gallery__navigation-controller");Promise.all([o.init(s),a.init(u,e)]).then((function(){n._$container=t,n._addEvent(),i()})).catch((function(t){r(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){var i=t._background,r=t._controller;Promise.all([i.exit(),r.exit()]).then((function(){t._removeEvent(),e()})).catch((function(t){n(t)}))}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){t._controller.show().then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){t._controller.hide().then((function(){e()})).catch((function(t){n(t)}))}))},Object.defineProperty(t.prototype,"current",{set:function(t){this._controller.current=t},enumerable:!0,configurable:!0}),t.prototype._addEvent=function(){var e=this,n=this._background,i=this._controller;r.default(n).on(o.default.ON_CLICKED_PREVIOUS,(function(){r.default(e).trigger(t.ON_CLICKED_PREVIOUS)})),r.default(n).on(o.default.ON_CLICKED_NEXT,(function(){r.default(e).trigger(t.ON_CLICKED_NEXT)})),r.default(i).on(a.default.ON_CLICKED_PREVIOUS,(function(){r.default(e).trigger(t.ON_CLICKED_PREVIOUS)})),r.default(i).on(a.default.ON_CLICKED_NEXT,(function(){r.default(e).trigger(t.ON_CLICKED_NEXT)}))},t.prototype._removeEvent=function(){var t=this._background,e=this._controller;r.default(t).off(o.default.ON_CLICKED_PREVIOUS),r.default(t).off(o.default.ON_CLICKED_NEXT),r.default(e).off(a.default.ON_CLICKED_PREVIOUS),r.default(e).off(a.default.ON_CLICKED_NEXT)},t.ON_CLICKED_PREVIOUS="onClickedPrevious",t.ON_CLICKED_NEXT="onClickedNext",t}();e.default=s},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(){this._$container={},this._$previousButton={},this._$nextButton={}}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){var r=t.find(".js-project-gallery__navigation-background__previous"),o=t.find(".js-project-gallery__navigation-background__next");e._$container=t,e._$previousButton=r,e._$nextButton=o,e._addEvent(),n()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._removeEvent(),e()}))},t.prototype._addEvent=function(){var e=this,n=this._$previousButton,i=this._$nextButton;n.on("click",(function(){return r.default(e).trigger(t.ON_CLICKED_PREVIOUS),!1})),i.on("click",(function(){return r.default(e).trigger(t.ON_CLICKED_NEXT),!1}))},t.prototype._removeEvent=function(){var e=this._$previousButton,n=this._$nextButton;e.off(t.ON_CLICKED_PREVIOUS),n.off(t.ON_CLICKED_NEXT)},t.ON_CLICKED_PREVIOUS="onClickedPrevious",t.ON_CLICKED_NEXT="onClickedNext",t}();e.default=o},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(){this._$container={},this._$previousButton={},this._$nextButton={},this._$current={},this._current=1,this._digits=1}return t.prototype.init=function(t,e){var n=this;return void 0===e&&(e=1),new Promise((function(i,r){var o=t.find(".js-project-gallery__navigation-controller__previous"),a=t.find(".js-project-gallery__navigation-controller__next"),s=t.find(".js-project-gallery__navigation-controller__current"),u=t.find(".js-project-gallery__navigation-controller__total").text().length;n._$container=t,n._$previousButton=o,n._$nextButton=a,n._$current=s,n._digits=u,n.current=e,n._addEvent(),i()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._removeEvent(),t._current=1,t._digits=1,e()}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){t._$container.addClass("is-visible"),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){t._$container.removeClass("is-visible"),e()}))},Object.defineProperty(t.prototype,"current",{get:function(){return this._current},set:function(t){var e=this._digits,n=String(t);this._$current.text(n.padStart(e,"0")),this._current=t},enumerable:!0,configurable:!0}),t.prototype._addEvent=function(){var e=this,n=this._$previousButton,i=this._$nextButton;n.on("click",(function(){return r.default(e).trigger(t.ON_CLICKED_PREVIOUS),!1})),i.on("click",(function(){return r.default(e).trigger(t.ON_CLICKED_NEXT),!1}))},t.prototype._removeEvent=function(){var e=this._$previousButton,n=this._$nextButton;e.off(t.ON_CLICKED_PREVIOUS),n.off(t.ON_CLICKED_NEXT)},t.ON_CLICKED_PREVIOUS="onClickedPrevious",t.ON_CLICKED_NEXT="onClickedNext",t}();e.default=o},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(16)),a=i(n(283)),s=i(n(100)),u=function(){function t(){this._items=new Array,this._backButton=new s.default,this._current=1}return t.prototype.init=function(t,e){var n=this;return void 0===e&&(e=1),new Promise((function(i,o){n._$container=t;for(var s=t.find(".js-project-index__back-button"),u=t.find(".js-project-index__item"),c=n._backButton,l=n._items,f=new Array,h=0;h<u.length;h++){var d=r.default(u[h]),p=new a.default(d,h+1);l.push(p),f.push(p.init())}f.push(c.init(s)),Promise.all(f).then((function(){n.current=e,i()})).catch((function(t){o(t)}))}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){for(var i=t._backButton,r=t._items,o=new Array,a=0;a<r.length;a++){var s=r[a];o.push(s.show())}o.push(i.show()),Promise.all(o).then((function(){t._addEvent(),e()})).catch((function(t){n(t)}))}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._backButton,r=t._items,o=new Array;t._removeEvent();for(var a=0;a<r.length;a++){var s=r[a];o.push(s.hide())}o.push(i.hide()),Promise.all(o).then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){for(var i=t._backButton,r=t._items,o=new Array,a=0;a<r.length;a++){var s=r[a];o.push(s.exit())}o.push(i.exit()),Promise.all(o).then((function(){t._items=[],t._current=1,e()})).catch((function(t){n(t)}))}))},t.prototype.toIndexView=function(){var t=this;return new Promise((function(e,n){var i=t._$container;i.on("transitionend",(function(){i.off("transitionend"),e()})),t.show().then((function(){i.addClass("is-index-view")})).catch((function(t){n(t)}))}))},t.prototype.toGalleryView=function(){var t=this;return new Promise((function(e,n){var i=t._$container;i.on("transitionend",(function(){i.off("transitionend"),t.hide().then((function(){e()})).catch((function(t){n(t)}))})),i.removeClass("is-index-view")}))},t.prototype.onBeforeResize=function(t,e){},t.prototype.onAfterResize=function(t,e){},Object.defineProperty(t.prototype,"current",{get:function(){return this._current},set:function(t){var e=this._items,n=e[this._current-1].$container,i=e[t-1].$container;n.removeClass("is-current"),i.addClass("is-current"),this._current=t},enumerable:!0,configurable:!0}),t.prototype._preloadImages=function(){var t=this;return new Promise((function(e,n){for(var i=t._items,r=new o.default,a=new Array,s=0;s<i.length;s++){var u=i[s].$container.data("image-source");a.push(r.load(u))}Promise.all(a).then((function(t){e()})).catch((function(t){n(t)}))}))},t.prototype._addEvent=function(){for(var e=this,n=this._backButton,i=this._items,o=0;o<i.length;o++){var a=i[o];r.default(a).on("click",(function(n,i){r.default(e).trigger(t.ON_CLICKED_ITEM,[i])}))}r.default(n).on("click",(function(){r.default(e).trigger(t.ON_CLICKED_BACK_BUTTON)}))},t.prototype._removeEvent=function(){for(var t=this._backButton,e=this._items,n=0;n<e.length;n++){var i=e[n];r.default(i).off()}
2r.default(t).off("click")},t.ON_CLICKED_BACK_BUTTON="onBackButton",t.ON_CLICKED_ITEM="onClickedItem",t}();e.default=u},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(3)),a=i(n(6)),s=function(){function t(t,e){this._$container=t,this._id=e,this._addEvent()}return t.prototype.init=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=i.attr("data-image-source");t._getBackgroundColor(r).then((function(t){i.css({"background-color":t}),e()})).catch((function(t){n(t)}))}))},t.prototype.show=function(){return new Promise((function(t,e){t()}))},t.prototype.hide=function(){return new Promise((function(t,e){t()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._removeEvent(),e()}))},Object.defineProperty(t.prototype,"$container",{get:function(){return this._$container},enumerable:!0,configurable:!0}),t.prototype._getBackgroundColor=function(t){return new Promise((function(e,n){a.default.getColorByUrl(t).then((function(t){e(o.default.rgbToRgbString(t.primary))})).catch((function(t){n(t)}))}))},t.prototype._addEvent=function(){var t=this,e=this._$container,n=this._id;e.on("click",(function(e){return r.default(t).trigger(e,[n]),!1})),e.on("mouseover",(function(e){r.default(t).trigger(e,[n])})),e.on("mouseout",(function(e){r.default(t).trigger(e,[n])}))},t.prototype._removeEvent=function(){this._$container.off("click mouseover mouseout")},t}();e.default=s},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(2)),o=i(n(56)),a=function(){function t(){this._$container={},this._$format={},this._$name={},this._$summary={},this._nameClipPath={},this._summaryClipPath={}}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){var r=t.find(".js-project-title__name"),a=t.find(".js-project-title__summary"),s=t.find(".js-project-title__format"),u=t.find(".js-project-title__name__clip-path"),c=t.find(".js-project-title__summary__clip-path");e._$container=t,e._$name=r,e._$summary=a,e._$format=s,e._nameClipPath=new o.default(u,e._$name),e._summaryClipPath=new o.default(c,e._$summary),n()}))},t.prototype.show=function(){var e=this;return new Promise((function(n,i){e._$container;var r=e._$name,o=(e._$summary,e._$format),a=e._nameClipPath,s=e._createTweenArgs(r),u=e._summaryClipPath,c=e._createTweenArgs(o),l=new Array;l.push(a.tween(s[0],s[1],t.SHOW_DURATION)),l.push(u.tween(c[0],c[1],t.SHOW_DURATION)),Promise.all(l).then((function(){n()})).catch((function(t){i(t)}))}))},t.prototype.hide=function(){var e=this;return new Promise((function(n,i){e._$container;var r=e._$name,o=(e._$summary,e._$format),a=e._nameClipPath,s=e._createTweenArgs(r,!0),u=e._summaryClipPath,c=e._createTweenArgs(o,!0),l=new Array;l.push(a.tween(s[0],s[1],t.HIDE_DURATION)),l.push(u.tween(c[0],c[1],t.HIDE_DURATION)),Promise.all(l).then((function(){n()})).catch((function(t){i(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){var i=t._nameClipPath,r=t._summaryClipPath;Promise.all([i.exit(),r.exit()]).then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype.toIndexView=function(){var t=this;return new Promise((function(e,n){var i=t._$container;i.on("transitionend",(function(){i.off("transitionend"),e()})),i.addClass("is-index-view")}))},t.prototype.toGalleryView=function(){var t=this;return new Promise((function(e,n){var i=t._$container;i.on("transitionend",(function(){i.off("transitionend"),e()})),i.removeClass("is-index-view")}))},t.prototype._createTweenArgs=function(t,e){void 0===e&&(e=!1);var n=t.position().left+t.outerWidth()+8,i=t.outerHeight()+8,r={x:-4,y:-4,width:0,height:i},o={x:-4,y:-4,width:n,height:i};return e&&(r.width=n,o.width=0),[r,o]},t.SHOW_DURATION=r.default.INDEX_INTERVAL/8,t.HIDE_DURATION=r.default.INDEX_INTERVAL/8,t}();e.default=a},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(4)),a=function(){function t(){this._timerId=0,this._mouseMoveId=0}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t;var a=r.default(o.default);a.on(o.default.ON_SHOW_NAVIGATION,(function(){e.stop()})),a.on(o.default.ON_HIDE_NAVIGATION,(function(){e.start()})),n()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){var i=r.default(o.default);i.off(o.default.ON_SHOW_NAVIGATION),i.off(o.default.ON_HIDE_NAVIGATION),t._timerId=0,t._mouseMoveId=0,e()}))},t.prototype.start=function(){var e=this;window.clearTimeout(this._timerId),this._timerId=window.setTimeout((function(){var t=e._$container;t.hasClass("is-hidden-ui")||t.addClass("is-hidden-ui"),o.default.hide()}),t.INTERVAL),this._addEvent()},t.prototype.stop=function(){var t=this._$container;t.hasClass("is-hidden-ui")&&t.removeClass("is-hidden-ui"),o.default.show(),window.clearTimeout(this._timerId),window.clearTimeout(this._mouseMoveId),this._removeEvent()},t.prototype._addEvent=function(){var t=this,e=this._$container,n=!0;e.on("mousemove",(function(){n&&(t.stop(),n=!1),clearTimeout(t._mouseMoveId),t._mouseMoveId=window.setTimeout((function(){t.start(),n=!0}),500)}))},t.prototype._removeEvent=function(){this._$container.off("mousemove")},t.INTERVAL=4e3,t}();e.default=a},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(1)),s=o(n(2)),u=o(n(10)),c=o(n(5)),l=o(n(4)),f=o(n(7)),h=o(n(287)),d=o(n(289)),p=o(n(290)),_=function(t){function e(e){void 0===e&&(e="archive-photograph");var n=this;return(n=t.call(this,e)||this)._items=new h.default,n._permalink=new d.default,n._gallery=new p.default,n._controller=new AbortController,n._isLoadedAll=!1,n._isBusy=!1,n}return r(e,t),e.prototype.onLeave=function(t){var e=this;return new Promise((function(t,n){var i=e._items,r=e._permalink,o=e._gallery,a=e._controller;e._removeEvent(),r.unobserve(),a.abort(),Promise.all([i.hide(),l.default.clearBackground()]).then((function(){return f.default.show()})).then((function(){return Promise.all([i.exit(),r.exit(),o.exit()])})).then((function(){e._isLoadedAll=!1,e._isBusy=!1,t()})).catch((function(t){n(t)}))}))},e.prototype.onEnter=function(t){var n=this;return new Promise((function(i,r){var o=a.default(t.next.container),s=o.find(".js-photograph-items"),u=o.find(".js-photograph-permalink"),f=o.find(".js-photograph-gallery"),h=n._items,d=n._permalink,p=n._gallery;n._$container=o,Promise.all([h.init(s),d.init(u),p.init(f),c.default.show()]).then((function(){return c.default.update(e.BACKGROUND_COLOR)})).then((function(){c.default.hide(),l.default.fillBackground(),i()})).catch((function(t){i()})).catch((function(t){r(t)}))}))},e.prototype.onAfter=function(t){var e=this;return new Promise((function(t,n){var i=e._items,r=e._permalink;f.default.hide().then((function(){return i.show()})).then((function(){r.observe(),e._addEvent(),t()})).catch((function(t){n(t)}))}))},e.prototype.onBeforeResize=function(t,e){this._items.onBeforeResize()},e.prototype.onAfterResize=function(t,e){this._items.onAfterResize()},e.prototype._addEvent=function(){var t=this,e=this._items,n=this._permalink,i=this._gallery;a.default(e).on("click",(function(t,e){i.show(e)})),a.default(n).on(d.default.IN_VIEW,(function(){t._fetch(n.url)}))},e.prototype._removeEvent=function(){var t=this._items,e=this._permalink;a.default(t).off("click"),a.default(e).off(d.default.IN_VIEW)},e.prototype._fetch=function(t){var e=this;if(!this._isBusy){var n=this._items,i=this._permalink;this._controller=new AbortController,this._isBusy=!0,i.unobserve(),fetch(t,{signal:this._controller.signal}).then((function(t){return t.text()})).then((function(t){var r=new DOMParser,o=a.default(r.parseFromString(t,"text/html")),s=o.find(".js-photograph-item"),u=o.find(".js-photograph-permalink").find("a").attr("href");return void 0===u?(e._isLoadedAll=!0,i.url=""):i.url=u,n.addItems(s)})).then((function(){e._isLoadedAll||(i.observe(),e._isBusy=!1)})).catch((function(t){t.name}))}},e.BACKGROUND_COLOR=s.default.DEFAULT_DOMINANT_COLOR_LIGHT,e}(u.default);e.default=_},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(288)),a=i(n(2)),s=i(n(58)),u=function(){function t(){this._items=new Array,this._resizeIndex=0}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){var r=t.find(".js-photograph-item");e._createItems(r).then((function(i){e._$container=t,e._items=i,n()})).catch((function(t){i(t)}))}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._items,o=new Array;i.addClass("is-visible");for(var a=0;a<r.length;a++){var s=r[a];o.push(s.show())}Promise.all(o).then((function(){t._addEvent(),e()})).catch((function(t){n(t)}))}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._items,o=new Array;t._removeEvent();for(var a=0;a<r.length;a++){var s=r[a];o.push(s.hide())}Promise.all(o).then((function(){i.removeClass("is-visible"),e()})).catch((function(t){n(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){for(var i=t._items,r=new Array,o=0;o<i.length;o++){var a=i[o];r.push(a.exit())}Promise.all(r).then((function(){t._items=[],t._resizeIndex=0,e()})).catch((function(t){n(t)}))}))},t.prototype.addItems=function(t){var e=this;return new Promise((function(n,i){var r=e._$container,o=e._items,u=(e._resizeIndex,o.length,new s.default),c=new Array;e._removeEvent(),r.append(t),u.setTimeout(a.default.INDEX_INTERVAL/64).then((function(){return e._createItems(t)})).then((function(t){for(var e=0;e<t.length;e++){var n=t[e];o.push(n),c.push(n.show())}return Promise.all(c)})).then((function(){e._addEvent(),n()})).catch((function(t){i(t)}))}))},t.prototype.onBeforeResize=function(){},t.prototype.onAfterResize=function(){},t.prototype._addEvent=function(){for(var t=this,e=this._items,n=0;n<e.length;n++){var i=e[n];r.default(i).on("click",(function(e,n){r.default(t).trigger(e,[n])}))}},t.prototype._removeEvent=function(){for(var t=this._items,e=0;e<t.length;e++){var n=t[e];r.default(n).off("click")}},t.prototype._createItems=function(t){return new Promise((function(e,n){for(var i=new Array,a=new Array,s=0;s<t.length;s++){var u=new o.default;i.push(u),a.push(u.init(r.default(t[s])))}Promise.all(a).then((function(){e(i)})).catch((function(t){n(t)}))}))},t}();e.default=u},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(3)),a=i(n(6)),s=i(n(2)),u=i(n(16)),c=function(){function t(){this._$container={},this._$image={},this._$background={},this._src={},this._size={width:0,height:0},this._id=""}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){var r=t.find(".js-photograph-item__background"),o=t.find(".js-photograph-item__image-holder"),a=o.find(".js-photograph-item__image"),c=t.attr("data-item-id"),l=t.attr("data-background-src"),f=t.attr("data-image-src-vw-large1x"),h=t.attr("data-image-src-vw-large2x"),d=t.attr("data-image-src-vw-small");s.default.isMobile||window.devicePixelRatio,new u.default;e._getBackgroundColor(l).then((function(i){o.css({"background-color":i}),r.css({"background-color":i}),e._$container=t,e._$image=a,e._$background=r,e._size=e.defaultSize(),e._id=c,n()})).catch((function(t){n()}))}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){t._$container.addClass("is-visible"),t._addEvent(),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container;t._removeEvent(),i.removeClass("is-visible"),e()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._size={width:0,height:0},t._id="",e()}))},t.prototype.defaultSize=function(){var e=this._src,n=e.naturalWidth/e.naturalHeight,i=window.innerHeight*t.DEFAULT_HEIGHT_SCALE;return{width:i*n,height:i}},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(t){this._size=t,this._$image.css({width:this._size.width,height:this._size.height})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"$container",{get:function(){return this._$container},enumerable:!0,configurable:!0}),t.prototype._addEvent=function(){var t=this,e=this._$image,n=this._id;e.on("click",(function(e){return r.default(t).trigger(e,[n]),!1}))},t.prototype._removeEvent=function(){this._$image.off("click")}
2,t.prototype._getBackgroundColor=function(t){return new Promise((function(e,n){a.default.getColorByUrl(t).then((function(t){e(o.default.rgbToRgbString(t.primary))})).catch((function(t){n(t)}))}))},t.DEFAULT_HEIGHT_SCALE=.25,t}();e.default=c},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(){this._$container={},this._observer={}}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){var r=new IntersectionObserver((function(t){e._callBack(t)}));e._$container=t,e._observer=r,n()}))},t.prototype.observe=function(){var t=this._$container;this._observer.observe(t[0])},t.prototype.unobserve=function(){var t=this._$container;this._observer.unobserve(t[0])},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._observer.disconnect(),e()}))},Object.defineProperty(t.prototype,"url",{get:function(){return this._$container.find("a").attr("href")},set:function(t){this._$container.find("a").attr({href:t})},enumerable:!0,configurable:!0}),t.prototype._callBack=function(e){var n=this;e.forEach((function(e){e.isIntersecting&&r.default(n).trigger(t.IN_VIEW)}))},t.IN_VIEW="inView",t}();e.default=o},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(17)),a=i(n(3)),s=i(n(6)),u=i(n(16)),c=i(n(2)),l=i(n(291)),f=function(){function t(){this._$container={},this._$image={},this._$background={},this._$closeButton={},this._nextButton=new l.default,this._previousButton=new l.default}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){var r=e._nextButton,o=e._previousButton,a=t.find(".js-photograph-gallery__image"),s=t.find(".js-photograph-gallery__background"),u=t.find(".js-photograph-gallery__close-button"),c=t.find(".js-photograph-gallery__next-button"),l=t.find(".js-photograph-gallery__previous-button");Promise.all([r.init(c),o.init(l)]).then((function(){e._$container=t,e._$image=a,e._$background=s,e._$closeButton=u,e._addEvent(),n()})).catch((function(t){i(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){var i=t._nextButton,r=t._previousButton;t._removeEvent(),Promise.all([i.exit(),r.exit()]).then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype.show=function(t){var e=this;return new Promise((function(n,i){var r=e._$container,o=e._$background;r.addClass("is-visible"),e._loadSrc(t).then((function(t){return e._loadImage(t)})).then((function(){o.addClass("is-hidden"),n()})).catch((function(t){i(t)}))}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._$image,a=t._$background;o.default.abort(),i.removeClass("is-visible"),a.removeClass("is-hidden"),a.css({"background-color":""}),r.empty(),e()}))},t.prototype._loadSrc=function(t){var e=this;return new Promise((function(n,i){var r=e._nextButton,a=e._previousButton;o.default.fetchPost("photograph",t).then((function(t){r.id=t.custom_fields.next,a.id=t.custom_fields.previous,n(t.acf.photograph_image)})).catch((function(t){i(t)}))}))},t.prototype._loadImage=function(t){var e=this;return new Promise((function(n,i){var o=e._$container,a=e._$image,s=e._$background,l="gif"==t.subtype,f=l?t.url:t.sizes.image_2048x0,h=l?t.url:t.sizes.image_2048x0,d=l?t.url:t.sizes.image_1152x0,p=window.devicePixelRatio,_=new u.default,m=c.default.isMobile?d:p>1?h:f;s.removeClass("is-hidden"),s.css({"background-color":"",width:"",height:""}),a.empty(),_.load(m).then((function(){var n=r.default("<picture></picture>"),i=r.default("<source></source>"),o=r.default("<img>");return i.attr({media:"(max-width:768px)",srcset:d}),o.attr({srcset:f+" 1x, "+h+" 2x",src:f,alt:"",decoding:"async"}),n.append(i),n.append(o),a.append(n),e._getBackgroundColor(t.sizes.image_128x128)})).then((function(e){var i=t.width,r=t.height/i,a=o.width(),u=o.height(),c=a*r>u?u/r:a,l=a*r>u?u:a*r;s.css({"background-color":e,width:c,height:l}),n()})).catch((function(t){i(t)}))}))}
2,t.prototype._getBackgroundColor=function(t){return new Promise((function(e,n){s.default.getColorByUrl(t).then((function(t){e(a.default.rgbToRgbString(t.primary))})).catch((function(t){n(t)}))}))},t.prototype._addEvent=function(){var t=this,e=this._$closeButton,n=this._nextButton,i=this._previousButton;e.on("click",(function(){return t.hide(),!1})),r.default(n).on("click",(function(e,n){t.show(n)})),r.default(i).on("click",(function(e,n){t.show(n)}))},t.prototype._removeEvent=function(){var t=this._$closeButton,e=this._nextButton,n=this._previousButton;t.off("click"),r.default(e).off("click"),r.default(n).off("click")},t}();e.default=f},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(){this._$container={},this._id=""}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t,e._addEvent(),n()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._removeEvent(),e()}))},Object.defineProperty(t.prototype,"id",{set:function(t){var e=this._$container;""==t?e.addClass("is-disabled"):e.removeClass("is-disabled"),this._id=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._id},enumerable:!0,configurable:!0}),t.prototype._addEvent=function(){var t=this;this._$container.on("click",(function(e){var n=t._id;return r.default(t).trigger(e,n),!1}))},t.prototype._removeEvent=function(){this._$container.off("click")},t}();e.default=o},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(1)),s=o(n(2)),u=o(n(10)),c=o(n(5)),l=o(n(4)),f=o(n(7)),h=o(n(293)),d=o(n(295)),p=o(n(296)),_=function(t){function e(e){void 0===e&&(e="archive-movie");var n=this;return(n=t.call(this,e)||this)._items=new h.default,n._permalink=new d.default,n._gallery=new p.default,n._controller=new AbortController,n._isLoadedAll=!1,n._isBusy=!1,n}return r(e,t),e.prototype.onLeave=function(t){var e=this;return new Promise((function(t,n){var i=e._items,r=e._permalink,o=e._gallery,a=e._controller;e._removeEvent(),r.unobserve(),a.abort(),Promise.all([i.hide(),l.default.clearBackground()]).then((function(){return f.default.show()})).then((function(){return Promise.all([i.exit(),r.exit(),o.exit()])})).then((function(){e._isLoadedAll=!1,e._isBusy=!1,t()})).catch((function(t){n(t)}))}))},e.prototype.onEnter=function(t){var n=this;return new Promise((function(i,r){var o=a.default(t.next.container),s=o.find(".js-movie-items"),u=o.find(".js-movie-permalink"),f=o.find(".js-movie-gallery"),h=n._items,d=n._permalink,p=n._gallery;n._$container=o,Promise.all([h.init(s),d.init(u),p.init(f),c.default.show()]).then((function(){return c.default.update(e.BACKGROUND_COLOR)})).then((function(){c.default.hide(),l.default.fillBackground(),i()})).catch((function(t){i()})).catch((function(t){r(t)}))}))},e.prototype.onAfter=function(t){var e=this;return new Promise((function(t,n){var i=e._items,r=e._permalink;f.default.hide().then((function(){return i.show()})).then((function(){r.observe(),e._addEvent(),t()})).catch((function(t){n(t)}))}))},e.prototype.onBeforeResize=function(t,e){},e.prototype.onAfterResize=function(t,e){},e.prototype._addEvent=function(){var t=this,e=this._items,n=this._permalink,i=this._gallery;a.default(e).on("click",(function(t,e){i.show(e)})),a.default(n).on(d.default.IN_VIEW,(function(){t._fetch(n.url)}))},e.prototype._removeEvent=function(){var t=this._items,e=this._permalink;a.default(t).off("click"),a.default(e).off(d.default.IN_VIEW)},e.prototype._fetch=function(t){var e=this;if(!this._isBusy){var n=this._items,i=this._permalink;this._controller=new AbortController,this._isBusy=!0,i.unobserve(),fetch(t,{signal:this._controller.signal}).then((function(t){return t.text()})).then((function(t){var r=new DOMParser,o=a.default(r.parseFromString(t,"text/html")),s=o.find(".js-movie-item"),u=o.find(".js-movie-permalink").find("a").attr("href");return void 0===u?(e._isLoadedAll=!0,i.url=""):i.url=u,n.addItems(s)})).then((function(){e._isLoadedAll||(i.observe(),e._isBusy=!1)})).catch((function(t){t.name}))}},e.BACKGROUND_COLOR=s.default.DEFAULT_DOMINANT_COLOR_LIGHT,e}(u.default);e.default=_},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(294)),a=i(n(2)),s=i(n(58)),u=function(){function t(){this._$container={},this._items=new Array}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){var r=t.find(".js-movie-item");e._createItems(r).then((function(i){e._$container=t,e._items=i,n()})).catch((function(t){i(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){for(var i=t._items,r=new Array,o=0;o<i.length;o++){var a=i[o];r.push(a.exit())}Promise.all(r).then((function(){t._items=[],e()})).catch((function(t){n(t)}))}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._items,o=new Array;i.addClass("is-visible");for(var a=0;a<r.length;a++){var s=r[a];o.push(s.show())}Promise.all(o).then((function(){t._addEvent(),e()})).catch((function(t){n(t)}))}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._items,o=new Array;t._removeEvent();for(var a=0;a<r.length;a++){var s=r[a];o.push(s.hide())}Promise.all(o).then((function(){i.removeClass("is-visible"),e()})).catch((function(t){n(t)}))}))},t.prototype.addItems=function(t){var e=this;return new Promise((function(n,i){var r=e._$container,o=e._items,u=new s.default,c=new Array;e._removeEvent(),r.append(t),u.setTimeout(a.default.INDEX_INTERVAL/64).then((function(){return e._createItems(t)})).then((function(t){for(var e=0;e<t.length;e++){var n=t[e];o.push(n),c.push(n.show())}return Promise.all(c)})).then((function(){e._addEvent(),n()})).catch((function(t){i(t)}))}))},t.prototype._addEvent=function(){for(var t=this,e=this._items,n=0;n<e.length;n++){var i=e[n];r.default(i).on("click",(function(e,n){r.default(t).trigger(e,[n])}))}},t.prototype._removeEvent=function(){for(var t=this._items,e=0;e<t.length;e++){var n=t[e];r.default(n).off("click")}},t.prototype._createItems=function(t){return new Promise((function(e,n){for(var i=new Array,a=new Array,s=0;s<t.length;s++){var u=new o.default;i.push(u),a.push(u.init(r.default(t[s])))}Promise.all(a).then((function(){e(i)})).catch((function(t){n(t)}))}))},t}();e.default=u},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(3)),a=i(n(6)),s=function(){function t(){this._$container={},this._id=""}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){var r=t.find(".js-movie-item__image"),o=t.find(".js-movie-item__image-background"),a=o.attr("data-image-source"),s=t.attr("data-item-id");e._getBackgroundColor(a).then((function(i){r.css({"background-color":i}),o.css({"background-color":i}),e._$container=t,e._id=s,n()})).catch((function(t){n()}))}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){t._$container.addClass("is-visible"),t._addEvent(),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container;t._removeEvent(),i.removeClass("is-visible"),e()}))},t.prototype.exit=function(){return new Promise((function(t,e){t()}))},Object.defineProperty(t.prototype,"$container",{get:function(){return this._$container},enumerable:!0,configurable:!0}),t.prototype._addEvent=function(){var t=this,e=this._$container,n=this._id;e.on("click",(function(e){return r.default(t).trigger(e,[n]),!1}))},t.prototype._removeEvent=function(){this._$container.off("click")},t.prototype._getBackgroundColor=function(t){return new Promise((function(e,n){a.default.getColorByUrl(t).then((function(t){e(o.default.rgbToRgbString(t.primary))})).catch((function(t){n(t)}))}))},t.DEFAULT_HEIGHT_SCALE=.25,t}();e.default=s},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(){this._$container={},this._observer={}}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){var r=new IntersectionObserver((function(t){e._callBack(t)}));e._$container=t,e._observer=r,n()}))},t.prototype.observe=function(){var t=this._$container;this._observer.observe(t[0])},t.prototype.unobserve=function(){var t=this._$container;this._observer.unobserve(t[0])},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._observer.disconnect(),e()}))},Object.defineProperty(t.prototype,"url",{get:function(){return this._$container.find("a").attr("href")},set:function(t){this._$container.find("a").attr({href:t})},enumerable:!0,configurable:!0}),t.prototype._callBack=function(e){var n=this;e.forEach((function(e){e.isIntersecting&&r.default(n).trigger(t.IN_VIEW)}))},t.IN_VIEW="inView",t}();e.default=o},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(17)),a=i(n(297)),s=i(n(299)),u=i(n(301)),c=function(){function t(){this._$container={},this._$headline={},this._$background={},this._$closeButton={},this._items=new a.default,this._thumbnails=new s.default,this._nextButton=new u.default,this._previousButton=new u.default}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){var r=e._items,o=e._thumbnails,a=e._nextButton,s=e._previousButton,u=t.find(".js-movie-gallery__headline"),c=t.find(".js-movie-gallery__background"),l=t.find(".js-movie-gallery__close-button"),f=t.find(".js-movie-gallery-items"),h=t.find(".js-movie-gallery-thumbnails"),d=t.find(".js-movie-gallery__next-button"),p=t.find(".js-movie-gallery__previous-button");Promise.all([r.init(f),o.init(h),a.init(d),s.init(p)]).then((function(){e._$container=t,e._$headline=u,e._$background=c,e._$closeButton=l,e._addEvent(),n()})).catch((function(t){i(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){var i=t._items,r=t._thumbnails,o=t._nextButton,a=t._previousButton;Promise.all([i.exit(),r.exit(),o.exit(),a.exit()]).then((function(){t._removeEvent(),e()})).catch((function(t){n(t)}))}))},t.prototype.show=function(t){var e=this;return new Promise((function(n,i){var r=e._$container,o=e._$headline,a=e._items,s=e._thumbnails,u=e._nextButton,c=e._previousButton;r.addClass("is-visible"),e._loadSrc(t).then((function(t){return!!t.custom_fields.name&&(r.addClass("has-headline"),o.text(t.custom_fields.name)),u.id=t.custom_fields.next,c.id=t.custom_fields.previous,Promise.all([a.load(t),s.load(t)])})).then((function(){return a.show()})).then((function(){n()})).catch((function(t){i(t)}))}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._$headline,a=t._items,s=t._thumbnails;o.default.abort(),Promise.all([a.clear(),s.clear()]).then((function(){i.removeClass("is-visible"),i.removeClass("has-headline"),r.empty(),e()})).catch((function(t){n(t)}))}))},t.prototype._update=function(t){var e=this;return new Promise((function(n,i){var r=e._$container,a=e._$headline,s=e._items,u=e._thumbnails,c=e._nextButton,l=e._previousButton;a.empty(),r.removeClass("has-headline"),o.default.abort(),Promise.all([s.clear(),u.clear()]).then((function(){return e._loadSrc(t)})).then((function(t){return!!t.custom_fields.name&&(r.addClass("has-headline"),a.text(t.custom_fields.name)),c.id=t.custom_fields.next,l.id=t.custom_fields.previous,Promise.all([s.load(t),u.load(t)])})).then((function(){return s.show()})).then((function(){n()})).catch((function(t){i(t)}))}))},t.prototype._loadSrc=function(t){return new Promise((function(e,n){o.default.fetchPost("movie",t).then((function(t){e(t)})).catch((function(t){n(t)}))}))},t.prototype._addEvent=function(){var t=this,e=(this._$headline,this._$closeButton),n=this._items,i=this._thumbnails,o=this._nextButton,a=this._previousButton;e.on("click",(function(){return t.hide(),!1})),r.default(i).on("click",(function(t,e){n.show(e)})),r.default(o).on("click",(function(e,n){t._update(n)})),r.default(a).on("click",(function(e,n){t._update(n)}))},t.prototype._removeEvent=function(){var t=this._$closeButton,e=this._thumbnails,n=this._nextButton,i=this._previousButton;t.off("click"),r.default(e).off("click"),r.default(n).off("click"),r.default(i).off("click")},t}();e.default=c},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(298)),o=function(){function t(){this._$container={},this._items=new Array,this._current=0}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t,n()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t.clear().then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype.load=function(t){var e=this;return new Promise((function(n,i){var r=e._$container;e._createItems(t).then((function(t){for(var i=0;i<t.length;i++){var o=t[i];r.append(o.$container)}e._items=t,n()})).catch((function(t){i(t)}))}))},t.prototype.clear=function(){var t=this;return new Promise((function(e,n){for(var i=t._$container,r=t._items,o=new Array,a=0;a<r.length;a++){var s=r[a];o.push(s.exit())}
2Promise.all(o).then((function(){i.empty(),t._items=[],t._current=0,e()})).catch((function(t){n(t)}))}))},t.prototype.show=function(t){var e=this;return void 0===t&&(t=0),new Promise((function(n,i){var r=e._items,o=e._current;r[o].hide().then((function(){return r[t].show()})).then((function(){e._current=t,n()})).catch((function(t){i(t)}))}))},t.prototype._createItems=function(t){return new Promise((function(e,n){var i=new Array,o=new Array,a=t.acf.movie_image,s=t.acf.movie_video,u=t.acf.movie_related_items,c=new r.default;o.push(c.init(a,!0,s)),i.push(c);for(var l=0;l<u.length;l++){var f=u[l],h=new r.default;o.push(h.init(f)),i.push(h)}Promise.all(o).then((function(){e(i)})).catch((function(t){n(t)}))}))},t}();e.default=o},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(3)),a=i(n(6)),s=i(n(2)),u=i(n(16)),c=i(n(22)),l=function(){function t(){this._$container={},this._$background={},this._$image={},this._isVideo=!1}return t.prototype.init=function(t,e,n){var i=this;return void 0===e&&(e=!1),void 0===n&&(n={}),new Promise((function(o,a){var s=r.default("<li></li>"),u=r.default("<div></div>"),c=r.default("<div></div>"),l=r.default("<div></div>"),f=r.default("<picture></picture>"),h=r.default("<source></source>"),d=r.default("<img>"),p="gif"==t.subtype,_=p?t.url:t.sizes.image_2048x0,m=p?t.url:t.sizes.image_2048x0,v=p?t.url:t.sizes.image_1152x0;
2e&&(s.attr({"data-video-id":n.movie_video_id,"data-video-platform":n.movie_video_platform}),s.addClass("is-video")),s.addClass("p-gallery__item"),u.addClass("p-gallery__item__holder"),c.addClass("p-gallery__item__image"),l.addClass("p-gallery__item__background"),h.attr({media:"(max-width:768px)",srcset:v}),d.attr({srcset:_+" 1x, "+m+" 2x",src:_,alt:"",decoding:"async"}),f.append(h),f.append(d),c.append(f),u.append(c),u.append(l),s.append(u),i._getBackgroundColor(t.sizes.image_128x128).then((function(n){l.css({"background-color":n}),i._$container=s,i._$background=l,i._$image=c,i._src=t,i._isVideo=e,e&&i._addEvent(),o()})).catch((function(t){a(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){var i=t._$container;t._isVideo&&t._removeEvent(),i.empty(),t._src={},t._isVideo=!1,e()}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._$background,o=t._src,a=o.sizes.image_2048x0,c=o.sizes.image_2048x0,l=o.sizes.image_1152x0,f=window.devicePixelRatio,h=s.default.isMobile?l:f>1?c:a;(new u.default).load(h).then((function(){var t=o.width,n=o.height/t,a=i.width(),s=i.height(),u=a*n>s?s/n:a,c=a*n>s?s:a*n;r.css({width:u,height:c}),i.addClass("is-visible"),e()})).catch((function(t){n(t)}))}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){t._$container.removeClass("is-visible"),e()}))},Object.defineProperty(t.prototype,"$container",{get:function(){return this._$container},enumerable:!0,configurable:!0}),t.prototype._addEvent=function(){var t=this._$container,e=this._$image,n=t.attr("data-video-id"),i=t.attr("data-video-platform");e.on("click",(function(){return c.default.load(n,i).then((function(){c.default.show()})).catch((function(t){})),!1}))},t.prototype._removeEvent=function(){this._$image.off("click")},t.prototype._getBackgroundColor=function(t){return new Promise((function(e,n){a.default.getColorByUrl(t).then((function(t){e(o.default.rgbToRgbString(t.primary))})).catch((function(t){n(t)}))}))},t}();e.default=l},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(300)),a=function(){function t(){this._$container={},this._$list={},this._items=new Array,this._current=0}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){var r=t.find(".js-movie-gallery-thumbnails__list");e._$container=t,e._$list=r,n()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t.clear().then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype.load=function(t){var e=this;return new Promise((function(n,i){e._$container;var r=e._$list;e._items=[],e._createItems(t).then((function(t){for(var i=0;i<t.length;i++){var o=t[i];r.append(o.$container)}e._items=t,e._setCurrent(),e._addEvent(),n()})).catch((function(t){i(t)}))}))},t.prototype.clear=function(){var t=this;return new Promise((function(e,n){t._$container;var i=t._$list,r=t._items,o=new Array;t._removeEvent();for(var a=0;a<r.length;a++){var s=r[a];o.push(s.exit())}Promise.all(o).then((function(){i.empty(),t._items=[],t._current=0,e()})).catch((function(t){n(t)}))}))},t.prototype._setCurrent=function(t){void 0===t&&(t=0);var e=this._items,n=e[this._current],i=e[t];n&&i&&(n.$container.removeClass("is-current"),i.$container.addClass("is-current"),this._current=t)},t.prototype._createItems=function(t){return new Promise((function(e,n){var i=new Array,r=new Array,a=t.acf.movie_image,s=t.acf.movie_related_items;if(s.length>0){var u=new o.default;r.push(u.init(a,0,!0)),i.push(u);for(var c=0;c<s.length;c++){var l=s[c],f=new o.default;r.push(f.init(l,c+1)),i.push(f)}Promise.all(r).then((function(){e(i)})).catch((function(t){n(t)}))}else e(new Array)}))},t.prototype._addEvent=function(){for(var t=this,e=this._items,n=0;n<e.length;n++){var i=e[n];r.default(i).on("click",(function(e,n){return t._setCurrent(n),r.default(t).trigger(e,[n]),!1}))}},t.prototype._removeEvent=function(){for(var t=this._items,e=0;e<t.length;e++){var n=t[e];r.default(n).off("click")}},t}();e.default=a},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(3)),a=i(n(6)),s=function(){function t(){this._$container={},this._index=0}return t.prototype.init=function(t,e,n){var i=this;return void 0===n&&(n=!1),new Promise((function(n,o){var a=r.default("<li></li>"),s=r.default("<picture></picture>"),u=r.default("<source></source>"),c=r.default("<img>"),l=t.sizes.image_0x384,f=t.sizes.image_0x384,h=t.sizes.image_0x384;u.attr({media:"(max-width:768px)",srcset:h}),c.attr({srcset:l+" 1x, "+f+" 2x",src:l,alt:"",decoding:"async"}),s.append(u),s.append(c),a.append(s),s.addClass("p-gallery__thumbnail__item__image"),a.addClass("p-gallery__thumbnail__item"),i._getBackgroundColor(t.sizes.image_128x128).then((function(t){a.css({"background-color":t}),i._$container=a,i._index=e,i._addEvent(),n()})).catch((function(t){o(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._$container.empty(),t._removeEvent(),t._index=0,e()}))},Object.defineProperty(t.prototype,"$container",{get:function(){return this._$container},enumerable:!0,configurable:!0}),t.prototype._addEvent=function(){var t=this,e=this._$container,n=this._index;e.on("click",(function(e){r.default(t).trigger(e,[n])}))},t.prototype._removeEvent=function(){this._$container.off("click")},t.prototype._getBackgroundColor=function(t){return new Promise((function(e,n){a.default.getColorByUrl(t).then((function(t){e(o.default.rgbToRgbString(t.primary))})).catch((function(t){n(t)}))}))},t}();e.default=s},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(){this._$container={},this._id=""}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t,e._addEvent(),n()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._removeEvent(),e()}))},Object.defineProperty(t.prototype,"id",{set:function(t){var e=this._$container;""==t?e.addClass("is-disabled"):e.removeClass("is-disabled"),this._id=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._id},enumerable:!0,configurable:!0}),t.prototype._addEvent=function(){var t=this;this._$container.on("click",(function(e){var n=t._id;return r.default(t).trigger(e,n),!1}))},t.prototype._removeEvent=function(){this._$container.off("click")},t}();e.default=o},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(1)),s=o(n(2)),u=o(n(10)),c=o(n(5)),l=o(n(4)),f=o(n(7)),h=o(n(303)),d=o(n(305)),p=o(n(306)),_=function(t){function e(e){void 0===e&&(e="archive-works");var n=this;return(n=t.call(this,e)||this)._items=new h.default,n._permalink=new d.default,n._gallery=new p.default,n._controller=new AbortController,n._isLoadedAll=!1,n._isBusy=!1,n}return r(e,t),e.prototype.onLeave=function(t){var e=this;return new Promise((function(t,n){var i=e._items,r=e._permalink,o=e._gallery,a=e._controller;e._removeEvent(),r.unobserve(),a.abort(),Promise.all([i.hide(),l.default.clearBackground()]).then((function(){return f.default.show()})).then((function(){return Promise.all([i.exit(),r.exit(),o.exit()])})).then((function(){e._isLoadedAll=!1,e._isBusy=!1,t()})).catch((function(t){n(t)}))}))},e.prototype.onEnter=function(t){var n=this;return new Promise((function(i,r){var o=a.default(t.next.container),s=o.find(".js-works-items"),u=o.find(".js-works-permalink"),f=o.find(".js-works-gallery"),h=n._items,d=n._permalink,p=n._gallery;n._$container=o,Promise.all([h.init(s),d.init(u),p.init(f),c.default.show()]).then((function(){return c.default.update(e.BACKGROUND_COLOR)}
2)).then((function(){c.default.hide(),l.default.fillBackground(),i()})).catch((function(t){i()})).catch((function(t){r(t)}))}))},e.prototype.onAfter=function(t){var e=this;return new Promise((function(t,n){var i=e._items,r=e._permalink;f.default.hide().then((function(){return i.show()})).then((function(){r.observe(),e._addEvent(),t()})).catch((function(t){n(t)}))}))},e.prototype.onBeforeResize=function(t,e){},e.prototype.onAfterResize=function(t,e){},e.prototype._addEvent=function(){var t=this,e=this._items,n=this._permalink,i=this._gallery;a.default(e).on("click",(function(t,e){i.show(e)})),a.default(n).on(d.default.IN_VIEW,(function(){t._fetch(n.url)}))},e.prototype._removeEvent=function(){var t=this._items,e=this._permalink;a.default(t).off("click"),a.default(e).off(d.default.IN_VIEW)},e.prototype._fetch=function(t){var e=this;if(!this._isBusy){var n=this._items,i=this._permalink;this._controller=new AbortController,this._isBusy=!0,i.unobserve(),fetch(t,{signal:this._controller.signal}).then((function(t){return t.text()})).then((function(t){var r=new DOMParser,o=a.default(r.parseFromString(t,"text/html")),s=o.find(".js-works-item"),u=o.find(".js-works-permalink").find("a").attr("href");return void 0===u?(e._isLoadedAll=!0,i.url=""):i.url=u,n.addItems(s)})).then((function(){e._isLoadedAll||(i.observe(),e._isBusy=!1)})).catch((function(t){t.name}))}},e.BACKGROUND_COLOR=s.default.DEFAULT_DOMINANT_COLOR_LIGHT,e}(u.default);e.default=_},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(304)),a=i(n(2)),s=i(n(58)),u=function(){function t(){this._$container={},this._items=new Array}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){var r=t.find(".js-works-item");e._createItems(r).then((function(i){e._$container=t,e._items=i,n()})).catch((function(t){i(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){for(var i=t._items,r=new Array,o=0;o<i.length;o++){var a=i[o];r.push(a.exit())}Promise.all(r).then((function(){t._items=[],e()})).catch((function(t){n(t)}))}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._items,o=new Array;i.addClass("is-visible");for(var a=0;a<r.length;a++){var s=r[a];o.push(s.show())}Promise.all(o).then((function(){t._addEvent(),e()})).catch((function(t){n(t)}))}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._items,o=new Array;t._removeEvent();for(var a=0;a<r.length;a++){var s=r[a];o.push(s.hide())}Promise.all(o).then((function(){i.removeClass("is-visible"),e()})).catch((function(t){n(t)}))}))},t.prototype.addItems=function(t){var e=this;return new Promise((function(n,i){var r=e._$container,o=e._items,u=new s.default,c=new Array;e._removeEvent(),r.append(t),u.setTimeout(a.default.INDEX_INTERVAL/64).then((function(){return e._createItems(t)})).then((function(t){for(var e=0;e<t.length;e++){var n=t[e];o.push(n),c.push(n.show())}return Promise.all(c)})).then((function(){e._addEvent(),n()})).catch((function(t){i(t)}))}))},t.prototype._addEvent=function(){for(var t=this,e=this._items,n=0;n<e.length;n++){var i=e[n];r.default(i).on("click",(function(e,n){r.default(t).trigger(e,[n])}))}},t.prototype._removeEvent=function(){for(var t=this._items,e=0;e<t.length;e++){var n=t[e];r.default(n).off("click")}},t.prototype._createItems=function(t){return new Promise((function(e,n){for(var i=new Array,a=new Array,s=0;s<t.length;s++){var u=new o.default;i.push(u),a.push(u.init(r.default(t[s])))}Promise.all(a).then((function(){e(i)})).catch((function(t){n(t)}))}))},t}();e.default=u},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(3)),a=i(n(6)),s=function(){function t(){this._$container={},this._id=""}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){var r=t.find(".js-works-item__image"),o=t.find(".js-works-item__image-background"),a=o.attr("data-image-source"),s=t.attr("data-item-id");
2e._getBackgroundColor(a).then((function(i){r.css({"background-color":i}),o.css({"background-color":i}),e._$container=t,e._id=s,n()})).catch((function(t){n()}))}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){var i=t._$container;console,i.addClass("is-visible"),t._addEvent(),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container;t._removeEvent(),i.removeClass("is-visible"),e()}))},t.prototype.exit=function(){return new Promise((function(t,e){t()}))},Object.defineProperty(t.prototype,"$container",{get:function(){return this._$container},enumerable:!0,configurable:!0}),t.prototype._addEvent=function(){var t=this,e=this._$container,n=this._id;e.on("click",(function(e){return r.default(t).trigger(e,[n]),!1}))},t.prototype._removeEvent=function(){this._$container.off("click")},t.prototype._getBackgroundColor=function(t){return new Promise((function(e,n){a.default.getColorByUrl(t).then((function(t){e(o.default.rgbToRgbString(t.primary))})).catch((function(t){n(t)}))}))},t.DEFAULT_HEIGHT_SCALE=.25,t}();e.default=s},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(){this._$container={},this._observer={}}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){var r=new IntersectionObserver((function(t){e._callBack(t)}));e._$container=t,e._observer=r,n()}))},t.prototype.observe=function(){var t=this._$container;this._observer.observe(t[0])},t.prototype.unobserve=function(){var t=this._$container;this._observer.unobserve(t[0])},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._observer.disconnect(),e()}))},Object.defineProperty(t.prototype,"url",{get:function(){return this._$container.find("a").attr("href")},set:function(t){this._$container.find("a").attr({href:t})},enumerable:!0,configurable:!0}),t.prototype._callBack=function(e){var n=this;e.forEach((function(e){e.isIntersecting&&r.default(n).trigger(t.IN_VIEW)}))},t.IN_VIEW="inView",t}();e.default=o},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(17)),a=i(n(307)),s=i(n(309)),u=i(n(311)),c=function(){function t(){this._$container={},this._$headline={},this._$background={},this._$closeButton={},this._items=new a.default,this._thumbnails=new s.default,this._nextButton=new u.default,this._previousButton=new u.default}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){var r=e._items,o=e._thumbnails,a=e._nextButton,s=e._previousButton,u=t.find(".js-works-gallery__headline"),c=t.find(".js-works-gallery__background"),l=t.find(".js-works-gallery__close-button"),f=t.find(".js-works-gallery-items"),h=t.find(".js-works-gallery-thumbnails"),d=t.find(".js-works-gallery__next-button"),p=t.find(".js-works-gallery__previous-button");Promise.all([r.init(f),o.init(h),a.init(d),s.init(p)]).then((function(){e._$container=t,e._$headline=u,e._$background=c,e._$closeButton=l,e._addEvent(),n()})).catch((function(t){i(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){var i=t._items,r=t._thumbnails,o=t._nextButton,a=t._previousButton;Promise.all([i.exit(),r.exit(),o.exit(),a.exit()]).then((function(){t._removeEvent(),e()})).catch((function(t){n(t)}))}))},t.prototype.show=function(t){var e=this;return new Promise((function(n,i){var r=e._$container,o=e._$headline,a=e._items,s=e._thumbnails,u=e._nextButton,c=e._previousButton;r.addClass("is-visible"),e._loadSrc(t).then((function(t){return!!t.custom_fields.name&&(r.addClass("has-headline"),o.text(t.custom_fields.name)),u.id=t.custom_fields.next,c.id=t.custom_fields.previous,Promise.all([a.load(t),s.load(t)])})).then((function(){return a.show()})).then((function(){n()})).catch((function(t){i(t)}))}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._$headline,a=t._items,s=t._thumbnails;o.default.abort(),Promise.all([a.clear(),s.clear()]).then((function(){i.removeClass("is-visible"),i.removeClass("has-headline"),r.empty(),e()})).catch((function(t){n(t)}))}))},t.prototype._update=function(t){var e=this;return new Promise((function(n,i){var r=e._$container,a=e._$headline,s=e._items,u=e._thumbnails,c=e._nextButton,l=e._previousButton;a.empty(),r.removeClass("has-headline"),o.default.abort(),Promise.all([s.clear(),u.clear()]).then((function(){return e._loadSrc(t)})).then((function(t){return!!t.custom_fields.name&&(r.addClass("has-headline"),a.text(t.custom_fields.name)),c.id=t.custom_fields.next,l.id=t.custom_fields.previous,Promise.all([s.load(t),u.load(t)])})).then((function(){return s.show()})).then((function(){n()})).catch((function(t){i(t)}))}))},t.prototype._loadSrc=function(t){return new Promise((function(e,n){o.default.fetchPost("works",t).then((function(t){e(t)}
2)).catch((function(t){n(t)}))}))},t.prototype._addEvent=function(){var t=this,e=(this._$headline,this._$closeButton),n=this._items,i=this._thumbnails,o=this._nextButton,a=this._previousButton;e.on("click",(function(){return t.hide(),!1})),r.default(i).on("click",(function(t,e){n.show(e)})),r.default(o).on("click",(function(e,n){t._update(n)})),r.default(a).on("click",(function(e,n){t._update(n)}))},t.prototype._removeEvent=function(){var t=this._$closeButton,e=this._thumbnails,n=this._nextButton,i=this._previousButton;t.off("click"),r.default(e).off("click"),r.default(n).off("click"),r.default(i).off("click")},t}();e.default=c},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(308)),o=function(){function t(){this._$container={},this._items=new Array,this._current=0}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t,n()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t.clear().then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype.load=function(t){var e=this;return new Promise((function(n,i){var r=e._$container;e._createItems(t).then((function(t){for(var i=0;i<t.length;i++){var o=t[i];r.append(o.$container)}e._items=t,n()})).catch((function(t){i(t)}))}))},t.prototype.clear=function(){var t=this;return new Promise((function(e,n){for(var i=t._$container,r=t._items,o=new Array,a=0;a<r.length;a++){var s=r[a];o.push(s.exit())}Promise.all(o).then((function(){i.empty(),t._items=[],t._current=0,e()})).catch((function(t){n(t)}))}))},t.prototype.show=function(t){var e=this;return void 0===t&&(t=0),new Promise((function(n,i){var r=e._items,o=e._current;r[o].hide().then((function(){return r[t].show()})).then((function(){e._current=t,n()})).catch((function(t){i(t)}))}))},t.prototype._createItems=function(t){return new Promise((function(e,n){var i=new Array,o=new Array,a=new r.default,s=t.acf.works_image,u=t.acf.works_video,c=t.acf.works_related_items,l=t.acf.works_related_video;
2if(""!=u.works_video_id){var f={id:u.works_video_id,platform:u.works_video_platform};o.push(a.init(s,f))}else o.push(a.init(s));if(i.push(a),l)for(var h=0;h<l.length;h++){var d=l[h].works_related_video_thumbnail,p=(f={id:l[h].works_related_video_id,platform:l[h].works_related_video_platform},new r.default);o.push(p.init(d,f)),i.push(p)}for(h=0;h<c.length;h++){var _=c[h];p=new r.default;o.push(p.init(_)),i.push(p)}Promise.all(o).then((function(){e(i)})).catch((function(t){n(t)}))}))},t}();e.default=o},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(3)),a=i(n(6)),s=i(n(2)),u=i(n(16)),c=i(n(22)),l=function(){function t(){this._$container={},this._$background={},this._$image={},this._isVideo=!1}return t.prototype.init=function(t,e){var n=this;return new Promise((function(i,o){var a=r.default("<li></li>"),s=r.default("<div></div>"),u=r.default("<div></div>"),c=r.default("<div></div>"),l=r.default("<picture></picture>"),f=r.default("<source></source>"),h=r.default("<img>"),d="gif"==t.subtype,p=d?t.url:t.sizes.image_2048x0,_=d?t.url:t.sizes.image_2048x0,m=d?t.url:t.sizes.image_1152x0,v=!!e;
2e&&(a.attr({"data-video-id":e.id,"data-video-platform":e.platform}),a.addClass("is-video")),a.addClass("p-gallery__item"),s.addClass("p-gallery__item__holder"),u.addClass("p-gallery__item__image"),c.addClass("p-gallery__item__background"),f.attr({media:"(max-width:768px)",srcset:m}),h.attr({srcset:p+" 1x, "+_+" 2x",src:p,alt:"",decoding:"async"}),l.append(f),l.append(h),u.append(l),s.append(u),s.append(c),a.append(s),n._getBackgroundColor(t.sizes.image_128x128).then((function(e){c.css({"background-color":e}),n._$container=a,n._$background=c,n._$image=u,n._src=t,n._isVideo=v,v&&n._addEvent(),i()})).catch((function(t){o(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){var i=t._$container;t._isVideo&&t._removeEvent(),i.empty(),t._src={},t._isVideo=!1,e()}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._$background,o=t._src,a=o.sizes.image_2048x0,c=o.sizes.image_2048x0,l=o.sizes.image_1152x0,f=window.devicePixelRatio,h=s.default.isMobile?l:f>1?c:a;(new u.default).load(h).then((function(){var t=o.width,n=o.height/t,a=i.width(),s=i.height(),u=a*n>s?s/n:a,c=a*n>s?s:a*n;r.css({width:u,height:c}),i.addClass("is-visible"),e()})).catch((function(t){n(t)}))}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){t._$container.removeClass("is-visible"),e()}))},Object.defineProperty(t.prototype,"$container",{get:function(){return this._$container},enumerable:!0,configurable:!0}),t.prototype._addEvent=function(){var t=this._$container,e=this._$image,n=t.attr("data-video-id"),i=t.attr("data-video-platform");e.on("click",(function(){return c.default.load(n,i).then((function(){c.default.show()})).catch((function(t){})),!1}))},t.prototype._removeEvent=function(){this._$image.off("click")},t.prototype._getBackgroundColor=function(t){return new Promise((function(e,n){a.default.getColorByUrl(t).then((function(t){e(o.default.rgbToRgbString(t.primary))})).catch((function(t){n(t)}))}))},t}();e.default=l},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(310)),a=function(){function t(){this._$container={},this._$list={},this._items=new Array,this._current=0}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){var r=t.find(".js-works-gallery-thumbnails__list");e._$container=t,e._$list=r,n()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t.clear().then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype.load=function(t){var e=this;return new Promise((function(n,i){e._$container;var r=e._$list;e._items=[],e._createItems(t).then((function(t){for(var i=0;i<t.length;i++){var o=t[i];r.append(o.$container)}e._items=t,e._setCurrent(),e._addEvent(),n()})).catch((function(t){i(t)}))}))},t.prototype.clear=function(){var t=this;return new Promise((function(e,n){t._$container;var i=t._$list,r=t._items,o=new Array;t._removeEvent();for(var a=0;a<r.length;a++){var s=r[a];o.push(s.exit())}Promise.all(o).then((function(){i.empty(),t._items=[],t._current=0,e()})).catch((function(t){n(t)}))}))},t.prototype._setCurrent=function(t){void 0===t&&(t=0);var e=this._items,n=e[this._current],i=e[t];n&&i&&(n.$container.removeClass("is-current"),i.$container.addClass("is-current"),this._current=t)},t.prototype._createItems=function(t){return new Promise((function(e,n){var i=new Array,r=new Array,a=new o.default,s=t.acf.works_image,u=t.acf.works_related_items,c=t.acf.works_related_video,l=0;if(r.push(a.init(s,l)),i.push(a),l++,u||c){if(c)for(var f=0;f<c.length;f++){var h=c[f].works_related_video_thumbnail,d=new o.default;r.push(d.init(h,l)),i.push(d),l++}for(f=0;f<u.length;f++){var p=u[f];d=new o.default;r.push(d.init(p,l)),i.push(d),l++}Promise.all(r).then((function(){e(i)})).catch((function(t){n(t)}))}else e(new Array)}))},t.prototype._addEvent=function(){for(var t=this,e=this._items,n=0;n<e.length;n++){var i=e[n];r.default(i).on("click",(function(e,n){return t._setCurrent(n),r.default(t).trigger(e,[n]),!1}))}},t.prototype._removeEvent=function(){for(var t=this._items,e=0;e<t.length;e++){var n=t[e];r.default(n).off("click")}},t}();e.default=a},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(3)),a=i(n(6)),s=function(){function t(){this._$container={},this._index=0}return t.prototype.init=function(t,e){var n=this;return new Promise((function(i,o){var a=r.default("<li></li>"),s=r.default("<picture></picture>"),u=r.default("<source></source>"),c=r.default("<img>"),l=t.sizes.image_0x384,f=t.sizes.image_0x384,h=t.sizes.image_0x384;u.attr({media:"(max-width:768px)",srcset:h}),c.attr({srcset:l+" 1x, "+f+" 2x",src:l,alt:"",decoding:"async"}),s.append(u),s.append(c),a.append(s),s.addClass("p-gallery__thumbnail__item__image"),a.addClass("p-gallery__thumbnail__item"),n._getBackgroundColor(t.sizes.image_16x16).then((function(t){a.css({"background-color":t}),n._$container=a,n._index=e,n._addEvent(),i()})).catch((function(t){o(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._$container.empty(),t._removeEvent(),t._index=0,e()}))},Object.defineProperty(t.prototype,"$container",{get:function(){return this._$container},enumerable:!0,configurable:!0}),t.prototype._addEvent=function(){var t=this,e=this._$container,n=this._index;e.on("click",(function(e){r.default(t).trigger(e,[n])}))},t.prototype._removeEvent=function(){this._$container.off("click")},t.prototype._getBackgroundColor=function(t){return new Promise((function(e,n){a.default.getColorByUrl(t).then((function(t){e(o.default.rgbToRgbString(t.primary))})).catch((function(t){n(t)}))}))},t}();e.default=s},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(){this._$container={},this._id=""}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t,e._addEvent(),n()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._removeEvent(),e()}))},Object.defineProperty(t.prototype,"id",{set:function(t){var e=this._$container;""==t?e.addClass("is-disabled"):e.removeClass("is-disabled"),this._id=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._id},enumerable:!0,configurable:!0}),t.prototype._addEvent=function(){var t=this;this._$container.on("click",(function(e){var n=t._id;return r.default(t).trigger(e,n),!1}))},t.prototype._removeEvent=function(){this._$container.off("click")},t}();e.default=o},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(1)),s=o(n(35)),u=o(n(2)),c=o(n(10)),l=o(n(5)),f=o(n(4)),h=o(n(7)),d=o(n(313)),p=function(t){function e(e){void 0===e&&(e="archive-exhibition");var n=this;return(n=t.call(this,e)||this)._exhibitions=new d.default,n}return r(e,t),e.prototype.onLeave=function(t){var e=this;return new Promise((function(t,n){var i=e._exhibitions;Promise.all([i.hide(),f.default.clearBackground()]).then((function(){return h.default.show()})).then((function(){return i.exit()})).then((function(){t()})).catch((function(t){n(t)}))}))},e.prototype.onEnter=function(t){var n=this;return new Promise((function(i,r){var o=a.default(t.next.container),u=o.find(".js-exhibitions"),c=n._exhibitions,h=new Array;n._$container=o,h.push(c.init(u)),h.push(l.default.show()),h.push(s.default.load()),Promise.all(h).then((function(){return l.default.update(e.BACKGROUND_COLOR)})).then((function(){l.default.hide(),f.default.fillBackground(),i()})).catch((function(t){r(t)}))}))},e.prototype.onAfter=function(t){var e=this;return new Promise((function(t,n){var i=e._exhibitions;h.default.hide().then((function(){return i.show()})).then((function(){t()})).catch((function(t){n(t)}))}))},e.prototype.onBeforeResize=function(t,e){this._exhibitions.onBeforeResize(t,e)},e.prototype.onAfterResize=function(t,e){this._exhibitions.onAfterResize(t,e)},e.BACKGROUND_COLOR=u.default.DEFAULT_DOMINANT_COLOR_LIGHT,e}(c.default);e.default=p},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(314)),a=function(){function t(){this._exhibitions=new Array}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t;for(var a=e._exhibitions,s=t.find(".js-exhibition"),u=0;u<s.length;u++){var c=r.default(s[u]),l=new o.default;l.init(c),a.push(l)}n()}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){for(var i=t._$container,r=t._exhibitions,o=new Array,a=0;a<r.length;a++){var s=r[a];o.push(s.show())}i.addClass("is-visible"),Promise.all(o).then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){for(var i=t._$container,r=t._exhibitions,o=new Array,a=0;a<r.length;a++){var s=r[a];o.push(s.hide())}Promise.all(o).then((function(){i.removeClass("is-visible"),e()})).catch((function(t){n(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._$container;for(var i=t._exhibitions,r=new Array,o=0;o<i.length;o++){var a=i[o];r.push(a.exit())}Promise.all(r).then((function(){t._exhibitions=[],e()})).catch((function(t){n(t)}))}))},t.prototype.onBeforeResize=function(t,e){for(var n=this._exhibitions,i=0;i<n.length;i++){n[i].onBeforeResize(t,e)}},t.prototype.onAfterResize=function(t,e){for(var n=this._exhibitions,i=0;i<n.length;i++){n[i].onAfterResize(t,e)}},t.prototype._addEvent=function(){},t.prototype._removeEvent=function(){},t}();e.default=a},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(315)),o=function(){function t(){}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t;var o=t.find(".js-exhibition__gallery");o.find(".js-exhibition__images").children().length>0&&(e._images=new r.default,e._images.init(o)),n()}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._images;i.addClass("is-visible"),r?r.show().then((function(){e()})).catch((function(t){n(t)})):e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){var i=t._$container,r=t._images;r?r.hide().then((function(){i.removeClass("is-visible"),e()})).catch((function(t){n(t)})):(i.removeClass("is-visible"),e())}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._$container;var i=t._images;i?i.exit().then((function(){e()})).catch((function(t){n(t)})):e()}))},t.prototype.onBeforeResize=function(t,e){var n=this._images;n&&n.onBeforeResize(t,e)},t.prototype.onAfterResize=function(t,e){var n=this._images;n&&n.onAfterResize(t,e)},t.prototype._addEvent=function(){},t.prototype._removeEvent=function(){},t}();e.default=o},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(){this._animationId=0,this._threshold=0}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t,e._$images=t.find(".js-exhibition__images");var o=e._$images,a=r.default(o.children(".js-exhibition__image")[0]).clone();o.append(a),n()}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){var i=t._$container;t._resize(),t._start(),i.addClass("is-visible"),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){t._$container.removeClass("is-visible"),t._stop(),e()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._$container;t.hide().then((function(){t._animationId=0,t._threshold=0,e()})).catch((function(t){n(t)}))}))},t.prototype.onBeforeResize=function(t,e){this._stop()},t.prototype.onAfterResize=function(t,e){this._resize(),this._start()},t.prototype._resize=function(){var t=this._$images,e=this._$images.children(".js-exhibition__image"),n=0;this._threshold=0;for(var i=0;i<e.length;i++){var o=r.default(e[i]),a=o.find("img"),s=Number(a.width());o.css({width:s}),i<e.length-1&&(this._threshold+=s),n+=s}t.css({left:0,width:Math.ceil(n)})},t.prototype._start=function(){this._update()},t.prototype._stop=function(){window.cancelAnimationFrame(this._animationId)},t.prototype._update=function(){var e=this;this._animationId=window.requestAnimationFrame((function(){var n=e._$images,i=parseFloat(n.css("left"));i<=-1*e._threshold?n.css("left",0):n.css("left",Number(i-t.VELOCITY)),e._update()}))},t.VELOCITY=.5,t}();e.default=o},function(t,e,n){"use strict";
2var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(1)),s=o(n(35)),u=o(n(2)),c=o(n(10)),l=o(n(99)),f=o(n(5)),h=o(n(4)),d=o(n(7)),p=o(n(59)),_=o(n(318)),m=o(n(319)),v=o(n(320)),g=function(t){function e(e){void 0===e&&(e="page-about");var n=this;return(n=t.call(this,e)||this)._profile=new _.default,n._biography=new m.default,n._organization=new v.default,n._language=new p.default,n._anchorLink=new l.default,n}return r(e,t),e.prototype.onLeave=function(t){var e=this;return new Promise((function(t,n){var i=e._profile,r=e._biography,o=e._organization,a=e._language,s=e._anchorLink;e._removeEvent(),Promise.all([i.hide(),r.hide(),o.hide(),s.hide(),h.default.clearBackground()]).then((function(){return d.default.show()})).then((function(){return Promise.all([i.exit(),r.exit(),o.exit(),a.exit(),s.exit()])})).then((function(){t()})).catch((function(t){n(t)}))}))},e.prototype.onEnter=function(t){var n=this;return new Promise((function(i,r){n._$container=a.default(t.next.container);var o=a.default(t.next.container),u=o.find(".js-about__profile"),c=o.find(".js-about__biography"),l=o.find(".js-about__organization"),d=o.find(".js-language"),p=o.find(".js-anchor-link"),_=n._profile,m=n._biography,v=n._organization,g=n._language,y=n._anchorLink,b=new Array;b.push(_.init(u)),b.push(m.init(c)),b.push(v.init(l)),b.push(g.init(d)),b.push(y.init(p)),b.pu
2sh(f.default.show()),b.push(s.default.load()),Promise.all(b).then((function(){return f.default.update(e.BACKGROUND_COLOR)})).then((function(){g.isEn&&o.addClass("is-en"),f.default.hide(),h.default.fillBackground(),n._$container=o,i()})).catch((function(t){r(t)}))}))},e.prototype.onAfter=function(t){var e=this;return new Promise((function(t,n){var i=e._profile,r=e._biography,o=e._organization,a=e._language,s=e._anchorLink;d.default.hide().then((function(){return Promise.all([i.show(),r.show(),o.show(),s.show()])})).then((function(){e._addEvent(),a.enable(),t()})).catch((function(t){n(t)}))}))},e.prototype._addEvent=function(){var t=this._$container,e=this._language;a.default(e).on(p.default.ON_CHANGE,(function(e,n){n==p.default.MODE_EN?t.addClass("is-en"):t.removeClass("is-en")}))},e.prototype._removeEvent=function(){var t=this._language;a.default(t).off(p.default.ON_CHANGE)},e.BACKGROUND_COLOR=u.default.DEFAULT_DOMINANT_COLOR_LIGHT,e}(c.default);e.default=g},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(){this._$container={},this._isSelected=!1}return t.prototype.init=function(t,e){var n=this;return new Promise((function(i,r){n._$container=t,e&&n.toggle(),n._addEvent(),i()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._removeEvent(),t._isSelected=!1,e()}))},t.prototype.toggle=function(){var t=this._$container;this._isSelected?(t.removeClass("is-selected"),this._isSelected=!1):(t.addClass("is-selected"),this._isSelected=!0)},Object.defineProperty(t.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!0,configurable:!0}),t.prototype._addEvent=function(){var t=this;this._$container.on("click",(function(e){return r.default(t).trigger(e),!1}))},t.prototype._removeEvent=function(){this._$container.off("click")},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t,n()}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){t._$container.addClass("is-visible"),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){t._$container.removeClass("is-visible"),e()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._$container;e()}))},t.prototype._addEvent=function(){},t.prototype._removeEvent=function(){},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t,n()}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){t._$container.addClass("is-visible"),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){t._$container.removeClass("is-visible"),e()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._$container;e()}))},t.prototype._addEvent=function(){},t.prototype._removeEvent=function(){},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){e._$container=t,n()}))},t.prototype.show=function(){var t=this;return new Promise((function(e,n){t._$container.addClass("is-visible"),e()}))},t.prototype.hide=function(){var t=this;return new Promise((function(e,n){t._$container.removeClass("is-visible"),e()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._$container;e()}))},t.prototype._addEvent=function(){},t.prototype._removeEvent=function(){},t}();e.default=i},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(1)),s=o(n(35)),u=o(n(2)),c=o(n(10)),l=o(n(5)),f=o(n(4)),h=o(n(7)),d=o(n(59)),p=o(n(322)),_=function(t){function e(e){void 0===e&&(e="archive-news");var n=this;return(n=t.call(this,e)||this)._language=new d.default,n._pinned={},n._hasPinned=!1,n}return r(e,t),e.prototype.onLeave=function(t){var e=this;return new Promise((function(t,n){var i=e._$container,r=e._language,o=e._pinned,a=e._hasPinned,s=new Array;e._removeEvent(),i.removeClass("is-visible"),h.default.show().then((function(){return s.push(f.default.clearBackground()),s.push(r.exit()),a&&s.push(o.exit()),Promise.all(s)})).then((function(){t()})).catch((function(t){n(t)}))}))},e.prototype.onEnter=function(t){var n=this;return new Promise((function(i,r){var o=n._language,u=a.default(t.next.container),c=u.find(".js-language"),h=u.find(".js-card-slider"),d=h.find(".js-card-slider__item"),_=new p.default,m=!!(h[0]&&d.length>1),v=new Array;v.push(l.default.show()),v.push(o.init(c)),m?v.push(_.init(h)):h.addClass("is-disabled"),Promise.all(v).then((function(){return s.default.load()})).then((function(){return l.default.update(e.BACKGROUND_COLOR)})).then((function(){return Promise.all([l.default.hide(),f.default.fillBackground()])})).then((function(){n._$container=u,n._hasPinned=m,m&&(n._pinned=_),o.isEn&&u.addClass("is-en"),i()})).catch((function(t){r(t)}))}))},e.prototype.onAfter=function(t){var e=this;return new Promise((function(t,n){var i=e._$container,r=e._language,o=e._pinned,a=e._hasPinned;h.default.hide().then((function(){i.addClass("is-visible"),e._addEvent(),r.enable(),a&&o.enable(),t()})).catch((function(t){n(t)}))}))},e.prototype._addEvent=function(){var t=this._$container,e=this._language;
2a.default(e).on(d.default.ON_CHANGE,(function(e,n){n==d.default.MODE_EN?t.addClass("is-en"):t.removeClass("is-en")}))},e.prototype._removeEvent=function(){var t=this._language;a.default(t).off(d.default.ON_CHANGE)},e.BACKGROUND_COLOR=u.default.DEFAULT_DOMINANT_COLOR_LIGHT,e}(c.default);e.default=_},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=i(n(2)),a=i(n(323)),s=i(n(324)),u=function(){function t(){this._$container={},this._$list={},this._originals=new Array,this._items=new Array,this._buttons=new a.default,this._indicator=new s.default,this._current=0,this._displayNum=0,this._x=0,this._touchStartX=0,this._touchStartY=0,this._touchEndX=0,this._touchEndY=0,this._isRunning=!1,this._istTansitioning=!1}return t.prototype.init=function(t,e){var n=this;return void 0===e&&(e=1),new Promise((function(i,o){for(var a=n._items,s=n._originals,u=n._buttons,c=n._indicator,l=t.find(".js-card-slider__list"),f=t.find(".js-card-slider__buttons"),h=t.find(".js-card-slider__indicator"),d=l.find(".js-card-slider__item"),p=0;p<d.length;p++){(g=r.default(d[p])).attr("data-original-index",p),s.push(g)}if(e>0){var _=e,m=s.slice(-_),v=s.slice(0,_);for(p=m.length-1;p>-1;p--){(g=m[p].clone()).attr("data-prepend",p),l.prepend(g)}for(p=0;p<v.length;p++){(g=v[p].clone()).attr("data-append",p),l.append(g)}d=l.find(".js-card-slider__item")}for(p=0;p<d.length;p++){var g=r.default(d[p]);a.push(g)}Promise.all([u.init(f),c.init(h,s.length)]).then((function(){n._$container=t,n._$list=l,n._originals=s,n._items=a,n._buttons=u,n._displayNum=e,n._touchMoveHandler=n._customTouchMoveHandler.bind(n),i()})).catch((function(t){o(t)}))}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){var i=t._buttons,r=t._indicator;Promise.all([i.exit(),r.exit()]).then((function(){t._originals=[],t._items=[],t._current=0,t._displayNum=0,t._x=0,t._touchStartX=0,t._touchStartY=0,t._touchEndX=0,t._touchEndY=0,t._isRunning=!1,t._istTansitioning=!1,e()})).catch((function(t){n(t)}))}))},t.prototype.enable=function(){var t=this;return new Promise((function(e,n){var i=t._originals;t._update(i[0].index(),"0ms").then((function(){t._addEvent(),e()})).catch((function(t){n(t)}))}))},t.prototype.disable=function(){var t=this;return new Promise((function(e,n){t._removeEvent(),e()}))},t.prototype.update=function(t,e){var n=this;return void 0===t&&(t=this._current),void 0===e&&(e=""),new Promise((function(i,r){var o=n._originals;n._update(o[t].index(),e).then((function(){i()})).catch((function(t){r(t)}))}))},t.prototype.onBeforeResize=function(){},t.prototype.onAfterResize=function(){o.default.isMobile||this._resize()},t.prototype._next=function(){var t=this;return new Promise((function(e,n){var i=t._items,r=t._current>=i.length-1?0:t._current+1;t._update(r).then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype._previous=function(){var t=this;return new Promise((function(e,n){var i=t._items,r=t._current<=0?i.length-1:t._current-1;t._update(r).then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype._update=function(e,n){var i=this;return void 0===n&&(n=""),new Promise((function(o,a){if(i._isRunning)o();else{var s=i._items,u=i._indicator,c=-1*s[e].position().left,l=i._originals,f=l[0].index(),h=l[l.length-1].index(),d=e;d=e<f?e+l.length:d;var p=s[d=e>h?e-l.length:d],_=-1*p.position().left,m=parseInt(p.attr("data-original-index"));i._isRunning=!0,i._transition(c,n).then((function(){return i._transition(_,"0ms")})).then((function(){u.update(m),i._current=d,i._x=_,i._isRunning=!1,r.default(i).trigger(t.ON_UPDATED,[m]),o()})).catch((function(t){a(t)}))}}))},t.prototype._transition=function(t,e){var n=this;return void 0===t&&(t=0),void 0===e&&(e=""),new Promise((function(i,r){var o=n._$list;n._istTansitioning?i():(n._istTansitioning=!0,"0s"===e||"0ms"===e?(o.css({"transition-duration":e,transform:"translateX( "+t+"px )"}),n._istTansitioning=!1,i()):(o.on("transitionend",(function(){o.off("transitionend"),n._istTansitioning=!1,i()})),o.css({"transition-duration":e,transform:"translateX( "+t+"px )"}
2)))}))},t.prototype._resize=function(){var t=this._current;this._update(t)},t.prototype._addEvent=function(){var e=this,n=this._$container,i=this._buttons;r.default(i).on(a.default.ON_CLICK_NEXT,(function(){e._next()})),r.default(i).on(a.default.ON_CLICK_PREVIOUS,(function(){e._previous()}));var s=new Date,u=!1,c=!1;n.on("touchstart",(function(t){e._isRunning||(e._touchStartX=t.touches[0].pageX,e._touchStartY=t.touches[0].pageY,s=new Date,u=!1)})),n.on("touchmove",(function(t){if(!e._isRunning&&!u){var i=e._touchStartX,r=e._touchStartY,o=t.touches[0].pageX,a=t.touches[0].pageY,s=Math.atan2(a-r,o-i),l=Math.abs(s*(180/Math.PI));u=!0,(c=l>105||l<75)&&n[0].addEventListener("touchmove",e._touchMoveHandler,{passive:!1})}})),n.on("touchend",(function(i){if(!e._isRunning&&u&&c){var r=e._touchStartX,a=(e._touchStartY,e._touchEndX),l=(e._touchEndY,new Date),f=r-a,h=window.innerWidth*t.TOUCH_MOVE_DISTANCE_SCALE,d=l.getTime()-s.getTime(),p=new Array;if(d<t.TOUCH_MOVE_INTERVAL&&Math.abs(f)>h)f>0?p.push(e._next()):p.push(e._previous());else{var _=o.default.BASE_DURATION/8*1e3;p.push(e._transition(e._x,_+"ms"))}Promise.all(p).then((function(){u=!1,c=!1,n[0].removeEventListener("touchmove",e._touchMoveHandler)})).catch((function(t){}))}}))},t.prototype._removeEvent=function(){for(var t=this._$container,e=this._items,n=this._buttons,i=0;i<e.length;i++){e[i].off("click")}t.off("click"),t.off("touchstart"),t.off("touchmove"),t.off("touchend"),r.default(n).off(a.default.ON_CLICK_NEXT),r.default(n).off(a.default.ON_CLICK_PREVIOUS)},t.prototype._customTouchMoveHandler=function(e){var n=this._x,i=this._touchStartX,r=(this._touchStartY,e.touches[0].pageX),o=e.touches[0].pageY,a=n-(i-r)*t.TOUCH_MOVE_ACCELERATION;this._transition(a,"0ms"),this._touchEndX=r,this._touchEndY=o,e.preventDefault()},t.ON_ITEM_CLICK="onItemClick",t.ON_UPDATED="onUpdated",t.TOUCH_MOVE_ACCELERATION=.25,t.TOUCH_MOVE_DISTANCE_SCALE=.125,t.TOUCH_MOVE_INTERVAL=1e3,t}();e.default=u},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(){this._$container={},this._$nextButton={},this._$previousButton={}}return t.prototype.init=function(t){var e=this;return new Promise((function(n,i){var r=t.find(".js-card-slider__next-button"),o=t.find(".js-card-slider__previous-button");e._$container=t,e._$nextButton=r,e._$previousButton=o,e._addEvent(),n()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._removeEvent(),e()}))},t.prototype._addEvent=function(){var e=this,n=this._$nextButton,i=this._$previousButton;n.on("click",(function(){return r.default(e).trigger(t.ON_CLICK_NEXT),!1})),i.on("click",(function(){return r.default(e).trigger(t.ON_CLICK_PREVIOUS),!1}))},t.prototype._removeEvent=function(){var t=this._$nextButton,e=this._$previousButton;t.off("click"),e.off("click")},t.ON_CLICK_NEXT="onClickNext",t.ON_CLICK_PREVIOUS="onClickPrevious",t}();e.default=o},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(n(1)),o=function(){function t(){this._$container={},this._items=new Array}return t.prototype.init=function(t,e){var n=this;return new Promise((function(i,o){for(var a=n._items,s=0;s<e;s++){var u=r.default("<li></li>");t.append(u),a.push(u)}a[0].addClass("is-current"),n._$container=t,i()}))},t.prototype.exit=function(){var t=this;return new Promise((function(e,n){t._items=[],e()}))},t.prototype.update=function(t){this._$container;for(var e=this._items,n=0;n<e.length;n++){var i=e[n];t==n?i.addClass("is-current"):i.removeClass("is-current")}},t}();e.default=o},function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
2Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(1)),s=o(n(35)),u=o(n(2)),c=o(n(10)),l=o(n(5)),f=o(n(4)),h=o(n(7)),d=o(n(59)),p=function(t){function e(e){void 0===e&&(e="single-news");var n=this;return(n=t.call(this,e)||this)._language=new d.default,n}return r(e,t),e.prototype.onLeave=function(t){var e=this;return new Promise((function(t,n){var i=e._$container,r=e._language;e._removeEvent(),i.removeClass("is-visible"),h.default.show().then((function(){return Promise.all([f.default.clearBackground(),r.exit()])})).then((function(){t()})).catch((function(t){n(t)}))}))},e.prototype.onEnter=function(t){var n=this;return new Promise((function(i,r){var o=n._language,u=a.default(t.next.container),c=u.find(".js-language");Promise.all([l.default.show(),s.default.load(),o.init(c)]).then((function(){return l.default.update(e.BACKGROUND_COLOR)})).then((function(){l.default.hide(),f.default.fillBackground(),n._$container=u,o.isEn&&u.addClass("is-en"),i()})).catch((function(t){r(t)}))}))},e.prototype.onAfter=function(t){var e=this;return new Promise((function(t,n){var i=e._$container,r=e._language;h.default.hide().then((function(){i.addClass("is-visible"),e._addEvent(),r.enable(),t()})).catch((function(t){n(t)}))}))},e.prototype._addEvent=function(){var t=this._$container,e=this._language;
2a.default(e).on(d.default.ON_CHANGE,(function(e,n){n==d.default.MODE_EN?t.addClass("is-en"):t.removeClass("is-en")}))},e.prototype._removeEvent=function(){var t=this._language;a.default(t).off(d.default.ON_CHANGE)},e.BACKGROUND_COLOR=u.default.DEFAULT_DOMINANT_COLOR_LIGHT,e}(c.default);e.default=p}]);
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.