1 line
38 KiB
JavaScript
1 line
38 KiB
JavaScript
!function(e){var t="object"==typeof window&&window||"object"==typeof self&&self;"undefined"!=typeof exports?e(exports):t&&(t.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return t.hljs}))}(function(r){var i,h=[],l=Object.keys,v={},o={},t=/^(no-?highlight|plain|text)$/i,u=/\blang(?:uage)?-([\w-]+)\b/i,n=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,y="</span>",T={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};function w(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function c(e){return e.nodeName.toLowerCase()}function b(e,t){var i=e&&e.exec(t);return i&&0===i.index}function _(e){return t.test(e)}function f(e){var t,i={},n=Array.prototype.slice.call(arguments,1);for(t in e)i[t]=e[t];return n.forEach(function(e){for(t in e)i[t]=e[t]}),i}function p(e){var r=[];return function e(t,i){for(var n=t.firstChild;n;n=n.nextSibling)3===n.nodeType?i+=n.nodeValue.length:1===n.nodeType&&(r.push({event:"start",offset:i,node:n}),i=e(n,i),c(n).match(/br|hr|img|input/)||r.push({event:"stop",offset:i,node:n}));return i}(e,0),r}function s(e){if(i&&!e.langApiRestored){for(var t in e.langApiRestored=!0,i)e[t]&&(e[i[t]]=e[t]);(e.contains||[]).concat(e.variants||[]).forEach(s)}}function P(a){function u(e){return e&&e.source||e}function o(e,t){return new RegExp(u(e),"m"+(a.case_insensitive?"i":"")+(t?"g":""))}!function t(i,e){if(!i.compiled){if(i.compiled=!0,i.keywords=i.keywords||i.beginKeywords,i.keywords){var n={},r=function(i,e){a.case_insensitive&&(e=e.toLowerCase()),e.split(" ").forEach(function(e){var t=e.split("|");n[t[0]]=[i,t[1]?Number(t[1]):1]})};"string"==typeof i.keywords?r("keyword",i.keywords):l(i.keywords).forEach(function(e){r(e,i.keywords[e])}),i.keywords=n}i.lexemesRe=o(i.lexemes||/\w+/,!0),e&&(i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")\\b"),i.begin||(i.begin=/\B|\b/),i.beginRe=o(i.begin),i.endSameAsBegin&&(i.end=i.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(i.endRe=o(i.end)),i.terminator_end=u(i.end)||"",i.endsWithParent&&e.terminator_end&&(i.terminator_end+=(i.end?"|":"")+e.terminator_end)),i.illegal&&(i.illegalRe=o(i.illegal)),null==i.relevance&&(i.relevance=1),i.contains||(i.contains=[]),i.contains=Array.prototype.concat.apply([],i.contains.map(function(e){return function(t){return t.variants&&!t.cached_variants&&(t.cached_variants=t.variants.map(function(e){return f(t,{variants:null},e)})),t.cached_variants||t.endsWithParent&&[f(t)]||[t]}("self"===e?i:e)})),i.contains.forEach(function(e){t(e,i)}),i.starts&&t(i.starts,e);var s=i.contains.map(function(e){return e.beginKeywords?"\\.?(?:"+e.begin+")\\.?":e.begin}).concat([i.terminator_end,i.illegal]).map(u).filter(Boolean);i.terminators=s.length?o(function(e,t){for(var i=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,n=0,r="",s=0;s<e.length;s++){var a=n,o=u(e[s]);for(0<s&&(r+=t);0<o.length;){var l=i.exec(o);if(null==l){r+=o;break}r+=o.substring(0,l.index),o=o.substring(l.index+l[0].length),"\\"==l[0][0]&&l[1]?r+="\\"+String(Number(l[1])+a):(r+=l[0],"("==l[0]&&n++)}}return r}(s,"|"),!0):{exec:function(){return null}}}}(a)}function E(e,t,s,i){function o(e,t,i,n){var r='<span class="'+(n?"":T.classPrefix);return(r+=e+'">')+t+(i?"":y)}function a(){c+=null!=_.subLanguage?function(){var e="string"==typeof _.subLanguage;if(e&&!v[_.subLanguage])return w(f);var t=e?E(_.subLanguage,f,!0,h[_.subLanguage]):S(f,_.subLanguage.length?_.subLanguage:void 0);return 0<_.relevance&&(p+=t.relevance),e&&(h[_.subLanguage]=t.top),o(t.language,t.value,!1,!0)}():function(){var e,t,i,n,r,s,a;if(!_.keywords)return w(f);for(n="",t=0,_.lexemesRe.lastIndex=0,i=_.lexemesRe.exec(f);i;)n+=w(f.substring(t,i.index)),r=_,s=i,a=u.case_insensitive?s[0].toLowerCase():s[0],(e=r.keywords.hasOwnProperty(a)&&r.keywords[a])?(p+=e[1],n+=o(e[0],w(i[0]))):n+=w(i[0]),t=_.lexemesRe.lastIndex,i=_.lexemesRe.exec(f);return n+w(f.substr(t))}(),f=""}function l(e){c+=e.className?o(e.className,"",!0):"",_=Object.create(e,{parent:{value:_}})}function n(e,t){if(f+=e,null==t)return a(),0;var i=function(e,t){var i,n,r;for(i=0,n=t.contains.length;i<n;i++)if(b(t.contains[i].beginRe,e))return t.contains[i].endSameAsBegin&&(t.contains[i].endRe=(r=t.contains[i].beginRe.exec(e)[0],new RegExp(r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"m"))),t.contains[i]}(t,_);if(i)return i.skip?f+=t:(i.excludeBegin&&(f+=t),a(),i.returnBegin||i.excludeBegin||(f=t)),l(i),i.returnBegin?0:t.length;var n=function e(t,i){if(b(t.endRe,i)){for(;t.endsParent&&t.parent;)t=t.parent;return t}if(t.endsWithParent)return e(t.parent,i)}(_,t);if(n){var r=_;for(r.skip?f+=t:(r.returnEnd||r.excludeEnd||(f+=t),a(),r.excludeEnd&&(f=t));_.className&&(c+=y),_.skip||_.subLanguage||(p+=_.relevance),(_=_.parent)!==n.parent;);return n.starts&&(n.endSameAsBegin&&(n.starts.endRe=n.endRe),l(n.starts)),r.returnEnd?0:t.length}if(function(e,t){return!s&&b(t.illegalRe,e)}(t,_))throw new Error('Illegal lexeme "'+t+'" for mode "'+(_.className||"<unnamed>")+'"');return f+=t,t.length||1}var u=R(e);if(!u)throw new Error('Unknown language: "'+e+'"');P(u);var r,_=i||u,h={},c="";for(r=_;r!==u;r=r.parent)r.className&&(c=o(r.className,"",!0)+c);var f="",p=0;try{for(var m,d,g=0;_.terminators.lastIndex=g,m=_.terminators.exec(t);)d=n(t.substring(g,m.index),m[0]),g=m.index+d;for(n(t.substr(g)),r=_;r.parent;r=r.parent)r.className&&(c+=y);return{relevance:p,value:c,language:e,top:_}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{relevance:0,value:w(t)};throw e}}function S(i,e){e=e||T.languages||l(v);var n={relevance:0,value:w(i)},r=n;return e.filter(R).filter(g).forEach(function(e){var t=E(e,i,!1);t.language=e,t.relevance>r.relevance&&(r=t),t.relevance>n.relevance&&(r=n,n=t)}),r.language&&(n.second_best=r),n}function m(e){return T.tabReplace||T.useBR?e.replace(n,function(e,t){return T.useBR&&"\n"===e?"<br>":T.tabReplace?t.replace(/\t/g,T.tabReplace):""}):e}function a(e){var t,i,n,r,s,a=function(e){var t,i,n,r,s=e.className+" ";if(s+=e.parentNode?e.parentNode.className:"",i=u.exec(s))return R(i[1])?i[1]:"no-highlight";for(t=0,n=(s=s.split(/\s+/)).length;t<n;t++)if(_(r=s[t])||R(r))return r}(e);_(a)||(T.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n"):t=e,s=t.textContent,n=a?E(a,s,!0):S(s),(i=p(t)).length&&((r=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=n.value,n.value=function(e,t,i){var n=0,r="",s=[];function a(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function o(e){r+="<"+c(e)+h.map.call(e.attributes,function(e){return" "+e.nodeName+'="'+w(e.value).replace('"',""")+'"'}).join("")+">"}function l(e){r+="</"+c(e)+">"}function u(e){("start"===e.event?o:l)(e.node)}for(;e.length||t.length;){var _=a();if(r+=w(i.substring(n,_[0].offset)),n=_[0].offset,_===e){for(s.reverse().forEach(l);u(_.splice(0,1)[0]),(_=a())===e&&_.length&&_[0].offset===n;);s.reverse().forEach(o)}else"start"===_[0].event?s.push(_[0].node):s.pop(),u(_.splice(0,1)[0])}return r+w(i.substr(n))}(i,p(r),s)),n.value=m(n.value),e.innerHTML=n.value,e.className=function(e,t,i){var n=t?o[t]:i,r=[e.trim()];return e.match(/\bhljs\b/)||r.push("hljs"),-1===e.indexOf(n)&&r.push(n),r.join(" ").trim()}(e.className,a,n.language),e.result={language:n.language,re:n.relevance},n.second_best&&(e.second_best={language:n.second_best.language,re:n.second_best.relevance}))}function d(){if(!d.called){d.called=!0;var e=document.querySelectorAll("pre code");h.forEach.call(e,a)}}function R(e){return e=(e||"").toLowerCase(),v[e]||v[o[e]]}function g(e){var t=R(e);return t&&!t.disableAutodetect}return r.highlight=E,r.highlightAuto=S,r.fixMarkup=m,r.highlightBlock=a,r.configure=function(e){T=f(T,e)},r.initHighlighting=d,r.initHighlightingOnLoad=function(){addEventListener("DOMContentLoaded",d,!1),addEventListener("load",d,!1)},r.registerLanguage=function(t,e){var i=v[t]=e(r);s(i),i.aliases&&i.aliases.forEach(function(e){o[e]=t})},r.listLanguages=function(){return l(v)},r.getLanguage=R,r.autoDetection=g,r.inherit=f,r.IDENT_RE="[a-zA-Z]\\w*",r.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",r.NUMBER_RE="\\b\\d+(\\.\\d+)?",r.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",r.BINARY_NUMBER_RE="\\b(0b[01]+)",r.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",r.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},r.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[r.BACKSLASH_ESCAPE]},r.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[r.BACKSLASH_ESCAPE]},r.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},r.COMMENT=function(e,t,i){var n=r.inherit({className:"comment",begin:e,end:t,contains:[]},i||{});return n.contains.push(r.PHRASAL_WORDS_MODE),n.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),n},r.C_LINE_COMMENT_MODE=r.COMMENT("//","$"),r.C_BLOCK_COMMENT_MODE=r.COMMENT("/\\*","\\*/"),r.HASH_COMMENT_MODE=r.COMMENT("#","$"),r.NUMBER_MODE={className:"number",begin:r.NUMBER_RE,relevance:0},r.C_NUMBER_MODE={className:"number",begin:r.C_NUMBER_RE,relevance:0},r.BINARY_NUMBER_MODE={className:"number",begin:r.BINARY_NUMBER_RE,relevance:0},r.CSS_NUMBER_MODE={className:"number",begin:r.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},r.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[r.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[r.BACKSLASH_ESCAPE]}]},r.TITLE_MODE={className:"title",begin:r.IDENT_RE,relevance:0},r.UNDERSCORE_TITLE_MODE={className:"title",begin:r.UNDERSCORE_IDENT_RE,relevance:0},r.METHOD_GUARD={begin:"\\.\\s*"+r.UNDERSCORE_IDENT_RE,relevance:0},r}),function(c,f){"use strict";var p={},n=c.document,m=c.GreenSockGlobals=c.GreenSockGlobals||c,e=m[f];if(e)return"undefined"!=typeof module&&module.exports&&(module.exports=e);var t,i,r,d,g,s,a,v=function(e){var t,i=e.split("."),n=m;for(t=0;t<i.length;t++)n[i[t]]=n=n[i[t]]||{};return n},h=v("com.greensock"),y=1e-8,l=function(e){var t,i=[],n=e.length;for(t=0;t!==n;i.push(e[t++]));return i},T=function(){},w=(s=Object.prototype.toString,a=s.call([]),function(e){return null!=e&&(e instanceof Array||"object"==typeof e&&!!e.push&&s.call(e)===a)}),b={},P=function(o,l,u,_){this.sc=b[o]?b[o].sc:[],(b[o]=this).gsClass=null,this.func=u;var h=[];this.check=function(e){for(var t,i,n,r,s=l.length,a=s;-1<--s;)(t=b[l[s]]||new P(l[s],[])).gsClass?(h[s]=t.gsClass,a--):e&&t.sc.push(this);if(0===a&&u){if(n=(i=("com.greensock."+o).split(".")).pop(),r=v(i.join("."))[n]=this.gsClass=u.apply(u,h),_)if(m[n]=p[n]=r,"undefined"!=typeof module&&module.exports)if(o===f)for(s in module.exports=p[f]=r,p)r[s]=p[s];else p[f]&&(p[f][n]=r);else"function"==typeof define&&define.amd&&define((c.GreenSockAMDPath?c.GreenSockAMDPath+"/":"")+o.split(".").pop(),[],function(){return r});for(s=0;s<this.sc.length;s++)this.sc[s].check()}},this.check(!0)},o=c._gsDefine=function(e,t,i,n){return new P(e,t,i,n)},E=h._class=function(e,t,i){return t=t||function(){},o(e,[],function(){return t},i),t};o.globals=m;var u=[0,0,1,1],S=E("easing.Ease",function(e,t,i,n){this._func=e,this._type=i||0,this._power=n||0,this._params=t?u.concat(t):u},!0),R=S.map={},_=S.register=function(e,t,i,n){for(var r,s,a,o,l=t.split(","),u=l.length,_=(i||"easeIn,easeOut,easeInOut").split(",");-1<--u;)for(s=l[u],r=n?E("easing."+s,null,!0):h.easing[s]||{},a=_.length;-1<--a;)o=_[a],R[s+"."+o]=R[o+s]=r[o]=e.getRatio?e:e[o]||new e};for((r=S.prototype)._calcEnd=!1,r.getRatio=function(e){if(this._func)return this._params[0]=e,this._func.apply(null,this._params);var t=this._type,i=this._power,n=1===t?1-e:2===t?e:e<.5?2*e:2*(1-e);return 1===i?n*=n:2===i?n*=n*n:3===i?n*=n*n*n:4===i&&(n*=n*n*n*n),1===t?1-n:2===t?n:e<.5?n/2:1-n/2},i=(t=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--i;)r=t[i]+",Power"+i,_(new S(null,null,1,i),r,"easeOut",!0),_(new S(null,null,2,i),r,"easeIn"+(0===i?",easeNone":"")),_(new S(null,null,3,i),r,"easeInOut");R.linear=h.easing.Linear.easeIn,R.swing=h.easing.Quad.easeInOut;var x=E("events.EventDispatcher",function(e){this._listeners={},this._eventTarget=e||this});(r=x.prototype).addEventListener=function(e,t,i,n,r){r=r||0;var s,a,o=this._listeners[e],l=0;for(this!==d||g||d.wake(),null==o&&(this._listeners[e]=o=[]),a=o.length;-1<--a;)(s=o[a]).c===t&&s.s===i?o.splice(a,1):0===l&&s.pr<r&&(l=a+1);o.splice(l,0,{c:t,s:i,up:n,pr:r})},r.removeEventListener=function(e,t){var i,n=this._listeners[e];if(n)for(i=n.length;-1<--i;)if(n[i].c===t)return void n.splice(i,1)},r.dispatchEvent=function(e){var t,i,n,r=this._listeners[e];if(r)for(1<(t=r.length)&&(r=r.slice(0)),i=this._eventTarget;-1<--t;)(n=r[t])&&(n.up?n.c.call(n.s||i,{type:e,target:i}):n.c.call(n.s||i))};var k=c.requestAnimationFrame,A=c.cancelAnimationFrame,C=Date.now||function(){return(new Date).getTime()},N=C();for(i=(t=["ms","moz","webkit","o"]).length;-1<--i&&!k;)k=c[t[i]+"RequestAnimationFrame"],A=c[t[i]+"CancelAnimationFrame"]||c[t[i]+"CancelRequestAnimationFrame"];E("Ticker",function(e,t){var r,s,a,o,l,u=this,_=C(),i=!(!1===t||!k)&&"auto",h=500,c=33,f=function(e){var t,i,n=C()-N;h<n&&(_+=n-c),N+=n,u.time=(N-_)/1e3,t=u.time-l,(!r||0<t||!0===e)&&(u.frame++,l+=t+(o<=t?.004:o-t),i=!0),!0!==e&&(a=s(f)),i&&u.dispatchEvent("tick")};x.call(u),u.time=u.frame=0,u.tick=function(){f(!0)},u.lagSmoothing=function(e,t){if(!arguments.length)return h<1e8;h=e||1e8,c=Math.min(t,h,0)},u.sleep=function(){null!=a&&(i&&A?A(a):clearTimeout(a),s=T,a=null,u===d&&(g=!1))},u.wake=function(e){null!==a?u.sleep():e?_+=-N+(N=C()):10<u.frame&&(N=C()-h+5),s=0===r?T:i&&k?k:function(e){return setTimeout(e,1e3*(l-u.time)+1|0)},u===d&&(g=!0),f(2)},u.fps=function(e){if(!arguments.length)return r;o=1/((r=e)||60),l=this.time+o,u.wake()},u.useRAF=function(e){if(!arguments.length)return i;u.sleep(),i=e,u.fps(r)},u.fps(e),setTimeout(function(){"auto"===i&&u.frame<5&&"hidden"!==(n||{}).visibilityState&&u.useRAF(!1)},1500)}),(r=h.Ticker.prototype=new h.events.EventDispatcher).constructor=h.Ticker;var O=E("core.Animation",function(e,t){if(this.vars=t=t||{},this._duration=this._totalDuration=e||0,this._delay=Number(t.delay)||0,this._timeScale=1,this._active=!!t.immediateRender,this.data=t.data,this._reversed=!!t.reversed,V){g||d.wake();var i=this.vars.useFrames?Z:V;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});d=O.ticker=new h.Ticker,(r=O.prototype)._dirty=r._gc=r._initted=r._paused=!1,r._totalTime=r._time=0,r._rawPrevTime=-1,r._next=r._last=r._onUpdate=r._timeline=r.timeline=null,r._paused=!1;var D=function(){g&&2e3<C()-N&&("hidden"!==(n||{}).visibilityState||!d.lagSmoothing())&&d.wake();var e=setTimeout(D,2e3);e.unref&&e.unref()};D(),r.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},r.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},r.resume=function(e,t){return null!=e&&this.seek(e,t),this.paused(!1)},r.seek=function(e,t){return this.totalTime(Number(e),!1!==t)},r.restart=function(e,t){return this.reversed(!1).paused(!1).totalTime(e?-this._delay:0,!1!==t,!0)},r.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},r.render=function(e,t,i){},r.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},r.isActive=function(){var e,t=this._timeline,i=this._startTime;return!t||!this._gc&&!this._paused&&t.isActive()&&(e=t.rawTime(!0))>=i&&e<i+this.totalDuration()/this._timeScale-y},r._enabled=function(e,t){return g||d.wake(),this._gc=!e,this._active=this.isActive(),!0!==t&&(e&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!e&&this.timeline&&this._timeline._remove(this,!0)),!1},r._kill=function(e,t){return this._enabled(!1,!1)},r.kill=function(e,t){return this._kill(e,t),this},r._uncache=function(e){for(var t=e?this:this.timeline;t;)t._dirty=!0,t=t.timeline;return this},r._swapSelfInParams=function(e){for(var t=e.length,i=e.concat();-1<--t;)"{self}"===e[t]&&(i[t]=this);return i},r._callback=function(e){var t=this.vars,i=t[e],n=t[e+"Params"],r=t[e+"Scope"]||t.callbackScope||this;switch(n?n.length:0){case 0:i.call(r);break;case 1:i.call(r,n[0]);break;case 2:i.call(r,n[0],n[1]);break;default:i.apply(r,n)}},r.eventCallback=function(e,t,i,n){if("on"===(e||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[e];null==t?delete r[e]:(r[e]=t,r[e+"Params"]=w(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,r[e+"Scope"]=n),"onUpdate"===e&&(this._onUpdate=t)}return this},r.delay=function(e){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+e-this._delay),this._delay=e,this):this._delay},r.duration=function(e){return arguments.length?(this._duration=this._totalDuration=e,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==e&&this.totalTime(this._totalTime*(e/this._duration),!0),this):(this._dirty=!1,this._duration)},r.totalDuration=function(e){return this._dirty=!1,arguments.length?this.duration(e):this._totalDuration},r.time=function(e,t){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(e>this._duration?this._duration:e,t)):this._time},r.totalTime=function(e,t,i){if(g||d.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(e<0&&!i&&(e+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,r=this._timeline;if(n<e&&!i&&(e=n),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?n-e:e)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===e&&0!==this._duration||(B.length&&ee(),this.render(e,t,!1),B.length&&ee())}return this},r.progress=r.totalProgress=function(e,t){var i=this.duration();return arguments.length?this.totalTime(i*e,t):i?this._time/i:this.ratio},r.startTime=function(e){return arguments.length?(e!==this._startTime&&(this._startTime=e,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,e-this._delay)),this):this._startTime},r.endTime=function(e){return this._startTime+(0!=e?this.totalDuration():this.duration())/this._timeScale},r.timeScale=function(e){if(!arguments.length)return this._timeScale;var t,i;for(e=e||y,this._timeline&&this._timeline.smoothChildTiming&&(i=(t=this._pauseTime)||0===t?t:this._timeline.totalTime(),this._startTime=i-(i-this._startTime)*this._timeScale/e),this._timeScale=e,i=this.timeline;i&&i.timeline;)i._dirty=!0,i.totalDuration(),i=i.timeline;return this},r.reversed=function(e){return arguments.length?(e!=this._reversed&&(this._reversed=e,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},r.paused=function(e){if(!arguments.length)return this._paused;var t,i,n=this._timeline;return e!=this._paused&&n&&(g||e||d.wake(),i=(t=n.rawTime())-this._pauseTime,!e&&n.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=e?t:null,this._paused=e,this._active=this.isActive(),!e&&0!=i&&this._initted&&this.duration()&&(t=n.smoothChildTiming?this._totalTime:(t-this._startTime)/this._timeScale,this.render(t,t===this._totalTime,!0))),this._gc&&!e&&this._enabled(!0,!1),this};var M=E("core.SimpleTimeline",function(e){O.call(this,0,e),this.autoRemoveChildren=this.smoothChildTiming=!0});(r=M.prototype=new O).constructor=M,r.kill()._gc=!1,r._first=r._last=r._recent=null,r._sortChildren=!1,r.add=r.insert=function(e,t,i,n){var r,s;if(e._startTime=Number(t||0)+e._delay,e._paused&&this!==e._timeline&&(e._pauseTime=this.rawTime()-(e._timeline.rawTime()-e._pauseTime)),e.timeline&&e.timeline._remove(e,!0),e.timeline=e._timeline=this,e._gc&&e._enabled(!0,!0),r=this._last,this._sortChildren)for(s=e._startTime;r&&r._startTime>s;)r=r._prev;return r?(e._next=r._next,r._next=e):(e._next=this._first,this._first=e),e._next?e._next._prev=e:this._last=e,e._prev=r,this._recent=e,this._timeline&&this._uncache(!0),this},r._remove=function(e,t){return e.timeline===this&&(t||e._enabled(!1,!0),e._prev?e._prev._next=e._next:this._first===e&&(this._first=e._next),e._next?e._next._prev=e._prev:this._last===e&&(this._last=e._prev),e._next=e._prev=e.timeline=null,e===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},r.render=function(e,t,i){var n,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=e;r;)n=r._next,(r._active||e>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(e-r._startTime)*r._timeScale,t,i):r.render((e-r._startTime)*r._timeScale,t,i)),r=n},r.rawTime=function(){return g||d.wake(),this._totalTime};var I=E("TweenLite",function(e,t,i){if(O.call(this,t,i),this.render=I.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:I.selector(e)||e;var n,r,s,a=e.jquery||e.length&&e!==c&&e[0]&&(e[0]===c||e[0].nodeType&&e[0].style&&!e.nodeType),o=this.vars.overwrite;if(this._overwrite=o=null==o?Y[I.defaultOverwrite]:"number"==typeof o?o>>0:Y[o],(a||e instanceof Array||e.push&&w(e))&&"number"!=typeof e[0])for(this._targets=s=l(e),this._propLookup=[],this._siblings=[],n=0;n<s.length;n++)(r=s[n])?"string"!=typeof r?r.length&&r!==c&&r[0]&&(r[0]===c||r[0].nodeType&&r[0].style&&!r.nodeType)?(s.splice(n--,1),this._targets=s=s.concat(l(r))):(this._siblings[n]=te(r,this,!1),1===o&&1<this._siblings[n].length&&ne(r,this,null,1,this._siblings[n])):"string"==typeof(r=s[n--]=I.selector(r))&&s.splice(n+1,1):s.splice(n--,1);else this._propLookup={},this._siblings=te(e,this,!1),1===o&&1<this._siblings.length&&ne(e,this,null,1,this._siblings);(this.vars.immediateRender||0===t&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-y,this.render(Math.min(0,-this._delay)))},!0),L=function(e){return e&&e.length&&e!==c&&e[0]&&(e[0]===c||e[0].nodeType&&e[0].style&&!e.nodeType)};(r=I.prototype=new O).constructor=I,r.kill()._gc=!1,r.ratio=0,r._firstPT=r._targets=r._overwrittenProps=r._startAt=null,r._notifyPluginsOfEnabled=r._lazy=!1,I.version="2.1.2",I.defaultEase=r._ease=new S(null,null,1,1),I.defaultOverwrite="auto",I.ticker=d,I.autoSleep=120,I.lagSmoothing=function(e,t){d.lagSmoothing(e,t)},I.selector=c.$||c.jQuery||function(e){var t=c.$||c.jQuery;return t?(I.selector=t)(e):(n||(n=c.document),n?n.querySelectorAll?n.querySelectorAll(e):n.getElementById("#"===e.charAt(0)?e.substr(1):e):e)};var B=[],U={},z=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,F=/[\+-]=-?[\.\d]/,j=function(e){for(var t,i=this._firstPT;i;)t=i.blob?1===e&&null!=this.end?this.end:e?this.join(""):this.start:i.c*e+i.s,i.m?t=i.m.call(this._tween,t,this._target||i.t,this._tween):t<1e-6&&-1e-6<t&&!i.blob&&(t=0),i.f?i.fp?i.t[i.p](i.fp,t):i.t[i.p](t):i.t[i.p]=t,i=i._next},H=function(e){return(1e3*e|0)/1e3+""},K=function(e,t,i,n){var r,s,a,o,l,u,_,h=[],c=0,f="",p=0;for(h.start=e,h.end=t,e=h[0]=e+"",t=h[1]=t+"",i&&(i(h),e=h[0],t=h[1]),h.length=0,r=e.match(z)||[],s=t.match(z)||[],n&&(n._next=null,n.blob=1,h._firstPT=h._applyPT=n),l=s.length,o=0;o<l;o++)_=s[o],f+=(u=t.substr(c,t.indexOf(_,c)-c))||!o?u:",",c+=u.length,p?p=(p+1)%5:"rgba("===u.substr(-5)&&(p=1),_===r[o]||r.length<=o?f+=_:(f&&(h.push(f),f=""),a=parseFloat(r[o]),h.push(a),h._firstPT={_next:h._firstPT,t:h,p:h.length-1,s:a,c:("="===_.charAt(1)?parseInt(_.charAt(0)+"1",10)*parseFloat(_.substr(2)):parseFloat(_)-a)||0,f:0,m:p&&p<4?Math.round:H}),c+=_.length;return(f+=t.substr(c))&&h.push(f),h.setRatio=j,F.test(t)&&(h.end=null),h},G=function(e,t,i,n,r,s,a,o,l){"function"==typeof n&&(n=n(l||0,e));var u=typeof e[t],_="function"!=u?"":t.indexOf("set")||"function"!=typeof e["get"+t.substr(3)]?t:"get"+t.substr(3),h="get"!==i?i:_?a?e[_](a):e[_]():e[t],c="string"==typeof n&&"="===n.charAt(1),f={t:e,p:t,s:h,f:"function"==u,pg:0,n:r||t,m:s?"function"==typeof s?s:Math.round:0,pr:0,c:c?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-h||0};if(("number"!=typeof h||"number"!=typeof n&&!c)&&(a||isNaN(h)||!c&&isNaN(n)||"boolean"==typeof h||"boolean"==typeof n?(f.fp=a,f={t:K(h,c?parseFloat(f.s)+f.c+(f.s+"").replace(/[0-9\-\.]/g,""):n,o||I.defaultStringFilter,f),p:"setRatio",s:0,c:1,f:2,pg:0,n:r||t,pr:0,m:0}):(f.s=parseFloat(h),c||(f.c=parseFloat(n)-f.s||0))),f.c)return(f._next=this._firstPT)&&(f._next._prev=f),this._firstPT=f},W=I._internals={isArray:w,isSelector:L,lazyTweens:B,blobDif:K},q=I._plugins={},Q=W.tweenLookup={},X=0,$=W.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1,stagger:1},Y={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},Z=O._rootFramesTimeline=new M,V=O._rootTimeline=new M,J=30,ee=W.lazyRender=function(){var e,t,i=B.length;for(U={},e=0;e<i;e++)(t=B[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);B.length=0};V._startTime=d.time,Z._startTime=d.frame,V._active=Z._active=!0,setTimeout(ee,1),O._updateRoot=I.render=function(){var e,t,i;if(B.length&&ee(),V.render((d.time-V._startTime)*V._timeScale,!1,!1),Z.render((d.frame-Z._startTime)*Z._timeScale,!1,!1),B.length&&ee(),d.frame>=J){for(i in J=d.frame+(parseInt(I.autoSleep,10)||120),Q){for(e=(t=Q[i].tweens).length;-1<--e;)t[e]._gc&&t.splice(e,1);0===t.length&&delete Q[i]}if((!(i=V._first)||i._paused)&&I.autoSleep&&!Z._first&&1===d._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||d.sleep()}}},d.addEventListener("tick",O._updateRoot);var te=function(e,t,i){var n,r,s=e._gsTweenID;if(Q[s||(e._gsTweenID=s="t"+X++)]||(Q[s]={target:e,tweens:[]}),t&&((n=Q[s].tweens)[r=n.length]=t,i))for(;-1<--r;)n[r]===t&&n.splice(r,1);return Q[s].tweens},ie=function(e,t,i,n){var r,s,a=e.vars.onOverwrite;return a&&(r=a(e,t,i,n)),(a=I.onOverwrite)&&(s=a(e,t,i,n)),!1!==r&&!1!==s},ne=function(e,t,i,n,r){var s,a,o,l;if(1===n||4<=n){for(l=r.length,s=0;s<l;s++)if((o=r[s])!==t)o._gc||o._kill(null,e,t)&&(a=!0);else if(5===n)break;return a}var u,_=t._startTime+y,h=[],c=0,f=0===t._duration;for(s=r.length;-1<--s;)(o=r[s])===t||o._gc||o._paused||(o._timeline!==t._timeline?(u=u||re(t,0,f),0===re(o,u,f)&&(h[c++]=o)):o._startTime<=_&&o._startTime+o.totalDuration()/o._timeScale>_&&((f||!o._initted)&&_-o._startTime<=2e-8||(h[c++]=o)));for(s=c;-1<--s;)if(l=(o=h[s])._firstPT,2===n&&o._kill(i,e,t)&&(a=!0),2!==n||!o._firstPT&&o._initted&&l){if(2!==n&&!ie(o,t))continue;o._enabled(!1,!1)&&(a=!0)}return a},re=function(e,t,i){for(var n=e._timeline,r=n._timeScale,s=e._startTime;n._timeline;){if(s+=n._startTime,r*=n._timeScale,n._paused)return-100;n=n._timeline}return t<(s/=r)?s-t:i&&s===t||!e._initted&&s-t<2e-8?y:(s+=e.totalDuration()/e._timeScale/r)>t+y?0:s-t-y};r._init=function(){var e,t,i,n,r,s,a=this.vars,o=this._overwrittenProps,l=this._duration,u=!!a.immediateRender,_=a.ease,h=this._startAt;if(a.startAt){for(n in h&&(h.render(-1,!0),h.kill()),r={},a.startAt)r[n]=a.startAt[n];if(r.data="isStart",r.overwrite=!1,r.immediateRender=!0,r.lazy=u&&!1!==a.lazy,r.startAt=r.delay=null,r.onUpdate=a.onUpdate,r.onUpdateParams=a.onUpdateParams,r.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=I.to(this.target||{},0,r),u)if(0<this._time)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(h)h.render(-1,!0),h.kill(),this._startAt=null;else{for(n in 0!==this._time&&(u=!1),i={},a)$[n]&&"autoCSS"!==n||(i[n]=a[n]);if(i.overwrite=0,i.data="isFromStart",i.lazy=u&&!1!==a.lazy,i.immediateRender=u,this._startAt=I.to(this.target,0,i),u){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=_=_?_ instanceof S?_:"function"==typeof _?new S(_,a.easeParams):R[_]||I.defaultEase:I.defaultEase,a.easeParams instanceof Array&&_.config&&(this._ease=_.config.apply(_,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(s=this._targets.length,e=0;e<s;e++)this._initProps(this._targets[e],this._propLookup[e]={},this._siblings[e],o?o[e]:null,e)&&(t=!0);else t=this._initProps(this.target,this._propLookup,this._siblings,o,0);if(t&&I._onPluginEvent("_onInitAllProps",this),o&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),a.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=a.onUpdate,this._initted=!0},r._initProps=function(e,t,i,n,r){var s,a,o,l,u,_;if(null==e)return!1;for(s in U[e._gsTweenID]&&ee(),this.vars.css||e.style&&e!==c&&e.nodeType&&q.css&&!1!==this.vars.autoCSS&&function(e,t){var i,n={};for(i in e)$[i]||i in t&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!q[i]||q[i]&&q[i]._autoCSS)||(n[i]=e[i],delete e[i]);e.css=n}(this.vars,e),this.vars)if(_=this.vars[s],$[s])_&&(_ instanceof Array||_.push&&w(_))&&-1!==_.join("").indexOf("{self}")&&(this.vars[s]=_=this._swapSelfInParams(_,this));else if(q[s]&&(l=new q[s])._onInitTween(e,this.vars[s],this,r)){for(this._firstPT=u={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:1,n:s,pg:1,pr:l._priority,m:0},a=l._overwriteProps.length;-1<--a;)t[l._overwriteProps[a]]=this._firstPT;(l._priority||l._onInitAllProps)&&(o=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0),u._next&&(u._next._prev=u)}else t[s]=G.call(this,e,s,"get",_,s,0,null,this.vars.stringFilter,r);return n&&this._kill(n,e)?this._initProps(e,t,i,n,r):1<this._overwrite&&this._firstPT&&1<i.length&&ne(e,this,t,this._overwrite,i)?(this._kill(t,e),this._initProps(e,t,i,n,r)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(U[e._gsTweenID]=!0),o)},r.render=function(e,t,i){var n,r,s,a,o=this,l=o._time,u=o._duration,_=o._rawPrevTime;if(u-y<=e&&0<=e)o._totalTime=o._time=u,o.ratio=o._ease._calcEnd?o._ease.getRatio(1):1,o._reversed||(n=!0,r="onComplete",i=i||o._timeline.autoRemoveChildren),0===u&&(o._initted||!o.vars.lazy||i)&&(o._startTime===o._timeline._duration&&(e=0),(_<0||e<=0&&-y<=e||_===y&&"isPause"!==o.data)&&_!==e&&(i=!0,y<_&&(r="onReverseComplete")),o._rawPrevTime=a=!t||e||_===e?e:y);else if(e<y)o._totalTime=o._time=0,o.ratio=o._ease._calcEnd?o._ease.getRatio(0):0,(0!==l||0===u&&0<_)&&(r="onReverseComplete",n=o._reversed),-y<e?e=0:e<0&&(o._active=!1,0===u&&(o._initted||!o.vars.lazy||i)&&(0<=_&&(_!==y||"isPause"!==o.data)&&(i=!0),o._rawPrevTime=a=!t||e||_===e?e:y)),(!o._initted||o._startAt&&o._startAt.progress())&&(i=!0);else if(o._totalTime=o._time=e,o._easeType){var h=e/u,c=o._easeType,f=o._easePower;(1===c||3===c&&.5<=h)&&(h=1-h),3===c&&(h*=2),1===f?h*=h:2===f?h*=h*h:3===f?h*=h*h*h:4===f&&(h*=h*h*h*h),o.ratio=1===c?1-h:2===c?h:e/u<.5?h/2:1-h/2}else o.ratio=o._ease.getRatio(e/u);if(o._time!==l||i){if(!o._initted){if(o._init(),!o._initted||o._gc)return;if(!i&&o._firstPT&&(!1!==o.vars.lazy&&o._duration||o.vars.lazy&&!o._duration))return o._time=o._totalTime=l,o._rawPrevTime=_,B.push(o),void(o._lazy=[e,t]);o._time&&!n?o.ratio=o._ease.getRatio(o._time/u):n&&o._ease._calcEnd&&(o.ratio=o._ease.getRatio(0===o._time?0:1))}for(!1!==o._lazy&&(o._lazy=!1),o._active||!o._paused&&o._time!==l&&0<=e&&(o._active=!0),0===l&&(o._startAt&&(0<=e?o._startAt.render(e,!0,i):r||(r="_dummyGS")),o.vars.onStart&&(0===o._time&&0!==u||t||o._callback("onStart"))),s=o._firstPT;s;)s.f?s.t[s.p](s.c*o.ratio+s.s):s.t[s.p]=s.c*o.ratio+s.s,s=s._next;o._onUpdate&&(e<0&&o._startAt&&-1e-4!==e&&o._startAt.render(e,!0,i),t||(o._time!==l||n||i)&&o._callback("onUpdate")),r&&(o._gc&&!i||(e<0&&o._startAt&&!o._onUpdate&&-1e-4!==e&&o._startAt.render(e,!0,i),n&&(o._timeline.autoRemoveChildren&&o._enabled(!1,!1),o._active=!1),!t&&o.vars[r]&&o._callback(r),0===u&&o._rawPrevTime===y&&a!==y&&(o._rawPrevTime=0)))}},r._kill=function(e,t,i){if("all"===e&&(e=null),null==e&&(null==t||t===this.target))return this._lazy=!1,this._enabled(!1,!1);t="string"!=typeof t?t||this._targets||this.target:I.selector(t)||t;var n,r,s,a,o,l,u,_,h,c=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline,f=this._firstPT;if((w(t)||L(t))&&"number"!=typeof t[0])for(n=t.length;-1<--n;)this._kill(e,t[n],i)&&(l=!0);else{if(this._targets){for(n=this._targets.length;-1<--n;)if(t===this._targets[n]){o=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[n]=e?this._overwrittenProps[n]||{}:"all";break}}else{if(t!==this.target)return!1;o=this._propLookup,r=this._overwrittenProps=e?this._overwrittenProps||{}:"all"}if(o){if(u=e||o,_=e!==r&&"all"!==r&&e!==o&&("object"!=typeof e||!e._tempKill),i&&(I.onOverwrite||this.vars.onOverwrite)){for(s in u)o[s]&&(h||(h=[]),h.push(s));if((h||!e)&&!ie(this,i,t,h))return!1}for(s in u)(a=o[s])&&(c&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(u)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[s]),_&&(r[s]=1);!this._firstPT&&this._initted&&f&&this._enabled(!1,!1)}}return l},r.invalidate=function(){this._notifyPluginsOfEnabled&&I._onPluginEvent("_onDisable",this);var e=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],O.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-y,this.render(e,!1,!1!==this.vars.lazy)),this},r._enabled=function(e,t){if(g||d.wake(),e&&this._gc){var i,n=this._targets;if(n)for(i=n.length;-1<--i;)this._siblings[i]=te(n[i],this,!0);else this._siblings=te(this.target,this,!0)}return O.prototype._enabled.call(this,e,t),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&I._onPluginEvent(e?"_onEnable":"_onDisable",this)},I.to=function(e,t,i){return new I(e,t,i)},I.from=function(e,t,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new I(e,t,i)},I.fromTo=function(e,t,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new I(e,t,n)},I.delayedCall=function(e,t,i,n,r){return new I(t,0,{delay:e,onComplete:t,onCompleteParams:i,callbackScope:n,onReverseComplete:t,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},I.set=function(e,t){return new I(e,0,t)},I.getTweensOf=function(e,t){if(null==e)return[];var i,n,r,s;if(e="string"!=typeof e?e:I.selector(e)||e,(w(e)||L(e))&&"number"!=typeof e[0]){for(i=e.length,n=[];-1<--i;)n=n.concat(I.getTweensOf(e[i],t));for(i=n.length;-1<--i;)for(s=n[i],r=i;-1<--r;)s===n[r]&&n.splice(i,1)}else if(e._gsTweenID)for(i=(n=te(e).concat()).length;-1<--i;)(n[i]._gc||t&&!n[i].isActive())&&n.splice(i,1);return n||[]},I.killTweensOf=I.killDelayedCallsTo=function(e,t,i){"object"==typeof t&&(i=t,t=!1);for(var n=I.getTweensOf(e,t),r=n.length;-1<--r;)n[r]._kill(i,e)};var se=E("plugins.TweenPlugin",function(e,t){this._overwriteProps=(e||"").split(","),this._propName=this._overwriteProps[0],this._priority=t||0,this._super=se.prototype},!0);if(r=se.prototype,se.version="1.19.0",se.API=2,r._firstPT=null,r._addTween=G,r.setRatio=j,r._kill=function(e){var t,i=this._overwriteProps,n=this._firstPT;if(null!=e[this._propName])this._overwriteProps=[];else for(t=i.length;-1<--t;)null!=e[i[t]]&&i.splice(t,1);for(;n;)null!=e[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},r._mod=r._roundProps=function(e){for(var t,i=this._firstPT;i;)(t=e[this._propName]||null!=i.n&&e[i.n.split(this._propName+"_").join("")])&&"function"==typeof t&&(2===i.f?i.t._applyPT.m=t:i.m=t),i=i._next},I._onPluginEvent=function(e,t){var i,n,r,s,a,o=t._firstPT;if("_onInitAllProps"===e){for(;o;){for(a=o._next,n=r;n&&n.pr>o.pr;)n=n._next;(o._prev=n?n._prev:s)?o._prev._next=o:r=o,(o._next=n)?n._prev=o:s=o,o=a}o=t._firstPT=r}for(;o;)o.pg&&"function"==typeof o.t[e]&&o.t[e]()&&(i=!0),o=o._next;return i},se.activate=function(e){for(var t=e.length;-1<--t;)e[t].API===se.API&&(q[(new e[t])._propName]=e[t]);return!0},o.plugin=function(e){if(!(e&&e.propName&&e.init&&e.API))throw"illegal plugin definition.";var t,i=e.propName,n=e.priority||0,r=e.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=E("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){se.call(this,i,n),this._overwriteProps=r||[]},!0===e.global),o=a.prototype=new se(i);for(t in(o.constructor=a).API=e.API,s)"function"==typeof e[t]&&(o[s[t]]=e[t]);return a.version=e.version,se.activate([a]),a},t=c._gsQueue){for(i=0;i<t.length;i++)t[i]();for(r in b)b[r].func||c.console.log("GSAP encountered missing dependency: "+r)}g=!1}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenLite"),function(){"use strict";var h="undefined"==typeof WebKitCSSMatrix?new DOMMatrix:new WebKitCSSMatrix;function c(e,t,i){this.x=e,this.y=t,this.z=i}function f(t){try{return"undefined"==typeof WebKitCSSMatrix?new DOMMatrix(t):new WebKitCSSMatrix(t)}catch(e){return console.warn(t),console.warn(e.toString()),h}}function n(e){for(var t=h,i=e;null!=i&&i!==i.ownerDocument.documentElement;){var n=window.getComputedStyle(i,void 0).transform||"none";t=("none"===n?h:f(n)).multiply(t),i=i.parentNode}for(var r=e.offsetWidth,s=e.offsetHeight,a=4,o=1/0,l=1/0;0<=--a;){var u=new c(0===a||1===a?0:r,0===a||3===a?0:s,0).transformBy(t);u.x<o&&(o=u.x),u.y<l&&(l=u.y)}var _=e.getBoundingClientRect();return t=h.translate(window.pageXOffset+_.left-o,window.pageYOffset+_.top-l,0).multiply(t)}c.prototype.transformBy=function(e){var t=e.multiply(h.translate(this.x,this.y,this.z));return new c(t.m41,t.m42,t.m43)},window.convertPointFromPageToNode=function(e,t,i){return new c(t,i,0).transformBy(n(e).inverse())},window.convertPointFromNodeToPage=function(e,t,i){return new c(t,i,0).transformBy(n(e))}}(); |