influxdb/shared/admin/javascripts/interfaces/default.js

37 lines
359 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

/*!
* jQuery JavaScript Library v2.0.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:30Z
*/
!function(e,t){function n(e){var t=e.length,n=ot.type(e);return ot.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=dt[e]={};return ot.each(e.match(st)||[],function(e,n){t[n]=!0}),t}function i(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=ot.expando+Math.random()}function o(e,n,r){var i;if(r===t&&1===e.nodeType)if(i="data-"+n.replace(yt,"-$1").toLowerCase(),r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:vt.test(r)?JSON.parse(r):r}catch(o){}gt.set(e,n,r)}else r=t;return r}function a(){return!0}function s(){return!1}function u(){try{return W.activeElement}catch(e){}}function c(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function l(e,t,n){if(ot.isFunction(t))return ot.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return ot.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(Mt.test(t))return ot.filter(t,e,n);t=ot.filter(t,e)}return ot.grep(e,function(e){return tt.call(t,e)>=0!==n})}function f(e,t){return ot.nodeName(e,"table")&&ot.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function p(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function h(e){var t=Ft.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function d(e,t){for(var n=e.length,r=0;n>r;r++)mt.set(e[r],"globalEval",!t||mt.get(t[r],"globalEval"))}function g(e,t){var n,r,i,o,a,s,u,c;if(1===t.nodeType){if(mt.hasData(e)&&(o=mt.access(e),a=mt.set(t,o),c=o.events)){delete a.handle,a.events={};for(i in c)for(n=0,r=c[i].length;r>n;n++)ot.event.add(t,i,c[i][n])}gt.hasData(e)&&(s=gt.access(e),u=ot.extend({},s),gt.set(t,u))}}function m(e,n){var r=e.getElementsByTagName?e.getElementsByTagName(n||"*"):e.querySelectorAll?e.querySelectorAll(n||"*"):[];return n===t||n&&ot.nodeName(e,n)?ot.merge([e],r):r}function v(e,t){var n=t.nodeName.toLowerCase();"input"===n&&qt.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function y(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Kt.length;i--;)if(t=Kt[i]+n,t in e)return t;return r}function x(e,t){return e=t||e,"none"===ot.css(e,"display")||!ot.contains(e.ownerDocument,e)}function b(t){return e.getComputedStyle(t,null)}function $(e,t){for(var n,r,i,o=[],a=0,s=e.length;s>a;a++)r=e[a],r.style&&(o[a]=mt.get(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&x(r)&&(o[a]=mt.access(r,"olddisplay",k(r.nodeName)))):o[a]||(i=x(r),(n&&"none"!==n||!i)&&mt.set(r,"olddisplay",i?n:ot.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function w(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function C(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=ot.css(e,n+Gt[o],!0,i)),r?("content"===n&&(a-=ot.css(e,"padding"+Gt[o],!0,i)),"margin"!==n&&(a-=ot.css(e,"border"+Gt[o]+"Width",!0,i))):(a+=ot.css(e,"padding"+Gt[o],!0,i),"padding"!==n&&(a+=ot.css(e,"border"+Gt[o]+"Width",!0,i)));return a}function S(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=b(e),a=ot.support.boxSizing&&"border-box"===ot.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Ut(e,t,o),(0>i||null==i)&&(i=e.style[t]),Xt.test(i))return i;r=a&&(ot.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+C(e,t,n||(a?"border":"content"),r,o)+"px"}function k(e){var t=W,n=Qt[e];return n||(n=T(e,t),"none"!==n&&n||(zt=(zt||ot("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(zt[0].contentWindow||zt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=T(e,t),zt.detach()),Qt[e]=n),n}function T(e,t){var n=ot(t.createElement(e)).appendTo(t.body),r=ot.css(n[0],"display");return n.remove(),r}function E(e,t,n,r){var i;if(ot.isArray(t))ot.each(t,function(t,i){n||tn.test(e)?r(e,i):E(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==ot.type(t))r(e,t);else for(i in t)E(e+"["+i+"]",t[i],n,r)}function M(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(st)||[];if(ot.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function A(e,t,n,r){function i(s){var u;return o[s]=!0,ot.each(e[s]||[],function(e,s){var c=s(t,n,r);return"string"!=typeof c||a||o[c]?a?!(u=c):void 0:(t.dataTypes.unshift(c),i(c),!1)}),u}var o={},a=e===xn;return i(t.dataTypes[0])||!o["*"]&&i("*")}function N(e,n){var r,i,o=ot.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((o[r]?e:i||(i={}))[r]=n[r]);return i&&ot.extend(!0,e,i),e}function D(e,n,r){for(var i,o,a,s,u=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),i===t&&(i=e.mimeType||n.getResponseHeader("Content-Type"));if(i)for(o in u)if(u[o]&&u[o].test(i)){c.unshift(o);break}if(c[0]in r)a=c[0];else{for(o in r){if(!c[0]||e.converters[o+" "+c[0]]){a=o;break}s||(s=o)}a=a||s}return a?(a!==c[0]&&c.unshift(a),r[a]):void 0}function _(e,t,n,r){var i,o,a,s,u,c={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(a=c[u+" "+o]||c["* "+o],!a)for(i in c)if(s=i.split(" "),s[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]])){a===!0?a=c[i]:c[i]!==!0&&(o=s[0],l.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}function j(){return setTimeout(function(){Mn=t}),Mn=ot.now()}function O(e,t,n){for(var r,i=(On[t]||[]).concat(On["*"]),o=0,a=i.length;a>o;o++)if(r=i[o].call(n,t,e))return r}function P(e,t,n){var r,i,o=0,a=jn.length,s=ot.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=Mn||j(),n=Math.max(0,c.startTime+c.duration-t),r=n/c.duration||0,o=1-r,a=0,u=c.tweens.length;u>a;a++)c.tweens[a].run(o);return s.notifyWith(e,[c,o,n]),1>o&&u?n:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:ot.extend({},t),opts:ot.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Mn||j(),duration:n.duration,tweens:[],createTween:function(t,n){var r=ot.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)c.tweens[n].run(1);return t?s.resolveWith(e,[c,t]):s.rejectWith(e,[c,t]),this}}),l=c.props;for(q(l,c.opts.specialEasing);a>o;o++)if(r=jn[o].call(c,e,l,c.opts))return r;return ot.map(l,O,c),ot.isFunction(c.opts.start)&&c.opts.start.call(e,c),ot.fx.timer(ot.extend(u,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function q(e,t){var n,r,i,o,a;for(n in e)if(r=ot.camelCase(n),i=t[r],o=e[n],ot.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=ot.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function L(e,n,r){var i,o,a,s,u,c,l=this,f={},p=e.style,h=e.nodeType&&x(e),d=mt.get(e,"fxshow");r.queue||(u=ot._queueHooks(e,"fx"),null==u.unqueued&&(u.unqueued=0,c=u.empty.fire,u.empty.fire=function(){u.unqueued||c()}),u.unqueued++,l.always(function(){l.always(function(){u.unqueued--,ot.queue(e,"fx").length||u.empty.fire()})})),1===e.nodeType&&("height"in n||"width"in n)&&(r.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===ot.css(e,"display")&&"none"===ot.css(e,"float")&&(p.display="inline-block")),r.overflow&&(p.overflow="hidden",l.always(function(){p.overflow=r.overflow[0],p.overflowX=r.overflow[1],p.overflowY=r.overflow[2]}));for(i in n)if(o=n[i],Nn.exec(o)){if(delete n[i],a=a||"toggle"===o,o===(h?"hide":"show")){if("show"!==o||!d||d[i]===t)continue;h=!0}f[i]=d&&d[i]||ot.style(e,i)}if(!ot.isEmptyObject(f)){d?"hidden"in d&&(h=d.hidden):d=mt.access(e,"fxshow",{}),a&&(d.hidden=!h),h?ot(e).show():l.done(function(){ot(e).hide()}),l.done(function(){var t;mt.remove(e,"fxshow");for(t in f)ot.style(e,t,f[t])});for(i in f)s=O(h?d[i]:0,i,l),i in d||(d[i]=s.start,h&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}}function H(e,t,n,r,i){return new H.prototype.init(e,t,n,r,i)}function F(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Gt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function I(e){return ot.isWindow(e)?e:9===e.nodeType&&e.defaultView}var R,U,z=typeof t,B=e.location,W=e.document,V=W.documentElement,X=e.jQuery,Y=e.$,Q={},Z=[],J="2.0.3",G=Z.concat,K=Z.push,et=Z.slice,tt=Z.indexOf,nt=Q.toString,rt=Q.hasOwnProperty,it=J.trim,ot=function(e,t){return new ot.fn.init(e,t,R)},at=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,st=/\S+/g,ut=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ct=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,lt=/^-ms-/,ft=/-([\da-z])/gi,pt=function(e,t){return t.toUpperCase()},ht=function(){W.removeEventListener("DOMContentLoaded",ht,!1),e.removeEventListener("load",ht,!1),ot.ready()};ot.fn=ot.prototype={jquery:J,constructor:ot,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:ut.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof ot?n[0]:n,ot.merge(this,ot.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:W,!0)),ct.test(i[1])&&ot.isPlainObject(n))for(i in n)ot.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}return o=W.getElementById(i[2]),o&&o.parentNode&&(this.length=1,this[0]=o),this.context=W,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):ot.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),ot.makeArray(e,this))},selector:"",length:0,toArray:function(){return et.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=ot.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return ot.each(this,e,t)},ready:function(e){return ot.ready.promise().done(e),this},slice:function(){return this.pushStack(et.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(ot.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:K,sort:[].sort,splice:[].splice},ot.fn.init.prototype=ot.fn,ot.extend=ot.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},u=1,c=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[1]||{},u=2),"object"==typeof s||ot.isFunction(s)||(s={}),c===u&&(s=this,--u);c>u;u++)if(null!=(e=arguments[u]))for(n in e)r=s[n],i=e[n],s!==i&&(l&&i&&(ot.isPlainObject(i)||(o=ot.isArray(i)))?(o?(o=!1,a=r&&ot.isArray(r)?r:[]):a=r&&ot.isPlainObject(r)?r:{},s[n]=ot.extend(l,a,i)):i!==t&&(s[n]=i));return s},ot.extend({expando:"jQuery"+(J+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===ot&&(e.$=Y),t&&e.jQuery===ot&&(e.jQuery=X),ot},isReady:!1,readyWait:1,holdReady:function(e){e?ot.readyWait++:ot.ready(!0)},ready:function(e){(e===!0?--ot.readyWait:ot.isReady)||(ot.isReady=!0,e!==!0&&--ot.readyWait>0||(U.resolveWith(W,[ot]),ot.fn.trigger&&ot(W).trigger("ready").off("ready")))},isFunction:function(e){return"function"===ot.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?String(e):"object"==typeof e||"function"==typeof e?Q[nt.call(e)]||"object":typeof e},isPlainObject:function(e){if("object"!==ot.type(e)||e.nodeType||ot.isWindow(e))return!1;try{if(e.constructor&&!rt.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||W;var r=ct.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=ot.buildFragment([e],t,i),i&&ot(i).remove(),ot.merge([],r.childNodes))},parseJSON:JSON.parse,parseXML:function(e){var n,r;if(!e||"string"!=typeof e)return null;try{r=new DOMParser,n=r.parseFromString(e,"text/xml")}catch(i){n=t}return(!n||n.getElementsByTagName("parsererror").length)&&ot.error("Invalid XML: "+e),n},noop:function(){},globalEval:function(e){var t,n=eval;e=ot.trim(e),e&&(1===e.indexOf("use strict")?(t=W.createElement("script"),t.text=e,W.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(lt,"ms-").replace(ft,pt)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,r){var i,o=0,a=e.length,s=n(e);if(r){if(s)for(;a>o&&(i=t.apply(e[o],r),i!==!1);o++);else for(o in e)if(i=t.apply(e[o],r),i===!1)break}else if(s)for(;a>o&&(i=t.call(e[o],o,e[o]),i!==!1);o++);else for(o in e)if(i=t.call(e[o],o,e[o]),i===!1)break;return e},trim:function(e){return null==e?"":it.call(e)},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?ot.merge(r,"string"==typeof e?[e]:e):K.call(r,e)),r},inArray:function(e,t,n){return null==t?-1:tt.call(t,e,n)},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else for(;n[o]!==t;)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,r){var i,o=0,a=e.length,s=n(e),u=[];if(s)for(;a>o;o++)i=t(e[o],o,r),null!=i&&(u[u.length]=i);else for(o in e)i=t(e[o],o,r),null!=i&&(u[u.length]=i);return G.apply([],u)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(r=e[n],n=e,e=r),ot.isFunction(e)?(i=et.call(arguments,2),o=function(){return e.apply(n||this,i.concat(et.call(arguments)))},o.guid=e.guid=e.guid||ot.guid++,o):t},access:function(e,n,r,i,o,a,s){var u=0,c=e.length,l=null==r;if("object"===ot.type(r)){o=!0;for(u in r)ot.access(e,n,u,r[u],!0,a,s)}else if(i!==t&&(o=!0,ot.isFunction(i)||(s=!0),l&&(s?(n.call(e,i),n=null):(l=n,n=function(e,t,n){return l.call(ot(e),n)})),n))for(;c>u;u++)n(e[u],r,s?i:i.call(e[u],u,n(e[u],r)));return o?e:l?n.call(e):c?n(e[0],r):a},now:Date.now,swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),ot.ready.promise=function(t){return U||(U=ot.Deferred(),"complete"===W.readyState?setTimeout(ot.ready):(W.addEventListener("DOMContentLoaded",ht,!1),e.addEventListener("load",ht,!1))),U.promise(t)},ot.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){Q["[object "+t+"]"]=t.toLowerCase()}),R=ot(W),/*!
* Sizzle CSS Selector Engine v1.9.4-pre
* http://sizzlejs.com/
*
* Copyright 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-06-03
*/
function(e,t){function n(e,t,n,r){var i,o,a,s,u,c,l,f,d,g;if((t?t.ownerDocument||t:I)!==_&&D(t),t=t||_,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(O&&!r){if(i=xt.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&H(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return et.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&C.getElementsByClassName&&t.getElementsByClassName)return et.apply(n,t.getElementsByClassName(a)),n}if(C.qsa&&(!P||!P.test(e))){if(f=l=F,d=t,g=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(c=p(e),(l=t.getAttribute("id"))?f=l.replace(wt,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",u=c.length;u--;)c[u]=f+h(c[u]);d=ht.test(e)&&t.parentNode||t,g=c.join(",")}if(g)try{return et.apply(n,d.querySelectorAll(g)),n}catch(m){}finally{l||t.removeAttribute("id")}}}return $(e.replace(lt,"$1"),t,n,r)}function r(){function e(n,r){return t.push(n+=" ")>k.cacheLength&&delete e[t.shift()],e[n]=r}var t=[];return e}function i(e){return e[F]=!0,e}function o(e){var t=_.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function a(e,t){for(var n=e.split("|"),r=e.length;r--;)k.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||Q)-(~e.sourceIndex||Q);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function u(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function c(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return i(function(t){return t=+t,i(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function f(){}function p(e,t){var r,i,o,a,s,u,c,l=B[e+" "];if(l)return t?0:l.slice(0);for(s=e,u=[],c=k.preFilter;s;){(!r||(i=ft.exec(s)))&&(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=pt.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(lt," ")}),s=s.slice(r.length));for(a in k.filter)!(i=vt[a].exec(s))||c[a]&&!(i=c[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return t?s.length:s?n.error(e):B(e,u).slice(0)}function h(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function d(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=U++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,u,c,l=R+" "+o;if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i)if(c=t[F]||(t[F]={}),(u=c[r])&&u[0]===l){if((s=u[1])===!0||s===S)return s===!0}else if(u=c[r]=[l],u[1]=e(t,n,a)||S,u[1]===!0)return!0}}function g(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function m(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,c=null!=t;u>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),c&&t.push(s));return a}function v(e,t,n,r,o,a){return r&&!r[F]&&(r=v(r)),o&&!o[F]&&(o=v(o,a)),i(function(i,a,s,u){var c,l,f,p=[],h=[],d=a.length,g=i||b(t||"*",s.nodeType?[s]:s,[]),v=!e||!i&&t?g:m(g,p,e,s,u),y=n?o||(i?e:d||r)?[]:a:v;if(n&&n(v,y,s,u),r)for(c=m(y,h),r(c,[],s,u),l=c.length;l--;)(f=c[l])&&(y[h[l]]=!(v[h[l]]=f));if(i){if(o||e){if(o){for(c=[],l=y.length;l--;)(f=y[l])&&c.push(v[l]=f);o(null,y=[],c,u)}for(l=y.length;l--;)(f=y[l])&&(c=o?nt.call(i,f):p[l])>-1&&(i[c]=!(a[c]=f))}}else y=m(y===a?y.splice(d,y.length):y),o?o(null,a,y,u):et.apply(a,y)})}function y(e){for(var t,n,r,i=e.length,o=k.relative[e[0].type],a=o||k.relative[" "],s=o?1:0,u=d(function(e){return e===t},a,!0),c=d(function(e){return nt.call(t,e)>-1},a,!0),l=[function(e,n,r){return!o&&(r||n!==A)||((t=n).nodeType?u(e,n,r):c(e,n,r))}];i>s;s++)if(n=k.relative[e[s].type])l=[d(g(l),n)];else{if(n=k.filter[e[s].type].apply(null,e[s].matches),n[F]){for(r=++s;i>r&&!k.relative[e[r].type];r++);return v(s>1&&g(l),s>1&&h(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(lt,"$1"),n,r>s&&y(e.slice(s,r)),i>r&&y(e=e.slice(r)),i>r&&h(e))}l.push(n)}return g(l)}function x(e,t){var r=0,o=t.length>0,a=e.length>0,s=function(i,s,u,c,l){var f,p,h,d=[],g=0,v="0",y=i&&[],x=null!=l,b=A,$=i||a&&k.find.TAG("*",l&&s.parentNode||s),w=R+=null==b?1:Math.random()||.1;for(x&&(A=s!==_&&s,S=r);null!=(f=$[v]);v++){if(a&&f){for(p=0;h=e[p++];)if(h(f,s,u)){c.push(f);break}x&&(R=w,S=++r)}o&&((f=!h&&f)&&g--,i&&y.push(f))}if(g+=v,o&&v!==g){for(p=0;h=t[p++];)h(y,d,s,u);if(i){if(g>0)for(;v--;)y[v]||d[v]||(d[v]=G.call(c));d=m(d)}et.apply(c,d),x&&!i&&d.length>0&&g+t.length>1&&n.uniqueSort(c)}return x&&(R=w,A=b),y};return o?i(s):s}function b(e,t,r){for(var i=0,o=t.length;o>i;i++)n(e,t[i],r);return r}function $(e,t,n,r){var i,o,a,s,u,c=p(e);if(!r&&1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&C.getById&&9===t.nodeType&&O&&k.relative[o[1].type]){if(t=(k.find.ID(a.matches[0].replace(Ct,St),t)||[])[0],!t)return n;e=e.slice(o.shift().value.length)}for(i=vt.needsContext.test(e)?0:o.length;i--&&(a=o[i],!k.relative[s=a.type]);)if((u=k.find[s])&&(r=u(a.matches[0].replace(Ct,St),ht.test(o[0].type)&&t.parentNode||t))){if(o.splice(i,1),e=r.length&&h(o),!e)return et.apply(n,r),n;break}}return M(e,c)(r,t,!O,n,ht.test(e)),n}var w,C,S,k,T,E,M,A,N,D,_,j,O,P,q,L,H,F="sizzle"+-new Date,I=e.document,R=0,U=0,z=r(),B=r(),W=r(),V=!1,X=function(e,t){return e===t?(V=!0,0):0},Y=typeof t,Q=1<<31,Z={}.hasOwnProperty,J=[],G=J.pop,K=J.push,et=J.push,tt=J.slice,nt=J.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},rt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="[\\x20\\t\\r\\n\\f]",at="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",st=at.replace("w","w#"),ut="\\["+it+"*("+at+")"+it+"*(?:([*^$|!~]?=)"+it+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+st+")|)|)"+it+"*\\]",ct=":("+at+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+ut.replace(3,8)+")*)|.*)\\)|)",lt=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),ft=new RegExp("^"+it+"*,"+it+"*"),pt=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),ht=new RegExp(it+"*[+~]"),dt=new RegExp("="+it+"*([^\\]'\"]*)"+it+"*\\]","g"),gt=new RegExp(ct),mt=new RegExp("^"+st+"$"),vt={ID:new RegExp("^#("+at+")"),CLASS:new RegExp("^\\.("+at+")"),TAG:new RegExp("^("+at.replace("w","w*")+")"),ATTR:new RegExp("^"+ut),PSEUDO:new RegExp("^"+ct),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+rt+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},yt=/^[^{]+\{\s*\[native \w/,xt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/^(?:input|select|textarea|button)$/i,$t=/^h\d$/i,wt=/'|\\/g,Ct=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),St=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{et.apply(J=tt.call(I.childNodes),I.childNodes),J[I.childNodes.length].nodeType}catch(kt){et={apply:J.length?function(e,t){K.apply(e,tt.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}E=n.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},C=n.support={},D=n.setDocument=function(e){var t=e?e.ownerDocument||e:I,n=t.defaultView;return t!==_&&9===t.nodeType&&t.documentElement?(_=t,j=t.documentElement,O=!E(t),n&&n.attachEvent&&n!==n.top&&n.attachEvent("onbeforeunload",function(){D()}),C.attributes=o(function(e){return e.className="i",!e.getAttribute("className")}),C.getElementsByTagName=o(function(e){return e.appendChild(t.createComment("")),!e.getElementsByTagName("*").length}),C.getElementsByClassName=o(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),C.getById=o(function(e){return j.appendChild(e).id=F,!t.getElementsByName||!t.getElementsByName(F).length}),C.getById?(k.find.ID=function(e,t){if(typeof t.getElementById!==Y&&O){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},k.filter.ID=function(e){var t=e.replace(Ct,St);return function(e){return e.getAttribute("id")===t}}):(delete k.find.ID,k.filter.ID=function(e){var t=e.replace(Ct,St);return function(e){var n=typeof e.getAttributeNode!==Y&&e.getAttributeNode("id");return n&&n.value===t}}),k.find.TAG=C.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==Y?t.getElementsByTagName(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},k.find.CLASS=C.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==Y&&O?t.getElementsByClassName(e):void 0},q=[],P=[],(C.qsa=yt.test(t.querySelectorAll))&&(o(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||P.push("\\["+it+"*(?:value|"+rt+")"),e.querySelectorAll(":checked").length||P.push(":checked")}),o(function(e){var n=t.createElement("input");n.setAttribute("type","hidden"),e.appendChild(n).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&P.push("[*^$]="+it+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||P.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),P.push(",.*:")})),(C.matchesSelector=yt.test(L=j.webkitMatchesSelector||j.mozMatchesSelector||j.oMatchesSelector||j.msMatchesSelector))&&o(function(e){C.disconnectedMatch=L.call(e,"div"),L.call(e,"[s!='']:x"),q.push("!=",ct)}),P=P.length&&new RegExp(P.join("|")),q=q.length&&new RegExp(q.join("|")),H=yt.test(j.contains)||j.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},X=j.compareDocumentPosition?function(e,n){if(e===n)return V=!0,0;var r=n.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(n);return r?1&r||!C.sortDetached&&n.compareDocumentPosition(e)===r?e===t||H(I,e)?-1:n===t||H(I,n)?1:N?nt.call(N,e)-nt.call(N,n):0:4&r?-1:1:e.compareDocumentPosition?-1:1}:function(e,n){var r,i=0,o=e.parentNode,a=n.parentNode,u=[e],c=[n];if(e===n)return V=!0,0;if(!o||!a)return e===t?-1:n===t?1:o?-1:a?1:N?nt.call(N,e)-nt.call(N,n):0;if(o===a)return s(e,n);for(r=e;r=r.parentNode;)u.unshift(r);for(r=n;r=r.parentNode;)c.unshift(r);for(;u[i]===c[i];)i++;return i?s(u[i],c[i]):u[i]===I?-1:c[i]===I?1:0},t):_},n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,t){if((e.ownerDocument||e)!==_&&D(e),t=t.replace(dt,"='$1']"),!(!C.matchesSelector||!O||q&&q.test(t)||P&&P.test(t)))try{var r=L.call(e,t);if(r||C.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return n(t,_,null,[e]).length>0},n.contains=function(e,t){return(e.ownerDocument||e)!==_&&D(e),H(e,t)},n.attr=function(e,n){(e.ownerDocument||e)!==_&&D(e);var r=k.attrHandle[n.toLowerCase()],i=r&&Z.call(k.attrHandle,n.toLowerCase())?r(e,n,!O):t;return i===t?C.attributes||!O?e.getAttribute(n):(i=e.getAttributeNode(n))&&i.specified?i.value:null:i},n.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},n.uniqueSort=function(e){var t,n=[],r=0,i=0;if(V=!C.detectDuplicates,N=!C.sortStable&&e.slice(0),e.sort(X),V){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return e},T=n.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=T(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=T(t);return n},k=n.selectors={cacheLength:50,createPseudo:i,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Ct,St),e[3]=(e[4]||e[5]||"").replace(Ct,St),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||n.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&n.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return vt.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&gt.test(r)&&(n=p(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Ct,St).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+it+")"+e+"("+it+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==Y&&e.getAttribute("class")||"")})},ATTR:function(e,t,r){return function(i){var o=n.attr(i,e);return null==o?"!="===t:t?(o+="","="===t?o===r:"!="===t?o!==r:"^="===t?r&&0===o.indexOf(r):"*="===t?r&&o.indexOf(r)>-1:"$="===t?r&&o.slice(-r.length)===r:"~="===t?(" "+o+" ").indexOf(r)>-1:"|="===t?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var c,l,f,p,h,d,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!u&&!s;if(m){if(o){for(;g;){for(f=t;f=f[g];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;d=g="only"===e&&!d&&"nextSibling"}return!0}if(d=[a?m.firstChild:m.lastChild],a&&y){for(l=m[F]||(m[F]={}),c=l[e]||[],h=c[0]===R&&c[1],p=c[0]===R&&c[2],f=h&&m.childNodes[h];f=++h&&f&&f[g]||(p=h=0)||d.pop();)if(1===f.nodeType&&++p&&f===t){l[e]=[R,h,p];break}}else if(y&&(c=(t[F]||(t[F]={}))[e])&&c[0]===R)p=c[1];else for(;(f=++h&&f&&f[g]||(p=h=0)||d.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++p||(y&&((f[F]||(f[F]={}))[e]=[R,p]),f!==t)););return p-=i,p===r||0===p%r&&p/r>=0}}},PSEUDO:function(e,t){var r,o=k.pseudos[e]||k.setFilters[e.toLowerCase()]||n.error("unsupported pseudo: "+e);return o[F]?o(t):o.length>1?(r=[e,e,"",t],k.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,n){for(var r,i=o(e,t),a=i.length;a--;)r=nt.call(e,i[a]),e[r]=!(n[r]=i[a])}):function(e){return o(e,0,r)}):o}},pseudos:{not:i(function(e){var t=[],n=[],r=M(e.replace(lt,"$1"));return r[F]?i(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:i(function(e){return function(t){return n(e,t).length>0}}),contains:i(function(e){return function(t){return(t.textContent||t.innerText||T(t)).indexOf(e)>-1}}),lang:i(function(e){return mt.test(e||"")||n.error("unsupported lang: "+e),e=e.replace(Ct,St).toLowerCase(),function(t){var n;do if(n=O?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===j},focus:function(e){return e===_.activeElement&&(!_.hasFocus||_.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!k.pseudos.empty(e)},header:function(e){return $t.test(e.nodeName)},input:function(e){return bt.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[0>n?n+t:n]}),even:l(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},k.pseudos.nth=k.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})k.pseudos[w]=u(w);for(w in{submit:!0,reset:!0})k.pseudos[w]=c(w);f.prototype=k.filters=k.pseudos,k.setFilters=new f,M=n.compile=function(e,t){var n,r=[],i=[],o=W[e+" "];if(!o){for(t||(t=p(e)),n=t.length;n--;)o=y(t[n]),o[F]?r.push(o):i.push(o);o=W(e,x(i,r))}return o},C.sortStable=F.split("").sort(X).join("")===F,C.detectDuplicates=V,D(),C.sortDetached=o(function(e){return 1&e.compareDocumentPosition(_.createElement("div"))}),o(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||a("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),C.attributes&&o(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||a("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),o(function(e){return null==e.getAttribute("disabled")})||a(rt,function(e,t,n){var r;return n?void 0:(r=e.getAttributeNode(t))&&r.specified?r.value:e[t]===!0?t.toLowerCase():null}),ot.find=n,ot.expr=n.selectors,ot.expr[":"]=ot.expr.pseudos,ot.unique=n.uniqueSort,ot.text=n.getText,ot.isXMLDoc=n.isXML,ot.contains=n.contains}(e);var dt={};ot.Callbacks=function(e){e="string"==typeof e?dt[e]||r(e):ot.extend({},e);var n,i,o,a,s,u,c=[],l=!e.once&&[],f=function(t){for(n=e.memory&&t,i=!0,u=a||0,a=0,s=c.length,o=!0;c&&s>u;u++)if(c[u].apply(t[0],t[1])===!1&&e.stopOnFalse){n=!1;break}o=!1,c&&(l?l.length&&f(l.shift()):n?c=[]:p.disable())},p={add:function(){if(c){var t=c.length;!function r(t){ot.each(t,function(t,n){var i=ot.type(n);"function"===i?e.unique&&p.has(n)||c.push(n):n&&n.length&&"string"!==i&&r(n)})}(arguments),o?s=c.length:n&&(a=t,f(n))}return this},remove:function(){return c&&ot.each(arguments,function(e,t){for(var n;(n=ot.inArray(t,c,n))>-1;)c.splice(n,1),o&&(s>=n&&s--,u>=n&&u--)}),this},has:function(e){return e?ot.inArray(e,c)>-1:!(!c||!c.length)},empty:function(){return c=[],s=0,this},disable:function(){return c=l=n=t,this},disabled:function(){return!c},lock:function(){return l=t,n||p.disable(),this},locked:function(){return!l},fireWith:function(e,t){return!c||i&&!l||(t=t||[],t=[e,t.slice?t.slice():t],o?l.push(t):f(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},ot.extend({Deferred:function(e){var t=[["resolve","done",ot.Callbacks("once memory"),"resolved"],["reject","fail",ot.Callbacks("once memory"),"rejected"],["notify","progress",ot.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ot.Deferred(function(n){ot.each(t,function(t,o){var a=o[0],s=ot.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&ot.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?ot.extend(e,r):r}},i={};return r.pipe=r.then,ot.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=et.call(arguments),a=o.length,s=1!==a||e&&ot.isFunction(e.promise)?a:0,u=1===s?e:ot.Deferred(),c=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?et.call(arguments):i,r===t?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);a>i;i++)o[i]&&ot.isFunction(o[i].promise)?o[i].promise().done(c(i,r,o)).fail(u.reject).progress(c(i,n,t)):--s;return s||u.resolveWith(r,o),u.promise()}}),ot.support=function(t){var n=W.createElement("input"),r=W.createDocumentFragment(),i=W.createElement("div"),o=W.createElement("select"),a=o.appendChild(W.createElement("option"));return n.type?(n.type="checkbox",t.checkOn=""!==n.value,t.optSelected=a.selected,t.reliableMarginRight=!0,t.boxSizingReliable=!0,t.pixelPosition=!1,n.checked=!0,t.noCloneChecked=n.cloneNode(!0).checked,o.disabled=!0,t.optDisabled=!a.disabled,n=W.createElement("input"),n.value="t",n.type="radio",t.radioValue="t"===n.value,n.setAttribute("checked","t"),n.setAttribute("name","t"),r.appendChild(n),t.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,t.focusinBubbles="onfocusin"in e,i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===i.style.backgroundClip,ot(function(){var n,r,o="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",a=W.getElementsByTagName("body")[0];a&&(n=W.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",a.appendChild(n).appendChild(i),i.innerHTML="",i.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",ot.swap(a,null!=a.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===i.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(i,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(i,null)||{width:"4px"}).width,r=i.appendChild(W.createElement("div")),r.style.cssText=i.style.cssText=o,r.style.marginRight=r.style.width="0",i.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),a.removeChild(n))}),t):t}({});var gt,mt,vt=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,yt=/([A-Z])/g;i.uid=1,i.accepts=function(e){return e.nodeType?1===e.nodeType||9===e.nodeType:!0},i.prototype={key:function(e){if(!i.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=i.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,ot.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,i=this.key(e),o=this.cache[i];if("string"==typeof t)o[t]=n;else if(ot.isEmptyObject(o))ot.extend(this.cache[i],t);else for(r in t)o[r]=t[r];return o},get:function(e,n){var r=this.cache[this.key(e)];return n===t?r:r[n]},access:function(e,n,r){var i;return n===t||n&&"string"==typeof n&&r===t?(i=this.get(e,n),i!==t?i:this.get(e,ot.camelCase(n))):(this.set(e,n,r),r!==t?r:n)},remove:function(e,n){var r,i,o,a=this.key(e),s=this.cache[a];if(n===t)this.cache[a]={};else{ot.isArray(n)?i=n.concat(n.map(ot.camelCase)):(o=ot.camelCase(n),n in s?i=[n,o]:(i=o,i=i in s?[i]:i.match(st)||[])),r=i.length;for(;r--;)delete s[i[r]]}},hasData:function(e){return!ot.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}},gt=new i,mt=new i,ot.extend({acceptData:i.accepts,hasData:function(e){return gt.hasData(e)||mt.hasData(e)},data:function(e,t,n){return gt.access(e,t,n)},removeData:function(e,t){gt.remove(e,t)},_data:function(e,t,n){return mt.access(e,t,n)},_removeData:function(e,t){mt.remove(e,t)}}),ot.fn.extend({data:function(e,n){var r,i,a=this[0],s=0,u=null;if(e===t){if(this.length&&(u=gt.get(a),1===a.nodeType&&!mt.get(a,"hasDataAttrs"))){for(r=a.attributes;s<r.length;s++)i=r[s].name,0===i.indexOf("data-")&&(i=ot.camelCase(i.slice(5)),o(a,i,u[i]));mt.set(a,"hasDataAttrs",!0)}return u}return"object"==typeof e?this.each(function(){gt.set(this,e)}):ot.access(this,function(n){var r,i=ot.camelCase(e);if(a&&n===t){if(r=gt.get(a,e),r!==t)return r;if(r=gt.get(a,i),r!==t)return r;if(r=o(a,i,t),r!==t)return r}else this.each(function(){var r=gt.get(this,i);gt.set(this,i,n),-1!==e.indexOf("-")&&r!==t&&gt.set(this,e,n)})},null,n,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){gt.remove(this,e)})}}),ot.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=mt.get(e,t),n&&(!r||ot.isArray(n)?r=mt.access(e,t,ot.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=ot.queue(e,t),r=n.length,i=n.shift(),o=ot._queueHooks(e,t),a=function(){ot.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return mt.get(e,n)||mt.access(e,n,{empty:ot.Callbacks("once memory").add(function(){mt.remove(e,[t+"queue",n])})})}}),ot.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),arguments.length<r?ot.queue(this[0],e):n===t?this:this.each(function(){var t=ot.queue(this,e,n);ot._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&ot.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ot.dequeue(this,e)})},delay:function(e,t){return e=ot.fx?ot.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=ot.Deferred(),a=this,s=this.length,u=function(){--i||o.resolveWith(a,[a])};for("string"!=typeof e&&(n=e,e=t),e=e||"fx";s--;)r=mt.get(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(u));return u(),o.promise(n)}});var xt,bt,$t=/[\t\r\n\f]/g,wt=/\r/g,Ct=/^(?:input|select|textarea|button)$/i;ot.fn.extend({attr:function(e,t){return ot.access(this,ot.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ot.removeAttr(this,e)})},prop:function(e,t){return ot.access(this,ot.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[ot.propFix[e]||e]})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,u="string"==typeof e&&e;if(ot.isFunction(e))return this.each(function(t){ot(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(st)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace($t," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");n.className=ot.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,u=0===arguments.length||"string"==typeof e&&e;if(ot.isFunction(e))return this.each(function(t){ot(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(st)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace($t," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");n.className=e?ot.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):ot.isFunction(e)?this.each(function(n){ot(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var t,r=0,i=ot(this),o=e.match(st)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else(n===z||"boolean"===n)&&(this.className&&mt.set(this,"__className__",this.className),this.className=this.className||e===!1?"":mt.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace($t," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=ot.isFunction(e),this.each(function(r){var o;1===this.nodeType&&(o=i?e.call(this,r,ot(this).val()):e,null==o?o="":"number"==typeof o?o+="":ot.isArray(o)&&(o=ot.map(o,function(e){return null==e?"":e+""})),n=ot.valHooks[this.type]||ot.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&n.set(this,o,"value")!==t||(this.value=o))});if(o)return n=ot.valHooks[o.type]||ot.valHooks[o.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(o,"value"))!==t?r:(r=o.value,"string"==typeof r?r.replace(wt,""):null==r?"":r)}}}),ot.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,u=0>i?s:o?i:0;s>u;u++)if(n=r[u],!(!n.selected&&u!==i||(ot.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&ot.nodeName(n.parentNode,"optgroup"))){if(t=ot(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=ot.makeArray(t),a=i.length;a--;)r=i[a],(r.selected=ot.inArray(ot(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var i,o,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return typeof e.getAttribute===z?ot.prop(e,n,r):(1===a&&ot.isXMLDoc(e)||(n=n.toLowerCase(),i=ot.attrHooks[n]||(ot.expr.match.bool.test(n)?bt:xt)),r===t?i&&"get"in i&&null!==(o=i.get(e,n))?o:(o=ot.find.attr(e,n),null==o?t:o):null!==r?i&&"set"in i&&(o=i.set(e,r,n))!==t?o:(e.setAttribute(n,r+""),r):(ot.removeAttr(e,n),void 0))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(st);if(o&&1===e.nodeType)for(;n=o[i++];)r=ot.propFix[n]||n,ot.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!ot.support.radioValue&&"radio"===t&&ot.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!ot.isXMLDoc(e),a&&(n=ot.propFix[n]||n,o=ot.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||Ct.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),bt={set:function(e,t,n){return t===!1?ot.removeAttr(e,n):e.setAttribute(n,n),n}},ot.each(ot.expr.match.bool.source.match(/\w+/g),function(e,n){var r=ot.expr.attrHandle[n]||ot.find.attr;ot.expr.attrHandle[n]=function(e,n,i){var o=ot.expr.attrHandle[n],a=i?t:(ot.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return ot.expr.attrHandle[n]=o,a}}),ot.support.optSelected||(ot.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),ot.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ot.propFix[this.toLowerCase()]=this}),ot.each(["radio","checkbox"],function(){ot.valHooks[this]={set:function(e,t){return ot.isArray(t)?e.checked=ot.inArray(ot(e).val(),t)>=0:void 0}},ot.support.checkOn||(ot.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var St=/^key/,kt=/^(?:mouse|contextmenu)|click/,Tt=/^(?:focusinfocus|focusoutblur)$/,Et=/^([^.]*)(?:\.(.+)|)$/;ot.event={global:{},add:function(e,n,r,i,o){var a,s,u,c,l,f,p,h,d,g,m,v=mt.get(e);if(v){for(r.handler&&(a=r,r=a.handler,o=a.selector),r.guid||(r.guid=ot.guid++),(c=v.events)||(c=v.events={}),(s=v.handle)||(s=v.handle=function(e){return typeof ot===z||e&&ot.event.triggered===e.type?t:ot.event.dispatch.apply(s.elem,arguments)},s.elem=e),n=(n||"").match(st)||[""],l=n.length;l--;)u=Et.exec(n[l])||[],d=m=u[1],g=(u[2]||"").split(".").sort(),d&&(p=ot.event.special[d]||{},d=(o?p.delegateType:p.bindType)||d,p=ot.event.special[d]||{},f=ot.extend({type:d,origType:m,data:i,handler:r,guid:r.guid,selector:o,needsContext:o&&ot.expr.match.needsContext.test(o),namespace:g.join(".")},a),(h=c[d])||(h=c[d]=[],h.delegateCount=0,p.setup&&p.setup.call(e,i,g,s)!==!1||e.addEventListener&&e.addEventListener(d,s,!1)),p.add&&(p.add.call(e,f),f.handler.guid||(f.handler.guid=r.guid)),o?h.splice(h.delegateCount++,0,f):h.push(f),ot.event.global[d]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,u,c,l,f,p,h,d,g,m=mt.hasData(e)&&mt.get(e);if(m&&(u=m.events)){for(t=(t||"").match(st)||[""],c=t.length;c--;)if(s=Et.exec(t[c])||[],h=g=s[1],d=(s[2]||"").split(".").sort(),h){for(f=ot.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,p=u[h]||[],s=s[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)l=p[o],!i&&g!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(p.splice(o,1),l.selector&&p.delegateCount--,f.remove&&f.remove.call(e,l));
a&&!p.length&&(f.teardown&&f.teardown.call(e,d,m.handle)!==!1||ot.removeEvent(e,h,m.handle),delete u[h])}else for(h in u)ot.event.remove(e,h+t[c],n,r,!0);ot.isEmptyObject(u)&&(delete m.handle,mt.remove(e,"events"))}},trigger:function(n,r,i,o){var a,s,u,c,l,f,p,h=[i||W],d=rt.call(n,"type")?n.type:n,g=rt.call(n,"namespace")?n.namespace.split("."):[];if(s=u=i=i||W,3!==i.nodeType&&8!==i.nodeType&&!Tt.test(d+ot.event.triggered)&&(d.indexOf(".")>=0&&(g=d.split("."),d=g.shift(),g.sort()),l=d.indexOf(":")<0&&"on"+d,n=n[ot.expando]?n:new ot.Event(d,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=g.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:ot.makeArray(r,[n]),p=ot.event.special[d]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!ot.isWindow(i)){for(c=p.delegateType||d,Tt.test(c+d)||(s=s.parentNode);s;s=s.parentNode)h.push(s),u=s;u===(i.ownerDocument||W)&&h.push(u.defaultView||u.parentWindow||e)}for(a=0;(s=h[a++])&&!n.isPropagationStopped();)n.type=a>1?c:p.bindType||d,f=(mt.get(s,"events")||{})[n.type]&&mt.get(s,"handle"),f&&f.apply(s,r),f=l&&s[l],f&&ot.acceptData(s)&&f.apply&&f.apply(s,r)===!1&&n.preventDefault();return n.type=d,o||n.isDefaultPrevented()||p._default&&p._default.apply(h.pop(),r)!==!1||!ot.acceptData(i)||l&&ot.isFunction(i[d])&&!ot.isWindow(i)&&(u=i[l],u&&(i[l]=null),ot.event.triggered=d,i[d](),ot.event.triggered=t,u&&(i[l]=u)),n.result}},dispatch:function(e){e=ot.event.fix(e);var n,r,i,o,a,s=[],u=et.call(arguments),c=(mt.get(this,"events")||{})[e.type]||[],l=ot.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(s=ot.event.handlers.call(this,e,c),n=0;(o=s[n++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,r=0;(a=o.handlers[r++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(a.namespace))&&(e.handleObj=a,e.data=a.data,i=((ot.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,u),i!==t&&(e.result=i)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],u=n.delegateCount,c=e.target;if(u&&c.nodeType&&(!e.button||"click"!==e.type))for(;c!==this;c=c.parentNode||this)if(c.disabled!==!0||"click"!==e.type){for(i=[],r=0;u>r;r++)a=n[r],o=a.selector+" ",i[o]===t&&(i[o]=a.needsContext?ot(o,this).index(c)>=0:ot.find(o,this,null,[c]).length),i[o]&&i.push(a);i.length&&s.push({elem:c,handlers:i})}return u<n.length&&s.push({elem:this,handlers:n.slice(u)}),s},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(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,a=n.button;return null==e.pageX&&null!=n.clientX&&(r=e.target.ownerDocument||W,i=r.documentElement,o=r.body,e.pageX=n.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),e.pageY=n.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)),e.which||a===t||(e.which=1&a?1:2&a?3:4&a?2:0),e}},fix:function(e){if(e[ot.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=kt.test(i)?this.mouseHooks:St.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new ot.Event(o),t=r.length;t--;)n=r[t],e[n]=o[n];return e.target||(e.target=W),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==u()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===u()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&ot.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return ot.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=ot.extend(new ot.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?ot.event.trigger(i,null,t):ot.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},ot.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},ot.Event=function(e,t){return this instanceof ot.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.getPreventDefault&&e.getPreventDefault()?a:s):this.type=e,t&&ot.extend(this,t),this.timeStamp=e&&e.timeStamp||ot.now(),this[ot.expando]=!0,void 0):new ot.Event(e,t)},ot.Event.prototype={isDefaultPrevented:s,isPropagationStopped:s,isImmediatePropagationStopped:s,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=a,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=a,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=a,this.stopPropagation()}},ot.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){ot.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!ot.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),ot.support.focusinBubbles||ot.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){ot.event.simulate(t,e.target,ot.event.fix(e),!0)};ot.event.special[t]={setup:function(){0===n++&&W.addEventListener(e,r,!0)},teardown:function(){0===--n&&W.removeEventListener(e,r,!0)}}}),ot.fn.extend({on:function(e,n,r,i,o){var a,u;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(u in e)this.on(u,n,r,e[u],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=s;else if(!i)return this;return 1===o&&(a=i,i=function(e){return ot().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=ot.guid++)),this.each(function(){ot.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,ot(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=s),this.each(function(){ot.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){ot.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?ot.event.trigger(e,t,n,!0):void 0}});var Mt=/^.[^:#\[\.,]*$/,At=/^(?:parents|prev(?:Until|All))/,Nt=ot.expr.match.needsContext,Dt={children:!0,contents:!0,next:!0,prev:!0};ot.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(ot(e).filter(function(){for(t=0;i>t;t++)if(ot.contains(r[t],this))return!0}));for(t=0;i>t;t++)ot.find(e,r[t],n);return n=this.pushStack(i>1?ot.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t=ot(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(ot.contains(this,t[e]))return!0})},not:function(e){return this.pushStack(l(this,e||[],!0))},filter:function(e){return this.pushStack(l(this,e||[],!1))},is:function(e){return!!l(this,"string"==typeof e&&Nt.test(e)?ot(e):e||[],!1).length},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=Nt.test(e)||"string"!=typeof e?ot(e,t||this.context):0;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&ot.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?ot.unique(o):o)},index:function(e){return e?"string"==typeof e?tt.call(ot(e),this[0]):tt.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?ot(e,t):ot.makeArray(e&&e.nodeType?[e]:e),r=ot.merge(this.get(),n);return this.pushStack(ot.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ot.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ot.dir(e,"parentNode")},parentsUntil:function(e,t,n){return ot.dir(e,"parentNode",n)},next:function(e){return c(e,"nextSibling")},prev:function(e){return c(e,"previousSibling")},nextAll:function(e){return ot.dir(e,"nextSibling")},prevAll:function(e){return ot.dir(e,"previousSibling")},nextUntil:function(e,t,n){return ot.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return ot.dir(e,"previousSibling",n)},siblings:function(e){return ot.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return ot.sibling(e.firstChild)},contents:function(e){return e.contentDocument||ot.merge([],e.childNodes)}},function(e,t){ot.fn[e]=function(n,r){var i=ot.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ot.filter(r,i)),this.length>1&&(Dt[e]||ot.unique(i),At.test(e)&&i.reverse()),this.pushStack(i)}}),ot.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ot.find.matchesSelector(r,e)?[r]:[]:ot.find.matches(e,ot.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){for(var i=[],o=r!==t;(e=e[n])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&ot(e).is(r))break;i.push(e)}return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var _t=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,jt=/<([\w:]+)/,Ot=/<|&#?\w+;/,Pt=/<(?:script|style|link)/i,qt=/^(?:checkbox|radio)$/i,Lt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ht=/^$|\/(?:java|ecma)script/i,Ft=/^true\/(.*)/,It=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Rt={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,"",""]};Rt.optgroup=Rt.option,Rt.tbody=Rt.tfoot=Rt.colgroup=Rt.caption=Rt.thead,Rt.th=Rt.td,ot.fn.extend({text:function(e){return ot.access(this,function(e){return e===t?ot.text(this):this.empty().append((this[0]&&this[0].ownerDocument||W).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=f(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=f(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?ot.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||ot.cleanData(m(n)),n.parentNode&&(t&&ot.contains(n.ownerDocument,n)&&d(m(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ot.cleanData(m(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return ot.clone(this,e,t)})},html:function(e){return ot.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t&&1===n.nodeType)return n.innerHTML;if("string"==typeof e&&!Pt.test(e)&&!Rt[(jt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(_t,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(ot.cleanData(m(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=ot.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),ot(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=G.apply([],e);var r,i,o,a,s,u,c=0,l=this.length,f=this,d=l-1,g=e[0],v=ot.isFunction(g);if(v||!(1>=l||"string"!=typeof g||ot.support.checkClone)&&Lt.test(g))return this.each(function(r){var i=f.eq(r);v&&(e[0]=g.call(this,r,i.html())),i.domManip(e,t,n)});if(l&&(r=ot.buildFragment(e,this[0].ownerDocument,!1,!n&&this),i=r.firstChild,1===r.childNodes.length&&(r=i),i)){for(o=ot.map(m(r,"script"),p),a=o.length;l>c;c++)s=r,c!==d&&(s=ot.clone(s,!0,!0),a&&ot.merge(o,m(s,"script"))),t.call(this[c],s,c);if(a)for(u=o[o.length-1].ownerDocument,ot.map(o,h),c=0;a>c;c++)s=o[c],Ht.test(s.type||"")&&!mt.access(s,"globalEval")&&ot.contains(u,s)&&(s.src?ot._evalUrl(s.src):ot.globalEval(s.textContent.replace(It,"")))}return this}}),ot.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ot.fn[e]=function(e){for(var n,r=[],i=ot(e),o=i.length-1,a=0;o>=a;a++)n=a===o?this:this.clone(!0),ot(i[a])[t](n),K.apply(r,n.get());return this.pushStack(r)}}),ot.extend({clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=ot.contains(e.ownerDocument,e);if(!(ot.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ot.isXMLDoc(e)))for(a=m(s),o=m(e),r=0,i=o.length;i>r;r++)v(o[r],a[r]);if(t)if(n)for(o=o||m(e),a=a||m(s),r=0,i=o.length;i>r;r++)g(o[r],a[r]);else g(e,s);return a=m(s,"script"),a.length>0&&d(a,!u&&m(e,"script")),s},buildFragment:function(e,t,n,r){for(var i,o,a,s,u,c,l=0,f=e.length,p=t.createDocumentFragment(),h=[];f>l;l++)if(i=e[l],i||0===i)if("object"===ot.type(i))ot.merge(h,i.nodeType?[i]:i);else if(Ot.test(i)){for(o=o||p.appendChild(t.createElement("div")),a=(jt.exec(i)||["",""])[1].toLowerCase(),s=Rt[a]||Rt._default,o.innerHTML=s[1]+i.replace(_t,"<$1></$2>")+s[2],c=s[0];c--;)o=o.lastChild;ot.merge(h,o.childNodes),o=p.firstChild,o.textContent=""}else h.push(t.createTextNode(i));for(p.textContent="",l=0;i=h[l++];)if((!r||-1===ot.inArray(i,r))&&(u=ot.contains(i.ownerDocument,i),o=m(p.appendChild(i),"script"),u&&d(o),n))for(c=0;i=o[c++];)Ht.test(i.type||"")&&n.push(i);return p},cleanData:function(e){for(var n,r,o,a,s,u,c=ot.event.special,l=0;(r=e[l])!==t;l++){if(i.accepts(r)&&(s=r[mt.expando],s&&(n=mt.cache[s]))){if(o=Object.keys(n.events||{}),o.length)for(u=0;(a=o[u])!==t;u++)c[a]?ot.event.remove(r,a):ot.removeEvent(r,a,n.handle);mt.cache[s]&&delete mt.cache[s]}delete gt.cache[r[gt.expando]]}},_evalUrl:function(e){return ot.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),ot.fn.extend({wrapAll:function(e){var t;return ot.isFunction(e)?this.each(function(t){ot(this).wrapAll(e.call(this,t))}):(this[0]&&(t=ot(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return ot.isFunction(e)?this.each(function(t){ot(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ot(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ot.isFunction(e);return this.each(function(n){ot(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){ot.nodeName(this,"body")||ot(this).replaceWith(this.childNodes)}).end()}});var Ut,zt,Bt=/^(none|table(?!-c[ea]).+)/,Wt=/^margin/,Vt=new RegExp("^("+at+")(.*)$","i"),Xt=new RegExp("^("+at+")(?!px)[a-z%]+$","i"),Yt=new RegExp("^([+-])=("+at+")","i"),Qt={BODY:"block"},Zt={position:"absolute",visibility:"hidden",display:"block"},Jt={letterSpacing:0,fontWeight:400},Gt=["Top","Right","Bottom","Left"],Kt=["Webkit","O","Moz","ms"];ot.fn.extend({css:function(e,n){return ot.access(this,function(e,n,r){var i,o,a={},s=0;if(ot.isArray(n)){for(i=b(e),o=n.length;o>s;s++)a[n[s]]=ot.css(e,n[s],!1,i);return a}return r!==t?ot.style(e,n,r):ot.css(e,n)},e,n,arguments.length>1)},show:function(){return $(this,!0)},hide:function(){return $(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){x(this)?ot(this).show():ot(this).hide()})}}),ot.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ut(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,u=ot.camelCase(n),c=e.style;return n=ot.cssProps[u]||(ot.cssProps[u]=y(c,u)),s=ot.cssHooks[n]||ot.cssHooks[u],r===t?s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:c[n]:(a=typeof r,"string"===a&&(o=Yt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(ot.css(e,n)),a="number"),null==r||"number"===a&&isNaN(r)||("number"!==a||ot.cssNumber[u]||(r+="px"),ot.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(c[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t||(c[n]=r)),void 0)}},css:function(e,n,r,i){var o,a,s,u=ot.camelCase(n);return n=ot.cssProps[u]||(ot.cssProps[u]=y(e.style,u)),s=ot.cssHooks[n]||ot.cssHooks[u],s&&"get"in s&&(o=s.get(e,!0,r)),o===t&&(o=Ut(e,n,i)),"normal"===o&&n in Jt&&(o=Jt[n]),""===r||r?(a=parseFloat(o),r===!0||ot.isNumeric(a)?a||0:o):o}}),Ut=function(e,n,r){var i,o,a,s=r||b(e),u=s?s.getPropertyValue(n)||s[n]:t,c=e.style;return s&&(""!==u||ot.contains(e.ownerDocument,e)||(u=ot.style(e,n)),Xt.test(u)&&Wt.test(n)&&(i=c.width,o=c.minWidth,a=c.maxWidth,c.minWidth=c.maxWidth=c.width=u,u=s.width,c.width=i,c.minWidth=o,c.maxWidth=a)),u},ot.each(["height","width"],function(e,t){ot.cssHooks[t]={get:function(e,n,r){return n?0===e.offsetWidth&&Bt.test(ot.css(e,"display"))?ot.swap(e,Zt,function(){return S(e,t,r)}):S(e,t,r):void 0},set:function(e,n,r){var i=r&&b(e);return w(e,n,r?C(e,t,r,ot.support.boxSizing&&"border-box"===ot.css(e,"boxSizing",!1,i),i):0)}}}),ot(function(){ot.support.reliableMarginRight||(ot.cssHooks.marginRight={get:function(e,t){return t?ot.swap(e,{display:"inline-block"},Ut,[e,"marginRight"]):void 0}}),!ot.support.pixelPosition&&ot.fn.position&&ot.each(["top","left"],function(e,t){ot.cssHooks[t]={get:function(e,n){return n?(n=Ut(e,t),Xt.test(n)?ot(e).position()[t]+"px":n):void 0}}})}),ot.expr&&ot.expr.filters&&(ot.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},ot.expr.filters.visible=function(e){return!ot.expr.filters.hidden(e)}),ot.each({margin:"",padding:"",border:"Width"},function(e,t){ot.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+Gt[r]+t]=o[r]||o[r-2]||o[0];return i}},Wt.test(e)||(ot.cssHooks[e+t].set=w)});var en=/%20/g,tn=/\[\]$/,nn=/\r?\n/g,rn=/^(?:submit|button|image|reset|file)$/i,on=/^(?:input|select|textarea|keygen)/i;ot.fn.extend({serialize:function(){return ot.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ot.prop(this,"elements");return e?ot.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ot(this).is(":disabled")&&on.test(this.nodeName)&&!rn.test(e)&&(this.checked||!qt.test(e))}).map(function(e,t){var n=ot(this).val();return null==n?null:ot.isArray(n)?ot.map(n,function(e){return{name:t.name,value:e.replace(nn,"\r\n")}}):{name:t.name,value:n.replace(nn,"\r\n")}}).get()}}),ot.param=function(e,n){var r,i=[],o=function(e,t){t=ot.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=ot.ajaxSettings&&ot.ajaxSettings.traditional),ot.isArray(e)||e.jquery&&!ot.isPlainObject(e))ot.each(e,function(){o(this.name,this.value)});else for(r in e)E(r,e[r],n,o);return i.join("&").replace(en,"+")},ot.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(e,t){ot.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ot.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var an,sn,un=ot.now(),cn=/\?/,ln=/#.*$/,fn=/([?&])_=[^&]*/,pn=/^(.*?):[ \t]*([^\r\n]*)$/gm,hn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,dn=/^(?:GET|HEAD)$/,gn=/^\/\//,mn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,vn=ot.fn.load,yn={},xn={},bn="*/".concat("*");try{sn=B.href}catch($n){sn=W.createElement("a"),sn.href="",sn=sn.href}an=mn.exec(sn.toLowerCase())||[],ot.fn.load=function(e,n,r){if("string"!=typeof e&&vn)return vn.apply(this,arguments);var i,o,a,s=this,u=e.indexOf(" ");return u>=0&&(i=e.slice(u),e=e.slice(0,u)),ot.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(o="POST"),s.length>0&&ot.ajax({url:e,type:o,dataType:"html",data:n}).done(function(e){a=arguments,s.html(i?ot("<div>").append(ot.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,a||[e.responseText,t,e])}),this},ot.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ot.fn[t]=function(e){return this.on(t,e)}}),ot.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:sn,type:"GET",isLocal:hn.test(an[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":bn,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":ot.parseJSON,"text xml":ot.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?N(N(e,ot.ajaxSettings),t):N(ot.ajaxSettings,e)},ajaxPrefilter:M(yn),ajaxTransport:M(xn),ajax:function(e,n){function r(e,n,r,s){var c,f,y,x,$,C=n;2!==b&&(b=2,u&&clearTimeout(u),i=t,a=s||"",w.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&(x=D(p,w,r)),x=_(p,x,w,c),c?(p.ifModified&&($=w.getResponseHeader("Last-Modified"),$&&(ot.lastModified[o]=$),$=w.getResponseHeader("etag"),$&&(ot.etag[o]=$)),204===e||"HEAD"===p.type?C="nocontent":304===e?C="notmodified":(C=x.state,f=x.data,y=x.error,c=!y)):(y=C,(e||!C)&&(C="error",0>e&&(e=0))),w.status=e,w.statusText=(n||C)+"",c?g.resolveWith(h,[f,C,w]):g.rejectWith(h,[w,C,y]),w.statusCode(v),v=t,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[w,p,c?f:y]),m.fireWith(h,[w,C]),l&&(d.trigger("ajaxComplete",[w,p]),--ot.active||ot.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=t),n=n||{};var i,o,a,s,u,c,l,f,p=ot.ajaxSetup({},n),h=p.context||p,d=p.context&&(h.nodeType||h.jquery)?ot(h):ot.event,g=ot.Deferred(),m=ot.Callbacks("once memory"),v=p.statusCode||{},y={},x={},b=0,$="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!s)for(s={};t=pn.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=x[n]=x[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)v[t]=[v[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||$;return i&&i.abort(t),r(0,t),this}};if(g.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,p.url=((e||p.url||sn)+"").replace(ln,"").replace(gn,an[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=ot.trim(p.dataType||"*").toLowerCase().match(st)||[""],null==p.crossDomain&&(c=mn.exec(p.url.toLowerCase()),p.crossDomain=!(!c||c[1]===an[1]&&c[2]===an[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(an[3]||("http:"===an[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=ot.param(p.data,p.traditional)),A(yn,p,n,w),2===b)return w;l=p.global,l&&0===ot.active++&&ot.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!dn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(cn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=fn.test(o)?o.replace(fn,"$1_="+un++):o+(cn.test(o)?"&":"?")+"_="+un++)),p.ifModified&&(ot.lastModified[o]&&w.setRequestHeader("If-Modified-Since",ot.lastModified[o]),ot.etag[o]&&w.setRequestHeader("If-None-Match",ot.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+bn+"; q=0.01":""):p.accepts["*"]);for(f in p.headers)w.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(p.beforeSend.call(h,w,p)===!1||2===b))return w.abort();$="abort";for(f in{success:1,error:1,complete:1})w[f](p[f]);if(i=A(xn,p,n,w)){w.readyState=1,l&&d.trigger("ajaxSend",[w,p]),p.async&&p.timeout>0&&(u=setTimeout(function(){w.abort("timeout")},p.timeout));try{b=1,i.send(y,r)}catch(C){if(!(2>b))throw C;r(-1,C)}}else r(-1,"No Transport");return w},getJSON:function(e,t,n){return ot.get(e,t,n,"json")},getScript:function(e,n){return ot.get(e,t,n,"script")}}),ot.each(["get","post"],function(e,n){ot[n]=function(e,r,i,o){return ot.isFunction(r)&&(o=o||i,i=r,r=t),ot.ajax({url:e,type:n,dataType:o,data:r,success:i})}}),ot.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return ot.globalEval(e),e}}}),ot.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ot.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=ot("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),W.head.appendChild(t[0])},abort:function(){n&&n()}}}});var wn=[],Cn=/(=)\?(?=&|$)|\?\?/;ot.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=wn.pop()||ot.expando+"_"+un++;return this[e]=!0,e}}),ot.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,u=n.jsonp!==!1&&(Cn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Cn.test(n.data)&&"data");return u||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=ot.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,u?n[u]=n[u].replace(Cn,"$1"+o):n.jsonp!==!1&&(n.url+=(cn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||ot.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,wn.push(o)),s&&ot.isFunction(a)&&a(s[0]),s=a=t}),"script"):void 0}),ot.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var Sn=ot.ajaxSettings.xhr(),kn={0:200,1223:204},Tn=0,En={};e.ActiveXObject&&ot(e).on("unload",function(){for(var e in En)En[e]();En=t}),ot.support.cors=!!Sn&&"withCredentials"in Sn,ot.support.ajax=Sn=!!Sn,ot.ajaxTransport(function(e){var n;return ot.support.cors||Sn&&!e.crossDomain?{send:function(r,i){var o,a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)s.setRequestHeader(o,r[o]);n=function(e){return function(){n&&(delete En[a],n=s.onload=s.onerror=null,"abort"===e?s.abort():"error"===e?i(s.status||404,s.statusText):i(kn[s.status]||s.status,s.statusText,"string"==typeof s.responseText?{text:s.responseText}:t,s.getAllResponseHeaders()))}},s.onload=n(),s.onerror=n("error"),n=En[a=Tn++]=n("abort"),s.send(e.hasContent&&e.data||null)},abort:function(){n&&n()}}:void 0});var Mn,An,Nn=/^(?:toggle|show|hide)$/,Dn=new RegExp("^(?:([+-])=|)("+at+")([a-z%]*)$","i"),_n=/queueHooks$/,jn=[L],On={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Dn.exec(t),o=i&&i[3]||(ot.cssNumber[e]?"":"px"),a=(ot.cssNumber[e]||"px"!==o&&+r)&&Dn.exec(ot.css(n.elem,e)),s=1,u=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,ot.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--u)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};ot.Animation=ot.extend(P,{tweener:function(e,t){ot.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;i>r;r++)n=e[r],On[n]=On[n]||[],On[n].unshift(t)},prefilter:function(e,t){t?jn.unshift(e):jn.push(e)}}),ot.Tween=H,H.prototype={constructor:H,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ot.cssNumber[n]?"":"px")},cur:function(){var e=H.propHooks[this.prop];return e&&e.get?e.get(this):H.propHooks._default.get(this)},run:function(e){var t,n=H.propHooks[this.prop];return this.pos=t=this.options.duration?ot.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=ot.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){ot.fx.step[e.prop]?ot.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[ot.cssProps[e.prop]]||ot.cssHooks[e.prop])?ot.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ot.each(["toggle","show","hide"],function(e,t){var n=ot.fn[t];ot.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(F(t,!0),e,r,i)}}),ot.fn.extend({fadeTo:function(e,t,n,r){return this.filter(x).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=ot.isEmptyObject(e),o=ot.speed(t,n,r),a=function(){var t=P(this,ot.extend({},e),o);(i||mt.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=ot.timers,a=mt.get(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&_n.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&ot.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=mt.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=ot.timers,a=r?r.length:0;for(n.finish=!0,ot.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),ot.each({slideDown:F("show"),slideUp:F("hide"),slideToggle:F("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ot.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),ot.speed=function(e,t,n){var r=e&&"object"==typeof e?ot.extend({},e):{complete:n||!n&&t||ot.isFunction(e)&&e,duration:e,easing:n&&t||t&&!ot.isFunction(t)&&t};return r.duration=ot.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in ot.fx.speeds?ot.fx.speeds[r.duration]:ot.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){ot.isFunction(r.old)&&r.old.call(this),r.queue&&ot.dequeue(this,r.queue)},r},ot.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},ot.timers=[],ot.fx=H.prototype.init,ot.fx.tick=function(){var e,n=ot.timers,r=0;for(Mn=ot.now();r<n.length;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||ot.fx.stop(),Mn=t},ot.fx.timer=function(e){e()&&ot.timers.push(e)&&ot.fx.start()},ot.fx.interval=13,ot.fx.start=function(){An||(An=setInterval(ot.fx.tick,ot.fx.interval))},ot.fx.stop=function(){clearInterval(An),An=null},ot.fx.speeds={slow:600,fast:200,_default:400},ot.fx.step={},ot.expr&&ot.expr.filters&&(ot.expr.filters.animated=function(e){return ot.grep(ot.timers,function(t){return e===t.elem
}).length}),ot.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){ot.offset.setOffset(this,e,t)});var n,r,i=this[0],o={top:0,left:0},a=i&&i.ownerDocument;if(a)return n=a.documentElement,ot.contains(n,i)?(typeof i.getBoundingClientRect!==z&&(o=i.getBoundingClientRect()),r=I(a),{top:o.top+r.pageYOffset-n.clientTop,left:o.left+r.pageXOffset-n.clientLeft}):o},ot.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,c,l=ot.css(e,"position"),f=ot(e),p={};"static"===l&&(e.style.position="relative"),s=f.offset(),o=ot.css(e,"top"),u=ot.css(e,"left"),c=("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1,c?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),ot.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(p.top=t.top-s.top+a),null!=t.left&&(p.left=t.left-s.left+i),"using"in t?t.using.call(e,p):f.css(p)}},ot.fn.extend({position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===ot.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ot.nodeName(e[0],"html")||(r=e.offset()),r.top+=ot.css(e[0],"borderTopWidth",!0),r.left+=ot.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-ot.css(n,"marginTop",!0),left:t.left-r.left-ot.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||V;e&&!ot.nodeName(e,"html")&&"static"===ot.css(e,"position");)e=e.offsetParent;return e||V})}}),ot.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,r){var i="pageYOffset"===r;ot.fn[n]=function(o){return ot.access(this,function(n,o,a){var s=I(n);return a===t?s?s[r]:n[o]:(s?s.scrollTo(i?e.pageXOffset:a,i?a:e.pageYOffset):n[o]=a,void 0)},n,o,arguments.length,null)}}),ot.each({Height:"height",Width:"width"},function(e,n){ot.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){ot.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return ot.access(this,function(n,r,i){var o;return ot.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?ot.css(n,r,s):ot.style(n,r,i,s)},n,a?i:t,a,null)}})}),ot.fn.size=function(){return this.length},ot.fn.andSelf=ot.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=ot:"function"==typeof define&&define.amd&&define("jquery",[],function(){return ot}),"object"==typeof e&&"object"==typeof e.document&&(e.jQuery=e.$=ot)}(window),function(e,t,n){"use strict";function r(e){return function(){var t,n,r=arguments[0],i="["+(e?e+":":"")+r+"] ",o=arguments[1],a=arguments,s=function(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?JSON.stringify(e):e};for(t=i+o.replace(/\{\d+\}/g,function(e){var t,n=+e.slice(1,-1);return n+2<a.length?(t=a[n+2],"function"==typeof t?t.toString().replace(/ ?\{[\s\S]*$/,""):"undefined"==typeof t?"undefined":"string"!=typeof t?U(t):t):e}),t=t+"\nhttp://errors.angularjs.org/1.2.22/"+(e?e+"/":"")+r,n=2;n<arguments.length;n++)t=t+(2==n?"?":"&")+"p"+(n-2)+"="+encodeURIComponent(s(arguments[n]));return new Error(t)}}function i(e){if(null==e||k(e))return!1;var t=e.length;return 1===e.nodeType&&t?!0:b(e)||Ar(e)||0===t||"number"==typeof t&&t>0&&t-1 in e}function o(e,t,n){var r;if(e)if(C(e))for(r in e)"prototype"==r||"length"==r||"name"==r||e.hasOwnProperty&&!e.hasOwnProperty(r)||t.call(n,e[r],r);else if(Ar(e)||i(e))for(r=0;r<e.length;r++)t.call(n,e[r],r);else if(e.forEach&&e.forEach!==o)e.forEach(t,n);else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r);return e}function a(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t.sort()}function s(e,t,n){for(var r=a(e),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function u(e){return function(t,n){e(n,t)}}function c(){for(var e,t=Mr.length;t;){if(t--,e=Mr[t].charCodeAt(0),57==e)return Mr[t]="A",Mr.join("");if(90!=e)return Mr[t]=String.fromCharCode(e+1),Mr.join("");Mr[t]="0"}return Mr.unshift("0"),Mr.join("")}function l(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function f(e){var t=e.$$hashKey;return o(arguments,function(t){t!==e&&o(t,function(t,n){e[n]=t})}),l(e,t),e}function p(e){return parseInt(e,10)}function h(e,t){return f(new(f(function(){},{prototype:e})),t)}function d(){}function g(e){return e}function m(e){return function(){return e}}function v(e){return"undefined"==typeof e}function y(e){return"undefined"!=typeof e}function x(e){return null!=e&&"object"==typeof e}function b(e){return"string"==typeof e}function $(e){return"number"==typeof e}function w(e){return"[object Date]"===kr.call(e)}function C(e){return"function"==typeof e}function S(e){return"[object RegExp]"===kr.call(e)}function k(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function T(e){return e&&e.$evalAsync&&e.$watch}function E(e){return"[object File]"===kr.call(e)}function M(e){return"[object Blob]"===kr.call(e)}function A(e){return e&&C(e.then)}function N(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function D(e,t,n){var r=[];return o(e,function(e,i,o){r.push(t.call(n,e,i,o))}),r}function _(e,t){return-1!=j(e,t)}function j(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;n++)if(t===e[n])return n;return-1}function O(e,t){var n=j(e,t);return n>=0&&e.splice(n,1),t}function P(e,t,n,r){if(k(e)||T(e))throw Tr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(t){if(e===t)throw Tr("cpi","Can't copy! Source and destination are identical.");if(n=n||[],r=r||[],x(e)){var i=j(n,e);if(-1!==i)return r[i];n.push(e),r.push(t)}var a;if(Ar(e)){t.length=0;for(var s=0;s<e.length;s++)a=P(e[s],null,n,r),x(e[s])&&(n.push(e[s]),r.push(a)),t.push(a)}else{var u=t.$$hashKey;o(t,function(e,n){delete t[n]});for(var c in e)a=P(e[c],null,n,r),x(e[c])&&(n.push(e[c]),r.push(a)),t[c]=a;l(t,u)}}else t=e,e&&(Ar(e)?t=P(e,[],n,r):w(e)?t=new Date(e.getTime()):S(e)?(t=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]),t.lastIndex=e.lastIndex):x(e)&&(t=P(e,{},n,r)));return t}function q(e,t){if(Ar(e)){t=t||[];for(var n=0;n<e.length;n++)t[n]=e[n]}else if(x(e)){t=t||{};for(var r in e)!dr.call(e,r)||"$"===r.charAt(0)&&"$"===r.charAt(1)||(t[r]=e[r])}return t||e}function L(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var r,i,o,a=typeof e,s=typeof t;if(a==s&&"object"==a){if(!Ar(e)){if(w(e))return w(t)&&e.getTime()==t.getTime();if(S(e)&&S(t))return e.toString()==t.toString();if(T(e)||T(t)||k(e)||k(t)||Ar(t))return!1;o={};for(i in e)if("$"!==i.charAt(0)&&!C(e[i])){if(!L(e[i],t[i]))return!1;o[i]=!0}for(i in t)if(!o.hasOwnProperty(i)&&"$"!==i.charAt(0)&&t[i]!==n&&!C(t[i]))return!1;return!0}if(!Ar(t))return!1;if((r=e.length)==t.length){for(i=0;r>i;i++)if(!L(e[i],t[i]))return!1;return!0}}return!1}function H(e,t,n){return e.concat(Cr.call(t,n))}function F(e,t){return Cr.call(e,t||0)}function I(e,t){var n=arguments.length>2?F(arguments,2):[];return!C(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,n.concat(Cr.call(arguments,0))):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function R(e,r){var i=r;return"string"==typeof e&&"$"===e.charAt(0)?i=n:k(r)?i="$WINDOW":r&&t===r?i="$DOCUMENT":T(r)&&(i="$SCOPE"),i}function U(e,t){return"undefined"==typeof e?n:JSON.stringify(e,R,t?" ":null)}function z(e){return b(e)?JSON.parse(e):e}function B(e){if("function"==typeof e)e=!0;else if(e&&0!==e.length){var t=hr(""+e);e=!("f"==t||"0"==t||"false"==t||"no"==t||"n"==t||"[]"==t)}else e=!1;return e}function W(e){e=xr(e).clone();try{e.empty()}catch(t){}var n=3,r=xr("<div>").append(e).html();try{return e[0].nodeType===n?hr(r):r.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+hr(t)})}catch(t){return hr(r)}}function V(e){try{return decodeURIComponent(e)}catch(t){}}function X(e){var t,n,r={};return o((e||"").split("&"),function(e){if(e&&(t=e.replace(/\+/g,"%20").split("="),n=V(t[0]),y(n))){var i=y(t[1])?V(t[1]):!0;dr.call(r,n)?Ar(r[n])?r[n].push(i):r[n]=[r[n],i]:r[n]=i}}),r}function Y(e){var t=[];return o(e,function(e,n){Ar(e)?o(e,function(e){t.push(Z(n,!0)+(e===!0?"":"="+Z(e,!0)))}):t.push(Z(n,!0)+(e===!0?"":"="+Z(e,!0)))}),t.length?t.join("&"):""}function Q(e){return Z(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Z(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function J(e,n){function r(e){e&&s.push(e)}var i,a,s=[e],u=["ng:app","ng-app","x-ng-app","data-ng-app"],c=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;o(u,function(n){u[n]=!0,r(t.getElementById(n)),n=n.replace(":","\\:"),e.querySelectorAll&&(o(e.querySelectorAll("."+n),r),o(e.querySelectorAll("."+n+"\\:"),r),o(e.querySelectorAll("["+n+"]"),r))}),o(s,function(e){if(!i){var t=" "+e.className+" ",n=c.exec(t);n?(i=e,a=(n[2]||"").replace(/\s+/g,",")):o(e.attributes,function(t){!i&&u[t.name]&&(i=e,a=t.value)})}}),i&&n(i,a?[a]:[])}function G(n,r){var i=function(){if(n=xr(n),n.injector()){var e=n[0]===t?"document":W(n);throw Tr("btstrpd","App Already Bootstrapped with this Element '{0}'",e)}r=r||[],r.unshift(["$provide",function(e){e.value("$rootElement",n)}]),r.unshift("ng");var i=jt(r);return i.invoke(["$rootScope","$rootElement","$compile","$injector","$animate",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),i},a=/^NG_DEFER_BOOTSTRAP!/;return e&&!a.test(e.name)?i():(e.name=e.name.replace(a,""),Er.resumeBootstrap=function(e){o(e,function(e){r.push(e)}),i()},void 0)}function K(e,t){return t=t||"_",e.replace(_r,function(e,n){return(n?t:"")+e.toLowerCase()})}function et(){br=e.jQuery,br&&br.fn.on?(xr=br,f(br.fn,{scope:Vr.scope,isolateScope:Vr.isolateScope,controller:Vr.controller,injector:Vr.injector,inheritedData:Vr.inheritedData}),lt("remove",!0,!0,!1),lt("empty",!1,!1,!1),lt("html",!1,!1,!0)):xr=dt,Er.element=xr}function tt(e,t,n){if(!e)throw Tr("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function nt(e,t,n){return n&&Ar(e)&&(e=e[e.length-1]),tt(C(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function rt(e,t){if("hasOwnProperty"===e)throw Tr("badname","hasOwnProperty is not a valid {0} name",t)}function it(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;a>s;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&C(e)?I(o,e):e}function ot(e){var t=e[0],n=e[e.length-1];if(t===n)return xr(t);var r=t,i=[r];do{if(r=r.nextSibling,!r)break;i.push(r)}while(r!==n);return xr(i)}function at(e){function t(e,t,n){return e[t]||(e[t]=n())}var n=r("$injector"),i=r("ng"),o=t(e,"angular",Object);return o.$$minErr=o.$$minErr||r,t(o,"module",function(){var e={};return function(r,o,a){var s=function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)};return s(r,"module"),o&&e.hasOwnProperty(r)&&(e[r]=null),t(e,r,function(){function e(e,n,r){return function(){return t[r||"push"]([e,n,arguments]),u}}if(!o)throw n("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",r);var t=[],i=[],s=e("$injector","invoke"),u={_invokeQueue:t,_runBlocks:i,requires:o,name:r,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),animation:e("$animateProvider","register"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),config:s,run:function(e){return i.push(e),this}};return a&&s(a),u})}})}function st(t){f(t,{bootstrap:G,copy:P,extend:f,equals:L,element:xr,forEach:o,injector:jt,noop:d,bind:I,toJson:U,fromJson:z,identity:g,isUndefined:v,isDefined:y,isString:b,isFunction:C,isObject:x,isNumber:$,isElement:N,isArray:Ar,version:jr,isDate:w,lowercase:hr,uppercase:gr,callbacks:{counter:0},$$minErr:r,$$csp:Dr}),$r=at(e);try{$r("ngLocale")}catch(n){$r("ngLocale",[]).provider("$locale",nn)}$r("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:An}),e.provider("$compile",It).directive({a:Ai,input:Ii,textarea:Ii,form:ji,script:wo,select:ko,style:Eo,option:To,ngBind:Gi,ngBindHtml:eo,ngBindTemplate:Ki,ngClass:to,ngClassEven:ro,ngClassOdd:no,ngCloak:io,ngController:oo,ngForm:Oi,ngHide:mo,ngIf:so,ngInclude:uo,ngInit:lo,ngNonBindable:fo,ngPluralize:po,ngRepeat:ho,ngShow:go,ngStyle:vo,ngSwitch:yo,ngSwitchWhen:xo,ngSwitchDefault:bo,ngOptions:So,ngTransclude:$o,ngModel:Vi,ngList:Qi,ngChange:Xi,required:Yi,ngRequired:Yi,ngValue:Ji}).directive({ngInclude:co}).directive(Ni).directive(ao),e.provider({$anchorScroll:Ot,$animate:ti,$browser:Lt,$cacheFactory:Ht,$controller:zt,$document:Bt,$exceptionHandler:Wt,$filter:In,$interpolate:en,$interval:tn,$http:Zt,$httpBackend:Gt,$location:mn,$log:vn,$parse:Sn,$rootScope:Mn,$q:kn,$sce:On,$sceDelegate:jn,$sniffer:Pn,$templateCache:Ft,$timeout:qn,$window:Fn,$$rAF:En,$$asyncCallback:Pt})}])}function ut(){return++Pr}function ct(e){return e.replace(Hr,function(e,t,n,r){return r?n.toUpperCase():n}).replace(Fr,"Moz$1")}function lt(e,t,n,r){function i(e){var i,a,s,u,c,l,f,p=n&&e?[this.filter(e)]:[this],h=t;if(!r||null!=e)for(;p.length;)for(i=p.shift(),a=0,s=i.length;s>a;a++)for(u=xr(i[a]),h?u.triggerHandler("$destroy"):h=!h,c=0,l=(f=u.children()).length;l>c;c++)p.push(br(f[c]));return o.apply(this,arguments)}var o=br.fn[e];o=o.$original||o,i.$original=o,br.fn[e]=i}function ft(e){return!Ur.test(e)}function pt(e,t){var n,r,i,o,a,s,u=t.createDocumentFragment(),c=[];if(ft(e))c.push(t.createTextNode(e));else{for(n=u.appendChild(t.createElement("div")),r=(zr.exec(e)||["",""])[1].toLowerCase(),i=Wr[r]||Wr._default,n.innerHTML="<div>&#160;</div>"+i[1]+e.replace(Br,"<$1></$2>")+i[2],n.removeChild(n.firstChild),o=i[0];o--;)n=n.lastChild;for(a=0,s=n.childNodes.length;s>a;++a)c.push(n.childNodes[a]);n=u.firstChild,n.textContent=""}return u.textContent="",u.innerHTML="",c}function ht(e,n){n=n||t;var r;return(r=Rr.exec(e))?[n.createElement(r[1])]:pt(e,n)}function dt(e){if(e instanceof dt)return e;if(b(e)&&(e=Nr(e)),!(this instanceof dt)){if(b(e)&&"<"!=e.charAt(0))throw Ir("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new dt(e)}if(b(e)){St(this,ht(e));var n=xr(t.createDocumentFragment());n.append(this)}else St(this,e)}function gt(e){return e.cloneNode(!0)}function mt(e){yt(e);for(var t=0,n=e.childNodes||[];t<n.length;t++)mt(n[t])}function vt(e,t,n,r){if(y(r))throw Ir("offargs","jqLite#off() does not support the `selector` argument");var i=xt(e,"events"),a=xt(e,"handle");a&&(v(t)?o(i,function(t,n){Lr(e,n,t),delete i[n]}):o(t.split(" "),function(t){v(n)?(Lr(e,t,i[t]),delete i[t]):O(i[t]||[],n)}))}function yt(e,t){var r=e.ng339,i=Or[r];if(i){if(t)return delete Or[r].data[t],void 0;i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),vt(e)),delete Or[r],e.ng339=n}}function xt(e,t,n){var r=e.ng339,i=Or[r||-1];return y(n)?(i||(e.ng339=r=ut(),i=Or[r]={}),i[t]=n,void 0):i&&i[t]}function bt(e,t,n){var r=xt(e,"data"),i=y(n),o=!i&&y(t),a=o&&!x(t);if(r||a||xt(e,"data",r={}),i)r[t]=n;else{if(!o)return r;if(a)return r&&r[t];f(r,t)}}function $t(e,t){return e.getAttribute?(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1:!1}function wt(e,t){t&&e.setAttribute&&o(t.split(" "),function(t){e.setAttribute("class",Nr((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Nr(t)+" "," ")))})}function Ct(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(t.split(" "),function(e){e=Nr(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",Nr(n))}}function St(e,t){if(t){t=t.nodeName||!y(t.length)||k(t)?[t]:t;for(var n=0;n<t.length;n++)e.push(t[n])}}function kt(e,t){return Tt(e,"$"+(t||"ngController")+"Controller")}function Tt(e,t,r){9==e.nodeType&&(e=e.documentElement);for(var i=Ar(t)?t:[t];e;){for(var o=0,a=i.length;a>o;o++)if((r=xr.data(e,i[o]))!==n)return r;e=e.parentNode||11===e.nodeType&&e.host}}function Et(e){for(var t=0,n=e.childNodes;t<n.length;t++)mt(n[t]);for(;e.firstChild;)e.removeChild(e.firstChild)}function Mt(e,t){var n=Xr[t.toLowerCase()];return n&&Yr[e.nodeName]&&n}function At(e,n){var r=function(r,i){if(r.preventDefault||(r.preventDefault=function(){r.returnValue=!1}),r.stopPropagation||(r.stopPropagation=function(){r.cancelBubble=!0}),r.target||(r.target=r.srcElement||t),v(r.defaultPrevented)){var a=r.preventDefault;r.preventDefault=function(){r.defaultPrevented=!0,a.call(r)},r.defaultPrevented=!1}r.isDefaultPrevented=function(){return r.defaultPrevented||r.returnValue===!1};var s=q(n[i||r.type]||[]);o(s,function(t){t.call(e,r)}),8>=yr?(r.preventDefault=null,r.stopPropagation=null,r.isDefaultPrevented=null):(delete r.preventDefault,delete r.stopPropagation,delete r.isDefaultPrevented)};return r.elem=e,r}function Nt(e,t){var r,i=typeof e;return"function"==i||"object"==i&&null!==e?"function"==typeof(r=e.$$hashKey)?r=e.$$hashKey():r===n&&(r=e.$$hashKey=(t||c)()):r=e,i+":"+r}function Dt(e,t){if(t){var n=0;this.nextUid=function(){return++n}}o(e,this.put,this)}function _t(e){var t,n,r,i;return"function"==typeof e?(t=e.$inject)||(t=[],e.length&&(n=e.toString().replace(Gr,""),r=n.match(Qr),o(r[1].split(Zr),function(e){e.replace(Jr,function(e,n,r){t.push(r)})})),e.$inject=t):Ar(e)?(i=e.length-1,nt(e[i],"fn"),t=e.slice(0,i)):nt(e,"fn",!0),t}function jt(e){function t(e){return function(t,n){return x(t)?(o(t,u(e)),void 0):e(t,n)}}function n(e,t){if(rt(e,"service"),(C(t)||Ar(t))&&(t=$.instantiate(t)),!t.$get)throw Kr("pget","Provider '{0}' must define $get factory method.",e);return y[e+h]=t}function r(e,t){return n(e,{$get:t})}function i(e,t){return r(e,["$injector",function(e){return e.instantiate(t)}])}function a(e,t){return r(e,m(t))}function s(e,t){rt(e,"constant"),y[e]=t,w[e]=t}function c(e,t){var n=$.get(e+h),r=n.$get;n.$get=function(){var e=S.invoke(r,n);return S.invoke(t,null,{$delegate:e})}}function l(e){var t,n,r,i,a=[];return o(e,function(e){if(!v.get(e)){v.put(e,!0);try{if(b(e))for(t=$r(e),a=a.concat(l(t.requires)).concat(t._runBlocks),n=t._invokeQueue,r=0,i=n.length;i>r;r++){var o=n[r],s=$.get(o[0]);s[o[1]].apply(s,o[2])}else C(e)?a.push($.invoke(e)):Ar(e)?a.push($.invoke(e)):nt(e,"module")}catch(u){throw Ar(e)&&(e=e[e.length-1]),u.message&&u.stack&&-1==u.stack.indexOf(u.message)&&(u=u.message+"\n"+u.stack),Kr("modulerr","Failed to instantiate module {0} due to:\n{1}",e,u.stack||u.message||u)}}}),a}function f(e,t){function n(n){if(e.hasOwnProperty(n)){if(e[n]===p)throw Kr("cdep","Circular dependency found: {0}",n+" <- "+g.join(" <- "));return e[n]}try{return g.unshift(n),e[n]=p,e[n]=t(n)}catch(r){throw e[n]===p&&delete e[n],r}finally{g.shift()}}function r(e,t,r){var i,o,a,s=[],u=_t(e);for(o=0,i=u.length;i>o;o++){if(a=u[o],"string"!=typeof a)throw Kr("itkn","Incorrect injection token! Expected service name as string, got {0}",a);s.push(r&&r.hasOwnProperty(a)?r[a]:n(a))}return Ar(e)&&(e=e[i]),e.apply(t,s)}function i(e,t){var n,i,o=function(){};return o.prototype=(Ar(e)?e[e.length-1]:e).prototype,n=new o,i=r(e,n,t),x(i)||C(i)?i:n}return{invoke:r,instantiate:i,get:n,annotate:_t,has:function(t){return y.hasOwnProperty(t+h)||e.hasOwnProperty(t)}}}var p={},h="Provider",g=[],v=new Dt([],!0),y={$provide:{provider:t(n),factory:t(r),service:t(i),value:t(a),constant:t(s),decorator:c}},$=y.$injector=f(y,function(){throw Kr("unpr","Unknown provider: {0}",g.join(" <- "))}),w={},S=w.$injector=f(w,function(e){var t=$.get(e+h);return S.invoke(t.$get,t)});return o(l(e),function(e){S.invoke(e||d)}),S}function Ot(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){var t=null;return o(e,function(e){t||"a"!==hr(e.nodeName)||(t=e)}),t}function a(){var e,r=n.hash();r?(e=s.getElementById(r))?e.scrollIntoView():(e=i(s.getElementsByName(r)))?e.scrollIntoView():"top"===r&&t.scrollTo(0,0):t.scrollTo(0,0)}var s=t.document;return e&&r.$watch(function(){return n.hash()},function(){r.$evalAsync(a)}),a}]}function Pt(){this.$get=["$$rAF","$timeout",function(e,t){return e.supported?function(t){return e(t)}:function(e){return t(e,0,!1)}}]}function qt(e,t,r,i){function a(e){try{e.apply(null,F(arguments,1))}finally{if(y--,0===y)for(;x.length;)try{x.pop()()}catch(t){r.error(t)}}}function s(e,t){!function n(){o(w,function(e){e()}),$=t(n,e)}()}function u(){k=null,C!=c.url()&&(C=c.url(),o(T,function(e){e(c.url())}))}var c=this,l=t[0],f=e.location,p=e.history,h=e.setTimeout,g=e.clearTimeout,m={};c.isMock=!1;var y=0,x=[];c.$$completeOutstandingRequest=a,c.$$incOutstandingRequestCount=function(){y++},c.notifyWhenNoOutstandingRequests=function(e){o(w,function(e){e()}),0===y?e():x.push(e)};var $,w=[];c.addPollFn=function(e){return v($)&&s(100,h),w.push(e),e};var C=f.href,S=t.find("base"),k=null;c.url=function(t,n){if(f!==e.location&&(f=e.location),p!==e.history&&(p=e.history),t){if(C==t)return;return C=t,i.history?n?p.replaceState(null,"",t):(p.pushState(null,"",t),S.attr("href",S.attr("href"))):(k=t,n?f.replace(t):f.href=t),c}return k||f.href.replace(/%27/g,"'")};var T=[],E=!1;c.onUrlChange=function(t){return E||(i.history&&xr(e).on("popstate",u),i.hashchange?xr(e).on("hashchange",u):c.addPollFn(u),E=!0),T.push(t),t},c.baseHref=function(){var e=S.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var M={},A="",N=c.baseHref();c.cookies=function(e,t){var i,o,a,s,u;if(!e){if(l.cookie!==A)for(A=l.cookie,o=A.split("; "),M={},s=0;s<o.length;s++)a=o[s],u=a.indexOf("="),u>0&&(e=unescape(a.substring(0,u)),M[e]===n&&(M[e]=unescape(a.substring(u+1))));return M}t===n?l.cookie=escape(e)+"=;path="+N+";expires=Thu, 01 Jan 1970 00:00:00 GMT":b(t)&&(i=(l.cookie=escape(e)+"="+escape(t)+";path="+N).length+1,i>4096&&r.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+i+" > 4096 bytes)!"))},c.defer=function(e,t){var n;return y++,n=h(function(){delete m[n],a(e)},t||0),m[n]=!0,n},c.defer.cancel=function(e){return m[e]?(delete m[e],g(e),a(d),!0):!1}}function Lt(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new qt(e,r,t,n)}]}function Ht(){this.$get=function(){function e(e,n){function i(e){e!=p&&(h?h==e&&(h=e.n):h=e,o(e.n,e.p),o(e,p),p=e,p.n=null)}function o(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=f({},n,{id:e}),u={},c=n&&n.capacity||Number.MAX_VALUE,l={},p=null,h=null;return t[e]={put:function(e,t){if(c<Number.MAX_VALUE){var n=l[e]||(l[e]={key:e});i(n)}if(!v(t))return e in u||a++,u[e]=t,a>c&&this.remove(h.key),t},get:function(e){if(c<Number.MAX_VALUE){var t=l[e];if(!t)return;i(t)}return u[e]},remove:function(e){if(c<Number.MAX_VALUE){var t=l[e];if(!t)return;t==p&&(p=t.p),t==h&&(h=t.n),o(t.n,t.p),delete l[e]}delete u[e],a--},removeAll:function(){u={},a=0,l={},p=h=null},destroy:function(){u=null,s=null,l=null,delete t[e]},info:function(){return f({},s,{size:a})}}}var t={};return e.info=function(){var e={};return o(t,function(t,n){e[n]=t.info()}),e},e.get=function(e){return t[e]},e}}function Ft(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function It(e,r){var i={},a="Directive",s=/^\s*directive\:\s*([\d\w_\-]+)\s+(.*)$/,c=/(([\d\w_\-]+)(?:\:([^;]+))?;?)/,l=/^(on[a-z]+|formaction)$/;this.directive=function p(t,n){return rt(t,"directive"),b(t)?(tt(n,"directiveFactory"),i.hasOwnProperty(t)||(i[t]=[],e.factory(t+a,["$injector","$exceptionHandler",function(e,n){var r=[];return o(i[t],function(i,o){try{var a=e.invoke(i);C(a)?a={compile:m(a)}:!a.compile&&a.link&&(a.compile=m(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||t,a.require=a.require||a.controller&&a.name,a.restrict=a.restrict||"A",r.push(a)}catch(s){n(s)}}),r}])),i[t].push(n)):o(t,u(p)),this},this.aHrefSanitizationWhitelist=function(e){return y(e)?(r.aHrefSanitizationWhitelist(e),this):r.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(r.imgSrcSanitizationWhitelist(e),this):r.imgSrcSanitizationWhitelist()},this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(e,r,u,p,d,m,v,y,$,w,S,k){function T(e,t,n,r,i){e instanceof xr||(e=xr(e)),o(e,function(t,n){3==t.nodeType&&t.nodeValue.match(/\S+/)&&(e[n]=t=xr(t).wrap("<span></span>").parent()[0])});var a=M(e,t,e,n,r,i);return E(e,"ng-scope"),function(t,n,r,i){tt(t,"scope");var s=n?Vr.clone.call(e):e;o(r,function(e,t){s.data("$"+t+"Controller",e)});for(var u=0,c=s.length;c>u;u++){var l=s[u],f=l.nodeType;(1===f||9===f)&&s.eq(u).data("$scope",t)}return n&&n(s,t),a&&a(t,s,s,i),s}}function E(e,t){try{e.addClass(t)}catch(n){}}function M(e,t,r,i,o,a){function s(e,r,i,o){var a,s,u,c,l,f,p,h,g=r.length,m=new Array(g);for(l=0;g>l;l++)m[l]=r[l];for(l=0,p=0,f=d.length;f>l;p++)u=m[p],a=d[l++],s=d[l++],a?(a.scope?(c=e.$new(),xr.data(u,"$scope",c)):c=e,h=a.transcludeOnThisElement?A(e,a.transclude,o):!a.templateOnThisElement&&o?o:!o&&t?A(e,t):null,a(s,c,u,i,h)):s&&s(e,u.childNodes,n,o)}for(var u,c,l,f,p,h,d=[],g=0;g<e.length;g++)u=new Q,c=N(e[g],[],u,0===g?i:n,o),l=c.length?j(c,e[g],u,t,r,null,[],[],a):null,l&&l.scope&&E(u.$$element,"ng-scope"),p=l&&l.terminal||!(f=e[g].childNodes)||!f.length?null:M(f,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:t),d.push(l,p),h=h||l||p,a=null;return h?s:null}function A(e,t,n){var r=function(r,i,o){var a=!1;r||(r=e.$new(),r.$$transcluded=!0,a=!0);var s=t(r,i,o,n);return a&&s.on("$destroy",function(){r.$destroy()}),s};return r}function N(e,t,n,r,i){var o,a,u=e.nodeType,l=n.$attr;switch(u){case 1:P(t,Rt(wr(e).toLowerCase()),"E",r,i);for(var f,p,h,d,g,m,v=e.attributes,y=0,x=v&&v.length;x>y;y++){var $=!1,w=!1;if(f=v[y],!yr||yr>=8||f.specified){p=f.name,g=Nr(f.value),d=Rt(p),(m=et.test(d))&&(p=K(d.substr(6),"-"));var C=d.replace(/(Start|End)$/,"");d===C+"Start"&&($=p,w=p.substr(0,p.length-5)+"end",p=p.substr(0,p.length-6)),h=Rt(p.toLowerCase()),l[h]=p,(m||!n.hasOwnProperty(h))&&(n[h]=g,Mt(e,h)&&(n[h]=!0)),V(e,t,g,h),P(t,h,"A",r,i,$,w)}}if(a=e.className,b(a)&&""!==a)for(;o=c.exec(a);)h=Rt(o[2]),P(t,h,"C",r,i)&&(n[h]=Nr(o[3])),a=a.substr(o.index+o[0].length);break;case 3:z(t,e.nodeValue);break;case 8:try{o=s.exec(e.nodeValue),o&&(h=Rt(o[1]),P(t,h,"M",r,i)&&(n[h]=Nr(o[2])))}catch(S){}}return t.sort(R),t}function D(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e)throw ni("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);1==e.nodeType&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0)}else r.push(e);return xr(r)}function _(e,t,n){return function(r,i,o,a,s){return i=D(i[0],t,n),e(r,i,o,a,s)}}function j(e,i,a,s,c,l,f,p,h){function d(e,t,n,r){e&&(n&&(e=_(e,n,r)),e.require=w.require,e.directiveName=S,(R===w||w.$$isolateScope)&&(e=Y(e,{isolateScope:!0})),f.push(e)),t&&(n&&(t=_(t,n,r)),t.require=w.require,t.directiveName=S,(R===w||w.$$isolateScope)&&(t=Y(t,{isolateScope:!0})),p.push(t))}function g(e,t,n,r){var i,a="data",s=!1;if(b(t)){for(;"^"==(i=t.charAt(0))||"?"==i;)t=t.substr(1),"^"==i&&(a="inheritedData"),s=s||"?"==i;if(i=null,r&&"data"===a&&(i=r[t]),i=i||n[a]("$"+t+"Controller"),!i&&!s)throw ni("ctreq","Controller '{0}', required by directive '{1}', can't be found!",t,e);return i}return Ar(t)&&(i=[],o(t,function(t){i.push(g(e,t,n,r))})),i}function y(e,t,s,c,l){function h(e,t){var r;return arguments.length<2&&(t=e,e=n),J&&(r=k),l(e,t,r)}var d,y,x,b,$,w,C,S,k={};if(d=i===s?a:q(a,new Q(xr(s),a.$attr)),y=d.$$element,R){var T=/^\s*([@=&])(\??)\s*(\w*)\s*$/;C=t.$new(!0),!z||z!==R&&z!==R.$$originalDirective?y.data("$isolateScopeNoTemplate",C):y.data("$isolateScope",C),E(y,"ng-isolate-scope"),o(R.scope,function(e,n){var i,o,a,s,u=e.match(T)||[],c=u[3]||n,l="?"==u[2],f=u[1];switch(C.$$isolateBindings[n]=f+c,f){case"@":d.$observe(c,function(e){C[n]=e}),d.$$observers[c].$$scope=t,d[c]&&(C[n]=r(d[c])(t));break;case"=":if(l&&!d[c])return;o=m(d[c]),s=o.literal?L:function(e,t){return e===t||e!==e&&t!==t},a=o.assign||function(){throw i=C[n]=o(t),ni("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",d[c],R.name)},i=C[n]=o(t),C.$watch(function(){var e=o(t);return s(e,C[n])||(s(e,i)?a(t,e=C[n]):C[n]=e),i=e},null,o.literal);break;case"&":o=m(d[c]),C[n]=function(e){return o(t,e)};break;default:throw ni("iscp","Invalid isolate scope definition for directive '{0}'. Definition: {... {1}: '{2}' ...}",R.name,n,e)}})}for(S=l&&h,P&&o(P,function(e){var n,r={$scope:e===R||e.$$isolateScope?C:t,$element:y,$attrs:d,$transclude:S};w=e.controller,"@"==w&&(w=d[e.name]),n=v(w,r),k[e.name]=n,J||y.data("$"+e.name+"Controller",n),e.controllerAs&&(r.$scope[e.controllerAs]=n)}),x=0,b=f.length;b>x;x++)try{$=f[x],$($.isolateScope?C:t,y,d,$.require&&g($.directiveName,$.require,y,k),S)}catch(M){u(M,W(y))}var A=t;for(R&&(R.template||null===R.templateUrl)&&(A=C),e&&e(A,s.childNodes,n,l),x=p.length-1;x>=0;x--)try{$=p[x],$($.isolateScope?C:t,y,d,$.require&&g($.directiveName,$.require,y,k),S)}catch(M){u(M,W(y))}}h=h||{};for(var $,w,S,k,M,A,j=-Number.MAX_VALUE,P=h.controllerDirectives,R=h.newIsolateScopeDirective,z=h.templateDirective,B=h.nonTlbTranscludeDirective,V=!1,Z=!1,J=h.hasElementTranscludeDirective,K=a.$$element=xr(i),et=l,tt=s,nt=0,rt=e.length;rt>nt;nt++){w=e[nt];var it=w.$$start,ot=w.$$end;if(it&&(K=D(i,it,ot)),k=n,j>w.priority)break;if((A=w.scope)&&($=$||w,w.templateUrl||(U("new/isolated scope",R,w,K),x(A)&&(R=w))),S=w.name,!w.templateUrl&&w.controller&&(A=w.controller,P=P||{},U("'"+S+"' controller",P[S],w,K),P[S]=w),(A=w.transclude)&&(V=!0,w.$$tlb||(U("transclusion",B,w,K),B=w),"element"==A?(J=!0,j=w.priority,k=K,K=a.$$element=xr(t.createComment(" "+S+": "+a[S]+" ")),i=K[0],X(c,F(k),i),tt=T(k,s,j,et&&et.name,{nonTlbTranscludeDirective:B})):(k=xr(gt(i)).contents(),K.empty(),tt=T(k,s))),w.template)if(Z=!0,U("template",z,w,K),z=w,A=C(w.template)?w.template(K,a):w.template,A=G(A),w.replace){if(et=w,k=ft(A)?[]:xr(Nr(A)),i=k[0],1!=k.length||1!==i.nodeType)throw ni("tplrt","Template for directive '{0}' must have exactly one root element. {1}",S,"");X(c,K,i);var at={$attr:{}},st=N(i,[],at),ut=e.splice(nt+1,e.length-(nt+1));R&&O(st),e=e.concat(st).concat(ut),H(a,at),rt=e.length}else K.html(A);if(w.templateUrl)Z=!0,U("template",z,w,K),z=w,w.replace&&(et=w),y=I(e.splice(nt,e.length-nt),K,a,c,V&&tt,f,p,{controllerDirectives:P,newIsolateScopeDirective:R,templateDirective:z,nonTlbTranscludeDirective:B}),rt=e.length;else if(w.compile)try{M=w.compile(K,a,tt),C(M)?d(null,M,it,ot):M&&d(M.pre,M.post,it,ot)}catch(ct){u(ct,W(K))}w.terminal&&(y.terminal=!0,j=Math.max(j,w.priority))}return y.scope=$&&$.scope===!0,y.transcludeOnThisElement=V,y.templateOnThisElement=Z,y.transclude=tt,h.hasElementTranscludeDirective=J,y}function O(e){for(var t=0,n=e.length;n>t;t++)e[t]=h(e[t],{$$isolateScope:!0})}function P(t,r,o,s,c,l,f){if(r===c)return null;var p=null;if(i.hasOwnProperty(r))for(var d,g=e.get(r+a),m=0,v=g.length;v>m;m++)try{d=g[m],(s===n||s>d.priority)&&-1!=d.restrict.indexOf(o)&&(l&&(d=h(d,{$$start:l,$$end:f})),t.push(d),p=d)}catch(y){u(y)}return p}function H(e,t){var n=t.$attr,r=e.$attr,i=e.$$element;o(e,function(r,i){"$"!=i.charAt(0)&&(t[i]&&t[i]!==r&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))}),o(t,function(t,o){"class"==o?(E(i,t),e["class"]=(e["class"]?e["class"]+" ":"")+t):"style"==o?(i.attr("style",i.attr("style")+";"+t),e.style=(e.style?e.style+";":"")+t):"$"==o.charAt(0)||e.hasOwnProperty(o)||(e[o]=t,r[o]=n[o])})}function I(e,t,n,r,i,a,s,u){var c,l,h=[],g=t[0],m=e.shift(),v=f({},m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),y=C(m.templateUrl)?m.templateUrl(t,n):m.templateUrl;return t.empty(),p.get(w.getTrustedResourceUrl(y),{cache:d}).success(function(f){var p,d,b,$;if(f=G(f),m.replace){if(b=ft(f)?[]:xr(Nr(f)),p=b[0],1!=b.length||1!==p.nodeType)throw ni("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,y);d={$attr:{}},X(r,t,p);var w=N(p,[],d);x(m.scope)&&O(w),e=w.concat(e),H(n,d)}else p=g,t.html(f);for(e.unshift(v),c=j(e,p,n,i,t,m,a,s,u),o(r,function(e,n){e==p&&(r[n]=t[0])}),l=M(t[0].childNodes,i);h.length;){var C=h.shift(),S=h.shift(),k=h.shift(),T=h.shift(),D=t[0];if(S!==g){var _=S.className;u.hasElementTranscludeDirective&&m.replace||(D=gt(p)),X(k,xr(S),D),E(xr(D),_)}$=c.transcludeOnThisElement?A(C,c.transclude,T):T,c(l,C,D,r,$)}h=null}).error(function(e,t,n,r){throw ni("tpload","Failed to load template: {0}",r.url)
}),function(e,t,n,r,i){var o=i;h?(h.push(t),h.push(n),h.push(r),h.push(o)):(c.transcludeOnThisElement&&(o=A(t,c.transclude,i)),c(l,t,n,r,o))}}function R(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function U(e,t,n,r){if(t)throw ni("multidir","Multiple directives [{0}, {1}] asking for {2} on: {3}",t.name,n.name,e,W(r))}function z(e,t){var n=r(t,!0);n&&e.push({priority:0,compile:function(e){var t=e.parent(),r=t.length;return r&&E(e.parent(),"ng-binding"),function(e,t){var i=t.parent(),o=i.data("$binding")||[];o.push(n),i.data("$binding",o),r||E(i,"ng-binding"),e.$watch(n,function(e){t[0].nodeValue=e})}}})}function B(e,t){if("srcdoc"==t)return w.HTML;var n=wr(e);return"xlinkHref"==t||"FORM"==n&&"action"==t||"IMG"!=n&&("src"==t||"ngSrc"==t)?w.RESOURCE_URL:void 0}function V(e,t,n,i){var o=r(n,!0);if(o){if("multiple"===i&&"SELECT"===wr(e))throw ni("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",W(e));t.push({priority:100,compile:function(){return{pre:function(t,n,a){var s=a.$$observers||(a.$$observers={});if(l.test(i))throw ni("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");o=r(a[i],!0,B(e,i)),o&&(a[i]=o(t),(s[i]||(s[i]=[])).$$inter=!0,(a.$$observers&&a.$$observers[i].$$scope||t).$watch(o,function(e,t){"class"===i&&e!=t?a.$updateClass(e,t):a.$set(i,e)}))}}}})}}function X(e,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(e)for(i=0,o=e.length;o>i;i++)if(e[i]==a){e[i++]=r;for(var c=i,l=c+s-1,f=e.length;f>c;c++,l++)f>l?e[c]=e[l]:delete e[c];e.length-=s-1;break}u&&u.replaceChild(r,a);var p=t.createDocumentFragment();p.appendChild(a),r[xr.expando]=a[xr.expando];for(var h=1,d=n.length;d>h;h++){var g=n[h];xr(g).remove(),p.appendChild(g),delete n[h]}n[0]=r,n.length=1}function Y(e,t){return f(function(){return e.apply(null,arguments)},e,t)}var Q=function(e,t){this.$$element=e,this.$attr=t||{}};Q.prototype={$normalize:Rt,$addClass:function(e){e&&e.length>0&&S.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&S.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=Ut(e,t),r=Ut(t,e);0===n.length?S.removeClass(this.$$element,r):0===r.length?S.addClass(this.$$element,n):S.setClass(this.$$element,n,r)},$set:function(e,t,r,i){var a,s=Mt(this.$$element[0],e);s&&(this.$$element.prop(e,t),i=s),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e],i||(this.$attr[e]=i=K(e,"-"))),a=wr(this.$$element),("A"===a&&"href"===e||"IMG"===a&&"src"===e)&&(this[e]=t=k(t,"src"===e)),r!==!1&&(null===t||t===n?this.$$element.removeAttr(i):this.$$element.attr(i,t));var c=this.$$observers;c&&o(c[e],function(e){try{e(t)}catch(n){u(n)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers={}),i=r[e]||(r[e]=[]);return i.push(t),y.$evalAsync(function(){i.$$inter||t(n[e])}),t}};var Z=r.startSymbol(),J=r.endSymbol(),G="{{"==Z||"}}"==J?g:function(e){return e.replace(/\{\{/g,Z).replace(/}}/g,J)},et=/^ngAttr[A-Z]/;return T}]}function Rt(e){return ct(e.replace(ri,""))}function Ut(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a==i[s])continue e;n+=(n.length>0?" ":"")+a}return n}function zt(){var e={},t=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(t,n){rt(t,"controller"),x(t)?f(e,t):e[t]=n},this.$get=["$injector","$window",function(n,i){return function(o,a){var s,u,c,l;if(b(o)&&(u=o.match(t),c=u[1],l=u[3],o=e.hasOwnProperty(c)?e[c]:it(a.$scope,c,!0)||it(i,c,!0),nt(o,c,!0)),s=n.instantiate(o,a),l){if(!a||"object"!=typeof a.$scope)throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",c||o.name,l);a.$scope[l]=s}return s}}]}function Bt(){this.$get=["$window",function(e){return xr(e.document)}]}function Wt(){this.$get=["$log",function(e){return function(){e.error.apply(e,arguments)}}]}function Vt(e){var t,n,r,i={};return e?(o(e.split("\n"),function(e){r=e.indexOf(":"),t=hr(Nr(e.substr(0,r))),n=Nr(e.substr(r+1)),t&&(i[t]=i[t]?i[t]+", "+n:n)}),i):i}function Xt(e){var t=x(e)?e:n;return function(n){return t||(t=Vt(e)),n?t[hr(n)]||null:t}}function Yt(e,t,n){return C(n)?n(e,t):(o(n,function(n){e=n(e,t)}),e)}function Qt(e){return e>=200&&300>e}function Zt(){var e=/^\s*(\[|\{[^\{])/,t=/[\}\]]\s*$/,r=/^\)\]\}',?\n/,i={"Content-Type":"application/json;charset=utf-8"},a=this.defaults={transformResponse:[function(n){return b(n)&&(n=n.replace(r,""),e.test(n)&&t.test(n)&&(n=z(n))),n}],transformRequest:[function(e){return!x(e)||E(e)||M(e)?e:U(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:q(i),put:q(i),patch:q(i)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},u=this.interceptors=[],c=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(e,t,r,i,l,p){function h(e){function t(e){var t=f({},e,{data:Yt(e.data,e.headers,i.transformResponse)});return Qt(e.status)?t:l.reject(t)}function r(e){function t(e){var t;o(e,function(n,r){C(n)&&(t=n(),null!=t?e[r]=t:delete e[r])})}var n,r,i,s=a.headers,u=f({},e.headers);s=f({},s.common,s[hr(e.method)]);e:for(n in s){r=hr(n);for(i in u)if(hr(i)===r)continue e;u[n]=s[n]}return t(u),u}var i={method:"get",transformRequest:a.transformRequest,transformResponse:a.transformResponse},s=r(e);f(i,e),i.headers=s,i.method=gr(i.method);var u=function(e){s=e.headers;var n=Yt(e.data,Xt(s),e.transformRequest);return v(n)&&o(s,function(e,t){"content-type"===hr(t)&&delete s[t]}),v(e.withCredentials)&&!v(a.withCredentials)&&(e.withCredentials=a.withCredentials),m(e,n,s).then(t,t)},c=[u,n],p=l.when(i);for(o(k,function(e){(e.request||e.requestError)&&c.unshift(e.request,e.requestError),(e.response||e.responseError)&&c.push(e.response,e.responseError)});c.length;){var h=c.shift(),d=c.shift();p=p.then(h,d)}return p.success=function(e){return p.then(function(t){e(t.data,t.status,t.headers,i)}),p},p.error=function(e){return p.then(null,function(t){e(t.data,t.status,t.headers,i)}),p},p}function d(){o(arguments,function(e){h[e]=function(t,n){return h(f(n||{},{method:e,url:t}))}})}function g(){o(arguments,function(e){h[e]=function(t,n,r){return h(f(r||{},{method:e,url:t,data:n}))}})}function m(r,o,s){function u(e,t,n,r){p&&(Qt(e)?p.put(b,[e,t,Vt(n),r]):p.remove(b)),c(t,e,n,r),i.$$phase||i.$apply()}function c(e,t,n,i){t=Math.max(t,0),(Qt(t)?g.resolve:g.reject)({data:e,status:t,headers:Xt(n),config:r,statusText:i})}function f(){var e=j(h.pendingRequests,r);-1!==e&&h.pendingRequests.splice(e,1)}var p,d,g=l.defer(),m=g.promise,b=$(r.url,r.params);if(h.pendingRequests.push(r),m.then(f,f),!r.cache&&!a.cache||r.cache===!1||"GET"!==r.method&&"JSONP"!==r.method||(p=x(r.cache)?r.cache:x(a.cache)?a.cache:S),p)if(d=p.get(b),y(d)){if(A(d))return d.then(f,f),d;Ar(d)?c(d[1],d[0],q(d[2]),d[3]):c(d,200,{},"OK")}else p.put(b,m);if(v(d)){var w=Hn(r.url)?t.cookies()[r.xsrfCookieName||a.xsrfCookieName]:n;w&&(s[r.xsrfHeaderName||a.xsrfHeaderName]=w),e(r.method,b,o,u,s,r.timeout,r.withCredentials,r.responseType)}return m}function $(e,t){if(!t)return e;var n=[];return s(t,function(e,t){null===e||v(e)||(Ar(e)||(e=[e]),o(e,function(e){x(e)&&(w(e)?e=e.toISOString():x(e)&&(e=U(e))),n.push(Z(t)+"="+Z(e))}))}),n.length>0&&(e+=(-1==e.indexOf("?")?"?":"&")+n.join("&")),e}var S=r("$http"),k=[];return o(u,function(e){k.unshift(b(e)?p.get(e):p.invoke(e))}),o(c,function(e,t){var n=b(e)?p.get(e):p.invoke(e);k.splice(t,0,{response:function(e){return n(l.when(e))},responseError:function(e){return n(l.reject(e))}})}),h.pendingRequests=[],d("get","delete","head","jsonp"),g("post","put"),h.defaults=a,h}]}function Jt(t){if(8>=yr&&(!t.match(/^(get|post|head|put|delete|options)$/i)||!e.XMLHttpRequest))return new e.ActiveXObject("Microsoft.XMLHTTP");if(e.XMLHttpRequest)return new e.XMLHttpRequest;throw r("$httpBackend")("noxhr","This browser does not support XMLHttpRequest.")}function Gt(){this.$get=["$browser","$window","$document",function(e,t,n){return Kt(e,Jt,e.defer,t.angular.callbacks,n[0])}]}function Kt(e,t,n,r,i){function a(e,t,n){var o=i.createElement("script"),a=null;return o.type="text/javascript",o.src=e,o.async=!0,a=function(e){Lr(o,"load",a),Lr(o,"error",a),i.body.removeChild(o),o=null;var s=-1,u="unknown";e&&("load"!==e.type||r[t].called||(e={type:"error"}),u=e.type,s="error"===e.type?404:200),n&&n(s,u)},qr(o,"load",a),qr(o,"error",a),8>=yr&&(o.onreadystatechange=function(){b(o.readyState)&&/loaded|complete/.test(o.readyState)&&(o.onreadystatechange=null,a({type:"load"}))}),i.body.appendChild(o),a}var s=-1;return function(i,u,c,l,f,p,h,g){function m(){x=s,$&&$(),w&&w.abort()}function v(t,r,i,o,a){S&&n.cancel(S),$=w=null,0===r&&(r=i?200:"file"==Ln(u).protocol?404:0),r=1223===r?204:r,a=a||"",t(r,i,o,a),e.$$completeOutstandingRequest(d)}var x;if(e.$$incOutstandingRequestCount(),u=u||e.url(),"jsonp"==hr(i)){var b="_"+(r.counter++).toString(36);r[b]=function(e){r[b].data=e,r[b].called=!0};var $=a(u.replace("JSON_CALLBACK","angular.callbacks."+b),b,function(e,t){v(l,e,r[b].data,"",t),r[b]=d})}else{var w=t(i);if(w.open(i,u,!0),o(f,function(e,t){y(e)&&w.setRequestHeader(t,e)}),w.onreadystatechange=function(){if(w&&4==w.readyState){var e=null,t=null,n="";x!==s&&(e=w.getAllResponseHeaders(),t="response"in w?w.response:w.responseText),x===s&&10>yr||(n=w.statusText),v(l,x||w.status,t,e,n)}},h&&(w.withCredentials=!0),g)try{w.responseType=g}catch(C){if("json"!==g)throw C}w.send(c||null)}if(p>0)var S=n(m,p);else A(p)&&p.then(m)}}function en(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(o,u,c){for(var l,f,p,h,d=0,g=[],m=o.length,v=!1,y=[];m>d;)-1!=(l=o.indexOf(e,d))&&-1!=(f=o.indexOf(t,l+a))?(d!=l&&g.push(o.substring(d,l)),g.push(p=n(h=o.substring(l+a,f))),p.exp=h,d=f+s,v=!0):(d!=m&&g.push(o.substring(d)),d=m);if((m=g.length)||(g.push(""),m=1),c&&g.length>1)throw ii("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",o);return!u||v?(y.length=m,p=function(e){try{for(var t,n=0,a=m;a>n;n++){if("function"==typeof(t=g[n]))if(t=t(e),t=c?i.getTrusted(c,t):i.valueOf(t),null==t)t="";else switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=U(t)}y[n]=t}return y.join("")}catch(s){var u=ii("interr","Can't interpolate: {0}\n{1}",o,s.toString());r(u)}},p.exp=o,p.parts=g,p):void 0}var a=e.length,s=t.length;return o.startSymbol=function(){return e},o.endSymbol=function(){return t},o}]}function tn(){this.$get=["$rootScope","$window","$q",function(e,t,n){function r(r,o,a,s){var u=t.setInterval,c=t.clearInterval,l=n.defer(),f=l.promise,p=0,h=y(s)&&!s;return a=y(a)?a:0,f.then(null,null,r),f.$$intervalId=u(function(){l.notify(p++),a>0&&p>=a&&(l.resolve(p),c(f.$$intervalId),delete i[f.$$intervalId]),h||e.$apply()},o),i[f.$$intervalId]=l,f}var i={};return r.cancel=function(e){return e&&e.$$intervalId in i?(i[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete i[e.$$intervalId],!0):!1},r}]}function nn(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(e){return 1===e?"one":"other"}}}}function rn(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=Q(t[n]);return t.join("/")}function on(e,t,n){var r=Ln(e,n);t.$$protocol=r.protocol,t.$$host=r.hostname,t.$$port=p(r.port)||ai[r.protocol]||null}function an(e,t,n){var r="/"!==e.charAt(0);r&&(e="/"+e);var i=Ln(e,n);t.$$path=decodeURIComponent(r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname),t.$$search=X(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function sn(e,t){return 0===t.indexOf(e)?t.substr(e.length):void 0}function un(e){var t=e.indexOf("#");return-1==t?e:e.substr(0,t)}function cn(e){return e.substr(0,un(e).lastIndexOf("/")+1)}function ln(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function fn(e,t){this.$$html5=!0,t=t||"";var r=cn(e);on(e,this,e),this.$$parse=function(t){var n=sn(r,t);if(!b(n))throw si("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,r);an(n,this,e),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=Y(this.$$search),t=this.$$hash?"#"+Q(this.$$hash):"";this.$$url=rn(this.$$path)+(e?"?"+e:"")+t,this.$$absUrl=r+this.$$url.substr(1)},this.$$rewrite=function(i){var o,a;return(o=sn(e,i))!==n?(a=o,(o=sn(t,o))!==n?r+(sn("/",o)||o):e+a):(o=sn(r,i))!==n?r+o:r==i+"/"?r:void 0}}function pn(e,t){var n=cn(e);on(e,this,e),this.$$parse=function(r){function i(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===t.indexOf(n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}var o=sn(e,r)||sn(n,r),a="#"==o.charAt(0)?sn(t,o):this.$$html5?o:"";if(!b(a))throw si("ihshprfx",'Invalid url "{0}", missing hash prefix "{1}".',r,t);an(a,this,e),this.$$path=i(this.$$path,a,e),this.$$compose()},this.$$compose=function(){var n=Y(this.$$search),r=this.$$hash?"#"+Q(this.$$hash):"";this.$$url=rn(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=e+(this.$$url?t+this.$$url:"")},this.$$rewrite=function(t){return un(e)==un(t)?t:void 0}}function hn(e,t){this.$$html5=!0,pn.apply(this,arguments);var n=cn(e);this.$$rewrite=function(r){var i;return e==un(r)?r:(i=sn(n,r))?e+t+i:n===r+"/"?n:void 0},this.$$compose=function(){var n=Y(this.$$search),r=this.$$hash?"#"+Q(this.$$hash):"";this.$$url=rn(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=e+t+this.$$url}}function dn(e){return function(){return this[e]}}function gn(e,t){return function(n){return v(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function mn(){var t="",n=!1;this.hashPrefix=function(e){return y(e)?(t=e,this):t},this.html5Mode=function(e){return y(e)?(n=e,this):n},this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(r,i,o,a){function s(e){r.$broadcast("$locationChangeSuccess",u.absUrl(),e)}var u,c,l,f=i.baseHref(),p=i.url();n?(l=ln(p)+(f||"/"),c=o.history?fn:hn):(l=un(p),c=pn),u=new c(l,"#"+t),u.$$parse(u.$$rewrite(p));var h=/^\s*(javascript|mailto):/i;a.on("click",function(n){if(!n.ctrlKey&&!n.metaKey&&2!=n.which){for(var o=xr(n.target);"a"!==hr(o[0].nodeName);)if(o[0]===a[0]||!(o=o.parent())[0])return;var s=o.prop("href");if(x(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=Ln(s.animVal).href),!h.test(s)){if(c===hn){var f=o.attr("href")||o.attr("xlink:href");if(f.indexOf("://")<0){var p="#"+t;if("/"==f[0])s=l+p+f;else if("#"==f[0])s=l+p+(u.path()||"/")+f;else{for(var d=u.path().split("/"),g=f.split("/"),m=0;m<g.length;m++)"."!=g[m]&&(".."==g[m]?d.pop():g[m].length&&d.push(g[m]));s=l+p+d.join("/")}}}var v=u.$$rewrite(s);s&&!o.attr("target")&&v&&!n.isDefaultPrevented()&&(n.preventDefault(),v!=i.url()&&(u.$$parse(v),r.$apply(),e.angular["ff-684208-preventDefault"]=!0))}}}),u.absUrl()!=p&&i.url(u.absUrl(),!0),i.onUrlChange(function(e){u.absUrl()!=e&&(r.$evalAsync(function(){var t=u.absUrl();u.$$parse(e),r.$broadcast("$locationChangeStart",e,t).defaultPrevented?(u.$$parse(t),i.url(t)):s(t)}),r.$$phase||r.$digest())});var d=0;return r.$watch(function(){var e=i.url(),t=u.$$replace;return d&&e==u.absUrl()||(d++,r.$evalAsync(function(){r.$broadcast("$locationChangeStart",u.absUrl(),e).defaultPrevented?u.$$parse(e):(i.url(u.absUrl(),t),s(e))})),u.$$replace=!1,d}),u}]}function vn(){var e=!0,t=this;this.debugEnabled=function(t){return y(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){return e instanceof Error&&(e.stack?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function i(e){var t=n.console||{},i=t[e]||t.log||d,a=!1;try{a=!!i.apply}catch(s){}return a?function(){var e=[];return o(arguments,function(t){e.push(r(t))}),i.apply(t,e)}:function(e,t){i(e,null==t?"":t)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function yn(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw ci("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return e}function xn(e,t){if(e){if(e.constructor===e)throw ci("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.document&&e.location&&e.alert&&e.setInterval)throw ci("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw ci("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(e===Object)throw ci("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}return e}function bn(e,t){if(e){if(e.constructor===e)throw ci("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e===fi||e===pi||hi&&e===hi)throw ci("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}function $n(e,t,r,i,o){o=o||{};for(var a,s=t.split("."),u=0;s.length>1;u++){a=yn(s.shift(),i);var c=e[a];c||(c={},e[a]=c),e=c,e.then&&o.unwrapPromises&&(ui(i),"$$v"in e||function(e){e.then(function(t){e.$$v=t})}(e),e.$$v===n&&(e.$$v={}),e=e.$$v)}return a=yn(s.shift(),i),xn(e,i),xn(e[a],i),e[a]=r,r}function wn(e,t,r,i,o,a,s){return yn(e,a),yn(t,a),yn(r,a),yn(i,a),yn(o,a),s.unwrapPromises?function(s,u){var c,l=u&&u.hasOwnProperty(e)?u:s;return null==l?l:(l=l[e],l&&l.then&&(ui(a),"$$v"in l||(c=l,c.$$v=n,c.then(function(e){c.$$v=e})),l=l.$$v),t?null==l?n:(l=l[t],l&&l.then&&(ui(a),"$$v"in l||(c=l,c.$$v=n,c.then(function(e){c.$$v=e})),l=l.$$v),r?null==l?n:(l=l[r],l&&l.then&&(ui(a),"$$v"in l||(c=l,c.$$v=n,c.then(function(e){c.$$v=e})),l=l.$$v),i?null==l?n:(l=l[i],l&&l.then&&(ui(a),"$$v"in l||(c=l,c.$$v=n,c.then(function(e){c.$$v=e})),l=l.$$v),o?null==l?n:(l=l[o],l&&l.then&&(ui(a),"$$v"in l||(c=l,c.$$v=n,c.then(function(e){c.$$v=e})),l=l.$$v),l):l):l):l):l)}:function(a,s){var u=s&&s.hasOwnProperty(e)?s:a;return null==u?u:(u=u[e],t?null==u?n:(u=u[t],r?null==u?n:(u=u[r],i?null==u?n:(u=u[i],o?null==u?n:u=u[o]:u):u):u):u)}}function Cn(e,t,r){if(yi.hasOwnProperty(e))return yi[e];var i,a=e.split("."),s=a.length;if(t.csp)i=6>s?wn(a[0],a[1],a[2],a[3],a[4],r,t):function(e,i){var o,u=0;do o=wn(a[u++],a[u++],a[u++],a[u++],a[u++],r,t)(e,i),i=n,e=o;while(s>u);return o};else{var u="var p;\n";o(a,function(e,n){yn(e,r),u+="if(s == null) return undefined;\ns="+(n?"s":'((k&&k.hasOwnProperty("'+e+'"))?k:s)')+'["'+e+'"]'+";\n"+(t.unwrapPromises?'if (s && s.then) {\n pw("'+r.replace(/(["\r\n])/g,"\\$1")+'");\n'+' if (!("$$v" in s)) {\n'+" p=s;\n"+" p.$$v = undefined;\n"+" p.then(function(v) {p.$$v=v;});\n"+"}\n"+" s=s.$$v\n"+"}\n":"")}),u+="return s;";var c=new Function("s","k","pw",u);c.toString=m(u),i=t.unwrapPromises?function(e,t){return c(e,t,ui)}:c}return"hasOwnProperty"!==e&&(yi[e]=i),i}function Sn(){var e={},t={csp:!1,unwrapPromises:!1,logPromiseWarnings:!0};this.unwrapPromises=function(e){return y(e)?(t.unwrapPromises=!!e,this):t.unwrapPromises},this.logPromiseWarnings=function(e){return y(e)?(t.logPromiseWarnings=e,this):t.logPromiseWarnings},this.$get=["$filter","$sniffer","$log",function(n,r,i){return t.csp=r.csp,ui=function(e){t.logPromiseWarnings&&!li.hasOwnProperty(e)&&(li[e]=!0,i.warn("[$parse] Promise found in the expression `"+e+"`. "+"Automatic unwrapping of promises in Angular expressions is deprecated."))},function(r){var i;switch(typeof r){case"string":if(e.hasOwnProperty(r))return e[r];var o=new mi(t),a=new vi(o,n,t);return i=a.parse(r),"hasOwnProperty"!==r&&(e[r]=i),i;case"function":return r;default:return d}}}]}function kn(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return Tn(function(t){e.$evalAsync(t)},t)}]}function Tn(e,t){function r(e){return e}function i(e){return c(e)}function a(e){var t=s(),n=0,r=Ar(e)?[]:{};return o(e,function(e,i){n++,u(e).then(function(e){r.hasOwnProperty(i)||(r[i]=e,--n||t.resolve(r))},function(e){r.hasOwnProperty(i)||t.reject(e)})}),0===n&&t.resolve(r),t.promise}var s=function(){var o,a,c=[];return a={resolve:function(t){if(c){var r=c;c=n,o=u(t),r.length&&e(function(){for(var e,t=0,n=r.length;n>t;t++)e=r[t],o.then(e[0],e[1],e[2])})}},reject:function(e){a.resolve(l(e))},notify:function(t){if(c){var n=c;c.length&&e(function(){for(var e,r=0,i=n.length;i>r;r++)e=n[r],e[2](t)})}},promise:{then:function(e,n,a){var u=s(),l=function(n){try{u.resolve((C(e)?e:r)(n))}catch(i){u.reject(i),t(i)}},f=function(e){try{u.resolve((C(n)?n:i)(e))}catch(r){u.reject(r),t(r)}},p=function(e){try{u.notify((C(a)?a:r)(e))}catch(n){t(n)}};return c?c.push([l,f,p]):o.then(l,f,p),u.promise},"catch":function(e){return this.then(null,e)},"finally":function(e){function t(e,t){var n=s();return t?n.resolve(e):n.reject(e),n.promise}function n(n,i){var o=null;try{o=(e||r)()}catch(a){return t(a,!1)}return A(o)?o.then(function(){return t(n,i)},function(e){return t(e,!1)}):t(n,i)}return this.then(function(e){return n(e,!0)},function(e){return n(e,!1)})}}}},u=function(t){return A(t)?t:{then:function(n){var r=s();return e(function(){r.resolve(n(t))}),r.promise}}},c=function(e){var t=s();return t.reject(e),t.promise},l=function(n){return{then:function(r,o){var a=s();return e(function(){try{a.resolve((C(o)?o:i)(n))}catch(e){a.reject(e),t(e)}}),a.promise}}},f=function(n,o,a,l){var f,p=s(),h=function(e){try{return(C(o)?o:r)(e)}catch(n){return t(n),c(n)}},d=function(e){try{return(C(a)?a:i)(e)}catch(n){return t(n),c(n)}},g=function(e){try{return(C(l)?l:r)(e)}catch(n){t(n)}};return e(function(){u(n).then(function(e){f||(f=!0,p.resolve(u(e).then(h,d,g)))},function(e){f||(f=!0,p.resolve(d(e)))},function(e){f||p.notify(g(e))})}),p.promise};return{defer:s,reject:c,when:f,all:a}}function En(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function Mn(){var e=10,t=r("$rootScope"),n=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,a,s,u){function l(){this.$id=c(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this["this"]=this.$root=this,this.$$destroyed=!1,this.$$asyncQueue=[],this.$$postDigestQueue=[],this.$$listeners={},this.$$listenerCount={},this.$$isolateBindings={}}function f(e){if(v.$$phase)throw t("inprog","{0} already in progress",v.$$phase);v.$$phase=e}function p(){v.$$phase=null}function h(e,t){var n=s(e);return nt(n,t),n}function g(e,t,n){do e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n];while(e=e.$parent)}function m(){}l.prototype={constructor:l,$new:function(e){var t;return e?(t=new l,t.$root=this.$root,t.$$asyncQueue=this.$$asyncQueue,t.$$postDigestQueue=this.$$postDigestQueue):(this.$$childScopeClass||(this.$$childScopeClass=function(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$id=c(),this.$$childScopeClass=null},this.$$childScopeClass.prototype=this),t=new this.$$childScopeClass),t["this"]=t,t.$parent=this,t.$$prevSibling=this.$$childTail,this.$$childHead?(this.$$childTail.$$nextSibling=t,this.$$childTail=t):this.$$childHead=this.$$childTail=t,t},$watch:function(e,t,r){var i=this,o=h(e,"watch"),a=i.$$watchers,s={fn:t,last:m,get:o,exp:e,eq:!!r};if(n=null,!C(t)){var u=h(t||d,"listener");s.fn=function(e,t,n){u(n)}}if("string"==typeof e&&o.constant){var c=s.fn;s.fn=function(e,t,n){c.call(this,e,t,n),O(a,s)}}return a||(a=i.$$watchers=[]),a.unshift(s),function(){O(a,s),n=null}},$watchCollection:function(e,t){function n(){o=p(c);var e,t,n;if(x(o))if(i(o)){a!==h&&(a=h,m=a.length=0,f++),e=o.length,m!==e&&(f++,a.length=m=e);for(var r=0;e>r;r++)n=a[r]!==a[r]&&o[r]!==o[r],n||a[r]===o[r]||(f++,a[r]=o[r])}else{a!==d&&(a=d={},m=0,f++),e=0;for(t in o)o.hasOwnProperty(t)&&(e++,a.hasOwnProperty(t)?(n=a[t]!==a[t]&&o[t]!==o[t],n||a[t]===o[t]||(f++,a[t]=o[t])):(m++,a[t]=o[t],f++));if(m>e){f++;for(t in a)a.hasOwnProperty(t)&&!o.hasOwnProperty(t)&&(m--,delete a[t])}}else a!==o&&(a=o,f++);return f}function r(){if(g?(g=!1,t(o,o,c)):t(o,u,c),l)if(x(o))if(i(o)){u=new Array(o.length);for(var e=0;e<o.length;e++)u[e]=o[e]}else{u={};for(var n in o)dr.call(o,n)&&(u[n]=o[n])}else u=o}var o,a,u,c=this,l=t.length>1,f=0,p=s(e),h=[],d={},g=!0,m=0;return this.$watch(n,r)},$digest:function(){var r,i,o,s,u,c,l,h,d,g,v,y=this.$$asyncQueue,x=this.$$postDigestQueue,b=e,$=this,w=[];f("$digest"),n=null;do{for(c=!1,h=$;y.length;){try{v=y.shift(),v.scope.$eval(v.expression)}catch(S){p(),a(S)}n=null}e:do{if(s=h.$$watchers)for(u=s.length;u--;)try{if(r=s[u])if((i=r.get(h))===(o=r.last)||(r.eq?L(i,o):"number"==typeof i&&"number"==typeof o&&isNaN(i)&&isNaN(o))){if(r===n){c=!1;break e}}else c=!0,n=r,r.last=r.eq?P(i,null):i,r.fn(i,o===m?i:o,h),5>b&&(d=4-b,w[d]||(w[d]=[]),g=C(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,g+="; newVal: "+U(i)+"; oldVal: "+U(o),w[d].push(g))}catch(S){p(),a(S)}if(!(l=h.$$childHead||h!==$&&h.$$nextSibling))for(;h!==$&&!(l=h.$$nextSibling);)h=h.$parent}while(h=l);if((c||y.length)&&!b--)throw p(),t("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,U(w))}while(c||y.length);for(p();x.length;)try{x.shift()()}catch(S){a(S)}},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this!==v&&(o(this.$$listenerCount,I(null,g,this)),e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e.$$childTail==this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=null,this.$$listeners={},this.$$watchers=this.$$asyncQueue=this.$$postDigestQueue=[],this.$destroy=this.$digest=this.$apply=d,this.$on=this.$watch=function(){return d})}},$eval:function(e,t){return s(e)(this,t)},$evalAsync:function(e){v.$$phase||v.$$asyncQueue.length||u.defer(function(){v.$$asyncQueue.length&&v.$digest()}),this.$$asyncQueue.push({scope:this,expression:e})},$$postDigest:function(e){this.$$postDigestQueue.push(e)},$apply:function(e){try{return f("$apply"),this.$eval(e)}catch(t){a(t)}finally{p();try{v.$digest()}catch(t){throw a(t),t}}},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++;while(r=r.$parent);var i=this;return function(){n[j(n,t)]=null,g(i,1,e)}},$emit:function(e){var t,n,r,i=[],o=this,s=!1,u={name:e,targetScope:o,stopPropagation:function(){s=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},c=H([u],arguments,1);do{for(t=o.$$listeners[e]||i,u.currentScope=o,n=0,r=t.length;r>n;n++)if(t[n])try{t[n].apply(null,c)}catch(l){a(l)}else t.splice(n,1),n--,r--;if(s)return u;o=o.$parent}while(o);return u},$broadcast:function(e){for(var t,n,r,i=this,o=i,s=i,u={name:e,targetScope:i,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},c=H([u],arguments,1);o=s;){for(u.currentScope=o,t=o.$$listeners[e]||[],n=0,r=t.length;r>n;n++)if(t[n])try{t[n].apply(null,c)}catch(l){a(l)}else t.splice(n,1),n--,r--;if(!(s=o.$$listenerCount[e]&&o.$$childHead||o!==i&&o.$$nextSibling))for(;o!==i&&!(s=o.$$nextSibling);)o=o.$parent}return u}};var v=new l;return v}]}function An(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*(https?|ftp|file):|data:image\//;this.aHrefSanitizationWhitelist=function(t){return y(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i,o=r?t:e;return yr&&!(yr>=8)||(i=Ln(n).href,""===i||i.match(o))?n:"unsafe:"+i}}}function Nn(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}function Dn(e){if("self"===e)return e;if(b(e)){if(e.indexOf("***")>-1)throw xi("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=Nn(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if(S(e))return new RegExp("^"+e.source+"$");throw xi("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function _n(e){var t=[];return y(e)&&o(e,function(e){t.push(Dn(e))}),t}function jn(){this.SCE_CONTEXTS=bi;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=_n(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=_n(e)),t},this.$get=["$injector",function(r){function i(e,t){return"self"===e?Hn(t):!!e.exec(t.href)}function o(n){var r,o,a=Ln(n.toString()),s=!1;for(r=0,o=e.length;o>r;r++)if(i(e[r],a)){s=!0;break}if(s)for(r=0,o=t.length;o>r;r++)if(i(t[r],a)){s=!1;break}return s}function a(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function s(e,t){var r=p.hasOwnProperty(e)?p[e]:null;if(!r)throw xi("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||t===n||""===t)return t;if("string"!=typeof t)throw xi("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new r(t)}function u(e){return e instanceof f?e.$$unwrapTrustedValue():e}function c(e,t){if(null===t||t===n||""===t)return t;var r=p.hasOwnProperty(e)?p[e]:null;if(r&&t instanceof r)return t.$$unwrapTrustedValue();if(e===bi.RESOURCE_URL){if(o(t))return t;throw xi("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",t.toString())}if(e===bi.HTML)return l(t);throw xi("unsafe","Attempting to use an unsafe value in a safe context.")}var l=function(){throw xi("unsafe","Attempting to use an unsafe value in a safe context.")};r.has("$sanitize")&&(l=r.get("$sanitize"));var f=a(),p={};return p[bi.HTML]=a(f),p[bi.CSS]=a(f),p[bi.URL]=a(f),p[bi.JS]=a(f),p[bi.RESOURCE_URL]=a(p[bi.URL]),{trustAs:s,getTrusted:c,valueOf:u}}]}function On(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sniffer","$sceDelegate",function(t,n,r){if(e&&n.msie&&n.msieDocumentMode<8)throw xi("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 9 in quirks mode. You can fix this by adding the text <!doctype html> to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var i=q(bi);i.isEnabled=function(){return e},i.trustAs=r.trustAs,i.getTrusted=r.getTrusted,i.valueOf=r.valueOf,e||(i.trustAs=i.getTrusted=function(e,t){return t},i.valueOf=g),i.parseAs=function(e,n){var r=t(n);return r.literal&&r.constant?r:function(t,n){return i.getTrusted(e,r(t,n))}};var a=i.parseAs,s=i.getTrusted,u=i.trustAs;return o(bi,function(e,t){var n=hr(t);i[ct("parse_as_"+n)]=function(t){return a(e,t)},i[ct("get_trusted_"+n)]=function(t){return s(e,t)},i[ct("trust_as_"+n)]=function(t){return u(e,t)}}),i}]}function Pn(){this.$get=["$window","$document",function(e,t){var n,r,i={},o=p((/android (\d+)/.exec(hr((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},u=s.documentMode,c=/^(Moz|webkit|O|ms)(?=[A-Z])/,l=s.body&&s.body.style,f=!1,h=!1;if(l){for(var d in l)if(r=c.exec(d)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);
break}n||(n="WebkitOpacity"in l&&"webkit"),f=!!("transition"in l||n+"Transition"in l),h=!!("animation"in l||n+"Animation"in l),!o||f&&h||(f=b(s.body.style.webkitTransition),h=b(s.body.style.webkitAnimation))}return{history:!(!e.history||!e.history.pushState||4>o||a),hashchange:"onhashchange"in e&&(!u||u>7),hasEvent:function(e){if("input"==e&&9==yr)return!1;if(v(i[e])){var t=s.createElement("div");i[e]="on"+e in t}return i[e]},csp:Dr(),vendorPrefix:n,transitions:f,animations:h,android:o,msie:yr,msieDocumentMode:u}}]}function qn(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(e,t,n,r){function i(i,a,s){var u,c=n.defer(),l=c.promise,f=y(s)&&!s;return u=t.defer(function(){try{c.resolve(i())}catch(t){c.reject(t),r(t)}finally{delete o[l.$$timeoutId]}f||e.$apply()},a),l.$$timeoutId=u,o[u]=c,l}var o={};return i.cancel=function(e){return e&&e.$$timeoutId in o?(o[e.$$timeoutId].reject("canceled"),delete o[e.$$timeoutId],t.defer.cancel(e.$$timeoutId)):!1},i}]}function Ln(e){var t=e;return yr&&($i.setAttribute("href",t),t=$i.href),$i.setAttribute("href",t),{href:$i.href,protocol:$i.protocol?$i.protocol.replace(/:$/,""):"",host:$i.host,search:$i.search?$i.search.replace(/^\?/,""):"",hash:$i.hash?$i.hash.replace(/^#/,""):"",hostname:$i.hostname,port:$i.port,pathname:"/"===$i.pathname.charAt(0)?$i.pathname:"/"+$i.pathname}}function Hn(e){var t=b(e)?Ln(e):e;return t.protocol===wi.protocol&&t.host===wi.host}function Fn(){this.$get=m(e)}function In(e){function t(r,i){if(x(r)){var a={};return o(r,function(e,n){a[n]=t(n,e)}),a}return e.factory(r+n,i)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",Un),t("date",Zn),t("filter",Rn),t("json",Jn),t("limitTo",Gn),t("lowercase",Ei),t("number",zn),t("orderBy",Kn),t("uppercase",Mi)}function Rn(){return function(e,t,n){if(!Ar(e))return e;var r=typeof n,i=[];i.check=function(e){for(var t=0;t<i.length;t++)if(!i[t](e))return!1;return!0},"function"!==r&&(n="boolean"===r&&n?function(e,t){return Er.equals(e,t)}:function(e,t){if(e&&t&&"object"==typeof e&&"object"==typeof t){for(var r in e)if("$"!==r.charAt(0)&&dr.call(e,r)&&n(e[r],t[r]))return!0;return!1}return t=(""+t).toLowerCase(),(""+e).toLowerCase().indexOf(t)>-1});var o=function(e,t){if("string"==typeof t&&"!"===t.charAt(0))return!o(e,t.substr(1));switch(typeof e){case"boolean":case"number":case"string":return n(e,t);case"object":switch(typeof t){case"object":return n(e,t);default:for(var r in e)if("$"!==r.charAt(0)&&o(e[r],t))return!0}return!1;case"array":for(var i=0;i<e.length;i++)if(o(e[i],t))return!0;return!1;default:return!1}};switch(typeof t){case"boolean":case"number":case"string":t={$:t};case"object":for(var a in t)!function(e){"undefined"!=typeof t[e]&&i.push(function(n){return o("$"==e?n:n&&n[e],t[e])})}(a);break;case"function":i.push(t);break;default:return e}for(var s=[],u=0;u<e.length;u++){var c=e[u];i.check(c)&&s.push(c)}return s}}function Un(e){var t=e.NUMBER_FORMATS;return function(e,n){return v(n)&&(n=t.CURRENCY_SYM),Bn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,2).replace(/\u00A4/g,n)}}function zn(e){var t=e.NUMBER_FORMATS;return function(e,n){return Bn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Bn(e,t,n,r,i){if(null==e||!isFinite(e)||x(e))return"";var o=0>e;e=Math.abs(e);var a=e+"",s="",u=[],c=!1;if(-1!==a.indexOf("e")){var l=a.match(/([\d\.]+)e(-?)(\d+)/);l&&"-"==l[2]&&l[3]>i+1?(a="0",e=0):(s=a,c=!0)}if(c)i>0&&e>-1&&1>e&&(s=e.toFixed(i));else{var f=(a.split(Ci)[1]||"").length;v(i)&&(i=Math.min(Math.max(t.minFrac,f),t.maxFrac)),e=+(Math.round(+(e.toString()+"e"+i)).toString()+"e"+-i);var p=(""+e).split(Ci),h=p[0];p=p[1]||"";var d,g=0,m=t.lgSize,y=t.gSize;if(h.length>=m+y)for(g=h.length-m,d=0;g>d;d++)0===(g-d)%y&&0!==d&&(s+=n),s+=h.charAt(d);for(d=g;d<h.length;d++)0===(h.length-d)%m&&0!==d&&(s+=n),s+=h.charAt(d);for(;p.length<i;)p+="0";i&&"0"!==i&&(s+=r+p.substr(0,i))}return u.push(o?t.negPre:t.posPre),u.push(s),u.push(o?t.negSuf:t.posSuf),u.join("")}function Wn(e,t,n){var r="";for(0>e&&(r="-",e=-e),e=""+e;e.length<t;)e="0"+e;return n&&(e=e.substr(e.length-t)),r+e}function Vn(e,t,n,r){return n=n||0,function(i){var o=i["get"+e]();return(n>0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),Wn(o,t,r)}}function Xn(e,t){return function(n,r){var i=n["get"+e](),o=gr(t?"SHORT"+e:e);return r[o][i]}}function Yn(e){var t=-1*e.getTimezoneOffset(),n=t>=0?"+":"";return n+=Wn(Math[t>0?"floor":"ceil"](t/60),2)+Wn(Math.abs(t%60),2)}function Qn(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function Zn(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,a=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=p(t[9]+t[10]),o=p(t[9]+t[11])),a.call(r,p(t[1]),p(t[2])-1,p(t[3]));var u=p(t[4]||0)-i,c=p(t[5]||0)-o,l=p(t[6]||0),f=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,u,c,l,f),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r){var i,a,s="",u=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,b(n)&&(n=Ti.test(n)?p(n):t(n)),$(n)&&(n=new Date(n)),!w(n))return n;for(;r;)a=ki.exec(r),a?(u=H(u,a,1),r=u.pop()):(u.push(r),r=null);return o(u,function(t){i=Si[t],s+=i?i(n,e.DATETIME_FORMATS):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),s}}function Jn(){return function(e){return U(e,!0)}}function Gn(){return function(e,t){if(!Ar(e)&&!b(e))return e;if(t=1/0===Math.abs(Number(t))?Number(t):p(t),b(e))return t?t>=0?e.slice(0,t):e.slice(t,e.length):"";var n,r,i=[];for(t>e.length?t=e.length:t<-e.length&&(t=-e.length),t>0?(n=0,r=t):(n=e.length+t,r=e.length);r>n;n++)i.push(e[n]);return i}}function Kn(e){return function(t,n,r){function i(e,t){for(var r=0;r<n.length;r++){var i=n[r](e,t);if(0!==i)return i}return 0}function o(e,t){return B(t)?function(t,n){return e(n,t)}:e}function a(e,t){var n=typeof e,r=typeof t;return n==r?(w(e)&&w(t)&&(e=e.valueOf(),t=t.valueOf()),"string"==n&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:t>e?-1:1):r>n?-1:1}if(!Ar(t))return t;if(!n)return t;n=Ar(n)?n:[n],n=D(n,function(t){var n=!1,r=t||g;if(b(t)&&(("+"==t.charAt(0)||"-"==t.charAt(0))&&(n="-"==t.charAt(0),t=t.substring(1)),r=e(t),r.constant)){var i=r();return o(function(e,t){return a(e[i],t[i])},n)}return o(function(e,t){return a(r(e),r(t))},n)});for(var s=[],u=0;u<t.length;u++)s.push(t[u]);return s.sort(o(i,r))}}function er(e){return C(e)&&(e={link:e}),e.restrict=e.restrict||"AC",m(e)}function tr(e,t,n,r){function i(t,n){n=n?"-"+K(n,"-"):"",r.removeClass(e,(t?Ui:Ri)+n),r.addClass(e,(t?Ri:Ui)+n)}var a=this,s=e.parent().controller("form")||Di,u=0,c=a.$error={},l=[];a.$name=t.name||t.ngForm,a.$dirty=!1,a.$pristine=!0,a.$valid=!0,a.$invalid=!1,s.$addControl(a),e.addClass(zi),i(!0),a.$addControl=function(e){rt(e.$name,"input"),l.push(e),e.$name&&(a[e.$name]=e)},a.$removeControl=function(e){e.$name&&a[e.$name]===e&&delete a[e.$name],o(c,function(t,n){a.$setValidity(n,!0,e)}),O(l,e)},a.$setValidity=function(e,t,n){var r=c[e];if(t)r&&(O(r,n),r.length||(u--,u||(i(t),a.$valid=!0,a.$invalid=!1),c[e]=!1,i(!0,e),s.$setValidity(e,!0,a)));else{if(u||i(t),r){if(_(r,n))return}else c[e]=r=[],u++,i(!1,e),s.$setValidity(e,!1,a);r.push(n),a.$valid=!1,a.$invalid=!0}},a.$setDirty=function(){r.removeClass(e,zi),r.addClass(e,Bi),a.$dirty=!0,a.$pristine=!1,s.$setDirty()},a.$setPristine=function(){r.removeClass(e,Bi),r.addClass(e,zi),a.$dirty=!1,a.$pristine=!0,o(l,function(e){e.$setPristine()})}}function nr(e,t,r,i){return e.$setValidity(t,r),r?i:n}function rr(e,t){var n,r;if(t)for(n=0;n<t.length;++n)if(r=t[n],e[r])return!0;return!1}function ir(e,t,n,r,i){if(x(i)){e.$$hasNativeValidators=!0;var o=function(o){return e.$error[t]||rr(i,r)||!rr(i,n)?o:(e.$setValidity(t,!1),void 0)};e.$parsers.push(o)}}function or(e,t,n,i,o,a){var s=t.prop(pr),u=t[0].placeholder,c={};if(i.$$validityState=s,!o.android){var l=!1;t.on("compositionstart",function(){l=!0}),t.on("compositionend",function(){l=!1,f()})}var f=function(r){if(!l){var o=t.val();if(yr&&"input"===(r||c).type&&t[0].placeholder!==u)return u=t[0].placeholder,void 0;B(n.ngTrim||"T")&&(o=Nr(o));var a=s&&i.$$hasNativeValidators;(i.$viewValue!==o||""===o&&a)&&(e.$$phase?i.$setViewValue(o):e.$apply(function(){i.$setViewValue(o)}))}};if(o.hasEvent("input"))t.on("input",f);else{var h,d=function(){h||(h=a.defer(function(){f(),h=null}))};t.on("keydown",function(e){var t=e.keyCode;91===t||t>15&&19>t||t>=37&&40>=t||d()}),o.hasEvent("paste")&&t.on("paste cut",d)}t.on("change",f),i.$render=function(){t.val(i.$isEmpty(i.$viewValue)?"":i.$viewValue)};var g,m,v=n.ngPattern;if(v){var y=function(e,t){return nr(i,"pattern",i.$isEmpty(t)||e.test(t),t)};m=v.match(/^\/(.*)\/([gim]*)$/),m?(v=new RegExp(m[1],m[2]),g=function(e){return y(v,e)}):g=function(n){var i=e.$eval(v);if(!i||!i.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",v,i,W(t));return y(i,n)},i.$formatters.push(g),i.$parsers.push(g)}if(n.ngMinlength){var x=p(n.ngMinlength),b=function(e){return nr(i,"minlength",i.$isEmpty(e)||e.length>=x,e)};i.$parsers.push(b),i.$formatters.push(b)}if(n.ngMaxlength){var $=p(n.ngMaxlength),w=function(e){return nr(i,"maxlength",i.$isEmpty(e)||e.length<=$,e)};i.$parsers.push(w),i.$formatters.push(w)}}function ar(e,t,r,i,o,a){if(or(e,t,r,i,o,a),i.$parsers.push(function(e){var t=i.$isEmpty(e);return t||Li.test(e)?(i.$setValidity("number",!0),""===e?null:t?e:parseFloat(e)):(i.$setValidity("number",!1),n)}),ir(i,"number",Fi,null,i.$$validityState),i.$formatters.push(function(e){return i.$isEmpty(e)?"":""+e}),r.min){var s=function(e){var t=parseFloat(r.min);return nr(i,"min",i.$isEmpty(e)||e>=t,e)};i.$parsers.push(s),i.$formatters.push(s)}if(r.max){var u=function(e){var t=parseFloat(r.max);return nr(i,"max",i.$isEmpty(e)||t>=e,e)};i.$parsers.push(u),i.$formatters.push(u)}i.$formatters.push(function(e){return nr(i,"number",i.$isEmpty(e)||$(e),e)})}function sr(e,t,n,r,i,o){or(e,t,n,r,i,o);var a=function(e){return nr(r,"url",r.$isEmpty(e)||Pi.test(e),e)};r.$formatters.push(a),r.$parsers.push(a)}function ur(e,t,n,r,i,o){or(e,t,n,r,i,o);var a=function(e){return nr(r,"email",r.$isEmpty(e)||qi.test(e),e)};r.$formatters.push(a),r.$parsers.push(a)}function cr(e,t,n,r){v(n.name)&&t.attr("name",c()),t.on("click",function(){t[0].checked&&e.$apply(function(){r.$setViewValue(n.value)})}),r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue},n.$observe("value",r.$render)}function lr(e,t,n,r){var i=n.ngTrueValue,o=n.ngFalseValue;b(i)||(i=!0),b(o)||(o=!1),t.on("click",function(){e.$apply(function(){r.$setViewValue(t[0].checked)})}),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return e!==i},r.$formatters.push(function(e){return e===i}),r.$parsers.push(function(e){return e?i:o})}function fr(e,t){return e="ngClass"+e,["$animate",function(n){function r(e,t){var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i==t[o])continue e;n.push(i)}return n}function i(e){if(Ar(e))return e;if(b(e))return e.split(" ");if(x(e)){var t=[];return o(e,function(e,n){e&&(t=t.concat(n.split(" ")))}),t}return e}return{restrict:"AC",link:function(a,s,u){function c(e){var t=f(e,1);u.$addClass(t)}function l(e){var t=f(e,-1);u.$removeClass(t)}function f(e,t){var n=s.data("$classCounts")||{},r=[];return o(e,function(e){(t>0||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(t>0)&&r.push(e))}),s.data("$classCounts",n),r.join(" ")}function p(e,t){var i=r(t,e),o=r(e,t);o=f(o,-1),i=f(i,1),0===i.length?n.removeClass(s,o):0===o.length?n.addClass(s,i):n.setClass(s,i,o)}function h(e){if(t===!0||a.$index%2===t){var n=i(e||[]);if(d){if(!L(e,d)){var r=i(d);p(r,n)}}else c(n)}d=q(e)}var d;a.$watch(u[e],h,!0),u.$observe("class",function(){h(a.$eval(u[e]))}),"ngClass"!==e&&a.$watch("$index",function(n,r){var o=1&n;if(o!==(1&r)){var s=i(a.$eval(u[e]));o===t?c(s):l(s)}})}}}]}var pr="validity",hr=function(e){return b(e)?e.toLowerCase():e},dr=Object.prototype.hasOwnProperty,gr=function(e){return b(e)?e.toUpperCase():e},mr=function(e){return b(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},vr=function(e){return b(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e};"i"!=="I".toLowerCase()&&(hr=mr,gr=vr);var yr,xr,br,$r,wr,Cr=[].slice,Sr=[].push,kr=Object.prototype.toString,Tr=r("ng"),Er=e.angular||(e.angular={}),Mr=["0","0","0"];yr=p((/msie (\d+)/.exec(hr(navigator.userAgent))||[])[1]),isNaN(yr)&&(yr=p((/trident\/.*; rv:(\d+)/.exec(hr(navigator.userAgent))||[])[1])),d.$inject=[],g.$inject=[];var Ar=function(){return C(Array.isArray)?Array.isArray:function(e){return"[object Array]"===kr.call(e)}}(),Nr=function(){return String.prototype.trim?function(e){return b(e)?e.trim():e}:function(e){return b(e)?e.replace(/^\s\s*/,"").replace(/\s\s*$/,""):e}}();wr=9>yr?function(e){return e=e.nodeName?e:e[0],e.scopeName&&"HTML"!=e.scopeName?gr(e.scopeName+":"+e.nodeName):e.nodeName}:function(e){return e.nodeName?e.nodeName:e[0].nodeName};var Dr=function(){if(y(Dr.isActive_))return Dr.isActive_;var e=!(!t.querySelector("[ng-csp]")&&!t.querySelector("[data-ng-csp]"));if(!e)try{new Function("")}catch(n){e=!0}return Dr.isActive_=e},_r=/[A-Z]/g,jr={full:"1.2.22",major:1,minor:2,dot:22,codeName:"finicky-pleasure"};dt.expando="ng339";var Or=dt.cache={},Pr=1,qr=e.document.addEventListener?function(e,t,n){e.addEventListener(t,n,!1)}:function(e,t,n){e.attachEvent("on"+t,n)},Lr=e.document.removeEventListener?function(e,t,n){e.removeEventListener(t,n,!1)}:function(e,t,n){e.detachEvent("on"+t,n)};dt._data=function(e){return this.cache[e[this.expando]]||{}};var Hr=/([\:\-\_]+(.))/g,Fr=/^moz([A-Z])/,Ir=r("jqLite"),Rr=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Ur=/<|&#?\w+;/,zr=/<([\w:]+)/,Br=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Wr={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,"",""]};Wr.optgroup=Wr.option,Wr.tbody=Wr.tfoot=Wr.colgroup=Wr.caption=Wr.thead,Wr.th=Wr.td;var Vr=dt.prototype={ready:function(n){function r(){i||(i=!0,n())}var i=!1;"complete"===t.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),dt(e).on("load",r))},toString:function(){var e=[];return o(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return e>=0?xr(this[e]):xr(this[this.length+e])},length:0,push:Sr,sort:[].sort,splice:[].splice},Xr={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){Xr[hr(e)]=e});var Yr={};o("input,select,option,textarea,button,form,details".split(","),function(e){Yr[gr(e)]=!0}),o({data:bt,removeData:yt},function(e,t){dt[t]=e}),o({data:bt,inheritedData:Tt,scope:function(e){return xr.data(e,"$scope")||Tt(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return xr.data(e,"$isolateScope")||xr.data(e,"$isolateScopeNoTemplate")},controller:kt,injector:function(e){return Tt(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:$t,css:function(e,t,r){if(t=ct(t),!y(r)){var i;return 8>=yr&&(i=e.currentStyle&&e.currentStyle[t],""===i&&(i="auto")),i=i||e.style[t],8>=yr&&(i=""===i?n:i),i}e.style[t]=r},attr:function(e,t,r){var i=hr(t);if(Xr[i]){if(!y(r))return e[t]||(e.attributes.getNamedItem(t)||d).specified?i:n;r?(e[t]=!0,e.setAttribute(t,i)):(e[t]=!1,e.removeAttribute(i))}else if(y(r))e.setAttribute(t,r);else if(e.getAttribute){var o=e.getAttribute(t,2);return null===o?n:o}},prop:function(e,t,n){return y(n)?(e[t]=n,void 0):e[t]},text:function(){function e(e,n){var r=t[e.nodeType];return v(n)?r?e[r]:"":(e[r]=n,void 0)}var t=[];return 9>yr?(t[1]="innerText",t[3]="nodeValue"):t[1]=t[3]="textContent",e.$dv="",e}(),val:function(e,t){if(v(t)){if("SELECT"===wr(e)&&e.multiple){var n=[];return o(e.options,function(e){e.selected&&n.push(e.value||e.text)}),0===n.length?null:n}return e.value}e.value=t},html:function(e,t){if(v(t))return e.innerHTML;for(var n=0,r=e.childNodes;n<r.length;n++)mt(r[n]);e.innerHTML=t},empty:Et},function(e,t){dt.prototype[t]=function(t,r){var i,o,a=this.length;if(e!==Et&&(2==e.length&&e!==$t&&e!==kt?t:r)===n){if(x(t)){for(i=0;a>i;i++)if(e===bt)e(this[i],t);else for(o in t)e(this[i],o,t[o]);return this}for(var s=e.$dv,u=s===n?Math.min(a,1):a,c=0;u>c;c++){var l=e(this[c],t,r);s=s?s+l:l}return s}for(i=0;a>i;i++)e(this[i],t,r);return this}}),o({removeData:yt,dealoc:mt,on:function Mo(e,n,r,i){if(y(i))throw Ir("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");var a=xt(e,"events"),s=xt(e,"handle");a||xt(e,"events",a={}),s||xt(e,"handle",s=At(e,a)),o(n.split(" "),function(n){var i=a[n];if(!i){if("mouseenter"==n||"mouseleave"==n){var o=t.body.contains||t.body.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1};a[n]=[];var u={mouseleave:"mouseout",mouseenter:"mouseover"};Mo(e,u[n],function(e){var t=this,r=e.relatedTarget;(!r||r!==t&&!o(t,r))&&s(e,n)})}else qr(e,n,s),a[n]=[];i=a[n]}i.push(r)})},off:vt,one:function(e,t,n){e=xr(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;mt(e),o(new dt(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return o(e.childNodes,function(e){1===e.nodeType&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){o(new dt(t),function(t){(1===e.nodeType||11===e.nodeType)&&e.appendChild(t)})},prepend:function(e,t){if(1===e.nodeType){var n=e.firstChild;o(new dt(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){t=xr(t)[0];var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)},remove:function(e){mt(e);var t=e.parentNode;t&&t.removeChild(e)},after:function(e,t){var n=e,r=e.parentNode;o(new dt(t),function(e){r.insertBefore(e,n.nextSibling),n=e})},addClass:Ct,removeClass:wt,toggleClass:function(e,t,n){t&&o(t.split(" "),function(t){var r=n;v(r)&&(r=!$t(e,t)),(r?Ct:wt)(e,t)})},parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},next:function(e){if(e.nextElementSibling)return e.nextElementSibling;for(var t=e.nextSibling;null!=t&&1!==t.nodeType;)t=t.nextSibling;return t},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:gt,triggerHandler:function(e,t,n){var r,i,a,s=t.type||t,u=(xt(e,"events")||{})[s];u&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopPropagation:d,type:s,target:e},t.type&&(r=f(r,t)),i=q(u),a=n?[r].concat(n):[r],o(i,function(t){t.apply(e,a)}))}},function(e,t){dt.prototype[t]=function(t,n,r){for(var i,o=0;o<this.length;o++)v(i)?(i=e(this[o],t,n,r),y(i)&&(i=xr(i))):St(i,e(this[o],t,n,r));return y(i)?i:this},dt.prototype.bind=dt.prototype.on,dt.prototype.unbind=dt.prototype.off}),Dt.prototype={put:function(e,t){this[Nt(e,this.nextUid)]=t},get:function(e){return this[Nt(e,this.nextUid)]},remove:function(e){var t=this[e=Nt(e,this.nextUid)];return delete this[e],t}};var Qr=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,Zr=/,/,Jr=/^\s*(_?)(\S+?)\1\s*$/,Gr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Kr=r("$injector"),ei=r("$animate"),ti=["$provide",function(e){this.$$selectors={},this.register=function(t,n){var r=t+"-animation";if(t&&"."!=t.charAt(0))throw ei("notcsel","Expecting class selector starting with '.' got '{0}'.",t);this.$$selectors[t.substr(1)]=r,e.factory(r,n)},this.classNameFilter=function(e){return 1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null),this.$$classNameFilter},this.$get=["$timeout","$$asyncCallback",function(e,t){function n(e){e&&t(e)}return{enter:function(e,t,r,i){r?r.after(e):(t&&t[0]||(t=r.parent()),t.append(e)),n(i)},leave:function(e,t){e.remove(),n(t)},move:function(e,t,n,r){this.enter(e,t,n,r)},addClass:function(e,t,r){t=b(t)?t:Ar(t)?t.join(" "):"",o(e,function(e){Ct(e,t)}),n(r)},removeClass:function(e,t,r){t=b(t)?t:Ar(t)?t.join(" "):"",o(e,function(e){wt(e,t)}),n(r)},setClass:function(e,t,r,i){o(e,function(e){Ct(e,t),wt(e,r)}),n(i)},enabled:d}}]}],ni=r("$compile");It.$inject=["$provide","$$sanitizeUriProvider"];var ri=/^(x[\:\-_]|data[\:\-_])/i,ii=r("$interpolate"),oi=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,ai={http:80,https:443,ftp:21},si=r("$location");hn.prototype=pn.prototype=fn.prototype={$$html5:!1,$$replace:!1,absUrl:dn("$$absUrl"),url:function(e,t){if(v(e))return this.$$url;var n=oi.exec(e);return n[1]&&this.path(decodeURIComponent(n[1])),(n[2]||n[1])&&this.search(n[3]||""),this.hash(n[5]||"",t),this},protocol:dn("$$protocol"),host:dn("$$host"),port:dn("$$port"),path:gn("$$path",function(e){return"/"==e.charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(b(e))this.$$search=X(e);else{if(!x(e))throw si("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");o(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:v(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:gn("$$hash",g),replace:function(){return this.$$replace=!0,this}};var ui,ci=r("$parse"),li={},fi=Function.prototype.call,pi=Function.prototype.apply,hi=Function.prototype.bind,di={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:d,"+":function(e,t,r,i){return r=r(e,t),i=i(e,t),y(r)?y(i)?r+i:r:y(i)?i:n},"-":function(e,t,n,r){return n=n(e,t),r=r(e,t),(y(n)?n:0)-(y(r)?r:0)},"*":function(e,t,n,r){return n(e,t)*r(e,t)},"/":function(e,t,n,r){return n(e,t)/r(e,t)},"%":function(e,t,n,r){return n(e,t)%r(e,t)},"^":function(e,t,n,r){return n(e,t)^r(e,t)},"=":d,"===":function(e,t,n,r){return n(e,t)===r(e,t)},"!==":function(e,t,n,r){return n(e,t)!==r(e,t)},"==":function(e,t,n,r){return n(e,t)==r(e,t)},"!=":function(e,t,n,r){return n(e,t)!=r(e,t)},"<":function(e,t,n,r){return n(e,t)<r(e,t)},">":function(e,t,n,r){return n(e,t)>r(e,t)},"<=":function(e,t,n,r){return n(e,t)<=r(e,t)},">=":function(e,t,n,r){return n(e,t)>=r(e,t)},"&&":function(e,t,n,r){return n(e,t)&&r(e,t)},"||":function(e,t,n,r){return n(e,t)||r(e,t)},"&":function(e,t,n,r){return n(e,t)&r(e,t)},"|":function(e,t,n,r){return r(e,t)(e,t,n(e,t))},"!":function(e,t,n){return!n(e,t)}},gi={n:"\n",f:"\f",r:"\r",t:" ",v:" ","'":"'",'"':'"'},mi=function(e){this.options=e};mi.prototype={constructor:mi,lex:function(e){for(this.text=e,this.index=0,this.ch=n,this.lastCh=":",this.tokens=[];this.index<this.text.length;){if(this.ch=this.text.charAt(this.index),this.is("\"'"))this.readString(this.ch);else if(this.isNumber(this.ch)||this.is(".")&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(this.ch))this.readIdent();else if(this.is("(){}[].,;:?"))this.tokens.push({index:this.index,text:this.ch}),this.index++;else{if(this.isWhitespace(this.ch)){this.index++;continue}var t=this.ch+this.peek(),r=t+this.peek(2),i=di[this.ch],o=di[t],a=di[r];a?(this.tokens.push({index:this.index,text:r,fn:a}),this.index+=3):o?(this.tokens.push({index:this.index,text:t,fn:o}),this.index+=2):i?(this.tokens.push({index:this.index,text:this.ch,fn:i}),this.index+=1):this.throwError("Unexpected next character ",this.index,this.index+1)}this.lastCh=this.ch}return this.tokens},is:function(e){return-1!==e.indexOf(this.ch)},was:function(e){return-1!==e.indexOf(this.lastCh)},peek:function(e){var t=e||1;return this.index+t<this.text.length?this.text.charAt(this.index+t):!1},isNumber:function(e){return e>="0"&&"9">=e},isWhitespace:function(e){return" "===e||"\r"===e||" "===e||"\n"===e||" "===e||" "===e},isIdent:function(e){return e>="a"&&"z">=e||e>="A"&&"Z">=e||"_"===e||"$"===e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=y(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw ci("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=hr(this.text.charAt(this.index));if("."==n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}e=1*e,this.tokens.push({index:t,text:e,literal:!0,constant:!0,fn:function(){return e}})},readIdent:function(){for(var e,t,n,r,i=this,o="",a=this.index;this.index<this.text.length&&(r=this.text.charAt(this.index),"."===r||this.isIdent(r)||this.isNumber(r));)"."===r&&(e=this.index),o+=r,this.index++;if(e)for(t=this.index;t<this.text.length;){if(r=this.text.charAt(t),"("===r){n=o.substr(e-a+1),o=o.substr(0,e-a),this.index=t;break}if(!this.isWhitespace(r))break;t++}var s={index:a,text:o};if(di.hasOwnProperty(o))s.fn=di[o],s.literal=!0,s.constant=!0;else{var u=Cn(o,this.options,this.text);s.fn=f(function(e,t){return u(e,t)},{assign:function(e,t){return $n(e,o,t,i.text,i.options)}})}this.tokens.push(s),n&&(this.tokens.push({index:e,text:"."}),this.tokens.push({index:e+1,text:n}))},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{var s=gi[o];n+=s||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,this.tokens.push({index:t,text:r,string:n,literal:!0,constant:!0,fn:function(){return n}}),void 0;n+=o}this.index++}this.throwError("Unterminated quote",t)}};var vi=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n};vi.ZERO=f(function(){return 0},{constant:!0}),vi.prototype={constructor:vi,parse:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.statements();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t.literal=!!t.literal,t.constant=!!t.constant,t},primary:function(){var e;if(this.expect("("))e=this.filterChain(),this.consume(")");else if(this.expect("["))e=this.arrayDeclaration();else if(this.expect("{"))e=this.object();else{var t=this.expect();e=t.fn,e||this.throwError("not a primary expression",t),e.literal=!!t.literal,e.constant=!!t.constant}for(var n,r;n=this.expect("(","[",".");)"("===n.text?(e=this.functionCall(e,r),r=null):"["===n.text?(r=e,e=this.objectIndex(e)):"."===n.text?(r=e,e=this.fieldAccess(e)):this.throwError("IMPOSSIBLE");return e},throwError:function(e,t){throw ci("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},peekToken:function(){if(0===this.tokens.length)throw ci("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){if(this.tokens.length>0){var i=this.tokens[0],o=i.text;if(o===e||o===t||o===n||o===r||!e&&!t&&!n&&!r)return i}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return i?(this.tokens.shift(),i):!1},consume:function(e){this.expect(e)||this.throwError("is unexpected, expecting ["+e+"]",this.peek())},unaryFn:function(e,t){return f(function(n,r){return e(n,r,t)},{constant:t.constant})},ternaryFn:function(e,t,n){return f(function(r,i){return e(r,i)?t(r,i):n(r,i)},{constant:e.constant&&t.constant&&n.constant})},binaryFn:function(e,t,n){return f(function(r,i){return t(r,i,e,n)},{constant:e.constant&&n.constant})},statements:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.filterChain()),!this.expect(";"))return 1===e.length?e[0]:function(t,n){for(var r,i=0;i<e.length;i++){var o=e[i];o&&(r=o(t,n))}return r}},filterChain:function(){for(var e,t=this.expression();;){if(!(e=this.expect("|")))return t;t=this.binaryFn(t,e.fn,this.filter())}},filter:function(){for(var e=this.expect(),t=this.$filter(e.text),n=[];;){if(!(e=this.expect(":"))){var r=function(e,r,i){for(var o=[i],a=0;a<n.length;a++)o.push(n[a](e,r));return t.apply(e,o)};return function(){return r}}n.push(this.expression())}},expression:function(){return this.assignment()},assignment:function(){var e,t,n=this.ternary();return(t=this.expect("="))?(n.assign||this.throwError("implies assignment but ["+this.text.substring(0,t.index)+"] can not be assigned to",t),e=this.ternary(),function(t,r){return n.assign(t,e(t,r),r)}):n},ternary:function(){var e,t,n=this.logicalOR();return(t=this.expect("?"))?(e=this.assignment(),(t=this.expect(":"))?this.ternaryFn(n,e,this.assignment()):(this.throwError("expected :",t),void 0)):n},logicalOR:function(){for(var e,t=this.logicalAND();;){if(!(e=this.expect("||")))return t;t=this.binaryFn(t,e.fn,this.logicalAND())}},logicalAND:function(){var e,t=this.equality();return(e=this.expect("&&"))&&(t=this.binaryFn(t,e.fn,this.logicalAND())),t},equality:function(){var e,t=this.relational();return(e=this.expect("==","!=","===","!=="))&&(t=this.binaryFn(t,e.fn,this.equality())),t},relational:function(){var e,t=this.additive();return(e=this.expect("<",">","<=",">="))&&(t=this.binaryFn(t,e.fn,this.relational())),t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t=this.binaryFn(t,e.fn,this.multiplicative());return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t=this.binaryFn(t,e.fn,this.unary());return t},unary:function(){var e;return this.expect("+")?this.primary():(e=this.expect("-"))?this.binaryFn(vi.ZERO,e.fn,this.unary()):(e=this.expect("!"))?this.unaryFn(e.fn,this.unary()):this.primary()},fieldAccess:function(e){var t=this,n=this.expect().text,r=Cn(n,this.options,this.text);return f(function(t,n,i){return r(i||e(t,n))},{assign:function(r,i,o){var a=e(r,o);return a||e.assign(r,a={}),$n(a,n,i,t.text,t.options)}})},objectIndex:function(e){var t=this,r=this.expression();return this.consume("]"),f(function(i,o){var a,s,u=e(i,o),c=r(i,o);return yn(c,t.text),u?(a=xn(u[c],t.text),a&&a.then&&t.options.unwrapPromises&&(s=a,"$$v"in a||(s.$$v=n,s.then(function(e){s.$$v=e})),a=a.$$v),a):n},{assign:function(n,i,o){var a=yn(r(n,o),t.text),s=xn(e(n,o),t.text);return s||e.assign(n,s={}),s[a]=i}})},functionCall:function(e,t){var n=[];if(")"!==this.peekToken().text)do n.push(this.expression());while(this.expect(","));this.consume(")");var r=this;return function(i,o){for(var a=[],s=t?t(i,o):i,u=0;u<n.length;u++)a.push(n[u](i,o));var c=e(i,o,s)||d;xn(s,r.text),bn(c,r.text);var l=c.apply?c.apply(s,a):c(a[0],a[1],a[2],a[3],a[4]);return xn(l,r.text)}},arrayDeclaration:function(){var e=[],t=!0;if("]"!==this.peekToken().text)do{if(this.peek("]"))break;var n=this.expression();e.push(n),n.constant||(t=!1)}while(this.expect(","));return this.consume("]"),f(function(t,n){for(var r=[],i=0;i<e.length;i++)r.push(e[i](t,n));return r},{literal:!0,constant:t})},object:function(){var e=[],t=!0;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;var n=this.expect(),r=n.string||n.text;this.consume(":");var i=this.expression();e.push({key:r,value:i}),i.constant||(t=!1)}while(this.expect(","));return this.consume("}"),f(function(t,n){for(var r={},i=0;i<e.length;i++){var o=e[i];r[o.key]=o.value(t,n)}return r},{literal:!0,constant:t})}};var yi={},xi=r("$sce"),bi={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},$i=t.createElement("a"),wi=Ln(e.location.href,!0);In.$inject=["$provide"],Un.$inject=["$locale"],zn.$inject=["$locale"];var Ci=".",Si={yyyy:Vn("FullYear",4),yy:Vn("FullYear",2,0,!0),y:Vn("FullYear",1),MMMM:Xn("Month"),MMM:Xn("Month",!0),MM:Vn("Month",2,1),M:Vn("Month",1,1),dd:Vn("Date",2),d:Vn("Date",1),HH:Vn("Hours",2),H:Vn("Hours",1),hh:Vn("Hours",2,-12),h:Vn("Hours",1,-12),mm:Vn("Minutes",2),m:Vn("Minutes",1),ss:Vn("Seconds",2),s:Vn("Seconds",1),sss:Vn("Milliseconds",3),EEEE:Xn("Day"),EEE:Xn("Day",!0),a:Qn,Z:Yn},ki=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,Ti=/^\-?\d+$/;Zn.$inject=["$locale"];var Ei=m(hr),Mi=m(gr);Kn.$inject=["$parse"];var Ai=m({restrict:"E",compile:function(e,n){return 8>=yr&&(n.href||n.name||n.$set("href",""),e.append(t.createComment("IE fix"))),n.href||n.xlinkHref||n.name?void 0:function(e,t){var n="[object SVGAnimatedString]"===kr.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}),Ni={};o(Xr,function(e,t){if("multiple"!=e){var n=Rt("ng-"+t);
Ni[n]=function(){return{priority:100,link:function(e,r,i){e.$watch(i[n],function(e){i.$set(t,!!e)})}}}}}),o(["src","srcset","href"],function(e){var t=Rt("ng-"+e);Ni[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===kr.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(e){e&&(i.$set(a,e),yr&&o&&r.prop(o,i[a]))})}}}});var Di={$addControl:d,$removeControl:d,$setValidity:d,$setDirty:d,$setPristine:d};tr.$inject=["$element","$attrs","$scope","$animate"];var _i=function(e){return["$timeout",function(t){var r={name:"form",restrict:e?"EAC":"E",controller:tr,compile:function(){return{pre:function(e,r,i,o){if(!i.action){var a=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1};qr(r[0],"submit",a),r.on("$destroy",function(){t(function(){Lr(r[0],"submit",a)},0,!1)})}var s=r.parent().controller("form"),u=i.name||i.ngForm;u&&$n(e,u,o,u),s&&r.on("$destroy",function(){s.$removeControl(o),u&&$n(e,u,n,u),f(o,Di)})}}}};return r}]},ji=_i(),Oi=_i(!0),Pi=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,qi=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Li=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Hi={text:or,number:ar,url:sr,email:ur,radio:cr,checkbox:lr,hidden:d,button:d,submit:d,reset:d,file:d},Fi=["badInput"],Ii=["$browser","$sniffer",function(e,t){return{restrict:"E",require:"?ngModel",link:function(n,r,i,o){o&&(Hi[hr(i.type)]||Hi.text)(n,r,i,o,t,e)}}}],Ri="ng-valid",Ui="ng-invalid",zi="ng-pristine",Bi="ng-dirty",Wi=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate",function(e,t,n,i,a,s){function u(e,t){t=t?"-"+K(t,"-"):"",s.removeClass(i,(e?Ui:Ri)+t),s.addClass(i,(e?Ri:Ui)+t)}this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$name=n.name;var c=a(n.ngModel),l=c.assign;if(!l)throw r("ngModel")("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,W(i));this.$render=d,this.$isEmpty=function(e){return v(e)||""===e||null===e||e!==e};var f=i.inheritedData("$formController")||Di,p=0,h=this.$error={};i.addClass(zi),u(!0),this.$setValidity=function(e,t){h[e]!==!t&&(t?(h[e]&&p--,p||(u(!0),this.$valid=!0,this.$invalid=!1)):(u(!1),this.$invalid=!0,this.$valid=!1,p++),h[e]=!t,u(t,e),f.$setValidity(e,t,this))},this.$setPristine=function(){this.$dirty=!1,this.$pristine=!0,s.removeClass(i,Bi),s.addClass(i,zi)},this.$setViewValue=function(n){this.$viewValue=n,this.$pristine&&(this.$dirty=!0,this.$pristine=!1,s.removeClass(i,zi),s.addClass(i,Bi),f.$setDirty()),o(this.$parsers,function(e){n=e(n)}),this.$modelValue!==n&&(this.$modelValue=n,l(e,n),o(this.$viewChangeListeners,function(e){try{e()}catch(n){t(n)}}))};var g=this;e.$watch(function(){var t=c(e);if(g.$modelValue!==t){var n=g.$formatters,r=n.length;for(g.$modelValue=t;r--;)t=n[r](t);g.$viewValue!==t&&(g.$viewValue=t,g.$render())}return t})}],Vi=function(){return{require:["ngModel","^?form"],controller:Wi,link:function(e,t,n,r){var i=r[0],o=r[1]||Di;o.$addControl(i),e.$on("$destroy",function(){o.$removeControl(i)})}}},Xi=m({require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),Yi=function(){return{require:"?ngModel",link:function(e,t,n,r){if(r){n.required=!0;var i=function(e){return n.required&&r.$isEmpty(e)?(r.$setValidity("required",!1),void 0):(r.$setValidity("required",!0),e)};r.$formatters.push(i),r.$parsers.unshift(i),n.$observe("required",function(){i(r.$viewValue)})}}}},Qi=function(){return{require:"ngModel",link:function(e,t,r,i){var a=/\/(.*)\//.exec(r.ngList),s=a&&new RegExp(a[1])||r.ngList||",",u=function(e){if(!v(e)){var t=[];return e&&o(e.split(s),function(e){e&&t.push(Nr(e))}),t}};i.$parsers.push(u),i.$formatters.push(function(e){return Ar(e)?e.join(", "):n}),i.$isEmpty=function(e){return!e||!e.length}}}},Zi=/^(true|false|\d+)$/,Ji=function(){return{priority:100,compile:function(e,t){return Zi.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){n.$set("value",e)})}}}},Gi=er({compile:function(e){return e.addClass("ng-binding"),function(e,t,r){t.data("$binding",r.ngBind),e.$watch(r.ngBind,function(e){t.text(e==n?"":e)})}}}),Ki=["$interpolate",function(e){return function(t,n,r){var i=e(n.attr(r.$attr.ngBindTemplate));n.addClass("ng-binding").data("$binding",i),r.$observe("ngBindTemplate",function(e){n.text(e)})}}],eo=["$sce","$parse",function(e,t){return{compile:function(n){return n.addClass("ng-binding"),function(n,r,i){function o(){return(a(n)||"").toString()}r.data("$binding",i.ngBindHtml);var a=t(i.ngBindHtml);n.$watch(o,function(){r.html(e.getTrustedHtml(a(n))||"")})}}}}],to=fr("",!0),no=fr("Odd",0),ro=fr("Even",1),io=er({compile:function(e,t){t.$set("ngCloak",n),e.removeClass("ng-cloak")}}),oo=[function(){return{scope:!0,controller:"@",priority:500}}],ao={};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=Rt("ng-"+e);ao[t]=["$parse",function(n){return{compile:function(r,i){var o=n(i[t]);return function(t,n){n.on(hr(e),function(e){t.$apply(function(){o(t,{$event:e})})})}}}}]});var so=["$animate",function(e){return{transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,c;n.$watch(i.ngIf,function(o){B(o)?u||(u=n.$new(),a(u,function(n){n[n.length++]=t.createComment(" end ngIf: "+i.ngIf+" "),s={clone:n},e.enter(n,r.parent(),r)})):(c&&(c.remove(),c=null),u&&(u.$destroy(),u=null),s&&(c=ot(s.clone),e.leave(c,function(){c=null}),s=null))})}}}],uo=["$http","$templateCache","$anchorScroll","$animate","$sce",function(e,t,n,r,i){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Er.noop,compile:function(o,a){var s=a.ngInclude||a.src,u=a.onload||"",c=a.autoscroll;return function(o,a,l,f,p){var h,d,g,m=0,v=function(){d&&(d.remove(),d=null),h&&(h.$destroy(),h=null),g&&(r.leave(g,function(){d=null}),d=g,g=null)};o.$watch(i.parseAsResourceUrl(s),function(i){var s=function(){!y(c)||c&&!o.$eval(c)||n()},l=++m;i?(e.get(i,{cache:t}).success(function(e){if(l===m){var t=o.$new();f.template=e;var n=p(t,function(e){v(),r.enter(e,null,a,s)});h=t,g=n,h.$emit("$includeContentLoaded"),o.$eval(u)}}).error(function(){l===m&&v()}),o.$emit("$includeContentRequested")):(v(),f.template=null)})}}}}],co=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(t,n,r,i){n.html(i.template),e(n.contents())(t)}}}],lo=er({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),fo=er({terminal:!0,priority:1e3}),po=["$locale","$interpolate",function(e,t){var n=/{}/g;return{restrict:"EA",link:function(r,i,a){var s=a.count,u=a.$attr.when&&i.attr(a.$attr.when),c=a.offset||0,l=r.$eval(u)||{},f={},p=t.startSymbol(),h=t.endSymbol(),d=/^when(Minus)?(.+)$/;o(a,function(e,t){d.test(t)&&(l[hr(t.replace("when","").replace("Minus","-"))]=i.attr(a.$attr[t]))}),o(l,function(e,r){f[r]=t(e.replace(n,p+s+"-"+c+h))}),r.$watch(function(){var t=parseFloat(r.$eval(s));return isNaN(t)?"":(t in l||(t=e.pluralCat(t-c)),f[t](r,i,!0))},function(e){i.text(e)})}}}],ho=["$parse","$animate",function(e,n){function a(e){return e.clone[0]}function s(e){return e.clone[e.clone.length-1]}var u="$$NG_REMOVED",c=r("ngRepeat");return{transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,link:function(r,l,f,p,h){var d,g,m,v,y,x,b,$,w,C=f.ngRepeat,S=C.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),k={$id:Nt};if(!S)throw c("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",C);if(x=S[1],b=S[2],d=S[3],d?(g=e(d),m=function(e,t,n){return w&&(k[w]=e),k[$]=t,k.$index=n,g(r,k)}):(v=function(e,t){return Nt(t)},y=function(e){return e}),S=x.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/),!S)throw c("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",x);$=S[3]||S[1],w=S[2];var T={};r.$watchCollection(b,function(e){var f,p,d,g,x,b,S,k,E,M,A,N,D=l[0],_={},j=[];if(i(e))M=e,E=m||v;else{E=m||y,M=[];for(b in e)e.hasOwnProperty(b)&&"$"!=b.charAt(0)&&M.push(b);M.sort()}for(g=M.length,p=j.length=M.length,f=0;p>f;f++)if(b=e===M?f:M[f],S=e[b],k=E(b,S,f),rt(k,"`track by` id"),T.hasOwnProperty(k))A=T[k],delete T[k],_[k]=A,j[f]=A;else{if(_.hasOwnProperty(k))throw o(j,function(e){e&&e.scope&&(T[e.id]=e)}),c("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}",C,k);j[f]={id:k},_[k]=!1}for(b in T)T.hasOwnProperty(b)&&(A=T[b],N=ot(A.clone),n.leave(N),o(N,function(e){e[u]=!0}),A.scope.$destroy());for(f=0,p=M.length;p>f;f++){if(b=e===M?f:M[f],S=e[b],A=j[f],j[f-1]&&(D=s(j[f-1])),A.scope){x=A.scope,d=D;do d=d.nextSibling;while(d&&d[u]);a(A)!=d&&n.move(ot(A.clone),null,xr(D)),D=s(A)}else x=r.$new();x[$]=S,w&&(x[w]=b),x.$index=f,x.$first=0===f,x.$last=f===g-1,x.$middle=!(x.$first||x.$last),x.$odd=!(x.$even=0===(1&f)),A.scope||h(x,function(e){e[e.length++]=t.createComment(" end ngRepeat: "+C+" "),n.enter(e,null,xr(D)),D=e,A.scope=x,A.clone=e,_[A.id]=A})}T=_})}}}],go=["$animate",function(e){return function(t,n,r){t.$watch(r.ngShow,function(t){e[B(t)?"removeClass":"addClass"](n,"ng-hide")})}}],mo=["$animate",function(e){return function(t,n,r){t.$watch(r.ngHide,function(t){e[B(t)?"addClass":"removeClass"](n,"ng-hide")})}}],vo=er(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&o(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),yo=["$animate",function(e){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(t,n,r,i){var a=r.ngSwitch||r.on,s=[],u=[],c=[],l=[];t.$watch(a,function(n){var a,f;for(a=0,f=c.length;f>a;++a)c[a].remove();for(c.length=0,a=0,f=l.length;f>a;++a){var p=u[a];l[a].$destroy(),c[a]=p,e.leave(p,function(){c.splice(a,1)})}u.length=0,l.length=0,(s=i.cases["!"+n]||i.cases["?"])&&(t.$eval(r.change),o(s,function(n){var r=t.$new();l.push(r),n.transclude(r,function(t){var r=n.element;u.push(t),e.enter(t,r.parent(),r)})}))})}}}],xo=er({transclude:"element",priority:800,require:"^ngSwitch",link:function(e,t,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:t})}}),bo=er({transclude:"element",priority:800,require:"^ngSwitch",link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),$o=er({link:function(e,t,n,i,o){if(!o)throw r("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",W(t));o(function(e){t.empty(),t.append(e)})}}),wo=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"==n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],Co=r("ngOptions"),So=m({terminal:!0}),ko=["$compile","$parse",function(e,r){var i=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\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]+?))?$/,s={$setViewValue:d};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(e,t,n){var r,i,o=this,a={},u=s;o.databound=n.ngModel,o.init=function(e,t,n){u=e,r=t,i=n},o.addOption=function(t){rt(t,'"option value"'),a[t]=!0,u.$viewValue==t&&(e.val(t),i.parent()&&i.remove())},o.removeOption=function(e){this.hasOption(e)&&(delete a[e],u.$viewValue==e&&this.renderUnknownOption(e))},o.renderUnknownOption=function(t){var n="? "+Nt(t)+" ?";i.val(n),e.prepend(i),e.val(n),i.prop("selected",!0)},o.hasOption=function(e){return a.hasOwnProperty(e)},t.$on("$destroy",function(){o.renderUnknownOption=d})}],link:function(s,u,c,l){function f(e,t,n,r){n.$render=function(){var e=n.$viewValue;r.hasOption(e)?(S.parent()&&S.remove(),t.val(e),""===e&&d.prop("selected",!0)):v(e)&&d?t.val(""):r.renderUnknownOption(e)},t.on("change",function(){e.$apply(function(){S.parent()&&S.remove(),n.$setViewValue(t.val())})})}function p(e,t,n){var r;n.$render=function(){var e=new Dt(n.$viewValue);o(t.find("option"),function(t){t.selected=y(e.get(t.value))})},e.$watch(function(){L(r,n.$viewValue)||(r=q(n.$viewValue),n.$render())}),t.on("change",function(){e.$apply(function(){var e=[];o(t.find("option"),function(t){t.selected&&e.push(t.value)}),n.$setViewValue(e)})})}function h(t,o,s){function u(){var e=!1;if(x){var n=s.$modelValue;if(S&&Ar(n)){e=new Dt([]);for(var r={},i=0;i<n.length;i++)r[p]=n[i],e.put(S(t,r),n[i])}else e=new Dt(n)}return e}function c(){var e,n,r,i,c,l,v,b,T,E,M,A,N,D,_,j={"":[]},O=[""],P=s.$modelValue,q=m(t)||[],L=h?a(q):q,H={},F=u();for(M=0;T=L.length,T>M;M++){if(v=M,h){if(v=L[M],"$"===v.charAt(0))continue;H[h]=v}if(H[p]=q[v],e=d(t,H)||"",(n=j[e])||(n=j[e]=[],O.push(e)),x)A=y(F.remove(S?S(t,H):g(t,H)));else{if(S){var I={};I[p]=P,A=S(t,I)===S(t,H)}else A=P===g(t,H);F=F||A}_=f(t,H),_=y(_)?_:"",n.push({id:S?S(t,H):h?L[M]:M,label:_,selected:A})}for(x||($||null===P?j[""].unshift({id:"",label:"",selected:!F}):F||j[""].unshift({id:"?",label:"",selected:!0})),E=0,b=O.length;b>E;E++){for(e=O[E],n=j[e],k.length<=E?(i={element:C.clone().attr("label",e),label:n.label},c=[i],k.push(c),o.append(i.element)):(c=k[E],i=c[0],i.label!=e&&i.element.attr("label",i.label=e)),N=null,M=0,T=n.length;T>M;M++)r=n[M],(l=c[M+1])?(N=l.element,l.label!==r.label&&N.text(l.label=r.label),l.id!==r.id&&N.val(l.id=r.id),N[0].selected!==r.selected&&(N.prop("selected",l.selected=r.selected),yr&&N.prop("selected",l.selected))):(""===r.id&&$?D=$:(D=w.clone()).val(r.id).prop("selected",r.selected).attr("selected",r.selected).text(r.label),c.push(l={element:D,label:r.label,id:r.id,selected:r.selected}),N?N.after(D):i.element.append(D),N=D);for(M++;c.length>M;)c.pop().element.remove()}for(;k.length>E;)k.pop()[0].element.remove()}var l;if(!(l=b.match(i)))throw Co("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",b,W(o));var f=r(l[2]||l[1]),p=l[4]||l[6],h=l[5],d=r(l[3]||""),g=r(l[2]?l[1]:p),m=r(l[7]),v=l[8],S=v?r(l[8]):null,k=[[{element:o,label:""}]];$&&(e($)(t),$.removeClass("ng-scope"),$.remove()),o.empty(),o.on("change",function(){t.$apply(function(){var e,r,i,a,u,l,f,d,v,y=m(t)||[],b={};if(x){for(i=[],l=0,d=k.length;d>l;l++)for(e=k[l],u=1,f=e.length;f>u;u++)if((a=e[u].element)[0].selected){if(r=a.val(),h&&(b[h]=r),S)for(v=0;v<y.length&&(b[p]=y[v],S(t,b)!=r);v++);else b[p]=y[r];i.push(g(t,b))}}else if(r=o.val(),"?"==r)i=n;else if(""===r)i=null;else if(S){for(v=0;v<y.length;v++)if(b[p]=y[v],S(t,b)==r){i=g(t,b);break}}else b[p]=y[r],h&&(b[h]=r),i=g(t,b);s.$setViewValue(i),c()})}),s.$render=c,t.$watchCollection(m,c),x&&t.$watchCollection(function(){return s.$modelValue},c)}if(l[1]){for(var d,g=l[0],m=l[1],x=c.multiple,b=c.ngOptions,$=!1,w=xr(t.createElement("option")),C=xr(t.createElement("optgroup")),S=w.clone(),k=0,T=u.children(),E=T.length;E>k;k++)if(""===T[k].value){d=$=T.eq(k);break}g.init(m,$,S),x&&(m.$isEmpty=function(e){return!e||0===e.length}),b?h(s,u,m):x?p(s,u,m):f(s,u,m,g)}}}}],To=["$interpolate",function(e){var t={addOption:d,removeOption:d};return{restrict:"E",priority:100,compile:function(n,r){if(v(r.value)){var i=e(n.text(),!0);i||r.$set("value",n.text())}return function(e,n,r){var o="$selectController",a=n.parent(),s=a.data(o)||a.parent().data(o);s&&s.databound?n.prop("selected",!1):s=t,i?e.$watch(i,function(e,t){r.$set("value",e),e!==t&&s.removeOption(t),s.addOption(e)}):s.addOption(r.value),n.on("$destroy",function(){s.removeOption(r.value)})}}}}],Eo=m({restrict:"E",terminal:!0});return e.angular.bootstrap?(console.log("WARNING: Tried to load angular more than once."),void 0):(et(),st(Er),xr(t).ready(function(){J(t,G)}),void 0)}(window,document),!window.angular.$$csp()&&window.angular.element(document).find("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{display:none !important;}ng\\:form{display:block;}.ng-animate-block-transitions{transition:0s all!important;-webkit-transition:0s all!important;}.ng-hide-add-active,.ng-hide-remove{display:block!important;}</style>'),/*! Magnific Popup - v0.9.9 - 2013-12-04
* http://dimsemenov.com/plugins/magnific-popup/
* Copyright (c) 2013 Dmitry Semenov; */
function(e){var t,n,r,i,o,a,s,u="Close",c="BeforeClose",l="AfterClose",f="BeforeAppend",p="MarkupParse",h="Open",d="Change",g="mfp",m="."+g,v="mfp-ready",y="mfp-removing",x="mfp-prevent-close",b=function(){},$=!!window.jQuery,w=e(window),C=function(e,n){t.ev.on(g+e+m,n)},S=function(t,n,r,i){var o=document.createElement("div");return o.className="mfp-"+t,r&&(o.innerHTML=r),i?n&&n.appendChild(o):(o=e(o),n&&o.appendTo(n)),o},k=function(n,r){t.ev.triggerHandler(g+n,r),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(r)?r:[r]))},T=function(n){return n===s&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),s=n),t.currTemplate.closeBtn},E=function(){e.magnificPopup.instance||(t=new b,t.init(),e.magnificPopup.instance=t)},M=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};b.prototype={constructor:b,init:function(){var n=navigator.appVersion;t.isIE7=-1!==n.indexOf("MSIE 7."),t.isIE8=-1!==n.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=M(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){r||(r=e(document.body));var o;if(n.isObj===!1){t.items=n.items.toArray(),t.index=0;var s,u=n.items;for(o=0;u.length>o;o++)if(s=u[o],s.parsed&&(s=s.el[0]),s===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(t.isOpen)return t.updateItemHTML(),void 0;t.types=[],a="",t.ev=n.mainEl&&n.mainEl.length?n.mainEl.eq(0):i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=S("bg").on("click"+m,function(){t.close()}),t.wrap=S("wrap").attr("tabindex",-1).on("click"+m,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=S("container",t.wrap)),t.contentContainer=S("content"),t.st.preloader&&(t.preloader=S("preloader",t.container,t.st.tLoading));var c=e.magnificPopup.modules;for(o=0;c.length>o;o++){var l=c[o];l=l.charAt(0).toUpperCase()+l.slice(1),t["init"+l].call(t)}k("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(C(p,function(e,t,n,r){n.close_replaceWith=T(r.type)}),a+=" mfp-close-btn-in"):t.wrap.append(T())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:w.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+m,function(e){27===e.keyCode&&t.close()}),w.on("resize"+m,function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var f=t.wH=w.height(),d={};if(t.fixedContentPos&&t._hasScrollBar(f)){var g=t._getScrollbarSize();g&&(d.marginRight=g)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):d.overflow="hidden");var y=t.st.mainClass;return t.isIE7&&(y+=" mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),k("BuildControls"),e("html").css(d),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||r),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(v),t._setFocus()):t.bgOverlay.addClass(v),i.on("focusin"+m,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(f),k(h),n},close:function(){t.isOpen&&(k(c),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(y),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){k(u);var n=y+" "+v+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var r={marginRight:""};t.isIE7?e("body, html").css("overflow",""):r.overflow="",e("html").css(r)}i.off("keyup"+m+" focusin"+m),t.ev.off(m),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,k(l)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,r=window.innerHeight*n;t.wrap.css("height",r),t.wH=r}else t.wH=e||w.height();t.fixedContentPos||t.wrap.css("height",t.wH),k("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var r=n.type;if(k("BeforeChange",[t.currItem?t.currItem.type:"",r]),t.currItem=n,!t.currTemplate[r]){var i=t.st[r]?t.st[r].markup:!1;k("FirstMarkupParse",i),t.currTemplate[r]=i?e(i):!0}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var a=t["get"+r.charAt(0).toUpperCase()+r.slice(1)](n,t.currTemplate[r]);t.appendContent(a,r),n.preloaded=!0,k(d,n),o=n.type,t.container.prepend(t.contentContainer),k("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[n]===!0?t.content.find(".mfp-close").length||t.content.append(T()):t.content=e:t.content="",k(f),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var r=t.items[n],i=r.type;if(r=r.tagName?{el:e(r)}:{data:r,src:r.src},r.el){for(var o=t.types,a=0;o.length>a;a++)if(r.el.hasClass("mfp-"+o[a])){i=o[a];break}r.src=r.el.attr("data-mfp-src"),r.src||(r.src=r.el.attr("href"))}return r.type=i||t.st.type||"inline",r.index=n,r.parsed=!0,t.items[n]=r,k("ElementParse",r),t.items[n]},addGroup:function(e,n){var r=function(r){r.mfpEl=this,t._openClick(r,e,n)};n||(n={});var i="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(i).on(i,r)):(n.isObj=!1,n.delegate?e.off(i).on(i,n.delegate,r):(n.items=e,e.off(i).on(i,r)))},_openClick:function(n,r,i){var o=void 0!==i.midClick?i.midClick:e.magnificPopup.defaults.midClick;if(o||2!==n.which&&!n.ctrlKey&&!n.metaKey){var a=void 0!==i.disableOn?i.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(a>w.width())return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),i.el=e(n.mfpEl),i.delegate&&(i.items=r.find(i.delegate)),t.open(i)}},updateStatus:function(e,r){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),r||"loading"!==e||(r=t.st.tLoading);var i={status:e,text:r};k("UpdateStatus",i),e=i.status,r=i.text,t.preloader.html(r),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(x)){var r=t.st.closeOnContentClick,i=t.st.closeOnBgClick;if(r&&i)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(r)return!0}else if(i&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||w.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){return n.target===t.wrap[0]||e.contains(t.wrap[0],n.target)?void 0:(t._setFocus(),!1)},_parseMarkup:function(t,n,r){var i;r.data&&(n=e.extend(r.data,n)),k(p,[t,n,r]),e.each(n,function(e,n){if(void 0===n||n===!1)return!0;if(i=e.split("_"),i.length>1){var r=t.find(m+"-"+i[0]);if(r.length>0){var o=i[1];"replaceWith"===o?r[0]!==n[0]&&r.replaceWith(n):"img"===o?r.is("img")?r.attr("src",n):r.replaceWith('<img src="'+n+'" class="'+r.attr("class")+'" />'):r.attr(i[1],n)}}else t.find(m+"-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.id="mfp-sbm",e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:b.prototype,modules:[],open:function(t,n){return E(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){E();var r=e(this);if("string"==typeof n)if("open"===n){var i,o=$?r.data("magnificPopup"):r[0].magnificPopup,a=parseInt(arguments[1],10)||0;o.items?i=o.items[a]:(i=r,o.delegate&&(i=i.find(o.delegate)),i=i.eq(a)),t._openClick({mfpEl:i},r,o)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),$?r.data("magnificPopup",n):r[0].magnificPopup=n,t.addGroup(r,n);return r};var A,N,D,_="inline",j=function(){D&&(N.after(D.addClass(A)).detach(),D=null)};e.magnificPopup.registerModule(_,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(_),C(u+"."+_,function(){j()})},getInline:function(n,r){if(j(),n.src){var i=t.st.inline,o=e(n.src);if(o.length){var a=o[0].parentNode;a&&a.tagName&&(N||(A=i.hiddenClass,N=S(A),A="mfp-"+A),D=o.after(N).detach().removeClass(A)),t.updateStatus("ready")}else t.updateStatus("error",i.tNotFound),o=e("<div>");return n.inlineElement=o,o}return t.updateStatus("ready"),t._parseMarkup(r,{},n),r}}});var O,P="ajax",q=function(){O&&r.removeClass(O)},L=function(){q(),t.req&&t.req.abort()};e.magnificPopup.registerModule(P,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(P),O=t.st.ajax.cursor,C(u+"."+P,L),C("BeforeChange."+P,L)},getAjax:function(n){O&&r.addClass(O),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(r,i,o){var a={data:r,xhr:o};k("ParseAjax",a),t.appendContent(e(a.data),P),n.finished=!0,q(),t._setFocus(),setTimeout(function(){t.wrap.addClass(v)},16),t.updateStatus("ready"),k("AjaxContentAdded")},error:function(){q(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var H,F=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var r=t.st.image.titleSrc;if(r){if(e.isFunction(r))return r.call(t,n);if(n.el)return n.el.attr(r)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var e=t.st.image,n=".image";t.types.push("image"),C(h+n,function(){"image"===t.currItem.type&&e.cursor&&r.addClass(e.cursor)}),C(u+n,function(){e.cursor&&r.removeClass(e.cursor),w.off("resize"+m)}),C("Resize"+n,t.resizeImage),t.isLowIE&&C("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,H&&clearInterval(H),e.isCheckingImgSize=!1,k("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,r=e.img[0],i=function(o){H&&clearInterval(H),H=setInterval(function(){return r.naturalWidth>0?(t._onImageHasSize(e),void 0):(n>200&&clearInterval(H),n++,3===n?i(10):40===n?i(50):100===n&&i(500),void 0)},o)};i(1)},getImage:function(n,r){var i=0,o=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,k("ImageLoadComplete")):(i++,200>i?setTimeout(o,100):a()))},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,u=r.find(".mfp-img");if(u.length){var c=document.createElement("img");c.className="mfp-img",n.img=e(c).on("load.mfploader",o).on("error.mfploader",a),c.src=n.src,u.is("img")&&(n.img=n.img.clone()),c=n.img[0],c.naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(r,{title:F(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(H&&clearInterval(H),n.loadError?(r.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(r.removeClass("mfp-loading"),t.updateStatus("ready")),r):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,r.addClass("mfp-loading"),t.findImageSize(n)),r)}}});var I,R=function(){return void 0===I&&(I=void 0!==document.createElement("p").style.MozTransform),I};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,r=".zoom";if(n.enabled&&t.supportsTransition){var i,o,a=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),r="all "+n.duration/1e3+"s "+n.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return i["-webkit-"+o]=i["-moz-"+o]=i["-o-"+o]=i[o]=r,t.css(i),t},l=function(){t.content.css("visibility","visible")};C("BuildControls"+r,function(){if(t._allowZoom()){if(clearTimeout(i),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return l(),void 0;o=s(e),o.css(t._getOffset()),t.wrap.append(o),i=setTimeout(function(){o.css(t._getOffset(!0)),i=setTimeout(function(){l(),setTimeout(function(){o.remove(),e=o=null,k("ZoomAnimationEnded")},16)},a)},16)}}),C(c+r,function(){if(t._allowZoom()){if(clearTimeout(i),t.st.removalDelay=a,!e){if(e=t._getItemToZoom(),!e)return;o=s(e)}o.css(t._getOffset(!0)),t.wrap.append(o),t.content.css("visibility","hidden"),setTimeout(function(){o.css(t._getOffset())},16)}}),C(u+r,function(){t._allowZoom()&&(l(),o&&o.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(n){var r;r=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var i=r.offset(),o=parseInt(r.css("padding-top"),10),a=parseInt(r.css("padding-bottom"),10);i.top-=e(window).scrollTop()-o;var s={width:r.width(),height:($?r.innerHeight():r[0].offsetHeight)-a-o};return R()?s["-moz-transform"]=s.transform="translate("+i.left+"px,"+i.top+"px)":(s.left=i.left,s.top=i.top),s}}});var U="iframe",z="//about:blank",B=function(e){if(t.currTemplate[U]){var n=t.currTemplate[U].find("iframe");n.length&&(e||(n[0].src=z),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(U,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(U),C("BeforeChange",function(e,t,n){t!==n&&(t===U?B():n===U&&B(!0))}),C(u+"."+U,function(){B()})},getIframe:function(n,r){var i=n.src,o=t.st.iframe;e.each(o.patterns,function(){return i.indexOf(this.index)>-1?(this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1):void 0});var a={};return o.srcAction&&(a[o.srcAction]=i),t._parseMarkup(r,a,n),t.updateStatus("ready"),r}}});var W=function(e){var n=t.items.length;return e>n-1?e-n:0>e?n+e:e},V=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,r=".mfp-gallery",o=Boolean(e.fn.mfpFastClick);return t.direction=!0,n&&n.enabled?(a+=" mfp-gallery",C(h+r,function(){n.navigateByImgClick&&t.wrap.on("click"+r,".mfp-img",function(){return t.items.length>1?(t.next(),!1):void 0}),i.on("keydown"+r,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),C("UpdateStatus"+r,function(e,n){n.text&&(n.text=V(n.text,t.currItem.index,t.items.length))}),C(p+r,function(e,r,i,o){var a=t.items.length;i.counter=a>1?V(n.tCounter,o.index,a):""}),C("BuildControls"+r,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var r=n.arrowMarkup,i=t.arrowLeft=e(r.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(x),a=t.arrowRight=e(r.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(x),s=o?"mfpFastClick":"click";i[s](function(){t.prev()}),a[s](function(){t.next()}),t.isIE7&&(S("b",i[0],!1,!0),S("a",i[0],!1,!0),S("b",a[0],!1,!0),S("a",a[0],!1,!0)),t.container.append(i.add(a))}}),C(d+r,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),C(u+r,function(){i.off(r),t.wrap.off("click"+r),t.arrowLeft&&o&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null}),void 0):!1},next:function(){t.direction=!0,t.index=W(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=W(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,r=Math.min(n[0],t.items.length),i=Math.min(n[1],t.items.length);for(e=1;(t.direction?i:r)>=e;e++)t._preloadItem(t.index+e);for(e=1;(t.direction?r:i)>=e;e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=W(n),!t.items[n].preloaded){var r=t.items[n];r.parsed||(r=t.parseEl(n)),k("LazyLoad",r),"image"===r.type&&(r.img=e('<img class="mfp-img" />').on("load.mfploader",function(){r.hasSize=!0}).on("error.mfploader",function(){r.hasSize=!0,r.loadError=!0,k("LazyLoadError",r)}).attr("src",r.src)),r.preloaded=!0}}}});var X="retina";e.magnificPopup.registerModule(X,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;n=isNaN(n)?n():n,n>1&&(C("ImageHasSize."+X,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),C("ElementParse."+X,function(t,r){r.src=e.replaceSrc(r,n)}))}}}}),function(){var t=1e3,n="ontouchstart"in window,r=function(){w.off("touchmove"+o+" touchend"+o)},i="mfpFastClick",o="."+i;e.fn.mfpFastClick=function(i){return e(this).each(function(){var a,s=e(this);if(n){var u,c,l,f,p,h;s.on("touchstart"+o,function(e){f=!1,h=1,p=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],c=p.clientX,l=p.clientY,w.on("touchmove"+o,function(e){p=e.originalEvent?e.originalEvent.touches:e.touches,h=p.length,p=p[0],(Math.abs(p.clientX-c)>10||Math.abs(p.clientY-l)>10)&&(f=!0,r())}).on("touchend"+o,function(e){r(),f||h>1||(a=!0,e.preventDefault(),clearTimeout(u),u=setTimeout(function(){a=!1},t),i())})})}s.on("click"+o,function(){a||i()})})},e.fn.destroyMfpFastClick=function(){e(this).off("touchstart"+o+" click"+o),n&&w.off("touchmove"+o+" touchend"+o)}}(),E()}(window.jQuery||window.Zepto),!function(){function e(e,t){return t>e?-1:e>t?1:e>=t?0:0/0}function t(e){return null!=e&&!isNaN(e)}function n(e){return{left:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}function r(e){return e.length}function i(e){for(var t=1;e*t%1;)t*=10;return t}function o(e,t){try{for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}catch(r){e.prototype=t}}function a(){}function s(e){return as+e in this}function u(e){return e=as+e,e in this&&delete this[e]}function c(){var e=[];return this.forEach(function(t){e.push(t)}),e}function l(){var e=0;for(var t in this)t.charCodeAt(0)===ss&&++e;return e}function f(){for(var e in this)if(e.charCodeAt(0)===ss)return!1;return!0}function p(){}function h(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function d(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.substring(1);for(var n=0,r=us.length;r>n;++n){var i=us[n]+t;if(i in e)return i}}function g(){}function m(){}function v(e){function t(){for(var t,r=n,i=-1,o=r.length;++i<o;)(t=r[i].on)&&t.apply(this,arguments);return e}var n=[],r=new a;return t.on=function(t,i){var o,a=r.get(t);return arguments.length<2?a&&a.on:(a&&(a.on=null,n=n.slice(0,o=n.indexOf(a)).concat(n.slice(o+1)),r.remove(t)),i&&n.push(r.set(t,{on:i})),e)},t}function y(){Wa.event.preventDefault()}function x(){for(var e,t=Wa.event;e=t.sourceEvent;)t=e;return t}function b(e){for(var t=new m,n=0,r=arguments.length;++n<r;)t[arguments[n]]=v(t);return t.of=function(n,r){return function(i){try{var o=i.sourceEvent=Wa.event;i.target=e,Wa.event=i,t[i.type].apply(n,r)}finally{Wa.event=o}}},t}function $(e){return ls(e,gs),e}function w(e){return"function"==typeof e?e:function(){return fs(e,this)}}function C(e){return"function"==typeof e?e:function(){return ps(e,this)}}function S(e,t){function n(){this.removeAttribute(e)}function r(){this.removeAttributeNS(e.space,e.local)}function i(){this.setAttribute(e,t)}function o(){this.setAttributeNS(e.space,e.local,t)}function a(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}function s(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}return e=Wa.ns.qualify(e),null==t?e.local?r:n:"function"==typeof t?e.local?s:a:e.local?o:i}function k(e){return e.trim().replace(/\s+/g," ")}function T(e){return new RegExp("(?:^|\\s+)"+Wa.requote(e)+"(?:\\s+|$)","g")}function E(e){return(e+"").trim().split(/^|\s+/)}function M(e,t){function n(){for(var n=-1;++n<i;)e[n](this,t)}function r(){for(var n=-1,r=t.apply(this,arguments);++n<i;)e[n](this,r)}e=E(e).map(A);var i=e.length;return"function"==typeof t?r:n}function A(e){var t=T(e);return function(n,r){if(i=n.classList)return r?i.add(e):i.remove(e);var i=n.getAttribute("class")||"";r?(t.lastIndex=0,t.test(i)||n.setAttribute("class",k(i+" "+e))):n.setAttribute("class",k(i.replace(t," ")))}}function N(e,t,n){function r(){this.style.removeProperty(e)}function i(){this.style.setProperty(e,t,n)}function o(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}return null==t?r:"function"==typeof t?o:i}function D(e,t){function n(){delete this[e]}function r(){this[e]=t}function i(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}return null==t?n:"function"==typeof t?i:r}function _(e){return"function"==typeof e?e:(e=Wa.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){return this.ownerDocument.createElementNS(this.namespaceURI,e)}}function j(e){return{__data__:e}}function O(e){return function(){return ds(this,e)}}function P(t){return arguments.length||(t=e),function(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}}function q(e,t){for(var n=0,r=e.length;r>n;n++)for(var i,o=e[n],a=0,s=o.length;s>a;a++)(i=o[a])&&t(i,a,n);return e}function L(e){return ls(e,vs),e}function H(e){var t,n;return function(r,i,o){var a,s=e[o].update,u=s.length;for(o!=n&&(n=o,t=0),i>=t&&(t=i+1);!(a=s[t])&&++t<u;);return a}}function F(){var e=this.__transition__;e&&++e.active}function I(e,t,n){function r(){var t=this[a];t&&(this.removeEventListener(e,t,t.$),delete this[a])}function i(){var i=u(t,Xa(arguments));r.call(this),this.addEventListener(e,this[a]=i,i.$=n),i._=t}function o(){var t,n=new RegExp("^__on([^.]+)"+Wa.requote(e)+"$");for(var r in this)if(t=r.match(n)){var i=this[r];this.removeEventListener(t[1],i,i.$),delete this[r]}}var a="__on"+e,s=e.indexOf("."),u=R;s>0&&(e=e.substring(0,s));var c=xs.get(e);return c&&(e=c,u=U),s?t?i:r:t?g:o}function R(e,t){return function(n){var r=Wa.event;Wa.event=n,t[0]=this.__data__;try{e.apply(this,t)}finally{Wa.event=r}}}function U(e,t){var n=R(e,t);return function(e){var t=this,r=e.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||n.call(t,e)}}function z(){var e=".dragsuppress-"+ ++$s,t="click"+e,n=Wa.select(Za).on("touchmove"+e,y).on("dragstart"+e,y).on("selectstart"+e,y);if(bs){var r=Qa.style,i=r[bs];r[bs]="none"}return function(o){function a(){n.on(t,null)}n.on(e,null),bs&&(r[bs]=i),o&&(n.on(t,function(){y(),a()},!0),setTimeout(a,0))}}function B(e,t){t.changedTouches&&(t=t.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();if(0>ws&&(Za.scrollX||Za.scrollY)){n=Wa.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var i=n[0][0].getScreenCTM();ws=!(i.f||i.e),n.remove()}return ws?(r.x=t.pageX,r.y=t.pageY):(r.x=t.clientX,r.y=t.clientY),r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}function W(){return Wa.event.changedTouches[0].identifier}function V(){return Wa.event.target}function X(){return Za}function Y(e){return e>0?1:0>e?-1:0}function Q(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Z(e){return e>1?0:-1>e?Cs:Math.acos(e)}function J(e){return e>1?ks:-1>e?-ks:Math.asin(e)}function G(e){return((e=Math.exp(e))-1/e)/2}function K(e){return((e=Math.exp(e))+1/e)/2}function et(e){return((e=Math.exp(2*e))-1)/(e+1)}function tt(e){return(e=Math.sin(e/2))*e}function nt(){}function rt(e,t,n){return this instanceof rt?(this.h=+e,this.s=+t,void(this.l=+n)):arguments.length<2?e instanceof rt?new rt(e.h,e.s,e.l):vt(""+e,yt,rt):new rt(e,t,n)}function it(e,t,n){function r(e){return e>360?e-=360:0>e&&(e+=360),60>e?o+(a-o)*e/60:180>e?a:240>e?o+(a-o)*(240-e)/60:o}function i(e){return Math.round(255*r(e))}var o,a;return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:0>t?0:t>1?1:t,n=0>n?0:n>1?1:n,a=.5>=n?n*(1+t):n+t-n*t,o=2*n-a,new ht(i(e+120),i(e),i(e-120))}function ot(e,t,n){return this instanceof ot?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof ot?new ot(e.h,e.c,e.l):e instanceof st?ct(e.l,e.a,e.b):ct((e=xt((e=Wa.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new ot(e,t,n)}function at(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new st(n,Math.cos(e*=Ms)*t,Math.sin(e)*t)}function st(e,t,n){return this instanceof st?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof st?new st(e.l,e.a,e.b):e instanceof ot?at(e.l,e.c,e.h):xt((e=ht(e)).r,e.g,e.b):new st(e,t,n)}function ut(e,t,n){var r=(e+16)/116,i=r+t/500,o=r-n/200;return i=lt(i)*Fs,r=lt(r)*Is,o=lt(o)*Rs,new ht(pt(3.2404542*i-1.5371385*r-.4985314*o),pt(-.969266*i+1.8760108*r+.041556*o),pt(.0556434*i-.2040259*r+1.0572252*o))}function ct(e,t,n){return e>0?new ot(Math.atan2(n,t)*As,Math.sqrt(t*t+n*n),e):new ot(0/0,0/0,e)}function lt(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function ft(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function pt(e){return Math.round(255*(.00304>=e?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function ht(e,t,n){return this instanceof ht?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof ht?new ht(e.r,e.g,e.b):vt(""+e,ht,it):new ht(e,t,n)}function dt(e){return new ht(e>>16,255&e>>8,255&e)}function gt(e){return dt(e)+""}function mt(e){return 16>e?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function vt(e,t,n){var r,i,o,a=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/i.exec(e))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return t($t(i[0]),$t(i[1]),$t(i[2]))}return(o=Bs.get(e))?t(o.r,o.g,o.b):(null==e||"#"!==e.charAt(0)||isNaN(o=parseInt(e.substring(1),16))||(4===e.length?(a=(3840&o)>>4,a=a>>4|a,s=240&o,s=s>>4|s,u=15&o,u=u<<4|u):7===e.length&&(a=(16711680&o)>>16,s=(65280&o)>>8,u=255&o)),t(a,s,u))}function yt(e,t,n){var r,i,o=Math.min(e/=255,t/=255,n/=255),a=Math.max(e,t,n),s=a-o,u=(a+o)/2;return s?(i=.5>u?s/(a+o):s/(2-a-o),r=e==a?(t-n)/s+(n>t?6:0):t==a?(n-e)/s+2:(e-t)/s+4,r*=60):(r=0/0,i=u>0&&1>u?0:r),new rt(r,i,u)}function xt(e,t,n){e=bt(e),t=bt(t),n=bt(n);var r=ft((.4124564*e+.3575761*t+.1804375*n)/Fs),i=ft((.2126729*e+.7151522*t+.072175*n)/Is),o=ft((.0193339*e+.119192*t+.9503041*n)/Rs);return st(116*i-16,500*(r-i),200*(i-o))}function bt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function $t(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}function wt(e){return"function"==typeof e?e:function(){return e}}function Ct(e){return e}function St(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),kt(t,n,e,r)}}function kt(e,t,n,r){function i(){var e,t=u.status;if(!t&&u.responseText||t>=200&&300>t||304===t){try{e=n.call(o,u)}catch(r){return a.error.call(o,r),void 0}a.load.call(o,e)}else a.error.call(o,u)}var o={},a=Wa.dispatch("beforesend","progress","load","error"),s={},u=new XMLHttpRequest,c=null;return!Za.XDomainRequest||"withCredentials"in u||!/^(http(s)?:)?\/\//.test(e)||(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=i:u.onreadystatechange=function(){u.readyState>3&&i()},u.onprogress=function(e){var t=Wa.event;Wa.event=e;try{a.progress.call(o,u)}finally{Wa.event=t}},o.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",o)},o.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",o):t},o.responseType=function(e){return arguments.length?(c=e,o):c},o.response=function(e){return n=e,o},["get","post"].forEach(function(e){o[e]=function(){return o.send.apply(o,[e].concat(Xa(arguments)))}}),o.send=function(n,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),u.open(n,e,!0),null==t||"accept"in s||(s.accept=t+",*/*"),u.setRequestHeader)for(var l in s)u.setRequestHeader(l,s[l]);return null!=t&&u.overrideMimeType&&u.overrideMimeType(t),null!=c&&(u.responseType=c),null!=i&&o.on("error",i).on("load",function(e){i(null,e)}),a.beforesend.call(o,u),u.send(null==r?null:r),o},o.abort=function(){return u.abort(),o},Wa.rebind(o,a,"on"),null==r?o:o.get(Tt(r))}function Tt(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}function Et(){var e=Mt(),t=At()-e;t>24?(isFinite(t)&&(clearTimeout(Ys),Ys=setTimeout(Et,t)),Xs=0):(Xs=1,Zs(Et))}function Mt(){var e=Date.now();for(Qs=Ws;Qs;)e>=Qs.t&&(Qs.f=Qs.c(e-Qs.t)),Qs=Qs.n;return e}function At(){for(var e,t=Ws,n=1/0;t;)t.f?t=e?e.n=t.n:Ws=t.n:(t.t<n&&(n=t.t),t=(e=t).n);return Vs=e,n}function Nt(e,t){return t-(e?Math.ceil(Math.log(e)/Math.LN10):1)}function Dt(e,t){var n=Math.pow(10,3*os(8-t));return{scale:t>8?function(e){return e/n}:function(e){return e*n},symbol:e}}function _t(e){var t=e.decimal,n=e.thousands,r=e.grouping,i=e.currency,o=r?function(e){for(var t=e.length,i=[],o=0,a=r[0];t>0&&a>0;)i.push(e.substring(t-=a,t+a)),a=r[o=(o+1)%r.length];return i.reverse().join(n)}:Ct;return function(e){var n=Gs.exec(e),r=n[1]||" ",a=n[2]||">",s=n[3]||"",u=n[4]||"",c=n[5],l=+n[6],f=n[7],p=n[8],h=n[9],d=1,g="",m="",v=!1;switch(p&&(p=+p.substring(1)),(c||"0"===r&&"="===a)&&(c=r="0",a="=",f&&(l-=Math.floor((l-1)/4))),h){case"n":f=!0,h="g";
break;case"%":d=100,m="%",h="f";break;case"p":d=100,m="%",h="r";break;case"b":case"o":case"x":case"X":"#"===u&&(g="0"+h.toLowerCase());case"c":case"d":v=!0,p=0;break;case"s":d=-1,h="r"}"$"===u&&(g=i[0],m=i[1]),"r"!=h||p||(h="g"),null!=p&&("g"==h?p=Math.max(1,Math.min(21,p)):("e"==h||"f"==h)&&(p=Math.max(0,Math.min(20,p)))),h=Ks.get(h)||jt;var y=c&&f;return function(e){var n=m;if(v&&e%1)return"";var i=0>e||0===e&&0>1/e?(e=-e,"-"):s;if(0>d){var u=Wa.formatPrefix(e,p);e=u.scale(e),n=u.symbol+m}else e*=d;e=h(e,p);var x=e.lastIndexOf("."),b=0>x?e:e.substring(0,x),$=0>x?"":t+e.substring(x+1);!c&&f&&(b=o(b));var w=g.length+b.length+$.length+(y?0:i.length),C=l>w?new Array(w=l-w+1).join(r):"";return y&&(b=o(C+b)),i+=g,e=b+$,("<"===a?i+e+C:">"===a?C+i+e:"^"===a?C.substring(0,w>>=1)+i+e+C.substring(w):i+(y?e:C+e))+n}}}function jt(e){return e+""}function Ot(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Pt(e,t,n){function r(t){var n=e(t),r=o(n,1);return r-t>t-n?n:r}function i(n){return t(n=e(new tu(n-1)),1),n}function o(e,n){return t(e=new tu(+e),n),e}function a(e,r,o){var a=i(e),s=[];if(o>1)for(;r>a;)n(a)%o||s.push(new Date(+a)),t(a,1);else for(;r>a;)s.push(new Date(+a)),t(a,1);return s}function s(e,t,n){try{tu=Ot;var r=new Ot;return r._=e,a(r,t,n)}finally{tu=Date}}e.floor=e,e.round=r,e.ceil=i,e.offset=o,e.range=a;var u=e.utc=qt(e);return u.floor=u,u.round=qt(r),u.ceil=qt(i),u.offset=qt(o),u.range=s,e}function qt(e){return function(t,n){try{tu=Ot;var r=new Ot;return r._=t,e(r,n)._}finally{tu=Date}}}function Lt(e){function t(e){function t(t){for(var n,i,o,a=[],s=-1,u=0;++s<r;)37===e.charCodeAt(s)&&(a.push(e.substring(u,s)),null!=(i=ru[n=e.charAt(++s)])&&(n=e.charAt(++s)),(o=M[n])&&(n=o(t,null==i?"e"===n?" ":"0":i)),a.push(n),u=s+1);return a.push(e.substring(u,s)),a.join("")}var r=e.length;return t.parse=function(t){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},i=n(r,e,t,0);if(i!=t.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var o=null!=r.Z&&tu!==Ot,a=new(o?Ot:tu);return"j"in r?a.setFullYear(r.y,0,r.j):"w"in r&&("W"in r||"U"in r)?(a.setFullYear(r.y,0,1),a.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(a.getDay()+5)%7:r.w+7*r.U-(a.getDay()+6)%7)):a.setFullYear(r.y,r.m,r.d),a.setHours(r.H+Math.floor(r.Z/100),r.M+r.Z%100,r.S,r.L),o?a._:a},t.toString=function(){return e},t}function n(e,t,n,r){for(var i,o,a,s=0,u=t.length,c=n.length;u>s;){if(r>=c)return-1;if(i=t.charCodeAt(s++),37===i){if(a=t.charAt(s++),o=A[a in ru?t.charAt(s++):a],!o||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function r(e,t,n){w.lastIndex=0;var r=w.exec(t.substring(n));return r?(e.w=C.get(r[0].toLowerCase()),n+r[0].length):-1}function i(e,t,n){b.lastIndex=0;var r=b.exec(t.substring(n));return r?(e.w=$.get(r[0].toLowerCase()),n+r[0].length):-1}function o(e,t,n){T.lastIndex=0;var r=T.exec(t.substring(n));return r?(e.m=E.get(r[0].toLowerCase()),n+r[0].length):-1}function a(e,t,n){S.lastIndex=0;var r=S.exec(t.substring(n));return r?(e.m=k.get(r[0].toLowerCase()),n+r[0].length):-1}function s(e,t,r){return n(e,M.c.toString(),t,r)}function u(e,t,r){return n(e,M.x.toString(),t,r)}function c(e,t,r){return n(e,M.X.toString(),t,r)}function l(e,t,n){var r=x.get(t.substring(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)}var f=e.dateTime,p=e.date,h=e.time,d=e.periods,g=e.days,m=e.shortDays,v=e.months,y=e.shortMonths;t.utc=function(e){function n(e){try{tu=Ot;var t=new tu;return t._=e,r(t)}finally{tu=Date}}var r=t(e);return n.parse=function(e){try{tu=Ot;var t=r.parse(e);return t&&t._}finally{tu=Date}},n.toString=r.toString,n},t.multi=t.utc.multi=rn;var x=Wa.map(),b=Ft(g),$=It(g),w=Ft(m),C=It(m),S=Ft(v),k=It(v),T=Ft(y),E=It(y);d.forEach(function(e,t){x.set(e.toLowerCase(),t)});var M={a:function(e){return m[e.getDay()]},A:function(e){return g[e.getDay()]},b:function(e){return y[e.getMonth()]},B:function(e){return v[e.getMonth()]},c:t(f),d:function(e,t){return Ht(e.getDate(),t,2)},e:function(e,t){return Ht(e.getDate(),t,2)},H:function(e,t){return Ht(e.getHours(),t,2)},I:function(e,t){return Ht(e.getHours()%12||12,t,2)},j:function(e,t){return Ht(1+eu.dayOfYear(e),t,3)},L:function(e,t){return Ht(e.getMilliseconds(),t,3)},m:function(e,t){return Ht(e.getMonth()+1,t,2)},M:function(e,t){return Ht(e.getMinutes(),t,2)},p:function(e){return d[+(e.getHours()>=12)]},S:function(e,t){return Ht(e.getSeconds(),t,2)},U:function(e,t){return Ht(eu.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Ht(eu.mondayOfYear(e),t,2)},x:t(p),X:t(h),y:function(e,t){return Ht(e.getFullYear()%100,t,2)},Y:function(e,t){return Ht(e.getFullYear()%1e4,t,4)},Z:tn,"%":function(){return"%"}},A={a:r,A:i,b:o,B:a,c:s,d:Qt,e:Qt,H:Jt,I:Jt,j:Zt,L:en,m:Yt,M:Gt,p:l,S:Kt,U:Ut,w:Rt,W:zt,x:u,X:c,y:Wt,Y:Bt,Z:Vt,"%":nn};return t}function Ht(e,t,n){var r=0>e?"-":"",i=(r?-e:e)+"",o=i.length;return r+(n>o?new Array(n-o+1).join(t)+i:i)}function Ft(e){return new RegExp("^(?:"+e.map(Wa.requote).join("|")+")","i")}function It(e){for(var t=new a,n=-1,r=e.length;++n<r;)t.set(e[n].toLowerCase(),n);return t}function Rt(e,t,n){iu.lastIndex=0;var r=iu.exec(t.substring(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ut(e,t,n){iu.lastIndex=0;var r=iu.exec(t.substring(n));return r?(e.U=+r[0],n+r[0].length):-1}function zt(e,t,n){iu.lastIndex=0;var r=iu.exec(t.substring(n));return r?(e.W=+r[0],n+r[0].length):-1}function Bt(e,t,n){iu.lastIndex=0;var r=iu.exec(t.substring(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Wt(e,t,n){iu.lastIndex=0;var r=iu.exec(t.substring(n,n+2));return r?(e.y=Xt(+r[0]),n+r[0].length):-1}function Vt(e,t,n){return/^[+-]\d{4}$/.test(t=t.substring(n,n+5))?(e.Z=-t,n+5):-1}function Xt(e){return e+(e>68?1900:2e3)}function Yt(e,t,n){iu.lastIndex=0;var r=iu.exec(t.substring(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Qt(e,t,n){iu.lastIndex=0;var r=iu.exec(t.substring(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Zt(e,t,n){iu.lastIndex=0;var r=iu.exec(t.substring(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function Jt(e,t,n){iu.lastIndex=0;var r=iu.exec(t.substring(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Gt(e,t,n){iu.lastIndex=0;var r=iu.exec(t.substring(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Kt(e,t,n){iu.lastIndex=0;var r=iu.exec(t.substring(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function en(e,t,n){iu.lastIndex=0;var r=iu.exec(t.substring(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function tn(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=~~(os(t)/60),i=os(t)%60;return n+Ht(r,"0",2)+Ht(i,"0",2)}function nn(e,t,n){ou.lastIndex=0;var r=ou.exec(t.substring(n,n+1));return r?n+r[0].length:-1}function rn(e){for(var t=e.length,n=-1;++n<t;)e[n][0]=this(e[n][0]);return function(t){for(var n=0,r=e[n];!r[1](t);)r=e[++n];return r[0](t)}}function on(){}function an(e,t,n){var r=n.s=e+t,i=r-e,o=r-i;n.t=e-o+(t-i)}function sn(e,t){e&&cu.hasOwnProperty(e.type)&&cu[e.type](e,t)}function un(e,t,n){var r,i=-1,o=e.length-n;for(t.lineStart();++i<o;)r=e[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function cn(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)un(e[n],t,1);t.polygonEnd()}function ln(){function e(e,t){e*=Ms,t=t*Ms/2+Cs/4;var n=e-r,a=n>=0?1:-1,s=a*n,u=Math.cos(t),c=Math.sin(t),l=o*c,f=i*u+l*Math.cos(s),p=l*a*Math.sin(s);fu.add(Math.atan2(p,f)),r=e,i=u,o=c}var t,n,r,i,o;pu.point=function(a,s){pu.point=e,r=(t=a)*Ms,i=Math.cos(s=(n=s)*Ms/2+Cs/4),o=Math.sin(s)},pu.lineEnd=function(){e(t,n)}}function fn(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function pn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function hn(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function dn(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function gn(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function mn(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function vn(e){return[Math.atan2(e[1],e[0]),J(e[2])]}function yn(e,t){return os(e[0]-t[0])<Ts&&os(e[1]-t[1])<Ts}function xn(e,t){e*=Ms;var n=Math.cos(t*=Ms);bn(n*Math.cos(e),n*Math.sin(e),Math.sin(t))}function bn(e,t,n){++hu,gu+=(e-gu)/hu,mu+=(t-mu)/hu,vu+=(n-vu)/hu}function $n(){function e(e,i){e*=Ms;var o=Math.cos(i*=Ms),a=o*Math.cos(e),s=o*Math.sin(e),u=Math.sin(i),c=Math.atan2(Math.sqrt((c=n*u-r*s)*c+(c=r*a-t*u)*c+(c=t*s-n*a)*c),t*a+n*s+r*u);du+=c,yu+=c*(t+(t=a)),xu+=c*(n+(n=s)),bu+=c*(r+(r=u)),bn(t,n,r)}var t,n,r;Su.point=function(i,o){i*=Ms;var a=Math.cos(o*=Ms);t=a*Math.cos(i),n=a*Math.sin(i),r=Math.sin(o),Su.point=e,bn(t,n,r)}}function wn(){Su.point=xn}function Cn(){function e(e,t){e*=Ms;var n=Math.cos(t*=Ms),a=n*Math.cos(e),s=n*Math.sin(e),u=Math.sin(t),c=i*u-o*s,l=o*a-r*u,f=r*s-i*a,p=Math.sqrt(c*c+l*l+f*f),h=r*a+i*s+o*u,d=p&&-Z(h)/p,g=Math.atan2(p,h);$u+=d*c,wu+=d*l,Cu+=d*f,du+=g,yu+=g*(r+(r=a)),xu+=g*(i+(i=s)),bu+=g*(o+(o=u)),bn(r,i,o)}var t,n,r,i,o;Su.point=function(a,s){t=a,n=s,Su.point=e,a*=Ms;var u=Math.cos(s*=Ms);r=u*Math.cos(a),i=u*Math.sin(a),o=Math.sin(s),bn(r,i,o)},Su.lineEnd=function(){e(t,n),Su.lineEnd=wn,Su.point=xn}}function Sn(){return!0}function kn(e,t,n,r,i){var o=[],a=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n=e[0],r=e[t];if(yn(n,r)){i.lineStart();for(var s=0;t>s;++s)i.point((n=e[s])[0],n[1]);return i.lineEnd(),void 0}var u=new En(n,e,null,!0),c=new En(n,null,u,!1);u.o=c,o.push(u),a.push(c),u=new En(r,e,null,!1),c=new En(r,null,u,!0),u.o=c,o.push(u),a.push(c)}}),a.sort(t),Tn(o),Tn(a),o.length){for(var s=0,u=n,c=a.length;c>s;++s)a[s].e=u=!u;for(var l,f,p=o[0];;){for(var h=p,d=!0;h.v;)if((h=h.n)===p)return;l=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(var s=0,c=l.length;c>s;++s)i.point((f=l[s])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d){l=h.p.z;for(var s=l.length-1;s>=0;--s)i.point((f=l[s])[0],f[1])}else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,l=h.z,d=!d}while(!h.v);i.lineEnd()}}}function Tn(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r<t;)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}function En(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Mn(e,t,n,r){return function(i,o){function a(t,n){var r=i(t,n);e(t=r[0],n=r[1])&&o.point(t,n)}function s(e,t){var n=i(e,t);m.point(n[0],n[1])}function u(){y.point=s,m.lineStart()}function c(){y.point=a,m.lineEnd()}function l(e,t){g.push([e,t]);var n=i(e,t);b.point(n[0],n[1])}function f(){b.lineStart(),g=[]}function p(){l(g[0][0],g[0][1]),b.lineEnd();var e,t=b.clean(),n=x.buffer(),r=n.length;if(g.pop(),d.push(g),g=null,r)if(1&t){e=n[0];var i,r=e.length-1,a=-1;if(r>0){for($||(o.polygonStart(),$=!0),o.lineStart();++a<r;)o.point((i=e[a])[0],i[1]);o.lineEnd()}}else r>1&&2&t&&n.push(n.pop().concat(n.shift())),h.push(n.filter(An))}var h,d,g,m=t(o),v=i.invert(r[0],r[1]),y={point:a,lineStart:u,lineEnd:c,polygonStart:function(){y.point=l,y.lineStart=f,y.lineEnd=p,h=[],d=[]},polygonEnd:function(){y.point=a,y.lineStart=u,y.lineEnd=c,h=Wa.merge(h);var e=_n(v,d);h.length?($||(o.polygonStart(),$=!0),kn(h,Dn,e,n,o)):e&&($||(o.polygonStart(),$=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),$&&(o.polygonEnd(),$=!1),h=d=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}},x=Nn(),b=t(x),$=!1;return y}}function An(e){return e.length>1}function Nn(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:g,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function Dn(e,t){return((e=e.x)[0]<0?e[1]-ks-Ts:ks-e[1])-((t=t.x)[0]<0?t[1]-ks-Ts:ks-t[1])}function _n(e,t){var n=e[0],r=e[1],i=[Math.sin(n),-Math.cos(n),0],o=0,a=0;fu.reset();for(var s=0,u=t.length;u>s;++s){var c=t[s],l=c.length;if(l)for(var f=c[0],p=f[0],h=f[1]/2+Cs/4,d=Math.sin(h),g=Math.cos(h),m=1;;){m===l&&(m=0),e=c[m];var v=e[0],y=e[1]/2+Cs/4,x=Math.sin(y),b=Math.cos(y),$=v-p,w=$>=0?1:-1,C=w*$,S=C>Cs,k=d*x;if(fu.add(Math.atan2(k*w*Math.sin(C),g*b+k*Math.cos(C))),o+=S?$+w*Ss:$,S^p>=n^v>=n){var T=hn(fn(f),fn(e));mn(T);var E=hn(i,T);mn(E);var M=(S^$>=0?-1:1)*J(E[2]);(r>M||r===M&&(T[0]||T[1]))&&(a+=S^$>=0?1:-1)}if(!m++)break;p=v,d=x,g=b,f=e}}return(-Ts>o||Ts>o&&0>fu)^1&a}function jn(e){var t,n=0/0,r=0/0,i=0/0;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?Cs:-Cs,u=os(o-n);os(u-Cs)<Ts?(e.point(n,r=(r+a)/2>0?ks:-ks),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(o,r),t=0):i!==s&&u>=Cs&&(os(n-i)<Ts&&(n-=i*Ts),os(o-s)<Ts&&(o-=s*Ts),r=On(n,r,o,a),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=o,r=a),i=s},lineEnd:function(){e.lineEnd(),n=r=0/0},clean:function(){return 2-t}}}function On(e,t,n,r){var i,o,a=Math.sin(e-n);return os(a)>Ts?Math.atan((Math.sin(t)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(t))*Math.sin(e))/(i*o*a)):(t+r)/2}function Pn(e,t,n,r){var i;if(null==e)i=n*ks,r.point(-Cs,i),r.point(0,i),r.point(Cs,i),r.point(Cs,0),r.point(Cs,-i),r.point(0,-i),r.point(-Cs,-i),r.point(-Cs,0),r.point(-Cs,i);else if(os(e[0]-t[0])>Ts){var o=e[0]<t[0]?Cs:-Cs;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])}function qn(e){function t(e,t){return Math.cos(e)*Math.cos(t)>o}function n(e){var n,o,u,c,l;return{lineStart:function(){c=u=!1,l=1},point:function(f,p){var h,d=[f,p],g=t(f,p),m=a?g?0:i(f,p):g?i(f+(0>f?Cs:-Cs),p):0;if(!n&&(c=u=g)&&e.lineStart(),g!==u&&(h=r(n,d),(yn(n,h)||yn(d,h))&&(d[0]+=Ts,d[1]+=Ts,g=t(d[0],d[1]))),g!==u)l=0,g?(e.lineStart(),h=r(d,n),e.point(h[0],h[1])):(h=r(n,d),e.point(h[0],h[1]),e.lineEnd()),n=h;else if(s&&n&&a^g){var v;m&o||!(v=r(d,n,!0))||(l=0,a?(e.lineStart(),e.point(v[0][0],v[0][1]),e.point(v[1][0],v[1][1]),e.lineEnd()):(e.point(v[1][0],v[1][1]),e.lineEnd(),e.lineStart(),e.point(v[0][0],v[0][1])))}!g||n&&yn(n,d)||e.point(d[0],d[1]),n=d,u=g,o=m},lineEnd:function(){u&&e.lineEnd(),n=null},clean:function(){return l|(c&&u)<<1}}}function r(e,t,n){var r=fn(e),i=fn(t),a=[1,0,0],s=hn(r,i),u=pn(s,s),c=s[0],l=u-c*c;if(!l)return!n&&e;var f=o*u/l,p=-o*c/l,h=hn(a,s),d=gn(a,f),g=gn(s,p);dn(d,g);var m=h,v=pn(d,m),y=pn(m,m),x=v*v-y*(pn(d,d)-1);if(!(0>x)){var b=Math.sqrt(x),$=gn(m,(-v-b)/y);if(dn($,d),$=vn($),!n)return $;var w,C=e[0],S=t[0],k=e[1],T=t[1];C>S&&(w=C,C=S,S=w);var E=S-C,M=os(E-Cs)<Ts,A=M||Ts>E;if(!M&&k>T&&(w=k,k=T,T=w),A?M?k+T>0^$[1]<(os($[0]-C)<Ts?k:T):k<=$[1]&&$[1]<=T:E>Cs^(C<=$[0]&&$[0]<=S)){var N=gn(m,(-v+b)/y);return dn(N,d),[$,vn(N)]}}}function i(t,n){var r=a?e:Cs-e,i=0;return-r>t?i|=1:t>r&&(i|=2),-r>n?i|=4:n>r&&(i|=8),i}var o=Math.cos(e),a=o>0,s=os(o)>Ts,u=lr(e,6*Ms);return Mn(t,n,u,a?[0,-e]:[-Cs,e-Cs])}function Ln(e,t,n,r){return function(i){var o,a=i.a,s=i.b,u=a.x,c=a.y,l=s.x,f=s.y,p=0,h=1,d=l-u,g=f-c;if(o=e-u,d||!(o>0)){if(o/=d,0>d){if(p>o)return;h>o&&(h=o)}else if(d>0){if(o>h)return;o>p&&(p=o)}if(o=n-u,d||!(0>o)){if(o/=d,0>d){if(o>h)return;o>p&&(p=o)}else if(d>0){if(p>o)return;h>o&&(h=o)}if(o=t-c,g||!(o>0)){if(o/=g,0>g){if(p>o)return;h>o&&(h=o)}else if(g>0){if(o>h)return;o>p&&(p=o)}if(o=r-c,g||!(0>o)){if(o/=g,0>g){if(o>h)return;o>p&&(p=o)}else if(g>0){if(p>o)return;h>o&&(h=o)}return p>0&&(i.a={x:u+p*d,y:c+p*g}),1>h&&(i.b={x:u+h*d,y:c+h*g}),i}}}}}}function Hn(e,t,n,r){function i(r,i){return os(r[0]-e)<Ts?i>0?0:3:os(r[0]-n)<Ts?i>0?2:1:os(r[1]-t)<Ts?i>0?1:0:i>0?3:2}function o(e,t){return a(e.x,t.x)}function a(e,t){var n=i(e,1),r=i(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(s){function u(e){for(var t=0,n=m.length,r=e[1],i=0;n>i;++i)for(var o,a=1,s=m[i],u=s.length,c=s[0];u>a;++a)o=s[a],c[1]<=r?o[1]>r&&Q(c,o,e)>0&&++t:o[1]<=r&&Q(c,o,e)<0&&--t,c=o;return 0!==t}function c(o,s,u,c){var l=0,f=0;if(null==o||(l=i(o,u))!==(f=i(s,u))||a(o,s)<0^u>0){do c.point(0===l||3===l?e:n,l>1?r:t);while((l=(l+u+4)%4)!==f)}else c.point(s[0],s[1])}function l(i,o){return i>=e&&n>=i&&o>=t&&r>=o}function f(e,t){l(e,t)&&s.point(e,t)}function p(){A.point=d,m&&m.push(v=[]),S=!0,C=!1,$=w=0/0}function h(){g&&(d(y,x),b&&C&&E.rejoin(),g.push(E.buffer())),A.point=f,C&&s.lineEnd()}function d(e,t){e=Math.max(-Tu,Math.min(Tu,e)),t=Math.max(-Tu,Math.min(Tu,t));var n=l(e,t);if(m&&v.push([e,t]),S)y=e,x=t,b=n,S=!1,n&&(s.lineStart(),s.point(e,t));else if(n&&C)s.point(e,t);else{var r={a:{x:$,y:w},b:{x:e,y:t}};M(r)?(C||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),k=!1):n&&(s.lineStart(),s.point(e,t),k=!1)}$=e,w=t,C=n}var g,m,v,y,x,b,$,w,C,S,k,T=s,E=Nn(),M=Ln(e,t,n,r),A={point:f,lineStart:p,lineEnd:h,polygonStart:function(){s=E,g=[],m=[],k=!0},polygonEnd:function(){s=T,g=Wa.merge(g);var t=u([e,r]),n=k&&t,i=g.length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),c(null,null,1,s),s.lineEnd()),i&&kn(g,o,t,c,s),s.polygonEnd()),g=m=v=null}};return A}}function Fn(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return n=t.invert(n,r),n&&e.invert(n[0],n[1])}),n}function In(e){var t=0,n=Cs/3,r=nr(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*Cs/180,n=e[1]*Cs/180):[180*(t/Cs),180*(n/Cs)]},i}function Rn(e,t){function n(e,t){var n=Math.sqrt(o-2*i*Math.sin(t))/i;return[n*Math.sin(e*=i),a-n*Math.cos(e)]}var r=Math.sin(e),i=(r+Math.sin(t))/2,o=1+r*(2*i-r),a=Math.sqrt(o)/i;return n.invert=function(e,t){var n=a-t;return[Math.atan2(e,n)/i,J((o-(e*e+n*n)*i*i)/(2*i))]},n}function Un(){function e(e,t){Mu+=i*e-r*t,r=e,i=t}var t,n,r,i;ju.point=function(o,a){ju.point=e,t=r=o,n=i=a},ju.lineEnd=function(){e(t,n)}}function zn(e,t){Au>e&&(Au=e),e>Du&&(Du=e),Nu>t&&(Nu=t),t>_u&&(_u=t)}function Bn(){function e(e,t){a.push("M",e,",",t,o)}function t(e,t){a.push("M",e,",",t),s.point=n}function n(e,t){a.push("L",e,",",t)}function r(){s.point=e}function i(){a.push("Z")}var o=Wn(4.5),a=[],s={point:e,lineStart:function(){s.point=t},lineEnd:r,polygonStart:function(){s.lineEnd=i},polygonEnd:function(){s.lineEnd=r,s.point=e},pointRadius:function(e){return o=Wn(e),s},result:function(){if(a.length){var e=a.join("");return a=[],e}}};return s}function Wn(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function Vn(e,t){gu+=e,mu+=t,++vu}function Xn(){function e(e,r){var i=e-t,o=r-n,a=Math.sqrt(i*i+o*o);yu+=a*(t+e)/2,xu+=a*(n+r)/2,bu+=a,Vn(t=e,n=r)}var t,n;Pu.point=function(r,i){Pu.point=e,Vn(t=r,n=i)}}function Yn(){Pu.point=Vn}function Qn(){function e(e,t){var n=e-r,o=t-i,a=Math.sqrt(n*n+o*o);yu+=a*(r+e)/2,xu+=a*(i+t)/2,bu+=a,a=i*e-r*t,$u+=a*(r+e),wu+=a*(i+t),Cu+=3*a,Vn(r=e,i=t)}var t,n,r,i;Pu.point=function(o,a){Pu.point=e,Vn(t=r=o,n=i=a)},Pu.lineEnd=function(){e(t,n)}}function Zn(e){function t(t,n){e.moveTo(t,n),e.arc(t,n,a,0,Ss)}function n(t,n){e.moveTo(t,n),s.point=r}function r(t,n){e.lineTo(t,n)}function i(){s.point=t}function o(){e.closePath()}var a=4.5,s={point:t,lineStart:function(){s.point=n},lineEnd:i,polygonStart:function(){s.lineEnd=o},polygonEnd:function(){s.lineEnd=i,s.point=t},pointRadius:function(e){return a=e,s},result:g};return s}function Jn(e){function t(e){return(s?r:n)(e)}function n(t){return er(t,function(n,r){n=e(n,r),t.point(n[0],n[1])})}function r(t){function n(n,r){n=e(n,r),t.point(n[0],n[1])}function r(){x=0/0,S.point=o,t.lineStart()}function o(n,r){var o=fn([n,r]),a=e(n,r);i(x,b,y,$,w,C,x=a[0],b=a[1],y=n,$=o[0],w=o[1],C=o[2],s,t),t.point(x,b)}function a(){S.point=n,t.lineEnd()}function u(){r(),S.point=c,S.lineEnd=l}function c(e,t){o(f=e,p=t),h=x,d=b,g=$,m=w,v=C,S.point=o}function l(){i(x,b,y,$,w,C,h,d,f,g,m,v,s,t),S.lineEnd=a,a()}var f,p,h,d,g,m,v,y,x,b,$,w,C,S={point:n,lineStart:r,lineEnd:a,polygonStart:function(){t.polygonStart(),S.lineStart=u},polygonEnd:function(){t.polygonEnd(),S.lineStart=r}};return S}function i(t,n,r,s,u,c,l,f,p,h,d,g,m,v){var y=l-t,x=f-n,b=y*y+x*x;if(b>4*o&&m--){var $=s+h,w=u+d,C=c+g,S=Math.sqrt($*$+w*w+C*C),k=Math.asin(C/=S),T=os(os(C)-1)<Ts||os(r-p)<Ts?(r+p)/2:Math.atan2(w,$),E=e(T,k),M=E[0],A=E[1],N=M-t,D=A-n,_=x*N-y*D;(_*_/b>o||os((y*N+x*D)/b-.5)>.3||a>s*h+u*d+c*g)&&(i(t,n,r,s,u,c,M,A,T,$/=S,w/=S,C,m,v),v.point(M,A),i(M,A,T,$,w,C,l,f,p,h,d,g,m,v))}}var o=.5,a=Math.cos(30*Ms),s=16;return t.precision=function(e){return arguments.length?(s=(o=e*e)>0&&16,t):Math.sqrt(o)},t}function Gn(e){var t=Jn(function(t,n){return e([t*As,n*As])});return function(e){return rr(t(e))}}function Kn(e){this.stream=e}function er(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function tr(e){return nr(function(){return e})()}function nr(e){function t(e){return e=s(e[0]*Ms,e[1]*Ms),[e[0]*p+u,c-e[1]*p]}function n(e){return e=s.invert((e[0]-u)/p,(c-e[1])/p),e&&[e[0]*As,e[1]*As]}function r(){s=Fn(a=ar(v,y,x),o);var e=o(g,m);return u=h-e[0]*p,c=d+e[1]*p,i()}function i(){return l&&(l.valid=!1,l=null),t}var o,a,s,u,c,l,f=Jn(function(e,t){return e=o(e,t),[e[0]*p+u,c-e[1]*p]}),p=150,h=480,d=250,g=0,m=0,v=0,y=0,x=0,b=ku,$=Ct,w=null,C=null;return t.stream=function(e){return l&&(l.valid=!1),l=rr(b(a,f($(e)))),l.valid=!0,l},t.clipAngle=function(e){return arguments.length?(b=null==e?(w=e,ku):qn((w=+e)*Ms),i()):w},t.clipExtent=function(e){return arguments.length?(C=e,$=e?Hn(e[0][0],e[0][1],e[1][0],e[1][1]):Ct,i()):C},t.scale=function(e){return arguments.length?(p=+e,r()):p},t.translate=function(e){return arguments.length?(h=+e[0],d=+e[1],r()):[h,d]},t.center=function(e){return arguments.length?(g=e[0]%360*Ms,m=e[1]%360*Ms,r()):[g*As,m*As]},t.rotate=function(e){return arguments.length?(v=e[0]%360*Ms,y=e[1]%360*Ms,x=e.length>2?e[2]%360*Ms:0,r()):[v*As,y*As,x*As]},Wa.rebind(t,f,"precision"),function(){return o=e.apply(this,arguments),t.invert=o.invert&&n,r()}}function rr(e){return er(e,function(t,n){e.point(t*Ms,n*Ms)})}function ir(e,t){return[e,t]}function or(e,t){return[e>Cs?e-Ss:-Cs>e?e+Ss:e,t]}function ar(e,t,n){return e?t||n?Fn(ur(e),cr(t,n)):ur(e):t||n?cr(t,n):or}function sr(e){return function(t,n){return t+=e,[t>Cs?t-Ss:-Cs>t?t+Ss:t,n]}}function ur(e){var t=sr(e);return t.invert=sr(-e),t}function cr(e,t){function n(e,t){var n=Math.cos(t),s=Math.cos(e)*n,u=Math.sin(e)*n,c=Math.sin(t),l=c*r+s*i;return[Math.atan2(u*o-l*a,s*r-c*i),J(l*o+u*a)]}var r=Math.cos(e),i=Math.sin(e),o=Math.cos(t),a=Math.sin(t);return n.invert=function(e,t){var n=Math.cos(t),s=Math.cos(e)*n,u=Math.sin(e)*n,c=Math.sin(t),l=c*o-u*a;return[Math.atan2(u*o+c*a,s*r+l*i),J(l*r-s*i)]},n}function lr(e,t){var n=Math.cos(e),r=Math.sin(e);return function(i,o,a,s){var u=a*t;null!=i?(i=fr(n,i),o=fr(n,o),(a>0?o>i:i>o)&&(i+=a*Ss)):(i=e+a*Ss,o=e-.5*u);for(var c,l=i;a>0?l>o:o>l;l-=u)s.point((c=vn([n,-r*Math.cos(l),-r*Math.sin(l)]))[0],c[1])}}function fr(e,t){var n=fn(t);n[0]-=e,mn(n);var r=Z(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Ts)%(2*Math.PI)}function pr(e,t,n){var r=Wa.range(e,t-Ts,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function hr(e,t,n){var r=Wa.range(e,t-Ts,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function dr(e){return e.source}function gr(e){return e.target}function mr(e,t,n,r){var i=Math.cos(t),o=Math.sin(t),a=Math.cos(r),s=Math.sin(r),u=i*Math.cos(e),c=i*Math.sin(e),l=a*Math.cos(n),f=a*Math.sin(n),p=2*Math.asin(Math.sqrt(tt(r-t)+i*a*tt(n-e))),h=1/Math.sin(p),d=p?function(e){var t=Math.sin(e*=p)*h,n=Math.sin(p-e)*h,r=n*u+t*l,i=n*c+t*f,a=n*o+t*s;return[Math.atan2(i,r)*As,Math.atan2(a,Math.sqrt(r*r+i*i))*As]}:function(){return[e*As,t*As]};return d.distance=p,d}function vr(){function e(e,i){var o=Math.sin(i*=Ms),a=Math.cos(i),s=os((e*=Ms)-t),u=Math.cos(s);qu+=Math.atan2(Math.sqrt((s=a*Math.sin(s))*s+(s=r*o-n*a*u)*s),n*o+r*a*u),t=e,n=o,r=a}var t,n,r;Lu.point=function(i,o){t=i*Ms,n=Math.sin(o*=Ms),r=Math.cos(o),Lu.point=e},Lu.lineEnd=function(){Lu.point=Lu.lineEnd=g}}function yr(e,t){function n(t,n){var r=Math.cos(t),i=Math.cos(n),o=e(r*i);return[o*i*Math.sin(t),o*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),i=t(r),o=Math.sin(i),a=Math.cos(i);return[Math.atan2(e*o,r*a),Math.asin(r&&n*o/r)]},n}function xr(e,t){function n(e,t){a>0?-ks+Ts>t&&(t=-ks+Ts):t>ks-Ts&&(t=ks-Ts);var n=a/Math.pow(i(t),o);return[n*Math.sin(o*e),a-n*Math.cos(o*e)]}var r=Math.cos(e),i=function(e){return Math.tan(Cs/4+e/2)},o=e===t?Math.sin(e):Math.log(r/Math.cos(t))/Math.log(i(t)/i(e)),a=r*Math.pow(i(e),o)/o;return o?(n.invert=function(e,t){var n=a-t,r=Y(o)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/o,2*Math.atan(Math.pow(a/r,1/o))-ks]},n):$r}function br(e,t){function n(e,t){var n=o-t;return[n*Math.sin(i*e),o-n*Math.cos(i*e)]}var r=Math.cos(e),i=e===t?Math.sin(e):(r-Math.cos(t))/(t-e),o=r/i+e;return os(i)<Ts?ir:(n.invert=function(e,t){var n=o-t;return[Math.atan2(e,n)/i,o-Y(i)*Math.sqrt(e*e+n*n)]},n)}function $r(e,t){return[e,Math.log(Math.tan(Cs/4+t/2))]}function wr(e){var t,n=tr(e),r=n.scale,i=n.translate,o=n.clipExtent;return n.scale=function(){var e=r.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.translate=function(){var e=i.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.clipExtent=function(e){var a=o.apply(n,arguments);if(a===n){if(t=null==e){var s=Cs*r(),u=i();o([[u[0]-s,u[1]-s],[u[0]+s,u[1]+s]])}}else t&&(a=null);return a},n.clipExtent(null)}function Cr(e,t){return[Math.log(Math.tan(Cs/4+t/2)),-e]}function Sr(e){return e[0]}function kr(e){return e[1]}function Tr(e){for(var t=e.length,n=[0,1],r=2,i=2;t>i;i++){for(;r>1&&Q(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function Er(e,t){return e[0]-t[0]||e[1]-t[1]}function Mr(e,t,n){return(n[0]-t[0])*(e[1]-t[1])<(n[1]-t[1])*(e[0]-t[0])}function Ar(e,t,n,r){var i=e[0],o=n[0],a=t[0]-i,s=r[0]-o,u=e[1],c=n[1],l=t[1]-u,f=r[1]-c,p=(s*(u-c)-f*(i-o))/(f*a-s*l);return[i+p*a,u+p*l]}function Nr(e){var t=e[0],n=e[e.length-1];return!(t[0]-n[0]||t[1]-n[1])}function Dr(){Gr(this),this.edge=this.site=this.circle=null}function _r(e){var t=Qu.pop()||new Dr;return t.site=e,t}function jr(e){zr(e),Vu.remove(e),Qu.push(e),Gr(e)}function Or(e){var t=e.circle,n=t.x,r=t.cy,i={x:n,y:r},o=e.P,a=e.N,s=[e];jr(e);for(var u=o;u.circle&&os(n-u.circle.x)<Ts&&os(r-u.circle.cy)<Ts;)o=u.P,s.unshift(u),jr(u),u=o;s.unshift(u),zr(u);for(var c=a;c.circle&&os(n-c.circle.x)<Ts&&os(r-c.circle.cy)<Ts;)a=c.N,s.push(c),jr(c),c=a;s.push(c),zr(c);var l,f=s.length;for(l=1;f>l;++l)c=s[l],u=s[l-1],Qr(c.edge,u.site,c.site,i);u=s[0],c=s[f-1],c.edge=Xr(u.site,c.site,null,i),Ur(u),Ur(c)}function Pr(e){for(var t,n,r,i,o=e.x,a=e.y,s=Vu._;s;)if(r=qr(s,a)-o,r>Ts)s=s.L;else{if(i=o-Lr(s,a),!(i>Ts)){r>-Ts?(t=s.P,n=s):i>-Ts?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}var u=_r(e);if(Vu.insert(t,u),t||n){if(t===n)return zr(t),n=_r(t.site),Vu.insert(u,n),u.edge=n.edge=Xr(t.site,u.site),Ur(t),Ur(n),void 0;if(!n)return u.edge=Xr(t.site,u.site),void 0;zr(t),zr(n);var c=t.site,l=c.x,f=c.y,p=e.x-l,h=e.y-f,d=n.site,g=d.x-l,m=d.y-f,v=2*(p*m-h*g),y=p*p+h*h,x=g*g+m*m,b={x:(m*y-h*x)/v+l,y:(p*x-g*y)/v+f};Qr(n.edge,c,d,b),u.edge=Xr(c,e,null,b),n.edge=Xr(e,d,null,b),Ur(t),Ur(n)}}function qr(e,t){var n=e.site,r=n.x,i=n.y,o=i-t;if(!o)return r;var a=e.P;if(!a)return-1/0;n=a.site;var s=n.x,u=n.y,c=u-t;if(!c)return s;var l=s-r,f=1/o-1/c,p=l/c;return f?(-p+Math.sqrt(p*p-2*f*(l*l/(-2*c)-u+c/2+i-o/2)))/f+r:(r+s)/2}function Lr(e,t){var n=e.N;if(n)return qr(n,t);var r=e.site;return r.y===t?r.x:1/0}function Hr(e){this.site=e,this.edges=[]}function Fr(e){for(var t,n,r,i,o,a,s,u,c,l,f=e[0][0],p=e[1][0],h=e[0][1],d=e[1][1],g=Wu,m=g.length;m--;)if(o=g[m],o&&o.prepare())for(s=o.edges,u=s.length,a=0;u>a;)l=s[a].end(),r=l.x,i=l.y,c=s[++a%u].start(),t=c.x,n=c.y,(os(r-t)>Ts||os(i-n)>Ts)&&(s.splice(a,0,new Zr(Yr(o.site,l,os(r-f)<Ts&&d-i>Ts?{x:f,y:os(t-f)<Ts?n:d}:os(i-d)<Ts&&p-r>Ts?{x:os(n-d)<Ts?t:p,y:d}:os(r-p)<Ts&&i-h>Ts?{x:p,y:os(t-p)<Ts?n:h}:os(i-h)<Ts&&r-f>Ts?{x:os(n-h)<Ts?t:f,y:h}:null),o.site,null)),++u)}function Ir(e,t){return t.angle-e.angle}function Rr(){Gr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ur(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,o=n.site;if(r!==o){var a=i.x,s=i.y,u=r.x-a,c=r.y-s,l=o.x-a,f=o.y-s,p=2*(u*f-c*l);if(!(p>=-Es)){var h=u*u+c*c,d=l*l+f*f,g=(f*h-c*d)/p,m=(u*d-l*h)/p,f=m+s,v=Zu.pop()||new Rr;v.arc=e,v.site=i,v.x=g+a,v.y=f+Math.sqrt(g*g+m*m),v.cy=f,e.circle=v;for(var y=null,x=Yu._;x;)if(v.y<x.y||v.y===x.y&&v.x<=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}Yu.insert(y,v),y||(Xu=v)}}}}function zr(e){var t=e.circle;t&&(t.P||(Xu=t.N),Yu.remove(t),Zu.push(t),Gr(t),e.circle=null)}function Br(e){for(var t,n=Bu,r=Ln(e[0][0],e[0][1],e[1][0],e[1][1]),i=n.length;i--;)t=n[i],(!Wr(t,e)||!r(t)||os(t.a.x-t.b.x)<Ts&&os(t.a.y-t.b.y)<Ts)&&(t.a=t.b=null,n.splice(i,1))}function Wr(e,t){var n=e.b;if(n)return!0;var r,i,o=e.a,a=t[0][0],s=t[1][0],u=t[0][1],c=t[1][1],l=e.l,f=e.r,p=l.x,h=l.y,d=f.x,g=f.y,m=(p+d)/2,v=(h+g)/2;if(g===h){if(a>m||m>=s)return;if(p>d){if(o){if(o.y>=c)return}else o={x:m,y:u};n={x:m,y:c}}else{if(o){if(o.y<u)return}else o={x:m,y:c};n={x:m,y:u}}}else if(r=(p-d)/(g-h),i=v-r*m,-1>r||r>1)if(p>d){if(o){if(o.y>=c)return}else o={x:(u-i)/r,y:u};n={x:(c-i)/r,y:c}}else{if(o){if(o.y<u)return}else o={x:(c-i)/r,y:c};n={x:(u-i)/r,y:u}}else if(g>h){if(o){if(o.x>=s)return}else o={x:a,y:r*a+i};n={x:s,y:r*s+i}}else{if(o){if(o.x<a)return}else o={x:s,y:r*s+i};n={x:a,y:r*a+i}}return e.a=o,e.b=n,!0}function Vr(e,t){this.l=e,this.r=t,this.a=this.b=null}function Xr(e,t,n,r){var i=new Vr(e,t);return Bu.push(i),n&&Qr(i,e,t,n),r&&Qr(i,t,e,r),Wu[e.i].edges.push(new Zr(i,e,t)),Wu[t.i].edges.push(new Zr(i,t,e)),i}function Yr(e,t,n){var r=new Vr(e,null);return r.a=t,r.b=n,Bu.push(r),r}function Qr(e,t,n,r){e.a||e.b?e.l===n?e.b=r:e.a=r:(e.a=r,e.l=t,e.r=n)}function Zr(e,t,n){var r=e.a,i=e.b;this.edge=e,this.site=t,this.angle=n?Math.atan2(n.y-t.y,n.x-t.x):e.l===t?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function Jr(){this._=null}function Gr(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function Kr(e,t){var n=t,r=t.R,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function ei(e,t){var n=t,r=t.L,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function ti(e){for(;e.L;)e=e.L;return e}function ni(e,t){var n,r,i,o=e.sort(ri).pop();for(Bu=[],Wu=new Array(e.length),Vu=new Jr,Yu=new Jr;;)if(i=Xu,o&&(!i||o.y<i.y||o.y===i.y&&o.x<i.x))(o.x!==n||o.y!==r)&&(Wu[o.i]=new Hr(o),Pr(o),n=o.x,r=o.y),o=e.pop();else{if(!i)break;Or(i.arc)}t&&(Br(t),Fr(t));var a={cells:Wu,edges:Bu};return Vu=Yu=Bu=Wu=null,a}function ri(e,t){return t.y-e.y||t.x-e.x}function ii(e,t,n){return(e.x-n.x)*(t.y-e.y)-(e.x-t.x)*(n.y-e.y)}function oi(e){return e.x}function ai(e){return e.y}function si(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function ui(e,t,n,r,i,o){if(!e(t,n,r,i,o)){var a=.5*(n+i),s=.5*(r+o),u=t.nodes;u[0]&&ui(e,u[0],n,r,a,s),u[1]&&ui(e,u[1],a,r,i,s),u[2]&&ui(e,u[2],n,s,a,o),u[3]&&ui(e,u[3],a,s,i,o)}}function ci(e,t){e=Wa.rgb(e),t=Wa.rgb(t);var n=e.r,r=e.g,i=e.b,o=t.r-n,a=t.g-r,s=t.b-i;return function(e){return"#"+mt(Math.round(n+o*e))+mt(Math.round(r+a*e))+mt(Math.round(i+s*e))}}function li(e,t){var n,r={},i={};for(n in e)n in t?r[n]=hi(e[n],t[n]):i[n]=e[n];for(n in t)n in e||(i[n]=t[n]);return function(e){for(n in r)i[n]=r[n](e);return i}}function fi(e,t){return t-=e=+e,function(n){return e+t*n}}function pi(e,t){var n,r,i,o=Gu.lastIndex=Ku.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=Gu.exec(e))&&(r=Ku.exec(t));)(i=r.index)>o&&(i=t.substring(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:fi(n,r)})),o=Ku.lastIndex;return o<t.length&&(i=t.substring(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?(t=u[0].x,function(e){return t(e)+""}):function(){return t}:(t=u.length,function(e){for(var n,r=0;t>r;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})}function hi(e,t){for(var n,r=Wa.interpolators.length;--r>=0&&!(n=Wa.interpolators[r](e,t)););return n}function di(e,t){var n,r=[],i=[],o=e.length,a=t.length,s=Math.min(e.length,t.length);for(n=0;s>n;++n)r.push(hi(e[n],t[n]));for(;o>n;++n)i[n]=e[n];for(;a>n;++n)i[n]=t[n];return function(e){for(n=0;s>n;++n)i[n]=r[n](e);return i}}function gi(e){return function(t){return 0>=t?0:t>=1?1:e(t)}}function mi(e){return function(t){return 1-e(1-t)}}function vi(e){return function(t){return.5*(.5>t?e(2*t):2-e(2-2*t))}}function yi(e){return e*e}function xi(e){return e*e*e}function bi(e){if(0>=e)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(.5>e?n:3*(e-t)+n-.75)}function $i(e){return function(t){return Math.pow(t,e)}}function wi(e){return 1-Math.cos(e*ks)}function Ci(e){return Math.pow(2,10*(e-1))}function Si(e){return 1-Math.sqrt(1-e*e)}function ki(e,t){var n;return arguments.length<2&&(t=.45),arguments.length?n=t/Ss*Math.asin(1/e):(e=1,n=t/4),function(r){return 1+e*Math.pow(2,-10*r)*Math.sin((r-n)*Ss/t)}}function Ti(e){return e||(e=1.70158),function(t){return t*t*((e+1)*t-e)}}function Ei(e){return 1/2.75>e?7.5625*e*e:2/2.75>e?7.5625*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375
}function Mi(e,t){e=Wa.hcl(e),t=Wa.hcl(t);var n=e.h,r=e.c,i=e.l,o=t.h-n,a=t.c-r,s=t.l-i;return isNaN(a)&&(a=0,r=isNaN(r)?t.c:r),isNaN(o)?(o=0,n=isNaN(n)?t.h:n):o>180?o-=360:-180>o&&(o+=360),function(e){return at(n+o*e,r+a*e,i+s*e)+""}}function Ai(e,t){e=Wa.hsl(e),t=Wa.hsl(t);var n=e.h,r=e.s,i=e.l,o=t.h-n,a=t.s-r,s=t.l-i;return isNaN(a)&&(a=0,r=isNaN(r)?t.s:r),isNaN(o)?(o=0,n=isNaN(n)?t.h:n):o>180?o-=360:-180>o&&(o+=360),function(e){return it(n+o*e,r+a*e,i+s*e)+""}}function Ni(e,t){e=Wa.lab(e),t=Wa.lab(t);var n=e.l,r=e.a,i=e.b,o=t.l-n,a=t.a-r,s=t.b-i;return function(e){return ut(n+o*e,r+a*e,i+s*e)+""}}function Di(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function _i(e){var t=[e.a,e.b],n=[e.c,e.d],r=Oi(t),i=ji(t,n),o=Oi(Pi(n,t,-i))||0;t[0]*n[1]<n[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-n[0],n[1]))*As,this.translate=[e.e,e.f],this.scale=[r,o],this.skew=o?Math.atan2(i,o)*As:0}function ji(e,t){return e[0]*t[0]+e[1]*t[1]}function Oi(e){var t=Math.sqrt(ji(e,e));return t&&(e[0]/=t,e[1]/=t),t}function Pi(e,t,n){return e[0]+=n*t[0],e[1]+=n*t[1],e}function qi(e,t){var n,r=[],i=[],o=Wa.transform(e),a=Wa.transform(t),s=o.translate,u=a.translate,c=o.rotate,l=a.rotate,f=o.skew,p=a.skew,h=o.scale,d=a.scale;return s[0]!=u[0]||s[1]!=u[1]?(r.push("translate(",null,",",null,")"),i.push({i:1,x:fi(s[0],u[0])},{i:3,x:fi(s[1],u[1])})):u[0]||u[1]?r.push("translate("+u+")"):r.push(""),c!=l?(c-l>180?l+=360:l-c>180&&(c+=360),i.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:fi(c,l)})):l&&r.push(r.pop()+"rotate("+l+")"),f!=p?i.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:fi(f,p)}):p&&r.push(r.pop()+"skewX("+p+")"),h[0]!=d[0]||h[1]!=d[1]?(n=r.push(r.pop()+"scale(",null,",",null,")"),i.push({i:n-4,x:fi(h[0],d[0])},{i:n-2,x:fi(h[1],d[1])})):(1!=d[0]||1!=d[1])&&r.push(r.pop()+"scale("+d+")"),n=i.length,function(e){for(var t,o=-1;++o<n;)r[(t=i[o]).i]=t.x(e);return r.join("")}}function Li(e,t){return t=t-(e=+e)?1/(t-e):0,function(n){return(n-e)*t}}function Hi(e,t){return t=t-(e=+e)?1/(t-e):0,function(n){return Math.max(0,Math.min(1,(n-e)*t))}}function Fi(e){for(var t=e.source,n=e.target,r=Ri(t,n),i=[t];t!==r;)t=t.parent,i.push(t);for(var o=i.length;n!==r;)i.splice(o,0,n),n=n.parent;return i}function Ii(e){for(var t=[],n=e.parent;null!=n;)t.push(e),e=n,n=n.parent;return t.push(e),t}function Ri(e,t){if(e===t)return e;for(var n=Ii(e),r=Ii(t),i=n.pop(),o=r.pop(),a=null;i===o;)a=i,i=n.pop(),o=r.pop();return a}function Ui(e){e.fixed|=2}function zi(e){e.fixed&=-7}function Bi(e){e.fixed|=4,e.px=e.x,e.py=e.y}function Wi(e){e.fixed&=-5}function Vi(e,t,n){var r=0,i=0;if(e.charge=0,!e.leaf)for(var o,a=e.nodes,s=a.length,u=-1;++u<s;)o=a[u],null!=o&&(Vi(o,t,n),e.charge+=o.charge,r+=o.charge*o.cx,i+=o.charge*o.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var c=t*n[e.point.index];e.charge+=e.pointCharge=c,r+=c*e.point.x,i+=c*e.point.y}e.cx=r/e.charge,e.cy=i/e.charge}function Xi(e,t){return Wa.rebind(e,t,"sort","children","value"),e.nodes=e,e.links=Ki,e}function Yi(e,t){for(var n=[e];null!=(e=n.pop());)if(t(e),(i=e.children)&&(r=i.length))for(var r,i;--r>=0;)n.push(i[r])}function Qi(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(o=e.children)&&(i=o.length))for(var i,o,a=-1;++a<i;)n.push(o[a]);for(;null!=(e=r.pop());)t(e)}function Zi(e){return e.children}function Ji(e){return e.value}function Gi(e,t){return t.value-e.value}function Ki(e){return Wa.merge(e.map(function(e){return(e.children||[]).map(function(t){return{source:e,target:t}})}))}function eo(e){return e.x}function to(e){return e.y}function no(e,t,n){e.y0=t,e.y=n}function ro(e){return Wa.range(e.length)}function io(e){for(var t=-1,n=e[0].length,r=[];++t<n;)r[t]=0;return r}function oo(e){for(var t,n=1,r=0,i=e[0][1],o=e.length;o>n;++n)(t=e[n][1])>i&&(r=n,i=t);return r}function ao(e){return e.reduce(so,0)}function so(e,t){return e+t[1]}function uo(e,t){return co(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function co(e,t){for(var n=-1,r=+e[0],i=(e[1]-r)/t,o=[];++n<=t;)o[n]=i*n+r;return o}function lo(e){return[Wa.min(e),Wa.max(e)]}function fo(e,t){return e.value-t.value}function po(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function ho(e,t){e._pack_next=t,t._pack_prev=e}function go(e,t){var n=t.x-e.x,r=t.y-e.y,i=e.r+t.r;return.999*i*i>n*n+r*r}function mo(e){function t(e){l=Math.min(e.x-e.r,l),f=Math.max(e.x+e.r,f),p=Math.min(e.y-e.r,p),h=Math.max(e.y+e.r,h)}if((n=e.children)&&(c=n.length)){var n,r,i,o,a,s,u,c,l=1/0,f=-1/0,p=1/0,h=-1/0;if(n.forEach(vo),r=n[0],r.x=-r.r,r.y=0,t(r),c>1&&(i=n[1],i.x=i.r,i.y=0,t(i),c>2))for(o=n[2],bo(r,i,o),t(o),po(r,o),r._pack_prev=o,po(o,i),i=r._pack_next,a=3;c>a;a++){bo(r,i,o=n[a]);var d=0,g=1,m=1;for(s=i._pack_next;s!==i;s=s._pack_next,g++)if(go(s,o)){d=1;break}if(1==d)for(u=r._pack_prev;u!==s._pack_prev&&!go(u,o);u=u._pack_prev,m++);d?(m>g||g==m&&i.r<r.r?ho(r,i=s):ho(r=u,i),a--):(po(r,o),i=o,t(o))}var v=(l+f)/2,y=(p+h)/2,x=0;for(a=0;c>a;a++)o=n[a],o.x-=v,o.y-=y,x=Math.max(x,o.r+Math.sqrt(o.x*o.x+o.y*o.y));e.r=x,n.forEach(yo)}}function vo(e){e._pack_next=e._pack_prev=e}function yo(e){delete e._pack_next,delete e._pack_prev}function xo(e,t,n,r){var i=e.children;if(e.x=t+=r*e.x,e.y=n+=r*e.y,e.r*=r,i)for(var o=-1,a=i.length;++o<a;)xo(i[o],t,n,r)}function bo(e,t,n){var r=e.r+n.r,i=t.x-e.x,o=t.y-e.y;if(r&&(i||o)){var a=t.r+n.r,s=i*i+o*o;a*=a,r*=r;var u=.5+(r-a)/(2*s),c=Math.sqrt(Math.max(0,2*a*(r+s)-(r-=s)*r-a*a))/(2*s);n.x=e.x+u*i+c*o,n.y=e.y+u*o-c*i}else n.x=e.x+r,n.y=e.y}function $o(e,t){return e.parent==t.parent?1:2}function wo(e){var t=e.children;return t.length?t[0]:e.t}function Co(e){var t,n=e.children;return(t=n.length)?n[t-1]:e.t}function So(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function ko(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)t=i[o],t.z+=n,t.m+=n,n+=t.s+(r+=t.c)}function To(e,t,n){return e.a.parent===t.parent?e.a:n}function Eo(e){return 1+Wa.max(e,function(e){return e.y})}function Mo(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}function Ao(e){var t=e.children;return t&&t.length?Ao(t[0]):e}function No(e){var t,n=e.children;return n&&(t=n.length)?No(n[t-1]):e}function Do(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function _o(e,t){var n=e.x+t[3],r=e.y+t[0],i=e.dx-t[1]-t[3],o=e.dy-t[0]-t[2];return 0>i&&(n+=i/2,i=0),0>o&&(r+=o/2,o=0),{x:n,y:r,dx:i,dy:o}}function jo(e){var t=e[0],n=e[e.length-1];return n>t?[t,n]:[n,t]}function Oo(e){return e.rangeExtent?e.rangeExtent():jo(e.range())}function Po(e,t,n,r){var i=n(e[0],e[1]),o=r(t[0],t[1]);return function(e){return o(i(e))}}function qo(e,t){var n,r=0,i=e.length-1,o=e[r],a=e[i];return o>a&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}function Lo(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:lc}function Ho(e,t,n,r){var i=[],o=[],a=0,s=Math.min(e.length,t.length)-1;for(e[s]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<=s;)i.push(n(e[a-1],e[a])),o.push(r(t[a-1],t[a]));return function(t){var n=Wa.bisect(e,t,1,s)-1;return o[n](i[n](t))}}function Fo(e,t,n,r){function i(){var i=Math.min(e.length,t.length)>2?Ho:Po,u=r?Hi:Li;return a=i(e,t,u,n),s=i(t,e,u,hi),o}function o(e){return a(e)}var a,s;return o.invert=function(e){return s(e)},o.domain=function(t){return arguments.length?(e=t.map(Number),i()):e},o.range=function(e){return arguments.length?(t=e,i()):t},o.rangeRound=function(e){return o.range(e).interpolate(Di)},o.clamp=function(e){return arguments.length?(r=e,i()):r},o.interpolate=function(e){return arguments.length?(n=e,i()):n},o.ticks=function(t){return zo(e,t)},o.tickFormat=function(t,n){return Bo(e,t,n)},o.nice=function(t){return Ro(e,t),i()},o.copy=function(){return Fo(e,t,n,r)},i()}function Io(e,t){return Wa.rebind(e,t,"range","rangeRound","interpolate","clamp")}function Ro(e,t){return qo(e,Lo(Uo(e,t)[2]))}function Uo(e,t){null==t&&(t=10);var n=jo(e),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),o=t/r*i;return.15>=o?i*=10:.35>=o?i*=5:.75>=o&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function zo(e,t){return Wa.range.apply(Wa,Uo(e,t))}function Bo(e,t,n){var r=Uo(e,t);if(n){var i=Gs.exec(n);if(i.shift(),"s"===i[8]){var o=Wa.formatPrefix(Math.max(os(r[0]),os(r[1])));return i[7]||(i[7]="."+Wo(o.scale(r[2]))),i[8]="f",n=Wa.format(i.join("")),function(e){return n(o.scale(e))+o.symbol}}i[7]||(i[7]="."+Vo(i[8],r)),n=i.join("")}else n=",."+Wo(r[2])+"f";return Wa.format(n)}function Wo(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}function Vo(e,t){var n=Wo(t[2]);return e in fc?Math.abs(n-Wo(Math.max(os(t[0]),os(t[1]))))+ +("e"!==e):n-2*("%"===e)}function Xo(e,t,n,r){function i(e){return(n?Math.log(0>e?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function o(e){return n?Math.pow(t,e):-Math.pow(t,-e)}function a(t){return e(i(t))}return a.invert=function(t){return o(e.invert(t))},a.domain=function(t){return arguments.length?(n=t[0]>=0,e.domain((r=t.map(Number)).map(i)),a):r},a.base=function(n){return arguments.length?(t=+n,e.domain(r.map(i)),a):t},a.nice=function(){var t=qo(r.map(i),n?Math:hc);return e.domain(t),r=t.map(o),a},a.ticks=function(){var e=jo(r),a=[],s=e[0],u=e[1],c=Math.floor(i(s)),l=Math.ceil(i(u)),f=t%1?2:t;if(isFinite(l-c)){if(n){for(;l>c;c++)for(var p=1;f>p;p++)a.push(o(c)*p);a.push(o(c))}else for(a.push(o(c));c++<l;)for(var p=f-1;p>0;p--)a.push(o(c)*p);for(c=0;a[c]<s;c++);for(l=a.length;a[l-1]>u;l--);a=a.slice(c,l)}return a},a.tickFormat=function(e,t){if(!arguments.length)return pc;arguments.length<2?t=pc:"function"!=typeof t&&(t=Wa.format(t));var r,s=Math.max(.1,e/a.ticks().length),u=n?(r=1e-12,Math.ceil):(r=-1e-12,Math.floor);return function(e){return e/o(u(i(e)+r))<=s?t(e):""}},a.copy=function(){return Xo(e.copy(),t,n,r)},Io(a,e)}function Yo(e,t,n){function r(t){return e(i(t))}var i=Qo(t),o=Qo(1/t);return r.invert=function(t){return o(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(i)),r):n},r.ticks=function(e){return zo(n,e)},r.tickFormat=function(e,t){return Bo(n,e,t)},r.nice=function(e){return r.domain(Ro(n,e))},r.exponent=function(a){return arguments.length?(i=Qo(t=a),o=Qo(1/t),e.domain(n.map(i)),r):t},r.copy=function(){return Yo(e.copy(),t,n)},Io(r,e)}function Qo(e){return function(t){return 0>t?-Math.pow(-t,e):Math.pow(t,e)}}function Zo(e,t){function n(n){return o[((i.get(n)||("range"===t.t?i.set(n,e.push(n)):0/0))-1)%o.length]}function r(t,n){return Wa.range(e.length).map(function(e){return t+n*e})}var i,o,s;return n.domain=function(r){if(!arguments.length)return e;e=[],i=new a;for(var o,s=-1,u=r.length;++s<u;)i.has(o=r[s])||i.set(o,e.push(o));return n[t.t].apply(n,t.a)},n.range=function(e){return arguments.length?(o=e,s=0,t={t:"range",a:arguments},n):o},n.rangePoints=function(i,a){arguments.length<2&&(a=0);var u=i[0],c=i[1],l=(c-u)/(Math.max(1,e.length-1)+a);return o=r(e.length<2?(u+c)/2:u+l*a/2,l),s=0,t={t:"rangePoints",a:arguments},n},n.rangeBands=function(i,a,u){arguments.length<2&&(a=0),arguments.length<3&&(u=a);var c=i[1]<i[0],l=i[c-0],f=i[1-c],p=(f-l)/(e.length-a+2*u);return o=r(l+p*u,p),c&&o.reverse(),s=p*(1-a),t={t:"rangeBands",a:arguments},n},n.rangeRoundBands=function(i,a,u){arguments.length<2&&(a=0),arguments.length<3&&(u=a);var c=i[1]<i[0],l=i[c-0],f=i[1-c],p=Math.floor((f-l)/(e.length-a+2*u)),h=f-l-(e.length-a)*p;return o=r(l+Math.round(h/2),p),c&&o.reverse(),s=Math.round(p*(1-a)),t={t:"rangeRoundBands",a:arguments},n},n.rangeBand=function(){return s},n.rangeExtent=function(){return jo(t.a[0])},n.copy=function(){return Zo(e,t)},n.domain(e)}function Jo(n,r){function i(){var e=0,t=r.length;for(a=[];++e<t;)a[e-1]=Wa.quantile(n,e/t);return o}function o(e){return isNaN(e=+e)?void 0:r[Wa.bisect(a,e)]}var a;return o.domain=function(r){return arguments.length?(n=r.filter(t).sort(e),i()):n},o.range=function(e){return arguments.length?(r=e,i()):r},o.quantiles=function(){return a},o.invertExtent=function(e){return e=r.indexOf(e),0>e?[0/0,0/0]:[e>0?a[e-1]:n[0],e<a.length?a[e]:n[n.length-1]]},o.copy=function(){return Jo(n,r)},i()}function Go(e,t,n){function r(t){return n[Math.max(0,Math.min(a,Math.floor(o*(t-e))))]}function i(){return o=n.length/(t-e),a=n.length-1,r}var o,a;return r.domain=function(n){return arguments.length?(e=+n[0],t=+n[n.length-1],i()):[e,t]},r.range=function(e){return arguments.length?(n=e,i()):n},r.invertExtent=function(t){return t=n.indexOf(t),t=0>t?0/0:t/o+e,[t,t+1/o]},r.copy=function(){return Go(e,t,n)},i()}function Ko(e,t){function n(n){return n>=n?t[Wa.bisect(e,n)]:void 0}return n.domain=function(t){return arguments.length?(e=t,n):e},n.range=function(e){return arguments.length?(t=e,n):t},n.invertExtent=function(n){return n=t.indexOf(n),[e[n-1],e[n]]},n.copy=function(){return Ko(e,t)},n}function ea(e){function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=n.map(t),t):e},t.ticks=function(t){return zo(e,t)},t.tickFormat=function(t,n){return Bo(e,t,n)},t.copy=function(){return ea(e)},t}function ta(e){return e.innerRadius}function na(e){return e.outerRadius}function ra(e){return e.startAngle}function ia(e){return e.endAngle}function oa(e){function t(t){function a(){c.push("M",o(e(l),s))}for(var u,c=[],l=[],f=-1,p=t.length,h=wt(n),d=wt(r);++f<p;)i.call(this,u=t[f],f)?l.push([+h.call(this,u,f),+d.call(this,u,f)]):l.length&&(a(),l=[]);return l.length&&a(),c.length?c.join(""):null}var n=Sr,r=kr,i=Sn,o=aa,a=o.key,s=.7;return t.x=function(e){return arguments.length?(n=e,t):n},t.y=function(e){return arguments.length?(r=e,t):r},t.defined=function(e){return arguments.length?(i=e,t):i},t.interpolate=function(e){return arguments.length?(a="function"==typeof e?o=e:(o=bc.get(e)||aa).key,t):a},t.tension=function(e){return arguments.length?(s=e,t):s},t}function aa(e){return e.join("L")}function sa(e){return aa(e)+"Z"}function ua(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t<n;)i.push("H",(r[0]+(r=e[t])[0])/2,"V",r[1]);return n>1&&i.push("H",r[0]),i.join("")}function ca(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t<n;)i.push("V",(r=e[t])[1],"H",r[0]);return i.join("")}function la(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t<n;)i.push("H",(r=e[t])[0],"V",r[1]);return i.join("")}function fa(e,t){return e.length<4?aa(e):e[1]+da(e.slice(1,e.length-1),ga(e,t))}function pa(e,t){return e.length<3?aa(e):e[0]+da((e.push(e[0]),e),ga([e[e.length-2]].concat(e,[e[1]]),t))}function ha(e,t){return e.length<3?aa(e):e[0]+da(e,ga(e,t))}function da(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return aa(e);var n=e.length!=t.length,r="",i=e[0],o=e[1],a=t[0],s=a,u=1;if(n&&(r+="Q"+(o[0]-2*a[0]/3)+","+(o[1]-2*a[1]/3)+","+o[0]+","+o[1],i=e[1],u=2),t.length>1){s=t[1],o=e[u],u++,r+="C"+(i[0]+a[0])+","+(i[1]+a[1])+","+(o[0]-s[0])+","+(o[1]-s[1])+","+o[0]+","+o[1];for(var c=2;c<t.length;c++,u++)o=e[u],s=t[c],r+="S"+(o[0]-s[0])+","+(o[1]-s[1])+","+o[0]+","+o[1]}if(n){var l=e[u];r+="Q"+(o[0]+2*s[0]/3)+","+(o[1]+2*s[1]/3)+","+l[0]+","+l[1]}return r}function ga(e,t){for(var n,r=[],i=(1-t)/2,o=e[0],a=e[1],s=1,u=e.length;++s<u;)n=o,o=a,a=e[s],r.push([i*(a[0]-n[0]),i*(a[1]-n[1])]);return r}function ma(e){if(e.length<3)return aa(e);var t=1,n=e.length,r=e[0],i=r[0],o=r[1],a=[i,i,i,(r=e[1])[0]],s=[o,o,o,r[1]],u=[i,",",o,"L",ba(Cc,a),",",ba(Cc,s)];for(e.push(e[n-1]);++t<=n;)r=e[t],a.shift(),a.push(r[0]),s.shift(),s.push(r[1]),$a(u,a,s);return e.pop(),u.push("L",r),u.join("")}function va(e){if(e.length<4)return aa(e);for(var t,n=[],r=-1,i=e.length,o=[0],a=[0];++r<3;)t=e[r],o.push(t[0]),a.push(t[1]);for(n.push(ba(Cc,o)+","+ba(Cc,a)),--r;++r<i;)t=e[r],o.shift(),o.push(t[0]),a.shift(),a.push(t[1]),$a(n,o,a);return n.join("")}function ya(e){for(var t,n,r=-1,i=e.length,o=i+4,a=[],s=[];++r<4;)n=e[r%i],a.push(n[0]),s.push(n[1]);for(t=[ba(Cc,a),",",ba(Cc,s)],--r;++r<o;)n=e[r%i],a.shift(),a.push(n[0]),s.shift(),s.push(n[1]),$a(t,a,s);return t.join("")}function xa(e,t){var n=e.length-1;if(n)for(var r,i,o=e[0][0],a=e[0][1],s=e[n][0]-o,u=e[n][1]-a,c=-1;++c<=n;)r=e[c],i=c/n,r[0]=t*r[0]+(1-t)*(o+i*s),r[1]=t*r[1]+(1-t)*(a+i*u);return ma(e)}function ba(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function $a(e,t,n){e.push("C",ba($c,t),",",ba($c,n),",",ba(wc,t),",",ba(wc,n),",",ba(Cc,t),",",ba(Cc,n))}function wa(e,t){return(t[1]-e[1])/(t[0]-e[0])}function Ca(e){for(var t=0,n=e.length-1,r=[],i=e[0],o=e[1],a=r[0]=wa(i,o);++t<n;)r[t]=(a+(a=wa(i=o,o=e[t+1])))/2;return r[t]=a,r}function Sa(e){for(var t,n,r,i,o=[],a=Ca(e),s=-1,u=e.length-1;++s<u;)t=wa(e[s],e[s+1]),os(t)<Ts?a[s]=a[s+1]=0:(n=a[s]/t,r=a[s+1]/t,i=n*n+r*r,i>9&&(i=3*t/Math.sqrt(i),a[s]=i*n,a[s+1]=i*r));for(s=-1;++s<=u;)i=(e[Math.min(u,s+1)][0]-e[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),o.push([i||0,a[s]*i||0]);return o}function ka(e){return e.length<3?aa(e):e[0]+da(e,Sa(e))}function Ta(e){for(var t,n,r,i=-1,o=e.length;++i<o;)t=e[i],n=t[0],r=t[1]+yc,t[0]=n*Math.cos(r),t[1]=n*Math.sin(r);return e}function Ea(e){function t(t){function u(){g.push("M",s(e(v),f),l,c(e(m.reverse()),f),"Z")}for(var p,h,d,g=[],m=[],v=[],y=-1,x=t.length,b=wt(n),$=wt(i),w=n===r?function(){return h}:wt(r),C=i===o?function(){return d}:wt(o);++y<x;)a.call(this,p=t[y],y)?(m.push([h=+b.call(this,p,y),d=+$.call(this,p,y)]),v.push([+w.call(this,p,y),+C.call(this,p,y)])):m.length&&(u(),m=[],v=[]);return m.length&&u(),g.length?g.join(""):null}var n=Sr,r=Sr,i=0,o=kr,a=Sn,s=aa,u=s.key,c=s,l="L",f=.7;return t.x=function(e){return arguments.length?(n=r=e,t):r},t.x0=function(e){return arguments.length?(n=e,t):n},t.x1=function(e){return arguments.length?(r=e,t):r},t.y=function(e){return arguments.length?(i=o=e,t):o},t.y0=function(e){return arguments.length?(i=e,t):i},t.y1=function(e){return arguments.length?(o=e,t):o},t.defined=function(e){return arguments.length?(a=e,t):a},t.interpolate=function(e){return arguments.length?(u="function"==typeof e?s=e:(s=bc.get(e)||aa).key,c=s.reverse||s,l=s.closed?"M":"L",t):u},t.tension=function(e){return arguments.length?(f=e,t):f},t}function Ma(e){return e.radius}function Aa(e){return[e.x,e.y]}function Na(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]+yc;return[n*Math.cos(r),n*Math.sin(r)]}}function Da(){return 64}function _a(){return"circle"}function ja(e){var t=Math.sqrt(e/Cs);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Oa(e,t){return ls(e,Ac),e.id=t,e}function Pa(e,t,n,r){var i=e.id;return q(e,"function"==typeof n?function(e,o,a){e.__transition__[i].tween.set(t,r(n.call(e,e.__data__,o,a)))}:(n=r(n),function(e){e.__transition__[i].tween.set(t,n)}))}function qa(e){return null==e&&(e=""),function(){this.textContent=e}}function La(e,t,n,r){var i=e.__transition__||(e.__transition__={active:0,count:0}),o=i[n];if(!o){var s=r.time;o=i[n]={tween:new a,time:s,ease:r.ease,delay:r.delay,duration:r.duration},++i.count,Wa.timer(function(r){function a(r){return i.active>n?c():(i.active=n,o.event&&o.event.start.call(e,l,t),o.tween.forEach(function(n,r){(r=r.call(e,l,t))&&g.push(r)}),Wa.timer(function(){return d.c=u(r||1)?Sn:u,1},0,s),void 0)}function u(r){if(i.active!==n)return c();for(var a=r/h,s=f(a),u=g.length;u>0;)g[--u].call(e,s);return a>=1?(o.event&&o.event.end.call(e,l,t),c()):void 0}function c(){return--i.count?delete i[n]:delete e.__transition__,1}var l=e.__data__,f=o.ease,p=o.delay,h=o.duration,d=Qs,g=[];return d.t=p+s,r>=p?a(r-p):(d.c=a,void 0)},0,s)}}function Ha(e,t){e.attr("transform",function(e){return"translate("+t(e)+",0)"})}function Fa(e,t){e.attr("transform",function(e){return"translate(0,"+t(e)+")"})}function Ia(e){return e.toISOString()}function Ra(e,t,n){function r(t){return e(t)}function i(e,n){var r=e[1]-e[0],i=r/n,o=Wa.bisect(Hc,i);return o==Hc.length?[t.year,Uo(e.map(function(e){return e/31536e6}),n)[2]]:o?t[i/Hc[o-1]<Hc[o]/i?o-1:o]:[Rc,Uo(e,n)[2]]}return r.invert=function(t){return Ua(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain(t),r):e.domain().map(Ua)},r.nice=function(e,t){function n(n){return!isNaN(n)&&!e.range(n,Ua(+n+1),t).length}var o=r.domain(),a=jo(o),s=null==e?i(a,10):"number"==typeof e&&i(a,e);return s&&(e=s[0],t=s[1]),r.domain(qo(o,t>1?{floor:function(t){for(;n(t=e.floor(t));)t=Ua(t-1);return t},ceil:function(t){for(;n(t=e.ceil(t));)t=Ua(+t+1);return t}}:e))},r.ticks=function(e,t){var n=jo(r.domain()),o=null==e?i(n,10):"number"==typeof e?i(n,e):!e.range&&[{range:e},t];return o&&(e=o[0],t=o[1]),e.range(n[0],Ua(+n[1]+1),1>t?1:t)},r.tickFormat=function(){return n},r.copy=function(){return Ra(e.copy(),t,n)},Io(r,e)}function Ua(e){return new Date(e)}function za(e){return JSON.parse(e.responseText)}function Ba(e){var t=Ya.createRange();return t.selectNode(Ya.body),t.createContextualFragment(e.responseText)}var Wa={version:"3.4.11"};Date.now||(Date.now=function(){return+new Date});var Va=[].slice,Xa=function(e){return Va.call(e)},Ya=document,Qa=Ya.documentElement,Za=window;try{Xa(Qa.childNodes)[0].nodeType}catch(Ja){Xa=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}try{Ya.createElement("div").style.setProperty("opacity",0,"")}catch(Ga){var Ka=Za.Element.prototype,es=Ka.setAttribute,ts=Ka.setAttributeNS,ns=Za.CSSStyleDeclaration.prototype,rs=ns.setProperty;Ka.setAttribute=function(e,t){es.call(this,e,t+"")},Ka.setAttributeNS=function(e,t,n){ts.call(this,e,t,n+"")},ns.setProperty=function(e,t,n){rs.call(this,e,t+"",n)}}Wa.ascending=e,Wa.descending=function(e,t){return e>t?-1:t>e?1:t>=e?0:0/0},Wa.min=function(e,t){var n,r,i=-1,o=e.length;if(1===arguments.length){for(;++i<o&&!(null!=(n=e[i])&&n>=n);)n=void 0;for(;++i<o;)null!=(r=e[i])&&n>r&&(n=r)}else{for(;++i<o&&!(null!=(n=t.call(e,e[i],i))&&n>=n);)n=void 0;for(;++i<o;)null!=(r=t.call(e,e[i],i))&&n>r&&(n=r)}return n},Wa.max=function(e,t){var n,r,i=-1,o=e.length;if(1===arguments.length){for(;++i<o&&!(null!=(n=e[i])&&n>=n);)n=void 0;for(;++i<o;)null!=(r=e[i])&&r>n&&(n=r)}else{for(;++i<o&&!(null!=(n=t.call(e,e[i],i))&&n>=n);)n=void 0;for(;++i<o;)null!=(r=t.call(e,e[i],i))&&r>n&&(n=r)}return n},Wa.extent=function(e,t){var n,r,i,o=-1,a=e.length;if(1===arguments.length){for(;++o<a&&!(null!=(n=i=e[o])&&n>=n);)n=i=void 0;for(;++o<a;)null!=(r=e[o])&&(n>r&&(n=r),r>i&&(i=r))}else{for(;++o<a&&!(null!=(n=i=t.call(e,e[o],o))&&n>=n);)n=void 0;for(;++o<a;)null!=(r=t.call(e,e[o],o))&&(n>r&&(n=r),r>i&&(i=r))}return[n,i]},Wa.sum=function(e,t){var n,r=0,i=e.length,o=-1;if(1===arguments.length)for(;++o<i;)isNaN(n=+e[o])||(r+=n);else for(;++o<i;)isNaN(n=+t.call(e,e[o],o))||(r+=n);return r},Wa.mean=function(e,n){var r,i=0,o=e.length,a=-1,s=o;if(1===arguments.length)for(;++a<o;)t(r=e[a])?i+=r:--s;else for(;++a<o;)t(r=n.call(e,e[a],a))?i+=r:--s;return s?i/s:void 0},Wa.quantile=function(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],o=n-r;return o?i+o*(e[r]-i):i},Wa.median=function(n,r){return arguments.length>1&&(n=n.map(r)),n=n.filter(t),n.length?Wa.quantile(n.sort(e),.5):void 0};var is=n(e);Wa.bisectLeft=is.left,Wa.bisect=Wa.bisectRight=is.right,Wa.bisector=function(t){return n(1===t.length?function(n,r){return e(t(n),r)}:t)},Wa.shuffle=function(e){for(var t,n,r=e.length;r;)n=0|Math.random()*r--,t=e[r],e[r]=e[n],e[n]=t;return e},Wa.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},Wa.pairs=function(e){for(var t,n=0,r=e.length-1,i=e[0],o=new Array(0>r?0:r);r>n;)o[n]=[t=i,i=e[++n]];return o},Wa.zip=function(){if(!(i=arguments.length))return[];for(var e=-1,t=Wa.min(arguments,r),n=new Array(t);++e<t;)for(var i,o=-1,a=n[e]=new Array(i);++o<i;)a[o]=arguments[o][e];return n},Wa.transpose=function(e){return Wa.zip.apply(Wa,e)},Wa.keys=function(e){var t=[];for(var n in e)t.push(n);return t},Wa.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},Wa.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},Wa.merge=function(e){for(var t,n,r,i=e.length,o=-1,a=0;++o<i;)a+=e[o].length;for(n=new Array(a);--i>=0;)for(r=e[i],t=r.length;--t>=0;)n[--a]=r[t];return n};var os=Math.abs;Wa.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),1/0===(t-e)/n)throw new Error("infinite range");var r,o=[],a=i(os(n)),s=-1;if(e*=a,t*=a,n*=a,0>n)for(;(r=e+n*++s)>t;)o.push(r/a);else for(;(r=e+n*++s)<t;)o.push(r/a);return o},Wa.map=function(e){var t=new a;if(e instanceof a)e.forEach(function(e,n){t.set(e,n)});else for(var n in e)t.set(n,e[n]);return t},o(a,{has:s,get:function(e){return this[as+e]},set:function(e,t){return this[as+e]=t},remove:u,keys:c,values:function(){var e=[];return this.forEach(function(t,n){e.push(n)}),e},entries:function(){var e=[];return this.forEach(function(t,n){e.push({key:t,value:n})}),e},size:l,empty:f,forEach:function(e){for(var t in this)t.charCodeAt(0)===ss&&e.call(this,t.substring(1),this[t])}});var as="\0",ss=as.charCodeAt(0);Wa.nest=function(){function e(t,s,u){if(u>=o.length)return r?r.call(i,s):n?s.sort(n):s;for(var c,l,f,p,h=-1,d=s.length,g=o[u++],m=new a;++h<d;)(p=m.get(c=g(l=s[h])))?p.push(l):m.set(c,[l]);return t?(l=t(),f=function(n,r){l.set(n,e(t,r,u))}):(l={},f=function(n,r){l[n]=e(t,r,u)}),m.forEach(f),l}function t(e,n){if(n>=o.length)return e;var r=[],i=s[n++];return e.forEach(function(e,i){r.push({key:e,values:t(i,n)})}),i?r.sort(function(e,t){return i(e.key,t.key)}):r}var n,r,i={},o=[],s=[];return i.map=function(t,n){return e(n,t,0)},i.entries=function(n){return t(e(Wa.map,n,0),0)},i.key=function(e){return o.push(e),i},i.sortKeys=function(e){return s[o.length-1]=e,i},i.sortValues=function(e){return n=e,i},i.rollup=function(e){return r=e,i},i},Wa.set=function(e){var t=new p;if(e)for(var n=0,r=e.length;r>n;++n)t.add(e[n]);return t},o(p,{has:s,add:function(e){return this[as+e]=!0,e},remove:function(e){return e=as+e,e in this&&delete this[e]},values:c,size:l,empty:f,forEach:function(e){for(var t in this)t.charCodeAt(0)===ss&&e.call(this,t.substring(1))}}),Wa.behavior={},Wa.rebind=function(e,t){for(var n,r=1,i=arguments.length;++r<i;)e[n=arguments[r]]=h(e,t,t[n]);return e};var us=["webkit","ms","moz","Moz","o","O"];Wa.dispatch=function(){for(var e=new m,t=-1,n=arguments.length;++t<n;)e[arguments[t]]=v(e);return e},m.prototype.on=function(e,t){var n=e.indexOf("."),r="";if(n>=0&&(r=e.substring(n+1),e=e.substring(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},Wa.event=null,Wa.requote=function(e){return e.replace(cs,"\\$&")};var cs=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,ls={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]},fs=function(e,t){return t.querySelector(e)},ps=function(e,t){return t.querySelectorAll(e)},hs=Qa.matches||Qa[d(Qa,"matchesSelector")],ds=function(e,t){return hs.call(e,t)};"function"==typeof Sizzle&&(fs=function(e,t){return Sizzle(e,t)[0]||null},ps=Sizzle,ds=Sizzle.matchesSelector),Wa.selection=function(){return ys};var gs=Wa.selection.prototype=[];gs.select=function(e){var t,n,r,i,o=[];e=w(e);for(var a=-1,s=this.length;++a<s;){o.push(t=[]),t.parentNode=(r=this[a]).parentNode;for(var u=-1,c=r.length;++u<c;)(i=r[u])?(t.push(n=e.call(i,i.__data__,u,a)),n&&"__data__"in i&&(n.__data__=i.__data__)):t.push(null)}return $(o)},gs.selectAll=function(e){var t,n,r=[];e=C(e);for(var i=-1,o=this.length;++i<o;)for(var a=this[i],s=-1,u=a.length;++s<u;)(n=a[s])&&(r.push(t=Xa(e.call(n,n.__data__,s,i))),t.parentNode=n);return $(r)};var ms={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};Wa.ns={prefix:ms,qualify:function(e){var t=e.indexOf(":"),n=e;return t>=0&&(n=e.substring(0,t),e=e.substring(t+1)),ms.hasOwnProperty(n)?{space:ms[n],local:e}:e}},gs.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return e=Wa.ns.qualify(e),e.local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(S(t,e[t]));return this}return this.each(S(e,t))},gs.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=E(e)).length,i=-1;if(t=n.classList){for(;++i<r;)if(!t.contains(e[i]))return!1}else for(t=n.getAttribute("class");++i<r;)if(!T(e[i]).test(t))return!1;return!0}for(t in e)this.each(M(t,e[t]));return this}return this.each(M(e,t))},gs.style=function(e,t,n){var r=arguments.length;if(3>r){if("string"!=typeof e){2>r&&(t="");for(n in e)this.each(N(n,e[n],t));return this}if(2>r)return Za.getComputedStyle(this.node(),null).getPropertyValue(e);n=""}return this.each(N(e,t,n))},gs.property=function(e,t){if(arguments.length<2){if("string"==typeof e)return this.node()[e];for(t in e)this.each(D(t,e[t]));return this}return this.each(D(e,t))},gs.text=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},gs.html=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},gs.append=function(e){return e=_(e),this.select(function(){return this.appendChild(e.apply(this,arguments))})},gs.insert=function(e,t){return e=_(e),t=w(t),this.select(function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)})},gs.remove=function(){return this.each(function(){var e=this.parentNode;e&&e.removeChild(this)})},gs.data=function(e,t){function n(e,n){var r,i,o,s=e.length,f=n.length,p=Math.min(s,f),h=new Array(f),d=new Array(f),g=new Array(s);if(t){var m,v=new a,y=new a,x=[];for(r=-1;++r<s;)m=t.call(i=e[r],i.__data__,r),v.has(m)?g[r]=i:v.set(m,i),x.push(m);for(r=-1;++r<f;)m=t.call(n,o=n[r],r),(i=v.get(m))?(h[r]=i,i.__data__=o):y.has(m)||(d[r]=j(o)),y.set(m,o),v.remove(m);for(r=-1;++r<s;)v.has(x[r])&&(g[r]=e[r])}else{for(r=-1;++r<p;)i=e[r],o=n[r],i?(i.__data__=o,h[r]=i):d[r]=j(o);for(;f>r;++r)d[r]=j(n[r]);for(;s>r;++r)g[r]=e[r]}d.update=h,d.parentNode=h.parentNode=g.parentNode=e.parentNode,u.push(d),c.push(h),l.push(g)}var r,i,o=-1,s=this.length;if(!arguments.length){for(e=new Array(s=(r=this[0]).length);++o<s;)(i=r[o])&&(e[o]=i.__data__);return e}var u=L([]),c=$([]),l=$([]);if("function"==typeof e)for(;++o<s;)n(r=this[o],e.call(r,r.parentNode.__data__,o));else for(;++o<s;)n(r=this[o],e);return c.enter=function(){return u},c.exit=function(){return l},c},gs.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},gs.filter=function(e){var t,n,r,i=[];"function"!=typeof e&&(e=O(e));for(var o=0,a=this.length;a>o;o++){i.push(t=[]),t.parentNode=(n=this[o]).parentNode;for(var s=0,u=n.length;u>s;s++)(r=n[s])&&e.call(r,r.__data__,s,o)&&t.push(r)}return $(i)},gs.order=function(){for(var e=-1,t=this.length;++e<t;)for(var n,r=this[e],i=r.length-1,o=r[i];--i>=0;)(n=r[i])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},gs.sort=function(e){e=P.apply(this,arguments);for(var t=-1,n=this.length;++t<n;)this[t].sort(e);return this.order()},gs.each=function(e){return q(this,function(t,n,r){e.call(t,t.__data__,n,r)})},gs.call=function(e){var t=Xa(arguments);return e.apply(t[0]=this,t),this},gs.empty=function(){return!this.node()},gs.node=function(){for(var e=0,t=this.length;t>e;e++)for(var n=this[e],r=0,i=n.length;i>r;r++){var o=n[r];if(o)return o}return null},gs.size=function(){var e=0;return this.each(function(){++e}),e};var vs=[];Wa.selection.enter=L,Wa.selection.enter.prototype=vs,vs.append=gs.append,vs.empty=gs.empty,vs.node=gs.node,vs.call=gs.call,vs.size=gs.size,vs.select=function(e){for(var t,n,r,i,o,a=[],s=-1,u=this.length;++s<u;){r=(i=this[s]).update,a.push(t=[]),t.parentNode=i.parentNode;for(var c=-1,l=i.length;++c<l;)(o=i[c])?(t.push(r[c]=n=e.call(i.parentNode,o.__data__,c,s)),n.__data__=o.__data__):t.push(null)}return $(a)},vs.insert=function(e,t){return arguments.length<2&&(t=H(this)),gs.insert.call(this,e,t)},gs.transition=function(){for(var e,t,n=kc||++Nc,r=[],i=Tc||{time:Date.now(),ease:bi,delay:0,duration:250},o=-1,a=this.length;++o<a;){r.push(e=[]);for(var s=this[o],u=-1,c=s.length;++u<c;)(t=s[u])&&La(t,u,n,i),e.push(t)}return Oa(r,n)},gs.interrupt=function(){return this.each(F)},Wa.select=function(e){var t=["string"==typeof e?fs(e,Ya):e];return t.parentNode=Qa,$([t])},Wa.selectAll=function(e){var t=Xa("string"==typeof e?ps(e,Ya):e);return t.parentNode=Qa,$([t])};var ys=Wa.select(Qa);gs.on=function(e,t,n){var r=arguments.length;if(3>r){if("string"!=typeof e){2>r&&(t=!1);for(n in e)this.each(I(n,e[n],t));return this}if(2>r)return(r=this.node()["__on"+e])&&r._;n=!1}return this.each(I(e,t,n))};var xs=Wa.map({mouseenter:"mouseover",mouseleave:"mouseout"});
xs.forEach(function(e){"on"+e in Ya&&xs.remove(e)});var bs="onselectstart"in Ya?null:d(Qa.style,"userSelect"),$s=0;Wa.mouse=function(e){return B(e,x())};var ws=/WebKit/.test(Za.navigator.userAgent)?-1:0;Wa.touches=function(e,t){return arguments.length<2&&(t=x().touches),t?Xa(t).map(function(t){var n=B(e,t);return n.identifier=t.identifier,n}):[]},Wa.behavior.drag=function(){function e(){this.on("mousedown.drag",i).on("touchstart.drag",o)}function t(e,t,i,o,a){return function(){function s(){var e,n,r=t(p,g);r&&(e=r[0]-x[0],n=r[1]-x[1],d|=e|n,x=r,h({type:"drag",x:r[0]+c[0],y:r[1]+c[1],dx:e,dy:n}))}function u(){t(p,g)&&(v.on(o+m,null).on(a+m,null),y(d&&Wa.event.target===f),h({type:"dragend"}))}var c,l=this,f=Wa.event.target,p=l.parentNode,h=n.of(l,arguments),d=0,g=e(),m=".drag"+(null==g?"":"-"+g),v=Wa.select(i()).on(o+m,s).on(a+m,u),y=z(),x=t(p,g);r?(c=r.apply(l,arguments),c=[c.x-x[0],c.y-x[1]]):c=[0,0],h({type:"dragstart"})}}var n=b(e,"drag","dragstart","dragend"),r=null,i=t(g,Wa.mouse,X,"mousemove","mouseup"),o=t(W,Wa.touch,V,"touchmove","touchend");return e.origin=function(t){return arguments.length?(r=t,e):r},Wa.rebind(e,n,"on")};var Cs=Math.PI,Ss=2*Cs,ks=Cs/2,Ts=1e-6,Es=Ts*Ts,Ms=Cs/180,As=180/Cs,Ns=Math.SQRT2,Ds=2,_s=4;Wa.interpolateZoom=function(e,t){function n(e){var t=e*y;if(v){var n=K(g),a=o/(Ds*p)*(n*et(Ns*t+g)-G(g));return[r+a*c,i+a*l,o*n/K(Ns*t+g)]}return[r+e*c,i+e*l,o*Math.exp(Ns*t)]}var r=e[0],i=e[1],o=e[2],a=t[0],s=t[1],u=t[2],c=a-r,l=s-i,f=c*c+l*l,p=Math.sqrt(f),h=(u*u-o*o+_s*f)/(2*o*Ds*p),d=(u*u-o*o-_s*f)/(2*u*Ds*p),g=Math.log(Math.sqrt(h*h+1)-h),m=Math.log(Math.sqrt(d*d+1)-d),v=m-g,y=(v||Math.log(u/o))/Ns;return n.duration=1e3*y,n},Wa.behavior.zoom=function(){function e(e){e.on(E,c).on(Ps+".zoom",f).on("dblclick.zoom",p).on(N,l)}function t(e){return[(e[0]-S.x)/S.k,(e[1]-S.y)/S.k]}function n(e){return[e[0]*S.k+S.x,e[1]*S.k+S.y]}function r(e){S.k=Math.max(T[0],Math.min(T[1],e))}function i(e,t){t=n(t),S.x+=e[0]-t[0],S.y+=e[1]-t[1]}function o(){$&&$.domain(x.range().map(function(e){return(e-S.x)/S.k}).map(x.invert)),C&&C.domain(w.range().map(function(e){return(e-S.y)/S.k}).map(w.invert))}function a(e){e({type:"zoomstart"})}function s(e){o(),e({type:"zoom",scale:S.k,translate:[S.x,S.y]})}function u(e){e({type:"zoomend"})}function c(){function e(){l=1,i(Wa.mouse(r),p),s(c)}function n(){f.on(M,null).on(A,null),h(l&&Wa.event.target===o),u(c)}var r=this,o=Wa.event.target,c=D.of(r,arguments),l=0,f=Wa.select(Za).on(M,e).on(A,n),p=t(Wa.mouse(r)),h=z();F.call(r),a(c)}function l(){function e(){var e=Wa.touches(h);return p=S.k,e.forEach(function(e){e.identifier in g&&(g[e.identifier]=t(e))}),e}function n(){var t=Wa.event.target;Wa.select(t).on(b,o).on($,f),w.push(t);for(var n=Wa.event.changedTouches,a=0,u=n.length;u>a;++a)g[n[a].identifier]=null;var c=e(),l=Date.now();if(1===c.length){if(500>l-v){var p=c[0],h=g[p.identifier];r(2*S.k),i(p,h),y(),s(d)}v=l}else if(c.length>1){var p=c[0],x=c[1],C=p[0]-x[0],k=p[1]-x[1];m=C*C+k*k}}function o(){for(var e,t,n,o,a=Wa.touches(h),u=0,c=a.length;c>u;++u,o=null)if(n=a[u],o=g[n.identifier]){if(t)break;e=n,t=o}if(o){var l=(l=n[0]-e[0])*l+(l=n[1]-e[1])*l,f=m&&Math.sqrt(l/m);e=[(e[0]+n[0])/2,(e[1]+n[1])/2],t=[(t[0]+o[0])/2,(t[1]+o[1])/2],r(f*p)}v=null,i(e,t),s(d)}function f(){if(Wa.event.touches.length){for(var t=Wa.event.changedTouches,n=0,r=t.length;r>n;++n)delete g[t[n].identifier];for(var i in g)return void e()}Wa.selectAll(w).on(x,null),C.on(E,c).on(N,l),k(),u(d)}var p,h=this,d=D.of(h,arguments),g={},m=0,x=".zoom-"+Wa.event.changedTouches[0].identifier,b="touchmove"+x,$="touchend"+x,w=[],C=Wa.select(h).on(E,null).on(N,n),k=z();F.call(h),n(),a(d)}function f(){var e=D.of(this,arguments);m?clearTimeout(m):(h=t(d=g||Wa.mouse(this)),F.call(this),a(e)),m=setTimeout(function(){m=null,u(e)},50),y(),r(Math.pow(2,.002*js())*S.k),i(d,h),s(e)}function p(){var e=D.of(this,arguments),n=Wa.mouse(this),o=t(n),c=Math.log(S.k)/Math.LN2;a(e),r(Math.pow(2,Wa.event.shiftKey?Math.ceil(c)-1:Math.floor(c)+1)),i(n,o),s(e),u(e)}var h,d,g,m,v,x,$,w,C,S={x:0,y:0,k:1},k=[960,500],T=Os,E="mousedown.zoom",M="mousemove.zoom",A="mouseup.zoom",N="touchstart.zoom",D=b(e,"zoomstart","zoom","zoomend");return e.event=function(e){e.each(function(){var e=D.of(this,arguments),t=S;kc?Wa.select(this).transition().each("start.zoom",function(){S=this.__chart__||{x:0,y:0,k:1},a(e)}).tween("zoom:zoom",function(){var n=k[0],r=k[1],i=n/2,o=r/2,a=Wa.interpolateZoom([(i-S.x)/S.k,(o-S.y)/S.k,n/S.k],[(i-t.x)/t.k,(o-t.y)/t.k,n/t.k]);return function(t){var r=a(t),u=n/r[2];this.__chart__=S={x:i-r[0]*u,y:o-r[1]*u,k:u},s(e)}}).each("end.zoom",function(){u(e)}):(this.__chart__=S,a(e),s(e),u(e))})},e.translate=function(t){return arguments.length?(S={x:+t[0],y:+t[1],k:S.k},o(),e):[S.x,S.y]},e.scale=function(t){return arguments.length?(S={x:S.x,y:S.y,k:+t},o(),e):S.k},e.scaleExtent=function(t){return arguments.length?(T=null==t?Os:[+t[0],+t[1]],e):T},e.center=function(t){return arguments.length?(g=t&&[+t[0],+t[1]],e):g},e.size=function(t){return arguments.length?(k=t&&[+t[0],+t[1]],e):k},e.x=function(t){return arguments.length?($=t,x=t.copy(),S={x:0,y:0,k:1},e):$},e.y=function(t){return arguments.length?(C=t,w=t.copy(),S={x:0,y:0,k:1},e):C},Wa.rebind(e,D,"on")};var js,Os=[0,1/0],Ps="onwheel"in Ya?(js=function(){return-Wa.event.deltaY*(Wa.event.deltaMode?120:1)},"wheel"):"onmousewheel"in Ya?(js=function(){return Wa.event.wheelDelta},"mousewheel"):(js=function(){return-Wa.event.detail},"MozMousePixelScroll");Wa.color=nt,nt.prototype.toString=function(){return this.rgb()+""},Wa.hsl=rt;var qs=rt.prototype=new nt;qs.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new rt(this.h,this.s,this.l/e)},qs.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new rt(this.h,this.s,e*this.l)},qs.rgb=function(){return it(this.h,this.s,this.l)},Wa.hcl=ot;var Ls=ot.prototype=new nt;Ls.brighter=function(e){return new ot(this.h,this.c,Math.min(100,this.l+Hs*(arguments.length?e:1)))},Ls.darker=function(e){return new ot(this.h,this.c,Math.max(0,this.l-Hs*(arguments.length?e:1)))},Ls.rgb=function(){return at(this.h,this.c,this.l).rgb()},Wa.lab=st;var Hs=18,Fs=.95047,Is=1,Rs=1.08883,Us=st.prototype=new nt;Us.brighter=function(e){return new st(Math.min(100,this.l+Hs*(arguments.length?e:1)),this.a,this.b)},Us.darker=function(e){return new st(Math.max(0,this.l-Hs*(arguments.length?e:1)),this.a,this.b)},Us.rgb=function(){return ut(this.l,this.a,this.b)},Wa.rgb=ht;var zs=ht.prototype=new nt;zs.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,i=30;return t||n||r?(t&&i>t&&(t=i),n&&i>n&&(n=i),r&&i>r&&(r=i),new ht(Math.min(255,t/e),Math.min(255,n/e),Math.min(255,r/e))):new ht(i,i,i)},zs.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new ht(e*this.r,e*this.g,e*this.b)},zs.hsl=function(){return yt(this.r,this.g,this.b)},zs.toString=function(){return"#"+mt(this.r)+mt(this.g)+mt(this.b)};var Bs=Wa.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Bs.forEach(function(e,t){Bs.set(e,dt(t))}),Wa.functor=wt,Wa.xhr=St(Ct),Wa.dsv=function(e,t){function n(e,n,o){arguments.length<3&&(o=n,n=null);var a=kt(e,t,null==n?r:i(n),o);return a.row=function(e){return arguments.length?a.response(null==(n=e)?r:i(e)):n},a}function r(e){return n.parse(e.responseText)}function i(e){return function(t){return n.parse(t.responseText,e)}}function o(t){return t.map(a).join(e)}function a(e){return s.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}var s=new RegExp('["'+e+"\n]"),u=e.charCodeAt(0);return n.parse=function(e,t){var r;return n.parseRows(e,function(e,n){if(r)return r(e,n-1);var i=new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}");r=t?function(e,n){return t(i(e),n)}:i})},n.parseRows=function(e,t){function n(){if(l>=c)return a;if(i)return i=!1,o;var t=l;if(34===e.charCodeAt(t)){for(var n=t;n++<c;)if(34===e.charCodeAt(n)){if(34!==e.charCodeAt(n+1))break;++n}l=n+2;var r=e.charCodeAt(n+1);return 13===r?(i=!0,10===e.charCodeAt(n+2)&&++l):10===r&&(i=!0),e.substring(t+1,n).replace(/""/g,'"')}for(;c>l;){var r=e.charCodeAt(l++),s=1;if(10===r)i=!0;else if(13===r)i=!0,10===e.charCodeAt(l)&&(++l,++s);else if(r!==u)continue;return e.substring(t,l-s)}return e.substring(t)}for(var r,i,o={},a={},s=[],c=e.length,l=0,f=0;(r=n())!==a;){for(var p=[];r!==o&&r!==a;)p.push(r),r=n();(!t||(p=t(p,f++)))&&s.push(p)}return s},n.format=function(t){if(Array.isArray(t[0]))return n.formatRows(t);var r=new p,i=[];return t.forEach(function(e){for(var t in e)r.has(t)||i.push(r.add(t))}),[i.map(a).join(e)].concat(t.map(function(t){return i.map(function(e){return a(t[e])}).join(e)})).join("\n")},n.formatRows=function(e){return e.map(o).join("\n")},n},Wa.csv=Wa.dsv(",","text/csv"),Wa.tsv=Wa.dsv(" ","text/tab-separated-values"),Wa.touch=function(e,t,n){if(arguments.length<3&&(n=t,t=x().changedTouches),t)for(var r,i=0,o=t.length;o>i;++i)if((r=t[i]).identifier===n)return B(e,r)};var Ws,Vs,Xs,Ys,Qs,Zs=Za[d(Za,"requestAnimationFrame")]||function(e){setTimeout(e,17)};Wa.timer=function(e,t,n){var r=arguments.length;2>r&&(t=0),3>r&&(n=Date.now());var i=n+t,o={c:e,t:i,f:!1,n:null};Vs?Vs.n=o:Ws=o,Vs=o,Xs||(Ys=clearTimeout(Ys),Xs=1,Zs(Et))},Wa.timer.flush=function(){Mt(),At()},Wa.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)};var Js=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(Dt);Wa.formatPrefix=function(e,t){var n=0;return e&&(0>e&&(e*=-1),t&&(e=Wa.round(e,Nt(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Js[8+n/3]};var Gs=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Ks=Wa.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=Wa.round(e,Nt(e,t))).toFixed(Math.max(0,Math.min(20,Nt(e*(1+1e-15),t))))}}),eu=Wa.time={},tu=Date;Ot.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){nu.setUTCDate.apply(this._,arguments)},setDay:function(){nu.setUTCDay.apply(this._,arguments)},setFullYear:function(){nu.setUTCFullYear.apply(this._,arguments)},setHours:function(){nu.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){nu.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){nu.setUTCMinutes.apply(this._,arguments)},setMonth:function(){nu.setUTCMonth.apply(this._,arguments)},setSeconds:function(){nu.setUTCSeconds.apply(this._,arguments)},setTime:function(){nu.setTime.apply(this._,arguments)}};var nu=Date.prototype;eu.year=Pt(function(e){return e=eu.day(e),e.setMonth(0,1),e},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e){return e.getFullYear()}),eu.years=eu.year.range,eu.years.utc=eu.year.utc.range,eu.day=Pt(function(e){var t=new tu(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t},function(e,t){e.setDate(e.getDate()+t)},function(e){return e.getDate()-1}),eu.days=eu.day.range,eu.days.utc=eu.day.utc.range,eu.dayOfYear=function(e){var t=eu.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(e,t){t=7-t;var n=eu[e]=Pt(function(e){return(e=eu.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e},function(e,t){e.setDate(e.getDate()+7*Math.floor(t))},function(e){var n=eu.year(e).getDay();return Math.floor((eu.dayOfYear(e)+(n+t)%7)/7)-(n!==t)});eu[e+"s"]=n.range,eu[e+"s"].utc=n.utc.range,eu[e+"OfYear"]=function(e){var n=eu.year(e).getDay();return Math.floor((eu.dayOfYear(e)+(n+t)%7)/7)}}),eu.week=eu.sunday,eu.weeks=eu.sunday.range,eu.weeks.utc=eu.sunday.utc.range,eu.weekOfYear=eu.sundayOfYear;var ru={"-":"",_:" ",0:"0"},iu=/^\s*\d+/,ou=/^%/;Wa.locale=function(e){return{numberFormat:_t(e),timeFormat:Lt(e)}};var au=Wa.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});Wa.format=au.numberFormat,Wa.geo={},on.prototype={s:0,t:0,add:function(e){an(e,this.t,su),an(su.s,this.s,this),this.s?this.t+=su.t:this.s=su.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var su=new on;Wa.geo.stream=function(e,t){e&&uu.hasOwnProperty(e.type)?uu[e.type](e,t):sn(e,t)};var uu={Feature:function(e,t){sn(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)sn(n[r].geometry,t)}},cu={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){un(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)un(n[r],t,0)},Polygon:function(e,t){cn(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)cn(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)sn(n[r],t)}};Wa.geo.area=function(e){return lu=0,Wa.geo.stream(e,pu),lu};var lu,fu=new on,pu={sphere:function(){lu+=4*Cs},point:g,lineStart:g,lineEnd:g,polygonStart:function(){fu.reset(),pu.lineStart=ln},polygonEnd:function(){var e=2*fu;lu+=0>e?4*Cs+e:e,pu.lineStart=pu.lineEnd=pu.point=g}};Wa.geo.bounds=function(){function e(e,t){x.push(b=[l=e,p=e]),f>t&&(f=t),t>h&&(h=t)}function t(t,n){var r=fn([t*Ms,n*Ms]);if(v){var i=hn(v,r),o=[i[1],-i[0],0],a=hn(o,i);mn(a),a=vn(a);var u=t-d,c=u>0?1:-1,g=a[0]*As*c,m=os(u)>180;if(m^(g>c*d&&c*t>g)){var y=a[1]*As;y>h&&(h=y)}else if(g=(g+360)%360-180,m^(g>c*d&&c*t>g)){var y=-a[1]*As;f>y&&(f=y)}else f>n&&(f=n),n>h&&(h=n);m?d>t?s(l,t)>s(l,p)&&(p=t):s(t,p)>s(l,p)&&(l=t):p>=l?(l>t&&(l=t),t>p&&(p=t)):t>d?s(l,t)>s(l,p)&&(p=t):s(t,p)>s(l,p)&&(l=t)}else e(t,n);v=r,d=t}function n(){$.point=t}function r(){b[0]=l,b[1]=p,$.point=e,v=null}function i(e,n){if(v){var r=e-d;y+=os(r)>180?r+(r>0?360:-360):r}else g=e,m=n;pu.point(e,n),t(e,n)}function o(){pu.lineStart()}function a(){i(g,m),pu.lineEnd(),os(y)>Ts&&(l=-(p=180)),b[0]=l,b[1]=p,v=null}function s(e,t){return(t-=e)<0?t+360:t}function u(e,t){return e[0]-t[0]}function c(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var l,f,p,h,d,g,m,v,y,x,b,$={point:e,lineStart:n,lineEnd:r,polygonStart:function(){$.point=i,$.lineStart=o,$.lineEnd=a,y=0,pu.polygonStart()},polygonEnd:function(){pu.polygonEnd(),$.point=e,$.lineStart=n,$.lineEnd=r,0>fu?(l=-(p=180),f=-(h=90)):y>Ts?h=90:-Ts>y&&(f=-90),b[0]=l,b[1]=p}};return function(e){h=p=-(l=f=1/0),x=[],Wa.geo.stream(e,$);var t=x.length;if(t){x.sort(u);for(var n,r=1,i=x[0],o=[i];t>r;++r)n=x[r],c(n[0],i)||c(n[1],i)?(s(i[0],n[1])>s(i[0],i[1])&&(i[1]=n[1]),s(n[0],i[1])>s(i[0],i[1])&&(i[0]=n[0])):o.push(i=n);for(var a,n,d=-1/0,t=o.length-1,r=0,i=o[t];t>=r;i=n,++r)n=o[r],(a=s(i[1],n[0]))>d&&(d=a,l=n[0],p=i[1])}return x=b=null,1/0===l||1/0===f?[[0/0,0/0],[0/0,0/0]]:[[l,f],[p,h]]}}(),Wa.geo.centroid=function(e){hu=du=gu=mu=vu=yu=xu=bu=$u=wu=Cu=0,Wa.geo.stream(e,Su);var t=$u,n=wu,r=Cu,i=t*t+n*n+r*r;return Es>i&&(t=yu,n=xu,r=bu,Ts>du&&(t=gu,n=mu,r=vu),i=t*t+n*n+r*r,Es>i)?[0/0,0/0]:[Math.atan2(n,t)*As,J(r/Math.sqrt(i))*As]};var hu,du,gu,mu,vu,yu,xu,bu,$u,wu,Cu,Su={sphere:g,point:xn,lineStart:$n,lineEnd:wn,polygonStart:function(){Su.lineStart=Cn},polygonEnd:function(){Su.lineStart=$n}},ku=Mn(Sn,jn,Pn,[-Cs,-Cs/2]),Tu=1e9;Wa.geo.clipExtent=function(){var e,t,n,r,i,o,a={stream:function(e){return i&&(i.valid=!1),i=o(e),i.valid=!0,i},extent:function(s){return arguments.length?(o=Hn(e=+s[0][0],t=+s[0][1],n=+s[1][0],r=+s[1][1]),i&&(i.valid=!1,i=null),a):[[e,t],[n,r]]}};return a.extent([[0,0],[960,500]])},(Wa.geo.conicEqualArea=function(){return In(Rn)}).raw=Rn,Wa.geo.albers=function(){return Wa.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},Wa.geo.albersUsa=function(){function e(e){var o=e[0],a=e[1];return t=null,n(o,a),t||(r(o,a),t)||i(o,a),t}var t,n,r,i,o=Wa.geo.albers(),a=Wa.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=Wa.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(e,n){t=[e,n]}};return e.invert=function(e){var t=o.scale(),n=o.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?a:i>=.166&&.234>i&&r>=-.214&&-.115>r?s:o).invert(e)},e.stream=function(e){var t=o.stream(e),n=a.stream(e),r=s.stream(e);return{point:function(e,i){t.point(e,i),n.point(e,i),r.point(e,i)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},e.precision=function(t){return arguments.length?(o.precision(t),a.precision(t),s.precision(t),e):o.precision()},e.scale=function(t){return arguments.length?(o.scale(t),a.scale(.35*t),s.scale(t),e.translate(o.translate())):o.scale()},e.translate=function(t){if(!arguments.length)return o.translate();var c=o.scale(),l=+t[0],f=+t[1];return n=o.translate(t).clipExtent([[l-.455*c,f-.238*c],[l+.455*c,f+.238*c]]).stream(u).point,r=a.translate([l-.307*c,f+.201*c]).clipExtent([[l-.425*c+Ts,f+.12*c+Ts],[l-.214*c-Ts,f+.234*c-Ts]]).stream(u).point,i=s.translate([l-.205*c,f+.212*c]).clipExtent([[l-.214*c+Ts,f+.166*c+Ts],[l-.115*c-Ts,f+.234*c-Ts]]).stream(u).point,e},e.scale(1070)};var Eu,Mu,Au,Nu,Du,_u,ju={point:g,lineStart:g,lineEnd:g,polygonStart:function(){Mu=0,ju.lineStart=Un},polygonEnd:function(){ju.lineStart=ju.lineEnd=ju.point=g,Eu+=os(Mu/2)}},Ou={point:zn,lineStart:g,lineEnd:g,polygonStart:g,polygonEnd:g},Pu={point:Vn,lineStart:Xn,lineEnd:Yn,polygonStart:function(){Pu.lineStart=Qn},polygonEnd:function(){Pu.point=Vn,Pu.lineStart=Xn,Pu.lineEnd=Yn}};Wa.geo.path=function(){function e(e){return e&&("function"==typeof s&&o.pointRadius(+s.apply(this,arguments)),a&&a.valid||(a=i(o)),Wa.geo.stream(e,a)),o.result()}function t(){return a=null,e}var n,r,i,o,a,s=4.5;return e.area=function(e){return Eu=0,Wa.geo.stream(e,i(ju)),Eu},e.centroid=function(e){return gu=mu=vu=yu=xu=bu=$u=wu=Cu=0,Wa.geo.stream(e,i(Pu)),Cu?[$u/Cu,wu/Cu]:bu?[yu/bu,xu/bu]:vu?[gu/vu,mu/vu]:[0/0,0/0]},e.bounds=function(e){return Du=_u=-(Au=Nu=1/0),Wa.geo.stream(e,i(Ou)),[[Au,Nu],[Du,_u]]},e.projection=function(e){return arguments.length?(i=(n=e)?e.stream||Gn(e):Ct,t()):n},e.context=function(e){return arguments.length?(o=null==(r=e)?new Bn:new Zn(e),"function"!=typeof s&&o.pointRadius(s),t()):r},e.pointRadius=function(t){return arguments.length?(s="function"==typeof t?t:(o.pointRadius(+t),+t),e):s},e.projection(Wa.geo.albersUsa()).context(null)},Wa.geo.transform=function(e){return{stream:function(t){var n=new Kn(t);for(var r in e)n[r]=e[r];return n}}},Kn.prototype={point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},Wa.geo.projection=tr,Wa.geo.projectionMutator=nr,(Wa.geo.equirectangular=function(){return tr(ir)}).raw=ir.invert=ir,Wa.geo.rotation=function(e){function t(t){return t=e(t[0]*Ms,t[1]*Ms),t[0]*=As,t[1]*=As,t}return e=ar(e[0]%360*Ms,e[1]*Ms,e.length>2?e[2]*Ms:0),t.invert=function(t){return t=e.invert(t[0]*Ms,t[1]*Ms),t[0]*=As,t[1]*=As,t},t},or.invert=ir,Wa.geo.circle=function(){function e(){var e="function"==typeof r?r.apply(this,arguments):r,t=ar(-e[0]*Ms,-e[1]*Ms,0).invert,i=[];return n(null,null,1,{point:function(e,n){i.push(e=t(e,n)),e[0]*=As,e[1]*=As}}),{type:"Polygon",coordinates:[i]}}var t,n,r=[0,0],i=6;return e.origin=function(t){return arguments.length?(r=t,e):r},e.angle=function(r){return arguments.length?(n=lr((t=+r)*Ms,i*Ms),e):t},e.precision=function(r){return arguments.length?(n=lr(t*Ms,(i=+r)*Ms),e):i},e.angle(90)},Wa.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Ms,i=e[1]*Ms,o=t[1]*Ms,a=Math.sin(r),s=Math.cos(r),u=Math.sin(i),c=Math.cos(i),l=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((n=f*a)*n+(n=c*l-u*f*s)*n),u*l+c*f*s)},Wa.geo.graticule=function(){function e(){return{type:"MultiLineString",coordinates:t()}}function t(){return Wa.range(Math.ceil(o/m)*m,i,m).map(p).concat(Wa.range(Math.ceil(c/v)*v,u,v).map(h)).concat(Wa.range(Math.ceil(r/d)*d,n,d).filter(function(e){return os(e%m)>Ts}).map(l)).concat(Wa.range(Math.ceil(s/g)*g,a,g).filter(function(e){return os(e%v)>Ts}).map(f))}var n,r,i,o,a,s,u,c,l,f,p,h,d=10,g=d,m=90,v=360,y=2.5;return e.lines=function(){return t().map(function(e){return{type:"LineString",coordinates:e}})},e.outline=function(){return{type:"Polygon",coordinates:[p(o).concat(h(u).slice(1),p(i).reverse().slice(1),h(c).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.majorExtent(t).minorExtent(t):e.minorExtent()},e.majorExtent=function(t){return arguments.length?(o=+t[0][0],i=+t[1][0],c=+t[0][1],u=+t[1][1],o>i&&(t=o,o=i,i=t),c>u&&(t=c,c=u,u=t),e.precision(y)):[[o,c],[i,u]]},e.minorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],a=+t[1][1],r>n&&(t=r,r=n,n=t),s>a&&(t=s,s=a,a=t),e.precision(y)):[[r,s],[n,a]]},e.step=function(t){return arguments.length?e.majorStep(t).minorStep(t):e.minorStep()},e.majorStep=function(t){return arguments.length?(m=+t[0],v=+t[1],e):[m,v]},e.minorStep=function(t){return arguments.length?(d=+t[0],g=+t[1],e):[d,g]},e.precision=function(t){return arguments.length?(y=+t,l=pr(s,a,90),f=hr(r,n,y),p=pr(c,u,90),h=hr(o,i,y),e):y},e.majorExtent([[-180,-90+Ts],[180,90-Ts]]).minorExtent([[-180,-80-Ts],[180,80+Ts]])},Wa.geo.greatArc=function(){function e(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),n||i.apply(this,arguments)]}}var t,n,r=dr,i=gr;return e.distance=function(){return Wa.geo.distance(t||r.apply(this,arguments),n||i.apply(this,arguments))},e.source=function(n){return arguments.length?(r=n,t="function"==typeof n?null:n,e):r},e.target=function(t){return arguments.length?(i=t,n="function"==typeof t?null:t,e):i},e.precision=function(){return arguments.length?e:0},e},Wa.geo.interpolate=function(e,t){return mr(e[0]*Ms,e[1]*Ms,t[0]*Ms,t[1]*Ms)},Wa.geo.length=function(e){return qu=0,Wa.geo.stream(e,Lu),qu};var qu,Lu={sphere:g,point:g,lineStart:vr,lineEnd:g,polygonStart:g,polygonEnd:g},Hu=yr(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(Wa.geo.azimuthalEqualArea=function(){return tr(Hu)}).raw=Hu;var Fu=yr(function(e){var t=Math.acos(e);return t&&t/Math.sin(t)},Ct);(Wa.geo.azimuthalEquidistant=function(){return tr(Fu)}).raw=Fu,(Wa.geo.conicConformal=function(){return In(xr)}).raw=xr,(Wa.geo.conicEquidistant=function(){return In(br)}).raw=br;var Iu=yr(function(e){return 1/e},Math.atan);(Wa.geo.gnomonic=function(){return tr(Iu)}).raw=Iu,$r.invert=function(e,t){return[e,2*Math.atan(Math.exp(t))-ks]},(Wa.geo.mercator=function(){return wr($r)}).raw=$r;var Ru=yr(function(){return 1},Math.asin);(Wa.geo.orthographic=function(){return tr(Ru)}).raw=Ru;var Uu=yr(function(e){return 1/(1+e)},function(e){return 2*Math.atan(e)});(Wa.geo.stereographic=function(){return tr(Uu)}).raw=Uu,Cr.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-ks]},(Wa.geo.transverseMercator=function(){var e=wr(Cr),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90])}).raw=Cr,Wa.geom={},Wa.geom.hull=function(e){function t(e){if(e.length<3)return[];var t,i=wt(n),o=wt(r),a=e.length,s=[],u=[];for(t=0;a>t;t++)s.push([+i.call(this,e[t],t),+o.call(this,e[t],t),t]);for(s.sort(Er),t=0;a>t;t++)u.push([s[t][0],-s[t][1]]);var c=Tr(s),l=Tr(u),f=l[0]===c[0],p=l[l.length-1]===c[c.length-1],h=[];for(t=c.length-1;t>=0;--t)h.push(e[s[c[t]][2]]);for(t=+f;t<l.length-p;++t)h.push(e[s[l[t]][2]]);return h}var n=Sr,r=kr;return arguments.length?t(e):(t.x=function(e){return arguments.length?(n=e,t):n},t.y=function(e){return arguments.length?(r=e,t):r},t)},Wa.geom.polygon=function(e){return ls(e,zu),e};var zu=Wa.geom.polygon.prototype=[];zu.area=function(){for(var e,t=-1,n=this.length,r=this[n-1],i=0;++t<n;)e=r,r=this[t],i+=e[1]*r[0]-e[0]*r[1];return.5*i},zu.centroid=function(e){var t,n,r=-1,i=this.length,o=0,a=0,s=this[i-1];for(arguments.length||(e=-1/(6*this.area()));++r<i;)t=s,s=this[r],n=t[0]*s[1]-s[0]*t[1],o+=(t[0]+s[0])*n,a+=(t[1]+s[1])*n;return[o*e,a*e]},zu.clip=function(e){for(var t,n,r,i,o,a,s=Nr(e),u=-1,c=this.length-Nr(this),l=this[c-1];++u<c;){for(t=e.slice(),e.length=0,i=this[u],o=t[(r=t.length-s)-1],n=-1;++n<r;)a=t[n],Mr(a,l,i)?(Mr(o,l,i)||e.push(Ar(o,a,l,i)),e.push(a)):Mr(o,l,i)&&e.push(Ar(o,a,l,i)),o=a;s&&e.push(e[0]),l=i}return e};var Bu,Wu,Vu,Xu,Yu,Qu=[],Zu=[];Hr.prototype.prepare=function(){for(var e,t=this.edges,n=t.length;n--;)e=t[n].edge,e.b&&e.a||t.splice(n,1);return t.sort(Ir),t.length},Zr.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Jr.prototype={insert:function(e,t){var n,r,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=ti(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)r=n.U,n===r.L?(i=r.R,i&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.R&&(Kr(this,n),e=n,n=e.U),n.C=!1,r.C=!0,ei(this,r))):(i=r.L,i&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.L&&(ei(this,n),e=n,n=e.U),n.C=!1,r.C=!0,Kr(this,r))),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,i=e.U,o=e.L,a=e.R;if(n=o?a?ti(a):o:a,i?i.L===e?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=e.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=e.U,e=n.R,i.L=e,n.R=a,a.U=n):(n.U=i,i=n,e=n.R)):(r=e.C,e=n),e&&(e.U=i),!r){if(e&&e.C)return e.C=!1,void 0;do{if(e===this._)break;if(e===i.L){if(t=i.R,t.C&&(t.C=!1,i.C=!0,Kr(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,ei(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,Kr(this,i),e=this._;break}}else if(t=i.L,t.C&&(t.C=!1,i.C=!0,ei(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Kr(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,ei(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}},Wa.geom.voronoi=function(e){function t(e){var t=new Array(e.length),r=s[0][0],i=s[0][1],o=s[1][0],a=s[1][1];return ni(n(e),s).cells.forEach(function(n,s){var u=n.edges,c=n.site,l=t[s]=u.length?u.map(function(e){var t=e.start();return[t.x,t.y]}):c.x>=r&&c.x<=o&&c.y>=i&&c.y<=a?[[r,a],[o,a],[o,i],[r,i]]:[];l.point=e[s]}),t}function n(e){return e.map(function(e,t){return{x:Math.round(o(e,t)/Ts)*Ts,y:Math.round(a(e,t)/Ts)*Ts,i:t}})}var r=Sr,i=kr,o=r,a=i,s=Ju;return e?t(e):(t.links=function(e){return ni(n(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},t.triangles=function(e){var t=[];return ni(n(e)).cells.forEach(function(n,r){for(var i,o,a=n.site,s=n.edges.sort(Ir),u=-1,c=s.length,l=s[c-1].edge,f=l.l===a?l.r:l.l;++u<c;)i=l,o=f,l=s[u].edge,f=l.l===a?l.r:l.l,r<o.i&&r<f.i&&ii(a,o,f)<0&&t.push([e[r],e[o.i],e[f.i]])}),t},t.x=function(e){return arguments.length?(o=wt(r=e),t):r},t.y=function(e){return arguments.length?(a=wt(i=e),t):i},t.clipExtent=function(e){return arguments.length?(s=null==e?Ju:e,t):s===Ju?null:s},t.size=function(e){return arguments.length?t.clipExtent(e&&[[0,0],e]):s===Ju?null:s&&s[1]},t)};var Ju=[[-1e6,-1e6],[1e6,1e6]];Wa.geom.delaunay=function(e){return Wa.geom.voronoi().triangles(e)},Wa.geom.quadtree=function(e,t,n,r,i){function o(e){function o(e,t,n,r,i,o,a,s){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var u=e.x,l=e.y;if(null!=u)if(os(u-n)+os(l-r)<.01)c(e,t,n,r,i,o,a,s);else{var f=e.point;e.x=e.y=e.point=null,c(e,f,u,l,i,o,a,s),c(e,t,n,r,i,o,a,s)}else e.x=n,e.y=r,e.point=t}else c(e,t,n,r,i,o,a,s)}function c(e,t,n,r,i,a,s,u){var c=.5*(i+s),l=.5*(a+u),f=n>=c,p=r>=l,h=(p<<1)+f;e.leaf=!1,e=e.nodes[h]||(e.nodes[h]=si()),f?i=c:s=c,p?a=l:u=l,o(e,t,n,r,i,a,s,u)}var l,f,p,h,d,g,m,v,y,x=wt(s),b=wt(u);if(null!=t)g=t,m=n,v=r,y=i;else if(v=y=-(g=m=1/0),f=[],p=[],d=e.length,a)for(h=0;d>h;++h)l=e[h],l.x<g&&(g=l.x),l.y<m&&(m=l.y),l.x>v&&(v=l.x),l.y>y&&(y=l.y),f.push(l.x),p.push(l.y);else for(h=0;d>h;++h){var $=+x(l=e[h],h),w=+b(l,h);g>$&&(g=$),m>w&&(m=w),$>v&&(v=$),w>y&&(y=w),f.push($),p.push(w)}var C=v-g,S=y-m;C>S?y=m+C:v=g+S;var k=si();if(k.add=function(e){o(k,e,+x(e,++h),+b(e,h),g,m,v,y)},k.visit=function(e){ui(e,k,g,m,v,y)},h=-1,null==t){for(;++h<d;)o(k,e[h],f[h],p[h],g,m,v,y);--h}else e.forEach(k.add);return f=p=e=l=null,k}var a,s=Sr,u=kr;return(a=arguments.length)?(s=oi,u=ai,3===a&&(i=n,r=t,n=t=0),o(e)):(o.x=function(e){return arguments.length?(s=e,o):s},o.y=function(e){return arguments.length?(u=e,o):u},o.extent=function(e){return arguments.length?(null==e?t=n=r=i=null:(t=+e[0][0],n=+e[0][1],r=+e[1][0],i=+e[1][1]),o):null==t?null:[[t,n],[r,i]]},o.size=function(e){return arguments.length?(null==e?t=n=r=i=null:(t=n=0,r=+e[0],i=+e[1]),o):null==t?null:[r-t,i-n]
},o)},Wa.interpolateRgb=ci,Wa.interpolateObject=li,Wa.interpolateNumber=fi,Wa.interpolateString=pi;var Gu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ku=new RegExp(Gu.source,"g");Wa.interpolate=hi,Wa.interpolators=[function(e,t){var n=typeof t;return("string"===n?Bs.has(t)||/^(#|rgb\(|hsl\()/.test(t)?ci:pi:t instanceof nt?ci:Array.isArray(t)?di:"object"===n&&isNaN(t)?li:fi)(e,t)}],Wa.interpolateArray=di;var ec=function(){return Ct},tc=Wa.map({linear:ec,poly:$i,quad:function(){return yi},cubic:function(){return xi},sin:function(){return wi},exp:function(){return Ci},circle:function(){return Si},elastic:ki,back:Ti,bounce:function(){return Ei}}),nc=Wa.map({"in":Ct,out:mi,"in-out":vi,"out-in":function(e){return vi(mi(e))}});Wa.ease=function(e){var t=e.indexOf("-"),n=t>=0?e.substring(0,t):e,r=t>=0?e.substring(t+1):"in";return n=tc.get(n)||ec,r=nc.get(r)||Ct,gi(r(n.apply(null,Va.call(arguments,1))))},Wa.interpolateHcl=Mi,Wa.interpolateHsl=Ai,Wa.interpolateLab=Ni,Wa.interpolateRound=Di,Wa.transform=function(e){var t=Ya.createElementNS(Wa.ns.prefix.svg,"g");return(Wa.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new _i(n?n.matrix:rc)})(e)},_i.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var rc={a:1,b:0,c:0,d:1,e:0,f:0};Wa.interpolateTransform=qi,Wa.layout={},Wa.layout.bundle=function(){return function(e){for(var t=[],n=-1,r=e.length;++n<r;)t.push(Fi(e[n]));return t}},Wa.layout.chord=function(){function e(){var e,c,f,p,h,d={},g=[],m=Wa.range(o),v=[];for(n=[],r=[],e=0,p=-1;++p<o;){for(c=0,h=-1;++h<o;)c+=i[p][h];g.push(c),v.push(Wa.range(o)),e+=c}for(a&&m.sort(function(e,t){return a(g[e],g[t])}),s&&v.forEach(function(e,t){e.sort(function(e,n){return s(i[t][e],i[t][n])})}),e=(Ss-l*o)/e,c=0,p=-1;++p<o;){for(f=c,h=-1;++h<o;){var y=m[p],x=v[y][h],b=i[y][x],$=c,w=c+=b*e;d[y+"-"+x]={index:y,subindex:x,startAngle:$,endAngle:w,value:b}}r[y]={index:y,startAngle:f,endAngle:c,value:(c-f)/e},c+=l}for(p=-1;++p<o;)for(h=p-1;++h<o;){var C=d[p+"-"+h],S=d[h+"-"+p];(C.value||S.value)&&n.push(C.value<S.value?{source:S,target:C}:{source:C,target:S})}u&&t()}function t(){n.sort(function(e,t){return u((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)})}var n,r,i,o,a,s,u,c={},l=0;return c.matrix=function(e){return arguments.length?(o=(i=e)&&i.length,n=r=null,c):i},c.padding=function(e){return arguments.length?(l=e,n=r=null,c):l},c.sortGroups=function(e){return arguments.length?(a=e,n=r=null,c):a},c.sortSubgroups=function(e){return arguments.length?(s=e,n=null,c):s},c.sortChords=function(e){return arguments.length?(u=e,n&&t(),c):u},c.chords=function(){return n||e(),n},c.groups=function(){return r||e(),r},c},Wa.layout.force=function(){function e(e){return function(t,n,r,i){if(t.point!==e){var o=t.cx-e.x,a=t.cy-e.y,s=i-n,u=o*o+a*a;if(u>s*s/m){if(d>u){var c=t.charge/u;e.px-=o*c,e.py-=a*c}return!0}if(t.point&&u&&d>u){var c=t.pointCharge/u;e.px-=o*c,e.py-=a*c}}return!t.charge}}function t(e){e.px=Wa.event.x,e.py=Wa.event.y,s.resume()}var n,r,i,o,a,s={},u=Wa.dispatch("start","tick","end"),c=[1,1],l=.9,f=ic,p=oc,h=-30,d=ac,g=.1,m=.64,v=[],y=[];return s.tick=function(){if((r*=.99)<.005)return u.end({type:"end",alpha:r=0}),!0;var t,n,s,f,p,d,m,x,b,$=v.length,w=y.length;for(n=0;w>n;++n)s=y[n],f=s.source,p=s.target,x=p.x-f.x,b=p.y-f.y,(d=x*x+b*b)&&(d=r*o[n]*((d=Math.sqrt(d))-i[n])/d,x*=d,b*=d,p.x-=x*(m=f.weight/(p.weight+f.weight)),p.y-=b*m,f.x+=x*(m=1-m),f.y+=b*m);if((m=r*g)&&(x=c[0]/2,b=c[1]/2,n=-1,m))for(;++n<$;)s=v[n],s.x+=(x-s.x)*m,s.y+=(b-s.y)*m;if(h)for(Vi(t=Wa.geom.quadtree(v),r,a),n=-1;++n<$;)(s=v[n]).fixed||t.visit(e(s));for(n=-1;++n<$;)s=v[n],s.fixed?(s.x=s.px,s.y=s.py):(s.x-=(s.px-(s.px=s.x))*l,s.y-=(s.py-(s.py=s.y))*l);u.tick({type:"tick",alpha:r})},s.nodes=function(e){return arguments.length?(v=e,s):v},s.links=function(e){return arguments.length?(y=e,s):y},s.size=function(e){return arguments.length?(c=e,s):c},s.linkDistance=function(e){return arguments.length?(f="function"==typeof e?e:+e,s):f},s.distance=s.linkDistance,s.linkStrength=function(e){return arguments.length?(p="function"==typeof e?e:+e,s):p},s.friction=function(e){return arguments.length?(l=+e,s):l},s.charge=function(e){return arguments.length?(h="function"==typeof e?e:+e,s):h},s.chargeDistance=function(e){return arguments.length?(d=e*e,s):Math.sqrt(d)},s.gravity=function(e){return arguments.length?(g=+e,s):g},s.theta=function(e){return arguments.length?(m=e*e,s):Math.sqrt(m)},s.alpha=function(e){return arguments.length?(e=+e,r?r=e>0?e:0:e>0&&(u.start({type:"start",alpha:r=e}),Wa.timer(s.tick)),s):r},s.start=function(){function e(e,r){if(!n){for(n=new Array(u),s=0;u>s;++s)n[s]=[];for(s=0;c>s;++s){var i=y[s];n[i.source.index].push(i.target),n[i.target.index].push(i.source)}}for(var o,a=n[t],s=-1,c=a.length;++s<c;)if(!isNaN(o=a[s][e]))return o;return Math.random()*r}var t,n,r,u=v.length,l=y.length,d=c[0],g=c[1];for(t=0;u>t;++t)(r=v[t]).index=t,r.weight=0;for(t=0;l>t;++t)r=y[t],"number"==typeof r.source&&(r.source=v[r.source]),"number"==typeof r.target&&(r.target=v[r.target]),++r.source.weight,++r.target.weight;for(t=0;u>t;++t)r=v[t],isNaN(r.x)&&(r.x=e("x",d)),isNaN(r.y)&&(r.y=e("y",g)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],"function"==typeof f)for(t=0;l>t;++t)i[t]=+f.call(this,y[t],t);else for(t=0;l>t;++t)i[t]=f;if(o=[],"function"==typeof p)for(t=0;l>t;++t)o[t]=+p.call(this,y[t],t);else for(t=0;l>t;++t)o[t]=p;if(a=[],"function"==typeof h)for(t=0;u>t;++t)a[t]=+h.call(this,v[t],t);else for(t=0;u>t;++t)a[t]=h;return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){return n||(n=Wa.behavior.drag().origin(Ct).on("dragstart.force",Ui).on("drag.force",t).on("dragend.force",zi)),arguments.length?(this.on("mouseover.force",Bi).on("mouseout.force",Wi).call(n),void 0):n},Wa.rebind(s,u,"on")};var ic=20,oc=1,ac=1/0;Wa.layout.hierarchy=function(){function e(i){var o,a=[i],s=[];for(i.depth=0;null!=(o=a.pop());)if(s.push(o),(c=n.call(e,o,o.depth))&&(u=c.length)){for(var u,c,l;--u>=0;)a.push(l=c[u]),l.parent=o,l.depth=o.depth+1;r&&(o.value=0),o.children=c}else r&&(o.value=+r.call(e,o,o.depth)||0),delete o.children;return Qi(i,function(e){var n,i;t&&(n=e.children)&&n.sort(t),r&&(i=e.parent)&&(i.value+=e.value)}),s}var t=Gi,n=Zi,r=Ji;return e.sort=function(n){return arguments.length?(t=n,e):t},e.children=function(t){return arguments.length?(n=t,e):n},e.value=function(t){return arguments.length?(r=t,e):r},e.revalue=function(t){return r&&(Yi(t,function(e){e.children&&(e.value=0)}),Qi(t,function(t){var n;t.children||(t.value=+r.call(e,t,t.depth)||0),(n=t.parent)&&(n.value+=t.value)})),t},e},Wa.layout.partition=function(){function e(t,n,r,i){var o=t.children;if(t.x=n,t.y=t.depth*i,t.dx=r,t.dy=i,o&&(a=o.length)){var a,s,u,c=-1;for(r=t.value?r/t.value:0;++c<a;)e(s=o[c],n,u=s.value*r,i),n+=u}}function t(e){var n=e.children,r=0;if(n&&(i=n.length))for(var i,o=-1;++o<i;)r=Math.max(r,t(n[o]));return 1+r}function n(n,o){var a=r.call(this,n,o);return e(a[0],0,i[0],i[1]/t(a[0])),a}var r=Wa.layout.hierarchy(),i=[1,1];return n.size=function(e){return arguments.length?(i=e,n):i},Xi(n,r)},Wa.layout.pie=function(){function e(o){var a=o.map(function(n,r){return+t.call(e,n,r)}),s=+("function"==typeof r?r.apply(this,arguments):r),u=(("function"==typeof i?i.apply(this,arguments):i)-s)/Wa.sum(a),c=Wa.range(o.length);null!=n&&c.sort(n===sc?function(e,t){return a[t]-a[e]}:function(e,t){return n(o[e],o[t])});var l=[];return c.forEach(function(e){var t;l[e]={data:o[e],value:t=a[e],startAngle:s,endAngle:s+=t*u}}),l}var t=Number,n=sc,r=0,i=Ss;return e.value=function(n){return arguments.length?(t=n,e):t},e.sort=function(t){return arguments.length?(n=t,e):n},e.startAngle=function(t){return arguments.length?(r=t,e):r},e.endAngle=function(t){return arguments.length?(i=t,e):i},e};var sc={};Wa.layout.stack=function(){function e(s,u){var c=s.map(function(n,r){return t.call(e,n,r)}),l=c.map(function(t){return t.map(function(t,n){return[o.call(e,t,n),a.call(e,t,n)]})}),f=n.call(e,l,u);c=Wa.permute(c,f),l=Wa.permute(l,f);var p,h,d,g=r.call(e,l,u),m=c.length,v=c[0].length;for(h=0;v>h;++h)for(i.call(e,c[0][h],d=g[h],l[0][h][1]),p=1;m>p;++p)i.call(e,c[p][h],d+=l[p-1][h][1],l[p][h][1]);return s}var t=Ct,n=ro,r=io,i=no,o=eo,a=to;return e.values=function(n){return arguments.length?(t=n,e):t},e.order=function(t){return arguments.length?(n="function"==typeof t?t:uc.get(t)||ro,e):n},e.offset=function(t){return arguments.length?(r="function"==typeof t?t:cc.get(t)||io,e):r},e.x=function(t){return arguments.length?(o=t,e):o},e.y=function(t){return arguments.length?(a=t,e):a},e.out=function(t){return arguments.length?(i=t,e):i},e};var uc=Wa.map({"inside-out":function(e){var t,n,r=e.length,i=e.map(oo),o=e.map(ao),a=Wa.range(r).sort(function(e,t){return i[e]-i[t]}),s=0,u=0,c=[],l=[];for(t=0;r>t;++t)n=a[t],u>s?(s+=o[n],c.push(n)):(u+=o[n],l.push(n));return l.reverse().concat(c)},reverse:function(e){return Wa.range(e.length).reverse()},"default":ro}),cc=Wa.map({silhouette:function(e){var t,n,r,i=e.length,o=e[0].length,a=[],s=0,u=[];for(n=0;o>n;++n){for(t=0,r=0;i>t;t++)r+=e[t][n][1];r>s&&(s=r),a.push(r)}for(n=0;o>n;++n)u[n]=(s-a[n])/2;return u},wiggle:function(e){var t,n,r,i,o,a,s,u,c,l=e.length,f=e[0],p=f.length,h=[];for(h[0]=u=c=0,n=1;p>n;++n){for(t=0,i=0;l>t;++t)i+=e[t][n][1];for(t=0,o=0,s=f[n][0]-f[n-1][0];l>t;++t){for(r=0,a=(e[t][n][1]-e[t][n-1][1])/(2*s);t>r;++r)a+=(e[r][n][1]-e[r][n-1][1])/s;o+=a*e[t][n][1]}h[n]=u-=i?o/i*s:0,c>u&&(c=u)}for(n=0;p>n;++n)h[n]-=c;return h},expand:function(e){var t,n,r,i=e.length,o=e[0].length,a=1/i,s=[];for(n=0;o>n;++n){for(t=0,r=0;i>t;t++)r+=e[t][n][1];if(r)for(t=0;i>t;t++)e[t][n][1]/=r;else for(t=0;i>t;t++)e[t][n][1]=a}for(n=0;o>n;++n)s[n]=0;return s},zero:io});Wa.layout.histogram=function(){function e(e,o){for(var a,s,u=[],c=e.map(n,this),l=r.call(this,c,o),f=i.call(this,l,c,o),o=-1,p=c.length,h=f.length-1,d=t?1:1/p;++o<h;)a=u[o]=[],a.dx=f[o+1]-(a.x=f[o]),a.y=0;if(h>0)for(o=-1;++o<p;)s=c[o],s>=l[0]&&s<=l[1]&&(a=u[Wa.bisect(f,s,1,h)-1],a.y+=d,a.push(e[o]));return u}var t=!0,n=Number,r=lo,i=uo;return e.value=function(t){return arguments.length?(n=t,e):n},e.range=function(t){return arguments.length?(r=wt(t),e):r},e.bins=function(t){return arguments.length?(i="number"==typeof t?function(e){return co(e,t)}:wt(t),e):i},e.frequency=function(n){return arguments.length?(t=!!n,e):t},e},Wa.layout.pack=function(){function e(e,o){var a=n.call(this,e,o),s=a[0],u=i[0],c=i[1],l=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(s.x=s.y=0,Qi(s,function(e){e.r=+l(e.value)}),Qi(s,mo),r){var f=r*(t?1:Math.max(2*s.r/u,2*s.r/c))/2;Qi(s,function(e){e.r+=f}),Qi(s,mo),Qi(s,function(e){e.r-=f})}return xo(s,u/2,c/2,t?1:1/Math.max(2*s.r/u,2*s.r/c)),a}var t,n=Wa.layout.hierarchy().sort(fo),r=0,i=[1,1];return e.size=function(t){return arguments.length?(i=t,e):i},e.radius=function(n){return arguments.length?(t=null==n||"function"==typeof n?n:+n,e):t},e.padding=function(t){return arguments.length?(r=+t,e):r},Xi(e,n)},Wa.layout.tree=function(){function e(e,i){var l=a.call(this,e,i),f=l[0],p=t(f);if(Qi(p,n),p.parent.m=-p.z,Yi(p,r),c)Yi(f,o);else{var h=f,d=f,g=f;Yi(f,function(e){e.x<h.x&&(h=e),e.x>d.x&&(d=e),e.depth>g.depth&&(g=e)});var m=s(h,d)/2-h.x,v=u[0]/(d.x+s(d,h)/2+m),y=u[1]/(g.depth||1);Yi(f,function(e){e.x=(e.x+m)*v,e.y=e.depth*y})}return l}function t(e){for(var t,n={A:null,children:[e]},r=[n];null!=(t=r.pop());)for(var i,o=t.children,a=0,s=o.length;s>a;++a)r.push((o[a]=i={_:o[a],parent:t,children:(i=o[a].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:a}).a=i);return n.children[0]}function n(e){var t=e.children,n=e.parent.children,r=e.i?n[e.i-1]:null;if(t.length){ko(e);var o=(t[0].z+t[t.length-1].z)/2;r?(e.z=r.z+s(e._,r._),e.m=e.z-o):e.z=o}else r&&(e.z=r.z+s(e._,r._));e.parent.A=i(e,r,e.parent.A||n[0])}function r(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function i(e,t,n){if(t){for(var r,i=e,o=e,a=t,u=i.parent.children[0],c=i.m,l=o.m,f=a.m,p=u.m;a=Co(a),i=wo(i),a&&i;)u=wo(u),o=Co(o),o.a=e,r=a.z+f-i.z-c+s(a._,i._),r>0&&(So(To(a,e,n),e,r),c+=r,l+=r),f+=a.m,c+=i.m,p+=u.m,l+=o.m;a&&!Co(o)&&(o.t=a,o.m+=f-l),i&&!wo(u)&&(u.t=i,u.m+=c-p,n=e)}return n}function o(e){e.x*=u[0],e.y=e.depth*u[1]}var a=Wa.layout.hierarchy().sort(null).value(null),s=$o,u=[1,1],c=null;return e.separation=function(t){return arguments.length?(s=t,e):s},e.size=function(t){return arguments.length?(c=null==(u=t)?o:null,e):c?null:u},e.nodeSize=function(t){return arguments.length?(c=null==(u=t)?null:o,e):c?u:null},Xi(e,a)},Wa.layout.cluster=function(){function e(e,o){var a,s=t.call(this,e,o),u=s[0],c=0;Qi(u,function(e){var t=e.children;t&&t.length?(e.x=Mo(t),e.y=Eo(t)):(e.x=a?c+=n(e,a):0,e.y=0,a=e)});var l=Ao(u),f=No(u),p=l.x-n(l,f)/2,h=f.x+n(f,l)/2;return Qi(u,i?function(e){e.x=(e.x-u.x)*r[0],e.y=(u.y-e.y)*r[1]}:function(e){e.x=(e.x-p)/(h-p)*r[0],e.y=(1-(u.y?e.y/u.y:1))*r[1]}),s}var t=Wa.layout.hierarchy().sort(null).value(null),n=$o,r=[1,1],i=!1;return e.separation=function(t){return arguments.length?(n=t,e):n},e.size=function(t){return arguments.length?(i=null==(r=t),e):i?null:r},e.nodeSize=function(t){return arguments.length?(i=null!=(r=t),e):i?r:null},Xi(e,t)},Wa.layout.treemap=function(){function e(e,t){for(var n,r,i=-1,o=e.length;++i<o;)r=(n=e[i]).value*(0>t?0:t),n.area=isNaN(r)||0>=r?0:r}function t(n){var o=n.children;if(o&&o.length){var a,s,u,c=f(n),l=[],p=o.slice(),d=1/0,g="slice"===h?c.dx:"dice"===h?c.dy:"slice-dice"===h?1&n.depth?c.dy:c.dx:Math.min(c.dx,c.dy);for(e(p,c.dx*c.dy/n.value),l.area=0;(u=p.length)>0;)l.push(a=p[u-1]),l.area+=a.area,"squarify"!==h||(s=r(l,g))<=d?(p.pop(),d=s):(l.area-=l.pop().area,i(l,g,c,!1),g=Math.min(c.dx,c.dy),l.length=l.area=0,d=1/0);l.length&&(i(l,g,c,!0),l.length=l.area=0),o.forEach(t)}}function n(t){var r=t.children;if(r&&r.length){var o,a=f(t),s=r.slice(),u=[];for(e(s,a.dx*a.dy/t.value),u.area=0;o=s.pop();)u.push(o),u.area+=o.area,null!=o.z&&(i(u,o.z?a.dx:a.dy,a,!s.length),u.length=u.area=0);r.forEach(n)}}function r(e,t){for(var n,r=e.area,i=0,o=1/0,a=-1,s=e.length;++a<s;)(n=e[a].area)&&(o>n&&(o=n),n>i&&(i=n));return r*=r,t*=t,r?Math.max(t*i*d/r,r/(t*o*d)):1/0}function i(e,t,n,r){var i,o=-1,a=e.length,s=n.x,c=n.y,l=t?u(e.area/t):0;if(t==n.dx){for((r||l>n.dy)&&(l=n.dy);++o<a;)i=e[o],i.x=s,i.y=c,i.dy=l,s+=i.dx=Math.min(n.x+n.dx-s,l?u(i.area/l):0);i.z=!0,i.dx+=n.x+n.dx-s,n.y+=l,n.dy-=l}else{for((r||l>n.dx)&&(l=n.dx);++o<a;)i=e[o],i.x=s,i.y=c,i.dx=l,c+=i.dy=Math.min(n.y+n.dy-c,l?u(i.area/l):0);i.z=!1,i.dy+=n.y+n.dy-c,n.x+=l,n.dx-=l}}function o(r){var i=a||s(r),o=i[0];return o.x=0,o.y=0,o.dx=c[0],o.dy=c[1],a&&s.revalue(o),e([o],o.dx*o.dy/o.value),(a?n:t)(o),p&&(a=i),i}var a,s=Wa.layout.hierarchy(),u=Math.round,c=[1,1],l=null,f=Do,p=!1,h="squarify",d=.5*(1+Math.sqrt(5));return o.size=function(e){return arguments.length?(c=e,o):c},o.padding=function(e){function t(t){var n=e.call(o,t,t.depth);return null==n?Do(t):_o(t,"number"==typeof n?[n,n,n,n]:n)}function n(t){return _o(t,e)}if(!arguments.length)return l;var r;return f=null==(l=e)?Do:"function"==(r=typeof e)?t:"number"===r?(e=[e,e,e,e],n):n,o},o.round=function(e){return arguments.length?(u=e?Math.round:Number,o):u!=Number},o.sticky=function(e){return arguments.length?(p=e,a=null,o):p},o.ratio=function(e){return arguments.length?(d=e,o):d},o.mode=function(e){return arguments.length?(h=e+"",o):h},Xi(o,s)},Wa.random={normal:function(e,t){var n=arguments.length;return 2>n&&(t=1),1>n&&(e=0),function(){var n,r,i;do n=2*Math.random()-1,r=2*Math.random()-1,i=n*n+r*r;while(!i||i>1);return e+t*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=Wa.random.normal.apply(Wa,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=Wa.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;e>n;n++)t+=Math.random();return t}}},Wa.scale={};var lc={floor:Ct,ceil:Ct};Wa.scale.linear=function(){return Fo([0,1],[0,1],hi,!1)};var fc={s:1,g:1,p:1,r:1,e:1};Wa.scale.log=function(){return Xo(Wa.scale.linear().domain([0,1]),10,!0,[1,10])};var pc=Wa.format(".0e"),hc={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};Wa.scale.pow=function(){return Yo(Wa.scale.linear(),1,[0,1])},Wa.scale.sqrt=function(){return Wa.scale.pow().exponent(.5)},Wa.scale.ordinal=function(){return Zo([],{t:"range",a:[[]]})},Wa.scale.category10=function(){return Wa.scale.ordinal().range(dc)},Wa.scale.category20=function(){return Wa.scale.ordinal().range(gc)},Wa.scale.category20b=function(){return Wa.scale.ordinal().range(mc)},Wa.scale.category20c=function(){return Wa.scale.ordinal().range(vc)};var dc=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(gt),gc=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(gt),mc=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(gt),vc=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(gt);Wa.scale.quantile=function(){return Jo([],[])},Wa.scale.quantize=function(){return Go(0,1,[0,1])},Wa.scale.threshold=function(){return Ko([.5],[0,1])},Wa.scale.identity=function(){return ea([0,1])},Wa.svg={},Wa.svg.arc=function(){function e(){var e=t.apply(this,arguments),o=n.apply(this,arguments),a=r.apply(this,arguments)+yc,s=i.apply(this,arguments)+yc,u=(a>s&&(u=a,a=s,s=u),s-a),c=Cs>u?"0":"1",l=Math.cos(a),f=Math.sin(a),p=Math.cos(s),h=Math.sin(s);return u>=xc?e?"M0,"+o+"A"+o+","+o+" 0 1,1 0,"+-o+"A"+o+","+o+" 0 1,1 0,"+o+"M0,"+e+"A"+e+","+e+" 0 1,0 0,"+-e+"A"+e+","+e+" 0 1,0 0,"+e+"Z":"M0,"+o+"A"+o+","+o+" 0 1,1 0,"+-o+"A"+o+","+o+" 0 1,1 0,"+o+"Z":e?"M"+o*l+","+o*f+"A"+o+","+o+" 0 "+c+",1 "+o*p+","+o*h+"L"+e*p+","+e*h+"A"+e+","+e+" 0 "+c+",0 "+e*l+","+e*f+"Z":"M"+o*l+","+o*f+"A"+o+","+o+" 0 "+c+",1 "+o*p+","+o*h+"L0,0"+"Z"}var t=ta,n=na,r=ra,i=ia;return e.innerRadius=function(n){return arguments.length?(t=wt(n),e):t},e.outerRadius=function(t){return arguments.length?(n=wt(t),e):n},e.startAngle=function(t){return arguments.length?(r=wt(t),e):r},e.endAngle=function(t){return arguments.length?(i=wt(t),e):i},e.centroid=function(){var e=(t.apply(this,arguments)+n.apply(this,arguments))/2,o=(r.apply(this,arguments)+i.apply(this,arguments))/2+yc;return[Math.cos(o)*e,Math.sin(o)*e]},e};var yc=-ks,xc=Ss-Ts;Wa.svg.line=function(){return oa(Ct)};var bc=Wa.map({linear:aa,"linear-closed":sa,step:ua,"step-before":ca,"step-after":la,basis:ma,"basis-open":va,"basis-closed":ya,bundle:xa,cardinal:ha,"cardinal-open":fa,"cardinal-closed":pa,monotone:ka});bc.forEach(function(e,t){t.key=e,t.closed=/-closed$/.test(e)});var $c=[0,2/3,1/3,0],wc=[0,1/3,2/3,0],Cc=[0,1/6,2/3,1/6];Wa.svg.line.radial=function(){var e=oa(Ta);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},ca.reverse=la,la.reverse=ca,Wa.svg.area=function(){return Ea(Ct)},Wa.svg.area.radial=function(){var e=Ea(Ta);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},Wa.svg.chord=function(){function e(e,s){var u=t(this,o,e,s),c=t(this,a,e,s);return"M"+u.p0+r(u.r,u.p1,u.a1-u.a0)+(n(u,c)?i(u.r,u.p1,u.r,u.p0):i(u.r,u.p1,c.r,c.p0)+r(c.r,c.p1,c.a1-c.a0)+i(c.r,c.p1,u.r,u.p0))+"Z"}function t(e,t,n,r){var i=t.call(e,n,r),o=s.call(e,i,r),a=u.call(e,i,r)+yc,l=c.call(e,i,r)+yc;return{r:o,a0:a,a1:l,p0:[o*Math.cos(a),o*Math.sin(a)],p1:[o*Math.cos(l),o*Math.sin(l)]}}function n(e,t){return e.a0==t.a0&&e.a1==t.a1}function r(e,t,n){return"A"+e+","+e+" 0 "+ +(n>Cs)+",1 "+t}function i(e,t,n,r){return"Q 0,0 "+r}var o=dr,a=gr,s=Ma,u=ra,c=ia;return e.radius=function(t){return arguments.length?(s=wt(t),e):s},e.source=function(t){return arguments.length?(o=wt(t),e):o},e.target=function(t){return arguments.length?(a=wt(t),e):a},e.startAngle=function(t){return arguments.length?(u=wt(t),e):u},e.endAngle=function(t){return arguments.length?(c=wt(t),e):c},e},Wa.svg.diagonal=function(){function e(e,i){var o=t.call(this,e,i),a=n.call(this,e,i),s=(o.y+a.y)/2,u=[o,{x:o.x,y:s},{x:a.x,y:s},a];return u=u.map(r),"M"+u[0]+"C"+u[1]+" "+u[2]+" "+u[3]}var t=dr,n=gr,r=Aa;return e.source=function(n){return arguments.length?(t=wt(n),e):t},e.target=function(t){return arguments.length?(n=wt(t),e):n},e.projection=function(t){return arguments.length?(r=t,e):r},e},Wa.svg.diagonal.radial=function(){var e=Wa.svg.diagonal(),t=Aa,n=e.projection;return e.projection=function(e){return arguments.length?n(Na(t=e)):t},e},Wa.svg.symbol=function(){function e(e,r){return(Sc.get(t.call(this,e,r))||ja)(n.call(this,e,r))}var t=_a,n=Da;return e.type=function(n){return arguments.length?(t=wt(n),e):t},e.size=function(t){return arguments.length?(n=wt(t),e):n},e};var Sc=Wa.map({circle:ja,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Mc)),n=t*Mc;return"M0,"+-t+"L"+n+",0"+" 0,"+t+" "+-n+",0"+"Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Ec),n=t*Ec/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Ec),n=t*Ec/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});Wa.svg.symbolTypes=Sc.keys();var kc,Tc,Ec=Math.sqrt(3),Mc=Math.tan(30*Ms),Ac=[],Nc=0;Ac.call=gs.call,Ac.empty=gs.empty,Ac.node=gs.node,Ac.size=gs.size,Wa.transition=function(e){return arguments.length?kc?e.transition():e:ys.transition()},Wa.transition.prototype=Ac,Ac.select=function(e){var t,n,r,i=this.id,o=[];e=w(e);for(var a=-1,s=this.length;++a<s;){o.push(t=[]);for(var u=this[a],c=-1,l=u.length;++c<l;)(r=u[c])&&(n=e.call(r,r.__data__,c,a))?("__data__"in r&&(n.__data__=r.__data__),La(n,c,i,r.__transition__[i]),t.push(n)):t.push(null)}return Oa(o,i)},Ac.selectAll=function(e){var t,n,r,i,o,a=this.id,s=[];e=C(e);for(var u=-1,c=this.length;++u<c;)for(var l=this[u],f=-1,p=l.length;++f<p;)if(r=l[f]){o=r.__transition__[a],n=e.call(r,r.__data__,f,u),s.push(t=[]);for(var h=-1,d=n.length;++h<d;)(i=n[h])&&La(i,h,a,o),t.push(i)}return Oa(s,a)},Ac.filter=function(e){var t,n,r,i=[];"function"!=typeof e&&(e=O(e));for(var o=0,a=this.length;a>o;o++){i.push(t=[]);for(var n=this[o],s=0,u=n.length;u>s;s++)(r=n[s])&&e.call(r,r.__data__,s,o)&&t.push(r)}return Oa(i,this.id)},Ac.tween=function(e,t){var n=this.id;return arguments.length<2?this.node().__transition__[n].tween.get(e):q(this,null==t?function(t){t.__transition__[n].tween.remove(e)}:function(r){r.__transition__[n].tween.set(e,t)})},Ac.attr=function(e,t){function n(){this.removeAttribute(s)}function r(){this.removeAttributeNS(s.space,s.local)}function i(e){return null==e?n:(e+="",function(){var t,n=this.getAttribute(s);return n!==e&&(t=a(n,e),function(e){this.setAttribute(s,t(e))})})}function o(e){return null==e?r:(e+="",function(){var t,n=this.getAttributeNS(s.space,s.local);return n!==e&&(t=a(n,e),function(e){this.setAttributeNS(s.space,s.local,t(e))})})}if(arguments.length<2){for(t in e)this.attr(t,e[t]);return this}var a="transform"==e?qi:hi,s=Wa.ns.qualify(e);return Pa(this,"attr."+e,t,s.local?o:i)},Ac.attrTween=function(e,t){function n(e,n){var r=t.call(this,e,n,this.getAttribute(i));return r&&function(e){this.setAttribute(i,r(e))}}function r(e,n){var r=t.call(this,e,n,this.getAttributeNS(i.space,i.local));return r&&function(e){this.setAttributeNS(i.space,i.local,r(e))}}var i=Wa.ns.qualify(e);return this.tween("attr."+e,i.local?r:n)},Ac.style=function(e,t,n){function r(){this.style.removeProperty(e)}function i(t){return null==t?r:(t+="",function(){var r,i=Za.getComputedStyle(this,null).getPropertyValue(e);return i!==t&&(r=hi(i,t),function(t){this.style.setProperty(e,r(t),n)})})}var o=arguments.length;if(3>o){if("string"!=typeof e){2>o&&(t="");for(n in e)this.style(n,e[n],t);return this}n=""}return Pa(this,"style."+e,t,i)},Ac.styleTween=function(e,t,n){function r(r,i){var o=t.call(this,r,i,Za.getComputedStyle(this,null).getPropertyValue(e));return o&&function(t){this.style.setProperty(e,o(t),n)}}return arguments.length<3&&(n=""),this.tween("style."+e,r)},Ac.text=function(e){return Pa(this,"text",e,qa)},Ac.remove=function(){return this.each("end.transition",function(){var e;this.__transition__.count<2&&(e=this.parentNode)&&e.removeChild(this)})},Ac.ease=function(e){var t=this.id;return arguments.length<1?this.node().__transition__[t].ease:("function"!=typeof e&&(e=Wa.ease.apply(Wa,arguments)),q(this,function(n){n.__transition__[t].ease=e}))},Ac.delay=function(e){var t=this.id;return arguments.length<1?this.node().__transition__[t].delay:q(this,"function"==typeof e?function(n,r,i){n.__transition__[t].delay=+e.call(n,n.__data__,r,i)}:(e=+e,function(n){n.__transition__[t].delay=e}))},Ac.duration=function(e){var t=this.id;return arguments.length<1?this.node().__transition__[t].duration:q(this,"function"==typeof e?function(n,r,i){n.__transition__[t].duration=Math.max(1,e.call(n,n.__data__,r,i))}:(e=Math.max(1,e),function(n){n.__transition__[t].duration=e}))},Ac.each=function(e,t){var n=this.id;if(arguments.length<2){var r=Tc,i=kc;kc=n,q(this,function(t,r,i){Tc=t.__transition__[n],e.call(t,t.__data__,r,i)}),Tc=r,kc=i}else q(this,function(r){var i=r.__transition__[n];(i.event||(i.event=Wa.dispatch("start","end"))).on(e,t)});return this},Ac.transition=function(){for(var e,t,n,r,i=this.id,o=++Nc,a=[],s=0,u=this.length;u>s;s++){a.push(e=[]);for(var t=this[s],c=0,l=t.length;l>c;c++)(n=t[c])&&(r=Object.create(n.__transition__[i]),r.delay+=r.duration,La(n,c,o,r)),e.push(n)}return Oa(a,o)},Wa.svg.axis=function(){function e(e){e.each(function(){var e,c=Wa.select(this),l=this.__chart__||n,f=this.__chart__=n.copy(),p=null==u?f.ticks?f.ticks.apply(f,s):f.domain():u,h=null==t?f.tickFormat?f.tickFormat.apply(f,s):Ct:t,d=c.selectAll(".tick").data(p,f),g=d.enter().insert("g",".domain").attr("class","tick").style("opacity",Ts),m=Wa.transition(d.exit()).style("opacity",Ts).remove(),v=Wa.transition(d.order()).style("opacity",1),y=Oo(f),x=c.selectAll(".domain").data([0]),b=(x.enter().append("path").attr("class","domain"),Wa.transition(x));g.append("line"),g.append("text");var $=g.select("line"),w=v.select("line"),C=d.select("text").text(h),S=g.select("text"),k=v.select("text");switch(r){case"bottom":e=Ha,$.attr("y2",i),S.attr("y",Math.max(i,0)+a),w.attr("x2",0).attr("y2",i),k.attr("x",0).attr("y",Math.max(i,0)+a),C.attr("dy",".71em").style("text-anchor","middle"),b.attr("d","M"+y[0]+","+o+"V0H"+y[1]+"V"+o);break;case"top":e=Ha,$.attr("y2",-i),S.attr("y",-(Math.max(i,0)+a)),w.attr("x2",0).attr("y2",-i),k.attr("x",0).attr("y",-(Math.max(i,0)+a)),C.attr("dy","0em").style("text-anchor","middle"),b.attr("d","M"+y[0]+","+-o+"V0H"+y[1]+"V"+-o);break;case"left":e=Fa,$.attr("x2",-i),S.attr("x",-(Math.max(i,0)+a)),w.attr("x2",-i).attr("y2",0),k.attr("x",-(Math.max(i,0)+a)).attr("y",0),C.attr("dy",".32em").style("text-anchor","end"),b.attr("d","M"+-o+","+y[0]+"H0V"+y[1]+"H"+-o);break;case"right":e=Fa,$.attr("x2",i),S.attr("x",Math.max(i,0)+a),w.attr("x2",i).attr("y2",0),k.attr("x",Math.max(i,0)+a).attr("y",0),C.attr("dy",".32em").style("text-anchor","start"),b.attr("d","M"+o+","+y[0]+"H0V"+y[1]+"H"+o)}if(f.rangeBand){var T=f,E=T.rangeBand()/2;l=f=function(e){return T(e)+E}}else l.rangeBand?l=f:m.call(e,f);g.call(e,l),v.call(e,f)})}var t,n=Wa.scale.linear(),r=Dc,i=6,o=6,a=3,s=[10],u=null;return e.scale=function(t){return arguments.length?(n=t,e):n},e.orient=function(t){return arguments.length?(r=t in _c?t+"":Dc,e):r},e.ticks=function(){return arguments.length?(s=arguments,e):s},e.tickValues=function(t){return arguments.length?(u=t,e):u},e.tickFormat=function(n){return arguments.length?(t=n,e):t},e.tickSize=function(t){var n=arguments.length;return n?(i=+t,o=+arguments[n-1],e):i},e.innerTickSize=function(t){return arguments.length?(i=+t,e):i},e.outerTickSize=function(t){return arguments.length?(o=+t,e):o},e.tickPadding=function(t){return arguments.length?(a=+t,e):a},e.tickSubdivide=function(){return arguments.length&&e},e};var Dc="bottom",_c={top:1,right:1,bottom:1,left:1};Wa.svg.brush=function(){function e(o){o.each(function(){var o=Wa.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",i).on("touchstart.brush",i),a=o.selectAll(".background").data([0]);a.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),o.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var s=o.selectAll(".resize").data(d,Ct);s.exit().remove(),s.enter().append("g").attr("class",function(e){return"resize "+e}).style("cursor",function(e){return jc[e]}).append("rect").attr("x",function(e){return/[ew]$/.test(e)?-3:null}).attr("y",function(e){return/^[ns]/.test(e)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),s.style("display",e.empty()?"none":null);var l,f=Wa.transition(o),p=Wa.transition(a);u&&(l=Oo(u),p.attr("x",l[0]).attr("width",l[1]-l[0]),n(f)),c&&(l=Oo(c),p.attr("y",l[0]).attr("height",l[1]-l[0]),r(f)),t(f)})}function t(e){e.selectAll(".resize").attr("transform",function(e){return"translate("+l[+/e$/.test(e)]+","+f[+/^s/.test(e)]+")"})}function n(e){e.select(".extent").attr("x",l[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",l[1]-l[0])}function r(e){e.select(".extent").attr("y",f[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",f[1]-f[0])}function i(){function i(){32==Wa.event.keyCode&&(M||(x=null,N[0]-=l[1],N[1]-=f[1],M=2),y())}function d(){32==Wa.event.keyCode&&2==M&&(N[0]+=l[1],N[1]+=f[1],M=0,y())}function g(){var e=Wa.mouse($),i=!1;b&&(e[0]+=b[0],e[1]+=b[1]),M||(Wa.event.altKey?(x||(x=[(l[0]+l[1])/2,(f[0]+f[1])/2]),N[0]=l[+(e[0]<x[0])],N[1]=f[+(e[1]<x[1])]):x=null),T&&m(e,u,0)&&(n(S),i=!0),E&&m(e,c,1)&&(r(S),i=!0),i&&(t(S),C({type:"brush",mode:M?"move":"resize"}))}function m(e,t,n){var r,i,s=Oo(t),u=s[0],c=s[1],d=N[n],g=n?f:l,m=g[1]-g[0];return M&&(u-=d,c-=m+d),r=(n?h:p)?Math.max(u,Math.min(c,e[n])):e[n],M?i=(r+=d)+m:(x&&(d=Math.max(u,Math.min(c,2*x[n]-r))),r>d?(i=r,r=d):i=d),g[0]!=r||g[1]!=i?(n?a=null:o=null,g[0]=r,g[1]=i,!0):void 0}function v(){g(),S.style("pointer-events","all").selectAll(".resize").style("display",e.empty()?"none":null),Wa.select("body").style("cursor",null),D.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),A(),C({type:"brushend"})}var x,b,$=this,w=Wa.select(Wa.event.target),C=s.of($,arguments),S=Wa.select($),k=w.datum(),T=!/^(n|s)$/.test(k)&&u,E=!/^(e|w)$/.test(k)&&c,M=w.classed("extent"),A=z(),N=Wa.mouse($),D=Wa.select(Za).on("keydown.brush",i).on("keyup.brush",d);if(Wa.event.changedTouches?D.on("touchmove.brush",g).on("touchend.brush",v):D.on("mousemove.brush",g).on("mouseup.brush",v),S.interrupt().selectAll("*").interrupt(),M)N[0]=l[0]-N[0],N[1]=f[0]-N[1];else if(k){var _=+/w$/.test(k),j=+/^n/.test(k);b=[l[1-_]-N[0],f[1-j]-N[1]],N[0]=l[_],N[1]=f[j]}else Wa.event.altKey&&(x=N.slice());S.style("pointer-events","none").selectAll(".resize").style("display",null),Wa.select("body").style("cursor",w.style("cursor")),C({type:"brushstart"}),g()}var o,a,s=b(e,"brushstart","brush","brushend"),u=null,c=null,l=[0,0],f=[0,0],p=!0,h=!0,d=Oc[0];return e.event=function(e){e.each(function(){var e=s.of(this,arguments),t={x:l,y:f,i:o,j:a},n=this.__chart__||t;this.__chart__=t,kc?Wa.select(this).transition().each("start.brush",function(){o=n.i,a=n.j,l=n.x,f=n.y,e({type:"brushstart"})}).tween("brush:brush",function(){var n=di(l,t.x),r=di(f,t.y);return o=a=null,function(i){l=t.x=n(i),f=t.y=r(i),e({type:"brush",mode:"resize"})}}).each("end.brush",function(){o=t.i,a=t.j,e({type:"brush",mode:"resize"}),e({type:"brushend"})}):(e({type:"brushstart"}),e({type:"brush",mode:"resize"}),e({type:"brushend"}))})},e.x=function(t){return arguments.length?(u=t,d=Oc[!u<<1|!c],e):u},e.y=function(t){return arguments.length?(c=t,d=Oc[!u<<1|!c],e):c},e.clamp=function(t){return arguments.length?(u&&c?(p=!!t[0],h=!!t[1]):u?p=!!t:c&&(h=!!t),e):u&&c?[p,h]:u?p:c?h:null},e.extent=function(t){var n,r,i,s,p;return arguments.length?(u&&(n=t[0],r=t[1],c&&(n=n[0],r=r[0]),o=[n,r],u.invert&&(n=u(n),r=u(r)),n>r&&(p=n,n=r,r=p),(n!=l[0]||r!=l[1])&&(l=[n,r])),c&&(i=t[0],s=t[1],u&&(i=i[1],s=s[1]),a=[i,s],c.invert&&(i=c(i),s=c(s)),i>s&&(p=i,i=s,s=p),(i!=f[0]||s!=f[1])&&(f=[i,s])),e):(u&&(o?(n=o[0],r=o[1]):(n=l[0],r=l[1],u.invert&&(n=u.invert(n),r=u.invert(r)),n>r&&(p=n,n=r,r=p))),c&&(a?(i=a[0],s=a[1]):(i=f[0],s=f[1],c.invert&&(i=c.invert(i),s=c.invert(s)),i>s&&(p=i,i=s,s=p))),u&&c?[[n,i],[r,s]]:u?[n,r]:c&&[i,s])
},e.clear=function(){return e.empty()||(l=[0,0],f=[0,0],o=a=null),e},e.empty=function(){return!!u&&l[0]==l[1]||!!c&&f[0]==f[1]},Wa.rebind(e,s,"on")};var jc={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Oc=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Pc=eu.format=au.timeFormat,qc=Pc.utc,Lc=qc("%Y-%m-%dT%H:%M:%S.%LZ");Pc.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Ia:Lc,Ia.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},Ia.toString=Lc.toString,eu.second=Pt(function(e){return new tu(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))},function(e){return e.getSeconds()}),eu.seconds=eu.second.range,eu.seconds.utc=eu.second.utc.range,eu.minute=Pt(function(e){return new tu(6e4*Math.floor(e/6e4))},function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))},function(e){return e.getMinutes()}),eu.minutes=eu.minute.range,eu.minutes.utc=eu.minute.utc.range,eu.hour=Pt(function(e){var t=e.getTimezoneOffset()/60;return new tu(36e5*(Math.floor(e/36e5-t)+t))},function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))},function(e){return e.getHours()}),eu.hours=eu.hour.range,eu.hours.utc=eu.hour.utc.range,eu.month=Pt(function(e){return e=eu.day(e),e.setDate(1),e},function(e,t){e.setMonth(e.getMonth()+t)},function(e){return e.getMonth()}),eu.months=eu.month.range,eu.months.utc=eu.month.utc.range;var Hc=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Fc=[[eu.second,1],[eu.second,5],[eu.second,15],[eu.second,30],[eu.minute,1],[eu.minute,5],[eu.minute,15],[eu.minute,30],[eu.hour,1],[eu.hour,3],[eu.hour,6],[eu.hour,12],[eu.day,1],[eu.day,2],[eu.week,1],[eu.month,1],[eu.month,3],[eu.year,1]],Ic=Pc.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",Sn]]),Rc={range:function(e,t,n){return Wa.range(Math.ceil(e/n)*n,+t,n).map(Ua)},floor:Ct,ceil:Ct};Fc.year=eu.year,eu.scale=function(){return Ra(Wa.scale.linear(),Fc,Ic)};var Uc=Fc.map(function(e){return[e[0].utc,e[1]]}),zc=qc.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",Sn]]);Uc.year=eu.year.utc,eu.scale.utc=function(){return Ra(Wa.scale.linear(),Uc,zc)},Wa.text=St(function(e){return e.responseText}),Wa.json=function(e,t){return kt(e,"application/json",za,t)},Wa.html=function(e,t){return kt(e,"text/html",Ba,t)},Wa.xml=St(function(e){return e.responseXML}),"function"==typeof define&&define.amd?define(Wa):"object"==typeof module&&module.exports&&(module.exports=Wa),this.d3=Wa}(),function(){var e;$(function(){return $("a.modal-help-link").on("click",function(e){return e.preventDefault(),$(this).magnificPopup({type:"ajax"}),$(this).magnificPopup("open")})}),e=angular.module("adminApp",[]),e.controller("AdminIndexCtrl",["$scope","$location","$q",function(e,t,n){return e.data=[],e.readQuery=null,e.writeSeriesName=null,e.writeValues=null,e.successMessage="OK",e.alertMessage="Error",e.authMessage="",e.queryMessage="",e.selectedPane="data",e.writeData=function(){var t;if(!e.writeSeriesName)return e.error("Time Series Name is required."),void 0;try{t=JSON.parse(e.writeValues)}catch(r){return e.alertMessage="Unable to parse JSON.",$("span#writeFailure").show().delay(1500).fadeOut(500),void 0}return n.when(parent.influxdb.writePoint(e.writeSeriesName,t)).then(function(){return e.success("200 OK")})},e.readData=function(){return e.data=[],n.when(window.parent.influxdb.query(e.readQuery)).then(function(t){var n;return n=t,n.forEach(function(t){return e.data.push({name:t.name,columns:t.columns,points:t.points,graphs:e.filteredColumns(t).map(function(n){return e.columnPoints(t,n)})})})},function(t){return e.queryMessage="ERROR: "+t.responseText,$("span#queryFailure").show().delay(2500).fadeOut(1e3)})},e.error=function(t){return e.alertMessage=t,$("span#writeFailure").show().delay(1500).fadeOut(500)},e.success=function(t){return e.successMessage=t,$("span#writeSuccess").show().delay(1500).fadeOut(500)},e.filteredColumns=function(e){var t;return t=[],e.points.length>0?e.points[0].forEach(function(n,r){return"string"==typeof n||n instanceof String?void 0:t.push(e.columns[r])}):t=e.columns,t.filter(function(e){return"time"!==e&&"sequence_number"!==e})},e.columnPoints=function(e,t){var n;return n=e.columns.indexOf(t),{name:t,points:e.points.map(function(e){return{time:new Date(e[0]),value:e[n]}})}},e.username&&e.password&&e.database?e.authenticate():void 0}]),e.directive("lineChart",[function(){return{restrict:"E",replace:!1,scope:{data:"=data",seriesName:"=seriesName"},link:function(e,t,n){var r,i,o;return o=parseInt(n.margin)||20,r=parseInt(n.barHeight)||20,i=parseInt(n.barPadding)||5,e.render=function(e,n){var r,i,a,s,u,c,l,f;if(e)return o={top:10,right:0,bottom:30,left:50},s=970-o.left-o.right,r=200-o.top-o.bottom,u=d3.time.scale().range([0,s]),l=d3.scale.linear().range([r,0]),c=d3.svg.axis().scale(u).orient("bottom"),f=d3.svg.axis().scale(l).orient("left").ticks(5).tickFormat(d3.format("1.2s")),i=d3.svg.line().x(function(e){return u(e.time)}).y(function(e){return l(e.value)}),a=d3.select(t[0]).append("svg").attr("width",s+o.left+o.right).attr("height",r+o.top+o.bottom).append("g").attr("transform","translate("+o.left+","+o.top+")"),u.domain(d3.extent(e,function(e){return e.time})),l.domain(d3.extent(e,function(e){return e.value})),a.append("g").attr("class","x axis").attr("transform","translate(0,"+r+")").call(c),a.append("g").attr("class","y axis").call(f),a.append("text").attr("class","y label").attr("text-anchor","end").attr("y",6).attr("dy",".75em").attr("transform","rotate(-90)").text(n),a.append("path").datum(e).attr("class","line").attr("d",i)},e.render(e.data,e.seriesName)}}}])}.call(this);