   !function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){var i=[],n=i.slice,r=i.concat,o=i.push,s=i.indexOf,a={},l=a.toString,h=a.hasOwnProperty,c={},u="1.11.3",d=function(t,e){return new d.fn.init(t,e)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,f=/^-ms-/,g=/-([\da-z])/gi,m=function(t,e){return e.toUpperCase()};function v(t){var e="length"in t&&t.length,i=d.type(t);return"function"!==i&&!d.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t))}d.fn=d.prototype={jquery:u,constructor:d,selector:"",length:0,toArray:function(){return n.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:n.call(this)},pushStack:function(t){var e=d.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return d.each(this,t,e)},map:function(t){return this.pushStack(d.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(n.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(0>t?e:0);return this.pushStack(i>=0&&e>i?[this[i]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:o,sort:i.sort,splice:i.splice},d.extend=d.fn.extend=function(){var t,e,i,n,r,o,s=arguments[0]||{},a=1,l=arguments.length,h=!1;for("boolean"==typeof s&&(h=s,s=arguments[a]||{},a++),"object"==typeof s||d.isFunction(s)||(s={}),a===l&&(s=this,a--);l>a;a++)if(null!=(r=arguments[a]))for(n in r)t=s[n],s!==(i=r[n])&&(h&&i&&(d.isPlainObject(i)||(e=d.isArray(i)))?(e?(e=!1,o=t&&d.isArray(t)?t:[]):o=t&&d.isPlainObject(t)?t:{},s[n]=d.extend(h,o,i)):void 0!==i&&(s[n]=i));return s},d.extend({expando:"jQuery"+(u+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===d.type(t)},isArray:Array.isArray||function(t){return"array"===d.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!d.isArray(t)&&t-parseFloat(t)+1>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==d.type(t)||t.nodeType||d.isWindow(t))return!1;try{if(t.constructor&&!h.call(t,"constructor")&&!h.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(c.ownLast)for(e in t)return h.call(t,e);for(e in t);return void 0===e||h.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?a[l.call(t)]||"object":typeof t},globalEval:function(e){e&&d.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(f,"ms-").replace(g,m)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,i){var n=0,r=t.length,o=v(t);if(i){if(o)for(;r>n&&!1!==e.apply(t[n],i);n++);else for(n in t)if(!1===e.apply(t[n],i))break}else if(o)for(;r>n&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},trim:function(t){return null==t?"":(t+"").replace(p,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(v(Object(t))?d.merge(i,"string"==typeof t?[t]:t):o.call(i,t)),i},inArray:function(t,e,i){var n;if(e){if(s)return s.call(e,t,i);for(n=e.length,i=i?0>i?Math.max(0,n+i):i:0;n>i;i++)if(i in e&&e[i]===t)return i}return-1},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;i>n;)t[r++]=e[n++];if(i!=i)for(;void 0!==e[n];)t[r++]=e[n++];return t.length=r,t},grep:function(t,e,i){for(var n=[],r=0,o=t.length,s=!i;o>r;r++)!e(t[r],r)!==s&&n.push(t[r]);return n},map:function(t,e,i){var n,o=0,s=t.length,a=[];if(v(t))for(;s>o;o++)null!=(n=e(t[o],o,i))&&a.push(n);else for(o in t)null!=(n=e(t[o],o,i))&&a.push(n);return r.apply([],a)},guid:1,proxy:function(t,e){var i,r,o;return"string"==typeof e&&(o=t[e],e=t,t=o),d.isFunction(t)?(i=n.call(arguments,2),(r=function(){return t.apply(e||this,i.concat(n.call(arguments)))}).guid=t.guid=t.guid||d.guid++,r):void 0},now:function(){return+new Date},support:c}),d.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){a["[object "+e+"]"]=e.toLowerCase()});var y=function(t){var e,i,n,r,o,s,a,l,h,c,u,d,p,f,g,m,v,y,x,b="sizzle"+1*new Date,w=t.document,$=0,S=0,k=st(),T=st(),C=st(),E=function(t,e){return t===e&&(u=!0),0},M=1<<31,A={}.hasOwnProperty,P=[],L=P.pop,O=P.push,D=P.push,N=P.slice,I=function(t,e){for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i;return-1},z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",H="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",_=H.replace("w","w#"),j="\\["+R+"*("+H+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+_+"))|)"+R+"*\\]",B=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",W=new RegExp(R+"+","g"),F=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),X=new RegExp("^"+R+"*,"+R+"*"),V=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),Y=new RegExp("="+R+"*([^\\]'\"]*?)"+R+"*\\]","g"),q=new RegExp(B),G=new RegExp("^"+_+"$"),U={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H.replace("w","w*")+")"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+z+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=/'|\\/g,it=new RegExp("\\\\([\\da-f]{1,6}"+R+"?|("+R+")|.)","ig"),nt=function(t,e,i){var n="0x"+e-65536;return n!=n||i?e:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},rt=function(){d()};try{D.apply(P=N.call(w.childNodes),w.childNodes),P[w.childNodes.length].nodeType}catch(t){D={apply:P.length?function(t,e){O.apply(t,N.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function ot(t,e,n,r){var o,a,h,c,u,f,v,y,$,S;if((e?e.ownerDocument||e:w)!==p&&d(e),n=n||[],c=(e=e||p).nodeType,"string"!=typeof t||!t||1!==c&&9!==c&&11!==c)return n;if(!r&&g){if(11!==c&&(o=Q.exec(t)))if(h=o[1]){if(9===c){if(!(a=e.getElementById(h))||!a.parentNode)return n;if(a.id===h)return n.push(a),n}else if(e.ownerDocument&&(a=e.ownerDocument.getElementById(h))&&x(e,a)&&a.id===h)return n.push(a),n}else{if(o[2])return D.apply(n,e.getElementsByTagName(t)),n;if((h=o[3])&&i.getElementsByClassName)return D.apply(n,e.getElementsByClassName(h)),n}if(i.qsa&&(!m||!m.test(t))){if(y=v=b,$=e,S=1!==c&&t,1===c&&"object"!==e.nodeName.toLowerCase()){for(f=s(t),(v=e.getAttribute("id"))?y=v.replace(et,"\\$&"):e.setAttribute("id",y),y="[id='"+y+"'] ",u=f.length;u--;)f[u]=y+mt(f[u]);$=tt.test(t)&&ft(e.parentNode)||e,S=f.join(",")}if(S)try{return D.apply(n,$.querySelectorAll(S)),n}catch(t){}finally{v||e.removeAttribute("id")}}}return l(t.replace(F,"$1"),e,n,r)}function st(){var t=[];return function e(i,r){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=r}}function at(t){return t[b]=!0,t}function lt(t){var e=p.createElement("div");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("|"),r=t.length;r--;)n.attrHandle[i[r]]=e}function ct(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||M)-(~t.sourceIndex||M);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ut(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function pt(t){return at(function(e){return e=+e,at(function(i,n){for(var r,o=t([],i.length,e),s=o.length;s--;)i[r=o[s]]&&(i[r]=!(n[r]=i[r]))})})}function ft(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=ot.support={},o=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},d=ot.setDocument=function(t){var e,r,s=t?t.ownerDocument||t:w;return s!==p&&9===s.nodeType&&s.documentElement?(p=s,f=s.documentElement,(r=s.defaultView)&&r!==r.top&&(r.addEventListener?r.addEventListener("unload",rt,!1):r.attachEvent&&r.attachEvent("onunload",rt)),g=!o(s),i.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),i.getElementsByTagName=lt(function(t){return t.appendChild(s.createComment("")),!t.getElementsByTagName("*").length}),i.getElementsByClassName=J.test(s.getElementsByClassName),i.getById=lt(function(t){return f.appendChild(t).id=b,!s.getElementsByName||!s.getElementsByName(b).length}),i.getById?(n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i=e.getElementById(t);return i&&i.parentNode?[i]:[]}},n.filter.ID=function(t){var e=t.replace(it,nt);return function(t){return t.getAttribute("id")===e}}):(delete n.find.ID,n.filter.ID=function(t){var e=t.replace(it,nt);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[r++];)1===i.nodeType&&n.push(i);return n}return o},n.find.CLASS=i.getElementsByClassName&&function(t,e){return g?e.getElementsByClassName(t):void 0},v=[],m=[],(i.qsa=J.test(s.querySelectorAll))&&(lt(function(t){f.appendChild(t).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+R+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+R+"*(?:value|"+z+")"),t.querySelectorAll("[id~="+b+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]")}),lt(function(t){var e=s.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+R+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(i.matchesSelector=J.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&lt(function(t){i.disconnectedMatch=y.call(t,"div"),y.call(t,"[s!='']:x"),v.push("!=",B)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),e=J.test(f.compareDocumentPosition),x=e||J.test(f.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},E=e?function(t,e){if(t===e)return u=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t===s||t.ownerDocument===w&&x(w,t)?-1:e===s||e.ownerDocument===w&&x(w,e)?1:c?I(c,t)-I(c,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var i,n=0,r=t.parentNode,o=e.parentNode,a=[t],l=[e];if(!r||!o)return t===s?-1:e===s?1:r?-1:o?1:c?I(c,t)-I(c,e):0;if(r===o)return ct(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)l.unshift(i);for(;a[n]===l[n];)n++;return n?ct(a[n],l[n]):a[n]===w?-1:l[n]===w?1:0},s):p},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==p&&d(t),e=e.replace(Y,"='$1']"),!(!i.matchesSelector||!g||v&&v.test(e)||m&&m.test(e)))try{var n=y.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return ot(e,p,null,[t]).length>0},ot.contains=function(t,e){return(t.ownerDocument||t)!==p&&d(t),x(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!==p&&d(t);var r=n.attrHandle[e.toLowerCase()],o=r&&A.call(n.attrHandle,e.toLowerCase())?r(t,e,!g):void 0;return void 0!==o?o:i.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,n=[],r=0,o=0;if(u=!i.detectDuplicates,c=!i.sortStable&&t.slice(0),t.sort(E),u){for(;e=t[o++];)e===t[o]&&(r=n.push(o));for(;r--;)t.splice(n[r],1)}return c=null,t},r=ot.getText=function(t){var e,i="",n=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[n++];)i+=r(e);return i},(n=ot.selectors={cacheLength:50,createPseudo:at,match:U,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(it,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(it,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.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]&&ot.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return U.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&q.test(i)&&(e=s(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(it,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=k[t+" "];return e||(e=new RegExp("(^|"+R+")"+t+"("+R+"|$)"))&&k(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,i){return function(n){var r=ot.attr(n,t);return null==r?"!="===e:!e||(r+="","="===e?r===i:"!="===e?r!==i:"^="===e?i&&0===r.indexOf(i):"*="===e?i&&r.indexOf(i)>-1:"$="===e?i&&r.slice(-i.length)===i:"~="===e?(" "+r.replace(W," ")+" ").indexOf(i)>-1:"|="===e&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,l){var h,c,u,d,p,f,g=o!==s?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a;if(m){if(o){for(;g;){for(u=e;u=u[g];)if(a?u.nodeName.toLowerCase()===v:1===u.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[s?m.firstChild:m.lastChild],s&&y){for(p=(h=(c=m[b]||(m[b]={}))[t]||[])[0]===$&&h[1],d=h[0]===$&&h[2],u=p&&m.childNodes[p];u=++p&&u&&u[g]||(d=p=0)||f.pop();)if(1===u.nodeType&&++d&&u===e){c[t]=[$,p,d];break}}else if(y&&(h=(e[b]||(e[b]={}))[t])&&h[0]===$)d=h[1];else for(;(u=++p&&u&&u[g]||(d=p=0)||f.pop())&&((a?u.nodeName.toLowerCase()!==v:1!==u.nodeType)||!++d||(y&&((u[b]||(u[b]={}))[t]=[$,d]),u!==e)););return(d-=r)===n||d%n==0&&d/n>=0}}},PSEUDO:function(t,e){var i,r=n.pseudos[t]||n.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return r[b]?r(e):r.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?at(function(t,i){for(var n,o=r(t,e),s=o.length;s--;)t[n=I(t,o[s])]=!(i[n]=o[s])}):function(t){return r(t,0,i)}):r}},pseudos:{not:at(function(t){var e=[],i=[],n=a(t.replace(F,"$1"));return n[b]?at(function(t,e,i,r){for(var o,s=n(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,r,o){return e[0]=t,n(e,null,o,i),e[0]=null,!i.pop()}}),has:at(function(t){return function(e){return ot(t,e).length>0}}),contains:at(function(t){return t=t.replace(it,nt),function(e){return(e.textContent||e.innerText||r(e)).indexOf(t)>-1}}),lang:at(function(t){return G.test(t||"")||ot.error("unsupported lang: "+t),t=t.replace(it,nt).toLowerCase(),function(e){var i;do{if(i=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return Z.test(t.nodeName)},input:function(t){return K.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:pt(function(){return[0]}),last:pt(function(t,e){return[e-1]}),eq:pt(function(t,e,i){return[0>i?i+e:i]}),even:pt(function(t,e){for(var i=0;e>i;i+=2)t.push(i);return t}),odd:pt(function(t,e){for(var i=1;e>i;i+=2)t.push(i);return t}),lt:pt(function(t,e,i){for(var n=0>i?i+e:i;--n>=0;)t.push(n);return t}),gt:pt(function(t,e,i){for(var n=0>i?i+e:i;++n<e;)t.push(n);return t})}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=ut(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=dt(e);function gt(){}function mt(t){for(var e=0,i=t.length,n="";i>e;e++)n+=t[e].value;return n}function vt(t,e,i){var n=e.dir,r=i&&"parentNode"===n,o=S++;return e.first?function(e,i,o){for(;e=e[n];)if(1===e.nodeType||r)return t(e,i,o)}:function(e,i,s){var a,l,h=[$,o];if(s){for(;e=e[n];)if((1===e.nodeType||r)&&t(e,i,s))return!0}else for(;e=e[n];)if(1===e.nodeType||r){if((a=(l=e[b]||(e[b]={}))[n])&&a[0]===$&&a[1]===o)return h[2]=a[2];if(l[n]=h,h[2]=t(e,i,s))return!0}}}function yt(t){return t.length>1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function xt(t,e,i,n,r){for(var o,s=[],a=0,l=t.length,h=null!=e;l>a;a++)(o=t[a])&&(!i||i(o,n,r))&&(s.push(o),h&&e.push(a));return s}function bt(t,e,i,n,r,o){return n&&!n[b]&&(n=bt(n)),r&&!r[b]&&(r=bt(r,o)),at(function(o,s,a,l){var h,c,u,d=[],p=[],f=s.length,g=o||function(t,e,i){for(var n=0,r=e.length;r>n;n++)ot(t,e[n],i);return i}(e||"*",a.nodeType?[a]:a,[]),m=!t||!o&&e?g:xt(g,d,t,a,l),v=i?r||(o?t:f||n)?[]:s:m;if(i&&i(m,v,a,l),n)for(h=xt(v,p),n(h,[],a,l),c=h.length;c--;)(u=h[c])&&(v[p[c]]=!(m[p[c]]=u));if(o){if(r||t){if(r){for(h=[],c=v.length;c--;)(u=v[c])&&h.push(m[c]=u);r(null,v=[],h,l)}for(c=v.length;c--;)(u=v[c])&&(h=r?I(o,u):d[c])>-1&&(o[h]=!(s[h]=u))}}else v=xt(v===s?v.splice(f,v.length):v),r?r(null,s,v,l):D.apply(s,v)})}function wt(t){for(var e,i,r,o=t.length,s=n.relative[t[0].type],a=s||n.relative[" "],l=s?1:0,c=vt(function(t){return t===e},a,!0),u=vt(function(t){return I(e,t)>-1},a,!0),d=[function(t,i,n){var r=!s&&(n||i!==h)||((e=i).nodeType?c(t,i,n):u(t,i,n));return e=null,r}];o>l;l++)if(i=n.relative[t[l].type])d=[vt(yt(d),i)];else{if((i=n.filter[t[l].type].apply(null,t[l].matches))[b]){for(r=++l;o>r&&!n.relative[t[r].type];r++);return bt(l>1&&yt(d),l>1&&mt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(F,"$1"),i,r>l&&wt(t.slice(l,r)),o>r&&wt(t=t.slice(r)),o>r&&mt(t))}d.push(i)}return yt(d)}function $t(t,e){var i=e.length>0,r=t.length>0,o=function(o,s,a,l,c){var u,d,f,g=0,m="0",v=o&&[],y=[],x=h,b=o||r&&n.find.TAG("*",c),w=$+=null==x?1:Math.random()||.1,S=b.length;for(c&&(h=s!==p&&s);m!==S&&null!=(u=b[m]);m++){if(r&&u){for(d=0;f=t[d++];)if(f(u,s,a)){l.push(u);break}c&&($=w)}i&&((u=!f&&u)&&g--,o&&v.push(u))}if(g+=m,i&&m!==g){for(d=0;f=e[d++];)f(v,y,s,a);if(o){if(g>0)for(;m--;)v[m]||y[m]||(y[m]=L.call(l));y=xt(y)}D.apply(l,y),c&&!o&&y.length>0&&g+e.length>1&&ot.uniqueSort(l)}return c&&($=w,h=x),v};return i?at(o):o}return gt.prototype=n.filters=n.pseudos,n.setFilters=new gt,s=ot.tokenize=function(t,e){var i,r,o,s,a,l,h,c=T[t+" "];if(c)return e?0:c.slice(0);for(a=t,l=[],h=n.preFilter;a;){for(s in(!i||(r=X.exec(a)))&&(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=V.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(F," ")}),a=a.slice(i.length)),n.filter)!(r=U[s].exec(a))||h[s]&&!(r=h[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}return e?a.length:a?ot.error(t):T(t,l).slice(0)},a=ot.compile=function(t,e){var i,n=[],r=[],o=C[t+" "];if(!o){for(e||(e=s(t)),i=e.length;i--;)(o=wt(e[i]))[b]?n.push(o):r.push(o);(o=C(t,$t(r,n))).selector=t}return o},l=ot.select=function(t,e,r,o){var l,h,c,u,d,p="function"==typeof t&&t,f=!o&&s(t=p.selector||t);if(r=r||[],1===f.length){if((h=f[0]=f[0].slice(0)).length>2&&"ID"===(c=h[0]).type&&i.getById&&9===e.nodeType&&g&&n.relative[h[1].type]){if(!(e=(n.find.ID(c.matches[0].replace(it,nt),e)||[])[0]))return r;p&&(e=e.parentNode),t=t.slice(h.shift().value.length)}for(l=U.needsContext.test(t)?0:h.length;l--&&(c=h[l],!n.relative[u=c.type]);)if((d=n.find[u])&&(o=d(c.matches[0].replace(it,nt),tt.test(h[0].type)&&ft(e.parentNode)||e))){if(h.splice(l,1),!(t=o.length&&mt(h)))return D.apply(r,o),r;break}}return(p||a(t,f))(o,e,!g,r,tt.test(t)&&ft(e.parentNode)||e),r},i.sortStable=b.split("").sort(E).join("")===b,i.detectDuplicates=!!u,d(),i.sortDetached=lt(function(t){return 1&t.compareDocumentPosition(p.createElement("div"))}),lt(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ht("type|href|height|width",function(t,e,i){return i?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),i.attributes&&lt(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ht("value",function(t,e,i){return i||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),lt(function(t){return null==t.getAttribute("disabled")})||ht(z,function(t,e,i){var n;return i?void 0:!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),ot}(t);d.find=y,d.expr=y.selectors,d.expr[":"]=d.expr.pseudos,d.unique=y.uniqueSort,d.text=y.getText,d.isXMLDoc=y.isXML,d.contains=y.contains;var x=d.expr.match.needsContext,b=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function $(t,e,i){if(d.isFunction(e))return d.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return d.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(w.test(e))return d.filter(e,t,i);e=d.filter(e,t)}return d.grep(t,function(t){return d.inArray(t,e)>=0!==i})}d.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?d.find.matchesSelector(n,t)?[n]:[]:d.find.matches(t,d.grep(e,function(t){return 1===t.nodeType}))},d.fn.extend({find:function(t){var e,i=[],n=this,r=n.length;if("string"!=typeof t)return this.pushStack(d(t).filter(function(){for(e=0;r>e;e++)if(d.contains(n[e],this))return!0}));for(e=0;r>e;e++)d.find(t,n[e],i);return(i=this.pushStack(r>1?d.unique(i):i)).selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack($(this,t||[],!1))},not:function(t){return this.pushStack($(this,t||[],!0))},is:function(t){return!!$(this,"string"==typeof t&&x.test(t)?d(t):t||[],!1).length}});var S,k=t.document,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(d.fn.init=function(t,e){var i,n;if(!t)return this;if("string"==typeof t){if(!(i="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:T.exec(t))||!i[1]&&e)return!e||e.jquery?(e||S).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof d?e[0]:e,d.merge(this,d.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:k,!0)),b.test(i[1])&&d.isPlainObject(e))for(i in e)d.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}if((n=k.getElementById(i[2]))&&n.parentNode){if(n.id!==i[2])return S.find(t);this.length=1,this[0]=n}return this.context=k,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):d.isFunction(t)?void 0!==S.ready?S.ready(t):t(d):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),d.makeArray(t,this))}).prototype=d.fn,S=d(k);var C=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};function M(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}d.extend({dir:function(t,e,i){for(var n=[],r=t[e];r&&9!==r.nodeType&&(void 0===i||1!==r.nodeType||!d(r).is(i));)1===r.nodeType&&n.push(r),r=r[e];return n},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}}),d.fn.extend({has:function(t){var e,i=d(t,this),n=i.length;return this.filter(function(){for(e=0;n>e;e++)if(d.contains(this,i[e]))return!0})},closest:function(t,e){for(var i,n=0,r=this.length,o=[],s=x.test(t)||"string"!=typeof t?d(t,e||this.context):0;r>n;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(s?s.index(i)>-1:1===i.nodeType&&d.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?d.unique(o):o)},index:function(t){return t?"string"==typeof t?d.inArray(this[0],d(t)):d.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(d.unique(d.merge(this.get(),d(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),d.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return d.dir(t,"parentNode")},parentsUntil:function(t,e,i){return d.dir(t,"parentNode",i)},next:function(t){return M(t,"nextSibling")},prev:function(t){return M(t,"previousSibling")},nextAll:function(t){return d.dir(t,"nextSibling")},prevAll:function(t){return d.dir(t,"previousSibling")},nextUntil:function(t,e,i){return d.dir(t,"nextSibling",i)},prevUntil:function(t,e,i){return d.dir(t,"previousSibling",i)},siblings:function(t){return d.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return d.sibling(t.firstChild)},contents:function(t){return d.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:d.merge([],t.childNodes)}},function(t,e){d.fn[t]=function(i,n){var r=d.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=d.filter(n,r)),this.length>1&&(E[t]||(r=d.unique(r)),C.test(t)&&(r=r.reverse())),this.pushStack(r)}});var A,P=/\S+/g,L={};function O(){k.addEventListener?(k.removeEventListener("DOMContentLoaded",D,!1),t.removeEventListener("load",D,!1)):(k.detachEvent("onreadystatechange",D),t.detachEvent("onload",D))}function D(){(k.addEventListener||"load"===event.type||"complete"===k.readyState)&&(O(),d.ready())}d.Callbacks=function(t){t="string"==typeof t?L[t]||function(t){var e=L[t]={};return d.each(t.match(P)||[],function(t,i){e[i]=!0}),e}(t):d.extend({},t);var e,i,n,r,o,s,a=[],l=!t.once&&[],h=function(u){for(i=t.memory&&u,n=!0,o=s||0,s=0,r=a.length,e=!0;a&&r>o;o++)if(!1===a[o].apply(u[0],u[1])&&t.stopOnFalse){i=!1;break}e=!1,a&&(l?l.length&&h(l.shift()):i?a=[]:c.disable())},c={add:function(){if(a){var n=a.length;!function e(i){d.each(i,function(i,n){var r=d.type(n);"function"===r?t.unique&&c.has(n)||a.push(n):n&&n.length&&"string"!==r&&e(n)})}(arguments),e?r=a.length:i&&(s=n,h(i))}return this},remove:function(){return a&&d.each(arguments,function(t,i){for(var n;(n=d.inArray(i,a,n))>-1;)a.splice(n,1),e&&(r>=n&&r--,o>=n&&o--)}),this},has:function(t){return t?d.inArray(t,a)>-1:!(!a||!a.length)},empty:function(){return a=[],r=0,this},disable:function(){return a=l=i=void 0,this},disabled:function(){return!a},lock:function(){return l=void 0,i||c.disable(),this},locked:function(){return!l},fireWith:function(t,i){return!a||n&&!l||(i=[t,(i=i||[]).slice?i.slice():i],e?l.push(i):h(i)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},d.extend({Deferred:function(t){var e=[["resolve","done",d.Callbacks("once memory"),"resolved"],["reject","fail",d.Callbacks("once memory"),"rejected"],["notify","progress",d.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return d.Deferred(function(i){d.each(e,function(e,o){var s=d.isFunction(t[e])&&t[e];r[o[1]](function(){var t=s&&s.apply(this,arguments);t&&d.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[o[0]+"With"](this===n?i.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?d.extend(t,n):n}},r={};return n.pipe=n.then,d.each(e,function(t,o){var s=o[2],a=o[3];n[o[1]]=s.add,a&&s.add(function(){i=a},e[1^t][2].disable,e[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?n:this,arguments),this},r[o[0]+"With"]=s.fireWith}),n.promise(r),t&&t.call(r,r),r},when:function(t){var e,i,r,o=0,s=n.call(arguments),a=s.length,l=1!==a||t&&d.isFunction(t.promise)?a:0,h=1===l?t:d.Deferred(),c=function(t,i,r){return function(o){i[t]=this,r[t]=arguments.length>1?n.call(arguments):o,r===e?h.notifyWith(i,r):--l||h.resolveWith(i,r)}};if(a>1)for(e=new Array(a),i=new Array(a),r=new Array(a);a>o;o++)s[o]&&d.isFunction(s[o].promise)?s[o].promise().done(c(o,r,s)).fail(h.reject).progress(c(o,i,e)):--l;return l||h.resolveWith(r,s),h.promise()}}),d.fn.ready=function(t){return d.ready.promise().done(t),this},d.extend({isReady:!1,readyWait:1,holdReady:function(t){t?d.readyWait++:d.ready(!0)},ready:function(t){if(!0===t?!--d.readyWait:!d.isReady){if(!k.body)return setTimeout(d.ready);d.isReady=!0,!0!==t&&--d.readyWait>0||(A.resolveWith(k,[d]),d.fn.triggerHandler&&(d(k).triggerHandler("ready"),d(k).off("ready")))}}}),d.ready.promise=function(e){if(!A)if(A=d.Deferred(),"complete"===k.readyState)setTimeout(d.ready);else if(k.addEventListener)k.addEventListener("DOMContentLoaded",D,!1),t.addEventListener("load",D,!1);else{k.attachEvent("onreadystatechange",D),t.attachEvent("onload",D);var i=!1;try{i=null==t.frameElement&&k.documentElement}catch(t){}i&&i.doScroll&&function t(){if(!d.isReady){try{i.doScroll("left")}catch(e){return setTimeout(t,50)}O(),d.ready()}}()}return A.promise(e)};var N,I="undefined";for(N in d(c))break;c.ownLast="0"!==N,c.inlineBlockNeedsLayout=!1,d(function(){var t,e,i,n;(i=k.getElementsByTagName("body")[0])&&i.style&&(e=k.createElement("div"),(n=k.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(e),typeof e.style.zoom!==I&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",c.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(i.style.zoom=1)),i.removeChild(n))}),function(){var t=k.createElement("div");if(null==c.deleteExpando){c.deleteExpando=!0;try{delete t.test}catch(t){c.deleteExpando=!1}}t=null}(),d.acceptData=function(t){var e=d.noData[(t.nodeName+" ").toLowerCase()],i=+t.nodeType||1;return(1===i||9===i)&&(!e||!0!==e&&t.getAttribute("classid")===e)};var z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,R=/([A-Z])/g;function H(t,e,i){if(void 0===i&&1===t.nodeType){var n="data-"+e.replace(R,"-$1").toLowerCase();if("string"==typeof(i=t.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:z.test(i)?d.parseJSON(i):i)}catch(t){}d.data(t,e,i)}else i=void 0}return i}function _(t){var e;for(e in t)if(("data"!==e||!d.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function j(t,e,n,r){if(d.acceptData(t)){var o,s,a=d.expando,l=t.nodeType,h=l?d.cache:t,c=l?t[a]:t[a]&&a;if(c&&h[c]&&(r||h[c].data)||void 0!==n||"string"!=typeof e)return c||(c=l?t[a]=i.pop()||d.guid++:a),h[c]||(h[c]=l?{}:{toJSON:d.noop}),("object"==typeof e||"function"==typeof e)&&(r?h[c]=d.extend(h[c],e):h[c].data=d.extend(h[c].data,e)),s=h[c],r||(s.data||(s.data={}),s=s.data),void 0!==n&&(s[d.camelCase(e)]=n),"string"==typeof e?null==(o=s[e])&&(o=s[d.camelCase(e)]):o=s,o}}function B(t,e,i){if(d.acceptData(t)){var n,r,o=t.nodeType,s=o?d.cache:t,a=o?t[d.expando]:d.expando;if(s[a]){if(e&&(n=i?s[a]:s[a].data)){d.isArray(e)?e=e.concat(d.map(e,d.camelCase)):e in n?e=[e]:e=(e=d.camelCase(e))in n?[e]:e.split(" "),r=e.length;for(;r--;)delete n[e[r]];if(i?!_(n):!d.isEmptyObject(n))return}(i||(delete s[a].data,_(s[a])))&&(o?d.cleanData([t],!0):c.deleteExpando||s!=s.window?delete s[a]:s[a]=null)}}}d.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?d.cache[t[d.expando]]:t[d.expando])&&!_(t)},data:function(t,e,i){return j(t,e,i)},removeData:function(t,e){return B(t,e)},_data:function(t,e,i){return j(t,e,i,!0)},_removeData:function(t,e){return B(t,e,!0)}}),d.fn.extend({data:function(t,e){var i,n,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=d.data(o),1===o.nodeType&&!d._data(o,"parsedAttrs"))){for(i=s.length;i--;)s[i]&&(0===(n=s[i].name).indexOf("data-")&&H(o,n=d.camelCase(n.slice(5)),r[n]));d._data(o,"parsedAttrs",!0)}return r}return"object"==typeof t?this.each(function(){d.data(this,t)}):arguments.length>1?this.each(function(){d.data(this,t,e)}):o?H(o,t,d.data(o,t)):void 0},removeData:function(t){return this.each(function(){d.removeData(this,t)})}}),d.extend({queue:function(t,e,i){var n;return t?(e=(e||"fx")+"queue",n=d._data(t,e),i&&(!n||d.isArray(i)?n=d._data(t,e,d.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(t,e){e=e||"fx";var i=d.queue(t,e),n=i.length,r=i.shift(),o=d._queueHooks(t,e);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete o.stop,r.call(t,function(){d.dequeue(t,e)},o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return d._data(t,i)||d._data(t,i,{empty:d.Callbacks("once memory").add(function(){d._removeData(t,e+"queue"),d._removeData(t,i)})})}}),d.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?d.queue(this[0],t):void 0===e?this:this.each(function(){var i=d.queue(this,t,e);d._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&d.dequeue(this,t)})},dequeue:function(t){return this.each(function(){d.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,r=d.Deferred(),o=this,s=this.length,a=function(){--n||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(i=d._data(o[s],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),r.promise(e)}});var W=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,F=["Top","Right","Bottom","Left"],X=function(t,e){return t=e||t,"none"===d.css(t,"display")||!d.contains(t.ownerDocument,t)},V=d.access=function(t,e,i,n,r,o,s){var a=0,l=t.length,h=null==i;if("object"===d.type(i))for(a in r=!0,i)d.access(t,e,a,i[a],!0,o,s);else if(void 0!==n&&(r=!0,d.isFunction(n)||(s=!0),h&&(s?(e.call(t,n),e=null):(h=e,e=function(t,e,i){return h.call(d(t),i)})),e))for(;l>a;a++)e(t[a],i,s?n:n.call(t[a],a,e(t[a],i)));return r?t:h?e.call(t):l?e(t[0],i):o},Y=/^(?:checkbox|radio)$/i;!function(){var t=k.createElement("input"),e=k.createElement("div"),i=k.createDocumentFragment();if(e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",c.leadingWhitespace=3===e.firstChild.nodeType,c.tbody=!e.getElementsByTagName("tbody").length,c.htmlSerialize=!!e.getElementsByTagName("link").length,c.html5Clone="<:nav></:nav>"!==k.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,i.appendChild(t),c.appendChecked=t.checked,e.innerHTML="<textarea>x</textarea>",c.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,i.appendChild(e),e.innerHTML="<input type='radio' checked='checked' name='t'/>",c.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,c.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",function(){c.noCloneEvent=!1}),e.cloneNode(!0).click()),null==c.deleteExpando){c.deleteExpando=!0;try{delete e.test}catch(t){c.deleteExpando=!1}}}(),function(){var e,i,n=k.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})i="on"+e,(c[e+"Bubbles"]=i in t)||(n.setAttribute(i,"t"),c[e+"Bubbles"]=!1===n.attributes[i].expando);n=null}();var q=/^(?:input|select|textarea)$/i,G=/^key/,U=/^(?:mouse|pointer|contextmenu)|click/,K=/^(?:focusinfocus|focusoutblur)$/,Z=/^([^.]*)(?:\.(.+)|)$/;function J(){return!0}function Q(){return!1}function tt(){try{return k.activeElement}catch(t){}}function et(t){var e=it.split("|"),i=t.createDocumentFragment();if(i.createElement)for(;e.length;)i.createElement(e.pop());return i}d.event={global:{},add:function(t,e,i,n,r){var o,s,a,l,h,c,u,p,f,g,m,v=d._data(t);if(v){for(i.handler&&(i=(l=i).handler,r=l.selector),i.guid||(i.guid=d.guid++),(s=v.events)||(s=v.events={}),(c=v.handle)||((c=v.handle=function(t){return typeof d===I||t&&d.event.triggered===t.type?void 0:d.event.dispatch.apply(c.elem,arguments)}).elem=t),a=(e=(e||"").match(P)||[""]).length;a--;)f=m=(o=Z.exec(e[a])||[])[1],g=(o[2]||"").split(".").sort(),f&&(h=d.event.special[f]||{},f=(r?h.delegateType:h.bindType)||f,h=d.event.special[f]||{},u=d.extend({type:f,origType:m,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&d.expr.match.needsContext.test(r),namespace:g.join(".")},l),(p=s[f])||((p=s[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,n,g,c)||(t.addEventListener?t.addEventListener(f,c,!1):t.attachEvent&&t.attachEvent("on"+f,c))),h.add&&(h.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),r?p.splice(p.delegateCount++,0,u):p.push(u),d.event.global[f]=!0);t=null}},remove:function(t,e,i,n,r){var o,s,a,l,h,c,u,p,f,g,m,v=d.hasData(t)&&d._data(t);if(v&&(c=v.events)){for(h=(e=(e||"").match(P)||[""]).length;h--;)if(f=m=(a=Z.exec(e[h])||[])[1],g=(a[2]||"").split(".").sort(),f){for(u=d.event.special[f]||{},p=c[f=(n?u.delegateType:u.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=p.length;o--;)s=p[o],!r&&m!==s.origType||i&&i.guid!==s.guid||a&&!a.test(s.namespace)||n&&n!==s.selector&&("**"!==n||!s.selector)||(p.splice(o,1),s.selector&&p.delegateCount--,u.remove&&u.remove.call(t,s));l&&!p.length&&(u.teardown&&!1!==u.teardown.call(t,g,v.handle)||d.removeEvent(t,f,v.handle),delete c[f])}else for(f in c)d.event.remove(t,f+e[h],i,n,!0);d.isEmptyObject(c)&&(delete v.handle,d._removeData(t,"events"))}},trigger:function(e,i,n,r){var o,s,a,l,c,u,p,f=[n||k],g=h.call(e,"type")?e.type:e,m=h.call(e,"namespace")?e.namespace.split("."):[];if(a=u=n=n||k,3!==n.nodeType&&8!==n.nodeType&&!K.test(g+d.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),s=g.indexOf(":")<0&&"on"+g,(e=e[d.expando]?e:new d.Event(g,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=m.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:d.makeArray(i,[e]),c=d.event.special[g]||{},r||!c.trigger||!1!==c.trigger.apply(n,i))){if(!r&&!c.noBubble&&!d.isWindow(n)){for(l=c.delegateType||g,K.test(l+g)||(a=a.parentNode);a;a=a.parentNode)f.push(a),u=a;u===(n.ownerDocument||k)&&f.push(u.defaultView||u.parentWindow||t)}for(p=0;(a=f[p++])&&!e.isPropagationStopped();)e.type=p>1?l:c.bindType||g,(o=(d._data(a,"events")||{})[e.type]&&d._data(a,"handle"))&&o.apply(a,i),(o=s&&a[s])&&o.apply&&d.acceptData(a)&&(e.result=o.apply(a,i),!1===e.result&&e.preventDefault());if(e.type=g,!r&&!e.isDefaultPrevented()&&(!c._default||!1===c._default.apply(f.pop(),i))&&d.acceptData(n)&&s&&n[g]&&!d.isWindow(n)){(u=n[s])&&(n[s]=null),d.event.triggered=g;try{n[g]()}catch(t){}d.event.triggered=void 0,u&&(n[s]=u)}return e.result}},dispatch:function(t){t=d.event.fix(t);var e,i,r,o,s,a=[],l=n.call(arguments),h=(d._data(this,"events")||{})[t.type]||[],c=d.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(a=d.event.handlers.call(this,t,h),e=0;(o=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=o.elem,s=0;(r=o.handlers[s++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(r.namespace))&&(t.handleObj=r,t.data=r.data,void 0!==(i=((d.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,l))&&!1===(t.result=i)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,r,o,s=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(r=[],o=0;a>o;o++)void 0===r[i=(n=e[o]).selector+" "]&&(r[i]=n.needsContext?d(i,this).index(l)>=0:d.find(i,this,null,[l]).length),r[i]&&r.push(n);r.length&&s.push({elem:l,handlers:r})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},fix:function(t){if(t[d.expando])return t;var e,i,n,r=t.type,o=t,s=this.fixHooks[r];for(s||(this.fixHooks[r]=s=U.test(r)?this.mouseHooks:G.test(r)?this.keyHooks:{}),n=s.props?this.props.concat(s.props):this.props,t=new d.Event(o),e=n.length;e--;)t[i=n[e]]=o[i];return t.target||(t.target=o.srcElement||k),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,s.filter?s.filter(t,o):t},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var i,n,r,o=e.button,s=e.fromElement;return null==t.pageX&&null!=e.clientX&&(r=(n=t.target.ownerDocument||k).documentElement,i=n.body,t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),!t.relatedTarget&&s&&(t.relatedTarget=s===t.target?e.toElement:s),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==tt()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){return this===tt()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return d.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(t){return d.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,i,n){var r=d.extend(new d.Event,i,{type:t,isSimulated:!0,originalEvent:{}});n?d.event.trigger(r,null,e):d.event.dispatch.call(e,r),r.isDefaultPrevented()&&i.preventDefault()}},d.removeEvent=k.removeEventListener?function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i,!1)}:function(t,e,i){var n="on"+e;t.detachEvent&&(typeof t[n]===I&&(t[n]=null),t.detachEvent(n,i))},d.Event=function(t,e){return this instanceof d.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?J:Q):this.type=t,e&&d.extend(this,e),this.timeStamp=t&&t.timeStamp||d.now(),void(this[d.expando]=!0)):new d.Event(t,e)},d.Event.prototype={isDefaultPrevented:Q,isPropagationStopped:Q,isImmediatePropagationStopped:Q,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=J,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=J,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=J,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},d.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){d.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=t.relatedTarget,r=t.handleObj;return(!n||n!==this&&!d.contains(this,n))&&(t.type=r.origType,i=r.handler.apply(this,arguments),t.type=e),i}}}),c.submitBubbles||(d.event.special.submit={setup:function(){return!d.nodeName(this,"form")&&void d.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,i=d.nodeName(e,"input")||d.nodeName(e,"button")?e.form:void 0;i&&!d._data(i,"submitBubbles")&&(d.event.add(i,"submit._submit",function(t){t._submit_bubble=!0}),d._data(i,"submitBubbles",!0))})},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&d.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){return!d.nodeName(this,"form")&&void d.event.remove(this,"._submit")}}),c.changeBubbles||(d.event.special.change={setup:function(){return q.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(d.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),d.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),d.event.simulate("change",this,t,!0)})),!1):void d.event.add(this,"beforeactivate._change",function(t){var e=t.target;q.test(e.nodeName)&&!d._data(e,"changeBubbles")&&(d.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||d.event.simulate("change",this.parentNode,t,!0)}),d._data(e,"changeBubbles",!0))})},handle:function(t){var e=t.target;return this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type?t.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return d.event.remove(this,"._change"),!q.test(this.nodeName)}}),c.focusinBubbles||d.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){d.event.simulate(e,t.target,d.event.fix(t),!0)};d.event.special[e]={setup:function(){var n=this.ownerDocument||this,r=d._data(n,e);r||n.addEventListener(t,i,!0),d._data(n,e,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=d._data(n,e)-1;r?d._data(n,e,r):(n.removeEventListener(t,i,!0),d._removeData(n,e))}}}),d.fn.extend({on:function(t,e,i,n,r){var o,s;if("object"==typeof t){for(o in"string"!=typeof e&&(i=i||e,e=void 0),t)this.on(o,e,i,t[o],r);return this}if(null==i&&null==n?(n=e,i=e=void 0):null==n&&("string"==typeof e?(n=i,i=void 0):(n=i,i=e,e=void 0)),!1===n)n=Q;else if(!n)return this;return 1===r&&(s=n,(n=function(t){return d().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=d.guid++)),this.each(function(){d.event.add(this,t,n,i,e)})},one:function(t,e,i,n){return this.on(t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,d(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return(!1===e||"function"==typeof e)&&(i=e,e=void 0),!1===i&&(i=Q),this.each(function(){d.event.remove(this,t,i,e)})},trigger:function(t,e){return this.each(function(){d.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];return i?d.event.trigger(t,e,i,!0):void 0}});var it="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",nt=/ jQuery\d+="(?:null|\d+)"/g,rt=new RegExp("<(?:"+it+")[\\s/>]","i"),ot=/^\s+/,st=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,at=/<([\w:]+)/,lt=/<tbody/i,ht=/<|&#?\w+;/,ct=/<(?:script|style|link)/i,ut=/checked\s*(?:[^=]|=\s*.checked.)/i,dt=/^$|\/(?:java|ecma)script/i,pt=/^true\/(.*)/,ft=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,gt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:c.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},mt=et(k).appendChild(k.createElement("div"));function vt(t,e){var i,n,r=0,o=typeof t.getElementsByTagName!==I?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==I?t.querySelectorAll(e||"*"):void 0;if(!o)for(o=[],i=t.childNodes||t;null!=(n=i[r]);r++)!e||d.nodeName(n,e)?o.push(n):d.merge(o,vt(n,e));return void 0===e||e&&d.nodeName(t,e)?d.merge([t],o):o}function yt(t){Y.test(t.type)&&(t.defaultChecked=t.checked)}function xt(t,e){return d.nodeName(t,"table")&&d.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function bt(t){return t.type=(null!==d.find.attr(t,"type"))+"/"+t.type,t}function wt(t){var e=pt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function $t(t,e){for(var i,n=0;null!=(i=t[n]);n++)d._data(i,"globalEval",!e||d._data(e[n],"globalEval"))}function St(t,e){if(1===e.nodeType&&d.hasData(t)){var i,n,r,o=d._data(t),s=d._data(e,o),a=o.events;if(a)for(i in delete s.handle,s.events={},a)for(n=0,r=a[i].length;r>n;n++)d.event.add(e,i,a[i][n]);s.data&&(s.data=d.extend({},s.data))}}function kt(t,e){var i,n,r;if(1===e.nodeType){if(i=e.nodeName.toLowerCase(),!c.noCloneEvent&&e[d.expando]){for(n in(r=d._data(e)).events)d.removeEvent(e,n,r.handle);e.removeAttribute(d.expando)}"script"===i&&e.text!==t.text?(bt(e).text=t.text,wt(e)):"object"===i?(e.parentNode&&(e.outerHTML=t.outerHTML),c.html5Clone&&t.innerHTML&&!d.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===i&&Y.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===i?e.defaultSelected=e.selected=t.defaultSelected:("input"===i||"textarea"===i)&&(e.defaultValue=t.defaultValue)}}gt.optgroup=gt.option,gt.tbody=gt.tfoot=gt.colgroup=gt.caption=gt.thead,gt.th=gt.td,d.extend({clone:function(t,e,i){var n,r,o,s,a,l=d.contains(t.ownerDocument,t);if(c.html5Clone||d.isXMLDoc(t)||!rt.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(mt.innerHTML=t.outerHTML,mt.removeChild(o=mt.firstChild)),!(c.noCloneEvent&&c.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||d.isXMLDoc(t)))for(n=vt(o),a=vt(t),s=0;null!=(r=a[s]);++s)n[s]&&kt(r,n[s]);if(e)if(i)for(a=a||vt(t),n=n||vt(o),s=0;null!=(r=a[s]);s++)St(r,n[s]);else St(t,o);return(n=vt(o,"script")).length>0&&$t(n,!l&&vt(t,"script")),n=a=r=null,o},buildFragment:function(t,e,i,n){for(var r,o,s,a,l,h,u,p=t.length,f=et(e),g=[],m=0;p>m;m++)if((o=t[m])||0===o)if("object"===d.type(o))d.merge(g,o.nodeType?[o]:o);else if(ht.test(o)){for(a=a||f.appendChild(e.createElement("div")),l=(at.exec(o)||["",""])[1].toLowerCase(),u=gt[l]||gt._default,a.innerHTML=u[1]+o.replace(st,"<$1></$2>")+u[2],r=u[0];r--;)a=a.lastChild;if(!c.leadingWhitespace&&ot.test(o)&&g.push(e.createTextNode(ot.exec(o)[0])),!c.tbody)for(r=(o="table"!==l||lt.test(o)?"<table>"!==u[1]||lt.test(o)?0:a:a.firstChild)&&o.childNodes.length;r--;)d.nodeName(h=o.childNodes[r],"tbody")&&!h.childNodes.length&&o.removeChild(h);for(d.merge(g,a.childNodes),a.textContent="";a.firstChild;)a.removeChild(a.firstChild);a=f.lastChild}else g.push(e.createTextNode(o));for(a&&f.removeChild(a),c.appendChecked||d.grep(vt(g,"input"),yt),m=0;o=g[m++];)if((!n||-1===d.inArray(o,n))&&(s=d.contains(o.ownerDocument,o),a=vt(f.appendChild(o),"script"),s&&$t(a),i))for(r=0;o=a[r++];)dt.test(o.type||"")&&i.push(o);return a=null,f},cleanData:function(t,e){for(var n,r,o,s,a=0,l=d.expando,h=d.cache,u=c.deleteExpando,p=d.event.special;null!=(n=t[a]);a++)if((e||d.acceptData(n))&&(s=(o=n[l])&&h[o])){if(s.events)for(r in s.events)p[r]?d.event.remove(n,r):d.removeEvent(n,r,s.handle);h[o]&&(delete h[o],u?delete n[l]:typeof n.removeAttribute!==I?n.removeAttribute(l):n[l]=null,i.push(o))}}}),d.fn.extend({text:function(t){return V(this,function(t){return void 0===t?d.text(this):this.empty().append((this[0]&&this[0].ownerDocument||k).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||xt(this,t).appendChild(t)})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=xt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var i,n=t?d.filter(t,this):this,r=0;null!=(i=n[r]);r++)e||1!==i.nodeType||d.cleanData(vt(i)),i.parentNode&&(e&&d.contains(i.ownerDocument,i)&&$t(vt(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&d.cleanData(vt(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&d.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return d.clone(this,t,e)})},html:function(t){return V(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(nt,""):void 0;if(!("string"!=typeof t||ct.test(t)||!c.htmlSerialize&&rt.test(t)||!c.leadingWhitespace&&ot.test(t)||gt[(at.exec(t)||["",""])[1].toLowerCase()])){t=t.replace(st,"<$1></$2>");try{for(;n>i;i++)1===(e=this[i]||{}).nodeType&&(d.cleanData(vt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,d.cleanData(vt(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=r.apply([],t);var i,n,o,s,a,l,h=0,u=this.length,p=this,f=u-1,g=t[0],m=d.isFunction(g);if(m||u>1&&"string"==typeof g&&!c.checkClone&&ut.test(g))return this.each(function(i){var n=p.eq(i);m&&(t[0]=g.call(this,i,n.html())),n.domManip(t,e)});if(u&&(i=(l=d.buildFragment(t,this[0].ownerDocument,!1,this)).firstChild,1===l.childNodes.length&&(l=i),i)){for(o=(s=d.map(vt(l,"script"),bt)).length;u>h;h++)n=l,h!==f&&(n=d.clone(n,!0,!0),o&&d.merge(s,vt(n,"script"))),e.call(this[h],n,h);if(o)for(a=s[s.length-1].ownerDocument,d.map(s,wt),h=0;o>h;h++)n=s[h],dt.test(n.type||"")&&!d._data(n,"globalEval")&&d.contains(a,n)&&(n.src?d._evalUrl&&d._evalUrl(n.src):d.globalEval((n.text||n.textContent||n.innerHTML||"").replace(ft,"")));l=i=null}return this}}),d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){d.fn[t]=function(t){for(var i,n=0,r=[],s=d(t),a=s.length-1;a>=n;n++)i=n===a?this:this.clone(!0),d(s[n])[e](i),o.apply(r,i.get());return this.pushStack(r)}});var Tt,Ct={};function Et(e,i){var n,r=d(i.createElement(e)).appendTo(i.body),o=t.getDefaultComputedStyle&&(n=t.getDefaultComputedStyle(r[0]))?n.display:d.css(r[0],"display");return r.detach(),o}function Mt(t){var e=k,i=Ct[t];return i||("none"!==(i=Et(t,e))&&i||((e=((Tt=(Tt||d("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentWindow||Tt[0].contentDocument).document).write(),e.close(),i=Et(t,e),Tt.detach()),Ct[t]=i),i}!function(){var t;c.shrinkWrapBlocks=function(){return null!=t?t:(t=!1,(i=k.getElementsByTagName("body")[0])&&i.style?(e=k.createElement("div"),(n=k.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(e),typeof e.style.zoom!==I&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(k.createElement("div")).style.width="5px",t=3!==e.offsetWidth),i.removeChild(n),t):void 0);var e,i,n}}();var At,Pt,Lt=/^margin/,Ot=new RegExp("^("+W+")(?!px)[a-z%]+$","i"),Dt=/^(top|right|bottom|left)$/;function Nt(t,e){return{get:function(){var i=t();if(null!=i)return i?void delete this.get:(this.get=e).apply(this,arguments)}}}t.getComputedStyle?(At=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)},Pt=function(t,e,i){var n,r,o,s,a=t.style;return s=(i=i||At(t))?i.getPropertyValue(e)||i[e]:void 0,i&&(""!==s||d.contains(t.ownerDocument,t)||(s=d.style(t,e)),Ot.test(s)&&Lt.test(e)&&(n=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=i.width,a.width=n,a.minWidth=r,a.maxWidth=o)),void 0===s?s:s+""}):k.documentElement.currentStyle&&(At=function(t){return t.currentStyle},Pt=function(t,e,i){var n,r,o,s,a=t.style;return null==(s=(i=i||At(t))?i[e]:void 0)&&a&&a[e]&&(s=a[e]),Ot.test(s)&&!Dt.test(e)&&(n=a.left,(o=(r=t.runtimeStyle)&&r.left)&&(r.left=t.currentStyle.left),a.left="fontSize"===e?"1em":s,s=a.pixelLeft+"px",a.left=n,o&&(r.left=o)),void 0===s?s:s+""||"auto"}),function(){var e,i,n,r,o,s,a;if((e=k.createElement("div")).innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=(n=e.getElementsByTagName("a")[0])&&n.style){function l(){var e,i,n,l;(i=k.getElementsByTagName("body")[0])&&i.style&&(e=k.createElement("div"),(n=k.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(e),e.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",r=o=!1,a=!0,t.getComputedStyle&&(r="1%"!==(t.getComputedStyle(e,null)||{}).top,o="4px"===(t.getComputedStyle(e,null)||{width:"4px"}).width,(l=e.appendChild(k.createElement("div"))).style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",l.style.marginRight=l.style.width="0",e.style.width="1px",a=!parseFloat((t.getComputedStyle(l,null)||{}).marginRight),e.removeChild(l)),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(l=e.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(s=0===l[0].offsetHeight)&&(l[0].style.display="",l[1].style.display="none",s=0===l[0].offsetHeight),i.removeChild(n))}i.cssText="float:left;opacity:.5",c.opacity="0.5"===i.opacity,c.cssFloat=!!i.cssFloat,e.style.backgroundClip="content-box",e.cloneNode(!0).style.backgroundClip="",c.clearCloneStyle="content-box"===e.style.backgroundClip,c.boxSizing=""===i.boxSizing||""===i.MozBoxSizing||""===i.WebkitBoxSizing,d.extend(c,{reliableHiddenOffsets:function(){return null==s&&l(),s},boxSizingReliable:function(){return null==o&&l(),o},pixelPosition:function(){return null==r&&l(),r},reliableMarginRight:function(){return null==a&&l(),a}})}}(),d.swap=function(t,e,i,n){var r,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];for(o in r=i.apply(t,n||[]),e)t.style[o]=s[o];return r};var It=/alpha\([^)]*\)/i,zt=/opacity\s*=\s*([^)]*)/,Rt=/^(none|table(?!-c[ea]).+)/,Ht=new RegExp("^("+W+")(.*)$","i"),_t=new RegExp("^([+-])=("+W+")","i"),jt={position:"absolute",visibility:"hidden",display:"block"},Bt={letterSpacing:"0",fontWeight:"400"},Wt=["Webkit","O","Moz","ms"];function Ft(t,e){if(e in t)return e;for(var i=e.charAt(0).toUpperCase()+e.slice(1),n=e,r=Wt.length;r--;)if((e=Wt[r]+i)in t)return e;return n}function Xt(t,e){for(var i,n,r,o=[],s=0,a=t.length;a>s;s++)(n=t[s]).style&&(o[s]=d._data(n,"olddisplay"),i=n.style.display,e?(o[s]||"none"!==i||(n.style.display=""),""===n.style.display&&X(n)&&(o[s]=d._data(n,"olddisplay",Mt(n.nodeName)))):(r=X(n),(i&&"none"!==i||!r)&&d._data(n,"olddisplay",r?i:d.css(n,"display"))));for(s=0;a>s;s++)(n=t[s]).style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?o[s]||"":"none"));return t}function Vt(t,e,i){var n=Ht.exec(e);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):e}function Yt(t,e,i,n,r){for(var o=i===(n?"border":"content")?4:"width"===e?1:0,s=0;4>o;o+=2)"margin"===i&&(s+=d.css(t,i+F[o],!0,r)),n?("content"===i&&(s-=d.css(t,"padding"+F[o],!0,r)),"margin"!==i&&(s-=d.css(t,"border"+F[o]+"Width",!0,r))):(s+=d.css(t,"padding"+F[o],!0,r),"padding"!==i&&(s+=d.css(t,"border"+F[o]+"Width",!0,r)));return s}function qt(t,e,i){var n=!0,r="width"===e?t.offsetWidth:t.offsetHeight,o=At(t),s=c.boxSizing&&"border-box"===d.css(t,"boxSizing",!1,o);if(0>=r||null==r){if((0>(r=Pt(t,e,o))||null==r)&&(r=t.style[e]),Ot.test(r))return r;n=s&&(c.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+Yt(t,e,i||(s?"border":"content"),n,o)+"px"}function Gt(t,e,i,n,r){return new Gt.prototype.init(t,e,i,n,r)}d.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Pt(t,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:c.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=d.camelCase(e),l=t.style;if(e=d.cssProps[a]||(d.cssProps[a]=Ft(l,a)),s=d.cssHooks[e]||d.cssHooks[a],void 0===i)return s&&"get"in s&&void 0!==(r=s.get(t,!1,n))?r:l[e];if("string"===(o=typeof i)&&(r=_t.exec(i))&&(i=(r[1]+1)*r[2]+parseFloat(d.css(t,e)),o="number"),null!=i&&i==i&&("number"!==o||d.cssNumber[a]||(i+="px"),c.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),!(s&&"set"in s&&void 0===(i=s.set(t,i,n)))))try{l[e]=i}catch(t){}}},css:function(t,e,i,n){var r,o,s,a=d.camelCase(e);return e=d.cssProps[a]||(d.cssProps[a]=Ft(t.style,a)),(s=d.cssHooks[e]||d.cssHooks[a])&&"get"in s&&(o=s.get(t,!0,i)),void 0===o&&(o=Pt(t,e,n)),"normal"===o&&e in Bt&&(o=Bt[e]),""===i||i?(r=parseFloat(o),!0===i||d.isNumeric(r)?r||0:o):o}}),d.each(["height","width"],function(t,e){d.cssHooks[e]={get:function(t,i,n){return i?Rt.test(d.css(t,"display"))&&0===t.offsetWidth?d.swap(t,jt,function(){return qt(t,e,n)}):qt(t,e,n):void 0},set:function(t,i,n){var r=n&&At(t);return Vt(0,i,n?Yt(t,e,n,c.boxSizing&&"border-box"===d.css(t,"boxSizing",!1,r),r):0)}}}),c.opacity||(d.cssHooks.opacity={get:function(t,e){return zt.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var i=t.style,n=t.currentStyle,r=d.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=n&&n.filter||i.filter||"";i.zoom=1,(e>=1||""===e)&&""===d.trim(o.replace(It,""))&&i.removeAttribute&&(i.removeAttribute("filter"),""===e||n&&!n.filter)||(i.filter=It.test(o)?o.replace(It,r):o+" "+r)}}),d.cssHooks.marginRight=Nt(c.reliableMarginRight,function(t,e){return e?d.swap(t,{display:"inline-block"},Pt,[t,"marginRight"]):void 0}),d.each({margin:"",padding:"",border:"Width"},function(t,e){d.cssHooks[t+e]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];4>n;n++)r[t+F[n]+e]=o[n]||o[n-2]||o[0];return r}},Lt.test(t)||(d.cssHooks[t+e].set=Vt)}),d.fn.extend({css:function(t,e){return V(this,function(t,e,i){var n,r,o={},s=0;if(d.isArray(e)){for(n=At(t),r=e.length;r>s;s++)o[e[s]]=d.css(t,e[s],!1,n);return o}return void 0!==i?d.style(t,e,i):d.css(t,e)},t,e,arguments.length>1)},show:function(){return Xt(this,!0)},hide:function(){return Xt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){X(this)?d(this).show():d(this).hide()})}}),d.Tween=Gt,Gt.prototype={constructor:Gt,init:function(t,e,i,n,r,o){this.elem=t,this.prop=i,this.easing=r||"swing",this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(d.cssNumber[i]?"":"px")},cur:function(){var t=Gt.propHooks[this.prop];return t&&t.get?t.get(this):Gt.propHooks._default.get(this)},run:function(t){var e,i=Gt.propHooks[this.prop];return this.options.duration?this.pos=e=d.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Gt.propHooks._default.set(this),this}},Gt.prototype.init.prototype=Gt.prototype,Gt.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=d.css(t.elem,t.prop,""))&&"auto"!==e?e:0:t.elem[t.prop]},set:function(t){d.fx.step[t.prop]?d.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[d.cssProps[t.prop]]||d.cssHooks[t.prop])?d.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},Gt.propHooks.scrollTop=Gt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},d.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},d.fx=Gt.prototype.init,d.fx.step={};var Ut,Kt,Zt=/^(?:toggle|show|hide)$/,Jt=new RegExp("^(?:([+-])=|)("+W+")([a-z%]*)$","i"),Qt=/queueHooks$/,te=[function(t,e,i){var n,r,o,s,a,l,h,u=this,p={},f=t.style,g=t.nodeType&&X(t),m=d._data(t,"fxshow");for(n in i.queue||(null==(a=d._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,u.always(function(){u.always(function(){a.unqueued--,d.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],h=d.css(t,"display"),"inline"===("none"===h?d._data(t,"olddisplay")||Mt(t.nodeName):h)&&"none"===d.css(t,"float")&&(c.inlineBlockNeedsLayout&&"inline"!==Mt(t.nodeName)?f.zoom=1:f.display="inline-block")),i.overflow&&(f.overflow="hidden",c.shrinkWrapBlocks()||u.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),e)if(r=e[n],Zt.exec(r)){if(delete e[n],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[n])continue;g=!0}p[n]=m&&m[n]||d.style(t,n)}else h=void 0;if(d.isEmptyObject(p))"inline"===("none"===h?Mt(t.nodeName):h)&&(f.display=h);else for(n in m?"hidden"in m&&(g=m.hidden):m=d._data(t,"fxshow",{}),o&&(m.hidden=!g),g?d(t).show():u.done(function(){d(t).hide()}),u.done(function(){var e;for(e in d._removeData(t,"fxshow"),p)d.style(t,e,p[e])}),p)s=re(g?m[n]:0,n,u),n in m||(m[n]=s.start,g&&(s.end=s.start,s.start="width"===n||"height"===n?1:0))}],ee={"*":[function(t,e){var i=this.createTween(t,e),n=i.cur(),r=Jt.exec(e),o=r&&r[3]||(d.cssNumber[t]?"":"px"),s=(d.cssNumber[t]||"px"!==o&&+n)&&Jt.exec(d.css(i.elem,t)),a=1,l=20;if(s&&s[3]!==o){o=o||s[3],r=r||[],s=+n||1;do{s/=a=a||".5",d.style(i.elem,t,s+o)}while(a!==(a=i.cur()/n)&&1!==a&&--l)}return r&&(s=i.start=+s||+n||0,i.unit=o,i.end=r[1]?s+(r[1]+1)*r[2]:+r[2]),i}]};function ie(){return setTimeout(function(){Ut=void 0}),Ut=d.now()}function ne(t,e){var i,n={height:t},r=0;for(e=e?1:0;4>r;r+=2-e)n["margin"+(i=F[r])]=n["padding"+i]=t;return e&&(n.opacity=n.width=t),n}function re(t,e,i){for(var n,r=(ee[e]||[]).concat(ee["*"]),o=0,s=r.length;s>o;o++)if(n=r[o].call(i,e,t))return n}function oe(t,e,i){var n,r,o=0,s=te.length,a=d.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=Ut||ie(),i=Math.max(0,h.startTime+h.duration-e),n=1-(i/h.duration||0),o=0,s=h.tweens.length;s>o;o++)h.tweens[o].run(n);return a.notifyWith(t,[h,n,i]),1>n&&s?i:(a.resolveWith(t,[h]),!1)},h=a.promise({elem:t,props:d.extend({},e),opts:d.extend(!0,{specialEasing:{}},i),originalProperties:e,originalOptions:i,startTime:Ut||ie(),duration:i.duration,tweens:[],createTween:function(e,i){var n=d.Tween(t,h.opts,e,i,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(n),n},stop:function(e){var i=0,n=e?h.tweens.length:0;if(r)return this;for(r=!0;n>i;i++)h.tweens[i].run(1);return e?a.resolveWith(t,[h,e]):a.rejectWith(t,[h,e]),this}}),c=h.props;for(function(t,e){var i,n,r,o,s;for(i in t)if(r=e[n=d.camelCase(i)],o=t[i],d.isArray(o)&&(r=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(s=d.cssHooks[n])&&"expand"in s)for(i in o=s.expand(o),delete t[n],o)i in t||(t[i]=o[i],e[i]=r);else e[n]=r}(c,h.opts.specialEasing);s>o;o++)if(n=te[o].call(h,t,c,h.opts))return n;return d.map(c,re,h),d.isFunction(h.opts.start)&&h.opts.start.call(t,h),d.fx.timer(d.extend(l,{elem:t,anim:h,queue:h.opts.queue})),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always)}d.Animation=d.extend(oe,{tweener:function(t,e){d.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var i,n=0,r=t.length;r>n;n++)i=t[n],ee[i]=ee[i]||[],ee[i].unshift(e)},prefilter:function(t,e){e?te.unshift(t):te.push(t)}}),d.speed=function(t,e,i){var n=t&&"object"==typeof t?d.extend({},t):{complete:i||!i&&e||d.isFunction(t)&&t,duration:t,easing:i&&e||e&&!d.isFunction(e)&&e};return n.duration=d.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in d.fx.speeds?d.fx.speeds[n.duration]:d.fx.speeds._default,(null==n.queue||!0===n.queue)&&(n.queue="fx"),n.old=n.complete,n.complete=function(){d.isFunction(n.old)&&n.old.call(this),n.queue&&d.dequeue(this,n.queue)},n},d.fn.extend({fadeTo:function(t,e,i,n){return this.filter(X).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=d.isEmptyObject(t),o=d.speed(e,i,n),s=function(){var e=oe(this,d.extend({},t),o);(r||d._data(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=d.timers,s=d._data(this);if(r)s[r]&&s[r].stop&&n(s[r]);else for(r in s)s[r]&&s[r].stop&&Qt.test(r)&&n(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(i),e=!1,o.splice(r,1));(e||!i)&&d.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,i=d._data(this),n=i[t+"queue"],r=i[t+"queueHooks"],o=d.timers,s=n?n.length:0;for(i.finish=!0,d.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;s>e;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),d.each(["toggle","show","hide"],function(t,e){var i=d.fn[e];d.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(ne(e,!0),t,n,r)}}),d.each({slideDown:ne("show"),slideUp:ne("hide"),slideToggle:ne("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){d.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),d.timers=[],d.fx.tick=function(){var t,e=d.timers,i=0;for(Ut=d.now();i<e.length;i++)(t=e[i])()||e[i]!==t||e.splice(i--,1);e.length||d.fx.stop(),Ut=void 0},d.fx.timer=function(t){d.timers.push(t),t()?d.fx.start():d.timers.pop()},d.fx.interval=13,d.fx.start=function(){Kt||(Kt=setInterval(d.fx.tick,d.fx.interval))},d.fx.stop=function(){clearInterval(Kt),Kt=null},d.fx.speeds={slow:600,fast:200,_default:400},d.fn.delay=function(t,e){return t=d.fx&&d.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,i){var n=setTimeout(e,t);i.stop=function(){clearTimeout(n)}})},function(){var t,e,i,n,r;(e=k.createElement("div")).setAttribute("className","t"),e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=e.getElementsByTagName("a")[0],r=(i=k.createElement("select")).appendChild(k.createElement("option")),t=e.getElementsByTagName("input")[0],n.style.cssText="top:1px",c.getSetAttribute="t"!==e.className,c.style=/top/.test(n.getAttribute("style")),c.hrefNormalized="/a"===n.getAttribute("href"),c.checkOn=!!t.value,c.optSelected=r.selected,c.enctype=!!k.createElement("form").enctype,i.disabled=!0,c.optDisabled=!r.disabled,(t=k.createElement("input")).setAttribute("value",""),c.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),c.radioValue="t"===t.value}();var se=/\r/g;d.fn.extend({val:function(t){var e,i,n,r=this[0];return arguments.length?(n=d.isFunction(t),this.each(function(i){var r;1===this.nodeType&&(null==(r=n?t.call(this,i,d(this).val()):t)?r="":"number"==typeof r?r+="":d.isArray(r)&&(r=d.map(r,function(t){return null==t?"":t+""})),(e=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=d.valHooks[r.type]||d.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(se,""):null==i?"":i:void 0}}),d.extend({valHooks:{option:{get:function(t){var e=d.find.attr(t,"value");return null!=e?e:d.trim(d.text(t))}},select:{get:function(t){for(var e,i,n=t.options,r=t.selectedIndex,o="select-one"===t.type||0>r,s=o?null:[],a=o?r+1:n.length,l=0>r?a:o?r:0;a>l;l++)if(!(!(i=n[l]).selected&&l!==r||(c.optDisabled?i.disabled:null!==i.getAttribute("disabled"))||i.parentNode.disabled&&d.nodeName(i.parentNode,"optgroup"))){if(e=d(i).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var i,n,r=t.options,o=d.makeArray(e),s=r.length;s--;)if(n=r[s],d.inArray(d.valHooks.option.get(n),o)>=0)try{n.selected=i=!0}catch(t){n.scrollHeight}else n.selected=!1;return i||(t.selectedIndex=-1),r}}}}),d.each(["radio","checkbox"],function(){d.valHooks[this]={set:function(t,e){return d.isArray(e)?t.checked=d.inArray(d(t).val(),e)>=0:void 0}},c.checkOn||(d.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var ae,le,he=d.expr.attrHandle,ce=/^(?:checked|selected)$/i,ue=c.getSetAttribute,de=c.input;d.fn.extend({attr:function(t,e){return V(this,d.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){d.removeAttr(this,t)})}}),d.extend({attr:function(t,e,i){var n,r,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===I?d.prop(t,e,i):(1===o&&d.isXMLDoc(t)||(e=e.toLowerCase(),n=d.attrHooks[e]||(d.expr.match.bool.test(e)?le:ae)),void 0===i?n&&"get"in n&&null!==(r=n.get(t,e))?r:null==(r=d.find.attr(t,e))?void 0:r:null!==i?n&&"set"in n&&void 0!==(r=n.set(t,i,e))?r:(t.setAttribute(e,i+""),i):void d.removeAttr(t,e))},removeAttr:function(t,e){var i,n,r=0,o=e&&e.match(P);if(o&&1===t.nodeType)for(;i=o[r++];)n=d.propFix[i]||i,d.expr.match.bool.test(i)?de&&ue||!ce.test(i)?t[n]=!1:t[d.camelCase("default-"+i)]=t[n]=!1:d.attr(t,i,""),t.removeAttribute(ue?i:n)},attrHooks:{type:{set:function(t,e){if(!c.radioValue&&"radio"===e&&d.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}}}),le={set:function(t,e,i){return!1===e?d.removeAttr(t,i):de&&ue||!ce.test(i)?t.setAttribute(!ue&&d.propFix[i]||i,i):t[d.camelCase("default-"+i)]=t[i]=!0,i}},d.each(d.expr.match.bool.source.match(/\w+/g),function(t,e){var i=he[e]||d.find.attr;he[e]=de&&ue||!ce.test(e)?function(t,e,n){var r,o;return n||(o=he[e],he[e]=r,r=null!=i(t,e,n)?e.toLowerCase():null,he[e]=o),r}:function(t,e,i){return i?void 0:t[d.camelCase("default-"+e)]?e.toLowerCase():null}}),de&&ue||(d.attrHooks.value={set:function(t,e,i){return d.nodeName(t,"input")?void(t.defaultValue=e):ae&&ae.set(t,e,i)}}),ue||(ae={set:function(t,e,i){var n=t.getAttributeNode(i);return n||t.setAttributeNode(n=t.ownerDocument.createAttribute(i)),n.value=e+="","value"===i||e===t.getAttribute(i)?e:void 0}},he.id=he.name=he.coords=function(t,e,i){var n;return i?void 0:(n=t.getAttributeNode(e))&&""!==n.value?n.value:null},d.valHooks.button={get:function(t,e){var i=t.getAttributeNode(e);return i&&i.specified?i.value:void 0},set:ae.set},d.attrHooks.contenteditable={set:function(t,e,i){ae.set(t,""!==e&&e,i)}},d.each(["width","height"],function(t,e){d.attrHooks[e]={set:function(t,i){return""===i?(t.setAttribute(e,"auto"),i):void 0}}})),c.style||(d.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var pe=/^(?:input|select|textarea|button|object)$/i,fe=/^(?:a|area)$/i;d.fn.extend({prop:function(t,e){return V(this,d.prop,t,e,arguments.length>1)},removeProp:function(t){return t=d.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(t){}})}}),d.extend({propFix:{for:"htmlFor",class:"className"},prop:function(t,e,i){var n,r,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return(1!==o||!d.isXMLDoc(t))&&(e=d.propFix[e]||e,r=d.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=d.find.attr(t,"tabindex");return e?parseInt(e,10):pe.test(t.nodeName)||fe.test(t.nodeName)&&t.href?0:-1}}}}),c.hrefNormalized||d.each(["href","src"],function(t,e){d.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),c.optSelected||(d.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),d.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){d.propFix[this.toLowerCase()]=this}),c.enctype||(d.propFix.enctype="encoding");var ge=/[\t\r\n\f]/g;d.fn.extend({addClass:function(t){var e,i,n,r,o,s,a=0,l=this.length,h="string"==typeof t&&t;if(d.isFunction(t))return this.each(function(e){d(this).addClass(t.call(this,e,this.className))});if(h)for(e=(t||"").match(P)||[];l>a;a++)if(n=1===(i=this[a]).nodeType&&(i.className?(" "+i.className+" ").replace(ge," "):" ")){for(o=0;r=e[o++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");s=d.trim(n),i.className!==s&&(i.className=s)}return this},removeClass:function(t){var e,i,n,r,o,s,a=0,l=this.length,h=0===arguments.length||"string"==typeof t&&t;if(d.isFunction(t))return this.each(function(e){d(this).removeClass(t.call(this,e,this.className))});if(h)for(e=(t||"").match(P)||[];l>a;a++)if(n=1===(i=this[a]).nodeType&&(i.className?(" "+i.className+" ").replace(ge," "):"")){for(o=0;r=e[o++];)for(;n.indexOf(" "+r+" ")>=0;)n=n.replace(" "+r+" "," ");s=t?d.trim(n):"",i.className!==s&&(i.className=s)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):this.each(d.isFunction(t)?function(i){d(this).toggleClass(t.call(this,i,this.className,e),e)}:function(){if("string"===i)for(var e,n=0,r=d(this),o=t.match(P)||[];e=o[n++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else(i===I||"boolean"===i)&&(this.className&&d._data(this,"__className__",this.className),this.className=this.className||!1===t?"":d._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",i=0,n=this.length;n>i;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(ge," ").indexOf(e)>=0)return!0;return!1}}),d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){d.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),d.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},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)}});var me=d.now(),ve=/\?/,ye=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;d.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var i,n=null,r=d.trim(e+"");return r&&!d.trim(r.replace(ye,function(t,e,r,o){return i&&e&&(n=0),0===n?t:(i=r||e,n+=!o-!r,"")}))?Function("return "+r)():d.error("Invalid JSON: "+e)},d.parseXML=function(e){var i;if(!e||"string"!=typeof e)return null;try{t.DOMParser?i=(new DOMParser).parseFromString(e,"text/xml"):((i=new ActiveXObject("Microsoft.XMLDOM")).async="false",i.loadXML(e))}catch(t){i=void 0}return i&&i.documentElement&&!i.getElementsByTagName("parsererror").length||d.error("Invalid XML: "+e),i};var xe,be,we=/#.*$/,$e=/([?&])_=[^&]*/,Se=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,ke=/^(?:GET|HEAD)$/,Te=/^\/\//,Ce=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ee={},Me={},Ae="*/".concat("*");try{be=location.href}catch(t){(be=k.createElement("a")).href="",be=be.href}function Pe(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,o=e.toLowerCase().match(P)||[];if(d.isFunction(i))for(;n=o[r++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function Le(t,e,i,n){var r={},o=t===Me;function s(a){var l;return r[a]=!0,d.each(t[a]||[],function(t,a){var h=a(e,i,n);return"string"!=typeof h||o||r[h]?o?!(l=h):void 0:(e.dataTypes.unshift(h),s(h),!1)}),l}return s(e.dataTypes[0])||!r["*"]&&s("*")}function Oe(t,e){var i,n,r=d.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&d.extend(!0,t,i),t}xe=Ce.exec(be.toLowerCase())||[],d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:be,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xe[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ae,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Oe(Oe(t,d.ajaxSettings),e):Oe(d.ajaxSettings,t)},ajaxPrefilter:Pe(Ee),ajaxTransport:Pe(Me),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,n,r,o,s,a,l,h,c=d.ajaxSetup({},e),u=c.context||c,p=c.context&&(u.nodeType||u.jquery)?d(u):d.event,f=d.Deferred(),g=d.Callbacks("once memory"),m=c.statusCode||{},v={},y={},x=0,b="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!h)for(h={};e=Se.exec(o);)h[e[1].toLowerCase()]=e[2];e=h[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?o:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return x||(t=y[i]=y[i]||t,v[t]=e),this},overrideMimeType:function(t){return x||(c.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>x)for(e in t)m[e]=[m[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){var e=t||b;return l&&l.abort(e),$(0,e),this}};if(f.promise(w).complete=g.add,w.success=w.done,w.error=w.fail,c.url=((t||c.url||be)+"").replace(we,"").replace(Te,xe[1]+"//"),c.type=e.method||e.type||c.method||c.type,c.dataTypes=d.trim(c.dataType||"*").toLowerCase().match(P)||[""],null==c.crossDomain&&(i=Ce.exec(c.url.toLowerCase()),c.crossDomain=!(!i||i[1]===xe[1]&&i[2]===xe[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(xe[3]||("http:"===xe[1]?"80":"443")))),c.data&&c.processData&&"string"!=typeof c.data&&(c.data=d.param(c.data,c.traditional)),Le(Ee,c,e,w),2===x)return w;for(n in(a=d.event&&c.global)&&0==d.active++&&d.event.trigger("ajaxStart"),c.type=c.type.toUpperCase(),c.hasContent=!ke.test(c.type),r=c.url,c.hasContent||(c.data&&(r=c.url+=(ve.test(r)?"&":"?")+c.data,delete c.data),!1===c.cache&&(c.url=$e.test(r)?r.replace($e,"$1_="+me++):r+(ve.test(r)?"&":"?")+"_="+me++)),c.ifModified&&(d.lastModified[r]&&w.setRequestHeader("If-Modified-Since",d.lastModified[r]),d.etag[r]&&w.setRequestHeader("If-None-Match",d.etag[r])),(c.data&&c.hasContent&&!1!==c.contentType||e.contentType)&&w.setRequestHeader("Content-Type",c.contentType),w.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+("*"!==c.dataTypes[0]?", "+Ae+"; q=0.01":""):c.accepts["*"]),c.headers)w.setRequestHeader(n,c.headers[n]);if(c.beforeSend&&(!1===c.beforeSend.call(u,w,c)||2===x))return w.abort();for(n in b="abort",{success:1,error:1,complete:1})w[n](c[n]);if(l=Le(Me,c,e,w)){w.readyState=1,a&&p.trigger("ajaxSend",[w,c]),c.async&&c.timeout>0&&(s=setTimeout(function(){w.abort("timeout")},c.timeout));try{x=1,l.send(v,$)}catch(t){if(!(2>x))throw t;$(-1,t)}}else $(-1,"No Transport");function $(t,e,i,n){var h,v,y,b,$,S=e;2!==x&&(x=2,s&&clearTimeout(s),l=void 0,o=n||"",w.readyState=t>0?4:0,h=t>=200&&300>t||304===t,i&&(b=function(t,e,i){for(var n,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(s in a)if(a[s]&&a[s].test(r)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||t.converters[s+" "+l[0]]){o=s;break}n||(n=s)}o=o||n}return o?(o!==l[0]&&l.unshift(o),i[o]):void 0}(c,w,i)),b=function(t,e,i,n){var r,o,s,a,l,h={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)h[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=h[l+" "+o]||h["* "+o]))for(r in h)if((a=r.split(" "))[1]===o&&(s=h[l+" "+a[0]]||h["* "+a[0]])){!0===s?s=h[r]:!0!==h[r]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(c,b,w,h),h?(c.ifModified&&(($=w.getResponseHeader("Last-Modified"))&&(d.lastModified[r]=$),($=w.getResponseHeader("etag"))&&(d.etag[r]=$)),204===t||"HEAD"===c.type?S="nocontent":304===t?S="notmodified":(S=b.state,v=b.data,h=!(y=b.error))):(y=S,(t||!S)&&(S="error",0>t&&(t=0))),w.status=t,w.statusText=(e||S)+"",h?f.resolveWith(u,[v,S,w]):f.rejectWith(u,[w,S,y]),w.statusCode(m),m=void 0,a&&p.trigger(h?"ajaxSuccess":"ajaxError",[w,c,h?v:y]),g.fireWith(u,[w,S]),a&&(p.trigger("ajaxComplete",[w,c]),--d.active||d.event.trigger("ajaxStop")))}return w},getJSON:function(t,e,i){return d.get(t,e,i,"json")},getScript:function(t,e){return d.get(t,void 0,e,"script")}}),d.each(["get","post"],function(t,e){d[e]=function(t,i,n,r){return d.isFunction(i)&&(r=r||n,n=i,i=void 0),d.ajax({url:t,type:e,dataType:r,data:i,success:n})}}),d._evalUrl=function(t){return d.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},d.fn.extend({wrapAll:function(t){if(d.isFunction(t))return this.each(function(e){d(this).wrapAll(t.call(this,e))});if(this[0]){var e=d(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return this.each(d.isFunction(t)?function(e){d(this).wrapInner(t.call(this,e))}:function(){var e=d(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=d.isFunction(t);return this.each(function(i){d(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()}}),d.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!c.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||d.css(t,"display"))},d.expr.filters.visible=function(t){return!d.expr.filters.hidden(t)};var De=/%20/g,Ne=/\[\]$/,Ie=/\r?\n/g,ze=/^(?:submit|button|image|reset|file)$/i,Re=/^(?:input|select|textarea|keygen)/i;function He(t,e,i,n){var r;if(d.isArray(e))d.each(e,function(e,r){i||Ne.test(t)?n(t,r):He(t+"["+("object"==typeof r?e:"")+"]",r,i,n)});else if(i||"object"!==d.type(e))n(t,e);else for(r in e)He(t+"["+r+"]",e[r],i,n)}d.param=function(t,e){var i,n=[],r=function(t,e){e=d.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=d.ajaxSettings&&d.ajaxSettings.traditional),d.isArray(t)||t.jquery&&!d.isPlainObject(t))d.each(t,function(){r(this.name,this.value)});else for(i in t)He(i,t[i],e,r);return n.join("&").replace(De,"+")},d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=d.prop(this,"elements");return t?d.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!d(this).is(":disabled")&&Re.test(this.nodeName)&&!ze.test(t)&&(this.checked||!Y.test(t))}).map(function(t,e){var i=d(this).val();return null==i?null:d.isArray(i)?d.map(i,function(t){return{name:e.name,value:t.replace(Ie,"\r\n")}}):{name:e.name,value:i.replace(Ie,"\r\n")}}).get()}}),d.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&We()||function(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}()}:We;var _e=0,je={},Be=d.ajaxSettings.xhr();function We(){try{return new t.XMLHttpRequest}catch(t){}}t.attachEvent&&t.attachEvent("onunload",function(){for(var t in je)je[t](void 0,!0)}),c.cors=!!Be&&"withCredentials"in Be,(Be=c.ajax=!!Be)&&d.ajaxTransport(function(t){var e;if(!t.crossDomain||c.cors)return{send:function(i,n){var r,o=t.xhr(),s=++_e;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)o[r]=t.xhrFields[r];for(r in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)void 0!==i[r]&&o.setRequestHeader(r,i[r]+"");o.send(t.hasContent&&t.data||null),e=function(i,r){var a,l,h;if(e&&(r||4===o.readyState))if(delete je[s],e=void 0,o.onreadystatechange=d.noop,r)4!==o.readyState&&o.abort();else{h={},a=o.status,"string"==typeof o.responseText&&(h.text=o.responseText);try{l=o.statusText}catch(t){l=""}a||!t.isLocal||t.crossDomain?1223===a&&(a=204):a=h.text?200:404}h&&n(a,l,h,o.getAllResponseHeaders())},t.async?4===o.readyState?setTimeout(e):o.onreadystatechange=je[s]=e:e()},abort:function(){e&&e(void 0,!0)}}}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return d.globalEval(t),t}}}),d.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),d.ajaxTransport("script",function(t){if(t.crossDomain){var e,i=k.head||d("head")[0]||k.documentElement;return{send:function(n,r){(e=k.createElement("script")).async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,i){(i||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,i||r(200,"success"))},i.insertBefore(e,i.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var Fe=[],Xe=/(=)\?(?=&|$)|\?\?/;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Fe.pop()||d.expando+"_"+me++;return this[t]=!0,t}}),d.ajaxPrefilter("json jsonp",function(e,i,n){var r,o,s,a=!1!==e.jsonp&&(Xe.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xe.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(r=e.jsonpCallback=d.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Xe,"$1"+r):!1!==e.jsonp&&(e.url+=(ve.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||d.error(r+" was not called"),s[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){s=arguments},n.always(function(){t[r]=o,e[r]&&(e.jsonpCallback=i.jsonpCallback,Fe.push(r)),s&&d.isFunction(o)&&o(s[0]),s=o=void 0}),"script"):void 0}),d.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||k;var n=b.exec(t),r=!i&&[];return n?[e.createElement(n[1])]:(n=d.buildFragment([t],e,r),r&&r.length&&d(r).remove(),d.merge([],n.childNodes))};var Ve=d.fn.load;d.fn.load=function(t,e,i){if("string"!=typeof t&&Ve)return Ve.apply(this,arguments);var n,r,o,s=this,a=t.indexOf(" ");return a>=0&&(n=d.trim(t.slice(a,t.length)),t=t.slice(0,a)),d.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(o="POST"),s.length>0&&d.ajax({url:t,type:o,dataType:"html",data:e}).done(function(t){r=arguments,s.html(n?d("<div>").append(d.parseHTML(t)).find(n):t)}).complete(i&&function(t,e){s.each(i,r||[t.responseText,e,t])}),this},d.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){d.fn[e]=function(t){return this.on(e,t)}}),d.expr.filters.animated=function(t){return d.grep(d.timers,function(e){return t===e.elem}).length};var Ye=t.document.documentElement;function qe(t){return d.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}d.offset={setOffset:function(t,e,i){var n,r,o,s,a,l,h=d.css(t,"position"),c=d(t),u={};"static"===h&&(t.style.position="relative"),a=c.offset(),o=d.css(t,"top"),l=d.css(t,"left"),("absolute"===h||"fixed"===h)&&d.inArray("auto",[o,l])>-1?(s=(n=c.position()).top,r=n.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),d.isFunction(e)&&(e=e.call(t,i,a)),null!=e.top&&(u.top=e.top-a.top+s),null!=e.left&&(u.left=e.left-a.left+r),"using"in e?e.using.call(t,u):c.css(u)}},d.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){d.offset.setOffset(this,t,e)});var e,i,n={top:0,left:0},r=this[0],o=r&&r.ownerDocument;return o?(e=o.documentElement,d.contains(e,r)?(typeof r.getBoundingClientRect!==I&&(n=r.getBoundingClientRect()),i=qe(o),{top:n.top+(i.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(i.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):n):void 0},position:function(){if(this[0]){var t,e,i={top:0,left:0},n=this[0];return"fixed"===d.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),d.nodeName(t[0],"html")||(i=t.offset()),i.top+=d.css(t[0],"borderTopWidth",!0),i.left+=d.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-d.css(n,"marginTop",!0),left:e.left-i.left-d.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Ye;t&&!d.nodeName(t,"html")&&"static"===d.css(t,"position");)t=t.offsetParent;return t||Ye})}}),d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i=/Y/.test(e);d.fn[t]=function(n){return V(this,function(t,n,r){var o=qe(t);return void 0===r?o?e in o?o[e]:o.document.documentElement[n]:t[n]:void(o?o.scrollTo(i?d(o).scrollLeft():r,i?r:d(o).scrollTop()):t[n]=r)},t,n,arguments.length,null)}}),d.each(["top","left"],function(t,e){d.cssHooks[e]=Nt(c.pixelPosition,function(t,i){return i?(i=Pt(t,e),Ot.test(i)?d(t).position()[e]+"px":i):void 0})}),d.each({Height:"height",Width:"width"},function(t,e){d.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){d.fn[n]=function(n,r){var o=arguments.length&&(i||"boolean"!=typeof n),s=i||(!0===n||!0===r?"margin":"border");return V(this,function(e,i,n){var r;return d.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===n?d.css(e,i,s):d.style(e,i,n,s)},e,o?n:void 0,o,null)}})}),d.fn.size=function(){return this.length},d.fn.andSelf=d.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return d});var Ge=t.jQuery,Ue=t.$;return d.noConflict=function(e){return t.$===d&&(t.$=Ue),e&&t.jQuery===d&&(t.jQuery=Ge),d},typeof e===I&&(t.jQuery=t.$=d),d}),function(){"use strict";var t=[],e=$(window);$.fn.scrollfix=function(e){this.each(function(){this.style.overflow="hidden";var i=this.getBoundingClientRect();if(this.style.overflow="initial",this.sf={top:i.top-document.body.getBoundingClientRect().top,marginTop:e.marginTop||0,height:i.height,limit:e.limit,fixed:!1},!this.sf.height){var n=this.firstElementChild;if(n){var r=n.id.match(/\d+x(\d{2,})/);r&&(this.sf.height=parseFloat(r[1]))}}this.style.width=i.width+"px";for(var o=t.length;o--&&t[o].sf.limit!==this.sf.limit;);t.splice(-1==o?0:1,0,this)})},e.on("scroll",function(){setTimeout(function(){var i,n,r=e.scrollTop();if("web"!=Config.platform)var o=174;else o=42;for(var s=t.length;s--;){i=t[s];var a=$(i);if(!i.getAttribute("data-static")){$(a).height();"fixed"!=i.style.position&&"relative"!=i.style.position&&(t[s].sf.top=i.getBoundingClientRect().top-document.body.getBoundingClientRect().top);var l=$(".header").is(".header-thin")?50:100,h=$(".header").is(".is-closed")||$(i).hasClass("ignore-header")?0:l;if(-1==i.className.indexOf("no-scroll"))if(n=".title-content"==i.sf.limit.selector||".blog-header"==i.sf.limit.selector?o:i.sf.limit.offset().top+i.sf.limit.outerHeight()-i.sf.height,r+i.sf.marginTop>=i.sf.top&&r+h<=n)i.style.top=i.sf.marginTop+h+"px",i.style.position="fixed";else if(r+i.sf.marginTop<i.sf.top)"static"!=i.style.position&&(i.style.position="static",i.style.top="0");else if("absolute"!=i.style.position&&"relative"!=i.style.position){var c=$(i).parents(".article");if(0==$(i).height())var u=$(i).children().first().height();else u=$(i).height();c.css("position","relative"),i.style.position="relative",i.style.transition="none",i.style.margin=0;var d=i.sf.marginTop+i.sf.limit.offset().top+i.sf.limit.height()-($(i).offset().top+u);if(d<0&&(d*=-1),".title-content"==i.sf.limit.selector||".blog-header"==i.sf.limit.selector){var p=parseInt($("body").css("padding-top"));i.style.top=o-p+"px"}else i.style.top=d-20+"px"}}}},50)})}(),function(){"use strict";$.fn.toggleAttr=function(t,e,i){return this.each(function(){var n=$(this);n.attr(t)==e?n.attr(t,i):n.attr(t,e)})}}(),function(t,e,i){"use strict";function n(t){return function(){var e,i=arguments[0];for(e="["+(t?t+":":"")+i+"] http://errors.angularjs.org/1.4.5/"+(t?t+"/":"")+i,i=1;i<arguments.length;i++){var n;e=e+(1==i?"?":"&")+"p"+(i-1)+"=",e+=encodeURIComponent(n="function"==typeof(n=arguments[i])?n.toString().replace(/ \{[\s\S]*$/,""):void 0===n?"undefined":"string"!=typeof n?JSON.stringify(n):n)}return Error(e)}}function r(t){if(null==t||E(t))return!1;var e="length"in Object(t)&&t.length;return!(t.nodeType!==qi||!e)||($(t)||Hi(t)||0===e||"number"==typeof e&&0<e&&e-1 in t)}function o(t,e,i){var n,s;if(t)if(T(t))for(n in t)"prototype"==n||"length"==n||"name"==n||t.hasOwnProperty&&!t.hasOwnProperty(n)||e.call(i,t[n],n,t);else if(Hi(t)||r(t)){var a="object"!=typeof t;for(n=0,s=t.length;n<s;n++)(a||n in t)&&e.call(i,t[n],n,t)}else if(t.forEach&&t.forEach!==o)t.forEach(e,i,t);else if(w(t))for(n in t)e.call(i,t[n],n,t);else if("function"==typeof t.hasOwnProperty)for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t);else for(n in t)Ei.call(t,n)&&e.call(i,t[n],n,t);return t}function s(t,e,i){for(var n=Object.keys(t).sort(),r=0;r<n.length;r++)e.call(i,t[n[r]],n[r]);return n}function a(t){return function(e,i){t(i,e)}}function l(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function h(t,e,i){for(var n=t.$$hashKey,r=0,o=e.length;r<o;++r){var s=e[r];if(b(s)||T(s))for(var a=Object.keys(s),c=0,u=a.length;c<u;c++){var d=a[c],p=s[d];i&&b(p)?k(p)?t[d]=new Date(p.valueOf()):C(p)?t[d]=new RegExp(p):(b(t[d])||(t[d]=Hi(p)?[]:{}),h(t[d],[p],!0)):t[d]=p}}return l(t,n),t}function c(t){return h(t,Ai.call(arguments,1),!1)}function u(t){return h(t,Ai.call(arguments,1),!0)}function d(t){return parseInt(t,10)}function p(t,e){return c(Object.create(t),e)}function f(){}function g(t){return t}function m(t){return function(){return t}}function v(t){return T(t.toString)&&t.toString!==Object.prototype.toString}function y(t){return void 0===t}function x(t){return void 0!==t}function b(t){return null!==t&&"object"==typeof t}function w(t){return null!==t&&"object"==typeof t&&!Di(t)}function $(t){return"string"==typeof t}function S(t){return"number"==typeof t}function k(t){return"[object Date]"===Oi.call(t)}function T(t){return"function"==typeof t}function C(t){return"[object RegExp]"===Oi.call(t)}function E(t){return t&&t.window===t}function M(t){return t&&t.$evalAsync&&t.$watch}function A(t){return"boolean"==typeof t}function P(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function L(t){return Ci(t.nodeName||t[0]&&t[0].nodeName)}function O(t,e){var i=t.indexOf(e);return 0<=i&&t.splice(i,1),i}function D(t,e,i,n){if(E(t)||M(t))throw Ni("cpws");if(_i.test(Oi.call(e)))throw Ni("cpta");if(e){if(t===e)throw Ni("cpi");var r;if(i=i||[],n=n||[],b(t)&&(i.push(t),n.push(e)),Hi(t))for(r=e.length=0;r<t.length;r++)e.push(D(t[r],null,i,n));else{var s=e.$$hashKey;if(Hi(e)?e.length=0:o(e,function(t,i){delete e[i]}),w(t))for(r in t)e[r]=D(t[r],null,i,n);else if(t&&"function"==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&(e[r]=D(t[r],null,i,n));else for(r in t)Ei.call(t,r)&&(e[r]=D(t[r],null,i,n));l(e,s)}}else if(e=t,b(t)){if(i&&-1!==(s=i.indexOf(t)))return n[s];if(Hi(t))return D(t,[],i,n);if(_i.test(Oi.call(t)))e=new t.constructor(t);else if(k(t))e=new Date(t.getTime());else{if(!C(t))return D(t,r=Object.create(Di(t)),i,n);(e=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0])).lastIndex=t.lastIndex}n&&(i.push(t),n.push(e))}return e}function N(t,e){if(Hi(t)){e=e||[];for(var i=0,n=t.length;i<n;i++)e[i]=t[i]}else if(b(t))for(i in e=e||{},t)"$"===i.charAt(0)&&"$"===i.charAt(1)||(e[i]=t[i]);return e||t}function I(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;var n,r=typeof t;if(r==typeof e&&"object"==r){if(!Hi(t)){if(k(t))return!!k(e)&&I(t.getTime(),e.getTime());if(C(t))return!!C(e)&&t.toString()==e.toString();if(M(t)||M(e)||E(t)||E(e)||Hi(e)||k(e)||C(e))return!1;for(n in r=ot(),t)if("$"!==n.charAt(0)&&!T(t[n])){if(!I(t[n],e[n]))return!1;r[n]=!0}for(n in e)if(!(n in r||"$"===n.charAt(0)||e[n]===i||T(e[n])))return!1;return!0}if(!Hi(e))return!1;if((r=t.length)==e.length){for(n=0;n<r;n++)if(!I(t[n],e[n]))return!1;return!0}}return!1}function z(t,e,i){return t.concat(Ai.call(e,i))}function R(t,e){var i=2<arguments.length?Ai.call(arguments,2):[];return!T(e)||e instanceof RegExp?e:i.length?function(){return arguments.length?e.apply(t,z(i,arguments,0)):e.apply(t,i)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function H(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=i:E(n)?r="$WINDOW":n&&e===n?r="$DOCUMENT":M(n)&&(r="$SCOPE"),r}function _(t,e){return void 0===t?i:(S(e)||(e=e?2:null),JSON.stringify(t,H,e))}function j(t){return $(t)?JSON.parse(t):t}function B(t,e){var i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function W(t,e,i){i=i?-1:1;var n=B(e,t.getTimezoneOffset());return e=t,t=i*(n-t.getTimezoneOffset()),(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function F(t){t=$i(t).clone();try{t.empty()}catch(t){}var e=$i("<div>").append(t).html();try{return t[0].nodeType===Gi?Ci(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+Ci(e)})}catch(t){return Ci(e)}}function X(t){try{return decodeURIComponent(t)}catch(t){}}function V(t){var e={};return o((t||"").split("&"),function(t){var i,n,r;t&&(n=t=t.replace(/\+/g,"%20"),-1!==(i=t.indexOf("="))&&(n=t.substring(0,i),r=t.substring(i+1)),x(n=X(n))&&(r=!x(r)||X(r),Ei.call(e,n)?Hi(e[n])?e[n].push(r):e[n]=[e[n],r]:e[n]=r))}),e}function Y(t){var e=[];return o(t,function(t,i){Hi(t)?o(t,function(t){e.push(G(i,!0)+(!0===t?"":"="+G(t,!0)))}):e.push(G(i,!0)+(!0===t?"":"="+G(t,!0)))}),e.length?e.join("&"):""}function q(t){return G(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function G(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}function U(t,e){var i,n,r={};o(Xi,function(e){e+="app",!i&&t.hasAttribute&&t.hasAttribute(e)&&(i=t,n=t.getAttribute(e))}),o(Xi,function(e){var r;e+="app",!i&&(r=t.querySelector("["+e.replace(":","\\:")+"]"))&&(i=r,n=r.getAttribute(e))}),i&&(r.strictDi=null!==function(t,e){var i,n,r=Xi.length;for(n=0;n<r;++n)if(i=Xi[n]+e,$(i=t.getAttribute(i)))return i;return null}(i,"strict-di"),e(i,n?[n]:[],r))}function K(i,n,r){b(r)||(r={}),r=c({strictDi:!1},r);var s=function(){if((i=$i(i)).injector()){var t=i[0]===e?"document":F(i);throw Ni("btstrpd",t.replace(/</,"&lt;").replace(/>/,"&gt;"))}return(n=n||[]).unshift(["$provide",function(t){t.value("$rootElement",i)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng"),(t=Mt(n,r.strictDi)).invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,i,n){t.$apply(function(){e.data("$injector",n),i(e)(t)})}]),t},a=/^NG_ENABLE_DEBUG_INFO!/,l=/^NG_DEFER_BOOTSTRAP!/;if(t&&a.test(t.name)&&(r.debugInfoEnabled=!0,t.name=t.name.replace(a,"")),t&&!l.test(t.name))return s();t.name=t.name.replace(l,""),Ii.resumeBootstrap=function(t){return o(t,function(t){n.push(t)}),s()},T(Ii.resumeDeferredBootstrap)&&Ii.resumeDeferredBootstrap()}function Z(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function J(t){if(!(t=Ii.element(t).injector()))throw Ni("test");return t.get("$$testability")}function Q(t,e){return e=e||"_",t.replace(Vi,function(t,i){return(i?e:"")+t.toLowerCase()})}function tt(t,e,i){if(!t)throw Ni("areq",e||"?",i||"required");return t}function et(t,e,i){return i&&Hi(t)&&(t=t[t.length-1]),tt(T(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function it(t,e){if("hasOwnProperty"===t)throw Ni("badname",e)}function nt(t,e,i){if(!e)return t;for(var n,r=t,o=(e=e.split(".")).length,s=0;s<o;s++)n=e[s],t&&(t=(r=t)[n]);return!i&&T(t)?R(r,t):t}function rt(t){var e=t[0];t=t[t.length-1];var i=[e];do{if(!(e=e.nextSibling))break;i.push(e)}while(e!==t);return $i(i)}function ot(){return Object.create(null)}function st(t){return t.replace(Ji,function(t,e,i,n){return n?i.toUpperCase():i}).replace(Qi,"Moz$1")}function at(t){return(t=t.nodeType)===qi||!t||9===t}function lt(t,e){var i,n,r=e.createDocumentFragment(),s=[];if(rn.test(t)){for(i=i||r.appendChild(e.createElement("div")),n=(on.exec(t)||["",""])[1].toLowerCase(),n=an[n]||an._default,i.innerHTML=n[1]+t.replace(sn,"<$1></$2>")+n[2],n=n[0];n--;)i=i.lastChild;s=z(s,i.childNodes),(i=r.firstChild).textContent=""}else s.push(e.createTextNode(t));return r.textContent="",r.innerHTML="",o(s,function(t){r.appendChild(t)}),r}function ht(t){if(t instanceof ht)return t;var i,n;if($(t)&&(t=ji(t),i=!0),!(this instanceof ht)){if(i&&"<"!=t.charAt(0))throw en("nosel");return new ht(t)}i&&(i=e,t=(n=nn.exec(t))?[i.createElement(n[1])]:(n=lt(t,i))?n.childNodes:[]);xt(this,t)}function ct(t){return t.cloneNode(!0)}function ut(t,e){if(e||pt(t),t.querySelectorAll)for(var i=t.querySelectorAll("*"),n=0,r=i.length;n<r;n++)pt(i[n])}function dt(t,e,i,n){if(x(n))throw en("offargs");var r=(n=ft(t))&&n.events,s=n&&n.handle;if(s)if(e)o(e.split(" "),function(e){if(x(i)){var n=r[e];if(O(n||[],i),n&&0<n.length)return}t.removeEventListener(e,s,!1),delete r[e]});else for(e in r)"$destroy"!==e&&t.removeEventListener(e,s,!1),delete r[e]}function pt(t,e){var n=t.ng339,r=n&&Ki[n];r&&(e?delete r.data[e]:(r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),dt(t)),delete Ki[n],t.ng339=i))}function ft(t,e){var n=(n=t.ng339)&&Ki[n];return e&&!n&&(t.ng339=n=++Zi,n=Ki[n]={events:{},data:{},handle:i}),n}function gt(t,e,i){if(at(t)){var n=x(i),r=!n&&e&&!b(e),o=!e;if(t=(t=ft(t,!r))&&t.data,n)t[e]=i;else{if(o)return t;if(r)return t&&t[e];c(t,e)}}}function mt(t,e){return!!t.getAttribute&&-1<(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")}function vt(t,e){e&&t.setAttribute&&o(e.split(" "),function(e){t.setAttribute("class",ji((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+ji(e)+" "," ")))})}function yt(t,e){if(e&&t.setAttribute){var i=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(e.split(" "),function(t){t=ji(t),-1===i.indexOf(" "+t+" ")&&(i+=t+" ")}),t.setAttribute("class",ji(i))}}function xt(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var i=e.length;if("number"==typeof i&&e.window!==e){if(i)for(var n=0;n<i;n++)t[t.length++]=e[n]}else t[t.length++]=e}}function bt(t,e){return wt(t,"$"+(e||"ngController")+"Controller")}function wt(t,e,n){for(9==t.nodeType&&(t=t.documentElement),e=Hi(e)?e:[e];t;){for(var r=0,o=e.length;r<o;r++)if((n=$i.data(t,e[r]))!==i)return n;t=t.parentNode||11===t.nodeType&&t.host}}function $t(t){for(ut(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function St(t,e){e||ut(t);var i=t.parentNode;i&&i.removeChild(t)}function kt(t,e){var i=hn[e.toLowerCase()];return i&&cn[L(t)]&&i}function Tt(){this.$get=function(){return c(ht,{hasClass:function(t,e){return t.attr&&(t=t[0]),mt(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),yt(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),vt(t,e)}})}}function Ct(t,e){var i=t&&t.$$hashKey;return i?("function"==typeof i&&(i=t.$$hashKey()),i):"function"==(i=typeof t)||"object"==i&&null!==t?t.$$hashKey=i+":"+(e||function(){return++zi})():i+":"+t}function Et(t,e){if(e){var i=0;this.nextUid=function(){return++i}}o(t,this.put,this)}function Mt(t,e){function n(t){return function(e,i){if(!b(e))return t(e,i);o(e,a(t))}}function r(t,e){if(it(t,"service"),(T(e)||Hi(e))&&(e=f.instantiate(e)),!e.$get)throw vn("pget",t);return p[t+"Provider"]=e}function s(t,e){return function(){var i=v.invoke(e,this);if(y(i))throw vn("undef",t);return i}}function l(t,e,i){return r(t,{$get:!1!==i?s(t,e):e})}function h(t,i){function n(e,n){if(t.hasOwnProperty(e)){if(t[e]===c)throw vn("cdep",e+" <- "+u.join(" <- "));return t[e]}try{return u.unshift(e),t[e]=c,t[e]=i(e,n)}catch(i){throw t[e]===c&&delete t[e],i}finally{u.shift()}}function r(t,i,r,o){"string"==typeof r&&(o=r,r=null);var s,a,l,h=[],c=Mt.$$annotate(t,e,o);for(a=0,s=c.length;a<s;a++){if("string"!=typeof(l=c[a]))throw vn("itkn",l);h.push(r&&r.hasOwnProperty(l)?r[l]:n(l,o))}return Hi(t)&&(t=t[s]),t.apply(i,h)}return{invoke:r,instantiate:function(t,e,i){var n=Object.create((Hi(t)?t[t.length-1]:t).prototype||null);return b(t=r(t,n,e,i))||T(t)?t:n},get:n,annotate:Mt.$$annotate,has:function(e){return p.hasOwnProperty(e+"Provider")||t.hasOwnProperty(e)}}}e=!0===e;var c={},u=[],d=new Et([],!0),p={$provide:{provider:n(r),factory:n(l),service:n(function(t,e){return l(t,["$injector",function(t){return t.instantiate(e)}])}),value:n(function(t,e){return l(t,m(e),!1)}),constant:n(function(t,e){it(t,"constant"),p[t]=e,g[t]=e}),decorator:function(t,e){var i=f.get(t+"Provider"),n=i.$get;i.$get=function(){var t=v.invoke(n,i);return v.invoke(e,null,{$delegate:t})}}}},f=p.$injector=h(p,function(t,e){throw Ii.isString(e)&&u.push(e),vn("unpr",u.join(" <- "))}),g={},v=g.$injector=h(g,function(t,e){var n=f.get(t+"Provider",e);return v.invoke(n.$get,n,i,t)});return o(function t(e){tt(y(e)||Hi(e),"modulesToLoad","not an array");var i,n=[];return o(e,function(e){function r(t){var e,i;for(e=0,i=t.length;e<i;e++){var n=t[e],r=f.get(n[0]);r[n[1]].apply(r,n[2])}}if(!d.get(e)){d.put(e,!0);try{$(e)?(i=ki(e),n=n.concat(t(i.requires)).concat(i._runBlocks),r(i._invokeQueue),r(i._configBlocks)):T(e)?n.push(f.invoke(e)):Hi(e)?n.push(f.invoke(e)):et(e,"module")}catch(t){throw Hi(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1==t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),vn("modulerr",e,t.stack||t.message||t)}}}),n}(t),function(t){t&&v.invoke(t)}),v}function At(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(i,n,r){function o(t){var e;t?(t.scrollIntoView(),T(e=s.yOffset)?e=e():P(e)?(e=e[0],e="fixed"!==i.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom):S(e)||(e=0),e&&(t=t.getBoundingClientRect().top,i.scrollBy(0,t-e))):i.scrollTo(0,0)}function s(t){var e;(t=$(t)?t:n.hash())?(e=a.getElementById(t))?o(e):(e=function(t){var e=null;return Array.prototype.some.call(t,function(t){if("a"===L(t))return e=t,!0}),e}(a.getElementsByName(t)))?o(e):"top"===t&&o(null):o(null)}var a=i.document;return e&&r.$watch(function(){return n.hash()},function(e,i){e===i&&""===e||function(e,i){"complete"===(i=i||t).document.readyState?i.setTimeout(e):$i(i).on("load",e)}(function(){r.$evalAsync(s)})}),s}]}function Pt(t,e){return t||e?t?e?(Hi(t)&&(t=t.join(" ")),Hi(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function Lt(t){return b(t)?t:{}}function Ot(t,e,i,n){function r(t){try{t.apply(null,Ai.call(arguments,1))}finally{if(0===--m)for(;v.length;)try{v.pop()()}catch(t){i.error(t)}}}function s(){a(),l()}function a(){t:{try{x=u.state;break t}catch(t){}x=void 0}I(x=y(x)?null:x,C)&&(x=C),C=x}function l(){w===h.url()&&b===x||(w=h.url(),b=x,o(k,function(t){t(h.url(),x)}))}var h=this,c=t.location,u=t.history,d=t.setTimeout,p=t.clearTimeout,g={};h.isMock=!1;var m=0,v=[];h.$$completeOutstandingRequest=r,h.$$incOutstandingRequestCount=function(){m++},h.notifyWhenNoOutstandingRequests=function(t){0===m?t():v.push(t)};var x,b,w=c.href,$=e.find("base"),S=null;a(),b=x,h.url=function(e,i,r){if(y(r)&&(r=null),c!==t.location&&(c=t.location),u!==t.history&&(u=t.history),e){var o=b===r;if(w===e&&(!n.history||o))return h;var s=w&&oe(w)===oe(e);return w=e,b=r,!n.history||s&&o?(s&&!S||(S=e),i?c.replace(e):s?(i=c,r=e.indexOf("#"),e=-1===r?"":e.substr(r),i.hash=e):c.href=e):(u[i?"replaceState":"pushState"](r,"",e),a(),b=x),h}return S||c.href.replace(/%27/g,"'")},h.state=function(){return x};var k=[],T=!1,C=null;h.onUrlChange=function(e){return T||(n.history&&$i(t).on("popstate",s),$i(t).on("hashchange",s),T=!0),k.push(e),e},h.$$applicationDestroyed=function(){$i(t).off("hashchange popstate",s)},h.$$checkUrlChange=l,h.baseHref=function(){var t=$.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""},h.defer=function(t,e){var i;return m++,i=d(function(){delete g[i],r(t)},e||0),g[i]=!0,i},h.defer.cancel=function(t){return!!g[t]&&(delete g[t],p(t),r(f),!0)}}function Dt(){this.$get=["$window","$log","$sniffer","$document",function(t,e,i,n){return new Ot(t,n,e,i)}]}function Nt(){this.$get=function(){function t(t,i){function r(t){t!=d&&(p?p==t&&(p=t.n):p=t,o(t.n,t.p),o(t,d),(d=t).n=null)}function o(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}if(t in e)throw n("$cacheFactory")("iid",t);var s=0,a=c({},i,{id:t}),l={},h=i&&i.capacity||Number.MAX_VALUE,u={},d=null,p=null;return e[t]={put:function(t,e){if(!y(e)){if(h<Number.MAX_VALUE)r(u[t]||(u[t]={key:t}));return t in l||s++,l[t]=e,s>h&&this.remove(p.key),e}},get:function(t){if(h<Number.MAX_VALUE){var e=u[t];if(!e)return;r(e)}return l[t]},remove:function(t){if(h<Number.MAX_VALUE){var e=u[t];if(!e)return;e==d&&(d=e.p),e==p&&(p=e.n),o(e.n,e.p),delete u[t]}delete l[t],s--},removeAll:function(){l={},s=0,u={},d=p=null},destroy:function(){u=a=l=null,delete e[t]},info:function(){return c({},a,{size:s})}}}var e={};return t.info=function(){var t={};return o(e,function(e,i){t[i]=e.info()}),t},t.get=function(t){return e[t]},t}}function It(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function zt(t,n){function r(t,e,i){var n=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,r={};return o(t,function(t,o){var s=t.match(n);if(!s)throw Sn("iscp",e,o,t,i?"controller bindings definition":"isolate scope definition");r[o]={mode:s[1][0],collection:"*"===s[2],optional:"?"===s[3],attrName:s[4]||o}}),r}var s={},l=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,h=/(([\w\-]+)(?:\:([^;]+))?;?)/,u=function(t){var e,i={};for(t=t.split(","),e=0;e<t.length;e++)i[t[e]]=!0;return i}("ngSrc,ngSrcset,src,srcset"),d=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,v=/^(on[a-z]+|formaction)$/;this.directive=function e(i,n){return it(i,"directive"),$(i)?(function(t){var e=t.charAt(0);if(!e||e!==Ci(e))throw Sn("baddir",t);if(t!==t.trim())throw Sn("baddir",t)}(i),tt(n,"directiveFactory"),s.hasOwnProperty(i)||(s[i]=[],t.factory(i+"Directive",["$injector","$exceptionHandler",function(t,e){var n=[];return o(s[i],function(o,s){try{var a=t.invoke(o);T(a)?a={compile:m(a)}:!a.compile&&a.link&&(a.compile=m(a.link)),a.priority=a.priority||0,a.index=s,a.name=a.name||i,a.require=a.require||a.controller&&a.name,a.restrict=a.restrict||"EA";var l=a,h=a,c=a.name,u={isolateScope:null,bindToController:null};if(b(h.scope)&&(!0===h.bindToController?(u.bindToController=r(h.scope,c,!0),u.isolateScope={}):u.isolateScope=r(h.scope,c,!1)),b(h.bindToController)&&(u.bindToController=r(h.bindToController,c,!0)),b(u.bindToController)){var d,p=h.controller,f=h.controllerAs;if(!p)throw Sn("noctrl",c);t:if(f&&$(f))d=f;else{if($(p)){var g=Cn.exec(p);if(g){d=g[3];break t}}d=void 0}if(!d)throw Sn("noident",c)}var v=l.$$bindings=u;b(v.isolateScope)&&(a.$$isolateBindings=v.isolateScope),a.$$moduleName=o.$$moduleName,n.push(a)}catch(t){e(t)}}),n}])),s[i].push(n)):o(i,a(e)),this},this.aHrefSanitizationWhitelist=function(t){return x(t)?(n.aHrefSanitizationWhitelist(t),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return x(t)?(n.imgSrcSanitizationWhitelist(t),this):n.imgSrcSanitizationWhitelist()};var w=!0;this.debugInfoEnabled=function(t){return x(t)?(w=t,this):w},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(t,n,r,a,m,x,S,k,C,E,A){function P(t,e){try{t.addClass(e)}catch(t){}}function D(t,e,i,n,r){t instanceof $i||(t=$i(t)),o(t,function(e,i){e.nodeType==Gi&&e.nodeValue.match(/\S+/)&&(t[i]=$i(e).wrap("<span></span>").parent()[0])});var s=N(t,e,t,i,n,r);D.$$addScopeClass(t);var a=null;return function(e,i,n){tt(e,"scope");var r=(n=n||{}).parentBoundTranscludeFn,o=n.transcludeControllers;if(n=n.futureParentElement,r&&r.$$boundTransclude&&(r=r.$$boundTransclude),a||(a=(n=n&&n[0])&&"foreignobject"!==L(n)&&n.toString().match(/SVG/)?"svg":"html"),n="html"!==a?$i(K(a,$i("<div>").append(t).html())):i?ln.clone.call(t):t,o)for(var l in o)n.data("$"+l+"Controller",o[l].instance);return D.$$addScopeInfo(n,e),i&&i(n,e),s&&s(e,n,n,r),n}}function N(t,e,n,r,o,s){for(var a,l,h,c,u,d=[],p=0;p<t.length;p++)a=new rt,(s=(l=R(t[p],[],a,0===p?r:i,o)).length?j(l,t[p],a,e,n,null,[],[],s):null)&&s.scope&&D.$$addScopeClass(a.$$element),a=s&&s.terminal||!(h=t[p].childNodes)||!h.length?null:N(h,s?(s.transcludeOnThisElement||!s.templateOnThisElement)&&s.transclude:e),(s||a)&&(d.push(p,s,a),c=!0,u=u||s),s=null;return c?function(t,n,r,o){var s,a,l,h,c,p,f;if(u)for(f=Array(n.length),h=0;h<d.length;h+=3)f[s=d[h]]=n[s];else f=n;for(h=0,c=d.length;h<c;)a=f[d[h++]],n=d[h++],s=d[h++],n?(n.scope?(l=t.$new(),D.$$addScopeInfo($i(a),l),(p=n.$$destroyBindings)&&(n.$$destroyBindings=null,l.$on("$destroyed",p))):l=t,n(s,l,a,r,p=n.transcludeOnThisElement?z(t,n.transclude,o):!n.templateOnThisElement&&o?o:!o&&e?z(t,e):null,n)):s&&s(t,a.childNodes,i,o)}:null}function z(t,e,i){return function(n,r,o,s,a){return n||((n=t.$new(!1,a)).$$transcluded=!0),e(n,r,{parentBoundTranscludeFn:i,transcludeControllers:o,futureParentElement:s})}}function R(t,e,i,n,r){var o,s=i.$attr;switch(t.nodeType){case qi:W(e,Rt(L(t)),"E",n,r);for(var a,c,u,d=t.attributes,p=0,f=d&&d.length;p<f;p++){var g=!1,m=!1;o=(a=d[p]).name,c=ji(a.value),a=Rt(o),(u=ht.test(a))&&(o=o.replace(kn,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()}));var v=a.replace(/(Start|End)$/,"");X(v)&&a===v+"Start"&&(g=o,m=o.substr(0,o.length-5)+"end",o=o.substr(0,o.length-6)),s[a=Rt(o.toLowerCase())]=o,!u&&i.hasOwnProperty(a)||(i[a]=c,kt(t,a)&&(i[a]=!0)),Z(t,e,c,a,u),W(e,a,"A",n,r,g,m)}if(b(t=t.className)&&(t=t.animVal),$(t)&&""!==t)for(;o=h.exec(t);)W(e,a=Rt(o[2]),"C",n,r)&&(i[a]=ji(o[3])),t=t.substr(o.index+o[0].length);break;case Gi:if(11===wi)for(;t.parentNode&&t.nextSibling&&t.nextSibling.nodeType===Gi;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);U(e,t.nodeValue);break;case 8:try{(o=l.exec(t.nodeValue))&&(W(e,a=Rt(o[1]),"M",n,r)&&(i[a]=ji(o[2])))}catch(t){}}return e.sort(q),e}function H(t,e,i){var n=[],r=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw Sn("uterdir",e,i);t.nodeType==qi&&(t.hasAttribute(e)&&r++,t.hasAttribute(i)&&r--),n.push(t),t=t.nextSibling}while(0<r);else n.push(t);return $i(n)}function _(t,e,i){return function(n,r,o,s,a){return r=H(r[0],e,i),t(n,r,o,s,a)}}function j(t,n,o,s,a,l,h,c,u){function p(t,e,i,n){t&&(i&&(t=_(t,i,n)),t.require=v.require,t.directiveName=y,(A===v||v.$$isolateScope)&&(t=et(t,{isolateScope:!0})),h.push(t)),e&&(i&&(e=_(e,i,n)),e.require=v.require,e.directiveName=y,(A===v||v.$$isolateScope)&&(e=et(e,{isolateScope:!0})),c.push(e))}function f(t,e,i,n){var r;if($(e)){var o=e.match(d);e=e.substring(o[0].length);var s=o[1]||o[3];o="?"===o[2];if("^^"===s?i=i.parent():r=(r=n&&n[e])&&r.instance,r||(n="$"+e+"Controller",r=s?i.inheritedData(n):i.data(n)),!r&&!o)throw Sn("ctreq",e,t)}else if(Hi(e))for(r=[],s=0,o=e.length;s<o;s++)r[s]=f(t,e[s],i,n);return r||null}function g(t,e,i,n,r,o){var s,a=ot();for(s in n){var l=n[s],h={$scope:l===A||l.$$isolateScope?r:o,$element:t,$attrs:e,$transclude:i},c=l.controller;"@"==c&&(c=e[l.name]),h=x(c,h,!0,l.controllerAs),a[l.name]=h,I||t.data("$"+l.name+"Controller",h.instance)}return a}function m(t,e,r,s,a,l){var u,d,p,m,v,y,x;if(n===r?(s=o,x=o.$$element):(x=$i(r),s=new rt(x,o)),A&&(m=e.$new(!0)),a&&((y=function(t,e,n){var r;return M(t)||(n=e,e=t,t=i),I&&(r=v),n||(n=I?x.parent():x),a(t,e,r,n,S)}).$$boundTransclude=a),E&&(v=g(x,s,y,E,m,e)),A&&(D.$$addScopeInfo(x,m,!0,!(P&&(P===A||P===A.$$originalDirective))),D.$$addScopeClass(x,!0),m.$$isolateBindings=A.$$isolateBindings,nt(e,s,m,m.$$isolateBindings,A,m)),v){var b,w=A||C;for(u in w&&v[w.name]&&(d=w.$$bindings.bindToController,(p=v[w.name])&&p.identifier&&d&&(b=p,l.$$destroyBindings=nt(e,s,p.instance,d,w))),v){var $=(p=v[u])();$!==p.instance&&(p.instance=$,x.data("$"+u+"Controller",$),p===b&&(l.$$destroyBindings(),l.$$destroyBindings=nt(e,s,$,d,w)))}}for(u=0,l=h.length;u<l;u++)it(d=h[u],d.isolateScope?m:e,x,s,d.require&&f(d.directiveName,d.require,x,v),y);var S=e;for(A&&(A.template||null===A.templateUrl)&&(S=m),t&&t(S,r.childNodes,i,a),u=c.length-1;0<=u;u--)it(d=c[u],d.isolateScope?m:e,x,s,d.require&&f(d.directiveName,d.require,x,v),y)}u=u||{};for(var v,y,w,S,k=-Number.MAX_VALUE,C=u.newScopeDirective,E=u.controllerDirectives,A=u.newIsolateScopeDirective,P=u.templateDirective,L=u.nonTlbTranscludeDirective,O=!1,N=!1,I=u.hasElementTranscludeDirective,z=o.$$element=$i(n),j=s,W=0,X=t.length;W<X;W++){var q=(v=t[W]).$$start,U=v.$$end;if(q&&(z=H(n,q,U)),w=i,k>v.priority)break;if((w=v.scope)&&(v.templateUrl||(b(w)?(G("new/isolated scope",A||C,v,z),A=v):G("new/isolated scope",A,v,z)),C=C||v),y=v.name,!v.templateUrl&&v.controller&&(w=v.controller,E=E||ot(),G("'"+y+"' controller",E[y],v,z),E[y]=v),(w=v.transclude)&&(O=!0,v.$$tlb||(G("transclusion",L,v,z),L=v),"element"==w?(I=!0,k=v.priority,w=z,z=o.$$element=$i(e.createComment(" "+y+": "+o[y]+" ")),n=z[0],J(a,Ai.call(w,0),n),j=D(w,s,k,l&&l.name,{nonTlbTranscludeDirective:L})):(w=$i(ct(n)).contents(),z.empty(),j=D(w,s))),v.template)if(N=!0,G("template",P,v,z),P=v,w=T(v.template)?v.template(z,o):v.template,w=lt(w),v.replace){if(l=v,w=rn.test(w)?_t(K(v.templateNamespace,ji(w))):[],n=w[0],1!=w.length||n.nodeType!==qi)throw Sn("tplrt",y,"");J(a,z,n),w=R(n,[],X={$attr:{}});var Z=t.splice(W+1,t.length-(W+1));A&&B(w),t=t.concat(w).concat(Z),V(o,X),X=t.length}else z.html(w);if(v.templateUrl)N=!0,G("template",P,v,z),P=v,v.replace&&(l=v),m=Y(t.splice(W,t.length-W),z,o,a,O&&j,h,c,{controllerDirectives:E,newScopeDirective:C!==v&&C,newIsolateScopeDirective:A,templateDirective:P,nonTlbTranscludeDirective:L}),X=t.length;else if(v.compile)try{T(S=v.compile(z,o,j))?p(null,S,q,U):S&&p(S.pre,S.post,q,U)}catch(t){r(t,F(z))}v.terminal&&(m.terminal=!0,k=Math.max(k,v.priority))}return m.scope=C&&!0===C.scope,m.transcludeOnThisElement=O,m.templateOnThisElement=N,m.transclude=j,u.hasElementTranscludeDirective=I,m}function B(t){for(var e=0,i=t.length;e<i;e++)t[e]=p(t[e],{$$isolateScope:!0})}function W(e,n,o,a,l,h,c){if(n===l)return null;if(l=null,s.hasOwnProperty(n))for(var u,d=0,f=(n=t.get(n+"Directive")).length;d<f;d++)try{u=n[d],(a===i||a>u.priority)&&-1!=u.restrict.indexOf(o)&&(h&&(u=p(u,{$$start:h,$$end:c})),e.push(u),l=u)}catch(t){r(t)}return l}function X(e){if(s.hasOwnProperty(e))for(var i=t.get(e+"Directive"),n=0,r=i.length;n<r;n++)if((e=i[n]).multiElement)return!0;return!1}function V(t,e){var i=e.$attr,n=t.$attr,r=t.$$element;o(t,function(n,r){"$"!=r.charAt(0)&&(e[r]&&e[r]!==n&&(n+=("style"===r?";":" ")+e[r]),t.$set(r,n,!0,i[r]))}),o(e,function(e,o){"class"==o?(P(r,e),t.class=(t.class?t.class+" ":"")+e):"style"==o?(r.attr("style",r.attr("style")+";"+e),t.style=(t.style?t.style+";":"")+e):"$"==o.charAt(0)||t.hasOwnProperty(o)||(t[o]=e,n[o]=i[o])})}function Y(t,e,i,n,r,s,l,h){var c,u,d=[],f=e[0],g=t.shift(),m=p(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),v=T(g.templateUrl)?g.templateUrl(e,i):g.templateUrl,y=g.templateNamespace;return e.empty(),a(v).then(function(a){var p,x;if(a=lt(a),g.replace){if(a=rn.test(a)?_t(K(y,ji(a))):[],p=a[0],1!=a.length||p.nodeType!==qi)throw Sn("tplrt",g.name,v);a={$attr:{}},J(n,e,p);var w=R(p,[],a);b(g.scope)&&B(w),t=w.concat(t),V(i,a)}else p=f,e.html(a);for(t.unshift(m),c=j(t,p,i,r,e,g,s,l,h),o(n,function(t,i){t==p&&(n[i]=e[0])}),u=N(e[0].childNodes,r);d.length;){a=d.shift(),x=d.shift();var $=d.shift(),S=d.shift();w=e[0];if(!a.$$destroyed){if(x!==f){var k=x.className;h.hasElementTranscludeDirective&&g.replace||(w=ct(p)),J($,$i(x),w),P($i(w),k)}x=c.transcludeOnThisElement?z(a,c.transclude,S):S,c(u,a,w,n,x,c)}}d=null}),function(t,e,i,n,r){t=r,e.$$destroyed||(d?d.push(e,i,n,t):(c.transcludeOnThisElement&&(t=z(e,c.transclude,r)),c(u,e,i,n,t,c)))}}function q(t,e){var i=e.priority-t.priority;return 0!==i?i:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function G(t,e,i,n){function r(t){return t?" (module: "+t+")":""}if(e)throw Sn("multidir",e.name,r(e.$$moduleName),i.name,r(i.$$moduleName),t,F(n))}function U(t,e){var i=n(e,!0);i&&t.push({priority:0,compile:function(t){var e=!!(t=t.parent()).length;return e&&D.$$addBindingClass(t),function(t,n){var r=n.parent();e||D.$$addBindingClass(r),D.$$addBindingInfo(r,i.expressions),t.$watch(i,function(t){n[0].nodeValue=t})}}})}function K(t,i){switch(t=Ci(t||"html")){case"svg":case"math":var n=e.createElement("div");return n.innerHTML="<"+t+">"+i+"</"+t+">",n.childNodes[0].childNodes;default:return i}}function Z(t,e,i,r,o){var s=function(t,e){if("srcdoc"==e)return C.HTML;var i=L(t);return"xlinkHref"==e||"form"==i&&"action"==e||"img"!=i&&("src"==e||"ngSrc"==e)?C.RESOURCE_URL:void 0}(t,r);o=u[r]||o;var a=n(i,!0,s,o);if(a){if("multiple"===r&&"select"===L(t))throw Sn("selmulti",F(t));e.push({priority:100,compile:function(){return{pre:function(t,e,l){if(e=l.$$observers||(l.$$observers={}),v.test(r))throw Sn("nodomevents");var h=l[r];h!==i&&(a=h&&n(h,!0,s,o),i=h),a&&(l[r]=a(t),(e[r]||(e[r]=[])).$$inter=!0,(l.$$observers&&l.$$observers[r].$$scope||t).$watch(a,function(t,e){"class"===r&&t!=e?l.$updateClass(t,e):l.$set(r,t)}))}}}})}}function J(t,i,n){var r,o,s=i[0],a=i.length,l=s.parentNode;if(t)for(r=0,o=t.length;r<o;r++)if(t[r]==s){t[r++]=n,o=r+a-1;for(var h=t.length;r<h;r++,o++)o<h?t[r]=t[o]:delete t[r];t.length-=a-1,t.context===s&&(t.context=n);break}for(l&&l.replaceChild(n,s),(t=e.createDocumentFragment()).appendChild(s),$i.hasData(s)&&($i(n).data($i(s).data()),Si?(Ri=!0,Si.cleanData([s])):delete $i.cache[s[$i.expando]]),s=1,a=i.length;s<a;s++)l=i[s],$i(l).remove(),t.appendChild(l),delete i[s];i[0]=n,i.length=1}function et(t,e){return c(function(){return t.apply(null,arguments)},t,e)}function it(t,e,i,n,o,s){try{t(e,i,n,o,s)}catch(t){r(t,F(i))}}function nt(t,e,i,r,s,a){var l;return o(r,function(r,o){var a,h,c,u,d=r.attrName,p=r.optional;switch(r.mode){case"@":p||Ei.call(e,d)||(i[o]=e[d]=void 0),e.$observe(d,function(t){$(t)&&(i[o]=t)}),e.$$observers[d].$$scope=t,$(e[d])&&(i[o]=n(e[d])(t));break;case"=":if(!Ei.call(e,d)){if(p)break;e[d]=void 0}if(p&&!e[d])break;h=m(e[d]),u=h.literal?I:function(t,e){return t===e||t!=t&&e!=e},c=h.assign||function(){throw a=i[o]=h(t),Sn("nonassign",e[d],s.name)},a=i[o]=h(t),(p=function(e){return u(e,i[o])||(u(e,a)?c(t,e=i[o]):i[o]=e),a=e}).$stateful=!0,p=r.collection?t.$watchCollection(e[d],p):t.$watch(m(e[d],p),null,h.literal),(l=l||[]).push(p);break;case"&":if((h=e.hasOwnProperty(d)?m(e[d]):f)===f&&p)break;i[o]=function(e){return h(t,e)}}}),r=l?function(){for(var t=0,e=l.length;t<e;++t)l[t]()}:f,a&&r!==f?(a.$on("$destroy",r),f):r}var rt=function(t,e){if(e){var i,n,r,o=Object.keys(e);for(i=0,n=o.length;i<n;i++)this[r=o[i]]=e[r]}else this.$attr={};this.$$element=t};rt.prototype={$normalize:Rt,$addClass:function(t){t&&0<t.length&&E.addClass(this.$$element,t)},$removeClass:function(t){t&&0<t.length&&E.removeClass(this.$$element,t)},$updateClass:function(t,e){var i=Ht(t,e);i&&i.length&&E.addClass(this.$$element,i),(i=Ht(e,t))&&i.length&&E.removeClass(this.$$element,i)},$set:function(t,e,n,s){var a=kt(h=this.$$element[0],t),l=function(t,e){var i=t.nodeName;return("INPUT"===i||"TEXTAREA"===i)&&un[e]}(h,t),h=t;if(a?(this.$$element.prop(t,e),s=a):l&&(this[l]=e,h=l),this[t]=e,s?this.$attr[t]=s:(s=this.$attr[t])||(this.$attr[t]=s=Q(t,"-")),"a"===(a=L(this.$$element))&&"href"===t||"img"===a&&"src"===t)this[t]=e=A(e,"src"===t);else if("img"===a&&"srcset"===t){a="",l=ji(e);for(var c=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,u=(c=/\s/.test(l)?c:/(,)/,l=l.split(c),c=Math.floor(l.length/2),0);u<c;u++){var d=2*u;a=(a=a+A(ji(l[d]),!0))+" "+ji(l[d+1])}l=ji(l[2*u]).split(/\s/),a+=A(ji(l[0]),!0),2===l.length&&(a+=" "+ji(l[1])),this[t]=e=a}!1!==n&&(null===e||e===i?this.$$element.removeAttr(s):this.$$element.attr(s,e)),(t=this.$$observers)&&o(t[h],function(t){try{t(e)}catch(t){r(t)}})},$observe:function(t,e){var i=this,n=i.$$observers||(i.$$observers=ot()),r=n[t]||(n[t]=[]);return r.push(e),S.$evalAsync(function(){r.$$inter||!i.hasOwnProperty(t)||y(i[t])||e(i[t])}),function(){O(r,e)}}};var st=n.startSymbol(),at=n.endSymbol(),lt="{{"==st||"}}"==at?g:function(t){return t.replace(/\{\{/g,st).replace(/}}/g,at)},ht=/^ngAttr[A-Z]/;return D.$$addBindingInfo=w?function(t,e){var i=t.data("$binding")||[];Hi(e)?i=i.concat(e):i.push(e),t.data("$binding",i)}:f,D.$$addBindingClass=w?function(t){P(t,"ng-binding")}:f,D.$$addScopeInfo=w?function(t,e,i,n){t.data(i?n?"$isolateScopeNoTemplate":"$isolateScope":"$scope",e)}:f,D.$$addScopeClass=w?function(t,e){P(t,e?"ng-isolate-scope":"ng-scope")}:f,D}]}function Rt(t){return st(t.replace(kn,""))}function Ht(t,e){var i="",n=t.split(/\s+/),r=e.split(/\s+/),o=0;t:for(;o<n.length;o++){for(var s=n[o],a=0;a<r.length;a++)if(s==r[a])continue t;i+=(0<i.length?" ":"")+s}return i}function _t(t){var e=(t=$i(t)).length;if(1>=e)return t;for(;e--;)8===t[e].nodeType&&Pi.call(t,e,1);return t}function jt(){var t={},e=!1;this.register=function(e,i){it(e,"controller"),b(e)?c(t,e):t[e]=i},this.allowGlobals=function(){e=!0},this.$get=["$injector","$window",function(r,o){function s(t,e,i,r){if(!t||!b(t.$scope))throw n("$controller")("noscp",r,e);t.$scope[e]=i}return function(n,a,l,h){var u,d,p;if(l=!0===l,h&&$(h)&&(p=h),$(n)){if(!(h=n.match(Cn)))throw Tn("ctrlfmt",n);d=h[1],p=p||h[3],et(n=t.hasOwnProperty(d)?t[d]:nt(a.$scope,d,!0)||(e?nt(o,d,!0):i),d,!0)}return l?(l=(Hi(n)?n[n.length-1]:n).prototype,u=Object.create(l||null),p&&s(a,p,u,d||n.name),c(function(){var t=r.invoke(n,u,a,d);return t!==u&&(b(t)||T(t))&&(u=t,p&&s(a,p,u,d||n.name)),u},{instance:u,identifier:p})):(u=r.instantiate(n,a,d),p&&s(a,p,u,d||n.name),u)}}]}function Bt(){this.$get=["$window",function(t){return $i(t.document)}]}function Wt(){this.$get=["$log",function(t){return function(e,i){t.error.apply(t,arguments)}}]}function Ft(t){return b(t)?k(t)?t.toISOString():_(t):t}function Xt(){this.$get=function(){return function(t){if(!t)return"";var e=[];return s(t,function(t,i){null===t||y(t)||(Hi(t)?o(t,function(t,n){e.push(G(i)+"="+G(Ft(t)))}):e.push(G(i)+"="+G(Ft(t))))}),e.join("&")}}}function Vt(){this.$get=function(){return function(t){if(!t)return"";var e=[];return function t(i,n,r){null===i||y(i)||(Hi(i)?o(i,function(e,i){t(e,n+"["+(b(e)?i:"")+"]")}):b(i)&&!k(i)?s(i,function(e,i){t(e,n+(r?"":"[")+i+(r?"":"]"))}):e.push(G(n)+"="+G(Ft(i))))}(t,"",!0),e.join("&")}}}function Yt(t,e){if($(t)){var i=t.replace(On,"").trim();if(i){var n=e("Content-Type");(n=n&&0===n.indexOf(Mn))||(n=(n=i.match(Pn))&&Ln[n[0]].test(i)),n&&(t=j(i))}}return t}function qt(t){var e,i=ot();return $(t)?o(t.split("\n"),function(t){e=t.indexOf(":");var n=Ci(ji(t.substr(0,e)));t=ji(t.substr(e+1)),n&&(i[n]=i[n]?i[n]+", "+t:t)}):b(t)&&o(t,function(t,e){var n=Ci(e),r=ji(t);n&&(i[n]=i[n]?i[n]+", "+r:r)}),i}function Gt(t){var e;return function(i){return e||(e=qt(t)),i?(void 0===(i=e[Ci(i)])&&(i=null),i):e}}function Ut(t,e,i,n){return T(n)?n(t,e,i):(o(n,function(n){t=n(t,e,i)}),t)}function Kt(){var t=this.defaults={transformResponse:[Yt],transformRequest:[function(t){return b(t)&&"[object File]"!==Oi.call(t)&&"[object Blob]"!==Oi.call(t)&&"[object FormData]"!==Oi.call(t)?_(t):t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:N(An),put:N(An),patch:N(An)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},e=!1;this.useApplyAsync=function(t){return x(t)?(e=!!t,this):e};var r=!0;this.useLegacyPromiseExtensions=function(t){return x(t)?(r=!!t,this):r};var s=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,l,h,u,d,p){function f(e){function s(t){var e=c({},t);return e.data=t.data?Ut(t.data,t.headers,t.status,a.transformResponse):t.data,200<=(t=t.status)&&300>t?e:d.reject(e)}if(!Ii.isObject(e))throw n("$http")("badreq",e);var a=c({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},e);a.headers=function(e){var i,n,r,s=t.headers,a=c({},e.headers);s=c({},s.common,s[Ci(e.method)]);t:for(i in s){for(r in n=Ci(i),a)if(Ci(r)===n)continue t;a[i]=s[i]}return function(t,e){var i,n={};return o(t,function(t,r){T(t)?null!=(i=t(e))&&(n[r]=i):n[r]=t}),n}(a,N(e))}(e),a.method=Mi(a.method),a.paramSerializer=$(a.paramSerializer)?p.get(a.paramSerializer):a.paramSerializer;var l=[function(e){var n=e.headers,r=Ut(e.data,Gt(n),i,e.transformRequest);return y(r)&&o(n,function(t,e){"content-type"===Ci(e)&&delete n[e]}),y(e.withCredentials)&&!y(t.withCredentials)&&(e.withCredentials=t.withCredentials),g(e,r).then(s,s)},i],h=d.when(a);for(o(v,function(t){(t.request||t.requestError)&&l.unshift(t.request,t.requestError),(t.response||t.responseError)&&l.push(t.response,t.responseError)});l.length;){e=l.shift();var u=l.shift();h=h.then(e,u)}return r?(h.success=function(t){return et(t,"fn"),h.then(function(e){t(e.data,e.status,e.headers,a)}),h},h.error=function(t){return et(t,"fn"),h.then(null,function(e){t(e.data,e.status,e.headers,a)}),h}):(h.success=Nn("success"),h.error=Nn("error")),h}function g(n,r){function o(t,e,i,r){(200<=(e=Math.max(e,0))&&300>e?g.resolve:g.reject)({data:t,status:e,headers:Gt(i),config:n,statusText:r})}function s(t){o(t.data,t.status,N(t.headers()),t.statusText)}function h(){var t=f.pendingRequests.indexOf(n);-1!==t&&f.pendingRequests.splice(t,1)}var c,p,g=d.defer(),v=g.promise,w=n.headers,$=function(t,e){return 0<e.length&&(t+=(-1==t.indexOf("?")?"?":"&")+e),t}(n.url,n.paramSerializer(n.params));return f.pendingRequests.push(n),v.then(h,h),!n.cache&&!t.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(c=b(n.cache)?n.cache:b(t.cache)?t.cache:m),c&&(x(p=c.get($))?p&&T(p.then)?p.then(s,s):Hi(p)?o(p[1],p[0],N(p[2]),p[3]):o(p,200,{},"OK"):c.put($,v)),y(p)&&((p=Fe(n.url)?l()[n.xsrfCookieName||t.xsrfCookieName]:i)&&(w[n.xsrfHeaderName||t.xsrfHeaderName]=p),a(n.method,$,r,function(t,i,n,r){function s(){o(i,t,n,r)}c&&(200<=t&&300>t?c.put($,[t,i,qt(n),r]):c.remove($)),e?u.$applyAsync(s):(s(),u.$$phase||u.$apply())},w,n.timeout,n.withCredentials,n.responseType)),v}var m=h("$http");t.paramSerializer=$(t.paramSerializer)?p.get(t.paramSerializer):t.paramSerializer;var v=[];return o(s,function(t){v.unshift($(t)?p.get(t):p.invoke(t))}),f.pendingRequests=[],function(t){o(arguments,function(t){f[t]=function(e,i){return f(c({},i||{},{method:t,url:e}))}})}("get","delete","head","jsonp"),function(t){o(arguments,function(t){f[t]=function(e,i,n){return f(c({},n||{},{method:t,url:e,data:i}))}})}("post","put","patch"),f.defaults=t,f}]}function Zt(){return new t.XMLHttpRequest}function Jt(){this.$get=["$browser","$window","$document",function(t,e,n){return function(t,e,n,r,s){function a(t,e,i){var n=s.createElement("script"),o=null;return n.type="text/javascript",n.src=t,n.async=!0,o=function(t){n.removeEventListener("load",o,!1),n.removeEventListener("error",o,!1),s.body.removeChild(n),n=null;var a=-1,l="unknown";t&&("load"!==t.type||r[e].called||(t={type:"error"}),l=t.type,a="error"===t.type?404:200),i&&i(a,l)},n.addEventListener("load",o,!1),n.addEventListener("error",o,!1),s.body.appendChild(n),o}return function(s,l,h,c,u,d,p,g){function m(){b&&b(),w&&w.abort()}function v(e,r,o,s,a){$!==i&&n.cancel($),b=w=null,e(r,o,s,a),t.$$completeOutstandingRequest(f)}if(t.$$incOutstandingRequestCount(),l=l||t.url(),"jsonp"==Ci(s)){var y="_"+(r.counter++).toString(36);r[y]=function(t){r[y].data=t,r[y].called=!0};var b=a(l.replace("JSON_CALLBACK","angular.callbacks."+y),y,function(t,e){v(c,t,r[y].data,"",e),r[y]=f})}else{var w=e();if(w.open(s,l,!0),o(u,function(t,e){x(t)&&w.setRequestHeader(e,t)}),w.onload=function(){var t=w.statusText||"",e="response"in w?w.response:w.responseText,i=1223===w.status?204:w.status;0===i&&(i=e?200:"file"==We(l).protocol?404:0),v(c,i,e,w.getAllResponseHeaders(),t)},s=function(){v(c,-1,null,null,"")},w.onerror=s,w.onabort=s,p&&(w.withCredentials=!0),g)try{w.responseType=g}catch(t){if("json"!==g)throw t}w.send(h)}if(0<d)var $=n(m,d);else d&&T(d.then)&&d.then(m)}}(t,Zt,t.defer,e.angular.callbacks,n[0])}]}function Qt(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(i,n,r){function o(t){return"\\\\\\"+t}function s(i){return i.replace(u,t).replace(d,e)}function a(o,a,u,d){function p(t){try{var e,i=t;if(t=u?r.getTrusted(u,i):r.valueOf(i),d&&!x(t))e=t;else if(null==t)e="";else{switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=_(t)}e=t}return e}catch(t){n(In.interr(o,t))}}d=!!d;for(var f,g,m=0,v=[],b=[],w=o.length,$=[],S=[];m<w;){if(-1==(f=o.indexOf(t,m))||-1==(g=o.indexOf(e,f+l))){m!==w&&$.push(s(o.substring(m)));break}m!==f&&$.push(s(o.substring(m,f))),m=o.substring(f+l,g),v.push(m),b.push(i(m,p)),m=g+h,S.push($.length),$.push("")}if(u&&1<$.length&&In.throwNoconcat(o),!a||v.length){var k=function(t){for(var e=0,i=v.length;e<i;e++){if(d&&y(t[e]))return;$[S[e]]=t[e]}return $.join("")};return c(function(t){var e=0,i=v.length,r=Array(i);try{for(;e<i;e++)r[e]=b[e](t);return k(r)}catch(t){n(In.interr(o,t))}},{exp:o,expressions:v,$$watchDelegate:function(t,e){var i;return t.$watchGroup(b,function(n,r){var o=k(n);T(e)&&e.call(this,o,n!==r?i:o,t),i=o})}})}}var l=t.length,h=e.length,u=new RegExp(t.replace(/./g,o),"g"),d=new RegExp(e.replace(/./g,o),"g");return a.startSymbol=function(){return t},a.endSymbol=function(){return e},a}]}function te(){this.$get=["$rootScope","$window","$q","$$q",function(t,e,i,n){function r(r,s,a,l){var h=4<arguments.length,c=h?Ai.call(arguments,4):[],u=e.setInterval,d=e.clearInterval,p=0,f=x(l)&&!l,g=(f?n:i).defer(),m=g.promise;return a=x(a)?a:0,m.then(null,null,h?function(){r.apply(null,c)}:r),m.$$intervalId=u(function(){g.notify(p++),0<a&&p>=a&&(g.resolve(p),d(m.$$intervalId),delete o[m.$$intervalId]),f||t.$apply()},s),o[m.$$intervalId]=g,m}var o={};return r.cancel=function(t){return!!(t&&t.$$intervalId in o)&&(o[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete o[t.$$intervalId],!0)},r}]}function ee(t){for(var e=(t=t.split("/")).length;e--;)t[e]=q(t[e]);return t.join("/")}function ie(t,e){var i=We(t);e.$$protocol=i.protocol,e.$$host=i.hostname,e.$$port=d(i.port)||Rn[i.protocol]||null}function ne(t,e){var i="/"!==t.charAt(0);i&&(t="/"+t);var n=We(t);e.$$path=decodeURIComponent(i&&"/"===n.pathname.charAt(0)?n.pathname.substring(1):n.pathname),e.$$search=V(n.search),e.$$hash=decodeURIComponent(n.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function re(t,e){if(0===e.indexOf(t))return e.substr(t.length)}function oe(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function se(t){return t.replace(/(#.+)|#$/,"$1")}function ae(t,e,n){this.$$html5=!0,n=n||"",ie(t,this),this.$$parse=function(t){var i=re(e,t);if(!$(i))throw Hn("ipthprfx",t,e);ne(i,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=Y(this.$$search),i=this.$$hash?"#"+q(this.$$hash):"";this.$$url=ee(this.$$path)+(t?"?"+t:"")+i,this.$$absUrl=e+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,o){return o&&"#"===o[0]?(this.hash(o.slice(1)),!0):((s=re(t,r))!==i?(a=s,a=(s=re(n,s))!==i?e+(re("/",s)||s):t+a):(s=re(e,r))!==i?a=e+s:e==r+"/"&&(a=e),a&&this.$$parse(a),!!a);var s,a}}function le(t,e,i){ie(t,this),this.$$parse=function(n){var r;y(o=re(t,n)||re(e,n))||"#"!==o.charAt(0)?this.$$html5?r=o:(r="",y(o)&&(t=n,this.replace())):y(r=re(i,o))&&(r=o),ne(r,this),n=this.$$path;var o=t,s=/^\/[A-Z]:(\/.*)/;0===r.indexOf(o)&&(r=r.replace(o,"")),s.exec(r)||(n=(r=s.exec(n))?r[1]:n),this.$$path=n,this.$$compose()},this.$$compose=function(){var e=Y(this.$$search),n=this.$$hash?"#"+q(this.$$hash):"";this.$$url=ee(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+(this.$$url?i+this.$$url:"")},this.$$parseLinkUrl=function(e,i){return oe(t)==oe(e)&&(this.$$parse(e),!0)}}function he(t,e,i){this.$$html5=!0,le.apply(this,arguments),this.$$parseLinkUrl=function(n,r){return r&&"#"===r[0]?(this.hash(r.slice(1)),!0):(t==oe(n)?o=n:(s=re(e,n))?o=t+i+s:e===n+"/"&&(o=e),o&&this.$$parse(o),!!o);var o,s},this.$$compose=function(){var e=Y(this.$$search),n=this.$$hash?"#"+q(this.$$hash):"";this.$$url=ee(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+i+this.$$url}}function ce(t){return function(){return this[t]}}function ue(t,e){return function(i){return y(i)?this[t]:(this[t]=e(i),this.$$compose(),this)}}function de(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return x(e)?(t=e,this):t},this.html5Mode=function(t){return A(t)?(e.enabled=t,this):b(t)?(A(t.enabled)&&(e.enabled=t.enabled),A(t.requireBase)&&(e.requireBase=t.requireBase),A(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(i,n,r,o,s){function a(t,e,i){var r=h.url(),o=h.$$state;try{n.url(t,e,i),h.$$state=n.state()}catch(t){throw h.url(r),h.$$state=o,t}}function l(t,e){i.$broadcast("$locationChangeSuccess",h.absUrl(),t,h.$$state,e)}var h,c;c=n.baseHref();var u,d=n.url();if(e.enabled){if(!c&&e.requireBase)throw Hn("nobase");u=d.substring(0,d.indexOf("/",d.indexOf("//")+2))+(c||"/"),c=r.history?ae:he}else u=oe(d),c=le;var p=u.substr(0,oe(u).lastIndexOf("/")+1);(h=new c(u,p,"#"+t)).$$parseLinkUrl(d,d),h.$$state=n.state();var f=/^\s*(javascript|mailto):/i;o.on("click",function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var r=$i(t.target);"a"!==L(r[0]);)if(r[0]===o[0]||!(r=r.parent())[0])return;var a=r.prop("href"),l=r.attr("href")||r.attr("xlink:href");b(a)&&"[object SVGAnimatedString]"===a.toString()&&(a=We(a.animVal).href),f.test(a)||!a||r.attr("target")||t.isDefaultPrevented()||!h.$$parseLinkUrl(a,l)||(t.preventDefault(),h.absUrl()!=n.url()&&(i.$apply(),s.angular["ff-684208-preventDefault"]=!0))}}),se(h.absUrl())!=se(d)&&n.url(h.absUrl(),!0);var g=!0;return n.onUrlChange(function(t,e){y(re(p,t))?s.location.href=t:(i.$evalAsync(function(){var n,r=h.absUrl(),o=h.$$state;h.$$parse(t),h.$$state=e,n=i.$broadcast("$locationChangeStart",t,r,e,o).defaultPrevented,h.absUrl()===t&&(n?(h.$$parse(r),h.$$state=o,a(r,!1,o)):(g=!1,l(r,o)))}),i.$$phase||i.$digest())}),i.$watch(function(){var t=se(n.url()),e=se(h.absUrl()),o=n.state(),s=h.$$replace,c=t!==e||h.$$html5&&r.history&&o!==h.$$state;(g||c)&&(g=!1,i.$evalAsync(function(){var e=h.absUrl(),n=i.$broadcast("$locationChangeStart",e,t,h.$$state,o).defaultPrevented;h.absUrl()===e&&(n?(h.$$parse(t),h.$$state=o):(c&&a(e,s,o===h.$$state?null:h.$$state),l(t,o)))})),h.$$replace=!1}),h}]}function pe(){var t=!0,e=this;this.debugEnabled=function(e){return x(e)?(t=e,this):t},this.$get=["$window",function(i){function n(t){var e=i.console||{},n=e[t]||e.log||f;t=!1;try{t=!!n.apply}catch(t){}return t?function(){var t=[];return o(arguments,function(e){t.push(function(t){return t instanceof Error&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}(e))}),n.apply(e,t)}:function(t,e){n(t,null==e?"":e)}}return{log:n("log"),info:n("info"),warn:n("warn"),error:n("error"),debug:function(){var i=n("debug");return function(){t&&i.apply(e,arguments)}}()}}]}function fe(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw jn("isecfld",e);return t}function ge(t,e){if(t){if(t.constructor===t)throw jn("isecfn",e);if(t.window===t)throw jn("isecwindow",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw jn("isecdom",e);if(t===Object)throw jn("isecobj",e)}return t}function me(t,e){if(t){if(t.constructor===t)throw jn("isecfn",e);if(t===Bn||t===Wn||t===Fn)throw jn("isecff",e)}}function ve(t,e){return void 0!==t?t:e}function ye(t,e){return void 0===t?e:void 0===e?t:t+e}function xe(t,e){var i,n;switch(t.type){case qn.Program:i=!0,o(t.body,function(t){xe(t.expression,e),i=i&&t.expression.constant}),t.constant=i;break;case qn.Literal:t.constant=!0,t.toWatch=[];break;case qn.UnaryExpression:xe(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case qn.BinaryExpression:xe(t.left,e),xe(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case qn.LogicalExpression:xe(t.left,e),xe(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case qn.ConditionalExpression:xe(t.test,e),xe(t.alternate,e),xe(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case qn.Identifier:t.constant=!1,t.toWatch=[t];break;case qn.MemberExpression:xe(t.object,e),t.computed&&xe(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case qn.CallExpression:i=!!t.filter&&!e(t.callee.name).$stateful,n=[],o(t.arguments,function(t){xe(t,e),i=i&&t.constant,t.constant||n.push.apply(n,t.toWatch)}),t.constant=i,t.toWatch=t.filter&&!e(t.callee.name).$stateful?n:[t];break;case qn.AssignmentExpression:xe(t.left,e),xe(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case qn.ArrayExpression:i=!0,n=[],o(t.elements,function(t){xe(t,e),i=i&&t.constant,t.constant||n.push.apply(n,t.toWatch)}),t.constant=i,t.toWatch=n;break;case qn.ObjectExpression:i=!0,n=[],o(t.properties,function(t){xe(t.value,e),i=i&&t.value.constant,t.value.constant||n.push.apply(n,t.value.toWatch)}),t.constant=i,t.toWatch=n;break;case qn.ThisExpression:t.constant=!1,t.toWatch=[]}}function be(t){if(1==t.length){var e=(t=t[0].expression).toWatch;return 1!==e.length?e:e[0]!==t?e:i}}function we(t){return t.type===qn.Identifier||t.type===qn.MemberExpression}function $e(t){if(1===t.body.length&&we(t.body[0].expression))return{type:qn.AssignmentExpression,left:t.body[0].expression,right:{type:qn.NGValueParameter},operator:"="}}function Se(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===qn.Literal||t.body[0].expression.type===qn.ArrayExpression||t.body[0].expression.type===qn.ObjectExpression)}function ke(t,e){this.astBuilder=t,this.$filter=e}function Te(t,e){this.astBuilder=t,this.$filter=e}function Ce(t){return"constructor"==t}function Ee(t){return T(t.valueOf)?t.valueOf():Un.call(t)}function Me(){var t=ot(),e=ot();this.$get=["$filter",function(n){function r(t,e){return null==t||null==e?t===e:("object"!=typeof t||"object"!=typeof(t=Ee(t)))&&(t===e||t!=t&&e!=e)}function s(t,e,n,o,s){var a;if(1===(h=o.inputs).length){var l=r,h=h[0];return t.$watch(function(t){var e=h(t);return r(e,l)||(a=o(t,i,i,[e]),l=e&&Ee(e)),a},e,n,s)}for(var c=[],u=[],d=0,p=h.length;d<p;d++)c[d]=r,u[d]=null;return t.$watch(function(t){for(var e=!1,n=0,s=h.length;n<s;n++){var l=h[n](t);(e||(e=!r(l,c[n])))&&(u[n]=l,c[n]=l&&Ee(l))}return e&&(a=o(t,i,i,u)),a},e,n,s)}function a(t,e,i,n){var r,o;return r=t.$watch(function(t){return n(t)},function(t,i,n){o=t,T(e)&&e.apply(this,arguments),x(t)&&n.$$postDigest(function(){x(o)&&r()})},i)}function l(t,e,i,n){function r(t){var e=!0;return o(t,function(t){x(t)||(e=!1)}),e}var s,a;return s=t.$watch(function(t){return n(t)},function(t,i,n){a=t,T(e)&&e.call(this,t,i,n),r(t)&&n.$$postDigest(function(){r(a)&&s()})},i)}function h(t,e,i,n){var r;return r=t.$watch(function(t){return n(t)},function(t,i,n){T(e)&&e.apply(this,arguments),r()},i)}function c(t,e){if(!e)return t;var i=(i=t.$$watchDelegate)!==l&&i!==a?function(i,n,r,o){return r=t(i,n,r,o),e(r,i,n)}:function(i,n,r,o){return r=t(i,n,r,o),i=e(r,i,n),x(r)?i:r};return t.$$watchDelegate&&t.$$watchDelegate!==s?i.$$watchDelegate=t.$$watchDelegate:e.$stateful||(i.$$watchDelegate=s,i.inputs=t.inputs?t.inputs:[t]),i}var u=Wi().noUnsafeEval,d={csp:u,expensiveChecks:!1},p={csp:u,expensiveChecks:!0};return function(i,r,o){var u,g,m;switch(typeof i){case"string":m=i=i.trim();var v=o?e:t;return(u=v[m])||(":"===i.charAt(0)&&":"===i.charAt(1)&&(g=!0,i=i.substring(2)),u=new Yn(o=o?p:d),(u=new Gn(u,n,o).parse(i)).constant?u.$$watchDelegate=h:g?u.$$watchDelegate=u.literal?l:a:u.inputs&&(u.$$watchDelegate=s),v[m]=u),c(u,r);case"function":return c(i,r);default:return f}}}]}function Ae(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return Le(function(e){t.$evalAsync(e)},e)}]}function Pe(){this.$get=["$browser","$exceptionHandler",function(t,e){return Le(function(e){t.defer(e)},e)}]}function Le(t,e){function r(){this.$$state={status:0}}function s(t,e){return function(i){e.call(t,i)}}function a(n){!n.processScheduled&&n.pending&&(n.processScheduled=!0,t(function(){var t,r,o;o=n.pending,n.processScheduled=!1,n.pending=i;for(var s=0,a=o.length;s<a;++s){r=o[s][0],t=o[s][n.status];try{T(t)?r.resolve(t(n.value)):1===n.status?r.resolve(n.value):r.reject(n.value)}catch(t){r.reject(t),e(t)}}}))}function l(){this.promise=new r,this.resolve=s(this,this.resolve),this.reject=s(this,this.reject),this.notify=s(this,this.notify)}var h=n("$q",TypeError);c(r.prototype,{then:function(t,e,i){if(y(t)&&y(e)&&y(i))return this;var n=new l;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([n,t,e,i]),0<this.$$state.status&&a(this.$$state),n.promise},catch:function(t){return this.then(null,t)},finally:function(t,e){return this.then(function(e){return d(e,!0,t)},function(e){return d(e,!1,t)},e)}}),c(l.prototype,{resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(h("qcycle",t)):this.$$resolve(t))},$$resolve:function(t){var i,n;n=function(t,e,i){function n(e){return function(i){r||(r=!0,e.call(t,i))}}var r=!1;return[n(e),n(i)]}(this,this.$$resolve,this.$$reject);try{(b(t)||T(t))&&(i=t&&t.then),T(i)?(this.promise.$$state.status=-1,i.call(t,n[0],n[1],this.notify)):(this.promise.$$state.value=t,this.promise.$$state.status=1,a(this.promise.$$state))}catch(t){n[1](t),e(t)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,a(this.promise.$$state)},notify:function(i){var n=this.promise.$$state.pending;0>=this.promise.$$state.status&&n&&n.length&&t(function(){for(var t,r,o=0,s=n.length;o<s;o++){r=n[o][0],t=n[o][3];try{r.notify(T(t)?t(i):i)}catch(t){e(t)}}})}});var u=function(t,e){var i=new l;return e?i.resolve(t):i.reject(t),i.promise},d=function(t,e,i){var n=null;try{T(i)&&(n=i())}catch(t){return u(t,!1)}return n&&T(n.then)?n.then(function(){return u(t,e)},function(t){return u(t,!1)}):u(t,e)},p=function(t,e,i,n){var r=new l;return r.resolve(t),r.promise.then(e,i,n)},f=function t(e){if(!T(e))throw h("norslvr",e);if(!(this instanceof t))return new t(e);var i=new l;return e(function(t){i.resolve(t)},function(t){i.reject(t)}),i.promise};return f.defer=function(){return new l},f.reject=function(t){var e=new l;return e.reject(t),e.promise},f.when=p,f.resolve=p,f.all=function(t){var e=new l,i=0,n=Hi(t)?[]:{};return o(t,function(t,r){i++,p(t).then(function(t){n.hasOwnProperty(r)||(n[r]=t,--i||e.resolve(n))},function(t){n.hasOwnProperty(r)||e.reject(t)})}),0===i&&e.resolve(n),e.promise},f}function Oe(){this.$get=["$window","$timeout",function(t,e){var i=t.requestAnimationFrame||t.webkitRequestAnimationFrame,n=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,r=!!i,o=r?function(t){var e=i(t);return function(){n(e)}}:function(t){var i=e(t,16.66,!1);return function(){e.cancel(i)}};return o.supported=r,o}]}function De(){var t=10,e=n("$rootScope"),i=null,s=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(n,a,l,h){function c(t){t.currentScope.$$destroyed=!0}function u(){this.$id=++zi,this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function d(t){if(x.$$phase)throw e("inprog",x.$$phase);x.$$phase=t}function p(t,e){do{t.$$watchersCount+=e}while(t=t.$parent)}function g(t,e,i){do{t.$$listenerCount[i]-=e,0===t.$$listenerCount[i]&&delete t.$$listenerCount[i]}while(t=t.$parent)}function m(){}function v(){for(;S.length;)try{S.shift()()}catch(t){a(t)}s=null}u.prototype={constructor:u,$new:function(t,e){var i;return e=e||this,t?(i=new u).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=++zi,this.$$ChildScope=null}return e.prototype=t,e}(this)),i=new this.$$ChildScope),i.$parent=e,i.$$prevSibling=e.$$childTail,e.$$childHead?(e.$$childTail.$$nextSibling=i,e.$$childTail=i):e.$$childHead=e.$$childTail=i,(t||e!=this)&&i.$on("$destroy",c),i},$watch:function(t,e,n,r){var o=l(t);if(o.$$watchDelegate)return o.$$watchDelegate(this,e,n,o,t);var s=this,a=s.$$watchers,h={fn:e,last:m,get:o,exp:r||t,eq:!!n};return i=null,T(e)||(h.fn=f),a||(a=s.$$watchers=[]),a.unshift(h),p(this,1),function(){0<=O(a,h)&&p(s,-1),i=null}},$watchGroup:function(t,e){function i(){l=!1,h?(h=!1,e(r,r,a)):e(r,n,a)}var n=Array(t.length),r=Array(t.length),s=[],a=this,l=!1,h=!0;if(!t.length){var c=!0;return a.$evalAsync(function(){c&&e(r,r,a)}),function(){c=!1}}return 1===t.length?this.$watch(t[0],function(t,i,o){r[0]=t,n[0]=i,e(r,t===i?r:n,o)}):(o(t,function(t,e){var o=a.$watch(t,function(t,o){r[e]=t,n[e]=o,l||(l=!0,a.$evalAsync(i))});s.push(o)}),function(){for(;s.length;)s.shift()()})},$watchCollection:function(t,e){function i(t){var e,i,s;if(!y(n=t)){if(b(n))if(r(n))for(o!==d&&(g=(o=d).length=0,c++),t=n.length,g!==t&&(c++,o.length=g=t),e=0;e<t;e++)s=o[e],i=n[e],s!=s&&i!=i||s===i||(c++,o[e]=i);else{for(e in o!==p&&(o=p={},g=0,c++),t=0,n)n.hasOwnProperty(e)&&(t++,i=n[e],s=o[e],e in o?s!=s&&i!=i||s===i||(c++,o[e]=i):(g++,o[e]=i,c++));if(g>t)for(e in c++,o)n.hasOwnProperty(e)||(g--,delete o[e])}else o!==n&&(o=n,c++);return c}}i.$stateful=!0;var n,o,s,a=this,h=1<e.length,c=0,u=l(t,i),d=[],p={},f=!0,g=0;return this.$watch(u,function(){if(f?(f=!1,e(n,n,a)):e(n,s,a),h)if(b(n))if(r(n)){s=Array(n.length);for(var t=0;t<n.length;t++)s[t]=n[t]}else for(t in s={},n)Ei.call(n,t)&&(s[t]=n[t]);else s=n})},$digest:function(){var n,r,o,l,c,u,p,f,g,y=t,b=[];d("$digest"),h.$$checkUrlChange(),this===x&&null!==s&&(h.defer.cancel(s),v()),i=null;do{for(u=!1,p=this;w.length;){try{(g=w.shift()).scope.$eval(g.expression,g.locals)}catch(t){a(t)}i=null}t:do{if(l=p.$$watchers)for(c=l.length;c--;)try{if(n=l[c])if((r=n.get(p))===(o=n.last)||(n.eq?I(r,o):"number"==typeof r&&"number"==typeof o&&isNaN(r)&&isNaN(o))){if(n===i){u=!1;break t}}else u=!0,i=n,n.last=n.eq?D(r,null):r,n.fn(r,o===m?r:o,p),5>y&&(b[f=4-y]||(b[f]=[]),b[f].push({msg:T(n.exp)?"fn: "+(n.exp.name||n.exp.toString()):n.exp,newVal:r,oldVal:o}))}catch(t){a(t)}if(!(l=p.$$watchersCount&&p.$$childHead||p!==this&&p.$$nextSibling))for(;p!==this&&!(l=p.$$nextSibling);)p=p.$parent}while(p=l);if((u||w.length)&&!y--)throw x.$$phase=null,e("infdig",t,b)}while(u||w.length);for(x.$$phase=null;$.length;)try{$.shift()()}catch(t){a(t)}},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;for(var e in this.$broadcast("$destroy"),this.$$destroyed=!0,this===x&&h.$$applicationDestroyed(),p(this,-this.$$watchersCount),this.$$listenerCount)g(this,this.$$listenerCount[e],e);t&&t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail==this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=f,this.$on=this.$watch=this.$watchGroup=function(){return f},this.$$listeners={},this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null}},$eval:function(t,e){return l(t)(this,e)},$evalAsync:function(t,e){x.$$phase||w.length||h.defer(function(){w.length&&x.$digest()}),w.push({scope:this,expression:t,locals:e})},$$postDigest:function(t){$.push(t)},$apply:function(t){try{d("$apply");try{return this.$eval(t)}finally{x.$$phase=null}}catch(t){a(t)}finally{try{x.$digest()}catch(t){throw a(t),t}}},$applyAsync:function(t){var e=this;t&&S.push(function(){e.$eval(t)}),null===s&&(s=h.defer(function(){x.$apply(v)}))},$on:function(t,e){var i=this.$$listeners[t];i||(this.$$listeners[t]=i=[]),i.push(e);var n=this;do{n.$$listenerCount[t]||(n.$$listenerCount[t]=0),n.$$listenerCount[t]++}while(n=n.$parent);var r=this;return function(){var n=i.indexOf(e);-1!==n&&(i[n]=null,g(r,1,t))}},$emit:function(t,e){var i,n,r,o=[],s=this,l=!1,h={name:t,targetScope:s,stopPropagation:function(){l=!0},preventDefault:function(){h.defaultPrevented=!0},defaultPrevented:!1},c=z([h],arguments,1);do{for(i=s.$$listeners[t]||o,h.currentScope=s,n=0,r=i.length;n<r;n++)if(i[n])try{i[n].apply(null,c)}catch(t){a(t)}else i.splice(n,1),n--,r--;if(l)return h.currentScope=null,h;s=s.$parent}while(s);return h.currentScope=null,h},$broadcast:function(t,e){var i=this,n=this,r={name:t,targetScope:this,preventDefault:function(){r.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[t])return r;for(var o,s,l=z([r],arguments,1);i=n;){for(r.currentScope=i,o=0,s=(n=i.$$listeners[t]||[]).length;o<s;o++)if(n[o])try{n[o].apply(null,l)}catch(t){a(t)}else n.splice(o,1),o--,s--;if(!(n=i.$$listenerCount[t]&&i.$$childHead||i!==this&&i.$$nextSibling))for(;i!==this&&!(n=i.$$nextSibling);)i=i.$parent}return r.currentScope=null,r}};var x=new u,w=x.$$asyncQueue=[],$=x.$$postDigestQueue=[],S=x.$$applyAsyncQueue=[];return x}]}function Ne(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return x(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return x(t)?(e=t,this):e},this.$get=function(){return function(i,n){var r,o=n?e:t;return""===(r=We(i).href)||r.match(o)?i:"unsafe:"+r}}}function Ie(t){var e=[];return x(t)&&o(t,function(t){e.push(function(t){if("self"===t)return t;if($(t)){if(-1<t.indexOf("***"))throw Kn("iwcard",t);return t=Bi(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(C(t))return new RegExp("^"+t.source+"$");throw Kn("imatcher")}(t))}),e}function ze(){this.SCE_CONTEXTS=Zn;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=Ie(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=Ie(t)),e},this.$get=["$injector",function(n){function r(t,e){return"self"===t?Fe(e):!!t.exec(e.href)}function o(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}var s=function(t){throw Kn("unsafe")};n.has("$sanitize")&&(s=n.get("$sanitize"));var a=o(),l={};return l[Zn.HTML]=o(a),l[Zn.CSS]=o(a),l[Zn.URL]=o(a),l[Zn.JS]=o(a),l[Zn.RESOURCE_URL]=o(l[Zn.URL]),{trustAs:function(t,e){var n=l.hasOwnProperty(t)?l[t]:null;if(!n)throw Kn("icontext",t,e);if(null===e||e===i||""===e)return e;if("string"!=typeof e)throw Kn("itype",t);return new n(e)},getTrusted:function(n,o){if(null===o||o===i||""===o)return o;if((c=l.hasOwnProperty(n)?l[n]:null)&&o instanceof c)return o.$$unwrapTrustedValue();if(n===Zn.RESOURCE_URL){var a,h,c=We(o.toString()),u=!1;for(a=0,h=t.length;a<h;a++)if(r(t[a],c)){u=!0;break}if(u)for(a=0,h=e.length;a<h;a++)if(r(e[a],c)){u=!1;break}if(u)return o;throw Kn("insecurl",o.toString())}if(n===Zn.HTML)return s(o);throw Kn("unsafe")},valueOf:function(t){return t instanceof a?t.$$unwrapTrustedValue():t}}}]}function Re(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,i){if(t&&8>wi)throw Kn("iequirks");var n=N(Zn);n.isEnabled=function(){return t},n.trustAs=i.trustAs,n.getTrusted=i.getTrusted,n.valueOf=i.valueOf,t||(n.trustAs=n.getTrusted=function(t,e){return e},n.valueOf=g),n.parseAs=function(t,i){var r=e(i);return r.literal&&r.constant?r:e(i,function(e){return n.getTrusted(t,e)})};var r=n.parseAs,s=n.getTrusted,a=n.trustAs;return o(Zn,function(t,e){var i=Ci(e);n[st("parse_as_"+i)]=function(e){return r(t,e)},n[st("get_trusted_"+i)]=function(e){return s(t,e)},n[st("trust_as_"+i)]=function(e){return a(t,e)}}),n}]}function He(){this.$get=["$window","$document",function(t,e){var i,n={},r=d((/android (\d+)/.exec(Ci((t.navigator||{}).userAgent))||[])[1]),o=/Boxee/i.test((t.navigator||{}).userAgent),s=e[0]||{},a=/^(Moz|webkit|ms)(?=[A-Z])/,l=s.body&&s.body.style,h=!1,c=!1;if(l){for(var u in l)if(h=a.exec(u)){i=(i=h[0]).substr(0,1).toUpperCase()+i.substr(1);break}i||(i="WebkitOpacity"in l&&"webkit"),h=!!("transition"in l||i+"Transition"in l),c=!!("animation"in l||i+"Animation"in l),!r||h&&c||(h=$(l.webkitTransition),c=$(l.webkitAnimation))}return{history:!(!t.history||!t.history.pushState||4>r||o),hasEvent:function(t){if("input"===t&&11>=wi)return!1;if(y(n[t])){var e=s.createElement("div");n[t]="on"+t in e}return n[t]},csp:Wi(),vendorPrefix:i,transitions:h,animations:c,android:r}}]}function _e(){this.$get=["$templateCache","$http","$q","$sce",function(t,e,i,n){function r(o,s){r.totalPendingRequests++,$(o)&&t.get(o)||(o=n.getTrustedResourceUrl(o));var a=e.defaults&&e.defaults.transformResponse;return Hi(a)?a=a.filter(function(t){return t!==Yt}):a===Yt&&(a=null),e.get(o,{cache:t,transformResponse:a}).finally(function(){r.totalPendingRequests--}).then(function(e){return t.put(o,e.data),e.data},function(t){if(!s)throw Sn("tpload",o,t.status,t.statusText);return i.reject(t)})}return r.totalPendingRequests=0,r}]}function je(){this.$get=["$rootScope","$browser","$location",function(t,e,i){return{findBindings:function(t,e,i){t=t.getElementsByClassName("ng-binding");var n=[];return o(t,function(t){var r=Ii.element(t).data("$binding");r&&o(r,function(r){i?new RegExp("(^|\\s)"+Bi(e)+"(\\s|\\||$)").test(r)&&n.push(t):-1!=r.indexOf(e)&&n.push(t)})}),n},findModels:function(t,e,i){for(var n=["ng-","data-ng-","ng\\:"],r=0;r<n.length;++r){var o=t.querySelectorAll("["+n[r]+"model"+(i?"=":"*=")+'"'+e+'"]');if(o.length)return o}},getLocation:function(){return i.url()},setLocation:function(e){e!==i.url()&&(i.url(e),t.$digest())},whenStable:function(t){e.notifyWhenNoOutstandingRequests(t)}}}]}function Be(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,i,n,r){function o(o,a,l){T(o)||(l=a,a=o,o=f);var h,c=Ai.call(arguments,3),u=x(l)&&!l,d=(u?n:i).defer(),p=d.promise;return h=e.defer(function(){try{d.resolve(o.apply(null,c))}catch(t){d.reject(t),r(t)}finally{delete s[p.$$timeoutId]}u||t.$apply()},a),p.$$timeoutId=h,s[h]=d,p}var s={};return o.cancel=function(t){return!!(t&&t.$$timeoutId in s)&&(s[t.$$timeoutId].reject("canceled"),delete s[t.$$timeoutId],e.defer.cancel(t.$$timeoutId))},o}]}function We(t){return wi&&(Jn.setAttribute("href",t),t=Jn.href),Jn.setAttribute("href",t),{href:Jn.href,protocol:Jn.protocol?Jn.protocol.replace(/:$/,""):"",host:Jn.host,search:Jn.search?Jn.search.replace(/^\?/,""):"",hash:Jn.hash?Jn.hash.replace(/^#/,""):"",hostname:Jn.hostname,port:Jn.port,pathname:"/"===Jn.pathname.charAt(0)?Jn.pathname:"/"+Jn.pathname}}function Fe(t){return(t=$(t)?We(t):t).protocol===Qn.protocol&&t.host===Qn.host}function Xe(){this.$get=m(t)}function Ve(t){function e(t){try{return decodeURIComponent(t)}catch(e){return t}}var n=t[0]||{},r={},o="";return function(){var t,s,a,l,h;if((t=n.cookie||"")!==o)for(t=(o=t).split("; "),r={},a=0;a<t.length;a++)0<(l=(s=t[a]).indexOf("="))&&(h=e(s.substring(0,l)),r[h]===i&&(r[h]=e(s.substring(l+1))));return r}}function Ye(){this.$get=Ve}function qe(t){function e(i,n){if(b(i)){var r={};return o(i,function(t,i){r[i]=e(i,t)}),r}return t.factory(i+"Filter",n)}this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+"Filter")}}],e("currency",Ze),e("date",si),e("filter",Ge),e("json",ai),e("limitTo",li),e("lowercase",rr),e("number",Je),e("orderBy",hi),e("uppercase",or)}function Ge(){return function(t,e,i){if(!r(t)){if(null==t)return t;throw n("filter")("notarray",t)}var o;switch(Ke(e)){case"function":break;case"boolean":case"null":case"number":case"string":o=!0;case"object":e=function(t,e,i){var n=b(t)&&"$"in t;return!0===e?e=I:T(e)||(e=function(t,e){return!(y(t)||(null===t||null===e?t!==e:b(e)||b(t)&&!v(t)||(t=Ci(""+t),e=Ci(""+e),-1===t.indexOf(e))))}),function(r){return n&&!b(r)?Ue(r,t.$,e,!1):Ue(r,t,e,i)}}(e,i,o);break;default:return t}return Array.prototype.filter.call(t,e)}}function Ue(t,e,i,n,r){var o=Ke(t),s=Ke(e);if("string"===s&&"!"===e.charAt(0))return!Ue(t,e.substring(1),i,n);if(Hi(t))return t.some(function(t){return Ue(t,e,i,n)});switch(o){case"object":var a;if(n){for(a in t)if("$"!==a.charAt(0)&&Ue(t[a],e,i,!0))return!0;return!r&&Ue(t,e,i,!1)}if("object"===s){for(a in e)if(!T(r=e[a])&&!y(r)&&!Ue((o="$"===a)?t:t[a],r,i,o,o))return!1;return!0}return i(t,e);case"function":return!1;default:return i(t,e)}}function Ke(t){return null===t?"null":typeof t}function Ze(t){var e=t.NUMBER_FORMATS;return function(t,i,n){return y(i)&&(i=e.CURRENCY_SYM),y(n)&&(n=e.PATTERNS[1].maxFrac),null==t?t:Qe(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,n).replace(/\u00A4/g,i)}}function Je(t){var e=t.NUMBER_FORMATS;return function(t,i){return null==t?t:Qe(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,i)}}function Qe(t,e,i,n,r){if(b(t))return"";var o=0>t;if(!(c=1/0===(t=Math.abs(t)))&&!isFinite(t))return"";var s=t+"",a="",l=!1,h=[];(c&&(a="∞"),c||-1===s.indexOf("e"))||((u=s.match(/([\d\.]+)e(-?)(\d+)/))&&"-"==u[2]&&u[3]>r+1?t=0:(a=s,l=!0));if(c||l)0<r&&1>t&&(a=t.toFixed(r),t=parseFloat(a));else{c=(s.split(tr)[1]||"").length,y(r)&&(r=Math.min(Math.max(e.minFrac,c),e.maxFrac));s=(c=(""+(t=+(Math.round(+(t.toString()+"e"+r)).toString()+"e"+-r))).split(tr))[0];var c=c[1]||"",u=0,d=e.lgSize,p=e.gSize;if(s.length>=d+p)for(u=s.length-d,l=0;l<u;l++)0==(u-l)%p&&0!==l&&(a+=i),a+=s.charAt(l);for(l=u;l<s.length;l++)0==(s.length-l)%d&&0!==l&&(a+=i),a+=s.charAt(l);for(;c.length<r;)c+="0";r&&"0"!==r&&(a+=n+c.substr(0,r))}return 0===t&&(o=!1),h.push(o?e.negPre:e.posPre,a,o?e.negSuf:e.posSuf),h.join("")}function ti(t,e,i){var n="";for(0>t&&(n="-",t=-t),t=""+t;t.length<e;)t="0"+t;return i&&(t=t.substr(t.length-e)),n+t}function ei(t,e,i,n){return i=i||0,function(r){return r=r["get"+t](),(0<i||r>-i)&&(r+=i),0===r&&-12==i&&(r=12),ti(r,e,n)}}function ii(t,e){return function(i,n){var r=i["get"+t]();return n[Mi(e?"SHORT"+t:t)][r]}}function ni(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(4>=e?5:12)-e)}function ri(t){return function(e){var i=ni(e.getFullYear());return e=+new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))-+i,ti(e=1+Math.round(e/6048e5),t)}}function oi(t,e){return 0>=t.getFullYear()?e.ERAS[0]:e.ERAS[1]}function si(t){function e(t){var e;if(e=t.match(i)){t=new Date(0);var n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,s=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=d(e[9]+e[10]),r=d(e[9]+e[11])),o.call(t,d(e[1]),d(e[2])-1,d(e[3])),n=d(e[4]||0)-n,r=d(e[5]||0)-r,o=d(e[6]||0),e=Math.round(1e3*parseFloat("0."+(e[7]||0))),s.call(t,n,r,o,e)}return t}var i=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(i,n,r){var s,a,l="",h=[];if(n=n||"mediumDate",n=t.DATETIME_FORMATS[n]||n,$(i)&&(i=nr.test(i)?d(i):e(i)),S(i)&&(i=new Date(i)),!k(i)||!isFinite(i.getTime()))return i;for(;n;)(a=ir.exec(n))?n=(h=z(h,a,1)).pop():(h.push(n),n=null);var c=i.getTimezoneOffset();return r&&(c=B(r,i.getTimezoneOffset()),i=W(i,r,!0)),o(h,function(e){s=er[e],l+=s?s(i,t.DATETIME_FORMATS,c):e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}}function ai(){return function(t,e){return y(e)&&(e=2),_(t,e)}}function li(){return function(t,e,i){return e=1/0===Math.abs(Number(e))?Number(e):d(e),isNaN(e)?t:(S(t)&&(t=t.toString()),Hi(t)||$(t)?(i=0>(i=!i||isNaN(i)?0:d(i))&&i>=-t.length?t.length+i:i,0<=e?t.slice(i,i+e):0===i?t.slice(e,t.length):t.slice(Math.max(0,i+e),i)):t)}}function hi(t){function e(e,i){return i=i?-1:1,e.map(function(e){var n=1,r=g;if(T(e))r=e;else if($(e)&&("+"!=e.charAt(0)&&"-"!=e.charAt(0)||(n="-"==e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(r=t(e)).constant)){var o=r();r=function(t){return t[o]}}return{get:r,descending:n*i}})}function i(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}return function(t,n,o){if(!r(t))return t;Hi(n)||(n=[n]),0===n.length&&(n=["+"]);var s=e(n,o);return s.push({get:function(){return{}},descending:o?-1:1}),(t=Array.prototype.map.call(t,function(t,e){return{value:t,predicateValues:s.map(function(n){var r=n.get(t);return n=typeof r,null===r?(n="string",r="null"):"string"===n?r=r.toLowerCase():"object"===n&&("function"==typeof r.valueOf&&i(r=r.valueOf())||v(r)&&i(r=r.toString())||(r=e)),{value:r,type:n}})}})).sort(function(t,e){for(var i=0,n=0,r=s.length;n<r;++n){i=t.predicateValues[n];var o=e.predicateValues[n],a=0;if(i.type===o.type?i.value!==o.value&&(a=i.value<o.value?-1:1):a=i.type<o.type?-1:1,i=a*s[n].descending)break}return i}),t.map(function(t){return t.value})}}function ci(t){return T(t)&&(t={link:t}),t.restrict=t.restrict||"AC",m(t)}function ui(t,e,n,r,s){var a=this,l=[],h=a.$$parentForm=t.parent().controller("form")||lr;a.$error={},a.$$success={},a.$pending=i,a.$name=s(e.name||e.ngForm||"")(n),a.$dirty=!1,a.$pristine=!0,a.$valid=!0,a.$invalid=!1,a.$submitted=!1,h.$addControl(a),a.$rollbackViewValue=function(){o(l,function(t){t.$rollbackViewValue()})},a.$commitViewValue=function(){o(l,function(t){t.$commitViewValue()})},a.$addControl=function(t){it(t.$name,"input"),l.push(t),t.$name&&(a[t.$name]=t)},a.$$renameControl=function(t,e){var i=t.$name;a[i]===t&&delete a[i],a[e]=t,t.$name=e},a.$removeControl=function(t){t.$name&&a[t.$name]===t&&delete a[t.$name],o(a.$pending,function(e,i){a.$setValidity(i,null,t)}),o(a.$error,function(e,i){a.$setValidity(i,null,t)}),o(a.$$success,function(e,i){a.$setValidity(i,null,t)}),O(l,t)},xi({ctrl:this,$element:t,set:function(t,e,i){var n=t[e];n?-1===n.indexOf(i)&&n.push(i):t[e]=[i]},unset:function(t,e,i){var n=t[e];n&&(O(n,i),0===n.length&&delete t[e])},parentForm:h,$animate:r}),a.$setDirty=function(){r.removeClass(t,Fr),r.addClass(t,Xr),a.$dirty=!0,a.$pristine=!1,h.$setDirty()},a.$setPristine=function(){r.setClass(t,Fr,Xr+" ng-submitted"),a.$dirty=!1,a.$pristine=!0,a.$submitted=!1,o(l,function(t){t.$setPristine()})},a.$setUntouched=function(){o(l,function(t){t.$setUntouched()})},a.$setSubmitted=function(){r.addClass(t,"ng-submitted"),a.$submitted=!0,h.$setSubmitted()}}function di(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function pi(t,e,i,n,r,o){var s=Ci(e[0].type);if(!r.android){var a=!1;e.on("compositionstart",function(t){a=!0}),e.on("compositionend",function(){a=!1,l()})}var l=function(t){if(h&&(o.defer.cancel(h),h=null),!a){var r=e.val();t=t&&t.type,"password"===s||i.ngTrim&&"false"===i.ngTrim||(r=ji(r)),(n.$viewValue!==r||""===r&&n.$$hasNativeValidators)&&n.$setViewValue(r,t)}};if(r.hasEvent("input"))e.on("input",l);else{var h,c=function(t,e,i){h||(h=o.defer(function(){h=null,e&&e.value===i||l(t)}))};e.on("keydown",function(t){var e=t.keyCode;91===e||15<e&&19>e||37<=e&&40>=e||c(t,this,this.value)}),r.hasEvent("paste")&&e.on("paste cut",c)}e.on("change",l),n.$render=function(){var t=n.$isEmpty(n.$viewValue)?"":n.$viewValue;e.val()!==t&&e.val(t)}}function fi(t,e){return function(i,n){var r,s;if(k(i))return i;if($(i)){if('"'==i.charAt(0)&&'"'==i.charAt(i.length-1)&&(i=i.substring(1,i.length-1)),dr.test(i))return new Date(i);if(t.lastIndex=0,r=t.exec(i))return r.shift(),s=n?{yyyy:n.getFullYear(),MM:n.getMonth()+1,dd:n.getDate(),HH:n.getHours(),mm:n.getMinutes(),ss:n.getSeconds(),sss:n.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(r,function(t,i){i<e.length&&(s[e[i]]=+t)}),new Date(s.yyyy,s.MM-1,s.dd,s.HH,s.mm,s.ss||0,1e3*s.sss||0)}return NaN}}function gi(t,e,n,r){return function(o,s,a,l,h,c,u){function d(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function p(t){return x(t)?k(t)?t:n(t):i}mi(o,s,a,l),pi(0,s,a,l,h,c);var f,g,m,v=l&&l.$options&&l.$options.timezone;(l.$$parserName=t,l.$parsers.push(function(t){return l.$isEmpty(t)?null:e.test(t)?(t=n(t,f),v&&(t=W(t,v)),t):i}),l.$formatters.push(function(t){if(t&&!k(t))throw Yr("datefmt",t);return d(t)?((f=t)&&v&&(f=W(f,v,!0)),u("date")(t,r,v)):(f=null,"")}),x(a.min)||a.ngMin)&&(l.$validators.min=function(t){return!d(t)||y(g)||n(t)>=g},a.$observe("min",function(t){g=p(t),l.$validate()}));(x(a.max)||a.ngMax)&&(l.$validators.max=function(t){return!d(t)||y(m)||n(t)<=m},a.$observe("max",function(t){m=p(t),l.$validate()}))}}function mi(t,e,n,r){(r.$$hasNativeValidators=b(e[0].validity))&&r.$parsers.push(function(t){var n=e.prop("validity")||{};return n.badInput&&!n.typeMismatch?i:t})}function vi(t,e,i,n,r){if(x(n)){if(!(t=t(n)).constant)throw Yr("constexpr",i,n);return t(e)}return r}function yi(t,e){return t="ngClass"+t,["$animate",function(i){function n(t,e){var i=[],n=0;t:for(;n<t.length;n++){for(var r=t[n],o=0;o<e.length;o++)if(r==e[o])continue t;i.push(r)}return i}function r(t){var e=[];return Hi(t)?(o(t,function(t){e=e.concat(r(t))}),e):$(t)?t.split(" "):b(t)?(o(t,function(t,i){t&&(e=e.concat(i.split(" ")))}),e):t}return{restrict:"AC",link:function(s,a,l){function h(t,e){var i=a.data("$classCounts")||ot(),n=[];return o(t,function(t){(0<e||i[t])&&(i[t]=(i[t]||0)+e,i[t]===+(0<e)&&n.push(t))}),a.data("$classCounts",i),n.join(" ")}function c(t){if(!0===e||s.$index%2===e){var o=r(t||[]);if(u){if(!I(t,u)){var c=r(u);d=n(o,c),o=n(c,o),d=h(d,1),o=h(o,-1);d&&d.length&&i.addClass(a,d),o&&o.length&&i.removeClass(a,o)}}else{var d=h(o,1);l.$addClass(d)}}u=N(t)}var u;s.$watch(l[t],c,!0),l.$observe("class",function(e){c(s.$eval(l[t]))}),"ngClass"!==t&&s.$watch("$index",function(i,n){var o=1&i;if(o!==(1&n)){var a=r(s.$eval(l[t]));o===e?(o=h(a,1),l.$addClass(o)):(o=h(a,-1),l.$removeClass(o))}})}}}]}function xi(t){function e(t,e){e&&!s[t]?(c.addClass(o,t),s[t]=!0):!e&&s[t]&&(c.removeClass(o,t),s[t]=!1)}function n(t,i){t=t?"-"+Q(t,"-"):"",e(Br+t,!0===i),e(Wr+t,!1===i)}var r=t.ctrl,o=t.$element,s={},a=t.set,l=t.unset,h=t.parentForm,c=t.$animate;s[Wr]=!(s[Br]=o.hasClass(Br)),r.$setValidity=function(t,o,s){o===i?(r.$pending||(r.$pending={}),a(r.$pending,t,s)):(r.$pending&&l(r.$pending,t,s),bi(r.$pending)&&(r.$pending=i)),A(o)?o?(l(r.$error,t,s),a(r.$$success,t,s)):(a(r.$error,t,s),l(r.$$success,t,s)):(l(r.$error,t,s),l(r.$$success,t,s)),r.$pending?(e(Vr,!0),r.$valid=r.$invalid=i,n("",null)):(e(Vr,!1),r.$valid=bi(r.$error),r.$invalid=!r.$valid,n("",r.$valid)),n(t,o=r.$pending&&r.$pending[t]?i:!r.$error[t]&&(!!r.$$success[t]||null)),h.$setValidity(t,o,r)}}function bi(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}var wi,$i,Si,ki,Ti=/^\/(.+)\/([a-z]*)$/,Ci=function(t){return $(t)?t.toLowerCase():t},Ei=Object.prototype.hasOwnProperty,Mi=function(t){return $(t)?t.toUpperCase():t},Ai=[].slice,Pi=[].splice,Li=[].push,Oi=Object.prototype.toString,Di=Object.getPrototypeOf,Ni=n("ng"),Ii=t.angular||(t.angular={}),zi=0;wi=e.documentMode,f.$inject=[],g.$inject=[];var Ri,Hi=Array.isArray,_i=/^\[object (Uint8(Clamped)?)|(Uint16)|(Uint32)|(Int8)|(Int16)|(Int32)|(Float(32)|(64))Array\]$/,ji=function(t){return $(t)?t.trim():t},Bi=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Wi=function(){if(!x(Wi.rules)){var t=e.querySelector("[ng-csp]")||e.querySelector("[data-ng-csp]");if(t){var i=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");Wi.rules={noUnsafeEval:!i||-1!==i.indexOf("no-unsafe-eval"),noInlineStyle:!i||-1!==i.indexOf("no-inline-style")}}else{t=Wi;try{new Function(""),i=!1}catch(t){i=!0}t.rules={noUnsafeEval:i,noInlineStyle:!1}}}return Wi.rules},Fi=function(){if(x(Fi.name_))return Fi.name_;var t,i,n,r,o=Xi.length;for(i=0;i<o;++i)if(n=Xi[i],t=e.querySelector("["+n.replace(":","\\:")+"jq]")){r=t.getAttribute(n+"jq");break}return Fi.name_=r},Xi=["ng-","data-ng-","ng:","x-ng-"],Vi=/[A-Z]/g,Yi=!1,qi=1,Gi=3,Ui={full:"1.4.5",major:1,minor:4,dot:5,codeName:"permanent-internship"};ht.expando="ng339";var Ki=ht.cache={},Zi=1;ht._data=function(t){return this.cache[t[this.expando]]||{}};var Ji=/([\:\-\_]+(.))/g,Qi=/^moz([A-Z])/,tn={mouseleave:"mouseout",mouseenter:"mouseover"},en=n("jqLite"),nn=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,rn=/<|&#?\w+;/,on=/<([\w:]+)/,sn=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,an={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};an.optgroup=an.option,an.tbody=an.tfoot=an.colgroup=an.caption=an.thead,an.th=an.td;var ln=ht.prototype={ready:function(i){function n(){r||(r=!0,i())}var r=!1;"complete"===e.readyState?setTimeout(n):(this.on("DOMContentLoaded",n),ht(t).on("load",n))},toString:function(){var t=[];return o(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return $i(0<=t?this[t]:this[this.length+t])},length:0,push:Li,sort:[].sort,splice:[].splice},hn={};o("multiple selected checked disabled readOnly required open".split(" "),function(t){hn[Ci(t)]=t});var cn={};o("input select option textarea button form details".split(" "),function(t){cn[t]=!0});var un={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};o({data:gt,removeData:pt,hasData:function(t){for(var e in Ki[t.ng339])return!0;return!1}},function(t,e){ht[e]=t}),o({data:gt,inheritedData:wt,scope:function(t){return $i.data(t,"$scope")||wt(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return $i.data(t,"$isolateScope")||$i.data(t,"$isolateScopeNoTemplate")},controller:bt,injector:function(t){return wt(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:mt,css:function(t,e,i){if(e=st(e),!x(i))return t.style[e];t.style[e]=i},attr:function(t,e,n){var r=t.nodeType;if(r!==Gi&&2!==r&&8!==r)if(r=Ci(e),hn[r]){if(!x(n))return t[e]||(t.attributes.getNamedItem(e)||f).specified?r:i;n?(t[e]=!0,t.setAttribute(e,r)):(t[e]=!1,t.removeAttribute(r))}else if(x(n))t.setAttribute(e,n);else if(t.getAttribute)return null===(t=t.getAttribute(e,2))?i:t},prop:function(t,e,i){if(!x(i))return t[e];t[e]=i},text:function(){function t(t,e){if(y(e)){var i=t.nodeType;return i===qi||i===Gi?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(y(e)){if(t.multiple&&"select"===L(t)){var i=[];return o(t.options,function(t){t.selected&&i.push(t.value||t.text)}),0===i.length?null:i}return t.value}t.value=e},html:function(t,e){if(y(e))return t.innerHTML;ut(t,!0),t.innerHTML=e},empty:$t},function(t,e){ht.prototype[e]=function(e,n){var r,o,s=this.length;if(t!==$t&&(2==t.length&&t!==mt&&t!==bt?e:n)===i){if(b(e)){for(r=0;r<s;r++)if(t===gt)t(this[r],e);else for(o in e)t(this[r],o,e[o]);return this}for(s=(r=t.$dv)===i?Math.min(s,1):s,o=0;o<s;o++){var a=t(this[o],e,n);r=r?r+a:a}return r}for(r=0;r<s;r++)t(this[r],e,n);return this}}),o({removeData:pt,on:function t(e,i,n,r){if(x(r))throw en("onargs");if(at(e)){r=(s=ft(e,!0)).events;var o=s.handle;o||(o=s.handle=function(t,e){var i=function(i,n){i.isDefaultPrevented=function(){return i.defaultPrevented};var r=e[n||i.type],o=r?r.length:0;if(o){if(y(i.immediatePropagationStopped)){var s=i.stopImmediatePropagation;i.stopImmediatePropagation=function(){i.immediatePropagationStopped=!0,i.stopPropagation&&i.stopPropagation(),s&&s.call(i)}}i.isImmediatePropagationStopped=function(){return!0===i.immediatePropagationStopped},1<o&&(r=N(r));for(var a=0;a<o;a++)i.isImmediatePropagationStopped()||r[a].call(t,i)}};return i.elem=t,i}(e,r));for(var s,a=(s=0<=i.indexOf(" ")?i.split(" "):[i]).length;a--;){var l=r[i=s[a]];l||(r[i]=[],"mouseenter"===i||"mouseleave"===i?t(e,tn[i],function(t){var e=t.relatedTarget;e&&(e===this||this.contains(e))||o(t,i)}):"$destroy"!==i&&e.addEventListener(i,o,!1),l=r[i]),l.push(n)}}},off:dt,one:function(t,e,i){(t=$i(t)).on(e,function n(){t.off(e,i),t.off(e,n)}),t.on(e,i)},replaceWith:function(t,e){var i,n=t.parentNode;ut(t),o(new ht(e),function(e){i?n.insertBefore(e,i.nextSibling):n.replaceChild(e,t),i=e})},children:function(t){var e=[];return o(t.childNodes,function(t){t.nodeType===qi&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){if((i=t.nodeType)===qi||11===i)for(var i=0,n=(e=new ht(e)).length;i<n;i++)t.appendChild(e[i])},prepend:function(t,e){if(t.nodeType===qi){var i=t.firstChild;o(new ht(e),function(e){t.insertBefore(e,i)})}},wrap:function(t,e){e=$i(e).eq(0).clone()[0];var i=t.parentNode;i&&i.replaceChild(e,t),e.appendChild(t)},remove:St,detach:function(t){St(t,!0)},after:function(t,e){for(var i=t,n=t.parentNode,r=0,o=(e=new ht(e)).length;r<o;r++){var s=e[r];n.insertBefore(s,i.nextSibling),i=s}},addClass:yt,removeClass:vt,toggleClass:function(t,e,i){e&&o(e.split(" "),function(e){var n=i;y(n)&&(n=!mt(t,e)),(n?yt:vt)(t,e)})},parent:function(t){return(t=t.parentNode)&&11!==t.nodeType?t:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:ct,triggerHandler:function(t,e,i){var n,r,s=e.type||e,a=ft(t);(a=(a=a&&a.events)&&a[s])&&(n={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:f,type:s,target:t},e.type&&(n=c(n,e)),e=N(a),r=i?[n].concat(i):[n],o(e,function(e){n.isImmediatePropagationStopped()||e.apply(t,r)}))}},function(t,e){ht.prototype[e]=function(e,i,n){for(var r,o=0,s=this.length;o<s;o++)y(r)?x(r=t(this[o],e,i,n))&&(r=$i(r)):xt(r,t(this[o],e,i,n));return x(r)?r:this},ht.prototype.bind=ht.prototype.on,ht.prototype.unbind=ht.prototype.off}),Et.prototype={put:function(t,e){this[Ct(t,this.nextUid)]=e},get:function(t){return this[Ct(t,this.nextUid)]},remove:function(t){var e=this[t=Ct(t,this.nextUid)];return delete this[t],e}};var dn=[function(){this.$get=[function(){return Et}]}],pn=/^[^\(]*\(\s*([^\)]*)\)/m,fn=/,/,gn=/^\s*(_?)(\S+?)\1\s*$/,mn=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,vn=n("$injector");Mt.$$annotate=function(t,e,i){var n,r;if("function"==typeof t){if(!(n=t.$inject)){if(n=[],t.length){if(e)throw $(i)&&i||(i=t.name||((r=(r=t).toString().replace(mn,"").match(pn))?"function("+(r[1]||"").replace(/[\s\r\n]+/," ")+")":"fn")),vn("strictdi",i);o((e=(e=t.toString().replace(mn,"")).match(pn))[1].split(fn),function(t){t.replace(gn,function(t,e,i){n.push(i)})})}t.$inject=n}}else Hi(t)?(et(t[e=t.length-1],"fn"),n=t.slice(0,e)):et(t,"fn",!0);return n};var yn=n("$animate"),xn=function(){this.$get=["$q","$$rAF",function(t,e){function i(){}return i.all=f,i.chain=f,i.prototype={end:f,cancel:f,resume:f,pause:f,complete:f,then:function(i,n){return t(function(t){e(function(){t()})}).then(i,n)}},i}]},bn=function(){var t=new Et,e=[];this.$get=["$$AnimateRunner","$rootScope",function(i,n){function r(i,r,s){var a=t.get(i);a||(t.put(i,a={}),e.push(i)),r=(i=function(t,e){var i=!1;return t&&o(t=$(t)?t.split(" "):Hi(t)?t:[],function(t){t&&(i=!0,a[t]=e)}),i})(r,!0),s=i(s,!1),!r&&!s||1<e.length||n.$$postDigest(function(){o(e,function(e){var i=t.get(e);if(i){var n=function(t){$(t)&&(t=t.split(" "));var e=ot();return o(t,function(t){t.length&&(e[t]=!0)}),e}(e.attr("class")),r="",s="";o(i,function(t,e){t!==!!n[e]&&(t?r+=(r.length?" ":"")+e:s+=(s.length?" ":"")+e)}),o(e,function(t){r&&yt(t,r),s&&vt(t,s)}),t.remove(e)}}),e.length=0})}return{enabled:f,on:f,off:f,pin:f,push:function(t,e,n,o){return o&&o(),(n=n||{}).from&&t.css(n.from),n.to&&t.css(n.to),(n.addClass||n.removeClass)&&r(t,n.addClass,n.removeClass),new i}}}]},wn=["$provide",function(t){var e=this;this.$$registeredAnimations=Object.create(null),this.register=function(i,n){if(i&&"."!==i.charAt(0))throw yn("notcsel",i);var r=i+"-animation";e.$$registeredAnimations[i.substr(1)]=r,t.factory(r,n)},this.classNameFilter=function(t){if(1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null)&&/(\s+|\/)ng-animate(\s+|\/)/.test(this.$$classNameFilter.toString()))throw yn("nongcls","ng-animate");return this.$$classNameFilter},this.$get=["$$animateQueue",function(t){function e(t,e,i){if(i){var n;t:{for(n=0;n<i.length;n++){var r=i[n];if(1===r.nodeType){n=r;break t}}n=void 0}!n||n.parentNode||n.previousElementSibling||(i=null)}i?i.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel:function(t){t.end&&t.end()},enter:function(i,n,r,o){return n=n&&$i(n),r=r&&$i(r),e(i,n=n||r.parent(),r),t.push(i,"enter",Lt(o))},move:function(i,n,r,o){return n=n&&$i(n),r=r&&$i(r),e(i,n=n||r.parent(),r),t.push(i,"move",Lt(o))},leave:function(e,i){return t.push(e,"leave",Lt(i),function(){e.remove()})},addClass:function(e,i,n){return(n=Lt(n)).addClass=Pt(n.addclass,i),t.push(e,"addClass",n)},removeClass:function(e,i,n){return(n=Lt(n)).removeClass=Pt(n.removeClass,i),t.push(e,"removeClass",n)},setClass:function(e,i,n,r){return(r=Lt(r)).addClass=Pt(r.addClass,i),r.removeClass=Pt(r.removeClass,n),t.push(e,"setClass",r)},animate:function(e,i,n,r,o){return(o=Lt(o)).from=o.from?c(o.from,i):i,o.to=o.to?c(o.to,n):n,o.tempClasses=Pt(o.tempClasses,r||"ng-inline-animate"),t.push(e,"animate",o)}}}]}],$n=function(){this.$get=["$$rAF","$q",function(t,e){var i=function(){};return i.prototype={done:function(t){this.defer&&this.defer[!0===t?"reject":"resolve"]()},end:function(){this.done()},cancel:function(){this.done(!0)},getPromise:function(){return this.defer||(this.defer=e.defer()),this.defer.promise},then:function(t,e){return this.getPromise().then(t,e)},catch:function(t){return this.getPromise().catch(t)},finally:function(t){return this.getPromise().finally(t)}},function(e,n){function r(){return t(function(){n.addClass&&(e.addClass(n.addClass),n.addClass=null),n.removeClass&&(e.removeClass(n.removeClass),n.removeClass=null),n.to&&(e.css(n.to),n.to=null),o||s.done(),o=!0}),s}n.from&&(e.css(n.from),n.from=null);var o,s=new i;return{start:r,end:r}}}]},Sn=n("$compile");zt.$inject=["$provide","$$sanitizeUriProvider"];var kn=/^((?:x|data)[\:\-_])/i,Tn=n("$controller"),Cn=/^(\S+)(\s+as\s+(\w+))?$/,En=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof $i&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},Mn="application/json",An={"Content-Type":Mn+";charset=utf-8"},Pn=/^\[|^\{(?!\{)/,Ln={"[":/]$/,"{":/}$/},On=/^\)\]\}',?\n/,Dn=n("$http"),Nn=function(t){return function(){throw Dn("legacy",t)}},In=Ii.$interpolateMinErr=n("$interpolate");In.throwNoconcat=function(t){throw In("noconcat",t)},In.interr=function(t,e){return In("interr",t,e.toString())};var zn=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,Rn={http:80,https:443,ftp:21},Hn=n("$location"),_n={$$html5:!1,$$replace:!1,absUrl:ce("$$absUrl"),url:function(t){if(y(t))return this.$$url;var e=zn.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:ce("$$protocol"),host:ce("$$host"),port:ce("$$port"),path:ue("$$path",function(t){return"/"==(t=null!==t?t.toString():"").charAt(0)?t:"/"+t}),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if($(t)||S(t))t=t.toString(),this.$$search=V(t);else{if(!b(t))throw Hn("isrcharg");o(t=D(t,{}),function(e,i){null==e&&delete t[i]}),this.$$search=t}break;default:y(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:ue("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};o([he,le,ae],function(t){t.prototype=Object.create(_n),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==ae||!this.$$html5)throw Hn("nostate");return this.$$state=y(e)?null:e,this}});var jn=n("$parse"),Bn=Function.prototype.call,Wn=Function.prototype.apply,Fn=Function.prototype.bind,Xn=ot();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(t){Xn[t]=!0});var Vn={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Yn=function(t){this.options=t};Yn.prototype={constructor:Yn,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;)if('"'===(t=this.text.charAt(this.index))||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(t))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var e=t+this.peek(),i=e+this.peek(2),n=Xn[e],r=Xn[i];Xn[t]||n||r?(t=r?i:n?e:t,this.tokens.push({index:this.index,text:t,operator:!0}),this.index+=t.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(t,e){return-1!==e.indexOf(t)},peek:function(t){return t=t||1,this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(t){return"0"<=t&&"9">=t&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t||" "===t},isIdent:function(t){return"a"<=t&&"z">=t||"A"<=t&&"Z">=t||"_"===t||"$"===t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,i){throw i=i||this.index,e=x(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,i)+"]":" "+i,jn("lexerr",t,e,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var i=Ci(this.text.charAt(this.index));if("."==i||this.isNumber(i))t+=i;else{var n=this.peek();if("e"==i&&this.isExpOperator(n))t+=i;else if(this.isExpOperator(i)&&n&&this.isNumber(n)&&"e"==t.charAt(t.length-1))t+=i;else{if(!this.isExpOperator(i)||n&&this.isNumber(n)||"e"!=t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){for(var t=this.index;this.index<this.text.length;){var e=this.text.charAt(this.index);if(!this.isIdent(e)&&!this.isNumber(e))break;this.index++}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var i="",n=t,r=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);n=n+o;if(r)"u"===o?((r=this.text.substring(this.index+1,this.index+5)).match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+r+"]"),this.index+=4,i+=String.fromCharCode(parseInt(r,16))):i+=Vn[o]||o,r=!1;else if("\\"===o)r=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:n,constant:!0,value:i});i+=o}this.index++}this.throwError("Unterminated quote",e)}};var qn=function(t,e){this.lexer=t,this.options=e};qn.Program="Program",qn.ExpressionStatement="ExpressionStatement",qn.AssignmentExpression="AssignmentExpression",qn.ConditionalExpression="ConditionalExpression",qn.LogicalExpression="LogicalExpression",qn.BinaryExpression="BinaryExpression",qn.UnaryExpression="UnaryExpression",qn.CallExpression="CallExpression",qn.MemberExpression="MemberExpression",qn.Identifier="Identifier",qn.Literal="Literal",qn.ArrayExpression="ArrayExpression",qn.Property="Property",qn.ObjectExpression="ObjectExpression",qn.ThisExpression="ThisExpression",qn.NGValueParameter="NGValueParameter",qn.prototype={ast:function(t){return this.text=t,this.tokens=this.lexer.lex(t),t=this.program(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var t=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:qn.Program,body:t}},expressionStatement:function(){return{type:qn.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t=this.expression();this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return this.expect("=")&&(t={type:qn.AssignmentExpression,left:t,right:this.assignment(),operator:"="}),t},ternary:function(){var t,e,i=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:qn.ConditionalExpression,test:i,alternate:t,consequent:e}):i},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:qn.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:qn.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:qn.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:qn.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:qn.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:qn.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:qn.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.constants.hasOwnProperty(this.peek().text)?t=D(this.constants[this.consume().text]):this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:qn.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:qn.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:qn.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){t=[t];for(var e={type:qn.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return e},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do{t.push(this.expression())}while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:qn.Identifier,name:t.text}},constant:function(){return{type:qn.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:qn.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:qn.Property,kind:"init"},this.peek().constant?t.key=this.constant():this.peek().identifier?t.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),t.value=this.expression(),e.push(t)}while(this.expect(","));return this.consume("}"),{type:qn.ObjectExpression,properties:e}},throwError:function(t,e){throw jn("syntax",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw jn("ueoe",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw jn("ueoe",this.text);return this.tokens[0]},peek:function(t,e,i,n){return this.peekAhead(0,t,e,i,n)},peekAhead:function(t,e,i,n,r){if(this.tokens.length>t){var o=(t=this.tokens[t]).text;if(o===e||o===i||o===n||o===r||!(e||i||n||r))return t}return!1},expect:function(t,e,i,n){return!!(t=this.peek(t,e,i,n))&&(this.tokens.shift(),t)},constants:{true:{type:qn.Literal,value:!0},false:{type:qn.Literal,value:!1},null:{type:qn.Literal,value:null},undefined:{type:qn.Literal,value:i},this:{type:qn.ThisExpression}}},ke.prototype={compile:function(t,e){var n=this,r=this.astBuilder.ast(t);this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},xe(r,n.$filter);var s,a="";return this.stage="assign",(s=$e(r))&&(this.state.computing="assign",a=this.nextId(),this.recurse(s,a),a="fn.assign="+this.generateFunction("assign","s,v,l")),s=be(r.body),n.stage="inputs",o(s,function(t,e){var i="fn"+e;n.state[i]={vars:[],body:[],own:{}},n.state.computing=i;var r=n.nextId();n.recurse(t,r),n.return_(r),n.state.inputs.push(i),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(r),a='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",a=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","ifDefined","plus","text",a)(this.$filter,fe,ge,me,ve,ye,t),this.state=this.stage=i,a.literal=Se(r),a.constant=r.constant,a},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,i=this;return o(e,function(e){t.push("var "+e+"="+i.generateFunction(e,"s"))}),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return o(this.state.filters,function(i,n){t.push(i+"=$filter("+e.escape(n)+")")}),t.length?"var "+t.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(t,e,n,r,s,a){var l,h,c,u,d=this;if(r=r||f,!a&&x(t.watchId))e=e||this.nextId(),this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,n,r,s,!0));else switch(t.type){case qn.Program:o(t.body,function(e,n){d.recurse(e.expression,i,i,function(t){h=t}),n!==t.body.length-1?d.current().body.push(h,";"):d.return_(h)});break;case qn.Literal:u=this.escape(t.value),this.assign(e,u),r(u);break;case qn.UnaryExpression:this.recurse(t.argument,i,i,function(t){h=t}),u=t.operator+"("+this.ifDefined(h,0)+")",this.assign(e,u),r(u);break;case qn.BinaryExpression:this.recurse(t.left,i,i,function(t){l=t}),this.recurse(t.right,i,i,function(t){h=t}),u="+"===t.operator?this.plus(l,h):"-"===t.operator?this.ifDefined(l,0)+t.operator+this.ifDefined(h,0):"("+l+")"+t.operator+"("+h+")",this.assign(e,u),r(u);break;case qn.LogicalExpression:e=e||this.nextId(),d.recurse(t.left,e),d.if_("&&"===t.operator?e:d.not(e),d.lazyRecurse(t.right,e)),r(e);break;case qn.ConditionalExpression:e=e||this.nextId(),d.recurse(t.test,e),d.if_(e,d.lazyRecurse(t.alternate,e),d.lazyRecurse(t.consequent,e)),r(e);break;case qn.Identifier:e=e||this.nextId(),n&&(n.context="inputs"===d.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),n.computed=!1,n.name=t.name),fe(t.name),d.if_("inputs"===d.stage||d.not(d.getHasOwnProperty("l",t.name)),function(){d.if_("inputs"===d.stage||"s",function(){s&&1!==s&&d.if_(d.not(d.nonComputedMember("s",t.name)),d.lazyAssign(d.nonComputedMember("s",t.name),"{}")),d.assign(e,d.nonComputedMember("s",t.name))})},e&&d.lazyAssign(e,d.nonComputedMember("l",t.name))),(d.state.expensiveChecks||Ce(t.name))&&d.addEnsureSafeObject(e),r(e);break;case qn.MemberExpression:l=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),d.recurse(t.object,l,i,function(){d.if_(d.notNull(l),function(){t.computed?(h=d.nextId(),d.recurse(t.property,h),d.addEnsureSafeMemberName(h),s&&1!==s&&d.if_(d.not(d.computedMember(l,h)),d.lazyAssign(d.computedMember(l,h),"{}")),u=d.ensureSafeObject(d.computedMember(l,h)),d.assign(e,u),n&&(n.computed=!0,n.name=h)):(fe(t.property.name),s&&1!==s&&d.if_(d.not(d.nonComputedMember(l,t.property.name)),d.lazyAssign(d.nonComputedMember(l,t.property.name),"{}")),u=d.nonComputedMember(l,t.property.name),(d.state.expensiveChecks||Ce(t.property.name))&&(u=d.ensureSafeObject(u)),d.assign(e,u),n&&(n.computed=!1,n.name=t.property.name))},function(){d.assign(e,"undefined")}),r(e)},!!s);break;case qn.CallExpression:e=e||this.nextId(),t.filter?(h=d.filter(t.callee.name),c=[],o(t.arguments,function(t){var e=d.nextId();d.recurse(t,e),c.push(e)}),u=h+"("+c.join(",")+")",d.assign(e,u),r(e)):(h=d.nextId(),l={},c=[],d.recurse(t.callee,h,l,function(){d.if_(d.notNull(h),function(){d.addEnsureSafeFunction(h),o(t.arguments,function(t){d.recurse(t,d.nextId(),i,function(t){c.push(d.ensureSafeObject(t))})}),l.name?(d.state.expensiveChecks||d.addEnsureSafeObject(l.context),u=d.member(l.context,l.name,l.computed)+"("+c.join(",")+")"):u=h+"("+c.join(",")+")",u=d.ensureSafeObject(u),d.assign(e,u)},function(){d.assign(e,"undefined")}),r(e)}));break;case qn.AssignmentExpression:if(h=this.nextId(),l={},!we(t.left))throw jn("lval");this.recurse(t.left,i,l,function(){d.if_(d.notNull(l.context),function(){d.recurse(t.right,h),d.addEnsureSafeObject(d.member(l.context,l.name,l.computed)),u=d.member(l.context,l.name,l.computed)+t.operator+h,d.assign(e,u),r(e||u)})},1);break;case qn.ArrayExpression:c=[],o(t.elements,function(t){d.recurse(t,d.nextId(),i,function(t){c.push(t)})}),u="["+c.join(",")+"]",this.assign(e,u),r(u);break;case qn.ObjectExpression:c=[],o(t.properties,function(t){d.recurse(t.value,d.nextId(),i,function(e){c.push(d.escape(t.key.type===qn.Identifier?t.key.name:""+t.key.value)+":"+e)})}),u="{"+c.join(",")+"}",this.assign(e,u),r(u);break;case qn.ThisExpression:this.assign(e,"s"),r("s");break;case qn.NGValueParameter:this.assign(e,"v"),r("v")}},getHasOwnProperty:function(t,e){var i=t+"."+e,n=this.current().own;return n.hasOwnProperty(i)||(n[i]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),n[i]},assign:function(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,i){if(!0===t)e();else{var n=this.current().body;n.push("if(",t,"){"),e(),n.push("}"),i&&(n.push("else{"),i(),n.push("}"))}},not:function(t){return"!("+t+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return t+"."+e},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,i){return i?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},lazyRecurse:function(t,e,i,n,r,o){var s=this;return function(){s.recurse(t,e,i,n,r,o)}},lazyAssign:function(t,e){var i=this;return function(){i.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if($(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(S(t))return t.toString();if(!0===t)return"true";if(!1===t)return"false";if(null===t)return"null";if(void 0===t)return"undefined";throw jn("esc")},nextId:function(t,e){var i="v"+this.state.nextId++;return t||this.current().vars.push(i+(e?"="+e:"")),i},current:function(){return this.state[this.state.computing]}},Te.prototype={compile:function(t,e){var i,n,r,s=this,a=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,xe(a,s.$filter),(i=$e(a))&&(n=this.recurse(i)),(i=be(a.body))&&(r=[],o(i,function(t,e){var i=s.recurse(t);t.input=i,r.push(i),t.watchId=e}));var l=[];return o(a.body,function(t){l.push(s.recurse(t.expression))}),i=0===a.body.length?function(){}:1===a.body.length?l[0]:function(t,e){var i;return o(l,function(n){i=n(t,e)}),i},n&&(i.assign=function(t,e,i){return n(t,i,e)}),r&&(i.inputs=r),i.literal=Se(a),i.constant=a.constant,i},recurse:function(t,e,n){var r,s,a,l=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case qn.Literal:return this.value(t.value,e);case qn.UnaryExpression:return s=this.recurse(t.argument),this["unary"+t.operator](s,e);case qn.BinaryExpression:case qn.LogicalExpression:return r=this.recurse(t.left),s=this.recurse(t.right),this["binary"+t.operator](r,s,e);case qn.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case qn.Identifier:return fe(t.name,l.expression),l.identifier(t.name,l.expensiveChecks||Ce(t.name),e,n,l.expression);case qn.MemberExpression:return r=this.recurse(t.object,!1,!!n),t.computed||(fe(t.property.name,l.expression),s=t.property.name),t.computed&&(s=this.recurse(t.property)),t.computed?this.computedMember(r,s,e,n,l.expression):this.nonComputedMember(r,s,l.expensiveChecks,e,n,l.expression);case qn.CallExpression:return a=[],o(t.arguments,function(t){a.push(l.recurse(t))}),t.filter&&(s=this.$filter(t.callee.name)),t.filter||(s=this.recurse(t.callee,!0)),t.filter?function(t,n,r,o){for(var l=[],h=0;h<a.length;++h)l.push(a[h](t,n,r,o));return t=s.apply(i,l,o),e?{context:i,name:i,value:t}:t}:function(t,i,n,r){var o,h=s(t,i,n,r);if(null!=h.value){ge(h.context,l.expression),me(h.value,l.expression),o=[];for(var c=0;c<a.length;++c)o.push(ge(a[c](t,i,n,r),l.expression));o=ge(h.value.apply(h.context,o),l.expression)}return e?{value:o}:o};case qn.AssignmentExpression:return r=this.recurse(t.left,!0,1),s=this.recurse(t.right),function(t,i,n,o){var a=r(t,i,n,o);return t=s(t,i,n,o),ge(a.value,l.expression),a.context[a.name]=t,e?{value:t}:t};case qn.ArrayExpression:return a=[],o(t.elements,function(t){a.push(l.recurse(t))}),function(t,i,n,r){for(var o=[],s=0;s<a.length;++s)o.push(a[s](t,i,n,r));return e?{value:o}:o};case qn.ObjectExpression:return a=[],o(t.properties,function(t){a.push({key:t.key.type===qn.Identifier?t.key.name:""+t.key.value,value:l.recurse(t.value)})}),function(t,i,n,r){for(var o={},s=0;s<a.length;++s)o[a[s].key]=a[s].value(t,i,n,r);return e?{value:o}:o};case qn.ThisExpression:return function(t){return e?{value:t}:t};case qn.NGValueParameter:return function(t,i,n,r){return e?{value:n}:n}}},"unary+":function(t,e){return function(i,n,r,o){return i=x(i=t(i,n,r,o))?+i:0,e?{value:i}:i}},"unary-":function(t,e){return function(i,n,r,o){return i=x(i=t(i,n,r,o))?-i:0,e?{value:i}:i}},"unary!":function(t,e){return function(i,n,r,o){return i=!t(i,n,r,o),e?{value:i}:i}},"binary+":function(t,e,i){return function(n,r,o,s){var a=t(n,r,o,s);return a=ye(a,n=e(n,r,o,s)),i?{value:a}:a}},"binary-":function(t,e,i){return function(n,r,o,s){var a=t(n,r,o,s);return n=e(n,r,o,s),a=(x(a)?a:0)-(x(n)?n:0),i?{value:a}:a}},"binary*":function(t,e,i){return function(n,r,o,s){return n=t(n,r,o,s)*e(n,r,o,s),i?{value:n}:n}},"binary/":function(t,e,i){return function(n,r,o,s){return n=t(n,r,o,s)/e(n,r,o,s),i?{value:n}:n}},"binary%":function(t,e,i){return function(n,r,o,s){return n=t(n,r,o,s)%e(n,r,o,s),i?{value:n}:n}},"binary===":function(t,e,i){return function(n,r,o,s){return n=t(n,r,o,s)===e(n,r,o,s),i?{value:n}:n}},"binary!==":function(t,e,i){return function(n,r,o,s){return n=t(n,r,o,s)!==e(n,r,o,s),i?{value:n}:n}},"binary==":function(t,e,i){return function(n,r,o,s){return n=t(n,r,o,s)==e(n,r,o,s),i?{value:n}:n}},"binary!=":function(t,e,i){return function(n,r,o,s){return n=t(n,r,o,s)!=e(n,r,o,s),i?{value:n}:n}},"binary<":function(t,e,i){return function(n,r,o,s){return n=t(n,r,o,s)<e(n,r,o,s),i?{value:n}:n}},"binary>":function(t,e,i){return function(n,r,o,s){return n=t(n,r,o,s)>e(n,r,o,s),i?{value:n}:n}},"binary<=":function(t,e,i){return function(n,r,o,s){return n=t(n,r,o,s)<=e(n,r,o,s),i?{value:n}:n}},"binary>=":function(t,e,i){return function(n,r,o,s){return n=t(n,r,o,s)>=e(n,r,o,s),i?{value:n}:n}},"binary&&":function(t,e,i){return function(n,r,o,s){return n=t(n,r,o,s)&&e(n,r,o,s),i?{value:n}:n}},"binary||":function(t,e,i){return function(n,r,o,s){return n=t(n,r,o,s)||e(n,r,o,s),i?{value:n}:n}},"ternary?:":function(t,e,i,n){return function(r,o,s,a){return r=t(r,o,s,a)?e(r,o,s,a):i(r,o,s,a),n?{value:r}:r}},value:function(t,e){return function(){return e?{context:i,name:i,value:t}:t}},identifier:function(t,e,n,r,o){return function(s,a,l,h){return s=a&&t in a?a:s,r&&1!==r&&s&&!s[t]&&(s[t]={}),a=s?s[t]:i,e&&ge(a,o),n?{context:s,name:t,value:a}:a}},computedMember:function(t,e,i,n,r){return function(o,s,a,l){var h,c,u=t(o,s,a,l);return null!=u&&(fe(h=e(o,s,a,l),r),n&&1!==n&&u&&!u[h]&&(u[h]={}),ge(c=u[h],r)),i?{context:u,name:h,value:c}:c}},nonComputedMember:function(t,e,n,r,o,s){return function(a,l,h,c){return a=t(a,l,h,c),o&&1!==o&&a&&!a[e]&&(a[e]={}),l=null!=a?a[e]:i,(n||Ce(e))&&ge(l,s),r?{context:a,name:e,value:l}:l}},inputs:function(t,e){return function(i,n,r,o){return o?o[e]:t(i,n,r)}}};var Gn=function(t,e,i){this.lexer=t,this.$filter=e,this.options=i,this.ast=new qn(this.lexer),this.astCompiler=i.csp?new Te(this.ast,e):new ke(this.ast,e)};Gn.prototype={constructor:Gn,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}},ot(),ot();var Un=Object.prototype.valueOf,Kn=n("$sce"),Zn={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Jn=(Sn=n("$compile"),e.createElement("a")),Qn=We(t.location.href);Ve.$inject=["$document"],qe.$inject=["$provide"],Ze.$inject=["$locale"],Je.$inject=["$locale"];var tr=".",er={yyyy:ei("FullYear",4),yy:ei("FullYear",2,0,!0),y:ei("FullYear",1),MMMM:ii("Month"),MMM:ii("Month",!0),MM:ei("Month",2,1),M:ei("Month",1,1),dd:ei("Date",2),d:ei("Date",1),HH:ei("Hours",2),H:ei("Hours",1),hh:ei("Hours",2,-12),h:ei("Hours",1,-12),mm:ei("Minutes",2),m:ei("Minutes",1),ss:ei("Seconds",2),s:ei("Seconds",1),sss:ei("Milliseconds",3),EEEE:ii("Day"),EEE:ii("Day",!0),a:function(t,e){return 12>t.getHours()?e.AMPMS[0]:e.AMPMS[1]},Z:function(t,e,i){return(0<=(t=-1*i)?"+":"")+(ti(Math[0<t?"floor":"ceil"](t/60),2)+ti(Math.abs(t%60),2))},ww:ri(2),w:ri(1),G:oi,GG:oi,GGG:oi,GGGG:function(t,e){return 0>=t.getFullYear()?e.ERANAMES[0]:e.ERANAMES[1]}},ir=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,nr=/^\-?\d+$/;si.$inject=["$locale"];var rr=m(Ci),or=m(Mi);hi.$inject=["$parse"];var sr=m({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref)return function(t,e){if("a"===e[0].nodeName.toLowerCase()){var i="[object SVGAnimatedString]"===Oi.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(i)||t.preventDefault()})}}}}),ar={};o(hn,function(t,e){function i(t,i,r){t.$watch(r[n],function(t){r.$set(e,!!t)})}if("multiple"!=t){var n=Rt("ng-"+e),r=i;"checked"===t&&(r=function(t,e,r){r.ngModel!==r[n]&&i(t,0,r)}),ar[n]=function(){return{restrict:"A",priority:100,link:r}}}}),o(un,function(t,e){ar[e]=function(){return{priority:100,link:function(t,i,n){"ngPattern"===e&&"/"==n.ngPattern.charAt(0)&&(i=n.ngPattern.match(Ti))?n.$set("ngPattern",new RegExp(i[1],i[2])):t.$watch(n[e],function(t){n.$set(e,t)})}}}}),o(["src","srcset","href"],function(t){var e=Rt("ng-"+t);ar[e]=function(){return{priority:99,link:function(i,n,r){var o=t,s=t;"href"===t&&"[object SVGAnimatedString]"===Oi.call(n.prop("href"))&&(s="xlinkHref",r.$attr[s]="xlink:href",o=null),r.$observe(e,function(e){e?(r.$set(s,e),wi&&o&&n.prop(o,r[s])):"href"===t&&r.$set(s,null)})}}}});var lr={$addControl:f,$$renameControl:function(t,e){t.$name=e},$removeControl:f,$setValidity:f,$setDirty:f,$setPristine:f,$setSubmitted:f};ui.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var hr=function(t){return["$timeout","$parse",function(e,n){function r(t){return""===t?n('this[""]').assign:n(t).assign||f}return{name:"form",restrict:t?"EAC":"E",controller:ui,compile:function(n,o){n.addClass(Fr).addClass(Br);var s=o.name?"name":!(!t||!o.ngForm)&&"ngForm";return{pre:function(t,n,o,a){if(!("action"in o)){var l=function(e){t.$apply(function(){a.$commitViewValue(),a.$setSubmitted()}),e.preventDefault()};n[0].addEventListener("submit",l,!1),n.on("$destroy",function(){e(function(){n[0].removeEventListener("submit",l,!1)},0,!1)})}var h=a.$$parentForm,u=s?r(a.$name):f;s&&(u(t,a),o.$observe(s,function(e){a.$name!==e&&(u(t,i),h.$$renameControl(a,e),(u=r(a.$name))(t,a))})),n.on("$destroy",function(){h.$removeControl(a),u(t,i),c(a,lr)})}}}}}]},cr=hr(),ur=hr(!0),dr=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,pr=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,fr=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,gr=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,mr=/^(\d{4})-(\d{2})-(\d{2})$/,vr=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,yr=/^(\d{4})-W(\d\d)$/,xr=/^(\d{4})-(\d\d)$/,br=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,wr={text:function(t,e,i,n,r,o){pi(0,e,i,n,r,o),di(n)},date:gi("date",mr,fi(mr,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":gi("datetimelocal",vr,fi(vr,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:gi("time",br,fi(br,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:gi("week",yr,function(t,e){if(k(t))return t;if($(t)){yr.lastIndex=0;var i=yr.exec(t);if(i){var n=+i[1],r=+i[2],o=i=0,s=0,a=0,l=ni(n);r=7*(r-1);return e&&(i=e.getHours(),o=e.getMinutes(),s=e.getSeconds(),a=e.getMilliseconds()),new Date(n,0,l.getDate()+r,i,o,s,a)}}return NaN},"yyyy-Www"),month:gi("month",xr,fi(xr,["yyyy","MM"]),"yyyy-MM"),number:function(t,e,n,r,o,s){var a,l;(mi(0,e,0,r),pi(0,e,n,r,o,s),r.$$parserName="number",r.$parsers.push(function(t){return r.$isEmpty(t)?null:gr.test(t)?parseFloat(t):i}),r.$formatters.push(function(t){if(!r.$isEmpty(t)){if(!S(t))throw Yr("numfmt",t);t=t.toString()}return t}),x(n.min)||n.ngMin)&&(r.$validators.min=function(t){return r.$isEmpty(t)||y(a)||t>=a},n.$observe("min",function(t){x(t)&&!S(t)&&(t=parseFloat(t,10)),a=S(t)&&!isNaN(t)?t:i,r.$validate()}));(x(n.max)||n.ngMax)&&(r.$validators.max=function(t){return r.$isEmpty(t)||y(l)||t<=l},n.$observe("max",function(t){x(t)&&!S(t)&&(t=parseFloat(t,10)),l=S(t)&&!isNaN(t)?t:i,r.$validate()}))},url:function(t,e,i,n,r,o){pi(0,e,i,n,r,o),di(n),n.$$parserName="url",n.$validators.url=function(t,e){var i=t||e;return n.$isEmpty(i)||pr.test(i)}},email:function(t,e,i,n,r,o){pi(0,e,i,n,r,o),di(n),n.$$parserName="email",n.$validators.email=function(t,e){var i=t||e;return n.$isEmpty(i)||fr.test(i)}},radio:function(t,e,i,n){y(i.name)&&e.attr("name",++zi),e.on("click",function(t){e[0].checked&&n.$setViewValue(i.value,t&&t.type)}),n.$render=function(){e[0].checked=i.value==n.$viewValue},i.$observe("value",n.$render)},checkbox:function(t,e,i,n,r,o,s,a){var l=vi(a,t,"ngTrueValue",i.ngTrueValue,!0),h=vi(a,t,"ngFalseValue",i.ngFalseValue,!1);e.on("click",function(t){n.$setViewValue(e[0].checked,t&&t.type)}),n.$render=function(){e[0].checked=n.$viewValue},n.$isEmpty=function(t){return!1===t},n.$formatters.push(function(t){return I(t,l)}),n.$parsers.push(function(t){return t?l:h})},hidden:f,button:f,submit:f,reset:f,file:f},$r=["$browser","$sniffer","$filter","$parse",function(t,e,i,n){return{restrict:"E",require:["?ngModel"],link:{pre:function(r,o,s,a){a[0]&&(wr[Ci(s.type)]||wr.text)(r,o,s,a[0],e,t,i,n)}}}}],Sr=/^(true|false|\d+)$/,kr=function(){return{restrict:"A",priority:100,compile:function(t,e){return Sr.test(e.ngValue)?function(t,e,i){i.$set("value",t.$eval(i.ngValue))}:function(t,e,i){t.$watch(i.ngValue,function(t){i.$set("value",t)})}}}},Tr=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,r){t.$$addBindingInfo(n,r.ngBind),n=n[0],e.$watch(r.ngBind,function(t){n.textContent=t===i?"":t})}}}}],Cr=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,o){n=t(r.attr(o.$attr.ngBindTemplate)),e.$$addBindingInfo(r,n.expressions),r=r[0],o.$observe("ngBindTemplate",function(t){r.textContent=t===i?"":t})}}}}],Er=["$sce","$parse","$compile",function(t,e,i){return{restrict:"A",compile:function(n,r){var o=e(r.ngBindHtml),s=e(r.ngBindHtml,function(t){return(t||"").toString()});return i.$$addBindingClass(n),function(e,n,r){i.$$addBindingInfo(n,r.ngBindHtml),e.$watch(s,function(){n.html(t.getTrustedHtml(o(e))||"")})}}}}],Mr=m({restrict:"A",require:"ngModel",link:function(t,e,i,n){n.$viewChangeListeners.push(function(){t.$eval(i.ngChange)})}}),Ar=yi("",!0),Pr=yi("Odd",0),Lr=yi("Even",1),Or=ci({compile:function(t,e){e.$set("ngCloak",i),t.removeClass("ng-cloak")}}),Dr=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Nr={},Ir={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=Rt("ng-"+t);Nr[e]=["$parse","$rootScope",function(i,n){return{restrict:"A",compile:function(r,o){var s=i(o[e],null,!0);return function(e,i){i.on(t,function(i){var r=function(){s(e,{$event:i})};Ir[t]&&n.$$phase?e.$evalAsync(r):e.$apply(r)})}}}}]});var zr=["$animate",function(t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(i,n,r,o,s){var a,l,h;i.$watch(r.ngIf,function(i){i?l||s(function(i,o){l=o,i[i.length++]=e.createComment(" end ngIf: "+r.ngIf+" "),a={clone:i},t.enter(i,n.parent(),n)}):(h&&(h.remove(),h=null),l&&(l.$destroy(),l=null),a&&(h=rt(a.clone),t.leave(h).then(function(){h=null}),a=null))})}}}],Rr=["$templateRequest","$anchorScroll","$animate",function(t,e,i){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Ii.noop,compile:function(n,r){var o=r.ngInclude||r.src,s=r.onload||"",a=r.autoscroll;return function(n,r,l,h,c){var u,d,p,f=0,g=function(){d&&(d.remove(),d=null),u&&(u.$destroy(),u=null),p&&(i.leave(p).then(function(){d=null}),d=p,p=null)};n.$watch(o,function(o){var l=function(){!x(a)||a&&!n.$eval(a)||e()},d=++f;o?(t(o,!0).then(function(t){if(d===f){var e=n.$new();h.template=t,t=c(e,function(t){g(),i.enter(t,null,r).then(l)}),p=t,(u=e).$emit("$includeContentLoaded",o),n.$eval(s)}},function(){d===f&&(g(),n.$emit("$includeContentError",o))}),n.$emit("$includeContentRequested",o)):(g(),h.template=null)})}}}}],Hr=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(i,n,r,o){/SVG/.test(n[0].toString())?(n.empty(),t(lt(o.template,e).childNodes)(i,function(t){n.append(t)},{futureParentElement:n})):(n.html(o.template),t(n.contents())(i))}}}],_r=ci({priority:450,compile:function(){return{pre:function(t,e,i){t.$eval(i.ngInit)}}}}),jr=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,r){var s=e.attr(n.$attr.ngList)||", ",a="false"!==n.ngTrim,l=a?ji(s):s;r.$parsers.push(function(t){if(!y(t)){var e=[];return t&&o(t.split(l),function(t){t&&e.push(a?ji(t):t)}),e}}),r.$formatters.push(function(t){return Hi(t)?t.join(s):i}),r.$isEmpty=function(t){return!t||!t.length}}}},Br="ng-valid",Wr="ng-invalid",Fr="ng-pristine",Xr="ng-dirty",Vr="ng-pending",Yr=n("ngModel"),qr=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,n,r,s,a,l,h,c,u){this.$modelValue=this.$viewValue=Number.NaN,this.$$rawModelValue=i,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=i,this.$name=u(n.name||"",!1)(t);var d,p=s(n.ngModel),g=p.assign,m=p,v=g,b=null,w=this;this.$$setOptions=function(t){if((w.$options=t)&&t.getterSetter){var e=s(n.ngModel+"()"),i=s(n.ngModel+"($$$p)");m=function(t){var i=p(t);return T(i)&&(i=e(t)),i},v=function(t,e){T(p(t))?i(t,{$$$p:w.$modelValue}):g(t,w.$modelValue)}}else if(!p.assign)throw Yr("nonassign",n.ngModel,F(r))},this.$render=f,this.$isEmpty=function(t){return y(t)||""===t||null===t||t!=t};var $=r.inheritedData("$formController")||lr,k=0;xi({ctrl:this,$element:r,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},parentForm:$,$animate:a}),this.$setPristine=function(){w.$dirty=!1,w.$pristine=!0,a.removeClass(r,Xr),a.addClass(r,Fr)},this.$setDirty=function(){w.$dirty=!0,w.$pristine=!1,a.removeClass(r,Fr),a.addClass(r,Xr),$.$setDirty()},this.$setUntouched=function(){w.$touched=!1,w.$untouched=!0,a.setClass(r,"ng-untouched","ng-touched")},this.$setTouched=function(){w.$touched=!0,w.$untouched=!1,a.setClass(r,"ng-touched","ng-untouched")},this.$rollbackViewValue=function(){l.cancel(b),w.$viewValue=w.$$lastCommittedViewValue,w.$render()},this.$validate=function(){if(!S(w.$modelValue)||!isNaN(w.$modelValue)){var t=w.$$rawModelValue,e=w.$valid,n=w.$modelValue,r=w.$options&&w.$options.allowInvalid;w.$$runValidators(t,w.$$lastCommittedViewValue,function(o){r||e===o||(w.$modelValue=o?t:i,w.$modelValue!==n&&w.$$writeModelToScope())})}},this.$$runValidators=function(t,e,n){function r(t,e){a===k&&w.$setValidity(t,e)}function s(t){a===k&&n(t)}var a=++k;!function(){var t=w.$$parserName||"parse";return d!==i?(d||(o(w.$validators,function(t,e){r(e,null)}),o(w.$asyncValidators,function(t,e){r(e,null)})),r(t,d),d):(r(t,null),!0)}()?s(!1):function(){var i=!0;return o(w.$validators,function(n,o){var s=n(t,e);i=i&&s,r(o,s)}),!!i||(o(w.$asyncValidators,function(t,e){r(e,null)}),!1)}()?function(){var n=[],a=!0;o(w.$asyncValidators,function(o,s){var l=o(t,e);if(!l||!T(l.then))throw Yr("$asyncValidators",l);r(s,i),n.push(l.then(function(){r(s,!0)},function(t){a=!1,r(s,!1)}))}),n.length?c.all(n).then(function(){s(a)},f):s(!0)}():s(!1)},this.$commitViewValue=function(){var t=w.$viewValue;l.cancel(b),(w.$$lastCommittedViewValue!==t||""===t&&w.$$hasNativeValidators)&&(w.$$lastCommittedViewValue=t,w.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){var e=w.$$lastCommittedViewValue;if(d=!y(e)||i)for(var n=0;n<w.$parsers.length;n++)if(y(e=w.$parsers[n](e))){d=!1;break}S(w.$modelValue)&&isNaN(w.$modelValue)&&(w.$modelValue=m(t));var r=w.$modelValue,o=w.$options&&w.$options.allowInvalid;w.$$rawModelValue=e,o&&(w.$modelValue=e,w.$modelValue!==r&&w.$$writeModelToScope()),w.$$runValidators(e,w.$$lastCommittedViewValue,function(t){o||(w.$modelValue=t?e:i,w.$modelValue!==r&&w.$$writeModelToScope())})},this.$$writeModelToScope=function(){v(t,w.$modelValue),o(w.$viewChangeListeners,function(t){try{t()}catch(t){e(t)}})},this.$setViewValue=function(t,e){w.$viewValue=t,w.$options&&!w.$options.updateOnDefault||w.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(e){var i=0,n=w.$options;n&&x(n.debounce)&&(S(n=n.debounce)?i=n:S(n[e])?i=n[e]:S(n.default)&&(i=n.default)),l.cancel(b),i?b=l(function(){w.$commitViewValue()},i):h.$$phase?w.$commitViewValue():t.$apply(function(){w.$commitViewValue()})},t.$watch(function(){var e=m(t);if(e!==w.$modelValue&&(w.$modelValue==w.$modelValue||e==e)){w.$modelValue=w.$$rawModelValue=e,d=i;for(var n=w.$formatters,r=n.length,o=e;r--;)o=n[r](o);w.$viewValue!==o&&(w.$viewValue=w.$$lastCommittedViewValue=o,w.$render(),w.$$runValidators(e,o,f))}return e})}],Gr=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:qr,priority:1,compile:function(e){return e.addClass(Fr).addClass("ng-untouched").addClass(Br),{pre:function(t,e,i,n){var r=n[0],o=n[1]||lr;r.$$setOptions(n[2]&&n[2].$options),o.$addControl(r),i.$observe("name",function(t){r.$name!==t&&o.$$renameControl(r,t)}),t.$on("$destroy",function(){o.$removeControl(r)})},post:function(e,i,n,r){var o=r[0];o.$options&&o.$options.updateOn&&i.on(o.$options.updateOn,function(t){o.$$debounceViewValueCommit(t&&t.type)}),i.on("blur",function(i){o.$touched||(t.$$phase?e.$evalAsync(o.$setTouched):e.$apply(o.$setTouched))})}}}}}],Ur=/(\s+|^)default(\s+|$)/,Kr=function(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var n=this;this.$options=D(t.$eval(e.ngModelOptions)),this.$options.updateOn!==i?(this.$options.updateOnDefault=!1,this.$options.updateOn=ji(this.$options.updateOn.replace(Ur,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},Zr=ci({terminal:!0,priority:1e3}),Jr=n("ngOptions"),Qr=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,to=["$compile","$parse",function(t,i){function n(t,e,n){function o(t,e,i,n,r){this.selectValue=t,this.viewValue=e,this.label=i,this.group=n,this.disabled=r}function s(t){var e;if(!h&&r(t))e=t;else for(var i in e=[],t)t.hasOwnProperty(i)&&"$"!==i.charAt(0)&&e.push(i);return e}var a=t.match(Qr);if(!a)throw Jr("iexp",t,F(e));var l=a[5]||a[7],h=a[6];t=/ as /.test(a[0])&&a[1];var c=a[9];e=i(a[2]?a[1]:l);var u=t&&i(t)||e,d=c&&i(c),p=c?function(t,e){return d(n,e)}:function(t){return Ct(t)},f=function(t,e){return p(t,b(t,e))},g=i(a[2]||a[1]),m=i(a[3]||""),v=i(a[4]||""),y=i(a[8]),x={},b=h?function(t,e){return x[h]=e,x[l]=t,x}:function(t){return x[l]=t,x};return{trackBy:c,getTrackByValue:f,getWatchables:i(y,function(t){for(var e=[],i=s(t=t||[]),r=i.length,o=0;o<r;o++){var l=t===i?o:i[o],h=b(t[l],l);l=p(t[l],h);e.push(l),(a[2]||a[1])&&(l=g(n,h),e.push(l)),a[4]&&(h=v(n,h),e.push(h))}return e}),getOptions:function(){for(var t=[],e={},i=y(n)||[],r=s(i),a=r.length,l=0;l<a;l++){var h=i===r?l:r[l],d=b(i[h],h),x=u(n,d);x=new o(h=p(x,d),x,g(n,d),m(n,d),d=v(n,d));t.push(x),e[h]=x}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[f(t)]},getViewValueFromOption:function(t){return c?Ii.copy(t.viewValue):t.viewValue}}}}}var s=e.createElement("option"),a=e.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","?ngModel"],link:function(e,i,r,l){function h(t,e){t.element=e,e.disabled=t.disabled,t.value!==e.value&&(e.value=t.selectValue),t.label!==e.label&&(e.label=t.label,e.textContent=t.label)}function c(t,e,i,n){return e&&Ci(e.nodeName)===i?i=e:(i=n.cloneNode(!1),e?t.insertBefore(i,e):t.appendChild(i)),i}function u(t){for(var e;t;)e=t.nextSibling,St(t),t=e}function d(){var t=w&&f.readValue();w=$.getOptions();var e={},n=i[0].firstChild;if(x&&i.prepend(g),n=function(t){var e=g&&g[0],i=b&&b[0];if(e||i)for(;t&&(t===e||t===i);)t=t.nextSibling;return t}(n),w.items.forEach(function(t){var r,o;t.group?((r=e[t.group])||(r=c(i[0],n,"optgroup",a),n=r.nextSibling,r.label=t.group,r=e[t.group]={groupElement:r,currentOptionElement:r.firstChild}),h(t,o=c(r.groupElement,r.currentOptionElement,"option",s)),r.currentOptionElement=o.nextSibling):(h(t,o=c(i[0],n,"option",s)),n=o.nextSibling)}),Object.keys(e).forEach(function(t){u(e[t].currentOptionElement)}),u(n),p.$render(),!p.$isEmpty(t)){var r=f.readValue();($.trackBy?I(t,r):t===r)||(p.$setViewValue(r),p.$render())}}var p=l[1];if(p){var f=l[0];l=r.multiple;for(var g,m=0,v=i.children(),y=v.length;m<y;m++)if(""===v[m].value){g=v.eq(m);break}var x=!!g,b=$i(s.cloneNode(!1));b.val("?");var w,$=n(r.ngOptions,i,e);l?(p.$isEmpty=function(t){return!t||0===t.length},f.writeValue=function(t){w.items.forEach(function(t){t.element.selected=!1}),t&&t.forEach(function(t){(t=w.getOptionFromViewValue(t))&&!t.disabled&&(t.element.selected=!0)})},f.readValue=function(){var t=i.val()||[],e=[];return o(t,function(t){(t=w.selectValueMap[t])&&!t.disabled&&e.push(w.getViewValueFromOption(t))}),e},$.trackBy&&e.$watchCollection(function(){if(Hi(p.$viewValue))return p.$viewValue.map(function(t){return $.getTrackByValue(t)})},function(){p.$render()})):(f.writeValue=function(t){var e=w.getOptionFromViewValue(t);e&&!e.disabled?i[0].value!==e.selectValue&&(b.remove(),x||g.remove(),i[0].value=e.selectValue,e.element.selected=!0,e.element.setAttribute("selected","selected")):null===t||x?(b.remove(),x||i.prepend(g),i.val(""),g.prop("selected",!0),g.attr("selected",!0)):(x||g.remove(),i.prepend(b),i.val("?"),b.prop("selected",!0),b.attr("selected",!0))},f.readValue=function(){var t=w.selectValueMap[i.val()];return t&&!t.disabled?(x||g.remove(),b.remove(),w.getViewValueFromOption(t)):null},$.trackBy&&e.$watch(function(){return $.getTrackByValue(p.$viewValue)},function(){p.$render()})),x?(g.remove(),t(g)(e),g.removeClass("ng-scope")):g=$i(s.cloneNode(!1)),d(),e.$watchCollection($.getWatchables,d)}}}}],eo=["$locale","$interpolate","$log",function(t,e,i){var n=/{}/g,r=/^when(Minus)?(.+)$/;return{link:function(s,a,l){function h(t){a.text(t||"")}var c,u=l.count,d=l.$attr.when&&a.attr(l.$attr.when),p=l.offset||0,g=s.$eval(d)||{},m={},v=e.startSymbol(),x=e.endSymbol(),b=v+u+"-"+p+x,w=Ii.noop;o(l,function(t,e){var i=r.exec(e);i&&(i=(i[1]?"-":"")+Ci(i[2]),g[i]=a.attr(l.$attr[e]))}),o(g,function(t,i){m[i]=e(t.replace(n,b))}),s.$watch(u,function(e){var n=parseFloat(e),r=isNaN(n);r||n in g||(n=t.pluralCat(n-p)),n===c||r&&S(c)&&isNaN(c)||(w(),y(r=m[n])?(null!=e&&i.debug("ngPluralize: no rule defined for '"+n+"' in "+d),w=f,h()):w=s.$watch(r,h),c=n)})}}}],io=["$parse","$animate",function(t,s){var a=n("ngRepeat"),l=function(t,e,i,n,r,o,s){t[i]=n,r&&(t[r]=o),t.$index=e,t.$first=0===e,t.$last=e===s-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0==(1&e))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(n,h){var c=h.ngRepeat,u=e.createComment(" end ngRepeat: "+c+" ");if(!(d=c.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/)))throw a("iexp",c);var d,p=d[1],f=d[2],g=d[3],m=d[4];if(!(d=p.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/)))throw a("iidexp",p);var v=d[3]||d[1],y=d[2];if(g&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(g)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(g)))throw a("badident",g);var x,b,w,$,S={$id:Ct};return m?x=t(m):(w=function(t,e){return Ct(e)},$=function(t){return t}),function(t,e,n,h,d){x&&(b=function(e,i,n){return y&&(S[y]=e),S[v]=i,S.$index=n,x(t,S)});var p=ot();t.$watchCollection(f,function(n){var h,f,m,x,S,k,T,C,E,M,A=e[0],P=ot();if(g&&(t[g]=n),r(n))C=n,f=b||w;else for(M in f=b||$,C=[],n)n.hasOwnProperty(M)&&"$"!==M.charAt(0)&&C.push(M);for(x=C.length,M=Array(x),h=0;h<x;h++)if(S=n===C?h:C[h],k=n[S],T=f(S,k,h),p[T])E=p[T],delete p[T],P[T]=E,M[h]=E;else{if(P[T])throw o(M,function(t){t&&t.scope&&(p[t.id]=t)}),a("dupes",c,T,k);M[h]={id:T,scope:i,clone:i},P[T]=!0}for(m in p){if(T=rt((E=p[m]).clone),s.leave(T),T[0].parentNode)for(h=0,f=T.length;h<f;h++)T[h].$$NG_REMOVED=!0;E.scope.$destroy()}for(h=0;h<x;h++)if(S=n===C?h:C[h],k=n[S],(E=M[h]).scope){m=A;do{m=m.nextSibling}while(m&&m.$$NG_REMOVED);E.clone[0]!=m&&s.move(rt(E.clone),null,$i(A)),A=E.clone[E.clone.length-1],l(E.scope,h,v,k,y,S,x)}else d(function(t,e){E.scope=e;var i=u.cloneNode(!1);t[t.length++]=i,s.enter(t,null,$i(A)),A=i,E.clone=t,P[E.id]=E,l(E.scope,h,v,k,y,S,x)});p=P})}}}}],no=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,i,n){e.$watch(n.ngShow,function(e){t[e?"removeClass":"addClass"](i,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],ro=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,i,n){e.$watch(n.ngHide,function(e){t[e?"addClass":"removeClass"](i,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],oo=ci(function(t,e,i){t.$watch(i.ngStyle,function(t,i){i&&t!==i&&o(i,function(t,i){e.css(i,"")}),t&&e.css(t)},!0)}),so=["$animate",function(t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(i,n,r,s){var a=[],l=[],h=[],c=[],u=function(t,e){return function(){t.splice(e,1)}};i.$watch(r.ngSwitch||r.on,function(i){var n,r;for(n=0,r=h.length;n<r;++n)t.cancel(h[n]);for(n=h.length=0,r=c.length;n<r;++n){var d=rt(l[n].clone);c[n].$destroy(),(h[n]=t.leave(d)).then(u(h,n))}l.length=0,c.length=0,(a=s.cases["!"+i]||s.cases["?"])&&o(a,function(i){i.transclude(function(n,r){c.push(r);var o=i.element;n[n.length++]=e.createComment(" end ngSwitchWhen: "),l.push({clone:n}),t.enter(n,o.parent(),o)})})})}}}],ao=ci({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,i,n,r){n.cases["!"+i.ngSwitchWhen]=n.cases["!"+i.ngSwitchWhen]||[],n.cases["!"+i.ngSwitchWhen].push({transclude:r,element:e})}}),lo=ci({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,i,n,r){n.cases["?"]=n.cases["?"]||[],n.cases["?"].push({transclude:r,element:e})}}),ho=ci({restrict:"EAC",link:function(t,e,i,r,o){if(!o)throw n("ngTransclude")("orphan",F(e));o(function(t){e.empty(),e.append(t)})}}),co=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,i){"text/ng-template"==i.type&&t.put(i.id,e[0].text)}}}],uo={$setViewValue:f,$render:f},po=["$element","$scope","$attrs",function(t,n,r){var o=this,s=new Et;o.ngModelCtrl=uo,o.unknownOption=$i(e.createElement("option")),o.renderUnknownOption=function(e){e="? "+Ct(e)+" ?",o.unknownOption.val(e),t.prepend(o.unknownOption),t.val(e)},n.$on("$destroy",function(){o.renderUnknownOption=f}),o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.readValue=function(){return o.removeUnknownOption(),t.val()},o.writeValue=function(e){o.hasOption(e)?(o.removeUnknownOption(),t.val(e),""===e&&o.emptyOption.prop("selected",!0)):null==e&&o.emptyOption?(o.removeUnknownOption(),t.val("")):o.renderUnknownOption(e)},o.addOption=function(t,e){it(t,'"option value"'),""===t&&(o.emptyOption=e);var i=s.get(t)||0;s.put(t,i+1)},o.removeOption=function(t){var e=s.get(t);e&&(1===e?(s.remove(t),""===t&&(o.emptyOption=i)):s.put(t,e-1))},o.hasOption=function(t){return!!s.get(t)}}],fo=function(){return{restrict:"E",require:["select","?ngModel"],controller:po,link:function(t,e,i,n){var r=n[1];if(r){var s=n[0];if(s.ngModelCtrl=r,r.$render=function(){s.writeValue(r.$viewValue)},e.on("change",function(){t.$apply(function(){r.$setViewValue(s.readValue())})}),i.multiple){s.readValue=function(){var t=[];return o(e.find("option"),function(e){e.selected&&t.push(e.value)}),t},s.writeValue=function(t){var i=new Et(t);o(e.find("option"),function(t){t.selected=x(i.get(t.value))})};var a,l=NaN;t.$watch(function(){l!==r.$viewValue||I(a,r.$viewValue)||(a=N(r.$viewValue),r.$render()),l=r.$viewValue}),r.$isEmpty=function(t){return!t||0===t.length}}}}}},go=["$interpolate",function(t){function e(t){t[0].hasAttribute("selected")&&(t[0].selected=!0)}return{restrict:"E",priority:100,compile:function(i,n){if(y(n.value)){var r=t(i.text(),!0);r||n.$set("value",i.text())}return function(t,i,n){var o=i.parent(),s=o.data("$selectController")||o.parent().data("$selectController");s&&s.ngModelCtrl&&(r?t.$watch(r,function(t,r){n.$set("value",t),r!==t&&s.removeOption(r),s.addOption(t,i),s.ngModelCtrl.$render(),e(i)}):(s.addOption(n.value,i),s.ngModelCtrl.$render(),e(i)),i.on("$destroy",function(){s.removeOption(n.value),s.ngModelCtrl.$render()}))}}}}],mo=m({restrict:"E",terminal:!1}),vo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,i,n){n&&(i.required=!0,n.$validators.required=function(t,e){return!i.required||!n.$isEmpty(e)},i.$observe("required",function(){n.$validate()}))}}},yo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,r,o){if(o){var s,a=r.ngPattern||r.pattern;r.$observe("pattern",function(t){if($(t)&&0<t.length&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw n("ngPattern")("noregexp",a,t,F(e));s=t||i,o.$validate()}),o.$validators.pattern=function(t,e){return o.$isEmpty(e)||y(s)||s.test(e)}}}}},xo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,i,n){if(n){var r=-1;i.$observe("maxlength",function(t){t=d(t),r=isNaN(t)?-1:t,n.$validate()}),n.$validators.maxlength=function(t,e){return 0>r||n.$isEmpty(e)||e.length<=r}}}}},bo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,i,n){if(n){var r=0;i.$observe("minlength",function(t){r=d(t)||0,n.$validate()}),n.$validators.minlength=function(t,e){return n.$isEmpty(e)||e.length>=r}}}}};t.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):(function(){var e;if(!Yi){var n=Fi();Si=t.jQuery,x(n)&&(Si=null===n?i:t[n]),Si&&Si.fn.on?($i=Si,c(Si.fn,{scope:ln.scope,isolateScope:ln.isolateScope,controller:ln.controller,injector:ln.injector,inheritedData:ln.inheritedData}),e=Si.cleanData,Si.cleanData=function(t){var i;if(Ri)Ri=!1;else for(var n,r=0;null!=(n=t[r]);r++)(i=Si._data(n,"events"))&&i.$destroy&&Si(n).triggerHandler("$destroy");e(t)}):$i=ht,Ii.element=$i,Yi=!0}}(),c(Ii,{bootstrap:K,copy:D,extend:c,merge:u,equals:I,element:$i,forEach:o,injector:Mt,noop:f,bind:R,toJson:_,fromJson:j,identity:g,isUndefined:y,isDefined:x,isString:$,isFunction:T,isObject:b,isNumber:S,isElement:P,isArray:Hi,version:Ui,isDate:k,lowercase:Ci,uppercase:Mi,callbacks:{counter:0},getTestability:J,$$minErr:n,$$csp:Wi,reloadWithDebugInfo:Z}),(ki=function(t){function e(t,e,i){return t[e]||(t[e]=i())}var i=n("$injector"),r=n("ng");return(t=e(t,"angular",Object)).$$minErr=t.$$minErr||n,e(t,"module",function(){var t={};return function(n,o,s){if("hasOwnProperty"===n)throw r("badname","module");return o&&t.hasOwnProperty(n)&&(t[n]=null),e(t,n,function(){function t(t,e,i,n){return n||(n=r),function(){return n[i||"push"]([t,e,arguments]),c}}function e(t,e){return function(i,o){return o&&T(o)&&(o.$$moduleName=n),r.push([t,e,arguments]),c}}if(!o)throw i("nomod",n);var r=[],a=[],l=[],h=t("$injector","invoke","push",a),c={_invokeQueue:r,_configBlocks:a,_runBlocks:l,requires:o,name:n,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:e("$provide","decorator"),animation:e("$animateProvider","register"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),config:h,run:function(t){return l.push(t),this}};return s&&h(s),c})}})}(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:Ne}),t.provider("$compile",zt).directive({a:sr,input:$r,textarea:$r,form:cr,script:co,select:fo,style:mo,option:go,ngBind:Tr,ngBindHtml:Er,ngBindTemplate:Cr,ngClass:Ar,ngClassEven:Lr,ngClassOdd:Pr,ngCloak:Or,ngController:Dr,ngForm:ur,ngHide:ro,ngIf:zr,ngInclude:Rr,ngInit:_r,ngNonBindable:Zr,ngPluralize:eo,ngRepeat:io,ngShow:no,ngStyle:oo,ngSwitch:so,ngSwitchWhen:ao,ngSwitchDefault:lo,ngOptions:to,ngTransclude:ho,ngModel:Gr,ngList:jr,ngChange:Mr,pattern:yo,ngPattern:yo,required:vo,ngRequired:vo,minlength:bo,ngMinlength:bo,maxlength:xo,ngMaxlength:xo,ngValue:kr,ngModelOptions:Kr}).directive({ngInclude:Hr}).directive(ar).directive(Nr),t.provider({$anchorScroll:At,$animate:wn,$animateCss:$n,$$animateQueue:bn,$$AnimateRunner:xn,$browser:Dt,$cacheFactory:Nt,$controller:jt,$document:Bt,$exceptionHandler:Wt,$filter:qe,$$forceReflow:En,$interpolate:Qt,$interval:te,$http:Kt,$httpParamSerializer:Xt,$httpParamSerializerJQLike:Vt,$httpBackend:Jt,$location:de,$log:pe,$parse:Me,$rootScope:De,$q:Ae,$$q:Pe,$sce:Re,$sceDelegate:ze,$sniffer:He,$templateCache:It,$templateRequest:_e,$$testability:je,$timeout:Be,$window:Xe,$$rAF:Oe,$$jqLite:Tt,$$HashMap:dn,$$cookieReader:Ye})}]),Ii.module("ngLocale",[],["$provide",function(t){t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",pluralCat:function(t,e){var n=0|t,r=e;return i===r&&(r=Math.min(function(t){var e=(t+="").indexOf(".");return-1==e?0:t.length-e-1}(t),3)),Math.pow(10,r),1==n&&0==r?"one":"other"}})}]),$i(e).ready(function(){U(e,K)}))}(window,document),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),function(t,e,i,n){"use strict";function r(t,e,i){return setTimeout(c(t,i),e)}function o(t,e,i){return!!Array.isArray(t)&&(s(t,i[e],i),!0)}function s(t,e,i){var r;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==n)for(r=0;r<t.length;)e.call(i,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(i,t[r],r,t)}function a(t,e,i){for(var r=Object.keys(e),o=0;o<r.length;)(!i||i&&t[r[o]]===n)&&(t[r[o]]=e[r[o]]),o++;return t}function l(t,e){return a(t,e,!0)}function h(t,e,i){var n,r=e.prototype;(n=t.prototype=Object.create(r)).constructor=t,n._super=r,i&&a(n,i)}function c(t,e){return function(){return t.apply(e,arguments)}}function u(t,e){return typeof t==Q?t.apply(e&&e[0]||n,e):t}function d(t,e){return t===n?e:t}function p(t,e,i){s(v(e),function(e){t.addEventListener(e,i,!1)})}function f(t,e,i){s(v(e),function(e){t.removeEventListener(e,i,!1)})}function g(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function m(t,e){return t.indexOf(e)>-1}function v(t){return t.trim().split(/\s+/g)}function y(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function x(t){return Array.prototype.slice.call(t,0)}function b(t,e,i){for(var n=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];y(r,s)<0&&n.push(t[o]),r[o]=s,o++}return i&&(n=e?n.sort(function(t,i){return t[e]>i[e]}):n.sort()),n}function w(t,e){for(var i,r,o=e[0].toUpperCase()+e.slice(1),s=0;s<Z.length;){if((r=(i=Z[s])?i+o:e)in t)return r;s++}return n}function $(t){var e=t.ownerDocument;return e.defaultView||e.parentWindow}function S(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){u(t.options.enable,[t])&&i.handler(e)},this.init()}function k(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,o=e&ct&&n-r==0,s=e&(dt|pt)&&n-r==0;i.isFirst=!!o,i.isFinal=!!s,o&&(t.session={}),i.eventType=e,function(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=C(e)),r>1&&!i.firstMultiple?i.firstMultiple=C(e):1===r&&(i.firstMultiple=!1);var o=i.firstInput,s=i.firstMultiple,a=s?s.center:o.center,l=e.center=E(n);e.timeStamp=it(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=P(a,l),e.distance=A(a,l),function(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};(e.eventType===ct||o.eventType===dt)&&(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}(i,e),e.offsetDirection=M(e.deltaX,e.deltaY),e.scale=s?function(t,e){return A(e[0],e[1],St)/A(t[0],t[1],St)}(s.pointers,n):1,e.rotation=s?function(t,e){return P(e[1],e[0],St)-P(t[1],t[0],St)}(s.pointers,n):0,T(i,e);var h=t.element;g(e.srcEvent.target,h)&&(h=e.srcEvent.target),e.target=h}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function T(t,e){var i,r,o,s,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=pt&&(l>ht||a.velocity===n)){var h=a.deltaX-e.deltaX,c=a.deltaY-e.deltaY,u=function(t,e,i){return{x:e/t||0,y:i/t||0}}(l,h,c);r=u.x,o=u.y,i=et(u.x)>et(u.y)?u.x:u.y,s=M(h,c),t.lastInterval=e}else i=a.velocity,r=a.velocityX,o=a.velocityY,s=a.direction;e.velocity=i,e.velocityX=r,e.velocityY=o,e.direction=s}function C(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:tt(t.pointers[i].clientX),clientY:tt(t.pointers[i].clientY)},i++;return{timeStamp:it(),pointers:e,center:E(e),deltaX:t.deltaX,deltaY:t.deltaY}}function E(t){var e=t.length;if(1===e)return{x:tt(t[0].clientX),y:tt(t[0].clientY)};for(var i=0,n=0,r=0;e>r;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:tt(i/e),y:tt(n/e)}}function M(t,e){return t===e?ft:et(t)>=et(e)?t>0?gt:mt:e>0?vt:yt}function A(t,e,i){i||(i=$t);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function P(t,e,i){i||(i=$t);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function L(){this.evEl=Tt,this.evWin=Ct,this.allow=!0,this.pressed=!1,S.apply(this,arguments)}function O(){this.evEl=At,this.evWin=Pt,S.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function D(){this.evTarget=Ot,this.evWin=Dt,this.started=!1,S.apply(this,arguments)}function N(){this.evTarget=It,this.targetIds={},S.apply(this,arguments)}function I(){S.apply(this,arguments);var t=c(this.handler,this);this.touch=new N(this.manager,t),this.mouse=new L(this.manager,t)}function z(t,e){this.manager=t,this.set(e)}function R(t){this.id=nt++,this.manager=null,this.options=l(t||{},this.defaults),this.options.enable=d(this.options.enable,!0),this.state=Xt,this.simultaneous={},this.requireFail=[]}function H(t){return t==yt?"down":t==vt?"up":t==gt?"left":t==mt?"right":""}function _(t,e){var i=e.manager;return i?i.get(t):t}function j(){R.apply(this,arguments)}function B(){j.apply(this,arguments),this.pX=null,this.pY=null}function W(){j.apply(this,arguments)}function F(){R.apply(this,arguments),this._timer=null,this._input=null}function X(){j.apply(this,arguments)}function V(){j.apply(this,arguments)}function Y(){R.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function q(t,e){return(e=e||{}).recognizers=d(e.recognizers,q.defaults.preset),new G(t,e)}function G(t,e){e=e||{},this.options=l(e,q.defaults),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=function(t){var e=t.options.inputClass;return new(e||(ot?O:st?N:rt?I:L))(t,k)}(this),this.touchAction=new z(this,this.options.touchAction),U(this,!0),s(e.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function U(t,e){var i=t.element;s(t.options.cssProps,function(t,n){i.style[w(i.style,n)]=e?t:""})}function K(t,i){var n=e.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=i,i.target.dispatchEvent(n)}var Z=["","webkit","moz","MS","ms","o"],J=e.createElement("div"),Q="function",tt=Math.round,et=Math.abs,it=Date.now,nt=1,rt="ontouchstart"in t,ot=w(t,"PointerEvent")!==n,st=rt&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),at="touch",lt="mouse",ht=25,ct=1,ut=2,dt=4,pt=8,ft=1,gt=2,mt=4,vt=8,yt=16,xt=gt|mt,bt=vt|yt,wt=xt|bt,$t=["x","y"],St=["clientX","clientY"];S.prototype={handler:function(){},init:function(){this.evEl&&p(this.element,this.evEl,this.domHandler),this.evTarget&&p(this.target,this.evTarget,this.domHandler),this.evWin&&p($(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&f(this.element,this.evEl,this.domHandler),this.evTarget&&f(this.target,this.evTarget,this.domHandler),this.evWin&&f($(this.element),this.evWin,this.domHandler)}};var kt={mousedown:ct,mousemove:ut,mouseup:dt},Tt="mousedown",Ct="mousemove mouseup";h(L,S,{handler:function(t){var e=kt[t.type];e&ct&&0===t.button&&(this.pressed=!0),e&ut&&1!==t.which&&(e=dt),this.pressed&&this.allow&&(e&dt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:lt,srcEvent:t}))}});var Et={pointerdown:ct,pointermove:ut,pointerup:dt,pointercancel:pt,pointerout:pt},Mt={2:at,3:"pen",4:lt,5:"kinect"},At="pointerdown",Pt="pointermove pointerup pointercancel";t.MSPointerEvent&&(At="MSPointerDown",Pt="MSPointerMove MSPointerUp MSPointerCancel"),h(O,S,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),r=Et[n],o=Mt[t.pointerType]||t.pointerType,s=o==at,a=y(e,t.pointerId,"pointerId");r&ct&&(0===t.button||s)?0>a&&(e.push(t),a=e.length-1):r&(dt|pt)&&(i=!0),0>a||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(a,1))}});var Lt={touchstart:ct,touchmove:ut,touchend:dt,touchcancel:pt},Ot="touchstart",Dt="touchstart touchmove touchend touchcancel";h(D,S,{handler:function(t){var e=Lt[t.type];if(e===ct&&(this.started=!0),this.started){var i=function(t,e){var i=x(t.touches),n=x(t.changedTouches);return e&(dt|pt)&&(i=b(i.concat(n),"identifier",!0)),[i,n]}.call(this,t,e);e&(dt|pt)&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:at,srcEvent:t})}}});var Nt={touchstart:ct,touchmove:ut,touchend:dt,touchcancel:pt},It="touchstart touchmove touchend touchcancel";h(N,S,{handler:function(t){var e=Nt[t.type],i=function(t,e){var i=x(t.touches),n=this.targetIds;if(e&(ct|ut)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var r,o,s=x(t.changedTouches),a=[],l=this.target;if(o=i.filter(function(t){return g(t.target,l)}),e===ct)for(r=0;r<o.length;)n[o[r].identifier]=!0,r++;for(r=0;r<s.length;)n[s[r].identifier]&&a.push(s[r]),e&(dt|pt)&&delete n[s[r].identifier],r++;return a.length?[b(o.concat(a),"identifier",!0),a]:void 0}.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:at,srcEvent:t})}}),h(I,S,{handler:function(t,e,i){var n=i.pointerType==at,r=i.pointerType==lt;if(n)this.mouse.allow=!1;else if(r&&!this.mouse.allow)return;e&(dt|pt)&&(this.mouse.allow=!0),this.callback(t,e,i)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var zt=w(J.style,"touchAction"),Rt=zt!==n,Ht="compute",_t="auto",jt="manipulation",Bt="none",Wt="pan-x",Ft="pan-y";z.prototype={set:function(t){t==Ht&&(t=this.compute()),Rt&&(this.manager.element.style[zt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return s(this.manager.recognizers,function(e){u(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(m(t,Bt))return Bt;var e=m(t,Wt),i=m(t,Ft);return e&&i?Wt+" "+Ft:e||i?e?Wt:Ft:m(t,jt)?jt:_t}(t.join(" "))},preventDefaults:function(t){if(!Rt){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var n=this.actions,r=m(n,Bt),o=m(n,Ft),s=m(n,Wt);return r||o&&i&xt||s&&i&bt?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Xt=1,Vt=2,Yt=4,qt=8,Gt=qt,Ut=16;R.prototype={defaults:{},set:function(t){return a(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(o(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=_(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return o(t,"dropRecognizeWith",this)?this:(t=_(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(o(t,"requireFailure",this))return this;var e=this.requireFail;return-1===y(e,t=_(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(o(t,"dropRequireFailure",this))return this;t=_(t,this);var e=y(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(i.options.event+(e?function(t){return t&Ut?"cancel":t&qt?"end":t&Yt?"move":t&Vt?"start":""}(n):""),t)}var i=this,n=this.state;qt>n&&e(!0),e(),n>=qt&&e(!0)},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=32)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Xt)))return!1;t++}return!0},recognize:function(t){var e=a({},t);return u(this.options.enable,[this,e])?(this.state&(Gt|Ut|32)&&(this.state=Xt),this.state=this.process(e),void(this.state&(Vt|Yt|qt|Ut)&&this.tryEmit(e))):(this.reset(),void(this.state=32))},process:function(){},getTouchAction:function(){},reset:function(){}},h(j,R,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=e&(Vt|Yt),r=this.attrTest(t);return n&&(i&pt||!r)?e|Ut:n||r?i&dt?e|qt:e&Vt?e|Yt:Vt:32}}),h(B,j,{defaults:{event:"pan",threshold:10,pointers:1,direction:wt},getTouchAction:function(){var t=this.options.direction,e=[];return t&xt&&e.push(Ft),t&bt&&e.push(Wt),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(e.direction&xt?(r=0===o?ft:0>o?gt:mt,i=o!=this.pX,n=Math.abs(t.deltaX)):(r=0===s?ft:0>s?vt:yt,i=s!=this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&&n>e.threshold&&r&e.direction},attrTest:function(t){return j.prototype.attrTest.call(this,t)&&(this.state&Vt||!(this.state&Vt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=H(t.direction);e&&this.manager.emit(this.options.event+e,t),this._super.emit.call(this,t)}}),h(W,j,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Bt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Vt)},emit:function(t){if(this._super.emit.call(this,t),1!==t.scale){var e=t.scale<1?"in":"out";this.manager.emit(this.options.event+e,t)}}}),h(F,R,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[_t]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,o=t.deltaTime>e.time;if(this._input=t,!n||!i||t.eventType&(dt|pt)&&!o)this.reset();else if(t.eventType&ct)this.reset(),this._timer=r(function(){this.state=Gt,this.tryEmit()},e.time,this);else if(t.eventType&dt)return Gt;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Gt&&(t&&t.eventType&dt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=it(),this.manager.emit(this.options.event,this._input)))}}),h(X,j,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Bt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Vt)}}),h(V,j,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:xt|bt,pointers:1},getTouchAction:function(){return B.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(xt|bt)?e=t.velocity:i&xt?e=t.velocityX:i&bt&&(e=t.velocityY),this._super.attrTest.call(this,t)&&i&t.direction&&t.distance>this.options.threshold&&et(e)>this.options.velocity&&t.eventType&dt},emit:function(t){var e=H(t.direction);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),h(Y,R,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[jt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,o=t.deltaTime<e.time;if(this.reset(),t.eventType&ct&&0===this.count)return this.failTimeout();if(n&&o&&i){if(t.eventType!=dt)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||A(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=r(function(){this.state=Gt,this.tryEmit()},e.interval,this),Vt):Gt}return 32},failTimeout:function(){return this._timer=r(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Gt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),q.VERSION="2.0.4",q.defaults={domEvents:!1,touchAction:Ht,enable:!0,inputTarget:null,inputClass:null,preset:[[X,{enable:!1}],[W,{enable:!1},["rotate"]],[V,{direction:xt}],[B,{direction:xt},["swipe"]],[Y],[Y,{event:"doubletap",taps:2},["tap"]],[F]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};G.prototype={set:function(t){return a(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var i,n=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&Gt)&&(r=e.curRecognizer=null);for(var o=0;o<n.length;)i=n[o],2===e.stopped||r&&i!=r&&!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&&i.state&(Vt|Yt|qt)&&(r=e.curRecognizer=i),o++}},get:function(t){if(t instanceof R)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(o(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(o(t,"remove",this))return this;var e=this.recognizers;return t=this.get(t),e.splice(y(e,t),1),this.touchAction.update(),this},on:function(t,e){var i=this.handlers;return s(v(t),function(t){i[t]=i[t]||[],i[t].push(e)}),this},off:function(t,e){var i=this.handlers;return s(v(t),function(t){e?i[t].splice(y(i[t],e),1):delete i[t]}),this},emit:function(t,e){this.options.domEvents&&K(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](e),n++}},destroy:function(){this.element&&U(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},a(q,{INPUT_START:ct,INPUT_MOVE:ut,INPUT_END:dt,INPUT_CANCEL:pt,STATE_POSSIBLE:Xt,STATE_BEGAN:Vt,STATE_CHANGED:Yt,STATE_ENDED:qt,STATE_RECOGNIZED:Gt,STATE_CANCELLED:Ut,STATE_FAILED:32,DIRECTION_NONE:ft,DIRECTION_LEFT:gt,DIRECTION_RIGHT:mt,DIRECTION_UP:vt,DIRECTION_DOWN:yt,DIRECTION_HORIZONTAL:xt,DIRECTION_VERTICAL:bt,DIRECTION_ALL:wt,Manager:G,Input:S,TouchAction:z,TouchInput:N,MouseInput:L,PointerEventInput:O,TouchMouseInput:I,SingleTouchInput:D,Recognizer:R,AttrRecognizer:j,Tap:Y,Pan:B,Swipe:V,Pinch:W,Rotate:X,Press:F,on:p,off:f,each:s,merge:l,extend:a,inherit:h,bindFn:c,prefixed:w}),typeof define==Q&&define.amd?define(function(){return q}):"undefined"!=typeof module&&module.exports?module.exports=q:t.Hammer=q}(window,document),eval(function(t,e,i,n,r,o){if(r=function(t){return t.toString(35)},!"".replace(/^/,String)){for(;i--;)o[r(i)]=n[i]||r(i);n=[function(t){return o[t]}],r=function(){return"\\w+"},i=1}for(;i--;)n[i]&&(t=t.replace(new RegExp("\\b"+r(i)+"\\b","g"),n[i]));return t}("(1(a){3(6 4==='1'&&4.r){4(['f','9'],a)}7 3(6 o==='p'){a(8('f'),8('9'))}7{a(s,t)}}(1($,d){1 h(a,b){y c=$(a);3(!c.e(\"5\")){c.e(\"5\",m d(c[0],b))}}$.n.5=1(a){g 2.q(1(){h(2,a)})};d.i.j.k=(1(c){g 1(a,b){c.u(2,a,b);$(2.v).w({x:a,l:b})}})(d.i.j.k)}));",0,35,"|function|this|if|define|hammer|typeof|else|require|hammerjs|||||data|jquery|return|hammerify|Manager|prototype|emit|gesture|new|fn|exports|object|each|amd|jQuery|Hammer|call|element|trigger|type|var".split("|"),0,{})),function(){var t,e,i=[],n=[],r={load:{code:1,message:"erro no request do JSONP"}};function o(){}function s(t,e){for(var r=t?i:n,o=0;o<r.length;o++)r[o](e);i=[],n=[]}function a(i){window.NotificacaoUOLCallback=void 0,e=!1,s(!0,t=function(t){return t.response=t.response||{},t.response.isLogged=t.isLogged,(t=t.response).moreThan="",t.isLogged?!1===t.count?(t.isLogged=!1,t):(t.name&&(t.name=t.name.length>11?t.name.slice(0,11)+"...":t.name),"number"!=typeof t.count&&(t.count=0),t.countStr=t.count+"",0===t.count?(t.hasEmail="no-email",t.messagePrefix="você não tem novos emails",t.countStr=""):1===t.count?(t.hasEmail="has-email",t.messagePrefix="você tem",t.messageSuffix="novo email"):(t.count>9&&t.count<100?t.moreThan="more-than-10":t.count>99&&(t.moreThan="more-than-100",t.countStr="99+"),t.hasEmail="has-email",t.messagePrefix="você tem",t.messageSuffix="novos emails"),t):t}(i))}window.NotificacaoUOL={init:function(l,h){if(h="function"==typeof h?h:o,l="function"==typeof l?l:o,i.push(l),n.push(h),!e||t)if(t)s(!0,t);else{e=!0,window.NotificacaoUOLCallback=a;var c="//notify.uol.com.br/services/notificacoes_email?callback=NotificacaoUOLCallback";/bol.uol.com.br/.test(location.host)&&(c+="&emailDomain=bol.com.br"),function(t,e){var i=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.async=!0,n.charset=e||"utf-8",n.src=t,n.onerror=function(t){s(!1,{code:r.load.code,message:r.load.message,error:t})},n.onload=n.onreadystatechange=function(t,e){return function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i.removeChild(e),e.onload=e.onreadystatechange=null)}}(0,n),i.insertBefore(n,i.firstChild)}(c)}},clear:function(){t=null}}}(),function(t,e,i){"use strict";"undefined"!=typeof module&&module.exports?module.exports=i(e,t):"function"==typeof define&&define.amd?define(function(){return i(e,t)}):t[e]=i(e,t)}(window,"Audio5js",function(t,e){"use strict";function i(t){this.message=t}var n=e.ActiveXObject;i.prototype=Error();var r=function(t,e){var i,n=function t(e){var i,n={};for(i in e)n[i]="object"==typeof e[i]?t(e[i]):e[i];return n}(e);for(i in n)n.hasOwnProperty(i)&&(t[i]=n[i]);return t},o=function(t,e){return r(t.prototype,e)},s={on:function(t,e,i){this.subscribe(t,e,i,!1)},one:function(t,e,i){this.subscribe(t,e,i,!0)},off:function(t,e){var i,n;if(void 0!==this.channels[t])for(i=0,n=this.channels[t].length;n>i;i++){if(this.channels[t][i].fn===e){this.channels[t].splice(i,1);break}}},subscribe:function(t,e,i,n){void 0===this.channels&&(this.channels={}),this.channels[t]=this.channels[t]||[],this.channels[t].push({fn:e,ctx:i,once:n||!1})},trigger:function(t){if(this.channels&&this.channels.hasOwnProperty(t)){for(var e=Array.prototype.slice.call(arguments,1),i=[];this.channels[t].length>0;){var n=this.channels[t].shift();"function"==typeof n.fn&&n.fn.apply(n.ctx,e),n.once||i.push(n)}this.channels[t]=i}}},a={flash_embed_code:function(e,i,r){return(n?'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1" height="1" id="'+e+'">':'<object type="application/x-shockwave-flash" data="'+i+"?playerInstance=window."+t+"_flash.instances['"+e+"']&datetime="+r+'" width="1" height="1" id="'+e+'" >')+('<param name="movie" value="'+i+"?playerInstance=window."+t+"_flash.instances['"+e+"']&datetime="+r+'"/><param name="wmode" value="transparent"/><param name="allowscriptaccess" value="always" /></object>')},can_play:function(t){var e,i=document.createElement("audio");switch(t){case"mp3":e="audio/mpeg;";break;case"vorbis":e='audio/ogg; codecs="vorbis"';break;case"opus":e='audio/ogg; codecs="opus"';break;case"webm":e='audio/webm; codecs="vorbis"';break;case"mp4":e='audio/mp4; codecs="mp4a.40.5"';break;case"wav":e='audio/wav; codecs="1"'}return void 0!==e&&(!("mp3"!==t||!navigator.userAgent.match(/Android/i)||!navigator.userAgent.match(/Firefox/i))||!!i.canPlayType&&""!==i.canPlayType(e))},has_flash:function(){var t=!1;if(navigator.plugins&&navigator.plugins.length&&navigator.plugins["Shockwave Flash"])t=!0;else if(navigator.mimeTypes&&navigator.mimeTypes.length){var e=navigator.mimeTypes["application/x-shockwave-flash"];t=e&&e.enabledPlugin}else try{t="object"==typeof new n("ShockwaveFlash.ShockwaveFlash")}catch(t){}return t}(),embedFlash:function(i,n){var r=document.createElement("div");if(r.style.position="absolute",r.style.width="1px",r.style.height="1px",r.style.top="1px",document.body.appendChild(r),"object"==typeof e.swfobject){var o={playerInstance:"window."+t+"_flash.instances['"+n+"']"};r.innerHTML='<div id="'+n+'"></div>',swfobject.embedSWF(i+"?ts="+((new Date).getTime()+Math.random()),n,"1","1","9.0.0",null,o,{allowscriptaccess:"always",wmode:"transparent"})}else{var s=(new Date).getTime()+Math.random();r.innerHTML=this.flash_embed_code(n,i,s)}return document.getElementById(n)},formatTime:function(t){var e=parseInt(t/3600,10)%24,i=parseInt(t/60,10)%60,n=parseInt(t%60,10),r=(10>i?"0"+i:i)+":"+(10>n?"0"+n:n);return e>0?(10>e?"0"+e:e)+":"+r:r}};a.use_flash=a.can_play("mp3");var l,h,c,u={playing:!1,vol:1,duration:0,position:0,load_percent:0,seekable:!1,ready:null},d=e[t+"_flash"]=e[t+"_flash"]||{instances:{},count:0};(h=function(){if(a.use_flash&&!a.has_flash)throw Error("Flash Plugin Missing")}).prototype={init:function(e){d.count+=1,this.id=t+d.count,d.instances[this.id]=this,this.embed(e)},embed:function(t){a.embedFlash(t,this.id)},eiReady:function(){this.audio=document.getElementById(this.id),this.trigger("ready")},eiLoadStart:function(){this.trigger("loadstart")},eiLoadedMetadata:function(){this.trigger("loadedmetadata")},eiCanPlay:function(){this.trigger("canplay")},eiTimeUpdate:function(t,e,i){this.position=t,this.duration=e,this.seekable=i,this.trigger("timeupdate",t,this.seekable?e:null)},eiProgress:function(t,e,i){this.load_percent=t,this.duration=e,this.seekable=i,this.trigger("progress",t)},eiLoadError:function(t){this.trigger("error",t)},eiPlay:function(){this.playing=!0,this.trigger("play")},eiPause:function(){this.playing=!1,this.trigger("pause")},eiEnded:function(){this.pause(),this.trigger("ended")},eiSeeking:function(){this.trigger("seeking")},eiSeeked:function(){this.trigger("seeked")},reset:function(){this.seekable=!1,this.duration=0,this.position=0,this.load_percent=0},load:function(t){this.reset(),this.audio.load(t)},play:function(){this.audio.pplay()},pause:function(){this.audio.ppause()},volume:function(t){return void 0===t||isNaN(parseInt(t,10))?this.vol:(this.audio.setVolume(t),void(this.vol=t))},seek:function(t){try{this.audio.seekTo(t),this.position=t}catch(t){}},destroyAudio:function(){this.audio&&(this.pause(),this.audio.parentNode.removeChild(this.audio),delete d.instances[this.id],delete this.audio)}},o(h,s),o(h,u),(c=function(){}).prototype={init:function(){this.trigger("ready")},createAudio:function(){this.audio=new Audio,this.audio.autoplay=!1,this.audio.preload="auto",this.audio.autobuffer=!0,this.bindEvents()},destroyAudio:function(){if(this.audio){this.pause(),this.unbindEvents();try{this.audio.setAttribute("src","")}finally{delete this.audio}}},setupEventListeners:function(){this.listeners={loadstart:this.onLoadStart.bind(this),canplay:this.onLoad.bind(this),loadedmetadata:this.onLoadedMetadata.bind(this),play:this.onPlay.bind(this),pause:this.onPause.bind(this),ended:this.onEnded.bind(this),error:this.onError.bind(this),timeupdate:this.onTimeUpdate.bind(this),seeking:this.onSeeking.bind(this),seeked:this.onSeeked.bind(this)}},bindEvents:function(){void 0===this.listeners&&this.setupEventListeners(),this.audio.addEventListener("loadstart",this.listeners.loadstart,!1),this.audio.addEventListener("canplay",this.listeners.canplay,!1),this.audio.addEventListener("loadedmetadata",this.listeners.loadedmetadata,!1),this.audio.addEventListener("play",this.listeners.play,!1),this.audio.addEventListener("pause",this.listeners.pause,!1),this.audio.addEventListener("ended",this.listeners.ended,!1),this.audio.addEventListener("error",this.listeners.error,!1),this.audio.addEventListener("timeupdate",this.listeners.timeupdate,!1),this.audio.addEventListener("seeking",this.listeners.seeking,!1),this.audio.addEventListener("seeked",this.listeners.seeked,!1)},unbindEvents:function(){this.audio.removeEventListener("loadstart",this.listeners.loadstart),this.audio.removeEventListener("canplay",this.listeners.canplay),this.audio.removeEventListener("loadedmetadata",this.listeners.loadedmetadata),this.audio.removeEventListener("play",this.listeners.play),this.audio.removeEventListener("pause",this.listeners.pause),this.audio.removeEventListener("ended",this.listeners.ended),this.audio.removeEventListener("error",this.listeners.error),this.audio.removeEventListener("timeupdate",this.listeners.timeupdate),this.audio.removeEventListener("seeking",this.listeners.seeking),this.audio.removeEventListener("seeked",this.listeners.seeked)},onLoadStart:function(){this.trigger("loadstart")},onLoad:function(){return this.audio?(this.seekable=this.audio.seekable&&this.audio.seekable.length>0,this.seekable&&(this.timer=setInterval(this.onProgress.bind(this),250)),void this.trigger("canplay")):setTimeout(this.onLoad.bind(this),100)},onLoadedMetadata:function(){this.trigger("loadedmetadata")},onPlay:function(){this.playing=!0,this.trigger("play")},onPause:function(){this.playing=!1,this.trigger("pause")},onEnded:function(){this.playing=!1,this.trigger("ended")},onTimeUpdate:function(){if(this.audio&&this.playing){try{this.position=this.audio.currentTime,this.duration=1/0===this.audio.duration?null:this.audio.duration}catch(t){}this.trigger("timeupdate",this.position,this.duration)}},onProgress:function(){this.audio&&null!==this.audio.buffered&&this.audio.buffered.length&&(this.duration=1/0===this.audio.duration?null:this.audio.duration,this.load_percent=parseInt(this.audio.buffered.end(this.audio.buffered.length-1)/this.duration*100,10),this.trigger("progress",this.load_percent),this.load_percent>=100&&this.clearLoadProgress())},onError:function(t){this.trigger("error",t)},onSeeking:function(){this.trigger("seeking")},onSeeked:function(){this.trigger("seeked")},clearLoadProgress:function(){void 0!==this.timer&&(clearInterval(this.timer),delete this.timer)},reset:function(){this.clearLoadProgress(),this.seekable=!1,this.duration=0,this.position=0,this.load_percent=0},load:function(t){this.reset(),this.destroyAudio(),this.createAudio(),this.audio.setAttribute("src",t),this.audio.load()},play:function(){this.audio.play()},pause:function(){this.audio.pause()},volume:function(t){if(void 0===t||isNaN(parseInt(t,10)))return this.vol;var e=0>t?0:Math.min(1,t);this.audio.volume=e,this.vol=e},seek:function(t){var e=this.playing;this.position=t,this.audio.currentTime=t,e?this.play():null!==this.audio.buffered&&this.audio.buffered.length&&this.trigger("timeupdate",this.position,this.duration)}},o(c,s),o(c,u);var p={swf_path:"http://stc.uol.com/c/_template/v2/media/audio5/audio5js.swf",throw_errors:!0,format_time:!0,codecs:["mp3"]};return(l=function(t){var e;for(e in t=t||{},p)p.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=p[e]);this.init(t)}).can_play=function(t){return a.can_play(t)},l.prototype={init:function(t){this.ready=!1,this.settings=t,this.audio=this.getPlayer(),this.bindAudioEvents(),this.settings.use_flash?this.audio.init(t.swf_path):this.audio.init()},getPlayer:function(){var t,e,i,n;if(this.settings.use_flash)i=new h,this.settings.player={engine:"flash",codec:"mp3"};else{for(t=0,e=this.settings.codecs.length;e>t;t++)if(n=this.settings.codecs[t],l.can_play(n)){i=new c,this.settings.use_flash=!1,this.settings.player={engine:"html",codec:n};break}void 0===i&&(this.settings.use_flash=!l.can_play("mp3"),i=this.settings.use_flash?new h:new c,this.settings.player={engine:this.settings.use_flash?"flash":"html",codec:"mp3"})}return i},bindAudioEvents:function(){this.audio.on("ready",this.onReady,this),this.audio.on("loadstart",this.onLoadStart,this),this.audio.on("loadedmetadata",this.onLoadedMetadata,this),this.audio.on("play",this.onPlay,this),this.audio.on("pause",this.onPause,this),this.audio.on("ended",this.onEnded,this),this.audio.on("canplay",this.onCanPlay,this),this.audio.on("timeupdate",this.onTimeUpdate,this),this.audio.on("progress",this.onProgress,this),this.audio.on("error",this.onError,this),this.audio.on("seeking",this.onSeeking,this),this.audio.on("seeked",this.onSeeked,this)},load:function(t){var e=this,i=function(t){e.audio.load(t),e.trigger("load")};this.ready?i(t):this.on("ready",i)},play:function(){this.playing||this.audio.play()},pause:function(){this.playing&&this.audio.pause()},playPause:function(){this[this.playing?"pause":"play"]()},volume:function(t){return void 0===t||isNaN(parseInt(t,10))?this.vol:(this.audio.volume(t),void(this.vol=t))},seek:function(t){this.audio.seek(t),this.position=t},destroy:function(){this.audio.destroyAudio()},onReady:function(){this.ready=!0,"function"==typeof this.settings.ready&&this.settings.ready.call(this,this.settings.player),this.trigger("ready")},onLoadStart:function(){this.trigger("loadstart")},onLoadedMetadata:function(){this.trigger("loadedmetadata")},onPlay:function(){this.playing=!0,this.trigger("play")},onPause:function(){this.playing=!1,this.trigger("pause")},onEnded:function(){this.playing=!1,this.trigger("ended")},onError:function(){var t=new i("Audio Error. Failed to Load Audio");if(this.settings.throw_errors)throw t;this.trigger("error",t)},onCanPlay:function(){this.trigger("canplay")},onSeeking:function(){this.trigger("seeking")},onSeeked:function(){this.trigger("seeked")},onTimeUpdate:function(t,e){this.position=this.settings.format_time?a.formatTime(t):t,this.duration!==e&&(this.duration=this.settings.format_time&&null!==e?a.formatTime(e):e),this.trigger("timeupdate",this.position,this.duration)},onProgress:function(t){this.duration=this.audio.duration,this.load_percent=t,this.trigger("progress",t)}},o(l,s),o(l,u),l});var ucopy=function(){"use strict";var t,e;function i(){if(!location.href.match(/woutBanner/)){e=function(){if(window.getSelection){var t=window.getSelection();return t}if(document.selection&&document.selection.createRange)return document.selection.createRange();return null}();var t=" - Veja mais em "+(o="cmpid=copiaecola",s=location.href,s+=(s.split("?")[1]?"&":"?")+o),i=$(".uolplayer .up-share-url-wrapper .up-share-url").val(),n=e.toString()!==i?function(t,e){var i=t;i.length>=e&&(i=i.substring(0,e));return i+"..."}(e.toString(),690)+t:e.toString(),r=document.createElement("div");r.style.position="absolute",r.style.left="-99999px",document.body.appendChild(r),r.innerHTML=n,e.selectAllChildren(r),window.setTimeout(function(){document.body.removeChild(r)},100)}var o,s}return{init:function(e){var n;return t||(n=e,t=void $("body").on("copy","object"==typeof n?n.join(","):n,i)),t}}}();function refreshAuto(){var t=!!document.querySelector("[data-refresh]")&&document.querySelector("[data-refresh]").getAttribute("data-refresh");try{t=JSON.parse(t)}catch(t){}refresh(t)}function refresh(t){(t||window.refreshConfig.hasOwnProperty("configs"))&&refreshControls().init(t||window.refreshConfig.configs)}function refreshControls(){return{init:function(t){"object"==typeof t&&t.hasOwnProperty("init")&&(t.init&&(window.refreshConfig.configs=t),this[t.init?"start":"pause"](t.timer||165e3))},start:function(){window.refreshConfig.timer=setTimeout(function(){var t=navigator.userAgent.toLowerCase();/msie|rv:/.test(t)?window.history.go(0):window.location.reload()},arguments[0])},pause:function(){clearTimeout(window.refreshConfig.timer),window.refreshConfig.timer=null}}}window.refreshConfig={},window.addEventListener("load",function(){refreshAuto()}),function(t,e){"object"==typeof module&&module.exports?module.exports=t.document?e(t):e:t.Highcharts=e(t)}("undefined"!=typeof window?window:this,function(t){var e,i,n,r,o,s,a,l;e=window,i=e.document,n=e.navigator&&e.navigator.userAgent||"",r=i&&i.createElementNS&&!!i.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,o=/(edge|msie|trident)/i.test(n)&&!window.opera,s=!r,a=/Firefox/.test(n),l=a&&4>parseInt(n.split("Firefox/")[1],10),function(t){var e=[],i=t.charts,n=t.doc,r=t.win;t.error=function(e,i){if(e=t.isNumber(e)?"Highcharts error #"+e+": www.highcharts.com/errors/"+e:e,i)throw Error(e);r.console&&console.log(e)},t.Fx=function(t,e,i){this.options=e,this.elem=t,this.prop=i},t.Fx.prototype={dSetter:function(){var t,e=this.paths[0],i=this.paths[1],n=[],r=this.now,o=e.length;if(1===r)n=this.toD;else if(o===i.length&&1>r)for(;o--;)t=parseFloat(e[o]),n[o]=isNaN(t)?e[o]:r*parseFloat(i[o]-t)+t;else n=i;this.elem.attr("d",n,null,!0)},update:function(){var t=this.elem,e=this.prop,i=this.now,n=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,n&&n.call(t,i,this)},run:function(t,i,n){var r,o=this,s=function(t){return!s.stopped&&o.step(t)};this.startTime=+new Date,this.start=t,this.end=i,this.unit=n,this.now=this.start,this.pos=0,s.elem=this.elem,s.prop=this.prop,s()&&1===e.push(s)&&(s.timerId=setInterval(function(){for(r=0;r<e.length;r++)e[r]()||e.splice(r--,1);e.length||clearInterval(s.timerId)},13))},step:function(e){var i,n=+new Date,r=this.options,o=this.elem,s=r.complete,a=r.duration,l=r.curAnim;return o.attr&&!o.element?e=!1:e||n>=a+this.startTime?(this.now=this.end,this.pos=1,this.update(),i=l[this.prop]=!0,t.objectEach(l,function(t){!0!==t&&(i=!1)}),i&&s&&s.call(o),e=!1):(this.pos=r.easing((n-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e},initPath:function(e,i,n){function r(t){var e,i;for(c=t.length;c--;)e="M"===t[c]||"L"===t[c],i=/[a-zA-Z]/.test(t[c+3]),e&&i&&t.splice(c+1,0,t[c+1],t[c+2],t[c+1],t[c+2])}function o(t,e){for(;t.length<l;){t[0]=e[l-t.length];var i=t.slice(0,f);[].splice.apply(t,[0,0].concat(i)),m&&(i=t.slice(t.length-f),[].splice.apply(t,[t.length,0].concat(i)),c--)}t[0]="M"}function s(t,e){for(var i=(l-t.length)/f;0<i&&i--;)(h=t.slice().splice(t.length/v-f,f*v))[0]=e[l-f-i*f],p&&(h[f-6]=h[f-2],h[f-5]=h[f-1]),[].splice.apply(t,[t.length/v,0].concat(h)),m&&i--}i=i||"";var a,l,h,c,u=e.startX,d=e.endX,p=-1<i.indexOf("C"),f=p?7:3;i=i.split(" "),n=n.slice();var g,m=e.isArea,v=m?2:1;if(p&&(r(i),r(n)),u&&d){for(c=0;c<u.length;c++){if(u[c]===d[0]){a=c;break}if(u[0]===d[d.length-u.length+c]){a=c,g=!0;break}}void 0===a&&(i=[])}return i.length&&t.isNumber(a)&&(l=n.length+a*v*f,g?(o(i,n),s(n,i)):(o(n,i),s(i,n))),[i,n]}},t.extend=function(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t},t.merge=function(){var e,i,n=arguments,r={},o=function(e,i){return"object"!=typeof e&&(e={}),t.objectEach(i,function(n,r){!t.isObject(n,!0)||t.isClass(n)||t.isDOMElement(n)?e[r]=i[r]:e[r]=o(e[r]||{},n)}),e};for(!0===n[0]&&(r=n[1],n=Array.prototype.slice.call(n,2)),i=n.length,e=0;e<i;e++)r=o(r,n[e]);return r},t.pInt=function(t,e){return parseInt(t,e||10)},t.isString=function(t){return"string"==typeof t},t.isArray=function(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t},t.isObject=function(e,i){return!(!e||"object"!=typeof e||i&&t.isArray(e))},t.isDOMElement=function(e){return t.isObject(e)&&"number"==typeof e.nodeType},t.isClass=function(e){var i=e&&e.constructor;return!(!t.isObject(e,!0)||t.isDOMElement(e)||!i||!i.name||"Object"===i.name)},t.isNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.erase=function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},t.defined=function(t){return null!=t},t.attr=function(e,i,n){var r;return t.isString(i)?t.defined(n)?e.setAttribute(i,n):e&&e.getAttribute&&(r=e.getAttribute(i)):t.defined(i)&&t.isObject(i)&&t.objectEach(i,function(t,i){e.setAttribute(i,t)}),r},t.splat=function(e){return t.isArray(e)?e:[e]},t.syncTimeout=function(t,e,i){if(e)return setTimeout(t,e,i);t.call(0,i)},t.pick=function(){var t,e,i=arguments,n=i.length;for(t=0;t<n;t++)if(null!=(e=i[t]))return e},t.css=function(e,i){t.isMS&&!t.svg&&i&&void 0!==i.opacity&&(i.filter="alpha(opacity="+100*i.opacity+")"),t.extend(e.style,i)},t.createElement=function(e,i,r,o,s){e=n.createElement(e);var a=t.css;return i&&t.extend(e,i),s&&a(e,{padding:0,border:"none",margin:0}),r&&a(e,r),o&&o.appendChild(e),e},t.extendClass=function(e,i){var n=function(){};return n.prototype=new e,t.extend(n.prototype,i),n},t.pad=function(t,e,i){return Array((e||2)+1-String(t).length).join(i||0)+t},t.relativeLength=function(t,e){return/%$/.test(t)?e*parseFloat(t)/100:parseFloat(t)},t.wrap=function(t,e,i){var n=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments),e=arguments,r=this;return r.proceed=function(){n.apply(r,arguments.length?arguments:e)},t.unshift(n),t=i.apply(this,t),r.proceed=null,t}},t.getTZOffset=function(e){var i=t.Date;return 6e4*(i.hcGetTimezoneOffset&&i.hcGetTimezoneOffset(e)||i.hcTimezoneOffset||0)},t.dateFormat=function(e,i,n){if(!t.defined(i)||isNaN(i))return t.defaultOptions.lang.invalidDate||"";e=t.pick(e,"%Y-%m-%d %H:%M:%S");var r=new(f=t.Date)(i-t.getTZOffset(i)),o=r[f.hcGetHours](),s=r[f.hcGetDay](),a=r[f.hcGetDate](),l=r[f.hcGetMonth](),h=r[f.hcGetFullYear](),c=t.defaultOptions.lang,u=c.weekdays,d=c.shortWeekdays,p=t.pad,f=t.extend({a:d?d[s]:u[s].substr(0,3),A:u[s],d:p(a),e:p(a,2," "),w:s,b:c.shortMonths[l],B:c.months[l],m:p(l+1),y:h.toString().substr(2,2),Y:h,H:p(o),k:o,I:p(o%12||12),l:o%12||12,M:p(r[f.hcGetMinutes]()),p:12>o?"AM":"PM",P:12>o?"am":"pm",S:p(r.getSeconds()),L:p(Math.round(i%1e3),3)},t.dateFormats);return t.objectEach(f,function(t,n){for(;-1!==e.indexOf("%"+n);)e=e.replace("%"+n,"function"==typeof t?t(i):t)}),n?e.substr(0,1).toUpperCase()+e.substr(1):e},t.formatSingle=function(e,i){var n=/\.([0-9])/,r=t.defaultOptions.lang;return/f$/.test(e)?(n=(n=e.match(n))?n[1]:-1,null!==i&&(i=t.numberFormat(i,n,r.decimalPoint,-1<e.indexOf(",")?r.thousandsSep:""))):i=t.dateFormat(e,i),i},t.format=function(e,i){for(var n,r,o,s,a,l="{",h=!1,c=[];e&&-1!==(l=e.indexOf(l));){if(n=e.slice(0,l),h){for(s=(r=(n=n.split(":")).shift().split(".")).length,a=i,o=0;o<s;o++)a=a[r[o]];n.length&&(a=t.formatSingle(n.join(":"),a)),c.push(a)}else c.push(n);e=e.slice(l+1),l=(h=!h)?"}":"{"}return c.push(e),c.join("")},t.getMagnitude=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},t.normalizeTickInterval=function(e,i,n,r,o){var s,a=e;for(s=e/(n=t.pick(n,1)),i||(i=o?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===r&&(1===n?i=t.grep(i,function(t){return 0==t%1}):.1>=n&&(i=[1/n]))),r=0;r<i.length&&(a=i[r],!(o&&a*n>=e||!o&&s<=(i[r]+(i[r+1]||i[r]))/2));r++);return t.correctFloat(a*n,-Math.round(Math.log(.001)/Math.LN10))},t.stableSort=function(t,e){var i,n,r=t.length;for(n=0;n<r;n++)t[n].safeI=n;for(t.sort(function(t,n){return 0===(i=e(t,n))?t.safeI-n.safeI:i}),n=0;n<r;n++)delete t[n].safeI},t.arrayMin=function(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i},t.arrayMax=function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},t.destroyObjectProperties=function(e,i){t.objectEach(e,function(t,n){t&&t!==i&&t.destroy&&t.destroy(),delete e[n]})},t.discardElement=function(e){var i=t.garbageBin;i||(i=t.createElement("div")),e&&i.appendChild(e),i.innerHTML=""},t.correctFloat=function(t,e){return parseFloat(t.toPrecision(e||14))},t.setAnimation=function(e,i){i.renderer.globalAnimation=t.pick(e,i.options.chart.animation,!0)},t.animObject=function(e){return t.isObject(e)?t.merge(e):{duration:e?500:0}},t.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},t.numberFormat=function(e,i,n,r){e=+e||0,i=+i;var o,s,a=t.defaultOptions.lang,l=(e.toString().split(".")[1]||"").length;return-1===i?i=Math.min(l,20):t.isNumber(i)||(i=2),s=(Math.abs(e)+Math.pow(10,-Math.max(i,l)-1)).toFixed(i),o=3<(l=String(t.pInt(s))).length?l.length%3:0,n=t.pick(n,a.decimalPoint),r=t.pick(r,a.thousandsSep),e=(0>e?"-":"")+(o?l.substr(0,o)+r:""),e+=l.substr(o).replace(/(\d{3})(?=\d)/g,"$1"+r),i&&(e+=n+s.slice(-i)),e},Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.getStyle=function(e,i,n){return"width"===i?Math.min(e.offsetWidth,e.scrollWidth)-t.getStyle(e,"padding-left")-t.getStyle(e,"padding-right"):"height"===i?Math.min(e.offsetHeight,e.scrollHeight)-t.getStyle(e,"padding-top")-t.getStyle(e,"padding-bottom"):((e=r.getComputedStyle(e,void 0))&&(e=e.getPropertyValue(i),t.pick(n,!0)&&(e=t.pInt(e))),e)},t.inArray=function(t,e){return e.indexOf?e.indexOf(t):[].indexOf.call(e,t)},t.grep=function(t,e){return[].filter.call(t,e)},t.find=function(t,e){return[].find.call(t,e)},t.map=function(t,e){for(var i=[],n=0,r=t.length;n<r;n++)i[n]=e.call(t[n],t[n],n,t);return i},t.offset=function(t){var e=n.documentElement;return{top:(t=t.getBoundingClientRect()).top+(r.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(r.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},t.stop=function(t,i){for(var n=e.length;n--;)e[n].elem!==t||i&&i!==e[n].prop||(e[n].stopped=!0)},t.each=function(t,e,i){return Array.prototype.forEach.call(t,e,i)},t.objectEach=function(t,e,i){for(var n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)},t.addEvent=function(e,i,n){function o(t){t.target=t.srcElement||r,n.call(e,t)}var s=e.hcEvents=e.hcEvents||{};return e.addEventListener?e.addEventListener(i,n,!1):e.attachEvent&&(e.hcEventsIE||(e.hcEventsIE={}),e.hcEventsIE[n.toString()]=o,e.attachEvent("on"+i,o)),s[i]||(s[i]=[]),s[i].push(n),function(){t.removeEvent(e,i,n)}},t.removeEvent=function(e,i,n){function r(t,i){e.removeEventListener?e.removeEventListener(t,i,!1):e.attachEvent&&(i=e.hcEventsIE[i.toString()],e.detachEvent("on"+t,i))}function o(){var n,o;e.nodeName&&(i?(n={})[i]=!0:n=l,t.objectEach(n,function(t,e){if(l[e])for(o=l[e].length;o--;)r(e,l[e][o])}))}var s,a,l=e.hcEvents;l&&(i?(s=l[i]||[],n?(-1<(a=t.inArray(n,s))&&(s.splice(a,1),l[i]=s),r(i,n)):(o(),l[i]=[])):(o(),e.hcEvents={}))},t.fireEvent=function(e,i,r,o){var s,a,l;if(s=e.hcEvents,r=r||{},n.createEvent&&(e.dispatchEvent||e.fireEvent))(s=n.createEvent("Events")).initEvent(i,!0,!0),t.extend(s,r),e.dispatchEvent?e.dispatchEvent(s):e.fireEvent(i,s);else if(s)for(a=(s=s[i]||[]).length,r.target||t.extend(r,{preventDefault:function(){r.defaultPrevented=!0},target:e,type:i}),i=0;i<a;i++)(l=s[i])&&!1===l.call(e,r)&&r.preventDefault();o&&!r.defaultPrevented&&o(r)},t.animate=function(e,i,n){var r,o,s,a,l="";t.isObject(n)||(n={duration:(a=arguments)[2],easing:a[3],complete:a[4]}),t.isNumber(n.duration)||(n.duration=400),n.easing="function"==typeof n.easing?n.easing:Math[n.easing]||Math.easeInOutSine,n.curAnim=t.merge(i),t.objectEach(i,function(a,h){t.stop(e,h),s=new t.Fx(e,n,h),o=null,"d"===h?(s.paths=s.initPath(e,e.d,i.d),s.toD=i.d,r=0,o=1):e.attr?r=e.attr(h):(r=parseFloat(t.getStyle(e,h))||0,"opacity"!==h&&(l="px")),o||(o=a),o&&o.match&&o.match("px")&&(o=o.replace(/px/g,"")),s.run(r,o,l)})},t.seriesType=function(e,i,n,r,o){var s=t.getOptions(),a=t.seriesTypes;return s.plotOptions[e]=t.merge(s.plotOptions[i],n),a[e]=t.extendClass(a[i]||function(){},r),a[e].prototype.type=e,o&&(a[e].prototype.pointClass=t.extendClass(t.Point,o)),a[e]},t.uniqueKey=function(){var t=Math.random().toString(36).substring(2,9),e=0;return function(){return"highcharts-"+t+"-"+e++}}(),r.jQuery&&(r.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[t.isString(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):i[t.attr(this[0],"data-highcharts-chart")]}),n&&!n.defaultView&&(t.getStyle=function(e,i){var n={width:"clientWidth",height:"clientHeight"}[i];return e.style[i]?t.pInt(e.style[i]):("opacity"===i&&(i="filter"),n?(e.style.zoom=1,Math.max(e[n]-2*t.getStyle(e,"padding"),0)):(e=e.currentStyle[i.replace(/\-(\w)/g,function(t,e){return e.toUpperCase()})],"filter"===i&&(e=e.replace(/alpha\(opacity=([0-9]+)\)/,function(t,e){return e/100})),""===e?1:t.pInt(e)))}),Array.prototype.forEach||(t.each=function(t,e,i){for(var n=0,r=t.length;n<r;n++)if(!1===e.call(i,t[n],n,t))return n}),Array.prototype.indexOf||(t.inArray=function(t,e){var i,n=0;if(e)for(i=e.length;n<i;n++)if(e[n]===t)return n;return-1}),Array.prototype.filter||(t.grep=function(t,e){for(var i=[],n=0,r=t.length;n<r;n++)e(t[n],n)&&i.push(t[n]);return i}),Array.prototype.find||(t.find=function(t,e){var i,n=t.length;for(i=0;i<n;i++)if(e(t[i],i))return t[i]})}(t=e.Highcharts?e.Highcharts.error(16,!0):{product:"Highcharts",version:"5.0.11",deg2rad:2*Math.PI/360,doc:i,hasBidiBug:l,hasTouch:i&&void 0!==i.documentElement.ontouchstart,isMS:o,isWebKit:/AppleWebKit/.test(n),isFirefox:a,isTouchDevice:/(Mobile|Android|Windows Phone)/.test(n),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:r,vml:s,win:e,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]}),function(t){var e=t.each,i=t.isNumber,n=t.map,r=t.merge,o=t.pInt;t.Color=function(e){if(!(this instanceof t.Color))return new t.Color(e);this.init(e)},t.Color.prototype={parsers:[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(t){return[o(t[1]),o(t[2]),o(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[o(t[1]),o(t[2]),o(t[3]),1]}}],names:{white:"#ffffff",black:"#000000"},init:function(e){var i,r,o,s;if((this.input=e=this.names[e&&e.toLowerCase?e.toLowerCase():""]||e)&&e.stops)this.stops=n(e.stops,function(e){return new t.Color(e[1])});else if(e&&"#"===e[0]&&(i=e.length,e=parseInt(e.substr(1),16),7===i?r=[(16711680&e)>>16,(65280&e)>>8,255&e,1]:4===i&&(r=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])),!r)for(o=this.parsers.length;o--&&!r;)(i=(s=this.parsers[o]).regex.exec(e))&&(r=s.parse(i));this.rgba=r||[]},get:function(t){var n,o=this.input,s=this.rgba;return this.stops?((n=r(o)).stops=[].concat(n.stops),e(this.stops,function(e,i){n.stops[i]=[n.stops[i][0],e.get(t)]})):n=s&&i(s[0])?"rgb"===t||!t&&1===s[3]?"rgb("+s[0]+","+s[1]+","+s[2]+")":"a"===t?s[3]:"rgba("+s.join(",")+")":o,n},brighten:function(t){var n,r=this.rgba;if(this.stops)e(this.stops,function(e){e.brighten(t)});else if(i(t)&&0!==t)for(n=0;3>n;n++)r[n]+=o(255*t),0>r[n]&&(r[n]=0),255<r[n]&&(r[n]=255);return this},setOpacity:function(t){return this.rgba[3]=t,this}},t.color=function(e){return new t.Color(e)}}(t),function(t){var e,i,n=t.addEvent,r=t.animate,o=t.attr,s=t.charts,a=t.color,l=t.css,h=t.createElement,c=t.defined,u=t.deg2rad,d=t.destroyObjectProperties,p=t.doc,f=t.each,g=t.extend,m=t.erase,v=t.grep,y=t.hasTouch,x=t.inArray,b=t.isArray,w=t.isFirefox,$=t.isMS,S=t.isObject,k=t.isString,T=t.isWebKit,C=t.merge,E=t.noop,M=t.objectEach,A=t.pick,P=t.pInt,L=t.removeEvent,O=t.stop,D=t.svg,N=t.SVG_NS,I=t.symbolSizes,z=t.win;(e=t.SVGElement=function(){return this}).prototype={opacity:1,SVG_NS:N,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline".split(" "),init:function(t,e){this.element="span"===e?h(e):p.createElementNS(this.SVG_NS,e),this.renderer=t},animate:function(e,i,n){return 0!==(i=t.animObject(A(i,this.renderer.globalAnimation,!0))).duration?(n&&(i.complete=n),r(this,e,i)):(this.attr(e,null,n),i.step&&i.step.call(this)),this},colorGradient:function(e,i,n){var r,o,s,a,l,h,u,d,p,g,m,v=this.renderer,y=[];e.radialGradient?o="radialGradient":e.linearGradient&&(o="linearGradient"),o&&(s=e[o],l=v.gradients,u=e.stops,g=n.radialReference,b(s)&&(e[o]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&g&&!c(s.gradientUnits)&&(a=s,s=C(s,v.getRadialAttr(g,a),{gradientUnits:"userSpaceOnUse"})),M(s,function(t,e){"id"!==e&&y.push(e,t)}),M(u,function(t){y.push(t)}),l[y=y.join(",")]?g=l[y].attr("id"):(s.id=g=t.uniqueKey(),l[y]=h=v.createElement(o).attr(s).add(v.defs),h.radAttr=a,h.stops=[],f(u,function(e){0===e[1].indexOf("rgba")?(r=t.color(e[1]),d=r.get("rgb"),p=r.get("a")):(d=e[1],p=1),e=v.createElement("stop").attr({offset:e[0],"stop-color":d,"stop-opacity":p}).add(h),h.stops.push(e)})),m="url("+v.url+"#"+g+")",n.setAttribute(i,m),n.gradient=y,e.toString=function(){return m})},applyTextOutline:function(e){var i,n,r,s,a,l=this.element;if(-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(l.style.fill))),e=e.split(" "),n=e[e.length-1],(r=e[0])&&"none"!==r&&t.svg){for(this.fakeTS=!0,e=[].slice.call(l.getElementsByTagName("tspan")),this.ySetter=this.xSetter,r=r.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*e+i}),a=e.length;a--;)"highcharts-text-outline"===(i=e[a]).getAttribute("class")&&m(e,l.removeChild(i));s=l.firstChild,f(e,function(t,e){0===e&&(t.setAttribute("x",l.getAttribute("x")),e=l.getAttribute("y"),t.setAttribute("y",e||0),null===e&&l.setAttribute("y",0)),t=t.cloneNode(1),o(t,{class:"highcharts-text-outline",fill:n,stroke:n,"stroke-width":r,"stroke-linejoin":"round"}),l.insertBefore(t,s)})}},attr:function(t,e,i,n){var r,o,s,a,l=this.element,h=this;return"string"==typeof t&&void 0!==e&&(r=t,(t={})[r]=e),"string"==typeof t?h=(this[t+"Getter"]||this._defaultGetter).call(this,t,l):(M(t,function(e,i){s=!1,n||O(this,i),this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)$/.test(i)&&(o||(this.symbolAttr(t),o=!0),s=!0),!this.rotation||"x"!==i&&"y"!==i||(this.doTransform=!0),s||((a=this[i+"Setter"]||this._defaultSetter).call(this,e,i,l),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(i)&&this.updateShadows(i,e,a))},this),this.doTransform&&(this.updateTransform(),this.doTransform=!1)),i&&i(),h},updateShadows:function(t,e,i){for(var n=this.shadows,r=n.length;r--;)i.call(n[r],"height"===t?Math.max(e-(n[r].cutHeight||0),0):"d"===t?this.d:e,t,n[r])},addClass:function(t,e){var i=this.attr("class")||"";return-1===i.indexOf(t)&&(e||(t=(i+(i?" ":"")+t).replace("  "," ")),this.attr("class",t)),this},hasClass:function(t){return-1!==o(this.element,"class").indexOf(t)},removeClass:function(t){return o(this.element,"class",(o(this.element,"class")||"").replace(t,"")),this},symbolAttr:function(t){var e=this;f("x y r start end width height innerR anchorX anchorY".split(" "),function(i){e[i]=A(t[i],e[i])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},clip:function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},crisp:function(t,e){var i,n=this,r={};return e=e||t.strokeWidth||0,i=Math.round(e)%2/2,t.x=Math.floor(t.x||n.x||0)+i,t.y=Math.floor(t.y||n.y||0)+i,t.width=Math.floor((t.width||n.width||0)-2*i),t.height=Math.floor((t.height||n.height||0)-2*i),c(t.strokeWidth)&&(t.strokeWidth=e),M(t,function(t,e){n[e]!==t&&(n[e]=r[e]=t)}),r},css:function(t){var e,i,n=this.styles,r={},s=this.element,a="",h=!n,c=["textOutline","textOverflow","width"];return t&&t.color&&(t.fill=t.color),n&&M(t,function(t,e){t!==n[e]&&(r[e]=t,h=!0)}),h&&(n&&(t=g(n,r)),e=this.textWidth=t&&t.width&&"auto"!==t.width&&"text"===s.nodeName.toLowerCase()&&P(t.width),this.styles=t,e&&!D&&this.renderer.forExport&&delete t.width,$&&!D?l(this.element,t):(i=function(t,e){return"-"+e.toLowerCase()},M(t,function(t,e){-1===x(e,c)&&(a+=e.replace(/([A-Z])/g,i)+":"+t+";")}),a&&o(s,"style",a)),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))),this},strokeWidth:function(){return this["stroke-width"]||0},on:function(t,e){var i=this,n=i.element;return y&&"click"===t?(n.ontouchstart=function(t){i.touchEventFired=Date.now(),t.preventDefault(),e.call(n,t)},n.onclick=function(t){(-1===z.navigator.userAgent.indexOf("Android")||1100<Date.now()-(i.touchEventFired||0))&&e.call(n,t)}):n["on"+t]=e,this},setRadialReference:function(t){var e=this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},translate:function(t,e){return this.attr({translateX:t,translateY:e})},invert:function(t){return this.inverted=t,this.updateTransform(),this},updateTransform:function(){var t=this.translateX||0,e=this.translateY||0,i=this.scaleX,n=this.scaleY,r=this.inverted,o=this.rotation,s=this.element;r&&(t+=this.width,e+=this.height),t=["translate("+t+","+e+")"],r?t.push("rotate(90) scale(-1,1)"):o&&t.push("rotate("+o+" "+(s.getAttribute("x")||0)+" "+(s.getAttribute("y")||0)+")"),(c(i)||c(n))&&t.push("scale("+A(i,1)+" "+A(n,1)+")"),t.length&&s.setAttribute("transform",t.join(" "))},toFront:function(){var t=this.element;return t.parentNode.appendChild(t),this},align:function(t,e,i){var n,r,o,s,a,l,h={};return o=(r=this.renderer).alignedObjects,t?(this.alignOptions=t,this.alignByTranslate=e,(!i||k(i))&&(this.alignTo=n=i||"renderer",m(o,this),o.push(this),i=null)):(t=this.alignOptions,e=this.alignByTranslate,n=this.alignTo),i=A(i,r[n],r),n=t.align,r=t.verticalAlign,o=(i.x||0)+(t.x||0),s=(i.y||0)+(t.y||0),"right"===n?a=1:"center"===n&&(a=2),a&&(o+=(i.width-(t.width||0))/a),h[e?"translateX":"x"]=Math.round(o),"bottom"===r?l=1:"middle"===r&&(l=2),l&&(s+=(i.height-(t.height||0))/l),h[e?"translateY":"y"]=Math.round(s),this[this.placed?"animate":"attr"](h),this.placed=!0,this.alignAttr=h,this},getBBox:function(t,e){var i,n,r,o,s,a=this.renderer,l=this.element,h=this.styles,c=this.textStr,d=a.cache,p=a.cacheKeys;if(n=(e=A(e,this.rotation))*u,r=h&&h.fontSize,void 0!==c&&(-1===(s=c.toString()).indexOf("<")&&(s=s.replace(/[0-9]/g,"0")),s+=["",e||0,r,h&&h.width,h&&h.textOverflow].join()),s&&!t&&(i=d[s]),!i){if(l.namespaceURI===this.SVG_NS||a.forExport){try{(o=this.fakeTS&&function(t){f(l.querySelectorAll(".highcharts-text-outline"),function(e){e.style.display=t})})&&o("none"),i=l.getBBox?g({},l.getBBox()):{width:l.offsetWidth,height:l.offsetHeight},o&&o("")}catch(t){}(!i||0>i.width)&&(i={width:0,height:0})}else i=this.htmlGetBBox();if(a.isSVG&&(t=i.width,a=i.height,h&&"11px"===h.fontSize&&17===Math.round(a)&&(i.height=a=14),e&&(i.width=Math.abs(a*Math.sin(n))+Math.abs(t*Math.cos(n)),i.height=Math.abs(a*Math.cos(n))+Math.abs(t*Math.sin(n)))),s&&0<i.height){for(;250<p.length;)delete d[p.shift()];d[s]||p.push(s),d[s]=i}}return i},show:function(t){return this.attr({visibility:t?"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(t){var e=this;e.animate({opacity:0},{duration:t||150,complete:function(){e.attr({y:-9999})}})},add:function(t){var e,i=this.renderer,n=this.element;return t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&i.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:i.box).appendChild(n),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(t){var e=t.parentNode;e&&e.removeChild(t)},destroy:function(){var t=this,e=t.element||{},i=t.renderer.isSVG&&"SPAN"===e.nodeName&&t.parentGroup,n=e.ownerSVGElement;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,O(t),t.clipPath&&n&&(f(n.querySelectorAll("[clip-path]"),function(e){-1<e.getAttribute("clip-path").indexOf(t.clipPath.element.id+")")&&e.removeAttribute("clip-path")}),t.clipPath=t.clipPath.destroy()),t.stops){for(n=0;n<t.stops.length;n++)t.stops[n]=t.stops[n].destroy();t.stops=null}for(t.safeRemoveChild(e),t.destroyShadows();i&&i.div&&0===i.div.childNodes.length;)e=i.parentGroup,t.safeRemoveChild(i.div),delete i.div,i=e;return t.alignTo&&m(t.renderer.alignedObjects,t),M(t,function(e,i){delete t[i]}),null},shadow:function(t,e,i){var n,r,s,a,l,h,c=[],u=this.element;if(t){if(!this.shadows){for(a=A(t.width,3),l=(t.opacity||.15)/a,h=this.parentInverted?"(-1,-1)":"("+A(t.offsetX,1)+", "+A(t.offsetY,1)+")",n=1;n<=a;n++)r=u.cloneNode(0),s=2*a+1-2*n,o(r,{isShadow:"true",stroke:t.color||"#000000","stroke-opacity":l*n,"stroke-width":s,transform:"translate"+h,fill:"none"}),i&&(o(r,"height",Math.max(o(r,"height")-s,0)),r.cutHeight=s),e?e.element.appendChild(r):u.parentNode.insertBefore(r,u),c.push(r);this.shadows=c}}else this.destroyShadows();return this},destroyShadows:function(){f(this.shadows||[],function(t){this.safeRemoveChild(t)},this),this.shadows=void 0},xGetter:function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},_defaultGetter:function(t){return t=A(this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},dSetter:function(t,e,i){t&&t.join&&(t=t.join(" ")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),i.setAttribute(e,t),this[e]=t},dashstyleSetter:function(t){var e,i=this["stroke-width"];if("inherit"===i&&(i=1),t=t&&t.toLowerCase()){for(e=(t=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",")).length;e--;)t[e]=P(t[e])*i;t=t.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},alignSetter:function(t){this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[t])},opacitySetter:function(t,e,i){this[e]=t,i.setAttribute(e,t)},titleSetter:function(t){var e=this.element.getElementsByTagName("title")[0];e||(e=p.createElementNS(this.SVG_NS,"title"),this.element.appendChild(e)),e.firstChild&&e.removeChild(e.firstChild),e.appendChild(p.createTextNode(String(A(t),"").replace(/<[^>]*>/g,"")))},textSetter:function(t){t!==this.textStr&&(delete this.bBox,this.textStr=t,this.added&&this.renderer.buildText(this))},fillSetter:function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.colorGradient(t,e,i)},visibilitySetter:function(t,e,i){"inherit"===t?i.removeAttribute(e):i.setAttribute(e,t)},zIndexSetter:function(t,e){var i,n,r,o=this.renderer,s=this.parentGroup,a=(s||o).element||o.box,l=this.element;if(i=this.added,c(t)&&(l.zIndex=t,t=+t,this[e]===t&&(i=!1),this[e]=t),i){for((t=this.zIndex)&&s&&(s.handleZ=!0),e=a.childNodes,r=0;r<e.length&&!n;r++)i=(s=e[r]).zIndex,s!==l&&(P(i)>t||!c(t)&&c(i)||0>t&&!c(i)&&a!==o.box)&&(a.insertBefore(l,s),n=!0);n||a.appendChild(l)}return n},_defaultSetter:function(t,e,i){i.setAttribute(e,t)}},e.prototype.yGetter=e.prototype.xGetter,e.prototype.translateXSetter=e.prototype.translateYSetter=e.prototype.rotationSetter=e.prototype.verticalAlignSetter=e.prototype.scaleXSetter=e.prototype.scaleYSetter=function(t,e){this[e]=t,this.doTransform=!0},e.prototype["stroke-widthSetter"]=e.prototype.strokeSetter=function(t,i,n){this[i]=t,this.stroke&&this["stroke-width"]?(e.prototype.fillSetter.call(this,this.stroke,"stroke",n),n.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===i&&0===t&&this.hasStroke&&(n.removeAttribute("stroke"),this.hasStroke=!1)},(i=t.SVGRenderer=function(){this.init.apply(this,arguments)}).prototype={Element:e,SVG_NS:N,init:function(t,e,i,r,s,a){var h,c;h=(r=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}).css(this.getStyle(r))).element,t.appendChild(h),-1===t.innerHTML.indexOf("xmlns")&&o(h,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=h,this.boxWrapper=r,this.alignedObjects=[],this.url=(w||T)&&p.getElementsByTagName("base").length?z.location.href.replace(/#.*?$/,"").replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(p.createTextNode("Created with Highcharts 5.0.11")),this.defs=this.createElement("defs").add(),this.allowHTML=a,this.forExport=s,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),w&&t.getBoundingClientRect&&((e=function(){l(t,{left:0,top:0}),c=t.getBoundingClientRect(),l(t,{left:Math.ceil(c.left)-c.left+"px",top:Math.ceil(c.top)-c.top+"px"})})(),this.unSubPixelFix=n(z,"resize",e))},getStyle:function(t){return this.style=g({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},setStyle:function(t){this.boxWrapper.css(this.getStyle(t))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),d(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:E,getRadialAttr:function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},getSpanWidth:function(t,e){var i=t.getBBox(!0).width;return!D&&this.forExport&&(i=this.measureSpanWidth(e.firstChild.data,t.styles)),i},applyEllipsis:function(t,e,i,n){var r,o=(s=this.getSpanWidth(t,e))>n,s=i,a=0,l=i.length,h=function(t){e.removeChild(e.firstChild),t&&e.appendChild(p.createTextNode(t))};if(o){for(;a<=l;)r=Math.ceil((a+l)/2),h(s=i.substring(0,r)+"…"),s=this.getSpanWidth(t,e),a===l?a=l+1:s>n?l=r-1:a=r;0===l&&h("")}return o},buildText:function(t){var e,i,n,r,s,a,h=t.element,c=this,u=c.forExport,d=A(t.textStr,"").toString(),g=-1!==d.indexOf("<"),m=h.childNodes,y=o(h,"x"),x=t.styles,b=t.textWidth,w=x&&x.lineHeight,$=x&&x.textOutline,S=x&&"ellipsis"===x.textOverflow,k=x&&"nowrap"===x.whiteSpace,T=x&&x.fontSize,C=m.length,E=(x=b&&!t.added&&this.box,function(t){var e;return e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:T||c.style.fontSize||12,w?P(w):c.fontMetrics(e,t.getAttribute("style")?t:h).h});if((s=[d,S,k,w,$,T,b].join())!==t.textCache){for(t.textCache=s;C--;)h.removeChild(m[C]);g||$||S||b||-1!==d.indexOf(" ")?(e=/<.*class="([^"]+)".*>/,i=/<.*style="([^"]+)".*>/,n=/<.*href="(http[^"]+)".*>/,x&&x.appendChild(h),d=g?d.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g):[d],d=v(d,function(t){return""!==t}),f(d,function(s,d){var g,m=0;s=s.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||"),g=s.split("|||"),f(g,function(s){if(""!==s||1===g.length){var f,v,x={},w=p.createElementNS(c.SVG_NS,"tspan");if(e.test(s)&&(f=s.match(e)[1],o(w,"class",f)),i.test(s)&&(v=s.match(i)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),o(w,"style",v)),n.test(s)&&!u&&(o(w,"onclick",'location.href="'+s.match(n)[1]+'"'),l(w,{cursor:"pointer"}))," "!==(s=(s.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,"<").replace(/&gt;/g,">"))){if(w.appendChild(p.createTextNode(s)),m?x.dx=0:d&&null!==y&&(x.x=y),o(w,x),h.appendChild(w),!m&&a&&(!D&&u&&l(w,{display:"block"}),o(w,"dy",E(w))),b){x=s.replace(/([^\^])-/g,"$1- ").split(" "),f=1<g.length||d||1<x.length&&!k;var $,T=[],C=E(w),M=t.rotation;for(S&&(r=c.applyEllipsis(t,w,s,b));!S&&f&&(x.length||T.length);)t.rotation=0,s=($=c.getSpanWidth(t,w))>b,void 0===r&&(r=s),s&&1!==x.length?(w.removeChild(w.firstChild),T.unshift(x.pop())):(x=T,T=[],x.length&&!k&&(w=p.createElementNS(N,"tspan"),o(w,{dy:C,x:y}),v&&o(w,"style",v),h.appendChild(w)),$>b&&(b=$)),x.length&&w.appendChild(p.createTextNode(x.join(" ").replace(/- /g,"-")));t.rotation=M}m++}}}),a=a||h.childNodes.length}),r&&t.attr("title",t.textStr),x&&x.removeChild(h),$&&t.applyTextOutline&&t.applyTextOutline($)):h.appendChild(p.createTextNode(d.replace(/&lt;/g,"<").replace(/&gt;/g,">")))}},getContrast:function(t){return 510<(t=a(t).rgba)[0]+t[1]+t[2]?"#000000":"#FFFFFF"},button:function(t,e,i,r,o,s,a,l,h){var c,u,d,p,f=this.label(t,e,i,h,null,null,null,null,"button"),m=0;return f.attr(C({padding:8,r:2},o)),o=C({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},o),c=o.style,delete o.style,s=C(o,{fill:"#e6e6e6"},s),u=s.style,delete s.style,a=C(o,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},a),d=a.style,delete a.style,l=C(o,{style:{color:"#cccccc"}},l),p=l.style,delete l.style,n(f.element,$?"mouseover":"mouseenter",function(){3!==m&&f.setState(1)}),n(f.element,$?"mouseout":"mouseleave",function(){3!==m&&f.setState(m)}),f.setState=function(t){1!==t&&(f.state=m=t),f.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),f.attr([o,s,a,l][t||0]).css([c,u,d,p][t||0])},f.attr(o).css(g({cursor:"default"},c)),f.on("click",function(t){3!==m&&r.call(f,t)})},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=Math.round(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=Math.round(t[2])+e%2/2),t},path:function(t){var e={fill:"none"};return b(t)?e.d=t:S(t)&&g(e,t),this.createElement("path").attr(e)},circle:function(t,e,i){return t=S(t)?t:{x:t,y:e,r:i},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},e.attr(t)},arc:function(t,e,i,n,r,o){return S(t)?(e=(n=t).y,i=n.r,t=n.x):n={innerR:n,start:r,end:o},(t=this.symbol("arc",t,e,i,i,n)).r=i,t},rect:function(t,e,i,n,r,s){r=S(t)?t.r:r;var a=this.createElement("rect");return t=S(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(i,0),height:Math.max(n,0)},void 0!==s&&(t.strokeWidth=s,t=a.crisp(t)),t.fill="none",r&&(t.r=r),a.rSetter=function(t,e,i){o(i,{rx:t,ry:t})},a.attr(t)},setSize:function(t,e,i){var n=this.alignedObjects,r=n.length;for(this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:A(i,!0)?void 0:0});r--;)n[r].align()},g:function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},image:function(t,e,i,n,r){var o={preserveAspectRatio:"none"};return 1<arguments.length&&g(o,{x:e,y:i,width:n,height:r}),(o=this.createElement("image").attr(o)).element.setAttributeNS?o.element.setAttributeNS("http://www.w3.org/1999/xlink","href",t):o.element.setAttribute("hc-svg-href",t),o},symbol:function(t,e,i,n,r,o){var a,u,d,m=this,v=/^url\((.*?)\)$/,y=v.test(t),x=!y&&(this.symbols[t]?t:"circle"),b=x&&this.symbols[x],w=c(e)&&b&&b.call(this.symbols,Math.round(e),Math.round(i),n,r,o);return b?((a=this.path(w)).attr("fill","none"),g(a,{symbolName:x,x:e,y:i,width:n,height:r}),o&&g(a,o)):y&&(u=t.match(v)[1],(a=this.image(u)).imgwidth=A(I[u]&&I[u].width,o&&o.width),a.imgheight=A(I[u]&&I[u].height,o&&o.height),d=function(){a.attr({width:a.width,height:a.height})},f(["width","height"],function(t){a[t+"Setter"]=function(t,e){var i={},n=this["img"+e],r="width"===e?"translateX":"translateY";this[e]=t,c(n)&&(this.element&&this.element.setAttribute(e,n),this.alignByTranslate||(i[r]=((this[e]||0)-n)/2,this.attr(i)))}}),c(e)&&a.attr({x:e,y:i}),a.isImg=!0,c(a.imgwidth)&&c(a.imgheight)?d():(a.attr({width:0,height:0}),h("img",{onload:function(){var t=s[m.chartIndex];0===this.width&&(l(this,{position:"absolute",top:"-999em"}),p.body.appendChild(this)),I[u]={width:this.width,height:this.height},a.imgwidth=this.width,a.imgheight=this.height,a.element&&d(),this.parentNode&&this.parentNode.removeChild(this),m.imgCount--,!m.imgCount&&t&&t.onload&&t.onload()},src:u}),this.imgCount++)),a},symbols:{circle:function(t,e,i,n){return this.arc(t+i/2,e+n/2,i/2,n/2,{start:0,end:2*Math.PI,open:!1})},square:function(t,e,i,n){return["M",t,e,"L",t+i,e,t+i,e+n,t,e+n,"Z"]},triangle:function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n,t,e+n,"Z"]},"triangle-down":function(t,e,i,n){return["M",t,e,"L",t+i,e,t+i/2,e+n,"Z"]},diamond:function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n/2,t+i/2,e+n,t,e+n/2,"Z"]},arc:function(t,e,i,n,r){var o=r.start,s=r.r||i,a=r.r||n||i,l=r.end-.001;i=r.innerR,n=r.open;var h=Math.cos(o),u=Math.sin(o),d=Math.cos(l);l=Math.sin(l);return s=["M",t+s*h,e+a*u,"A",s,a,0,r=r.end-o<Math.PI?0:1,1,t+s*d,e+a*l],c(i)&&s.push(n?"M":"L",t+i*d,e+i*l,"A",i,i,0,r,0,t+i*h,e+i*u),s.push(n?"":"Z"),s},callout:function(t,e,i,n,r){var o,s=Math.min(r&&r.r||0,i,n),a=s+6,l=r&&r.anchorX;return r=r&&r.anchorY,o=["M",t+s,e,"L",t+i-s,e,"C",t+i,e,t+i,e,t+i,e+s,"L",t+i,e+n-s,"C",t+i,e+n,t+i,e+n,t+i-s,e+n,"L",t+s,e+n,"C",t,e+n,t,e+n,t,e+n-s,"L",t,e+s,"C",t,e,t,e,t+s,e],l&&l>i?r>e+a&&r<e+n-a?o.splice(13,3,"L",t+i,r-6,t+i+6,r,t+i,r+6,t+i,e+n-s):o.splice(13,3,"L",t+i,n/2,l,r,t+i,n/2,t+i,e+n-s):l&&0>l?r>e+a&&r<e+n-a?o.splice(33,3,"L",t,r+6,t-6,r,t,r-6,t,e+s):o.splice(33,3,"L",t,n/2,l,r,t,n/2,t,e+s):r&&r>n&&l>t+a&&l<t+i-a?o.splice(23,3,"L",l+6,e+n,l,e+n+6,l-6,e+n,t+s,e+n):r&&0>r&&l>t+a&&l<t+i-a&&o.splice(3,3,"L",l-6,e,l,e-6,l+6,e,i-s,e),o}},clipRect:function(e,i,n,r){var o=t.uniqueKey(),s=this.createElement("clipPath").attr({id:o}).add(this.defs);return(e=this.rect(e,i,n,r,0).add(s)).id=o,e.clipPath=s,e.count=0,e},text:function(t,e,i,n){var r=!D&&this.forExport,o={};return!n||!this.allowHTML&&this.forExport?(o.x=Math.round(e||0),i&&(o.y=Math.round(i)),(t||0===t)&&(o.text=t),t=this.createElement("text").attr(o),r&&t.css({position:"absolute"}),n||(t.xSetter=function(t,e,i){var n,r,o=i.getElementsByTagName("tspan"),s=i.getAttribute(e);for(r=0;r<o.length;r++)(n=o[r]).getAttribute(e)===s&&n.setAttribute(e,t);i.setAttribute(e,t)}),t):this.html(t,e,i)},fontMetrics:function(t,e){return t=t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize,{h:e=24>(t=/px/.test(t)?P(t):/em/.test(t)?parseFloat(t)*(e?this.fontMetrics(null,e.parentNode).f:16):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},rotCorr:function(t,e,i){var n=t;return e&&i&&(n=Math.max(n*Math.cos(e*u),4)),{x:-t/3*Math.sin(e*u),y:n}},label:function(i,n,r,o,s,a,l,h,u){var d,p,m,v,y,x,b,w,$,S,k,T,E,M=this,A=M.g("button"!==u&&"label"),P=A.text=M.text("",0,0,l).attr({zIndex:1}),O=0,D=3,N=0,I={},z=/^url\((.*?)\)$/.test(o),R=z;u&&A.addClass("highcharts-"+u),R=z,S=function(){return(w||0)%2/2},k=function(){var t=P.element.style,e={};p=(void 0===m||void 0===v||b)&&c(P.textStr)&&P.getBBox(),A.width=(m||p.width||0)+2*D+N,A.height=(v||p.height||0)+2*D,$=D+M.fontMetrics(t&&t.fontSize,P).b,R&&(d||(A.box=d=M.symbols[o]||z?M.symbol(o):M.rect(),d.addClass(("button"===u?"":"highcharts-label-box")+(u?" highcharts-"+u+"-box":"")),d.add(A),t=S(),e.x=t,e.y=(h?-$:0)+t),e.width=Math.round(A.width),e.height=Math.round(A.height),d.attr(g(e,I)),I={})},T=function(){var t,e=N+D;t=h?0:$,c(m)&&p&&("center"===b||"right"===b)&&(e+={center:.5,right:1}[b]*(m-p.width)),e===P.x&&t===P.y||(P.attr("x",e),void 0!==t&&P.attr("y",t)),P.x=e,P.y=t},E=function(t,e){d?d.attr(t,e):I[t]=e},A.onAdd=function(){P.add(A),A.attr({text:i||0===i?i:"",x:n,y:r}),d&&c(s)&&A.attr({anchorX:s,anchorY:a})},A.widthSetter=function(e){m=t.isNumber(e)?e:null},A.heightSetter=function(t){v=t},A["text-alignSetter"]=function(t){b=t},A.paddingSetter=function(t){c(t)&&t!==D&&(D=A.padding=t,T())},A.paddingLeftSetter=function(t){c(t)&&t!==N&&(N=t,T())},A.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==O&&(O=t,p&&A.attr({x:y}))},A.textSetter=function(t){void 0!==t&&P.textSetter(t),k(),T()},A["stroke-widthSetter"]=function(t,e){t&&(R=!0),w=this["stroke-width"]=t,E(e,t)},A.strokeSetter=A.fillSetter=A.rSetter=function(t,e){"fill"===e&&t&&(R=!0),E(e,t)},A.anchorXSetter=function(t,e){s=A.anchorX=t,E(e,Math.round(t)-S()-y)},A.anchorYSetter=function(t,e){a=A.anchorY=t,E(e,t-x)},A.xSetter=function(t){A.x=t,O&&(t-=O*((m||p.width)+2*D)),y=Math.round(t),A.attr("translateX",y)},A.ySetter=function(t){x=A.y=Math.round(t),A.attr("translateY",x)};var H=A.css;return g(A,{css:function(t){if(t){var e={};t=C(t),f(A.textProps,function(i){void 0!==t[i]&&(e[i]=t[i],delete t[i])}),P.css(e)}return H.call(A,t)},getBBox:function(){return{width:p.width+2*D,height:p.height+2*D,x:p.x-D,y:p.y-D}},shadow:function(t){return t&&(k(),d&&d.shadow(t)),A},destroy:function(){L(A.element,"mouseenter"),L(A.element,"mouseleave"),P&&(P=P.destroy()),d&&(d=d.destroy()),e.prototype.destroy.call(A),A=M=k=T=E=null}})}},t.Renderer=i}(t),function(t){var e=t.attr,i=t.createElement,n=t.css,r=t.defined,o=t.each,s=t.extend,a=t.isFirefox,l=t.isMS,h=t.isWebKit,c=t.pInt,u=t.SVGRenderer,d=t.win,p=t.wrap;s(t.SVGElement.prototype,{htmlCss:function(t){var e=this.element;return(e=t&&"SPAN"===e.tagName&&t.width)&&(delete t.width,this.textWidth=e,this.updateTransform()),t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=s(this.styles,t),n(this.element,t),this},htmlGetBBox:function(){var t=this.element;return"text"===t.nodeName&&(t.style.position="absolute"),{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,s=this.translateY||0,a=this.x||0,l=this.y||0,u=this.textAlign||"left",d={left:0,center:.5,right:1}[u],p=this.styles;if(n(e,{marginLeft:i,marginTop:s}),this.shadows&&o(this.shadows,function(t){n(t,{marginLeft:i+1,marginTop:s+1})}),this.inverted&&o(e.childNodes,function(i){t.invertChild(i,e)}),"SPAN"===e.tagName){var f=this.rotation,g=c(this.textWidth),m=p&&p.whiteSpace,v=[f,u,e.innerHTML,this.textWidth,this.textAlign].join();v!==this.cTT&&(p=t.fontMetrics(e.style.fontSize).b,r(f)&&this.setSpanRotation(f,d,p),n(e,{width:"",whiteSpace:m||"nowrap"}),e.offsetWidth>g&&/[ \-]/.test(e.textContent||e.innerText)&&n(e,{width:g+"px",display:"block",whiteSpace:m||"normal"}),this.getSpanCorrection(e.offsetWidth,p,d,f,u)),n(e,{left:a+(this.xCorr||0)+"px",top:l+(this.yCorr||0)+"px"}),h&&(p=e.offsetHeight),this.cTT=v}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var r={},o=l?"-ms-transform":h?"-webkit-transform":a?"MozTransform":d.opera?"-o-transform":"";r[o]=r.transform="rotate("+t+"deg)",r[o+(a?"Origin":"-origin")]=r.transformOrigin=100*e+"% "+i+"px",n(this.element,r)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),s(u.prototype,{html:function(t,n,r){var a=this.createElement("span"),l=a.element,h=a.renderer,c=h.isSVG,u=function(t,e){o(["opacity","visibility"],function(i){p(t,i+"Setter",function(t,i,n,r){t.call(this,i,n,r),e[n]=i})})};return a.textSetter=function(t){t!==l.innerHTML&&delete this.bBox,l.innerHTML=this.textStr=t,a.htmlUpdateTransform()},c&&u(a,a.element.style),a.xSetter=a.ySetter=a.alignSetter=a.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),a[e]=t,a.htmlUpdateTransform()},a.attr({text:t,x:Math.round(n),y:Math.round(r)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:"absolute"}),l.style.whiteSpace="nowrap",a.css=a.htmlCss,c&&(a.add=function(t){var n,r=h.box.parentNode,c=[];if(this.parentGroup=t){if(!(n=t.div)){for(;t;)c.push(t),t=t.parentGroup;o(c.reverse(),function(t){var o,l=e(t.element,"class");l&&(l={className:l}),n=t.div=t.div||i("div",l,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},n||r),o=n.style,s(t,{on:function(){return a.on.apply({element:c[0].div},arguments),t},translateXSetter:function(e,i){o.left=e+"px",t[i]=e,t.doTransform=!0},translateYSetter:function(e,i){o.top=e+"px",t[i]=e,t.doTransform=!0}}),u(t,o)})}}else n=r;return n.appendChild(l),a.added=!0,a.alignOnAdd&&a.htmlUpdateTransform(),a}),a}})}(t),function(t){var e,i,n=t.createElement,r=t.css,o=t.defined,s=t.deg2rad,a=t.discardElement,l=t.doc,h=t.each,c=t.erase,u=t.extend;e=t.extendClass;var d=t.isArray,p=t.isNumber,f=t.isObject,g=t.merge;i=t.noop;var m=t.pick,v=t.pInt,y=t.SVGElement,x=t.SVGRenderer,b=t.win;t.svg||((i={docMode8:l&&8===l.documentMode,init:function(t,e){var i=["<",e,' filled="f" stroked="f"'],r=["position: ","absolute",";"],o="div"===e;("shape"===e||o)&&r.push("left:0;top:0;width:1px;height:1px;"),r.push("visibility: ",o?"hidden":"visible"),i.push(' style="',r.join(""),'"/>'),e&&(i=o||"span"===e||"img"===e?i.join(""):t.prepVML(i),this.element=n(i)),this.renderer=t},add:function(t){var e=this.renderer,i=this.element,n=e.box,r=t&&t.inverted;n=t?t.element||t:n;return t&&(this.parentGroup=t),r&&e.invertChild(i,n),n.appendChild(i),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform(),this.onAdd&&this.onAdd(),this.className&&this.attr("class",this.className),this},updateTransform:y.prototype.htmlUpdateTransform,setSpanRotation:function(){var t=this.rotation,e=Math.cos(t*s),i=Math.sin(t*s);r(this.element,{filter:t?["progid:DXImageTransform.Microsoft.Matrix(M11=",e,", M12=",-i,", M21=",i,", M22=",e,", sizingMethod='auto expand')"].join(""):"none"})},getSpanCorrection:function(t,e,i,n,o){var a,l=n?Math.cos(n*s):1,h=n?Math.sin(n*s):0,c=m(this.elemHeight,this.element.offsetHeight);this.xCorr=0>l&&-t,this.yCorr=0>h&&-c,a=0>l*h,this.xCorr+=h*e*(a?1-i:i),this.yCorr-=l*e*(n?a?i:1-i:1),o&&"left"!==o&&(this.xCorr-=t*i*(0>l?-1:1),n&&(this.yCorr-=c*i*(0>h?-1:1)),r(this.element,{textAlign:o}))},pathToVML:function(t){for(var e=t.length,i=[];e--;)p(t[e])?i[e]=Math.round(10*t[e])-5:"Z"===t[e]?i[e]="x":(i[e]=t[e],!t.isArc||"wa"!==t[e]&&"at"!==t[e]||(i[e+5]===i[e+7]&&(i[e+7]+=t[e+7]>t[e+5]?1:-1),i[e+6]===i[e+8]&&(i[e+8]+=t[e+8]>t[e+6]?1:-1)));return i.join(" ")||"x"},clip:function(t){var e,i=this;return t?(e=t.members,c(e,i),e.push(i),i.destroyClip=function(){c(e,i)},t=t.getCSS(i)):(i.destroyClip&&i.destroyClip(),t={clip:i.docMode8?"inherit":"rect(auto)"}),i.css(t)},css:y.prototype.htmlCss,safeRemoveChild:function(t){t.parentNode&&a(t)},destroy:function(){return this.destroyClip&&this.destroyClip(),y.prototype.destroy.apply(this)},on:function(t,e){return this.element["on"+t]=function(){var t=b.event;t.target=t.srcElement,e(t)},this},cutOffPath:function(t,e){var i;return 9!==(i=(t=t.split(/[ ,]/)).length)&&11!==i||(t[i-4]=t[i-2]=v(t[i-2])-10*e),t.join(" ")},shadow:function(t,e,i){var r,o,s,a,l,h,c,u=[],d=this.element,p=this.renderer,f=d.style,g=d.path;if(g&&"string"!=typeof g.value&&(g="x"),l=g,t){for(h=m(t.width,3),c=(t.opacity||.15)/h,r=1;3>=r;r++)a=2*h+1-2*r,i&&(l=this.cutOffPath(g.value,a+.5)),s=['<shape isShadow="true" strokeweight="',a,'" filled="false" path="',l,'" coordsize="10 10" style="',d.style.cssText,'" />'],o=n(p.prepVML(s),null,{left:v(f.left)+m(t.offsetX,1),top:v(f.top)+m(t.offsetY,1)}),i&&(o.cutOff=a+1),s=['<stroke color="',t.color||"#000000",'" opacity="',c*r,'"/>'],n(p.prepVML(s),null,null,o),e?e.element.appendChild(o):d.parentNode.insertBefore(o,d),u.push(o);this.shadows=u}return this},updateShadows:i,setAttr:function(t,e){this.docMode8?this.element[t]=e:this.element.setAttribute(t,e)},classSetter:function(t){(this.added?this.element:this).className=t},dashstyleSetter:function(t,e,i){(i.getElementsByTagName("stroke")[0]||n(this.renderer.prepVML(["<stroke/>"]),null,null,i))[e]=t||"solid",this[e]=t},dSetter:function(t,e,i){var n=this.shadows;if(t=t||[],this.d=t.join&&t.join(" "),i.path=t=this.pathToVML(t),n)for(i=n.length;i--;)n[i].path=n[i].cutOff?this.cutOffPath(t,n[i].cutOff):t;this.setAttr(e,t)},fillSetter:function(t,e,i){var n=i.nodeName;"SPAN"===n?i.style.color=t:"IMG"!==n&&(i.filled="none"!==t,this.setAttr("fillcolor",this.renderer.color(t,i,e,this)))},"fill-opacitySetter":function(t,e,i){n(this.renderer.prepVML(["<",e.split("-")[0],' opacity="',t,'"/>']),null,null,i)},opacitySetter:i,rotationSetter:function(t,e,i){i=i.style,this[e]=i[e]=t,i.left=-Math.round(Math.sin(t*s)+1)+"px",i.top=Math.round(Math.cos(t*s))+"px"},strokeSetter:function(t,e,i){this.setAttr("strokecolor",this.renderer.color(t,i,e,this))},"stroke-widthSetter":function(t,e,i){i.stroked=!!t,this[e]=t,p(t)&&(t+="px"),this.setAttr("strokeweight",t)},titleSetter:function(t,e){this.setAttr(e,t)},visibilitySetter:function(t,e,i){"inherit"===t&&(t="visible"),this.shadows&&h(this.shadows,function(i){i.style[e]=t}),"DIV"===i.nodeName&&(t="hidden"===t?"-999em":0,this.docMode8||(i.style[e]=t?"visible":"hidden"),e="top"),i.style[e]=t},xSetter:function(t,e,i){this[e]=t,"x"===e?e="left":"y"===e&&(e="top"),this.updateClipping?(this[e]=t,this.updateClipping()):i.style[e]=t},zIndexSetter:function(t,e,i){i.style[e]=t}})["stroke-opacitySetter"]=i["fill-opacitySetter"],t.VMLElement=i=e(y,i),i.prototype.ySetter=i.prototype.widthSetter=i.prototype.heightSetter=i.prototype.xSetter,i={Element:i,isIE8:-1<b.navigator.userAgent.indexOf("MSIE 8.0"),init:function(t,e,i){var n,r;if(this.alignedObjects=[],r=(n=this.createElement("div").css({position:"relative"})).element,t.appendChild(n.element),this.isVML=!0,this.box=r,this.boxWrapper=n,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),!l.namespaces.hcv){l.namespaces.add("hcv","urn:schemas-microsoft-com:vml");try{l.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}catch(t){l.styleSheets[0].cssText+="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}}},isHidden:function(){return!this.box.offsetWidth},clipRect:function(t,e,i,n){var r=this.createElement(),o=f(t);return u(r,{members:[],count:0,left:(o?t.x:t)+1,top:(o?t.y:e)+1,width:(o?t.width:i)-1,height:(o?t.height:n)-1,getCSS:function(t){var e=(o=t.element).nodeName,i=t.inverted,n=this.top-("shape"===e?o.offsetTop:0),r=this.left,o=r+this.width,s=n+this.height;n={clip:"rect("+Math.round(i?r:n)+"px,"+Math.round(i?s:o)+"px,"+Math.round(i?o:s)+"px,"+Math.round(i?n:r)+"px)"};return!i&&t.docMode8&&"DIV"===e&&u(n,{width:o+"px",height:s+"px"}),n},updateClipping:function(){h(r.members,function(t){t.element&&t.css(r.getCSS(t))})}})},color:function(e,i,r,o){var s,a,l,c=this,u=/^rgba/,d="none";if(e&&e.linearGradient?l="gradient":e&&e.radialGradient&&(l="pattern"),l){var p,f,g,m,v,y,x,b=e.linearGradient||e.radialGradient,w="";e=e.stops;var $,S=[],k=function(){a=['<fill colors="'+S.join(",")+'" opacity="',v,'" o:opacity2="',m,'" type="',l,'" ',w,'focus="100%" method="any" />'],n(c.prepVML(a),null,null,i)};if(g=e[0],$=e[e.length-1],0<g[0]&&e.unshift([0,g[1]]),1>$[0]&&e.push([1,$[1]]),h(e,function(e,i){u.test(e[1])?(s=t.color(e[1]),p=s.get("rgb"),f=s.get("a")):(p=e[1],f=1),S.push(100*e[0]+"% "+p),i?(v=f,y=p):(m=f,x=p)}),"fill"===r)if("gradient"===l)r=b.x1||b[0]||0,e=b.y1||b[1]||0,g=b.x2||b[2]||0,b=b.y2||b[3]||0,w='angle="'+(90-180*Math.atan((b-e)/(g-r))/Math.PI)+'"',k();else{var T,C=2*(d=b.r),E=2*d,M=b.cx,A=b.cy,P=i.radialReference;d=function(){P&&(T=o.getBBox(),M+=(P[0]-T.x)/T.width-.5,A+=(P[1]-T.y)/T.height-.5,C*=P[2]/T.width,E*=P[2]/T.height),w='src="'+t.getOptions().global.VMLRadialGradientURL+'" size="'+C+","+E+'" origin="0.5,0.5" position="'+M+","+A+'" color2="'+x+'" ',k()};o.added?d():o.onAdd=d,d=y}else d=p}else u.test(e)&&"IMG"!==i.tagName?(s=t.color(e),o[r+"-opacitySetter"](s.get("a"),r,i),d=s.get("rgb")):((d=i.getElementsByTagName(r)).length&&(d[0].opacity=1,d[0].type="solid"),d=e);return d},prepVML:function(t){var e=this.isIE8;return t=t.join(""),e?t=-1===(t=t.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />')).indexOf('style="')?t.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):t.replace('style="','style="display:inline-block;behavior:url(#default#VML);'):t=t.replace("<","<hcv:"),t},text:x.prototype.html,path:function(t){var e={coordsize:"10 10"};return d(t)?e.d=t:f(t)&&u(e,t),this.createElement("shape").attr(e)},circle:function(t,e,i){var n=this.symbol("circle");return f(t)&&(i=t.r,e=t.y,t=t.x),n.isCircle=!0,n.r=i,n.attr({x:t,y:e})},g:function(t){var e;return t&&(e={className:"highcharts-"+t,class:"highcharts-"+t}),this.createElement("div").attr(e)},image:function(t,e,i,n,r){var o=this.createElement("img").attr({src:t});return 1<arguments.length&&o.attr({x:e,y:i,width:n,height:r}),o},createElement:function(t){return"rect"===t?this.symbol(t):x.prototype.createElement.call(this,t)},invertChild:function(t,e){var i=this;e=e.style;var n="IMG"===t.tagName&&t.style;r(t,{flip:"x",left:v(e.width)-(n?v(n.top):1),top:v(e.height)-(n?v(n.left):1),rotation:-90}),h(t.childNodes,function(e){i.invertChild(e,t)})},symbols:{arc:function(t,e,i,n,r){var o=r.start,s=r.end,a=r.r||i||n;i=r.innerR,n=Math.cos(o);var l=Math.sin(o),h=Math.cos(s),c=Math.sin(s);return 0==s-o?["x"]:(o=["wa",t-a,e-a,t+a,e+a,t+a*n,e+a*l,t+a*h,e+a*c],r.open&&!i&&o.push("e","M",t,e),o.push("at",t-i,e-i,t+i,e+i,t+i*h,e+i*c,t+i*n,e+i*l,"x","e"),o.isArc=!0,o)},circle:function(t,e,i,n,r){return r&&o(r.r)&&(i=n=2*r.r),r&&r.isCircle&&(t-=i/2,e-=n/2),["wa",t,e,t+i,e+n,t+i,e+n/2,t+i,e+n/2,"e"]},rect:function(t,e,i,n,r){return x.prototype.symbols[o(r)&&r.r?"callout":"square"].call(0,t,e,i,n,r)}}},t.VMLRenderer=e=function(){this.init.apply(this,arguments)},e.prototype=g(x.prototype,i),t.Renderer=e),x.prototype.measureSpanWidth=function(t,e){var i=l.createElement("span");return t=l.createTextNode(t),i.appendChild(t),r(i,e),this.box.appendChild(i),e=i.offsetWidth,a(i),e}}(t),function(t){function e(){var e,i=t.defaultOptions.global,o=i.useUTC,l=o?"getUTC":"get",h=o?"setUTC":"set";t.Date=e=i.Date||a.Date,e.hcTimezoneOffset=o&&i.timezoneOffset,e.hcGetTimezoneOffset=function(){var e=t.defaultOptions.global,i=a.moment;if(e.timezone){if(i)return function(t){return-i.tz(t,e.timezone).utcOffset()};t.error(25)}return e.useUTC&&e.getTimezoneOffset}(),e.hcMakeTime=function(t,i,n,a,l,h){var c;return o?(c=e.UTC.apply(0,arguments),c+=r(c)):c=new e(t,i,s(n,1),s(a,0),s(l,0),s(h,0)).getTime(),c},n("Minutes Hours Day Date Month FullYear".split(" "),function(t){e["hcGet"+t]=l+t}),n("Milliseconds Seconds Minutes Hours Date Month FullYear".split(" "),function(t){e["hcSet"+t]=h+t})}var i=t.color,n=t.each,r=t.getTZOffset,o=t.merge,s=t.pick,a=t.win;t.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{useUTC:!0,VMLRadialGradientURL:"http://code.highcharts.com/5.0.11/gfx/vml-radial-gradient.png"},chart:{borderRadius:0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",fontSize:"12px",fontWeight:"bold"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:t.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:t.isTouchDevice?25:10,backgroundColor:i("#f7f7f7").setOpacity(.85).get(),borderWidth:1,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},t.setOptions=function(i){return t.defaultOptions=o(!0,t.defaultOptions,i),e(),t.defaultOptions},t.getOptions=function(){return t.defaultOptions},t.defaultPlotOptions=t.defaultOptions.plotOptions,e()}(t),function(t){var e=t.correctFloat,i=t.defined,n=t.destroyObjectProperties,r=t.isNumber,o=t.merge,s=t.pick,a=t.deg2rad;t.Tick=function(t,e,i,n){this.axis=t,this.pos=e,this.type=i||"",this.isNew=!0,i||n||this.addLabel()},t.Tick.prototype={addLabel:function(){var t,n=this.axis,r=n.options,a=n.chart,l=n.categories,h=n.names,c=this.pos,u=r.labels,d=c===(f=n.tickPositions)[0],p=c===f[f.length-1],f=(h=l?s(l[c],h[c],c):c,l=this.label,f.info);n.isDatetimeAxis&&f&&(t=r.dateTimeLabelFormats[f.higherRanks[c]||f.unitName]),this.isFirst=d,this.isLast=p,r=n.labelFormatter.call({axis:n,chart:a,isFirst:d,isLast:p,dateTimeLabelFormat:t,value:n.isLog?e(n.lin2log(h)):h}),i(l)?l&&l.attr({text:r}):(this.labelLength=(this.label=l=i(r)&&u.enabled?a.renderer.text(r,0,0,u.useHTML).css(o(u.style)).add(n.labelGroup):null)&&l.getBBox().width,this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(t){var e,i=this.axis,n=t.x,r=i.chart.chartWidth,o=i.chart.spacing,l=s(i.labelLeft,Math.min(i.pos,o[3])),h=(o=s(i.labelRight,Math.max(i.pos+i.len,r-o[1])),this.label),c=this.rotation,u={left:0,center:.5,right:1}[i.labelAlign],d=h.getBBox().width,p=i.getSlotWidth(),f=p,g=1,m={};c?0>c&&n-u*d<l?e=Math.round(n/Math.cos(c*a)-l):0<c&&n+u*d>o&&(e=Math.round((r-n)/Math.cos(c*a))):(r=n+(1-u)*d,n-u*d<l?f=t.x+f*(1-u)-l:r>o&&(f=o-t.x+f*u,g=-1),(f=Math.min(p,f))<p&&"center"===i.labelAlign&&(t.x+=g*(p-f-u*(p-Math.min(d,f)))),(d>f||i.autoRotation&&(h.styles||{}).width)&&(e=f)),e&&(m.width=e,(i.options.labels.style||{}).textOverflow||(m.textOverflow="ellipsis"),h.css(m))},getPosition:function(t,e,i,n){var r=this.axis,o=r.chart,s=n&&o.oldChartHeight||o.chartHeight;return{x:t?r.translate(e+i,null,null,n)+r.transB:r.left+r.offset+(r.opposite?(n&&o.oldChartWidth||o.chartWidth)-r.right-r.left:0),y:t?s-r.bottom+r.offset-(r.opposite?r.height:0):s-r.translate(e+i,null,null,n)-r.transB}},getLabelPosition:function(t,e,n,r,o,s,l,h){var c=this.axis,u=c.transA,d=c.reversed,p=c.staggerLines,f=c.tickRotCorr||{x:0,y:0},g=o.y;return i(g)||(g=0===c.side?n.rotation?-8:-n.getBBox().height:2===c.side?f.y+8:Math.cos(n.rotation*a)*(f.y-n.getBBox(!1,0).height/2)),t=t+o.x+f.x-(s&&r?s*u*(d?-1:1):0),e=e+g-(s&&!r?s*u*(d?1:-1):0),p&&(n=l/(h||1)%p,c.opposite&&(n=p-n-1),e+=c.labelOffset/p*n),{x:t,y:Math.round(e)}},getMarkPath:function(t,e,i,n,r,o){return o.crispLine(["M",t,e,"L",t+(r?0:-i),e+(r?i:0)],n)},renderGridLine:function(t,e,i){var n=this.axis,r=n.options,o=this.gridLine,s={},a=this.pos,l=this.type,h=n.tickmarkOffset,c=n.chart.renderer,u=l?l+"Grid":"grid",d=r[u+"LineWidth"],p=r[u+"LineColor"];r=r[u+"LineDashStyle"];o||(s.stroke=p,s["stroke-width"]=d,r&&(s.dashstyle=r),l||(s.zIndex=1),t&&(s.opacity=0),this.gridLine=o=c.path().attr(s).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(n.gridGroup)),!t&&o&&(t=n.getPlotLinePath(a+h,o.strokeWidth()*i,t,!0))&&o[this.isNew?"attr":"animate"]({d:t,opacity:e})},renderMark:function(t,e,i){var n=this.axis,r=n.options,o=n.chart.renderer,a=this.type,l=a?a+"Tick":"tick",h=n.tickSize(l),c=this.mark,u=!c,d=t.x;t=t.y;var p=s(r[l+"Width"],!a&&n.isXAxis?1:0);r=r[l+"Color"];h&&(n.opposite&&(h[0]=-h[0]),u&&(this.mark=c=o.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(n.axisGroup),c.attr({stroke:r,"stroke-width":p})),c[u?"attr":"animate"]({d:this.getMarkPath(d,t,h[0],c.strokeWidth()*i,n.horiz,o),opacity:e}))},renderLabel:function(t,e,i,n){var o=this.axis,a=o.horiz,l=o.options,h=this.label,c=l.labels,u=c.step,d=o.tickmarkOffset,p=!0,f=t.x;t=t.y,h&&r(f)&&(h.xy=t=this.getLabelPosition(f,t,h,a,c,d,n,u),this.isFirst&&!this.isLast&&!s(l.showFirstLabel,1)||this.isLast&&!this.isFirst&&!s(l.showLastLabel,1)?p=!1:!a||o.isRadial||c.step||c.rotation||e||0===i||this.handleOverflow(t),u&&n%u&&(p=!1),p&&r(t.y)?(t.opacity=i,h[this.isNew?"attr":"animate"](t)):h.attr("y",-9999),this.isNew=!1)},render:function(t,e,i){var n=(l=this.axis).horiz,r=this.getPosition(n,this.pos,l.tickmarkOffset,e),o=r.x,a=r.y,l=n&&o===l.pos+l.len||!n&&a===l.pos?-1:1;i=s(i,1),this.isActive=!0,this.renderGridLine(e,i,l),this.renderMark(r,i,l),this.renderLabel(r,e,i,t)},destroy:function(){n(this,this.axis)}}}(t);var h=function(t){var e=t.addEvent,i=t.animObject,n=t.arrayMax,r=t.arrayMin,o=t.color,s=t.correctFloat,a=t.defaultOptions,l=t.defined,h=t.deg2rad,c=t.destroyObjectProperties,u=t.each,d=t.extend,p=t.fireEvent,f=t.format,g=t.getMagnitude,m=t.grep,v=t.inArray,y=t.isArray,x=t.isNumber,b=t.isString,w=t.merge,$=t.normalizeTickInterval,S=t.objectEach,k=t.pick,T=t.removeEvent,C=t.splat,E=t.syncTimeout,M=t.Tick,A=function(){this.init.apply(this,arguments)};return t.extend(A.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,labels:{enabled:!0,style:{color:"#666666",cursor:"default",fontSize:"11px"},x:0},minPadding:.01,maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return t.numberFormat(this.total,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"#000000",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(t,i){var n=i.isX,r=this;r.chart=t,r.horiz=t.inverted?!n:n,r.isXAxis=n,r.coll=r.coll||(n?"xAxis":"yAxis"),r.opposite=i.opposite,r.side=i.side||(r.horiz?r.opposite?0:2:r.opposite?1:3),r.setOptions(i);var o=this.options,s=o.type;r.labelFormatter=o.labels.formatter||r.defaultLabelFormatter,r.userOptions=i,r.minPixelPadding=0,r.reversed=o.reversed,r.visible=!1!==o.visible,r.zoomEnabled=!1!==o.zoomEnabled,r.hasNames="category"===s||!0===o.categories,r.categories=o.categories||r.hasNames,r.names=r.names||[],r.plotLinesAndBandsGroups={},r.isLog="logarithmic"===s,r.isDatetimeAxis="datetime"===s,r.positiveValuesOnly=r.isLog&&!r.allowNegativeLog,r.isLinked=l(o.linkedTo),r.ticks={},r.labelEdge=[],r.minorTicks={},r.plotLinesAndBands=[],r.alternateBands={},r.len=0,r.minRange=r.userMinRange=o.minRange||o.maxZoom,r.range=o.range,r.offset=o.offset||0,r.stacks={},r.oldStacks={},r.stacksTouched=0,r.max=null,r.min=null,r.crosshair=k(o.crosshair,C(t.options.tooltip.crosshairs)[n?0:1],!1),i=r.options.events,-1===v(r,t.axes)&&(n?t.axes.splice(t.xAxis.length,0,r):t.axes.push(r),t[r.coll].push(r)),r.series=r.series||[],t.inverted&&n&&void 0===r.reversed&&(r.reversed=!0),S(i,function(t,i){e(r,i,t)}),r.lin2log=o.linearToLogConverter||r.lin2log,r.isLog&&(r.val2lin=r.log2lin,r.lin2val=r.lin2log)},setOptions:function(t){this.options=w(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],w(a[this.coll],t))},defaultLabelFormatter:function(){var e,i=this.axis,n=this.value,r=i.categories,o=this.dateTimeLabelFormat,s=(l=a.lang).numericSymbols,l=l.numericSymbolMagnitude||1e3,h=s&&s.length,c=i.options.labels.format;i=i.isLog?Math.abs(n):i.tickInterval;if(c)e=f(c,this);else if(r)e=n;else if(o)e=t.dateFormat(o,n);else if(h&&1e3<=i)for(;h--&&void 0===e;)i>=(r=Math.pow(l,h+1))&&0==10*n%r&&null!==s[h]&&0!==n&&(e=t.numberFormat(n/r,-1)+s[h]);return void 0===e&&(e=1e4<=Math.abs(n)?t.numberFormat(n,-1):t.numberFormat(n,-1,void 0,"")),e},getSeriesExtremes:function(){var t=this,e=t.chart;t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.threshold=null,t.softThreshold=!t.isXAxis,t.buildStacks&&t.buildStacks(),u(t.series,function(i){if(i.visible||!e.options.chart.ignoreHiddenSeries){var o,s=i.options,a=s.threshold;t.hasVisibleSeries=!0,t.positiveValuesOnly&&0>=a&&(a=null),t.isXAxis?(s=i.xData).length&&(i=r(s),x(i)||i instanceof Date||(s=m(s,function(t){return x(t)}),i=r(s)),t.dataMin=Math.min(k(t.dataMin,s[0]),i),t.dataMax=Math.max(k(t.dataMax,s[0]),n(s))):(i.getExtremes(),o=i.dataMax,i=i.dataMin,l(i)&&l(o)&&(t.dataMin=Math.min(k(t.dataMin,i),i),t.dataMax=Math.max(k(t.dataMax,o),o)),l(a)&&(t.threshold=a),(!s.softThreshold||t.positiveValuesOnly)&&(t.softThreshold=!1))}})},translate:function(t,e,i,n,r,o){var s=this.linkedParent||this,a=1,l=0,h=n?s.oldTransA:s.transA;n=n?s.oldMin:s.min;var c=s.minPixelPadding;return r=(s.isOrdinal||s.isBroken||s.isLog&&r)&&s.lin2val,h||(h=s.transA),i&&(a*=-1,l=s.len),s.reversed&&(l-=(a*=-1)*(s.sector||s.len)),e?(t=(t*a+l-c)/h+n,r&&(t=s.lin2val(t))):(r&&(t=s.val2lin(t)),t=a*(t-n)*h+l+a*c+(x(o)?h*o:0)),t},toPixels:function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},toValue:function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(t,e,i,n,r){var o,s,a,l=this.chart,h=this.left,c=this.top,u=i&&l.oldChartHeight||l.chartHeight,d=i&&l.oldChartWidth||l.chartWidth;o=this.transB;var p=function(t,e,i){return(t<e||t>i)&&(n?t=Math.min(Math.max(e,t),i):a=!0),t};return r=k(r,this.translate(t,null,null,i)),t=i=Math.round(r+o),o=s=Math.round(u-r-o),x(r)?this.horiz?(o=c,s=u-this.bottom,t=i=p(t,h,h+this.width)):(t=h,i=d-this.right,o=s=p(o,c,c+this.height)):a=!0,a&&!n?null:l.renderer.crispLine(["M",t,o,"L",i,s],e||1)},getLinearTickPositions:function(t,e,i){var n,r=s(Math.floor(e/t)*t);i=s(Math.ceil(i/t)*t);var o=[];if(this.single)return[e];for(e=r;e<=i&&(o.push(e),(e=s(e+t))!==n);)n=e;return o},getMinorTickPositions:function(){var t=this,e=t.options,i=t.tickPositions,n=t.minorTickInterval,r=[],o=t.pointRangePadding||0,s=t.min-o,a=(o=t.max+o)-s;if(a&&a/n<t.len/3)if(t.isLog)u(this.paddedTicks,function(e,i,o){i&&r.push.apply(r,t.getLogTickPositions(n,o[i-1],o[i],!0))});else if(t.isDatetimeAxis&&"auto"===e.minorTickInterval)r=r.concat(t.getTimeTicks(t.normalizeTimeTickInterval(n),s,o,e.startOfWeek));else for(e=s+(i[0]-s)%n;e<=o&&e!==r[0];e+=n)r.push(e);return 0!==r.length&&t.trimTicks(r),r},adjustForMinRange:function(){var t,e,i,o,s,a,h=this.options,c=this.min,d=this.max,p=this.dataMax-this.dataMin>=this.minRange;this.isXAxis&&void 0===this.minRange&&!this.isLog&&(l(h.min)||l(h.max)?this.minRange=null:(u(this.series,function(t){for(s=t.xData,i=t.xIncrement?1:s.length-1;0<i;i--)o=s[i]-s[i-1],(void 0===e||o<e)&&(e=o)}),this.minRange=Math.min(5*e,this.dataMax-this.dataMin))),d-c<this.minRange&&(t=[c-(t=((a=this.minRange)-d+c)/2),k(h.min,c-t)],p&&(t[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=[(c=n(t))+a,k(h.max,c+a)],p&&(d[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),(d=r(d))-c<a&&(t[0]=d-a,t[1]=k(h.min,d-a),c=n(t))),this.min=c,this.max=d},getClosest:function(){var t;return this.categories?t=1:u(this.series,function(e){var i=e.closestPointRange,n=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&l(i)&&n&&(t=l(t)?Math.min(t,i):i)}),t},nameToX:function(t){var e,i=y(this.categories),n=i?this.categories:this.names,r=t.options.x;return t.series.requireSorting=!1,l(r)||(r=!1===this.options.uniqueNames?t.series.autoIncrement():v(t.name,n)),-1===r?i||(e=n.length):e=r,void 0!==e&&(this.names[e]=t.name),e},updateNames:function(){var t=this;0<this.names.length&&(this.names.length=0,this.minRange=void 0,u(this.series||[],function(e){e.xIncrement=null,e.points&&!e.isDirtyData||(e.processData(),e.generatePoints()),u(e.points,function(i,n){var r;i.options&&(void 0!==(r=t.nameToX(i))&&r!==i.x&&(i.x=r,e.xData[n]=r))})}))},setAxisTranslation:function(t){var e,i=this,n=i.max-i.min,r=i.axisPointRange||0,o=0,s=0,a=i.linkedParent,l=!!i.categories,h=i.transA,c=i.isXAxis;(c||l||r)&&(e=i.getClosest(),a?(o=a.minPointOffset,s=a.pointRangePadding):u(i.series,function(t){var n=l?1:c?k(t.options.pointRange,e,0):i.axisPointRange||0;t=t.options.pointPlacement,r=Math.max(r,n),i.single||(o=Math.max(o,b(t)?0:n/2),s=Math.max(s,"on"===t?0:n))}),a=i.ordinalSlope&&e?i.ordinalSlope/e:1,i.minPointOffset=o*=a,i.pointRangePadding=s*=a,i.pointRange=Math.min(r,n),c&&(i.closestPointRange=e)),t&&(i.oldTransA=h),i.translationSlope=i.transA=h=i.options.staticScale||i.len/(n+s||1),i.transB=i.horiz?i.left:i.bottom,i.minPixelPadding=h*o},minFromRange:function(){return this.max-this.range},setTickInterval:function(e){var i,n,r,o,a=this,h=a.chart,c=a.options,d=a.isLog,f=a.log2lin,m=a.isDatetimeAxis,v=a.isXAxis,y=a.isLinked,b=c.maxPadding,w=c.minPadding,S=c.tickInterval,T=c.tickPixelInterval,C=a.categories,E=a.threshold,M=a.softThreshold;m||C||y||this.getTickAmount(),r=k(a.userMin,c.min),o=k(a.userMax,c.max),y?(a.linkedParent=h[a.coll][c.linkedTo],h=a.linkedParent.getExtremes(),a.min=k(h.min,h.dataMin),a.max=k(h.max,h.dataMax),c.type!==a.linkedParent.options.type&&t.error(11,1)):(!M&&l(E)&&(a.dataMin>=E?(i=E,w=0):a.dataMax<=E&&(n=E,b=0)),a.min=k(r,i,a.dataMin),a.max=k(o,n,a.dataMax)),d&&(a.positiveValuesOnly&&!e&&0>=Math.min(a.min,k(a.dataMin,a.min))&&t.error(10,1),a.min=s(f(a.min),15),a.max=s(f(a.max),15)),a.range&&l(a.max)&&(a.userMin=a.min=r=Math.max(a.min,a.minFromRange()),a.userMax=o=a.max,a.range=null),p(a,"foundExtremes"),a.beforePadding&&a.beforePadding(),a.adjustForMinRange(),!(C||a.axisPointRange||a.usePercentage||y)&&l(a.min)&&l(a.max)&&(f=a.max-a.min)&&(!l(r)&&w&&(a.min-=f*w),!l(o)&&b&&(a.max+=f*b)),x(c.softMin)&&(a.min=Math.min(a.min,c.softMin)),x(c.softMax)&&(a.max=Math.max(a.max,c.softMax)),x(c.floor)&&(a.min=Math.max(a.min,c.floor)),x(c.ceiling)&&(a.max=Math.min(a.max,c.ceiling)),M&&l(a.dataMin)&&(E=E||0,!l(r)&&a.min<E&&a.dataMin>=E?a.min=E:!l(o)&&a.max>E&&a.dataMax<=E&&(a.max=E)),a.tickInterval=a.min===a.max||void 0===a.min||void 0===a.max?1:y&&!S&&T===a.linkedParent.options.tickPixelInterval?S=a.linkedParent.tickInterval:k(S,this.tickAmount?(a.max-a.min)/Math.max(this.tickAmount-1,1):void 0,C?1:(a.max-a.min)*T/Math.max(a.len,T)),v&&!e&&u(a.series,function(t){t.processData(a.min!==a.oldMin||a.max!==a.oldMax)}),a.setAxisTranslation(!0),a.beforeSetTickPositions&&a.beforeSetTickPositions(),a.postProcessTickInterval&&(a.tickInterval=a.postProcessTickInterval(a.tickInterval)),a.pointRange&&!S&&(a.tickInterval=Math.max(a.pointRange,a.tickInterval)),e=k(c.minTickInterval,a.isDatetimeAxis&&a.closestPointRange),!S&&a.tickInterval<e&&(a.tickInterval=e),m||d||S||(a.tickInterval=$(a.tickInterval,null,g(a.tickInterval),k(c.allowDecimals,!(.5<a.tickInterval&&5>a.tickInterval&&1e3<a.max&&9999>a.max)),!!this.tickAmount)),this.tickAmount||(a.tickInterval=a.unsquish()),this.setTickPositions()},setTickPositions:function(){var t,e=this.options,i=e.tickPositions,n=e.tickPositioner,r=e.startOnTick,o=e.endOnTick;this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===e.minorTickInterval&&this.tickInterval?this.tickInterval/5:e.minorTickInterval,this.single=this.min===this.max&&l(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),this.tickPositions=t=i&&i.slice(),!t&&((t=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max)).length>this.len&&(t=[t[0],t.pop()]),this.tickPositions=t,n&&(n=n.apply(this,[this.min,this.max])))&&(this.tickPositions=t=n),this.paddedTicks=t.slice(0),this.trimTicks(t,r,o),this.isLinked||(this.single&&(this.min-=.5,this.max+=.5),i||n||this.adjustTickAmount())},trimTicks:function(t,e,i){var n=t[0],r=t[t.length-1],o=this.minPointOffset||0;if(!this.isLinked){if(e&&-1/0!==n)this.min=n;else for(;this.min-o>t[0];)t.shift();if(i)this.max=r;else for(;this.max+o<t[t.length-1];)t.pop();0===t.length&&l(n)&&t.push((r+n)/2)}},alignToOthers:function(){var t,e={},i=this.options;return!1===this.chart.options.chart.alignTicks||!1===i.alignTicks||this.isLog||u(this.chart[this.coll],function(i){var n=i.options;n=[i.horiz?n.left:n.top,n.width,n.height,n.pane].join();i.series.length&&(e[n]?t=!0:e[n]=1)}),t},getTickAmount:function(){var t=this.options,e=t.tickAmount,i=t.tickPixelInterval;!l(t.tickInterval)&&this.len<i&&!this.isRadial&&!this.isLog&&t.startOnTick&&t.endOnTick&&(e=2),!e&&this.alignToOthers()&&(e=Math.ceil(this.len/i)+1),4>e&&(this.finalTickAmt=e,e=5),this.tickAmount=e},adjustTickAmount:function(){var t=this.tickInterval,e=this.tickPositions,i=this.tickAmount,n=this.finalTickAmt,r=e&&e.length;if(r<i){for(;e.length<i;)e.push(s(e[e.length-1]+t));this.transA*=(r-1)/(i-1),this.max=e[e.length-1]}else r>i&&(this.tickInterval*=2,this.setTickPositions());if(l(n)){for(t=i=e.length;t--;)(3===n&&1==t%2||2>=n&&0<t&&t<i-1)&&e.splice(t,1);this.finalTickAmt=void 0}},setScale:function(){var t,e;this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),e=this.len!==this.oldAxisLength,u(this.series,function(e){(e.isDirtyData||e.isDirty||e.xAxis.isDirty)&&(t=!0)}),e||t||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=e||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks()},setExtremes:function(t,e,i,n,r){var o=this,s=o.chart;i=k(i,!0),u(o.series,function(t){delete t.kdTree}),r=d(r,{min:t,max:e}),p(o,"setExtremes",r,function(){o.userMin=t,o.userMax=e,o.eventArgs=r,i&&s.redraw(n)})},zoom:function(t,e){var i=this.dataMin,n=this.dataMax,r=this.options,o=Math.min(i,k(r.min,i));r=Math.max(n,k(r.max,n));return t===this.min&&e===this.max||(this.allowZoomOutside||(l(i)&&(t<o&&(t=o),t>r&&(t=r)),l(n)&&(e<o&&(e=o),e>r&&(e=r))),this.displayBtn=void 0!==t||void 0!==e,this.setExtremes(t,e,!1,void 0,{trigger:"zoom"})),!0},setAxisSize:function(){var t=this.chart,e=(s=this.options).offsets||[0,0,0,0],i=this.horiz,n=k(s.width,t.plotWidth-e[3]+e[1]),r=k(s.height,t.plotHeight-e[0]+e[2]),o=k(s.top,t.plotTop+e[0]),s=k(s.left,t.plotLeft+e[3]);(e=/%$/).test(r)&&(r=Math.round(parseFloat(r)/100*t.plotHeight)),e.test(o)&&(o=Math.round(parseFloat(o)/100*t.plotHeight+t.plotTop)),this.left=s,this.top=o,this.width=n,this.height=r,this.bottom=t.chartHeight-r-o,this.right=t.chartWidth-n-s,this.len=Math.max(i?n:r,0),this.pos=i?s:o},getExtremes:function(){var t=this.isLog,e=this.lin2log;return{min:t?s(e(this.min)):this.min,max:t?s(e(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(t){var e=this.isLog,i=this.lin2log,n=e?i(this.min):this.min;e=e?i(this.max):this.max;return null===t?t=n:n>t?t=n:e<t&&(t=e),this.translate(t,0,1,0,1)},autoLabelAlign:function(t){return 15<(t=(k(t,0)-90*this.side+720)%360)&&165>t?"right":195<t&&345>t?"left":"center"},tickSize:function(t){var e=this.options,i=e[t+"Length"],n=k(e[t+"Width"],"tick"===t&&this.isXAxis?1:0);if(n&&i)return"inside"===e[t+"Position"]&&(i=-i),[i,n]},labelMetrics:function(){return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[0]&&this.ticks[0].label)},unsquish:function(){var t,e,i,n=this.options.labels,r=this.horiz,o=this.tickInterval,s=o,a=this.len/(((this.categories?1:0)+this.max-this.min)/o),c=n.rotation,d=this.labelMetrics(),p=Number.MAX_VALUE,f=function(t){return(t=1<(t/=a||1)?Math.ceil(t):1)*o};return r?(i=!n.staggerLines&&!n.step&&(l(c)?[c]:a<k(n.autoRotationLimit,80)&&n.autoRotation))&&u(i,function(i){var n;(i===c||i&&-90<=i&&90>=i)&&((n=(e=f(Math.abs(d.h/Math.sin(h*i))))+Math.abs(i/360))<p&&(p=n,t=i,s=e))}):n.step||(s=f(d.h)),this.autoRotation=i,this.labelRotation=k(t,c),s},getSlotWidth:function(){var t=this.chart,e=this.horiz,i=this.options.labels,n=Math.max(this.tickPositions.length-(this.categories?0:1),1),r=t.margin[3];return e&&2>(i.step||0)&&!i.rotation&&(this.staggerLines||1)*this.len/n||!e&&(r&&r-t.spacing[3]||.33*t.chartWidth)},renderUnsquish:function(){var t,e,i,n=this.chart,r=n.renderer,o=this.tickPositions,s=this.ticks,a=this.options.labels,l=this.horiz,h=this.getSlotWidth(),c=Math.max(1,Math.round(h-2*(a.padding||5))),d={},p=this.labelMetrics(),f=a.style&&a.style.textOverflow,g=0;if(b(a.rotation)||(d.rotation=a.rotation||0),u(o,function(t){(t=s[t])&&t.labelLength>g&&(g=t.labelLength)}),this.maxLabelLength=g,this.autoRotation)g>c&&g>p.h?d.rotation=this.labelRotation:this.labelRotation=0;else if(h&&(t={width:c+"px"},!f))for(t.textOverflow="clip",e=o.length;!l&&e--;)i=o[e],(c=s[i].label)&&(c.styles&&"ellipsis"===c.styles.textOverflow?c.css({textOverflow:"clip"}):s[i].labelLength>h&&c.css({width:h+"px"}),c.getBBox().height>this.len/o.length-(p.h-p.f)&&(c.specCss={textOverflow:"ellipsis"}));d.rotation&&(t={width:(g>.5*n.chartHeight?.33*n.chartHeight:n.chartHeight)+"px"},f||(t.textOverflow="ellipsis")),(this.labelAlign=a.align||this.autoLabelAlign(this.labelRotation))&&(d.align=this.labelAlign),u(o,function(e){var i=(e=s[e])&&e.label;i&&(i.attr(d),t&&i.css(w(t,i.specCss)),delete i.specCss,e.rotation=d.rotation)}),this.tickRotCorr=r.rotCorr(p.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.hasVisibleSeries||l(this.min)&&l(this.max)&&!!this.tickPositions},addTitle:function(t){var e,i=this.chart.renderer,n=this.horiz,r=this.opposite,o=this.options.title;this.axisTitle||((e=o.textAlign)||(e=(n?{low:"left",middle:"center",high:"right"}:{low:r?"right":"left",middle:"center",high:r?"left":"right"})[o.align]),this.axisTitle=i.text(o.text,0,0,o.useHTML).attr({zIndex:7,rotation:o.rotation||0,align:e}).addClass("highcharts-axis-title").css(o.style).add(this.axisGroup),this.axisTitle.isNew=!0),this.axisTitle[t?"show":"hide"](!0)},generateTick:function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new M(this,t)},getOffset:function(){var t,e,i,n=this,r=(x=n.chart).renderer,o=n.options,s=n.tickPositions,a=n.ticks,h=n.horiz,c=n.side,d=x.inverted?[1,0,3,2][c]:c,p=0,f=0,g=o.title,m=o.labels,v=0,y=x.axisOffset,x=x.clipOffset,b=[-1,1,1,-1][c],w=o.className,$=n.axisParent,T=this.tickSize("tick");t=n.hasData(),n.showAxis=e=t||k(o.showEmpty,!0),n.staggerLines=n.horiz&&m.staggerLines,n.axisGroup||(n.gridGroup=r.g("grid").attr({zIndex:o.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(w||"")).add($),n.axisGroup=r.g("axis").attr({zIndex:o.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(w||"")).add($),n.labelGroup=r.g("axis-labels").attr({zIndex:m.zIndex||7}).addClass("highcharts-"+n.coll.toLowerCase()+"-labels "+(w||"")).add($)),t||n.isLinked?(u(s,function(t,e){n.generateTick(t,e)}),n.renderUnsquish(),!1===m.reserveSpace||0!==c&&2!==c&&{1:"left",3:"right"}[c]!==n.labelAlign&&"center"!==n.labelAlign||u(s,function(t){v=Math.max(a[t].getLabelSize(),v)}),n.staggerLines&&(v*=n.staggerLines,n.labelOffset=v*(n.opposite?-1:1))):S(a,function(t,e){t.destroy(),delete a[e]}),g&&g.text&&!1!==g.enabled&&(n.addTitle(e),e&&!1!==g.reserveSpace&&(n.titleOffset=p=n.axisTitle.getBBox()[h?"height":"width"],i=g.offset,f=l(i)?0:k(g.margin,h?5:10))),n.renderLine(),n.offset=b*k(o.offset,y[c]),n.tickRotCorr=n.tickRotCorr||{x:0,y:0},r=0===c?-n.labelMetrics().h:2===c?n.tickRotCorr.y:0,f=Math.abs(v)+f,v&&(f=f-r+b*(h?k(m.y,n.tickRotCorr.y+8*b):m.x)),n.axisTitleMargin=k(i,f),y[c]=Math.max(y[c],n.axisTitleMargin+p+b*n.offset,f,t&&s.length&&T?T[0]+b*n.offset:0),o=o.offset?0:2*Math.floor(n.axisLine.strokeWidth()/2),x[d]=Math.max(x[d],o)},getLinePath:function(t){var e=this.chart,i=this.opposite,n=this.offset,r=this.horiz,o=this.left+(i?this.width:0)+n;n=e.chartHeight-this.bottom-(i?this.height:0)+n;return i&&(t*=-1),e.renderer.crispLine(["M",r?this.left:o,r?n:this.top,"L",r?e.chartWidth-this.right:o,r?n:e.chartHeight-this.bottom],t)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},getTitlePosition:function(){var t=this.horiz,e=this.left,i=this.top,n=this.len,r=this.options.title,o=t?e:i,s=this.opposite,a=this.offset,l=r.x||0,h=r.y||0,c=this.chart.renderer.fontMetrics(r.style&&r.style.fontSize,this.axisTitle).f;n={low:o+(t?0:n),middle:o+n/2,high:o+(t?n:0)}[r.align],e=(t?i+this.height:e)+(t?1:-1)*(s?-1:1)*this.axisTitleMargin+(2===this.side?c:0);return{x:t?n+l:e+(s?this.width:0)+a+l,y:t?e+h-(s?this.height:0)+a:n+h}},renderMinorTick:function(t){var e=this.chart.hasRendered&&x(this.oldMin),i=this.minorTicks;i[t]||(i[t]=new M(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},renderTick:function(t,e){var i=this.isLinked,n=this.ticks,r=this.chart.hasRendered&&x(this.oldMin);(!i||t>=this.min&&t<=this.max)&&(n[t]||(n[t]=new M(this,t)),r&&n[t].isNew&&n[t].render(e,!0,.1),n[t].render(e))},render:function(){var e,n,r=this,o=r.chart,s=r.options,a=r.isLog,l=r.lin2log,h=r.isLinked,c=r.tickPositions,d=r.axisTitle,p=r.ticks,f=r.minorTicks,g=r.alternateBands,m=s.stackLabels,v=s.alternateGridColor,y=r.tickmarkOffset,x=r.axisLine,b=r.showAxis,w=i(o.renderer.globalAnimation);r.labelEdge.length=0,r.overlap=!1,u([p,f,g],function(t){S(t,function(t){t.isActive=!1})}),(r.hasData()||h)&&(r.minorTickInterval&&!r.categories&&u(r.getMinorTickPositions(),function(t){r.renderMinorTick(t)}),c.length&&(u(c,function(t,e){r.renderTick(t,e)}),y&&(0===r.min||r.single)&&(p[-1]||(p[-1]=new M(r,-1,null,!0)),p[-1].render(-1))),v&&u(c,function(i,s){n=void 0!==c[s+1]?c[s+1]+y:r.max-y,0==s%2&&i<r.max&&n<=r.max+(o.polar?-y:y)&&(g[i]||(g[i]=new t.PlotLineOrBand(r)),e=i+y,g[i].options={from:a?l(e):e,to:a?l(n):n,color:v},g[i].render(),g[i].isActive=!0)}),r._addedPlotLB||(u((s.plotLines||[]).concat(s.plotBands||[]),function(t){r.addPlotBandOrLine(t)}),r._addedPlotLB=!0)),u([p,f,g],function(t){var e,i=[],n=w.duration;S(t,function(t,e){t.isActive||(t.render(e,!1,0),t.isActive=!1,i.push(e))}),E(function(){for(e=i.length;e--;)t[i[e]]&&!t[i[e]].isActive&&(t[i[e]].destroy(),delete t[i[e]])},t!==g&&o.hasRendered&&n?n:0)}),x&&(x[x.isPlaced?"animate":"attr"]({d:this.getLinePath(x.strokeWidth())}),x.isPlaced=!0,x[b?"show":"hide"](!0)),d&&b&&(d[d.isNew?"attr":"animate"](r.getTitlePosition()),d.isNew=!1),m&&m.enabled&&r.renderStackTotals(),r.isDirty=!1},redraw:function(){this.visible&&(this.render(),u(this.plotLinesAndBands,function(t){t.render()})),u(this.series,function(t){t.isDirty=!0})},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(t){var e,i=this,n=i.stacks,r=i.plotLinesAndBands;if(t||T(i),S(n,function(t,e){c(t),n[e]=null}),u([i.ticks,i.minorTicks,i.alternateBands],function(t){c(t)}),r)for(t=r.length;t--;)r[t].destroy();for(e in u("stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross".split(" "),function(t){i[t]&&(i[t]=i[t].destroy())}),i.plotLinesAndBandsGroups)i.plotLinesAndBandsGroups[e]=i.plotLinesAndBandsGroups[e].destroy();S(i,function(t,e){-1===v(e,i.keepProps)&&delete i[e]})},drawCrosshair:function(t,e){var i,n,r=this.crosshair,s=k(r.snap,!0),a=this.cross;t||(t=this.cross&&this.cross.e),this.crosshair&&!1!==(l(e)||!s)?(s?l(e)&&(n=this.isXAxis?e.plotX:this.len-e.plotY):n=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),l(n)&&(i=this.getPlotLinePath(e&&(this.isXAxis?e.x:k(e.stackY,e.y)),null,null,null,n)||null),l(i)?(e=this.categories&&!this.isRadial,a||(this.cross=a=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(e?"category ":"thin ")+r.className).attr({zIndex:k(r.zIndex,2)}).add(),a.attr({stroke:r.color||(e?o("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":k(r.width,1)}),r.dashStyle&&a.attr({dashstyle:r.dashStyle})),a.show().attr({d:i}),e&&!r.width&&a.attr({"stroke-width":this.transA}),this.cross.e=t):this.hideCrosshair()):this.hideCrosshair()},hideCrosshair:function(){this.cross&&this.cross.hide()}}),t.Axis=A}(t);return function(t){var e=t.Axis,i=t.Date,n=t.dateFormat,r=t.defaultOptions,o=t.defined,s=t.each,a=t.extend,l=t.getMagnitude,h=t.getTZOffset,c=t.normalizeTickInterval,u=t.pick,d=t.timeUnits;e.prototype.getTimeTicks=function(t,e,l,c){var p,f,g=[],m={},v=r.global.useUTC,y=new i(e-Math.max(h(e),h(l))),x=i.hcMakeTime,b=t.unitRange,w=t.count;if(o(e)){y[i.hcSetMilliseconds](b>=d.second?0:w*Math.floor(y.getMilliseconds()/w)),b>=d.second&&y[i.hcSetSeconds](b>=d.minute?0:w*Math.floor(y.getSeconds()/w)),b>=d.minute&&y[i.hcSetMinutes](b>=d.hour?0:w*Math.floor(y[i.hcGetMinutes]()/w)),b>=d.hour&&y[i.hcSetHours](b>=d.day?0:w*Math.floor(y[i.hcGetHours]()/w)),b>=d.day&&y[i.hcSetDate](b>=d.month?1:w*Math.floor(y[i.hcGetDate]()/w)),b>=d.month&&(y[i.hcSetMonth](b>=d.year?0:w*Math.floor(y[i.hcGetMonth]()/w)),p=y[i.hcGetFullYear]()),b>=d.year&&y[i.hcSetFullYear](p-p%w),b===d.week&&y[i.hcSetDate](y[i.hcGetDate]()-y[i.hcGetDay]()+u(c,1)),p=y[i.hcGetFullYear](),c=y[i.hcGetMonth]();var $=y[i.hcGetDate](),S=y[i.hcGetHours]();for((i.hcTimezoneOffset||i.hcGetTimezoneOffset)&&(f=(!v||!!i.hcGetTimezoneOffset)&&(l-e>4*d.month||h(e)!==h(l)),y=y.getTime(),y=new i(y+h(y))),v=y.getTime(),e=1;v<l;)g.push(v),v=b===d.year?x(p+e*w,0):b===d.month?x(p,c+e*w):!f||b!==d.day&&b!==d.week?f&&b===d.hour?x(p,c,$,S+e*w):v+b*w:x(p,c,$+e*w*(b===d.day?1:7)),e++;g.push(v),b<=d.hour&&1e4>g.length&&s(g,function(t){0==t%18e5&&"000000000"===n("%H%M%S%L",t)&&(m[t]="day")})}return g.info=a(t,{higherRanks:m,totalRange:b*w}),g},e.prototype.normalizeTimeTickInterval=function(t,e){var i=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];e=i[i.length-1];var n,r=d[e[0]],o=e[1];for(n=0;n<i.length&&(e=i[n],r=d[e[0]],o=e[1],!(i[n+1]&&t<=(r*o[o.length-1]+d[i[n+1][0]])/2));n++);return r===d.year&&t<5*r&&(o=[1,2,5]),{unitRange:r,count:t=c(t/r,o,"year"===e[0]?Math.max(l(t/r),1):1),unitName:e[0]}}}(t),function(t){var e=t.Axis,i=t.getMagnitude,n=t.map,r=t.normalizeTickInterval,o=t.pick;e.prototype.getLogTickPositions=function(t,e,s,a){var l=this.options,h=this.len,c=this.lin2log,u=this.log2lin,d=[];if(a||(this._minorAutoInterval=null),.5<=t)t=Math.round(t),d=this.getLinearTickPositions(t,e,s);else if(.08<=t){var p,f,g,m,v;for(h=Math.floor(e),l=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];h<s+1&&!v;h++)for(f=l.length,p=0;p<f&&!v;p++)(g=u(c(h)*l[p]))>e&&(!a||m<=s)&&void 0!==m&&d.push(m),m>s&&(v=!0),m=g}else e=c(e),s=c(s),t=l[a?"minorTickInterval":"tickInterval"],t=o("auto"===t?null:t,this._minorAutoInterval,l.tickPixelInterval/(a?5:1)*(s-e)/((a?h/this.tickPositions.length:h)||1)),t=r(t,null,i(t)),d=n(this.getLinearTickPositions(t,e,s),u),a||(this._minorAutoInterval=t/5);return a||(this.tickInterval=t),d},e.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},e.prototype.lin2log=function(t){return Math.pow(10,t)}}(t),function(t,e){var i=t.arrayMax,n=t.arrayMin,r=t.defined,o=t.destroyObjectProperties,s=t.each,a=t.erase,l=t.merge,h=t.pick;t.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},t.PlotLineOrBand.prototype={render:function(){var e=this,i=e.axis,n=i.horiz,o=e.options,s=o.label,a=e.label,c=o.to,u=o.from,d=o.value,p=r(u)&&r(c),f=r(d),g=e.svgElem,m=!g,v=[],y=o.color,x=h(o.zIndex,0),b=o.events,w=(v={class:"highcharts-plot-"+(p?"band ":"line ")+(o.className||"")},{}),$=i.chart.renderer,S=p?"bands":"lines",k=i.log2lin;if(i.isLog&&(u=k(u),c=k(c),d=k(d)),f?(v={stroke:y,"stroke-width":o.width},o.dashStyle&&(v.dashstyle=o.dashStyle)):p&&(y&&(v.fill=y),o.borderWidth&&(v.stroke=o.borderColor,v["stroke-width"]=o.borderWidth)),w.zIndex=x,S+="-"+x,(y=i.plotLinesAndBandsGroups[S])||(i.plotLinesAndBandsGroups[S]=y=$.g("plot-"+S).attr(w).add()),m&&(e.svgElem=g=$.path().attr(v).add(y)),f)v=i.getPlotLinePath(d,g.strokeWidth());else{if(!p)return;v=i.getPlotBandPath(u,c,o)}return m&&v&&v.length?(g.attr({d:v}),b&&t.objectEach(b,function(t,i){g.on(i,function(t){b[i].apply(e,[t])})})):g&&(v?(g.show(),g.animate({d:v})):(g.hide(),a&&(e.label=a=a.destroy()))),s&&r(s.text)&&v&&v.length&&0<i.width&&0<i.height&&!v.flat?(s=l({align:n&&p&&"center",x:n?!p&&4:10,verticalAlign:!n&&p&&"middle",y:n?p?16:10:p?6:-4,rotation:n&&!p&&90},s),this.renderLabel(s,v,p,x)):a&&a.hide(),e},renderLabel:function(t,e,r,o){var s=this.label,a=this.axis.chart.renderer;s||((s={align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(r?"band":"line")+"-label "+(t.className||"")}).zIndex=o,this.label=s=a.text(t.text,0,0,t.useHTML).attr(s).add(),s.css(t.style)),o=[e[1],e[4],r?e[6]:e[1]],e=[e[2],e[5],r?e[7]:e[2]],r=n(o),a=n(e),s.align(t,!1,{x:r,y:a,width:i(o)-r,height:i(e)-a}),s.show()},destroy:function(){a(this.axis.plotLinesAndBands,this),delete this.axis,o(this)}},t.extend(e.prototype,{getPlotBandPath:function(t,e){var i=this.getPlotLinePath(e,null,null,!0),n=this.getPlotLinePath(t,null,null,!0),r=this.horiz,o=1;return t=t<this.min&&e<this.min||t>this.max&&e>this.max,n&&i?(t&&(n.flat=n.toString()===i.toString(),o=0),n.push(r&&i[4]===n[4]?i[4]+o:i[4],r||i[5]!==n[5]?i[5]:i[5]+o,r&&i[1]===n[1]?i[1]+o:i[1],r||i[2]!==n[2]?i[2]:i[2]+o)):n=null,n},addPlotBand:function(t){return this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){return this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(e,i){var n=new t.PlotLineOrBand(this,e).render(),r=this.userOptions;return n&&(i&&(r[i]=r[i]||[],r[i].push(e)),this.plotLinesAndBands.push(n)),n},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,i=this.options,n=this.userOptions,r=e.length;r--;)e[r].id===t&&e[r].destroy();s([i.plotLines||[],n.plotLines||[],i.plotBands||[],n.plotBands||[]],function(e){for(r=e.length;r--;)e[r].id===t&&a(e,e[r])})},removePlotBand:function(t){this.removePlotBandOrLine(t)},removePlotLine:function(t){this.removePlotBandOrLine(t)}})}(t,h),function(t){var e=t.dateFormat,i=t.each,n=t.extend,r=t.format,o=t.isNumber,s=t.map,a=t.merge,l=t.pick,h=t.splat,c=t.syncTimeout,u=t.timeUnits;t.Tooltip=function(){this.init.apply(this,arguments)},t.Tooltip.prototype={init:function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted,this.shared=e.shared||this.split},cleanSplit:function(t){i(this.chart.series,function(e){var i=e&&e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})},getLabel:function(){var t=this.chart.renderer,e=this.options;return this.label||(this.split?this.label=t.g("tooltip"):(this.label=t.label("",0,0,e.shape||"callout",null,null,e.useHTML,null,"tooltip").attr({padding:e.padding,r:e.borderRadius}),this.label.attr({fill:e.backgroundColor,"stroke-width":e.borderWidth}).css(e.style).shadow(e.shadow)),this.label.attr({zIndex:8}).add()),this.label},update:function(t){this.destroy(),a(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,a(!0,this.options,t))},destroy:function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy()),clearTimeout(this.hideTimer),clearTimeout(this.tooltipTimeout)},move:function(t,e,i,r){var o=this,s=o.now,a=!1!==o.options.animation&&!o.isHidden&&(1<Math.abs(t-s.x)||1<Math.abs(e-s.y)),l=o.followPointer||1<o.len;n(s,{x:a?(2*s.x+t)/3:t,y:a?(s.y+e)/2:e,anchorX:l?void 0:a?(2*s.anchorX+i)/3:i,anchorY:l?void 0:a?(s.anchorY+r)/2:r}),o.getLabel().attr(s),a&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){o&&o.move(t,e,i,r)},32))},hide:function(t){var e=this;clearTimeout(this.hideTimer),t=l(t,this.options.hideDelay,500),this.isHidden||(this.hideTimer=c(function(){e.getLabel()[t?"fadeOut":"hide"](),e.isHidden=!0},t))},getAnchor:function(t,e){var n,r,o,a=this.chart,l=a.inverted,c=a.plotTop,u=a.plotLeft,d=0,p=0;return n=(t=h(t))[0].tooltipPos,this.followPointer&&e&&(void 0===e.chartX&&(e=a.pointer.normalize(e)),n=[e.chartX-a.plotLeft,e.chartY-c]),n||(i(t,function(t){r=t.series.yAxis,o=t.series.xAxis,d+=t.plotX+(!l&&o?o.left-u:0),p+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!l&&r?r.top-c:0)}),d/=t.length,p/=t.length,n=[l?a.plotWidth-p:d,this.shared&&!l&&1<t.length&&e?e.chartY-c:l?a.plotHeight-d:p]),s(n,Math.round)},getPosition:function(t,e,i){var n,r=this.chart,o=this.distance,s={},a=i.h||0,h=["y",r.chartHeight,e,i.plotY+r.plotTop,r.plotTop,r.plotTop+r.plotHeight],c=["x",r.chartWidth,t,i.plotX+r.plotLeft,r.plotLeft,r.plotLeft+r.plotWidth],u=!this.followPointer&&l(i.ttBelow,!r.inverted==!!i.negative),d=function(t){var e=h;h=c,c=e,n=t},p=function(){!1!==function(t,e,i,n,r,l){var h=i<n-o,c=n+o+i<e,d=n-o-i;if(n+=o,u&&c)s[t]=n;else if(!u&&h)s[t]=d;else if(h)s[t]=Math.min(l-i,0>d-a?d:d-a);else{if(!c)return!1;s[t]=Math.max(r,n+a+i>e?n:n+a)}}.apply(0,h)?!1!==function(t,e,i,n){var r;return n<o||n>e-o?r=!1:s[t]=n<i/2?1:n>e-i/2?e-i-2:n-i/2,r}.apply(0,c)||n||(d(!0),p()):n?s.x=s.y=0:(d(!0),p())};return(r.inverted||1<this.len)&&d(),p(),s},defaultFormatter:function(t){var e,i=this.points||h(this);return(e=(e=[t.tooltipFooterHeaderFormatter(i[0])]).concat(t.bodyFormatter(i))).push(t.tooltipFooterHeaderFormatter(i[0],!0)),e},refresh:function(t,e){var n,r,o,s=this.options,a=t,c={},u=[];n=s.formatter||this.defaultFormatter;var d;c=this.shared;clearTimeout(this.hideTimer),this.followPointer=h(a)[0].series.tooltipOptions.followPointer,e=(o=this.getAnchor(a,e))[0],r=o[1],!c||a.series&&a.series.noSharedTooltip?c=a.getLabelConfig():(i(a,function(t){t.setState("hover"),u.push(t.getLabelConfig())}),(c={x:a[0].category,y:a[0].y}).points=u,a=a[0]),this.len=u.length,c=n.call(c,this),d=a.series,this.distance=l(d.tooltipOptions.distance,16),!1===c?this.hide():(n=this.getLabel(),this.isHidden&&n.attr({opacity:1}).show(),this.split?this.renderSplit(c,t):(n.attr({text:c&&c.join?c.join(""):c}),n.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+l(a.colorIndex,d.colorIndex)),n.attr({stroke:s.borderColor||a.color||d.color||"#666666"}),this.updatePosition({plotX:e,plotY:r,negative:a.negative,ttBelow:a.ttBelow,h:o[2]||0})),this.isHidden=!1)},renderSplit:function(e,n){var r,o=this,s=[],a=this.chart,h=a.renderer,c=!0,u=this.options,d=this.getLabel();i(e.slice(0,n.length+1),function(t,e){var i=(e=n[e-1]||{isHeader:!0,plotX:n[0].plotX}).series||o,p=i.tt,f=e.series||{},g="highcharts-color-"+l(e.colorIndex,f.colorIndex,"none");p||(i.tt=p=h.label(null,null,null,"callout").addClass("highcharts-tooltip-box "+g).attr({padding:u.padding,r:u.borderRadius,fill:u.backgroundColor,stroke:e.color||f.color||"#333333","stroke-width":u.borderWidth}).add(d)),p.isActive=!0,p.attr({text:t}),p.css(u.style),f=(t=p.getBBox()).width+p.strokeWidth(),e.isHeader?(r=t.height,f=Math.max(0,Math.min(e.plotX+a.plotLeft-f/2,a.chartWidth-f))):f=e.plotX+a.plotLeft-l(u.distance,16)-f,0>f&&(c=!1),t=(e.series&&e.series.yAxis&&e.series.yAxis.pos)+(e.plotY||0),t-=a.plotTop,s.push({target:e.isHeader?a.plotHeight+r:t,rank:e.isHeader?1:0,size:i.tt.getBBox().height+1,point:e,x:f,tt:p})}),this.cleanSplit(),t.distribute(s,a.plotHeight+r),i(s,function(t){var e=t.point,i=e.series;t.tt.attr({visibility:void 0===t.pos?"hidden":"inherit",x:c||e.isHeader?t.x:e.plotX+a.plotLeft+l(u.distance,16),y:t.pos+a.plotTop,anchorX:e.isHeader?e.plotX+a.plotLeft:e.plotX+i.xAxis.pos,anchorY:e.isHeader?t.pos+a.plotTop-15:e.plotY+i.yAxis.pos})})},updatePosition:function(t){var e=this.chart,i=this.getLabel();i=(this.options.positioner||this.getPosition).call(this,i.width,i.height,t);this.move(Math.round(i.x),Math.round(i.y||0),t.plotX+e.plotLeft,t.plotY+e.plotTop)},getDateFormat:function(t,i,n,r){var o,s,a=e("%m-%d %H:%M:%S.%L",i),l={millisecond:15,second:12,minute:9,hour:6,day:3},h="millisecond";for(s in u){if(t===u.week&&+e("%w",i)===n&&"00:00:00.000"===a.substr(6)){s="week";break}if(u[s]>t){s=h;break}if(l[s]&&a.substr(l[s])!=="01-01 00:00:00.000".substr(l[s]))break;"week"!==s&&(h=s)}return s&&(o=r[s]),o},getXDateFormat:function(t,e,i){e=e.dateTimeLabelFormats;var n=i&&i.closestPointRange;return(n?this.getDateFormat(n,t.x,i.options.startOfWeek,e):e.day)||e.year},tooltipFooterHeaderFormatter:function(t,e){var i=e?"footer":"header",n=(e=t.series).tooltipOptions,s=n.xDateFormat,a=e.xAxis,l=a&&"datetime"===a.options.type&&o(t.key);i=n[i+"Format"];return l&&!s&&(s=this.getXDateFormat(t,n,a)),l&&s&&(i=i.replace("{point.key}","{point.key:"+s+"}")),r(i,{point:t,series:e})},bodyFormatter:function(t){return s(t,function(t){var e=t.series.tooltipOptions;return(e.pointFormatter||t.point.tooltipFormatter).call(t.point,e.pointFormat)})}}}(t),function(t){var e=t.addEvent,i=t.attr,n=t.charts,r=t.color,o=t.css,s=t.defined,a=t.doc,l=t.each,h=t.extend,c=t.fireEvent,u=t.offset,d=t.pick,p=t.removeEvent,f=t.splat,g=t.Tooltip,m=t.win;t.Pointer=function(t,e){this.init(t,e)},t.Pointer.prototype={init:function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},g&&e.tooltip.enabled&&(t.tooltip=new g(t,e.tooltip),this.followTouchMove=d(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},zoomOption:function(t){var e=(n=this.chart).options.chart,i=e.zoomType||"",n=n.inverted;/touch/.test(t.type)&&(i=d(e.pinchType,i)),this.zoomX=t=/x/.test(i),this.zoomY=i=/y/.test(i),this.zoomHor=t&&!n||i&&n,this.zoomVert=i&&!n||t&&n,this.hasZoom=t||i},normalize:function(t,e){var i,n;return(t=t||m.event).target||(t.target=t.srcElement),n=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t,e||(this.chartPosition=e=u(this.chart.container)),void 0===n.pageX?(i=Math.max(t.x,t.clientX-e.left),e=t.y):(i=n.pageX-e.left,e=n.pageY-e.top),h(t,{chartX:Math.round(i),chartY:Math.round(e)})},getCoordinates:function(t){var e={xAxis:[],yAxis:[]};return l(this.chart.axes,function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})}),e},getKDPoints:function(t,e,i){var n,r,o,s=[];if(l(t,function(t){n=t.noSharedTooltip&&e,r=!e&&t.directTouch,t.visible&&!r&&d(t.options.enableMouseTracking,!0)&&(o=t.searchPoint(i,!n&&0>t.options.findNearestPointBy.indexOf("y")))&&o.series&&s.push(o)}),s.sort(function(t,i){var n=t.distX-i.distX,r=t.dist-i.dist,o=(i.series.group&&i.series.group.zIndex)-(t.series.group&&t.series.group.zIndex);return 0!==n&&e?n:0!==r?r:0!==o?o:t.series.index>i.series.index?-1:1}),e&&s[0]&&!s[0].series.noSharedTooltip)for(t=s.length;t--;)(s[t].x!==s[0].x||s[t].series.noSharedTooltip)&&s.splice(t,1);return s},getPointFromEvent:function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},getHoverData:function(e,i,n,r,o,s){var a,h=e,c=i;return r?o?(a=[],l(n,function(t){var e=t.noSharedTooltip&&o,i=!o&&t.directTouch;t.visible&&!e&&!i&&d(t.options.enableMouseTracking,!0)&&(t=t.searchKDTree({clientX:h.clientX,plotY:h.plotY},!e&&1===t.kdDimensions))&&t.series&&a.push(t)}),0===a.length&&(a=[h])):a=[h]:c&&!c.stickyTracking?(o||(n=[c]),a=this.getKDPoints(n,o,s),h=t.find(a,function(t){return t.series===c})):(e=t.grep(n,function(t){return t.stickyTracking}),a=this.getKDPoints(e,o,s),c=(h=a[0])&&h.series,o&&(a=this.getKDPoints(n,o,s))),a.sort(function(t,e){return t.series.index-e.series.index}),{hoverPoint:h,hoverSeries:c,hoverPoints:a}},runPointActions:function(i,r){var o,s,h=this.chart,c=h.tooltip,u=!!c&&c.shared,p=(f=r||h.hoverPoint)&&f.series||h.hoverSeries,f=(r=this.getHoverData(f,p,h.series,!!r||p&&p.directTouch,u,i)).hoverPoint;o=(p=r.hoverSeries)&&p.tooltipOptions.followPointer,s=(u=u&&f&&!f.series.noSharedTooltip)?r.hoverPoints:f?[f]:[],f&&(f!==h.hoverPoint||c&&c.isHidden)?(l(h.hoverPoints||[],function(e){-1===t.inArray(e,s)&&e.setState()}),l(s||[],function(t){t.setState("hover")}),h.hoverSeries!==p&&p.onMouseOver(),p&&!p.directTouch&&(h.hoverPoint&&h.hoverPoint.firePointEvent("mouseOut"),f.firePointEvent("mouseOver")),h.hoverPoints=s,h.hoverPoint=f,c&&c.refresh(u?s:f,i)):o&&c&&!c.isHidden&&(p=c.getAnchor([{}],i),c.updatePosition({plotX:p[0],plotY:p[1]})),this.unDocMouseMove||(this.unDocMouseMove=e(a,"mousemove",function(e){var i=n[t.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(e)})),l(h.axes,function(e){d(e.crosshair.snap,!0)?t.find(s,function(t){return t.series[e.coll]===e})?e.drawCrosshair(i,f):e.hideCrosshair():e.drawCrosshair(i)})},reset:function(t,e){var i=this.chart,n=i.hoverSeries,r=i.hoverPoint,o=i.hoverPoints,s=i.tooltip,a=s&&s.shared?o:r;t&&a&&l(f(a),function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?s&&a&&(s.refresh(a),r&&(r.setState(r.state,!0),l(i.axes,function(t){t.crosshair&&t.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),o&&l(o,function(t){t.setState()}),n&&n.onMouseOut(),s&&s.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),l(i.axes,function(t){t.hideCrosshair()}),this.hoverX=i.hoverPoints=i.hoverPoint=null)},scaleGroups:function(t,e){var i,n=this.chart;l(n.series,function(r){i=t||r.getPlotBox(),r.xAxis&&r.xAxis.zoomEnabled&&r.group&&(r.group.attr(i),r.markerGroup&&(r.markerGroup.attr(i),r.markerGroup.clip(e?n.clipRect:null)),r.dataLabelsGroup&&r.dataLabelsGroup.attr(i))}),n.clipRect.attr(e||n.clipBox)},dragStart:function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},drag:function(t){var e,i=this.chart,n=i.options.chart,o=t.chartX,s=t.chartY,a=this.zoomHor,l=this.zoomVert,h=i.plotLeft,c=i.plotTop,u=i.plotWidth,d=i.plotHeight,p=this.selectionMarker,f=this.mouseDownX,g=this.mouseDownY,m=n.panKey&&t[n.panKey+"Key"];p&&p.touch||(o<h?o=h:o>h+u&&(o=h+u),s<c?s=c:s>c+d&&(s=c+d),this.hasDragged=Math.sqrt(Math.pow(f-o,2)+Math.pow(g-s,2)),10<this.hasDragged&&(e=i.isInsidePlot(f-h,g-c),i.hasCartesianSeries&&(this.zoomX||this.zoomY)&&e&&!m&&!p&&(this.selectionMarker=p=i.renderer.rect(h,c,a?1:u,l?1:d,0).attr({fill:n.selectionMarkerFill||r("#335cad").setOpacity(.25).get(),class:"highcharts-selection-marker",zIndex:7}).add()),p&&a&&(o-=f,p.attr({width:Math.abs(o),x:(0<o?0:o)+f})),p&&l&&(o=s-g,p.attr({height:Math.abs(o),y:(0<o?0:o)+g})),e&&!p&&n.panning&&i.pan(t,n.panning)))},drop:function(t){var e=this,i=this.chart,n=this.hasPinched;if(this.selectionMarker){var r,a={originalEvent:t,xAxis:[],yAxis:[]},u=this.selectionMarker,d=u.attr?u.attr("x"):u.x,p=u.attr?u.attr("y"):u.y,f=u.attr?u.attr("width"):u.width,g=u.attr?u.attr("height"):u.height;(this.hasDragged||n)&&(l(i.axes,function(i){if(i.zoomEnabled&&s(i.min)&&(n||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])){var o=i.horiz,l="touchend"===t.type?i.minPixelPadding:0,h=i.toValue((o?d:p)+l);o=i.toValue((o?d+f:p+g)-l);a[i.coll].push({axis:i,min:Math.min(h,o),max:Math.max(h,o)}),r=!0}}),r&&c(i,"selection",a,function(t){i.zoom(h(t,n?{animation:!1}:null))})),this.selectionMarker=this.selectionMarker.destroy(),n&&this.scaleGroups()}i&&(o(i.container,{cursor:i._cursor}),i.cancelClick=10<this.hasDragged,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(t){t=this.normalize(t),this.zoomOption(t),t.preventDefault&&t.preventDefault(),this.dragStart(t)},onDocumentMouseUp:function(e){n[t.hoverChartIndex]&&n[t.hoverChartIndex].pointer.drop(e)},onDocumentMouseMove:function(t){var e=this.chart,i=this.chartPosition;t=this.normalize(t,i),!i||this.inClass(t.target,"highcharts-tracker")||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.reset()},onContainerMouseLeave:function(e){var i=n[t.hoverChartIndex];i&&(e.relatedTarget||e.toElement)&&(i.pointer.reset(),i.pointer.chartPosition=null)},onContainerMouseMove:function(e){var i=this.chart;s(t.hoverChartIndex)&&n[t.hoverChartIndex]&&n[t.hoverChartIndex].mouseIsDown||(t.hoverChartIndex=i.index),(e=this.normalize(e)).returnValue=!1,"mousedown"===i.mouseIsDown&&this.drag(e),!this.inClass(e.target,"highcharts-tracker")&&!i.isInsidePlot(e.chartX-i.plotLeft,e.chartY-i.plotTop)||i.openMenu||this.runPointActions(e)},inClass:function(t,e){for(var n;t;){if(n=i(t,"class")){if(-1!==n.indexOf(e))return!0;if(-1!==n.indexOf("highcharts-container"))return!1}t=t.parentNode}},onTrackerMouseOut:function(t){var e=this.chart.hoverSeries;t=t.relatedTarget||t.toElement,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},onContainerClick:function(t){var e=this.chart,i=e.hoverPoint,n=e.plotLeft,r=e.plotTop;t=this.normalize(t),e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(c(i.series,"click",h(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(h(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-n,t.chartY-r)&&c(e,"click",t)))},setDOMEvents:function(){var i=this,n=i.chart.container;n.onmousedown=function(t){i.onContainerMouseDown(t)},n.onmousemove=function(t){i.onContainerMouseMove(t)},n.onclick=function(t){i.onContainerClick(t)},e(n,"mouseleave",i.onContainerMouseLeave),1===t.chartCount&&e(a,"mouseup",i.onDocumentMouseUp),t.hasTouch&&(n.ontouchstart=function(t){i.onContainerTouchStart(t)},n.ontouchmove=function(t){i.onContainerTouchMove(t)},1===t.chartCount&&e(a,"touchend",i.onDocumentTouchEnd))},destroy:function(){var e=this;e.unDocMouseMove&&e.unDocMouseMove(),p(e.chart.container,"mouseleave",e.onContainerMouseLeave),t.chartCount||(p(a,"mouseup",e.onDocumentMouseUp),p(a,"touchend",e.onDocumentTouchEnd)),clearInterval(e.tooltipTimeout),t.objectEach(e,function(t,i){e[i]=null})}}}(t),function(t){var e=t.charts,i=t.each,n=t.extend,r=t.map,o=t.noop,s=t.pick;n(t.Pointer.prototype,{pinchTranslate:function(t,e,i,n,r,o){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,i,n,r,o),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,i,n,r,o)},pinchTranslateDirection:function(t,e,i,n,r,o,s,a){var l,h,c,u=this.chart,d=t?"x":"y",p=t?"X":"Y",f="chart"+p,g=t?"width":"height",m=u["plot"+(t?"Left":"Top")],v=a||1,y=u.inverted,x=u.bounds[t?"h":"v"],b=1===e.length,w=e[0][f],$=i[0][f],S=!b&&e[1][f],k=!b&&i[1][f];(i=function(){!b&&20<Math.abs(w-S)&&(v=a||Math.abs($-k)/Math.abs(w-S)),h=(m-$)/v+w,l=u["plot"+(t?"Width":"Height")]/v})(),(e=h)<x.min?(e=x.min,c=!0):e+l>x.max&&(e=x.max-l,c=!0),c?($-=.8*($-s[d][0]),b||(k-=.8*(k-s[d][1])),i()):s[d]=[$,k],y||(o[d]=h-m,o[g]=l),o=y?1/v:v,r[g]=l,r[d]=e,n[y?t?"scaleY":"scaleX":"scale"+p]=v,n["translate"+p]=o*m+($-o*w)},pinch:function(t){var e=this,a=e.chart,l=e.pinchDown,h=t.touches,c=h.length,u=e.lastValidTouch,d=e.hasZoom,p=e.selectionMarker,f={},g=1===c&&(e.inClass(t.target,"highcharts-tracker")&&a.runTrackerClick||e.runChartClick),m={};1<c&&(e.initiated=!0),d&&e.initiated&&!g&&t.preventDefault(),r(h,function(t){return e.normalize(t)}),"touchstart"===t.type?(i(h,function(t,e){l[e]={chartX:t.chartX,chartY:t.chartY}}),u.x=[l[0].chartX,l[1]&&l[1].chartX],u.y=[l[0].chartY,l[1]&&l[1].chartY],i(a.axes,function(t){if(t.zoomEnabled){var e=a.bounds[t.horiz?"h":"v"],i=t.minPixelPadding,n=t.toPixels(s(t.options.min,t.dataMin)),r=t.toPixels(s(t.options.max,t.dataMax)),o=Math.max(n,r);e.min=Math.min(t.pos,Math.min(n,r)-i),e.max=Math.max(t.pos+t.len,o+i)}}),e.res=!0):e.followTouchMove&&1===c?this.runPointActions(e.normalize(t)):l.length&&(p||(e.selectionMarker=p=n({destroy:o,touch:!0},a.plotBox)),e.pinchTranslate(l,h,f,p,m,u),e.hasPinched=d,e.scaleGroups(f,m),e.res&&(e.res=!1,this.reset(!1,0)))},touch:function(e,i){var n,r=this.chart;r.index!==t.hoverChartIndex&&this.onContainerMouseLeave({relatedTarget:!0}),t.hoverChartIndex=r.index,1===e.touches.length?(e=this.normalize(e),r.isInsidePlot(e.chartX-r.plotLeft,e.chartY-r.plotTop)&&!r.openMenu?(i&&this.runPointActions(e),"touchmove"===e.type&&(n=!!(i=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(i[0].chartX-e.chartX,2)+Math.pow(i[0].chartY-e.chartY,2))),s(n,!0)&&this.pinch(e)):i&&this.reset()):2===e.touches.length&&this.pinch(e)},onContainerTouchStart:function(t){this.zoomOption(t),this.touch(t,!0)},onContainerTouchMove:function(t){this.touch(t)},onDocumentTouchEnd:function(i){e[t.hoverChartIndex]&&e[t.hoverChartIndex].pointer.drop(i)}})}(t),function(t){var e=t.addEvent,i=t.charts,n=t.css,r=t.doc,o=t.extend,s=t.noop,a=t.Pointer,l=t.removeEvent,h=t.win,c=t.wrap;if(!t.hasTouch&&(h.PointerEvent||h.MSPointerEvent)){var u={},d=!!h.PointerEvent,p=function(){var e=[];return e.item=function(t){return this[t]},t.objectEach(u,function(t){e.push({pageX:t.pageX,pageY:t.pageY,target:t.target})}),e},f=function(e,n,r,o){"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!i[t.hoverChartIndex]||(o(e),(o=i[t.hoverChartIndex].pointer)[n]({type:r,target:e.currentTarget,preventDefault:s,touches:p()}))};o(a.prototype,{onContainerPointerDown:function(t){f(t,"onContainerTouchStart","touchstart",function(t){u[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},onContainerPointerMove:function(t){f(t,"onContainerTouchMove","touchmove",function(t){u[t.pointerId]={pageX:t.pageX,pageY:t.pageY},u[t.pointerId].target||(u[t.pointerId].target=t.currentTarget)})},onDocumentPointerUp:function(t){f(t,"onDocumentTouchEnd","touchend",function(t){delete u[t.pointerId]})},batchMSEvents:function(t){t(this.chart.container,d?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,d?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(r,d?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}),c(a.prototype,"init",function(t,e,i){t.call(this,e,i),this.hasZoom&&n(e.container,{"-ms-touch-action":"none","touch-action":"none"})}),c(a.prototype,"setDOMEvents",function(t){t.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(e)}),c(a.prototype,"destroy",function(t){this.batchMSEvents(l),t.call(this)})}}(t),function(t){var e,i=t.addEvent,n=t.css,r=t.discardElement,o=t.defined,s=t.each,a=t.isFirefox,l=t.marginNames,h=t.merge,c=t.pick,u=t.setAnimation,d=t.stableSort,p=t.win,f=t.wrap;(e=t.Legend=function(t,e){this.init(t,e)}).prototype={init:function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),i(this.chart,"endResize",function(){this.legend.positionCheckboxes()}))},setOptions:function(t){var e=c(t.padding,8);this.options=t,this.itemStyle=t.itemStyle,this.itemHiddenStyle=h(this.itemStyle,t.itemHiddenStyle),this.itemMarginTop=t.itemMarginTop||0,this.padding=e,this.initialItemY=e-5,this.itemHeight=this.maxItemWidth=0,this.symbolWidth=c(t.symbolWidth,16),this.pages=[]},update:function(t,e){var i=this.chart;this.setOptions(h(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,c(e,!0)&&i.redraw()},colorizeItem:function(e,i){e.legendGroup[i?"removeClass":"addClass"]("highcharts-legend-item-hidden");var n=this.options,r=e.legendItem,o=e.legendLine,s=e.legendSymbol,a=this.itemHiddenStyle.color,l=(n=i?n.itemStyle.color:a,i&&e.color||a),h=e.options&&e.options.marker,c={fill:l};r&&r.css({fill:n,color:n}),o&&o.attr({stroke:l}),s&&(h&&s.isMarker&&(c=e.pointAttribs(),i||t.objectEach(c,function(t,e){c[e]=a})),s.attr(c))},positionItem:function(t){var e=(i=this.options).symbolPadding,i=!i.rtl,n=(r=t._legendItemPos)[0],r=r[1],o=t.checkbox;(t=t.legendGroup)&&t.element&&t.translate(i?n:this.legendWidth-n-2*e-4,r),o&&(o.x=n,o.y=r)},destroyItem:function(t){var e=t.checkbox;s(["legendItem","legendLine","legendSymbol","legendGroup"],function(e){t[e]&&(t[e]=t[e].destroy())}),e&&r(t.checkbox)},destroy:function(){function t(t){this[t]&&(this[t]=this[t].destroy())}s(this.getAllItems(),function(e){s(["legendItem","legendGroup"],t,e)}),s("clipRect up down pager nav box title group".split(" "),t,this),this.display=null},positionCheckboxes:function(t){var e,i=this.group&&this.group.alignAttr,r=this.clipHeight||this.legendHeight,o=this.titleHeight;i&&(e=i.translateY,s(this.allItems,function(s){var a,l=s.checkbox;l&&(a=e+o+l.y+(t||0)+3,n(l,{left:i.translateX+s.checkboxOffset+l.x-20+"px",top:a+"px",display:a>e-6&&a<e+r-6?"":"none"}))}))},renderTitle:function(){var t=this.options,e=this.padding,i=t.title,n=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,null,null,null,t.useHTML,null,"legend-title").attr({zIndex:1}).css(i.style).add(this.group)),n=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:n})),this.titleHeight=n},setText:function(e){var i=this.options;e.legendItem.attr({text:i.labelFormat?t.format(i.labelFormat,e):i.labelFormatter.call(e)})},renderItem:function(t){var e=this.chart,i=e.renderer,n=this.options,r="horizontal"===n.layout,o=this.symbolWidth,s=n.symbolPadding,a=this.itemStyle,l=this.itemHiddenStyle,u=this.padding,d=r?c(n.itemDistance,20):0,p=!n.rtl,f=n.width,g=n.itemMarginBottom||0,m=this.itemMarginTop,v=t.legendItem,y=!t.series,x=!y&&t.series.drawLegendSymbol?t.series:t,b=x.options,w=(b=this.createCheckboxForItem&&b&&b.showCheckbox,n.useHTML),$=t.options.className;v||(t.legendGroup=i.g("legend-item").addClass("highcharts-"+x.type+"-series highcharts-color-"+t.colorIndex+($?" "+$:"")+(y?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.legendItem=v=i.text("",p?o+s:-s,this.baseline||0,w).css(h(t.visible?a:l)).attr({align:p?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(a=a.fontSize,this.fontMetrics=i.fontMetrics(a,v),this.baseline=this.fontMetrics.f+3+m,v.attr("y",this.baseline)),this.symbolHeight=n.symbolHeight||this.fontMetrics.f,x.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,v,w),b&&this.createCheckboxForItem(t)),this.colorizeItem(t,t.visible),this.setText(t),i=v.getBBox(),o=t.checkboxOffset=n.itemWidth||t.legendItemWidth||o+s+i.width+d+(b?20:0),this.itemHeight=s=Math.round(t.legendItemHeight||i.height||this.symbolHeight),r&&this.itemX-u+o>(f||e.spacingBox.width-2*u-n.x)&&(this.itemX=u,this.itemY+=m+this.lastLineHeight+g,this.lastLineHeight=0),this.maxItemWidth=Math.max(this.maxItemWidth,o),this.lastItemY=m+this.itemY+g,this.lastLineHeight=Math.max(s,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],r?this.itemX+=o:(this.itemY+=m+s+g,this.lastLineHeight=s),this.offsetWidth=f||Math.max((r?this.itemX-u-d:o)+u,this.offsetWidth)},getAllItems:function(){var t=[];return s(this.chart.series,function(e){var i=e&&e.options;e&&c(i.showInLegend,!o(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===i.legendType?e.data:e)))}),t},adjustMargins:function(t,e){var i=this.chart,n=this.options,r=n.align.charAt(0)+n.verticalAlign.charAt(0)+n.layout.charAt(0);n.floating||s([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(s,a){s.test(r)&&!o(t[a])&&(i[l[a]]=Math.max(i[l[a]],i.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*n[a%2?"x":"y"]+c(n.margin,12)+e[a]))})},render:function(){var t,e,i,n,r=this,o=r.chart,a=o.renderer,l=r.group,c=r.box,u=r.options,p=r.padding;r.itemX=p,r.itemY=r.initialItemY,r.offsetWidth=0,r.lastItemY=0,l||(r.group=l=a.g("legend").attr({zIndex:7}).add(),r.contentGroup=a.g().attr({zIndex:1}).add(l),r.scrollGroup=a.g().add(r.contentGroup)),r.renderTitle(),t=r.getAllItems(),d(t,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),u.reversed&&t.reverse(),r.allItems=t,r.display=e=!!t.length,r.lastLineHeight=0,s(t,function(t){r.renderItem(t)}),i=(u.width||r.offsetWidth)+p,n=r.lastItemY+r.lastLineHeight+r.titleHeight,n=r.handleOverflow(n),n+=p,c||(r.box=c=a.rect().addClass("highcharts-legend-box").attr({r:u.borderRadius}).add(l),c.isNew=!0),c.attr({stroke:u.borderColor,"stroke-width":u.borderWidth||0,fill:u.backgroundColor||"none"}).shadow(u.shadow),0<i&&0<n&&(c[c.isNew?"attr":"animate"](c.crisp({x:0,y:0,width:i,height:n},c.strokeWidth())),c.isNew=!1),c[e?"show":"hide"](),r.legendWidth=i,r.legendHeight=n,s(t,function(t){r.positionItem(t)}),e&&l.align(h(u,{width:i,height:n}),!0,"spacingBox"),o.isResizing||this.positionCheckboxes()},handleOverflow:function(t){var e,i,n=this,r=(h=this.chart).renderer,o=this.options,a=o.y,l=this.padding,h=h.spacingBox.height+("top"===o.verticalAlign?-a:a)-l,u=(a=o.maxHeight,this.clipRect),d=o.navigation,p=c(d.animation,!0),f=d.arrowSize||12,g=this.nav,m=this.pages,v=this.allItems,y=function(t){"number"==typeof t?u.attr({height:t}):u&&(n.clipRect=u.destroy(),n.contentGroup.clip()),n.contentGroup.div&&(n.contentGroup.div.style.clip=t?"rect("+l+"px,9999px,"+(l+t)+"px,0)":"auto")};return"horizontal"!==o.layout||"middle"===o.verticalAlign||o.floating||(h/=2),a&&(h=Math.min(h,a)),m.length=0,t>h&&!1!==d.enabled?(this.clipHeight=e=Math.max(h-20-this.titleHeight-l,0),this.currentPage=c(this.currentPage,1),this.fullHeight=t,s(v,function(t,n){var r=t._legendItemPos[1];t=Math.round(t.legendItem.getBBox().height);var o=m.length;(!o||r-m[o-1]>e&&(i||r)!==m[o-1])&&(m.push(i||r),o++),n===v.length-1&&r+t-m[o-1]>e&&m.push(r),r!==i&&(i=r)}),u||(u=n.clipRect=r.clipRect(0,l,9999,0),n.contentGroup.clip(u)),y(e),g||(this.nav=g=r.g().attr({zIndex:1}).add(this.group),this.up=r.symbol("triangle",0,0,f,f).on("click",function(){n.scroll(-1,p)}).add(g),this.pager=r.text("",15,10).addClass("highcharts-legend-navigation").css(d.style).add(g),this.down=r.symbol("triangle-down",0,0,f,f).on("click",function(){n.scroll(1,p)}).add(g)),n.scroll(0),t=h):g&&(y(),this.nav=g.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(t,e){var i=this.pages,n=i.length;t=this.currentPage+t;var r=this.clipHeight,o=this.options.navigation,s=this.pager,a=this.padding;t>n&&(t=n),0<t&&(void 0!==e&&u(e,this.chart),this.nav.attr({translateX:a,translateY:r+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({class:1===t?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),s.attr({text:t+"/"+n}),this.down.attr({x:18+this.pager.getBBox().width,class:t===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"}),this.up.attr({fill:1===t?o.inactiveColor:o.activeColor}).css({cursor:1===t?"default":"pointer"}),this.down.attr({fill:t===n?o.inactiveColor:o.activeColor}).css({cursor:t===n?"default":"pointer"}),e=-i[t-1]+this.initialItemY,this.scrollGroup.animate({translateY:e}),this.currentPage=t,this.positionCheckboxes(e))}},t.LegendSymbolMixin={drawRectangle:function(t,e){var i=t.symbolHeight,n=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(n?(t.symbolWidth-i)/2:0,t.baseline-i+1,n?i:t.symbolWidth,i,c(t.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(t){var e,i=this.options,n=i.marker,r=t.symbolWidth,o=t.symbolHeight,s=o/2,a=this.chart.renderer,l=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b),e={"stroke-width":i.lineWidth||0},i.dashStyle&&(e.dashstyle=i.dashStyle),this.legendLine=a.path(["M",0,t,"L",r,t]).addClass("highcharts-graph").attr(e).add(l),n&&!1!==n.enabled&&(i=Math.min(c(n.radius,s),s),0===this.symbol.indexOf("url")&&(n=h(n,{width:o,height:o}),i=0),this.legendSymbol=n=a.symbol(this.symbol,r/2-i,t-i,2*i,2*i,n).addClass("highcharts-point").add(l),n.isMarker=!0)}},(/Trident\/7\.0/.test(p.navigator.userAgent)||a)&&f(e.prototype,"positionItem",function(t,e){var i=this,n=function(){e._legendItemPos&&t.call(i,e)};n(),setTimeout(n)})}(t),function(t){var e=t.addEvent,i=t.animate,n=t.animObject,r=t.attr,o=t.doc,s=t.Axis,a=t.createElement,l=t.defaultOptions,h=t.discardElement,c=t.charts,u=t.css,d=t.defined,p=t.each,f=t.extend,g=t.find,m=t.fireEvent,v=t.getStyle,y=t.grep,x=t.isNumber,b=t.isObject,w=t.isString,$=t.Legend,S=t.marginNames,k=t.merge,T=t.objectEach,C=t.Pointer,E=t.pick,M=t.pInt,A=t.removeEvent,P=t.seriesTypes,L=t.splat,O=t.svg,D=t.syncTimeout,N=t.win,I=t.Renderer,z=t.Chart=function(){this.getArgs.apply(this,arguments)};t.chart=function(t,e,i){return new z(t,e,i)},f(z.prototype,{callbacks:[],getArgs:function(){var t=[].slice.call(arguments);(w(t[0])||t[0].nodeName)&&(this.renderTo=t.shift()),this.init(t[0],t[1])},init:function(i,n){var r,o,s=i.series,a=i.plotOptions||{};for(o in i.series=null,(r=k(l,i)).plotOptions)r.plotOptions[o].tooltip=a[o]&&k(a[o].tooltip)||void 0;r.tooltip.userOptions=i.chart&&i.chart.forExport&&i.tooltip.userOptions||i.tooltip,r.series=i.series=s,this.userOptions=i,o=(i=r.chart).events,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.callback=n,this.isResizing=0,this.options=r,this.axes=[],this.series=[],this.hasCartesianSeries=i.showAxes;var h=this;h.index=c.length,c.push(h),t.chartCount++,o&&T(o,function(t,i){e(h,i,t)}),h.xAxis=[],h.yAxis=[],h.pointCount=h.colorCounter=h.symbolCounter=0,h.firstRender()},initSeries:function(e){var i=this.options.chart;return(i=P[e.type||i.type||i.defaultSeriesType])||t.error(17,!0),(i=new i).init(this,e),i},orderSeries:function(t){var e=this.series;for(t=t||0;t<e.length;t++)e[t]&&(e[t].index=t,e[t].name=e[t].name||"Series "+(e[t].index+1))},isInsidePlot:function(t,e,i){var n=i?e:t;return t=i?t:e,0<=n&&n<=this.plotWidth&&0<=t&&t<=this.plotHeight},redraw:function(e){var i,n,r,o=this.axes,s=this.series,a=this.pointer,l=this.legend,h=this.isDirtyLegend,c=this.hasCartesianSeries,u=this.isDirtyBox,d=this.renderer,g=d.isHidden(),v=[];for(this.setResponsive&&this.setResponsive(!1),t.setAnimation(e,this),g&&this.temporaryDisplay(),this.layOutTitles(),e=s.length;e--;)if((r=s[e]).options.stacking&&(i=!0,r.isDirty)){n=!0;break}if(n)for(e=s.length;e--;)(r=s[e]).options.stacking&&(r.isDirty=!0);p(s,function(t){t.isDirty&&"point"===t.options.legendType&&(t.updateTotals&&t.updateTotals(),h=!0),t.isDirtyData&&m(t,"updatedData")}),h&&l.options.enabled&&(l.render(),this.isDirtyLegend=!1),i&&this.getStacks(),c&&p(o,function(t){t.updateNames(),t.setScale()}),this.getMargins(),c&&(p(o,function(t){t.isDirty&&(u=!0)}),p(o,function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,v.push(function(){m(t,"afterSetExtremes",f(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(u||i)&&t.redraw()})),u&&this.drawChartBox(),m(this,"predraw"),p(s,function(t){(u||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),a&&a.reset(!0),d.draw(),m(this,"redraw"),m(this,"render"),g&&this.temporaryDisplay(!0),p(v,function(t){t.call()})},get:function(t){function e(e){return e.id===t||e.options&&e.options.id===t}var i,n,r=this.series;for(i=g(this.axes,e)||g(this.series,e),n=0;!i&&n<r.length;n++)i=g(r[n].points||[],e);return i},getAxes:function(){var t=this,e=(i=this.options).xAxis=L(i.xAxis||{}),i=i.yAxis=L(i.yAxis||{});p(e,function(t,e){t.index=e,t.isX=!0}),p(i,function(t,e){t.index=e}),e=e.concat(i),p(e,function(e){new s(t,e)})},getSelectedPoints:function(){var t=[];return p(this.series,function(e){t=t.concat(y(e.data||[],function(t){return t.selected}))}),t},getSelectedSeries:function(){return y(this.series,function(t){return t.selected})},setTitle:function(t,e,i){var n,r=this,o=r.options;n=o.title=k({style:{color:"#333333",fontSize:o.isStock?"16px":"18px"}},o.title,t),o=o.subtitle=k({style:{color:"#666666"}},o.subtitle,e),p([["title",t,n],["subtitle",e,o]],function(t,e){var i=t[0],n=r[i],o=t[1];t=t[2],n&&o&&(r[i]=n=n.destroy()),t&&t.text&&!n&&(r[i]=r.renderer.text(t.text,0,0,t.useHTML).attr({align:t.align,class:"highcharts-"+i,zIndex:t.zIndex||4}).add(),r[i].update=function(t){r.setTitle(!e&&t,e&&t)},r[i].css(t.style))}),r.layOutTitles(i)},layOutTitles:function(t){var e,i=0,n=this.renderer,r=this.spacingBox;p(["title","subtitle"],function(t){var e,o=this[t],s=this.options[t];t="title"===t?-3:s.verticalAlign?0:i+2,o&&(e=s.style.fontSize,e=n.fontMetrics(e,o).b,o.css({width:(s.width||r.width+s.widthAdjust)+"px"}).align(f({y:t+e},s),!1,"spacingBox"),s.floating||s.verticalAlign||(i=Math.ceil(i+o.getBBox(s.useHTML).height)))},this),e=this.titleOffset!==i,this.titleOffset=i,!this.isDirtyBox&&e&&(this.isDirtyBox=e,this.hasRendered&&E(t,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var e=(i=this.options.chart).width,i=i.height,n=this.renderTo;d(e)||(this.containerWidth=v(n,"width")),d(i)||(this.containerHeight=v(n,"height")),this.chartWidth=Math.max(0,e||this.containerWidth||600),this.chartHeight=Math.max(0,t.relativeLength(i,this.chartWidth)||this.containerHeight||400)},temporaryDisplay:function(e){var i=this.renderTo;if(e)for(;i&&i.style;)i.hcOrigStyle&&(t.css(i,i.hcOrigStyle),delete i.hcOrigStyle),i=i.parentNode;else for(;i&&i.style;)"none"===v(i,"display",!1)&&(i.hcOrigStyle={display:i.style.display,height:i.style.height,overflow:i.style.overflow},t.css(i,{display:"block",height:0,overflow:"hidden"}),i.style.setProperty&&i.style.setProperty("display","block","important")),i=i.parentNode},setClassName:function(t){this.container.className="highcharts-container "+(t||"")},getContainer:function(){var e,i,n,s=this.options,l=s.chart;e=this.renderTo;var h,u=t.uniqueKey();e||(this.renderTo=e=l.renderTo),w(e)&&(this.renderTo=e=o.getElementById(e)),e||t.error(13,!0),i=M(r(e,"data-highcharts-chart")),x(i)&&c[i]&&c[i].hasRendered&&c[i].destroy(),r(e,"data-highcharts-chart",this.index),e.innerHTML="",l.skipClone||e.offsetWidth||this.temporaryDisplay(),this.getChartSize(),i=this.chartWidth,n=this.chartHeight,h=f({position:"relative",overflow:"hidden",width:i+"px",height:n+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},l.style),this.container=e=a("div",{id:u},h,e),this._cursor=e.style.cursor,this.renderer=new(t[l.renderer]||I)(e,i,n,null,l.forExport,s.exporting&&s.exporting.allowHTML),this.setClassName(l.className),this.renderer.setStyle(l.style),this.renderer.chartIndex=this.index},getMargins:function(t){var e=this.spacing,i=this.margin,n=this.titleOffset;this.resetMargins(),n&&!d(i[0])&&(this.plotTop=Math.max(this.plotTop,n+this.options.title.margin+e[0])),this.legend.display&&this.legend.adjustMargins(i,e),this.extraMargin&&(this[this.extraMargin.type]=(this[this.extraMargin.type]||0)+this.extraMargin.value),this.extraTopMargin&&(this.plotTop+=this.extraTopMargin),t||this.getAxisMargins()},getAxisMargins:function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.margin;t.hasCartesianSeries&&p(t.axes,function(t){t.visible&&t.getOffset()}),p(S,function(n,r){d(i[r])||(t[n]+=e[r])}),t.setChartSize()},reflow:function(t){var e=this,i=e.options.chart,n=e.renderTo,r=d(i.width),s=i.width||v(n,"width");i=i.height||v(n,"height"),n=t?t.target:N;r||e.isPrinting||!s||!i||n!==N&&n!==o||(s===e.containerWidth&&i===e.containerHeight||(clearTimeout(e.reflowTimeout),e.reflowTimeout=D(function(){e.container&&e.setSize(void 0,void 0,!1)},t?100:0)),e.containerWidth=s,e.containerHeight=i)},initReflow:function(){var t,i=this;t=e(N,"resize",function(t){i.reflow(t)}),e(i,"destroy",t)},setSize:function(e,r,o){var s=this,a=s.renderer;s.isResizing+=1,t.setAnimation(o,s),s.oldChartHeight=s.chartHeight,s.oldChartWidth=s.chartWidth,void 0!==e&&(s.options.chart.width=e),void 0!==r&&(s.options.chart.height=r),s.getChartSize(),((e=a.globalAnimation)?i:u)(s.container,{width:s.chartWidth+"px",height:s.chartHeight+"px"},e),s.setChartSize(!0),a.setSize(s.chartWidth,s.chartHeight,o),p(s.axes,function(t){t.isDirty=!0,t.setScale()}),s.isDirtyLegend=!0,s.isDirtyBox=!0,s.layOutTitles(),s.getMargins(),s.redraw(o),s.oldChartHeight=null,m(s,"resize"),D(function(){s&&m(s,"endResize",null,function(){--s.isResizing})},n(e).duration)},setChartSize:function(t){var e,i,n,r,o=this.inverted,s=this.renderer,a=this.chartWidth,l=this.chartHeight,h=this.options.chart,c=this.spacing,u=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=n=Math.max(0,Math.round(a-e-this.marginRight)),this.plotHeight=r=Math.max(0,Math.round(l-i-this.marginBottom)),this.plotSizeX=o?r:n,this.plotSizeY=o?n:r,this.plotBorderWidth=h.plotBorderWidth||0,this.spacingBox=s.spacingBox={x:c[3],y:c[0],width:a-c[3]-c[1],height:l-c[0]-c[2]},this.plotBox=s.plotBox={x:e,y:i,width:n,height:r},a=2*Math.floor(this.plotBorderWidth/2),o=Math.ceil(Math.max(a,u[3])/2),s=Math.ceil(Math.max(a,u[0])/2),this.clipBox={x:o,y:s,width:Math.floor(this.plotSizeX-Math.max(a,u[1])/2-o),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(a,u[2])/2-s))},t||p(this.axes,function(t){t.setAxisSize(),t.setAxisTranslation()})},resetMargins:function(){var t=this,e=t.options.chart;p(["margin","spacing"],function(i){var n=e[i],r=b(n)?n:[n,n,n,n];p(["Top","Right","Bottom","Left"],function(n,o){t[i][o]=E(e[i+n],r[o])})}),p(S,function(e,i){t[e]=E(t.margin[i],t.spacing[i])}),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},drawChartBox:function(){var t,e,i=this.options.chart,n=this.renderer,r=this.chartWidth,o=this.chartHeight,s=this.chartBackground,a=this.plotBackground,l=this.plotBorder,h=this.plotBGImage,c=i.backgroundColor,u=i.plotBackgroundColor,d=i.plotBackgroundImage,p=this.plotLeft,f=this.plotTop,g=this.plotWidth,m=this.plotHeight,v=this.plotBox,y=this.clipRect,x=this.clipBox,b="animate";s||(this.chartBackground=s=n.rect().addClass("highcharts-background").add(),b="attr"),e=(t=i.borderWidth||0)+(i.shadow?8:0),c={fill:c||"none"},(t||s["stroke-width"])&&(c.stroke=i.borderColor,c["stroke-width"]=t),s.attr(c).shadow(i.shadow),s[b]({x:e/2,y:e/2,width:r-e-t%2,height:o-e-t%2,r:i.borderRadius}),b="animate",a||(b="attr",this.plotBackground=a=n.rect().addClass("highcharts-plot-background").add()),a[b](v),a.attr({fill:u||"none"}).shadow(i.plotShadow),d&&(h?h.animate(v):this.plotBGImage=n.image(d,p,f,g,m).add()),y?y.animate({width:x.width,height:x.height}):this.clipRect=n.clipRect(x),b="animate",l||(b="attr",this.plotBorder=l=n.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),l.attr({stroke:i.plotBorderColor,"stroke-width":i.plotBorderWidth||0,fill:"none"}),l[b](l.crisp({x:p,y:f,width:g,height:m},-l.strokeWidth())),this.isDirtyBox=!1},propFromSeries:function(){var t,e,i,n=this,r=n.options.chart,o=n.options.series;p(["inverted","angular","polar"],function(s){for(t=P[r.type||r.defaultSeriesType],i=r[s]||t&&t.prototype[s],e=o&&o.length;!i&&e--;)(t=P[o[e].type])&&t.prototype[s]&&(i=!0);n[s]=i})},linkSeries:function(){var t=this,e=t.series;p(e,function(t){t.linkedSeries.length=0}),p(e,function(e){var i=e.options.linkedTo;w(i)&&(i=":previous"===i?t.series[e.index-1]:t.get(i))&&i.linkedParent!==e&&(i.linkedSeries.push(e),e.linkedParent=i,e.visible=E(e.options.visible,i.options.visible,e.visible))})},renderSeries:function(){p(this.series,function(t){t.translate(),t.render()})},renderLabels:function(){var t=this,e=t.options.labels;e.items&&p(e.items,function(i){var n=f(e.style,i.style),r=M(n.left)+t.plotLeft,o=M(n.top)+t.plotTop+12;delete n.left,delete n.top,t.renderer.text(i.html,r,o).attr({zIndex:2}).css(n).add()})},render:function(){var t,e,i,n=this.axes,r=this.renderer,o=this.options;this.setTitle(),this.legend=new $(this,o.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),o=this.plotWidth,t=this.plotHeight-=21,p(n,function(t){t.setScale()}),this.getAxisMargins(),e=1.1<o/this.plotWidth,i=1.05<t/this.plotHeight,(e||i)&&(p(n,function(t){(t.horiz&&e||!t.horiz&&i)&&t.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries&&p(n,function(t){t.visible&&t.render()}),this.seriesGroup||(this.seriesGroup=r.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},addCredits:function(t){var e=this;(t=k(!0,this.options.credits,t)).enabled&&!this.credits&&(this.credits=this.renderer.text(t.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){t.href&&(N.location.href=t.href)}).attr({align:t.position.align,zIndex:8}).css(t.style).add().align(t.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},destroy:function(){var e,i=this,n=i.axes,r=i.series,o=i.container,s=o&&o.parentNode;for(m(i,"destroy"),i.renderer.forExport?t.erase(c,i):c[i.index]=void 0,t.chartCount--,i.renderTo.removeAttribute("data-highcharts-chart"),A(i),e=n.length;e--;)n[e]=n[e].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),e=r.length;e--;)r[e]=r[e].destroy();p("title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" "),function(t){var e=i[t];e&&e.destroy&&(i[t]=e.destroy())}),o&&(o.innerHTML="",A(o),s&&h(o)),T(i,function(t,e){delete i[e]})},isReadyToRender:function(){var t=this;return!(!O&&N==N.top&&"complete"!==o.readyState)||(o.attachEvent("onreadystatechange",function(){o.detachEvent("onreadystatechange",t.firstRender),"complete"===o.readyState&&t.firstRender()}),!1)},firstRender:function(){var t=this,e=t.options;t.isReadyToRender()&&(t.getContainer(),m(t,"init"),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),p(e.series||[],function(e){t.initSeries(e)}),t.linkSeries(),m(t,"beforeRender"),C&&(t.pointer=new C(t,e)),t.render(),!t.renderer.imgCount&&t.onload&&t.onload(),t.temporaryDisplay(!0))},onload:function(){p([this.callback].concat(this.callbacks),function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),m(this,"load"),m(this,"render"),d(this.index)&&!1!==this.options.chart.reflow&&this.initReflow(),this.onload=null}})}(t),function(t){var e,i=t.each,n=t.extend,r=t.erase,o=t.fireEvent,s=t.format,a=t.isArray,l=t.isNumber,h=t.pick,c=t.removeEvent;(e=t.Point=function(){}).prototype={init:function(t,e,i){return this.series=t,this.color=t.color,this.applyOptions(e,i),t.options.colorByPoint?(e=t.options.colors||t.chart.options.colors,this.color=this.color||e[t.colorCounter],e=e.length,i=t.colorCounter,t.colorCounter++,t.colorCounter===e&&(t.colorCounter=0)):i=t.colorIndex,this.colorIndex=h(this.colorIndex,i),t.chart.pointCount++,this},applyOptions:function(t,i){var r=this.series,o=r.options.pointValKey||r.pointValKey;return t=e.prototype.optionsToObject.call(this,t),n(this,t),this.options=this.options?n(this.options,t):t,t.group&&delete this.group,o&&(this.y=this[o]),this.isNull=h(this.isValid&&!this.isValid(),null===this.x||!l(this.y,!0)),this.selected&&(this.state="select"),"name"in this&&void 0===i&&r.xAxis&&r.xAxis.hasNames&&(this.x=r.xAxis.nameToX(this)),void 0===this.x&&r&&(this.x=void 0===i?r.autoIncrement(this):i),this},optionsToObject:function(t){var e={},i=this.series,n=i.options.keys,r=n||i.pointArrayMap||["y"],o=r.length,s=0,h=0;if(l(t)||null===t)e[r[0]]=t;else if(a(t))for(!n&&t.length>o&&("string"===(i=typeof t[0])?e.name=t[0]:"number"===i&&(e.x=t[0]),s++);h<o;)n&&void 0===t[s]||(e[r[h]]=t[s]),s++,h++;else"object"==typeof t&&(e=t,t.dataLabels&&(i._hasPointLabels=!0),t.marker&&(i._hasPointMarkers=!0));return e},getClassName:function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},getZone:function(){var t,e=(i=this.series).zones,i=i.zoneAxis||"y",n=0;for(t=e[n];this[i]>=t.value;)t=e[++n];return t&&t.color&&!this.options.color&&(this.color=t.color),t},destroy:function(){var t,e=this.series.chart,i=e.hoverPoints;for(t in e.pointCount--,i&&(this.setState(),r(i,this),i.length||(e.hoverPoints=null)),this===e.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel)&&(c(this),this.destroyElements()),this.legendItem&&e.legend.destroyItem(this),this)this[t]=null},destroyElements:function(){for(var t,e=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],i=6;i--;)this[t=e[i]]&&(this[t]=this[t].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(t){var e=this.series,n=e.tooltipOptions,r=h(n.valueDecimals,""),o=n.valuePrefix||"",a=n.valueSuffix||"";return i(e.pointArrayMap||["y"],function(e){e="{point."+e,(o||a)&&(t=t.replace(e+"}",o+e+"}"+a)),t=t.replace(e+"}",e+":,."+r+"f}")}),s(t,{point:this,series:this.series})},firePointEvent:function(t,e,i){var n=this,r=this.series.options;(r.point.events[t]||n.options&&n.options.events&&n.options.events[t])&&this.importEvents(),"click"===t&&r.allowPointSelect&&(i=function(t){n.select&&n.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),o(this,t,e,i)},visible:!0}}(t),function(t){var e=t.addEvent,i=t.animObject,n=t.arrayMax,r=t.arrayMin,o=t.correctFloat,s=t.Date,a=t.defaultOptions,l=t.defaultPlotOptions,h=t.defined,c=t.each,u=t.erase,d=t.extend,p=t.fireEvent,f=t.grep,g=t.isArray,m=t.isNumber,v=t.isString,y=t.merge,x=t.objectEach,b=t.pick,w=t.removeEvent,$=t.splat,S=t.SVGElement,k=t.syncTimeout,T=t.win;t.Series=t.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{lineWidth:0,lineColor:"#ffffff",radius:4,states:{hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":t.numberFormat(this.y,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{isCartesian:!0,pointClass:t.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],coll:"series",init:function(t,i){var n,r,o=this,s=t.series;o.chart=t,o.options=i=o.setOptions(i),o.linkedSeries=[],o.bindAxes(),d(o,{name:i.name,state:"",visible:!1!==i.visible,selected:!0===i.selected}),n=i.events,x(n,function(t,i){e(o,i,t)}),(n&&n.click||i.point&&i.point.events&&i.point.events.click||i.allowPointSelect)&&(t.runTrackerClick=!0),o.getColor(),o.getSymbol(),c(o.parallelArrays,function(t){o[t+"Data"]=[]}),o.setData(i.data,!1),o.isCartesian&&(t.hasCartesianSeries=!0),s.length&&(r=s[s.length-1]),o._i=b(r&&r._i,-1)+1,t.orderSeries(this.insert(s))},insert:function(t){var e,i=this.options.index;if(m(i)){for(e=t.length;e--;)if(i>=b(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return b(e,t.length-1)},bindAxes:function(){var e,i=this,n=i.options,r=i.chart;c(i.axisTypes||[],function(o){c(r[o],function(t){e=t.options,(n[o]===e.index||void 0!==n[o]&&n[o]===e.id||void 0===n[o]&&0===e.index)&&(i.insert(t.series),i[o]=t,t.isDirty=!0)}),i[o]||i.optionalAxis===o||t.error(18,!0)})},updateParallelArrays:function(t,e){var i=t.series,n=arguments,r=m(e)?function(n){var r="y"===n&&i.toYData?i.toYData(t):t[n];i[n+"Data"][e]=r}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(n,2))};c(i.parallelArrays,r)},autoIncrement:function(){var t,e=this.options,i=this.xIncrement,n=e.pointIntervalUnit;i=b(i,e.pointStart,0);return this.pointInterval=t=b(this.pointInterval,e.pointInterval,1),n&&(e=new s(i),"day"===n?e=+e[s.hcSetDate](e[s.hcGetDate]()+t):"month"===n?e=+e[s.hcSetMonth](e[s.hcGetMonth]()+t):"year"===n&&(e=+e[s.hcSetFullYear](e[s.hcGetFullYear]()+t)),t=e-i),this.xIncrement=i+t,i},setOptions:function(t){var e=this.chart,i=e.options,n=i.plotOptions,r=(e.userOptions||{}).plotOptions||{},o=n[this.type];return this.userOptions=t,e=y(o,n.series,t),this.tooltipOptions=y(a.tooltip,a.plotOptions.series&&a.plotOptions.series.tooltip,a.plotOptions[this.type].tooltip,i.tooltip.userOptions,n.series&&n.series.tooltip,n[this.type].tooltip,t.tooltip),this.stickyTracking=b(t.stickyTracking,r[this.type]&&r[this.type].stickyTracking,r.series&&r.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||e.stickyTracking),null===o.marker&&delete e.marker,this.zoneAxis=e.zoneAxis,t=this.zones=(e.zones||[]).slice(),!e.negativeColor&&!e.negativeFillColor||e.zones||t.push({value:e[this.zoneAxis+"Threshold"]||e.threshold||0,className:"highcharts-negative",color:e.negativeColor,fillColor:e.negativeFillColor}),t.length&&h(t[t.length-1].value)&&t.push({color:this.color,fillColor:this.fillColor}),e},getCyclic:function(t,e,i){var n,r=this.chart,o=this.userOptions,s=t+"Index",a=t+"Counter",l=i?i.length:b(r.options.chart[t+"Count"],r[t+"Count"]);e||(n=b(o[s],o["_"+s]),h(n)||(r.series.length||(r[a]=0),o["_"+s]=n=r[a]%l,r[a]+=1),i&&(e=i[n])),void 0!==n&&(this[s]=n),this[t]=e},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||l[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:t.LegendSymbolMixin.drawLineMarker,setData:function(e,i,n,r){var o,s=this,a=s.points,l=a&&a.length||0,h=s.options,u=s.chart,d=null,p=s.xAxis,f=h.turboThreshold,y=this.xData,x=this.yData,w=(o=s.pointArrayMap)&&o.length;if(o=(e=e||[]).length,i=b(i,!0),!1!==r&&o&&l===o&&!s.cropped&&!s.hasGroupedData&&s.visible)c(e,function(t,e){a[e].update&&t!==h.data[e]&&a[e].update(t,!1,null,!1)});else{if(s.xIncrement=null,s.colorCounter=0,c(this.parallelArrays,function(t){s[t+"Data"].length=0}),f&&o>f){for(n=0;null===d&&n<o;)d=e[n],n++;if(m(d))for(n=0;n<o;n++)y[n]=this.autoIncrement(),x[n]=e[n];else if(g(d))if(w)for(n=0;n<o;n++)d=e[n],y[n]=d[0],x[n]=d.slice(1,w+1);else for(n=0;n<o;n++)d=e[n],y[n]=d[0],x[n]=d[1];else t.error(12)}else for(n=0;n<o;n++)void 0!==e[n]&&(d={series:s},s.pointClass.prototype.applyOptions.apply(d,[e[n]]),s.updateParallelArrays(d,n));for(v(x[0])&&t.error(14,!0),s.data=[],s.options.data=s.userOptions.data=e,n=l;n--;)a[n]&&a[n].destroy&&a[n].destroy();p&&(p.minRange=p.userMinRange),s.isDirty=u.isDirtyBox=!0,s.isDirtyData=!!a,n=!1}"point"===h.legendType&&(this.processData(),this.generatePoints()),i&&u.redraw(n)},processData:function(e){var i,n=this.xData,r=this.yData,o=n.length;i=0;var s,a,l,h=this.xAxis;l=(f=this.options).cropThreshold;var c,u,d=this.getExtremesFromAll||f.getExtremesFromAll,p=this.isCartesian,f=h&&h.val2lin,g=h&&h.isLog;if(p&&!this.isDirty&&!h.isDirty&&!this.yAxis.isDirty&&!e)return!1;for(h&&(c=(e=h.getExtremes()).min,u=e.max),p&&this.sorted&&!d&&(!l||o>l||this.forceCrop)&&(n[o-1]<c||n[0]>u?(n=[],r=[]):(n[0]<c||n[o-1]>u)&&(n=(i=this.cropData(this.xData,this.yData,c,u)).xData,r=i.yData,i=i.start,s=!0)),l=n.length||1;--l;)0<(o=g?f(n[l])-f(n[l-1]):n[l]-n[l-1])&&(void 0===a||o<a)?a=o:0>o&&this.requireSorting&&t.error(15);this.cropped=s,this.cropStart=i,this.processedXData=n,this.processedYData=r,this.closestPointRange=a},cropData:function(t,e,i,n){var r,o=t.length,s=0,a=o,l=b(this.cropShoulder,1);for(r=0;r<o;r++)if(t[r]>=i){s=Math.max(0,r-l);break}for(i=r;i<o;i++)if(t[i]>n){a=i+l;break}return{xData:t.slice(s,a),yData:e.slice(s,a),start:s,end:a}},generatePoints:function(){var t,e,i,n,r=(d=this.options).data,o=this.data,s=this.processedXData,a=this.processedYData,l=this.pointClass,h=s.length,c=this.cropStart||0,u=this.hasGroupedData,d=d.keys,p=[];for(o||u||((o=[]).length=r.length,o=this.data=o),d&&u&&(this.options.keys=!1),n=0;n<h;n++)e=c+n,u?(i=(new l).init(this,[s[n]].concat($(a[n])))).dataGroup=this.groupMap[n]:(i=o[e])||void 0===r[e]||(o[e]=i=(new l).init(this,r[e],s[n])),i&&(i.index=e,p[n]=i);if(this.options.keys=d,o&&(h!==(t=o.length)||u))for(n=0;n<t;n++)n!==c||u||(n+=h),o[n]&&(o[n].destroyElements(),o[n].plotX=void 0);this.data=o,this.points=p},getExtremes:function(t){var e,i,o,s,a,l=this.yAxis,h=this.processedXData,c=[],u=0,d=(e=this.xAxis.getExtremes()).min,p=e.max;for(e=(t=t||this.stackedYData||this.processedYData||[]).length,a=0;a<e;a++)if(o=h[a],s=t[a],i=(m(s,!0)||g(s))&&(!l.positiveValuesOnly||s.length||0<s),o=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||(h[a]||o)>=d&&(h[a]||o)<=p,i&&o)if(i=s.length)for(;i--;)null!==s[i]&&(c[u++]=s[i]);else c[u++]=s;this.dataMin=r(c),this.dataMax=n(c)},translate:function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i,n,r=this.options,s=r.stacking,a=this.xAxis,l=a.categories,c=this.yAxis,u=this.points,d=u.length,p=!!this.modifyValue,f=r.pointPlacement,g="between"===f||m(f),v=r.threshold,y=r.startFromThreshold?v:0,x=Number.MAX_VALUE;for("between"===f&&(f=.5),m(f)&&(f*=b(r.pointRange||a.pointRange)),r=0;r<d;r++){var w=u[r],$=w.x,S=w.y;e=w.low;var k,T=s&&c.stacks[(this.negStacks&&S<(y?0:v)?"-":"")+this.stackKey];c.positiveValuesOnly&&null!==S&&0>=S&&(w.isNull=!0),w.plotX=t=o(Math.min(Math.max(-1e5,a.translate($,0,0,0,1,f,"flags"===this.type)),1e5)),s&&this.visible&&!w.isNull&&T&&T[$]&&(n=this.getStackIndicator(n,$,this.index),e=(S=(k=T[$]).points[n.key])[0],S=S[1],e===y&&n.key===T[$].base&&(e=b(v,c.min)),c.positiveValuesOnly&&0>=e&&(e=null),w.total=w.stackTotal=k.total,w.percentage=k.total&&w.y/k.total*100,w.stackY=S,k.setOffset(this.pointXOffset||0,this.barW||0)),w.yBottom=h(e)?c.translate(e,0,1,0,1):null,p&&(S=this.modifyValue(S,w)),w.plotY=e="number"==typeof S&&1/0!==S?Math.min(Math.max(-1e5,c.translate(S,0,1,0,1)),1e5):void 0,w.isInside=void 0!==e&&0<=e&&e<=c.len&&0<=t&&t<=a.len,w.clientX=g?o(a.translate($,0,0,0,1,f)):t,w.negative=w.y<(v||0),w.category=l&&void 0!==l[w.x]?l[w.x]:w.x,w.isNull||(void 0!==i&&(x=Math.min(x,Math.abs(t-i))),i=t),w.zone=this.zones.length&&w.getZone()}this.closestPointRangePx=x},getValidPoints:function(t,e){var i=this.chart;return f(t||this.points||[],function(t){return!(e&&!i.isInsidePlot(t.plotX,t.plotY,i.inverted))&&!t.isNull})},setClip:function(t){var e=this.chart,i=this.options,n=e.renderer,r=e.inverted,o=this.clipBox,s=o||e.clipBox,a=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,s.height,i.xAxis,i.yAxis].join(),l=e[a],h=e[a+"m"];l||(t&&(s.width=0,e[a+"m"]=h=n.clipRect(-99,r?-e.plotLeft:-e.plotTop,99,r?e.chartWidth:e.chartHeight)),e[a]=l=n.clipRect(s),l.count={length:0}),t&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1),!1!==i.clip&&(this.group.clip(t||o?l:e.clipRect),this.markerGroup.clip(h),this.sharedClipKey=a),t||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&a&&e[a]&&(o||(e[a]=e[a].destroy()),e[a+"m"]&&(e[a+"m"]=e[a+"m"].destroy())))},animate:function(t){var e,n=this.chart,r=i(this.options.animation);t?this.setClip(r):((t=n[e=this.sharedClipKey])&&t.animate({width:n.plotSizeX},r),n[e+"m"]&&n[e+"m"].animate({width:n.plotSizeX+99},r),this.animate=null)},afterAnimate:function(){this.setClip(),p(this,"afterAnimate")},drawPoints:function(){var t,e,i,n,r,o,s,a,l=this.points,h=this.chart,c=this.options.marker,u=this[this.specialGroup]||this.markerGroup,d=b(c.enabled,!!this.xAxis.isRadial||null,this.closestPointRangePx>=2*c.radius);if(!1!==c.enabled||this._hasPointMarkers)for(e=0;e<l.length;e++)t=(i=l[e]).plotY,n=i.graphic,r=i.marker||{},o=!!i.marker,s=d&&void 0===r.enabled||r.enabled,a=i.isInside,s&&m(t)&&null!==i.y?(t=b(r.symbol,this.symbol),i.hasImage=0===t.indexOf("url"),s=this.markerAttribs(i,i.selected&&"select"),n?n[a?"show":"hide"](!0).animate(s):a&&(0<s.width||i.hasImage)&&(i.graphic=n=h.renderer.symbol(t,s.x,s.y,s.width,s.height,o?r:c).add(u)),n&&n.attr(this.pointAttribs(i,i.selected&&"select")),n&&n.addClass(i.getClassName(),!0)):n&&(i.graphic=n.destroy())},markerAttribs:function(t,e){var i=this.options.marker,n=t.marker||{},r=b(n.radius,i.radius);return e&&(i=i.states[e],e=n.states&&n.states[e],r=b(e&&e.radius,i&&i.radius,r+(i&&i.radiusPlus||0))),t.hasImage&&(r=0),t={x:Math.floor(t.plotX)-r,y:t.plotY-r},r&&(t.width=t.height=2*r),t},pointAttribs:function(t,e){var i=this.options.marker,n=(a=t&&t.options)&&a.marker||{},r=this.color,o=a&&a.color,s=t&&t.color,a=b(n.lineWidth,i.lineWidth);return t=t&&t.zone&&t.zone.color,r=o||t||s||r,t=n.fillColor||i.fillColor||r,r=n.lineColor||i.lineColor||r,e&&(i=i.states[e],e=n.states&&n.states[e]||{},a=b(e.lineWidth,i.lineWidth,a+b(e.lineWidthPlus,i.lineWidthPlus,0)),t=e.fillColor||i.fillColor||t,r=e.lineColor||i.lineColor||r),{stroke:r,"stroke-width":a,fill:t}},destroy:function(){var t,e,i,n=this,r=n.chart,o=/AppleWebKit\/533/.test(T.navigator.userAgent),s=n.data||[];for(p(n,"destroy"),w(n),c(n.axisTypes||[],function(t){(i=n[t])&&i.series&&(u(i.series,n),i.isDirty=i.forceRedraw=!0)}),n.legendItem&&n.chart.legend.destroyItem(n),t=s.length;t--;)(e=s[t])&&e.destroy&&e.destroy();n.points=null,clearTimeout(n.animationTimeout),x(n,function(t,e){t instanceof S&&!t.survive&&t[o&&"group"===e?"hide":"destroy"]()}),r.hoverSeries===n&&(r.hoverSeries=null),u(r.series,n),r.orderSeries(),x(n,function(t,e){delete n[e]})},getGraphPath:function(t,e,i){var n,r,o=this,s=o.options,a=s.step,l=[],u=[];return(n=(t=t||o.points).reversed)&&t.reverse(),(a={right:1,center:2}[a]||a&&3)&&n&&(a=4-a),!s.connectNulls||e||i||(t=this.getValidPoints(t)),c(t,function(n,c){var d=n.plotX,p=n.plotY,f=t[c-1];(n.leftCliff||f&&f.rightCliff)&&!i&&(r=!0),n.isNull&&!h(e)&&0<c?r=!s.connectNulls:n.isNull&&!e?r=!0:(0===c||r?c=["M",n.plotX,n.plotY]:o.getPointSpline?c=o.getPointSpline(t,n,c):a?(c=1===a?["L",f.plotX,p]:2===a?["L",(f.plotX+d)/2,f.plotY,"L",(f.plotX+d)/2,p]:["L",d,f.plotY]).push("L",d,p):c=["L",d,p],u.push(n.x),a&&u.push(n.x),l.push.apply(l,c),r=!1)}),l.xMap=u,o.graphPath=l},drawGraph:function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),n=[["graph","highcharts-graph",e.lineColor||this.color,e.dashStyle]];c(this.zones,function(i,r){n.push(["zone-graph-"+r,"highcharts-graph highcharts-zone-graph-"+r+" "+(i.className||""),i.color||t.color,i.dashStyle||e.dashStyle])}),c(n,function(n,r){var o=n[0],s=t[o];s?(s.endX=i.xMap,s.animate({d:i})):i.length&&(t[o]=t.chart.renderer.path(i).addClass(n[1]).attr({zIndex:1}).add(t.group),s={stroke:n[2],"stroke-width":e.lineWidth,fill:t.fillGraph&&t.color||"none"},n[3]?s.dashstyle=n[3]:"square"!==e.linecap&&(s["stroke-linecap"]=s["stroke-linejoin"]="round"),s=t[o].attr(s).shadow(2>r&&e.shadow)),s&&(s.startX=i.xMap,s.isArea=i.isArea)})},applyZones:function(){var t,e,i,n,r,o,s,a,l,h=this,u=this.chart,d=u.renderer,p=this.zones,f=this.clips||[],g=this.graph,m=this.area,v=Math.max(u.chartWidth,u.chartHeight),y=this[(this.zoneAxis||"y")+"Axis"],x=u.inverted,w=!1;p.length&&(g||m)&&y&&void 0!==y.min&&(r=y.reversed,o=y.horiz,g&&g.hide(),m&&m.hide(),n=y.getExtremes(),c(p,function(c,p){t=r?o?u.plotWidth:0:o?0:y.toPixels(n.min),t=Math.min(Math.max(b(e,t),0),v),e=Math.min(Math.max(Math.round(y.toPixels(b(c.value,n.max),!0)),0),v),w&&(t=e=y.toPixels(n.max)),s=Math.abs(t-e),a=Math.min(t,e),l=Math.max(t,e),y.isXAxis?(i={x:x?l:a,y:0,width:s,height:v},o||(i.x=u.plotHeight-i.x)):(i={x:0,y:x?l:a,width:v,height:s},o&&(i.y=u.plotWidth-i.y)),x&&d.isVML&&(i=y.isXAxis?{x:0,y:r?a:l,height:i.width,width:u.chartWidth}:{x:i.y-u.plotLeft-u.spacingBox.x,y:0,width:i.height,height:u.chartHeight}),f[p]?f[p].animate(i):(f[p]=d.clipRect(i),g&&h["zone-graph-"+p].clip(f[p]),m&&h["zone-area-"+p].clip(f[p])),w=c.value>n.max}),this.clips=f)},invertGroups:function(t){function i(){c(["group","markerGroup"],function(e){r[e]&&(o.renderer.isVML&&r[e].attr({width:r.yAxis.len,height:r.xAxis.len}),r[e].width=r.yAxis.len,r[e].height=r.xAxis.len,r[e].invert(t))})}var n,r=this,o=r.chart;r.xAxis&&(n=e(o,"resize",i),e(r,"destroy",n),i(),r.invertGroups=i)},plotGroup:function(t,e,i,n,r){var o=this[t],s=!o;return s&&(this[t]=o=this.chart.renderer.g().attr({zIndex:n||.1}).add(r)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series highcharts-color-"+this.colorIndex+" "+(this.options.className||""),!0),o.attr({visibility:i})[s?"attr":"animate"](this.getPlotBox()),o},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},render:function(){var t,e=this,n=e.chart,r=e.options,o=!!e.animate&&n.renderer.isSVG&&i(r.animation).duration,s=e.visible?"inherit":"hidden",a=r.zIndex,l=e.hasRendered,h=n.seriesGroup,c=n.inverted;t=e.plotGroup("group","series",s,a,h),e.markerGroup=e.plotGroup("markerGroup","markers",s,a,h),o&&e.animate(!0),t.inverted=!!e.isCartesian&&c,e.drawGraph&&(e.drawGraph(),e.applyZones()),e.drawDataLabels&&e.drawDataLabels(),e.visible&&e.drawPoints(),e.drawTracker&&!1!==e.options.enableMouseTracking&&e.drawTracker(),e.invertGroups(c),!1===r.clip||e.sharedClipKey||l||t.clip(n.clipRect),o&&e.animate(),l||(e.animationTimeout=k(function(){e.afterAnimate()},o)),e.isDirty=!1,e.hasRendered=!0},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,n=this.xAxis,r=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:b(n&&n.left,t.plotLeft),translateY:b(r&&r.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var i=this.xAxis,n=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:r?n.len-t.chartX+n.pos:t.chartY-n.pos},e)},buildKDTree:function(){this.buildingKdTree=!0;var t=this,e=-1<t.options.findNearestPointBy.indexOf("y")?2:1;delete t.kdTree,k(function(){t.kdTree=function e(i,n,r){var o,s;if(s=i&&i.length)return o=t.kdAxisArray[n%r],i.sort(function(t,e){return t[o]-e[o]}),{point:i[s=Math.floor(s/2)],left:e(i.slice(0,s),n+1,r),right:e(i.slice(s+1),n+1,r)}}(t.getValidPoints(null,!t.directTouch),e,e),t.buildingKdTree=!1},t.options.kdNow?0:1)},searchKDTree:function(t,e){var i=this,n=this.kdAxisArray[0],r=this.kdAxisArray[1],o=e?"distX":"dist";if(e=-1<i.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(),this.kdTree)return function t(e,s,a,l){var c,u,d=s.point,p=i.kdAxisArray[a%l],f=d;return c=((u=h(e[n])&&h(d[n])?Math.pow(e[n]-d[n],2):null)||0)+((c=h(e[r])&&h(d[r])?Math.pow(e[r]-d[r],2):null)||0),d.dist=h(c)?Math.sqrt(c):Number.MAX_VALUE,d.distX=h(u)?Math.sqrt(u):Number.MAX_VALUE,u=0>(p=e[p]-d[p])?"right":"left",s[c=0>p?"left":"right"]&&(f=(c=t(e,s[c],a+1,l))[o]<f[o]?c:d),s[u]&&Math.sqrt(p*p)<f[o]&&(f=(e=t(e,s[u],a+1,l))[o]<f[o]?e:f),f}(t,this.kdTree,e,e)}})}(t),function(t){function e(t,e,i,n,r){var o=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e,this.x=n,this.total=null,this.points={},this.stack=r,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(o?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(o?"middle":i?"bottom":"top"),y:c(e.y,o?4:i?14:-6),x:c(e.x,o?i?-6:6:0)},this.textAlign=e.textAlign||(o?i?"right":"left":"center")}var i=t.Axis,n=t.Chart,r=t.correctFloat,o=t.defined,s=t.destroyObjectProperties,a=t.each,l=t.format,h=t.objectEach,c=t.pick;t=t.Series,e.prototype={destroy:function(){s(this,this.axis)},render:function(t){var e=this.options,i=(i=e.format)?l(i,this):e.formatter.call(this);this.label?this.label.attr({text:i,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(i,null,null,e.useHTML).css(e.style).attr({align:this.textAlign,rotation:e.rotation,visibility:"hidden"}).add(t)},setOffset:function(t,e){var i=(s=this.axis).chart,n=i.inverted,r=s.reversed,o=(r=this.isNegative&&!r||!this.isNegative&&r,s.translate(s.usePercentage?100:this.total,0,0,0,1)),s=s.translate(0);s=Math.abs(o-s);t=i.xAxis[0].translate(this.x)+t;var a=i.plotHeight;n={x:n?r?o:o-s:t,y:n?a-t-e:r?a-o-s:a-o,width:n?s:e,height:n?e:s};(e=this.label)&&(e.align(this.alignOptions,null,n),n=e.alignAttr,e[!1===this.options.crop||i.isInsidePlot(n.x,n.y)?"show":"hide"](!0))}},n.prototype.getStacks=function(){var t=this;a(t.yAxis,function(t){t.stacks&&t.hasVisibleSeries&&(t.oldStacks=t.stacks)}),a(t.series,function(e){!e.options.stacking||!0!==e.visible&&!1!==t.options.chart.ignoreHiddenSeries||(e.stackKey=e.type+c(e.options.stack,""))})},i.prototype.buildStacks=function(){var t,e,i=this.series,n=c(this.options.reversedStacks,!0),r=i.length;if(!this.isXAxis){for(this.usePercentage=!1,e=r;e--;)i[n?e:r-e-1].setStackedPoints();for(e=r;e--;)(t=i[n?e:r-e-1]).setStackCliffs&&t.setStackCliffs();if(this.usePercentage)for(e=0;e<r;e++)i[e].setPercentStacks()}},i.prototype.renderStackTotals=function(){var t=this.chart,e=t.renderer,i=this.stacks,n=this.stackTotalGroup;n||(this.stackTotalGroup=n=e.g("stack-labels").attr({visibility:"visible",zIndex:6}).add()),n.translate(t.plotLeft,t.plotTop),h(i,function(t){h(t,function(t){t.render(n)})})},i.prototype.resetStacks=function(){var t=this,e=t.stacks;t.isXAxis||h(e,function(e){h(e,function(i,n){i.touched<t.stacksTouched?(i.destroy(),delete e[n]):(i.total=null,i.cum=null)})})},i.prototype.cleanStacks=function(){var t;this.isXAxis||(this.oldStacks&&(t=this.stacks=this.oldStacks),h(t,function(t){h(t,function(t){t.cum=t.total})}))},t.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var t,i,n,s,a,l,h,u=this.processedXData,d=this.processedYData,p=[],f=d.length,g=(y=this.options).threshold,m=y.startFromThreshold?g:0,v=y.stack,y=y.stacking,x=this.stackKey,b="-"+x,w=this.negStacks,$=this.yAxis,S=$.stacks,k=$.oldStacks;for($.stacksTouched+=1,a=0;a<f;a++)l=u[a],h=d[a],s=(t=this.getStackIndicator(t,l,this.index)).key,S[n=(i=w&&h<(m?0:g))?b:x]||(S[n]={}),S[n][l]||(k[n]&&k[n][l]?(S[n][l]=k[n][l],S[n][l].total=null):S[n][l]=new e($,$.options.stackLabels,i,l,v)),n=S[n][l],null!==h&&(n.points[s]=n.points[this.index]=[c(n.cum,m)],o(n.cum)||(n.base=s),n.touched=$.stacksTouched,0<t.index&&!1===this.singleStacks&&(n.points[s][0]=n.points[this.index+","+l+",0"][0])),"percent"===y?(i=i?x:b,w&&S[i]&&S[i][l]?(i=S[i][l],n.total=i.total=Math.max(i.total,n.total)+Math.abs(h)||0):n.total=r(n.total+(Math.abs(h)||0))):n.total=r(n.total+(h||0)),n.cum=c(n.cum,m)+(h||0),null!==h&&(n.points[s].push(n.cum),p[a]=n.cum);"percent"===y&&($.usePercentage=!0),this.stackedYData=p,$.oldStacks={}}},t.prototype.setPercentStacks=function(){var t,e=this,i=e.stackKey,n=e.yAxis.stacks,o=e.processedXData;a([i,"-"+i],function(i){for(var s,a,l=o.length;l--;)s=o[l],t=e.getStackIndicator(t,s,e.index,i),(s=(a=n[i]&&n[i][s])&&a.points[t.key])&&(a=a.total?100/a.total:0,s[0]=r(s[0]*a),s[1]=r(s[1]*a),e.stackedYData[l]=s[1])})},t.prototype.getStackIndicator=function(t,e,i,n){return!o(t)||t.x!==e||n&&t.key!==n?t={x:e,index:0,key:n}:t.index++,t.key=[i,e,t.index].join(),t}}(t),function(t){var e=t.addEvent,i=t.animate,n=t.Axis,r=t.createElement,o=t.css,s=t.defined,a=t.each,l=t.erase,h=t.extend,c=t.fireEvent,u=t.inArray,d=t.isNumber,p=t.isObject,f=t.isArray,g=t.merge,m=t.objectEach,v=t.pick,y=t.Point,x=t.Series,b=t.seriesTypes,w=t.setAnimation,$=t.splat;h(t.Chart.prototype,{addSeries:function(t,e,i){var n,r=this;return t&&(e=v(e,!0),c(r,"addSeries",{options:t},function(){n=r.initSeries(t),r.isDirtyLegend=!0,r.linkSeries(),e&&r.redraw(i)})),n},addAxis:function(t,e,i,r){var o=e?"xAxis":"yAxis",s=this.options;t=g(t,{index:this[o].length,isX:e}),new n(this,t),s[o]=$(s[o]||{}),s[o].push(t),v(i,!0)&&this.redraw(r)},showLoading:function(t){var n=this,s=n.options,a=n.loadingDiv,l=s.loading,c=function(){a&&o(a,{left:n.plotLeft+"px",top:n.plotTop+"px",width:n.plotWidth+"px",height:n.plotHeight+"px"})};a||(n.loadingDiv=a=r("div",{className:"highcharts-loading highcharts-loading-hidden"},null,n.container),n.loadingSpan=r("span",{className:"highcharts-loading-inner"},null,a),e(n,"redraw",c)),a.className="highcharts-loading",n.loadingSpan.innerHTML=t||s.lang.loading,o(a,h(l.style,{zIndex:10})),o(n.loadingSpan,l.labelStyle),n.loadingShown||(o(a,{opacity:0,display:""}),i(a,{opacity:l.style.opacity||.5},{duration:l.showDuration||0})),n.loadingShown=!0,c()},hideLoading:function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",i(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){o(e,{display:"none"})}})),this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions tooltip".split(" "),update:function(t,e){var i,n,r=this,o={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle"},l=t.chart;l&&(g(!0,r.options.chart,l),"className"in l&&r.setClassName(l.className),("inverted"in l||"polar"in l)&&(r.propFromSeries(),i=!0),"alignTicks"in l&&(i=!0),m(l,function(t,e){-1!==u("chart."+e,r.propsRequireUpdateSeries)&&(n=!0),-1!==u(e,r.propsRequireDirtyBox)&&(r.isDirtyBox=!0)}),"style"in l&&r.renderer.setStyle(l.style)),t.colors&&(this.options.colors=t.colors),t.plotOptions&&g(!0,this.options.plotOptions,t.plotOptions),m(t,function(t,e){r[e]&&"function"==typeof r[e].update?r[e].update(t,!1):"function"==typeof r[o[e]]&&r[o[e]](t),"chart"!==e&&-1!==u(e,r.propsRequireUpdateSeries)&&(n=!0)}),a("xAxis yAxis zAxis series colorAxis pane".split(" "),function(e){t[e]&&a($(t[e]),function(t,i){(i=s(t.id)&&r.get(t.id)||r[e][i])&&i.coll===e&&i.update(t,!1)})}),i&&a(r.axes,function(t){t.update({},!1)}),n&&a(r.series,function(t){t.update({},!1)}),t.loading&&g(!0,r.options.loading,t.loading),i=l&&l.width,l=l&&l.height,d(i)&&i!==r.chartWidth||d(l)&&l!==r.chartHeight?r.setSize(i,l):v(e,!0)&&r.redraw()},setSubtitle:function(t){this.setTitle(void 0,t)}}),h(y.prototype,{update:function(t,e,i,n){function r(){s.applyOptions(t),null===s.y&&l&&(s.graphic=l.destroy()),p(t,!0)&&(l&&l.element&&t&&t.marker&&t.marker.symbol&&(s.graphic=l.destroy()),t&&t.dataLabels&&s.dataLabel&&(s.dataLabel=s.dataLabel.destroy())),o=s.index,a.updateParallelArrays(s,o),c.data[o]=p(c.data[o],!0)||p(t,!0)?s.options:t,a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(h.isDirtyBox=!0),"point"===c.legendType&&(h.isDirtyLegend=!0),e&&h.redraw(i)}var o,s=this,a=s.series,l=s.graphic,h=a.chart,c=a.options;e=v(e,!0),!1===n?r():s.firePointEvent("update",{options:t},r)},remove:function(t,e){this.series.removePoint(u(this,this.series.data),t,e)}}),h(x.prototype,{addPoint:function(t,e,i,n){var r,o,s,a,l=this.options,h=this.data,c=this.chart,u=(u=this.xAxis)&&u.hasNames&&u.names,d=l.data,p=this.xData;if(e=v(e,!0),r={series:this},this.pointClass.prototype.applyOptions.apply(r,[t]),a=r.x,s=p.length,this.requireSorting&&a<p[s-1])for(o=!0;s&&p[s-1]>a;)s--;this.updateParallelArrays(r,"splice",s,0,0),this.updateParallelArrays(r,s),u&&r.name&&(u[a]=r.name),d.splice(s,0,t),o&&(this.data.splice(s,0,null),this.processData()),"point"===l.legendType&&this.generatePoints(),i&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(r,"shift"),d.shift())),this.isDirtyData=this.isDirty=!0,e&&c.redraw(n)},removePoint:function(t,e,i){var n=this,r=n.data,o=r[t],s=n.points,a=n.chart,l=function(){s&&s.length===r.length&&s.splice(t,1),r.splice(t,1),n.options.data.splice(t,1),n.updateParallelArrays(o||{series:n},"splice",t,1),o&&o.destroy(),n.isDirty=!0,n.isDirtyData=!0,e&&a.redraw()};w(i,a),e=v(e,!0),o?o.firePointEvent("remove",null,l):l()},remove:function(t,e,i){function n(){r.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,o.linkSeries(),v(t,!0)&&o.redraw(e)}var r=this,o=r.chart;!1!==i?c(r,"remove",null,n):n()},update:function(t,e){var i,n=this,r=n.chart,o=n.userOptions,s=n.oldType||n.type,l=t.type||o.type||r.options.chart.type,c=b[s].prototype,u=["group","markerGroup","dataLabelsGroup"];for(i in(l&&l!==s||void 0!==t.zIndex)&&(u.length=0),a(u,function(t){u[t]=n[t],delete n[t]}),t=g(o,{animation:!1,index:n.index,pointStart:n.xData[0]},{data:n.options.data},t),n.remove(!1,null,!1),c)n[i]=void 0;h(n,b[l||s].prototype),a(u,function(t){n[t]=u[t]}),n.init(r,t),n.oldType=s,r.linkSeries(),v(e,!0)&&r.redraw(!1)}}),h(n.prototype,{update:function(t,e){var i=this.chart;t=i.options[this.coll][this.options.index]=g(this.userOptions,t),this.destroy(!0),this.init(i,h(t,{events:void 0})),i.isDirtyBox=!0,v(e,!0)&&i.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,n=this.series,r=n.length;r--;)n[r]&&n[r].remove(!1);l(e.axes,this),l(e[i],this),f(e.options[i])?e.options[i].splice(this.options.index,1):delete e.options[i],a(e[i],function(t,e){t.options.index=e}),this.destroy(),e.isDirtyBox=!0,v(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}})}(t),function(t){var e=t.color,i=t.each,n=t.map,r=t.pick,o=t.Series;(0,t.seriesType)("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(){var e,o,s=[],a=[],l=this.xAxis,h=this.yAxis,c=h.stacks[this.stackKey],u={},d=this.points,p=this.index,f=h.series,g=f.length,m=r(h.options.reversedStacks,!0)?1:-1;if(this.options.stacking){for(o=0;o<d.length;o++)u[d[o].x]=d[o];t.objectEach(c,function(t,e){null!==t.total&&a.push(e)}),a.sort(function(t,e){return t-e}),e=n(f,function(){return this.visible}),i(a,function(t,n){var r,d,f=0;if(u[t]&&!u[t].isNull)s.push(u[t]),i([-1,1],function(i){var s=1===i?"rightNull":"leftNull",l=0,h=c[a[n+i]];if(h)for(o=p;0<=o&&o<g;)(r=h.points[o])||(o===p?u[t][s]=!0:e[o]&&(d=c[t].points[o])&&(l-=d[1]-d[0])),o+=m;u[t][1===i?"rightCliff":"leftCliff"]=l});else{for(o=p;0<=o&&o<g;){if(r=c[t].points[o]){f=r[1];break}o+=m}f=h.translate(f,0,1,0,1),s.push({isNull:!0,plotX:l.translate(t,0,0,0,1),x:t,plotY:f,yBottom:f})}})}return s},getGraphPath:function(t){var e,i,n,s,a=o.prototype.getGraphPath,l=(m=this.options).stacking,h=this.yAxis,c=[],u=[],d=this.index,p=h.stacks[this.stackKey],f=m.threshold,g=h.getThreshold(m.threshold),m=m.connectNulls||"percent"===l,v=function(e,i,r){var o=t[e];e=l&&p[o.x].points[d];var s=o[r+"Null"]||0;r=o[r+"Cliff"]||0;var a,m;o=!0;r||s?(a=(s?e[0]:e[1])+r,m=e[0]+r,o=!!s):!l&&t[i]&&t[i].isNull&&(a=m=f),void 0!==a&&(u.push({plotX:n,plotY:null===a?g:h.getThreshold(a),isNull:o,isCliff:!0}),c.push({plotX:n,plotY:null===m?g:h.getThreshold(m),doCurve:!1}))};for(t=t||this.points,l&&(t=this.getStackPoints()),e=0;e<t.length;e++)i=t[e].isNull,n=r(t[e].rectPlotX,t[e].plotX),s=r(t[e].yBottom,g),(!i||m)&&(m||v(e,e-1,"left"),i&&!l&&m||(u.push(t[e]),c.push({x:e,plotX:n,plotY:s})),m||v(e,e+1,"right"));return e=a.call(this,u,!0,!0),c.reversed=!0,(i=a.call(this,c,!0,!0)).length&&(i[0]="L"),i=e.concat(i),a=a.call(this,u,!1,m),i.xMap=e.xMap,this.areaPath=i,a},drawGraph:function(){this.areaPath=[],o.prototype.drawGraph.apply(this);var t=this,n=this.areaPath,s=this.options,a=[["area","highcharts-area",this.color,s.fillColor]];i(this.zones,function(e,i){a.push(["zone-area-"+i,"highcharts-area highcharts-zone-area-"+i+" "+e.className,e.color||t.color,e.fillColor||s.fillColor])}),i(a,function(i){var o=i[0],a=t[o];a?(a.endX=n.xMap,a.animate({d:n})):(a=t[o]=t.chart.renderer.path(n).addClass(i[1]).attr({fill:r(i[3],e(i[2]).setOpacity(r(s.fillOpacity,.75)).get()),zIndex:0}).add(t.group)).isArea=!0,a.startX=n.xMap,a.shiftUnit=s.step?2:1})},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle})}(t),function(t){var e=t.pick;(t=t.seriesType)("spline","line",{},{getPointSpline:function(t,i,n){var r,o,s,a,l=i.plotX,h=i.plotY,c=t[n-1];if(n=t[n+1],c&&!c.isNull&&!1!==c.doCurve&&!i.isCliff&&n&&!n.isNull&&!1!==n.doCurve&&!i.isCliff){t=c.plotY,s=n.plotX;var u=0;o=(1.5*h+t)/2.5,a=(1.5*h+(n=n.plotY))/2.5,(s=(1.5*l+s)/2.5)!==(r=(1.5*l+c.plotX)/2.5)&&(u=(a-o)*(s-l)/(s-r)+h-a),a+=u,(o+=u)>t&&o>h?a=2*h-(o=Math.max(t,h)):o<t&&o<h&&(a=2*h-(o=Math.min(t,h))),a>n&&a>h?o=2*h-(a=Math.max(n,h)):a<n&&a<h&&(o=2*h-(a=Math.min(n,h))),i.rightContX=s,i.rightContY=a}return i=["C",e(c.rightContX,c.plotX),e(c.rightContY,c.plotY),e(r,l),e(o,h),l,h],c.rightContX=c.rightContY=null,i}})}(t),function(t){var e=t.seriesTypes.area.prototype;(0,t.seriesType)("areaspline","spline",t.defaultPlotOptions.area,{getStackPoints:e.getStackPoints,getGraphPath:e.getGraphPath,setStackCliffs:e.setStackCliffs,drawGraph:e.drawGraph,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle})}(t),function(t){var e=t.animObject,i=t.color,n=t.each,r=t.extend,o=t.isNumber,s=t.merge,a=t.pick,l=t.Series,h=t.seriesType,c=t.svg;h("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1,shadow:!1},select:{color:"#cccccc",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){l.prototype.init.apply(this,arguments);var t=this,e=t.chart;e.hasRendered&&n(e.series,function(e){e.type===t.type&&(e.isDirty=!0)})},getColumnMetrics:function(){var t,e=this,i=e.options,r=e.xAxis,o=e.yAxis,s=r.reversed,l={},h=0;!1===i.grouping?h=1:n(e.chart.series,function(i){var n,r=i.options,s=i.yAxis;i.type===e.type&&i.visible&&o.len===s.len&&o.pos===s.pos&&(r.stacking?(t=i.stackKey,void 0===l[t]&&(l[t]=h++),n=l[t]):!1!==r.grouping&&(n=h++),i.columnIndex=n)});var c=Math.min(Math.abs(r.transA)*(r.ordinalSlope||i.pointRange||r.closestPointRange||r.tickInterval||1),r.len),u=c*i.groupPadding,d=(c-2*u)/(h||1);i=Math.min(i.maxPointWidth||r.len,a(i.pointWidth,d*(1-2*i.pointPadding)));return e.columnMetrics={width:i,offset:(d-i)/2+(u+((e.columnIndex||0)+(s?1:0))*d-c/2)*(s?-1:1)},e.columnMetrics},crispCol:function(t,e,i,n){var r=this.chart,o=-((s=this.borderWidth)%2?.5:0),s=s%2?.5:1;return r.inverted&&r.renderer.isVML&&(s+=1),this.options.crisp&&(i=Math.round(t+i)+o,i-=t=Math.round(t)+o),n=Math.round(e+n)+s,o=.5>=Math.abs(e)&&.5<n,n-=e=Math.round(e)+s,o&&n&&(--e,n+=1),{x:t,y:e,width:i,height:n}},translate:function(){var t=this,e=t.chart,i=t.options,r=t.dense=2>t.closestPointRange*t.xAxis.transA,o=(r=t.borderWidth=a(i.borderWidth,r?0:1),t.yAxis),s=t.translatedThreshold=o.getThreshold(i.threshold),h=a(i.minPointLength,5),c=t.getColumnMetrics(),u=c.width,d=t.barW=Math.max(u,1+2*r),p=t.pointXOffset=c.offset;e.inverted&&(s-=.5),i.pointPadding&&(d=Math.ceil(d)),l.prototype.translate.apply(t),n(t.points,function(i){var n,r=a(i.yBottom,s),l=999+Math.abs(r),c=(l=Math.min(Math.max(-l,i.plotY),o.len+l),i.plotX+p),f=d,g=Math.min(l,r),m=Math.max(l,r)-g;Math.abs(m)<h&&h&&(m=h,n=!o.reversed&&!i.negative||o.reversed&&i.negative,g=Math.abs(g-s)>h?r-h:s-(n?h:0)),i.barX=c,i.pointWidth=u,i.tooltipPos=e.inverted?[o.len+o.pos-e.plotLeft-l,t.xAxis.len-c-f/2,m]:[c+f/2,l+o.pos-e.plotTop,m],i.shapeType="rect",i.shapeArgs=t.crispCol.apply(t,i.isNull?[c,s,f,0]:[c,g,f,m])})},getSymbol:t.noop,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var n,r=this.options;n=(c=this.pointAttrToOptions||{}).stroke||"borderColor";var o=c["stroke-width"]||"borderWidth",a=t&&t.color||this.color,l=t[n]||r[n]||this.color||a,h=t[o]||r[o]||this[o]||0,c=r.dashStyle;return t&&this.zones.length&&(a=t.getZone(),a=t.options.color||a&&a.color||this.color),e&&(e=(t=s(r.states[e],t.options.states&&t.options.states[e]||{})).brightness,a=t.color||void 0!==e&&i(a).brighten(t.brightness).get()||a,l=t[n]||l,h=t[o]||h,c=t.dashStyle||c),n={fill:a,stroke:l,"stroke-width":h},r.borderRadius&&(n.r=r.borderRadius),c&&(n.dashstyle=c),n},drawPoints:function(){var t,e=this,i=this.chart,r=e.options,a=i.renderer,l=r.animationLimit||250;n(e.points,function(n){var h=n.graphic;o(n.plotY)&&null!==n.y?(t=n.shapeArgs,h?h[i.pointCount<l?"animate":"attr"](s(t)):n.graphic=h=a[n.shapeType](t).add(n.group||e.group),h.attr(e.pointAttribs(n,n.selected&&"select")).shadow(r.shadow,null,r.stacking&&!r.borderRadius),h.addClass(n.getClassName(),!0)):h&&(n.graphic=h.destroy())})},animate:function(t){var i=this,n=this.yAxis,o=i.options,s=this.chart.inverted,a={};c&&(t?(a.scaleY=.001,t=Math.min(n.pos+n.len,Math.max(n.pos,n.toPixels(o.threshold))),s?a.translateX=t-n.len:a.translateY=t,i.group.attr(a)):(a[s?"translateX":"translateY"]=n.pos,i.group.animate(a,r(e(i.options.animation),{step:function(t,e){i.group.attr({scaleY:Math.max(.001,e.pos)})}})),i.animate=null))},remove:function(){var t=this,e=t.chart;e.hasRendered&&n(e.series,function(e){e.type===t.type&&(e.isDirty=!0)}),l.prototype.remove.apply(t,arguments)}})}(t),function(t){(t=t.seriesType)("bar","column",null,{inverted:!0})}(t),function(t){var e=t.Series;(t=t.seriesType)("scatter","line",{lineWidth:0,findNearestPointBy:"xy",marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.85em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&e.prototype.drawGraph.call(this)}})}(t),function(t){var e=t.pick,i=t.relativeLength;t.CenteredSeriesMixin={getCenter:function(){var t,n,r=this.options,o=this.chart,s=2*(r.slicedOffset||0),a=o.plotWidth-2*s,l=(o=o.plotHeight-2*s,r.center),h=(l=[e(l[0],"50%"),e(l[1],"50%"),r.size||"100%",r.innerSize||0],Math.min(a,o));for(t=0;4>t;++t)n=l[t],r=2>t||2===t&&/%$/.test(n),l[t]=i(n,[a,o,h,l[2]][t])+(r?s:0);return l[3]>l[2]&&(l[3]=l[2]),l}}}(t),function(t){var e=t.addEvent,i=t.defined,n=t.each,r=t.extend,o=t.inArray,s=t.noop,a=t.pick,l=t.Point,h=t.Series,c=t.seriesType,u=t.setAnimation;c("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,states:{hover:{brightness:.1,shadow:!1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:t.seriesTypes.column.prototype.pointAttribs,animate:function(t){var e=this,i=e.points,r=e.startAngleRad;t||(n(i,function(t){var i=t.graphic,n=t.shapeArgs;i&&(i.attr({r:t.startR||e.center[3]/2,start:r,end:r}),i.animate({r:n.r,start:n.start,end:n.end},e.options.animation))}),e.animate=null)},updateTotals:function(){var t,e,i=0,n=this.points,r=n.length,o=this.options.ignoreHiddenPoint;for(t=0;t<r;t++)e=n[t],i+=o&&!e.visible?0:e.isNull?0:e.y;for(this.total=i,t=0;t<r;t++)(e=n[t]).percentage=0<i&&(e.visible||!o)?e.y/i*100:0,e.total=i},generatePoints:function(){h.prototype.generatePoints.call(this),this.updateTotals()},translate:function(t){this.generatePoints();var e,i,n,r,o,s,l=0,h=(g=this.options).slicedOffset,c=h+(g.borderWidth||0),u=g.startAngle||0,d=this.startAngleRad=Math.PI/180*(u-90),p=(u=(this.endAngleRad=Math.PI/180*(a(g.endAngle,u+360)-90))-d,this.points),f=g.dataLabels.distance,g=g.ignoreHiddenPoint,m=p.length;for(t||(this.center=t=this.getCenter()),this.getX=function(e,i,r){return n=Math.asin(Math.min((e-t[1])/(t[2]/2+r.labelDistance),1)),t[0]+(i?-1:1)*Math.cos(n)*(t[2]/2+r.labelDistance)},o=0;o<m;o++)(s=p[o]).labelDistance=a(s.options.dataLabels&&s.options.dataLabels.distance,f),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,s.labelDistance),e=d+l*u,g&&!s.visible||(l+=s.percentage/100),i=d+l*u,s.shapeType="arc",s.shapeArgs={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*e)/1e3,end:Math.round(1e3*i)/1e3},(n=(i+e)/2)>1.5*Math.PI?n-=2*Math.PI:n<-Math.PI/2&&(n+=2*Math.PI),s.slicedTranslation={translateX:Math.round(Math.cos(n)*h),translateY:Math.round(Math.sin(n)*h)},i=Math.cos(n)*t[2]/2,r=Math.sin(n)*t[2]/2,s.tooltipPos=[t[0]+.7*i,t[1]+.7*r],s.half=n<-Math.PI/2||n>Math.PI/2?1:0,s.angle=n,e=Math.min(c,s.labelDistance/5),s.labelPos=[t[0]+i+Math.cos(n)*s.labelDistance,t[1]+r+Math.sin(n)*s.labelDistance,t[0]+i+Math.cos(n)*e,t[1]+r+Math.sin(n)*e,t[0]+i,t[1]+r,0>s.labelDistance?"center":s.half?"right":"left",n]},drawGraph:null,drawPoints:function(){var t,e,i,o,s=this,a=s.chart.renderer,l=s.options.shadow;l&&!s.shadowGroup&&(s.shadowGroup=a.g("shadow").add(s.group)),n(s.points,function(n){if(!n.isNull){e=n.graphic,o=n.shapeArgs,t=n.getTranslate();var h=n.shadowGroup;l&&!h&&(h=n.shadowGroup=a.g("shadow").add(s.shadowGroup)),h&&h.attr(t),i=s.pointAttribs(n,n.selected&&"select"),e?e.setRadialReference(s.center).attr(i).animate(r(o,t)):(n.graphic=e=a[n.shapeType](o).setRadialReference(s.center).attr(t).add(s.group),n.visible||e.attr({visibility:"hidden"}),e.attr(i).attr({"stroke-linejoin":"round"}).shadow(l,h)),e.addClass(n.getClassName())}})},searchPoint:s,sortByAngle:function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,getCenter:t.CenteredSeriesMixin.getCenter,getSymbol:s},{init:function(){l.prototype.init.apply(this,arguments);var t,i=this;return i.name=a(i.name,"Slice"),t=function(t){i.slice("select"===t.type)},e(i,"select",t),e(i,"unselect",t),i},isValid:function(){return t.isNumber(this.y,!0)&&0<=this.y},setVisible:function(t,e){var i=this,r=i.series,s=r.chart,l=r.options.ignoreHiddenPoint;e=a(e,l),t!==i.visible&&(i.visible=i.options.visible=t=void 0===t?!i.visible:t,r.options.data[o(i,r.data)]=i.options,n(["graphic","dataLabel","connector","shadowGroup"],function(e){i[e]&&i[e][t?"show":"hide"](!0)}),i.legendItem&&s.legend.colorizeItem(i,t),t||"hover"!==i.state||i.setState(""),l&&(r.isDirty=!0),e&&s.redraw())},slice:function(t,e,n){var r=this.series;u(n,r.chart),a(e,!0),this.sliced=this.options.sliced=i(t)?t:!this.sliced,r.options.data[o(this,r.data)]=this.options,this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:this.shapeArgs.r,start:e.start,end:e.end})}})}(t),function(t){var e=t.addEvent,i=t.arrayMax,n=t.defined,r=t.each,o=t.extend,s=t.format,a=t.map,l=t.merge,h=t.noop,c=t.pick,u=t.relativeLength,d=t.Series,p=t.seriesTypes,f=t.stableSort;t.distribute=function(t,e){function i(t,e){return t.target-e.target}var n,o,s=!0,l=t,h=[];for(o=0,n=t.length;n--;)o+=t[n].size;if(o>e){for(f(t,function(t,e){return(e.rank||0)-(t.rank||0)}),o=n=0;o<=e;)o+=t[n].size,n++;h=t.splice(n-1,t.length)}for(f(t,i),t=a(t,function(t){return{size:t.size,targets:[t.target]}});s;){for(n=t.length;n--;)s=t[n],o=(Math.min.apply(0,s.targets)+Math.max.apply(0,s.targets))/2,s.pos=Math.min(Math.max(0,o-s.size/2),e-s.size);for(n=t.length,s=!1;n--;)0<n&&t[n-1].pos+t[n-1].size>t[n].pos&&(t[n-1].size+=t[n].size,t[n-1].targets=t[n-1].targets.concat(t[n].targets),t[n-1].pos+t[n-1].size>e&&(t[n-1].pos=e-t[n-1].size),t.splice(n,1),s=!0)}n=0,r(t,function(t){var e=0;r(t.targets,function(){l[n].pos=t.pos+e,e+=l[n].size,n++})}),l.push.apply(l,h),f(l,i)},d.prototype.drawDataLabels=function(){var i,o,a,h,u=this,d=u.options,p=d.dataLabels,f=u.points,g=u.hasRendered||0,m=c(p.defer,!0),v=u.chart.renderer;(p.enabled||u._hasPointLabels)&&(u.dlProcessOptions&&u.dlProcessOptions(p),h=u.plotGroup("dataLabelsGroup","data-labels",m&&!g?"hidden":"visible",p.zIndex||6),m&&(h.attr({opacity:+g}),g||e(u,"afterAnimate",function(){u.visible&&h.show(!0),h[d.animation?"animate":"attr"]({opacity:1},{duration:200})})),o=p,r(f,function(e){var r,f,g,m,y=e.dataLabel,x=e.connector,b=!y;i=e.dlOptions||e.options&&e.options.dataLabels,(r=c(i&&i.enabled,o.enabled)&&null!==e.y)&&(p=l(o,i),f=e.getLabelConfig(),a=p.format?s(p.format,f):p.formatter.call(f,p),m=p.style,f=p.rotation,m.color=c(p.color,m.color,u.color,"#000000"),"contrast"===m.color&&(e.contrastColor=v.getContrast(e.color||u.color),m.color=p.inside||0>c(e.labelDistance,p.distance)||d.stacking?e.contrastColor:"#000000"),d.cursor&&(m.cursor=d.cursor),g={fill:p.backgroundColor,stroke:p.borderColor,"stroke-width":p.borderWidth,r:p.borderRadius||0,rotation:f,padding:p.padding,zIndex:1},t.objectEach(g,function(t,e){void 0===t&&delete g[e]})),!y||r&&n(a)?r&&n(a)&&(y?g.text=a:(y=e.dataLabel=v[f?"text":"label"](a,0,-9999,p.shape,null,null,p.useHTML,null,"data-label")).addClass("highcharts-data-label-color-"+e.colorIndex+" "+(p.className||"")+(p.useHTML?"highcharts-tracker":"")),y.attr(g),y.css(m).shadow(p.shadow),y.added||y.add(h),u.alignDataLabel(e,y,p,null,b)):(e.dataLabel=y=y.destroy(),x&&(e.connector=x.destroy()))}))},d.prototype.alignDataLabel=function(t,e,i,n,r){var s,a=this.chart,l=a.inverted,h=c(t.plotX,-9999),u=c(t.plotY,-9999),d=e.getBBox(),p=i.rotation,f=i.align,g=this.visible&&(t.series.forceDL||a.isInsidePlot(h,Math.round(u),l)||n&&a.isInsidePlot(h,l?n.x+1:n.y+n.height-1,l)),m="justify"===c(i.overflow,"justify");g&&(s=i.style.fontSize,s=a.renderer.fontMetrics(s,e).b,n=o({x:l?a.plotWidth-u:h,y:Math.round(l?a.plotHeight-h:u),width:0,height:0},n),o(i,{width:d.width,height:d.height}),p?(m=!1,h=a.renderer.rotCorr(s,p),h={x:n.x+i.x+n.width/2+h.x,y:n.y+i.y+{top:0,middle:.5,bottom:1}[i.verticalAlign]*n.height},e[r?"attr":"animate"](h).attr({align:f}),u=180<(u=(p+720)%360)&&360>u,"left"===f?h.y-=u?d.height:0:"center"===f?(h.x-=d.width/2,h.y-=d.height/2):"right"===f&&(h.x-=d.width,h.y-=u?0:d.height)):(e.align(i,null,n),h=e.alignAttr),m?t.isLabelJustified=this.justifyDataLabel(e,i,h,d,n,r):c(i.crop,!0)&&(g=a.isInsidePlot(h.x,h.y)&&a.isInsidePlot(h.x+d.width,h.y+d.height)),i.shape&&!p)&&e[r?"attr":"animate"]({anchorX:l?a.plotWidth-t.plotY:t.plotX,anchorY:l?a.plotHeight-t.plotX:t.plotY}),g||(e.attr({y:-9999}),e.placed=!1)},d.prototype.justifyDataLabel=function(t,e,i,n,r,o){var s,a,l=this.chart,h=e.align,c=e.verticalAlign,u=t.box?0:t.padding||0;return 0>(s=i.x+u)&&("right"===h?e.align="left":e.x=-s,a=!0),(s=i.x+n.width-u)>l.plotWidth&&("left"===h?e.align="right":e.x=l.plotWidth-s,a=!0),0>(s=i.y+u)&&("bottom"===c?e.verticalAlign="top":e.y=-s,a=!0),(s=i.y+n.height-u)>l.plotHeight&&("top"===c?e.verticalAlign="bottom":e.y=l.plotHeight-s,a=!0),a&&(t.placed=!o,t.align(e,null,r)),a},p.pie&&(p.pie.prototype.drawDataLabels=function(){var e,o,s,a,l,h,u,p,f,g,m=this,v=m.data,y=m.chart,x=m.options.dataLabels,b=c(x.connectorPadding,10),w=c(x.connectorWidth,1),$=y.plotWidth,S=y.plotHeight,k=m.center,T=k[2]/2,C=k[1],E=[[],[]],M=[0,0,0,0];m.visible&&(x.enabled||m._hasPointLabels)&&(r(v,function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)}),d.prototype.drawDataLabels.apply(m),r(v,function(t){t.dataLabel&&t.visible&&(E[t.half].push(t),t.dataLabel._pos=null)}),r(E,function(i,o){var c,d,v,w=i.length,E=[];if(w)for(m.sortByAngle(i,o-.5),0<m.maxLabelDistance&&(c=Math.max(0,C-T-m.maxLabelDistance),d=Math.min(C+T+m.maxLabelDistance,y.plotHeight),r(i,function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,C-T-t.labelDistance),t.bottom=Math.min(C+T+t.labelDistance,y.plotHeight),v=t.dataLabel.getBBox().height||21,t.positionsIndex=E.push({target:t.labelPos[1]-t.top+v/2,size:v,rank:t.y})-1)}),t.distribute(E,d+v-c)),g=0;g<w;g++)d=(e=i[g]).positionsIndex,l=e.labelPos,s=e.dataLabel,f=!1===e.visible?"hidden":"inherit",c=l[1],E&&n(E[d])?void 0===E[d].pos?f="hidden":(h=E[d].size,p=e.top+E[d].pos):p=c,delete e.positionIndex,u=x.justify?k[0]+(o?-1:1)*(T+e.labelDistance):m.getX(p<e.top+2||p>e.bottom-2?c:p,o,e),s._attr={visibility:f,align:l[6]},s._pos={x:u+x.x+({left:b,right:-b}[l[6]]||0),y:p+x.y-10},l.x=u,l.y=p,null===m.options.size&&(a=s.getBBox().width,c=null,u-a<b?(c=Math.round(a-u+b),M[3]=Math.max(c,M[3])):u+a>$-b&&(c=Math.round(u+a-$+b),M[1]=Math.max(c,M[1])),0>p-h/2?M[0]=Math.max(Math.round(h/2-p),M[0]):p+h/2>S&&(M[2]=Math.max(Math.round(p+h/2-S),M[2])),s.sideOverflow=c)}),0===i(M)||this.verifyDataLabelOverflow(M))&&(this.placeDataLabels(),w&&r(this.points,function(t){var e;o=t.connector,(s=t.dataLabel)&&s._pos&&t.visible&&0<t.labelDistance?(f=s._attr.visibility,(e=!o)&&(t.connector=o=y.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+t.colorIndex).add(m.dataLabelsGroup),o.attr({"stroke-width":w,stroke:x.connectorColor||t.color||"#666666"})),o[e?"attr":"animate"]({d:m.connectorPath(t.labelPos)}),o.attr("visibility",f)):o&&(t.connector=o.destroy())}))},p.pie.prototype.connectorPath=function(t){var e=t.x,i=t.y;return c(this.options.dataLabels.softConnector,!0)?["M",e+("left"===t[6]?5:-5),i,"C",e,i,2*t[2]-t[4],2*t[3]-t[5],t[2],t[3],"L",t[4],t[5]]:["M",e+("left"===t[6]?5:-5),i,"L",t[2],t[3],"L",t[4],t[5]]},p.pie.prototype.placeDataLabels=function(){r(this.points,function(t){var e=t.dataLabel;e&&t.visible&&((t=e._pos)?(e.sideOverflow&&(e._attr.width=e.getBBox().width-e.sideOverflow,e.css({width:e._attr.width+"px",textOverflow:"ellipsis"}),e.shortened=!0),e.attr(e._attr),e[e.moved?"animate":"attr"](t),e.moved=!0):e&&e.attr({y:-9999}))},this)},p.pie.prototype.alignDataLabel=h,p.pie.prototype.verifyDataLabelOverflow=function(t){var e,i,n=this.center,r=this.options,o=r.center,s=r.minSize||80;return null!==o[0]?e=Math.max(n[2]-Math.max(t[1],t[3]),s):(e=Math.max(n[2]-t[1]-t[3],s),n[0]+=(t[3]-t[1])/2),null!==o[1]?e=Math.max(Math.min(e,n[2]-Math.max(t[0],t[2])),s):(e=Math.max(Math.min(e,n[2]-t[0]-t[2]),s),n[1]+=(t[0]-t[2])/2),e<n[2]?(n[2]=e,n[3]=Math.min(u(r.innerSize||0,e),e),this.translate(n),this.drawDataLabels&&this.drawDataLabels()):i=!0,i}),p.column&&(p.column.prototype.alignDataLabel=function(t,e,i,n,r){var o=this.chart.inverted,s=t.series,a=t.dlBox||t.shapeArgs,h=c(t.below,t.plotY>c(this.translatedThreshold,s.yAxis.len)),u=c(i.inside,!!this.options.stacking);a&&(0>(n=l(a)).y&&(n.height+=n.y,n.y=0),0<(a=n.y+n.height-s.yAxis.len)&&(n.height-=a),o&&(n={x:s.yAxis.len-n.y-n.height,y:s.xAxis.len-n.x-n.width,width:n.height,height:n.width}),u||(o?(n.x+=h?0:n.width,n.width=0):(n.y+=h?n.height:0,n.height=0))),i.align=c(i.align,!o||u?"center":h?"right":"left"),i.verticalAlign=c(i.verticalAlign,o||u?"middle":h?"top":"bottom"),d.prototype.alignDataLabel.call(this,t,e,i,n,r),t.isLabelJustified&&t.contrastColor&&t.dataLabel.css({color:t.contrastColor})})}(t),function(t){var e=t.Chart,i=t.each,n=t.pick,r=t.addEvent;e.prototype.callbacks.push(function(t){function e(){var e=[];i(t.series||[],function(t){var r=t.options.dataLabels,o=t.dataLabelCollections||["dataLabel"];(r.enabled||t._hasPointLabels)&&!r.allowOverlap&&t.visible&&i(o,function(r){i(t.points,function(t){t[r]&&(t[r].labelrank=n(t.labelrank,t.shapeArgs&&t.shapeArgs.height),e.push(t[r]))})})}),t.hideOverlappingLabels(e)}e(),r(t,"redraw",e)}),e.prototype.hideOverlappingLabels=function(t){var e,n,r,o,s,a,l,h,c,u=t.length,d=function(t,e,i,n,r,o,s,a){return!(r>t+i||r+s<t||o>e+n||o+a<e)};for(n=0;n<u;n++)(e=t[n])&&(e.oldOpacity=e.opacity,e.newOpacity=1);for(t.sort(function(t,e){return(e.labelrank||0)-(t.labelrank||0)}),n=0;n<u;n++)for(r=t[n],e=n+1;e<u;++e)o=t[e],r&&o&&r!==o&&r.placed&&o.placed&&0!==r.newOpacity&&0!==o.newOpacity&&(s=r.alignAttr,a=o.alignAttr,l=r.parentGroup,h=o.parentGroup,c=2*(r.box?0:r.padding),s=d(s.x+l.translateX,s.y+l.translateY,r.width-c,r.height-c,a.x+h.translateX,a.y+h.translateY,o.width-c,o.height-c))&&((r.labelrank<o.labelrank?r:o).newOpacity=0);i(t,function(t){var e,i;t&&(i=t.newOpacity,t.oldOpacity!==i&&t.placed&&(i?t.show(!0):e=function(){t.hide()},t.alignAttr.opacity=i,t[t.isOld?"animate":"attr"](t.alignAttr,null,e)),t.isOld=!0)})}}(t),function(t){var e,i=t.addEvent,n=t.Chart,r=t.createElement,o=t.css,s=t.defaultOptions,a=t.defaultPlotOptions,l=t.each,h=t.extend,c=t.fireEvent,u=t.hasTouch,d=t.inArray,p=t.isObject,f=t.Legend,g=t.merge,m=t.pick,v=t.Point,y=t.Series,x=t.seriesTypes,b=t.svg;e=t.TrackerMixin={drawTrackerPoint:function(){var t=this,e=t.chart.pointer,i=function(t){var i=e.getPointFromEvent(t);void 0!==i&&i.onMouseOver(t)};l(t.points,function(t){t.graphic&&(t.graphic.element.point=t),t.dataLabel&&(t.dataLabel.div?t.dataLabel.div.point=t:t.dataLabel.element.point=t)}),t._hasTracking||(l(t.trackerGroups,function(n){t[n]&&(t[n].addClass("highcharts-tracker").on("mouseover",i).on("mouseout",function(t){e.onTrackerMouseOut(t)}),u&&t[n].on("touchstart",i),t.options.cursor&&t[n].css(o).css({cursor:t.options.cursor}))}),t._hasTracking=!0)},drawTrackerGraph:function(){var t,e=this,i=e.options,n=i.trackByArea,r=[].concat(n?e.areaPath:e.graphPath),o=r.length,s=e.chart,a=s.pointer,h=s.renderer,c=s.options.tooltip.snap,d=e.tracker,p=function(){s.hoverSeries!==e&&e.onMouseOver()},f="rgba(192,192,192,"+(b?1e-4:.002)+")";if(o&&!n)for(t=o+1;t--;)"M"===r[t]&&r.splice(t+1,0,r[t+1]-c,r[t+2],"L"),(t&&"M"===r[t]||t===o)&&r.splice(t,0,"L",r[t-2]+c,r[t-1]);d?d.attr({d:r}):e.graph&&(e.tracker=h.path(r).attr({"stroke-linejoin":"round",visibility:e.visible?"visible":"hidden",stroke:f,fill:n?f:"none","stroke-width":e.graph.strokeWidth()+(n?0:2*c),zIndex:2}).add(e.group),l([e.tracker,e.markerGroup],function(t){t.addClass("highcharts-tracker").on("mouseover",p).on("mouseout",function(t){a.onTrackerMouseOut(t)}),i.cursor&&t.css({cursor:i.cursor}),u&&t.on("touchstart",p)}))}},x.column&&(x.column.prototype.drawTracker=e.drawTrackerPoint),x.pie&&(x.pie.prototype.drawTracker=e.drawTrackerPoint),x.scatter&&(x.scatter.prototype.drawTracker=e.drawTrackerPoint),h(f.prototype,{setItemEvents:function(t,e,i){var n=this,r=n.chart.renderer.boxWrapper,o="highcharts-legend-"+(t.series?"point":"series")+"-active";(i?e:t.legendGroup).on("mouseover",function(){t.setState("hover"),r.addClass(o),e.css(n.options.itemHoverStyle)}).on("mouseout",function(){e.css(g(t.visible?n.itemStyle:n.itemHiddenStyle)),r.removeClass(o),t.setState()}).on("click",function(e){var i=function(){t.setVisible&&t.setVisible()};e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,i):c(t,"legendItemClick",e,i)})},createCheckboxForItem:function(t){t.checkbox=r("input",{type:"checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),i(t.checkbox,"click",function(e){c(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},function(){t.select()})})}}),s.legend.itemStyle.cursor="pointer",h(n.prototype,{showResetZoom:function(){var t=this,e=s.lang,i=t.options.chart.resetZoomButton,n=i.theme,r=n.states,o="chart"===i.relativeTo?null:"plotBox";this.resetZoomButton=t.renderer.button(e.resetZoom,null,null,function(){t.zoomOut()},n,r&&r.hover).attr({align:i.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,o)},zoomOut:function(){var t=this;c(t,"selection",{resetSelection:!0},function(){t.zoom()})},zoom:function(t){var e,i,n=this.pointer,r=!1;!t||t.resetSelection?l(this.axes,function(t){e=t.zoom()}):l(t.xAxis.concat(t.yAxis),function(t){var i=t.axis;n[i.isXAxis?"zoomX":"zoomY"]&&(e=i.zoom(t.min,t.max),i.displayBtn&&(r=!0))}),i=this.resetZoomButton,r&&!i?this.showResetZoom():!r&&p(i)&&(this.resetZoomButton=i.destroy()),e&&this.redraw(m(this.options.chart.animation,t&&t.animation,100>this.pointCount))},pan:function(t,e){var i,n=this,r=n.hoverPoints;r&&l(r,function(t){t.setState()}),l("xy"===e?[1,0]:[1],function(e){var r,o,s=(e=n[e?"xAxis":"yAxis"][0]).horiz,a=t[s?"chartX":"chartY"],l=n[s=s?"mouseDownX":"mouseDownY"],h=(e.pointRange||0)/2,c=e.getExtremes(),u=e.toValue(l-a,!0)+h;l=(r=(h=e.toValue(l+e.len-a,!0)-h)<u)?h:u,u=r?u:h;0<(o=(h=Math.min(c.dataMin,e.toValue(e.toPixels(c.min)-e.minPixelPadding)))-l)&&(u+=o,l=h),0<(o=u-(r=Math.max(c.dataMax,e.toValue(e.toPixels(c.max)+e.minPixelPadding))))&&(u=r,l-=o),e.series.length&&l!==c.min&&u!==c.max&&(e.setExtremes(l,u,!1,!1,{trigger:"pan"}),i=!0),n[s]=a}),i&&n.redraw(!1),o(n.container,{cursor:"move"})}}),h(v.prototype,{select:function(t,e){var i=this,n=i.series,r=n.chart;t=m(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,n.options.data[d(i,n.data)]=i.options,i.setState(t&&"select"),e||l(r.getSelectedPoints(),function(t){t.selected&&t!==i&&(t.selected=t.options.selected=!1,n.options.data[d(t,n.data)]=t.options,t.setState(""),t.firePointEvent("unselect"))})})},onMouseOver:function(t){var e=this.series.chart.pointer;this.firePointEvent("mouseOver"),e.runPointActions(t,this)},onMouseOut:function(){var t=this.series.chart;this.firePointEvent("mouseOut"),l(t.hoverPoints||[],function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var e=this,n=g(e.series.options.point,e.options).events;e.events=n,t.objectEach(n,function(t,n){i(e,n,t)}),this.hasImportedEvents=!0}},setState:function(t,e){var i,n=Math.floor(this.plotX),r=this.plotY,o=this.series,s=o.options.states[t]||{},l=a[o.type].marker&&o.options.marker,c=l&&!1===l.enabled,u=l&&l.states&&l.states[t]||{},d=!1===u.enabled,p=o.stateMarkerGraphic,f=this.marker||{},g=o.chart,v=o.halo,y=l&&o.markerAttribs;(t=t||"")===this.state&&!e||this.selected&&"select"!==t||!1===s.enabled||t&&(d||c&&!1===u.enabled)||t&&f.states&&f.states[t]&&!1===f.states[t].enabled||(y&&(i=o.markerAttribs(this,t)),this.graphic?(this.state&&this.graphic.removeClass("highcharts-point-"+this.state),t&&this.graphic.addClass("highcharts-point-"+t),this.graphic.attr(o.pointAttribs(this,t)),i&&this.graphic.animate(i,m(g.options.chart.animation,u.animation,l.animation)),p&&p.hide()):(t&&u&&(l=f.symbol||o.symbol,p&&p.currentSymbol!==l&&(p=p.destroy()),p?p[e?"animate":"attr"]({x:i.x,y:i.y}):l&&(o.stateMarkerGraphic=p=g.renderer.symbol(l,i.x,i.y,i.width,i.height).add(o.markerGroup),p.currentSymbol=l),p&&p.attr(o.pointAttribs(this,t))),p&&(p[t&&g.isInsidePlot(n,r,g.inverted)?"show":"hide"](),p.element.point=this)),(n=s.halo)&&n.size?(v||(o.halo=v=g.renderer.path().add(y?o.markerGroup:o.group)),v[e?"animate":"attr"]({d:this.haloPath(n.size)}),v.attr({class:"highcharts-halo highcharts-color-"+m(this.colorIndex,o.colorIndex)}),v.point=this,v.attr(h({fill:this.color||o.color,"fill-opacity":n.opacity,zIndex:-1},n.attributes))):v&&v.point&&v.point.haloPath&&v.animate({d:v.point.haloPath(0)}),this.state=t)},haloPath:function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)}}),h(y.prototype,{onMouseOver:function(){var t=this.chart,e=t.hoverSeries;e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&c(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},onMouseOut:function(){var t=this.options,e=this.chart,i=e.tooltip,n=e.hoverPoint;e.hoverSeries=null,n&&n.onMouseOut(),this&&t.events.mouseOut&&c(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),this.setState()},setState:function(t){var e=this,i=e.options,n=e.graph,r=i.states,o=i.lineWidth;i=0;if(t=t||"",e.state!==t&&(l([e.group,e.markerGroup,e.dataLabelsGroup],function(i){i&&(e.state&&i.removeClass("highcharts-series-"+e.state),t&&i.addClass("highcharts-series-"+t))}),e.state=t,!r[t]||!1!==r[t].enabled)&&(t&&(o=r[t].lineWidth||o+(r[t].lineWidthPlus||0)),n&&!n.dashstyle))for(o={"stroke-width":o},n.animate(o,m(e.chart.options.chart.animation,r[t]&&r[t].animation));e["zone-graph-"+i];)e["zone-graph-"+i].attr(o),i+=1},setVisible:function(t,e){var i,n=this,r=n.chart,o=n.legendItem,s=r.options.chart.ignoreHiddenSeries,a=n.visible;i=(n.visible=t=n.options.visible=n.userOptions.visible=void 0===t?!a:t)?"show":"hide",l(["group","dataLabelsGroup","markerGroup","tracker","tt"],function(t){n[t]&&n[t][i]()}),r.hoverSeries!==n&&(r.hoverPoint&&r.hoverPoint.series)!==n||n.onMouseOut(),o&&r.legend.colorizeItem(n,t),n.isDirty=!0,n.options.stacking&&l(r.series,function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),l(n.linkedSeries,function(e){e.setVisible(t,!1)}),s&&(r.isDirtyBox=!0),!1!==e&&r.redraw(),c(n,i)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),c(this,t?"select":"unselect")},drawTracker:e.drawTrackerGraph})}(t),function(t){var e=t.Chart,i=t.each,n=t.inArray,r=t.isArray,o=t.isObject,s=t.pick,a=t.splat;e.prototype.setResponsive=function(e){var n=this.options.responsive,r=[],o=this.currentResponsive;n&&n.rules&&i(n.rules,function(i){void 0===i._id&&(i._id=t.uniqueKey()),this.matchResponsiveRule(i,r,e)},this);var s=t.merge.apply(0,t.map(r,function(e){return t.find(n.rules,function(t){return t._id===e}).chartOptions}));(r=r.toString()||void 0)!==(o&&o.ruleIds)&&(o&&this.update(o.undoOptions,e),r?(this.currentResponsive={ruleIds:r,mergedOptions:s,undoOptions:this.currentOptions(s)},this.update(s,e)):this.currentResponsive=void 0)},e.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=s(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=s(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=s(i.minWidth,0)&&this.chartHeight>=s(i.minHeight,0)}).call(this)&&e.push(t._id)},e.prototype.currentOptions=function(e){var i={};return function e(i,s,l,h){var c;t.objectEach(i,function(t,u){if(!h&&-1<n(u,["series","xAxis","yAxis"]))for(i[u]=a(i[u]),l[u]=[],c=0;c<i[u].length;c++)s[u][c]&&(l[u][c]={},e(t[c],s[u][c],l[u][c],h+1));else o(t)?(l[u]=r(t)?[]:{},e(t,s[u]||{},l[u],h+1)):l[u]=s[u]||null})}(e,this.options,i,0),i}}(t),t}),function(t){"object"==typeof module&&module.exports?module.exports=t:t(Highcharts)}(function(t){!function(t){var e=t.defaultOptions,i=t.doc,n=t.Chart,r=t.addEvent,o=t.removeEvent,s=t.fireEvent,a=t.createElement,l=t.discardElement,h=t.css,c=t.merge,u=t.pick,d=t.each,p=t.objectEach,f=t.extend,g=t.isTouchDevice,m=t.win,v=t.Renderer.prototype.symbols;f(e.lang,{printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"}),e.navigation={buttonOptions:{theme:{},symbolSize:14,symbolX:12.5,symbolY:10.5,align:"right",buttonSpacing:3,height:22,verticalAlign:"top",width:24}},c(!0,e.navigation,{menuStyle:{border:"1px solid #999999",background:"#ffffff",padding:"5px 0"},menuItemStyle:{padding:"0.5em 1em",background:"none",color:"#333333",fontSize:g?"14px":"11px",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#335cad",color:"#ffffff"},buttonOptions:{symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{fill:"#ffffff",stroke:"none",padding:5}}}),e.exporting={type:"image/png",url:"https://export.highcharts.com/",printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",_titleKey:"contextButtonTitle",menuItems:[{textKey:"printChart",onclick:function(){this.print()}},{separator:!0},{textKey:"downloadPNG",onclick:function(){this.exportChart()}},{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}]}}},t.post=function(t,e,n){var r=a("form",c({method:"post",action:t,enctype:"multipart/form-data"},n),{display:"none"},i.body);p(e,function(t,e){a("input",{type:"hidden",name:e,value:t},null,r)}),r.submit(),l(r)},f(n.prototype,{sanitizeSVG:function(t,e){if(e&&e.exporting&&e.exporting.allowHTML){var i=t.match(/<\/svg>(.*?$)/);i&&i[1]&&(i='<foreignObject x="0" y="0" width="'+e.chart.width+'" height="'+e.chart.height+'"><body xmlns="http://www.w3.org/1999/xhtml">'+i[1]+"</body></foreignObject>",t=t.replace("</svg>",i+"</svg>"))}return(t=t.replace(/zIndex="[^"]+"/g,"").replace(/isShadow="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\(("|&quot;)(\S+)("|&quot;)\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (NS[0-9]+\:)?href=/g," xlink:href=").replace(/\n/," ").replace(/<\/svg>.*?$/,"</svg>").replace(/(fill|stroke)="rgba\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\.]+)\)"/g,'$1="rgb($2)" $1-opacity="$3"').replace(/&nbsp;/g," ").replace(/&shy;/g,"­")).replace(/<IMG /g,"<image ").replace(/<(\/?)TITLE>/g,"<$1title>").replace(/height=([^" ]+)/g,'height="$1"').replace(/width=([^" ]+)/g,'width="$1"').replace(/hc-svg-href="([^"]+)">/g,'xlink:href="$1"/>').replace(/ id=([^" >]+)/g,' id="$1"').replace(/class=([^" >]+)/g,'class="$1"').replace(/ transform /g," ").replace(/:(path|rect)/g,"$1").replace(/style="([^"]+)"/g,function(t){return t.toLowerCase()})},getChartHTML:function(){return this.container.innerHTML},getSVG:function(e){var n,r,o,s,h,u=c(this.options,e);return i.createElementNS||(i.createElementNS=function(t,e){return i.createElement(e)}),r=a("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},i.body),o=this.renderTo.style.width,h=this.renderTo.style.height,o=u.exporting.sourceWidth||u.chart.width||/px$/.test(o)&&parseInt(o,10)||600,h=u.exporting.sourceHeight||u.chart.height||/px$/.test(h)&&parseInt(h,10)||400,f(u.chart,{animation:!1,renderTo:r,forExport:!0,renderer:"SVGRenderer",width:o,height:h}),u.exporting.enabled=!1,delete u.data,u.series=[],d(this.series,function(t){(s=c(t.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:t.visible})).isInternal||u.series.push(s)}),d(this.axes,function(e){e.userOptions.internalKey||(e.userOptions.internalKey=t.uniqueKey())}),n=new t.Chart(u,this.callback),e&&d(["xAxis","yAxis","series"],function(t){var i={};e[t]&&(i[t]=e[t],n.update(i))}),d(this.axes,function(e){var i=t.find(n.axes,function(t){return t.options.internalKey===e.userOptions.internalKey}),r=(o=e.getExtremes()).userMin,o=o.userMax;!i||void 0===r&&void 0===o||i.setExtremes(r,o,!0,!1)}),o=n.getChartHTML(),o=this.sanitizeSVG(o,u),u=null,n.destroy(),l(r),o},getSVGForExport:function(t,e){var i=this.options.exporting;return this.getSVG(c({chart:{borderRadius:0}},i.chartOptions,e,{exporting:{sourceWidth:t&&t.sourceWidth||i.sourceWidth,sourceHeight:t&&t.sourceHeight||i.sourceHeight}}))},exportChart:function(e,i){i=this.getSVGForExport(e,i),e=c(this.options.exporting,e),t.post(e.url,{filename:e.filename||"chart",type:e.type,width:e.width||0,scale:e.scale,svg:i},e.formAttributes)},print:function(){var t,e,n=this,r=n.container,o=[],a=r.parentNode,l=i.body,h=l.childNodes,c=n.options.exporting.printMaxWidth;n.isPrinting||(n.isPrinting=!0,n.pointer.reset(null,0),s(n,"beforePrint"),(e=c&&n.chartWidth>c)&&(t=[n.options.chart.width,void 0,!1],n.setSize(c,void 0,!1)),d(h,function(t,e){1===t.nodeType&&(o[e]=t.style.display,t.style.display="none")}),l.appendChild(r),m.focus(),m.print(),setTimeout(function(){a.appendChild(r),d(h,function(t,e){1===t.nodeType&&(t.style.display=o[e])}),n.isPrinting=!1,e&&n.setSize.apply(n,t),s(n,"afterPrint")},1e3))},contextMenu:function(t,e,n,o,s,l,c){var u,p,g=this,m=g.options.navigation,v=g.chartWidth,y=g.chartHeight,x="cache-"+t,b=g[x],w=Math.max(s,l);b||(g[x]=b=a("div",{className:t},{position:"absolute",zIndex:1e3,padding:w+"px"},g.container),u=a("div",{className:"highcharts-menu"},null,b),h(u,f({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},m.menuStyle)),p=function(){h(b,{display:"none"}),c&&c.setState(0),g.openMenu=!1},g.exportEvents.push(r(b,"mouseleave",function(){b.hideTimer=setTimeout(p,500)}),r(b,"mouseenter",function(){clearTimeout(b.hideTimer)}),r(i,"mouseup",function(e){g.pointer.inClass(e.target,t)||p()})),d(e,function(t){var e;t&&(t.separator?e=a("hr",null,null,u):((e=a("div",{className:"highcharts-menu-item",onclick:function(e){e&&e.stopPropagation(),p(),t.onclick&&t.onclick.apply(g,arguments)},innerHTML:t.text||g.options.lang[t.textKey]},null,u)).onmouseover=function(){h(this,m.menuItemHoverStyle)},e.onmouseout=function(){h(this,m.menuItemStyle)},h(e,f({cursor:"pointer"},m.menuItemStyle))),g.exportDivElements.push(e))}),g.exportDivElements.push(u,b),g.exportMenuWidth=b.offsetWidth,g.exportMenuHeight=b.offsetHeight),e={display:"block"},n+g.exportMenuWidth>v?e.right=v-n-s-w+"px":e.left=n-w+"px",o+l+g.exportMenuHeight>y&&"top"!==c.alignOptions.verticalAlign?e.bottom=y-o-w+"px":e.top=o+l-w+"px",h(b,e),g.openMenu=!0},addButton:function(t){var e,i,n=this,r=n.renderer,o=c(n.options.navigation.buttonOptions,t),s=o.onclick,a=o.menuItems,l=o.symbolSize||12;if(n.btnCount||(n.btnCount=0),n.exportDivElements||(n.exportDivElements=[],n.exportSVGElements=[]),!1!==o.enabled){var h,d=o.theme,p=(g=d.states)&&g.hover,g=g&&g.select;delete d.states,s?h=function(t){t.stopPropagation(),s.call(n,t)}:a&&(h=function(){n.contextMenu(i.menuClassName,a,i.translateX,i.translateY,i.width,i.height,i),i.setState(2)}),o.text&&o.symbol?d.paddingLeft=u(d.paddingLeft,25):o.text||f(d,{width:o.width,height:o.height,padding:0}),(i=r.button(o.text,0,0,h,d,p,g).addClass(t.className).attr({"stroke-linecap":"round",title:n.options.lang[o._titleKey],zIndex:3})).menuClassName=t.menuClassName||"highcharts-menu-"+n.btnCount++,o.symbol&&(e=r.symbol(o.symbol,o.symbolX-l/2,o.symbolY-l/2,l,l).addClass("highcharts-button-symbol").attr({zIndex:1}).add(i)).attr({stroke:o.symbolStroke,fill:o.symbolFill,"stroke-width":o.symbolStrokeWidth||1}),i.add().align(f(o,{width:i.width,x:u(o.x,n.buttonOffset)}),!0,"spacingBox"),n.buttonOffset+=(i.width+o.buttonSpacing)*("right"===o.align?-1:1),n.exportSVGElements.push(i,e)}},destroyExport:function(t){var e=t?t.target:this;t=e.exportSVGElements;var i,n=e.exportDivElements,r=e.exportEvents;t&&(d(t,function(t,n){t&&(t.onclick=t.ontouchstart=null,i="cache-"+t.menuClassName,e[i]&&delete e[i],e.exportSVGElements[n]=t.destroy())}),t.length=0),n&&(d(n,function(t,i){clearTimeout(t.hideTimer),o(t,"mouseleave"),e.exportDivElements[i]=t.onmouseout=t.onmouseover=t.ontouchstart=t.onclick=null,l(t)}),n.length=0),r&&(d(r,function(t){t()}),r.length=0)}}),v.menu=function(t,e,i,n){return["M",t,e+2.5,"L",t+i,e+2.5,"M",t,e+n/2+.5,"L",t+i,e+n/2+.5,"M",t,e+n-1.5,"L",t+i,e+n-1.5]},n.prototype.renderExporting=function(){var t=this,e=t.options.exporting,i=e.buttons,n=t.isDirtyExporting||!t.exportSVGElements;t.buttonOffset=0,t.isDirtyExporting&&t.destroyExport(),n&&!1!==e.enabled&&(t.exportEvents=[],p(i,function(e){t.addButton(e)}),t.isDirtyExporting=!1),r(t,"destroy",t.destroyExport)},n.prototype.callbacks.push(function(t){t.renderExporting(),r(t,"redraw",t.renderExporting),d(["exporting","navigation"],function(e){t[e]={update:function(i,n){t.isDirtyExporting=!0,c(!0,t.options[e],i),u(n,!0)&&t.redraw()}}})})}(t)}),function(t){var e=Array.prototype.slice;function i(){}function n(t){if(t){var n="undefined"==typeof console?i:function(t){console.error(t)};return t.bridget=function(i,r){!function(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}(r),function(i,r){t.fn[i]=function(o){if("string"==typeof o){for(var s=e.call(arguments,1),a=0,l=this.length;a<l;a++){var h=this[a],c=t.data(h,i);if(c)if(t.isFunction(c[o])&&"_"!==o.charAt(0)){var u=c[o].apply(c,s);if(void 0!==u)return u}else n("no such method '"+o+"' for "+i+" instance");else n("cannot call methods on "+i+" prior to initialization; attempted to call '"+o+"'")}return this}return this.each(function(){var e=t.data(this,i);e?(e.option(o),e._init()):(e=new r(this,o),t.data(this,i,e))})}}(i,r)},t.bridget}}"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],n):"object"==typeof exports?n(require("jquery")):n(t.jQuery)}(window),function(t){var e=document.documentElement,i=function(){};function n(e){var i=t.event;return i.target=i.target||i.srcElement||e,i}e.addEventListener?i=function(t,e,i){t.addEventListener(e,i,!1)}:e.attachEvent&&(i=function(t,e,i){t[e+i]=i.handleEvent?function(){var e=n(t);i.handleEvent.call(i,e)}:function(){var e=n(t);i.call(t,e)},t.attachEvent("on"+e,t[e+i])});var r=function(){};e.removeEventListener?r=function(t,e,i){t.removeEventListener(e,i,!1)}:e.detachEvent&&(r=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{delete t[e+i]}catch(n){t[e+i]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):"object"==typeof exports?module.exports=o:t.eventie=o}(window),function(){function t(){}var e=t.prototype,i=this,n=i.EventEmitter;function r(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function o(t){return function(){return this[t].apply(this,arguments)}}e.getListeners=function(t){var e,i,n=this._getEvents();if(t instanceof RegExp)for(i in e={},n)n.hasOwnProperty(i)&&t.test(i)&&(e[i]=n[i]);else e=n[t]||(n[t]=[]);return e},e.flattenListeners=function(t){var e,i=[];for(e=0;e<t.length;e+=1)i.push(t[e].listener);return i},e.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&((e={})[t]=i),e||i},e.addListener=function(t,e){var i,n=this.getListenersAsObject(t),o="object"==typeof e;for(i in n)n.hasOwnProperty(i)&&-1===r(n[i],e)&&n[i].push(o?e:{listener:e,once:!1});return this},e.on=o("addListener"),e.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},e.once=o("addOnceListener"),e.defineEvent=function(t){return this.getListeners(t),this},e.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},e.removeListener=function(t,e){var i,n,o=this.getListenersAsObject(t);for(n in o)o.hasOwnProperty(n)&&-1!==(i=r(o[n],e))&&o[n].splice(i,1);return this},e.off=o("removeListener"),e.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},e.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},e.manipulateListeners=function(t,e,i){var n,r,o=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(n=i.length;n--;)o.call(this,e,i[n]);else for(n in e)e.hasOwnProperty(n)&&(r=e[n])&&("function"==typeof r?o.call(this,n,r):s.call(this,n,r));return this},e.removeEvent=function(t){var e,i=typeof t,n=this._getEvents();if("string"===i)delete n[t];else if(t instanceof RegExp)for(e in n)n.hasOwnProperty(e)&&t.test(e)&&delete n[e];else delete this._events;return this},e.removeAllListeners=o("removeEvent"),e.emitEvent=function(t,e){var i,n,r,o=this.getListenersAsObject(t);for(r in o)if(o.hasOwnProperty(r))for(n=o[r].length;n--;)!0===(i=o[r][n]).once&&this.removeListener(t,i.listener),i.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},e.trigger=o("emitEvent"),e.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},e.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},e._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},e._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return i.EventEmitter=n,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:i.EventEmitter=t}.call(this),function(t){var e="Webkit Moz ms Ms O".split(" "),i=document.documentElement.style;function n(t){if(t){if("string"==typeof i[t])return t;var n;t=t.charAt(0).toUpperCase()+t.slice(1);for(var r=0,o=e.length;r<o;r++)if(n=e[r]+t,"string"==typeof i[n])return n}}"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return n}):"object"==typeof exports?module.exports=n:t.getStyleProperty=n}(window),function(t,e){function i(t){var e=parseFloat(t);return-1===t.indexOf("%")&&!isNaN(e)&&e}var n="undefined"==typeof console?function(){}:function(t){console.error(t)},r=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];function o(e){var o,s,a,l=!1;function h(e,i){if(t.getComputedStyle||-1===i.indexOf("%"))return i;var n=e.style,r=n.left,o=e.runtimeStyle,s=o&&o.left;return s&&(o.left=e.currentStyle.left),n.left=i,i=n.pixelLeft,n.left=r,s&&(o.left=s),i}return function(c){if(function(){if(!l){l=!0;var r,h=t.getComputedStyle;if(r=h?function(t){return h(t,null)}:function(t){return t.currentStyle},o=function(t){var e=r(t);return e||n("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e},s=e("boxSizing")){var c=document.createElement("div");c.style.width="200px",c.style.padding="1px 2px 3px 4px",c.style.borderStyle="solid",c.style.borderWidth="1px 2px 3px 4px",c.style[s]="border-box";var u=document.body||document.documentElement;u.appendChild(c);var d=o(c);a=200===i(d.width),u.removeChild(c)}}}(),"string"==typeof c&&(c=document.querySelector(c)),c&&"object"==typeof c&&c.nodeType){var u=o(c);if("none"===u.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,i=r.length;e<i;e++)t[r[e]]=0;return t}();var d={};d.width=c.offsetWidth,d.height=c.offsetHeight;for(var p=d.isBorderBox=!(!s||!u[s]||"border-box"!==u[s]),f=0,g=r.length;f<g;f++){var m=r[f],v=u[m];v=h(c,v);var y=parseFloat(v);d[m]=isNaN(y)?0:y}var x=d.paddingLeft+d.paddingRight,b=d.paddingTop+d.paddingBottom,w=d.marginLeft+d.marginRight,$=d.marginTop+d.marginBottom,S=d.borderLeftWidth+d.borderRightWidth,k=d.borderTopWidth+d.borderBottomWidth,T=p&&a,C=i(u.width);!1!==C&&(d.width=C+(T?0:x+S));var E=i(u.height);return!1!==E&&(d.height=E+(T?0:b+k)),d.innerWidth=d.width-(x+S),d.innerHeight=d.height-(b+k),d.outerWidth=d.width+w,d.outerHeight=d.height+$,d}}}"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],o):"object"==typeof exports?module.exports=o(require("desandro-get-style-property")):t.getSize=o(t.getStyleProperty)}(window),function(t){var e=t.document,i=[];function n(t){"function"==typeof t&&(n.isReady?t():i.push(t))}function r(t){var i="readystatechange"===t.type&&"complete"!==e.readyState;n.isReady||i||o()}function o(){n.isReady=!0;for(var t=0,e=i.length;t<e;t++){(0,i[t])()}}function s(i){return"complete"===e.readyState?o():(i.bind(e,"DOMContentLoaded",r),i.bind(e,"readystatechange",r),i.bind(t,"load",r)),n}n.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],s):"object"==typeof exports?module.exports=s(require("eventie")):t.docReady=s(t.eventie)}(window),function(t){var e,i=function(){if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0,n=e.length;i<n;i++){var r=e[i]+"MatchesSelector";if(t[r])return r}}();function n(t,e){return t[i](e)}function r(t){t.parentNode||document.createDocumentFragment().appendChild(t)}if(i){var o=n(document.createElement("div"),"div");e=o?n:function(t,e){return r(t),n(t,e)}}else e=function(t,e){r(t);for(var i=t.parentNode.querySelectorAll(e),n=0,o=i.length;n<o;n++)if(i[n]===t)return!0;return!1};"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return e}):"object"==typeof exports?module.exports=e:window.matchesSelector=e}(Element.prototype),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(i,n){return e(t,i,n)}):"object"==typeof exports?module.exports=e(t,require("doc-ready"),require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.docReady,t.matchesSelector)}(window,function(t,e,i){var n={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},r=Object.prototype.toString;n.isArray=function(t){return"[object Array]"==r.call(t)},n.makeArray=function(t){var e=[];if(n.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0,r=t.length;i<r;i++)e.push(t[i]);else e.push(t);return e},n.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},n.removeFrom=function(t,e){var i=n.indexOf(t,e);-1!=i&&t.splice(i,1)},n.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&1==t.nodeType&&"string"==typeof t.nodeName},n.setText=function(){var t;return function(e,i){e[t=t||(void 0!==document.documentElement.textContent?"textContent":"innerText")]=i}}(),n.getParent=function(t,e){for(;t!=document.body;)if(t=t.parentNode,i(t,e))return t},n.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.filterFindElements=function(t,e){for(var r=[],o=0,s=(t=n.makeArray(t)).length;o<s;o++){var a=t[o];if(n.isElement(a))if(e){i(a,e)&&r.push(a);for(var l=a.querySelectorAll(e),h=0,c=l.length;h<c;h++)r.push(l[h])}else r.push(a)}return r},n.debounceMethod=function(t,e,i){var n=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];t&&clearTimeout(t);var e=arguments,o=this;this[r]=setTimeout(function(){n.apply(o,e),delete o[r]},i||100)}},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return n.htmlInit=function(i,r){e(function(){for(var e=n.toDashed(r),s=document.querySelectorAll(".js-"+e),a="data-"+e+"-options",l=0,h=s.length;l<h;l++){var c,u=s[l],d=u.getAttribute(a);try{c=d&&JSON.parse(d)}catch(t){o&&o.error("Error parsing "+a+" on "+u.nodeName.toLowerCase()+(u.id?"#"+u.id:"")+": "+t);continue}var p=new i(u,c),f=t.jQuery;f&&f.data(u,r,p)}})},n}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(i,n,r,o){return e(t,i,n,r,o)}):"object"==typeof exports?module.exports=e(t,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(t.Outlayer={},t.Outlayer.Item=e(t,t.EventEmitter,t.getSize,t.getStyleProperty,t.fizzyUIUtils))}(window,function(t,e,i,n,r){var o=t.getComputedStyle,s=o?function(t){return o(t,null)}:function(t){return t.currentStyle};var a=n("transition"),l=n("transform"),h=a&&l,c=!!n("perspective"),u={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[a],d=["transform","transition","transitionDuration","transitionProperty"],p=function(){for(var t={},e=0,i=d.length;e<i;e++){var r=d[e],o=n(r);o&&o!==r&&(t[r]=o)}return t}();function f(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}r.extend(f.prototype,e.prototype),f.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},f.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},f.prototype.getSize=function(){this.size=i(this.element)},f.prototype.css=function(t){var e=this.element.style;for(var i in t){e[p[i]||i]=t[i]}},f.prototype.getPosition=function(){var t=s(this.element),e=this.layout.options,i=e.isOriginLeft,n=e.isOriginTop,r=t[i?"left":"right"],o=t[n?"top":"bottom"],a=parseInt(r,10),l=parseInt(o,10),h=this.layout.size;a=-1!=r.indexOf("%")?a/100*h.width:a,l=-1!=o.indexOf("%")?l/100*h.height:l,a=isNaN(a)?0:a,l=isNaN(l)?0:l,a-=i?h.paddingLeft:h.paddingRight,l-=n?h.paddingTop:h.paddingBottom,this.position.x=a,this.position.y=l},f.prototype.layoutPosition=function(){var t=this.layout.size,e=this.layout.options,i={},n=e.isOriginLeft?"paddingLeft":"paddingRight",r=e.isOriginLeft?"left":"right",o=e.isOriginLeft?"right":"left",s=this.position.x+t[n];i[r]=this.getXValue(s),i[o]="";var a=e.isOriginTop?"paddingTop":"paddingBottom",l=e.isOriginTop?"top":"bottom",h=e.isOriginTop?"bottom":"top",c=this.position.y+t[a];i[l]=this.getYValue(c),i[h]="",this.css(i),this.emitEvent("layout",[this])},f.prototype.getXValue=function(t){var e=this.layout.options;return e.percentPosition&&!e.isHorizontal?t/this.layout.size.width*100+"%":t+"px"},f.prototype.getYValue=function(t){var e=this.layout.options;return e.percentPosition&&e.isHorizontal?t/this.layout.size.height*100+"%":t+"px"},f.prototype._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,r=parseInt(t,10),o=parseInt(e,10),s=r===this.position.x&&o===this.position.y;if(this.setPosition(t,e),!s||this.isTransitioning){var a=t-i,l=e-n,h={};h.transform=this.getTranslate(a,l),this.transition({to:h,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},f.prototype.getTranslate=function(t,e){var i=this.layout.options;return t=i.isOriginLeft?t:-t,e=i.isOriginTop?e:-e,t=this.getXValue(t),e=this.getYValue(e),c?"translate3d("+t+", "+e+", 0)":"translate("+t+", "+e+")"},f.prototype.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},f.prototype.moveTo=h?f.prototype._transitionTo:f.prototype.goTo,f.prototype.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},f.prototype._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},f.prototype._transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);this.element.offsetHeight;null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var g="opacity,"+(p.transform||"transform").replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});f.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:g,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(u,this,!1))},f.prototype.transition=f.prototype[a?"_transition":"_nonTransition"],f.prototype.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},f.prototype.onotransitionend=function(t){this.ontransitionend(t)};var m={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};f.prototype.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=m[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],function(t){for(var e in t)return!1;return!0}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd)e.onEnd[i].call(this),delete e.onEnd[i];this.emitEvent("transitionEnd",[this])}},f.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(u,this,!1),this.isTransitioning=!1},f.prototype._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var v={transitionProperty:"",transitionDuration:""};return f.prototype.removeTransitionStyles=function(){this.css(v)},f.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},f.prototype.remove=function(){if(a&&parseFloat(this.layout.options.transitionDuration)){var t=this;this.once("transitionEnd",function(){t.removeElem()}),this.hide()}else this.removeElem()},f.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},f.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},f.prototype.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},f.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},f.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},f.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},f}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,r,o,s){return e(t,i,n,r,o,s)}):"object"==typeof exports?module.exports=e(t,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.eventie,t.EventEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,r,o){var s=t.console,a=t.jQuery,l=function(){},h=0,c={};function u(t,e){var i=r.getQueryElement(t);if(i){this.element=i,a&&(this.$element=a(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(e);var n=++h;this.element.outlayerGUID=n,c[n]=this,this._create(),this.options.isInitLayout&&this.layout()}else s&&s.error("Bad element for "+this.constructor.namespace+": "+(i||t))}return u.namespace="outlayer",u.Item=o,u.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},r.extend(u.prototype,i.prototype),u.prototype.option=function(t){r.extend(this.options,t)},u.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),r.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},u.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},u.prototype._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],r=0,o=e.length;r<o;r++){var s=new i(e[r],this);n.push(s)}return n},u.prototype._filterFindItemElements=function(t){return r.filterFindElements(t,this.options.itemSelector)},u.prototype.getItemElements=function(){for(var t=[],e=0,i=this.items.length;e<i;e++)t.push(this.items[e].element);return t},u.prototype.layout=function(){this._resetLayout(),this._manageStamps();var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},u.prototype._init=u.prototype.layout,u.prototype._resetLayout=function(){this.getSize()},u.prototype.getSize=function(){this.size=n(this.element)},u.prototype._getMeasurement=function(t,e){var i,o=this.options[t];o?("string"==typeof o?i=this.element.querySelector(o):r.isElement(o)&&(i=o),this[t]=i?n(i)[e]:o):this[t]=0},u.prototype.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},u.prototype._getItemsForLayout=function(t){for(var e=[],i=0,n=t.length;i<n;i++){var r=t[i];r.isIgnored||e.push(r)}return e},u.prototype._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){for(var i=[],n=0,r=t.length;n<r;n++){var o=t[n],s=this._getItemLayoutPosition(o);s.item=o,s.isInstant=e||o.isLayoutInstant,i.push(s)}this._processLayoutQueue(i)}},u.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},u.prototype._processLayoutQueue=function(t){for(var e=0,i=t.length;e<i;e++){var n=t[e];this._positionItem(n.item,n.x,n.y,n.isInstant)}},u.prototype._positionItem=function(t,e,i,n){n?t.goTo(e,i):t.moveTo(e,i)},u.prototype._postLayout=function(){this.resizeContainer()},u.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},u.prototype._getContainerSize=l,u.prototype._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},u.prototype._emitCompleteOnItems=function(t,e){var i=this;function n(){i.dispatchEvent(t+"Complete",null,[e])}var r=e.length;if(e&&r)for(var o=0,s=0,a=e.length;s<a;s++){e[s].once(t,l)}else n();function l(){++o===r&&n()}},u.prototype.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),a)if(this.$element=this.$element||a(this.element),e){var r=a.Event(e);r.type=t,this.$element.trigger(r,i)}else this.$element.trigger(t,i)},u.prototype.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},u.prototype.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},u.prototype.stamp=function(t){if(t=this._find(t)){this.stamps=this.stamps.concat(t);for(var e=0,i=t.length;e<i;e++){var n=t[e];this.ignore(n)}}},u.prototype.unstamp=function(t){if(t=this._find(t))for(var e=0,i=t.length;e<i;e++){var n=t[e];r.removeFrom(this.stamps,n),this.unignore(n)}},u.prototype._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=r.makeArray(t)},u.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var t=0,e=this.stamps.length;t<e;t++){var i=this.stamps[t];this._manageStamp(i)}}},u.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},u.prototype._manageStamp=l,u.prototype._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,r=n(t);return{left:e.left-i.left-r.marginLeft,top:e.top-i.top-r.marginTop,right:i.right-e.right-r.marginRight,bottom:i.bottom-e.bottom-r.marginBottom}},u.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},u.prototype.bindResize=function(){this.isResizeBound||(e.bind(t,"resize",this),this.isResizeBound=!0)},u.prototype.unbindResize=function(){this.isResizeBound&&e.unbind(t,"resize",this),this.isResizeBound=!1},u.prototype.onresize=function(){this.resizeTimeout&&clearTimeout(this.resizeTimeout);var t=this;this.resizeTimeout=setTimeout(function(){t.resize(),delete t.resizeTimeout},100)},u.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},u.prototype.needsResizeLayout=function(){var t=n(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},u.prototype.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},u.prototype.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},u.prototype.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},u.prototype.reveal=function(t){this._emitCompleteOnItems("reveal",t);for(var e=t&&t.length,i=0;e&&i<e;i++){t[i].reveal()}},u.prototype.hide=function(t){this._emitCompleteOnItems("hide",t);for(var e=t&&t.length,i=0;e&&i<e;i++){t[i].hide()}},u.prototype.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},u.prototype.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},u.prototype.getItem=function(t){for(var e=0,i=this.items.length;e<i;e++){var n=this.items[e];if(n.element===t)return n}},u.prototype.getItems=function(t){for(var e=[],i=0,n=(t=r.makeArray(t)).length;i<n;i++){var o=t[i],s=this.getItem(o);s&&e.push(s)}return e},u.prototype.remove=function(t){var e=this.getItems(t);if(this._emitCompleteOnItems("remove",e),e&&e.length)for(var i=0,n=e.length;i<n;i++){var o=e[i];o.remove(),r.removeFrom(this.items,o)}},u.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,i=this.items.length;e<i;e++){this.items[e].destroy()}this.unbindResize();var n=this.element.outlayerGUID;delete c[n],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},u.data=function(t){var e=(t=r.getQueryElement(t))&&t.outlayerGUID;return e&&c[e]},u.create=function(t,e){function i(){u.apply(this,arguments)}return Object.create?i.prototype=Object.create(u.prototype):r.extend(i.prototype,u.prototype),i.prototype.constructor=i,i.defaults=r.extend({},u.defaults),r.extend(i.defaults,e),i.prototype.settings={},i.namespace=t,i.data=u.data,i.Item=function(){o.apply(this,arguments)},i.Item.prototype=new o,r.htmlInit(i,t),a&&a.bridget&&a.bridget(t,i),i},u.Item=o,u}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],e):"object"==typeof exports?module.exports=e(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):t.Masonry=e(t.Outlayer,t.getSize,t.fizzyUIUtils)}(window,function(t,e,i){var n=t.create("masonry");return n.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0);this.maxY=0},n.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,r=this.containerWidth+this.gutter,o=r/n,s=n-r%n;o=Math[s&&s<1?"round":"floor"](o),this.cols=Math.max(o,1)},n.prototype.getContainerWidth=function(){var t=this.options.isFitWidth?this.element.parentNode:this.element,i=e(t);this.containerWidth=i&&i.innerWidth},n.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,n=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var r=this._getColGroup(n),o=Math.min.apply(Math,r),s=i.indexOf(r,o),a={x:this.columnWidth*s,y:o},l=o+t.size.outerHeight,h=this.cols+1-r.length,c=0;c<h;c++)this.colYs[s+c]=l;return a},n.prototype._getColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++){var r=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,r)}return e},n.prototype._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),r=this.options.isOriginLeft?n.left:n.right,o=r+i.outerWidth,s=Math.floor(r/this.columnWidth);s=Math.max(0,s);var a=Math.floor(o/this.columnWidth);a-=o%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var l=(this.options.isOriginTop?n.top:n.bottom)+i.outerHeight,h=s;h<=a;h++)this.colYs[h]=Math.max(l,this.colYs[h])},n.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this.options.isFitWidth&&(t.width=this._getContainerFitWidth()),t},n.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!==this.containerWidth},n}),function(t,e,i){function n(t,i){for(var n in this.wrapper="string"==typeof t?e.querySelector(t):t,this.scroller=this.wrapper.children[0],this.scrollerStyle=this.scroller.style,this.options={resizeScrollbars:!0,mouseWheelSpeed:20,snapThreshold:.334,startX:0,startY:0,scrollY:!0,directionLockThreshold:5,momentum:!0,bounce:!0,bounceTime:600,bounceEasing:"",preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0},i)this.options[n]=i[n];this.translateZ=this.options.HWCompositing&&a.hasPerspective?" translateZ(0)":"",this.options.useTransition=a.hasTransition&&this.options.useTransition,this.options.useTransform=a.hasTransform&&this.options.useTransform,this.options.eventPassthrough=!0===this.options.eventPassthrough?"vertical":this.options.eventPassthrough,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollY="vertical"!=this.options.eventPassthrough&&this.options.scrollY,this.options.scrollX="horizontal"!=this.options.eventPassthrough&&this.options.scrollX,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,this.options.bounceEasing="string"==typeof this.options.bounceEasing?a.ease[this.options.bounceEasing]||a.ease.circular:this.options.bounceEasing,this.options.resizePolling=void 0===this.options.resizePolling?60:this.options.resizePolling,!0===this.options.tap&&(this.options.tap="tap"),"scale"==this.options.shrinkScrollbars&&(this.options.useTransition=!1),this.options.invertWheelDirection=this.options.invertWheelDirection?-1:1,this.x=0,this.y=0,this.directionX=0,this.directionY=0,this._events={},this._init(),this.refresh(),this.scrollTo(this.options.startX,this.options.startY),this.enable()}function r(t,i,n){var r=e.createElement("div"),o=e.createElement("div");return!0===n&&(r.style.cssText="position:absolute;z-index:9999",o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px"),o.className="iScrollIndicator","h"==t?(!0===n&&(r.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",o.style.height="100%"),r.className="iScrollHorizontalScrollbar"):(!0===n&&(r.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",o.style.width="100%"),r.className="iScrollVerticalScrollbar"),r.style.cssText+=";overflow:hidden",i||(r.style.pointerEvents="none"),r.appendChild(o),r}function o(i,n){for(var r in this.wrapper="string"==typeof n.el?e.querySelector(n.el):n.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=i,this.options={listenX:!0,listenY:!0,interactive:!1,resize:!0,defaultScrollbars:!1,shrink:!1,fade:!1,speedRatioX:0,speedRatioY:0},n)this.options[r]=n[r];this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.options.interactive&&(this.options.disableTouch||(a.addEvent(this.indicator,"touchstart",this),a.addEvent(t,"touchend",this)),this.options.disablePointer||(a.addEvent(this.indicator,"MSPointerDown",this),a.addEvent(t,"MSPointerUp",this)),this.options.disableMouse||(a.addEvent(this.indicator,"mousedown",this),a.addEvent(t,"mouseup",this))),this.options.fade&&(this.wrapperStyle[a.style.transform]=this.scroller.translateZ,this.wrapperStyle[a.style.transitionDuration]=a.isBadAndroid?"0.001s":"0ms",this.wrapperStyle.opacity="0")}var s=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){t.setTimeout(e,1e3/60)},a=function(){function n(t){return!1!==s&&(""===s?t:s+t.charAt(0).toUpperCase()+t.substr(1))}var r={},o=e.createElement("div").style,s=function(){for(var t=["t","webkitT","MozT","msT","OT"],e=0,i=t.length;i>e;e++)if(t[e]+"ransform"in o)return t[e].substr(0,t[e].length-1);return!1}();r.getTime=Date.now||function(){return(new Date).getTime()},r.extend=function(t,e){for(var i in e)t[i]=e[i]},r.addEvent=function(t,e,i,n){t.addEventListener(e,i,!!n)},r.removeEvent=function(t,e,i,n){t.removeEventListener(e,i,!!n)},r.momentum=function(t,e,n,r,o,s){var a,l,h=t-e,c=i.abs(h)/n;return l=c/(s=void 0===s?6e-4:s),r>(a=t+c*c/(2*s)*(0>h?-1:1))?(a=o?r-o/2.5*(c/8):r,l=(h=i.abs(a-t))/c):a>0&&(a=o?o/2.5*(c/8):0,l=(h=i.abs(t)+a)/c),{destination:i.round(a),duration:l}};var a=n("transform");return r.extend(r,{hasTransform:!1!==a,hasPerspective:n("perspective")in o,hasTouch:"ontouchstart"in t,hasPointer:navigator.msPointerEnabled,hasTransition:n("transition")in o}),r.isBadAndroid=/Android /.test(t.navigator.appVersion)&&!/Chrome\/\d/.test(t.navigator.appVersion),r.extend(r.style={},{transform:a,transitionTimingFunction:n("transitionTimingFunction"),transitionDuration:n("transitionDuration"),transitionDelay:n("transitionDelay"),transformOrigin:n("transformOrigin")}),r.hasClass=function(t,e){return new RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className)},r.addClass=function(t,e){if(!r.hasClass(t,e)){var i=t.className.split(" ");i.push(e),t.className=i.join(" ")}},r.removeClass=function(t,e){if(r.hasClass(t,e)){var i=new RegExp("(^|\\s)"+e+"(\\s|$)","g");t.className=t.className.replace(i," ")}},r.offset=function(t){for(var e=-t.offsetLeft,i=-t.offsetTop;t=t.offsetParent;)e-=t.offsetLeft,i-=t.offsetTop;return{left:e,top:i}},r.preventDefaultException=function(t,e){for(var i in e)if(e[i].test(t[i]))return!0;return!1},r.extend(r.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),r.extend(r.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(t){return i.sqrt(1- --t*t)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(t){return(t-=1)*t*(5*t+4)+1}},bounce:{style:"",fn:function(t){return(t/=1)<1/2.75?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}},elastic:{style:"",fn:function(t){return 0===t?0:1==t?1:.4*i.pow(2,-10*t)*i.sin(2*(t-.055)*i.PI/.22)+1}}}),r.tap=function(t,i){var n=e.createEvent("Event");n.initEvent(i,!0,!0),n.pageX=t.pageX,n.pageY=t.pageY,t.target.dispatchEvent(n)},r.click=function(t){var i,n=t.target;/(SELECT|INPUT|TEXTAREA)/i.test(n.tagName)||((i=e.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,t.view,1,n.screenX,n.screenY,n.clientX,n.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,0,null),i._constructed=!0,n.dispatchEvent(i))},r}();n.prototype={version:"5.1.1",_init:function(){this._initEvents(),(this.options.scrollbars||this.options.indicators)&&this._initIndicators(),this.options.mouseWheel&&this._initWheel(),this.options.snap&&this._initSnap(),this.options.keyBindings&&this._initKeys()},destroy:function(){this._initEvents(!0),this._execEvent("destroy")},_transitionEnd:function(t){t.target==this.scroller&&this.isInTransition&&(this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,this._execEvent("scrollEnd")))},_start:function(t){if(!(1!=a.eventType[t.type]&&0!==t.button||!this.enabled||this.initiated&&a.eventType[t.type]!==this.initiated)){!this.options.preventDefault||a.isBadAndroid||a.preventDefaultException(t.target,this.options.preventDefaultException)||t.preventDefault();var e,n=t.touches?t.touches[0]:t;this.initiated=a.eventType[t.type],this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.directionLocked=0,this._transitionTime(),this.startTime=a.getTime(),this.options.useTransition&&this.isInTransition?(this.isInTransition=!1,e=this.getComputedPosition(),this._translate(i.round(e.x),i.round(e.y)),this._execEvent("scrollEnd")):!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,this._execEvent("scrollEnd")),this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=n.pageX,this.pointY=n.pageY,this._execEvent("beforeScrollStart")}},_move:function(t){if(this.enabled&&a.eventType[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault();var e,n,r,o,s=t.touches?t.touches[0]:t,l=s.pageX-this.pointX,h=s.pageY-this.pointY,c=a.getTime();if(this.pointX=s.pageX,this.pointY=s.pageY,this.distX+=l,this.distY+=h,r=i.abs(this.distX),o=i.abs(this.distY),!(c-this.endTime>300&&10>r&&10>o)){if(this.directionLocked||this.options.freeScroll||(this.directionLocked=r>o+this.options.directionLockThreshold?"h":o>=r+this.options.directionLockThreshold?"v":"n"),"h"==this.directionLocked){if("vertical"==this.options.eventPassthrough)t.preventDefault();else if("horizontal"==this.options.eventPassthrough)return void(this.initiated=!1);h=0}else if("v"==this.directionLocked){if("horizontal"==this.options.eventPassthrough)t.preventDefault();else if("vertical"==this.options.eventPassthrough)return void(this.initiated=!1);l=0}l=this.hasHorizontalScroll?l:0,h=this.hasVerticalScroll?h:0,e=this.x+l,n=this.y+h,(e>0||e<this.maxScrollX)&&(e=this.options.bounce?this.x+l/3:e>0?0:this.maxScrollX),(n>0||n<this.maxScrollY)&&(n=this.options.bounce?this.y+h/3:n>0?0:this.maxScrollY),this.directionX=l>0?-1:0>l?1:0,this.directionY=h>0?-1:0>h?1:0,this.moved||this._execEvent("scrollStart"),this.moved=!0,this._translate(e,n),c-this.startTime>300&&(this.startTime=c,this.startX=this.x,this.startY=this.y)}}},_end:function(t){if(this.enabled&&a.eventType[t.type]===this.initiated){this.options.preventDefault&&!a.preventDefaultException(t.target,this.options.preventDefaultException)&&t.preventDefault();var e,n,r=(t.changedTouches&&t.changedTouches[0],a.getTime()-this.startTime),o=i.round(this.x),s=i.round(this.y),l=i.abs(o-this.startX),h=i.abs(s-this.startY),c=0,u="";if(this.isInTransition=0,this.initiated=0,this.endTime=a.getTime(),!this.resetPosition(this.options.bounceTime)){if(this.scrollTo(o,s),!this.moved)return this.options.tap&&a.tap(t,this.options.tap),this.options.click&&a.click(t),void this._execEvent("scrollCancel");if(this._events.flick&&200>r&&100>l&&100>h)return void this._execEvent("flick");if(this.options.momentum&&300>r&&(e=this.hasHorizontalScroll?a.momentum(this.x,this.startX,r,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:o,duration:0},n=this.hasVerticalScroll?a.momentum(this.y,this.startY,r,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:s,duration:0},o=e.destination,s=n.destination,c=i.max(e.duration,n.duration),this.isInTransition=1),this.options.snap){var d=this._nearestSnap(o,s);this.currentPage=d,c=this.options.snapSpeed||i.max(i.max(i.min(i.abs(o-d.x),1e3),i.min(i.abs(s-d.y),1e3)),300),o=d.x,s=d.y,this.directionX=0,this.directionY=0,u=this.options.bounceEasing}return o!=this.x||s!=this.y?((o>0||o<this.maxScrollX||s>0||s<this.maxScrollY)&&(u=a.ease.quadratic),void this.scrollTo(o,s,c,u)):void this._execEvent("scrollEnd")}}},_resize:function(){var t=this;clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.refresh()},this.options.resizePolling)},resetPosition:function(t){var e=this.x,i=this.y;return t=t||0,!this.hasHorizontalScroll||this.x>0?e=0:this.x<this.maxScrollX&&(e=this.maxScrollX),!this.hasVerticalScroll||this.y>0?i=0:this.y<this.maxScrollY&&(i=this.maxScrollY),(e!=this.x||i!=this.y)&&(this.scrollTo(e,i,t,this.options.bounceEasing),!0)},disable:function(){this.enabled=!1},enable:function(){this.enabled=!0},refresh:function(){this.wrapper.offsetHeight,this.wrapperWidth=this.wrapper.clientWidth,this.wrapperHeight=this.wrapper.clientHeight,this.scrollerWidth=this.scroller.offsetWidth,this.scrollerHeight=this.scroller.offsetHeight,this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.maxScrollY=this.wrapperHeight-this.scrollerHeight,this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<0,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<0,this.hasHorizontalScroll||(this.maxScrollX=0,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=0,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=a.offset(this.wrapper),this._execEvent("refresh"),this.resetPosition()},on:function(t,e){this._events[t]||(this._events[t]=[]),this._events[t].push(e)},off:function(t,e){if(this._events[t]){var i=this._events[t].indexOf(e);i>-1&&this._events[t].splice(i,1)}},_execEvent:function(t){if(this._events[t]){var e=0,i=this._events[t].length;if(i)for(;i>e;e++)this._events[t][e].apply(this,[].slice.call(arguments,1))}},scrollBy:function(t,e,i,n){t=this.x+t,e=this.y+e,i=i||0,this.scrollTo(t,e,i,n)},scrollTo:function(t,e,i,n){n=n||a.ease.circular,this.isInTransition=this.options.useTransition&&i>0,!i||this.options.useTransition&&n.style?(this._transitionTimingFunction(n.style),this._transitionTime(i),this._translate(t,e)):this._animate(t,e,i,n.fn)},scrollToElement:function(t,e,n,r,o){if(t=t.nodeType?t:this.scroller.querySelector(t)){var s=a.offset(t);s.left-=this.wrapperOffset.left,s.top-=this.wrapperOffset.top,!0===n&&(n=i.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===r&&(r=i.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),s.left-=n||0,s.top-=r||0,s.left=s.left>0?0:s.left<this.maxScrollX?this.maxScrollX:s.left,s.top=s.top>0?0:s.top<this.maxScrollY?this.maxScrollY:s.top,e=null==e||"auto"===e?i.max(i.abs(this.x-s.left),i.abs(this.y-s.top)):e,this.scrollTo(s.left,s.top,e,o)}},_transitionTime:function(t){if(t=t||0,this.scrollerStyle[a.style.transitionDuration]=t+"ms",!t&&a.isBadAndroid&&(this.scrollerStyle[a.style.transitionDuration]="0.001s"),this.indicators)for(var e=this.indicators.length;e--;)this.indicators[e].transitionTime(t)},_transitionTimingFunction:function(t){if(this.scrollerStyle[a.style.transitionTimingFunction]=t,this.indicators)for(var e=this.indicators.length;e--;)this.indicators[e].transitionTimingFunction(t)},_translate:function(t,e){if(this.options.useTransform?this.scrollerStyle[a.style.transform]="translate("+t+"px,"+e+"px)"+this.translateZ:(t=i.round(t),e=i.round(e),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=e+"px"),this.x=t,this.y=e,this.indicators)for(var n=this.indicators.length;n--;)this.indicators[n].updatePosition()},_initEvents:function(e){var i=e?a.removeEvent:a.addEvent,n=this.options.bindToWrapper?this.wrapper:t;i(t,"orientationchange",this),i(t,"resize",this),this.options.click&&i(this.wrapper,"click",this,!0),this.options.disableMouse||(i(this.wrapper,"mousedown",this),i(n,"mousemove",this),i(n,"mousecancel",this),i(n,"mouseup",this)),a.hasPointer&&!this.options.disablePointer&&(i(this.wrapper,"MSPointerDown",this),i(n,"MSPointerMove",this),i(n,"MSPointerCancel",this),i(n,"MSPointerUp",this)),a.hasTouch&&!this.options.disableTouch&&(i(this.wrapper,"touchstart",this),i(n,"touchmove",this),i(n,"touchcancel",this),i(n,"touchend",this)),i(this.scroller,"transitionend",this),i(this.scroller,"webkitTransitionEnd",this),i(this.scroller,"oTransitionEnd",this),i(this.scroller,"MSTransitionEnd",this)},getComputedPosition:function(){var e,i,n=t.getComputedStyle(this.scroller,null);return this.options.useTransform?(e=+((n=n[a.style.transform].split(")")[0].split(", "))[12]||n[4]),i=+(n[13]||n[5])):(e=+n.left.replace(/[^-\d.]/g,""),i=+n.top.replace(/[^-\d.]/g,"")),{x:e,y:i}},_initIndicators:function(){function t(t){for(var e=a.indicators.length;e--;)t.call(a.indicators[e])}var e,i=this.options.interactiveScrollbars,n="string"!=typeof this.options.scrollbars,s=[],a=this;this.indicators=[],this.options.scrollbars&&(this.options.scrollY&&(e={el:r("v",i,this.options.scrollbars),interactive:i,defaultScrollbars:!0,customStyle:n,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenX:!1},this.wrapper.appendChild(e.el),s.push(e)),this.options.scrollX&&(e={el:r("h",i,this.options.scrollbars),interactive:i,defaultScrollbars:!0,customStyle:n,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenY:!1},this.wrapper.appendChild(e.el),s.push(e))),this.options.indicators&&(s=s.concat(this.options.indicators));for(var l=s.length;l--;)this.indicators.push(new o(this,s[l]));this.options.fadeScrollbars&&(this.on("scrollEnd",function(){t(function(){this.fade()})}),this.on("scrollCancel",function(){t(function(){this.fade()})}),this.on("scrollStart",function(){t(function(){this.fade(1)})}),this.on("beforeScrollStart",function(){t(function(){this.fade(1,!0)})})),this.on("refresh",function(){t(function(){this.refresh()})}),this.on("destroy",function(){t(function(){this.destroy()}),delete this.indicators})},_initWheel:function(){a.addEvent(this.wrapper,"wheel",this),a.addEvent(this.wrapper,"mousewheel",this),a.addEvent(this.wrapper,"DOMMouseScroll",this),this.on("destroy",function(){a.removeEvent(this.wrapper,"wheel",this),a.removeEvent(this.wrapper,"mousewheel",this),a.removeEvent(this.wrapper,"DOMMouseScroll",this)})},_wheel:function(t){if(this.enabled){t.preventDefault(),t.stopPropagation();var e,n,r,o,s=this;if(void 0===this.wheelTimeout&&s._execEvent("scrollStart"),clearTimeout(this.wheelTimeout),this.wheelTimeout=setTimeout(function(){s._execEvent("scrollEnd"),s.wheelTimeout=void 0},400),"deltaX"in t)e=-t.deltaX,n=-t.deltaY;else if("wheelDeltaX"in t)e=t.wheelDeltaX/120*this.options.mouseWheelSpeed,n=t.wheelDeltaY/120*this.options.mouseWheelSpeed;else if("wheelDelta"in t)e=n=t.wheelDelta/120*this.options.mouseWheelSpeed;else{if(!("detail"in t))return;e=n=-t.detail/3*this.options.mouseWheelSpeed}if(e*=this.options.invertWheelDirection,n*=this.options.invertWheelDirection,this.hasVerticalScroll||(e=n,n=0),this.options.snap)return r=this.currentPage.pageX,o=this.currentPage.pageY,e>0?r--:0>e&&r++,n>0?o--:0>n&&o++,void this.goToPage(r,o);r=this.x+i.round(this.hasHorizontalScroll?e:0),o=this.y+i.round(this.hasVerticalScroll?n:0),r>0?r=0:r<this.maxScrollX&&(r=this.maxScrollX),o>0?o=0:o<this.maxScrollY&&(o=this.maxScrollY),this.scrollTo(r,o,0)}},_initSnap:function(){this.currentPage={},"string"==typeof this.options.snap&&(this.options.snap=this.scroller.querySelectorAll(this.options.snap)),this.on("refresh",function(){var t,e,n,r,o,s,a=0,l=0,h=0,c=this.options.snapStepX||this.wrapperWidth,u=this.options.snapStepY||this.wrapperHeight;if(this.pages=[],this.wrapperWidth&&this.wrapperHeight&&this.scrollerWidth&&this.scrollerHeight){if(!0===this.options.snap)for(n=i.round(c/2),r=i.round(u/2);h>-this.scrollerWidth;){for(this.pages[a]=[],t=0,o=0;o>-this.scrollerHeight;)this.pages[a][t]={x:i.max(h,this.maxScrollX),y:i.max(o,this.maxScrollY),width:c,height:u,cx:h-n,cy:o-r},o-=u,t++;h-=c,a++}else for(t=(s=this.options.snap).length,e=-1;t>a;a++)(0===a||s[a].offsetLeft<=s[a-1].offsetLeft)&&(l=0,e++),this.pages[l]||(this.pages[l]=[]),h=i.max(-s[a].offsetLeft,this.maxScrollX),o=i.max(-s[a].offsetTop,this.maxScrollY),n=h-i.round(s[a].offsetWidth/2),r=o-i.round(s[a].offsetHeight/2),this.pages[l][e]={x:h,y:o,width:s[a].offsetWidth,height:s[a].offsetHeight,cx:n,cy:r},h>this.maxScrollX&&l++;this.goToPage(this.currentPage.pageX||0,this.currentPage.pageY||0,0),0==this.options.snapThreshold%1?(this.snapThresholdX=this.options.snapThreshold,this.snapThresholdY=this.options.snapThreshold):(this.snapThresholdX=i.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width*this.options.snapThreshold),this.snapThresholdY=i.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height*this.options.snapThreshold))}}),this.on("flick",function(){var t=this.options.snapSpeed||i.max(i.max(i.min(i.abs(this.x-this.startX),1e3),i.min(i.abs(this.y-this.startY),1e3)),300);this.goToPage(this.currentPage.pageX+this.directionX,this.currentPage.pageY+this.directionY,t)})},_nearestSnap:function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var n=0,r=this.pages.length,o=0;if(i.abs(t-this.absStartX)<this.snapThresholdX&&i.abs(e-this.absStartY)<this.snapThresholdY)return this.currentPage;for(t>0?t=0:t<this.maxScrollX&&(t=this.maxScrollX),e>0?e=0:e<this.maxScrollY&&(e=this.maxScrollY);r>n;n++)if(t>=this.pages[n][0].cx){t=this.pages[n][0].x;break}for(r=this.pages[n].length;r>o;o++)if(e>=this.pages[0][o].cy){e=this.pages[0][o].y;break}return n==this.currentPage.pageX&&(0>(n+=this.directionX)?n=0:n>=this.pages.length&&(n=this.pages.length-1),t=this.pages[n][0].x),o==this.currentPage.pageY&&(0>(o+=this.directionY)?o=0:o>=this.pages[0].length&&(o=this.pages[0].length-1),e=this.pages[0][o].y),{x:t,y:e,pageX:n,pageY:o}},goToPage:function(t,e,n,r){r=r||this.options.bounceEasing,t>=this.pages.length?t=this.pages.length-1:0>t&&(t=0),e>=this.pages[t].length?e=this.pages[t].length-1:0>e&&(e=0);var o=this.pages[t][e].x,s=this.pages[t][e].y;n=void 0===n?this.options.snapSpeed||i.max(i.max(i.min(i.abs(o-this.x),1e3),i.min(i.abs(s-this.y),1e3)),300):n,this.currentPage={x:o,y:s,pageX:t,pageY:e},this.scrollTo(o,s,n,r)},next:function(t,e){var i=this.currentPage.pageX,n=this.currentPage.pageY;++i>=this.pages.length&&this.hasVerticalScroll&&(i=0,n++),this.goToPage(i,n,t,e)},prev:function(t,e){var i=this.currentPage.pageX,n=this.currentPage.pageY;0>--i&&this.hasVerticalScroll&&(i=0,n--),this.goToPage(i,n,t,e)},_initKeys:function(){var e,i={pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40};if("object"==typeof this.options.keyBindings)for(e in this.options.keyBindings)"string"==typeof this.options.keyBindings[e]&&(this.options.keyBindings[e]=this.options.keyBindings[e].toUpperCase().charCodeAt(0));else this.options.keyBindings={};for(e in i)this.options.keyBindings[e]=this.options.keyBindings[e]||i[e];a.addEvent(t,"keydown",this),this.on("destroy",function(){a.removeEvent(t,"keydown",this)})},_key:function(t){if(this.enabled){var e,n=this.options.snap,r=n?this.currentPage.pageX:this.x,o=n?this.currentPage.pageY:this.y,s=a.getTime(),l=this.keyTime||0;switch(this.options.useTransition&&this.isInTransition&&(e=this.getComputedPosition(),this._translate(i.round(e.x),i.round(e.y)),this.isInTransition=!1),this.keyAcceleration=200>s-l?i.min(this.keyAcceleration+.25,50):0,t.keyCode){case this.options.keyBindings.pageUp:this.hasHorizontalScroll&&!this.hasVerticalScroll?r+=n?1:this.wrapperWidth:o+=n?1:this.wrapperHeight;break;case this.options.keyBindings.pageDown:this.hasHorizontalScroll&&!this.hasVerticalScroll?r-=n?1:this.wrapperWidth:o-=n?1:this.wrapperHeight;break;case this.options.keyBindings.end:r=n?this.pages.length-1:this.maxScrollX,o=n?this.pages[0].length-1:this.maxScrollY;break;case this.options.keyBindings.home:r=0,o=0;break;case this.options.keyBindings.left:r+=n?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.up:o+=n?1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.right:r-=n?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.down:o-=n?1:5+this.keyAcceleration>>0;break;default:return}if(n)return void this.goToPage(r,o);r>0?(r=0,this.keyAcceleration=0):r<this.maxScrollX&&(r=this.maxScrollX,this.keyAcceleration=0),o>0?(o=0,this.keyAcceleration=0):o<this.maxScrollY&&(o=this.maxScrollY,this.keyAcceleration=0),this.scrollTo(r,o,0),this.keyTime=s}},_animate:function(t,e,i,n){var r=this,o=this.x,l=this.y,h=a.getTime(),c=h+i;this.isAnimating=!0,function u(){var d,p,f,g=a.getTime();return g>=c?(r.isAnimating=!1,r._translate(t,e),void(r.resetPosition(r.options.bounceTime)||r._execEvent("scrollEnd"))):(f=n(g=(g-h)/i),d=(t-o)*f+o,p=(e-l)*f+l,r._translate(d,p),void(r.isAnimating&&s(u)))}()},handleEvent:function(t){switch(t.type){case"touchstart":case"MSPointerDown":case"mousedown":this._start(t);break;case"touchmove":case"MSPointerMove":case"mousemove":this._move(t);break;case"touchend":case"MSPointerUp":case"mouseup":case"touchcancel":case"MSPointerCancel":case"mousecancel":this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._wheel(t);break;case"keydown":this._key(t);break;case"click":t._constructed||(t.preventDefault(),t.stopPropagation())}}},o.prototype={handleEvent:function(t){switch(t.type){case"touchstart":case"MSPointerDown":case"mousedown":this._start(t);break;case"touchmove":case"MSPointerMove":case"mousemove":this._move(t);break;case"touchend":case"MSPointerUp":case"mouseup":case"touchcancel":case"MSPointerCancel":case"mousecancel":this._end(t)}},destroy:function(){this.options.interactive&&(a.removeEvent(this.indicator,"touchstart",this),a.removeEvent(this.indicator,"MSPointerDown",this),a.removeEvent(this.indicator,"mousedown",this),a.removeEvent(t,"touchmove",this),a.removeEvent(t,"MSPointerMove",this),a.removeEvent(t,"mousemove",this),a.removeEvent(t,"touchend",this),a.removeEvent(t,"MSPointerUp",this),a.removeEvent(t,"mouseup",this)),this.options.defaultScrollbars&&this.wrapper.parentNode.removeChild(this.wrapper)},_start:function(e){var i=e.touches?e.touches[0]:e;e.preventDefault(),e.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=i.pageX,this.lastPointY=i.pageY,this.startTime=a.getTime(),this.options.disableTouch||a.addEvent(t,"touchmove",this),this.options.disablePointer||a.addEvent(t,"MSPointerMove",this),this.options.disableMouse||a.addEvent(t,"mousemove",this),this.scroller._execEvent("beforeScrollStart")},_move:function(t){var e,i,n,r,o=t.touches?t.touches[0]:t;a.getTime(),this.moved||this.scroller._execEvent("scrollStart"),this.moved=!0,e=o.pageX-this.lastPointX,this.lastPointX=o.pageX,i=o.pageY-this.lastPointY,this.lastPointY=o.pageY,n=this.x+e,r=this.y+i,this._pos(n,r),t.preventDefault(),t.stopPropagation()},_end:function(e){if(this.initiated){if(this.initiated=!1,e.preventDefault(),e.stopPropagation(),a.removeEvent(t,"touchmove",this),a.removeEvent(t,"MSPointerMove",this),a.removeEvent(t,"mousemove",this),this.scroller.options.snap){var n=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),r=this.options.snapSpeed||i.max(i.max(i.min(i.abs(this.scroller.x-n.x),1e3),i.min(i.abs(this.scroller.y-n.y),1e3)),300);(this.scroller.x!=n.x||this.scroller.y!=n.y)&&(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=n,this.scroller.scrollTo(n.x,n.y,r,this.scroller.options.bounceEasing))}this.moved&&this.scroller._execEvent("scrollEnd")}},transitionTime:function(t){t=t||0,this.indicatorStyle[a.style.transitionDuration]=t+"ms",!t&&a.isBadAndroid&&(this.indicatorStyle[a.style.transitionDuration]="0.001s")},transitionTimingFunction:function(t){this.indicatorStyle[a.style.transitionTimingFunction]=t},refresh:function(){this.transitionTime(),this.indicatorStyle.display=this.options.listenX&&!this.options.listenY?this.scroller.hasHorizontalScroll?"block":"none":this.options.listenY&&!this.options.listenX?this.scroller.hasVerticalScroll?"block":"none":this.scroller.hasHorizontalScroll||this.scroller.hasVerticalScroll?"block":"none",this.scroller.hasHorizontalScroll&&this.scroller.hasVerticalScroll?(a.addClass(this.wrapper,"iScrollBothScrollbars"),a.removeClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="8px":this.wrapper.style.bottom="8px")):(a.removeClass(this.wrapper,"iScrollBothScrollbars"),a.addClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="2px":this.wrapper.style.bottom="2px")),this.wrapper.offsetHeight,this.options.listenX&&(this.wrapperWidth=this.wrapper.clientWidth,this.options.resize?(this.indicatorWidth=i.max(i.round(this.wrapperWidth*this.wrapperWidth/(this.scroller.scrollerWidth||this.wrapperWidth||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px"):this.indicatorWidth=this.indicator.clientWidth,this.maxPosX=this.wrapperWidth-this.indicatorWidth,"clip"==this.options.shrink?(this.minBoundaryX=8-this.indicatorWidth,this.maxBoundaryX=this.wrapperWidth-8):(this.minBoundaryX=0,this.maxBoundaryX=this.maxPosX),this.sizeRatioX=this.options.speedRatioX||this.scroller.maxScrollX&&this.maxPosX/this.scroller.maxScrollX),this.options.listenY&&(this.wrapperHeight=this.wrapper.clientHeight,this.options.resize?(this.indicatorHeight=i.max(i.round(this.wrapperHeight*this.wrapperHeight/(this.scroller.scrollerHeight||this.wrapperHeight||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px"):this.indicatorHeight=this.indicator.clientHeight,this.maxPosY=this.wrapperHeight-this.indicatorHeight,"clip"==this.options.shrink?(this.minBoundaryY=8-this.indicatorHeight,this.maxBoundaryY=this.wrapperHeight-8):(this.minBoundaryY=0,this.maxBoundaryY=this.maxPosY),this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.sizeRatioY=this.options.speedRatioY||this.scroller.maxScrollY&&this.maxPosY/this.scroller.maxScrollY),this.updatePosition()},updatePosition:function(){var t=this.options.listenX&&i.round(this.sizeRatioX*this.scroller.x)||0,e=this.options.listenY&&i.round(this.sizeRatioY*this.scroller.y)||0;this.options.ignoreBoundaries||(t<this.minBoundaryX?("scale"==this.options.shrink&&(this.width=i.max(this.indicatorWidth+t,8),this.indicatorStyle.width=this.width+"px"),t=this.minBoundaryX):t>this.maxBoundaryX?"scale"==this.options.shrink?(this.width=i.max(this.indicatorWidth-(t-this.maxPosX),8),this.indicatorStyle.width=this.width+"px",t=this.maxPosX+this.indicatorWidth-this.width):t=this.maxBoundaryX:"scale"==this.options.shrink&&this.width!=this.indicatorWidth&&(this.width=this.indicatorWidth,this.indicatorStyle.width=this.width+"px"),e<this.minBoundaryY?("scale"==this.options.shrink&&(this.height=i.max(this.indicatorHeight+3*e,8),this.indicatorStyle.height=this.height+"px"),e=this.minBoundaryY):e>this.maxBoundaryY?"scale"==this.options.shrink?(this.height=i.max(this.indicatorHeight-3*(e-this.maxPosY),8),this.indicatorStyle.height=this.height+"px",e=this.maxPosY+this.indicatorHeight-this.height):e=this.maxBoundaryY:"scale"==this.options.shrink&&this.height!=this.indicatorHeight&&(this.height=this.indicatorHeight,this.indicatorStyle.height=this.height+"px")),this.x=t,this.y=e,this.scroller.options.useTransform?this.indicatorStyle[a.style.transform]="translate("+t+"px,"+e+"px)"+this.scroller.translateZ:(this.indicatorStyle.left=t+"px",this.indicatorStyle.top=e+"px")},_pos:function(t,e){0>t?t=0:t>this.maxPosX&&(t=this.maxPosX),0>e?e=0:e>this.maxPosY&&(e=this.maxPosY),t=this.options.listenX?i.round(t/this.sizeRatioX):this.scroller.x,e=this.options.listenY?i.round(e/this.sizeRatioY):this.scroller.y,this.scroller.scrollTo(t,e)},fade:function(t,e){if(!e||this.visible){clearTimeout(this.fadeTimeout),this.fadeTimeout=null;var i=t?250:500,n=t?0:300;t=t?"1":"0",this.wrapperStyle[a.style.transitionDuration]=i+"ms",this.fadeTimeout=setTimeout(function(t){this.wrapperStyle.opacity=t,this.visible=+t}.bind(this,t),n)}}},n.utils=a,"undefined"!=typeof module&&module.exports?module.exports=n:t.IScroll=n}(window,document,Math);   