/*!
 * jQuery JavaScript Library v3.2.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2017-03-20T18:59Z
 */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){t=t||ne;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function r(e){var t=!!e&&"length"in e&&e.length,n=pe.type(e);return"function"!==n&&!pe.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function o(e,t,n){return pe.isFunction(t)?pe.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?pe.grep(e,function(e){return e===t!==n}):"string"!=typeof t?pe.grep(e,function(e){return se.call(t,e)>-1!==n}):Se.test(t)?pe.filter(t,e,n):(t=pe.filter(t,e),pe.grep(e,function(e){return se.call(t,e)>-1!==n&&1===e.nodeType}))}function a(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function s(e){var t={};return pe.each(e.match(Te)||[],function(e,n){t[n]=!0}),t}function u(e){return e}function l(e){throw e}function c(e,t,n,r){var i;try{e&&pe.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&pe.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function f(){ne.removeEventListener("DOMContentLoaded",f),e.removeEventListener("load",f),pe.ready()}function h(){this.expando=pe.expando+h.uid++}function d(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:je.test(e)?JSON.parse(e):e)}function p(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Le,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=d(n)}catch(e){}Ie.set(e,t,n)}else n=void 0;return n}function g(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return pe.css(e,t,"")},u=s(),l=n&&n[3]||(pe.cssNumber[t]?"":"px"),c=(pe.cssNumber[t]||"px"!==l&&+u)&&Ve.exec(pe.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do{o=o||".5",c/=o,pe.style(e,t,c+l)}while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function m(e){var t,n=e.ownerDocument,r=e.nodeName,i=qe[r];return i||(t=n.body.appendChild(n.createElement(r)),i=pe.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),qe[r]=i,i)}function v(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(i[o]=Pe.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&Ye(r)&&(i[o]=m(r))):"none"!==n&&(i[o]="none",Pe.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function y(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&i(e,t)?pe.merge([e],n):n}function $(e,t){for(var n=0,r=e.length;n<r;n++)Pe.set(e[n],"globalEval",!t||Pe.get(t[n],"globalEval"))}function b(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),h=[],d=0,p=e.length;d<p;d++)if((o=e[d])||0===o)if("object"===pe.type(o))pe.merge(h,o.nodeType?[o]:o);else if(Ge.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(Ue.exec(o)||["",""])[1].toLowerCase(),u=We[s]||We._default,a.innerHTML=u[1]+pe.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;pe.merge(h,a.childNodes),a=f.firstChild,a.textContent=""}else h.push(t.createTextNode(o));for(f.textContent="",d=0;o=h[d++];)if(r&&pe.inArray(o,r)>-1)i&&i.push(o);else if(l=pe.contains(o.ownerDocument,o),a=y(f.appendChild(o),"script"),l&&$(a),n)for(c=0;o=a[c++];)Be.test(o.type||"")&&n.push(o);return f}function w(){return!0}function x(){return!1}function _(){try{return ne.activeElement}catch(e){}}function S(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)S(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=x;else if(!i)return e;return 1===o&&(a=i,i=function(e){return pe().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=pe.guid++)),e.each(function(){pe.event.add(this,t,i,r,n)})}function k(e,t){return i(e,"table")&&i(11!==t.nodeType?t:t.firstChild,"tr")?pe(">tbody",e)[0]||e:e}function C(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function E(e){var t=nt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function M(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Pe.hasData(e)&&(o=Pe.access(e),a=Pe.set(t,o),l=o.events)){delete a.handle,a.events={};for(i in l)for(n=0,r=l[i].length;n<r;n++)pe.event.add(t,i,l[i][n])}Ie.hasData(e)&&(s=Ie.access(e),u=pe.extend({},s),Ie.set(t,u))}}function T(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ze.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function A(e,t,r,i){t=oe.apply([],t);var o,a,s,u,l,c,f=0,h=e.length,d=h-1,p=t[0],g=pe.isFunction(p);if(g||h>1&&"string"==typeof p&&!de.checkClone&&tt.test(p))return e.each(function(n){var o=e.eq(n);g&&(t[0]=p.call(this,n,o.html())),A(o,t,r,i)});if(h&&(o=b(t,e[0].ownerDocument,!1,e,i),a=o.firstChild,1===o.childNodes.length&&(o=a),a||i)){for(s=pe.map(y(o,"script"),C),u=s.length;f<h;f++)l=o,f!==d&&(l=pe.clone(l,!0,!0),u&&pe.merge(s,y(l,"script"))),r.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,pe.map(s,E),f=0;f<u;f++)l=s[f],Be.test(l.type||"")&&!Pe.access(l,"globalEval")&&pe.contains(c,l)&&(l.src?pe._evalUrl&&pe._evalUrl(l.src):n(l.textContent.replace(rt,""),c))}return e}function D(e,t,n){for(var r,i=t?pe.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||pe.cleanData(y(r)),r.parentNode&&(n&&pe.contains(r.ownerDocument,r)&&$(y(r,"script")),r.parentNode.removeChild(r));return e}function N(e,t,n){var r,i,o,a,s=e.style;return n=n||at(e),n&&(a=n.getPropertyValue(t)||n[t],""!==a||pe.contains(e.ownerDocument,e)||(a=pe.style(e,t)),!de.pixelMarginRight()&&ot.test(a)&&it.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function O(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function P(e){if(e in ht)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=ft.length;n--;)if((e=ft[n]+t)in ht)return e}function I(e){var t=pe.cssProps[e];return t||(t=pe.cssProps[e]=P(e)||e),t}function j(e,t,n){var r=Ve.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function L(e,t,n,r,i){var o,a=0;for(o=n===(r?"border":"content")?4:"width"===t?1:0;o<4;o+=2)"margin"===n&&(a+=pe.css(e,n+Fe[o],!0,i)),r?("content"===n&&(a-=pe.css(e,"padding"+Fe[o],!0,i)),"margin"!==n&&(a-=pe.css(e,"border"+Fe[o]+"Width",!0,i))):(a+=pe.css(e,"padding"+Fe[o],!0,i),"padding"!==n&&(a+=pe.css(e,"border"+Fe[o]+"Width",!0,i)));return a}function R(e,t,n){var r,i=at(e),o=N(e,t,i),a="border-box"===pe.css(e,"boxSizing",!1,i);return ot.test(o)?o:(r=a&&(de.boxSizingReliable()||o===e.style[t]),"auto"===o&&(o=e["offset"+t[0].toUpperCase()+t.slice(1)]),(o=parseFloat(o)||0)+L(e,t,n||(a?"border":"content"),r,i)+"px")}function V(e,t,n,r,i){return new V.prototype.init(e,t,n,r,i)}function F(){pt&&(!1===ne.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(F):e.setTimeout(F,pe.fx.interval),pe.fx.tick())}function Y(){return e.setTimeout(function(){dt=void 0}),dt=pe.now()}function H(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=Fe[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function q(e,t,n){for(var r,i=(B.tweeners[t]||[]).concat(B.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function z(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,h=this,d={},p=e.style,g=e.nodeType&&Ye(e),m=Pe.get(e,"fxshow");n.queue||(a=pe._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,pe.queue(e,"fx").length||a.empty.fire()})}));for(r in t)if(i=t[r],gt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}d[r]=m&&m[r]||pe.style(e,r)}if((u=!pe.isEmptyObject(t))||!pe.isEmptyObject(d)){f&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],l=m&&m.display,null==l&&(l=Pe.get(e,"display")),c=pe.css(e,"display"),"none"===c&&(l?c=l:(v([e],!0),l=e.style.display||l,c=pe.css(e,"display"),v([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===pe.css(e,"float")&&(u||(h.done(function(){p.display=l}),null==l&&(c=p.display,l="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),u=!1;for(r in d)u||(m?"hidden"in m&&(g=m.hidden):m=Pe.access(e,"fxshow",{display:l}),o&&(m.hidden=!g),g&&v([e],!0),h.done(function(){g||v([e]),Pe.remove(e,"fxshow");for(r in d)pe.style(e,r,d[r])})),u=q(g?m[r]:0,r,h),r in m||(m[r]=u.start,g&&(u.end=u.start,u.start=0))}}function U(e,t){var n,r,i,o,a;for(n in e)if(r=pe.camelCase(n),i=t[r],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=pe.cssHooks[r])&&"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 B(e,t,n){var r,i,o=0,a=B.prefilters.length,s=pe.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=dt||Y(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;a<u;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),o<1&&u?n:(u||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:pe.extend({},t),opts:pe.extend(!0,{specialEasing:{},easing:pe.easing._default},n),originalProperties:t,originalOptions:n,startTime:dt||Y(),duration:n.duration,tweens:[],createTween:function(t,n){var r=pe.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(U(c,l.opts.specialEasing);o<a;o++)if(r=B.prefilters[o].call(l,e,c,l.opts))return pe.isFunction(r.stop)&&(pe._queueHooks(l.elem,l.opts.queue).stop=pe.proxy(r.stop,r)),r;return pe.map(c,q,l),pe.isFunction(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),pe.fx.timer(pe.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}function W(e){return(e.match(Te)||[]).join(" ")}function G(e){return e.getAttribute&&e.getAttribute("class")||""}function X(e,t,n,r){var i;if(Array.isArray(t))pe.each(t,function(t,i){n||Ct.test(e)?r(e,i):X(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==pe.type(t))r(e,t);else for(i in t)X(e+"["+i+"]",t[i],n,r)}function K(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Te)||[];if(pe.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 Z(e,t,n,r){function i(s){var u;return o[s]=!0,pe.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||a||o[l]?a?!(u=l):void 0:(t.dataTypes.unshift(l),i(l),!1)}),u}var o={},a=e===Rt;return i(t.dataTypes[0])||!o["*"]&&i("*")}function J(e,t){var n,r,i=pe.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&pe.extend(!0,e,r),e}function Q(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}function ee(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if(s=i.split(" "),s[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}var te=[],ne=e.document,re=Object.getPrototypeOf,ie=te.slice,oe=te.concat,ae=te.push,se=te.indexOf,ue={},le=ue.toString,ce=ue.hasOwnProperty,fe=ce.toString,he=fe.call(Object),de={},pe=function(e,t){return new pe.fn.init(e,t)},ge=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,me=/^-ms-/,ve=/-([a-z])/g,ye=function(e,t){return t.toUpperCase()};pe.fn=pe.prototype={jquery:"3.2.1",constructor:pe,length:0,toArray:function(){return ie.call(this)},get:function(e){return null==e?ie.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=pe.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return pe.each(this,e)},map:function(e){return this.pushStack(pe.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ie.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ae,sort:te.sort,splice:te.splice},pe.extend=pe.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||pe.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],r=e[t],a!==r&&(l&&r&&(pe.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&pe.isPlainObject(n)?n:{},a[t]=pe.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},pe.extend({expando:"jQuery"+("3.2.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===pe.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=pe.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==le.call(e))&&(!(t=re(e))||"function"==typeof(n=ce.call(t,"constructor")&&t.constructor)&&fe.call(n)===he)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[le.call(e)]||"object":typeof e},globalEval:function(e){n(e)},camelCase:function(e){return e.replace(me,"ms-").replace(ve,ye)},each:function(e,t){var n,i=0;if(r(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(ge,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(r(Object(e))?pe.merge(n,"string"==typeof e?[e]:e):ae.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var i,o,a=0,s=[];if(r(e))for(i=e.length;a<i;a++)null!=(o=t(e[a],a,n))&&s.push(o);else for(a in e)null!=(o=t(e[a],a,n))&&s.push(o);return oe.apply([],s)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),pe.isFunction(e))return r=ie.call(arguments,2),i=function(){return e.apply(t||this,r.concat(ie.call(arguments)))},i.guid=e.guid=e.guid||pe.guid++,i},now:Date.now,support:de}),"function"==typeof Symbol&&(pe.fn[Symbol.iterator]=te[Symbol.iterator]),pe.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ue["[object "+t+"]"]=t.toLowerCase()});var $e=/*!
 * Sizzle CSS Selector Engine v2.3.3
 * https://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2016-08-08
 */
function(e){function t(e,t,n,r){var i,o,a,s,u,c,h,d=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!r&&((t?t.ownerDocument||t:V)!==D&&A(t),t=t||D,O)){if(11!==p&&(u=ge.exec(e)))if(i=u[1]){if(9===p){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(d&&(a=d.getElementById(i))&&L(t,a)&&a.id===i)return n.push(a),n}else{if(u[2])return K.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&b.getElementsByClassName&&t.getElementsByClassName)return K.apply(n,t.getElementsByClassName(i)),n}if(b.qsa&&!z[e+" "]&&(!P||!P.test(e))){if(1!==p)d=t,h=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace($e,be):t.setAttribute("id",s=R),c=S(e),o=c.length;o--;)c[o]="#"+s+" "+f(c[o]);h=c.join(","),d=me.test(e)&&l(t.parentNode)||t}if(h)try{return K.apply(n,d.querySelectorAll(h)),n}catch(e){}finally{s===R&&t.removeAttribute("id")}}}return C(e.replace(oe,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>w.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[R]=!0,e}function i(e){var t=D.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)w.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&xe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return r(function(t){return t=+t,r(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 l(e){return e&&void 0!==e.getElementsByTagName&&e}function c(){}function f(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function h(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=Y++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var l,c,f,h=[F,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(f=t[R]||(t[R]={}),c=f[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[o])&&l[0]===F&&l[1]===s)return h[2]=l[2];if(c[o]=h,h[2]=e(t,n,u))return!0}return!1}}function d(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 p(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function g(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function m(e,t,n,i,o,a){return i&&!i[R]&&(i=m(i)),o&&!o[R]&&(o=m(o,a)),r(function(r,a,s,u){var l,c,f,h=[],d=[],m=a.length,v=r||p(t||"*",s.nodeType?[s]:s,[]),y=!e||!r&&t?v:g(v,h,e,s,u),$=n?o||(r?e:m||i)?[]:a:y;if(n&&n(y,$,s,u),i)for(l=g($,d),i(l,[],s,u),c=l.length;c--;)(f=l[c])&&($[d[c]]=!(y[d[c]]=f));if(r){if(o||e){if(o){for(l=[],c=$.length;c--;)(f=$[c])&&l.push(y[c]=f);o(null,$=[],l,u)}for(c=$.length;c--;)(f=$[c])&&(l=o?J(r,f):h[c])>-1&&(r[l]=!(a[l]=f))}}else $=g($===a?$.splice(m,$.length):$),o?o(null,a,$,u):K.apply(a,$)})}function v(e){for(var t,n,r,i=e.length,o=w.relative[e[0].type],a=o||w.relative[" "],s=o?1:0,u=h(function(e){return e===t},a,!0),l=h(function(e){return J(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==E)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];s<i;s++)if(n=w.relative[e[s].type])c=[h(d(c),n)];else{if(n=w.filter[e[s].type].apply(null,e[s].matches),n[R]){for(r=++s;r<i&&!w.relative[e[r].type];r++);return m(s>1&&d(c),s>1&&f(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(oe,"$1"),n,s<r&&v(e.slice(s,r)),r<i&&v(e=e.slice(r)),r<i&&f(e))}c.push(n)}return d(c)}function y(e,n){var i=n.length>0,o=e.length>0,a=function(r,a,s,u,l){var c,f,h,d=0,p="0",m=r&&[],v=[],y=E,$=r||o&&w.find.TAG("*",l),b=F+=null==y?1:Math.random()||.1,x=$.length;for(l&&(E=a===D||a||l);p!==x&&null!=(c=$[p]);p++){if(o&&c){for(f=0,a||c.ownerDocument===D||(A(c),s=!O);h=e[f++];)if(h(c,a||D,s)){u.push(c);break}l&&(F=b)}i&&((c=!h&&c)&&d--,r&&m.push(c))}if(d+=p,i&&p!==d){for(f=0;h=n[f++];)h(m,v,a,s);if(r){if(d>0)for(;p--;)m[p]||v[p]||(v[p]=G.call(u));v=g(v)}K.apply(u,v),l&&!r&&v.length>0&&d+n.length>1&&t.uniqueSort(u)}return l&&(F=b,E=y),m};return i?r(a):a}var $,b,w,x,_,S,k,C,E,M,T,A,D,N,O,P,I,j,L,R="sizzle"+1*new Date,V=e.document,F=0,Y=0,H=n(),q=n(),z=n(),U=function(e,t){return e===t&&(T=!0),0},B={}.hasOwnProperty,W=[],G=W.pop,X=W.push,K=W.push,Z=W.slice,J=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Q="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ee="[\\x20\\t\\r\\n\\f]",te="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ne="\\["+ee+"*("+te+")(?:"+ee+"*([*^$|!~]?=)"+ee+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+te+"))|)"+ee+"*\\]",re=":("+te+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ne+")*)|.*)\\)|)",ie=new RegExp(ee+"+","g"),oe=new RegExp("^"+ee+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ee+"+$","g"),ae=new RegExp("^"+ee+"*,"+ee+"*"),se=new RegExp("^"+ee+"*([>+~]|"+ee+")"+ee+"*"),ue=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),le=new RegExp(re),ce=new RegExp("^"+te+"$"),fe={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te+"|[*])"),ATTR:new RegExp("^"+ne),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+Q+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,de=/^h\d$/i,pe=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,me=/[+~]/,ve=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),ye=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},$e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,be=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},we=function(){A()},xe=h(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{K.apply(W=Z.call(V.childNodes),V.childNodes),W[V.childNodes.length].nodeType}catch(e){K={apply:W.length?function(e,t){X.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}b=t.support={},_=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},A=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:V;return r!==D&&9===r.nodeType&&r.documentElement?(D=r,N=D.documentElement,O=!_(D),V!==D&&(n=D.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",we,!1):n.attachEvent&&n.attachEvent("onunload",we)),b.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=i(function(e){return e.appendChild(D.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=pe.test(D.getElementsByClassName),b.getById=i(function(e){return N.appendChild(e).id=R,!D.getElementsByName||!D.getElementsByName(R).length}),b.getById?(w.filter.ID=function(e){var t=e.replace(ve,ye);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&O){var n=t.getElementById(e);return n?[n]:[]}}):(w.filter.ID=function(e){var t=e.replace(ve,ye);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&O){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=b.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):b.qsa?t.querySelectorAll(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},w.find.CLASS=b.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&O)return t.getElementsByClassName(e)},I=[],P=[],(b.qsa=pe.test(D.querySelectorAll))&&(i(function(e){N.appendChild(e).innerHTML="<a id='"+R+"'></a><select id='"+R+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&P.push("[*^$]="+ee+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||P.push("\\["+ee+"*(?:value|"+Q+")"),e.querySelectorAll("[id~="+R+"-]").length||P.push("~="),e.querySelectorAll(":checked").length||P.push(":checked"),e.querySelectorAll("a#"+R+"+*").length||P.push(".#.+[+~]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=D.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&P.push("name"+ee+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&P.push(":enabled",":disabled"),N.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&P.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),P.push(",.*:")})),(b.matchesSelector=pe.test(j=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&i(function(e){b.disconnectedMatch=j.call(e,"*"),j.call(e,"[s!='']:x"),I.push("!=",re)}),P=P.length&&new RegExp(P.join("|")),I=I.length&&new RegExp(I.join("|")),t=pe.test(N.compareDocumentPosition),L=t||pe.test(N.contains)?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},U=t?function(e,t){if(e===t)return T=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!b.sortDetached&&t.compareDocumentPosition(e)===n?e===D||e.ownerDocument===V&&L(V,e)?-1:t===D||t.ownerDocument===V&&L(V,t)?1:M?J(M,e)-J(M,t):0:4&n?-1:1)}:function(e,t){if(e===t)return T=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!i||!o)return e===D?-1:t===D?1:i?-1:o?1:M?J(M,e)-J(M,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===V?-1:u[r]===V?1:0},D):D},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==D&&A(e),n=n.replace(ue,"='$1']"),b.matchesSelector&&O&&!z[n+" "]&&(!I||!I.test(n))&&(!P||!P.test(n)))try{var r=j.call(e,n);if(r||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,D,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==D&&A(e),L(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==D&&A(e);var n=w.attrHandle[t.toLowerCase()],r=n&&B.call(w.attrHandle,t.toLowerCase())?n(e,t,!O):void 0;return void 0!==r?r:b.attributes||!O?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace($e,be)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(T=!b.detectDuplicates,M=!b.sortStable&&e.slice(0),e.sort(U),T){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return M=null,e},x=t.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+=x(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=x(t);return n},w=t.selectors={cacheLength:50,createPseudo:r,match:fe,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(ve,ye),e[3]=(e[3]||e[4]||e[5]||"").replace(ve,ye),"~="===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]||t.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]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&le.test(n)&&(t=S(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ve,ye).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=H[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&H(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ie," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},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 l,c,f,h,d,p,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!u&&!s,$=!1;if(m){if(o){for(;g;){for(h=t;h=h[g];)if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&y){for(h=m,f=h[R]||(h[R]={}),c=f[h.uniqueID]||(f[h.uniqueID]={}),l=c[e]||[],d=l[0]===F&&l[1],$=d&&l[2],h=d&&m.childNodes[d];h=++d&&h&&h[g]||($=d=0)||p.pop();)if(1===h.nodeType&&++$&&h===t){c[e]=[F,d,$];break}}else if(y&&(h=t,f=h[R]||(h[R]={}),c=f[h.uniqueID]||(f[h.uniqueID]={}),l=c[e]||[],d=l[0]===F&&l[1],$=d),!1===$)for(;(h=++d&&h&&h[g]||($=d=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++$||(y&&(f=h[R]||(h[R]={}),c=f[h.uniqueID]||(f[h.uniqueID]={}),c[e]=[F,$]),h!==t)););return($-=i)===r||$%r==0&&$/r>=0}}},PSEUDO:function(e,n){var i,o=w.pseudos[e]||w.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[R]?o(n):o.length>1?(i=[e,e,"",n],w.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=J(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(oe,"$1"));return i[R]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(ve,ye),function(t){return(t.textContent||t.innerText||x(t)).indexOf(e)>-1}}),lang:r(function(e){return ce.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ve,ye).toLowerCase(),function(t){var n;do{if(n=O?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===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===N},focus:function(e){return e===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:s(!1),disabled:s(!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,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return de.test(e.nodeName)},input:function(e){return he.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"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:u(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},w.pseudos.nth=w.pseudos.eq;for($ in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[$]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}($);for($ in{submit:!0,reset:!0})w.pseudos[$]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}($);return c.prototype=w.filters=w.pseudos,w.setFilters=new c,S=t.tokenize=function(e,n){var r,i,o,a,s,u,l,c=q[e+" "];if(c)return n?0:c.slice(0);for(s=e,u=[],l=w.preFilter;s;){r&&!(i=ae.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=se.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(oe," ")}),s=s.slice(r.length));for(a in w.filter)!(i=fe[a].exec(s))||l[a]&&!(i=l[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):q(e,u).slice(0)},k=t.compile=function(e,t){var n,r=[],i=[],o=z[e+" "];if(!o){for(t||(t=S(e)),n=t.length;n--;)o=v(t[n]),o[R]?r.push(o):i.push(o);o=z(e,y(i,r)),o.selector=e}return o},C=t.select=function(e,t,n,r){var i,o,a,s,u,c="function"==typeof e&&e,h=!r&&S(e=c.selector||e);if(n=n||[],1===h.length){if(o=h[0]=h[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&9===t.nodeType&&O&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(ve,ye),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=fe.needsContext.test(e)?0:o.length;i--&&(a=o[i],!w.relative[s=a.type]);)if((u=w.find[s])&&(r=u(a.matches[0].replace(ve,ye),me.test(o[0].type)&&l(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&f(o)))return K.apply(n,r),n;break}}return(c||k(e,h))(r,t,!O,n,!t||me.test(e)&&l(t.parentNode)||t),n},b.sortStable=R.split("").sort(U).join("")===R,b.detectDuplicates=!!T,A(),b.sortDetached=i(function(e){return 1&e.compareDocumentPosition(D.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(Q,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);pe.find=$e,pe.expr=$e.selectors,pe.expr[":"]=pe.expr.pseudos,pe.uniqueSort=pe.unique=$e.uniqueSort,pe.text=$e.getText,pe.isXMLDoc=$e.isXML,pe.contains=$e.contains,pe.escapeSelector=$e.escape;var be=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&pe(e).is(n))break;r.push(e)}return r},we=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},xe=pe.expr.match.needsContext,_e=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Se=/^.[^:#\[\.,]*$/;pe.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?pe.find.matchesSelector(r,e)?[r]:[]:pe.find.matches(e,pe.grep(t,function(e){return 1===e.nodeType}))},pe.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(pe(e).filter(function(){for(t=0;t<r;t++)if(pe.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)pe.find(e,i[t],n);return r>1?pe.uniqueSort(n):n},filter:function(e){return this.pushStack(o(this,e||[],!1))},not:function(e){return this.pushStack(o(this,e||[],!0))},is:function(e){return!!o(this,"string"==typeof e&&xe.test(e)?pe(e):e||[],!1).length}});var ke,Ce=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(pe.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||ke,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Ce.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof pe?t[0]:t,pe.merge(this,pe.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:ne,!0)),_e.test(r[1])&&pe.isPlainObject(t))for(r in t)pe.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=ne.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):pe.isFunction(e)?void 0!==n.ready?n.ready(e):e(pe):pe.makeArray(e,this)}).prototype=pe.fn,ke=pe(ne);var Ee=/^(?:parents|prev(?:Until|All))/,Me={children:!0,contents:!0,next:!0,prev:!0};pe.fn.extend({has:function(e){var t=pe(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(pe.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&pe(e);if(!xe.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&pe.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?pe.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(pe(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(pe.uniqueSort(pe.merge(this.get(),pe(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),pe.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return be(e,"parentNode")},parentsUntil:function(e,t,n){return be(e,"parentNode",n)},next:function(e){return a(e,"nextSibling")},prev:function(e){return a(e,"previousSibling")},nextAll:function(e){return be(e,"nextSibling")},prevAll:function(e){return be(e,"previousSibling")},nextUntil:function(e,t,n){return be(e,"nextSibling",n)},prevUntil:function(e,t,n){return be(e,"previousSibling",n)},siblings:function(e){return we((e.parentNode||{}).firstChild,e)},children:function(e){return we(e.firstChild)},contents:function(e){return i(e,"iframe")?e.contentDocument:(i(e,"template")&&(e=e.content||e),pe.merge([],e.childNodes))}},function(e,t){pe.fn[e]=function(n,r){var i=pe.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=pe.filter(r,i)),this.length>1&&(Me[e]||pe.uniqueSort(i),Ee.test(e)&&i.reverse()),this.pushStack(i)}});var Te=/[^\x20\t\r\n\f]+/g;pe.Callbacks=function(e){e="string"==typeof e?s(e):pe.extend({},e);var t,n,r,i,o=[],a=[],u=-1,l=function(){for(i=i||e.once,r=t=!0;a.length;u=-1)for(n=a.shift();++u<o.length;)!1===o[u].apply(n[0],n[1])&&e.stopOnFalse&&(u=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(u=o.length-1,a.push(n)),function t(n){pe.each(n,function(n,r){pe.isFunction(r)?e.unique&&c.has(r)||o.push(r):r&&r.length&&"string"!==pe.type(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return pe.each(arguments,function(e,t){for(var n;(n=pe.inArray(t,o,n))>-1;)o.splice(n,1),n<=u&&u--}),this},has:function(e){return e?pe.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},pe.extend({Deferred:function(t){var n=[["notify","progress",pe.Callbacks("memory"),pe.Callbacks("memory"),2],["resolve","done",pe.Callbacks("once memory"),pe.Callbacks("once memory"),0,"resolved"],["reject","fail",pe.Callbacks("once memory"),pe.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return pe.Deferred(function(t){pe.each(n,function(n,r){var i=pe.isFunction(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&pe.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var s=this,c=arguments,f=function(){var e,f;if(!(t<a)){if((e=r.apply(s,c))===n.promise())throw new TypeError("Thenable self-resolution");f=e&&("object"==typeof e||"function"==typeof e)&&e.then,pe.isFunction(f)?i?f.call(e,o(a,n,u,i),o(a,n,l,i)):(a++,f.call(e,o(a,n,u,i),o(a,n,l,i),o(a,n,u,n.notifyWith))):(r!==u&&(s=void 0,c=[e]),(i||n.resolveWith)(s,c))}},h=i?f:function(){try{f()}catch(e){pe.Deferred.exceptionHook&&pe.Deferred.exceptionHook(e,h.stackTrace),t+1>=a&&(r!==l&&(s=void 0,c=[e]),n.rejectWith(s,c))}};t?h():(pe.Deferred.getStackHook&&(h.stackTrace=pe.Deferred.getStackHook()),e.setTimeout(h))}}var a=0;return pe.Deferred(function(e){n[0][3].add(o(0,e,pe.isFunction(i)?i:u,e.notifyWith)),n[1][3].add(o(0,e,pe.isFunction(t)?t:u)),n[2][3].add(o(0,e,pe.isFunction(r)?r:l))}).promise()},promise:function(e){return null!=e?pe.extend(e,i):i}},o={};return pe.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[0][2].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=ie.call(arguments),o=pe.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?ie.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(c(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||pe.isFunction(i[n]&&i[n].then)))return o.then();for(;n--;)c(i[n],a(n),o.reject);return o.promise()}});var Ae=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;pe.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Ae.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},pe.readyException=function(t){e.setTimeout(function(){throw t})};var De=pe.Deferred();pe.fn.ready=function(e){return De.then(e).catch(function(e){pe.readyException(e)}),this},pe.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--pe.readyWait:pe.isReady)||(pe.isReady=!0,!0!==e&&--pe.readyWait>0||De.resolveWith(ne,[pe]))}}),pe.ready.then=De.then,"complete"===ne.readyState||"loading"!==ne.readyState&&!ne.documentElement.doScroll?e.setTimeout(pe.ready):(ne.addEventListener("DOMContentLoaded",f),e.addEventListener("load",f));var Ne=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===pe.type(n)){i=!0;for(s in n)Ne(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,pe.isFunction(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(pe(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},Oe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};h.uid=1,h.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Oe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[pe.camelCase(t)]=n;else for(r in t)i[pe.camelCase(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][pe.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){Array.isArray(t)?t=t.map(pe.camelCase):(t=pe.camelCase(t),t=t in r?[t]:t.match(Te)||[]),n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||pe.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!pe.isEmptyObject(t)}};var Pe=new h,Ie=new h,je=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Le=/[A-Z]/g;pe.extend({hasData:function(e){return Ie.hasData(e)||Pe.hasData(e)},data:function(e,t,n){return Ie.access(e,t,n)},removeData:function(e,t){Ie.remove(e,t)},_data:function(e,t,n){return Pe.access(e,t,n)},_removeData:function(e,t){Pe.remove(e,t)}}),pe.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Ie.get(o),1===o.nodeType&&!Pe.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=pe.camelCase(r.slice(5)),p(o,r,i[r])));Pe.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Ie.set(this,e)}):Ne(this,function(t){var n;if(o&&void 0===t){if(void 0!==(n=Ie.get(o,e)))return n;if(void 0!==(n=p(o,e)))return n}else this.each(function(){Ie.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Ie.remove(this,e)})}}),pe.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Pe.get(e,t),n&&(!r||Array.isArray(n)?r=Pe.access(e,t,pe.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=pe.queue(e,t),r=n.length,i=n.shift(),o=pe._queueHooks(e,t),a=function(){pe.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 Pe.get(e,n)||Pe.access(e,n,{empty:pe.Callbacks("once memory").add(function(){Pe.remove(e,[t+"queue",n])})})}}),pe.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?pe.queue(this[0],e):void 0===t?this:this.each(function(){var n=pe.queue(this,e,t);pe._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&pe.dequeue(this,e)})},dequeue:function(e){return this.each(function(){pe.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=pe.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Pe.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var Re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ve=new RegExp("^(?:([+-])=|)("+Re+")([a-z%]*)$","i"),Fe=["Top","Right","Bottom","Left"],Ye=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&pe.contains(e.ownerDocument,e)&&"none"===pe.css(e,"display")},He=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},qe={};pe.fn.extend({show:function(){return v(this,!0)},hide:function(){return v(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ye(this)?pe(this).show():pe(this).hide()})}});var ze=/^(?:checkbox|radio)$/i,Ue=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Be=/^$|\/(?:java|ecma)script/i,We={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,"",""]};We.optgroup=We.option,We.tbody=We.tfoot=We.colgroup=We.caption=We.thead,We.th=We.td;var Ge=/<|&#?\w+;/;!function(){
var e=ne.createDocumentFragment(),t=e.appendChild(ne.createElement("div")),n=ne.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),de.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",de.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Xe=ne.documentElement,Ke=/^key/,Ze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Je=/^([^.]*)(?:\.(.+)|)/;pe.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,h,d,p,g,m=Pe.get(e);if(m)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&pe.find.matchesSelector(Xe,i),n.guid||(n.guid=pe.guid++),(u=m.events)||(u=m.events={}),(a=m.handle)||(a=m.handle=function(t){return void 0!==pe&&pe.event.triggered!==t.type?pe.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Te)||[""],l=t.length;l--;)s=Je.exec(t[l])||[],d=g=s[1],p=(s[2]||"").split(".").sort(),d&&(f=pe.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=pe.event.special[d]||{},c=pe.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&pe.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=u[d])||(h=u[d]=[],h.delegateCount=0,f.setup&&!1!==f.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),pe.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,h,d,p,g,m=Pe.hasData(e)&&Pe.get(e);if(m&&(u=m.events)){for(t=(t||"").match(Te)||[""],l=t.length;l--;)if(s=Je.exec(t[l])||[],d=g=s[1],p=(s[2]||"").split(".").sort(),d){for(f=pe.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,h=u[d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(e,c));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(e,p,m.handle)||pe.removeEvent(e,d,m.handle),delete u[d])}else for(d in u)pe.event.remove(e,d+t[l],n,r,!0);pe.isEmptyObject(u)&&Pe.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=pe.event.fix(e),u=new Array(arguments.length),l=(Pe.get(this,"events")||{})[s.type]||[],c=pe.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=pe.event.handlers.call(this,s,l),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((pe.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)r=t[n],i=r.selector+" ",void 0===a[i]&&(a[i]=r.needsContext?pe(i,this).index(l)>-1:pe.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(pe.Event.prototype,e,{enumerable:!0,configurable:!0,get:pe.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[pe.expando]?e:new pe.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==_()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===_()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&i(this,"input"))return this.click(),!1},_default:function(e){return i(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},pe.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},pe.Event=function(e,t){if(!(this instanceof pe.Event))return new pe.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?w:x,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&pe.extend(this,t),this.timeStamp=e&&e.timeStamp||pe.now(),this[pe.expando]=!0},pe.Event.prototype={constructor:pe.Event,isDefaultPrevented:x,isPropagationStopped:x,isImmediatePropagationStopped:x,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=w,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=w,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=w,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},pe.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Ke.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ze.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},pe.event.addProp),pe.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){pe.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||pe.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),pe.fn.extend({on:function(e,t,n,r){return S(this,e,t,n,r)},one:function(e,t,n,r){return S(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,pe(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=x),this.each(function(){pe.event.remove(this,e,n,t)})}});var Qe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,et=/<script|<style|<link/i,tt=/checked\s*(?:[^=]|=\s*.checked.)/i,nt=/^true\/(.*)/,rt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;pe.extend({htmlPrefilter:function(e){return e.replace(Qe,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=pe.contains(e.ownerDocument,e);if(!(de.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||pe.isXMLDoc(e)))for(a=y(s),o=y(e),r=0,i=o.length;r<i;r++)T(o[r],a[r]);if(t)if(n)for(o=o||y(e),a=a||y(s),r=0,i=o.length;r<i;r++)M(o[r],a[r]);else M(e,s);return a=y(s,"script"),a.length>0&&$(a,!u&&y(e,"script")),s},cleanData:function(e){for(var t,n,r,i=pe.event.special,o=0;void 0!==(n=e[o]);o++)if(Oe(n)){if(t=n[Pe.expando]){if(t.events)for(r in t.events)i[r]?pe.event.remove(n,r):pe.removeEvent(n,r,t.handle);n[Pe.expando]=void 0}n[Ie.expando]&&(n[Ie.expando]=void 0)}}}),pe.fn.extend({detach:function(e){return D(this,e,!0)},remove:function(e){return D(this,e)},text:function(e){return Ne(this,function(e){return void 0===e?pe.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return A(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){k(this,e).appendChild(e)}})},prepend:function(){return A(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=k(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return A(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return A(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(pe.cleanData(y(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return pe.clone(this,e,t)})},html:function(e){return Ne(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!et.test(e)&&!We[(Ue.exec(e)||["",""])[1].toLowerCase()]){e=pe.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(pe.cleanData(y(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return A(this,arguments,function(t){var n=this.parentNode;pe.inArray(this,e)<0&&(pe.cleanData(y(this)),n&&n.replaceChild(t,this))},e)}}),pe.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){pe.fn[e]=function(e){for(var n,r=[],i=pe(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),pe(i[a])[t](n),ae.apply(r,n.get());return this.pushStack(r)}});var it=/^margin/,ot=new RegExp("^("+Re+")(?!px)[a-z%]+$","i"),at=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};!function(){function t(){if(s){s.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",Xe.appendChild(a);var t=e.getComputedStyle(s);n="1%"!==t.top,o="2px"===t.marginLeft,r="4px"===t.width,s.style.marginRight="50%",i="4px"===t.marginRight,Xe.removeChild(a),s=null}}var n,r,i,o,a=ne.createElement("div"),s=ne.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",de.clearCloneStyle="content-box"===s.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(s),pe.extend(de,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),r},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),o}}))}();var st=/^(none|table(?!-c[ea]).+)/,ut=/^--/,lt={position:"absolute",visibility:"hidden",display:"block"},ct={letterSpacing:"0",fontWeight:"400"},ft=["Webkit","Moz","ms"],ht=ne.createElement("div").style;pe.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=N(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=pe.camelCase(t),u=ut.test(t),l=e.style;if(u||(t=I(s)),a=pe.cssHooks[t]||pe.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];o=typeof n,"string"===o&&(i=Ve.exec(n))&&i[1]&&(n=g(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(pe.cssNumber[s]?"":"px")),de.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=pe.camelCase(t);return ut.test(t)||(t=I(s)),a=pe.cssHooks[t]||pe.cssHooks[s],a&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=N(e,t,r)),"normal"===i&&t in ct&&(i=ct[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),pe.each(["height","width"],function(e,t){pe.cssHooks[t]={get:function(e,n,r){if(n)return!st.test(pe.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?R(e,t,r):He(e,lt,function(){return R(e,t,r)})},set:function(e,n,r){var i,o=r&&at(e),a=r&&L(e,t,r,"border-box"===pe.css(e,"boxSizing",!1,o),o);return a&&(i=Ve.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=pe.css(e,t)),j(e,n,a)}}}),pe.cssHooks.marginLeft=O(de.reliableMarginLeft,function(e,t){if(t)return(parseFloat(N(e,"marginLeft"))||e.getBoundingClientRect().left-He(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),pe.each({margin:"",padding:"",border:"Width"},function(e,t){pe.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+Fe[r]+t]=o[r]||o[r-2]||o[0];return i}},it.test(e)||(pe.cssHooks[e+t].set=j)}),pe.fn.extend({css:function(e,t){return Ne(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=at(e),i=t.length;a<i;a++)o[t[a]]=pe.css(e,t[a],!1,r);return o}return void 0!==n?pe.style(e,t,n):pe.css(e,t)},e,t,arguments.length>1)}}),pe.Tween=V,V.prototype={constructor:V,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||pe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(pe.cssNumber[n]?"":"px")},cur:function(){var e=V.propHooks[this.prop];return e&&e.get?e.get(this):V.propHooks._default.get(this)},run:function(e){var t,n=V.propHooks[this.prop];return this.options.duration?this.pos=t=pe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=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):V.propHooks._default.set(this),this}},V.prototype.init.prototype=V.prototype,V.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=pe.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){pe.fx.step[e.prop]?pe.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[pe.cssProps[e.prop]]&&!pe.cssHooks[e.prop]?e.elem[e.prop]=e.now:pe.style(e.elem,e.prop,e.now+e.unit)}}},V.propHooks.scrollTop=V.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},pe.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},pe.fx=V.prototype.init,pe.fx.step={};var dt,pt,gt=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;pe.Animation=pe.extend(B,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return g(n.elem,e,Ve.exec(t),n),n}]},tweener:function(e,t){pe.isFunction(e)?(t=e,e=["*"]):e=e.match(Te);for(var n,r=0,i=e.length;r<i;r++)n=e[r],B.tweeners[n]=B.tweeners[n]||[],B.tweeners[n].unshift(t)},prefilters:[z],prefilter:function(e,t){t?B.prefilters.unshift(e):B.prefilters.push(e)}}),pe.speed=function(e,t,n){var r=e&&"object"==typeof e?pe.extend({},e):{complete:n||!n&&t||pe.isFunction(e)&&e,duration:e,easing:n&&t||t&&!pe.isFunction(t)&&t};return pe.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in pe.fx.speeds?r.duration=pe.fx.speeds[r.duration]:r.duration=pe.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){pe.isFunction(r.old)&&r.old.call(this),r.queue&&pe.dequeue(this,r.queue)},r},pe.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Ye).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=pe.isEmptyObject(e),o=pe.speed(t,n,r),a=function(){var t=B(this,pe.extend({},e),o);(i||Pe.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=pe.timers,a=Pe.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&mt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||pe.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Pe.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=pe.timers,a=r?r.length:0;for(n.finish=!0,pe.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;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),pe.each(["toggle","show","hide"],function(e,t){var n=pe.fn[t];pe.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(H(t,!0),e,r,i)}}),pe.each({slideDown:H("show"),slideUp:H("hide"),slideToggle:H("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){pe.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),pe.timers=[],pe.fx.tick=function(){var e,t=0,n=pe.timers;for(dt=pe.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||pe.fx.stop(),dt=void 0},pe.fx.timer=function(e){pe.timers.push(e),pe.fx.start()},pe.fx.interval=13,pe.fx.start=function(){pt||(pt=!0,F())},pe.fx.stop=function(){pt=null},pe.fx.speeds={slow:600,fast:200,_default:400},pe.fn.delay=function(t,n){return t=pe.fx?pe.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=ne.createElement("input"),t=ne.createElement("select"),n=t.appendChild(ne.createElement("option"));e.type="checkbox",de.checkOn=""!==e.value,de.optSelected=n.selected,e=ne.createElement("input"),e.value="t",e.type="radio",de.radioValue="t"===e.value}();var vt,yt=pe.expr.attrHandle;pe.fn.extend({attr:function(e,t){return Ne(this,pe.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){pe.removeAttr(this,e)})}}),pe.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?pe.prop(e,t,n):(1===o&&pe.isXMLDoc(e)||(i=pe.attrHooks[t.toLowerCase()]||(pe.expr.match.bool.test(t)?vt:void 0)),void 0!==n?null===n?void pe.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=pe.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!de.radioValue&&"radio"===t&&i(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Te);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),vt={set:function(e,t,n){return!1===t?pe.removeAttr(e,n):e.setAttribute(n,n),n}},pe.each(pe.expr.match.bool.source.match(/\w+/g),function(e,t){var n=yt[t]||pe.find.attr;yt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=yt[a],yt[a]=i,i=null!=n(e,t,r)?a:null,yt[a]=o),i}});var $t=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;pe.fn.extend({prop:function(e,t){return Ne(this,pe.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[pe.propFix[e]||e]})}}),pe.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&pe.isXMLDoc(e)||(t=pe.propFix[t]||t,i=pe.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=pe.find.attr(e,"tabindex");return t?parseInt(t,10):$t.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),de.optSelected||(pe.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),pe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){pe.propFix[this.toLowerCase()]=this}),pe.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(pe.isFunction(e))return this.each(function(t){pe(this).addClass(e.call(this,t,G(this)))});if("string"==typeof e&&e)for(t=e.match(Te)||[];n=this[u++];)if(i=G(n),r=1===n.nodeType&&" "+W(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=W(r),i!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(pe.isFunction(e))return this.each(function(t){pe(this).removeClass(e.call(this,t,G(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Te)||[];n=this[u++];)if(i=G(n),r=1===n.nodeType&&" "+W(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=W(r),i!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):pe.isFunction(e)?this.each(function(n){pe(this).toggleClass(e.call(this,n,G(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=pe(this),o=e.match(Te)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=G(this),t&&Pe.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Pe.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+W(G(n))+" ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g;pe.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=pe.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,pe(this).val()):e,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=pe.map(i,function(e){return null==e?"":e+""})),(t=pe.valHooks[this.type]||pe.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=pe.valHooks[i.type]||pe.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(wt,""):null==n?"":n)}}}),pe.extend({valHooks:{option:{get:function(e){var t=pe.find.attr(e,"value");return null!=t?t:W(pe.text(e))}},select:{get:function(e){var t,n,r,o=e.options,a=e.selectedIndex,s="select-one"===e.type,u=s?null:[],l=s?a+1:o.length;for(r=a<0?l:s?a:0;r<l;r++)if(n=o[r],(n.selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!i(n.parentNode,"optgroup"))){if(t=pe(n).val(),s)return t;u.push(t)}return u},set:function(e,t){for(var n,r,i=e.options,o=pe.makeArray(t),a=i.length;a--;)r=i[a],(r.selected=pe.inArray(pe.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),pe.each(["radio","checkbox"],function(){pe.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=pe.inArray(pe(e).val(),t)>-1}},de.checkOn||(pe.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var xt=/^(?:focusinfocus|focusoutblur)$/;pe.extend(pe.event,{trigger:function(t,n,r,i){var o,a,s,u,l,c,f,h=[r||ne],d=ce.call(t,"type")?t.type:t,p=ce.call(t,"namespace")?t.namespace.split("."):[];if(a=s=r=r||ne,3!==r.nodeType&&8!==r.nodeType&&!xt.test(d+pe.event.triggered)&&(d.indexOf(".")>-1&&(p=d.split("."),d=p.shift(),p.sort()),l=d.indexOf(":")<0&&"on"+d,t=t[pe.expando]?t:new pe.Event(d,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:pe.makeArray(n,[t]),f=pe.event.special[d]||{},i||!f.trigger||!1!==f.trigger.apply(r,n))){if(!i&&!f.noBubble&&!pe.isWindow(r)){for(u=f.delegateType||d,xt.test(u+d)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(r.ownerDocument||ne)&&h.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=h[o++])&&!t.isPropagationStopped();)t.type=o>1?u:f.bindType||d,c=(Pe.get(a,"events")||{})[t.type]&&Pe.get(a,"handle"),c&&c.apply(a,n),(c=l&&a[l])&&c.apply&&Oe(a)&&(t.result=c.apply(a,n),!1===t.result&&t.preventDefault());return t.type=d,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(h.pop(),n)||!Oe(r)||l&&pe.isFunction(r[d])&&!pe.isWindow(r)&&(s=r[l],s&&(r[l]=null),pe.event.triggered=d,r[d](),pe.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(e,t,n){var r=pe.extend(new pe.Event,n,{type:e,isSimulated:!0});pe.event.trigger(r,null,t)}}),pe.fn.extend({trigger:function(e,t){return this.each(function(){pe.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return pe.event.trigger(e,t,n,!0)}}),pe.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){pe.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),pe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),de.focusin="onfocusin"in e,de.focusin||pe.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){pe.event.simulate(t,e.target,pe.event.fix(e))};pe.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Pe.access(r,t);i||r.addEventListener(e,n,!0),Pe.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Pe.access(r,t)-1;i?Pe.access(r,t,i):(r.removeEventListener(e,n,!0),Pe.remove(r,t))}}});var _t=e.location,St=pe.now(),kt=/\?/;pe.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||pe.error("Invalid XML: "+t),n};var Ct=/\[\]$/,Et=/\r?\n/g,Mt=/^(?:submit|button|image|reset|file)$/i,Tt=/^(?:input|select|textarea|keygen)/i;pe.param=function(e,t){var n,r=[],i=function(e,t){var n=pe.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!pe.isPlainObject(e))pe.each(e,function(){i(this.name,this.value)});else for(n in e)X(n,e[n],t,i);return r.join("&")},pe.fn.extend({serialize:function(){return pe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=pe.prop(this,"elements");return e?pe.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!pe(this).is(":disabled")&&Tt.test(this.nodeName)&&!Mt.test(e)&&(this.checked||!ze.test(e))}).map(function(e,t){var n=pe(this).val();return null==n?null:Array.isArray(n)?pe.map(n,function(e){return{name:t.name,value:e.replace(Et,"\r\n")}}):{name:t.name,value:n.replace(Et,"\r\n")}}).get()}});var At=/%20/g,Dt=/#.*$/,Nt=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,It=/^(?:GET|HEAD)$/,jt=/^\/\//,Lt={},Rt={},Vt="*/".concat("*"),Ft=ne.createElement("a");Ft.href=_t.href,pe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_t.href,type:"GET",isLocal:Pt.test(_t.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Vt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":pe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?J(J(e,pe.ajaxSettings),t):J(pe.ajaxSettings,e)},ajaxPrefilter:K(Lt),ajaxTransport:K(Rt),ajax:function(t,n){function r(t,n,r,s){var l,h,d,b,w,x=n;c||(c=!0,u&&e.clearTimeout(u),i=void 0,a=s||"",_.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(b=Q(p,_,r)),b=ee(p,b,_,l),l?(p.ifModified&&(w=_.getResponseHeader("Last-Modified"),w&&(pe.lastModified[o]=w),(w=_.getResponseHeader("etag"))&&(pe.etag[o]=w)),204===t||"HEAD"===p.type?x="nocontent":304===t?x="notmodified":(x=b.state,h=b.data,d=b.error,l=!d)):(d=x,!t&&x||(x="error",t<0&&(t=0))),_.status=t,_.statusText=(n||x)+"",l?v.resolveWith(g,[h,x,_]):v.rejectWith(g,[_,x,d]),_.statusCode($),$=void 0,f&&m.trigger(l?"ajaxSuccess":"ajaxError",[_,p,l?h:d]),y.fireWith(g,[_,x]),f&&(m.trigger("ajaxComplete",[_,p]),--pe.active||pe.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,h,d,p=pe.ajaxSetup({},n),g=p.context||p,m=p.context&&(g.nodeType||g.jquery)?pe(g):pe.event,v=pe.Deferred(),y=pe.Callbacks("once memory"),$=p.statusCode||{},b={},w={},x="canceled",_={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Ot.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)_.always(e[_.status]);else for(t in e)$[t]=[$[t],e[t]];return this},abort:function(e){var t=e||x;return i&&i.abort(t),r(0,t),this}};if(v.promise(_),p.url=((t||p.url||_t.href)+"").replace(jt,_t.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(Te)||[""],null==p.crossDomain){l=ne.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Ft.protocol+"//"+Ft.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=pe.param(p.data,p.traditional)),Z(Lt,p,n,_),c)return _;f=pe.event&&p.global,f&&0==pe.active++&&pe.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!It.test(p.type),o=p.url.replace(Dt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(At,"+")):(d=p.url.slice(o.length),p.data&&(o+=(kt.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(o=o.replace(Nt,"$1"),d=(kt.test(o)?"&":"?")+"_="+St+++d),p.url=o+d),p.ifModified&&(pe.lastModified[o]&&_.setRequestHeader("If-Modified-Since",pe.lastModified[o]),pe.etag[o]&&_.setRequestHeader("If-None-Match",pe.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&_.setRequestHeader("Content-Type",p.contentType),_.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Vt+"; q=0.01":""):p.accepts["*"]);for(h in p.headers)_.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(!1===p.beforeSend.call(g,_,p)||c))return _.abort();if(x="abort",y.add(p.complete),_.done(p.success),_.fail(p.error),i=Z(Rt,p,n,_)){if(_.readyState=1,f&&m.trigger("ajaxSend",[_,p]),c)return _;p.async&&p.timeout>0&&(u=e.setTimeout(function(){_.abort("timeout")},p.timeout));try{c=!1,i.send(b,r)}catch(e){if(c)throw e;r(-1,e)}}else r(-1,"No Transport");return _},getJSON:function(e,t,n){return pe.get(e,t,n,"json")},getScript:function(e,t){return pe.get(e,void 0,t,"script")}}),pe.each(["get","post"],function(e,t){pe[t]=function(e,n,r,i){return pe.isFunction(n)&&(i=i||r,r=n,n=void 0),pe.ajax(pe.extend({url:e,type:t,dataType:i,data:n,success:r},pe.isPlainObject(e)&&e))}}),pe._evalUrl=function(e){return pe.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},pe.fn.extend({wrapAll:function(e){var t;return this[0]&&(pe.isFunction(e)&&(e=e.call(this[0])),t=pe(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 pe.isFunction(e)?this.each(function(t){pe(this).wrapInner(e.call(this,t))}):this.each(function(){var t=pe(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=pe.isFunction(e);return this.each(function(n){pe(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){pe(this).replaceWith(this.childNodes)}),this}}),pe.expr.pseudos.hidden=function(e){return!pe.expr.pseudos.visible(e)},pe.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},pe.ajaxSettings.xhr=function(){
try{return new e.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Ht=pe.ajaxSettings.xhr();de.cors=!!Ht&&"withCredentials"in Ht,de.ajax=Ht=!!Ht,pe.ajaxTransport(function(t){var n,r;if(de.cors||Ht&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Yt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),pe.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),pe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return pe.globalEval(e),e}}}),pe.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),pe.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=pe("<script>").prop({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)}),ne.head.appendChild(t[0])},abort:function(){n&&n()}}}});var qt=[],zt=/(=)\?(?=&|$)|\?\?/;pe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=qt.pop()||pe.expando+"_"+St++;return this[e]=!0,e}}),pe.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(zt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&zt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=pe.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(zt,"$1"+i):!1!==t.jsonp&&(t.url+=(kt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||pe.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?pe(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,qt.push(i)),a&&pe.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),de.createHTMLDocument=function(){var e=ne.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),pe.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,o;return t||(de.createHTMLDocument?(t=ne.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=ne.location.href,t.head.appendChild(r)):t=ne),i=_e.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=b([e],t,o),o&&o.length&&pe(o).remove(),pe.merge([],i.childNodes))},pe.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=W(e.slice(s)),e=e.slice(0,s)),pe.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&pe.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?pe("<div>").append(pe.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},pe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){pe.fn[t]=function(e){return this.on(t,e)}}),pe.expr.pseudos.animated=function(e){return pe.grep(pe.timers,function(t){return e===t.elem}).length},pe.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l,c=pe.css(e,"position"),f=pe(e),h={};"static"===c&&(e.style.position="relative"),s=f.offset(),o=pe.css(e,"top"),u=pe.css(e,"left"),l=("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),pe.isFunction(t)&&(t=t.call(e,n,pe.extend({},s))),null!=t.top&&(h.top=t.top-s.top+a),null!=t.left&&(h.left=t.left-s.left+i),"using"in t?t.using.call(e,h):f.css(h)}},pe.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){pe.offset.setOffset(this,e,t)});var t,n,r,i,o=this[0];if(o)return o.getClientRects().length?(r=o.getBoundingClientRect(),t=o.ownerDocument,n=t.documentElement,i=t.defaultView,{top:r.top+i.pageYOffset-n.clientTop,left:r.left+i.pageXOffset-n.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===pe.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),i(e[0],"html")||(r=e.offset()),r={top:r.top+pe.css(e[0],"borderTopWidth",!0),left:r.left+pe.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-pe.css(n,"marginTop",!0),left:t.left-r.left-pe.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===pe.css(e,"position");)e=e.offsetParent;return e||Xe})}}),pe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;pe.fn[e]=function(r){return Ne(this,function(e,r,i){var o;if(pe.isWindow(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),pe.each(["top","left"],function(e,t){pe.cssHooks[t]=O(de.pixelPosition,function(e,n){if(n)return n=N(e,t),ot.test(n)?pe(e).position()[t]+"px":n})}),pe.each({Height:"height",Width:"width"},function(e,t){pe.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){pe.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return Ne(this,function(t,n,i){var o;return pe.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?pe.css(t,n,s):pe.style(t,n,i,s)},t,a?i:void 0,a)}})}),pe.fn.extend({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)}}),pe.holdReady=function(e){e?pe.readyWait++:pe.ready(!0)},pe.isArray=Array.isArray,pe.parseJSON=JSON.parse,pe.nodeName=i,"function"==typeof define&&define.amd&&define("jquery",[],function(){return pe});var Ut=e.jQuery,Bt=e.$;return pe.noConflict=function(t){return e.$===pe&&(e.$=Bt),t&&e.jQuery===pe&&(e.jQuery=Ut),pe},t||(e.jQuery=e.$=pe),pe}),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.MessageFormat=e()}}(function(){var e;return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){function r(e){this.mf=e,this.lc=null,this.locales={},this.runtime={},this.formatters={}}var i=e("reserved-words"),o=e("messageformat-parser").parse;t.exports=r,r.propname=function(e,t){if(/^[A-Z_$][0-9A-Z_$]*$/i.test(e)&&["break","continue","delete","else","for","function","if","in","new","return","this","typeof","var","void","while","with","case","catch","default","do","finally","instanceof","switch","throw","try"].indexOf(e)<0)return t?t+"."+e:e;var n=JSON.stringify(e);return t?t+"["+n+"]":n},r.funcname=function(e){var t=e.trim().replace(/\W+/g,"_");return i.check(t,"es2015",!0)||/^\d/.test(t)?"_"+t:t},r.bidiMarkText=function(e,t){var n=JSON.stringify(function(e){var t=["ar","ckb","fa","he","ks($|[^bfh])","lrc","mzn","pa-Arab","ps","ug","ur","uz-Arab","yi"];return new RegExp("^"+t.join("|^")).test(e)}(t)?"‏":"‎");return n+" + "+e+" + "+n},r.prototype.cases=function(e,t){var n=!0,i=e.cases.map(function(e){"other"===e.key&&(n=!1);var i=e.tokens.map(function(e){return this.token(e,t)},this);return r.propname(e.key)+": "+(i.join(" + ")||'""')},this);if(n)throw new Error("No 'other' form found in "+JSON.stringify(e));return"{ "+i.join(", ")+" }"},r.prototype.token=function(e,t){if("string"==typeof e)return JSON.stringify(e);var n,i=[r.propname(e.arg,"d")];switch(e.type){case"argument":return this.mf.bidiSupport?r.bidiMarkText(i[0],this.lc):i[0];case"select":n="select",i.push(this.cases(e,this.mf.strictNumberSign?null:t)),this.runtime.select=!0;break;case"selectordinal":n="plural",i.push(0,r.funcname(this.lc),this.cases(e,e),1),this.locales[this.lc]=!0,this.runtime.plural=!0;break;case"plural":n="plural",i.push(e.offset||0,r.funcname(this.lc),this.cases(e,e)),this.locales[this.lc]=!0,this.runtime.plural=!0;break;case"function":if(this.mf.intlSupport&&!(e.key in this.mf.fmt)&&e.key in this.mf.constructor.formatters){var o=this.mf.constructor.formatters[e.key];this.mf.fmt[e.key]="function"==typeof o(this.mf)?o(this.mf):o}if(!this.mf.fmt[e.key])throw new Error("Formatting function "+JSON.stringify(e.key)+" not found!");if(i.push(JSON.stringify(this.lc)),e.params)switch(e.params.length){case 0:break;case 1:i.push(JSON.stringify(e.params[0]));break;default:i.push(JSON.stringify(e.params))}n=r.propname(e.key,"fmt"),this.formatters[e.key]=!0;break;case"octothorpe":if(!t)return'"#"';n="number",i=[r.propname(t.arg,"d"),JSON.stringify(t.arg)],t.offset&&i.push(t.offset),this.runtime.number=!0}if(!n)throw new Error("Parser error for token "+JSON.stringify(e));return n+"("+i.join(", ")+")"},r.prototype.compile=function(e,t,n){if("object"!=typeof e){this.lc=t;var r=n[t]||{cardinal:[],ordinal:[]};return"function(d) { return "+(o(e,r).map(function(e){return this.token(e)},this).join(" + ")||'""')+"; }"}var i={};for(var a in e){var s=n.hasOwnProperty(a)?a:t;i[a]=this.compile(e[a],s,n)}return i}},{"messageformat-parser":8,"reserved-words":10}],2:[function(e,t,n){function r(t,n){for(var r=e("make-plural/plurals"),i=e("make-plural/pluralCategories"),o=t;o;o=o.replace(/[-_]?[^-_]*$/,"")){var a=r[o];if(a){var s=n?{cardinal:[],ordinal:[]}:i[o]||{},u=function(){return a.apply(this,arguments)};return u.toString=function(){return a.toString()},u.cardinal=s.cardinal,u.ordinal=s.ordinal,u}}throw new Error("Localisation function not found for locale "+JSON.stringify(t))}function i(e){if(this.pluralFuncs={},e)if("string"==typeof e)this.pluralFuncs[e]=r(e);else if(Array.isArray(e))e.forEach(function(e){this.pluralFuncs[e]=r(e)},this);else if("object"==typeof e)for(var t in e)if(e.hasOwnProperty(t)){if("function"!=typeof e[t])throw new Error("Expected function value for locale "+JSON.stringify(t));this.pluralFuncs[t]=e[t]}this.fmt={},this.runtime=new a(this)}/** @file messageformat.js - ICU PluralFormat + SelectFormat for JavaScript
 *
 * @author Alex Sexton - @SlexAxton, Eemeli Aro
 * @version 1.0.2
 * @copyright 2012-2016 Alex Sexton, Eemeli Aro, and Contributors
 * @license To use or fork, MIT. To contribute back, Dojo CLA
 */
var o=e("./compiler"),a=e("./runtime");i.defaultLocale="en",i.escape=function(e){return e.replace(/[#{}\\]/g,"\\$&")},i.formatters={number:function(e){return new Function("v,lc,p","return new Intl.NumberFormat(lc,\n    p=='integer' ? {maximumFractionDigits:0}\n  : p=='percent' ? {style:'percent'}\n  : p=='currency' ? {style:'currency', currency:'"+(e.currency||"USD")+"', minimumFractionDigits:2, maximumFractionDigits:2}\n  : {}).format(v)")},date:function(e,t,n){var r={day:"numeric",month:"short",year:"numeric"};switch(n){case"full":r.weekday="long";case"long":r.month="long";break;case"short":r.month="numeric"}return new Date(e).toLocaleDateString(t,r)},time:function(e,t,n){var r={second:"numeric",minute:"numeric",hour:"numeric"};switch(n){case"full":case"long":r.timeZoneName="short";break;case"short":delete r.second}return new Date(e).toLocaleTimeString(t,r)}},i.prototype.addFormatters=function(e){for(var t in e)e.hasOwnProperty(t)&&(this.fmt[t]=e[t]);return this},i.prototype.disablePluralKeyChecks=function(){this.noPluralKeyChecks=!0;for(var e in this.pluralFuncs)this.pluralFuncs.hasOwnProperty(e)&&(this.pluralFuncs[e].cardinal=[],this.pluralFuncs[e].ordinal=[]);return this},i.prototype.setBiDiSupport=function(e){return this.bidiSupport=!!e||void 0===e,this},i.prototype.setIntlSupport=function(e){return this.intlSupport=!!e||void 0===e,this},i.prototype.setStrictNumberSign=function(e){return this.strictNumberSign=!!e||void 0===e,this.runtime.setStrictNumber(this.strictNumberSign),this},i.prototype.compile=function(e,t){function n(e,t){if(t||(t=0),"object"!=typeof e)return e;for(var r=[],i="",a=0;a<t;++a)i+="  ";for(var s in e)r.push("\n"+i+"  "+o.propname(s)+": "+n(e[s],t+1));return"{"+r.join(",")+"\n"+i+"}"}var a;if(0==Object.keys(this.pluralFuncs).length)t||(t=i.defaultLocale),a={},a[t]=r(t,this.noPluralKeyChecks);else if(t){if(a={},a[t]=this.pluralFuncs[t],!a[t])throw new Error("Locale "+JSON.stringify(t)+"not found in "+JSON.stringify(this.pluralFuncs)+"!")}else a=this.pluralFuncs,t=Object.keys(a)[0];var s=new o(this),u=s.compile(e,t,a);if("object"!=typeof e){var l=new Function("number, plural, select, fmt",o.funcname(t),"return "+u),c=this.runtime;return l(c.number,c.plural,c.select,this.fmt,a[t])}var f=this.runtime.toString(a,s)+"\n",h=n(u),d=new Function(f+"return "+h)();if(d.hasOwnProperty("toString"))throw new Error("The top-level message key `toString` is reserved");return d.toString=function(e){switch(e||""){case"exports":var t=[];for(var r in u)t.push(o.propname(r,"exports")+" = "+n(u[r]));return f+t.join(";\n");case"module.exports":return f+"module.exports = "+h;case"export default":return f+"export default "+h;case"":return f+"return "+h;default:return e.indexOf(".")>-1?f+e+" = "+h:f+["(function (root, G) {",'  if (typeof define === "function" && define.amd) { define(G); }','  else if (typeof exports === "object") { module.exports = G; }',"  else { "+o.propname(e,"root")+" = G; }","})(this, "+h+");"].join("\n")}},d},t.exports=i},{"./compiler":1,"./runtime":3,"make-plural/pluralCategories":6,"make-plural/plurals":7}],3:[function(e,t,n){function r(e){this.mf=e,this.setStrictNumber(e.strictNumberSign)}function i(e,t,n){if(!n)return e;if(isNaN(e))throw new Error("Can't apply offset:"+n+" to argument `"+t+"` with non-numerical value "+JSON.stringify(e)+".");return e-n}function o(e,t,n){if(isNaN(e))throw new Error("Argument `"+t+"` has non-numerical value "+JSON.stringify(e)+".");return e-(n||0)}var a=e("./compiler");t.exports=r,r.prototype.setStrictNumber=function(e){this.number=e?o:i},r.prototype.plural=function(e,t,n,r,i){if({}.hasOwnProperty.call(r,e))return r[e];t&&(e-=t);var o=n(e,i);return o in r?r[o]:r.other},r.prototype.select=function(e,t){return{}.hasOwnProperty.call(t,e)?t[e]:t.other},r.prototype.toString=function(e,t){function n(e,t){if("object"!=typeof e){var r=e.toString().replace(/^(function )\w*/,"$1"),i=/([ \t]*)\S.*$/.exec(r);return i?r.replace(new RegExp("^"+i[1],"mg"),""):r}var o=[];for(var s in e)0==t?o.push("var "+s+" = "+n(e[s],t+1)+";\n"):o.push(a.propname(s)+": "+n(e[s],t+1));if(0==t)return o.join("");if(0==o.length)return"{}";for(var i="  ";--t;)i+="  ";return"{\n"+o.join(",\n").replace(/^/gm,i)+"\n}"}var r={};Object.keys(t.locales).forEach(function(t){r[a.funcname(t)]=e[t]}),Object.keys(t.runtime).forEach(function(e){r[e]=this[e]},this);var i=Object.keys(t.formatters),o=this.mf.fmt;return i.length&&(r.fmt=i.reduce(function(e,t){return e[t]=o[t],e},{})),n(r,0)}},{"./compiler":1}],4:[function(e,t,n){function r(e,t){return d.isUndefined(t)?""+t:d.isNumber(t)&&!isFinite(t)?t.toString():d.isFunction(t)||d.isRegExp(t)?t.toString():t}function i(e,t){return d.isString(e)?e.length<t?e:e.slice(0,t):e}function o(e){return i(JSON.stringify(e.actual,r),128)+" "+e.operator+" "+i(JSON.stringify(e.expected,r),128)}function a(e,t,n,r,i){throw new m.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function s(e,t){e||a(e,!0,t,"==",m.ok)}function u(e,t){if(e===t)return!0;if(d.isBuffer(e)&&d.isBuffer(t)){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return d.isDate(e)&&d.isDate(t)?e.getTime()===t.getTime():d.isRegExp(e)&&d.isRegExp(t)?e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase:d.isObject(e)||d.isObject(t)?c(e,t):e==t}function l(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function c(e,t){if(d.isNullOrUndefined(e)||d.isNullOrUndefined(t))return!1;if(e.prototype!==t.prototype)return!1;if(d.isPrimitive(e)||d.isPrimitive(t))return e===t;var n=l(e),r=l(t);if(n&&!r||!n&&r)return!1;if(n)return e=p.call(e),t=p.call(t),u(e,t);var i,o,a=v(e),s=v(t);if(a.length!=s.length)return!1;for(a.sort(),s.sort(),o=a.length-1;o>=0;o--)if(a[o]!=s[o])return!1;for(o=a.length-1;o>=0;o--)if(i=a[o],!u(e[i],t[i]))return!1;return!0}function f(e,t){return!(!e||!t)&&("[object RegExp]"==Object.prototype.toString.call(t)?t.test(e):e instanceof t||!0===t.call({},e))}function h(e,t,n,r){var i;d.isString(n)&&(r=n,n=null);try{t()}catch(e){i=e}if(r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&a(i,n,"Missing expected exception"+r),!e&&f(i,n)&&a(i,n,"Got unwanted exception"+r),e&&i&&n&&!f(i,n)||!e&&i)throw i}
// Copyright (c) 2009 Thomas Robinson <280north.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the 'Software'), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
var d=e("util/"),p=Array.prototype.slice,g=Object.prototype.hasOwnProperty,m=t.exports=s;m.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=o(this),this.generatedMessage=!0);var t=e.stackStartFunction||a;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=t.name,s=r.indexOf("\n"+i);if(s>=0){var u=r.indexOf("\n",s+1);r=r.substring(u+1)}this.stack=r}}},d.inherits(m.AssertionError,Error),m.fail=a,m.ok=s,m.equal=function(e,t,n){e!=t&&a(e,t,n,"==",m.equal)},m.notEqual=function(e,t,n){e==t&&a(e,t,n,"!=",m.notEqual)},m.deepEqual=function(e,t,n){u(e,t)||a(e,t,n,"deepEqual",m.deepEqual)},m.notDeepEqual=function(e,t,n){u(e,t)&&a(e,t,n,"notDeepEqual",m.notDeepEqual)},m.strictEqual=function(e,t,n){e!==t&&a(e,t,n,"===",m.strictEqual)},m.notStrictEqual=function(e,t,n){e===t&&a(e,t,n,"!==",m.notStrictEqual)},m.throws=function(e,t,n){h.apply(this,[!0].concat(p.call(arguments)))},m.doesNotThrow=function(e,t){h.apply(this,[!1].concat(p.call(arguments)))},m.ifError=function(e){if(e)throw e};var v=Object.keys||function(e){var t=[];for(var n in e)g.call(e,n)&&t.push(n);return t}},{"util/":13}],5:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],6:[function(t,n,r){var i=[{cardinal:["other"],ordinal:["other"]},{cardinal:["one","other"],ordinal:["other"]},{cardinal:["one","other"],ordinal:["one","other"]},{cardinal:["one","two","other"],ordinal:["other"]}];!function(t,i){"function"==typeof e&&e.amd?e(i):"object"==typeof r?n.exports=i:t.pluralCategories=i}(this,{af:i[1],ak:i[1],am:i[1],ar:{cardinal:["zero","one","two","few","many","other"],ordinal:["other"]},as:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},asa:i[1],ast:i[1],az:{cardinal:["one","other"],ordinal:["one","few","many","other"]},be:{cardinal:["one","few","many","other"],ordinal:["few","other"]},bem:i[1],bez:i[1],bg:i[1],bh:i[1],bm:i[0],bn:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},bo:i[0],br:{cardinal:["one","two","few","many","other"],ordinal:["other"]},brx:i[1],bs:{cardinal:["one","few","other"],ordinal:["other"]},ca:{cardinal:["one","other"],ordinal:["one","two","few","other"]},ce:i[1],cgg:i[1],chr:i[1],ckb:i[1],cs:{cardinal:["one","few","many","other"],ordinal:["other"]},cy:{cardinal:["zero","one","two","few","many","other"],ordinal:["zero","one","two","few","many","other"]},da:i[1],de:i[1],dsb:{cardinal:["one","two","few","other"],ordinal:["other"]},dv:i[1],dz:i[0],ee:i[1],el:i[1],en:{cardinal:["one","other"],ordinal:["one","two","few","other"]},eo:i[1],es:i[1],et:i[1],eu:i[1],fa:i[1],ff:i[1],fi:i[1],fil:i[2],fo:i[1],fr:i[2],fur:i[1],fy:i[1],ga:{cardinal:["one","two","few","many","other"],ordinal:["one","other"]},gd:{cardinal:["one","two","few","other"],ordinal:["other"]},gl:i[1],gsw:i[1],gu:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},guw:i[1],gv:{cardinal:["one","two","few","many","other"],ordinal:["other"]},ha:i[1],haw:i[1],he:{cardinal:["one","two","many","other"],ordinal:["other"]},hi:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},hr:{cardinal:["one","few","other"],ordinal:["other"]},hsb:{cardinal:["one","two","few","other"],ordinal:["other"]},hu:i[2],hy:i[2],id:i[0],ig:i[0],ii:i[0],in:i[0],is:i[1],it:{cardinal:["one","other"],ordinal:["many","other"]},iu:i[3],iw:{cardinal:["one","two","many","other"],ordinal:["other"]},ja:i[0],jbo:i[0],jgo:i[1],ji:i[1],jmc:i[1],jv:i[0],jw:i[0],ka:{cardinal:["one","other"],ordinal:["one","many","other"]},kab:i[1],kaj:i[1],kcg:i[1],kde:i[0],kea:i[0],kk:{cardinal:["one","other"],ordinal:["many","other"]},kkj:i[1],kl:i[1],km:i[0],kn:i[1],ko:i[0],ks:i[1],ksb:i[1],ksh:{cardinal:["zero","one","other"],ordinal:["other"]},ku:i[1],kw:i[3],ky:i[1],lag:{cardinal:["zero","one","other"],ordinal:["other"]},lb:i[1],lg:i[1],lkt:i[0],ln:i[1],lo:{cardinal:["other"],ordinal:["one","other"]},lt:{cardinal:["one","few","many","other"],ordinal:["other"]},lv:{cardinal:["zero","one","other"],ordinal:["other"]},mas:i[1],mg:i[1],mgo:i[1],mk:{cardinal:["one","other"],ordinal:["one","two","many","other"]},ml:i[1],mn:i[1],mo:{cardinal:["one","few","other"],ordinal:["one","other"]},mr:{cardinal:["one","other"],ordinal:["one","two","few","other"]},ms:{cardinal:["other"],ordinal:["one","other"]},mt:{cardinal:["one","few","many","other"],ordinal:["other"]},my:i[0],nah:i[1],naq:i[3],nb:i[1],nd:i[1],ne:i[2],nl:i[1],nn:i[1],nnh:i[1],no:i[1],nqo:i[0],nr:i[1],nso:i[1],ny:i[1],nyn:i[1],om:i[1],or:i[1],os:i[1],pa:i[1],pap:i[1],pl:{cardinal:["one","few","many","other"],ordinal:["other"]},prg:{cardinal:["zero","one","other"],ordinal:["other"]},ps:i[1],pt:i[1],"pt-PT":i[1],rm:i[1],ro:{cardinal:["one","few","other"],ordinal:["one","other"]},rof:i[1],root:i[0],ru:{cardinal:["one","few","many","other"],ordinal:["other"]},rwk:i[1],sah:i[0],saq:i[1],sdh:i[1],se:i[3],seh:i[1],ses:i[0],sg:i[0],sh:{cardinal:["one","few","other"],ordinal:["other"]},shi:{cardinal:["one","few","other"],ordinal:["other"]},si:i[1],sk:{cardinal:["one","few","many","other"],ordinal:["other"]},sl:{cardinal:["one","two","few","other"],ordinal:["other"]},sma:i[3],smi:i[3],smj:i[3],smn:i[3],sms:i[3],sn:i[1],so:i[1],sq:{cardinal:["one","other"],ordinal:["one","many","other"]},sr:{cardinal:["one","few","other"],ordinal:["other"]},ss:i[1],ssy:i[1],st:i[1],sv:i[2],sw:i[1],syr:i[1],ta:i[1],te:i[1],teo:i[1],th:i[0],ti:i[1],tig:i[1],tk:i[1],tl:i[2],tn:i[1],to:i[0],tr:i[1],ts:i[1],tzm:i[1],ug:i[1],uk:{cardinal:["one","few","many","other"],ordinal:["few","other"]},ur:i[1],uz:i[1],ve:i[1],vi:{cardinal:["other"],ordinal:["one","other"]},vo:i[1],vun:i[1],wa:i[1],wae:i[1],wo:i[0],xh:i[1],xog:i[1],yi:i[1],yo:i[0],zh:i[0],zu:i[1]})},{}],7:[function(t,n,r){var i=[function(e,t){return"other"},function(e,t){return t?"other":1==e?"one":"other"},function(e,t){return t?"other":0==e||1==e?"one":"other"},function(e,t){var n=String(e).split("."),r=!n[1];return t?"other":1==e&&r?"one":"other"}];!function(t,i){"function"==typeof e&&e.amd?e(i):"object"==typeof r?n.exports=i:t.plurals=i}(this,{af:i[1],ak:i[2],am:function(e,t){return t?"other":e>=0&&e<=1?"one":"other"},ar:function(e,t){var n=String(e).split("."),r=Number(n[0])==e,i=r&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":i>=3&&i<=10?"few":i>=11&&i<=99?"many":"other"},as:function(e,t){return t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"},asa:i[1],ast:i[3],az:function(e,t){var n=String(e).split("."),r=n[0],i=r.slice(-1),o=r.slice(-2),a=r.slice(-3);return t?1==i||2==i||5==i||7==i||8==i||20==o||50==o||70==o||80==o?"one":3==i||4==i||100==a||200==a||300==a||400==a||500==a||600==a||700==a||800==a||900==a?"few":0==r||6==i||40==o||60==o||90==o?"many":"other":1==e?"one":"other"},be:function(e,t){var n=String(e).split("."),r=Number(n[0])==e,i=r&&n[0].slice(-1),o=r&&n[0].slice(-2);return t?2!=i&&3!=i||12==o||13==o?"other":"few":1==i&&11!=o?"one":i>=2&&i<=4&&(o<12||o>14)?"few":r&&0==i||i>=5&&i<=9||o>=11&&o<=14?"many":"other"},bem:i[1],bez:i[1],bg:i[1],bh:i[2],bm:i[0],bn:function(e,t){return t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"},bo:i[0],br:function(e,t){var n=String(e).split("."),r=Number(n[0])==e,i=r&&n[0].slice(-1),o=r&&n[0].slice(-2),a=r&&n[0].slice(-6);return t?"other":1==i&&11!=o&&71!=o&&91!=o?"one":2==i&&12!=o&&72!=o&&92!=o?"two":(3==i||4==i||9==i)&&(o<10||o>19)&&(o<70||o>79)&&(o<90||o>99)?"few":0!=e&&r&&0==a?"many":"other"},brx:i[1],bs:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==a&&11!=s||1==u&&11!=l?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(l<12||l>14)?"few":"other"},ca:function(e,t){var n=String(e).split("."),r=!n[1];return t?1==e||3==e?"one":2==e?"two":4==e?"few":"other":1==e&&r?"one":"other"},ce:i[1],cgg:i[1],chr:i[1],ckb:i[1],cs:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1];return t?"other":1==e&&i?"one":r>=2&&r<=4&&i?"few":i?"other":"many"},cy:function(e,t){return t?0==e||7==e||8==e||9==e?"zero":1==e?"one":2==e?"two":3==e||4==e?"few":5==e||6==e?"many":"other":0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other"},da:function(e,t){var n=String(e).split("."),r=n[0],i=Number(n[0])==e;return t?"other":1!=e&&(i||0!=r&&1!=r)?"other":"one"},de:i[3],dsb:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-2),s=i.slice(-2);return t?"other":o&&1==a||1==s?"one":o&&2==a||2==s?"two":o&&(3==a||4==a)||3==s||4==s?"few":"other"},dv:i[1],dz:i[0],ee:i[1],el:i[1],en:function(e,t){var n=String(e).split("."),r=!n[1],i=Number(n[0])==e,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?1==o&&11!=a?"one":2==o&&12!=a?"two":3==o&&13!=a?"few":"other":1==e&&r?"one":"other"},eo:i[1],es:i[1],et:i[3],eu:i[1],fa:function(e,t){return t?"other":e>=0&&e<=1?"one":"other"},ff:function(e,t){return t?"other":e>=0&&e<2?"one":"other"},fi:i[3],fil:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=i.slice(-1);return t?1==e?"one":"other":o&&(1==r||2==r||3==r)||o&&4!=a&&6!=a&&9!=a||!o&&4!=s&&6!=s&&9!=s?"one":"other"},fo:i[1],fr:function(e,t){return t?1==e?"one":"other":e>=0&&e<2?"one":"other"},fur:i[1],fy:i[3],ga:function(e,t){var n=String(e).split("."),r=Number(n[0])==e;return t?1==e?"one":"other":1==e?"one":2==e?"two":r&&e>=3&&e<=6?"few":r&&e>=7&&e<=10?"many":"other"},gd:function(e,t){var n=String(e).split("."),r=Number(n[0])==e;return t?"other":1==e||11==e?"one":2==e||12==e?"two":r&&e>=3&&e<=10||r&&e>=13&&e<=19?"few":"other"},gl:i[3],gsw:i[1],gu:function(e,t){return t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"},guw:i[2],gv:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1],o=r.slice(-1),a=r.slice(-2);return t?"other":i&&1==o?"one":i&&2==o?"two":!i||0!=a&&20!=a&&40!=a&&60!=a&&80!=a?i?"other":"many":"few"},ha:i[1],haw:i[1],he:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1],o=Number(n[0])==e,a=o&&n[0].slice(-1);return t?"other":1==e&&i?"one":2==r&&i?"two":i&&(e<0||e>10)&&o&&0==a?"many":"other"},hi:function(e,t){return t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"},hr:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==a&&11!=s||1==u&&11!=l?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(l<12||l>14)?"few":"other"},hsb:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-2),s=i.slice(-2);return t?"other":o&&1==a||1==s?"one":o&&2==a||2==s?"two":o&&(3==a||4==a)||3==s||4==s?"few":"other"},hu:function(e,t){return t?1==e||5==e?"one":"other":1==e?"one":"other"},hy:function(e,t){return t?1==e?"one":"other":e>=0&&e<2?"one":"other"},id:i[0],ig:i[0],ii:i[0],in:i[0],is:function(e,t){var n=String(e).split("."),r=n[0],i=Number(n[0])==e,o=r.slice(-1),a=r.slice(-2);return t?"other":i&&1==o&&11!=a||!i?"one":"other"},it:function(e,t){var n=String(e).split("."),r=!n[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&r?"one":"other"},iu:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},iw:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1],o=Number(n[0])==e,a=o&&n[0].slice(-1);return t?"other":1==e&&i?"one":2==r&&i?"two":i&&(e<0||e>10)&&o&&0==a?"many":"other"},ja:i[0],jbo:i[0],jgo:i[1],ji:i[3],jmc:i[1],jv:i[0],jw:i[0],ka:function(e,t){var n=String(e).split("."),r=n[0],i=r.slice(-2);return t?1==r?"one":0==r||i>=2&&i<=20||40==i||60==i||80==i?"many":"other":1==e?"one":"other"},kab:function(e,t){return t?"other":e>=0&&e<2?"one":"other"},kaj:i[1],kcg:i[1],kde:i[0],kea:i[0],kk:function(e,t){var n=String(e).split("."),r=Number(n[0])==e,i=r&&n[0].slice(-1);return t?6==i||9==i||r&&0==i&&0!=e?"many":"other":1==e?"one":"other"},kkj:i[1],kl:i[1],km:i[0],kn:function(e,t){return t?"other":e>=0&&e<=1?"one":"other"},ko:i[0],ks:i[1],ksb:i[1],ksh:function(e,t){return t?"other":0==e?"zero":1==e?"one":"other"},ku:i[1],kw:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},ky:i[1],lag:function(e,t){var n=String(e).split("."),r=n[0];return t?"other":0==e?"zero":0!=r&&1!=r||0==e?"other":"one"},lb:i[1],lg:i[1],lkt:i[0],ln:i[2],lo:function(e,t){return t&&1==e?"one":"other"},lt:function(e,t){var n=String(e).split("."),r=n[1]||"",i=Number(n[0])==e,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?"other":1==o&&(a<11||a>19)?"one":o>=2&&o<=9&&(a<11||a>19)?"few":0!=r?"many":"other"},lv:function(e,t){var n=String(e).split("."),r=n[1]||"",i=r.length,o=Number(n[0])==e,a=o&&n[0].slice(-1),s=o&&n[0].slice(-2),u=r.slice(-2),l=r.slice(-1);return t?"other":o&&0==a||s>=11&&s<=19||2==i&&u>=11&&u<=19?"zero":1==a&&11!=s||2==i&&1==l&&11!=u||2!=i&&1==l?"one":"other"},mas:i[1],mg:i[2],mgo:i[1],mk:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1);return t?1==a&&11!=s?"one":2==a&&12!=s?"two":7!=a&&8!=a||17==s||18==s?"other":"many":o&&1==a||1==u?"one":"other"},ml:i[1],mn:i[1],mo:function(e,t){var n=String(e).split("."),r=!n[1],i=Number(n[0])==e,o=i&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||1!=e&&o>=1&&o<=19?"few":"other"},mr:function(e,t){return t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":e>=0&&e<=1?"one":"other"},ms:function(e,t){return t&&1==e?"one":"other"},mt:function(e,t){var n=String(e).split("."),r=Number(n[0])==e,i=r&&n[0].slice(-2);return t?"other":1==e?"one":0==e||i>=2&&i<=10?"few":i>=11&&i<=19?"many":"other"},my:i[0],nah:i[1],naq:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},nb:i[1],nd:i[1],ne:function(e,t){var n=String(e).split("."),r=Number(n[0])==e;return t?r&&e>=1&&e<=4?"one":"other":1==e?"one":"other"},nl:i[3],nn:i[1],nnh:i[1],no:i[1],nqo:i[0],nr:i[1],nso:i[2],ny:i[1],nyn:i[1],om:i[1],or:i[1],os:i[1],pa:i[2],pap:i[1],pl:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1],o=r.slice(-1),a=r.slice(-2);return t?"other":1==e&&i?"one":i&&o>=2&&o<=4&&(a<12||a>14)?"few":i&&1!=r&&(0==o||1==o)||i&&o>=5&&o<=9||i&&a>=12&&a<=14?"many":"other"},prg:function(e,t){var n=String(e).split("."),r=n[1]||"",i=r.length,o=Number(n[0])==e,a=o&&n[0].slice(-1),s=o&&n[0].slice(-2),u=r.slice(-2),l=r.slice(-1);return t?"other":o&&0==a||s>=11&&s<=19||2==i&&u>=11&&u<=19?"zero":1==a&&11!=s||2==i&&1==l&&11!=u||2!=i&&1==l?"one":"other"},ps:i[1],pt:function(e,t){var n=String(e).split("."),r=Number(n[0])==e;return t?"other":r&&e>=0&&e<=2&&2!=e?"one":"other"},"pt-PT":i[3],rm:i[1],ro:function(e,t){var n=String(e).split("."),r=!n[1],i=Number(n[0])==e,o=i&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&r?"one":!r||0==e||1!=e&&o>=1&&o<=19?"few":"other"},rof:i[1],root:i[0],ru:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1],o=r.slice(-1),a=r.slice(-2);return t?"other":i&&1==o&&11!=a?"one":i&&o>=2&&o<=4&&(a<12||a>14)?"few":i&&0==o||i&&o>=5&&o<=9||i&&a>=11&&a<=14?"many":"other"},rwk:i[1],sah:i[0],saq:i[1],sdh:i[1],se:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},seh:i[1],ses:i[0],sg:i[0],sh:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==a&&11!=s||1==u&&11!=l?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(l<12||l>14)?"few":"other"},shi:function(e,t){var n=String(e).split("."),r=Number(n[0])==e;return t?"other":e>=0&&e<=1?"one":r&&e>=2&&e<=10?"few":"other"},si:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"";return t?"other":0==e||1==e||0==r&&1==i?"one":"other"},sk:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1];return t?"other":1==e&&i?"one":r>=2&&r<=4&&i?"few":i?"other":"many"},sl:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1],o=r.slice(-2);return t?"other":i&&1==o?"one":i&&2==o?"two":i&&(3==o||4==o)||!i?"few":"other"},sma:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},smi:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},smj:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},smn:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},sms:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},sn:i[1],so:i[1],sq:function(e,t){var n=String(e).split("."),r=Number(n[0])==e,i=r&&n[0].slice(-1),o=r&&n[0].slice(-2);return t?1==e?"one":4==i&&14!=o?"many":"other":1==e?"one":"other"},sr:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1),l=i.slice(-2);return t?"other":o&&1==a&&11!=s||1==u&&11!=l?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(l<12||l>14)?"few":"other"},ss:i[1],ssy:i[1],st:i[1],sv:function(e,t){var n=String(e).split("."),r=!n[1],i=Number(n[0])==e,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?1!=o&&2!=o||11==a||12==a?"other":"one":1==e&&r?"one":"other"},sw:i[3],syr:i[1],ta:i[1],te:i[1],teo:i[1],th:i[0],ti:i[2],tig:i[1],tk:i[1],tl:function(e,t){var n=String(e).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=i.slice(-1);return t?1==e?"one":"other":o&&(1==r||2==r||3==r)||o&&4!=a&&6!=a&&9!=a||!o&&4!=s&&6!=s&&9!=s?"one":"other"},tn:i[1],to:i[0],tr:i[1],ts:i[1],tzm:function(e,t){var n=String(e).split("."),r=Number(n[0])==e;return t?"other":0==e||1==e||r&&e>=11&&e<=99?"one":"other"},ug:i[1],uk:function(e,t){var n=String(e).split("."),r=n[0],i=!n[1],o=Number(n[0])==e,a=o&&n[0].slice(-1),s=o&&n[0].slice(-2),u=r.slice(-1),l=r.slice(-2);return t?3==a&&13!=s?"few":"other":i&&1==u&&11!=l?"one":i&&u>=2&&u<=4&&(l<12||l>14)?"few":i&&0==u||i&&u>=5&&u<=9||i&&l>=11&&l<=14?"many":"other"},ur:i[3],uz:i[1],ve:i[1],vi:function(e,t){return t&&1==e?"one":"other"},vo:i[1],vun:i[1],wa:i[2],wae:i[1],wo:i[0],xh:i[1],xog:i[1],yi:i[3],yo:i[0],zh:i[0],zu:function(e,t){return t?"other":e>=0&&e<=1?"one":"other"}})},{}],8:[function(e,t,n){"use strict";function r(e,t,n,i){this.message=e,this.expected=t,this.found=n,this.location=i,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,r)}function i(e,t){function n(e,t){return{type:"literal",text:e,ignoreCase:t}}function i(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function o(e){return{type:"other",description:e}}function a(t){var n,r=je[t];if(r)return r;for(n=t-1;!je[n];)n--;for(r=je[n],r={line:r.line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return je[t]=r,r}function s(e,t){var n=a(e),r=a(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function u(e){Pe<Le||(Pe>Le&&(Le=Pe,Re=[]),Re.push(e))}function l(e,t,n){return new r(r.buildMessage(e,t),e,t,n)}function c(){var e,t;for(e=[],t=f();t!==M;)e.push(t),t=f();return e}function f(){var t,n,r;if((t=h())===M&&(t=d())===M&&(t=p())===M&&(t=g())===M&&(t=Pe,35===e.charCodeAt(Pe)?(n=D,Pe++):(n=M,0===Ve&&u(N)),n!==M&&(Ie=t,n=O()),(t=n)===M)){if(t=Pe,n=[],(r=_())!==M)for(;r!==M;)n.push(r),r=_();else n=M;n!==M&&(Ie=t,n=P(n)),t=n}return t}function h(){var t,n,r,i,o,a;return t=Pe,123===e.charCodeAt(Pe)?(n=I,Pe++):(n=M,0===Ve&&u(j)),n!==M?(r=C(),r!==M?(i=m(),i!==M?(o=C(),o!==M?(125===e.charCodeAt(Pe)?(a=L,Pe++):(a=M,0===Ve&&u(R)),a!==M?(Ie=t,n=V(i),t=n):(Pe=t,t=M)):(Pe=t,t=M)):(Pe=t,t=M)):(Pe=t,t=M)):(Pe=t,t=M),t}function d(){var t,n,r,i,o,a,s,l,c;if(t=Pe,123===e.charCodeAt(Pe)?(n=I,Pe++):(n=M,0===Ve&&u(j)),n!==M)if(C()!==M)if((r=m())!==M)if(C()!==M)if(44===e.charCodeAt(Pe)?(i=F,Pe++):(i=M,0===Ve&&u(Y)),i!==M)if(C()!==M)if(e.substr(Pe,6)===H?(o=H,Pe+=6):(o=M,0===Ve&&u(q)),o!==M)if(C()!==M)if(44===e.charCodeAt(Pe)?(a=F,Pe++):(a=M,0===Ve&&u(Y)),a!==M)if(C()!==M){if(s=[],(l=v())!==M)for(;l!==M;)s.push(l),l=v();else s=M;s!==M?(l=C(),l!==M?(125===e.charCodeAt(Pe)?(c=L,Pe++):(c=M,0===Ve&&u(R)),c!==M?(Ie=t,n=z(r,s),t=n):(Pe=t,t=M)):(Pe=t,t=M)):(Pe=t,t=M)}else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;return t}function p(){var t,n,r,i,o,a,s,l,c,f;if(t=Pe,123===e.charCodeAt(Pe)?(n=I,Pe++):(n=M,0===Ve&&u(j)),n!==M)if(C()!==M)if((r=m())!==M)if(C()!==M)if(44===e.charCodeAt(Pe)?(i=F,Pe++):(i=M,0===Ve&&u(Y)),i!==M)if(C()!==M)if(e.substr(Pe,6)===U?(o=U,Pe+=6):(o=M,0===Ve&&u(B)),o===M&&(e.substr(Pe,13)===W?(o=W,Pe+=13):(o=M,0===Ve&&u(G))),o!==M)if(C()!==M)if(44===e.charCodeAt(Pe)?(a=F,Pe++):(a=M,0===Ve&&u(Y)),a!==M)if(C()!==M)if(s=b(),s===M&&(s=null),s!==M){if(l=[],(c=y())!==M)for(;c!==M;)l.push(c),c=y();else l=M;l!==M?(c=C(),c!==M?(125===e.charCodeAt(Pe)?(f=L,Pe++):(f=M,0===Ve&&u(R)),f!==M?(Ie=t,n=X(r,o,s,l),t=n):(Pe=t,t=M)):(Pe=t,t=M)):(Pe=t,t=M)}else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;return t}function g(){var t,n,r,i,o,a,s;if(t=Pe,123===e.charCodeAt(Pe)?(n=I,Pe++):(n=M,0===Ve&&u(j)),n!==M)if(C()!==M)if((r=m())!==M)if(C()!==M)if(44===e.charCodeAt(Pe)?(i=F,Pe++):(i=M,0===Ve&&u(Y)),i!==M)if(C()!==M)if((o=m())!==M)if(C()!==M){for(a=[],s=x();s!==M;)a.push(s),s=x();a!==M?(125===e.charCodeAt(Pe)?(s=L,Pe++):(s=M,0===Ve&&u(R)),s!==M?(Ie=t,n=K(r,o,a),t=n):(Pe=t,t=M)):(Pe=t,t=M)}else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;else Pe=t,t=M;return t}function m(){var t,n,r,i,o;if(t=Pe,n=Pe,Z.test(e.charAt(Pe))?(r=e.charAt(Pe),Pe++):(r=M,0===Ve&&u(J)),r!==M){for(i=[],Q.test(e.charAt(Pe))?(o=e.charAt(Pe),Pe++):(o=M,0===Ve&&u(ee));o!==M;)i.push(o),Q.test(e.charAt(Pe))?(o=e.charAt(Pe),Pe++):(o=M,0===Ve&&u(ee));i!==M?(r=[r,i],n=r):(Pe=n,n=M)}else Pe=n,n=M;return t=n!==M?e.substring(t,Pe):n}function v(){var e,t,n,r,i;return e=Pe,t=C(),t!==M?(n=m(),n!==M?(r=C(),r!==M?(i=$(),i!==M?(Ie=e,t=te(n,i),e=t):(Pe=e,e=M)):(Pe=e,e=M)):(Pe=e,e=M)):(Pe=e,e=M),e}function y(){var e,t,n,r,i;return e=Pe,t=C(),t!==M?(n=w(),n!==M?(r=C(),r!==M?(i=$(),i!==M?(Ie=e,t=te(n,i),e=t):(Pe=e,e=M)):(Pe=e,e=M)):(Pe=e,e=M)):(Pe=e,e=M),e}function $(){var t,n,r,i,o,a;if(t=Pe,123===e.charCodeAt(Pe)?(n=I,Pe++):(n=M,0===Ve&&u(j)),n!==M)if(r=Pe,i=C(),i!==M?(o=Pe,Ve++,123===e.charCodeAt(Pe)?(a=I,Pe++):(a=M,0===Ve&&u(j)),Ve--,a!==M?(Pe=o,o=void 0):o=M,o!==M?(i=[i,o],r=i):(Pe=r,r=M)):(Pe=r,r=M),r===M&&(r=null),r!==M){for(i=[],o=f();o!==M;)i.push(o),o=f();i!==M?(o=C(),o!==M?(125===e.charCodeAt(Pe)?(a=L,Pe++):(a=M,0===Ve&&u(R)),a!==M?(Ie=t,n=ne(i),t=n):(Pe=t,t=M)):(Pe=t,t=M)):(Pe=t,t=M)}else Pe=t,t=M;else Pe=t,t=M;return t}function b(){var t,n,r,i,o,a,s,l;return t=Pe,n=C(),n!==M?(e.substr(Pe,6)===re?(r=re,Pe+=6):(r=M,0===Ve&&u(ie)),r!==M?(i=C(),i!==M?(58===e.charCodeAt(Pe)?(o=oe,Pe++):(o=M,0===Ve&&u(ae)),o!==M?(a=C(),a!==M?(s=S(),s!==M?(l=C(),l!==M?(Ie=t,n=se(s),t=n):(Pe=t,t=M)):(Pe=t,t=M)):(Pe=t,t=M)):(Pe=t,t=M)):(Pe=t,t=M)):(Pe=t,t=M)):(Pe=t,t=M),t}function w(){var t,n,r;return t=m(),t===M&&(t=Pe,61===e.charCodeAt(Pe)?(n=ue,Pe++):(n=M,0===Ve&&u(le)),n!==M?(r=S(),r!==M?(Ie=t,n=se(r),t=n):(Pe=t,t=M)):(Pe=t,t=M)),t}function x(){var t,n,r,i,o,a;return t=Pe,n=C(),n!==M?(44===e.charCodeAt(Pe)?(r=F,Pe++):(r=M,0===Ve&&u(Y)),r!==M?(i=C(),i!==M?(o=m(),o!==M?(a=C(),a!==M?(Ie=t,n=ce(o),t=n):(Pe=t,t=M)):(Pe=t,t=M)):(Pe=t,t=M)):(Pe=t,t=M)):(Pe=t,t=M),t}function _(){var t,n,r,i,o,a;return fe.test(e.charAt(Pe))?(t=e.charAt(Pe),Pe++):(t=M,0===Ve&&u(he)),t===M&&(t=Pe,e.substr(Pe,2)===de?(n=de,Pe+=2):(n=M,0===Ve&&u(pe)),n!==M&&(Ie=t,n=ge()),(t=n)===M&&(t=Pe,e.substr(Pe,2)===me?(n=me,Pe+=2):(n=M,0===Ve&&u(ve)),n!==M&&(Ie=t,n=ye()),(t=n)===M&&(t=Pe,e.substr(Pe,2)===$e?(n=$e,Pe+=2):(n=M,0===Ve&&u(be)),n!==M&&(Ie=t,n=we()),(t=n)===M&&(t=Pe,e.substr(Pe,2)===xe?(n=xe,Pe+=2):(n=M,0===Ve&&u(_e)),n!==M&&(Ie=t,n=Se()),(t=n)===M&&(t=Pe,e.substr(Pe,2)===ke?(n=ke,Pe+=2):(n=M,0===Ve&&u(Ce)),n!==M?(r=k(),r!==M?(i=k(),i!==M?(o=k(),o!==M?(a=k(),a!==M?(Ie=t,n=Ee(r,i,o,a),t=n):(Pe=t,t=M)):(Pe=t,t=M)):(Pe=t,t=M)):(Pe=t,t=M)):(Pe=t,t=M)))))),t}function S(){var t,n,r;if(t=Pe,n=[],Me.test(e.charAt(Pe))?(r=e.charAt(Pe),Pe++):(r=M,0===Ve&&u(Te)),r!==M)for(;r!==M;)n.push(r),Me.test(e.charAt(Pe))?(r=e.charAt(Pe),Pe++):(r=M,0===Ve&&u(Te));else n=M;return t=n!==M?e.substring(t,Pe):n}function k(){var t;return Ae.test(e.charAt(Pe))?(t=e.charAt(Pe),Pe++):(t=M,0===Ve&&u(De)),t}function C(){var t,n,r;for(t=Pe,n=[],Ne.test(e.charAt(Pe))?(r=e.charAt(Pe),Pe++):(r=M,0===Ve&&u(Oe));r!==M;)n.push(r),Ne.test(e.charAt(Pe))?(r=e.charAt(Pe),Pe++):(r=M,0===Ve&&u(Oe));return t=n!==M?e.substring(t,Pe):n}t=void 0!==t?t:{};var E,M={},T={start:c},A=c,D="#",N=n("#",!1),O=function(){return{type:"octothorpe"}},P=function(e){return e.join("")},I="{",j=n("{",!1),L="}",R=n("}",!1),V=function(e){return{type:"argument",arg:e}},F=",",Y=n(",",!1),H="select",q=n("select",!1),z=function(e,t){return{type:"select",arg:e,cases:t}},U="plural",B=n("plural",!1),W="selectordinal",G=n("selectordinal",!1),X=function(e,n,r,i){var o=("selectordinal"===n?t.ordinal:t.cardinal)||["zero","one","two","few","many","other"];return o&&o.length&&i.forEach(function(t){if(isNaN(t.key)&&o.indexOf(t.key)<0)throw new Error("Invalid key `"+t.key+"` for argument `"+e+"`. Valid "+n+" keys for this locale are `"+o.join("`, `")+"`, and explicit keys like `=0`.")}),{type:n,arg:e,offset:r||0,cases:i}},K=function(e,t,n){return{type:"function",arg:e,key:t,params:n}},Z=/^[0-9a-zA-Z$_]/,J=i([["0","9"],["a","z"],["A","Z"],"$","_"],!1,!1),Q=/^[^ \t\n\r,.+={}]/,ee=i([" ","\t","\n","\r",",",".","+","=","{","}"],!0,!1),te=function(e,t){return{key:e,tokens:t}},ne=function(e){return e},re="offset",ie=n("offset",!1),oe=":",ae=n(":",!1),se=function(e){return e},ue="=",le=n("=",!1),ce=function(e){return e},fe=/^[^{}#\\\0-\x08\x0E-\x1F\x7F]/,he=i(["{","}","#","\\",["\0","\b"],["",""],""],!0,!1),de="\\\\",pe=n("\\\\",!1),ge=function(){return"\\"},me="\\#",ve=n("\\#",!1),ye=function(){return"#"},$e="\\{",be=n("\\{",!1),we=function(){return"{"},xe="\\}",_e=n("\\}",!1),Se=function(){return"}"},ke="\\u",Ce=n("\\u",!1),Ee=function(e,t,n,r){return String.fromCharCode(parseInt("0x"+e+t+n+r))},Me=/^[0-9]/,Te=i([["0","9"]],!1,!1),Ae=/^[0-9a-fA-F]/,De=i([["0","9"],["a","f"],["A","F"]],!1,!1),Ne=/^[ \t\n\r]/,Oe=i([" ","\t","\n","\r"],!1,!1),Pe=0,Ie=0,je=[{line:1,column:1}],Le=0,Re=[],Ve=0;if("startRule"in t){if(!(t.startRule in T))throw new Error("Can't start parsing from rule \""+t.startRule+'".');A=T[t.startRule]}if((E=A())!==M&&Pe===e.length)return E;throw E!==M&&Pe<e.length&&u(function(){return{type:"end"}}()),l(Re,Le<e.length?e.charAt(Le):null,Le<e.length?s(Le,Le+1):s(Le,Le))}!function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(r,Error),r.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function o(e){return a[e.type](e)}var a={literal:function(e){return'"'+r(e.text)+'"'},class:function(e){var t,n="";for(t=0;t<e.parts.length;t++)n+=e.parts[t]instanceof Array?i(e.parts[t][0])+"-"+i(e.parts[t][1]):i(e.parts[t]);return"["+(e.inverted?"^":"")+n+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};return"Expected "+function(e){var t,n,r=new Array(e.length);for(t=0;t<e.length;t++)r[t]=o(e[t]);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+function(e){return e?'"'+r(e)+'"':"end of input"}(t)+" found."},t.exports={SyntaxError:r,parse:i}},{}],9:[function(e,t,n){function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(f===setTimeout)return setTimeout(e,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function a(e){if(h===clearTimeout)return clearTimeout(e);if((h===i||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(e);try{return h(e)}catch(t){try{return h.call(null,e)}catch(t){return h.call(this,e)}}}function s(){m&&p&&(m=!1,p.length?g=p.concat(g):v=-1,g.length&&u())}function u(){if(!m){var e=o(s);m=!0;for(var t=g.length;t;){for(p=g,g=[];++v<t;)p&&p[v].run();v=-1,t=g.length}p=null,m=!1,a(e)}}function l(e,t){this.fun=e,this.array=t}function c(){}var f,h,d=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(e){f=r}try{h="function"==typeof clearTimeout?clearTimeout:i}catch(e){h=i}}();var p,g=[],m=!1,v=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];g.push(new l(e,t)),1!==g.length||m||o(u)},l.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],10:[function(e,t,n){t.exports=e("./reserved-words")},{"./reserved-words":11}],11:[function(e,t,n){function r(){return Array.prototype.map.call(arguments,function(e){return"string"==typeof e?e:Object.keys(e).join(" ")}).join(" ").split(/\s+/).reduce(function(e,t){return e[t]=!0,e},{})}var i=e("assert"),o={es3:3,es5:5,es2015:6,es7:7,es6:6,default:5,next:6},a=n.KEYWORDS={};n.check=function(e,t,n){t=t||o.default;var r=o[t]||t;return n&&r>=5&&(r+="-strict"),i(a[r],"Unknown dialect"),a[r][e]},a[3]=r("break    else       new     var","case     finally    return  void","catch    for        switch  while","continue function   this    with","default  if         throw","delete   in         try","do       instanceof typeof","abstract enum       int        short","boolean  export     interface  static","byte     extends    long       super","char     final      native     synchronized","class    float      package    throws","const    goto       private    transient","debugger implements protected  volatile","double   import     public","null true false"),a[5]=r("break    do       instanceof typeof","case     else     new        var","catch    finally  return     void","continue for      switch     while","debugger function this       with","default  if       throw","delete   in       try","class enum extends super","const export import","null true false"),a["5-strict"]=r(a[5],"implements let     private   public yield","interface  package protected static"),a[6]=r("break    do       in         typeof","case     else     instanceof var","catch    export   new        void","class    extends  return     while","const    finally  super      with","continue for      switch     yield","debugger function this","default  if       throw","delete   import   try","enum await","null true false"),a["6-strict"]=r(a[6],"let static","implements package protected","interface private public")},{assert:4}],12:[function(e,t,n){t.exports=function(e){
return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],13:[function(e,t,n){(function(t,r){function i(e,t){var r={seen:[],stylize:a};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(t)?r.showHidden=t:t&&n._extend(r,t),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),u(r,e,r.depth)}function o(e,t){var n=i.styles[t];return n?"["+i.colors[n][0]+"m"+e+"["+i.colors[n][1]+"m":e}function a(e,t){return e}function s(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function u(e,t,r){if(e.customInspect&&t&&C(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return $(i)||(i=u(e,i,r)),i}var o=l(e,t);if(o)return o;var a=Object.keys(t),g=s(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),k(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return c(t);if(0===a.length){if(C(t)){var m=t.name?": "+t.name:"";return e.stylize("[Function"+m+"]","special")}if(x(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(S(t))return e.stylize(Date.prototype.toString.call(t),"date");if(k(t))return c(t)}var v="",y=!1,b=["{","}"];if(p(t)&&(y=!0,b=["[","]"]),C(t)){v=" [Function"+(t.name?": "+t.name:"")+"]"}if(x(t)&&(v=" "+RegExp.prototype.toString.call(t)),S(t)&&(v=" "+Date.prototype.toUTCString.call(t)),k(t)&&(v=" "+c(t)),0===a.length&&(!y||0==t.length))return b[0]+v+b[1];if(r<0)return x(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var w;return w=y?f(e,t,r,g,a):a.map(function(n){return h(e,t,r,g,n,y)}),e.seen.pop(),d(w,v,b)}function l(e,t){if(w(t))return e.stylize("undefined","undefined");if($(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)D(t,String(a))?o.push(h(e,t,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(e,t,n,r,i,!0))}),o}function h(e,t,n,r,i,o){var a,s,l;if(l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},l.get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),D(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=m(n)?u(e,l.value,null):u(e,l.value,n-1),s.indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n"))):s=e.stylize("[Circular]","special")),w(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e,t,n){var r=0;return e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function p(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function m(e){return null===e}function v(e){return null==e}function y(e){return"number"==typeof e}function $(e){return"string"==typeof e}function b(e){return"symbol"==typeof e}function w(e){return void 0===e}function x(e){return _(e)&&"[object RegExp]"===M(e)}function _(e){return"object"==typeof e&&null!==e}function S(e){return _(e)&&"[object Date]"===M(e)}function k(e){return _(e)&&("[object Error]"===M(e)||e instanceof Error)}function C(e){return"function"==typeof e}function E(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function M(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}function A(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),I[e.getMonth()],t].join(" ")}function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
var N=/%[sdj%]/g;n.format=function(e){if(!$(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(i(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,a=String(e).replace(N,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n<o;s=r[++n])m(s)||!_(s)?a+=" "+s:a+=" "+i(s);return a},n.deprecate=function(e,i){function o(){if(!a){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),a=!0}return e.apply(this,arguments)}if(w(r.process))return function(){return n.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var a=!1;return o};var O,P={};n.debuglog=function(e){if(w(O)&&(O=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!P[e])if(new RegExp("\\b"+e+"\\b","i").test(O)){var r=t.pid;P[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else P[e]=function(){};return P[e]},n.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=p,n.isBoolean=g,n.isNull=m,n.isNullOrUndefined=v,n.isNumber=y,n.isString=$,n.isSymbol=b,n.isUndefined=w,n.isRegExp=x,n.isObject=_,n.isDate=S,n.isError=k,n.isFunction=C,n.isPrimitive=E,n.isBuffer=e("./support/isBuffer");var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];n.log=function(){console.log("%s - %s",A(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!_(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":12,_process:9,inherits:5}]},{},[2])(2)}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";function e(){return yr.apply(null,arguments)}function t(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function n(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e){var t;for(t in e)return!1;return!0}function i(e){return void 0===e}function o(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function s(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,n,r){return vt(e,t,n,r,!0).utc()}function f(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function h(e){return null==e._pf&&(e._pf=f()),e._pf}function d(e){if(null==e._isValid){var t=h(e),n=br.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function p(e){var t=c(NaN);return null!=e?l(h(t),e):h(t).userInvalidated=!0,t}function g(e,t){var n,r,o;if(i(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),i(t._i)||(e._i=t._i),i(t._f)||(e._f=t._f),i(t._l)||(e._l=t._l),i(t._strict)||(e._strict=t._strict),i(t._tzm)||(e._tzm=t._tzm),i(t._isUTC)||(e._isUTC=t._isUTC),i(t._offset)||(e._offset=t._offset),i(t._pf)||(e._pf=h(t)),i(t._locale)||(e._locale=t._locale),wr.length>0)for(n=0;n<wr.length;n++)r=wr[n],o=t[r],i(o)||(e[r]=o);return e}function m(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===xr&&(xr=!0,e.updateOffset(this),xr=!1)}function v(e){return e instanceof m||null!=e&&null!=e._isAMomentObject}function y(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function $(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=y(t)),n}function b(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&$(e[r])!==$(t[r]))&&a++;return a+o}function w(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function x(t,n){var r=!0;return l(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),r){for(var i,o=[],a=0;a<arguments.length;a++){if(i="","object"==typeof arguments[a]){i+="\n["+a+"] ";for(var s in arguments[0])i+=s+": "+arguments[0][s]+", ";i=i.slice(0,-2)}else i=arguments[a];o.push(i)}w(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),r=!1}return n.apply(this,arguments)},n)}function _(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),_r[t]||(w(n),_r[t]=!0)}function S(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function k(e){var t,n;for(n in e)t=e[n],S(t)?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function C(e,t){var r,i=l({},e);for(r in t)u(t,r)&&(n(e[r])&&n(t[r])?(i[r]={},l(i[r],e[r]),l(i[r],t[r])):null!=t[r]?i[r]=t[r]:delete i[r]);for(r in e)u(e,r)&&!u(t,r)&&n(e[r])&&(i[r]=l({},i[r]));return i}function E(e){null!=e&&this.set(e)}function M(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return S(r)?r.call(t,n):r}function T(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function A(){return this._invalidDate}function D(e){return this._ordinal.replace("%d",e)}function N(e,t,n,r){var i=this._relativeTime[n];return S(i)?i(e,t,n,r):i.replace(/%d/i,e)}function O(e,t){var n=this._relativeTime[e>0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)}function P(e,t){var n=e.toLowerCase();Dr[n]=Dr[n+"s"]=Dr[t]=e}function I(e){return"string"==typeof e?Dr[e]||Dr[e.toLowerCase()]:void 0}function j(e){var t,n,r={};for(n in e)u(e,n)&&(t=I(n))&&(r[t]=e[n]);return r}function L(e,t){Nr[e]=t}function R(e){var t=[];for(var n in e)t.push({unit:n,priority:Nr[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function V(t,n){return function(r){return null!=r?(Y(this,t,r),e.updateOffset(this,n),this):F(this,t)}}function F(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Y(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function H(e){return e=I(e),S(this[e])?this[e]():this}function q(e,t){if("object"==typeof e){e=j(e);for(var n=R(e),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit])}else if(e=I(e),S(this[e]))return this[e](t);return this}function z(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function U(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(jr[e]=i),t&&(jr[t[0]]=function(){return z(i.apply(this,arguments),t[1],t[2])}),n&&(jr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function B(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function W(e){var t,n,r=e.match(Or);for(t=0,n=r.length;t<n;t++)jr[r[t]]?r[t]=jr[r[t]]:r[t]=B(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=S(r[i])?r[i].call(t,e):r[i];return o}}function G(e,t){return e.isValid()?(t=X(t,e.localeData()),Ir[t]=Ir[t]||W(t),Ir[t](e)):e.localeData().invalidDate()}function X(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(Pr.lastIndex=0;r>=0&&Pr.test(e);)e=e.replace(Pr,n),Pr.lastIndex=0,r-=1;return e}function K(e,t,n){ei[e]=S(t)?t:function(e,r){return e&&n?n:t}}function Z(e,t){return u(ei,e)?ei[e](t._strict,t._locale):new RegExp(J(e))}function J(e){return Q(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function Q(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ee(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),o(t)&&(r=function(e,n){n[t]=$(e)}),n=0;n<e.length;n++)ti[e[n]]=r}function te(e,t){ee(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function ne(e,t,n){null!=t&&u(ti,e)&&ti[e](t,n._a,n,e)}function re(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function ie(e,n){return e?t(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||hi).test(n)?"format":"standalone"][e.month()]:t(this._months)?this._months:this._months.standalone}function oe(e,n){return e?t(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[hi.test(n)?"format":"standalone"][e.month()]:t(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ae(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=c([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?(i=fi.call(this._shortMonthsParse,a),-1!==i?i:null):(i=fi.call(this._longMonthsParse,a),-1!==i?i:null):"MMM"===t?-1!==(i=fi.call(this._shortMonthsParse,a))?i:(i=fi.call(this._longMonthsParse,a),-1!==i?i:null):-1!==(i=fi.call(this._longMonthsParse,a))?i:(i=fi.call(this._shortMonthsParse,a),-1!==i?i:null)}function se(e,t,n){var r,i,o;if(this._monthsParseExact)return ae.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=c([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ue(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=$(t);else if(t=e.localeData().monthsParse(t),!o(t))return e;return n=Math.min(e.date(),re(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function le(t){return null!=t?(ue(this,t),e.updateOffset(this,!0),this):F(this,"Month")}function ce(){return re(this.year(),this.month())}function fe(e){return this._monthsParseExact?(u(this,"_monthsRegex")||de.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=gi),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function he(e){return this._monthsParseExact?(u(this,"_monthsRegex")||de.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=mi),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function de(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=c([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Q(r[t]),i[t]=Q(i[t]);for(t=0;t<24;t++)o[t]=Q(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function pe(e){return ge(e)?366:365}function ge(e){return e%4==0&&e%100!=0||e%400==0}function me(){return ge(this.year())}function ve(e,t,n,r,i,o,a){var s=new Date(e,t,n,r,i,o,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function ye(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function $e(e,t,n){var r=7+t-n;return-(7+ye(e,0,r).getUTCDay()-t)%7+r-1}function be(e,t,n,r,i){var o,a,s=(7+n-r)%7,u=$e(e,r,i),l=1+7*(t-1)+s+u;return l<=0?(o=e-1,a=pe(o)+l):l>pe(e)?(o=e+1,a=l-pe(e)):(o=e,a=l),{year:o,dayOfYear:a}}function we(e,t,n){var r,i,o=$e(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(i=e.year()-1,r=a+xe(i,t,n)):a>xe(e.year(),t,n)?(r=a-xe(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function xe(e,t,n){var r=$e(e,t,n),i=$e(e+1,t,n);return(pe(e)-r+i)/7}function _e(e){return we(e,this._week.dow,this._week.doy).week}function Se(){return this._week.dow}function ke(){return this._week.doy}function Ce(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ee(e){var t=we(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Me(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Te(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ae(e,n){return e?t(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(n)?"format":"standalone"][e.day()]:t(this._weekdays)?this._weekdays:this._weekdays.standalone}function De(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ne(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Oe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=c([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(i=fi.call(this._weekdaysParse,a),-1!==i?i:null):"ddd"===t?(i=fi.call(this._shortWeekdaysParse,a),-1!==i?i:null):(i=fi.call(this._minWeekdaysParse,a),-1!==i?i:null):"dddd"===t?-1!==(i=fi.call(this._weekdaysParse,a))?i:-1!==(i=fi.call(this._shortWeekdaysParse,a))?i:(i=fi.call(this._minWeekdaysParse,a),-1!==i?i:null):"ddd"===t?-1!==(i=fi.call(this._shortWeekdaysParse,a))?i:-1!==(i=fi.call(this._weekdaysParse,a))?i:(i=fi.call(this._minWeekdaysParse,a),-1!==i?i:null):-1!==(i=fi.call(this._minWeekdaysParse,a))?i:-1!==(i=fi.call(this._weekdaysParse,a))?i:(i=fi.call(this._shortWeekdaysParse,a),-1!==i?i:null)}function Pe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Oe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=c([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ie(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Me(e,this.localeData()),this.add(e-t,"d")):t}function je(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Le(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Te(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Re(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=xi),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ve(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=_i),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Fe(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Si),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ye(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=c([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),u.push(o),l.push(r),l.push(i),l.push(o);for(a.sort(e),s.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)s[t]=Q(s[t]),u[t]=Q(u[t]),l[t]=Q(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function He(){return this.hours()%12||12}function qe(){return this.hours()||24}function ze(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ue(e,t){return t._meridiemParse}function Be(e){return"p"===(e+"").toLowerCase().charAt(0)}function We(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Ge(e){return e?e.toLowerCase().replace("_","-"):e}function Xe(e){for(var t,n,r,i,o=0;o<e.length;){for(i=Ge(e[o]).split("-"),t=i.length,n=Ge(e[o+1]),n=n?n.split("-"):null;t>0;){if(r=Ke(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&b(i,n,!0)>=t-1)break;t--}o++}return null}function Ke(e){var t=null;if(!Ti[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=ki._abbr,require("./locale/"+e),Ze(t)}catch(e){}return Ti[e]}function Ze(e,t){var n;return e&&(n=i(t)?et(e):Je(e,t))&&(ki=n),ki._abbr}function Je(e,t){if(null!==t){var n=Mi;if(t.abbr=e,null!=Ti[e])_("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Ti[e]._config;else if(null!=t.parentLocale){if(null==Ti[t.parentLocale])return Ai[t.parentLocale]||(Ai[t.parentLocale]=[]),Ai[t.parentLocale].push({name:e,config:t}),null;n=Ti[t.parentLocale]._config}return Ti[e]=new E(C(n,t)),Ai[e]&&Ai[e].forEach(function(e){Je(e.name,e.config)}),Ze(e),Ti[e]}return delete Ti[e],null}function Qe(e,t){if(null!=t){var n,r=Mi;null!=Ti[e]&&(r=Ti[e]._config),t=C(r,t),n=new E(t),n.parentLocale=Ti[e],Ti[e]=n,Ze(e)}else null!=Ti[e]&&(null!=Ti[e].parentLocale?Ti[e]=Ti[e].parentLocale:null!=Ti[e]&&delete Ti[e]);return Ti[e]}function et(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ki;if(!t(e)){if(n=Ke(e))return n;e=[e]}return Xe(e)}function tt(){return Cr(Ti)}function nt(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ri]<0||n[ri]>11?ri:n[ii]<1||n[ii]>re(n[ni],n[ri])?ii:n[oi]<0||n[oi]>24||24===n[oi]&&(0!==n[ai]||0!==n[si]||0!==n[ui])?oi:n[ai]<0||n[ai]>59?ai:n[si]<0||n[si]>59?si:n[ui]<0||n[ui]>999?ui:-1,h(e)._overflowDayOfYear&&(t<ni||t>ii)&&(t=ii),h(e)._overflowWeeks&&-1===t&&(t=li),h(e)._overflowWeekday&&-1===t&&(t=ci),h(e).overflow=t),e}function rt(e){var t,n,r,i,o,a,s=e._i,u=Di.exec(s)||Ni.exec(s);if(u){for(h(e).iso=!0,t=0,n=Pi.length;t<n;t++)if(Pi[t][1].exec(u[1])){i=Pi[t][0],r=!1!==Pi[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=Ii.length;t<n;t++)if(Ii[t][1].exec(u[3])){o=(u[2]||" ")+Ii[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!Oi.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),ct(e)}else e._isValid=!1}function it(e){var t,n,r,i,o,a,s,u,l={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"},c="YXWVUTSRQPONZABCDEFGHIKLM";if(t=e._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),n=Li.exec(t)){if(r=n[1]?"ddd"+(5===n[1].length?", ":" "):"",i="D MMM "+(n[2].length>10?"YYYY ":"YY "),o="HH:mm"+(n[4]?":ss":""),n[1]){var f=new Date(n[2]),d=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][f.getDay()];if(n[1].substr(0,3)!==d)return h(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(n[5].length){case 2:0===u?s=" +0000":(u=c.indexOf(n[5][1].toUpperCase())-12,s=(u<0?" -":" +")+(""+u).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:s=l[n[5]];break;default:s=l[" GMT"]}n[5]=s,e._i=n.splice(1).join(""),a=" ZZ",e._f=r+i+o+a,ct(e),h(e).rfc2822=!0}else e._isValid=!1}function ot(t){var n=ji.exec(t._i);if(null!==n)return void(t._d=new Date(+n[1]));rt(t),!1===t._isValid&&(delete t._isValid,it(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))}function at(e,t,n){return null!=e?e:null!=t?t:n}function st(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ut(e){var t,n,r,i,o=[];if(!e._d){for(r=st(e),e._w&&null==e._a[ii]&&null==e._a[ri]&&lt(e),null!=e._dayOfYear&&(i=at(e._a[ni],r[ni]),(e._dayOfYear>pe(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=ye(i,0,e._dayOfYear),e._a[ri]=n.getUTCMonth(),e._a[ii]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[oi]&&0===e._a[ai]&&0===e._a[si]&&0===e._a[ui]&&(e._nextDay=!0,e._a[oi]=0),e._d=(e._useUTC?ye:ve).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[oi]=24)}}function lt(e){var t,n,r,i,o,a,s,u;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,a=4,n=at(t.GG,e._a[ni],we(yt(),1,4).year),r=at(t.W,1),((i=at(t.E,1))<1||i>7)&&(u=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var l=we(yt(),o,a);n=at(t.gg,e._a[ni],l.year),r=at(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o}r<1||r>xe(n,o,a)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(s=be(n,r,i,o,a),e._a[ni]=s.year,e._dayOfYear=s.dayOfYear)}function ct(t){if(t._f===e.ISO_8601)return void rt(t);if(t._f===e.RFC_2822)return void it(t);t._a=[],h(t).empty=!0;var n,r,i,o,a,s=""+t._i,u=s.length,l=0;for(i=X(t._f,t._locale).match(Or)||[],n=0;n<i.length;n++)o=i[n],r=(s.match(Z(o,t))||[])[0],r&&(a=s.substr(0,s.indexOf(r)),a.length>0&&h(t).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),l+=r.length),jr[o]?(r?h(t).empty=!1:h(t).unusedTokens.push(o),ne(o,r,t)):t._strict&&!r&&h(t).unusedTokens.push(o);h(t).charsLeftOver=u-l,s.length>0&&h(t).unusedInput.push(s),t._a[oi]<=12&&!0===h(t).bigHour&&t._a[oi]>0&&(h(t).bigHour=void 0),h(t).parsedDateParts=t._a.slice(0),h(t).meridiem=t._meridiem,t._a[oi]=ft(t._locale,t._a[oi],t._meridiem),ut(t),nt(t)}function ft(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function ht(e){var t,n,r,i,o;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],ct(t),d(t)&&(o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,(null==r||o<r)&&(r=o,n=t));l(e,n||t)}function dt(e){if(!e._d){var t=j(e._i);e._a=s([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ut(e)}}function pt(e){var t=new m(nt(gt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function gt(e){var n=e._i,r=e._f;return e._locale=e._locale||et(e._l),null===n||void 0===r&&""===n?p({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),v(n)?new m(nt(n)):(a(n)?e._d=n:t(r)?ht(e):r?ct(e):mt(e),d(e)||(e._d=null),e))}function mt(r){var u=r._i;i(u)?r._d=new Date(e.now()):a(u)?r._d=new Date(u.valueOf()):"string"==typeof u?ot(r):t(u)?(r._a=s(u.slice(0),function(e){return parseInt(e,10)}),ut(r)):n(u)?dt(r):o(u)?r._d=new Date(u):e.createFromInputFallback(r)}function vt(e,i,o,a,s){var u={};return!0!==o&&!1!==o||(a=o,o=void 0),(n(e)&&r(e)||t(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=o,u._i=e,u._f=i,u._strict=a,pt(u)}function yt(e,t,n,r){return vt(e,t,n,r,!1)}function $t(e,n){var r,i;if(1===n.length&&t(n[0])&&(n=n[0]),!n.length)return yt();for(r=n[0],i=1;i<n.length;++i)n[i].isValid()&&!n[i][e](r)||(r=n[i]);return r}function bt(){return $t("isBefore",[].slice.call(arguments,0))}function wt(){return $t("isAfter",[].slice.call(arguments,0))}function xt(e){for(var t in e)if(-1===Yi.indexOf(t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Yi.length;++r)if(e[Yi[r]]){if(n)return!1;parseFloat(e[Yi[r]])!==$(e[Yi[r]])&&(n=!0)}return!0}function _t(){return this._isValid}function St(){return qt(NaN)}function kt(e){var t=j(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||0,a=t.day||0,s=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._isValid=xt(t),this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=et(),this._bubble()}function Ct(e){return e instanceof kt}function Et(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Mt(e,t){U(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+z(~~(e/60),2)+t+z(~~e%60,2)})}function Tt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match(Hi)||["-",0,0],o=60*i[1]+$(i[2]);return 0===o?0:"+"===i[0]?o:-o}function At(t,n){var r,i;return n._isUTC?(r=n.clone(),i=(v(t)||a(t)?t.valueOf():yt(t).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),e.updateOffset(r,!1),r):yt(t).local()}function Dt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Nt(t,n,r){var i,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Tt(Zr,t)))return this}else Math.abs(t)<16&&!r&&(t*=60);return!this._isUTC&&n&&(i=Dt(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==t&&(!n||this._changeInProgress?Gt(this,qt(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Dt(this)}function Ot(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Pt(e){return this.utcOffset(0,e)}function It(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Dt(this),"m")),this}function jt(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Tt(Kr,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Lt(e){return!!this.isValid()&&(e=e?yt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Rt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vt(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),e=gt(e),e._a){var t=e._isUTC?c(e._a):yt(e._a);this._isDSTShifted=this.isValid()&&b(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ft(){return!!this.isValid()&&!this._isUTC}function Yt(){return!!this.isValid()&&this._isUTC}function Ht(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function qt(e,t){var n,r,i,a=e,s=null;return Ct(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:o(e)?(a={},t?a[t]=e:a.milliseconds=e):(s=qi.exec(e))?(n="-"===s[1]?-1:1,a={y:0,d:$(s[ii])*n,h:$(s[oi])*n,m:$(s[ai])*n,s:$(s[si])*n,ms:$(Et(1e3*s[ui]))*n}):(s=zi.exec(e))?(n="-"===s[1]?-1:1,a={y:zt(s[2],n),M:zt(s[3],n),w:zt(s[4],n),d:zt(s[5],n),h:zt(s[6],n),m:zt(s[7],n),s:zt(s[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Bt(yt(a.from),yt(a.to)),a={},a.ms=i.milliseconds,a.M=i.months),r=new kt(a),Ct(e)&&u(e,"_locale")&&(r._locale=e._locale),r}function zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ut(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Bt(e,t){var n;return e.isValid()&&t.isValid()?(t=At(t,e),e.isBefore(t)?n=Ut(e,t):(n=Ut(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Wt(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(_(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=qt(n,r),Gt(this,i,e),this}}function Gt(t,n,r,i){var o=n._milliseconds,a=Et(n._days),s=Et(n._months);t.isValid()&&(i=null==i||i,o&&t._d.setTime(t._d.valueOf()+o*r),a&&Y(t,"Date",F(t,"Date")+a*r),s&&ue(t,F(t,"Month")+s*r),i&&e.updateOffset(t,a||s))}function Xt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Kt(t,n){var r=t||yt(),i=At(r,this).startOf("day"),o=e.calendarFormat(this,i)||"sameElse",a=n&&(S(n[o])?n[o].call(this,r):n[o]);return this.format(a||this.localeData().calendar(o,this,yt(r)))}function Zt(){return new m(this)}function Jt(e,t){var n=v(e)?e:yt(e);return!(!this.isValid()||!n.isValid())&&(t=I(i(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Qt(e,t){var n=v(e)?e:yt(e);return!(!this.isValid()||!n.isValid())&&(t=I(i(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function en(e,t,n,r){return r=r||"()",("("===r[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))}function tn(e,t){var n,r=v(e)?e:yt(e);return!(!this.isValid()||!r.isValid())&&(t=I(t||"millisecond"),"millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function nn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function rn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function on(e,t,n){var r,i,o,a;return this.isValid()?(r=At(e,this),r.isValid()?(i=6e4*(r.utcOffset()-this.utcOffset()),t=I(t),"year"===t||"month"===t||"quarter"===t?(a=an(this,r),"quarter"===t?a/=3:"year"===t&&(a/=12)):(o=this-r,a="second"===t?o/1e3:"minute"===t?o/6e4:"hour"===t?o/36e5:"day"===t?(o-i)/864e5:"week"===t?(o-i)/6048e5:o),n?a:y(a)):NaN):NaN}function an(e,t){var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");return t-o<0?(n=e.clone().add(i-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(i+1,"months"),r=(t-o)/(n-o)),-(i+r)||0}function sn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function un(){if(!this.isValid())return null;var e=this.clone().utc();return e.year()<0||e.year()>9999?G(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):S(Date.prototype.toISOString)?this.toDate().toISOString():G(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function ln(){
if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)}function cn(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=G(this,t);return this.localeData().postformat(n)}function fn(e,t){return this.isValid()&&(v(e)&&e.isValid()||yt(e).isValid())?qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function hn(e){return this.from(yt(),e)}function dn(e,t){return this.isValid()&&(v(e)&&e.isValid()||yt(e).isValid())?qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pn(e){return this.to(yt(),e)}function gn(e){var t;return void 0===e?this._locale._abbr:(t=et(e),null!=t&&(this._locale=t),this)}function mn(){return this._locale}function vn(e){switch(e=I(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function yn(e){return void 0===(e=I(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function $n(){return this._d.valueOf()-6e4*(this._offset||0)}function bn(){return Math.floor(this.valueOf()/1e3)}function wn(){return new Date(this.valueOf())}function xn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _n(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Sn(){return this.isValid()?this.toISOString():null}function kn(){return d(this)}function Cn(){return l({},h(this))}function En(){return h(this).overflow}function Mn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Tn(e,t){U(0,[e,e.length],0,t)}function An(e){return Pn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Dn(e){return Pn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Nn(){return xe(this.year(),1,4)}function On(){var e=this.localeData()._week;return xe(this.year(),e.dow,e.doy)}function Pn(e,t,n,r,i){var o;return null==e?we(this,r,i).year:(o=xe(e,r,i),t>o&&(t=o),In.call(this,e,t,n,r,i))}function In(e,t,n,r,i){var o=be(e,t,n,r,i),a=ye(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function jn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Ln(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Rn(e,t){t[ui]=$(1e3*("0."+e))}function Vn(){return this._isUTC?"UTC":""}function Fn(){return this._isUTC?"Coordinated Universal Time":""}function Yn(e){return yt(1e3*e)}function Hn(){return yt.apply(null,arguments).parseZone()}function qn(e){return e}function zn(e,t,n,r){var i=et(),o=c().set(r,t);return i[n](o,e)}function Un(e,t,n){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return zn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=zn(e,r,n,"month");return i}function Bn(e,t,n,r){"boolean"==typeof e?(o(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,o(t)&&(n=t,t=void 0),t=t||"");var i=et(),a=e?i._week.dow:0;if(null!=n)return zn(t,(n+a)%7,r,"day");var s,u=[];for(s=0;s<7;s++)u[s]=zn(t,(s+a)%7,r,"day");return u}function Wn(e,t){return Un(e,t,"months")}function Gn(e,t){return Un(e,t,"monthsShort")}function Xn(e,t,n){return Bn(e,t,n,"weekdays")}function Kn(e,t,n){return Bn(e,t,n,"weekdaysShort")}function Zn(e,t,n){return Bn(e,t,n,"weekdaysMin")}function Jn(){var e=this._data;return this._milliseconds=to(this._milliseconds),this._days=to(this._days),this._months=to(this._months),e.milliseconds=to(e.milliseconds),e.seconds=to(e.seconds),e.minutes=to(e.minutes),e.hours=to(e.hours),e.months=to(e.months),e.years=to(e.years),this}function Qn(e,t,n,r){var i=qt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function er(e,t){return Qn(this,e,t,1)}function tr(e,t){return Qn(this,e,t,-1)}function nr(e){return e<0?Math.floor(e):Math.ceil(e)}function rr(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*nr(or(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=y(o/1e3),u.seconds=e%60,t=y(e/60),u.minutes=t%60,n=y(t/60),u.hours=n%24,a+=y(n/24),i=y(ir(a)),s+=i,a-=nr(or(i)),r=y(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function ir(e){return 4800*e/146097}function or(e){return 146097*e/4800}function ar(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=I(e))||"year"===e)return t=this._days+r/864e5,n=this._months+ir(t),"month"===e?n:n/12;switch(t=this._days+Math.round(or(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function sr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*$(this._months/12):NaN}function ur(e){return function(){return this.as(e)}}function lr(e){return e=I(e),this.isValid()?this[e+"s"]():NaN}function cr(e){return function(){return this.isValid()?this._data[e]:NaN}}function fr(){return y(this.days()/7)}function hr(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function dr(e,t,n){var r=qt(e).abs(),i=yo(r.as("s")),o=yo(r.as("m")),a=yo(r.as("h")),s=yo(r.as("d")),u=yo(r.as("M")),l=yo(r.as("y")),c=i<=$o.ss&&["s",i]||i<$o.s&&["ss",i]||o<=1&&["m"]||o<$o.m&&["mm",o]||a<=1&&["h"]||a<$o.h&&["hh",a]||s<=1&&["d"]||s<$o.d&&["dd",s]||u<=1&&["M"]||u<$o.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=t,c[3]=+e>0,c[4]=n,hr.apply(null,c)}function pr(e){return void 0===e?yo:"function"==typeof e&&(yo=e,!0)}function gr(e,t){return void 0!==$o[e]&&(void 0===t?$o[e]:($o[e]=t,"s"===e&&($o.ss=t-1),!0))}function mr(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=dr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function vr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r=bo(this._milliseconds)/1e3,i=bo(this._days),o=bo(this._months);e=y(r/60),t=y(e/60),r%=60,e%=60,n=y(o/12),o%=12;var a=n,s=o,u=i,l=t,c=e,f=r,h=this.asSeconds();return h?(h<0?"-":"")+"P"+(a?a+"Y":"")+(s?s+"M":"")+(u?u+"D":"")+(l||c||f?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(f?f+"S":""):"P0D"}var yr,$r;$r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var br=$r,wr=e.momentProperties=[],xr=!1,_r={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var Sr;Sr=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var kr,Cr=Sr,Er={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Mr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Tr=/\d{1,2}/,Ar={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Dr={},Nr={},Or=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Pr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ir={},jr={},Lr=/\d/,Rr=/\d\d/,Vr=/\d{3}/,Fr=/\d{4}/,Yr=/[+-]?\d{6}/,Hr=/\d\d?/,qr=/\d\d\d\d?/,zr=/\d\d\d\d\d\d?/,Ur=/\d{1,3}/,Br=/\d{1,4}/,Wr=/[+-]?\d{1,6}/,Gr=/\d+/,Xr=/[+-]?\d+/,Kr=/Z|[+-]\d\d:?\d\d/gi,Zr=/Z|[+-]\d\d(?::?\d\d)?/gi,Jr=/[+-]?\d+(\.\d{1,3})?/,Qr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ei={},ti={},ni=0,ri=1,ii=2,oi=3,ai=4,si=5,ui=6,li=7,ci=8;kr=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};var fi=kr;U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),U("MMMM",0,0,function(e){return this.localeData().months(this,e)}),P("month","M"),L("month",8),K("M",Hr),K("MM",Hr,Rr),K("MMM",function(e,t){return t.monthsShortRegex(e)}),K("MMMM",function(e,t){return t.monthsRegex(e)}),ee(["M","MM"],function(e,t){t[ri]=$(e)-1}),ee(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[ri]=i:h(n).invalidMonth=e});var hi=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,di="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),pi="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),gi=Qr,mi=Qr;U("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),P("year","y"),L("year",1),K("Y",Xr),K("YY",Hr,Rr),K("YYYY",Br,Fr),K("YYYYY",Wr,Yr),K("YYYYYY",Wr,Yr),ee(["YYYYY","YYYYYY"],ni),ee("YYYY",function(t,n){n[ni]=2===t.length?e.parseTwoDigitYear(t):$(t)}),ee("YY",function(t,n){n[ni]=e.parseTwoDigitYear(t)}),ee("Y",function(e,t){t[ni]=parseInt(e,10)}),e.parseTwoDigitYear=function(e){return $(e)+($(e)>68?1900:2e3)};var vi=V("FullYear",!0);U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),L("week",5),L("isoWeek",5),K("w",Hr),K("ww",Hr,Rr),K("W",Hr),K("WW",Hr,Rr),te(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=$(e)});var yi={dow:0,doy:6};U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),L("day",11),L("weekday",11),L("isoWeekday",11),K("d",Hr),K("e",Hr),K("E",Hr),K("dd",function(e,t){return t.weekdaysMinRegex(e)}),K("ddd",function(e,t){return t.weekdaysShortRegex(e)}),K("dddd",function(e,t){return t.weekdaysRegex(e)}),te(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:h(n).invalidWeekday=e}),te(["d","e","E"],function(e,t,n,r){t[r]=$(e)});var $i="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),bi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),xi=Qr,_i=Qr,Si=Qr;U("H",["HH",2],0,"hour"),U("h",["hh",2],0,He),U("k",["kk",2],0,qe),U("hmm",0,0,function(){return""+He.apply(this)+z(this.minutes(),2)}),U("hmmss",0,0,function(){return""+He.apply(this)+z(this.minutes(),2)+z(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+z(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+z(this.minutes(),2)+z(this.seconds(),2)}),ze("a",!0),ze("A",!1),P("hour","h"),L("hour",13),K("a",Ue),K("A",Ue),K("H",Hr),K("h",Hr),K("k",Hr),K("HH",Hr,Rr),K("hh",Hr,Rr),K("kk",Hr,Rr),K("hmm",qr),K("hmmss",zr),K("Hmm",qr),K("Hmmss",zr),ee(["H","HH"],oi),ee(["k","kk"],function(e,t,n){var r=$(e);t[oi]=24===r?0:r}),ee(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ee(["h","hh"],function(e,t,n){t[oi]=$(e),h(n).bigHour=!0}),ee("hmm",function(e,t,n){var r=e.length-2;t[oi]=$(e.substr(0,r)),t[ai]=$(e.substr(r)),h(n).bigHour=!0}),ee("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[oi]=$(e.substr(0,r)),t[ai]=$(e.substr(r,2)),t[si]=$(e.substr(i)),h(n).bigHour=!0}),ee("Hmm",function(e,t,n){var r=e.length-2;t[oi]=$(e.substr(0,r)),t[ai]=$(e.substr(r))}),ee("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[oi]=$(e.substr(0,r)),t[ai]=$(e.substr(r,2)),t[si]=$(e.substr(i))});var ki,Ci=/[ap]\.?m?\.?/i,Ei=V("Hours",!0),Mi={calendar:Er,longDateFormat:Mr,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Tr,relativeTime:Ar,months:di,monthsShort:pi,week:yi,weekdays:$i,weekdaysMin:wi,weekdaysShort:bi,meridiemParse:Ci},Ti={},Ai={},Di=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ni=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Oi=/Z|[+-]\d\d(?::?\d\d)?/,Pi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ii=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ji=/^\/?Date\((\-?\d+)/i,Li=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;e.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Ri=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=yt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()}),Vi=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=yt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:p()}),Fi=function(){return Date.now?Date.now():+new Date},Yi=["year","quarter","month","week","day","hour","minute","second","millisecond"];Mt("Z",":"),Mt("ZZ",""),K("Z",Zr),K("ZZ",Zr),ee(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Tt(Zr,e)});var Hi=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var qi=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,zi=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;qt.fn=kt.prototype,qt.invalid=St;var Ui=Wt(1,"add"),Bi=Wt(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Wi=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Tn("gggg","weekYear"),Tn("ggggg","weekYear"),Tn("GGGG","isoWeekYear"),Tn("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),L("weekYear",1),L("isoWeekYear",1),K("G",Xr),K("g",Xr),K("GG",Hr,Rr),K("gg",Hr,Rr),K("GGGG",Br,Fr),K("gggg",Br,Fr),K("GGGGG",Wr,Yr),K("ggggg",Wr,Yr),te(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=$(e)}),te(["gg","GG"],function(t,n,r,i){n[i]=e.parseTwoDigitYear(t)}),U("Q",0,"Qo","quarter"),P("quarter","Q"),L("quarter",7),K("Q",Lr),ee("Q",function(e,t){t[ri]=3*($(e)-1)}),U("D",["DD",2],"Do","date"),P("date","D"),L("date",9),K("D",Hr),K("DD",Hr,Rr),K("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ee(["D","DD"],ii),ee("Do",function(e,t){t[ii]=$(e.match(Hr)[0],10)});var Gi=V("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),L("dayOfYear",4),K("DDD",Ur),K("DDDD",Vr),ee(["DDD","DDDD"],function(e,t,n){n._dayOfYear=$(e)}),U("m",["mm",2],0,"minute"),P("minute","m"),L("minute",14),K("m",Hr),K("mm",Hr,Rr),ee(["m","mm"],ai);var Xi=V("Minutes",!1);U("s",["ss",2],0,"second"),P("second","s"),L("second",15),K("s",Hr),K("ss",Hr,Rr),ee(["s","ss"],si);var Ki=V("Seconds",!1);U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),L("millisecond",16),K("S",Ur,Lr),K("SS",Ur,Rr),K("SSS",Ur,Vr);var Zi;for(Zi="SSSS";Zi.length<=9;Zi+="S")K(Zi,Gr);for(Zi="S";Zi.length<=9;Zi+="S")ee(Zi,Rn);var Ji=V("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var Qi=m.prototype;Qi.add=Ui,Qi.calendar=Kt,Qi.clone=Zt,Qi.diff=on,Qi.endOf=yn,Qi.format=cn,Qi.from=fn,Qi.fromNow=hn,Qi.to=dn,Qi.toNow=pn,Qi.get=H,Qi.invalidAt=En,Qi.isAfter=Jt,Qi.isBefore=Qt,Qi.isBetween=en,Qi.isSame=tn,Qi.isSameOrAfter=nn,Qi.isSameOrBefore=rn,Qi.isValid=kn,Qi.lang=Wi,Qi.locale=gn,Qi.localeData=mn,Qi.max=Vi,Qi.min=Ri,Qi.parsingFlags=Cn,Qi.set=q,Qi.startOf=vn,Qi.subtract=Bi,Qi.toArray=xn,Qi.toObject=_n,Qi.toDate=wn,Qi.toISOString=un,Qi.inspect=ln,Qi.toJSON=Sn,Qi.toString=sn,Qi.unix=bn,Qi.valueOf=$n,Qi.creationData=Mn,Qi.year=vi,Qi.isLeapYear=me,Qi.weekYear=An,Qi.isoWeekYear=Dn,Qi.quarter=Qi.quarters=jn,Qi.month=le,Qi.daysInMonth=ce,Qi.week=Qi.weeks=Ce,Qi.isoWeek=Qi.isoWeeks=Ee,Qi.weeksInYear=On,Qi.isoWeeksInYear=Nn,Qi.date=Gi,Qi.day=Qi.days=Ie,Qi.weekday=je,Qi.isoWeekday=Le,Qi.dayOfYear=Ln,Qi.hour=Qi.hours=Ei,Qi.minute=Qi.minutes=Xi,Qi.second=Qi.seconds=Ki,Qi.millisecond=Qi.milliseconds=Ji,Qi.utcOffset=Nt,Qi.utc=Pt,Qi.local=It,Qi.parseZone=jt,Qi.hasAlignedHourOffset=Lt,Qi.isDST=Rt,Qi.isLocal=Ft,Qi.isUtcOffset=Yt,Qi.isUtc=Ht,Qi.isUTC=Ht,Qi.zoneAbbr=Vn,Qi.zoneName=Fn,Qi.dates=x("dates accessor is deprecated. Use date instead.",Gi),Qi.months=x("months accessor is deprecated. Use month instead",le),Qi.years=x("years accessor is deprecated. Use year instead",vi),Qi.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ot),Qi.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Vt);var eo=E.prototype;eo.calendar=M,eo.longDateFormat=T,eo.invalidDate=A,eo.ordinal=D,eo.preparse=qn,eo.postformat=qn,eo.relativeTime=N,eo.pastFuture=O,eo.set=k,eo.months=ie,eo.monthsShort=oe,eo.monthsParse=se,eo.monthsRegex=he,eo.monthsShortRegex=fe,eo.week=_e,eo.firstDayOfYear=ke,eo.firstDayOfWeek=Se,eo.weekdays=Ae,eo.weekdaysMin=Ne,eo.weekdaysShort=De,eo.weekdaysParse=Pe,eo.weekdaysRegex=Re,eo.weekdaysShortRegex=Ve,eo.weekdaysMinRegex=Fe,eo.isPM=Be,eo.meridiem=We,Ze("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===$(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),e.lang=x("moment.lang is deprecated. Use moment.locale instead.",Ze),e.langData=x("moment.langData is deprecated. Use moment.localeData instead.",et);var to=Math.abs,no=ur("ms"),ro=ur("s"),io=ur("m"),oo=ur("h"),ao=ur("d"),so=ur("w"),uo=ur("M"),lo=ur("y"),co=cr("milliseconds"),fo=cr("seconds"),ho=cr("minutes"),po=cr("hours"),go=cr("days"),mo=cr("months"),vo=cr("years"),yo=Math.round,$o={ss:44,s:45,m:45,h:22,d:26,M:11},bo=Math.abs,wo=kt.prototype;return wo.isValid=_t,wo.abs=Jn,wo.add=er,wo.subtract=tr,wo.as=ar,wo.asMilliseconds=no,wo.asSeconds=ro,wo.asMinutes=io,wo.asHours=oo,wo.asDays=ao,wo.asWeeks=so,wo.asMonths=uo,wo.asYears=lo,wo.valueOf=sr,wo._bubble=rr,wo.get=lr,wo.milliseconds=co,wo.seconds=fo,wo.minutes=ho,wo.hours=po,wo.days=go,wo.weeks=fr,wo.months=mo,wo.years=vo,wo.humanize=mr,wo.toISOString=vr,wo.toString=vr,wo.toJSON=vr,wo.locale=gn,wo.localeData=mn,wo.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vr),wo.lang=Wi,U("X",0,0,"unix"),U("x",0,0,"valueOf"),K("x",Xr),K("X",Jr),ee("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ee("x",function(e,t,n){n._d=new Date($(e))}),e.version="2.18.1",function(e){yr=e}(yt),e.fn=Qi,e.min=bt,e.max=wt,e.now=Fi,e.utc=c,e.unix=Yn,e.months=Wn,e.isDate=a,e.locale=Ze,e.invalid=p,e.duration=qt,e.isMoment=v,e.weekdays=Xn,e.parseZone=Hn,e.localeData=et,e.isDuration=Ct,e.monthsShort=Gn,e.weekdaysMin=Zn,e.defineLocale=Je,e.updateLocale=Qe,e.locales=tt,e.weekdaysShort=Kn,e.normalizeUnits=I,e.relativeTimeRounding=pr,e.relativeTimeThreshold=gr,e.calendarFormat=Xt,e.prototype=Qi,e}),
// https://d3js.org Version 4.7.4. Copyright 2017 Mike Bostock.
function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.d3=e.d3||{})}(this,function(e){"use strict";function t(e){return function(t,n){return Ol(e(t),n)}}function n(e,t){return[e,t]}function r(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Zl?i*=10:o>=Jl?i*=5:o>=Ql&&(i*=2),t<e?-i:i}function i(e){return e.length}function o(e){return"translate("+e+",0)"}function a(e){return"translate(0,"+e+")"}function s(e){var t=e.bandwidth()/2;return e.round()&&(t=Math.round(t)),function(n){return e(n)+t}}function u(){return!this.__axis}function l(e,t){function n(n){var o=null==l?t.ticks?t.ticks.apply(t,i):t.domain():l,a=null==c?t.tickFormat?t.tickFormat.apply(t,i):yc:c,v=Math.max(f,0)+d,y=t.range(),$=y[0]+.5,b=y[y.length-1]+.5,w=(t.bandwidth?s:yc)(t.copy()),x=n.selection?n.selection():n,_=x.selectAll(".domain").data([null]),S=x.selectAll(".tick").data(o,t).order(),k=S.exit(),C=S.enter().append("g").attr("class","tick"),E=S.select("line"),M=S.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),S=S.merge(C),E=E.merge(C.append("line").attr("stroke","#000").attr(r+"2",p*f).attr(g+"1",.5).attr(g+"2",.5)),M=M.merge(C.append("text").attr("fill","#000").attr(r,p*v).attr(g,.5).attr("dy",e===$c?"0em":e===wc?"0.71em":"0.32em")),n!==x&&(_=_.transition(n),S=S.transition(n),E=E.transition(n),M=M.transition(n),k=k.transition(n).attr("opacity",_c).attr("transform",function(e){return isFinite(e=w(e))?m(e):this.getAttribute("transform")}),C.attr("opacity",_c).attr("transform",function(e){var t=this.parentNode.__axis;return m(t&&isFinite(t=t(e))?t:w(e))})),k.remove(),_.attr("d",e===xc||e==bc?"M"+p*h+","+$+"H0.5V"+b+"H"+p*h:"M"+$+","+p*h+"V0.5H"+b+"V"+p*h),S.attr("opacity",1).attr("transform",function(e){return m(w(e))}),E.attr(r+"2",p*f),M.attr(r,p*v).text(a),x.filter(u).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===bc?"start":e===xc?"end":"middle"),x.each(function(){this.__axis=w})}var r,i=[],l=null,c=null,f=6,h=6,d=3,p=e===$c||e===xc?-1:1,g=e===xc||e===bc?(r="x","y"):(r="y","x"),m=e===$c||e===wc?o:a;return n.scale=function(e){return arguments.length?(t=e,n):t},n.ticks=function(){return i=vc.call(arguments),n},n.tickArguments=function(e){return arguments.length?(i=null==e?[]:vc.call(e),n):i.slice()},n.tickValues=function(e){return arguments.length?(l=null==e?null:vc.call(e),n):l&&l.slice()},n.tickFormat=function(e){return arguments.length?(c=e,n):c},n.tickSize=function(e){return arguments.length?(f=h=+e,n):f},n.tickSizeInner=function(e){return arguments.length?(f=+e,n):f},n.tickSizeOuter=function(e){return arguments.length?(h=+e,n):h},n.tickPadding=function(e){return arguments.length?(d=+e,n):d},n}function c(e){return l($c,e)}function f(e){return l(bc,e)}function h(e){return l(wc,e)}function d(e){return l(xc,e)}function p(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r)throw new Error("illegal type: "+e);r[e]=[]}return new g(r)}function g(e){this._=e}function m(e,t){return e.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}})}function v(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function y(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Sc,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}function $(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===kc&&t.documentElement.namespaceURI===kc?t.createElement(e):t.createElementNS(n,e)}}function b(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function w(){return new x}function x(){this._="@"+(++Tc).toString(36)}function _(e,t,n){return e=S(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function S(t,n,r){return function(i){var o=e.event;e.event=i;try{t.call(this,this.__data__,n,r)}finally{e.event=o}}}function k(e){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function C(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?t.length=i:delete this.__on}}}function E(e,t,n){var r=Pc.hasOwnProperty(e.type)?_:S;return function(i,o,a){var s,u=this.__on,l=r(t,o,a);if(u)for(var c=0,f=u.length;c<f;++c)if((s=u[c]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=l,s.capture=n),void(s.value=t);this.addEventListener(e.type,l,n),s={type:e.type,name:e.name,value:t,listener:l,capture:n},u?u.push(s):this.__on=[s]}}function M(t,n,r,i){var o=e.event;t.sourceEvent=e.event,e.event=t;try{return n.apply(r,i)}finally{e.event=o}}function T(){}function A(){return[]}function D(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function N(e,t,n,r,i,o){for(var a,s=0,u=t.length,l=o.length;s<l;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new D(e,o[s]);for(;s<u;++s)(a=t[s])&&(i[s]=a)}function O(e,t,n,r,i,o,a){var s,u,l,c={},f=t.length,h=o.length,d=new Array(f);for(s=0;s<f;++s)(u=t[s])&&(d[s]=l=Wc+a.call(u,u.__data__,s,t),l in c?i[s]=u:c[l]=u);for(s=0;s<h;++s)l=Wc+a.call(e,o[s],s,o),(u=c[l])?(r[s]=u,u.__data__=o[s],c[l]=null):n[s]=new D(e,o[s]);for(s=0;s<f;++s)(u=t[s])&&c[d[s]]===u&&(i[s]=u)}function P(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function I(e){return function(){this.removeAttribute(e)}}function j(e){return function(){this.removeAttributeNS(e.space,e.local)}}function L(e,t){return function(){this.setAttribute(e,t)}}function R(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function V(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function F(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Y(e){return function(){this.style.removeProperty(e)}}function H(e,t,n){return function(){this.style.setProperty(e,t,n)}}function q(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function z(e){return function(){delete this[e]}}function U(e,t){return function(){this[e]=t}}function B(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function W(e){return e.trim().split(/^|\s+/)}function G(e){return e.classList||new X(e)}function X(e){this._node=e,this._names=W(e.getAttribute("class")||"")}function K(e,t){for(var n=G(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Z(e,t){for(var n=G(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function J(e){return function(){K(this,e)}}function Q(e){return function(){Z(this,e)}}function ee(e,t){return function(){(t.apply(this,arguments)?K:Z)(this,e)}}function te(){this.textContent=""}function ne(e){return function(){this.textContent=e}}function re(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function ie(){this.innerHTML=""}function oe(e){return function(){this.innerHTML=e}}function ae(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function se(){this.nextSibling&&this.parentNode.appendChild(this)}function ue(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function le(){return null}function ce(){var e=this.parentNode;e&&e.removeChild(this)}function fe(e,t,n){var r=sf(e),i=r.CustomEvent;i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function he(e,t){return function(){return fe(this,e,t)}}function de(e,t){return function(){return fe(this,e,t.apply(this,arguments))}}function pe(e,t){this._groups=e,this._parents=t}function ge(){return new pe([[document.documentElement]],bf)}function me(){e.event.stopImmediatePropagation()}function ve(e,t){var n=e.document.documentElement,r=wf(e).on("dragstart.drag",null);t&&(r.on("click.drag",kf,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function ye(e,t,n,r,i,o,a,s,u,l){this.target=e,this.type=t,this.subject=n,this.identifier=r,this.active=i,this.x=o,this.y=a,this.dx=s,this.dy=u,this._=l}function $e(){return!e.event.button}function be(){return this.parentNode}function we(t){return null==t?{x:e.event.x,y:e.event.y}:t}function xe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function _e(){}function Se(e){var t;return e=(e+"").trim().toLowerCase(),(t=Of.exec(e))?(t=parseInt(t[1],16),new Te(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1)):(t=Pf.exec(e))?ke(parseInt(t[1],16)):(t=If.exec(e))?new Te(t[1],t[2],t[3],1):(t=jf.exec(e))?new Te(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Lf.exec(e))?Ce(t[1],t[2],t[3],t[4]):(t=Rf.exec(e))?Ce(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Vf.exec(e))?Ae(t[1],t[2]/100,t[3]/100,1):(t=Ff.exec(e))?Ae(t[1],t[2]/100,t[3]/100,t[4]):Yf.hasOwnProperty(e)?ke(Yf[e]):"transparent"===e?new Te(NaN,NaN,NaN,0):null}function ke(e){return new Te(e>>16&255,e>>8&255,255&e,1)}function Ce(e,t,n,r){return r<=0&&(e=t=n=NaN),new Te(e,t,n,r)}function Ee(e){return e instanceof _e||(e=Se(e)),e?(e=e.rgb(),new Te(e.r,e.g,e.b,e.opacity)):new Te}function Me(e,t,n,r){return 1===arguments.length?Ee(e):new Te(e,t,n,null==r?1:r)}function Te(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ae(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Oe(e,t,n,r)}function De(e){if(e instanceof Oe)return new Oe(e.h,e.s,e.l,e.opacity);if(e instanceof _e||(e=Se(e)),!e)return new Oe;if(e instanceof Oe)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new Oe(a,s,u,e.opacity)}function Ne(e,t,n,r){return 1===arguments.length?De(e):new Oe(e,t,n,null==r?1:r)}function Oe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Pe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Ie(e){if(e instanceof Le)return new Le(e.l,e.a,e.b,e.opacity);if(e instanceof ze){var t=e.h*Hf;return new Le(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Te||(e=Ee(e));var n=Ye(e.r),r=Ye(e.g),i=Ye(e.b),o=Re((.4124564*n+.3575761*r+.1804375*i)/zf),a=Re((.2126729*n+.7151522*r+.072175*i)/Uf);return new Le(116*a-16,500*(o-a),200*(a-Re((.0193339*n+.119192*r+.9503041*i)/Bf)),e.opacity)}function je(e,t,n,r){return 1===arguments.length?Ie(e):new Le(e,t,n,null==r?1:r)}function Le(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Re(e){return e>Kf?Math.pow(e,1/3):e/Xf+Wf}function Ve(e){return e>Gf?e*e*e:Xf*(e-Wf)}function Fe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ye(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function He(e){if(e instanceof ze)return new ze(e.h,e.c,e.l,e.opacity);e instanceof Le||(e=Ie(e));var t=Math.atan2(e.b,e.a)*qf;return new ze(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function qe(e,t,n,r){return 1===arguments.length?He(e):new ze(e,t,n,null==r?1:r)}function ze(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Ue(e){if(e instanceof We)return new We(e.h,e.s,e.l,e.opacity);e instanceof Te||(e=Ee(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(ih*r+nh*t-rh*n)/(ih+nh-rh),o=r-i,a=(th*(n-i)-Qf*o)/eh,s=Math.sqrt(a*a+o*o)/(th*i*(1-i)),u=s?Math.atan2(a,o)*qf-120:NaN;return new We(u<0?u+360:u,s,i,e.opacity)}function Be(e,t,n,r){return 1===arguments.length?Ue(e):new We(e,t,n,null==r?1:r)}function We(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ge(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function Xe(e,t){return function(n){return e+n*t}}function Ke(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Ze(e,t){var n=t-e;return n?Xe(e,n>180||n<-180?n-360*Math.round(n/360):n):dh(isNaN(e)?t:e)}function Je(e){return 1==(e=+e)?Qe:function(t,n){return n-t?Ke(t,n,e):dh(isNaN(t)?n:t)}}function Qe(e,t){var n=t-e;return n?Xe(e,n):dh(isNaN(e)?t:e)}function et(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Me(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}function tt(e){return function(){return e}}function nt(e){return function(t){return e(t)+""}}function rt(e){return"none"===e?Eh:(oh||(oh=document.createElement("DIV"),ah=document.documentElement,sh=document.defaultView),oh.style.transform=e,e=sh.getComputedStyle(ah.appendChild(oh),null).getPropertyValue("transform"),ah.removeChild(oh),e=e.slice(7,-1).split(","),Mh(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function it(e){return null==e?Eh:(uh||(uh=document.createElementNS("http://www.w3.org/2000/svg","g")),uh.setAttribute("transform",e),(e=uh.transform.baseVal.consolidate())?(e=e.matrix,Mh(e.a,e.b,e.c,e.d,e.e,e.f)):Eh)}function ot(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}function o(e,r,i,o,a,s){if(e!==i||r!==o){var u=a.push("translate(",null,t,null,n);s.push({i:u-4,x:$h(e,i)},{i:u-2,x:$h(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}function a(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:$h(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}function s(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:$h(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}function u(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:$h(e,n)},{i:s-2,x:$h(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),o(t.translateX,t.translateY,n.translateX,n.translateY,r,i),a(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),u(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t,n=-1,o=i.length;++n<o;)r[(t=i[n]).i]=t.x(e);return r.join("")}}}function at(e){return((e=Math.exp(e))+1/e)/2}function st(e){return((e=Math.exp(e))-1/e)/2}function ut(e){return((e=Math.exp(2*e))-1)/(e+1)}function lt(e){return function(t,n){var r=e((t=Ne(t)).h,(n=Ne(n)).h),i=Qe(t.s,n.s),o=Qe(t.l,n.l),a=Qe(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=i(e),t.l=o(e),t.opacity=a(e),t+""}}}function ct(e,t){var n=Qe((e=je(e)).l,(t=je(t)).l),r=Qe(e.a,t.a),i=Qe(e.b,t.b),o=Qe(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=i(t),e.opacity=o(t),e+""}}function ft(e){return function(t,n){var r=e((t=qe(t)).h,(n=qe(n)).h),i=Qe(t.c,n.c),o=Qe(t.l,n.l),a=Qe(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=o(e),t.opacity=a(e),t+""}}}function ht(e){return function t(n){function r(t,r){var i=e((t=Be(t)).h,(r=Be(r)).h),o=Qe(t.s,r.s),a=Qe(t.l,r.l),s=Qe(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function dt(){return Uh||(Gh(pt),Uh=Wh.now()+Bh)}function pt(){Uh=0}function gt(){this._call=this._time=this._next=null}function mt(e,t,n){var r=new gt;return r.restart(e,t,n),r}function vt(){dt(),++Fh;for(var e,t=lh;t;)(e=Uh-t._time)>=0&&t._call.call(null,e),t=t._next;--Fh}function yt(){Uh=(zh=Wh.now())+Bh,Fh=Yh=0;try{vt()}finally{Fh=0,bt(),Uh=0}}function $t(){var e=Wh.now(),t=e-zh;t>qh&&(Bh-=t,zh=e)}function bt(){for(var e,t,n=lh,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:lh=t);ch=e,wt(r)}function wt(e){if(!Fh){Yh&&(Yh=clearTimeout(Yh));var t=e-Uh;t>24?(e<1/0&&(Yh=setTimeout(yt,t)),Hh&&(Hh=clearInterval(Hh))):(Hh||(zh=Uh,Hh=setInterval($t,qh)),Fh=1,Gh(yt))}}function xt(e,t){var n=e.__transition;if(!n||!(n=n[t])||n.state>Qh)throw new Error("too late");return n}function _t(e,t){var n=e.__transition;if(!n||!(n=n[t])||n.state>td)throw new Error("too late");return n}function St(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("too late");return n}function kt(e,t,n){function r(e){n.state=ed,n.timer.restart(i,n.delay,n.time),n.delay<=e&&i(e-n.delay)}function i(r){var l,c,f,h;if(n.state!==ed)return a();for(l in u)if(h=u[l],h.name===n.name){if(h.state===nd)return Xh(i);h.state===rd?(h.state=od,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete u[l]):+l<t&&(h.state=od,h.timer.stop(),delete u[l])}if(Xh(function(){n.state===nd&&(n.state=rd,n.timer.restart(o,n.delay,n.time),o(r))}),n.state=td,n.on.call("start",e,e.__data__,n.index,n.group),n.state===td){for(n.state=nd,s=new Array(f=n.tween.length),l=0,c=-1;l<f;++l)(h=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(s[++c]=h);s.length=c+1}}function o(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(a),n.state=id,1),i=-1,o=s.length;++i<o;)s[i].call(null,r);n.state===id&&(n.on.call("end",e,e.__data__,n.index,n.group),a())}function a(){n.state=od,n.timer.stop(),delete u[t];for(var r in u)return;delete e.__transition}var s,u=e.__transition;u[t]=n,n.timer=mt(r,0,n.time)}function Ct(e,t){var n,r;return function(){var i=_t(this,e),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function Et(e,t,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=_t(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}o.tween=i}}function Mt(e,t,n){var r=e._id;return e.each(function(){var e=_t(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return St(e,r).value[t]}}function Tt(e){return function(){this.removeAttribute(e)}}function At(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Dt(e,t,n){var r,i;return function(){var o=this.getAttribute(e);return o===n?null:o===r?i:i=t(r=o,n)}}function Nt(e,t,n){var r,i;return function(){var o=this.getAttributeNS(e.space,e.local);return o===n?null:o===r?i:i=t(r=o,n)}}function Ot(e,t,n){var r,i,o;return function(){var a,s=n(this);return null==s?void this.removeAttribute(e):(a=this.getAttribute(e),a===s?null:a===r&&s===i?o:o=t(r=a,i=s))}}function Pt(e,t,n){var r,i,o;return function(){var a,s=n(this);return null==s?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),a===s?null:a===r&&s===i?o:o=t(r=a,i=s))}}function It(e,t){function n(){var n=this,r=t.apply(n,arguments);return r&&function(t){n.setAttributeNS(e.space,e.local,r(t))}}return n._value=t,n}function jt(e,t){function n(){var n=this,r=t.apply(n,arguments);return r&&function(t){n.setAttribute(e,r(t))}}return n._value=t,n}function Lt(e,t){return function(){xt(this,e).delay=+t.apply(this,arguments)}}function Rt(e,t){return t=+t,function(){xt(this,e).delay=t}}function Vt(e,t){return function(){_t(this,e).duration=+t.apply(this,arguments)}}function Ft(e,t){return t=+t,function(){_t(this,e).duration=t}}function Yt(e,t){if("function"!=typeof t)throw new Error;return function(){_t(this,e).ease=t}}function Ht(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})}function qt(e,t,n){var r,i,o=Ht(t)?xt:_t;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}function zt(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Ut(e,t){var n,r,i;return function(){var o=sf(this).getComputedStyle(this,null),a=o.getPropertyValue(e),s=(this.style.removeProperty(e),o.getPropertyValue(e));return a===s?null:a===n&&s===r?i:i=t(n=a,r=s)}}function Bt(e){return function(){this.style.removeProperty(e)}}function Wt(e,t,n){var r,i;return function(){var o=sf(this).getComputedStyle(this,null).getPropertyValue(e);return o===n?null:o===r?i:i=t(r=o,n)}}function Gt(e,t,n){var r,i,o;return function(){var a=sf(this).getComputedStyle(this,null),s=a.getPropertyValue(e),u=n(this);return null==u&&(this.style.removeProperty(e),u=a.getPropertyValue(e)),s===u?null:s===r&&u===i?o:o=t(r=s,i=u)}}function Xt(e,t,n){function r(){var r=this,i=t.apply(r,arguments);return i&&function(t){r.style.setProperty(e,i(t),n)}}return r._value=t,r}function Kt(e){return function(){this.textContent=e}}function Zt(e){return function(){var t=e(this);this.textContent=null==t?"":t}}function Jt(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Qt(e){return ge().transition(e)}function en(){return++Md}function tn(e){return+e}function nn(e){return e*e}function rn(e){return e*(2-e)}function on(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function an(e){return e*e*e}function sn(e){return--e*e*e+1}function un(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}function ln(e){return 1-Math.cos(e*Pd)}function cn(e){return Math.sin(e*Pd)}function fn(e){return(1-Math.cos(Od*e))/2}function hn(e){return Math.pow(2,10*e-10)}function dn(e){return 1-Math.pow(2,-10*e)}function pn(e){return((e*=2)<=1?Math.pow(2,10*e-10):2-Math.pow(2,10-10*e))/2}function gn(e){return 1-Math.sqrt(1-e*e)}function mn(e){return Math.sqrt(1- --e*e)}function vn(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}function yn(e){return 1-$n(1-e)}function $n(e){return(e=+e)<Id?zd*e*e:e<Ld?zd*(e-=jd)*e+Rd:e<Fd?zd*(e-=Vd)*e+Yd:zd*(e-=Hd)*e+qd}function bn(e){return((e*=2)<=1?1-$n(1-e):$n(e-1)+1)/2}function wn(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return Jd.time=dt(),Jd;return n}function xn(){e.event.stopImmediatePropagation()}function _n(e){return{type:e}}function Sn(){return!e.event.button}function kn(){var e=this.ownerSVGElement||this;return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function Cn(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function En(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function Mn(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function Tn(){return Dn(lp)}function An(){return Dn(cp)}function Dn(t){function n(e){var n=e.property("__brush",s).selectAll(".overlay").data([_n("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",hp.overlay).merge(n).each(function(){var e=Cn(this).extent;wf(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])}),e.selectAll(".selection").data([_n("selection")]).enter().append("rect").attr("class","selection").attr("cursor",hp.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=e.selectAll(".handle").data(t.handles,function(e){return e.type});i.exit().remove(),i.enter().append("rect").attr("class",function(e){return"handle handle--"+e.type}).attr("cursor",function(e){return hp[e.type]}),e.each(r).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",a)}function r(){var e=wf(this),t=Cn(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",function(e){return"e"===e.type[e.type.length-1]?t[1][0]-h/2:t[0][0]-h/2}).attr("y",function(e){return"s"===e.type[0]?t[1][1]-h/2:t[0][1]-h/2}).attr("width",function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+h:h}).attr("height",function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+h:h})):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function i(e,t){return e.__brush.emitter||new o(e,t)}function o(e,t){this.that=e,this.args=t,this.state=e.__brush,this.active=0}function a(){function n(){var e=Rc(S);!j||x||_||(Math.abs(e[0]-R[0])>Math.abs(e[1]-R[1])?_=!0:x=!0),R=e,w=!0,ip(),o()}function o(){var e;switch($=R[0]-L[0],b=R[1]-L[1],C){case ap:case op:E&&($=Math.max(N-f,Math.min(P-g,$)),h=f+$,m=g+$),M&&(b=Math.max(O-d,Math.min(I-v,b)),p=d+b,y=v+b);break;case sp:E<0?($=Math.max(N-f,Math.min(P-f,$)),h=f+$,m=g):E>0&&($=Math.max(N-g,Math.min(P-g,$)),h=f,m=g+$),M<0?(b=Math.max(O-d,Math.min(I-d,b)),p=d+b,y=v):M>0&&(b=Math.max(O-v,Math.min(I-v,b)),p=d,y=v+b);break;case up:E&&(h=Math.max(N,Math.min(P,f-$*E)),m=Math.max(N,Math.min(P,g+$*E))),M&&(p=Math.max(O,Math.min(I,d-b*M)),y=Math.max(O,Math.min(I,v+b*M)))}m<h&&(E*=-1,e=f,f=g,g=e,e=h,h=m,m=e,k in dp&&Y.attr("cursor",hp[k=dp[k]])),y<p&&(M*=-1,e=d,d=v,v=e,e=p,p=y,y=e,k in pp&&Y.attr("cursor",hp[k=pp[k]])),T.selection&&(D=T.selection),x&&(h=D[0][0],m=D[1][0]),_&&(p=D[0][1],y=D[1][1]),D[0][0]===h&&D[0][1]===p&&D[1][0]===m&&D[1][1]===y||(T.selection=[[h,p],[m,y]],r.call(S),V.brush())}function a(){if(xn(),e.event.touches){if(e.event.touches.length)return;u&&clearTimeout(u),u=setTimeout(function(){u=null},500),F.on("touchmove.brush touchend.brush touchcancel.brush",null)}else ve(e.event.view,w),H.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);F.attr("pointer-events","all"),Y.attr("cursor",hp.overlay),T.selection&&(D=T.selection),En(D)&&(T.selection=null,r.call(S)),V.end()}function s(){switch(e.event.keyCode){case 16:j=E&&M;break;case 18:C===sp&&(E&&(g=m-$*E,f=h+$*E),M&&(v=y-b*M,d=p+b*M),C=up,o());break;case 32:C!==sp&&C!==up||(E<0?g=m-$:E>0&&(f=h-$),M<0?v=y-b:M>0&&(d=p-b),C=ap,Y.attr("cursor",hp.selection),o());break;default:return}ip()}function l(){switch(e.event.keyCode){case 16:j&&(x=_=j=!1,o());break;case 18:C===up&&(E<0?g=m:E>0&&(f=h),M<0?v=y:M>0&&(d=p),C=sp,o());break;case 32:C===ap&&(e.event.altKey?(E&&(g=m-$*E,f=h+$*E),M&&(v=y-b*M,d=p+b*M),C=up):(E<0?g=m:E>0&&(f=h),M<0?v=y:M>0&&(d=p),C=sp),Y.attr("cursor",hp[k]),o());break;default:return}ip()}if(e.event.touches){if(e.event.changedTouches.length<e.event.touches.length)return ip()}else if(u)return;if(c.apply(this,arguments)){var f,h,d,p,g,m,v,y,$,b,w,x,_,S=this,k=e.event.target.__data__.type,C="selection"===(e.event.metaKey?k="overlay":k)?op:e.event.altKey?up:sp,E=t===cp?null:gp[k],M=t===lp?null:mp[k],T=Cn(S),A=T.extent,D=T.selection,N=A[0][0],O=A[0][1],P=A[1][0],I=A[1][1],j=E&&M&&e.event.shiftKey,L=Rc(S),R=L,V=i(S,arguments).beforestart();"overlay"===k?T.selection=D=[[f=t===cp?N:L[0],d=t===lp?O:L[1]],[g=t===cp?P:f,v=t===lp?I:d]]:(f=D[0][0],d=D[0][1],g=D[1][0],v=D[1][1]),h=f,p=d,m=g,y=v;var F=wf(S).attr("pointer-events","none"),Y=F.selectAll(".overlay").attr("cursor",hp[k]);if(e.event.touches)F.on("touchmove.brush",n,!0).on("touchend.brush touchcancel.brush",a,!0);else{var H=wf(e.event.view).on("keydown.brush",s,!0).on("keyup.brush",l,!0).on("mousemove.brush",n,!0).on("mouseup.brush",a,!0);Cf(e.event.view)}xn(),sd(S),r.call(S),V.start()}}function s(){var e=this.__brush||{selection:null};return e.extent=l.apply(this,arguments),e.dim=t,e}var u,l=kn,c=Sn,f=p(n,"start","brush","end"),h=6;return n.move=function(e,n){e.selection?e.on("start.brush",function(){i(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){i(this,arguments).end()}).tween("brush",function(){function e(e){a.selection=1===e&&En(l)?null:c(e),r.call(o),s.brush()}var o=this,a=o.__brush,s=i(o,arguments),u=a.selection,l=t.input("function"==typeof n?n.apply(this,arguments):n,a.extent),c=Sh(u,l);return u&&l?e:e(1)}):e.each(function(){var e=this,o=arguments,a=e.__brush,s=t.input("function"==typeof n?n.apply(e,o):n,a.extent),u=i(e,o).beforestart();sd(e),a.selection=null==s||En(s)?null:s,r.call(e),u.start().brush().end()})},o.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){M(new rp(n,e,t.output(this.state.selection)),f.apply,f,[e,this.that,this.args])}},n.extent=function(e){return arguments.length?(l="function"==typeof e?e:np([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),n):l},n.filter=function(e){return arguments.length?(c="function"==typeof e?e:np(!!e),n):c},n.handleSize=function(e){return arguments.length?(h=+e,n):h},n.on=function(){var e=f.on.apply(f,arguments);return e===f?n:e},n}function Nn(e){return function(t,n){return e(t.source.value+t.target.value,n.source.value+n.target.value)}}function On(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Pn(){return new On}function In(e){return e.source}function jn(e){return e.target}function Ln(e){return e.radius}function Rn(e){return e.startAngle}function Vn(e){return e.endAngle}function Fn(){}function Yn(e,t){var n=new Fn;if(e instanceof Fn)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Hn(){return{}}function qn(e,t,n){e[t]=n}function zn(){return Yn()}function Un(e,t,n){e.set(t,n)}function Bn(){}function Wn(e,t){var n=new Bn;if(e instanceof Bn)e.each(function(e){n.add(e)});else if(e){var r=-1,i=e.length;if(null==t)for(;++r<i;)n.add(e[r]);else for(;++r<i;)n.add(t(e[r],r,e))}return n}function Gn(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}")}function Xn(e,t){var n=Gn(e);return function(r,i){return t(n(r),i,e)}}function Kn(e){var t=Object.create(null),n=[];return e.forEach(function(e){for(var r in e)r in t||n.push(t[r]=r)}),n}function Zn(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o,a,s,u,l,c,f,h,d=e._root,p={data:r},g=e._x0,m=e._y0,v=e._x1,y=e._y1;if(!d)return e._root=p,e;for(;d.length;)if((l=t>=(o=(g+v)/2))?g=o:v=o,(c=n>=(a=(m+y)/2))?m=a:y=a,i=d,!(d=d[f=c<<1|l]))return i[f]=p,e;if(s=+e._x.call(null,d.data),u=+e._y.call(null,d.data),t===s&&n===u)return p.next=d,i?i[f]=p:e._root=p,e;do{i=i?i[f]=new Array(4):e._root=new Array(4),(l=t>=(o=(g+v)/2))?g=o:v=o,(c=n>=(a=(m+y)/2))?m=a:y=a}while((f=c<<1|l)==(h=(u>=a)<<1|s>=o));return i[h]=d,i[f]=p,e}function Jn(e){var t,n,r,i,o=e.length,a=new Array(o),s=new Array(o),u=1/0,l=1/0,c=-1/0,f=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(a[n]=r,s[n]=i,r<u&&(u=r),r>c&&(c=r),i<l&&(l=i),i>f&&(f=i));for(c<u&&(u=this._x0,c=this._x1),f<l&&(l=this._y0,f=this._y1),this.cover(u,l).cover(c,f),n=0;n<o;++n)Zn(this,a[n],s[n],e[n]);return this}function Qn(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function er(e){return e[0]}function tr(e){return e[1]}function nr(e,t,n){var r=new rr(null==t?er:t,null==n?tr:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function rr(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function ir(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}function or(e){return e.x+e.vx}function ar(e){return e.y+e.vy}function sr(e){return e.index}function ur(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function lr(e){return e.x}function cr(e){return e.y}function fr(e){return new hr(e)}function hr(e){if(!(t=Eg.exec(e)))throw new Error("invalid format: "+e);var t,n=t[1]||" ",r=t[2]||">",i=t[3]||"-",o=t[4]||"",a=!!t[5],s=t[6]&&+t[6],u=!!t[7],l=t[8]&&+t[8].slice(1),c=t[9]||"";"n"===c?(u=!0,c="g"):Cg[c]||(c=""),(a||"0"===n&&"="===r)&&(a=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=o,this.zero=a,this.width=s,this.comma=u,this.precision=l,this.type=c}function dr(t){
return Mg=Dg(t),e.format=Mg.format,e.formatPrefix=Mg.formatPrefix,Mg}function pr(){this.reset()}function gr(e,t,n){var r=e.s=t+n,i=r-t,o=r-i;e.t=t-o+(n-i)}function mr(e){return e>1?0:e<-1?gm:Math.acos(e)}function vr(e){return e>1?mm:e<-1?-mm:Math.asin(e)}function yr(e){return(e=Tm(e/2))*e}function $r(){}function br(e,t){e&&Pm.hasOwnProperty(e.type)&&Pm[e.type](e,t)}function wr(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 xr(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)wr(e[n],t,1);t.polygonEnd()}function _r(){Rm.point=kr}function Sr(){Cr(jg,Lg)}function kr(e,t){Rm.point=Cr,jg=e,Lg=t,e*=bm,t*=bm,Rg=e,Vg=Sm(t=t/2+vm),Fg=Tm(t)}function Cr(e,t){e*=bm,t*=bm,t=t/2+vm;var n=e-Rg,r=n>=0?1:-1,i=r*n,o=Sm(t),a=Tm(t),s=Fg*a,u=Vg*o+s*Sm(i),l=s*r*Tm(i);jm.add(_m(l,u)),Rg=e,Vg=o,Fg=a}function Er(e){return[_m(e[1],e[0]),vr(e[2])]}function Mr(e){var t=e[0],n=e[1],r=Sm(n);return[r*Sm(t),r*Tm(t),Tm(n)]}function Tr(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Ar(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 Dr(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Nr(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Or(e){var t=Dm(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Pr(e,t){Xg.push(Kg=[Yg=e,qg=e]),t<Hg&&(Hg=t),t>zg&&(zg=t)}function Ir(e,t){var n=Mr([e*bm,t*bm]);if(Gg){var r=Ar(Gg,n),i=[r[1],-r[0],0],o=Ar(i,r);Or(o),o=Er(o);var a,s=e-Ug,u=s>0?1:-1,l=o[0]*$m*u,c=wm(s)>180;c^(u*Ug<l&&l<u*e)?(a=o[1]*$m)>zg&&(zg=a):(l=(l+360)%360-180,c^(u*Ug<l&&l<u*e)?(a=-o[1]*$m)<Hg&&(Hg=a):(t<Hg&&(Hg=t),t>zg&&(zg=t))),c?e<Ug?Yr(Yg,e)>Yr(Yg,qg)&&(qg=e):Yr(e,qg)>Yr(Yg,qg)&&(Yg=e):qg>=Yg?(e<Yg&&(Yg=e),e>qg&&(qg=e)):e>Ug?Yr(Yg,e)>Yr(Yg,qg)&&(qg=e):Yr(e,qg)>Yr(Yg,qg)&&(Yg=e)}else Xg.push(Kg=[Yg=e,qg=e]);t<Hg&&(Hg=t),t>zg&&(zg=t),Gg=n,Ug=e}function jr(){Ym.point=Ir}function Lr(){Kg[0]=Yg,Kg[1]=qg,Ym.point=Pr,Gg=null}function Rr(e,t){if(Gg){var n=e-Ug;Fm.add(wm(n)>180?n+(n>0?360:-360):n)}else Bg=e,Wg=t;Rm.point(e,t),Ir(e,t)}function Vr(){Rm.lineStart()}function Fr(){Rr(Bg,Wg),Rm.lineEnd(),wm(Fm)>pm&&(Yg=-(qg=180)),Kg[0]=Yg,Kg[1]=qg,Gg=null}function Yr(e,t){return(t-=e)<0?t+360:t}function Hr(e,t){return e[0]-t[0]}function qr(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}function zr(e,t){e*=bm,t*=bm;var n=Sm(t);Ur(n*Sm(e),n*Tm(e),Tm(t))}function Ur(e,t,n){++Zg,Qg+=(e-Qg)/Zg,em+=(t-em)/Zg,tm+=(n-tm)/Zg}function Br(){qm.point=Wr}function Wr(e,t){e*=bm,t*=bm;var n=Sm(t);cm=n*Sm(e),fm=n*Tm(e),hm=Tm(t),qm.point=Gr,Ur(cm,fm,hm)}function Gr(e,t){e*=bm,t*=bm;var n=Sm(t),r=n*Sm(e),i=n*Tm(e),o=Tm(t),a=_m(Dm((a=fm*o-hm*i)*a+(a=hm*r-cm*o)*a+(a=cm*i-fm*r)*a),cm*r+fm*i+hm*o);Jg+=a,nm+=a*(cm+(cm=r)),rm+=a*(fm+(fm=i)),im+=a*(hm+(hm=o)),Ur(cm,fm,hm)}function Xr(){qm.point=zr}function Kr(){qm.point=Jr}function Zr(){Qr(um,lm),qm.point=zr}function Jr(e,t){um=e,lm=t,e*=bm,t*=bm,qm.point=Qr;var n=Sm(t);cm=n*Sm(e),fm=n*Tm(e),hm=Tm(t),Ur(cm,fm,hm)}function Qr(e,t){e*=bm,t*=bm;var n=Sm(t),r=n*Sm(e),i=n*Tm(e),o=Tm(t),a=fm*o-hm*i,s=hm*r-cm*o,u=cm*i-fm*r,l=Dm(a*a+s*s+u*u),c=vr(l),f=l&&-c/l;om+=f*a,am+=f*s,sm+=f*u,Jg+=c,nm+=c*(cm+(cm=r)),rm+=c*(fm+(fm=i)),im+=c*(hm+(hm=o)),Ur(cm,fm,hm)}function ei(e,t){return[e>gm?e-ym:e<-gm?e+ym:e,t]}function ti(e,t,n){return(e%=ym)?t||n?Bm(ri(e),ii(t,n)):ri(e):t||n?ii(t,n):ei}function ni(e){return function(t,n){return t+=e,[t>gm?t-ym:t<-gm?t+ym:t,n]}}function ri(e){var t=ni(e);return t.invert=ni(-e),t}function ii(e,t){function n(e,t){var n=Sm(t),s=Sm(e)*n,u=Tm(e)*n,l=Tm(t),c=l*r+s*i;return[_m(u*o-c*a,s*r-l*i),vr(c*o+u*a)]}var r=Sm(e),i=Tm(e),o=Sm(t),a=Tm(t);return n.invert=function(e,t){var n=Sm(t),s=Sm(e)*n,u=Tm(e)*n,l=Tm(t),c=l*o-u*a;return[_m(u*o+l*a,s*r+c*i),vr(c*r-s*i)]},n}function oi(e,t,n,r,i,o){if(n){var a=Sm(t),s=Tm(t),u=r*n;null==i?(i=t+r*ym,o=t-u/2):(i=ai(a,i),o=ai(a,o),(r>0?i<o:i>o)&&(i+=r*ym));for(var l,c=i;r>0?c>o:c<o;c-=u)l=Er([a,-s*Sm(c),-s*Tm(c)]),e.point(l[0],l[1])}}function ai(e,t){t=Mr(t),t[0]-=e,Or(t);var n=mr(-t[1]);return((-t[2]<0?-n:n)+ym-pm)%ym}function si(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 ui(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 li(e,t,n,r){function i(i,o){return e<=i&&i<=n&&t<=o&&o<=r}function o(i,o,s,l){var c=0,f=0;if(null==i||(c=a(i,s))!==(f=a(o,s))||u(i,o)<0^s>0)do{l.point(0===c||3===c?e:n,c>1?r:t)}while((c=(c+s+4)%4)!==f);else l.point(o[0],o[1])}function a(r,i){return wm(r[0]-e)<pm?i>0?0:3:wm(r[0]-n)<pm?i>0?2:1:wm(r[1]-t)<pm?i>0?1:0:i>0?3:2}function s(e,t){return u(e.x,t.x)}function u(e,t){var n=a(e,1),r=a(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(a){function u(e,t){i(e,t)&&C.point(e,t)}function l(){for(var t=0,n=0,i=m.length;n<i;++n)for(var o,a,s=m[n],u=1,l=s.length,c=s[0],f=c[0],h=c[1];u<l;++u)o=f,a=h,c=s[u],f=c[0],h=c[1],a<=r?h>r&&(f-o)*(r-a)>(h-a)*(e-o)&&++t:h<=r&&(f-o)*(r-a)<(h-a)*(e-o)&&--t;return t}function c(){C=E,g=[],m=[],k=!0}function f(){var e=l(),t=k&&e,n=(g=lc(g)).length;(t||n)&&(a.polygonStart(),t&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),n&&lv(g,s,e,o,a),a.polygonEnd()),C=a,g=m=v=null}function h(){M.point=p,m&&m.push(v=[]),S=!0,_=!1,w=x=NaN}function d(){g&&(p(y,$),b&&_&&E.rejoin(),g.push(E.result())),M.point=u,_&&C.lineEnd()}function p(o,a){var s=i(o,a);if(m&&v.push([o,a]),S)y=o,$=a,b=s,S=!1,s&&(C.lineStart(),C.point(o,a));else if(s&&_)C.point(o,a);else{var u=[w=Math.max(fv,Math.min(cv,w)),x=Math.max(fv,Math.min(cv,x))],l=[o=Math.max(fv,Math.min(cv,o)),a=Math.max(fv,Math.min(cv,a))];sv(u,l,e,t,n,r)?(_||(C.lineStart(),C.point(u[0],u[1])),C.point(l[0],l[1]),s||C.lineEnd(),k=!1):s&&(C.lineStart(),C.point(o,a),k=!1)}w=o,x=a,_=s}var g,m,v,y,$,b,w,x,_,S,k,C=a,E=av(),M={point:u,lineStart:h,lineEnd:d,polygonStart:c,polygonEnd:f};return M}}function ci(){mv.point=hi,mv.lineEnd=fi}function fi(){mv.point=mv.lineEnd=$r}function hi(e,t){e*=bm,t*=bm,Wm=e,Gm=Tm(t),Xm=Sm(t),mv.point=di}function di(e,t){e*=bm,t*=bm;var n=Tm(t),r=Sm(t),i=wm(e-Wm),o=Sm(i),a=Tm(i),s=r*a,u=Xm*n-Gm*r*o,l=Gm*n+Xm*r*o;gv.add(_m(Dm(s*s+u*u),l)),Wm=e,Gm=n,Xm=r}function pi(e,t){return!(!e||!xv.hasOwnProperty(e.type))&&xv[e.type](e,t)}function gi(e,t){return 0===bv(e,t)}function mi(e,t){var n=bv(e[0],e[1]);return bv(e[0],t)+bv(t,e[1])<=n+pm}function vi(e,t){return!!pv(e.map(yi),$i(t))}function yi(e){return e=e.map($i),e.pop(),e}function $i(e){return[e[0]*bm,e[1]*bm]}function bi(e,t,n){var r=Kl(e,t-pm,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function wi(e,t,n){var r=Kl(e,t-pm,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function xi(){function e(){return{type:"MultiLineString",coordinates:t()}}function t(){return Kl(km(o/m)*m,i,m).map(h).concat(Kl(km(l/v)*v,u,v).map(d)).concat(Kl(km(r/p)*p,n,p).filter(function(e){return wm(e%m)>pm}).map(c)).concat(Kl(km(s/g)*g,a,g).filter(function(e){return wm(e%v)>pm}).map(f))}var n,r,i,o,a,s,u,l,c,f,h,d,p=10,g=p,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:[h(o).concat(d(u).slice(1),h(i).reverse().slice(1),d(l).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.extentMajor(t).extentMinor(t):e.extentMinor()},e.extentMajor=function(t){return arguments.length?(o=+t[0][0],i=+t[1][0],l=+t[0][1],u=+t[1][1],o>i&&(t=o,o=i,i=t),l>u&&(t=l,l=u,u=t),e.precision(y)):[[o,l],[i,u]]},e.extentMinor=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.stepMajor(t).stepMinor(t):e.stepMinor()},e.stepMajor=function(t){return arguments.length?(m=+t[0],v=+t[1],e):[m,v]},e.stepMinor=function(t){return arguments.length?(p=+t[0],g=+t[1],e):[p,g]},e.precision=function(t){return arguments.length?(y=+t,c=bi(s,a,90),f=wi(r,n,y),h=bi(l,u,90),d=wi(o,i,y),e):y},e.extentMajor([[-180,-90+pm],[180,90-pm]]).extentMinor([[-180,-80-pm],[180,80+pm]])}function _i(){return xi()()}function Si(){Mv.point=ki}function ki(e,t){Mv.point=Ci,Km=Jm=e,Zm=Qm=t}function Ci(e,t){Ev.add(Qm*e-Jm*t),Jm=e,Qm=t}function Ei(){Ci(Km,Zm)}function Mi(e,t){e<Tv&&(Tv=e),e>Dv&&(Dv=e),t<Av&&(Av=t),t>Nv&&(Nv=t)}function Ti(e,t){Pv+=e,Iv+=t,++jv}function Ai(){qv.point=Di}function Di(e,t){qv.point=Ni,Ti(nv=e,rv=t)}function Ni(e,t){var n=e-nv,r=t-rv,i=Dm(n*n+r*r);Lv+=i*(nv+e)/2,Rv+=i*(rv+t)/2,Vv+=i,Ti(nv=e,rv=t)}function Oi(){qv.point=Ti}function Pi(){qv.point=ji}function Ii(){Li(ev,tv)}function ji(e,t){qv.point=Li,Ti(ev=nv=e,tv=rv=t)}function Li(e,t){var n=e-nv,r=t-rv,i=Dm(n*n+r*r);Lv+=i*(nv+e)/2,Rv+=i*(rv+t)/2,Vv+=i,i=rv*e-nv*t,Fv+=i*(nv+e),Yv+=i*(rv+t),Hv+=3*i,Ti(nv=e,rv=t)}function Ri(e){this._context=e}function Vi(e,t){Kv.point=Fi,Uv=Wv=e,Bv=Gv=t}function Fi(e,t){Wv-=e,Gv-=t,Xv.add(Dm(Wv*Wv+Gv*Gv)),Wv=e,Gv=t}function Yi(){this._string=[]}function Hi(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function qi(e){return e.length>1}function zi(e,t){return((e=e.x)[0]<0?e[1]-mm-pm:mm-e[1])-((t=t.x)[0]<0?t[1]-mm-pm:mm-t[1])}function Ui(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?gm:-gm,u=wm(o-n);wm(u-gm)<pm?(e.point(n,r=(r+a)/2>0?mm:-mm),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(o,r),t=0):i!==s&&u>=gm&&(wm(n-i)<pm&&(n-=i*pm),wm(o-s)<pm&&(o-=s*pm),r=Bi(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=NaN},clean:function(){return 2-t}}}function Bi(e,t,n,r){var i,o,a=Tm(e-n);return wm(a)>pm?xm((Tm(t)*(o=Sm(r))*Tm(n)-Tm(r)*(i=Sm(t))*Tm(e))/(i*o*a)):(t+r)/2}function Wi(e,t,n,r){var i;if(null==e)i=n*mm,r.point(-gm,i),r.point(0,i),r.point(gm,i),r.point(gm,0),r.point(gm,-i),r.point(0,-i),r.point(-gm,-i),r.point(-gm,0),r.point(-gm,i);else if(wm(e[0]-t[0])>pm){var o=e[0]<t[0]?gm:-gm;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])}function Gi(e){return function(t){var n=new Xi;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Xi(){}function Ki(e,t,n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],o=e.clipExtent&&e.clipExtent();e.scale(150).translate([0,0]),null!=o&&e.clipExtent(null),Im(n,e.stream(Ov));var a=Ov.result(),s=Math.min(r/(a[1][0]-a[0][0]),i/(a[1][1]-a[0][1])),u=+t[0][0]+(r-s*(a[1][0]+a[0][0]))/2,l=+t[0][1]+(i-s*(a[1][1]+a[0][1]))/2;return null!=o&&e.clipExtent(o),e.scale(150*s).translate([u,l])}function Zi(e,t,n){return Ki(e,[[0,0],t],n)}function Ji(e){return Gi({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function Qi(e,t){function n(r,i,o,a,s,u,l,c,f,h,d,p,g,m){var v=l-r,y=c-i,$=v*v+y*y;if($>4*t&&g--){var b=a+h,w=s+d,x=u+p,_=Dm(b*b+w*w+x*x),S=vr(x/=_),k=wm(wm(x)-1)<pm||wm(o-f)<pm?(o+f)/2:_m(w,b),C=e(k,S),E=C[0],M=C[1],T=E-r,A=M-i,D=y*T-v*A;(D*D/$>t||wm((v*T+y*A)/$-.5)>.3||a*h+s*d+u*p<ry)&&(n(r,i,o,a,s,u,E,M,k,b/=_,w/=_,x,g,m),m.point(E,M),n(E,M,k,b,w,x,l,c,f,h,d,p,g,m))}}return function(t){function r(n,r){n=e(n,r),t.point(n[0],n[1])}function i(){v=NaN,x.point=o,t.lineStart()}function o(r,i){var o=Mr([r,i]),a=e(r,i);n(v,y,m,$,b,w,v=a[0],y=a[1],m=r,$=o[0],b=o[1],w=o[2],ny,t),t.point(v,y)}function a(){x.point=r,t.lineEnd()}function s(){i(),x.point=u,x.lineEnd=l}function u(e,t){o(c=e,t),f=v,h=y,d=$,p=b,g=w,x.point=o}function l(){n(v,y,m,$,b,w,f,h,c,d,p,g,ny,t),x.lineEnd=a,a()}var c,f,h,d,p,g,m,v,y,$,b,w,x={point:r,lineStart:i,lineEnd:a,polygonStart:function(){t.polygonStart(),x.lineStart=s},polygonEnd:function(){t.polygonEnd(),x.lineStart=i}};return x}}function eo(e){return to(function(){return e})()}function to(e){function t(e){return e=c(e[0]*bm,e[1]*bm),[e[0]*m+s,u-e[1]*m]}function n(e){return(e=c.invert((e[0]-s)/m,(u-e[1])/m))&&[e[0]*$m,e[1]*$m]}function r(e,t){return e=a(e,t),[e[0]*m+s,u-e[1]*m]}function i(){c=Bm(l=ti(w,x,_),a);var e=a($,b);return s=v-e[0]*m,u=y+e[1]*m,o()}function o(){return p=g=null,t}var a,s,u,l,c,f,h,d,p,g,m=150,v=480,y=250,$=0,b=0,w=0,x=0,_=0,S=null,k=Qv,C=null,E=kv,M=.5,T=iy(r,M);return t.stream=function(e){return p&&g===e?p:p=oy(k(l,T(E(g=e))))},t.clipAngle=function(e){return arguments.length?(k=+e?ey(S=e*bm,6*bm):(S=null,Qv),o()):S*$m},t.clipExtent=function(e){return arguments.length?(E=null==e?(C=f=h=d=null,kv):li(C=+e[0][0],f=+e[0][1],h=+e[1][0],d=+e[1][1]),o()):null==C?null:[[C,f],[h,d]]},t.scale=function(e){return arguments.length?(m=+e,i()):m},t.translate=function(e){return arguments.length?(v=+e[0],y=+e[1],i()):[v,y]},t.center=function(e){return arguments.length?($=e[0]%360*bm,b=e[1]%360*bm,i()):[$*$m,b*$m]},t.rotate=function(e){return arguments.length?(w=e[0]%360*bm,x=e[1]%360*bm,_=e.length>2?e[2]%360*bm:0,i()):[w*$m,x*$m,_*$m]},t.precision=function(e){return arguments.length?(T=iy(r,M=e*e),o()):Dm(M)},t.fitExtent=function(e,n){return Ki(t,e,n)},t.fitSize=function(e,n){return Zi(t,e,n)},function(){return a=e.apply(this,arguments),t.invert=a.invert&&n,i()}}function no(e){var t=0,n=gm/3,r=to(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*bm,n=e[1]*bm):[t*$m,n*$m]},i}function ro(e){function t(e,t){return[e*n,Tm(t)/n]}var n=Sm(e);return t.invert=function(e,t){return[e/n,vr(t*n)]},t}function io(e,t){function n(e,t){var n=Dm(o-2*i*Tm(t))/i;return[n*Tm(e*=i),a-n*Sm(e)]}var r=Tm(e),i=(r+Tm(t))/2;if(wm(i)<pm)return ro(e);var o=1+r*(2*i-r),a=Dm(o)/i;return n.invert=function(e,t){var n=a-t;return[_m(e,wm(n))/i*Am(n),vr((o-(e*e+n*n)*i*i)/(2*i))]},n}function oo(e){var t=e.length;return{point:function(n,r){for(var i=-1;++i<t;)e[i].point(n,r)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}function ao(e){return function(t,n){var r=Sm(t),i=Sm(n),o=e(r*i);return[o*i*Tm(t),o*Tm(n)]}}function so(e){return function(t,n){var r=Dm(t*t+n*n),i=e(r),o=Tm(i),a=Sm(i);return[_m(t*o,r*a),vr(r&&n*o/r)]}}function uo(e,t){return[e,Em(Nm((mm+t)/2))]}function lo(e){function t(){var t=gm*s(),a=o(iv(o.rotate()).invert([0,0]));return l(null==c?[[a[0]-t,a[1]-t],[a[0]+t,a[1]+t]]:e===uo?[[Math.max(a[0]-t,c),n],[Math.min(a[0]+t,r),i]]:[[c,Math.max(a[1]-t,n)],[r,Math.min(a[1]+t,i)]])}var n,r,i,o=eo(e),a=o.center,s=o.scale,u=o.translate,l=o.clipExtent,c=null;return o.scale=function(e){return arguments.length?(s(e),t()):s()},o.translate=function(e){return arguments.length?(u(e),t()):u()},o.center=function(e){return arguments.length?(a(e),t()):a()},o.clipExtent=function(e){return arguments.length?(null==e?c=n=r=i=null:(c=+e[0][0],n=+e[0][1],r=+e[1][0],i=+e[1][1]),t()):null==c?null:[[c,n],[r,i]]},t()}function co(e){return Nm((mm+e)/2)}function fo(e,t){function n(e,t){o>0?t<-mm+pm&&(t=-mm+pm):t>mm-pm&&(t=mm-pm);var n=o/Mm(co(t),i);return[n*Tm(i*e),o-n*Sm(i*e)]}var r=Sm(e),i=e===t?Tm(e):Em(r/Sm(t))/Em(co(t)/co(e)),o=r*Mm(co(e),i)/i;return i?(n.invert=function(e,t){var n=o-t,r=Am(i)*Dm(e*e+n*n);return[_m(e,wm(n))/i*Am(n),2*xm(Mm(o/r,1/i))-mm]},n):uo}function ho(e,t){return[e,t]}function po(e,t){function n(e,t){var n=o-t,r=i*e;return[n*Tm(r),o-n*Sm(r)]}var r=Sm(e),i=e===t?Tm(e):(r-Sm(t))/(t-e),o=r/i+e;return wm(i)<pm?ho:(n.invert=function(e,t){var n=o-t;return[_m(e,wm(n))/i*Am(n),o-Am(i)*Dm(e*e+n*n)]},n)}function go(e,t){var n=Sm(t),r=Sm(e)*n;return[n*Tm(e)/r,Tm(t)/r]}function mo(e,t,n,r){return 1===e&&1===t&&0===n&&0===r?kv:Gi({point:function(i,o){this.stream.point(i*e+n,o*t+r)}})}function vo(e,t){return[Sm(t)*Tm(e),Tm(t)]}function yo(e,t){var n=Sm(t),r=1+Sm(e)*n;return[n*Tm(e)/r,Tm(t)/r]}function $o(e,t){return[Em(Nm((mm+t)/2)),-e]}function bo(e,t){return e.parent===t.parent?1:2}function wo(e){return e.reduce(xo,0)/e.length}function xo(e,t){return e+t.x}function _o(e){return 1+e.reduce(So,0)}function So(e,t){return Math.max(e,t.y)}function ko(e){for(var t;t=e.children;)e=t[0];return e}function Co(e){for(var t;t=e.children;)e=t[t.length-1];return e}function Eo(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Mo(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function To(e,t){var n,r,i,o,a,s=new Po(e),u=+e.value&&(s.value=e.value),l=[s];for(null==t&&(t=Do);n=l.pop();)if(u&&(n.value=+n.data.value),(i=t(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)l.push(r=n.children[o]=new Po(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Oo)}function Ao(){return To(this).eachBefore(No)}function Do(e){return e.children}function No(e){e.data=e.data.data}function Oo(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Po(e){this.data=e,this.depth=this.height=0,this.parent=null}function Io(e){this._=e,this.next=null}function jo(e,t){var n=t.x-e.x,r=t.y-e.y,i=e.r-t.r;return i*i+1e-6>n*n+r*r}function Lo(e,t){var n,r,i,o=null,a=e.head;switch(t.length){case 1:n=Ro(t[0]);break;case 2:n=Vo(t[0],t[1]);break;case 3:n=Fo(t[0],t[1],t[2])}for(;a;)i=a._,r=a.next,n&&jo(n,i)?o=a:(o?(e.tail=o,o.next=null):e.head=e.tail=null,t.push(i),n=Lo(e,t),t.pop(),e.head?(a.next=e.head,e.head=a):(a.next=null,e.head=e.tail=a),o=e.tail,o.next=r),a=r;return e.tail=o,n}function Ro(e){return{x:e.x,y:e.y,r:e.r}}function Vo(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,a=t.y,s=t.r,u=o-n,l=a-r,c=s-i,f=Math.sqrt(u*u+l*l);return{x:(n+o+u/f*c)/2,y:(r+a+l/f*c)/2,r:(f+i+s)/2}}function Fo(e,t,n){var r=e.x,i=e.y,o=e.r,a=t.x,s=t.y,u=t.r,l=n.x,c=n.y,f=n.r,h=2*(r-a),d=2*(i-s),p=2*(u-o),g=r*r+i*i-o*o-a*a-s*s+u*u,m=2*(r-l),v=2*(i-c),y=2*(f-o),$=r*r+i*i-o*o-l*l-c*c+f*f,b=m*d-h*v,w=(d*$-v*g)/b-r,x=(v*p-d*y)/b,_=(m*g-h*$)/b-i,S=(h*y-m*p)/b,k=x*x+S*S-1,C=2*(w*x+_*S+o),E=w*w+_*_-o*o,M=(-C-Math.sqrt(C*C-4*k*E))/(2*k);return{x:w+x*M+r,y:_+S*M+i,r:M}}function Yo(e,t,n){var r=e.x,i=e.y,o=t.r+n.r,a=e.r+n.r,s=t.x-r,u=t.y-i,l=s*s+u*u;if(l){var c=.5+((a*=a)-(o*=o))/(2*l),f=Math.sqrt(Math.max(0,2*o*(a+l)-(a-=l)*a-o*o))/(2*l);n.x=r+c*s+f*u,n.y=i+c*u-f*s}else n.x=r+a,n.y=i}function Ho(e,t){var n=t.x-e.x,r=t.y-e.y,i=e.r+t.r;return i*i-1e-6>n*n+r*r}function qo(e,t,n){var r=e._,i=e.next._,o=r.r+i.r,a=(r.x*i.r+i.x*r.r)/o-t,s=(r.y*i.r+i.y*r.r)/o-n;return a*a+s*s}function zo(e){this._=e,this.next=null,this.previous=null}function Uo(e){if(!(i=e.length))return 0;var t,n,r,i;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;Yo(n,t,r=e[2]);var o,a,s,u,l,c,f,h=t.r*t.r,d=n.r*n.r,p=r.r*r.r,g=h+d+p,m=h*t.x+d*n.x+p*r.x,v=h*t.y+d*n.y+p*r.y;t=new zo(t),n=new zo(n),r=new zo(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;s<i;++s){Yo(t._,n._,r=e[s]),r=new zo(r),u=n.next,l=t.previous,c=n._.r,f=t._.r;do{if(c<=f){if(Ho(u._,r._)){n=u,t.next=n,n.previous=t,--s;continue e}c+=u._.r,u=u.next}else{if(Ho(l._,r._)){t=l,t.next=n,n.previous=t,--s;continue e}f+=l._.r,l=l.previous}}while(u!==l.next);for(r.previous=t,r.next=n,t.next=n.previous=n=r,g+=p=r._.r*r._.r,m+=p*r._.x,v+=p*r._.y,h=qo(t,o=m/g,a=v/g);(r=r.next)!==n;)(p=qo(r,o,a))<h&&(t=r,h=p);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(r=Iy(t),s=0;s<i;++s)t=e[s],t.x-=r.x,t.y-=r.y;return r.r}function Bo(e){return null==e?null:Wo(e)}function Wo(e){if("function"!=typeof e)throw new Error;return e}function Go(){return 0}function Xo(e){return Math.sqrt(e.value)}function Ko(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Zo(e,t){return function(n){if(r=n.children){var r,i,o,a=r.length,s=e(n)*t||0;if(s)for(i=0;i<a;++i)r[i].r+=s;if(o=Uo(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function Jo(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function Qo(e){return e.id}function ea(e){return e.parentId}function ta(e,t){return e.parent===t.parent?1:2}function na(e){var t=e.children;return t?t[0]:e.t}function ra(e){var t=e.children;return t?t[t.length-1]:e.t}function ia(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 oa(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 aa(e,t,n){return e.a.parent===t.parent?e.a:n}function sa(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function ua(e){for(var t,n,r,i,o,a=new sa(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=t.children[i]=new sa(r[i],i)),n.parent=t;return(a.parent=new sa(null,0)).children=[a],a}function la(e,t,n,r,i,o){for(var a,s,u,l,c,f,h,d,p,g,m,v=[],y=t.children,$=0,b=0,w=y.length,x=t.value;$<w;){u=i-n,l=o-r;do{c=y[b++].value}while(!c&&b<w);for(f=h=c,g=Math.max(l/u,u/l)/(x*e),m=c*c*g,p=Math.max(h/m,m/f);b<w;++b){if(c+=s=y[b].value,s<f&&(f=s),s>h&&(h=s),m=c*c*g,(d=Math.max(h/m,m/f))>p){c-=s;break}p=d}v.push(a={value:c,dice:u<l,children:y.slice($,b)}),a.dice?Fy(a,n,r,i,x?r+=l*c/x:o):Wy(a,n,r,x?n+=u*c/x:i,o),x-=c,$=b}return v}function ca(e,t){return e[0]-t[0]||e[1]-t[1]}function fa(e){for(var t=e.length,n=[0,1],r=2,i=2;i<t;++i){for(;r>1&&n$(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function ha(e){if(!(e>=1))throw new Error;this._size=e,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function da(e){if(!e._start)try{pa(e)}catch(t){if(e._tasks[e._ended+e._active-1])ma(e,t);else if(!e._data)throw t}}function pa(e){for(;e._start=e._waiting&&e._active<e._size;){var t=e._ended+e._active,n=e._tasks[t],r=n.length-1,i=n[r];n[r]=ga(e,t),--e._waiting,++e._active,n=i.apply(null,n),e._tasks[t]&&(e._tasks[t]=n||s$)}}function ga(e,t){return function(n,r){e._tasks[t]&&(--e._active,++e._ended,e._tasks[t]=null,null==e._error&&(null!=n?ma(e,n):(e._data[t]=r,e._waiting?da(e):va(e))))}}function ma(e,t){var n,r=e._tasks.length;for(e._error=t,e._data=void 0,e._waiting=NaN;--r>=0;)if((n=e._tasks[r])&&(e._tasks[r]=null,n.abort))try{n.abort()}catch(t){}e._active=NaN,va(e)}function va(e){if(!e._active&&e._call){var t=e._data;e._data=void 0,e._call(e._error,t)}}function ya(e){return new ha(arguments.length?+e:1/0)}function $a(e){return function(t,n){e(null==t?n:null)}}function ba(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}function wa(e,t){return function(n){return e(n.responseText,t)}}function xa(e){function t(t){var o=t+"",a=n.get(o);if(!a){if(i!==C$)return i;n.set(o,a=r.push(t))}return e[(a-1)%e.length]}var n=Yn(),r=[],i=C$;return e=null==e?[]:k$.call(e),t.domain=function(e){if(!arguments.length)return r.slice();r=[],n=Yn();for(var i,o,a=-1,s=e.length;++a<s;)n.has(o=(i=e[a])+"")||n.set(o,r.push(i));return t},t.range=function(n){return arguments.length?(e=k$.call(n),t):e.slice()},t.unknown=function(e){return arguments.length?(i=e,t):i},t.copy=function(){return xa().domain(r).range(e).unknown(i)},t}function _a(){function e(){var e=i().length,r=a[1]<a[0],f=a[r-0],h=a[1-r];t=(h-f)/Math.max(1,e-u+2*l),s&&(t=Math.floor(t)),f+=(h-f-t*(e-u))*c,n=t*(1-u),s&&(f=Math.round(f),n=Math.round(n));var d=Kl(e).map(function(e){return f+t*e});return o(r?d.reverse():d)}var t,n,r=xa().unknown(void 0),i=r.domain,o=r.range,a=[0,1],s=!1,u=0,l=0,c=.5;return delete r.unknown,r.domain=function(t){return arguments.length?(i(t),e()):i()},r.range=function(t){return arguments.length?(a=[+t[0],+t[1]],e()):a.slice()},r.rangeRound=function(t){return a=[+t[0],+t[1]],s=!0,e()},r.bandwidth=function(){return n},r.step=function(){return t},r.round=function(t){return arguments.length?(s=!!t,e()):s},r.padding=function(t){return arguments.length?(u=l=Math.max(0,Math.min(1,t)),e()):u},r.paddingInner=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),e()):u},r.paddingOuter=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),e()):l},r.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),e()):c},r.copy=function(){return _a().domain(i()).range(a).round(s).paddingInner(u).paddingOuter(l).align(c)},e()}function Sa(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Sa(t())},e}function ka(){return Sa(_a().paddingInner(1))}function Ca(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:E$(t)}function Ea(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}function Ma(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}function Ta(e,t,n,r){var i=e[0],o=e[1],a=t[0],s=t[1];return o<i?(i=n(o,i),a=r(s,a)):(i=n(i,o),a=r(a,s)),function(e){return a(i(e))}}function Aa(e,t,n,r){var i=Math.min(e.length,t.length)-1,o=new Array(i),a=new Array(i),s=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=n(e[s],e[s+1]),a[s]=r(t[s],t[s+1]);return function(t){var n=jl(e,t,1,i)-1;return a[n](o[n](t))}}function Da(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function Na(e,t){function n(){return i=Math.min(s.length,u.length)>2?Aa:Ta,o=a=null,r}function r(t){return(o||(o=i(s,u,c?Ea(e):e,l)))(+t)}var i,o,a,s=T$,u=T$,l=Sh,c=!1;return r.invert=function(e){return(a||(a=i(u,s,Ca,c?Ma(t):t)))(+e)},r.domain=function(e){return arguments.length?(s=S$.call(e,M$),n()):s.slice()},r.range=function(e){return arguments.length?(u=k$.call(e),n()):u.slice()},r.rangeRound=function(e){return u=k$.call(e),l=kh,n()},r.clamp=function(e){return arguments.length?(c=!!e,n()):c},r.interpolate=function(e){return arguments.length?(l=e,n()):l},n()}function Oa(e){var t=e.domain;return e.ticks=function(e){var n=t();return ec(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return A$(t(),e,n)},e.nice=function(n){var i=t(),o=i.length-1,a=null==n?10:n,s=i[0],u=i[o],l=r(s,u,a);return l&&(l=r(Math.floor(s/l)*l,Math.ceil(u/l)*l,a),i[0]=Math.floor(s/l)*l,i[o]=Math.ceil(u/l)*l,t(i)),e},e}function Pa(){var e=Na(Ca,$h);return e.copy=function(){return Da(e,Pa())},Oa(e)}function Ia(){function e(e){return+e}var t=[0,1];return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=S$.call(n,M$),e):t.slice()},e.copy=function(){return Ia().domain(t)},Oa(e)}function ja(e,t){return(t=Math.log(t/e))?function(n){return Math.log(n/e)/t}:E$(t)}function La(e,t){return e<0?function(n){return-Math.pow(-t,n)*Math.pow(-e,1-n)}:function(n){return Math.pow(t,n)*Math.pow(e,1-n)}}function Ra(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Va(e){return 10===e?Ra:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function Fa(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function Ya(e){return function(t){return-e(-t)}}function Ha(){function t(){return o=Fa(i),a=Va(i),r()[0]<0&&(o=Ya(o),a=Ya(a)),n}var n=Na(ja,La).domain([1,10]),r=n.domain,i=10,o=Fa(10),a=Va(10);return n.base=function(e){return arguments.length?(i=+e,t()):i},n.domain=function(e){return arguments.length?(r(e),t()):r()},n.ticks=function(e){var t,n=r(),s=n[0],u=n[n.length-1];(t=u<s)&&(h=s,s=u,u=h);var l,c,f,h=o(s),d=o(u),p=null==e?10:+e,g=[];if(!(i%1)&&d-h<p){if(h=Math.round(h)-1,d=Math.round(d)+1,s>0){for(;h<d;++h)for(c=1,l=a(h);c<i;++c)if(!((f=l*c)<s)){if(f>u)break;g.push(f)}}else for(;h<d;++h)for(c=i-1,l=a(h);c>=1;--c)if(!((f=l*c)<s)){if(f>u)break;g.push(f)}}else g=ec(h,d,Math.min(d-h,p)).map(a);return t?g.reverse():g},n.tickFormat=function(t,r){if(null==r&&(r=10===i?".0e":","),"function"!=typeof r&&(r=e.format(r)),t===1/0)return r;null==t&&(t=10);var s=Math.max(1,i*t/n.ticks().length);return function(e){var t=e/a(Math.round(o(e)));return t*i<i-.5&&(t*=i),t<=s?r(e):""}},n.nice=function(){return r(D$(r(),{floor:function(e){return a(Math.floor(o(e)))},ceil:function(e){return a(Math.ceil(o(e)))}}))},n.copy=function(){return Da(n,Ha().base(i))},n}function qa(e,t){return e<0?-Math.pow(-e,t):Math.pow(e,t)}function za(){function e(e,t){return(t=qa(t,n)-(e=qa(e,n)))?function(r){return(qa(r,n)-e)/t}:E$(t)}function t(e,t){return t=qa(t,n)-(e=qa(e,n)),function(r){return qa(e+t*r,1/n)}}var n=1,r=Na(e,t),i=r.domain;return r.exponent=function(e){return arguments.length?(n=+e,i(i())):n},r.copy=function(){return Da(r,za().exponent(n))},Oa(r)}function Ua(){return za().exponent(.5)}function Ba(){function e(){var e=0,o=Math.max(1,r.length);for(i=new Array(o-1);++e<o;)i[e-1]=rc(n,e/o);return t}function t(e){if(!isNaN(e=+e))return r[jl(i,e)]}var n=[],r=[],i=[];return t.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?i[t-1]:n[0],t<i.length?i[t]:n[n.length-1]]},t.domain=function(t){if(!arguments.length)return n.slice();n=[];for(var r,i=0,o=t.length;i<o;++i)null==(r=t[i])||isNaN(r=+r)||n.push(r);return n.sort(Ol),e()},t.range=function(t){return arguments.length?(r=k$.call(t),e()):r.slice()},t.quantiles=function(){return i.slice()},t.copy=function(){return Ba().domain(n).range(r)},t}function Wa(){function e(e){if(e<=e)return a[jl(o,e,0,i)]}function t(){var t=-1;for(o=new Array(i);++t<i;)o[t]=((t+1)*r-(t-i)*n)/(i+1);return e}var n=0,r=1,i=1,o=[.5],a=[0,1];return e.domain=function(e){return arguments.length?(n=+e[0],r=+e[1],t()):[n,r]},e.range=function(e){return arguments.length?(i=(a=k$.call(e)).length-1,t()):a.slice()},e.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,o[0]]:t>=i?[o[i-1],r]:[o[t-1],o[t]]},e.copy=function(){return Wa().domain([n,r]).range(a)},Oa(e)}function Ga(){function e(e){if(e<=e)return n[jl(t,e,0,r)]}var t=[.5],n=[0,1],r=1;return e.domain=function(i){return arguments.length?(t=k$.call(i),r=Math.min(t.length,n.length-1),e):t.slice()},e.range=function(i){return arguments.length?(n=k$.call(i),r=Math.min(t.length,n.length-1),e):n.slice()},e.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},e.copy=function(){return Ga().domain(t).range(n)},e}function Xa(e,t,n,r){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;do{a.push(new Date(+n))}while(t(n,o),e(n),n<r);return a},i.filter=function(n){return Xa(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(i.count=function(t,r){return N$.setTime(+t),O$.setTime(+r),e(N$),e(O$),Math.floor(n(N$,O$))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}function Ka(e){return Xa(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*j$)/L$})}function Za(e){return Xa(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/L$})}function Ja(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Qa(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function es(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function ts(e){function t(e,t){return function(n){var r,i,o,a=[],s=-1,u=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===e.charCodeAt(s)&&(a.push(e.slice(u,s)),null!=(i=Ib[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),u=s+1);return a.push(e.slice(u,s)),a.join("")}}function n(e,t){return function(n){var i=es(1900);if(r(i,e,n+="",0)!=n.length)return null;if("p"in i&&(i.H=i.H%12+12*i.p),"W"in i||"U"in i){"w"in i||(i.w="W"in i?1:0);var o="Z"in i?Qa(es(i.y)).getUTCDay():t(es(i.y)).getDay();i.m=0,
i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7}return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Qa(i)):t(i)}}function r(e,t,n,r){for(var i,o,a=0,s=t.length,u=n.length;a<s;){if(r>=u)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=H[i in Ib?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function i(e,t,n){var r=A.exec(t.slice(n));return r?(e.p=D[r[0].toLowerCase()],n+r[0].length):-1}function o(e,t,n){var r=P.exec(t.slice(n));return r?(e.w=I[r[0].toLowerCase()],n+r[0].length):-1}function a(e,t,n){var r=N.exec(t.slice(n));return r?(e.w=O[r[0].toLowerCase()],n+r[0].length):-1}function s(e,t,n){var r=R.exec(t.slice(n));return r?(e.m=V[r[0].toLowerCase()],n+r[0].length):-1}function u(e,t,n){var r=j.exec(t.slice(n));return r?(e.m=L[r[0].toLowerCase()],n+r[0].length):-1}function l(e,t,n){return r(e,x,t,n)}function c(e,t,n){return r(e,_,t,n)}function f(e,t,n){return r(e,S,t,n)}function h(e){return E[e.getDay()]}function d(e){return C[e.getDay()]}function p(e){return T[e.getMonth()]}function g(e){return M[e.getMonth()]}function m(e){return k[+(e.getHours()>=12)]}function v(e){return E[e.getUTCDay()]}function y(e){return C[e.getUTCDay()]}function $(e){return T[e.getUTCMonth()]}function b(e){return M[e.getUTCMonth()]}function w(e){return k[+(e.getUTCHours()>=12)]}var x=e.dateTime,_=e.date,S=e.time,k=e.periods,C=e.days,E=e.shortDays,M=e.months,T=e.shortMonths,A=is(k),D=os(k),N=is(C),O=os(C),P=is(E),I=os(E),j=is(M),L=os(M),R=is(T),V=os(T),F={a:h,A:d,b:p,B:g,c:null,d:bs,e:bs,H:ws,I:xs,j:_s,L:Ss,m:ks,M:Cs,p:m,S:Es,U:Ms,w:Ts,W:As,x:null,X:null,y:Ds,Y:Ns,Z:Os,"%":Gs},Y={a:v,A:y,b:$,B:b,c:null,d:Ps,e:Ps,H:Is,I:js,j:Ls,L:Rs,m:Vs,M:Fs,p:w,S:Ys,U:Hs,w:qs,W:zs,x:null,X:null,y:Us,Y:Bs,Z:Ws,"%":Gs},H={a:o,A:a,b:s,B:u,c:l,d:ds,e:ds,H:gs,I:gs,j:ps,L:ys,m:hs,M:ms,p:i,S:vs,U:ss,w:as,W:us,x:c,X:f,y:cs,Y:ls,Z:fs,"%":$s};return F.x=t(_,F),F.X=t(S,F),F.c=t(x,F),Y.x=t(_,Y),Y.X=t(S,Y),Y.c=t(x,Y),{format:function(e){var n=t(e+="",F);return n.toString=function(){return e},n},parse:function(e){var t=n(e+="",Ja);return t.toString=function(){return e},t},utcFormat:function(e){var n=t(e+="",Y);return n.toString=function(){return e},n},utcParse:function(e){var t=n(e,Qa);return t.toString=function(){return e},t}}}function ns(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function rs(e){return e.replace(Rb,"\\$&")}function is(e){return new RegExp("^(?:"+e.map(rs).join("|")+")","i")}function os(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function as(e,t,n){var r=jb.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ss(e,t,n){var r=jb.exec(t.slice(n));return r?(e.U=+r[0],n+r[0].length):-1}function us(e,t,n){var r=jb.exec(t.slice(n));return r?(e.W=+r[0],n+r[0].length):-1}function ls(e,t,n){var r=jb.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function cs(e,t,n){var r=jb.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function fs(e,t,n){var r=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function hs(e,t,n){var r=jb.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ds(e,t,n){var r=jb.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ps(e,t,n){var r=jb.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function gs(e,t,n){var r=jb.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ms(e,t,n){var r=jb.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function vs(e,t,n){var r=jb.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ys(e,t,n){var r=jb.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function $s(e,t,n){var r=Lb.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function bs(e,t){return ns(e.getDate(),t,2)}function ws(e,t){return ns(e.getHours(),t,2)}function xs(e,t){return ns(e.getHours()%12||12,t,2)}function _s(e,t){return ns(1+z$.count(ub(e),e),t,3)}function Ss(e,t){return ns(e.getMilliseconds(),t,3)}function ks(e,t){return ns(e.getMonth()+1,t,2)}function Cs(e,t){return ns(e.getMinutes(),t,2)}function Es(e,t){return ns(e.getSeconds(),t,2)}function Ms(e,t){return ns(B$.count(ub(e),e),t,2)}function Ts(e){return e.getDay()}function As(e,t){return ns(W$.count(ub(e),e),t,2)}function Ds(e,t){return ns(e.getFullYear()%100,t,2)}function Ns(e,t){return ns(e.getFullYear()%1e4,t,4)}function Os(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ns(t/60|0,"0",2)+ns(t%60,"0",2)}function Ps(e,t){return ns(e.getUTCDate(),t,2)}function Is(e,t){return ns(e.getUTCHours(),t,2)}function js(e,t){return ns(e.getUTCHours()%12||12,t,2)}function Ls(e,t){return ns(1+pb.count(Nb(e),e),t,3)}function Rs(e,t){return ns(e.getUTCMilliseconds(),t,3)}function Vs(e,t){return ns(e.getUTCMonth()+1,t,2)}function Fs(e,t){return ns(e.getUTCMinutes(),t,2)}function Ys(e,t){return ns(e.getUTCSeconds(),t,2)}function Hs(e,t){return ns(mb.count(Nb(e),e),t,2)}function qs(e){return e.getUTCDay()}function zs(e,t){return ns(vb.count(Nb(e),e),t,2)}function Us(e,t){return ns(e.getUTCFullYear()%100,t,2)}function Bs(e,t){return ns(e.getUTCFullYear()%1e4,t,4)}function Ws(){return"+0000"}function Gs(){return"%"}function Xs(t){return Ob=ts(t),e.timeFormat=Ob.format,e.timeParse=Ob.parse,e.utcFormat=Ob.utcFormat,e.utcParse=Ob.utcParse,Ob}function Ks(e){return e.toISOString()}function Zs(e){var t=new Date(e);return isNaN(t)?null:t}function Js(e){return new Date(e)}function Qs(e){return e instanceof Date?+e:+new Date(+e)}function eu(e,t,n,i,o,a,s,u,l){function c(r){return(s(r)<r?g:a(r)<r?m:o(r)<r?v:i(r)<r?y:t(r)<r?n(r)<r?$:b:e(r)<r?w:x)(r)}function f(t,n,i,o){if(null==t&&(t=10),"number"==typeof t){var a=Math.abs(i-n)/t,s=Pl(function(e){return e[2]}).right(_,a);s===_.length?(o=r(n/Wb,i/Wb,t),t=e):s?(s=_[a/_[s-1][2]<_[s][2]/a?s-1:s],o=s[1],t=s[0]):(o=r(n,i,t),t=u)}return null==o?t:t.every(o)}var h=Na(Ca,$h),d=h.invert,p=h.domain,g=l(".%L"),m=l(":%S"),v=l("%I:%M"),y=l("%I %p"),$=l("%a %d"),b=l("%b %d"),w=l("%B"),x=l("%Y"),_=[[s,1,Yb],[s,5,5*Yb],[s,15,15*Yb],[s,30,30*Yb],[a,1,Hb],[a,5,5*Hb],[a,15,15*Hb],[a,30,30*Hb],[o,1,qb],[o,3,3*qb],[o,6,6*qb],[o,12,12*qb],[i,1,zb],[i,2,2*zb],[n,1,Ub],[t,1,Bb],[t,3,3*Bb],[e,1,Wb]];return h.invert=function(e){return new Date(d(e))},h.domain=function(e){return arguments.length?p(S$.call(e,Qs)):p().map(Js)},h.ticks=function(e,t){var n,r=p(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=f(e,i,o,t),n=n?n.range(i,o+1):[],a?n.reverse():n},h.tickFormat=function(e,t){return null==t?c:l(t)},h.nice=function(e,t){var n=p();return(e=f(e,n[0],n[n.length-1],t))?p(D$(n,e)):h},h.copy=function(){return Da(h,eu(e,t,n,i,o,a,s,u,l))},h}function tu(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function nu(e){function t(t){var o=(t-n)/(r-n);return e(i?Math.max(0,Math.min(1,o)):o)}var n=0,r=1,i=!1;return t.domain=function(e){return arguments.length?(n=+e[0],r=+e[1],t):[n,r]},t.clamp=function(e){return arguments.length?(i=!!e,t):i},t.interpolator=function(n){return arguments.length?(e=n,t):e},t.copy=function(){return nu(e).domain([n,r]).clamp(i)},Oa(t)}function ru(e){return e>1?0:e<-1?$w:Math.acos(e)}function iu(e){return e>=1?bw:e<=-1?-bw:Math.asin(e)}function ou(e){return e.innerRadius}function au(e){return e.outerRadius}function su(e){return e.startAngle}function uu(e){return e.endAngle}function lu(e){return e&&e.padAngle}function cu(e,t,n,r,i,o,a,s){var u=n-e,l=r-t,c=a-i,f=s-o,h=(c*(t-o)-f*(e-i))/(f*u-c*l);return[e+h*u,t+h*l]}function fu(e,t,n,r,i,o,a){var s=e-n,u=t-r,l=(a?o:-o)/vw(s*s+u*u),c=l*u,f=-l*s,h=e+c,d=t+f,p=n+c,g=r+f,m=(h+p)/2,v=(d+g)/2,y=p-h,$=g-d,b=y*y+$*$,w=i-o,x=h*g-p*d,_=($<0?-1:1)*vw(pw(0,w*w*b-x*x)),S=(x*$-y*_)/b,k=(-x*y-$*_)/b,C=(x*$+y*_)/b,E=(-x*y+$*_)/b,M=S-m,T=k-v,A=C-m,D=E-v;return M*M+T*T>A*A+D*D&&(S=C,k=E),{cx:S,cy:k,x01:-c,y01:-f,x11:S*(i/w-1),y11:k*(i/w-1)}}function hu(e){this._context=e}function du(e){return e[0]}function pu(e){return e[1]}function gu(e){this._curve=e}function mu(e){function t(t){return new gu(e(t))}return t._curve=e,t}function vu(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(mu(e)):t()._curve},e}function yu(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function $u(e){this._context=e}function bu(e){this._context=e}function wu(e){this._context=e}function xu(e,t){this._basis=new $u(e),this._beta=t}function _u(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Su(e,t){this._context=e,this._k=(1-t)/6}function ku(e,t){this._context=e,this._k=(1-t)/6}function Cu(e,t){this._context=e,this._k=(1-t)/6}function Eu(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>yw){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>yw){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function Mu(e,t){this._context=e,this._alpha=t}function Tu(e,t){this._context=e,this._alpha=t}function Au(e,t){this._context=e,this._alpha=t}function Du(e){this._context=e}function Nu(e){return e<0?-1:1}function Ou(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Nu(o)+Nu(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Pu(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Iu(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function ju(e){this._context=e}function Lu(e){this._context=new Ru(e)}function Ru(e){this._context=e}function Vu(e){return new ju(e)}function Fu(e){return new Lu(e)}function Yu(e){this._context=e}function Hu(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function qu(e,t){this._context=e,this._t=t}function zu(e){return new qu(e,0)}function Uu(e){return new qu(e,1)}function Bu(e,t){return e[t]}function Wu(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}function Gu(e){return e[0]}function Xu(e){return e[1]}function Ku(){this._=null}function Zu(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function Ju(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 Qu(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 el(e){for(;e.L;)e=e.L;return e}function tl(e,t,n,r){var i=[null,null],o=Ex.push(i)-1;return i.left=e,i.right=t,n&&rl(i,e,t,n),r&&rl(i,t,e,r),kx[e.index].halfedges.push(o),kx[t.index].halfedges.push(o),i}function nl(e,t,n){var r=[t,n];return r.left=e,r}function rl(e,t,n,r){e[0]||e[1]?e.left===n?e[1]=r:e[0]=r:(e[0]=r,e.left=t,e.right=n)}function il(e,t,n,r,i){var o,a=e[0],s=e[1],u=a[0],l=a[1],c=s[0],f=s[1],h=0,d=1,p=c-u,g=f-l;if(o=t-u,p||!(o>0)){if(o/=p,p<0){if(o<h)return;o<d&&(d=o)}else if(p>0){if(o>d)return;o>h&&(h=o)}if(o=r-u,p||!(o<0)){if(o/=p,p<0){if(o>d)return;o>h&&(h=o)}else if(p>0){if(o<h)return;o<d&&(d=o)}if(o=n-l,g||!(o>0)){if(o/=g,g<0){if(o<h)return;o<d&&(d=o)}else if(g>0){if(o>d)return;o>h&&(h=o)}if(o=i-l,g||!(o<0)){if(o/=g,g<0){if(o>d)return;o>h&&(h=o)}else if(g>0){if(o<h)return;o<d&&(d=o)}return!(h>0||d<1)||(h>0&&(e[0]=[u+h*p,l+h*g]),d<1&&(e[1]=[u+d*p,l+d*g]),!0)}}}}}function ol(e,t,n,r,i){var o=e[1];if(o)return!0;var a,s,u=e[0],l=e.left,c=e.right,f=l[0],h=l[1],d=c[0],p=c[1],g=(f+d)/2,m=(h+p)/2;if(p===h){if(g<t||g>=r)return;if(f>d){if(u){if(u[1]>=i)return}else u=[g,n];o=[g,i]}else{if(u){if(u[1]<n)return}else u=[g,i];o=[g,n]}}else if(a=(f-d)/(p-h),s=m-a*g,a<-1||a>1)if(f>d){if(u){if(u[1]>=i)return}else u=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(u){if(u[1]<n)return}else u=[(i-s)/a,i];o=[(n-s)/a,n]}else if(h<p){if(u){if(u[0]>=r)return}else u=[t,a*t+s];o=[r,a*r+s]}else{if(u){if(u[0]<t)return}else u=[r,a*r+s];o=[t,a*t+s]}return e[0]=u,e[1]=o,!0}function al(e,t,n,r){for(var i,o=Ex.length;o--;)ol(i=Ex[o],e,t,n,r)&&il(i,e,t,n,r)&&(Math.abs(i[0][0]-i[1][0])>Ax||Math.abs(i[0][1]-i[1][1])>Ax)||delete Ex[o]}function sl(e){return kx[e.index]={site:e,halfedges:[]}}function ul(e,t){var n=e.site,r=t.left,i=t.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=t[1],i=t[0]):(r=t[0],i=t[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function ll(e,t){return t[+(t.left!==e.site)]}function cl(e,t){return t[+(t.left===e.site)]}function fl(){for(var e,t,n,r,i=0,o=kx.length;i<o;++i)if((e=kx[i])&&(r=(t=e.halfedges).length)){var a=new Array(r),s=new Array(r);for(n=0;n<r;++n)a[n]=n,s[n]=ul(e,Ex[t[n]]);for(a.sort(function(e,t){return s[t]-s[e]}),n=0;n<r;++n)s[n]=t[a[n]];for(n=0;n<r;++n)t[n]=s[n]}}function hl(e,t,n,r){var i,o,a,s,u,l,c,f,h,d,p,g,m=kx.length,v=!0;for(i=0;i<m;++i)if(o=kx[i]){for(a=o.site,u=o.halfedges,s=u.length;s--;)Ex[u[s]]||u.splice(s,1);for(s=0,l=u.length;s<l;)d=cl(o,Ex[u[s]]),p=d[0],g=d[1],c=ll(o,Ex[u[++s%l]]),f=c[0],h=c[1],(Math.abs(p-f)>Ax||Math.abs(g-h)>Ax)&&(u.splice(s,0,Ex.push(nl(a,d,Math.abs(p-e)<Ax&&r-g>Ax?[e,Math.abs(f-e)<Ax?h:r]:Math.abs(g-r)<Ax&&n-p>Ax?[Math.abs(h-r)<Ax?f:n,r]:Math.abs(p-n)<Ax&&g-t>Ax?[n,Math.abs(f-n)<Ax?h:t]:Math.abs(g-t)<Ax&&p-e>Ax?[Math.abs(h-t)<Ax?f:e,t]:null))-1),++l);l&&(v=!1)}if(v){var y,$,b,w=1/0;for(i=0,v=null;i<m;++i)(o=kx[i])&&(a=o.site,y=a[0]-e,$=a[1]-t,(b=y*y+$*$)<w&&(w=b,v=o));if(v){var x=[e,t],_=[e,r],S=[n,r],k=[n,t];v.halfedges.push(Ex.push(nl(a=v.site,x,_))-1,Ex.push(nl(a,_,S))-1,Ex.push(nl(a,S,k))-1,Ex.push(nl(a,k,x))-1)}}for(i=0;i<m;++i)(o=kx[i])&&(o.halfedges.length||delete kx[i])}function dl(){Zu(this),this.x=this.y=this.arc=this.site=this.cy=null}function pl(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[0],s=i[1],u=r[0]-a,l=r[1]-s,c=o[0]-a,f=o[1]-s,h=2*(u*f-l*c);if(!(h>=-Dx)){var d=u*u+l*l,p=c*c+f*f,g=(f*d-l*p)/h,m=(u*p-c*d)/h,v=Mx.pop()||new dl;v.arc=e,v.site=i,v.x=g+a,v.y=(v.cy=m+s)+Math.sqrt(g*g+m*m),e.circle=v;for(var y=null,$=Cx._;$;)if(v.y<$.y||v.y===$.y&&v.x<=$.x){if(!$.L){y=$.P;break}$=$.L}else{if(!$.R){y=$;break}$=$.R}Cx.insert(y,v),y||(_x=v)}}}}function gl(e){var t=e.circle;t&&(t.P||(_x=t.N),Cx.remove(t),Mx.push(t),Zu(t),e.circle=null)}function ml(){Zu(this),this.edge=this.site=this.circle=null}function vl(e){var t=Tx.pop()||new ml;return t.site=e,t}function yl(e){gl(e),Sx.remove(e),Tx.push(e),Zu(e)}function $l(e){var t=e.circle,n=t.x,r=t.cy,i=[n,r],o=e.P,a=e.N,s=[e];yl(e);for(var u=o;u.circle&&Math.abs(n-u.circle.x)<Ax&&Math.abs(r-u.circle.cy)<Ax;)o=u.P,s.unshift(u),yl(u),u=o;s.unshift(u),gl(u);for(var l=a;l.circle&&Math.abs(n-l.circle.x)<Ax&&Math.abs(r-l.circle.cy)<Ax;)a=l.N,s.push(l),yl(l),l=a;s.push(l),gl(l);var c,f=s.length;for(c=1;c<f;++c)l=s[c],u=s[c-1],rl(l.edge,u.site,l.site,i);u=s[0],l=s[f-1],l.edge=tl(u.site,l.site,null,i),pl(u),pl(l)}function bl(e){for(var t,n,r,i,o=e[0],a=e[1],s=Sx._;s;)if((r=wl(s,a)-o)>Ax)s=s.L;else{if(!((i=o-xl(s,a))>Ax)){r>-Ax?(t=s.P,n=s):i>-Ax?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}sl(e);var u=vl(e);if(Sx.insert(t,u),t||n){if(t===n)return gl(t),n=vl(t.site),Sx.insert(u,n),u.edge=n.edge=tl(t.site,u.site),pl(t),void pl(n);if(!n)return void(u.edge=tl(t.site,u.site));gl(t),gl(n);var l=t.site,c=l[0],f=l[1],h=e[0]-c,d=e[1]-f,p=n.site,g=p[0]-c,m=p[1]-f,v=2*(h*m-d*g),y=h*h+d*d,$=g*g+m*m,b=[(m*y-d*$)/v+c,(h*$-g*y)/v+f];rl(n.edge,l,p,b),u.edge=tl(l,e,null,b),n.edge=tl(e,p,null,b),pl(t),pl(n)}}function wl(e,t){var n=e.site,r=n[0],i=n[1],o=i-t;if(!o)return r;var a=e.P;if(!a)return-1/0;n=a.site;var s=n[0],u=n[1],l=u-t;if(!l)return s;var c=s-r,f=1/o-1/l,h=c/l;return f?(-h+Math.sqrt(h*h-2*f*(c*c/(-2*l)-u+l/2+i-o/2)))/f+r:(r+s)/2}function xl(e,t){var n=e.N;if(n)return wl(n,t);var r=e.site;return r[1]===t?r[0]:1/0}function _l(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function Sl(e,t){return t[1]-e[1]||t[0]-e[0]}function kl(e,t){var n,r,i,o=e.sort(Sl).pop();for(Ex=[],kx=new Array(e.length),Sx=new Ku,Cx=new Ku;;)if(i=_x,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===n&&o[1]===r||(bl(o),n=o[0],r=o[1]),o=e.pop();else{if(!i)break;$l(i.arc)}if(fl(),t){var a=+t[0][0],s=+t[0][1],u=+t[1][0],l=+t[1][1];al(a,s,u,l),hl(a,s,u,l)}this.edges=Ex,this.cells=kx,Sx=Cx=Ex=kx=null}function Cl(e,t,n){this.target=e,this.type=t,this.transform=n}function El(e,t,n){this.k=e,this.x=t,this.y=n}function Ml(e){return e.__zoom||Px}function Tl(){e.event.stopImmediatePropagation()}function Al(){return!e.event.button}function Dl(){var e,t,n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,e=n.width.baseVal.value,t=n.height.baseVal.value):(e=n.clientWidth,t=n.clientHeight),[[0,0],[e,t]]}function Nl(){return this.__zoom||Px}var Ol=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},Pl=function(e){return 1===e.length&&(e=t(e)),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}},Il=Pl(Ol),jl=Il.right,Ll=Il.left,Rl=function(e,t){null==t&&(t=n);for(var r=0,i=e.length-1,o=e[0],a=new Array(i<0?0:i);r<i;)a[r]=t(o,o=e[++r]);return a},Vl=function(e,t,r){var i,o,a,s,u=e.length,l=t.length,c=new Array(u*l);for(null==r&&(r=n),i=a=0;i<u;++i)for(s=e[i],o=0;o<l;++o,++a)c[a]=r(s,t[o]);return c},Fl=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},Yl=function(e){return null===e?NaN:+e},Hl=function(e,t){var n,r,i=e.length,o=0,a=0,s=-1,u=0;if(null==t)for(;++s<i;)isNaN(n=Yl(e[s]))||(r=n-o,o+=r/++u,a+=r*(n-o));else for(;++s<i;)isNaN(n=Yl(t(e[s],s,e)))||(r=n-o,o+=r/++u,a+=r*(n-o));if(u>1)return a/(u-1)},ql=function(e,t){var n=Hl(e,t);return n?Math.sqrt(n):n},zl=function(e,t){var n,r,i,o=-1,a=e.length;if(null==t){for(;++o<a;)if(null!=(r=e[o])&&r>=r){n=i=r;break}for(;++o<a;)null!=(r=e[o])&&(n>r&&(n=r),i<r&&(i=r))}else{for(;++o<a;)if(null!=(r=t(e[o],o,e))&&r>=r){n=i=r;break}for(;++o<a;)null!=(r=t(e[o],o,e))&&(n>r&&(n=r),i<r&&(i=r))}return[n,i]},Ul=Array.prototype,Bl=Ul.slice,Wl=Ul.map,Gl=function(e){return function(){return e}},Xl=function(e){return e},Kl=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o},Zl=Math.sqrt(50),Jl=Math.sqrt(10),Ql=Math.sqrt(2),ec=function(e,t,n){var i=r(e,t,n);return Kl(Math.ceil(e/i)*i,Math.floor(t/i)*i+i/2,i)},tc=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1},nc=function(){function e(e){var i,o,a=e.length,s=new Array(a);for(i=0;i<a;++i)s[i]=t(e[i],i,e);var u=n(s),l=u[0],c=u[1],f=r(s,l,c);Array.isArray(f)||(f=ec(l,c,f));for(var h=f.length;f[0]<=l;)f.shift(),--h;for(;f[h-1]>=c;)f.pop(),--h;var d,p=new Array(h+1);for(i=0;i<=h;++i)d=p[i]=[],d.x0=i>0?f[i-1]:l,d.x1=i<h?f[i]:c;for(i=0;i<a;++i)o=s[i],l<=o&&o<=c&&p[jl(f,o,0,h)].push(e[i]);return p}var t=Xl,n=zl,r=tc;return e.value=function(n){return arguments.length?(t="function"==typeof n?n:Gl(n),e):t},e.domain=function(t){return arguments.length?(n="function"==typeof t?t:Gl([t[0],t[1]]),e):n},e.thresholds=function(t){return arguments.length?(r="function"==typeof t?t:Gl(Array.isArray(t)?Bl.call(t):t),e):r},e},rc=function(e,t,n){if(null==n&&(n=Yl),r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}},ic=function(e,t,n){return e=Wl.call(e,Yl).sort(Ol),Math.ceil((n-t)/(2*(rc(e,.75)-rc(e,.25))*Math.pow(e.length,-1/3)))},oc=function(e,t,n){return Math.ceil((n-t)/(3.5*ql(e)*Math.pow(e.length,-1/3)))},ac=function(e,t){var n,r,i=-1,o=e.length;if(null==t){for(;++i<o;)if(null!=(r=e[i])&&r>=r){n=r;break}for(;++i<o;)null!=(r=e[i])&&r>n&&(n=r)}else{for(;++i<o;)if(null!=(r=t(e[i],i,e))&&r>=r){n=r;break}for(;++i<o;)null!=(r=t(e[i],i,e))&&r>n&&(n=r)}return n},sc=function(e,t){var n,r=0,i=e.length,o=-1,a=i;if(null==t)for(;++o<i;)isNaN(n=Yl(e[o]))?--a:r+=n;else for(;++o<i;)isNaN(n=Yl(t(e[o],o,e)))?--a:r+=n;if(a)return r/a},uc=function(e,t){var n,r=[],i=e.length,o=-1;if(null==t)for(;++o<i;)isNaN(n=Yl(e[o]))||r.push(n);else for(;++o<i;)isNaN(n=Yl(t(e[o],o,e)))||r.push(n);return rc(r.sort(Ol),.5)},lc=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},cc=function(e,t){var n,r,i=-1,o=e.length;if(null==t){for(;++i<o;)if(null!=(r=e[i])&&r>=r){n=r;break}for(;++i<o;)null!=(r=e[i])&&n>r&&(n=r)}else{for(;++i<o;)if(null!=(r=t(e[i],i,e))&&r>=r){n=r;break}for(;++i<o;)null!=(r=t(e[i],i,e))&&n>r&&(n=r)}return n},fc=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},hc=function(e,t){if(n=e.length){var n,r,i=0,o=0,a=e[o];for(t||(t=Ol);++i<n;)(t(r=e[i],a)<0||0!==t(a,a))&&(a=r,o=i);return 0===t(a,a)?o:void 0}},dc=function(e,t,n){for(var r,i,o=(null==n?e.length:n)-(t=null==t?0:+t);o;)i=Math.random()*o--|0,r=e[o+t],e[o+t]=e[i+t],e[i+t]=r;return e},pc=function(e,t){var n,r=0,i=e.length,o=-1;if(null==t)for(;++o<i;)(n=+e[o])&&(r+=n);else for(;++o<i;)(n=+t(e[o],o,e))&&(r+=n);return r},gc=function(e){if(!(o=e.length))return[];for(var t=-1,n=cc(e,i),r=new Array(n);++t<n;)for(var o,a=-1,s=r[t]=new Array(o);++a<o;)s[a]=e[a][t];return r},mc=function(){return gc(arguments)},vc=Array.prototype.slice,yc=function(e){return e},$c=1,bc=2,wc=3,xc=4,_c=1e-6,Sc={value:function(){}};g.prototype=p.prototype={constructor:g,on:function(e,t){var n,r=this._,i=m(e+"",r),o=-1,a=i.length;{if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++o<a;)if(n=(e=i[o]).type)r[n]=y(r[n],e.name,t);else if(null==t)for(n in r)r[n]=y(r[n],e.name,null);return this}for(;++o<a;)if((n=(e=i[o]).type)&&(n=v(r[n],e.name)))return n}},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new g(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],o=0,n=r.length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var kc="http://www.w3.org/1999/xhtml",Cc={svg:"http://www.w3.org/2000/svg",xhtml:kc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ec=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Cc.hasOwnProperty(t)?{space:Cc[t],local:e}:e},Mc=function(e){var t=Ec(e);return(t.local?b:$)(t)},Tc=0;x.prototype=w.prototype={constructor:x,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var Ac=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Dc=document.documentElement;if(!Dc.matches){var Nc=Dc.webkitMatchesSelector||Dc.msMatchesSelector||Dc.mozMatchesSelector||Dc.oMatchesSelector;Ac=function(e){return function(){return Nc.call(this,e)}}}}var Oc=Ac,Pc={};if(e.event=null,"undefined"!=typeof document){"onmouseenter"in document.documentElement||(Pc={mouseenter:"mouseover",mouseleave:"mouseout"})}var Ic=function(e,t,n){var r,i,o=k(e+""),a=o.length;{if(!(arguments.length<2)){for(s=t?E:C,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var u,l=0,c=s.length;l<c;++l)for(r=0,u=s[l];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value}},jc=function(){for(var t,n=e.event;t=n.sourceEvent;)n=t;return n},Lc=function(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]},Rc=function(e){var t=jc();return t.changedTouches&&(t=t.changedTouches[0]),Lc(e,t)},Vc=function(e){return null==e?T:function(){return this.querySelector(e)}},Fc=function(e){"function"!=typeof e&&(e=Vc(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],u=s.length,l=r[i]=new Array(u),c=0;c<u;++c)(o=s[c])&&(a=e.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new pe(r,this._parents)},Yc=function(e){return null==e?A:function(){return this.querySelectorAll(e)}},Hc=function(e){"function"!=typeof e&&(e=Yc(e));for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],u=s.length,l=0;l<u;++l)(a=s[l])&&(r.push(e.call(a,a.__data__,l,s)),i.push(a));return new pe(r,i)},qc=function(e){"function"!=typeof e&&(e=Oc(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&u.push(o);return new pe(r,this._parents)},zc=function(e){return new Array(e.length)},Uc=function(){return new pe(this._enter||this._groups.map(zc),this._parents)};D.prototype={constructor:D,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Bc=function(e){return function(){return e}},Wc="$",Gc=function(e,t){if(!e)return d=new Array(this.size()),l=-1,this.each(function(e){d[++l]=e}),d;var n=t?O:N,r=this._parents,i=this._groups;"function"!=typeof e&&(e=Bc(e));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),l=0;l<o;++l){var c=r[l],f=i[l],h=f.length,d=e.call(c,c&&c.__data__,l,r),p=d.length,g=s[l]=new Array(p),m=a[l]=new Array(p);n(c,f,g,m,u[l]=new Array(h),d,t);for(var v,y,$=0,b=0;$<p;++$)if(v=g[$]){for($>=b&&(b=$+1);!(y=m[b])&&++b<p;);v._next=y||null}}return a=new pe(a,r),a._enter=s,a._exit=u,a},Xc=function(){return new pe(this._exit||this._groups.map(zc),this._parents)},Kc=function(e){for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,l=t[s],c=n[s],f=l.length,h=a[s]=new Array(f),d=0;d<f;++d)(u=l[d]||c[d])&&(h[d]=u);for(;s<r;++s)a[s]=t[s];return new pe(a,this._parents)},Zc=function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},Jc=function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=P);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,l=i[o]=new Array(u),c=0;c<u;++c)(a=s[c])&&(l[c]=a);l.sort(t)}return new pe(i,this._parents).order()},Qc=function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},ef=function(){var e=new Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e},tf=function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},nf=function(){var e=0;return this.each(function(){++e}),e},rf=function(){return!this.node()},of=function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},af=function(e,t){var n=Ec(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?j:I:"function"==typeof t?n.local?F:V:n.local?R:L)(n,t))},sf=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView},uf=function(e,t,n){var r;return arguments.length>1?this.each((null==t?Y:"function"==typeof t?q:H)(e,t,null==n?"":n)):sf(r=this.node()).getComputedStyle(r,null).getPropertyValue(e)},lf=function(e,t){return arguments.length>1?this.each((null==t?z:"function"==typeof t?B:U)(e,t)):this.node()[e]};X.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var cf=function(e,t){var n=W(e+"");if(arguments.length<2){for(var r=G(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?ee:t?J:Q)(n,t))},ff=function(e){return arguments.length?this.each(null==e?te:("function"==typeof e?re:ne)(e)):this.node().textContent},hf=function(e){return arguments.length?this.each(null==e?ie:("function"==typeof e?ae:oe)(e)):this.node().innerHTML},df=function(){return this.each(se)},pf=function(){return this.each(ue)},gf=function(e){var t="function"==typeof e?e:Mc(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},mf=function(e,t){var n="function"==typeof e?e:Mc(e),r=null==t?le:"function"==typeof t?t:Vc(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},vf=function(){return this.each(ce)},yf=function(e){return arguments.length?this.property("__data__",e):this.node().__data__},$f=function(e,t){return this.each(("function"==typeof t?de:he)(e,t))},bf=[null];pe.prototype=ge.prototype={constructor:pe,select:Fc,selectAll:Hc,filter:qc,data:Gc,enter:Uc,exit:Xc,merge:Kc,order:Zc,sort:Jc,call:Qc,nodes:ef,node:tf,size:nf,empty:rf,each:of,attr:af,style:uf,property:lf,classed:cf,text:ff,html:hf,raise:df,lower:pf,append:gf,insert:mf,remove:vf,datum:yf,on:Ic,dispatch:$f};var wf=function(e){return"string"==typeof e?new pe([[document.querySelector(e)]],[document.documentElement]):new pe([[e]],bf)},xf=function(e){return"string"==typeof e?new pe([document.querySelectorAll(e)],[document.documentElement]):new pe([null==e?[]:e],bf)},_f=function(e,t,n){arguments.length<3&&(n=t,t=jc().changedTouches);for(var r,i=0,o=t?t.length:0;i<o;++i)if((r=t[i]).identifier===n)return Lc(e,r);return null},Sf=function(e,t){null==t&&(t=jc().touches);for(var n=0,r=t?t.length:0,i=new Array(r);n<r;++n)i[n]=Lc(e,t[n]);return i},kf=function(){e.event.preventDefault(),e.event.stopImmediatePropagation()},Cf=function(e){var t=e.document.documentElement,n=wf(e).on("dragstart.drag",kf,!0);"onselectstart"in t?n.on("selectstart.drag",kf,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")},Ef=function(e){return function(){return e}};ye.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var Mf=function(){function t(e){e.on("mousedown.drag",n).on("touchstart.drag",o).on("touchmove.drag",a).on("touchend.drag touchcancel.drag",s).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function n(){if(!c&&f.apply(this,arguments)){var t=u("mouse",h.apply(this,arguments),Rc,this,arguments);t&&(wf(e.event.view).on("mousemove.drag",r,!0).on("mouseup.drag",i,!0),Cf(e.event.view),me(),l=!1,t("start"))}}function r(){kf(),l=!0,g.mouse("drag")}function i(){wf(e.event.view).on("mousemove.drag mouseup.drag",null),ve(e.event.view,l),kf(),g.mouse("end")}function o(){if(f.apply(this,arguments)){var t,n,r=e.event.changedTouches,i=h.apply(this,arguments),o=r.length;for(t=0;t<o;++t)(n=u(r[t].identifier,i,_f,this,arguments))&&(me(),n("start"))}}function a(){var t,n,r=e.event.changedTouches,i=r.length;for(t=0;t<i;++t)(n=g[r[t].identifier])&&(kf(),n("drag"))}function s(){
var t,n,r=e.event.changedTouches,i=r.length;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),t=0;t<i;++t)(n=g[r[t].identifier])&&(me(),n("end"))}function u(n,r,i,o,a){var s,u,l,c=i(r,n),f=m.copy();if(M(new ye(t,"beforestart",s,n,v,c[0],c[1],0,0,f),function(){return null!=(e.event.subject=s=d.apply(o,a))&&(u=s.x-c[0]||0,l=s.y-c[1]||0,!0)}))return function e(h){var d,p=c;switch(h){case"start":g[n]=e,d=v++;break;case"end":delete g[n],--v;case"drag":c=i(r,n),d=v}M(new ye(t,h,s,n,d,c[0]+u,c[1]+l,c[0]-p[0],c[1]-p[1],f),f.apply,f,[h,o,a])}}var l,c,f=$e,h=be,d=we,g={},m=p("start","drag","end"),v=0;return t.filter=function(e){return arguments.length?(f="function"==typeof e?e:Ef(!!e),t):f},t.container=function(e){return arguments.length?(h="function"==typeof e?e:Ef(e),t):h},t.subject=function(e){return arguments.length?(d="function"==typeof e?e:Ef(e),t):d},t.on=function(){var e=m.on.apply(m,arguments);return e===m?t:e},t},Tf=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e},Af="\\s*([+-]?\\d+)\\s*",Df="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Nf="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Of=/^#([0-9a-f]{3})$/,Pf=/^#([0-9a-f]{6})$/,If=new RegExp("^rgb\\("+[Af,Af,Af]+"\\)$"),jf=new RegExp("^rgb\\("+[Nf,Nf,Nf]+"\\)$"),Lf=new RegExp("^rgba\\("+[Af,Af,Af,Df]+"\\)$"),Rf=new RegExp("^rgba\\("+[Nf,Nf,Nf,Df]+"\\)$"),Vf=new RegExp("^hsl\\("+[Df,Nf,Nf]+"\\)$"),Ff=new RegExp("^hsla\\("+[Df,Nf,Nf,Df]+"\\)$"),Yf={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,rebeccapurple:6697881,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};Tf(_e,Se,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Tf(Te,Me,xe(_e,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(1===e?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Tf(Oe,Ne,xe(_e,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Oe(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Oe(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Te(Pe(e>=240?e-240:e+120,i,r),Pe(e,i,r),Pe(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Hf=Math.PI/180,qf=180/Math.PI,zf=.95047,Uf=1,Bf=1.08883,Wf=4/29,Gf=6/29,Xf=3*Gf*Gf,Kf=Gf*Gf*Gf;Tf(Le,je,xe(_e,{brighter:function(e){return new Le(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Le(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return e=Uf*Ve(e),t=zf*Ve(t),n=Bf*Ve(n),new Te(Fe(3.2404542*t-1.5371385*e-.4985314*n),Fe(-.969266*t+1.8760108*e+.041556*n),Fe(.0556434*t-.2040259*e+1.0572252*n),this.opacity)}})),Tf(ze,qe,xe(_e,{brighter:function(e){return new ze(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new ze(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Ie(this).rgb()}}));var Zf=-.14861,Jf=1.78277,Qf=-.29227,eh=-.90649,th=1.97294,nh=th*eh,rh=th*Jf,ih=Jf*Qf-eh*Zf;Tf(We,Be,xe(_e,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new We(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new We(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Hf,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Te(255*(t+n*(Zf*r+Jf*i)),255*(t+n*(Qf*r+eh*i)),255*(t+n*(th*r)),this.opacity)}}));var oh,ah,sh,uh,lh,ch,fh=function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return Ge((n-r/t)*t,a,i,o,s)}},hh=function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return Ge((n-r/t)*t,i,o,a,s)}},dh=function(e){return function(){return e}},ph=function e(t){function n(e,t){var n=r((e=Me(e)).r,(t=Me(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=Qe(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}var r=Je(t);return n.gamma=e,n}(1),gh=et(fh),mh=et(hh),vh=function(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(r),a=new Array(r);for(n=0;n<i;++n)o[n]=Sh(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}},yh=function(e,t){var n=new Date;return e=+e,t-=e,function(r){return n.setTime(e+t*r),n}},$h=function(e,t){return e=+e,t-=e,function(n){return e+t*n}},bh=function(e,t){var n,r={},i={};null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={});for(n in t)n in e?r[n]=Sh(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}},wh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xh=new RegExp(wh.source,"g"),_h=function(e,t){var n,r,i,o=wh.lastIndex=xh.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=wh.exec(e))&&(r=xh.exec(t));)(i=r.index)>o&&(i=t.slice(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:$h(n,r)})),o=xh.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?nt(u[0].x):tt(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})},Sh=function(e,t){var n,r=typeof t;return null==t||"boolean"===r?dh(t):("number"===r?$h:"string"===r?(n=Se(t))?(t=n,ph):_h:t instanceof Se?ph:t instanceof Date?yh:Array.isArray(t)?vh:isNaN(t)?bh:$h)(e,t)},kh=function(e,t){return e=+e,t-=e,function(n){return Math.round(e+t*n)}},Ch=180/Math.PI,Eh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Mh=function(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*Ch,skewX:Math.atan(u)*Ch,scaleX:a,scaleY:s}},Th=ot(rt,"px, ","px)","deg)"),Ah=ot(it,", ",")",")"),Dh=Math.SQRT2,Nh=function(e,t){var n,r,i=e[0],o=e[1],a=e[2],s=t[0],u=t[1],l=t[2],c=s-i,f=u-o,h=c*c+f*f;if(h<1e-12)r=Math.log(l/a)/Dh,n=function(e){return[i+e*c,o+e*f,a*Math.exp(Dh*e*r)]};else{var d=Math.sqrt(h),p=(l*l-a*a+4*h)/(2*a*2*d),g=(l*l-a*a-4*h)/(2*l*2*d),m=Math.log(Math.sqrt(p*p+1)-p),v=Math.log(Math.sqrt(g*g+1)-g);r=(v-m)/Dh,n=function(e){var t=e*r,n=at(m),s=a/(2*d)*(n*ut(Dh*t+m)-st(m));return[i+s*c,o+s*f,a*n/at(Dh*t+m)]}}return n.duration=1e3*r,n},Oh=lt(Ze),Ph=lt(Qe),Ih=ft(Ze),jh=ft(Qe),Lh=ht(Ze),Rh=ht(Qe),Vh=function(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n},Fh=0,Yh=0,Hh=0,qh=1e3,zh=0,Uh=0,Bh=0,Wh="object"==typeof performance&&performance.now?performance:Date,Gh="function"==typeof requestAnimationFrame?requestAnimationFrame:function(e){setTimeout(e,17)};gt.prototype=mt.prototype={constructor:gt,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?dt():+n)+(null==t?0:+t),this._next||ch===this||(ch?ch._next=this:lh=this,ch=this),this._call=e,this._time=n,wt()},stop:function(){this._call&&(this._call=null,this._time=1/0,wt())}};var Xh=function(e,t,n){var r=new gt;return t=null==t?0:+t,r.restart(function(n){r.stop(),e(n+t)},t,n),r},Kh=function(e,t,n){var r=new gt,i=t;return null==t?(r.restart(e,t,n),r):(t=+t,n=null==n?dt():+n,r.restart(function o(a){a+=i,r.restart(o,i+=t,n),e(a)},t,n),r)},Zh=p("start","end","interrupt"),Jh=[],Qh=0,ed=1,td=2,nd=3,rd=4,id=5,od=6,ad=function(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};kt(e,n,{name:t,index:r,group:i,on:Zh,tween:Jh,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Qh})},sd=function(e,t){var n,r,i,o=e.__transition,a=!0;if(o){t=null==t?null:t+"";for(i in o)(n=o[i]).name===t?(r=n.state>td&&n.state<id,n.state=od,n.timer.stop(),r&&n.on.call("interrupt",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}},ud=function(e){return this.each(function(){sd(this,e)})},ld=function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=St(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?Ct:Et)(n,e,t))},cd=function(e,t){var n;return("number"==typeof t?$h:t instanceof Se?ph:(n=Se(t))?(t=n,ph):_h)(e,t)},fd=function(e,t){var n=Ec(e),r="transform"===n?Ah:cd;return this.attrTween(e,"function"==typeof t?(n.local?Pt:Ot)(n,r,Mt(this,"attr."+e,t)):null==t?(n.local?At:Tt)(n):(n.local?Nt:Dt)(n,r,t+""))},hd=function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=Ec(e);return this.tween(n,(r.local?It:jt)(r,t))},dd=function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Lt:Rt)(t,e)):St(this.node(),t).delay},pd=function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Vt:Ft)(t,e)):St(this.node(),t).duration},gd=function(e){var t=this._id;return arguments.length?this.each(Yt(t,e)):St(this.node(),t).ease},md=function(e){"function"!=typeof e&&(e=Oc(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&e.call(o,o.__data__,l,a)&&u.push(o);return new Jt(r,this._parents,this._name,this._id)},vd=function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,l=t[s],c=n[s],f=l.length,h=a[s]=new Array(f),d=0;d<f;++d)(u=l[d]||c[d])&&(h[d]=u);for(;s<r;++s)a[s]=t[s];return new Jt(a,this._parents,this._name,this._id)},yd=function(e,t){var n=this._id;return arguments.length<2?St(this.node(),n).on.on(e):this.each(qt(n,e,t))},$d=function(){return this.on("end.remove",zt(this._id))},bd=function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Vc(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,l=r[a],c=l.length,f=o[a]=new Array(c),h=0;h<c;++h)(s=l[h])&&(u=e.call(s,s.__data__,h,l))&&("__data__"in s&&(u.__data__=s.__data__),f[h]=u,ad(f[h],t,n,h,f,St(s,n)));return new Jt(o,this._parents,t,n)},wd=function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Yc(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,l=r[s],c=l.length,f=0;f<c;++f)if(u=l[f]){for(var h,d=e.call(u,u.__data__,f,l),p=St(u,n),g=0,m=d.length;g<m;++g)(h=d[g])&&ad(h,t,n,g,d,p);o.push(d),a.push(u)}return new Jt(o,a,t,n)},xd=ge.prototype.constructor,_d=function(){return new xd(this._groups,this._parents)},Sd=function(e,t,n){var r="transform"==(e+="")?Th:cd;return null==t?this.styleTween(e,Ut(e,r)).on("end.style."+e,Bt(e)):this.styleTween(e,"function"==typeof t?Gt(e,r,Mt(this,"style."+e,t)):Wt(e,r,t+""),n)},kd=function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,Xt(e,t,null==n?"":n))},Cd=function(e){return this.tween("text","function"==typeof e?Zt(Mt(this,"text",e)):Kt(null==e?"":e+""))},Ed=function(){for(var e=this._name,t=this._id,n=en(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)if(a=s[l]){var c=St(a,t);ad(a,e,n,l,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Jt(r,this._parents,e,n)},Md=0,Td=ge.prototype;Jt.prototype=Qt.prototype={constructor:Jt,select:bd,selectAll:wd,filter:md,merge:vd,selection:_d,transition:Ed,call:Td.call,nodes:Td.nodes,node:Td.node,size:Td.size,empty:Td.empty,each:Td.each,on:yd,attr:fd,attrTween:hd,style:Sd,styleTween:kd,text:Cd,remove:$d,tween:ld,delay:dd,duration:pd,ease:gd};var Ad=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),Dd=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),Nd=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3),Od=Math.PI,Pd=Od/2,Id=4/11,jd=6/11,Ld=8/11,Rd=.75,Vd=9/11,Fd=10/11,Yd=.9375,Hd=21/22,qd=63/64,zd=1/Id/Id,Ud=function e(t){function n(e){return e*e*((t+1)*e-t)}return t=+t,n.overshoot=e,n}(1.70158),Bd=function e(t){function n(e){return--e*e*((t+1)*e+t)+1}return t=+t,n.overshoot=e,n}(1.70158),Wd=function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(1.70158),Gd=2*Math.PI,Xd=function e(t,n){function r(e){return t*Math.pow(2,10*--e)*Math.sin((i-e)/n)}var i=Math.asin(1/(t=Math.max(1,t)))*(n/=Gd);return r.amplitude=function(t){return e(t,n*Gd)},r.period=function(n){return e(t,n)},r}(1,.3),Kd=function e(t,n){function r(e){return 1-t*Math.pow(2,-10*(e=+e))*Math.sin((e+i)/n)}var i=Math.asin(1/(t=Math.max(1,t)))*(n/=Gd);return r.amplitude=function(t){return e(t,n*Gd)},r.period=function(n){return e(t,n)},r}(1,.3),Zd=function e(t,n){function r(e){return((e=2*e-1)<0?t*Math.pow(2,10*e)*Math.sin((i-e)/n):2-t*Math.pow(2,-10*e)*Math.sin((i+e)/n))/2}var i=Math.asin(1/(t=Math.max(1,t)))*(n/=Gd);return r.amplitude=function(t){return e(t,n*Gd)},r.period=function(n){return e(t,n)},r}(1,.3),Jd={time:null,delay:0,duration:250,ease:un},Qd=function(e){var t,n;e instanceof Jt?(t=e._id,e=e._name):(t=en(),(n=Jd).time=dt(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)(a=s[l])&&ad(a,e,t,l,s,n||wn(a,t));return new Jt(r,this._parents,e,t)};ge.prototype.interrupt=ud,ge.prototype.transition=Qd;var ep=[null],tp=function(e,t){var n,r,i=e.__transition;if(i){t=null==t?null:t+"";for(r in i)if((n=i[r]).state>ed&&n.name===t)return new Jt([[e]],ep,t,+r)}return null},np=function(e){return function(){return e}},rp=function(e,t,n){this.target=e,this.type=t,this.selection=n},ip=function(){e.event.preventDefault(),e.event.stopImmediatePropagation()},op={name:"drag"},ap={name:"space"},sp={name:"handle"},up={name:"center"},lp={name:"x",handles:["e","w"].map(_n),input:function(e,t){return e&&[[e[0],t[0][1]],[e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},cp={name:"y",handles:["n","s"].map(_n),input:function(e,t){return e&&[[t[0][0],e[0]],[t[1][0],e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},fp={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(_n),input:function(e){return e},output:function(e){return e}},hp={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},dp={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},pp={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},gp={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},mp={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1},vp=function(){return Dn(fp)},yp=Math.cos,$p=Math.sin,bp=Math.PI,wp=bp/2,xp=2*bp,_p=Math.max,Sp=function(){function e(e){var o,a,s,u,l,c,f=e.length,h=[],d=Kl(f),p=[],g=[],m=g.groups=new Array(f),v=new Array(f*f);for(o=0,l=-1;++l<f;){for(a=0,c=-1;++c<f;)a+=e[l][c];h.push(a),p.push(Kl(f)),o+=a}for(n&&d.sort(function(e,t){return n(h[e],h[t])}),r&&p.forEach(function(t,n){t.sort(function(t,i){return r(e[n][t],e[n][i])})}),o=_p(0,xp-t*f)/o,u=o?t:xp/f,a=0,l=-1;++l<f;){for(s=a,c=-1;++c<f;){var y=d[l],$=p[y][c],b=e[y][$],w=a,x=a+=b*o;v[$*f+y]={index:y,subindex:$,startAngle:w,endAngle:x,value:b}}m[y]={index:y,startAngle:s,endAngle:a,value:h[y]},a+=u}for(l=-1;++l<f;)for(c=l-1;++c<f;){var _=v[c*f+l],S=v[l*f+c];(_.value||S.value)&&g.push(_.value<S.value?{source:S,target:_}:{source:_,target:S})}return i?g.sort(i):g}var t=0,n=null,r=null,i=null;return e.padAngle=function(n){return arguments.length?(t=_p(0,n),e):t},e.sortGroups=function(t){return arguments.length?(n=t,e):n},e.sortSubgroups=function(t){return arguments.length?(r=t,e):r},e.sortChords=function(t){return arguments.length?(null==t?i=null:(i=Nn(t))._=t,e):i&&i._},e},kp=Array.prototype.slice,Cp=function(e){return function(){return e}},Ep=Math.PI,Mp=2*Ep,Tp=Mp-1e-6;On.prototype=Pn.prototype={constructor:On,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,u=r-t,l=o-e,c=a-t,f=l*l+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>1e-6)if(Math.abs(c*s-u*l)>1e-6&&i){var h=n-o,d=r-a,p=s*s+u*u,g=h*h+d*d,m=Math.sqrt(p),v=Math.sqrt(f),y=i*Math.tan((Ep-Math.acos((p+f-g)/(2*m*v)))/2),$=y/v,b=y/m;Math.abs($-1)>1e-6&&(this._+="L"+(e+$*l)+","+(t+$*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>l*d)+","+(this._x1=e+b*s)+","+(this._y1=t+b*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t,n=+n;var a=n*Math.cos(r),s=n*Math.sin(r),u=e+a,l=t+s,c=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+l:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-l)>1e-6)&&(this._+="L"+u+","+l),n&&(f<0&&(f=f%Mp+Mp),f>Tp?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=Ep)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Ap=function(){function e(){var e,s=kp.call(arguments),u=t.apply(this,s),l=n.apply(this,s),c=+r.apply(this,(s[0]=u,s)),f=i.apply(this,s)-wp,h=o.apply(this,s)-wp,d=c*yp(f),p=c*$p(f),g=+r.apply(this,(s[0]=l,s)),m=i.apply(this,s)-wp,v=o.apply(this,s)-wp;if(a||(a=e=Pn()),a.moveTo(d,p),a.arc(0,0,c,f,h),f===m&&h===v||(a.quadraticCurveTo(0,0,g*yp(m),g*$p(m)),a.arc(0,0,g,m,v)),a.quadraticCurveTo(0,0,d,p),a.closePath(),e)return a=null,e+""||null}var t=In,n=jn,r=Ln,i=Rn,o=Vn,a=null;return e.radius=function(t){return arguments.length?(r="function"==typeof t?t:Cp(+t),e):r},e.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:Cp(+t),e):i},e.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Cp(+t),e):o},e.source=function(n){return arguments.length?(t=n,e):t},e.target=function(t){return arguments.length?(n=t,e):n},e.context=function(t){return arguments.length?(a=null==t?null:t,e):a},e};Fn.prototype=Yn.prototype={constructor:Fn,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var Dp=function(){function e(t,i,a,s){if(i>=o.length)return null!=r?r(t):null!=n?t.sort(n):t;for(var u,l,c,f=-1,h=t.length,d=o[i++],p=Yn(),g=a();++f<h;)(c=p.get(u=d(l=t[f])+""))?c.push(l):p.set(u,[l]);return p.each(function(t,n){s(g,n,e(t,i,a,s))}),g}function t(e,n){if(++n>o.length)return e;var i,s=a[n-1];return null!=r&&n>=o.length?i=e.entries():(i=[],e.each(function(e,r){i.push({key:r,values:t(e,n)})})),null!=s?i.sort(function(e,t){return s(e.key,t.key)}):i}var n,r,i,o=[],a=[];return i={object:function(t){return e(t,0,Hn,qn)},map:function(t){return e(t,0,zn,Un)},entries:function(n){return t(e(n,0,zn,Un),0)},key:function(e){return o.push(e),i},sortKeys:function(e){return a[o.length-1]=e,i},sortValues:function(e){return n=e,i},rollup:function(e){return r=e,i}}},Np=Yn.prototype;Bn.prototype=Wn.prototype={constructor:Bn,has:Np.has,add:function(e){return e+="",this["$"+e]=e,this},remove:Np.remove,clear:Np.clear,values:Np.keys,size:Np.size,empty:Np.empty,each:Np.each};var Op=function(e){var t=[];for(var n in e)t.push(n);return t},Pp=function(e){var t=[];for(var n in e)t.push(e[n]);return t},Ip=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},jp=function(e){function t(e,t){var r,i,o=n(e,function(e,n){if(r)return r(e,n-1);i=e,r=t?Xn(e,t):Gn(e)});return o.columns=i,o}function n(e,t){function n(){if(c>=l)return a;if(i)return i=!1,o;var t,n=c;if(34===e.charCodeAt(n)){for(var r=n;r++<l;)if(34===e.charCodeAt(r)){if(34!==e.charCodeAt(r+1))break;++r}return c=r+2,t=e.charCodeAt(r+1),13===t?(i=!0,10===e.charCodeAt(r+2)&&++c):10===t&&(i=!0),e.slice(n+1,r).replace(/""/g,'"')}for(;c<l;){var s=1;if(10===(t=e.charCodeAt(c++)))i=!0;else if(13===t)i=!0,10===e.charCodeAt(c)&&(++c,++s);else if(t!==u)continue;return e.slice(n,c-s)}return e.slice(n)}for(var r,i,o={},a={},s=[],l=e.length,c=0,f=0;(r=n())!==a;){for(var h=[];r!==o&&r!==a;)h.push(r),r=n();t&&null==(h=t(h,f++))||s.push(h)}return s}function r(t,n){return null==n&&(n=Kn(t)),[n.map(a).join(e)].concat(t.map(function(t){return n.map(function(e){return a(t[e])}).join(e)})).join("\n")}function i(e){return e.map(o).join("\n")}function o(t){return t.map(a).join(e)}function a(e){return null==e?"":s.test(e+="")?'"'+e.replace(/\"/g,'""')+'"':e}var s=new RegExp('["'+e+"\n\r]"),u=e.charCodeAt(0);return{parse:t,parseRows:n,format:r,formatRows:i}},Lp=jp(","),Rp=Lp.parse,Vp=Lp.parseRows,Fp=Lp.format,Yp=Lp.formatRows,Hp=jp("\t"),qp=Hp.parse,zp=Hp.parseRows,Up=Hp.format,Bp=Hp.formatRows,Wp=function(e,t){function n(){var n,i,o=r.length,a=0,s=0;for(n=0;n<o;++n)i=r[n],a+=i.x,s+=i.y;for(a=a/o-e,s=s/o-t,n=0;n<o;++n)i=r[n],i.x-=a,i.y-=s}var r;return null==e&&(e=0),null==t&&(t=0),n.initialize=function(e){r=e},n.x=function(t){return arguments.length?(e=+t,n):e},n.y=function(e){return arguments.length?(t=+e,n):t},n},Gp=function(e){return function(){return e}},Xp=function(){return 1e-6*(Math.random()-.5)},Kp=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return Zn(this.cover(t,n),t,n,e)},Zp=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{if(!(n>e||e>i||r>t||t>o))return this;var a,s,u=i-n,l=this._root;switch(s=(t<(r+o)/2)<<1|e<(n+i)/2){case 0:do{a=new Array(4),a[s]=l,l=a}while(u*=2,i=n+u,o=r+u,e>i||t>o);break;case 1:do{a=new Array(4),a[s]=l,l=a}while(u*=2,n=i-u,o=r+u,n>e||t>o);break;case 2:do{a=new Array(4),a[s]=l,l=a}while(u*=2,i=n+u,r=o-u,e>i||r>t);break;case 3:do{a=new Array(4),a[s]=l,l=a}while(u*=2,n=i-u,r=o-u,n>e||r>t)}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},Jp=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},Qp=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},eg=function(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i},tg=function(e,t,n){var r,i,o,a,s,u,l,c=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new eg(g,c,f,h,d)),null==n?n=1/0:(c=e-n,f=t-n,h=e+n,d=t+n,n*=n);u=p.pop();)if(!(!(g=u.node)||(i=u.x0)>h||(o=u.y0)>d||(a=u.x1)<c||(s=u.y1)<f))if(g.length){var m=(i+a)/2,v=(o+s)/2;p.push(new eg(g[3],m,v,a,s),new eg(g[2],i,v,m,s),new eg(g[1],m,o,a,v),new eg(g[0],i,o,m,v)),(l=(t>=v)<<1|e>=m)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=u)}else{var y=e-+this._x.call(null,g.data),$=t-+this._y.call(null,g.data),b=y*y+$*$;if(b<n){var w=Math.sqrt(n=b);c=e-w,f=t-w,h=e+w,d=t+w,r=g.data}}return r},ng=function(e){if(isNaN(o=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e)))return this;var t,n,r,i,o,a,s,u,l,c,f,h,d=this._root,p=this._x0,g=this._y0,m=this._x1,v=this._y1;if(!d)return this;if(d.length)for(;;){if((l=o>=(s=(p+m)/2))?p=s:m=s,(c=a>=(u=(g+v)/2))?g=u:v=u,t=d,!(d=d[f=c<<1|l]))return this;if(!d.length)break;(t[f+1&3]||t[f+2&3]||t[f+3&3])&&(n=t,h=f)}for(;d.data!==e;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):t?(i?t[f]=i:delete t[f],(d=t[0]||t[1]||t[2]||t[3])&&d===(t[3]||t[2]||t[1]||t[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)},rg=function(){return this._root},ig=function(){var e=0;return this.visit(function(t){if(!t.length)do{++e}while(t=t.next)}),e},og=function(e){var t,n,r,i,o,a,s=[],u=this._root;for(u&&s.push(new eg(u,this._x0,this._y0,this._x1,this._y1));t=s.pop();)if(!e(u=t.node,r=t.x0,i=t.y0,o=t.x1,a=t.y1)&&u.length){var l=(r+o)/2,c=(i+a)/2;(n=u[3])&&s.push(new eg(n,l,c,o,a)),(n=u[2])&&s.push(new eg(n,r,c,l,a)),(n=u[1])&&s.push(new eg(n,l,i,o,c)),(n=u[0])&&s.push(new eg(n,r,i,l,c))}return this},ag=function(e){var t,n=[],r=[];for(this._root&&n.push(new eg(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var i=t.node;if(i.length){var o,a=t.x0,s=t.y0,u=t.x1,l=t.y1,c=(a+u)/2,f=(s+l)/2;(o=i[0])&&n.push(new eg(o,a,s,c,f)),(o=i[1])&&n.push(new eg(o,c,s,u,f)),(o=i[2])&&n.push(new eg(o,a,f,c,l)),(o=i[3])&&n.push(new eg(o,c,f,u,l))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},sg=function(e){return arguments.length?(this._x=e,this):this._x},ug=function(e){return arguments.length?(this._y=e,this):this._y},lg=nr.prototype=rr.prototype;lg.copy=function(){var e,t,n=new rr(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=ir(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=ir(t));return n},lg.add=Kp,lg.addAll=Jn,lg.cover=Zp,lg.data=Jp,lg.extent=Qp,lg.find=tg,lg.remove=ng,lg.removeAll=Qn,lg.root=rg,lg.size=ig,lg.visit=og,lg.visitAfter=ag,lg.x=sg,lg.y=ug;var cg,fg=function(e){function t(){function e(e,t,n,r,i){var o=e.data,s=e.r,d=f+s;{if(!o)return t>l+d||r<l-d||n>c+d||i<c-d;if(o.index>u.index){var p=l-o.x-o.vx,g=c-o.y-o.vy,m=p*p+g*g;m<d*d&&(0===p&&(p=Xp(),m+=p*p),0===g&&(g=Xp(),m+=g*g),m=(d-(m=Math.sqrt(m)))/m*a,u.vx+=(p*=m)*(d=(s*=s)/(h+s)),u.vy+=(g*=m)*d,o.vx-=p*(d=1-d),o.vy-=g*d)}}}for(var t,r,u,l,c,f,h,d=i.length,p=0;p<s;++p)for(r=nr(i,or,ar).visitAfter(n),t=0;t<d;++t)u=i[t],f=o[u.index],h=f*f,l=u.x+u.vx,c=u.y+u.vy,r.visit(e)}function n(e){if(e.data)return e.r=o[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function r(){if(i){var t,n,r=i.length;for(o=new Array(r),t=0;t<r;++t)n=i[t],o[n.index]=+e(n,t,i)}}var i,o,a=1,s=1;return"function"!=typeof e&&(e=Gp(null==e?1:+e)),t.initialize=function(e){i=e,r()},t.iterations=function(e){return arguments.length?(s=+e,t):s},t.strength=function(e){return arguments.length?(a=+e,t):a},t.radius=function(n){return arguments.length?(e="function"==typeof n?n:Gp(+n),r(),t):e},t},hg=function(e){function t(e){return 1/Math.min(l[e.source.index],l[e.target.index])}function n(t){for(var n=0,r=e.length;n<p;++n)for(var i,o,u,l,f,h,d,g=0;g<r;++g)i=e[g],o=i.source,u=i.target,l=u.x+u.vx-o.x-o.vx||Xp(),f=u.y+u.vy-o.y-o.vy||Xp(),h=Math.sqrt(l*l+f*f),h=(h-s[g])/h*t*a[g],l*=h,f*=h,u.vx-=l*(d=c[g]),u.vy-=f*d,o.vx+=l*(d=1-d),o.vy+=f*d}function r(){if(u){var t,n,r=u.length,h=e.length,d=Yn(u,f);for(t=0,l=new Array(r);t<h;++t)n=e[t],n.index=t,"object"!=typeof n.source&&(n.source=ur(d,n.source)),"object"!=typeof n.target&&(n.target=ur(d,n.target)),l[n.source.index]=(l[n.source.index]||0)+1,l[n.target.index]=(l[n.target.index]||0)+1;for(t=0,c=new Array(h);t<h;++t)n=e[t],c[t]=l[n.source.index]/(l[n.source.index]+l[n.target.index]);a=new Array(h),i(),s=new Array(h),o()}}function i(){if(u)for(var t=0,n=e.length;t<n;++t)a[t]=+h(e[t],t,e)}function o(){if(u)for(var t=0,n=e.length;t<n;++t)s[t]=+d(e[t],t,e)}var a,s,u,l,c,f=sr,h=t,d=Gp(30),p=1;return null==e&&(e=[]),n.initialize=function(e){u=e,r()},n.links=function(t){return arguments.length?(e=t,r(),n):e},n.id=function(e){return arguments.length?(f=e,n):f},n.iterations=function(e){return arguments.length?(p=+e,n):p},n.strength=function(e){return arguments.length?(h="function"==typeof e?e:Gp(+e),i(),n):h},n.distance=function(e){return arguments.length?(d="function"==typeof e?e:Gp(+e),o(),n):d},n},dg=10,pg=Math.PI*(3-Math.sqrt(5)),gg=function(e){function t(){n(),d.call("tick",o),a<s&&(h.stop(),d.call("end",o))}function n(){var t,n,r=e.length;for(a+=(l-a)*u,
f.each(function(e){e(a)}),t=0;t<r;++t)n=e[t],null==n.fx?n.x+=n.vx*=c:(n.x=n.fx,n.vx=0),null==n.fy?n.y+=n.vy*=c:(n.y=n.fy,n.vy=0)}function r(){for(var t,n=0,r=e.length;n<r;++n){if(t=e[n],t.index=n,isNaN(t.x)||isNaN(t.y)){var i=dg*Math.sqrt(n),o=n*pg;t.x=i*Math.cos(o),t.y=i*Math.sin(o)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function i(t){return t.initialize&&t.initialize(e),t}var o,a=1,s=.001,u=1-Math.pow(s,1/300),l=0,c=.6,f=Yn(),h=mt(t),d=p("tick","end");return null==e&&(e=[]),r(),o={tick:n,restart:function(){return h.restart(t),o},stop:function(){return h.stop(),o},nodes:function(t){return arguments.length?(e=t,r(),f.each(i),o):e},alpha:function(e){return arguments.length?(a=+e,o):a},alphaMin:function(e){return arguments.length?(s=+e,o):s},alphaDecay:function(e){return arguments.length?(u=+e,o):+u},alphaTarget:function(e){return arguments.length?(l=+e,o):l},velocityDecay:function(e){return arguments.length?(c=1-e,o):1-c},force:function(e,t){return arguments.length>1?(null==t?f.remove(e):f.set(e,i(t)),o):f.get(e)},find:function(t,n,r){var i,o,a,s,u,l=0,c=e.length;for(null==r?r=1/0:r*=r,l=0;l<c;++l)s=e[l],i=t-s.x,o=n-s.y,(a=i*i+o*o)<r&&(u=s,r=a);return u},on:function(e,t){return arguments.length>1?(d.on(e,t),o):d.on(e)}}},mg=function(){function e(e){var t,s=i.length,u=nr(i,lr,cr).visitAfter(n);for(a=e,t=0;t<s;++t)o=i[t],u.visit(r)}function t(){if(i){var e,t,n=i.length;for(s=new Array(n),e=0;e<n;++e)t=i[e],s[t.index]=+u(t,e,i)}}function n(e){var t,n,r,i,o,a=0;if(e.length){for(r=i=o=0;o<4;++o)(t=e[o])&&(n=t.value)&&(a+=n,r+=n*t.x,i+=n*t.y);e.x=r/a,e.y=i/a}else{t=e,t.x=t.data.x,t.y=t.data.y;do{a+=s[t.data.index]}while(t=t.next)}e.value=a}function r(e,t,n,r){if(!e.value)return!0;var i=e.x-o.x,u=e.y-o.y,h=r-t,d=i*i+u*u;if(h*h/f<d)return d<c&&(0===i&&(i=Xp(),d+=i*i),0===u&&(u=Xp(),d+=u*u),d<l&&(d=Math.sqrt(l*d)),o.vx+=i*e.value*a/d,o.vy+=u*e.value*a/d),!0;if(!(e.length||d>=c)){(e.data!==o||e.next)&&(0===i&&(i=Xp(),d+=i*i),0===u&&(u=Xp(),d+=u*u),d<l&&(d=Math.sqrt(l*d)));do{e.data!==o&&(h=s[e.data.index]*a/d,o.vx+=i*h,o.vy+=u*h)}while(e=e.next)}}var i,o,a,s,u=Gp(-30),l=1,c=1/0,f=.81;return e.initialize=function(e){i=e,t()},e.strength=function(n){return arguments.length?(u="function"==typeof n?n:Gp(+n),t(),e):u},e.distanceMin=function(t){return arguments.length?(l=t*t,e):Math.sqrt(l)},e.distanceMax=function(t){return arguments.length?(c=t*t,e):Math.sqrt(c)},e.theta=function(t){return arguments.length?(f=t*t,e):Math.sqrt(f)},e},vg=function(e){function t(e){for(var t,n=0,a=r.length;n<a;++n)t=r[n],t.vx+=(o[n]-t.x)*i[n]*e}function n(){if(r){var t,n=r.length;for(i=new Array(n),o=new Array(n),t=0;t<n;++t)i[t]=isNaN(o[t]=+e(r[t],t,r))?0:+a(r[t],t,r)}}var r,i,o,a=Gp(.1);return"function"!=typeof e&&(e=Gp(null==e?0:+e)),t.initialize=function(e){r=e,n()},t.strength=function(e){return arguments.length?(a="function"==typeof e?e:Gp(+e),n(),t):a},t.x=function(r){return arguments.length?(e="function"==typeof r?r:Gp(+r),n(),t):e},t},yg=function(e){function t(e){for(var t,n=0,a=r.length;n<a;++n)t=r[n],t.vy+=(o[n]-t.y)*i[n]*e}function n(){if(r){var t,n=r.length;for(i=new Array(n),o=new Array(n),t=0;t<n;++t)i[t]=isNaN(o[t]=+e(r[t],t,r))?0:+a(r[t],t,r)}}var r,i,o,a=Gp(.1);return"function"!=typeof e&&(e=Gp(null==e?0:+e)),t.initialize=function(e){r=e,n()},t.strength=function(e){return arguments.length?(a="function"==typeof e?e:Gp(+e),n(),t):a},t.y=function(r){return arguments.length?(e="function"==typeof r?r:Gp(+r),n(),t):e},t},$g=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]},bg=function(e){return e=$g(Math.abs(e)),e?e[1]:NaN},wg=function(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(n.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}},xg=function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}},_g=function(e,t){e=e.toPrecision(t);e:for(var n,r=e.length,i=1,o=-1;i<r;++i)switch(e[i]){case".":o=n=i;break;case"0":0===o&&(o=i),n=i;break;case"e":break e;default:o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(n+1):e},Sg=function(e,t){var n=$g(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(cg=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+$g(e,Math.max(0,t+o-1))[0]},kg=function(e,t){var n=$g(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Cg={"":_g,"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return kg(100*e,t)},r:kg,s:Sg,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Eg=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;fr.prototype=hr.prototype,hr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var Mg,Tg=function(e){return e},Ag=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Dg=function(e){function t(e){function t(e){var t,i,l,$=g,b=m;if("c"===p)b=v(e)+b,e="";else{e=+e;var w=e<0;if(e=v(Math.abs(e),d),w&&0==+e&&(w=!1),$=(w?"("===u?u:"-":"-"===u||"("===u?"":u)+$,b=b+("s"===p?Ag[8+cg/3]:"")+(w&&"("===u?")":""),y)for(t=-1,i=e.length;++t<i;)if(48>(l=e.charCodeAt(t))||l>57){b=(46===l?o+e.slice(t+1):e.slice(t))+b,e=e.slice(0,t);break}}h&&!c&&(e=r(e,1/0));var x=$.length+e.length+b.length,_=x<f?new Array(f-x+1).join(n):"";switch(h&&c&&(e=r(_+e,_.length?f-b.length:1/0),_=""),s){case"<":e=$+e+b+_;break;case"=":e=$+_+e+b;break;case"^":e=_.slice(0,x=_.length>>1)+$+e+b+_.slice(x);break;default:e=_+$+e+b}return a(e)}e=fr(e);var n=e.fill,s=e.align,u=e.sign,l=e.symbol,c=e.zero,f=e.width,h=e.comma,d=e.precision,p=e.type,g="$"===l?i[0]:"#"===l&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",m="$"===l?i[1]:/[%p]/.test(p)?"%":"",v=Cg[p],y=!p||/[defgprs%]/.test(p);return d=null==d?p?6:12:/[gprs]/.test(p)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),t.toString=function(){return e+""},t}function n(e,n){var r=t((e=fr(e),e.type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(bg(n)/3))),o=Math.pow(10,-i),a=Ag[8+i/3];return function(e){return r(o*e)+a}}var r=e.grouping&&e.thousands?wg(e.grouping,e.thousands):Tg,i=e.currency,o=e.decimal,a=e.numerals?xg(e.numerals):Tg;return{format:t,formatPrefix:n}};dr({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Ng=function(e){return Math.max(0,-bg(Math.abs(e)))},Og=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(bg(t)/3)))-bg(Math.abs(e)))},Pg=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,bg(t)-bg(e))+1},Ig=function(){return new pr};pr.prototype={constructor:pr,reset:function(){this.s=this.t=0},add:function(e){gr(dm,e,this.t),gr(this,dm.s,this.s),this.s?this.t+=dm.t:this.s=dm.t},valueOf:function(){return this.s}};var jg,Lg,Rg,Vg,Fg,Yg,Hg,qg,zg,Ug,Bg,Wg,Gg,Xg,Kg,Zg,Jg,Qg,em,tm,nm,rm,im,om,am,sm,um,lm,cm,fm,hm,dm=new pr,pm=1e-6,gm=Math.PI,mm=gm/2,vm=gm/4,ym=2*gm,$m=180/gm,bm=gm/180,wm=Math.abs,xm=Math.atan,_m=Math.atan2,Sm=Math.cos,km=Math.ceil,Cm=Math.exp,Em=Math.log,Mm=Math.pow,Tm=Math.sin,Am=Math.sign||function(e){return e>0?1:e<0?-1:0},Dm=Math.sqrt,Nm=Math.tan,Om={Feature:function(e,t){br(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)br(n[r].geometry,t)}},Pm={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){wr(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)wr(n[r],t,0)},Polygon:function(e,t){xr(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)xr(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)br(n[r],t)}},Im=function(e,t){e&&Om.hasOwnProperty(e.type)?Om[e.type](e,t):br(e,t)},jm=Ig(),Lm=Ig(),Rm={point:$r,lineStart:$r,lineEnd:$r,polygonStart:function(){jm.reset(),Rm.lineStart=_r,Rm.lineEnd=Sr},polygonEnd:function(){var e=+jm;Lm.add(e<0?ym+e:e),this.lineStart=this.lineEnd=this.point=$r},sphere:function(){Lm.add(ym)}},Vm=function(e){return Lm.reset(),Im(e,Rm),2*Lm},Fm=Ig(),Ym={point:Pr,lineStart:jr,lineEnd:Lr,polygonStart:function(){Ym.point=Rr,Ym.lineStart=Vr,Ym.lineEnd=Fr,Fm.reset(),Rm.polygonStart()},polygonEnd:function(){Rm.polygonEnd(),Ym.point=Pr,Ym.lineStart=jr,Ym.lineEnd=Lr,jm<0?(Yg=-(qg=180),Hg=-(zg=90)):Fm>pm?zg=90:Fm<-pm&&(Hg=-90),Kg[0]=Yg,Kg[1]=qg}},Hm=function(e){var t,n,r,i,o,a,s;if(zg=qg=-(Yg=Hg=1/0),Xg=[],Im(e,Ym),n=Xg.length){for(Xg.sort(Hr),t=1,r=Xg[0],o=[r];t<n;++t)i=Xg[t],qr(r,i[0])||qr(r,i[1])?(Yr(r[0],i[1])>Yr(r[0],r[1])&&(r[1]=i[1]),Yr(i[0],r[1])>Yr(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,n=o.length-1,t=0,r=o[n];t<=n;r=i,++t)i=o[t],(s=Yr(r[1],i[0]))>a&&(a=s,Yg=i[0],qg=r[1])}return Xg=Kg=null,Yg===1/0||Hg===1/0?[[NaN,NaN],[NaN,NaN]]:[[Yg,Hg],[qg,zg]]},qm={sphere:$r,point:zr,lineStart:Br,lineEnd:Xr,polygonStart:function(){qm.lineStart=Kr,qm.lineEnd=Zr},polygonEnd:function(){qm.lineStart=Br,qm.lineEnd=Xr}},zm=function(e){Zg=Jg=Qg=em=tm=nm=rm=im=om=am=sm=0,Im(e,qm);var t=om,n=am,r=sm,i=t*t+n*n+r*r;return i<1e-12&&(t=nm,n=rm,r=im,Jg<pm&&(t=Qg,n=em,r=tm),(i=t*t+n*n+r*r)<1e-12)?[NaN,NaN]:[_m(n,t)*$m,vr(r/Dm(i))*$m]},Um=function(e){return function(){return e}},Bm=function(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))&&e.invert(n[0],n[1])}),n};ei.invert=ei;var Wm,Gm,Xm,Km,Zm,Jm,Qm,ev,tv,nv,rv,iv=function(e){function t(t){return t=e(t[0]*bm,t[1]*bm),t[0]*=$m,t[1]*=$m,t}return e=ti(e[0]*bm,e[1]*bm,e.length>2?e[2]*bm:0),t.invert=function(t){return t=e.invert(t[0]*bm,t[1]*bm),t[0]*=$m,t[1]*=$m,t},t},ov=function(){function e(e,t){n.push(e=r(e,t)),e[0]*=$m,e[1]*=$m}function t(){var e=i.apply(this,arguments),t=o.apply(this,arguments)*bm,u=a.apply(this,arguments)*bm;return n=[],r=ti(-e[0]*bm,-e[1]*bm,0).invert,oi(s,t,u,1),e={type:"Polygon",coordinates:[n]},n=r=null,e}var n,r,i=Um([0,0]),o=Um(90),a=Um(6),s={point:e};return t.center=function(e){return arguments.length?(i="function"==typeof e?e:Um([+e[0],+e[1]]),t):i},t.radius=function(e){return arguments.length?(o="function"==typeof e?e:Um(+e),t):o},t.precision=function(e){return arguments.length?(a="function"==typeof e?e:Um(+e),t):a},t},av=function(){var e,t=[];return{point:function(t,n){e.push([t,n])},lineStart:function(){t.push(e=[])},lineEnd:$r,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},sv=function(e,t,n,r,i,o){var a,s=e[0],u=e[1],l=t[0],c=t[1],f=0,h=1,d=l-s,p=c-u;if(a=n-s,d||!(a>0)){if(a/=d,d<0){if(a<f)return;a<h&&(h=a)}else if(d>0){if(a>h)return;a>f&&(f=a)}if(a=i-s,d||!(a<0)){if(a/=d,d<0){if(a>h)return;a>f&&(f=a)}else if(d>0){if(a<f)return;a<h&&(h=a)}if(a=r-u,p||!(a>0)){if(a/=p,p<0){if(a<f)return;a<h&&(h=a)}else if(p>0){if(a>h)return;a>f&&(f=a)}if(a=o-u,p||!(a<0)){if(a/=p,p<0){if(a>h)return;a>f&&(f=a)}else if(p>0){if(a<f)return;a<h&&(h=a)}return f>0&&(e[0]=s+f*d,e[1]=u+f*p),h<1&&(t[0]=s+h*d,t[1]=u+h*p),!0}}}}},uv=function(e,t){return wm(e[0]-t[0])<pm&&wm(e[1]-t[1])<pm},lv=function(e,t,n,r,i){var o,a,s=[],u=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n,r=e[0],a=e[t];if(uv(r,a)){for(i.lineStart(),o=0;o<t;++o)i.point((r=e[o])[0],r[1]);return void i.lineEnd()}s.push(n=new si(r,e,null,!0)),u.push(n.o=new si(r,null,n,!1)),s.push(n=new si(a,e,null,!1)),u.push(n.o=new si(a,null,n,!0))}}),s.length){for(u.sort(t),ui(s),ui(u),o=0,a=u.length;o<a;++o)u[o].e=n=!n;for(var l,c,f=s[0];;){for(var h=f,d=!0;h.v;)if((h=h.n)===f)return;l=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(o=0,a=l.length;o<a;++o)i.point((c=l[o])[0],c[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(l=h.p.z,o=l.length-1;o>=0;--o)i.point((c=l[o])[0],c[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()}}},cv=1e9,fv=-cv,hv=function(){var e,t,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return e&&t===n?e:e=li(r,i,o,a)(t=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],o=+s[1][0],a=+s[1][1],e=t=null,n):[[r,i],[o,a]]}}},dv=Ig(),pv=function(e,t){var n=t[0],r=t[1],i=[Tm(n),-Sm(n),0],o=0,a=0;dv.reset();for(var s=0,u=e.length;s<u;++s)if(c=(l=e[s]).length)for(var l,c,f=l[c-1],h=f[0],d=f[1]/2+vm,p=Tm(d),g=Sm(d),m=0;m<c;++m,h=y,p=b,g=w,f=v){var v=l[m],y=v[0],$=v[1]/2+vm,b=Tm($),w=Sm($),x=y-h,_=x>=0?1:-1,S=_*x,k=S>gm,C=p*b;if(dv.add(_m(C*_*Tm(S),g*w+C*Sm(S))),o+=k?x+_*ym:x,k^h>=n^y>=n){var E=Ar(Mr(f),Mr(v));Or(E);var M=Ar(i,E);Or(M);var T=(k^x>=0?-1:1)*vr(M[2]);(r>T||r===T&&(E[0]||E[1]))&&(a+=k^x>=0?1:-1)}}return(o<-pm||o<pm&&dv<-pm)^1&a},gv=Ig(),mv={sphere:$r,point:$r,lineStart:ci,lineEnd:$r,polygonStart:$r,polygonEnd:$r},vv=function(e){return gv.reset(),Im(e,mv),+gv},yv=[null,null],$v={type:"LineString",coordinates:yv},bv=function(e,t){return yv[0]=e,yv[1]=t,vv($v)},wv={Feature:function(e,t){return pi(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)if(pi(n[r].geometry,t))return!0;return!1}},xv={Sphere:function(){return!0},Point:function(e,t){return gi(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(gi(n[r],t))return!0;return!1},LineString:function(e,t){return mi(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(mi(n[r],t))return!0;return!1},Polygon:function(e,t){return vi(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(vi(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)if(pi(n[r],t))return!0;return!1}},_v=function(e,t){return(e&&wv.hasOwnProperty(e.type)?wv[e.type]:pi)(e,t)},Sv=function(e,t){var n=e[0]*bm,r=e[1]*bm,i=t[0]*bm,o=t[1]*bm,a=Sm(r),s=Tm(r),u=Sm(o),l=Tm(o),c=a*Sm(n),f=a*Tm(n),h=u*Sm(i),d=u*Tm(i),p=2*vr(Dm(yr(o-r)+a*u*yr(i-n))),g=Tm(p),m=p?function(e){var t=Tm(e*=p)/g,n=Tm(p-e)/g,r=n*c+t*h,i=n*f+t*d,o=n*s+t*l;return[_m(i,r)*$m,_m(o,Dm(r*r+i*i))*$m]}:function(){return[n*$m,r*$m]};return m.distance=p,m},kv=function(e){return e},Cv=Ig(),Ev=Ig(),Mv={point:$r,lineStart:$r,lineEnd:$r,polygonStart:function(){Mv.lineStart=Si,Mv.lineEnd=Ei},polygonEnd:function(){Mv.lineStart=Mv.lineEnd=Mv.point=$r,Cv.add(wm(Ev)),Ev.reset()},result:function(){var e=Cv/2;return Cv.reset(),e}},Tv=1/0,Av=Tv,Dv=-Tv,Nv=Dv,Ov={point:Mi,lineStart:$r,lineEnd:$r,polygonStart:$r,polygonEnd:$r,result:function(){var e=[[Tv,Av],[Dv,Nv]];return Dv=Nv=-(Av=Tv=1/0),e}},Pv=0,Iv=0,jv=0,Lv=0,Rv=0,Vv=0,Fv=0,Yv=0,Hv=0,qv={point:Ti,lineStart:Ai,lineEnd:Oi,polygonStart:function(){qv.lineStart=Pi,qv.lineEnd=Ii},polygonEnd:function(){qv.point=Ti,qv.lineStart=Ai,qv.lineEnd=Oi},result:function(){var e=Hv?[Fv/Hv,Yv/Hv]:Vv?[Lv/Vv,Rv/Vv]:jv?[Pv/jv,Iv/jv]:[NaN,NaN];return Pv=Iv=jv=Lv=Rv=Vv=Fv=Yv=Hv=0,e}};Ri.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,ym)}},result:$r};var zv,Uv,Bv,Wv,Gv,Xv=Ig(),Kv={point:$r,lineStart:function(){Kv.point=Vi},lineEnd:function(){zv&&Fi(Uv,Bv),Kv.point=$r},polygonStart:function(){zv=!0},polygonEnd:function(){zv=null},result:function(){var e=+Xv;return Xv.reset(),e}};Yi.prototype={_circle:Hi(4.5),pointRadius:function(e){return this._circle=Hi(e),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}}};var Zv=function(e,t){function n(e){return e&&("function"==typeof o&&i.pointRadius(+o.apply(this,arguments)),Im(e,r(i))),i.result()}var r,i,o=4.5;return n.area=function(e){return Im(e,r(Mv)),Mv.result()},n.measure=function(e){return Im(e,r(Kv)),Kv.result()},n.bounds=function(e){return Im(e,r(Ov)),Ov.result()},n.centroid=function(e){return Im(e,r(qv)),qv.result()},n.projection=function(t){return arguments.length?(r=null==t?(e=null,kv):(e=t).stream,n):e},n.context=function(e){return arguments.length?(i=null==e?(t=null,new Yi):new Ri(t=e),"function"!=typeof o&&i.pointRadius(o),n):t},n.pointRadius=function(e){return arguments.length?(o="function"==typeof e?e:(i.pointRadius(+e),+e),n):o},n.projection(e).context(t)},Jv=function(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(){w.point=s,m.lineStart()}function l(){w.point=a,m.lineEnd()}function c(e,t){g.push([e,t]);var n=i(e,t);$.point(n[0],n[1])}function f(){$.lineStart(),g=[]}function h(){c(g[0][0],g[0][1]),$.lineEnd();var e,t,n,r,i=$.clean(),a=y.result(),s=a.length;if(g.pop(),d.push(g),g=null,s)if(1&i){if(n=a[0],(t=n.length-1)>0){for(b||(o.polygonStart(),b=!0),o.lineStart(),e=0;e<t;++e)o.point((r=n[e])[0],r[1]);o.lineEnd()}}else s>1&&2&i&&a.push(a.pop().concat(a.shift())),p.push(a.filter(qi))}var d,p,g,m=t(o),v=i.invert(r[0],r[1]),y=av(),$=t(y),b=!1,w={point:a,lineStart:u,lineEnd:l,polygonStart:function(){w.point=c,w.lineStart=f,w.lineEnd=h,p=[],d=[]},polygonEnd:function(){w.point=a,w.lineStart=u,w.lineEnd=l,p=lc(p);var e=pv(d,v);p.length?(b||(o.polygonStart(),b=!0),lv(p,zi,e,n,o)):e&&(b||(o.polygonStart(),b=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),b&&(o.polygonEnd(),b=!1),p=d=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};return w}},Qv=Jv(function(){return!0},Ui,Wi,[-gm,-mm]),ey=function(e,t){function n(n,r,i,o){oi(o,e,t,i,n,r)}function r(e,t){return Sm(e)*Sm(t)>s}function i(e){var t,n,i,s,c;return{lineStart:function(){s=i=!1,c=1},point:function(f,h){var d,p=[f,h],g=r(f,h),m=u?g?0:a(f,h):g?a(f+(f<0?gm:-gm),h):0;if(!t&&(s=i=g)&&e.lineStart(),g!==i&&(d=o(t,p),(uv(t,d)||uv(p,d))&&(p[0]+=pm,p[1]+=pm,g=r(p[0],p[1]))),g!==i)c=0,g?(e.lineStart(),d=o(p,t),e.point(d[0],d[1])):(d=o(t,p),e.point(d[0],d[1]),e.lineEnd()),t=d;else if(l&&t&&u^g){var v;m&n||!(v=o(p,t,!0))||(c=0,u?(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||t&&uv(t,p)||e.point(p[0],p[1]),t=p,i=g,n=m},lineEnd:function(){i&&e.lineEnd(),t=null},clean:function(){return c|(s&&i)<<1}}}function o(e,t,n){var r=Mr(e),i=Mr(t),o=[1,0,0],a=Ar(r,i),u=Tr(a,a),l=a[0],c=u-l*l;if(!c)return!n&&e;var f=s*u/c,h=-s*l/c,d=Ar(o,a),p=Nr(o,f);Dr(p,Nr(a,h));var g=d,m=Tr(p,g),v=Tr(g,g),y=m*m-v*(Tr(p,p)-1);if(!(y<0)){var $=Dm(y),b=Nr(g,(-m-$)/v);if(Dr(b,p),b=Er(b),!n)return b;var w,x=e[0],_=t[0],S=e[1],k=t[1];_<x&&(w=x,x=_,_=w);var C=_-x,E=wm(C-gm)<pm,M=E||C<pm;if(!E&&k<S&&(w=S,S=k,k=w),M?E?S+k>0^b[1]<(wm(b[0]-x)<pm?S:k):S<=b[1]&&b[1]<=k:C>gm^(x<=b[0]&&b[0]<=_)){var T=Nr(g,(-m+$)/v);return Dr(T,p),[b,Er(T)]}}}function a(t,n){var r=u?e:gm-e,i=0;return t<-r?i|=1:t>r&&(i|=2),n<-r?i|=4:n>r&&(i|=8),i}var s=Sm(e),u=s>0,l=wm(s)>pm;return Jv(r,i,n,u?[0,-e]:[-gm,e-gm])},ty=function(e){return{stream:Gi(e)}};Xi.prototype={constructor:Xi,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()}};var ny=16,ry=Sm(30*bm),iy=function(e,t){return+t?Qi(e,t):Ji(e)},oy=Gi({point:function(e,t){this.stream.point(e*bm,t*bm)}}),ay=function(){return no(io).scale(155.424).center([0,33.6442])},sy=function(){return ay().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},uy=function(){function e(e){var t=e[0],n=e[1];return s=null,i.point(t,n),s||(o.point(t,n),s)||(a.point(t,n),s)}function t(){return n=r=null,e}var n,r,i,o,a,s,u=sy(),l=ay().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=ay().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f={point:function(e,t){s=[e,t]}};return e.invert=function(e){var t=u.scale(),n=u.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?l:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:u).invert(e)},e.stream=function(e){return n&&r===e?n:n=oo([u.stream(r=e),l.stream(e),c.stream(e)])},e.precision=function(e){return arguments.length?(u.precision(e),l.precision(e),c.precision(e),t()):u.precision()},e.scale=function(t){return arguments.length?(u.scale(t),l.scale(.35*t),c.scale(t),e.translate(u.translate())):u.scale()},e.translate=function(e){if(!arguments.length)return u.translate();var n=u.scale(),r=+e[0],s=+e[1];return i=u.translate(e).clipExtent([[r-.455*n,s-.238*n],[r+.455*n,s+.238*n]]).stream(f),o=l.translate([r-.307*n,s+.201*n]).clipExtent([[r-.425*n+pm,s+.12*n+pm],[r-.214*n-pm,s+.234*n-pm]]).stream(f),a=c.translate([r-.205*n,s+.212*n]).clipExtent([[r-.214*n+pm,s+.166*n+pm],[r-.115*n-pm,s+.234*n-pm]]).stream(f),t()},e.fitExtent=function(t,n){return Ki(e,t,n)},e.fitSize=function(t,n){return Zi(e,t,n)},e.scale(1070)},ly=ao(function(e){return Dm(2/(1+e))});ly.invert=so(function(e){return 2*vr(e/2)});var cy=function(){return eo(ly).scale(124.75).clipAngle(179.999)},fy=ao(function(e){return(e=mr(e))&&e/Tm(e)});fy.invert=so(function(e){return e});var hy=function(){return eo(fy).scale(79.4188).clipAngle(179.999)};uo.invert=function(e,t){return[e,2*xm(Cm(t))-mm]};var dy=function(){return lo(uo).scale(961/ym)},py=function(){return no(fo).scale(109.5).parallels([30,30])};ho.invert=ho;var gy=function(){return eo(ho).scale(152.63)},my=function(){return no(po).scale(131.154).center([0,13.9389])};go.invert=so(xm);var vy=function(){return eo(go).scale(144.049).clipAngle(60)},yy=function(){function e(){return i=o=null,a}var t,n,r,i,o,a,s=1,u=0,l=0,c=1,f=1,h=kv,d=null,p=kv;return a={stream:function(e){return i&&o===e?i:i=h(p(o=e))},clipExtent:function(i){return arguments.length?(p=null==i?(d=t=n=r=null,kv):li(d=+i[0][0],t=+i[0][1],n=+i[1][0],r=+i[1][1]),e()):null==d?null:[[d,t],[n,r]]},scale:function(t){return arguments.length?(h=mo((s=+t)*c,s*f,u,l),e()):s},translate:function(t){return arguments.length?(h=mo(s*c,s*f,u=+t[0],l=+t[1]),e()):[u,l]},reflectX:function(t){return arguments.length?(h=mo(s*(c=t?-1:1),s*f,u,l),e()):c<0},reflectY:function(t){return arguments.length?(h=mo(s*c,s*(f=t?-1:1),u,l),e()):f<0},fitExtent:function(e,t){return Ki(a,e,t)},fitSize:function(e,t){return Zi(a,e,t)}}};vo.invert=so(vr);var $y=function(){return eo(vo).scale(249.5).clipAngle(90+pm)};yo.invert=so(function(e){return 2*xm(e)});var by=function(){return eo(yo).scale(250).clipAngle(142)};$o.invert=function(e,t){return[-t,2*xm(Cm(e))-mm]};var wy=function(){var e=lo($o),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return arguments.length?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]).scale(159.155)},xy=function(){function e(e){var o,a=0;e.eachAfter(function(e){var n=e.children;n?(e.x=wo(n),e.y=_o(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)});var s=ko(e),u=Co(e),l=s.x-t(s,u)/2,c=u.x+t(u,s)/2;return e.eachAfter(i?function(t){t.x=(t.x-e.x)*n,t.y=(e.y-t.y)*r}:function(t){t.x=(t.x-l)/(c-l)*n,t.y=(1-(e.y?t.y/e.y:1))*r})}var t=bo,n=1,r=1,i=!1;return e.separation=function(n){return arguments.length?(t=n,e):t},e.size=function(t){return arguments.length?(i=!1,n=+t[0],r=+t[1],e):i?null:[n,r]},e.nodeSize=function(t){return arguments.length?(i=!0,n=+t[0],r=+t[1],e):i?[n,r]:null},e},_y=function(){return this.eachAfter(Eo)},Sy=function(e){var t,n,r,i,o=this,a=[o];do{for(t=a.reverse(),a=[];o=t.pop();)if(e(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this},ky=function(e){for(var t,n,r=this,i=[r];r=i.pop();)if(e(r),t=r.children)for(n=t.length-1;n>=0;--n)i.push(t[n]);return this},Cy=function(e){for(var t,n,r,i=this,o=[i],a=[];i=o.pop();)if(a.push(i),t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n]);for(;i=a.pop();)e(i);return this},Ey=function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},My=function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},Ty=function(e){for(var t=this,n=Mo(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},Ay=function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},Dy=function(){var e=[];return this.each(function(t){e.push(t)}),e},Ny=function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},Oy=function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t};Po.prototype=To.prototype={constructor:Po,count:_y,each:Sy,eachAfter:Cy,eachBefore:ky,sum:Ey,sort:My,path:Ty,ancestors:Ay,descendants:Dy,leaves:Ny,links:Oy,copy:Ao};var Py=function(e){for(var t=(e=e.slice()).length,n=null,r=n;t;){var i=new Io(e[t-1]);r=r?r.next=i:n=i,e[void 0]=e[--t]}return{head:n,tail:r}},Iy=function(e){return Lo(Py(e),[])},jy=function(e){return Uo(e),e},Ly=function(e){return function(){return e}},Ry=function(){function e(e){return e.x=n/2,e.y=r/2,t?e.eachBefore(Ko(t)).eachAfter(Zo(i,.5)).eachBefore(Jo(1)):e.eachBefore(Ko(Xo)).eachAfter(Zo(Go,1)).eachAfter(Zo(i,e.r/Math.min(n,r))).eachBefore(Jo(Math.min(n,r)/(2*e.r))),e}var t=null,n=1,r=1,i=Go;return e.radius=function(n){return arguments.length?(t=Bo(n),e):t},e.size=function(t){return arguments.length?(n=+t[0],r=+t[1],e):[n,r]},e.padding=function(t){return arguments.length?(i="function"==typeof t?t:Ly(+t),e):i},e},Vy=function(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)},Fy=function(e,t,n,r,i){for(var o,a=e.children,s=-1,u=a.length,l=e.value&&(r-t)/e.value;++s<u;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l},Yy=function(){function e(e){var a=e.height+1;return e.x0=e.y0=i,e.x1=n,e.y1=r/a,e.eachBefore(t(r,a)),o&&e.eachBefore(Vy),e}function t(e,t){return function(n){n.children&&Fy(n,n.x0,e*(n.depth+1)/t,n.x1,e*(n.depth+2)/t);var r=n.x0,o=n.y0,a=n.x1-i,s=n.y1-i;a<r&&(r=a=(r+a)/2),s<o&&(o=s=(o+s)/2),n.x0=r,n.y0=o,n.x1=a,n.y1=s}}var n=1,r=1,i=0,o=!1;return e.round=function(t){return arguments.length?(o=!!t,e):o},e.size=function(t){return arguments.length?(n=+t[0],r=+t[1],e):[n,r]},e.padding=function(t){return arguments.length?(i=+t,e):i},e},Hy="$",qy={depth:-1},zy={},Uy=function(){function e(e){var r,i,o,a,s,u,l,c=e.length,f=new Array(c),h={};for(i=0;i<c;++i)r=e[i],s=f[i]=new Po(r),null!=(u=t(r,i,e))&&(u+="")&&(l=Hy+(s.id=u),h[l]=l in h?zy:s);for(i=0;i<c;++i)if(s=f[i],null!=(u=n(e[i],i,e))&&(u+="")){if(!(a=h[Hy+u]))throw new Error("missing: "+u);if(a===zy)throw new Error("ambiguous: "+u);a.children?a.children.push(s):a.children=[s],s.parent=a}else{if(o)throw new Error("multiple roots");o=s}if(!o)throw new Error("no root");if(o.parent=qy,o.eachBefore(function(e){e.depth=e.parent.depth+1,--c}).eachBefore(Oo),o.parent=null,c>0)throw new Error("cycle");return o}var t=Qo,n=ea;return e.id=function(n){return arguments.length?(t=Wo(n),e):t},e.parentId=function(t){return arguments.length?(n=Wo(t),e):n},e};sa.prototype=Object.create(Po.prototype);var By=function(){function e(e){var r=ua(e);if(r.eachAfter(t),r.parent.m=-r.z,r.eachBefore(n),u)e.eachBefore(i);else{var l=e,c=e,f=e;e.eachBefore(function(e){e.x<l.x&&(l=e),e.x>c.x&&(c=e),e.depth>f.depth&&(f=e)});var h=l===c?1:o(l,c)/2,d=h-l.x,p=a/(c.x+h+d),g=s/(f.depth||1);e.eachBefore(function(e){e.x=(e.x+d)*p,e.y=e.depth*g})}return e}function t(e){var t=e.children,n=e.parent.children,i=e.i?n[e.i-1]:null;if(t){oa(e);var a=(t[0].z+t[t.length-1].z)/2;i?(e.z=i.z+o(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+o(e._,i._));e.parent.A=r(e,i,e.parent.A||n[0])}function n(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function r(e,t,n){if(t){for(var r,i=e,a=e,s=t,u=i.parent.children[0],l=i.m,c=a.m,f=s.m,h=u.m;s=ra(s),i=na(i),s&&i;)u=na(u),a=ra(a),a.a=e,r=s.z+f-i.z-l+o(s._,i._),r>0&&(ia(aa(s,e,n),e,r),l+=r,c+=r),f+=s.m,l+=i.m,h+=u.m,c+=a.m;s&&!ra(a)&&(a.t=s,a.m+=f-c),i&&!na(u)&&(u.t=i,u.m+=l-h,n=e)}return n}function i(e){e.x*=a,e.y=e.depth*s}var o=ta,a=1,s=1,u=null;return e.separation=function(t){return arguments.length?(o=t,e):o},e.size=function(t){return arguments.length?(u=!1,a=+t[0],s=+t[1],e):u?null:[a,s]},e.nodeSize=function(t){return arguments.length?(u=!0,a=+t[0],s=+t[1],e):u?[a,s]:null},e},Wy=function(e,t,n,r,i){for(var o,a=e.children,s=-1,u=a.length,l=e.value&&(i-n)/e.value;++s<u;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l},Gy=(1+Math.sqrt(5))/2,Xy=function e(t){function n(e,n,r,i,o){la(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(Gy),Ky=function(){function e(e){return e.x0=e.y0=0,e.x1=i,e.y1=o,e.eachBefore(t),a=[0],r&&e.eachBefore(Vy),e}function t(e){var t=a[e.depth],r=e.x0+t,i=e.y0+t,o=e.x1-t,h=e.y1-t;o<r&&(r=o=(r+o)/2),h<i&&(i=h=(i+h)/2),e.x0=r,e.y0=i,e.x1=o,e.y1=h,e.children&&(t=a[e.depth+1]=s(e)/2,r+=f(e)-t,i+=u(e)-t,o-=l(e)-t,h-=c(e)-t,o<r&&(r=o=(r+o)/2),h<i&&(i=h=(i+h)/2),n(e,r,i,o,h))}var n=Xy,r=!1,i=1,o=1,a=[0],s=Go,u=Go,l=Go,c=Go,f=Go;return e.round=function(t){return arguments.length?(r=!!t,e):r},e.size=function(t){return arguments.length?(i=+t[0],o=+t[1],e):[i,o]},e.tile=function(t){return arguments.length?(n=Wo(t),e):n},e.padding=function(t){return arguments.length?e.paddingInner(t).paddingOuter(t):e.paddingInner()},e.paddingInner=function(t){return arguments.length?(s="function"==typeof t?t:Ly(+t),e):s},e.paddingOuter=function(t){return arguments.length?e.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):e.paddingTop()},e.paddingTop=function(t){return arguments.length?(u="function"==typeof t?t:Ly(+t),e):u},e.paddingRight=function(t){return arguments.length?(l="function"==typeof t?t:Ly(+t),e):l},e.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:Ly(+t),e):c},e.paddingLeft=function(t){return arguments.length?(f="function"==typeof t?t:Ly(+t),e):f},e},Zy=function(e,t,n,r,i){function o(e,t,n,r,i,a,s){if(e>=t-1){var l=u[e];return l.x0=r,l.y0=i,l.x1=a,l.y1=s,void 0}for(var f=c[e],h=n/2+f,d=e+1,p=t-1;d<p;){var g=d+p>>>1;c[g]<h?d=g+1:p=g}h-c[d-1]<c[d]-h&&e+1<d&&--d;var m=c[d]-f,v=n-m;if(a-r>s-i){var y=(r*v+a*m)/n;o(e,d,m,r,i,y,s),o(d,t,v,y,i,a,s)}else{var $=(i*v+s*m)/n;o(e,d,m,r,i,a,$),o(d,t,v,r,$,a,s)}}var a,s,u=e.children,l=u.length,c=new Array(l+1);for(c[0]=s=a=0;a<l;++a)c[a+1]=s+=u[a].value;o(0,l,e.value,t,n,r,i)},Jy=function(e,t,n,r,i){(1&e.depth?Wy:Fy)(e,t,n,r,i)},Qy=function e(t){function n(e,n,r,i,o){if((a=e._squarify)&&a.ratio===t)for(var a,s,u,l,c,f=-1,h=a.length,d=e.value;++f<h;){for(s=a[f],u=s.children,l=s.value=0,c=u.length;l<c;++l)s.value+=u[l].value;s.dice?Fy(s,n,r,i,r+=(o-r)*s.value/d):Wy(s,n,r,n+=(i-n)*s.value/d,o),d-=s.value}else e._squarify=a=la(t,e,n,r,i,o),a.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n
}(Gy),e$=function(e){for(var t,n=-1,r=e.length,i=e[r-1],o=0;++n<r;)t=i,i=e[n],o+=t[1]*i[0]-t[0]*i[1];return o/2},t$=function(e){for(var t,n,r=-1,i=e.length,o=0,a=0,s=e[i-1],u=0;++r<i;)t=s,s=e[r],u+=n=t[0]*s[1]-s[0]*t[1],o+=(t[0]+s[0])*n,a+=(t[1]+s[1])*n;return u*=3,[o/u,a/u]},n$=function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])},r$=function(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),i=new Array(n);for(t=0;t<n;++t)r[t]=[+e[t][0],+e[t][1],t];for(r.sort(ca),t=0;t<n;++t)i[t]=[r[t][0],-r[t][1]];var o=fa(r),a=fa(i),s=a[0]===o[0],u=a[a.length-1]===o[o.length-1],l=[];for(t=o.length-1;t>=0;--t)l.push(e[r[o[t]][2]]);for(t=+s;t<a.length-u;++t)l.push(e[r[a[t]][2]]);return l},i$=function(e,t){for(var n,r,i=e.length,o=e[i-1],a=t[0],s=t[1],u=o[0],l=o[1],c=!1,f=0;f<i;++f)o=e[f],n=o[0],r=o[1],r>s!=l>s&&a<(u-n)*(s-r)/(l-r)+n&&(c=!c),u=n,l=r;return c},o$=function(e){for(var t,n,r=-1,i=e.length,o=e[i-1],a=o[0],s=o[1],u=0;++r<i;)t=a,n=s,o=e[r],a=o[0],s=o[1],t-=a,n-=s,u+=Math.sqrt(t*t+n*n);return u},a$=[].slice,s$={};ha.prototype=ya.prototype={constructor:ha,defer:function(e){if("function"!=typeof e||this._call)throw new Error;if(null!=this._error)return this;var t=a$.call(arguments,1);return t.push(e),++this._waiting,this._tasks.push(t),da(this),this},abort:function(){return null==this._error&&ma(this,new Error("abort")),this},await:function(e){if("function"!=typeof e||this._call)throw new Error;return this._call=function(t,n){e.apply(null,[t].concat(n))},va(this),this},awaitAll:function(e){if("function"!=typeof e||this._call)throw new Error;return this._call=e,va(this),this}};var u$=function(e,t){return e=null==e?0:+e,t=null==t?1:+t,1===arguments.length?(t=e,e=0):t-=e,function(){return Math.random()*t+e}},l$=function(e,t){var n,r;return e=null==e?0:+e,t=null==t?1:+t,function(){var i;if(null!=n)i=n,n=null;else do{n=2*Math.random()-1,i=2*Math.random()-1,r=n*n+i*i}while(!r||r>1);return e+t*i*Math.sqrt(-2*Math.log(r)/r)}},c$=function(){var e=l$.apply(this,arguments);return function(){return Math.exp(e())}},f$=function(e){return function(){for(var t=0,n=0;n<e;++n)t+=Math.random();return t}},h$=function(e){var t=f$(e);return function(){return t()/e}},d$=function(e){return function(){return-Math.log(1-Math.random())/e}},p$=function(e,t){function n(e){var t,n=l.status;if(!n&&ba(l)||n>=200&&n<300||304===n){if(o)try{t=o.call(r,l)}catch(e){return void s.call("error",r,e)}else t=l;s.call("load",r,t)}else s.call("error",r,e)}var r,i,o,a,s=p("beforesend","progress","load","error"),u=Yn(),l=new XMLHttpRequest,c=null,f=null,h=0;if("undefined"==typeof XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(e)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=l.ontimeout=n:l.onreadystatechange=function(e){l.readyState>3&&n(e)},l.onprogress=function(e){s.call("progress",r,e)},r={header:function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?u.get(e):(null==t?u.remove(e):u.set(e,t+""),r)},mimeType:function(e){return arguments.length?(i=null==e?null:e+"",r):i},responseType:function(e){return arguments.length?(a=e,r):a},timeout:function(e){return arguments.length?(h=+e,r):h},user:function(e){return arguments.length<1?c:(c=null==e?null:e+"",r)},password:function(e){return arguments.length<1?f:(f=null==e?null:e+"",r)},response:function(e){return o=e,r},get:function(e,t){return r.send("GET",e,t)},post:function(e,t){return r.send("POST",e,t)},send:function(t,n,o){return l.open(t,e,!0,c,f),null==i||u.has("accept")||u.set("accept",i+",*/*"),l.setRequestHeader&&u.each(function(e,t){l.setRequestHeader(t,e)}),null!=i&&l.overrideMimeType&&l.overrideMimeType(i),null!=a&&(l.responseType=a),h>0&&(l.timeout=h),null==o&&"function"==typeof n&&(o=n,n=null),null!=o&&1===o.length&&(o=$a(o)),null!=o&&r.on("error",o).on("load",function(e){o(null,e)}),s.call("beforesend",r,l),l.send(null==n?null:n),r},abort:function(){return l.abort(),r},on:function(){var e=s.on.apply(s,arguments);return e===s?r:e}},null!=t){if("function"!=typeof t)throw new Error("invalid callback: "+t);return r.get(t)}return r},g$=function(e,t){return function(n,r){var i=p$(n).mimeType(e).response(t);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}},m$=g$("text/html",function(e){return document.createRange().createContextualFragment(e.responseText)}),v$=g$("application/json",function(e){return JSON.parse(e.responseText)}),y$=g$("text/plain",function(e){return e.responseText}),$$=g$("application/xml",function(e){var t=e.responseXML;if(!t)throw new Error("parse error");return t}),b$=function(e,t){return function(n,r,i){arguments.length<3&&(i=r,r=null);var o=p$(n).mimeType(e);return o.row=function(e){return arguments.length?o.response(wa(t,r=e)):r},o.row(r),i?o.get(i):o}},w$=b$("text/csv",Rp),x$=b$("text/tab-separated-values",qp),_$=Array.prototype,S$=_$.map,k$=_$.slice,C$={name:"implicit"},E$=function(e){return function(){return e}},M$=function(e){return+e},T$=[0,1],A$=function(t,n,i){var o,a=t[0],s=t[t.length-1],u=r(a,s,null==n?10:n);switch(i=fr(null==i?",f":i),i.type){case"s":var l=Math.max(Math.abs(a),Math.abs(s));return null!=i.precision||isNaN(o=Og(u,l))||(i.precision=o),e.formatPrefix(i,l);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=Pg(u,Math.max(Math.abs(a),Math.abs(s))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=Ng(u))||(i.precision=o-2*("%"===i.type))}return e.format(i)},D$=function(e,t){e=e.slice();var n,r=0,i=e.length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e},N$=new Date,O$=new Date,P$=Xa(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});P$.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Xa(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):P$:null};var I$=P$.range,j$=6e4,L$=6048e5,R$=Xa(function(e){e.setTime(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()}),V$=R$.range,F$=Xa(function(e){e.setTime(Math.floor(e/j$)*j$)},function(e,t){e.setTime(+e+t*j$)},function(e,t){return(t-e)/j$},function(e){return e.getMinutes()}),Y$=F$.range,H$=Xa(function(e){var t=e.getTimezoneOffset()*j$%36e5;t<0&&(t+=36e5),e.setTime(36e5*Math.floor((+e-t)/36e5)+t)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()}),q$=H$.range,z$=Xa(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*j$)/864e5},function(e){return e.getDate()-1}),U$=z$.range,B$=Ka(0),W$=Ka(1),G$=Ka(2),X$=Ka(3),K$=Ka(4),Z$=Ka(5),J$=Ka(6),Q$=B$.range,eb=W$.range,tb=G$.range,nb=X$.range,rb=K$.range,ib=Z$.range,ob=J$.range,ab=Xa(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),sb=ab.range,ub=Xa(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});ub.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Xa(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var lb=ub.range,cb=Xa(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*j$)},function(e,t){return(t-e)/j$},function(e){return e.getUTCMinutes()}),fb=cb.range,hb=Xa(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()}),db=hb.range,pb=Xa(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1}),gb=pb.range,mb=Za(0),vb=Za(1),yb=Za(2),$b=Za(3),bb=Za(4),wb=Za(5),xb=Za(6),_b=mb.range,Sb=vb.range,kb=yb.range,Cb=$b.range,Eb=bb.range,Mb=wb.range,Tb=xb.range,Ab=Xa(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),Db=Ab.range,Nb=Xa(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Nb.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Xa(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var Ob,Pb=Nb.range,Ib={"-":"",_:" ",0:"0"},jb=/^\s*\d+/,Lb=/^%/,Rb=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;Xs({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",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"]});var Vb=Date.prototype.toISOString?Ks:e.utcFormat("%Y-%m-%dT%H:%M:%S.%LZ"),Fb=+new Date("2000-01-01T00:00:00.000Z")?Zs:e.utcParse("%Y-%m-%dT%H:%M:%S.%LZ"),Yb=1e3,Hb=60*Yb,qb=60*Hb,zb=24*qb,Ub=7*zb,Bb=30*zb,Wb=365*zb,Gb=function(){return eu(ub,ab,B$,z$,H$,F$,R$,P$,e.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},Xb=function(){return eu(Nb,Ab,mb,pb,hb,cb,R$,P$,e.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},Kb=function(e){return e.match(/.{6}/g).map(function(e){return"#"+e})},Zb=Kb("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Jb=Kb("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),Qb=Kb("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),ew=Kb("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),tw=Rh(Be(300,.5,0),Be(-240,.5,1)),nw=Rh(Be(-100,.75,.35),Be(80,1.5,.8)),rw=Rh(Be(260,.75,.35),Be(80,1.5,.8)),iw=Be(),ow=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return iw.h=360*e-100,iw.s=1.5-1.5*t,iw.l=.8-.9*t,iw+""},aw=tu(Kb("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),sw=tu(Kb("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),uw=tu(Kb("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),lw=tu(Kb("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),cw=function(e){return function(){return e}},fw=Math.abs,hw=Math.atan2,dw=Math.cos,pw=Math.max,gw=Math.min,mw=Math.sin,vw=Math.sqrt,yw=1e-12,$w=Math.PI,bw=$w/2,ww=2*$w,xw=function(){function e(){var e,l,c=+t.apply(this,arguments),f=+n.apply(this,arguments),h=o.apply(this,arguments)-bw,d=a.apply(this,arguments)-bw,p=fw(d-h),g=d>h;if(u||(u=e=Pn()),f<c&&(l=f,f=c,c=l),f>yw)if(p>ww-yw)u.moveTo(f*dw(h),f*mw(h)),u.arc(0,0,f,h,d,!g),c>yw&&(u.moveTo(c*dw(d),c*mw(d)),u.arc(0,0,c,d,h,g));else{var m,v,y=h,$=d,b=h,w=d,x=p,_=p,S=s.apply(this,arguments)/2,k=S>yw&&(i?+i.apply(this,arguments):vw(c*c+f*f)),C=gw(fw(f-c)/2,+r.apply(this,arguments)),E=C,M=C;if(k>yw){var T=iu(k/c*mw(S)),A=iu(k/f*mw(S));(x-=2*T)>yw?(T*=g?1:-1,b+=T,w-=T):(x=0,b=w=(h+d)/2),(_-=2*A)>yw?(A*=g?1:-1,y+=A,$-=A):(_=0,y=$=(h+d)/2)}var D=f*dw(y),N=f*mw(y),O=c*dw(w),P=c*mw(w);if(C>yw){var I=f*dw($),j=f*mw($),L=c*dw(b),R=c*mw(b);if(p<$w){var V=x>yw?cu(D,N,L,R,I,j,O,P):[O,P],F=D-V[0],Y=N-V[1],H=I-V[0],q=j-V[1],z=1/mw(ru((F*H+Y*q)/(vw(F*F+Y*Y)*vw(H*H+q*q)))/2),U=vw(V[0]*V[0]+V[1]*V[1]);E=gw(C,(c-U)/(z-1)),M=gw(C,(f-U)/(z+1))}}_>yw?M>yw?(m=fu(L,R,D,N,f,M,g),v=fu(I,j,O,P,f,M,g),u.moveTo(m.cx+m.x01,m.cy+m.y01),M<C?u.arc(m.cx,m.cy,M,hw(m.y01,m.x01),hw(v.y01,v.x01),!g):(u.arc(m.cx,m.cy,M,hw(m.y01,m.x01),hw(m.y11,m.x11),!g),u.arc(0,0,f,hw(m.cy+m.y11,m.cx+m.x11),hw(v.cy+v.y11,v.cx+v.x11),!g),u.arc(v.cx,v.cy,M,hw(v.y11,v.x11),hw(v.y01,v.x01),!g))):(u.moveTo(D,N),u.arc(0,0,f,y,$,!g)):u.moveTo(D,N),c>yw&&x>yw?E>yw?(m=fu(O,P,I,j,c,-E,g),v=fu(D,N,L,R,c,-E,g),u.lineTo(m.cx+m.x01,m.cy+m.y01),E<C?u.arc(m.cx,m.cy,E,hw(m.y01,m.x01),hw(v.y01,v.x01),!g):(u.arc(m.cx,m.cy,E,hw(m.y01,m.x01),hw(m.y11,m.x11),!g),u.arc(0,0,c,hw(m.cy+m.y11,m.cx+m.x11),hw(v.cy+v.y11,v.cx+v.x11),g),u.arc(v.cx,v.cy,E,hw(v.y11,v.x11),hw(v.y01,v.x01),!g))):u.arc(0,0,c,w,b,g):u.lineTo(O,P)}else u.moveTo(0,0);if(u.closePath(),e)return u=null,e+""||null}var t=ou,n=au,r=cw(0),i=null,o=su,a=uu,s=lu,u=null;return e.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-$w/2;return[dw(r)*e,mw(r)*e]},e.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:cw(+n),e):t},e.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:cw(+t),e):n},e.cornerRadius=function(t){return arguments.length?(r="function"==typeof t?t:cw(+t),e):r},e.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:cw(+t),e):i},e.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:cw(+t),e):o},e.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:cw(+t),e):a},e.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:cw(+t),e):s},e.context=function(t){return arguments.length?(u=null==t?null:t,e):u},e};hu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var _w=function(e){return new hu(e)},Sw=function(){function e(e){var s,u,l,c=e.length,f=!1;for(null==i&&(a=o(l=Pn())),s=0;s<=c;++s)!(s<c&&r(u=e[s],s,e))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+t(u,s,e),+n(u,s,e));if(l)return a=null,l+""||null}var t=du,n=pu,r=cw(!0),i=null,o=_w,a=null;return e.x=function(n){return arguments.length?(t="function"==typeof n?n:cw(+n),e):t},e.y=function(t){return arguments.length?(n="function"==typeof t?t:cw(+t),e):n},e.defined=function(t){return arguments.length?(r="function"==typeof t?t:cw(!!t),e):r},e.curve=function(t){return arguments.length?(o=t,null!=i&&(a=o(i)),e):o},e.context=function(t){return arguments.length?(null==t?i=a=null:a=o(i=t),e):i},e},kw=function(){function e(e){var t,c,f,h,d,p=e.length,g=!1,m=new Array(p),v=new Array(p);for(null==s&&(l=u(d=Pn())),t=0;t<=p;++t){if(!(t<p&&a(h=e[t],t,e))===g)if(g=!g)c=t,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),f=t-1;f>=c;--f)l.point(m[f],v[f]);l.lineEnd(),l.areaEnd()}g&&(m[t]=+n(h,t,e),v[t]=+i(h,t,e),l.point(r?+r(h,t,e):m[t],o?+o(h,t,e):v[t]))}if(d)return l=null,d+""||null}function t(){return Sw().defined(a).curve(u).context(s)}var n=du,r=null,i=cw(0),o=pu,a=cw(!0),s=null,u=_w,l=null;return e.x=function(t){return arguments.length?(n="function"==typeof t?t:cw(+t),r=null,e):n},e.x0=function(t){return arguments.length?(n="function"==typeof t?t:cw(+t),e):n},e.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:cw(+t),e):r},e.y=function(t){return arguments.length?(i="function"==typeof t?t:cw(+t),o=null,e):i},e.y0=function(t){return arguments.length?(i="function"==typeof t?t:cw(+t),e):i},e.y1=function(t){return arguments.length?(o=null==t?null:"function"==typeof t?t:cw(+t),e):o},e.lineX0=e.lineY0=function(){return t().x(n).y(i)},e.lineY1=function(){return t().x(n).y(o)},e.lineX1=function(){return t().x(r).y(i)},e.defined=function(t){return arguments.length?(a="function"==typeof t?t:cw(!!t),e):a},e.curve=function(t){return arguments.length?(u=t,null!=s&&(l=u(s)),e):u},e.context=function(t){return arguments.length?(null==t?s=l=null:l=u(s=t),e):s},e},Cw=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},Ew=function(e){return e},Mw=function(){function e(e){var s,u,l,c,f,h=e.length,d=0,p=new Array(h),g=new Array(h),m=+i.apply(this,arguments),v=Math.min(ww,Math.max(-ww,o.apply(this,arguments)-m)),y=Math.min(Math.abs(v)/h,a.apply(this,arguments)),$=y*(v<0?-1:1);for(s=0;s<h;++s)(f=g[p[s]=s]=+t(e[s],s,e))>0&&(d+=f);for(null!=n?p.sort(function(e,t){return n(g[e],g[t])}):null!=r&&p.sort(function(t,n){return r(e[t],e[n])}),s=0,l=d?(v-h*$)/d:0;s<h;++s,m=c)u=p[s],f=g[u],c=m+(f>0?f*l:0)+$,g[u]={data:e[u],index:s,value:f,startAngle:m,endAngle:c,padAngle:y};return g}var t=Ew,n=Cw,r=null,i=cw(0),o=cw(ww),a=cw(0);return e.value=function(n){return arguments.length?(t="function"==typeof n?n:cw(+n),e):t},e.sortValues=function(t){return arguments.length?(n=t,r=null,e):n},e.sort=function(t){return arguments.length?(r=t,n=null,e):r},e.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:cw(+t),e):i},e.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:cw(+t),e):o},e.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:cw(+t),e):a},e},Tw=mu(_w);gu.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var Aw=function(){return vu(Sw().curve(Tw))},Dw=function(){var e=kw().curve(Tw),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return vu(n())},delete e.lineX0,e.lineEndAngle=function(){return vu(r())},delete e.lineX1,e.lineInnerRadius=function(){return vu(i())},delete e.lineY0,e.lineOuterRadius=function(){return vu(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(mu(e)):t()._curve},e},Nw={draw:function(e,t){var n=Math.sqrt(t/$w);e.moveTo(n,0),e.arc(0,0,n,0,ww)}},Ow={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Pw=Math.sqrt(1/3),Iw=2*Pw,jw={draw:function(e,t){var n=Math.sqrt(t/Iw),r=n*Pw;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Lw=Math.sin($w/10)/Math.sin(7*$w/10),Rw=Math.sin(ww/10)*Lw,Vw=-Math.cos(ww/10)*Lw,Fw={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=Rw*n,i=Vw*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=ww*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},Yw={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},Hw=Math.sqrt(3),qw={draw:function(e,t){var n=-Math.sqrt(t/(3*Hw));e.moveTo(0,2*n),e.lineTo(-Hw*n,-n),e.lineTo(Hw*n,-n),e.closePath()}},zw=-.5,Uw=Math.sqrt(3)/2,Bw=1/Math.sqrt(12),Ww=3*(Bw/2+1),Gw={draw:function(e,t){var n=Math.sqrt(t/Ww),r=n/2,i=n*Bw,o=r,a=n*Bw+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(zw*r-Uw*i,Uw*r+zw*i),e.lineTo(zw*o-Uw*a,Uw*o+zw*a),e.lineTo(zw*s-Uw*u,Uw*s+zw*u),e.lineTo(zw*r+Uw*i,zw*i-Uw*r),e.lineTo(zw*o+Uw*a,zw*a-Uw*o),e.lineTo(zw*s+Uw*u,zw*u-Uw*s),e.closePath()}},Xw=[Nw,Ow,jw,Yw,Fw,qw,Gw],Kw=function(){function e(){var e;if(r||(r=e=Pn()),t.apply(this,arguments).draw(r,+n.apply(this,arguments)),e)return r=null,e+""||null}var t=cw(Nw),n=cw(64),r=null;return e.type=function(n){return arguments.length?(t="function"==typeof n?n:cw(n),e):t},e.size=function(t){return arguments.length?(n="function"==typeof t?t:cw(+t),e):n},e.context=function(t){return arguments.length?(r=null==t?null:t,e):r},e},Zw=function(){};$u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:yu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:yu(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Jw=function(e){return new $u(e)};bu.prototype={areaStart:Zw,areaEnd:Zw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:yu(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Qw=function(e){return new bu(e)};wu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:yu(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var ex=function(e){return new wu(e)};xu.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(i+r*a),this._beta*t[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var tx=function e(t){function n(e){return 1===t?new $u(e):new xu(e,t)}return n.beta=function(t){return e(+t)},n}(.85);Su.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:_u(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:_u(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var nx=function e(t){function n(e){return new Su(e,t)}return n.tension=function(t){return e(+t)},n}(0);ku.prototype={areaStart:Zw,areaEnd:Zw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:_u(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var rx=function e(t){function n(e){return new ku(e,t)}return n.tension=function(t){return e(+t)},n}(0);Cu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_u(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ix=function e(t){function n(e){return new Cu(e,t)}return n.tension=function(t){return e(+t)},n}(0);Mu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:
this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Eu(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ox=function e(t){function n(e){return t?new Mu(e,t):new Su(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);Tu.prototype={areaStart:Zw,areaEnd:Zw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Eu(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ax=function e(t){function n(e){return t?new Tu(e,t):new ku(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);Au.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Eu(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var sx=function e(t){function n(e){return t?new Au(e,t):new Cu(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);Du.prototype={areaStart:Zw,areaEnd:Zw,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var ux=function(e){return new Du(e)};ju.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Iu(this,this._t0,Pu(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Iu(this,Pu(this,n=Ou(this,e,t)),n);break;default:Iu(this,this._t0,n=Ou(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Lu.prototype=Object.create(ju.prototype)).point=function(e,t){ju.prototype.point.call(this,t,e)},Ru.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},Yu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Hu(e),i=Hu(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var lx=function(e){return new Yu(e)};qu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var cx=function(e){return new qu(e,.5)},fx=Array.prototype.slice,hx=function(e,t){if((r=e.length)>1)for(var n,r,i=1,o=e[t[0]],a=o.length;i<r;++i){n=o,o=e[t[i]];for(var s=0;s<a;++s)o[s][1]+=o[s][0]=isNaN(n[s][1])?n[s][0]:n[s][1]}},dx=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n},px=function(){function e(e){var o,a,s=t.apply(this,arguments),u=e.length,l=s.length,c=new Array(l);for(o=0;o<l;++o){for(var f,h=s[o],d=c[o]=new Array(u),p=0;p<u;++p)d[p]=f=[0,+i(e[p],h,p,e)],f.data=e[p];d.key=h}for(o=0,a=n(c);o<l;++o)c[a[o]].index=o;return r(c,a),c}var t=cw([]),n=dx,r=hx,i=Bu;return e.keys=function(n){return arguments.length?(t="function"==typeof n?n:cw(fx.call(n)),e):t},e.value=function(t){return arguments.length?(i="function"==typeof t?t:cw(+t),e):i},e.order=function(t){return arguments.length?(n=null==t?dx:"function"==typeof t?t:cw(fx.call(t)),e):n},e.offset=function(t){return arguments.length?(r=null==t?hx:t,e):r},e},gx=function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}hx(e,t)}},mx=function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}hx(e,t)}},vx=function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,u=0,l=0;s<i;++s){for(var c=e[t[s]],f=c[a][1]||0,h=c[a-1][1]||0,d=(f-h)/2,p=0;p<s;++p){var g=e[t[p]];d+=(g[a][1]||0)-(g[a-1][1]||0)}u+=f,l+=d*f}n[a-1][1]+=n[a-1][0]=o,u&&(o-=l/u)}n[a-1][1]+=n[a-1][0]=o,hx(e,t)}},yx=function(e){var t=e.map(Wu);return dx(e).sort(function(e,n){return t[e]-t[n]})},$x=function(e){return yx(e).reverse()},bx=function(e){var t,n,r=e.length,i=e.map(Wu),o=dx(e).sort(function(e,t){return i[t]-i[e]}),a=0,s=0,u=[],l=[];for(t=0;t<r;++t)n=o[t],a<s?(a+=i[n],u.push(n)):(s+=i[n],l.push(n));return l.reverse().concat(u)},wx=function(e){return dx(e).reverse()},xx=function(e){return function(){return e}};Ku.prototype={constructor:Ku,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=el(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&&(Ju(this,n),e=n,n=e.U),n.C=!1,r.C=!0,Qu(this,r))):(i=r.L,i&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.L&&(Qu(this,n),e=n,n=e.U),n.C=!1,r.C=!0,Ju(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?el(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 void(e.C=!1);do{if(e===this._)break;if(e===i.L){if(t=i.R,t.C&&(t.C=!1,i.C=!0,Ju(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,Qu(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,Ju(this,i),e=this._;break}}else if(t=i.L,t.C&&(t.C=!1,i.C=!0,Qu(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,Ju(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,Qu(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}};var _x,Sx,kx,Cx,Ex,Mx=[],Tx=[],Ax=1e-6,Dx=1e-12;kl.prototype={constructor:kl,polygons:function(){var e=this.edges;return this.cells.map(function(t){var n=t.halfedges.map(function(n){return ll(t,e[n])});return n.data=t.site.data,n})},triangles:function(){var e=[],t=this.edges;return this.cells.forEach(function(n,r){if(o=(i=n.halfedges).length)for(var i,o,a,s=n.site,u=-1,l=t[i[o-1]],c=l.left===s?l.right:l.left;++u<o;)a=c,l=t[i[u]],c=l.left===s?l.right:l.left,a&&c&&r<a.index&&r<c.index&&_l(s,a,c)<0&&e.push([s.data,a.data,c.data])}),e},links:function(){return this.edges.filter(function(e){return e.right}).map(function(e){return{source:e.left.data,target:e.right.data}})},find:function(e,t,n){for(var r,i,o=this,a=o._found||0,s=o.cells.length;!(i=o.cells[a]);)if(++a>=s)return null;var u=e-i.site[0],l=t-i.site[1],c=u*u+l*l;do{i=o.cells[r=a],a=null,i.halfedges.forEach(function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var u=e-s[0],l=t-s[1],f=u*u+l*l;f<c&&(c=f,a=s.index)}})}while(null!==a);return o._found=r,null==n||c<=n*n?i.site:null}};var Nx=function(){function e(e){return new kl(e.map(function(r,i){var o=[Math.round(t(r,i,e)/Ax)*Ax,Math.round(n(r,i,e)/Ax)*Ax];return o.index=i,o.data=r,o}),r)}var t=Gu,n=Xu,r=null;return e.polygons=function(t){return e(t).polygons()},e.links=function(t){return e(t).links()},e.triangles=function(t){return e(t).triangles()},e.x=function(n){return arguments.length?(t="function"==typeof n?n:xx(+n),e):t},e.y=function(t){return arguments.length?(n="function"==typeof t?t:xx(+t),e):n},e.extent=function(t){return arguments.length?(r=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],e):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},e.size=function(t){return arguments.length?(r=null==t?null:[[0,0],[+t[0],+t[1]]],e):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},e},Ox=function(e){return function(){return e}};El.prototype={constructor:El,scale:function(e){return 1===e?this:new El(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new El(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Px=new El(1,0,0);Ml.prototype=El.prototype;var Ix=function(){e.event.preventDefault(),e.event.stopImmediatePropagation()},jx=function(){function t(e){e.on("wheel.zoom",l).on("mousedown.zoom",c).on("dblclick.zoom",f).on("touchstart.zoom",h).on("touchmove.zoom",d).on("touchend.zoom touchcancel.zoom",g).style("-webkit-tap-highlight-color","rgba(0,0,0,0)").property("__zoom",Nl)}function n(e,t){return t=Math.max(b,Math.min(w,t)),t===e.k?e:new El(t,e.x,e.y)}function r(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new El(e.k,r,i)}function i(e,t){var n=e.invertX(t[0][0])-x,r=e.invertX(t[1][0])-_,i=e.invertY(t[0][1])-S,o=e.invertY(t[1][1])-k;return e.translate(r>n?(n+r)/2:Math.min(0,n)||Math.max(0,r),o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o))}function o(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function a(e,t,n){e.on("start.zoom",function(){s(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){s(this,arguments).end()}).tween("zoom",function(){var e=this,r=arguments,i=s(e,r),a=$.apply(e,r),u=n||o(a),l=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),c=e.__zoom,f="function"==typeof t?t.apply(e,r):t,h=E(c.invert(u).concat(l/c.k),f.invert(u).concat(l/f.k));return function(e){if(1===e)e=f;else{var t=h(e),n=l/t[2];e=new El(n,u[0]-t[0]*n,u[1]-t[1]*n)}i.zoom(null,e)}})}function s(e,t){for(var n,r=0,i=T.length;r<i;++r)if((n=T[r]).that===e)return n;return new u(e,t)}function u(e,t){this.that=e,this.args=t,this.index=-1,this.active=0,this.extent=$.apply(e,t)}function l(){function t(){o.wheel=null,o.end()}if(y.apply(this,arguments)){var o=s(this,arguments),a=this.__zoom,u=Math.max(b,Math.min(w,a.k*Math.pow(2,-e.event.deltaY*(e.event.deltaMode?120:1)/500))),l=Rc(this);if(o.wheel)o.mouse[0][0]===l[0]&&o.mouse[0][1]===l[1]||(o.mouse[1]=a.invert(o.mouse[0]=l)),clearTimeout(o.wheel);else{if(a.k===u)return;o.mouse=[l,a.invert(l)],sd(this),o.start()}Ix(),o.wheel=setTimeout(t,N),o.zoom("mouse",i(r(n(a,u),o.mouse[0],o.mouse[1]),o.extent))}}function c(){function t(){Ix(),o.moved=!0,o.zoom("mouse",i(r(o.that.__zoom,o.mouse[0]=Rc(o.that),o.mouse[1]),o.extent))}function n(){a.on("mousemove.zoom mouseup.zoom",null),ve(e.event.view,o.moved),Ix(),o.end()}if(!v&&y.apply(this,arguments)){var o=s(this,arguments),a=wf(e.event.view).on("mousemove.zoom",t,!0).on("mouseup.zoom",n,!0),u=Rc(this);Cf(e.event.view),Tl(),o.mouse=[u,this.__zoom.invert(u)],sd(this),o.start()}}function f(){if(y.apply(this,arguments)){var o=this.__zoom,s=Rc(this),u=o.invert(s),l=o.k*(e.event.shiftKey?.5:2),c=i(r(n(o,l),s,u),$.apply(this,arguments));Ix(),C>0?wf(this).transition().duration(C).call(a,c,s):wf(this).call(t.transform,c)}}function h(){if(y.apply(this,arguments)){var t,n,r,i,o=s(this,arguments),a=e.event.changedTouches,u=a.length;for(Tl(),n=0;n<u;++n)r=a[n],i=_f(this,a,r.identifier),i=[i,this.__zoom.invert(i),r.identifier],o.touch0?o.touch1||(o.touch1=i):(o.touch0=i,t=!0);if(m&&(m=clearTimeout(m),!o.touch1))return o.end(),void((i=wf(this).on("dblclick.zoom"))&&i.apply(this,arguments));t&&(m=setTimeout(function(){m=null},D),sd(this),o.start())}}function d(){var t,o,a,u,l=s(this,arguments),c=e.event.changedTouches,f=c.length;for(Ix(),m&&(m=clearTimeout(m)),t=0;t<f;++t)o=c[t],a=_f(this,c,o.identifier),l.touch0&&l.touch0[2]===o.identifier?l.touch0[0]=a:l.touch1&&l.touch1[2]===o.identifier&&(l.touch1[0]=a);if(o=l.that.__zoom,l.touch1){var h=l.touch0[0],d=l.touch0[1],p=l.touch1[0],g=l.touch1[1],v=(v=p[0]-h[0])*v+(v=p[1]-h[1])*v,y=(y=g[0]-d[0])*y+(y=g[1]-d[1])*y;o=n(o,Math.sqrt(v/y)),a=[(h[0]+p[0])/2,(h[1]+p[1])/2],u=[(d[0]+g[0])/2,(d[1]+g[1])/2]}else{if(!l.touch0)return;a=l.touch0[0],u=l.touch0[1]}l.zoom("touch",i(r(o,a,u),l.extent))}function g(){var t,n,r=s(this,arguments),i=e.event.changedTouches,o=i.length;for(Tl(),v&&clearTimeout(v),v=setTimeout(function(){v=null},D),t=0;t<o;++t)n=i[t],r.touch0&&r.touch0[2]===n.identifier?delete r.touch0:r.touch1&&r.touch1[2]===n.identifier&&delete r.touch1;r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0?r.touch0[1]=this.__zoom.invert(r.touch0[0]):r.end()}var m,v,y=Al,$=Dl,b=0,w=1/0,x=-w,_=w,S=x,k=_,C=250,E=Nh,T=[],A=p("start","zoom","end"),D=500,N=150;return t.transform=function(e,t){var n=e.selection?e.selection():e;n.property("__zoom",Nl),e!==n?a(e,t):n.interrupt().each(function(){s(this,arguments).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},t.scaleBy=function(e,n){t.scaleTo(e,function(){return this.__zoom.k*("function"==typeof n?n.apply(this,arguments):n)})},t.scaleTo=function(e,a){t.transform(e,function(){var e=$.apply(this,arguments),t=this.__zoom,s=o(e),u=t.invert(s);return i(r(n(t,"function"==typeof a?a.apply(this,arguments):a),s,u),e)})},t.translateBy=function(e,n,r){t.transform(e,function(){return i(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof r?r.apply(this,arguments):r),$.apply(this,arguments))})},u.prototype={start:function(){return 1==++this.active&&(this.index=T.push(this)-1,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(T.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(e){M(new Cl(t,e,this.that.__zoom),A.apply,A,[e,this.that,this.args])}},t.filter=function(e){return arguments.length?(y="function"==typeof e?e:Ox(!!e),t):y},t.extent=function(e){return arguments.length?($="function"==typeof e?e:Ox([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),t):$},t.scaleExtent=function(e){return arguments.length?(b=+e[0],w=+e[1],t):[b,w]},t.translateExtent=function(e){return arguments.length?(x=+e[0][0],_=+e[1][0],S=+e[0][1],k=+e[1][1],t):[[x,S],[_,k]]},t.duration=function(e){return arguments.length?(C=+e,t):C},t.interpolate=function(e){return arguments.length?(E=e,t):E},t.on=function(){var e=A.on.apply(A,arguments);return e===A?t:e},t};e.version="4.7.4",e.bisect=jl,e.bisectRight=jl,e.bisectLeft=Ll,e.ascending=Ol,e.bisector=Pl,e.cross=Vl,e.descending=Fl,e.deviation=ql,e.extent=zl,e.histogram=nc,e.thresholdFreedmanDiaconis=ic,e.thresholdScott=oc,e.thresholdSturges=tc,e.max=ac,e.mean=sc,e.median=uc,e.merge=lc,e.min=cc,e.pairs=Rl,e.permute=fc,e.quantile=rc,e.range=Kl,e.scan=hc,e.shuffle=dc,e.sum=pc,e.ticks=ec,e.tickStep=r,e.transpose=gc,e.variance=Hl,e.zip=mc,e.axisTop=c,e.axisRight=f,e.axisBottom=h,e.axisLeft=d,e.brush=vp,e.brushX=Tn,e.brushY=An,e.brushSelection=Mn,e.chord=Sp,e.ribbon=Ap,e.nest=Dp,e.set=Wn,e.map=Yn,e.keys=Op,e.values=Pp,e.entries=Ip,e.color=Se,e.rgb=Me,e.hsl=Ne,e.lab=je,e.hcl=qe,e.cubehelix=Be,e.dispatch=p,e.drag=Mf,e.dragDisable=Cf,e.dragEnable=ve,e.dsvFormat=jp,e.csvParse=Rp,e.csvParseRows=Vp,e.csvFormat=Fp,e.csvFormatRows=Yp,e.tsvParse=qp,e.tsvParseRows=zp,e.tsvFormat=Up,e.tsvFormatRows=Bp,e.easeLinear=tn,e.easeQuad=on,e.easeQuadIn=nn,e.easeQuadOut=rn,e.easeQuadInOut=on,e.easeCubic=un,e.easeCubicIn=an,e.easeCubicOut=sn,e.easeCubicInOut=un,e.easePoly=Nd,e.easePolyIn=Ad,e.easePolyOut=Dd,e.easePolyInOut=Nd,e.easeSin=fn,e.easeSinIn=ln,e.easeSinOut=cn,e.easeSinInOut=fn,e.easeExp=pn,e.easeExpIn=hn,e.easeExpOut=dn,e.easeExpInOut=pn,e.easeCircle=vn,e.easeCircleIn=gn,e.easeCircleOut=mn,e.easeCircleInOut=vn,e.easeBounce=$n,e.easeBounceIn=yn,e.easeBounceOut=$n,e.easeBounceInOut=bn,e.easeBack=Wd,e.easeBackIn=Ud,e.easeBackOut=Bd,e.easeBackInOut=Wd,e.easeElastic=Kd,e.easeElasticIn=Xd,e.easeElasticOut=Kd,e.easeElasticInOut=Zd,e.forceCenter=Wp,e.forceCollide=fg,e.forceLink=hg,e.forceManyBody=mg,e.forceSimulation=gg,e.forceX=vg,e.forceY=yg,e.formatDefaultLocale=dr,e.formatLocale=Dg,e.formatSpecifier=fr,e.precisionFixed=Ng,e.precisionPrefix=Og,e.precisionRound=Pg,e.geoArea=Vm,e.geoBounds=Hm,e.geoCentroid=zm,e.geoCircle=ov,e.geoClipExtent=hv,e.geoContains=_v,e.geoDistance=bv,e.geoGraticule=xi,e.geoGraticule10=_i,e.geoInterpolate=Sv,e.geoLength=vv,e.geoPath=Zv,e.geoAlbers=sy,e.geoAlbersUsa=uy,e.geoAzimuthalEqualArea=cy,e.geoAzimuthalEqualAreaRaw=ly,e.geoAzimuthalEquidistant=hy,e.geoAzimuthalEquidistantRaw=fy,e.geoConicConformal=py,e.geoConicConformalRaw=fo,e.geoConicEqualArea=ay,e.geoConicEqualAreaRaw=io,e.geoConicEquidistant=my,e.geoConicEquidistantRaw=po,e.geoEquirectangular=gy,e.geoEquirectangularRaw=ho,e.geoGnomonic=vy,e.geoGnomonicRaw=go,e.geoIdentity=yy,e.geoProjection=eo,e.geoProjectionMutator=to,e.geoMercator=dy,e.geoMercatorRaw=uo,e.geoOrthographic=$y,e.geoOrthographicRaw=vo,e.geoStereographic=by,e.geoStereographicRaw=yo,e.geoTransverseMercator=wy,e.geoTransverseMercatorRaw=$o,e.geoRotation=iv,e.geoStream=Im,e.geoTransform=ty,e.cluster=xy,e.hierarchy=To,e.pack=Ry,e.packSiblings=jy,e.packEnclose=Iy,e.partition=Yy,e.stratify=Uy,e.tree=By,e.treemap=Ky,e.treemapBinary=Zy,e.treemapDice=Fy,e.treemapSlice=Wy,e.treemapSliceDice=Jy,e.treemapSquarify=Xy,e.treemapResquarify=Qy,e.interpolate=Sh,e.interpolateArray=vh,e.interpolateBasis=fh,e.interpolateBasisClosed=hh,e.interpolateDate=yh,e.interpolateNumber=$h,e.interpolateObject=bh,e.interpolateRound=kh,e.interpolateString=_h,e.interpolateTransformCss=Th,e.interpolateTransformSvg=Ah,e.interpolateZoom=Nh,e.interpolateRgb=ph,e.interpolateRgbBasis=gh,e.interpolateRgbBasisClosed=mh,e.interpolateHsl=Oh,e.interpolateHslLong=Ph,e.interpolateLab=ct,e.interpolateHcl=Ih,e.interpolateHclLong=jh,e.interpolateCubehelix=Lh,e.interpolateCubehelixLong=Rh,e.quantize=Vh,e.path=Pn,e.polygonArea=e$,e.polygonCentroid=t$,e.polygonHull=r$;e.polygonContains=i$,e.polygonLength=o$,e.quadtree=nr,e.queue=ya,e.randomUniform=u$,e.randomNormal=l$,e.randomLogNormal=c$,e.randomBates=h$,e.randomIrwinHall=f$,e.randomExponential=d$,e.request=p$,e.html=m$,e.json=v$,e.text=y$,e.xml=$$,e.csv=w$,e.tsv=x$,e.scaleBand=_a,e.scalePoint=ka,e.scaleIdentity=Ia,e.scaleLinear=Pa,e.scaleLog=Ha,e.scaleOrdinal=xa,e.scaleImplicit=C$,e.scalePow=za,e.scaleSqrt=Ua,e.scaleQuantile=Ba,e.scaleQuantize=Wa,e.scaleThreshold=Ga,e.scaleTime=Gb,e.scaleUtc=Xb,e.schemeCategory10=Zb,e.schemeCategory20b=Jb,e.schemeCategory20c=Qb,e.schemeCategory20=ew,e.interpolateCubehelixDefault=tw,e.interpolateRainbow=ow,e.interpolateWarm=nw,e.interpolateCool=rw,e.interpolateViridis=aw,e.interpolateMagma=sw,e.interpolateInferno=uw,e.interpolatePlasma=lw,e.scaleSequential=nu,e.creator=Mc,e.local=w,e.matcher=Oc,e.mouse=Rc,e.namespace=Ec,e.namespaces=Cc,e.select=wf,e.selectAll=xf,e.selection=ge,e.selector=Vc,e.selectorAll=Yc,e.touch=_f,e.touches=Sf,e.window=sf,e.customEvent=M,e.arc=xw,e.area=kw,e.line=Sw,e.pie=Mw,e.radialArea=Dw,e.radialLine=Aw,e.symbol=Kw,e.symbols=Xw,e.symbolCircle=Nw,e.symbolCross=Ow,e.symbolDiamond=jw,e.symbolSquare=Yw,e.symbolStar=Fw,e.symbolTriangle=qw,e.symbolWye=Gw,e.curveBasisClosed=Qw,e.curveBasisOpen=ex,e.curveBasis=Jw,e.curveBundle=tx,e.curveCardinalClosed=rx,e.curveCardinalOpen=ix,e.curveCardinal=nx,e.curveCatmullRomClosed=ax,e.curveCatmullRomOpen=sx,e.curveCatmullRom=ox,e.curveLinearClosed=ux,e.curveLinear=_w,e.curveMonotoneX=Vu,e.curveMonotoneY=Fu,e.curveNatural=lx,e.curveStep=cx,e.curveStepAfter=Uu,e.curveStepBefore=zu,e.stack=px,e.stackOffsetExpand=gx,e.stackOffsetNone=hx,e.stackOffsetSilhouette=mx,e.stackOffsetWiggle=vx,e.stackOrderAscending=yx,e.stackOrderDescending=$x,e.stackOrderInsideOut=bx,e.stackOrderNone=dx,e.stackOrderReverse=wx,e.timeInterval=Xa,e.timeMillisecond=P$,e.timeMilliseconds=I$,e.utcMillisecond=P$,e.utcMilliseconds=I$,e.timeSecond=R$,e.timeSeconds=V$,e.utcSecond=R$,e.utcSeconds=V$,e.timeMinute=F$,e.timeMinutes=Y$,e.timeHour=H$,e.timeHours=q$,e.timeDay=z$,e.timeDays=U$,e.timeWeek=B$,e.timeWeeks=Q$,e.timeSunday=B$,e.timeSundays=Q$,e.timeMonday=W$,e.timeMondays=eb,e.timeTuesday=G$,e.timeTuesdays=tb,e.timeWednesday=X$,e.timeWednesdays=nb,e.timeThursday=K$,e.timeThursdays=rb,e.timeFriday=Z$,e.timeFridays=ib,e.timeSaturday=J$,e.timeSaturdays=ob,e.timeMonth=ab,e.timeMonths=sb,e.timeYear=ub,e.timeYears=lb,e.utcMinute=cb,e.utcMinutes=fb,e.utcHour=hb,e.utcHours=db,e.utcDay=pb,e.utcDays=gb,e.utcWeek=mb,e.utcWeeks=_b,e.utcSunday=mb,e.utcSundays=_b,e.utcMonday=vb,e.utcMondays=Sb,e.utcTuesday=yb,e.utcTuesdays=kb,e.utcWednesday=$b,e.utcWednesdays=Cb,e.utcThursday=bb,e.utcThursdays=Eb,e.utcFriday=wb,e.utcFridays=Mb,e.utcSaturday=xb,e.utcSaturdays=Tb,e.utcMonth=Ab,e.utcMonths=Db,e.utcYear=Nb,e.utcYears=Pb,e.timeFormatDefaultLocale=Xs,e.timeFormatLocale=ts,e.isoFormat=Vb,e.isoParse=Fb,e.now=dt,e.timer=mt,e.timerFlush=vt,e.timeout=Xh,e.interval=Kh,e.transition=Qt,e.active=tp,e.interrupt=sd,e.voronoi=Nx,e.zoom=jx,e.zoomTransform=Ml,e.zoomIdentity=Px,Object.defineProperty(e,"__esModule",{value:!0})}),/**
 * @license AngularJS v1.6.4
 * (c) 2010-2017 Google, Inc. http://angularjs.org
 * License: MIT
 */
function(e){"use strict";function t(e,t){return t=t||Error,function(){var n,r,i=arguments[0],o=arguments[1],a="["+(e?e+":":"")+i+"] ",s=B(arguments,2).map(function(e){return xe(e,Wr.objectMaxDepth)});for(a+=o.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1);return t<s.length?s[t]:e}),a+="\nhttp://errors.angularjs.org/1.6.4/"+(e?e+"/":"")+i,r=0,n="?";r<s.length;r++,n="&")a+=n+"p"+r+"="+encodeURIComponent(s[r]);return new t(a)}}function n(e){if(!w(e))return Wr;b(e.objectMaxDepth)&&(Wr.objectMaxDepth=r(e.objectMaxDepth)?e.objectMaxDepth:NaN)}function r(e){return S(e)&&e>0}function i(e){if(null==e||M(e))return!1;if(fi(e)||_(e)||Qr&&e instanceof Qr)return!0;var t="length"in Object(e)&&e.length;return S(t)&&(t>=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function o(e,t,n){var r,a;if(e)if(C(e))for(r in e)"prototype"!==r&&"length"!==r&&"name"!==r&&e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else if(fi(e)||i(e)){var s="object"!=typeof e;for(r=0,a=e.length;r<a;r++)(s||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==o)e.forEach(t,n,e);else if(x(e))for(r in e)t.call(n,e[r],r,e);else if("function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else for(r in e)Br.call(e,r)&&t.call(n,e[r],r,e);return e}function a(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function s(e){return function(t,n){e(n,t)}}function u(){return++li}function l(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function c(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;i<o;++i){var a=t[i];if(w(a)||C(a))for(var s=Object.keys(a),u=0,f=s.length;u<f;u++){var h=s[u],d=a[h];n&&w(d)?k(d)?e[h]=new Date(d.valueOf()):E(d)?e[h]=new RegExp(d):d.nodeName?e[h]=d.cloneNode(!0):L(d)?e[h]=d.clone():(w(e[h])||(e[h]=fi(d)?[]:{}),c(e[h],[d],!0)):e[h]=d}}return l(e,r),e}function f(e){return c(e,ni.call(arguments,1),!1)}function h(e){return c(e,ni.call(arguments,1),!0)}function d(e){return parseInt(e,10)}function p(e,t){return f(Object.create(e),t)}function g(){}function m(e){return e}function v(e){return function(){return e}}function y(e){return C(e.toString)&&e.toString!==oi}function $(e){return void 0===e}function b(e){return void 0!==e}function w(e){return null!==e&&"object"==typeof e}function x(e){return null!==e&&"object"==typeof e&&!ai(e)}function _(e){return"string"==typeof e}function S(e){return"number"==typeof e}function k(e){return"[object Date]"===oi.call(e)}function C(e){return"function"==typeof e}function E(e){return"[object RegExp]"===oi.call(e)}function M(e){return e&&e.window===e}function T(e){return e&&e.$evalAsync&&e.$watch}function A(e){return"[object File]"===oi.call(e)}function D(e){return"[object FormData]"===oi.call(e)}function N(e){return"[object Blob]"===oi.call(e)}function O(e){return"boolean"==typeof e}function P(e){return e&&C(e.then)}function I(e){return e&&S(e.length)&&hi.test(oi.call(e))}function j(e){return"[object ArrayBuffer]"===oi.call(e)}function L(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function R(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}function V(e){return Gr(e.nodeName||e[0]&&e[0].nodeName)}function F(e,t){return-1!==Array.prototype.indexOf.call(e,t)}function Y(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function H(e,t,n){function i(e,t,n){if(--n<0)return"...";var r,i=t.$$hashKey;if(fi(e))for(var o=0,s=e.length;o<s;o++)t.push(a(e[o],n));else if(x(e))for(r in e)t[r]=a(e[r],n);else if(e&&"function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&(t[r]=a(e[r],n));else for(r in e)Br.call(e,r)&&(t[r]=a(e[r],n));return l(t,i),t}function a(e,t){if(!w(e))return e;var n=u.indexOf(e);if(-1!==n)return c[n];if(M(e)||T(e))throw si("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,o=s(e);return void 0===o&&(o=fi(e)?[]:Object.create(ai(e)),r=!0),u.push(e),c.push(o),r?i(e,o,t):o}function s(e){switch(oi.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(a(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(C(e.cloneNode))return e.cloneNode(!0)}var u=[],c=[];if(n=r(n)?n:NaN,t){if(I(t)||j(t))throw si("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw si("cpi","Can't copy! Source and destination are identical.");return fi(t)?t.length=0:o(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),u.push(e),c.push(t),i(e,t,n)}return a(e,n)}function q(e,t){return e===t||e!==e&&t!==t}function z(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var n,r,i,o=typeof e,a=typeof t;if(o===a&&"object"===o){if(!fi(e)){if(k(e))return!!k(t)&&q(e.getTime(),t.getTime());if(E(e))return!!E(t)&&e.toString()===t.toString();if(T(e)||T(t)||M(e)||M(t)||fi(t)||k(t)||E(t))return!1;i=ve();for(r in e)if("$"!==r.charAt(0)&&!C(e[r])){if(!z(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&b(t[r])&&!C(t[r]))return!1;return!0}if(!fi(t))return!1;if((n=e.length)===t.length){for(r=0;r<n;r++)if(!z(e[r],t[r]))return!1;return!0}}return!1}function U(e,t,n){return e.concat(ni.call(t,n))}function B(e,t){return ni.call(e,t||0)}function W(e,t){var n=arguments.length>2?B(arguments,2):[];return!C(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,U(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function G(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:M(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":T(n)&&(r="$SCOPE"),r}function X(e,t){if(!$(e))return S(t)||(t=t?2:null),JSON.stringify(e,G,t)}function K(e){return _(e)?JSON.parse(e):e}function Z(e,t){e=e.replace(vi,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return ci(n)?t:n}function J(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Q(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return J(e,n*(Z(t,r)-r))}function ee(e){e=Qr(e).clone();try{e.empty()}catch(e){}var t=Qr("<div>").append(e).html();try{return e[0].nodeType===_i?Gr(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+Gr(t)})}catch(e){return Gr(t)}}function te(e){try{return decodeURIComponent(e)}catch(e){}}function ne(e){var t={};return o((e||"").split("&"),function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),-1!==n&&(r=e.substring(0,n),i=e.substring(n+1)),r=te(r),b(r)&&(i=!b(i)||te(i),Br.call(t,r)?fi(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function re(e){var t=[];return o(e,function(e,n){fi(e)?o(e,function(e){t.push(oe(n,!0)+(!0===e?"":"="+oe(e,!0)))}):t.push(oe(n,!0)+(!0===e?"":"="+oe(e,!0)))}),t.length?t.join("&"):""}function ie(e){return oe(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function oe(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function ae(e,t){var n,r,i=yi.length;for(r=0;r<i;++r)if(n=yi[r]+t,_(n=e.getAttribute(n)))return n;return null}function se(t,n){var r,i,a={};if(o(yi,function(e){var n=e+"app";!r&&t.hasAttribute&&t.hasAttribute(n)&&(r=t,i=t.getAttribute(n))}),o(yi,function(e){var n,o=e+"app";!r&&(n=t.querySelector("["+o.replace(":","\\:")+"]"))&&(r=n,i=n.getAttribute(o))}),r){if(!$i)return void e.console.error("Angular: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");a.strictDi=null!==ae(r,"strict-di"),n(r,i?[i]:[],a)}}function ue(t,n,r){w(r)||(r={}),r=f({strictDi:!1},r);var i=function(){if(t=Qr(t),t.injector()){var i=t[0]===e.document?"document":ee(t);throw si("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"&lt;").replace(/>/,"&gt;"))}n=n||[],n.unshift(["$provide",function(e){e.value("$rootElement",t)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var o=ut(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),o},a=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(e&&a.test(e.name)&&(r.debugInfoEnabled=!0,e.name=e.name.replace(a,"")),e&&!s.test(e.name))return i();e.name=e.name.replace(s,""),ui.resumeBootstrap=function(e){return o(e,function(e){n.push(e)}),i()},C(ui.resumeDeferredBootstrap)&&ui.resumeDeferredBootstrap()}function le(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function ce(e){var t=ui.element(e).injector();if(!t)throw si("test","no injector found for element argument to getTestability");return t.get("$$testability")}function fe(e,t){return t=t||"_",e.replace(bi,function(e,n){return(n?t:"")+e.toLowerCase()})}function he(e,t,n){if(!e)throw si("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function de(e,t,n){return n&&fi(e)&&(e=e[e.length-1]),he(C(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function pe(e,t){if("hasOwnProperty"===e)throw si("badname","hasOwnProperty is not a valid {0} name",t)}function ge(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;s<a;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&C(e)?W(o,e):e}function me(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(t||e[i]!==n)&&(t||(t=Qr(ni.call(e,0,i))),t.push(n));return t||e}function ve(){return Object.create(null)}function ye(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!y(e)||fi(e)||k(e)?X(e):e.toString()}return e}function $e(e){function n(e,t,n){return e[t]||(e[t]=n())}var r=t("$injector"),i=t("ng"),o=n(e,"angular",Object);return o.$$minErr=o.$$minErr||t,n(o,"module",function(){var e={};return function(t,o,a){var s={};return function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)}(t,"module"),o&&e.hasOwnProperty(t)&&(e[t]=null),n(e,t,function(){function e(e,t,n,r){return r||(r=u),function(){return r[n||"push"]([e,t,arguments]),h}}function n(e,n,r){return r||(r=u),function(i,o){return o&&C(o)&&(o.$$moduleName=t),r.push([e,n,arguments]),h}}if(!o)throw r("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.",t);var u=[],l=[],c=[],f=e("$injector","invoke","push",l),h={_invokeQueue:u,_configBlocks:l,_runBlocks:c,info:function(e){if(b(e)){if(!w(e))throw i("aobj","Argument '{0}' must be an object","value");return s=e,this}return s},requires:o,name:t,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:n("$provide","decorator",l),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:f,run:function(e){return c.push(e),this}};return a&&f(a),h})}})}function be(e,t){if(fi(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(w(e)){t=t||{};for(var i in e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i])}return t||e}function we(e,t){var n=[];return r(t)&&(e=H(e,null,t)),JSON.stringify(e,function(e,t){if(t=G(e,t),w(t)){if(n.indexOf(t)>=0)return"...";n.push(t)}return t})}function xe(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):$(e)?"undefined":"string"!=typeof e?we(e,t):e}function _e(){return++Ti}function Se(e){return Ce(e.replace(Di,"ms-"))}function ke(e,t){return t.toUpperCase()}function Ce(e){return e.replace(Ai,ke)}function Ee(e){return!Ii.test(e)}function Me(e){var t=e.nodeType;return t===xi||!t||t===ki}function Te(e){for(var t in Mi[e.ng339])return!0;return!1}function Ae(e,t){var n,r,i,a,s=t.createDocumentFragment(),u=[];if(Ee(e))u.push(t.createTextNode(e));else{for(n=s.appendChild(t.createElement("div")),r=(ji.exec(e)||["",""])[1].toLowerCase(),i=Ri[r]||Ri._default,n.innerHTML=i[1]+e.replace(Li,"<$1></$2>")+i[2],a=i[0];a--;)n=n.lastChild;u=U(u,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",o(u,function(e){s.appendChild(e)}),s}function De(t,n){n=n||e.document;var r;return(r=Pi.exec(t))?[n.createElement(r[1])]:(r=Ae(t,n))?r.childNodes:[]}function Ne(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function Oe(e){if(e instanceof Oe)return e;var t;if(_(e)&&(e=di(e),t=!0),!(this instanceof Oe)){if(t&&"<"!==e.charAt(0))throw Oi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Oe(e)}t?qe(this,De(e)):C(e)?Xe(e):qe(this,e)}function Pe(e){return e.cloneNode(!0)}function Ie(e,t){!t&&Me(e)&&Qr.cleanData([e]),e.querySelectorAll&&Qr.cleanData(e.querySelectorAll("*"))}function je(e,t,n,r){if(b(r))throw Oi("offargs","jqLite#off() does not support the `selector` argument");var i=Re(e),a=i&&i.events,s=i&&i.handle;if(s)if(t){var u=function(t){var r=a[t];b(n)&&Y(r||[],n),b(n)&&r&&r.length>0||(e.removeEventListener(t,s),delete a[t])};o(t.split(" "),function(e){u(e),Ni[e]&&u(Ni[e])})}else for(t in a)"$destroy"!==t&&e.removeEventListener(t,s),delete a[t]}function Le(e,t){var n=e.ng339,r=n&&Mi[n];if(r){if(t)return void delete r.data[t];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),je(e)),delete Mi[n],e.ng339=void 0}}function Re(e,t){var n=e.ng339,r=n&&Mi[n];return t&&!r&&(e.ng339=n=_e(),r=Mi[n]={events:{},data:{},handle:void 0}),r}function Ve(e,t,n){if(Me(e)){var r,i=b(n),o=!i&&t&&!w(t),a=!t,s=Re(e,!o),u=s&&s.data;if(i)u[Ce(t)]=n;else{if(a)return u;if(o)return u&&u[Ce(t)];for(r in t)u[Ce(r)]=t[r]}}}function Fe(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function Ye(e,t){t&&e.setAttribute&&o(t.split(" "),function(t){e.setAttribute("class",di((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+di(t)+" "," ")))})}function He(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(t.split(" "),function(e){e=di(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",di(n))}}function qe(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function ze(e,t){return Ue(e,"$"+(t||"ngController")+"Controller")}function Ue(e,t,n){e.nodeType===ki&&(e=e.documentElement);for(var r=fi(t)?t:[t];e;){for(var i=0,o=r.length;i<o;i++)if(b(n=Qr.data(e,r[i])))return n;e=e.parentNode||e.nodeType===Ci&&e.host}}function Be(e){for(Ie(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function We(e,t){t||Ie(e);var n=e.parentNode;n&&n.removeChild(e)}function Ge(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):Qr(n).on("load",t)}function Xe(t){function n(){e.document.removeEventListener("DOMContentLoaded",n),e.removeEventListener("load",n),t()}"complete"===e.document.readyState?e.setTimeout(t):(e.document.addEventListener("DOMContentLoaded",n),e.addEventListener("load",n))}function Ke(e,t){var n=Yi[t.toLowerCase()];return n&&Hi[V(e)]&&n}function Ze(e){return qi[e]}function Je(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if($(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var s=i.specialHandlerWrapper||Qe;o>1&&(i=be(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||s(e,n,i[u])}};return n.elem=e,n}function Qe(e,t,n){n.call(e,t)}function et(e,t,n){var r=t.relatedTarget;r&&(r===e||Vi.call(e,r))||n.call(e,t)}function tt(){this.$get=function(){return f(Oe,{hasClass:function(e,t){return e.attr&&(e=e[0]),Fe(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),He(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Ye(e,t)}})}}function nt(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"===r||"object"===r&&null!==e?e.$$hashKey=r+":"+(t||u)():r+":"+e}function rt(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}function it(e){return Function.prototype.toString.call(e)}function ot(e){var t=it(e).replace(Zi,"");return t.match(Wi)||t.match(Gi)}function at(e){var t=ot(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function st(e,t,n){var r,i,a;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw _(n)&&n||(n=e.name||at(e)),Ji("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=ot(e),o(i[1].split(Xi),function(e){e.replace(Ki,function(e,t,n){r.push(n)})})}e.$inject=r}}else fi(e)?(a=e.length-1,de(e[a],"fn"),r=e.slice(0,a)):de(e,"fn",!0);return r}function ut(e,t){function n(e){return function(t,n){if(!w(t))return e(t,n);o(t,s(e))}}function r(e,t){if(pe(e,"service"),(C(t)||fi(t))&&(t=x.instantiate(t)),!t.$get)throw Ji("pget","Provider '{0}' must define $get factory method.",e);return b[e+g]=t}function i(e,t){return function(){var n=E.invoke(t,this);if($(n))throw Ji("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function a(e,t,n){return r(e,{$get:!1!==n?i(e,t):t})}function u(e,t){return a(e,["$injector",function(e){return e.instantiate(t)}])}function l(e,t){return a(e,v(t),!1)}function c(e,t){pe(e,"constant"),b[e]=t,S[e]=t}function f(e,t){var n=x.get(e+g),r=n.$get;n.$get=function(){var e=E.invoke(r,n);return E.invoke(t,null,{$delegate:e})}}function h(e){he($(e)||fi(e),"modulesToLoad","not an array");var t,n=[];return o(e,function(e){function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=x.get(r[0]);i[r[1]].apply(i,r[2])}}if(!y.get(e)){y.set(e,!0);try{_(e)?(t=ti(e),E.modules[e]=t,n=n.concat(h(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):C(e)?n.push(x.invoke(e)):fi(e)?n.push(x.invoke(e)):de(e,"module")}catch(t){throw fi(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Ji("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}}),n}function d(e,n){function r(t,r){if(e.hasOwnProperty(t)){if(e[t]===p)throw Ji("cdep","Circular dependency found: {0}",t+" <- "+m.join(" <- "));return e[t]}try{return m.unshift(t),e[t]=p,e[t]=n(t,r),e[t]}catch(n){throw e[t]===p&&delete e[t],n}finally{m.shift()}}function i(e,n,i){for(var o=[],a=ut.$$annotate(e,t,i),s=0,u=a.length;s<u;s++){var l=a[s];if("string"!=typeof l)throw Ji("itkn","Incorrect injection token! Expected service name as string, got {0}",l);o.push(n&&n.hasOwnProperty(l)?n[l]:r(l,i))}return o}function o(e){if(Jr||"function"!=typeof e)return!1;var t=e.$$ngIsClass;return O(t)||(t=e.$$ngIsClass=/^(?:class\b|constructor\()/.test(it(e))),t}function a(e,t,n,r){"string"==typeof n&&(r=n,n=null);var a=i(e,n,r);return fi(e)&&(e=e[e.length-1]),o(e)?(a.unshift(null),new(Function.prototype.bind.apply(e,a))):e.apply(t,a)}function s(e,t,n){var r=fi(e)?e[e.length-1]:e,o=i(e,t,n);return o.unshift(null),new(Function.prototype.bind.apply(r,o))}return{invoke:a,instantiate:s,get:r,annotate:ut.$$annotate,has:function(t){return b.hasOwnProperty(t+g)||e.hasOwnProperty(t)}}}t=!0===t;var p={},g="Provider",m=[],y=new Ui,b={$provide:{provider:n(r),factory:n(a),service:n(u),value:n(l),constant:n(c),decorator:f}},x=b.$injector=d(b,function(e,t){throw ui.isString(t)&&m.push(t),Ji("unpr","Unknown provider: {0}",m.join(" <- "))}),S={},k=d(S,function(e,t){var n=x.get(e+g,t);return E.invoke(n.$get,n,void 0,e)}),E=k;b["$injector"+g]={$get:v(k)},E.modules=x.modules=ve();var M=h(e);return E=k.get("$injector"),E.strictDi=t,o(M,function(e){e&&E.invoke(e)}),E}function lt(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){var t=null;return Array.prototype.some.call(e,function(e){if("a"===V(e))return t=e,!0}),t}function o(){var e=s.yOffset;if(C(e))e=e();else if(L(e)){var n=e[0],r=t.getComputedStyle(n);e="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else S(e)||(e=0);return e}function a(e){if(e){e.scrollIntoView();var n=o();if(n){var r=e.getBoundingClientRect().top;t.scrollBy(0,r-n)}}else t.scrollTo(0,0)}function s(e){e=_(e)?e:S(e)?e.toString():n.hash();var t;e?(t=u.getElementById(e))?a(t):(t=i(u.getElementsByName(e)))?a(t):"top"===e&&a(null):a(null)}var u=t.document;return e&&r.$watch(function(){return n.hash()},function(e,t){e===t&&""===e||Ge(function(){r.$evalAsync(s)})}),s}]}function ct(e,t){return e||t?e?t?(fi(e)&&(e=e.join(" ")),fi(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function ft(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===eo)return n}}function ht(e){_(e)&&(e=e.split(" "));var t=ve();return o(e,function(e){e.length&&(t[e]=!0)}),t}function dt(e){return w(e)?e:{}}function pt(e,t,n,r){function i(e){try{e.apply(null,B(arguments,1))}finally{if(0===--v)for(;y.length;)try{y.pop()()}catch(e){n.error(e)}}}function a(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}function s(){S=null,l()}function u(){b=k(),b=$(b)?null:b,z(b,M)&&(b=M),M=b,w=b}function l(){var e=w;u(),x===c.url()&&e===b||(x=c.url(),w=b,o(C,function(e){e(c.url(),b)}))}var c=this,f=e.location,h=e.history,d=e.setTimeout,p=e.clearTimeout,m={};c.isMock=!1;var v=0,y=[];c.$$completeOutstandingRequest=i,c.$$incOutstandingRequestCount=function(){v++},c.notifyWhenNoOutstandingRequests=function(e){0===v?e():y.push(e)};var b,w,x=f.href,_=t.find("base"),S=null,k=r.history?function(){try{return h.state}catch(e){}}:g;u(),c.url=function(t,n,i){if($(i)&&(i=null),f!==e.location&&(f=e.location),h!==e.history&&(h=e.history),t){var o=w===i;if(x===t&&(!r.history||o))return c;var s=x&&Xt(x)===Xt(t);return x=t,w=i,!r.history||s&&o?(s||(S=t),n?f.replace(t):s?f.hash=a(t):f.href=t,f.href!==t&&(S=t)):(h[n?"replaceState":"pushState"](i,"",t),u()),S&&(S=t),c}return S||f.href.replace(/%27/g,"'")},c.state=function(){return b};var C=[],E=!1,M=null;c.onUrlChange=function(t){return E||(r.history&&Qr(e).on("popstate",s),Qr(e).on("hashchange",s),E=!0),C.push(t),t},c.$$applicationDestroyed=function(){Qr(e).off("hashchange popstate",s)},c.$$checkUrlChange=l,c.baseHref=function(){var e=_.attr("href");return e?e.replace(/^(https?:)?\/\/[^\/]*/,""):""},c.defer=function(e,t){var n;return v++,n=d(function(){delete m[n],i(e)},t||0),m[n]=!0,n},c.defer.cancel=function(e){return!!m[e]&&(delete m[e],p(e),i(g),!0)}}function gt(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new pt(e,r,t,n)}]}function mt(){this.$get=function(){function e(e,r){function i(e){e!==h&&(d?d===e&&(d=e.n):d=e,o(e.n,e.p),o(e,h),h=e,h.n=null)}function o(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}if(e in n)throw t("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=f({},r,{id:e}),u=ve(),l=r&&r.capacity||Number.MAX_VALUE,c=ve(),h=null,d=null;return n[e]={put:function(e,t){if(!$(t)){if(l<Number.MAX_VALUE){i(c[e]||(c[e]={key:e}))}return e in u||a++,u[e]=t,a>l&&this.remove(d.key),t}},get:function(e){if(l<Number.MAX_VALUE){var t=c[e];if(!t)return;i(t)}return u[e]},remove:function(e){if(l<Number.MAX_VALUE){var t=c[e];if(!t)return;t===h&&(h=t.p),t===d&&(d=t.n),o(t.n,t.p),delete c[e]}e in u&&(delete u[e],a--)},removeAll:function(){u=ve(),a=0,c=ve(),h=d=null},destroy:function(){u=null,s=null,c=null,delete n[e]},info:function(){return f({},s,{size:a})}}}var n={};return e.info=function(){var e={};return o(n,function(t,n){e[n]=t.info()}),e},e.get=function(e){return n[e]},e}}function vt(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function yt(){}function $t(t,n){function r(e,t,n){var r=/^\s*([@&<]|=(\*?))(\??)\s*([\w$]*)\s*$/,i=ve();return o(e,function(e,o){if(e in E)return void(i[o]=E[e]);var a=e.match(r);if(!a)throw so("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,o,e,n?"controller bindings definition":"isolate scope definition");i[o]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||o},a[4]&&(E[e]=i[o])}),i}function i(e,t){var n={isolateScope:null,bindToController:null};if(w(e.scope)&&(!0===e.bindToController?(n.bindToController=r(e.scope,t,!0),n.isolateScope={}):n.isolateScope=r(e.scope,t,!1)),w(e.bindToController)&&(n.bindToController=r(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw so("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}function a(e){var t=e.charAt(0);if(!t||t!==Gr(t))throw so("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw so("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}function u(e){var t=e.require||e.controller&&e.name;return!fi(t)&&w(t)&&o(t,function(e,n){var r=e.match(S);e.substring(r[0].length)||(t[n]=r[0]+n)}),t}function l(e,t){if(e&&(!_(e)||!/[EACM]/.test(e)))throw so("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}var c={},h="Directive",d=/^\s*directive:\s*([\w-]+)\s+(.*)$/,y=/(([\w-]+)(?::([^;]+))?;?)/,x=R("ngSrc,ngSrcset,src,srcset"),S=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,k=/^(on[a-z]+|formaction)$/,E=ve();this.directive=function e(n,r){return he(n,"name"),pe(n,"directive"),_(n)?(a(n),he(r,"directiveFactory"),c.hasOwnProperty(n)||(c[n]=[],t.factory(n+h,["$injector","$exceptionHandler",function(e,t){var r=[];return o(c[n],function(i,o){try{var a=e.invoke(i);C(a)?a={compile:v(a)}:!a.compile&&a.link&&(a.compile=v(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||n,a.require=u(a),a.restrict=l(a.restrict,n),a.$$moduleName=i.$$moduleName,r.push(a)}catch(e){t(e)}}),r}])),c[n].push(r)):o(n,s(e)),this},this.component=function(e,t){function n(e){function n(t){return C(t)||fi(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var i=t.template||t.templateUrl?t.template:"",a={controller:r,controllerAs:St(t.controller)||t.controllerAs||"$ctrl",template:n(i),templateUrl:n(t.templateUrl),transclude:t.transclude,scope:{},bindToController:t.bindings||{},restrict:"E",require:t.require};return o(t,function(e,t){"$"===t.charAt(0)&&(a[t]=e)}),a}var r=t.controller||function(){};return o(t,function(e,t){"$"===t.charAt(0)&&(n[t]=e,C(r)&&(r[t]=e))}),n.$inject=["$injector"],this.directive(e,n)},this.aHrefSanitizationWhitelist=function(e){return b(e)?(n.aHrefSanitizationWhitelist(e),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return b(e)?(n.imgSrcSanitizationWhitelist(e),this):n.imgSrcSanitizationWhitelist()};var M=!0;this.debugInfoEnabled=function(e){return b(e)?(M=e,this):M};var A=!1;this.preAssignBindingsEnabled=function(e){return b(e)?(A=e,this):A};var D=10;this.onChangesTtl=function(e){return arguments.length?(D=e,this):D};var N=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(N=e,this):N};var P=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(P=e,this):P},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(t,n,r,a,s,u,l,v,E,I){function j(){try{if(!--Ae)throw Se=void 0,so("infchng","{0} $onChanges() iterations reached. Aborting!\n",D);l.$apply(function(){for(var e=[],t=0,n=Se.length;t<n;++t)try{Se[t]()}catch(t){e.push(t)}if(Se=void 0,e.length)throw e})}finally{Ae++}}function L(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;n<r;n++)i=o[n],this[i]=t[i]}else this.$attr={};this.$$element=e}function R(e,t,n){Ce.innerHTML="<span "+t+">";var r=Ce.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}function F(e,t){try{e.addClass(t)}catch(e){}}function H(e,t,n,r,i){e instanceof Qr||(e=Qr(e));var o=G(e,t,e,n,r,i);H.$$addScopeClass(e);var a=null;return function(t,n,r){if(!e)throw so("multilink","This element has already been linked.");he(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new()),r=r||{};var s=r.parentBoundTranscludeFn,u=r.transcludeControllers,l=r.futureParentElement;s&&s.$$boundTransclude&&(s=s.$$boundTransclude),a||(a=U(l));var c;if(c="html"!==a?Qr(me(a,Qr("<div>").append(e).html())):n?Fi.clone.call(e):e,u)for(var f in u)c.data("$"+f+"Controller",u[f].instance);return H.$$addScopeInfo(c,t),n&&n(c,t),o&&o(t,c,c,s),n||(e=o=null),c}}function U(e){var t=e&&e[0];return t&&"foreignobject"!==V(t)&&oi.call(t).match(/SVG/)?"svg":"html"}function G(e,t,n,r,i,o){function a(e,n,r,i){var o,a,s,u,l,c,f,h,g;if(d){var m=n.length;for(g=new Array(m),l=0;l<p.length;l+=3)f=p[l],g[f]=n[f]}else g=n;for(l=0,c=p.length;l<c;)s=g[p[l++]],o=p[l++],a=p[l++],o?(o.scope?(u=e.$new(),H.$$addScopeInfo(Qr(s),u)):u=e,h=o.transcludeOnThisElement?K(e,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&t?K(e,t):null,o(a,u,s,r,h)):a&&a(e,s.childNodes,void 0,i)}for(var s,u,l,c,f,h,d,p=[],g=fi(e)||e instanceof Qr,m=0;m<e.length;m++)s=new L,11===Jr&&X(e,m,g),u=Z(e[m],[],s,0===m?r:void 0,i),l=u.length?re(u,e[m],s,t,n,null,[],[],o):null,l&&l.scope&&H.$$addScopeClass(s.$$element),f=l&&l.terminal||!(c=e[m].childNodes)||!c.length?null:G(c,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:t),(l||f)&&(p.push(m,l,f),h=!0,d=d||l),o=null;return h?a:null}function X(e,t,n){var r,i=e[t],o=i.parentNode;if(i.nodeType===_i)for(;;){if(!(r=o?i.nextSibling:e[t+1])||r.nodeType!==_i)break;i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===e[t+1]&&e.splice(t+1,1)}}function K(e,t,n){function r(r,i,o,a,s){return r||(r=e.$new(!1,s),r.$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=ve();for(var o in t.$$slots)t.$$slots[o]?i[o]=K(e,t.$$slots[o],n):i[o]=null;return r}function Z(e,t,n,r,i){var o,a,s,u=e.nodeType,l=n.$attr;switch(u){case xi:a=V(e),se(t,wt(a),"E",r,i);for(var c,f,h,d,p,g,m=e.attributes,v=0,$=m&&m.length;v<$;v++){var b=!1,x=!1;c=m[v],f=c.name,p=c.value,d=wt(f),g=Ie.test(d),g&&(f=f.replace(lo,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()}));var S=d.match(je);S&&ue(S[1])&&(b=f,x=f.substr(0,f.length-5)+"end",f=f.substr(0,f.length-6)),h=wt(f.toLowerCase()),l[h]=f,!g&&n.hasOwnProperty(h)||(n[h]=p,Ke(e,h)&&(n[h]=!0)),$e(e,t,p,h,g),se(t,h,"A",r,i,b,x)}if("input"===a&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!Te)break;if(s=e.className,w(s)&&(s=s.animVal),_(s)&&""!==s)for(;o=y.exec(s);)h=wt(o[2]),se(t,h,"C",r,i)&&(n[h]=di(o[3])),s=s.substr(o.index+o[0].length);break;case _i:ge(t,e.nodeValue);break;case Si:if(!Me)break;J(e,t,n,r,i)}return t.sort(de),t}function J(e,t,n,r,i){try{var o=d.exec(e.nodeValue);if(o){var a=wt(o[1]);se(t,a,"M",r,i)&&(n[a]=di(o[2]))}}catch(e){}}function Q(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw so("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType===xi&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0);else r.push(e);return Qr(r)}function te(e,t,n){return function(r,i,o,a,s){return i=Q(i[0],t,n),e(r,i,o,a,s)}}function ne(e,t,n,r,i,o){var a
;return e?H(t,n,r,i,o):function(){return a||(a=H(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function re(e,t,n,i,a,s,u,l,c){function h(e,t,n,r){e&&(n&&(e=te(e,n,r)),e.require=p.require,e.directiveName=g,(S===p||p.$$isolateScope)&&(e=we(e,{isolateScope:!0})),u.push(e)),t&&(n&&(t=te(t,n,r)),t.require=p.require,t.directiveName=g,(S===p||p.$$isolateScope)&&(t=we(t,{isolateScope:!0})),l.push(t))}function d(e,i,a,s,c){function h(e,t,n,r){var i;if(T(e)||(r=n,n=t,t=e,e=void 0),N&&(i=y),n||(n=N?E.parent():E),!r)return c(e,t,i,n,V);var o=c.$$slots[r];if(o)return o(e,t,i,n,V);if($(o))throw so("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,ee(E))}var d,p,g,m,v,y,b,E,M,D;t===a?(M=n,E=n.$$element):(E=Qr(a),M=new L(E,n)),v=i,S?m=i.$new(!0):x&&(v=i.$parent),c&&(b=h,b.$$boundTransclude=c,b.isSlotFilled=function(e){return!!c.$$slots[e]}),_&&(y=oe(E,M,b,_,m,i,S)),S&&(H.$$addScopeInfo(E,m,!0,!(k&&(k===S||k===S.$$originalDirective))),H.$$addScopeClass(E,!0),m.$$isolateBindings=S.$$isolateBindings,D=_e(i,M,m,m.$$isolateBindings,S),D.removeWatches&&m.$on("$destroy",D.removeWatches));for(var O in y){var P=_[O],I=y[O],j=P.$$bindings.bindToController;if(A){I.bindingInfo=j?_e(v,M,I.instance,j,P):{};var R=I();R!==I.instance&&(I.instance=R,E.data("$"+P.name+"Controller",R),I.bindingInfo.removeWatches&&I.bindingInfo.removeWatches(),I.bindingInfo=_e(v,M,I.instance,j,P))}else I.instance=I(),E.data("$"+P.name+"Controller",I.instance),I.bindingInfo=_e(v,M,I.instance,j,P)}for(o(_,function(e,t){var n=e.require;e.bindToController&&!fi(n)&&w(n)&&f(y[t].instance,ie(t,n,E,y))}),o(y,function(e){var t=e.instance;if(C(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){r(e)}if(C(t.$onInit))try{t.$onInit()}catch(e){r(e)}C(t.$doCheck)&&(v.$watch(function(){t.$doCheck()}),t.$doCheck()),C(t.$onDestroy)&&v.$on("$destroy",function(){t.$onDestroy()})}),d=0,p=u.length;d<p;d++)g=u[d],xe(g,g.isolateScope?m:i,E,M,g.require&&ie(g.directiveName,g.require,E,y),b);var V=i;for(S&&(S.template||null===S.templateUrl)&&(V=m),e&&e(V,a.childNodes,void 0,c),d=l.length-1;d>=0;d--)g=l[d],xe(g,g.isolateScope?m:i,E,M,g.require&&ie(g.directiveName,g.require,E,y),b);o(y,function(e){var t=e.instance;C(t.$postLink)&&t.$postLink()})}c=c||{};for(var p,g,m,v,y,b=-Number.MAX_VALUE,x=c.newScopeDirective,_=c.controllerDirectives,S=c.newIsolateScopeDirective,k=c.templateDirective,E=c.nonTlbTranscludeDirective,M=!1,D=!1,N=c.hasElementTranscludeDirective,O=n.$$element=Qr(t),P=s,I=i,j=!1,R=!1,F=0,Y=e.length;F<Y;F++){p=e[F];var q=p.$$start,z=p.$$end;if(q&&(O=Q(t,q,z)),m=void 0,b>p.priority)break;if(y=p.scope,y&&(p.templateUrl||(w(y)?(pe("new/isolated scope",S||x,p,O),S=p):pe("new/isolated scope",S,p,O)),x=x||p),g=p.name,!j&&(p.replace&&(p.templateUrl||p.template)||p.transclude&&!p.$$tlb)){for(var U,G=F+1;U=e[G++];)if(U.transclude&&!U.$$tlb||U.replace&&(U.templateUrl||U.template)){R=!0;break}j=!0}if(!p.templateUrl&&p.controller&&(_=_||ve(),pe("'"+g+"' controller",_[g],p,O),_[g]=p),y=p.transclude)if(M=!0,p.$$tlb||(pe("transclusion",E,p,O),E=p),"element"===y)N=!0,b=p.priority,m=O,O=n.$$element=Qr(H.$$createComment(g,n[g])),t=O[0],be(a,B(m),t),m[0].$$parentNode=m[0].parentNode,I=ne(R,m,i,b,P&&P.name,{nonTlbTranscludeDirective:E});else{var X=ve();if(w(y)){m=[];var K=ve(),J=ve();o(y,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,K[e]=t,X[t]=null,J[t]=n}),o(O.contents(),function(e){var t=K[wt(V(e))];t?(J[t]=!0,X[t]=X[t]||[],X[t].push(e)):m.push(e)}),o(J,function(e,t){if(!e)throw so("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var re in X)X[re]&&(X[re]=ne(R,X[re],i))}else m=Qr(Pe(t)).contents();O.empty(),I=ne(R,m,i,void 0,void 0,{needsNewScope:p.$$isolateScope||p.$$newScope}),I.$$slots=X}if(p.template)if(D=!0,pe("template",k,p,O),k=p,y=C(p.template)?p.template(O,n):p.template,y=Oe(y),p.replace){if(P=p,m=Ee(y)?[]:_t(me(p.templateNamespace,di(y))),t=m[0],1!==m.length||t.nodeType!==xi)throw so("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g,"");be(a,O,t);var se={$attr:{}},ue=Z(t,[],se),fe=e.splice(F+1,e.length-(F+1));(S||x)&&ae(ue,S,x),e=e.concat(ue).concat(fe),le(n,se),Y=e.length}else O.html(y);if(p.templateUrl)D=!0,pe("template",k,p,O),k=p,p.replace&&(P=p),d=ce(e.splice(F,e.length-F),O,n,a,M&&I,u,l,{controllerDirectives:_,newScopeDirective:x!==p&&x,newIsolateScopeDirective:S,templateDirective:k,nonTlbTranscludeDirective:E}),Y=e.length;else if(p.compile)try{v=p.compile(O,n,I);var he=p.$$originalDirective||p;C(v)?h(null,W(he,v),q,z):v&&h(W(he,v.pre),W(he,v.post),q,z)}catch(e){r(e,ee(O))}p.terminal&&(d.terminal=!0,b=Math.max(b,p.priority))}return d.scope=x&&!0===x.scope,d.transcludeOnThisElement=M,d.templateOnThisElement=D,d.transclude=I,c.hasElementTranscludeDirective=N,d}function ie(e,t,n,r){var i;if(_(t)){var a=t.match(S),s=t.substring(a[0].length),u=a[1]||a[3],l="?"===a[2];if("^^"===u?n=n.parent():(i=r&&r[s],i=i&&i.instance),!i){var c="$"+s+"Controller";i=u?n.inheritedData(c):n.data(c)}if(!i&&!l)throw so("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,e)}else if(fi(t)){i=[];for(var f=0,h=t.length;f<h;f++)i[f]=ie(e,t[f],n,r)}else w(t)&&(i={},o(t,function(t,o){i[o]=ie(e,t,n,r)}));return i||null}function oe(e,t,n,r,i,o,a){var s=ve();for(var l in r){var c=r[l],f={$scope:c===a||c.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},h=c.controller;"@"===h&&(h=t[c.name]);var d=u(h,f,!0,c.controllerAs);s[c.name]=d,e.data("$"+c.name+"Controller",d.instance)}return s}function ae(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=p(e[r],{$$isolateScope:t,$$newScope:n})}function se(e,n,r,o,a,s,u){if(n===a)return null;var l=null;if(c.hasOwnProperty(n))for(var f,d=t.get(n+h),g=0,m=d.length;g<m;g++)if(f=d[g],($(o)||o>f.priority)&&-1!==f.restrict.indexOf(r)){if(s&&(f=p(f,{$$start:s,$$end:u})),!f.$$bindings){var v=f.$$bindings=i(f,f.name);w(v.isolateScope)&&(f.$$isolateBindings=v.isolateScope)}e.push(f),l=f}return l}function ue(e){if(c.hasOwnProperty(e))for(var n,r=t.get(e+h),i=0,o=r.length;i<o;i++)if(n=r[i],n.multiElement)return!0;return!1}function le(e,t){var n=t.$attr,r=e.$attr;o(e,function(r,i){"$"!==i.charAt(0)&&(t[i]&&t[i]!==r&&(r.length?r+=("style"===i?";":" ")+t[i]:r=t[i]),e.$set(i,r,!0,n[i]))}),o(t,function(t,i){e.hasOwnProperty(i)||"$"===i.charAt(0)||(e[i]=t,"class"!==i&&"style"!==i&&(r[i]=n[i]))})}function ce(e,t,n,i,s,u,l,c){var f,h,d=[],g=t[0],m=e.shift(),v=p(m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),y=C(m.templateUrl)?m.templateUrl(t,n):m.templateUrl,$=m.templateNamespace;return t.empty(),a(y).then(function(r){var a,p,b,x;if(r=Oe(r),m.replace){if(b=Ee(r)?[]:_t(me($,di(r))),a=b[0],1!==b.length||a.nodeType!==xi)throw so("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,y);p={$attr:{}},be(i,t,a);var _=Z(a,[],p);w(m.scope)&&ae(_,!0),e=_.concat(e),le(n,p)}else a=g,t.html(r);for(e.unshift(v),f=re(e,a,n,s,t,m,u,l,c),o(i,function(e,n){e===a&&(i[n]=t[0])}),h=G(t[0].childNodes,s);d.length;){var S=d.shift(),k=d.shift(),C=d.shift(),E=d.shift(),M=t[0];if(!S.$$destroyed){if(k!==g){var T=k.className;c.hasElementTranscludeDirective&&m.replace||(M=Pe(a)),be(C,Qr(k),M),F(Qr(M),T)}x=f.transcludeOnThisElement?K(S,f.transclude,E):E,f(h,S,M,i,x)}}d=null}).catch(function(e){e instanceof Error&&r(e)}),function(e,t,n,r,i){var o=i;t.$$destroyed||(d?d.push(t,n,r,o):(f.transcludeOnThisElement&&(o=K(t,f.transclude,i)),f(h,t,n,r,o)))}}function de(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 pe(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw so("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,ee(r))}function ge(e,t){var r=n(t,!0);r&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&H.$$addBindingClass(t),function(e,t){var i=t.parent();n||H.$$addBindingClass(i),H.$$addBindingInfo(i,r.expressions),e.$watch(r,function(e){t[0].nodeValue=e})}}})}function me(t,n){switch(t=Gr(t||"html")){case"svg":case"math":var r=e.document.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}}function ye(e,t){if("srcdoc"===t)return v.HTML;var n=V(e);if("src"===t||"ngSrc"===t){if(-1===["img","video","audio","source","track"].indexOf(n))return v.RESOURCE_URL}else if("xlinkHref"===t||"form"===n&&"action"===t||"link"===n&&"href"===t)return v.RESOURCE_URL}function $e(e,t,r,i,o){var a=ye(e,i),s=!o,u=x[i]||o,l=n(r,s,a,u);if(l){if("multiple"===i&&"select"===V(e))throw so("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",ee(e));if(k.test(i))throw so("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");t.push({priority:100,compile:function(){return{pre:function(e,t,o){var s=o.$$observers||(o.$$observers=ve()),c=o[i];c!==r&&(l=c&&n(c,!0,a,u),r=c),l&&(o[i]=l(e),(s[i]||(s[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||e).$watch(l,function(e,t){"class"===i&&e!==t?o.$updateClass(e,t):o.$set(i,e)}))}}}})}}function be(t,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(t)for(i=0,o=t.length;i<o;i++)if(t[i]===a){t[i++]=r;for(var l=i,c=l+s-1,f=t.length;l<f;l++,c++)c<f?t[l]=t[c]:delete t[l];t.length-=s-1,t.context===a&&(t.context=r);break}u&&u.replaceChild(r,a);var h=e.document.createDocumentFragment();for(i=0;i<s;i++)h.appendChild(n[i]);for(Qr.hasData(a)&&(Qr.data(r,Qr.data(a)),Qr(a).off("$destroy")),Qr.cleanData(h.querySelectorAll("*")),i=1;i<s;i++)delete n[i];n[0]=r,n.length=1}function we(e,t){return f(function(){return e.apply(null,arguments)},e,t)}function xe(e,t,n,i,o,a){try{e(t,n,i,o,a)}catch(e){r(e,ee(n))}}function _e(e,t,r,i,a){function u(t,n,i){C(r.$onChanges)&&!q(n,i)&&(Se||(e.$$postDigest(j),Se=[]),c||(c={},Se.push(l)),c[t]&&(i=c[t].previousValue),c[t]=new bt(i,n))}function l(){r.$onChanges(c),c=void 0}var c,f=[],h={};return o(i,function(i,o){var l,c,d,p,m,v=i.attrName,y=i.optional,$=i.mode;switch($){case"@":y||Br.call(t,v)||(r[o]=t[v]=void 0),m=t.$observe(v,function(e){if(_(e)||O(e)){var t=r[o];u(o,e,t),r[o]=e}}),t.$$observers[v].$$scope=e,l=t[v],_(l)?r[o]=n(l)(e):O(l)&&(r[o]=l),h[o]=new bt(uo,r[o]),f.push(m);break;case"=":if(!Br.call(t,v)){if(y)break;t[v]=void 0}if(y&&!t[v])break;c=s(t[v]),p=c.literal?z:q,d=c.assign||function(){throw l=r[o]=c(e),so("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[v],v,a.name)},l=r[o]=c(e);var b=function(t){return p(t,r[o])||(p(t,l)?d(e,t=r[o]):r[o]=t),l=t};b.$stateful=!0,m=i.collection?e.$watchCollection(t[v],b):e.$watch(s(t[v],b),null,c.literal),f.push(m);break;case"<":if(!Br.call(t,v)){if(y)break;t[v]=void 0}if(y&&!t[v])break;c=s(t[v]);var w=c.literal,x=r[o]=c(e);h[o]=new bt(uo,r[o]),m=e.$watch(c,function(e,t){if(t===e){if(t===x||w&&z(t,x))return;t=x}u(o,e,t),r[o]=e},w),f.push(m);break;case"&":if((c=t.hasOwnProperty(v)?s(t[v]):g)===g&&y)break;r[o]=function(t){return c(e,t)}}}),{initialChanges:h,removeWatches:f.length&&function(){for(var e=0,t=f.length;e<t;++e)f[e]()}}}var Se,ke=/^\w/,Ce=e.document.createElement("div"),Me=N,Te=P,Ae=D;L.prototype={$normalize:wt,$addClass:function(e){e&&e.length>0&&E.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&E.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=xt(e,t);n&&n.length&&E.addClass(this.$$element,n);var r=xt(t,e);r&&r.length&&E.removeClass(this.$$element,r)},$set:function(e,t,n,i){var a,s=this.$$element[0],u=Ke(s,e),l=Ze(e),c=e;if(u?(this.$$element.prop(e,t),i=u):l&&(this[l]=t,c=l),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e])||(this.$attr[e]=i=fe(e,"-")),"a"===(a=V(this.$$element))&&("href"===e||"xlinkHref"===e)||"img"===a&&"src"===e)this[e]=t=I(t,"src"===e);else if("img"===a&&"srcset"===e&&b(t)){for(var f="",h=di(t),d=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,p=/\s/.test(h)?d:/(,)/,g=h.split(p),m=Math.floor(g.length/2),v=0;v<m;v++){var y=2*v;f+=I(di(g[y]),!0),f+=" "+di(g[y+1])}var w=di(g[2*v]).split(/\s/);f+=I(di(w[0]),!0),2===w.length&&(f+=" "+di(w[1])),this[e]=t=f}!1!==n&&(null===t||$(t)?this.$$element.removeAttr(i):ke.test(i)?this.$$element.attr(i,t):R(this.$$element[0],i,t));var x=this.$$observers;x&&o(x[c],function(e){try{e(t)}catch(e){r(e)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=ve()),i=r[e]||(r[e]=[]);return i.push(t),l.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||$(n[e])||t(n[e])}),function(){Y(i,t)}}};var De=n.startSymbol(),Ne=n.endSymbol(),Oe="{{"===De&&"}}"===Ne?m:function(e){return e.replace(/\{\{/g,De).replace(/}}/g,Ne)},Ie=/^ngAttr[A-Z]/,je=/^(.+)Start$/;return H.$$addBindingInfo=M?function(e,t){var n=e.data("$binding")||[];fi(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:g,H.$$addBindingClass=M?function(e){F(e,"ng-binding")}:g,H.$$addScopeInfo=M?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:g,H.$$addScopeClass=M?function(e,t){F(e,t?"ng-isolate-scope":"ng-scope")}:g,H.$$createComment=function(t,n){var r="";return M&&(r=" "+(t||"")+": ",n&&(r+=n+" ")),e.document.createComment(r)},H}]}function bt(e,t){this.previousValue=e,this.currentValue=t}function wt(e){return e.replace(lo,"").replace(co,ke)}function xt(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 _t(e){e=Qr(e);var t=e.length;if(t<=1)return e;for(;t--;){var n=e[t];(n.nodeType===Si||n.nodeType===_i&&""===n.nodeValue.trim())&&ri.call(e,t,1)}return e}function St(e,t){if(t&&_(t))return t;if(_(e)){var n=ho.exec(e);if(n)return n[3]}}function kt(){var e={},n=!1;this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){pe(t,"controller"),w(t)?f(e,t):e[t]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(r,i){function o(e,n,r,i){if(!e||!w(e.$scope))throw t("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);e.$scope[n]=r}return function(t,a,s,u){var l,c,h,d;if(s=!0===s,u&&_(u)&&(d=u),_(t)){if(!(c=t.match(ho)))throw fo("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",t);if(h=c[1],d=d||c[3],!(t=e.hasOwnProperty(h)?e[h]:ge(a.$scope,h,!0)||(n?ge(i,h,!0):void 0)))throw fo("ctrlreg","The controller with the name '{0}' is not registered.",h);de(t,h,!0)}if(s){var p=(fi(t)?t[t.length-1]:t).prototype;return l=Object.create(p||null),d&&o(a,d,l,h||t.name),f(function(){var e=r.invoke(t,l,a,h);return e!==l&&(w(e)||C(e))&&(l=e,d&&o(a,d,l,h||t.name)),l},{instance:l,identifier:d})}return l=r.instantiate(t,a,h),d&&o(a,d,l,h||t.name),l}}]}function Ct(){this.$get=["$window",function(e){return Qr(e.document)}]}function Et(){this.$get=["$document","$rootScope",function(e,t){function n(){i=r.hidden}var r=e[0],i=r&&r.hidden;return e.on("visibilitychange",n),t.$on("$destroy",function(){e.off("visibilitychange",n)}),function(){return i}}]}function Mt(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function Tt(e){return w(e)?k(e)?e.toISOString():X(e):e}function At(){this.$get=function(){return function(e){if(!e)return"";var t=[];return a(e,function(e,n){null===e||$(e)||(fi(e)?o(e,function(e){t.push(oe(n)+"="+oe(Tt(e)))}):t.push(oe(n)+"="+oe(Tt(e))))}),t.join("&")}}}function Dt(){this.$get=function(){return function(e){function t(e,r,i){null===e||$(e)||(fi(e)?o(e,function(e,n){t(e,r+"["+(w(e)?n:"")+"]")}):w(e)&&!k(e)?a(e,function(e,n){t(e,r+(i?"":"[")+n+(i?"":"]"))}):n.push(oe(r)+"="+oe(Tt(e))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function Nt(e,t){if(_(e)){var n=e.replace($o,"").trim();if(n){var r=t("Content-Type");if(r&&0===r.indexOf(go)||Ot(n))try{e=K(n)}catch(t){throw bo("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}return e}function Ot(e){var t=e.match(vo);return t&&yo[t[0]].test(e)}function Pt(e){function t(e,t){e&&(r[e]=r[e]?r[e]+", "+t:t)}var n,r=ve();return _(e)?o(e.split("\n"),function(e){n=e.indexOf(":"),t(Gr(di(e.substr(0,n))),di(e.substr(n+1)))}):w(e)&&o(e,function(e,n){t(Gr(n),di(e))}),r}function It(e){var t;return function(n){if(t||(t=Pt(e)),n){var r=t[Gr(n)];return void 0===r&&(r=null),r}return t}}function jt(e,t,n,r){return C(r)?r(e,t,n):(o(r,function(r){e=r(e,t,n)}),e)}function Lt(e){return 200<=e&&e<300}function Rt(){var e=this.defaults={transformResponse:[Nt],transformRequest:[function(e){return!w(e)||A(e)||N(e)||D(e)?e:X(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:be(mo),put:be(mo),patch:be(mo)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},n=!1;this.useApplyAsync=function(e){return b(e)?(n=!!e,this):n};var r=this.interceptors=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(i,a,s,u,l,c,h,d){function p(n){function r(e,t){for(var n=0,r=t.length;n<r;){var i=t[n++],o=t[n++];e=e.then(i,o)}return t.length=0,e}function a(){i.$$completeOutstandingRequest(g)}function s(e,t){var n,r={};return o(e,function(e,i){C(e)?null!=(n=e(t))&&(r[i]=n):r[i]=e}),r}function u(t){var n=t.headers,r=jt(t.data,It(n),void 0,t.transformRequest);return $(r)&&o(n,function(e,t){"content-type"===Gr(t)&&delete n[t]}),$(t.withCredentials)&&!$(e.withCredentials)&&(t.withCredentials=e.withCredentials),m(t,r).then(l,l)}function l(e){var t=f({},e);return t.data=jt(e.data,e.headers,e.status,p.transformResponse),Lt(e.status)?t:c.reject(t)}if(!w(n))throw t("$http")("badreq","Http request configuration must be an object.  Received: {0}",n);if(!_(d.valueOf(n.url)))throw t("$http")("badreq","Http request configuration url must be a string or a $sce trusted object.  Received: {0}",n.url);var p=f({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer,jsonpCallbackParam:e.jsonpCallbackParam},n);p.headers=function(t){var n,r,i,o=e.headers,a=f({},t.headers);o=f({},o.common,o[Gr(t.method)]);e:for(n in o){r=Gr(n);for(i in a)if(Gr(i)===r)continue e;a[n]=o[n]}return s(a,be(t))}(n),p.method=Xr(p.method),p.paramSerializer=_(p.paramSerializer)?h.get(p.paramSerializer):p.paramSerializer,i.$$incOutstandingRequestCount();var v=[],y=[],b=c.resolve(p);return o(S,function(e){(e.request||e.requestError)&&v.unshift(e.request,e.requestError),(e.response||e.responseError)&&y.push(e.response,e.responseError)}),b=r(b,v),b=b.then(u),b=r(b,y),b=b.finally(a)}function m(t,r){function i(e){if(e){var t={};return o(e,function(e,r){t[r]=function(t){function r(){e(t)}n?l.$applyAsync(r):l.$$phase?r():l.$apply(r)}}),t}}function u(e,t,r,i){function o(){f(t,e,r,i)}m&&(Lt(e)?m.put(T,[e,t,Pt(r),i]):m.remove(T)),n?l.$applyAsync(o):(o(),l.$$phase||l.$apply())}function f(e,n,r,i){n=n>=-1?n:0,(Lt(n)?k.resolve:k.reject)({data:e,status:n,headers:It(r),config:t,statusText:i})}function h(e){f(e.data,e.status,be(e.headers()),e.statusText)}function g(){var e=p.pendingRequests.indexOf(t);-1!==e&&p.pendingRequests.splice(e,1)}var m,S,k=c.defer(),C=k.promise,E=t.headers,M="jsonp"===Gr(t.method),T=t.url;if(M?T=d.getTrustedResourceUrl(T):_(T)||(T=d.valueOf(T)),T=v(T,t.paramSerializer(t.params)),M&&(T=y(T,t.jsonpCallbackParam)),p.pendingRequests.push(t),C.then(g,g),!t.cache&&!e.cache||!1===t.cache||"GET"!==t.method&&"JSONP"!==t.method||(m=w(t.cache)?t.cache:w(e.cache)?e.cache:x),m&&(S=m.get(T),b(S)?P(S)?S.then(h,h):fi(S)?f(S[1],S[0],be(S[2]),S[3]):f(S,200,{},"OK"):m.put(T,C)),$(S)){var A=Rn(t.url)?s()[t.xsrfCookieName||e.xsrfCookieName]:void 0;A&&(E[t.xsrfHeaderName||e.xsrfHeaderName]=A),a(t.method,T,r,u,E,t.timeout,t.withCredentials,t.responseType,i(t.eventHandlers),i(t.uploadEventHandlers))}return C}function v(e,t){return t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}function y(e,t){if(/[&?][^=]+=JSON_CALLBACK/.test(e))throw bo("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',e);if(new RegExp("[&?]"+t+"=").test(e))throw bo("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,e);return e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK"}var x=u("$http");e.paramSerializer=_(e.paramSerializer)?h.get(e.paramSerializer):e.paramSerializer;var S=[];return o(r,function(e){S.unshift(_(e)?h.get(e):h.invoke(e))}),p.pendingRequests=[],function(e){o(arguments,function(e){p[e]=function(t,n){return p(f({},n||{},{method:e,url:t}))}})}("get","delete","head","jsonp"),function(e){o(arguments,function(e){p[e]=function(t,n,r){return p(f({},r||{},{method:e,url:t,data:n}))}})}("post","put","patch"),p.defaults=e,p}]}function Vt(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function Ft(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return Yt(e,r,e.defer,t,n[0])}]}function Yt(e,t,n,r,i){function a(e,t,n){e=e.replace("JSON_CALLBACK",t);var o=i.createElement("script"),a=null;return o.type="text/javascript",o.src=e,o.async=!0,a=function(e){o.removeEventListener("load",a),o.removeEventListener("error",a),i.body.removeChild(o),o=null;var s=-1,u="unknown";e&&("load"!==e.type||r.wasCalled(t)||(e={type:"error"}),u=e.type,s="error"===e.type?404:200),n&&n(s,u)},o.addEventListener("load",a),o.addEventListener("error",a),i.body.appendChild(o),a}return function(i,s,u,l,c,f,h,d,p,g){function m(){w&&w(),x&&x.abort()}function v(e,t,r,i,o){b(S)&&n.cancel(S),w=x=null,e(t,r,i,o)}if(s=s||e.url(),"jsonp"===Gr(i))var y=r.createCallback(s),w=a(s,y,function(e,t){var n=200===e&&r.getResponse(y);v(l,e,n,"",t),r.removeCallback(y)});else{var x=t(i,s);x.open(i,s,!0),o(c,function(e,t){b(e)&&x.setRequestHeader(t,e)}),x.onload=function(){var e=x.statusText||"",t="response"in x?x.response:x.responseText,n=1223===x.status?204:x.status;0===n&&(n=t?200:"file"===Ln(s).protocol?404:0),v(l,n,t,x.getAllResponseHeaders(),e)};var _=function(){v(l,-1,null,null,"")};if(x.onerror=_,x.onabort=_,x.ontimeout=_,o(p,function(e,t){x.addEventListener(t,e)}),o(g,function(e,t){x.upload.addEventListener(t,e)}),h&&(x.withCredentials=!0),d)try{x.responseType=d}catch(e){if("json"!==d)throw e}x.send($(u)?null:u)}if(f>0)var S=n(m,f);else P(f)&&f.then(m)}}function Ht(){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(e){return"\\\\\\"+e}function a(n){return n.replace(h,e).replace(d,t)}function s(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function u(o,u,h,d){function p(e){try{return e=A(e),d&&!b(e)?e:ye(e)}catch(e){r(wo.interr(o,e))}}if(!o.length||-1===o.indexOf(e)){var g;if(!u){g=v(a(o)),g.exp=o,g.expressions=[],g.$$watchDelegate=s}return g}d=!!d;for(var m,y,w,x=0,_=[],S=[],k=o.length,E=[],M=[];x<k;){if(-1===(m=o.indexOf(e,x))||-1===(y=o.indexOf(t,m+l))){x!==k&&E.push(a(o.substring(x)));break}x!==m&&E.push(a(o.substring(x,m))),w=o.substring(m+l,y),_.push(w),S.push(n(w,p)),x=y+c,M.push(E.length),E.push("")}if(h&&E.length>1&&wo.throwNoconcat(o),!u||_.length){var T=function(e){for(var t=0,n=_.length;t<n;t++){if(d&&$(e[t]))return;E[M[t]]=e[t]}return E.join("")},A=function(e){return h?i.getTrusted(h,e):i.valueOf(e)};return f(function(e){var t=0,n=_.length,i=new Array(n);try{for(;t<n;t++)i[t]=S[t](e);return T(i)}catch(e){r(wo.interr(o,e))}},{exp:o,expressions:_,$$watchDelegate:function(e,t){var n;return e.$watchGroup(S,function(r,i){var o=T(r);C(t)&&t.call(this,o,r!==i?n:o,e),n=o})}})}}var l=e.length,c=t.length,h=new RegExp(e.replace(/./g,o),"g"),d=new RegExp(t.replace(/./g,o),"g");return u.startSymbol=function(){return e},u.endSymbol=function(){return t},u}]}function qt(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(e,t,n,r,i){function o(o,s,u,l){function c(){f?o.apply(null,h):o(g)}var f=arguments.length>4,h=f?B(arguments,4):[],d=t.setInterval,p=t.clearInterval,g=0,m=b(l)&&!l,v=(m?r:n).defer(),y=v.promise;return u=b(u)?u:0,y.$$intervalId=d(function(){m?i.defer(c):e.$evalAsync(c),v.notify(g++),u>0&&g>=u&&(v.resolve(g),p(y.$$intervalId),delete a[y.$$intervalId]),m||e.$apply()},s),a[y.$$intervalId]=v,y}var a={};return o.cancel=function(e){return!!(e&&e.$$intervalId in a)&&(a[e.$$intervalId].promise.catch(g),a[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete a[e.$$intervalId],!0)},o}]}function zt(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=ie(t[n]);return t.join("/")}function Ut(e,t){var n=Ln(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=d(n.port)||So[n.protocol]||null}function Bt(e,t){if(Co.test(e))throw ko("badpath",'Invalid url "{0}".',e);var n="/"!==e.charAt(0);n&&(e="/"+e);var r=Ln(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=ne(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Wt(e,t){return e.slice(0,t.length)===t}function Gt(e,t){if(Wt(t,e))return t.substr(e.length)}function Xt(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function Kt(e){return e.replace(/(#.+)|#$/,"$1")}function Zt(e){return e.substr(0,Xt(e).lastIndexOf("/")+1)}function Jt(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function Qt(e,t,n){this.$$html5=!0,n=n||"",Ut(e,this),this.$$parse=function(e){var n=Gt(t,e);if(!_(n))throw ko("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);Bt(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=re(this.$$search),n=this.$$hash?"#"+ie(this.$$hash):"";this.$$url=zt(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a,s;return b(o=Gt(e,r))?(a=o,s=n&&b(o=Gt(n,o))?t+(Gt("/",o)||o):e+a):b(o=Gt(t,r))?s=t+o:t===r+"/"&&(s=t),s&&this.$$parse(s),!!s}}function en(e,t,n){Ut(e,this),this.$$parse=function(r){var i,o=Gt(e,r)||Gt(t,r);$(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",$(o)&&(e=r,this.replace())):(i=Gt(n,o),$(i)&&(i=o)),Bt(i,this),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return Wt(t,n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}(this.$$path,i,e),this.$$compose()},this.$$compose=function(){var t=re(this.$$search),r=this.$$hash?"#"+ie(this.$$hash):"";this.$$url=zt(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+(this.$$url?n+this.$$url:""),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(t,n){return Xt(e)===Xt(t)&&(this.$$parse(t),!0)}}function tn(e,t,n){this.$$html5=!0,en.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return e===Xt(r)?o=r:(a=Gt(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o},this.$$compose=function(){var t=re(this.$$search),r=this.$$hash?"#"+ie(this.$$hash):"";this.$$url=zt(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+n+this.$$url,this.$$urlUpdatedByLocation=!0}}function nn(e){return function(){return this[e]}}function rn(e,t){return function(n){return $(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function on(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return b(t)?(e=t,this):e},this.html5Mode=function(e){return O(e)?(t.enabled=e,this):w(e)?(O(e.enabled)&&(t.enabled=e.enabled),O(e.requireBase)&&(t.requireBase=e.requireBase),(O(e.rewriteLinks)||_(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(e,t,n){var i=l.url(),o=l.$$state;try{r.url(e,t,n),l.$$state=r.state()}catch(e){throw l.url(i),l.$$state=o,e}}function u(e,t){n.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}var l,c,f,h=r.baseHref(),d=r.url();if(t.enabled){if(!h&&t.requireBase)throw ko("nobase","$location in HTML5 mode requires a <base> tag to be present!");f=Jt(d)+(h||"/"),c=i.history?Qt:tn}else f=Xt(d),c=en;var p=Zt(f);l=new c(f,p,"#"+e),l.$$parseLinkUrl(d,d),l.$$state=r.state();var g=/^\s*(javascript|mailto):/i;o.on("click",function(e){var i=t.rewriteLinks;if(i&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var s=Qr(e.target);"a"!==V(s[0]);)if(s[0]===o[0]||!(s=s.parent())[0])return;if(!_(i)||!$(s.attr(i))){var u=s.prop("href"),c=s.attr("href")||s.attr("xlink:href");w(u)&&"[object SVGAnimatedString]"===u.toString()&&(u=Ln(u.animVal).href),g.test(u)||!u||s.attr("target")||e.isDefaultPrevented()||l.$$parseLinkUrl(u,c)&&(e.preventDefault(),l.absUrl()!==r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}}),Kt(l.absUrl())!==Kt(d)&&r.url(l.absUrl(),!0);var m=!0;return r.onUrlChange(function(e,t){if(!Wt(e,p))return void(a.location.href=e);n.$evalAsync(function(){var r,i=l.absUrl(),o=l.$$state;e=Kt(e),l.$$parse(e),l.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,l.absUrl()===e&&(r?(l.$$parse(i),l.$$state=o,s(i,!1,o)):(m=!1,u(i,o)))}),n.$$phase||n.$digest()}),n.$watch(function(){if(m||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var e=Kt(r.url()),t=Kt(l.absUrl()),o=r.state(),a=l.$$replace,c=e!==t||l.$$html5&&i.history&&o!==l.$$state;(m||c)&&(m=!1,n.$evalAsync(function(){var t=l.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,l.$$state,o).defaultPrevented;l.absUrl()===t&&(r?(l.$$parse(e),l.$$state=o):(c&&s(t,a,o===l.$$state?null:l.$$state),u(e,o)))}))}l.$$replace=!1}),l}]}function an(){var e=!0,t=this;this.debugEnabled=function(t){return b(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){return e instanceof Error&&(e.stack&&a?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||g,a=!1;try{a=!!i.apply}catch(e){}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)}}var a=Jr||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);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 sn(e){return e+""}function un(e,t){return void 0!==e?e:t}function ln(e,t){return void 0===e?t:void 0===t?e:e+t}function cn(e,t){return!e(t).$stateful}function fn(e,t){var n,r,i;switch(e.type){case Oo.Program:n=!0,o(e.body,function(e){fn(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case Oo.Literal:e.constant=!0,e.toWatch=[];break;case Oo.UnaryExpression:fn(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case Oo.BinaryExpression:fn(e.left,t),fn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case Oo.LogicalExpression:fn(e.left,t),fn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case Oo.ConditionalExpression:fn(e.test,t),fn(e.alternate,t),fn(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case Oo.Identifier:e.constant=!1,e.toWatch=[e];break;case Oo.MemberExpression:fn(e.object,t),e.computed&&fn(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case Oo.CallExpression:i=!!e.filter&&cn(t,e.callee.name),n=i,r=[],o(e.arguments,function(e){fn(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=i?r:[e];break;case Oo.AssignmentExpression:fn(e.left,t),fn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case Oo.ArrayExpression:n=!0,r=[],o(e.elements,function(e){fn(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=r;break;case Oo.ObjectExpression:n=!0,r=[],o(e.properties,function(e){fn(e.value,t),
n=n&&e.value.constant&&!e.computed,e.value.constant||r.push.apply(r,e.value.toWatch),e.computed&&(fn(e.key,t),e.key.constant||r.push.apply(r,e.key.toWatch))}),e.constant=n,e.toWatch=r;break;case Oo.ThisExpression:case Oo.LocalsExpression:e.constant=!1,e.toWatch=[]}}function hn(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length?n:n[0]!==t?n:void 0}}function dn(e){return e.type===Oo.Identifier||e.type===Oo.MemberExpression}function pn(e){if(1===e.body.length&&dn(e.body[0].expression))return{type:Oo.AssignmentExpression,left:e.body[0].expression,right:{type:Oo.NGValueParameter},operator:"="}}function gn(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===Oo.Literal||e.body[0].expression.type===Oo.ArrayExpression||e.body[0].expression.type===Oo.ObjectExpression)}function mn(e){return e.constant}function vn(e){this.$filter=e}function yn(e){this.$filter=e}function $n(e,t,n){this.ast=new Oo(e,n),this.astCompiler=n.csp?new yn(t):new vn(t)}function bn(e){return C(e.valueOf)?e.valueOf():To.call(e)}function wn(){var e,t,n=ve(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){r[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(i){function a(e,t){var r,o,a;switch(typeof e){case"string":if(e=e.trim(),a=e,!(r=n[a])){":"===e.charAt(0)&&":"===e.charAt(1)&&(o=!0,e=e.substring(2));r=new $n(new No(p),i,p).parse(e),r.constant?r.$$watchDelegate=f:o?(r.oneTime=!0,r.$$watchDelegate=l):r.inputs&&(r.$$watchDelegate=u),n[a]=r}return h(r,t);case"function":return h(e,t);default:return h(g,t)}}function s(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=bn(e))&&!n)&&(e===t||e!==e&&t!==t)}function u(e,t,n,r,i){var o,a=r.inputs;if(1===a.length){var u=s;return a=a[0],e.$watch(function(e){var t=a(e);return s(t,u,r.literal)||(o=r(e,void 0,void 0,[t]),u=t&&bn(t)),o},t,n,i)}for(var l=[],c=[],f=0,h=a.length;f<h;f++)l[f]=s,c[f]=null;return e.$watch(function(e){for(var t=!1,n=0,i=a.length;n<i;n++){var u=a[n](e);(t||(t=!s(u,l[n],r.literal)))&&(c[n]=u,l[n]=u&&bn(u))}return t&&(o=r(e,void 0,void 0,c)),o},t,n,i)}function l(e,t,n,r,i){function o(e){return r(e)}function a(e,n,r){l=e,C(t)&&t(e,n,r),f(e)&&r.$$postDigest(function(){f(l)&&s()})}var s,l,f=r.literal?c:b;return s=r.inputs?u(e,a,n,r,i):e.$watch(o,a,n)}function c(e){var t=!0;return o(e,function(e){b(e)||(t=!1)}),t}function f(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function h(e,t){function n(n,r,i,a){var s=o&&a?a[0]:e(n,r,i,a);return t(s,n,r)}function r(n,r,i,s){var u=o&&s?s[0]:e(n,r,i,s),l=t(u,n,r);return a(u)?l:u}if(!t)return e;var i=e.$$watchDelegate,o=!1,a=e.literal?c:b,s=e.oneTime?r:n;return s.literal=e.literal,s.oneTime=e.oneTime,o=!e.inputs,i&&i!==u?(s.$$watchDelegate=i,s.inputs=e.inputs):t.$stateful||(s.$$watchDelegate=u,s.inputs=e.inputs?e.inputs:[e]),s}var d=gi().noUnsafeEval,p={csp:d,literals:H(r),isIdentifierStart:C(e)&&e,isIdentifierContinue:C(t)&&t};return a}]}function xn(){var e=!0;this.$get=["$rootScope","$exceptionHandler",function(t,n){return Sn(function(e){t.$evalAsync(e)},n,e)}],this.errorOnUnhandledRejections=function(t){return b(t)?(e=t,this):e}}function _n(){var e=!0;this.$get=["$browser","$exceptionHandler",function(t,n){return Sn(function(e){t.defer(e)},n,e)}],this.errorOnUnhandledRejections=function(t){return b(t)?(e=t,this):e}}function Sn(e,n,r){function i(){return new a}function a(){var e=this.promise=new s;this.resolve=function(t){h(e,t)},this.reject=function(t){p(e,t)},this.notify=function(t){m(e,t)}}function s(){this.$$state={status:0}}function u(t){var n,i,o;o=t.pending,t.processScheduled=!1,t.pending=void 0;try{for(var a=0,s=o.length;a<s;++a){t.pur=!0,i=o[a][0],n=o[a][t.status];try{C(n)?h(i,n(t.value)):1===t.status?h(i,t.value):p(i,t.value)}catch(e){p(i,e)}}}finally{--E,r&&0===E&&e(l)}}function l(){for(;!E&&M.length;){var e=M.shift();if(!e.pur){e.pur=!0;var t="Possibly unhandled rejection: "+xe(e.value);e.value instanceof Error?n(e.value,t):n(t)}}}function c(t){!r||t.pending||2!==t.status||t.pur||(0===E&&0===M.length&&e(l),M.push(t)),!t.processScheduled&&t.pending&&(t.processScheduled=!0,++E,e(function(){u(t)}))}function h(e,t){e.$$state.status||(t===e?g(e,k("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):d(e,t))}function d(e,t){function n(t){a||(a=!0,d(e,t))}function r(t){a||(a=!0,g(e,t))}function i(t){m(e,t)}var o,a=!1;try{(w(t)||C(t))&&(o=t.then),C(o)?(e.$$state.status=-1,o.call(t,n,r,i)):(e.$$state.value=t,e.$$state.status=1,c(e.$$state))}catch(e){r(e)}}function p(e,t){e.$$state.status||g(e,t)}function g(e,t){e.$$state.value=t,e.$$state.status=2,c(e.$$state)}function m(t,r){var i=t.$$state.pending;t.$$state.status<=0&&i&&i.length&&e(function(){for(var e,t,o=0,a=i.length;o<a;o++){t=i[o][0],e=i[o][3];try{m(t,C(e)?e(r):r)}catch(e){n(e)}}})}function v(e){var t=new s;return p(t,e),t}function y(e,t,n){var r=null;try{C(n)&&(r=n())}catch(e){return v(e)}return P(r)?r.then(function(){return t(e)},v):t(e)}function b(e,t,n,r){var i=new s;return h(i,e),i.then(t,n,r)}function x(e){var t=new s,n=0,r=fi(e)?[]:{};return o(e,function(e,i){n++,b(e).then(function(e){r[i]=e,--n||h(t,r)},function(e){p(t,e)})}),0===n&&h(t,r),t}function _(e){var t=i();return o(e,function(e){b(e).then(t.resolve,t.reject)}),t.promise}function S(e){function t(e){h(r,e)}function n(e){p(r,e)}if(!C(e))throw k("norslvr","Expected resolverFn, got '{0}'",e);var r=new s;return e(t,n),r}var k=t("$q",TypeError),E=0,M=[];f(s.prototype,{then:function(e,t,n){if($(e)&&$(t)&&$(n))return this;var r=new s;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&c(this.$$state),r},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then(function(t){return y(t,T,e)},function(t){return y(t,v,e)},t)}});var T=b;return S.prototype=s.prototype,S.defer=i,S.reject=v,S.when=b,S.resolve=T,S.all=x,S.race=_,S}function kn(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||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 Cn(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=u(),this.$$ChildScope=null}return t.prototype=e,t}var n=10,r=t("$rootScope"),a=null,s=null;this.digestTtl=function(e){return arguments.length&&(n=e),n},this.$get=["$exceptionHandler","$parse","$browser",function(t,l,c){function f(e){e.currentScope.$$destroyed=!0}function h(e){9===Jr&&(e.$$childHead&&h(e.$$childHead),e.$$nextSibling&&h(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function d(){this.$id=u(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function p(e){if(S.$$phase)throw r("inprog","{0} already in progress",S.$$phase);S.$$phase=e}function m(){S.$$phase=null}function v(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function y(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function b(){}function x(){for(;M.length;)try{M.shift()()}catch(e){t(e)}s=null}function _(){null===s&&(s=c.defer(function(){S.$apply(x)}))}d.prototype={constructor:d,$new:function(t,n){var r;return n=n||this,t?(r=new d,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(t||n!==this)&&r.$on("$destroy",f),r},$watch:function(e,t,n,r){var i=l(e);if(i.$$watchDelegate)return i.$$watchDelegate(this,t,n,i,e);var o=this,s=o.$$watchers,u={fn:t,last:b,get:i,exp:r||e,eq:!!n};return a=null,C(t)||(u.fn=g),s||(s=o.$$watchers=[],s.$$digestWatchIndex=-1),s.unshift(u),s.$$digestWatchIndex++,v(this,1),function(){var e=Y(s,u);e>=0&&(v(o,-1),e<s.$$digestWatchIndex&&s.$$digestWatchIndex--),a=null}},$watchGroup:function(e,t){function n(){u=!1,l?(l=!1,t(i,i,s)):t(i,r,s)}var r=new Array(e.length),i=new Array(e.length),a=[],s=this,u=!1,l=!0;if(!e.length){var c=!0;return s.$evalAsync(function(){c&&t(i,i,s)}),function(){c=!1}}return 1===e.length?this.$watch(e[0],function(e,n,o){i[0]=e,r[0]=n,t(i,e===n?i:r,o)}):(o(e,function(e,t){var o=s.$watch(e,function(e,o){i[t]=e,r[t]=o,u||(u=!0,s.$evalAsync(n))});a.push(o)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function n(e){o=e;var t,n,r,s;if(!$(o)){if(w(o))if(i(o)){a!==d&&(a=d,m=a.length=0,f++),t=o.length,m!==t&&(f++,a.length=m=t);for(var u=0;u<t;u++)s=a[u],r=o[u],s!==s&&r!==r||s===r||(f++,a[u]=r)}else{a!==p&&(a=p={},m=0,f++),t=0;for(n in o)Br.call(o,n)&&(t++,r=o[n],s=a[n],n in a?s!==s&&r!==r||s===r||(f++,a[n]=r):(m++,a[n]=r,f++));if(m>t){f++;for(n in a)Br.call(o,n)||(m--,delete a[n])}}else a!==o&&(a=o,f++);return f}}function r(){if(g?(g=!1,t(o,o,u)):t(o,s,u),c)if(w(o))if(i(o)){s=new Array(o.length);for(var e=0;e<o.length;e++)s[e]=o[e]}else{s={};for(var n in o)Br.call(o,n)&&(s[n]=o[n])}else s=o}n.$stateful=!0;var o,a,s,u=this,c=t.length>1,f=0,h=l(e,n),d=[],p={},g=!0,m=0;return this.$watch(h,r)},$digest:function(){var e,i,o,u,l,f,h,d,g,v,y,$=n,w=this,_=[];p("$digest"),c.$$checkUrlChange(),this===S&&null!==s&&(c.defer.cancel(s),x()),a=null;do{h=!1,g=w;for(var M=0;M<k.length;M++){try{y=k[M],u=y.fn,u(y.scope,y.locals)}catch(e){t(e)}a=null}k.length=0;e:do{if(f=g.$$watchers)for(f.$$digestWatchIndex=f.length;f.$$digestWatchIndex--;)try{if(e=f[f.$$digestWatchIndex])if(l=e.get,(i=l(g))===(o=e.last)||(e.eq?z(i,o):ci(i)&&ci(o))){if(e===a){h=!1;break e}}else h=!0,a=e,e.last=e.eq?H(i,null):i,u=e.fn,u(i,o===b?i:o,g),$<5&&(v=4-$,_[v]||(_[v]=[]),_[v].push({msg:C(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:i,oldVal:o}))}catch(e){t(e)}if(!(d=g.$$watchersCount&&g.$$childHead||g!==w&&g.$$nextSibling))for(;g!==w&&!(d=g.$$nextSibling);)g=g.$parent}while(g=d);if((h||k.length)&&!$--)throw m(),r("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",n,_)}while(h||k.length);for(m();T<E.length;)try{E[T++]()}catch(e){t(e)}E.length=T=0,c.$$checkUrlChange()},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===S&&c.$$applicationDestroyed(),v(this,-this.$$watchersCount);for(var t in this.$$listenerCount)y(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail===this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=g,this.$on=this.$watch=this.$watchGroup=function(){return g},this.$$listeners={},this.$$nextSibling=null,h(this)}},$eval:function(e,t){return l(e)(this,t)},$evalAsync:function(e,t){S.$$phase||k.length||c.defer(function(){k.length&&S.$digest()}),k.push({scope:this,fn:l(e),locals:t})},$$postDigest:function(e){E.push(e)},$apply:function(e){try{p("$apply");try{return this.$eval(e)}finally{m()}}catch(e){t(e)}finally{try{S.$digest()}catch(e){throw t(e),e}}},$applyAsync:function(e){function t(){n.$eval(e)}var n=this;e&&M.push(t),e=l(e),_()},$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(){var r=n.indexOf(t);-1!==r&&(n[r]=null,y(i,1,e))}},$emit:function(e,n){var r,i,o,a=[],s=this,u=!1,l={name:e,targetScope:s,stopPropagation:function(){u=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},c=U([l],arguments,1);do{for(r=s.$$listeners[e]||a,l.currentScope=s,i=0,o=r.length;i<o;i++)if(r[i])try{r[i].apply(null,c)}catch(e){t(e)}else r.splice(i,1),i--,o--;if(u)return l.currentScope=null,l;s=s.$parent}while(s);return l.currentScope=null,l},$broadcast:function(e,n){var r=this,i=r,o=r,a={name:e,targetScope:r,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!r.$$listenerCount[e])return a;for(var s,u,l,c=U([a],arguments,1);i=o;){for(a.currentScope=i,s=i.$$listeners[e]||[],u=0,l=s.length;u<l;u++)if(s[u])try{s[u].apply(null,c)}catch(e){t(e)}else s.splice(u,1),u--,l--;if(!(o=i.$$listenerCount[e]&&i.$$childHead||i!==r&&i.$$nextSibling))for(;i!==r&&!(o=i.$$nextSibling);)i=i.$parent}return a.currentScope=null,a}};var S=new d,k=S.$$asyncQueue=[],E=S.$$postDigestQueue=[],M=S.$$applyAsyncQueue=[],T=0;return S}]}function En(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return b(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return b(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i,o=r?t:e;return i=Ln(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function Mn(e){return e.replace(jo,ke)}function Tn(e){if("self"===e)return e;if(_(e)){if(e.indexOf("***")>-1)throw Po("iwcard","Illegal sequence *** in string matcher.  String: {0}",e);return e=pi(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(E(e))return new RegExp("^"+e.source+"$");throw Po("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function An(e){var t=[];return b(e)&&o(e,function(e){t.push(Tn(e))}),t}function Dn(){this.SCE_CONTEXTS=Io;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=An(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=An(e)),t},this.$get=["$injector",function(n){function r(e,t){return"self"===e?Rn(t):!!e.exec(t.href)}function i(n){var i,o,a=Ln(n.toString()),s=!1;for(i=0,o=e.length;i<o;i++)if(r(e[i],a)){s=!0;break}if(s)for(i=0,o=t.length;i<o;i++)if(r(t[i],a)){s=!1;break}return s}function o(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 a(e,t){var n=f.hasOwnProperty(e)?f[e]:null;if(!n)throw Po("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||$(t)||""===t)return t;if("string"!=typeof t)throw Po("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)}function s(e){return e instanceof c?e.$$unwrapTrustedValue():e}function u(e,t){if(null===t||$(t)||""===t)return t;var n=f.hasOwnProperty(e)?f[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(e===Io.RESOURCE_URL){if(i(t))return t;throw Po("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString())}if(e===Io.HTML)return l(t);throw Po("unsafe","Attempting to use an unsafe value in a safe context.")}var l=function(e){throw Po("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(l=n.get("$sanitize"));var c=o(),f={};return f[Io.HTML]=o(c),f[Io.CSS]=o(c),f[Io.URL]=o(c),f[Io.JS]=o(c),f[Io.RESOURCE_URL]=o(f[Io.URL]),{trustAs:a,getTrusted:u,valueOf:s}}]}function Nn(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&Jr<8)throw Po("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 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 r=be(Io);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=m),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,function(t){return r.getTrusted(e,t)})};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return o(Io,function(e,t){var n=Gr(t);r[Mn("parse_as_"+n)]=function(t){return i(e,t)},r[Mn("get_trusted_"+n)]=function(t){return a(e,t)},r[Mn("trust_as_"+n)]=function(t){return s(e,t)}}),r}]}function On(){this.$get=["$window","$document",function(e,t){var n={},r=e.nw&&e.nw.process,i=!r&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id),o=!i&&e.history&&e.history.pushState,a=d((/android (\d+)/.exec(Gr((e.navigator||{}).userAgent))||[])[1]),s=/Boxee/i.test((e.navigator||{}).userAgent),u=t[0]||{},l=u.body&&u.body.style,c=!1,f=!1;return l&&(c=!!("transition"in l||"webkitTransition"in l),f=!!("animation"in l||"webkitAnimation"in l)),{history:!(!o||a<4||s),hasEvent:function(e){if("input"===e&&Jr)return!1;if($(n[e])){var t=u.createElement("div");n[e]="on"+e in t}return n[e]},csp:gi(),transitions:c,animations:f,android:a}}]}function Pn(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,n,r,i,o){function a(s,u){function l(e){return u||(e=Lo("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,e.status,e.statusText),t(e)),i.reject(e)}a.totalPendingRequests++,_(s)&&!$(n.get(s))||(s=o.getTrustedResourceUrl(s));var c=r.defaults&&r.defaults.transformResponse;return fi(c)?c=c.filter(function(e){return e!==Nt}):c===Nt&&(c=null),r.get(s,f({cache:n,transformResponse:c},e)).finally(function(){a.totalPendingRequests--}).then(function(e){return n.put(s,e.data),e.data},l)}return a.totalPendingRequests=0,a}]}function In(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={};return r.findBindings=function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return o(r,function(e){var r=ui.element(e).data("$binding");r&&o(r,function(r){if(n){new RegExp("(^|\\s)"+pi(t)+"(\\s|\\||$)").test(r)&&i.push(e)}else-1!==r.indexOf(t)&&i.push(e)})}),i},r.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",a="["+r[i]+"model"+o+'"'+t+'"]',s=e.querySelectorAll(a);if(s.length)return s}},r.getLocation=function(){return n.url()},r.setLocation=function(t){t!==n.url()&&(n.url(t),e.$digest())},r.whenStable=function(e){t.notifyWhenNoOutstandingRequests(e)},r}]}function jn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function o(o,s,u){C(o)||(u=s,s=o,o=g);var l,c=B(arguments,3),f=b(u)&&!u,h=(f?r:n).defer(),d=h.promise;return l=t.defer(function(){try{h.resolve(o.apply(null,c))}catch(e){h.reject(e),i(e)}finally{delete a[d.$$timeoutId]}f||e.$apply()},s),d.$$timeoutId=l,a[l]=h,d}var a={};return o.cancel=function(e){return!!(e&&e.$$timeoutId in a)&&(a[e.$$timeoutId].promise.catch(g),a[e.$$timeoutId].reject("canceled"),delete a[e.$$timeoutId],t.defer.cancel(e.$$timeoutId))},o}]}function Ln(e){var t=e;return Jr&&(Ro.setAttribute("href",t),t=Ro.href),Ro.setAttribute("href",t),{href:Ro.href,protocol:Ro.protocol?Ro.protocol.replace(/:$/,""):"",host:Ro.host,search:Ro.search?Ro.search.replace(/^\?/,""):"",hash:Ro.hash?Ro.hash.replace(/^#/,""):"",hostname:Ro.hostname,port:Ro.port,pathname:"/"===Ro.pathname.charAt(0)?Ro.pathname:"/"+Ro.pathname}}function Rn(e){var t=_(e)?Ln(e):e;return t.protocol===Vo.protocol&&t.host===Vo.host}function Vn(){this.$get=v(e)}function Fn(e){function t(e){try{return e.cookie||""}catch(e){return""}}function n(e){try{return decodeURIComponent(e)}catch(t){return e}}var r=e[0]||{},i={},o="";return function(){var e,a,s,u,l,c=t(r);if(c!==o)for(o=c,e=o.split("; "),i={},s=0;s<e.length;s++)a=e[s],(u=a.indexOf("="))>0&&(l=n(a.substring(0,u)),$(i[l])&&(i[l]=n(a.substring(u+1))));return i}}function Yn(){this.$get=Fn}function Hn(e){function t(r,i){if(w(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",Wn),t("date",ur),t("filter",qn),t("json",lr),t("limitTo",cr),t("lowercase",Bo),t("number",Gn),t("orderBy",hr),t("uppercase",Wo)}function qn(){return function(e,n,r,o){if(!i(e)){if(null==e)return e;throw t("filter")("notarray","Expected array but received: {0}",e)}o=o||"$";var a,s,u=Bn(n);switch(u){case"function":a=n;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":a=zn(n,r,o,s);break;default:return e}return Array.prototype.filter.call(e,a)}}function zn(e,t,n,r){var i=w(e)&&n in e;return!0===t?t=z:C(t)||(t=function(e,t){return!$(e)&&(null===e||null===t?e===t:!(w(t)||w(e)&&!y(e))&&(e=Gr(""+e),t=Gr(""+t),-1!==e.indexOf(t)))}),function(o){return i&&!w(o)?Un(o,e[n],t,n,!1):Un(o,e,t,n,r)}}function Un(e,t,n,r,i,o){var a=Bn(e),s=Bn(t);if("string"===s&&"!"===t.charAt(0))return!Un(e,t.substring(1),n,r,i);if(fi(e))return e.some(function(e){return Un(e,t,n,r,i)});switch(a){case"object":var u;if(i){for(u in e)if(u.charAt&&"$"!==u.charAt(0)&&Un(e[u],t,n,r,!0))return!0;return!o&&Un(e,t,n,r,!1)}if("object"===s){for(u in t){var l=t[u];if(!C(l)&&!$(l)){var c=u===r;if(!Un(c?e:e[u],l,n,r,c,c))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function Bn(e){return null===e?"null":typeof e}function Wn(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return $(n)&&(n=t.CURRENCY_SYM),$(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:Zn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Gn(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:Zn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Xn(e){var t,n,r,i,o,a=0;for((n=e.indexOf(Yo))>-1&&(e=e.replace(Yo,"")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;e.charAt(r)===Ho;r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)===Ho;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>Fo&&(t=t.splice(0,Fo-1),a=n-1,n=1),{d:t,e:a,i:n}}function Kn(e,t,n,r){var i=e.d,o=i.length-e.i;t=$(t)?Math.min(Math.max(n,o),r):+t;var a=t+e.i,s=i[a];if(a>0){i.splice(Math.max(e.i,a));for(var u=a;u<i.length;u++)i[u]=0}else{o=Math.max(0,o),e.i=1,i.length=Math.max(1,a=t+1),i[0]=0;for(var l=1;l<a;l++)i[l]=0}if(s>=5)if(a-1<0){for(var c=0;c>a;c--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[a-1]++;for(;o<Math.max(0,t);o++)i.push(0);var f=i.reduceRight(function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)},0);f&&(i.unshift(f),e.i++)}function Zn(e,t,n,r,i){if(!_(e)&&!S(e)||isNaN(e))return"";var o,a=!isFinite(e),s=!1,u=Math.abs(e)+"",l="";if(a)l="∞";else{o=Xn(u),Kn(o,i,t.minFrac,t.maxFrac);var c=o.d,f=o.i,h=o.e,d=[];for(s=c.reduce(function(e,t){return e&&!t},!0);f<0;)c.unshift(0),f++;f>0?d=c.splice(f,c.length):(d=c,c=[0]);var p=[];for(c.length>=t.lgSize&&p.unshift(c.splice(-t.lgSize,c.length).join(""));c.length>t.gSize;)p.unshift(c.splice(-t.gSize,c.length).join(""));c.length&&p.unshift(c.join("")),l=p.join(n),d.length&&(l+=r+d.join("")),h&&(l+="e+"+h)}return e<0&&!s?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}function Jn(e,t,n,r){var i="";for((e<0||r&&e<=0)&&(r?e=1-e:(e=-e,i="-")),e=""+e;e.length<t;)e=Ho+e;return n&&(e=e.substr(e.length-t)),i+e}function Qn(e,t,n,r,i){return n=n||0,function(o){var a=o["get"+e]();return(n>0||a>-n)&&(a+=n),0===a&&-12===n&&(a=12),Jn(a,t,r,i)}}function er(e,t,n){return function(r,i){var o=r["get"+e]();return i[Xr((n?"STANDALONE":"")+(t?"SHORT":"")+e)][o]}}function tr(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=Jn(Math[r>0?"floor":"ceil"](r/60),2)+Jn(Math.abs(r%60),2)}function nr(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function rr(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function ir(e){return function(t){var n=nr(t.getFullYear()),r=rr(t),i=+r-+n;return Jn(1+Math.round(i/6048e5),e)}}function or(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function ar(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function sr(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function ur(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=d(t[9]+t[10]),o=d(t[9]+t[11])),a.call(r,d(t[1]),d(t[2])-1,d(t[3]));var u=d(t[4]||0)-i,l=d(t[5]||0)-o,c=d(t[6]||0),f=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,u,l,c,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,i){var a,s,u="",l=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,_(n)&&(n=Uo.test(n)?d(n):t(n)),S(n)&&(n=new Date(n)),!k(n)||!isFinite(n.getTime()))return n;for(;r;)s=zo.exec(r),s?(l=U(l,s,1),r=l.pop()):(l.push(r),r=null);var c=n.getTimezoneOffset();return i&&(c=Z(i,c),n=Q(n,i,!0)),o(l,function(t){a=qo[t],u+=a?a(n,e.DATETIME_FORMATS,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function lr(){return function(e,t){return $(t)&&(t=2),X(e,t)}}function cr(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):d(t),ci(t)?e:(S(e)&&(e=e.toString()),i(e)?(n=!n||isNaN(n)?0:d(n),n=n<0?Math.max(0,e.length+n):n,t>=0?fr(e,n,n+t):0===n?fr(e,t,e.length):fr(e,Math.max(0,n+t),n)):e)}}function fr(e,t,n){return _(e)?e.slice(t,n):ni.call(e,t,n)}function hr(e){function n(t){return t.map(function(t){var n=1,r=m;if(C(t))r=t;else if(_(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t),r.constant))){var i=r();r=function(e){return e[i]}}return{get:r,descending:n}})}function r(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function o(e){return C(e.valueOf)&&(e=e.valueOf(),r(e))?e:(y(e)&&(e=e.toString(),r(e)),e)}function a(e,t){var n=typeof e;return null===e?(n="string",e="null"):"object"===n&&(e=o(e)),{value:e,type:n,index:t}}function s(e,t){var n=0,r=e.type,i=t.type;if(r===i){var o=e.value,a=t.value;"string"===r?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===r&&(w(o)&&(o=e.index),w(a)&&(a=t.index)),o!==a&&(n=o<a?-1:1)}else n=r<i?-1:1;return n}return function(e,r,o,u){function l(e,t){return{value:e,tieBreaker:{value:t,type:"number",index:t},predicateValues:f.map(function(n){return a(n.get(e),t)})}}function c(e,t){for(var n=0,r=f.length;n<r;n++){var i=d(e.predicateValues[n],t.predicateValues[n]);if(i)return i*f[n].descending*h}return d(e.tieBreaker,t.tieBreaker)*h}if(null==e)return e;if(!i(e))throw t("orderBy")("notarray","Expected array but received: {0}",e);fi(r)||(r=[r]),0===r.length&&(r=["+"]);var f=n(r),h=o?-1:1,d=C(u)?u:s,p=Array.prototype.map.call(e,l);return p.sort(c),e=p.map(function(e){return e.value})}}function dr(e){return C(e)&&(e={link:e}),e.restrict=e.restrict||"AC",v(e)}function pr(e,t){e.$name=t}function gr(e,t,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(t.name||t.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Ko,this.$$element=e,this.$$animate=r,mr(this)}function mr(e){e.$$classCache={},e.$$classCache[Oa]=!(e.$$classCache[Na]=e.$$element.hasClass(Na))}function vr(e){function t(e,t,n,r){e[t]||(e[t]={}),a(e[t],n,r)}function n(e,t,n,r){e[t]&&s(e[t],n,r),yr(e[t])&&(e[t]=void 0)}function r(e,t,n){n&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!n&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function i(e,t,n){t=t?"-"+fe(t,"-"):"",r(e,Na+t,!0===n),r(e,Oa+t,!1===n)}var o=e.clazz,a=e.set,s=e.unset;o.prototype.$setValidity=function(e,o,u){$(o)?t(this,"$pending",e,u):n(this,"$pending",e,u),O(o)?o?(s(this.$error,e,u),a(this.$$success,e,u)):(a(this.$error,e,u),s(this.$$success,e,u)):(s(this.$error,e,u),s(this.$$success,e,u)),this.$pending?(r(this,Zo,!0),this.$valid=this.$invalid=void 0,i(this,"",null)):(r(this,Zo,!1),this.$valid=yr(this.$error),this.$invalid=!this.$valid,i(this,"",this.$valid));var l;l=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null),i(this,e,l),this.$$parentForm.$setValidity(e,l,this)}}function yr(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function $r(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function br(e,t,n,r,i,o){wr(e,t,n,r,i,o),$r(r)}function wr(e,t,n,r,i,o){var a=Gr(t[0].type);if(!i.android){var s=!1;t.on("compositionstart",function(){s=!0}),t.on("compositionend",function(){s=!1,l()})}var u,l=function(e){if(u&&(o.defer.cancel(u),u=null),!s){var i=t.val(),l=e&&e.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=di(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,l)}};if(i.hasEvent("input"))t.on("input",l);else{var c=function(e,t,n){u||(u=o.defer(function(){u=null,t&&t.value===n||l(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||c(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut",c)}t.on("change",l),fa[a]&&r.$$hasNativeValidators&&a===n.type&&t.on(ca,function(e){if(!u){var t=this[Ur],n=t.badInput,r=t.typeMismatch;u=o.defer(function(){u=null,t.badInput===n&&t.typeMismatch===r||l(e)})}}),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==e&&t.val(e)}}function xr(e,t){if(k(e))return e;if(_(e)){sa.lastIndex=0;var n=sa.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,u=0,l=nr(r),c=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),u=t.getMilliseconds()),new Date(r,0,l.getDate()+c,o,a,s,u)}}return NaN}function _r(e,t){return function(n,r){var i,a;if(k(n))return n;if(_(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),ta.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n))return i.shift(),a=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(i,function(e,n){n<t.length&&(a[t[n]]=+e)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return NaN}}function Sr(e,t,n,r){return function(i,o,a,s,u,l,c){function f(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function h(e){return b(e)&&!k(e)?n(e)||void 0:e}kr(i,o,a,s),wr(i,o,a,s,u,l);var d,p=s&&s.$options.getOption("timezone");if(s.$$parserName=e,s.$parsers.push(function(e){if(s.$isEmpty(e))return null;if(t.test(e)){var r=n(e,d);return p&&(r=Q(r,p)),r}}),s.$formatters.push(function(e){if(e&&!k(e))throw ja("datefmt","Expected `{0}` to be a date",e);return f(e)?(d=e,d&&p&&(d=Q(d,p,!0)),c("date")(e,r,p)):(d=null,"")}),b(a.min)||a.ngMin){var g;s.$validators.min=function(e){return!f(e)||$(g)||n(e)>=g},a.$observe("min",function(e){g=h(e),s.$validate()})}if(b(a.max)||a.ngMax){var m;s.$validators.max=function(e){return!f(e)||$(m)||n(e)<=m},a.$observe("max",function(e){m=h(e),s.$validate()})}}}function kr(e,t,n,r){var i=t[0];(r.$$hasNativeValidators=w(i.validity))&&r.$parsers.push(function(e){var n=t.prop(Ur)||{};return n.badInput||n.typeMismatch?void 0:e})}function Cr(e){e.$$parserName="number",e.$parsers.push(function(t){return e.$isEmpty(t)?null:ia.test(t)?parseFloat(t):void 0}),e.$formatters.push(function(t){if(!e.$isEmpty(t)){if(!S(t))throw ja("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})}function Er(e){return b(e)&&!S(e)&&(e=parseFloat(e)),ci(e)?void 0:e}function Mr(e){return(0|e)===e}function Tr(e){var t=e.toString(),n=t.indexOf(".");if(-1===n){if(-1<e&&e<1){var r=/e-(\d+)$/.exec(t);if(r)return Number(r[1])}return 0}return t.length-n-1}function Ar(e,t,n){var r=Number(e),i=!Mr(r),o=!Mr(t),a=!Mr(n);if(i||o||a){var s=i?Tr(r):0,u=o?Tr(t):0,l=a?Tr(n):0,c=Math.max(s,u,l),f=Math.pow(10,c);r*=f,t*=f,n*=f,
i&&(r=Math.round(r)),o&&(t=Math.round(t)),a&&(n=Math.round(n))}return(r-t)%n==0}function Dr(e,t,n,r,i,o){kr(e,t,n,r),Cr(r),wr(e,t,n,r,i,o);var a,s;if((b(n.min)||n.ngMin)&&(r.$validators.min=function(e){return r.$isEmpty(e)||$(a)||e>=a},n.$observe("min",function(e){a=Er(e),r.$validate()})),(b(n.max)||n.ngMax)&&(r.$validators.max=function(e){return r.$isEmpty(e)||$(s)||e<=s},n.$observe("max",function(e){s=Er(e),r.$validate()})),b(n.step)||n.ngStep){var u;r.$validators.step=function(e,t){return r.$isEmpty(t)||$(u)||Ar(t,a||0,u)},n.$observe("step",function(e){u=Er(e),r.$validate()})}}function Nr(e,t,n,r,i,o){function a(e,r){t.attr(e,n[e]),n.$observe(e,r)}function s(e){if(f=Er(e),!ci(r.$modelValue))if(c){var n=t.val();f>n&&(n=f,t.val(n)),r.$setViewValue(n)}else r.$validate()}function u(e){if(h=Er(e),!ci(r.$modelValue))if(c){var n=t.val();h<n&&(t.val(h),n=h<f?f:h),r.$setViewValue(n)}else r.$validate()}function l(e){d=Er(e),ci(r.$modelValue)||(c&&r.$viewValue!==t.val()?r.$setViewValue(t.val()):r.$validate())}kr(e,t,n,r),Cr(r),wr(e,t,n,r,i,o);var c=r.$$hasNativeValidators&&"range"===t[0].type,f=c?0:void 0,h=c?100:void 0,d=c?1:void 0,p=t[0].validity,g=b(n.min),m=b(n.max),v=b(n.step),y=r.$render;r.$render=c&&b(p.rangeUnderflow)&&b(p.rangeOverflow)?function(){y(),r.$setViewValue(t.val())}:y,g&&(r.$validators.min=c?function(){return!0}:function(e,t){return r.$isEmpty(t)||$(f)||t>=f},a("min",s)),m&&(r.$validators.max=c?function(){return!0}:function(e,t){return r.$isEmpty(t)||$(h)||t<=h},a("max",u)),v&&(r.$validators.step=c?function(){return!p.stepMismatch}:function(e,t){return r.$isEmpty(t)||$(d)||Ar(t,f||0,d)},a("step",l))}function Or(e,t,n,r,i,o){wr(e,t,n,r,i,o),$r(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||na.test(n)}}function Pr(e,t,n,r,i,o){wr(e,t,n,r,i,o),$r(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||ra.test(n)}}function Ir(e,t,n,r){var i=!n.ngTrim||"false"!==di(n.ngTrim);$(n.name)&&t.attr("name",u());var o=function(e){var o;t[0].checked&&(o=n.value,i&&(o=di(o)),r.$setViewValue(o,e&&e.type))};t.on("click",o),r.$render=function(){var e=n.value;i&&(e=di(e)),t[0].checked=e===r.$viewValue},n.$observe("value",r.$render)}function jr(e,t,n,r,i){var o;if(b(r)){if(o=e(r),!o.constant)throw ja("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}function Lr(e,t,n,r,i,o,a,s){var u=jr(s,e,"ngTrueValue",n.ngTrueValue,!0),l=jr(s,e,"ngFalseValue",n.ngFalseValue,!1),c=function(e){r.$setViewValue(t[0].checked,e&&e.type)};t.on("click",c),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push(function(e){return z(e,u)}),r.$parsers.push(function(e){return e?u:l})}function Rr(e,t){function n(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;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 r(e){return e&&e.split(" ")}function i(e){var t=e;return fi(e)?t=e.map(i).join(" "):w(e)&&(t=Object.keys(e).filter(function(t){return e[t]}).join(" ")),t}e="ngClass"+e;var a;return["$parse",function(s){return{restrict:"AC",link:function(u,l,c){function f(e){e=p(r(e),1),c.$addClass(e)}function h(e){e=p(r(e),-1),c.$removeClass(e)}function d(e,t){var i=r(e),o=r(t),a=n(i,o),s=n(o,i),u=p(a,-1),l=p(s,1);c.$addClass(l),c.$removeClass(u)}function p(e,t){var n=[];return o(e,function(e){(t>0||y[e])&&(y[e]=(y[e]||0)+t,y[e]===+(t>0)&&n.push(e))}),n.join(" ")}function g(e){e===t?f(v):h(v),$=e}function m(e){_(e)||(e=i(e)),$===t&&d(v,e),v=e}var v,y=l.data("$classCounts"),$=!0;y||(y=ve(),l.data("$classCounts",y)),"ngClass"!==e&&(a||(a=s("$index",function(e){return 1&e})),u.$watch(a,g)),u.$watch(s(c[e],i),m)}}}]}function Vr(e,t,n,r,i,o,a,s,u){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=u(n.name||"",!1)(e),this.$$parentForm=Ko,this.$options=La,this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$currentValidationRunId=0,Object.defineProperty(this,"$$scope",{value:e}),this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=a,this.$$parse=i,this.$$q=s,this.$$exceptionHandler=t,mr(this),Fr(this)}function Fr(e){e.$$scope.$watch(function(t){var n=e.$$ngModelGet(t);if(n!==e.$modelValue&&(e.$modelValue===e.$modelValue||n===n)){e.$modelValue=e.$$rawModelValue=n,e.$$parserValid=void 0;for(var r=e.$formatters,i=r.length,o=n;i--;)o=r[i](o);e.$viewValue!==o&&(e.$$updateEmptyClasses(o),e.$viewValue=e.$$lastCommittedViewValue=o,e.$render(),e.$$runValidators(e.$modelValue,e.$viewValue,g))}return n})}function Yr(e){this.$$options=e}function Hr(e,t){o(t,function(t,n){b(e[n])||(e[n]=t)})}function qr(e,t){e.prop("selected",t),e.attr("selected",t)}var zr=/^\/(.+)\/([a-z]*)$/,Ur="validity",Br=Object.prototype.hasOwnProperty,Wr={objectMaxDepth:5},Gr=function(e){return _(e)?e.toLowerCase():e},Xr=function(e){return _(e)?e.toUpperCase():e},Kr=function(e){return _(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},Zr=function(e){return _(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e};"i"!=="I".toLowerCase()&&(Gr=Kr,Xr=Zr);var Jr,Qr,ei,ti,ni=[].slice,ri=[].splice,ii=[].push,oi=Object.prototype.toString,ai=Object.getPrototypeOf,si=t("ng"),ui=e.angular||(e.angular={}),li=0;Jr=e.document.documentMode;var ci=Number.isNaN||function(e){return e!==e};g.$inject=[],m.$inject=[];var fi=Array.isArray,hi=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,di=function(e){return _(e)?e.trim():e},pi=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},gi=function(){if(!b(gi.rules)){var t=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");gi.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else gi.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return gi.rules},mi=function(){if(b(mi.name_))return mi.name_;var t,n,r,i,o=yi.length;for(n=0;n<o;++n)if(r=yi[n],t=e.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return mi.name_=i},vi=/:/g,yi=["ng-","data-ng-","ng:","x-ng-"],$i=function(t){var n=t.currentScript;if(!n)return!0;if(!(n instanceof e.HTMLScriptElement||n instanceof e.SVGScriptElement))return!1;var r=n.attributes;return[r.getNamedItem("src"),r.getNamedItem("href"),r.getNamedItem("xlink:href")].every(function(e){if(!e)return!0;if(!e.value)return!1;var n=t.createElement("a");if(n.href=e.value,t.location.origin===n.origin)return!0;switch(n.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}})}(e.document),bi=/[A-Z]/g,wi=!1,xi=1,_i=3,Si=8,ki=9,Ci=11,Ei={full:"1.6.4",major:1,minor:6,dot:4,codeName:"phenomenal-footnote"};Oe.expando="ng339";var Mi=Oe.cache={},Ti=1;Oe._data=function(e){return this.cache[e[this.expando]]||{}};var Ai=/-([a-z])/g,Di=/^-ms-/,Ni={mouseleave:"mouseout",mouseenter:"mouseover"},Oi=t("jqLite"),Pi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ii=/<|&#?\w+;/,ji=/<([\w:-]+)/,Li=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ri={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,"",""]};Ri.optgroup=Ri.option,Ri.tbody=Ri.tfoot=Ri.colgroup=Ri.caption=Ri.thead,Ri.th=Ri.td;var Vi=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},Fi=Oe.prototype={ready:Xe,toString:function(){var e=[];return o(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return Qr(e>=0?this[e]:this[this.length+e])},length:0,push:ii,sort:[].sort,splice:[].splice},Yi={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){Yi[Gr(e)]=e});var Hi={};o("input,select,option,textarea,button,form,details".split(","),function(e){Hi[e]=!0});var qi={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};o({data:Ve,removeData:Le,hasData:Te,cleanData:function(e){for(var t=0,n=e.length;t<n;t++)Le(e[t])}},function(e,t){Oe[t]=e}),o({data:Ve,inheritedData:Ue,scope:function(e){return Qr.data(e,"$scope")||Ue(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return Qr.data(e,"$isolateScope")||Qr.data(e,"$isolateScopeNoTemplate")},controller:ze,injector:function(e){return Ue(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:Fe,css:function(e,t,n){if(t=Se(t),!b(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var r,i=e.nodeType;if(i!==_i&&2!==i&&i!==Si&&e.getAttribute){var o=Gr(t),a=Yi[o];if(!b(n))return r=e.getAttribute(t),a&&null!==r&&(r=o),null===r?void 0:r;null===n||!1===n&&a?e.removeAttribute(t):e.setAttribute(t,a?o:n)}},prop:function(e,t,n){if(!b(n))return e[t];e[t]=n},text:function(){function e(e,t){if($(t)){var n=e.nodeType;return n===xi||n===_i?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if($(t)){if(e.multiple&&"select"===V(e)){var n=[];return o(e.options,function(e){e.selected&&n.push(e.value||e.text)}),n}return e.value}e.value=t},html:function(e,t){if($(t))return e.innerHTML;Ie(e,!0),e.innerHTML=t},empty:Be},function(e,t){Oe.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==Be&&$(2===e.length&&e!==Fe&&e!==ze?t:n)){if(w(t)){for(r=0;r<o;r++)if(e===Ve)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var a=e.$dv,s=$(a)?Math.min(o,1):o,u=0;u<s;u++){var l=e(this[u],t,n);a=a?a+l:l}return a}for(r=0;r<o;r++)e(this[r],t,n);return this}}),o({removeData:Le,on:function(e,t,n,r){if(b(r))throw Oi("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(Me(e)){var i=Re(e,!0),o=i.events,a=i.handle;a||(a=i.handle=Je(e,o));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],u=s.length,l=function(t,r,i){var s=o[t];s||(s=o[t]=[],s.specialHandlerWrapper=r,"$destroy"===t||i||e.addEventListener(t,a)),s.push(n)};u--;)t=s[u],Ni[t]?(l(Ni[t],et),l(t,void 0,!0)):l(t)}},off:je,one:function(e,t,n){e=Qr(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;Ie(e),o(new Oe(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){e.nodeType===xi&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===xi||n===Ci){t=new Oe(t);for(var r=0,i=t.length;r<i;r++){var o=t[r];e.appendChild(o)}}},prepend:function(e,t){if(e.nodeType===xi){var n=e.firstChild;o(new Oe(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){Ne(e,Qr(t).eq(0).clone()[0])},remove:We,detach:function(e){We(e,!0)},after:function(e,t){var n=e,r=e.parentNode;if(r){t=new Oe(t);for(var i=0,o=t.length;i<o;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}}},addClass:He,removeClass:Ye,toggleClass:function(e,t,n){t&&o(t.split(" "),function(t){var r=n;$(r)&&(r=!Fe(e,t)),(r?He:Ye)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==Ci?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:Pe,triggerHandler:function(e,t,n){var r,i,a,s=t.type||t,u=Re(e),l=u&&u.events,c=l&&l[s];c&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:g,type:s,target:e},t.type&&(r=f(r,t)),i=be(c),a=n?[r].concat(n):[r],o(i,function(t){r.isImmediatePropagationStopped()||t.apply(e,a)}))}},function(e,t){Oe.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;o<a;o++)$(i)?(i=e(this[o],t,n,r),b(i)&&(i=Qr(i))):qe(i,e(this[o],t,n,r));return b(i)?i:this}}),Oe.prototype.bind=Oe.prototype.on,Oe.prototype.unbind=Oe.prototype.off;var zi=Object.create(null);rt.prototype={_idx:function(e){return e===this._lastKey?this._lastIndex:(this._lastKey=e,this._lastIndex=this._keys.indexOf(e),this._lastIndex)},_transformKey:function(e){return ci(e)?zi:e},get:function(e){e=this._transformKey(e);var t=this._idx(e);if(-1!==t)return this._values[t]},set:function(e,t){e=this._transformKey(e);var n=this._idx(e);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=e,this._values[n]=t},delete:function(e){e=this._transformKey(e);var t=this._idx(e);return-1!==t&&(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var Ui=rt,Bi=[function(){this.$get=[function(){return Ui}]}],Wi=/^([^(]+?)=>/,Gi=/^[^(]*\(\s*([^)]*)\)/m,Xi=/,/,Ki=/^\s*(_?)(\S+?)\1\s*$/,Zi=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ji=t("$injector");ut.$$annotate=st;var Qi=t("$animate"),eo=1,to=function(){this.$get=g},no=function(){var e=new Ui,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(e,t,n){var r=!1;return t&&(t=_(t)?t.split(" "):fi(t)?t:[],o(t,function(t){t&&(r=!0,e[t]=n)})),r}function a(){o(t,function(t){var n=e.get(t);if(n){var r=ht(t.attr("class")),i="",a="";o(n,function(e,t){e!==!!r[t]&&(e?i+=(i.length?" ":"")+t:a+=(a.length?" ":"")+t)}),o(t,function(e){i&&He(e,i),a&&Ye(e,a)}),e.delete(t)}}),t.length=0}function s(n,o,s){var u=e.get(n)||{},l=i(u,o,!0),c=i(u,s,!1);(l||c)&&(e.set(n,u),t.push(n),1===t.length&&r.$$postDigest(a))}return{enabled:g,on:g,off:g,pin:g,push:function(e,t,r,i){i&&i(),r=r||{},r.from&&e.css(r.from),r.to&&e.css(r.to),(r.addClass||r.removeClass)&&s(e,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},ro=["$provide",function(e){var t=this,n=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Qi("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.classNameFilter=function(e){if(1===arguments.length&&(n=e instanceof RegExp?e:null)){if(new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]").test(n.toString()))throw n=null,Qi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate")}return n},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=ft(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.end&&e.end()},enter:function(n,r,i,o){return r=r&&Qr(r),i=i&&Qr(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",dt(o))},move:function(n,r,i,o){return r=r&&Qr(r),i=i&&Qr(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",dt(o))},leave:function(t,n){return e.push(t,"leave",dt(n),function(){t.remove()})},addClass:function(t,n,r){return r=dt(r),r.addClass=ct(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=dt(r),r.removeClass=ct(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=dt(i),i.addClass=ct(i.addClass,n),i.removeClass=ct(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return o=dt(o),o.from=o.from?f(o.from,n):n,o.to=o.to?f(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=ct(o.tempClasses,i),e.push(t,"animate",o)}}}]}],io=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),n.length>1||e(function(){for(var e=0;e<n.length;e++)n[e]();n=[]})}var n=[];return function(){var e=!1;return t(function(){e=!0}),function(n){e?n():t(n)}}}]},oo=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,n,r,i){function a(e){this.setHost(e);var t=n(),o=function(e){i(e,0,!1)};this._doneCallbacks=[],this._tick=function(e){r()?o(e):t(e)},this._state=0}return a.chain=function(e,t){function n(){if(r===e.length)return void t(!0);e[r](function(e){if(!1===e)return void t(!1);r++,n()})}var r=0;n()},a.all=function(e,t){function n(n){i=i&&n,++r===e.length&&t(i)}var r=0,i=!0;o(e,function(e){e.done(n)})},a.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:g,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){!1===t?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(e)}))},_resolve:function(e){2!==this._state&&(o(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},a}]},ao=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){function i(){return e(function(){o(),s||u.complete(),s=!0}),u}function o(){a.addClass&&(t.addClass(a.addClass),a.addClass=null),a.removeClass&&(t.removeClass(a.removeClass),a.removeClass=null),a.to&&(t.css(a.to),a.to=null)}var a=r||{};a.$$prepared||(a=H(a)),a.cleanupStyles&&(a.from=a.to=null),a.from&&(t.css(a.from),a.from=null);var s,u=new n;return{start:i,end:i}}}]},so=t("$compile"),uo=new yt;$t.$inject=["$provide","$$sanitizeUriProvider"],bt.prototype.isFirstChange=function(){return this.previousValue===uo};var lo=/^((?:x|data)[:\-_])/i,co=/[:\-_]+(.)/g,fo=t("$controller"),ho=/^(\S+)(\s+as\s+([\w$]+))?$/,po=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof Qr&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},go="application/json",mo={"Content-Type":go+";charset=utf-8"},vo=/^\[|^\{(?!\{)/,yo={"[":/]$/,"{":/}$/},$o=/^\)]\}',?\n/,bo=t("$http"),wo=ui.$interpolateMinErr=t("$interpolate");wo.throwNoconcat=function(e){throw wo("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",e)},wo.interr=function(e,t){return wo("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var xo=function(){this.$get=function(){function e(e){var t=function(e){t.data=e,t.called=!0};return t.id=e,t}var t=ui.callbacks,n={};return{createCallback:function(r){var i="_"+(t.$$counter++).toString(36),o="angular.callbacks."+i,a=e(i);return n[o]=t[i]=a,o},wasCalled:function(e){return n[e].called},getResponse:function(e){return n[e].data},removeCallback:function(e){var r=n[e];delete t[r.id],delete n[e]}}}},_o=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,So={http:80,https:443,ftp:21},ko=t("$location"),Co=/^\s*[\\\/]{2,}/,Eo={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:nn("$$absUrl"),url:function(e){if($(e))return this.$$url;var t=_o.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:nn("$$protocol"),host:nn("$$host"),port:nn("$$port"),path:rn("$$path",function(e){return e=null!==e?e.toString():"","/"===e.charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(_(e)||S(e))e=e.toString(),this.$$search=ne(e);else{if(!w(e))throw ko("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=H(e,{}),o(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:$(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:rn("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};o([tn,en,Qt],function(e){e.prototype=Object.create(Eo),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==Qt||!this.$$html5)throw ko("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=$(t)?null:t,this.$$urlUpdatedByLocation=!0,this}});var Mo=t("$parse"),To={}.constructor.prototype.valueOf,Ao=ve();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){Ao[e]=!0});var Do={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},No=function(e){this.options=e};No.prototype={constructor:No,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),r=n+this.peek(2),i=Ao[t],o=Ao[n],a=Ao[r];if(i||o||a){var s=a?r:o?n:t;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),r=t.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=b(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw Mo("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=Gr(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++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},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{n+=Do[o]||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var Oo=function(e,t){this.lexer=e,this.options=t};Oo.Program="Program",Oo.ExpressionStatement="ExpressionStatement",Oo.AssignmentExpression="AssignmentExpression",Oo.ConditionalExpression="ConditionalExpression",Oo.LogicalExpression="LogicalExpression",Oo.BinaryExpression="BinaryExpression",Oo.UnaryExpression="UnaryExpression",Oo.CallExpression="CallExpression",Oo.MemberExpression="MemberExpression",Oo.Identifier="Identifier",Oo.Literal="Literal",Oo.ArrayExpression="ArrayExpression",Oo.Property="Property",Oo.ObjectExpression="ObjectExpression",Oo.ThisExpression="ThisExpression",Oo.LocalsExpression="LocalsExpression",Oo.NGValueParameter="NGValueParameter",Oo.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:Oo.Program,body:e}},expressionStatement:function(){return{type:Oo.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!dn(e))throw Mo("lval","Trying to assign a value to a non l-value");e={type:Oo.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:Oo.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:Oo.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:Oo.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:Oo.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:Oo.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:Oo.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:Oo.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:Oo.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=H(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:Oo.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:Oo.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:Oo.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:Oo.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:Oo.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do{e.push(this.filterChain())}while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:Oo.Identifier,name:e.text}},constant:function(){return{type:Oo.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:Oo.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Oo.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:Oo.ObjectExpression,properties:t}},throwError:function(e,t){throw Mo("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))},consume:function(e){if(0===this.tokens.length)throw Mo("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw Mo("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:Oo.ThisExpression},$locals:{type:Oo.LocalsExpression}}},vn.prototype={compile:function(e){var t=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},fn(e,t.$filter);var n,r="";if(this.stage="assign",n=pn(e)){this.state.computing="assign";var i=this.nextId();this.recurse(n,i),this.return_(i),r="fn.assign="+this.generateFunction("assign","s,v,l")}var a=hn(e.body);t.stage="inputs",o(a,function(e,n){var r="fn"+n;t.state[r]={vars:[],body:[],own:{}},t.state.computing=r;var i=t.nextId();t.recurse(e,i),t.return_(i),t.state.inputs.push(r),e.watchId=n}),this.state.computing="fn",this.stage="main",this.recurse(e);var s='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",u=new Function("$filter","getStringValue","ifDefined","plus",s)(this.$filter,sn,un,ln);return this.state=this.stage=void 0,u},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return o(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return o(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},
recurse:function(e,t,n,r,i,a){var s,u,l,c,f,h=this;if(r=r||g,!a&&b(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,r,i,!0));switch(e.type){case Oo.Program:o(e.body,function(t,n){h.recurse(t.expression,void 0,void 0,function(e){u=e}),n!==e.body.length-1?h.current().body.push(u,";"):h.return_(u)});break;case Oo.Literal:c=this.escape(e.value),this.assign(t,c),r(t||c);break;case Oo.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){u=e}),c=e.operator+"("+this.ifDefined(u,0)+")",this.assign(t,c),r(c);break;case Oo.BinaryExpression:this.recurse(e.left,void 0,void 0,function(e){s=e}),this.recurse(e.right,void 0,void 0,function(e){u=e}),c="+"===e.operator?this.plus(s,u):"-"===e.operator?this.ifDefined(s,0)+e.operator+this.ifDefined(u,0):"("+s+")"+e.operator+"("+u+")",this.assign(t,c),r(c);break;case Oo.LogicalExpression:t=t||this.nextId(),h.recurse(e.left,t),h.if_("&&"===e.operator?t:h.not(t),h.lazyRecurse(e.right,t)),r(t);break;case Oo.ConditionalExpression:t=t||this.nextId(),h.recurse(e.test,t),h.if_(t,h.lazyRecurse(e.alternate,t),h.lazyRecurse(e.consequent,t)),r(t);break;case Oo.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",e.name)),function(){h.if_("inputs"===h.stage||"s",function(){i&&1!==i&&h.if_(h.isNull(h.nonComputedMember("s",e.name)),h.lazyAssign(h.nonComputedMember("s",e.name),"{}")),h.assign(t,h.nonComputedMember("s",e.name))})},t&&h.lazyAssign(t,h.nonComputedMember("l",e.name))),r(t);break;case Oo.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),h.recurse(e.object,s,void 0,function(){h.if_(h.notNull(s),function(){e.computed?(u=h.nextId(),h.recurse(e.property,u),h.getStringValue(u),i&&1!==i&&h.if_(h.not(h.computedMember(s,u)),h.lazyAssign(h.computedMember(s,u),"{}")),c=h.computedMember(s,u),h.assign(t,c),n&&(n.computed=!0,n.name=u)):(i&&1!==i&&h.if_(h.isNull(h.nonComputedMember(s,e.property.name)),h.lazyAssign(h.nonComputedMember(s,e.property.name),"{}")),c=h.nonComputedMember(s,e.property.name),h.assign(t,c),n&&(n.computed=!1,n.name=e.property.name))},function(){h.assign(t,"undefined")}),r(t)},!!i);break;case Oo.CallExpression:t=t||this.nextId(),e.filter?(u=h.filter(e.callee.name),l=[],o(e.arguments,function(e){var t=h.nextId();h.recurse(e,t),l.push(t)}),c=u+"("+l.join(",")+")",h.assign(t,c),r(t)):(u=h.nextId(),s={},l=[],h.recurse(e.callee,u,s,function(){h.if_(h.notNull(u),function(){o(e.arguments,function(t){h.recurse(t,e.constant?void 0:h.nextId(),void 0,function(e){l.push(e)})}),c=s.name?h.member(s.context,s.name,s.computed)+"("+l.join(",")+")":u+"("+l.join(",")+")",h.assign(t,c)},function(){h.assign(t,"undefined")}),r(t)}));break;case Oo.AssignmentExpression:u=this.nextId(),s={},this.recurse(e.left,void 0,s,function(){h.if_(h.notNull(s.context),function(){h.recurse(e.right,u),c=h.member(s.context,s.name,s.computed)+e.operator+u,h.assign(t,c),r(t||c)})},1);break;case Oo.ArrayExpression:l=[],o(e.elements,function(t){h.recurse(t,e.constant?void 0:h.nextId(),void 0,function(e){l.push(e)})}),c="["+l.join(",")+"]",this.assign(t,c),r(t||c);break;case Oo.ObjectExpression:l=[],f=!1,o(e.properties,function(e){e.computed&&(f=!0)}),f?(t=t||this.nextId(),this.assign(t,"{}"),o(e.properties,function(e){e.computed?(s=h.nextId(),h.recurse(e.key,s)):s=e.key.type===Oo.Identifier?e.key.name:""+e.key.value,u=h.nextId(),h.recurse(e.value,u),h.assign(h.member(t,s,e.computed),u)})):(o(e.properties,function(t){h.recurse(t.value,e.constant?void 0:h.nextId(),void 0,function(e){l.push(h.escape(t.key.type===Oo.Identifier?t.key.name:""+t.key.value)+":"+e)})}),c="{"+l.join(",")+"}",this.assign(t,c)),r(t||c);break;case Oo.ThisExpression:this.assign(t,"s"),r(t||"s");break;case Oo.LocalsExpression:this.assign(t,"l"),r(t||"l");break;case Oo.NGValueParameter:this.assign(t,"v"),r(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(!0===e)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var n=/^[$_a-zA-Z][$_a-zA-Z0-9]*$/,r=/[^$_a-zA-Z0-9]/g;return n.test(t)?e+"."+t:e+'["'+t.replace(r,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(_(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(S(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw Mo("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},yn.prototype={compile:function(e){var t=this;fn(e,t.$filter);var n,r;(n=pn(e))&&(r=this.recurse(n));var i,a=hn(e.body);a&&(i=[],o(a,function(e,n){var r=t.recurse(e);e.input=r,i.push(r),e.watchId=n}));var s=[];o(e.body,function(e){s.push(t.recurse(e.expression))});var u=0===e.body.length?g:1===e.body.length?s[0]:function(e,t){var n;return o(s,function(r){n=r(e,t)}),n};return r&&(u.assign=function(e,t,n){return r(e,n,t)}),i&&(u.inputs=i),u},recurse:function(e,t,n){var r,i,a,s=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case Oo.Literal:return this.value(e.value,t);case Oo.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case Oo.BinaryExpression:case Oo.LogicalExpression:return r=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](r,i,t);case Oo.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case Oo.Identifier:return s.identifier(e.name,t,n);case Oo.MemberExpression:return r=this.recurse(e.object,!1,!!n),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(r,i,t,n):this.nonComputedMember(r,i,t,n);case Oo.CallExpression:return a=[],o(e.arguments,function(e){a.push(s.recurse(e))}),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(e,n,r,o){for(var s=[],u=0;u<a.length;++u)s.push(a[u](e,n,r,o));var l=i.apply(void 0,s,o);return t?{context:void 0,name:void 0,value:l}:l}:function(e,n,r,o){var s,u=i(e,n,r,o);if(null!=u.value){for(var l=[],c=0;c<a.length;++c)l.push(a[c](e,n,r,o));s=u.value.apply(u.context,l)}return t?{value:s}:s};case Oo.AssignmentExpression:return r=this.recurse(e.left,!0,1),i=this.recurse(e.right),function(e,n,o,a){var s=r(e,n,o,a),u=i(e,n,o,a);return s.context[s.name]=u,t?{value:u}:u};case Oo.ArrayExpression:return a=[],o(e.elements,function(e){a.push(s.recurse(e))}),function(e,n,r,i){for(var o=[],s=0;s<a.length;++s)o.push(a[s](e,n,r,i));return t?{value:o}:o};case Oo.ObjectExpression:return a=[],o(e.properties,function(e){e.computed?a.push({key:s.recurse(e.key),computed:!0,value:s.recurse(e.value)}):a.push({key:e.key.type===Oo.Identifier?e.key.name:""+e.key.value,computed:!1,value:s.recurse(e.value)})}),function(e,n,r,i){for(var o={},s=0;s<a.length;++s)a[s].computed?o[a[s].key(e,n,r,i)]=a[s].value(e,n,r,i):o[a[s].key]=a[s].value(e,n,r,i);return t?{value:o}:o};case Oo.ThisExpression:return function(e){return t?{value:e}:e};case Oo.LocalsExpression:return function(e,n){return t?{value:n}:n};case Oo.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=b(a)?+a:0,t?{value:a}:a}},"unary-":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=b(a)?-a:-0,t?{value:a}:a}},"unary!":function(e,t){return function(n,r,i,o){var a=!e(n,r,i,o);return t?{value:a}:a}},"binary+":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),l=ln(s,u);return n?{value:l}:l}},"binary-":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),l=(b(s)?s:0)-(b(u)?u:0);return n?{value:l}:l}},"binary*":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)*t(r,i,o,a);return n?{value:s}:s}},"binary/":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)/t(r,i,o,a);return n?{value:s}:s}},"binary%":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)%t(r,i,o,a);return n?{value:s}:s}},"binary===":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)===t(r,i,o,a);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!==t(r,i,o,a);return n?{value:s}:s}},"binary==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)==t(r,i,o,a);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!=t(r,i,o,a);return n?{value:s}:s}},"binary<":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<t(r,i,o,a);return n?{value:s}:s}},"binary>":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>t(r,i,o,a);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<=t(r,i,o,a);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>=t(r,i,o,a);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)&&t(r,i,o,a);return n?{value:s}:s}},"binary||":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)||t(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s);return r?{value:u}:u}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n){return function(r,i,o,a){var s=i&&e in i?i:r;n&&1!==n&&s&&null==s[e]&&(s[e]={});var u=s?s[e]:void 0;return t?{context:s,name:e,value:u}:u}},computedMember:function(e,t,n,r){return function(i,o,a,s){var u,l,c=e(i,o,a,s);return null!=c&&(u=t(i,o,a,s),u=sn(u),r&&1!==r&&c&&!c[u]&&(c[u]={}),l=c[u]),n?{context:c,name:u,value:l}:l}},nonComputedMember:function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s);r&&1!==r&&u&&null==u[t]&&(u[t]={});var l=null!=u?u[t]:void 0;return n?{context:u,name:t,value:l}:l}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}},$n.prototype={constructor:$n,parse:function(e){var t=this.ast.ast(e),n=this.astCompiler.compile(t);return n.literal=gn(t),n.constant=mn(t),n}};var Po=t("$sce"),Io={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},jo=/_([a-z])/g,Lo=t("$compile"),Ro=e.document.createElement("a"),Vo=Ln(e.location.href);Fn.$inject=["$document"],Hn.$inject=["$provide"];var Fo=22,Yo=".",Ho="0";Wn.$inject=["$locale"],Gn.$inject=["$locale"];var qo={yyyy:Qn("FullYear",4,0,!1,!0),yy:Qn("FullYear",2,0,!0,!0),y:Qn("FullYear",1,0,!1,!0),MMMM:er("Month"),MMM:er("Month",!0),MM:Qn("Month",2,1),M:Qn("Month",1,1),LLLL:er("Month",!1,!0),dd:Qn("Date",2),d:Qn("Date",1),HH:Qn("Hours",2),H:Qn("Hours",1),hh:Qn("Hours",2,-12),h:Qn("Hours",1,-12),mm:Qn("Minutes",2),m:Qn("Minutes",1),ss:Qn("Seconds",2),s:Qn("Seconds",1),sss:Qn("Milliseconds",3),EEEE:er("Day"),EEE:er("Day",!0),a:or,Z:tr,ww:ir(2),w:ir(1),G:ar,GG:ar,GGG:ar,GGGG:sr},zo=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,Uo=/^-?\d+$/;ur.$inject=["$locale"];var Bo=v(Gr),Wo=v(Xr);hr.$inject=["$parse"];var Go=v({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===oi.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Xo={};o(Yi,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!==e){var r=wt("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,t,i)}),Xo[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(qi,function(e,t){Xo[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(zr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),o(["src","srcset","href"],function(e){var t=wt("ng-"+e);Xo[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===oi.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){if(!t)return void("href"===e&&i.$set(a,null));i.$set(a,t),Jr&&o&&r.prop(o,i[a])})}}}});var Ko={$addControl:g,$$renameControl:pr,$removeControl:g,$setValidity:g,$setDirty:g,$setPristine:g,$setSubmitted:g},Zo="ng-pending";gr.$inject=["$element","$attrs","$scope","$animate","$interpolate"],gr.prototype={$rollbackViewValue:function(){o(this.$$controls,function(e){e.$rollbackViewValue()})},$commitViewValue:function(){o(this.$$controls,function(e){e.$commitViewValue()})},$addControl:function(e){pe(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],o(this.$pending,function(t,n){this.$setValidity(n,null,e)},this),o(this.$error,function(t,n){this.$setValidity(n,null,e)},this),o(this.$$success,function(t,n){this.$setValidity(n,null,e)},this),Y(this.$$controls,e),e.$$parentForm=Ko},$setDirty:function(){this.$$animate.removeClass(this.$$element,Pa),this.$$animate.addClass(this.$$element,Ia),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Pa,Ia+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,o(this.$$controls,function(e){e.$setPristine()})},$setUntouched:function(){o(this.$$controls,function(e){e.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,this.$$parentForm.$setSubmitted()}},vr({clazz:gr,set:function(e,t,n){var r=e[t];if(r){-1===r.indexOf(n)&&r.push(n)}else e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(Y(r,n),0===r.length&&delete e[t])}});var Jo=function(e){return["$timeout","$parse",function(t,n){function r(e){return""===e?n('this[""]').assign:n(e).assign||g}return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:gr,compile:function(n,i){n.addClass(Pa).addClass(Na);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,a){var s=a[0];if(!("action"in i)){var u=function(t){e.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),t.preventDefault()};n[0].addEventListener("submit",u),n.on("$destroy",function(){t(function(){n[0].removeEventListener("submit",u)},0,!1)})}(a[1]||s.$$parentForm).$addControl(s);var l=o?r(s.$name):g;o&&(l(e,s),i.$observe(o,function(t){s.$name!==t&&(l(e,void 0),s.$$parentForm.$$renameControl(s,t),(l=r(s.$name))(e,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),l(e,void 0),f(s,Ko)})}}}}}]},Qo=Jo(),ea=Jo(!0),ta=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,na=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,ra=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,ia=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,oa=/^(\d{4,})-(\d{2})-(\d{2})$/,aa=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,sa=/^(\d{4,})-W(\d\d)$/,ua=/^(\d{4,})-(\d\d)$/,la=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ca="keydown wheel mousedown",fa=ve();o("date,datetime-local,month,time,week".split(","),function(e){fa[e]=!0});var ha={text:br,date:Sr("date",oa,_r(oa,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Sr("datetimelocal",aa,_r(aa,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:Sr("time",la,_r(la,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Sr("week",sa,xr,"yyyy-Www"),month:Sr("month",ua,_r(ua,["yyyy","MM"]),"yyyy-MM"),number:Dr,url:Or,email:Pr,radio:Ir,range:Nr,checkbox:Lr,hidden:g,button:g,submit:g,reset:g,file:g},da=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(ha[Gr(a.type)]||ha.text)(i,o,a,s[0],t,e,n,r)}}}}],pa=/^(true|false|\d+)$/,ga=function(){function e(e,t,n){var r=b(n)?n:9===Jr?"":null;e.prop("value",r),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,n){return pa.test(n.ngValue)?function(t,n,r){e(n,r,t.$eval(r.ngValue))}:function(t,n,r){t.$watch(r.ngValue,function(t){e(n,r,t)})}}}},ma=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,function(e){n.textContent=ye(e)})}}}}],va=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var o=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(e){r.textContent=$(e)?"":e})}}}}],ya=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,function(t){return e.valueOf(t)});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,function(){var n=o(t);r.html(e.getTrustedHtml(n)||"")})}}}}],$a=v({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),ba=Rr("",!0),wa=Rr("Odd",0),xa=Rr("Even",1),_a=dr({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),Sa=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ka={},Ca={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=wt("ng-"+e);ka[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[t]);return function(t,n){n.on(e,function(n){var i=function(){a(t,{$event:n})};Ca[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var Ea=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,l;n.$watch(i.ngIf,function(n){n?u||a(function(n,o){u=o,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),s={clone:n},e.enter(n,r.parent(),r)}):(l&&(l.remove(),l=null),u&&(u.$destroy(),u=null),s&&(l=me(s.clone),e.leave(l).done(function(e){!1!==e&&(l=null)}),s=null))})}}}],Ma=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ui.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,l,c){var f,h,d,p=0,g=function(){h&&(h.remove(),h=null),f&&(f.$destroy(),f=null),d&&(n.leave(d).done(function(e){!1!==e&&(h=null)}),h=d,d=null)};r.$watch(o,function(o){var u=function(e){!1===e||!b(s)||s&&!r.$eval(s)||t()},h=++p;o?(e(o,!0).then(function(e){if(!r.$$destroyed&&h===p){var t=r.$new();l.template=e;var s=c(t,function(e){g(),n.enter(e,null,i).done(u)});f=t,d=s,f.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||h===p&&(g(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(g(),l.template=null)})}}}}],Ta=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(oi.call(r[0]).match(/SVG/))return r.empty(),void t(Ae(o.template,e.document).childNodes)(n,function(e){r.append(e)},{futureParentElement:r});r.html(o.template),t(r.contents())(n)}}}],Aa=dr({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),Da=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,r){var i=n.ngList||", ",a="false"!==n.ngTrim,s=a?di(i):i,u=function(e){if(!$(e)){var t=[];return e&&o(e.split(s),function(e){e&&t.push(a?di(e):e)}),t}};r.$parsers.push(u),r.$formatters.push(function(e){if(fi(e))return e.join(i)}),r.$isEmpty=function(e){return!e||!e.length}}}},Na="ng-valid",Oa="ng-invalid",Pa="ng-pristine",Ia="ng-dirty",ja=t("ngModel");Vr.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Vr.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var e=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var n=this.$$parsedNgModel(t);return C(n)&&(n=e(t)),n},this.$$ngModelSet=function(e,n){C(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw ja("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,ee(this.$$element))},$render:g,$isEmpty:function(e){return $(e)||""===e||null===e||e!==e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Ia),this.$$animate.addClass(this.$$element,Pa)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Pa),this.$$animate.addClass(this.$$element,Ia),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!ci(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(t,e,function(e){i||n===e||(o.$modelValue=e?t:void 0,o.$modelValue!==r&&o.$$writeModelToScope())})}},$$runValidators:function(e,t,n){function r(e,t){a===s.$$currentValidationRunId&&s.$setValidity(e,t)}function i(e){a===s.$$currentValidationRunId&&n(e)}this.$$currentValidationRunId++;var a=this.$$currentValidationRunId,s=this;return function(){var e=s.$$parserName||"parse";return $(s.$$parserValid)?(r(e,null),!0):(s.$$parserValid||(o(s.$validators,function(e,t){r(t,null)}),o(s.$asyncValidators,function(e,t){r(t,null)})),r(e,s.$$parserValid),s.$$parserValid)}()&&function(){var n=!0;return o(s.$validators,function(i,o){var a=Boolean(i(e,t));n=n&&a,r(o,a)}),!!n||(o(s.$asyncValidators,function(e,t){r(t,null)}),!1)}()?void function(){var n=[],a=!0;o(s.$asyncValidators,function(i,o){var s=i(e,t);if(!P(s))throw ja("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",s);r(o,void 0),n.push(s.then(function(){r(o,!0)},function(){a=!1,r(o,!1)}))}),n.length?s.$$q.all(n).then(function(){i(a)},g):i(!0)}():void i(!1)},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){function e(){r.$modelValue!==o&&r.$$writeModelToScope()}var t=this.$$lastCommittedViewValue,n=t,r=this;if(this.$$parserValid=!$(n)||void 0,this.$$parserValid)for(var i=0;i<this.$parsers.length;i++)if(n=this.$parsers[i](n),$(n)){this.$$parserValid=!1;break}ci(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var o=this.$modelValue,a=this.$options.getOption("allowInvalid");this.$$rawModelValue=n,a&&(this.$modelValue=n,e()),this.$$runValidators(n,this.$$lastCommittedViewValue,function(t){a||(r.$modelValue=t?n:void 0,e())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),o(this.$viewChangeListeners,function(e){try{e()}catch(e){this.$$exceptionHandler(e)}},this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");S(t[e])?t=t[e]:S(t.default)&&(t=t.default),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;t>0?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},t):this.$$scope.$root.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e)}},vr({clazz:Vr,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var La,Ra=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Vr,priority:1,compile:function(t){return t.addClass(Pa).addClass("ng-untouched").addClass(Na),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm,a=r[2];a&&(i.$options=a.$options),i.$$initGetterSetters(),o.$addControl(i),n.$observe("name",function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,n,r,i){function o(){a.$setTouched()}var a=i[0];a.$options.getOption("updateOn")&&n.on(a.$options.getOption("updateOn"),function(e){a.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(){a.$touched||(e.$$phase?t.$evalAsync(o):t.$apply(o))})}}}}}],Va=/(\s+|^)default(\s+|$)/;Yr.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return e=f({},e),o(e,function(n,r){"$inherit"===n?"*"===r?t=!0:(e[r]=this.$$options[r],"updateOn"===r&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(e.updateOnDefault=!1,e[r]=di(n.replace(Va,function(){return e.updateOnDefault=!0," "})))},this),t&&(delete e["*"],Hr(e,this.$$options)),Hr(e,La.$$options),new Yr(e)}},La=new Yr({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var Fa=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:La,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}},Ya=dr({terminal:!0,priority:1e3}),Ha=t("ngOptions"),qa=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,za=["$compile","$document","$parse",function(t,n,r){function a(e,t,n){function o(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function a(e){var t;if(!l&&i(e))t=e;else{t=[];for(var n in e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n)}return t}var s=e.match(qa);if(!s)throw Ha("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,ee(t));var u=s[5]||s[7],l=s[6],c=/ as /.test(s[0])&&s[1],f=s[9],h=r(s[2]?s[1]:u),d=c&&r(c),p=d||h,g=f&&r(f),m=f?function(e,t){return g(n,t)}:function(e){return nt(e)},v=function(e,t){return m(e,_(e,t))},y=r(s[2]||s[1]),$=r(s[3]||""),b=r(s[4]||""),w=r(s[8]),x={},_=l?function(e,t){return x[l]=t,x[u]=e,x}:function(e){return x[u]=e,x};return{trackBy:f,getTrackByValue:v,getWatchables:r(w,function(e){var t=[];e=e||[];for(var r=a(e),i=r.length,o=0;o<i;o++){var u=e===r?o:r[o],l=e[u],c=_(l,u),f=m(l,c);if(t.push(f),s[2]||s[1]){var h=y(n,c);t.push(h)}if(s[4]){var d=b(n,c);t.push(d)}}return t}),getOptions:function(){for(var e=[],t={},r=w(n)||[],i=a(r),s=i.length,u=0;u<s;u++){var l=r===i?u:i[u],c=r[l],h=_(c,l),d=p(n,h),g=m(d,h),x=y(n,h),S=$(n,h),k=b(n,h),C=new o(g,d,x,S,k);e.push(C),t[g]=C}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[v(e)]},getViewValueFromOption:function(e){return f?H(e.viewValue):e.viewValue}}}}}function s(e,r,i,s){function c(e,t){var n=u.cloneNode(!1);t.appendChild(n),h(e,n)}function f(e){var t=x.getOptionFromViewValue(e),n=t&&t.element;return n&&!n.selected&&(n.selected=!0),t}function h(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),t.value=e.selectValue}function d(){var e=x&&p.readValue();if(x)for(var t=x.items.length-1;t>=0;t--){var n=x.items[t];We(b(n.group)?n.element.parentNode:n.element)}x=_.getOptions();var i={};if(w&&r.prepend(p.emptyOption),x.items.forEach(function(e){var t;b(e.group)?(t=i[e.group],t||(t=l.cloneNode(!1),S.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t),c(e,t)):c(e,S)}),r[0].appendChild(S),g.$render(),!g.$isEmpty(e)){var o=p.readValue();(_.trackBy||m?z(e,o):e===o)||(g.$setViewValue(o),g.$render())}}for(var p=s[0],g=s[1],m=i.multiple,v=0,y=r.children(),$=y.length;v<$;v++)if(""===y[v].value){p.hasEmptyOption=!0,p.emptyOption=y.eq(v);break}var w=!!p.emptyOption;Qr(u.cloneNode(!1)).val("?");var x,_=a(i.ngOptions,r,e),S=n[0].createDocumentFragment();p.generateUnknownOptionValue=function(e){return"?"},m?(p.writeValue=function(e){var t=e&&e.map(f)||[];x.items.forEach(function(e){e.element.selected&&!F(t,e)&&(e.element.selected=!1)})},p.readValue=function(){var e=r.val()||[],t=[];return o(e,function(e){var n=x.selectValueMap[e];n&&!n.disabled&&t.push(x.getViewValueFromOption(n))}),t},_.trackBy&&e.$watchCollection(function(){if(fi(g.$viewValue))return g.$viewValue.map(function(e){return _.getTrackByValue(e)})},function(){g.$render()})):(p.writeValue=function(e){var t=x.selectValueMap[r.val()],n=x.getOptionFromViewValue(e);t&&t.element.removeAttribute("selected"),n?(r[0].value!==n.selectValue&&(p.removeUnknownOption(),p.unselectEmptyOption(),r[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):w?p.selectEmptyOption():p.unknownOption.parent().length?p.updateUnknownOption(e):p.renderUnknownOption(e)},p.readValue=function(){var e=x.selectValueMap[r.val()];return e&&!e.disabled?(p.unselectEmptyOption(),p.removeUnknownOption(),x.getViewValueFromOption(e)):null},_.trackBy&&e.$watch(function(){return _.getTrackByValue(g.$viewValue)},function(){g.$render()})),w&&(p.emptyOption.remove(),t(p.emptyOption)(e),p.emptyOption[0].nodeType===Si?(p.hasEmptyOption=!1,p.registerOption=function(e,t){""===t.val()&&(p.hasEmptyOption=!0,p.emptyOption=t,p.emptyOption.removeClass("ng-scope"),g.$render(),t.on("$destroy",function(){p.hasEmptyOption=!1,p.emptyOption=void 0}))}):p.emptyOption.removeClass("ng-scope")),r.empty(),d(),e.$watchCollection(_.getWatchables,d)}
var u=e.document.createElement("option"),l=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=g},post:s}}}],Ua=["$locale","$interpolate","$log",function(e,t,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(a,s,u){function l(e){s.text(e||"")}var c,f=u.count,h=u.$attr.when&&s.attr(u.$attr.when),d=u.offset||0,p=a.$eval(h)||{},m={},v=t.startSymbol(),y=t.endSymbol(),b=v+f+"-"+d+y,w=ui.noop;o(u,function(e,t){var n=i.exec(t);if(n){var r=(n[1]?"-":"")+Gr(n[2]);p[r]=s.attr(u.$attr[t])}}),o(p,function(e,n){m[n]=t(e.replace(r,b))}),a.$watch(f,function(t){var r=parseFloat(t),i=ci(r);if(i||r in p||(r=e.pluralCat(r-d)),!(r===c||i&&ci(c))){w();var o=m[r];$(o)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+h),w=g,l()):w=a.$watch(o,l),c=r}})}}}],Ba=["$parse","$animate","$compile",function(e,n,r){var a=t("ngRepeat"),s=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},u=function(e){return e.clone[0]},l=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(t,c){var f=c.ngRepeat,h=r.$$createComment("end ngRepeat",f),d=f.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw a("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",f);var p=d[1],g=d[2],m=d[3],v=d[4];if(!(d=p.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw a("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",p);var y=d[3]||d[1],$=d[2];if(m&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(m)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(m)))throw a("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",m);var b,w,x,_,S={$id:nt};return v?b=e(v):(x=function(e,t){return nt(t)},_=function(e){return e}),function(e,t,r,c,d){b&&(w=function(t,n,r){return $&&(S[$]=t),S[y]=n,S.$index=r,b(e,S)});var p=ve();e.$watchCollection(g,function(r){var c,g,v,b,S,k,C,E,M,T,A,D,N=t[0],O=ve();if(m&&(e[m]=r),i(r))M=r,E=w||x;else{E=w||_,M=[];for(var P in r)Br.call(r,P)&&"$"!==P.charAt(0)&&M.push(P)}for(b=M.length,A=new Array(b),c=0;c<b;c++)if(S=r===M?c:M[c],k=r[S],C=E(S,k,c),p[C])T=p[C],delete p[C],O[C]=T,A[c]=T;else{if(O[C])throw o(A,function(e){e&&e.scope&&(p[e.id]=e)}),a("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",f,C,k);A[c]={id:C,scope:void 0,clone:void 0},O[C]=!0}for(var I in p){if(T=p[I],D=me(T.clone),n.leave(D),D[0].parentNode)for(c=0,g=D.length;c<g;c++)D[c].$$NG_REMOVED=!0;T.scope.$destroy()}for(c=0;c<b;c++)if(S=r===M?c:M[c],k=r[S],T=A[c],T.scope){v=N;do{v=v.nextSibling}while(v&&v.$$NG_REMOVED);u(T)!==v&&n.move(me(T.clone),null,N),N=l(T),s(T.scope,c,y,k,$,S,b)}else d(function(e,t){T.scope=t;var r=h.cloneNode(!1);e[e.length++]=r,n.enter(e,null,N),N=r,T.clone=e,O[T.id]=T,s(T.scope,c,y,k,$,S,b)});p=O})}}}}],Wa=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Ga=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Xa=dr(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)}),Ka=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,a){var s=i.ngSwitch||i.on,u=[],l=[],c=[],f=[],h=function(e,t){return function(n){!1!==n&&e.splice(t,1)}};n.$watch(s,function(n){for(var r,i;c.length;)e.cancel(c.pop());for(r=0,i=f.length;r<i;++r){var s=me(l[r].clone);f[r].$destroy();(c[r]=e.leave(s)).done(h(c,r))}l.length=0,f.length=0,(u=a.cases["!"+n]||a.cases["?"])&&o(u,function(n){n.transclude(function(r,i){f.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var a={clone:r};l.push(a),e.enter(r,o.parent(),o)})})})}}}],Za=dr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){o(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(function(e,t,n){return n[t-1]!==e}),function(e){r.cases["!"+e]=r.cases["!"+e]||[],r.cases["!"+e].push({transclude:i,element:t})})}}),Ja=dr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),Qa=t("ngTransclude"),es=["$compile",function(e){return{restrict:"EAC",terminal:!0,compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,r,i,o){function a(e,n){e.length&&u(e)?t.append(e):(s(),n.$destroy())}function s(){n(e,function(e){t.append(e)})}function u(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];if(r.nodeType!==_i||r.nodeValue.trim())return!0}}if(!o)throw Qa("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",ee(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var l=r.ngTransclude||r.ngTranscludeSlot;o(a,null,l),l&&!o.isSlotFilled(l)&&s()}}}}],ts=["$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)}}}}],ns={$setViewValue:g,$render:g},rs=["$element","$scope",function(t,n){function r(){s||(s=!0,n.$$postDigest(function(){s=!1,o.ngModelCtrl.$render()}))}function i(e){u||(u=!0,n.$$postDigest(function(){n.$$destroyed||(u=!1,o.ngModelCtrl.$setViewValue(o.readValue()),e&&o.ngModelCtrl.$render())}))}var o=this,a=new Ui;o.selectValueMap={},o.ngModelCtrl=ns,o.multiple=!1,o.unknownOption=Qr(e.document.createElement("option")),o.hasEmptyOption=!1,o.emptyOption=void 0,o.renderUnknownOption=function(e){var n=o.generateUnknownOptionValue(e);o.unknownOption.val(n),t.prepend(o.unknownOption),qr(o.unknownOption,!0),t.val(n)},o.updateUnknownOption=function(e){var n=o.generateUnknownOptionValue(e);o.unknownOption.val(n),qr(o.unknownOption,!0),t.val(n)},o.generateUnknownOptionValue=function(e){return"? "+nt(e)+" ?"},o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.selectEmptyOption=function(){o.emptyOption&&(t.val(""),qr(o.emptyOption,!0))},o.unselectEmptyOption=function(){o.hasEmptyOption&&o.emptyOption.removeAttr("selected")},n.$on("$destroy",function(){o.renderUnknownOption=g}),o.readValue=function(){var e=t.val(),n=e in o.selectValueMap?o.selectValueMap[e]:e;return o.hasOption(n)?n:null},o.writeValue=function(e){var n=t[0].options[t[0].selectedIndex];if(n&&qr(Qr(n),!1),o.hasOption(e)){o.removeUnknownOption();var r=nt(e);t.val(r in o.selectValueMap?r:e);var i=t[0].options[t[0].selectedIndex];qr(Qr(i),!0)}else null==e&&o.emptyOption?(o.removeUnknownOption(),o.selectEmptyOption()):o.unknownOption.parent().length?o.updateUnknownOption(e):o.renderUnknownOption(e)},o.addOption=function(e,t){if(t[0].nodeType!==Si){pe(e,'"option value"'),""===e&&(o.hasEmptyOption=!0,o.emptyOption=t);var n=a.get(e)||0;a.set(e,n+1),r()}},o.removeOption=function(e){var t=a.get(e);t&&(1===t?(a.delete(e),""===e&&(o.hasEmptyOption=!1,o.emptyOption=void 0)):a.set(e,t-1))},o.hasOption=function(e){return!!a.get(e)};var s=!1,u=!1;o.registerOption=function(e,t,n,a,s){if(n.$attr.ngValue){var u,l=NaN;n.$observe("value",function(e){var n,r=t.prop("selected");b(l)&&(o.removeOption(u),delete o.selectValueMap[l],n=!0),l=nt(e),u=e,o.selectValueMap[l]=e,o.addOption(e,t),t.attr("value",l),n&&r&&i()})}else a?n.$observe("value",function(e){o.readValue();var n,r=t.prop("selected");b(u)&&(o.removeOption(u),n=!0),u=e,o.addOption(e,t),n&&r&&i()}):s?e.$watch(s,function(e,r){n.$set("value",e);var a=t.prop("selected");r!==e&&o.removeOption(r),o.addOption(e,t),r&&a&&i()}):o.addOption(n.value,t);n.$observe("disabled",function(e){("true"===e||e&&t.prop("selected"))&&(o.multiple?i(!0):(o.ngModelCtrl.$setViewValue(null),o.ngModelCtrl.$render()))}),t.on("$destroy",function(){var e=o.readValue(),t=n.value;o.removeOption(t),r(),(o.multiple&&e&&-1!==e.indexOf(t)||e===t)&&i(!0)})}}],is=function(){function e(e,t,n,r){var i=r[0],a=r[1];if(!a)return void(i.registerOption=g);if(i.ngModelCtrl=a,t.on("change",function(){i.removeUnknownOption(),e.$apply(function(){a.$setViewValue(i.readValue())})}),n.multiple){i.multiple=!0,i.readValue=function(){var e=[];return o(t.find("option"),function(t){if(t.selected&&!t.disabled){var n=t.value;e.push(n in i.selectValueMap?i.selectValueMap[n]:n)}}),e},i.writeValue=function(e){o(t.find("option"),function(t){var n=!!e&&(F(e,t.value)||F(e,i.selectValueMap[t.value]));n!==t.selected&&qr(Qr(t),n)})};var s,u=NaN;e.$watch(function(){u!==a.$viewValue||z(s,a.$viewValue)||(s=be(a.$viewValue),a.$render()),u=a.$viewValue}),a.$isEmpty=function(e){return!e||0===e.length}}}function t(e,t,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:rs,priority:1,link:{pre:e,post:t}}},os=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){var r,i;return b(n.ngValue)||(b(n.value)?r=e(n.value,!0):(i=e(t.text(),!0))||n.$set("value",t.text())),function(e,t,n){var o=t.parent(),a=o.data("$selectController")||o.parent().data("$selectController");a&&a.registerOption(e,t,n,r,i)}}}}],as=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){r&&(n.required=!0,r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)},n.$observe("required",function(){r.$validate()}))}}},ss=function(){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var o,a=r.ngPattern||r.pattern;r.$observe("pattern",function(e){if(_(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw t("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,e,ee(n));o=e||void 0,i.$validate()}),i.$validators.pattern=function(e,t){return i.$isEmpty(t)||$(o)||o.test(t)}}}}},us=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",function(e){var t=d(e);i=ci(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return i<0||r.$isEmpty(t)||t.length<=i}}}}},ls=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",function(e){i=d(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}};if(e.angular.bootstrap)return void(e.console&&console.log("WARNING: Tried to load angular more than once."));!function(){var t;if(!wi){var n=mi();ei=$(n)?e.jQuery:n?e[n]:void 0,ei&&ei.fn.on?(Qr=ei,f(ei.fn,{scope:Fi.scope,isolateScope:Fi.isolateScope,controller:Fi.controller,injector:Fi.injector,inheritedData:Fi.inheritedData}),t=ei.cleanData,ei.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)(n=ei._data(r,"events"))&&n.$destroy&&ei(r).triggerHandler("$destroy");t(e)}):Qr=Oe,ui.element=Qr,wi=!0}}(),function(r){f(r,{errorHandlingConfig:n,bootstrap:ue,copy:H,extend:f,merge:h,equals:z,element:Qr,forEach:o,injector:ut,noop:g,bind:W,toJson:X,fromJson:K,identity:m,isUndefined:$,isDefined:b,isString:_,isFunction:C,isObject:w,isNumber:S,isElement:L,isArray:fi,version:Ei,isDate:k,lowercase:Gr,uppercase:Xr,callbacks:{$$counter:0},getTestability:ce,reloadWithDebugInfo:le,$$minErr:t,$$csp:gi,$$encodeUriSegment:ie,$$encodeUriQuery:oe,$$stringify:ye}),ti=$e(e),ti("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:En}),e.provider("$compile",$t).directive({a:Go,input:da,textarea:da,form:Qo,script:ts,select:is,option:os,ngBind:ma,ngBindHtml:ya,ngBindTemplate:va,ngClass:ba,ngClassEven:xa,ngClassOdd:wa,ngCloak:_a,ngController:Sa,ngForm:ea,ngHide:Ga,ngIf:Ea,ngInclude:Ma,ngInit:Aa,ngNonBindable:Ya,ngPluralize:Ua,ngRepeat:Ba,ngShow:Wa,ngStyle:Xa,ngSwitch:Ka,ngSwitchWhen:Za,ngSwitchDefault:Ja,ngOptions:za,ngTransclude:es,ngModel:Ra,ngList:Da,ngChange:$a,pattern:ss,ngPattern:ss,required:as,ngRequired:as,minlength:ls,ngMinlength:ls,maxlength:us,ngMaxlength:us,ngValue:ga,ngModelOptions:Fa}).directive({ngInclude:Ta}).directive(Xo).directive(ka),e.provider({$anchorScroll:lt,$animate:ro,$animateCss:ao,$$animateJs:to,$$animateQueue:no,$$AnimateRunner:oo,$$animateAsyncRun:io,$browser:gt,$cacheFactory:mt,$controller:kt,$document:Ct,$$isDocumentHidden:Et,$exceptionHandler:Mt,$filter:Hn,$$forceReflow:po,$interpolate:Ht,$interval:qt,$http:Rt,$httpParamSerializer:At,$httpParamSerializerJQLike:Dt,$httpBackend:Ft,$xhrFactory:Vt,$jsonpCallbacks:xo,$location:on,$log:an,$parse:wn,$rootScope:Cn,$q:xn,$$q:_n,$sce:Nn,$sceDelegate:Dn,$sniffer:On,$templateCache:vt,$templateRequest:Pn,$$testability:In,$timeout:jn,$window:Vn,$$rAF:kn,$$jqLite:tt,$$Map:Bi,$$cookieReader:Yn})}]).info({angularVersion:"1.6.4"})}(ui),ui.module("ngLocale",[],["$provide",function(e){function t(e){e+="";var t=e.indexOf(".");return-1==t?0:e.length-t-1}function n(e,n){var r=n;void 0===r&&(r=Math.min(t(e),3));var i=Math.pow(10,r);return{v:r,f:(e*i|0)%i}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,t){var i=0|e,o=n(e,t);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),Qr(function(){se(e.document,ue)})}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),/**
 * @license AngularJS v1.6.4
 * (c) 2010-2017 Google, Inc. http://angularjs.org
 * License: MIT
 */
function(e,t){"use strict";function n(e,t){if(u(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(l(e)){t=t||{};for(var i in e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i])}return t||e}function r(){function e(e,n){return t.extend(Object.create(e),n)}function r(e,t){var n=t.caseInsensitiveMatch,r={originalPath:e,regexp:e},i=r.keys=[];return e=e.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[?*])?/g,function(e,t,n,r){var o="?"===r||"*?"===r?"?":null,a="*"===r||"*?"===r?"*":null;return i.push({name:n,optional:!!o}),t=t||"",(o?"":t)+"(?:"+(o?t:"")+(a&&"(.+?)"||"([^/]+)")+(o||"")+")"+(o||"")}).replace(/([\/$*])/g,"\\$1"),r.regexp=new RegExp("^"+e+"$",n?"i":""),r}u=t.isArray,l=t.isObject,c=t.isDefined,f=t.noop;var i={};this.when=function(e,o){var a=n(o);if(t.isUndefined(a.reloadOnSearch)&&(a.reloadOnSearch=!0),t.isUndefined(a.caseInsensitiveMatch)&&(a.caseInsensitiveMatch=this.caseInsensitiveMatch),i[e]=t.extend(a,e&&r(e,a)),e){var s="/"===e[e.length-1]?e.substr(0,e.length-1):e+"/";i[s]=t.extend({redirectTo:e},r(s,a))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(e){return"string"==typeof e&&(e={redirectTo:e}),this.when(null,e),this},h=!0,this.eagerInstantiationEnabled=function(e){return c(e)?(h=e,this):h},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce","$browser",function(n,r,o,a,s,u,l,c){function h(e,t){var n=t.keys,r={};if(!t.regexp)return null;var i=t.regexp.exec(e);if(!i)return null;for(var o=1,a=i.length;o<a;++o){var s=n[o-1],u=i[o];s&&u&&(r[s.name]=u)}return r}function d(e){var r=k.current;x=b(),(_=x&&r&&x.$$route===r.$$route&&t.equals(x.pathParams,r.pathParams)&&!x.reloadOnSearch&&!S)||!r&&!x||n.$broadcast("$routeChangeStart",x,r).defaultPrevented&&e&&e.preventDefault()}function g(){var e=k.current,r=x;if(_)e.params=r.params,t.copy(e.params,o),n.$broadcast("$routeUpdate",e);else if(r||e){S=!1,k.current=r;var i=a.resolve(r);c.$$incOutstandingRequestCount(),i.then(m).then(v).then(function(a){return a&&i.then(y).then(function(i){r===k.current&&(r&&(r.locals=i,t.copy(r.params,o)),n.$broadcast("$routeChangeSuccess",r,e))})}).catch(function(t){r===k.current&&n.$broadcast("$routeChangeError",r,e,t)}).finally(function(){c.$$completeOutstandingRequest(f)})}}function m(e){var n={route:e,hasRedirection:!1};if(e)if(e.redirectTo)if(t.isString(e.redirectTo))n.path=w(e.redirectTo,e.params),n.search=e.params,n.hasRedirection=!0;else{var i=r.path(),o=r.search(),u=e.redirectTo(e.pathParams,i,o);t.isDefined(u)&&(n.url=u,n.hasRedirection=!0)}else if(e.resolveRedirectTo)return a.resolve(s.invoke(e.resolveRedirectTo)).then(function(e){return t.isDefined(e)&&(n.url=e,n.hasRedirection=!0),n});return n}function v(e){var t=!0;if(e.route!==k.current)t=!1;else if(e.hasRedirection){var n=r.url(),i=e.url;i?r.url(i).replace():i=r.path(e.path).search(e.search).replace().url(),i!==n&&(t=!1)}return t}function y(e){if(e){var n=t.extend({},e.resolve);t.forEach(n,function(e,r){n[r]=t.isString(e)?s.get(e):s.invoke(e,null,null,r)});var r=$(e);return t.isDefined(r)&&(n.$template=r),a.all(n)}}function $(e){var n,r;return t.isDefined(n=e.template)?t.isFunction(n)&&(n=n(e.params)):t.isDefined(r=e.templateUrl)&&(t.isFunction(r)&&(r=r(e.params)),t.isDefined(r)&&(e.loadedTemplateUrl=l.valueOf(r),n=u(r))),n}function b(){var n,o;return t.forEach(i,function(i,a){!o&&(n=h(r.path(),i))&&(o=e(i,{params:t.extend({},r.search(),n),pathParams:n}),o.$$route=i)}),o||i[null]&&e(i[null],{params:{},pathParams:{}})}function w(e,n){var r=[];return t.forEach((e||"").split(":"),function(e,t){if(0===t)r.push(e);else{var i=e.match(/(\w+)(?:[?*])?(.*)/),o=i[1];r.push(n[o]),r.push(i[2]||""),delete n[o]}}),r.join("")}var x,_,S=!1,k={routes:i,reload:function(){S=!0;var e={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,S=!1}};n.$evalAsync(function(){d(e),e.defaultPrevented||g()})},updateParams:function(e){if(!this.current||!this.current.$$route)throw p("norout","Tried updating route when with no current route");e=t.extend({},this.current.params,e),r.path(w(this.current.$$route.originalPath,e)),r.search(e)}};return n.$on("$locationChangeStart",d),n.$on("$locationChangeSuccess",g),k}]}function i(e){h&&e.get("$route")}function o(){this.$get=function(){return{}}}function a(e,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,a,s,u){function l(){d&&(r.cancel(d),d=null),f&&(f.$destroy(),f=null),h&&(d=r.leave(h),d.done(function(e){!1!==e&&(d=null)}),h=null)}function c(){var a=e.current&&e.current.locals,s=a&&a.$template;if(t.isDefined(s)){var c=i.$new(),d=e.current,m=u(c,function(e){r.enter(e,null,h||o).done(function(e){!1===e||!t.isDefined(p)||p&&!i.$eval(p)||n()}),l()});h=m,f=d.scope=c,f.$emit("$viewContentLoaded"),f.$eval(g)}else l()}var f,h,d,p=a.autoscroll,g=a.onload||"";i.$on("$routeChangeSuccess",c),c()}}}function s(e,t,n){return{restrict:"ECA",priority:-400,link:function(r,i){var o=n.current,a=o.locals;i.html(a.$template);var s=e(i.contents());if(o.controller){a.$scope=r;var u=t(o.controller,a);o.controllerAs&&(r[o.controllerAs]=u),i.data("$ngControllerController",u),i.children().data("$ngControllerController",u)}r[o.resolveAs||"$resolve"]=a,s(r)}}}var u,l,c,f,h,d=t.module("ngRoute",[]).info({angularVersion:"1.6.4"}).provider("$route",r).run(i),p=t.$$minErr("ngRoute");i.$inject=["$injector"],d.provider("$routeParams",o),d.directive("ngView",a),d.directive("ngView",s),a.$inject=["$route","$anchorScroll","$animate"],s.$inject=["$compile","$controller","$route"]}(window,window.angular),/**
 * @license AngularJS v1.6.4
 * (c) 2010-2017 Google, Inc. http://angularjs.org
 * License: MIT
 */
function(e,t){"use strict";function n(e){return null!=e&&""!==e&&"hasOwnProperty"!==e&&a.test("."+e)}function r(e,r){if(!n(r))throw o("badmember",'Dotted member path "@{0}" is invalid.',r);for(var i=r.split("."),a=0,s=i.length;a<s&&t.isDefined(e);a++){var u=i[a];e=null!==e?e[u]:void 0}return e}function i(e,n){n=n||{},t.forEach(n,function(e,t){delete n[t]});for(var r in e)!e.hasOwnProperty(r)||"$"===r.charAt(0)&&"$"===r.charAt(1)||(n[r]=e[r]);return n}var o=t.$$minErr("$resource"),a=/^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;t.module("ngResource",["ng"]).info({angularVersion:"1.6.4"}).provider("$resource",function(){var e=/^https?:\/\/\[[^\]]*][^\/]*/,n=this;this.defaults={stripTrailingSlashes:!0,cancellable:!1,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},delete:{method:"DELETE"}}},this.$get=["$http","$log","$q","$timeout",function(a,s,u,l){function c(e,t){this.template=e,this.defaults=p({},n.defaults,t),this.urlParams={}}function f(e,t,b,w){function x(e,n){var i={};return n=p({},t,n),d(n,function(t,n){y(t)&&(t=t(e)),i[n]=t&&t.charAt&&"@"===t.charAt(0)?r(e,t.substr(1)):t}),i}function _(e){return e.resource}function S(e){i(e||{},this)}var k=new c(e,w);return b=p({},n.defaults.actions,b),S.prototype.toJSON=function(){var e=p({},this);return delete e.$promise,delete e.$resolved,delete e.$cancelRequest,e},d(b,function(e,t){var n=!0===e.hasBody||!1!==e.hasBody&&/^(POST|PUT|PATCH)$/i.test(e.method),r=e.timeout,c=v(e.cancellable)?e.cancellable:k.defaults.cancellable;r&&!$(r)&&(s.debug("ngResource:\n  Only numeric values are allowed as `timeout`.\n  Promises are not supported in $resource, because the same value would be used for multiple requests. If you are looking for a way to cancel requests, you should use the `cancellable` option."),delete e.timeout,r=null),S[t]=function(s,f,v,$){function b(e){R.catch(h),T.resolve(e)}var w,C,E,M={};switch(arguments.length){case 4:E=$,C=v;case 3:case 2:if(!y(f)){M=s,w=f,C=v;break}if(y(s)){C=s,E=f;break}C=f,E=v;case 1:y(s)?C=s:n?w=s:M=s;break;case 0:break;default:throw o("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length)}var T,A,D=this instanceof S,N=D?w:e.isArray?[]:new S(w),O={},P=e.interceptor&&e.interceptor.response||_,I=e.interceptor&&e.interceptor.responseError||void 0,j=!!E,L=!!I;d(e,function(e,t){switch(t){default:O[t]=g(e);break;case"params":case"isArray":case"interceptor":case"cancellable":}}),!D&&c&&(T=u.defer(),O.timeout=T.promise,r&&(A=l(T.resolve,r))),n&&(O.data=w),k.setUrlParams(O,p({},x(w,e.params||{}),M),e.url);var R=a(O).then(function(n){var r=n.data;if(r){if(m(r)!==!!e.isArray)throw o("badcfg","Error in resource configuration for action `{0}`. Expected response to contain an {1} but got an {2} (Request: {3} {4})",t,e.isArray?"array":"object",m(r)?"array":"object",O.method,O.url);if(e.isArray)N.length=0,d(r,function(e){"object"==typeof e?N.push(new S(e)):N.push(e)});else{var a=N.$promise;i(r,N),N.$promise=a}}return n.resource=N,n});return R=R.finally(function(){N.$resolved=!0,!D&&c&&(N.$cancelRequest=h,l.cancel(A),T=A=O.timeout=null)}),R=R.then(function(e){var t=P(e);return(C||h)(t,e.headers,e.status,e.statusText),t},j||L?function(e){return j&&!L&&R.catch(h),j&&E(e),L?I(e):u.reject(e)}:void 0),D?R:(N.$promise=R,N.$resolved=!1,c&&(N.$cancelRequest=b),N)},S.prototype["$"+t]=function(e,n,r){y(e)&&(r=n,n=e,e={});var i=S[t].call(this,e,this,n,r);return i.$promise||i}}),S.bind=function(n){var r=p({},t,n);return f(e,r,b,w)},S}var h=t.noop,d=t.forEach,p=t.extend,g=t.copy,m=t.isArray,v=t.isDefined,y=t.isFunction,$=t.isNumber,b=t.$$encodeUriQuery,w=t.$$encodeUriSegment;return c.prototype={setUrlParams:function(t,n,r){var i,a,s=this,u=r||s.template,l="",c=s.urlParams=Object.create(null);d(u.split(/\W/),function(e){if("hasOwnProperty"===e)throw o("badname","hasOwnProperty is not a valid parameter name.");!new RegExp("^\\d+$").test(e)&&e&&new RegExp("(^|[^\\\\]):"+e+"(\\W|$)").test(u)&&(c[e]={isQueryParamValue:new RegExp("\\?.*=:"+e+"(?:\\W|$)").test(u)})}),u=u.replace(/\\:/g,":"),u=u.replace(e,function(e){return l=e,""}),n=n||{},d(s.urlParams,function(e,t){i=n.hasOwnProperty(t)?n[t]:s.defaults[t],v(i)&&null!==i?(a=e.isQueryParamValue?b(i,!0):w(i),u=u.replace(new RegExp(":"+t+"(\\W|$)","g"),function(e,t){return a+t})):u=u.replace(new RegExp("(/?):"+t+"(\\W|$)","g"),function(e,t,n){return"/"===n.charAt(0)?n:t+n})}),s.defaults.stripTrailingSlashes&&(u=u.replace(/\/+$/,"")||"/"),u=u.replace(/\/\.(?=\w+($|\?))/,"."),t.url=l+u.replace(/\/(\\|%5C)\./,"/."),d(n,function(e,n){s.urlParams[n]||(t.params=t.params||{},t.params[n]=e)})}},f}]})}(window,window.angular),/**
 * @license AngularJS v1.6.4
 * (c) 2010-2017 Google, Inc. http://angularjs.org
 * License: MIT
 */
function(e,t){"use strict";function n(){function n(e,t){var n,r={},i=e.split(",");for(n=0;n<i.length;n++)r[t?u(i[n]):i[n]]=!0;return r}function r(t,n){null===t||void 0===t?t="":"string"!=typeof t&&(t=""+t),b.innerHTML=t;var r=5;do{if(0===r)throw d("uinput","Failed to sanitize html because the input is unstable");r--,e.document.documentMode&&v(b),t=b.innerHTML,b.innerHTML=t}while(t!==b.innerHTML);for(var i=b.firstChild;i;){switch(i.nodeType){case 1:n.start(i.nodeName.toLowerCase(),p(i.attributes));break;case 3:n.chars(i.textContent)}var o;if(!((o=i.firstChild)||(1===i.nodeType&&n.end(i.nodeName.toLowerCase()),o=y("nextSibling",i))))for(;null==o&&(i=y("parentNode",i))!==b;)o=y("nextSibling",i),1===i.nodeType&&n.end(i.nodeName.toLowerCase());i=o}for(;i=b.firstChild;)b.removeChild(i)}function p(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function g(e){return e.replace(/&/g,"&amp;").replace(w,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(x,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function m(e,t){var n=!1,r=i(e,e.push);return{start:function(e,i){e=u(e),!n&&A[e]&&(n=e),n||!0!==D[e]||(r("<"),r(e),a(i,function(n,i){var o=u(i),a="img"===e&&"src"===o||"background"===o;!0!==I[o]||!0===N[o]&&!t(n,a)||(r(" "),r(i),r('="'),r(g(n)),r('"'))}),r(">"))},end:function(e){e=u(e),n||!0!==D[e]||!0===_[e]||(r("</"),r(e),r(">")),e==n&&(n=!1)},chars:function(e){n||r(g(e))}}}function v(t){for(;t;){if(t.nodeType===e.Node.ELEMENT_NODE)for(var n=t.attributes,r=0,i=n.length;r<i;r++){var o=n[r],a=o.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.lastIndexOf("ns1:",0)||(t.removeAttributeNode(o),r--,i--)}var s=t.firstChild;s&&v(s),t=y("nextSibling",t)}}function y(e,t){var n=t[e];if(n&&c.call(t,n))throw d("elclob","Failed to sanitize html because the element is clobbered: {0}",t.outerHTML||t.outerText);return n}var $=!1;this.$get=["$$sanitizeUri",function(e){return $&&o(D,T),function(t){var n=[];return f(t,h(n,function(t,n){return!/^unsafe:/.test(e(t,n))})),n.join("")}}],this.enableSvg=function(e){return s(e)?($=e,this):$},i=t.bind,o=t.extend,a=t.forEach,s=t.isDefined,u=t.lowercase,l=t.noop,f=r,h=m,c=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};var b,w=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,x=/([^#-~ |!])/g,_=n("area,br,col,hr,img,wbr"),S=n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),k=n("rp,rt"),C=o({},k,S),E=o({},S,n("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),M=o({},k,n("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),T=n("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),A=n("script,style"),D=o({},_,E,M,C),N=n("background,cite,href,longdesc,src,xlink:href"),O=n("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),P=n("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),I=o({},N,P,O);!function(e){var t;if(!e.document||!e.document.implementation)throw d("noinert","Can't create an inert html document");t=e.document.implementation.createHTMLDocument("inert");var n=t.documentElement||t.getDocumentElement(),r=n.getElementsByTagName("body");if(1===r.length)b=r[0];else{var i=t.createElement("html");b=t.createElement("body"),i.appendChild(b),t.appendChild(i)}}(e)}function r(e){var t=[];return h(t,l).chars(e),t.join("")}var i,o,a,s,u,l,c,f,h,d=t.$$minErr("$sanitize");t.module("ngSanitize",[]).provider("$sanitize",n).info({angularVersion:"1.6.4"}),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,i=/^mailto:/i,o=t.$$minErr("linky"),a=t.isDefined,s=t.isFunction,u=t.isObject,l=t.isString;return function(t,c,f){function h(e){e&&y.push(r(e))}if(null==t||""===t)return t;if(!l(t))throw o("notstring","Expected string but received: {0}",t);for(var d,p,g,m=s(f)?f:u(f)?function(){return f}:function(){return{}},v=t,y=[];d=v.match(n);)p=d[0],d[2]||d[4]||(p=(d[3]?"http://":"mailto:")+p),g=d.index,h(v.substr(0,g)),function(e,t){var n,r=m(e);y.push("<a ");for(n in r)y.push(n+'="'+r[n]+'" ');!a(c)||"target"in r||y.push('target="',c,'" '),y.push('href="',e.replace(/"/g,"&quot;"),'">'),h(t),y.push("</a>")}(p,d[0].replace(i,"")),v=v.substring(g+d[0].length);return h(v),e(y.join(""))}}])}(window,window.angular),/*!
 * angular-translate - v2.15.1 - 2017-03-04
 * 
 * Copyright (c) 2017 The angular-translate team, Pascal Precht; Licensed MIT
 */
function(e,t){"function"==typeof define&&define.amd?define([],function(){return t()}):"object"==typeof exports?module.exports=t():t()}(0,function(){function e(e){"use strict";var t=e.storageKey(),n=e.storage(),r=function(){var r=e.preferredLanguage();angular.isString(r)?e.use(r):n.put(t,e.use())};r.displayName="fallbackFromIncorrectStorageValue",n?n.get(t)?e.use(n.get(t)).catch(r):r():angular.isString(e.preferredLanguage())&&e.use(e.preferredLanguage())}function t(){"use strict";var e,t,n,r=null,i=!1,o=!1;n={sanitize:function(e,t){return"text"===t&&(e=s(e)),e},escape:function(e,t){return"text"===t&&(e=a(e)),e},sanitizeParameters:function(e,t){return"params"===t&&(e=l(e,s)),e},escapeParameters:function(e,t){return"params"===t&&(e=l(e,a)),e},sce:function(e,t,n){return"text"===t?e=u(e):"params"===t&&"filter"!==n&&(e=l(e,a)),e},sceParameters:function(e,t){return"params"===t&&(e=l(e,u)),e}},n.escaped=n.escapeParameters,this.addStrategy=function(e,t){return n[e]=t,this},this.removeStrategy=function(e){return delete n[e],this},this.useStrategy=function(e){return i=!0,r=e,this},this.$get=["$injector","$log",function(a,s){var u={},l=function(e,t,r,i){return angular.forEach(i,function(i){if(angular.isFunction(i))e=i(e,t,r);else if(angular.isFunction(n[i]))e=n[i](e,t,r);else{if(!angular.isString(n[i]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+i+"'");if(!u[n[i]])try{u[n[i]]=a.get(n[i])}catch(e){throw u[n[i]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+i+"'")}e=u[n[i]](e,t,r)}}),e},c=function(){i||o||(s.warn("pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details."),o=!0)};return a.has("$sanitize")&&(e=a.get("$sanitize")),a.has("$sce")&&(t=a.get("$sce")),{useStrategy:function(e){return function(t){e.useStrategy(t)}}(this),sanitize:function(e,t,n,i){if(r||c(),n||null===n||(n=r),!n)return e;i||(i="service");var o=angular.isArray(n)?n:[n];return l(e,t,i,o)}}}];var a=function(e){var t=angular.element("<div></div>");return t.text(e),t.html()},s=function(t){if(!e)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");return e(t)},u=function(e){if(!t)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sce service.");return t.trustAsHtml(e)},l=function(e,t,n){if(angular.isDate(e))return e;if(angular.isObject(e)){var r=angular.isArray(e)?[]:{};if(n){if(n.indexOf(e)>-1)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object")}else n=[];return n.push(e),angular.forEach(e,function(e,i){angular.isFunction(e)||(r[i]=l(e,t,n))}),n.splice(-1,1),r}return angular.isNumber(e)?e:angular.isUndefined(e)||null===e?e:t(e)}}function n(e,t,n,r){"use strict";var i,o,a,s,u,l,c,f,h,d,p,g,m,v,y,$,b={},w=[],x=e,_=[],S="translate-cloak",k=!1,C=!1,E=".",M=!1,T=!1,A=0,D=!0,N="default",O={default:function(e){return(e||"").split("-").join("_")},java:function(e){var t=(e||"").split("-").join("_"),n=t.split("_");return n.length>1?n[0].toLowerCase()+"_"+n[1].toUpperCase():t},bcp47:function(e){var t=(e||"").split("_").join("-"),n=t.split("-");return n.length>1?n[0].toLowerCase()+"-"+n[1].toUpperCase():t},"iso639-1":function(e){return(e||"").split("_").join("-").split("-")[0].toLowerCase()}},P=function(){if(angular.isFunction(r.getLocale))return r.getLocale();var e,n,i=t.$get().navigator,o=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(i.languages))for(e=0;e<i.languages.length;e++)if((n=i.languages[e])&&n.length)return n;for(e=0;e<o.length;e++)if((n=i[o[e]])&&n.length)return n;return null};P.displayName="angular-translate/service: getFirstBrowserLanguage";var I=function(){var e=P()||"";return O[N]&&(e=O[N](e)),e};I.displayName="angular-translate/service: getLocale";var j=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},L=function(){return this.toString().replace(/^\s+|\s+$/g,"")},R=function(e){if(e){for(var t=[],n=angular.lowercase(e),r=0,i=w.length;r<i;r++)t.push(angular.lowercase(w[r]));if(j(t,n)>-1)return e;if(o){var a;for(var s in o)if(o.hasOwnProperty(s)){var u=!1,l=Object.prototype.hasOwnProperty.call(o,s)&&angular.lowercase(s)===angular.lowercase(e);if("*"===s.slice(-1)&&(u=s.slice(0,-1)===e.slice(0,s.length-1)),(l||u)&&(a=o[s],j(t,angular.lowercase(a))>-1))return a}}var c=e.split("_");return c.length>1&&j(t,angular.lowercase(c[0]))>-1?c[0]:void 0}},V=function(e,t){if(!e&&!t)return b;if(e&&!t){if(angular.isString(e))return b[e]}else angular.isObject(b[e])||(b[e]={}),angular.extend(b[e],F(t));return this};this.translations=V,this.cloakClassName=function(e){return e?(S=e,this):S},this.nestedObjectDelimeter=function(e){return e?(E=e,this):E};var F=function(e,t,n,r){var i,o,a,s;t||(t=[]),n||(n={});for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&(s=e[i],angular.isObject(s)?F(s,t.concat(i),n,i):(o=t.length?""+t.join(E)+E+i:i,t.length&&i===r&&(a=""+t.join(E),n[a]="@:"+o),n[o]=s));return n};F.displayName="flatObject",this.addInterpolation=function(e){return _.push(e),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(e){return d=e,this},this.useSanitizeValueStrategy=function(e){return n.useStrategy(e),this},this.preferredLanguage=function(e){return e?(Y(e),this):i};var Y=function(e){return e&&(i=e),i};this.translationNotFoundIndicator=function(e){return this.translationNotFoundIndicatorLeft(e),this.translationNotFoundIndicatorRight(e),this},this.translationNotFoundIndicatorLeft=function(e){return e?(m=e,this):m},this.translationNotFoundIndicatorRight=function(e){return e?(v=e,this):v},this.fallbackLanguage=function(e){return H(e),this};var H=function(e){return e?(angular.isString(e)?(s=!0,a=[e]):angular.isArray(e)&&(s=!1,a=e),angular.isString(i)&&j(a,i)<0&&a.push(i),this):s?a[0]:a};this.use=function(e){if(e){if(!b[e]&&!p)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+e+"'");return u=e,this}return u},this.resolveClientLocale=function(){return I()};var q=function(e){return e?(x=e,this):f?f+x:x};this.storageKey=q,this.useUrlLoader=function(e,t){return this.useLoader("$translateUrlLoader",angular.extend({url:e},t))},this.useStaticFilesLoader=function(e){return this.useLoader("$translateStaticFilesLoader",e)},this.useLoader=function(e,t){return p=e,g=t||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(e){return c=e,this},this.storagePrefix=function(e){return e?(f=e,this):e},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(e){return h=e,this},this.usePostCompiling=function(e){return k=!!e,this},this.forceAsyncReload=function(e){return C=!!e,this},this.uniformLanguageTag=function(e){return e?angular.isString(e)&&(e={standard:e}):e={},N=e.standard,this},this.determinePreferredLanguage=function(e){var t=e&&angular.isFunction(e)?e():I();return i=w.length?R(t)||t:t,this},this.registerAvailableLanguageKeys=function(e,t){return e?(w=e,t&&(o=t),this):w},this.useLoaderCache=function(e){return!1===e?y=void 0:!0===e?y=!0:void 0===e?y="$translationCache":e&&(y=e),this},this.directivePriority=function(e){return void 0===e?A:(A=e,this)},this.statefulFilter=function(e){return void 0===e?D:(D=e,this)},this.postProcess=function(e){return $=e||void 0,this},this.keepContent=function(e){return T=!!e,this},this.$get=["$log","$injector","$rootScope","$q",function(e,t,n,r){var o,f,N,O=t.get(d||"$translateDefaultInterpolation"),P=!1,z={},U={},B=function(e,t,n,s,l){!u&&i&&(u=i);var h=l&&l!==u?R(l)||l:u;if(l&&le(l),angular.isArray(e)){return function(e){for(var i={},o=[],a=0,u=e.length;a<u;a++)o.push(function(e){var o=r.defer(),a=function(t){i[e]=t,o.resolve([e,t])};return B(e,t,n,s,l).then(a,a),o.promise}(e[a]));return r.all(o).then(function(){return i})}(e)}var d=r.defer();e&&(e=L.apply(e));var p=function(){var e=i?U[i]:U[h];if(f=0,c&&!e){var t=o.get(x);if(e=U[t],a&&a.length){var n=j(a,t);f=0===n?1:0,j(a,i)<0&&a.push(i)}}return e}();if(p){var g=function(){l||(h=u),oe(e,t,n,s,h).then(d.resolve,d.reject)};g.displayName="promiseResolved",p.finally(g).catch(angular.noop)}else oe(e,t,n,s,h).then(d.resolve,d.reject);return d.promise},W=function(e){return m&&(e=[m,e].join(" ")),v&&(e=[e,v].join(" ")),e},G=function(e){u=e,c&&o.put(B.storageKey(),u),n.$emit("$translateChangeSuccess",{language:e}),O.setLocale(u);var t=function(e,t){z[t].setLocale(u)};t.displayName="eachInterpolatorLocaleSetter",angular.forEach(z,t),n.$emit("$translateChangeEnd",{language:e})},X=function(e){if(!e)throw"No language key specified for loading.";var i=r.defer();n.$emit("$translateLoadingStart",{language:e}),P=!0;var o=y;"string"==typeof o&&(o=t.get(o));var a=angular.extend({},g,{key:e,$http:angular.extend({},{cache:o},g.$http)}),s=function(t){var r={};n.$emit("$translateLoadingSuccess",{language:e}),angular.isArray(t)?angular.forEach(t,function(e){angular.extend(r,F(e))}):angular.extend(r,F(t)),P=!1,i.resolve({key:e,table:r}),n.$emit("$translateLoadingEnd",{language:e})};s.displayName="onLoaderSuccess";var u=function(e){n.$emit("$translateLoadingError",{language:e}),i.reject(e),n.$emit("$translateLoadingEnd",{language:e})};return u.displayName="onLoaderError",t.get(p)(a).then(s,u),i.promise};if(c&&(o=t.get(c),!o.get||!o.put))throw new Error("Couldn't use storage '"+c+"', missing get() or put() method!");if(_.length){var K=function(e){var n=t.get(e);n.setLocale(i||u),z[n.getInterpolationIdentifier()]=n};K.displayName="interpolationFactoryAdder",angular.forEach(_,K)}var Z=function(e){var t=r.defer();if(Object.prototype.hasOwnProperty.call(b,e))t.resolve(b[e]);else if(U[e]){var n=function(e){V(e.key,e.table),t.resolve(e.table)};n.displayName="translationTableResolver",U[e].then(n,t.reject)}else t.reject();return t.promise},J=function(e,t,n,i,o){var a=r.defer(),s=function(r){if(Object.prototype.hasOwnProperty.call(r,t)&&null!==r[t]){i.setLocale(e);var s=r[t];if("@:"===s.substr(0,2))J(e,s.substr(2),n,i,o).then(a.resolve,a.reject);else{var l=i.interpolate(r[t],n,"service",o,t);l=ue(t,r[t],l,n,e),a.resolve(l)}i.setLocale(u)}else a.reject()};return s.displayName="fallbackTranslationResolver",Z(e).then(s,a.reject),a.promise},Q=function(e,t,n,r,i){var o,a=b[e];if(a&&Object.prototype.hasOwnProperty.call(a,t)&&null!==a[t]){if(r.setLocale(e),o=r.interpolate(a[t],n,"filter",i,t),o=ue(t,a[t],o,n,e,i),!angular.isString(o)&&angular.isFunction(o.$$unwrapTrustedValue)){var s=o.$$unwrapTrustedValue();if("@:"===s.substr(0,2))return Q(e,s.substr(2),n,r,i)}else if("@:"===o.substr(0,2))return Q(e,o.substr(2),n,r,i);r.setLocale(u)}return o},ee=function(e,n,r,i){return h?t.get(h)(e,u,n,r,i):e},te=function(e,t,n,i,o,s){var u=r.defer();if(e<a.length){var l=a[e];J(l,t,n,i,s).then(function(e){u.resolve(e)},function(){return te(e+1,t,n,i,o,s).then(u.resolve,u.reject)})}else if(o)u.resolve(o);else{var c=ee(t,n,o);h&&c?u.resolve(c):u.reject(W(t))}return u.promise},ne=function(e,t,n,r,i){var o;if(e<a.length){var s=a[e];o=Q(s,t,n,r,i),o||""===o||(o=ne(e+1,t,n,r))}return o},re=function(e,t,n,r,i){return te(N>0?N:f,e,t,n,r,i)},ie=function(e,t,n,r){return ne(N>0?N:f,e,t,n,r)},oe=function(e,t,n,i,o,s){var u=r.defer(),l=o?b[o]:b,c=n?z[n]:O;if(l&&Object.prototype.hasOwnProperty.call(l,e)&&null!==l[e]){var f=l[e];if("@:"===f.substr(0,2))B(f.substr(2),t,n,i,o).then(u.resolve,u.reject);else{var d=c.interpolate(f,t,"service",s,e);d=ue(e,f,d,t,o),u.resolve(d)}}else{var p;h&&!P&&(p=ee(e,t,i)),o&&a&&a.length?re(e,t,c,i,s).then(function(e){u.resolve(e)},function(e){u.reject(W(e))}):h&&!P&&p?i?u.resolve(i):u.resolve(p):i?u.resolve(i):u.reject(W(e))}return u.promise},ae=function(e,t,n,r,i){var o,s=r?b[r]:b,u=O;if(z&&Object.prototype.hasOwnProperty.call(z,n)&&(u=z[n]),s&&Object.prototype.hasOwnProperty.call(s,e)&&null!==s[e]){var l=s[e];"@:"===l.substr(0,2)?o=ae(l.substr(2),t,n,r,i):(o=u.interpolate(l,t,"filter",i,e),o=ue(e,l,o,t,r,i))}else{var c;h&&!P&&(c=ee(e,t,i)),r&&a&&a.length?(f=0,o=ie(e,t,u,i)):o=h&&!P&&c?c:W(e)}return o},se=function(e){l===e&&(l=void 0),U[e]=void 0},ue=function(e,n,r,i,o,a){var s=$;return s&&("string"==typeof s&&(s=t.get(s)),s)?s(e,n,r,i,o,a):r},le=function(e){b[e]||!p||U[e]||(U[e]=X(e).then(function(e){return V(e.key,e.table),e}))};B.preferredLanguage=function(e){return e&&Y(e),i},B.cloakClassName=function(){return S},B.nestedObjectDelimeter=function(){return E},B.fallbackLanguage=function(e){if(void 0!==e&&null!==e){if(H(e),p&&a&&a.length)for(var t=0,n=a.length;t<n;t++)U[a[t]]||(U[a[t]]=X(a[t]));B.use(B.use())}return s?a[0]:a},B.useFallbackLanguage=function(e){if(void 0!==e&&null!==e)if(e){var t=j(a,e);t>-1&&(N=t)}else N=0},B.proposedLanguage=function(){return l},B.storage=function(){return o},B.negotiateLocale=R,B.use=function(e){if(!e)return u;var t=r.defer();t.promise.then(null,angular.noop),n.$emit("$translateChangeStart",{language:e});var i=R(e);return w.length>0&&!i?r.reject(e):(i&&(e=i),l=e,!C&&b[e]||!p||U[e]?U[e]?U[e].then(function(e){return l===e.key&&G(e.key),t.resolve(e.key),e},function(e){return!u&&a&&a.length>0&&a[0]!==e?B.use(a[0]).then(t.resolve,t.reject):t.reject(e)}):(t.resolve(e),G(e)):(U[e]=X(e).then(function(n){return V(n.key,n.table),t.resolve(n.key),l===e&&G(n.key),n},function(e){return n.$emit("$translateChangeError",{language:e}),t.reject(e),n.$emit("$translateChangeEnd",{language:e}),r.reject(e)}),U[e].finally(function(){se(e)}).catch(angular.noop)),t.promise)},B.resolveClientLocale=function(){return I()},B.storageKey=function(){return q()},B.isPostCompilingEnabled=function(){return k},B.isForceAsyncReloadEnabled=function(){return C},B.isKeepContent=function(){return T},B.refresh=function(e){function t(e){var t=X(e);return U[e]=t,t.then(function(t){b[e]={},V(e,t.table),o[e]=!0},angular.noop),t}if(!p)throw new Error("Couldn't refresh translation table, no loader registered!");n.$emit("$translateRefreshStart",{language:e});var i=r.defer(),o={};if(i.promise.then(function(){for(var e in b)b.hasOwnProperty(e)&&(e in o||delete b[e]);u&&G(u)},angular.noop).finally(function(){n.$emit("$translateRefreshEnd",{language:e})}),e)b[e]?t(e).then(i.resolve,i.reject):i.reject();else{var s=a&&a.slice()||[];u&&-1===s.indexOf(u)&&s.push(u),r.all(s.map(t)).then(i.resolve,i.reject)}return i.promise},B.instant=function(e,t,n,r,o){var s=r&&r!==u?R(r)||r:u;if(null===e||angular.isUndefined(e))return e;if(r&&le(r),angular.isArray(e)){for(var l={},c=0,f=e.length;c<f;c++)l[e[c]]=B.instant(e[c],t,n,r,o);return l}if(angular.isString(e)&&e.length<1)return e;e&&(e=L.apply(e));var d,p=[];i&&p.push(i),s&&p.push(s),a&&a.length&&(p=p.concat(a));for(var g=0,y=p.length;g<y;g++){var $=p[g];if(b[$]&&void 0!==b[$][e]&&(d=ae(e,t,n,s,o)),void 0!==d)break}if(!d&&""!==d)if(m||v)d=W(e);else{d=O.interpolate(e,t,"filter",o);var w;h&&!P&&(w=ee(e,t,o)),h&&!P&&w&&(d=w)}return d},B.versionInfo=function(){return"2.15.1"},B.loaderCache=function(){return y},B.directivePriority=function(){return A},B.statefulFilter=function(){return D},B.isReady=function(){return M};var ce=r.defer();ce.promise.then(function(){M=!0}),B.onReady=function(e){var t=r.defer();return angular.isFunction(e)&&t.promise.then(e),M?t.resolve():ce.promise.then(t.resolve),t.promise},B.getAvailableLanguageKeys=function(){return w.length>0?w:null},B.getTranslationTable=function(e){return e=e||B.use(),e&&b[e]?angular.copy(b[e]):null};var fe=n.$on("$translateReady",function(){ce.resolve(),fe(),fe=null}),he=n.$on("$translateChangeEnd",function(){ce.resolve(),he(),he=null});if(p){if(angular.equals(b,{})&&B.use()&&B.use(B.use()),a&&a.length)for(var de=function(e){return V(e.key,e.table),n.$emit("$translateChangeEnd",{language:e.key}),e},pe=0,ge=a.length;pe<ge;pe++){var me=a[pe];!C&&b[me]||(U[me]=X(me).then(de))}}else n.$emit("$translateReady",{language:B.use()});return B}]}function r(e,t){"use strict";var n,r={};return r.setLocale=function(e){n=e},r.getInterpolationIdentifier=function(){return"default"},r.useSanitizeValueStrategy=function(e){return t.useStrategy(e),this},r.interpolate=function(n,r,i,o,a){r=r||{},r=t.sanitize(r,"params",o,i);var s;return angular.isNumber(n)?s=""+n:angular.isString(n)?(s=e(n)(r),s=t.sanitize(s,"text",o,i)):s="",s},r}function i(e,t,n,r,i){"use strict";var a=function(){return this.toString().replace(/^\s+|\s+$/g,"")};return{restrict:"AE",scope:!0,priority:e.directivePriority(),compile:function(s,u){var l=u.translateValues?u.translateValues:void 0,c=u.translateInterpolation?u.translateInterpolation:void 0,f=s[0].outerHTML.match(/translate-value-+/i),h="^(.*)("+t.startSymbol()+".*"+t.endSymbol()+")(.*)",d="^(.*)"+t.startSymbol()+"(.*)"+t.endSymbol()+"(.*)";return function(s,p,g){s.interpolateParams={},s.preText="",s.postText="",s.translateNamespace=o(s);var m={},v=function(e){if(angular.isFunction(v._unwatchOld)&&(v._unwatchOld(),v._unwatchOld=void 0),angular.equals(e,"")||!angular.isDefined(e)){var n=a.apply(p.text()),r=n.match(h);if(angular.isArray(r)){s.preText=r[1],s.postText=r[3],m.translate=t(r[2])(s.$parent);var i=n.match(d);angular.isArray(i)&&i[2]&&i[2].length&&(v._unwatchOld=s.$watch(i[2],function(e){m.translate=e,w()}))}else m.translate=n||void 0}else m.translate=e;w()};!function(e,t,n){if(t.translateValues&&angular.extend(e,r(t.translateValues)(s.$parent)),f)for(var i in n)if(Object.prototype.hasOwnProperty.call(t,i)&&"translateValue"===i.substr(0,14)&&"translateValues"!==i){var o=angular.lowercase(i.substr(14,1))+i.substr(15);e[o]=n[i]}}(s.interpolateParams,g,u);var y=!0;g.$observe("translate",function(e){void 0===e?v(""):""===e&&y||(m.translate=e,w()),y=!1});for(var $ in g)g.hasOwnProperty($)&&"translateAttr"===$.substr(0,13)&&$.length>13&&function(e){g.$observe(e,function(t){m[e]=t,w()})}($);if(g.$observe("translateDefault",function(e){s.defaultText=e,w()}),l&&g.$observe("translateValues",function(e){e&&s.$parent.$watch(function(){angular.extend(s.interpolateParams,r(e)(s.$parent))})}),f){for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&"translateValue"===b.substr(0,14)&&"translateValues"!==b&&function(e){g.$observe(e,function(t){var n=angular.lowercase(e.substr(14,1))+e.substr(15);s.interpolateParams[n]=t})}(b)}var w=function(){for(var e in m)m.hasOwnProperty(e)&&void 0!==m[e]&&x(e,m[e],s,s.interpolateParams,s.defaultText,s.translateNamespace)},x=function(t,n,r,i,o,a){n?(a&&"."===n.charAt(0)&&(n=a+n),e(n,i,c,o,r.translateLanguage).then(function(e){_(e,r,!0,t)},function(e){_(e,r,!1,t)})):_(n,r,!1,t)},_=function(t,r,i,o){if(i||void 0!==r.defaultText&&(t=r.defaultText),"translate"===o){(i||!i&&!e.isKeepContent()&&void 0===g.translateKeepContent)&&p.empty().append(r.preText+t+r.postText);var a=e.isPostCompilingEnabled(),s=void 0!==u.translateCompile,l=s&&"false"!==u.translateCompile;(a&&!s||l)&&n(p.contents())(r)}else{var c=g.$attr[o];"data-"===c.substr(0,5)&&(c=c.substr(5)),c=c.substr(15),p.attr(c,t)}};(l||f||g.translateDefault)&&s.$watch("interpolateParams",w,!0),s.$on("translateLanguageChanged",w);var S=i.$on("$translateChangeSuccess",w);p.text().length?v(g.translate?g.translate:""):g.translate&&v(g.translate),w(),s.$on("$destroy",S)}}}}function o(e){"use strict";return e.translateNamespace?e.translateNamespace:e.$parent?o(e.$parent):void 0}function a(e,t){"use strict";return{restrict:"A",priority:e.directivePriority(),link:function(n,r,i){var o,a,u={},l=function(){angular.forEach(o,function(t,o){t&&(u[o]=!0,n.translateNamespace&&"."===t.charAt(0)&&(t=n.translateNamespace+t),e(t,a,i.translateInterpolation,void 0,n.translateLanguage).then(function(e){r.attr(o,e)},function(e){r.attr(o,e)}))}),angular.forEach(u,function(e,t){o[t]||(r.removeAttr(t),delete u[t])})};s(n,i.translateAttr,function(e){o=e},l),s(n,i.translateValues,function(e){a=e},l),i.translateValues&&n.$watch(i.translateValues,l,!0),n.$on("translateLanguageChanged",l);var c=t.$on("$translateChangeSuccess",l);l(),n.$on("$destroy",c)}}}function s(e,t,n,r){"use strict";t&&("::"===t.substr(0,2)?t=t.substr(2):e.$watch(t,function(e){n(e),r()},!0),n(e.$eval(t)))}function u(e,t){"use strict";return{compile:function(n){var r=function(t){t.addClass(e.cloakClassName())},i=function(t){t.removeClass(e.cloakClassName())};return r(n),function(n,o,a){var s=i.bind(this,o),u=r.bind(this,o);a.translateCloak&&a.translateCloak.length?(a.$observe("translateCloak",function(t){e(t).then(s,u)}),t.$on("$translateChangeSuccess",function(){e(a.translateCloak).then(s,u)})):e.onReady(s)}}}}function l(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(e,t,n){e.translateNamespace=o(e),e.translateNamespace&&"."===n.translateNamespace.charAt(0)?e.translateNamespace+=n.translateNamespace:e.translateNamespace=n.translateNamespace}}}}}function o(e){"use strict";return e.translateNamespace?e.translateNamespace:e.$parent?o(e.$parent):void 0}function c(){"use strict";return{restrict:"A",scope:!0,compile:function(){return function(e,t,n){n.$observe("translateLanguage",function(t){e.translateLanguage=t}),e.$watch("translateLanguage",function(){e.$broadcast("translateLanguageChanged")})}}}}function f(e,t){"use strict";var n=function(n,r,i,o){if(!angular.isObject(r)){var a=this||{__SCOPE_IS_NOT_AVAILABLE:"More info at https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f"};r=e(r)(a)}return t.instant(n,r,i,o)};return t.statefulFilter()&&(n.$stateful=!0),n}function h(e){"use strict";return e("translations")}return e.$inject=["$translate"],n.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],r.$inject=["$interpolate","$translateSanitization"],i.$inject=["$translate","$interpolate","$compile","$parse","$rootScope"],a.$inject=["$translate","$rootScope"],u.$inject=["$translate","$rootScope"],f.$inject=["$parse","$translate"],h.$inject=["$cacheFactory"],angular.module("pascalprecht.translate",["ng"]).run(e),e.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",t),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",n),n.displayName="displayName",angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",r),r.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",i),i.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateAttr",a),a.displayName="translateAttrDirective",angular.module("pascalprecht.translate").directive("translateCloak",u),u.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",l),l.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",c),c.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",f),f.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",h),h.displayName="$translationCache","pascalprecht.translate"}),/*!
 * angular-translate - v2.15.1 - 2017-03-04
 * 
 * Copyright (c) 2017 The angular-translate team, Pascal Precht; Licensed MIT
 */
function(e,t){"function"==typeof define&&define.amd?define([],function(){return t()}):"object"==typeof exports?module.exports=t():t()}(0,function(){function e(e,t){"use strict";return function(n){if(!(n&&(angular.isArray(n.files)||angular.isString(n.prefix)&&angular.isString(n.suffix))))throw new Error("Couldn't load static files, no files and prefix or suffix specified!");n.files||(n.files=[{prefix:n.prefix,suffix:n.suffix}]);for(var r=[],i=n.files.length,o=0;o<i;o++)r.push(function(r){if(!r||!angular.isString(r.prefix)||!angular.isString(r.suffix))throw new Error("Couldn't load static file, no prefix or suffix specified!");var i=[r.prefix,n.key,r.suffix].join("");return angular.isObject(n.fileMap)&&n.fileMap[i]&&(i=n.fileMap[i]),t(angular.extend({url:i,method:"GET"},n.$http)).then(function(e){return e.data},function(){return e.reject(n.key)})}({prefix:n.files[o].prefix,key:n.key,suffix:n.files[o].suffix}));return e.all(r).then(function(e){for(var t=e.length,n={},r=0;r<t;r++)for(var i in e[r])n[i]=e[r][i];return n})}}return e.$inject=["$q","$http"],angular.module("pascalprecht.translate").factory("$translateStaticFilesLoader",e),e.displayName="$translateStaticFilesLoader","pascalprecht.translate"}),/*!
 * angular-translate - v2.15.1 - 2017-03-04
 * 
 * Copyright (c) 2017 The angular-translate team, Pascal Precht; Licensed MIT
 */
function(e,t){"function"==typeof define&&define.amd?define(["messageformat"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("messageformat")):t(e.MessageFormat)}(this,function(e){function t(){"use strict";var e;this.messageFormatConfigurer=function(t){e=t},this.$get=["$translateSanitization","$cacheFactory","TRANSLATE_MF_INTERPOLATION_CACHE",function(t,r,i){return n(t,r,i,e)}]}function n(t,n,r,i){"use strict";var o={},a=n.get(r),s=new e("en");return angular.isFunction(i)&&i(s),a||(a=n(r)),a.put("en",s),o.setLocale=function(t){(s=a.get(t))||(s=new e(t),angular.isFunction(i)&&i(s),a.put(t,s))},o.getInterpolationIdentifier=function(){return"messageformat"},o.useSanitizeValueStrategy=function(e){return t.useStrategy(e),this},o.interpolate=function(e,n,r,i){n=n||{},n=t.sanitize(n,"params",i);var o=a.get("mf:"+e);if(!o){for(var u in n)if(n.hasOwnProperty(u)){var l=parseInt(n[u],10);angular.isNumber(l)&&""+l===n[u]&&(n[u]=l)}o=s.compile(e),a.put("mf:"+e,o)}var c=o(n);return t.sanitize(c,"text",i)},o}return angular.module("pascalprecht.translate").constant("TRANSLATE_MF_INTERPOLATION_CACHE","$translateMessageFormatInterpolation").provider("$translateMessageFormatInterpolation",t),n.displayName="$translateMessageFormatInterpolation","pascalprecht.translate"}),function(){"use strict";function e(e){return{restrict:"A",require:"?^^inViewContainer",link:function(t,a,s,u){var f={};s.inViewOptions&&(f=t.$eval(s.inViewOptions)),f.offset&&(f.offset=i(f.offset)),f.viewportOffset&&(f.viewportOffset=i(f.viewportOffset));var h=c({type:"initial"}).merge(l(window,"checkInView click ready wheel mousewheel DomMouseScroll MozMousePixelScroll resize scroll touchmove mouseup keydown"));u&&(h=h.merge(u.eventsSignal)),f.throttle&&(h=h.throttle(f.throttle));var d=h.map(function(e){var t;t=u?u.getViewportRect():n(),t=o(t,f.viewportOffset);var i=o(a[0].getBoundingClientRect(),f.offset),s=!!(a[0].offsetWidth||a[0].offsetHeight||a[0].getClientRects().length),l={inView:s&&r(i,t),event:e,element:a,elementRect:i,viewportRect:t};return f.generateParts&&l.inView&&(l.parts={},l.parts.top=i.top>=t.top,l.parts.left=i.left>=t.left,l.parts.bottom=i.bottom<=t.bottom,l.parts.right=i.right<=t.right),l}).scan({},function(e,t){return f.generateDirection&&t.inView&&e.elementRect&&(t.direction={horizontal:t.elementRect.left-e.elementRect.left,vertical:t.elementRect.top-e.elementRect.top}),t.changed=t.inView!==e.inView||!angular.equals(t.parts,e.parts)||!angular.equals(t.direction,e.direction),t}).filter(function(e){return!!e.changed&&!("initial"===e.event.type&&!e.inView)}),p=e(s.inView),g=d.subscribe(function(e){t.$applyAsync(function(){p(t,{$inview:e.inView,$inviewInfo:e})})});t.$on("$destroy",g)}}}function t(){return{restrict:"A",controller:["$element",function(e){this.element=e,this.eventsSignal=l(e,"scroll"),this.getViewportRect=function(){return e[0].getBoundingClientRect()}}]}}function n(){var e={top:0,left:0,width:window.innerWidth,right:window.innerWidth,height:window.innerHeight,bottom:window.innerHeight};return e.height?e:("CSS1Compat"===document.compatMode?(e.width=e.right=document.documentElement.clientWidth,e.height=e.bottom=document.documentElement.clientHeight):(e.width=e.right=document.body.clientWidth,e.height=e.bottom=document.body.clientHeight),e)}function r(e,t){return!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top)}function i(e){return angular.isArray(e)?2==e.length?e.concat(e):3==e.length?e.concat([e[1]]):e:[e,e,e,e]}function o(e,t){if(!t)return e;var n={top:a(t[0])?parseFloat(t[0])*e.height:t[0],right:a(t[1])?parseFloat(t[1])*e.width:t[1],bottom:a(t[2])?parseFloat(t[2])*e.height:t[2],left:a(t[3])?parseFloat(t[3])*e.width:t[3]};return{top:e.top-n.top,left:e.left-n.left,bottom:e.bottom+n.bottom,right:e.right+n.right,height:e.height+n.top+n.bottom,width:e.width+n.left+n.right}}function a(e){return angular.isString(e)&&e.indexOf("%")>0}function s(e){this.didSubscribeFunc=e}function u(){var e=arguments;return new s(function(t){for(var n=[],r=e.length-1;r>=0;r--)n.push(e[r].subscribe(function(){t.apply(null,arguments)}));t.$dispose=function(){for(var e=n.length-1;e>=0;e--)n[e]&&n[e]()}})}function l(e,t){return new s(function(n){var r=function(e){n(e)},i=angular.element(e);i.on(t,r),n.$dispose=function(){i.off(t,r)}})}function c(e){return new s(function(t){setTimeout(function(){t(e)})})}var f=angular.module("angular-inview",[]).directive("inView",["$parse",e]).directive("inViewContainer",t);s.prototype.subscribe=function(e){return this.didSubscribeFunc(e),function(){e.$dispose&&(e.$dispose(),e.$dispose=null)}},s.prototype.map=function(e){var t=this;return new s(function(n){n.$dispose=t.subscribe(function(t){n(e(t))})})},s.prototype.filter=function(e){var t=this;return new s(function(n){n.$dispose=t.subscribe(function(t){e(t)&&n(t)})})},s.prototype.scan=function(e,t){var n=this;return new s(function(r){var i=e;r.$dispose=n.subscribe(function(e){i=t(i,e),r(i)})})},s.prototype.merge=function(e){return u(this,e)},s.prototype.throttle=function(e){var t,n,r=this;return new s(function(i){var o=r.subscribe(function(){var r=+new Date,o=arguments;t&&r<t+e?(clearTimeout(n),n=setTimeout(function(){t=r,i.apply(null,o)},e)):(t=r,i.apply(null,o))});i.$dispose=function(){clearTimeout(n),o&&o()}})},"function"==typeof define&&define.amd?define(["angular"],f):"undefined"!=typeof module&&module&&module.exports&&(module.exports=f)}(),function(){angular.module("angular-page-visibility",[]).factory("$pageVisibility",["$rootScope","$document",function(e,t){var n,r,i,o,a;return i=e.$new(),(n=function(){return void 0!==t.prop("hidden")?["hidden","visibilitychange"]:void 0!==t.prop("mozHidden")?["mozHidden","mozvisibilitychange"]:void 0!==t.prop("msHidden")?["msHidden","msvisibilitychange"]:void 0!==t.prop("webkitHidden")?["webkitHidden","webkitvisibilitychange"]:void 0})()?(a=n(),r=a[0],o=a[1],t.on(o,function(){return t.prop(r)?i.$broadcast("pageBlurred"):i.$broadcast("pageFocused")}),i):i}])}.call(this),/*
 * ngDialog - easy modals and popup windows
 * http://github.com/likeastore/ngDialog
 * (c) 2013-2015 MIT License, https://likeastore.com
 */
function(e,t){"undefined"!=typeof module&&module.exports?(t("undefined"==typeof angular?require("angular"):angular),module.exports="ngDialog"):"function"==typeof define&&define.amd?define(["angular"],t):t(e.angular)}(this,function(e){"use strict";var t=e.module("ngDialog",[]),n=e.element,r=e.isDefined,i=(document.body||document.documentElement).style,o=r(i.animation)||r(i.WebkitAnimation)||r(i.MozAnimation)||r(i.MsAnimation)||r(i.OAnimation),a="animationend webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend",s={html:!1,body:!1},u={},l=[],c=!1,f=!1;return t.provider("ngDialog",function(){var t=this.defaults={className:"ngdialog-theme-default",appendClassName:"",disableAnimation:!1,plain:!1,showClose:!0,closeByDocument:!0,closeByEscape:!0,closeByNavigation:!1,appendTo:!1,preCloseCallback:!1,overlay:!0,cache:!0,trapFocus:!0,preserveFocus:!0,ariaAuto:!0,ariaRole:null,ariaLabelledById:null,ariaLabelledBySelector:null,ariaDescribedById:null,ariaDescribedBySelector:null,bodyClassName:"ngdialog-open",width:null,height:null};this.setForceHtmlReload=function(e){s.html=e||!1},this.setForceBodyReload=function(e){s.body=e||!1},this.setDefaults=function(n){e.extend(t,n)},this.setOpenOnePerName=function(e){f=e||!1};var r,i=0,h=0,d={};this.$get=["$document","$templateCache","$compile","$q","$http","$rootScope","$timeout","$window","$controller","$injector",function(p,g,m,v,y,$,b,w,x,_){var S=[],k={onDocumentKeydown:function(e){27===e.keyCode&&C.close("$escape")},activate:function(e){e.data("$ngDialogOptions").trapFocus&&(e.on("keydown",k.onTrapFocusKeydown),S.body.on("keydown",k.onTrapFocusKeydown))},deactivate:function(e){e.off("keydown",k.onTrapFocusKeydown),S.body.off("keydown",k.onTrapFocusKeydown)},deactivateAll:function(t){e.forEach(t,function(t){var n=e.element(t);k.deactivate(n)})},setBodyPadding:function(e){var t=parseInt(S.body.css("padding-right")||0,10);S.body.css("padding-right",t+e+"px"),S.body.data("ng-dialog-original-padding",t),$.$broadcast("ngDialog.setPadding",e)},resetBodyPadding:function(){var e=S.body.data("ng-dialog-original-padding");e?S.body.css("padding-right",e+"px"):S.body.css("padding-right",""),$.$broadcast("ngDialog.setPadding",0)},performCloseDialog:function(e,t){var n=e.data("$ngDialogOptions"),i=e.attr("id"),s=u[i];if(k.deactivate(e),s){if(void 0!==w.Hammer){var f=s.hammerTime;f.off("tap",r),f.destroy&&f.destroy(),delete s.hammerTime}else e.unbind("click");1===h&&S.body.unbind("keydown",k.onDocumentKeydown),e.hasClass("ngdialog-closing")||(h-=1);var p=e.data("$ngDialogPreviousFocus");p&&p.focus&&p.focus(),$.$broadcast("ngDialog.closing",e,t),h=h<0?0:h,o&&!n.disableAnimation?(s.$destroy(),e.unbind(a).bind(a,function(){k.closeDialogElement(e,t)}).addClass("ngdialog-closing")):(s.$destroy(),k.closeDialogElement(e,t)),d[i]&&(d[i].resolve({id:i,value:t,$dialog:e,remainingDialogs:h}),delete d[i]),u[i]&&delete u[i],l.splice(l.indexOf(i),1),l.length||(S.body.unbind("keydown",k.onDocumentKeydown),c=!1),0==h&&(r=void 0)}},closeDialogElement:function(e,t){var n=e.data("$ngDialogOptions");e.remove(),0===h&&(S.html.removeClass(n.bodyClassName),S.body.removeClass(n.bodyClassName),k.resetBodyPadding()),$.$broadcast("ngDialog.closed",e,t)},closeDialog:function(t,n){var r=t.data("$ngDialogPreCloseCallback");if(r&&e.isFunction(r)){var i=r.call(t,n);if(e.isObject(i))i.closePromise?i.closePromise.then(function(){k.performCloseDialog(t,n)},function(){return!1}):i.then(function(){k.performCloseDialog(t,n)},function(){return!1});else{if(!1===i)return!1;k.performCloseDialog(t,n)}}else k.performCloseDialog(t,n)},onTrapFocusKeydown:function(t){var n,r=e.element(t.currentTarget);if(r.hasClass("ngdialog"))n=r;else if(null===(n=k.getActiveDialog()))return;var i=9===t.keyCode,o=!0===t.shiftKey;i&&k.handleTab(n,t,o)},handleTab:function(e,t,n){var r=k.getFocusableElements(e);if(0===r.length)return void(document.activeElement&&document.activeElement.blur&&document.activeElement.blur());var i=document.activeElement,o=Array.prototype.indexOf.call(r,i),a=-1===o,s=0===o,u=o===r.length-1,l=!1;n?(a||s)&&(r[r.length-1].focus(),l=!0):(a||u)&&(r[0].focus(),l=!0),l&&(t.preventDefault(),t.stopPropagation())},autoFocus:function(e){var t=e[0],r=t.querySelector("*[autofocus]");if(null===r||(r.focus(),document.activeElement!==r)){var i=k.getFocusableElements(e);if(i.length>0)return void i[0].focus();var o=k.filterVisibleElements(t.querySelectorAll("h1,h2,h3,h4,h5,h6,p,span"));if(o.length>0){var a=o[0];n(a).attr("tabindex","-1").css("outline","0"),a.focus()}}},getFocusableElements:function(e){var t=e[0],n=t.querySelectorAll("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]"),r=k.filterTabbableElements(n);return k.filterVisibleElements(r)},filterTabbableElements:function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r];"-1"!==n(i).attr("tabindex")&&t.push(i)}return t},filterVisibleElements:function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];(r.offsetWidth>0||r.offsetHeight>0)&&t.push(r)}return t},getActiveDialog:function(){var e=document.querySelectorAll(".ngdialog");return 0===e.length?null:n(e[e.length-1])},applyAriaAttributes:function(e,t){if(t.ariaAuto){if(!t.ariaRole){var n=k.getFocusableElements(e).length>0?"dialog":"alertdialog";t.ariaRole=n}t.ariaLabelledBySelector||(t.ariaLabelledBySelector="h1,h2,h3,h4,h5,h6"),t.ariaDescribedBySelector||(t.ariaDescribedBySelector="article,section,p")}t.ariaRole&&e.attr("role",t.ariaRole),k.applyAriaAttribute(e,"aria-labelledby",t.ariaLabelledById,t.ariaLabelledBySelector),k.applyAriaAttribute(e,"aria-describedby",t.ariaDescribedById,t.ariaDescribedBySelector)},applyAriaAttribute:function(e,t,r,i){if(r)return void e.attr(t,r);if(i){var o=e.attr("id"),a=e[0].querySelector(i);if(!a)return;var s=o+"-"+t;return n(a).attr("id",s),e.attr(t,s),s}},detectUIRouter:function(){try{return e.module("ui.router"),!0}catch(e){return!1}},getRouterLocationEventName:function(){return k.detectUIRouter()?"$stateChangeStart":"$locationChangeStart"}},C={__PRIVATE__:k,open:function(o){function a(t,n){var n=n||{};return n.headers=n.headers||{},e.extend(n.headers,{Accept:"text/html"}),$.$broadcast("ngDialog.templateLoading",t),y.get(t,n).then(function(e){return $.$broadcast("ngDialog.templateLoaded",t),e.data||""})}var s=null;if(o=o||{},!(f&&o.name&&(s=o.name.toLowerCase().replace(/\s/g,"-")+"-dialog",this.isOpen(s)))){var p=e.copy(t),E=++i;s=s||"ngdialog"+E,l.push(s),void 0!==p.data&&(void 0===o.data&&(o.data={}),o.data=e.merge(e.copy(p.data),o.data)),e.extend(p,o);var M;d[s]=M=v.defer();var T;u[s]=T=e.isObject(p.scope)?p.scope.$new():$.$new();var A,D,N,O=e.extend({},p.resolve);return e.forEach(O,function(t,n){O[n]=e.isString(t)?_.get(t):_.invoke(t,null,null,n)}),v.all({template:function(t){return t?e.isString(t)&&p.plain?t:"boolean"!=typeof p.cache||p.cache?a(t,{cache:g}):a(t,{cache:!1}):"Empty template"}(p.template||p.templateUrl),locals:v.all(O)}).then(function(t){var i=t.template,o=t.locals;p.showClose&&(i+='<button aria-label="Dismiss" class="ngdialog-close"></button>');var a=p.overlay?"":" ngdialog-no-overlay";if(A=n('<div id="'+s+'" class="ngdialog'+a+'"></div>'),A.html(p.overlay?'<div class="ngdialog-overlay"></div><div class="ngdialog-content" role="document">'+i+"</div>":'<div class="ngdialog-content" role="document">'+i+"</div>"),A.data("$ngDialogOptions",p),T.ngDialogId=s,p.data&&e.isString(p.data)){var u=p.data.replace(/^\s*/,"")[0];T.ngDialogData="{"===u||"["===u?e.fromJson(p.data):new String(p.data),T.ngDialogData.ngDialogId=s}else p.data&&e.isObject(p.data)&&(T.ngDialogData=p.data,T.ngDialogData.ngDialogId=s);if(p.className&&A.addClass(p.className),p.appendClassName&&A.addClass(p.appendClassName),p.width&&(N=A[0].querySelector(".ngdialog-content"),e.isString(p.width)?N.style.width=p.width:N.style.width=p.width+"px"),p.height&&(N=A[0].querySelector(".ngdialog-content"),e.isString(p.height)?N.style.height=p.height:N.style.height=p.height+"px"),p.disableAnimation&&A.addClass("ngdialog-disabled-animation"),D=p.appendTo&&e.isString(p.appendTo)?e.element(document.querySelector(p.appendTo)):S.body,k.applyAriaAttributes(A,p),p.preCloseCallback){var l;e.isFunction(p.preCloseCallback)?l=p.preCloseCallback:e.isString(p.preCloseCallback)&&T&&(e.isFunction(T[p.preCloseCallback])?l=T[p.preCloseCallback]:T.$parent&&e.isFunction(T.$parent[p.preCloseCallback])?l=T.$parent[p.preCloseCallback]:$&&e.isFunction($[p.preCloseCallback])&&(l=$[p.preCloseCallback])),l&&A.data("$ngDialogPreCloseCallback",l)}if(T.closeThisDialog=function(e){k.closeDialog(A,e)},p.controller&&(e.isString(p.controller)||e.isArray(p.controller)||e.isFunction(p.controller))){var f;p.controllerAs&&e.isString(p.controllerAs)&&(f=p.controllerAs);var d=x(p.controller,e.extend(o,{$scope:T,$element:A}),!0,f);p.bindToController&&e.extend(d.instance,{ngDialogId:T.ngDialogId,ngDialogData:T.ngDialogData,closeThisDialog:T.closeThisDialog,confirm:T.confirm}),"function"==typeof d?A.data("$ngDialogControllerController",d()):A.data("$ngDialogControllerController",d)}if(b(function(){var e=document.querySelectorAll(".ngdialog");k.deactivateAll(e),m(A)(T);var t=w.innerWidth-S.body.prop("clientWidth");S.html.addClass(p.bodyClassName),S.body.addClass(p.bodyClassName);var n=t-(w.innerWidth-S.body.prop("clientWidth"));n>0&&k.setBodyPadding(n),D.append(A),k.activate(A),p.trapFocus&&k.autoFocus(A),p.name?$.$broadcast("ngDialog.opened",{dialog:A,name:p.name}):$.$broadcast("ngDialog.opened",A)}),c||(S.body.bind("keydown",k.onDocumentKeydown),c=!0),p.closeByNavigation){var g=k.getRouterLocationEventName();$.$on(g,function(e){!1===k.closeDialog(A)&&e.preventDefault()})}if(p.preserveFocus&&A.data("$ngDialogPreviousFocus",document.activeElement),r=function(e){var t=!!p.closeByDocument&&n(e.target).hasClass("ngdialog-overlay"),r=n(e.target).hasClass("ngdialog-close");(t||r)&&C.close(A.attr("id"),r?"$closeButton":"$document")},void 0!==w.Hammer){(T.hammerTime=w.Hammer(A[0])).on("tap",r)}else A.bind("click",r);return h+=1,C}),{id:s,closePromise:M.promise,close:function(e){k.closeDialog(A,e)}}}},openConfirm:function(r){var i=v.defer(),o=e.copy(t);r=r||{},void 0!==o.data&&(void 0===r.data&&(r.data={}),r.data=e.merge(e.copy(o.data),r.data)),e.extend(o,r),o.scope=e.isObject(o.scope)?o.scope.$new():$.$new(),o.scope.confirm=function(e){i.resolve(e);var t=n(document.getElementById(a.id));k.performCloseDialog(t,e)};var a=C.open(o);if(a)return a.closePromise.then(function(e){return e?i.reject(e.value):i.reject()}),i.promise},isOpen:function(e){return n(document.getElementById(e)).length>0},close:function(e,t){var r=n(document.getElementById(e));if(r.length)k.closeDialog(r,t);else if("$escape"===e){var i=l[l.length-1];r=n(document.getElementById(i)),r.data("$ngDialogOptions").closeByEscape&&k.closeDialog(r,"$escape")}else C.closeAll(t);return C},closeAll:function(e){for(var t=document.querySelectorAll(".ngdialog"),r=t.length-1;r>=0;r--){var i=t[r];k.closeDialog(n(i),e)}},getOpenDialogs:function(){return l},getDefaults:function(){return t}};return e.forEach(["html","body"],function(e){if(S[e]=p.find(e),s[e]){var t=k.getRouterLocationEventName();$.$on(t,function(){S[e]=p.find(e)})}}),C}]}),t.directive("ngDialog",["ngDialog",function(t){return{restrict:"A",scope:{ngDialogScope:"="},link:function(n,r,i){r.on("click",function(r){r.preventDefault();var o=e.isDefined(n.ngDialogScope)?n.ngDialogScope:"noScope";e.isDefined(i.ngDialogClosePrevious)&&t.close(i.ngDialogClosePrevious);var a=t.getDefaults();t.open({template:i.ngDialog,className:i.ngDialogClass||a.className,appendClassName:i.ngDialogAppendClass,controller:i.ngDialogController,controllerAs:i.ngDialogControllerAs,bindToController:i.ngDialogBindToController,disableAnimation:i.ngDialogDisableAnimation,scope:o,data:i.ngDialogData,showClose:"false"!==i.ngDialogShowClose&&("true"===i.ngDialogShowClose||a.showClose),closeByDocument:"false"!==i.ngDialogCloseByDocument&&("true"===i.ngDialogCloseByDocument||a.closeByDocument),closeByEscape:"false"!==i.ngDialogCloseByEscape&&("true"===i.ngDialogCloseByEscape||a.closeByEscape),overlay:"false"!==i.ngDialogOverlay&&("true"===i.ngDialogOverlay||a.overlay),preCloseCallback:i.ngDialogPreCloseCallback||a.preCloseCallback,bodyClassName:i.ngDialogBodyClass||a.bodyClassName})})}}}]),t}),/*!
 * ui-select
 * http://github.com/angular-ui/ui-select
 * Version: 0.19.5 - 2016-10-24T23:13:59.434Z
 * License: MIT
 */
function(){"use strict";var e={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,COMMAND:91,MAP:{91:"COMMAND",8:"BACKSPACE",9:"TAB",13:"ENTER",16:"SHIFT",17:"CTRL",18:"ALT",19:"PAUSEBREAK",20:"CAPSLOCK",27:"ESC",32:"SPACE",33:"PAGE_UP",34:"PAGE_DOWN",35:"END",36:"HOME",37:"LEFT",38:"UP",39:"RIGHT",40:"DOWN",43:"+",44:"PRINTSCREEN",45:"INSERT",46:"DELETE",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NUMLOCK",145:"SCROLLLOCK",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},isControl:function(t){switch(t.which){case e.COMMAND:case e.SHIFT:case e.CTRL:case e.ALT:return!0}return!!(t.metaKey||t.ctrlKey||t.altKey)},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123},isVerticalMovement:function(t){return~[e.UP,e.DOWN].indexOf(t)},isHorizontalMovement:function(t){return~[e.LEFT,e.RIGHT,e.BACKSPACE,e.DELETE].indexOf(t)},toSeparator:function(t){var n={ENTER:"\n",TAB:"\t",SPACE:" "}[t];return n||(e[t]?void 0:t)}};void 0===angular.element.prototype.querySelectorAll&&(angular.element.prototype.querySelectorAll=function(e){return angular.element(this[0].querySelectorAll(e))}),void 0===angular.element.prototype.closest&&(angular.element.prototype.closest=function(e){for(var t=this[0],n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;t;){if(n.bind(t)(e))return t;t=t.parentElement}return!1});var t=0,n=angular.module("ui.select",[]).constant("uiSelectConfig",{theme:"bootstrap",searchEnabled:!0,sortable:!1,placeholder:"",refreshDelay:1e3,closeOnSelect:!0,skipFocusser:!1,dropdownPosition:"auto",removeSelected:!0,resetSearchInput:!0,generateId:function(){return t++},appendToBody:!1,spinnerEnabled:!1,spinnerClass:"glyphicon-refresh ui-select-spin"}).service("uiSelectMinErr",function(){var e=angular.$$minErr("ui.select");return function(){var t=e.apply(this,arguments),n=t.message.replace(new RegExp("\nhttp://errors.angularjs.org/.*"),"");return new Error(n)}}).directive("uisTranscludeAppend",function(){return{link:function(e,t,n,r,i){i(e,function(e){t.append(e)})}}}).filter("highlight",function(){function e(e){return(""+e).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(t,n){return n&&t?(""+t).replace(new RegExp(e(n),"gi"),'<span class="ui-select-highlight">$&</span>'):t}}).factory("uisOffset",["$document","$window",function(e,t){return function(n){var r=n[0].getBoundingClientRect();return{width:r.width||n.prop("offsetWidth"),height:r.height||n.prop("offsetHeight"),top:r.top+(t.pageYOffset||e[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||e[0].documentElement.scrollLeft)}}}]);n.directive("uiSelectChoices",["uiSelectConfig","uisRepeatParser","uiSelectMinErr","$compile","$window",function(e,t,n,r,i){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){return t.addClass("ui-select-choices"),(t.parent().attr("theme")||e.theme)+"/choices.tpl.html"},compile:function(r,o){if(!o.repeat)throw n("repeat","Expected 'repeat' expression.");var a=o.groupBy,s=o.groupFilter;if(a){var u=r.querySelectorAll(".ui-select-choices-group");if(1!==u.length)throw n("rows","Expected 1 .ui-select-choices-group but got '{0}'.",u.length);u.attr("ng-repeat",t.getGroupNgRepeatExpression())}var l=t.parse(o.repeat),c=r.querySelectorAll(".ui-select-choices-row");if(1!==c.length)throw n("rows","Expected 1 .ui-select-choices-row but got '{0}'.",c.length);c.attr("ng-repeat",l.repeatExpression(a)).attr("ng-if","$select.open");var f=r.querySelectorAll(".ui-select-choices-row-inner");if(1!==f.length)throw n("rows","Expected 1 .ui-select-choices-row-inner but got '{0}'.",f.length);return f.attr("uis-transclude-append",""),(i.document.addEventListener?c:f).attr("ng-click","$select.select("+l.itemName+",$select.skipFocusser,$event)"),function(t,n,i,o){o.parseRepeatAttr(i.repeat,a,s),o.disableChoiceExpression=i.uiDisableChoice,o.onHighlightCallback=i.onHighlight,o.dropdownPosition=i.position?i.position.toLowerCase():e.dropdownPosition,t.$on("$destroy",function(){c.remove()}),t.$watch("$select.search",function(e){e&&!o.open&&o.multiple&&o.activate(!1,!0),o.activeIndex=o.tagging.isActivated?-1:0,!i.minimumInputLength||o.search.length>=i.minimumInputLength?o.refresh(i.refresh):o.items=[]}),i.$observe("refreshDelay",function(){var n=t.$eval(i.refreshDelay);o.refreshDelay=void 0!==n?n:e.refreshDelay}),t.$watch("$select.open",function(e){e?r.attr("role","listbox"):r.removeAttr("role")})}}}}]),n.controller("uiSelectCtrl",["$scope","$element","$timeout","$filter","$$uisDebounce","uisRepeatParser","uiSelectMinErr","uiSelectConfig","$parse","$injector","$window",function(t,n,r,i,o,a,s,u,l,c,f){function h(e,t,n){if(e.findIndex)return e.findIndex(t,n);for(var r,i=Object(e),o=i.length>>>0,a=0;a<o;a++)if(r=i[a],t.call(n,r,a,i))return a;return-1}function d(){b.resetSearchInput&&(b.search=w,b.selected&&b.items.length&&!b.multiple&&(b.activeIndex=h(b.items,function(e){return angular.equals(this,e)},b.selected)))}function p(e,t){var n,r,i=[];for(n=0;n<t.length;n++)for(r=0;r<e.length;r++)e[r].name==[t[n]]&&i.push(e[r]);return i}function g(e,t){var n=S.indexOf(e);t&&-1===n&&S.push(e),!t&&n>-1&&S.splice(n,1)}function m(e){return S.indexOf(e)>-1}function v(e){function t(e,t){var n=r.indexOf(e);t&&-1===n&&r.push(e),!t&&n>-1&&r.splice(n,0)}function n(e){return r.indexOf(e)>-1}if(e){var r=[];b.isLocked=function(e,r){var i=!1,o=b.selected[r];return o&&(e?(i=!!e.$eval(b.lockChoiceExpression),t(o,i)):i=n(o)),i}}}function y(t){var n=!0;switch(t){case e.DOWN:!b.open&&b.multiple?b.activate(!1,!0):b.activeIndex<b.items.length-1&&b.activeIndex++;break;case e.UP:!b.open&&b.multiple?b.activate(!1,!0):(b.activeIndex>0||0===b.search.length&&b.tagging.isActivated&&b.activeIndex>-1)&&b.activeIndex--;break;case e.TAB:b.multiple&&!b.open||b.select(b.items[b.activeIndex],!0);break;case e.ENTER:b.open&&(b.tagging.isActivated||b.activeIndex>=0)?b.select(b.items[b.activeIndex],b.skipFocusser):b.activate(!1,!0);break;case e.ESC:b.close();break;default:n=!1}return n}function $(){var e=n.querySelectorAll(".ui-select-choices-content"),t=e.querySelectorAll(".ui-select-choices-row");if(t.length<1)throw s("choices","Expected multiple .ui-select-choices-row but got '{0}'.",t.length);if(!(b.activeIndex<0)){var r=t[b.activeIndex],i=r.offsetTop+r.clientHeight-e[0].scrollTop,o=e[0].offsetHeight;i>o?e[0].scrollTop+=i-o:i<r.clientHeight&&(b.isGrouped&&0===b.activeIndex?e[0].scrollTop=0:e[0].scrollTop-=r.clientHeight-i)}}var b=this,w="";if(b.placeholder=u.placeholder,b.searchEnabled=u.searchEnabled,b.sortable=u.sortable,b.refreshDelay=u.refreshDelay,b.paste=u.paste,b.resetSearchInput=u.resetSearchInput,b.refreshing=!1,b.spinnerEnabled=u.spinnerEnabled,b.spinnerClass=u.spinnerClass,b.removeSelected=u.removeSelected,b.closeOnSelect=!0,b.skipFocusser=!1,b.search=w,b.activeIndex=0,b.items=[],b.open=!1,b.focus=!1,b.disabled=!1,b.selected=void 0,b.dropdownPosition="auto",b.focusser=void 0,b.multiple=void 0,b.disableChoiceExpression=void 0,b.tagging={isActivated:!1,fct:void 0},b.taggingTokens={isActivated:!1,tokens:void 0},b.lockChoiceExpression=void 0,b.clickTriggeredSelect=!1,b.$filter=i,b.$element=n,b.$animate=function(){try{return c.get("$animate")}catch(e){return null}}(),b.searchInput=n.querySelectorAll("input.ui-select-search"),1!==b.searchInput.length)throw s("searchInput","Expected 1 input.ui-select-search but got '{0}'.",b.searchInput.length);b.isEmpty=function(){return angular.isUndefined(b.selected)||null===b.selected||""===b.selected||b.multiple&&0===b.selected.length},b.activate=function(e,i){if(b.disabled||b.open)b.open&&!b.searchEnabled&&b.close();else{i||d(),t.$broadcast("uis:activate"),b.open=!0,b.activeIndex=b.activeIndex>=b.items.length?0:b.activeIndex,-1===b.activeIndex&&!1!==b.taggingLabel&&(b.activeIndex=0);var o=n.querySelectorAll(".ui-select-choices-content"),a=n.querySelectorAll(".ui-select-search");if(b.$animate&&b.$animate.on&&b.$animate.enabled(o[0])){var s=function(t,n){"start"===n&&0===b.items.length?(b.$animate.off("removeClass",a[0],s),r(function(){b.focusSearchInput(e)})):"close"===n&&(b.$animate.off("enter",o[0],s),r(function(){b.focusSearchInput(e)}))};b.items.length>0?b.$animate.on("enter",o[0],s):b.$animate.on("removeClass",a[0],s)}else r(function(){b.focusSearchInput(e),!b.tagging.isActivated&&b.items.length>1&&$()})}},b.focusSearchInput=function(e){b.search=e||b.search,b.searchInput[0].focus()},b.findGroupByName=function(e){return b.groups&&b.groups.filter(function(t){return t.name===e})[0]},b.parseRepeatAttr=function(e,n,r){function i(e){var i=t.$eval(n);if(b.groups=[],angular.forEach(e,function(e){var t=angular.isFunction(i)?i(e):e[i],n=b.findGroupByName(t);n?n.items.push(e):b.groups.push({name:t,items:[e]})}),r){var o=t.$eval(r);angular.isFunction(o)?b.groups=o(b.groups):angular.isArray(o)&&(b.groups=p(b.groups,o))}b.items=[],b.groups.forEach(function(e){b.items=b.items.concat(e.items)})}function o(e){b.items=e}b.setItemsFn=n?i:o,b.parserResult=a.parse(e),b.isGrouped=!!n,b.itemProperty=b.parserResult.itemName;var u=b.parserResult.source,c=function(){var e=u(t);t.$uisSource=Object.keys(e).map(function(t){var n={};return n[b.parserResult.keyName]=t,n.value=e[t],n})};b.parserResult.keyName&&(c(),b.parserResult.source=l("$uisSource"+b.parserResult.filters),t.$watch(u,function(e,t){e!==t&&c()},!0)),b.refreshItems=function(e){e=e||b.parserResult.source(t);var n=b.selected;if(b.isEmpty()||angular.isArray(n)&&!n.length||!b.multiple||!b.removeSelected)b.setItemsFn(e);else if(void 0!==e&&null!==e){var r=e.filter(function(e){return angular.isArray(n)?n.every(function(t){return!angular.equals(e,t)}):!angular.equals(e,n)});b.setItemsFn(r)}"auto"!==b.dropdownPosition&&"up"!==b.dropdownPosition||t.calculateDropdownPos(),t.$broadcast("uis:refresh")},t.$watchCollection(b.parserResult.source,function(e){if(void 0===e||null===e)b.items=[];else{if(!angular.isArray(e))throw s("items","Expected an array but got '{0}'.",e);b.refreshItems(e),angular.isDefined(b.ngModel.$modelValue)&&(b.ngModel.$modelValue=null)}})};var x;b.refresh=function(e){void 0!==e&&(x&&r.cancel(x),x=r(function(){var n=t.$eval(e);n&&angular.isFunction(n.then)&&!b.refreshing&&(b.refreshing=!0,n.then(function(){b.refreshing=!1}))},b.refreshDelay))},b.isActive=function(e){if(!b.open)return!1;var t=b.items.indexOf(e[b.itemProperty]),n=t==b.activeIndex;return!(!n||t<0)&&(n&&!angular.isUndefined(b.onHighlightCallback)&&e.$eval(b.onHighlightCallback),n)};var _=function(e){return b.selected&&angular.isArray(b.selected)&&b.selected.filter(function(t){return angular.equals(t,e)}).length>0},S=[];b.isDisabled=function(e){if(b.open){var t=e[b.itemProperty],n=b.items.indexOf(t),r=!1;if(n>=0&&(angular.isDefined(b.disableChoiceExpression)||b.multiple)){if(t.isTag)return!1;b.multiple&&(r=_(t)),!r&&angular.isDefined(b.disableChoiceExpression)&&(r=!!e.$eval(b.disableChoiceExpression)),g(t,r)}return r}},b.select=function(e,n,i){if(void 0===e||!m(e)){if(!b.items&&!b.search&&!b.tagging.isActivated)return;if(!e||!m(e)){if(b.clickTriggeredSelect=!1,i&&("click"===i.type||"touchend"===i.type)&&e&&(b.clickTriggeredSelect=!0),b.tagging.isActivated&&!1===b.clickTriggeredSelect){if(!1===b.taggingLabel)if(b.activeIndex<0){if(void 0===e&&(e=void 0!==b.tagging.fct?b.tagging.fct(b.search):b.search),!e||angular.equals(b.items[0],e))return}else e=b.items[b.activeIndex];else if(0===b.activeIndex){if(void 0===e)return;if(void 0!==b.tagging.fct&&"string"==typeof e){if(!(e=b.tagging.fct(e)))return}else"string"==typeof e&&(e=e.replace(b.taggingLabel,"").trim())}if(_(e))return void b.close(n)}d(),t.$broadcast("uis:select",e);var o={};o[b.parserResult.itemName]=e,r(function(){b.onSelectCallback(t,{$item:e,$model:b.parserResult.modelMapper(t,o)})}),b.closeOnSelect&&b.close(n)}}},b.close=function(e){b.open&&(b.ngModel&&b.ngModel.$setTouched&&b.ngModel.$setTouched(),b.open=!1,d(),t.$broadcast("uis:close",e))},b.setFocus=function(){b.focus||b.focusInput[0].focus()},b.clear=function(e){b.select(void 0),e.stopPropagation(),r(function(){b.focusser[0].focus()},0,!1)},b.toggle=function(e){b.open?(b.close(),e.preventDefault(),e.stopPropagation()):b.activate()},b.isLocked=function(){return!1},t.$watch(function(){return angular.isDefined(b.lockChoiceExpression)&&""!==b.lockChoiceExpression},v);var k=null,C=!1;b.sizeSearchInput=function(){var e=b.searchInput[0],n=b.searchInput.parent().parent()[0],i=function(){return n.clientWidth*!!e.offsetParent},o=function(t){if(0===t)return!1;var n=t-e.offsetLeft-10;return n<50&&(n=t),b.searchInput.css("width",n+"px"),!0};b.searchInput.css("width","10px"),r(function(){null!==k||o(i())||(k=t.$watch(function(){C||(C=!0,t.$$postDigest(function(){C=!1,o(i())&&(k(),k=null)}))},angular.noop))})},b.searchInput.on("keydown",function(n){var i=n.which;~[e.ENTER,e.ESC].indexOf(i)&&(n.preventDefault(),n.stopPropagation()),t.$apply(function(){var t=!1;if((b.items.length>0||b.tagging.isActivated)&&(y(i)||b.searchEnabled||(n.preventDefault(),n.stopPropagation()),b.taggingTokens.isActivated)){for(var o=0;o<b.taggingTokens.tokens.length;o++)b.taggingTokens.tokens[o]===e.MAP[n.keyCode]&&b.search.length>0&&(t=!0);t&&r(function(){b.searchInput.triggerHandler("tagged");var t=b.search.replace(e.MAP[n.keyCode],"").trim();b.tagging.fct&&(t=b.tagging.fct(t)),t&&b.select(t,!0)})}}),e.isVerticalMovement(i)&&b.items.length>0&&$(),i!==e.ENTER&&i!==e.ESC||(n.preventDefault(),n.stopPropagation())}),b.searchInput.on("paste",function(t){var n;if(n=window.clipboardData&&window.clipboardData.getData?window.clipboardData.getData("Text"):(t.originalEvent||t).clipboardData.getData("text/plain"),(n=b.search+n)&&n.length>0)if(b.taggingTokens.isActivated){for(var r=[],i=0;i<b.taggingTokens.tokens.length;i++){var o=e.toSeparator(b.taggingTokens.tokens[i])||b.taggingTokens.tokens[i];if(n.indexOf(o)>-1){r=n.split(o);break}}0===r.length&&(r=[n]);var a=b.search;angular.forEach(r,function(e){var t=b.tagging.fct?b.tagging.fct(e):e;t&&b.select(t,!0)}),b.search=a||w,t.preventDefault(),t.stopPropagation()}else b.paste&&(b.paste(n),b.search=w,t.preventDefault(),t.stopPropagation())}),b.searchInput.on("tagged",function(){r(function(){d()})});var E=o(function(){b.sizeSearchInput()},50);angular.element(f).bind("resize",E),t.$on("$destroy",function(){b.searchInput.off("keyup keydown tagged blur paste"),angular.element(f).off("resize",E)}),t.$watch("$select.activeIndex",function(e){e&&n.find("input").attr("aria-activedescendant","ui-select-choices-row-"+b.generatedId+"-"+e)}),t.$watch("$select.open",function(e){e||n.find("input").removeAttr("aria-activedescendant")})}]),n.directive("uiSelect",["$document","uiSelectConfig","uiSelectMinErr","uisOffset","$compile","$parse","$timeout",function(e,t,n,r,i,o,a){return{restrict:"EA",templateUrl:function(e,n){return(n.theme||t.theme)+(angular.isDefined(n.multiple)?"/select-multiple.tpl.html":"/select.tpl.html")},replace:!0,transclude:!0,require:["uiSelect","^ngModel"],scope:!0,controller:"uiSelectCtrl",controllerAs:"$select",compile:function(i,s){var u=/{(.*)}\s*{(.*)}/.exec(s.ngClass);if(u){var l="{"+u[1]+", "+u[2]+"}";s.ngClass=l,i.attr("ng-class",l)}return angular.isDefined(s.multiple)?i.append("<ui-select-multiple/>").removeAttr("multiple"):i.append("<ui-select-single/>"),s.inputId&&(i.querySelectorAll("input.ui-select-search")[0].id=s.inputId),function(i,s,u,l,c){function f(e){if(p.open){if(!(window.jQuery?window.jQuery.contains(s[0],e.target):s[0].contains(e.target))&&!p.clickTriggeredSelect){var t;if(p.skipFocusser)t=!0;else{var n=["input","button","textarea","select"],r=angular.element(e.target).controller("uiSelect");t=r&&r!==p,t||(t=~n.indexOf(e.target.tagName.toLowerCase()))}p.close(t),i.$digest()}p.clickTriggeredSelect=!1}}function h(){var t=r(s);v=angular.element('<div class="ui-select-placeholder"></div>'),v[0].style.width=t.width+"px",v[0].style.height=t.height+"px",s.after(v),y=s[0].style.width,e.find("body").append(s),s[0].style.position="absolute",s[0].style.left=t.left+"px",s[0].style.top=t.top+"px",s[0].style.width=t.width+"px"}function d(){null!==v&&(v.replaceWith(s),v=null,s[0].style.position="",s[0].style.left="",s[0].style.top="",s[0].style.width=y,p.setFocus())}var p=l[0],g=l[1];p.generatedId=t.generateId(),p.baseTitle=u.title||"Select box",p.focusserTitle=p.baseTitle+" focus",p.focusserId="focusser-"+p.generatedId,p.closeOnSelect=function(){return angular.isDefined(u.closeOnSelect)?o(u.closeOnSelect)():t.closeOnSelect}(),i.$watch("skipFocusser",function(){var e=i.$eval(u.skipFocusser);p.skipFocusser=void 0!==e?e:t.skipFocusser}),p.onSelectCallback=o(u.onSelect),p.onRemoveCallback=o(u.onRemove),p.ngModel=g,p.choiceGrouped=function(e){return p.isGrouped&&e&&e.name},u.tabindex&&u.$observe("tabindex",function(e){p.focusInput.attr("tabindex",e),s.removeAttr("tabindex")}),i.$watch(function(){return i.$eval(u.searchEnabled)},function(e){p.searchEnabled=void 0!==e?e:t.searchEnabled}),i.$watch("sortable",function(){var e=i.$eval(u.sortable);p.sortable=void 0!==e?e:t.sortable}),u.$observe("limit",function(){p.limit=angular.isDefined(u.limit)?parseInt(u.limit,10):void 0}),i.$watch("removeSelected",function(){var e=i.$eval(u.removeSelected);p.removeSelected=void 0!==e?e:t.removeSelected}),u.$observe("disabled",function(){p.disabled=void 0!==u.disabled&&u.disabled}),u.$observe("resetSearchInput",function(){var e=i.$eval(u.resetSearchInput);p.resetSearchInput=void 0===e||e}),u.$observe("paste",function(){p.paste=i.$eval(u.paste)}),u.$observe("tagging",function(){if(void 0!==u.tagging){var e=i.$eval(u.tagging);p.tagging={isActivated:!0,fct:!0!==e?e:void 0}}else p.tagging={isActivated:!1,fct:void 0}}),u.$observe("taggingLabel",function(){void 0!==u.tagging&&("false"===u.taggingLabel?p.taggingLabel=!1:p.taggingLabel=void 0!==u.taggingLabel?u.taggingLabel:"(new)")}),u.$observe("taggingTokens",function(){if(void 0!==u.tagging){var e=void 0!==u.taggingTokens?u.taggingTokens.split("|"):[",","ENTER"];p.taggingTokens={isActivated:!0,tokens:e}}}),u.$observe("spinnerEnabled",function(){var e=i.$eval(u.spinnerEnabled);p.spinnerEnabled=void 0!==e?e:t.spinnerEnabled}),u.$observe("spinnerClass",function(){var e=u.spinnerClass;p.spinnerClass=void 0!==e?u.spinnerClass:t.spinnerClass}),angular.isDefined(u.autofocus)&&a(function(){p.setFocus()}),angular.isDefined(u.focusOn)&&i.$on(u.focusOn,function(){a(function(){p.setFocus()})}),e.on("click",f),i.$on("$destroy",function(){e.off("click",f)}),c(i,function(e){var t=angular.element("<div>").append(e),r=t.querySelectorAll(".ui-select-match");if(r.removeAttr("ui-select-match"),r.removeAttr("data-ui-select-match"),1!==r.length)throw n("transcluded","Expected 1 .ui-select-match but got '{0}'.",r.length);s.querySelectorAll(".ui-select-match").replaceWith(r);var i=t.querySelectorAll(".ui-select-choices");if(i.removeAttr("ui-select-choices"),i.removeAttr("data-ui-select-choices"),1!==i.length)throw n("transcluded","Expected 1 .ui-select-choices but got '{0}'.",i.length);s.querySelectorAll(".ui-select-choices").replaceWith(i);var o=t.querySelectorAll(".ui-select-no-choice");o.removeAttr("ui-select-no-choice"),o.removeAttr("data-ui-select-no-choice"),1==o.length&&s.querySelectorAll(".ui-select-no-choice").replaceWith(o)});var m=i.$eval(u.appendToBody);(void 0!==m?m:t.appendToBody)&&(i.$watch("$select.open",function(e){e?h():d()}),i.$on("$destroy",function(){d()}));var v=null,y="",$=null;i.$watch("$select.open",function(){"auto"!==p.dropdownPosition&&"up"!==p.dropdownPosition||i.calculateDropdownPos()});var b=function(e,t){e=e||r(s),t=t||r($),$[0].style.position="absolute",$[0].style.top=-1*t.height+"px",s.addClass("direction-up")},w=function(e,t){s.removeClass("direction-up"),e=e||r(s),t=t||r($),$[0].style.position="",$[0].style.top=""},x=function(){a(function(){if("up"===p.dropdownPosition)b();else{s.removeClass("direction-up");var t=r(s),n=r($),i=e[0].documentElement.scrollTop||e[0].body.scrollTop;t.top+t.height+n.height>i+e[0].documentElement.clientHeight?b(t,n):w(t,n)}$[0].style.opacity=1})},_=!1;i.calculateDropdownPos=function(){if(p.open){if($=angular.element(s).querySelectorAll(".ui-select-dropdown"),0===$.length)return;if(""!==p.search||_||($[0].style.opacity=0,_=!0),!r($).height&&p.$animate&&p.$animate.on&&p.$animate.enabled($)){var e=!0;p.$animate.on("enter",$,function(t,n){"close"===n&&e&&(x(),e=!1)})}else x()}else{if(null===$||0===$.length)return;$[0].style.opacity=0,$[0].style.position="",$[0].style.top="",s.removeClass("direction-up")}}}}}}]),n.directive("uiSelectMatch",["uiSelectConfig",function(e){function t(e,t){return e[0].hasAttribute(t)?e.attr(t):e[0].hasAttribute("data-"+t)?e.attr("data-"+t):e[0].hasAttribute("x-"+t)?e.attr("x-"+t):void 0}return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(n){n.addClass("ui-select-match");var r=n.parent();return(t(r,"theme")||e.theme)+(angular.isDefined(t(r,"multiple"))?"/match-multiple.tpl.html":"/match.tpl.html")},link:function(t,n,r,i){function o(e){i.allowClear=!!angular.isDefined(e)&&(""===e||"true"===e.toLowerCase())}i.lockChoiceExpression=r.uiLockChoice,r.$observe("placeholder",function(t){i.placeholder=void 0!==t?t:e.placeholder}),r.$observe("allowClear",o),o(r.allowClear),i.multiple&&i.sizeSearchInput()}}}]),n.directive("uiSelectMultiple",["uiSelectMinErr","$timeout",function(t,n){return{restrict:"EA",require:["^uiSelect","^ngModel"],controller:["$scope","$timeout",function(e,t){var n,r=this,i=e.$select;angular.isUndefined(i.selected)&&(i.selected=[]),e.$evalAsync(function(){n=e.ngModel}),r.activeMatchIndex=-1,r.updateModel=function(){n.$setViewValue(Date.now()),r.refreshComponent()},r.refreshComponent=function(){i.refreshItems&&i.refreshItems(),i.sizeSearchInput&&i.sizeSearchInput()},r.removeChoice=function(n){if(i.isLocked(null,n))return!1;var o=i.selected[n],a={};return a[i.parserResult.itemName]=o,i.selected.splice(n,1),r.activeMatchIndex=-1,i.sizeSearchInput(),t(function(){i.onRemoveCallback(e,{$item:o,$model:i.parserResult.modelMapper(e,a)})}),r.updateModel(),!0},r.getPlaceholder=function(){if(!i.selected||!i.selected.length)return i.placeholder}}],controllerAs:"$selectMultiple",link:function(r,i,o,a){function s(e){return angular.isNumber(e.selectionStart)?e.selectionStart:e.value.length}function u(t){var n=s(f.searchInput[0]),r=f.selected.length,i=r-1,o=d.activeMatchIndex,a=d.activeMatchIndex+1,u=d.activeMatchIndex-1,l=o;return!(n>0||f.search.length&&t==e.RIGHT)&&(f.close(),l=function(){switch(t){case e.LEFT:return~d.activeMatchIndex?u:i;case e.RIGHT:return~d.activeMatchIndex&&o!==i?a:(f.activate(),!1);case e.BACKSPACE:return~d.activeMatchIndex?d.removeChoice(o)?u:o:i;case e.DELETE:return!!~d.activeMatchIndex&&(d.removeChoice(d.activeMatchIndex),o)}}(),f.selected.length&&!1!==l?d.activeMatchIndex=Math.min(i,Math.max(0,l)):d.activeMatchIndex=-1,!0)}function l(e){return void 0!==e&&void 0!==f.search&&e.filter(function(e){return void 0!==f.search.toUpperCase()&&void 0!==e&&e.toUpperCase()===f.search.toUpperCase()}).length>0}function c(e,t){var n=-1;if(angular.isArray(e))for(var r=angular.copy(e),i=0;i<r.length;i++)if(void 0===f.tagging.fct)r[i]+" "+f.taggingLabel===t&&(n=i);else{var o=r[i];angular.isObject(o)&&(o.isTag=!0),angular.equals(o,t)&&(n=i)}return n}var f=a[0],h=r.ngModel=a[1],d=r.$selectMultiple;f.multiple=!0,f.focusInput=f.searchInput,h.$isEmpty=function(e){return!e||0===e.length},h.$parsers.unshift(function(){for(var e,t={},n=[],i=f.selected.length-1;i>=0;i--)t={},t[f.parserResult.itemName]=f.selected[i],e=f.parserResult.modelMapper(r,t),n.unshift(e);return n}),h.$formatters.unshift(function(e){var t,n=f.parserResult&&f.parserResult.source(r,{$select:{search:""}}),i={};if(!n)return e;var o=[],a=function(e,n){if(e&&e.length){for(var a=e.length-1;a>=0;a--){if(i[f.parserResult.itemName]=e[a],t=f.parserResult.modelMapper(r,i),f.parserResult.trackByExp){var s=/(\w*)\./.exec(f.parserResult.trackByExp),u=/\.([^\s]+)/.exec(f.parserResult.trackByExp);if(s&&s.length>0&&s[1]==f.parserResult.itemName&&u&&u.length>0&&t[u[1]]==n[u[1]])return o.unshift(e[a]),!0}if(angular.equals(t,n))return o.unshift(e[a]),!0}return!1}};if(!e)return o;for(var s=e.length-1;s>=0;s--)a(f.selected,e[s])||a(n,e[s])||o.unshift(e[s]);return o}),r.$watchCollection(function(){return h.$modelValue},function(e,t){t!=e&&(angular.isDefined(h.$modelValue)&&(h.$modelValue=null),d.refreshComponent())}),h.$render=function(){if(!angular.isArray(h.$viewValue)){if(!angular.isUndefined(h.$viewValue)&&null!==h.$viewValue)throw t("multiarr","Expected model value to be array but got '{0}'",h.$viewValue);h.$viewValue=[]}f.selected=h.$viewValue,d.refreshComponent(),r.$evalAsync()},r.$on("uis:select",function(e,t){f.selected.length>=f.limit||(f.selected.push(t),d.updateModel())}),r.$on("uis:activate",function(){d.activeMatchIndex=-1}),r.$watch("$select.disabled",function(e,t){t&&!e&&f.sizeSearchInput()}),f.searchInput.on("keydown",function(t){var n=t.which;r.$apply(function(){var r=!1;e.isHorizontalMovement(n)&&(r=u(n)),r&&n!=e.TAB&&(t.preventDefault(),t.stopPropagation())})}),f.searchInput.on("keyup",function(t){if(e.isVerticalMovement(t.which)||r.$evalAsync(function(){f.activeIndex=!1===f.taggingLabel?-1:0}),f.tagging.isActivated&&f.search.length>0){if(t.which===e.TAB||e.isControl(t)||e.isFunctionKey(t)||t.which===e.ESC||e.isVerticalMovement(t.which))return;if(f.activeIndex=!1===f.taggingLabel?-1:0,!1===f.taggingLabel)return;var n,i,o,a,s=angular.copy(f.items),u=angular.copy(f.items),h=!1,d=-1;if(void 0!==f.tagging.fct){if(o=f.$filter("filter")(s,{isTag:!0}),o.length>0&&(a=o[0]),s.length>0&&a&&(h=!0,s=s.slice(1,s.length),u=u.slice(1,u.length)),n=f.tagging.fct(f.search),u.some(function(e){return angular.equals(e,n)})||f.selected.some(function(e){return angular.equals(e,n)}))return void r.$evalAsync(function(){f.activeIndex=0,f.items=s});n&&(n.isTag=!0)}else{if(o=f.$filter("filter")(s,function(e){return e.match(f.taggingLabel)}),o.length>0&&(a=o[0]),i=s[0],void 0!==i&&s.length>0&&a&&(h=!0,s=s.slice(1,s.length),u=u.slice(1,u.length)),n=f.search+" "+f.taggingLabel,c(f.selected,f.search)>-1)return;if(l(u.concat(f.selected)))return void(h&&(s=u,r.$evalAsync(function(){f.activeIndex=0,f.items=s})));if(l(u))return void(h&&(f.items=u.slice(1,u.length)))}h&&(d=c(f.selected,n)),d>-1?s=s.slice(d+1,s.length-1):(s=[],n&&s.push(n),s=s.concat(u)),r.$evalAsync(function(){if(f.activeIndex=0,f.items=s,f.isGrouped){var e=n?s.slice(1):s;f.setItemsFn(e),n&&(f.items.unshift(n),f.groups.unshift({name:"",items:[n],tagging:!0}))}})}}),f.searchInput.on("blur",function(){n(function(){d.activeMatchIndex=-1})})}}}]),n.directive("uiSelectNoChoice",["uiSelectConfig",function(e){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){return t.addClass("ui-select-no-choice"),(t.parent().attr("theme")||e.theme)+"/no-choice.tpl.html"}}}]),n.directive("uiSelectSingle",["$timeout","$compile",function(t,n){return{restrict:"EA",require:["^uiSelect","^ngModel"],link:function(r,i,o,a){var s=a[0],u=a[1];u.$parsers.unshift(function(e){var t={};return t[s.parserResult.itemName]=e,s.parserResult.modelMapper(r,t)}),u.$formatters.unshift(function(e){var t,n=s.parserResult&&s.parserResult.source(r,{$select:{search:""}}),i={};if(n){var o=function(n){return i[s.parserResult.itemName]=n,(t=s.parserResult.modelMapper(r,i))===e};if(s.selected&&o(s.selected))return s.selected;for(var a=n.length-1;a>=0;a--)if(o(n[a]))return n[a]}return e}),r.$watch("$select.selected",function(e){u.$viewValue!==e&&u.$setViewValue(e)}),u.$render=function(){s.selected=u.$viewValue},r.$on("uis:select",function(e,t){s.selected=t}),r.$on("uis:close",function(e,n){t(function(){s.focusser.prop("disabled",!1),n||s.focusser[0].focus()},0,!1)}),r.$on("uis:activate",function(){l.prop("disabled",!0)});var l=angular.element("<input ng-disabled='$select.disabled' class='ui-select-focusser ui-select-offscreen' type='text' id='{{ $select.focusserId }}' aria-label='{{ $select.focusserTitle }}' aria-haspopup='true' role='button' />");n(l)(r),s.focusser=l,s.focusInput=l,i.parent().append(l),l.bind("focus",function(){r.$evalAsync(function(){s.focus=!0})}),l.bind("blur",function(){r.$evalAsync(function(){s.focus=!1})}),l.bind("keydown",function(t){if(t.which===e.BACKSPACE)return t.preventDefault(),t.stopPropagation(),s.select(void 0),void r.$apply();t.which===e.TAB||e.isControl(t)||e.isFunctionKey(t)||t.which===e.ESC||(t.which!=e.DOWN&&t.which!=e.UP&&t.which!=e.ENTER&&t.which!=e.SPACE||(t.preventDefault(),t.stopPropagation(),s.activate()),r.$digest())}),l.bind("keyup input",function(t){t.which===e.TAB||e.isControl(t)||e.isFunctionKey(t)||t.which===e.ESC||t.which==e.ENTER||t.which===e.BACKSPACE||(s.activate(l.val()),l.val(""),r.$digest())})}}}]),n.directive("uiSelectSort",["$timeout","uiSelectConfig","uiSelectMinErr",function(e,t,n){return{require:["^^uiSelect","^ngModel"],link:function(t,r,i,o){if(null===t[i.uiSelectSort])throw n("sort","Expected a list to sort");var a=o[0],s=o[1],u=angular.extend({axis:"horizontal"},t.$eval(i.uiSelectSortOptions)),l=u.axis;t.$watch(function(){return a.sortable},function(e){e?r.attr("draggable",!0):r.removeAttr("draggable")}),r.on("dragstart",function(e){r.addClass("dragging"),(e.dataTransfer||e.originalEvent.dataTransfer).setData("text",t.$index.toString())}),r.on("dragend",function(){h("dragging")});var c,f=function(e,t){this.splice(t,0,this.splice(e,1)[0])},h=function(e){angular.forEach(a.$element.querySelectorAll("."+e),function(t){angular.element(t).removeClass(e)})},d=function(e){e.preventDefault(),("vertical"===l?e.offsetY||e.layerY||(e.originalEvent?e.originalEvent.offsetY:0):e.offsetX||e.layerX||(e.originalEvent?e.originalEvent.offsetX:0))<this["vertical"===l?"offsetHeight":"offsetWidth"]/2?(h("dropping-after"),r.addClass("dropping-before")):(h("dropping-before"),r.addClass("dropping-after"))},p=function(t){t.preventDefault();var n=parseInt((t.dataTransfer||t.originalEvent.dataTransfer).getData("text"),10);e.cancel(c),c=e(function(){g(n)},20)},g=function(e){var n=t.$eval(i.uiSelectSort),o=n[e],a=null;a=r.hasClass("dropping-before")?e<t.$index?t.$index-1:t.$index:e<t.$index?t.$index:t.$index+1,f.apply(n,[e,a]),s.$setViewValue(Date.now()),t.$apply(function(){t.$emit("uiSelectSort:change",{array:n,item:o,from:e,to:a})}),h("dropping"),h("dropping-before"),h("dropping-after"),r.off("drop",p)};r.on("dragenter",function(){r.hasClass("dragging")||(r.addClass("dropping"),r.on("dragover",d),r.on("drop",p))}),r.on("dragleave",function(e){e.target==r&&(h("dropping"),h("dropping-before"),h("dropping-after"),r.off("dragover",d),r.off("drop",p))})}}}]),n.factory("$$uisDebounce",["$timeout",function(e){return function(t,n){var r;return function(){var i=this,o=Array.prototype.slice.call(arguments);r&&e.cancel(r),r=e(function(){t.apply(i,o)},n)}}}]),n.directive("uisOpenClose",["$parse","$timeout",function(e,t){return{restrict:"A",require:"uiSelect",link:function(n,r,i,o){o.onOpenCloseCallback=e(i.uisOpenClose),n.$watch("$select.open",function(e,r){e!==r&&t(function(){o.onOpenCloseCallback(n,{isOpen:e})})})}}}]),n.service("uisRepeatParser",["uiSelectMinErr","$parse",function(e,t){var n=this;n.parse=function(n){var r;if(!(r=n.match(/^\s*(?:([\s\S]+?)\s+as\s+)?(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(\s*[\s\S]+?)?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/)))throw e("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",n);var i=r[5],o="";if(r[3]){
i=r[5].replace(/(^\()|(\)$)/g,"");var a=r[5].match(/^\s*(?:[\s\S]+?)(?:[^\|]|\|\|)+([\s\S]*)\s*$/);a&&a[1].trim()&&(o=a[1],i=i.replace(o,""))}return{itemName:r[4]||r[2],keyName:r[3],source:t(i),filters:o,trackByExp:r[6],modelMapper:t(r[1]||r[4]||r[2]),repeatExpression:function(e){var t=this.itemName+" in "+(e?"$group.items":"$select.items");return this.trackByExp&&(t+=" track by "+this.trackByExp),t}}},n.getGroupNgRepeatExpression=function(){return"$group in $select.groups track by $group.name"}}])}(),angular.module("ui.select").run(["$templateCache",function(e){e.put("bootstrap/choices.tpl.html",'<ul class="ui-select-choices ui-select-choices-content ui-select-dropdown dropdown-menu" ng-show="$select.open && $select.items.length > 0"><li class="ui-select-choices-group" id="ui-select-choices-{{ $select.generatedId }}"><div class="divider" ng-show="$select.isGrouped && $index > 0"></div><div ng-show="$select.isGrouped" class="ui-select-choices-group-label dropdown-header" ng-bind="$group.name"></div><div ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}" role="option"><span class="ui-select-choices-row-inner"></span></div></li></ul>'),e.put("bootstrap/match-multiple.tpl.html",'<span class="ui-select-match"><span ng-repeat="$item in $select.selected track by $index"><span class="ui-select-match-item btn btn-default btn-xs" tabindex="-1" type="button" ng-disabled="$select.disabled" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'btn-primary\':$selectMultiple.activeMatchIndex === $index, \'select-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span class="close ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">&nbsp;&times;</span> <span uis-transclude-append=""></span></span></span></span>'),e.put("bootstrap/match.tpl.html",'<div class="ui-select-match" ng-hide="$select.open && $select.searchEnabled" ng-disabled="$select.disabled" ng-class="{\'btn-default-focus\':$select.focus}"><span tabindex="-1" class="btn btn-default form-control ui-select-toggle" aria-label="{{ $select.baseTitle }} activate" ng-disabled="$select.disabled" ng-click="$select.activate()" style="outline: 0;"><span ng-show="$select.isEmpty()" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="ui-select-match-text pull-left" ng-class="{\'ui-select-allow-clear\': $select.allowClear && !$select.isEmpty()}" ng-transclude=""></span> <i class="caret pull-right" ng-click="$select.toggle($event)"></i> <a ng-show="$select.allowClear && !$select.isEmpty() && ($select.disabled !== true)" aria-label="{{ $select.baseTitle }} clear" style="margin-right: 10px" ng-click="$select.clear($event)" class="btn btn-xs btn-link pull-right"><i class="glyphicon glyphicon-remove" aria-hidden="true"></i></a></span></div>'),e.put("bootstrap/no-choice.tpl.html",'<ul class="ui-select-no-choice dropdown-menu" ng-show="$select.items.length == 0"><li ng-transclude=""></li></ul>'),e.put("bootstrap/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple ui-select-bootstrap dropdown form-control" ng-class="{open: $select.open}"><div><div class="ui-select-match"></div><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="ui-select-search input-xs" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-click="$select.activate()" ng-model="$select.search" role="combobox" aria-expanded="{{$select.open}}" aria-label="{{$select.baseTitle}}" ng-class="{\'spinner\': $select.refreshing}" ondrop="return false;"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("bootstrap/select.tpl.html",'<div class="ui-select-container ui-select-bootstrap dropdown" ng-class="{open: $select.open}"><div class="ui-select-match"></div><span ng-show="$select.open && $select.refreshing && $select.spinnerEnabled" class="ui-select-refreshing {{$select.spinnerClass}}"></span> <input type="search" autocomplete="off" tabindex="-1" aria-expanded="true" aria-label="{{ $select.baseTitle }}" aria-owns="ui-select-choices-{{ $select.generatedId }}" class="form-control ui-select-search" ng-class="{ \'ui-select-search-hidden\' : !$select.searchEnabled }" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-show="$select.open"><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("select2/choices.tpl.html",'<ul tabindex="-1" class="ui-select-choices ui-select-choices-content select2-results"><li class="ui-select-choices-group" ng-class="{\'select2-result-with-children\': $select.choiceGrouped($group) }"><div ng-show="$select.choiceGrouped($group)" class="ui-select-choices-group-label select2-result-label" ng-bind="$group.name"></div><ul id="ui-select-choices-{{ $select.generatedId }}" ng-class="{\'select2-result-sub\': $select.choiceGrouped($group), \'select2-result-single\': !$select.choiceGrouped($group) }"><li role="option" ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{\'select2-highlighted\': $select.isActive(this), \'select2-disabled\': $select.isDisabled(this)}"><div class="select2-result-label ui-select-choices-row-inner"></div></li></ul></li></ul>'),e.put("select2/match-multiple.tpl.html",'<span class="ui-select-match"><li class="ui-select-match-item select2-search-choice" ng-repeat="$item in $select.selected track by $index" ng-class="{\'select2-search-choice-focus\':$selectMultiple.activeMatchIndex === $index, \'select2-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span uis-transclude-append=""></span> <a href="javascript:;" class="ui-select-match-close select2-search-choice-close" ng-click="$selectMultiple.removeChoice($index)" tabindex="-1"></a></li></span>'),e.put("select2/match.tpl.html",'<a class="select2-choice ui-select-match" ng-class="{\'select2-default\': $select.isEmpty()}" ng-click="$select.toggle($event)" aria-label="{{ $select.baseTitle }} select"><span ng-show="$select.isEmpty()" class="select2-chosen">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="select2-chosen" ng-transclude=""></span> <abbr ng-if="$select.allowClear && !$select.isEmpty()" class="select2-search-choice-close" ng-click="$select.clear($event)"></abbr> <span class="select2-arrow ui-select-toggle"><b></b></span></a>'),e.put("select2/no-choice.tpl.html",'<div class="ui-select-no-choice dropdown" ng-show="$select.items.length == 0"><div class="dropdown-content"><div data-selectable="" ng-transclude=""></div></div></div>'),e.put("select2/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple select2 select2-container select2-container-multi" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled}"><ul class="select2-choices"><span class="ui-select-match"></span><li class="select2-search-field"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="select2-input ui-select-search" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-hide="$select.disabled" ng-model="$select.search" ng-click="$select.activate()" style="width: 34px;" ondrop="return false;"></li></ul><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open || $select.items.length === 0}"><div class="ui-select-choices"></div></div></div>'),e.put("select2/select.tpl.html",'<div class="ui-select-container select2 select2-container" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled, \'select2-container-active\': $select.focus, \'select2-allowclear\': $select.allowClear && !$select.isEmpty()}"><div class="ui-select-match"></div><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open}"><div class="search-container" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled, \'select2-search\':$select.searchEnabled}"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" ng-class="{\'select2-active\': $select.refreshing}" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" class="ui-select-search select2-input" ng-model="$select.search"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div></div>'),e.put("selectize/choices.tpl.html",'<div ng-show="$select.open" class="ui-select-choices ui-select-dropdown selectize-dropdown" ng-class="{\'single\': !$select.multiple, \'multi\': $select.multiple}"><div class="ui-select-choices-content selectize-dropdown-content"><div class="ui-select-choices-group optgroup"><div ng-show="$select.isGrouped" class="ui-select-choices-group-label optgroup-header" ng-bind="$group.name"></div><div role="option" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}"><div class="option ui-select-choices-row-inner" data-selectable=""></div></div></div></div></div>'),e.put("selectize/match-multiple.tpl.html",'<div class="ui-select-match" data-value="" ng-repeat="$item in $select.selected track by $index" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'active\':$selectMultiple.activeMatchIndex === $index}" ui-select-sort="$select.selected"><span class="ui-select-match-item" ng-class="{\'select-locked\':$select.isLocked(this, $index)}"><span uis-transclude-append=""></span> <span class="remove ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">&times;</span></span></div>'),e.put("selectize/match.tpl.html",'<div ng-hide="$select.searchEnabled && ($select.open || $select.isEmpty())" class="ui-select-match"><span ng-show="!$select.searchEnabled && ($select.isEmpty() || $select.open)" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty() || $select.open" ng-transclude=""></span></div>'),e.put("selectize/no-choice.tpl.html",'<div class="ui-select-no-choice selectize-dropdown" ng-show="$select.items.length == 0"><div class="selectize-dropdown-content"><div data-selectable="" ng-transclude=""></div></div></div>'),e.put("selectize/select-multiple.tpl.html",'<div class="ui-select-container selectize-control multi plugin-remove_button" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()"><div class="ui-select-match"></div><input type="search" autocomplete="off" tabindex="-1" class="ui-select-search" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled}" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-model="$select.search" ng-disabled="$select.disabled" aria-expanded="{{$select.open}}" aria-label="{{ $select.baseTitle }}" ondrop="return false;"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("selectize/select.tpl.html",'<div class="ui-select-container selectize-control single" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()"><div class="ui-select-match"></div><input type="search" autocomplete="off" tabindex="-1" class="ui-select-search ui-select-toggle" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled}" ng-click="$select.toggle($event)" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-hide="!$select.isEmpty() && !$select.open" ng-disabled="$select.disabled" aria-label="{{ $select.baseTitle }}"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>')}]),/**
 * @license Angular UI Tree v2.22.5
 * (c) 2010-2017. https://github.com/angular-ui-tree/angular-ui-tree
 * License: MIT
 */
function(){"use strict";angular.module("ui.tree",[]).constant("treeConfig",{treeClass:"angular-ui-tree",emptyTreeClass:"angular-ui-tree-empty",hiddenClass:"angular-ui-tree-hidden",nodesClass:"angular-ui-tree-nodes",nodeClass:"angular-ui-tree-node",handleClass:"angular-ui-tree-handle",placeholderClass:"angular-ui-tree-placeholder",dragClass:"angular-ui-tree-drag",dragThreshold:3,defaultCollapsed:!1,appendChildOnHover:!0})}(),function(){"use strict";angular.module("ui.tree").controller("TreeHandleController",["$scope","$element",function(e,t){this.scope=e,e.$element=t,e.$nodeScope=null,e.$type="uiTreeHandle"}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeNodeController",["$scope","$element",function(e,t){function n(e){if(!e)return 0;var t,r,i,o=0,a=e.childNodes();if(!a||0===a.length)return 0;for(i=a.length-1;i>=0;i--)t=a[i],r=1+n(t),o=Math.max(o,r);return o}this.scope=e,e.$element=t,e.$modelValue=null,e.$parentNodeScope=null,e.$childNodesScope=null,e.$parentNodesScope=null,e.$treeScope=null,e.$handleScope=null,e.$type="uiTreeNode",e.$$allowNodeDrop=!1,e.collapsed=!1,e.expandOnHover=!1,e.init=function(n){var r=n[0];e.$treeScope=n[1]?n[1].scope:null,e.$parentNodeScope=r.scope.$nodeScope,e.$modelValue=r.scope.$modelValue[e.$index],e.$parentNodesScope=r.scope,r.scope.initSubNode(e),t.on("$destroy",function(){r.scope.destroySubNode(e)})},e.index=function(){return e.$parentNodesScope.$modelValue.indexOf(e.$modelValue)},e.dragEnabled=function(){return!(e.$treeScope&&!e.$treeScope.dragEnabled)},e.isSibling=function(t){return e.$parentNodesScope==t.$parentNodesScope},e.isChild=function(t){var n=e.childNodes();return n&&n.indexOf(t)>-1},e.prev=function(){var t=e.index();return t>0?e.siblings()[t-1]:null},e.siblings=function(){return e.$parentNodesScope.childNodes()},e.childNodesCount=function(){return e.childNodes()?e.childNodes().length:0},e.hasChild=function(){return e.childNodesCount()>0},e.childNodes=function(){return e.$childNodesScope&&e.$childNodesScope.$modelValue?e.$childNodesScope.childNodes():null},e.accept=function(t,n){return e.$childNodesScope&&e.$childNodesScope.$modelValue&&e.$childNodesScope.accept(t,n)},e.remove=function(){return e.$parentNodesScope.removeNode(e)},e.toggle=function(){e.collapsed=!e.collapsed,e.$treeScope.$callbacks.toggle(e.collapsed,e)},e.collapse=function(){e.collapsed=!0},e.expand=function(){e.collapsed=!1},e.depth=function(){var t=e.$parentNodeScope;return t?t.depth()+1:1},e.maxSubDepth=function(){return e.$childNodesScope?n(e.$childNodesScope):0}}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeNodesController",["$scope","$element",function(e,t){this.scope=e,e.$element=t,e.$modelValue=null,e.$nodeScope=null,e.$treeScope=null,e.$type="uiTreeNodes",e.$nodesMap={},e.nodropEnabled=!1,e.maxDepth=0,e.cloneEnabled=!1,e.initSubNode=function(t){if(!t.$modelValue)return null;e.$nodesMap[t.$modelValue.$$hashKey]=t},e.destroySubNode=function(t){if(!t.$modelValue)return null;e.$nodesMap[t.$modelValue.$$hashKey]=null},e.accept=function(t,n){return e.$treeScope.$callbacks.accept(t,e,n)},e.beforeDrag=function(t){return e.$treeScope.$callbacks.beforeDrag(t)},e.isParent=function(t){return t.$parentNodesScope==e},e.hasChild=function(){return e.$modelValue.length>0},e.safeApply=function(e){var t=this.$root.$$phase;"$apply"==t||"$digest"==t?e&&"function"==typeof e&&e():this.$apply(e)},e.removeNode=function(t){var n=e.$modelValue.indexOf(t.$modelValue);return n>-1?(e.safeApply(function(){e.$modelValue.splice(n,1)[0]}),e.$treeScope.$callbacks.removed(t)):null},e.insertNode=function(t,n){e.safeApply(function(){e.$modelValue.splice(t,0,n)})},e.childNodes=function(){var t,n=[];if(e.$modelValue)for(t=0;t<e.$modelValue.length;t++)n.push(e.$nodesMap[e.$modelValue[t].$$hashKey]);return n},e.depth=function(){return e.$nodeScope?e.$nodeScope.depth():0},e.outOfDepth=function(t){var n=e.maxDepth||e.$treeScope.maxDepth;return n>0&&e.depth()+t.maxSubDepth()+1>n}}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeController",["$scope","$element",function(e,t){this.scope=e,e.$element=t,e.$nodesScope=null,e.$type="uiTree",e.$emptyElm=null,e.$callbacks=null,e.dragEnabled=!0,e.emptyPlaceholderEnabled=!0,e.maxDepth=0,e.dragDelay=0,e.cloneEnabled=!1,e.nodropEnabled=!1,e.isEmpty=function(){return e.$nodesScope&&e.$nodesScope.$modelValue&&0===e.$nodesScope.$modelValue.length},e.place=function(t){e.$nodesScope.$element.append(t),e.$emptyElm.remove()},this.resetEmptyElement=function(){e.$nodesScope.$modelValue&&0!==e.$nodesScope.$modelValue.length||!e.emptyPlaceholderEnabled?e.$emptyElm.remove():t.append(e.$emptyElm)},e.resetEmptyElement=this.resetEmptyElement}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTree",["treeConfig","$window",function(e,t){return{restrict:"A",scope:!0,controller:"TreeController",link:function(n,r,i,o){var a,s,u,l={accept:null,beforeDrag:null},c={};angular.extend(c,e),c.treeClass&&r.addClass(c.treeClass),"table"===r.prop("tagName").toLowerCase()?(n.$emptyElm=angular.element(t.document.createElement("tr")),s=r.find("tr"),u=s.length>0?angular.element(s).children().length:1e6,a=angular.element(t.document.createElement("td")).attr("colspan",u),n.$emptyElm.append(a)):n.$emptyElm=angular.element(t.document.createElement("div")),c.emptyTreeClass&&n.$emptyElm.addClass(c.emptyTreeClass),n.$watch("$nodesScope.$modelValue.length",function(e){angular.isNumber(e)&&o.resetEmptyElement()},!0),n.$watch(i.dragEnabled,function(e){"boolean"==typeof e&&(n.dragEnabled=e)}),n.$watch(i.emptyPlaceholderEnabled,function(e){"boolean"==typeof e&&(n.emptyPlaceholderEnabled=e,o.resetEmptyElement())}),n.$watch(i.nodropEnabled,function(e){"boolean"==typeof e&&(n.nodropEnabled=e)}),n.$watch(i.cloneEnabled,function(e){"boolean"==typeof e&&(n.cloneEnabled=e)}),n.$watch(i.maxDepth,function(e){"number"==typeof e&&(n.maxDepth=e)}),n.$watch(i.dragDelay,function(e){"number"==typeof e&&(n.dragDelay=e)}),l.accept=function(e,t,n){return!(t.nodropEnabled||t.$treeScope.nodropEnabled||t.outOfDepth(e))},l.beforeDrag=function(e){return!0},l.expandTimeoutStart=function(){},l.expandTimeoutCancel=function(){},l.expandTimeoutEnd=function(){},l.removed=function(e){},l.dropped=function(e){},l.dragStart=function(e){},l.dragMove=function(e){},l.dragStop=function(e){},l.beforeDrop=function(e){},l.toggle=function(e,t){},n.$watch(i.uiTree,function(e,t){angular.forEach(e,function(e,t){l[t]&&"function"==typeof e&&(l[t]=e)}),n.$callbacks=l},!0)}}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTreeHandle",["treeConfig",function(e){return{require:"^uiTreeNode",restrict:"A",scope:!0,controller:"TreeHandleController",link:function(t,n,r,i){var o={};angular.extend(o,e),o.handleClass&&n.addClass(o.handleClass),t!=i.scope&&(t.$nodeScope=i.scope,i.scope.$handleScope=t)}}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTreeNode",["treeConfig","UiTreeHelper","$window","$document","$timeout","$q",function(e,t,n,r,i,o){return{require:["^uiTreeNodes","^uiTree"],restrict:"A",controller:"TreeNodeController",link:function(a,s,u,l){var c,f,h,d,p,g,m,v,y,$,b,w,x,_,S,k,C,E,M,T,A,D,N,O,P,I,j,L={},R="ontouchstart"in window,V=null,F=document.body,Y=document.documentElement;angular.extend(L,e),L.nodeClass&&s.addClass(L.nodeClass),a.init(l),a.collapsed=!!t.getNodeAttribute(a,"collapsed")||e.defaultCollapsed,a.expandOnHover=!!t.getNodeAttribute(a,"expandOnHover"),a.scrollContainer=t.getNodeAttribute(a,"scrollContainer")||u.scrollContainer||null,a.sourceOnly=a.nodropEnabled||a.$treeScope.nodropEnabled,a.$watch(u.collapsed,function(e){"boolean"==typeof e&&(a.collapsed=e)}),a.$watch("collapsed",function(e){t.setNodeAttribute(a,"collapsed",e),u.$set("collapsed",e)}),a.$watch(u.expandOnHover,function(e){"boolean"!=typeof e&&"number"!=typeof e||(a.expandOnHover=e)}),a.$watch("expandOnHover",function(e){t.setNodeAttribute(a,"expandOnHover",e),u.$set("expandOnHover",e)}),u.$observe("scrollContainer",function(e){"string"==typeof e&&(a.scrollContainer=e)}),a.$watch("scrollContainer",function(e){t.setNodeAttribute(a,"scrollContainer",e),u.$set("scrollContainer",e),m=document.querySelector(e)}),a.$on("angular-ui-tree:collapse-all",function(){a.collapsed=!0}),a.$on("angular-ui-tree:expand-all",function(){a.collapsed=!1}),w=function(e){if((R||2!==e.button&&3!==e.which)&&!(e.uiTreeDragging||e.originalEvent&&e.originalEvent.uiTreeDragging)){var i,o,u,l,m,v,w,x,_,S=angular.element(e.target);if(i=t.treeNodeHandlerContainerOfElement(S),i&&(S=angular.element(i)),o=s.clone(),x=t.elementIsTreeNode(S),_=t.elementIsTreeNodeHandle(S),(x||_)&&!(x&&t.elementContainsTreeNodeHandler(S)||"input"==(u=S.prop("tagName").toLowerCase())||"textarea"==u||"button"==u||"select"==u)){for(P=angular.element(e.target),I=P[0].attributes["ui-tree"];P&&P[0]&&P[0]!==s&&!I;){if(P[0].attributes&&(I=P[0].attributes["ui-tree"]),t.nodrag(P))return;P=P.parent()}a.beforeDrag(a)&&(e.uiTreeDragging=!0,e.originalEvent&&(e.originalEvent.uiTreeDragging=!0),e.preventDefault(),m=t.eventObj(e),c=!0,f=t.dragInfo(a),j=f.source.$treeScope.$id,l=s.prop("tagName"),"tr"===l.toLowerCase()?(d=angular.element(n.document.createElement(l)),v=angular.element(n.document.createElement("td")).addClass(L.placeholderClass).attr("colspan",s[0].children.length),d.append(v)):d=angular.element(n.document.createElement(l)).addClass(L.placeholderClass),p=angular.element(n.document.createElement(l)),L.hiddenClass&&p.addClass(L.hiddenClass),h=t.positionStarted(m,s),d.css("height",s.prop("offsetHeight")+"px"),g=angular.element(n.document.createElement(a.$parentNodesScope.$element.prop("tagName"))).addClass(a.$parentNodesScope.$element.attr("class")).addClass(L.dragClass),g.css("width",t.width(s)+"px"),g.css("z-index",9999),w=(s[0].querySelector(".angular-ui-tree-handle")||s[0]).currentStyle,w&&(document.body.setAttribute("ui-tree-cursor",r.find("body").css("cursor")||""),r.find("body").css({cursor:w.cursor+"!important"})),a.sourceOnly&&d.css("display","none"),s.after(d),s.after(p),f.isClone()&&a.sourceOnly?g.append(o):g.append(s),r.find("body").append(g),g.css({left:m.pageX-h.offsetX+"px",top:m.pageY-h.offsetY+"px"}),y={placeholder:d,dragging:g},A(),a.$apply(function(){a.$treeScope.$callbacks.dragStart(f.eventArgs(y,h))}),$=Math.max(F.scrollHeight,F.offsetHeight,Y.clientHeight,Y.scrollHeight,Y.offsetHeight),b=Math.max(F.scrollWidth,F.offsetWidth,Y.clientWidth,Y.scrollWidth,Y.offsetWidth))}}},x=function(e){var r,o,s,u,l,p,w,x,_,S,k,C,E,M,T,A,D,N,P,I,R,F=t.eventObj(e);if(g){if(e.preventDefault(),n.getSelection?n.getSelection().removeAllRanges():n.document.selection&&n.document.selection.empty(),o=F.pageX-h.offsetX,s=F.pageY-h.offsetY,o<0&&(o=0),s<0&&(s=0),s+10>$&&(s=$-10),o+10>b&&(o=b-10),g.css({left:o+"px",top:s+"px"}),m?(p=m.getBoundingClientRect(),u=m.scrollTop,l=u+m.clientHeight,p.bottom<F.clientY&&l<m.scrollHeight&&(M=Math.min(m.scrollHeight-l,10),m.scrollTop+=M),p.top>F.clientY&&u>0&&(T=Math.min(u,10),m.scrollTop-=T)):(u=window.pageYOffset||n.document.documentElement.scrollTop,l=u+(window.innerHeight||n.document.clientHeight||n.document.clientHeight),l<F.pageY&&l<$&&(M=Math.min($-l,10),window.scrollBy(0,M)),u>F.pageY&&(T=Math.min(u,10),window.scrollBy(0,-T))),t.positionMoved(e,h,c),c)return void(c=!1);if(x=F.pageX-(n.pageXOffset||n.document.body.scrollLeft||n.document.documentElement.scrollLeft)-(n.document.documentElement.clientLeft||0),_=F.pageY-(n.pageYOffset||n.document.body.scrollTop||n.document.documentElement.scrollTop)-(n.document.documentElement.clientTop||0),angular.isFunction(g.hide)?g.hide():(S=g[0].style.display,g[0].style.display="none"),n.document.elementFromPoint(x,_),C=angular.element(n.document.elementFromPoint(x,_)),O=t.treeNodeHandlerContainerOfElement(C),O&&(C=angular.element(O)),angular.isFunction(g.show)?g.show():g[0].style.display=S,t.elementIsTree(C)?k=C.controller("uiTree").scope:t.elementIsTreeNodeHandle(C)?k=C.controller("uiTreeHandle").scope:t.elementIsTreeNode(C)?k=C.controller("uiTreeNode").scope:t.elementIsTreeNodes(C)?k=C.controller("uiTreeNodes").scope:t.elementIsPlaceholder(C)?k=C.controller("uiTreeNodes").scope:C.controller("uiTreeNode")&&(k=C.controller("uiTreeNode").scope),k&&k.$treeScope&&k.$treeScope.$id&&k.$treeScope.$id===j&&h.dirAx)h.distX>0&&(r=f.prev())&&!r.collapsed&&r.accept(a,r.childNodesCount())&&(r.$childNodesScope.$element.append(d),f.moveTo(r.$childNodesScope,r.childNodes(),r.childNodesCount())),h.distX<0&&(f.next()||(w=f.parentNode())&&w.$parentNodesScope.accept(a,w.index()+1)&&(w.$element.after(d),f.moveTo(w.$parentNodesScope,w.siblings(),w.index()+1)));else{if(E=!1,!k)return;if(!k.$treeScope||k.$parent.nodropEnabled||k.$treeScope.nodropEnabled||d.css("display",""),"uiTree"===k.$type&&k.dragEnabled&&(E=k.isEmpty()),"uiTreeHandle"===k.$type&&(k=k.$nodeScope),"uiTreeNode"!==k.$type&&!E)return void(L.appendChildOnHover&&!f.next()&&v&&(w=f.parentNode(),w.$element.after(d),f.moveTo(w.$parentNodesScope,w.siblings(),w.index()+1),v=!1));V&&d.parent()[0]!=V.$element[0]&&(V.resetEmptyElement(),V=null),E?(V=k,k.$nodesScope.accept(a,0)&&(k.place(d),f.moveTo(k.$nodesScope,k.$nodesScope.childNodes(),0))):k.dragEnabled()&&(angular.isDefined(a.expandTimeoutOn)&&a.expandTimeoutOn!==k.id&&(i.cancel(a.expandTimeout),delete a.expandTimeout,delete a.expandTimeoutOn,a.$callbacks.expandTimeoutCancel()),k.collapsed&&(!0===a.expandOnHover||angular.isNumber(a.expandOnHover)&&0===a.expandOnHover?(k.collapsed=!1,k.$treeScope.$callbacks.toggle(!1,k)):!1!==a.expandOnHover&&angular.isNumber(a.expandOnHover)&&a.expandOnHover>0&&angular.isUndefined(a.expandTimeoutOn)&&(a.expandTimeoutOn=k.$id,a.$callbacks.expandTimeoutStart(),a.expandTimeout=i(function(){a.$callbacks.expandTimeoutEnd(),k.collapsed=!1,k.$treeScope.$callbacks.toggle(!1,k)},a.expandOnHover))),C=k.$element,A=t.offset(C),P=t.height(C),I=k.$childNodesScope?k.$childNodesScope.$element:null,R=I?t.height(I):0,P-=R,N=L.appendChildOnHover?.25*P:t.height(C)/2,D=F.pageY<A.top+N,k.$parentNodesScope.accept(a,k.index())?D?(C[0].parentNode.insertBefore(d[0],C[0]),f.moveTo(k.$parentNodesScope,k.siblings(),k.index())):L.appendChildOnHover&&k.accept(a,k.childNodesCount())?(k.$childNodesScope.$element.prepend(d),f.moveTo(k.$childNodesScope,k.childNodes(),0),v=!0):(C.after(d),f.moveTo(k.$parentNodesScope,k.siblings(),k.index()+1)):!D&&k.accept(a,k.childNodesCount())&&(k.$childNodesScope.$element.append(d),f.moveTo(k.$childNodesScope,k.childNodes(),k.childNodesCount())))}a.$apply(function(){a.$treeScope.$callbacks.dragMove(f.eventArgs(y,h))})}},_=function(e){var t=f.eventArgs(y,h);e.preventDefault(),D(),i.cancel(a.expandTimeout),a.$treeScope.$apply(function(){o.when(a.$treeScope.$callbacks.beforeDrop(t)).then(function(e){!1!==e&&a.$$allowNodeDrop?(f.apply(),a.$treeScope.$callbacks.dropped(t)):T()}).catch(function(){T()}).finally(function(){p.replaceWith(a.$element),d.remove(),g&&(g.remove(),g=null),a.$treeScope.$callbacks.dragStop(t),a.$$allowNodeDrop=!1,f=null;var e=document.body.getAttribute("ui-tree-cursor");null!==e&&(r.find("body").css({cursor:e}),document.body.removeAttribute("ui-tree-cursor"))})})},S=function(e){a.dragEnabled()&&w(e)},k=function(e){x(e)},C=function(e){a.$$allowNodeDrop=!0,_(e)},E=function(e){_(e)},M=function(){var e;return{exec:function(t,n){n||(n=0),this.cancel(),e=i(t,n)},cancel:function(){i.cancel(e)}}}(),N=function(e){27===e.keyCode&&C(e)},T=function(){s.bind("touchstart mousedown",function(e){a.dragDelay>0?M.exec(function(){S(e)},a.dragDelay):S(e)}),s.bind("touchend touchcancel mouseup",function(){a.dragDelay>0&&M.cancel()})},T(),A=function(){angular.element(r).bind("touchend",C),angular.element(r).bind("touchcancel",C),angular.element(r).bind("touchmove",k),angular.element(r).bind("mouseup",C),angular.element(r).bind("mousemove",k),angular.element(r).bind("mouseleave",E),angular.element(r).bind("keydown",N)},D=function(){angular.element(r).unbind("touchend",C),angular.element(r).unbind("touchcancel",C),angular.element(r).unbind("touchmove",k),angular.element(r).unbind("mouseup",C),angular.element(r).unbind("mousemove",k),angular.element(r).unbind("mouseleave",E),angular.element(r).unbind("keydown",N)}}}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTreeNodes",["treeConfig","$window",function(e){return{require:["ngModel","?^uiTreeNode","^uiTree"],restrict:"A",scope:!0,controller:"TreeNodesController",link:function(t,n,r,i){var o={},a=i[0],s=i[1],u=i[2];angular.extend(o,e),o.nodesClass&&n.addClass(o.nodesClass),s?(s.scope.$childNodesScope=t,t.$nodeScope=s.scope):u.scope.$nodesScope=t,t.$treeScope=u.scope,a&&(a.$render=function(){t.$modelValue=a.$modelValue}),t.$watch(function(){return r.maxDepth},function(e){"number"==typeof e&&(t.maxDepth=e)}),t.$watch(function(){return r.nodropEnabled},function(e){void 0!==e&&(t.nodropEnabled=!0)},!0)}}}])}(),function(){"use strict";function e(e,t){if(void 0===t)return null;for(var n=t.parentNode,r=1,i="function"==typeof n.setAttribute&&n.hasAttribute(e)?n:null;n&&"function"==typeof n.setAttribute&&!n.hasAttribute(e);){if(n=n.parentNode,i=n,n===document.documentElement){i=null;break}r++}return i}angular.module("ui.tree").factory("UiTreeHelper",["$document","$window","treeConfig",function(t,n,r){return{nodesData:{},setNodeAttribute:function(e,t,n){if(!e.$modelValue)return null;var r=this.nodesData[e.$modelValue.$$hashKey];r||(r={},this.nodesData[e.$modelValue.$$hashKey]=r),r[t]=n},getNodeAttribute:function(e,t){if(!e.$modelValue)return null;var n=this.nodesData[e.$modelValue.$$hashKey];return n?n[t]:null},nodrag:function(e){return void 0!==e.attr("data-nodrag")&&"false"!==e.attr("data-nodrag")},eventObj:function(e){var t=e;return void 0!==e.targetTouches?t=e.targetTouches.item(0):void 0!==e.originalEvent&&void 0!==e.originalEvent.targetTouches&&(t=e.originalEvent.targetTouches.item(0)),t},dragInfo:function(e){return{source:e,sourceInfo:{cloneModel:!0===e.$treeScope.cloneEnabled?angular.copy(e.$modelValue):void 0,nodeScope:e,index:e.index(),nodesScope:e.$parentNodesScope},index:e.index(),siblings:e.siblings().slice(0),parent:e.$parentNodesScope,resetParent:function(){this.parent=e.$parentNodesScope},moveTo:function(e,t,n){this.parent=e,this.siblings=t.slice(0);var r=this.siblings.indexOf(this.source);r>-1&&(this.siblings.splice(r,1),this.source.index()<n&&n--),this.siblings.splice(n,0,this.source),this.index=n},parentNode:function(){return this.parent.$nodeScope},prev:function(){return this.index>0?this.siblings[this.index-1]:null},next:function(){return this.index<this.siblings.length-1?this.siblings[this.index+1]:null},isClone:function(){return!0===this.source.$treeScope.cloneEnabled},clonedNode:function(e){return angular.copy(e)},isDirty:function(){return this.source.$parentNodesScope!=this.parent||this.source.index()!=this.index},isForeign:function(){return this.source.$treeScope!==this.parent.$treeScope},eventArgs:function(e,t){return{source:this.sourceInfo,dest:{index:this.index,nodesScope:this.parent},elements:e,pos:t}},apply:function(){var e=this.source.$modelValue;this.parent.nodropEnabled||this.parent.$treeScope.nodropEnabled||this.isDirty()&&(this.isClone()&&this.isForeign()?this.parent.insertNode(this.index,this.sourceInfo.cloneModel):(this.source.remove(),this.parent.insertNode(this.index,e)))}}},height:function(e){return e.prop("scrollHeight")},width:function(e){return e.prop("scrollWidth")},offset:function(e){var r=e[0].getBoundingClientRect();return{width:e.prop("offsetWidth"),height:e.prop("offsetHeight"),top:r.top+(n.pageYOffset||t[0].body.scrollTop||t[0].documentElement.scrollTop),left:r.left+(n.pageXOffset||t[0].body.scrollLeft||t[0].documentElement.scrollLeft)}},positionStarted:function(e,t){var n={},r=e.pageX,i=e.pageY;return e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length>0&&(r=e.originalEvent.touches[0].pageX,i=e.originalEvent.touches[0].pageY),n.offsetX=r-this.offset(t).left,n.offsetY=i-this.offset(t).top,n.startX=n.lastX=r,n.startY=n.lastY=i,n.nowX=n.nowY=n.distX=n.distY=n.dirAx=0,n.dirX=n.dirY=n.lastDirX=n.lastDirY=n.distAxX=n.distAxY=0,n},positionMoved:function(e,t,n){var r,i=e.pageX,o=e.pageY;if(e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length>0&&(i=e.originalEvent.touches[0].pageX,o=e.originalEvent.touches[0].pageY),t.lastX=t.nowX,t.lastY=t.nowY,t.nowX=i,t.nowY=o,t.distX=t.nowX-t.lastX,t.distY=t.nowY-t.lastY,t.lastDirX=t.dirX,t.lastDirY=t.dirY,t.dirX=0===t.distX?0:t.distX>0?1:-1,t.dirY=0===t.distY?0:t.distY>0?1:-1,r=Math.abs(t.distX)>Math.abs(t.distY)?1:0,n)return t.dirAx=r,void(t.moving=!0);t.dirAx!==r?(t.distAxX=0,t.distAxY=0):(t.distAxX+=Math.abs(t.distX),0!==t.dirX&&t.dirX!==t.lastDirX&&(t.distAxX=0),t.distAxY+=Math.abs(t.distY),0!==t.dirY&&t.dirY!==t.lastDirY&&(t.distAxY=0)),t.dirAx=r},elementIsTreeNode:function(e){return void 0!==e.attr("ui-tree-node")},elementIsTreeNodeHandle:function(e){return void 0!==e.attr("ui-tree-handle")},elementIsTree:function(e){return void 0!==e.attr("ui-tree")},elementIsTreeNodes:function(e){return void 0!==e.attr("ui-tree-nodes")},elementIsPlaceholder:function(e){return e.hasClass(r.placeholderClass)},elementContainsTreeNodeHandler:function(e){return e[0].querySelectorAll("[ui-tree-handle]").length>=1},treeNodeHandlerContainerOfElement:function(t){return e("ui-tree-handle",t[0])}}}])}(),angular.module("bw.paging",[]).directive("paging",function(){function e(e,t,n){e.$watchCollection("[page,pageSize,total,disabled]",function(){f(e,n)})}function t(e,t){return'<ul data-ng-hide="Hide" data-ng-class="ulClass"> <li title="{{Item.title}}" data-ng-class="Item.liClass" data-ng-repeat="Item in List"> <a '+(t.pgHref?'data-ng-href="{{Item.pgHref}}" ':"href ")+'data-ng-class="Item.aClass" data-ng-click="Item.action()" data-ng-bind="Item.value"></a> </li></ul>'}function n(e,t){e.List=[],e.Hide=!1,e.page=parseInt(e.page)||1,e.total=parseInt(e.total)||0,e.adjacent=parseInt(e.adjacent)||2,e.pgHref=e.pgHref||"",e.dots=e.dots||"...",e.ulClass=e.ulClass||"pagination",e.activeClass=e.activeClass||"active",e.disabledClass=e.disabledClass||"disabled",e.textFirst=e.textFirst||"<<",e.textLast=e.textLast||">>",e.textNext=e.textNext||">",e.textPrev=e.textPrev||"<",e.textFirstClass=e.textFirstClass||"",e.textLastClass=e.textLastClass||"",e.textNextClass=e.textNextClass||"",e.textPrevClass=e.textPrevClass||"",e.textTitlePage=e.textTitlePage||"Page {page}",e.textTitleFirst=e.textTitleFirst||"First Page",e.textTitleLast=e.textTitleLast||"Last Page",e.textTitleNext=e.textTitleNext||"Next Page",e.textTitlePrev=e.textTitlePrev||"Previous Page",e.hideIfEmpty=r(e,t.hideIfEmpty),e.showPrevNext=r(e,t.showPrevNext),e.showFirstLast=r(e,t.showFirstLast),e.scrollTop=r(e,t.scrollTop),e.isDisabled=r(e,t.disabled)}function r(e,t){return!!angular.isDefined(t)&&!!e.$parent.$eval(t)}function i(e,t){e.page>t&&(e.page=t),e.page<=0&&(e.page=1),e.adjacent<=0&&(e.adjacent=2),t<=1&&(e.Hide=e.hideIfEmpty)}function o(e,t){e.page!=t&&(e.isDisabled||(e.page=t,e.pagingAction({page:e.page,pageSize:e.pageSize,total:e.total}),e.scrollTop&&scrollTo(0,0)))}function a(e,t,n){if(!(!e.showPrevNext&&!e.showFirstLast||t<1)){var r,i,a;if("prev"===n){r=e.page-1<=0;var s=e.page-1<=0?1:e.page-1;e.showFirstLast&&(i={value:e.textFirst,title:e.textTitleFirst,aClass:e.textFirstClass,page:1}),e.showPrevNext&&(a={value:e.textPrev,title:e.textTitlePrev,aClass:e.textPrevClass,page:s})}else{r=e.page+1>t;var u=e.page+1>=t?t:e.page+1;e.showPrevNext&&(i={value:e.textNext,title:e.textTitleNext,aClass:e.textNextClass,page:u}),e.showFirstLast&&(a={value:e.textLast,title:e.textTitleLast,aClass:e.textLastClass,page:t})}var l=function(t,n){return{title:t.title,aClass:t.aClass,value:t.aClass?"":t.value,liClass:n?e.disabledClass:"",pgHref:n?"":e.pgHref.replace(h,t.page),action:function(){n||o(e,t.page)}}};if(e.isDisabled&&(r=!0),i){var c=l(i,r);e.List.push(c)}if(a){var f=l(a,r);e.List.push(f)}}}function s(e,t,n){var r=0;for(r=e;r<=t;r++){var i=n.pgHref.replace(h,r),a=n.page==r?n.activeClass:"";n.isDisabled&&(i="",a=n.disabledClass),n.List.push({value:r,title:n.textTitlePage.replace(h,r),liClass:a,pgHref:i,action:function(){o(n,this.value)}})}}function u(e){e.List.push({value:e.dots,liClass:e.disabledClass})}function l(e,t){s(1,2,e),3!=t&&u(e)}function c(e,t,n){n!=e-2&&u(t),s(e-1,e,t)}function f(e,t){(!e.pageSize||e.pageSize<=0)&&(e.pageSize=1);var r=Math.ceil(e.total/e.pageSize);n(e,t),i(e,r);var o,u,f=2*e.adjacent+2;a(e,r,"prev"),r<=f+2?(o=1,s(o,r,e)):e.page-e.adjacent<=2?(o=1,u=1+f,s(o,u,e),c(r,e,u)):e.page<r-(e.adjacent+2)?(o=e.page-e.adjacent,u=e.page+e.adjacent,l(e,o),s(o,u,e),c(r,e,u)):(o=r-f,u=r,l(e,o),s(o,u,e)),a(e,r,"next")}var h=/\{page\}/g;return{restrict:"EA",link:e,template:t,scope:{page:"=",pageSize:"=",total:"=",disabled:"@",dots:"@",ulClass:"@",activeClass:"@",disabledClass:"@",adjacent:"@",pagingAction:"&",pgHref:"@",textFirst:"@",textLast:"@",textNext:"@",textPrev:"@",textFirstClass:"@",textLastClass:"@",textNextClass:"@",textPrevClass:"@",textTitlePage:"@",textTitleFirst:"@",textTitleLast:"@",textTitleNext:"@",textTitlePrev:"@"}}}),/*
 ng-sortable v1.3.6
 The MIT License (MIT)

 Copyright (c) 2014 Muhammed Ashik

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
 */
function(){"use strict";angular.module("as.sortable",[]).constant("sortableConfig",{itemClass:"as-sortable-item",handleClass:"as-sortable-item-handle",placeHolderClass:"as-sortable-placeholder",dragClass:"as-sortable-drag",hiddenClass:"as-sortable-hidden",dragging:"as-sortable-dragging"})}(),function(){"use strict";angular.module("as.sortable").factory("$helper",["$document","$window",function(e,t){return{height:function(e){return e[0].getBoundingClientRect().height},width:function(e){return e[0].getBoundingClientRect().width},offset:function(n,r){var i=n[0].getBoundingClientRect();return r||(r=e[0].documentElement),{width:i.width||n.prop("offsetWidth"),height:i.height||n.prop("offsetHeight"),top:i.top+(t.pageYOffset||r.scrollTop-r.offsetTop),left:i.left+(t.pageXOffset||r.scrollLeft-r.offsetLeft)}},eventObj:function(e){var t=e;return void 0!==e.targetTouches?t=e.targetTouches.item(0):void 0!==e.originalEvent&&void 0!==e.originalEvent.targetTouches&&(t=e.originalEvent.targetTouches.item(0)),t},isTouchInvalid:function(e){var t=!1;return void 0!==e.touches&&e.touches.length>1?t=!0:void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&e.originalEvent.touches.length>1&&(t=!0),t},positionStarted:function(e,t,n){var r={};return r.offsetX=e.pageX-this.offset(t,n).left,r.offsetY=e.pageY-this.offset(t,n).top,r.startX=r.lastX=e.pageX,r.startY=r.lastY=e.pageY,r.nowX=r.nowY=r.distX=r.distY=r.dirAx=0,r.dirX=r.dirY=r.lastDirX=r.lastDirY=r.distAxX=r.distAxY=0,r},calculatePosition:function(e,t){e.lastX=e.nowX,e.lastY=e.nowY,e.nowX=t.pageX,e.nowY=t.pageY,e.distX=e.nowX-e.lastX,e.distY=e.nowY-e.lastY,e.lastDirX=e.dirX,e.lastDirY=e.dirY,e.dirX=0===e.distX?0:e.distX>0?1:-1,e.dirY=0===e.distY?0:e.distY>0?1:-1;var n=Math.abs(e.distX)>Math.abs(e.distY)?1:0;e.dirAx!==n?(e.distAxX=0,e.distAxY=0):(e.distAxX+=Math.abs(e.distX),0!==e.dirX&&e.dirX!==e.lastDirX&&(e.distAxX=0),e.distAxY+=Math.abs(e.distY),0!==e.dirY&&e.dirY!==e.lastDirY&&(e.distAxY=0)),e.dirAx=n},movePosition:function(e,t,n,r,i,o){var a,s="relative"===i;t.x=e.pageX-n.offsetX,t.y=e.pageY-n.offsetY,r&&(a=this.offset(r,o),s&&(t.x-=a.left,t.y-=a.top,a.left=0,a.top=0),t.x<a.left?t.x=a.left:t.x>=a.width+a.left-this.offset(t).width&&(t.x=a.width+a.left-this.offset(t).width),t.y<a.top?t.y=a.top:t.y>=a.height+a.top-this.offset(t).height&&(t.y=a.height+a.top-this.offset(t).height)),t.css({left:t.x+"px",top:t.y+"px"}),this.calculatePosition(n,e)},dragItem:function(e){return{index:e.index(),parent:e.sortableScope,source:e,targetElement:null,targetElementOffset:null,sourceInfo:{index:e.index(),itemScope:e.itemScope,sortableScope:e.sortableScope},canMove:function(e,t,n){return this.targetElement!==t?(this.targetElement=t,this.targetElementOffset=n,!0):(e.dirX*(n.left-this.targetElementOffset.left)>0||e.dirY*(n.top-this.targetElementOffset.top)>0)&&(this.targetElementOffset=n,!0)},moveTo:function(e,t){this.parent=e,this.isSameParent()&&this.source.index()<t&&!this.sourceInfo.sortableScope.cloning&&(t-=1),this.index=t},isSameParent:function(){return this.parent.element===this.sourceInfo.sortableScope.element},isOrderChanged:function(){return this.index!==this.sourceInfo.index},eventArgs:function(){return{source:this.sourceInfo,dest:{index:this.index,sortableScope:this.parent}}},apply:function(){this.sourceInfo.sortableScope.cloning?this.parent.options.clone||this.parent.insertItem(this.index,angular.copy(this.source.modelValue)):(this.sourceInfo.sortableScope.removeItem(this.sourceInfo.index),(this.parent.options.allowDuplicates||this.parent.modelValue.indexOf(this.source.modelValue)<0)&&this.parent.insertItem(this.index,this.source.modelValue))}}},noDrag:function(e){return void 0!==e.attr("no-drag")||void 0!==e.attr("data-no-drag")},findAncestor:function(e,t){e=e[0];for(var n=Element.matches||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector;(e=e.parentElement)&&!n.call(e,t););return e?angular.element(e):angular.element(document.body)}}}])}(),function(){"use strict";var e=angular.module("as.sortable");e.controller("as.sortable.sortableController",["$scope",function(e){this.scope=e,e.modelValue=null,e.callbacks=null,e.type="sortable",e.options={longTouch:!1},e.isDisabled=!1,e.insertItem=function(t,n){e.options.allowDuplicates?e.modelValue.splice(t,0,angular.copy(n)):e.modelValue.splice(t,0,n)},e.removeItem=function(t){var n=null;return t>-1&&(n=e.modelValue.splice(t,1)[0]),n},e.isEmpty=function(){return e.modelValue&&0===e.modelValue.length},e.accept=function(t,n,r){return e.callbacks.accept(t,n,r)}}]),e.directive("asSortable",function(){return{require:"ngModel",restrict:"A",scope:!0,controller:"as.sortable.sortableController",link:function(e,t,n,r){var i,o;(i=r)&&(i.$render=function(){e.modelValue=i.$modelValue},e.element=t,t.data("_scope",e),o={accept:null,orderChanged:null,itemMoved:null,dragStart:null,dragMove:null,dragCancel:null,dragEnd:null},o.accept=function(e,t,n){return!0},o.orderChanged=function(e){},o.itemMoved=function(e){},o.dragStart=function(e){},o.dragMove=angular.noop,o.dragCancel=function(e){},o.dragEnd=function(e){},e.$watch(n.asSortable,function(t,n){angular.forEach(t,function(t,n){o[n]?"function"==typeof t&&(o[n]=t):e.options[n]=t}),e.callbacks=o},!0),angular.isDefined(n.isDisabled)&&e.$watch(n.isDisabled,function(t,n){angular.isUndefined(t)||(e.isDisabled=t)},!0))}}})}(),function(){"use strict";function e(t,n){return!(!n||"HTML"===n.nodeName)&&(n.parentNode===t||e(t,n.parentNode))}var t=angular.module("as.sortable");t.controller("as.sortable.sortableItemHandleController",["$scope",function(e){this.scope=e,e.itemScope=null,e.type="handle"}]),t.directive("asSortableItemHandle",["sortableConfig","$helper","$window","$document","$timeout",function(t,n,r,i,o){return{require:"^asSortableItem",scope:!0,restrict:"A",controller:"as.sortable.sortableItemHandleController",link:function(a,s,u,l){function c(e,t){"table-row"!==g.css("display")&&g.css("display","block"),t.sortableScope.options.clone||(e[0].parentNode.insertBefore(g[0],e[0]),y.moveTo(t.sortableScope,t.index()))}function f(e,t){"table-row"!==g.css("display")&&g.css("display","block"),t.sortableScope.options.clone||(e.after(g),y.moveTo(t.sortableScope,t.index()+1))}function h(e){for(var t;!t&&e.length;)(t=e.data("_scope"))||(e=e.parent());return t}function d(){a.itemScope.sortableScope.cloning||m.replaceWith(a.itemScope.element),g.remove(),p.remove(),p=null,R=!1,$.css("cursor",""),$.removeClass("as-sortable-un-selectable")}var p,g,m,v,y,$,b,w,x,_,S,k,C,E,M,T,A,D,N,O,P,I,j,L,R,V,F,Y,H=!1,q=!1;O="ontouchstart"in r,P=/iPad|iPhone|iPod/.test(r.navigator.userAgent)&&!r.MSStream,t.handleClass&&s.addClass(t.handleClass),a.itemScope=l.scope,s.data("_scope",a),a.$watchGroup(["sortableScope.isDisabled","sortableScope.options.longTouch"],function(e){H!==e[0]?(H=e[0],H?A():T()):q!==e[1]?(q=e[1],A(),T()):T()}),a.$on("$destroy",function(){angular.element(i[0].body).unbind("keydown",Y)}),V=function(e){return"function"==typeof a.sortableScope.options.placeholder?angular.element(a.sortableScope.options.placeholder(e)):"string"==typeof a.sortableScope.options.placeholder?angular.element(a.sortableScope.options.placeholder):angular.element(i[0].createElement(e.element.prop("tagName")))},w=function(e){var t,r=function(){angular.element(i).unbind("mousemove",o),angular.element(i).unbind("touchmove",o),s.unbind("mouseup",r),s.unbind("touchend",r),s.unbind("touchcancel",r)},o=function(i){i.preventDefault();var o=n.eventObj(i);t||(t={clientX:o.clientX,clientY:o.clientY}),Math.abs(o.clientX-t.clientX)+Math.abs(o.clientY-t.clientY)>10&&(r(),_(e))};angular.element(i).bind("mousemove",o),angular.element(i).bind("touchmove",o),s.bind("mouseup",r),s.bind("touchend",r),s.bind("touchcancel",r),e.stopPropagation()},_=function(e){var r,o;(O||2!==e.button&&3!==e.which)&&(O&&n.isTouchInvalid(e)||!R&&E(e)&&(R=!0,e.preventDefault(),r=n.eventObj(e),a.sortableScope=a.sortableScope||a.itemScope.sortableScope,a.callbacks=a.callbacks||a.itemScope.callbacks,a.itemScope.sortableScope.options.clone||a.itemScope.sortableScope.options.ctrlClone&&e.ctrlKey?a.itemScope.sortableScope.cloning=!0:a.itemScope.sortableScope.cloning=!1,x=angular.element(i[0].querySelector(a.sortableScope.options.scrollableContainer)).length>0?i[0].querySelector(a.sortableScope.options.scrollableContainer):i[0].documentElement,$=a.sortableScope.options.containment?n.findAncestor(s,a.sortableScope.options.containment):angular.element(i[0].body),$.css("cursor","move"),$.css("cursor","-webkit-grabbing"),$.css("cursor","-moz-grabbing"),$.addClass("as-sortable-un-selectable"),b=a.sortableScope.options.containerPositioning||"absolute",y=n.dragItem(a.itemScope),o=a.itemScope.element.prop("tagName"),p=angular.element(i[0].createElement(a.sortableScope.element.prop("tagName"))).addClass(a.sortableScope.element.attr("class")).addClass(t.dragClass),p.css("width",n.width(a.itemScope.element)+"px"),p.css("height",n.height(a.itemScope.element)+"px"),g=V(a.itemScope).addClass(t.placeHolderClass).addClass(a.sortableScope.options.additionalPlaceholderClass),g.css("width",n.width(a.itemScope.element)+"px"),g.css("height",n.height(a.itemScope.element)+"px"),m=angular.element(i[0].createElement(o)),t.hiddenClass&&m.addClass(t.hiddenClass),v=n.positionStarted(r,a.itemScope.element,x),a.itemScope.sortableScope.options.clone||a.itemScope.element.after(g),a.itemScope.sortableScope.cloning?p.append(a.itemScope.element.clone()):(a.itemScope.element.after(m),p.append(a.itemScope.element)),$.append(p),n.movePosition(r,p,v,$,b,x),a.sortableScope.$apply(function(){a.callbacks.dragStart(y.eventArgs())}),D()))},E=function(e){var t,r,i;for(t=angular.element(e.target),r=h(t),i=r&&"handle"===r.type;i&&t[0]!==s[0];)n.noDrag(t)&&(i=!1),t=t.parent();return i},S=function(o){var s,u,l,d,m;if((!O||!n.isTouchInvalid(o))&&R&&p){if(o.preventDefault(),s=n.eventObj(o),a.callbacks.dragMove!==angular.noop&&a.sortableScope.$apply(function(){a.callbacks.dragMove(v,$,s)}),u=s.pageX-i[0].documentElement.scrollLeft,l=s.pageY-(r.pageYOffset||i[0].documentElement.scrollTop),p.addClass(t.hiddenClass),m=angular.element(i[0].elementFromPoint(u,l)),p.removeClass(t.hiddenClass),n.movePosition(s,p,v,$,b,x),p.addClass(t.dragging),!(d=h(m))||!d.type)return;if("handle"===d.type&&(d=d.itemScope),"item"!==d.type&&"sortable"!==d.type)return;if("item"===d.type&&d.accept(a,d.sortableScope,d)){m=d.element;var w=n.offset(m,x);if(!y.canMove(v,m,w))return;var _=M(d.sortableScope.element);_<0?c(m,d):_<=d.index()?f(m,d):c(m,d)}"sortable"===d.type&&d.accept(a,d)&&!e(d.element[0],m[0])&&(F(m)||d.options.clone||(m[0].appendChild(g[0]),y.moveTo(d,d.modelValue.length)))}},M=function(e){var n,r;if(e.hasClass(t.placeHolderClass))return 0;for(n=e.children(),r=0;r<n.length;r+=1)if(angular.element(n[r]).hasClass(t.placeHolderClass))return r;return-1},F=function(e){return M(e)>=0},k=function(e){R&&(e.preventDefault(),p&&(d(),y.apply(),a.sortableScope.$apply(function(){y.isSameParent()?y.isOrderChanged()&&a.callbacks.orderChanged(y.eventArgs()):a.callbacks.itemMoved(y.eventArgs())}),a.sortableScope.$apply(function(){a.callbacks.dragEnd(y.eventArgs())}),y=null),N())},C=function(e){R&&(e.preventDefault(),p&&(d(),a.sortableScope.$apply(function(){a.callbacks.dragCancel(y.eventArgs())}),y=null),N())},T=function(){O&&(q?P?(s.bind("touchstart",I),s.bind("touchend",j),s.bind("touchmove",j)):s.bind("contextmenu",w):s.bind("touchstart",w)),s.bind("mousedown",w)},A=function(){s.unbind("touchstart",I),s.unbind("touchend",j),s.unbind("touchmove",j),s.unbind("contextmenu",w),s.unbind("touchstart",w),s.unbind("mousedown",w)},I=function(e){L=o(function(){w(e)},500)},j=function(){o.cancel(L)},Y=function(e){27===e.keyCode&&C(e)},angular.element(i[0].body).bind("keydown",Y),D=function(){angular.element(i).bind("touchmove",S),angular.element(i).bind("touchend",k),angular.element(i).bind("touchcancel",C),angular.element(i).bind("mousemove",S),angular.element(i).bind("mouseup",k)},N=function(){angular.element(i).unbind("touchend",k),angular.element(i).unbind("touchcancel",C),angular.element(i).unbind("touchmove",S),angular.element(i).unbind("mouseup",k),angular.element(i).unbind("mousemove",S)}}}}])}(),function(){"use strict";var e=angular.module("as.sortable");e.controller("as.sortable.sortableItemController",["$scope",function(e){this.scope=e,e.sortableScope=null,e.modelValue=null,e.type="item",e.index=function(){return e.$index},e.itemData=function(){return e.sortableScope.modelValue[e.$index]}}]),e.directive("asSortableItem",["sortableConfig",function(e){return{require:["^asSortable","?ngModel"],restrict:"A",controller:"as.sortable.sortableItemController",link:function(t,n,r,i){var o=i[0],a=i[1];e.itemClass&&n.addClass(e.itemClass),t.sortableScope=o.scope,a?a.$render=function(){t.modelValue=a.$modelValue}:t.modelValue=o.scope.modelValue[t.$index],t.element=n,n.data("_scope",t)}}}])}(),function(){"use strict";var e=function(e,t){return{restrict:"A",scope:{title:"@"},link:function(n,r,i){n.createTooltip=function(e){if(i.title||i.tooltip){var t=n.getDirection();n.tooltipElement=angular.element("<div>").addClass("angular-tooltip angular-tooltip-"+t),angular.element(document).find("body").append(n.tooltipElement),n.updateTooltip(i.title||i.tooltip),n.tooltipElement.addClass("angular-tooltip-fade-in")}},n.updateTooltip=function(i){n.tooltipElement.html(i),t(n.tooltipElement.contents())(n);var o=n.calculatePosition(n.tooltipElement,n.getDirection());n.tooltipElement.css(o),e(function(){r.removeAttr("ng-attr-title"),r.removeAttr("title")})},n.$watch("title",function(e){n.tooltipElement&&n.updateTooltip(e)}),n.removeTooltip=function(){angular.element(document.querySelectorAll(".angular-tooltip")).remove()},n.getDirection=function(){return r.attr("tooltip-direction")||r.attr("title-direction")||"top"},n.calculatePosition=function(e,t){var n=e[0].getBoundingClientRect(),i=r[0].getBoundingClientRect(),o=window.scrollX||document.documentElement.scrollLeft,a=window.scrollY||document.documentElement.scrollTop;switch(t){case"top":case"top-center":case"top-middle":return{left:i.left+i.width/2-n.width/2+o+"px",top:i.top-n.height-6+a+"px"};case"top-right":return{left:i.left+i.width-12+o+"px",top:i.top-n.height-6+a+"px"};case"right-top":return{left:i.left+i.width+6+o+"px",top:i.top-n.height+12+a+"px"};case"right":case"right-center":case"right-middle":return{left:i.left+i.width+6+o+"px",top:i.top+i.height/2-n.height/2+a+"px"};case"right-bottom":return{left:i.left+i.width+6+o+"px",top:i.top+i.height-12+a+"px"};case"bottom-right":return{left:i.left+i.width-12+o+"px",top:i.top+i.height+6+a+"px"};case"bottom":case"bottom-center":case"bottom-middle":return{left:i.left+i.width/2-n.width/2+o+"px",top:i.top+i.height+6+a+"px"};case"bottom-left":return{left:i.left-n.width+12+o+"px",top:i.top+i.height+6+a+"px"};case"left-bottom":return{left:i.left-n.width-6+o+"px",top:i.top+i.height-12+a+"px"};case"left":case"left-center":case"left-middle":return{left:i.left-n.width-6+o+"px",top:i.top+i.height/2-n.height/2+a+"px"};case"left-top":return{left:i.left-n.width-6+o+"px",top:i.top-n.height+12+a+"px"};case"top-left":return{left:i.left-n.width+12+o+"px",top:i.top-n.height-6+a+"px"}}},i.title||i.tooltip?(r.on("mouseover",n.createTooltip),r.on("mouseout",n.removeTooltip)):(r.off("mouseover",n.createTooltip),r.off("mouseout",n.removeTooltip)),r.on("destroy",n.removeTooltip),n.$on("$destroy",n.removeTooltip)}}};e.$inject=["$timeout","$compile"],angular.module("tooltips",[]).directive("title",e).directive("tooltip",e)}(),angular.module("colorpicker.module",[]).factory("Helper",function(){"use strict";return{closestSlider:function(e){return(e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector).bind(e)("I")?e.parentNode:e},getOffset:function(e,t){for(var n=0,r=0,i=e.getBoundingClientRect();e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t||"BODY"!==e.tagName?(n+=e.scrollLeft,r+=e.scrollTop):(n+=document.documentElement.scrollLeft||e.scrollLeft,r+=document.documentElement.scrollTop||e.scrollTop),e=e.offsetParent;return{top:i.top+window.pageYOffset,left:i.left+window.pageXOffset,scrollX:n,scrollY:r}},stringParsers:[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}]}}).factory("Color",["Helper",function(e){"use strict";return{value:{h:1,s:1,b:1,a:1},rgb:function(){var e=this.toRGB();return"rgb("+e.r+","+e.g+","+e.b+")"},rgba:function(){var e=this.toRGB();return"rgba("+e.r+","+e.g+","+e.b+","+e.a+")"},hex:function(){return this.toHex()},RGBtoHSB:function(e,t,n,r){e/=255,t/=255,n/=255;var i,o,a,s;return a=Math.max(e,t,n),s=a-Math.min(e,t,n),i=0===s?null:a===e?(t-n)/s:a===t?(n-e)/s+2:(e-t)/s+4,i=(i+360)%6*60/360,o=0===s?0:s/a,{h:i||1,s:o,b:a,a:r||1}},setColor:function(t){t=t?t.toLowerCase():t;for(var n in e.stringParsers)if(e.stringParsers.hasOwnProperty(n)){var r=e.stringParsers[n],i=r.re.exec(t),o=i&&r.parse(i);if(o)return this.value=this.RGBtoHSB.apply(null,o),!1}},setHue:function(e){this.value.h=1-e},setSaturation:function(e){this.value.s=e},setLightness:function(e){this.value.b=1-e},setAlpha:function(e){this.value.a=parseInt(100*(1-e),10)/100},toRGB:function(e,t,n,r){e||(e=this.value.h,t=this.value.s,n=this.value.b),e*=360;var i,o,a,s,u;return e=e%360/60,u=n*t,s=u*(1-Math.abs(e%2-1)),i=o=a=n-u,e=~~e,i+=[u,s,0,0,s,u][e],o+=[s,u,u,s,0,0][e],a+=[0,0,s,u,u,s][e],{r:Math.round(255*i),g:Math.round(255*o),b:Math.round(255*a),a:r||this.value.a}},toHex:function(e,t,n,r){var i=this.toRGB(e,t,n,r);return"#"+(1<<24|parseInt(i.r,10)<<16|parseInt(i.g,10)<<8|parseInt(i.b,10)).toString(16).substr(1)}}}]).factory("Slider",["Helper",function(e){"use strict";var t={maxLeft:0,maxTop:0,callLeft:null,callTop:null,knob:{top:0,left:0}},n={};return{getSlider:function(){return t},getLeftPosition:function(e){return Math.max(0,Math.min(t.maxLeft,t.left+((e.pageX||n.left)-n.left)))},getTopPosition:function(e){return Math.max(0,Math.min(t.maxTop,t.top+((e.pageY||n.top)-n.top)))},setSlider:function(r,i){var o=e.closestSlider(r.target),a=e.getOffset(o,i),s=o.getBoundingClientRect(),u=r.clientX-s.left,l=r.clientY-s.top;t.knob=o.children[0].style,t.left=r.pageX-a.left-window.pageXOffset+a.scrollX,t.top=r.pageY-a.top-window.pageYOffset+a.scrollY,n={left:r.pageX-(u-t.left),top:r.pageY-(l-t.top)}},setSaturation:function(e,n,r){t={maxLeft:r,maxTop:r,callLeft:"setSaturation",callTop:"setLightness"},this.setSlider(e,n)},setHue:function(e,n,r){t={maxLeft:0,maxTop:r,callLeft:!1,callTop:"setHue"},this.setSlider(e,n)},setAlpha:function(e,n,r){t={maxLeft:0,maxTop:r,callLeft:!1,callTop:"setAlpha"},this.setSlider(e,n)},setKnob:function(e,n){t.knob.top=e+"px",t.knob.left=n+"px"}}}]).directive("colorpicker",["$document","$compile","Color","Slider","Helper",function(e,t,n,r,i){"use strict";return{require:"?ngModel",restrict:"A",link:function(o,a,s,u){function l(){e.on("mousemove",f),e.on("mouseup",h)}function c(){try{I.css("backgroundColor",N[w]())}catch(e){I.css("backgroundColor",N.toHex())}P.css("backgroundColor",N.toHex(N.value.h,1,1,1)),"rgba"===w&&(b.css.backgroundColor=N.toHex())}function f(e){var t=r.getLeftPosition(e),n=r.getTopPosition(e),i=r.getSlider();r.setKnob(n,t),i.callLeft&&N[i.callLeft].call(N,t/E),i.callTop&&N[i.callTop].call(N,n/E),c();var s=N[w]();return a.val(s),u&&o.$apply(u.$setViewValue(s)),C&&L.val(s),!1}function h(){v("colorpicker-selected"),e.off("mousemove",f),e.off("mouseup",h)}function d(e){N.setColor(a.val()),C&&!e&&L.val(a.val()),j.eq(0).css({left:N.value.s*E+"px",top:E-N.value.b*E+"px"}),j.eq(1).css("top",E*(1-N.value.h)+"px"),j.eq(2).css("top",E*(1-N.value.a)+"px"),c()}function p(){var e,t=i.getOffset(a[0]);return angular.isDefined(s.colorpickerParent)&&(t.left=0,t.top=0),"top"===x?e={top:t.top-147,left:t.left}:"right"===x?e={top:t.top,left:t.left+126}:"bottom"===x?e={top:t.top+a[0].offsetHeight+2,left:t.left}:"left"===x&&(e={top:t.top,left:t.left-150}),{top:e.top+"px",left:e.left+"px"}}function g(){y()}function m(){D.hasClass("colorpicker-visible")||(d(),D.addClass("colorpicker-visible").css(p()),v("colorpicker-shown"),!1===_&&e.on("mousedown",g),s.colorpickerIsOpen&&(o[s.colorpickerIsOpen]=!0,o.$$phase||o.$digest()))}function v(e){u&&o.$emit(e,{name:s.ngModel,value:u.$modelValue})}function y(){D.hasClass("colorpicker-visible")&&(D.removeClass("colorpicker-visible"),v("colorpicker-closed"),e.off("mousedown",g),s.colorpickerIsOpen&&(o[s.colorpickerIsOpen]=!1,o.$$phase||o.$digest()))}var $,b,w=s.colorpicker?s.colorpicker:"hex",x=angular.isDefined(s.colorpickerPosition)?s.colorpickerPosition:"bottom",_=!!angular.isDefined(s.colorpickerInline)&&s.colorpickerInline,S=!!angular.isDefined(s.colorpickerFixedPosition)&&s.colorpickerFixedPosition,k=angular.isDefined(s.colorpickerParent)?a.parent():angular.element(document.body),C=!!angular.isDefined(s.colorpickerWithInput)&&s.colorpickerWithInput,E=angular.isDefined(s.colorpickerSize)?s.colorpickerSize:100,$=E+"px",M=C?'<input type="text" name="colorpicker-input" spellcheck="false">':"",T=_?"":'<button type="button" class="close close-colorpicker">&times;</button>',A='<div class="colorpicker dropdown"><div class="dropdown-menu"><colorpicker-saturation><i></i></colorpicker-saturation><colorpicker-hue><i></i></colorpicker-hue><colorpicker-alpha><i></i></colorpicker-alpha><colorpicker-preview></colorpicker-preview>'+M+T+"</div></div>",D=angular.element(A),N=n,O=D.find("colorpicker-hue"),P=D.find("colorpicker-saturation"),I=D.find("colorpicker-preview"),j=D.find("i");if(t(D)(o),D.css("min-width",parseInt(E)+29+"px"),P.css({width:$,height:$}),O.css("height",$),C){var L=D.find("input");L.css("width",$),L.on("mousedown",function(e){e.stopPropagation()}).on("keyup",function(){var e=this.value;a.val(e),u&&u.$modelValue!==e&&(o.$apply(u.$setViewValue(e)),d(!0))})}"rgba"===w&&(D.addClass("alpha"),b=D.find("colorpicker-alpha"),b.css("height",$),b.on("click",function(e){r.setAlpha(e,S,E),f(e)}).on("mousedown",function(e){r.setAlpha(e,S,E),l()}).on("mouseup",function(e){v("colorpicker-selected-alpha")})),O.on("click",function(e){r.setHue(e,S,E),f(e)}).on("mousedown",function(e){r.setHue(e,S,E),l()}).on("mouseup",function(e){v("colorpicker-selected-hue")}),P.on("click",function(e){r.setSaturation(e,S,E),f(e),angular.isDefined(s.colorpickerCloseOnSelect)&&y()}).on("mousedown",function(e){r.setSaturation(e,S,E),l()}).on("mouseup",function(e){v("colorpicker-selected-saturation")}),S&&D.addClass("colorpicker-fixed-position"),D.addClass("colorpicker-position-"+x),"true"===_&&D.addClass("colorpicker-inline"),k.append(D),u&&(u.$render=function(){a.val(u.$viewValue),d()}),a.on("blur keyup change",function(){d()}),a.on("$destroy",function(){D.remove()}),!1===_?a.on("click",m):m(),D.on("mousedown",function(e){e.stopPropagation(),e.preventDefault()}),D.find("button").on("click",function(){y()}),s.colorpickerIsOpen&&o.$watch(s.colorpickerIsOpen,function(e){!0===e?m():!1===e&&y()})}}}]),function(e,t){"use strict";if("undefined"!=typeof module&&module.exports){t("undefined"==typeof angular?require("angular"):angular,"undefined"==typeof moment?require("moment"):moment),module.exports="ui.bootstrap.datetimepicker"}else"function"==typeof define&&define.amd?define(["angular","moment"],t):t(e.angular,e.moment)}(this,function(e,t){"use strict";function n(n,r){function i(i,a,s){function u(e,t,n){if(n&&(n.stopPropagation(),n.preventDefault()),e&&t.utcDateValue>-1/0&&t.selectable&&_[e]){var r=_[e](t.utcDateValue),o=[];if(r.weeks)for(var a=0;a<r.weeks.length;a+=1)for(var s=r.weeks[a],u=0;u<s.dates.length;u+=1){var l=s.dates[u];o.push(l)}i.beforeRender({$view:r.currentView,$dates:r.dates||o,$leftDate:r.leftDate,$upDate:r.previousViewDate,$rightDate:r.rightDate}),i.data=r}}function l(e){for(var n=t.utc(e).startOf("year"),r=10*parseInt(n.year()/10,10),i=t.utc(m(e)).subtract(1,"year").startOf("year"),a=v(w.$modelValue,"YYYY"),s=t().format("YYYY"),u={currentView:"year",nextView:"year"===x.minView?"setTime":"month",previousViewDate:new o({utcDateValue:null,display:r+"-"+(r+9)}),leftDate:new o({utcDateValue:t.utc(i).subtract(9,"year").valueOf()}),rightDate:new o({utcDateValue:t.utc(i).add(11,"year").valueOf()}),dates:[]},l=0;l<12;l+=1){var c=t.utc(i).add(l,"years"),f={active:c.format("YYYY")===a,current:c.format("YYYY")===s,display:c.format("YYYY"),future:c.year()>r+9,past:c.year()<r,utcDateValue:c.valueOf()};u.dates.push(new o(f))}return u}function c(e){for(var n=t.utc(e).startOf("year"),r=m(e),i=v(w.$modelValue,"YYYY-MMM"),a=t().format("YYYY-MMM"),s={previousView:"year",currentView:"month",nextView:"month"===x.minView?"setTime":"day",previousViewDate:new o({utcDateValue:r.valueOf(),display:n.format("YYYY")}),leftDate:new o({utcDateValue:t.utc(n).subtract(1,"year").valueOf()}),rightDate:new o({utcDateValue:t.utc(n).add(1,"year").valueOf()}),dates:[]},u=0;u<12;u+=1){var l=t.utc(n).add(u,"months"),c={active:l.format("YYYY-MMM")===i,current:l.format("YYYY-MMM")===a,display:l.format("MMM"),utcDateValue:l.valueOf()};s.dates.push(new o(c))}return s}function f(e){for(var n=t.utc(e),r=t.utc(n).startOf("month"),i=t.utc(n).startOf("year"),a=t.utc(n).endOf("month"),s=t.utc(r).subtract(Math.abs(r.weekday()),"days"),u=v(w.$modelValue,"YYYY-MMM-DD"),l=t().format("YYYY-MMM-DD"),c={previousView:"month",currentView:"day",nextView:"day"===x.minView?"setTime":"hour",previousViewDate:new o({utcDateValue:i.valueOf(),display:r.format("YYYY-MMM")}),leftDate:new o({utcDateValue:t.utc(r).subtract(1,"months").valueOf()}),rightDate:new o({utcDateValue:t.utc(r).add(1,"months").valueOf()}),dayNames:[],weeks:[]},f=0;f<7;f+=1)c.dayNames.push(t.utc().weekday(f).format("dd"));for(var h=0;h<6;h+=1){for(var d={dates:[]},p=0;p<7;p+=1){var g=t.utc(s).add(7*h+p,"days"),m={active:g.format("YYYY-MMM-DD")===u,current:g.format("YYYY-MMM-DD")===l,display:g.format("D"),future:g.isAfter(a),past:g.isBefore(r),utcDateValue:g.valueOf()};d.dates.push(new o(m))}c.weeks.push(d)}return c}function h(e){for(var n=t.utc(e).startOf("day"),r=t.utc(n).startOf("month"),i=v(w.$modelValue,"YYYY-MM-DD H"),a=t().format("YYYY-MM-DD H"),s={previousView:"day",currentView:"hour",nextView:"hour"===x.minView?"setTime":"minute",previousViewDate:new o({utcDateValue:r.valueOf(),display:n.format("ll")}),leftDate:new o({utcDateValue:t.utc(n).subtract(1,"days").valueOf()}),rightDate:new o({utcDateValue:t.utc(n).add(1,"days").valueOf()}),dates:[]},u=0;u<24;u+=1){var l=t.utc(n).add(u,"hours"),c={active:l.format("YYYY-MM-DD H")===i,current:l.format("YYYY-MM-DD H")===a,display:l.format("LT"),utcDateValue:l.valueOf()};s.dates.push(new o(c))}return s}function d(e){for(var n=t.utc(e).startOf("hour"),r=t.utc(n).startOf("day"),i=v(w.$modelValue,"YYYY-MM-DD H:mm"),a=t().format("YYYY-MM-DD H:mm"),s={previousView:"hour",currentView:"minute",nextView:"setTime",previousViewDate:new o({utcDateValue:r.valueOf(),display:n.format("lll")}),leftDate:new o({utcDateValue:t.utc(n).subtract(1,"hours").valueOf()}),rightDate:new o({utcDateValue:t.utc(n).add(1,"hours").valueOf()}),dates:[]},u=60/x.minuteStep,l=0;l<u;l+=1){var c=t.utc(n).add(l*x.minuteStep,"minute"),f={active:c.format("YYYY-MM-DD H:mm")===i,current:c.format("YYYY-MM-DD H:mm")===a,display:c.format("LT"),utcDateValue:c.valueOf()};s.dates.push(new o(f))}return s}function p(e){var n=new Date(e),r=new Date(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds());switch(x.modelType){case"Date":break;case"moment":r=t([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()]);break;case"milliseconds":r=e;break;default:r=t([n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()]).format(x.modelType)}var o=w.$modelValue;return w.$setViewValue(r),x.dropdownSelector&&jQuery(x.dropdownSelector).dropdown("toggle"),i.onSetTime({newDate:r,oldDate:o}),_[x.startView](e)}function g(){i.changeView(x.startView,new o({utcDateValue:$(w.$viewValue)}))}function m(e){var n=10*parseInt(t.utc(e).year()/10,10);return t.utc(e).year(n).startOf("year")}function v(e,t){return e?y(e).format(t):""}function y(n){return t(n,e.isString(n)?x.parseFormat:void 0)}function $(e){var t=new Date;if(e){var n=y(e);if(!n.isValid())throw new Error("Invalid date: "+e);t=n.toDate()}return t.getTime()-6e4*t.getTimezoneOffset()}function b(){var t={};s.datetimepickerConfig&&(t=i.$parent.$eval(s.datetimepickerConfig));var o=e.extend({},n,t);return r.validate(o),o}var w=a.controller("ngModel"),x=b();i.screenReader=x.screenReader,i.changeView=u,w.$render=g,x.configureOn&&i.$on(x.configureOn,function(){x=b(),i.screenReader=x.screenReader,w.$render()}),x.renderOn&&i.$on(x.renderOn,w.$render);var _={year:l,month:c,day:f,hour:h,minute:d,setTime:p}}function o(){var e=new Date(arguments[0].utcDateValue),t=6e4*e.getTimezoneOffset();this.utcDateValue=e.getTime(),this.selectable=!0,this.localDateValue=function(){return this.utcDateValue+t};var n=["active","current","display","future","past","selectable","utcDateValue"],r=arguments[0];Object.keys(r).filter(function(e){return n.indexOf(e)>=0}).forEach(function(e){this[e]=r[e]},this)}var a={bindToController:!1,controller:i,controllerAs:"dateTimePickerController",replace:!0,require:"ngModel",restrict:"E",scope:{beforeRender:"&",onSetTime:"&"},templateUrl:"templates/datetimepicker.html"};return i.$inject=["$scope","$element","$attrs"],a}function r(){var n={configureOn:null,dropdownSelector:null,minuteStep:5,minView:"minute",modelType:"Date",parseFormat:"YYYY-MM-DDTHH:mm:ss.SSSZZ",renderOn:null,startView:"day"},r={bg:{previous:"предишна",next:"следваща"},ca:{previous:"anterior",next:"següent"},da:{previous:"forrige",next:"næste"},de:{previous:"vorige",next:"weiter"},"en-au":{previous:"previous",next:"next"},"en-gb":{previous:"previous",next:"next"},en:{previous:"previous",next:"next"},"es-us":{previous:"atrás",next:"siguiente"},es:{previous:"atrás",next:"siguiente"},fi:{previous:"edellinen",next:"seuraava"},fr:{previous:"précédent",next:"suivant"},hu:{previous:"előző",next:"következő"},it:{previous:"precedente",next:"successivo"},ja:{previous:"前へ",next:"次へ"},ml:{previous:"മുൻപുള്ളത്",next:"അടുത്തത്"},nl:{previous:"vorige",next:"volgende"},pl:{previous:"poprzednia",next:"następna"},"pt-br":{previous:"anteriores",next:"próximos"},pt:{previous:"anterior",next:"próximo"},ro:{previous:"anterior",next:"următor"},ru:{previous:"предыдущая",next:"следующая"},sk:{previous:"predošlá",next:"ďalšia"},sv:{previous:"föregående",next:"nästa"},tr:{previous:"önceki",next:"sonraki"},uk:{previous:"назад",next:"далі"},"zh-cn":{previous:"上一页",next:"下一页"},"zh-tw":{previous:"上一頁",next:"下一頁"}},i=r[t.locale().toLowerCase()];return e.extend({},n,{screenReader:i})}function i(t){function n(n){var r=["configureOn","dropdownSelector","minuteStep","minView","modelType","parseFormat","renderOn","startView","screenReader"],i=Object.keys(n).filter(function(e){return r.indexOf(e)<0});if(i.length)throw new Error("Invalid options: "+i.join(", "));var o=["minute","hour","day","month","year"];if(o.indexOf(n.startView)<0)throw new Error("invalid startView value: "+n.startView);if(o.indexOf(n.minView)<0)throw new Error("invalid minView value: "+n.minView);if(o.indexOf(n.minView)>o.indexOf(n.startView))throw new Error("startView must be greater than minView");if(!e.isNumber(n.minuteStep))throw new Error("minuteStep must be numeric")
;if(n.minuteStep<=0||n.minuteStep>=60)throw new Error("minuteStep must be greater than zero and less than 60");if(null!==n.configureOn&&!e.isString(n.configureOn))throw new Error("configureOn must be a string");if(null!==n.configureOn&&n.configureOn.length<1)throw new Error("configureOn must not be an empty string");if(null!==n.renderOn&&!e.isString(n.renderOn))throw new Error("renderOn must be a string");if(null!==n.renderOn&&n.renderOn.length<1)throw new Error("renderOn must not be an empty string");if(null!==n.modelType&&!e.isString(n.modelType))throw new Error("modelType must be a string");if(null!==n.modelType&&n.modelType.length<1)throw new Error("modelType must not be an empty string");if("Date"!==n.modelType&&"moment"!==n.modelType&&"milliseconds"!==n.modelType&&(n.parseFormat=n.modelType),null!==n.dropdownSelector&&!e.isString(n.dropdownSelector))throw new Error("dropdownSelector must be a string");null===n.dropdownSelector||"undefined"!=typeof jQuery&&"function"==typeof jQuery().dropdown||(t.error("Please DO NOT specify the dropdownSelector option unless you are using jQuery AND Bootstrap.js. Please include jQuery AND Bootstrap.js, or write code to close the dropdown in the on-set-time callback. \n\nThe dropdownSelector configuration option is being removed because it will not function properly."),delete n.dropdownSelector)}return{validate:n}}e.module("ui.bootstrap.datetimepicker",[]).service("dateTimePickerConfig",r).service("dateTimePickerValidator",i).directive("datetimepicker",n),n.$inject=["dateTimePickerConfig","dateTimePickerValidator"],i.$inject=["$log"]}),function(e,t){"use strict";if("undefined"!=typeof module&&module.exports){t("undefined"==typeof angular?require("angular"):angular,"undefined"==typeof moment?require("moment"):moment),module.exports="ui.bootstrap.datetimepicker"}else"function"==typeof define&&define.amd?define(["angular","moment"],t):t(e.angular,e.moment)}(this,function(e,t){"use strict";function n(){return function(n,r,i){function o(t){return function(n){return e.isUndefined(n)||""===n||null===n?null:t(n)}}function a(e){return s(e).toDate()}function s(e){return t(e,r,t.locale(),i)}function u(e){return t.utc(e,r,t.locale(),i).valueOf()}var l;switch(n){case"Date":l=o(a);break;case"moment":l=o(s);break;case"milliseconds":l=o(u);break;default:l=o(function(e){return function(t){return s(t).format(e)}}(n))}return l}}function r(n){function r(r,i,o,a){function s(e,t,n){return-1===["Date","moment","milliseconds",void 0].indexOf(e)&&n.indexOf(e)===t}function u(n,r){return!(!e.isUndefined(r)&&""!==r&&null!==r)||t(r,p,t.locale(),h).isValid()}function l(n){return e.isUndefined(n)||""===n||null===n?null:e.isDate(n)?t(n).format(f):e.isNumber(n)?t.utc(n).format(f):t(n,g,t.locale(),h).format(f)}function c(){function e(){return!0}function t(e,t){return t(e)}a.$viewValue=a.$formatters.filter(e).reverse().reduce(t,a.$modelValue),a.$render()}if(e.isDefined(r.dateFormats)&&!e.isString(r.dateFormats)&&!e.isArray(r.dateFormats))throw new Error("date-formats must be a single string or an array of strings i.e. date-formats=\"['YYYY-MM-DD']\" ");if(e.isDefined(o.modelType)&&(!e.isString(o.modelType)||0===o.modelType.length))throw new Error('model-type must be "Date", "moment", "milliseconds", or a moment format string');var f=o.dateTimeInput||t.defaultFormat,h=void 0===o.dateParseStrict||"true"===o.dateParseStrict,d=o.modelType||"Date",p=[o.dateTimeInput,d].concat(r.dateFormats).concat([t.ISO_8601]).filter(s),g=[d].concat(p).filter(s);a.$parsers.unshift(n(d,p,h)),a.$formatters.push(l),a.$validators.dateTimeInput=u,i.bind("blur",c)}return{require:"ngModel",restrict:"A",scope:{dateFormats:"="},link:r}}e.module("ui.dateTimeInput",[]).service("dateTimeParserFactory",n).directive("dateTimeInput",r),n.$inject=[],r.$inject=["dateTimeParserFactory"]});