!function t(e,n,i){function r(a,s){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};e[a][0].call(u.exports,(function(t){return r(e[a][1][t]||t)}),u,u.exports,t,e,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;ac/r*i?t/i:c/r:"contain"===s?c>t/i*r?t/i:c/r:1,l?n.style.transform="scale("+e+")":(n.style.width=i*e+"px",n.style.height=r*e+"px"),n.style.left=t!==i*e?u*a+"px":"0px",n.style.top=c!==r*e?h*o+"px":"0px"):setTimeout(d,30)}n.style.position="absolute",n.parentElement.style.overflow="hidden",l&&(n.style.transformOrigin="left top"),-1===["relative","absolute","fixed"].indexOf(window.getComputedStyle(n.parentElement,null).getPropertyValue("position"))&&(n.parentElement.style.position="relative"),c(),u(),d(),this.update=d,this.setWidth=function(t){i=Number(t)},this.setHeight=function(t){r=Number(t)},this.setValign=function(t){o=t,c()},this.setHalign=function(t){a=t,u()},this.setFit=function(t){s=t},this.getWidth=function(){return Number(i)},this.getHeight=function(){return Number(r)},this.getCurrentWidth=function(){return e*i},this.getCurrentHeight=function(){return e*r},this.getValign=function(){return o},this.getHalign=function(){return a},this.getFit=function(){return s},this.getScale=function(){return e}}},{}],3:[function(t,e,n){!function(t,i){"object"==typeof n&&void 0!==e?i(n):"function"==typeof define&&define.amd?define(["exports"],i):i((t=t||self).window=t.window||{})}(this,(function(t){"use strict";function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t} /*! * GSAP 3.7.1 * https://greensock.com * * @license Copyright 2008-2021, GreenSock. All rights reserved. * Subject to the terms at https://greensock.com/standard-license or for * Club GreenSock members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */var i,r,o,a,s,l,c,u,d,h,p,f,m,v,g,y,_,b,w,x,S,C,k,T,E,A,M,I,O={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},P={duration:.5,overwrite:!1,delay:0},N=1e8,D=1e-8,R=2*Math.PI,L=R/4,F=0,$=Math.sqrt,B=Math.cos,j=Math.sin,z=function(t){return"string"==typeof t},Y=function(t){return"function"==typeof t},H=function(t){return"number"==typeof t},U=function(t){return void 0===t},V=function(t){return"object"==typeof t},W=function(t){return!1!==t},G=function(){return"undefined"!=typeof window},q=function(t){return Y(t)||z(t)},X="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},K=Array.isArray,J=/(?:-?\.?\d|\.)+/gi,Z=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Q=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,tt=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,et=/[+-]=-?[.\d]+/,nt=/[^,'"\[\]\s]+/gi,it=/[\d.+\-=]+(?:e[-+]\d*)*/i,rt={},ot={},at=function(t){return(ot=It(t,rt))&&yn},st=function(t,e){return!e&&void 0},lt=function(t,e){return t&&(rt[t]=e)&&ot&&(ot[t]=e)||rt},ct=function(){return 0},ut={},dt=[],ht={},pt={},ft={},mt=30,vt=[],gt="",yt=function(t){var e,n,i=t[0];if(V(i)||Y(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(n=vt.length;n--&&!vt[n].targetTest(i););e=vt[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Ye(t[n],e)))||t.splice(n,1);return t},_t=function(t){return t._gsap||yt(se(t))[0]._gsap},bt=function(t,e,n){return(n=t[e])&&Y(n)?t[e]():U(n)&&t.getAttribute&&t.getAttribute(e)||n},wt=function(t,e){return(t=t.split(",")).forEach(e)||t},xt=function(t){return Math.round(1e5*t)/1e5||0},St=function(t,e){for(var n=e.length,i=0;t.indexOf(e[i])<0&&++it._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},Ft=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},$t=function t(e){return!e||e._ts&&t(e.parent)},Bt=function(t){return t._repeat?jt(t._tTime,t=t.duration()+t._rDelay)*t:0},jt=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},zt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Yt=function(t){return t._end=xt(t._start+(t._tDur/Math.abs(t._ts||t._rts||D)||0))},Ht=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=xt(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Yt(t),n._dirty||Lt(n,t)),t},Ut=function(t,e){var n;if((e._time||e._initted&&!e._dur)&&(n=zt(t.rawTime(),e),(!e._dur||ne(0,e.totalDuration(),n)-e._tTime>D)&&e.render(n,!0)),Lt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-1e-8}},Vt=function(t,e,n,i){return e.parent&&Rt(e),e._start=xt((H(n)?n:n||t!==r?Qt(t,n,e):t._time)+e._delay),e._end=xt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function(t,e,n,i,r){void 0===n&&(n="_first"),void 0===i&&(i="_last");var o,a=t[i];if(r)for(o=e[r];a&&a[r]>o;)a=a._prev;a?(e._next=a._next,a._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[i]=e,e._prev=a,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),Xt(e)||(t._recent=e),i||Ut(t,e),t},Wt=function(t,e){return rt.ScrollTrigger?rt.ScrollTrigger.create(e,t):void 0},Gt=function(t,e,n,i){return Xe(t,e),t._initted?!n&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&c!==Me.frame?(dt.push(t),t._lazy=[e,i],1):void 0:1},qt=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},Xt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Kt=function(t,e,n,i){var r=t._repeat,o=xt(e)||0,a=t._tTime/t._tDur;return a&&!i&&(t._time*=o/t._dur),t._dur=o,t._tDur=r?r<0?1e10:xt(o*(r+1)+t._rDelay*r):o,a&&!i?Ht(t,t._tTime=t._tDur*a):t.parent&&Yt(t),n||Lt(t.parent,t),t},Jt=function(t){return t instanceof Ue?Lt(t):Kt(t,t._dur)},Zt={_start:0,endTime:ct,totalDuration:ct},Qt=function t(e,n,i){var r,o,a,s=e.labels,l=e._recent||Zt,c=e.duration()>=N?l.endTime(!1):e._dur;return z(n)&&(isNaN(n)||n in s)?(o=n.charAt(0),a="%"===n.substr(-1),r=n.indexOf("="),"<"===o||">"===o?(r>=0&&(n=n.replace(/=/,"")),("<"===o?l._start:l.endTime(l._repeat>=0))+(parseFloat(n.substr(1))||0)*(a?(r<0?l:i).totalDuration()/100:1)):r<0?(n in s||(s[n]=c),s[n]):(o=parseFloat(n.charAt(r-1)+n.substr(r+1)),a&&i&&(o=o/100*(K(i)?i[0]:i).totalDuration()),r>1?t(e,n.substr(0,r-1),i)+o:c+o)):null==n?c:+n},te=function(t,e,n){var i,r,o=H(e[1]),a=(o?2:1)+(t<2?0:1),s=e[a];if(o&&(s.duration=e[1]),s.parent=n,t){for(i=s,r=n;r&&!("immediateRender"in i);)i=r.vars.defaults||{},r=W(r.vars.inherit)&&r.parent;s.immediateRender=W(i.immediateRender),t<2?s.runBackwards=1:s.startAt=e[a-1]}return new Qe(e[0],s,e[a+1])},ee=function(t,e){return t||0===t?e(t):e},ne=function(t,e,n){return ne?e:n},ie=function(t){if("string"!=typeof t)return"";var e=it.exec(t);return e?t.substr(e.index+e[0].length):""},re=[].slice,oe=function(t,e){return t&&V(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&V(t[0]))&&!t.nodeType&&t!==o},ae=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var i;return z(t)&&!e||oe(t,1)?(i=n).push.apply(i,se(t)):n.push(t)}))||n},se=function(t,e,n){return!z(t)||n||!a&&Ie()?K(t)?ae(t,n):oe(t)?re.call(t,0):t?[t]:[]:re.call((e||s).querySelectorAll(t),0)},le=function(t){return t.sort((function(){return.5-Math.random()}))},ce=function(t){if(Y(t))return t;var e=V(t)?t:{each:t},n=Fe(e.ease),i=e.from||0,r=parseFloat(e.base)||0,o={},a=i>0&&i<1,s=isNaN(i)||a,l=e.axis,c=i,u=i;return z(i)?c=u={center:.5,edges:.5,end:1}[i]||0:!a&&s&&(c=i[0],u=i[1]),function(t,a,d){var h,p,f,m,v,g,y,_,b,w=(d||e).length,x=o[w];if(!x){if(!(b="auto"===e.grid?0:(e.grid||[1,N])[1])){for(y=-N;y<(y=d[b++].getBoundingClientRect().left)&&by&&(y=v),v<_&&(_=v);"random"===i&&le(x),x.max=y-_,x.min=_,x.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(b>w?w-1:l?"y"===l?w/b:b:Math.max(b,w/b))||0)*("edges"===i?-1:1),x.b=w<0?r-w:r,x.u=ie(e.amount||e.each)||0,n=n&&w<0?Re(n):n}return w=(x[t]-x.min)/x.max||0,xt(x.b+(n?n(w):w)*x.v)+x.u}},ue=function(t){var e=t<1?Math.pow(10,(t+"").length-2):1;return function(n){var i=Math.round(parseFloat(n)/t)*t*e;return(i-i%1)/e+(H(n)?0:ie(n))}},de=function(t,e){var n,i,r=K(t);return!r&&V(t)&&(n=r=t.radius||N,t.values?(t=se(t.values),(i=!H(t[0]))&&(n*=n)):t=ue(t.increment)),ee(e,r?Y(t)?function(e){return i=t(e),Math.abs(i-e)<=n?i:e}:function(e){for(var r,o,a=parseFloat(i?e.x:e),s=parseFloat(i?e.y:0),l=N,c=0,u=t.length;u--;)(r=i?(r=t[u].x-a)*r+(o=t[u].y-s)*o:Math.abs(t[u]-a))(r=Math.abs(r))&&(o=i,s=r);return o},ge=function(t,e,n){var i,r,o=t.vars,a=o[e];if(a)return i=o[e+"Params"],r=o.callbackScope||t,n&&dt.length&&Ct(),i?a.apply(r,i):a.call(r)},ye=function(t){return Rt(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&ge(t,"onInterrupt"),t},_e=function(t){var e=(t=!t.name&&t.default||t).name,n=Y(t),i=e&&!n&&t.init?function(){this._props=[]}:t,r={init:ct,render:cn,add:Ge,kill:dn,modifier:un,rawVars:0},o={targetTest:0,get:0,getSetter:on,aliases:{},register:0};if(Ie(),t!==i){if(pt[e])return;At(i,At(Pt(t,r),o)),It(i.prototype,It(r,Pt(t,o))),pt[i.prop=e]=i,t.targetTest&&(vt.push(i),ut[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}lt(e,i),t.register&&t.register(yn,i,fn)},be=255,we={aqua:[0,be,be],lime:[0,be,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,be],navy:[0,0,128],white:[be,be,be],olive:[128,128,0],yellow:[be,be,0],orange:[be,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[be,0,0],pink:[be,192,203],cyan:[0,be,be],transparent:[be,be,be,0]},xe=function(t,e,n){return(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)*be+.5|0},Se=function(t,e,n){var i,r,o,a,s,l,c,u,d,h,p=t?H(t)?[t>>16,t>>8&be,t&be]:0:we.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),we[t])p=we[t];else if("#"===t.charAt(0)){if(t.length<6&&(i=t.charAt(1),r=t.charAt(2),o=t.charAt(3),t="#"+i+i+r+r+o+o+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&be,p&be,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&be,t&be]}else if("hsl"===t.substr(0,3))if(p=h=t.match(J),e){if(~t.indexOf("="))return p=t.match(Z),n&&p.length<4&&(p[3]=1),p}else a=+p[0]%360/360,s=+p[1]/100,i=2*(l=+p[2]/100)-(r=l<=.5?l*(s+1):l+s-l*s),p.length>3&&(p[3]*=1),p[0]=xe(a+1/3,i,r),p[1]=xe(a,i,r),p[2]=xe(a-1/3,i,r);else p=t.match(J)||we.transparent;p=p.map(Number)}return e&&!h&&(i=p[0]/be,r=p[1]/be,o=p[2]/be,l=((c=Math.max(i,r,o))+(u=Math.min(i,r,o)))/2,c===u?a=s=0:(d=c-u,s=l>.5?d/(2-c-u):d/(c+u),a=c===i?(r-o)/d+(r_&&(w+=a-b),((n=(r=(x+=a)-w)-C)>0||s)&&(o=++m.frame,v=r-1e3*m.time,m.time=r/=1e3,C+=n+(n>=S?4:S-n),i=1),s||(h=p(t)),i)for(g=0;g=e&&g--},_listeners:k=[]}),Ie=function(){return!d&&Me.wake()},Oe={},Pe=/^[\d.\-M][\d.\-,\s]/,Ne=/["']/g,De=function(t){for(var e,n,i,r={},o=t.substr(1,t.length-3).split(":"),a=o[0],s=1,l=o.length;s1&&a.config?a.config.apply(null,~t.indexOf("{")?[De(o[1])]:(e=t,n=e.indexOf("(")+1,i=e.indexOf(")"),r=e.indexOf("(",n),e.substring(n,~r&&r=1?n:1,o=(i||(e?.3:.45))/(n<1?n:1),a=o/R*(Math.asin(1/r)||0),s=function(t){return 1===t?1:r*Math.pow(2,-10*t)*j((t-a)*o)+1},l="out"===e?s:"in"===e?function(t){return 1-s(1-t)}:Be(s);return o=R/o,l.config=function(n,i){return t(e,n,i)},l},ze=function t(e,n){void 0===n&&(n=1.70158);var i=function(t){return t?--t*t*((n+1)*t+n)+1:0},r="out"===e?i:"in"===e?function(t){return 1-i(1-t)}:Be(i);return r.config=function(n){return t(e,n)},r};wt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;$e(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},(function(t){return 1-Math.pow(1-t,n)}),(function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2}))})),Oe.Linear.easeNone=Oe.none=Oe.Linear.easeIn,$e("Elastic",je("in"),je("out"),je()),E=7.5625,M=1/(A=2.75),$e("Bounce",(function(t){return 1-I(1-t)}),I=function(t){return t0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Kt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ie(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Ht(this,t),!n._dp||n.parent||Ut(n,this);n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t0||!this._tDur&&!t)&&Vt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===D||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),kt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Bt(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Bt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?jt(this._tTime,n)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?zt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,Ft(this.totalTime(ne(-this._delay,this._tDur,e),!0))},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ie(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==D&&(this._tTime-=D)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Vt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(W(t)?this.totalDuration():this.duration())/Math.abs(this._ts)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?zt(e.rawTime(t),this):this._tTime:this._tTime},e.globalTime=function(t){for(var e=this,n=arguments.length?t:e.rawTime();e;)n=e._start+n/(e._ts||1),e=e._dp;return n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Jt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Jt(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(Qt(this,t),W(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,W(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t1?(e?(i[t]=e,n&&(i[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},e.then=function(t){var e=this;return new Promise((function(n){var i=Y(t)?t:Et,r=function(){var t=e.then;e.then=null,Y(i)&&(i=i(e))&&(i.then||i===e)&&(e.then=t),n(i),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?r():e._prom=r}))},e.kill=function(){ye(this)},t}();At(He.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Ue=function(t){function i(e,i){var o;return void 0===e&&(e={}),(o=t.call(this,e)||this).labels={},o.smoothChildTiming=!!e.smoothChildTiming,o.autoRemoveChildren=!!e.autoRemoveChildren,o._sort=W(e.sortChildren),r&&Vt(e.parent||r,n(o),i),e.reversed&&o.reverse(),e.paused&&o.paused(!0),e.scrollTrigger&&Wt(n(o),e.scrollTrigger),o}e(i,t);var o=i.prototype;return o.to=function(t,e,n){return te(0,arguments,this),this},o.from=function(t,e,n){return te(1,arguments,this),this},o.fromTo=function(t,e,n,i){return te(2,arguments,this),this},o.set=function(t,e,n){return e.duration=0,e.parent=this,Nt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Qe(t,e,Qt(this,n),1),this},o.call=function(t,e,n){return Vt(this,Qe.delayedCall(0,t,e),n)},o.staggerTo=function(t,e,n,i,r,o,a){return n.duration=e,n.stagger=n.stagger||i,n.onComplete=o,n.onCompleteParams=a,n.parent=this,new Qe(t,n,Qt(this,r)),this},o.staggerFrom=function(t,e,n,i,r,o,a){return n.runBackwards=1,Nt(n).immediateRender=W(n.immediateRender),this.staggerTo(t,e,n,i,r,o,a)},o.staggerFromTo=function(t,e,n,i,r,o,a,s){return i.startAt=n,Nt(i).immediateRender=W(i.immediateRender),this.staggerTo(t,e,i,r,o,a,s)},o.render=function(t,e,n){var i,o,a,s,l,c,u,d,h,p,f,m,v=this._time,g=this._dirty?this.totalDuration():this._tDur,y=this._dur,_=this!==r&&t>g-D&&t>=0?g:ty&&(i=y)),p=jt(this._tTime,l),!v&&this._tTime&&p!==s&&(p=s),f&&1&s&&(i=y-i,m=1),s!==p&&!this._lock){var w=f&&1&p,x=w===(f&&1&s);if(se)for(i=t._first;i&&i._start<=n;){if(!i._dur&&"isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=n;){if(!i._dur&&"isPause"===i.data&&i._start=v&&t>=0)for(o=this._first;o;){if(a=o._next,(o._act||i>=o._start)&&o._ts&&u!==o){if(o.parent!==this)return this.render(t,e,n);if(o.render(o._ts>0?(i-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(i-o._start)*o._ts,e,n),i!==this._time||!this._ts&&!c){u=0,a&&(_+=this._zTime=-1e-8);break}}o=a}else{o=this._last;for(var S=t<0?t:i;o;){if(a=o._prev,(o._act||S<=o._end)&&o._ts&&u!==o){if(o.parent!==this)return this.render(t,e,n);if(o.render(o._ts>0?(S-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(S-o._start)*o._ts,e,n),i!==this._time||!this._ts&&!c){u=0,a&&(_+=this._zTime=S?-1e-8:D);break}}o=a}}if(u&&!e&&(this.pause(),u.render(i>=v?0:-1e-8)._zTime=i>=v?1:-1,this._ts))return this._start=h,Yt(this),this.render(t,e,n);this._onUpdate&&!e&&ge(this,"onUpdate",!0),(_===g&&g>=this.totalDuration()||!_&&v)&&(h!==this._start&&Math.abs(d)===Math.abs(this._ts)||this._lock||((t||!y)&&(_===g&&this._ts>0||!_&&this._ts<0)&&Rt(this,1),e||t<0&&!v||!_&&!v&&g||(ge(this,_===g&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(_0)&&this._prom())))}return this},o.add=function(t,e){var n=this;if(H(e)||(e=Qt(this,e,t)),!(t instanceof He)){if(K(t))return t.forEach((function(t){return n.add(t,e)})),this;if(z(t))return this.addLabel(t,e);if(!Y(t))return this;t=Qe.delayedCall(0,t)}return this!==t?Vt(this,t,e):this},o.getChildren=function(t,e,n,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===i&&(i=-N);for(var r=[],o=this._first;o;)o._start>=i&&(o instanceof Qe?e&&r.push(o):(n&&r.push(o),t&&r.push.apply(r,o.getChildren(!0,e,n)))),o=o._next;return r},o.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},o.remove=function(t){return z(t)?this.removeLabel(t):Y(t)?this.killTweensOf(t):(Dt(this,t),t===this._recent&&(this._recent=this._last),Lt(this))},o.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=xt(Me.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},o.addLabel=function(t,e){return this.labels[t]=Qt(this,e),this},o.removeLabel=function(t){return delete this.labels[t],this},o.addPause=function(t,e,n){var i=Qe.delayedCall(0,e||ct,n);return i.data="isPause",this._hasPause=1,Vt(this,i,Qt(this,t))},o.removePause=function(t){var e=this._first;for(t=Qt(this,t);e;)e._start===t&&"isPause"===e.data&&Rt(e),e=e._next},o.killTweensOf=function(t,e,n){for(var i=this.getTweensOf(t,n),r=i.length;r--;)Ve!==i[r]&&i[r].kill(t,e);return this},o.getTweensOf=function(t,e){for(var n,i=[],r=se(t),o=this._first,a=H(e);o;)o instanceof Qe?St(o._targets,r)&&(a?(!Ve||o._initted&&o._ts)&&o.globalTime(0)<=e&&o.globalTime(o.totalDuration())>e:!e||o.isActive())&&i.push(o):(n=o.getTweensOf(r,e)).length&&i.push.apply(i,n),o=o._next;return i},o.tweenTo=function(t,e){e=e||{};var n,i=this,r=Qt(i,t),o=e,a=o.startAt,s=o.onStart,l=o.onStartParams,c=o.immediateRender,u=Qe.to(i,At({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:r,overwrite:"auto",duration:e.duration||Math.abs((r-(a&&"time"in a?a.time:i._time))/i.timeScale())||D,onStart:function(){if(i.pause(),!n){var t=e.duration||Math.abs((r-(a&&"time"in a?a.time:i._time))/i.timeScale());u._dur!==t&&Kt(u,t,0,1).render(u._time,!0,!0),n=1}s&&s.apply(u,l||[])}},e));return c?u.render(0):u},o.tweenFromTo=function(t,e,n){return this.tweenTo(e,At({startAt:{time:Qt(this,t)}},n))},o.recent=function(){return this._recent},o.nextLabel=function(t){return void 0===t&&(t=this._time),ve(this,Qt(this,t))},o.previousLabel=function(t){return void 0===t&&(t=this._time),ve(this,Qt(this,t),1)},o.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+D)},o.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var i,r=this._first,o=this.labels;r;)r._start>=n&&(r._start+=t,r._end+=t),r=r._next;if(e)for(i in o)o[i]>=n&&(o[i]+=t);return Lt(this)},o.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},o.clear=function(t){void 0===t&&(t=!0);for(var e,n=this._first;n;)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Lt(this)},o.totalDuration=function(t){var e,n,i,o=0,a=this,s=a._last,l=N;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(i=a.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),(n=s._start)>l&&a._sort&&s._ts&&!a._lock?(a._lock=1,Vt(a,s,n-s._delay,1)._lock=0):l=n,n<0&&s._ts&&(o-=n,(!i&&!a._dp||i&&i.smoothChildTiming)&&(a._start+=n/a._ts,a._time-=n,a._tTime-=n),a.shiftChildren(-n,!1,-Infinity),l=0),s._end>o&&s._ts&&(o=s._end),s=e;Kt(a,a===r&&a._time>o?a._time:o,1,1),a._dirty=0}return a._tDur},i.updateRoot=function(t){if(r._ts&&(kt(r,zt(t,r)),c=Me.frame),Me.frame>=mt){mt+=O.autoSleep||120;var e=r._first;if((!e||!e._ts)&&O.autoSleep&&Me._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Me.sleep()}}},i}(He);At(Ue.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ve,We=function(t,e,n,i,r,o,a){var s,l,c,u,d,h,p,f,m=new fn(this._pt,t,e,0,1,ln,null,r),v=0,g=0;for(m.b=n,m.e=i,n+="",(p=~(i+="").indexOf("random("))&&(i=fe(i)),o&&(o(f=[n,i],t,e),n=f[0],i=f[1]),l=n.match(tt)||[];s=tt.exec(i);)u=s[0],d=i.substring(v,s.index),c?c=(c+1)%5:"rgba("===d.substr(-5)&&(c=1),u!==l[g++]&&(h=parseFloat(l[g-1])||0,m._pt={_next:m._pt,p:d||1===g?d:",",s:h,c:"="===u.charAt(1)?parseFloat(u.substr(2))*("-"===u.charAt(0)?-1:1):parseFloat(u)-h,m:c&&c<4?Math.round:0},v=tt.lastIndex);return m.c=v0&&!M&&(e._startAt=0),I&&n<=0)return void(n&&(e._zTime=n))}else!1===M&&(e._startAt=0);else if(T&&I)if(O)!M&&(e._startAt=0);else if(n&&(w=!1),s=At({overwrite:!1,data:"isFromStart",lazy:w&&W(x),immediateRender:w,stagger:0,parent:R},o),v&&(s[h.prop]=v),Rt(e._startAt=Qe.set(N,s)),n<0&&e._startAt.render(-1,!0),w){if(!n)return}else t(e._startAt,D);for(e._pt=0,x=I&&W(x)||x&&!I,a=0;a":e*w)}))})):S.forEach((function(t){return c.to(A,t,">")}));else{if(h=A.length,m=w?ce(w):ct,V(w))for(p in w)~Je.indexOf(p)&&(v||(v={}),v[p]=w[p]);for(u=0;up-D&&t>=0?p:tf&&(i=f)),(l=this._yoyo&&1&o)&&(d=this._yEase,i=f-i),s=jt(this._tTime,a),i===h&&!n&&this._initted)return this;o!==s&&(u&&this._yEase&&Le(u,l),!this.vars.repeatRefresh||l||this._lock||(this._lock=n=1,this.render(xt(a*o),!0).invalidate()._lock=0))}if(!this._initted){if(Gt(this,t<0?t:i,n,e))return this._tTime=0,this;if(f!==this._dur)return this.render(t,e,n)}if(this._tTime=m,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(d||this._ease)(i/f),this._from&&(this.ratio=c=1-c),i&&!h&&!e&&(ge(this,"onStart"),this._tTime!==m))return this;for(r=this._pt;r;)r.r(c,r.d),r=r._next;u&&u.render(t<0?t:!i&&l?-1e-8:u._dur*c,e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,n),ge(this,"onUpdate")),this._repeat&&o!==s&&this.vars.onRepeat&&!e&&this.parent&&ge(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),(t||!f)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&Rt(this,1),e||t<0&&!h||!m&&!h||(ge(this,m===p?"onComplete":"onReverseComplete",!0),this._prom&&!(m0)&&this._prom()))}}else!function(t,e,n,i){var r,o,a,s=t.ratio,l=e<0||!e&&(!t._start&&qt(t)&&(t._initted||!Xt(t))||(t._ts<0||t._dp._ts<0)&&!Xt(t))?0:1,c=t._rDelay,u=0;if(c&&t._repeat&&(u=ne(0,t._tDur,e),o=jt(u,c),a=jt(t._tTime,c),t._yoyo&&1&o&&(l=1-l),o!==a&&(s=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==s||i||t._zTime===D||!e&&t._zTime){if(!t._initted&&Gt(t,e,i,n))return;for(a=t._zTime,t._zTime=e||(n?D:0),n||(n=e&&!a),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=u,r=t._pt;r;)r.r(l,r.d),r=r._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!n&&ge(t,"onUpdate"),u&&t._repeat&&!n&&t.parent&&ge(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Rt(t,1),n||(ge(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,n);return this},a.targets=function(){return this._targets},a.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},a.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?ye(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Ve&&!0!==Ve.vars.overwrite)._first||ye(this),this.parent&&n!==this.timeline.totalDuration()&&Kt(this,this._dur*this.timeline._tDur/n,0,1),this}var i,r,o,a,s,l,c,u=this._targets,d=t?se(t):u,h=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,i=n===e.length;i&&n--&&t[n]===e[n];);return n<0}(u,d))return"all"===e&&(this._pt=0),ye(this);for(i=this._op=this._op||[],"all"!==e&&(z(e)&&(s={},wt(e,(function(t){return s[t]=1})),e=s),e=function(t,e){var n,i,r,o,a=t[0]?_t(t[0]).harness:0,s=a&&a.aliases;if(!s)return e;for(i in n=It({},e),s)if(i in n)for(r=(o=s[i].split(",")).length;r--;)n[o[r]]=n[i];return n}(u,e)),c=u.length;c--;)if(~d.indexOf(u[c]))for(s in r=h[c],"all"===e?(i[c]=e,a=r,o={}):(o=i[c]=i[c]||{},a=e),a)(l=r&&r[s])&&("kill"in l.d&&!0!==l.d.kill(s)||Dt(this,l,"_pt"),delete r[s]),"all"!==o&&(o[s]=1);return this._initted&&!this._pt&&p&&ye(this),this},o.to=function(t,e){return new o(t,e,arguments[2])},o.from=function(t,e){return te(1,arguments)},o.delayedCall=function(t,e,n,i){return new o(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},o.fromTo=function(t,e,n){return te(2,arguments)},o.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new o(t,e)},o.killTweensOf=function(t,e,n){return r.killTweensOf(t,e,n)},o}(He);At(Qe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),wt("staggerTo,staggerFrom,staggerFromTo",(function(t){Qe[t]=function(){var e=new Ue,n=re.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var tn=function(t,e,n){return t[e]=n},en=function(t,e,n){return t[e](n)},nn=function(t,e,n,i){return t[e](i.fp,n)},rn=function(t,e,n){return t.setAttribute(e,n)},on=function(t,e){return Y(t[e])?en:U(t[e])&&t.setAttribute?rn:tn},an=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},sn=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ln=function(t,e){var n=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+i,n=n._next;i+=e.c}e.set(e.t,e.p,i,e)},cn=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},un=function(t,e,n,i){for(var r,o=this._pt;o;)r=o._next,o.p===i&&o.modifier(t,e,n),o=r},dn=function(t){for(var e,n,i=this._pt;i;)n=i._next,i.p===t&&!i.op||i.op===t?Dt(this,i,"_pt"):i.dep||(e=1),i=n;return!e},hn=function(t,e,n,i){i.mSet(t,e,i.m.call(i.tween,n,i.mt),i)},pn=function(t){for(var e,n,i,r,o=t._pt;o;){for(e=o._next,n=i;n&&n.pr>o.pr;)n=n._next;(o._prev=n?n._prev:r)?o._prev._next=o:i=o,(o._next=n)?n._prev=o:r=o,o=e}t._pt=i},fn=function(){function t(t,e,n,i,r,o,a,s,l){this.t=e,this.s=i,this.c=r,this.p=n,this.r=o||an,this.d=a||this,this.set=s||tn,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=hn,this.m=t,this.mt=n,this.tween=e},t}();wt(gt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return ut[t]=1})),rt.TweenMax=rt.TweenLite=Qe,rt.TimelineLite=rt.TimelineMax=Ue,r=new Ue({sortChildren:!1,defaults:P,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),O.stringFilter=Ae;var mn={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n1){var i=t.map((function(t){return yn.quickSetter(t,e,n)})),r=i.length;return function(t){for(var e=r;e--;)i[e](t)}}t=t[0]||{};var o=pt[e],a=_t(t),s=a.harness&&(a.harness.aliases||{})[e]||e,l=o?function(e){var i=new o;u._pt=0,i.init(t,n?e+n:e,u,0,[t]),i.render(1,i),u._pt&&cn(1,u)}:a.set(t,s);return o?l:function(e){return l(t,s,n?e+n:e,a,1)}},isTweening:function(t){return r.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Fe(t.ease,P.ease)),Ot(P,t||{})},config:function(t){return Ot(O,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,i=t.plugins,r=t.defaults,o=t.extendTimeline;(i||"").split(",").forEach((function(t){return t&&!pt[t]&&!rt[t]&&st()})),ft[e]=function(t,e,i){return n(se(t),At(e||{},r),i)},o&&(Ue.prototype[e]=function(t,n,i){return this.add(ft[e](t,V(n)?n:(i=n)&&{},this),i)})},registerEase:function(t,e){Oe[t]=Fe(e)},parseEase:function(t,e){return arguments.length?Fe(t,e):Oe},getById:function(t){return r.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,i,o=new Ue(t);for(o.smoothChildTiming=W(t.smoothChildTiming),r.remove(o),o._dp=0,o._time=o._tTime=r._time,n=r._first;n;)i=n._next,!e&&!n._dur&&n instanceof Qe&&n.vars.onComplete===n._targets[0]||Vt(o,n,n._start-n._delay),n=i;return Vt(r,o,0),o},utils:{wrap:function t(e,n,i){var r=n-e;return K(e)?pe(e,t(0,e.length),n):ee(i,(function(t){return(r+(t-e)%r)%r+e}))},wrapYoyo:function t(e,n,i){var r=n-e,o=2*r;return K(e)?pe(e,t(0,e.length-1),n):ee(i,(function(t){return e+((t=(o+(t-e)%o)%o||0)>r?o-t:t)}))},distribute:ce,random:he,snap:de,normalize:function(t,e,n){return me(t,e,0,1,n)},getUnit:ie,clamp:function(t,e,n){return ee(n,(function(n){return ne(t,e,n)}))},splitColor:Se,toArray:se,selector:function(t){return t=se(t)[0]||st()||{},function(e){var n=t.current||t.nativeElement||t;return se(e,n.querySelectorAll?n:n===t?st()||s.createElement("div"):t)}},mapRange:me,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n=0?fi[r]:"")+t},vi=function(){"undefined"!=typeof window&&window.document&&(_n=window,bn=_n.document,wn=bn.documentElement,Sn=hi("div")||{style:{}},hi("div"),ui=mi(ui),di=ui+"Origin",Sn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",kn=!!mi("perspective"),xn=1)},gi=function t(e){var n,i=hi("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,o=this.nextSibling,a=this.style.cssText;if(wn.appendChild(i),i.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(n=this._gsapBBox());return r&&(o?r.insertBefore(this,o):r.appendChild(this)),wn.removeChild(i),this.style.cssText=a,n},yi=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},_i=function(t){var e;try{e=t.getBBox()}catch(n){e=gi.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===gi||(e=gi.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+yi(t,["x","cx","x1"])||0,y:+yi(t,["y","cy","y1"])||0,width:0,height:0}},bi=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!_i(t))},wi=function(t,e){if(e){var n=t.style;e in Un&&e!==di&&(e=ui),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace(qn,"-$1").toLowerCase())):n.removeAttribute(e)}},xi=function(t,e,n,i,r,o){var a=new fn(t._pt,e,n,0,1,o?ii:ni);return t._pt=a,a.b=i,a.e=r,t._props.push(n),a},Si={deg:1,rad:1,turn:1},Ci=function t(e,n,i,r){var o,a,s,l,c=parseFloat(i)||0,u=(i+"").trim().substr((c+"").length)||"px",d=Sn.style,h=Xn.test(n),p="svg"===e.tagName.toLowerCase(),f=(p?"client":"offset")+(h?"Width":"Height"),m=100,v="px"===r,g="%"===r;return r===u||!c||Si[r]||Si[u]?c:("px"!==u&&!v&&(c=t(e,n,i,"px")),l=e.getCTM&&bi(e),!g&&"%"!==u||!Un[n]&&!~n.indexOf("adius")?(d[h?"width":"height"]=m+(v?u:r),a=~n.indexOf("adius")||"em"===r&&e.appendChild&&!p?e:e.parentNode,l&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==bn&&a.appendChild||(a=bn.body),(s=a._gsap)&&g&&s.width&&h&&s.time===Me.time?xt(c/s.width*m):((g||"%"===u)&&(d.position=pi(e,"position")),a===e&&(d.position="static"),a.appendChild(Sn),o=Sn[f],a.removeChild(Sn),d.position="absolute",h&&g&&((s=_t(a)).time=Me.time,s.width=a[f]),xt(v?o*c/m:o&&c?m/o*c:0))):(o=l?e.getBBox()[h?"width":"height"]:e[f],xt(g?c/o*m:c/100*o)))},ki=function(t,e,n,i){var r;return xn||vi(),e in Jn&&"transform"!==e&&~(e=Jn[e]).indexOf(",")&&(e=e.split(",")[0]),Un[e]&&"transform"!==e?(r=Li(t,i),r="transformOrigin"!==e?r[e]:r.svg?r.origin:Fi(pi(t,di))+" "+r.zOrigin+"px"):(!(r=t.style[e])||"auto"===r||i||~(r+"").indexOf("calc("))&&(r=Mi[e]&&Mi[e](t,e,n)||pi(t,e)||bt(t,e)||("opacity"===e?1:0)),n&&!~(r+"").trim().indexOf(" ")?Ci(t,e,r,n)+n:r},Ti=function(t,e,n,i){if(!n||"none"===n){var r=mi(e,t,1),o=r&&pi(t,r,1);o&&o!==n?(e=r,n=o):"borderColor"===e&&(n=pi(t,"borderTopColor"))}var a,s,l,c,u,d,h,p,f,m,v,g,y=new fn(this._pt,t.style,e,0,1,ln),_=0,b=0;if(y.b=n,y.e=i,n+="","auto"===(i+="")&&(t.style[e]=i,i=pi(t,e)||i,t.style[e]=n),Ae(a=[n,i]),i=a[1],l=(n=a[0]).match(Q)||[],(i.match(Q)||[]).length){for(;s=Q.exec(i);)h=s[0],f=i.substring(_,s.index),u?u=(u+1)%5:"rgba("!==f.substr(-5)&&"hsla("!==f.substr(-5)||(u=1),h!==(d=l[b++]||"")&&(c=parseFloat(d)||0,v=d.substr((c+"").length),(g="="===h.charAt(1)?+(h.charAt(0)+"1"):0)&&(h=h.substr(2)),p=parseFloat(h),m=h.substr((p+"").length),_=Q.lastIndex-m.length,m||(m=m||O.units[e]||v,_===i.length&&(i+=m,y.e+=m)),v!==m&&(c=Ci(t,e,d,m)||0),y._pt={_next:y._pt,p:f||1===b?f:",",s:c,c:g?g*p:p-c,m:u&&u<4||"zIndex"===e?Math.round:0});y.c=_-1;)n=s[r],Un[n]&&(i=1,n="transformOrigin"===n?di:ui),wi(o,n);i&&(wi(o,ui),l&&(l.svg&&o.removeAttribute("transform"),Li(o,1),l.uncache=1))}},Mi={clearProps:function(t,e,n,i,r){if("isFromStart"!==r.data){var o=t._pt=new fn(t._pt,e,n,0,0,Ai);return o.u=i,o.pr=-10,o.tween=r,t._props.push(n),1}}},Ii=[1,0,0,1,0,0],Oi={},Pi=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Ni=function(t){var e=pi(t,ui);return Pi(e)?Ii:e.substr(7).match(Z).map(xt)},Di=function(t,e){var n,i,r,o,a=t._gsap||_t(t),s=t.style,l=Ni(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(r=t.transform.baseVal.consolidate().matrix).a,r.b,r.c,r.d,r.e,r.f]).join(",")?Ii:l:(l!==Ii||t.offsetParent||t===wn||a.svg||(r=s.display,s.display="block",(n=t.parentNode)&&t.offsetParent||(o=1,i=t.nextSibling,wn.appendChild(t)),l=Ni(t),r?s.display=r:wi(t,"display"),o&&(i?n.insertBefore(t,i):n?n.appendChild(t):wn.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Ri=function(t,e,n,i,r,o){var a,s,l,c=t._gsap,u=r||Di(t,!0),d=c.xOrigin||0,h=c.yOrigin||0,p=c.xOffset||0,f=c.yOffset||0,m=u[0],v=u[1],g=u[2],y=u[3],_=u[4],b=u[5],w=e.split(" "),x=parseFloat(w[0])||0,S=parseFloat(w[1])||0;n?u!==Ii&&(s=m*y-v*g)&&(l=x*(-v/s)+S*(m/s)-(m*b-v*_)/s,x=x*(y/s)+S*(-g/s)+(g*b-y*_)/s,S=l):(x=(a=_i(t)).x+(~w[0].indexOf("%")?x/100*a.width:x),S=a.y+(~(w[1]||w[0]).indexOf("%")?S/100*a.height:S)),i||!1!==i&&c.smooth?(_=x-d,b=S-h,c.xOffset=p+(_*m+b*g)-_,c.yOffset=f+(_*v+b*y)-b):c.xOffset=c.yOffset=0,c.xOrigin=x,c.yOrigin=S,c.smooth=!!i,c.origin=e,c.originIsAbsolute=!!n,t.style[di]="0px 0px",o&&(xi(o,c,"xOrigin",d,x),xi(o,c,"yOrigin",h,S),xi(o,c,"xOffset",p,c.xOffset),xi(o,c,"yOffset",f,c.yOffset)),t.setAttribute("data-svg-origin",x+" "+S)},Li=function(t,e){var n=t._gsap||new Ye(t);if("x"in n&&!e&&!n.uncache)return n;var i,r,o,a,s,l,c,u,d,h,p,f,m,v,g,y,_,b,w,x,S,C,k,T,E,A,M,I,P,N,D,R,L=t.style,F=n.scaleX<0,$="px",B="deg",j=pi(t,di)||"0";return i=r=o=l=c=u=d=h=p=0,a=s=1,n.svg=!(!t.getCTM||!bi(t)),v=Di(t,n.svg),n.svg&&(T=(!n.uncache||"0px 0px"===j)&&!e&&t.getAttribute("data-svg-origin"),Ri(t,T||j,!!T||n.originIsAbsolute,!1!==n.smooth,v)),f=n.xOrigin||0,m=n.yOrigin||0,v!==Ii&&(b=v[0],w=v[1],x=v[2],S=v[3],i=C=v[4],r=k=v[5],6===v.length?(a=Math.sqrt(b*b+w*w),s=Math.sqrt(S*S+x*x),l=b||w?Gn(w,b)*Vn:0,(d=x||S?Gn(x,S)*Vn+l:0)&&(s*=Math.abs(Math.cos(d*Wn))),n.svg&&(i-=f-(f*b+m*x),r-=m-(f*w+m*S))):(R=v[6],N=v[7],M=v[8],I=v[9],P=v[10],D=v[11],i=v[12],r=v[13],o=v[14],c=(g=Gn(R,P))*Vn,g&&(T=C*(y=Math.cos(-g))+M*(_=Math.sin(-g)),E=k*y+I*_,A=R*y+P*_,M=C*-_+M*y,I=k*-_+I*y,P=R*-_+P*y,D=N*-_+D*y,C=T,k=E,R=A),u=(g=Gn(-x,P))*Vn,g&&(y=Math.cos(-g),D=S*(_=Math.sin(-g))+D*y,b=T=b*y-M*_,w=E=w*y-I*_,x=A=x*y-P*_),l=(g=Gn(w,b))*Vn,g&&(T=b*(y=Math.cos(g))+w*(_=Math.sin(g)),E=C*y+k*_,w=w*y-b*_,k=k*y-C*_,b=T,C=E),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,u=180-u),a=xt(Math.sqrt(b*b+w*w+x*x)),s=xt(Math.sqrt(k*k+R*R)),g=Gn(C,k),d=Math.abs(g)>2e-4?g*Vn:0,p=D?1/(D<0?-D:D):0),n.svg&&(T=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Pi(pi(t,ui)),T&&t.setAttribute("transform",T))),Math.abs(d)>90&&Math.abs(d)<270&&(F?(a*=-1,d+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,d+=d<=0?180:-180)),n.x=i-((n.xPercent=i&&(n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+$,n.y=r-((n.yPercent=r&&(n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-r)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+$,n.z=o+$,n.scaleX=xt(a),n.scaleY=xt(s),n.rotation=xt(l)+B,n.rotationX=xt(c)+B,n.rotationY=xt(u)+B,n.skewX=d+B,n.skewY=h+B,n.transformPerspective=p+$,(n.zOrigin=parseFloat(j.split(" ")[2])||0)&&(L[di]=Fi(j)),n.xOffset=n.yOffset=0,n.force3D=O.force3D,n.renderTransform=n.svg?Ui:kn?Hi:Bi,n.uncache=0,n},Fi=function(t){return(t=t.split(" "))[0]+" "+t[1]},$i=function(t,e,n){var i=ie(e);return xt(parseFloat(e)+parseFloat(Ci(t,"x",n+"px",i)))+i},Bi=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Hi(t,e)},ji="0deg",zi="0px",Yi=") ",Hi=function(t,e){var n=e||this,i=n.xPercent,r=n.yPercent,o=n.x,a=n.y,s=n.z,l=n.rotation,c=n.rotationY,u=n.rotationX,d=n.skewX,h=n.skewY,p=n.scaleX,f=n.scaleY,m=n.transformPerspective,v=n.force3D,g=n.target,y=n.zOrigin,_="",b="auto"===v&&t&&1!==t||!0===v;if(y&&(u!==ji||c!==ji)){var w,x=parseFloat(c)*Wn,S=Math.sin(x),C=Math.cos(x);x=parseFloat(u)*Wn,w=Math.cos(x),o=$i(g,o,S*w*-y),a=$i(g,a,-Math.sin(x)*-y),s=$i(g,s,C*w*-y+y)}m!==zi&&(_+="perspective("+m+Yi),(i||r)&&(_+="translate("+i+"%, "+r+"%) "),(b||o!==zi||a!==zi||s!==zi)&&(_+=s!==zi||b?"translate3d("+o+", "+a+", "+s+") ":"translate("+o+", "+a+Yi),l!==ji&&(_+="rotate("+l+Yi),c!==ji&&(_+="rotateY("+c+Yi),u!==ji&&(_+="rotateX("+u+Yi),d===ji&&h===ji||(_+="skew("+d+", "+h+Yi),1===p&&1===f||(_+="scale("+p+", "+f+Yi),g.style[ui]=_||"translate(0, 0)"},Ui=function(t,e){var n,i,r,o,a,s=e||this,l=s.xPercent,c=s.yPercent,u=s.x,d=s.y,h=s.rotation,p=s.skewX,f=s.skewY,m=s.scaleX,v=s.scaleY,g=s.target,y=s.xOrigin,_=s.yOrigin,b=s.xOffset,w=s.yOffset,x=s.forceCSS,S=parseFloat(u),C=parseFloat(d);h=parseFloat(h),p=parseFloat(p),(f=parseFloat(f))&&(p+=f=parseFloat(f),h+=f),h||p?(h*=Wn,p*=Wn,n=Math.cos(h)*m,i=Math.sin(h)*m,r=Math.sin(h-p)*-v,o=Math.cos(h-p)*v,p&&(f*=Wn,a=Math.tan(p-f),r*=a=Math.sqrt(1+a*a),o*=a,f&&(a=Math.tan(f),n*=a=Math.sqrt(1+a*a),i*=a)),n=xt(n),i=xt(i),r=xt(r),o=xt(o)):(n=m,o=v,i=r=0),(S&&!~(u+"").indexOf("px")||C&&!~(d+"").indexOf("px"))&&(S=Ci(g,"x",u,"px"),C=Ci(g,"y",d,"px")),(y||_||b||w)&&(S=xt(S+y-(y*n+_*r)+b),C=xt(C+_-(y*i+_*o)+w)),(l||c)&&(a=g.getBBox(),S=xt(S+l/100*a.width),C=xt(C+c/100*a.height)),a="matrix("+n+","+i+","+r+","+o+","+S+","+C+")",g.setAttribute("transform",a),x&&(g.style[ui]=a)},Vi=function(t,e,n,i,r,o){var a,s,l=360,c=z(r),u=parseFloat(r)*(c&&~r.indexOf("rad")?Vn:1),d=o?u*o:u-i,h=i+d+"deg";return c&&("short"===(a=r.split("_")[1])&&(d%=l)!==d%180&&(d+=d<0?l:-360),"cw"===a&&d<0?d=(d+36e9)%l-~~(d/l)*l:"ccw"===a&&d>0&&(d=(d-36e9)%l-~~(d/l)*l)),t._pt=s=new fn(t._pt,e,n,i,d,Qn),s.e=h,s.u="deg",t._props.push(n),s},Wi=function(t,e){for(var n in e)t[n]=e[n];return t},Gi=function(t,e,n){var i,r,o,a,s,l,c,u=Wi({},n._gsap),d=n.style;for(r in u.svg?(o=n.getAttribute("transform"),n.setAttribute("transform",""),d[ui]=e,i=Li(n,1),wi(n,ui),n.setAttribute("transform",o)):(o=getComputedStyle(n)[ui],d[ui]=e,i=Li(n,1),d[ui]=o),Un)(o=u[r])!==(a=i[r])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(r)<0&&(s=ie(o)!==(c=ie(a))?Ci(n,r,o,c):parseFloat(o),l=parseFloat(a),t._pt=new fn(t._pt,i,r,s,l-s,Zn),t._pt.u=c||0,t._props.push(r));Wi(i,u)};wt("padding,margin,Width,Radius",(function(t,e){var n="Top",i="Right",r="Bottom",o="Left",a=(e<3?[n,i,r,o]:[n+o,n+i,r+i,r+o]).map((function(n){return e<2?t+n:"border"+n+t}));Mi[e>1?"border"+t:t]=function(t,e,n,i,r){var o,s;if(arguments.length<4)return o=a.map((function(e){return ki(t,e,n)})),5===(s=o.join(" ")).split(o[0]).length?o[0]:s;o=(i+"").split(" "),s={},a.forEach((function(t,e){return s[t]=o[e]=o[e]||o[(e-1)/2|0]})),t.init(e,s,r)}}));var qi,Xi,Ki,Ji={name:"css",register:vi,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,i,r){var o,a,s,l,c,u,d,h,p,f,m,v,g,y,_,b,w,x,S,C=this._props,k=t.style,T=n.vars.startAt;for(d in xn||vi(),e)if("autoRound"!==d&&(a=e[d],!pt[d]||!qe(d,e,n,i,t,r)))if(c=typeof a,u=Mi[d],"function"===c&&(c=typeof(a=a.call(n,i,t,r))),"string"===c&&~a.indexOf("random(")&&(a=fe(a)),u)u(this,t,d,a,n)&&(_=1);else if("--"===d.substr(0,2))o=(getComputedStyle(t).getPropertyValue(d)+"").trim(),a+="",Te.lastIndex=0,Te.test(o)||(h=ie(o),p=ie(a)),p?h!==p&&(o=Ci(t,d,o,p)+p):h&&(a+=h),this.add(k,"setProperty",o,a,i,r,0,0,d),C.push(d);else if("undefined"!==c){if(T&&d in T?(o="function"==typeof T[d]?T[d].call(n,i,t,r):T[d],d in O.units&&!ie(o)&&(o+=O.units[d]),"="===(o+"").charAt(1)&&(o=ki(t,d))):o=ki(t,d),l=parseFloat(o),(f="string"===c&&"="===a.charAt(1)?+(a.charAt(0)+"1"):0)&&(a=a.substr(2)),s=parseFloat(a),d in Jn&&("autoAlpha"===d&&(1===l&&"hidden"===ki(t,"visibility")&&s&&(l=0),xi(this,k,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==d&&"transform"!==d&&~(d=Jn[d]).indexOf(",")&&(d=d.split(",")[0])),m=d in Un)if(v||((g=t._gsap).renderTransform&&!e.parseTransform||Li(t,e.parseTransform),y=!1!==e.smoothOrigin&&g.smooth,(v=this._pt=new fn(this._pt,k,ui,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===d)this._pt=new fn(this._pt,g,"scaleY",g.scaleY,(f?f*s:s-g.scaleY)||0),C.push("scaleY",d),d+="X";else{if("transformOrigin"===d){w=void 0,x=void 0,S=void 0,w=(b=a).split(" "),x=w[0],S=w[1]||"50%","top"!==x&&"bottom"!==x&&"left"!==S&&"right"!==S||(b=x,x=S,S=b),w[0]=Ei[x]||x,w[1]=Ei[S]||S,a=w.join(" "),g.svg?Ri(t,a,0,y,0,this):((p=parseFloat(a.split(" ")[2])||0)!==g.zOrigin&&xi(this,g,"zOrigin",g.zOrigin,p),xi(this,k,d,Fi(o),Fi(a)));continue}if("svgOrigin"===d){Ri(t,a,1,y,0,this);continue}if(d in Oi){Vi(this,g,d,l,a,f);continue}if("smoothOrigin"===d){xi(this,g,"smooth",g.smooth,a);continue}if("force3D"===d){g[d]=a;continue}if("transform"===d){Gi(this,a,t);continue}}else d in k||(d=mi(d)||d);if(m||(s||0===s)&&(l||0===l)&&!Kn.test(a)&&d in k)s||(s=0),(h=(o+"").substr((l+"").length))!==(p=ie(a)||(d in O.units?O.units[d]:h))&&(l=Ci(t,d,o,p)),this._pt=new fn(this._pt,m?g:k,d,l,f?f*s:s-l,m||"px"!==p&&"zIndex"!==d||!1===e.autoRound?Zn:ei),this._pt.u=p||0,h!==p&&(this._pt.b=o,this._pt.r=ti);else if(d in k)Ti.call(this,t,d,o,a);else{if(!(d in t))continue;this.add(t,d,o||t[d],a,i,r)}C.push(d)}_&&pn(this)},get:ki,aliases:Jn,getSetter:function(t,e,n){var i=Jn[e];return i&&i.indexOf(",")<0&&(e=i),e in Un&&e!==di&&(t._gsap.x||ki(t,"x"))?n&&Cn===n?"scale"===e?si:ai:(Cn=n||{})&&("scale"===e?li:ci):t.style&&!U(t.style[e])?ri:~e.indexOf("-")?oi:on(t,e)},core:{_removeProperty:wi,_getMatrix:Di}};yn.utils.checkPrefix=mi,Ki=wt((qi="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Xi="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Un[t]=1})),wt(Xi,(function(t){O.units[t]="deg",Oi[t]=1})),Jn[Ki[13]]=qi+","+Xi,wt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Jn[e[1]]=Ki[e[0]]})),wt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){O.units[t]="px"})),yn.registerPlugin(Ji);var Zi=yn.registerPlugin(Ji)||yn,Qi=Zi.core.Tween;t.Back=$n,t.Bounce=jn,t.CSSPlugin=Ji,t.Circ=Hn,t.Cubic=Nn,t.Elastic=Fn,t.Expo=Yn,t.Linear=On,t.Power0=Tn,t.Power1=En,t.Power2=An,t.Power3=Mn,t.Power4=In,t.Quad=Pn,t.Quart=Dn,t.Quint=Rn,t.Sine=zn,t.SteppedEase=Bn,t.Strong=Ln,t.TimelineLite=Ue,t.TimelineMax=Ue,t.TweenLite=Qe,t.TweenMax=Qi,t.default=Zi,t.gsap=Zi,"undefined"==typeof window||window!==t?Object.defineProperty(t,"__esModule",{value:!0}):delete window.default}))},{}],4:[function(t,e,n){(function(i){(function(){!function(t){if("object"==typeof n&&void 0!==e)e.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:this).Marzipano=t()}}((function(){var e;return function e(n,i,r){function o(s,l){if(!i[s]){if(!n[s]){var c="function"==typeof t&&t;if(!l&&c)return c(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=i[s]={exports:{}};n[s][0].call(d.exports,(function(t){return o(n[s][1][t]||t)}),d,d.exports,e,n,i,r)}return i[s].exports}for(var a="function"==typeof t&&t,s=0;s1&&n[1]||""}function n(e){var n=t.match(e);return n&&n.length>1&&n[2]||""}var r,a=e(/(ipod|iphone|ipad)/i).toLowerCase(),s=!/like android/i.test(t)&&/android/i.test(t),l=/nexus\s*[0-6]\s*/i.test(t),c=!l&&/nexus\s*[0-9]+/i.test(t),u=/CrOS/.test(t),d=/silk/i.test(t),h=/sailfish/i.test(t),p=/tizen/i.test(t),f=/(web|hpw)(o|0)s/i.test(t),m=/windows phone/i.test(t),v=(/SamsungBrowser/i.test(t),!m&&/windows/i.test(t)),g=!a&&!d&&/macintosh/i.test(t),y=!s&&!h&&!p&&!f&&/linux/i.test(t),_=n(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),b=e(/version\/(\d+(\.\d+)?)/i),w=/tablet/i.test(t)&&!/tablet pc/i.test(t),x=!w&&/[^-]mobi/i.test(t),S=/xbox/i.test(t);/opera/i.test(t)?r={name:"Opera",opera:o,version:b||e(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?r={name:"Opera",opera:o,version:e(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||b}:/SamsungBrowser/i.test(t)?r={name:"Samsung Internet for Android",samsungBrowser:o,version:b||e(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(t)?r={name:"NAVER Whale browser",whale:o,version:e(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(t)?r={name:"MZ Browser",mzbrowser:o,version:e(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(t)?r={name:"Opera Coast",coast:o,version:b||e(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(t)?r={name:"Focus",focus:o,version:e(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(t)?r={name:"Yandex Browser",yandexbrowser:o,version:b||e(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?r={name:"UC Browser",ucbrowser:o,version:e(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?r={name:"Maxthon",maxthon:o,version:e(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?r={name:"Epiphany",epiphany:o,version:e(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?r={name:"Puffin",puffin:o,version:e(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?r={name:"Sleipnir",sleipnir:o,version:e(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?r={name:"K-Meleon",kMeleon:o,version:e(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:m?(r={name:"Windows Phone",osname:"Windows Phone",windowsphone:o},_?(r.msedge=o,r.version=_):(r.msie=o,r.version=e(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?r={name:"Internet Explorer",msie:o,version:e(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:u?r={name:"Chrome",osname:"Chrome OS",chromeos:o,chromeBook:o,chrome:o,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?r={name:"Microsoft Edge",msedge:o,version:_}:/vivaldi/i.test(t)?r={name:"Vivaldi",vivaldi:o,version:e(/vivaldi\/(\d+(\.\d+)?)/i)||b}:h?r={name:"Sailfish",osname:"Sailfish OS",sailfish:o,version:e(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?r={name:"SeaMonkey",seamonkey:o,version:e(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(r={name:"Firefox",firefox:o,version:e(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(r.firefoxos=o,r.osname="Firefox OS")):d?r={name:"Amazon Silk",silk:o,version:e(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?r={name:"PhantomJS",phantom:o,version:e(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?r={name:"SlimerJS",slimer:o,version:e(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?r={name:"BlackBerry",osname:"BlackBerry OS",blackberry:o,version:b||e(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:f?(r={name:"WebOS",osname:"WebOS",webos:o,version:b||e(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(r.touchpad=o)):/bada/i.test(t)?r={name:"Bada",osname:"Bada",bada:o,version:e(/dolfin\/(\d+(\.\d+)?)/i)}:p?r={name:"Tizen",osname:"Tizen",tizen:o,version:e(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||b}:/qupzilla/i.test(t)?r={name:"QupZilla",qupzilla:o,version:e(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||b}:/chromium/i.test(t)?r={name:"Chromium",chromium:o,version:e(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||b}:/chrome|crios|crmo/i.test(t)?r={name:"Chrome",chrome:o,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:s?r={name:"Android",version:b}:/safari|applewebkit/i.test(t)?(r={name:"Safari",safari:o},b&&(r.version=b)):a?(r={name:"iphone"==a?"iPhone":"ipad"==a?"iPad":"iPod"},b&&(r.version=b)):r=/googlebot/i.test(t)?{name:"Googlebot",googlebot:o,version:e(/googlebot\/(\d+(\.\d+))/i)||b}:{name:e(/^(.*)\/(.*) /),version:n(/^(.*)\/(.*) /)},!r.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(r.name=r.name||"Blink",r.blink=o):(r.name=r.name||"Webkit",r.webkit=o),!r.version&&b&&(r.version=b)):!r.opera&&/gecko\//i.test(t)&&(r.name=r.name||"Gecko",r.gecko=o,r.version=r.version||e(/gecko\/(\d+(\.\d+)?)/i)),r.windowsphone||!s&&!r.silk?!r.windowsphone&&a?(r[a]=o,r.ios=o,r.osname="iOS"):g?(r.mac=o,r.osname="macOS"):S?(r.xbox=o,r.osname="Xbox"):v?(r.windows=o,r.osname="Windows"):y&&(r.linux=o,r.osname="Linux"):(r.android=o,r.osname="Android");var C="";r.windows?C=function(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(e(/Windows ((NT|XP)( \d\d?.\d)?)/i)):r.windowsphone?C=e(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):r.mac?C=(C=e(/Mac OS X (\d+([_\.\s]\d+)*)/i)).replace(/[_\s]/g,"."):a?C=(C=e(/os (\d+([_\s]\d+)*) like mac os x/i)).replace(/[_\s]/g,"."):s?C=e(/android[ \/-](\d+(\.\d+)*)/i):r.webos?C=e(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):r.blackberry?C=e(/rim\stablet\sos\s(\d+(\.\d+)*)/i):r.bada?C=e(/bada\/(\d+(\.\d+)*)/i):r.tizen&&(C=e(/tizen[\/\s](\d+(\.\d+)*)/i)),C&&(r.osversion=C);var k=!r.windows&&C.split(".")[0];return w||c||"ipad"==a||s&&(3==k||k>=4&&!x)||r.silk?r.tablet=o:(x||"iphone"==a||"ipod"==a||s||l||r.blackberry||r.webos||r.bada)&&(r.mobile=o),r.msedge||r.msie&&r.version>=10||r.yandexbrowser&&r.version>=15||r.vivaldi&&r.version>=1||r.chrome&&r.version>=20||r.samsungBrowser&&r.version>=4||r.whale&&1===i([r.version,"1.0"])||r.mzbrowser&&1===i([r.version,"6.0"])||r.focus&&1===i([r.version,"1.0"])||r.firefox&&r.version>=20||r.safari&&r.version>=6||r.opera&&r.version>=10||r.ios&&r.osversion&&r.osversion.split(".")[0]>=6||r.blackberry&&r.version>=10.1||r.chromium&&r.version>=20?r.a=o:r.msie&&r.version<10||r.chrome&&r.version<20||r.firefox&&r.version<20||r.safari&&r.version<6||r.opera&&r.version<10||r.ios&&r.osversion&&r.osversion.split(".")[0]<6||r.chromium&&r.version<20?r.c=o:r.x=o,r}function e(t){return t.split(".").length}function n(t,e){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(t,e);for(n=0;n=0;){if(r[0][i]>r[1][i])return 1;if(r[0][i]!==r[1][i])return-1;if(0===i)return 0}}function r(e,n,r){var o=a;"string"==typeof n&&(r=n,n=void 0),void 0===n&&(n=!1),r&&(o=t(r));var s=""+o.version;for(var l in e)if(e.hasOwnProperty(l)&&o[l]){if("string"!=typeof e[l])throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(e));return i([s,e[l]])<0}return n}var o=!0,a=t("undefined"!=typeof navigator&&navigator.userAgent||"");return a.test=function(t){for(var e=0;e0?(i=2*Math.sqrt(n+1),t[3]=.25*i,t[0]=(e[6]-e[9])/i,t[1]=(e[8]-e[2])/i,t[2]=(e[1]-e[4])/i):e[0]>e[5]&e[0]>e[10]?(i=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/i,t[0]=.25*i,t[1]=(e[1]+e[4])/i,t[2]=(e[8]+e[2])/i):e[5]>e[10]?(i=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/i,t[0]=(e[1]+e[4])/i,t[1]=.25*i,t[2]=(e[6]+e[9])/i):(i=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/i,t[0]=(e[8]+e[2])/i,t[1]=(e[6]+e[9])/i,t[2]=.25*i),t},r.fromRotationTranslationScale=function(t,e,n,i){var r=e[0],o=e[1],a=e[2],s=e[3],l=r+r,c=o+o,u=a+a,d=r*l,h=r*c,p=r*u,f=o*c,m=o*u,v=a*u,g=s*l,y=s*c,_=s*u,b=i[0],w=i[1],x=i[2];return t[0]=(1-(f+v))*b,t[1]=(h+_)*b,t[2]=(p-y)*b,t[3]=0,t[4]=(h-_)*w,t[5]=(1-(d+v))*w,t[6]=(m+g)*w,t[7]=0,t[8]=(p+y)*x,t[9]=(m-g)*x,t[10]=(1-(d+f))*x,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},r.fromRotationTranslationScaleOrigin=function(t,e,n,i,r){var o=e[0],a=e[1],s=e[2],l=e[3],c=o+o,u=a+a,d=s+s,h=o*c,p=o*u,f=o*d,m=a*u,v=a*d,g=s*d,y=l*c,_=l*u,b=l*d,w=i[0],x=i[1],S=i[2],C=r[0],k=r[1],T=r[2];return t[0]=(1-(m+g))*w,t[1]=(p+b)*w,t[2]=(f-_)*w,t[3]=0,t[4]=(p-b)*x,t[5]=(1-(h+g))*x,t[6]=(v+y)*x,t[7]=0,t[8]=(f+_)*S,t[9]=(v-y)*S,t[10]=(1-(h+m))*S,t[11]=0,t[12]=n[0]+C-(t[0]*C+t[4]*k+t[8]*T),t[13]=n[1]+k-(t[1]*C+t[5]*k+t[9]*T),t[14]=n[2]+T-(t[2]*C+t[6]*k+t[10]*T),t[15]=1,t},r.fromQuat=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,l=r+r,c=n*a,u=i*a,d=i*s,h=r*a,p=r*s,f=r*l,m=o*a,v=o*s,g=o*l;return t[0]=1-d-f,t[1]=u+g,t[2]=h-v,t[3]=0,t[4]=u-g,t[5]=1-c-f,t[6]=p+m,t[7]=0,t[8]=h+v,t[9]=p-m,t[10]=1-c-d,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},r.frustum=function(t,e,n,i,r,o,a){var s=1/(n-e),l=1/(r-i),c=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(r+i)*l,t[10]=(a+o)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*c,t[15]=0,t},r.perspective=function(t,e,n,i,r){var o=1/Math.tan(e/2),a=1/(i-r);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(r+i)*a,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*r*i*a,t[15]=0,t},r.perspectiveFromFieldOfView=function(t,e,n,i){var r=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(a+s),c=2/(r+o);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(a-s)*l*.5,t[9]=(r-o)*c*.5,t[10]=i/(n-i),t[11]=-1,t[12]=0,t[13]=0,t[14]=i*n/(n-i),t[15]=0,t},r.ortho=function(t,e,n,i,r,o,a){var s=1/(e-n),l=1/(i-r),c=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*s,t[13]=(r+i)*l,t[14]=(a+o)*c,t[15]=1,t},r.lookAt=function(t,e,n,o){var a,s,l,c,u,d,h,p,f,m,v=e[0],g=e[1],y=e[2],_=o[0],b=o[1],w=o[2],x=n[0],S=n[1],C=n[2];return Math.abs(v-x).999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(o.cross(t,r,a),i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=1+l,s.normalize(i,i))}}(),s.setAxes=function(){var t=r.create();return function(e,n,i,r){return t[0]=i[0],t[3]=i[1],t[6]=i[2],t[1]=r[0],t[4]=r[1],t[7]=r[2],t[2]=-n[0],t[5]=-n[1],t[8]=-n[2],s.normalize(e,s.fromMat3(e,t))}}(),s.clone=a.clone,s.fromValues=a.fromValues,s.copy=a.copy,s.set=a.set,s.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},s.setAxisAngle=function(t,e,n){n*=.5;var i=Math.sin(n);return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=Math.cos(n),t},s.getAxisAngle=function(t,e){var n=2*Math.acos(e[3]),i=Math.sin(n/2);return 0!=i?(t[0]=e[0]/i,t[1]=e[1]/i,t[2]=e[2]/i):(t[0]=1,t[1]=0,t[2]=0),n},s.add=a.add,s.multiply=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=n[0],l=n[1],c=n[2],u=n[3];return t[0]=i*u+a*s+r*c-o*l,t[1]=r*u+a*l+o*s-i*c,t[2]=o*u+a*c+i*l-r*s,t[3]=a*u-i*s-r*l-o*c,t},s.mul=s.multiply,s.scale=a.scale,s.rotateX=function(t,e,n){n*=.5;var i=e[0],r=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l+a*s,t[1]=r*l+o*s,t[2]=o*l-r*s,t[3]=a*l-i*s,t},s.rotateY=function(t,e,n){n*=.5;var i=e[0],r=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l-o*s,t[1]=r*l+a*s,t[2]=o*l+i*s,t[3]=a*l-r*s,t},s.rotateZ=function(t,e,n){n*=.5;var i=e[0],r=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l+r*s,t[1]=r*l-i*s,t[2]=o*l+a*s,t[3]=a*l-o*s,t},s.calculateW=function(t,e){var n=e[0],i=e[1],r=e[2];return t[0]=n,t[1]=i,t[2]=r,t[3]=Math.sqrt(Math.abs(1-n*n-i*i-r*r)),t},s.dot=a.dot,s.lerp=a.lerp,s.slerp=function(t,e,n,i){var r,o,a,s,l,c=e[0],u=e[1],d=e[2],h=e[3],p=n[0],f=n[1],m=n[2],v=n[3];return(o=c*p+u*f+d*m+h*v)<0&&(o=-o,p=-p,f=-f,m=-m,v=-v),1-o>1e-6?(r=Math.acos(o),a=Math.sin(r),s=Math.sin((1-i)*r)/a,l=Math.sin(i*r)/a):(s=1-i,l=i),t[0]=s*c+l*p,t[1]=s*u+l*f,t[2]=s*d+l*m,t[3]=s*h+l*v,t},s.sqlerp=function(){var t=s.create(),e=s.create();return function(n,i,r,o,a,l){return s.slerp(t,i,a,l),s.slerp(e,r,o,l),s.slerp(n,t,e,2*l*(1-l)),n}}(),s.invert=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n*n+i*i+r*r+o*o,s=a?1/a:0;return t[0]=-n*s,t[1]=-i*s,t[2]=-r*s,t[3]=o*s,t},s.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},s.length=a.length,s.len=s.length,s.squaredLength=a.squaredLength,s.sqrLen=s.squaredLength,s.normalize=a.normalize,s.fromMat3=function(t,e){var n,i=e[0]+e[4]+e[8];if(i>0)n=Math.sqrt(i+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);var o=(r+1)%3,a=(r+2)%3;n=Math.sqrt(e[3*r+r]-e[3*o+o]-e[3*a+a]+1),t[r]=.5*n,n=.5/n,t[3]=(e[3*o+a]-e[3*a+o])*n,t[o]=(e[3*o+r]+e[3*r+o])*n,t[a]=(e[3*a+r]+e[3*r+a])*n}return t},s.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},s.exactEquals=a.exactEquals,s.equals=a.equals,e.exports=s},{"./common.js":3,"./mat3.js":6,"./vec3.js":10,"./vec4.js":11}],9:[function(t,e,n){var i=t("./common.js"),r={create:function(){var t=new i.ARRAY_TYPE(2);return t[0]=0,t[1]=0,t},clone:function(t){var e=new i.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},fromValues:function(t,e){var n=new i.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},set:function(t,e,n){return t[0]=e,t[1]=n,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},subtract:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}};r.sub=r.subtract,r.multiply=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},r.mul=r.multiply,r.divide=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},r.div=r.divide,r.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},r.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},r.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},r.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},r.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},r.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},r.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},r.distance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(n*n+i*i)},r.dist=r.distance,r.squaredDistance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i},r.sqrDist=r.squaredDistance,r.length=function(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)},r.len=r.length,r.squaredLength=function(t){var e=t[0],n=t[1];return e*e+n*n},r.sqrLen=r.squaredLength,r.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},r.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},r.normalize=function(t,e){var n=e[0],i=e[1],r=n*n+i*i;return r>0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r),t},r.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},r.cross=function(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t},r.lerp=function(t,e,n,i){var r=e[0],o=e[1];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t},r.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},r.transformMat2=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t},r.transformMat2d=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t},r.transformMat3=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t},r.transformMat4=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t},r.forEach=function(){var t=r.create();return function(e,n,i,r,o,a){var s,l;for(n||(n=2),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t},r.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},r.cross=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2];return t[0]=r*l-o*s,t[1]=o*a-i*l,t[2]=i*s-r*a,t},r.lerp=function(t,e,n,i){var r=e[0],o=e[1],a=e[2];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t},r.hermite=function(t,e,n,i,r,o){var a=o*o,s=a*(2*o-3)+1,l=a*(o-2)+o,c=a*(o-1),u=a*(3-2*o);return t[0]=e[0]*s+n[0]*l+i[0]*c+r[0]*u,t[1]=e[1]*s+n[1]*l+i[1]*c+r[1]*u,t[2]=e[2]*s+n[2]*l+i[2]*c+r[2]*u,t},r.bezier=function(t,e,n,i,r,o){var a=1-o,s=a*a,l=o*o,c=s*a,u=3*o*s,d=3*l*a,h=l*o;return t[0]=e[0]*c+n[0]*u+i[0]*d+r[0]*h,t[1]=e[1]*c+n[1]*u+i[1]*d+r[1]*h,t[2]=e[2]*c+n[2]*u+i[2]*d+r[2]*h,t},r.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI,r=2*i.RANDOM()-1,o=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=r*e,t},r.transformMat4=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[3]*i+n[7]*r+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*i+n[4]*r+n[8]*o+n[12])/a,t[1]=(n[1]*i+n[5]*r+n[9]*o+n[13])/a,t[2]=(n[2]*i+n[6]*r+n[10]*o+n[14])/a,t},r.transformMat3=function(t,e,n){var i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t},r.transformQuat=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2],c=n[3],u=c*i+s*o-l*r,d=c*r+l*i-a*o,h=c*o+a*r-s*i,p=-a*i-s*r-l*o;return t[0]=u*c+p*-a+d*-l-h*-s,t[1]=d*c+p*-s+h*-a-u*-l,t[2]=h*c+p*-l+u*-s-d*-a,t},r.rotateX=function(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0],o[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),o[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},r.rotateY=function(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),o[1]=r[1],o[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},r.rotateZ=function(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),o[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),o[2]=r[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},r.forEach=function(){var t=r.create();return function(e,n,i,r,o,a){var s,l;for(n||(n=3),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s1?0:o<-1?Math.PI:Math.acos(o)},r.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},r.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},r.equals=function(t,e){var n=t[0],r=t[1],o=t[2],a=e[0],s=e[1],l=e[2];return Math.abs(n-a)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(o-l)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))},e.exports=r},{"./common.js":3}],11:[function(t,e,n){var i=t("./common.js"),r={create:function(){var t=new i.ARRAY_TYPE(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},clone:function(t){var e=new i.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},fromValues:function(t,e,n,r){var o=new i.ARRAY_TYPE(4);return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},set:function(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},subtract:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}};r.sub=r.subtract,r.multiply=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t},r.mul=r.multiply,r.divide=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t},r.div=r.divide,r.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},r.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},r.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},r.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},r.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},r.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},r.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t},r.distance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],o=e[3]-t[3];return Math.sqrt(n*n+i*i+r*r+o*o)},r.dist=r.distance,r.squaredDistance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],o=e[3]-t[3];return n*n+i*i+r*r+o*o},r.sqrDist=r.squaredDistance,r.length=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return Math.sqrt(e*e+n*n+i*i+r*r)},r.len=r.length,r.squaredLength=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return e*e+n*n+i*i+r*r},r.sqrLen=r.squaredLength,r.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},r.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},r.normalize=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n*n+i*i+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=n*a,t[1]=i*a,t[2]=r*a,t[3]=o*a),t},r.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},r.lerp=function(t,e,n,i){var r=e[0],o=e[1],a=e[2],s=e[3];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t[3]=s+i*(n[3]-s),t},r.random=function(t,e){return e=e||1,t[0]=i.RANDOM(),t[1]=i.RANDOM(),t[2]=i.RANDOM(),t[3]=i.RANDOM(),r.normalize(t,t),r.scale(t,t,e),t},r.transformMat4=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3];return t[0]=n[0]*i+n[4]*r+n[8]*o+n[12]*a,t[1]=n[1]*i+n[5]*r+n[9]*o+n[13]*a,t[2]=n[2]*i+n[6]*r+n[10]*o+n[14]*a,t[3]=n[3]*i+n[7]*r+n[11]*o+n[15]*a,t},r.transformQuat=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2],c=n[3],u=c*i+s*o-l*r,d=c*r+l*i-a*o,h=c*o+a*r-s*i,p=-a*i-s*r-l*o;return t[0]=u*c+p*-a+d*-l-h*-s,t[1]=d*c+p*-s+h*-a-u*-l,t[2]=h*c+p*-l+u*-s-d*-a,t[3]=e[3],t},r.forEach=function(){var t=r.create();return function(e,n,i,r,o,a){var s,l;for(n||(n=4),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s-1}function _(t){return t.trim().split(/\s+/g)}function b(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;in[e]})):i.sort()),i}function S(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),a=0;a1&&!n.firstMultiple?n.firstMultiple=A(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=e.center=M(i);e.timeStamp=at(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=P(s,l),e.distance=O(s,l),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==ht&&o.eventType!==ft||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=I(e.deltaX,e.deltaY),e.scale=a?function(t,e){return O(e[0],e[1],kt)/O(t[0],t[1],kt)}(a.pointers,i):1,e.rotation=a?function(t,e){return P(e[1],e[0],kt)-P(t[1],t[0],kt)}(a.pointers,i):0,E(n,e);var c=t.element;g(e.srcEvent.target,c)&&(c=e.srcEvent.target),e.target=c}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function E(t,e){var n,i,r,a,s=t.lastInterval||e,l=e.timeStamp-s.timeStamp;if(e.eventType!=mt&&(l>dt||s.velocity===o)){var c=s.deltaX-e.deltaX,u=s.deltaY-e.deltaY,d=function(t,e,n){return{x:e/t||0,y:n/t||0}}(l,c,u);i=d.x,r=d.y,n=ot(d.x)>ot(d.y)?d.x:d.y,a=I(c,u),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,a=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=a}function A(t){for(var e=[],n=0;n=ot(e)?t>0?gt:yt:e>0?_t:bt}function O(t,e,n){n||(n=Ct);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function P(t,e,n){n||(n=Ct);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function N(){this.evEl=Et,Mt?this.evDoc=At:this.evWin=At,this.allow=!0,this.pressed=!1,k.apply(this,arguments)}function D(){this.evEl=Pt,this.evWin=Nt,k.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function R(){this.evTarget=Rt,this.evWin=Lt,this.started=!1,k.apply(this,arguments)}function L(t,e){var n=w(t.touches),i=w(t.changedTouches);return e&(ft|mt)&&(n=x(n.concat(i),"identifier",!0)),[n,i]}function F(){this.evTarget=$t,this.targetIds={},k.apply(this,arguments)}function $(t,e){var n=w(t.touches),i=this.targetIds;if(e&(ht|pt)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=w(t.changedTouches),s=[],l=this.target;if(o=n.filter((function(t){return g(t.target,l)})),e===ht)for(r=0;r0;d(N,k,{handler:function(t){var e=Tt[t.type],n=0;Mt&&(n=1),e&ht&&t.button===n&&(this.pressed=!0),e&pt&&t.button!==n&&(e=ft),this.pressed&&this.allow&&(e&ft&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var It={pointerdown:ht,pointermove:pt,pointerup:ft,pointercancel:mt,pointerout:mt},Ot={2:"touch",3:"pen",4:"mouse",5:"kinect"},Pt="pointerdown",Nt="pointermove pointerup pointercancel";t.MSPointerEvent&&(Pt="MSPointerDown",Nt="MSPointerMove MSPointerUp MSPointerCancel"),d(D,k,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=It[i],o=Ot[t.pointerType]||t.pointerType,a="touch"==o,s=b(e,t.pointerId,"pointerId");r&ht&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):r&(ft|mt)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var Dt={touchstart:ht,touchmove:pt,touchend:ft,touchcancel:mt},Rt="touchstart",Lt="touchstart touchmove touchend touchcancel";d(R,k,{handler:function(t){var e=Dt[t.type];if(e===ht&&(this.started=!0),this.started){var n=L.call(this,t,e);e&(ft|mt)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var Ft={touchstart:ht,touchmove:pt,touchend:ft,touchcancel:mt},$t="touchstart touchmove touchend touchcancel";d(F,k,{handler:function(t){var e=Ft[t.type],n=$.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}),d(B,k,{handler:function(t,e,n){var i="touch"==n.pointerType,r="mouse"==n.pointerType;if(i)this.mouse.allow=!1;else if(r&&!this.mouse.allow)return;e&(ft|mt)&&(this.mouse.allow=!0),this.callback(t,e,n)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Bt=S(nt.style,"touchAction"),jt=Bt!==o,zt="auto",Yt="manipulation",Ht="none",Ut="pan-x",Vt="pan-y";j.prototype={set:function(t){"compute"==t&&(t=this.compute()),jt&&this.manager.element.style&&(this.manager.element.style[Bt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return l(this.manager.recognizers,(function(e){p(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(y(t,Ht))return Ht;var e=y(t,Ut),n=y(t,Vt);return e&&n?Ut+" "+Vt:e||n?e?Ut:Vt:y(t,Yt)?Yt:zt}(t.join(" "))},preventDefaults:function(t){if(!jt){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var i=this.actions,r=y(i,Ht),o=y(i,Vt),a=y(i,Ut);return r||o&&n&wt||a&&n&xt?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Wt=1,Gt=2,qt=4,Xt=8,Kt=Xt,Jt=16;z.prototype={defaults:{},set:function(t){return c(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(s(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=H(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return s(t,"dropRecognizeWith",this)||(t=H(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(s(t,"requireFailure",this))return this;var e=this.requireFail;return-1===b(e,t=H(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(s(t,"dropRequireFailure",this))return this;t=H(t,this);var e=b(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(n.options.event+(e?function(t){return t&Jt?"cancel":t&Xt?"end":t&qt?"move":t&Gt?"start":""}(i):""),t)}var n=this,i=this.state;i=Xt&&e(!0)},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;te.threshold&&r&e.direction},attrTest:function(t){return U.prototype.attrTest.call(this,t)&&(this.state&Gt||!(this.state&Gt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Y(t.direction);e&&this.manager.emit(this.options.event+e,t),this._super.emit.call(this,t)}}),d(W,U,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ht]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Gt)},emit:function(t){if(this._super.emit.call(this,t),1!==t.scale){var e=t.scale<1?"in":"out";this.manager.emit(this.options.event+e,t)}}}),d(G,z,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[zt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distancee.time;if(this._input=t,!i||!n||t.eventType&(ft|mt)&&!r)this.reset();else if(t.eventType&ht)this.reset(),this._timer=a((function(){this.state=Kt,this.tryEmit()}),e.time,this);else if(t.eventType&ft)return Kt;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Kt&&(t&&t.eventType&ft?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=at(),this.manager.emit(this.options.event,this._input)))}}),d(q,U,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ht]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Gt)}}),d(X,U,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:wt|xt,pointers:1},getTouchAction:function(){return V.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(wt|xt)?e=t.velocity:n&wt?e=t.velocityX:n&xt&&(e=t.velocityY),this._super.attrTest.call(this,t)&&n&t.direction&&t.distance>this.options.threshold&&ot(e)>this.options.velocity&&t.eventType&ft},emit:function(t){var e=Y(t.direction);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),d(K,z,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[Yt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance=0&&n.splice(i,1)}},i.prototype.emit=function(){var t=this.__events=this.__events||{},e=arguments[0],n=t[e];if(n)for(var i=0;i0;){var r=this._queue.shift();if(!e.has(r)&&i(r)){e.add(r);for(var o=n(r),a=0;a=0},i.prototype.listHotspots=function(){return[].concat(this._hotspots)},i.prototype.destroyHotspot=function(t){var e=this._hotspots.indexOf(t);if(e<0)throw new Error("No such hotspot");this._hotspots.splice(e,1),t.destroy(),this.emit("hotspotsChange")},i.prototype.hide=function(){this._visible=!1,this._updateVisibility()},i.prototype.show=function(){this._visible=!0,this._updateVisibility()},i.prototype._updateVisibility=function(){var t=this._visible&&this._supported;t&&!this._isVisible?(this._hotspotContainerWrapper.style.display="block",this._isVisible=!0):!t&&this._isVisible&&(this._hotspotContainerWrapper.style.display="none",this._isVisible=!1)},i.prototype._update=function(){this._updatePositionAndSize();for(var t=0;t0?this._supported=!1:(a(this._stage.width(),this._stage.height(),this._rect,this._newPositionAndSize),this._setPositionAndSizeWithRect(this._newPositionAndSize),this._supported=!0):(this._setPositionAndSizeWithoutRect(),this._supported=!0),this._updateVisibility()},i.prototype._setPositionAndSizeWithRect=function(t){var e=this._hotspotContainerWrapper;!0!==this._hasRect&&u(e),!0===this._hasRect&&t.left===this._positionAndSize.left&&t.top===this._positionAndSize.top||s(e,t.left,t.top),!0===this._hasRect&&+t.width===this._positionAndSize.width&&t.height===this._positionAndSize.height||p(e,t.width,t.height),this._positionAndSize.left=t.left,this._positionAndSize.top=t.top,this._positionAndSize.width=t.width,this._positionAndSize.height=t.height,this._hasRect=!0},i.prototype._setPositionAndSizeWithoutRect=function(){!1!==this._hasRect&&(s(this._hotspotContainerWrapper,0,0),h(this._hotspotContainerWrapper),d(this._hotspotContainerWrapper),this._hasRect=!1)},e.exports=i},{"./Hotspot":15,"./calcRect":29,"./positionAbsolutely":58,"./support/cssPointerEvents":87,"./util/dom":101,"minimal-event-emitter":13}],17:[function(t,e,n){"use strict";function i(t,e,n,i,r,o){o=o||{};var a=this;this._stage=t,this._source=e,this._geometry=n,this._view=i,this._textureStore=r,this._effects=o.effects||{},this._fixedLevelIndex=null,this._viewChangeHandler=function(){a.emit("viewChange",a.view())},this._view.addEventListener("change",this._viewChangeHandler),this._textureStoreChangeHandler=function(){a.emit("textureStoreChange",a.textureStore())},this._textureStore.addEventListener("textureLoad",this._textureStoreChangeHandler),this._textureStore.addEventListener("textureError",this._textureStoreChangeHandler),this._textureStore.addEventListener("textureInvalid",this._textureStoreChangeHandler)}var r=t("minimal-event-emitter"),o=t("./util/extend");r(i),i.prototype.destroy=function(){this._view.removeEventListener("change",this._viewChangeHandler),this._textureStore.removeEventListener("textureLoad",this._textureStoreChangeHandler),this._textureStore.removeEventListener("textureError",this._textureStoreChangeHandler),this._textureStore.removeEventListener("textureInvalid",this._textureStoreChangeHandler),this._stage=null,this._source=null,this._geometry=null,this._view=null,this._textureStore=null,this._fixedLevelIndex=null,this._effects=null,this._viewChangeHandler=null,this._textureStoreChangeHandler=null},i.prototype.stage=function(){return this._stage},i.prototype.source=function(){return this._source},i.prototype.geometry=function(){return this._geometry},i.prototype.view=function(){return this._view},i.prototype.textureStore=function(){return this._textureStore},i.prototype.effects=function(){return this._effects},i.prototype.setEffects=function(t){this._effects=t,this.emit("effectsChange",this._effects)},i.prototype.mergeEffects=function(t){o(this._effects,t),this.emit("effectsChange",this._effects)},i.prototype.fixedLevel=function(){return this._fixedLevelIndex},i.prototype.setFixedLevel=function(t){if(t!==this._fixedLevelIndex){if(null!=t&&(t>=this._geometry.levelList.length||t<0))throw new Error("Level index out of range: "+t);this._fixedLevelIndex=t,this.emit("fixedLevelChange",this._fixedLevelIndex)}},i.prototype._selectLevel=function(){return null!=this._fixedLevelIndex?this._geometry.levelList[this._fixedLevelIndex]:this._view.selectLevel(this._geometry.selectableLevelList)},i.prototype.visibleTiles=function(t){var e=this._selectLevel();return this._geometry.visibleTiles(this._view,e,t)},i.prototype.pinLevel=function(t){for(var e=this._geometry.levelList[t],n=this._geometry.levelTiles(e),i=0;i0;)this.destroyLayer(this._layers[0])},i.prototype.switchTo=function(t,e){return this._viewer.switchScene(this,t,e)},i.prototype.lookTo=function(t,e,n){if(e=e||{},n=n||c,"object"!==u(t))throw new Error("Target view parameters must be an object");var i=null!=e.transitionDuration?e.transitionDuration:1e3,r=null==e.shortest||e.shortest,o=this._view,a=o.parameters(),s={};d(s,t),d(s,a),r&&o.normalizeToClosest&&o.normalizeToClosest(s,s);var l=function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},h=this._viewer.controls().enabled();this._viewer.controls().disable(),this.startMovement((function(){var t=!1;return function(e,n){if(n>=i&&t)return null;var r=Math.min(n/i,1);for(var o in e){var c=a[o],u=s[o];e[o]=c+l(r)*(u-c)}return t=n>=i,e}}),(function(){h&&this._viewer.controls().enable(),n()}))},i.prototype.startMovement=function(t,e){var n=this._viewer.renderLoop();this._movement&&this.stopMovement();var i=t();if("function"!=typeof i)throw new Error("Bad movement");this._movement=t,this._movementStep=i,this._movementStartTime=l(),this._movementParams={},this._movementCallback=e,n.addEventListener("beforeRender",this._updateMovementHandler),n.renderOnNextFrame()},i.prototype.stopMovement=function(){var t=this._viewer.renderLoop();this._movementCallback&&this._movementCallback(),t.removeEventListener("beforeRender",this._updateMovementHandler),this._movement=null,this._movementStep=null,this._movementStartTime=null,this._movementParams=null,this._movementCallback=null},i.prototype.movement=function(){return this._movement},i.prototype._updateMovement=function(){if(!this._movement)throw new Error("Should not call update");var t=this._viewer.renderLoop(),e=this._view,n=l()-this._movementStartTime,i=this._movementStep,r=this._movementParams;null==(r=i(r=e.parameters(r),n))?this.stopMovement():(e.setParameters(r),t.renderOnNextFrame())},i.prototype._updateHotspotContainer=function(){this.visible()?this._hotspotContainer.show():this._hotspotContainer.hide()},e.exports=i},{"./HotspotContainer":16,"./Layer":17,"./TextureStore":21,"./util/clock":92,"./util/defaults":97,"./util/noop":107,"./util/type":115,"minimal-event-emitter":13}],21:[function(t,e,n){"use strict";function i(){}function r(t,e){var n=this;n._id=v++,n._store=t,n._tile=e,n._asset=null,n._texture=null,n._changeHandler=function(){t.emit("textureInvalid",e)};var r=t.source(),o=t.stage(),a=r.loadAsset.bind(r),s=o.createTexture.bind(o),l=h(d(a),s);n._cancel=l(o,e,(function(t,e,r,o){if(n._cancel=null,t)return r&&r.destroy(),o&&o.destroy(),void(t instanceof i?n._store.emit("textureCancel",n._tile):n._store.emit("textureError",n._tile,t));n._texture=o,r.dynamic?(n._asset=r,r.addEventListener("change",n._changeHandler)):r.destroy(),n._store.emit("textureLoad",n._tile)}))}function o(t,e,n,i){i=u(i||{},m),this._source=e,this._stage=n;var r=t.TileClass;this._clientPhase=f,this._clientCounter=0,this._itemMap=new a(r.equals,r.hash),this._visible=new s(r.equals,r.hash),this._previouslyVisible=new l(r.equals,r.hash,i.previouslyVisibleCacheSize),this._pinMap=new a(r.equals,r.hash),this._newVisible=new s(r.equals,r.hash),this._noLongerVisible=[],this._visibleAgain=[],this._evicted=[]}var a=t("./collections/Map"),s=t("./collections/Set"),l=t("./collections/LruSet"),c=t("minimal-event-emitter"),u=t("./util/defaults"),d=t("./util/retry"),h=t("./util/chain"),p=t("./util/inherits"),f=("undefined"!=typeof MARZIPANODEBUG&&MARZIPANODEBUG.textureStore,"idle"),m={previouslyVisibleCacheSize:32},v=0;p(i,Error),r.prototype.asset=function(){return this._asset},r.prototype.texture=function(){return this._texture},r.prototype.destroy=function(){var t=this,e=(t._id,t._store),n=t._tile,r=t._asset,o=t._texture,a=t._cancel;a?a(new i("Texture load cancelled")):(r&&(r.removeEventListener("change",t._changeHandler),r.destroy()),o&&o.destroy(),e.emit("textureUnload",n),t._changeHandler=null,t._asset=null,t._texture=null,t._tile=null,t._store=null,t._id=null)},c(r),c(o),o.prototype.destroy=function(){this.clear(),this._source=null,this._stage=null,this._itemMap=null,this._visible=null,this._previouslyVisible=null,this._pinMap=null,this._newVisible=null,this._noLongerVisible=null,this._visibleAgain=null,this._evicted=null},o.prototype.stage=function(){return this._stage},o.prototype.source=function(){return this._source},o.prototype.clear=function(){var t=this;t._evicted.length=0,t._itemMap.each((function(e){t._evicted.push(e)})),t._evicted.forEach((function(e){t._unloadTile(e)})),t._itemMap.clear(),t._visible.clear(),t._previouslyVisible.clear(),t._pinMap.clear(),t._newVisible.clear(),t._noLongerVisible.length=0,t._visibleAgain.length=0,t._evicted.length=0},o.prototype.clearNotPinned=function(){var t=this;t._evicted.length=0,t._itemMap.each((function(e){t._pinMap.has(e)||t._evicted.push(e)})),t._evicted.forEach((function(e){t._unloadTile(e)})),t._visible.clear(),t._previouslyVisible.clear(),t._evicted.length=0},o.prototype.startFrame=function(){if(this._clientPhase!==f&&"start"!==this._clientPhase)throw new Error("TextureStore: startFrame called out of sequence");this._clientPhase="start",this._clientCounter++,this._newVisible.clear()},o.prototype.markTile=function(t){if("start"!==this._clientPhase)throw new Error("TextureStore: markTile called out of sequence");var e=this._itemMap.get(t),n=e&&e.texture(),i=e&&e.asset();n&&i&&n.refresh(t,i),this._newVisible.add(t)},o.prototype.endFrame=function(){if("start"!==this._clientPhase&&"end"!==this._clientPhase)throw new Error("TextureStore: endFrame called out of sequence");this._clientPhase="end",--this._clientCounter||(this._update(),this._clientPhase=f)},o.prototype._update=function(){var t=this;t._noLongerVisible.length=0,t._visible.each((function(e){t._newVisible.has(e)||t._noLongerVisible.push(e)})),t._visibleAgain.length=0,t._newVisible.each((function(e){t._previouslyVisible.has(e)&&t._visibleAgain.push(e)})),t._visibleAgain.forEach((function(e){t._previouslyVisible.remove(e)})),t._evicted.length=0,t._noLongerVisible.forEach((function(e){var n=t._itemMap.get(e);if(n&&n.texture()){var i=t._previouslyVisible.add(e);null!=i&&t._evicted.push(i)}else n&&t._unloadTile(e)})),t._evicted.forEach((function(e){t._pinMap.has(e)||t._unloadTile(e)})),t._newVisible.each((function(e){t._itemMap.get(e)||t._loadTile(e)}));var e=t._visible;t._visible=t._newVisible,t._newVisible=e,t._noLongerVisible.length=0,t._visibleAgain.length=0,t._evicted.length=0},o.prototype._loadTile=function(t){if(this._itemMap.has(t))throw new Error("TextureStore: loading texture already in cache");var e=new r(this,t);this._itemMap.set(t,e)},o.prototype._unloadTile=function(t){var e=this._itemMap.del(t);if(!e)throw new Error("TextureStore: unloading texture not in cache");e.destroy()},o.prototype.asset=function(t){var e=this._itemMap.get(t);return e?e.asset():null},o.prototype.texture=function(t){var e=this._itemMap.get(t);return e?e.texture():null},o.prototype.pin=function(t){var e=(this._pinMap.get(t)||0)+1;return this._pinMap.set(t,e),this._itemMap.has(t)||this._loadTile(t),e},o.prototype.unpin=function(t){var e=this._pinMap.get(t);if(!e)throw new Error("TextureStore: unpin when not pinned");return--e>0?this._pinMap.set(t,e):(this._pinMap.del(t),this._visible.has(t)||this._previouslyVisible.has(t)||this._unloadTile(t)),e},o.prototype.query=function(t){var e=this._itemMap.get(t),n=this._pinMap.get(t)||0;return{visible:this._visible.has(t),previouslyVisible:this._previouslyVisible.has(t),hasAsset:null!=e&&null!=e.asset(),hasTexture:null!=e&&null!=e.texture(),pinned:0!==n,pinCount:n}},e.exports=o},{"./collections/LruSet":31,"./collections/Map":32,"./collections/Set":33,"./util/chain":90,"./util/defaults":97,"./util/inherits":104,"./util/retry":112,"minimal-event-emitter":13}],22:[function(t,e,n){"use strict";function i(t){t=o(t||{},s),this._duration=t.duration,this._startTime=null,this._handle=null,this._check=this._check.bind(this)}var r=t("minimal-event-emitter"),o=t("./util/defaults"),a=t("./util/clock"),s={duration:1/0};r(i),i.prototype.start=function(){this._startTime=a(),null==this._handle&&this._duration<1/0&&this._setup(this._duration)},i.prototype.started=function(){return null!=this._startTime},i.prototype.stop=function(){this._startTime=null,null!=this._handle&&(clearTimeout(this._handle),this._handle=null)},i.prototype._setup=function(t){this._handle=setTimeout(this._check,t)},i.prototype._teardown=function(){clearTimeout(this._handle),this._handle=null},i.prototype._check=function(){var t=a()-this._startTime,e=this._duration-t;this._teardown(),e<=0?(this.emit("timeout"),this._startTime=null):e<1/0&&this._setup(e)},i.prototype.duration=function(){return this._duration},i.prototype.setDuration=function(t){this._duration=t,null!=this._startTime&&this._check()},e.exports=i},{"./util/clock":92,"./util/defaults":97,"minimal-event-emitter":13}],23:[function(t,e,n){"use strict";function i(t,e){var n;if(e=e||{},this._domElement=t,m(t),e.stageType){if(!(n=C[e.stageType]))throw new Error("Unknown stage type: "+e.stageType)}else{for(var i=0;ii.length)for(o=0;o0;)this.destroyScene(this._scenes[0])},i.prototype.hasScene=function(t){return this._scenes.indexOf(t)>=0},i.prototype.listScenes=function(){return[].concat(this._scenes)},i.prototype.scene=function(){return this._currentScene},i.prototype.view=function(){var t=this._currentScene;return t?t.view():null},i.prototype.lookTo=function(t,e,n){var i=this._currentScene;i&&i.lookTo(t,e,n)},i.prototype.startMovement=function(t,e){var n=this._currentScene;n&&n.startMovement(t,e)},i.prototype.stopMovement=function(){var t=this._currentScene;t&&t.stopMovement()},i.prototype.setIdleMovement=function(t,e){this._idleTimer.setDuration(t),this._idleMovement=e},i.prototype.breakIdleMovement=function(){this._leaveIdle(),this._resetIdleTimer()},i.prototype._resetIdleTimer=function(){this._idleTimer.start()},i.prototype._enterIdle=function(){var t=this._currentScene,e=this._idleMovement;t&&e&&t.startMovement(e)},i.prototype._leaveIdle=function(){var t=this._currentScene;t&&t.movement()===this._idleMovement&&t.stopMovement()},i.prototype.switchScene=function(t,e,n){var i=this;e=e||{},n=n||b;var o=this._stage,a=this._currentScene;if(a!==t){if(this._scenes.indexOf(t)<0)throw new Error("No such scene in viewer");this._cancelCurrentTween&&(this._cancelCurrentTween(),this._cancelCurrentTween=null);var s=a?a.listLayers():[],l=t.listLayers(),c=o.listLayers();if(a&&(c.length!==s.length||c.length>1&&c[0]!=s[0]))throw new Error("Stage not in sync with viewer");for(var u=null!=e.transitionDuration?e.transitionDuration:1e3,d=null!=e.transitionUpdate?e.transitionUpdate:r,h=(l=t.listLayers(),0);hw?Math.min(f+t*s,n):Math.max(f-t*s,0),r=g*t,c<_.pitch&&(_.pitch=Math.max(c,_.pitch-r)),c>_.pitch&&(_.pitch=Math.min(c,_.pitch+r))}if(null!=u&&_.fov!==c){var x=.5*m*m/l;y=Math.abs(u-_.fov)>x?Math.min(m+t*l,o):Math.max(m-t*l,0),d=y*t,u<_.fov&&(_.fov=Math.max(u,_.fov-d)),u>_.fov&&(_.fov=Math.min(u,_.fov+d))}return h=b,p=v,f=g,m=y,_}}}},{"./util/defaults":97}],29:[function(t,e,n){"use strict";e.exports=function(t,e,n,i){var r,o,a,s;return i=i||{},r=null!=n&&null!=n.absoluteWidth?n.absoluteWidth:null!=n&&null!=n.relativeWidth?n.relativeWidth*t:t,o=n&&null!=n.absoluteHeight?n.absoluteHeight:null!=n&&null!=n.relativeHeight?n.relativeHeight*e:e,a=null!=n&&null!=n.absoluteX?n.absoluteX:null!=n&&null!=n.relativeX?n.relativeX*t:0,s=null!=n&&null!=n.absoluteY?n.absoluteY:null!=n&&null!=n.relativeY?n.relativeY*e:0,i.height=o,i.width=r,i.left=a,i.top=s,i.right=a+r,i.bottom=s+o,i.totalWidth=t,i.totalHeight=e,i}},{}],30:[function(t,e,n){"use strict";function i(t,e,n){if("function"!=typeof t)throw new Error("LruMap: bad equals function");if(this._equals=t,"function"!=typeof e)throw new Error("LruMap: bad hash function");if(this._hash=e,"number"!=typeof n||isNaN(n)||n<0)throw new Error("LruMap: bad maximum size");this._maxsize=n,this._keys=[],this._values=[],this._pivot=0}var r=t("../util/mod");i.prototype._modulus=function(){return this._maxsize>this._keys.length?this._keys.length+1:this._maxsize},i.prototype.get=function(t){for(var e=0;ethis._items.length?this._items.length+1:this._maxsize},i.prototype.add=function(t){var e=null,n=!1;if(0===this._maxsize)return t;for(var i=0;i=0&&(this._queue.splice(n,1),t.cb.apply(null,e))}},r.prototype._next=function(){if(!this._paused&&this._queue.length&&!this._currentTask){if(null!=this._lastFinished){var t=o()-this._lastFinished,e=this._delay-t;if(e>0)return void setTimeout(this._next.bind(this),e)}var n=this._queue.shift();this._start(n)}},e.exports=r},{"../util/clock":92}],36:[function(t,e,n){"use strict";function i(t,e,n){(function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3];t[0]=n[0]*i+n[1]*r+n[2]*o+n[3]*a,t[1]=n[4]*i+n[5]*r+n[6]*o+n[7]*a,t[2]=n[8]*i+n[9]*r+n[10]*o+n[11]*a,t[3]=n[12]*i+n[13]*r+n[14]*o+n[15]*a})(n,t,e.colorMatrix),r.add(n,n,e.colorOffset)}var r=t("gl-matrix/src/gl-matrix/vec4"),o=t("gl-matrix/src/gl-matrix/mat4"),a=r.create();e.exports={identity:function(t){var e=t||{};return e.colorOffset=e.colorOffset||r.create(),e.colorMatrix=e.colorMatrix||o.create(),e},applyToPixel:i,applyToImageData:function(t,e){for(var n=t.width,o=t.height,s=t.data,l=0;l=0){var n=this._methods.splice(e,1)[0];n.instance.removeEventListener("parameterDynamics",n.parameterDynamicsHandler)}},i.prototype.has=function(t){return this._indexOfInstance(t)>=0},i.prototype._indexOfInstance=function(t){for(var e=0;e0&&this.emit("active"),this.emit("enabled"),this._updateComposer()},i.prototype.disable=function(){this._enabled=!1,this._activeCount>0&&this.emit("inactive"),this.emit("disabled"),this._updateComposer()},i.prototype.attach=function(t){this._attachedRenderLoop&&this.detach(),this._attachedRenderLoop=t,this._beforeRenderHandler=this._updateViewsWithControls.bind(this),this._changeHandler=t.renderOnNextFrame.bind(t),this._attachedRenderLoop.addEventListener("beforeRender",this._beforeRenderHandler),this._composer.addEventListener("change",this._changeHandler)},i.prototype.detach=function(){this._attachedRenderLoop&&(this._attachedRenderLoop.removeEventListener("beforeRender",this._beforeRenderHandler),this._composer.removeEventListener("change",this._changeHandler),this._beforeRenderHandler=null,this._changeHandler=null,this._attachedRenderLoop=null)},i.prototype.attached=function(){return null!=this._attachedRenderLoop},i.prototype._listen=function(t){var e=this._methods[t];if(!e)throw new Error("Bad method id");e.instance.addEventListener("active",e.activeHandler),e.instance.addEventListener("inactive",e.inactiveHandler)},i.prototype._unlisten=function(t){var e=this._methods[t];if(!e)throw new Error("Bad method id");e.instance.removeEventListener("active",e.activeHandler),e.instance.removeEventListener("inactive",e.inactiveHandler)},i.prototype._handleActive=function(t){var e=this._methods[t];if(!e)throw new Error("Bad method id");if(!e.enabled)throw new Error("Should not receive event from disabled control method");e.active||(e.active=!0,this._incrementActiveCount())},i.prototype._handleInactive=function(t){var e=this._methods[t];if(!e)throw new Error("Bad method id");if(!e.enabled)throw new Error("Should not receive event from disabled control method");e.active&&(e.active=!1,this._decrementActiveCount())},i.prototype._incrementActiveCount=function(){this._activeCount++,a&&this._checkActiveCount(),this._enabled&&1===this._activeCount&&this.emit("active")},i.prototype._decrementActiveCount=function(){this._activeCount--,a&&this._checkActiveCount(),this._enabled&&0===this._activeCount&&this.emit("inactive")},i.prototype._checkActiveCount=function(){var t=0;for(var e in this._methods){var n=this._methods[e];n.enabled&&n.active&&t++}if(t!=this._activeCount)throw new Error("Bad control state")},i.prototype._updateComposer=function(){var t=this._composer;for(var e in this._methods){var n=this._methods[e],i=this._enabled&&n.enabled;i&&!t.has(n.instance)&&t.add(n.instance),!i&&t.has(n.instance)&&t.remove(n.instance)}},i.prototype._updateViewsWithControls=function(){var t=this._composer.offsets();t.changing&&this._attachedRenderLoop.renderOnNextFrame(),this.updatedViews_.length=0;for(var e=this._attachedRenderLoop.stage().listLayers(),n=0;n0?Math.max(0,t-e):0}(this.velocity,this.friction*t):this.velocity:null},i.prototype.offsetFromVelocity=function(t){t=Math.min(t,this.nullVelocityTime());var e=this.velocityAfter(t);return(this.velocity+e)/2*t},i.prototype.nullVelocityTime=function(){return null==this.velocity?0:this.velocity&&!this.friction?1/0:Math.abs(this.velocity/this.friction)},e.exports=i},{}],42:[function(t,e,n){"use strict";function i(t,e,n,i){if(!t)throw new Error("ElementPressControlMethod: element must be defined");if(!e)throw new Error("ElementPressControlMethod: parameter must be defined");if(!n)throw new Error("ElementPressControlMethod: velocity must be defined");if(!i)throw new Error("ElementPressControlMethod: friction must be defined");this._element=t,this._pressHandler=this._handlePress.bind(this),this._releaseHandler=this._handleRelease.bind(this),t.addEventListener("mousedown",this._pressHandler),t.addEventListener("mouseup",this._releaseHandler),t.addEventListener("mouseleave",this._releaseHandler),t.addEventListener("touchstart",this._pressHandler),t.addEventListener("touchmove",this._releaseHandler),t.addEventListener("touchend",this._releaseHandler),this._parameter=e,this._velocity=n,this._friction=i,this._dynamics=new r,this._pressing=!1}var r=t("./Dynamics");t("minimal-event-emitter")(i),i.prototype.destroy=function(){this._element.removeEventListener("mousedown",this._pressHandler),this._element.removeEventListener("mouseup",this._releaseHandler),this._element.removeEventListener("mouseleave",this._releaseHandler),this._element.removeEventListener("touchstart",this._pressHandler),this._element.removeEventListener("touchmove",this._releaseHandler),this._element.removeEventListener("touchend",this._releaseHandler)},i.prototype._handlePress=function(){this._pressing=!0,this._dynamics.velocity=this._velocity,this._dynamics.friction=0,this.emit("parameterDynamics",this._parameter,this._dynamics),this.emit("active")},i.prototype._handleRelease=function(){this._pressing&&(this._dynamics.friction=this._friction,this.emit("parameterDynamics",this._parameter,this._dynamics),this.emit("inactive")),this._pressing=!1},e.exports=i},{"./Dynamics":41,"minimal-event-emitter":13}],43:[function(t,e,n){"use strict";function i(){this._managers=new l(r,o)}function r(t,e){return t===e}function o(t){for(var e=t.id||t.toString();e.length<5;)e+="0";return c(e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3),e.charCodeAt(4))}function a(t,e,n,i){this._manager=e,this._element=n,this._type=i,this._hammerGestures=t,this._eventHandlers=[]}var s=t("hammerjs"),l=t("../collections/Map"),c=t("../util/hash"),u=t("bowser");i.prototype.get=function(t,e){this._managers.has(t)||this._managers.set(t,{});var n=this._managers.get(t);n[e]||(n[e]=this._createManager(t,e));var i=n[e];return i.refs+=1,new a(this,i.manager,t,e)},i.prototype._createManager=function(t,e){var n=new s.Manager(t);return"mouse"===e?n.add(new s.Pan({direction:s.DIRECTION_ALL,threshold:0})):"touch"!==e&&"pen"!==e&&"kinect"!==e||(n.add(new s.Pan({direction:s.DIRECTION_ALL,threshold:20,pointers:1})),u.msie&&parseFloat(u.version)<10||n.add(new s.Pinch)),{manager:n,refs:0}},i.prototype._releaseHandle=function(t,e){var n=this._managers.get(t)[e];n.refs-=1,n.refs<=0&&(n.manager.destroy(),this._managers.get(t)[e]=null)},a.prototype.on=function(t,e){var n=this._type,i=function(t){n===t.pointerType&&e(t)};this._eventHandlers.push({events:t,handler:i}),this._manager.on(t,i)},a.prototype.release=function(){for(var t=0;t=0&&t.enableMethod(p)}for(var m in d){var v=d[m];t.addMethodGroup(m,v)}return u}},{"../util/defaults":97,"./Drag":40,"./Key":44,"./PinchZoom":45,"./Qtvr":46,"./ScrollZoom":47}],51:[function(t,e,n){"use strict";function i(t,e,n,i){var r=Math.atan(e/t);i[0]=n*Math.cos(r),i[1]=n*Math.sin(r)}e.exports={maxFriction:function(t,e,n,r,o){var a=Math.sqrt(Math.pow(e,2)+Math.pow(n,2));i(e,n,t=Math.max(t,a/r),o),o[0]=Math.abs(o[0]),o[1]=Math.abs(o[1])},changeVectorNorm:i}},{}],52:[function(t,e,n){"use strict";function i(t,e,n,i,r){this.face=t,this.x=e,this.y=n,this.z=i,this._geometry=r,this._level=r.levelList[i]}function r(t){if(this.constructor.super_.call(this,t),this._size=t.size,this._tileSize=t.tileSize,this._size%this._tileSize!=0)throw new Error("Level size is not multiple of tile size: "+this._size+" "+this._tileSize)}function o(t){if("array"!==v(t))throw new Error("Level list must be an array");this.levelList=d(t,r),this.selectableLevelList=h(this.levelList);for(var e=1;e=u||y<0||y>=d){var x,S=this.centerX(),C=this.centerY();v<0?(g.set(r,-.5,C,-.5),w=k[o][0]):v>=u?(g.set(r,.5,C,-.5),w=k[o][1]):y<0?(g.set(r,S,.5,-.5),w=k[o][2]):y>=d&&(g.set(r,S,-.5,-.5),w=k[o][3]),p(r,r,(x=_[o]).y,x.x,0),p(r,r,-(x=_[w]).y,-x.x,0),v=f(Math.floor((.5+r[0])*u),0,u-1),y=f(Math.floor((.5-r[1])*d),0,d-1)}h.push(new i(w,v,y,b,t))}return e.set(this,h),h},i.prototype.hash=function(){return i.hash(this)},i.prototype.equals=function(t){return i.equals(this,t)},i.prototype.cmp=function(t){return i.cmp(this,t)},i.prototype.str=function(){return i.str(this)},i.hash=function(t){return null!=t?s(t.face.charCodeAt(0),t.z,t.x,t.y):0},i.equals=function(t,e){return null!=t&&null!=e&&t.face===e.face&&t.z===e.z&&t.x===e.x&&t.y===e.y},i.cmp=function(t,e){var n=y.indexOf(t.face),i=y.indexOf(e.face);return m(t.z,e.z)||m(n,i)||m(t.y,e.y)||m(t.x,e.x)},i.str=function(t){return"CubeTile("+t.face+", "+t.x+", "+t.y+", "+t.z+")"},a(r,u),r.prototype.width=function(){return this._size},r.prototype.height=function(){return this._size},r.prototype.tileWidth=function(){return this._tileSize},r.prototype.tileHeight=function(){return this._tileSize},r.prototype._validateWithParentLevel=function(t){var e=this.width(),n=this.height(),i=this.tileWidth(),r=this.tileHeight(),o=this.numHorizontalTiles(),a=this.numVerticalTiles(),s=t.width(),l=t.height(),c=t.tileWidth(),u=t.tileHeight(),d=t.numHorizontalTiles(),h=t.numVerticalTiles();if(e%s!=0)throw new Error("Level width must be multiple of parent level: "+e+" vs. "+s);if(n%l!=0)throw new Error("Level height must be multiple of parent level: "+n+" vs. "+l);if(o%d!=0)throw new Error("Number of horizontal tiles must be multiple of parent level: "+o+" ("+e+"/"+i+") vs. "+d+" ("+s+"/"+c+")");if(a%h!=0)throw new Error("Number of vertical tiles must be multiple of parent level: "+a+" ("+n+"/"+r+") vs. "+h+" ("+l+"/"+u+")")},o.prototype.maxTileSize=function(){for(var t=0,e=0;e=0);)d=l.nextSibling,h.removeChild(l),l=d,r=p[++e];if(!(s=(a=m.get(o))?a._canvas:null))throw new Error("Rendering tile with missing texture");if(r&&0===r.cmp(o)){if(s!=l)throw new Error("DOM not in sync with tile list");l=l.nextSibling,r=p[++e]}else h.insertBefore(s,l);c(s,this.calculateTransform(o,a,v)),u&&s.setAttribute("data-tile",o.str())}for(;l;)d=l.nextSibling,h.removeChild(l),l=d;if(h.children.length!==f.length)throw new Error("DOM not in sync with tile list");var g=this._oldTileList;this._oldTileList=this._newTileList,this._newTileList=g},e.exports=r},{"../collections/Map":32,"../util/dom":101}],60:[function(t,e,n){"use strict";function i(t,e){this.constructor.super_.call(this,t,e,r)}var r=t("../geometries/Cube").TileClass,o=t("./CssBase"),a=t("../util/decimal");t("../util/inherits")(i,o),i.prototype.calculateTransform=function(t,e,n){var i=this._browserQuirks.padSize,r=this._browserQuirks.reverseLevelDepth,o=this._browserQuirks.perspectiveNudge,s="",l=r?256-t.z:t.levelWidth(),c=n.size(),u=c.width,d=c.height;s+="translate3d("+a(u/2)+"px, "+a(d/2)+"px, 0px) ";var h=.5*d/Math.tan(n.fov()/2),p=h+o;s+="perspective("+a(h)+"px) translateZ("+a(p)+"px) ";var f=-n.roll(),m=-n.pitch(),v=n.yaw();s+="rotateZ("+a(f)+"rad) rotateX("+a(m)+"rad) rotateY("+a(v)+"rad) ";var g=-t.rotX(),y=t.rotY();s+="rotateX("+a(g)+"rad) rotateY("+a(y)+"rad) ";var _=t.centerX()-t.scaleX()/2,b=-(t.centerY()+t.scaleY()/2)*l,w=-l/2;if(s+="translate3d("+a(_*l)+"px, "+a(b)+"px, "+a(w)+"px) ",r){var x=l*t.scaleX()/t.width(),S=l*t.scaleY()/t.height();s+="scale("+a(x)+", "+a(S)+") "}var C=t.padLeft()?i:0,k=t.padTop()?i:0;return 0===C&&0===k||(s+="translate3d("+a(-C)+"px, "+a(-k)+"px, 0) "),s},e.exports=i},{"../geometries/Cube":52,"../util/decimal":96,"../util/inherits":104,"./CssBase":59}],61:[function(t,e,n){"use strict";function i(t,e){this.constructor.super_.call(this,t,e,r)}var r=t("../geometries/Flat").TileClass,o=t("./CssBase"),a=t("../util/decimal");t("../util/inherits")(i,o),i.prototype.calculateTransform=function(t,e,n){var i=this._browserQuirks.padSize,r="",o=n.width(),s=n.height();r+="translateX("+a(o/2)+"px) translateY("+a(s/2)+"px) ";var l=o/n._zoomX(),c=s/n._zoomY(),u=t.centerX()-t.scaleX()/2+.5,d=(.5-t.centerY()-t.scaleY()/2)*c;r+="translateX("+a(u*l)+"px) translateY("+a(d)+"px) ";var h=-n.x()*l,p=-n.y()*c;r+="translateX("+a(h)+"px) translateY("+a(p)+"px) ";var f=t.padLeft()?i:0,m=t.padTop()?i:0;0===f&&0===m||(r+="translateX("+a(-f)+"px) translateY("+a(-m)+"px) ");var v=l/t.levelWidth(),g=c/t.levelHeight();return r+"scale("+a(v)+", "+a(g)+") "},e.exports=i},{"../geometries/Flat":54,"../util/decimal":96,"../util/inherits":104,"./CssBase":59}],62:[function(t,e,n){"use strict";function i(t,e){return t.cmp(e)}function r(t,e,n,i){this._flashElement=t,this._layerId=e,this._quirks=n,this._tileList=[],this._textureMap=new o(i.equals,i.hash),this._layerCreated=!1}var o=t("../collections/Map");r.prototype.destroy=function(){this._flashElement.destroyLayer(this._layerId),this._flashElement=null,this._layerId=null,this._layerCreated=null,this._tileList=null,this._padSize=null},r.prototype.startLayer=function(t,e){this._flashElement.isReady&&this._flashElement.isReady()&&(this._layerCreated||(this._flashElement.createLayer(this._layerId),this._layerCreated=!0),this._tileList.length=0,this._textureMap.clear())},r.prototype.renderTile=function(t,e){this._tileList.push(t),this._textureMap.set(t,e)},r.prototype.endLayer=function(t,e){this._flashElement.isReady&&this._flashElement.isReady()&&(this._tileList.sort(i),this._renderOnFlash(t,e))},e.exports=r},{"../collections/Map":32}],63:[function(t,e,n){"use strict";function i(t,e,n){this.constructor.super_.call(this,t,e,n,o),this._flashTileList=[]}var r=t("./FlashBase"),o=t("../geometries/Cube").TileClass,a=t("../util/inherits"),s=t("../util/radToDeg");a(i,r),i.prototype._renderOnFlash=function(t,e){var n=this._flashElement,i=this._layerId,r=this._quirks.padSize,o=this._tileList,a=this._textureMap,l=this._flashTileList;l.length=0;for(var c=0;c',a="";a+='',a+='',a+='',o+=a+='',o+="";var s=document.createElement("div");s.innerHTML=o;var l=s.firstChild;u(l),d(l),i.appendChild(l);var c=document.createElement("div");return u(c),d(c),h(c),i.appendChild(c),{root:i,flash:l,blocking:c}}(this._swfPath,this._flashStageId,this._stageCallbacksObjVarName);this._domElement=n.root,this._blockingElement=n.blocking,this._flashElement=n.flash,this._checkReadyTimer=setInterval(this._checkReady.bind(this),50)}function r(t,e,n){var i=n.element(),r=e.width(),o=e.height(),a=y.padSize,s=e.padTop()?a:0,l=e.padBottom()?a:0,c=e.padLeft()?a:0,u=e.padRight()?a:0,d=t._flashElement.createTexture(i,r,o,s,l,c,u);this._stage=t,this._textureId=d}var o=t("./Stage"),a=t("../support/Flash"),s=t("../collections/WorkQueue"),l=t("../util/inherits"),c=t("../util/defer"),u=t("../util/dom").setAbsolute,d=t("../util/dom").setFullSize,h=t("../util/dom").setBlocking,p=t("./loadImageFlash"),f="transparent",m=function(){var t=document.currentScript;if(!t){var e=document.getElementsByTagName("script");t=e.length?e[e.length-1]:null}if(!t)return null;var n=t.src,i=n.lastIndexOf("/");return(n=i>=0?n.slice(0,i+1):"")+"marzipano.swf"}(),v="MarzipanoFlashCallbackMap";v in window||(window[v]={__next:0});var g=["imageLoaded"],y={padSize:3};l(i,o),i.prototype.destroy=function(){this.constructor.super_.prototype.destroy.call(this),this._domElement=null,this._blockingElement=null,this._flashElement=null,window[v][this._flashStageId]=null,this._callbacksObj=null,this._loadImageQueue=null,clearInterval(this._checkReadyTimer)},i.supported=function(){return a()},i.prototype._setSize=function(){},i.prototype.loadImage=function(t,e,n){var i=p.bind(null,this,t,e);return this._loadImageQueue.push(i,n)},i.prototype._validateLayer=function(t){},i.prototype._onCallback=function(t,e){this._callbackListeners[t]=this._callbackListeners[t]||[],this._callbackListeners[t].push(e)},i.prototype._offCallback=function(t,e){var n=this._callbackListeners[t]||[],i=n.indexOf(e);i>=0&&n.splice(i,1)},i.prototype._callListeners=function(t){var e=this;return function(){for(var n=e._callbackListeners[t]||[],i=0;i100)throw new Error("FlashStage: Snapshot quality needs to be a number between 0 and 100");return this._flashElement.takeSnapshot(e)},i.type=i.prototype.type="flash",r.prototype.refresh=function(t,e){},r.prototype.destroy=function(){var t=this._textureId;this._stage._flashElement.destroyTexture(t),this._stage=null,this._textureId=null},i.TextureClass=i.prototype.TextureClass=r,e.exports=i},{"../collections/WorkQueue":35,"../support/Flash":85,"../util/defer":98,"../util/dom":101,"../util/inherits":104,"./Stage":80,"./loadImageFlash":82}],79:[function(t,e,n){"use strict";function i(){this._renderers={}}i.prototype.set=function(t,e,n){this._renderers[t]||(this._renderers[t]={}),this._renderers[t][e]=n},i.prototype.get=function(t,e){return this._renderers[t]&&this._renderers[t][e]||null},e.exports=i},{}],80:[function(t,e,n){"use strict";function i(t,e){return-t.cmp(e)}function r(t){this._domElement=null,this._layers=[],this._renderers=[],this._visibleTiles=[],this._fallbackTiles={children:[],parents:[]},this._tmpTiles=[],this._width=null,this._height=null,this._rect={},this._createTextureWorkQueue=new a({delay:d}),this.emitRenderInvalid=this.emitRenderInvalid.bind(this),this._rendererRegistry=new u}var o=t("minimal-event-emitter"),a=t("../collections/WorkQueue"),s=t("../calcRect"),l=t("../util/async"),c=t("../util/cancelize"),u=t("./RendererRegistry"),d=20;o(r),r.prototype.destroy=function(){this.removeAllLayers(),this._layers=null,this._renderers=null,this._visibleTiles=null,this._fallbackTiles=null,this._tmpTiles=null,this._width=null,this._height=null,this._createTextureWorkQueue=null,this.emitRenderInvalid=null,this._rendererRegistry=null},r.prototype.registerRenderer=function(t,e,n){return this._rendererRegistry.set(t,e,n)},r.prototype.domElement=function(){return this._domElement},r.prototype.width=function(){return this._width},r.prototype.height=function(){return this._height},r.prototype.size=function(t){return(t=t||{}).width=this._width,t.height=this._height,t},r.prototype.setSize=function(t){this._width=t.width,this._height=t.height,this._setSize(),this.emit("resize"),this.emitRenderInvalid()},r.prototype.emitRenderInvalid=function(){this.emit("renderInvalid")},r.prototype.listLayers=function(){return[].concat(this._layers)},r.prototype.hasLayer=function(t){return this._layers.indexOf(t)>=0},r.prototype.addLayer=function(t,e){if(this._layers.indexOf(t)>=0)throw new Error("Layer already in stage");if(null==e&&(e=this._layers.length),e<0||e>this._layers.length)throw new Error("Invalid layer position");this._validateLayer(t),this._layers.splice(e,0,t),this._renderers.splice(e,0,null),t.addEventListener("viewChange",this.emitRenderInvalid),t.addEventListener("effectsChange",this.emitRenderInvalid),t.addEventListener("fixedLevelChange",this.emitRenderInvalid),t.addEventListener("textureStoreChange",this.emitRenderInvalid),this.emitRenderInvalid()},r.prototype.moveLayer=function(t,e){var n=this._layers.indexOf(t);if(n<0)throw new Error("No such layer in stage");if(e<0||e>=this._layers.length)throw new Error("Invalid layer position");t=this._layers.splice(n,1)[0];var i=this._renderers.splice(n,1)[0];this._layers.splice(e,0,t),this._renderers.splice(e,0,i),this.emitRenderInvalid()},r.prototype.removeLayer=function(t){var e=this._layers.indexOf(t);if(e<0)throw new Error("No such layer in stage");var n=this._layers.splice(e,1)[0],i=this._renderers.splice(e,1)[0];i&&this.destroyRenderer(i),n.removeEventListener("viewChange",this.emitRenderInvalid),n.removeEventListener("effectsChange",this.emitRenderInvalid),n.removeEventListener("fixedLevelChange",this.emitRenderInvalid),n.removeEventListener("textureStoreChange",this.emitRenderInvalid),this.emitRenderInvalid()},r.prototype.removeAllLayers=function(){for(;this._layers.length>0;)this.removeLayer(this._layers[0])},r.prototype.render=function(){var t,e=this._visibleTiles,n=this._fallbackTiles,r=this._width,o=this._height,a=this._rect;if(!(r<=0||o<=0)){for(this.startFrame(),t=0;tn)throw new Error("Layer has level with tile size larger than maximum texture size ("+e+" vs. "+n+")")},i.prototype.createRenderer=function(t){if(this._rendererInstances.has(t))return this._rendererInstances.get(t);var e=new t(this._gl);return this._rendererInstances.set(t,e),e},i.prototype.destroyRenderer=function(t){this._renderers.indexOf(t)<0&&(t.destroy(),this._rendererInstances.del(t.constructor))},i.prototype.startFrame=function(){var t=this._gl;if(!t)throw new Error("Bad WebGL context - maybe context was lost?");var e=this._width,n=this._height,i=d();t.viewport(0,0,i*e,i*n),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),t.enable(t.DEPTH_TEST),t.enable(t.BLEND),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA)},i.prototype.endFrame=function(){},i.prototype.takeSnapshot=function(t){"object"==typeof t&&null!=t||(t={});var e=t.quality;if(void 0===e&&(e=75),"number"!=typeof e||e<0||e>100)throw new Error("WebGLStage: Snapshot quality needs to be a number between 0 and 100");return this.render(),this._domElement.toDataURL("image/jpeg",e/100)},i.type=i.prototype.type="webgl",r.prototype.refresh=function(t,e){var n,i=this._gl,r=this._stage,o=e.timestamp();if(o!==this._timestamp){var a=e.element(),s=e.width(),l=e.height();if(s!==this._width||l!==this._height){var c=r.maxTextureSize();if(s>c)throw new Error("Texture width larger than max size ("+s+" vs. "+c+")");if(l>c)throw new Error("Texture height larger than max size ("+l+" vs. "+c+")");this._texture&&i.deleteTexture(n),n=this._texture=i.createTexture(),i.bindTexture(i.TEXTURE_2D,n),i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!0),i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,a)}else n=this._texture,i.bindTexture(i.TEXTURE_2D,n),i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!0),i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),a instanceof HTMLVideoElement&&g?i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,a):i.texSubImage2D(i.TEXTURE_2D,0,0,0,i.RGBA,i.UNSIGNED_BYTE,a);r._generateMipmaps&&p(s)&&p(l)?(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR_MIPMAP_LINEAR),i.generateMipmap(i.TEXTURE_2D)):(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR)),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.bindTexture(i.TEXTURE_2D,null),this._timestamp=o,this._width=s,this._height=l}},r.prototype.destroy=function(){var t=this._texture,e=this._gl;t&&e.deleteTexture(t),this._stage=null,this._gl=null,this._texture=null,this._timestamp=null,this._width=this._height=null},i.TextureClass=i.prototype.TextureClass=r,e.exports=i},{"../collections/Map":32,"../support/WebGl":86,"../util/defer":98,"../util/dom":101,"../util/hash":103,"../util/inherits":104,"../util/ispot":105,"../util/pixelRatio":109,"./Stage":80,"./loadImageHtml":83,bowser:1}],82:[function(t,e,n){"use strict";var i=t("../NetworkError"),r=t("../util/once"),o=t("../assets/FlashImage");e.exports=function(t,e,n,a){function s(n,r){r===p&&(t._offCallback("imageLoaded",s),n?a(new i("Network error: "+e)):a(null,new o(l,p)))}var l=t._flashElement,c=n&&n.x||0,u=n&&n.y||0,d=n&&n.width||1,h=n&&n.height||1,p=l.loadImage(e,d,h,c,u);return a=r(a),t._onCallback("imageLoaded",s),function(){l.cancelImage(p),t._offCallback("imageLoaded",s),a.apply(null,arguments)}}},{"../NetworkError":18,"../assets/FlashImage":25,"../util/once":108}],83:[function(t,e,n){"use strict";var i=t("../NetworkError"),r=t("../util/once"),o=t("../assets/StaticImage"),a=t("../assets/StaticCanvas");e.exports=function(t,e,n){var s=new Image;s.crossOrigin="anonymous";var l=e&&e.x||0,c=e&&e.y||0,u=e&&e.width||1,d=e&&e.height||1;return n=r(n),s.onload=function(){if(0===l&&0===c&&1===u&&1===d)n(null,new o(s));else{l*=s.naturalWidth,c*=s.naturalHeight,u*=s.naturalWidth,d*=s.naturalHeight;var t=document.createElement("canvas");t.width=u,t.height=d,t.getContext("2d").drawImage(s,l,c,u,d,0,0,u,d),n(null,new a(t))}},s.onerror=function(){n(new i("Network error: "+t))},s.src=t,function(){s.onload=s.onerror=null,s.src="",n.apply(null,arguments)}}},{"../NetworkError":18,"../assets/StaticCanvas":26,"../assets/StaticImage":27,"../util/once":108}],84:[function(t,e,n){"use strict";var i,r=t("../util/dom").prefixProperty;e.exports=function(){return void 0!==i?i:i=function(){var t=r("perspective"),e=document.createElement("div"),n=void 0!==e.style[t];if(n&&"WebkitPerspective"===t){var i="__marzipano_test_css3d_support__",o=document.createElement("style");o.textContent="@media(-webkit-transform-3d){#"+i+"{height: 3px;})",document.getElementsByTagName("head")[0].appendChild(o),e.id=i,document.body.appendChild(e),n=e.offsetHeight>0,o.parentNode.removeChild(o),e.parentNode.removeChild(e)}return n}()}},{"../util/dom":101}],85:[function(t,e,n){"use strict";function i(){var t=function(){var t=null,e=navigator.plugins,n=navigator.mimeTypes,i=null;if(e&&e["Shockwave Flash"]&&n&&n["application/x-shockwave-flash"]&&n["application/x-shockwave-flash"].enabledPlugin)i=(i=e["Shockwave Flash"].description).replace(/^.*\s+(\S+\s+\S+$)/,"$1"),(t=[0,0,0])[0]=parseInt(i.replace(/^(.*)\..*$/,"$1"),10),t[1]=parseInt(i.replace(/^.*\.(.*)\s.*$/,"$1"),10),t[2]=/[a-zA-Z]/.test(i)?parseInt(i.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0;else if(window.ActiveXObject)try{var r=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");r&&(i=r.GetVariable("$version"))&&(i=i.split(" ")[1].split(","),t=[parseInt(i[0],10),parseInt(i[1],10),parseInt(i[2],10)])}catch(t){}return t}();return t&&(t[0]>=11||10===t[0]&&t[1]>=1)}var r;e.exports=function(){return void 0!==r?r:r=i()}},{}],86:[function(t,e,n){"use strict";var i;e.exports=function(){return void 0!==i?i:i=function(){var t=document.createElement("canvas");return!(!t.getContext||!t.getContext("webgl")&&!t.getContext("experimental-webgl"))}()}},{}],87:[function(t,e,n){"use strict";var i,r=t("bowser");e.exports=function(){return void 0!==i?i:i=function(){var t=document.createElement("a").style;t.cssText="pointer-events:auto";var e="auto"===t.pointerEvents,n=r.msie&&parseFloat(r.version)<11;return e&&!n}()}},{bowser:1}],88:[function(t,e,n){"use strict";e.exports=function(t){return function(e){var n,i;try{i=t()}catch(t){n=t}finally{e(n||null,n?null:i)}}}},{}],89:[function(t,e,n){"use strict";var i=t("./once");e.exports=function(t){return function(){function e(){r.apply(null,arguments)}if(!arguments.length)throw new Error("cancelized: expected at least one argument");var n=Array.prototype.slice.call(arguments,0),r=n[n.length-1]=i(n[n.length-1]);return t.apply(null,n),e}}},{"./once":108}],90:[function(t,e,n){"use strict";var i=t("./noop");e.exports=function(){var t=Array.prototype.slice.call(arguments,0);return function(){function e(){if(arguments[0])return o=a=null,void l.apply(null,arguments);if(!r.length)return o=a=null,void l.apply(null,arguments);var t=o=r.shift(),n=Array.prototype.slice.call(arguments,1);n.push(e);var i=o.apply(null,n);if(t===o){if("function"!=typeof i)throw new Error("chain: chaining on non-cancellable function");a=i}}function n(){a&&a.apply(null,arguments)}var r=t.slice(0),o=null,a=null,s=arguments.length?Array.prototype.slice.call(arguments,0,arguments.length-1):[],l=arguments.length?arguments[arguments.length-1]:i;return s.unshift(null),e.apply(null,s),n}}},{"./noop":107}],91:[function(t,e,n){"use strict";e.exports=function(t,e,n){return Math.min(Math.max(t,e),n)}},{}],92:[function(t,e,n){"use strict";var i=(window.performance&&window.performance.now?function(){return window.performance.now()}:null)||function(){return Date.now()};e.exports=i},{}],93:[function(t,e,n){"use strict";e.exports=function(t,e){return te?1:0}},{}],94:[function(t,e,n){"use strict";e.exports=function(){var t=arguments;return function(e){for(var n=e,i=0;i0?t.apply(null,e):t()}),0)}},{}],99:[function(t,e,n){"use strict";e.exports=function(t){return t*Math.PI/180}},{}],100:[function(t,e,n){"use strict";e.exports=function(t,e){var n=null;return n=setTimeout((function(){null!=n&&(n=null,e(null))}),t),function(){null!=n&&(clearTimeout(n),n=null,e.apply(null,arguments))}}},{}],101:[function(t,e,n){"use strict";function i(t){for(var e=document.documentElement.style,n=["Moz","Webkit","Khtml","O","ms"],i=0;i>6}return t+=t<<3,t^=t>>11,(t+=t<<15)>=0?t:-t}},{}],104:[function(t,e,n){"use strict";e.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},{}],105:[function(t,e,n){"use strict";e.exports=function(t){return 0==(t&t-1)}},{}],106:[function(t,e,n){"use strict";e.exports=function(t,e){return(+t%(e=+e)+e)%e}},{}],107:[function(t,e,n){"use strict";e.exports=function(){}},{}],108:[function(t,e,n){"use strict";e.exports=function(t){var e,n=!1;return function(){return n||(n=!0,e=t.apply(null,arguments)),e}}},{}],109:[function(t,e,n){"use strict";var i=1;e.exports=function(){if("undefined"!=typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t&&t.deviceXDPI&&t.logicalXDPI)return t.deviceXDPI/t.logicalXDPI;if(t&&t.systemXDPI&&t.logicalXDPI)return t.systemXDPI/t.logicalXDPI}return i}},{}],110:[function(t,e,n){"use strict";e.exports=function(t){return 180*t/Math.PI}},{}],111:[function(t,e,n){"use strict";e.exports=function(t){return"number"==typeof t&&isFinite(t)}},{}],112:[function(t,e,n){"use strict";var i=t("./noop");e.exports=function(t){return function(){function e(){!arguments[0]||a?r.apply(null,arguments):o=t.apply(null,n)}var n=arguments.length?Array.prototype.slice.call(arguments,0,arguments.length-1):[],r=arguments.length?arguments[arguments.length-1]:i,o=null,a=!1;return n.push(e),e(!0),function(){a=!0,o.apply(null,arguments)}}}},{"./noop":107}],113:[function(t,e,n){"use strict";var i=t("gl-matrix/src/gl-matrix/vec3"),r=t("gl-matrix/src/gl-matrix/mat4"),o=r.identity(r.create()),a=r.create();e.exports=function(t,e,n,s,l){return r.copy(a,o),n&&r.rotateY(a,a,n),s&&r.rotateX(a,a,s),l&&r.rotateZ(a,a,l),i.transformMat4(t,e,a),t}},{"gl-matrix/src/gl-matrix/mat4":7,"gl-matrix/src/gl-matrix/vec3":10}],114:[function(t,e,n){"use strict";var i=t("./clock");e.exports=function(t,e,n){var r=!1,o=i();return e(0),requestAnimationFrame((function a(){if(!r){var s=(i()-o)/t;s<1?(e(s),requestAnimationFrame(a)):(e(1),n())}})),function(){r=!0,n.apply(null,arguments)}}},{"./clock":92}],115:[function(t,e,n){"use strict";e.exports=function(t){var e=typeof t;if("object"===e){if(null===t)return"null";if("[object Array]"===Object.prototype.toString.call(t))return"array";if("[object RegExp]"===Object.prototype.toString.call(t))return"regexp"}return e}},{}],116:[function(t,e,n){"use strict";function i(t,e){if(!t||null==t.mediaAspectRatio)throw new Error("mediaAspectRatio must be defined");this._x=t&&null!=t.x?t.x:h,this._y=t&&null!=t.y?t.y:p,this._zoom=t&&null!=t.zoom?t.zoom:f,this._mediaAspectRatio=t.mediaAspectRatio,this._width=t&&null!=t.width?t.width:u,this._height=t&&null!=t.height?t.height:d,this._limiter=e||null,this._viewFrustum=[0,0,0,0],this._projectionMatrix=l.create(),this._projectionChanged=!0,this._params={},this._vertex=c.create(),this._invProj=l.create(),this._update()}var r=t("minimal-event-emitter"),o=t("../util/pixelRatio"),a=t("../util/real"),s=t("../util/clamp"),l=t("gl-matrix/src/gl-matrix/mat4"),c=t("gl-matrix/src/gl-matrix/vec4"),u=0,d=0,h=.5,p=.5,f=1,m=[1,0,1,0],v=[-1,-1,1,1];r(i),i.prototype.destroy=function(){this._x=null,this._y=null,this._zoom=null,this._mediaAspectRatio=null,this._width=null,this._height=null,this._limiter=null,this._viewFrustum=null,this._projectionMatrix=null,this._projectionChanged=null,this._params=null,this._vertex=null,this._invProj=null},i.prototype.x=function(){return this._x},i.prototype.y=function(){return this._y},i.prototype.zoom=function(){return this._zoom},i.prototype.mediaAspectRatio=function(){return this._mediaAspectRatio},i.prototype.width=function(){return this._width},i.prototype.height=function(){return this._height},i.prototype.size=function(t){return(t=t||{}).width=this._width,t.height=this._height,t},i.prototype.parameters=function(t){return(t=t||{}).x=this._x,t.y=this._y,t.zoom=this._zoom,t.mediaAspectRatio=this._mediaAspectRatio,t},i.prototype.limiter=function(){return this._limiter},i.prototype.setX=function(t){this._resetParams(),this._params.x=t,this._update(this._params)},i.prototype.setY=function(t){this._resetParams(),this._params.y=t,this._update(this._params)},i.prototype.setZoom=function(t){this._resetParams(),this._params.zoom=t,this._update(this._params)},i.prototype.offsetX=function(t){this.setX(this._x+t)},i.prototype.offsetY=function(t){this.setY(this._y+t)},i.prototype.offsetZoom=function(t){this.setZoom(this._zoom+t)},i.prototype.setMediaAspectRatio=function(t){this._resetParams(),this._params.mediaAspectRatio=t,this._update(this._params)},i.prototype.setSize=function(t){this._resetParams(),this._params.width=t.width,this._params.height=t.height,this._update(this._params)},i.prototype.setParameters=function(t){this._resetParams();var e=this._params;e.x=t.x,e.y=t.y,e.zoom=t.zoom,e.mediaAspectRatio=t.mediaAspectRatio,this._update(e)},i.prototype.setLimiter=function(t){this._limiter=t||null,this._update()},i.prototype._resetParams=function(){var t=this._params;t.x=null,t.y=null,t.zoom=null,t.mediaAspectRatio=null,t.width=null,t.height=null},i.prototype._update=function(t){null==t&&(this._resetParams(),t=this._params);var e=this._x,n=this._y,i=this._zoom,r=this._mediaAspectRatio,o=this._width,l=this._height;if(t.x=null!=t.x?t.x:e,t.y=null!=t.y?t.y:n,t.zoom=null!=t.zoom?t.zoom:i,t.mediaAspectRatio=null!=t.mediaAspectRatio?t.mediaAspectRatio:r,t.width=null!=t.width?t.width:o,t.height=null!=t.height?t.height:l,this._limiter&&!(t=this._limiter(t)))throw new Error("Bad view limiter");var c=t.x,u=t.y,d=t.zoom,h=t.mediaAspectRatio,p=t.width,f=t.height;if(!(a(c)&&a(u)&&a(d)&&a(h)&&a(p)&&a(f)))throw new Error("Bad view - suspect a broken limiter");d=s(d,1e-9,1/0),this._x=c,this._y=u,this._zoom=d,this._mediaAspectRatio=h,this._width=p,this._height=f,c===e&&u===n&&d===i&&h===r&&p===o&&f===l||(this._projectionChanged=!0,this.emit("change")),p===o&&f===l||this.emit("resize")},i.prototype._zoomX=function(){return this._zoom},i.prototype._zoomY=function(){var t=this._mediaAspectRatio,e=this._width/this._height,n=this._zoom,i=n*t/e;return isNaN(i)&&(i=n),i},i.prototype.updateWithControlParameters=function(t){var e=this.zoom(),n=this._zoomX(),i=this._zoomY();this.offsetX(t.axisScaledX*n+t.x*e),this.offsetY(t.axisScaledY*i+t.y*e),this.offsetZoom(t.zoom*e)},i.prototype.projection=function(){var t=this._projectionMatrix;if(this._projectionChanged){var e=this._x,n=this._y,i=this._zoomX(),r=this._zoomY(),o=this._viewFrustum,a=o[0]=.5-n+.5*r,s=o[1]=e-.5+.5*i,c=o[2]=.5-n-.5*r,u=o[3]=e-.5-.5*i;l.ortho(t,u,s,c,a,-1,1),this._projectionChanged=!1}return t},i.prototype.intersects=function(t){var e=this._viewFrustum;this.projection();for(var n=0;n0&&l[r]>i){a=!0;break}}if(!a)return!1}return!0},i.prototype.selectLevel=function(t){for(var e=o()*this.width(),n=this._zoom,i=0;i=e)return r}return t[t.length-1]},i.prototype.coordinatesToScreen=function(t,e){var n=this._vertex;e||(e={});var i=this._width,r=this._height;if(i<=0||r<=0)return e.x=null,e.y=null,null;var o=t&&null!=t.x?t.x:h,a=t&&null!=t.y?t.y:p;c.set(n,o-.5,.5-a,-1,1),c.transformMat4(n,n,this.projection());for(var s=0;s<3;s++)n[s]/=n[3];return e.x=i*(n[0]+1)/2,e.y=r*(1-n[1])/2,e},i.prototype.screenToCoordinates=function(t,e){var n=this._vertex,i=this._invProj;e||(e={});var r=this._width,o=this._height;l.invert(i,this.projection());var a=2*t.x/r-1,s=1-2*t.y/o;return c.set(n,a,s,1,1),c.transformMat4(n,n,i),e.x=.5+n[0],e.y=.5-n[1],e},i.limit={x:function(t,e){return function(n){return n.x=s(n.x,t,e),n}},y:function(t,e){return function(n){return n.y=s(n.y,t,e),n}},zoom:function(t,e){return function(n){return n.zoom=s(n.zoom,t,e),n}},resolution:function(t){return function(e){if(e.width<=0||e.height<=0)return e;var n=e.width,i=o()*n/t;return e.zoom=s(e.zoom,i,1/0),e}},visibleX:function(t,e){return function(n){var i=e-t;n.zoom>i&&(n.zoom=i);var r=t+.5*n.zoom,o=e-.5*n.zoom;return n.x=s(n.x,r,o),n}},visibleY:function(t,e){return function(n){if(n.width<=0||n.height<=0)return n;var i=n.width/n.height/n.mediaAspectRatio,r=(e-t)*i;n.zoom>r&&(n.zoom=r);var o=t+.5*n.zoom/i,a=e-.5*n.zoom/i;return n.y=s(n.y,o,a),n}},letterbox:function(){return function(t){if(t.width<=0||t.height<=0)return t;var e,n,i,r,o=t.width/t.height,a=o/t.mediaAspectRatio;return t.mediaAspectRatio>=o&&(t.zoom=Math.min(t.zoom,1)),t.mediaAspectRatio<=o&&(t.zoom=Math.min(t.zoom,a)),t.zoom>1?e=n=.5:(e=0+.5*t.zoom/1,n=1-.5*t.zoom/1),t.zoom>a?i=r=.5:(i=0+.5*t.zoom/a,r=1-.5*t.zoom/a),t.x=s(t.x,e,n),t.y=s(t.y,i,r),t}}},i.type=i.prototype.type="flat",e.exports=i},{"../util/clamp":91,"../util/pixelRatio":109,"../util/real":111,"gl-matrix/src/gl-matrix/mat4":7,"gl-matrix/src/gl-matrix/vec4":11,"minimal-event-emitter":13}],117:[function(t,e,n){"use strict";function i(t,e){this._yaw=t&&null!=t.yaw?t.yaw:g,this._pitch=t&&null!=t.pitch?t.pitch:y,this._roll=t&&null!=t.roll?t.roll:_,this._fov=t&&null!=t.fov?t.fov:b,this._width=t&&null!=t.width?t.width:m,this._height=t&&null!=t.height?t.height:v,this._projectionCenterX=t&&null!=t.projectionCenterX?t.projectionCenterX:w,this._projectionCenterY=t&&null!=t.projectionCenterY?t.projectionCenterY:x,this._limiter=e||null,this._projectionMatrix=p.create(),this._projectionChanged=!0,this._viewFrustum=[f.create(),f.create(),f.create(),f.create(),f.create()],this._params={},this._fovs={},this._vertex=f.create(),this._invProj=p.create(),this._update()}var r=t("minimal-event-emitter"),o=t("../util/pixelRatio"),a=t("../util/convertFov"),s=t("../util/rotateVector"),l=t("../util/mod"),c=t("../util/real"),u=t("../util/clamp"),d=t("../util/decimal"),h=t("../util/compose"),p=t("gl-matrix/src/gl-matrix/mat4"),f=t("gl-matrix/src/gl-matrix/vec4"),m=0,v=0,g=0,y=0,_=0,b=Math.PI/4,w=0,x=0;r(i),i.prototype.destroy=function(){this._yaw=null,this._pitch=null,this._roll=null,this._fov=null,this._width=null,this._height=null,this._limiter=null,this._projectionChanged=null,this._projectionMatrix=null,this._viewFrustum=null,this._params=null,this._vertex=null,this._invProj=null},i.prototype.yaw=function(){return this._yaw},i.prototype.pitch=function(){return this._pitch},i.prototype.roll=function(){return this._roll},i.prototype.projectionCenterX=function(){return this._projectionCenterX},i.prototype.projectionCenterY=function(){return this._projectionCenterY},i.prototype.fov=function(){return this._fov},i.prototype.width=function(){return this._width},i.prototype.height=function(){return this._height},i.prototype.size=function(t){return t||(t={}),t.width=this._width,t.height=this._height,t},i.prototype.parameters=function(t){return t||(t={}),t.yaw=this._yaw,t.pitch=this._pitch,t.roll=this._roll,t.fov=this._fov,t},i.prototype.limiter=function(){return this._limiter},i.prototype.setYaw=function(t){this._resetParams(),this._params.yaw=t,this._update(this._params)},i.prototype.setPitch=function(t){this._resetParams(),this._params.pitch=t,this._update(this._params)},i.prototype.setRoll=function(t){this._resetParams(),this._params.roll=t,this._update(this._params)},i.prototype.setFov=function(t){this._resetParams(),this._params.fov=t,this._update(this._params)},i.prototype.setProjectionCenterX=function(t){this._resetParams(),this._params.projectionCenterX=t,this._update(this._params)},i.prototype.setProjectionCenterY=function(t){this._resetParams(),this._params.projectionCenterY=t,this._update(this._params)},i.prototype.offsetYaw=function(t){this.setYaw(this._yaw+t)},i.prototype.offsetPitch=function(t){this.setPitch(this._pitch+t)},i.prototype.offsetRoll=function(t){this.setRoll(this._roll+t)},i.prototype.offsetFov=function(t){this.setFov(this._fov+t)},i.prototype.setSize=function(t){this._resetParams(),this._params.width=t.width,this._params.height=t.height,this._update(this._params)},i.prototype.setParameters=function(t){this._resetParams();var e=this._params;e.yaw=t.yaw,e.pitch=t.pitch,e.roll=t.roll,e.fov=t.fov,e.projectionCenterX=t.projectionCenterX,e.projectionCenterY=t.projectionCenterY,this._update(e)},i.prototype.setLimiter=function(t){this._limiter=t||null,this._update()},i.prototype._resetParams=function(){var t=this._params;t.yaw=null,t.pitch=null,t.roll=null,t.fov=null,t.width=null,t.height=null},i.prototype._update=function(t){null==t&&(this._resetParams(),t=this._params);var e=this._yaw,n=this._pitch,i=this._roll,r=this._fov,o=this._projectionCenterX,a=this._projectionCenterY,s=this._width,l=this._height;if(t.yaw=null!=t.yaw?t.yaw:e,t.pitch=null!=t.pitch?t.pitch:n,t.roll=null!=t.roll?t.roll:i,t.fov=null!=t.fov?t.fov:r,t.width=null!=t.width?t.width:s,t.height=null!=t.height?t.height:l,t.projectionCenterX=null!=t.projectionCenterX?t.projectionCenterX:o,t.projectionCenterY=null!=t.projectionCenterY?t.projectionCenterY:a,this._limiter&&!(t=this._limiter(t)))throw new Error("Bad view limiter");var u=(t=this._normalize(t)).yaw,d=t.pitch,h=t.roll,p=t.fov,f=t.width,m=t.height,v=t.projectionCenterX,g=t.projectionCenterY;if(!(c(u)&&c(d)&&c(h)&&c(p)&&c(f)&&c(m)&&c(v)&&c(g)))throw new Error("Bad view - suspect a broken limiter");this._yaw=u,this._pitch=d,this._roll=h,this._fov=p,this._width=f,this._height=m,this._projectionCenterX=v,this._projectionCenterY=g,u===e&&d===n&&h===i&&p===r&&f===s&&m===l&&v===o&&g===a||(this._projectionChanged=!0,this.emit("change")),f===s&&m===l||this.emit("resize")},i.prototype._normalize=function(t){this._normalizeCoordinates(t);var e=a.htov(Math.PI,t.width,t.height),n=isNaN(e)?Math.PI:Math.min(Math.PI,e);return t.fov=u(t.fov,1e-6,n-1e-6),t},i.prototype._normalizeCoordinates=function(t){return"yaw"in t&&(t.yaw=l(t.yaw-Math.PI,-2*Math.PI)+Math.PI),"pitch"in t&&(t.pitch=l(t.pitch-Math.PI,-2*Math.PI)+Math.PI),"roll"in t&&(t.roll=l(t.roll-Math.PI,-2*Math.PI)+Math.PI),t},i.prototype.normalizeToClosest=function(t,e){var n=this._yaw,i=this._pitch,r=t.yaw,o=t.pitch,a=r-2*Math.PI,s=r+2*Math.PI;Math.abs(a-n)=0&&(o=!0)}if(!o)return!1}return!0},i.prototype.selectLevel=function(t){for(var e=o()*this._height,n=Math.tan(.5*this._fov),i=0;i=e)return r}return t[t.length-1]},i.prototype.coordinatesToScreen=function(t,e){var n=this._vertex;e||(e={});var i=this._width,r=this._height;if(i<=0||r<=0)return e.x=null,e.y=null,null;var o=t&&null!=t.yaw?t.yaw:g,a=t&&null!=t.pitch?t.pitch:y,l=t&&null!=t.roll?t.roll:_;return f.set(n,0,0,-1,1),s(n,n,-o,-a,-l),f.transformMat4(n,n,this.projection()),n[3]>=0?(e.x=i*(n[0]/n[3]+1)/2,e.y=r*(1-n[1]/n[3])/2,e):(e.x=null,e.y=null,null)},i.prototype.screenToCoordinates=function(t,e){var n=this._vertex,i=this._invProj;e||(e={});var r=this._width,o=this._height;p.invert(i,this.projection());var a=2*t.x/r-1,s=1-2*t.y/o;f.set(n,a,s,1,1),f.transformMat4(n,n,i);var l=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);return e.yaw=Math.atan2(n[0],-n[2]),e.pitch=Math.acos(n[1]/l)-Math.PI/2,this._normalizeCoordinates(e),e},i.prototype.coordinatesToPerspectiveTransform=function(t,e,n){n=n||"";var i=this._height,r=this._width,o=this._fov,a=.5*i/Math.tan(o/2),s="";return s+="translateX("+d(r/2)+"px) translateY("+d(i/2)+"px) ",s+="translateX(-50%) translateY(-50%) ",s+="perspective("+d(a)+"px) ",s+="translateZ("+d(a)+"px) ",s+="rotateZ("+d(-this._roll)+"rad) ",s+="rotateX("+d(-this._pitch)+"rad) ",s+="rotateY("+d(this._yaw)+"rad) ",s+="rotateY("+d(-t.yaw)+"rad) ",s+="rotateX("+d(t.pitch)+"rad) ",(s+="translateZ("+d(-e)+"px) ")+(n+" ")},i.limit={yaw:function(t,e){return function(n){return n.yaw=u(n.yaw,t,e),n}},pitch:function(t,e){return function(n){return n.pitch=u(n.pitch,t,e),n}},roll:function(t,e){return function(n){return n.roll=u(n.roll,t,e),n}},hfov:function(t,e){return function(n){var i=n.width,r=n.height;if(i>0&&r>0){var o=a.htov(t,i,r),s=a.htov(e,i,r);n.fov=u(n.fov,o,s)}return n}},vfov:function(t,e){return function(n){return n.fov=u(n.fov,t,e),n}},resolution:function(t){return function(e){var n=e.height;if(n){var i=o()*n,r=2*Math.atan(i/t);e.fov=u(e.fov,r,1/0)}return e}},traditional:function(t,e,n){return n=null!=n?n:e,h(i.limit.resolution(t),i.limit.vfov(0,e),i.limit.hfov(0,n),i.limit.pitch(-Math.PI/2,Math.PI/2))}},i.type=i.prototype.type="rectilinear",e.exports=i},{"../util/clamp":91,"../util/compose":94,"../util/convertFov":95,"../util/decimal":96,"../util/mod":106,"../util/pixelRatio":109,"../util/real":111,"../util/rotateVector":113,"gl-matrix/src/gl-matrix/mat4":7,"gl-matrix/src/gl-matrix/vec4":11,"minimal-event-emitter":13}]},{},[57])(57)}))}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],5:[function(t,e,n){var i,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:a}catch(t){i=a}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var c,u=[],d=!1,h=-1;function p(){d&&c&&(d=!1,c.length?u=c.concat(u):h=-1,u.length&&f())}function f(){if(!d){var t=l(p);d=!0;for(var e=u.length;e;){for(c=u,u=[];++h1)for(var n=1;n As of ScrollMagic 2.0.0 you need to use 'new ScrollMagic.Controller()' to create a new controller instance. Use 'new ScrollMagic.Scene()' to instance a scene.")};t.version="2.0.8","undefined"!=typeof window&&window.addEventListener("mousewheel",void 0);var e="data-scrollmagic-pin-spacer";t.Controller=function(i){var o,a,s="ScrollMagic.Controller",l="REVERSE",c="PAUSED",u=n.defaults,d=this,h=r.extend({},u,i),p=[],f=!1,m=0,v=c,g=!0,y=0,_=!0,b=function(){h.refreshInterval>0&&(a=window.setTimeout(E,h.refreshInterval))},w=function(){return h.vertical?r.get.scrollTop(h.container):r.get.scrollLeft(h.container)},x=function(){return h.vertical?r.get.height(h.container):r.get.width(h.container)},S=this._setScrollPos=function(t){h.vertical?g?window.scrollTo(r.get.scrollLeft(),t):h.container.scrollTop=t:g?window.scrollTo(t,r.get.scrollTop()):h.container.scrollLeft=t},C=function(){if(_&&f){var t=r.type.Array(f)?f:p.slice(0);f=!1;var e=m,n=(m=d.scrollPos())-e;0!==n&&(v=n>0?"FORWARD":l),v===l&&t.reverse(),t.forEach((function(e,n){A(3,"updating Scene "+(n+1)+"/"+t.length+" ("+p.length+" total)"),e.update(!0)})),0===t.length&&h.loglevel>=3&&A(3,"updating 0 Scenes (nothing added to controller)")}},k=function(){o=r.rAF(C)},T=function(t){A(3,"event fired causing an update:",t.type),"resize"==t.type&&(y=x(),v=c),!0!==f&&(f=!0,k())},E=function(){if(!g&&y!=x()){var t;try{t=new Event("resize",{bubbles:!1,cancelable:!1})}catch(e){(t=document.createEvent("Event")).initEvent("resize",!1,!1)}h.container.dispatchEvent(t)}p.forEach((function(t,e){t.refresh()})),b()},A=this._log=function(t,e){h.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+s+") ->"),r.log.apply(window,arguments))};this._options=h;var M=function(t){if(t.length<=1)return t;var e=t.slice(0);return e.sort((function(t,e){return t.scrollOffset()>e.scrollOffset()?1:-1})),e};return this.addScene=function(e){if(r.type.Array(e))e.forEach((function(t,e){d.addScene(t)}));else if(e instanceof t.Scene){if(e.controller()!==d)e.addTo(d);else if(p.indexOf(e)<0){for(var n in p.push(e),p=M(p),e.on("shift.controller_sort",(function(){p=M(p)})),h.globalSceneOptions)e[n]&&e[n].call(e,h.globalSceneOptions[n]);A(3,"adding Scene (now "+p.length+" total)")}}else A(1,"ERROR: invalid argument supplied for '.addScene()'");return d},this.removeScene=function(t){if(r.type.Array(t))t.forEach((function(t,e){d.removeScene(t)}));else{var e=p.indexOf(t);e>-1&&(t.off("shift.controller_sort"),p.splice(e,1),A(3,"removing Scene (now "+p.length+" left)"),t.remove())}return d},this.updateScene=function(e,n){return r.type.Array(e)?e.forEach((function(t,e){d.updateScene(t,n)})):n?e.update(!0):!0!==f&&e instanceof t.Scene&&(-1==(f=f||[]).indexOf(e)&&f.push(e),f=M(f),k()),d},this.update=function(t){return T({type:"resize"}),t&&C(),d},this.scrollTo=function(n,i){if(r.type.Number(n))S.call(h.container,n,i);else if(n instanceof t.Scene)n.controller()===d?d.scrollTo(n.scrollOffset(),i):A(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",n);else if(r.type.Function(n))S=n;else{var o=r.get.elements(n)[0];if(o){for(;o.parentNode.hasAttribute(e);)o=o.parentNode;var a=h.vertical?"top":"left",s=r.get.offset(h.container),l=r.get.offset(o);g||(s[a]-=d.scrollPos()),d.scrollTo(l[a]-s[a],i)}else A(2,"scrollTo(): The supplied argument is invalid. Scroll cancelled.",n)}return d},this.scrollPos=function(t){return arguments.length?(r.type.Function(t)?w=t:A(2,"Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'."),d):w.call(d)},this.info=function(t){var e={size:y,vertical:h.vertical,scrollPos:m,scrollDirection:v,container:h.container,isDocument:g};return arguments.length?void 0!==e[t]?e[t]:void A(1,'ERROR: option "'+t+'" is not available'):e},this.loglevel=function(t){return arguments.length?(h.loglevel!=t&&(h.loglevel=t),d):h.loglevel},this.enabled=function(t){return arguments.length?(_!=t&&(_=!!t,d.updateScene(p,!0)),d):_},this.destroy=function(t){window.clearTimeout(a);for(var e=p.length;e--;)p[e].destroy(t);return h.container.removeEventListener("resize",T),h.container.removeEventListener("scroll",T),r.cAF(o),A(3,"destroyed "+s+" (reset: "+(t?"true":"false")+")"),null},function(){for(var e in h)u.hasOwnProperty(e)||(A(2,'WARNING: Unknown option "'+e+'"'),delete h[e]);if(h.container=r.get.elements(h.container)[0],!h.container)throw A(1,"ERROR creating object "+s+": No valid scroll container supplied"),s+" init failed.";(g=h.container===window||h.container===document.body||!document.body.contains(h.container))&&(h.container=window),y=x(),h.container.addEventListener("resize",T),h.container.addEventListener("scroll",T);var n=parseInt(h.refreshInterval,10);h.refreshInterval=r.type.Number(n)?n:u.refreshInterval,b(),A(3,"added new "+s+" controller (v"+t.version+")")}(),d};var n={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};t.Controller.addOption=function(t,e){n.defaults[t]=e},t.Controller.extend=function(e){var n=this;t.Controller=function(){return n.apply(this,arguments),this.$super=r.extend({},this),e.apply(this,arguments)||this},r.extend(t.Controller,n),t.Controller.prototype=n.prototype,t.Controller.prototype.constructor=t.Controller},t.Scene=function(n){var o,a,s="ScrollMagic.Scene",l="BEFORE",c="DURING",u="AFTER",d=i.defaults,h=this,p=r.extend({},d,n),f=l,m=0,v={start:0,end:0},g=0,y=!0,_={};this.on=function(t,e){return r.type.Function(e)?(t=t.trim().split(" ")).forEach((function(t){var n=t.split("."),i=n[0],r=n[1];"*"!=i&&(_[i]||(_[i]=[]),_[i].push({namespace:r||"",callback:e}))})):b(1,"ERROR when calling '.on()': Supplied callback for '"+t+"' is not a valid function!"),h},this.off=function(t,e){return t?((t=t.trim().split(" ")).forEach((function(t,n){var i=t.split("."),r=i[0],o=i[1]||"";("*"===r?Object.keys(_):[r]).forEach((function(t){for(var n=_[t]||[],i=n.length;i--;){var r=n[i];!r||o!==r.namespace&&"*"!==o||e&&e!=r.callback||n.splice(i,1)}n.length||delete _[t]}))})),h):(b(1,"ERROR: Invalid event name supplied."),h)},this.trigger=function(e,n){if(e){var i=e.trim().split("."),r=i[0],o=i[1],a=_[r];b(3,"event fired:",r,n?"->":"",n||""),a&&a.forEach((function(e,i){o&&o!==e.namespace||e.callback.call(h,new t.Event(r,e.namespace,h,n))}))}else b(1,"ERROR: Invalid event name supplied.");return h},h.on("change.internal",(function(t){"loglevel"!==t.what&&"tweenChanges"!==t.what&&("triggerElement"===t.what?k():"reverse"===t.what&&h.update())})).on("shift.internal",(function(t){S(),h.update()}));var b=this._log=function(t,e){p.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+s+") ->"),r.log.apply(window,arguments))};this.addTo=function(e){return e instanceof t.Controller?a!=e&&(a&&a.removeScene(h),a=e,A(),C(!0),k(!0),S(),a.info("container").addEventListener("resize",T),e.addScene(h),h.trigger("add",{controller:a}),b(3,"added "+s+" to controller"),h.update()):b(1,"ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic Controller"),h},this.enabled=function(t){return arguments.length?(y!=t&&(y=!!t,h.update(!0)),h):y},this.remove=function(){if(a){a.info("container").removeEventListener("resize",T);var t=a;a=void 0,t.removeScene(h),h.trigger("remove"),b(3,"removed "+s+" from controller")}return h},this.destroy=function(t){return h.trigger("destroy",{reset:t}),h.remove(),h.off("*.*"),b(3,"destroyed "+s+" (reset: "+(t?"true":"false")+")"),null},this.update=function(t){if(a)if(t)if(a.enabled()&&y){var e,n=a.info("scrollPos");e=p.duration>0?(n-v.start)/(v.end-v.start):n>=v.start?1:0,h.trigger("update",{startPos:v.start,endPos:v.end,scrollPos:n}),h.progress(e)}else w&&f===c&&O(!0);else a.updateScene(h,!1);return h},this.refresh=function(){return C(),k(),h},this.progress=function(t){if(arguments.length){var e=!1,n=f,i=a?a.info("scrollDirection"):"PAUSED",r=p.reverse||t>=m;if(0===p.duration?(e=m!=t,f=0==(m=t<1&&r?0:1)?l:c):t<0&&f!==l&&r?(m=0,f=l,e=!0):t>=0&&t<1&&r?(m=t,f=c,e=!0):t>=1&&f!==u?(m=1,f=u,e=!0):f!==c||r||O(),e){var o={progress:m,state:f,scrollDirection:i},s=f!=n,d=function(t){h.trigger(t,o)};s&&n!==c&&(d("enter"),d(n===l?"start":"end")),d("progress"),s&&f!==c&&(d(f===l?"start":"end"),d("leave"))}return h}return m};var w,x,S=function(){v={start:g+p.offset},a&&p.triggerElement&&(v.start-=a.info("size")*p.triggerHook),v.end=v.start+p.duration},C=function(t){if(o){var e="duration";M(e,o.call(h))&&!t&&(h.trigger("change",{what:e,newval:p.duration}),h.trigger("shift",{reason:e}))}},k=function(t){var n=0,i=p.triggerElement;if(a&&(i||g>0)){if(i)if(i.parentNode){for(var o=a.info(),s=r.get.offset(o.container),l=o.vertical?"top":"left";i.parentNode.hasAttribute(e);)i=i.parentNode;var c=r.get.offset(i);o.isDocument||(s[l]-=a.scrollPos()),n=c[l]-s[l]}else b(2,"WARNING: triggerElement was removed from DOM and will be reset to",void 0),h.triggerElement(void 0);var u=n!=g;g=n,u&&!t&&h.trigger("shift",{reason:"triggerElementPosition"})}},T=function(t){p.triggerHook>0&&h.trigger("shift",{reason:"containerResize"})},E=r.extend(i.validate,{duration:function(t){if(r.type.String(t)&&t.match(/^(\.|\d)*\d+%$/)){var e=parseFloat(t)/100;t=function(){return a?a.info("size")*e:0}}if(r.type.Function(t)){o=t;try{t=parseFloat(o.call(h))}catch(e){t=-1}}if(t=parseFloat(t),!r.type.Number(t)||t<0)throw o?(o=void 0,['Invalid return value of supplied function for option "duration":',t]):['Invalid value for option "duration":',t];return t}}),A=function(t){(t=arguments.length?[t]:Object.keys(E)).forEach((function(t,e){var n;if(E[t])try{n=E[t](p[t])}catch(e){n=d[t];var i=r.type.String(e)?[e]:e;r.type.Array(i)?(i[0]="ERROR: "+i[0],i.unshift(1),b.apply(this,i)):b(1,"ERROR: Problem executing validation callback for option '"+t+"':",e.message)}finally{p[t]=n}}))},M=function(t,e){var n=!1,i=p[t];return p[t]!=e&&(p[t]=e,A(t),n=i!=p[t]),n},I=function(t){h[t]||(h[t]=function(e){return arguments.length?("duration"===t&&(o=void 0),M(t,e)&&(h.trigger("change",{what:t,newval:p[t]}),i.shifts.indexOf(t)>-1&&h.trigger("shift",{reason:t})),h):p[t]})};this.controller=function(){return a},this.state=function(){return f},this.scrollOffset=function(){return v.start},this.triggerPosition=function(){var t=p.offset;return a&&(p.triggerElement?t+=g:t+=a.info("size")*h.triggerHook()),t},h.on("shift.internal",(function(t){var e="duration"===t.reason;(f===u&&e||f===c&&0===p.duration)&&O(),e&&P()})).on("progress.internal",(function(t){O()})).on("add.internal",(function(t){P()})).on("destroy.internal",(function(t){h.removePin(t.reset)}));var O=function(t){if(w&&a){var e=a.info(),n=x.spacer.firstChild;if(t||f!==c){var i={position:x.inFlow?"relative":"absolute",top:0,left:0},o=r.css(n,"position")!=i.position;x.pushFollowers?p.duration>0&&(f===u&&0===parseFloat(r.css(x.spacer,"padding-top"))||f===l&&0===parseFloat(r.css(x.spacer,"padding-bottom")))&&(o=!0):i[e.vertical?"top":"left"]=p.duration*m,r.css(n,i),o&&P()}else{"fixed"!=r.css(n,"position")&&(r.css(n,{position:"fixed"}),P());var s=r.get.offset(x.spacer,!0),d=p.reverse||0===p.duration?e.scrollPos-v.start:Math.round(m*p.duration*10)/10;s[e.vertical?"top":"left"]+=d,r.css(x.spacer.firstChild,{top:s.top,left:s.left})}}},P=function(){if(w&&a&&x.inFlow){var t=f===c,e=a.info("vertical"),n=x.spacer.firstChild,i=r.isMarginCollapseType(r.css(x.spacer,"display")),o={};x.relSize.width||x.relSize.autoFullWidth?t?r.css(w,{width:r.get.width(x.spacer)}):r.css(w,{width:"100%"}):(o["min-width"]=r.get.width(e?w:n,!0,!0),o.width=t?o["min-width"]:"auto"),x.relSize.height?t?r.css(w,{height:r.get.height(x.spacer)-(x.pushFollowers?p.duration:0)}):r.css(w,{height:"100%"}):(o["min-height"]=r.get.height(e?n:w,!0,!i),o.height=t?o["min-height"]:"auto"),x.pushFollowers&&(o["padding"+(e?"Top":"Left")]=p.duration*m,o["padding"+(e?"Bottom":"Right")]=p.duration*(1-m)),r.css(x.spacer,o)}},N=function(){a&&w&&f===c&&!a.info("isDocument")&&O()},D=function(){a&&w&&f===c&&((x.relSize.width||x.relSize.autoFullWidth)&&r.get.width(window)!=r.get.width(x.spacer.parentNode)||x.relSize.height&&r.get.height(window)!=r.get.height(x.spacer.parentNode))&&P()},R=function(t){a&&w&&f===c&&!a.info("isDocument")&&(t.preventDefault(),a._setScrollPos(a.info("scrollPos")-((t.wheelDelta||t[a.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-t.detail)))};this.setPin=function(t,n){var i=n&&n.hasOwnProperty("pushFollowers");if(n=r.extend({},{pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"},n),!(t=r.get.elements(t)[0]))return b(1,"ERROR calling method 'setPin()': Invalid pin element supplied."),h;if("fixed"===r.css(t,"position"))return b(1,"ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'."),h;if(w){if(w===t)return h;h.removePin()}var o=(w=t).parentNode.style.display,a=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];w.parentNode.style.display="none";var s="absolute"!=r.css(w,"position"),l=r.css(w,a.concat(["display"])),c=r.css(w,["width","height"]);w.parentNode.style.display=o,!s&&n.pushFollowers&&(b(2,"WARNING: If the pinned element is positioned absolutely pushFollowers will be disabled."),n.pushFollowers=!1),window.setTimeout((function(){w&&0===p.duration&&i&&n.pushFollowers&&b(2,"WARNING: pushFollowers =",!0,"has no effect, when scene duration is 0.")}),0);var u=w.parentNode.insertBefore(document.createElement("div"),w),d=r.extend(l,{position:s?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});if(s||r.extend(d,r.css(w,["width","height"])),r.css(u,d),u.setAttribute(e,""),r.addClass(u,n.spacerClass),x={spacer:u,relSize:{width:"%"===c.width.slice(-1),height:"%"===c.height.slice(-1),autoFullWidth:"auto"===c.width&&s&&r.isMarginCollapseType(l.display)},pushFollowers:n.pushFollowers,inFlow:s},!w.___origStyle){w.___origStyle={};var f=w.style;a.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]).forEach((function(t){w.___origStyle[t]=f[t]||""}))}return x.relSize.width&&r.css(u,{width:c.width}),x.relSize.height&&r.css(u,{height:c.height}),u.appendChild(w),r.css(w,{position:s?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(x.relSize.width||x.relSize.autoFullWidth)&&r.css(w,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",N),window.addEventListener("resize",N),window.addEventListener("resize",D),w.addEventListener("mousewheel",R),w.addEventListener("DOMMouseScroll",R),b(3,"added pin"),O(),h},this.removePin=function(t){if(w){if(f===c&&O(!0),t||!a){var n=x.spacer.firstChild;if(n.hasAttribute(e)){var i=x.spacer.style,o={};["margin","marginLeft","marginRight","marginTop","marginBottom"].forEach((function(t){o[t]=i[t]||""})),r.css(n,o)}x.spacer.parentNode.insertBefore(n,x.spacer),x.spacer.parentNode.removeChild(x.spacer),w.parentNode.hasAttribute(e)||(r.css(w,w.___origStyle),delete w.___origStyle)}window.removeEventListener("scroll",N),window.removeEventListener("resize",N),window.removeEventListener("resize",D),w.removeEventListener("mousewheel",R),w.removeEventListener("DOMMouseScroll",R),w=void 0,b(3,"removed pin (reset: "+(t?"true":"false")+")")}return h};var L,F=[];return h.on("destroy.internal",(function(t){h.removeClassToggle(t.reset)})),this.setClassToggle=function(t,e){var n=r.get.elements(t);return 0!==n.length&&r.type.String(e)?(F.length>0&&h.removeClassToggle(),L=e,F=n,h.on("enter.internal_class leave.internal_class",(function(t){var e="enter"===t.type?r.addClass:r.removeClass;F.forEach((function(t,n){e(t,L)}))})),h):(b(1,"ERROR calling method 'setClassToggle()': Invalid "+(0===n.length?"element":"classes")+" supplied."),h)},this.removeClassToggle=function(t){return t&&F.forEach((function(t,e){r.removeClass(t,L)})),h.off("start.internal_class end.internal_class"),L=void 0,F=[],h},function(){for(var t in p)d.hasOwnProperty(t)||(b(2,'WARNING: Unknown option "'+t+'"'),delete p[t]);for(var e in d)I(e);A()}(),h};var i={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(t){if(t=parseFloat(t),!r.type.Number(t))throw['Invalid value for option "offset":',t];return t},triggerElement:function(t){if(t=t||void 0){var e=r.get.elements(t)[0];if(!e||!e.parentNode)throw['Element defined in option "triggerElement" was not found:',t];t=e}return t},triggerHook:function(t){var e={onCenter:.5,onEnter:1,onLeave:0};if(r.type.Number(t))t=Math.max(0,Math.min(parseFloat(t),1));else{if(!(t in e))throw['Invalid value for option "triggerHook": ',t];t=e[t]}return t},reverse:function(t){return!!t},loglevel:function(t){if(t=parseInt(t),!r.type.Number(t)||t<0||t>3)throw['Invalid value for option "loglevel":',t];return t}},shifts:["duration","offset","triggerHook"]};t.Scene.addOption=function(e,n,r,o){e in i.defaults?t._util.log(1,"[static] ScrollMagic.Scene -> Cannot add Scene option '"+e+"', because it already exists."):(i.defaults[e]=n,i.validate[e]=r,o&&i.shifts.push(e))},t.Scene.extend=function(e){var n=this;t.Scene=function(){return n.apply(this,arguments),this.$super=r.extend({},this),e.apply(this,arguments)||this},r.extend(t.Scene,n),t.Scene.prototype=n.prototype,t.Scene.prototype.constructor=t.Scene},t.Event=function(t,e,n,i){for(var r in i=i||{})this[r]=i[r];return this.type=t,this.target=this.currentTarget=n,this.namespace=e||"",this.timeStamp=this.timestamp=Date.now(),this};var r=t._util=function(t){var e,n={},i=function(t){return parseFloat(t)||0},r=function(e){return e.currentStyle?e.currentStyle:t.getComputedStyle(e)},o=function(e,n,o,a){if((n=n===document?t:n)===t)a=!1;else if(!f.DomElement(n))return 0;e=e.charAt(0).toUpperCase()+e.substr(1).toLowerCase();var s=(o?n["offset"+e]||n["outer"+e]:n["client"+e]||n["inner"+e])||0;if(o&&a){var l=r(n);s+="Height"===e?i(l.marginTop)+i(l.marginBottom):i(l.marginLeft)+i(l.marginRight)}return s},a=function(t){return t.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))};n.extend=function(t){for(t=t||{},e=1;e-1};var s=0,l=["ms","moz","webkit","o"],c=t.requestAnimationFrame,u=t.cancelAnimationFrame;for(e=0;!c&&ed.length||t<=0)&&(t=d.length);var e=new Date,n=("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)+":"+("0"+e.getSeconds()).slice(-2)+":"+("00"+e.getMilliseconds()).slice(-3),i=d[t-1],r=Array.prototype.splice.call(arguments,1),o=Function.prototype.bind.call(h[i],h);r.unshift(n),o.apply(h,r)};var f=n.type=function(t){return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/,"$1").toLowerCase()};f.String=function(t){return"string"===f(t)},f.Function=function(t){return"function"===f(t)},f.Array=function(t){return Array.isArray(t)},f.Number=function(t){return!f.Array(t)&&t-parseFloat(t)+1>=0},f.DomElement=function(t){return"object"==typeof HTMLElement||"function"==typeof HTMLElement?t instanceof HTMLElement||t instanceof SVGElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName};var m=n.get={};return m.elements=function(e){var n=[];if(f.String(e))try{e=document.querySelectorAll(e)}catch(t){return n}if("nodelist"===f(e)||f.Array(e)||e instanceof NodeList)for(var i=0,r=n.length=e.length;i ERROR calling addIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},t.Scene.prototype.removeIndicators=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},t.Scene.prototype.setTween=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},t.Scene.prototype.removeTween=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},t.Scene.prototype.setVelocity=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},t.Scene.prototype.removeVelocity=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},t},"function"==typeof define&&define.amd?define(r):"object"==typeof n?e.exports=r():i.ScrollMagic=r()},{}],7:[function(t,e,n){ /*! * ScrollMagic v2.0.8 (2020-08-14) * The javascript library for magical scroll interactions. * (c) 2020 Jan Paepke (@janpaepke) * Project Website: http://scrollmagic.io * * @version 2.0.8 * @license Dual licensed under MIT license and GPL. * @author Jan Paepke - e-mail@janpaepke.de * * @file ScrollMagic GSAP Animation Plugin. * * requires: GSAP ~1.14 * Powered by the Greensock Animation Platform (GSAP): http://www.greensock.com/js * Greensock License info at http://www.greensock.com/licensing/ */ !function(e,i){if("function"==typeof define&&define.amd)define(["ScrollMagic","gsap","TweenMax","TimelineMax"],i);else if("object"==typeof n){var r=t("gsap/dist/gsap")||t("gsap");i(t("scrollmagic"),r,TweenMax||r,TimelineMax||r)}else i(e.ScrollMagic||e.jQuery&&e.jQuery.ScrollMagic,e.gsap,e.gsap||e.TweenMax||e.TweenLite,e.gsap||e.TimelineMax||e.TimelineLite)}(this,(function(t,e,n,i){"use strict";var r="animation.gsap",o=e&&parseFloat(e.version)>=3,a=window.console||{},s=Function.prototype.bind.call(a.error||a.log||function(){},a);t||s("("+r+") -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs."),n||s("("+r+") -> ERROR: TweenLite or TweenMax could not be found. Please make sure GSAP is loaded before ScrollMagic or use an asynchronous loader like requirejs."),t.Scene.addOption("tweenChanges",!1,(function(t){return!!t})),t.Scene.extend((function(){var t,e=this,a=function(){e._log&&(Array.prototype.splice.call(arguments,1,0,"("+r+")","->"),e._log.apply(this,arguments))};e.on("progress.plugin_gsap",(function(){s()})),e.on("destroy.plugin_gsap",(function(t){e.removeTween(t.reset)}));var s=function(){if(t){var n=e.progress(),i=e.state();t.repeat&&-1===t.repeat()?"DURING"===i&&t.paused()?t.play():"DURING"===i||t.paused()||t.pause():n!=t.progress()&&(0===e.duration()?n>0?t.play():t.reverse():e.tweenChanges()&&t.tweenTo?t.tweenTo(n*t.duration()):t.progress(n).pause())}};e.setTween=function(r,l,c){var u;if(arguments.length>1){var d="number"==typeof arguments[1];o?(d||(c=l),c.hasOwnProperty("duration")||(c.duration=d?l:1)):arguments.length<3&&(c=l,l=1),r=o?n.to(r,c):n.to(r,l,c)}try{(u=i&&!o?new i({smoothChildTiming:!0}).add(r):r).pause()}catch(t){return a(1,"ERROR calling method 'setTween()': Supplied argument is not a valid TweenObject"),e}if(t&&e.removeTween(),t=u,r.repeat&&-1===r.repeat()&&(t.repeat(-1),t.yoyo(r.yoyo())),e.tweenChanges()&&!t.tweenTo&&a(2,"WARNING: tweenChanges will only work if the TimelineMax object is available for ScrollMagic."),t&&e.controller()&&e.triggerElement()&&e.loglevel()>=2){var h=n.getTweensOf(e.triggerElement()),p=e.controller().info("vertical");h.forEach((function(t,e){var n=t.vars.css||t.vars;if(p?void 0!==n.top||void 0!==n.bottom:void 0!==n.left||void 0!==n.right)return a(2,"WARNING: Tweening the position of the trigger element affects the scene timing and should be avoided!"),!1}))}if(parseFloat(TweenLite.version)>=1.14)for(var f,m,v=o?"onInterrupt":"onOverwrite",g=t.getChildren?t.getChildren(!0,!0,!1):[t],y=function(){a(2,"WARNING: tween was overwritten by another. To learn how to avoid this issue see here: https://github.com/janpaepke/ScrollMagic/wiki/WARNING:-tween-was-overwritten-by-another")},_=0;_ ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs.");var r="0.85em",o="9999",a=t._util,s=0;t.Scene.extend((function(){var t,e=this;e.addIndicators=function(n){if(!t){var i={name:"",indent:0,parent:void 0,colorStart:"green",colorEnd:"red",colorTrigger:"blue"};n=a.extend({},i,n),s++,t=new l(e,n),e.on("add.plugin_addIndicators",t.add),e.on("remove.plugin_addIndicators",t.remove),e.on("destroy.plugin_addIndicators",e.removeIndicators),e.controller()&&t.add()}return e},e.removeIndicators=function(){return t&&(t.remove(),this.off("*.plugin_addIndicators"),t=void 0),e}})),t.Controller.addOption("addIndicators",!1),t.Controller.extend((function(){var n=this,i=n.info(),r=i.container,o=i.isDocument,s=i.vertical,l={groups:[]};n._indicators&&function(){n._log&&(Array.prototype.splice.call(arguments,1,0,"("+e+")","->"),n._log.apply(this,arguments))}(2,"WARNING: Scene already has a property '_indicators', which will be overwritten by plugin."),this._indicators=l;var c=function(){l.updateBoundsPositions()},u=function(){l.updateTriggerGroupPositions()};return r.addEventListener("resize",u),o||(window.addEventListener("resize",u),window.addEventListener("scroll",u)),r.addEventListener("resize",c),r.addEventListener("scroll",c),this._indicators.updateBoundsPositions=function(t){for(var e,n,i,o=t?[a.extend({},t.triggerGroup,{members:[t]})]:l.groups,c=o.length,u={},d=s?"left":"top",h=s?"width":"height",p=s?a.get.scrollLeft(r)+a.get.width(r)-15:a.get.scrollTop(r)+a.get.height(r)-15;c--;)for(e=(i=o[c]).members.length,n=a.get[h](i.element.firstChild);e--;)u[d]=p-n,a.css(i.members[e].bounds,u)},this._indicators.updateTriggerGroupPositions=function(t){for(var e,i,c,u,d=t?[t]:l.groups,h=d.length,p=o?document.body:r,f=o?{top:0,left:0}:a.get.offset(p,!0),m=s?a.get.width(r)-15:a.get.height(r)-15,v=s?"width":"height",g=s?"Y":"X";h--;)i=(e=d[h]).element,u=(c=e.triggerHook*n.info("size"))>a.get[v](i.firstChild.firstChild)?"translate"+g+"(-100%)":"",a.css(i,{top:f.top+(s?c:m-e.members[0].options.indent),left:f.left+(s?m-e.members[0].options.indent:c)}),a.css(i.firstChild.firstChild,{"-ms-transform":u,"-webkit-transform":u,transform:u})},this._indicators.updateTriggerGroupLabel=function(t){var e="trigger"+(t.members.length>1?"":" "+t.members[0].options.name),n=t.element.firstChild.firstChild;n.textContent!==e&&(n.textContent=e,s&&l.updateBoundsPositions())},this.addScene=function(e){this._options.addIndicators&&e instanceof t.Scene&&e.controller()===n&&e.addIndicators(),this.$super.addScene.apply(this,arguments)},this.destroy=function(){r.removeEventListener("resize",u),o||(window.removeEventListener("resize",u),window.removeEventListener("scroll",u)),r.removeEventListener("resize",c),r.removeEventListener("scroll",c),this.$super.destroy.apply(this,arguments)},n}));var l=function(t,n){var i,r,o=this,l=c.bounds(),u=c.start(n.colorStart),d=c.end(n.colorEnd),h=n.parent&&a.get.elements(n.parent)[0],p=function(){t._log&&(Array.prototype.splice.call(arguments,1,0,"("+e+")","->"),t._log.apply(this,arguments))};n.name=n.name||s,u.firstChild.textContent+=" "+n.name,d.textContent+=" "+n.name,l.appendChild(u),l.appendChild(d),o.options=n,o.bounds=l,o.triggerGroup=void 0,this.add=function(){r=t.controller(),i=r.info("vertical");var e=r.info("isDocument");h||(h=e?document.body:r.info("container")),e||"static"!==a.css(h,"position")||a.css(h,{position:"relative"}),t.on("change.plugin_addIndicators",m),t.on("shift.plugin_addIndicators",f),_(),g(),setTimeout((function(){r._indicators.updateBoundsPositions(o)}),0),p(3,"added indicators")},this.remove=function(){if(o.triggerGroup){if(t.off("change.plugin_addIndicators",m),t.off("shift.plugin_addIndicators",f),o.triggerGroup.members.length>1){var e=o.triggerGroup;e.members.splice(e.members.indexOf(o),1),r._indicators.updateTriggerGroupLabel(e),r._indicators.updateTriggerGroupPositions(e),o.triggerGroup=void 0}else y();v(),p(3,"removed indicators")}};var f=function(){g()},m=function(t){"triggerHook"===t.what&&_()},v=function(){l.parentNode.removeChild(l)},g=function(){var e;l.parentNode!==h&&(e=r.info("vertical"),a.css(u.firstChild,{"border-bottom-width":e?1:0,"border-right-width":e?0:1,bottom:e?-1:n.indent,right:e?n.indent:-1,padding:e?"0 8px":"2px 4px"}),a.css(d,{"border-top-width":e?1:0,"border-left-width":e?0:1,top:e?"100%":"",right:e?n.indent:"",bottom:e?"":n.indent,left:e?"":"100%",padding:e?"0 8px":"2px 4px"}),h.appendChild(l));var o={};o[i?"top":"left"]=t.triggerPosition(),o[i?"height":"width"]=t.duration(),a.css(l,o),a.css(d,{display:t.duration()>0?"":"none"})},y=function(){r._indicators.groups.splice(r._indicators.groups.indexOf(o.triggerGroup),1),o.triggerGroup.element.parentNode.removeChild(o.triggerGroup.element),o.triggerGroup=void 0},_=function(){var e=t.triggerHook(),s=1e-4;if(!(o.triggerGroup&&Math.abs(o.triggerGroup.triggerHook-e)=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n.setImmediate="function"==typeof e?e:function(t){var e=l++,i=!(arguments.length<2)&&a.call(arguments,1);return s[e]=!0,r((function(){s[e]&&(i?t.apply(null,i):t.call(null),n.clearImmediate(e))})),e},n.clearImmediate="function"==typeof i?i:function(t){delete s[t]}}).call(this)}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":5,timers:9}],10:[function(t,e,n){ /*! * viewport-units-buggyfill v0.6.2 * @web: https://github.com/rodneyrehm/viewport-units-buggyfill/ * @author: Rodney Rehm - http://rodneyrehm.de/en/ */ !function(){!function(t,i){"use strict";"function"==typeof define&&define.amd?define([],i):"object"==typeof n?e.exports=i():t.viewportUnitsBuggyfill=i()}(this,(function(){"use strict";var t,e,n,i,r,o=!1,a=window.navigator.userAgent,s=/([+-]?[0-9.]+)(vh|vw|vmin|vmax)/g,l=/(https?:)?\/\//,c=[].forEach,u=/MSIE [0-9]\./i.test(a),d=/MSIE [0-8]\./i.test(a),h=a.indexOf("Opera Mini")>-1,p=/(iPhone|iPod|iPad).+AppleWebKit/i.test(a)&&((r=a.match(/OS (\d)/))&&r.length>1&&parseInt(r[1])<10),f=a.indexOf(" Android ")>-1&&a.indexOf("Version/")>-1&&parseFloat((a.match("Android ([0-9.]+)")||[])[1])<=4.4;u||(u=!!navigator.userAgent.match(/MSIE 10\.|Trident.*rv[ :]*1[01]\.| Edge\/1\d\./));try{new m("test")}catch(t){var m=function(t,e){var n;return e=e||{bubbles:!1,cancelable:!1,detail:void 0},(n=document.createEvent("CustomEvent")).initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n};m.prototype=window.Event.prototype,window.CustomEvent=m}function v(){o&&(g(),setTimeout((function(){i.textContent=_(),i.parentNode.appendChild(i),window.dispatchEvent(new m("viewport-units-buggyfill-style"))}),1))}function g(){return n=[],c.call(document.styleSheets,(function(t){var e=function(t){try{if(!t.cssRules)return}catch(t){if("SecurityError"!==t.name)throw t;return}for(var e=[],n=0;n=200&&a<300,this.status=a||0,this.statusText=s||"",this.headers=new F(r),this.body=t,f(t)?this.bodyText=t:(n=t,"undefined"!=typeof Blob&&n instanceof Blob&&(this.bodyBlob=t,function(t){return 0===t.type.indexOf("text")||-1!==t.type.indexOf("json")}(t)&&(this.bodyText=function(t){return new o((function(e){var n=new FileReader;n.readAsText(t),n.onload=function(){e(n.result)}}))}(t))))}var e=t.prototype;return e.blob=function(){return y(this.bodyBlob)},e.text=function(){return y(this.bodyText)},e.json=function(){return y(this.text(),(function(t){return JSON.parse(t)}))},t}();Object.defineProperty(B.prototype,"data",{get:function(){return this.body},set:function(t){this.body=t}});var j=function(){function t(t){var e;this.body=null,this.params={},w(this,t,{method:(e=t.method||"GET",e?e.toUpperCase():"")}),this.headers instanceof F||(this.headers=new F(this.headers))}var e=t.prototype;return e.getUrl=function(){return M(this)},e.getBody=function(){return this.body},e.respondWith=function(t,e){return new B(t,w(e||{},{url:this.getUrl()}))},t}(),z={"Content-Type":"application/json;charset=utf-8"};function Y(t){var e=this||{},n=function(t){var e=[L],n=[];function i(i){for(;e.length;){var r=e.pop();if(m(r)){var a=function(){var e=void 0,a=void 0;if(v(e=r.call(t,i,(function(t){return a=t}))||a))return{v:new o((function(i,r){n.forEach((function(n){e=y(e,(function(e){return n.call(t,e)||e}),r)})),y(e,i,r)}),t)};m(e)&&n.unshift(e)}();if("object"==typeof a)return a.v}}}return v(t)||(t=null),i.use=function(t){e.push(t)},i}(e.$vm);return function(t){c.call(arguments,1).forEach((function(e){for(var n in e)void 0===t[n]&&(t[n]=e[n])}))}(t||{},e.$options,Y.options),Y.interceptors.forEach((function(t){f(t)&&(t=Y.interceptor[t]),m(t)&&n.use(t)})),n(new j(t)).then((function(t){return t.ok?t:o.reject(t)}),(function(t){return Error,o.reject(t)}))}function H(t,e,n,i){var r=this||{},o={};return b(n=w({},H.actions,n),(function(n,a){n=x({url:t,params:w({},e)},i,n),o[a]=function(){return(r.$http||Y)(U(n,arguments))}})),o}function U(t,e){var n,i=w({},t),r={};switch(e.length){case 2:r=e[0],n=e[1];break;case 1:/^(POST|PUT|PATCH)$/i.test(i.method)?n=e[0]:r=e[0];break;case 0:break;default:throw"Expected up to 2 arguments [params, body], got "+e.length+" arguments"}return i.body=n,i.params=w({},i.params,r),i}function V(t){V.installed||(!function(t){var e=t.config,n=t.nextTick;s=n,e.debug||!e.silent}(t),t.url=M,t.http=Y,t.resource=H,t.Promise=o,Object.defineProperties(t.prototype,{$url:{get:function(){return _(t.url,this,this.$options.url)}},$http:{get:function(){return _(t.http,this,this.$options.http)}},$resource:{get:function(){return t.resource.bind(this)}},$promise:{get:function(){var e=this;return function(n){return new t.Promise(n,e)}}}}))}Y.options={},Y.headers={put:z,post:z,patch:z,delete:z,common:{Accept:"application/json, text/plain, */*"},custom:{}},Y.interceptor={before:function(t){m(t.before)&&t.before.call(this,t)},method:function(t){t.emulateHTTP&&/^(PUT|PATCH|DELETE)$/i.test(t.method)&&(t.headers.set("X-HTTP-Method-Override",t.method),t.method="POST")},jsonp:function(t){"JSONP"==t.method&&(t.client=N)},json:function(t){var e=t.headers.get("Content-Type")||"";return v(t.body)&&0===e.indexOf("application/json")&&(t.body=JSON.stringify(t.body)),function(t){return t.bodyText?y(t.text(),(function(e){var n,i,r;if(0===(t.headers.get("Content-Type")||"").indexOf("application/json")||(i=(n=e).match(/^\s*(\[|\{)/),r={"[":/]\s*$/,"{":/}\s*$/},i&&r[i[1]].test(n)))try{t.body=JSON.parse(e)}catch(e){t.body=null}else t.body=e;return t})):t}},form:function(t){var e;e=t.body,"undefined"!=typeof FormData&&e instanceof FormData?t.headers.delete("Content-Type"):v(t.body)&&t.emulateJSON&&(t.body=M.params(t.body),t.headers.set("Content-Type","application/x-www-form-urlencoded"))},header:function(t){b(w({},Y.headers.common,t.crossOrigin?{}:Y.headers.custom,Y.headers[h(t.method)]),(function(e,n){t.headers.has(n)||t.headers.set(n,e)}))},cors:function(t){if(u){var e=M.parse(location.href),n=M.parse(t.getUrl());n.protocol===e.protocol&&n.host===e.host||(t.crossOrigin=!0,t.emulateHTTP=!1,P||(t.client=O))}}},Y.interceptors=["before","method","jsonp","json","form","header","cors"],["get","delete","head","jsonp"].forEach((function(t){Y[t]=function(e,n){return this(w(n||{},{url:e,method:t}))}})),["post","put","patch"].forEach((function(t){Y[t]=function(e,n,i){return this(w(i||{},{url:e,method:t,body:n}))}})),H.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},delete:{method:"DELETE"}},"undefined"!=typeof window&&window.Vue&&!window.Vue.resource&&window.Vue.use(V),e.exports=V},{got:1}],12:[function(t,e,n){(function(t){(function(){ /*! * vue-router v3.5.2 * (c) 2021 Evan You * @license MIT */ "use strict";function n(t,e){if(!t)throw new Error("[vue-router] "+e)}function i(e,n){t.env.NODE_ENV}function r(t,e){for(var n in e)t[n]=e[n];return t}var o=/[!'()*]/g,a=function(t){return"%"+t.charCodeAt(0).toString(16)},s=/%2C/g,l=function(t){return encodeURIComponent(t).replace(o,a).replace(s,",")};function c(e){try{return decodeURIComponent(e)}catch(e){"production"!==t.env.NODE_ENV&&i()}return e}var u=function(t){return null==t||"object"==typeof t?t:String(t)};function d(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),i=c(n.shift()),r=n.length>0?c(n.join("=")):null;void 0===e[i]?e[i]=r:Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]})),e):e}function h(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return l(e);if(Array.isArray(n)){var i=[];return n.forEach((function(t){void 0!==t&&(null===t?i.push(l(e)):i.push(l(e)+"="+l(t)))})),i.join("&")}return l(e)+"="+l(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var p=/\/?$/;function f(t,e,n,i){var r=i&&i.options.stringifyQuery,o=e.query||{};try{o=m(o)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:y(e,r),matched:t?g(t):[]};return n&&(a.redirectedFrom=y(n,r)),Object.freeze(a)}function m(t){if(Array.isArray(t))return t.map(m);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=m(t[n]);return e}return t}var v=f(null,{path:"/"});function g(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function y(t,e){var n=t.path,i=t.query;void 0===i&&(i={});var r=t.hash;return void 0===r&&(r=""),(n||"/")+(e||h)(i)+r}function _(t,e,n){return e===v?t===e:!!e&&(t.path&&e.path?t.path.replace(p,"")===e.path.replace(p,"")&&(n||t.hash===e.hash&&b(t.query,e.query)):!(!t.name||!e.name)&&(t.name===e.name&&(n||t.hash===e.hash&&b(t.query,e.query)&&b(t.params,e.params))))}function b(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),i=Object.keys(e).sort();return n.length===i.length&&n.every((function(n,r){var o=t[n];if(i[r]!==n)return!1;var a=e[n];return null==o||null==a?o===a:"object"==typeof o&&"object"==typeof a?b(o,a):String(o)===String(a)}))}function w(t){for(var e=0;e=0&&(e=t.slice(i),t=t.slice(0,i));var r=t.indexOf("?");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{path:t,query:n,hash:e}}(s.path||""),f=n&&n.path||"/",m=p.path?C(p.path,f,o||s.append):f,v=function(e,n,r){void 0===n&&(n={});var o,a=r||d;try{o=a(e||"")}catch(e){"production"!==t.env.NODE_ENV&&i(0,e.message),o={}}for(var s in n){var l=n[s];o[s]=Array.isArray(l)?l.map(u):u(l)}return o}(p.query,s.query,a&&a.options.parseQuery),g=s.hash||p.hash;return g&&"#"!==g.charAt(0)&&(g="#"+g),{_normalized:!0,path:m,query:v,hash:g}}var V,W,G,q,X=function(){},K={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(e){var n=this,o=this.$router,a=this.$route,s=o.resolve(this.to,a,this.append),l=s.location,c=s.route,u=s.href,d={},h=o.options.linkActiveClass,m=o.options.linkExactActiveClass,v=null==h?"router-link-active":h,g=null==m?"router-link-exact-active":m,y=null==this.activeClass?v:this.activeClass,b=null==this.exactActiveClass?g:this.exactActiveClass,w=c.redirectedFrom?f(null,U(c.redirectedFrom),null,o):c;d[b]=_(a,w,this.exactPath),d[y]=this.exact||this.exactPath?d[b]:function(t,e){return 0===t.path.replace(p,"/").indexOf(e.path.replace(p,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(a,w);var x=d[b]?this.ariaCurrentValue:null,S=function(t){J(t)&&(n.replace?o.replace(l,X):o.push(l,X))},C={click:J};Array.isArray(this.event)?this.event.forEach((function(t){C[t]=S})):C[this.event]=S;var k={class:d},T=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:u,route:c,navigate:S,isActive:d[y],isExactActive:d[b]});if(T){if("production"===t.env.NODE_ENV||this.custom||(!V&&i(),V=!0),1===T.length)return T[0];if(T.length>1||!T.length)return"production"!==t.env.NODE_ENV&&i(0,this.to),0===T.length?e():e("span",{},T)}if("production"!==t.env.NODE_ENV&&("tag"in this.$options.propsData&&!W&&(i(),W=!0),"event"in this.$options.propsData&&!G&&(i(),G=!0)),"a"===this.tag)k.on=C,k.attrs={href:u,"aria-current":x};else{var E=Z(this.$slots.default);if(E){E.isStatic=!1;var A=E.data=r({},E.data);for(var M in A.on=A.on||{},A.on){var I=A.on[M];M in C&&(A.on[M]=Array.isArray(I)?I:[I])}for(var O in C)O in A.on?A.on[O].push(C[O]):A.on[O]=S;var P=E.data.attrs=r({},E.data.attrs);P.href=u,P["aria-current"]=x}else k.on=C}return e(this.tag,k,this.$slots.default)}};function J(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function Z(t){if(t)for(var e,n=0;n0){h.map((function(t){return"- "+t})).join("\n");i()}}return{pathList:s,pathMap:l,nameMap:c}}function nt(e,r,o,a,s,l){var c=a.path,u=a.name;"production"!==t.env.NODE_ENV&&(n(null!=c,'"path" is required in a route configuration.'),n("string"!=typeof a.component,'route config "component" for path: '+String(c||u)+" cannot be a string id. Use an actual component instead."),i(/[^\u0000-\u007F]+/.test(c)));var d=a.pathToRegexpOptions||{},h=function(t,e,n){n||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return k(e.path+"/"+t)}(c,s,d.strict);"boolean"==typeof a.caseSensitive&&(d.sensitive=a.caseSensitive);var p={path:h,regex:it(h,d),components:a.components||{default:a.component},alias:a.alias?"string"==typeof a.alias?[a.alias]:a.alias:[],instances:{},enteredCbs:{},name:u,parent:s,matchAs:l,redirect:a.redirect,beforeEnter:a.beforeEnter,meta:a.meta||{},props:null==a.props?{}:a.components?a.props:{default:a.props}};if(a.children&&("production"!==t.env.NODE_ENV&&a.name&&!a.redirect&&a.children.some((function(t){return/^\/?$/.test(t.path)}))&&i(0,(a.name,a.name)),a.children.forEach((function(t){var n=l?k(l+"/"+t.path):void 0;nt(e,r,o,t,p,n)}))),r[p.path]||(e.push(p.path),r[p.path]=p),void 0!==a.alias)for(var f=Array.isArray(a.alias)?a.alias:[a.alias],m=0;m-1&&(c.params[f]=n.params[f]);return c.path=H(h.path,c.params),d(h,c,o)}if(c.path){c.params={};for(var m=0;m=t.length?n():t[r]?e(t[r],(function(){i(r+1)})):i(r+1)};i(0)}var Tt={redirected:2,aborted:4,cancelled:8,duplicated:16};function Et(t,e){return Mt(t,e,Tt.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return It.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function At(t,e){return Mt(t,e,Tt.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function Mt(t,e,n,i){var r=new Error(i);return r._isRouter=!0,r.from=t,r.to=e,r.type=n,r}var It=["params","query","hash"];function Ot(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Pt(t,e){return Ot(t)&&t._isRouter&&(null==e||t.type===e)}function Nt(e){return function(n,r,o){var a=!1,s=0,l=null;Dt(e,(function(e,n,r,c){if("function"==typeof e&&void 0===e.cid){a=!0,s++;var u,d=Ft((function(t){var n;((n=t).__esModule||Lt&&"Module"===n[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:q.extend(t),r.components[c]=t,--s<=0&&o()})),h=Ft((function(e){var n="Failed to resolve async component "+c+": "+e;"production"!==t.env.NODE_ENV&&i(),l||(l=Ot(e)?e:new Error(n),o(l))}));try{u=e(d,h)}catch(t){h(t)}if(u)if("function"==typeof u.then)u.then(d,h);else{var p=u.component;p&&"function"==typeof p.then&&p.then(d,h)}}})),a||o()}}function Dt(t,e){return Rt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Rt(t){return Array.prototype.concat.apply([],t)}var Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Ft(t){var e=!1;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(!e)return e=!0,t.apply(this,n)}}var $t=function(t,e){this.router=t,this.base=function(t){if(!t)if(tt){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Bt(t,e,n,i){var r=Dt(t,(function(t,i,r,o){var a=function(t,e){"function"!=typeof t&&(t=q.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,i,r,o)})):n(a,i,r,o)}));return Rt(i?r.reverse():r)}function jt(t,e){if(e)return function(){return t.apply(e,arguments)}}$t.prototype.listen=function(t){this.cb=t},$t.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},$t.prototype.onError=function(t){this.errorCbs.push(t)},$t.prototype.transitionTo=function(t,e,n){var i,r=this;try{i=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var o=this.current;this.confirmTransition(i,(function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.router.afterHooks.forEach((function(t){t&&t(i,o)})),r.ready||(r.ready=!0,r.readyCbs.forEach((function(t){t(i)})))}),(function(t){n&&n(t),t&&!r.ready&&(Pt(t,Tt.redirected)&&o===v||(r.ready=!0,r.readyErrorCbs.forEach((function(e){e(t)}))))}))},$t.prototype.confirmTransition=function(t,e,n){var r=this,o=this.current;this.pending=t;var a,s,l=function(t){!Pt(t)&&Ot(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):i()),n&&n(t)},c=t.matched.length-1,u=o.matched.length-1;if(_(t,o)&&c===u&&t.matched[c]===o.matched[u])return this.ensureURL(),l(((s=Mt(a=o,t,Tt.duplicated,'Avoided redundant navigation to current location: "'+a.fullPath+'".')).name="NavigationDuplicated",s));var d=function(t,e){var n,i=Math.max(t.length,e.length);for(n=0;n0)){var e=this.router,n=e.options.scrollBehavior,i=xt&&n;i&&this.listeners.push(ht());var r=function(){var n=t.current,r=Yt(t.base);t.current===v&&r===t._startLocation||t.transitionTo(r,(function(t){i&&pt(e,t,n,!0)}))};window.addEventListener("popstate",r),this.listeners.push((function(){window.removeEventListener("popstate",r)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,(function(t){St(k(i.base+t.fullPath)),pt(i.router,t,r,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,(function(t){Ct(k(i.base+t.fullPath)),pt(i.router,t,r,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(Yt(this.base)!==this.current.fullPath){var e=k(this.base+this.current.fullPath);t?St(e):Ct(e)}},e.prototype.getCurrentLocation=function(){return Yt(this.base)},e}($t);function Yt(t){var e=window.location.pathname,n=e.toLowerCase(),i=t.toLowerCase();return!t||n!==i&&0!==n.indexOf(k(i+"/"))||(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Ht=function(t){function e(e,n,i){t.call(this,e,n),i&&function(t){var e=Yt(t);if(!/^\/#/.test(e))return window.location.replace(k(t+"/#"+e)),!0}(this.base)||Ut()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=xt&&e;n&&this.listeners.push(ht());var i=function(){var e=t.current;Ut()&&t.transitionTo(Vt(),(function(i){n&&pt(t.router,i,e,!0),xt||qt(i.fullPath)}))},r=xt?"popstate":"hashchange";window.addEventListener(r,i),this.listeners.push((function(){window.removeEventListener(r,i)}))}},e.prototype.push=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,(function(t){Gt(t.fullPath),pt(i.router,t,r,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,(function(t){qt(t.fullPath),pt(i.router,t,r,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Vt()!==e&&(t?Gt(e):qt(e))},e.prototype.getCurrentLocation=function(){return Vt()},e}($t);function Ut(){var t=Vt();return"/"===t.charAt(0)||(qt("/"+t),!1)}function Vt(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Wt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Gt(t){xt?St(Wt(t)):window.location.hash=t}function qt(t){xt?Ct(Wt(t)):window.location.replace(Wt(t))}var Xt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var i=this;this.transitionTo(t,(function(t){i.stack=i.stack.slice(0,i.index+1).concat(t),i.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var i=this;this.transitionTo(t,(function(t){i.stack=i.stack.slice(0,i.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,(function(){var t=e.current;e.index=n,e.updateRoute(i),e.router.afterHooks.forEach((function(e){e&&e(i,t)}))}),(function(t){Pt(t,Tt.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}($t),Kt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=rt(e.routes||[],this);var i=e.mode||"hash";switch(this.fallback="history"===i&&!xt&&!1!==e.fallback,this.fallback&&(i="hash"),tt||(i="abstract"),this.mode=i,i){case"history":this.history=new zt(this,e.base);break;case"hash":this.history=new Ht(this,e.base,this.fallback);break;case"abstract":this.history=new Xt(this,e.base);break;default:"production"!==t.env.NODE_ENV&&n(!1,"invalid mode: "+i)}},Jt={currentRoute:{configurable:!0}};function Zt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Kt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Jt.currentRoute.get=function(){return this.history&&this.history.current},Kt.prototype.init=function(e){var i=this;if("production"!==t.env.NODE_ENV&&n(Q.installed,"not installed. Make sure to call `Vue.use(VueRouter)` before creating root instance."),this.apps.push(e),e.$once("hook:destroyed",(function(){var t=i.apps.indexOf(e);t>-1&&i.apps.splice(t,1),i.app===e&&(i.app=i.apps[0]||null),i.app||i.history.teardown()})),!this.app){this.app=e;var r=this.history;if(r instanceof zt||r instanceof Ht){var o=function(t){r.setupListeners(),function(t){var e=r.current,n=i.options.scrollBehavior;xt&&n&&"fullPath"in t&&pt(i,t,e,!1)}(t)};r.transitionTo(r.getCurrentLocation(),o,o)}r.listen((function(t){i.apps.forEach((function(e){e._route=t}))}))}},Kt.prototype.beforeEach=function(t){return Zt(this.beforeHooks,t)},Kt.prototype.beforeResolve=function(t){return Zt(this.resolveHooks,t)},Kt.prototype.afterEach=function(t){return Zt(this.afterHooks,t)},Kt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Kt.prototype.onError=function(t){this.history.onError(t)},Kt.prototype.push=function(t,e,n){var i=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){i.history.push(t,e,n)}));this.history.push(t,e,n)},Kt.prototype.replace=function(t,e,n){var i=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){i.history.replace(t,e,n)}));this.history.replace(t,e,n)},Kt.prototype.go=function(t){this.history.go(t)},Kt.prototype.back=function(){this.go(-1)},Kt.prototype.forward=function(){this.go(1)},Kt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Kt.prototype.resolve=function(t,e,n){var i=U(t,e=e||this.history.current,n,this),r=this.match(i,e),o=r.redirectedFrom||r.fullPath;return{location:i,route:r,href:function(t,e,n){var i="hash"===n?"#"+e:e;return t?k(t+"/"+i):i}(this.history.base,o,this.mode),normalizedTo:i,resolved:r}},Kt.prototype.getRoutes=function(){return this.matcher.getRoutes()},Kt.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Kt.prototype.addRoutes=function(e){"production"!==t.env.NODE_ENV&&i(),this.matcher.addRoutes(e),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Kt.prototype,Jt),Kt.install=Q,Kt.version="3.5.2",Kt.isNavigationFailure=Pt,Kt.NavigationFailureType=Tt,Kt.START_LOCATION=v,tt&&window.Vue&&window.Vue.use(Kt),e.exports=Kt}).call(this)}).call(this,t("_process"))},{_process:5}],13:[function(t,e,n){(function(t,i){(function(){ /*! * Vue.js v2.6.14 * (c) 2014-2021 Evan You * Released under the MIT License. */ !function(t,i){"object"==typeof n&&void 0!==e?e.exports=i():"function"==typeof define&&define.amd?define(i):(t=t||self).Vue=i()}(this,(function(){"use strict";var e=Object.freeze({});function n(t){return null==t}function r(t){return null!=t}function o(t){return!0===t}function a(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function s(t){return null!==t&&"object"==typeof t}var l=Object.prototype.toString;function c(t){return l.call(t).slice(8,-1)}function u(t){return"[object Object]"===l.call(t)}function d(t){return"[object RegExp]"===l.call(t)}function h(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return r(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function f(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function m(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function w(t,e){return b.call(t,e)}function x(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var S=/-(\w)/g,C=x((function(t){return t.replace(S,(function(t,e){return e?e.toUpperCase():""}))})),k=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),T=/\B([A-Z])/g,E=x((function(t){return t.replace(T,"-$1").toLowerCase()}));var A=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function M(t,e){e=e||0;for(var n=t.length-e,i=new Array(n);n--;)i[n]=t[n+e];return i}function I(t,e){for(var n in e)t[n]=e[n];return t}function O(t){for(var e={},n=0;n0,tt=J&&J.indexOf("edge/")>0,et=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===K),nt=(J&&/chrome\/\d+/.test(J),J&&/phantomjs/.test(J),J&&J.match(/firefox\/(\d+)/)),it={}.watch,rt=!1;if(q)try{var ot={};Object.defineProperty(ot,"passive",{get:function(){rt=!0}}),window.addEventListener("test-passive",null,ot)}catch(t){}var at=function(){return void 0===W&&(W=!q&&!X&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),W},st=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function lt(t){return"function"==typeof t&&/native code/.test(t.toString())}var ct,ut="undefined"!=typeof Symbol&<(Symbol)&&"undefined"!=typeof Reflect&<(Reflect.ownKeys);ct="undefined"!=typeof Set&<(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var dt,ht,pt,ft=P,mt="undefined"!=typeof console,vt=/(?:^|[-_])(\w)/g;dt=function(t,e){var n=e?ft(e):"";z.warnHandler?z.warnHandler.call(null,t,e,n):mt&&z.silent},ht=function(t,e){mt&&z.silent},pt=function(t,e){if(t.$root===t)return"";var n="function"==typeof t&&null!=t.cid?t.options:t._isVue?t.$options||t.constructor.options:t,i=n.name||n._componentTag,r=n.__file;if(!i&&r){var o=r.match(/([^/\\]+)\.vue$/);i=o&&o[1]}return(i?"<"+function(t){return t.replace(vt,(function(t){return t.toUpperCase()})).replace(/[-_]/g,"")}(i)+">":"")+(r&&!1!==e?" at "+r:"")};ft=function(t){if(t._isVue&&t.$parent){for(var e=[],n=0;t;){if(e.length>0){var i=e[e.length-1];if(i.constructor===t.constructor){n++,t=t.$parent;continue}n>0&&(e[e.length-1]=[i,n],n=0)}e.push(t),t=t.$parent}return"\n\nfound in\n\n"+e.map((function(t,e){return""+(0===e?"---\x3e ":function(t,e){for(var n="";e;)e%2==1&&(n+=t),e>1&&(t+=t),e>>=1;return n}(" ",5+2*e))+(Array.isArray(t)?pt(t[0])+"... ("+t[1]+" recursive calls)":pt(t))})).join("\n")}return"\n\n(found in "+pt(t)+")"};var gt=0,yt=function(){this.id=gt++,this.subs=[]};yt.prototype.addSub=function(t){this.subs.push(t)},yt.prototype.removeSub=function(t){_(this.subs,t)},yt.prototype.depend=function(){yt.target&&yt.target.addDep(this)},yt.prototype.notify=function(){var t=this.subs.slice();z.async||t.sort((function(t,e){return t.id-e.id}));for(var e=0,n=t.length;e-1)if(o&&!w(r,"default"))a=!1;else if(""===a||a===E(t)){var u=te(String,r.type);(u<0||l0&&($e((s=Be(s,(e||"")+"_"+i))[0])&&$e(c)&&(u[l]=kt(c.text+s[0].text),s.shift()),u.push.apply(u,s)):a(s)?$e(c)?u[l]=kt(c.text+s):""!==s&&u.push(kt(s)):$e(s)&&$e(c)?u[l]=kt(c.text+s.text):(o(t._isVList)&&r(s.tag)&&n(s.key)&&r(e)&&(s.key="__vlist"+e+"_"+i+"__"),u.push(s)));return u}function je(t,e){if(t){for(var n=Object.create(null),i=ut?Reflect.ownKeys(t):Object.keys(t),r=0;r0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&i&&i!==e&&s===i.$key&&!o&&!i.$hasNormal)return i;for(var l in r={},t)t[l]&&"$"!==l[0]&&(r[l]=Ve(n,l,t[l]))}else r={};for(var c in n)c in r||(r[c]=We(n,c));return t&&Object.isExtensible(t)&&(t._normalized=r),U(r,"$stable",a),U(r,"$key",s),U(r,"$hasNormal",o),r}function Ve(t,e,n){var i=function(){var t=arguments.length?n.apply(null,arguments):n({}),e=(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:Fe(t))&&t[0];return t&&(!e||1===t.length&&e.isComment&&!He(e))?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:i,enumerable:!0,configurable:!0}),i}function We(t,e){return function(){return t[e]}}function Ge(t,e){var n,i,o,a,l;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),i=0,o=t.length;i.",t),l=new xt(z.parsePlatformTagName(e),n,i,void 0,void 0,t)):l=n&&n.pre||!r(u=Gt(t.$options,"components",e))?new xt(e,n,i,void 0,void 0,t):fn(u,n,t,i,e)}else l=fn(e,n,t,i);return Array.isArray(l)?l:r(l)?(r(c)&&gn(l,c),r(n)&&function(t){s(t.style)&&Ie(t.style);s(t.class)&&Ie(t.class)}(n),l):Ct()}(t,e,n,i,l)}function gn(t,e,i){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,i=!0),r(t.children))for(var a=0,s=t.children.length;adocument.createEvent("Event").timeStamp&&(zn=function(){return Yn.now()})}function Hn(){var t,e;for(jn=zn(),$n=!0,Nn.sort((function(t,e){return t.id-e.id})),Bn=0;Bn100)){dt("You may have an infinite update loop "+(t.user?'in watcher with expression "'+t.expression+'"':"in a component render function."),t.vm);break}var n=Dn.slice(),i=Nn.slice();Bn=Nn.length=Dn.length=0,Rn={},Ln={},Fn=$n=!1,function(t){for(var e=0;eBn&&Nn[n].id>t.id;)n--;Nn.splice(n+1,0,t)}else Nn.push(t);if(!Fn){if(Fn=!0,!z.async)return void Hn();_e(Hn)}}}(this)},Vn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||s(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'+this.expression+'"';oe(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},Vn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Vn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},Vn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||_(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var Wn={enumerable:!0,configurable:!0,get:P,set:P};function Gn(t,e,n){Wn.get=function(){return this[e][n]},Wn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Wn)}function qn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},i=t._props={},r=t.$options._propKeys=[],o=!t.$parent;o||Ot(!1);var a=function(a){r.push(a);var s=qt(a,e,n,t),l=E(a);(y(l)||z.isReservedAttr(l))&&dt('"'+l+'" is a reserved attribute and cannot be used as component prop.',t),Dt(i,a,s,(function(){o||En||dt("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+a+'"',t)})),a in t||Gn(t,"_props",a)};for(var s in e)a(s);Ot(!0)}(t,e.props),e.methods&&function(t,e){var n=t.$options.props;for(var i in e)"function"!=typeof e[i]&&dt('Method "'+i+'" has type "'+typeof e[i]+'" in the component definition. Did you reference the function correctly?',t),n&&w(n,i)&&dt('Method "'+i+'" has already been defined as a prop.',t),i in t&&H(i)&&dt('Method "'+i+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.'),t[i]="function"!=typeof e[i]?P:A(e[i],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){bt();try{return t.call(e,e)}catch(t){return re(t,e,"data()"),{}}finally{wt()}}(e,t):e||{})||(e={},dt("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",t));var n=Object.keys(e),i=t.$options.props,r=t.$options.methods,o=n.length;for(;o--;){var a=n[o];r&&w(r,a)&&dt('Method "'+a+'" has already been defined as a data property.',t),i&&w(i,a)?dt('The data property "'+a+'" is already declared as a prop. Use prop default value instead.',t):H(a)||Gn(t,"_data",a)}Nt(e,!0)}(t):Nt(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),i=at();for(var r in e){var o=e[r],a="function"==typeof o?o:o.get;null==a&&dt('Getter is missing for computed property "'+r+'".',t),i||(n[r]=new Vn(t,a||P,P,Xn)),r in t?r in t.$data?dt('The computed property "'+r+'" is already defined in data.',t):t.$options.props&&r in t.$options.props?dt('The computed property "'+r+'" is already defined as a prop.',t):t.$options.methods&&r in t.$options.methods&&dt('The computed property "'+r+'" is already defined as a method.',t):Kn(t,r,o)}}(t,e.computed),e.watch&&e.watch!==it&&function(t,e){for(var n in e){var i=e[n];if(Array.isArray(i))for(var r=0;r-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!d(t)&&t.test(e)}function ai(t,e){var n=t.cache,i=t.keys,r=t._vnode;for(var o in n){var a=n[o];if(a){var s=a.name;s&&!e(s)&&si(n,o,i,r)}}}function si(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,_(n,e)}!function(t){t.prototype._init=function(t){var n,i,r=this;r._uid=ti++,z.performance&&ce&&(n="vue-perf-start:"+r._uid,i="vue-perf-end:"+r._uid,ce(n)),r._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),i=e._parentVnode;n.parent=e.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(r,t):r.$options=Wt(ei(r.constructor),t||{},r),be(r),r._self=r,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(r),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&kn(t,e)}(r),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,i=t.$vnode=n._parentVnode,r=i&&i.context;t.$slots=ze(n._renderChildren,r),t.$scopedSlots=e,t._c=function(e,n,i,r){return vn(t,e,n,i,r,!1)},t.$createElement=function(e,n,i,r){return vn(t,e,n,i,r,!0)};var o=i&&i.data;Dt(t,"$attrs",o&&o.attrs||e,(function(){!En&&dt("$attrs is readonly.",t)}),!0),Dt(t,"$listeners",n._parentListeners||e,(function(){!En&&dt("$listeners is readonly.",t)}),!0)}(r),Pn(r,"beforeCreate"),function(t){var e=je(t.$options.inject,t);e&&(Ot(!1),Object.keys(e).forEach((function(n){Dt(t,n,e[n],(function(){dt('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+n+'"',t)}))})),Ot(!0))}(r),qn(r),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(r),Pn(r,"created"),z.performance&&ce&&(r._name=pt(r,!1),ce(i),ue("vue "+r._name+" init",n,i)),r.$options.el&&r.$mount(r.$options.el)}}(ni),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};e.set=function(){dt("Avoid replacing instance root $data. Use nested data properties instead.",this)},n.set=function(){dt("$props is readonly.",this)},Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Rt,t.prototype.$delete=Lt,t.prototype.$watch=function(t,e,n){var i=this;if(u(e))return Qn(i,t,e,n);(n=n||{}).user=!0;var r=new Vn(i,t,e,n);if(n.immediate){var o='callback for immediate watcher "'+r.expression+'"';bt(),oe(e,i,[r.value],i,o),wt()}return function(){r.teardown()}}}(ni),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var i=this;if(Array.isArray(t))for(var r=0,o=t.length;r1?M(i):i;for(var r=M(arguments,1),o='event handler for "'+t+'"',a=0,s=i.length;aparseInt(this.max)&&si(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)si(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){ai(t,(function(t){return oi(e,t)}))})),this.$watch("exclude",(function(e){ai(t,(function(t){return!oi(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=wn(t),n=e&&e.componentOptions;if(n){var i=ri(n),r=this.include,o=this.exclude;if(r&&(!i||!oi(r,i))||o&&i&&oi(o,i))return e;var a=this.cache,s=this.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;a[l]?(e.componentInstance=a[l].componentInstance,_(s,l),s.push(l)):(this.vnodeToCache=e,this.keyToCache=l),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return z},set:function(){dt("Do not replace the Vue.config object, set individual fields instead.")}};Object.defineProperty(t,"config",e),t.util={warn:dt,extend:I,mergeOptions:Wt,defineReactive:Dt},t.set=Rt,t.delete=Lt,t.nextTick=_e,t.observable=function(t){return Nt(t),t},t.options=Object.create(null),B.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,I(t.options.components,ci),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=M(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Wt(this.options,t),this}}(t),ii(t),function(t){B.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&Ut(t),"component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(ni),Object.defineProperty(ni.prototype,"$isServer",{get:at}),Object.defineProperty(ni.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(ni,"FunctionalRenderContext",{value:cn}),ni.version="2.6.14";var ui=v("style,class"),di=v("input,textarea,option,select,progress"),hi=function(t,e,n){return"value"===n&&di(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},pi=v("contenteditable,draggable,spellcheck"),fi=v("events,caret,typing,plaintext-only"),mi=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),vi="http://www.w3.org/1999/xlink",gi=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},yi=function(t){return gi(t)?t.slice(6,t.length):""},_i=function(t){return null==t||!1===t};function bi(t){for(var e=t.data,n=t,i=t;r(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(e=wi(i.data,e));for(;r(n=n.parent);)n&&n.data&&(e=wi(e,n.data));return function(t,e){if(r(t)||r(e))return xi(t,Si(e));return""}(e.staticClass,e.class)}function wi(t,e){return{staticClass:xi(t.staticClass,e.staticClass),class:r(t.class)?[t.class,e.class]:e.class}}function xi(t,e){return t?e?t+" "+e:t:e||""}function Si(t){return Array.isArray(t)?function(t){for(var e,n="",i=0,o=t.length;i-1?qi(t,e,n):mi(e)?_i(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):pi(e)?t.setAttribute(e,function(t,e){return _i(e)||"false"===e?"false":"contenteditable"===t&&fi(e)?e:"true"}(e,n)):gi(e)?_i(n)?t.removeAttributeNS(vi,yi(e)):t.setAttributeNS(vi,e,n):qi(t,e,n)}function qi(t,e,n){if(_i(n))t.removeAttribute(e);else{if(Z&&!Q&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var Xi={create:Wi,update:Wi};function Ki(t,e){var i=e.elm,o=e.data,a=t.data;if(!(n(o.staticClass)&&n(o.class)&&(n(a)||n(a.staticClass)&&n(a.class)))){var s=bi(e),l=i._transitionClasses;r(l)&&(s=xi(s,Si(l))),s!==i._prevClass&&(i.setAttribute("class",s),i._prevClass=s)}}var Ji,Zi,Qi,tr,er,nr,ir,rr={create:Ki,update:Ki},or=/[\w).+\-_$\]]/;function ar(t){var e,n,i,r,o,a=!1,s=!1,l=!1,c=!1,u=0,d=0,h=0,p=0;for(i=0;i=0&&" "===(m=t.charAt(f));f--);m&&or.test(m)||(c=!0)}}else void 0===r?(p=i+1,r=t.slice(0,i).trim()):v();function v(){(o||(o=[])).push(t.slice(p,i).trim()),p=i+1}if(void 0===r?r=t.slice(0,i).trim():0!==p&&v(),o)for(i=0;i-1?{exp:t.slice(0,tr),key:'"'+t.slice(tr+1)+'"'}:{exp:t,key:null};Zi=t,tr=er=nr=0;for(;!Cr();)kr(Qi=Sr())?Er(Qi):91===Qi&&Tr(Qi);return{exp:t.slice(0,er),key:t.slice(er+1,nr)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function Sr(){return Zi.charCodeAt(++tr)}function Cr(){return tr>=Ji}function kr(t){return 34===t||39===t}function Tr(t){var e=1;for(er=tr;!Cr();)if(kr(t=Sr()))Er(t);else if(91===t&&e++,93===t&&e--,0===e){nr=tr;break}}function Er(t){for(var e=t;!Cr()&&(t=Sr())!==e;);}var Ar,Mr="__r";function Ir(t,e,n){var i=Ar;return function r(){var o=e.apply(null,arguments);null!==o&&Nr(t,r,n,i)}}var Or=de&&!(nt&&Number(nt[1])<=53);function Pr(t,e,n,i){if(Or){var r=jn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Ar.addEventListener(t,e,rt?{capture:n,passive:i}:n)}function Nr(t,e,n,i){(i||Ar).removeEventListener(t,e._wrapper||e,n)}function Dr(t,e){if(!n(t.data.on)||!n(e.data.on)){var i=e.data.on||{},o=t.data.on||{};Ar=e.elm,function(t){if(r(t.__r)){var e=Z?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}r(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(i),De(i,o,Pr,Nr,Ir,e.context),Ar=void 0}}var Rr,Lr={create:Dr,update:Dr};function Fr(t,e){if(!n(t.data.domProps)||!n(e.data.domProps)){var i,o,a=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};for(i in r(l.__ob__)&&(l=e.data.domProps=I({},l)),s)i in l||(a[i]="");for(i in l){if(o=l[i],"textContent"===i||"innerHTML"===i){if(e.children&&(e.children.length=0),o===s[i])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===i&&"PROGRESS"!==a.tagName){a._value=o;var c=n(o)?"":String(o);$r(a,c)&&(a.value=c)}else if("innerHTML"===i&&Ti(a.tagName)&&n(a.innerHTML)){(Rr=Rr||document.createElement("div")).innerHTML=""+o+"";for(var u=Rr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;u.firstChild;)a.appendChild(u.firstChild)}else if(o!==s[i])try{a[i]=o}catch(t){}}}}function $r(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,i=t._vModifiers;if(r(i)){if(i.number)return m(n)!==m(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Br={create:Fr,update:Fr},jr=x((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var i=t.split(n);i.length>1&&(e[i[0].trim()]=i[1].trim())}})),e}));function zr(t){var e=Yr(t.style);return t.staticStyle?I(t.staticStyle,e):e}function Yr(t){return Array.isArray(t)?O(t):"string"==typeof t?jr(t):t}var Hr,Ur=/^--/,Vr=/\s*!important$/,Wr=function(t,e,n){if(Ur.test(e))t.style.setProperty(e,n);else if(Vr.test(n))t.style.setProperty(E(e),n.replace(Vr,""),"important");else{var i=qr(e);if(Array.isArray(n))for(var r=0,o=n.length;r-1?e.split(Jr).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Qr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Jr).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";n.indexOf(i)>=0;)n=n.replace(i," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function to(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&I(e,eo(t.name||"v")),I(e,t),e}return"string"==typeof t?eo(t):void 0}}var eo=x((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),no=q&&!Q,io="transition",ro="animation",oo="transition",ao="transitionend",so="animation",lo="animationend";no&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(oo="WebkitTransition",ao="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(so="WebkitAnimation",lo="webkitAnimationEnd"));var co=q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function uo(t){co((function(){co(t)}))}function ho(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Zr(t,e))}function po(t,e){t._transitionClasses&&_(t._transitionClasses,e),Qr(t,e)}function fo(t,e,n){var i=vo(t,e),r=i.type,o=i.timeout,a=i.propCount;if(!r)return n();var s=r===io?ao:lo,l=0,c=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++l>=a&&c()};setTimeout((function(){l0&&(n=io,u=a,d=o.length):e===ro?c>0&&(n=ro,u=c,d=l.length):d=(n=(u=Math.max(a,c))>0?a>c?io:ro:null)?n===io?o.length:l.length:0,{type:n,timeout:u,propCount:d,hasTransform:n===io&&mo.test(i[oo+"Property"])}}function go(t,e){for(;t.length explicit "+e+" duration is not a valid number - got "+JSON.stringify(t)+".",n.context):isNaN(t)&&dt(" explicit "+e+" duration is NaN - the duration expression might be incorrect.",n.context)}function xo(t){return"number"==typeof t&&!isNaN(t)}function So(t){if(n(t))return!1;var e=t.fns;return r(e)?So(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Co(t,e){!0!==e.data.show&&_o(e)}var ko=function(t){var e,i,s={},l=t.modules,c=t.nodeOps;for(e=0;e - did you register the component correctly? For recursive components, make sure to provide the "name" option.',t.context),t.elm=t.ns?c.createElementNS(t.ns,v):c.createElement(v,t),w(t),y(t,f,e),r(d)&&b(t,e),g(n,t.elm,i),d&&d.pre&&p--):o(t.isComment)?(t.elm=c.createComment(t.text),g(n,t.elm,i)):(t.elm=c.createTextNode(t.text),g(n,t.elm,i))}}function m(t,e){r(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,_(t)?(b(t,e),w(t)):(Di(t),e.push(t))}function g(t,e,n){r(t)&&(r(n)?c.parentNode(n)===t&&c.insertBefore(t,e,n):c.appendChild(t,e))}function y(t,e,n){if(Array.isArray(e)){T(e);for(var i=0;ip?x(t,n(i[g+1])?null:i[g+1].elm,i,h,g,o):h>g&&C(e,d,p)}(d,m,v,i,u):r(v)?(T(v),r(t.text)&&c.setTextContent(d,""),x(d,null,v,0,v.length-1,i)):r(m)?C(m,0,m.length-1):r(t.text)&&c.setTextContent(d,""):t.text!==e.text&&c.setTextContent(d,e.text),r(p)&&r(h=p.hook)&&r(h=h.postpatch)&&h(t,e)}}}function M(t,e,n){if(o(n)&&r(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i, or missing . Bailing hydration and performing full client-side render.")}l=t,t=new xt(c.tagName(l).toLowerCase(),{},[],void 0,l)}var p=t.elm,m=c.parentNode(p);if(f(e,d,p._leaveCb?null:m,c.nextSibling(p)),r(e.parent))for(var v=e.parent,g=_(e);v;){for(var y=0;y-1,a.selected!==o&&(a.selected=o);else if(R(Io(a),i))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}else dt('