diff --git a/static/js/lib.js b/static/js/lib.js old mode 100755 new mode 100644 index 8070281..397eabe --- a/static/js/lib.js +++ b/static/js/lib.js @@ -1 +1 @@ -!function(){for(var r=0,t=["ms","moz","webkit","o"],e=0;e>10|55296,1023&n|56320)}function s(){w()}var t,f,b,r,a,d,c,m,x,l,h,w,T,o,k,g,p,y,v,P="sizzle"+ +new Date,_=i.document,A=0,n=0,S=at(),E=at(),C=at(),M=function(t,e){return t===e&&(h=!0),0},D={}.hasOwnProperty,e=[],F=e.pop,I=e.push,O=e.push,L=e.slice,N=function(t,e){for(var i=0,n=t.length;i+~]|"+V+")"+V+"*"),Y=new RegExp("="+V+"*([^\\]'\"]*?)"+V+"*\\]","g"),U=new RegExp(B),G=new RegExp("^"+j+"$"),Z={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+V+"*(even|odd|(([+-]|)(\\d*)n|)"+V+"*(?:([+-]|)"+V+"*(\\d+)|))"+V+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+V+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+V+"*((?:-\\d)?\\d*)"+V+"*\\)|)(?=[^-]|$)","i")},$=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\([\\da-f]{1,6}"+V+"?|("+V+")|.)","ig"),it=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},st=gt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{O.apply(e=L.call(_.childNodes),_.childNodes),e[_.childNodes.length].nodeType}catch(t){O={apply:e.length?function(t,e){I.apply(t,L.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function rt(t,e,i,n){var s,r,a,o,l,h,p,u=e&&e.ownerDocument,c=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==c&&9!==c&&11!==c)return i;if(!n&&((e?e.ownerDocument||e:_)!==T&&w(e),e=e||T,k)){if(11!==c&&(l=J.exec(t)))if(s=l[1]){if(9===c){if(!(a=e.getElementById(s)))return i;if(a.id===s)return i.push(a),i}else if(u&&(a=u.getElementById(s))&&v(e,a)&&a.id===s)return i.push(a),i}else{if(l[2])return O.apply(i,e.getElementsByTagName(t)),i;if((s=l[3])&&f.getElementsByClassName&&e.getElementsByClassName)return O.apply(i,e.getElementsByClassName(s)),i}if(f.qsa&&!C[t+" "]&&(!g||!g.test(t))){if(1!==c)u=e,p=t;else if("object"!==e.nodeName.toLowerCase()){for((o=e.getAttribute("id"))?o=o.replace(it,nt):e.setAttribute("id",o=P),r=(h=d(t)).length;r--;)h[r]="#"+o+" "+mt(h[r]);p=h.join(","),u=tt.test(t)&&ft(e.parentNode)||e}if(p)try{return O.apply(i,u.querySelectorAll(p)),i}catch(t){}finally{o===P&&e.removeAttribute("id")}}}return m(t.replace(H,"$1"),e,i,n)}function at(){var i=[];function n(t,e){return i.push(t+" ")>b.cacheLength&&delete n[i.shift()],n[t+" "]=e}return n}function ot(t){return t[P]=!0,t}function lt(t){var e=T.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ht(t,e){for(var i=t.split("|"),n=i.length;n--;)b.attrHandle[i[n]]=e}function pt(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ut(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&st(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ct(a){return ot(function(r){return r=+r,ot(function(t,e){for(var i,n=a([],t.length,r),s=n.length;s--;)t[i=n[s]]&&(t[i]=!(e[i]=t[i]))})})}function ft(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in f=rt.support={},a=rt.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},w=rt.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:_;return n!==T&&9===n.nodeType&&n.documentElement&&(o=(T=n).documentElement,k=!a(T),_!==T&&(i=T.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",s,!1):i.attachEvent&&i.attachEvent("onunload",s)),f.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),f.getElementsByTagName=lt(function(t){return t.appendChild(T.createComment("")),!t.getElementsByTagName("*").length}),f.getElementsByClassName=Q.test(T.getElementsByClassName),f.getById=lt(function(t){return o.appendChild(t).id=P,!T.getElementsByName||!T.getElementsByName(P).length}),f.getById?(b.filter.ID=function(t){var e=t.replace(et,u);return function(t){return t.getAttribute("id")===e}},b.find.ID=function(t,e){if(void 0!==e.getElementById&&k){var i=e.getElementById(t);return i?[i]:[]}}):(b.filter.ID=function(t){var i=t.replace(et,u);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===i}},b.find.ID=function(t,e){if(void 0!==e.getElementById&&k){var i,n,s,r=e.getElementById(t);if(r){if((i=r.getAttributeNode("id"))&&i.value===t)return[r];for(s=e.getElementsByName(t),n=0;r=s[n++];)if((i=r.getAttributeNode("id"))&&i.value===t)return[r]}return[]}}),b.find.TAG=f.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):f.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,r=e.getElementsByTagName(t);if("*"!==t)return r;for(;i=r[s++];)1===i.nodeType&&n.push(i);return n},b.find.CLASS=f.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&k)return e.getElementsByClassName(t)},p=[],g=[],(f.qsa=Q.test(T.querySelectorAll))&&(lt(function(t){o.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+V+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+V+"*(?:value|"+R+")"),t.querySelectorAll("[id~="+P+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+P+"+*").length||g.push(".#.+[+~]")}),lt(function(t){t.innerHTML="";var e=T.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+V+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),o.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(f.matchesSelector=Q.test(y=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&<(function(t){f.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),p.push("!=",B)}),g=g.length&&new RegExp(g.join("|")),p=p.length&&new RegExp(p.join("|")),e=Q.test(o.compareDocumentPosition),v=e||Q.test(o.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},M=e?function(t,e){if(t===e)return h=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!f.sortDetached&&e.compareDocumentPosition(t)===i?t===T||t.ownerDocument===_&&v(_,t)?-1:e===T||e.ownerDocument===_&&v(_,e)?1:l?N(l,t)-N(l,e):0:4&i?-1:1)}:function(t,e){if(t===e)return h=!0,0;var i,n=0,s=t.parentNode,r=e.parentNode,a=[t],o=[e];if(!s||!r)return t===T?-1:e===T?1:s?-1:r?1:l?N(l,t)-N(l,e):0;if(s===r)return pt(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)o.unshift(i);for(;a[n]===o[n];)n++;return n?pt(a[n],o[n]):a[n]===_?-1:o[n]===_?1:0}),T},rt.matches=function(t,e){return rt(t,null,null,e)},rt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==T&&w(t),e=e.replace(Y,"='$1']"),f.matchesSelector&&k&&!C[e+" "]&&(!p||!p.test(e))&&(!g||!g.test(e)))try{var i=y.call(t,e);if(i||f.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,u),t[3]=(t[3]||t[4]||t[5]||"").replace(et,u),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||rt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&rt.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return Z.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&U.test(i)&&(e=d(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,u).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|"+V+")"+t+"("+V+"|$)"))&&S(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(i,n,s){return function(t){var e=rt.attr(t,i);return null==e?"!="===n:!n||(e+="","="===n?e===s:"!="===n?e!==s:"^="===n?s&&0===e.indexOf(s):"*="===n?s&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,E=/^.[^:#\[\.,]*$/;function C(t,i,n){return P.isFunction(i)?P.grep(t,function(t,e){return!!i.call(t,e,t)!==n}):i.nodeType?P.grep(t,function(t){return t===i!==n}):"string"!=typeof i?P.grep(t,function(t){return-1)[^>]*|#([\w-]+))$/;(P.fn.init=function(t,e,i){var n,s;if(!t)return this;if(i=i||M,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):P.isFunction(t)?void 0!==i.ready?i.ready(t):t(P):P.makeArray(t,this);if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:D.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof P?e[0]:e,P.merge(this,P.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:k,!0)),S.test(n[1])&&P.isPlainObject(e))for(n in e)P.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(s=k.getElementById(n[2]))&&(this[0]=s,this.length=1),this}).prototype=P.fn,M=P(k);var F=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function O(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}P.fn.extend({has:function(t){var e=P(t,this),i=e.length;return this.filter(function(){for(var t=0;t\x20\t\r\n\f]+)/i,at=/^$|\/(?:java|ecma)script/i,ot={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function lt(t,e){var i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&A(t,e)?P.merge([t],i):i}function ht(t,e){for(var i=0,n=t.length;ix",g.noCloneChecked=!!pt.cloneNode(!0).lastChild.defaultValue;var dt=k.documentElement,mt=/^key/,gt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,yt=/^([^.]*)(?:\.(.+)|)/;function vt(){return!0}function _t(){return!1}function bt(){try{return k.activeElement}catch(t){}}function xt(t,e,i,n,s,r){var a,o;if("object"==typeof e){for(o in"string"!=typeof i&&(n=n||i,i=void 0),e)xt(t,o,i,n,e[o],r);return t}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=_t;else if(!s)return t;return 1===r&&(a=s,(s=function(t){return P().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=P.guid++)),t.each(function(){P.event.add(this,e,s,n,i)})}P.event={global:{},add:function(e,t,i,n,s){var r,a,o,l,h,p,u,c,f,d,m,g=X.get(e);if(g)for(i.handler&&(i=(r=i).handler,s=r.selector),s&&P.find.matchesSelector(dt,s),i.guid||(i.guid=P.guid++),(l=g.events)||(l=g.events={}),(a=g.handle)||(a=g.handle=function(t){return void 0!==P&&P.event.triggered!==t.type?P.event.dispatch.apply(e,arguments):void 0}),h=(t=(t||"").match(L)||[""]).length;h--;)f=m=(o=yt.exec(t[h])||[])[1],d=(o[2]||"").split(".").sort(),f&&(u=P.event.special[f]||{},f=(s?u.delegateType:u.bindType)||f,u=P.event.special[f]||{},p=P.extend({type:f,origType:m,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&P.expr.match.needsContext.test(s),namespace:d.join(".")},r),(c=l[f])||((c=l[f]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,n,d,a)||e.addEventListener&&e.addEventListener(f,a)),u.add&&(u.add.call(e,p),p.handler.guid||(p.handler.guid=i.guid)),s?c.splice(c.delegateCount++,0,p):c.push(p),P.event.global[f]=!0)},remove:function(t,e,i,n,s){var r,a,o,l,h,p,u,c,f,d,m,g=X.hasData(t)&&X.get(t);if(g&&(l=g.events)){for(h=(e=(e||"").match(L)||[""]).length;h--;)if(f=m=(o=yt.exec(e[h])||[])[1],d=(o[2]||"").split(".").sort(),f){for(u=P.event.special[f]||{},c=l[f=(n?u.delegateType:u.bindType)||f]||[],o=o[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=c.length;r--;)p=c[r],!s&&m!==p.origType||i&&i.guid!==p.guid||o&&!o.test(p.namespace)||n&&n!==p.selector&&("**"!==n||!p.selector)||(c.splice(r,1),p.selector&&c.delegateCount--,u.remove&&u.remove.call(t,p));a&&!c.length&&(u.teardown&&!1!==u.teardown.call(t,d,g.handle)||P.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)P.event.remove(t,f+e[h],i,n,!0);P.isEmptyObject(l)&&X.remove(t,"handle events")}},dispatch:function(t){var e,i,n,s,r,a,o=P.event.fix(t),l=new Array(arguments.length),h=(X.get(this,"events")||{})[o.type]||[],p=P.event.special[o.type]||{};for(l[0]=o,e=1;e\x20\t\r\n\f]*)[^>]*)\/>/gi,Tt=/\s*$/g;function St(t,e){return A(t,"table")&&A(11!==e.nodeType?e:e.firstChild,"tr")&&P(">tbody",t)[0]||t}function Et(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ct(t){var e=Pt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Mt(t,e){var i,n,s,r,a,o,l,h;if(1===e.nodeType){if(X.hasData(t)&&(r=X.access(t),a=X.set(e,r),h=r.events))for(s in delete a.handle,a.events={},h)for(i=0,n=h[s].length;i")},clone:function(t,e,i){var n,s,r,a,o,l,h,p=t.cloneNode(!0),u=P.contains(t.ownerDocument,t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||P.isXMLDoc(t)))for(a=lt(p),n=0,s=(r=lt(t)).length;n").prop({charset:i.scriptCharset,src:i.url}).on("load error",s=function(t){n.remove(),s=null,t&&e("error"===t.type?404:200,t.type)}),k.head.appendChild(n[0])},abort:function(){s&&s()}}});var He,We=[],Xe=/(=)\?(?=&|$)|\?\?/;P.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=We.pop()||P.expando+"_"+we++;return this[t]=!0,t}}),P.ajaxPrefilter("json jsonp",function(t,e,i){var n,s,r,a=!1!==t.jsonp&&(Xe.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xe.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=P.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Xe,"$1"+n):!1!==t.jsonp&&(t.url+=(Te.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return r||P.error(n+" was not called"),r[0]},t.dataTypes[0]="json",s=T[n],T[n]=function(){r=arguments},i.always(function(){void 0===s?P(T).removeProp(n):T[n]=s,t[n]&&(t.jsonpCallback=e.jsonpCallback,We.push(n)),r&&P.isFunction(s)&&s(r[0]),r=s=void 0}),"script"}),g.createHTMLDocument=((He=k.implementation.createHTMLDocument("").body).innerHTML="
",2===He.childNodes.length),P.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(g.createHTMLDocument?((n=(e=k.implementation.createHTMLDocument("")).createElement("base")).href=k.location.href,e.head.appendChild(n)):e=k),r=!i&&[],(s=S.exec(t))?[e.createElement(s[1])]:(s=ft([t],e,r),r&&r.length&&P(r).remove(),P.merge([],s.childNodes)));var n,s,r},P.fn.load=function(t,e,i){var n,s,r,a=this,o=t.indexOf(" ");return-1").append(P.parseHTML(t)).find(n):t)}).always(i&&function(t,e){a.each(function(){i.apply(this,r||[t.responseText,e,t])})}),this},P.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){P.fn[e]=function(t){return this.on(e,t)}}),P.expr.pseudos.animated=function(e){return P.grep(P.timers,function(t){return e===t.elem}).length},P.offset={setOffset:function(t,e,i){var n,s,r,a,o,l,h=P.css(t,"position"),p=P(t),u={};"static"===h&&(t.style.position="relative"),o=p.offset(),r=P.css(t,"top"),l=P.css(t,"left"),s=("absolute"===h||"fixed"===h)&&-1<(r+l).indexOf("auto")?(a=(n=p.position()).top,n.left):(a=parseFloat(r)||0,parseFloat(l)||0),P.isFunction(e)&&(e=e.call(t,i,P.extend({},o))),null!=e.top&&(u.top=e.top-o.top+a),null!=e.left&&(u.left=e.left-o.left+s),"using"in e?e.using.call(t,u):p.css(u)}},P.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){P.offset.setOffset(this,e,t)});var t,i,n,s,r=this[0];return r?r.getClientRects().length?(n=r.getBoundingClientRect(),i=(t=r.ownerDocument).documentElement,s=t.defaultView,{top:n.top+s.pageYOffset-i.clientTop,left:n.left+s.pageXOffset-i.clientLeft}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===P.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),A(t[0],"html")||(n=t.offset()),n={top:n.top+P.css(t[0],"borderTopWidth",!0),left:n.left+P.css(t[0],"borderLeftWidth",!0)}),{top:e.top-n.top-P.css(i,"marginTop",!0),left:e.left-n.left-P.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===P.css(t,"position");)t=t.offsetParent;return t||dt})}}),P.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,s){var r="pageYOffset"===s;P.fn[e]=function(t){return H(this,function(t,e,i){var n;return P.isWindow(t)?n=t:9===t.nodeType&&(n=t.defaultView),void 0===i?n?n[s]:t[e]:void(n?n.scrollTo(r?n.pageXOffset:i,r?i:n.pageYOffset):t[e]=i)},e,t,arguments.length)}}),P.each(["top","left"],function(t,i){P.cssHooks[i]=Wt(g.pixelPosition,function(t,e){if(e)return e=Ht(t,i),zt.test(e)?P(t).position()[i]+"px":e})}),P.each({Height:"height",Width:"width"},function(a,o){P.each({padding:"inner"+a,content:o,"":"outer"+a},function(n,r){P.fn[r]=function(t,e){var i=arguments.length&&(n||"boolean"!=typeof t),s=n||(!0===t||!0===e?"margin":"border");return H(this,function(t,e,i){var n;return P.isWindow(t)?0===r.indexOf("outer")?t["inner"+a]:t.document.documentElement["client"+a]:9===t.nodeType?(n=t.documentElement,Math.max(t.body["scroll"+a],n["scroll"+a],t.body["offset"+a],n["offset"+a],n["client"+a])):void 0===i?P.css(t,e,s):P.style(t,e,i,s)},o,i?t:void 0,i)}})}),P.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}}),P.holdReady=function(t){t?P.readyWait++:P.ready(!0)},P.isArray=Array.isArray,P.parseJSON=JSON.parse,P.nodeName=A,"function"==typeof define&&define.amd&&define("jquery",[],function(){return P});var Ye=T.jQuery,Ue=T.$;return P.noConflict=function(t){return T.$===P&&(T.$=Ue),t&&T.jQuery===P&&(T.jQuery=Ye),P},t||(T.jQuery=T.$=P),P}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t.Vimeo=t.Vimeo||{},t.Vimeo.Player=e())}(this,function(){"use strict";var t="undefined"!=typeof global&&"[object global]"==={}.toString.call(global);function r(t,e){return 0===t.indexOf(e.toLowerCase())?t:""+e.toLowerCase()+t.substr(0,1).toUpperCase()+t.substr(1)}function o(t){return/^(https?:)?\/\/((player|www).)?vimeo.com(?=$|\/)/.test(t)}function l(t){var e,i=0>0,0!==this._cycle&&this._cycle===this._totalTime/a&&d<=t&&this._cycle--,this._time=this._totalTime-this._cycle*a,this._yoyo&&0!=(1&this._cycle)&&(this._time=g-this._time,(u=this._yoyoEase||this.vars.yoyoEase)&&(this._yoyoEase||(!0!==u||this._initted?this._yoyoEase=u=!0===u?this._ease:u instanceof Ease?u:Ease.map[u]:(u=this.vars.ease,this._yoyoEase=u=u?u instanceof Ease?u:"function"==typeof u?new Ease(u,this.vars.easeParams):Ease.map[u]||v.defaultEase:v.defaultEase)),this.ratio=u?1-u.getRatio((g-this._time)/g):0)),this._time>g?this._time=g:this._time<0&&(this._time=0)),this._easeType&&!u?(o=this._time/g,(1===(l=this._easeType)||3===l&&.5<=o)&&(o=1-o),3===l&&(o*=2),1===(h=this._easePower)?o*=o:2===h?o*=o*o:3===h?o*=o*o*o:4===h&&(o*=o*o*o*o),1===l?this.ratio=1-o:2===l?this.ratio=o:this._time/g<.5?this.ratio=o/2:this.ratio=1-o/2):u||(this.ratio=this._ease.getRatio(this._time/g))),f!==this._time||i||m!==this._cycle){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=f,this._totalTime=d,this._rawPrevTime=y,this._cycle=m,x.lazyTweens.push(this),void(this._lazy=[t,e]);!this._time||n||u?n&&this._ease._calcEnd&&!u&&(this.ratio=this._ease.getRatio(0===this._time?0:1)):this.ratio=this._ease.getRatio(this._time/g)}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==f&&0<=t&&(this._active=!0),0===d&&(2===this._initted&&0this._duration&&(t=this._duration),this._yoyo&&0!=(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},t.duration=function(t){return arguments.length?n.prototype.duration.call(this,t):this._duration},t.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},t.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},t.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},t.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},_},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(p,u,c){function f(t){u.call(this,t),this._labels={},this.autoRemoveChildren=!0===this.vars.autoRemoveChildren,this.smoothChildTiming=!0===this.vars.smoothChildTiming,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var e,i,n=this.vars;for(i in n)e=n[i],_(e)&&-1!==e.join("").indexOf("{self}")&&(n[i]=this._swapSelfInParams(e));_(n.tweens)&&this.add(n.tweens,0,n.align,n.stagger)}function d(t){var e,i={};for(e in t)i[e]=t[e];return i}function m(t,e,i){var n,s,r=t.cycle;for(n in r)s=r[n],t[n]="function"==typeof s?s(i,e[i]):s[i%s.length];delete t.cycle}function g(t){for(var e=[],i=t.length,n=0;n!==i;e.push(t[n++]));return e}var y=1e-10,t=c._internals,e=f._internals={},v=t.isSelector,_=t.isArray,b=t.lazyTweens,x=t.lazyRender,a=_gsScope._gsDefine.globals,r=e.pauseCallback=function(){},i=f.prototype=new u;return f.version="1.20.3",i.constructor=f,i.kill()._gc=i._forcingPlayhead=i._hasPause=!1,i.to=function(t,e,i,n){var s=i.repeat&&a.TweenMax||c;return e?this.add(new s(t,e,i),n):this.set(t,i,n)},i.from=function(t,e,i,n){return this.add((i.repeat&&a.TweenMax||c).from(t,e,i),n)},i.fromTo=function(t,e,i,n,s){var r=n.repeat&&a.TweenMax||c;return e?this.add(r.fromTo(t,e,i,n),s):this.set(t,n,s)},i.staggerTo=function(t,e,i,n,s,r,a,o){var l,h,p=new f({onComplete:r,onCompleteParams:a,callbackScope:o,smoothChildTiming:this.smoothChildTiming}),u=i.cycle;for("string"==typeof t&&(t=c.selector(t)||t),v(t=t||[])&&(t=g(t)),(n=n||0)<0&&((t=g(t)).reverse(),n*=-1),h=0;ht._startTime;l._timeline;)h&&l._timeline.smoothChildTiming?l.totalTime(l._totalTime,!0):l._gc&&l._enabled(!0,!1),l=l._timeline;return this},i.remove=function(t){if(t instanceof p){this._remove(t,!1);var e=t._timeline=t.vars.useFrames?p._rootFramesTimeline:p._rootTimeline;return t._startTime=(t._paused?t._pauseTime:e._time)-(t._reversed?t.totalDuration()-t._totalTime:t._totalTime)/t._timeScale,this}if(t instanceof Array||t&&t.push&&_(t)){for(var i=t.length;-1<--i;)this.remove(t[i]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},i._remove=function(t,e){return u.prototype._remove.call(this,t,e),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},i.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},i.insert=i.insertMultiple=function(t,e,i,n){return this.add(t,e||0,i,n)},i.appendMultiple=function(t,e,i,n){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,n)},i.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},i.addPause=function(t,e,i,n){var s=c.delayedCall(0,r,i,n||this);return s.vars.onComplete=s.vars.onReverseComplete=e,s.data="isPause",this._hasPause=!0,this.add(s,t)},i.removeLabel=function(t){return delete this._labels[t],this},i.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},i._parseTimeOrLabel=function(t,e,i,n){var s,r;if(n instanceof p&&n.timeline===this)this.remove(n);else if(n&&(n instanceof Array||n.push&&_(n)))for(r=n.length;-1<--r;)n[r]instanceof p&&n[r].timeline===this&&this.remove(n[r]);if(s="number"!=typeof t||e?99999999999y&&(a="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:y,t=u+1e-4;else if(t<1e-7)if(((this._totalTime=this._time=0)!==p||0===this._duration&&this._rawPrevTime!==y&&(0=t&&!l;)n._duration||"isPause"===n.data&&0this._time;)l.render(l._reversed?l.totalDuration()-(t-l._startTime)*l._timeScale:(t-l._startTime)*l._timeScale,e,i),l=l._prev;l=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=r}this._onUpdate&&(e||(b.length&&x(),this._callback("onUpdate"))),a&&(this._gc||c!==this._startTime&&f===this._timeScale||(0===this._time||u>=this.totalDuration())&&(s&&(b.length&&x(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[a]&&this._callback(a)))}},i._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof f&&t._hasPausedChild())return!0;t=t._next}return!1},i.getChildren=function(t,e,i,n){n=n||-9999999999;for(var s=[],r=this._first,a=0;r;)r._startTime=i&&(s._startTime+=t),s=s._next;if(e)for(n in r)r[n]>=i&&(r[n]+=t);return this._uncache(!0)},i._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),n=i.length,s=!1;-1<--n;)i[n]._kill(t,e)&&(s=!0);return s},i.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;-1<--i;)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},i.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return p.prototype.invalidate.call(this)},i._enabled=function(t,e){if(t===this._gc)for(var i=this._first;i;)i._enabled(t,!0),i=i._next;return u.prototype._enabled.call(this,t,e)},i.totalTime=function(t,e,i){this._forcingPlayhead=!0;var n=p.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,n},i.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},i.totalDuration=function(t){if(arguments.length)return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this;if(this._dirty){for(var e,i,n=0,s=this._last,r=999999999999;s;)e=s._prev,s._dirty&&s.totalDuration(),s._startTime>r&&this._sortChildren&&!s._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(s,s._startTime-s._delay),this._calculatingDuration=0):r=s._startTime,s._startTime<0&&!s._paused&&(n-=s._startTime,this._timeline.smoothChildTiming&&(this._startTime+=s._startTime/this._timeScale,this._time-=s._startTime,this._totalTime-=s._startTime,this._rawPrevTime-=s._startTime),this.shiftChildren(-s._startTime,!1,-9999999999),r=0),n<(i=s._startTime+s._totalDuration/s._timeScale)&&(n=i),s=e;this._duration=this._totalDuration=n,this._dirty=!1}return this._totalDuration},i.paused=function(t){if(!t)for(var e=this._first,i=this._time;e;)e._startTime===i&&"isPause"===e.data&&(e._rawPrevTime=0),e=e._next;return p.prototype.paused.apply(this,arguments)},i.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===p._rootFramesTimeline},i.rawTime=function(t){return t&&(this._paused||this._repeat&&0>0,0!==this._cycle&&this._cycle===this._totalTime/l&&d<=t&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!=(1&this._cycle)&&(this._time=f-this._time),this._time>f?t=(this._time=f)+1e-4:this._time<0?this._time=t=0:t=this._time)),this._hasPause&&!this._forcingPlayhead&&!e){if(u<=(t=this._time)||this._repeat&&_!==this._cycle)for(n=this._first;n&&n._startTime<=t&&!h;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(h=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!h;)n._duration||"isPause"===n.data&&0this._time;)h.render(h._reversed?h.totalDuration()-(t-h._startTime)*h._timeScale:(t-h._startTime)*h._timeScale,e,i),h=h._prev;h=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=r}this._onUpdate&&(e||(S.length&&E(),this._callback("onUpdate"))),a&&(this._locked||this._gc||m!==this._startTime&&g===this._timeScale||(0===this._time||c>=this.totalDuration())&&(s&&(S.length&&E(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[a]&&this._callback(a)))}else d!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},s.getActive=function(t,e,i){null==t&&(t=!0),null==e&&(e=!0),null==i&&(i=!1);for(var n,s=[],r=this.getChildren(t,e,i),a=0,o=r.length,l=0;lt)return e[n].name;return null},s.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;-1<--i;)if(e[i].timethis._duration&&(t=this._duration),this._yoyo&&0!=(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},s.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},s.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},s.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},s.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},i},!0),T=180/Math.PI,w=[],k=[],P=[],y={},i=_gsScope._gsDefine.globals,g=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var n,s,r,a,o,l,h=e.values||[],p={},u=h[0],c=e.autoRotate||i.vars.orientToBezier;for(n in this._autoRotate=c?c instanceof Array?c:[["x","y","rotation",!0!==c&&Number(c)||0]]:null,u)this._props.push(n);for(r=this._props.length;-1<--r;)n=this._props[r],this._overwriteProps.push(n),s=this._func[n]="function"==typeof t[n],p[n]=s?t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(t[n]),o||p[n]!==h[0][n]&&(o=p);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?f(h,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,o):function(t,e,i){var n,s,r,a,o,l,h,p,u,c,f,d={},m="cubic"===(e=e||"soft")?3:2,g="soft"===e,y=[];if(g&&i&&(t=[i].concat(t)),null==t||t.length<1+m)throw"invalid Bezier data";for(u in t[0])y.push(u);for(l=y.length;-1<--l;){for(d[u=y[l]]=o=[],c=0,p=t.length,h=0;h>0||6)-1,u=[],c=[];for(i in t)!function(t,e,i){for(var n,s,r,a,o,l,h,p,u,c,f,d=1/i,m=t.length;-1<--m;)for(r=(c=t[m]).a,a=c.d-r,o=c.c-r,l=c.b-r,s=0,p=1;p<=i;p++)n=s-(s=((h=d*p)*h*a+3*(u=1-h)*(h*o+u*l))*h),e[f=m*i+p-1]=(e[f]||0)+n*n}(t[i],a,e);for(s=a.length,n=0;n>0]=c,o[r]=h,l=0,c=[]);return{length:h,lengths:o,segments:u}}(this._beziers,this._timeRes),this._length=l.length,this._lengths=l.lengths,this._segments=l.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length),c=this._autoRotate)for(this._initialRotations=[],c[0]instanceof Array||(this._autoRotate=c=[c]),r=c.length;-1<--r;){for(a=0;a<3;a++)n=c[r][a],this._func[n]="function"==typeof t[n]&&t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)];n=c[r][2],this._initialRotations[r]=(this._func[n]?this._func[n].call(this._target):this._target[n])||0,this._overwriteProps.push(n)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(t){var e,i,n,s,r,a,o,l,h,p=this._segCount,u=this._func,c=this._target,f=t!==this._startRatio;if(this._timeRes){if(l=this._lengths,h=this._curSeg,t*=this._length,w=this._li,t>this._l2&&w=t;);0===w&&tthis._s2&&w=t;);0===w&&t>0)*(1/p))*p;for(i=1-r,w=this._props.length;-1<--w;)n=this._props[w],a=(r*r*(s=this._beziers[n][e]).da+3*i*(r*s.ca+i*s.ba))*r+s.a,this._mod[n]&&(a=this._mod[n](a,c)),u[n]?c[n](a):c[n]=a;if(this._autoRotate)for(var d,m,g,y,v,_,b,x=this._autoRotate,w=x.length;-1<--w;)n=x[w][2],_=x[w][3]||0,b=!0===x[w][4]?1:T,s=this._beziers[x[w][0]],d=this._beziers[x[w][1]],s&&d&&(s=s[e],d=d[e],m=s.a+(s.b-s.a)*r,m+=((y=s.b+(s.c-s.b)*r)-m)*r,y+=(s.c+(s.d-s.c)*r-y)*r,g=d.a+(d.b-d.a)*r,g+=((v=d.b+(d.c-d.b)*r)-g)*r,v+=(d.c+(d.d-d.c)*r-v)*r,a=f?Math.atan2(v-g,y-m)*b+_:this._initialRotations[w],this._mod[n]&&(a=this._mod[n](a,c)),u[n]?c[n](a):c[n]=a)}}),t=g.prototype,g.bezierThrough=f,g.cubicToQuadratic=x,g._autoCSS=!0,g.quadraticToCubic=function(t,e,i){return new v(t,(2*e+t)/3,(2*e+i)/3,i)},g._cssRegister=function(){var t,f,d,m,e=i.CSSPlugin;e&&(t=e._internals,f=t._parseToProxy,d=t._setPluginRatio,m=t.CSSPropTween,t._registerComplexSpecialProp("bezier",{parser:function(t,e,i,n,s,r){e instanceof Array&&(e={values:e}),r=new g;var a,o,l,h=e.values,p=h.length-1,u=[],c={};if(p<0)return s;for(a=0;a<=p;a++)l=f(t,h[a],n,s,r,p!==a),u[a]=l.end;for(o in e)c[o]=e[o];return c.values=u,(s=new m(t,"bezier",0,0,l.pt,2)).data=l,s.plugin=r,s.setRatio=d,0===c.autoRotate&&(c.autoRotate=!0),!c.autoRotate||c.autoRotate instanceof Array||(a=!0===c.autoRotate?0:Number(c.autoRotate),c.autoRotate=null!=l.end.left?[["left","top","rotation",a,!1]]:null!=l.end.x&&[["x","y","rotation",a,!1]]),c.autoRotate&&(n._transform||n._enableTransforms(!1),l.autoRotate=n._target._gsTransform,l.proxy.rotation=l.autoRotate.rotation||0,n._overwriteProps.push("rotation")),r._onInitTween(l.proxy,c,n._tween),s}}))},t._mod=function(t){for(var e,i=this._overwriteProps,n=i.length;-1<--n;)(e=t[i[n]])&&"function"==typeof e&&(this._mod[i[n]]=e)},t._kill=function(t){var e,i,n=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=n.length;-1<--i;)n[i]===e&&n.splice(i,1);if(n=this._autoRotate)for(i=n.length;-1<--i;)t[n[i][2]]&&n.splice(i,1);return this._super._kill.call(this,t)},_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(r,z){var d,k,A,m,B=function(){r.call(this,"css"),this._overwriteProps.length=0,this.setRatio=B.prototype.setRatio},h=_gsScope._gsDefine.globals,g={},t=B.prototype=new r("css");(t.constructor=B).version="1.20.3",B.API=2,B.defaultTransformPerspective=0,B.defaultSkewType="compensated",B.defaultSmoothOrigin=!0,t="px",B.suffixMap={top:t,right:t,bottom:t,left:t,width:t,height:t,fontSize:t,padding:t,margin:t,perspective:t,lineHeight:""};function a(t,e){return e.toUpperCase()}function o(t,e){return J.createElementNS?J.createElementNS(e||"http://www.w3.org/1999/xhtml",t):J.createElement(t)}function l(t){return V.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1}function y(t){_gsScope.console&&console.log(t)}function P(t,e){var i,n,s=(e=e||tt).style;if(void 0!==s[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],n=5;-1<--n&&void 0===s[i[n]+t];);return 0<=n?(rt="-"+(at=3===n?"ms":i[n]).toLowerCase()+"-",at+t):null}function v(t,e){var i,n,s,r={};if(e=e||ot(t,null))if(i=e.length)for(;-1<--i;)-1!==(s=e[i]).indexOf("-transform")&&Rt!==s||(r[s.replace(H,a)]=e.getPropertyValue(s));else for(i in e)-1!==i.indexOf("Transform")&&Nt!==i||(r[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===r[i]&&(r[i.replace(H,a)]=e[i]);return st||(r.opacity=l(t)),n=Gt(t,e,!1),r.rotation=n.rotation,r.skewX=n.skewX,r.scaleX=n.scaleX,r.scaleY=n.scaleY,r.x=n.x,r.y=n.y,jt&&(r.z=n.z,r.rotationX=n.rotationX,r.rotationY=n.rotationY,r.scaleZ=n.scaleZ),r.filters&&delete r.filters,r}function _(t,e,i,n,s){var r,a,o,l={},h=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(r=i[a])||s&&s[a])&&-1===a.indexOf("Origin")&&("number"!=typeof r&&"string"!=typeof r||(l[a]="auto"!==r||"left"!==a&&"top"!==a?""!==r&&"auto"!==r&&"none"!==r||"string"!=typeof e[a]||""===e[a].replace(p,"")?r:0:pt(t,a),void 0!==h[a]&&(o=new bt(h,a,h[a],o))));if(n)for(a in n)"className"!==a&&(l[a]=n[a]);return{difs:l,firstMPT:o}}function S(t,e){return"function"==typeof t&&(t=t(I,F)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0}function E(t,e){return"function"==typeof t&&(t=t(I,F)),null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0}function C(t,e,i,n){var s,r,a,o,l;return"function"==typeof t&&(t=t(I,F)),(o=null==t?e:"number"==typeof t?t:(s=360,r=t.split("_"),a=((l="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(r[0].substr(2)):parseFloat(r[0]))*(-1===t.indexOf("rad")?1:K)-(l?0:e),r.length&&(n&&(n[i]=e+a),-1!==t.indexOf("short")&&(a%=s)!==a%180&&(a=a<0?a+s:a-s),-1!==t.indexOf("_cw")&&a<0?a=(a+3599999999640)%s-(a/s|0)*s:-1!==t.indexOf("ccw")&&0>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),dt[t])i=dt[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(n=t.charAt(1))+n+(s=t.charAt(2))+s+(r=t.charAt(3))+r),i=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=c=t.match(O),e){if(-1!==t.indexOf("="))return t.match(L)}else a=Number(i[0])%360/360,o=Number(i[1])/100,n=2*(l=Number(i[2])/100)-(s=l<=.5?l*(o+1):l+o-l*o),3n--)for(;++nn--)for(;++n>0];return n.parse(t,a,s,r)}}it._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,n,s,r,a=this.data,o=a.proxy,l=a.firstMPT;l;)e=o[l.v],l.r?e=Math.round(e):e<1e-6&&-1e-6o.length?l.length:o.length,a=0;ar.pr;)a=a._next;(r._prev=a?a._prev:l)?r._prev._next=r:o=r,(r._next=a)?a._prev=r:l=r,r=h}this._firstPT=o}return!0},t.parse=function(t,e,i,n){var s,r,a,o,l,h,p,u,c,f,d=t.style;for(s in e){if("function"==typeof(h=e[s])&&(h=h(I,F)),r=g[s])i=r.parse(t,h,s,this,i,n,e);else{if("--"===s.substr(0,2)){this._tween._propLookup[s]=this._addTween.call(this._tween,t.style,"setProperty",ot(t).getPropertyValue(s)+"",h+"",s,!1,s);continue}l=lt(t,s,A)+"",c="string"==typeof h,"color"===s||"fill"===s||"stroke"===s||-1!==s.indexOf("Color")||c&&q.test(h)?(c||(h=(3<(h=mt(h)).length?"rgba(":"rgb(")+h.join(",")+")"),i=wt(d,s,l,h,!0,"transparent",i,0,n)):c&&Z.test(h)?i=wt(d,s,l,h,!0,null,i,0,n):(p=(a=parseFloat(l))||0===a?l.substr((a+"").length):"",""!==l&&"auto"!==l||(p="width"===s||"height"===s?(a=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||ot(t))[e]||0;if(t.getCTM&&Xt(t))return t.getBBox()[e]||0;var n=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),s=ut[e],r=s.length;for(i=i||ot(t,null);-1<--r;)n-=parseFloat(lt(t,"padding"+s[r],i,!0))||0,n-=parseFloat(lt(t,"border"+s[r]+"Width",i,!0))||0;return n}(t,s,A),"px"):"left"===s||"top"===s?(a=pt(t,s,A),"px"):(a="opacity"!==s?0:1,"")),""===(u=(f=c&&"="===h.charAt(1))?(o=parseInt(h.charAt(0)+"1",10),h=h.substr(2),o*=parseFloat(h),h.replace(N,"")):(o=parseFloat(h),c?h.replace(N,""):""))&&(u=s in k?k[s]:p),h=o||0===o?(f?o+a:o)+u:e[s],p!==u&&(""===u&&"lineHeight"!==s||(o||0===o)&&a&&(a=ht(t,s,a,p),"%"===u?(a/=ht(t,s,100,"%")/100,!0!==e.strictUnits&&(l=a+"%")):"em"===u||"rem"===u||"vw"===u||"vh"===u?a/=ht(t,s,1,u):"px"!==u&&(o=ht(t,s,o,u),u="px"),f&&(!o&&0!==o||(h=o+a+u)))),f&&(o+=a),!a&&0!==a||!o&&0!==o?void 0!==d[s]&&(h||h+""!="NaN"&&null!=h)?(i=new xt(d,s,o||a||0,0,i,-1,s,!1,0,l,h)).xs0="none"!==h||"display"!==s&&-1===s.indexOf("Style")?h:l:y("invalid "+s+" tween value: "+e[s]):(i=new xt(d,s,a,o-a,i,0,s,!1!==M&&("px"===u||"zIndex"===s),0,l,h)).xs0=u)}n&&i&&!i.plugin&&(i.plugin=n)}return i},t.setRatio=function(t){var e,i,n,s=this._firstPT;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;s;){if(e=s.c*t+s.s,s.r?e=Math.round(e):e<1e-6&&-1e-6this._p3?this._calcEnd?1===t?0:1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},f.ease=new f(.7,.7),d.config=f.config=function(t,e,i){return new f(t,e,i)},(d=(n=p("easing.SteppedEase",function(t,e){t=t||1,this._p1=1/t,this._p2=t+(e?0:1),this._p3=e?1:0},!0)).prototype=new g).constructor=n,d.getRatio=function(t){return t<0?t=0:1<=t&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},d.config=n.config=function(t,e){return new n(t,e)},(d=(s=p("easing.RoughEase",function(t){for(var e,i,n,s,r,a,o=(t=t||{}).taper||"none",l=[],h=0,p=0|(t.points||20),u=p,c=!1!==t.randomize,f=!0===t.clamp,d=t.template instanceof g?t.template:null,m="number"==typeof t.strength?.4*t.strength:.4;-1<--u;)e=c?Math.random():1/p*u,i=d?d.getRatio(e):e,n="none"===o?m:"out"===o?(s=1-e)*s*m:"in"===o?e*e*m:e<.5?(s=2*e)*s*.5*m:(s=2*(1-e))*s*.5*m,c?i+=Math.random()*n-.5*n:u%2?i+=.5*n:i-=.5*n,f&&(1e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return(this._prev=e).v+(t-e.t)/e.gap*e.c},d.config=function(t){return new s(t)},s.ease=new s,e("Bounce",t("BounceOut",function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),t("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),t("BounceInOut",function(t){var e=t<.5;return(t=e?1-2*t:2*t-1)<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),e("Circ",t("CircOut",function(t){return Math.sqrt(1- --t*t)}),t("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),t("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),e("Elastic",(r=function(t,e,i){var n=p("easing."+t,function(t,e){this._p1=1<=t?t:1,this._p2=(e||i)/(t<1?t:1),this._p3=this._p2/l*(Math.asin(1/this._p1)||0),this._p2=l/this._p2},!0),s=n.prototype=new g;return s.constructor=n,s.getRatio=e,s.config=function(t,e){return new n(t,e)},n})("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),r("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*--t)*Math.sin((t-this._p3)*this._p2))},.3),r("ElasticInOut",function(t){return(t*=2)<1?this._p1*Math.pow(2,10*--t)*Math.sin((t-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*--t)*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),e("Expo",t("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),t("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),t("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),e("Sine",t("SineOut",function(t){return Math.sin(t*h)}),t("SineIn",function(t){return 1-Math.cos(t*h)}),t("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),p("easing.EaseLookup",{find:function(t){return g.map[t]}},!0),u(a.SlowMo,"SlowMo","ease,"),u(s,"RoughEase","ease,"),u(n,"SteppedEase","ease,"),c},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(c,f){"use strict";var d={},n=c.document,m=c.GreenSockGlobals=c.GreenSockGlobals||c;if(!m.TweenLite){var g,e,i,y=function(t){for(var e=t.split("."),i=m,n=0;n=i&&tthis._duration?this._duration:t,e)):this._time},t.totalTime=function(t,e,i){if(g||D.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,s=this._timeline;if(nr;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=s,this._recent=t,this._timeline&&this._uncache(!0),this},t._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},t.render=function(t,e,i){var n,s=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;s;)n=s._next,(s._active||t>=s._startTime&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=n},t.rawTime=function(){return g||D.wake(),this._totalTime};var O=T("TweenLite",function(t,e,i){if(p.call(this,e,i),this.render=O.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"==typeof t&&O.selector(t)||t;var n,s,r,a=t.jquery||t.length&&t!==c&&t[0]&&(t[0]===c||t[0].nodeType&&t[0].style&&!t.nodeType),o=this.vars.overwrite;if(this._overwrite=o=null==o?G[O.defaultOverwrite]:"number"==typeof o?o>>0:G[o],(a||t instanceof Array||t.push&&b(t))&&"number"!=typeof t[0])for(this._targets=r=l(t),this._propLookup=[],this._siblings=[],n=0;n=K){for(i in K=D.frame+(parseInt(O.autoSleep,10)||120),X){for(t=(e=X[i].tweens).length;-1<--t;)e[t]._gc&&e.splice(t,1);0===e.length&&delete X[i]}if((!(i=$._first)||i._paused)&&O.autoSleep&&!Z._first&&1===D._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||D.sleep()}}},D.addEventListener("tick",p._updateRoot);var J=function(t,e,i){var n,s,r=t._gsTweenID;if(X[r||(t._gsTweenID=r="t"+Y++)]||(X[r]={target:t,tweens:[]}),e&&((n=X[r].tweens)[s=n.length]=e,i))for(;-1<--s;)n[s]===e&&n.splice(s,1);return X[r].tweens},tt=function(t,e,i,n){var s,r,a=t.vars.onOverwrite;return a&&(s=a(t,e,i,n)),(a=O.onOverwrite)&&(r=a(t,e,i,n)),!1!==s&&!1!==r},et=function(t,e,i,n,s){var r,a,o;if(1===n||4<=n){for(o=s.length,f=0;fh&&((c||!a._initted)&&h-a._startTime<=2e-10||(p[u++]=a)));for(f=u;-1<--f;)if(a=p[f],2===n&&a._kill(i,t,e)&&(r=!0),2!==n||!a._firstPT&&a._initted){if(2!==n&&!tt(a,e))continue;a._enabled(!1,!1)&&(r=!0)}return r},it=function(t,e,i){for(var n=t._timeline,s=n._timeScale,r=t._startTime;n._timeline;){if(r+=n._startTime,s*=n._timeScale,n._paused)return-100;n=n._timeline}return e<(r/=s)?r-e:i&&r===e||!t._initted&&r-e<2e-10?v:(r+=t.totalDuration()/t._timeScale/s)>e+v?0:r-e-v};t._init=function(){var t,e,i,n,s,r,a=this.vars,o=this._overwrittenProps,l=this._duration,h=!!a.immediateRender,p=a.ease;if(a.startAt){for(n in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),s={},a.startAt)s[n]=a.startAt[n];if(s.data="isStart",s.overwrite=!1,s.immediateRender=!0,s.lazy=h&&!1!==a.lazy,s.startAt=s.delay=null,s.onUpdate=a.onUpdate,s.onUpdateParams=a.onUpdateParams,s.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=O.to(this.target,0,s),h)if(0o.pr;)n=n._next;(o._prev=n?n._prev:r)?o._prev._next=o:s=o,(o._next=n)?n._prev=o:r=o,o=a}o=e._firstPT=s}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},nt.activate=function(t){for(var e=t.length;-1<--e;)t[e].API===nt.API&&(W[(new t[e])._propName]=t[e]);return!0},s.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,n=t.priority||0,s=t.overwriteProps,r={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=T("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){nt.call(this,i,n),this._overwriteProps=s||[]},!0===t.global),o=a.prototype=new nt(i);for(e in(o.constructor=a).API=t.API,r)"function"==typeof t[e]&&(o[r[e]]=t[e]);return a.version=t.version,nt.activate([a]),a},o=c._gsQueue){for(h=0;hl.endVal,l.frameVal=l.startVal,l.initialized=!0):(l.error="[CountUp] startVal ("+e+") or endVal ("+i+") is not a number",!1)):!(l.error="[CountUp] target is null or undefined"))},l.printValue=function(t){var e=l.options.formattingFn(t),i=Math.floor(e/60),n=Math.floor(e%60);i<10&&(i="0"+i),n<10&&(n="0"+n),e=i+" : "+n,"INPUT"===l.d.tagName?this.d.value=e:"text"===l.d.tagName||"tspan"===l.d.tagName?this.d.textContent=e:this.d.innerHTML=e},l.count=function(t){l.startTime||(l.startTime=t);var e=(l.timestamp=t)-l.startTime;l.remaining=l.duration-e,l.options.useEasing?l.countDown?l.frameVal=l.startVal-l.options.easingFn(e,0,l.startVal-l.endVal,l.duration):l.frameVal=l.options.easingFn(e,l.startVal,l.endVal-l.startVal,l.duration):l.countDown?l.frameVal=l.startVal-(l.startVal-l.endVal)*(e/l.duration):l.frameVal=l.startVal+(l.endVal-l.startVal)*(e/l.duration),l.countDown?l.frameVal=l.frameVall.endVal?l.endVal:l.frameVal,l.frameVal=Math.round(l.frameVal*l.dec)/l.dec,l.printValue(l.frameVal),el.endVal,l.rAF=requestAnimationFrame(l.count))):l.error="[CountUp] update() - new endVal is not a number: "+t)},l.initialize()&&l.printValue(l.startVal)};!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("scrollMonitor",[],e):"object"==typeof exports?exports.scrollMonitor=e():t.scrollMonitor=e()}(this,function(){return s={},i.m=n=[function(t,e,i){"use strict";var n=i(1).isInBrowser,s=new(i(2))(n?document.body:null);s.setStateFromDOM(null),s.listenToDOM(),n&&(window.scrollMonitor=s),t.exports=s},function(t,e){"use strict";e.VISIBILITYCHANGE="visibilityChange",e.ENTERVIEWPORT="enterViewport",e.FULLYENTERVIEWPORT="fullyEnterViewport",e.EXITVIEWPORT="exitViewport",e.PARTIALLYEXITVIEWPORT="partiallyExitViewport",e.LOCATIONCHANGE="locationChange",e.STATECHANGE="stateChange",e.eventTypes=[e.VISIBILITYCHANGE,e.ENTERVIEWPORT,e.FULLYENTERVIEWPORT,e.EXITVIEWPORT,e.PARTIALLYEXITVIEWPORT,e.LOCATIONCHANGE,e.STATECHANGE],e.isOnServer="undefined"==typeof window,e.isInBrowser=!e.isOnServer,e.defaultOffsets={top:0,bottom:0}},function(t,e,i){"use strict";function a(t){return s?0:t===document.body?window.innerHeight||document.documentElement.clientHeight:t.clientHeight}function o(t){return s?0:t===document.body?Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight):t.scrollHeight}function l(t){return s?0:t===document.body?window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop}var n=i(1),s=n.isOnServer,r=n.isInBrowser,h=n.eventTypes,p=i(3),u=(c.prototype.listenToDOM=function(){r&&(window.addEventListener?(this.item===document.body?window.addEventListener("scroll",this.DOMListener):this.item.addEventListener("scroll",this.DOMListener),window.addEventListener("resize",this.DOMListener)):(this.item===document.body?window.attachEvent("onscroll",this.DOMListener):this.item.attachEvent("onscroll",this.DOMListener),window.attachEvent("onresize",this.DOMListener)),this.destroy=function(){window.addEventListener?(this.item===document.body?(window.removeEventListener("scroll",this.DOMListener),this.containerWatcher.destroy()):this.item.removeEventListener("scroll",this.DOMListener),window.removeEventListener("resize",this.DOMListener)):(this.item===document.body?(window.detachEvent("onscroll",this.DOMListener),this.containerWatcher.destroy()):this.item.detachEvent("onscroll",this.DOMListener),window.detachEvent("onresize",this.DOMListener))})},c.prototype.destroy=function(){},c.prototype.DOMListener=function(t){this.setStateFromDOM(t)},c.prototype.setStateFromDOM=function(t){var e=l(this.item),i=a(this.item),n=o(this.item);this.setState(e,i,n,t)},c.prototype.setState=function(t,e,i,n){var s=e!==this.viewportHeight||i!==this.contentHeight;if(this.latestEvent=n,this.viewportTop=t,this.viewportHeight=e,this.viewportBottom=t+e,this.contentHeight=i,s)for(var r=this.watchers.length;r--;)this.watchers[r].recalculateLocation();this.updateAndTriggerWatchers(n)},c.prototype.updateAndTriggerWatchers=function(t){for(var e=this.watchers.length;e--;)this.watchers[e].update();for(e=this.watchers.length;e--;)this.watchers[e].triggerCallbacks(t)},c.prototype.createCustomContainer=function(){return new c},c.prototype.createContainer=function(t){"string"==typeof t?t=document.querySelector(t):t&&0this.container.viewportBottom,this.isInViewport=this.topthis.container.viewportTop,this.isFullyInViewport=this.top>=this.container.viewportTop&&this.bottom<=this.container.viewportBottom||this.isAboveViewport&&this.isBelowViewport},destroy:function(){var t=this.container.watchers.indexOf(this);this.container.watchers.splice(t,1);for(var e=0,i=b.length;e>>=1;return(t+i)/e}var s=[],r=b(function t(e,i){var n,s=[],r=typeof e;if(i&&"object"==r)for(n in e)try{s.push(t(e[n],i-1))}catch(t){}return s.length?s:"string"==r?e:e+"\0"}((e=1==e?{entropy:!0}:e||{}).entropy?[t,x(o)]:null==t?function(){try{if(h)return x(h.randomBytes(u));var t=new Uint8Array(u);return(p.crypto||p.msCrypto).getRandomValues(t),x(t)}catch(t){var e=p.navigator,i=e&&e.plugins;return[+new Date,p,i,p.screen,x(o)]}}():t,3),s),a=new v(s);return n.int32=function(){return 0|a.g(4)},n.quick=function(){return a.g(4)/4294967296},n.double=n,b(x(a.S),o),(e.pass||i||function(t,e,i,n){return n&&(n.S&&_(n,a),t.state=function(){return _(a,{})}),i?(l[f]=t,e):t})(n,r,"global"in e?e.global:this==l,e.state)},b(l.random(),o)}([],n);var et,it,nt,ot,lt,ht=(et={getBezierEasing:function(t,e,i,n,s){var r=s||("bez_"+t+"_"+e+"_"+i+"_"+n).replace(/\./g,"p");if(it[r])return it[r];var a=new ft([t,e,i,n]);return it[r]=a}},it={},ot=1/((nt=11)-1),lt="function"==typeof Float32Array,ft.prototype={get:function(t){var e=this._p[0],i=this._p[1],n=this._p[2],s=this._p[3];return this._precomputed||this._precompute(),e===i&&n===s?t:0===t?0:1===t?1:ut(this._getTForX(t),i,s)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],n=this._p[3];this._precomputed=!0,t===e&&i===n||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;ir?-1:1,l=!0;l;)i[s].l<=r&&i[s+1].l>r?(a=(r-i[s].l)/(i[s+1].l-i[s].l),l=!1):s+=o,(s<0||n-1<=s)&&(l=!1);return i[s].p+(i[s+1].p-i[s].p)*a}function g(){this.pt1=new Array(2),this.pt2=new Array(2),this.pt3=new Array(2),this.pt4=new Array(2)}return{getBezierLength:h,getSegmentsLength:function(t){for(var e=t.c,i=t.v,n=t.o,s=t.i,r=t._length,a=[],o=0,l=0;li[0])return 1;if(!(i[0]>t[0])){if(t[1]>i[1])return 1;if(!(i[1]>t[1]))return t[2]>i[2]||(i[2],void t[2])}}function Ct(t){for(var e,i,n=t.length,s=0;s=o.t-r){a.h&&(a=o),e=0;break}if(o.t-r>t){e=p;break}p=o.t-r||t=o.t-r?f.points.length-1:0,m=f.points[d].point.length,g=0;g=o.t-r?1:t=i&&i<=t||this._caching.lastFrame=this.p.keyframes[this.p.keyframes.length-1].t?(t=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/this.elem.globalData.frameRate,0),this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.01)/this.elem.globalData.frameRate,0)):(t=this.p.pv,this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/this.elem.globalData.frameRate,this.p.offsetTime)),this.v.rotate(-Math.atan2(t[1]-e[1],t[0]-e[0]))),this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])),this.frameId=this.elem.globalData.frameId}}function pe(){this.inverted=!0,this.iv=new b,this.k||(this.data.p.s?this.iv.translate(this.px.v,this.py.v,-this.pz.v):this.iv.translate(this.p.v[0],this.p.v[1],-this.p.v[2]),this.r?this.iv.rotate(-this.r.v):this.iv.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.s&&this.iv.scale(this.s.v[0],this.s.v[1],1),this.a&&this.iv.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]))}function ue(){}function ce(t,e,i,n,s){var r;if(2===i)r=new Vt(t,e,s);else if(0===e.a)r=new(0===i?Gt:Zt)(t,e,n);else if(1===e.a)r=new(0===i?$t:Kt)(t,e,n);else if(e.k.length)if("number"==typeof e.k[0])r=new Zt(t,e,n);else switch(i){case 0:r=new $t(t,e,n);break;case 1:r=new Kt(t,e,n)}else r=new Gt(t,e,n);return r.k&&s.push(r),r}function fe(t,e,i){return new me(t,e,i)}function de(t){if(this.prop.getValue(),this.cmdf=!1,this.omdf=!1,this.prop.mdf||t){for(var e,i,n=4*this.data.p,s=0;s=qt(a)&&(r=t-a<0?1-(a-t):zt(0,Bt(o-t,1))),s(r)))*this.a.v}function _e(){this.c=!1,this._length=0,this._maxLength=8,this.v=Array.apply(null,{length:this._maxLength}),this.o=Array.apply(null,{length:this._maxLength}),this.i=Array.apply(null,{length:this._maxLength})}_e.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i=this._maxLength&&this.doubleArrayLength(),i){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o}r[n]&&(!r[n]||s)||(r[n]=Je.newPoint()),r[n][0]=t,r[n][1]=e},_e.prototype.setTripleAt=function(t,e,i,n,s,r,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,n,"o",a,o),this.setXYAt(s,r,"i",a,o)};var be,xe,we=function(){var r=-999999;function t(t,e,i,n){var s,r;if(t=this.keyframes[this.keyframes.length-1].t-this.offsetTime)s=1===this.keyframes[this.keyframes.length-2].h?this.keyframes[this.keyframes.length-1].s[0]:this.keyframes[this.keyframes.length-2].e[0],r=!0;else{for(var a,o,l,h,p,u,c,f,d=e,m=this.keyframes.length-1,g=!0;g&&(a=this.keyframes[d],!((o=this.keyframes[d+1]).t-this.offsetTime>t));)d=o.t-this.offsetTime?1:ti&&in+i||(a=l.s*s<=n?0:(l.s*s-n)/i,o=l.e*s>=n+i?1:(l.e*s-n)/i,h.push([a,o]))}return h.length||h.push([0,0]),h},Pe.prototype.processShapes=function(t){var e,i,n,s,r=this.shapes.length,a=this.sValue,o=this.eValue,l=0;if(o===a)for(u=0;ue.e){i.c=!1;break}e.s<=d&&e.e>=d+p.addedLength?(this.addSegment(c[n].v[s-1],c[n].o[s-1],c[n].i[s],c[n].v[s],i,a,g),g=!1):(l=gt.getNewSegment(c[n].v[s-1],c[n].v[s],c[n].o[s-1],c[n].i[s],(e.s-d)/p.addedLength,(e.e-d)/p.addedLength,o[s-1]),this.addSegment(l.pt1,l.pt3,l.pt4,l.pt2,i,a,g),g=!1,i.c=!1),d+=p.addedLength,a+=1}if(c[n].c&&(p=o[s-1],d<=e.e?(h=o[s-1].addedLength,e.s<=d&&e.e>=d+h?(this.addSegment(c[n].v[s-1],c[n].o[s-1],c[n].i[0],c[n].v[0],i,a,g),g=!1):(l=gt.getNewSegment(c[n].v[s-1],c[n].v[0],c[n].o[s-1],c[n].i[0],(e.s-d)/h,(e.e-d)/h,o[s-1]),this.addSegment(l.pt1,l.pt3,l.pt4,l.pt2,i,a,g),g=!1,i.c=!1)):i.c=!1,d+=p.addedLength,a+=1),i._length&&(i.setXYAt(i.v[y][0],i.v[y][1],"i",y),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),d>e.e)break;n=b.length&&(T=0,b=A[w+=1]?A[w].bezierData.points:u.v.c?A[w=T=0].bezierData.points:(k-=v.partialLength,null)),b&&(_=v,C=(v=b[T]).partialLength));N=p[y].an/2-p[y].add,o.translate(-N,0,0)}else N=p[y].an/2-p[y].add,o.translate(-N,0,0),o.translate(-s[0]*p[y].an/200,-s[1]*F/100,0);for(p[y].l,nt=0;ntt));)n+=1;this.keysIndex!==n&&(e.__complete||this.completeTextData(e),this.setCurrentData(e),this.mdf=!this.firstFrame,this.pv=this.v=this.currentData.t,this.keysIndex=n),this._frameId=t}},He.prototype.completeTextData=function(t){t.__complete=!0;var e,i,n,s=this.elem.globalData.fontManager,r=this.data,a=[],o=0,l=r.m.g,h=0,p=0,u=0,c=[],f=0,d=0,m=s.getFontByName(t.f),g=0,y=m.fStyle.split(" "),v="normal",_="normal",b=y.length;for(k=0;kt-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},hi.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 13:return this.createCamera(t);case 99:return null}return this.createBase(t)},hi.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},hi.prototype.buildAllItems=function(){for(var t=this.layers.length,e=0;et?!0!==this.isVisible&&(this.elemMdf=!0,this.globalData.mdf=!0,this.isVisible=!0,this.firstFrame=!0,this.data.hasMask&&(this.maskManager.firstFrame=!0)):!1!==this.isVisible&&(this.elemMdf=!0,this.globalData.mdf=!0,this.isVisible=!1);for(var e=this.dynamicProperties.length,i=0;i4*t.g.p||t.g.k.k.length>4*t.g.p){var n,s,r,a=document.createElementNS(T,"mask"),o=document.createElementNS(T,"path");a.appendChild(o);var l="op_"+S(10),h="mk_"+S(10);a.setAttribute("id",h),(n=1===t.t?document.createElementNS(T,"linearGradient"):document.createElementNS(T,"radialGradient")).setAttribute("id",l),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse"),r=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;for(var p=[],u=4*t.g.p;uthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip),this.animationData.tf=this.totalFrames);for(var e,i=this.animationData.layers,n=i.length,s=t.layers,r=s.length,a=0;athis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},Hi.prototype.renderFrame=function(){!1!==this.isLoaded&&this.renderer.renderFrame(this.currentFrame+this.firstFrame)},Hi.prototype.play=function(t){t&&this.name!=t||!0===this.isPaused&&(this.isPaused=!1,this._idle&&(this._idle=!1,this.trigger("_active")))},Hi.prototype.pause=function(t){t&&this.name!=t||!1===this.isPaused&&(this.isPaused=!0,this.pendingSegment||(this._idle=!0,this.trigger("_idle")))},Hi.prototype.togglePause=function(t){t&&this.name!=t||(!0===this.isPaused?this.play():this.pause())},Hi.prototype.stop=function(t){t&&this.name!=t||(this.pause(),this.currentFrame=this.currentRawFrame=0,this.playCount=0,this.gotoFrame())},Hi.prototype.goToAndStop=function(t,e,i){i&&this.name!=i||(e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},Hi.prototype.goToAndPlay=function(t,e,i){this.goToAndStop(t,e,i),this.play()},Hi.prototype.advanceTime=function(t){if(this.pendingSegment)return this.pendingSegment=!1,this.adjustSegment(this.segments.shift()),void(this.isPaused&&this.play());!0!==this.isPaused&&!1!==this.isLoaded&&this.setCurrentRawFrameValue(this.currentRawFrame+t*this.frameModifier)},Hi.prototype.updateAnimation=function(t){this.setCurrentRawFrameValue(this.totalFrames*t)},Hi.prototype.moveFrame=function(t,e){e&&this.name!=e||this.setCurrentRawFrameValue(this.currentRawFrame+t)},Hi.prototype.adjustSegment=function(t){this.playCount=0,t[1]t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.firstFrame=t[0],this.setCurrentRawFrameValue(0)),this.trigger("segmentStart")},Hi.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(i=e-t-.01)),this.firstFrame=t,this.totalFrames=e-t,-1!==i&&this.goToAndStop(i,!0)},Hi.prototype.playSegments=function(t,e){if("object"==typeof t[0])for(var i=t.length,n=0;n=this.totalFrames){if(this.checkSegments(),!1===this.loop)return this.currentRawFrame=this.totalFrames-.01,this.gotoFrame(),this.pause(),void this.trigger("complete");if(this.trigger("loopComplete"),this.playCount+=1,!0!==this.loop&&this.playCount==this.loop||this.pendingSegment)return this.currentRawFrame=this.totalFrames-.01,this.gotoFrame(),this.pause(),void this.trigger("complete");this.currentRawFrame=this.currentRawFrame%this.totalFrames}else if(this.currentRawFrame<0)return this.checkSegments(),--this.playCount,this.playCount<0&&(this.playCount=0),!1===this.loop||this.pendingSegment?(this.currentRawFrame=0,this.gotoFrame(),this.pause(),void this.trigger("complete")):(this.trigger("loopComplete"),this.currentRawFrame=(this.totalFrames+this.currentRawFrame)%this.totalFrames,void this.gotoFrame());this.gotoFrame()},Hi.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},Hi.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},Hi.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection},Hi.prototype.getPath=function(){return this.path},Hi.prototype.getAssetsPath=function(t){var e,i="";return this.assetsPath?(-1!==(e=t.p).indexOf("images/")&&(e=e.split("/")[1]),i=this.assetsPath+e):(i=this.path,i+=t.u?t.u:"",i+=t.p),i},Hi.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e=Ue()-1&&n<0)&&(t=xe.x+n*g.mainScrollEndFriction)),xe.x=t,ne(t,W)}function b(t,e){var i=we[t]-Ut[t];return Ht[t]+qt[t]+i-e/$*i}function x(t,e){t.x=e.x,t.y=e.y,e.id&&(t.id=e.id)}function w(t){t.x=Math.round(t.x),t.y=Math.round(t.y)}function u(t,e){var i=Qe(m.currItem,Xt,t);return e&&(It=i),i}function T(t){return(t=t||m.currItem).initialZoomLevel}function k(t){return 0<(t=t||m.currItem).w?g.maxSpreadZoom:1}function c(t,e,i,n){return n===m.currItem.initialZoomLevel?(i[t]=m.currItem.initialPosition[t],!0):(i[t]=b(t,n),i[t]>e.min[t]?(i[t]=e.min[t],!0):i[t]It.min[t]||rIt.min[t]&&(h=g.panEndFriction,It.min[t],i=It.min[t]-Ht[t]),(i<=0||l<0)&&1me.x&&(s=me.x)):It.min.x!==It.max.x&&(n=r)):(rm.currItem.fitRatio&&(Wt[t]+=e[t]*h)}function R(t){var e,i,n;"mousedown"===t.type&&0m.currItem.fitRatio&&Ie(bt):Ne())}}var z,B,q,H,W,X,Y,U,G,Z,$,K,Q,J,tt,et,it,nt,st,rt,at,ot,lt,ht,pt,ut,ct,ft,dt,mt,gt,yt,vt,_t,bt,xt,wt,Tt,kt,Pt,At,St,Et,Ct,Mt,Dt,Ft,It,Ot,Lt,Nt,Rt,Vt,jt,zt,Bt,qt=i(),Ht=i(),Wt=i(),Xt={},Yt=0,Ut={},Gt=i(),Zt=0,$t=!0,Kt=[],Qt={},Jt=!1,te={},ee=function(t){Ot&&(t&&(Z>m.currItem.fitRatio?Jt||(Je(m.currItem,!1,!0),Jt=!0):Jt&&(Je(m.currItem),Jt=!1)),a(Ot,Wt.x,Wt.y,Z))},ie=function(t){t.container&&a(t.container.style,t.initialPosition.x,t.initialPosition.y,t.initialZoomLevel,t)},ne=function(t,e){e[ot]=K+t+"px, 0px"+Q},se=null,re=function(){se&&(d.unbind(document,"mousemove",re),d.addClass(f,"pswp--has_mouse"),g.mouseUsed=!0,y("mouseUsed")),se=setTimeout(function(){se=null},100)},ae={},oe=0,le={shout:y,listen:r,viewportSize:Xt,options:g,isMainScrollAnimating:function(){return Lt},getZoomLevel:function(){return Z},getCurrentIndex:function(){return H},isDragging:function(){return kt},isZooming:function(){return Dt},setScrollOffset:function(t,e){Ut.x=t,mt=Ut.y=e,y("updateScrollOffset",Ut)},applyZoomPan:function(t,e,i,n){Wt.x=e,Wt.y=i,Z=t,ee(n)},init:function(){if(!z&&!B){var t;m.framework=d,m.template=f,m.bg=d.getChildByClass(f,"pswp__bg"),ct=f.className,z=!0,gt=d.detectFeatures(),pt=gt.raf,ut=gt.caf,ot=gt.transform,dt=gt.oldIE,m.scrollWrap=d.getChildByClass(f,"pswp__scroll-wrap"),m.container=d.getChildByClass(m.scrollWrap,"pswp__container"),W=m.container.style,m.itemHolders=et=[{el:m.container.children[0],wrap:0,index:-1},{el:m.container.children[1],wrap:0,index:-1},{el:m.container.children[2],wrap:0,index:-1}],et[0].el.style.display=et[2].el.style.display="none",function(){if(ot){var t=gt.perspective&&!ht;return K="translate"+(t?"3d(":"("),Q=gt.perspective?", 0px)":")"}ot="left",d.addClass(f,"pswp--ie"),ne=function(t,e){e.left=t+"px"},ie=function(t){var e=1=Ue())&&(H=0),m.currItem=Ye(H),(gt.isOldIOSPhone||gt.isOldAndroid)&&($t=!1),f.setAttribute("aria-hidden","false"),g.modal&&($t?f.style.position="fixed":(f.style.position="absolute",f.style.top=d.getScrollY()+"px")),void 0===mt&&(y("initialLayout"),mt=ft=d.getScrollY());var i="pswp--open ";for(g.mainClass&&(i+=g.mainClass+" "),g.showHideOpacity&&(i+="pswp--animate_opacity "),i+=ht?"pswp--touch":"pswp--notouch",i+=gt.animationName?" pswp--css_animation":"",i+=gt.svg?" pswp--svg":"",d.addClass(f,i),m.updateSize(),X=-1,Zt=null,t=0;t<3;t++)ne((t+X)*Gt.x,et[t].el.style);dt||d.bind(m.scrollWrap,U,m),r("initialZoomInEnd",function(){m.setContent(et[0],H-1),m.setContent(et[2],H+1),et[0].el.style.display=et[2].el.style.display="block",g.focus&&f.focus(),d.bind(document,"keydown",m),gt.transform&&d.bind(m.scrollWrap,"click",m),g.mouseUsed||d.bind(document,"mousemove",re),d.bind(window,"resize scroll orientationchange",m),y("bindEvents")}),m.setContent(et[1],H),m.updateCurrItem(),y("afterInit"),$t||(J=setInterval(function(){oe||kt||Dt||Z!==m.currItem.initialZoomLevel||m.updateSize()},1e3)),d.addClass(f,"pswp--visible")}},close:function(){z&&(B=!(z=!1),y("close"),d.unbind(window,"resize scroll orientationchange",m),d.unbind(window,"scroll",G.scroll),d.unbind(document,"keydown",m),d.unbind(document,"mousemove",re),gt.transform&&d.unbind(m.scrollWrap,"click",m),kt&&d.unbind(window,Y,m),clearTimeout(yt),y("unbindEvents"),Ge(m.currItem,null,!0,m.destroy))},destroy:function(){y("destroy"),qe&&clearTimeout(qe),f.setAttribute("aria-hidden","true"),f.className=ct,J&&clearInterval(J),d.unbind(m.scrollWrap,U,m),d.unbind(window,"scroll",m),ke(),E(),te=null},panTo:function(t,e,i){i||(t>It.min.x?t=It.min.x:tIt.min.y?e=It.min.y:em.currItem.initialZoomLevel+m.currItem.initialZoomLevel/15&&(zt=!0);var h,p=1,u=T(),c=k();lIt.min[e]?n.backAnimDestination[e]=It.min[e]:Wt[e]=Ue()&&(H=g.loop?0:Ue()-1,a=!0),a&&!g.loop||(Zt+=n,Yt-=n,i=!0));var o=Gt.x*Yt,l=Math.abs(o-xe.x),h=i||o>xe.x==0The image could not be loaded.',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return He.length}},Qe=function(t,e,i){if(!t.src||t.loadError)return t.w=t.h=0,t.initialZoomLevel=t.fitRatio=1,t.bounds=Re(),t.initialPosition=t.bounds.center,t.bounds;var n,s,r,a,o,l,h,p=!i;return p&&(t.vGap||(t.vGap={top:0,bottom:0}),y("parseVerticalMargin",t)),Ze.x=e.x,Ze.y=e.y-t.vGap.top-t.vGap.bottom,p&&(n=Ze.x/t.w,s=Ze.y/t.h,t.fitRatio=nZe.x?Math.round(Ze.x-o):h.center.x,h.max.y=l>Ze.y?Math.round(Ze.y-l)+a.vGap.top:h.center.y,h.min.x=o>Ze.x?0:h.center.x,h.min.y=l>Ze.y?a.vGap.top:h.center.y,p&&i===t.initialZoomLevel&&(t.initialPosition=t.bounds.center),t.bounds):void 0},Je=function(t,e,i){var n,s;t.src&&(e=e||t.container.lastChild,n=i?t.w:Math.round(t.w*t.fitRatio),s=i?t.h:Math.round(t.h*t.fitRatio),t.placeholder&&!t.loaded&&(t.placeholder.style.width=n+"px",t.placeholder.style.height=s+"px"),e.style.width=n+"px",e.style.height=s+"px")};s("Controller",{publicMethods:{lazyLoadItem:function(t){t=l(t);var e=Ye(t);e&&(!e.loaded&&!e.loading||tt)&&(y("gettingData",t,e),e.src&&je(e))},initController:function(){d.extend(g,Ke,!0),m.items=He=t,Ye=m.getItemAt,Ue=g.getNumItemsFn,g.loop,Ue()<3&&(g.loop=!1),r("beforeChange",function(t){for(var e=g.preload,i=null===t||0<=t,n=Math.min(e[0],Ue()),s=Math.min(e[1],Ue()),r=1;r<=(i?s:n);r++)m.lazyLoadItem(H+r);for(r=1;r<=(i?n:s);r++)m.lazyLoadItem(H-r)}),r("initialLayout",function(){m.currItem.initialLayout=g.getThumbBoundsFn&&g.getThumbBoundsFn(H)}),r("mainScrollAnimComplete",Be),r("initialZoomInEnd",Be),r("destroy",function(){for(var t,e=0;e=It.max.x&&i<=It.min.y&&i>=It.max.y)&&t.preventDefault(),m.panTo(e,i)},toggleDesktopZoom:function(t){t=t||{x:Xt.x/2+Ut.x,y:Xt.y/2+Ut.y};var e=g.getDoubleTapZoom(!0,m.currItem),i=Z===e;m.mouseZoomedIn=!i,m.zoomTo(i?m.currItem.initialZoomLevel:e,t,333),d[(i?"remove":"add")+"Class"](f,"pswp--zoomed-in")}}});function si(){return yi.hash.substring(1)}function ri(){oi&&clearTimeout(oi),hi&&clearTimeout(hi)}function ai(){var t=si(),e={};if(t.length<5)return e;var i,n=t.split("&");for(r=0;rA.fitControlsWidth?(e=A.barsSize,A.captionEl&&"auto"===e.bottom?(m||((m=o.createEl("pswp__caption pswp__caption--fake")).appendChild(o.createEl("pswp__caption__center")),f.insertBefore(m,d),o.addClass(f,"pswp__ui--fit")),A.addCaptionHTMLFn(t,m,!0)?(i=m.clientHeight,n.bottom=parseInt(i,10)||44):n.bottom=e.top):n.bottom="auto"===e.bottom?0:e.bottom,n.top=e.top):n.top=n.bottom=0}function u(){function t(t){if(t)for(var e=t.length,i=0;i