-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathscripts.min.js
More file actions
1 lines (1 loc) · 24.3 KB
/
scripts.min.js
File metadata and controls
1 lines (1 loc) · 24.3 KB
1
var IN_GLOBAL_SCOPE=!0;window.PR_SHOULD_USE_CONTINUATION=!0;var prettyPrintOne,prettyPrint;(function(){function e(e){function t(e){var t=e.charCodeAt(0);if(92!==t)return t;var n=e.charAt(1);return t=f[n],t?t:n>="0"&&"7">=n?parseInt(e.substring(1),8):"u"===n||"x"===n?parseInt(e.substring(2),16):e.charCodeAt(1)}function n(e){if(32>e)return(16>e?"\\x0":"\\x")+e.toString(16);var t=String.fromCharCode(e);return"\\"===t||"-"===t||"]"===t||"^"===t?"\\"+t:t}function r(e){var r=e.substring(1,e.length-1).match(RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),i=[],o="^"===r[0],s=["["];o&&s.push("^");for(var a=o?1:0,l=r.length;l>a;++a){var u=r[a];if(/\\[bdsw]/i.test(u))s.push(u);else{var c,f=t(u);l>a+2&&"-"===r[a+1]?(c=t(r[a+2]),a+=2):c=f,i.push([f,c]),65>c||f>122||(65>c||f>90||i.push([32|Math.max(65,f),32|Math.min(c,90)]),97>c||f>122||i.push([-33&Math.max(97,f),-33&Math.min(c,122)]))}}i.sort(function(e,t){return e[0]-t[0]||t[1]-e[1]});for(var h=[],d=[],a=0;i.length>a;++a){var p=i[a];p[0]<=d[1]+1?d[1]=Math.max(d[1],p[1]):h.push(d=p)}for(var a=0;h.length>a;++a){var p=h[a];s.push(n(p[0])),p[1]>p[0]&&(p[1]+1>p[0]&&s.push("-"),s.push(n(p[1])))}return s.push("]"),s.join("")}function i(e){for(var t=e.source.match(RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),i=t.length,a=[],l=0,u=0;i>l;++l){var c=t[l];if("("===c)++u;else if("\\"===c.charAt(0)){var f=+c.substring(1);f&&(u>=f?a[f]=-1:t[l]=n(f))}}for(var l=1;a.length>l;++l)-1===a[l]&&(a[l]=++o);for(var l=0,u=0;i>l;++l){var c=t[l];if("("===c)++u,a[u]||(t[l]="(?:");else if("\\"===c.charAt(0)){var f=+c.substring(1);f&&u>=f&&(t[l]="\\"+a[f])}}for(var l=0;i>l;++l)"^"===t[l]&&"^"!==t[l+1]&&(t[l]="");if(e.ignoreCase&&s)for(var l=0;i>l;++l){var c=t[l],h=c.charAt(0);c.length>=2&&"["===h?t[l]=r(c):"\\"!==h&&(t[l]=c.replace(/[a-zA-Z]/g,function(e){var t=e.charCodeAt(0);return"["+String.fromCharCode(-33&t,32|t)+"]"}))}return t.join("")}for(var o=0,s=!1,a=!1,l=0,u=e.length;u>l;++l){var c=e[l];if(c.ignoreCase)a=!0;else if(/[a-z]/i.test(c.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){s=!0,a=!1;break}}for(var f={b:8,t:9,n:10,v:11,f:12,r:13},h=[],l=0,u=e.length;u>l;++l){var c=e[l];if(c.global||c.multiline)throw Error(""+c);h.push("(?:"+i(c)+")")}return RegExp(h.join("|"),a?"gi":"g")}function t(e,t){function n(e){var l=e.nodeType;if(1==l){if(r.test(e.className))return;for(var u=e.firstChild;u;u=u.nextSibling)n(u);var c=e.nodeName.toLowerCase();("br"===c||"li"===c)&&(i[a]="\n",s[a<<1]=o++,s[1|a++<<1]=e)}else if(3==l||4==l){var f=e.nodeValue;f.length&&(f=t?f.replace(/\r\n?/g,"\n"):f.replace(/[ \t\r\n]+/g," "),i[a]=f,s[a<<1]=o,o+=f.length,s[1|a++<<1]=e)}}var r=/(?:^|\s)nocode(?:\s|$)/,i=[],o=0,s=[],a=0;return n(e),{sourceCode:i.join("").replace(/\n$/,""),spans:s}}function n(e,t,n,r){if(t){var i={sourceCode:t,basePos:e};n(i),r.push.apply(r,i.decorations)}}function r(e){for(var t=void 0,n=e.firstChild;n;n=n.nextSibling){var r=n.nodeType;t=1===r?t?e:n:3===r?U.test(n.nodeValue)?e:t:t}return t===e?void 0:t}function i(t,r){var i,o={};(function(){for(var n=t.concat(r),s=[],a={},l=0,u=n.length;u>l;++l){var c=n[l],f=c[3];if(f)for(var h=f.length;--h>=0;)o[f.charAt(h)]=c;var d=c[1],p=""+d;a.hasOwnProperty(p)||(s.push(d),a[p]=null)}s.push(/[\0-\uffff]/),i=e(s)})();var s=r.length,a=function(e){for(var t=e.sourceCode,l=e.basePos,c=[l,z],f=0,h=t.match(i)||[],d={},p=0,g=h.length;g>p;++p){var v,m=h[p],y=d[m],x=void 0;if("string"==typeof y)v=!1;else{var w=o[m.charAt(0)];if(w)x=m.match(w[1]),y=w[0];else{for(var b=0;s>b;++b)if(w=r[b],x=m.match(w[1])){y=w[0];break}x||(y=z)}v=y.length>=5&&"lang-"===y.substring(0,5),!v||x&&"string"==typeof x[1]||(v=!1,y=D),v||(d[m]=y)}var S=f;if(f+=m.length,v){var _=x[1],C=m.indexOf(_),N=C+_.length;x[2]&&(N=m.length-x[2].length,C=N-_.length);var k=y.substring(5);n(l+S,m.substring(0,C),a,c),n(l+S+C,_,u(k,_),c),n(l+S+N,m.substring(N),a,c)}else c.push(l+S,y)}e.decorations=c};return a}function o(e){var t=[],n=[];e.tripleQuotedStrings?t.push([E,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]):e.multiLineStrings?t.push([E,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):t.push([E,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]),e.verbatimStrings&&n.push([E,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var r=e.hashComments;r&&(e.cStyleComments?(r>1?t.push([O,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):t.push([O,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),n.push([E,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):t.push([O,/^#[^\r\n]*/,null,"#"])),e.cStyleComments&&(n.push([O,/^\/\/[^\r\n]*/,null]),n.push([O,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var o=e.regexLiterals;if(o){var s=o>1?"":"\n\r",a=s?".":"[\\S\\s]",l="/(?=[^/*"+s+"])"+"(?:[^/\\x5B\\x5C"+s+"]"+"|\\x5C"+a+"|\\x5B(?:[^\\x5C\\x5D"+s+"]"+"|\\x5C"+a+")*(?:\\x5D|$))+"+"/";n.push(["lang-regex",RegExp("^"+F+"("+l+")")])}var u=e.types;u&&n.push([A,u]);var c=(""+e.keywords).replace(/^ | $/g,"");c.length&&n.push([T,RegExp("^(?:"+c.replace(/[\s,]+/g,"|")+")\\b"),null]),t.push([z,/^\s+/,null," \r\n "]);var f="^.[^\\s\\w.$@'\"`/\\\\]*";return e.regexLiterals&&(f+="(?!s*/)"),n.push([R,/^@[a-z_$][a-z_$@0-9]*/i,null],[A,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[z,/^[a-z_$][a-z_$@0-9]*/i,null],[R,RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[z,/^\\[\s\S]?/,null],[L,RegExp(f),null]),i(t,n)}function s(e,t,n){function r(e){var t=e.nodeType;if(1!=t||o.test(e.className)){if((3==t||4==t)&&n){var l=e.nodeValue,u=l.match(s);if(u){var c=l.substring(0,u.index);e.nodeValue=c;var f=l.substring(u.index+u[0].length);if(f){var h=e.parentNode;h.insertBefore(a.createTextNode(f),e.nextSibling)}i(e),c||e.parentNode.removeChild(e)}}}else if("br"===e.nodeName)i(e),e.parentNode&&e.parentNode.removeChild(e);else for(var d=e.firstChild;d;d=d.nextSibling)r(d)}function i(e){function t(e,n){var r=n?e.cloneNode(!1):e,i=e.parentNode;if(i){var o=t(i,1),s=e.nextSibling;o.appendChild(r);for(var a=s;a;a=s)s=a.nextSibling,o.appendChild(a)}return r}for(;!e.nextSibling;)if(e=e.parentNode,!e)return;for(var n,r=t(e.nextSibling,0);(n=r.parentNode)&&1===n.nodeType;)r=n;u.push(r)}for(var o=/(?:^|\s)nocode(?:\s|$)/,s=/\r\n?|\n/,a=e.ownerDocument,l=a.createElement("li");e.firstChild;)l.appendChild(e.firstChild);for(var u=[l],c=0;u.length>c;++c)r(u[c]);t===(0|t)&&u[0].setAttribute("value",t);var f=a.createElement("ol");f.className="linenums";for(var h=Math.max(0,0|t-1)||0,c=0,d=u.length;d>c;++c)l=u[c],l.className="L"+(c+h)%10,l.firstChild||l.appendChild(a.createTextNode(" ")),f.appendChild(l);e.appendChild(f)}function a(e){var t=/\bMSIE\s(\d+)/.exec(navigator.userAgent);t=t&&8>=+t[1];var n=/\n/g,r=e.sourceCode,i=r.length,o=0,s=e.spans,a=s.length,l=0,u=e.decorations,c=u.length,f=0;u[c]=i;var h,d;for(d=h=0;c>d;)u[d]!==u[d+2]?(u[h++]=u[d++],u[h++]=u[d++]):d+=2;for(c=h,d=h=0;c>d;){for(var p=u[d],g=u[d+1],v=d+2;c>=v+2&&u[v+1]===g;)v+=2;u[h++]=p,u[h++]=g,d=v}c=u.length=h;var m,y=e.sourceNode;y&&(m=y.style.display,y.style.display="none");try{for(;a>l;){s[l];var x,w=s[l+2]||i,b=u[f+2]||i,v=Math.min(w,b),S=s[l+1];if(1!==S.nodeType&&(x=r.substring(o,v))){t&&(x=x.replace(n,"\r")),S.nodeValue=x;var _=S.ownerDocument,C=_.createElement("span");C.className=u[f+1];var N=S.parentNode;N.replaceChild(C,S),C.appendChild(S),w>o&&(s[l+1]=S=_.createTextNode(r.substring(v,w)),N.insertBefore(S,C.nextSibling))}o=v,o>=w&&(l+=2),o>=b&&(f+=2)}}finally{y&&(y.style.display=m)}}function l(e,t){for(var n=t.length;--n>=0;){var r=t[n];W.hasOwnProperty(r)?d.console&&console.warn("cannot override language handler %s",r):W[r]=e}}function u(e,t){return e&&W.hasOwnProperty(e)||(e=/^\s*</.test(t)?"default-markup":"default-code"),W[e]}function c(e){var n=e.langExtension;try{var r=t(e.sourceNode,e.pre),i=r.sourceCode;e.sourceCode=i,e.spans=r.spans,e.basePos=0,u(n,i)(e),a(e)}catch(o){d.console&&console.log(o&&o.stack||o)}}function f(e,t,n){var r=document.createElement("div");r.innerHTML="<pre>"+e+"</pre>",r=r.firstChild,n&&s(r,n,!0);var i={langExtension:t,numberLines:n,sourceNode:r,pre:1};return c(i),r.innerHTML}function h(e,t){function n(e){return o.getElementsByTagName(e)}function i(){for(var t=d.PR_SHOULD_USE_CONTINUATION?g.now()+250:1/0;u.length>m&&t>g.now();m++){for(var n=u[m],o=C,l=n;l=l.previousSibling;){var f=l.nodeType,h=(7===f||8===f)&&l.nodeValue;if(h?!/^\??prettify\b/.test(h):3!==f||/\S/.test(l.nodeValue))break;if(h){o={},h.replace(/\b(\w+)=([\w:.%+-]+)/g,function(e,t,n){o[t]=n});break}}var p=n.className;if((o!==C||x.test(p))&&!w.test(p)){for(var N=!1,k=n.parentNode;k;k=k.parentNode){var $=k.tagName;if(_.test($)&&k.className&&x.test(k.className)){N=!0;break}}if(!N){n.className+=" prettyprinted";var P=o.lang;if(!P){P=p.match(y);var E;!P&&(E=r(n))&&S.test(E.tagName)&&(P=E.className.match(y)),P&&(P=P[1])}var T;if(b.test(n.tagName))T=1;else{var O=n.currentStyle,A=a.defaultView,R=O?O.whiteSpace:A&&A.getComputedStyle?A.getComputedStyle(n,null).getPropertyValue("white-space"):0;T=R&&"pre"===R.substring(0,3)}var L=o.linenums;(L="true"===L||+L)||(L=p.match(/\blinenums\b(?::(\d+))?/),L=L?L[1]&&L[1].length?+L[1]:!0:!1),L&&s(n,L,T),v={langExtension:P,sourceNode:n,numberLines:L,pre:T},c(v)}}}u.length>m?setTimeout(i,250):"function"==typeof e&&e()}for(var o=t||document.body,a=o.ownerDocument||document,l=[n("pre"),n("code"),n("xmp")],u=[],f=0;l.length>f;++f)for(var h=0,p=l[f].length;p>h;++h)u.push(l[f][h]);l=null;var g=Date;g.now||(g={now:function(){return+new Date}});var v,m=0,y=/\blang(?:uage)?-([\w.]+)(?!\S)/,x=/\bprettyprint\b/,w=/\bprettyprinted\b/,b=/pre|xmp/i,S=/^code$/i,_=/^(?:pre|code|xmp)$/i,C={};i()}var d=window,p=["break,continue,do,else,for,if,return,while"],g=[p,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],v=[g,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],m=[v,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],y=[v,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],x=[y,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],w="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",b=[v,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],S="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",_=[p,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],C=[p,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],N=[p,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],k=[p,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],$=[m,x,b,S,_,C,k],P=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,E="str",T="kwd",O="com",A="typ",R="lit",L="pun",z="pln",I="tag",j="dec",D="src",B="atn",M="atv",H="nocode",F="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*",U=/\S/,V=o({keywords:$,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),W={};l(V,["default-code"]),l(i([],[[z,/^[^<?]+/],[j,/^<!\w[^>]*(?:>|$)/],[O,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),l(i([[z,/^[\s]+/,null," \r\n"],[M,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[I,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[B,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[L,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),l(i([],[[M,/^[\s\S]+/]]),["uq.val"]),l(o({keywords:m,hashComments:!0,cStyleComments:!0,types:P}),["c","cc","cpp","cxx","cyc","m"]),l(o({keywords:"null,true,false"}),["json"]),l(o({keywords:x,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:P}),["cs"]),l(o({keywords:y,cStyleComments:!0}),["java"]),l(o({keywords:k,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),l(o({keywords:_,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),l(o({keywords:S,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),l(o({keywords:C,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),l(o({keywords:b,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]),l(o({keywords:w,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),l(o({keywords:N,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]),l(i([],[[E,/^[\s\S]+/]]),["regex"]);var q=d.PR={createSimpleLexer:i,registerLangHandler:l,sourceDecorator:o,PR_ATTRIB_NAME:B,PR_ATTRIB_VALUE:M,PR_COMMENT:O,PR_DECLARATION:j,PR_KEYWORD:T,PR_LITERAL:R,PR_NOCODE:H,PR_PLAIN:z,PR_PUNCTUATION:L,PR_SOURCE:D,PR_STRING:E,PR_TAG:I,PR_TYPE:A,prettyPrintOne:IN_GLOBAL_SCOPE?d.prettyPrintOne=f:prettyPrintOne=f,prettyPrint:prettyPrint=IN_GLOBAL_SCOPE?d.prettyPrint=h:prettyPrint=h};"function"==typeof define&&define.amd&&define("google-code-prettify",[],function(){return q})})(),function(){var e=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1},t=[].slice;(function(e,t){return"function"==typeof define&&define.amd?define("waypoints",["jquery"],function(n){return t(n,e)}):t(e.jQuery,e)})(this,function(n,r){var i,o,s,a,l,u,c,f,h,d,p,g,v,m,y,x;return i=n(r),f=e.call(r,"ontouchstart")>=0,a={horizontal:{},vertical:{}},l=1,c={},u="waypoints-context-id",p="resize.waypoints",g="scroll.waypoints",v=1,m="waypoints-waypoint-ids",y="waypoint",x="waypoints",o=function(){function e(e){var t=this;this.$element=e,this.element=e[0],this.didResize=!1,this.didScroll=!1,this.id="context"+l++,this.oldScroll={x:e.scrollLeft(),y:e.scrollTop()},this.waypoints={horizontal:{},vertical:{}},e.data(u,this.id),c[this.id]=this,e.bind(g,function(){var e;return t.didScroll||f?void 0:(t.didScroll=!0,e=function(){return t.doScroll(),t.didScroll=!1},r.setTimeout(e,n[x].settings.scrollThrottle))}),e.bind(p,function(){var e;return t.didResize?void 0:(t.didResize=!0,e=function(){return n[x]("refresh"),t.didResize=!1},r.setTimeout(e,n[x].settings.resizeThrottle))})}return e.prototype.doScroll=function(){var e,t=this;return e={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!f||e.vertical.oldScroll&&e.vertical.newScroll||n[x]("refresh"),n.each(e,function(e,r){var i,o,s;return s=[],o=r.newScroll>r.oldScroll,i=o?r.forward:r.backward,n.each(t.waypoints[e],function(e,t){var n,i;return r.oldScroll<(n=t.offset)&&r.newScroll>=n?s.push(t):r.newScroll<(i=t.offset)&&r.oldScroll>=i?s.push(t):void 0}),s.sort(function(e,t){return e.offset-t.offset}),o||s.reverse(),n.each(s,function(e,t){return t.options.continuous||e===s.length-1?t.trigger([i]):void 0})}),this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.refresh=function(){var e,t,r,i=this;return r=n.isWindow(this.element),t=this.$element.offset(),this.doScroll(),e={horizontal:{contextOffset:r?0:t.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:r?0:t.top,contextScroll:r?0:this.oldScroll.y,contextDimension:r?n[x]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},n.each(e,function(e,t){return n.each(i.waypoints[e],function(e,r){var i,o,s,a,l;return i=r.options.offset,s=r.offset,o=n.isWindow(r.element)?0:r.$element.offset()[t.offsetProp],n.isFunction(i)?i=i.apply(r.element):"string"==typeof i&&(i=parseFloat(i),r.options.offset.indexOf("%")>-1&&(i=Math.ceil(t.contextDimension*i/100))),r.offset=o-t.contextOffset+t.contextScroll-i,r.options.onlyOnScroll&&null!=s||!r.enabled?void 0:null!==s&&(a=t.oldScroll)>s&&r.offset>=a?r.trigger([t.backward]):null!==s&&s>(l=t.oldScroll)&&l>=r.offset?r.trigger([t.forward]):null===s&&t.oldScroll>=r.offset?r.trigger([t.forward]):void 0})})},e.prototype.checkEmpty=function(){return n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)?(this.$element.unbind([p,g].join(" ")),delete c[this.id]):void 0},e}(),s=function(){function e(e,t,r){var i,o;r=n.extend({},n.fn[y].defaults,r),"bottom-in-view"===r.offset&&(r.offset=function(){var e;return e=n[x]("viewportHeight"),n.isWindow(t.element)||(e=t.$element.height()),e-n(this).outerHeight()}),this.$element=e,this.element=e[0],this.axis=r.horizontal?"horizontal":"vertical",this.callback=r.handler,this.context=t,this.enabled=r.enabled,this.id="waypoints"+v++,this.offset=null,this.options=r,t.waypoints[this.axis][this.id]=this,a[this.axis][this.id]=this,i=null!=(o=e.data(m))?o:[],i.push(this.id),e.data(m,i)}return e.prototype.trigger=function(e){return this.enabled?(null!=this.callback&&this.callback.apply(this.element,e),this.options.triggerOnce?this.destroy():void 0):void 0},e.prototype.disable=function(){return this.enabled=!1},e.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},e.prototype.destroy=function(){return delete a[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},e.getWaypointsByElement=function(e){var t,r;return(r=n(e).data(m))?(t=n.extend({},a.horizontal,a.vertical),n.map(r,function(e){return t[e]})):[]},e}(),d={init:function(e,t){var r;return null==t&&(t={}),null==(r=t.handler)&&(t.handler=e),this.each(function(){var e,r,i,a;return e=n(this),i=null!=(a=t.context)?a:n.fn[y].defaults.context,n.isWindow(i)||(i=e.closest(i)),i=n(i),r=c[i.data(u)],r||(r=new o(i)),new s(e,r,t)}),n[x]("refresh"),this},disable:function(){return d._invoke(this,"disable")},enable:function(){return d._invoke(this,"enable")},destroy:function(){return d._invoke(this,"destroy")},prev:function(e,t){return d._traverse.call(this,e,t,function(e,t,n){return t>0?e.push(n[t-1]):void 0})},next:function(e,t){return d._traverse.call(this,e,t,function(e,t,n){return n.length-1>t?e.push(n[t+1]):void 0})},_traverse:function(e,t,i){var o,s;return null==e&&(e="vertical"),null==t&&(t=r),s=h.aggregate(t),o=[],this.each(function(){var t;return t=n.inArray(this,s[e]),i(o,t,s[e])}),this.pushStack(o)},_invoke:function(e,t){return e.each(function(){var e;return e=s.getWaypointsByElement(this),n.each(e,function(e,n){return n[t](),!0})}),this}},n.fn[y]=function(){var e,r;return r=arguments[0],e=arguments.length>=2?t.call(arguments,1):[],d[r]?d[r].apply(this,e):n.isFunction(r)?d.init.apply(this,arguments):n.isPlainObject(r)?d.init.apply(this,[null,r]):r?n.error("The "+r+" method does not exist in jQuery Waypoints."):n.error("jQuery Waypoints needs a callback function or handler option.")},n.fn[y].defaults={context:r,continuous:!0,enabled:!0,horizontal:!1,offset:0,triggerOnce:!1},h={refresh:function(){return n.each(c,function(e,t){return t.refresh()})},viewportHeight:function(){var e;return null!=(e=r.innerHeight)?e:i.height()},aggregate:function(e){var t,r,i;return t=a,e&&(t=null!=(i=c[n(e).data(u)])?i.waypoints:void 0),t?(r={horizontal:[],vertical:[]},n.each(r,function(e,i){return n.each(t[e],function(e,t){return i.push(t)}),i.sort(function(e,t){return e.offset-t.offset}),r[e]=n.map(i,function(e){return e.element}),r[e]=n.unique(r[e])}),r):[]},above:function(e){return null==e&&(e=r),h._filter(e,"vertical",function(e,t){return t.offset<=e.oldScroll.y})},below:function(e){return null==e&&(e=r),h._filter(e,"vertical",function(e,t){return t.offset>e.oldScroll.y})},left:function(e){return null==e&&(e=r),h._filter(e,"horizontal",function(e,t){return t.offset<=e.oldScroll.x})},right:function(e){return null==e&&(e=r),h._filter(e,"horizontal",function(e,t){return t.offset>e.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(e,t){return d[e]=t},_invoke:function(e){var t;return t=n.extend({},a.vertical,a.horizontal),n.each(t,function(t,n){return n[e](),!0})},_filter:function(e,t,r){var i,o;return(i=c[n(e).data(u)])?(o=[],n.each(i.waypoints[t],function(e,t){return r(i,t)?o.push(t):void 0}),o.sort(function(e,t){return e.offset-t.offset}),n.map(o,function(e){return e.element})):[]}},n[x]=function(){var e,n;return n=arguments[0],e=arguments.length>=2?t.call(arguments,1):[],h[n]?h[n].apply(null,e):h.aggregate.call(null,n)},n[x].settings={resizeThrottle:100,scrollThrottle:30},i.load(function(){return n[x]("refresh")})})}.call(this),function(){function e(e){this.path=e;var t=this.path.split("."),n=t.slice(0,t.length-1).join("."),r=t[t.length-1];this.at_2x_path=n+"@2x."+r}function t(t){this.el=t,this.path=new e(this.el.getAttribute("src"));var n=this;this.path.check_2x_variant(function(e){e&&n.swap()})}var n="undefined"==typeof exports?window:exports;n.RetinaImagePath=e,e.confirmed_paths=[],e.prototype.is_external=function(){return!!this.path.match(/^https?\:/i)&&!this.path.match("//"+document.domain)},e.prototype.check_2x_variant=function(t){var n,r=this;return this.is_external()?t(!1):this.at_2x_path in e.confirmed_paths?t(!0):(n=new XMLHttpRequest,n.open("HEAD",this.at_2x_path),n.onreadystatechange=function(){return 4!=n.readyState?t(!1):n.status>=200&&399>=n.status?(e.confirmed_paths.push(r.at_2x_path),t(!0)):t(!1)},n.send(),void 0)},n.RetinaImage=t,t.prototype.swap=function(e){function t(){n.el.complete?(n.el.setAttribute("width",n.el.offsetWidth),n.el.setAttribute("height",n.el.offsetHeight),n.el.setAttribute("src",e)):setTimeout(t,5)}e===void 0&&(e=this.path.at_2x_path);var n=this;t()},n.devicePixelRatio>1&&(window.onload=function(){var e,n,r=document.getElementsByTagName("img"),i=[];for(e=0;r.length>e;e++)n=r[e],i.push(new t(n))})}(),$(function(){"use strict";(function(){var e=$(".fixedHeader"),t=$(".primarySection header").clone();e.find(".container").append(t),$(".features").waypoint(function(t){"down"===t?e.fadeIn("fast"):e.fadeOut("fast")}),$(".waypoint").waypoint(function(t){var n,r=$(this);n="down"===t?r.data("current"):r.data("previous"),e.find(".selected").removeClass("selected"),e.find("."+n).addClass("selected")},{offset:35}),$(document).on("click",".scrollTo",function(e){var t=this.href,n=t.substr(t.indexOf("#"));e.preventDefault(),$(".scrollTo.selected").removeClass("selected"),$(this).addClass("selected"),$("html, body").animate({scrollTop:$(n).offset().top},1e3)})})(),function(){function e(){t(),r()}function t(){s.mouseenter(function(){n()}).mouseleave(function(){r()})}function n(){clearInterval(o)}function r(){o=setInterval(function(){i=l,l=i.next(),l[0]||(l=a),i.fadeOut(),l.fadeIn()},4e3)}var i,o,s=$(".screenshots img"),a=s.first(),l=a;e()}(),prettyPrint()});