/*!
 * jQuery JavaScript Library v2.0.3
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2013-07-03T13:30Z
 */
/*!
 * Bootstrap v3.3.4 (http://getbootstrap.com)
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */
if(function(t,e){function n(t){var e=t.length,n=ae.type(t);return ae.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||"function"!==n&&(0===e||"number"==typeof e&&e>0&&e-1 in t)}function i(t){var e=fe[t]={};return ae.each(t.match(se)||[],function(t,n){e[n]=!0}),e}function r(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=ae.expando+Math.random()}function a(t,n,i){var r;if(i===e&&1===t.nodeType)if(r="data-"+n.replace(ye,"-$1").toLowerCase(),i=t.getAttribute(r),"string"==typeof i){try{i="true"===i?!0:"false"===i?!1:"null"===i?null:+i+""===i?+i:ve.test(i)?JSON.parse(i):i}catch(a){}ge.set(t,n,i)}else i=e;return i}function o(){return!0}function s(){return!1}function l(){try{return B.activeElement}catch(t){}}function u(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function c(t,e,n){if(ae.isFunction(e))return ae.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return ae.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(Se.test(e))return ae.filter(e,t,n);e=ae.filter(e,t)}return ae.grep(t,function(t){return ee.call(e,t)>=0!==n})}function d(t,e){return ae.nodeName(t,"table")&&ae.nodeName(1===e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function h(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function p(t){var e=Fe.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function f(t,e){for(var n=t.length,i=0;n>i;i++)me.set(t[i],"globalEval",!e||me.get(e[i],"globalEval"))}function g(t,e){var n,i,r,a,o,s,l,u;if(1===e.nodeType){if(me.hasData(t)&&(a=me.access(t),o=me.set(e,a),u=a.events)){delete o.handle,o.events={};for(r in u)for(n=0,i=u[r].length;i>n;n++)ae.event.add(e,r,u[r][n])}ge.hasData(t)&&(s=ge.access(t),l=ae.extend({},s),ge.set(e,l))}}function m(t,n){var i=t.getElementsByTagName?t.getElementsByTagName(n||"*"):t.querySelectorAll?t.querySelectorAll(n||"*"):[];return n===e||n&&ae.nodeName(t,n)?ae.merge([t],i):i}function v(t,e){var n=e.nodeName.toLowerCase();"input"===n&&ze.test(t.type)?e.checked=t.checked:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}function y(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),i=e,r=Je.length;r--;)if(e=Je[r]+n,e in t)return e;return i}function b(t,e){return t=e||t,"none"===ae.css(t,"display")||!ae.contains(t.ownerDocument,t)}function x(e){return t.getComputedStyle(e,null)}function w(t,e){for(var n,i,r,a=[],o=0,s=t.length;s>o;o++)i=t[o],i.style&&(a[o]=me.get(i,"olddisplay"),n=i.style.display,e?(a[o]||"none"!==n||(i.style.display=""),""===i.style.display&&b(i)&&(a[o]=me.access(i,"olddisplay",C(i.nodeName)))):a[o]||(r=b(i),(n&&"none"!==n||!r)&&me.set(i,"olddisplay",r?n:ae.css(i,"display"))));for(o=0;s>o;o++)i=t[o],i.style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?a[o]||"":"none"));return t}function k(t,e,n){var i=Ue.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function $(t,e,n,i,r){for(var a=n===(i?"border":"content")?4:"width"===e?1:0,o=0;4>a;a+=2)"margin"===n&&(o+=ae.css(t,n+Qe[a],!0,r)),i?("content"===n&&(o-=ae.css(t,"padding"+Qe[a],!0,r)),"margin"!==n&&(o-=ae.css(t,"border"+Qe[a]+"Width",!0,r))):(o+=ae.css(t,"padding"+Qe[a],!0,r),"padding"!==n&&(o+=ae.css(t,"border"+Qe[a]+"Width",!0,r)));return o}function _(t,e,n){var i=!0,r="width"===e?t.offsetWidth:t.offsetHeight,a=x(t),o=ae.support.boxSizing&&"border-box"===ae.css(t,"boxSizing",!1,a);if(0>=r||null==r){if(r=je(t,e,a),(0>r||null==r)&&(r=t.style[e]),Ye.test(r))return r;i=o&&(ae.support.boxSizingReliable||r===t.style[e]),r=parseFloat(r)||0}return r+$(t,e,n||(o?"border":"content"),i,a)+"px"}function C(t){var e=B,n=Ke[t];return n||(n=M(t,e),"none"!==n&&n||(qe=(qe||ae("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(e.documentElement),e=(qe[0].contentWindow||qe[0].contentDocument).document,e.write("<!doctype html><html><body>"),e.close(),n=M(t,e),qe.detach()),Ke[t]=n),n}function M(t,e){var n=ae(e.createElement(t)).appendTo(e.body),i=ae.css(n[0],"display");return n.remove(),i}function D(t,e,n,i){var r;if(ae.isArray(e))ae.each(e,function(e,r){n||en.test(t)?i(t,r):D(t+"["+("object"==typeof r?e:"")+"]",r,n,i)});else if(n||"object"!==ae.type(e))i(t,e);else for(r in e)D(t+"["+r+"]",e[r],n,i)}function S(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,a=e.toLowerCase().match(se)||[];if(ae.isFunction(n))for(;i=a[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function A(t,e,n,i){function r(s){var l;return a[s]=!0,ae.each(t[s]||[],function(t,s){var u=s(e,n,i);return"string"!=typeof u||o||a[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),r(u),!1)}),l}var a={},o=t===bn;return r(e.dataTypes[0])||!a["*"]&&r("*")}function T(t,n){var i,r,a=ae.ajaxSettings.flatOptions||{};for(i in n)n[i]!==e&&((a[i]?t:r||(r={}))[i]=n[i]);return r&&ae.extend(!0,t,r),t}function E(t,n,i){for(var r,a,o,s,l=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),r===e&&(r=t.mimeType||n.getResponseHeader("Content-Type"));if(r)for(a in l)if(l[a]&&l[a].test(r)){u.unshift(a);break}if(u[0]in i)o=u[0];else{for(a in i){if(!u[0]||t.converters[a+" "+u[0]]){o=a;break}s||(s=a)}o=o||s}return o?(o!==u[0]&&u.unshift(o),i[o]):void 0}function I(t,e,n,i){var r,a,o,s,l,u={},c=t.dataTypes.slice();if(c[1])for(o in t.converters)u[o.toLowerCase()]=t.converters[o];for(a=c.shift();a;)if(t.responseFields[a]&&(n[t.responseFields[a]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=a,a=c.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(o=u[l+" "+a]||u["* "+a],!o)for(r in u)if(s=r.split(" "),s[1]===a&&(o=u[l+" "+s[0]]||u["* "+s[0]])){o===!0?o=u[r]:u[r]!==!0&&(a=s[0],c.unshift(s[1]));break}if(o!==!0)if(o&&t["throws"])e=o(e);else try{e=o(e)}catch(d){return{state:"parsererror",error:o?d:"No conversion from "+l+" to "+a}}}return{state:"success",data:e}}function P(){return setTimeout(function(){Sn=e}),Sn=ae.now()}function N(t,e,n){for(var i,r=(Nn[e]||[]).concat(Nn["*"]),a=0,o=r.length;o>a;a++)if(i=r[a].call(n,e,t))return i}function O(t,e,n){var i,r,a=0,o=Pn.length,s=ae.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=Sn||P(),n=Math.max(0,u.startTime+u.duration-e),i=n/u.duration||0,a=1-i,o=0,l=u.tweens.length;l>o;o++)u.tweens[o].run(a);return s.notifyWith(t,[u,a,n]),1>a&&l?n:(s.resolveWith(t,[u]),!1)},u=s.promise({elem:t,props:ae.extend({},e),opts:ae.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Sn||P(),duration:n.duration,tweens:[],createTween:function(e,n){var i=ae.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(r)return this;for(r=!0;i>n;n++)u.tweens[n].run(1);return e?s.resolveWith(t,[u,e]):s.rejectWith(t,[u,e]),this}}),c=u.props;for(z(c,u.opts.specialEasing);o>a;a++)if(i=Pn[a].call(u,t,c,u.opts))return i;return ae.map(c,N,u),ae.isFunction(u.opts.start)&&u.opts.start.call(t,u),ae.fx.timer(ae.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function z(t,e){var n,i,r,a,o;for(n in t)if(i=ae.camelCase(n),r=e[i],a=t[n],ae.isArray(a)&&(r=a[1],a=t[n]=a[0]),n!==i&&(t[i]=a,delete t[n]),o=ae.cssHooks[i],o&&"expand"in o){a=o.expand(a),delete t[i];for(n in a)n in t||(t[n]=a[n],e[n]=r)}else e[i]=r}function H(t,n,i){var r,a,o,s,l,u,c=this,d={},h=t.style,p=t.nodeType&&b(t),f=me.get(t,"fxshow");i.queue||(l=ae._queueHooks(t,"fx"),null==l.unqueued&&(l.unqueued=0,u=l.empty.fire,l.empty.fire=function(){l.unqueued||u()}),l.unqueued++,c.always(function(){c.always(function(){l.unqueued--,ae.queue(t,"fx").length||l.empty.fire()})})),1===t.nodeType&&("height"in n||"width"in n)&&(i.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===ae.css(t,"display")&&"none"===ae.css(t,"float")&&(h.display="inline-block")),i.overflow&&(h.overflow="hidden",c.always(function(){h.overflow=i.overflow[0],h.overflowX=i.overflow[1],h.overflowY=i.overflow[2]}));for(r in n)if(a=n[r],Tn.exec(a)){if(delete n[r],o=o||"toggle"===a,a===(p?"hide":"show")){if("show"!==a||!f||f[r]===e)continue;p=!0}d[r]=f&&f[r]||ae.style(t,r)}if(!ae.isEmptyObject(d)){f?"hidden"in f&&(p=f.hidden):f=me.access(t,"fxshow",{}),o&&(f.hidden=!p),p?ae(t).show():c.done(function(){ae(t).hide()}),c.done(function(){var e;me.remove(t,"fxshow");for(e in d)ae.style(t,e,d[e])});for(r in d)s=N(p?f[r]:0,r,c),r in f||(f[r]=s.start,p&&(s.end=s.start,s.start="width"===r||"height"===r?1:0))}}function L(t,e,n,i,r){return new L.prototype.init(t,e,n,i,r)}function F(t,e){var n,i={height:t},r=0;for(e=e?1:0;4>r;r+=2-e)n=Qe[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function R(t){return ae.isWindow(t)?t:9===t.nodeType&&t.defaultView}var W,j,q=typeof e,V=t.location,B=t.document,U=B.documentElement,Y=t.jQuery,X=t.$,K={},G=[],Z="2.0.3",Q=G.concat,J=G.push,te=G.slice,ee=G.indexOf,ne=K.toString,ie=K.hasOwnProperty,re=Z.trim,ae=function(t,e){return new ae.fn.init(t,e,W)},oe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,se=/\S+/g,le=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ue=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ce=/^-ms-/,de=/-([\da-z])/gi,he=function(t,e){return e.toUpperCase()},pe=function(){B.removeEventListener("DOMContentLoaded",pe,!1),t.removeEventListener("load",pe,!1),ae.ready()};ae.fn=ae.prototype={jquery:Z,constructor:ae,init:function(t,n,i){var r,a;if(!t)return this;if("string"==typeof t){if(r="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:le.exec(t),!r||!r[1]&&n)return!n||n.jquery?(n||i).find(t):this.constructor(n).find(t);if(r[1]){if(n=n instanceof ae?n[0]:n,ae.merge(this,ae.parseHTML(r[1],n&&n.nodeType?n.ownerDocument||n:B,!0)),ue.test(r[1])&&ae.isPlainObject(n))for(r in n)ae.isFunction(this[r])?this[r](n[r]):this.attr(r,n[r]);return this}return a=B.getElementById(r[2]),a&&a.parentNode&&(this.length=1,this[0]=a),this.context=B,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ae.isFunction(t)?i.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),ae.makeArray(t,this))},selector:"",length:0,toArray:function(){return te.call(this)},get:function(t){return null==t?this.toArray():0>t?this[this.length+t]:this[t]},pushStack:function(t){var e=ae.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return ae.each(this,t,e)},ready:function(t){return ae.ready.promise().done(t),this},slice:function(){return this.pushStack(te.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},map:function(t){return this.pushStack(ae.map(this,function(e,n){return t.call(e,n,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:J,sort:[].sort,splice:[].splice},ae.fn.init.prototype=ae.fn,ae.extend=ae.fn.extend=function(){var t,n,i,r,a,o,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||ae.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(t=arguments[l]))for(n in t)i=s[n],r=t[n],s!==r&&(c&&r&&(ae.isPlainObject(r)||(a=ae.isArray(r)))?(a?(a=!1,o=i&&ae.isArray(i)?i:[]):o=i&&ae.isPlainObject(i)?i:{},s[n]=ae.extend(c,o,r)):r!==e&&(s[n]=r));return s},ae.extend({expando:"jQuery"+(Z+Math.random()).replace(/\D/g,""),noConflict:function(e){return t.$===ae&&(t.$=X),e&&t.jQuery===ae&&(t.jQuery=Y),ae},isReady:!1,readyWait:1,holdReady:function(t){t?ae.readyWait++:ae.ready(!0)},ready:function(t){(t===!0?--ae.readyWait:ae.isReady)||(ae.isReady=!0,t!==!0&&--ae.readyWait>0||(j.resolveWith(B,[ae]),ae.fn.trigger&&ae(B).trigger("ready").off("ready")))},isFunction:function(t){return"function"===ae.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?String(t):"object"==typeof t||"function"==typeof t?K[ne.call(t)]||"object":typeof t},isPlainObject:function(t){if("object"!==ae.type(t)||t.nodeType||ae.isWindow(t))return!1;try{if(t.constructor&&!ie.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}return!0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},error:function(t){throw new Error(t)},parseHTML:function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||B;var i=ue.exec(t),r=!n&&[];return i?[e.createElement(i[1])]:(i=ae.buildFragment([t],e,r),r&&ae(r).remove(),ae.merge([],i.childNodes))},parseJSON:JSON.parse,parseXML:function(t){var n,i;if(!t||"string"!=typeof t)return null;try{i=new DOMParser,n=i.parseFromString(t,"text/xml")}catch(r){n=e}return(!n||n.getElementsByTagName("parsererror").length)&&ae.error("Invalid XML: "+t),n},noop:function(){},globalEval:function(t){var e,n=eval;t=ae.trim(t),t&&(1===t.indexOf("use strict")?(e=B.createElement("script"),e.text=t,B.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(ce,"ms-").replace(de,he)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,i){var r,a=0,o=t.length,s=n(t);if(i){if(s)for(;o>a&&(r=e.apply(t[a],i),r!==!1);a++);else for(a in t)if(r=e.apply(t[a],i),r===!1)break}else if(s)for(;o>a&&(r=e.call(t[a],a,t[a]),r!==!1);a++);else for(a in t)if(r=e.call(t[a],a,t[a]),r===!1)break;return t},trim:function(t){return null==t?"":re.call(t)},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?ae.merge(i,"string"==typeof t?[t]:t):J.call(i,t)),i},inArray:function(t,e,n){return null==e?-1:ee.call(e,t,n)},merge:function(t,n){var i=n.length,r=t.length,a=0;if("number"==typeof i)for(;i>a;a++)t[r++]=n[a];else for(;n[a]!==e;)t[r++]=n[a++];return t.length=r,t},grep:function(t,e,n){var i,r=[],a=0,o=t.length;for(n=!!n;o>a;a++)i=!!e(t[a],a),n!==i&&r.push(t[a]);return r},map:function(t,e,i){var r,a=0,o=t.length,s=n(t),l=[];if(s)for(;o>a;a++)r=e(t[a],a,i),null!=r&&(l[l.length]=r);else for(a in t)r=e(t[a],a,i),null!=r&&(l[l.length]=r);return Q.apply([],l)},guid:1,proxy:function(t,n){var i,r,a;return"string"==typeof n&&(i=t[n],n=t,t=i),ae.isFunction(t)?(r=te.call(arguments,2),a=function(){return t.apply(n||this,r.concat(te.call(arguments)))},a.guid=t.guid=t.guid||ae.guid++,a):e},access:function(t,n,i,r,a,o,s){var l=0,u=t.length,c=null==i;if("object"===ae.type(i)){a=!0;for(l in i)ae.access(t,n,l,i[l],!0,o,s)}else if(r!==e&&(a=!0,ae.isFunction(r)||(s=!0),c&&(s?(n.call(t,r),n=null):(c=n,n=function(t,e,n){return c.call(ae(t),n)})),n))for(;u>l;l++)n(t[l],i,s?r:r.call(t[l],l,n(t[l],i)));return a?t:c?n.call(t):u?n(t[0],i):o},now:Date.now,swap:function(t,e,n,i){var r,a,o={};for(a in e)o[a]=t.style[a],t.style[a]=e[a];r=n.apply(t,i||[]);for(a in e)t.style[a]=o[a];return r}}),ae.ready.promise=function(e){return j||(j=ae.Deferred(),"complete"===B.readyState?setTimeout(ae.ready):(B.addEventListener("DOMContentLoaded",pe,!1),t.addEventListener("load",pe,!1))),j.promise(e)},ae.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){K["[object "+e+"]"]=e.toLowerCase()}),W=ae(B),/*!
 * Sizzle CSS Selector Engine v1.9.4-pre
 * http://sizzlejs.com/
 *
 * Copyright 2013 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2013-06-03
 */
function(t,e){function n(t,e,n,i){var r,a,o,s,l,u,c,d,f,g;if((e?e.ownerDocument||e:R)!==I&&E(e),e=e||I,n=n||[],!t||"string"!=typeof t)return n;if(1!==(s=e.nodeType)&&9!==s)return[];if(N&&!i){if(r=be.exec(t))if(o=r[1]){if(9===s){if(a=e.getElementById(o),!a||!a.parentNode)return n;if(a.id===o)return n.push(a),n}else if(e.ownerDocument&&(a=e.ownerDocument.getElementById(o))&&L(e,a)&&a.id===o)return n.push(a),n}else{if(r[2])return te.apply(n,e.getElementsByTagName(t)),n;if((o=r[3])&&$.getElementsByClassName&&e.getElementsByClassName)return te.apply(n,e.getElementsByClassName(o)),n}if($.qsa&&(!O||!O.test(t))){if(d=c=F,f=e,g=9===s&&t,1===s&&"object"!==e.nodeName.toLowerCase()){for(u=h(t),(c=e.getAttribute("id"))?d=c.replace(ke,"\\$&"):e.setAttribute("id",d),d="[id='"+d+"'] ",l=u.length;l--;)u[l]=d+p(u[l]);f=pe.test(t)&&e.parentNode||e,g=u.join(",")}if(g)try{return te.apply(n,f.querySelectorAll(g)),n}catch(m){}finally{c||e.removeAttribute("id")}}}return w(t.replace(ce,"$1"),e,n,i)}function i(){function t(n,i){return e.push(n+=" ")>C.cacheLength&&delete t[e.shift()],t[n]=i}var e=[];return t}function r(t){return t[F]=!0,t}function a(t){var e=I.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),i=t.length;i--;)C.attrHandle[n[i]]=e}function s(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||K)-(~t.sourceIndex||K);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function l(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function u(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function c(t){return r(function(e){return e=+e,r(function(n,i){for(var r,a=t([],n.length,e),o=a.length;o--;)n[r=a[o]]&&(n[r]=!(i[r]=n[r]))})})}function d(){}function h(t,e){var i,r,a,o,s,l,u,c=V[t+" "];if(c)return e?0:c.slice(0);for(s=t,l=[],u=C.preFilter;s;){(!i||(r=de.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(a=[])),i=!1,(r=he.exec(s))&&(i=r.shift(),a.push({value:i,type:r[0].replace(ce," ")}),s=s.slice(i.length));for(o in C.filter)!(r=ve[o].exec(s))||u[o]&&!(r=u[o](r))||(i=r.shift(),a.push({value:i,type:o,matches:r}),s=s.slice(i.length));if(!i)break}return e?s.length:s?n.error(t):V(t,l).slice(0)}function p(t){for(var e=0,n=t.length,i="";n>e;e++)i+=t[e].value;return i}function f(t,e,n){var i=e.dir,r=n&&"parentNode"===i,a=j++;return e.first?function(e,n,a){for(;e=e[i];)if(1===e.nodeType||r)return t(e,n,a)}:function(e,n,o){var s,l,u,c=W+" "+a;if(o){for(;e=e[i];)if((1===e.nodeType||r)&&t(e,n,o))return!0}else for(;e=e[i];)if(1===e.nodeType||r)if(u=e[F]||(e[F]={}),(l=u[i])&&l[0]===c){if((s=l[1])===!0||s===_)return s===!0}else if(l=u[i]=[c],l[1]=t(e,n,o)||_,l[1]===!0)return!0}}function g(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function m(t,e,n,i,r){for(var a,o=[],s=0,l=t.length,u=null!=e;l>s;s++)(a=t[s])&&(!n||n(a,i,r))&&(o.push(a),u&&e.push(s));return o}function v(t,e,n,i,a,o){return i&&!i[F]&&(i=v(i)),a&&!a[F]&&(a=v(a,o)),r(function(r,o,s,l){var u,c,d,h=[],p=[],f=o.length,g=r||x(e||"*",s.nodeType?[s]:s,[]),v=!t||!r&&e?g:m(g,h,t,s,l),y=n?a||(r?t:f||i)?[]:o:v;if(n&&n(v,y,s,l),i)for(u=m(y,p),i(u,[],s,l),c=u.length;c--;)(d=u[c])&&(y[p[c]]=!(v[p[c]]=d));if(r){if(a||t){if(a){for(u=[],c=y.length;c--;)(d=y[c])&&u.push(v[c]=d);a(null,y=[],u,l)}for(c=y.length;c--;)(d=y[c])&&(u=a?ne.call(r,d):h[c])>-1&&(r[u]=!(o[u]=d))}}else y=m(y===o?y.splice(f,y.length):y),a?a(null,o,y,l):te.apply(o,y)})}function y(t){for(var e,n,i,r=t.length,a=C.relative[t[0].type],o=a||C.relative[" "],s=a?1:0,l=f(function(t){return t===e},o,!0),u=f(function(t){return ne.call(e,t)>-1},o,!0),c=[function(t,n,i){return!a&&(i||n!==A)||((e=n).nodeType?l(t,n,i):u(t,n,i))}];r>s;s++)if(n=C.relative[t[s].type])c=[f(g(c),n)];else{if(n=C.filter[t[s].type].apply(null,t[s].matches),n[F]){for(i=++s;r>i&&!C.relative[t[i].type];i++);return v(s>1&&g(c),s>1&&p(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(ce,"$1"),n,i>s&&y(t.slice(s,i)),r>i&&y(t=t.slice(i)),r>i&&p(t))}c.push(n)}return g(c)}function b(t,e){var i=0,a=e.length>0,o=t.length>0,s=function(r,s,l,u,c){var d,h,p,f=[],g=0,v="0",y=r&&[],b=null!=c,x=A,w=r||o&&C.find.TAG("*",c&&s.parentNode||s),k=W+=null==x?1:Math.random()||.1;for(b&&(A=s!==I&&s,_=i);null!=(d=w[v]);v++){if(o&&d){for(h=0;p=t[h++];)if(p(d,s,l)){u.push(d);break}b&&(W=k,_=++i)}a&&((d=!p&&d)&&g--,r&&y.push(d))}if(g+=v,a&&v!==g){for(h=0;p=e[h++];)p(y,f,s,l);if(r){if(g>0)for(;v--;)y[v]||f[v]||(f[v]=Q.call(u));f=m(f)}te.apply(u,f),b&&!r&&f.length>0&&g+e.length>1&&n.uniqueSort(u)}return b&&(W=k,A=x),y};return a?r(s):s}function x(t,e,i){for(var r=0,a=e.length;a>r;r++)n(t,e[r],i);return i}function w(t,e,n,i){var r,a,o,s,l,u=h(t);if(!i&&1===u.length){if(a=u[0]=u[0].slice(0),a.length>2&&"ID"===(o=a[0]).type&&$.getById&&9===e.nodeType&&N&&C.relative[a[1].type]){if(e=(C.find.ID(o.matches[0].replace($e,_e),e)||[])[0],!e)return n;t=t.slice(a.shift().value.length)}for(r=ve.needsContext.test(t)?0:a.length;r--&&(o=a[r],!C.relative[s=o.type]);)if((l=C.find[s])&&(i=l(o.matches[0].replace($e,_e),pe.test(a[0].type)&&e.parentNode||e))){if(a.splice(r,1),t=i.length&&p(a),!t)return te.apply(n,i),n;break}}return S(t,u)(i,e,!N,n,pe.test(t)),n}var k,$,_,C,M,D,S,A,T,E,I,P,N,O,z,H,L,F="sizzle"+-new Date,R=t.document,W=0,j=0,q=i(),V=i(),B=i(),U=!1,Y=function(t,e){return t===e?(U=!0,0):0},X=typeof e,K=1<<31,G={}.hasOwnProperty,Z=[],Q=Z.pop,J=Z.push,te=Z.push,ee=Z.slice,ne=Z.indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(this[e]===t)return e;return-1},ie="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",re="[\\x20\\t\\r\\n\\f]",oe="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",se=oe.replace("w","w#"),le="\\["+re+"*("+oe+")"+re+"*(?:([*^$|!~]?=)"+re+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+se+")|)|)"+re+"*\\]",ue=":("+oe+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+le.replace(3,8)+")*)|.*)\\)|)",ce=new RegExp("^"+re+"+|((?:^|[^\\\\])(?:\\\\.)*)"+re+"+$","g"),de=new RegExp("^"+re+"*,"+re+"*"),he=new RegExp("^"+re+"*([>+~]|"+re+")"+re+"*"),pe=new RegExp(re+"*[+~]"),fe=new RegExp("="+re+"*([^\\]'\"]*)"+re+"*\\]","g"),ge=new RegExp(ue),me=new RegExp("^"+se+"$"),ve={ID:new RegExp("^#("+oe+")"),CLASS:new RegExp("^\\.("+oe+")"),TAG:new RegExp("^("+oe.replace("w","w*")+")"),ATTR:new RegExp("^"+le),PSEUDO:new RegExp("^"+ue),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+re+"*(even|odd|(([+-]|)(\\d*)n|)"+re+"*(?:([+-]|)"+re+"*(\\d+)|))"+re+"*\\)|)","i"),bool:new RegExp("^(?:"+ie+")$","i"),needsContext:new RegExp("^"+re+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+re+"*((?:-\\d)?\\d*)"+re+"*\\)|)(?=[^-]|$)","i")},ye=/^[^{]+\{\s*\[native \w/,be=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,xe=/^(?:input|select|textarea|button)$/i,we=/^h\d$/i,ke=/'|\\/g,$e=new RegExp("\\\\([\\da-f]{1,6}"+re+"?|("+re+")|.)","ig"),_e=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)};try{te.apply(Z=ee.call(R.childNodes),R.childNodes),Z[R.childNodes.length].nodeType}catch(Ce){te={apply:Z.length?function(t,e){J.apply(t,ee.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}D=n.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},$=n.support={},E=n.setDocument=function(t){var e=t?t.ownerDocument||t:R,n=e.defaultView;return e!==I&&9===e.nodeType&&e.documentElement?(I=e,P=e.documentElement,N=!D(e),n&&n.attachEvent&&n!==n.top&&n.attachEvent("onbeforeunload",function(){E()}),$.attributes=a(function(t){return t.className="i",!t.getAttribute("className")}),$.getElementsByTagName=a(function(t){return t.appendChild(e.createComment("")),!t.getElementsByTagName("*").length}),$.getElementsByClassName=a(function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),$.getById=a(function(t){return P.appendChild(t).id=F,!e.getElementsByName||!e.getElementsByName(F).length}),$.getById?(C.find.ID=function(t,e){if(typeof e.getElementById!==X&&N){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},C.filter.ID=function(t){var e=t.replace($e,_e);return function(t){return t.getAttribute("id")===e}}):(delete C.find.ID,C.filter.ID=function(t){var e=t.replace($e,_e);return function(t){var n=typeof t.getAttributeNode!==X&&t.getAttributeNode("id");return n&&n.value===e}}),C.find.TAG=$.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==X?e.getElementsByTagName(t):void 0}:function(t,e){var n,i=[],r=0,a=e.getElementsByTagName(t);if("*"===t){for(;n=a[r++];)1===n.nodeType&&i.push(n);return i}return a},C.find.CLASS=$.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==X&&N?e.getElementsByClassName(t):void 0},z=[],O=[],($.qsa=ye.test(e.querySelectorAll))&&(a(function(t){t.innerHTML="<select><option selected=''></option></select>",t.querySelectorAll("[selected]").length||O.push("\\["+re+"*(?:value|"+ie+")"),t.querySelectorAll(":checked").length||O.push(":checked")}),a(function(t){var n=e.createElement("input");n.setAttribute("type","hidden"),t.appendChild(n).setAttribute("t",""),t.querySelectorAll("[t^='']").length&&O.push("[*^$]="+re+"*(?:''|\"\")"),t.querySelectorAll(":enabled").length||O.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),O.push(",.*:")})),($.matchesSelector=ye.test(H=P.webkitMatchesSelector||P.mozMatchesSelector||P.oMatchesSelector||P.msMatchesSelector))&&a(function(t){$.disconnectedMatch=H.call(t,"div"),H.call(t,"[s!='']:x"),z.push("!=",ue)}),O=O.length&&new RegExp(O.join("|")),z=z.length&&new RegExp(z.join("|")),L=ye.test(P.contains)||P.compareDocumentPosition?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},Y=P.compareDocumentPosition?function(t,n){if(t===n)return U=!0,0;var i=n.compareDocumentPosition&&t.compareDocumentPosition&&t.compareDocumentPosition(n);return i?1&i||!$.sortDetached&&n.compareDocumentPosition(t)===i?t===e||L(R,t)?-1:n===e||L(R,n)?1:T?ne.call(T,t)-ne.call(T,n):0:4&i?-1:1:t.compareDocumentPosition?-1:1}:function(t,n){var i,r=0,a=t.parentNode,o=n.parentNode,l=[t],u=[n];if(t===n)return U=!0,0;if(!a||!o)return t===e?-1:n===e?1:a?-1:o?1:T?ne.call(T,t)-ne.call(T,n):0;if(a===o)return s(t,n);for(i=t;i=i.parentNode;)l.unshift(i);for(i=n;i=i.parentNode;)u.unshift(i);for(;l[r]===u[r];)r++;return r?s(l[r],u[r]):l[r]===R?-1:u[r]===R?1:0},e):I},n.matches=function(t,e){return n(t,null,null,e)},n.matchesSelector=function(t,e){if((t.ownerDocument||t)!==I&&E(t),e=e.replace(fe,"='$1']"),!(!$.matchesSelector||!N||z&&z.test(e)||O&&O.test(e)))try{var i=H.call(t,e);if(i||$.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(r){}return n(e,I,null,[t]).length>0},n.contains=function(t,e){return(t.ownerDocument||t)!==I&&E(t),L(t,e)},n.attr=function(t,n){(t.ownerDocument||t)!==I&&E(t);var i=C.attrHandle[n.toLowerCase()],r=i&&G.call(C.attrHandle,n.toLowerCase())?i(t,n,!N):e;return r===e?$.attributes||!N?t.getAttribute(n):(r=t.getAttributeNode(n))&&r.specified?r.value:null:r},n.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},n.uniqueSort=function(t){var e,n=[],i=0,r=0;if(U=!$.detectDuplicates,T=!$.sortStable&&t.slice(0),t.sort(Y),U){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return t},M=n.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=M(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i];i++)n+=M(e);return n},C=n.selectors={cacheLength:50,createPseudo:r,match:ve,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace($e,_e),t[3]=(t[4]||t[5]||"").replace($e,_e),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||n.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&n.error(t[0]),t},PSEUDO:function(t){var n,i=!t[5]&&t[2];return ve.CHILD.test(t[0])?null:(t[3]&&t[4]!==e?t[2]=t[4]:i&&ge.test(i)&&(n=h(i,!0))&&(n=i.indexOf(")",i.length-n)-i.length)&&(t[0]=t[0].slice(0,n),t[2]=i.slice(0,n)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace($e,_e).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=q[t+" "];return e||(e=new RegExp("(^|"+re+")"+t+"("+re+"|$)"))&&q(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==X&&t.getAttribute("class")||"")})},ATTR:function(t,e,i){return function(r){var a=n.attr(r,t);return null==a?"!="===e:e?(a+="","="===e?a===i:"!="===e?a!==i:"^="===e?i&&0===a.indexOf(i):"*="===e?i&&a.indexOf(i)>-1:"$="===e?i&&a.slice(-i.length)===i:"~="===e?(" "+a+" ").indexOf(i)>-1:"|="===e?a===i||a.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(t,e,n,i,r){var a="nth"!==t.slice(0,3),o="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var u,c,d,h,p,f,g=a!==o?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!l&&!s;if(m){if(a){for(;g;){for(d=e;d=d[g];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[o?m.firstChild:m.lastChild],o&&y){for(c=m[F]||(m[F]={}),u=c[t]||[],p=u[0]===W&&u[1],h=u[0]===W&&u[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(h=p=0)||f.pop();)if(1===d.nodeType&&++h&&d===e){c[t]=[W,p,h];break}}else if(y&&(u=(e[F]||(e[F]={}))[t])&&u[0]===W)h=u[1];else for(;(d=++p&&d&&d[g]||(h=p=0)||f.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++h||(y&&((d[F]||(d[F]={}))[t]=[W,h]),d!==e)););return h-=r,h===i||h%i===0&&h/i>=0}}},PSEUDO:function(t,e){var i,a=C.pseudos[t]||C.setFilters[t.toLowerCase()]||n.error("unsupported pseudo: "+t);return a[F]?a(e):a.length>1?(i=[t,t,"",e],C.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,n){for(var i,r=a(t,e),o=r.length;o--;)i=ne.call(t,r[o]),t[i]=!(n[i]=r[o])}):function(t){return a(t,0,i)}):a}},pseudos:{not:r(function(t){var e=[],n=[],i=S(t.replace(ce,"$1"));return i[F]?r(function(t,e,n,r){for(var a,o=i(t,null,r,[]),s=t.length;s--;)(a=o[s])&&(t[s]=!(e[s]=a))}):function(t,r,a){return e[0]=t,i(e,null,a,n),!n.pop()}}),has:r(function(t){return function(e){return n(t,e).length>0}}),contains:r(function(t){return function(e){return(e.textContent||e.innerText||M(e)).indexOf(t)>-1}}),lang:r(function(t){return me.test(t||"")||n.error("unsupported lang: "+t),t=t.replace($e,_e).toLowerCase(),function(e){var n;do if(n=N?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===P},focus:function(t){return t===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeName>"@"||3===t.nodeType||4===t.nodeType)return!1;return!0},parent:function(t){return!C.pseudos.empty(t)},header:function(t){return we.test(t.nodeName)},input:function(t){return xe.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||e.toLowerCase()===t.type)},first:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,n){return[0>n?n+e:n]}),even:c(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:c(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:c(function(t,e,n){for(var i=0>n?n+e:n;--i>=0;)t.push(i);return t}),gt:c(function(t,e,n){for(var i=0>n?n+e:n;++i<e;)t.push(i);return t})}},C.pseudos.nth=C.pseudos.eq;for(k in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[k]=l(k);for(k in{submit:!0,reset:!0})C.pseudos[k]=u(k);d.prototype=C.filters=C.pseudos,C.setFilters=new d,S=n.compile=function(t,e){var n,i=[],r=[],a=B[t+" "];if(!a){for(e||(e=h(t)),n=e.length;n--;)a=y(e[n]),a[F]?i.push(a):r.push(a);a=B(t,b(r,i))}return a},$.sortStable=F.split("").sort(Y).join("")===F,$.detectDuplicates=U,E(),$.sortDetached=a(function(t){return 1&t.compareDocumentPosition(I.createElement("div"))}),a(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),$.attributes&&a(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),a(function(t){return null==t.getAttribute("disabled")})||o(ie,function(t,e,n){var i;return n?void 0:(i=t.getAttributeNode(e))&&i.specified?i.value:t[e]===!0?e.toLowerCase():null}),ae.find=n,ae.expr=n.selectors,ae.expr[":"]=ae.expr.pseudos,ae.unique=n.uniqueSort,ae.text=n.getText,ae.isXMLDoc=n.isXML,ae.contains=n.contains}(t);var fe={};ae.Callbacks=function(t){t="string"==typeof t?fe[t]||i(t):ae.extend({},t);var n,r,a,o,s,l,u=[],c=!t.once&&[],d=function(e){for(n=t.memory&&e,r=!0,l=o||0,o=0,s=u.length,a=!0;u&&s>l;l++)if(u[l].apply(e[0],e[1])===!1&&t.stopOnFalse){n=!1;break}a=!1,u&&(c?c.length&&d(c.shift()):n?u=[]:h.disable())},h={add:function(){if(u){var e=u.length;!function i(e){ae.each(e,function(e,n){var r=ae.type(n);"function"===r?t.unique&&h.has(n)||u.push(n):n&&n.length&&"string"!==r&&i(n)})}(arguments),a?s=u.length:n&&(o=e,d(n))}return this},remove:function(){return u&&ae.each(arguments,function(t,e){for(var n;(n=ae.inArray(e,u,n))>-1;)u.splice(n,1),a&&(s>=n&&s--,l>=n&&l--)}),this},has:function(t){return t?ae.inArray(t,u)>-1:!(!u||!u.length)},empty:function(){return u=[],s=0,this},disable:function(){return u=c=n=e,this},disabled:function(){return!u},lock:function(){return c=e,n||h.disable(),this},locked:function(){return!c},fireWith:function(t,e){return!u||r&&!c||(e=e||[],e=[t,e.slice?e.slice():e],a?c.push(e):d(e)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h},ae.extend({Deferred:function(t){var e=[["resolve","done",ae.Callbacks("once memory"),"resolved"],["reject","fail",ae.Callbacks("once memory"),"rejected"],["notify","progress",ae.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ae.Deferred(function(n){ae.each(e,function(e,a){var o=a[0],s=ae.isFunction(t[e])&&t[e];r[a[1]](function(){var t=s&&s.apply(this,arguments);t&&ae.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o+"With"](this===i?n.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ae.extend(t,i):i}},r={};return i.pipe=i.then,ae.each(e,function(t,a){var o=a[2],s=a[3];i[a[1]]=o.add,s&&o.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),r[a[0]]=function(){return r[a[0]+"With"](this===r?i:this,arguments),this},r[a[0]+"With"]=o.fireWith}),i.promise(r),t&&t.call(r,r),r},when:function(t){var e,n,i,r=0,a=te.call(arguments),o=a.length,s=1!==o||t&&ae.isFunction(t.promise)?o:0,l=1===s?t:ae.Deferred(),u=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?te.call(arguments):r,i===e?l.notifyWith(n,i):--s||l.resolveWith(n,i)}};if(o>1)for(e=new Array(o),n=new Array(o),i=new Array(o);o>r;r++)a[r]&&ae.isFunction(a[r].promise)?a[r].promise().done(u(r,i,a)).fail(l.reject).progress(u(r,n,e)):--s;return s||l.resolveWith(i,a),l.promise()}}),ae.support=function(e){var n=B.createElement("input"),i=B.createDocumentFragment(),r=B.createElement("div"),a=B.createElement("select"),o=a.appendChild(B.createElement("option"));return n.type?(n.type="checkbox",e.checkOn=""!==n.value,e.optSelected=o.selected,e.reliableMarginRight=!0,e.boxSizingReliable=!0,e.pixelPosition=!1,n.checked=!0,e.noCloneChecked=n.cloneNode(!0).checked,a.disabled=!0,e.optDisabled=!o.disabled,n=B.createElement("input"),n.value="t",n.type="radio",e.radioValue="t"===n.value,n.setAttribute("checked","t"),n.setAttribute("name","t"),i.appendChild(n),e.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,e.focusinBubbles="onfocusin"in t,r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===r.style.backgroundClip,ae(function(){var n,i,a="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",o=B.getElementsByTagName("body")[0];o&&(n=B.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",o.appendChild(n).appendChild(r),r.innerHTML="",r.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",ae.swap(o,null!=o.style.zoom?{zoom:1}:{},function(){e.boxSizing=4===r.offsetWidth}),t.getComputedStyle&&(e.pixelPosition="1%"!==(t.getComputedStyle(r,null)||{}).top,e.boxSizingReliable="4px"===(t.getComputedStyle(r,null)||{width:"4px"}).width,i=r.appendChild(B.createElement("div")),i.style.cssText=r.style.cssText=a,i.style.marginRight=i.style.width="0",r.style.width="1px",e.reliableMarginRight=!parseFloat((t.getComputedStyle(i,null)||{}).marginRight)),o.removeChild(n))}),e):e}({});var ge,me,ve=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,ye=/([A-Z])/g;r.uid=1,r.accepts=function(t){return t.nodeType?1===t.nodeType||9===t.nodeType:!0},r.prototype={key:function(t){if(!r.accepts(t))return 0;var e={},n=t[this.expando];if(!n){n=r.uid++;try{e[this.expando]={value:n},Object.defineProperties(t,e)}catch(i){e[this.expando]=n,ae.extend(t,e)}}return this.cache[n]||(this.cache[n]={}),n},set:function(t,e,n){var i,r=this.key(t),a=this.cache[r];if("string"==typeof e)a[e]=n;else if(ae.isEmptyObject(a))ae.extend(this.cache[r],e);else for(i in e)a[i]=e[i];return a},get:function(t,n){var i=this.cache[this.key(t)];return n===e?i:i[n]},access:function(t,n,i){var r;return n===e||n&&"string"==typeof n&&i===e?(r=this.get(t,n),r!==e?r:this.get(t,ae.camelCase(n))):(this.set(t,n,i),i!==e?i:n)},remove:function(t,n){var i,r,a,o=this.key(t),s=this.cache[o];if(n===e)this.cache[o]={};else{ae.isArray(n)?r=n.concat(n.map(ae.camelCase)):(a=ae.camelCase(n),n in s?r=[n,a]:(r=a,r=r in s?[r]:r.match(se)||[])),i=r.length;for(;i--;)delete s[r[i]]}},hasData:function(t){return!ae.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}},ge=new r,me=new r,ae.extend({acceptData:r.accepts,hasData:function(t){return ge.hasData(t)||me.hasData(t)},data:function(t,e,n){return ge.access(t,e,n)},removeData:function(t,e){ge.remove(t,e)},_data:function(t,e,n){return me.access(t,e,n)},_removeData:function(t,e){me.remove(t,e)}}),ae.fn.extend({data:function(t,n){var i,r,o=this[0],s=0,l=null;if(t===e){if(this.length&&(l=ge.get(o),1===o.nodeType&&!me.get(o,"hasDataAttrs"))){for(i=o.attributes;s<i.length;s++)r=i[s].name,0===r.indexOf("data-")&&(r=ae.camelCase(r.slice(5)),a(o,r,l[r]));me.set(o,"hasDataAttrs",!0)}return l}return"object"==typeof t?this.each(function(){ge.set(this,t)}):ae.access(this,function(n){var i,r=ae.camelCase(t);if(o&&n===e){if(i=ge.get(o,t),i!==e)return i;if(i=ge.get(o,r),i!==e)return i;if(i=a(o,r,e),i!==e)return i}else this.each(function(){var i=ge.get(this,r);ge.set(this,r,n),-1!==t.indexOf("-")&&i!==e&&ge.set(this,t,n)})},null,n,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){ge.remove(this,t)})}}),ae.extend({queue:function(t,e,n){var i;return t?(e=(e||"fx")+"queue",i=me.get(t,e),n&&(!i||ae.isArray(n)?i=me.access(t,e,ae.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=ae.queue(t,e),i=n.length,r=n.shift(),a=ae._queueHooks(t,e),o=function(){ae.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete a.stop,r.call(t,o,a)),!i&&a&&a.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return me.get(t,n)||me.access(t,n,{empty:ae.Callbacks("once memory").add(function(){me.remove(t,[e+"queue",n])})})}}),ae.fn.extend({queue:function(t,n){var i=2;return"string"!=typeof t&&(n=t,t="fx",i--),arguments.length<i?ae.queue(this[0],t):n===e?this:this.each(function(){var e=ae.queue(this,t,n);ae._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ae.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ae.dequeue(this,t)})},delay:function(t,e){return t=ae.fx?ae.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var i=setTimeout(e,t);n.stop=function(){clearTimeout(i)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,n){var i,r=1,a=ae.Deferred(),o=this,s=this.length,l=function(){--r||a.resolveWith(o,[o])};for("string"!=typeof t&&(n=t,t=e),t=t||"fx";s--;)i=me.get(o[s],t+"queueHooks"),i&&i.empty&&(r++,i.empty.add(l));return l(),a.promise(n)}});var be,xe,we=/[\t\r\n\f]/g,ke=/\r/g,$e=/^(?:input|select|textarea|button)$/i;ae.fn.extend({attr:function(t,e){return ae.access(this,ae.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ae.removeAttr(this,t)})},prop:function(t,e){return ae.access(this,ae.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[ae.propFix[t]||t]})},addClass:function(t){var e,n,i,r,a,o=0,s=this.length,l="string"==typeof t&&t;if(ae.isFunction(t))return this.each(function(e){ae(this).addClass(t.call(this,e,this.className))});if(l)for(e=(t||"").match(se)||[];s>o;o++)if(n=this[o],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(we," "):" ")){for(a=0;r=e[a++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");n.className=ae.trim(i)}return this},removeClass:function(t){var e,n,i,r,a,o=0,s=this.length,l=0===arguments.length||"string"==typeof t&&t;if(ae.isFunction(t))return this.each(function(e){ae(this).removeClass(t.call(this,e,this.className))});if(l)for(e=(t||"").match(se)||[];s>o;o++)if(n=this[o],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(we," "):"")){for(a=0;r=e[a++];)for(;i.indexOf(" "+r+" ")>=0;)i=i.replace(" "+r+" "," ");n.className=t?ae.trim(i):""}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):this.each(ae.isFunction(t)?function(n){ae(this).toggleClass(t.call(this,n,this.className,e),e)}:function(){if("string"===n)for(var e,i=0,r=ae(this),a=t.match(se)||[];e=a[i++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else(n===q||"boolean"===n)&&(this.className&&me.set(this,"__className__",this.className),this.className=this.className||t===!1?"":me.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(we," ").indexOf(e)>=0)return!0;return!1},val:function(t){var n,i,r,a=this[0];{if(arguments.length)return r=ae.isFunction(t),this.each(function(i){var a;1===this.nodeType&&(a=r?t.call(this,i,ae(this).val()):t,null==a?a="":"number"==typeof a?a+="":ae.isArray(a)&&(a=ae.map(a,function(t){return null==t?"":t+""})),n=ae.valHooks[this.type]||ae.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&n.set(this,a,"value")!==e||(this.value=a))});if(a)return n=ae.valHooks[a.type]||ae.valHooks[a.nodeName.toLowerCase()],n&&"get"in n&&(i=n.get(a,"value"))!==e?i:(i=a.value,"string"==typeof i?i.replace(ke,""):null==i?"":i)}}}),ae.extend({valHooks:{option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){for(var e,n,i=t.options,r=t.selectedIndex,a="select-one"===t.type||0>r,o=a?null:[],s=a?r+1:i.length,l=0>r?s:a?r:0;s>l;l++)if(n=i[l],!(!n.selected&&l!==r||(ae.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&ae.nodeName(n.parentNode,"optgroup"))){if(e=ae(n).val(),a)return e;o.push(e)}return o},set:function(t,e){for(var n,i,r=t.options,a=ae.makeArray(e),o=r.length;o--;)i=r[o],(i.selected=ae.inArray(ae(i).val(),a)>=0)&&(n=!0);return n||(t.selectedIndex=-1),a}}},attr:function(t,n,i){var r,a,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===q?ae.prop(t,n,i):(1===o&&ae.isXMLDoc(t)||(n=n.toLowerCase(),r=ae.attrHooks[n]||(ae.expr.match.bool.test(n)?xe:be)),i===e?r&&"get"in r&&null!==(a=r.get(t,n))?a:(a=ae.find.attr(t,n),null==a?e:a):null!==i?r&&"set"in r&&(a=r.set(t,i,n))!==e?a:(t.setAttribute(n,i+""),i):void ae.removeAttr(t,n))},removeAttr:function(t,e){var n,i,r=0,a=e&&e.match(se);if(a&&1===t.nodeType)for(;n=a[r++];)i=ae.propFix[n]||n,ae.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!ae.support.radioValue&&"radio"===e&&ae.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(t,n,i){var r,a,o,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return o=1!==s||!ae.isXMLDoc(t),o&&(n=ae.propFix[n]||n,a=ae.propHooks[n]),i!==e?a&&"set"in a&&(r=a.set(t,i,n))!==e?r:t[n]=i:a&&"get"in a&&null!==(r=a.get(t,n))?r:t[n]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||$e.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),xe={set:function(t,e,n){return e===!1?ae.removeAttr(t,n):t.setAttribute(n,n),n}},ae.each(ae.expr.match.bool.source.match(/\w+/g),function(t,n){var i=ae.expr.attrHandle[n]||ae.find.attr;ae.expr.attrHandle[n]=function(t,n,r){var a=ae.expr.attrHandle[n],o=r?e:(ae.expr.attrHandle[n]=e)!=i(t,n,r)?n.toLowerCase():null;return ae.expr.attrHandle[n]=a,o}}),ae.support.optSelected||(ae.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),ae.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ae.propFix[this.toLowerCase()]=this}),ae.each(["radio","checkbox"],function(){ae.valHooks[this]={set:function(t,e){return ae.isArray(e)?t.checked=ae.inArray(ae(t).val(),e)>=0:void 0}},ae.support.checkOn||(ae.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var _e=/^key/,Ce=/^(?:mouse|contextmenu)|click/,Me=/^(?:focusinfocus|focusoutblur)$/,De=/^([^.]*)(?:\.(.+)|)$/;ae.event={global:{},add:function(t,n,i,r,a){var o,s,l,u,c,d,h,p,f,g,m,v=me.get(t);if(v){for(i.handler&&(o=i,i=o.handler,a=o.selector),i.guid||(i.guid=ae.guid++),(u=v.events)||(u=v.events={}),(s=v.handle)||(s=v.handle=function(t){return typeof ae===q||t&&ae.event.triggered===t.type?e:ae.event.dispatch.apply(s.elem,arguments)},s.elem=t),n=(n||"").match(se)||[""],c=n.length;c--;)l=De.exec(n[c])||[],f=m=l[1],g=(l[2]||"").split(".").sort(),f&&(h=ae.event.special[f]||{},f=(a?h.delegateType:h.bindType)||f,h=ae.event.special[f]||{},d=ae.extend({type:f,origType:m,data:r,handler:i,guid:i.guid,selector:a,needsContext:a&&ae.expr.match.needsContext.test(a),namespace:g.join(".")},o),(p=u[f])||(p=u[f]=[],p.delegateCount=0,h.setup&&h.setup.call(t,r,g,s)!==!1||t.addEventListener&&t.addEventListener(f,s,!1)),h.add&&(h.add.call(t,d),d.handler.guid||(d.handler.guid=i.guid)),a?p.splice(p.delegateCount++,0,d):p.push(d),ae.event.global[f]=!0);
t=null}},remove:function(t,e,n,i,r){var a,o,s,l,u,c,d,h,p,f,g,m=me.hasData(t)&&me.get(t);if(m&&(l=m.events)){for(e=(e||"").match(se)||[""],u=e.length;u--;)if(s=De.exec(e[u])||[],p=g=s[1],f=(s[2]||"").split(".").sort(),p){for(d=ae.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,h=l[p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=h.length;a--;)c=h[a],!r&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(a,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(t,c));o&&!h.length&&(d.teardown&&d.teardown.call(t,f,m.handle)!==!1||ae.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)ae.event.remove(t,p+e[u],n,i,!0);ae.isEmptyObject(l)&&(delete m.handle,me.remove(t,"events"))}},trigger:function(n,i,r,a){var o,s,l,u,c,d,h,p=[r||B],f=ie.call(n,"type")?n.type:n,g=ie.call(n,"namespace")?n.namespace.split("."):[];if(s=l=r=r||B,3!==r.nodeType&&8!==r.nodeType&&!Me.test(f+ae.event.triggered)&&(f.indexOf(".")>=0&&(g=f.split("."),f=g.shift(),g.sort()),c=f.indexOf(":")<0&&"on"+f,n=n[ae.expando]?n:new ae.Event(f,"object"==typeof n&&n),n.isTrigger=a?2:3,n.namespace=g.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=e,n.target||(n.target=r),i=null==i?[n]:ae.makeArray(i,[n]),h=ae.event.special[f]||{},a||!h.trigger||h.trigger.apply(r,i)!==!1)){if(!a&&!h.noBubble&&!ae.isWindow(r)){for(u=h.delegateType||f,Me.test(u+f)||(s=s.parentNode);s;s=s.parentNode)p.push(s),l=s;l===(r.ownerDocument||B)&&p.push(l.defaultView||l.parentWindow||t)}for(o=0;(s=p[o++])&&!n.isPropagationStopped();)n.type=o>1?u:h.bindType||f,d=(me.get(s,"events")||{})[n.type]&&me.get(s,"handle"),d&&d.apply(s,i),d=c&&s[c],d&&ae.acceptData(s)&&d.apply&&d.apply(s,i)===!1&&n.preventDefault();return n.type=f,a||n.isDefaultPrevented()||h._default&&h._default.apply(p.pop(),i)!==!1||!ae.acceptData(r)||c&&ae.isFunction(r[f])&&!ae.isWindow(r)&&(l=r[c],l&&(r[c]=null),ae.event.triggered=f,r[f](),ae.event.triggered=e,l&&(r[c]=l)),n.result}},dispatch:function(t){t=ae.event.fix(t);var n,i,r,a,o,s=[],l=te.call(arguments),u=(me.get(this,"events")||{})[t.type]||[],c=ae.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){for(s=ae.event.handlers.call(this,t,u),n=0;(a=s[n++])&&!t.isPropagationStopped();)for(t.currentTarget=a.elem,i=0;(o=a.handlers[i++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(o.namespace))&&(t.handleObj=o,t.data=o.data,r=((ae.event.special[o.origType]||{}).handle||o.handler).apply(a.elem,l),r!==e&&(t.result=r)===!1&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,n){var i,r,a,o,s=[],l=n.delegateCount,u=t.target;if(l&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!==this;u=u.parentNode||this)if(u.disabled!==!0||"click"!==t.type){for(r=[],i=0;l>i;i++)o=n[i],a=o.selector+" ",r[a]===e&&(r[a]=o.needsContext?ae(a,this).index(u)>=0:ae.find(a,this,null,[u]).length),r[a]&&r.push(o);r.length&&s.push({elem:u,handlers:r})}return l<n.length&&s.push({elem:this,handlers:n.slice(l)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,n){var i,r,a,o=n.button;return null==t.pageX&&null!=n.clientX&&(i=t.target.ownerDocument||B,r=i.documentElement,a=i.body,t.pageX=n.clientX+(r&&r.scrollLeft||a&&a.scrollLeft||0)-(r&&r.clientLeft||a&&a.clientLeft||0),t.pageY=n.clientY+(r&&r.scrollTop||a&&a.scrollTop||0)-(r&&r.clientTop||a&&a.clientTop||0)),t.which||o===e||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[ae.expando])return t;var e,n,i,r=t.type,a=t,o=this.fixHooks[r];for(o||(this.fixHooks[r]=o=Ce.test(r)?this.mouseHooks:_e.test(r)?this.keyHooks:{}),i=o.props?this.props.concat(o.props):this.props,t=new ae.Event(a),e=i.length;e--;)n=i[e],t[n]=a[n];return t.target||(t.target=B),3===t.target.nodeType&&(t.target=t.target.parentNode),o.filter?o.filter(t,a):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==l()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===l()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&ae.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return ae.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){t.result!==e&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,i){var r=ae.extend(new ae.Event,n,{type:t,isSimulated:!0,originalEvent:{}});i?ae.event.trigger(r,null,e):ae.event.dispatch.call(e,r),r.isDefaultPrevented()&&n.preventDefault()}},ae.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},ae.Event=function(t,e){return this instanceof ae.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.getPreventDefault&&t.getPreventDefault()?o:s):this.type=t,e&&ae.extend(this,e),this.timeStamp=t&&t.timeStamp||ae.now(),void(this[ae.expando]=!0)):new ae.Event(t,e)},ae.Event.prototype={isDefaultPrevented:s,isPropagationStopped:s,isImmediatePropagationStopped:s,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=o,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=o,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=o,this.stopPropagation()}},ae.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,e){ae.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,a=t.handleObj;return(!r||r!==i&&!ae.contains(i,r))&&(t.type=a.origType,n=a.handler.apply(this,arguments),t.type=e),n}}}),ae.support.focusinBubbles||ae.each({focus:"focusin",blur:"focusout"},function(t,e){var n=0,i=function(t){ae.event.simulate(e,t.target,ae.event.fix(t),!0)};ae.event.special[e]={setup:function(){0===n++&&B.addEventListener(t,i,!0)},teardown:function(){0===--n&&B.removeEventListener(t,i,!0)}}}),ae.fn.extend({on:function(t,n,i,r,a){var o,l;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=e);for(l in t)this.on(l,n,i,t[l],a);return this}if(null==i&&null==r?(r=n,i=n=e):null==r&&("string"==typeof n?(r=i,i=e):(r=i,i=n,n=e)),r===!1)r=s;else if(!r)return this;return 1===a&&(o=r,r=function(t){return ae().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=ae.guid++)),this.each(function(){ae.event.add(this,t,r,i,n)})},one:function(t,e,n,i){return this.on(t,e,n,i,1)},off:function(t,n,i){var r,a;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,ae(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(a in t)this.off(a,n,t[a]);return this}return(n===!1||"function"==typeof n)&&(i=n,n=e),i===!1&&(i=s),this.each(function(){ae.event.remove(this,t,i,n)})},trigger:function(t,e){return this.each(function(){ae.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?ae.event.trigger(t,e,n,!0):void 0}});var Se=/^.[^:#\[\.,]*$/,Ae=/^(?:parents|prev(?:Until|All))/,Te=ae.expr.match.needsContext,Ee={children:!0,contents:!0,next:!0,prev:!0};ae.fn.extend({find:function(t){var e,n=[],i=this,r=i.length;if("string"!=typeof t)return this.pushStack(ae(t).filter(function(){for(e=0;r>e;e++)if(ae.contains(i[e],this))return!0}));for(e=0;r>e;e++)ae.find(t,i[e],n);return n=this.pushStack(r>1?ae.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},has:function(t){var e=ae(t,this),n=e.length;return this.filter(function(){for(var t=0;n>t;t++)if(ae.contains(this,e[t]))return!0})},not:function(t){return this.pushStack(c(this,t||[],!0))},filter:function(t){return this.pushStack(c(this,t||[],!1))},is:function(t){return!!c(this,"string"==typeof t&&Te.test(t)?ae(t):t||[],!1).length},closest:function(t,e){for(var n,i=0,r=this.length,a=[],o=Te.test(t)||"string"!=typeof t?ae(t,e||this.context):0;r>i;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&ae.find.matchesSelector(n,t))){n=a.push(n);break}return this.pushStack(a.length>1?ae.unique(a):a)},index:function(t){return t?"string"==typeof t?ee.call(ae(t),this[0]):ee.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){var n="string"==typeof t?ae(t,e):ae.makeArray(t&&t.nodeType?[t]:t),i=ae.merge(this.get(),n);return this.pushStack(ae.unique(i))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ae.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return ae.dir(t,"parentNode")},parentsUntil:function(t,e,n){return ae.dir(t,"parentNode",n)},next:function(t){return u(t,"nextSibling")},prev:function(t){return u(t,"previousSibling")},nextAll:function(t){return ae.dir(t,"nextSibling")},prevAll:function(t){return ae.dir(t,"previousSibling")},nextUntil:function(t,e,n){return ae.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return ae.dir(t,"previousSibling",n)},siblings:function(t){return ae.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return ae.sibling(t.firstChild)},contents:function(t){return t.contentDocument||ae.merge([],t.childNodes)}},function(t,e){ae.fn[t]=function(n,i){var r=ae.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=ae.filter(i,r)),this.length>1&&(Ee[t]||ae.unique(r),Ae.test(t)&&r.reverse()),this.pushStack(r)}}),ae.extend({filter:function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?ae.find.matchesSelector(i,t)?[i]:[]:ae.find.matches(t,ae.grep(e,function(t){return 1===t.nodeType}))},dir:function(t,n,i){for(var r=[],a=i!==e;(t=t[n])&&9!==t.nodeType;)if(1===t.nodeType){if(a&&ae(t).is(i))break;r.push(t)}return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}});var Ie=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Pe=/<([\w:]+)/,Ne=/<|&#?\w+;/,Oe=/<(?:script|style|link)/i,ze=/^(?:checkbox|radio)$/i,He=/checked\s*(?:[^=]|=\s*.checked.)/i,Le=/^$|\/(?:java|ecma)script/i,Fe=/^true\/(.*)/,Re=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,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,ae.fn.extend({text:function(t){return ae.access(this,function(t){return t===e?ae.text(this):this.empty().append((this[0]&&this[0].ownerDocument||B).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=d(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=d(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,i=t?ae.filter(t,this):this,r=0;null!=(n=i[r]);r++)e||1!==n.nodeType||ae.cleanData(m(n)),n.parentNode&&(e&&ae.contains(n.ownerDocument,n)&&f(m(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(ae.cleanData(m(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return ae.clone(this,t,e)})},html:function(t){return ae.access(this,function(t){var n=this[0]||{},i=0,r=this.length;if(t===e&&1===n.nodeType)return n.innerHTML;if("string"==typeof t&&!Oe.test(t)&&!We[(Pe.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Ie,"<$1></$2>");try{for(;r>i;i++)n=this[i]||{},1===n.nodeType&&(ae.cleanData(m(n,!1)),n.innerHTML=t);n=0}catch(a){}}n&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=ae.map(this,function(t){return[t.nextSibling,t.parentNode]}),e=0;return this.domManip(arguments,function(n){var i=t[e++],r=t[e++];r&&(i&&i.parentNode!==r&&(i=this.nextSibling),ae(this).remove(),r.insertBefore(n,i))},!0),e?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e,n){t=Q.apply([],t);var i,r,a,o,s,l,u=0,c=this.length,d=this,f=c-1,g=t[0],v=ae.isFunction(g);if(v||!(1>=c||"string"!=typeof g||ae.support.checkClone)&&He.test(g))return this.each(function(i){var r=d.eq(i);v&&(t[0]=g.call(this,i,r.html())),r.domManip(t,e,n)});if(c&&(i=ae.buildFragment(t,this[0].ownerDocument,!1,!n&&this),r=i.firstChild,1===i.childNodes.length&&(i=r),r)){for(a=ae.map(m(i,"script"),h),o=a.length;c>u;u++)s=i,u!==f&&(s=ae.clone(s,!0,!0),o&&ae.merge(a,m(s,"script"))),e.call(this[u],s,u);if(o)for(l=a[a.length-1].ownerDocument,ae.map(a,p),u=0;o>u;u++)s=a[u],Le.test(s.type||"")&&!me.access(s,"globalEval")&&ae.contains(l,s)&&(s.src?ae._evalUrl(s.src):ae.globalEval(s.textContent.replace(Re,"")))}return this}}),ae.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ae.fn[t]=function(t){for(var n,i=[],r=ae(t),a=r.length-1,o=0;a>=o;o++)n=o===a?this:this.clone(!0),ae(r[o])[e](n),J.apply(i,n.get());return this.pushStack(i)}}),ae.extend({clone:function(t,e,n){var i,r,a,o,s=t.cloneNode(!0),l=ae.contains(t.ownerDocument,t);if(!(ae.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ae.isXMLDoc(t)))for(o=m(s),a=m(t),i=0,r=a.length;r>i;i++)v(a[i],o[i]);if(e)if(n)for(a=a||m(t),o=o||m(s),i=0,r=a.length;r>i;i++)g(a[i],o[i]);else g(t,s);return o=m(s,"script"),o.length>0&&f(o,!l&&m(t,"script")),s},buildFragment:function(t,e,n,i){for(var r,a,o,s,l,u,c=0,d=t.length,h=e.createDocumentFragment(),p=[];d>c;c++)if(r=t[c],r||0===r)if("object"===ae.type(r))ae.merge(p,r.nodeType?[r]:r);else if(Ne.test(r)){for(a=a||h.appendChild(e.createElement("div")),o=(Pe.exec(r)||["",""])[1].toLowerCase(),s=We[o]||We._default,a.innerHTML=s[1]+r.replace(Ie,"<$1></$2>")+s[2],u=s[0];u--;)a=a.lastChild;ae.merge(p,a.childNodes),a=h.firstChild,a.textContent=""}else p.push(e.createTextNode(r));for(h.textContent="",c=0;r=p[c++];)if((!i||-1===ae.inArray(r,i))&&(l=ae.contains(r.ownerDocument,r),a=m(h.appendChild(r),"script"),l&&f(a),n))for(u=0;r=a[u++];)Le.test(r.type||"")&&n.push(r);return h},cleanData:function(t){for(var n,i,a,o,s,l,u=ae.event.special,c=0;(i=t[c])!==e;c++){if(r.accepts(i)&&(s=i[me.expando],s&&(n=me.cache[s]))){if(a=Object.keys(n.events||{}),a.length)for(l=0;(o=a[l])!==e;l++)u[o]?ae.event.remove(i,o):ae.removeEvent(i,o,n.handle);me.cache[s]&&delete me.cache[s]}delete ge.cache[i[ge.expando]]}},_evalUrl:function(t){return ae.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),ae.fn.extend({wrapAll:function(t){var e;return ae.isFunction(t)?this.each(function(e){ae(this).wrapAll(t.call(this,e))}):(this[0]&&(e=ae(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return this.each(ae.isFunction(t)?function(e){ae(this).wrapInner(t.call(this,e))}:function(){var e=ae(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=ae.isFunction(t);return this.each(function(n){ae(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){ae.nodeName(this,"body")||ae(this).replaceWith(this.childNodes)}).end()}});var je,qe,Ve=/^(none|table(?!-c[ea]).+)/,Be=/^margin/,Ue=new RegExp("^("+oe+")(.*)$","i"),Ye=new RegExp("^("+oe+")(?!px)[a-z%]+$","i"),Xe=new RegExp("^([+-])=("+oe+")","i"),Ke={BODY:"block"},Ge={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:0,fontWeight:400},Qe=["Top","Right","Bottom","Left"],Je=["Webkit","O","Moz","ms"];ae.fn.extend({css:function(t,n){return ae.access(this,function(t,n,i){var r,a,o={},s=0;if(ae.isArray(n)){for(r=x(t),a=n.length;a>s;s++)o[n[s]]=ae.css(t,n[s],!1,r);return o}return i!==e?ae.style(t,n,i):ae.css(t,n)},t,n,arguments.length>1)},show:function(){return w(this,!0)},hide:function(){return w(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){b(this)?ae(this).show():ae(this).hide()})}}),ae.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=je(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,n,i,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var a,o,s,l=ae.camelCase(n),u=t.style;return n=ae.cssProps[l]||(ae.cssProps[l]=y(u,l)),s=ae.cssHooks[n]||ae.cssHooks[l],i===e?s&&"get"in s&&(a=s.get(t,!1,r))!==e?a:u[n]:(o=typeof i,"string"===o&&(a=Xe.exec(i))&&(i=(a[1]+1)*a[2]+parseFloat(ae.css(t,n)),o="number"),null==i||"number"===o&&isNaN(i)||("number"!==o||ae.cssNumber[l]||(i+="px"),ae.support.clearCloneStyle||""!==i||0!==n.indexOf("background")||(u[n]="inherit"),s&&"set"in s&&(i=s.set(t,i,r))===e||(u[n]=i)),void 0)}},css:function(t,n,i,r){var a,o,s,l=ae.camelCase(n);return n=ae.cssProps[l]||(ae.cssProps[l]=y(t.style,l)),s=ae.cssHooks[n]||ae.cssHooks[l],s&&"get"in s&&(a=s.get(t,!0,i)),a===e&&(a=je(t,n,r)),"normal"===a&&n in Ze&&(a=Ze[n]),""===i||i?(o=parseFloat(a),i===!0||ae.isNumeric(o)?o||0:a):a}}),je=function(t,n,i){var r,a,o,s=i||x(t),l=s?s.getPropertyValue(n)||s[n]:e,u=t.style;return s&&(""!==l||ae.contains(t.ownerDocument,t)||(l=ae.style(t,n)),Ye.test(l)&&Be.test(n)&&(r=u.width,a=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=l,l=s.width,u.width=r,u.minWidth=a,u.maxWidth=o)),l},ae.each(["height","width"],function(t,e){ae.cssHooks[e]={get:function(t,n,i){return n?0===t.offsetWidth&&Ve.test(ae.css(t,"display"))?ae.swap(t,Ge,function(){return _(t,e,i)}):_(t,e,i):void 0},set:function(t,n,i){var r=i&&x(t);return k(t,n,i?$(t,e,i,ae.support.boxSizing&&"border-box"===ae.css(t,"boxSizing",!1,r),r):0)}}}),ae(function(){ae.support.reliableMarginRight||(ae.cssHooks.marginRight={get:function(t,e){return e?ae.swap(t,{display:"inline-block"},je,[t,"marginRight"]):void 0}}),!ae.support.pixelPosition&&ae.fn.position&&ae.each(["top","left"],function(t,e){ae.cssHooks[e]={get:function(t,n){return n?(n=je(t,e),Ye.test(n)?ae(t).position()[e]+"px":n):void 0}}})}),ae.expr&&ae.expr.filters&&(ae.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},ae.expr.filters.visible=function(t){return!ae.expr.filters.hidden(t)}),ae.each({margin:"",padding:"",border:"Width"},function(t,e){ae.cssHooks[t+e]={expand:function(n){for(var i=0,r={},a="string"==typeof n?n.split(" "):[n];4>i;i++)r[t+Qe[i]+e]=a[i]||a[i-2]||a[0];return r}},Be.test(t)||(ae.cssHooks[t+e].set=k)});var tn=/%20/g,en=/\[\]$/,nn=/\r?\n/g,rn=/^(?:submit|button|image|reset|file)$/i,an=/^(?:input|select|textarea|keygen)/i;ae.fn.extend({serialize:function(){return ae.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ae.prop(this,"elements");return t?ae.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ae(this).is(":disabled")&&an.test(this.nodeName)&&!rn.test(t)&&(this.checked||!ze.test(t))}).map(function(t,e){var n=ae(this).val();return null==n?null:ae.isArray(n)?ae.map(n,function(t){return{name:e.name,value:t.replace(nn,"\r\n")}}):{name:e.name,value:n.replace(nn,"\r\n")}}).get()}}),ae.param=function(t,n){var i,r=[],a=function(t,e){e=ae.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(n===e&&(n=ae.ajaxSettings&&ae.ajaxSettings.traditional),ae.isArray(t)||t.jquery&&!ae.isPlainObject(t))ae.each(t,function(){a(this.name,this.value)});else for(i in t)D(i,t[i],n,a);return r.join("&").replace(tn,"+")},ae.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){ae.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),ae.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var on,sn,ln=ae.now(),un=/\?/,cn=/#.*$/,dn=/([?&])_=[^&]*/,hn=/^(.*?):[ \t]*([^\r\n]*)$/gm,pn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,fn=/^(?:GET|HEAD)$/,gn=/^\/\//,mn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,vn=ae.fn.load,yn={},bn={},xn="*/".concat("*");try{sn=V.href}catch(wn){sn=B.createElement("a"),sn.href="",sn=sn.href}on=mn.exec(sn.toLowerCase())||[],ae.fn.load=function(t,n,i){if("string"!=typeof t&&vn)return vn.apply(this,arguments);var r,a,o,s=this,l=t.indexOf(" ");return l>=0&&(r=t.slice(l),t=t.slice(0,l)),ae.isFunction(n)?(i=n,n=e):n&&"object"==typeof n&&(a="POST"),s.length>0&&ae.ajax({url:t,type:a,dataType:"html",data:n}).done(function(t){o=arguments,s.html(r?ae("<div>").append(ae.parseHTML(t)).find(r):t)}).complete(i&&function(t,e){s.each(i,o||[t.responseText,e,t])}),this},ae.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ae.fn[e]=function(t){return this.on(e,t)}}),ae.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:sn,type:"GET",isLocal:pn.test(on[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":xn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ae.parseJSON,"text xml":ae.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?T(T(t,ae.ajaxSettings),e):T(ae.ajaxSettings,t)},ajaxPrefilter:S(yn),ajaxTransport:S(bn),ajax:function(t,n){function i(t,n,i,s){var u,d,y,b,w,$=n;2!==x&&(x=2,l&&clearTimeout(l),r=e,o=s||"",k.readyState=t>0?4:0,u=t>=200&&300>t||304===t,i&&(b=E(h,k,i)),b=I(h,b,k,u),u?(h.ifModified&&(w=k.getResponseHeader("Last-Modified"),w&&(ae.lastModified[a]=w),w=k.getResponseHeader("etag"),w&&(ae.etag[a]=w)),204===t||"HEAD"===h.type?$="nocontent":304===t?$="notmodified":($=b.state,d=b.data,y=b.error,u=!y)):(y=$,(t||!$)&&($="error",0>t&&(t=0))),k.status=t,k.statusText=(n||$)+"",u?g.resolveWith(p,[d,$,k]):g.rejectWith(p,[k,$,y]),k.statusCode(v),v=e,c&&f.trigger(u?"ajaxSuccess":"ajaxError",[k,h,u?d:y]),m.fireWith(p,[k,$]),c&&(f.trigger("ajaxComplete",[k,h]),--ae.active||ae.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=e),n=n||{};var r,a,o,s,l,u,c,d,h=ae.ajaxSetup({},n),p=h.context||h,f=h.context&&(p.nodeType||p.jquery)?ae(p):ae.event,g=ae.Deferred(),m=ae.Callbacks("once memory"),v=h.statusCode||{},y={},b={},x=0,w="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!s)for(s={};e=hn.exec(o);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?o:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=b[n]=b[n]||t,y[t]=e),this},overrideMimeType:function(t){return x||(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>x)for(e in t)v[e]=[v[e],t[e]];else k.always(t[k.status]);return this},abort:function(t){var e=t||w;return r&&r.abort(e),i(0,e),this}};if(g.promise(k).complete=m.add,k.success=k.done,k.error=k.fail,h.url=((t||h.url||sn)+"").replace(cn,"").replace(gn,on[1]+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=ae.trim(h.dataType||"*").toLowerCase().match(se)||[""],null==h.crossDomain&&(u=mn.exec(h.url.toLowerCase()),h.crossDomain=!(!u||u[1]===on[1]&&u[2]===on[2]&&(u[3]||("http:"===u[1]?"80":"443"))===(on[3]||("http:"===on[1]?"80":"443")))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=ae.param(h.data,h.traditional)),A(yn,h,n,k),2===x)return k;c=h.global,c&&0===ae.active++&&ae.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!fn.test(h.type),a=h.url,h.hasContent||(h.data&&(a=h.url+=(un.test(a)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=dn.test(a)?a.replace(dn,"$1_="+ln++):a+(un.test(a)?"&":"?")+"_="+ln++)),h.ifModified&&(ae.lastModified[a]&&k.setRequestHeader("If-Modified-Since",ae.lastModified[a]),ae.etag[a]&&k.setRequestHeader("If-None-Match",ae.etag[a])),(h.data&&h.hasContent&&h.contentType!==!1||n.contentType)&&k.setRequestHeader("Content-Type",h.contentType),k.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+xn+"; q=0.01":""):h.accepts["*"]);for(d in h.headers)k.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(h.beforeSend.call(p,k,h)===!1||2===x))return k.abort();w="abort";for(d in{success:1,error:1,complete:1})k[d](h[d]);if(r=A(bn,h,n,k)){k.readyState=1,c&&f.trigger("ajaxSend",[k,h]),h.async&&h.timeout>0&&(l=setTimeout(function(){k.abort("timeout")},h.timeout));try{x=1,r.send(y,i)}catch($){if(!(2>x))throw $;i(-1,$)}}else i(-1,"No Transport");return k},getJSON:function(t,e,n){return ae.get(t,e,n,"json")},getScript:function(t,n){return ae.get(t,e,n,"script")}}),ae.each(["get","post"],function(t,n){ae[n]=function(t,i,r,a){return ae.isFunction(i)&&(a=a||r,r=i,i=e),ae.ajax({url:t,type:n,dataType:a,data:i,success:r})}}),ae.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return ae.globalEval(t),t}}}),ae.ajaxPrefilter("script",function(t){t.cache===e&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),ae.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(i,r){e=ae("<script>").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),B.head.appendChild(e[0])},abort:function(){n&&n()}}}});var kn=[],$n=/(=)\?(?=&|$)|\?\?/;ae.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=kn.pop()||ae.expando+"_"+ln++;return this[t]=!0,t}}),ae.ajaxPrefilter("json jsonp",function(n,i,r){var a,o,s,l=n.jsonp!==!1&&($n.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&$n.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(a=n.jsonpCallback=ae.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace($n,"$1"+a):n.jsonp!==!1&&(n.url+=(un.test(n.url)?"&":"?")+n.jsonp+"="+a),n.converters["script json"]=function(){return s||ae.error(a+" was not called"),s[0]},n.dataTypes[0]="json",o=t[a],t[a]=function(){s=arguments},r.always(function(){t[a]=o,n[a]&&(n.jsonpCallback=i.jsonpCallback,kn.push(a)),s&&ae.isFunction(o)&&o(s[0]),s=o=e}),"script"):void 0}),ae.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var _n=ae.ajaxSettings.xhr(),Cn={0:200,1223:204},Mn=0,Dn={};t.ActiveXObject&&ae(t).on("unload",function(){for(var t in Dn)Dn[t]();Dn=e}),ae.support.cors=!!_n&&"withCredentials"in _n,ae.support.ajax=_n=!!_n,ae.ajaxTransport(function(t){var n;return ae.support.cors||_n&&!t.crossDomain?{send:function(i,r){var a,o,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(t){return function(){n&&(delete Dn[o],n=s.onload=s.onerror=null,"abort"===t?s.abort():"error"===t?r(s.status||404,s.statusText):r(Cn[s.status]||s.status,s.statusText,"string"==typeof s.responseText?{text:s.responseText}:e,s.getAllResponseHeaders()))}},s.onload=n(),s.onerror=n("error"),n=Dn[o=Mn++]=n("abort"),s.send(t.hasContent&&t.data||null)},abort:function(){n&&n()}}:void 0});var Sn,An,Tn=/^(?:toggle|show|hide)$/,En=new RegExp("^(?:([+-])=|)("+oe+")([a-z%]*)$","i"),In=/queueHooks$/,Pn=[H],Nn={"*":[function(t,e){var n=this.createTween(t,e),i=n.cur(),r=En.exec(e),a=r&&r[3]||(ae.cssNumber[t]?"":"px"),o=(ae.cssNumber[t]||"px"!==a&&+i)&&En.exec(ae.css(n.elem,t)),s=1,l=20;if(o&&o[3]!==a){a=a||o[3],r=r||[],o=+i||1;do s=s||".5",o/=s,ae.style(n.elem,t,o+a);while(s!==(s=n.cur()/i)&&1!==s&&--l)}return r&&(o=n.start=+o||+i||0,n.unit=a,n.end=r[1]?o+(r[1]+1)*r[2]:+r[2]),n}]};ae.Animation=ae.extend(O,{tweener:function(t,e){ae.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,i=0,r=t.length;r>i;i++)n=t[i],Nn[n]=Nn[n]||[],Nn[n].unshift(e)},prefilter:function(t,e){e?Pn.unshift(t):Pn.push(t)}}),ae.Tween=L,L.prototype={constructor:L,init:function(t,e,n,i,r,a){this.elem=t,this.prop=n,this.easing=r||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=a||(ae.cssNumber[n]?"":"px")},cur:function(){var t=L.propHooks[this.prop];return t&&t.get?t.get(this):L.propHooks._default.get(this)},run:function(t){var e,n=L.propHooks[this.prop];return this.pos=e=this.options.duration?ae.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):L.propHooks._default.set(this),this}},L.prototype.init.prototype=L.prototype,L.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=ae.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){ae.fx.step[t.prop]?ae.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[ae.cssProps[t.prop]]||ae.cssHooks[t.prop])?ae.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},L.propHooks.scrollTop=L.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ae.each(["toggle","show","hide"],function(t,e){var n=ae.fn[e];ae.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(F(e,!0),t,i,r)}}),ae.fn.extend({fadeTo:function(t,e,n,i){return this.filter(b).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=ae.isEmptyObject(t),a=ae.speed(e,n,i),o=function(){var e=O(this,ae.extend({},t),a);(r||me.get(this,"finish"))&&e.stop(!0)};return o.finish=o,r||a.queue===!1?this.each(o):this.queue(a.queue,o)},stop:function(t,n,i){var r=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=n,n=t,t=e),n&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,n=null!=t&&t+"queueHooks",a=ae.timers,o=me.get(this);if(n)o[n]&&o[n].stop&&r(o[n]);else for(n in o)o[n]&&o[n].stop&&In.test(n)&&r(o[n]);for(n=a.length;n--;)a[n].elem!==this||null!=t&&a[n].queue!==t||(a[n].anim.stop(i),e=!1,a.splice(n,1));(e||!i)&&ae.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=me.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],a=ae.timers,o=i?i.length:0;for(n.finish=!0,ae.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=a.length;e--;)a[e].elem===this&&a[e].queue===t&&(a[e].anim.stop(!0),a.splice(e,1));for(e=0;o>e;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})
}}),ae.each({slideDown:F("show"),slideUp:F("hide"),slideToggle:F("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ae.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),ae.speed=function(t,e,n){var i=t&&"object"==typeof t?ae.extend({},t):{complete:n||!n&&e||ae.isFunction(t)&&t,duration:t,easing:n&&e||e&&!ae.isFunction(e)&&e};return i.duration=ae.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in ae.fx.speeds?ae.fx.speeds[i.duration]:ae.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){ae.isFunction(i.old)&&i.old.call(this),i.queue&&ae.dequeue(this,i.queue)},i},ae.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},ae.timers=[],ae.fx=L.prototype.init,ae.fx.tick=function(){var t,n=ae.timers,i=0;for(Sn=ae.now();i<n.length;i++)t=n[i],t()||n[i]!==t||n.splice(i--,1);n.length||ae.fx.stop(),Sn=e},ae.fx.timer=function(t){t()&&ae.timers.push(t)&&ae.fx.start()},ae.fx.interval=13,ae.fx.start=function(){An||(An=setInterval(ae.fx.tick,ae.fx.interval))},ae.fx.stop=function(){clearInterval(An),An=null},ae.fx.speeds={slow:600,fast:200,_default:400},ae.fx.step={},ae.expr&&ae.expr.filters&&(ae.expr.filters.animated=function(t){return ae.grep(ae.timers,function(e){return t===e.elem}).length}),ae.fn.offset=function(t){if(arguments.length)return t===e?this:this.each(function(e){ae.offset.setOffset(this,t,e)});var n,i,r=this[0],a={top:0,left:0},o=r&&r.ownerDocument;if(o)return n=o.documentElement,ae.contains(n,r)?(typeof r.getBoundingClientRect!==q&&(a=r.getBoundingClientRect()),i=R(o),{top:a.top+i.pageYOffset-n.clientTop,left:a.left+i.pageXOffset-n.clientLeft}):a},ae.offset={setOffset:function(t,e,n){var i,r,a,o,s,l,u,c=ae.css(t,"position"),d=ae(t),h={};"static"===c&&(t.style.position="relative"),s=d.offset(),a=ae.css(t,"top"),l=ae.css(t,"left"),u=("absolute"===c||"fixed"===c)&&(a+l).indexOf("auto")>-1,u?(i=d.position(),o=i.top,r=i.left):(o=parseFloat(a)||0,r=parseFloat(l)||0),ae.isFunction(e)&&(e=e.call(t,n,s)),null!=e.top&&(h.top=e.top-s.top+o),null!=e.left&&(h.left=e.left-s.left+r),"using"in e?e.using.call(t,h):d.css(h)}},ae.fn.extend({position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===ae.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ae.nodeName(t[0],"html")||(i=t.offset()),i.top+=ae.css(t[0],"borderTopWidth",!0),i.left+=ae.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-ae.css(n,"marginTop",!0),left:e.left-i.left-ae.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||U;t&&!ae.nodeName(t,"html")&&"static"===ae.css(t,"position");)t=t.offsetParent;return t||U})}}),ae.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,i){var r="pageYOffset"===i;ae.fn[n]=function(a){return ae.access(this,function(n,a,o){var s=R(n);return o===e?s?s[i]:n[a]:void(s?s.scrollTo(r?t.pageXOffset:o,r?o:t.pageYOffset):n[a]=o)},n,a,arguments.length,null)}}),ae.each({Height:"height",Width:"width"},function(t,n){ae.each({padding:"inner"+t,content:n,"":"outer"+t},function(i,r){ae.fn[r]=function(r,a){var o=arguments.length&&(i||"boolean"!=typeof r),s=i||(r===!0||a===!0?"margin":"border");return ae.access(this,function(n,i,r){var a;return ae.isWindow(n)?n.document.documentElement["client"+t]:9===n.nodeType?(a=n.documentElement,Math.max(n.body["scroll"+t],a["scroll"+t],n.body["offset"+t],a["offset"+t],a["client"+t])):r===e?ae.css(n,i,s):ae.style(n,i,r,s)},n,o?r:e,o,null)}})}),ae.fn.size=function(){return this.length},ae.fn.andSelf=ae.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=ae:"function"==typeof define&&define.amd&&define("jquery",[],function(){return ae}),"object"==typeof t&&"object"==typeof t.document&&(t.jQuery=t.$=ae)}(window),/**
 * @license AngularJS v1.3.15
 * (c) 2010-2014 Google, Inc. http://angularjs.org
 * License: MIT
 */
function(t,e,n){"use strict";function i(t,e){return e=e||Error,function(){var n,i,r=arguments[0],a="["+(t?t+":":"")+r+"] ",o=arguments[1],s=arguments;for(n=a+o.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1);return e+2<s.length?he(s[e+2]):t}),n=n+"\nhttp://errors.angularjs.org/1.3.15/"+(t?t+"/":"")+r,i=2;i<arguments.length;i++)n=n+(2==i?"?":"&")+"p"+(i-2)+"="+encodeURIComponent(he(arguments[i]));return new e(n)}}function r(t){if(null==t||C(t))return!1;var e=t.length;return t.nodeType===br&&e?!0:x(t)||hr(t)||0===e||"number"==typeof e&&e>0&&e-1 in t}function a(t,e,n){var i,o;if(t)if($(t))for(i in t)"prototype"==i||"length"==i||"name"==i||t.hasOwnProperty&&!t.hasOwnProperty(i)||e.call(n,t[i],i,t);else if(hr(t)||r(t)){var s="object"!=typeof t;for(i=0,o=t.length;o>i;i++)(s||i in t)&&e.call(n,t[i],i,t)}else if(t.forEach&&t.forEach!==a)t.forEach(e,n,t);else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t);return t}function o(t){return Object.keys(t).sort()}function s(t,e,n){for(var i=o(t),r=0;r<i.length;r++)e.call(n,t[i[r]],i[r]);return i}function l(t){return function(e,n){t(n,e)}}function u(){return++cr}function c(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function d(t){for(var e=t.$$hashKey,n=1,i=arguments.length;i>n;n++){var r=arguments[n];if(r)for(var a=Object.keys(r),o=0,s=a.length;s>o;o++){var l=a[o];t[l]=r[l]}}return c(t,e),t}function h(t){return parseInt(t,10)}function p(t,e){return d(Object.create(t),e)}function f(){}function g(t){return t}function m(t){return function(){return t}}function v(t){return"undefined"==typeof t}function y(t){return"undefined"!=typeof t}function b(t){return null!==t&&"object"==typeof t}function x(t){return"string"==typeof t}function w(t){return"number"==typeof t}function k(t){return"[object Date]"===sr.call(t)}function $(t){return"function"==typeof t}function _(t){return"[object RegExp]"===sr.call(t)}function C(t){return t&&t.window===t}function M(t){return t&&t.$evalAsync&&t.$watch}function D(t){return"[object File]"===sr.call(t)}function S(t){return"[object FormData]"===sr.call(t)}function A(t){return"[object Blob]"===sr.call(t)}function T(t){return"boolean"==typeof t}function E(t){return t&&$(t.then)}function I(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function P(t){var e,n={},i=t.split(",");for(e=0;e<i.length;e++)n[i[e]]=!0;return n}function N(t){return Ki(t.nodeName||t[0]&&t[0].nodeName)}function O(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),e}function z(t,e,n,i){if(C(t)||M(t))throw lr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(e){if(t===e)throw lr("cpi","Can't copy! Source and destination are identical.");if(n=n||[],i=i||[],b(t)){var r=n.indexOf(t);if(-1!==r)return i[r];n.push(t),i.push(e)}var o;if(hr(t)){e.length=0;for(var s=0;s<t.length;s++)o=z(t[s],null,n,i),b(t[s])&&(n.push(t[s]),i.push(o)),e.push(o)}else{var l=e.$$hashKey;hr(e)?e.length=0:a(e,function(t,n){delete e[n]});for(var u in t)t.hasOwnProperty(u)&&(o=z(t[u],null,n,i),b(t[u])&&(n.push(t[u]),i.push(o)),e[u]=o);c(e,l)}}else if(e=t,t)if(hr(t))e=z(t,[],n,i);else if(k(t))e=new Date(t.getTime());else if(_(t))e=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0]),e.lastIndex=t.lastIndex;else if(b(t)){var d=Object.create(Object.getPrototypeOf(t));e=z(t,d,n,i)}return e}function H(t,e){if(hr(t)){e=e||[];for(var n=0,i=t.length;i>n;n++)e[n]=t[n]}else if(b(t)){e=e||{};for(var r in t)("$"!==r.charAt(0)||"$"!==r.charAt(1))&&(e[r]=t[r])}return e||t}function L(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;var i,r,a,o=typeof t,s=typeof e;if(o==s&&"object"==o){if(!hr(t)){if(k(t))return k(e)?L(t.getTime(),e.getTime()):!1;if(_(t))return _(e)?t.toString()==e.toString():!1;if(M(t)||M(e)||C(t)||C(e)||hr(e)||k(e)||_(e))return!1;a={};for(r in t)if("$"!==r.charAt(0)&&!$(t[r])){if(!L(t[r],e[r]))return!1;a[r]=!0}for(r in e)if(!a.hasOwnProperty(r)&&"$"!==r.charAt(0)&&e[r]!==n&&!$(e[r]))return!1;return!0}if(!hr(e))return!1;if((i=t.length)==e.length){for(r=0;i>r;r++)if(!L(t[r],e[r]))return!1;return!0}}return!1}function F(t,e,n){return t.concat(rr.call(e,n))}function R(t,e){return rr.call(t,e||0)}function W(t,e){var n=arguments.length>2?R(arguments,2):[];return!$(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,F(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function j(t,i){var r=i;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=n:C(i)?r="$WINDOW":i&&e===i?r="$DOCUMENT":M(i)&&(r="$SCOPE"),r}function q(t,e){return"undefined"==typeof t?n:(w(e)||(e=e?2:null),JSON.stringify(t,j,e))}function V(t){return x(t)?JSON.parse(t):t}function B(t){t=er(t).clone();try{t.empty()}catch(e){}var n=er("<div>").append(t).html();try{return t[0].nodeType===xr?Ki(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+Ki(e)})}catch(e){return Ki(n)}}function U(t){try{return decodeURIComponent(t)}catch(e){}}function Y(t){var e,n,i={};return a((t||"").split("&"),function(t){if(t&&(e=t.replace(/\+/g,"%20").split("="),n=U(e[0]),y(n))){var r=y(e[1])?U(e[1]):!0;Gi.call(i,n)?hr(i[n])?i[n].push(r):i[n]=[i[n],r]:i[n]=r}}),i}function X(t){var e=[];return a(t,function(t,n){hr(t)?a(t,function(t){e.push(G(n,!0)+(t===!0?"":"="+G(t,!0)))}):e.push(G(n,!0)+(t===!0?"":"="+G(t,!0)))}),e.length?e.join("&"):""}function K(t){return G(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function G(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}function Z(t,e){var n,i,r=mr.length;for(t=er(t),i=0;r>i;++i)if(n=mr[i]+e,x(n=t.attr(n)))return n;return null}function Q(t,e){var n,i,r={};a(mr,function(e){var r=e+"app";!n&&t.hasAttribute&&t.hasAttribute(r)&&(n=t,i=t.getAttribute(r))}),a(mr,function(e){var r,a=e+"app";!n&&(r=t.querySelector("["+a.replace(":","\\:")+"]"))&&(n=r,i=r.getAttribute(a))}),n&&(r.strictDi=null!==Z(n,"strict-di"),e(n,i?[i]:[],r))}function J(n,i,r){b(r)||(r={});var o={strictDi:!1};r=d(o,r);var s=function(){if(n=er(n),n.injector()){var t=n[0]===e?"document":B(n);throw lr("btstrpd","App Already Bootstrapped with this Element '{0}'",t.replace(/</,"&lt;").replace(/>/,"&gt;"))}i=i||[],i.unshift(["$provide",function(t){t.value("$rootElement",n)}]),r.debugInfoEnabled&&i.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),i.unshift("ng");var a=Ve(i,r.strictDi);return a.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,i){t.$apply(function(){e.data("$injector",i),n(e)(t)})}]),a},l=/^NG_ENABLE_DEBUG_INFO!/,u=/^NG_DEFER_BOOTSTRAP!/;return t&&l.test(t.name)&&(r.debugInfoEnabled=!0,t.name=t.name.replace(l,"")),t&&!u.test(t.name)?s():(t.name=t.name.replace(u,""),ur.resumeBootstrap=function(t){return a(t,function(t){i.push(t)}),s()},void($(ur.resumeDeferredBootstrap)&&ur.resumeDeferredBootstrap()))}function te(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function ee(t){var e=ur.element(t).injector();if(!e)throw lr("test","no injector found for element argument to getTestability");return e.get("$$testability")}function ne(t,e){return e=e||"_",t.replace(vr,function(t,n){return(n?e:"")+t.toLowerCase()})}function ie(){var e;yr||(nr=t.jQuery,nr&&nr.fn.on?(er=nr,d(nr.fn,{scope:Lr.scope,isolateScope:Lr.isolateScope,controller:Lr.controller,injector:Lr.injector,inheritedData:Lr.inheritedData}),e=nr.cleanData,nr.cleanData=function(t){var n;if(dr)dr=!1;else for(var i,r=0;null!=(i=t[r]);r++)n=nr._data(i,"events"),n&&n.$destroy&&nr(i).triggerHandler("$destroy");e(t)}):er=xe,ur.element=er,yr=!0)}function re(t,e,n){if(!t)throw lr("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ae(t,e,n){return n&&hr(t)&&(t=t[t.length-1]),re($(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function oe(t,e){if("hasOwnProperty"===t)throw lr("badname","hasOwnProperty is not a valid {0} name",e)}function se(t,e,n){if(!e)return t;for(var i,r=e.split("."),a=t,o=r.length,s=0;o>s;s++)i=r[s],t&&(t=(a=t)[i]);return!n&&$(t)?W(a,t):t}function le(t){var e=t[0],n=t[t.length-1],i=[e];do{if(e=e.nextSibling,!e)break;i.push(e)}while(e!==n);return er(i)}function ue(){return Object.create(null)}function ce(t){function e(t,e,n){return t[e]||(t[e]=n())}var n=i("$injector"),r=i("ng"),a=e(t,"angular",Object);return a.$$minErr=a.$$minErr||i,e(a,"module",function(){var t={};return function(i,a,o){var s=function(t,e){if("hasOwnProperty"===t)throw r("badname","hasOwnProperty is not a valid {0} name",e)};return s(i,"module"),a&&t.hasOwnProperty(i)&&(t[i]=null),e(t,i,function(){function t(t,n,i,r){return r||(r=e),function(){return r[i||"push"]([t,n,arguments]),u}}if(!a)throw n("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",i);var e=[],r=[],s=[],l=t("$injector","invoke","push",r),u={_invokeQueue:e,_configBlocks:r,_runBlocks:s,requires:a,name:i,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),config:l,run:function(t){return s.push(t),this}};return o&&l(o),u})}})}function de(t){var e=[];return JSON.stringify(t,function(t,n){if(n=j(t,n),b(n)){if(e.indexOf(n)>=0)return"<<already seen>>";e.push(n)}return n})}function he(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof t?"undefined":"string"!=typeof t?de(t):t}function pe(e){d(e,{bootstrap:J,copy:z,extend:d,equals:L,element:er,forEach:a,injector:Ve,noop:f,bind:W,toJson:q,fromJson:V,identity:g,isUndefined:v,isDefined:y,isString:x,isFunction:$,isObject:b,isNumber:w,isElement:I,isArray:hr,version:_r,isDate:k,lowercase:Ki,uppercase:Zi,callbacks:{counter:0},getTestability:ee,$$minErr:i,$$csp:gr,reloadWithDebugInfo:te}),ir=ce(t);try{ir("ngLocale")}catch(n){ir("ngLocale",[]).provider("$locale",vn)}ir("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:Kn}),t.provider("$compile",Ze).directive({a:Ta,input:Ya,textarea:Ya,form:Oa,script:Ho,select:Ro,style:jo,option:Wo,ngBind:Ga,ngBindHtml:Qa,ngBindTemplate:Za,ngClass:to,ngClassEven:no,ngClassOdd:eo,ngCloak:io,ngController:ro,ngForm:za,ngHide:Eo,ngIf:so,ngInclude:lo,ngInit:co,ngNonBindable:Co,ngPluralize:Mo,ngRepeat:Do,ngShow:To,ngStyle:Io,ngSwitch:Po,ngSwitchWhen:No,ngSwitchDefault:Oo,ngOptions:Fo,ngTransclude:zo,ngModel:ko,ngList:ho,ngChange:Ja,pattern:Vo,ngPattern:Vo,required:qo,ngRequired:qo,minlength:Uo,ngMinlength:Uo,maxlength:Bo,ngMaxlength:Bo,ngValue:Ka,ngModelOptions:_o}).directive({ngInclude:uo}).directive(Ea).directive(ao),t.provider({$anchorScroll:Be,$animate:Xr,$browser:Xe,$cacheFactory:Ke,$controller:en,$document:nn,$exceptionHandler:rn,$filter:si,$interpolate:gn,$interval:mn,$http:dn,$httpBackend:pn,$location:En,$log:In,$parse:qn,$rootScope:Xn,$q:Vn,$$q:Bn,$sce:Jn,$sceDelegate:Qn,$sniffer:ti,$templateCache:Ge,$templateRequest:ei,$$testability:ni,$timeout:ii,$window:oi,$$rAF:Yn,$$asyncCallback:Ue,$$jqLite:Fe})}])}function fe(){return++Mr}function ge(t){return t.replace(Ar,function(t,e,n,i){return i?n.toUpperCase():n}).replace(Tr,"Moz$1")}function me(t){return!Nr.test(t)}function ve(t){var e=t.nodeType;return e===br||!e||e===kr}function ye(t,e){var n,i,r,o,s=e.createDocumentFragment(),l=[];if(me(t))l.push(e.createTextNode(t));else{for(n=n||s.appendChild(e.createElement("div")),i=(Or.exec(t)||["",""])[1].toLowerCase(),r=Hr[i]||Hr._default,n.innerHTML=r[1]+t.replace(zr,"<$1></$2>")+r[2],o=r[0];o--;)n=n.lastChild;l=F(l,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",a(l,function(t){s.appendChild(t)}),s}function be(t,n){n=n||e;var i;return(i=Pr.exec(t))?[n.createElement(i[1])]:(i=ye(t,n))?i.childNodes:[]}function xe(t){if(t instanceof xe)return t;var e;if(x(t)&&(t=pr(t),e=!0),!(this instanceof xe)){if(e&&"<"!=t.charAt(0))throw Ir("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new xe(t)}e?Te(this,be(t)):Te(this,t)}function we(t){return t.cloneNode(!0)}function ke(t,e){if(e||_e(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),i=0,r=n.length;r>i;i++)_e(n[i])}function $e(t,e,n,i){if(y(i))throw Ir("offargs","jqLite#off() does not support the `selector` argument");var r=Ce(t),o=r&&r.events,s=r&&r.handle;if(s)if(e)a(e.split(" "),function(e){if(y(n)){var i=o[e];if(O(i||[],n),i&&i.length>0)return}Sr(t,e,s),delete o[e]});else for(e in o)"$destroy"!==e&&Sr(t,e,s),delete o[e]}function _e(t,e){var i=t.ng339,r=i&&Cr[i];if(r){if(e)return void delete r.data[e];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),$e(t)),delete Cr[i],t.ng339=n}}function Ce(t,e){var i=t.ng339,r=i&&Cr[i];return e&&!r&&(t.ng339=i=fe(),r=Cr[i]={events:{},data:{},handle:n}),r}function Me(t,e,n){if(ve(t)){var i=y(n),r=!i&&e&&!b(e),a=!e,o=Ce(t,!r),s=o&&o.data;if(i)s[e]=n;else{if(a)return s;if(r)return s&&s[e];d(s,e)}}}function De(t,e){return t.getAttribute?(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1:!1}function Se(t,e){e&&t.setAttribute&&a(e.split(" "),function(e){t.setAttribute("class",pr((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+pr(e)+" "," ")))})}function Ae(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");a(e.split(" "),function(t){t=pr(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")}),t.setAttribute("class",pr(n))}}function Te(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var i=0;n>i;i++)t[t.length++]=e[i]}else t[t.length++]=e}}function Ee(t,e){return Ie(t,"$"+(e||"ngController")+"Controller")}function Ie(t,e,i){t.nodeType==kr&&(t=t.documentElement);for(var r=hr(e)?e:[e];t;){for(var a=0,o=r.length;o>a;a++)if((i=er.data(t,r[a]))!==n)return i;t=t.parentNode||t.nodeType===$r&&t.host}}function Pe(t){for(ke(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Ne(t,e){e||ke(t);var n=t.parentNode;n&&n.removeChild(t)}function Oe(e,n){n=n||t,"complete"===n.document.readyState?n.setTimeout(e):er(n).on("load",e)}function ze(t,e){var n=Fr[e.toLowerCase()];return n&&Rr[N(t)]&&n}function He(t,e){var n=t.nodeName;return("INPUT"===n||"TEXTAREA"===n)&&Wr[e]}function Le(t,e){var n=function(n,i){n.isDefaultPrevented=function(){return n.defaultPrevented};var r=e[i||n.type],a=r?r.length:0;if(a){if(v(n.immediatePropagationStopped)){var o=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),o&&o.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0},a>1&&(r=H(r));for(var s=0;a>s;s++)n.isImmediatePropagationStopped()||r[s].call(t,n)}};return n.elem=t,n}function Fe(){this.$get=function(){return d(xe,{hasClass:function(t,e){return t.attr&&(t=t[0]),De(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),Ae(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),Se(t,e)}})}}function Re(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var i=typeof t;return n="function"==i||"object"==i&&null!==t?t.$$hashKey=i+":"+(e||u)():i+":"+t}function We(t,e){if(e){var n=0;this.nextUid=function(){return++n}}a(t,this.put,this)}function je(t){var e=t.toString().replace(Br,""),n=e.match(jr);return n?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function qe(t,e,n){var i,r,o,s;if("function"==typeof t){if(!(i=t.$inject)){if(i=[],t.length){if(e)throw x(n)&&n||(n=t.name||je(t)),Ur("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);r=t.toString().replace(Br,""),o=r.match(jr),a(o[1].split(qr),function(t){t.replace(Vr,function(t,e,n){i.push(n)})})}t.$inject=i}}else hr(t)?(s=t.length-1,ae(t[s],"fn"),i=t.slice(0,s)):ae(t,"fn",!0);return i}function Ve(t,e){function i(t){return function(e,n){return b(e)?void a(e,l(t)):t(e,n)}}function r(t,e){if(oe(t,"service"),($(e)||hr(e))&&(e=M.instantiate(e)),!e.$get)throw Ur("pget","Provider '{0}' must define $get factory method.",t);return C[t+w]=e}function o(t,e){return function(){var n=S.invoke(e,this);if(v(n))throw Ur("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function s(t,e,n){return r(t,{$get:n!==!1?o(t,e):e})}function u(t,e){return s(t,["$injector",function(t){return t.instantiate(e)}])}function c(t,e){return s(t,m(e),!1)}function d(t,e){oe(t,"constant"),C[t]=e,D[t]=e}function h(t,e){var n=M.get(t+w),i=n.$get;n.$get=function(){var t=S.invoke(i,n);return S.invoke(e,null,{$delegate:t})}}function p(t){var e,n=[];return a(t,function(t){function i(t){var e,n;for(e=0,n=t.length;n>e;e++){var i=t[e],r=M.get(i[0]);r[i[1]].apply(r,i[2])}}if(!_.get(t)){_.put(t,!0);try{x(t)?(e=ir(t),n=n.concat(p(e.requires)).concat(e._runBlocks),i(e._invokeQueue),i(e._configBlocks)):$(t)?n.push(M.invoke(t)):hr(t)?n.push(M.invoke(t)):ae(t,"module")}catch(r){throw hr(t)&&(t=t[t.length-1]),r.message&&r.stack&&-1==r.stack.indexOf(r.message)&&(r=r.message+"\n"+r.stack),Ur("modulerr","Failed to instantiate module {0} due to:\n{1}",t,r.stack||r.message||r)}}}),n}function g(t,n){function i(e,i){if(t.hasOwnProperty(e)){if(t[e]===y)throw Ur("cdep","Circular dependency found: {0}",e+" <- "+k.join(" <- "));return t[e]}try{return k.unshift(e),t[e]=y,t[e]=n(e,i)}catch(r){throw t[e]===y&&delete t[e],r}finally{k.shift()}}function r(t,n,r,a){"string"==typeof r&&(a=r,r=null);var o,s,l,u=[],c=Ve.$$annotate(t,e,a);for(s=0,o=c.length;o>s;s++){if(l=c[s],"string"!=typeof l)throw Ur("itkn","Incorrect injection token! Expected service name as string, got {0}",l);u.push(r&&r.hasOwnProperty(l)?r[l]:i(l,a))}return hr(t)&&(t=t[o]),t.apply(n,u)}function a(t,e,n){var i=Object.create((hr(t)?t[t.length-1]:t).prototype||null),a=r(t,i,e,n);return b(a)||$(a)?a:i}return{invoke:r,instantiate:a,get:i,annotate:Ve.$$annotate,has:function(e){return C.hasOwnProperty(e+w)||t.hasOwnProperty(e)}}}e=e===!0;var y={},w="Provider",k=[],_=new We([],!0),C={$provide:{provider:i(r),factory:i(s),service:i(u),value:i(c),constant:i(d),decorator:h}},M=C.$injector=g(C,function(t,e){throw ur.isString(e)&&k.push(e),Ur("unpr","Unknown provider: {0}",k.join(" <- "))}),D={},S=D.$injector=g(D,function(t,e){var i=M.get(t+w,e);return S.invoke(i.$get,i,n,t)});return a(p(t),function(t){S.invoke(t||f)}),S}function Be(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(e,n,i){function r(t){var e=null;return Array.prototype.some.call(t,function(t){return"a"===N(t)?(e=t,!0):void 0}),e}function a(){var t=s.yOffset;if($(t))t=t();else if(I(t)){var n=t[0],i=e.getComputedStyle(n);t="fixed"!==i.position?0:n.getBoundingClientRect().bottom}else w(t)||(t=0);return t}function o(t){if(t){t.scrollIntoView();var n=a();if(n){var i=t.getBoundingClientRect().top;e.scrollBy(0,i-n)}}else e.scrollTo(0,0)}function s(){var t,e=n.hash();e?(t=l.getElementById(e))?o(t):(t=r(l.getElementsByName(e)))?o(t):"top"===e&&o(null):o(null)}var l=e.document;return t&&i.$watch(function(){return n.hash()},function(t,e){(t!==e||""!==t)&&Oe(function(){i.$evalAsync(s)})}),s}]}function Ue(){this.$get=["$$rAF","$timeout",function(t,e){return t.supported?function(e){return t(e)}:function(t){return e(t,0,!1)}}]}function Ye(t,e,i,r){function o(t){try{t.apply(null,R(arguments,1))}finally{if(_--,0===_)for(;C.length;)try{C.pop()()}catch(e){i.error(e)}}}function s(t){var e=t.indexOf("#");return-1===e?"":t.substr(e+1)}function l(t,e){!function n(){a(D,function(t){t()}),M=e(n,t)}()}function u(){d(),h()}function c(){try{return b.state}catch(t){}}function d(){S=c(),S=v(S)?null:S,L(S,O)&&(S=O),O=S}function h(){(T!==g.url()||A!==S)&&(T=g.url(),A=S,a(P,function(t){t(g.url(),S)}))}function p(t){try{return decodeURIComponent(t)}catch(e){return t}}var g=this,m=e[0],y=t.location,b=t.history,w=t.setTimeout,k=t.clearTimeout,$={};g.isMock=!1;var _=0,C=[];g.$$completeOutstandingRequest=o,g.$$incOutstandingRequestCount=function(){_++},g.notifyWhenNoOutstandingRequests=function(t){a(D,function(t){t()}),0===_?t():C.push(t)};var M,D=[];g.addPollFn=function(t){return v(M)&&l(100,w),D.push(t),t};var S,A,T=y.href,E=e.find("base"),I=null;d(),A=S,g.url=function(e,n,i){if(v(i)&&(i=null),y!==t.location&&(y=t.location),b!==t.history&&(b=t.history),e){var a=A===i;if(T===e&&(!r.history||a))return g;var o=T&&kn(T)===kn(e);return T=e,A=i,!r.history||o&&a?(o||(I=e),n?y.replace(e):o?y.hash=s(e):y.href=e):(b[n?"replaceState":"pushState"](i,"",e),d(),A=S),g}return I||y.href.replace(/%27/g,"'")},g.state=function(){return S};var P=[],N=!1,O=null;g.onUrlChange=function(e){return N||(r.history&&er(t).on("popstate",u),er(t).on("hashchange",u),N=!0),P.push(e),e},g.$$checkUrlChange=h,g.baseHref=function(){var t=E.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var z={},H="",F=g.baseHref();g.cookies=function(t,e){var r,a,o,s,l;if(!t){if(m.cookie!==H)for(H=m.cookie,a=H.split("; "),z={},s=0;s<a.length;s++)o=a[s],l=o.indexOf("="),l>0&&(t=p(o.substring(0,l)),z[t]===n&&(z[t]=p(o.substring(l+1))));return z}e===n?m.cookie=encodeURIComponent(t)+"=;path="+F+";expires=Thu, 01 Jan 1970 00:00:00 GMT":x(e)&&(r=(m.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+";path="+F).length+1,r>4096&&i.warn("Cookie '"+t+"' possibly not set or overflowed because it was too large ("+r+" > 4096 bytes)!"))},g.defer=function(t,e){var n;return _++,n=w(function(){delete $[n],o(t)},e||0),$[n]=!0,n},g.defer.cancel=function(t){return $[t]?(delete $[t],k(t),o(f),!0):!1}}function Xe(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,i){return new Ye(t,i,e,n)}]}function Ke(){this.$get=function(){function t(t,n){function r(t){t!=h&&(p?p==t&&(p=t.n):p=t,a(t.n,t.p),a(t,h),h=t,h.n=null)}function a(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}if(t in e)throw i("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var o=0,s=d({},n,{id:t}),l={},u=n&&n.capacity||Number.MAX_VALUE,c={},h=null,p=null;return e[t]={put:function(t,e){if(u<Number.MAX_VALUE){var n=c[t]||(c[t]={key:t});r(n)}if(!v(e))return t in l||o++,l[t]=e,o>u&&this.remove(p.key),e},get:function(t){if(u<Number.MAX_VALUE){var e=c[t];if(!e)return;r(e)}return l[t]},remove:function(t){if(u<Number.MAX_VALUE){var e=c[t];if(!e)return;e==h&&(h=e.p),e==p&&(p=e.n),a(e.n,e.p),delete c[t]}delete l[t],o--},removeAll:function(){l={},o=0,c={},h=p=null},destroy:function(){l=null,s=null,c=null,delete e[t]},info:function(){return d({},s,{size:o})}}}var e={};return t.info=function(){var t={};return a(e,function(e,n){t[n]=e.info()}),t},t.get=function(t){return e[t]},t}}function Ge(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function Ze(t,i){function r(t,e){var n=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,i={};return a(t,function(t,r){var a=t.match(n);if(!a)throw Kr("iscp","Invalid isolate scope definition for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,r,t);i[r]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||r}}),i}var o={},s="Directive",u=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,c=/(([\w\-]+)(?:\:([^;]+))?;?)/,h=P("ngSrc,ngSrcset,src,srcset"),v=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,w=/^(on[a-z]+|formaction)$/;this.directive=function _(e,n){return oe(e,"directive"),x(e)?(re(n,"directiveFactory"),o.hasOwnProperty(e)||(o[e]=[],t.factory(e+s,["$injector","$exceptionHandler",function(t,n){var i=[];return a(o[e],function(a,o){try{var s=t.invoke(a);$(s)?s={compile:m(s)}:!s.compile&&s.link&&(s.compile=m(s.link)),s.priority=s.priority||0,s.index=o,s.name=s.name||e,s.require=s.require||s.controller&&s.name,s.restrict=s.restrict||"EA",b(s.scope)&&(s.$$isolateBindings=r(s.scope,s.name)),i.push(s)}catch(l){n(l)}}),i}])),o[e].push(n)):a(e,l(_)),this},this.aHrefSanitizationWhitelist=function(t){return y(t)?(i.aHrefSanitizationWhitelist(t),this):i.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return y(t)?(i.imgSrcSanitizationWhitelist(t),this):i.imgSrcSanitizationWhitelist()};var k=!0;this.debugInfoEnabled=function(t){return y(t)?(k=t,this):k},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(t,i,r,l,m,y,_,C,D,S,A){function T(t,e){try{t.addClass(e)}catch(n){}}function E(t,e,n,i,r){t instanceof er||(t=er(t)),a(t,function(e,n){e.nodeType==xr&&e.nodeValue.match(/\S+/)&&(t[n]=er(e).wrap("<span></span>").parent()[0])});var o=P(t,e,t,n,i,r);E.$$addScopeClass(t);var s=null;return function(e,n,i){re(e,"scope"),i=i||{};var r=i.parentBoundTranscludeFn,a=i.transcludeControllers,l=i.futureParentElement;r&&r.$$boundTransclude&&(r=r.$$boundTransclude),s||(s=I(l));var u;if(u="html"!==s?er(Q(s,er("<div>").append(t).html())):n?Lr.clone.call(t):t,a)for(var c in a)u.data("$"+c+"Controller",a[c].instance);return E.$$addScopeInfo(u,e),n&&n(u,e),o&&o(e,u,u,r),u}}function I(t){var e=t&&t[0];return e&&"foreignobject"!==N(e)&&e.toString().match(/SVG/)?"svg":"html"}function P(t,e,i,r,a,o){function s(t,i,r,a){var o,s,l,u,c,d,h,p,m;if(f){var v=i.length;for(m=new Array(v),c=0;c<g.length;c+=3)h=g[c],m[h]=i[h]}else m=i;for(c=0,d=g.length;d>c;)l=m[g[c++]],o=g[c++],s=g[c++],o?(o.scope?(u=t.$new(),E.$$addScopeInfo(er(l),u)):u=t,p=o.transcludeOnThisElement?z(t,o.transclude,a,o.elementTranscludeOnThisElement):!o.templateOnThisElement&&a?a:!a&&e?z(t,e):null,o(s,u,l,r,p)):s&&s(t,l.childNodes,n,a)}for(var l,u,c,d,h,p,f,g=[],m=0;m<t.length;m++)l=new oe,u=H(t[m],[],l,0===m?r:n,a),c=u.length?j(u,t[m],l,e,i,null,[],[],o):null,c&&c.scope&&E.$$addScopeClass(l.$$element),h=c&&c.terminal||!(d=t[m].childNodes)||!d.length?null:P(d,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:e),(c||h)&&(g.push(m,c,h),p=!0,f=f||c),o=null;return p?s:null}function z(t,e,n){var i=function(i,r,a,o,s){return i||(i=t.$new(!1,s),i.$$transcluded=!0),e(i,r,{parentBoundTranscludeFn:n,transcludeControllers:a,futureParentElement:o})};return i}function H(t,e,n,i,r){var a,o,s=t.nodeType,l=n.$attr;switch(s){case br:V(e,Qe(N(t)),"E",i,r);for(var d,h,p,f,g,m,v=t.attributes,y=0,w=v&&v.length;w>y;y++){var k=!1,$=!1;d=v[y],h=d.name,g=pr(d.value),f=Qe(h),(m=de.test(f))&&(h=h.replace(Gr,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()}));var _=f.replace(/(Start|End)$/,"");U(_)&&f===_+"Start"&&(k=h,$=h.substr(0,h.length-5)+"end",h=h.substr(0,h.length-6)),p=Qe(h.toLowerCase()),l[p]=h,(m||!n.hasOwnProperty(p))&&(n[p]=g,ze(t,p)&&(n[p]=!0)),te(t,e,g,p,m),V(e,p,"A",i,r,k,$)}if(o=t.className,b(o)&&(o=o.animVal),x(o)&&""!==o)for(;a=c.exec(o);)p=Qe(a[2]),V(e,p,"C",i,r)&&(n[p]=pr(a[3])),o=o.substr(a.index+a[0].length);break;case xr:Z(e,t.nodeValue);break;case wr:try{a=u.exec(t.nodeValue),a&&(p=Qe(a[1]),V(e,p,"M",i,r)&&(n[p]=pr(a[2])))}catch(C){}}return e.sort(K),e}function F(t,e,n){var i=[],r=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw Kr("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType==br&&(t.hasAttribute(e)&&r++,t.hasAttribute(n)&&r--),i.push(t),t=t.nextSibling}while(r>0)}else i.push(t);return er(i)}function W(t,e,n){return function(i,r,a,o,s){return r=F(r[0],e,n),t(i,r,a,o,s)}}function j(t,o,s,l,u,c,d,h,p){function f(t,e,n,i){t&&(n&&(t=W(t,n,i)),t.require=C.require,t.directiveName=D,(N===C||C.$$isolateScope)&&(t=ie(t,{isolateScope:!0})),d.push(t)),e&&(n&&(e=W(e,n,i)),e.require=C.require,e.directiveName=D,(N===C||C.$$isolateScope)&&(e=ie(e,{isolateScope:!0})),h.push(e))}function g(t,e,n,i){var r,o,s="data",l=!1,u=n;if(x(e)){if(o=e.match(v),e=e.substring(o[0].length),o[3]&&(o[1]?o[3]=null:o[1]=o[3]),"^"===o[1]?s="inheritedData":"^^"===o[1]&&(s="inheritedData",u=n.parent()),"?"===o[2]&&(l=!0),r=null,i&&"data"===s&&(r=i[e])&&(r=r.instance),r=r||u[s]("$"+e+"Controller"),!r&&!l)throw Kr("ctreq","Controller '{0}', required by directive '{1}', can't be found!",e,t);return r||null}return hr(e)&&(r=[],a(e,function(e){r.push(g(t,e,n,i))})),r}function w(t,e,r,l,u){function c(t,e,i){var r;return M(t)||(i=e,e=t,t=n),U&&(r=w),i||(i=U?$.parent():$),u(t,e,r,i,A)}var p,f,v,b,x,w,k,$,C;if(o===r?(C=s,$=s.$$element):($=er(r),C=new oe($,s)),N&&(x=e.$new(!0)),u&&(k=c,k.$$boundTransclude=u),P&&(_={},w={},a(P,function(t){var n,i={$scope:t===N||t.$$isolateScope?x:e,$element:$,$attrs:C,$transclude:k};b=t.controller,"@"==b&&(b=C[t.name]),n=y(b,i,!0,t.controllerAs),w[t.name]=n,U||$.data("$"+t.name+"Controller",n.instance),_[t.name]=n})),N){E.$$addScopeInfo($,x,!0,!(O&&(O===N||O===N.$$originalDirective))),E.$$addScopeClass($,!0);var D=_&&_[N.name],S=x;D&&D.identifier&&N.bindToController===!0&&(S=D.instance),a(x.$$isolateBindings=N.$$isolateBindings,function(t,n){var r,a,o,s,l=t.attrName,u=t.optional,c=t.mode;switch(c){case"@":C.$observe(l,function(t){S[n]=t}),C.$$observers[l].$$scope=e,C[l]&&(S[n]=i(C[l])(e));break;case"=":if(u&&!C[l])return;a=m(C[l]),s=a.literal?L:function(t,e){return t===e||t!==t&&e!==e},o=a.assign||function(){throw r=S[n]=a(e),Kr("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",C[l],N.name)},r=S[n]=a(e);var d=function(t){return s(t,S[n])||(s(t,r)?o(e,t=S[n]):S[n]=t),r=t};d.$stateful=!0;var h;h=t.collection?e.$watchCollection(C[l],d):e.$watch(m(C[l],d),null,a.literal),x.$on("$destroy",h);break;case"&":a=m(C[l]),S[n]=function(t){return a(e,t)}}})}for(_&&(a(_,function(t){t()}),_=null),p=0,f=d.length;f>p;p++)v=d[p],ae(v,v.isolateScope?x:e,$,C,v.require&&g(v.directiveName,v.require,$,w),k);var A=e;for(N&&(N.template||null===N.templateUrl)&&(A=x),t&&t(A,r.childNodes,n,u),p=h.length-1;p>=0;p--)v=h[p],ae(v,v.isolateScope?x:e,$,C,v.require&&g(v.directiveName,v.require,$,w),k)}p=p||{};for(var k,_,C,D,S,A,T,I=-Number.MAX_VALUE,P=p.controllerDirectives,N=p.newIsolateScopeDirective,O=p.templateDirective,z=p.nonTlbTranscludeDirective,j=!1,V=!1,U=p.hasElementTranscludeDirective,K=s.$$element=er(o),Z=c,J=l,te=0,ne=t.length;ne>te;te++){C=t[te];var re=C.$$start,se=C.$$end;if(re&&(K=F(o,re,se)),S=n,I>C.priority)break;if((T=C.scope)&&(C.templateUrl||(b(T)?(G("new/isolated scope",N||k,C,K),N=C):G("new/isolated scope",N,C,K)),k=k||C),D=C.name,!C.templateUrl&&C.controller&&(T=C.controller,P=P||{},G("'"+D+"' controller",P[D],C,K),P[D]=C),(T=C.transclude)&&(j=!0,C.$$tlb||(G("transclusion",z,C,K),z=C),"element"==T?(U=!0,I=C.priority,S=K,K=s.$$element=er(e.createComment(" "+D+": "+s[D]+" ")),o=K[0],ee(u,R(S),o),J=E(S,l,I,Z&&Z.name,{nonTlbTranscludeDirective:z})):(S=er(we(o)).contents(),K.empty(),J=E(S,l))),C.template)if(V=!0,G("template",O,C,K),O=C,T=$(C.template)?C.template(K,s):C.template,T=ce(T),C.replace){if(Z=C,S=me(T)?[]:tn(Q(C.templateNamespace,pr(T))),o=S[0],1!=S.length||o.nodeType!==br)throw Kr("tplrt","Template for directive '{0}' must have exactly one root element. {1}",D,"");ee(u,K,o);var le={$attr:{}},ue=H(o,[],le),de=t.splice(te+1,t.length-(te+1));N&&q(ue),t=t.concat(ue).concat(de),Y(s,le),ne=t.length}else K.html(T);if(C.templateUrl)V=!0,G("template",O,C,K),O=C,C.replace&&(Z=C),w=X(t.splice(te,t.length-te),K,s,u,j&&J,d,h,{controllerDirectives:P,newIsolateScopeDirective:N,templateDirective:O,nonTlbTranscludeDirective:z}),ne=t.length;else if(C.compile)try{A=C.compile(K,s,J),$(A)?f(null,A,re,se):A&&f(A.pre,A.post,re,se)}catch(he){r(he,B(K))}C.terminal&&(w.terminal=!0,I=Math.max(I,C.priority))}return w.scope=k&&k.scope===!0,w.transcludeOnThisElement=j,w.elementTranscludeOnThisElement=U,w.templateOnThisElement=V,w.transclude=J,p.hasElementTranscludeDirective=U,w}function q(t){for(var e=0,n=t.length;n>e;e++)t[e]=p(t[e],{$$isolateScope:!0})}function V(e,i,a,l,u,c,d){if(i===u)return null;var h=null;if(o.hasOwnProperty(i))for(var f,g=t.get(i+s),m=0,v=g.length;v>m;m++)try{f=g[m],(l===n||l>f.priority)&&-1!=f.restrict.indexOf(a)&&(c&&(f=p(f,{$$start:c,$$end:d})),e.push(f),h=f)
}catch(y){r(y)}return h}function U(e){if(o.hasOwnProperty(e))for(var n,i=t.get(e+s),r=0,a=i.length;a>r;r++)if(n=i[r],n.multiElement)return!0;return!1}function Y(t,e){var n=e.$attr,i=t.$attr,r=t.$$element;a(t,function(i,r){"$"!=r.charAt(0)&&(e[r]&&e[r]!==i&&(i+=("style"===r?";":" ")+e[r]),t.$set(r,i,!0,n[r]))}),a(e,function(e,a){"class"==a?(T(r,e),t["class"]=(t["class"]?t["class"]+" ":"")+e):"style"==a?(r.attr("style",r.attr("style")+";"+e),t.style=(t.style?t.style+";":"")+e):"$"==a.charAt(0)||t.hasOwnProperty(a)||(t[a]=e,i[a]=n[a])})}function X(t,e,n,i,r,o,s,u){var c,d,h=[],f=e[0],g=t.shift(),m=p(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),v=$(g.templateUrl)?g.templateUrl(e,n):g.templateUrl,y=g.templateNamespace;return e.empty(),l(D.getTrustedResourceUrl(v)).then(function(l){var p,x,w,k;if(l=ce(l),g.replace){if(w=me(l)?[]:tn(Q(y,pr(l))),p=w[0],1!=w.length||p.nodeType!==br)throw Kr("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g.name,v);x={$attr:{}},ee(i,e,p);var $=H(p,[],x);b(g.scope)&&q($),t=$.concat(t),Y(n,x)}else p=f,e.html(l);for(t.unshift(m),c=j(t,p,n,r,e,g,o,s,u),a(i,function(t,n){t==p&&(i[n]=e[0])}),d=P(e[0].childNodes,r);h.length;){var _=h.shift(),C=h.shift(),M=h.shift(),D=h.shift(),S=e[0];if(!_.$$destroyed){if(C!==f){var A=C.className;u.hasElementTranscludeDirective&&g.replace||(S=we(p)),ee(M,er(C),S),T(er(S),A)}k=c.transcludeOnThisElement?z(_,c.transclude,D):D,c(d,_,S,i,k)}}h=null}),function(t,e,n,i,r){var a=r;e.$$destroyed||(h?h.push(e,n,i,a):(c.transcludeOnThisElement&&(a=z(e,c.transclude,r)),c(d,e,n,i,a)))}}function K(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function G(t,e,n,i){if(e)throw Kr("multidir","Multiple directives [{0}, {1}] asking for {2} on: {3}",e.name,n.name,t,B(i))}function Z(t,e){var n=i(e,!0);n&&t.push({priority:0,compile:function(t){var e=t.parent(),i=!!e.length;return i&&E.$$addBindingClass(e),function(t,e){var r=e.parent();i||E.$$addBindingClass(r),E.$$addBindingInfo(r,n.expressions),t.$watch(n,function(t){e[0].nodeValue=t})}}})}function Q(t,n){switch(t=Ki(t||"html")){case"svg":case"math":var i=e.createElement("div");return i.innerHTML="<"+t+">"+n+"</"+t+">",i.childNodes[0].childNodes;default:return n}}function J(t,e){if("srcdoc"==e)return D.HTML;var n=N(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?D.RESOURCE_URL:void 0}function te(t,e,n,r,a){var o=J(t,r);a=h[r]||a;var s=i(n,!0,o,a);if(s){if("multiple"===r&&"select"===N(t))throw Kr("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",B(t));e.push({priority:100,compile:function(){return{pre:function(t,e,l){var u=l.$$observers||(l.$$observers={});if(w.test(r))throw Kr("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");var c=l[r];c!==n&&(s=c&&i(c,!0,o,a),n=c),s&&(l[r]=s(t),(u[r]||(u[r]=[])).$$inter=!0,(l.$$observers&&l.$$observers[r].$$scope||t).$watch(s,function(t,e){"class"===r&&t!=e?l.$updateClass(t,e):l.$set(r,t)}))}}}})}}function ee(t,n,i){var r,a,o=n[0],s=n.length,l=o.parentNode;if(t)for(r=0,a=t.length;a>r;r++)if(t[r]==o){t[r++]=i;for(var u=r,c=u+s-1,d=t.length;d>u;u++,c++)d>c?t[u]=t[c]:delete t[u];t.length-=s-1,t.context===o&&(t.context=i);break}l&&l.replaceChild(i,o);var h=e.createDocumentFragment();h.appendChild(o),er(i).data(er(o).data()),nr?(dr=!0,nr.cleanData([o])):delete er.cache[o[er.expando]];for(var p=1,f=n.length;f>p;p++){var g=n[p];er(g).remove(),h.appendChild(g),delete n[p]}n[0]=i,n.length=1}function ie(t,e){return d(function(){return t.apply(null,arguments)},t,e)}function ae(t,e,n,i,a,o){try{t(e,n,i,a,o)}catch(s){r(s,B(n))}}var oe=function(t,e){if(e){var n,i,r,a=Object.keys(e);for(n=0,i=a.length;i>n;n++)r=a[n],this[r]=e[r]}else this.$attr={};this.$$element=t};oe.prototype={$normalize:Qe,$addClass:function(t){t&&t.length>0&&S.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&S.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=Je(t,e);n&&n.length&&S.addClass(this.$$element,n);var i=Je(e,t);i&&i.length&&S.removeClass(this.$$element,i)},$set:function(t,e,i,o){var s,l=this.$$element[0],u=ze(l,t),c=He(l,t),d=t;if(u?(this.$$element.prop(t,e),o=u):c&&(this[c]=e,d=c),this[t]=e,o?this.$attr[t]=o:(o=this.$attr[t],o||(this.$attr[t]=o=ne(t,"-"))),s=N(this.$$element),"a"===s&&"href"===t||"img"===s&&"src"===t)this[t]=e=A(e,"src"===t);else if("img"===s&&"srcset"===t){for(var h="",p=pr(e),f=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,g=/\s/.test(p)?f:/(,)/,m=p.split(g),v=Math.floor(m.length/2),y=0;v>y;y++){var b=2*y;h+=A(pr(m[b]),!0),h+=" "+pr(m[b+1])}var x=pr(m[2*y]).split(/\s/);h+=A(pr(x[0]),!0),2===x.length&&(h+=" "+pr(x[1])),this[t]=e=h}i!==!1&&(null===e||e===n?this.$$element.removeAttr(o):this.$$element.attr(o,e));var w=this.$$observers;w&&a(w[d],function(t){try{t(e)}catch(n){r(n)}})},$observe:function(t,e){var n=this,i=n.$$observers||(n.$$observers=ue()),r=i[t]||(i[t]=[]);return r.push(e),_.$evalAsync(function(){!r.$$inter&&n.hasOwnProperty(t)&&e(n[t])}),function(){O(r,e)}}};var se=i.startSymbol(),le=i.endSymbol(),ce="{{"==se||"}}"==le?g:function(t){return t.replace(/\{\{/g,se).replace(/}}/g,le)},de=/^ngAttr[A-Z]/;return E.$$addBindingInfo=k?function(t,e){var n=t.data("$binding")||[];hr(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:f,E.$$addBindingClass=k?function(t){T(t,"ng-binding")}:f,E.$$addScopeInfo=k?function(t,e,n,i){var r=n?i?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(r,e)}:f,E.$$addScopeClass=k?function(t,e){T(t,e?"ng-isolate-scope":"ng-scope")}:f,E}]}function Qe(t){return ge(t.replace(Gr,""))}function Je(t,e){var n="",i=t.split(/\s+/),r=e.split(/\s+/);t:for(var a=0;a<i.length;a++){for(var o=i[a],s=0;s<r.length;s++)if(o==r[s])continue t;n+=(n.length>0?" ":"")+o}return n}function tn(t){t=er(t);var e=t.length;if(1>=e)return t;for(;e--;){var n=t[e];n.nodeType===wr&&ar.call(t,e,1)}return t}function en(){var t={},e=!1,r=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(e,n){oe(e,"controller"),b(e)?d(t,e):t[e]=n},this.allowGlobals=function(){e=!0},this.$get=["$injector","$window",function(a,o){function s(t,e,n,r){if(!t||!b(t.$scope))throw i("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}return function(i,l,u,c){var h,p,f,g;if(u=u===!0,c&&x(c)&&(g=c),x(i)){if(p=i.match(r),!p)throw Zr("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",i);f=p[1],g=g||p[3],i=t.hasOwnProperty(f)?t[f]:se(l.$scope,f,!0)||(e?se(o,f,!0):n),ae(i,f,!0)}if(u){var m=(hr(i)?i[i.length-1]:i).prototype;return h=Object.create(m||null),g&&s(l,g,h,f||i.name),d(function(){return a.invoke(i,h,l,f),h},{instance:h,identifier:g})}return h=a.instantiate(i,l,f),g&&s(l,g,h,f||i.name),h}}]}function nn(){this.$get=["$window",function(t){return er(t.document)}]}function rn(){this.$get=["$log",function(t){return function(){t.error.apply(t,arguments)}}]}function an(t,e){if(x(t)){var n=t.replace(na,"").trim();if(n){var i=e("Content-Type");(i&&0===i.indexOf(Qr)||on(n))&&(t=V(n))}}return t}function on(t){var e=t.match(ta);return e&&ea[e[0]].test(t)}function sn(t){var e,n,i,r=ue();return t?(a(t.split("\n"),function(t){i=t.indexOf(":"),e=Ki(pr(t.substr(0,i))),n=pr(t.substr(i+1)),e&&(r[e]=r[e]?r[e]+", "+n:n)}),r):r}function ln(t){var e=b(t)?t:n;return function(n){if(e||(e=sn(t)),n){var i=e[Ki(n)];return void 0===i&&(i=null),i}return e}}function un(t,e,n,i){return $(i)?i(t,e,n):(a(i,function(i){t=i(t,e,n)}),t)}function cn(t){return t>=200&&300>t}function dn(){var t=this.defaults={transformResponse:[an],transformRequest:[function(t){return!b(t)||D(t)||A(t)||S(t)?t:q(t)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:H(Jr),put:H(Jr),patch:H(Jr)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},e=!1;this.useApplyAsync=function(t){return y(t)?(e=!!t,this):e};var r=this.interceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(o,l,u,c,h,p){function f(e){function r(t){var e=d({},t);return e.data=t.data?un(t.data,t.headers,t.status,l.transformResponse):t.data,cn(t.status)?e:h.reject(e)}function o(t){var e,n={};return a(t,function(t,i){$(t)?(e=t(),null!=e&&(n[i]=e)):n[i]=t}),n}function s(e){var n,i,r,a=t.headers,s=d({},e.headers);a=d({},a.common,a[Ki(e.method)]);t:for(n in a){i=Ki(n);for(r in s)if(Ki(r)===i)continue t;s[n]=a[n]}return o(s)}if(!ur.isObject(e))throw i("$http")("badreq","Http request configuration must be an object.  Received: {0}",e);var l=d({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse},e);l.headers=s(e),l.method=Zi(l.method);var u=function(e){var i=e.headers,o=un(e.data,ln(i),n,e.transformRequest);return v(o)&&a(i,function(t,e){"content-type"===Ki(e)&&delete i[e]}),v(e.withCredentials)&&!v(t.withCredentials)&&(e.withCredentials=t.withCredentials),w(e,o).then(r,r)},c=[u,n],p=h.when(l);for(a(M,function(t){(t.request||t.requestError)&&c.unshift(t.request,t.requestError),(t.response||t.responseError)&&c.push(t.response,t.responseError)});c.length;){var f=c.shift(),g=c.shift();p=p.then(f,g)}return p.success=function(t){return p.then(function(e){t(e.data,e.status,e.headers,l)}),p},p.error=function(t){return p.then(null,function(e){t(e.data,e.status,e.headers,l)}),p},p}function g(){a(arguments,function(t){f[t]=function(e,n){return f(d(n||{},{method:t,url:e}))}})}function m(){a(arguments,function(t){f[t]=function(e,n,i){return f(d(i||{},{method:t,url:e,data:n}))}})}function w(i,r){function a(t,n,i,r){function a(){s(n,t,i,r)}p&&(cn(t)?p.put(k,[t,n,sn(i),r]):p.remove(k)),e?c.$applyAsync(a):(a(),c.$$phase||c.$apply())}function s(t,e,n,r){e=Math.max(e,0),(cn(e)?m.resolve:m.reject)({data:t,status:e,headers:ln(n),config:i,statusText:r})}function u(t){s(t.data,t.status,H(t.headers()),t.statusText)}function d(){var t=f.pendingRequests.indexOf(i);-1!==t&&f.pendingRequests.splice(t,1)}var p,g,m=h.defer(),x=m.promise,w=i.headers,k=_(i.url,i.params);if(f.pendingRequests.push(i),x.then(d,d),!i.cache&&!t.cache||i.cache===!1||"GET"!==i.method&&"JSONP"!==i.method||(p=b(i.cache)?i.cache:b(t.cache)?t.cache:C),p&&(g=p.get(k),y(g)?E(g)?g.then(u,u):hr(g)?s(g[1],g[0],H(g[2]),g[3]):s(g,200,{},"OK"):p.put(k,x)),v(g)){var $=ai(i.url)?l.cookies()[i.xsrfCookieName||t.xsrfCookieName]:n;$&&(w[i.xsrfHeaderName||t.xsrfHeaderName]=$),o(i.method,k,r,a,w,i.timeout,i.withCredentials,i.responseType)}return x}function _(t,e){if(!e)return t;var n=[];return s(e,function(t,e){null===t||v(t)||(hr(t)||(t=[t]),a(t,function(t){b(t)&&(t=k(t)?t.toISOString():q(t)),n.push(G(e)+"="+G(t))}))}),n.length>0&&(t+=(-1==t.indexOf("?")?"?":"&")+n.join("&")),t}var C=u("$http"),M=[];return a(r,function(t){M.unshift(x(t)?p.get(t):p.invoke(t))}),f.pendingRequests=[],g("get","delete","head","jsonp"),m("post","put","patch"),f.defaults=t,f}]}function hn(){return new t.XMLHttpRequest}function pn(){this.$get=["$browser","$window","$document",function(t,e,n){return fn(t,hn,t.defer,e.angular.callbacks,n[0])}]}function fn(t,e,i,r,o){function s(t,e,n){var i=o.createElement("script"),a=null;return i.type="text/javascript",i.src=t,i.async=!0,a=function(t){Sr(i,"load",a),Sr(i,"error",a),o.body.removeChild(i),i=null;var s=-1,l="unknown";t&&("load"!==t.type||r[e].called||(t={type:"error"}),l=t.type,s="error"===t.type?404:200),n&&n(s,l)},Dr(i,"load",a),Dr(i,"error",a),o.body.appendChild(i),a}return function(o,l,u,c,d,h,p,g){function m(){x&&x(),w&&w.abort()}function v(e,r,a,o,s){_!==n&&i.cancel(_),x=w=null,e(r,a,o,s),t.$$completeOutstandingRequest(f)}if(t.$$incOutstandingRequestCount(),l=l||t.url(),"jsonp"==Ki(o)){var b="_"+(r.counter++).toString(36);r[b]=function(t){r[b].data=t,r[b].called=!0};var x=s(l.replace("JSON_CALLBACK","angular.callbacks."+b),b,function(t,e){v(c,t,r[b].data,"",e),r[b]=f})}else{var w=e();w.open(o,l,!0),a(d,function(t,e){y(t)&&w.setRequestHeader(e,t)}),w.onload=function(){var t=w.statusText||"",e="response"in w?w.response:w.responseText,n=1223===w.status?204:w.status;0===n&&(n=e?200:"file"==ri(l).protocol?404:0),v(c,n,e,w.getAllResponseHeaders(),t)};var k=function(){v(c,-1,null,null,"")};if(w.onerror=k,w.onabort=k,p&&(w.withCredentials=!0),g)try{w.responseType=g}catch($){if("json"!==g)throw $}w.send(u||null)}if(h>0)var _=i(m,h);else E(h)&&h.then(m)}}function gn(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,i,r){function a(t){return"\\\\\\"+t}function o(a,o,h,p){function f(n){return n.replace(u,t).replace(c,e)}function g(t){try{return t=A(t),p&&!y(t)?t:T(t)}catch(e){var n=ia("interr","Can't interpolate: {0}\n{1}",a,e.toString());i(n)}}p=!!p;for(var m,b,x,w=0,k=[],_=[],C=a.length,M=[],D=[];C>w;){if(-1==(m=a.indexOf(t,w))||-1==(b=a.indexOf(e,m+s))){w!==C&&M.push(f(a.substring(w)));break}w!==m&&M.push(f(a.substring(w,m))),x=a.substring(m+s,b),k.push(x),_.push(n(x,g)),w=b+l,D.push(M.length),M.push("")}if(h&&M.length>1)throw ia("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",a);if(!o||k.length){var S=function(t){for(var e=0,n=k.length;n>e;e++){if(p&&v(t[e]))return;M[D[e]]=t[e]}return M.join("")},A=function(t){return h?r.getTrusted(h,t):r.valueOf(t)},T=function(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=q(t)}return t};return d(function(t){var e=0,n=k.length,r=new Array(n);try{for(;n>e;e++)r[e]=_[e](t);return S(r)}catch(o){var s=ia("interr","Can't interpolate: {0}\n{1}",a,o.toString());i(s)}},{exp:a,expressions:k,$$watchDelegate:function(t,e,n){var i;return t.$watchGroup(_,function(n,r){var a=S(n);$(e)&&e.call(this,a,n!==r?i:a,t),i=a},n)}})}}var s=t.length,l=e.length,u=new RegExp(t.replace(/./g,a),"g"),c=new RegExp(e.replace(/./g,a),"g");return o.startSymbol=function(){return t},o.endSymbol=function(){return e},o}]}function mn(){this.$get=["$rootScope","$window","$q","$$q",function(t,e,n,i){function r(r,o,s,l){var u=e.setInterval,c=e.clearInterval,d=0,h=y(l)&&!l,p=(h?i:n).defer(),f=p.promise;return s=y(s)?s:0,f.then(null,null,r),f.$$intervalId=u(function(){p.notify(d++),s>0&&d>=s&&(p.resolve(d),c(f.$$intervalId),delete a[f.$$intervalId]),h||t.$apply()},o),a[f.$$intervalId]=p,f}var a={};return r.cancel=function(t){return t&&t.$$intervalId in a?(a[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete a[t.$$intervalId],!0):!1},r}]}function vn(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a",ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"]},pluralCat:function(t){return 1===t?"one":"other"}}}}function yn(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=K(e[n]);return e.join("/")}function bn(t,e){var n=ri(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=h(n.port)||aa[n.protocol]||null}function xn(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var i=ri(t);e.$$path=decodeURIComponent(n&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname),e.$$search=Y(i.search),e.$$hash=decodeURIComponent(i.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function wn(t,e){return 0===e.indexOf(t)?e.substr(t.length):void 0}function kn(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function $n(t){return t.replace(/(#.+)|#$/,"$1")}function _n(t){return t.substr(0,kn(t).lastIndexOf("/")+1)}function Cn(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))}function Mn(t,e){this.$$html5=!0,e=e||"";var i=_n(t);bn(t,this),this.$$parse=function(t){var e=wn(i,t);if(!x(e))throw oa("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,i);xn(e,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=X(this.$$search),e=this.$$hash?"#"+K(this.$$hash):"";this.$$url=yn(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=i+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,a){if(a&&"#"===a[0])return this.hash(a.slice(1)),!0;var o,s,l;return(o=wn(t,r))!==n?(s=o,l=(o=wn(e,o))!==n?i+(wn("/",o)||o):t+s):(o=wn(i,r))!==n?l=i+o:i==r+"/"&&(l=i),l&&this.$$parse(l),!!l}}function Dn(t,e){var n=_n(t);bn(t,this),this.$$parse=function(i){function r(t,e,n){var i,r=/^\/[A-Z]:(\/.*)/;return 0===e.indexOf(n)&&(e=e.replace(n,"")),r.exec(e)?t:(i=r.exec(t),i?i[1]:t)}var a,o=wn(t,i)||wn(n,i);"#"===o.charAt(0)?(a=wn(e,o),v(a)&&(a=o)):a=this.$$html5?o:"",xn(a,this),this.$$path=r(this.$$path,a,t),this.$$compose()},this.$$compose=function(){var n=X(this.$$search),i=this.$$hash?"#"+K(this.$$hash):"";this.$$url=yn(this.$$path)+(n?"?"+n:"")+i,this.$$absUrl=t+(this.$$url?e+this.$$url:"")},this.$$parseLinkUrl=function(e){return kn(t)==kn(e)?(this.$$parse(e),!0):!1}}function Sn(t,e){this.$$html5=!0,Dn.apply(this,arguments);var n=_n(t);this.$$parseLinkUrl=function(i,r){if(r&&"#"===r[0])return this.hash(r.slice(1)),!0;var a,o;return t==kn(i)?a=i:(o=wn(n,i))?a=t+e+o:n===i+"/"&&(a=n),a&&this.$$parse(a),!!a},this.$$compose=function(){var n=X(this.$$search),i=this.$$hash?"#"+K(this.$$hash):"";this.$$url=yn(this.$$path)+(n?"?"+n:"")+i,this.$$absUrl=t+e+this.$$url}}function An(t){return function(){return this[t]}}function Tn(t,e){return function(n){return v(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function En(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return y(e)?(t=e,this):t},this.html5Mode=function(t){return T(t)?(e.enabled=t,this):b(t)?(T(t.enabled)&&(e.enabled=t.enabled),T(t.requireBase)&&(e.requireBase=t.requireBase),T(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,i,r,a,o){function s(t,e,n){var r=u.url(),a=u.$$state;try{i.url(t,e,n),u.$$state=i.state()}catch(o){throw u.url(r),u.$$state=a,o}}function l(t,e){n.$broadcast("$locationChangeSuccess",u.absUrl(),t,u.$$state,e)}var u,c,d,h=i.baseHref(),p=i.url();if(e.enabled){if(!h&&e.requireBase)throw oa("nobase","$location in HTML5 mode requires a <base> tag to be present!");d=Cn(p)+(h||"/"),c=r.history?Mn:Sn}else d=kn(p),c=Dn;u=new c(d,"#"+t),u.$$parseLinkUrl(p,p),u.$$state=i.state();var f=/^\s*(javascript|mailto):/i;a.on("click",function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var r=er(t.target);"a"!==N(r[0]);)if(r[0]===a[0]||!(r=r.parent())[0])return;var s=r.prop("href"),l=r.attr("href")||r.attr("xlink:href");b(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=ri(s.animVal).href),f.test(s)||!s||r.attr("target")||t.isDefaultPrevented()||u.$$parseLinkUrl(s,l)&&(t.preventDefault(),u.absUrl()!=i.url()&&(n.$apply(),o.angular["ff-684208-preventDefault"]=!0))}}),$n(u.absUrl())!=$n(p)&&i.url(u.absUrl(),!0);var g=!0;return i.onUrlChange(function(t,e){n.$evalAsync(function(){var i,r=u.absUrl(),a=u.$$state;u.$$parse(t),u.$$state=e,i=n.$broadcast("$locationChangeStart",t,r,e,a).defaultPrevented,u.absUrl()===t&&(i?(u.$$parse(r),u.$$state=a,s(r,!1,a)):(g=!1,l(r,a)))}),n.$$phase||n.$digest()}),n.$watch(function(){var t=$n(i.url()),e=$n(u.absUrl()),a=i.state(),o=u.$$replace,c=t!==e||u.$$html5&&r.history&&a!==u.$$state;(g||c)&&(g=!1,n.$evalAsync(function(){var e=u.absUrl(),i=n.$broadcast("$locationChangeStart",e,t,u.$$state,a).defaultPrevented;u.absUrl()===e&&(i?(u.$$parse(t),u.$$state=a):(c&&s(e,o,a===u.$$state?null:u.$$state),l(t,a)))})),u.$$replace=!1}),u}]}function In(){var t=!0,e=this;this.debugEnabled=function(e){return y(e)?(t=e,this):t},this.$get=["$window",function(n){function i(t){return t instanceof Error&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function r(t){var e=n.console||{},r=e[t]||e.log||f,o=!1;try{o=!!r.apply}catch(s){}return o?function(){var t=[];return a(arguments,function(e){t.push(i(e))}),r.apply(e,t)}:function(t,e){r(t,null==e?"":e)}}return{log:r("log"),info:r("info"),warn:r("warn"),error:r("error"),debug:function(){var n=r("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function Pn(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw la("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e);return t}function Nn(t,e){if(t){if(t.constructor===t)throw la("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.window===t)throw la("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw la("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e);if(t===Object)throw la("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}return t}function On(t,e){if(t){if(t.constructor===t)throw la("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t===ua||t===ca||t===da)throw la("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}function zn(t){return t.constant}function Hn(t,e,n,i,r){Nn(t,r),Nn(e,r);for(var a,o=n.split("."),s=0;o.length>1;s++){a=Pn(o.shift(),r);var l=0===s&&e&&e[a]||t[a];l||(l={},t[a]=l),t=Nn(l,r)}return a=Pn(o.shift(),r),Nn(t[a],r),t[a]=i,i}function Ln(t){return"constructor"==t}function Fn(t,e,i,r,a,o,s){Pn(t,o),Pn(e,o),Pn(i,o),Pn(r,o),Pn(a,o);var l=function(t){return Nn(t,o)},u=s||Ln(t)?l:g,c=s||Ln(e)?l:g,d=s||Ln(i)?l:g,h=s||Ln(r)?l:g,p=s||Ln(a)?l:g;return function(o,s){var l=s&&s.hasOwnProperty(t)?s:o;return null==l?l:(l=u(l[t]),e?null==l?n:(l=c(l[e]),i?null==l?n:(l=d(l[i]),r?null==l?n:(l=h(l[r]),a?null==l?n:l=p(l[a]):l):l):l):l)}}function Rn(t,e){return function(n,i){return t(n,i,Nn,e)}}function Wn(t,e,i){var r=e.expensiveChecks,o=r?ya:va,s=o[t];if(s)return s;var l=t.split("."),u=l.length;if(e.csp)s=6>u?Fn(l[0],l[1],l[2],l[3],l[4],i,r):function(t,e){var a,o=0;do a=Fn(l[o++],l[o++],l[o++],l[o++],l[o++],i,r)(t,e),e=n,t=a;while(u>o);return a};else{var c="";r&&(c+="s = eso(s, fe);\nl = eso(l, fe);\n");var d=r;a(l,function(t,e){Pn(t,i);var n=(e?"s":'((l&&l.hasOwnProperty("'+t+'"))?l:s)')+"."+t;(r||Ln(t))&&(n="eso("+n+", fe)",d=!0),c+="if(s == null) return undefined;\ns="+n+";\n"}),c+="return s;";var h=new Function("s","l","eso","fe",c);h.toString=m(c),d&&(h=Rn(h,i)),s=h}return s.sharedGetter=!0,s.assign=function(e,n,i){return Hn(e,i,t,n,t)},o[t]=s,s}function jn(t){return $(t.valueOf)?t.valueOf():ba.call(t)}function qn(){var t=ue(),e=ue();this.$get=["$filter","$sniffer",function(n,i){function r(t){var e=t;return t.sharedGetter&&(e=function(e,n){return t(e,n)},e.literal=t.literal,e.constant=t.constant,e.assign=t.assign),e}function o(t,e){for(var n=0,i=t.length;i>n;n++){var r=t[n];r.constant||(r.inputs?o(r.inputs,e):-1===e.indexOf(r)&&e.push(r))}return e}function s(t,e){return null==t||null==e?t===e:"object"==typeof t&&(t=jn(t),"object"==typeof t)?!1:t===e||t!==t&&e!==e}function l(t,e,n,i){var r,a=i.$$inputs||(i.$$inputs=o(i.inputs,[]));if(1===a.length){var l=s;return a=a[0],t.$watch(function(t){var e=a(t);return s(e,l)||(r=i(t),l=e&&jn(e)),r},e,n)}for(var u=[],c=0,d=a.length;d>c;c++)u[c]=s;return t.$watch(function(t){for(var e=!1,n=0,o=a.length;o>n;n++){var l=a[n](t);(e||(e=!s(l,u[n])))&&(u[n]=l&&jn(l))}return e&&(r=i(t)),r},e,n)}function u(t,e,n,i){var r,a;return r=t.$watch(function(t){return i(t)},function(t,n,i){a=t,$(e)&&e.apply(this,arguments),y(t)&&i.$$postDigest(function(){y(a)&&r()})},n)}function c(t,e,n,i){function r(t){var e=!0;return a(t,function(t){y(t)||(e=!1)}),e}var o,s;return o=t.$watch(function(t){return i(t)},function(t,n,i){s=t,$(e)&&e.call(this,t,n,i),r(t)&&i.$$postDigest(function(){r(s)&&o()})},n)}function d(t,e,n,i){var r;return r=t.$watch(function(t){return i(t)},function(){$(e)&&e.apply(this,arguments),r()},n)}function h(t,e){if(!e)return t;var n=t.$$watchDelegate,i=n!==c&&n!==u,r=i?function(n,i){var r=t(n,i);return e(r,n,i)}:function(n,i){var r=t(n,i),a=e(r,n,i);return y(r)?a:r};return t.$$watchDelegate&&t.$$watchDelegate!==l?r.$$watchDelegate=t.$$watchDelegate:e.$stateful||(r.$$watchDelegate=l,r.inputs=[t]),r}var p={csp:i.csp,expensiveChecks:!1},g={csp:i.csp,expensiveChecks:!0};return function(i,a,o){var s,m,v;switch(typeof i){case"string":v=i=i.trim();var y=o?e:t;if(s=y[v],!s){":"===i.charAt(0)&&":"===i.charAt(1)&&(m=!0,i=i.substring(2));var b=o?g:p,x=new ga(b),w=new ma(x,n,b);s=w.parse(i),s.constant?s.$$watchDelegate=d:m?(s=r(s),s.$$watchDelegate=s.literal?c:u):s.inputs&&(s.$$watchDelegate=l),y[v]=s}return h(s,a);case"function":return h(i,a);default:return h(f,a)}}}]}function Vn(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return Un(function(e){t.$evalAsync(e)},e)}]}function Bn(){this.$get=["$browser","$exceptionHandler",function(t,e){return Un(function(e){t.defer(e)},e)}]}function Un(t,e){function r(t,e,n){function i(e){return function(n){r||(r=!0,e.call(t,n))}}var r=!1;return[i(e),i(n)]}function o(){this.$$state={status:0}}function s(t,e){return function(n){e.call(t,n)}}function l(t){var i,r,a;a=t.pending,t.processScheduled=!1,t.pending=n;for(var o=0,s=a.length;s>o;++o){r=a[o][0],i=a[o][t.status];try{$(i)?r.resolve(i(t.value)):1===t.status?r.resolve(t.value):r.reject(t.value)}catch(l){r.reject(l),e(l)}}}function u(e){!e.processScheduled&&e.pending&&(e.processScheduled=!0,t(function(){l(e)}))}function c(){this.promise=new o,this.resolve=s(this,this.resolve),this.reject=s(this,this.reject),this.notify=s(this,this.notify)}function d(t){var e=new c,n=0,i=hr(t)?[]:{};return a(t,function(t,r){n++,v(t).then(function(t){i.hasOwnProperty(r)||(i[r]=t,--n||e.resolve(i))},function(t){i.hasOwnProperty(r)||e.reject(t)})}),0===n&&e.resolve(i),e.promise}var h=i("$q",TypeError),p=function(){return new c};o.prototype={then:function(t,e,n){var i=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([i,t,e,n]),this.$$state.status>0&&u(this.$$state),i.promise},"catch":function(t){return this.then(null,t)},"finally":function(t,e){return this.then(function(e){return m(e,!0,t)},function(e){return m(e,!1,t)},e)}},c.prototype={resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(h("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):this.$$resolve(t))},$$resolve:function(t){var n,i;i=r(this,this.$$resolve,this.$$reject);try{(b(t)||$(t))&&(n=t&&t.then),$(n)?(this.promise.$$state.status=-1,n.call(t,i[0],i[1],this.notify)):(this.promise.$$state.value=t,this.promise.$$state.status=1,u(this.promise.$$state))}catch(a){i[1](a),e(a)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,u(this.promise.$$state)},notify:function(n){var i=this.promise.$$state.pending;this.promise.$$state.status<=0&&i&&i.length&&t(function(){for(var t,r,a=0,o=i.length;o>a;a++){r=i[a][0],t=i[a][3];try{r.notify($(t)?t(n):n)}catch(s){e(s)}}})}};var f=function(t){var e=new c;return e.reject(t),e.promise},g=function(t,e){var n=new c;return e?n.resolve(t):n.reject(t),n.promise},m=function(t,e,n){var i=null;try{$(n)&&(i=n())}catch(r){return g(r,!1)}return E(i)?i.then(function(){return g(t,e)},function(t){return g(t,!1)}):g(t,e)},v=function(t,e,n,i){var r=new c;return r.resolve(t),r.promise.then(e,n,i)},y=function x(t){function e(t){i.resolve(t)}function n(t){i.reject(t)}if(!$(t))throw h("norslvr","Expected resolverFn, got '{0}'",t);if(!(this instanceof x))return new x(t);var i=new c;return t(e,n),i.promise};return y.defer=p,y.reject=f,y.when=v,y.all=d,y}function Yn(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,i=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,r=!!n,a=r?function(t){var e=n(t);return function(){i(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return a.supported=r,a}]}function Xn(){function t(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=u(),this.$$ChildScope=null}return e.prototype=t,e}var e=10,n=i("$rootScope"),o=null,s=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(i,l,c,d){function h(t){t.currentScope.$$destroyed=!0}function p(){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.$$isolateBindings=null}function g(t){if(_.$$phase)throw n("inprog","{0} already in progress",_.$$phase);_.$$phase=t}function m(){_.$$phase=null}function y(t,e,n){do t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n];while(t=t.$parent)}function x(){}function w(){for(;D.length;)try{D.shift()()}catch(t){l(t)}s=null}function k(){null===s&&(s=d.defer(function(){_.$apply(w)}))}p.prototype={constructor:p,$new:function(e,n){var i;return n=n||this,e?(i=new p,i.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=t(this)),i=new this.$$ChildScope),i.$parent=n,i.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=i,n.$$childTail=i):n.$$childHead=n.$$childTail=i,(e||n!=this)&&i.$on("$destroy",h),i},$watch:function(t,e,n){var i=c(t);if(i.$$watchDelegate)return i.$$watchDelegate(this,e,n,i);var r=this,a=r.$$watchers,s={fn:e,last:x,get:i,exp:t,eq:!!n};return o=null,$(e)||(s.fn=f),a||(a=r.$$watchers=[]),a.unshift(s),function(){O(a,s),o=null}},$watchGroup:function(t,e){function n(){l=!1,u?(u=!1,e(r,r,s)):e(r,i,s)}var i=new Array(t.length),r=new Array(t.length),o=[],s=this,l=!1,u=!0;if(!t.length){var c=!0;return s.$evalAsync(function(){c&&e(r,r,s)}),function(){c=!1}}return 1===t.length?this.$watch(t[0],function(t,n,a){r[0]=t,i[0]=n,e(r,t===n?r:i,a)}):(a(t,function(t,e){var a=s.$watch(t,function(t,a){r[e]=t,i[e]=a,l||(l=!0,s.$evalAsync(n))});o.push(a)}),function(){for(;o.length;)o.shift()()})},$watchCollection:function(t,e){function n(t){a=t;var e,n,i,s,l;if(!v(a)){if(b(a))if(r(a)){o!==p&&(o=p,m=o.length=0,d++),e=a.length,m!==e&&(d++,o.length=m=e);for(var u=0;e>u;u++)l=o[u],s=a[u],i=l!==l&&s!==s,i||l===s||(d++,o[u]=s)}else{o!==f&&(o=f={},m=0,d++),e=0;for(n in a)a.hasOwnProperty(n)&&(e++,s=a[n],l=o[n],n in o?(i=l!==l&&s!==s,i||l===s||(d++,o[n]=s)):(m++,o[n]=s,d++));if(m>e){d++;for(n in o)a.hasOwnProperty(n)||(m--,delete o[n])}}else o!==a&&(o=a,d++);return d}}function i(){if(g?(g=!1,e(a,a,l)):e(a,s,l),u)if(b(a))if(r(a)){s=new Array(a.length);for(var t=0;t<a.length;t++)s[t]=a[t]}else{s={};for(var n in a)Gi.call(a,n)&&(s[n]=a[n])}else s=a}n.$stateful=!0;var a,o,s,l=this,u=e.length>1,d=0,h=c(t,n),p=[],f={},g=!0,m=0;return this.$watch(h,i)},$digest:function(){var t,i,r,a,u,c,h,p,f,v,y=e,b=this,k=[];g("$digest"),d.$$checkUrlChange(),this===_&&null!==s&&(d.defer.cancel(s),w()),o=null;do{for(c=!1,p=b;C.length;){try{v=C.shift(),v.scope.$eval(v.expression,v.locals)
}catch(D){l(D)}o=null}t:do{if(a=p.$$watchers)for(u=a.length;u--;)try{if(t=a[u])if((i=t.get(p))===(r=t.last)||(t.eq?L(i,r):"number"==typeof i&&"number"==typeof r&&isNaN(i)&&isNaN(r))){if(t===o){c=!1;break t}}else c=!0,o=t,t.last=t.eq?z(i,null):i,t.fn(i,r===x?i:r,p),5>y&&(f=4-y,k[f]||(k[f]=[]),k[f].push({msg:$(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:i,oldVal:r}))}catch(D){l(D)}if(!(h=p.$$childHead||p!==b&&p.$$nextSibling))for(;p!==b&&!(h=p.$$nextSibling);)p=p.$parent}while(p=h);if((c||C.length)&&!y--)throw m(),n("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,k)}while(c||C.length);for(m();M.length;)try{M.shift()()}catch(D){l(D)}},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;if(this.$broadcast("$destroy"),this.$$destroyed=!0,this!==_){for(var e in this.$$listenerCount)y(this,this.$$listenerCount[e],e);t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t.$$childTail==this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=f,this.$on=this.$watch=this.$watchGroup=function(){return f},this.$$listeners={},this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null}}},$eval:function(t,e){return c(t)(this,e)},$evalAsync:function(t,e){_.$$phase||C.length||d.defer(function(){C.length&&_.$digest()}),C.push({scope:this,expression:t,locals:e})},$$postDigest:function(t){M.push(t)},$apply:function(t){try{return g("$apply"),this.$eval(t)}catch(e){l(e)}finally{m();try{_.$digest()}catch(e){throw l(e),e}}},$applyAsync:function(t){function e(){n.$eval(t)}var n=this;t&&D.push(e),k()},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var i=this;do i.$$listenerCount[t]||(i.$$listenerCount[t]=0),i.$$listenerCount[t]++;while(i=i.$parent);var r=this;return function(){var i=n.indexOf(e);-1!==i&&(n[i]=null,y(r,1,t))}},$emit:function(t){var e,n,i,r=[],a=this,o=!1,s={name:t,targetScope:a,stopPropagation:function(){o=!0},preventDefault:function(){s.defaultPrevented=!0},defaultPrevented:!1},u=F([s],arguments,1);do{for(e=a.$$listeners[t]||r,s.currentScope=a,n=0,i=e.length;i>n;n++)if(e[n])try{e[n].apply(null,u)}catch(c){l(c)}else e.splice(n,1),n--,i--;if(o)return s.currentScope=null,s;a=a.$parent}while(a);return s.currentScope=null,s},$broadcast:function(t){var e=this,n=e,i=e,r={name:t,targetScope:e,preventDefault:function(){r.defaultPrevented=!0},defaultPrevented:!1};if(!e.$$listenerCount[t])return r;for(var a,o,s,u=F([r],arguments,1);n=i;){for(r.currentScope=n,a=n.$$listeners[t]||[],o=0,s=a.length;s>o;o++)if(a[o])try{a[o].apply(null,u)}catch(c){l(c)}else a.splice(o,1),o--,s--;if(!(i=n.$$listenerCount[t]&&n.$$childHead||n!==e&&n.$$nextSibling))for(;n!==e&&!(i=n.$$nextSibling);)n=n.$parent}return r.currentScope=null,r}};var _=new p,C=_.$$asyncQueue=[],M=_.$$postDigestQueue=[],D=_.$$applyAsyncQueue=[];return _}]}function Kn(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return y(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return y(t)?(e=t,this):e},this.$get=function(){return function(n,i){var r,a=i?e:t;return r=ri(n).href,""===r||r.match(a)?n:"unsafe:"+r}}}function Gn(t){if("self"===t)return t;if(x(t)){if(t.indexOf("***")>-1)throw xa("iwcard","Illegal sequence *** in string matcher.  String: {0}",t);return t=fr(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(_(t))return new RegExp("^"+t.source+"$");throw xa("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Zn(t){var e=[];return y(t)&&a(t,function(t){e.push(Gn(t))}),e}function Qn(){this.SCE_CONTEXTS=wa;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=Zn(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=Zn(t)),e},this.$get=["$injector",function(i){function r(t,e){return"self"===t?ai(e):!!t.exec(e.href)}function a(n){var i,a,o=ri(n.toString()),s=!1;for(i=0,a=t.length;a>i;i++)if(r(t[i],o)){s=!0;break}if(s)for(i=0,a=e.length;a>i;i++)if(r(e[i],o)){s=!1;break}return s}function o(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}function s(t,e){var i=h.hasOwnProperty(t)?h[t]:null;if(!i)throw xa("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||e===n||""===e)return e;if("string"!=typeof e)throw xa("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new i(e)}function l(t){return t instanceof d?t.$$unwrapTrustedValue():t}function u(t,e){if(null===e||e===n||""===e)return e;var i=h.hasOwnProperty(t)?h[t]:null;if(i&&e instanceof i)return e.$$unwrapTrustedValue();if(t===wa.RESOURCE_URL){if(a(e))return e;throw xa("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",e.toString())}if(t===wa.HTML)return c(e);throw xa("unsafe","Attempting to use an unsafe value in a safe context.")}var c=function(){throw xa("unsafe","Attempting to use an unsafe value in a safe context.")};i.has("$sanitize")&&(c=i.get("$sanitize"));var d=o(),h={};return h[wa.HTML]=o(d),h[wa.CSS]=o(d),h[wa.URL]=o(d),h[wa.JS]=o(d),h[wa.RESOURCE_URL]=o(h[wa.URL]),{trustAs:s,getTrusted:u,valueOf:l}}]}function Jn(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&8>tr)throw xa("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 i=H(wa);i.isEnabled=function(){return t},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,t||(i.trustAs=i.getTrusted=function(t,e){return e},i.valueOf=g),i.parseAs=function(t,n){var r=e(n);return r.literal&&r.constant?r:e(n,function(e){return i.getTrusted(t,e)})};var r=i.parseAs,o=i.getTrusted,s=i.trustAs;return a(wa,function(t,e){var n=Ki(e);i[ge("parse_as_"+n)]=function(e){return r(t,e)},i[ge("get_trusted_"+n)]=function(e){return o(t,e)},i[ge("trust_as_"+n)]=function(e){return s(t,e)}}),i}]}function ti(){this.$get=["$window","$document",function(t,e){var n,i,r={},a=h((/android (\d+)/.exec(Ki((t.navigator||{}).userAgent))||[])[1]),o=/Boxee/i.test((t.navigator||{}).userAgent),s=e[0]||{},l=/^(Moz|webkit|ms)(?=[A-Z])/,u=s.body&&s.body.style,c=!1,d=!1;if(u){for(var p in u)if(i=l.exec(p)){n=i[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in u&&"webkit"),c=!!("transition"in u||n+"Transition"in u),d=!!("animation"in u||n+"Animation"in u),!a||c&&d||(c=x(s.body.style.webkitTransition),d=x(s.body.style.webkitAnimation))}return{history:!(!t.history||!t.history.pushState||4>a||o),hasEvent:function(t){if("input"===t&&11>=tr)return!1;if(v(r[t])){var e=s.createElement("div");r[t]="on"+t in e}return r[t]},csp:gr(),vendorPrefix:n,transitions:c,animations:d,android:a}}]}function ei(){this.$get=["$templateCache","$http","$q",function(t,e,n){function i(r,a){function o(t){if(!a)throw Kr("tpload","Failed to load template: {0}",r);return n.reject(t)}i.totalPendingRequests++;var s=e.defaults&&e.defaults.transformResponse;hr(s)?s=s.filter(function(t){return t!==an}):s===an&&(s=null);var l={cache:t,transformResponse:s};return e.get(r,l)["finally"](function(){i.totalPendingRequests--}).then(function(t){return t.data},o)}return i.totalPendingRequests=0,i}]}function ni(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var i={};return i.findBindings=function(t,e,n){var i=t.getElementsByClassName("ng-binding"),r=[];return a(i,function(t){var i=ur.element(t).data("$binding");i&&a(i,function(i){if(n){var a=new RegExp("(^|\\s)"+fr(e)+"(\\s|\\||$)");a.test(i)&&r.push(t)}else-1!=i.indexOf(e)&&r.push(t)})}),r},i.findModels=function(t,e,n){for(var i=["ng-","data-ng-","ng\\:"],r=0;r<i.length;++r){var a=n?"=":"*=",o="["+i[r]+"model"+a+'"'+e+'"]',s=t.querySelectorAll(o);if(s.length)return s}},i.getLocation=function(){return n.url()},i.setLocation=function(e){e!==n.url()&&(n.url(e),t.$digest())},i.whenStable=function(t){e.notifyWhenNoOutstandingRequests(t)},i}]}function ii(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,i,r){function a(a,s,l){var u,c=y(l)&&!l,d=(c?i:n).defer(),h=d.promise;return u=e.defer(function(){try{d.resolve(a())}catch(e){d.reject(e),r(e)}finally{delete o[h.$$timeoutId]}c||t.$apply()},s),h.$$timeoutId=u,o[u]=d,h}var o={};return a.cancel=function(t){return t&&t.$$timeoutId in o?(o[t.$$timeoutId].reject("canceled"),delete o[t.$$timeoutId],e.defer.cancel(t.$$timeoutId)):!1},a}]}function ri(t){var e=t;return tr&&(ka.setAttribute("href",e),e=ka.href),ka.setAttribute("href",e),{href:ka.href,protocol:ka.protocol?ka.protocol.replace(/:$/,""):"",host:ka.host,search:ka.search?ka.search.replace(/^\?/,""):"",hash:ka.hash?ka.hash.replace(/^#/,""):"",hostname:ka.hostname,port:ka.port,pathname:"/"===ka.pathname.charAt(0)?ka.pathname:"/"+ka.pathname}}function ai(t){var e=x(t)?ri(t):t;return e.protocol===$a.protocol&&e.host===$a.host}function oi(){this.$get=m(t)}function si(t){function e(i,r){if(b(i)){var o={};return a(i,function(t,n){o[n]=e(n,t)}),o}return t.factory(i+n,r)}var n="Filter";this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+n)}}],e("currency",di),e("date",_i),e("filter",li),e("json",Ci),e("limitTo",Mi),e("lowercase",Sa),e("number",hi),e("orderBy",Di),e("uppercase",Aa)}function li(){return function(t,e,n){if(!hr(t))return t;var i,r;switch(typeof e){case"function":i=e;break;case"boolean":case"number":case"string":r=!0;case"object":i=ui(e,n,r);break;default:return t}return t.filter(i)}}function ui(t,e,n){var i,r=b(t)&&"$"in t;return e===!0?e=L:$(e)||(e=function(t,e){return b(t)||b(e)?!1:(t=Ki(""+t),e=Ki(""+e),-1!==t.indexOf(e))}),i=function(i){return r&&!b(i)?ci(i,t.$,e,!1):ci(i,t,e,n)}}function ci(t,e,n,i,r){var a=null!==t?typeof t:"null",o=null!==e?typeof e:"null";if("string"===o&&"!"===e.charAt(0))return!ci(t,e.substring(1),n,i);if(hr(t))return t.some(function(t){return ci(t,e,n,i)});switch(a){case"object":var s;if(i){for(s in t)if("$"!==s.charAt(0)&&ci(t[s],e,n,!0))return!0;return r?!1:ci(t,e,n,!1)}if("object"===o){for(s in e){var l=e[s];if(!$(l)&&!v(l)){var u="$"===s,c=u?t:t[s];if(!ci(c,l,n,u,u))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function di(t){var e=t.NUMBER_FORMATS;return function(t,n,i){return v(n)&&(n=e.CURRENCY_SYM),v(i)&&(i=e.PATTERNS[1].maxFrac),null==t?t:pi(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,i).replace(/\u00A4/g,n)}}function hi(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:pi(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function pi(t,e,n,i,r){if(!isFinite(t)||b(t))return"";var a=0>t;t=Math.abs(t);var o=t+"",s="",l=[],u=!1;if(-1!==o.indexOf("e")){var c=o.match(/([\d\.]+)e(-?)(\d+)/);c&&"-"==c[2]&&c[3]>r+1?t=0:(s=o,u=!0)}if(u)r>0&&1>t&&(s=t.toFixed(r),t=parseFloat(s));else{var d=(o.split(_a)[1]||"").length;v(r)&&(r=Math.min(Math.max(e.minFrac,d),e.maxFrac)),t=+(Math.round(+(t.toString()+"e"+r)).toString()+"e"+-r);var h=(""+t).split(_a),p=h[0];h=h[1]||"";var f,g=0,m=e.lgSize,y=e.gSize;if(p.length>=m+y)for(g=p.length-m,f=0;g>f;f++)(g-f)%y===0&&0!==f&&(s+=n),s+=p.charAt(f);for(f=g;f<p.length;f++)(p.length-f)%m===0&&0!==f&&(s+=n),s+=p.charAt(f);for(;h.length<r;)h+="0";r&&"0"!==r&&(s+=i+h.substr(0,r))}return 0===t&&(a=!1),l.push(a?e.negPre:e.posPre,s,a?e.negSuf:e.posSuf),l.join("")}function fi(t,e,n){var i="";for(0>t&&(i="-",t=-t),t=""+t;t.length<e;)t="0"+t;return n&&(t=t.substr(t.length-e)),i+t}function gi(t,e,n,i){return n=n||0,function(r){var a=r["get"+t]();return(n>0||a>-n)&&(a+=n),0===a&&-12==n&&(a=12),fi(a,e,i)}}function mi(t,e){return function(n,i){var r=n["get"+t](),a=Zi(e?"SHORT"+t:t);return i[a][r]}}function vi(t){var e=-1*t.getTimezoneOffset(),n=e>=0?"+":"";return n+=fi(Math[e>0?"floor":"ceil"](e/60),2)+fi(Math.abs(e%60),2)}function yi(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(4>=e?5:12)-e)}function bi(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function xi(t){return function(e){var n=yi(e.getFullYear()),i=bi(e),r=+i-+n,a=1+Math.round(r/6048e5);return fi(a,t)}}function wi(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]}function ki(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}function $i(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}function _i(t){function e(t){var e;if(e=t.match(n)){var i=new Date(0),r=0,a=0,o=e[8]?i.setUTCFullYear:i.setFullYear,s=e[8]?i.setUTCHours:i.setHours;e[9]&&(r=h(e[9]+e[10]),a=h(e[9]+e[11])),o.call(i,h(e[1]),h(e[2])-1,h(e[3]));var l=h(e[4]||0)-r,u=h(e[5]||0)-a,c=h(e[6]||0),d=Math.round(1e3*parseFloat("0."+(e[7]||0)));return s.call(i,l,u,c,d),i}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i,r){var o,s,l="",u=[];if(i=i||"mediumDate",i=t.DATETIME_FORMATS[i]||i,x(n)&&(n=Da.test(n)?h(n):e(n)),w(n)&&(n=new Date(n)),!k(n))return n;for(;i;)s=Ma.exec(i),s?(u=F(u,s,1),i=u.pop()):(u.push(i),i=null);return r&&"UTC"===r&&(n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+n.getTimezoneOffset())),a(u,function(e){o=Ca[e],l+=o?o(n,t.DATETIME_FORMATS):e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}}function Ci(){return function(t,e){return v(e)&&(e=2),q(t,e)}}function Mi(){return function(t,e){return w(t)&&(t=t.toString()),hr(t)||x(t)?(e=1/0===Math.abs(Number(e))?Number(e):h(e),e?e>0?t.slice(0,e):t.slice(e):x(t)?"":[]):t}}function Di(t){return function(e,n,i){function a(t,e){for(var i=0;i<n.length;i++){var r=n[i](t,e);if(0!==r)return r}return 0}function o(t,e){return e?function(e,n){return t(n,e)}:t}function s(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function l(t){return null===t?"null":"function"==typeof t.valueOf&&(t=t.valueOf(),s(t))?t:"function"==typeof t.toString&&(t=t.toString(),s(t))?t:""}function u(t,e){var n=typeof t,i=typeof e;return n===i&&"object"===n&&(t=l(t),e=l(e)),n===i?("string"===n&&(t=t.toLowerCase(),e=e.toLowerCase()),t===e?0:e>t?-1:1):i>n?-1:1}return r(e)?(n=hr(n)?n:[n],0===n.length&&(n=["+"]),n=n.map(function(e){var n=!1,i=e||g;if(x(e)){if(("+"==e.charAt(0)||"-"==e.charAt(0))&&(n="-"==e.charAt(0),e=e.substring(1)),""===e)return o(u,n);if(i=t(e),i.constant){var r=i();return o(function(t,e){return u(t[r],e[r])},n)}}return o(function(t,e){return u(i(t),i(e))},n)}),rr.call(e).sort(o(a,i))):e}}function Si(t){return $(t)&&(t={link:t}),t.restrict=t.restrict||"AC",m(t)}function Ai(t,e){t.$name=e}function Ti(t,e,i,r,o){var s=this,l=[],u=s.$$parentForm=t.parent().controller("form")||Ia;s.$error={},s.$$success={},s.$pending=n,s.$name=o(e.name||e.ngForm||"")(i),s.$dirty=!1,s.$pristine=!0,s.$valid=!0,s.$invalid=!1,s.$submitted=!1,u.$addControl(s),s.$rollbackViewValue=function(){a(l,function(t){t.$rollbackViewValue()})},s.$commitViewValue=function(){a(l,function(t){t.$commitViewValue()})},s.$addControl=function(t){oe(t.$name,"input"),l.push(t),t.$name&&(s[t.$name]=t)},s.$$renameControl=function(t,e){var n=t.$name;s[n]===t&&delete s[n],s[e]=t,t.$name=e},s.$removeControl=function(t){t.$name&&s[t.$name]===t&&delete s[t.$name],a(s.$pending,function(e,n){s.$setValidity(n,null,t)}),a(s.$error,function(e,n){s.$setValidity(n,null,t)}),a(s.$$success,function(e,n){s.$setValidity(n,null,t)}),O(l,t)},Bi({ctrl:this,$element:t,set:function(t,e,n){var i=t[e];if(i){var r=i.indexOf(n);-1===r&&i.push(n)}else t[e]=[n]},unset:function(t,e,n){var i=t[e];i&&(O(i,n),0===i.length&&delete t[e])},parentForm:u,$animate:r}),s.$setDirty=function(){r.removeClass(t,go),r.addClass(t,mo),s.$dirty=!0,s.$pristine=!1,u.$setDirty()},s.$setPristine=function(){r.setClass(t,go,mo+" "+Pa),s.$dirty=!1,s.$pristine=!0,s.$submitted=!1,a(l,function(t){t.$setPristine()})},s.$setUntouched=function(){a(l,function(t){t.$setUntouched()})},s.$setSubmitted=function(){r.addClass(t,Pa),s.$submitted=!0,u.$setSubmitted()}}function Ei(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function Ii(t,e,n,i,r,a){Pi(t,e,n,i,r,a),Ei(i)}function Pi(t,e,n,i,r,a){var o=Ki(e[0].type);if(!r.android){var s=!1;e.on("compositionstart",function(){s=!0}),e.on("compositionend",function(){s=!1,l()})}var l=function(t){if(u&&(a.defer.cancel(u),u=null),!s){var r=e.val(),l=t&&t.type;"password"===o||n.ngTrim&&"false"===n.ngTrim||(r=pr(r)),(i.$viewValue!==r||""===r&&i.$$hasNativeValidators)&&i.$setViewValue(r,l)}};if(r.hasEvent("input"))e.on("input",l);else{var u,c=function(t,e,n){u||(u=a.defer(function(){u=null,e&&e.value===n||l(t)}))};e.on("keydown",function(t){var e=t.keyCode;91===e||e>15&&19>e||e>=37&&40>=e||c(t,this,this.value)}),r.hasEvent("paste")&&e.on("paste cut",c)}e.on("change",l),i.$render=function(){e.val(i.$isEmpty(i.$viewValue)?"":i.$viewValue)}}function Ni(t,e){if(k(t))return t;if(x(t)){qa.lastIndex=0;var n=qa.exec(t);if(n){var i=+n[1],r=+n[2],a=0,o=0,s=0,l=0,u=yi(i),c=7*(r-1);return e&&(a=e.getHours(),o=e.getMinutes(),s=e.getSeconds(),l=e.getMilliseconds()),new Date(i,0,u.getDate()+c,a,o,s,l)}}return 0/0}function Oi(t,e){return function(n,i){var r,o;if(k(n))return n;if(x(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Ha.test(n))return new Date(n);if(t.lastIndex=0,r=t.exec(n))return r.shift(),o=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},a(r,function(t,n){n<e.length&&(o[e[n]]=+t)}),new Date(o.yyyy,o.MM-1,o.dd,o.HH,o.mm,o.ss||0,1e3*o.sss||0)}return 0/0}}function zi(t,e,i,r){return function(a,o,s,l,u,c,d){function h(t){return t&&!(t.getTime&&t.getTime()!==t.getTime())}function p(t){return y(t)?k(t)?t:i(t):n}Hi(a,o,s,l),Pi(a,o,s,l,u,c);var f,g=l&&l.$options&&l.$options.timezone;if(l.$$parserName=t,l.$parsers.push(function(t){if(l.$isEmpty(t))return null;if(e.test(t)){var r=i(t,f);return"UTC"===g&&r.setMinutes(r.getMinutes()-r.getTimezoneOffset()),r}return n}),l.$formatters.push(function(t){if(t&&!k(t))throw xo("datefmt","Expected `{0}` to be a date",t);if(h(t)){if(f=t,f&&"UTC"===g){var e=6e4*f.getTimezoneOffset();f=new Date(f.getTime()+e)}return d("date")(t,r,g)}return f=null,""}),y(s.min)||s.ngMin){var m;l.$validators.min=function(t){return!h(t)||v(m)||i(t)>=m},s.$observe("min",function(t){m=p(t),l.$validate()})}if(y(s.max)||s.ngMax){var b;l.$validators.max=function(t){return!h(t)||v(b)||i(t)<=b},s.$observe("max",function(t){b=p(t),l.$validate()})}}}function Hi(t,e,i,r){var a=e[0],o=r.$$hasNativeValidators=b(a.validity);o&&r.$parsers.push(function(t){var i=e.prop(Xi)||{};return i.badInput&&!i.typeMismatch?n:t})}function Li(t,e,i,r,a,o){if(Hi(t,e,i,r),Pi(t,e,i,r,a,o),r.$$parserName="number",r.$parsers.push(function(t){return r.$isEmpty(t)?null:Ra.test(t)?parseFloat(t):n}),r.$formatters.push(function(t){if(!r.$isEmpty(t)){if(!w(t))throw xo("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}),y(i.min)||i.ngMin){var s;r.$validators.min=function(t){return r.$isEmpty(t)||v(s)||t>=s},i.$observe("min",function(t){y(t)&&!w(t)&&(t=parseFloat(t,10)),s=w(t)&&!isNaN(t)?t:n,r.$validate()})}if(y(i.max)||i.ngMax){var l;r.$validators.max=function(t){return r.$isEmpty(t)||v(l)||l>=t},i.$observe("max",function(t){y(t)&&!w(t)&&(t=parseFloat(t,10)),l=w(t)&&!isNaN(t)?t:n,r.$validate()})}}function Fi(t,e,n,i,r,a){Pi(t,e,n,i,r,a),Ei(i),i.$$parserName="url",i.$validators.url=function(t,e){var n=t||e;return i.$isEmpty(n)||La.test(n)}}function Ri(t,e,n,i,r,a){Pi(t,e,n,i,r,a),Ei(i),i.$$parserName="email",i.$validators.email=function(t,e){var n=t||e;return i.$isEmpty(n)||Fa.test(n)}}function Wi(t,e,n,i){v(n.name)&&e.attr("name",u());var r=function(t){e[0].checked&&i.$setViewValue(n.value,t&&t.type)};e.on("click",r),i.$render=function(){var t=n.value;e[0].checked=t==i.$viewValue},n.$observe("value",i.$render)}function ji(t,e,n,r,a){var o;if(y(r)){if(o=t(r),!o.constant)throw i("ngModel")("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(e)}return a}function qi(t,e,n,i,r,a,o,s){var l=ji(s,t,"ngTrueValue",n.ngTrueValue,!0),u=ji(s,t,"ngFalseValue",n.ngFalseValue,!1),c=function(t){i.$setViewValue(e[0].checked,t&&t.type)};e.on("click",c),i.$render=function(){e[0].checked=i.$viewValue},i.$isEmpty=function(t){return t===!1},i.$formatters.push(function(t){return L(t,l)}),i.$parsers.push(function(t){return t?l:u})}function Vi(t,e){return t="ngClass"+t,["$animate",function(n){function i(t,e){var n=[];t:for(var i=0;i<t.length;i++){for(var r=t[i],a=0;a<e.length;a++)if(r==e[a])continue t;n.push(r)}return n}function r(t){if(hr(t))return t;if(x(t))return t.split(" ");if(b(t)){var e=[];return a(t,function(t,n){t&&(e=e.concat(n.split(" ")))}),e}return t}return{restrict:"AC",link:function(o,s,l){function u(t){var e=d(t,1);l.$addClass(e)}function c(t){var e=d(t,-1);l.$removeClass(e)}function d(t,e){var n=s.data("$classCounts")||{},i=[];return a(t,function(t){(e>0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&i.push(t))}),s.data("$classCounts",n),i.join(" ")}function h(t,e){var r=i(e,t),a=i(t,e);r=d(r,1),a=d(a,-1),r&&r.length&&n.addClass(s,r),a&&a.length&&n.removeClass(s,a)}function p(t){if(e===!0||o.$index%2===e){var n=r(t||[]);if(f){if(!L(t,f)){var i=r(f);h(i,n)}}else u(n)}f=H(t)}var f;o.$watch(l[t],p,!0),l.$observe("class",function(){p(o.$eval(l[t]))}),"ngClass"!==t&&o.$watch("$index",function(n,i){var a=1&n;if(a!==(1&i)){var s=r(o.$eval(l[t]));a===e?u(s):c(s)}})}}}]}function Bi(t){function e(t,e,l){e===n?i("$pending",t,l):r("$pending",t,l),T(e)?e?(d(s.$error,t,l),c(s.$$success,t,l)):(c(s.$error,t,l),d(s.$$success,t,l)):(d(s.$error,t,l),d(s.$$success,t,l)),s.$pending?(a(bo,!0),s.$valid=s.$invalid=n,o("",null)):(a(bo,!1),s.$valid=Ui(s.$error),s.$invalid=!s.$valid,o("",s.$valid));var u;u=s.$pending&&s.$pending[t]?n:s.$error[t]?!1:s.$$success[t]?!0:null,o(t,u),h.$setValidity(t,u,s)}function i(t,e,n){s[t]||(s[t]={}),c(s[t],e,n)}function r(t,e,i){s[t]&&d(s[t],e,i),Ui(s[t])&&(s[t]=n)}function a(t,e){e&&!u[t]?(p.addClass(l,t),u[t]=!0):!e&&u[t]&&(p.removeClass(l,t),u[t]=!1)}function o(t,e){t=t?"-"+ne(t,"-"):"",a(po+t,e===!0),a(fo+t,e===!1)}var s=t.ctrl,l=t.$element,u={},c=t.set,d=t.unset,h=t.parentForm,p=t.$animate;u[fo]=!(u[po]=l.hasClass(po)),s.$setValidity=e}function Ui(t){if(t)for(var e in t)return!1;return!0}var Yi=/^\/(.+)\/([a-z]*)$/,Xi="validity",Ki=function(t){return x(t)?t.toLowerCase():t},Gi=Object.prototype.hasOwnProperty,Zi=function(t){return x(t)?t.toUpperCase():t},Qi=function(t){return x(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},Ji=function(t){return x(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(-33&t.charCodeAt(0))}):t};"i"!=="I".toLowerCase()&&(Ki=Qi,Zi=Ji);var tr,er,nr,ir,rr=[].slice,ar=[].splice,or=[].push,sr=Object.prototype.toString,lr=i("ng"),ur=t.angular||(t.angular={}),cr=0;tr=e.documentMode,f.$inject=[],g.$inject=[];var dr,hr=Array.isArray,pr=function(t){return x(t)?t.trim():t},fr=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},gr=function(){if(y(gr.isActive_))return gr.isActive_;var t=!(!e.querySelector("[ng-csp]")&&!e.querySelector("[data-ng-csp]"));if(!t)try{new Function("")}catch(n){t=!0}return gr.isActive_=t},mr=["ng-","data-ng-","ng:","x-ng-"],vr=/[A-Z]/g,yr=!1,br=1,xr=3,wr=8,kr=9,$r=11,_r={full:"1.3.15",major:1,minor:3,dot:15,codeName:"locality-filtration"};xe.expando="ng339";var Cr=xe.cache={},Mr=1,Dr=function(t,e,n){t.addEventListener(e,n,!1)},Sr=function(t,e,n){t.removeEventListener(e,n,!1)};xe._data=function(t){return this.cache[t[this.expando]]||{}};var Ar=/([\:\-\_]+(.))/g,Tr=/^moz([A-Z])/,Er={mouseleave:"mouseout",mouseenter:"mouseover"},Ir=i("jqLite"),Pr=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Nr=/<|&#?\w+;/,Or=/<([\w:]+)/,zr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Hr={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,"",""]};Hr.optgroup=Hr.option,Hr.tbody=Hr.tfoot=Hr.colgroup=Hr.caption=Hr.thead,Hr.th=Hr.td;var Lr=xe.prototype={ready:function(n){function i(){r||(r=!0,n())}var r=!1;"complete"===e.readyState?setTimeout(i):(this.on("DOMContentLoaded",i),xe(t).on("load",i))},toString:function(){var t=[];return a(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return er(t>=0?this[t]:this[this.length+t])},length:0,push:or,sort:[].sort,splice:[].splice},Fr={};a("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){Fr[Ki(t)]=t});var Rr={};a("input,select,option,textarea,button,form,details".split(","),function(t){Rr[t]=!0});var Wr={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};a({data:Me,removeData:_e},function(t,e){xe[e]=t}),a({data:Me,inheritedData:Ie,scope:function(t){return er.data(t,"$scope")||Ie(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return er.data(t,"$isolateScope")||er.data(t,"$isolateScopeNoTemplate")},controller:Ee,injector:function(t){return Ie(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:De,css:function(t,e,n){return e=ge(e),y(n)?void(t.style[e]=n):t.style[e]},attr:function(t,e,i){var r=Ki(e);if(Fr[r]){if(!y(i))return t[e]||(t.attributes.getNamedItem(e)||f).specified?r:n;i?(t[e]=!0,t.setAttribute(e,r)):(t[e]=!1,t.removeAttribute(r))}else if(y(i))t.setAttribute(e,i);else if(t.getAttribute){var a=t.getAttribute(e,2);return null===a?n:a}},prop:function(t,e,n){return y(n)?void(t[e]=n):t[e]},text:function(){function t(t,e){if(v(e)){var n=t.nodeType;return n===br||n===xr?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(v(e)){if(t.multiple&&"select"===N(t)){var n=[];return a(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){return v(e)?t.innerHTML:(ke(t,!0),void(t.innerHTML=e))},empty:Pe},function(t,e){xe.prototype[e]=function(e,i){var r,a,o=this.length;if(t!==Pe&&(2==t.length&&t!==De&&t!==Ee?e:i)===n){if(b(e)){for(r=0;o>r;r++)if(t===Me)t(this[r],e);else for(a in e)t(this[r],a,e[a]);return this}for(var s=t.$dv,l=s===n?Math.min(o,1):o,u=0;l>u;u++){var c=t(this[u],e,i);s=s?s+c:c}return s}for(r=0;o>r;r++)t(this[r],e,i);return this}}),a({removeData:_e,on:function Yo(t,e,n,i){if(y(i))throw Ir("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(ve(t)){var r=Ce(t,!0),a=r.events,o=r.handle;o||(o=r.handle=Le(t,a));for(var s=e.indexOf(" ")>=0?e.split(" "):[e],l=s.length;l--;){e=s[l];var u=a[e];u||(a[e]=[],"mouseenter"===e||"mouseleave"===e?Yo(t,Er[e],function(t){var n=this,i=t.relatedTarget;(!i||i!==n&&!n.contains(i))&&o(t,e)}):"$destroy"!==e&&Dr(t,e,o),u=a[e]),u.push(n)}}},off:$e,one:function(t,e,n){t=er(t),t.on(e,function i(){t.off(e,n),t.off(e,i)}),t.on(e,n)},replaceWith:function(t,e){var n,i=t.parentNode;ke(t),a(new xe(e),function(e){n?i.insertBefore(e,n.nextSibling):i.replaceChild(e,t),n=e})},children:function(t){var e=[];return a(t.childNodes,function(t){t.nodeType===br&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===br||n===$r){e=new xe(e);for(var i=0,r=e.length;r>i;i++){var a=e[i];t.appendChild(a)}}},prepend:function(t,e){if(t.nodeType===br){var n=t.firstChild;a(new xe(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){e=er(e).eq(0).clone()[0];var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)},remove:Ne,detach:function(t){Ne(t,!0)},after:function(t,e){var n=t,i=t.parentNode;e=new xe(e);for(var r=0,a=e.length;a>r;r++){var o=e[r];i.insertBefore(o,n.nextSibling),n=o}},addClass:Ae,removeClass:Se,toggleClass:function(t,e,n){e&&a(e.split(" "),function(e){var i=n;v(i)&&(i=!De(t,e)),(i?Ae:Se)(t,e)})},parent:function(t){var e=t.parentNode;return e&&e.nodeType!==$r?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:we,triggerHandler:function(t,e,n){var i,r,o,s=e.type||e,l=Ce(t),u=l&&l.events,c=u&&u[s];c&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:f,type:s,target:t},e.type&&(i=d(i,e)),r=H(c),o=n?[i].concat(n):[i],a(r,function(e){i.isImmediatePropagationStopped()||e.apply(t,o)}))}},function(t,e){xe.prototype[e]=function(e,n,i){for(var r,a=0,o=this.length;o>a;a++)v(r)?(r=t(this[a],e,n,i),y(r)&&(r=er(r))):Te(r,t(this[a],e,n,i));return y(r)?r:this},xe.prototype.bind=xe.prototype.on,xe.prototype.unbind=xe.prototype.off}),We.prototype={put:function(t,e){this[Re(t,this.nextUid)]=e},get:function(t){return this[Re(t,this.nextUid)]},remove:function(t){var e=this[t=Re(t,this.nextUid)];return delete this[t],e}};var jr=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,qr=/,/,Vr=/^\s*(_?)(\S+?)\1\s*$/,Br=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ur=i("$injector");Ve.$$annotate=qe;var Yr=i("$animate"),Xr=["$provide",function(t){this.$$selectors={},this.register=function(e,n){var i=e+"-animation";if(e&&"."!=e.charAt(0))throw Yr("notcsel","Expecting class selector starting with '.' got '{0}'.",e);this.$$selectors[e.substr(1)]=i,t.factory(i,n)},this.classNameFilter=function(t){return 1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null),this.$$classNameFilter},this.$get=["$$q","$$asyncCallback","$rootScope",function(t,e,n){function i(e){var i,r=t.defer();return r.promise.$$cancelFn=function(){i&&i()},n.$$postDigest(function(){i=e(function(){r.resolve()})}),r.promise}function r(t,e){var n=[],i=[],r=ue();return a((t.attr("class")||"").split(/\s+/),function(t){r[t]=!0}),a(e,function(t,e){var a=r[e];t===!1&&a?i.push(e):t!==!0||a||n.push(e)}),n.length+i.length>0&&[n.length?n:null,i.length?i:null]}function o(t,e,n){for(var i=0,r=e.length;r>i;++i){var a=e[i];t[a]=n}}function s(){return u||(u=t.defer(),e(function(){u.resolve(),u=null})),u.promise}function l(t,e){if(ur.isObject(e)){var n=d(e.from||{},e.to||{});t.css(n)}}var u;return{animate:function(t,e,n){return l(t,{from:e,to:n}),s()},enter:function(t,e,n,i){return l(t,i),n?n.after(t):e.prepend(t),s()},leave:function(t,e){return l(t,e),t.remove(),s()},move:function(t,e,n,i){return this.enter(t,e,n,i)},addClass:function(t,e,n){return this.setClass(t,e,[],n)},$$addClassImmediately:function(t,e,n){return t=er(t),e=x(e)?e:hr(e)?e.join(" "):"",a(t,function(t){Ae(t,e)}),l(t,n),s()},removeClass:function(t,e,n){return this.setClass(t,[],e,n)},$$removeClassImmediately:function(t,e,n){return t=er(t),e=x(e)?e:hr(e)?e.join(" "):"",a(t,function(t){Se(t,e)}),l(t,n),s()},setClass:function(t,e,n,a){var s=this,l="$$animateClasses",u=!1;t=er(t);var c=t.data(l);c?a&&c.options&&(c.options=ur.extend(c.options||{},a)):(c={classes:{},options:a},u=!0);var d=c.classes;return e=hr(e)?e:e.split(" "),n=hr(n)?n:n.split(" "),o(d,e,!0),o(d,n,!1),u&&(c.promise=i(function(e){var n=t.data(l);if(t.removeData(l),n){var i=r(t,n.classes);i&&s.$$setClassImmediately(t,i[0],i[1],n.options)}e()}),t.data(l,c)),c.promise},$$setClassImmediately:function(t,e,n,i){return e&&this.$$addClassImmediately(t,e),n&&this.$$removeClassImmediately(t,n),l(t,i),s()
},enabled:f,cancel:f}}]}],Kr=i("$compile");Ze.$inject=["$provide","$$sanitizeUriProvider"];var Gr=/^((?:x|data)[\:\-_])/i,Zr=i("$controller"),Qr="application/json",Jr={"Content-Type":Qr+";charset=utf-8"},ta=/^\[|^\{(?!\{)/,ea={"[":/]$/,"{":/}$/},na=/^\)\]\}',?\n/,ia=i("$interpolate"),ra=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,aa={http:80,https:443,ftp:21},oa=i("$location"),sa={$$html5:!1,$$replace:!1,absUrl:An("$$absUrl"),url:function(t){if(v(t))return this.$$url;var e=ra.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:An("$$protocol"),host:An("$$host"),port:An("$$port"),path:Tn("$$path",function(t){return t=null!==t?t.toString():"","/"==t.charAt(0)?t:"/"+t}),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(x(t)||w(t))t=t.toString(),this.$$search=Y(t);else{if(!b(t))throw oa("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");t=z(t,{}),a(t,function(e,n){null==e&&delete t[n]}),this.$$search=t}break;default:v(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:Tn("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};a([Sn,Dn,Mn],function(t){t.prototype=Object.create(sa),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==Mn||!this.$$html5)throw oa("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=v(e)?null:e,this}});var la=i("$parse"),ua=Function.prototype.call,ca=Function.prototype.apply,da=Function.prototype.bind,ha=ue();a({"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:function(){}},function(t,e){t.constant=t.literal=t.sharedGetter=!0,ha[e]=t}),ha["this"]=function(t){return t},ha["this"].sharedGetter=!0;var pa=d(ue(),{"+":function(t,e,i,r){return i=i(t,e),r=r(t,e),y(i)?y(r)?i+r:i:y(r)?r:n},"-":function(t,e,n,i){return n=n(t,e),i=i(t,e),(y(n)?n:0)-(y(i)?i:0)},"*":function(t,e,n,i){return n(t,e)*i(t,e)},"/":function(t,e,n,i){return n(t,e)/i(t,e)},"%":function(t,e,n,i){return n(t,e)%i(t,e)},"===":function(t,e,n,i){return n(t,e)===i(t,e)},"!==":function(t,e,n,i){return n(t,e)!==i(t,e)},"==":function(t,e,n,i){return n(t,e)==i(t,e)},"!=":function(t,e,n,i){return n(t,e)!=i(t,e)},"<":function(t,e,n,i){return n(t,e)<i(t,e)},">":function(t,e,n,i){return n(t,e)>i(t,e)},"<=":function(t,e,n,i){return n(t,e)<=i(t,e)},">=":function(t,e,n,i){return n(t,e)>=i(t,e)},"&&":function(t,e,n,i){return n(t,e)&&i(t,e)},"||":function(t,e,n,i){return n(t,e)||i(t,e)},"!":function(t,e,n){return!n(t,e)},"=":!0,"|":!0}),fa={n:"\n",f:"\f",r:"\r",t:"	",v:"","'":"'",'"':'"'},ga=function(t){this.options=t};ga.prototype={constructor:ga,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e=this.text.charAt(this.index);if('"'===e||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(e))this.readIdent();else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var n=e+this.peek(),i=n+this.peek(2),r=pa[e],a=pa[n],o=pa[i];if(r||a||o){var s=o?i:a?n:e;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(t,e){return-1!==e.indexOf(t)},peek:function(t){var e=t||1;return this.index+e<this.text.length?this.text.charAt(this.index+e):!1},isNumber:function(t){return t>="0"&&"9">=t&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"	"===t||"\n"===t||""===t||" "===t},isIdent:function(t){return t>="a"&&"z">=t||t>="A"&&"Z">=t||"_"===t||"$"===t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var i=y(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw la("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,i,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=Ki(this.text.charAt(this.index));if("."==n||this.isNumber(n))t+=n;else{var i=this.peek();if("e"==n&&this.isExpOperator(i))t+=n;else if(this.isExpOperator(n)&&i&&this.isNumber(i)&&"e"==t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||i&&this.isNumber(i)||"e"!=t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){for(var t=this.index;this.index<this.text.length;){var e=this.text.charAt(this.index);if(!this.isIdent(e)&&!this.isNumber(e))break;this.index++}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var n="",i=t,r=!1;this.index<this.text.length;){var a=this.text.charAt(this.index);if(i+=a,r){if("u"===a){var o=this.text.substring(this.index+1,this.index+5);o.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+o+"]"),this.index+=4,n+=String.fromCharCode(parseInt(o,16))}else{var s=fa[a];n+=s||a}r=!1}else if("\\"===a)r=!0;else{if(a===t)return this.index++,void this.tokens.push({index:e,text:i,constant:!0,value:n});n+=a}this.index++}this.throwError("Unterminated quote",e)}};var ma=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n};ma.ZERO=d(function(){return 0},{sharedGetter:!0,constant:!0}),ma.prototype={constructor:ma,parse:function(t){this.text=t,this.tokens=this.lexer.lex(t);var e=this.statements();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e.literal=!!e.literal,e.constant=!!e.constant,e},primary:function(){var t;this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.peek().identifier&&this.peek().text in ha?t=ha[this.consume().text]:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());for(var e,n;e=this.expect("(","[",".");)"("===e.text?(t=this.functionCall(t,n),n=null):"["===e.text?(n=t,t=this.objectIndex(t)):"."===e.text?(n=t,t=this.fieldAccess(t)):this.throwError("IMPOSSIBLE");return t},throwError:function(t,e){throw la("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},peekToken:function(){if(0===this.tokens.length)throw la("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,i){return this.peekAhead(0,t,e,n,i)},peekAhead:function(t,e,n,i,r){if(this.tokens.length>t){var a=this.tokens[t],o=a.text;if(o===e||o===n||o===i||o===r||!e&&!n&&!i&&!r)return a}return!1},expect:function(t,e,n,i){var r=this.peek(t,e,n,i);return r?(this.tokens.shift(),r):!1},consume:function(t){if(0===this.tokens.length)throw la("ueoe","Unexpected end of expression: {0}",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},unaryFn:function(t,e){var n=pa[t];return d(function(t,i){return n(t,i,e)},{constant:e.constant,inputs:[e]})},binaryFn:function(t,e,n,i){var r=pa[e];return d(function(e,i){return r(e,i,t,n)},{constant:t.constant&&n.constant,inputs:!i&&[t,n]})},identifier:function(){for(var t=this.consume().text;this.peek(".")&&this.peekAhead(1).identifier&&!this.peekAhead(2,"(");)t+=this.consume().text+this.consume().text;return Wn(t,this.options,this.text)},constant:function(){var t=this.consume().value;return d(function(){return t},{constant:!0,literal:!0})},statements:function(){for(var t=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.filterChain()),!this.expect(";"))return 1===t.length?t[0]:function(e,n){for(var i,r=0,a=t.length;a>r;r++)i=t[r](e,n);return i}},filterChain:function(){for(var t,e=this.expression();t=this.expect("|");)e=this.filter(e);return e},filter:function(t){var e,i,r=this.$filter(this.consume().text);if(this.peek(":"))for(e=[],i=[];this.expect(":");)e.push(this.expression());var a=[t].concat(e||[]);return d(function(a,o){var s=t(a,o);if(i){i[0]=s;for(var l=e.length;l--;)i[l+1]=e[l](a,o);return r.apply(n,i)}return r(s)},{constant:!r.$stateful&&a.every(zn),inputs:!r.$stateful&&a})},expression:function(){return this.assignment()},assignment:function(){var t,e,n=this.ternary();return(e=this.expect("="))?(n.assign||this.throwError("implies assignment but ["+this.text.substring(0,e.index)+"] can not be assigned to",e),t=this.ternary(),d(function(e,i){return n.assign(e,t(e,i),i)},{inputs:[n,t]})):n},ternary:function(){var t,e,n=this.logicalOR();if((e=this.expect("?"))&&(t=this.assignment(),this.consume(":"))){var i=this.assignment();return d(function(e,r){return n(e,r)?t(e,r):i(e,r)},{constant:n.constant&&t.constant&&i.constant})}return n},logicalOR:function(){for(var t,e=this.logicalAND();t=this.expect("||");)e=this.binaryFn(e,t.text,this.logicalAND(),!0);return e},logicalAND:function(){for(var t,e=this.equality();t=this.expect("&&");)e=this.binaryFn(e,t.text,this.equality(),!0);return e},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e=this.binaryFn(e,t.text,this.relational());return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e=this.binaryFn(e,t.text,this.additive());return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e=this.binaryFn(e,t.text,this.multiplicative());return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e=this.binaryFn(e,t.text,this.unary());return e},unary:function(){var t;return this.expect("+")?this.primary():(t=this.expect("-"))?this.binaryFn(ma.ZERO,t.text,this.unary()):(t=this.expect("!"))?this.unaryFn(t.text,this.unary()):this.primary()},fieldAccess:function(t){var e=this.identifier();return d(function(i,r,a){var o=a||t(i,r);return null==o?n:e(o)},{assign:function(n,i,r){var a=t(n,r);return a||t.assign(n,a={},r),e.assign(a,i)}})},objectIndex:function(t){var e=this.text,i=this.expression();return this.consume("]"),d(function(r,a){var o,s=t(r,a),l=i(r,a);return Pn(l,e),s?o=Nn(s[l],e):n},{assign:function(n,r,a){var o=Pn(i(n,a),e),s=Nn(t(n,a),e);return s||t.assign(n,s={},a),s[o]=r}})},functionCall:function(t,e){var i=[];if(")"!==this.peekToken().text)do i.push(this.expression());while(this.expect(","));this.consume(")");var r=this.text,a=i.length?[]:null;return function(o,s){var l=e?e(o,s):y(e)?n:o,u=t(o,s,l)||f;if(a)for(var c=i.length;c--;)a[c]=Nn(i[c](o,s),r);Nn(l,r),On(u,r);var d=u.apply?u.apply(l,a):u(a[0],a[1],a[2],a[3],a[4]);return a&&(a.length=0),Nn(d,r)}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),d(function(e,n){for(var i=[],r=0,a=t.length;a>r;r++)i.push(t[r](e,n));return i},{literal:!0,constant:t.every(zn),inputs:t})},object:function(){var t=[],e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;var n=this.consume();n.constant?t.push(n.value):n.identifier?t.push(n.text):this.throwError("invalid key",n),this.consume(":"),e.push(this.expression())}while(this.expect(","));return this.consume("}"),d(function(n,i){for(var r={},a=0,o=e.length;o>a;a++)r[t[a]]=e[a](n,i);return r},{literal:!0,constant:e.every(zn),inputs:e})}};var va=ue(),ya=ue(),ba=Object.prototype.valueOf,xa=i("$sce"),wa={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Kr=i("$compile"),ka=e.createElement("a"),$a=ri(t.location.href);si.$inject=["$provide"],di.$inject=["$locale"],hi.$inject=["$locale"];var _a=".",Ca={yyyy:gi("FullYear",4),yy:gi("FullYear",2,0,!0),y:gi("FullYear",1),MMMM:mi("Month"),MMM:mi("Month",!0),MM:gi("Month",2,1),M:gi("Month",1,1),dd:gi("Date",2),d:gi("Date",1),HH:gi("Hours",2),H:gi("Hours",1),hh:gi("Hours",2,-12),h:gi("Hours",1,-12),mm:gi("Minutes",2),m:gi("Minutes",1),ss:gi("Seconds",2),s:gi("Seconds",1),sss:gi("Milliseconds",3),EEEE:mi("Day"),EEE:mi("Day",!0),a:wi,Z:vi,ww:xi(2),w:xi(1),G:ki,GG:ki,GGG:ki,GGGG:$i},Ma=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Da=/^\-?\d+$/;_i.$inject=["$locale"];var Sa=m(Ki),Aa=m(Zi);Di.$inject=["$parse"];var Ta=m({restrict:"E",compile:function(t,e){return e.href||e.xlinkHref||e.name?void 0:function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===sr.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),Ea={};a(Fr,function(t,e){if("multiple"!=t){var n=Qe("ng-"+e);Ea[n]=function(){return{restrict:"A",priority:100,link:function(t,i,r){t.$watch(r[n],function(t){r.$set(e,!!t)})}}}}}),a(Wr,function(t,e){Ea[e]=function(){return{priority:100,link:function(t,n,i){if("ngPattern"===e&&"/"==i.ngPattern.charAt(0)){var r=i.ngPattern.match(Yi);if(r)return void i.$set("ngPattern",new RegExp(r[1],r[2]))}t.$watch(i[e],function(t){i.$set(e,t)})}}}}),a(["src","srcset","href"],function(t){var e=Qe("ng-"+t);Ea[e]=function(){return{priority:99,link:function(n,i,r){var a=t,o=t;"href"===t&&"[object SVGAnimatedString]"===sr.call(i.prop("href"))&&(o="xlinkHref",r.$attr[o]="xlink:href",a=null),r.$observe(e,function(e){return e?(r.$set(o,e),void(tr&&a&&i.prop(a,r[o]))):void("href"===t&&r.$set(o,null))})}}}});var Ia={$addControl:f,$$renameControl:Ai,$removeControl:f,$setValidity:f,$setDirty:f,$setPristine:f,$setSubmitted:f},Pa="ng-submitted";Ti.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Na=function(t){return["$timeout",function(e){var i={name:"form",restrict:t?"EAC":"E",controller:Ti,compile:function(i,r){i.addClass(go).addClass(po);var a=r.name?"name":t&&r.ngForm?"ngForm":!1;return{pre:function(t,i,r,o){if(!("action"in r)){var s=function(e){t.$apply(function(){o.$commitViewValue(),o.$setSubmitted()}),e.preventDefault()};Dr(i[0],"submit",s),i.on("$destroy",function(){e(function(){Sr(i[0],"submit",s)},0,!1)})}var l=o.$$parentForm;a&&(Hn(t,null,o.$name,o,o.$name),r.$observe(a,function(e){o.$name!==e&&(Hn(t,null,o.$name,n,o.$name),l.$$renameControl(o,e),Hn(t,null,o.$name,o,o.$name))})),i.on("$destroy",function(){l.$removeControl(o),a&&Hn(t,null,r[a],n,o.$name),d(o,Ia)})}}}};return i}]},Oa=Na(),za=Na(!0),Ha=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,La=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,Fa=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Ra=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Wa=/^(\d{4})-(\d{2})-(\d{2})$/,ja=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,qa=/^(\d{4})-W(\d\d)$/,Va=/^(\d{4})-(\d\d)$/,Ba=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Ua={text:Ii,date:zi("date",Wa,Oi(Wa,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":zi("datetimelocal",ja,Oi(ja,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:zi("time",Ba,Oi(Ba,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:zi("week",qa,Ni,"yyyy-Www"),month:zi("month",Va,Oi(Va,["yyyy","MM"]),"yyyy-MM"),number:Li,url:Fi,email:Ri,radio:Wi,checkbox:qi,hidden:f,button:f,submit:f,reset:f,file:f},Ya=["$browser","$sniffer","$filter","$parse",function(t,e,n,i){return{restrict:"E",require:["?ngModel"],link:{pre:function(r,a,o,s){s[0]&&(Ua[Ki(o.type)]||Ua.text)(r,a,o,s[0],e,t,n,i)}}}}],Xa=/^(true|false|\d+)$/,Ka=function(){return{restrict:"A",priority:100,compile:function(t,e){return Xa.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}},Ga=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,i,r){t.$$addBindingInfo(i,r.ngBind),i=i[0],e.$watch(r.ngBind,function(t){i.textContent=t===n?"":t})}}}}],Za=["$interpolate","$compile",function(t,e){return{compile:function(i){return e.$$addBindingClass(i),function(i,r,a){var o=t(r.attr(a.$attr.ngBindTemplate));e.$$addBindingInfo(r,o.expressions),r=r[0],a.$observe("ngBindTemplate",function(t){r.textContent=t===n?"":t})}}}}],Qa=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(i,r){var a=e(r.ngBindHtml),o=e(r.ngBindHtml,function(t){return(t||"").toString()});return n.$$addBindingClass(i),function(e,i,r){n.$$addBindingInfo(i,r.ngBindHtml),e.$watch(o,function(){i.html(t.getTrustedHtml(a(e))||"")})}}}}],Ja=m({restrict:"A",require:"ngModel",link:function(t,e,n,i){i.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),to=Vi("",!0),eo=Vi("Odd",0),no=Vi("Even",1),io=Si({compile:function(t,e){e.$set("ngCloak",n),t.removeClass("ng-cloak")}}),ro=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ao={},oo={blur:!0,focus:!0};a("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=Qe("ng-"+t);ao[e]=["$parse","$rootScope",function(n,i){return{restrict:"A",compile:function(r,a){var o=n(a[e],null,!0);return function(e,n){n.on(t,function(n){var r=function(){o(e,{$event:n})};oo[t]&&i.$$phase?e.$evalAsync(r):e.$apply(r)})}}}}]});var so=["$animate",function(t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,i,r,a,o){var s,l,u;n.$watch(r.ngIf,function(n){n?l||o(function(n,a){l=a,n[n.length++]=e.createComment(" end ngIf: "+r.ngIf+" "),s={clone:n},t.enter(n,i.parent(),i)}):(u&&(u.remove(),u=null),l&&(l.$destroy(),l=null),s&&(u=le(s.clone),t.leave(u).then(function(){u=null}),s=null))})}}}],lo=["$templateRequest","$anchorScroll","$animate","$sce",function(t,e,n,i){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ur.noop,compile:function(r,a){var o=a.ngInclude||a.src,s=a.onload||"",l=a.autoscroll;return function(r,a,u,c,d){var h,p,f,g=0,m=function(){p&&(p.remove(),p=null),h&&(h.$destroy(),h=null),f&&(n.leave(f).then(function(){p=null}),p=f,f=null)};r.$watch(i.parseAsResourceUrl(o),function(i){var o=function(){!y(l)||l&&!r.$eval(l)||e()},u=++g;i?(t(i,!0).then(function(t){if(u===g){var e=r.$new();c.template=t;var l=d(e,function(t){m(),n.enter(t,null,a).then(o)});h=e,f=l,h.$emit("$includeContentLoaded",i),r.$eval(s)}},function(){u===g&&(m(),r.$emit("$includeContentError",i))}),r.$emit("$includeContentRequested",i)):(m(),c.template=null)})}}}}],uo=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,i,r,a){return/SVG/.test(i[0].toString())?(i.empty(),void t(ye(a.template,e).childNodes)(n,function(t){i.append(t)},{futureParentElement:i})):(i.html(a.template),void t(i.contents())(n))}}}],co=Si({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),ho=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,i,r){var o=e.attr(i.$attr.ngList)||", ",s="false"!==i.ngTrim,l=s?pr(o):o,u=function(t){if(!v(t)){var e=[];return t&&a(t.split(l),function(t){t&&e.push(s?pr(t):t)}),e}};r.$parsers.push(u),r.$formatters.push(function(t){return hr(t)?t.join(o):n}),r.$isEmpty=function(t){return!t||!t.length}}}},po="ng-valid",fo="ng-invalid",go="ng-pristine",mo="ng-dirty",vo="ng-untouched",yo="ng-touched",bo="ng-pending",xo=new i("ngModel"),wo=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,i,r,o,s,l,u,c,d){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=n,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=n,this.$name=d(i.name||"",!1)(t);var h,p=o(i.ngModel),g=p.assign,m=p,b=g,x=null,k=this;this.$$setOptions=function(t){if(k.$options=t,t&&t.getterSetter){var e=o(i.ngModel+"()"),n=o(i.ngModel+"($$$p)");m=function(t){var n=p(t);return $(n)&&(n=e(t)),n},b=function(t){$(p(t))?n(t,{$$$p:k.$modelValue}):g(t,k.$modelValue)}}else if(!p.assign)throw xo("nonassign","Expression '{0}' is non-assignable. Element: {1}",i.ngModel,B(r))},this.$render=f,this.$isEmpty=function(t){return v(t)||""===t||null===t||t!==t};var _=r.inheritedData("$formController")||Ia,C=0;Bi({ctrl:this,$element:r,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},parentForm:_,$animate:s}),this.$setPristine=function(){k.$dirty=!1,k.$pristine=!0,s.removeClass(r,mo),s.addClass(r,go)},this.$setDirty=function(){k.$dirty=!0,k.$pristine=!1,s.removeClass(r,go),s.addClass(r,mo),_.$setDirty()},this.$setUntouched=function(){k.$touched=!1,k.$untouched=!0,s.setClass(r,vo,yo)},this.$setTouched=function(){k.$touched=!0,k.$untouched=!1,s.setClass(r,yo,vo)},this.$rollbackViewValue=function(){l.cancel(x),k.$viewValue=k.$$lastCommittedViewValue,k.$render()},this.$validate=function(){if(!w(k.$modelValue)||!isNaN(k.$modelValue)){var t=k.$$lastCommittedViewValue,e=k.$$rawModelValue,i=k.$valid,r=k.$modelValue,a=k.$options&&k.$options.allowInvalid;k.$$runValidators(e,t,function(t){a||i===t||(k.$modelValue=t?e:n,k.$modelValue!==r&&k.$$writeModelToScope())})}},this.$$runValidators=function(t,e,i){function r(){var t=k.$$parserName||"parse";return h!==n?(h||(a(k.$validators,function(t,e){l(e,null)}),a(k.$asyncValidators,function(t,e){l(e,null)})),l(t,h),h):(l(t,null),!0)}function o(){var n=!0;return a(k.$validators,function(i,r){var a=i(t,e);n=n&&a,l(r,a)}),n?!0:(a(k.$asyncValidators,function(t,e){l(e,null)}),!1)}function s(){var i=[],r=!0;a(k.$asyncValidators,function(a,o){var s=a(t,e);if(!E(s))throw xo("$asyncValidators","Expected asynchronous validator to return a promise but got '{0}' instead.",s);l(o,n),i.push(s.then(function(){l(o,!0)},function(){r=!1,l(o,!1)}))}),i.length?c.all(i).then(function(){u(r)},f):u(!0)}function l(t,e){d===C&&k.$setValidity(t,e)}function u(t){d===C&&i(t)}C++;var d=C;return r()&&o()?void s():void u(!1)},this.$commitViewValue=function(){var t=k.$viewValue;l.cancel(x),(k.$$lastCommittedViewValue!==t||""===t&&k.$$hasNativeValidators)&&(k.$$lastCommittedViewValue=t,k.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function e(){k.$modelValue!==o&&k.$$writeModelToScope()}var i=k.$$lastCommittedViewValue,r=i;if(h=v(r)?n:!0)for(var a=0;a<k.$parsers.length;a++)if(r=k.$parsers[a](r),v(r)){h=!1;break}w(k.$modelValue)&&isNaN(k.$modelValue)&&(k.$modelValue=m(t));var o=k.$modelValue,s=k.$options&&k.$options.allowInvalid;k.$$rawModelValue=r,s&&(k.$modelValue=r,e()),k.$$runValidators(r,k.$$lastCommittedViewValue,function(t){s||(k.$modelValue=t?r:n,e())})},this.$$writeModelToScope=function(){b(t,k.$modelValue),a(k.$viewChangeListeners,function(t){try{t()}catch(n){e(n)}})},this.$setViewValue=function(t,e){k.$viewValue=t,(!k.$options||k.$options.updateOnDefault)&&k.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(e){var n,i=0,r=k.$options;r&&y(r.debounce)&&(n=r.debounce,w(n)?i=n:w(n[e])?i=n[e]:w(n["default"])&&(i=n["default"])),l.cancel(x),i?x=l(function(){k.$commitViewValue()},i):u.$$phase?k.$commitViewValue():t.$apply(function(){k.$commitViewValue()})},t.$watch(function(){var e=m(t);if(e!==k.$modelValue){k.$modelValue=k.$$rawModelValue=e,h=n;for(var i=k.$formatters,r=i.length,a=e;r--;)a=i[r](a);k.$viewValue!==a&&(k.$viewValue=k.$$lastCommittedViewValue=a,k.$render(),k.$$runValidators(e,a,f))}return e})}],ko=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:wo,priority:1,compile:function(e){return e.addClass(go).addClass(vo).addClass(po),{pre:function(t,e,n,i){var r=i[0],a=i[1]||Ia;r.$$setOptions(i[2]&&i[2].$options),a.$addControl(r),n.$observe("name",function(t){r.$name!==t&&a.$$renameControl(r,t)}),t.$on("$destroy",function(){a.$removeControl(r)})},post:function(e,n,i,r){var a=r[0];a.$options&&a.$options.updateOn&&n.on(a.$options.updateOn,function(t){a.$$debounceViewValueCommit(t&&t.type)}),n.on("blur",function(){a.$touched||(t.$$phase?e.$evalAsync(a.$setTouched):e.$apply(a.$setTouched))})}}}}}],$o=/(\s+|^)default(\s+|$)/,_o=function(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var i=this;this.$options=t.$eval(e.ngModelOptions),this.$options.updateOn!==n?(this.$options.updateOnDefault=!1,this.$options.updateOn=pr(this.$options.updateOn.replace($o,function(){return i.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},Co=Si({terminal:!0,priority:1e3}),Mo=["$locale","$interpolate",function(t,e){var n=/{}/g,i=/^when(Minus)?(.+)$/;return{restrict:"EA",link:function(r,o,s){function l(t){o.text(t||"")}var u,c=s.count,d=s.$attr.when&&o.attr(s.$attr.when),h=s.offset||0,p=r.$eval(d)||{},f={},g=e.startSymbol(),m=e.endSymbol(),v=g+c+"-"+h+m,y=ur.noop;a(s,function(t,e){var n=i.exec(e);if(n){var r=(n[1]?"-":"")+Ki(n[2]);p[r]=o.attr(s.$attr[e])}}),a(p,function(t,i){f[i]=e(t.replace(n,v))}),r.$watch(c,function(e){var n=parseFloat(e),i=isNaN(n);i||n in p||(n=t.pluralCat(n-h)),n===u||i&&isNaN(u)||(y(),y=r.$watch(f[n],l),u=n)})}}}],Do=["$parse","$animate",function(t,o){var s="$$NG_REMOVED",l=i("ngRepeat"),u=function(t,e,n,i,r,a,o){t[n]=i,r&&(t[r]=a),t.$index=e,t.$first=0===e,t.$last=e===o-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0===(1&e))},c=function(t){return t.clone[0]},d=function(t){return t.clone[t.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(i,h){var p=h.ngRepeat,f=e.createComment(" end ngRepeat: "+p+" "),g=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!g)throw l("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",p);var m=g[1],v=g[2],y=g[3],b=g[4];if(g=m.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!g)throw l("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",m);var x=g[3]||g[1],w=g[2];if(y&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(y)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(y)))throw l("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",y);var k,$,_,C,M={$id:Re};return b?k=t(b):(_=function(t,e){return Re(e)},C=function(t){return t}),function(t,e,i,h,g){k&&($=function(e,n,i){return w&&(M[w]=e),M[x]=n,M.$index=i,k(t,M)});var m=ue();t.$watchCollection(v,function(i){var h,v,b,k,M,D,S,A,T,E,I,P,N=e[0],O=ue();if(y&&(t[y]=i),r(i))T=i,A=$||_;else{A=$||C,T=[];for(var z in i)i.hasOwnProperty(z)&&"$"!=z.charAt(0)&&T.push(z);T.sort()}for(k=T.length,I=new Array(k),h=0;k>h;h++)if(M=i===T?h:T[h],D=i[M],S=A(M,D,h),m[S])E=m[S],delete m[S],O[S]=E,I[h]=E;else{if(O[S])throw a(I,function(t){t&&t.scope&&(m[t.id]=t)}),l("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",p,S,D);I[h]={id:S,scope:n,clone:n},O[S]=!0}for(var H in m){if(E=m[H],P=le(E.clone),o.leave(P),P[0].parentNode)for(h=0,v=P.length;v>h;h++)P[h][s]=!0;E.scope.$destroy()}for(h=0;k>h;h++)if(M=i===T?h:T[h],D=i[M],E=I[h],E.scope){b=N;do b=b.nextSibling;while(b&&b[s]);c(E)!=b&&o.move(le(E.clone),null,er(N)),N=d(E),u(E.scope,h,x,D,w,M,k)}else g(function(t,e){E.scope=e;var n=f.cloneNode(!1);t[t.length++]=n,o.enter(t,null,er(N)),N=n,E.clone=t,O[E.id]=E,u(E.scope,h,x,D,w,M,k)});m=O})}}}}],So="ng-hide",Ao="ng-hide-animate",To=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,i){e.$watch(i.ngShow,function(e){t[e?"removeClass":"addClass"](n,So,{tempClasses:Ao})})}}}],Eo=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,i){e.$watch(i.ngHide,function(e){t[e?"addClass":"removeClass"](n,So,{tempClasses:Ao})})}}}],Io=Si(function(t,e,n){t.$watchCollection(n.ngStyle,function(t,n){n&&t!==n&&a(n,function(t,n){e.css(n,"")}),t&&e.css(t)})}),Po=["$animate",function(t){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,r,o){var s=r.ngSwitch||r.on,l=[],u=[],c=[],d=[],h=function(t,e){return function(){t.splice(e,1)}};n.$watch(s,function(n){var i,r;for(i=0,r=c.length;r>i;++i)t.cancel(c[i]);for(c.length=0,i=0,r=d.length;r>i;++i){var s=le(u[i].clone);d[i].$destroy();var p=c[i]=t.leave(s);p.then(h(c,i))}u.length=0,d.length=0,(l=o.cases["!"+n]||o.cases["?"])&&a(l,function(n){n.transclude(function(i,r){d.push(r);var a=n.element;i[i.length++]=e.createComment(" end ngSwitchWhen: ");var o={clone:i};u.push(o),t.enter(i,a.parent(),a)})})})}}}],No=Si({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,i,r){i.cases["!"+n.ngSwitchWhen]=i.cases["!"+n.ngSwitchWhen]||[],i.cases["!"+n.ngSwitchWhen].push({transclude:r,element:e})}}),Oo=Si({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,i,r){i.cases["?"]=i.cases["?"]||[],i.cases["?"].push({transclude:r,element:e})}}),zo=Si({restrict:"EAC",link:function(t,e,n,r,a){if(!a)throw i("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",B(e));a(function(t){e.empty(),e.append(t)})}}),Ho=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){if("text/ng-template"==n.type){var i=n.id,r=e[0].text;t.put(i,r)}}}}],Lo=i("ngOptions"),Fo=m({restrict:"A",terminal:!0}),Ro=["$compile","$parse",function(t,i){var r=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,s={$setViewValue:f};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(t,e,n){var i,r,a=this,o={},l=s;a.databound=n.ngModel,a.init=function(t,e,n){l=t,i=e,r=n},a.addOption=function(e,n){oe(e,'"option value"'),o[e]=!0,l.$viewValue==e&&(t.val(e),r.parent()&&r.remove()),n&&n[0].hasAttribute("selected")&&(n[0].selected=!0)},a.removeOption=function(t){this.hasOption(t)&&(delete o[t],l.$viewValue===t&&this.renderUnknownOption(t))},a.renderUnknownOption=function(e){var n="? "+Re(e)+" ?";r.val(n),t.prepend(r),t.val(n),r.prop("selected",!0)},a.hasOption=function(t){return o.hasOwnProperty(t)},e.$on("$destroy",function(){a.renderUnknownOption=f})}],link:function(s,l,u,c){function d(t,e,n,i){n.$render=function(){var t=n.$viewValue;i.hasOption(t)?(C.parent()&&C.remove(),e.val(t),""===t&&f.prop("selected",!0)):v(t)&&f?e.val(""):i.renderUnknownOption(t)},e.on("change",function(){t.$apply(function(){C.parent()&&C.remove(),n.$setViewValue(e.val())})})}function h(t,e,n){var i;n.$render=function(){var t=new We(n.$viewValue);a(e.find("option"),function(e){e.selected=y(t.get(e.value))})},t.$watch(function(){L(i,n.$viewValue)||(i=H(n.$viewValue),n.$render())}),e.on("change",function(){t.$apply(function(){var t=[];a(e.find("option"),function(e){e.selected&&t.push(e.value)}),n.$setViewValue(t)})})}function p(e,s,l){function u(t,n,i){return L[D]=i,T&&(L[T]=n),t(e,L)}function c(){e.$apply(function(){var t,n=P(e)||[];if(b)t=[],a(s.val(),function(e){e=O?z[e]:e,t.push(d(e,n[e]))});else{var i=O?z[s.val()]:s.val();t=d(i,n[i])}l.$setViewValue(t),v()})}function d(t,e){if("?"===t)return n;if(""===t)return null;var i=A?A:I;return u(i,t,e)}function h(){var t,n=P(e);if(n&&hr(n)){t=new Array(n.length);for(var i=0,r=n.length;r>i;i++)t[i]=u(M,i,n[i]);return t}if(n){t={};for(var a in n)n.hasOwnProperty(a)&&(t[a]=u(M,a,n[a]))}return t}function p(t){var e;if(b)if(O&&hr(t)){e=new We([]);for(var n=0;n<t.length;n++)e.put(u(O,null,t[n]),!0)
}else e=new We(t);else O&&(t=u(O,null,t));return function(n,i){var r;return r=O?O:A?A:I,b?y(e.remove(u(r,n,i))):t===u(r,n,i)}}function f(){k||(e.$$postDigest(v),k=!0)}function m(t,e,n){t[e]=t[e]||0,t[e]+=n?1:-1}function v(){k=!1;var t,n,i,r,c,d,h,f,v,x,C,D,S,A,I,N,F,R={"":[]},W=[""],j=l.$viewValue,q=P(e)||[],V=T?o(q):q,B={},U=p(j),Y=!1;for(z={},D=0;x=V.length,x>D;D++)h=D,T&&(h=V[D],"$"===h.charAt(0))||(f=q[h],t=u(E,h,f)||"",(n=R[t])||(n=R[t]=[],W.push(t)),S=U(h,f),Y=Y||S,N=u(M,h,f),N=y(N)?N:"",F=O?O(e,L):T?V[D]:D,O&&(z[F]=h),n.push({id:F,label:N,selected:S}));for(b||(w||null===j?R[""].unshift({id:"",label:"",selected:!Y}):Y||R[""].unshift({id:"?",label:"",selected:!0})),C=0,v=W.length;v>C;C++){for(t=W[C],n=R[t],H.length<=C?(r={element:_.clone().attr("label",t),label:n.label},c=[r],H.push(c),s.append(r.element)):(c=H[C],r=c[0],r.label!=t&&r.element.attr("label",r.label=t)),A=null,D=0,x=n.length;x>D;D++)i=n[D],(d=c[D+1])?(A=d.element,d.label!==i.label&&(m(B,d.label,!1),m(B,i.label,!0),A.text(d.label=i.label),A.prop("label",d.label)),d.id!==i.id&&A.val(d.id=i.id),A[0].selected!==i.selected&&(A.prop("selected",d.selected=i.selected),tr&&A.prop("selected",d.selected))):(""===i.id&&w?I=w:(I=$.clone()).val(i.id).prop("selected",i.selected).attr("selected",i.selected).prop("label",i.label).text(i.label),c.push(d={element:I,label:i.label,id:i.id,selected:i.selected}),m(B,i.label,!0),A?A.after(I):r.element.append(I),A=I);for(D++;c.length>D;)i=c.pop(),m(B,i.label,!1),i.element.remove()}for(;H.length>C;){for(n=H.pop(),D=1;D<n.length;++D)m(B,n[D].label,!1);n[0].element.remove()}a(B,function(t,e){t>0?g.addOption(e):0>t&&g.removeOption(e)})}var C;if(!(C=x.match(r)))throw Lo("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",x,B(s));var M=i(C[2]||C[1]),D=C[4]||C[6],S=/ as /.test(C[0])&&C[1],A=S?i(S):null,T=C[5],E=i(C[3]||""),I=i(C[2]?C[1]:D),P=i(C[7]),N=C[8],O=N?i(C[8]):null,z={},H=[[{element:s,label:""}]],L={};w&&(t(w)(e),w.removeClass("ng-scope"),w.remove()),s.empty(),s.on("change",c),l.$render=v,e.$watchCollection(P,f),e.$watchCollection(h,f),b&&e.$watchCollection(function(){return l.$modelValue},f)}if(c[1]){for(var f,g=c[0],m=c[1],b=u.multiple,x=u.ngOptions,w=!1,k=!1,$=er(e.createElement("option")),_=er(e.createElement("optgroup")),C=$.clone(),M=0,D=l.children(),S=D.length;S>M;M++)if(""===D[M].value){f=w=D.eq(M);break}g.init(m,w,C),b&&(m.$isEmpty=function(t){return!t||0===t.length}),x?p(s,l,m):b?h(s,l,m):d(s,l,m,g)}}}}],Wo=["$interpolate",function(t){var e={addOption:f,removeOption:f};return{restrict:"E",priority:100,compile:function(n,i){if(v(i.value)){var r=t(n.text(),!0);r||i.$set("value",n.text())}return function(t,n,i){var a="$selectController",o=n.parent(),s=o.data(a)||o.parent().data(a);s&&s.databound||(s=e),r?t.$watch(r,function(t,e){i.$set("value",t),e!==t&&s.removeOption(e),s.addOption(t,n)}):s.addOption(i.value,n),n.on("$destroy",function(){s.removeOption(i.value)})}}}}],jo=m({restrict:"E",terminal:!1}),qo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){i&&(n.required=!0,i.$validators.required=function(t,e){return!n.required||!i.$isEmpty(e)},n.$observe("required",function(){i.$validate()}))}}},Vo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,r,a){if(a){var o,s=r.ngPattern||r.pattern;r.$observe("pattern",function(t){if(x(t)&&t.length>0&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw i("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",s,t,B(e));o=t||n,a.$validate()}),a.$validators.pattern=function(t){return a.$isEmpty(t)||v(o)||o.test(t)}}}}},Bo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){if(i){var r=-1;n.$observe("maxlength",function(t){var e=h(t);r=isNaN(e)?-1:e,i.$validate()}),i.$validators.maxlength=function(t,e){return 0>r||i.$isEmpty(e)||e.length<=r}}}}},Uo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){if(i){var r=0;n.$observe("minlength",function(t){r=h(t)||0,i.$validate()}),i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=r}}}}};return t.angular.bootstrap?void console.log("WARNING: Tried to load angular more than once."):(ie(),pe(ur),void er(e).ready(function(){Q(e,J)}))}(window,document),!window.angular.$$csp()&&window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}</style>'),/**! 
 * @license angular-flash v0.1.14
 * Copyright (c) 2013 William L. Bunselmeyer. https://github.com/wmluke/angular-flash
 * License: MIT
 */
function(){"use strict";var t=0,e=function(n){function i(t,e){angular.forEach(u.subscribers,function(n){var i=!n.type||n.type===t,r=!u.id&&!n.id||n.id===u.id;i&&r&&n.cb(e,t)})}var r,a,o,s,l,u=angular.extend({id:null,subscribers:{},classnames:{error:[],warn:[],info:[],success:[]}},n),c=this;this.clean=function(){r=null,a=null,o=null,s=null,l=null},this.subscribe=function(e,n,i){return t+=1,u.subscribers[t]={cb:e,type:n,id:i},t},this.unsubscribe=function(t){delete u.subscribers[t]},this.to=function(t){var n=angular.copy(u);return n.id=t,new e(n)},Object.defineProperty(this,"success",{get:function(){return r},set:function(t){r=t,l="success",i(l,t)}}),Object.defineProperty(this,"info",{get:function(){return a},set:function(t){a=t,l="info",i(l,t)}}),Object.defineProperty(this,"warn",{get:function(){return o},set:function(t){o=t,l="warn",i(l,t)}}),Object.defineProperty(this,"error",{get:function(){return s},set:function(t){s=t,l="error",i(l,t)}}),Object.defineProperty(this,"type",{get:function(){return l}}),Object.defineProperty(this,"message",{get:function(){return l?c[l]:null}}),Object.defineProperty(this,"classnames",{get:function(){return u.classnames}}),Object.defineProperty(this,"id",{get:function(){return u.id}})};angular.module("angular-flash.service",[]).provider("flash",function(){var t=this;this.errorClassnames=["alert-error"],this.warnClassnames=["alert-warn"],this.infoClassnames=["alert-info"],this.successClassnames=["alert-success"],this.$get=function(){return new e({classnames:{error:t.errorClassnames,warn:t.warnClassnames,info:t.infoClassnames,success:t.successClassnames}})}})}(),function(){"use strict";function t(t){return(null===t||void 0===t)&&(t=""),/^\s*$/.test(t)}function e(e,n){return{scope:!0,link:function(i,r,a){function o(){var t=[].concat(e.classnames.error,e.classnames.warn,e.classnames.info,e.classnames.success);angular.forEach(t,function(t){r.removeClass(t)})}function s(s,u){if(l&&n.cancel(l),i.flash.type=u,i.flash.message=s,o(),angular.forEach(e.classnames[u],function(t){r.addClass(t)}),t(a.activeClass)||r.addClass(a.activeClass),!s)return void i.hide();var c=Number(a.duration||5e3);c>0&&(l=n(i.hide,c))}var l,u;i.flash={},i.hide=function(){o(),t(a.activeClass)||r.removeClass(a.activeClass)},i.$on("$destroy",function(){e.clean(),e.unsubscribe(u)}),u=e.subscribe(s,a.flashAlert,a.id),a.flashAlert&&e[a.flashAlert]&&s(e[a.flashAlert],a.flashAlert),!a.flashAlert&&e.message&&s(e.message,e.type)}}}angular.module("angular-flash.flash-alert-directive",["angular-flash.service"]).directive("flashAlert",["flash","$timeout",e])}(),!function(){function t(t,e){return e>t?-1:t>e?1:t>=e?0:0/0}function e(t){return null===t?0/0:+t}function n(t){return!isNaN(t)}function i(t){return{left:function(e,n,i,r){for(arguments.length<3&&(i=0),arguments.length<4&&(r=e.length);r>i;){var a=i+r>>>1;t(e[a],n)<0?i=a+1:r=a}return i},right:function(e,n,i,r){for(arguments.length<3&&(i=0),arguments.length<4&&(r=e.length);r>i;){var a=i+r>>>1;t(e[a],n)>0?r=a:i=a+1}return i}}}function r(t){return t.length}function a(t){for(var e=1;t*e%1;)e*=10;return e}function o(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function s(){this._=Object.create(null)}function l(t){return(t+="")===cs||t[0]===ds?ds+t:t}function u(t){return(t+="")[0]===ds?t.slice(1):t}function c(t){return l(t)in this._}function d(t){return(t=l(t))in this._&&delete this._[t]}function h(){var t=[];for(var e in this._)t.push(u(e));return t}function p(){var t=0;for(var e in this._)++t;return t}function f(){for(var t in this._)return!1;return!0}function g(){this._=Object.create(null)}function m(t,e,n){return function(){var i=n.apply(e,arguments);return i===e?t:i}}function v(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0,i=hs.length;i>n;++n){var r=hs[n]+e;if(r in t)return r}}function y(){}function b(){}function x(t){function e(){for(var e,i=n,r=-1,a=i.length;++r<a;)(e=i[r].on)&&e.apply(this,arguments);return t}var n=[],i=new s;return e.on=function(e,r){var a,o=i.get(e);return arguments.length<2?o&&o.on:(o&&(o.on=null,n=n.slice(0,a=n.indexOf(o)).concat(n.slice(a+1)),i.remove(e)),r&&n.push(i.set(e,{on:r})),t)},e}function w(){Ko.event.preventDefault()}function k(){for(var t,e=Ko.event;t=e.sourceEvent;)e=t;return e}function $(t){for(var e=new b,n=0,i=arguments.length;++n<i;)e[arguments[n]]=x(e);return e.of=function(n,i){return function(r){try{var a=r.sourceEvent=Ko.event;r.target=t,Ko.event=r,e[r.type].apply(n,i)}finally{Ko.event=a}}},e}function _(t){return fs(t,bs),t}function C(t){return"function"==typeof t?t:function(){return gs(t,this)}}function M(t){return"function"==typeof t?t:function(){return ms(t,this)}}function D(t,e){function n(){this.removeAttribute(t)}function i(){this.removeAttributeNS(t.space,t.local)}function r(){this.setAttribute(t,e)}function a(){this.setAttributeNS(t.space,t.local,e)}function o(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}function s(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}return t=Ko.ns.qualify(t),null==e?t.local?i:n:"function"==typeof e?t.local?s:o:t.local?a:r}function S(t){return t.trim().replace(/\s+/g," ")}function A(t){return new RegExp("(?:^|\\s+)"+Ko.requote(t)+"(?:\\s+|$)","g")}function T(t){return(t+"").trim().split(/^|\s+/)}function E(t,e){function n(){for(var n=-1;++n<r;)t[n](this,e)}function i(){for(var n=-1,i=e.apply(this,arguments);++n<r;)t[n](this,i)}t=T(t).map(I);var r=t.length;return"function"==typeof e?i:n}function I(t){var e=A(t);return function(n,i){if(r=n.classList)return i?r.add(t):r.remove(t);var r=n.getAttribute("class")||"";i?(e.lastIndex=0,e.test(r)||n.setAttribute("class",S(r+" "+t))):n.setAttribute("class",S(r.replace(e," ")))}}function P(t,e,n){function i(){this.style.removeProperty(t)}function r(){this.style.setProperty(t,e,n)}function a(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}return null==e?i:"function"==typeof e?a:r}function N(t,e){function n(){delete this[t]}function i(){this[t]=e}function r(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}return null==e?n:"function"==typeof e?r:i}function O(t){return"function"==typeof t?t:(t=Ko.ns.qualify(t)).local?function(){return this.ownerDocument.createElementNS(t.space,t.local)}:function(){return this.ownerDocument.createElementNS(this.namespaceURI,t)}}function z(t){return{__data__:t}}function H(t){return function(){return ys(this,t)}}function L(e){return arguments.length||(e=t),function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}function F(t,e){for(var n=0,i=t.length;i>n;n++)for(var r,a=t[n],o=0,s=a.length;s>o;o++)(r=a[o])&&e(r,o,n);return t}function R(t){return fs(t,ws),t}function W(t){var e,n;return function(i,r,a){var o,s=t[a].update,l=s.length;for(a!=n&&(n=a,e=0),r>=e&&(e=r+1);!(o=s[e])&&++e<l;);return o}}function j(){var t=this.__transition__;t&&++t.active}function q(t,e,n){function i(){var e=this[o];e&&(this.removeEventListener(t,e,e.$),delete this[o])}function r(){var r=l(e,Zo(arguments));i.call(this),this.addEventListener(t,this[o]=r,r.$=n),r._=e}function a(){var e,n=new RegExp("^__on([^.]+)"+Ko.requote(t)+"$");for(var i in this)if(e=i.match(n)){var r=this[i];this.removeEventListener(e[1],r,r.$),delete this[i]}}var o="__on"+t,s=t.indexOf("."),l=V;s>0&&(t=t.slice(0,s));var u=$s.get(t);return u&&(t=u,l=B),s?e?r:i:e?y:a}function V(t,e){return function(n){var i=Ko.event;Ko.event=n,e[0]=this.__data__;try{t.apply(this,e)}finally{Ko.event=i}}}function B(t,e){var n=V(t,e);return function(t){var e=this,i=t.relatedTarget;i&&(i===e||8&i.compareDocumentPosition(e))||n.call(e,t)}}function U(){var t=".dragsuppress-"+ ++Cs,e="click"+t,n=Ko.select(ts).on("touchmove"+t,w).on("dragstart"+t,w).on("selectstart"+t,w);if(_s){var i=Jo.style,r=i[_s];i[_s]="none"}return function(a){function o(){n.on(e,null)}n.on(t,null),_s&&(i[_s]=r),a&&(n.on(e,function(){w(),o()},!0),setTimeout(o,0))}}function Y(t,e){e.changedTouches&&(e=e.changedTouches[0]);var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();if(0>Ms&&(ts.scrollX||ts.scrollY)){n=Ko.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var r=n[0][0].getScreenCTM();Ms=!(r.f||r.e),n.remove()}return Ms?(i.x=e.pageX,i.y=e.pageY):(i.x=e.clientX,i.y=e.clientY),i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}var a=t.getBoundingClientRect();return[e.clientX-a.left-t.clientLeft,e.clientY-a.top-t.clientTop]}function X(){return Ko.event.changedTouches[0].identifier}function K(){return Ko.event.target}function G(){return ts}function Z(t){return t>0?1:0>t?-1:0}function Q(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function J(t){return t>1?0:-1>t?Ds:Math.acos(t)}function te(t){return t>1?As:-1>t?-As:Math.asin(t)}function ee(t){return((t=Math.exp(t))-1/t)/2}function ne(t){return((t=Math.exp(t))+1/t)/2}function ie(t){return((t=Math.exp(2*t))-1)/(t+1)}function re(t){return(t=Math.sin(t/2))*t}function ae(){}function oe(t,e,n){return this instanceof oe?(this.h=+t,this.s=+e,void(this.l=+n)):arguments.length<2?t instanceof oe?new oe(t.h,t.s,t.l):xe(""+t,we,oe):new oe(t,e,n)}function se(t,e,n){function i(t){return t>360?t-=360:0>t&&(t+=360),60>t?a+(o-a)*t/60:180>t?o:240>t?a+(o-a)*(240-t)/60:a}function r(t){return Math.round(255*i(t))}var a,o;return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:0>e?0:e>1?1:e,n=0>n?0:n>1?1:n,o=.5>=n?n*(1+e):n+e-n*e,a=2*n-o,new me(r(t+120),r(t),r(t-120))}function le(t,e,n){return this instanceof le?(this.h=+t,this.c=+e,void(this.l=+n)):arguments.length<2?t instanceof le?new le(t.h,t.c,t.l):t instanceof ce?he(t.l,t.a,t.b):he((t=ke((t=Ko.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new le(t,e,n)}function ue(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new ce(n,Math.cos(t*=Is)*e,Math.sin(t)*e)}function ce(t,e,n){return this instanceof ce?(this.l=+t,this.a=+e,void(this.b=+n)):arguments.length<2?t instanceof ce?new ce(t.l,t.a,t.b):t instanceof le?ue(t.h,t.c,t.l):ke((t=me(t)).r,t.g,t.b):new ce(t,e,n)}function de(t,e,n){var i=(t+16)/116,r=i+e/500,a=i-n/200;return r=pe(r)*qs,i=pe(i)*Vs,a=pe(a)*Bs,new me(ge(3.2404542*r-1.5371385*i-.4985314*a),ge(-.969266*r+1.8760108*i+.041556*a),ge(.0556434*r-.2040259*i+1.0572252*a))}function he(t,e,n){return t>0?new le(Math.atan2(n,e)*Ps,Math.sqrt(e*e+n*n),t):new le(0/0,0/0,t)}function pe(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function fe(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function ge(t){return Math.round(255*(.00304>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function me(t,e,n){return this instanceof me?(this.r=~~t,this.g=~~e,void(this.b=~~n)):arguments.length<2?t instanceof me?new me(t.r,t.g,t.b):xe(""+t,me,se):new me(t,e,n)}function ve(t){return new me(t>>16,t>>8&255,255&t)}function ye(t){return ve(t)+""}function be(t){return 16>t?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function xe(t,e,n){var i,r,a,o=0,s=0,l=0;if(i=/([a-z]+)\((.*)\)/i.exec(t))switch(r=i[2].split(","),i[1]){case"hsl":return n(parseFloat(r[0]),parseFloat(r[1])/100,parseFloat(r[2])/100);case"rgb":return e(_e(r[0]),_e(r[1]),_e(r[2]))}return(a=Xs.get(t))?e(a.r,a.g,a.b):(null==t||"#"!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&a)>>4,o=o>>4|o,s=240&a,s=s>>4|s,l=15&a,l=l<<4|l):7===t.length&&(o=(16711680&a)>>16,s=(65280&a)>>8,l=255&a)),e(o,s,l))}function we(t,e,n){var i,r,a=Math.min(t/=255,e/=255,n/=255),o=Math.max(t,e,n),s=o-a,l=(o+a)/2;return s?(r=.5>l?s/(o+a):s/(2-o-a),i=t==o?(e-n)/s+(n>e?6:0):e==o?(n-t)/s+2:(t-e)/s+4,i*=60):(i=0/0,r=l>0&&1>l?0:i),new oe(i,r,l)}function ke(t,e,n){t=$e(t),e=$e(e),n=$e(n);var i=fe((.4124564*t+.3575761*e+.1804375*n)/qs),r=fe((.2126729*t+.7151522*e+.072175*n)/Vs),a=fe((.0193339*t+.119192*e+.9503041*n)/Bs);return ce(116*r-16,500*(i-r),200*(r-a))}function $e(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function _e(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}function Ce(t){return"function"==typeof t?t:function(){return t}}function Me(t){return t}function De(t){return function(e,n,i){return 2===arguments.length&&"function"==typeof n&&(i=n,n=null),Se(e,n,t,i)}}function Se(t,e,n,i){function r(){var t,e=l.status;if(!e&&Te(l)||e>=200&&300>e||304===e){try{t=n.call(a,l)}catch(i){return void o.error.call(a,i)}o.load.call(a,t)}else o.error.call(a,l)}var a={},o=Ko.dispatch("beforesend","progress","load","error"),s={},l=new XMLHttpRequest,u=null;return!ts.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(t)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=r:l.onreadystatechange=function(){l.readyState>3&&r()},l.onprogress=function(t){var e=Ko.event;Ko.event=t;try{o.progress.call(a,l)}finally{Ko.event=e}},a.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?s[t]:(null==e?delete s[t]:s[t]=e+"",a)},a.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",a):e},a.responseType=function(t){return arguments.length?(u=t,a):u},a.response=function(t){return n=t,a},["get","post"].forEach(function(t){a[t]=function(){return a.send.apply(a,[t].concat(Zo(arguments)))}}),a.send=function(n,i,r){if(2===arguments.length&&"function"==typeof i&&(r=i,i=null),l.open(n,t,!0),null==e||"accept"in s||(s.accept=e+",*/*"),l.setRequestHeader)for(var c in s)l.setRequestHeader(c,s[c]);return null!=e&&l.overrideMimeType&&l.overrideMimeType(e),null!=u&&(l.responseType=u),null!=r&&a.on("error",r).on("load",function(t){r(null,t)}),o.beforesend.call(a,l),l.send(null==i?null:i),a},a.abort=function(){return l.abort(),a},Ko.rebind(a,o,"on"),null==i?a:a.get(Ae(i))}function Ae(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}function Te(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}function Ee(){var t=Ie(),e=Pe()-t;e>24?(isFinite(e)&&(clearTimeout(Qs),Qs=setTimeout(Ee,e)),Zs=0):(Zs=1,tl(Ee))}function Ie(){var t=Date.now();for(Js=Ks;Js;)t>=Js.t&&(Js.f=Js.c(t-Js.t)),Js=Js.n;return t}function Pe(){for(var t,e=Ks,n=1/0;e;)e.f?e=t?t.n=e.n:Ks=e.n:(e.t<n&&(n=e.t),e=(t=e).n);return Gs=t,n}function Ne(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function Oe(t,e){var n=Math.pow(10,3*us(8-e));return{scale:e>8?function(t){return t/n}:function(t){return t*n},symbol:t}}function ze(t){var e=t.decimal,n=t.thousands,i=t.grouping,r=t.currency,a=i&&n?function(t,e){for(var r=t.length,a=[],o=0,s=i[0],l=0;r>0&&s>0&&(l+s+1>e&&(s=Math.max(1,e-l)),a.push(t.substring(r-=s,r+s)),!((l+=s+1)>e));)s=i[o=(o+1)%i.length];return a.reverse().join(n)}:Me;return function(t){var n=nl.exec(t),i=n[1]||" ",o=n[2]||">",s=n[3]||"-",l=n[4]||"",u=n[5],c=+n[6],d=n[7],h=n[8],p=n[9],f=1,g="",m="",v=!1,y=!0;switch(h&&(h=+h.substring(1)),(u||"0"===i&&"="===o)&&(u=i="0",o="="),p){case"n":d=!0,p="g";break;case"%":f=100,m="%",p="f";break;case"p":f=100,m="%",p="r";break;case"b":case"o":case"x":case"X":"#"===l&&(g="0"+p.toLowerCase());case"c":y=!1;case"d":v=!0,h=0;break;case"s":f=-1,p="r"}"$"===l&&(g=r[0],m=r[1]),"r"!=p||h||(p="g"),null!=h&&("g"==p?h=Math.max(1,Math.min(21,h)):("e"==p||"f"==p)&&(h=Math.max(0,Math.min(20,h)))),p=il.get(p)||He;var b=u&&d;return function(t){var n=m;if(v&&t%1)return"";var r=0>t||0===t&&0>1/t?(t=-t,"-"):"-"===s?"":s;if(0>f){var l=Ko.formatPrefix(t,h);t=l.scale(t),n=l.symbol+m}else t*=f;t=p(t,h);var x,w,k=t.lastIndexOf(".");if(0>k){var $=y?t.lastIndexOf("e"):-1;0>$?(x=t,w=""):(x=t.substring(0,$),w=t.substring($))}else x=t.substring(0,k),w=e+t.substring(k+1);!u&&d&&(x=a(x,1/0));var _=g.length+x.length+w.length+(b?0:r.length),C=c>_?new Array(_=c-_+1).join(i):"";return b&&(x=a(C+x,C.length?c-w.length:1/0)),r+=g,t=x+w,("<"===o?r+t+C:">"===o?C+r+t:"^"===o?C.substring(0,_>>=1)+r+t+C.substring(_):r+(b?t:C+t))+n}}}function He(t){return t+""}function Le(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Fe(t,e,n){function i(e){var n=t(e),i=a(n,1);return i-e>e-n?n:i}function r(n){return e(n=t(new al(n-1)),1),n}function a(t,n){return e(t=new al(+t),n),t}function o(t,i,a){var o=r(t),s=[];if(a>1)for(;i>o;)n(o)%a||s.push(new Date(+o)),e(o,1);else for(;i>o;)s.push(new Date(+o)),e(o,1);return s}function s(t,e,n){try{al=Le;var i=new Le;return i._=t,o(i,e,n)}finally{al=Date}}t.floor=t,t.round=i,t.ceil=r,t.offset=a,t.range=o;var l=t.utc=Re(t);return l.floor=l,l.round=Re(i),l.ceil=Re(r),l.offset=Re(a),l.range=s,t}function Re(t){return function(e,n){try{al=Le;var i=new Le;return i._=e,t(i,n)._}finally{al=Date}}}function We(t){function e(t){function e(e){for(var n,r,a,o=[],s=-1,l=0;++s<i;)37===t.charCodeAt(s)&&(o.push(t.slice(l,s)),null!=(r=sl[n=t.charAt(++s)])&&(n=t.charAt(++s)),(a=S[n])&&(n=a(e,null==r?"e"===n?" ":"0":r)),o.push(n),l=s+1);return o.push(t.slice(l,s)),o.join("")}var i=t.length;return e.parse=function(e){var i={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},r=n(i,t,e,0);if(r!=e.length)return null;"p"in i&&(i.H=i.H%12+12*i.p);var a=null!=i.Z&&al!==Le,o=new(a?Le:al);return"j"in i?o.setFullYear(i.y,0,i.j):"w"in i&&("W"in i||"U"in i)?(o.setFullYear(i.y,0,1),o.setFullYear(i.y,0,"W"in i?(i.w+6)%7+7*i.W-(o.getDay()+5)%7:i.w+7*i.U-(o.getDay()+6)%7)):o.setFullYear(i.y,i.m,i.d),o.setHours(i.H+(i.Z/100|0),i.M+i.Z%100,i.S,i.L),a?o._:o},e.toString=function(){return t},e}function n(t,e,n,i){for(var r,a,o,s=0,l=e.length,u=n.length;l>s;){if(i>=u)return-1;if(r=e.charCodeAt(s++),37===r){if(o=e.charAt(s++),a=A[o in sl?e.charAt(s++):o],!a||(i=a(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}function i(t,e,n){k.lastIndex=0;var i=k.exec(e.slice(n));return i?(t.w=$.get(i[0].toLowerCase()),n+i[0].length):-1}function r(t,e,n){x.lastIndex=0;var i=x.exec(e.slice(n));return i?(t.w=w.get(i[0].toLowerCase()),n+i[0].length):-1}function a(t,e,n){M.lastIndex=0;var i=M.exec(e.slice(n));return i?(t.m=D.get(i[0].toLowerCase()),n+i[0].length):-1}function o(t,e,n){_.lastIndex=0;var i=_.exec(e.slice(n));return i?(t.m=C.get(i[0].toLowerCase()),n+i[0].length):-1}function s(t,e,i){return n(t,S.c.toString(),e,i)}function l(t,e,i){return n(t,S.x.toString(),e,i)}function u(t,e,i){return n(t,S.X.toString(),e,i)}function c(t,e,n){var i=b.get(e.slice(n,n+=2).toLowerCase());return null==i?-1:(t.p=i,n)}var d=t.dateTime,h=t.date,p=t.time,f=t.periods,g=t.days,m=t.shortDays,v=t.months,y=t.shortMonths;e.utc=function(t){function n(t){try{al=Le;var e=new al;return e._=t,i(e)}finally{al=Date}}var i=e(t);return n.parse=function(t){try{al=Le;var e=i.parse(t);return e&&e._}finally{al=Date}},n.toString=i.toString,n},e.multi=e.utc.multi=ln;var b=Ko.map(),x=qe(g),w=Ve(g),k=qe(m),$=Ve(m),_=qe(v),C=Ve(v),M=qe(y),D=Ve(y);f.forEach(function(t,e){b.set(t.toLowerCase(),e)});var S={a:function(t){return m[t.getDay()]},A:function(t){return g[t.getDay()]},b:function(t){return y[t.getMonth()]},B:function(t){return v[t.getMonth()]},c:e(d),d:function(t,e){return je(t.getDate(),e,2)},e:function(t,e){return je(t.getDate(),e,2)},H:function(t,e){return je(t.getHours(),e,2)},I:function(t,e){return je(t.getHours()%12||12,e,2)},j:function(t,e){return je(1+rl.dayOfYear(t),e,3)},L:function(t,e){return je(t.getMilliseconds(),e,3)},m:function(t,e){return je(t.getMonth()+1,e,2)},M:function(t,e){return je(t.getMinutes(),e,2)},p:function(t){return f[+(t.getHours()>=12)]},S:function(t,e){return je(t.getSeconds(),e,2)},U:function(t,e){return je(rl.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return je(rl.mondayOfYear(t),e,2)},x:e(h),X:e(p),y:function(t,e){return je(t.getFullYear()%100,e,2)},Y:function(t,e){return je(t.getFullYear()%1e4,e,4)},Z:on,"%":function(){return"%"}},A={a:i,A:r,b:a,B:o,c:s,d:Je,e:Je,H:en,I:en,j:tn,L:an,m:Qe,M:nn,p:c,S:rn,U:Ue,w:Be,W:Ye,x:l,X:u,y:Ke,Y:Xe,Z:Ge,"%":sn};return e}function je(t,e,n){var i=0>t?"-":"",r=(i?-t:t)+"",a=r.length;return i+(n>a?new Array(n-a+1).join(e)+r:r)}function qe(t){return new RegExp("^(?:"+t.map(Ko.requote).join("|")+")","i")}function Ve(t){for(var e=new s,n=-1,i=t.length;++n<i;)e.set(t[n].toLowerCase(),n);return e}function Be(t,e,n){ll.lastIndex=0;var i=ll.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function Ue(t,e,n){ll.lastIndex=0;var i=ll.exec(e.slice(n));return i?(t.U=+i[0],n+i[0].length):-1}function Ye(t,e,n){ll.lastIndex=0;var i=ll.exec(e.slice(n));return i?(t.W=+i[0],n+i[0].length):-1}function Xe(t,e,n){ll.lastIndex=0;var i=ll.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function Ke(t,e,n){ll.lastIndex=0;var i=ll.exec(e.slice(n,n+2));return i?(t.y=Ze(+i[0]),n+i[0].length):-1}function Ge(t,e,n){return/^[+-]\d{4}$/.test(e=e.slice(n,n+5))?(t.Z=-e,n+5):-1}function Ze(t){return t+(t>68?1900:2e3)}function Qe(t,e,n){ll.lastIndex=0;var i=ll.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function Je(t,e,n){ll.lastIndex=0;var i=ll.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function tn(t,e,n){ll.lastIndex=0;var i=ll.exec(e.slice(n,n+3));return i?(t.j=+i[0],n+i[0].length):-1}function en(t,e,n){ll.lastIndex=0;var i=ll.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function nn(t,e,n){ll.lastIndex=0;var i=ll.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function rn(t,e,n){ll.lastIndex=0;var i=ll.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function an(t,e,n){ll.lastIndex=0;var i=ll.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function on(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",i=us(e)/60|0,r=us(e)%60;return n+je(i,"0",2)+je(r,"0",2)}function sn(t,e,n){ul.lastIndex=0;var i=ul.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function ln(t){for(var e=t.length,n=-1;++n<e;)t[n][0]=this(t[n][0]);return function(e){for(var n=0,i=t[n];!i[1](e);)i=t[++n];return i[0](e)}}function un(){}function cn(t,e,n){var i=n.s=t+e,r=i-t,a=i-r;n.t=t-a+(e-r)}function dn(t,e){t&&pl.hasOwnProperty(t.type)&&pl[t.type](t,e)}function hn(t,e,n){var i,r=-1,a=t.length-n;for(e.lineStart();++r<a;)i=t[r],e.point(i[0],i[1],i[2]);e.lineEnd()}function pn(t,e){var n=-1,i=t.length;for(e.polygonStart();++n<i;)hn(t[n],e,1);e.polygonEnd()}function fn(){function t(t,e){t*=Is,e=e*Is/2+Ds/4;var n=t-i,o=n>=0?1:-1,s=o*n,l=Math.cos(e),u=Math.sin(e),c=a*u,d=r*l+c*Math.cos(s),h=c*o*Math.sin(s);gl.add(Math.atan2(h,d)),i=t,r=l,a=u}var e,n,i,r,a;ml.point=function(o,s){ml.point=t,i=(e=o)*Is,r=Math.cos(s=(n=s)*Is/2+Ds/4),a=Math.sin(s)},ml.lineEnd=function(){t(e,n)}}function gn(t){var e=t[0],n=t[1],i=Math.cos(n);return[i*Math.cos(e),i*Math.sin(e),Math.sin(n)]}function mn(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function vn(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function yn(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function bn(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function xn(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function wn(t){return[Math.atan2(t[1],t[0]),te(t[2])]}function kn(t,e){return us(t[0]-e[0])<Ts&&us(t[1]-e[1])<Ts}function $n(t,e){t*=Is;var n=Math.cos(e*=Is);_n(n*Math.cos(t),n*Math.sin(t),Math.sin(e))}function _n(t,e,n){++vl,bl+=(t-bl)/vl,xl+=(e-xl)/vl,wl+=(n-wl)/vl}function Cn(){function t(t,r){t*=Is;var a=Math.cos(r*=Is),o=a*Math.cos(t),s=a*Math.sin(t),l=Math.sin(r),u=Math.atan2(Math.sqrt((u=n*l-i*s)*u+(u=i*o-e*l)*u+(u=e*s-n*o)*u),e*o+n*s+i*l);yl+=u,kl+=u*(e+(e=o)),$l+=u*(n+(n=s)),_l+=u*(i+(i=l)),_n(e,n,i)}var e,n,i;Sl.point=function(r,a){r*=Is;var o=Math.cos(a*=Is);e=o*Math.cos(r),n=o*Math.sin(r),i=Math.sin(a),Sl.point=t,_n(e,n,i)}}function Mn(){Sl.point=$n}function Dn(){function t(t,e){t*=Is;var n=Math.cos(e*=Is),o=n*Math.cos(t),s=n*Math.sin(t),l=Math.sin(e),u=r*l-a*s,c=a*o-i*l,d=i*s-r*o,h=Math.sqrt(u*u+c*c+d*d),p=i*o+r*s+a*l,f=h&&-J(p)/h,g=Math.atan2(h,p);Cl+=f*u,Ml+=f*c,Dl+=f*d,yl+=g,kl+=g*(i+(i=o)),$l+=g*(r+(r=s)),_l+=g*(a+(a=l)),_n(i,r,a)}var e,n,i,r,a;Sl.point=function(o,s){e=o,n=s,Sl.point=t,o*=Is;var l=Math.cos(s*=Is);i=l*Math.cos(o),r=l*Math.sin(o),a=Math.sin(s),_n(i,r,a)},Sl.lineEnd=function(){t(e,n),Sl.lineEnd=Mn,Sl.point=$n}}function Sn(){return!0}function An(t,e,n,i,r){var a=[],o=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n=t[0],i=t[e];if(kn(n,i)){r.lineStart();for(var s=0;e>s;++s)r.point((n=t[s])[0],n[1]);return void r.lineEnd()}var l=new En(n,t,null,!0),u=new En(n,null,l,!1);l.o=u,a.push(l),o.push(u),l=new En(i,t,null,!1),u=new En(i,null,l,!0),l.o=u,a.push(l),o.push(u)}}),o.sort(e),Tn(a),Tn(o),a.length){for(var s=0,l=n,u=o.length;u>s;++s)o[s].e=l=!l;for(var c,d,h=a[0];;){for(var p=h,f=!0;p.v;)if((p=p.n)===h)return;c=p.z,r.lineStart();do{if(p.v=p.o.v=!0,p.e){if(f)for(var s=0,u=c.length;u>s;++s)r.point((d=c[s])[0],d[1]);else i(p.x,p.n.x,1,r);p=p.n}else{if(f){c=p.p.z;for(var s=c.length-1;s>=0;--s)r.point((d=c[s])[0],d[1])}else i(p.x,p.p.x,-1,r);p=p.p}p=p.o,c=p.z,f=!f}while(!p.v);r.lineEnd()}}}function Tn(t){if(e=t.length){for(var e,n,i=0,r=t[0];++i<e;)r.n=n=t[i],n.p=r,r=n;r.n=n=t[0],n.p=r}}function En(t,e,n,i){this.x=t,this.z=e,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}function In(t,e,n,i){return function(r,a){function o(e,n){var i=r(e,n);t(e=i[0],n=i[1])&&a.point(e,n)}function s(t,e){var n=r(t,e);m.point(n[0],n[1])}function l(){y.point=s,m.lineStart()}function u(){y.point=o,m.lineEnd()}function c(t,e){g.push([t,e]);var n=r(t,e);x.point(n[0],n[1])}function d(){x.lineStart(),g=[]}function h(){c(g[0][0],g[0][1]),x.lineEnd();var t,e=x.clean(),n=b.buffer(),i=n.length;if(g.pop(),f.push(g),g=null,i)if(1&e){t=n[0];var r,i=t.length-1,o=-1;if(i>0){for(w||(a.polygonStart(),w=!0),a.lineStart();++o<i;)a.point((r=t[o])[0],r[1]);a.lineEnd()}}else i>1&&2&e&&n.push(n.pop().concat(n.shift())),p.push(n.filter(Pn))}var p,f,g,m=e(a),v=r.invert(i[0],i[1]),y={point:o,lineStart:l,lineEnd:u,polygonStart:function(){y.point=c,y.lineStart=d,y.lineEnd=h,p=[],f=[]},polygonEnd:function(){y.point=o,y.lineStart=l,y.lineEnd=u,p=Ko.merge(p);var t=Fn(v,f);p.length?(w||(a.polygonStart(),w=!0),An(p,On,t,n,a)):t&&(w||(a.polygonStart(),w=!0),a.lineStart(),n(null,null,1,a),a.lineEnd()),w&&(a.polygonEnd(),w=!1),p=f=null},sphere:function(){a.polygonStart(),a.lineStart(),n(null,null,1,a),a.lineEnd(),a.polygonEnd()}},b=Nn(),x=e(b),w=!1;return y}}function Pn(t){return t.length>1}function Nn(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:y,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function On(t,e){return((t=t.x)[0]<0?t[1]-As-Ts:As-t[1])-((e=e.x)[0]<0?e[1]-As-Ts:As-e[1])}function zn(t){var e,n=0/0,i=0/0,r=0/0;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a>0?Ds:-Ds,l=us(a-n);us(l-Ds)<Ts?(t.point(n,i=(i+o)/2>0?As:-As),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(s,i),t.point(a,i),e=0):r!==s&&l>=Ds&&(us(n-r)<Ts&&(n-=r*Ts),us(a-s)<Ts&&(a-=s*Ts),i=Hn(n,i,a,o),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(s,i),e=0),t.point(n=a,i=o),r=s},lineEnd:function(){t.lineEnd(),n=i=0/0},clean:function(){return 2-e}}}function Hn(t,e,n,i){var r,a,o=Math.sin(t-n);return us(o)>Ts?Math.atan((Math.sin(e)*(a=Math.cos(i))*Math.sin(n)-Math.sin(i)*(r=Math.cos(e))*Math.sin(t))/(r*a*o)):(e+i)/2}function Ln(t,e,n,i){var r;if(null==t)r=n*As,i.point(-Ds,r),i.point(0,r),i.point(Ds,r),i.point(Ds,0),i.point(Ds,-r),i.point(0,-r),i.point(-Ds,-r),i.point(-Ds,0),i.point(-Ds,r);else if(us(t[0]-e[0])>Ts){var a=t[0]<e[0]?Ds:-Ds;r=n*a/2,i.point(-a,r),i.point(0,r),i.point(a,r)}else i.point(e[0],e[1])}function Fn(t,e){var n=t[0],i=t[1],r=[Math.sin(n),-Math.cos(n),0],a=0,o=0;gl.reset();for(var s=0,l=e.length;l>s;++s){var u=e[s],c=u.length;if(c)for(var d=u[0],h=d[0],p=d[1]/2+Ds/4,f=Math.sin(p),g=Math.cos(p),m=1;;){m===c&&(m=0),t=u[m];var v=t[0],y=t[1]/2+Ds/4,b=Math.sin(y),x=Math.cos(y),w=v-h,k=w>=0?1:-1,$=k*w,_=$>Ds,C=f*b;if(gl.add(Math.atan2(C*k*Math.sin($),g*x+C*Math.cos($))),a+=_?w+k*Ss:w,_^h>=n^v>=n){var M=vn(gn(d),gn(t));xn(M);var D=vn(r,M);xn(D);var S=(_^w>=0?-1:1)*te(D[2]);(i>S||i===S&&(M[0]||M[1]))&&(o+=_^w>=0?1:-1)}if(!m++)break;h=v,f=b,g=x,d=t}}return(-Ts>a||Ts>a&&0>gl)^1&o}function Rn(t){function e(t,e){return Math.cos(t)*Math.cos(e)>a}function n(t){var n,a,l,u,c;return{lineStart:function(){u=l=!1,c=1},point:function(d,h){var p,f=[d,h],g=e(d,h),m=o?g?0:r(d,h):g?r(d+(0>d?Ds:-Ds),h):0;if(!n&&(u=l=g)&&t.lineStart(),g!==l&&(p=i(n,f),(kn(n,p)||kn(f,p))&&(f[0]+=Ts,f[1]+=Ts,g=e(f[0],f[1]))),g!==l)c=0,g?(t.lineStart(),p=i(f,n),t.point(p[0],p[1])):(p=i(n,f),t.point(p[0],p[1]),t.lineEnd()),n=p;else if(s&&n&&o^g){var v;m&a||!(v=i(f,n,!0))||(c=0,o?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!g||n&&kn(n,f)||t.point(f[0],f[1]),n=f,l=g,a=m},lineEnd:function(){l&&t.lineEnd(),n=null},clean:function(){return c|(u&&l)<<1}}}function i(t,e,n){var i=gn(t),r=gn(e),o=[1,0,0],s=vn(i,r),l=mn(s,s),u=s[0],c=l-u*u;if(!c)return!n&&t;var d=a*l/c,h=-a*u/c,p=vn(o,s),f=bn(o,d),g=bn(s,h);yn(f,g);var m=p,v=mn(f,m),y=mn(m,m),b=v*v-y*(mn(f,f)-1);if(!(0>b)){var x=Math.sqrt(b),w=bn(m,(-v-x)/y);if(yn(w,f),w=wn(w),!n)return w;var k,$=t[0],_=e[0],C=t[1],M=e[1];$>_&&(k=$,$=_,_=k);var D=_-$,S=us(D-Ds)<Ts,A=S||Ts>D;if(!S&&C>M&&(k=C,C=M,M=k),A?S?C+M>0^w[1]<(us(w[0]-$)<Ts?C:M):C<=w[1]&&w[1]<=M:D>Ds^($<=w[0]&&w[0]<=_)){var T=bn(m,(-v+x)/y);return yn(T,f),[w,wn(T)]}}}function r(e,n){var i=o?t:Ds-t,r=0;return-i>e?r|=1:e>i&&(r|=2),-i>n?r|=4:n>i&&(r|=8),r}var a=Math.cos(t),o=a>0,s=us(a)>Ts,l=fi(t,6*Is);return In(e,n,l,o?[0,-t]:[-Ds,t-Ds])}function Wn(t,e,n,i){return function(r){var a,o=r.a,s=r.b,l=o.x,u=o.y,c=s.x,d=s.y,h=0,p=1,f=c-l,g=d-u;if(a=t-l,f||!(a>0)){if(a/=f,0>f){if(h>a)return;p>a&&(p=a)}else if(f>0){if(a>p)return;a>h&&(h=a)}if(a=n-l,f||!(0>a)){if(a/=f,0>f){if(a>p)return;a>h&&(h=a)}else if(f>0){if(h>a)return;p>a&&(p=a)}if(a=e-u,g||!(a>0)){if(a/=g,0>g){if(h>a)return;p>a&&(p=a)}else if(g>0){if(a>p)return;a>h&&(h=a)}if(a=i-u,g||!(0>a)){if(a/=g,0>g){if(a>p)return;a>h&&(h=a)}else if(g>0){if(h>a)return;p>a&&(p=a)}return h>0&&(r.a={x:l+h*f,y:u+h*g}),1>p&&(r.b={x:l+p*f,y:u+p*g}),r}}}}}}function jn(t,e,n,i){function r(i,r){return us(i[0]-t)<Ts?r>0?0:3:us(i[0]-n)<Ts?r>0?2:1:us(i[1]-e)<Ts?r>0?1:0:r>0?3:2}function a(t,e){return o(t.x,e.x)}function o(t,e){var n=r(t,1),i=r(e,1);return n!==i?n-i:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(s){function l(t){for(var e=0,n=m.length,i=t[1],r=0;n>r;++r)for(var a,o=1,s=m[r],l=s.length,u=s[0];l>o;++o)a=s[o],u[1]<=i?a[1]>i&&Q(u,a,t)>0&&++e:a[1]<=i&&Q(u,a,t)<0&&--e,u=a;return 0!==e}function u(a,s,l,u){var c=0,d=0;if(null==a||(c=r(a,l))!==(d=r(s,l))||o(a,s)<0^l>0){do u.point(0===c||3===c?t:n,c>1?i:e);while((c=(c+l+4)%4)!==d)}else u.point(s[0],s[1])}function c(r,a){return r>=t&&n>=r&&a>=e&&i>=a}function d(t,e){c(t,e)&&s.point(t,e)}function h(){A.point=f,m&&m.push(v=[]),_=!0,$=!1,w=k=0/0}function p(){g&&(f(y,b),x&&$&&D.rejoin(),g.push(D.buffer())),A.point=d,$&&s.lineEnd()}function f(t,e){t=Math.max(-Tl,Math.min(Tl,t)),e=Math.max(-Tl,Math.min(Tl,e));var n=c(t,e);if(m&&v.push([t,e]),_)y=t,b=e,x=n,_=!1,n&&(s.lineStart(),s.point(t,e));else if(n&&$)s.point(t,e);else{var i={a:{x:w,y:k},b:{x:t,y:e}};S(i)?($||(s.lineStart(),s.point(i.a.x,i.a.y)),s.point(i.b.x,i.b.y),n||s.lineEnd(),C=!1):n&&(s.lineStart(),s.point(t,e),C=!1)}w=t,k=e,$=n}var g,m,v,y,b,x,w,k,$,_,C,M=s,D=Nn(),S=Wn(t,e,n,i),A={point:d,lineStart:h,lineEnd:p,polygonStart:function(){s=D,g=[],m=[],C=!0},polygonEnd:function(){s=M,g=Ko.merge(g);var e=l([t,i]),n=C&&e,r=g.length;(n||r)&&(s.polygonStart(),n&&(s.lineStart(),u(null,null,1,s),s.lineEnd()),r&&An(g,a,e,u,s),s.polygonEnd()),g=m=v=null}};return A}}function qn(t,e){function n(n,i){return n=t(n,i),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,i){return n=e.invert(n,i),n&&t.invert(n[0],n[1])}),n}function Vn(t){var e=0,n=Ds/3,i=oi(t),r=i(e,n);return r.parallels=function(t){return arguments.length?i(e=t[0]*Ds/180,n=t[1]*Ds/180):[e/Ds*180,n/Ds*180]},r}function Bn(t,e){function n(t,e){var n=Math.sqrt(a-2*r*Math.sin(e))/r;return[n*Math.sin(t*=r),o-n*Math.cos(t)]}var i=Math.sin(t),r=(i+Math.sin(e))/2,a=1+i*(2*r-i),o=Math.sqrt(a)/r;
return n.invert=function(t,e){var n=o-e;return[Math.atan2(t,n)/r,te((a-(t*t+n*n)*r*r)/(2*r))]},n}function Un(){function t(t,e){Il+=r*t-i*e,i=t,r=e}var e,n,i,r;Hl.point=function(a,o){Hl.point=t,e=i=a,n=r=o},Hl.lineEnd=function(){t(e,n)}}function Yn(t,e){Pl>t&&(Pl=t),t>Ol&&(Ol=t),Nl>e&&(Nl=e),e>zl&&(zl=e)}function Xn(){function t(t,e){o.push("M",t,",",e,a)}function e(t,e){o.push("M",t,",",e),s.point=n}function n(t,e){o.push("L",t,",",e)}function i(){s.point=t}function r(){o.push("Z")}var a=Kn(4.5),o=[],s={point:t,lineStart:function(){s.point=e},lineEnd:i,polygonStart:function(){s.lineEnd=r},polygonEnd:function(){s.lineEnd=i,s.point=t},pointRadius:function(t){return a=Kn(t),s},result:function(){if(o.length){var t=o.join("");return o=[],t}}};return s}function Kn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Gn(t,e){bl+=t,xl+=e,++wl}function Zn(){function t(t,i){var r=t-e,a=i-n,o=Math.sqrt(r*r+a*a);kl+=o*(e+t)/2,$l+=o*(n+i)/2,_l+=o,Gn(e=t,n=i)}var e,n;Fl.point=function(i,r){Fl.point=t,Gn(e=i,n=r)}}function Qn(){Fl.point=Gn}function Jn(){function t(t,e){var n=t-i,a=e-r,o=Math.sqrt(n*n+a*a);kl+=o*(i+t)/2,$l+=o*(r+e)/2,_l+=o,o=r*t-i*e,Cl+=o*(i+t),Ml+=o*(r+e),Dl+=3*o,Gn(i=t,r=e)}var e,n,i,r;Fl.point=function(a,o){Fl.point=t,Gn(e=i=a,n=r=o)},Fl.lineEnd=function(){t(e,n)}}function ti(t){function e(e,n){t.moveTo(e,n),t.arc(e,n,o,0,Ss)}function n(e,n){t.moveTo(e,n),s.point=i}function i(e,n){t.lineTo(e,n)}function r(){s.point=e}function a(){t.closePath()}var o=4.5,s={point:e,lineStart:function(){s.point=n},lineEnd:r,polygonStart:function(){s.lineEnd=a},polygonEnd:function(){s.lineEnd=r,s.point=e},pointRadius:function(t){return o=t,s},result:y};return s}function ei(t){function e(t){return(s?i:n)(t)}function n(e){return ri(e,function(n,i){n=t(n,i),e.point(n[0],n[1])})}function i(e){function n(n,i){n=t(n,i),e.point(n[0],n[1])}function i(){b=0/0,_.point=a,e.lineStart()}function a(n,i){var a=gn([n,i]),o=t(n,i);r(b,x,y,w,k,$,b=o[0],x=o[1],y=n,w=a[0],k=a[1],$=a[2],s,e),e.point(b,x)}function o(){_.point=n,e.lineEnd()}function l(){i(),_.point=u,_.lineEnd=c}function u(t,e){a(d=t,h=e),p=b,f=x,g=w,m=k,v=$,_.point=a}function c(){r(b,x,y,w,k,$,p,f,d,g,m,v,s,e),_.lineEnd=o,o()}var d,h,p,f,g,m,v,y,b,x,w,k,$,_={point:n,lineStart:i,lineEnd:o,polygonStart:function(){e.polygonStart(),_.lineStart=l},polygonEnd:function(){e.polygonEnd(),_.lineStart=i}};return _}function r(e,n,i,s,l,u,c,d,h,p,f,g,m,v){var y=c-e,b=d-n,x=y*y+b*b;if(x>4*a&&m--){var w=s+p,k=l+f,$=u+g,_=Math.sqrt(w*w+k*k+$*$),C=Math.asin($/=_),M=us(us($)-1)<Ts||us(i-h)<Ts?(i+h)/2:Math.atan2(k,w),D=t(M,C),S=D[0],A=D[1],T=S-e,E=A-n,I=b*T-y*E;(I*I/x>a||us((y*T+b*E)/x-.5)>.3||o>s*p+l*f+u*g)&&(r(e,n,i,s,l,u,S,A,M,w/=_,k/=_,$,m,v),v.point(S,A),r(S,A,M,w,k,$,c,d,h,p,f,g,m,v))}}var a=.5,o=Math.cos(30*Is),s=16;return e.precision=function(t){return arguments.length?(s=(a=t*t)>0&&16,e):Math.sqrt(a)},e}function ni(t){var e=ei(function(e,n){return t([e*Ps,n*Ps])});return function(t){return si(e(t))}}function ii(t){this.stream=t}function ri(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function ai(t){return oi(function(){return t})()}function oi(t){function e(t){return t=s(t[0]*Is,t[1]*Is),[t[0]*h+l,u-t[1]*h]}function n(t){return t=s.invert((t[0]-l)/h,(u-t[1])/h),t&&[t[0]*Ps,t[1]*Ps]}function i(){s=qn(o=ci(v,y,b),a);var t=a(g,m);return l=p-t[0]*h,u=f+t[1]*h,r()}function r(){return c&&(c.valid=!1,c=null),e}var a,o,s,l,u,c,d=ei(function(t,e){return t=a(t,e),[t[0]*h+l,u-t[1]*h]}),h=150,p=480,f=250,g=0,m=0,v=0,y=0,b=0,x=Al,w=Me,k=null,$=null;return e.stream=function(t){return c&&(c.valid=!1),c=si(x(o,d(w(t)))),c.valid=!0,c},e.clipAngle=function(t){return arguments.length?(x=null==t?(k=t,Al):Rn((k=+t)*Is),r()):k},e.clipExtent=function(t){return arguments.length?($=t,w=t?jn(t[0][0],t[0][1],t[1][0],t[1][1]):Me,r()):$},e.scale=function(t){return arguments.length?(h=+t,i()):h},e.translate=function(t){return arguments.length?(p=+t[0],f=+t[1],i()):[p,f]},e.center=function(t){return arguments.length?(g=t[0]%360*Is,m=t[1]%360*Is,i()):[g*Ps,m*Ps]},e.rotate=function(t){return arguments.length?(v=t[0]%360*Is,y=t[1]%360*Is,b=t.length>2?t[2]%360*Is:0,i()):[v*Ps,y*Ps,b*Ps]},Ko.rebind(e,d,"precision"),function(){return a=t.apply(this,arguments),e.invert=a.invert&&n,i()}}function si(t){return ri(t,function(e,n){t.point(e*Is,n*Is)})}function li(t,e){return[t,e]}function ui(t,e){return[t>Ds?t-Ss:-Ds>t?t+Ss:t,e]}function ci(t,e,n){return t?e||n?qn(hi(t),pi(e,n)):hi(t):e||n?pi(e,n):ui}function di(t){return function(e,n){return e+=t,[e>Ds?e-Ss:-Ds>e?e+Ss:e,n]}}function hi(t){var e=di(t);return e.invert=di(-t),e}function pi(t,e){function n(t,e){var n=Math.cos(e),s=Math.cos(t)*n,l=Math.sin(t)*n,u=Math.sin(e),c=u*i+s*r;return[Math.atan2(l*a-c*o,s*i-u*r),te(c*a+l*o)]}var i=Math.cos(t),r=Math.sin(t),a=Math.cos(e),o=Math.sin(e);return n.invert=function(t,e){var n=Math.cos(e),s=Math.cos(t)*n,l=Math.sin(t)*n,u=Math.sin(e),c=u*a-l*o;return[Math.atan2(l*a+u*o,s*i+c*r),te(c*i-s*r)]},n}function fi(t,e){var n=Math.cos(t),i=Math.sin(t);return function(r,a,o,s){var l=o*e;null!=r?(r=gi(n,r),a=gi(n,a),(o>0?a>r:r>a)&&(r+=o*Ss)):(r=t+o*Ss,a=t-.5*l);for(var u,c=r;o>0?c>a:a>c;c-=l)s.point((u=wn([n,-i*Math.cos(c),-i*Math.sin(c)]))[0],u[1])}}function gi(t,e){var n=gn(e);n[0]-=t,xn(n);var i=J(-n[1]);return((-n[2]<0?-i:i)+2*Math.PI-Ts)%(2*Math.PI)}function mi(t,e,n){var i=Ko.range(t,e-Ts,n).concat(e);return function(t){return i.map(function(e){return[t,e]})}}function vi(t,e,n){var i=Ko.range(t,e-Ts,n).concat(e);return function(t){return i.map(function(e){return[e,t]})}}function yi(t){return t.source}function bi(t){return t.target}function xi(t,e,n,i){var r=Math.cos(e),a=Math.sin(e),o=Math.cos(i),s=Math.sin(i),l=r*Math.cos(t),u=r*Math.sin(t),c=o*Math.cos(n),d=o*Math.sin(n),h=2*Math.asin(Math.sqrt(re(i-e)+r*o*re(n-t))),p=1/Math.sin(h),f=h?function(t){var e=Math.sin(t*=h)*p,n=Math.sin(h-t)*p,i=n*l+e*c,r=n*u+e*d,o=n*a+e*s;return[Math.atan2(r,i)*Ps,Math.atan2(o,Math.sqrt(i*i+r*r))*Ps]}:function(){return[t*Ps,e*Ps]};return f.distance=h,f}function wi(){function t(t,r){var a=Math.sin(r*=Is),o=Math.cos(r),s=us((t*=Is)-e),l=Math.cos(s);Rl+=Math.atan2(Math.sqrt((s=o*Math.sin(s))*s+(s=i*a-n*o*l)*s),n*a+i*o*l),e=t,n=a,i=o}var e,n,i;Wl.point=function(r,a){e=r*Is,n=Math.sin(a*=Is),i=Math.cos(a),Wl.point=t},Wl.lineEnd=function(){Wl.point=Wl.lineEnd=y}}function ki(t,e){function n(e,n){var i=Math.cos(e),r=Math.cos(n),a=t(i*r);return[a*r*Math.sin(e),a*Math.sin(n)]}return n.invert=function(t,n){var i=Math.sqrt(t*t+n*n),r=e(i),a=Math.sin(r),o=Math.cos(r);return[Math.atan2(t*a,i*o),Math.asin(i&&n*a/i)]},n}function $i(t,e){function n(t,e){o>0?-As+Ts>e&&(e=-As+Ts):e>As-Ts&&(e=As-Ts);var n=o/Math.pow(r(e),a);return[n*Math.sin(a*t),o-n*Math.cos(a*t)]}var i=Math.cos(t),r=function(t){return Math.tan(Ds/4+t/2)},a=t===e?Math.sin(t):Math.log(i/Math.cos(e))/Math.log(r(e)/r(t)),o=i*Math.pow(r(t),a)/a;return a?(n.invert=function(t,e){var n=o-e,i=Z(a)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/a,2*Math.atan(Math.pow(o/i,1/a))-As]},n):Ci}function _i(t,e){function n(t,e){var n=a-e;return[n*Math.sin(r*t),a-n*Math.cos(r*t)]}var i=Math.cos(t),r=t===e?Math.sin(t):(i-Math.cos(e))/(e-t),a=i/r+t;return us(r)<Ts?li:(n.invert=function(t,e){var n=a-e;return[Math.atan2(t,n)/r,a-Z(r)*Math.sqrt(t*t+n*n)]},n)}function Ci(t,e){return[t,Math.log(Math.tan(Ds/4+e/2))]}function Mi(t){var e,n=ai(t),i=n.scale,r=n.translate,a=n.clipExtent;return n.scale=function(){var t=i.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.translate=function(){var t=r.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.clipExtent=function(t){var o=a.apply(n,arguments);if(o===n){if(e=null==t){var s=Ds*i(),l=r();a([[l[0]-s,l[1]-s],[l[0]+s,l[1]+s]])}}else e&&(o=null);return o},n.clipExtent(null)}function Di(t,e){return[Math.log(Math.tan(Ds/4+e/2)),-t]}function Si(t){return t[0]}function Ai(t){return t[1]}function Ti(t){for(var e=t.length,n=[0,1],i=2,r=2;e>r;r++){for(;i>1&&Q(t[n[i-2]],t[n[i-1]],t[r])<=0;)--i;n[i++]=r}return n.slice(0,i)}function Ei(t,e){return t[0]-e[0]||t[1]-e[1]}function Ii(t,e,n){return(n[0]-e[0])*(t[1]-e[1])<(n[1]-e[1])*(t[0]-e[0])}function Pi(t,e,n,i){var r=t[0],a=n[0],o=e[0]-r,s=i[0]-a,l=t[1],u=n[1],c=e[1]-l,d=i[1]-u,h=(s*(l-u)-d*(r-a))/(d*o-s*c);return[r+h*o,l+h*c]}function Ni(t){var e=t[0],n=t[t.length-1];return!(e[0]-n[0]||e[1]-n[1])}function Oi(){nr(this),this.edge=this.site=this.circle=null}function zi(t){var e=Jl.pop()||new Oi;return e.site=t,e}function Hi(t){Yi(t),Gl.remove(t),Jl.push(t),nr(t)}function Li(t){var e=t.circle,n=e.x,i=e.cy,r={x:n,y:i},a=t.P,o=t.N,s=[t];Hi(t);for(var l=a;l.circle&&us(n-l.circle.x)<Ts&&us(i-l.circle.cy)<Ts;)a=l.P,s.unshift(l),Hi(l),l=a;s.unshift(l),Yi(l);for(var u=o;u.circle&&us(n-u.circle.x)<Ts&&us(i-u.circle.cy)<Ts;)o=u.N,s.push(u),Hi(u),u=o;s.push(u),Yi(u);var c,d=s.length;for(c=1;d>c;++c)u=s[c],l=s[c-1],Ji(u.edge,l.site,u.site,r);l=s[0],u=s[d-1],u.edge=Zi(l.site,u.site,null,r),Ui(l),Ui(u)}function Fi(t){for(var e,n,i,r,a=t.x,o=t.y,s=Gl._;s;)if(i=Ri(s,o)-a,i>Ts)s=s.L;else{if(r=a-Wi(s,o),!(r>Ts)){i>-Ts?(e=s.P,n=s):r>-Ts?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}var l=zi(t);if(Gl.insert(e,l),e||n){if(e===n)return Yi(e),n=zi(e.site),Gl.insert(l,n),l.edge=n.edge=Zi(e.site,l.site),Ui(e),void Ui(n);if(!n)return void(l.edge=Zi(e.site,l.site));Yi(e),Yi(n);var u=e.site,c=u.x,d=u.y,h=t.x-c,p=t.y-d,f=n.site,g=f.x-c,m=f.y-d,v=2*(h*m-p*g),y=h*h+p*p,b=g*g+m*m,x={x:(m*y-p*b)/v+c,y:(h*b-g*y)/v+d};Ji(n.edge,u,f,x),l.edge=Zi(u,t,null,x),n.edge=Zi(t,f,null,x),Ui(e),Ui(n)}}function Ri(t,e){var n=t.site,i=n.x,r=n.y,a=r-e;if(!a)return i;var o=t.P;if(!o)return-1/0;n=o.site;var s=n.x,l=n.y,u=l-e;if(!u)return s;var c=s-i,d=1/a-1/u,h=c/u;return d?(-h+Math.sqrt(h*h-2*d*(c*c/(-2*u)-l+u/2+r-a/2)))/d+i:(i+s)/2}function Wi(t,e){var n=t.N;if(n)return Ri(n,e);var i=t.site;return i.y===e?i.x:1/0}function ji(t){this.site=t,this.edges=[]}function qi(t){for(var e,n,i,r,a,o,s,l,u,c,d=t[0][0],h=t[1][0],p=t[0][1],f=t[1][1],g=Kl,m=g.length;m--;)if(a=g[m],a&&a.prepare())for(s=a.edges,l=s.length,o=0;l>o;)c=s[o].end(),i=c.x,r=c.y,u=s[++o%l].start(),e=u.x,n=u.y,(us(i-e)>Ts||us(r-n)>Ts)&&(s.splice(o,0,new tr(Qi(a.site,c,us(i-d)<Ts&&f-r>Ts?{x:d,y:us(e-d)<Ts?n:f}:us(r-f)<Ts&&h-i>Ts?{x:us(n-f)<Ts?e:h,y:f}:us(i-h)<Ts&&r-p>Ts?{x:h,y:us(e-h)<Ts?n:p}:us(r-p)<Ts&&i-d>Ts?{x:us(n-p)<Ts?e:d,y:p}:null),a.site,null)),++l)}function Vi(t,e){return e.angle-t.angle}function Bi(){nr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ui(t){var e=t.P,n=t.N;if(e&&n){var i=e.site,r=t.site,a=n.site;if(i!==a){var o=r.x,s=r.y,l=i.x-o,u=i.y-s,c=a.x-o,d=a.y-s,h=2*(l*d-u*c);if(!(h>=-Es)){var p=l*l+u*u,f=c*c+d*d,g=(d*p-u*f)/h,m=(l*f-c*p)/h,d=m+s,v=tu.pop()||new Bi;v.arc=t,v.site=r,v.x=g+o,v.y=d+Math.sqrt(g*g+m*m),v.cy=d,t.circle=v;for(var y=null,b=Ql._;b;)if(v.y<b.y||v.y===b.y&&v.x<=b.x){if(!b.L){y=b.P;break}b=b.L}else{if(!b.R){y=b;break}b=b.R}Ql.insert(y,v),y||(Zl=v)}}}}function Yi(t){var e=t.circle;e&&(e.P||(Zl=e.N),Ql.remove(e),tu.push(e),nr(e),t.circle=null)}function Xi(t){for(var e,n=Xl,i=Wn(t[0][0],t[0][1],t[1][0],t[1][1]),r=n.length;r--;)e=n[r],(!Ki(e,t)||!i(e)||us(e.a.x-e.b.x)<Ts&&us(e.a.y-e.b.y)<Ts)&&(e.a=e.b=null,n.splice(r,1))}function Ki(t,e){var n=t.b;if(n)return!0;var i,r,a=t.a,o=e[0][0],s=e[1][0],l=e[0][1],u=e[1][1],c=t.l,d=t.r,h=c.x,p=c.y,f=d.x,g=d.y,m=(h+f)/2,v=(p+g)/2;if(g===p){if(o>m||m>=s)return;if(h>f){if(a){if(a.y>=u)return}else a={x:m,y:l};n={x:m,y:u}}else{if(a){if(a.y<l)return}else a={x:m,y:u};n={x:m,y:l}}}else if(i=(h-f)/(g-p),r=v-i*m,-1>i||i>1)if(h>f){if(a){if(a.y>=u)return}else a={x:(l-r)/i,y:l};n={x:(u-r)/i,y:u}}else{if(a){if(a.y<l)return}else a={x:(u-r)/i,y:u};n={x:(l-r)/i,y:l}}else if(g>p){if(a){if(a.x>=s)return}else a={x:o,y:i*o+r};n={x:s,y:i*s+r}}else{if(a){if(a.x<o)return}else a={x:s,y:i*s+r};n={x:o,y:i*o+r}}return t.a=a,t.b=n,!0}function Gi(t,e){this.l=t,this.r=e,this.a=this.b=null}function Zi(t,e,n,i){var r=new Gi(t,e);return Xl.push(r),n&&Ji(r,t,e,n),i&&Ji(r,e,t,i),Kl[t.i].edges.push(new tr(r,t,e)),Kl[e.i].edges.push(new tr(r,e,t)),r}function Qi(t,e,n){var i=new Gi(t,null);return i.a=e,i.b=n,Xl.push(i),i}function Ji(t,e,n,i){t.a||t.b?t.l===n?t.b=i:t.a=i:(t.a=i,t.l=e,t.r=n)}function tr(t,e,n){var i=t.a,r=t.b;this.edge=t,this.site=e,this.angle=n?Math.atan2(n.y-e.y,n.x-e.x):t.l===e?Math.atan2(r.x-i.x,i.y-r.y):Math.atan2(i.x-r.x,r.y-i.y)}function er(){this._=null}function nr(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function ir(t,e){var n=e,i=e.R,r=n.U;r?r.L===n?r.L=i:r.R=i:t._=i,i.U=r,n.U=i,n.R=i.L,n.R&&(n.R.U=n),i.L=n}function rr(t,e){var n=e,i=e.L,r=n.U;r?r.L===n?r.L=i:r.R=i:t._=i,i.U=r,n.U=i,n.L=i.R,n.L&&(n.L.U=n),i.R=n}function ar(t){for(;t.L;)t=t.L;return t}function or(t,e){var n,i,r,a=t.sort(sr).pop();for(Xl=[],Kl=new Array(t.length),Gl=new er,Ql=new er;;)if(r=Zl,a&&(!r||a.y<r.y||a.y===r.y&&a.x<r.x))(a.x!==n||a.y!==i)&&(Kl[a.i]=new ji(a),Fi(a),n=a.x,i=a.y),a=t.pop();else{if(!r)break;Li(r.arc)}e&&(Xi(e),qi(e));var o={cells:Kl,edges:Xl};return Gl=Ql=Xl=Kl=null,o}function sr(t,e){return e.y-t.y||e.x-t.x}function lr(t,e,n){return(t.x-n.x)*(e.y-t.y)-(t.x-e.x)*(n.y-t.y)}function ur(t){return t.x}function cr(t){return t.y}function dr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function hr(t,e,n,i,r,a){if(!t(e,n,i,r,a)){var o=.5*(n+r),s=.5*(i+a),l=e.nodes;l[0]&&hr(t,l[0],n,i,o,s),l[1]&&hr(t,l[1],o,i,r,s),l[2]&&hr(t,l[2],n,s,o,a),l[3]&&hr(t,l[3],o,s,r,a)}}function pr(t,e){t=Ko.rgb(t),e=Ko.rgb(e);var n=t.r,i=t.g,r=t.b,a=e.r-n,o=e.g-i,s=e.b-r;return function(t){return"#"+be(Math.round(n+a*t))+be(Math.round(i+o*t))+be(Math.round(r+s*t))}}function fr(t,e){var n,i={},r={};for(n in t)n in e?i[n]=vr(t[n],e[n]):r[n]=t[n];for(n in e)n in t||(r[n]=e[n]);return function(t){for(n in i)r[n]=i[n](t);return r}}function gr(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function mr(t,e){var n,i,r,a=nu.lastIndex=iu.lastIndex=0,o=-1,s=[],l=[];for(t+="",e+="";(n=nu.exec(t))&&(i=iu.exec(e));)(r=i.index)>a&&(r=e.slice(a,r),s[o]?s[o]+=r:s[++o]=r),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:gr(n,i)})),a=iu.lastIndex;return a<e.length&&(r=e.slice(a),s[o]?s[o]+=r:s[++o]=r),s.length<2?l[0]?(e=l[0].x,function(t){return e(t)+""}):function(){return e}:(e=l.length,function(t){for(var n,i=0;e>i;++i)s[(n=l[i]).i]=n.x(t);return s.join("")})}function vr(t,e){for(var n,i=Ko.interpolators.length;--i>=0&&!(n=Ko.interpolators[i](t,e)););return n}function yr(t,e){var n,i=[],r=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(n=0;s>n;++n)i.push(vr(t[n],e[n]));for(;a>n;++n)r[n]=t[n];for(;o>n;++n)r[n]=e[n];return function(t){for(n=0;s>n;++n)r[n]=i[n](t);return r}}function br(t){return function(e){return 0>=e?0:e>=1?1:t(e)}}function xr(t){return function(e){return 1-t(1-e)}}function wr(t){return function(e){return.5*(.5>e?t(2*e):2-t(2-2*e))}}function kr(t){return t*t}function $r(t){return t*t*t}function _r(t){if(0>=t)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(.5>t?n:3*(t-e)+n-.75)}function Cr(t){return function(e){return Math.pow(e,t)}}function Mr(t){return 1-Math.cos(t*As)}function Dr(t){return Math.pow(2,10*(t-1))}function Sr(t){return 1-Math.sqrt(1-t*t)}function Ar(t,e){var n;return arguments.length<2&&(e=.45),arguments.length?n=e/Ss*Math.asin(1/t):(t=1,n=e/4),function(i){return 1+t*Math.pow(2,-10*i)*Math.sin((i-n)*Ss/e)}}function Tr(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}}function Er(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Ir(t,e){t=Ko.hcl(t),e=Ko.hcl(e);var n=t.h,i=t.c,r=t.l,a=e.h-n,o=e.c-i,s=e.l-r;return isNaN(o)&&(o=0,i=isNaN(i)?e.c:i),isNaN(a)?(a=0,n=isNaN(n)?e.h:n):a>180?a-=360:-180>a&&(a+=360),function(t){return ue(n+a*t,i+o*t,r+s*t)+""}}function Pr(t,e){t=Ko.hsl(t),e=Ko.hsl(e);var n=t.h,i=t.s,r=t.l,a=e.h-n,o=e.s-i,s=e.l-r;return isNaN(o)&&(o=0,i=isNaN(i)?e.s:i),isNaN(a)?(a=0,n=isNaN(n)?e.h:n):a>180?a-=360:-180>a&&(a+=360),function(t){return se(n+a*t,i+o*t,r+s*t)+""}}function Nr(t,e){t=Ko.lab(t),e=Ko.lab(e);var n=t.l,i=t.a,r=t.b,a=e.l-n,o=e.a-i,s=e.b-r;return function(t){return de(n+a*t,i+o*t,r+s*t)+""}}function Or(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function zr(t){var e=[t.a,t.b],n=[t.c,t.d],i=Lr(e),r=Hr(e,n),a=Lr(Fr(n,e,-r))||0;e[0]*n[1]<n[0]*e[1]&&(e[0]*=-1,e[1]*=-1,i*=-1,r*=-1),this.rotate=(i?Math.atan2(e[1],e[0]):Math.atan2(-n[0],n[1]))*Ps,this.translate=[t.e,t.f],this.scale=[i,a],this.skew=a?Math.atan2(r,a)*Ps:0}function Hr(t,e){return t[0]*e[0]+t[1]*e[1]}function Lr(t){var e=Math.sqrt(Hr(t,t));return e&&(t[0]/=e,t[1]/=e),e}function Fr(t,e,n){return t[0]+=n*e[0],t[1]+=n*e[1],t}function Rr(t,e){var n,i=[],r=[],a=Ko.transform(t),o=Ko.transform(e),s=a.translate,l=o.translate,u=a.rotate,c=o.rotate,d=a.skew,h=o.skew,p=a.scale,f=o.scale;return s[0]!=l[0]||s[1]!=l[1]?(i.push("translate(",null,",",null,")"),r.push({i:1,x:gr(s[0],l[0])},{i:3,x:gr(s[1],l[1])})):i.push(l[0]||l[1]?"translate("+l+")":""),u!=c?(u-c>180?c+=360:c-u>180&&(u+=360),r.push({i:i.push(i.pop()+"rotate(",null,")")-2,x:gr(u,c)})):c&&i.push(i.pop()+"rotate("+c+")"),d!=h?r.push({i:i.push(i.pop()+"skewX(",null,")")-2,x:gr(d,h)}):h&&i.push(i.pop()+"skewX("+h+")"),p[0]!=f[0]||p[1]!=f[1]?(n=i.push(i.pop()+"scale(",null,",",null,")"),r.push({i:n-4,x:gr(p[0],f[0])},{i:n-2,x:gr(p[1],f[1])})):(1!=f[0]||1!=f[1])&&i.push(i.pop()+"scale("+f+")"),n=r.length,function(t){for(var e,a=-1;++a<n;)i[(e=r[a]).i]=e.x(t);return i.join("")}}function Wr(t,e){return e=(e-=t=+t)||1/e,function(n){return(n-t)/e}}function jr(t,e){return e=(e-=t=+t)||1/e,function(n){return Math.max(0,Math.min(1,(n-t)/e))}}function qr(t){for(var e=t.source,n=t.target,i=Br(e,n),r=[e];e!==i;)e=e.parent,r.push(e);for(var a=r.length;n!==i;)r.splice(a,0,n),n=n.parent;return r}function Vr(t){for(var e=[],n=t.parent;null!=n;)e.push(t),t=n,n=n.parent;return e.push(t),e}function Br(t,e){if(t===e)return t;for(var n=Vr(t),i=Vr(e),r=n.pop(),a=i.pop(),o=null;r===a;)o=r,r=n.pop(),a=i.pop();return o}function Ur(t){t.fixed|=2}function Yr(t){t.fixed&=-7}function Xr(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Kr(t){t.fixed&=-5}function Gr(t,e,n){var i=0,r=0;if(t.charge=0,!t.leaf)for(var a,o=t.nodes,s=o.length,l=-1;++l<s;)a=o[l],null!=a&&(Gr(a,e,n),t.charge+=a.charge,i+=a.charge*a.cx,r+=a.charge*a.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var u=e*n[t.point.index];t.charge+=t.pointCharge=u,i+=u*t.point.x,r+=u*t.point.y}t.cx=i/t.charge,t.cy=r/t.charge}function Zr(t,e){return Ko.rebind(t,e,"sort","children","value"),t.nodes=t,t.links=ia,t}function Qr(t,e){for(var n=[t];null!=(t=n.pop());)if(e(t),(r=t.children)&&(i=r.length))for(var i,r;--i>=0;)n.push(r[i])}function Jr(t,e){for(var n=[t],i=[];null!=(t=n.pop());)if(i.push(t),(a=t.children)&&(r=a.length))for(var r,a,o=-1;++o<r;)n.push(a[o]);for(;null!=(t=i.pop());)e(t)}function ta(t){return t.children}function ea(t){return t.value}function na(t,e){return e.value-t.value}function ia(t){return Ko.merge(t.map(function(t){return(t.children||[]).map(function(e){return{source:t,target:e}})}))}function ra(t){return t.x}function aa(t){return t.y}function oa(t,e,n){t.y0=e,t.y=n}function sa(t){return Ko.range(t.length)}function la(t){for(var e=-1,n=t[0].length,i=[];++e<n;)i[e]=0;return i}function ua(t){for(var e,n=1,i=0,r=t[0][1],a=t.length;a>n;++n)(e=t[n][1])>r&&(i=n,r=e);return i}function ca(t){return t.reduce(da,0)}function da(t,e){return t+e[1]}function ha(t,e){return pa(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function pa(t,e){for(var n=-1,i=+t[0],r=(t[1]-i)/e,a=[];++n<=e;)a[n]=r*n+i;return a}function fa(t){return[Ko.min(t),Ko.max(t)]}function ga(t,e){return t.value-e.value}function ma(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function va(t,e){t._pack_next=e,e._pack_prev=t}function ya(t,e){var n=e.x-t.x,i=e.y-t.y,r=t.r+e.r;return.999*r*r>n*n+i*i}function ba(t){function e(t){c=Math.min(t.x-t.r,c),d=Math.max(t.x+t.r,d),h=Math.min(t.y-t.r,h),p=Math.max(t.y+t.r,p)}if((n=t.children)&&(u=n.length)){var n,i,r,a,o,s,l,u,c=1/0,d=-1/0,h=1/0,p=-1/0;if(n.forEach(xa),i=n[0],i.x=-i.r,i.y=0,e(i),u>1&&(r=n[1],r.x=r.r,r.y=0,e(r),u>2))for(a=n[2],$a(i,r,a),e(a),ma(i,a),i._pack_prev=a,ma(a,r),r=i._pack_next,o=3;u>o;o++){$a(i,r,a=n[o]);var f=0,g=1,m=1;for(s=r._pack_next;s!==r;s=s._pack_next,g++)if(ya(s,a)){f=1;break}if(1==f)for(l=i._pack_prev;l!==s._pack_prev&&!ya(l,a);l=l._pack_prev,m++);f?(m>g||g==m&&r.r<i.r?va(i,r=s):va(i=l,r),o--):(ma(i,a),r=a,e(a))}var v=(c+d)/2,y=(h+p)/2,b=0;for(o=0;u>o;o++)a=n[o],a.x-=v,a.y-=y,b=Math.max(b,a.r+Math.sqrt(a.x*a.x+a.y*a.y));t.r=b,n.forEach(wa)}}function xa(t){t._pack_next=t._pack_prev=t}function wa(t){delete t._pack_next,delete t._pack_prev}function ka(t,e,n,i){var r=t.children;if(t.x=e+=i*t.x,t.y=n+=i*t.y,t.r*=i,r)for(var a=-1,o=r.length;++a<o;)ka(r[a],e,n,i)}function $a(t,e,n){var i=t.r+n.r,r=e.x-t.x,a=e.y-t.y;if(i&&(r||a)){var o=e.r+n.r,s=r*r+a*a;o*=o,i*=i;var l=.5+(i-o)/(2*s),u=Math.sqrt(Math.max(0,2*o*(i+s)-(i-=s)*i-o*o))/(2*s);n.x=t.x+l*r+u*a,n.y=t.y+l*a-u*r}else n.x=t.x+i,n.y=t.y}function _a(t,e){return t.parent==e.parent?1:2}function Ca(t){var e=t.children;return e.length?e[0]:t.t}function Ma(t){var e,n=t.children;return(e=n.length)?n[e-1]:t.t}function Da(t,e,n){var i=n/(e.i-t.i);e.c-=i,e.s+=n,t.c+=i,e.z+=n,e.m+=n}function Sa(t){for(var e,n=0,i=0,r=t.children,a=r.length;--a>=0;)e=r[a],e.z+=n,e.m+=n,n+=e.s+(i+=e.c)}function Aa(t,e,n){return t.a.parent===e.parent?t.a:n}function Ta(t){return 1+Ko.max(t,function(t){return t.y})}function Ea(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}function Ia(t){var e=t.children;return e&&e.length?Ia(e[0]):t}function Pa(t){var e,n=t.children;return n&&(e=n.length)?Pa(n[e-1]):t}function Na(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function Oa(t,e){var n=t.x+e[3],i=t.y+e[0],r=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return 0>r&&(n+=r/2,r=0),0>a&&(i+=a/2,a=0),{x:n,y:i,dx:r,dy:a}}function za(t){var e=t[0],n=t[t.length-1];return n>e?[e,n]:[n,e]}function Ha(t){return t.rangeExtent?t.rangeExtent():za(t.range())}function La(t,e,n,i){var r=n(t[0],t[1]),a=i(e[0],e[1]);return function(t){return a(r(t))}}function Fa(t,e){var n,i=0,r=t.length-1,a=t[i],o=t[r];return a>o&&(n=i,i=r,r=n,n=a,a=o,o=n),t[i]=e.floor(a),t[r]=e.ceil(o),t}function Ra(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:fu}function Wa(t,e,n,i){var r=[],a=[],o=0,s=Math.min(t.length,e.length)-1;for(t[s]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<=s;)r.push(n(t[o-1],t[o])),a.push(i(e[o-1],e[o]));return function(e){var n=Ko.bisect(t,e,1,s)-1;return a[n](r[n](e))}}function ja(t,e,n,i){function r(){var r=Math.min(t.length,e.length)>2?Wa:La,l=i?jr:Wr;return o=r(t,e,l,n),s=r(e,t,l,vr),a}function a(t){return o(t)}var o,s;return a.invert=function(t){return s(t)},a.domain=function(e){return arguments.length?(t=e.map(Number),r()):t},a.range=function(t){return arguments.length?(e=t,r()):e},a.rangeRound=function(t){return a.range(t).interpolate(Or)},a.clamp=function(t){return arguments.length?(i=t,r()):i},a.interpolate=function(t){return arguments.length?(n=t,r()):n},a.ticks=function(e){return Ua(t,e)},a.tickFormat=function(e,n){return Ya(t,e,n)},a.nice=function(e){return Va(t,e),r()},a.copy=function(){return ja(t,e,n,i)},r()}function qa(t,e){return Ko.rebind(t,e,"range","rangeRound","interpolate","clamp")}function Va(t,e){return Fa(t,Ra(Ba(t,e)[2]))}function Ba(t,e){null==e&&(e=10);var n=za(t),i=n[1]-n[0],r=Math.pow(10,Math.floor(Math.log(i/e)/Math.LN10)),a=e/i*r;return.15>=a?r*=10:.35>=a?r*=5:.75>=a&&(r*=2),n[0]=Math.ceil(n[0]/r)*r,n[1]=Math.floor(n[1]/r)*r+.5*r,n[2]=r,n}function Ua(t,e){return Ko.range.apply(Ko,Ba(t,e))}function Ya(t,e,n){var i=Ba(t,e);if(n){var r=nl.exec(n);if(r.shift(),"s"===r[8]){var a=Ko.formatPrefix(Math.max(us(i[0]),us(i[1])));return r[7]||(r[7]="."+Xa(a.scale(i[2]))),r[8]="f",n=Ko.format(r.join("")),function(t){return n(a.scale(t))+a.symbol}}r[7]||(r[7]="."+Ka(r[8],i)),n=r.join("")}else n=",."+Xa(i[2])+"f";return Ko.format(n)}function Xa(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function Ka(t,e){var n=Xa(e[2]);return t in gu?Math.abs(n-Xa(Math.max(us(e[0]),us(e[1]))))+ +("e"!==t):n-2*("%"===t)}function Ga(t,e,n,i){function r(t){return(n?Math.log(0>t?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function a(t){return n?Math.pow(e,t):-Math.pow(e,-t)}function o(e){return t(r(e))}return o.invert=function(e){return a(t.invert(e))},o.domain=function(e){return arguments.length?(n=e[0]>=0,t.domain((i=e.map(Number)).map(r)),o):i},o.base=function(n){return arguments.length?(e=+n,t.domain(i.map(r)),o):e},o.nice=function(){var e=Fa(i.map(r),n?Math:vu);return t.domain(e),i=e.map(a),o},o.ticks=function(){var t=za(i),o=[],s=t[0],l=t[1],u=Math.floor(r(s)),c=Math.ceil(r(l)),d=e%1?2:e;if(isFinite(c-u)){if(n){for(;c>u;u++)for(var h=1;d>h;h++)o.push(a(u)*h);o.push(a(u))}else for(o.push(a(u));u++<c;)for(var h=d-1;h>0;h--)o.push(a(u)*h);for(u=0;o[u]<s;u++);for(c=o.length;o[c-1]>l;c--);o=o.slice(u,c)}return o},o.tickFormat=function(t,e){if(!arguments.length)return mu;arguments.length<2?e=mu:"function"!=typeof e&&(e=Ko.format(e));var i,s=Math.max(.1,t/o.ticks().length),l=n?(i=1e-12,Math.ceil):(i=-1e-12,Math.floor);return function(t){return t/a(l(r(t)+i))<=s?e(t):""}},o.copy=function(){return Ga(t.copy(),e,n,i)},qa(o,t)}function Za(t,e,n){function i(e){return t(r(e))}var r=Qa(e),a=Qa(1/e);return i.invert=function(e){return a(t.invert(e))},i.domain=function(e){return arguments.length?(t.domain((n=e.map(Number)).map(r)),i):n},i.ticks=function(t){return Ua(n,t)},i.tickFormat=function(t,e){return Ya(n,t,e)},i.nice=function(t){return i.domain(Va(n,t))},i.exponent=function(o){return arguments.length?(r=Qa(e=o),a=Qa(1/e),t.domain(n.map(r)),i):e},i.copy=function(){return Za(t.copy(),e,n)},qa(i,t)}function Qa(t){return function(e){return 0>e?-Math.pow(-e,t):Math.pow(e,t)}}function Ja(t,e){function n(n){return a[((r.get(n)||("range"===e.t?r.set(n,t.push(n)):0/0))-1)%a.length]}function i(e,n){return Ko.range(t.length).map(function(t){return e+n*t})}var r,a,o;return n.domain=function(i){if(!arguments.length)return t;t=[],r=new s;for(var a,o=-1,l=i.length;++o<l;)r.has(a=i[o])||r.set(a,t.push(a));return n[e.t].apply(n,e.a)},n.range=function(t){return arguments.length?(a=t,o=0,e={t:"range",a:arguments},n):a},n.rangePoints=function(r,s){arguments.length<2&&(s=0);var l=r[0],u=r[1],c=(u-l)/(Math.max(1,t.length-1)+s);return a=i(t.length<2?(l+u)/2:l+c*s/2,c),o=0,e={t:"rangePoints",a:arguments},n},n.rangeBands=function(r,s,l){arguments.length<2&&(s=0),arguments.length<3&&(l=s);var u=r[1]<r[0],c=r[u-0],d=r[1-u],h=(d-c)/(t.length-s+2*l);return a=i(c+h*l,h),u&&a.reverse(),o=h*(1-s),e={t:"rangeBands",a:arguments},n},n.rangeRoundBands=function(r,s,l){arguments.length<2&&(s=0),arguments.length<3&&(l=s);var u=r[1]<r[0],c=r[u-0],d=r[1-u],h=Math.floor((d-c)/(t.length-s+2*l)),p=d-c-(t.length-s)*h;return a=i(c+Math.round(p/2),h),u&&a.reverse(),o=Math.round(h*(1-s)),e={t:"rangeRoundBands",a:arguments},n},n.rangeBand=function(){return o},n.rangeExtent=function(){return za(e.a[0])},n.copy=function(){return Ja(t,e)},n.domain(t)}function to(i,r){function a(){var t=0,e=r.length;for(s=[];++t<e;)s[t-1]=Ko.quantile(i,t/e);return o}function o(t){return isNaN(t=+t)?void 0:r[Ko.bisect(s,t)]}var s;return o.domain=function(r){return arguments.length?(i=r.map(e).filter(n).sort(t),a()):i},o.range=function(t){return arguments.length?(r=t,a()):r},o.quantiles=function(){return s},o.invertExtent=function(t){return t=r.indexOf(t),0>t?[0/0,0/0]:[t>0?s[t-1]:i[0],t<s.length?s[t]:i[i.length-1]]},o.copy=function(){return to(i,r)},a()}function eo(t,e,n){function i(e){return n[Math.max(0,Math.min(o,Math.floor(a*(e-t))))]}function r(){return a=n.length/(e-t),o=n.length-1,i}var a,o;return i.domain=function(n){return arguments.length?(t=+n[0],e=+n[n.length-1],r()):[t,e]},i.range=function(t){return arguments.length?(n=t,r()):n},i.invertExtent=function(e){return e=n.indexOf(e),e=0>e?0/0:e/a+t,[e,e+1/a]},i.copy=function(){return eo(t,e,n)},r()}function no(t,e){function n(n){return n>=n?e[Ko.bisect(t,n)]:void 0}return n.domain=function(e){return arguments.length?(t=e,n):t},n.range=function(t){return arguments.length?(e=t,n):e},n.invertExtent=function(n){return n=e.indexOf(n),[t[n-1],t[n]]},n.copy=function(){return no(t,e)},n}function io(t){function e(t){return+t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=n.map(e),e):t},e.ticks=function(e){return Ua(t,e)},e.tickFormat=function(e,n){return Ya(t,e,n)},e.copy=function(){return io(t)},e}function ro(t){return t.innerRadius}function ao(t){return t.outerRadius}function oo(t){return t.startAngle}function so(t){return t.endAngle}function lo(t){function e(e){function o(){u.push("M",a(t(c),s))}for(var l,u=[],c=[],d=-1,h=e.length,p=Ce(n),f=Ce(i);++d<h;)r.call(this,l=e[d],d)?c.push([+p.call(this,l,d),+f.call(this,l,d)]):c.length&&(o(),c=[]);return c.length&&o(),u.length?u.join(""):null}var n=Si,i=Ai,r=Sn,a=uo,o=a.key,s=.7;return e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(i=t,e):i},e.defined=function(t){return arguments.length?(r=t,e):r},e.interpolate=function(t){return arguments.length?(o="function"==typeof t?a=t:(a=_u.get(t)||uo).key,e):o},e.tension=function(t){return arguments.length?(s=t,e):s},e}function uo(t){return t.join("L")}function co(t){return uo(t)+"Z"}function ho(t){for(var e=0,n=t.length,i=t[0],r=[i[0],",",i[1]];++e<n;)r.push("H",(i[0]+(i=t[e])[0])/2,"V",i[1]);return n>1&&r.push("H",i[0]),r.join("")}function po(t){for(var e=0,n=t.length,i=t[0],r=[i[0],",",i[1]];++e<n;)r.push("V",(i=t[e])[1],"H",i[0]);return r.join("")}function fo(t){for(var e=0,n=t.length,i=t[0],r=[i[0],",",i[1]];++e<n;)r.push("H",(i=t[e])[0],"V",i[1]);return r.join("")}function go(t,e){return t.length<4?uo(t):t[1]+yo(t.slice(1,t.length-1),bo(t,e))}function mo(t,e){return t.length<3?uo(t):t[0]+yo((t.push(t[0]),t),bo([t[t.length-2]].concat(t,[t[1]]),e))}function vo(t,e){return t.length<3?uo(t):t[0]+yo(t,bo(t,e))}function yo(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return uo(t);var n=t.length!=e.length,i="",r=t[0],a=t[1],o=e[0],s=o,l=1;if(n&&(i+="Q"+(a[0]-2*o[0]/3)+","+(a[1]-2*o[1]/3)+","+a[0]+","+a[1],r=t[1],l=2),e.length>1){s=e[1],a=t[l],l++,i+="C"+(r[0]+o[0])+","+(r[1]+o[1])+","+(a[0]-s[0])+","+(a[1]-s[1])+","+a[0]+","+a[1];for(var u=2;u<e.length;u++,l++)a=t[l],s=e[u],i+="S"+(a[0]-s[0])+","+(a[1]-s[1])+","+a[0]+","+a[1]}if(n){var c=t[l];i+="Q"+(a[0]+2*s[0]/3)+","+(a[1]+2*s[1]/3)+","+c[0]+","+c[1]}return i}function bo(t,e){for(var n,i=[],r=(1-e)/2,a=t[0],o=t[1],s=1,l=t.length;++s<l;)n=a,a=o,o=t[s],i.push([r*(o[0]-n[0]),r*(o[1]-n[1])]);return i}function xo(t){if(t.length<3)return uo(t);var e=1,n=t.length,i=t[0],r=i[0],a=i[1],o=[r,r,r,(i=t[1])[0]],s=[a,a,a,i[1]],l=[r,",",a,"L",_o(Du,o),",",_o(Du,s)];for(t.push(t[n-1]);++e<=n;)i=t[e],o.shift(),o.push(i[0]),s.shift(),s.push(i[1]),Co(l,o,s);return t.pop(),l.push("L",i),l.join("")}function wo(t){if(t.length<4)return uo(t);for(var e,n=[],i=-1,r=t.length,a=[0],o=[0];++i<3;)e=t[i],a.push(e[0]),o.push(e[1]);for(n.push(_o(Du,a)+","+_o(Du,o)),--i;++i<r;)e=t[i],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),Co(n,a,o);return n.join("")}function ko(t){for(var e,n,i=-1,r=t.length,a=r+4,o=[],s=[];++i<4;)n=t[i%r],o.push(n[0]),s.push(n[1]);for(e=[_o(Du,o),",",_o(Du,s)],--i;++i<a;)n=t[i%r],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),Co(e,o,s);return e.join("")}function $o(t,e){var n=t.length-1;if(n)for(var i,r,a=t[0][0],o=t[0][1],s=t[n][0]-a,l=t[n][1]-o,u=-1;++u<=n;)i=t[u],r=u/n,i[0]=e*i[0]+(1-e)*(a+r*s),i[1]=e*i[1]+(1-e)*(o+r*l);return xo(t)}function _o(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function Co(t,e,n){t.push("C",_o(Cu,e),",",_o(Cu,n),",",_o(Mu,e),",",_o(Mu,n),",",_o(Du,e),",",_o(Du,n))}function Mo(t,e){return(e[1]-t[1])/(e[0]-t[0])
}function Do(t){for(var e=0,n=t.length-1,i=[],r=t[0],a=t[1],o=i[0]=Mo(r,a);++e<n;)i[e]=(o+(o=Mo(r=a,a=t[e+1])))/2;return i[e]=o,i}function So(t){for(var e,n,i,r,a=[],o=Do(t),s=-1,l=t.length-1;++s<l;)e=Mo(t[s],t[s+1]),us(e)<Ts?o[s]=o[s+1]=0:(n=o[s]/e,i=o[s+1]/e,r=n*n+i*i,r>9&&(r=3*e/Math.sqrt(r),o[s]=r*n,o[s+1]=r*i));for(s=-1;++s<=l;)r=(t[Math.min(l,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([r||0,o[s]*r||0]);return a}function Ao(t){return t.length<3?uo(t):t[0]+yo(t,So(t))}function To(t){for(var e,n,i,r=-1,a=t.length;++r<a;)e=t[r],n=e[0],i=e[1]+ku,e[0]=n*Math.cos(i),e[1]=n*Math.sin(i);return t}function Eo(t){function e(e){function l(){g.push("M",s(t(v),d),c,u(t(m.reverse()),d),"Z")}for(var h,p,f,g=[],m=[],v=[],y=-1,b=e.length,x=Ce(n),w=Ce(r),k=n===i?function(){return p}:Ce(i),$=r===a?function(){return f}:Ce(a);++y<b;)o.call(this,h=e[y],y)?(m.push([p=+x.call(this,h,y),f=+w.call(this,h,y)]),v.push([+k.call(this,h,y),+$.call(this,h,y)])):m.length&&(l(),m=[],v=[]);return m.length&&l(),g.length?g.join(""):null}var n=Si,i=Si,r=0,a=Ai,o=Sn,s=uo,l=s.key,u=s,c="L",d=.7;return e.x=function(t){return arguments.length?(n=i=t,e):i},e.x0=function(t){return arguments.length?(n=t,e):n},e.x1=function(t){return arguments.length?(i=t,e):i},e.y=function(t){return arguments.length?(r=a=t,e):a},e.y0=function(t){return arguments.length?(r=t,e):r},e.y1=function(t){return arguments.length?(a=t,e):a},e.defined=function(t){return arguments.length?(o=t,e):o},e.interpolate=function(t){return arguments.length?(l="function"==typeof t?s=t:(s=_u.get(t)||uo).key,u=s.reverse||s,c=s.closed?"M":"L",e):l},e.tension=function(t){return arguments.length?(d=t,e):d},e}function Io(t){return t.radius}function Po(t){return[t.x,t.y]}function No(t){return function(){var e=t.apply(this,arguments),n=e[0],i=e[1]+ku;return[n*Math.cos(i),n*Math.sin(i)]}}function Oo(){return 64}function zo(){return"circle"}function Ho(t){var e=Math.sqrt(t/Ds);return"M0,"+e+"A"+e+","+e+" 0 1,1 0,"+-e+"A"+e+","+e+" 0 1,1 0,"+e+"Z"}function Lo(t,e){return fs(t,Pu),t.id=e,t}function Fo(t,e,n,i){var r=t.id;return F(t,"function"==typeof n?function(t,a,o){t.__transition__[r].tween.set(e,i(n.call(t,t.__data__,a,o)))}:(n=i(n),function(t){t.__transition__[r].tween.set(e,n)}))}function Ro(t){return null==t&&(t=""),function(){this.textContent=t}}function Wo(t,e,n,i){var r=t.__transition__||(t.__transition__={active:0,count:0}),a=r[n];if(!a){var o=i.time;a=r[n]={tween:new s,time:o,ease:i.ease,delay:i.delay,duration:i.duration},++r.count,Ko.timer(function(i){function s(i){return r.active>n?u():(r.active=n,a.event&&a.event.start.call(t,c,e),a.tween.forEach(function(n,i){(i=i.call(t,c,e))&&g.push(i)}),void Ko.timer(function(){return f.c=l(i||1)?Sn:l,1},0,o))}function l(i){if(r.active!==n)return u();for(var o=i/p,s=d(o),l=g.length;l>0;)g[--l].call(t,s);return o>=1?(a.event&&a.event.end.call(t,c,e),u()):void 0}function u(){return--r.count?delete r[n]:delete t.__transition__,1}var c=t.__data__,d=a.ease,h=a.delay,p=a.duration,f=Js,g=[];return f.t=h+o,i>=h?s(i-h):void(f.c=s)},0,o)}}function jo(t,e,n){t.attr("transform",function(t){var i=e(t);return"translate("+(isFinite(i)?i:n(t))+",0)"})}function qo(t,e,n){t.attr("transform",function(t){var i=e(t);return"translate(0,"+(isFinite(i)?i:n(t))+")"})}function Vo(t){return t.toISOString()}function Bo(t,e,n){function i(e){return t(e)}function r(t,n){var i=t[1]-t[0],r=i/n,a=Ko.bisect(ju,r);return a==ju.length?[e.year,Ba(t.map(function(t){return t/31536e6}),n)[2]]:a?e[r/ju[a-1]<ju[a]/r?a-1:a]:[Bu,Ba(t,n)[2]]}return i.invert=function(e){return Uo(t.invert(e))},i.domain=function(e){return arguments.length?(t.domain(e),i):t.domain().map(Uo)},i.nice=function(t,e){function n(n){return!isNaN(n)&&!t.range(n,Uo(+n+1),e).length}var a=i.domain(),o=za(a),s=null==t?r(o,10):"number"==typeof t&&r(o,t);return s&&(t=s[0],e=s[1]),i.domain(Fa(a,e>1?{floor:function(e){for(;n(e=t.floor(e));)e=Uo(e-1);return e},ceil:function(e){for(;n(e=t.ceil(e));)e=Uo(+e+1);return e}}:t))},i.ticks=function(t,e){var n=za(i.domain()),a=null==t?r(n,10):"number"==typeof t?r(n,t):!t.range&&[{range:t},e];return a&&(t=a[0],e=a[1]),t.range(n[0],Uo(+n[1]+1),1>e?1:e)},i.tickFormat=function(){return n},i.copy=function(){return Bo(t.copy(),e,n)},qa(i,t)}function Uo(t){return new Date(t)}function Yo(t){return JSON.parse(t.responseText)}function Xo(t){var e=Qo.createRange();return e.selectNode(Qo.body),e.createContextualFragment(t.responseText)}var Ko={version:"3.4.13"};Date.now||(Date.now=function(){return+new Date});var Go=[].slice,Zo=function(t){return Go.call(t)},Qo=document,Jo=Qo.documentElement,ts=window;try{Zo(Jo.childNodes)[0].nodeType}catch(es){Zo=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}try{Qo.createElement("div").style.setProperty("opacity",0,"")}catch(ns){var is=ts.Element.prototype,rs=is.setAttribute,as=is.setAttributeNS,os=ts.CSSStyleDeclaration.prototype,ss=os.setProperty;is.setAttribute=function(t,e){rs.call(this,t,e+"")},is.setAttributeNS=function(t,e,n){as.call(this,t,e,n+"")},os.setProperty=function(t,e,n){ss.call(this,t,e+"",n)}}Ko.ascending=t,Ko.descending=function(t,e){return t>e?-1:e>t?1:e>=t?0:0/0},Ko.min=function(t,e){var n,i,r=-1,a=t.length;if(1===arguments.length){for(;++r<a&&!(null!=(n=t[r])&&n>=n);)n=void 0;for(;++r<a;)null!=(i=t[r])&&n>i&&(n=i)}else{for(;++r<a&&!(null!=(n=e.call(t,t[r],r))&&n>=n);)n=void 0;for(;++r<a;)null!=(i=e.call(t,t[r],r))&&n>i&&(n=i)}return n},Ko.max=function(t,e){var n,i,r=-1,a=t.length;if(1===arguments.length){for(;++r<a&&!(null!=(n=t[r])&&n>=n);)n=void 0;for(;++r<a;)null!=(i=t[r])&&i>n&&(n=i)}else{for(;++r<a&&!(null!=(n=e.call(t,t[r],r))&&n>=n);)n=void 0;for(;++r<a;)null!=(i=e.call(t,t[r],r))&&i>n&&(n=i)}return n},Ko.extent=function(t,e){var n,i,r,a=-1,o=t.length;if(1===arguments.length){for(;++a<o&&!(null!=(n=r=t[a])&&n>=n);)n=r=void 0;for(;++a<o;)null!=(i=t[a])&&(n>i&&(n=i),i>r&&(r=i))}else{for(;++a<o&&!(null!=(n=r=e.call(t,t[a],a))&&n>=n);)n=void 0;for(;++a<o;)null!=(i=e.call(t,t[a],a))&&(n>i&&(n=i),i>r&&(r=i))}return[n,r]},Ko.sum=function(t,e){var i,r=0,a=t.length,o=-1;if(1===arguments.length)for(;++o<a;)n(i=+t[o])&&(r+=i);else for(;++o<a;)n(i=+e.call(t,t[o],o))&&(r+=i);return r},Ko.mean=function(t,i){var r,a=0,o=t.length,s=-1,l=o;if(1===arguments.length)for(;++s<o;)n(r=e(t[s]))?a+=r:--l;else for(;++s<o;)n(r=e(i.call(t,t[s],s)))?a+=r:--l;return l?a/l:void 0},Ko.quantile=function(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],a=n-i;return a?r+a*(t[i]-r):r},Ko.median=function(i,r){var a,o=[],s=i.length,l=-1;if(1===arguments.length)for(;++l<s;)n(a=e(i[l]))&&o.push(a);else for(;++l<s;)n(a=e(r.call(i,i[l],l)))&&o.push(a);return o.length?Ko.quantile(o.sort(t),.5):void 0};var ls=i(t);Ko.bisectLeft=ls.left,Ko.bisect=Ko.bisectRight=ls.right,Ko.bisector=function(e){return i(1===e.length?function(n,i){return t(e(n),i)}:e)},Ko.shuffle=function(t){for(var e,n,i=t.length;i;)n=Math.random()*i--|0,e=t[i],t[i]=t[n],t[n]=e;return t},Ko.permute=function(t,e){for(var n=e.length,i=new Array(n);n--;)i[n]=t[e[n]];return i},Ko.pairs=function(t){for(var e,n=0,i=t.length-1,r=t[0],a=new Array(0>i?0:i);i>n;)a[n]=[e=r,r=t[++n]];return a},Ko.zip=function(){if(!(i=arguments.length))return[];for(var t=-1,e=Ko.min(arguments,r),n=new Array(e);++t<e;)for(var i,a=-1,o=n[t]=new Array(i);++a<i;)o[a]=arguments[a][t];return n},Ko.transpose=function(t){return Ko.zip.apply(Ko,t)},Ko.keys=function(t){var e=[];for(var n in t)e.push(n);return e},Ko.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},Ko.entries=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e},Ko.merge=function(t){for(var e,n,i,r=t.length,a=-1,o=0;++a<r;)o+=t[a].length;for(n=new Array(o);--r>=0;)for(i=t[r],e=i.length;--e>=0;)n[--o]=i[e];return n};var us=Math.abs;Ko.range=function(t,e,n){if(arguments.length<3&&(n=1,arguments.length<2&&(e=t,t=0)),(e-t)/n===1/0)throw new Error("infinite range");var i,r=[],o=a(us(n)),s=-1;if(t*=o,e*=o,n*=o,0>n)for(;(i=t+n*++s)>e;)r.push(i/o);else for(;(i=t+n*++s)<e;)r.push(i/o);return r},Ko.map=function(t){var e=new s;if(t instanceof s)t.forEach(function(t,n){e.set(t,n)});else for(var n in t)e.set(n,t[n]);return e};var cs="__proto__",ds="\x00";o(s,{has:c,get:function(t){return this._[l(t)]},set:function(t,e){return this._[l(t)]=e},remove:d,keys:h,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:u(e),value:this._[e]});return t},size:p,empty:f,forEach:function(t){for(var e in this._)t.call(this,u(e),this._[e])}}),Ko.nest=function(){function t(e,o,l){if(l>=a.length)return i?i.call(r,o):n?o.sort(n):o;for(var u,c,d,h,p=-1,f=o.length,g=a[l++],m=new s;++p<f;)(h=m.get(u=g(c=o[p])))?h.push(c):m.set(u,[c]);return e?(c=e(),d=function(n,i){c.set(n,t(e,i,l))}):(c={},d=function(n,i){c[n]=t(e,i,l)}),m.forEach(d),c}function e(t,n){if(n>=a.length)return t;var i=[],r=o[n++];return t.forEach(function(t,r){i.push({key:t,values:e(r,n)})}),r?i.sort(function(t,e){return r(t.key,e.key)}):i}var n,i,r={},a=[],o=[];return r.map=function(e,n){return t(n,e,0)},r.entries=function(n){return e(t(Ko.map,n,0),0)},r.key=function(t){return a.push(t),r},r.sortKeys=function(t){return o[a.length-1]=t,r},r.sortValues=function(t){return n=t,r},r.rollup=function(t){return i=t,r},r},Ko.set=function(t){var e=new g;if(t)for(var n=0,i=t.length;i>n;++n)e.add(t[n]);return e},o(g,{has:c,add:function(t){return this._[l(t+="")]=!0,t},remove:d,values:h,size:p,empty:f,forEach:function(t){for(var e in this._)t.call(this,u(e))}}),Ko.behavior={},Ko.rebind=function(t,e){for(var n,i=1,r=arguments.length;++i<r;)t[n=arguments[i]]=m(t,e,e[n]);return t};var hs=["webkit","ms","moz","Moz","o","O"];Ko.dispatch=function(){for(var t=new b,e=-1,n=arguments.length;++e<n;)t[arguments[e]]=x(t);return t},b.prototype.on=function(t,e){var n=t.indexOf("."),i="";if(n>=0&&(i=t.slice(n+1),t=t.slice(0,n)),t)return arguments.length<2?this[t].on(i):this[t].on(i,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(i,null);return this}},Ko.event=null,Ko.requote=function(t){return t.replace(ps,"\\$&")};var ps=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,fs={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]},gs=function(t,e){return e.querySelector(t)},ms=function(t,e){return e.querySelectorAll(t)},vs=Jo.matches||Jo[v(Jo,"matchesSelector")],ys=function(t,e){return vs.call(t,e)};"function"==typeof Sizzle&&(gs=function(t,e){return Sizzle(t,e)[0]||null},ms=Sizzle,ys=Sizzle.matchesSelector),Ko.selection=function(){return ks};var bs=Ko.selection.prototype=[];bs.select=function(t){var e,n,i,r,a=[];t=C(t);for(var o=-1,s=this.length;++o<s;){a.push(e=[]),e.parentNode=(i=this[o]).parentNode;for(var l=-1,u=i.length;++l<u;)(r=i[l])?(e.push(n=t.call(r,r.__data__,l,o)),n&&"__data__"in r&&(n.__data__=r.__data__)):e.push(null)}return _(a)},bs.selectAll=function(t){var e,n,i=[];t=M(t);for(var r=-1,a=this.length;++r<a;)for(var o=this[r],s=-1,l=o.length;++s<l;)(n=o[s])&&(i.push(e=Zo(t.call(n,n.__data__,s,r))),e.parentNode=n);return _(i)};var xs={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};Ko.ns={prefix:xs,qualify:function(t){var e=t.indexOf(":"),n=t;return e>=0&&(n=t.slice(0,e),t=t.slice(e+1)),xs.hasOwnProperty(n)?{space:xs[n],local:t}:t}},bs.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return t=Ko.ns.qualify(t),t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(D(e,t[e]));return this}return this.each(D(t,e))},bs.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),i=(t=T(t)).length,r=-1;if(e=n.classList){for(;++r<i;)if(!e.contains(t[r]))return!1}else for(e=n.getAttribute("class");++r<i;)if(!A(t[r]).test(e))return!1;return!0}for(e in t)this.each(E(e,t[e]));return this}return this.each(E(t,e))},bs.style=function(t,e,n){var i=arguments.length;if(3>i){if("string"!=typeof t){2>i&&(e="");for(n in t)this.each(P(n,t[n],e));return this}if(2>i)return ts.getComputedStyle(this.node(),null).getPropertyValue(t);n=""}return this.each(P(t,e,n))},bs.property=function(t,e){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(e in t)this.each(N(e,t[e]));return this}return this.each(N(t,e))},bs.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},bs.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},bs.append=function(t){return t=O(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},bs.insert=function(t,e){return t=O(t),e=C(e),this.select(function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)})},bs.remove=function(){return this.each(function(){var t=this.parentNode;t&&t.removeChild(this)})},bs.data=function(t,e){function n(t,n){var i,r,a,o=t.length,d=n.length,h=Math.min(o,d),p=new Array(d),f=new Array(d),g=new Array(o);if(e){var m,v=new s,y=new Array(o);for(i=-1;++i<o;)v.has(m=e.call(r=t[i],r.__data__,i))?g[i]=r:v.set(m,r),y[i]=m;for(i=-1;++i<d;)(r=v.get(m=e.call(n,a=n[i],i)))?r!==!0&&(p[i]=r,r.__data__=a):f[i]=z(a),v.set(m,!0);for(i=-1;++i<o;)v.get(y[i])!==!0&&(g[i]=t[i])}else{for(i=-1;++i<h;)r=t[i],a=n[i],r?(r.__data__=a,p[i]=r):f[i]=z(a);for(;d>i;++i)f[i]=z(n[i]);for(;o>i;++i)g[i]=t[i]}f.update=p,f.parentNode=p.parentNode=g.parentNode=t.parentNode,l.push(f),u.push(p),c.push(g)}var i,r,a=-1,o=this.length;if(!arguments.length){for(t=new Array(o=(i=this[0]).length);++a<o;)(r=i[a])&&(t[a]=r.__data__);return t}var l=R([]),u=_([]),c=_([]);if("function"==typeof t)for(;++a<o;)n(i=this[a],t.call(i,i.parentNode.__data__,a));else for(;++a<o;)n(i=this[a],t);return u.enter=function(){return l},u.exit=function(){return c},u},bs.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},bs.filter=function(t){var e,n,i,r=[];"function"!=typeof t&&(t=H(t));for(var a=0,o=this.length;o>a;a++){r.push(e=[]),e.parentNode=(n=this[a]).parentNode;for(var s=0,l=n.length;l>s;s++)(i=n[s])&&t.call(i,i.__data__,s,a)&&e.push(i)}return _(r)},bs.order=function(){for(var t=-1,e=this.length;++t<e;)for(var n,i=this[t],r=i.length-1,a=i[r];--r>=0;)(n=i[r])&&(a&&a!==n.nextSibling&&a.parentNode.insertBefore(n,a),a=n);return this},bs.sort=function(t){t=L.apply(this,arguments);for(var e=-1,n=this.length;++e<n;)this[e].sort(t);return this.order()},bs.each=function(t){return F(this,function(e,n,i){t.call(e,e.__data__,n,i)})},bs.call=function(t){var e=Zo(arguments);return t.apply(e[0]=this,e),this},bs.empty=function(){return!this.node()},bs.node=function(){for(var t=0,e=this.length;e>t;t++)for(var n=this[t],i=0,r=n.length;r>i;i++){var a=n[i];if(a)return a}return null},bs.size=function(){var t=0;return F(this,function(){++t}),t};var ws=[];Ko.selection.enter=R,Ko.selection.enter.prototype=ws,ws.append=bs.append,ws.empty=bs.empty,ws.node=bs.node,ws.call=bs.call,ws.size=bs.size,ws.select=function(t){for(var e,n,i,r,a,o=[],s=-1,l=this.length;++s<l;){i=(r=this[s]).update,o.push(e=[]),e.parentNode=r.parentNode;for(var u=-1,c=r.length;++u<c;)(a=r[u])?(e.push(i[u]=n=t.call(r.parentNode,a.__data__,u,s)),n.__data__=a.__data__):e.push(null)}return _(o)},ws.insert=function(t,e){return arguments.length<2&&(e=W(this)),bs.insert.call(this,t,e)},bs.transition=function(){for(var t,e,n=Au||++Nu,i=[],r=Tu||{time:Date.now(),ease:_r,delay:0,duration:250},a=-1,o=this.length;++a<o;){i.push(t=[]);for(var s=this[a],l=-1,u=s.length;++l<u;)(e=s[l])&&Wo(e,l,n,r),t.push(e)}return Lo(i,n)},bs.interrupt=function(){return this.each(j)},Ko.select=function(t){var e=["string"==typeof t?gs(t,Qo):t];return e.parentNode=Jo,_([e])},Ko.selectAll=function(t){var e=Zo("string"==typeof t?ms(t,Qo):t);return e.parentNode=Jo,_([e])};var ks=Ko.select(Jo);bs.on=function(t,e,n){var i=arguments.length;if(3>i){if("string"!=typeof t){2>i&&(e=!1);for(n in t)this.each(q(n,t[n],e));return this}if(2>i)return(i=this.node()["__on"+t])&&i._;n=!1}return this.each(q(t,e,n))};var $s=Ko.map({mouseenter:"mouseover",mouseleave:"mouseout"});$s.forEach(function(t){"on"+t in Qo&&$s.remove(t)});var _s="onselectstart"in Qo?null:v(Jo.style,"userSelect"),Cs=0;Ko.mouse=function(t){return Y(t,k())};var Ms=/WebKit/.test(ts.navigator.userAgent)?-1:0;Ko.touch=function(t,e,n){if(arguments.length<3&&(n=e,e=k().changedTouches),e)for(var i,r=0,a=e.length;a>r;++r)if((i=e[r]).identifier===n)return Y(t,i)},Ko.behavior.drag=function(){function t(){this.on("mousedown.drag",r).on("touchstart.drag",a)}function e(t,e,r,a,o){return function(){function s(){var t,n,i=e(h,g);i&&(t=i[0]-b[0],n=i[1]-b[1],f|=t|n,b=i,p({type:"drag",x:i[0]+u[0],y:i[1]+u[1],dx:t,dy:n}))}function l(){e(h,g)&&(v.on(a+m,null).on(o+m,null),y(f&&Ko.event.target===d),p({type:"dragend"}))}var u,c=this,d=Ko.event.target,h=c.parentNode,p=n.of(c,arguments),f=0,g=t(),m=".drag"+(null==g?"":"-"+g),v=Ko.select(r()).on(a+m,s).on(o+m,l),y=U(),b=e(h,g);i?(u=i.apply(c,arguments),u=[u.x-b[0],u.y-b[1]]):u=[0,0],p({type:"dragstart"})}}var n=$(t,"drag","dragstart","dragend"),i=null,r=e(y,Ko.mouse,G,"mousemove","mouseup"),a=e(X,Ko.touch,K,"touchmove","touchend");return t.origin=function(e){return arguments.length?(i=e,t):i},Ko.rebind(t,n,"on")},Ko.touches=function(t,e){return arguments.length<2&&(e=k().touches),e?Zo(e).map(function(e){var n=Y(t,e);return n.identifier=e.identifier,n}):[]};var Ds=Math.PI,Ss=2*Ds,As=Ds/2,Ts=1e-6,Es=Ts*Ts,Is=Ds/180,Ps=180/Ds,Ns=Math.SQRT2,Os=2,zs=4;Ko.interpolateZoom=function(t,e){function n(t){var e=t*y;if(v){var n=ne(g),o=a/(Os*h)*(n*ie(Ns*e+g)-ee(g));return[i+o*u,r+o*c,a*n/ne(Ns*e+g)]}return[i+t*u,r+t*c,a*Math.exp(Ns*e)]}var i=t[0],r=t[1],a=t[2],o=e[0],s=e[1],l=e[2],u=o-i,c=s-r,d=u*u+c*c,h=Math.sqrt(d),p=(l*l-a*a+zs*d)/(2*a*Os*h),f=(l*l-a*a-zs*d)/(2*l*Os*h),g=Math.log(Math.sqrt(p*p+1)-p),m=Math.log(Math.sqrt(f*f+1)-f),v=m-g,y=(v||Math.log(l/a))/Ns;return n.duration=1e3*y,n},Ko.behavior.zoom=function(){function t(t){t.on(D,u).on(Fs+".zoom",d).on("dblclick.zoom",h).on(T,c)}function e(t){return[(t[0]-_.x)/_.k,(t[1]-_.y)/_.k]}function n(t){return[t[0]*_.k+_.x,t[1]*_.k+_.y]}function i(t){_.k=Math.max(M[0],Math.min(M[1],t))}function r(t,e){e=n(e),_.x+=t[0]-e[0],_.y+=t[1]-e[1]}function a(){b&&b.domain(y.range().map(function(t){return(t-_.x)/_.k}).map(y.invert)),k&&k.domain(x.range().map(function(t){return(t-_.y)/_.k}).map(x.invert))}function o(t){t({type:"zoomstart"})}function s(t){a(),t({type:"zoom",scale:_.k,translate:[_.x,_.y]})}function l(t){t({type:"zoomend"})}function u(){function t(){c=1,r(Ko.mouse(i),h),s(u)}function n(){d.on(S,null).on(A,null),p(c&&Ko.event.target===a),l(u)}var i=this,a=Ko.event.target,u=E.of(i,arguments),c=0,d=Ko.select(ts).on(S,t).on(A,n),h=e(Ko.mouse(i)),p=U();j.call(i),o(u)}function c(){function t(){var t=Ko.touches(p);return h=_.k,t.forEach(function(t){t.identifier in g&&(g[t.identifier]=e(t))}),t}function n(){var e=Ko.event.target;Ko.select(e).on(b,a).on(x,d),k.push(e);for(var n=Ko.event.changedTouches,o=0,l=n.length;l>o;++o)g[n[o].identifier]=null;var u=t(),c=Date.now();if(1===u.length){if(500>c-v){var h=u[0],p=g[h.identifier];i(2*_.k),r(h,p),w(),s(f)}v=c}else if(u.length>1){var h=u[0],y=u[1],$=h[0]-y[0],C=h[1]-y[1];m=$*$+C*C}}function a(){for(var t,e,n,a,o=Ko.touches(p),l=0,u=o.length;u>l;++l,a=null)if(n=o[l],a=g[n.identifier]){if(e)break;t=n,e=a}if(a){var c=(c=n[0]-t[0])*c+(c=n[1]-t[1])*c,d=m&&Math.sqrt(c/m);t=[(t[0]+n[0])/2,(t[1]+n[1])/2],e=[(e[0]+a[0])/2,(e[1]+a[1])/2],i(d*h)}v=null,r(t,e),s(f)}function d(){if(Ko.event.touches.length){for(var e=Ko.event.changedTouches,n=0,i=e.length;i>n;++n)delete g[e[n].identifier];for(var r in g)return void t()}Ko.selectAll(k).on(y,null),$.on(D,u).on(T,c),C(),l(f)}var h,p=this,f=E.of(p,arguments),g={},m=0,y=".zoom-"+Ko.event.changedTouches[0].identifier,b="touchmove"+y,x="touchend"+y,k=[],$=Ko.select(p),C=U();j.call(p),n(),o(f),$.on(D,null).on(T,n)}function d(){var t=E.of(this,arguments);m?clearTimeout(m):(p=e(f=g||Ko.mouse(this)),j.call(this),o(t)),m=setTimeout(function(){m=null,l(t)},50),w(),i(Math.pow(2,.002*Hs())*_.k),r(f,p),s(t)}function h(){var t=E.of(this,arguments),n=Ko.mouse(this),a=e(n),u=Math.log(_.k)/Math.LN2;o(t),i(Math.pow(2,Ko.event.shiftKey?Math.ceil(u)-1:Math.floor(u)+1)),r(n,a),s(t),l(t)}var p,f,g,m,v,y,b,x,k,_={x:0,y:0,k:1},C=[960,500],M=Ls,D="mousedown.zoom",S="mousemove.zoom",A="mouseup.zoom",T="touchstart.zoom",E=$(t,"zoomstart","zoom","zoomend");return t.event=function(t){t.each(function(){var t=E.of(this,arguments),e=_;Au?Ko.select(this).transition().each("start.zoom",function(){_=this.__chart__||{x:0,y:0,k:1},o(t)}).tween("zoom:zoom",function(){var n=C[0],i=C[1],r=n/2,a=i/2,o=Ko.interpolateZoom([(r-_.x)/_.k,(a-_.y)/_.k,n/_.k],[(r-e.x)/e.k,(a-e.y)/e.k,n/e.k]);return function(e){var i=o(e),l=n/i[2];this.__chart__=_={x:r-i[0]*l,y:a-i[1]*l,k:l},s(t)}}).each("end.zoom",function(){l(t)}):(this.__chart__=_,o(t),s(t),l(t))})},t.translate=function(e){return arguments.length?(_={x:+e[0],y:+e[1],k:_.k},a(),t):[_.x,_.y]},t.scale=function(e){return arguments.length?(_={x:_.x,y:_.y,k:+e},a(),t):_.k},t.scaleExtent=function(e){return arguments.length?(M=null==e?Ls:[+e[0],+e[1]],t):M},t.center=function(e){return arguments.length?(g=e&&[+e[0],+e[1]],t):g},t.size=function(e){return arguments.length?(C=e&&[+e[0],+e[1]],t):C},t.x=function(e){return arguments.length?(b=e,y=e.copy(),_={x:0,y:0,k:1},t):b},t.y=function(e){return arguments.length?(k=e,x=e.copy(),_={x:0,y:0,k:1},t):k},Ko.rebind(t,E,"on")};var Hs,Ls=[0,1/0],Fs="onwheel"in Qo?(Hs=function(){return-Ko.event.deltaY*(Ko.event.deltaMode?120:1)},"wheel"):"onmousewheel"in Qo?(Hs=function(){return Ko.event.wheelDelta},"mousewheel"):(Hs=function(){return-Ko.event.detail},"MozMousePixelScroll");Ko.color=ae,ae.prototype.toString=function(){return this.rgb()+""},Ko.hsl=oe;var Rs=oe.prototype=new ae;Rs.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new oe(this.h,this.s,this.l/t)},Rs.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new oe(this.h,this.s,t*this.l)},Rs.rgb=function(){return se(this.h,this.s,this.l)},Ko.hcl=le;var Ws=le.prototype=new ae;Ws.brighter=function(t){return new le(this.h,this.c,Math.min(100,this.l+js*(arguments.length?t:1)))},Ws.darker=function(t){return new le(this.h,this.c,Math.max(0,this.l-js*(arguments.length?t:1)))},Ws.rgb=function(){return ue(this.h,this.c,this.l).rgb()},Ko.lab=ce;var js=18,qs=.95047,Vs=1,Bs=1.08883,Us=ce.prototype=new ae;Us.brighter=function(t){return new ce(Math.min(100,this.l+js*(arguments.length?t:1)),this.a,this.b)},Us.darker=function(t){return new ce(Math.max(0,this.l-js*(arguments.length?t:1)),this.a,this.b)},Us.rgb=function(){return de(this.l,this.a,this.b)},Ko.rgb=me;var Ys=me.prototype=new ae;Ys.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,n=this.g,i=this.b,r=30;return e||n||i?(e&&r>e&&(e=r),n&&r>n&&(n=r),i&&r>i&&(i=r),new me(Math.min(255,e/t),Math.min(255,n/t),Math.min(255,i/t))):new me(r,r,r)},Ys.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new me(t*this.r,t*this.g,t*this.b)},Ys.hsl=function(){return we(this.r,this.g,this.b)},Ys.toString=function(){return"#"+be(this.r)+be(this.g)+be(this.b)};var Xs=Ko.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Xs.forEach(function(t,e){Xs.set(t,ve(e))}),Ko.functor=Ce,Ko.xhr=De(Me),Ko.dsv=function(t,e){function n(t,n,a){arguments.length<3&&(a=n,n=null);var o=Se(t,e,null==n?i:r(n),a);return o.row=function(t){return arguments.length?o.response(null==(n=t)?i:r(t)):n},o}function i(t){return n.parse(t.responseText)}function r(t){return function(e){return n.parse(e.responseText,t)}}function a(e){return e.map(o).join(t)}function o(t){return s.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var s=new RegExp('["'+t+"\n]"),l=t.charCodeAt(0);return n.parse=function(t,e){var i;return n.parseRows(t,function(t,n){if(i)return i(t,n-1);var r=new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}");i=e?function(t,n){return e(r(t),n)}:r})},n.parseRows=function(t,e){function n(){if(c>=u)return o;if(r)return r=!1,a;var e=c;if(34===t.charCodeAt(e)){for(var n=e;n++<u;)if(34===t.charCodeAt(n)){if(34!==t.charCodeAt(n+1))break;++n}c=n+2;var i=t.charCodeAt(n+1);return 13===i?(r=!0,10===t.charCodeAt(n+2)&&++c):10===i&&(r=!0),t.slice(e+1,n).replace(/""/g,'"')}for(;u>c;){var i=t.charCodeAt(c++),s=1;if(10===i)r=!0;else if(13===i)r=!0,10===t.charCodeAt(c)&&(++c,++s);else if(i!==l)continue;return t.slice(e,c-s)}return t.slice(e)}for(var i,r,a={},o={},s=[],u=t.length,c=0,d=0;(i=n())!==o;){for(var h=[];i!==a&&i!==o;)h.push(i),i=n();e&&null==(h=e(h,d++))||s.push(h)}return s},n.format=function(e){if(Array.isArray(e[0]))return n.formatRows(e);var i=new g,r=[];return e.forEach(function(t){for(var e in t)i.has(e)||r.push(i.add(e))}),[r.map(o).join(t)].concat(e.map(function(e){return r.map(function(t){return o(e[t])}).join(t)})).join("\n")},n.formatRows=function(t){return t.map(a).join("\n")},n},Ko.csv=Ko.dsv(",","text/csv"),Ko.tsv=Ko.dsv("	","text/tab-separated-values");var Ks,Gs,Zs,Qs,Js,tl=ts[v(ts,"requestAnimationFrame")]||function(t){setTimeout(t,17)};Ko.timer=function(t,e,n){var i=arguments.length;2>i&&(e=0),3>i&&(n=Date.now());var r=n+e,a={c:t,t:r,f:!1,n:null};Gs?Gs.n=a:Ks=a,Gs=a,Zs||(Qs=clearTimeout(Qs),Zs=1,tl(Ee))},Ko.timer.flush=function(){Ie(),Pe()},Ko.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var el=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(Oe);Ko.formatPrefix=function(t,e){var n=0;return t&&(0>t&&(t*=-1),e&&(t=Ko.round(t,Ne(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),el[8+n/3]};var nl=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,il=Ko.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=Ko.round(t,Ne(t,e))).toFixed(Math.max(0,Math.min(20,Ne(t*(1+1e-15),e))))}}),rl=Ko.time={},al=Date;Le.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){ol.setUTCDate.apply(this._,arguments)},setDay:function(){ol.setUTCDay.apply(this._,arguments)},setFullYear:function(){ol.setUTCFullYear.apply(this._,arguments)},setHours:function(){ol.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){ol.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){ol.setUTCMinutes.apply(this._,arguments)},setMonth:function(){ol.setUTCMonth.apply(this._,arguments)},setSeconds:function(){ol.setUTCSeconds.apply(this._,arguments)},setTime:function(){ol.setTime.apply(this._,arguments)}};var ol=Date.prototype;rl.year=Fe(function(t){return t=rl.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),rl.years=rl.year.range,rl.years.utc=rl.year.utc.range,rl.day=Fe(function(t){var e=new al(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),rl.days=rl.day.range,rl.days.utc=rl.day.utc.range,rl.dayOfYear=function(t){var e=rl.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,e){e=7-e;var n=rl[t]=Fe(function(t){return(t=rl.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var n=rl.year(t).getDay();return Math.floor((rl.dayOfYear(t)+(n+e)%7)/7)-(n!==e)});rl[t+"s"]=n.range,rl[t+"s"].utc=n.utc.range,rl[t+"OfYear"]=function(t){var n=rl.year(t).getDay();return Math.floor((rl.dayOfYear(t)+(n+e)%7)/7)}}),rl.week=rl.sunday,rl.weeks=rl.sunday.range,rl.weeks.utc=rl.sunday.utc.range,rl.weekOfYear=rl.sundayOfYear;var sl={"-":"",_:" ",0:"0"},ll=/^\s*\d+/,ul=/^%/;Ko.locale=function(t){return{numberFormat:ze(t),timeFormat:We(t)}};var cl=Ko.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});
Ko.format=cl.numberFormat,Ko.geo={},un.prototype={s:0,t:0,add:function(t){cn(t,this.t,dl),cn(dl.s,this.s,this),this.s?this.t+=dl.t:this.s=dl.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var dl=new un;Ko.geo.stream=function(t,e){t&&hl.hasOwnProperty(t.type)?hl[t.type](t,e):dn(t,e)};var hl={Feature:function(t,e){dn(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,r=n.length;++i<r;)dn(n[i].geometry,e)}},pl={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)t=n[i],e.point(t[0],t[1],t[2])},LineString:function(t,e){hn(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)hn(n[i],e,0)},Polygon:function(t,e){pn(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)pn(n[i],e)},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,r=n.length;++i<r;)dn(n[i],e)}};Ko.geo.area=function(t){return fl=0,Ko.geo.stream(t,ml),fl};var fl,gl=new un,ml={sphere:function(){fl+=4*Ds},point:y,lineStart:y,lineEnd:y,polygonStart:function(){gl.reset(),ml.lineStart=fn},polygonEnd:function(){var t=2*gl;fl+=0>t?4*Ds+t:t,ml.lineStart=ml.lineEnd=ml.point=y}};Ko.geo.bounds=function(){function t(t,e){b.push(x=[c=t,h=t]),d>e&&(d=e),e>p&&(p=e)}function e(e,n){var i=gn([e*Is,n*Is]);if(v){var r=vn(v,i),a=[r[1],-r[0],0],o=vn(a,r);xn(o),o=wn(o);var l=e-f,u=l>0?1:-1,g=o[0]*Ps*u,m=us(l)>180;if(m^(g>u*f&&u*e>g)){var y=o[1]*Ps;y>p&&(p=y)}else if(g=(g+360)%360-180,m^(g>u*f&&u*e>g)){var y=-o[1]*Ps;d>y&&(d=y)}else d>n&&(d=n),n>p&&(p=n);m?f>e?s(c,e)>s(c,h)&&(h=e):s(e,h)>s(c,h)&&(c=e):h>=c?(c>e&&(c=e),e>h&&(h=e)):e>f?s(c,e)>s(c,h)&&(h=e):s(e,h)>s(c,h)&&(c=e)}else t(e,n);v=i,f=e}function n(){w.point=e}function i(){x[0]=c,x[1]=h,w.point=t,v=null}function r(t,n){if(v){var i=t-f;y+=us(i)>180?i+(i>0?360:-360):i}else g=t,m=n;ml.point(t,n),e(t,n)}function a(){ml.lineStart()}function o(){r(g,m),ml.lineEnd(),us(y)>Ts&&(c=-(h=180)),x[0]=c,x[1]=h,v=null}function s(t,e){return(e-=t)<0?e+360:e}function l(t,e){return t[0]-e[0]}function u(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var c,d,h,p,f,g,m,v,y,b,x,w={point:t,lineStart:n,lineEnd:i,polygonStart:function(){w.point=r,w.lineStart=a,w.lineEnd=o,y=0,ml.polygonStart()},polygonEnd:function(){ml.polygonEnd(),w.point=t,w.lineStart=n,w.lineEnd=i,0>gl?(c=-(h=180),d=-(p=90)):y>Ts?p=90:-Ts>y&&(d=-90),x[0]=c,x[1]=h}};return function(t){p=h=-(c=d=1/0),b=[],Ko.geo.stream(t,w);var e=b.length;if(e){b.sort(l);for(var n,i=1,r=b[0],a=[r];e>i;++i)n=b[i],u(n[0],r)||u(n[1],r)?(s(r[0],n[1])>s(r[0],r[1])&&(r[1]=n[1]),s(n[0],r[1])>s(r[0],r[1])&&(r[0]=n[0])):a.push(r=n);for(var o,n,f=-1/0,e=a.length-1,i=0,r=a[e];e>=i;r=n,++i)n=a[i],(o=s(r[1],n[0]))>f&&(f=o,c=n[0],h=r[1])}return b=x=null,1/0===c||1/0===d?[[0/0,0/0],[0/0,0/0]]:[[c,d],[h,p]]}}(),Ko.geo.centroid=function(t){vl=yl=bl=xl=wl=kl=$l=_l=Cl=Ml=Dl=0,Ko.geo.stream(t,Sl);var e=Cl,n=Ml,i=Dl,r=e*e+n*n+i*i;return Es>r&&(e=kl,n=$l,i=_l,Ts>yl&&(e=bl,n=xl,i=wl),r=e*e+n*n+i*i,Es>r)?[0/0,0/0]:[Math.atan2(n,e)*Ps,te(i/Math.sqrt(r))*Ps]};var vl,yl,bl,xl,wl,kl,$l,_l,Cl,Ml,Dl,Sl={sphere:y,point:$n,lineStart:Cn,lineEnd:Mn,polygonStart:function(){Sl.lineStart=Dn},polygonEnd:function(){Sl.lineStart=Cn}},Al=In(Sn,zn,Ln,[-Ds,-Ds/2]),Tl=1e9;Ko.geo.clipExtent=function(){var t,e,n,i,r,a,o={stream:function(t){return r&&(r.valid=!1),r=a(t),r.valid=!0,r},extent:function(s){return arguments.length?(a=jn(t=+s[0][0],e=+s[0][1],n=+s[1][0],i=+s[1][1]),r&&(r.valid=!1,r=null),o):[[t,e],[n,i]]}};return o.extent([[0,0],[960,500]])},(Ko.geo.conicEqualArea=function(){return Vn(Bn)}).raw=Bn,Ko.geo.albers=function(){return Ko.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},Ko.geo.albersUsa=function(){function t(t){var a=t[0],o=t[1];return e=null,n(a,o),e||(i(a,o),e)||r(a,o),e}var e,n,i,r,a=Ko.geo.albers(),o=Ko.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=Ko.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,n){e=[t,n]}};return t.invert=function(t){var e=a.scale(),n=a.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.12&&.234>r&&i>=-.425&&-.214>i?o:r>=.166&&.234>r&&i>=-.214&&-.115>i?s:a).invert(t)},t.stream=function(t){var e=a.stream(t),n=o.stream(t),i=s.stream(t);return{point:function(t,r){e.point(t,r),n.point(t,r),i.point(t,r)},sphere:function(){e.sphere(),n.sphere(),i.sphere()},lineStart:function(){e.lineStart(),n.lineStart(),i.lineStart()},lineEnd:function(){e.lineEnd(),n.lineEnd(),i.lineEnd()},polygonStart:function(){e.polygonStart(),n.polygonStart(),i.polygonStart()},polygonEnd:function(){e.polygonEnd(),n.polygonEnd(),i.polygonEnd()}}},t.precision=function(e){return arguments.length?(a.precision(e),o.precision(e),s.precision(e),t):a.precision()},t.scale=function(e){return arguments.length?(a.scale(e),o.scale(.35*e),s.scale(e),t.translate(a.translate())):a.scale()},t.translate=function(e){if(!arguments.length)return a.translate();var u=a.scale(),c=+e[0],d=+e[1];return n=a.translate(e).clipExtent([[c-.455*u,d-.238*u],[c+.455*u,d+.238*u]]).stream(l).point,i=o.translate([c-.307*u,d+.201*u]).clipExtent([[c-.425*u+Ts,d+.12*u+Ts],[c-.214*u-Ts,d+.234*u-Ts]]).stream(l).point,r=s.translate([c-.205*u,d+.212*u]).clipExtent([[c-.214*u+Ts,d+.166*u+Ts],[c-.115*u-Ts,d+.234*u-Ts]]).stream(l).point,t},t.scale(1070)};var El,Il,Pl,Nl,Ol,zl,Hl={point:y,lineStart:y,lineEnd:y,polygonStart:function(){Il=0,Hl.lineStart=Un},polygonEnd:function(){Hl.lineStart=Hl.lineEnd=Hl.point=y,El+=us(Il/2)}},Ll={point:Yn,lineStart:y,lineEnd:y,polygonStart:y,polygonEnd:y},Fl={point:Gn,lineStart:Zn,lineEnd:Qn,polygonStart:function(){Fl.lineStart=Jn},polygonEnd:function(){Fl.point=Gn,Fl.lineStart=Zn,Fl.lineEnd=Qn}};Ko.geo.path=function(){function t(t){return t&&("function"==typeof s&&a.pointRadius(+s.apply(this,arguments)),o&&o.valid||(o=r(a)),Ko.geo.stream(t,o)),a.result()}function e(){return o=null,t}var n,i,r,a,o,s=4.5;return t.area=function(t){return El=0,Ko.geo.stream(t,r(Hl)),El},t.centroid=function(t){return bl=xl=wl=kl=$l=_l=Cl=Ml=Dl=0,Ko.geo.stream(t,r(Fl)),Dl?[Cl/Dl,Ml/Dl]:_l?[kl/_l,$l/_l]:wl?[bl/wl,xl/wl]:[0/0,0/0]},t.bounds=function(t){return Ol=zl=-(Pl=Nl=1/0),Ko.geo.stream(t,r(Ll)),[[Pl,Nl],[Ol,zl]]},t.projection=function(t){return arguments.length?(r=(n=t)?t.stream||ni(t):Me,e()):n},t.context=function(t){return arguments.length?(a=null==(i=t)?new Xn:new ti(t),"function"!=typeof s&&a.pointRadius(s),e()):i},t.pointRadius=function(e){return arguments.length?(s="function"==typeof e?e:(a.pointRadius(+e),+e),t):s},t.projection(Ko.geo.albersUsa()).context(null)},Ko.geo.transform=function(t){return{stream:function(e){var n=new ii(e);for(var i in t)n[i]=t[i];return n}}},ii.prototype={point:function(t,e){this.stream.point(t,e)},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()}},Ko.geo.projection=ai,Ko.geo.projectionMutator=oi,(Ko.geo.equirectangular=function(){return ai(li)}).raw=li.invert=li,Ko.geo.rotation=function(t){function e(e){return e=t(e[0]*Is,e[1]*Is),e[0]*=Ps,e[1]*=Ps,e}return t=ci(t[0]%360*Is,t[1]*Is,t.length>2?t[2]*Is:0),e.invert=function(e){return e=t.invert(e[0]*Is,e[1]*Is),e[0]*=Ps,e[1]*=Ps,e},e},ui.invert=li,Ko.geo.circle=function(){function t(){var t="function"==typeof i?i.apply(this,arguments):i,e=ci(-t[0]*Is,-t[1]*Is,0).invert,r=[];return n(null,null,1,{point:function(t,n){r.push(t=e(t,n)),t[0]*=Ps,t[1]*=Ps}}),{type:"Polygon",coordinates:[r]}}var e,n,i=[0,0],r=6;return t.origin=function(e){return arguments.length?(i=e,t):i},t.angle=function(i){return arguments.length?(n=fi((e=+i)*Is,r*Is),t):e},t.precision=function(i){return arguments.length?(n=fi(e*Is,(r=+i)*Is),t):r},t.angle(90)},Ko.geo.distance=function(t,e){var n,i=(e[0]-t[0])*Is,r=t[1]*Is,a=e[1]*Is,o=Math.sin(i),s=Math.cos(i),l=Math.sin(r),u=Math.cos(r),c=Math.sin(a),d=Math.cos(a);return Math.atan2(Math.sqrt((n=d*o)*n+(n=u*c-l*d*s)*n),l*c+u*d*s)},Ko.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return Ko.range(Math.ceil(a/m)*m,r,m).map(h).concat(Ko.range(Math.ceil(u/v)*v,l,v).map(p)).concat(Ko.range(Math.ceil(i/f)*f,n,f).filter(function(t){return us(t%m)>Ts}).map(c)).concat(Ko.range(Math.ceil(s/g)*g,o,g).filter(function(t){return us(t%v)>Ts}).map(d))}var n,i,r,a,o,s,l,u,c,d,h,p,f=10,g=f,m=90,v=360,y=2.5;return t.lines=function(){return e().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[h(a).concat(p(l).slice(1),h(r).reverse().slice(1),p(u).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.majorExtent(e).minorExtent(e):t.minorExtent()},t.majorExtent=function(e){return arguments.length?(a=+e[0][0],r=+e[1][0],u=+e[0][1],l=+e[1][1],a>r&&(e=a,a=r,r=e),u>l&&(e=u,u=l,l=e),t.precision(y)):[[a,u],[r,l]]},t.minorExtent=function(e){return arguments.length?(i=+e[0][0],n=+e[1][0],s=+e[0][1],o=+e[1][1],i>n&&(e=i,i=n,n=e),s>o&&(e=s,s=o,o=e),t.precision(y)):[[i,s],[n,o]]},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(m=+e[0],v=+e[1],t):[m,v]},t.minorStep=function(e){return arguments.length?(f=+e[0],g=+e[1],t):[f,g]},t.precision=function(e){return arguments.length?(y=+e,c=mi(s,o,90),d=vi(i,n,y),h=mi(u,l,90),p=vi(a,r,y),t):y},t.majorExtent([[-180,-90+Ts],[180,90-Ts]]).minorExtent([[-180,-80-Ts],[180,80+Ts]])},Ko.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[e||i.apply(this,arguments),n||r.apply(this,arguments)]}}var e,n,i=yi,r=bi;return t.distance=function(){return Ko.geo.distance(e||i.apply(this,arguments),n||r.apply(this,arguments))},t.source=function(n){return arguments.length?(i=n,e="function"==typeof n?null:n,t):i},t.target=function(e){return arguments.length?(r=e,n="function"==typeof e?null:e,t):r},t.precision=function(){return arguments.length?t:0},t},Ko.geo.interpolate=function(t,e){return xi(t[0]*Is,t[1]*Is,e[0]*Is,e[1]*Is)},Ko.geo.length=function(t){return Rl=0,Ko.geo.stream(t,Wl),Rl};var Rl,Wl={sphere:y,point:y,lineStart:wi,lineEnd:y,polygonStart:y,polygonEnd:y},jl=ki(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(Ko.geo.azimuthalEqualArea=function(){return ai(jl)}).raw=jl;var ql=ki(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},Me);(Ko.geo.azimuthalEquidistant=function(){return ai(ql)}).raw=ql,(Ko.geo.conicConformal=function(){return Vn($i)}).raw=$i,(Ko.geo.conicEquidistant=function(){return Vn(_i)}).raw=_i;var Vl=ki(function(t){return 1/t},Math.atan);(Ko.geo.gnomonic=function(){return ai(Vl)}).raw=Vl,Ci.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-As]},(Ko.geo.mercator=function(){return Mi(Ci)}).raw=Ci;var Bl=ki(function(){return 1},Math.asin);(Ko.geo.orthographic=function(){return ai(Bl)}).raw=Bl;var Ul=ki(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(Ko.geo.stereographic=function(){return ai(Ul)}).raw=Ul,Di.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-As]},(Ko.geo.transverseMercator=function(){var t=Mi(Di),e=t.center,n=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return t?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},n([0,0,90])}).raw=Di,Ko.geom={},Ko.geom.hull=function(t){function e(t){if(t.length<3)return[];var e,r=Ce(n),a=Ce(i),o=t.length,s=[],l=[];for(e=0;o>e;e++)s.push([+r.call(this,t[e],e),+a.call(this,t[e],e),e]);for(s.sort(Ei),e=0;o>e;e++)l.push([s[e][0],-s[e][1]]);var u=Ti(s),c=Ti(l),d=c[0]===u[0],h=c[c.length-1]===u[u.length-1],p=[];for(e=u.length-1;e>=0;--e)p.push(t[s[u[e]][2]]);for(e=+d;e<c.length-h;++e)p.push(t[s[c[e]][2]]);return p}var n=Si,i=Ai;return arguments.length?e(t):(e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(i=t,e):i},e)},Ko.geom.polygon=function(t){return fs(t,Yl),t};var Yl=Ko.geom.polygon.prototype=[];Yl.area=function(){for(var t,e=-1,n=this.length,i=this[n-1],r=0;++e<n;)t=i,i=this[e],r+=t[1]*i[0]-t[0]*i[1];return.5*r},Yl.centroid=function(t){var e,n,i=-1,r=this.length,a=0,o=0,s=this[r-1];for(arguments.length||(t=-1/(6*this.area()));++i<r;)e=s,s=this[i],n=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*n,o+=(e[1]+s[1])*n;return[a*t,o*t]},Yl.clip=function(t){for(var e,n,i,r,a,o,s=Ni(t),l=-1,u=this.length-Ni(this),c=this[u-1];++l<u;){for(e=t.slice(),t.length=0,r=this[l],a=e[(i=e.length-s)-1],n=-1;++n<i;)o=e[n],Ii(o,c,r)?(Ii(a,c,r)||t.push(Pi(a,o,c,r)),t.push(o)):Ii(a,c,r)&&t.push(Pi(a,o,c,r)),a=o;s&&t.push(t[0]),c=r}return t};var Xl,Kl,Gl,Zl,Ql,Jl=[],tu=[];ji.prototype.prepare=function(){for(var t,e=this.edges,n=e.length;n--;)t=e[n].edge,t.b&&t.a||e.splice(n,1);return e.sort(Vi),e.length},tr.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},er.prototype={insert:function(t,e){var n,i,r;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=ar(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)i=n.U,n===i.L?(r=i.R,r&&r.C?(n.C=r.C=!1,i.C=!0,t=i):(t===n.R&&(ir(this,n),t=n,n=t.U),n.C=!1,i.C=!0,rr(this,i))):(r=i.L,r&&r.C?(n.C=r.C=!1,i.C=!0,t=i):(t===n.L&&(rr(this,n),t=n,n=t.U),n.C=!1,i.C=!0,ir(this,i))),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,i,r=t.U,a=t.L,o=t.R;if(n=a?o?ar(o):a:o,r?r.L===t?r.L=n:r.R=n:this._=n,a&&o?(i=n.C,n.C=t.C,n.L=a,a.U=n,n!==o?(r=n.U,n.U=t.U,t=n.R,r.L=t,n.R=o,o.U=n):(n.U=r,r=n,t=n.R)):(i=t.C,t=n),t&&(t.U=r),!i){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===r.L){if(e=r.R,e.C&&(e.C=!1,r.C=!0,ir(this,r),e=r.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,rr(this,e),e=r.R),e.C=r.C,r.C=e.R.C=!1,ir(this,r),t=this._;break}}else if(e=r.L,e.C&&(e.C=!1,r.C=!0,rr(this,r),e=r.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,ir(this,e),e=r.L),e.C=r.C,r.C=e.L.C=!1,rr(this,r),t=this._;break}e.C=!0,t=r,r=r.U}while(!t.C);t&&(t.C=!1)}}},Ko.geom.voronoi=function(t){function e(t){var e=new Array(t.length),i=s[0][0],r=s[0][1],a=s[1][0],o=s[1][1];return or(n(t),s).cells.forEach(function(n,s){var l=n.edges,u=n.site,c=e[s]=l.length?l.map(function(t){var e=t.start();return[e.x,e.y]}):u.x>=i&&u.x<=a&&u.y>=r&&u.y<=o?[[i,o],[a,o],[a,r],[i,r]]:[];c.point=t[s]}),e}function n(t){return t.map(function(t,e){return{x:Math.round(a(t,e)/Ts)*Ts,y:Math.round(o(t,e)/Ts)*Ts,i:e}})}var i=Si,r=Ai,a=i,o=r,s=eu;return t?e(t):(e.links=function(t){return or(n(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},e.triangles=function(t){var e=[];return or(n(t)).cells.forEach(function(n,i){for(var r,a,o=n.site,s=n.edges.sort(Vi),l=-1,u=s.length,c=s[u-1].edge,d=c.l===o?c.r:c.l;++l<u;)r=c,a=d,c=s[l].edge,d=c.l===o?c.r:c.l,i<a.i&&i<d.i&&lr(o,a,d)<0&&e.push([t[i],t[a.i],t[d.i]])}),e},e.x=function(t){return arguments.length?(a=Ce(i=t),e):i},e.y=function(t){return arguments.length?(o=Ce(r=t),e):r},e.clipExtent=function(t){return arguments.length?(s=null==t?eu:t,e):s===eu?null:s},e.size=function(t){return arguments.length?e.clipExtent(t&&[[0,0],t]):s===eu?null:s&&s[1]},e)};var eu=[[-1e6,-1e6],[1e6,1e6]];Ko.geom.delaunay=function(t){return Ko.geom.voronoi().triangles(t)},Ko.geom.quadtree=function(t,e,n,i,r){function a(t){function a(t,e,n,i,r,a,o,s){if(!isNaN(n)&&!isNaN(i))if(t.leaf){var l=t.x,c=t.y;if(null!=l)if(us(l-n)+us(c-i)<.01)u(t,e,n,i,r,a,o,s);else{var d=t.point;t.x=t.y=t.point=null,u(t,d,l,c,r,a,o,s),u(t,e,n,i,r,a,o,s)}else t.x=n,t.y=i,t.point=e}else u(t,e,n,i,r,a,o,s)}function u(t,e,n,i,r,o,s,l){var u=.5*(r+s),c=.5*(o+l),d=n>=u,h=i>=c,p=(h<<1)+d;t.leaf=!1,t=t.nodes[p]||(t.nodes[p]=dr()),d?r=u:s=u,h?o=c:l=c,a(t,e,n,i,r,o,s,l)}var c,d,h,p,f,g,m,v,y,b=Ce(s),x=Ce(l);if(null!=e)g=e,m=n,v=i,y=r;else if(v=y=-(g=m=1/0),d=[],h=[],f=t.length,o)for(p=0;f>p;++p)c=t[p],c.x<g&&(g=c.x),c.y<m&&(m=c.y),c.x>v&&(v=c.x),c.y>y&&(y=c.y),d.push(c.x),h.push(c.y);else for(p=0;f>p;++p){var w=+b(c=t[p],p),k=+x(c,p);g>w&&(g=w),m>k&&(m=k),w>v&&(v=w),k>y&&(y=k),d.push(w),h.push(k)}var $=v-g,_=y-m;$>_?y=m+$:v=g+_;var C=dr();if(C.add=function(t){a(C,t,+b(t,++p),+x(t,p),g,m,v,y)},C.visit=function(t){hr(t,C,g,m,v,y)},p=-1,null==e){for(;++p<f;)a(C,t[p],d[p],h[p],g,m,v,y);--p}else t.forEach(C.add);return d=h=t=c=null,C}var o,s=Si,l=Ai;return(o=arguments.length)?(s=ur,l=cr,3===o&&(r=n,i=e,n=e=0),a(t)):(a.x=function(t){return arguments.length?(s=t,a):s},a.y=function(t){return arguments.length?(l=t,a):l},a.extent=function(t){return arguments.length?(null==t?e=n=i=r=null:(e=+t[0][0],n=+t[0][1],i=+t[1][0],r=+t[1][1]),a):null==e?null:[[e,n],[i,r]]},a.size=function(t){return arguments.length?(null==t?e=n=i=r=null:(e=n=0,i=+t[0],r=+t[1]),a):null==e?null:[i-e,r-n]},a)},Ko.interpolateRgb=pr,Ko.interpolateObject=fr,Ko.interpolateNumber=gr,Ko.interpolateString=mr;var nu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,iu=new RegExp(nu.source,"g");Ko.interpolate=vr,Ko.interpolators=[function(t,e){var n=typeof e;return("string"===n?Xs.has(e)||/^(#|rgb\(|hsl\()/.test(e)?pr:mr:e instanceof ae?pr:Array.isArray(e)?yr:"object"===n&&isNaN(e)?fr:gr)(t,e)}],Ko.interpolateArray=yr;var ru=function(){return Me},au=Ko.map({linear:ru,poly:Cr,quad:function(){return kr},cubic:function(){return $r},sin:function(){return Mr},exp:function(){return Dr},circle:function(){return Sr},elastic:Ar,back:Tr,bounce:function(){return Er}}),ou=Ko.map({"in":Me,out:xr,"in-out":wr,"out-in":function(t){return wr(xr(t))}});Ko.ease=function(t){var e=t.indexOf("-"),n=e>=0?t.slice(0,e):t,i=e>=0?t.slice(e+1):"in";return n=au.get(n)||ru,i=ou.get(i)||Me,br(i(n.apply(null,Go.call(arguments,1))))},Ko.interpolateHcl=Ir,Ko.interpolateHsl=Pr,Ko.interpolateLab=Nr,Ko.interpolateRound=Or,Ko.transform=function(t){var e=Qo.createElementNS(Ko.ns.prefix.svg,"g");return(Ko.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new zr(n?n.matrix:su)})(t)},zr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var su={a:1,b:0,c:0,d:1,e:0,f:0};Ko.interpolateTransform=Rr,Ko.layout={},Ko.layout.bundle=function(){return function(t){for(var e=[],n=-1,i=t.length;++n<i;)e.push(qr(t[n]));return e}},Ko.layout.chord=function(){function t(){var t,u,d,h,p,f={},g=[],m=Ko.range(a),v=[];for(n=[],i=[],t=0,h=-1;++h<a;){for(u=0,p=-1;++p<a;)u+=r[h][p];g.push(u),v.push(Ko.range(a)),t+=u}for(o&&m.sort(function(t,e){return o(g[t],g[e])}),s&&v.forEach(function(t,e){t.sort(function(t,n){return s(r[e][t],r[e][n])})}),t=(Ss-c*a)/t,u=0,h=-1;++h<a;){for(d=u,p=-1;++p<a;){var y=m[h],b=v[y][p],x=r[y][b],w=u,k=u+=x*t;f[y+"-"+b]={index:y,subindex:b,startAngle:w,endAngle:k,value:x}}i[y]={index:y,startAngle:d,endAngle:u,value:(u-d)/t},u+=c}for(h=-1;++h<a;)for(p=h-1;++p<a;){var $=f[h+"-"+p],_=f[p+"-"+h];($.value||_.value)&&n.push($.value<_.value?{source:_,target:$}:{source:$,target:_})}l&&e()}function e(){n.sort(function(t,e){return l((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)})}var n,i,r,a,o,s,l,u={},c=0;return u.matrix=function(t){return arguments.length?(a=(r=t)&&r.length,n=i=null,u):r},u.padding=function(t){return arguments.length?(c=t,n=i=null,u):c},u.sortGroups=function(t){return arguments.length?(o=t,n=i=null,u):o},u.sortSubgroups=function(t){return arguments.length?(s=t,n=null,u):s},u.sortChords=function(t){return arguments.length?(l=t,n&&e(),u):l},u.chords=function(){return n||t(),n},u.groups=function(){return i||t(),i},u},Ko.layout.force=function(){function t(t){return function(e,n,i,r){if(e.point!==t){var a=e.cx-t.x,o=e.cy-t.y,s=r-n,l=a*a+o*o;if(l>s*s/m){if(f>l){var u=e.charge/l;t.px-=a*u,t.py-=o*u}return!0}if(e.point&&l&&f>l){var u=e.pointCharge/l;t.px-=a*u,t.py-=o*u}}return!e.charge}}function e(t){t.px=Ko.event.x,t.py=Ko.event.y,s.resume()}var n,i,r,a,o,s={},l=Ko.dispatch("start","tick","end"),u=[1,1],c=.9,d=lu,h=uu,p=-30,f=cu,g=.1,m=.64,v=[],y=[];return s.tick=function(){if((i*=.99)<.005)return l.end({type:"end",alpha:i=0}),!0;var e,n,s,d,h,f,m,b,x,w=v.length,k=y.length;for(n=0;k>n;++n)s=y[n],d=s.source,h=s.target,b=h.x-d.x,x=h.y-d.y,(f=b*b+x*x)&&(f=i*a[n]*((f=Math.sqrt(f))-r[n])/f,b*=f,x*=f,h.x-=b*(m=d.weight/(h.weight+d.weight)),h.y-=x*m,d.x+=b*(m=1-m),d.y+=x*m);if((m=i*g)&&(b=u[0]/2,x=u[1]/2,n=-1,m))for(;++n<w;)s=v[n],s.x+=(b-s.x)*m,s.y+=(x-s.y)*m;if(p)for(Gr(e=Ko.geom.quadtree(v),i,o),n=-1;++n<w;)(s=v[n]).fixed||e.visit(t(s));for(n=-1;++n<w;)s=v[n],s.fixed?(s.x=s.px,s.y=s.py):(s.x-=(s.px-(s.px=s.x))*c,s.y-=(s.py-(s.py=s.y))*c);l.tick({type:"tick",alpha:i})},s.nodes=function(t){return arguments.length?(v=t,s):v},s.links=function(t){return arguments.length?(y=t,s):y},s.size=function(t){return arguments.length?(u=t,s):u},s.linkDistance=function(t){return arguments.length?(d="function"==typeof t?t:+t,s):d},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(h="function"==typeof t?t:+t,s):h},s.friction=function(t){return arguments.length?(c=+t,s):c},s.charge=function(t){return arguments.length?(p="function"==typeof t?t:+t,s):p},s.chargeDistance=function(t){return arguments.length?(f=t*t,s):Math.sqrt(f)},s.gravity=function(t){return arguments.length?(g=+t,s):g},s.theta=function(t){return arguments.length?(m=t*t,s):Math.sqrt(m)},s.alpha=function(t){return arguments.length?(t=+t,i?i=t>0?t:0:t>0&&(l.start({type:"start",alpha:i=t}),Ko.timer(s.tick)),s):i},s.start=function(){function t(t,i){if(!n){for(n=new Array(l),s=0;l>s;++s)n[s]=[];for(s=0;u>s;++s){var r=y[s];n[r.source.index].push(r.target),n[r.target.index].push(r.source)}}for(var a,o=n[e],s=-1,u=o.length;++s<u;)if(!isNaN(a=o[s][t]))return a;return Math.random()*i}var e,n,i,l=v.length,c=y.length,f=u[0],g=u[1];for(e=0;l>e;++e)(i=v[e]).index=e,i.weight=0;for(e=0;c>e;++e)i=y[e],"number"==typeof i.source&&(i.source=v[i.source]),"number"==typeof i.target&&(i.target=v[i.target]),++i.source.weight,++i.target.weight;for(e=0;l>e;++e)i=v[e],isNaN(i.x)&&(i.x=t("x",f)),isNaN(i.y)&&(i.y=t("y",g)),isNaN(i.px)&&(i.px=i.x),isNaN(i.py)&&(i.py=i.y);if(r=[],"function"==typeof d)for(e=0;c>e;++e)r[e]=+d.call(this,y[e],e);else for(e=0;c>e;++e)r[e]=d;if(a=[],"function"==typeof h)for(e=0;c>e;++e)a[e]=+h.call(this,y[e],e);else for(e=0;c>e;++e)a[e]=h;if(o=[],"function"==typeof p)for(e=0;l>e;++e)o[e]=+p.call(this,v[e],e);else for(e=0;l>e;++e)o[e]=p;return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){return n||(n=Ko.behavior.drag().origin(Me).on("dragstart.force",Ur).on("drag.force",e).on("dragend.force",Yr)),arguments.length?void this.on("mouseover.force",Xr).on("mouseout.force",Kr).call(n):n},Ko.rebind(s,l,"on")};var lu=20,uu=1,cu=1/0;Ko.layout.hierarchy=function(){function t(r){var a,o=[r],s=[];for(r.depth=0;null!=(a=o.pop());)if(s.push(a),(u=n.call(t,a,a.depth))&&(l=u.length)){for(var l,u,c;--l>=0;)o.push(c=u[l]),c.parent=a,c.depth=a.depth+1;i&&(a.value=0),a.children=u}else i&&(a.value=+i.call(t,a,a.depth)||0),delete a.children;return Jr(r,function(t){var n,r;e&&(n=t.children)&&n.sort(e),i&&(r=t.parent)&&(r.value+=t.value)}),s}var e=na,n=ta,i=ea;return t.sort=function(n){return arguments.length?(e=n,t):e},t.children=function(e){return arguments.length?(n=e,t):n},t.value=function(e){return arguments.length?(i=e,t):i},t.revalue=function(e){return i&&(Qr(e,function(t){t.children&&(t.value=0)}),Jr(e,function(e){var n;e.children||(e.value=+i.call(t,e,e.depth)||0),(n=e.parent)&&(n.value+=e.value)})),e},t},Ko.layout.partition=function(){function t(e,n,i,r){var a=e.children;if(e.x=n,e.y=e.depth*r,e.dx=i,e.dy=r,a&&(o=a.length)){var o,s,l,u=-1;for(i=e.value?i/e.value:0;++u<o;)t(s=a[u],n,l=s.value*i,r),n+=l}}function e(t){var n=t.children,i=0;if(n&&(r=n.length))for(var r,a=-1;++a<r;)i=Math.max(i,e(n[a]));return 1+i}function n(n,a){var o=i.call(this,n,a);return t(o[0],0,r[0],r[1]/e(o[0])),o}var i=Ko.layout.hierarchy(),r=[1,1];return n.size=function(t){return arguments.length?(r=t,n):r},Zr(n,i)},Ko.layout.pie=function(){function t(a){var o=a.map(function(n,i){return+e.call(t,n,i)}),s=+("function"==typeof i?i.apply(this,arguments):i),l=(("function"==typeof r?r.apply(this,arguments):r)-s)/Ko.sum(o),u=Ko.range(a.length);null!=n&&u.sort(n===du?function(t,e){return o[e]-o[t]}:function(t,e){return n(a[t],a[e])});var c=[];return u.forEach(function(t){var e;c[t]={data:a[t],value:e=o[t],startAngle:s,endAngle:s+=e*l}}),c}var e=Number,n=du,i=0,r=Ss;return t.value=function(n){return arguments.length?(e=n,t):e},t.sort=function(e){return arguments.length?(n=e,t):n},t.startAngle=function(e){return arguments.length?(i=e,t):i},t.endAngle=function(e){return arguments.length?(r=e,t):r},t};var du={};Ko.layout.stack=function(){function t(s,l){if(!(h=s.length))return s;var u=s.map(function(n,i){return e.call(t,n,i)}),c=u.map(function(e){return e.map(function(e,n){return[a.call(t,e,n),o.call(t,e,n)]})}),d=n.call(t,c,l);u=Ko.permute(u,d),c=Ko.permute(c,d);var h,p,f,g,m=i.call(t,c,l),v=u[0].length;for(f=0;v>f;++f)for(r.call(t,u[0][f],g=m[f],c[0][f][1]),p=1;h>p;++p)r.call(t,u[p][f],g+=c[p-1][f][1],c[p][f][1]);return s}var e=Me,n=sa,i=la,r=oa,a=ra,o=aa;return t.values=function(n){return arguments.length?(e=n,t):e},t.order=function(e){return arguments.length?(n="function"==typeof e?e:hu.get(e)||sa,t):n},t.offset=function(e){return arguments.length?(i="function"==typeof e?e:pu.get(e)||la,t):i},t.x=function(e){return arguments.length?(a=e,t):a},t.y=function(e){return arguments.length?(o=e,t):o},t.out=function(e){return arguments.length?(r=e,t):r},t};var hu=Ko.map({"inside-out":function(t){var e,n,i=t.length,r=t.map(ua),a=t.map(ca),o=Ko.range(i).sort(function(t,e){return r[t]-r[e]}),s=0,l=0,u=[],c=[];for(e=0;i>e;++e)n=o[e],l>s?(s+=a[n],u.push(n)):(l+=a[n],c.push(n));return c.reverse().concat(u)},reverse:function(t){return Ko.range(t.length).reverse()},"default":sa}),pu=Ko.map({silhouette:function(t){var e,n,i,r=t.length,a=t[0].length,o=[],s=0,l=[];for(n=0;a>n;++n){for(e=0,i=0;r>e;e++)i+=t[e][n][1];i>s&&(s=i),o.push(i)}for(n=0;a>n;++n)l[n]=(s-o[n])/2;return l},wiggle:function(t){var e,n,i,r,a,o,s,l,u,c=t.length,d=t[0],h=d.length,p=[];for(p[0]=l=u=0,n=1;h>n;++n){for(e=0,r=0;c>e;++e)r+=t[e][n][1];for(e=0,a=0,s=d[n][0]-d[n-1][0];c>e;++e){for(i=0,o=(t[e][n][1]-t[e][n-1][1])/(2*s);e>i;++i)o+=(t[i][n][1]-t[i][n-1][1])/s;a+=o*t[e][n][1]}p[n]=l-=r?a/r*s:0,u>l&&(u=l)}for(n=0;h>n;++n)p[n]-=u;return p},expand:function(t){var e,n,i,r=t.length,a=t[0].length,o=1/r,s=[];for(n=0;a>n;++n){for(e=0,i=0;r>e;e++)i+=t[e][n][1];if(i)for(e=0;r>e;e++)t[e][n][1]/=i;else for(e=0;r>e;e++)t[e][n][1]=o}for(n=0;a>n;++n)s[n]=0;return s},zero:la});Ko.layout.histogram=function(){function t(t,a){for(var o,s,l=[],u=t.map(n,this),c=i.call(this,u,a),d=r.call(this,c,u,a),a=-1,h=u.length,p=d.length-1,f=e?1:1/h;++a<p;)o=l[a]=[],o.dx=d[a+1]-(o.x=d[a]),o.y=0;if(p>0)for(a=-1;++a<h;)s=u[a],s>=c[0]&&s<=c[1]&&(o=l[Ko.bisect(d,s,1,p)-1],o.y+=f,o.push(t[a]));return l}var e=!0,n=Number,i=fa,r=ha;return t.value=function(e){return arguments.length?(n=e,t):n},t.range=function(e){return arguments.length?(i=Ce(e),t):i},t.bins=function(e){return arguments.length?(r="number"==typeof e?function(t){return pa(t,e)}:Ce(e),t):r},t.frequency=function(n){return arguments.length?(e=!!n,t):e},t},Ko.layout.pack=function(){function t(t,a){var o=n.call(this,t,a),s=o[0],l=r[0],u=r[1],c=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(s.x=s.y=0,Jr(s,function(t){t.r=+c(t.value)}),Jr(s,ba),i){var d=i*(e?1:Math.max(2*s.r/l,2*s.r/u))/2;Jr(s,function(t){t.r+=d}),Jr(s,ba),Jr(s,function(t){t.r-=d})}return ka(s,l/2,u/2,e?1:1/Math.max(2*s.r/l,2*s.r/u)),o}var e,n=Ko.layout.hierarchy().sort(ga),i=0,r=[1,1];return t.size=function(e){return arguments.length?(r=e,t):r},t.radius=function(n){return arguments.length?(e=null==n||"function"==typeof n?n:+n,t):e},t.padding=function(e){return arguments.length?(i=+e,t):i},Zr(t,n)},Ko.layout.tree=function(){function t(t,r){var c=o.call(this,t,r),d=c[0],h=e(d);if(Jr(h,n),h.parent.m=-h.z,Qr(h,i),u)Qr(d,a);else{var p=d,f=d,g=d;Qr(d,function(t){t.x<p.x&&(p=t),t.x>f.x&&(f=t),t.depth>g.depth&&(g=t)});var m=s(p,f)/2-p.x,v=l[0]/(f.x+s(f,p)/2+m),y=l[1]/(g.depth||1);Qr(d,function(t){t.x=(t.x+m)*v,t.y=t.depth*y})}return c}function e(t){for(var e,n={A:null,children:[t]},i=[n];null!=(e=i.pop());)for(var r,a=e.children,o=0,s=a.length;s>o;++o)i.push((a[o]=r={_:a[o],parent:e,children:(r=a[o].children)&&r.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=r);return n.children[0]}function n(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(e.length){Sa(t);var a=(e[0].z+e[e.length-1].z)/2;i?(t.z=i.z+s(t._,i._),t.m=t.z-a):t.z=a}else i&&(t.z=i.z+s(t._,i._));t.parent.A=r(t,i,t.parent.A||n[0])}function i(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function r(t,e,n){if(e){for(var i,r=t,a=t,o=e,l=r.parent.children[0],u=r.m,c=a.m,d=o.m,h=l.m;o=Ma(o),r=Ca(r),o&&r;)l=Ca(l),a=Ma(a),a.a=t,i=o.z+d-r.z-u+s(o._,r._),i>0&&(Da(Aa(o,t,n),t,i),u+=i,c+=i),d+=o.m,u+=r.m,h+=l.m,c+=a.m;o&&!Ma(a)&&(a.t=o,a.m+=d-c),r&&!Ca(l)&&(l.t=r,l.m+=u-h,n=t)}return n}function a(t){t.x*=l[0],t.y=t.depth*l[1]}var o=Ko.layout.hierarchy().sort(null).value(null),s=_a,l=[1,1],u=null;return t.separation=function(e){return arguments.length?(s=e,t):s},t.size=function(e){return arguments.length?(u=null==(l=e)?a:null,t):u?null:l},t.nodeSize=function(e){return arguments.length?(u=null==(l=e)?null:a,t):u?l:null},Zr(t,o)},Ko.layout.cluster=function(){function t(t,a){var o,s=e.call(this,t,a),l=s[0],u=0;Jr(l,function(t){var e=t.children;e&&e.length?(t.x=Ea(e),t.y=Ta(e)):(t.x=o?u+=n(t,o):0,t.y=0,o=t)});var c=Ia(l),d=Pa(l),h=c.x-n(c,d)/2,p=d.x+n(d,c)/2;return Jr(l,r?function(t){t.x=(t.x-l.x)*i[0],t.y=(l.y-t.y)*i[1]}:function(t){t.x=(t.x-h)/(p-h)*i[0],t.y=(1-(l.y?t.y/l.y:1))*i[1]}),s}var e=Ko.layout.hierarchy().sort(null).value(null),n=_a,i=[1,1],r=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(r=null==(i=e),t):r?null:i},t.nodeSize=function(e){return arguments.length?(r=null!=(i=e),t):r?i:null},Zr(t,e)},Ko.layout.treemap=function(){function t(t,e){for(var n,i,r=-1,a=t.length;++r<a;)i=(n=t[r]).value*(0>e?0:e),n.area=isNaN(i)||0>=i?0:i}function e(n){var a=n.children;if(a&&a.length){var o,s,l,u=d(n),c=[],h=a.slice(),f=1/0,g="slice"===p?u.dx:"dice"===p?u.dy:"slice-dice"===p?1&n.depth?u.dy:u.dx:Math.min(u.dx,u.dy);for(t(h,u.dx*u.dy/n.value),c.area=0;(l=h.length)>0;)c.push(o=h[l-1]),c.area+=o.area,"squarify"!==p||(s=i(c,g))<=f?(h.pop(),f=s):(c.area-=c.pop().area,r(c,g,u,!1),g=Math.min(u.dx,u.dy),c.length=c.area=0,f=1/0);c.length&&(r(c,g,u,!0),c.length=c.area=0),a.forEach(e)}}function n(e){var i=e.children;if(i&&i.length){var a,o=d(e),s=i.slice(),l=[];for(t(s,o.dx*o.dy/e.value),l.area=0;a=s.pop();)l.push(a),l.area+=a.area,null!=a.z&&(r(l,a.z?o.dx:o.dy,o,!s.length),l.length=l.area=0);i.forEach(n)}}function i(t,e){for(var n,i=t.area,r=0,a=1/0,o=-1,s=t.length;++o<s;)(n=t[o].area)&&(a>n&&(a=n),n>r&&(r=n));return i*=i,e*=e,i?Math.max(e*r*f/i,i/(e*a*f)):1/0}function r(t,e,n,i){var r,a=-1,o=t.length,s=n.x,u=n.y,c=e?l(t.area/e):0;if(e==n.dx){for((i||c>n.dy)&&(c=n.dy);++a<o;)r=t[a],r.x=s,r.y=u,r.dy=c,s+=r.dx=Math.min(n.x+n.dx-s,c?l(r.area/c):0);r.z=!0,r.dx+=n.x+n.dx-s,n.y+=c,n.dy-=c}else{for((i||c>n.dx)&&(c=n.dx);++a<o;)r=t[a],r.x=s,r.y=u,r.dx=c,u+=r.dy=Math.min(n.y+n.dy-u,c?l(r.area/c):0);r.z=!1,r.dy+=n.y+n.dy-u,n.x+=c,n.dx-=c}}function a(i){var r=o||s(i),a=r[0];return a.x=0,a.y=0,a.dx=u[0],a.dy=u[1],o&&s.revalue(a),t([a],a.dx*a.dy/a.value),(o?n:e)(a),h&&(o=r),r}var o,s=Ko.layout.hierarchy(),l=Math.round,u=[1,1],c=null,d=Na,h=!1,p="squarify",f=.5*(1+Math.sqrt(5));
return a.size=function(t){return arguments.length?(u=t,a):u},a.padding=function(t){function e(e){var n=t.call(a,e,e.depth);return null==n?Na(e):Oa(e,"number"==typeof n?[n,n,n,n]:n)}function n(e){return Oa(e,t)}if(!arguments.length)return c;var i;return d=null==(c=t)?Na:"function"==(i=typeof t)?e:"number"===i?(t=[t,t,t,t],n):n,a},a.round=function(t){return arguments.length?(l=t?Math.round:Number,a):l!=Number},a.sticky=function(t){return arguments.length?(h=t,o=null,a):h},a.ratio=function(t){return arguments.length?(f=t,a):f},a.mode=function(t){return arguments.length?(p=t+"",a):p},Zr(a,s)},Ko.random={normal:function(t,e){var n=arguments.length;return 2>n&&(e=1),1>n&&(t=0),function(){var n,i,r;do n=2*Math.random()-1,i=2*Math.random()-1,r=n*n+i*i;while(!r||r>1);return t+e*n*Math.sqrt(-2*Math.log(r)/r)}},logNormal:function(){var t=Ko.random.normal.apply(Ko,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=Ko.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;t>n;n++)e+=Math.random();return e}}},Ko.scale={};var fu={floor:Me,ceil:Me};Ko.scale.linear=function(){return ja([0,1],[0,1],vr,!1)};var gu={s:1,g:1,p:1,r:1,e:1};Ko.scale.log=function(){return Ga(Ko.scale.linear().domain([0,1]),10,!0,[1,10])};var mu=Ko.format(".0e"),vu={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};Ko.scale.pow=function(){return Za(Ko.scale.linear(),1,[0,1])},Ko.scale.sqrt=function(){return Ko.scale.pow().exponent(.5)},Ko.scale.ordinal=function(){return Ja([],{t:"range",a:[[]]})},Ko.scale.category10=function(){return Ko.scale.ordinal().range(yu)},Ko.scale.category20=function(){return Ko.scale.ordinal().range(bu)},Ko.scale.category20b=function(){return Ko.scale.ordinal().range(xu)},Ko.scale.category20c=function(){return Ko.scale.ordinal().range(wu)};var yu=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ye),bu=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ye),xu=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ye),wu=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(ye);Ko.scale.quantile=function(){return to([],[])},Ko.scale.quantize=function(){return eo(0,1,[0,1])},Ko.scale.threshold=function(){return no([.5],[0,1])},Ko.scale.identity=function(){return io([0,1])},Ko.svg={},Ko.svg.arc=function(){function t(){var t=e.apply(this,arguments),a=n.apply(this,arguments),o=i.apply(this,arguments)+ku,s=r.apply(this,arguments)+ku,l=(o>s&&(l=o,o=s,s=l),s-o),u=Ds>l?"0":"1",c=Math.cos(o),d=Math.sin(o),h=Math.cos(s),p=Math.sin(s);return l>=$u?t?"M0,"+a+"A"+a+","+a+" 0 1,1 0,"+-a+"A"+a+","+a+" 0 1,1 0,"+a+"M0,"+t+"A"+t+","+t+" 0 1,0 0,"+-t+"A"+t+","+t+" 0 1,0 0,"+t+"Z":"M0,"+a+"A"+a+","+a+" 0 1,1 0,"+-a+"A"+a+","+a+" 0 1,1 0,"+a+"Z":t?"M"+a*c+","+a*d+"A"+a+","+a+" 0 "+u+",1 "+a*h+","+a*p+"L"+t*h+","+t*p+"A"+t+","+t+" 0 "+u+",0 "+t*c+","+t*d+"Z":"M"+a*c+","+a*d+"A"+a+","+a+" 0 "+u+",1 "+a*h+","+a*p+"L0,0Z"}var e=ro,n=ao,i=oo,r=so;return t.innerRadius=function(n){return arguments.length?(e=Ce(n),t):e},t.outerRadius=function(e){return arguments.length?(n=Ce(e),t):n},t.startAngle=function(e){return arguments.length?(i=Ce(e),t):i},t.endAngle=function(e){return arguments.length?(r=Ce(e),t):r},t.centroid=function(){var t=(e.apply(this,arguments)+n.apply(this,arguments))/2,a=(i.apply(this,arguments)+r.apply(this,arguments))/2+ku;return[Math.cos(a)*t,Math.sin(a)*t]},t};var ku=-As,$u=Ss-Ts;Ko.svg.line=function(){return lo(Me)};var _u=Ko.map({linear:uo,"linear-closed":co,step:ho,"step-before":po,"step-after":fo,basis:xo,"basis-open":wo,"basis-closed":ko,bundle:$o,cardinal:vo,"cardinal-open":go,"cardinal-closed":mo,monotone:Ao});_u.forEach(function(t,e){e.key=t,e.closed=/-closed$/.test(t)});var Cu=[0,2/3,1/3,0],Mu=[0,1/3,2/3,0],Du=[0,1/6,2/3,1/6];Ko.svg.line.radial=function(){var t=lo(To);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},po.reverse=fo,fo.reverse=po,Ko.svg.area=function(){return Eo(Me)},Ko.svg.area.radial=function(){var t=Eo(To);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},Ko.svg.chord=function(){function t(t,s){var l=e(this,a,t,s),u=e(this,o,t,s);return"M"+l.p0+i(l.r,l.p1,l.a1-l.a0)+(n(l,u)?r(l.r,l.p1,l.r,l.p0):r(l.r,l.p1,u.r,u.p0)+i(u.r,u.p1,u.a1-u.a0)+r(u.r,u.p1,l.r,l.p0))+"Z"}function e(t,e,n,i){var r=e.call(t,n,i),a=s.call(t,r,i),o=l.call(t,r,i)+ku,c=u.call(t,r,i)+ku;return{r:a,a0:o,a1:c,p0:[a*Math.cos(o),a*Math.sin(o)],p1:[a*Math.cos(c),a*Math.sin(c)]}}function n(t,e){return t.a0==e.a0&&t.a1==e.a1}function i(t,e,n){return"A"+t+","+t+" 0 "+ +(n>Ds)+",1 "+e}function r(t,e,n,i){return"Q 0,0 "+i}var a=yi,o=bi,s=Io,l=oo,u=so;return t.radius=function(e){return arguments.length?(s=Ce(e),t):s},t.source=function(e){return arguments.length?(a=Ce(e),t):a},t.target=function(e){return arguments.length?(o=Ce(e),t):o},t.startAngle=function(e){return arguments.length?(l=Ce(e),t):l},t.endAngle=function(e){return arguments.length?(u=Ce(e),t):u},t},Ko.svg.diagonal=function(){function t(t,r){var a=e.call(this,t,r),o=n.call(this,t,r),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return l=l.map(i),"M"+l[0]+"C"+l[1]+" "+l[2]+" "+l[3]}var e=yi,n=bi,i=Po;return t.source=function(n){return arguments.length?(e=Ce(n),t):e},t.target=function(e){return arguments.length?(n=Ce(e),t):n},t.projection=function(e){return arguments.length?(i=e,t):i},t},Ko.svg.diagonal.radial=function(){var t=Ko.svg.diagonal(),e=Po,n=t.projection;return t.projection=function(t){return arguments.length?n(No(e=t)):e},t},Ko.svg.symbol=function(){function t(t,i){return(Su.get(e.call(this,t,i))||Ho)(n.call(this,t,i))}var e=zo,n=Oo;return t.type=function(n){return arguments.length?(e=Ce(n),t):e},t.size=function(e){return arguments.length?(n=Ce(e),t):n},t};var Su=Ko.map({circle:Ho,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*Iu)),n=e*Iu;return"M0,"+-e+"L"+n+",0 0,"+e+" "+-n+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/Eu),n=e*Eu/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/Eu),n=e*Eu/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});Ko.svg.symbolTypes=Su.keys();var Au,Tu,Eu=Math.sqrt(3),Iu=Math.tan(30*Is),Pu=[],Nu=0;Pu.call=bs.call,Pu.empty=bs.empty,Pu.node=bs.node,Pu.size=bs.size,Ko.transition=function(t){return arguments.length?Au?t.transition():t:ks.transition()},Ko.transition.prototype=Pu,Pu.select=function(t){var e,n,i,r=this.id,a=[];t=C(t);for(var o=-1,s=this.length;++o<s;){a.push(e=[]);for(var l=this[o],u=-1,c=l.length;++u<c;)(i=l[u])&&(n=t.call(i,i.__data__,u,o))?("__data__"in i&&(n.__data__=i.__data__),Wo(n,u,r,i.__transition__[r]),e.push(n)):e.push(null)}return Lo(a,r)},Pu.selectAll=function(t){var e,n,i,r,a,o=this.id,s=[];t=M(t);for(var l=-1,u=this.length;++l<u;)for(var c=this[l],d=-1,h=c.length;++d<h;)if(i=c[d]){a=i.__transition__[o],n=t.call(i,i.__data__,d,l),s.push(e=[]);for(var p=-1,f=n.length;++p<f;)(r=n[p])&&Wo(r,p,o,a),e.push(r)}return Lo(s,o)},Pu.filter=function(t){var e,n,i,r=[];"function"!=typeof t&&(t=H(t));for(var a=0,o=this.length;o>a;a++){r.push(e=[]);for(var n=this[a],s=0,l=n.length;l>s;s++)(i=n[s])&&t.call(i,i.__data__,s,a)&&e.push(i)}return Lo(r,this.id)},Pu.tween=function(t,e){var n=this.id;return arguments.length<2?this.node().__transition__[n].tween.get(t):F(this,null==e?function(e){e.__transition__[n].tween.remove(t)}:function(i){i.__transition__[n].tween.set(t,e)})},Pu.attr=function(t,e){function n(){this.removeAttribute(s)}function i(){this.removeAttributeNS(s.space,s.local)}function r(t){return null==t?n:(t+="",function(){var e,n=this.getAttribute(s);return n!==t&&(e=o(n,t),function(t){this.setAttribute(s,e(t))})})}function a(t){return null==t?i:(t+="",function(){var e,n=this.getAttributeNS(s.space,s.local);return n!==t&&(e=o(n,t),function(t){this.setAttributeNS(s.space,s.local,e(t))})})}if(arguments.length<2){for(e in t)this.attr(e,t[e]);return this}var o="transform"==t?Rr:vr,s=Ko.ns.qualify(t);return Fo(this,"attr."+t,e,s.local?a:r)},Pu.attrTween=function(t,e){function n(t,n){var i=e.call(this,t,n,this.getAttribute(r));return i&&function(t){this.setAttribute(r,i(t))}}function i(t,n){var i=e.call(this,t,n,this.getAttributeNS(r.space,r.local));return i&&function(t){this.setAttributeNS(r.space,r.local,i(t))}}var r=Ko.ns.qualify(t);return this.tween("attr."+t,r.local?i:n)},Pu.style=function(t,e,n){function i(){this.style.removeProperty(t)}function r(e){return null==e?i:(e+="",function(){var i,r=ts.getComputedStyle(this,null).getPropertyValue(t);return r!==e&&(i=vr(r,e),function(e){this.style.setProperty(t,i(e),n)})})}var a=arguments.length;if(3>a){if("string"!=typeof t){2>a&&(e="");for(n in t)this.style(n,t[n],e);return this}n=""}return Fo(this,"style."+t,e,r)},Pu.styleTween=function(t,e,n){function i(i,r){var a=e.call(this,i,r,ts.getComputedStyle(this,null).getPropertyValue(t));return a&&function(e){this.style.setProperty(t,a(e),n)}}return arguments.length<3&&(n=""),this.tween("style."+t,i)},Pu.text=function(t){return Fo(this,"text",t,Ro)},Pu.remove=function(){return this.each("end.transition",function(){var t;this.__transition__.count<2&&(t=this.parentNode)&&t.removeChild(this)})},Pu.ease=function(t){var e=this.id;return arguments.length<1?this.node().__transition__[e].ease:("function"!=typeof t&&(t=Ko.ease.apply(Ko,arguments)),F(this,function(n){n.__transition__[e].ease=t}))},Pu.delay=function(t){var e=this.id;return arguments.length<1?this.node().__transition__[e].delay:F(this,"function"==typeof t?function(n,i,r){n.__transition__[e].delay=+t.call(n,n.__data__,i,r)}:(t=+t,function(n){n.__transition__[e].delay=t}))},Pu.duration=function(t){var e=this.id;return arguments.length<1?this.node().__transition__[e].duration:F(this,"function"==typeof t?function(n,i,r){n.__transition__[e].duration=Math.max(1,t.call(n,n.__data__,i,r))}:(t=Math.max(1,t),function(n){n.__transition__[e].duration=t}))},Pu.each=function(t,e){var n=this.id;if(arguments.length<2){var i=Tu,r=Au;Au=n,F(this,function(e,i,r){Tu=e.__transition__[n],t.call(e,e.__data__,i,r)}),Tu=i,Au=r}else F(this,function(i){var r=i.__transition__[n];(r.event||(r.event=Ko.dispatch("start","end"))).on(t,e)});return this},Pu.transition=function(){for(var t,e,n,i,r=this.id,a=++Nu,o=[],s=0,l=this.length;l>s;s++){o.push(t=[]);for(var e=this[s],u=0,c=e.length;c>u;u++)(n=e[u])&&(i=Object.create(n.__transition__[r]),i.delay+=i.duration,Wo(n,u,a,i)),t.push(n)}return Lo(o,a)},Ko.svg.axis=function(){function t(t){t.each(function(){var t,u=Ko.select(this),c=this.__chart__||n,d=this.__chart__=n.copy(),h=null==l?d.ticks?d.ticks.apply(d,s):d.domain():l,p=null==e?d.tickFormat?d.tickFormat.apply(d,s):Me:e,f=u.selectAll(".tick").data(h,d),g=f.enter().insert("g",".domain").attr("class","tick").style("opacity",Ts),m=Ko.transition(f.exit()).style("opacity",Ts).remove(),v=Ko.transition(f.order()).style("opacity",1),y=Math.max(r,0)+o,b=Ha(d),x=u.selectAll(".domain").data([0]),w=(x.enter().append("path").attr("class","domain"),Ko.transition(x));g.append("line"),g.append("text");var k,$,_,C,M=g.select("line"),D=v.select("line"),S=f.select("text").text(p),A=g.select("text"),T=v.select("text"),E="top"===i||"left"===i?-1:1;if("bottom"===i||"top"===i?(t=jo,k="x",_="y",$="x2",C="y2",S.attr("dy",0>E?"0em":".71em").style("text-anchor","middle"),w.attr("d","M"+b[0]+","+E*a+"V0H"+b[1]+"V"+E*a)):(t=qo,k="y",_="x",$="y2",C="x2",S.attr("dy",".32em").style("text-anchor",0>E?"end":"start"),w.attr("d","M"+E*a+","+b[0]+"H0V"+b[1]+"H"+E*a)),M.attr(C,E*r),A.attr(_,E*y),D.attr($,0).attr(C,E*r),T.attr(k,0).attr(_,E*y),d.rangeBand){var I=d,P=I.rangeBand()/2;c=d=function(t){return I(t)+P}}else c.rangeBand?c=d:m.call(t,d,c);g.call(t,c,d),v.call(t,d,d)})}var e,n=Ko.scale.linear(),i=Ou,r=6,a=6,o=3,s=[10],l=null;return t.scale=function(e){return arguments.length?(n=e,t):n},t.orient=function(e){return arguments.length?(i=e in zu?e+"":Ou,t):i},t.ticks=function(){return arguments.length?(s=arguments,t):s},t.tickValues=function(e){return arguments.length?(l=e,t):l},t.tickFormat=function(n){return arguments.length?(e=n,t):e},t.tickSize=function(e){var n=arguments.length;return n?(r=+e,a=+arguments[n-1],t):r},t.innerTickSize=function(e){return arguments.length?(r=+e,t):r},t.outerTickSize=function(e){return arguments.length?(a=+e,t):a},t.tickPadding=function(e){return arguments.length?(o=+e,t):o},t.tickSubdivide=function(){return arguments.length&&t},t};var Ou="bottom",zu={top:1,right:1,bottom:1,left:1};Ko.svg.brush=function(){function t(a){a.each(function(){var a=Ko.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",r).on("touchstart.brush",r),o=a.selectAll(".background").data([0]);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),a.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var s=a.selectAll(".resize").data(f,Me);s.exit().remove(),s.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return Hu[t]}).append("rect").attr("x",function(t){return/[ew]$/.test(t)?-3:null}).attr("y",function(t){return/^[ns]/.test(t)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),s.style("display",t.empty()?"none":null);var c,d=Ko.transition(a),h=Ko.transition(o);l&&(c=Ha(l),h.attr("x",c[0]).attr("width",c[1]-c[0]),n(d)),u&&(c=Ha(u),h.attr("y",c[0]).attr("height",c[1]-c[0]),i(d)),e(d)})}function e(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+c[+/e$/.test(t)]+","+d[+/^s/.test(t)]+")"})}function n(t){t.select(".extent").attr("x",c[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",c[1]-c[0])}function i(t){t.select(".extent").attr("y",d[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",d[1]-d[0])}function r(){function r(){32==Ko.event.keyCode&&(S||(y=null,T[0]-=c[1],T[1]-=d[1],S=2),w())}function f(){32==Ko.event.keyCode&&2==S&&(T[0]+=c[1],T[1]+=d[1],S=0,w())}function g(){var t=Ko.mouse(x),r=!1;b&&(t[0]+=b[0],t[1]+=b[1]),S||(Ko.event.altKey?(y||(y=[(c[0]+c[1])/2,(d[0]+d[1])/2]),T[0]=c[+(t[0]<y[0])],T[1]=d[+(t[1]<y[1])]):y=null),M&&m(t,l,0)&&(n(_),r=!0),D&&m(t,u,1)&&(i(_),r=!0),r&&(e(_),$({type:"brush",mode:S?"move":"resize"}))}function m(t,e,n){var i,r,s=Ha(e),l=s[0],u=s[1],f=T[n],g=n?d:c,m=g[1]-g[0];return S&&(l-=f,u-=m+f),i=(n?p:h)?Math.max(l,Math.min(u,t[n])):t[n],S?r=(i+=f)+m:(y&&(f=Math.max(l,Math.min(u,2*y[n]-i))),i>f?(r=i,i=f):r=f),g[0]!=i||g[1]!=r?(n?o=null:a=null,g[0]=i,g[1]=r,!0):void 0}function v(){g(),_.style("pointer-events","all").selectAll(".resize").style("display",t.empty()?"none":null),Ko.select("body").style("cursor",null),E.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),A(),$({type:"brushend"})}var y,b,x=this,k=Ko.select(Ko.event.target),$=s.of(x,arguments),_=Ko.select(x),C=k.datum(),M=!/^(n|s)$/.test(C)&&l,D=!/^(e|w)$/.test(C)&&u,S=k.classed("extent"),A=U(),T=Ko.mouse(x),E=Ko.select(ts).on("keydown.brush",r).on("keyup.brush",f);if(Ko.event.changedTouches?E.on("touchmove.brush",g).on("touchend.brush",v):E.on("mousemove.brush",g).on("mouseup.brush",v),_.interrupt().selectAll("*").interrupt(),S)T[0]=c[0]-T[0],T[1]=d[0]-T[1];else if(C){var I=+/w$/.test(C),P=+/^n/.test(C);b=[c[1-I]-T[0],d[1-P]-T[1]],T[0]=c[I],T[1]=d[P]}else Ko.event.altKey&&(y=T.slice());_.style("pointer-events","none").selectAll(".resize").style("display",null),Ko.select("body").style("cursor",k.style("cursor")),$({type:"brushstart"}),g()}var a,o,s=$(t,"brushstart","brush","brushend"),l=null,u=null,c=[0,0],d=[0,0],h=!0,p=!0,f=Lu[0];return t.event=function(t){t.each(function(){var t=s.of(this,arguments),e={x:c,y:d,i:a,j:o},n=this.__chart__||e;this.__chart__=e,Au?Ko.select(this).transition().each("start.brush",function(){a=n.i,o=n.j,c=n.x,d=n.y,t({type:"brushstart"})}).tween("brush:brush",function(){var n=yr(c,e.x),i=yr(d,e.y);return a=o=null,function(r){c=e.x=n(r),d=e.y=i(r),t({type:"brush",mode:"resize"})}}).each("end.brush",function(){a=e.i,o=e.j,t({type:"brush",mode:"resize"}),t({type:"brushend"})}):(t({type:"brushstart"}),t({type:"brush",mode:"resize"}),t({type:"brushend"}))})},t.x=function(e){return arguments.length?(l=e,f=Lu[!l<<1|!u],t):l},t.y=function(e){return arguments.length?(u=e,f=Lu[!l<<1|!u],t):u},t.clamp=function(e){return arguments.length?(l&&u?(h=!!e[0],p=!!e[1]):l?h=!!e:u&&(p=!!e),t):l&&u?[h,p]:l?h:u?p:null},t.extent=function(e){var n,i,r,s,h;return arguments.length?(l&&(n=e[0],i=e[1],u&&(n=n[0],i=i[0]),a=[n,i],l.invert&&(n=l(n),i=l(i)),n>i&&(h=n,n=i,i=h),(n!=c[0]||i!=c[1])&&(c=[n,i])),u&&(r=e[0],s=e[1],l&&(r=r[1],s=s[1]),o=[r,s],u.invert&&(r=u(r),s=u(s)),r>s&&(h=r,r=s,s=h),(r!=d[0]||s!=d[1])&&(d=[r,s])),t):(l&&(a?(n=a[0],i=a[1]):(n=c[0],i=c[1],l.invert&&(n=l.invert(n),i=l.invert(i)),n>i&&(h=n,n=i,i=h))),u&&(o?(r=o[0],s=o[1]):(r=d[0],s=d[1],u.invert&&(r=u.invert(r),s=u.invert(s)),r>s&&(h=r,r=s,s=h))),l&&u?[[n,r],[i,s]]:l?[n,i]:u&&[r,s])},t.clear=function(){return t.empty()||(c=[0,0],d=[0,0],a=o=null),t},t.empty=function(){return!!l&&c[0]==c[1]||!!u&&d[0]==d[1]},Ko.rebind(t,s,"on")};var Hu={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Lu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Fu=rl.format=cl.timeFormat,Ru=Fu.utc,Wu=Ru("%Y-%m-%dT%H:%M:%S.%LZ");Fu.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Vo:Wu,Vo.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},Vo.toString=Wu.toString,rl.second=Fe(function(t){return new al(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),rl.seconds=rl.second.range,rl.seconds.utc=rl.second.utc.range,rl.minute=Fe(function(t){return new al(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),rl.minutes=rl.minute.range,rl.minutes.utc=rl.minute.utc.range,rl.hour=Fe(function(t){var e=t.getTimezoneOffset()/60;return new al(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),rl.hours=rl.hour.range,rl.hours.utc=rl.hour.utc.range,rl.month=Fe(function(t){return t=rl.day(t),t.setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),rl.months=rl.month.range,rl.months.utc=rl.month.utc.range;var ju=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],qu=[[rl.second,1],[rl.second,5],[rl.second,15],[rl.second,30],[rl.minute,1],[rl.minute,5],[rl.minute,15],[rl.minute,30],[rl.hour,1],[rl.hour,3],[rl.hour,6],[rl.hour,12],[rl.day,1],[rl.day,2],[rl.week,1],[rl.month,1],[rl.month,3],[rl.year,1]],Vu=Fu.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",Sn]]),Bu={range:function(t,e,n){return Ko.range(Math.ceil(t/n)*n,+e,n).map(Uo)},floor:Me,ceil:Me};qu.year=rl.year,rl.scale=function(){return Bo(Ko.scale.linear(),qu,Vu)};var Uu=qu.map(function(t){return[t[0].utc,t[1]]}),Yu=Ru.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",Sn]]);Uu.year=rl.year.utc,rl.scale.utc=function(){return Bo(Ko.scale.linear(),Uu,Yu)},Ko.text=De(function(t){return t.responseText}),Ko.json=function(t,e){return Se(t,"application/json",Yo,e)},Ko.html=function(t,e){return Se(t,"text/html",Xo,e)},Ko.xml=De(function(t){return t.responseXML}),"function"==typeof define&&define.amd?define(Ko):"object"==typeof module&&module.exports&&(module.exports=Ko),this.d3=Ko}(),function(){function t(t,e){return new Date(e,t+1,0).getDate()}function e(t,e,n){return function(i,r,a){var o=t(i),s=[];if(i>o&&e(o),a>1)for(;r>o;){var l=new Date(+o);n(l)%a===0&&s.push(l),e(o)}else for(;r>o;)s.push(new Date(+o)),e(o);return s}}var n=window.nv||{};n.version="1.1.15b",n.dev=!0,window.nv=n,n.tooltip=n.tooltip||{},n.utils=n.utils||{},n.models=n.models||{},n.charts={},n.graphs=[],n.logs={},n.dispatch=d3.dispatch("render_start","render_end"),n.dev&&(n.dispatch.on("render_start",function(){n.logs.startTime=+new Date}),n.dispatch.on("render_end",function(){n.logs.endTime=+new Date,n.logs.totalTime=n.logs.endTime-n.logs.startTime,n.log("total",n.logs.totalTime)})),n.log=function(){if(n.dev&&console.log&&console.log.apply)console.log.apply(console,arguments);else if(n.dev&&"function"==typeof console.log&&Function.prototype.bind){var t=Function.prototype.bind.call(console.log,console);t.apply(console,arguments)}return arguments[arguments.length-1]},n.render=function(t){t=t||1,n.render.active=!0,n.dispatch.render_start(),setTimeout(function(){for(var e,i,r=0;t>r&&(i=n.render.queue[r]);r++)e=i.generate(),typeof i.callback==typeof Function&&i.callback(e),n.graphs.push(e);n.render.queue.splice(0,r),n.render.queue.length?setTimeout(arguments.callee,0):(n.dispatch.render_end(),n.render.active=!1)},0)},n.render.active=!1,n.render.queue=[],n.addGraph=function(t){typeof arguments[0]==typeof Function&&(t={generate:arguments[0],callback:arguments[1]}),n.render.queue.push(t),n.render.active||n.render()},n.identity=function(t){return t},n.strip=function(t){return t.replace(/(\s|&)/g,"")},d3.time.monthEnd=function(t){return new Date(t.getFullYear(),t.getMonth(),0)},d3.time.monthEnds=e(d3.time.monthEnd,function(e){e.setUTCDate(e.getUTCDate()+1),e.setDate(t(e.getMonth()+1,e.getFullYear()))},function(t){return t.getMonth()}),n.interactiveGuideline=function(){"use strict";function t(d){d.each(function(d){function h(){var n=d3.mouse(this),i=n[0],r=n[1],l=!0,u=!1;if(c&&(i=d3.event.offsetX,r=d3.event.offsetY,"svg"!==d3.event.target.tagName&&(l=!1),d3.event.target.className.baseVal.match("nv-legend")&&(u=!0)),l&&(i-=a.left,r-=a.top),0>i||0>r||i>f||r>g||d3.event.relatedTarget&&void 0===d3.event.relatedTarget.ownerSVGElement||u){if(c&&d3.event.relatedTarget&&void 0===d3.event.relatedTarget.ownerSVGElement&&d3.event.relatedTarget.className.match(e.nvPointerEventsClass))return;return s.elementMouseout({mouseX:i,mouseY:r}),void t.renderGuideLine(null)}var d=o.invert(i);s.elementMousemove({mouseX:i,mouseY:r,pointXValue:d}),"dblclick"===d3.event.type&&s.elementDblclick({mouseX:i,mouseY:r,pointXValue:d})}var p=d3.select(this),f=i||960,g=r||400,m=p.selectAll("g.nv-wrap.nv-interactiveLineLayer").data([d]),v=m.enter().append("g").attr("class"," nv-wrap nv-interactiveLineLayer");v.append("g").attr("class","nv-interactiveGuideLine"),u&&(u.on("mousemove",h,!0).on("mouseout",h,!0).on("dblclick",h),t.renderGuideLine=function(t){if(l){var e=m.select(".nv-interactiveGuideLine").selectAll("line").data(null!=t?[n.utils.NaNtoZero(t)]:[],String);e.enter().append("line").attr("class","nv-guideline").attr("x1",function(t){return t}).attr("x2",function(t){return t}).attr("y1",g).attr("y2",0),e.exit().remove()}})})}var e=n.models.tooltip(),i=null,r=null,a={left:0,top:0},o=d3.scale.linear(),s=(d3.scale.linear(),d3.dispatch("elementMousemove","elementMouseout","elementDblclick")),l=!0,u=null,c=-1!==navigator.userAgent.indexOf("MSIE");return t.dispatch=s,t.tooltip=e,t.margin=function(e){return arguments.length?(a.top="undefined"!=typeof e.top?e.top:a.top,a.left="undefined"!=typeof e.left?e.left:a.left,t):a},t.width=function(e){return arguments.length?(i=e,t):i},t.height=function(e){return arguments.length?(r=e,t):r},t.xScale=function(e){return arguments.length?(o=e,t):o},t.showGuideLine=function(e){return arguments.length?(l=e,t):l},t.svgContainer=function(e){return arguments.length?(u=e,t):u},t},n.interactiveBisect=function(t,e,n){"use strict";if(!t instanceof Array)return null;"function"!=typeof n&&(n=function(t){return t.x});var i=d3.bisector(n).left,r=d3.max([0,i(t,e)-1]),a=n(t[r],r);if("undefined"==typeof a&&(a=r),a===e)return r;var o=d3.min([r+1,t.length-1]),s=n(t[o],o);return"undefined"==typeof s&&(s=o),Math.abs(s-e)>=Math.abs(a-e)?r:o},n.nearestValueIndex=function(t,e,n){"use strict";var i=1/0,r=null;return t.forEach(function(t,a){var o=Math.abs(e-t);i>=o&&n>o&&(i=o,r=a)}),r},function(){"use strict";window.nv.tooltip={},window.nv.models.tooltip=function(){function t(){if(d){var t=d3.select(d);"svg"!==t.node().tagName&&(t=t.select("svg"));var e=t.node()?t.attr("viewBox"):null;if(e){e=e.split(" ");var n=parseInt(t.style("width"))/e[2];p.left=p.left*n,p.top=p.top*n}}}function e(t){var e;e=d3.select(d?d:"body");var n=e.select(".nvtooltip");return null===n.node()&&(n=e.append("div").attr("class","nvtooltip "+(c?c:"xy-tooltip")).attr("id",g)),n.node().innerHTML=t,n.style("top",0).style("left",0).style("opacity",0),n.selectAll("div, table, td, tr").classed(m,!0),n.classed(m,!0),n.node()}function i(){if(f&&x(a)){t();var r=p.left,c=null!=u?u:p.top,g=e(b(a));if(h=g,d){var m=d.getElementsByTagName("svg")[0],v=(m?m.getBoundingClientRect():d.getBoundingClientRect(),{left:0,top:0});if(m){var y=m.getBoundingClientRect(),w=d.getBoundingClientRect(),k=y.top;if(0>k){var $=d.getBoundingClientRect();k=Math.abs(k)>$.height?0:k}v.top=Math.abs(k-w.top),v.left=Math.abs(y.left-w.left)}r+=d.offsetLeft+v.left-2*d.scrollLeft,c+=d.offsetTop+v.top-2*d.scrollTop}return l&&l>0&&(c=Math.floor(c/l)*l),n.tooltip.calcTooltipPosition([r,c],o,s,g),i}}var r=null,a=null,o="w",s=50,l=25,u=null,c=null,d=null,h=null,p={left:null,top:null},f=!0,g="nvtooltip-"+Math.floor(1e5*Math.random()),m="nv-pointer-events-none",v=function(t){return t},y=function(t){return t},b=function(t){if(null!=r)return r;if(null==t)return"";var e=d3.select(document.createElement("table")),n=e.selectAll("thead").data([t]).enter().append("thead");n.append("tr").append("td").attr("colspan",3).append("strong").classed("x-value",!0).html(y(t.value));var i=e.selectAll("tbody").data([t]).enter().append("tbody"),a=i.selectAll("tr").data(function(t){return t.series}).enter().append("tr").classed("highlight",function(t){return t.highlight});a.append("td").classed("legend-color-guide",!0).append("div").style("background-color",function(t){return t.color}),a.append("td").classed("key",!0).html(function(t){return t.key}),a.append("td").classed("value",!0).html(function(t,e){return v(t.value,e)}),a.selectAll("td").each(function(t){if(t.highlight){var e=d3.scale.linear().domain([0,1]).range(["#fff",t.color]),n=.6;d3.select(this).style("border-bottom-color",e(n)).style("border-top-color",e(n))}});var o=e.node().outerHTML;return void 0!==t.footer&&(o+="<div class='footer'>"+t.footer+"</div>"),o},x=function(t){return t&&t.series&&t.series.length>0?!0:!1};return i.nvPointerEventsClass=m,i.content=function(t){return arguments.length?(r=t,i):r},i.tooltipElem=function(){return h},i.contentGenerator=function(t){return arguments.length?("function"==typeof t&&(b=t),i):b},i.data=function(t){return arguments.length?(a=t,i):a},i.gravity=function(t){return arguments.length?(o=t,i):o},i.distance=function(t){return arguments.length?(s=t,i):s},i.snapDistance=function(t){return arguments.length?(l=t,i):l},i.classes=function(t){return arguments.length?(c=t,i):c},i.chartContainer=function(t){return arguments.length?(d=t,i):d},i.position=function(t){return arguments.length?(p.left="undefined"!=typeof t.left?t.left:p.left,p.top="undefined"!=typeof t.top?t.top:p.top,i):p},i.fixedTop=function(t){return arguments.length?(u=t,i):u},i.enabled=function(t){return arguments.length?(f=t,i):f},i.valueFormatter=function(t){return arguments.length?("function"==typeof t&&(v=t),i):v},i.headerFormatter=function(t){return arguments.length?("function"==typeof t&&(y=t),i):y},i.id=function(){return g},i},n.tooltip.show=function(t,e,i,r,a,o){var s=document.createElement("div");s.className="nvtooltip "+(o?o:"xy-tooltip");var l=a;(!a||a.tagName.match(/g|svg/i))&&(l=document.getElementsByTagName("body")[0]),s.style.left=0,s.style.top=0,s.style.opacity=0,s.innerHTML=e,l.appendChild(s),a&&(t[0]=t[0]-a.scrollLeft,t[1]=t[1]-a.scrollTop),n.tooltip.calcTooltipPosition(t,i,r,s)},n.tooltip.findFirstNonSVGParent=function(t){for(;null!==t.tagName.match(/^g|svg$/i);)t=t.parentNode;return t},n.tooltip.findTotalOffsetTop=function(t,e){var n=e;do isNaN(t.offsetTop)||(n+=t.offsetTop);while(t=t.offsetParent);return n},n.tooltip.findTotalOffsetLeft=function(t,e){var n=e;do isNaN(t.offsetLeft)||(n+=t.offsetLeft);while(t=t.offsetParent);return n},n.tooltip.calcTooltipPosition=function(t,e,i,r){var a,o,s=parseInt(r.offsetHeight),l=parseInt(r.offsetWidth),u=n.utils.windowSize().width,c=n.utils.windowSize().height,d=window.pageYOffset,h=window.pageXOffset;c=window.innerWidth>=document.body.scrollWidth?c:c-16,u=window.innerHeight>=document.body.scrollHeight?u:u-16,e=e||"s",i=i||20;var p=function(t){return n.tooltip.findTotalOffsetTop(t,o)},f=function(t){return n.tooltip.findTotalOffsetLeft(t,a)};switch(e){case"e":a=t[0]-l-i,o=t[1]-s/2;var g=f(r),m=p(r);h>g&&(a=t[0]+i>h?t[0]+i:h-g+a),d>m&&(o=d-m+o),m+s>d+c&&(o=d+c-m+o-s);break;case"w":a=t[0]+i,o=t[1]-s/2;var g=f(r),m=p(r);g+l>u&&(a=t[0]-l-i),d>m&&(o=d+5),m+s>d+c&&(o=d+c-m+o-s);break;case"n":a=t[0]-l/2-5,o=t[1]+i;var g=f(r),m=p(r);h>g&&(a=h+5),g+l>u&&(a=a-l/2+5),m+s>d+c&&(o=d+c-m+o-s);break;case"s":a=t[0]-l/2,o=t[1]-s-i;var g=f(r),m=p(r);h>g&&(a=h+5),g+l>u&&(a=a-l/2+5),d>m&&(o=d);break;case"none":a=t[0],o=t[1]-i;var g=f(r),m=p(r)}return r.style.left=a+"px",r.style.top=o+"px",r.style.opacity=1,r.style.position="absolute",r},n.tooltip.cleanup=function(){for(var t=document.getElementsByClassName("nvtooltip"),e=[];t.length;)e.push(t[0]),t[0].style.transitionDelay="0 !important",t[0].style.opacity=0,t[0].className="nvtooltip-pending-removal";setTimeout(function(){for(;e.length;){var t=e.pop();t.parentNode.removeChild(t)}},500)}}(),n.utils.windowSize=function(){var t={width:640,height:480};return document.body&&document.body.offsetWidth&&(t.width=document.body.offsetWidth,t.height=document.body.offsetHeight),"CSS1Compat"==document.compatMode&&document.documentElement&&document.documentElement.offsetWidth&&(t.width=document.documentElement.offsetWidth,t.height=document.documentElement.offsetHeight),window.innerWidth&&window.innerHeight&&(t.width=window.innerWidth,t.height=window.innerHeight),t},n.utils.windowResize=function(t){if(void 0!==t){var e=window.onresize;window.onresize=function(n){"function"==typeof e&&e(n),t(n)}}},n.utils.getColor=function(t){return arguments.length?"[object Array]"===Object.prototype.toString.call(t)?function(e,n){return e.color||t[n%t.length]}:t:n.utils.defaultColor()},n.utils.defaultColor=function(){var t=d3.scale.category20().range();return function(e,n){return e.color||t[n%t.length]}},n.utils.customTheme=function(t,e,n){e=e||function(t){return t.key},n=n||d3.scale.category20().range();var i=n.length;return function(r){var a=e(r);return i||(i=n.length),"undefined"!=typeof t[a]?"function"==typeof t[a]?t[a]():t[a]:n[--i]}},n.utils.pjax=function(t,e){function i(i){d3.html(i,function(i){var r=d3.select(e).node();
r.parentNode.replaceChild(d3.select(i).select(e).node(),r),n.utils.pjax(t,e)})}d3.selectAll(t).on("click",function(){history.pushState(this.href,this.textContent,this.href),i(this.href),d3.event.preventDefault()}),d3.select(window).on("popstate",function(){d3.event.state&&i(d3.event.state)})},n.utils.calcApproxTextWidth=function(t){if("function"==typeof t.style&&"function"==typeof t.text){var e=parseInt(t.style("font-size").replace("px","")),n=t.text().length;return n*e*.5}return 0},n.utils.NaNtoZero=function(t){return"number"!=typeof t||isNaN(t)||null===t||1/0===t?0:t},n.utils.optionsFunc=function(t){return t&&d3.map(t).forEach(function(t,e){"function"==typeof this[t]&&this[t](e)}.bind(this)),this},n.models.axis=function(){"use strict";function t(n){return n.each(function(t){var n=d3.select(this),a=n.selectAll("g.nv-wrap.nv-axis").data([t]),v=a.enter().append("g").attr("class","nvd3 nv-wrap nv-axis"),y=(v.append("g"),a.select("g"));null!==f?e.ticks(f):("top"==e.orient()||"bottom"==e.orient())&&e.ticks(Math.abs(o.range()[1]-o.range()[0])/100),y.transition().call(e),m=m||e.scale();var b=e.tickFormat();null==b&&(b=m.tickFormat());var x=y.selectAll("text.nv-axislabel").data([s||null]);switch(x.exit().remove(),e.orient()){case"top":x.enter().append("text").attr("class","nv-axislabel");var w=2==o.range().length?o.range()[1]:o.range()[o.range().length-1]+(o.range()[1]-o.range()[0]);if(x.attr("text-anchor","middle").attr("y",0).attr("x",w/2),l){var k=a.selectAll("g.nv-axisMaxMin").data(o.domain());k.enter().append("g").attr("class","nv-axisMaxMin").append("text"),k.exit().remove(),k.attr("transform",function(t){return"translate("+o(t)+",0)"}).select("text").attr("dy","-0.5em").attr("y",-e.tickPadding()).attr("text-anchor","middle").text(function(t){var e=b(t);return(""+e).match("NaN")?"":e}),k.transition().attr("transform",function(t,e){return"translate("+o.range()[e]+",0)"})}break;case"bottom":var $=36,_=30,C=y.selectAll("g").select("text");if(c%360){C.each(function(){var t=this.getBBox().width;t>_&&(_=t)});var M=Math.abs(Math.sin(c*Math.PI/180)),$=(M?M*_:_)+30;C.attr("transform",function(){return"rotate("+c+" 0,0)"}).style("text-anchor",c%360>0?"start":"end")}x.enter().append("text").attr("class","nv-axislabel");var w=2==o.range().length?o.range()[1]:o.range()[o.range().length-1]+(o.range()[1]-o.range()[0]);if(x.attr("text-anchor","middle").attr("y",$).attr("x",w/2),l){var k=a.selectAll("g.nv-axisMaxMin").data([o.domain()[0],o.domain()[o.domain().length-1]]);k.enter().append("g").attr("class","nv-axisMaxMin").append("text"),k.exit().remove(),k.attr("transform",function(t){return"translate("+(o(t)+(p?o.rangeBand()/2:0))+",0)"}).select("text").attr("dy",".71em").attr("y",e.tickPadding()).attr("transform",function(){return"rotate("+c+" 0,0)"}).style("text-anchor",c?c%360>0?"start":"end":"middle").text(function(t){var e=b(t);return(""+e).match("NaN")?"":e}),k.transition().attr("transform",function(t){return"translate("+(o(t)+(p?o.rangeBand()/2:0))+",0)"})}h&&C.attr("transform",function(t,e){return"translate(0,"+(e%2==0?"0":"12")+")"});break;case"right":if(x.enter().append("text").attr("class","nv-axislabel"),x.style("text-anchor",d?"middle":"begin").attr("transform",d?"rotate(90)":"").attr("y",d?-Math.max(i.right,r)+12:-10).attr("x",d?o.range()[0]/2:e.tickPadding()),l){var k=a.selectAll("g.nv-axisMaxMin").data(o.domain());k.enter().append("g").attr("class","nv-axisMaxMin").append("text").style("opacity",0),k.exit().remove(),k.attr("transform",function(t){return"translate(0,"+o(t)+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",e.tickPadding()).style("text-anchor","start").text(function(t){var e=b(t);return(""+e).match("NaN")?"":e}),k.transition().attr("transform",function(t,e){return"translate(0,"+o.range()[e]+")"}).select("text").style("opacity",1)}break;case"left":if(x.enter().append("text").attr("class","nv-axislabel"),x.style("text-anchor",d?"middle":"end").attr("transform",d?"rotate(-90)":"").attr("y",d?-Math.max(i.left,r)+g:-10).attr("x",d?-o.range()[0]/2:-e.tickPadding()),l){var k=a.selectAll("g.nv-axisMaxMin").data(o.domain());k.enter().append("g").attr("class","nv-axisMaxMin").append("text").style("opacity",0),k.exit().remove(),k.attr("transform",function(t){return"translate(0,"+m(t)+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",-e.tickPadding()).attr("text-anchor","end").text(function(t){var e=b(t);return(""+e).match("NaN")?"":e}),k.transition().attr("transform",function(t,e){return"translate(0,"+o.range()[e]+")"}).select("text").style("opacity",1)}}if(x.text(function(t){return t}),!l||"left"!==e.orient()&&"right"!==e.orient()||(y.selectAll("g").each(function(t){d3.select(this).select("text").attr("opacity",1),(o(t)<o.range()[1]+10||o(t)>o.range()[0]-10)&&((t>1e-10||-1e-10>t)&&d3.select(this).attr("opacity",0),d3.select(this).select("text").attr("opacity",0))}),o.domain()[0]==o.domain()[1]&&0==o.domain()[0]&&a.selectAll("g.nv-axisMaxMin").style("opacity",function(t,e){return e?0:1})),l&&("top"===e.orient()||"bottom"===e.orient())){var D=[];a.selectAll("g.nv-axisMaxMin").each(function(t,e){try{D.push(e?o(t)-this.getBBox().width-4:o(t)+this.getBBox().width+4)}catch(n){D.push(e?o(t)-4:o(t)+4)}}),y.selectAll("g").each(function(t){(o(t)<D[0]||o(t)>D[1])&&(t>1e-10||-1e-10>t?d3.select(this).remove():d3.select(this).select("text").remove())})}u&&y.selectAll(".tick").filter(function(t){return!parseFloat(Math.round(1e5*t.__data__)/1e6)&&void 0!==t.__data__}).classed("zero",!0),m=o.copy()}),t}var e=d3.svg.axis(),i={top:0,right:0,bottom:0,left:0},r=75,a=60,o=d3.scale.linear(),s=null,l=!0,u=!0,c=0,d=!0,h=!1,p=!1,f=null,g=12;e.scale(o).orient("bottom").tickFormat(function(t){return t});var m;return t.axis=e,d3.rebind(t,e,"orient","tickValues","tickSubdivide","tickSize","tickPadding","tickFormat"),d3.rebind(t,o,"domain","range","rangeBand","rangeBands"),t.options=n.utils.optionsFunc.bind(t),t.margin=function(e){return arguments.length?(i.top="undefined"!=typeof e.top?e.top:i.top,i.right="undefined"!=typeof e.right?e.right:i.right,i.bottom="undefined"!=typeof e.bottom?e.bottom:i.bottom,i.left="undefined"!=typeof e.left?e.left:i.left,t):i},t.width=function(e){return arguments.length?(r=e,t):r},t.ticks=function(e){return arguments.length?(f=e,t):f},t.height=function(e){return arguments.length?(a=e,t):a},t.axisLabel=function(e){return arguments.length?(s=e,t):s},t.showMaxMin=function(e){return arguments.length?(l=e,t):l},t.highlightZero=function(e){return arguments.length?(u=e,t):u},t.scale=function(n){return arguments.length?(o=n,e.scale(o),p="function"==typeof o.rangeBands,d3.rebind(t,o,"domain","range","rangeBand","rangeBands"),t):o},t.rotateYLabel=function(e){return arguments.length?(d=e,t):d},t.rotateLabels=function(e){return arguments.length?(c=e,t):c},t.staggerLabels=function(e){return arguments.length?(h=e,t):h},t.axisLabelDistance=function(e){return arguments.length?(g=e,t):g},t},n.models.historicalBar=function(){"use strict";function t(w){return w.each(function(t){var w=s-o.left-o.right,k=l-o.top-o.bottom,$=d3.select(this);c.domain(e||d3.extent(t[0].values.map(h).concat(f))),c.range(m?r||[.5*w/t[0].values.length,w*(t[0].values.length-.5)/t[0].values.length]:r||[0,w]),d.domain(i||d3.extent(t[0].values.map(p).concat(g))).range(a||[k,0]),c.domain()[0]===c.domain()[1]&&c.domain(c.domain()[0]?[c.domain()[0]-.01*c.domain()[0],c.domain()[1]+.01*c.domain()[1]]:[-1,1]),d.domain()[0]===d.domain()[1]&&d.domain(d.domain()[0]?[d.domain()[0]+.01*d.domain()[0],d.domain()[1]-.01*d.domain()[1]]:[-1,1]);var _=$.selectAll("g.nv-wrap.nv-historicalBar-"+u).data([t[0].values]),C=_.enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBar-"+u),M=C.append("defs"),D=C.append("g"),S=_.select("g");D.append("g").attr("class","nv-bars"),_.attr("transform","translate("+o.left+","+o.top+")"),$.on("click",function(t,e){b.chartClick({data:t,index:e,pos:d3.event,id:u})}),M.append("clipPath").attr("id","nv-chart-clip-path-"+u).append("rect"),_.select("#nv-chart-clip-path-"+u+" rect").attr("width",w).attr("height",k),S.attr("clip-path",v?"url(#nv-chart-clip-path-"+u+")":"");var A=_.select(".nv-bars").selectAll(".nv-bar").data(function(t){return t},function(t,e){return h(t,e)});A.exit().remove();A.enter().append("rect").attr("x",0).attr("y",function(t,e){return n.utils.NaNtoZero(d(Math.max(0,p(t,e))))}).attr("height",function(t,e){return n.utils.NaNtoZero(Math.abs(d(p(t,e))-d(0)))}).attr("transform",function(e,n){return"translate("+(c(h(e,n))-w/t[0].values.length*.45)+",0)"}).on("mouseover",function(e,n){x&&(d3.select(this).classed("hover",!0),b.elementMouseover({point:e,series:t[0],pos:[c(h(e,n)),d(p(e,n))],pointIndex:n,seriesIndex:0,e:d3.event}))}).on("mouseout",function(e,n){x&&(d3.select(this).classed("hover",!1),b.elementMouseout({point:e,series:t[0],pointIndex:n,seriesIndex:0,e:d3.event}))}).on("click",function(t,e){x&&(b.elementClick({value:p(t,e),data:t,index:e,pos:[c(h(t,e)),d(p(t,e))],e:d3.event,id:u}),d3.event.stopPropagation())}).on("dblclick",function(t,e){x&&(b.elementDblClick({value:p(t,e),data:t,index:e,pos:[c(h(t,e)),d(p(t,e))],e:d3.event,id:u}),d3.event.stopPropagation())});A.attr("fill",function(t,e){return y(t,e)}).attr("class",function(t,e,n){return(p(t,e)<0?"nv-bar negative":"nv-bar positive")+" nv-bar-"+n+"-"+e}).transition().attr("transform",function(e,n){return"translate("+(c(h(e,n))-w/t[0].values.length*.45)+",0)"}).attr("width",w/t[0].values.length*.9),A.transition().attr("y",function(t,e){var i=p(t,e)<0?d(0):d(0)-d(p(t,e))<1?d(0)-1:d(p(t,e));return n.utils.NaNtoZero(i)}).attr("height",function(t,e){return n.utils.NaNtoZero(Math.max(Math.abs(d(p(t,e))-d(0)),1))})}),t}var e,i,r,a,o={top:0,right:0,bottom:0,left:0},s=960,l=500,u=Math.floor(1e4*Math.random()),c=d3.scale.linear(),d=d3.scale.linear(),h=function(t){return t.x},p=function(t){return t.y},f=[],g=[0],m=!1,v=!0,y=n.utils.defaultColor(),b=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout"),x=!0;return t.highlightPoint=function(t,e){d3.select(".nv-historicalBar-"+u).select(".nv-bars .nv-bar-0-"+t).classed("hover",e)},t.clearHighlights=function(){d3.select(".nv-historicalBar-"+u).select(".nv-bars .nv-bar.hover").classed("hover",!1)},t.dispatch=b,t.options=n.utils.optionsFunc.bind(t),t.x=function(e){return arguments.length?(h=e,t):h},t.y=function(e){return arguments.length?(p=e,t):p},t.margin=function(e){return arguments.length?(o.top="undefined"!=typeof e.top?e.top:o.top,o.right="undefined"!=typeof e.right?e.right:o.right,o.bottom="undefined"!=typeof e.bottom?e.bottom:o.bottom,o.left="undefined"!=typeof e.left?e.left:o.left,t):o},t.width=function(e){return arguments.length?(s=e,t):s},t.height=function(e){return arguments.length?(l=e,t):l},t.xScale=function(e){return arguments.length?(c=e,t):c},t.yScale=function(e){return arguments.length?(d=e,t):d},t.xDomain=function(n){return arguments.length?(e=n,t):e},t.yDomain=function(e){return arguments.length?(i=e,t):i},t.xRange=function(e){return arguments.length?(r=e,t):r},t.yRange=function(e){return arguments.length?(a=e,t):a},t.forceX=function(e){return arguments.length?(f=e,t):f},t.forceY=function(e){return arguments.length?(g=e,t):g},t.padData=function(e){return arguments.length?(m=e,t):m},t.clipEdge=function(e){return arguments.length?(v=e,t):v},t.color=function(e){return arguments.length?(y=n.utils.getColor(e),t):y},t.id=function(e){return arguments.length?(u=e,t):u},t.interactive=function(){return arguments.length?(x=!1,t):x},t},n.models.bullet=function(){"use strict";function t(n){return n.each(function(t,n){{var i=h-e.left-e.right,f=p-e.top-e.bottom,v=d3.select(this),y=a.call(this,t,n).slice().sort(d3.descending),b=o.call(this,t,n).slice().sort(d3.descending),x=s.call(this,t,n).slice().sort(d3.descending),w=l.call(this,t,n).slice(),k=u.call(this,t,n).slice(),$=c.call(this,t,n).slice(),_=d3.scale.linear().domain(d3.extent(d3.merge([d,y]))).range(r?[i,0]:[0,i]);this.__chart__||d3.scale.linear().domain([0,1/0]).range(_.range())}this.__chart__=_;var C=d3.min(y),M=d3.max(y),D=y[1],S=v.selectAll("g.nv-wrap.nv-bullet").data([t]),A=S.enter().append("g").attr("class","nvd3 nv-wrap nv-bullet"),T=A.append("g"),E=S.select("g");T.append("rect").attr("class","nv-range nv-rangeMax"),T.append("rect").attr("class","nv-range nv-rangeAvg"),T.append("rect").attr("class","nv-range nv-rangeMin"),T.append("rect").attr("class","nv-measure"),T.append("path").attr("class","nv-markerTriangle"),S.attr("transform","translate("+e.left+","+e.top+")");var I=function(t){return Math.abs(_(t)-_(0))},P=function(t){return _(0>t?t:0)};E.select("rect.nv-rangeMax").attr("height",f).attr("width",I(M>0?M:C)).attr("x",P(M>0?M:C)).datum(M>0?M:C),E.select("rect.nv-rangeAvg").attr("height",f).attr("width",I(D)).attr("x",P(D)).datum(D),E.select("rect.nv-rangeMin").attr("height",f).attr("width",I(M)).attr("x",P(M)).attr("width",I(M>0?C:M)).attr("x",P(M>0?C:M)).datum(M>0?C:M),E.select("rect.nv-measure").style("fill",g).attr("height",f/3).attr("y",f/3).attr("width",0>x?_(0)-_(x[0]):_(x[0])-_(0)).attr("x",P(x)).on("mouseover",function(){m.elementMouseover({value:x[0],label:$[0]||"Current",pos:[_(x[0]),f/2]})}).on("mouseout",function(){m.elementMouseout({value:x[0],label:$[0]||"Current"})});var N=f/6;b[0]?E.selectAll("path.nv-markerTriangle").attr("transform",function(){return"translate("+_(b[0])+","+f/2+")"}).attr("d","M0,"+N+"L"+N+","+-N+" "+-N+","+-N+"Z").on("mouseover",function(){m.elementMouseover({value:b[0],label:k[0]||"Previous",pos:[_(b[0]),f/2]})}).on("mouseout",function(){m.elementMouseout({value:b[0],label:k[0]||"Previous"})}):E.selectAll("path.nv-markerTriangle").remove(),S.selectAll(".nv-range").on("mouseover",function(t,e){var n=w[e]||(e?1==e?"Mean":"Minimum":"Maximum");m.elementMouseover({value:t,label:n,pos:[_(t),f/2]})}).on("mouseout",function(t,e){var n=w[e]||(e?1==e?"Mean":"Minimum":"Maximum");m.elementMouseout({value:t,label:n})})}),t}var e={top:0,right:0,bottom:0,left:0},i="left",r=!1,a=function(t){return t.ranges},o=function(t){return t.markers},s=function(t){return t.measures},l=function(t){return t.rangeLabels?t.rangeLabels:[]},u=function(t){return t.markerLabels?t.markerLabels:[]},c=function(t){return t.measureLabels?t.measureLabels:[]},d=[0],h=380,p=30,f=null,g=n.utils.getColor(["#1f77b4"]),m=d3.dispatch("elementMouseover","elementMouseout");return t.dispatch=m,t.options=n.utils.optionsFunc.bind(t),t.orient=function(e){return arguments.length?(i=e,r="right"==i||"bottom"==i,t):i},t.ranges=function(e){return arguments.length?(a=e,t):a},t.markers=function(e){return arguments.length?(o=e,t):o},t.measures=function(e){return arguments.length?(s=e,t):s},t.forceX=function(e){return arguments.length?(d=e,t):d},t.width=function(e){return arguments.length?(h=e,t):h},t.height=function(e){return arguments.length?(p=e,t):p},t.margin=function(n){return arguments.length?(e.top="undefined"!=typeof n.top?n.top:e.top,e.right="undefined"!=typeof n.right?n.right:e.right,e.bottom="undefined"!=typeof n.bottom?n.bottom:e.bottom,e.left="undefined"!=typeof n.left?n.left:e.left,t):e},t.tickFormat=function(e){return arguments.length?(f=e,t):f},t.color=function(e){return arguments.length?(g=n.utils.getColor(e),t):g},t},n.models.bulletChart=function(){"use strict";function t(n){return n.each(function(i,p){var v=d3.select(this),y=(u||parseInt(v.style("width"))||960)-a.left-a.right,b=c-a.top-a.bottom,x=this;if(t.update=function(){t(n)},t.container=this,!i||!o.call(this,i,p)){var w=v.selectAll(".nv-noData").data([f]);return w.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),w.attr("x",a.left+y/2).attr("y",18+a.top+b/2).text(function(t){return t}),t}v.selectAll(".nv-noData").remove();var k=o.call(this,i,p).slice().sort(d3.descending),$=s.call(this,i,p).slice().sort(d3.descending),_=l.call(this,i,p).slice().sort(d3.descending),C=v.selectAll("g.nv-wrap.nv-bulletChart").data([i]),M=C.enter().append("g").attr("class","nvd3 nv-wrap nv-bulletChart"),D=M.append("g"),S=C.select("g");D.append("g").attr("class","nv-bulletWrap"),D.append("g").attr("class","nv-titles"),C.attr("transform","translate("+a.left+","+a.top+")");var A=d3.scale.linear().domain([0,Math.max(k[0],$[0],_[0])]).range(r?[y,0]:[0,y]),T=this.__chart__||d3.scale.linear().domain([0,1/0]).range(A.range());this.__chart__=A;var E=D.select(".nv-titles").append("g").attr("text-anchor","end").attr("transform","translate(-6,"+(c-a.top-a.bottom)/2+")");E.append("text").attr("class","nv-title").text(function(t){return t.title}),E.append("text").attr("class","nv-subtitle").attr("dy","1em").text(function(t){return t.subtitle}),e.width(y).height(b);var I=S.select(".nv-bulletWrap");d3.transition(I).call(e);var P=d||A.tickFormat(y/100),N=S.selectAll("g.nv-tick").data(A.ticks(y/50),function(t){return this.textContent||P(t)}),O=N.enter().append("g").attr("class","nv-tick").attr("transform",function(t){return"translate("+T(t)+",0)"}).style("opacity",1e-6);O.append("line").attr("y1",b).attr("y2",7*b/6),O.append("text").attr("text-anchor","middle").attr("dy","1em").attr("y",7*b/6).text(P);var z=d3.transition(N).attr("transform",function(t){return"translate("+A(t)+",0)"}).style("opacity",1);z.select("line").attr("y1",b).attr("y2",7*b/6),z.select("text").attr("y",7*b/6),d3.transition(N.exit()).attr("transform",function(t){return"translate("+A(t)+",0)"}).style("opacity",1e-6).remove(),g.on("tooltipShow",function(t){t.key=i.title,h&&m(t,x.parentNode)})}),d3.timer.flush(),t}var e=n.models.bullet(),i="left",r=!1,a={top:5,right:40,bottom:20,left:120},o=function(t){return t.ranges},s=function(t){return t.markers},l=function(t){return t.measures},u=null,c=55,d=null,h=!0,p=function(t,e,n){return"<h3>"+e+"</h3><p>"+n+"</p>"},f="No Data Available.",g=d3.dispatch("tooltipShow","tooltipHide"),m=function(e,i){var r=e.pos[0]+(i.offsetLeft||0)+a.left,o=e.pos[1]+(i.offsetTop||0)+a.top,s=p(e.key,e.label,e.value,e,t);n.tooltip.show([r,o],s,e.value<0?"e":"w",null,i)};return e.dispatch.on("elementMouseover.tooltip",function(t){g.tooltipShow(t)}),e.dispatch.on("elementMouseout.tooltip",function(t){g.tooltipHide(t)}),g.on("tooltipHide",function(){h&&n.tooltip.cleanup()}),t.dispatch=g,t.bullet=e,d3.rebind(t,e,"color"),t.options=n.utils.optionsFunc.bind(t),t.orient=function(e){return arguments.length?(i=e,r="right"==i||"bottom"==i,t):i},t.ranges=function(e){return arguments.length?(o=e,t):o},t.markers=function(e){return arguments.length?(s=e,t):s},t.measures=function(e){return arguments.length?(l=e,t):l},t.width=function(e){return arguments.length?(u=e,t):u},t.height=function(e){return arguments.length?(c=e,t):c},t.margin=function(e){return arguments.length?(a.top="undefined"!=typeof e.top?e.top:a.top,a.right="undefined"!=typeof e.right?e.right:a.right,a.bottom="undefined"!=typeof e.bottom?e.bottom:a.bottom,a.left="undefined"!=typeof e.left?e.left:a.left,t):a},t.tickFormat=function(e){return arguments.length?(d=e,t):d},t.tooltips=function(e){return arguments.length?(h=e,t):h},t.tooltipContent=function(e){return arguments.length?(p=e,t):p},t.noData=function(e){return arguments.length?(f=e,t):f},t},n.models.cumulativeLineChart=function(){"use strict";function t($){return $.each(function($){function E(){d3.select(t.container).style("cursor","ew-resize")}function O(){P.x=d3.event.x,P.i=Math.round(I.invert(P.x)),H()}function z(){d3.select(t.container).style("cursor","auto"),C.index=P.i,A.stateChange(C)}function H(){ie.data([P]);var e=t.transitionDuration();t.transitionDuration(0),t.update(),t.transitionDuration(e)}var L=d3.select(this).classed("nv-chart-"+_,!0),F=this,R=(p||parseInt(L.style("width"))||960)-d.left-d.right,W=(f||parseInt(L.style("height"))||400)-d.top-d.bottom;if(t.update=function(){L.transition().duration(T).call(t)},t.container=this,C.disabled=$.map(function(t){return!!t.disabled}),!M){var j;M={};for(j in C)M[j]=C[j]instanceof Array?C[j].slice(0):C[j]}var q=d3.behavior.drag().on("dragstart",E).on("drag",O).on("dragend",z);if(!($&&$.length&&$.filter(function(t){return t.values.length}).length)){var V=L.selectAll(".nv-noData").data([D]);return V.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),V.attr("x",d.left+R/2).attr("y",d.top+W/2).text(function(t){return t}),t}if(L.selectAll(".nv-noData").remove(),i=a.xScale(),r=a.yScale(),k)a.yDomain(null);else{var B=$.filter(function(t){return!t.disabled}).map(function(t){var e=d3.extent(t.values,a.y());return e[0]<-.95&&(e[0]=-.95),[(e[0]-e[1])/(1+e[1]),(e[1]-e[0])/(1+e[0])]}),U=[d3.min(B,function(t){return t[0]}),d3.max(B,function(t){return t[1]})];a.yDomain(U)}I.domain([0,$[0].values.length-1]).range([0,R]).clamp(!0);var $=e(P.i,$),Y=w?"none":"all",X=L.selectAll("g.nv-wrap.nv-cumulativeLine").data([$]),K=X.enter().append("g").attr("class","nvd3 nv-wrap nv-cumulativeLine").append("g"),G=X.select("g");if(K.append("g").attr("class","nv-interactive"),K.append("g").attr("class","nv-x nv-axis").style("pointer-events","none"),K.append("g").attr("class","nv-y nv-axis"),K.append("g").attr("class","nv-background"),K.append("g").attr("class","nv-linesWrap").style("pointer-events",Y),K.append("g").attr("class","nv-avgLinesWrap").style("pointer-events","none"),K.append("g").attr("class","nv-legendWrap"),K.append("g").attr("class","nv-controlsWrap"),g&&(l.width(R),G.select(".nv-legendWrap").datum($).call(l),d.top!=l.height()&&(d.top=l.height(),W=(f||parseInt(L.style("height"))||400)-d.top-d.bottom),G.select(".nv-legendWrap").attr("transform","translate(0,"+-d.top+")")),x){var Z=[{key:"Re-scale y-axis",disabled:!k}];u.width(140).color(["#444","#444","#444"]).rightAlign(!1).margin({top:5,right:0,bottom:5,left:20}),G.select(".nv-controlsWrap").datum(Z).attr("transform","translate(0,"+-d.top+")").call(u)}X.attr("transform","translate("+d.left+","+d.top+")"),y&&G.select(".nv-y.nv-axis").attr("transform","translate("+R+",0)");var Q=$.filter(function(t){return t.tempDisabled});X.select(".tempDisabled").remove(),Q.length&&X.append("text").attr("class","tempDisabled").attr("x",R/2).attr("y","-.71em").style("text-anchor","end").text(Q.map(function(t){return t.key}).join(", ")+" values cannot be calculated for this time period."),w&&(c.width(R).height(W).margin({left:d.left,top:d.top}).svgContainer(L).xScale(i),X.select(".nv-interactive").call(c)),K.select(".nv-background").append("rect"),G.select(".nv-background rect").attr("width",R).attr("height",W),a.y(function(t){return t.display.y}).width(R).height(W).color($.map(function(t,e){return t.color||h(t,e)}).filter(function(t,e){return!$[e].disabled&&!$[e].tempDisabled}));var J=G.select(".nv-linesWrap").datum($.filter(function(t){return!t.disabled&&!t.tempDisabled}));J.call(a),$.forEach(function(t,e){t.seriesIndex=e});var te=$.filter(function(t){return!t.disabled&&!!S(t)}),ee=G.select(".nv-avgLinesWrap").selectAll("line").data(te,function(t){return t.key}),ne=function(t){var e=r(S(t));return 0>e?0:e>W?W:e};ee.enter().append("line").style("stroke-width",2).style("stroke-dasharray","10,10").style("stroke",function(t){return a.color()(t,t.seriesIndex)}).attr("x1",0).attr("x2",R).attr("y1",ne).attr("y2",ne),ee.style("stroke-opacity",function(t){var e=r(S(t));return 0>e||e>W?0:1}).attr("x1",0).attr("x2",R).attr("y1",ne).attr("y2",ne),ee.exit().remove();var ie=J.selectAll(".nv-indexLine").data([P]);ie.enter().append("rect").attr("class","nv-indexLine").attr("width",3).attr("x",-2).attr("fill","red").attr("fill-opacity",.5).style("pointer-events","all").call(q),ie.attr("transform",function(t){return"translate("+I(t.i)+",0)"}).attr("height",W),m&&(o.scale(i).ticks(Math.min($[0].values.length,R/70)).tickSize(-W,0),G.select(".nv-x.nv-axis").attr("transform","translate(0,"+r.range()[0]+")"),d3.transition(G.select(".nv-x.nv-axis")).call(o)),v&&(s.scale(r).ticks(W/36).tickSize(-R,0),d3.transition(G.select(".nv-y.nv-axis")).call(s)),G.select(".nv-background rect").on("click",function(){P.x=d3.mouse(this)[0],P.i=Math.round(I.invert(P.x)),C.index=P.i,A.stateChange(C),H()}),a.dispatch.on("elementClick",function(t){P.i=t.pointIndex,P.x=I(P.i),C.index=P.i,A.stateChange(C),H()}),u.dispatch.on("legendClick",function(e){e.disabled=!e.disabled,k=!e.disabled,C.rescaleY=k,A.stateChange(C),t.update()}),l.dispatch.on("stateChange",function(e){C.disabled=e.disabled,A.stateChange(C),t.update()}),c.dispatch.on("elementMousemove",function(e){a.clearHighlights();var i,r,l,u=[];if($.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(o,s){r=n.interactiveBisect(o.values,e.pointXValue,t.x()),a.highlightPoint(s,r,!0);var c=o.values[r];"undefined"!=typeof c&&("undefined"==typeof i&&(i=c),"undefined"==typeof l&&(l=t.xScale()(t.x()(c,r))),u.push({key:o.key,value:t.y()(c,r),color:h(o,o.seriesIndex)}))}),u.length>2){var p=t.yScale().invert(e.mouseY),f=Math.abs(t.yScale().domain()[0]-t.yScale().domain()[1]),g=.03*f,m=n.nearestValueIndex(u.map(function(t){return t.value}),p,g);null!==m&&(u[m].highlight=!0)}var v=o.tickFormat()(t.x()(i,r),r);c.tooltip.position({left:l+d.left,top:e.mouseY+d.top}).chartContainer(F.parentNode).enabled(b).valueFormatter(function(t){return s.tickFormat()(t)}).data({value:v,series:u})(),c.renderGuideLine(l)}),c.dispatch.on("elementMouseout",function(){A.tooltipHide(),a.clearHighlights()}),A.on("tooltipShow",function(t){b&&N(t,F.parentNode)}),A.on("changeState",function(e){"undefined"!=typeof e.disabled&&($.forEach(function(t,n){t.disabled=e.disabled[n]}),C.disabled=e.disabled),"undefined"!=typeof e.index&&(P.i=e.index,P.x=I(P.i),C.index=e.index,ie.data([P])),"undefined"!=typeof e.rescaleY&&(k=e.rescaleY),t.update()})}),t}function e(t,e){return e.map(function(e){if(!e.values)return e;var n=a.y()(e.values[t],t);return-.95>n&&!E?(e.tempDisabled=!0,e):(e.tempDisabled=!1,e.values=e.values.map(function(t,e){return t.display={y:(a.y()(t,e)-n)/(1+n)},t}),e)})}var i,r,a=n.models.line(),o=n.models.axis(),s=n.models.axis(),l=n.models.legend(),u=n.models.legend(),c=n.interactiveGuideline(),d={top:30,right:30,bottom:50,left:60},h=n.utils.defaultColor(),p=null,f=null,g=!0,m=!0,v=!0,y=!1,b=!0,x=!0,w=!1,k=!0,$=function(t,e,n){return"<h3>"+t+"</h3><p>"+n+" at "+e+"</p>"},_=a.id(),C={index:0,rescaleY:k},M=null,D="No Data Available.",S=function(t){return t.average},A=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState"),T=250,E=!1;o.orient("bottom").tickPadding(7),s.orient(y?"right":"left"),u.updateState(!1);var I=d3.scale.linear(),P={i:0,x:0},N=function(e,i){var r=e.pos[0]+(i.offsetLeft||0),l=e.pos[1]+(i.offsetTop||0),u=o.tickFormat()(a.x()(e.point,e.pointIndex)),c=s.tickFormat()(a.y()(e.point,e.pointIndex)),d=$(e.series.key,u,c,e,t);n.tooltip.show([r,l],d,null,null,i)};return a.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+d.left,t.pos[1]+d.top],A.tooltipShow(t)}),a.dispatch.on("elementMouseout.tooltip",function(t){A.tooltipHide(t)}),A.on("tooltipHide",function(){b&&n.tooltip.cleanup()}),t.dispatch=A,t.lines=a,t.legend=l,t.xAxis=o,t.yAxis=s,t.interactiveLayer=c,d3.rebind(t,a,"defined","isArea","x","y","xScale","yScale","size","xDomain","yDomain","xRange","yRange","forceX","forceY","interactive","clipEdge","clipVoronoi","useVoronoi","id"),t.options=n.utils.optionsFunc.bind(t),t.margin=function(e){return arguments.length?(d.top="undefined"!=typeof e.top?e.top:d.top,d.right="undefined"!=typeof e.right?e.right:d.right,d.bottom="undefined"!=typeof e.bottom?e.bottom:d.bottom,d.left="undefined"!=typeof e.left?e.left:d.left,t):d},t.width=function(e){return arguments.length?(p=e,t):p},t.height=function(e){return arguments.length?(f=e,t):f},t.color=function(e){return arguments.length?(h=n.utils.getColor(e),l.color(h),t):h},t.rescaleY=function(e){return arguments.length?(k=e,t):k},t.showControls=function(e){return arguments.length?(x=e,t):x},t.useInteractiveGuideline=function(e){return arguments.length?(w=e,e===!0&&(t.interactive(!1),t.useVoronoi(!1)),t):w},t.showLegend=function(e){return arguments.length?(g=e,t):g},t.showXAxis=function(e){return arguments.length?(m=e,t):m},t.showYAxis=function(e){return arguments.length?(v=e,t):v},t.rightAlignYAxis=function(e){return arguments.length?(y=e,s.orient(e?"right":"left"),t):y},t.tooltips=function(e){return arguments.length?(b=e,t):b},t.tooltipContent=function(e){return arguments.length?($=e,t):$},t.state=function(e){return arguments.length?(C=e,t):C},t.defaultState=function(e){return arguments.length?(M=e,t):M},t.noData=function(e){return arguments.length?(D=e,t):D},t.average=function(e){return arguments.length?(S=e,t):S},t.transitionDuration=function(e){return arguments.length?(T=e,t):T},t.noErrorCheck=function(e){return arguments.length?(E=e,t):E},t},n.models.discreteBar=function(){"use strict";function t(n){return n.each(function(t){var n=u-l.left-l.right,d=c-l.top-l.bottom,k=d3.select(this);t.forEach(function(t,e){t.values.forEach(function(t){t.series=e})});var $=e&&i?[]:t.map(function(t){return t.values.map(function(t,e){return{x:f(t,e),y:g(t,e),y0:t.y0}})});h.domain(e||d3.merge($).map(function(t){return t.x})).rangeBands(r||[0,n],.1),p.domain(i||d3.extent(d3.merge($).map(function(t){return t.y}).concat(m))),p.range(y?a||[d-(p.domain()[0]<0?12:0),p.domain()[1]>0?12:0]:a||[d,0]),o=o||h,s=s||p.copy().range([p(0),p(0)]);{var _=k.selectAll("g.nv-wrap.nv-discretebar").data([t]),C=_.enter().append("g").attr("class","nvd3 nv-wrap nv-discretebar"),M=C.append("g");_.select("g")}M.append("g").attr("class","nv-groups"),_.attr("transform","translate("+l.left+","+l.top+")");var D=_.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t){return t.key});D.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),D.exit().transition().style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),D.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}),D.transition().style("stroke-opacity",1).style("fill-opacity",.75);var S=D.selectAll("g.nv-bar").data(function(t){return t.values});S.exit().remove();var A=S.enter().append("g").attr("transform",function(t,e){return"translate("+(h(f(t,e))+.05*h.rangeBand())+", "+p(0)+")"}).on("mouseover",function(e,n){d3.select(this).classed("hover",!0),x.elementMouseover({value:g(e,n),point:e,series:t[e.series],pos:[h(f(e,n))+h.rangeBand()*(e.series+.5)/t.length,p(g(e,n))],pointIndex:n,seriesIndex:e.series,e:d3.event})}).on("mouseout",function(e,n){d3.select(this).classed("hover",!1),x.elementMouseout({value:g(e,n),point:e,series:t[e.series],pointIndex:n,seriesIndex:e.series,e:d3.event})}).on("click",function(e,n){x.elementClick({value:g(e,n),point:e,series:t[e.series],pos:[h(f(e,n))+h.rangeBand()*(e.series+.5)/t.length,p(g(e,n))],pointIndex:n,seriesIndex:e.series,e:d3.event}),d3.event.stopPropagation()}).on("dblclick",function(e,n){x.elementDblClick({value:g(e,n),point:e,series:t[e.series],pos:[h(f(e,n))+h.rangeBand()*(e.series+.5)/t.length,p(g(e,n))],pointIndex:n,seriesIndex:e.series,e:d3.event}),d3.event.stopPropagation()});A.append("rect").attr("height",0).attr("width",.9*h.rangeBand()/t.length),y?(A.append("text").attr("text-anchor","middle"),S.select("text").text(function(t,e){return b(g(t,e))}).transition().attr("x",.9*h.rangeBand()/2).attr("y",function(t,e){return g(t,e)<0?p(g(t,e))-p(0)+12:-4})):S.selectAll("text").remove(),S.attr("class",function(t,e){return g(t,e)<0?"nv-bar negative":"nv-bar positive"}).style("fill",function(t,e){return t.color||v(t,e)}).style("stroke",function(t,e){return t.color||v(t,e)}).select("rect").attr("class",w).transition().attr("width",.9*h.rangeBand()/t.length),S.transition().attr("transform",function(t,e){var n=h(f(t,e))+.05*h.rangeBand(),i=g(t,e)<0?p(0):p(0)-p(g(t,e))<1?p(0)-1:p(g(t,e));return"translate("+n+", "+i+")"}).select("rect").attr("height",function(t,e){return Math.max(Math.abs(p(g(t,e))-p(i&&i[0]||0))||1)}),o=h.copy(),s=p.copy()}),t}var e,i,r,a,o,s,l={top:0,right:0,bottom:0,left:0},u=960,c=500,d=Math.floor(1e4*Math.random()),h=d3.scale.ordinal(),p=d3.scale.linear(),f=function(t){return t.x
},g=function(t){return t.y},m=[0],v=n.utils.defaultColor(),y=!1,b=d3.format(",.2f"),x=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout"),w="discreteBar";return t.dispatch=x,t.options=n.utils.optionsFunc.bind(t),t.x=function(e){return arguments.length?(f=e,t):f},t.y=function(e){return arguments.length?(g=e,t):g},t.margin=function(e){return arguments.length?(l.top="undefined"!=typeof e.top?e.top:l.top,l.right="undefined"!=typeof e.right?e.right:l.right,l.bottom="undefined"!=typeof e.bottom?e.bottom:l.bottom,l.left="undefined"!=typeof e.left?e.left:l.left,t):l},t.width=function(e){return arguments.length?(u=e,t):u},t.height=function(e){return arguments.length?(c=e,t):c},t.xScale=function(e){return arguments.length?(h=e,t):h},t.yScale=function(e){return arguments.length?(p=e,t):p},t.xDomain=function(n){return arguments.length?(e=n,t):e},t.yDomain=function(e){return arguments.length?(i=e,t):i},t.xRange=function(e){return arguments.length?(r=e,t):r},t.yRange=function(e){return arguments.length?(a=e,t):a},t.forceY=function(e){return arguments.length?(m=e,t):m},t.color=function(e){return arguments.length?(v=n.utils.getColor(e),t):v},t.id=function(e){return arguments.length?(d=e,t):d},t.showValues=function(e){return arguments.length?(y=e,t):y},t.valueFormat=function(e){return arguments.length?(b=e,t):b},t.rectClass=function(e){return arguments.length?(w=e,t):w},t},n.models.discreteBarChart=function(){"use strict";function t(n){return n.each(function(n){var c=d3.select(this),m=this,w=(l||parseInt(c.style("width"))||960)-s.left-s.right,k=(u||parseInt(c.style("height"))||400)-s.top-s.bottom;if(t.update=function(){y.beforeUpdate(),c.transition().duration(b).call(t)},t.container=this,!(n&&n.length&&n.filter(function(t){return t.values.length}).length)){var $=c.selectAll(".nv-noData").data([v]);return $.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),$.attr("x",s.left+w/2).attr("y",s.top+k/2).text(function(t){return t}),t}c.selectAll(".nv-noData").remove(),e=r.xScale(),i=r.yScale().clamp(!0);var _=c.selectAll("g.nv-wrap.nv-discreteBarWithAxes").data([n]),C=_.enter().append("g").attr("class","nvd3 nv-wrap nv-discreteBarWithAxes").append("g"),M=C.append("defs"),D=_.select("g");C.append("g").attr("class","nv-x nv-axis"),C.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),C.append("g").attr("class","nv-barsWrap"),D.attr("transform","translate("+s.left+","+s.top+")"),p&&D.select(".nv-y.nv-axis").attr("transform","translate("+w+",0)"),r.width(w).height(k);var S=D.select(".nv-barsWrap").datum(n.filter(function(t){return!t.disabled}));if(S.transition().call(r),M.append("clipPath").attr("id","nv-x-label-clip-"+r.id()).append("rect"),D.select("#nv-x-label-clip-"+r.id()+" rect").attr("width",e.rangeBand()*(f?2:1)).attr("height",16).attr("x",-e.rangeBand()/(f?1:2)),d){a.scale(e).ticks(w/100).tickSize(-k,0),D.select(".nv-x.nv-axis").attr("transform","translate(0,"+(i.range()[0]+(r.showValues()&&i.domain()[0]<0?16:0))+")"),D.select(".nv-x.nv-axis").transition().call(a);var A=D.select(".nv-x.nv-axis").selectAll("g");f&&A.selectAll("text").attr("transform",function(t,e,n){return"translate(0,"+(n%2==0?"5":"17")+")"})}h&&(o.scale(i).ticks(k/36).tickSize(-w,0),D.select(".nv-y.nv-axis").transition().call(o)),D.select(".nv-zeroLine line").attr("x1",0).attr("x2",w).attr("y1",i(0)).attr("y2",i(0)),y.on("tooltipShow",function(t){g&&x(t,m.parentNode)})}),t}var e,i,r=n.models.discreteBar(),a=n.models.axis(),o=n.models.axis(),s={top:15,right:10,bottom:50,left:60},l=null,u=null,c=n.utils.getColor(),d=!0,h=!0,p=!1,f=!1,g=!0,m=function(t,e,n){return"<h3>"+e+"</h3><p>"+n+"</p>"},v="No Data Available.",y=d3.dispatch("tooltipShow","tooltipHide","beforeUpdate"),b=250;a.orient("bottom").highlightZero(!1).showMaxMin(!1).tickFormat(function(t){return t}),o.orient(p?"right":"left").tickFormat(d3.format(",.1f"));var x=function(e,i){var s=e.pos[0]+(i.offsetLeft||0),l=e.pos[1]+(i.offsetTop||0),u=a.tickFormat()(r.x()(e.point,e.pointIndex)),c=o.tickFormat()(r.y()(e.point,e.pointIndex)),d=m(e.series.key,u,c,e,t);n.tooltip.show([s,l],d,e.value<0?"n":"s",null,i)};return r.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+s.left,t.pos[1]+s.top],y.tooltipShow(t)}),r.dispatch.on("elementMouseout.tooltip",function(t){y.tooltipHide(t)}),y.on("tooltipHide",function(){g&&n.tooltip.cleanup()}),t.dispatch=y,t.discretebar=r,t.xAxis=a,t.yAxis=o,d3.rebind(t,r,"x","y","xDomain","yDomain","xRange","yRange","forceX","forceY","id","showValues","valueFormat"),t.options=n.utils.optionsFunc.bind(t),t.margin=function(e){return arguments.length?(s.top="undefined"!=typeof e.top?e.top:s.top,s.right="undefined"!=typeof e.right?e.right:s.right,s.bottom="undefined"!=typeof e.bottom?e.bottom:s.bottom,s.left="undefined"!=typeof e.left?e.left:s.left,t):s},t.width=function(e){return arguments.length?(l=e,t):l},t.height=function(e){return arguments.length?(u=e,t):u},t.color=function(e){return arguments.length?(c=n.utils.getColor(e),r.color(c),t):c},t.showXAxis=function(e){return arguments.length?(d=e,t):d},t.showYAxis=function(e){return arguments.length?(h=e,t):h},t.rightAlignYAxis=function(e){return arguments.length?(p=e,o.orient(e?"right":"left"),t):p},t.staggerLabels=function(e){return arguments.length?(f=e,t):f},t.tooltips=function(e){return arguments.length?(g=e,t):g},t.tooltipContent=function(e){return arguments.length?(m=e,t):m},t.noData=function(e){return arguments.length?(v=e,t):v},t.transitionDuration=function(e){return arguments.length?(b=e,t):b},t},n.models.distribution=function(){"use strict";function t(n){return n.each(function(t){var n=(r-("x"===o?i.left+i.right:i.top+i.bottom),"x"==o?"y":"x"),c=d3.select(this);e=e||u;var d=c.selectAll("g.nv-distribution").data([t]),h=d.enter().append("g").attr("class","nvd3 nv-distribution"),p=(h.append("g"),d.select("g"));d.attr("transform","translate("+i.left+","+i.top+")");var f=p.selectAll("g.nv-dist").data(function(t){return t},function(t){return t.key});f.enter().append("g"),f.attr("class",function(t,e){return"nv-dist nv-series-"+e}).style("stroke",function(t,e){return l(t,e)});var g=f.selectAll("line.nv-dist"+o).data(function(t){return t.values});g.enter().append("line").attr(o+"1",function(t,n){return e(s(t,n))}).attr(o+"2",function(t,n){return e(s(t,n))}),f.exit().selectAll("line.nv-dist"+o).transition().attr(o+"1",function(t,e){return u(s(t,e))}).attr(o+"2",function(t,e){return u(s(t,e))}).style("stroke-opacity",0).remove(),g.attr("class",function(t,e){return"nv-dist"+o+" nv-dist"+o+"-"+e}).attr(n+"1",0).attr(n+"2",a),g.transition().attr(o+"1",function(t,e){return u(s(t,e))}).attr(o+"2",function(t,e){return u(s(t,e))}),e=u.copy()}),t}var e,i={top:0,right:0,bottom:0,left:0},r=400,a=8,o="x",s=function(t){return t[o]},l=n.utils.defaultColor(),u=d3.scale.linear();return t.options=n.utils.optionsFunc.bind(t),t.margin=function(e){return arguments.length?(i.top="undefined"!=typeof e.top?e.top:i.top,i.right="undefined"!=typeof e.right?e.right:i.right,i.bottom="undefined"!=typeof e.bottom?e.bottom:i.bottom,i.left="undefined"!=typeof e.left?e.left:i.left,t):i},t.width=function(e){return arguments.length?(r=e,t):r},t.axis=function(e){return arguments.length?(o=e,t):o},t.size=function(e){return arguments.length?(a=e,t):a},t.getData=function(e){return arguments.length?(s=d3.functor(e),t):s},t.scale=function(e){return arguments.length?(u=e,t):u},t.color=function(e){return arguments.length?(l=n.utils.getColor(e),t):l},t},n.models.historicalBarChart=function(){"use strict";function t(n){return n.each(function(v){var _=d3.select(this),C=this,M=(c||parseInt(_.style("width"))||960)-l.left-l.right,D=(d||parseInt(_.style("height"))||400)-l.top-l.bottom;if(t.update=function(){_.transition().duration(k).call(t)},t.container=this,y.disabled=v.map(function(t){return!!t.disabled}),!b){var S;b={};for(S in y)b[S]=y[S]instanceof Array?y[S].slice(0):y[S]}if(!(v&&v.length&&v.filter(function(t){return t.values.length}).length)){var A=_.selectAll(".nv-noData").data([x]);return A.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),A.attr("x",l.left+M/2).attr("y",l.top+D/2).text(function(t){return t}),t}_.selectAll(".nv-noData").remove(),e=r.xScale(),i=r.yScale();var T=_.selectAll("g.nv-wrap.nv-historicalBarChart").data([v]),E=T.enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBarChart").append("g"),I=T.select("g");E.append("g").attr("class","nv-x nv-axis"),E.append("g").attr("class","nv-y nv-axis"),E.append("g").attr("class","nv-barsWrap"),E.append("g").attr("class","nv-legendWrap"),h&&(s.width(M),I.select(".nv-legendWrap").datum(v).call(s),l.top!=s.height()&&(l.top=s.height(),D=(d||parseInt(_.style("height"))||400)-l.top-l.bottom),T.select(".nv-legendWrap").attr("transform","translate(0,"+-l.top+")")),T.attr("transform","translate("+l.left+","+l.top+")"),g&&I.select(".nv-y.nv-axis").attr("transform","translate("+M+",0)"),r.width(M).height(D).color(v.map(function(t,e){return t.color||u(t,e)}).filter(function(t,e){return!v[e].disabled}));var P=I.select(".nv-barsWrap").datum(v.filter(function(t){return!t.disabled}));P.transition().call(r),p&&(a.scale(e).tickSize(-D,0),I.select(".nv-x.nv-axis").attr("transform","translate(0,"+i.range()[0]+")"),I.select(".nv-x.nv-axis").transition().call(a)),f&&(o.scale(i).ticks(D/36).tickSize(-M,0),I.select(".nv-y.nv-axis").transition().call(o)),s.dispatch.on("legendClick",function(e){e.disabled=!e.disabled,v.filter(function(t){return!t.disabled}).length||v.map(function(t){return t.disabled=!1,T.selectAll(".nv-series").classed("disabled",!1),t}),y.disabled=v.map(function(t){return!!t.disabled}),w.stateChange(y),n.transition().call(t)}),s.dispatch.on("legendDblclick",function(e){v.forEach(function(t){t.disabled=!0}),e.disabled=!1,y.disabled=v.map(function(t){return!!t.disabled}),w.stateChange(y),t.update()}),w.on("tooltipShow",function(t){m&&$(t,C.parentNode)}),w.on("changeState",function(e){"undefined"!=typeof e.disabled&&(v.forEach(function(t,n){t.disabled=e.disabled[n]}),y.disabled=e.disabled),t.update()})}),t}var e,i,r=n.models.historicalBar(),a=n.models.axis(),o=n.models.axis(),s=n.models.legend(),l={top:30,right:90,bottom:50,left:90},u=n.utils.defaultColor(),c=null,d=null,h=!1,p=!0,f=!0,g=!1,m=!0,v=function(t,e,n){return"<h3>"+t+"</h3><p>"+n+" at "+e+"</p>"},y={},b=null,x="No Data Available.",w=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState"),k=250;a.orient("bottom").tickPadding(7),o.orient(g?"right":"left");var $=function(e,i){if(i){var s=d3.select(i).select("svg"),l=s.node()?s.attr("viewBox"):null;if(l){l=l.split(" ");var u=parseInt(s.style("width"))/l[2];e.pos[0]=e.pos[0]*u,e.pos[1]=e.pos[1]*u}}var c=e.pos[0]+(i.offsetLeft||0),d=e.pos[1]+(i.offsetTop||0),h=a.tickFormat()(r.x()(e.point,e.pointIndex)),p=o.tickFormat()(r.y()(e.point,e.pointIndex)),f=v(e.series.key,h,p,e,t);n.tooltip.show([c,d],f,null,null,i)};return r.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+l.left,t.pos[1]+l.top],w.tooltipShow(t)}),r.dispatch.on("elementMouseout.tooltip",function(t){w.tooltipHide(t)}),w.on("tooltipHide",function(){m&&n.tooltip.cleanup()}),t.dispatch=w,t.bars=r,t.legend=s,t.xAxis=a,t.yAxis=o,d3.rebind(t,r,"defined","isArea","x","y","size","xScale","yScale","xDomain","yDomain","xRange","yRange","forceX","forceY","interactive","clipEdge","clipVoronoi","id","interpolate","highlightPoint","clearHighlights","interactive"),t.options=n.utils.optionsFunc.bind(t),t.margin=function(e){return arguments.length?(l.top="undefined"!=typeof e.top?e.top:l.top,l.right="undefined"!=typeof e.right?e.right:l.right,l.bottom="undefined"!=typeof e.bottom?e.bottom:l.bottom,l.left="undefined"!=typeof e.left?e.left:l.left,t):l},t.width=function(e){return arguments.length?(c=e,t):c},t.height=function(e){return arguments.length?(d=e,t):d},t.color=function(e){return arguments.length?(u=n.utils.getColor(e),s.color(u),t):u},t.showLegend=function(e){return arguments.length?(h=e,t):h},t.showXAxis=function(e){return arguments.length?(p=e,t):p},t.showYAxis=function(e){return arguments.length?(f=e,t):f},t.rightAlignYAxis=function(e){return arguments.length?(g=e,o.orient(e?"right":"left"),t):g},t.tooltips=function(e){return arguments.length?(m=e,t):m},t.tooltipContent=function(e){return arguments.length?(v=e,t):v},t.state=function(e){return arguments.length?(y=e,t):y},t.defaultState=function(e){return arguments.length?(b=e,t):b},t.noData=function(e){return arguments.length?(x=e,t):x},t.transitionDuration=function(e){return arguments.length?(k=e,t):k},t},n.models.indentedTree=function(){"use strict";function t(e){return e.each(function(e){function n(e,i,r){return d3.event.stopPropagation(),d3.event.shiftKey&&!r?(d3.event.shiftKey=!1,e.values&&e.values.forEach(function(t){(t.values||t._values)&&n(t,0,!0)}),!0):o(e)?(e.values?(e._values=e.values,e.values=null):(e.values=e._values,e._values=null),void t.update()):!0}function i(t){return t._values&&t._values.length?p:t.values&&t.values.length?f:""}function a(t){return t._values&&t._values.length}function o(t){var e=t.values||t._values;return e&&e.length}var y=1,b=d3.select(this),x=d3.layout.tree().children(function(t){return t.values}).size([r,c]);t.update=function(){b.transition().duration(600).call(t)},e[0]||(e[0]={key:u});var w=x.nodes(e[0]),k=d3.select(this).selectAll("div").data([[w]]),$=k.enter().append("div").attr("class","nvd3 nv-wrap nv-indentedtree"),_=$.append("table"),C=k.select("table").attr("width","100%").attr("class",h);if(s){var M=_.append("thead"),D=M.append("tr");d.forEach(function(t){D.append("th").attr("width",t.width?t.width:"10%").style("text-align","numeric"==t.type?"right":"left").append("span").text(t.label)})}var S=C.selectAll("tbody").data(function(t){return t});S.enter().append("tbody"),y=d3.max(w,function(t){return t.depth}),x.size([r,y*c]);var A=S.selectAll("tr").data(function(t){return t.filter(function(t){return l&&!t.children?l(t):!0})},function(t){return t.id||t.id||++v});A.exit().remove(),A.select("img.nv-treeicon").attr("src",i).classed("folded",a);var T=A.enter().append("tr");d.forEach(function(t,e){var r=T.append("td").style("padding-left",function(t){return(e?0:t.depth*c+12+(i(t)?0:16))+"px"},"important").style("text-align","numeric"==t.type?"right":"left");0==e&&r.append("img").classed("nv-treeicon",!0).classed("nv-folded",a).attr("src",i).style("width","14px").style("height","14px").style("padding","0 1px").style("display",function(t){return i(t)?"inline-block":"none"}).on("click",n),r.each(function(n){!e&&m(n)?d3.select(this).append("a").attr("href",m).attr("class",d3.functor(t.classes)).append("span"):d3.select(this).append("span"),d3.select(this).select("span").attr("class",d3.functor(t.classes)).text(function(e){return t.format?t.format(e):e[t.key]||"-"})}),t.showCount&&(r.append("span").attr("class","nv-childrenCount"),A.selectAll("span.nv-childrenCount").text(function(t){return t.values&&t.values.length||t._values&&t._values.length?"("+(t.values&&t.values.filter(function(t){return l?l(t):!0}).length||t._values&&t._values.filter(function(t){return l?l(t):!0}).length||0)+")":""}))}),A.order().on("click",function(t){g.elementClick({row:this,data:t,pos:[t.x,t.y]})}).on("dblclick",function(t){g.elementDblclick({row:this,data:t,pos:[t.x,t.y]})}).on("mouseover",function(t){g.elementMouseover({row:this,data:t,pos:[t.x,t.y]})}).on("mouseout",function(t){g.elementMouseout({row:this,data:t,pos:[t.x,t.y]})})}),t}var e={top:0,right:0,bottom:0,left:0},i=960,r=500,a=n.utils.defaultColor(),o=Math.floor(1e4*Math.random()),s=!0,l=!1,u="No Data Available.",c=20,d=[{key:"key",label:"Name",type:"text"}],h=null,p="images/grey-plus.png",f="images/grey-minus.png",g=d3.dispatch("elementClick","elementDblclick","elementMouseover","elementMouseout"),m=function(t){return t.url},v=0;return t.options=n.utils.optionsFunc.bind(t),t.margin=function(n){return arguments.length?(e.top="undefined"!=typeof n.top?n.top:e.top,e.right="undefined"!=typeof n.right?n.right:e.right,e.bottom="undefined"!=typeof n.bottom?n.bottom:e.bottom,e.left="undefined"!=typeof n.left?n.left:e.left,t):e},t.width=function(e){return arguments.length?(i=e,t):i},t.height=function(e){return arguments.length?(r=e,t):r},t.color=function(e){return arguments.length?(a=n.utils.getColor(e),scatter.color(a),t):a},t.id=function(e){return arguments.length?(o=e,t):o},t.header=function(e){return arguments.length?(s=e,t):s},t.noData=function(e){return arguments.length?(u=e,t):u},t.filterZero=function(e){return arguments.length?(l=e,t):l},t.columns=function(e){return arguments.length?(d=e,t):d},t.tableClass=function(e){return arguments.length?(h=e,t):h},t.iconOpen=function(e){return arguments.length?(p=e,t):p},t.iconClose=function(e){return arguments.length?(f=e,t):f},t.getUrl=function(e){return arguments.length?(m=e,t):m},t},n.models.legend=function(){"use strict";function t(h){return h.each(function(t){var h=i-e.left-e.right,p=d3.select(this),f=p.selectAll("g.nv-legend").data([t]),g=(f.enter().append("g").attr("class","nvd3 nv-legend").append("g"),f.select("g"));f.attr("transform","translate("+e.left+","+e.top+")");var m=g.selectAll(".nv-series").data(function(t){return t}),v=m.enter().append("g").attr("class","nv-series").on("mouseover",function(t,e){d.legendMouseover(t,e)}).on("mouseout",function(t,e){d.legendMouseout(t,e)}).on("click",function(e,n){d.legendClick(e,n),u&&(c?(t.forEach(function(t){t.disabled=!0}),e.disabled=!1):(e.disabled=!e.disabled,t.every(function(t){return t.disabled})&&t.forEach(function(t){t.disabled=!1})),d.stateChange({disabled:t.map(function(t){return!!t.disabled})}))}).on("dblclick",function(e,n){d.legendDblclick(e,n),u&&(t.forEach(function(t){t.disabled=!0}),e.disabled=!1,d.stateChange({disabled:t.map(function(t){return!!t.disabled})}))});if(v.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5),v.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8"),m.classed("disabled",function(t){return t.disabled}),m.exit().remove(),m.select("circle").style("fill",function(t,e){return t.color||o(t,e)}).style("stroke",function(t,e){return t.color||o(t,e)}),m.select("text").text(a),s){var y=[];m.each(function(){var t,e=d3.select(this).select("text");try{if(t=e.getComputedTextLength(),0>=t)throw Error()}catch(i){t=n.utils.calcApproxTextWidth(e)}y.push(t+28)});for(var b=0,x=0,w=[];h>x&&b<y.length;)w[b]=y[b],x+=y[b++];for(0===b&&(b=1);x>h&&b>1;){w=[],b--;for(var k=0;k<y.length;k++)y[k]>(w[k%b]||0)&&(w[k%b]=y[k]);x=w.reduce(function(t,e){return t+e})}for(var $=[],_=0,C=0;b>_;_++)$[_]=C,C+=w[_];m.attr("transform",function(t,e){return"translate("+$[e%b]+","+(5+20*Math.floor(e/b))+")"}),l?g.attr("transform","translate("+(i-e.right-x)+","+e.top+")"):g.attr("transform","translate(0,"+e.top+")"),r=e.top+e.bottom+20*Math.ceil(y.length/b)}else{var M,D=5,S=5,A=0;m.attr("transform",function(){var t=d3.select(this).select("text").node().getComputedTextLength()+28;return M=S,i<e.left+e.right+M+t&&(S=M=5,D+=20),S+=t,S>A&&(A=S),"translate("+M+","+D+")"}),g.attr("transform","translate("+(i-e.right-A)+","+e.top+")"),r=e.top+e.bottom+D+15}}),t}var e={top:5,right:0,bottom:5,left:0},i=400,r=20,a=function(t){return t.key},o=n.utils.defaultColor(),s=!0,l=!0,u=!0,c=!1,d=d3.dispatch("legendClick","legendDblclick","legendMouseover","legendMouseout","stateChange");return t.dispatch=d,t.options=n.utils.optionsFunc.bind(t),t.margin=function(n){return arguments.length?(e.top="undefined"!=typeof n.top?n.top:e.top,e.right="undefined"!=typeof n.right?n.right:e.right,e.bottom="undefined"!=typeof n.bottom?n.bottom:e.bottom,e.left="undefined"!=typeof n.left?n.left:e.left,t):e},t.width=function(e){return arguments.length?(i=e,t):i},t.height=function(e){return arguments.length?(r=e,t):r},t.key=function(e){return arguments.length?(a=e,t):a},t.color=function(e){return arguments.length?(o=n.utils.getColor(e),t):o},t.align=function(e){return arguments.length?(s=e,t):s},t.rightAlign=function(e){return arguments.length?(l=e,t):l},t.updateState=function(e){return arguments.length?(u=e,t):u},t.radioButtonMode=function(e){return arguments.length?(c=e,t):c},t},n.models.line=function(){"use strict";function t(v){return v.each(function(t){var v=o-a.left-a.right,y=s-a.top-a.bottom,b=d3.select(this);e=r.xScale(),i=r.yScale(),g=g||e,m=m||i;var x=b.selectAll("g.nv-wrap.nv-line").data([t]),w=x.enter().append("g").attr("class","nvd3 nv-wrap nv-line"),k=w.append("defs"),$=w.append("g"),_=x.select("g");$.append("g").attr("class","nv-groups"),$.append("g").attr("class","nv-scatterWrap"),x.attr("transform","translate("+a.left+","+a.top+")"),r.width(v).height(y);var C=x.select(".nv-scatterWrap");C.transition().call(r),k.append("clipPath").attr("id","nv-edge-clip-"+r.id()).append("rect"),x.select("#nv-edge-clip-"+r.id()+" rect").attr("width",v).attr("height",y>0?y:0),_.attr("clip-path",p?"url(#nv-edge-clip-"+r.id()+")":""),C.attr("clip-path",p?"url(#nv-edge-clip-"+r.id()+")":"");var M=x.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t){return t.key});M.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),M.exit().remove(),M.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}).style("fill",function(t,e){return l(t,e)}).style("stroke",function(t,e){return l(t,e)}),M.transition().style("stroke-opacity",1).style("fill-opacity",.5);var D=M.selectAll("path.nv-area").data(function(t){return h(t)?[t]:[]});D.enter().append("path").attr("class","nv-area").attr("d",function(t){return d3.svg.area().interpolate(f).defined(d).x(function(t,e){return n.utils.NaNtoZero(g(u(t,e)))}).y0(function(t,e){return n.utils.NaNtoZero(m(c(t,e)))}).y1(function(){return m(i.domain()[0]<=0?i.domain()[1]>=0?0:i.domain()[1]:i.domain()[0])}).apply(this,[t.values])}),M.exit().selectAll("path.nv-area").remove(),D.transition().attr("d",function(t){return d3.svg.area().interpolate(f).defined(d).x(function(t,i){return n.utils.NaNtoZero(e(u(t,i)))}).y0(function(t,e){return n.utils.NaNtoZero(i(c(t,e)))}).y1(function(){return i(i.domain()[0]<=0?i.domain()[1]>=0?0:i.domain()[1]:i.domain()[0])}).apply(this,[t.values])});var S=M.selectAll("path.nv-line").data(function(t){return[t.values]});S.enter().append("path").attr("class","nv-line").attr("d",d3.svg.line().interpolate(f).defined(d).x(function(t,e){return n.utils.NaNtoZero(g(u(t,e)))}).y(function(t,e){return n.utils.NaNtoZero(m(c(t,e)))})),S.transition().attr("d",d3.svg.line().interpolate(f).defined(d).x(function(t,i){return n.utils.NaNtoZero(e(u(t,i)))}).y(function(t,e){return n.utils.NaNtoZero(i(c(t,e)))})),g=e.copy(),m=i.copy()}),t}var e,i,r=n.models.scatter(),a={top:0,right:0,bottom:0,left:0},o=960,s=500,l=n.utils.defaultColor(),u=function(t){return t.x},c=function(t){return t.y},d=function(t,e){return!isNaN(c(t,e))&&null!==c(t,e)},h=function(t){return t.area},p=!1,f="linear";r.size(16).sizeDomain([16,256]);var g,m;return t.dispatch=r.dispatch,t.scatter=r,d3.rebind(t,r,"id","interactive","size","xScale","yScale","zScale","xDomain","yDomain","xRange","yRange","sizeDomain","forceX","forceY","forceSize","clipVoronoi","useVoronoi","clipRadius","padData","highlightPoint","clearHighlights"),t.options=n.utils.optionsFunc.bind(t),t.margin=function(e){return arguments.length?(a.top="undefined"!=typeof e.top?e.top:a.top,a.right="undefined"!=typeof e.right?e.right:a.right,a.bottom="undefined"!=typeof e.bottom?e.bottom:a.bottom,a.left="undefined"!=typeof e.left?e.left:a.left,t):a},t.width=function(e){return arguments.length?(o=e,t):o},t.height=function(e){return arguments.length?(s=e,t):s},t.x=function(e){return arguments.length?(u=e,r.x(e),t):u},t.y=function(e){return arguments.length?(c=e,r.y(e),t):c},t.clipEdge=function(e){return arguments.length?(p=e,t):p},t.color=function(e){return arguments.length?(l=n.utils.getColor(e),r.color(l),t):l},t.interpolate=function(e){return arguments.length?(f=e,t):f},t.defined=function(e){return arguments.length?(d=e,t):d},t.isArea=function(e){return arguments.length?(h=d3.functor(e),t):h},t},n.models.lineChart=function(){"use strict";function t(b){return b.each(function(b){var M=d3.select(this),D=this,S=(d||parseInt(M.style("width"))||960)-u.left-u.right,A=(h||parseInt(M.style("height"))||400)-u.top-u.bottom;if(t.update=function(){M.transition().duration(_).call(t)},t.container=this,x.disabled=b.map(function(t){return!!t.disabled}),!w){var T;w={};for(T in x)w[T]=x[T]instanceof Array?x[T].slice(0):x[T]}if(!(b&&b.length&&b.filter(function(t){return t.values.length}).length)){var E=M.selectAll(".nv-noData").data([k]);return E.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),E.attr("x",u.left+S/2).attr("y",u.top+A/2).text(function(t){return t}),t}M.selectAll(".nv-noData").remove(),e=r.xScale(),i=r.yScale();var I=M.selectAll("g.nv-wrap.nv-lineChart").data([b]),P=I.enter().append("g").attr("class","nvd3 nv-wrap nv-lineChart").append("g"),N=I.select("g");P.append("rect").style("opacity",0),P.append("g").attr("class","nv-x nv-axis"),P.append("g").attr("class","nv-y nv-axis"),P.append("g").attr("class","nv-linesWrap"),P.append("g").attr("class","nv-legendWrap"),P.append("g").attr("class","nv-interactive"),N.select("rect").attr("width",S).attr("height",A>0?A:0),p&&(s.width(S),N.select(".nv-legendWrap").datum(b).call(s),u.top!=s.height()&&(u.top=s.height(),A=(h||parseInt(M.style("height"))||400)-u.top-u.bottom),I.select(".nv-legendWrap").attr("transform","translate(0,"+-u.top+")")),I.attr("transform","translate("+u.left+","+u.top+")"),m&&N.select(".nv-y.nv-axis").attr("transform","translate("+S+",0)"),v&&(l.width(S).height(A).margin({left:u.left,top:u.top}).svgContainer(M).xScale(e),I.select(".nv-interactive").call(l)),r.width(S).height(A).color(b.map(function(t,e){return t.color||c(t,e)}).filter(function(t,e){return!b[e].disabled}));var O=N.select(".nv-linesWrap").datum(b.filter(function(t){return!t.disabled}));O.transition().call(r),f&&(a.scale(e).ticks(S/100).tickSize(-A,0),N.select(".nv-x.nv-axis").attr("transform","translate(0,"+i.range()[0]+")"),N.select(".nv-x.nv-axis").transition().call(a)),g&&(o.scale(i).ticks(A/36).tickSize(-S,0),N.select(".nv-y.nv-axis").transition().call(o)),s.dispatch.on("stateChange",function(e){x=e,$.stateChange(x),t.update()}),l.dispatch.on("elementMousemove",function(e){r.clearHighlights();var i,s,d,h=[];if(b.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(a,o){s=n.interactiveBisect(a.values,e.pointXValue,t.x()),r.highlightPoint(o,s,!0);var l=a.values[s];"undefined"!=typeof l&&("undefined"==typeof i&&(i=l),"undefined"==typeof d&&(d=t.xScale()(t.x()(l,s))),h.push({key:a.key,value:t.y()(l,s),color:c(a,a.seriesIndex)}))}),h.length>2){var p=t.yScale().invert(e.mouseY),f=Math.abs(t.yScale().domain()[0]-t.yScale().domain()[1]),g=.03*f,m=n.nearestValueIndex(h.map(function(t){return t.value}),p,g);null!==m&&(h[m].highlight=!0)}var v=a.tickFormat()(t.x()(i,s));l.tooltip.position({left:d+u.left,top:e.mouseY+u.top}).chartContainer(D.parentNode).enabled(y).valueFormatter(function(t){return o.tickFormat()(t)}).data({value:v,series:h})(),l.renderGuideLine(d)}),l.dispatch.on("elementMouseout",function(){$.tooltipHide(),r.clearHighlights()}),$.on("tooltipShow",function(t){y&&C(t,D.parentNode)}),$.on("changeState",function(e){"undefined"!=typeof e.disabled&&b.length===e.disabled.length&&(b.forEach(function(t,n){t.disabled=e.disabled[n]}),x.disabled=e.disabled),t.update()})}),t}var e,i,r=n.models.line(),a=n.models.axis(),o=n.models.axis(),s=n.models.legend(),l=n.interactiveGuideline(),u={top:30,right:20,bottom:50,left:60},c=n.utils.defaultColor(),d=null,h=null,p=!0,f=!0,g=!0,m=!1,v=!1,y=!0,b=function(t,e,n){return"<h3>"+t+"</h3><p>"+n+" at "+e+"</p>"},x={},w=null,k="No Data Available.",$=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState"),_=250;a.orient("bottom").tickPadding(7),o.orient(m?"right":"left");var C=function(e,i){var s=e.pos[0]+(i.offsetLeft||0),l=e.pos[1]+(i.offsetTop||0),u=a.tickFormat()(r.x()(e.point,e.pointIndex)),c=o.tickFormat()(r.y()(e.point,e.pointIndex)),d=b(e.series.key,u,c,e,t);n.tooltip.show([s,l],d,null,null,i)};return r.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+u.left,t.pos[1]+u.top],$.tooltipShow(t)}),r.dispatch.on("elementMouseout.tooltip",function(t){$.tooltipHide(t)}),$.on("tooltipHide",function(){y&&n.tooltip.cleanup()}),t.dispatch=$,t.lines=r,t.legend=s,t.xAxis=a,t.yAxis=o,t.interactiveLayer=l,d3.rebind(t,r,"defined","isArea","x","y","size","xScale","yScale","xDomain","yDomain","xRange","yRange","forceX","forceY","interactive","clipEdge","clipVoronoi","useVoronoi","id","interpolate"),t.options=n.utils.optionsFunc.bind(t),t.margin=function(e){return arguments.length?(u.top="undefined"!=typeof e.top?e.top:u.top,u.right="undefined"!=typeof e.right?e.right:u.right,u.bottom="undefined"!=typeof e.bottom?e.bottom:u.bottom,u.left="undefined"!=typeof e.left?e.left:u.left,t):u},t.width=function(e){return arguments.length?(d=e,t):d},t.height=function(e){return arguments.length?(h=e,t):h},t.color=function(e){return arguments.length?(c=n.utils.getColor(e),s.color(c),t):c},t.showLegend=function(e){return arguments.length?(p=e,t):p},t.showXAxis=function(e){return arguments.length?(f=e,t):f},t.showYAxis=function(e){return arguments.length?(g=e,t):g},t.rightAlignYAxis=function(e){return arguments.length?(m=e,o.orient(e?"right":"left"),t):m},t.useInteractiveGuideline=function(e){return arguments.length?(v=e,e===!0&&(t.interactive(!1),t.useVoronoi(!1)),t):v},t.tooltips=function(e){return arguments.length?(y=e,t):y},t.tooltipContent=function(e){return arguments.length?(b=e,t):b},t.state=function(e){return arguments.length?(x=e,t):x},t.defaultState=function(e){return arguments.length?(w=e,t):w},t.noData=function(e){return arguments.length?(k=e,t):k},t.transitionDuration=function(e){return arguments.length?(_=e,t):_},t},n.models.linePlusBarChart=function(){"use strict";function t(n){return n.each(function(n){var f=d3.select(this),g=this,b=(h||parseInt(f.style("width"))||960)-d.left-d.right,C=(p||parseInt(f.style("height"))||400)-d.top-d.bottom;if(t.update=function(){f.transition().call(t)},x.disabled=n.map(function(t){return!!t.disabled}),!w){var M;w={};for(M in x)w[M]=x[M]instanceof Array?x[M].slice(0):x[M]}if(!(n&&n.length&&n.filter(function(t){return t.values.length}).length)){var D=f.selectAll(".nv-noData").data([k]);return D.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),D.attr("x",d.left+b/2).attr("y",d.top+C/2).text(function(t){return t}),t}f.selectAll(".nv-noData").remove();var S=n.filter(function(t){return!t.disabled&&t.bar}),A=n.filter(function(t){return!t.bar});e=A.filter(function(t){return!t.disabled}).length&&A.filter(function(t){return!t.disabled})[0].values.length?a.xScale():o.xScale(),i=o.yScale(),r=a.yScale();var T=d3.select(this).selectAll("g.nv-wrap.nv-linePlusBar").data([n]),E=T.enter().append("g").attr("class","nvd3 nv-wrap nv-linePlusBar").append("g"),I=T.select("g");E.append("g").attr("class","nv-x nv-axis"),E.append("g").attr("class","nv-y1 nv-axis"),E.append("g").attr("class","nv-y2 nv-axis"),E.append("g").attr("class","nv-barsWrap"),E.append("g").attr("class","nv-linesWrap"),E.append("g").attr("class","nv-legendWrap"),v&&(c.width(b/2),I.select(".nv-legendWrap").datum(n.map(function(t){return t.originalKey=void 0===t.originalKey?t.key:t.originalKey,t.key=t.originalKey+(t.bar?" (left axis)":" (right axis)"),t})).call(c),d.top!=c.height()&&(d.top=c.height(),C=(p||parseInt(f.style("height"))||400)-d.top-d.bottom),I.select(".nv-legendWrap").attr("transform","translate("+b/2+","+-d.top+")")),T.attr("transform","translate("+d.left+","+d.top+")"),a.width(b).height(C).color(n.map(function(t,e){return t.color||m(t,e)
}).filter(function(t,e){return!n[e].disabled&&!n[e].bar})),o.width(b).height(C).color(n.map(function(t,e){return t.color||m(t,e)}).filter(function(t,e){return!n[e].disabled&&n[e].bar}));var P=I.select(".nv-barsWrap").datum(S.length?S:[{values:[]}]),N=I.select(".nv-linesWrap").datum(A[0]&&!A[0].disabled?A:[{values:[]}]);d3.transition(P).call(o),d3.transition(N).call(a),s.scale(e).ticks(b/100).tickSize(-C,0),I.select(".nv-x.nv-axis").attr("transform","translate(0,"+i.range()[0]+")"),d3.transition(I.select(".nv-x.nv-axis")).call(s),l.scale(i).ticks(C/36).tickSize(-b,0),d3.transition(I.select(".nv-y1.nv-axis")).style("opacity",S.length?1:0).call(l),u.scale(r).ticks(C/36).tickSize(S.length?0:-b,0),I.select(".nv-y2.nv-axis").style("opacity",A.length?1:0).attr("transform","translate("+b+",0)"),d3.transition(I.select(".nv-y2.nv-axis")).call(u),c.dispatch.on("stateChange",function(e){x=e,$.stateChange(x),t.update()}),$.on("tooltipShow",function(t){y&&_(t,g.parentNode)}),$.on("changeState",function(e){"undefined"!=typeof e.disabled&&(n.forEach(function(t,n){t.disabled=e.disabled[n]}),x.disabled=e.disabled),t.update()})}),t}var e,i,r,a=n.models.line(),o=n.models.historicalBar(),s=n.models.axis(),l=n.models.axis(),u=n.models.axis(),c=n.models.legend(),d={top:30,right:60,bottom:50,left:60},h=null,p=null,f=function(t){return t.x},g=function(t){return t.y},m=n.utils.defaultColor(),v=!0,y=!0,b=function(t,e,n){return"<h3>"+t+"</h3><p>"+n+" at "+e+"</p>"},x={},w=null,k="No Data Available.",$=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState");o.padData(!0),a.clipEdge(!1).padData(!0),s.orient("bottom").tickPadding(7).highlightZero(!1),l.orient("left"),u.orient("right");var _=function(e,i){var r=e.pos[0]+(i.offsetLeft||0),o=e.pos[1]+(i.offsetTop||0),c=s.tickFormat()(a.x()(e.point,e.pointIndex)),d=(e.series.bar?l:u).tickFormat()(a.y()(e.point,e.pointIndex)),h=b(e.series.key,c,d,e,t);n.tooltip.show([r,o],h,e.value<0?"n":"s",null,i)};return a.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+d.left,t.pos[1]+d.top],$.tooltipShow(t)}),a.dispatch.on("elementMouseout.tooltip",function(t){$.tooltipHide(t)}),o.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+d.left,t.pos[1]+d.top],$.tooltipShow(t)}),o.dispatch.on("elementMouseout.tooltip",function(t){$.tooltipHide(t)}),$.on("tooltipHide",function(){y&&n.tooltip.cleanup()}),t.dispatch=$,t.legend=c,t.lines=a,t.bars=o,t.xAxis=s,t.y1Axis=l,t.y2Axis=u,d3.rebind(t,a,"defined","size","clipVoronoi","interpolate"),t.options=n.utils.optionsFunc.bind(t),t.x=function(e){return arguments.length?(f=e,a.x(e),o.x(e),t):f},t.y=function(e){return arguments.length?(g=e,a.y(e),o.y(e),t):g},t.margin=function(e){return arguments.length?(d.top="undefined"!=typeof e.top?e.top:d.top,d.right="undefined"!=typeof e.right?e.right:d.right,d.bottom="undefined"!=typeof e.bottom?e.bottom:d.bottom,d.left="undefined"!=typeof e.left?e.left:d.left,t):d},t.width=function(e){return arguments.length?(h=e,t):h},t.height=function(e){return arguments.length?(p=e,t):p},t.color=function(e){return arguments.length?(m=n.utils.getColor(e),c.color(m),t):m},t.showLegend=function(e){return arguments.length?(v=e,t):v},t.tooltips=function(e){return arguments.length?(y=e,t):y},t.tooltipContent=function(e){return arguments.length?(b=e,t):b},t.state=function(e){return arguments.length?(x=e,t):x},t.defaultState=function(e){return arguments.length?(w=e,t):w},t.noData=function(e){return arguments.length?(k=e,t):k},t},n.models.lineWithFocusChart=function(){"use strict";function t(n){return n.each(function(n){function $(t){var e=+("e"==t),n=e?1:-1,i=N/3;return"M"+.5*n+","+i+"A6,6 0 0 "+e+" "+6.5*n+","+(i+6)+"V"+(2*i-6)+"A6,6 0 0 "+e+" "+.5*n+","+2*i+"ZM"+2.5*n+","+(i+8)+"V"+(2*i-8)+"M"+4.5*n+","+(i+8)+"V"+(2*i-8)}function S(){p.empty()||p.extent(w),j.data([p.empty()?r.domain():w]).each(function(t){var n=r(t[0])-e.range()[0],i=e.range()[1]-r(t[1]);d3.select(this).select(".left").attr("width",0>n?0:n),d3.select(this).select(".right").attr("x",r(t[1])).attr("width",0>i?0:i)})}function A(){w=p.empty()?null:p.extent();var t=p.empty()?r.domain():p.extent();if(!(Math.abs(t[0]-t[1])<=1)){C.brush({extent:t,brush:p}),S();var e=L.select(".nv-focus .nv-linesWrap").datum(n.filter(function(t){return!t.disabled}).map(function(e){return{key:e.key,values:e.values.filter(function(e,n){return o.x()(e,n)>=t[0]&&o.x()(e,n)<=t[1]})}}));e.transition().duration(M).call(o),L.select(".nv-focus .nv-x.nv-axis").transition().duration(M).call(l),L.select(".nv-focus .nv-y.nv-axis").transition().duration(M).call(u)}}var T=d3.select(this),E=this,I=(v||parseInt(T.style("width"))||960)-f.left-f.right,P=(y||parseInt(T.style("height"))||400)-f.top-f.bottom-b,N=b-g.top-g.bottom;if(t.update=function(){T.transition().duration(M).call(t)},t.container=this,!(n&&n.length&&n.filter(function(t){return t.values.length}).length)){var O=T.selectAll(".nv-noData").data([_]);return O.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),O.attr("x",f.left+I/2).attr("y",f.top+P/2).text(function(t){return t}),t}T.selectAll(".nv-noData").remove(),e=o.xScale(),i=o.yScale(),r=s.xScale(),a=s.yScale();var z=T.selectAll("g.nv-wrap.nv-lineWithFocusChart").data([n]),H=z.enter().append("g").attr("class","nvd3 nv-wrap nv-lineWithFocusChart").append("g"),L=z.select("g");H.append("g").attr("class","nv-legendWrap");var F=H.append("g").attr("class","nv-focus");F.append("g").attr("class","nv-x nv-axis"),F.append("g").attr("class","nv-y nv-axis"),F.append("g").attr("class","nv-linesWrap");var R=H.append("g").attr("class","nv-context");R.append("g").attr("class","nv-x nv-axis"),R.append("g").attr("class","nv-y nv-axis"),R.append("g").attr("class","nv-linesWrap"),R.append("g").attr("class","nv-brushBackground"),R.append("g").attr("class","nv-x nv-brush"),x&&(h.width(I),L.select(".nv-legendWrap").datum(n).call(h),f.top!=h.height()&&(f.top=h.height(),P=(y||parseInt(T.style("height"))||400)-f.top-f.bottom-b),L.select(".nv-legendWrap").attr("transform","translate(0,"+-f.top+")")),z.attr("transform","translate("+f.left+","+f.top+")"),o.width(I).height(P).color(n.map(function(t,e){return t.color||m(t,e)}).filter(function(t,e){return!n[e].disabled})),s.defined(o.defined()).width(I).height(N).color(n.map(function(t,e){return t.color||m(t,e)}).filter(function(t,e){return!n[e].disabled})),L.select(".nv-context").attr("transform","translate(0,"+(P+f.bottom+g.top)+")");var W=L.select(".nv-context .nv-linesWrap").datum(n.filter(function(t){return!t.disabled}));d3.transition(W).call(s),l.scale(e).ticks(I/100).tickSize(-P,0),u.scale(i).ticks(P/36).tickSize(-I,0),L.select(".nv-focus .nv-x.nv-axis").attr("transform","translate(0,"+P+")"),p.x(r).on("brush",function(){var e=t.transitionDuration();t.transitionDuration(0),A(),t.transitionDuration(e)}),w&&p.extent(w);var j=L.select(".nv-brushBackground").selectAll("g").data([w||p.extent()]),q=j.enter().append("g");q.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",N),q.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",N);var V=L.select(".nv-x.nv-brush").call(p);V.selectAll("rect").attr("height",N),V.selectAll(".resize").append("path").attr("d",$),A(),c.scale(r).ticks(I/100).tickSize(-N,0),L.select(".nv-context .nv-x.nv-axis").attr("transform","translate(0,"+a.range()[0]+")"),d3.transition(L.select(".nv-context .nv-x.nv-axis")).call(c),d.scale(a).ticks(N/36).tickSize(-I,0),d3.transition(L.select(".nv-context .nv-y.nv-axis")).call(d),L.select(".nv-context .nv-x.nv-axis").attr("transform","translate(0,"+a.range()[0]+")"),h.dispatch.on("stateChange",function(){t.update()}),C.on("tooltipShow",function(t){k&&D(t,E.parentNode)})}),t}var e,i,r,a,o=n.models.line(),s=n.models.line(),l=n.models.axis(),u=n.models.axis(),c=n.models.axis(),d=n.models.axis(),h=n.models.legend(),p=d3.svg.brush(),f={top:30,right:30,bottom:30,left:60},g={top:0,right:30,bottom:20,left:60},m=n.utils.defaultColor(),v=null,y=null,b=100,x=!0,w=null,k=!0,$=function(t,e,n){return"<h3>"+t+"</h3><p>"+n+" at "+e+"</p>"},_="No Data Available.",C=d3.dispatch("tooltipShow","tooltipHide","brush"),M=250;o.clipEdge(!0),s.interactive(!1),l.orient("bottom").tickPadding(5),u.orient("left"),c.orient("bottom").tickPadding(5),d.orient("left");var D=function(e,i){var r=e.pos[0]+(i.offsetLeft||0),a=e.pos[1]+(i.offsetTop||0),s=l.tickFormat()(o.x()(e.point,e.pointIndex)),c=u.tickFormat()(o.y()(e.point,e.pointIndex)),d=$(e.series.key,s,c,e,t);n.tooltip.show([r,a],d,null,null,i)};return o.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+f.left,t.pos[1]+f.top],C.tooltipShow(t)}),o.dispatch.on("elementMouseout.tooltip",function(t){C.tooltipHide(t)}),C.on("tooltipHide",function(){k&&n.tooltip.cleanup()}),t.dispatch=C,t.legend=h,t.lines=o,t.lines2=s,t.xAxis=l,t.yAxis=u,t.x2Axis=c,t.y2Axis=d,d3.rebind(t,o,"defined","isArea","size","xDomain","yDomain","xRange","yRange","forceX","forceY","interactive","clipEdge","clipVoronoi","id"),t.options=n.utils.optionsFunc.bind(t),t.x=function(e){return arguments.length?(o.x(e),s.x(e),t):o.x},t.y=function(e){return arguments.length?(o.y(e),s.y(e),t):o.y},t.margin=function(e){return arguments.length?(f.top="undefined"!=typeof e.top?e.top:f.top,f.right="undefined"!=typeof e.right?e.right:f.right,f.bottom="undefined"!=typeof e.bottom?e.bottom:f.bottom,f.left="undefined"!=typeof e.left?e.left:f.left,t):f},t.margin2=function(e){return arguments.length?(g=e,t):g},t.width=function(e){return arguments.length?(v=e,t):v},t.height=function(e){return arguments.length?(y=e,t):y},t.height2=function(e){return arguments.length?(b=e,t):b},t.color=function(e){return arguments.length?(m=n.utils.getColor(e),h.color(m),t):m},t.showLegend=function(e){return arguments.length?(x=e,t):x},t.tooltips=function(e){return arguments.length?(k=e,t):k},t.tooltipContent=function(e){return arguments.length?($=e,t):$},t.interpolate=function(e){return arguments.length?(o.interpolate(e),s.interpolate(e),t):o.interpolate()},t.noData=function(e){return arguments.length?(_=e,t):_},t.xTickFormat=function(e){return arguments.length?(l.tickFormat(e),c.tickFormat(e),t):l.tickFormat()},t.yTickFormat=function(e){return arguments.length?(u.tickFormat(e),d.tickFormat(e),t):u.tickFormat()},t.brushExtent=function(e){return arguments.length?(w=e,t):w},t.transitionDuration=function(e){return arguments.length?(M=e,t):M},t},n.models.linePlusBarWithFocusChart=function(){"use strict";function t(n){return n.each(function(n){function I(t){var e=+("e"==t),n=e?1:-1,i=q/3;return"M"+.5*n+","+i+"A6,6 0 0 "+e+" "+6.5*n+","+(i+6)+"V"+(2*i-6)+"A6,6 0 0 "+e+" "+.5*n+","+2*i+"ZM"+2.5*n+","+(i+8)+"V"+(2*i-8)+"M"+4.5*n+","+(i+8)+"V"+(2*i-8)}function H(){x.empty()||x.extent(T),ne.data([x.empty()?r.domain():T]).each(function(t){var e=r(t[0])-r.range()[0],n=r.range()[1]-r(t[1]);d3.select(this).select(".left").attr("width",0>e?0:e),d3.select(this).select(".right").attr("x",r(t[1])).attr("width",0>n?0:n)})}function L(){T=x.empty()?null:x.extent(),e=x.empty()?r.domain():x.extent(),N.brush({extent:e,brush:x}),H(),d.width(W).height(j).color(n.map(function(t,e){return t.color||S(t,e)}).filter(function(t,e){return!n[e].disabled&&n[e].bar})),u.width(W).height(j).color(n.map(function(t,e){return t.color||S(t,e)}).filter(function(t,e){return!n[e].disabled&&!n[e].bar}));var t=Z.select(".nv-focus .nv-barsWrap").datum(B.length?B.map(function(t){return{key:t.key,values:t.values.filter(function(t,n){return d.x()(t,n)>=e[0]&&d.x()(t,n)<=e[1]})}}):[{values:[]}]),s=Z.select(".nv-focus .nv-linesWrap").datum(U[0].disabled?[{values:[]}]:U.map(function(t){return{key:t.key,values:t.values.filter(function(t,n){return u.x()(t,n)>=e[0]&&u.x()(t,n)<=e[1]})}}));i=B.length?d.xScale():u.xScale(),p.scale(i).ticks(W/100).tickSize(-j,0),p.domain([Math.ceil(e[0]),Math.floor(e[1])]),Z.select(".nv-x.nv-axis").transition().duration(O).call(p),t.transition().duration(O).call(d),s.transition().duration(O).call(u),Z.select(".nv-focus .nv-x.nv-axis").attr("transform","translate(0,"+a.range()[0]+")"),g.scale(a).ticks(j/36).tickSize(-W,0),Z.select(".nv-focus .nv-y1.nv-axis").style("opacity",B.length?1:0),m.scale(o).ticks(j/36).tickSize(B.length?0:-W,0),Z.select(".nv-focus .nv-y2.nv-axis").style("opacity",U.length?1:0).attr("transform","translate("+i.range()[1]+",0)"),Z.select(".nv-focus .nv-y1.nv-axis").transition().duration(O).call(g),Z.select(".nv-focus .nv-y2.nv-axis").transition().duration(O).call(m)}var F=d3.select(this),R=this,W=($||parseInt(F.style("width"))||960)-w.left-w.right,j=(_||parseInt(F.style("height"))||400)-w.top-w.bottom-C,q=C-k.top-k.bottom;if(t.update=function(){F.transition().duration(O).call(t)},t.container=this,!(n&&n.length&&n.filter(function(t){return t.values.length}).length)){var V=F.selectAll(".nv-noData").data([P]);return V.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),V.attr("x",w.left+W/2).attr("y",w.top+j/2).text(function(t){return t}),t}F.selectAll(".nv-noData").remove();var B=n.filter(function(t){return!t.disabled&&t.bar}),U=n.filter(function(t){return!t.bar});i=d.xScale(),r=f.scale(),a=d.yScale(),o=u.yScale(),s=h.yScale(),l=c.yScale();var Y=n.filter(function(t){return!t.disabled&&t.bar}).map(function(t){return t.values.map(function(t,e){return{x:M(t,e),y:D(t,e)}})}),X=n.filter(function(t){return!t.disabled&&!t.bar}).map(function(t){return t.values.map(function(t,e){return{x:M(t,e),y:D(t,e)}})});i.range([0,W]),r.domain(d3.extent(d3.merge(Y.concat(X)),function(t){return t.x})).range([0,W]);var K=F.selectAll("g.nv-wrap.nv-linePlusBar").data([n]),G=K.enter().append("g").attr("class","nvd3 nv-wrap nv-linePlusBar").append("g"),Z=K.select("g");G.append("g").attr("class","nv-legendWrap");var Q=G.append("g").attr("class","nv-focus");Q.append("g").attr("class","nv-x nv-axis"),Q.append("g").attr("class","nv-y1 nv-axis"),Q.append("g").attr("class","nv-y2 nv-axis"),Q.append("g").attr("class","nv-barsWrap"),Q.append("g").attr("class","nv-linesWrap");var J=G.append("g").attr("class","nv-context");J.append("g").attr("class","nv-x nv-axis"),J.append("g").attr("class","nv-y1 nv-axis"),J.append("g").attr("class","nv-y2 nv-axis"),J.append("g").attr("class","nv-barsWrap"),J.append("g").attr("class","nv-linesWrap"),J.append("g").attr("class","nv-brushBackground"),J.append("g").attr("class","nv-x nv-brush"),A&&(b.width(W/2),Z.select(".nv-legendWrap").datum(n.map(function(t){return t.originalKey=void 0===t.originalKey?t.key:t.originalKey,t.key=t.originalKey+(t.bar?" (left axis)":" (right axis)"),t})).call(b),w.top!=b.height()&&(w.top=b.height(),j=(_||parseInt(F.style("height"))||400)-w.top-w.bottom-C),Z.select(".nv-legendWrap").attr("transform","translate("+W/2+","+-w.top+")")),K.attr("transform","translate("+w.left+","+w.top+")"),h.width(W).height(q).color(n.map(function(t,e){return t.color||S(t,e)}).filter(function(t,e){return!n[e].disabled&&n[e].bar})),c.width(W).height(q).color(n.map(function(t,e){return t.color||S(t,e)}).filter(function(t,e){return!n[e].disabled&&!n[e].bar}));var te=Z.select(".nv-context .nv-barsWrap").datum(B.length?B:[{values:[]}]),ee=Z.select(".nv-context .nv-linesWrap").datum(U[0].disabled?[{values:[]}]:U);Z.select(".nv-context").attr("transform","translate(0,"+(j+w.bottom+k.top)+")"),te.transition().call(h),ee.transition().call(c),x.x(r).on("brush",L),T&&x.extent(T);var ne=Z.select(".nv-brushBackground").selectAll("g").data([T||x.extent()]),ie=ne.enter().append("g");ie.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",q),ie.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",q);var re=Z.select(".nv-x.nv-brush").call(x);re.selectAll("rect").attr("height",q),re.selectAll(".resize").append("path").attr("d",I),f.ticks(W/100).tickSize(-q,0),Z.select(".nv-context .nv-x.nv-axis").attr("transform","translate(0,"+s.range()[0]+")"),Z.select(".nv-context .nv-x.nv-axis").transition().call(f),v.scale(s).ticks(q/36).tickSize(-W,0),Z.select(".nv-context .nv-y1.nv-axis").style("opacity",B.length?1:0).attr("transform","translate(0,"+r.range()[0]+")"),Z.select(".nv-context .nv-y1.nv-axis").transition().call(v),y.scale(l).ticks(q/36).tickSize(B.length?0:-W,0),Z.select(".nv-context .nv-y2.nv-axis").style("opacity",U.length?1:0).attr("transform","translate("+r.range()[1]+",0)"),Z.select(".nv-context .nv-y2.nv-axis").transition().call(y),b.dispatch.on("stateChange",function(){t.update()}),N.on("tooltipShow",function(t){E&&z(t,R.parentNode)}),L()}),t}var e,i,r,a,o,s,l,u=n.models.line(),c=n.models.line(),d=n.models.historicalBar(),h=n.models.historicalBar(),p=n.models.axis(),f=n.models.axis(),g=n.models.axis(),m=n.models.axis(),v=n.models.axis(),y=n.models.axis(),b=n.models.legend(),x=d3.svg.brush(),w={top:30,right:30,bottom:30,left:60},k={top:0,right:30,bottom:20,left:60},$=null,_=null,C=100,M=function(t){return t.x},D=function(t){return t.y},S=n.utils.defaultColor(),A=!0,T=null,E=!0,I=function(t,e,n){return"<h3>"+t+"</h3><p>"+n+" at "+e+"</p>"},P="No Data Available.",N=d3.dispatch("tooltipShow","tooltipHide","brush"),O=0;u.clipEdge(!0),c.interactive(!1),p.orient("bottom").tickPadding(5),g.orient("left"),m.orient("right"),f.orient("bottom").tickPadding(5),v.orient("left"),y.orient("right");var z=function(i,r){e&&(i.pointIndex+=Math.ceil(e[0]));var a=i.pos[0]+(r.offsetLeft||0),o=i.pos[1]+(r.offsetTop||0),s=p.tickFormat()(u.x()(i.point,i.pointIndex)),l=(i.series.bar?g:m).tickFormat()(u.y()(i.point,i.pointIndex)),c=I(i.series.key,s,l,i,t);n.tooltip.show([a,o],c,i.value<0?"n":"s",null,r)};return u.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+w.left,t.pos[1]+w.top],N.tooltipShow(t)}),u.dispatch.on("elementMouseout.tooltip",function(t){N.tooltipHide(t)}),d.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+w.left,t.pos[1]+w.top],N.tooltipShow(t)}),d.dispatch.on("elementMouseout.tooltip",function(t){N.tooltipHide(t)}),N.on("tooltipHide",function(){E&&n.tooltip.cleanup()}),t.dispatch=N,t.legend=b,t.lines=u,t.lines2=c,t.bars=d,t.bars2=h,t.xAxis=p,t.x2Axis=f,t.y1Axis=g,t.y2Axis=m,t.y3Axis=v,t.y4Axis=y,d3.rebind(t,u,"defined","size","clipVoronoi","interpolate"),t.options=n.utils.optionsFunc.bind(t),t.x=function(e){return arguments.length?(M=e,u.x(e),d.x(e),t):M},t.y=function(e){return arguments.length?(D=e,u.y(e),d.y(e),t):D},t.margin=function(e){return arguments.length?(w.top="undefined"!=typeof e.top?e.top:w.top,w.right="undefined"!=typeof e.right?e.right:w.right,w.bottom="undefined"!=typeof e.bottom?e.bottom:w.bottom,w.left="undefined"!=typeof e.left?e.left:w.left,t):w},t.width=function(e){return arguments.length?($=e,t):$},t.height=function(e){return arguments.length?(_=e,t):_},t.color=function(e){return arguments.length?(S=n.utils.getColor(e),b.color(S),t):S},t.showLegend=function(e){return arguments.length?(A=e,t):A},t.tooltips=function(e){return arguments.length?(E=e,t):E},t.tooltipContent=function(e){return arguments.length?(I=e,t):I},t.noData=function(e){return arguments.length?(P=e,t):P},t.brushExtent=function(e){return arguments.length?(T=e,t):T},t},n.models.multiBar=function(){"use strict";function t(n){return n.each(function(t){var n=c-u.left-u.right,D=d-u.top-u.bottom,S=d3.select(this);k&&t.length&&(k=[{values:t[0].values.map(function(t){return{x:t.x,y:0,series:t.series,size:.01}})}]),b&&(t=d3.layout.stack().offset(x).values(function(t){return t.values}).y(m)(!t.length&&k?k:t)),t.forEach(function(t,e){t.values.forEach(function(t){t.series=e})}),b&&t[0].values.map(function(e,n){var i=0,r=0;t.map(function(t){var e=t.values[n];e.size=Math.abs(e.y),e.y<0?(e.y1=r,r-=e.size):(e.y1=e.size+i,i+=e.size)})});var A=i&&r?[]:t.map(function(t){return t.values.map(function(t,e){return{x:g(t,e),y:m(t,e),y0:t.y0,y1:t.y1}})});h.domain(i||d3.merge(A).map(function(t){return t.x})).rangeBands(a||[0,n],C),p.domain(r||d3.extent(d3.merge(A).map(function(t){return b?t.y>0?t.y1:t.y1+t.y:t.y}).concat(v))).range(o||[D,0]),h.domain()[0]===h.domain()[1]&&h.domain(h.domain()[0]?[h.domain()[0]-.01*h.domain()[0],h.domain()[1]+.01*h.domain()[1]]:[-1,1]),p.domain()[0]===p.domain()[1]&&p.domain(p.domain()[0]?[p.domain()[0]+.01*p.domain()[0],p.domain()[1]-.01*p.domain()[1]]:[-1,1]),s=s||h,l=l||p;var T=S.selectAll("g.nv-wrap.nv-multibar").data([t]),E=T.enter().append("g").attr("class","nvd3 nv-wrap nv-multibar"),I=E.append("defs"),P=E.append("g"),N=T.select("g");P.append("g").attr("class","nv-groups"),T.attr("transform","translate("+u.left+","+u.top+")"),I.append("clipPath").attr("id","nv-edge-clip-"+f).append("rect"),T.select("#nv-edge-clip-"+f+" rect").attr("width",n).attr("height",D),N.attr("clip-path",y?"url(#nv-edge-clip-"+f+")":"");var O=T.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t,e){return e});O.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),O.exit().transition().selectAll("rect.nv-bar").delay(function(e,n){return n*_/t[0].values.length}).attr("y",function(t){return l(b?t.y0:0)}).attr("height",0).remove(),O.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}).style("fill",function(t,e){return w(t,e)}).style("stroke",function(t,e){return w(t,e)}),O.transition().style("stroke-opacity",1).style("fill-opacity",.75);var z=O.selectAll("rect.nv-bar").data(function(e){return k&&!t.length?k.values:e.values});z.exit().remove();z.enter().append("rect").attr("class",function(t,e){return m(t,e)<0?"nv-bar negative":"nv-bar positive"}).attr("x",function(e,n,i){return b?0:i*h.rangeBand()/t.length}).attr("y",function(t){return l(b?t.y0:0)}).attr("height",0).attr("width",h.rangeBand()/(b?1:t.length)).attr("transform",function(t,e){return"translate("+h(g(t,e))+",0)"});z.style("fill",function(t,e,n){return w(t,n,e)}).style("stroke",function(t,e,n){return w(t,n,e)}).on("mouseover",function(e,n){d3.select(this).classed("hover",!0),M.elementMouseover({value:m(e,n),point:e,series:t[e.series],pos:[h(g(e,n))+h.rangeBand()*(b?t.length/2:e.series+.5)/t.length,p(m(e,n)+(b?e.y0:0))],pointIndex:n,seriesIndex:e.series,e:d3.event})}).on("mouseout",function(e,n){d3.select(this).classed("hover",!1),M.elementMouseout({value:m(e,n),point:e,series:t[e.series],pointIndex:n,seriesIndex:e.series,e:d3.event})}).on("click",function(e,n){M.elementClick({value:m(e,n),point:e,series:t[e.series],pos:[h(g(e,n))+h.rangeBand()*(b?t.length/2:e.series+.5)/t.length,p(m(e,n)+(b?e.y0:0))],pointIndex:n,seriesIndex:e.series,e:d3.event}),d3.event.stopPropagation()}).on("dblclick",function(e,n){M.elementDblClick({value:m(e,n),point:e,series:t[e.series],pos:[h(g(e,n))+h.rangeBand()*(b?t.length/2:e.series+.5)/t.length,p(m(e,n)+(b?e.y0:0))],pointIndex:n,seriesIndex:e.series,e:d3.event}),d3.event.stopPropagation()}),z.attr("class",function(t,e){return m(t,e)<0?"nv-bar negative":"nv-bar positive"}).transition().attr("transform",function(t,e){return"translate("+h(g(t,e))+",0)"}),$&&(e||(e=t.map(function(){return!0})),z.style("fill",function(t,n,i){return d3.rgb($(t,n)).darker(e.map(function(t,e){return e}).filter(function(t,n){return!e[n]})[i]).toString()}).style("stroke",function(t,n,i){return d3.rgb($(t,n)).darker(e.map(function(t,e){return e}).filter(function(t,n){return!e[n]})[i]).toString()})),b?z.transition().delay(function(e,n){return n*_/t[0].values.length}).attr("y",function(t){return p(b?t.y1:0)}).attr("height",function(t){return Math.max(Math.abs(p(t.y+(b?t.y0:0))-p(b?t.y0:0)),1)}).attr("x",function(e){return b?0:e.series*h.rangeBand()/t.length}).attr("width",h.rangeBand()/(b?1:t.length)):z.transition().delay(function(e,n){return n*_/t[0].values.length}).attr("x",function(e){return e.series*h.rangeBand()/t.length}).attr("width",h.rangeBand()/t.length).attr("y",function(t,e){return m(t,e)<0?p(0):p(0)-p(m(t,e))<1?p(0)-1:p(m(t,e))||0}).attr("height",function(t,e){return Math.max(Math.abs(p(m(t,e))-p(0)),1)||0}),s=h.copy(),l=p.copy()}),t}var e,i,r,a,o,s,l,u={top:0,right:0,bottom:0,left:0},c=960,d=500,h=d3.scale.ordinal(),p=d3.scale.linear(),f=Math.floor(1e4*Math.random()),g=function(t){return t.x},m=function(t){return t.y},v=[0],y=!0,b=!1,x="zero",w=n.utils.defaultColor(),k=!1,$=null,_=1200,C=.1,M=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout");return t.dispatch=M,t.options=n.utils.optionsFunc.bind(t),t.x=function(e){return arguments.length?(g=e,t):g},t.y=function(e){return arguments.length?(m=e,t):m},t.margin=function(e){return arguments.length?(u.top="undefined"!=typeof e.top?e.top:u.top,u.right="undefined"!=typeof e.right?e.right:u.right,u.bottom="undefined"!=typeof e.bottom?e.bottom:u.bottom,u.left="undefined"!=typeof e.left?e.left:u.left,t):u},t.width=function(e){return arguments.length?(c=e,t):c},t.height=function(e){return arguments.length?(d=e,t):d},t.xScale=function(e){return arguments.length?(h=e,t):h},t.yScale=function(e){return arguments.length?(p=e,t):p},t.xDomain=function(e){return arguments.length?(i=e,t):i},t.yDomain=function(e){return arguments.length?(r=e,t):r},t.xRange=function(e){return arguments.length?(a=e,t):a},t.yRange=function(e){return arguments.length?(o=e,t):o},t.forceY=function(e){return arguments.length?(v=e,t):v},t.stacked=function(e){return arguments.length?(b=e,t):b},t.stackOffset=function(e){return arguments.length?(x=e,t):x},t.clipEdge=function(e){return arguments.length?(y=e,t):y},t.color=function(e){return arguments.length?(w=n.utils.getColor(e),t):w},t.barColor=function(e){return arguments.length?($=n.utils.getColor(e),t):$},t.disabled=function(n){return arguments.length?(e=n,t):e},t.id=function(e){return arguments.length?(f=e,t):f},t.hideable=function(e){return arguments.length?(k=e,t):k},t.delay=function(e){return arguments.length?(_=e,t):_},t.groupSpacing=function(e){return arguments.length?(C=e,t):C},t},n.models.multiBarChart=function(){"use strict";function t(n){return n.each(function(n){var k=d3.select(this),T=this,E=(c||parseInt(k.style("width"))||960)-u.left-u.right,I=(d||parseInt(k.style("height"))||400)-u.top-u.bottom;if(t.update=function(){k.transition().duration(S).call(t)},t.container=this,$.disabled=n.map(function(t){return!!t.disabled}),!_){var P;_={};for(P in $)_[P]=$[P]instanceof Array?$[P].slice(0):$[P]}if(!(n&&n.length&&n.filter(function(t){return t.values.length}).length)){var N=k.selectAll(".nv-noData").data([C]);return N.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),N.attr("x",u.left+E/2).attr("y",u.top+I/2).text(function(t){return t}),t}k.selectAll(".nv-noData").remove(),e=r.xScale(),i=r.yScale();var O=k.selectAll("g.nv-wrap.nv-multiBarWithLegend").data([n]),z=O.enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarWithLegend").append("g"),H=O.select("g");if(z.append("g").attr("class","nv-x nv-axis"),z.append("g").attr("class","nv-y nv-axis"),z.append("g").attr("class","nv-barsWrap"),z.append("g").attr("class","nv-legendWrap"),z.append("g").attr("class","nv-controlsWrap"),f&&(s.width(E-D()),r.barColor()&&n.forEach(function(t,e){t.color=d3.rgb("#ccc").darker(1.5*e).toString()}),H.select(".nv-legendWrap").datum(n).call(s),u.top!=s.height()&&(u.top=s.height(),I=(d||parseInt(k.style("height"))||400)-u.top-u.bottom),H.select(".nv-legendWrap").attr("transform","translate("+D()+","+-u.top+")")),p){var L=[{key:"Grouped",disabled:r.stacked()},{key:"Stacked",disabled:!r.stacked()}];l.width(D()).color(["#444","#444","#444"]),H.select(".nv-controlsWrap").datum(L).attr("transform","translate(0,"+-u.top+")").call(l)}O.attr("transform","translate("+u.left+","+u.top+")"),v&&H.select(".nv-y.nv-axis").attr("transform","translate("+E+",0)"),r.disabled(n.map(function(t){return t.disabled})).width(E).height(I).color(n.map(function(t,e){return t.color||h(t,e)}).filter(function(t,e){return!n[e].disabled}));var F=H.select(".nv-barsWrap").datum(n.filter(function(t){return!t.disabled}));if(F.transition().call(r),g){a.scale(e).ticks(E/100).tickSize(-I,0),H.select(".nv-x.nv-axis").attr("transform","translate(0,"+i.range()[0]+")"),H.select(".nv-x.nv-axis").transition().call(a);var R=H.select(".nv-x.nv-axis > g").selectAll("g");if(R.selectAll("line, text").style("opacity",1),b){var W=function(t,e){return"translate("+t+","+e+")"},j=5,q=17;R.selectAll("text").attr("transform",function(t,e,n){return W(0,n%2==0?j:q)});var V=d3.selectAll(".nv-x.nv-axis .nv-wrap g g text")[0].length;H.selectAll(".nv-x.nv-axis .nv-axisMaxMin text").attr("transform",function(t,e){return W(0,0===e||V%2!==0?q:j)})}y&&R.filter(function(t,e){return e%Math.ceil(n[0].values.length/(E/100))!==0}).selectAll("text, line").style("opacity",0),x&&R.selectAll(".tick text").attr("transform","rotate("+x+" 0,0)").style("text-anchor",x>0?"start":"end"),H.select(".nv-x.nv-axis").selectAll("g.nv-axisMaxMin text").style("opacity",1)}m&&(o.scale(i).ticks(I/36).tickSize(-E,0),H.select(".nv-y.nv-axis").transition().call(o)),s.dispatch.on("stateChange",function(e){$=e,M.stateChange($),t.update()}),l.dispatch.on("legendClick",function(e){if(e.disabled){switch(L=L.map(function(t){return t.disabled=!0,t}),e.disabled=!1,e.key){case"Grouped":r.stacked(!1);break;case"Stacked":r.stacked(!0)}$.stacked=r.stacked(),M.stateChange($),t.update()}}),M.on("tooltipShow",function(t){w&&A(t,T.parentNode)}),M.on("changeState",function(e){"undefined"!=typeof e.disabled&&(n.forEach(function(t,n){t.disabled=e.disabled[n]}),$.disabled=e.disabled),"undefined"!=typeof e.stacked&&(r.stacked(e.stacked),$.stacked=e.stacked),t.update()})}),t}var e,i,r=n.models.multiBar(),a=n.models.axis(),o=n.models.axis(),s=n.models.legend(),l=n.models.legend(),u={top:30,right:20,bottom:50,left:60},c=null,d=null,h=n.utils.defaultColor(),p=!0,f=!0,g=!0,m=!0,v=!1,y=!0,b=!1,x=0,w=!0,k=function(t,e,n){return"<h3>"+t+"</h3><p>"+n+" on "+e+"</p>"},$={stacked:!1},_=null,C="No Data Available.",M=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState"),D=function(){return p?180:0},S=250;r.stacked(!1),a.orient("bottom").tickPadding(7).highlightZero(!0).showMaxMin(!1).tickFormat(function(t){return t}),o.orient(v?"right":"left").tickFormat(d3.format(",.1f")),l.updateState(!1);var A=function(e,i){var s=e.pos[0]+(i.offsetLeft||0),l=e.pos[1]+(i.offsetTop||0),u=a.tickFormat()(r.x()(e.point,e.pointIndex)),c=o.tickFormat()(r.y()(e.point,e.pointIndex)),d=k(e.series.key,u,c,e,t);n.tooltip.show([s,l],d,e.value<0?"n":"s",null,i)};return r.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+u.left,t.pos[1]+u.top],M.tooltipShow(t)}),r.dispatch.on("elementMouseout.tooltip",function(t){M.tooltipHide(t)}),M.on("tooltipHide",function(){w&&n.tooltip.cleanup()}),t.dispatch=M,t.multibar=r,t.legend=s,t.xAxis=a,t.yAxis=o,d3.rebind(t,r,"x","y","xDomain","yDomain","xRange","yRange","forceX","forceY","clipEdge","id","stacked","stackOffset","delay","barColor","groupSpacing"),t.options=n.utils.optionsFunc.bind(t),t.margin=function(e){return arguments.length?(u.top="undefined"!=typeof e.top?e.top:u.top,u.right="undefined"!=typeof e.right?e.right:u.right,u.bottom="undefined"!=typeof e.bottom?e.bottom:u.bottom,u.left="undefined"!=typeof e.left?e.left:u.left,t):u},t.width=function(e){return arguments.length?(c=e,t):c},t.height=function(e){return arguments.length?(d=e,t):d},t.color=function(e){return arguments.length?(h=n.utils.getColor(e),s.color(h),t):h},t.showControls=function(e){return arguments.length?(p=e,t):p},t.showLegend=function(e){return arguments.length?(f=e,t):f},t.showXAxis=function(e){return arguments.length?(g=e,t):g},t.showYAxis=function(e){return arguments.length?(m=e,t):m},t.rightAlignYAxis=function(e){return arguments.length?(v=e,o.orient(e?"right":"left"),t):v},t.reduceXTicks=function(e){return arguments.length?(y=e,t):y},t.rotateLabels=function(e){return arguments.length?(x=e,t):x},t.staggerLabels=function(e){return arguments.length?(b=e,t):b},t.tooltip=function(e){return arguments.length?(k=e,t):k},t.tooltips=function(e){return arguments.length?(w=e,t):w},t.tooltipContent=function(e){return arguments.length?(k=e,t):k
},t.state=function(e){return arguments.length?($=e,t):$},t.defaultState=function(e){return arguments.length?(_=e,t):_},t.noData=function(e){return arguments.length?(C=e,t):C},t.transitionDuration=function(e){return arguments.length?(S=e,t):S},t},n.models.multiBarHorizontal=function(){"use strict";function t(n){return n.each(function(t){{var n=c-u.left-u.right,h=d-u.top-u.bottom;d3.select(this)}x&&(t=d3.layout.stack().offset("zero").values(function(t){return t.values}).y(m)(t)),t.forEach(function(t,e){t.values.forEach(function(t){t.series=e})}),x&&t[0].values.map(function(e,n){var i=0,r=0;t.map(function(t){var e=t.values[n];e.size=Math.abs(e.y),e.y<0?(e.y1=r-e.size,r-=e.size):(e.y1=i,i+=e.size)})});var C=i&&r?[]:t.map(function(t){return t.values.map(function(t,e){return{x:g(t,e),y:m(t,e),y0:t.y0,y1:t.y1}})});p.domain(i||d3.merge(C).map(function(t){return t.x})).rangeBands(a||[0,h],.1),f.domain(r||d3.extent(d3.merge(C).map(function(t){return x?t.y>0?t.y1+t.y:t.y1:t.y}).concat(v))),f.range(w&&!x?o||[f.domain()[0]<0?$:0,n-(f.domain()[1]>0?$:0)]:o||[0,n]),s=s||p,l=l||d3.scale.linear().domain(f.domain()).range([f(0),f(0)]);{var D=d3.select(this).selectAll("g.nv-wrap.nv-multibarHorizontal").data([t]),S=D.enter().append("g").attr("class","nvd3 nv-wrap nv-multibarHorizontal"),A=(S.append("defs"),S.append("g"));D.select("g")}A.append("g").attr("class","nv-groups"),D.attr("transform","translate("+u.left+","+u.top+")");var T=D.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t,e){return e});T.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),T.exit().transition().style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),T.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}).style("fill",function(t,e){return y(t,e)}).style("stroke",function(t,e){return y(t,e)}),T.transition().style("stroke-opacity",1).style("fill-opacity",.75);var E=T.selectAll("g.nv-bar").data(function(t){return t.values});E.exit().remove();var I=E.enter().append("g").attr("transform",function(e,n,i){return"translate("+l(x?e.y0:0)+","+(x?0:i*p.rangeBand()/t.length+p(g(e,n)))+")"});I.append("rect").attr("width",0).attr("height",p.rangeBand()/(x?1:t.length)),E.on("mouseover",function(e,n){d3.select(this).classed("hover",!0),M.elementMouseover({value:m(e,n),point:e,series:t[e.series],pos:[f(m(e,n)+(x?e.y0:0)),p(g(e,n))+p.rangeBand()*(x?t.length/2:e.series+.5)/t.length],pointIndex:n,seriesIndex:e.series,e:d3.event})}).on("mouseout",function(e,n){d3.select(this).classed("hover",!1),M.elementMouseout({value:m(e,n),point:e,series:t[e.series],pointIndex:n,seriesIndex:e.series,e:d3.event})}).on("click",function(e,n){M.elementClick({value:m(e,n),point:e,series:t[e.series],pos:[p(g(e,n))+p.rangeBand()*(x?t.length/2:e.series+.5)/t.length,f(m(e,n)+(x?e.y0:0))],pointIndex:n,seriesIndex:e.series,e:d3.event}),d3.event.stopPropagation()}).on("dblclick",function(e,n){M.elementDblClick({value:m(e,n),point:e,series:t[e.series],pos:[p(g(e,n))+p.rangeBand()*(x?t.length/2:e.series+.5)/t.length,f(m(e,n)+(x?e.y0:0))],pointIndex:n,seriesIndex:e.series,e:d3.event}),d3.event.stopPropagation()}),I.append("text"),w&&!x?(E.select("text").attr("text-anchor",function(t,e){return m(t,e)<0?"end":"start"}).attr("y",p.rangeBand()/(2*t.length)).attr("dy",".32em").text(function(t,e){return _(m(t,e))}),E.transition().select("text").attr("x",function(t,e){return m(t,e)<0?-4:f(m(t,e))-f(0)+4})):E.selectAll("text").text(""),k&&!x?(I.append("text").classed("nv-bar-label",!0),E.select("text.nv-bar-label").attr("text-anchor",function(t,e){return m(t,e)<0?"start":"end"}).attr("y",p.rangeBand()/(2*t.length)).attr("dy",".32em").text(function(t,e){return g(t,e)}),E.transition().select("text.nv-bar-label").attr("x",function(t,e){return m(t,e)<0?f(0)-f(m(t,e))+4:-4})):E.selectAll("text.nv-bar-label").text(""),E.attr("class",function(t,e){return m(t,e)<0?"nv-bar negative":"nv-bar positive"}),b&&(e||(e=t.map(function(){return!0})),E.style("fill",function(t,n,i){return d3.rgb(b(t,n)).darker(e.map(function(t,e){return e}).filter(function(t,n){return!e[n]})[i]).toString()}).style("stroke",function(t,n,i){return d3.rgb(b(t,n)).darker(e.map(function(t,e){return e}).filter(function(t,n){return!e[n]})[i]).toString()})),x?E.transition().attr("transform",function(t,e){return"translate("+f(t.y1)+","+p(g(t,e))+")"}).select("rect").attr("width",function(t,e){return Math.abs(f(m(t,e)+t.y0)-f(t.y0))}).attr("height",p.rangeBand()):E.transition().attr("transform",function(e,n){return"translate("+f(m(e,n)<0?m(e,n):0)+","+(e.series*p.rangeBand()/t.length+p(g(e,n)))+")"}).select("rect").attr("height",p.rangeBand()/t.length).attr("width",function(t,e){return Math.max(Math.abs(f(m(t,e))-f(0)),1)}),s=p.copy(),l=f.copy()}),t}var e,i,r,a,o,s,l,u={top:0,right:0,bottom:0,left:0},c=960,d=500,h=Math.floor(1e4*Math.random()),p=d3.scale.ordinal(),f=d3.scale.linear(),g=function(t){return t.x},m=function(t){return t.y},v=[0],y=n.utils.defaultColor(),b=null,x=!1,w=!1,k=!1,$=60,_=d3.format(",.2f"),C=1200,M=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout");return t.dispatch=M,t.options=n.utils.optionsFunc.bind(t),t.x=function(e){return arguments.length?(g=e,t):g},t.y=function(e){return arguments.length?(m=e,t):m},t.margin=function(e){return arguments.length?(u.top="undefined"!=typeof e.top?e.top:u.top,u.right="undefined"!=typeof e.right?e.right:u.right,u.bottom="undefined"!=typeof e.bottom?e.bottom:u.bottom,u.left="undefined"!=typeof e.left?e.left:u.left,t):u},t.width=function(e){return arguments.length?(c=e,t):c},t.height=function(e){return arguments.length?(d=e,t):d},t.xScale=function(e){return arguments.length?(p=e,t):p},t.yScale=function(e){return arguments.length?(f=e,t):f},t.xDomain=function(e){return arguments.length?(i=e,t):i},t.yDomain=function(e){return arguments.length?(r=e,t):r},t.xRange=function(e){return arguments.length?(a=e,t):a},t.yRange=function(e){return arguments.length?(o=e,t):o},t.forceY=function(e){return arguments.length?(v=e,t):v},t.stacked=function(e){return arguments.length?(x=e,t):x},t.color=function(e){return arguments.length?(y=n.utils.getColor(e),t):y},t.barColor=function(e){return arguments.length?(b=n.utils.getColor(e),t):b},t.disabled=function(n){return arguments.length?(e=n,t):e},t.id=function(e){return arguments.length?(h=e,t):h},t.delay=function(e){return arguments.length?(C=e,t):C},t.showValues=function(e){return arguments.length?(w=e,t):w},t.showBarLabels=function(e){return arguments.length?(k=e,t):k},t.valueFormat=function(e){return arguments.length?(_=e,t):_},t.valuePadding=function(e){return arguments.length?($=e,t):$},t},n.models.multiBarHorizontalChart=function(){"use strict";function t(n){return n.each(function(n){var v=d3.select(this),b=this,D=(c||parseInt(v.style("width"))||960)-u.left-u.right,S=(d||parseInt(v.style("height"))||400)-u.top-u.bottom;if(t.update=function(){v.transition().duration(C).call(t)},t.container=this,x.disabled=n.map(function(t){return!!t.disabled}),!w){var A;w={};for(A in x)w[A]=x[A]instanceof Array?x[A].slice(0):x[A]}if(!(n&&n.length&&n.filter(function(t){return t.values.length}).length)){var T=v.selectAll(".nv-noData").data([k]);return T.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),T.attr("x",u.left+D/2).attr("y",u.top+S/2).text(function(t){return t}),t}v.selectAll(".nv-noData").remove(),e=r.xScale(),i=r.yScale();var E=v.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").data([n]),I=E.enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarHorizontalChart").append("g"),P=E.select("g");if(I.append("g").attr("class","nv-x nv-axis"),I.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),I.append("g").attr("class","nv-barsWrap"),I.append("g").attr("class","nv-legendWrap"),I.append("g").attr("class","nv-controlsWrap"),f&&(s.width(D-_()),r.barColor()&&n.forEach(function(t,e){t.color=d3.rgb("#ccc").darker(1.5*e).toString()}),P.select(".nv-legendWrap").datum(n).call(s),u.top!=s.height()&&(u.top=s.height(),S=(d||parseInt(v.style("height"))||400)-u.top-u.bottom),P.select(".nv-legendWrap").attr("transform","translate("+_()+","+-u.top+")")),p){var N=[{key:"Grouped",disabled:r.stacked()},{key:"Stacked",disabled:!r.stacked()}];l.width(_()).color(["#444","#444","#444"]),P.select(".nv-controlsWrap").datum(N).attr("transform","translate(0,"+-u.top+")").call(l)}E.attr("transform","translate("+u.left+","+u.top+")"),r.disabled(n.map(function(t){return t.disabled})).width(D).height(S).color(n.map(function(t,e){return t.color||h(t,e)}).filter(function(t,e){return!n[e].disabled}));var O=P.select(".nv-barsWrap").datum(n.filter(function(t){return!t.disabled}));if(O.transition().call(r),g){a.scale(e).ticks(S/24).tickSize(-D,0),P.select(".nv-x.nv-axis").transition().call(a);var z=P.select(".nv-x.nv-axis").selectAll("g");z.selectAll("line, text")}m&&(o.scale(i).ticks(D/100).tickSize(-S,0),P.select(".nv-y.nv-axis").attr("transform","translate(0,"+S+")"),P.select(".nv-y.nv-axis").transition().call(o)),P.select(".nv-zeroLine line").attr("x1",i(0)).attr("x2",i(0)).attr("y1",0).attr("y2",-S),s.dispatch.on("stateChange",function(e){x=e,$.stateChange(x),t.update()}),l.dispatch.on("legendClick",function(e){if(e.disabled){switch(N=N.map(function(t){return t.disabled=!0,t}),e.disabled=!1,e.key){case"Grouped":r.stacked(!1);break;case"Stacked":r.stacked(!0)}x.stacked=r.stacked(),$.stateChange(x),t.update()}}),$.on("tooltipShow",function(t){y&&M(t,b.parentNode)}),$.on("changeState",function(e){"undefined"!=typeof e.disabled&&(n.forEach(function(t,n){t.disabled=e.disabled[n]}),x.disabled=e.disabled),"undefined"!=typeof e.stacked&&(r.stacked(e.stacked),x.stacked=e.stacked),t.update()})}),t}var e,i,r=n.models.multiBarHorizontal(),a=n.models.axis(),o=n.models.axis(),s=n.models.legend().height(30),l=n.models.legend().height(30),u={top:30,right:20,bottom:50,left:60},c=null,d=null,h=n.utils.defaultColor(),p=!0,f=!0,g=!0,m=!0,v=!1,y=!0,b=function(t,e,n){return"<h3>"+t+" - "+e+"</h3><p>"+n+"</p>"},x={stacked:v},w=null,k="No Data Available.",$=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState"),_=function(){return p?180:0},C=250;r.stacked(v),a.orient("left").tickPadding(5).highlightZero(!1).showMaxMin(!1).tickFormat(function(t){return t}),o.orient("bottom").tickFormat(d3.format(",.1f")),l.updateState(!1);var M=function(e,i){var s=e.pos[0]+(i.offsetLeft||0),l=e.pos[1]+(i.offsetTop||0),u=a.tickFormat()(r.x()(e.point,e.pointIndex)),c=o.tickFormat()(r.y()(e.point,e.pointIndex)),d=b(e.series.key,u,c,e,t);n.tooltip.show([s,l],d,e.value<0?"e":"w",null,i)};return r.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+u.left,t.pos[1]+u.top],$.tooltipShow(t)}),r.dispatch.on("elementMouseout.tooltip",function(t){$.tooltipHide(t)}),$.on("tooltipHide",function(){y&&n.tooltip.cleanup()}),t.dispatch=$,t.multibar=r,t.legend=s,t.xAxis=a,t.yAxis=o,d3.rebind(t,r,"x","y","xDomain","yDomain","xRange","yRange","forceX","forceY","clipEdge","id","delay","showValues","showBarLabels","valueFormat","stacked","barColor"),t.options=n.utils.optionsFunc.bind(t),t.margin=function(e){return arguments.length?(u.top="undefined"!=typeof e.top?e.top:u.top,u.right="undefined"!=typeof e.right?e.right:u.right,u.bottom="undefined"!=typeof e.bottom?e.bottom:u.bottom,u.left="undefined"!=typeof e.left?e.left:u.left,t):u},t.width=function(e){return arguments.length?(c=e,t):c},t.height=function(e){return arguments.length?(d=e,t):d},t.color=function(e){return arguments.length?(h=n.utils.getColor(e),s.color(h),t):h},t.showControls=function(e){return arguments.length?(p=e,t):p},t.showLegend=function(e){return arguments.length?(f=e,t):f},t.showXAxis=function(e){return arguments.length?(g=e,t):g},t.showYAxis=function(e){return arguments.length?(m=e,t):m},t.tooltip=function(e){return arguments.length?(b=e,t):b},t.tooltips=function(e){return arguments.length?(y=e,t):y},t.tooltipContent=function(e){return arguments.length?(b=e,t):b},t.state=function(e){return arguments.length?(x=e,t):x},t.defaultState=function(e){return arguments.length?(w=e,t):w},t.noData=function(e){return arguments.length?(k=e,t):k},t.transitionDuration=function(e){return arguments.length?(C=e,t):C},t},n.models.multiChart=function(){"use strict";function t(n){return n.each(function(n){var d=d3.select(this),M=this;t.update=function(){d.transition().call(t)},t.container=this;var D=(s||parseInt(d.style("width"))||960)-a.left-a.right,S=(l||parseInt(d.style("height"))||400)-a.top-a.bottom,A=n.filter(function(t){return!t.disabled&&"line"==t.type&&1==t.yAxis}),T=n.filter(function(t){return!t.disabled&&"line"==t.type&&2==t.yAxis}),E=n.filter(function(t){return!t.disabled&&"bar"==t.type&&1==t.yAxis}),I=n.filter(function(t){return!t.disabled&&"bar"==t.type&&2==t.yAxis}),P=n.filter(function(t){return!t.disabled&&"area"==t.type&&1==t.yAxis}),N=n.filter(function(t){return!t.disabled&&"area"==t.type&&2==t.yAxis}),O=n.filter(function(t){return!t.disabled&&1==t.yAxis}).map(function(t){return t.values.map(function(t){return{x:t.x,y:t.y}})}),z=n.filter(function(t){return!t.disabled&&2==t.yAxis}).map(function(t){return t.values.map(function(t){return{x:t.x,y:t.y}})});e.domain(d3.extent(d3.merge(O.concat(z)),function(t){return t.x})).range([0,D]);var H=d.selectAll("g.wrap.multiChart").data([n]),L=H.enter().append("g").attr("class","wrap nvd3 multiChart").append("g");L.append("g").attr("class","x axis"),L.append("g").attr("class","y1 axis"),L.append("g").attr("class","y2 axis"),L.append("g").attr("class","lines1Wrap"),L.append("g").attr("class","lines2Wrap"),L.append("g").attr("class","bars1Wrap"),L.append("g").attr("class","bars2Wrap"),L.append("g").attr("class","stack1Wrap"),L.append("g").attr("class","stack2Wrap"),L.append("g").attr("class","legendWrap");var F=H.select("g");u&&($.width(D/2),F.select(".legendWrap").datum(n.map(function(t){return t.originalKey=void 0===t.originalKey?t.key:t.originalKey,t.key=t.originalKey+(1==t.yAxis?"":" (right axis)"),t})).call($),a.top!=$.height()&&(a.top=$.height(),S=(l||parseInt(d.style("height"))||400)-a.top-a.bottom),F.select(".legendWrap").attr("transform","translate("+D/2+","+-a.top+")")),f.width(D).height(S).interpolate("monotone").color(n.map(function(t,e){return t.color||o[e%o.length]}).filter(function(t,e){return!n[e].disabled&&1==n[e].yAxis&&"line"==n[e].type})),g.width(D).height(S).interpolate("monotone").color(n.map(function(t,e){return t.color||o[e%o.length]}).filter(function(t,e){return!n[e].disabled&&2==n[e].yAxis&&"line"==n[e].type})),m.width(D).height(S).color(n.map(function(t,e){return t.color||o[e%o.length]}).filter(function(t,e){return!n[e].disabled&&1==n[e].yAxis&&"bar"==n[e].type})),v.width(D).height(S).color(n.map(function(t,e){return t.color||o[e%o.length]}).filter(function(t,e){return!n[e].disabled&&2==n[e].yAxis&&"bar"==n[e].type})),y.width(D).height(S).color(n.map(function(t,e){return t.color||o[e%o.length]}).filter(function(t,e){return!n[e].disabled&&1==n[e].yAxis&&"area"==n[e].type})),b.width(D).height(S).color(n.map(function(t,e){return t.color||o[e%o.length]}).filter(function(t,e){return!n[e].disabled&&2==n[e].yAxis&&"area"==n[e].type})),F.attr("transform","translate("+a.left+","+a.top+")");var R=F.select(".lines1Wrap").datum(A),W=F.select(".bars1Wrap").datum(E),j=F.select(".stack1Wrap").datum(P),q=F.select(".lines2Wrap").datum(T),V=F.select(".bars2Wrap").datum(I),B=F.select(".stack2Wrap").datum(N),U=P.length?P.map(function(t){return t.values}).reduce(function(t,e){return t.map(function(t,n){return{x:t.x,y:t.y+e[n].y}})}).concat([{x:0,y:0}]):[],Y=N.length?N.map(function(t){return t.values}).reduce(function(t,e){return t.map(function(t,n){return{x:t.x,y:t.y+e[n].y}})}).concat([{x:0,y:0}]):[];h.domain(i||d3.extent(d3.merge(O).concat(U),function(t){return t.y})).range([0,S]),p.domain(r||d3.extent(d3.merge(z).concat(Y),function(t){return t.y})).range([0,S]),f.yDomain(h.domain()),m.yDomain(h.domain()),y.yDomain(h.domain()),g.yDomain(p.domain()),v.yDomain(p.domain()),b.yDomain(p.domain()),P.length&&d3.transition(j).call(y),N.length&&d3.transition(B).call(b),E.length&&d3.transition(W).call(m),I.length&&d3.transition(V).call(v),A.length&&d3.transition(R).call(f),T.length&&d3.transition(q).call(g),x.ticks(D/100).tickSize(-S,0),F.select(".x.axis").attr("transform","translate(0,"+S+")"),d3.transition(F.select(".x.axis")).call(x),w.ticks(S/36).tickSize(-D,0),d3.transition(F.select(".y1.axis")).call(w),k.ticks(S/36).tickSize(-D,0),d3.transition(F.select(".y2.axis")).call(k),F.select(".y2.axis").style("opacity",z.length?1:0).attr("transform","translate("+e.range()[1]+",0)"),$.dispatch.on("stateChange",function(){t.update()}),_.on("tooltipShow",function(t){c&&C(t,M.parentNode)})}),t}var e,i,r,a={top:30,right:20,bottom:50,left:60},o=d3.scale.category20().range(),s=null,l=null,u=!0,c=!0,d=function(t,e,n){return"<h3>"+t+"</h3><p>"+n+" at "+e+"</p>"},e=d3.scale.linear(),h=d3.scale.linear(),p=d3.scale.linear(),f=n.models.line().yScale(h),g=n.models.line().yScale(p),m=n.models.multiBar().stacked(!1).yScale(h),v=n.models.multiBar().stacked(!1).yScale(p),y=n.models.stackedArea().yScale(h),b=n.models.stackedArea().yScale(p),x=n.models.axis().scale(e).orient("bottom").tickPadding(5),w=n.models.axis().scale(h).orient("left"),k=n.models.axis().scale(p).orient("right"),$=n.models.legend().height(30),_=d3.dispatch("tooltipShow","tooltipHide"),C=function(e,i){var r=e.pos[0]+(i.offsetLeft||0),a=e.pos[1]+(i.offsetTop||0),o=x.tickFormat()(f.x()(e.point,e.pointIndex)),s=(2==e.series.yAxis?k:w).tickFormat()(f.y()(e.point,e.pointIndex)),l=d(e.series.key,o,s,e,t);n.tooltip.show([r,a],l,void 0,void 0,i.offsetParent)};return f.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+a.left,t.pos[1]+a.top],_.tooltipShow(t)}),f.dispatch.on("elementMouseout.tooltip",function(t){_.tooltipHide(t)}),g.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+a.left,t.pos[1]+a.top],_.tooltipShow(t)}),g.dispatch.on("elementMouseout.tooltip",function(t){_.tooltipHide(t)}),m.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+a.left,t.pos[1]+a.top],_.tooltipShow(t)}),m.dispatch.on("elementMouseout.tooltip",function(t){_.tooltipHide(t)}),v.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+a.left,t.pos[1]+a.top],_.tooltipShow(t)}),v.dispatch.on("elementMouseout.tooltip",function(t){_.tooltipHide(t)}),y.dispatch.on("tooltipShow",function(t){return Math.round(100*y.y()(t.point))?(t.pos=[t.pos[0]+a.left,t.pos[1]+a.top],void _.tooltipShow(t)):(setTimeout(function(){d3.selectAll(".point.hover").classed("hover",!1)},0),!1)}),y.dispatch.on("tooltipHide",function(t){_.tooltipHide(t)}),b.dispatch.on("tooltipShow",function(t){return Math.round(100*b.y()(t.point))?(t.pos=[t.pos[0]+a.left,t.pos[1]+a.top],void _.tooltipShow(t)):(setTimeout(function(){d3.selectAll(".point.hover").classed("hover",!1)},0),!1)}),b.dispatch.on("tooltipHide",function(t){_.tooltipHide(t)}),f.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+a.left,t.pos[1]+a.top],_.tooltipShow(t)}),f.dispatch.on("elementMouseout.tooltip",function(t){_.tooltipHide(t)}),g.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+a.left,t.pos[1]+a.top],_.tooltipShow(t)}),g.dispatch.on("elementMouseout.tooltip",function(t){_.tooltipHide(t)}),_.on("tooltipHide",function(){c&&n.tooltip.cleanup()}),t.dispatch=_,t.lines1=f,t.lines2=g,t.bars1=m,t.bars2=v,t.stack1=y,t.stack2=b,t.xAxis=x,t.yAxis1=w,t.yAxis2=k,t.options=n.utils.optionsFunc.bind(t),t.x=function(e){return arguments.length?(getX=e,f.x(e),m.x(e),t):getX},t.y=function(e){return arguments.length?(getY=e,f.y(e),m.y(e),t):getY},t.yDomain1=function(e){return arguments.length?(i=e,t):i},t.yDomain2=function(e){return arguments.length?(r=e,t):r},t.margin=function(e){return arguments.length?(a=e,t):a},t.width=function(e){return arguments.length?(s=e,t):s},t.height=function(e){return arguments.length?(l=e,t):l},t.color=function(e){return arguments.length?(o=e,$.color(e),t):o},t.showLegend=function(e){return arguments.length?(u=e,t):u},t.tooltips=function(e){return arguments.length?(c=e,t):c},t.tooltipContent=function(e){return arguments.length?(d=e,t):d},t},n.models.ohlcBar=function(){"use strict";function t(n){return n.each(function(t){var n=s-o.left-o.right,k=l-o.top-o.bottom,_=d3.select(this);c.domain(e||d3.extent(t[0].values.map(h).concat(y))),c.range(x?r||[.5*n/t[0].values.length,n*(t[0].values.length-.5)/t[0].values.length]:r||[0,n]),d.domain(i||[d3.min(t[0].values.map(v).concat(b)),d3.max(t[0].values.map(m).concat(b))]).range(a||[k,0]),c.domain()[0]===c.domain()[1]&&c.domain(c.domain()[0]?[c.domain()[0]-.01*c.domain()[0],c.domain()[1]+.01*c.domain()[1]]:[-1,1]),d.domain()[0]===d.domain()[1]&&d.domain(d.domain()[0]?[d.domain()[0]+.01*d.domain()[0],d.domain()[1]-.01*d.domain()[1]]:[-1,1]);var C=d3.select(this).selectAll("g.nv-wrap.nv-ohlcBar").data([t[0].values]),M=C.enter().append("g").attr("class","nvd3 nv-wrap nv-ohlcBar"),D=M.append("defs"),S=M.append("g"),A=C.select("g");S.append("g").attr("class","nv-ticks"),C.attr("transform","translate("+o.left+","+o.top+")"),_.on("click",function(t,e){$.chartClick({data:t,index:e,pos:d3.event,id:u})}),D.append("clipPath").attr("id","nv-chart-clip-path-"+u).append("rect"),C.select("#nv-chart-clip-path-"+u+" rect").attr("width",n).attr("height",k),A.attr("clip-path",w?"url(#nv-chart-clip-path-"+u+")":"");var T=C.select(".nv-ticks").selectAll(".nv-tick").data(function(t){return t});T.exit().remove();T.enter().append("path").attr("class",function(t,e,n){return(f(t,e)>g(t,e)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+e}).attr("d",function(e,i){var r=n/t[0].values.length*.9;return"m0,0l0,"+(d(f(e,i))-d(m(e,i)))+"l"+-r/2+",0l"+r/2+",0l0,"+(d(v(e,i))-d(f(e,i)))+"l0,"+(d(g(e,i))-d(v(e,i)))+"l"+r/2+",0l"+-r/2+",0z"}).attr("transform",function(t,e){return"translate("+c(h(t,e))+","+d(m(t,e))+")"}).on("mouseover",function(e,n){d3.select(this).classed("hover",!0),$.elementMouseover({point:e,series:t[0],pos:[c(h(e,n)),d(p(e,n))],pointIndex:n,seriesIndex:0,e:d3.event})}).on("mouseout",function(e,n){d3.select(this).classed("hover",!1),$.elementMouseout({point:e,series:t[0],pointIndex:n,seriesIndex:0,e:d3.event})}).on("click",function(t,e){$.elementClick({value:p(t,e),data:t,index:e,pos:[c(h(t,e)),d(p(t,e))],e:d3.event,id:u}),d3.event.stopPropagation()}).on("dblclick",function(t,e){$.elementDblClick({value:p(t,e),data:t,index:e,pos:[c(h(t,e)),d(p(t,e))],e:d3.event,id:u}),d3.event.stopPropagation()});T.attr("class",function(t,e,n){return(f(t,e)>g(t,e)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+e}),d3.transition(T).attr("transform",function(t,e){return"translate("+c(h(t,e))+","+d(m(t,e))+")"}).attr("d",function(e,i){var r=n/t[0].values.length*.9;return"m0,0l0,"+(d(f(e,i))-d(m(e,i)))+"l"+-r/2+",0l"+r/2+",0l0,"+(d(v(e,i))-d(f(e,i)))+"l0,"+(d(g(e,i))-d(v(e,i)))+"l"+r/2+",0l"+-r/2+",0z"})}),t}var e,i,r,a,o={top:0,right:0,bottom:0,left:0},s=960,l=500,u=Math.floor(1e4*Math.random()),c=d3.scale.linear(),d=d3.scale.linear(),h=function(t){return t.x},p=function(t){return t.y},f=function(t){return t.open},g=function(t){return t.close},m=function(t){return t.high},v=function(t){return t.low},y=[],b=[],x=!1,w=!0,k=n.utils.defaultColor(),$=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout");return t.dispatch=$,t.options=n.utils.optionsFunc.bind(t),t.x=function(e){return arguments.length?(h=e,t):h},t.y=function(e){return arguments.length?(p=e,t):p},t.open=function(e){return arguments.length?(f=e,t):f},t.close=function(e){return arguments.length?(g=e,t):g},t.high=function(e){return arguments.length?(m=e,t):m},t.low=function(e){return arguments.length?(v=e,t):v},t.margin=function(e){return arguments.length?(o.top="undefined"!=typeof e.top?e.top:o.top,o.right="undefined"!=typeof e.right?e.right:o.right,o.bottom="undefined"!=typeof e.bottom?e.bottom:o.bottom,o.left="undefined"!=typeof e.left?e.left:o.left,t):o},t.width=function(e){return arguments.length?(s=e,t):s},t.height=function(e){return arguments.length?(l=e,t):l},t.xScale=function(e){return arguments.length?(c=e,t):c},t.yScale=function(e){return arguments.length?(d=e,t):d},t.xDomain=function(n){return arguments.length?(e=n,t):e},t.yDomain=function(e){return arguments.length?(i=e,t):i},t.xRange=function(e){return arguments.length?(r=e,t):r},t.yRange=function(e){return arguments.length?(a=e,t):a},t.forceX=function(e){return arguments.length?(y=e,t):y},t.forceY=function(e){return arguments.length?(b=e,t):b},t.padData=function(e){return arguments.length?(x=e,t):x},t.clipEdge=function(e){return arguments.length?(w=e,t):w},t.color=function(e){return arguments.length?(k=n.utils.getColor(e),t):k},t.id=function(e){return arguments.length?(u=e,t):u},t},n.models.pie=function(){"use strict";function t(n){return n.each(function(t){function n(t){t.endAngle=isNaN(t.endAngle)?0:t.endAngle,t.startAngle=isNaN(t.startAngle)?0:t.startAngle,v||(t.innerRadius=0);var e=d3.interpolate(this._current,t);return this._current=e(0),function(t){return T(e(t))}}var s=i-e.left-e.right,c=r-e.top-e.bottom,$=Math.min(s,c)/2,_=$-$/5,C=d3.select(this),M=C.selectAll(".nv-wrap.nv-pie").data(t),D=M.enter().append("g").attr("class","nvd3 nv-wrap nv-pie nv-chart-"+l),S=D.append("g"),A=M.select("g");S.append("g").attr("class","nv-pie"),S.append("g").attr("class","nv-pieLabels"),M.attr("transform","translate("+e.left+","+e.top+")"),A.select(".nv-pie").attr("transform","translate("+s/2+","+c/2+")"),A.select(".nv-pieLabels").attr("transform","translate("+s/2+","+c/2+")"),C.on("click",function(t,e){k.chartClick({data:t,index:e,pos:d3.event,id:l})});var T=d3.svg.arc().outerRadius(_);b&&T.startAngle(b),x&&T.endAngle(x),v&&T.innerRadius($*w);var E=d3.layout.pie().sort(null).value(function(t){return t.disabled?0:o(t)}),I=M.select(".nv-pie").selectAll(".nv-slice").data(E),P=M.select(".nv-pieLabels").selectAll(".nv-label").data(E);I.exit().remove(),P.exit().remove();var N=I.enter().append("g").attr("class","nv-slice").on("mouseover",function(t,e){d3.select(this).classed("hover",!0),k.elementMouseover({label:a(t.data),value:o(t.data),point:t.data,pointIndex:e,pos:[d3.event.pageX,d3.event.pageY],id:l})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),k.elementMouseout({label:a(t.data),value:o(t.data),point:t.data,index:e,id:l})}).on("click",function(t,e){k.elementClick({label:a(t.data),value:o(t.data),point:t.data,index:e,pos:d3.event,id:l}),d3.event.stopPropagation()}).on("dblclick",function(t,e){k.elementDblClick({label:a(t.data),value:o(t.data),point:t.data,index:e,pos:d3.event,id:l}),d3.event.stopPropagation()});I.attr("fill",function(t,e){return u(t,e)}).attr("stroke",function(t,e){return u(t,e)});N.append("path").each(function(t){this._current=t});if(I.select("path").transition().attr("d",T).attrTween("d",n),h){var O=d3.svg.arc().innerRadius(0);p&&(O=T),f&&(O=d3.svg.arc().outerRadius(T.outerRadius())),P.enter().append("g").classed("nv-label",!0).each(function(t){var e=d3.select(this);e.attr("transform",function(t){if(y){t.outerRadius=_+10,t.innerRadius=_+15;var e=(t.startAngle+t.endAngle)/2*(180/Math.PI);return(t.startAngle+t.endAngle)/2<Math.PI?e-=90:e+=90,"translate("+O.centroid(t)+") rotate("+e+")"}return t.outerRadius=$+10,t.innerRadius=$+15,"translate("+O.centroid(t)+")"}),e.append("rect").style("stroke","#fff").style("fill","#fff").attr("rx",3).attr("ry",3),e.append("text").style("text-anchor",y?(t.startAngle+t.endAngle)/2<Math.PI?"start":"end":"middle").style("fill","#000")});var z={},H=14,L=140,F=function(t){return Math.floor(t[0]/L)*L+","+Math.floor(t[1]/H)*H};P.transition().attr("transform",function(t){if(y){t.outerRadius=_+10,t.innerRadius=_+15;var e=(t.startAngle+t.endAngle)/2*(180/Math.PI);return(t.startAngle+t.endAngle)/2<Math.PI?e-=90:e+=90,"translate("+O.centroid(t)+") rotate("+e+")"}t.outerRadius=$+10,t.innerRadius=$+15;var n=O.centroid(t),i=F(n);return z[i]&&(n[1]-=H),z[F(n)]=!0,"translate("+n+")"}),P.select(".nv-label text").style("text-anchor",y?(d.startAngle+d.endAngle)/2<Math.PI?"start":"end":"middle").text(function(t){var e=(t.endAngle-t.startAngle)/(2*Math.PI),n={key:a(t.data),value:o(t.data),percent:d3.format("%")(e)};return t.value&&e>m?n[g]:""})}}),t}var e={top:0,right:0,bottom:0,left:0},i=500,r=500,a=function(t){return t.x},o=function(t){return t.y},s=function(t){return t.description},l=Math.floor(1e4*Math.random()),u=n.utils.defaultColor(),c=d3.format(",.2f"),h=!0,p=!0,f=!1,g="key",m=.02,v=!1,y=!1,b=!1,x=!1,w=.5,k=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout");return t.dispatch=k,t.options=n.utils.optionsFunc.bind(t),t.margin=function(n){return arguments.length?(e.top="undefined"!=typeof n.top?n.top:e.top,e.right="undefined"!=typeof n.right?n.right:e.right,e.bottom="undefined"!=typeof n.bottom?n.bottom:e.bottom,e.left="undefined"!=typeof n.left?n.left:e.left,t):e},t.width=function(e){return arguments.length?(i=e,t):i},t.height=function(e){return arguments.length?(r=e,t):r},t.values=function(){return n.log("pie.values() is no longer supported."),t},t.x=function(e){return arguments.length?(a=e,t):a},t.y=function(e){return arguments.length?(o=d3.functor(e),t):o},t.description=function(e){return arguments.length?(s=e,t):s},t.showLabels=function(e){return arguments.length?(h=e,t):h},t.labelSunbeamLayout=function(e){return arguments.length?(y=e,t):y},t.donutLabelsOutside=function(e){return arguments.length?(f=e,t):f},t.pieLabelsOutside=function(e){return arguments.length?(p=e,t):p},t.labelType=function(e){return arguments.length?(g=e,g=g||"key",t):g},t.donut=function(e){return arguments.length?(v=e,t):v},t.donutRatio=function(e){return arguments.length?(w=e,t):w},t.startAngle=function(e){return arguments.length?(b=e,t):b},t.endAngle=function(e){return arguments.length?(x=e,t):x},t.id=function(e){return arguments.length?(l=e,t):l},t.color=function(e){return arguments.length?(u=n.utils.getColor(e),t):u},t.valueFormat=function(e){return arguments.length?(c=e,t):c},t.labelThreshold=function(e){return arguments.length?(m=e,t):m},t},n.models.pieChart=function(){"use strict";function t(n){return n.each(function(n){var l=d3.select(this),u=(a||parseInt(l.style("width"))||960)-r.left-r.right,c=(o||parseInt(l.style("height"))||400)-r.top-r.bottom;if(t.update=function(){l.transition().call(t)},t.container=this,d.disabled=n.map(function(t){return!!t.disabled}),!h){var g;h={};for(g in d)h[g]=d[g]instanceof Array?d[g].slice(0):d[g]}if(!n||!n.length){var m=l.selectAll(".nv-noData").data([p]);return m.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),m.attr("x",r.left+u/2).attr("y",r.top+c/2).text(function(t){return t}),t}l.selectAll(".nv-noData").remove();var v=l.selectAll("g.nv-wrap.nv-pieChart").data([n]),y=v.enter().append("g").attr("class","nvd3 nv-wrap nv-pieChart").append("g"),b=v.select("g");y.append("g").attr("class","nv-pieWrap"),y.append("g").attr("class","nv-legendWrap"),s&&(i.width(u).key(e.x()),v.select(".nv-legendWrap").datum(n).call(i),r.top!=i.height()&&(r.top=i.height(),c=(o||parseInt(l.style("height"))||400)-r.top-r.bottom),v.select(".nv-legendWrap").attr("transform","translate(0,"+-r.top+")")),v.attr("transform","translate("+r.left+","+r.top+")"),e.width(u).height(c);var x=b.select(".nv-pieWrap").datum([n]);d3.transition(x).call(e),i.dispatch.on("stateChange",function(e){d=e,f.stateChange(d),t.update()}),e.dispatch.on("elementMouseout.tooltip",function(t){f.tooltipHide(t)}),f.on("changeState",function(e){"undefined"!=typeof e.disabled&&(n.forEach(function(t,n){t.disabled=e.disabled[n]}),d.disabled=e.disabled),t.update()})}),t}var e=n.models.pie(),i=n.models.legend(),r={top:30,right:20,bottom:20,left:20},a=null,o=null,s=!0,l=n.utils.defaultColor(),u=!0,c=function(t,e){return"<h3>"+t+"</h3><p>"+e+"</p>"
},d={},h=null,p="No Data Available.",f=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState"),g=function(i,r){var a=e.description()(i.point)||e.x()(i.point),o=i.pos[0]+(r&&r.offsetLeft||0),s=i.pos[1]+(r&&r.offsetTop||0),l=e.valueFormat()(e.y()(i.point)),u=c(a,l,i,t);n.tooltip.show([o,s],u,i.value<0?"n":"s",null,r)};return e.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+r.left,t.pos[1]+r.top],f.tooltipShow(t)}),f.on("tooltipShow",function(t){u&&g(t)}),f.on("tooltipHide",function(){u&&n.tooltip.cleanup()}),t.legend=i,t.dispatch=f,t.pie=e,d3.rebind(t,e,"valueFormat","values","x","y","description","id","showLabels","donutLabelsOutside","pieLabelsOutside","labelType","donut","donutRatio","labelThreshold"),t.options=n.utils.optionsFunc.bind(t),t.margin=function(e){return arguments.length?(r.top="undefined"!=typeof e.top?e.top:r.top,r.right="undefined"!=typeof e.right?e.right:r.right,r.bottom="undefined"!=typeof e.bottom?e.bottom:r.bottom,r.left="undefined"!=typeof e.left?e.left:r.left,t):r},t.width=function(e){return arguments.length?(a=e,t):a},t.height=function(e){return arguments.length?(o=e,t):o},t.color=function(r){return arguments.length?(l=n.utils.getColor(r),i.color(l),e.color(l),t):l},t.showLegend=function(e){return arguments.length?(s=e,t):s},t.tooltips=function(e){return arguments.length?(u=e,t):u},t.tooltipContent=function(e){return arguments.length?(c=e,t):c},t.state=function(e){return arguments.length?(d=e,t):d},t.defaultState=function(e){return arguments.length?(h=e,t):h},t.noData=function(e){return arguments.length?(p=e,t):p},t},n.models.scatter=function(){"use strict";function t(R){return R.each(function(t){function R(){if(!k)return!1;var e=d3.merge(t.map(function(t,e){return t.values.map(function(t,n){var i=f(t,n),r=g(t,n);return[d(i)+1e-7*Math.random(),h(r)+1e-7*Math.random(),e,n,t]}).filter(function(t,e){return _(t[4],e)})}));if(L===!0){if(S){var n=B.select("defs").selectAll(".nv-point-clips").data([c]).enter();n.append("clipPath").attr("class","nv-point-clips").attr("id","nv-points-clip-"+c);var i=B.select("#nv-points-clip-"+c).selectAll("circle").data(e);i.enter().append("circle").attr("r",A),i.exit().remove(),i.attr("cx",function(t){return t[0]}).attr("cy",function(t){return t[1]}),B.select(".nv-point-paths").attr("clip-path","url(#nv-points-clip-"+c+")")}e.length&&(e.push([d.range()[0]-20,h.range()[0]-20,null,null]),e.push([d.range()[1]+20,h.range()[1]+20,null,null]),e.push([d.range()[0]-20,h.range()[0]+20,null,null]),e.push([d.range()[1]+20,h.range()[1]-20,null,null]));var r=d3.geom.polygon([[-10,-10],[-10,l+10],[s+10,l+10],[s+10,-10]]),a=d3.geom.voronoi(e).map(function(t,n){return{data:r.clip(t),series:e[n][2],point:e[n][3]}}),u=B.select(".nv-point-paths").selectAll("path").data(a);u.enter().append("path").attr("class",function(t,e){return"nv-path-"+e}),u.exit().remove(),u.attr("d",function(t){return 0===t.data.length?"M 0 0":"M"+t.data.join("L")+"Z"});var p=function(e,n){if(F)return 0;var i=t[e.series];if("undefined"!=typeof i){var r=i.values[e.point];n({point:r,series:i,pos:[d(f(r,e.point))+o.left,h(g(r,e.point))+o.top],seriesIndex:e.series,pointIndex:e.point})}};u.on("click",function(t){p(t,H.elementClick)}).on("mouseover",function(t){p(t,H.elementMouseover)}).on("mouseout",function(t){p(t,H.elementMouseout)})}else B.select(".nv-groups").selectAll(".nv-group").selectAll(".nv-point").on("click",function(e,n){if(F||!t[e.series])return 0;var i=t[e.series],r=i.values[n];H.elementClick({point:r,series:i,pos:[d(f(r,n))+o.left,h(g(r,n))+o.top],seriesIndex:e.series,pointIndex:n})}).on("mouseover",function(e,n){if(F||!t[e.series])return 0;var i=t[e.series],r=i.values[n];H.elementMouseover({point:r,series:i,pos:[d(f(r,n))+o.left,h(g(r,n))+o.top],seriesIndex:e.series,pointIndex:n})}).on("mouseout",function(e,n){if(F||!t[e.series])return 0;var i=t[e.series],r=i.values[n];H.elementMouseout({point:r,series:i,seriesIndex:e.series,pointIndex:n})});F=!1}var W=s-o.left-o.right,j=l-o.top-o.bottom,q=d3.select(this);t.forEach(function(t,e){t.values.forEach(function(t){t.series=e})});var V=T&&E&&N?[]:d3.merge(t.map(function(t){return t.values.map(function(t,e){return{x:f(t,e),y:g(t,e),size:m(t,e)}})}));d.domain(T||d3.extent(V.map(function(t){return t.x}).concat(b))),d.range(C&&t[0]?I||[(W*M+W)/(2*t[0].values.length),W-W*(1+M)/(2*t[0].values.length)]:I||[0,W]),h.domain(E||d3.extent(V.map(function(t){return t.y}).concat(x))).range(P||[j,0]),p.domain(N||d3.extent(V.map(function(t){return t.size}).concat(w))).range(O||[16,256]),(d.domain()[0]===d.domain()[1]||h.domain()[0]===h.domain()[1])&&(z=!0),d.domain()[0]===d.domain()[1]&&d.domain(d.domain()[0]?[d.domain()[0]-.01*d.domain()[0],d.domain()[1]+.01*d.domain()[1]]:[-1,1]),h.domain()[0]===h.domain()[1]&&h.domain(h.domain()[0]?[h.domain()[0]-.01*h.domain()[0],h.domain()[1]+.01*h.domain()[1]]:[-1,1]),isNaN(d.domain()[0])&&d.domain([-1,1]),isNaN(h.domain()[0])&&h.domain([-1,1]),e=e||d,i=i||h,r=r||p;var B=q.selectAll("g.nv-wrap.nv-scatter").data([t]),U=B.enter().append("g").attr("class","nvd3 nv-wrap nv-scatter nv-chart-"+c+(z?" nv-single-point":"")),Y=U.append("defs"),X=U.append("g"),K=B.select("g");X.append("g").attr("class","nv-groups"),X.append("g").attr("class","nv-point-paths"),B.attr("transform","translate("+o.left+","+o.top+")"),Y.append("clipPath").attr("id","nv-edge-clip-"+c).append("rect"),B.select("#nv-edge-clip-"+c+" rect").attr("width",W).attr("height",j>0?j:0),K.attr("clip-path",D?"url(#nv-edge-clip-"+c+")":""),F=!0;var G=B.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t){return t.key});if(G.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),G.exit().remove(),G.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}),G.transition().style("fill",function(t,e){return u(t,e)}).style("stroke",function(t,e){return u(t,e)}).style("stroke-opacity",1).style("fill-opacity",.5),y){var Z=G.selectAll("circle.nv-point").data(function(t){return t.values},$);Z.enter().append("circle").style("fill",function(t){return t.color}).style("stroke",function(t){return t.color}).attr("cx",function(t,i){return n.utils.NaNtoZero(e(f(t,i)))}).attr("cy",function(t,e){return n.utils.NaNtoZero(i(g(t,e)))}).attr("r",function(t,e){return Math.sqrt(p(m(t,e))/Math.PI)}),Z.exit().remove(),G.exit().selectAll("path.nv-point").transition().attr("cx",function(t,e){return n.utils.NaNtoZero(d(f(t,e)))}).attr("cy",function(t,e){return n.utils.NaNtoZero(h(g(t,e)))}).remove(),Z.each(function(t,e){d3.select(this).classed("nv-point",!0).classed("nv-point-"+e,!0).classed("hover",!1)}),Z.transition().attr("cx",function(t,e){return n.utils.NaNtoZero(d(f(t,e)))}).attr("cy",function(t,e){return n.utils.NaNtoZero(h(g(t,e)))}).attr("r",function(t,e){return Math.sqrt(p(m(t,e))/Math.PI)})}else{var Z=G.selectAll("path.nv-point").data(function(t){return t.values});Z.enter().append("path").style("fill",function(t){return t.color}).style("stroke",function(t){return t.color}).attr("transform",function(t,n){return"translate("+e(f(t,n))+","+i(g(t,n))+")"}).attr("d",d3.svg.symbol().type(v).size(function(t,e){return p(m(t,e))})),Z.exit().remove(),G.exit().selectAll("path.nv-point").transition().attr("transform",function(t,e){return"translate("+d(f(t,e))+","+h(g(t,e))+")"}).remove(),Z.each(function(t,e){d3.select(this).classed("nv-point",!0).classed("nv-point-"+e,!0).classed("hover",!1)}),Z.transition().attr("transform",function(t,e){return"translate("+d(f(t,e))+","+h(g(t,e))+")"}).attr("d",d3.svg.symbol().type(v).size(function(t,e){return p(m(t,e))}))}clearTimeout(a),a=setTimeout(R,300),e=d.copy(),i=h.copy(),r=p.copy()}),t}var e,i,r,a,o={top:0,right:0,bottom:0,left:0},s=960,l=500,u=n.utils.defaultColor(),c=Math.floor(1e5*Math.random()),d=d3.scale.linear(),h=d3.scale.linear(),p=d3.scale.linear(),f=function(t){return t.x},g=function(t){return t.y},m=function(t){return t.size||1},v=function(t){return t.shape||"circle"},y=!0,b=[],x=[],w=[],k=!0,$=null,_=function(t){return!t.notActive},C=!1,M=.1,D=!1,S=!0,A=function(){return 25},T=null,E=null,I=null,P=null,N=null,O=null,z=!1,H=d3.dispatch("elementClick","elementMouseover","elementMouseout"),L=!0,F=!1;return t.clearHighlights=function(){d3.selectAll(".nv-chart-"+c+" .nv-point.hover").classed("hover",!1)},t.highlightPoint=function(t,e,n){d3.select(".nv-chart-"+c+" .nv-series-"+t+" .nv-point-"+e).classed("hover",n)},H.on("elementMouseover.point",function(e){k&&t.highlightPoint(e.seriesIndex,e.pointIndex,!0)}),H.on("elementMouseout.point",function(e){k&&t.highlightPoint(e.seriesIndex,e.pointIndex,!1)}),t.dispatch=H,t.options=n.utils.optionsFunc.bind(t),t.x=function(e){return arguments.length?(f=d3.functor(e),t):f},t.y=function(e){return arguments.length?(g=d3.functor(e),t):g},t.size=function(e){return arguments.length?(m=d3.functor(e),t):m},t.margin=function(e){return arguments.length?(o.top="undefined"!=typeof e.top?e.top:o.top,o.right="undefined"!=typeof e.right?e.right:o.right,o.bottom="undefined"!=typeof e.bottom?e.bottom:o.bottom,o.left="undefined"!=typeof e.left?e.left:o.left,t):o},t.width=function(e){return arguments.length?(s=e,t):s},t.height=function(e){return arguments.length?(l=e,t):l},t.xScale=function(e){return arguments.length?(d=e,t):d},t.yScale=function(e){return arguments.length?(h=e,t):h},t.zScale=function(e){return arguments.length?(p=e,t):p},t.xDomain=function(e){return arguments.length?(T=e,t):T},t.yDomain=function(e){return arguments.length?(E=e,t):E},t.sizeDomain=function(e){return arguments.length?(N=e,t):N},t.xRange=function(e){return arguments.length?(I=e,t):I},t.yRange=function(e){return arguments.length?(P=e,t):P},t.sizeRange=function(e){return arguments.length?(O=e,t):O},t.forceX=function(e){return arguments.length?(b=e,t):b},t.forceY=function(e){return arguments.length?(x=e,t):x},t.forceSize=function(e){return arguments.length?(w=e,t):w},t.interactive=function(e){return arguments.length?(k=e,t):k},t.pointKey=function(e){return arguments.length?($=e,t):$},t.pointActive=function(e){return arguments.length?(_=e,t):_},t.padData=function(e){return arguments.length?(C=e,t):C},t.padDataOuter=function(e){return arguments.length?(M=e,t):M},t.clipEdge=function(e){return arguments.length?(D=e,t):D},t.clipVoronoi=function(e){return arguments.length?(S=e,t):S},t.useVoronoi=function(e){return arguments.length?(L=e,L===!1&&(S=!1),t):L},t.clipRadius=function(e){return arguments.length?(A=e,t):A},t.color=function(e){return arguments.length?(u=n.utils.getColor(e),t):u},t.shape=function(e){return arguments.length?(v=e,t):v},t.onlyCircles=function(e){return arguments.length?(y=e,t):y},t.id=function(e){return arguments.length?(c=e,t):c},t.singlePoint=function(e){return arguments.length?(z=e,t):z},t},n.models.scatterChart=function(){"use strict";function t(n){return n.each(function(n){function D(){if(C)return U.select(".nv-point-paths").style("pointer-events","all"),!1;U.select(".nv-point-paths").style("pointer-events","none");var t=d3.mouse(this);p.distortion(_).focus(t[0]),f.distortion(_).focus(t[1]),U.select(".nv-scatterWrap").call(e),x&&U.select(".nv-x.nv-axis").call(i),w&&U.select(".nv-y.nv-axis").call(r),U.select(".nv-distributionX").datum(n.filter(function(t){return!t.disabled})).call(s),U.select(".nv-distributionY").datum(n.filter(function(t){return!t.disabled})).call(l)}var S=d3.select(this),A=this,F=(c||parseInt(S.style("width"))||960)-u.left-u.right,R=(d||parseInt(S.style("height"))||400)-u.top-u.bottom;if(t.update=function(){S.transition().duration(N).call(t)},t.container=this,T.disabled=n.map(function(t){return!!t.disabled}),!E){var W;E={};for(W in T)E[W]=T[W]instanceof Array?T[W].slice(0):T[W]}if(!(n&&n.length&&n.filter(function(t){return t.values.length}).length)){var j=S.selectAll(".nv-noData").data([P]);return j.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),j.attr("x",u.left+F/2).attr("y",u.top+R/2).text(function(t){return t}),t}S.selectAll(".nv-noData").remove(),O=O||p,z=z||f;var q=S.selectAll("g.nv-wrap.nv-scatterChart").data([n]),V=q.enter().append("g").attr("class","nvd3 nv-wrap nv-scatterChart nv-chart-"+e.id()),B=V.append("g"),U=q.select("g");if(B.append("rect").attr("class","nvd3 nv-background"),B.append("g").attr("class","nv-x nv-axis"),B.append("g").attr("class","nv-y nv-axis"),B.append("g").attr("class","nv-scatterWrap"),B.append("g").attr("class","nv-distWrap"),B.append("g").attr("class","nv-legendWrap"),B.append("g").attr("class","nv-controlsWrap"),b){var Y=$?F/2:F;a.width(Y),q.select(".nv-legendWrap").datum(n).call(a),u.top!=a.height()&&(u.top=a.height(),R=(d||parseInt(S.style("height"))||400)-u.top-u.bottom),q.select(".nv-legendWrap").attr("transform","translate("+(F-Y)+","+-u.top+")")}if($&&(o.width(180).color(["#444"]),U.select(".nv-controlsWrap").datum(L).attr("transform","translate(0,"+-u.top+")").call(o)),q.attr("transform","translate("+u.left+","+u.top+")"),k&&U.select(".nv-y.nv-axis").attr("transform","translate("+F+",0)"),e.width(F).height(R).color(n.map(function(t,e){return t.color||h(t,e)}).filter(function(t,e){return!n[e].disabled})),0!==g&&e.xDomain(null),0!==m&&e.yDomain(null),q.select(".nv-scatterWrap").datum(n.filter(function(t){return!t.disabled})).call(e),0!==g){var X=p.domain()[1]-p.domain()[0];e.xDomain([p.domain()[0]-g*X,p.domain()[1]+g*X])}if(0!==m){var K=f.domain()[1]-f.domain()[0];e.yDomain([f.domain()[0]-m*K,f.domain()[1]+m*K])}(0!==m||0!==g)&&q.select(".nv-scatterWrap").datum(n.filter(function(t){return!t.disabled})).call(e),x&&(i.scale(p).ticks(i.ticks()&&i.ticks().length?i.ticks():F/100).tickSize(-R,0),U.select(".nv-x.nv-axis").attr("transform","translate(0,"+f.range()[0]+")").call(i)),w&&(r.scale(f).ticks(r.ticks()&&r.ticks().length?r.ticks():R/36).tickSize(-F,0),U.select(".nv-y.nv-axis").call(r)),v&&(s.getData(e.x()).scale(p).width(F).color(n.map(function(t,e){return t.color||h(t,e)}).filter(function(t,e){return!n[e].disabled})),B.select(".nv-distWrap").append("g").attr("class","nv-distributionX"),U.select(".nv-distributionX").attr("transform","translate(0,"+f.range()[0]+")").datum(n.filter(function(t){return!t.disabled})).call(s)),y&&(l.getData(e.y()).scale(f).width(R).color(n.map(function(t,e){return t.color||h(t,e)}).filter(function(t,e){return!n[e].disabled})),B.select(".nv-distWrap").append("g").attr("class","nv-distributionY"),U.select(".nv-distributionY").attr("transform","translate("+(k?F:-l.size())+",0)").datum(n.filter(function(t){return!t.disabled})).call(l)),d3.fisheye&&(U.select(".nv-background").attr("width",F).attr("height",R),U.select(".nv-background").on("mousemove",D),U.select(".nv-background").on("click",function(){C=!C}),e.dispatch.on("elementClick.freezeFisheye",function(){C=!C})),o.dispatch.on("legendClick",function(n){n.disabled=!n.disabled,_=n.disabled?0:2.5,U.select(".nv-background").style("pointer-events",n.disabled?"none":"all"),U.select(".nv-point-paths").style("pointer-events",n.disabled?"all":"none"),n.disabled?(p.distortion(_).focus(0),f.distortion(_).focus(0),U.select(".nv-scatterWrap").call(e),U.select(".nv-x.nv-axis").call(i),U.select(".nv-y.nv-axis").call(r)):C=!1,t.update()}),a.dispatch.on("stateChange",function(e){T.disabled=e.disabled,I.stateChange(T),t.update()}),e.dispatch.on("elementMouseover.tooltip",function(t){d3.select(".nv-chart-"+e.id()+" .nv-series-"+t.seriesIndex+" .nv-distx-"+t.pointIndex).attr("y1",function(){return t.pos[1]-R}),d3.select(".nv-chart-"+e.id()+" .nv-series-"+t.seriesIndex+" .nv-disty-"+t.pointIndex).attr("x2",t.pos[0]+s.size()),t.pos=[t.pos[0]+u.left,t.pos[1]+u.top],I.tooltipShow(t)}),I.on("tooltipShow",function(t){M&&H(t,A.parentNode)}),I.on("changeState",function(e){"undefined"!=typeof e.disabled&&(n.forEach(function(t,n){t.disabled=e.disabled[n]}),T.disabled=e.disabled),t.update()}),O=p.copy(),z=f.copy()}),t}var e=n.models.scatter(),i=n.models.axis(),r=n.models.axis(),a=n.models.legend(),o=n.models.legend(),s=n.models.distribution(),l=n.models.distribution(),u={top:30,right:20,bottom:50,left:75},c=null,d=null,h=n.utils.defaultColor(),p=d3.fisheye?d3.fisheye.scale(d3.scale.linear).distortion(0):e.xScale(),f=d3.fisheye?d3.fisheye.scale(d3.scale.linear).distortion(0):e.yScale(),g=0,m=0,v=!1,y=!1,b=!0,x=!0,w=!0,k=!1,$=!!d3.fisheye,_=0,C=!1,M=!0,D=function(t,e){return"<strong>"+e+"</strong>"},S=function(t,e,n){return"<strong>"+n+"</strong>"},A=null,T={},E=null,I=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState"),P="No Data Available.",N=250;e.xScale(p).yScale(f),i.orient("bottom").tickPadding(10),r.orient(k?"right":"left").tickPadding(10),s.axis("x"),l.axis("y"),o.updateState(!1);var O,z,H=function(a,o){var s=a.pos[0]+(o.offsetLeft||0),l=a.pos[1]+(o.offsetTop||0),c=a.pos[0]+(o.offsetLeft||0),d=f.range()[0]+u.top+(o.offsetTop||0),h=p.range()[0]+u.left+(o.offsetLeft||0),g=a.pos[1]+(o.offsetTop||0),m=i.tickFormat()(e.x()(a.point,a.pointIndex)),v=r.tickFormat()(e.y()(a.point,a.pointIndex));null!=D&&n.tooltip.show([c,d],D(a.series.key,m,v,a,t),"n",1,o,"x-nvtooltip"),null!=S&&n.tooltip.show([h,g],S(a.series.key,m,v,a,t),"e",1,o,"y-nvtooltip"),null!=A&&n.tooltip.show([s,l],A(a.series.key,m,v,a,t),a.value<0?"n":"s",null,o)},L=[{key:"Magnify",disabled:!0}];return e.dispatch.on("elementMouseout.tooltip",function(t){I.tooltipHide(t),d3.select(".nv-chart-"+e.id()+" .nv-series-"+t.seriesIndex+" .nv-distx-"+t.pointIndex).attr("y1",0),d3.select(".nv-chart-"+e.id()+" .nv-series-"+t.seriesIndex+" .nv-disty-"+t.pointIndex).attr("x2",l.size())}),I.on("tooltipHide",function(){M&&n.tooltip.cleanup()}),t.dispatch=I,t.scatter=e,t.legend=a,t.controls=o,t.xAxis=i,t.yAxis=r,t.distX=s,t.distY=l,d3.rebind(t,e,"id","interactive","pointActive","x","y","shape","size","xScale","yScale","zScale","xDomain","yDomain","xRange","yRange","sizeDomain","sizeRange","forceX","forceY","forceSize","clipVoronoi","clipRadius","useVoronoi"),t.options=n.utils.optionsFunc.bind(t),t.margin=function(e){return arguments.length?(u.top="undefined"!=typeof e.top?e.top:u.top,u.right="undefined"!=typeof e.right?e.right:u.right,u.bottom="undefined"!=typeof e.bottom?e.bottom:u.bottom,u.left="undefined"!=typeof e.left?e.left:u.left,t):u},t.width=function(e){return arguments.length?(c=e,t):c},t.height=function(e){return arguments.length?(d=e,t):d},t.color=function(e){return arguments.length?(h=n.utils.getColor(e),a.color(h),s.color(h),l.color(h),t):h},t.showDistX=function(e){return arguments.length?(v=e,t):v},t.showDistY=function(e){return arguments.length?(y=e,t):y},t.showControls=function(e){return arguments.length?($=e,t):$},t.showLegend=function(e){return arguments.length?(b=e,t):b},t.showXAxis=function(e){return arguments.length?(x=e,t):x},t.showYAxis=function(e){return arguments.length?(w=e,t):w},t.rightAlignYAxis=function(e){return arguments.length?(k=e,r.orient(e?"right":"left"),t):k},t.fisheye=function(e){return arguments.length?(_=e,t):_},t.xPadding=function(e){return arguments.length?(g=e,t):g},t.yPadding=function(e){return arguments.length?(m=e,t):m},t.tooltips=function(e){return arguments.length?(M=e,t):M},t.tooltipContent=function(e){return arguments.length?(A=e,t):A},t.tooltipXContent=function(e){return arguments.length?(D=e,t):D},t.tooltipYContent=function(e){return arguments.length?(S=e,t):S},t.state=function(e){return arguments.length?(T=e,t):T},t.defaultState=function(e){return arguments.length?(E=e,t):E},t.noData=function(e){return arguments.length?(P=e,t):P},t.transitionDuration=function(e){return arguments.length?(N=e,t):N},t},n.models.scatterPlusLineChart=function(){"use strict";function t(n){return n.each(function(n){function C(){if($)return V.select(".nv-point-paths").style("pointer-events","all"),!1;V.select(".nv-point-paths").style("pointer-events","none");var t=d3.mouse(this);p.distortion(k).focus(t[0]),f.distortion(k).focus(t[1]),V.select(".nv-scatterWrap").datum(n.filter(function(t){return!t.disabled})).call(e),y&&V.select(".nv-x.nv-axis").call(i),b&&V.select(".nv-y.nv-axis").call(r),V.select(".nv-distributionX").datum(n.filter(function(t){return!t.disabled})).call(s),V.select(".nv-distributionY").datum(n.filter(function(t){return!t.disabled})).call(l)}var M=d3.select(this),D=this,H=(c||parseInt(M.style("width"))||960)-u.left-u.right,L=(d||parseInt(M.style("height"))||400)-u.top-u.bottom;if(t.update=function(){M.transition().duration(I).call(t)},t.container=this,S.disabled=n.map(function(t){return!!t.disabled}),!A){var F;A={};for(F in S)A[F]=S[F]instanceof Array?S[F].slice(0):S[F]}if(!(n&&n.length&&n.filter(function(t){return t.values.length}).length)){var R=M.selectAll(".nv-noData").data([E]);return R.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),R.attr("x",u.left+H/2).attr("y",u.top+L/2).text(function(t){return t}),t}M.selectAll(".nv-noData").remove(),p=e.xScale(),f=e.yScale(),P=P||p,N=N||f;var W=M.selectAll("g.nv-wrap.nv-scatterChart").data([n]),j=W.enter().append("g").attr("class","nvd3 nv-wrap nv-scatterChart nv-chart-"+e.id()),q=j.append("g"),V=W.select("g");q.append("rect").attr("class","nvd3 nv-background").style("pointer-events","none"),q.append("g").attr("class","nv-x nv-axis"),q.append("g").attr("class","nv-y nv-axis"),q.append("g").attr("class","nv-scatterWrap"),q.append("g").attr("class","nv-regressionLinesWrap"),q.append("g").attr("class","nv-distWrap"),q.append("g").attr("class","nv-legendWrap"),q.append("g").attr("class","nv-controlsWrap"),W.attr("transform","translate("+u.left+","+u.top+")"),x&&V.select(".nv-y.nv-axis").attr("transform","translate("+H+",0)"),v&&(a.width(H/2),W.select(".nv-legendWrap").datum(n).call(a),u.top!=a.height()&&(u.top=a.height(),L=(d||parseInt(M.style("height"))||400)-u.top-u.bottom),W.select(".nv-legendWrap").attr("transform","translate("+H/2+","+-u.top+")")),w&&(o.width(180).color(["#444"]),V.select(".nv-controlsWrap").datum(z).attr("transform","translate(0,"+-u.top+")").call(o)),e.width(H).height(L).color(n.map(function(t,e){return t.color||h(t,e)}).filter(function(t,e){return!n[e].disabled})),W.select(".nv-scatterWrap").datum(n.filter(function(t){return!t.disabled})).call(e),W.select(".nv-regressionLinesWrap").attr("clip-path","url(#nv-edge-clip-"+e.id()+")");var B=W.select(".nv-regressionLinesWrap").selectAll(".nv-regLines").data(function(t){return t});B.enter().append("g").attr("class","nv-regLines");{var U=B.selectAll(".nv-regLine").data(function(t){return[t]});U.enter().append("line").attr("class","nv-regLine").style("stroke-opacity",0)}U.transition().attr("x1",p.range()[0]).attr("x2",p.range()[1]).attr("y1",function(t){return f(p.domain()[0]*t.slope+t.intercept)}).attr("y2",function(t){return f(p.domain()[1]*t.slope+t.intercept)}).style("stroke",function(t,e,n){return h(t,n)}).style("stroke-opacity",function(t){return t.disabled||"undefined"==typeof t.slope||"undefined"==typeof t.intercept?0:1}),y&&(i.scale(p).ticks(i.ticks()?i.ticks():H/100).tickSize(-L,0),V.select(".nv-x.nv-axis").attr("transform","translate(0,"+f.range()[0]+")").call(i)),b&&(r.scale(f).ticks(r.ticks()?r.ticks():L/36).tickSize(-H,0),V.select(".nv-y.nv-axis").call(r)),g&&(s.getData(e.x()).scale(p).width(H).color(n.map(function(t,e){return t.color||h(t,e)}).filter(function(t,e){return!n[e].disabled})),q.select(".nv-distWrap").append("g").attr("class","nv-distributionX"),V.select(".nv-distributionX").attr("transform","translate(0,"+f.range()[0]+")").datum(n.filter(function(t){return!t.disabled})).call(s)),m&&(l.getData(e.y()).scale(f).width(L).color(n.map(function(t,e){return t.color||h(t,e)}).filter(function(t,e){return!n[e].disabled})),q.select(".nv-distWrap").append("g").attr("class","nv-distributionY"),V.select(".nv-distributionY").attr("transform","translate("+(x?H:-l.size())+",0)").datum(n.filter(function(t){return!t.disabled})).call(l)),d3.fisheye&&(V.select(".nv-background").attr("width",H).attr("height",L),V.select(".nv-background").on("mousemove",C),V.select(".nv-background").on("click",function(){$=!$}),e.dispatch.on("elementClick.freezeFisheye",function(){$=!$})),o.dispatch.on("legendClick",function(n){n.disabled=!n.disabled,k=n.disabled?0:2.5,V.select(".nv-background").style("pointer-events",n.disabled?"none":"all"),V.select(".nv-point-paths").style("pointer-events",n.disabled?"all":"none"),n.disabled?(p.distortion(k).focus(0),f.distortion(k).focus(0),V.select(".nv-scatterWrap").call(e),V.select(".nv-x.nv-axis").call(i),V.select(".nv-y.nv-axis").call(r)):$=!1,t.update()}),a.dispatch.on("stateChange",function(e){S=e,T.stateChange(S),t.update()}),e.dispatch.on("elementMouseover.tooltip",function(t){d3.select(".nv-chart-"+e.id()+" .nv-series-"+t.seriesIndex+" .nv-distx-"+t.pointIndex).attr("y1",t.pos[1]-L),d3.select(".nv-chart-"+e.id()+" .nv-series-"+t.seriesIndex+" .nv-disty-"+t.pointIndex).attr("x2",t.pos[0]+s.size()),t.pos=[t.pos[0]+u.left,t.pos[1]+u.top],T.tooltipShow(t)}),T.on("tooltipShow",function(t){_&&O(t,D.parentNode)}),T.on("changeState",function(e){"undefined"!=typeof e.disabled&&(n.forEach(function(t,n){t.disabled=e.disabled[n]}),S.disabled=e.disabled),t.update()}),P=p.copy(),N=f.copy()}),t}var e=n.models.scatter(),i=n.models.axis(),r=n.models.axis(),a=n.models.legend(),o=n.models.legend(),s=n.models.distribution(),l=n.models.distribution(),u={top:30,right:20,bottom:50,left:75},c=null,d=null,h=n.utils.defaultColor(),p=d3.fisheye?d3.fisheye.scale(d3.scale.linear).distortion(0):e.xScale(),f=d3.fisheye?d3.fisheye.scale(d3.scale.linear).distortion(0):e.yScale(),g=!1,m=!1,v=!0,y=!0,b=!0,x=!1,w=!!d3.fisheye,k=0,$=!1,_=!0,C=function(t,e){return"<strong>"+e+"</strong>"},M=function(t,e,n){return"<strong>"+n+"</strong>"},D=function(t,e,n,i){return"<h3>"+t+"</h3><p>"+i+"</p>"},S={},A=null,T=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState"),E="No Data Available.",I=250;e.xScale(p).yScale(f),i.orient("bottom").tickPadding(10),r.orient(x?"right":"left").tickPadding(10),s.axis("x"),l.axis("y"),o.updateState(!1);var P,N,O=function(a,o){var s=a.pos[0]+(o.offsetLeft||0),l=a.pos[1]+(o.offsetTop||0),c=a.pos[0]+(o.offsetLeft||0),d=f.range()[0]+u.top+(o.offsetTop||0),h=p.range()[0]+u.left+(o.offsetLeft||0),g=a.pos[1]+(o.offsetTop||0),m=i.tickFormat()(e.x()(a.point,a.pointIndex)),v=r.tickFormat()(e.y()(a.point,a.pointIndex));null!=C&&n.tooltip.show([c,d],C(a.series.key,m,v,a,t),"n",1,o,"x-nvtooltip"),null!=M&&n.tooltip.show([h,g],M(a.series.key,m,v,a,t),"e",1,o,"y-nvtooltip"),null!=D&&n.tooltip.show([s,l],D(a.series.key,m,v,a.point.tooltip,a,t),a.value<0?"n":"s",null,o)},z=[{key:"Magnify",disabled:!0}];return e.dispatch.on("elementMouseout.tooltip",function(t){T.tooltipHide(t),d3.select(".nv-chart-"+e.id()+" .nv-series-"+t.seriesIndex+" .nv-distx-"+t.pointIndex).attr("y1",0),d3.select(".nv-chart-"+e.id()+" .nv-series-"+t.seriesIndex+" .nv-disty-"+t.pointIndex).attr("x2",l.size())}),T.on("tooltipHide",function(){_&&n.tooltip.cleanup()}),t.dispatch=T,t.scatter=e,t.legend=a,t.controls=o,t.xAxis=i,t.yAxis=r,t.distX=s,t.distY=l,d3.rebind(t,e,"id","interactive","pointActive","x","y","shape","size","xScale","yScale","zScale","xDomain","yDomain","xRange","yRange","sizeDomain","sizeRange","forceX","forceY","forceSize","clipVoronoi","clipRadius","useVoronoi"),t.options=n.utils.optionsFunc.bind(t),t.margin=function(e){return arguments.length?(u.top="undefined"!=typeof e.top?e.top:u.top,u.right="undefined"!=typeof e.right?e.right:u.right,u.bottom="undefined"!=typeof e.bottom?e.bottom:u.bottom,u.left="undefined"!=typeof e.left?e.left:u.left,t):u},t.width=function(e){return arguments.length?(c=e,t):c},t.height=function(e){return arguments.length?(d=e,t):d},t.color=function(e){return arguments.length?(h=n.utils.getColor(e),a.color(h),s.color(h),l.color(h),t):h},t.showDistX=function(e){return arguments.length?(g=e,t):g},t.showDistY=function(e){return arguments.length?(m=e,t):m},t.showControls=function(e){return arguments.length?(w=e,t):w},t.showLegend=function(e){return arguments.length?(v=e,t):v},t.showXAxis=function(e){return arguments.length?(y=e,t):y},t.showYAxis=function(e){return arguments.length?(b=e,t):b},t.rightAlignYAxis=function(e){return arguments.length?(x=e,r.orient(e?"right":"left"),t):x},t.fisheye=function(e){return arguments.length?(k=e,t):k},t.tooltips=function(e){return arguments.length?(_=e,t):_},t.tooltipContent=function(e){return arguments.length?(D=e,t):D},t.tooltipXContent=function(e){return arguments.length?(C=e,t):C},t.tooltipYContent=function(e){return arguments.length?(M=e,t):M},t.state=function(e){return arguments.length?(S=e,t):S},t.defaultState=function(e){return arguments.length?(A=e,t):A},t.noData=function(e){return arguments.length?(E=e,t):E},t.transitionDuration=function(e){return arguments.length?(I=e,t):I},t},n.models.sparkline=function(){"use strict";function t(n){return n.each(function(t){var n=s-o.left-o.right,u=l-o.top-o.bottom,g=d3.select(this);c.domain(e||d3.extent(t,h)).range(r||[0,n]),d.domain(i||d3.extent(t,p)).range(a||[u,0]);{var m=g.selectAll("g.nv-wrap.nv-sparkline").data([t]),v=m.enter().append("g").attr("class","nvd3 nv-wrap nv-sparkline");v.append("g"),m.select("g")}m.attr("transform","translate("+o.left+","+o.top+")");var y=m.selectAll("path").data(function(t){return[t]});y.enter().append("path"),y.exit().remove(),y.style("stroke",function(t,e){return t.color||f(t,e)}).attr("d",d3.svg.line().x(function(t,e){return c(h(t,e))}).y(function(t,e){return d(p(t,e))}));var b=m.selectAll("circle.nv-point").data(function(t){function e(e){if(-1!=e){var n=t[e];return n.pointIndex=e,n}return null}var n=t.map(function(t,e){return p(t,e)}),i=e(n.lastIndexOf(d.domain()[1])),r=e(n.indexOf(d.domain()[0])),a=e(n.length-1);return[r,i,a].filter(function(t){return null!=t})});b.enter().append("circle"),b.exit().remove(),b.attr("cx",function(t){return c(h(t,t.pointIndex))}).attr("cy",function(t){return d(p(t,t.pointIndex))}).attr("r",2).attr("class",function(t){return h(t,t.pointIndex)==c.domain()[1]?"nv-point nv-currentValue":p(t,t.pointIndex)==d.domain()[0]?"nv-point nv-minValue":"nv-point nv-maxValue"})}),t}var e,i,r,a,o={top:2,right:0,bottom:2,left:0},s=400,l=32,u=!0,c=d3.scale.linear(),d=d3.scale.linear(),h=function(t){return t.x},p=function(t){return t.y},f=n.utils.getColor(["#000"]);return t.options=n.utils.optionsFunc.bind(t),t.margin=function(e){return arguments.length?(o.top="undefined"!=typeof e.top?e.top:o.top,o.right="undefined"!=typeof e.right?e.right:o.right,o.bottom="undefined"!=typeof e.bottom?e.bottom:o.bottom,o.left="undefined"!=typeof e.left?e.left:o.left,t):o},t.width=function(e){return arguments.length?(s=e,t):s},t.height=function(e){return arguments.length?(l=e,t):l},t.x=function(e){return arguments.length?(h=d3.functor(e),t):h},t.y=function(e){return arguments.length?(p=d3.functor(e),t):p},t.xScale=function(e){return arguments.length?(c=e,t):c},t.yScale=function(e){return arguments.length?(d=e,t):d},t.xDomain=function(n){return arguments.length?(e=n,t):e},t.yDomain=function(e){return arguments.length?(i=e,t):i},t.xRange=function(e){return arguments.length?(r=e,t):r},t.yRange=function(e){return arguments.length?(a=e,t):a},t.animate=function(e){return arguments.length?(u=e,t):u},t.color=function(e){return arguments.length?(f=n.utils.getColor(e),t):f},t},n.models.sparklinePlus=function(){"use strict";function t(n){return n.each(function(h){function m(){if(!u){var t=M.selectAll(".nv-hoverValue").data(l),n=t.enter().append("g").attr("class","nv-hoverValue").style("stroke-opacity",0).style("fill-opacity",0);t.exit().transition().duration(250).style("stroke-opacity",0).style("fill-opacity",0).remove(),t.attr("transform",function(t){return"translate("+e(r.x()(h[t],t))+",0)"}).transition().duration(250).style("stroke-opacity",1).style("fill-opacity",1),l.length&&(n.append("line").attr("x1",0).attr("y1",-a.top).attr("x2",0).attr("y2",x),n.append("text").attr("class","nv-xValue").attr("x",-6).attr("y",-a.top).attr("text-anchor","end").attr("dy",".9em"),M.select(".nv-hoverValue .nv-xValue").text(c(r.x()(h[l[0]],l[0]))),n.append("text").attr("class","nv-yValue").attr("x",6).attr("y",-a.top).attr("text-anchor","start").attr("dy",".9em"),M.select(".nv-hoverValue .nv-yValue").text(d(r.y()(h[l[0]],l[0]))))
}}function v(){function t(t,e){for(var n=Math.abs(r.x()(t[0],0)-e),i=0,a=0;a<t.length;a++)Math.abs(r.x()(t[a],a)-e)<n&&(n=Math.abs(r.x()(t[a],a)-e),i=a);return i}if(!u){var n=d3.mouse(this)[0]-a.left;l=[t(h,Math.round(e.invert(n)))],m()}}var y=d3.select(this),b=(o||parseInt(y.style("width"))||960)-a.left-a.right,x=(s||parseInt(y.style("height"))||400)-a.top-a.bottom;if(t.update=function(){t(n)},t.container=this,!h||!h.length){var w=y.selectAll(".nv-noData").data([g]);return w.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),w.attr("x",a.left+b/2).attr("y",a.top+x/2).text(function(t){return t}),t}y.selectAll(".nv-noData").remove();var k=r.y()(h[h.length-1],h.length-1);e=r.xScale(),i=r.yScale();var $=y.selectAll("g.nv-wrap.nv-sparklineplus").data([h]),_=$.enter().append("g").attr("class","nvd3 nv-wrap nv-sparklineplus"),C=_.append("g"),M=$.select("g");C.append("g").attr("class","nv-sparklineWrap"),C.append("g").attr("class","nv-valueWrap"),C.append("g").attr("class","nv-hoverArea"),$.attr("transform","translate("+a.left+","+a.top+")");var D=M.select(".nv-sparklineWrap");r.width(b).height(x),D.call(r);var S=M.select(".nv-valueWrap"),A=S.selectAll(".nv-currentValue").data([k]);A.enter().append("text").attr("class","nv-currentValue").attr("dx",f?-8:8).attr("dy",".9em").style("text-anchor",f?"end":"start"),A.attr("x",b+(f?a.right:0)).attr("y",p?function(t){return i(t)}:0).style("fill",r.color()(h[h.length-1],h.length-1)).text(d(k)),C.select(".nv-hoverArea").append("rect").on("mousemove",v).on("click",function(){u=!u}).on("mouseout",function(){l=[],m()}),M.select(".nv-hoverArea rect").attr("transform",function(){return"translate("+-a.left+","+-a.top+")"}).attr("width",b+a.left+a.right).attr("height",x+a.top)}),t}var e,i,r=n.models.sparkline(),a={top:15,right:100,bottom:10,left:50},o=null,s=null,l=[],u=!1,c=d3.format(",r"),d=d3.format(",.2f"),h=!0,p=!0,f=!1,g="No Data Available.";return t.sparkline=r,d3.rebind(t,r,"x","y","xScale","yScale","color"),t.options=n.utils.optionsFunc.bind(t),t.margin=function(e){return arguments.length?(a.top="undefined"!=typeof e.top?e.top:a.top,a.right="undefined"!=typeof e.right?e.right:a.right,a.bottom="undefined"!=typeof e.bottom?e.bottom:a.bottom,a.left="undefined"!=typeof e.left?e.left:a.left,t):a},t.width=function(e){return arguments.length?(o=e,t):o},t.height=function(e){return arguments.length?(s=e,t):s},t.xTickFormat=function(e){return arguments.length?(c=e,t):c},t.yTickFormat=function(e){return arguments.length?(d=e,t):d},t.showValue=function(e){return arguments.length?(h=e,t):h},t.alignValue=function(e){return arguments.length?(p=e,t):p},t.rightAlignValue=function(e){return arguments.length?(f=e,t):f},t.noData=function(e){return arguments.length?(g=e,t):g},t},n.models.stackedArea=function(){"use strict";function t(n){return n.each(function(n){var d=a-r.left-r.right,y=o-r.top-r.bottom,b=d3.select(this);e=m.xScale(),i=m.yScale();var x=n;n.forEach(function(t,e){t.seriesIndex=e,t.values=t.values.map(function(t,n){return t.index=n,t.seriesIndex=e,t})});var w=n.filter(function(t){return!t.disabled});n=d3.layout.stack().order(p).offset(h).values(function(t){return t.values}).x(u).y(c).out(function(t,e,n){var i=0===c(t)?0:n;t.display={y:i,y0:e}})(w);var k=b.selectAll("g.nv-wrap.nv-stackedarea").data([n]),$=k.enter().append("g").attr("class","nvd3 nv-wrap nv-stackedarea"),_=$.append("defs"),C=$.append("g"),M=k.select("g");C.append("g").attr("class","nv-areaWrap"),C.append("g").attr("class","nv-scatterWrap"),k.attr("transform","translate("+r.left+","+r.top+")"),m.width(d).height(y).x(u).y(function(t){return t.display.y+t.display.y0}).forceY([0]).color(n.map(function(t){return t.color||s(t,t.seriesIndex)}));var D=M.select(".nv-scatterWrap").datum(n);D.call(m),_.append("clipPath").attr("id","nv-edge-clip-"+l).append("rect"),k.select("#nv-edge-clip-"+l+" rect").attr("width",d).attr("height",y),M.attr("clip-path",g?"url(#nv-edge-clip-"+l+")":"");var S=d3.svg.area().x(function(t,n){return e(u(t,n))}).y0(function(t){return i(t.display.y0)}).y1(function(t){return i(t.display.y+t.display.y0)}).interpolate(f),A=d3.svg.area().x(function(t,n){return e(u(t,n))}).y0(function(t){return i(t.display.y0)}).y1(function(t){return i(t.display.y0)}),T=M.select(".nv-areaWrap").selectAll("path.nv-area").data(function(t){return t});T.enter().append("path").attr("class",function(t,e){return"nv-area nv-area-"+e}).attr("d",function(t){return A(t.values,t.seriesIndex)}).on("mouseover",function(t){d3.select(this).classed("hover",!0),v.areaMouseover({point:t,series:t.key,pos:[d3.event.pageX,d3.event.pageY],seriesIndex:t.seriesIndex})}).on("mouseout",function(t){d3.select(this).classed("hover",!1),v.areaMouseout({point:t,series:t.key,pos:[d3.event.pageX,d3.event.pageY],seriesIndex:t.seriesIndex})}).on("click",function(t){d3.select(this).classed("hover",!1),v.areaClick({point:t,series:t.key,pos:[d3.event.pageX,d3.event.pageY],seriesIndex:t.seriesIndex})}),T.exit().remove(),T.style("fill",function(t){return t.color||s(t,t.seriesIndex)}).style("stroke",function(t){return t.color||s(t,t.seriesIndex)}),T.transition().attr("d",function(t,e){return S(t.values,e)}),m.dispatch.on("elementMouseover.area",function(t){M.select(".nv-chart-"+l+" .nv-area-"+t.seriesIndex).classed("hover",!0)}),m.dispatch.on("elementMouseout.area",function(t){M.select(".nv-chart-"+l+" .nv-area-"+t.seriesIndex).classed("hover",!1)}),t.d3_stackedOffset_stackPercent=function(t){var e,n,i,r=t.length,a=t[0].length,o=1/r,s=[];for(n=0;a>n;++n){for(e=0,i=0;e<x.length;e++)i+=c(x[e].values[n]);if(i)for(e=0;r>e;e++)t[e][n][1]/=i;else for(e=0;r>e;e++)t[e][n][1]=o}for(n=0;a>n;++n)s[n]=0;return s}}),t}var e,i,r={top:0,right:0,bottom:0,left:0},a=960,o=500,s=n.utils.defaultColor(),l=Math.floor(1e5*Math.random()),u=function(t){return t.x},c=function(t){return t.y},d="stack",h="zero",p="default",f="linear",g=!1,m=n.models.scatter(),v=d3.dispatch("tooltipShow","tooltipHide","areaClick","areaMouseover","areaMouseout");return m.size(2.2).sizeDomain([2.2,2.2]),m.dispatch.on("elementClick.area",function(t){v.areaClick(t)}),m.dispatch.on("elementMouseover.tooltip",function(t){t.pos=[t.pos[0]+r.left,t.pos[1]+r.top],v.tooltipShow(t)}),m.dispatch.on("elementMouseout.tooltip",function(t){v.tooltipHide(t)}),t.dispatch=v,t.scatter=m,d3.rebind(t,m,"interactive","size","xScale","yScale","zScale","xDomain","yDomain","xRange","yRange","sizeDomain","forceX","forceY","forceSize","clipVoronoi","useVoronoi","clipRadius","highlightPoint","clearHighlights"),t.options=n.utils.optionsFunc.bind(t),t.x=function(e){return arguments.length?(u=d3.functor(e),t):u},t.y=function(e){return arguments.length?(c=d3.functor(e),t):c},t.margin=function(e){return arguments.length?(r.top="undefined"!=typeof e.top?e.top:r.top,r.right="undefined"!=typeof e.right?e.right:r.right,r.bottom="undefined"!=typeof e.bottom?e.bottom:r.bottom,r.left="undefined"!=typeof e.left?e.left:r.left,t):r},t.width=function(e){return arguments.length?(a=e,t):a},t.height=function(e){return arguments.length?(o=e,t):o},t.clipEdge=function(e){return arguments.length?(g=e,t):g},t.color=function(e){return arguments.length?(s=n.utils.getColor(e),t):s},t.offset=function(e){return arguments.length?(h=e,t):h},t.order=function(e){return arguments.length?(p=e,t):p},t.style=function(e){if(!arguments.length)return d;switch(d=e){case"stack":t.offset("zero"),t.order("default");break;case"stream":t.offset("wiggle"),t.order("inside-out");break;case"stream-center":t.offset("silhouette"),t.order("inside-out");break;case"expand":t.offset("expand"),t.order("default");break;case"stack_percent":t.offset(t.d3_stackedOffset_stackPercent),t.order("default")}return t},t.interpolate=function(e){return arguments.length?(f=e,t):f},t},n.models.stackedAreaChart=function(){"use strict";function t(w){return w.each(function(w){var I=d3.select(this),P=this,N=(d||parseInt(I.style("width"))||960)-c.left-c.right,O=(h||parseInt(I.style("height"))||400)-c.top-c.bottom;if(t.update=function(){I.transition().duration(T).call(t)},t.container=this,$.disabled=w.map(function(t){return!!t.disabled}),!_){var z;_={};for(z in $)_[z]=$[z]instanceof Array?$[z].slice(0):$[z]}if(!(w&&w.length&&w.filter(function(t){return t.values.length}).length)){var H=I.selectAll(".nv-noData").data([C]);return H.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),H.attr("x",c.left+N/2).attr("y",c.top+O/2).text(function(t){return t}),t}I.selectAll(".nv-noData").remove(),e=r.xScale(),i=r.yScale();var L=I.selectAll("g.nv-wrap.nv-stackedAreaChart").data([w]),F=L.enter().append("g").attr("class","nvd3 nv-wrap nv-stackedAreaChart").append("g"),R=L.select("g");if(F.append("rect").style("opacity",0),F.append("g").attr("class","nv-x nv-axis"),F.append("g").attr("class","nv-y nv-axis"),F.append("g").attr("class","nv-stackedWrap"),F.append("g").attr("class","nv-legendWrap"),F.append("g").attr("class","nv-controlsWrap"),F.append("g").attr("class","nv-interactive"),R.select("rect").attr("width",N).attr("height",O),g){var W=f?N-D:N;s.width(W),R.select(".nv-legendWrap").datum(w).call(s),c.top!=s.height()&&(c.top=s.height(),O=(h||parseInt(I.style("height"))||400)-c.top-c.bottom),R.select(".nv-legendWrap").attr("transform","translate("+(N-W)+","+-c.top+")")}if(f){var j=[{key:A.stacked||"Stacked",metaKey:"Stacked",disabled:"stack"!=r.style(),style:"stack"},{key:A.stream||"Stream",metaKey:"Stream",disabled:"stream"!=r.style(),style:"stream"},{key:A.expanded||"Expanded",metaKey:"Expanded",disabled:"expand"!=r.style(),style:"expand"},{key:A.stack_percent||"Stack %",metaKey:"Stack_Percent",disabled:"stack_percent"!=r.style(),style:"stack_percent"}];D=S.length/3*260,j=j.filter(function(t){return-1!==S.indexOf(t.metaKey)}),l.width(D).color(["#444","#444","#444"]),R.select(".nv-controlsWrap").datum(j).call(l),c.top!=Math.max(l.height(),s.height())&&(c.top=Math.max(l.height(),s.height()),O=(h||parseInt(I.style("height"))||400)-c.top-c.bottom),R.select(".nv-controlsWrap").attr("transform","translate(0,"+-c.top+")")}L.attr("transform","translate("+c.left+","+c.top+")"),y&&R.select(".nv-y.nv-axis").attr("transform","translate("+N+",0)"),b&&(u.width(N).height(O).margin({left:c.left,top:c.top}).svgContainer(I).xScale(e),L.select(".nv-interactive").call(u)),r.width(N).height(O);var q=R.select(".nv-stackedWrap").datum(w);q.transition().call(r),m&&(a.scale(e).ticks(N/100).tickSize(-O,0),R.select(".nv-x.nv-axis").attr("transform","translate(0,"+O+")"),R.select(".nv-x.nv-axis").transition().duration(0).call(a)),v&&(o.scale(i).ticks("wiggle"==r.offset()?0:O/36).tickSize(-N,0).setTickFormat("expand"==r.style()||"stack_percent"==r.style()?d3.format("%"):k),R.select(".nv-y.nv-axis").transition().duration(0).call(o)),r.dispatch.on("areaClick.toggle",function(e){w.forEach(1===w.filter(function(t){return!t.disabled}).length?function(t){t.disabled=!1}:function(t,n){t.disabled=n!=e.seriesIndex}),$.disabled=w.map(function(t){return!!t.disabled}),M.stateChange($),t.update()}),s.dispatch.on("stateChange",function(e){$.disabled=e.disabled,M.stateChange($),t.update()}),l.dispatch.on("legendClick",function(e){e.disabled&&(j=j.map(function(t){return t.disabled=!0,t}),e.disabled=!1,r.style(e.style),$.style=r.style(),M.stateChange($),t.update())}),u.dispatch.on("elementMousemove",function(e){r.clearHighlights();var i,s,l,d=[];if(w.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(a,o){s=n.interactiveBisect(a.values,e.pointXValue,t.x()),r.highlightPoint(o,s,!0);var u=a.values[s];if("undefined"!=typeof u){"undefined"==typeof i&&(i=u),"undefined"==typeof l&&(l=t.xScale()(t.x()(u,s)));var c="expand"==r.style()?u.display.y:t.y()(u,s);d.push({key:a.key,value:c,color:p(a,a.seriesIndex),stackedValue:u.display})}}),d.reverse(),d.length>2){var h=t.yScale().invert(e.mouseY),f=null;d.forEach(function(t,e){h=Math.abs(h);var n=Math.abs(t.stackedValue.y0),i=Math.abs(t.stackedValue.y);return h>=n&&i+n>=h?void(f=e):void 0}),null!=f&&(d[f].highlight=!0)}var g=a.tickFormat()(t.x()(i,s)),m="expand"==r.style()?function(t){return d3.format(".1%")(t)}:function(t){return o.tickFormat()(t)};u.tooltip.position({left:l+c.left,top:e.mouseY+c.top}).chartContainer(P.parentNode).enabled(x).valueFormatter(m).data({value:g,series:d})(),u.renderGuideLine(l)}),u.dispatch.on("elementMouseout",function(){M.tooltipHide(),r.clearHighlights()}),M.on("tooltipShow",function(t){x&&E(t,P.parentNode)}),M.on("changeState",function(e){"undefined"!=typeof e.disabled&&w.length===e.disabled.length&&(w.forEach(function(t,n){t.disabled=e.disabled[n]}),$.disabled=e.disabled),"undefined"!=typeof e.style&&r.style(e.style),t.update()})}),t}var e,i,r=n.models.stackedArea(),a=n.models.axis(),o=n.models.axis(),s=n.models.legend(),l=n.models.legend(),u=n.interactiveGuideline(),c={top:30,right:25,bottom:50,left:60},d=null,h=null,p=n.utils.defaultColor(),f=!0,g=!0,m=!0,v=!0,y=!1,b=!1,x=!0,w=function(t,e,n){return"<h3>"+t+"</h3><p>"+n+" on "+e+"</p>"},k=d3.format(",.2f"),$={style:r.style()},_=null,C="No Data Available.",M=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState"),D=250,S=["Stacked","Stream","Expanded"],A={},T=250;a.orient("bottom").tickPadding(7),o.orient(y?"right":"left"),l.updateState(!1);var E=function(e,i){var s=e.pos[0]+(i.offsetLeft||0),l=e.pos[1]+(i.offsetTop||0),u=a.tickFormat()(r.x()(e.point,e.pointIndex)),c=o.tickFormat()(r.y()(e.point,e.pointIndex)),d=w(e.series.key,u,c,e,t);n.tooltip.show([s,l],d,e.value<0?"n":"s",null,i)};return r.dispatch.on("tooltipShow",function(t){t.pos=[t.pos[0]+c.left,t.pos[1]+c.top],M.tooltipShow(t)}),r.dispatch.on("tooltipHide",function(t){M.tooltipHide(t)}),M.on("tooltipHide",function(){x&&n.tooltip.cleanup()}),t.dispatch=M,t.stacked=r,t.legend=s,t.controls=l,t.xAxis=a,t.yAxis=o,t.interactiveLayer=u,d3.rebind(t,r,"x","y","size","xScale","yScale","xDomain","yDomain","xRange","yRange","sizeDomain","interactive","useVoronoi","offset","order","style","clipEdge","forceX","forceY","forceSize","interpolate"),t.options=n.utils.optionsFunc.bind(t),t.margin=function(e){return arguments.length?(c.top="undefined"!=typeof e.top?e.top:c.top,c.right="undefined"!=typeof e.right?e.right:c.right,c.bottom="undefined"!=typeof e.bottom?e.bottom:c.bottom,c.left="undefined"!=typeof e.left?e.left:c.left,t):c},t.width=function(e){return arguments.length?(d=e,t):d},t.height=function(e){return arguments.length?(h=e,t):h},t.color=function(e){return arguments.length?(p=n.utils.getColor(e),s.color(p),r.color(p),t):p},t.showControls=function(e){return arguments.length?(f=e,t):f},t.showLegend=function(e){return arguments.length?(g=e,t):g},t.showXAxis=function(e){return arguments.length?(m=e,t):m},t.showYAxis=function(e){return arguments.length?(v=e,t):v},t.rightAlignYAxis=function(e){return arguments.length?(y=e,o.orient(e?"right":"left"),t):y},t.useInteractiveGuideline=function(e){return arguments.length?(b=e,e===!0&&(t.interactive(!1),t.useVoronoi(!1)),t):b},t.tooltip=function(e){return arguments.length?(w=e,t):w},t.tooltips=function(e){return arguments.length?(x=e,t):x},t.tooltipContent=function(e){return arguments.length?(w=e,t):w},t.state=function(e){return arguments.length?($=e,t):$},t.defaultState=function(e){return arguments.length?(_=e,t):_},t.noData=function(e){return arguments.length?(C=e,t):C},t.transitionDuration=function(e){return arguments.length?(T=e,t):T},t.controlsData=function(e){return arguments.length?(S=e,t):S},t.controlLabels=function(e){return arguments.length?"object"!=typeof e?A:(A=e,t):A},o.setTickFormat=o.tickFormat,o.tickFormat=function(t){return arguments.length?(k=t,o):k},t}}(),/*! angularjs-nvd3-directives - v0.0.7 - 2014-04-07
 * http://cmaurer.github.io/angularjs-nvd3-directives
 * Copyright (c) 2014 Christian Maurer; Licensed Apache License, v2.0 */
function(){"use strict";function t(t,e){var n=t.$eval(e.legendmargin)||{left:0,top:5,bottom:5,right:0};"object"!=typeof n&&(n={left:n,top:n,bottom:n,right:n}),t.legendmargin=n}function e(e,n,i){e.legend&&i.showlegend&&"true"===i.showlegend&&(t(n,i),e.legend.margin(n.legendmargin),e.legend.width(void 0===i.legendwidth?400:+i.legendwidth),e.legend.height(void 0===i.legendheight?20:+i.legendheight),e.legend.key(void 0===i.legendkey?function(t){return t.key}:n.legendkey()),e.legend.color(void 0===i.legendcolor?nv.utils.defaultColor():n.legendcolor()),e.legend.align(void 0===i.legendalign?!0:"true"===i.legendalign),e.legend.rightAlign(void 0===i.legendrightalign?!0:"true"===i.legendrightalign),e.legend.updateState(void 0===i.legendupdatestate?!0:"true"===i.legendupdatestate),e.legend.radioButtonMode(void 0===i.legendradiobuttonmode?!1:"true"===i.legendradiobuttonmode))}function n(t,e){t.dispatch&&(t.dispatch.tooltipShow&&t.dispatch.on("tooltipShow.directive",function(t){e.$emit("tooltipShow.directive",t)}),t.dispatch.tooltipHide&&t.dispatch.on("tooltipHide.directive",function(t){e.$emit("tooltipHide.directive",t)}),t.dispatch.beforeUpdate&&t.dispatch.on("beforeUpdate.directive",function(t){e.$emit("beforeUpdate.directive",t)}),t.dispatch.stateChange&&t.dispatch.on("stateChange.directive",function(t){e.$emit("stateChange.directive",t)}),t.dispatch.changeState&&t.dispatch.on("changeState.directive",function(t){e.$emit("changeState.directive",t)})),t.lines&&(t.lines.dispatch.on("elementMouseover.tooltip.directive",function(t){e.$emit("elementMouseover.tooltip.directive",t)}),t.lines.dispatch.on("elementMouseout.tooltip.directive",function(t){e.$emit("elementMouseout.tooltip.directive",t)}),t.lines.dispatch.on("elementClick.directive",function(t){e.$emit("elementClick.directive",t)})),t.stacked&&t.stacked.dispatch&&(t.stacked.dispatch.on("areaClick.toggle.directive",function(t){e.$emit("areaClick.toggle.directive",t)}),t.stacked.dispatch.on("tooltipShow.directive",function(t){e.$emit("tooltipShow.directive",t)}),t.stacked.dispatch.on("tooltipHide.directive",function(t){e.$emit("tooltipHide.directive",t)})),t.interactiveLayer&&(t.interactiveLayer.elementMouseout&&t.interactiveLayer.dispatch.on("elementMouseout.directive",function(t){e.$emit("elementMouseout.directive",t)}),t.interactiveLayer.elementMousemove&&t.interactiveLayer.dispatch.on("elementMousemove.directive",function(t){e.$emit("elementMousemove.directive",t)})),t.discretebar&&(t.discretebar.dispatch.on("elementMouseover.tooltip.directive",function(t){e.$emit("elementMouseover.tooltip.directive",t)}),t.discretebar.dispatch.on("elementMouseout.tooltip.directive",function(t){e.$emit("elementMouseover.tooltip.directive",t)}),t.discretebar.dispatch.on("elementClick.directive",function(t){e.$emit("elementClick.directive",t)})),t.multibar&&(t.multibar.dispatch.on("elementMouseover.tooltip.directive",function(t){e.$emit("elementMouseover.tooltip.directive",t)}),t.multibar.dispatch.on("elementMouseout.tooltip.directive",function(t){e.$emit("elementMouseover.tooltip.directive",t)}),t.multibar.dispatch.on("elementClick.directive",function(t){e.$emit("elementClick.directive",t)})),t.pie&&(t.pie.dispatch.on("elementMouseover.tooltip.directive",function(t){e.$emit("elementMouseover.tooltip.directive",t)}),t.pie.dispatch.on("elementMouseout.tooltip.directive",function(t){e.$emit("elementMouseover.tooltip.directive",t)}),t.pie.dispatch.on("elementClick.directive",function(t){e.$emit("elementClick.directive",t)})),t.scatter&&(t.scatter.dispatch.on("elementMouseover.tooltip.directive",function(t){e.$emit("elementMouseover.tooltip.directive",t)}),t.scatter.dispatch.on("elementMouseout.tooltip.directive",function(t){e.$emit("elementMouseover.tooltip.directive",t)})),t.bullet&&(t.bullet.dispatch.on("elementMouseover.tooltip.directive",function(t){e.$emit("elementMouseover.tooltip.directive",t)}),t.bullet.dispatch.on("elementMouseout.tooltip.directive",function(t){e.$emit("elementMouseover.tooltip.directive",t)})),t.legend&&(t.legend.dispatch.on("stateChange.legend.directive",function(t){e.$emit("stateChange.legend.directive",t)}),t.legend.dispatch.on("legendClick.directive",function(t,n){e.$emit("legendClick.directive",t,n)}),t.legend.dispatch.on("legendDblclick.directive",function(t,n){e.$emit("legendDblclick.directive",t,n)}),t.legend.dispatch.on("legendMouseover.directive",function(t,n){e.$emit("legendMouseover.directive",t,n)})),t.controls&&t.controls.legendClick&&t.controls.dispatch.on("legendClick.directive",function(t,n){e.$emit("legendClick.directive",t,n)})}function i(t,e,n){n.xaxisorient&&t.xAxis.orient(n.xaxisorient),n.xaxisticks&&t.xAxis.scale().ticks(n.xaxisticks),n.xaxistickvalues&&(Array.isArray(e.$eval(n.xaxistickvalues))?t.xAxis.tickValues(e.$eval(n.xaxistickvalues)):"function"==typeof e.xaxistickvalues()&&t.xAxis.tickValues(e.xaxistickvalues())),n.xaxisticksubdivide&&t.xAxis.tickSubdivide(e.xaxisticksubdivide()),n.xaxisticksize&&t.xAxis.tickSize(e.xaxisticksize()),n.xaxistickpadding&&t.xAxis.tickPadding(e.xaxistickpadding()),n.xaxistickformat&&t.xAxis.tickFormat(e.xaxistickformat()),n.xaxislabel&&t.xAxis.axisLabel(n.xaxislabel),n.xaxisscale&&t.xAxis.scale(e.xaxisscale()),n.xaxisdomain&&(Array.isArray(e.$eval(n.xaxisdomain))?t.xDomain(e.$eval(n.xaxisdomain)):"function"==typeof e.xaxisdomain()&&t.xDomain(e.xaxisdomain())),n.xaxisrange&&(Array.isArray(e.$eval(n.xaxisrange))?t.xRange(e.$eval(n.xaxisrange)):"function"==typeof e.xaxisrange()&&t.xRange(e.xaxisrange())),n.xaxisrangeband&&t.xAxis.rangeBand(e.xaxisrangeband()),n.xaxisrangebands&&t.xAxis.rangeBands(e.xaxisrangebands()),n.xaxisshowmaxmin&&t.xAxis.showMaxMin("true"===n.xaxisshowmaxmin),n.xaxishighlightzero&&t.xAxis.highlightZero("true"===n.xaxishighlightzero),n.xaxisrotatelabels&&t.xAxis.rotateLabels(+n.xaxisrotatelabels),n.xaxisstaggerlabels&&t.xAxis.staggerLabels("true"===n.xaxisstaggerlabels),n.xaxislabeldistance&&t.xAxis.axisLabelDistance(+n.xaxislabeldistance)}function r(t,e,n){n.x2axisorient&&t.x2Axis.orient(n.x2axisorient),n.x2axisticks&&t.x2Axis.scale().ticks(n.x2axisticks),n.x2axistickvalues&&(Array.isArray(e.$eval(n.x2axistickvalues))?t.x2Axis.tickValues(e.$eval(n.x2axistickvalues)):"function"==typeof e.xaxistickvalues()&&t.x2Axis.tickValues(e.x2axistickvalues())),n.x2axisticksubdivide&&t.x2Axis.tickSubdivide(e.x2axisticksubdivide()),n.x2axisticksize&&t.x2Axis.tickSize(e.x2axisticksize()),n.x2axistickpadding&&t.x2Axis.tickPadding(e.x2axistickpadding()),n.x2axistickformat&&t.x2Axis.tickFormat(e.x2axistickformat()),n.x2axislabel&&t.x2Axis.axisLabel(n.x2axislabel),n.x2axisscale&&t.x2Axis.scale(e.x2axisscale()),n.x2axisdomain&&(Array.isArray(e.$eval(n.x2axisdomain))?t.x2Axis.domain(e.$eval(n.x2axisdomain)):"function"==typeof e.x2axisdomain()&&t.x2Axis.domain(e.x2axisdomain())),n.x2axisrange&&(Array.isArray(e.$eval(n.x2axisrange))?t.x2Axis.range(e.$eval(n.x2axisrange)):"function"==typeof e.x2axisrange()&&t.x2Axis.range(e.x2axisrange())),n.x2axisrangeband&&t.x2Axis.rangeBand(e.x2axisrangeband()),n.x2axisrangebands&&t.x2Axis.rangeBands(e.x2axisrangebands()),n.x2axisshowmaxmin&&t.x2Axis.showMaxMin("true"===n.x2axisshowmaxmin),n.x2axishighlightzero&&t.x2Axis.highlightZero("true"===n.x2axishighlightzero),n.x2axisrotatelables&&t.x2Axis.rotateLabels(+n.x2axisrotatelables),n.x2axisstaggerlabels&&t.x2Axis.staggerLabels("true"===n.x2axisstaggerlabels),n.x2axislabeldistance&&t.x2Axis.axisLabelDistance(+n.x2axislabeldistance)}function a(t,e,n){n.yaxisorient&&t.yAxis.orient(n.yaxisorient),n.yaxisticks&&t.yAxis.scale().ticks(n.yaxisticks),n.yaxistickvalues&&(Array.isArray(e.$eval(n.yaxistickvalues))?t.yAxis.tickValues(e.$eval(n.yaxistickvalues)):"function"==typeof e.yaxistickvalues()&&t.yAxis.tickValues(e.yaxistickvalues())),n.yaxisticksubdivide&&t.yAxis.tickSubdivide(e.yaxisticksubdivide()),n.yaxisticksize&&t.yAxis.tickSize(e.yaxisticksize()),n.yaxistickpadding&&t.yAxis.tickPadding(e.yaxistickpadding()),n.yaxistickformat&&t.yAxis.tickFormat(e.yaxistickformat()),n.yaxislabel&&t.yAxis.axisLabel(n.yaxislabel),n.yaxisscale&&t.yAxis.scale(e.yaxisscale()),n.yaxisdomain&&(Array.isArray(e.$eval(n.yaxisdomain))?t.yDomain(e.$eval(n.yaxisdomain)):"function"==typeof e.yaxisdomain()&&t.yDomain(e.yaxisdomain())),n.yaxisrange&&(Array.isArray(e.$eval(n.yaxisrange))?t.yRange(e.$eval(n.yaxisrange)):"function"==typeof e.yaxisrange()&&t.yRange(e.yaxisrange())),n.yaxisrangeband&&t.yAxis.rangeBand(e.yaxisrangeband()),n.yaxisrangebands&&t.yAxis.rangeBands(e.yaxisrangebands()),n.yaxisshowmaxmin&&t.yAxis.showMaxMin("true"===n.yaxisshowmaxmin),n.yaxishighlightzero&&t.yAxis.highlightZero("true"===n.yaxishighlightzero),n.yaxisrotatelabels&&t.yAxis.rotateLabels(+n.yaxisrotatelabels),n.yaxisrotateylabel&&t.yAxis.rotateYLabel("true"===n.yaxisrotateylabel),n.yaxisstaggerlabels&&t.yAxis.staggerLabels("true"===n.yaxisstaggerlabels),n.yaxislabeldistance&&t.yAxis.axisLabelDistance(+n.yaxislabeldistance)}function o(t,e,n){n.y1axisticks&&t.y1Axis.scale().ticks(n.y1axisticks),n.y1axistickvalues&&(Array.isArray(e.$eval(n.y1axistickvalues))?t.y1Axis.tickValues(e.$eval(n.y1axistickvalues)):"function"==typeof e.y1axistickvalues()&&t.y1Axis.tickValues(e.y1axistickvalues())),n.y1axisticksubdivide&&t.y1Axis.tickSubdivide(e.y1axisticksubdivide()),n.y1axisticksize&&t.y1Axis.tickSize(e.y1axisticksize()),n.y1axistickpadding&&t.y1Axis.tickPadding(e.y1axistickpadding()),n.y1axistickformat&&t.y1Axis.tickFormat(e.y1axistickformat()),n.y1axislabel&&t.y1Axis.axisLabel(n.y1axislabel),n.y1axisscale&&t.y1Axis.yScale(e.y1axisscale()),n.y1axisdomain&&(Array.isArray(e.$eval(n.y1axisdomain))?t.y1Axis.domain(e.$eval(n.y1axisdomain)):"function"==typeof e.y1axisdomain()&&t.y1Axis.domain(e.y1axisdomain())),n.y1axisrange&&(Array.isArray(e.$eval(n.y1axisrange))?t.y1Axis.range(e.$eval(n.y1axisrange)):"function"==typeof e.y1axisrange()&&t.y1Axis.range(e.y1axisrange())),n.y1axisrangeband&&t.y1Axis.rangeBand(e.y1axisrangeband()),n.y1axisrangebands&&t.y1Axis.rangeBands(e.y1axisrangebands()),n.y1axisshowmaxmin&&t.y1Axis.showMaxMin("true"===n.y1axisshowmaxmin),n.y1axishighlightzero&&t.y1Axis.highlightZero("true"===n.y1axishighlightzero),n.y1axisrotatelabels&&t.y1Axis.rotateLabels(+e.y1axisrotatelabels),n.y1axisrotateylabel&&t.y1Axis.rotateYLabel("true"===n.y1axisrotateylabel),n.y1axisstaggerlabels&&t.y1Axis.staggerlabels("true"===n.y1axisstaggerlabels),n.y1axislabeldistance&&t.y1Axis.axisLabelDistance(+n.y1axislabeldistance)}function s(t,e,n){n.y2axisticks&&t.y2Axis.scale().ticks(n.y2axisticks),n.y2axistickvalues&&t.y2Axis.tickValues(e.$eval(n.y2axistickvalues)),n.y2axisticksubdivide&&t.y2Axis.tickSubdivide(e.y2axisticksubdivide()),n.y2axisticksize&&t.y2Axis.tickSize(e.y2axisticksize()),n.y2axistickpadding&&t.y2Axis.tickPadding(e.y2axistickpadding()),n.y2axistickformat&&t.y2Axis.tickFormat(e.y2axistickformat()),n.y2axislabel&&t.y2Axis.axisLabel(n.y2axislabel),n.y2axisscale&&t.y2Axis.yScale(e.y2axisscale()),n.y2axisdomain&&(Array.isArray(e.$eval(n.y2axisdomain))?t.y2Axis.domain(e.$eval(n.y2axisdomain)):"function"==typeof e.y2axisdomain()&&t.y2Axis.domain(e.y2axisdomain())),n.y2axisrange&&(Array.isArray(e.$eval(n.y2axisrange))?t.y2Axis.range(e.$eval(n.y2axisrange)):"function"==typeof e.y2axisrange()&&t.y2Axis.range(e.y2axisrange())),n.y2axisrangeband&&t.y2Axis.rangeBand(e.y2axisrangeband()),n.y2axisrangebands&&t.y2Axis.rangeBands(e.y2axisrangebands()),n.y2axisshowmaxmin&&t.y2Axis.showMaxMin("true"===n.y2axisshowmaxmin),n.y2axishighlightzero&&t.y2Axis.highlightZero("true"===n.y2axishighlightzero),n.y2axisrotatelabels&&t.y2Axis.rotateLabels(+e.y2axisrotatelabels),n.y2axisrotateylabel&&t.y2Axis.rotateYLabel("true"===n.y2axisrotateylabel),n.y2axisstaggerlabels&&t.y2Axis.staggerlabels("true"===n.y2axisstaggerlabels),n.y2axislabeldistance&&t.y2Axis.axisLabelDistance(+n.y2axislabeldistance)}function l(t,e){var n=t.$eval(e.margin)||{left:50,top:50,bottom:50,right:50};"object"!=typeof n&&(n={left:n,top:n,bottom:n,right:n}),t.margin=n}function u(t,l,u,c,d){i(c,t,l),r(c,t,l),a(c,t,l),o(c,t,l),s(c,t,l),e(c,t,l),n(c,t);var h;l.id?(angular.isArray(d)&&0===d.length&&d3.select("#"+l.id+" svg").remove(),d3.select("#"+l.id+" svg").empty()&&d3.select("#"+l.id).append("svg"),d3.select("#"+l.id+" svg").attr("height",t.height).attr("width",t.width).datum(d).transition().duration(void 0===l.transitionduration?250:+l.transitionduration).call(c)):(h="chartid"+Math.floor(1000000001*Math.random()),angular.element(u).attr("data-chartid",h),d3.select("[data-chartid="+h+"] svg").empty()?d3.select("[data-chartid="+h+"]").append("svg").attr("height",t.height).attr("width",t.width).datum(d).transition().duration(void 0===l.transitionduration?250:+l.transitionduration).call(c):d3.select("[data-chartid="+h+"] svg").attr("height",t.height).attr("width",t.width).datum(d).transition().duration(void 0===l.transitionduration?250:+l.transitionduration).call(c))}angular.module("legendDirectives",[]).directive("simpleSvgLegend",function(){return{restrict:"EA",scope:{id:"@",width:"@",height:"@",margin:"@",x:"@",y:"@",labels:"@",styles:"@",classes:"@",shapes:"@",padding:"@",columns:"@"},compile:function(){return function(t,e,n){var i,r,a,o,s,l,u,c,d,h,p,f=0,g=0,m=1,v=0,y=10,b="http://www.w3.org/2000/svg",x=0,w=0;o=t.$eval(n.margin)||{left:5,top:5,bottom:5,right:5},r="undefined"===n.width?e[0].parentElement.offsetWidth-(o.left+o.right):+n.width-(o.left+o.right),a="undefined"===n.height?e[0].parentElement.offsetHeight-(o.top+o.bottom):+n.height-(o.top+o.bottom),i=n.id?n.id:"legend-"+Math.random(),n.columns&&(m=+n.columns),n.padding&&(y=+n.padding),s=y+"",l=document.createElementNS(b,"svg"),n.width&&l.setAttribute("width",r+""),n.height&&l.setAttribute("height",a+""),l.setAttribute("id",i),n.x&&(x=+n.x),n.y&&(w=+n.y),e.append(l),u=document.createElementNS(b,"g"),u.setAttribute("transform","translate("+x+","+w+")"),l.appendChild(u),n.labels&&(c=t.$eval(n.labels)),n.styles&&(d=t.$eval(n.styles)),n.classes&&(h=t.$eval(n.classes)),n.shapes&&(p=t.$eval(n.shapes));for(var k in c)if(c.hasOwnProperty(k)){var $,_,C,M,D=p[k];v%m===0&&(f=0,g+=y+1.5*y),M=document.createElementNS(b,"g"),M.setAttribute("transform","translate("+f+", "+g+")"),"rect"===D?($=document.createElementNS(b,"rect"),$.setAttribute("y",0-y/2+""),$.setAttribute("width",s),$.setAttribute("height",s)):"ellipse"===D?($=document.createElementNS(b,"ellipse"),$.setAttribute("rx",s),$.setAttribute("ry",y+y/2+"")):($=document.createElementNS(b,"circle"),$.setAttribute("r",y/2+"")),d&&d[k]&&$.setAttribute("style",d[k]),h&&h[k]&&$.setAttribute("class",h[k]),M.appendChild($),f=f+$.clientWidth+(y+y/2),_=document.createElementNS(b,"text"),_.setAttribute("transform","translate(10, 5)"),_.appendChild(document.createTextNode(c[k])),M.appendChild(_),u.appendChild(M),C=_.clientWidth,f=f+C+(y+.75*y),v++}}}}}).directive("nvd3Legend",[function(){var t,e,n,i;return{restrict:"EA",scope:{data:"=",id:"@",margin:"&",width:"@",height:"@",key:"&",color:"&",align:"@",rightalign:"@",updatestate:"@",radiobuttonmode:"@",x:"&",y:"&"},link:function(r,a,o){r.$watch("data",function(s){if(s){if(r.chart)return d3.select("#"+o.id+" svg").attr("height",n).attr("width",e).datum(s).transition().duration(250).call(r.chart);t=r.$eval(o.margin)||{top:5,right:0,bottom:5,left:0},e=void 0===o.width?a[0].parentElement.offsetWidth-(t.left+t.right):+o.width-(t.left+t.right),n=void 0===o.height?a[0].parentElement.offsetHeight-(t.top+t.bottom):+o.height-(t.top+t.bottom),(void 0===e||0>e)&&(e=400),(void 0===n||0>n)&&(n=20),i=o.id?o.id:"legend-"+Math.random(),nv.addGraph({generate:function(){var i=nv.models.legend().width(e).height(n).margin(t).align(void 0===o.align?!0:"true"===o.align).rightAlign(void 0===o.rightalign?!0:"true"===o.rightalign).updateState(void 0===o.updatestate?!0:"true"===o.updatestate).radioButtonMode(void 0===o.radiobuttonmode?!1:"true"===o.radiobuttonmode).color(void 0===o.color?nv.utils.defaultColor():r.color()).key(void 0===o.key?function(t){return t.key}:r.key());return d3.select("#"+o.id+" svg")[0][0]||d3.select("#"+o.id).append("svg"),d3.select("#"+o.id+" svg").attr("height",n).attr("width",e).datum(s).transition().duration(250).call(i),nv.utils.windowResize(i.update),r.chart=i,i}})}})}}}]),angular.module("nvd3ChartDirectives",[]).directive("nvd3LineChart",[function(){return{restrict:"EA",scope:{data:"=",width:"@",height:"@",id:"@",showlegend:"@",tooltips:"@",showxaxis:"@",showyaxis:"@",rightalignyaxis:"@",defaultstate:"@",nodata:"@",margin:"&",tooltipcontent:"&",color:"&",x:"&",y:"&",forcex:"@",forcey:"@",isArea:"@",interactive:"@",clipedge:"@",clipvoronoi:"@",interpolate:"@",callback:"&",useinteractiveguideline:"@",xaxisorient:"&",xaxisticks:"@",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelabels:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",xaxislabeldistance:"@",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelabels:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",yaxislabeldistance:"@",legendmargin:"&",legendwidth:"@",legendheight:"@",legendkey:"@",legendcolor:"&",legendalign:"@",legendrightalign:"@",legendupdatestate:"@",legendradiobuttonmode:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(t,e,n){t.d3Call=function(i,r){u(t,n,e,r,i)}}],link:function(t,e,n){t.$watch("data",function(e){if(e){if(t.chart)return t.d3Call(e,t.chart);nv.addGraph({generate:function(){l(t,n);var i=nv.models.lineChart().width(t.width).height(t.height).margin(t.margin).x(void 0===n.x?function(t){return t[0]}:t.x()).y(void 0===n.y?function(t){return t[1]}:t.y()).forceX(void 0===n.forcex?[]:t.$eval(n.forcex)).forceY(void 0===n.forcey?[0]:t.$eval(n.forcey)).showLegend(void 0===n.showlegend?!1:"true"===n.showlegend).tooltips(void 0===n.tooltips?!1:"true"===n.tooltips).showXAxis(void 0===n.showxaxis?!1:"true"===n.showxaxis).showYAxis(void 0===n.showyaxis?!1:"true"===n.showyaxis).rightAlignYAxis(void 0===n.rightalignyaxis?!1:"true"===n.rightalignyaxis).noData(void 0===n.nodata?"No Data Available.":t.nodata).interactive(void 0===n.interactive?!1:"true"===n.interactive).clipEdge(void 0===n.clipedge?!1:"true"===n.clipedge).clipVoronoi(void 0===n.clipvoronoi?!1:"true"===n.clipvoronoi).interpolate(void 0===n.interpolate?"linear":n.interpolate).color(void 0===n.color?nv.utils.defaultColor():t.color()).isArea(void 0===n.isarea?function(t){return t.area}:function(){return"true"===n.isarea});return i.useInteractiveGuideline&&i.useInteractiveGuideline(void 0===n.useinteractiveguideline?!1:"true"===n.useinteractiveguideline),n.tooltipcontent&&i.tooltipContent(t.tooltipcontent()),t.d3Call(e,i),nv.utils.windowResize(i.update),t.chart=i,i},callback:void 0===n.callback?null:t.callback()})}},void 0===n.objectequality?!1:"true"===n.objectequality)}}}]).directive("nvd3CumulativeLineChart",[function(){return{restrict:"EA",scope:{data:"=",width:"@",height:"@",id:"@",showlegend:"@",tooltips:"@",showxaxis:"@",showyaxis:"@",rightalignyaxis:"@",defaultstate:"@",nodata:"@",margin:"&",tooltipcontent:"&",color:"&",x:"&",y:"&",forcex:"@",forcey:"@",isArea:"@",interactive:"@",clipedge:"@",clipvoronoi:"@",usevoronoi:"@",average:"&",rescaley:"@",callback:"&",useinteractiveguideline:"@",xaxisorient:"&",xaxisticks:"&",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelabels:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",xaxislabeldistance:"@",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelabels:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",yaxislabeldistance:"@",legendmargin:"&",legendwidth:"@",legendheight:"@",legendkey:"@",legendcolor:"&",legendalign:"@",legendrightalign:"@",legendupdatestate:"@",legendradiobuttonmode:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(t,e,n){t.d3Call=function(i,r){u(t,n,e,r,i)}}],link:function(t,e,n){t.$watch("data",function(e){if(e){if(t.chart)return t.d3Call(e,t.chart);nv.addGraph({generate:function(){l(t,n);var i=nv.models.cumulativeLineChart().width(t.width).height(t.height).margin(t.margin).x(void 0===n.x?function(t){return t[0]}:t.x()).y(void 0===n.y?function(t){return t[1]}:t.y()).forceX(void 0===n.forcex?[]:t.$eval(n.forcex)).forceY(void 0===n.forcey?[0]:t.$eval(n.forcey)).showLegend(void 0===n.showlegend?!1:"true"===n.showlegend).tooltips(void 0===n.tooltips?!1:"true"===n.tooltips).showXAxis(void 0===n.showxaxis?!1:"true"===n.showxaxis).showYAxis(void 0===n.showyaxis?!1:"true"===n.showyaxis).rightAlignYAxis(void 0===n.rightalignyaxis?!1:"true"===n.rightalignyaxis).noData(void 0===n.nodata?"No Data Available.":t.nodata).interactive(void 0===n.interactive?!1:"true"===n.interactive).clipEdge(void 0===n.clipedge?!1:"true"===n.clipedge).clipVoronoi(void 0===n.clipvoronoi?!1:"true"===n.clipvoronoi).useVoronoi(void 0===n.usevoronoi?!1:"true"===n.usevoronoi).average(void 0===n.average?function(t){return t.average}:t.average()).color(void 0===n.color?d3.scale.category10().range():t.color()).isArea(void 0===n.isarea?function(t){return t.area}:"true"===n.isarea);return i.useInteractiveGuideline&&i.useInteractiveGuideline(void 0===n.useinteractiveguideline?!1:"true"===n.useinteractiveguideline),n.tooltipcontent&&i.tooltipContent(t.tooltipcontent()),t.d3Call(e,i),nv.utils.windowResize(i.update),t.chart=i,i},callback:void 0===n.callback?null:t.callback()})}},void 0===n.objectequality?!1:"true"===n.objectequality)}}}]).directive("nvd3StackedAreaChart",[function(){return{restrict:"EA",scope:{data:"=",width:"@",height:"@",id:"@",showlegend:"@",tooltips:"@",showcontrols:"@",nodata:"@",margin:"&",tooltipcontent:"&",color:"&",x:"&",y:"&",forcex:"@",forcey:"@",forcesize:"@",interactive:"@",usevoronoi:"@",clipedge:"@",interpolate:"@",style:"@",order:"@",offset:"@",size:"&",xScale:"&",yScale:"&",xDomain:"&",yDomain:"&",xRange:"&",yRange:"&",sizeDomain:"&",callback:"&",showxaxis:"&",xaxisorient:"&",xaxisticks:"&",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelabels:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",xaxisaxislabeldistance:"@",showyaxis:"&",useinteractiveguideline:"@",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelabels:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",yaxislabeldistance:"@",legendmargin:"&",legendwidth:"@",legendheight:"@",legendkey:"@",legendcolor:"&",legendalign:"@",legendrightalign:"@",legendupdatestate:"@",legendradiobuttonmode:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(t,e,n){t.d3Call=function(i,r){u(t,n,e,r,i)}}],link:function(t,e,n){t.$watch("data",function(e){if(e){if(t.chart)return t.d3Call(e,t.chart);nv.addGraph({generate:function(){l(t,n);var i=nv.models.stackedAreaChart().width(t.width).height(t.height).margin(t.margin).x(void 0===n.x?function(t){return t[0]}:t.x()).y(void 0===n.y?function(t){return t[1]}:t.y()).forceX(void 0===n.forcex?[]:t.$eval(n.forcex)).forceY(void 0===n.forcey?[0]:t.$eval(n.forcey)).size(void 0===n.size?function(t){return void 0===t.size?1:t.size}:t.size()).forceSize(void 0===n.forcesize?[]:t.$eval(n.forcesize)).showLegend(void 0===n.showlegend?!1:"true"===n.showlegend).showControls(void 0===n.showcontrols?!1:"true"===n.showcontrols).showXAxis(void 0===n.showxaxis?!1:"true"===n.showxaxis).showYAxis(void 0===n.showyaxis?!1:"true"===n.showyaxis).tooltips(void 0===n.tooltips?!1:"true"===n.tooltips).noData(void 0===n.nodata?"No Data Available.":t.nodata).interactive(void 0===n.interactive?!1:"true"===n.interactive).clipEdge(void 0===n.clipedge?!1:"true"===n.clipedge).color(void 0===n.color?nv.utils.defaultColor():t.color());return i.useInteractiveGuideline&&i.useInteractiveGuideline(void 0===n.useinteractiveguideline?!1:"true"===n.useinteractiveguideline),n.usevoronoi&&i.useVoronoi("true"===n.usevoronoi),n.style&&i.style(n.style),n.order&&i.order(n.order),n.offset&&i.offset(n.offset),n.interpolate&&i.interpolate(n.interpolate),n.tooltipcontent&&i.tooltipContent(t.tooltipcontent()),n.xscale&&i.xScale(t.xscale()),n.yscale&&i.yScale(t.yscale()),n.xdomain&&(Array.isArray(t.$eval(n.xdomain))?i.xDomain(t.$eval(n.xdomain)):"function"==typeof t.xdomain()&&i.xDomain(t.xdomain())),n.ydomain&&(Array.isArray(t.$eval(n.ydomain))?i.yDomain(t.$eval(n.ydomain)):"function"==typeof t.ydomain()&&i.yDomain(t.ydomain())),n.sizedomain&&i.sizeDomain(t.sizedomain()),t.d3Call(e,i),nv.utils.windowResize(i.update),t.chart=i,i},callback:void 0===n.callback?null:t.callback()})}},void 0===n.objectequality?!1:"true"===n.objectequality)}}}]).directive("nvd3MultiBarChart",[function(){return{restrict:"EA",scope:{data:"=",width:"@",height:"@",id:"@",showlegend:"@",tooltips:"@",tooltipcontent:"&",color:"&",showcontrols:"@",nodata:"@",reducexticks:"@",staggerlabels:"@",rotatelabels:"@",margin:"&",x:"&",y:"&",forcey:"@",delay:"@",stacked:"@",callback:"&",showxaxis:"&",xaxisorient:"&",xaxisticks:"&",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelabels:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",xaxisaxislabeldistance:"@",showyaxis:"&",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelabels:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",yaxislabeldistance:"@",legendmargin:"&",legendwidth:"@",legendheight:"@",legendkey:"@",legendcolor:"&",legendalign:"@",legendrightalign:"@",legendupdatestate:"@",legendradiobuttonmode:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(t,e,n){t.d3Call=function(i,r){u(t,n,e,r,i)}}],link:function(t,e,n){t.$watch("data",function(e){if(e){if(t.chart)return t.d3Call(e,t.chart);nv.addGraph({generate:function(){l(t,n);var i=nv.models.multiBarChart().width(t.width).height(t.height).margin(t.margin).x(void 0===n.x?function(t){return t[0]}:t.x()).y(void 0===n.y?function(t){return t[1]}:t.y()).forceY(void 0===n.forcey?[0]:t.$eval(n.forcey)).showLegend(void 0===n.showlegend?!1:"true"===n.showlegend).showControls(void 0===n.showcontrols?!1:"true"===n.showcontrols).showXAxis(void 0===n.showxaxis?!1:"true"===n.showxaxis).showYAxis(void 0===n.showyaxis?!1:"true"===n.showyaxis).tooltips(void 0===n.tooltips?!1:"true"===n.tooltips).reduceXTicks(void 0===n.reducexticks?!1:"true"===n.reducexticks).staggerLabels(void 0===n.staggerlabels?!1:"true"===n.staggerlabels).noData(void 0===n.nodata?"No Data Available.":t.nodata).rotateLabels(void 0===n.rotatelabels?0:n.rotatelabels).color(void 0===n.color?nv.utils.defaultColor():t.color()).delay(void 0===n.delay?1200:n.delay).stacked(void 0===n.stacked?!1:"true"===n.stacked);return n.tooltipcontent&&i.tooltipContent(t.tooltipcontent()),t.d3Call(e,i),nv.utils.windowResize(i.update),t.chart=i,i},callback:void 0===n.callback?null:t.callback()})}},void 0===n.objectequality?!1:"true"===n.objectequality)}}}]).directive("nvd3DiscreteBarChart",[function(){return{restrict:"EA",scope:{data:"=",width:"@",height:"@",id:"@",tooltips:"@",showxaxis:"@",showyaxis:"@",tooltipcontent:"&",staggerlabels:"@",color:"&",margin:"&",nodata:"@",x:"&",y:"&",forcey:"@",showvalues:"@",valueformat:"&",callback:"&",xaxisorient:"&",xaxisticks:"&",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelabels:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",xaxisaxislabeldistance:"@",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelabels:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",yaxislabeldistance:"@",legendmargin:"&",legendwidth:"@",legendheight:"@",legendkey:"@",legendcolor:"&",legendalign:"@",legendrightalign:"@",legendupdatestate:"@",legendradiobuttonmode:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(t,e,n){t.d3Call=function(i,r){u(t,n,e,r,i)}}],link:function(t,e,n){t.$watch("data",function(e){if(e){if(t.chart)return t.d3Call(e,t.chart);nv.addGraph({generate:function(){l(t,n);var i=nv.models.discreteBarChart().width(t.width).height(t.height).margin(t.margin).x(void 0===n.x?function(t){return t[0]}:t.x()).y(void 0===n.y?function(t){return t[1]}:t.y()).forceY(void 0===n.forcey?[0]:t.$eval(n.forcey)).showValues(void 0===n.showvalues?!1:"true"===n.showvalues).tooltips(void 0===n.tooltips?!1:"true"===n.tooltips).showXAxis(void 0===n.showxaxis?!1:"true"===n.showxaxis).showYAxis(void 0===n.showyaxis?!1:"true"===n.showyaxis).noData(void 0===n.nodata?"No Data Available.":t.nodata).staggerLabels(void 0===n.staggerlabels?!1:"true"===n.staggerlabels).color(void 0===n.color?nv.utils.defaultColor():t.color());return n.tooltipcontent&&i.tooltipContent(t.tooltipcontent()),n.valueformat&&i.valueFormat(t.valueformat()),t.d3Call(e,i),nv.utils.windowResize(i.update),t.chart=i,i},callback:void 0===n.callback?null:t.callback()})}},void 0===n.objectequality?!1:"true"===n.objectequality)}}}]).directive("nvd3HistoricalBarChart",[function(){return{restrict:"EA",scope:{data:"=",width:"@",height:"@",id:"@",tooltips:"@",tooltipcontent:"&",color:"&",margin:"&",nodata:"@",x:"&",y:"&",forcey:"@",isarea:"@",interactive:"@",clipedge:"@",clipvoronoi:"@",interpolate:"@",highlightPoint:"@",clearHighlights:"@",callback:"&",useinteractiveguideline:"@",xaxisorient:"&",xaxisticks:"&",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelabels:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",xaxisaxislabeldistance:"@",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelabels:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",yaxislabeldistance:"@",legendmargin:"&",legendwidth:"@",legendheight:"@",legendkey:"@",legendcolor:"&",legendalign:"@",legendrightalign:"@",legendupdatestate:"@",legendradiobuttonmode:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(t,e,n){t.d3Call=function(i,r){u(t,n,e,r,i)
}}],link:function(t,e,n){t.$watch("data",function(e){if(e){if(t.chart)return t.d3Call(e,t.chart);nv.addGraph({generate:function(){l(t,n);var i=nv.models.historicalBarChart().width(t.width).height(t.height).margin(t.margin).x(void 0===n.x?function(t){return t[0]}:t.x()).y(void 0===n.y?function(t){return t[1]}:t.y()).forceY(void 0===n.forcey?[0]:t.$eval(n.forcey)).tooltips(void 0===n.tooltips?!1:"true"===n.tooltips).noData(void 0===n.nodata?"No Data Available.":t.nodata).interactive(void 0===n.interactive?!1:"true"===n.interactive).color(void 0===n.color?nv.utils.defaultColor():t.color());return i.useInteractiveGuideline&&i.useInteractiveGuideline(void 0===n.useinteractiveguideline?!1:"true"===n.useinteractiveguideline),n.tooltipcontent&&i.tooltipContent(t.tooltipcontent()),n.valueformat&&i.valueFormat(t.valueformat()),t.d3Call(e,i),nv.utils.windowResize(i.update),t.chart=i,i},callback:void 0===n.callback?null:t.callback()})}},void 0===n.objectequality?!1:"true"===n.objectequality)}}}]).directive("nvd3MultiBarHorizontalChart",[function(){return{restrict:"EA",scope:{data:"=",width:"@",height:"@",id:"@",showlegend:"@",tooltips:"@",tooltipcontent:"&",color:"&",showcontrols:"@",margin:"&",nodata:"@",x:"&",y:"&",forcey:"@",stacked:"@",showvalues:"@",valueformat:"&",callback:"&",xaxisorient:"&",xaxisticks:"&",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelabels:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",xaxisaxislabeldistance:"@",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelabels:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",yaxislabeldistance:"@",legendmargin:"&",legendwidth:"@",legendheight:"@",legendkey:"@",legendcolor:"&",legendalign:"@",legendrightalign:"@",legendupdatestate:"@",legendradiobuttonmode:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(t,e,n){t.d3Call=function(i,r){u(t,n,e,r,i)}}],link:function(t,e,n){t.$watch("data",function(e){if(e){if(t.chart)return t.d3Call(e,t.chart);nv.addGraph({generate:function(){l(t,n);var i=nv.models.multiBarHorizontalChart().width(t.width).height(t.height).margin(t.margin).x(void 0===n.x?function(t){return t[0]}:t.x()).y(void 0===n.y?function(t){return t[1]}:t.y()).showXAxis(void 0===n.showxaxis?!1:"true"===n.showxaxis).showYAxis(void 0===n.showyaxis?!1:"true"===n.showyaxis).forceY(void 0===n.forcey?[0]:t.$eval(n.forcey)).tooltips(void 0===n.tooltips?!1:"true"===n.tooltips).noData(void 0===n.nodata?"No Data Available.":t.nodata).color(void 0===n.color?nv.utils.defaultColor():t.color()).showLegend(void 0===n.showlegend?!1:"true"===n.showlegend).showControls(void 0===n.showcontrols?!1:"true"===n.showcontrols).showValues(void 0===n.showvalues?!1:"true"===n.showvalues).stacked(void 0===n.stacked?!1:"true"===n.stacked);return n.tooltipcontent&&i.tooltipContent(t.tooltipcontent()),n.valueformat&&i.valueFormat(t.valueformat()),t.d3Call(e,i),nv.utils.windowResize(i.update),t.chart=i,i},callback:void 0===n.callback?null:t.callback()})}},void 0===n.objectequality?!1:"true"===n.objectequality)}}}]).directive("nvd3PieChart",[function(){return{restrict:"EA",scope:{data:"=",width:"@",height:"@",id:"@",showlabels:"@",showlegend:"@",donutLabelsOutside:"@",pieLabelsOutside:"@",labelType:"@",nodata:"@",margin:"&",x:"&",y:"&",color:"&",donut:"@",donutRatio:"@",labelthreshold:"@",description:"&",tooltips:"@",tooltipcontent:"&",valueFormat:"&",callback:"&",legendmargin:"&",legendwidth:"@",legendheight:"@",legendkey:"@",legendcolor:"&",legendalign:"@",legendrightalign:"@",legendupdatestate:"@",legendradiobuttonmode:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(t,e,n){t.d3Call=function(i,r){u(t,n,e,r,i)}}],link:function(t,e,n){t.$watch("data",function(e){if(e){if(t.chart)return t.d3Call(e,t.chart);nv.addGraph({generate:function(){l(t,n);var i=nv.models.pieChart().x(void 0===n.x?function(t){return t[0]}:t.x()).y(void 0===n.y?function(t){return t[1]}:t.y()).width(t.width).height(t.height).margin(t.margin).tooltips(void 0===n.tooltips?!1:"true"===n.tooltips).noData(void 0===n.nodata?"No Data Available.":t.nodata).showLabels(void 0===n.showlabels?!1:"true"===n.showlabels).labelThreshold(void 0===n.labelthreshold?.02:n.labelthreshold).labelType(void 0===n.labeltype?"key":n.labeltype).pieLabelsOutside(void 0===n.pielabelsoutside?!0:"true"===n.pielabelsoutside).valueFormat(void 0===n.valueformat?d3.format(",.2f"):n.valueformat).showLegend(void 0===n.showlegend?!1:"true"===n.showlegend).description(void 0===n.description?function(t){return t.description}:t.description()).color(void 0===n.color?nv.utils.defaultColor():t.color()).donutLabelsOutside(void 0===n.donutlabelsoutside?!1:"true"===n.donutlabelsoutside).donut(void 0===n.donut?!1:"true"===n.donut).donutRatio(void 0===n.donutratio?.5:n.donutratio);return n.tooltipcontent&&i.tooltipContent(t.tooltipcontent()),t.d3Call(e,i),nv.utils.windowResize(i.update),t.chart=i,i},callback:void 0===n.callback?null:t.callback()})}},void 0===n.objectequality?!1:"true"===n.objectequality)}}}]).directive("nvd3ScatterChart",[function(){return{restrict:"EA",scope:{data:"=",width:"@",height:"@",id:"@",showlegend:"@",tooltips:"@",showcontrols:"@",showDistX:"@",showDistY:"@",rightAlignYAxis:"@",fisheye:"@",xPadding:"@",yPadding:"@",tooltipContent:"&",tooltipXContent:"&",tooltipYContent:"&",color:"&",margin:"&",nodata:"@",transitionDuration:"@",shape:"&",onlyCircles:"@",interactive:"@",x:"&",y:"&",size:"&",forceX:"@",forceY:"@",forceSize:"@",xrange:"&",xdomain:"&",xscale:"&",yrange:"&",ydomain:"&",yscale:"&",sizerange:"&",sizedomain:"&",zscale:"&",callback:"&",xaxisorient:"&",xaxisticks:"&",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelabels:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",xaxisaxislabeldistance:"@",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelabels:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",yaxislabeldistance:"@",legendmargin:"&",legendwidth:"@",legendheight:"@",legendkey:"@",legendcolor:"&",legendalign:"@",legendrightalign:"@",legendupdatestate:"@",legendradiobuttonmode:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(t,e,n){t.d3Call=function(i,r){u(t,n,e,r,i)}}],link:function(t,e,n){t.$watch("data",function(e){if(e){if(t.chart)return t.d3Call(e,t.chart);nv.addGraph({generate:function(){l(t,n);var i=nv.models.scatterChart().width(t.width).height(t.height).margin(t.margin).x(void 0===n.x?function(t){return t.x}:t.x()).y(void 0===n.y?function(t){return t.y}:t.y()).size(void 0===n.size?function(t){return void 0===t.size?1:t.size}:t.size()).forceX(void 0===n.forcex?[]:t.$eval(n.forcex)).forceY(void 0===n.forcey?[]:t.$eval(n.forcey)).forceSize(void 0===n.forcesize?[]:t.$eval(n.forcesize)).interactive(void 0===n.interactive?!1:"true"===n.interactive).tooltips(void 0===n.tooltips?!1:"true"===n.tooltips).tooltipContent(void 0===n.tooltipContent?null:t.tooltipContent()).tooltipXContent(void 0===n.tooltipxcontent?function(t,e){return"<strong>"+e+"</strong>"}:t.tooltipXContent()).tooltipYContent(void 0===n.tooltipycontent?function(t,e,n){return"<strong>"+n+"</strong>"}:t.tooltipYContent()).showControls(void 0===n.showcontrols?!1:"true"===n.showcontrols).showLegend(void 0===n.showlegend?!1:"true"===n.showlegend).showDistX(void 0===n.showdistx?!1:"true"===n.showdistx).showDistY(void 0===n.showdisty?!1:"true"===n.showdisty).xPadding(void 0===n.xpadding?0:+n.xpadding).yPadding(void 0===n.ypadding?0:+n.ypadding).fisheye(void 0===n.fisheye?0:+n.fisheye).noData(void 0===n.nodata?"No Data Available.":t.nodata).color(void 0===n.color?nv.utils.defaultColor():t.color()).transitionDuration(void 0===n.transitionduration?250:+n.transitionduration);return n.shape&&(i.scatter.onlyCircles(!1),i.scatter.shape(void 0===n.shape?function(t){return t.shape||"circle"}:t.shape())),n.xdomain&&(Array.isArray(t.$eval(n.xdomain))?i.xDomain(t.$eval(n.xdomain)):"function"==typeof t.xdomain()&&i.xDomain(t.xdomain())),n.ydomain&&(Array.isArray(t.$eval(n.ydomain))?i.yDomain(t.$eval(n.ydomain)):"function"==typeof t.ydomain()&&i.yDomain(t.ydomain())),n.xscale&&(i.xDomain(t.xdomain()),i.xRange(t.xrange()),i.xScale(t.xscale())),n.yscale&&(i.yDomain(t.ydomain()),i.yRange(t.yrange()),i.yScale(t.yscale())),n.zscale&&(i.sizeDomain(t.sizedomain()),i.sizeRange(t.sizerange()),i.zScale(t.zscale())),t.d3Call(e,i),nv.utils.windowResize(i.update),t.chart=i,i},callback:void 0===n.callback?null:t.callback()})}},void 0===n.objectequality?!1:"true"===n.objectequality)}}}]).directive("nvd3ScatterPlusLineChart",[function(){return{restrict:"EA",scope:{data:"=",width:"@",height:"@",id:"@",callback:"&"},controller:["$scope","$element","$attrs",function(t,e,n){t.d3Call=function(i,r){u(t,n,e,r,i)}}],link:function(t,e,n){t.$watch("data",function(e){if(e){if(t.chart)return t.d3Call(e,t.chart);nv.addGraph({generate:function(){l(t,n);var i=nv.models.scatterPlusLineChart().width(t.width).height(t.height).margin(t.margin).x(void 0===n.x?function(t){return t.x}:t.x()).y(void 0===n.y?function(t){return t.y}:t.y()).size(void 0===n.size?function(t){return void 0===t.size?1:t.size}:t.size()).interactive(void 0===n.interactive?!1:"true"===n.interactive).tooltips(void 0===n.tooltips?!1:"true"===n.tooltips).tooltipContent(void 0===n.tooltipContent?null:t.tooltipContent()).tooltipXContent(void 0===n.tooltipxcontent?function(t,e){return"<strong>"+e+"</strong>"}:t.tooltipXContent()).tooltipYContent(void 0===n.tooltipycontent?function(t,e,n){return"<strong>"+n+"</strong>"}:t.tooltipYContent()).showControls(void 0===n.showcontrols?!1:"true"===n.showcontrols).showLegend(void 0===n.showlegend?!1:"true"===n.showlegend).showDistX(void 0===n.showdistx?!1:"true"===n.showdistx).showDistY(void 0===n.showdisty?!1:"true"===n.showdisty).xPadding(void 0===n.xpadding?0:+n.xpadding).yPadding(void 0===n.ypadding?0:+n.ypadding).fisheye(void 0===n.fisheye?0:+n.fisheye).noData(void 0===n.nodata?"No Data Available.":t.nodata).color(void 0===n.color?nv.utils.defaultColor():t.color()).transitionDuration(void 0===n.transitionduration?250:+n.transitionduration);return n.shape&&(i.scatter.onlyCircles(!1),i.scatter.shape(void 0===n.shape?function(t){return t.shape||"circle"}:t.shape())),t.d3Call(e,i),nv.utils.windowResize(i.update),t.chart=i,i},callback:void 0===n.callback?null:t.callback()})}})}}}]).directive("nvd3LinePlusBarChart",[function(){return{restrict:"EA",scope:{data:"=",width:"@",height:"@",id:"@",showlegend:"@",tooltips:"@",showxaxis:"@",showyaxis:"@",forceX:"@",forceY:"@",forceY2:"@",rightalignyaxis:"@",defaultstate:"@",nodata:"@",margin:"&",tooltipcontent:"&",color:"&",x:"&",y:"&",clipvoronoi:"@",interpolate:"@",callback:"&",xaxisorient:"&",xaxisticks:"&",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelabels:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",xaxisaxislabeldistance:"@",y1axisorient:"&",y1axisticks:"&",y1axistickvalues:"&y1axistickvalues",y1axisticksubdivide:"&",y1axisticksize:"&",y1axistickpadding:"&",y1axistickformat:"&",y1axislabel:"@",y1axisscale:"&",y1axisdomain:"&",y1axisrange:"&",y1axisrangeband:"&",y1axisrangebands:"&",y1axisshowmaxmin:"@",y1axishighlightzero:"@",y1axisrotatelabels:"@",y1axisrotateylabel:"@",y1axisstaggerlabels:"@",y1axisaxislabeldistance:"@",y2axisorient:"&",y2axisticks:"&",y2axistickvalues:"&y2axistickvalues",y2axisticksubdivide:"&",y2axisticksize:"&",y2axistickpadding:"&",y2axistickformat:"&",y2axislabel:"@",y2axisscale:"&",y2axisdomain:"&",y2axisrange:"&",y2axisrangeband:"&",y2axisrangebands:"&",y2axisshowmaxmin:"@",y2axishighlightzero:"@",y2axisrotatelabels:"@",y2axisrotateylabel:"@",y2axisstaggerlabels:"@",y2axisaxislabeldistance:"@",legendmargin:"&",legendwidth:"@",legendheight:"@",legendkey:"@",legendcolor:"&",legendalign:"@",legendrightalign:"@",legendupdatestate:"@",legendradiobuttonmode:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(t,e,n){t.d3Call=function(i,r){u(t,n,e,r,i)}}],link:function(t,e,n){t.$watch("data",function(e){if(e){if(t.chart)return t.d3Call(e,t.chart);nv.addGraph({generate:function(){l(t,n);var i=nv.models.linePlusBarChart().width(t.width).height(t.height).margin(t.margin).x(void 0===n.x?function(t){return t[0]}:t.x()).y(void 0===n.y?function(t){return t[1]}:t.y()).showLegend(void 0===n.showlegend?!1:"true"===n.showlegend).tooltips(void 0===n.tooltips?!1:"true"===n.tooltips).noData(void 0===n.nodata?"No Data Available.":t.nodata).interpolate(void 0===n.interpolate?"linear":n.interpolate).color(void 0===n.color?nv.utils.defaultColor():t.color());return n.forcex&&(i.lines.forceX(t.$eval(n.forcex)),i.bars.forceX(t.$eval(n.forcex))),n.forcey&&(i.lines.forceY(t.$eval(n.forcey)),i.bars.forceY(t.$eval(n.forcey))),n.tooltipcontent&&i.tooltipContent(t.tooltipcontent()),t.d3Call(e,i),nv.utils.windowResize(i.update),t.chart=i,i},callback:void 0===n.callback?null:t.callback()})}},void 0===n.objectequality?!1:"true"===n.objectequality)}}}]).directive("nvd3LineWithFocusChart",[function(){return{restrict:"EA",scope:{data:"=",width:"@",height:"@",height2:"@",id:"@",showlegend:"@",tooltips:"@",showxaxis:"@",showyaxis:"@",rightalignyaxis:"@",defaultstate:"@",nodata:"@",margin:"&",margin2:"&",tooltipcontent:"&",color:"&",x:"&",y:"&",forceX:"@",forceY:"@",clipedge:"@",clipvoronoi:"@",interpolate:"@",isArea:"@",size:"&",defined:"&",interactive:"@",callback:"&",xaxisorient:"&",xaxisticks:"&",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelabels:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",xaxisaxislabeldistance:"@",x2axisorient:"&",x2axisticks:"&",x2axistickvalues:"&xaxistickvalues",x2axisticksubdivide:"&",x2axisticksize:"&",x2axistickpadding:"&",x2axistickformat:"&",x2axislabel:"@",x2axisscale:"&",x2axisdomain:"&",x2axisrange:"&",x2axisrangeband:"&",x2axisrangebands:"&",x2axisshowmaxmin:"@",x2axishighlightzero:"@",x2axisrotatelables:"@",x2axisrotateylabel:"@",x2axisstaggerlabels:"@",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelabels:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",yaxislabeldistance:"@",y2axisorient:"&",y2axisticks:"&",y2axistickvalues:"&",y2axisticksubdivide:"&",y2axisticksize:"&",y2axistickpadding:"&",y2axistickformat:"&",y2axislabel:"@",y2axisscale:"&",y2axisdomain:"&",y2axisrange:"&",y2axisrangeband:"&",y2axisrangebands:"&",y2axisshowmaxmin:"@",y2axishighlightzero:"@",y2axisrotatelabels:"@",y2axisrotateylabel:"@",y2axisstaggerlabels:"@",legendmargin:"&",legendwidth:"@",legendheight:"@",legendkey:"@",legendcolor:"&",legendalign:"@",legendrightalign:"@",legendupdatestate:"@",legendradiobuttonmode:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(t,e,n){t.d3Call=function(i,r){u(t,n,e,r,i)}}],link:function(t,e,n){t.$watch("data",function(e){if(e){if(t.chart)return t.d3Call(e,t.chart);nv.addGraph({generate:function(){if(l(t,n),n.margin2){var i=t.$eval(n.margin2);"object"!=typeof i&&(i={left:i,top:i,bottom:i,right:i}),t.margin2=i}else t.margin2={top:0,right:30,bottom:20,left:60};var r=nv.models.lineWithFocusChart().width(t.width).height(t.height).height2(void 0===n.height2?100:+n.height2).margin(t.margin).margin2(t.margin2).x(void 0===n.x?function(t){return t[0]}:t.x()).y(void 0===n.y?function(t){return t[1]}:t.y()).forceX(void 0===n.forcex?[]:t.$eval(n.forcex)).forceY(void 0===n.forcey?[]:t.$eval(n.forcey)).showLegend(void 0===n.showlegend?!1:"true"===n.showlegend).tooltips(void 0===n.tooltips?!1:"true"===n.tooltips).noData(void 0===n.nodata?"No Data Available.":t.nodata).color(void 0===n.color?nv.utils.defaultColor():t.color()).isArea(void 0===n.isarea?function(t){return t.area}:function(){return"true"===n.isarea}).size(void 0===n.size?function(t){return void 0===t.size?1:t.size}:t.size()).interactive(void 0===n.interactive?!1:"true"===n.interactive).interpolate(void 0===n.interpolate?"linear":n.interpolate);return n.defined&&r.defined(t.defined()),n.tooltipcontent&&r.tooltipContent(t.tooltipcontent()),t.d3Call(e,r),nv.utils.windowResize(r.update),t.chart=r,r},callback:void 0===n.callback?null:t.callback()})}},void 0===n.objectequality?!1:"true"===n.objectequality)}}}]).directive("nvd3BulletChart",[function(){return{restrict:"EA",scope:{data:"=",width:"@",height:"@",id:"@",margin:"&",tooltips:"@",tooltipcontent:"&",orient:"@",ranges:"&",markers:"&",measures:"&",tickformat:"&",nodata:"@",callback:"&",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(t,e,n){t.d3Call=function(i,r){u(t,n,e,r,i)}}],link:function(t,e,n){t.$watch("data",function(e){if(e){if(t.chart)return t.d3Call(e,t.chart);nv.addGraph({generate:function(){l(t,n);var i=nv.models.bulletChart().width(t.width).height(t.height).margin(t.margin).orient(void 0===n.orient?"left":n.orient).tickFormat(void 0===n.tickformat?null:t.tickformat()).tooltips(void 0===n.tooltips?!1:"true"===n.tooltips).noData(void 0===n.nodata?"No Data Available.":t.nodata);return n.tooltipcontent&&i.tooltipContent(t.tooltipcontent()),t.d3Call(e,i),nv.utils.windowResize(i.update),t.chart=i,i},callback:void 0===n.callback?null:t.callback()})}},void 0===n.objectequality?!1:"true"===n.objectequality)}}}]).directive("nvd3SparklineChart",[function(){return{restrict:"EA",scope:{data:"=",width:"@",height:"@",id:"@",margin:"&",x:"&",y:"&",color:"&",xscale:"&",yscale:"&",showvalue:"@",alignvalue:"@",rightalignvalue:"@",nodata:"@",callback:"&",xtickformat:"&",ytickformat:"&",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(t,e,n){t.d3Call=function(i,r){u(t,n,e,r,i)}}],link:function(t,e,n){t.$watch("data",function(e){if(e){if(t.chart)return t.d3Call(e,t.chart);nv.addGraph({generate:function(){l(t,n);var i=nv.models.sparklinePlus().width(t.width).height(t.height).margin(t.margin).x(void 0===n.x?function(t){return t.x}:t.x()).y(void 0===n.y?function(t){return t.y}:t.y()).xTickFormat(void 0===n.xtickformat?d3.format(",r"):t.xtickformat()).yTickFormat(void 0===n.ytickformat?d3.format(",.2f"):t.ytickformat()).color(void 0===n.color?nv.utils.getColor(["#000"]):t.color()).showValue(void 0===n.showvalue?!0:"true"===n.showvalue).alignValue(void 0===n.alignvalue?!0:"true"===n.alignvalue).rightAlignValue(void 0===n.rightalignvalue?!1:"true"===n.rightalignvalue).noData(void 0===n.nodata?"No Data Available.":t.nodata);return n.xScale&&i.xScale(t.xScale()),n.yScale&&i.yScale(t.yScale()),t.d3Call(e,i),nv.utils.windowResize(i.update),t.chart=i,i},callback:void 0===n.callback?null:t.callback()})}},void 0===n.objectequality?!1:"true"===n.objectequality)}}}]).directive("nvd3SparklineWithBandlinesChart",[function(){return{restrict:"EA",scope:{data:"=",width:"@",height:"@",id:"@",margin:"&",x:"&",y:"&",color:"&",xscale:"&",yscale:"&",showvalue:"@",alignvalue:"@",rightalignvalue:"@",nodata:"@",callback:"&",xtickformat:"&",ytickformat:"&",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(t,e,n){t.d3Call=function(i,r){var a,o,s,l,u;n.id?(d3.select("#"+n.id+" svg")||d3.select("#"+n.id).append("svg"),o=d3.select("#"+n.id+" svg").attr("height",t.height).attr("width",t.width).datum(i),s=d3.select("svg#"+n.id+" g.nvd3.nv-wrap.nv-sparkline"),l=[t.bandlineProperties.min,t.bandlineProperties.twentyFithPercentile,t.bandlineProperties.median,t.bandlineProperties.seventyFithPercentile,t.bandlineProperties.max],u=s.selectAll(".nv-bandline").data([l]),u.enter().append("g").attr("class","nv-bandline"),o.transition().duration(void 0===n.transitionduration?250:+n.transitionduration).call(r)):(a="chartid"+Math.floor(1000000001*Math.random()),angular.element(e).attr("data-chartid",a),o=d3.select("[data-iem-chartid="+a+"] svg").attr("height",t.height).attr("width",t.width).datum(i),s=d3.select("[data-iem-chartid="+a+"] svg g.nvd3.nv-wrap.nv-sparkline"),l=[t.bandlineProperties.min,t.bandlineProperties.twentyFithPercentile,t.bandlineProperties.median,t.bandlineProperties.seventyFithPercentile,t.bandlineProperties.max],u=s.selectAll(".nv-bandline").data([l]),u.enter().append("g").attr("class","nv-bandline"),o.transition().duration(void 0===n.transitionduration?250:+n.transitionduration).call(r))}}],link:function(t,e,r){t.$watch("data",function(e){if(e){if(t.chart)return t.d3Call(e,t.chart);nv.addGraph({generate:function(){t.bandlineProperties={};var o;l(t,r);var s=nv.models.sparklinePlus().width(t.width).height(t.height).margin(t.margin).x(void 0===r.x?function(t){return t.x}:t.x()).y(void 0===r.y?function(t){return t.y}:t.y()).xTickFormat(void 0===r.xtickformat?d3.format(",r"):t.xtickformat()).yTickFormat(void 0===r.ytickformat?d3.format(",.2f"):t.ytickformat()).color(void 0===r.color?nv.utils.getColor(["#000"]):t.color()).showValue(void 0===r.showvalue?!0:"true"===r.showvalue).alignValue(void 0===r.alignvalue?!0:"true"===r.alignvalue).rightAlignValue(void 0===r.rightalignvalue?!1:"true"===r.rightalignvalue).noData(void 0===r.nodata?"No Data Available.":t.nodata);return t.bandlineProperties.min=d3.min(e,function(t){return t[1]}),t.bandlineProperties.max=d3.max(e,function(t){return t[1]}),o=e.map(function(t){return t[1]}).sort(function(t,e){return t[0]<e[0]?-1:t[0]===e[0]?0:1}),t.bandlineProperties.twentyFithPercentile=d3.quantile(o,.25),t.bandlineProperties.median=d3.median(o),t.bandlineProperties.seventyFithPercentile=d3.quantile(o,.75),r.xScale&&s.xScale(t.xScale()),r.yScale&&s.yScale(t.yScale()),i(s,t,r),a(s,t,r),n(s,t),t.d3Call(e,s),nv.utils.windowResize(s.update),t.chart=s,s},callback:void 0===r.callback?null:t.callback()})}},void 0===r.objectequality?!1:"true"===r.objectequality)}}}])}(),/*
 * angular-ui-bootstrap
 * http://angular-ui.github.io/bootstrap/

 * Version: 0.11.2 - 2014-09-26
 * License: MIT
 */
angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/day.html","template/datepicker/month.html","template/datepicker/popup.html","template/datepicker/year.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.transition",[]).factory("$transition",["$q","$timeout","$rootScope",function(t,e,n){function i(t){for(var e in t)if(void 0!==a.style[e])return t[e]}var r=function(i,a,o){o=o||{};var s=t.defer(),l=r[o.animation?"animationEndEventName":"transitionEndEventName"],u=function(){n.$apply(function(){i.unbind(l,u),s.resolve(i)})};return l&&i.bind(l,u),e(function(){angular.isString(a)?i.addClass(a):angular.isFunction(a)?a(i):angular.isObject(a)&&i.css(a),l||s.resolve(i)}),s.promise.cancel=function(){l&&i.unbind(l,u),s.reject("Transition cancelled")},s.promise},a=document.createElement("trans"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},s={WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"};return r.transitionEndEventName=i(o),r.animationEndEventName=i(s),r}]),angular.module("ui.bootstrap.collapse",["ui.bootstrap.transition"]).directive("collapse",["$transition",function(t){return{link:function(e,n,i){function r(e){function i(){u===r&&(u=void 0)}var r=t(n,e);return u&&u.cancel(),u=r,r.then(i,i),r}function a(){c?(c=!1,o()):(n.removeClass("collapse").addClass("collapsing"),r({height:n[0].scrollHeight+"px"}).then(o))}function o(){n.removeClass("collapsing"),n.addClass("collapse in"),n.css({height:"auto"})}function s(){if(c)c=!1,l(),n.css({height:0});else{n.css({height:n[0].scrollHeight+"px"});{n[0].offsetWidth}n.removeClass("collapse in").addClass("collapsing"),r({height:0}).then(l)}}function l(){n.removeClass("collapsing"),n.addClass("collapse")}var u,c=!0;e.$watch(i.collapse,function(t){t?s():a()})}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(t,e,n){this.groups=[],this.closeOthers=function(i){var r=angular.isDefined(e.closeOthers)?t.$eval(e.closeOthers):n.closeOthers;r&&angular.forEach(this.groups,function(t){t!==i&&(t.isOpen=!1)})},this.addGroup=function(t){var e=this;this.groups.push(t),t.$on("$destroy",function(){e.removeGroup(t)})},this.removeGroup=function(t){var e=this.groups.indexOf(t);-1!==e&&this.groups.splice(e,1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",transclude:!0,replace:!1,templateUrl:"template/accordion/accordion.html"}}).directive("accordionGroup",function(){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/accordion/accordion-group.html",scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(t){this.heading=t}},link:function(t,e,n,i){i.addGroup(t),t.$watch("isOpen",function(e){e&&i.closeOthers(t)}),t.toggleOpen=function(){t.isDisabled||(t.isOpen=!t.isOpen)}}}}).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(t,e,n,i,r){i.setHeading(r(t,function(){}))}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(t,e,n,i){t.$watch(function(){return i[n.accordionTransclude]},function(t){t&&(e.html(""),e.append(t))})}}}),angular.module("ui.bootstrap.alert",[]).controller("AlertController",["$scope","$attrs",function(t,e){t.closeable="close"in e}]).directive("alert",function(){return{restrict:"EA",controller:"AlertController",templateUrl:"template/alert/alert.html",transclude:!0,replace:!0,scope:{type:"@",close:"&"}}}),angular.module("ui.bootstrap.bindHtml",[]).directive("bindHtmlUnsafe",function(){return function(t,e,n){e.addClass("ng-binding").data("$binding",n.bindHtmlUnsafe),t.$watch(n.bindHtmlUnsafe,function(t){e.html(t||"")})}}),angular.module("ui.bootstrap.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).controller("ButtonsController",["buttonConfig",function(t){this.activeClass=t.activeClass||"active",this.toggleEvent=t.toggleEvent||"click"}]).directive("btnRadio",function(){return{require:["btnRadio","ngModel"],controller:"ButtonsController",link:function(t,e,n,i){var r=i[0],a=i[1];a.$render=function(){e.toggleClass(r.activeClass,angular.equals(a.$modelValue,t.$eval(n.btnRadio)))},e.bind(r.toggleEvent,function(){var i=e.hasClass(r.activeClass);(!i||angular.isDefined(n.uncheckable))&&t.$apply(function(){a.$setViewValue(i?null:t.$eval(n.btnRadio)),a.$render()})})}}}).directive("btnCheckbox",function(){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",link:function(t,e,n,i){function r(){return o(n.btnCheckboxTrue,!0)}function a(){return o(n.btnCheckboxFalse,!1)}function o(e,n){var i=t.$eval(e);return angular.isDefined(i)?i:n}var s=i[0],l=i[1];l.$render=function(){e.toggleClass(s.activeClass,angular.equals(l.$modelValue,r()))},e.bind(s.toggleEvent,function(){t.$apply(function(){l.$setViewValue(e.hasClass(s.activeClass)?a():r()),l.$render()})})}}}),angular.module("ui.bootstrap.carousel",["ui.bootstrap.transition"]).controller("CarouselController",["$scope","$timeout","$transition",function(t,e,n){function i(){r();var n=+t.interval;!isNaN(n)&&n>=0&&(o=e(a,n))}function r(){o&&(e.cancel(o),o=null)}function a(){s?(t.next(),i()):t.pause()}var o,s,l=this,u=l.slides=t.slides=[],c=-1;l.currentSlide=null;var d=!1;l.select=t.select=function(r,a){function o(){if(!d){if(l.currentSlide&&angular.isString(a)&&!t.noTransition&&r.$element){r.$element.addClass(a);{r.$element[0].offsetWidth}angular.forEach(u,function(t){angular.extend(t,{direction:"",entering:!1,leaving:!1,active:!1})}),angular.extend(r,{direction:a,active:!0,entering:!0}),angular.extend(l.currentSlide||{},{direction:a,leaving:!0}),t.$currentTransition=n(r.$element,{}),function(e,n){t.$currentTransition.then(function(){s(e,n)},function(){s(e,n)})}(r,l.currentSlide)}else s(r,l.currentSlide);l.currentSlide=r,c=h,i()}}function s(e,n){angular.extend(e,{direction:"",active:!0,leaving:!1,entering:!1}),angular.extend(n||{},{direction:"",active:!1,leaving:!1,entering:!1}),t.$currentTransition=null}var h=u.indexOf(r);void 0===a&&(a=h>c?"next":"prev"),r&&r!==l.currentSlide&&(t.$currentTransition?(t.$currentTransition.cancel(),e(o)):o())},t.$on("$destroy",function(){d=!0}),l.indexOfSlide=function(t){return u.indexOf(t)},t.next=function(){var e=(c+1)%u.length;return t.$currentTransition?void 0:l.select(u[e],"next")},t.prev=function(){var e=0>c-1?u.length-1:c-1;return t.$currentTransition?void 0:l.select(u[e],"prev")},t.isActive=function(t){return l.currentSlide===t},t.$watch("interval",i),t.$on("$destroy",r),t.play=function(){s||(s=!0,i())},t.pause=function(){t.noPause||(s=!1,r())},l.addSlide=function(e,n){e.$element=n,u.push(e),1===u.length||e.active?(l.select(u[u.length-1]),1==u.length&&t.play()):e.active=!1},l.removeSlide=function(t){var e=u.indexOf(t);u.splice(e,1),u.length>0&&t.active?l.select(e>=u.length?u[e-1]:u[e]):c>e&&c--}}]).directive("carousel",[function(){return{restrict:"EA",transclude:!0,replace:!0,controller:"CarouselController",require:"carousel",templateUrl:"template/carousel/carousel.html",scope:{interval:"=",noTransition:"=",noPause:"="}}}]).directive("slide",function(){return{require:"^carousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/carousel/slide.html",scope:{active:"=?"},link:function(t,e,n,i){i.addSlide(t,e),t.$on("$destroy",function(){i.removeSlide(t)}),t.$watch("active",function(e){e&&i.select(t)})}}}),angular.module("ui.bootstrap.dateparser",[]).service("dateParser",["$locale","orderByFilter",function(t,e){function n(t){var n=[],i=t.split("");return angular.forEach(r,function(e,r){var a=t.indexOf(r);if(a>-1){t=t.split(""),i[a]="("+e.regex+")",t[a]="$";for(var o=a+1,s=a+r.length;s>o;o++)i[o]="",t[o]="$";t=t.join(""),n.push({index:a,apply:e.apply})}}),{regex:new RegExp("^"+i.join("")+"$"),map:e(n,"index")}}function i(t,e,n){return 1===e&&n>28?29===n&&(t%4===0&&t%100!==0||t%400===0):3===e||5===e||8===e||10===e?31>n:!0}this.parsers={};var r={yyyy:{regex:"\\d{4}",apply:function(t){this.year=+t}},yy:{regex:"\\d{2}",apply:function(t){this.year=+t+2e3}},y:{regex:"\\d{1,4}",apply:function(t){this.year=+t}},MMMM:{regex:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.MONTH.indexOf(e)}},MMM:{regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.SHORTMONTH.indexOf(e)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(t){this.month=t-1}},M:{regex:"[1-9]|1[0-2]",apply:function(t){this.month=t-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t}},EEEE:{regex:t.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:t.DATETIME_FORMATS.SHORTDAY.join("|")}};this.parse=function(e,r){if(!angular.isString(e)||!r)return e;r=t.DATETIME_FORMATS[r]||r,this.parsers[r]||(this.parsers[r]=n(r));var a=this.parsers[r],o=a.regex,s=a.map,l=e.match(o);if(l&&l.length){for(var u,c={year:1900,month:0,date:1,hours:0},d=1,h=l.length;h>d;d++){var p=s[d-1];p.apply&&p.apply.call(c,l[d])}return i(c.year,c.month,c.date)&&(u=new Date(c.year,c.month,c.date,c.hours)),u}}}]),angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(t,e){function n(t,n){return t.currentStyle?t.currentStyle[n]:e.getComputedStyle?e.getComputedStyle(t)[n]:t.style[n]}function i(t){return"static"===(n(t,"position")||"static")}var r=function(e){for(var n=t[0],r=e.offsetParent||n;r&&r!==n&&i(r);)r=r.offsetParent;return r||n};return{position:function(e){var n=this.offset(e),i={top:0,left:0},a=r(e[0]);a!=t[0]&&(i=this.offset(angular.element(a)),i.top+=a.clientTop-a.scrollTop,i.left+=a.clientLeft-a.scrollLeft);var o=e[0].getBoundingClientRect();return{width:o.width||e.prop("offsetWidth"),height:o.height||e.prop("offsetHeight"),top:n.top-i.top,left:n.left-i.left}},offset:function(n){var i=n[0].getBoundingClientRect();return{width:i.width||n.prop("offsetWidth"),height:i.height||n.prop("offsetHeight"),top:i.top+(e.pageYOffset||t[0].documentElement.scrollTop),left:i.left+(e.pageXOffset||t[0].documentElement.scrollLeft)}},positionElements:function(t,e,n,i){var r,a,o,s,l=n.split("-"),u=l[0],c=l[1]||"center";r=i?this.offset(t):this.position(t),a=e.prop("offsetWidth"),o=e.prop("offsetHeight");var d={center:function(){return r.left+r.width/2-a/2},left:function(){return r.left},right:function(){return r.left+r.width}},h={center:function(){return r.top+r.height/2-o/2},top:function(){return r.top},bottom:function(){return r.top+r.height}};switch(u){case"right":s={top:h[c](),left:d[u]()};break;case"left":s={top:h[c](),left:r.left-a};break;case"bottom":s={top:h[u](),left:d[c]()};break;default:s={top:r.top-o,left:d[c]()}}return s}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).constant("datepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null}).controller("DatepickerController",["$scope","$attrs","$parse","$interpolate","$timeout","$log","dateFilter","datepickerConfig",function(t,e,n,i,r,a,o,s){var l=this,u={$setViewValue:angular.noop};this.modes=["day","month","year"],angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","minMode","maxMode","showWeeks","startingDay","yearRange"],function(n,r){l[n]=angular.isDefined(e[n])?8>r?i(e[n])(t.$parent):t.$parent.$eval(e[n]):s[n]}),angular.forEach(["minDate","maxDate"],function(i){e[i]?t.$parent.$watch(n(e[i]),function(t){l[i]=t?new Date(t):null,l.refreshView()}):l[i]=s[i]?new Date(s[i]):null}),t.datepickerMode=t.datepickerMode||s.datepickerMode,t.uniqueId="datepicker-"+t.$id+"-"+Math.floor(1e4*Math.random()),this.activeDate=angular.isDefined(e.initDate)?t.$parent.$eval(e.initDate):new Date,t.isActive=function(e){return 0===l.compare(e.date,l.activeDate)?(t.activeDateId=e.uid,!0):!1},this.init=function(t){u=t,u.$render=function(){l.render()}},this.render=function(){if(u.$modelValue){var t=new Date(u.$modelValue),e=!isNaN(t);e?this.activeDate=t:a.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.'),u.$setValidity("date",e)}this.refreshView()},this.refreshView=function(){if(this.element){this._refreshView();var t=u.$modelValue?new Date(u.$modelValue):null;u.$setValidity("date-disabled",!t||this.element&&!this.isDisabled(t))}},this.createDateObject=function(t,e){var n=u.$modelValue?new Date(u.$modelValue):null;return{date:t,label:o(t,e),selected:n&&0===this.compare(t,n),disabled:this.isDisabled(t),current:0===this.compare(t,new Date)}},this.isDisabled=function(n){return this.minDate&&this.compare(n,this.minDate)<0||this.maxDate&&this.compare(n,this.maxDate)>0||e.dateDisabled&&t.dateDisabled({date:n,mode:t.datepickerMode})},this.split=function(t,e){for(var n=[];t.length>0;)n.push(t.splice(0,e));return n},t.select=function(e){if(t.datepickerMode===l.minMode){var n=u.$modelValue?new Date(u.$modelValue):new Date(0,0,0,0,0,0,0);n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),u.$setViewValue(n),u.$render()}else l.activeDate=e,t.datepickerMode=l.modes[l.modes.indexOf(t.datepickerMode)-1]},t.move=function(t){var e=l.activeDate.getFullYear()+t*(l.step.years||0),n=l.activeDate.getMonth()+t*(l.step.months||0);l.activeDate.setFullYear(e,n,1),l.refreshView()},t.toggleMode=function(e){e=e||1,t.datepickerMode===l.maxMode&&1===e||t.datepickerMode===l.minMode&&-1===e||(t.datepickerMode=l.modes[l.modes.indexOf(t.datepickerMode)+e])},t.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};var c=function(){r(function(){l.element[0].focus()},0,!1)};t.$on("datepicker.focus",c),t.keydown=function(e){var n=t.keys[e.which];if(n&&!e.shiftKey&&!e.altKey)if(e.preventDefault(),e.stopPropagation(),"enter"===n||"space"===n){if(l.isDisabled(l.activeDate))return;t.select(l.activeDate),c()}else!e.ctrlKey||"up"!==n&&"down"!==n?(l.handleKeyDown(n,e),l.refreshView()):(t.toggleMode("up"===n?1:-1),c())}}]).directive("datepicker",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/datepicker.html",scope:{datepickerMode:"=?",dateDisabled:"&"},require:["datepicker","?^ngModel"],controller:"DatepickerController",link:function(t,e,n,i){var r=i[0],a=i[1];a&&r.init(a)}}}).directive("daypicker",["dateFilter",function(t){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/day.html",require:"^datepicker",link:function(e,n,i,r){function a(t,e){return 1!==e||t%4!==0||t%100===0&&t%400!==0?l[e]:29}function o(t,e){var n=new Array(e),i=new Date(t),r=0;for(i.setHours(12);e>r;)n[r++]=new Date(i),i.setDate(i.getDate()+1);return n}function s(t){var e=new Date(t);e.setDate(e.getDate()+4-(e.getDay()||7));var n=e.getTime();return e.setMonth(0),e.setDate(1),Math.floor(Math.round((n-e)/864e5)/7)+1}e.showWeeks=r.showWeeks,r.step={months:1},r.element=n;var l=[31,28,31,30,31,30,31,31,30,31,30,31];r._refreshView=function(){var n=r.activeDate.getFullYear(),i=r.activeDate.getMonth(),a=new Date(n,i,1),l=r.startingDay-a.getDay(),u=l>0?7-l:-l,c=new Date(a);u>0&&c.setDate(-u+1);for(var d=o(c,42),h=0;42>h;h++)d[h]=angular.extend(r.createDateObject(d[h],r.formatDay),{secondary:d[h].getMonth()!==i,uid:e.uniqueId+"-"+h});e.labels=new Array(7);for(var p=0;7>p;p++)e.labels[p]={abbr:t(d[p].date,r.formatDayHeader),full:t(d[p].date,"EEEE")};if(e.title=t(r.activeDate,r.formatDayTitle),e.rows=r.split(d,7),e.showWeeks){e.weekNumbers=[];for(var f=s(e.rows[0][0].date),g=e.rows.length;e.weekNumbers.push(f++)<g;);}},r.compare=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate())-new Date(e.getFullYear(),e.getMonth(),e.getDate())},r.handleKeyDown=function(t){var e=r.activeDate.getDate();if("left"===t)e-=1;else if("up"===t)e-=7;else if("right"===t)e+=1;else if("down"===t)e+=7;else if("pageup"===t||"pagedown"===t){var n=r.activeDate.getMonth()+("pageup"===t?-1:1);r.activeDate.setMonth(n,1),e=Math.min(a(r.activeDate.getFullYear(),r.activeDate.getMonth()),e)}else"home"===t?e=1:"end"===t&&(e=a(r.activeDate.getFullYear(),r.activeDate.getMonth()));r.activeDate.setDate(e)},r.refreshView()}}}]).directive("monthpicker",["dateFilter",function(t){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/month.html",require:"^datepicker",link:function(e,n,i,r){r.step={years:1},r.element=n,r._refreshView=function(){for(var n=new Array(12),i=r.activeDate.getFullYear(),a=0;12>a;a++)n[a]=angular.extend(r.createDateObject(new Date(i,a,1),r.formatMonth),{uid:e.uniqueId+"-"+a});e.title=t(r.activeDate,r.formatMonthTitle),e.rows=r.split(n,3)},r.compare=function(t,e){return new Date(t.getFullYear(),t.getMonth())-new Date(e.getFullYear(),e.getMonth())},r.handleKeyDown=function(t){var e=r.activeDate.getMonth();if("left"===t)e-=1;else if("up"===t)e-=3;else if("right"===t)e+=1;else if("down"===t)e+=3;else if("pageup"===t||"pagedown"===t){var n=r.activeDate.getFullYear()+("pageup"===t?-1:1);r.activeDate.setFullYear(n)}else"home"===t?e=0:"end"===t&&(e=11);r.activeDate.setMonth(e)},r.refreshView()}}}]).directive("yearpicker",["dateFilter",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/year.html",require:"^datepicker",link:function(t,e,n,i){function r(t){return parseInt((t-1)/a,10)*a+1}var a=i.yearRange;i.step={years:a},i.element=e,i._refreshView=function(){for(var e=new Array(a),n=0,o=r(i.activeDate.getFullYear());a>n;n++)e[n]=angular.extend(i.createDateObject(new Date(o+n,0,1),i.formatYear),{uid:t.uniqueId+"-"+n});t.title=[e[0].label,e[a-1].label].join(" - "),t.rows=i.split(e,5)},i.compare=function(t,e){return t.getFullYear()-e.getFullYear()},i.handleKeyDown=function(t){var e=i.activeDate.getFullYear();"left"===t?e-=1:"up"===t?e-=5:"right"===t?e+=1:"down"===t?e+=5:"pageup"===t||"pagedown"===t?e+=("pageup"===t?-1:1)*i.step.years:"home"===t?e=r(i.activeDate.getFullYear()):"end"===t&&(e=r(i.activeDate.getFullYear())+a-1),i.activeDate.setFullYear(e)},i.refreshView()}}}]).constant("datepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",currentText:"Today",clearText:"Clear",closeText:"Done",closeOnDateSelection:!0,appendToBody:!1,showButtonBar:!0}).directive("datepickerPopup",["$compile","$parse","$document","$position","dateFilter","dateParser","datepickerPopupConfig",function(t,e,n,i,r,a,o){return{restrict:"EA",require:"ngModel",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&"},link:function(s,l,u,c){function d(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function h(t){if(t){if(angular.isDate(t)&&!isNaN(t))return c.$setValidity("date",!0),t;if(angular.isString(t)){var e=a.parse(t,p)||new Date(t);return isNaN(e)?void c.$setValidity("date",!1):(c.$setValidity("date",!0),e)}return void c.$setValidity("date",!1)}return c.$setValidity("date",!0),null}var p,f=angular.isDefined(u.closeOnDateSelection)?s.$parent.$eval(u.closeOnDateSelection):o.closeOnDateSelection,g=angular.isDefined(u.datepickerAppendToBody)?s.$parent.$eval(u.datepickerAppendToBody):o.appendToBody;s.showButtonBar=angular.isDefined(u.showButtonBar)?s.$parent.$eval(u.showButtonBar):o.showButtonBar,s.getText=function(t){return s[t+"Text"]||o[t+"Text"]},u.$observe("datepickerPopup",function(t){p=t||o.datepickerPopup,c.$render()});var m=angular.element("<div datepicker-popup-wrap><div datepicker></div></div>");m.attr({"ng-model":"date","ng-change":"dateSelection()"});var v=angular.element(m.children()[0]);u.datepickerOptions&&angular.forEach(s.$parent.$eval(u.datepickerOptions),function(t,e){v.attr(d(e),t)}),s.watchData={},angular.forEach(["minDate","maxDate","datepickerMode"],function(t){if(u[t]){var n=e(u[t]);if(s.$parent.$watch(n,function(e){s.watchData[t]=e}),v.attr(d(t),"watchData."+t),"datepickerMode"===t){var i=n.assign;s.$watch("watchData."+t,function(t,e){t!==e&&i(s.$parent,t)})}}}),u.dateDisabled&&v.attr("date-disabled","dateDisabled({ date: date, mode: mode })"),c.$parsers.unshift(h),s.dateSelection=function(t){angular.isDefined(t)&&(s.date=t),c.$setViewValue(s.date),c.$render(),f&&(s.isOpen=!1,l[0].focus())},l.bind("input change keyup",function(){s.$apply(function(){s.date=c.$modelValue})}),c.$render=function(){var t=c.$viewValue?r(c.$viewValue,p):"";l.val(t),s.date=h(c.$modelValue)};var y=function(t){s.isOpen&&t.target!==l[0]&&s.$apply(function(){s.isOpen=!1})},b=function(t){s.keydown(t)};l.bind("keydown",b),s.keydown=function(t){27===t.which?(t.preventDefault(),t.stopPropagation(),s.close()):40!==t.which||s.isOpen||(s.isOpen=!0)},s.$watch("isOpen",function(t){t?(s.$broadcast("datepicker.focus"),s.position=g?i.offset(l):i.position(l),s.position.top=s.position.top+l.prop("offsetHeight"),n.bind("click",y)):n.unbind("click",y)}),s.select=function(t){if("today"===t){var e=new Date;angular.isDate(c.$modelValue)?(t=new Date(c.$modelValue),t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate())):t=new Date(e.setHours(0,0,0,0))}s.dateSelection(t)},s.close=function(){s.isOpen=!1,l[0].focus()};var x=t(m)(s);m.remove(),g?n.find("body").append(x):l.after(x),s.$on("$destroy",function(){x.remove(),l.unbind("keydown",b),n.unbind("click",y)})}}}]).directive("datepickerPopupWrap",function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"template/datepicker/popup.html",link:function(t,e){e.bind("click",function(t){t.preventDefault(),t.stopPropagation()})}}}),angular.module("ui.bootstrap.dropdown",[]).constant("dropdownConfig",{openClass:"open"}).service("dropdownService",["$document",function(t){var e=null;this.open=function(r){e||(t.bind("click",n),t.bind("keydown",i)),e&&e!==r&&(e.isOpen=!1),e=r},this.close=function(r){e===r&&(e=null,t.unbind("click",n),t.unbind("keydown",i))};var n=function(t){var n=e.getToggleElement();t&&n&&n[0].contains(t.target)||e.$apply(function(){e.isOpen=!1})},i=function(t){27===t.which&&(e.focusToggleElement(),n())}}]).controller("DropdownController",["$scope","$attrs","$parse","dropdownConfig","dropdownService","$animate",function(t,e,n,i,r,a){var o,s=this,l=t.$new(),u=i.openClass,c=angular.noop,d=e.onToggle?n(e.onToggle):angular.noop;this.init=function(i){s.$element=i,e.isOpen&&(o=n(e.isOpen),c=o.assign,t.$watch(o,function(t){l.isOpen=!!t}))},this.toggle=function(t){return l.isOpen=arguments.length?!!t:!l.isOpen},this.isOpen=function(){return l.isOpen},l.getToggleElement=function(){return s.toggleElement},l.focusToggleElement=function(){s.toggleElement&&s.toggleElement[0].focus()},l.$watch("isOpen",function(e,n){a[e?"addClass":"removeClass"](s.$element,u),e?(l.focusToggleElement(),r.open(l)):r.close(l),c(t,e),angular.isDefined(e)&&e!==n&&d(t,{open:!!e})}),t.$on("$locationChangeSuccess",function(){l.isOpen=!1}),t.$on("$destroy",function(){l.$destroy()})}]).directive("dropdown",function(){return{restrict:"CA",controller:"DropdownController",link:function(t,e,n,i){i.init(e)}}}).directive("dropdownToggle",function(){return{restrict:"CA",require:"?^dropdown",link:function(t,e,n,i){if(i){i.toggleElement=e;var r=function(r){r.preventDefault(),e.hasClass("disabled")||n.disabled||t.$apply(function(){i.toggle()})};e.bind("click",r),e.attr({"aria-haspopup":!0,"aria-expanded":!1}),t.$watch(i.isOpen,function(t){e.attr("aria-expanded",!!t)}),t.$on("$destroy",function(){e.unbind("click",r)})}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.transition"]).factory("$$stackedMap",function(){return{createNew:function(){var t=[];return{add:function(e,n){t.push({key:e,value:n})},get:function(e){for(var n=0;n<t.length;n++)if(e==t[n].key)return t[n]},keys:function(){for(var e=[],n=0;n<t.length;n++)e.push(t[n].key);return e},top:function(){return t[t.length-1]},remove:function(e){for(var n=-1,i=0;i<t.length;i++)if(e==t[i].key){n=i;break}return t.splice(n,1)[0]},removeTop:function(){return t.splice(t.length-1,1)[0]},length:function(){return t.length}}}}}).directive("modalBackdrop",["$timeout",function(t){return{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",link:function(e,n,i){e.backdropClass=i.backdropClass||"",e.animate=!1,t(function(){e.animate=!0})}}}]).directive("modalWindow",["$modalStack","$timeout",function(t,e){return{restrict:"EA",scope:{index:"@",animate:"="},replace:!0,transclude:!0,templateUrl:function(t,e){return e.templateUrl||"template/modal/window.html"},link:function(n,i,r){i.addClass(r.windowClass||""),n.size=r.size,e(function(){n.animate=!0,i[0].querySelectorAll("[autofocus]").length||i[0].focus()}),n.close=function(e){var n=t.getTop();n&&n.value.backdrop&&"static"!=n.value.backdrop&&e.target===e.currentTarget&&(e.preventDefault(),e.stopPropagation(),t.dismiss(n.key,"backdrop click"))}}}}]).directive("modalTransclude",function(){return{link:function(t,e,n,i,r){r(t.$parent,function(t){e.empty(),e.append(t)})}}}).factory("$modalStack",["$transition","$timeout","$document","$compile","$rootScope","$$stackedMap",function(t,e,n,i,r,a){function o(){for(var t=-1,e=p.keys(),n=0;n<e.length;n++)p.get(e[n]).value.backdrop&&(t=n);return t}function s(t){var e=n.find("body").eq(0),i=p.get(t).value;p.remove(t),u(i.modalDomEl,i.modalScope,300,function(){i.modalScope.$destroy(),e.toggleClass(h,p.length()>0),l()})}function l(){if(c&&-1==o()){var t=d;u(c,d,150,function(){t.$destroy(),t=null}),c=void 0,d=void 0}}function u(n,i,r,a){function o(){o.done||(o.done=!0,n.remove(),a&&a())}i.animate=!1;var s=t.transitionEndEventName;if(s){var l=e(o,r);n.bind(s,function(){e.cancel(l),o(),i.$apply()})}else e(o)}var c,d,h="modal-open",p=a.createNew(),f={};return r.$watch(o,function(t){d&&(d.index=t)}),n.bind("keydown",function(t){var e;27===t.which&&(e=p.top(),e&&e.value.keyboard&&(t.preventDefault(),r.$apply(function(){f.dismiss(e.key,"escape key press")})))}),f.open=function(t,e){p.add(t,{deferred:e.deferred,modalScope:e.scope,backdrop:e.backdrop,keyboard:e.keyboard});var a=n.find("body").eq(0),s=o();if(s>=0&&!c){d=r.$new(!0),d.index=s;var l=angular.element("<div modal-backdrop></div>");l.attr("backdrop-class",e.backdropClass),c=i(l)(d),a.append(c)}var u=angular.element("<div modal-window></div>");u.attr({"template-url":e.windowTemplateUrl,"window-class":e.windowClass,size:e.size,index:p.length()-1,animate:"animate"}).html(e.content);var f=i(u)(e.scope);p.top().value.modalDomEl=f,a.append(f),a.addClass(h)},f.close=function(t,e){var n=p.get(t);n&&(n.value.deferred.resolve(e),s(t))},f.dismiss=function(t,e){var n=p.get(t);n&&(n.value.deferred.reject(e),s(t))},f.dismissAll=function(t){for(var e=this.getTop();e;)this.dismiss(e.key,t),e=this.getTop()},f.getTop=function(){return p.top()},f}]).provider("$modal",function(){var t={options:{backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$http","$templateCache","$controller","$modalStack",function(e,n,i,r,a,o,s){function l(t){return t.template?i.when(t.template):r.get(angular.isFunction(t.templateUrl)?t.templateUrl():t.templateUrl,{cache:a}).then(function(t){return t.data})}function u(t){var n=[];return angular.forEach(t,function(t){(angular.isFunction(t)||angular.isArray(t))&&n.push(i.when(e.invoke(t)))}),n}var c={};return c.open=function(e){var r=i.defer(),a=i.defer(),c={result:r.promise,opened:a.promise,close:function(t){s.close(c,t)},dismiss:function(t){s.dismiss(c,t)}};if(e=angular.extend({},t.options,e),e.resolve=e.resolve||{},!e.template&&!e.templateUrl)throw new Error("One of template or templateUrl options is required.");var d=i.all([l(e)].concat(u(e.resolve)));return d.then(function(t){var i=(e.scope||n).$new();i.$close=c.close,i.$dismiss=c.dismiss;var a,l={},u=1;e.controller&&(l.$scope=i,l.$modalInstance=c,angular.forEach(e.resolve,function(e,n){l[n]=t[u++]}),a=o(e.controller,l),e.controllerAs&&(i[e.controllerAs]=a)),s.open(c,{scope:i,deferred:r,content:t[0],backdrop:e.backdrop,keyboard:e.keyboard,backdropClass:e.backdropClass,windowClass:e.windowClass,windowTemplateUrl:e.windowTemplateUrl,size:e.size})},function(t){r.reject(t)}),d.then(function(){a.resolve(!0)},function(){a.reject(!1)}),c},c}]};return t}),angular.module("ui.bootstrap.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse",function(t,e,n){var i=this,r={$setViewValue:angular.noop},a=e.numPages?n(e.numPages).assign:angular.noop;this.init=function(a,o){r=a,this.config=o,r.$render=function(){i.render()},e.itemsPerPage?t.$parent.$watch(n(e.itemsPerPage),function(e){i.itemsPerPage=parseInt(e,10),t.totalPages=i.calculateTotalPages()}):this.itemsPerPage=o.itemsPerPage},this.calculateTotalPages=function(){var e=this.itemsPerPage<1?1:Math.ceil(t.totalItems/this.itemsPerPage);return Math.max(e||0,1)},this.render=function(){t.page=parseInt(r.$viewValue,10)||1},t.selectPage=function(e){t.page!==e&&e>0&&e<=t.totalPages&&(r.$setViewValue(e),r.$render())},t.getText=function(e){return t[e+"Text"]||i.config[e+"Text"]},t.noPrevious=function(){return 1===t.page},t.noNext=function(){return t.page===t.totalPages},t.$watch("totalItems",function(){t.totalPages=i.calculateTotalPages()}),t.$watch("totalPages",function(e){a(t.$parent,e),t.page>e?t.selectPage(e):r.$render()})}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("pagination",["$parse","paginationConfig",function(t,e){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@"},require:["pagination","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pagination.html",replace:!0,link:function(n,i,r,a){function o(t,e,n){return{number:t,text:e,active:n}}function s(t,e){var n=[],i=1,r=e,a=angular.isDefined(c)&&e>c;a&&(d?(i=Math.max(t-Math.floor(c/2),1),r=i+c-1,r>e&&(r=e,i=r-c+1)):(i=(Math.ceil(t/c)-1)*c+1,r=Math.min(i+c-1,e)));for(var s=i;r>=s;s++){var l=o(s,s,s===t);n.push(l)}if(a&&!d){if(i>1){var u=o(i-1,"...",!1);n.unshift(u)}if(e>r){var h=o(r+1,"...",!1);n.push(h)}}return n}var l=a[0],u=a[1];if(u){var c=angular.isDefined(r.maxSize)?n.$parent.$eval(r.maxSize):e.maxSize,d=angular.isDefined(r.rotate)?n.$parent.$eval(r.rotate):e.rotate;n.boundaryLinks=angular.isDefined(r.boundaryLinks)?n.$parent.$eval(r.boundaryLinks):e.boundaryLinks,n.directionLinks=angular.isDefined(r.directionLinks)?n.$parent.$eval(r.directionLinks):e.directionLinks,l.init(u,e),r.maxSize&&n.$parent.$watch(t(r.maxSize),function(t){c=parseInt(t,10),l.render()
});var h=l.render;l.render=function(){h(),n.page>0&&n.page<=n.totalPages&&(n.pages=s(n.page,n.totalPages))}}}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("pager",["pagerConfig",function(t){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@"},require:["pager","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pager.html",replace:!0,link:function(e,n,i,r){var a=r[0],o=r[1];o&&(e.align=angular.isDefined(i.align)?e.$parent.$eval(i.align):t.align,a.init(o,t))}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){function t(t){var e=/[A-Z]/g,n="-";return t.replace(e,function(t,e){return(e?n:"")+t.toLowerCase()})}var e={placement:"top",animation:!0,popupDelay:0},n={mouseenter:"mouseleave",click:"click",focus:"blur"},i={};this.options=function(t){angular.extend(i,t)},this.setTriggers=function(t){angular.extend(n,t)},this.$get=["$window","$compile","$timeout","$parse","$document","$position","$interpolate",function(r,a,o,s,l,u,c){return function(r,d,h){function p(t){var e=t||f.trigger||h,i=n[e]||e;return{show:e,hide:i}}var f=angular.extend({},e,i),g=t(r),m=c.startSymbol(),v=c.endSymbol(),y="<div "+g+'-popup title="'+m+"tt_title"+v+'" content="'+m+"tt_content"+v+'" placement="'+m+"tt_placement"+v+'" animation="tt_animation" is-open="tt_isOpen"></div>';return{restrict:"EA",scope:!0,compile:function(){var t=a(y);return function(e,n,i){function a(){e.tt_isOpen?h():c()}function c(){(!_||e.$eval(i[d+"Enable"]))&&(e.tt_popupDelay?w||(w=o(g,e.tt_popupDelay,!1),w.then(function(t){t()})):g()())}function h(){e.$apply(function(){m()})}function g(){return w=null,x&&(o.cancel(x),x=null),e.tt_content?(v(),b.css({top:0,left:0,display:"block"}),k?l.find("body").append(b):n.after(b),C(),e.tt_isOpen=!0,e.$digest(),C):angular.noop}function m(){e.tt_isOpen=!1,o.cancel(w),w=null,e.tt_animation?x||(x=o(y,500)):y()}function v(){b&&y(),b=t(e,function(){}),e.$digest()}function y(){x=null,b&&(b.remove(),b=null)}var b,x,w,k=angular.isDefined(f.appendToBody)?f.appendToBody:!1,$=p(void 0),_=angular.isDefined(i[d+"Enable"]),C=function(){var t=u.positionElements(n,b,e.tt_placement,k);t.top+="px",t.left+="px",b.css(t)};e.tt_isOpen=!1,i.$observe(r,function(t){e.tt_content=t,!t&&e.tt_isOpen&&m()}),i.$observe(d+"Title",function(t){e.tt_title=t}),i.$observe(d+"Placement",function(t){e.tt_placement=angular.isDefined(t)?t:f.placement}),i.$observe(d+"PopupDelay",function(t){var n=parseInt(t,10);e.tt_popupDelay=isNaN(n)?f.popupDelay:n});var M=function(){n.unbind($.show,c),n.unbind($.hide,h)};i.$observe(d+"Trigger",function(t){M(),$=p(t),$.show===$.hide?n.bind($.show,a):(n.bind($.show,c),n.bind($.hide,h))});var D=e.$eval(i[d+"Animation"]);e.tt_animation=angular.isDefined(D)?!!D:f.animation,i.$observe(d+"AppendToBody",function(t){k=angular.isDefined(t)?s(t)(e):k}),k&&e.$on("$locationChangeSuccess",function(){e.tt_isOpen&&m()}),e.$on("$destroy",function(){o.cancel(x),o.cancel(w),M(),y()})}}}}}]}).directive("tooltipPopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(t){return t("tooltip","tooltip","mouseenter")}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}).directive("tooltipHtmlUnsafe",["$tooltip",function(t){return t("tooltipHtmlUnsafe","tooltip","mouseenter")}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("popoverPopup",function(){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}}).directive("popover",["$tooltip",function(t){return t("popover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("progressConfig",{animate:!0,max:100}).controller("ProgressController",["$scope","$attrs","progressConfig",function(t,e,n){var i=this,r=angular.isDefined(e.animate)?t.$parent.$eval(e.animate):n.animate;this.bars=[],t.max=angular.isDefined(e.max)?t.$parent.$eval(e.max):n.max,this.addBar=function(e,n){r||n.css({transition:"none"}),this.bars.push(e),e.$watch("value",function(n){e.percent=+(100*n/t.max).toFixed(2)}),e.$on("$destroy",function(){n=null,i.removeBar(e)})},this.removeBar=function(t){this.bars.splice(this.bars.indexOf(t),1)}}]).directive("progress",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{},templateUrl:"template/progressbar/progress.html"}}).directive("bar",function(){return{restrict:"EA",replace:!0,transclude:!0,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(t,e,n,i){i.addBar(t,e)}}}).directive("progressbar",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(t,e,n,i){i.addBar(t,angular.element(e.children()[0]))}}}),angular.module("ui.bootstrap.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null}).controller("RatingController",["$scope","$attrs","ratingConfig",function(t,e,n){var i={$setViewValue:angular.noop};this.init=function(r){i=r,i.$render=this.render,this.stateOn=angular.isDefined(e.stateOn)?t.$parent.$eval(e.stateOn):n.stateOn,this.stateOff=angular.isDefined(e.stateOff)?t.$parent.$eval(e.stateOff):n.stateOff;var a=angular.isDefined(e.ratingStates)?t.$parent.$eval(e.ratingStates):new Array(angular.isDefined(e.max)?t.$parent.$eval(e.max):n.max);t.range=this.buildTemplateObjects(a)},this.buildTemplateObjects=function(t){for(var e=0,n=t.length;n>e;e++)t[e]=angular.extend({index:e},{stateOn:this.stateOn,stateOff:this.stateOff},t[e]);return t},t.rate=function(e){!t.readonly&&e>=0&&e<=t.range.length&&(i.$setViewValue(e),i.$render())},t.enter=function(e){t.readonly||(t.value=e),t.onHover({value:e})},t.reset=function(){t.value=i.$viewValue,t.onLeave()},t.onKeydown=function(e){/(37|38|39|40)/.test(e.which)&&(e.preventDefault(),e.stopPropagation(),t.rate(t.value+(38===e.which||39===e.which?1:-1)))},this.render=function(){t.value=i.$viewValue}}]).directive("rating",function(){return{restrict:"EA",require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(t,e,n,i){var r=i[0],a=i[1];a&&r.init(a)}}}),angular.module("ui.bootstrap.tabs",[]).controller("TabsetController",["$scope",function(t){var e=this,n=e.tabs=t.tabs=[];e.select=function(t){angular.forEach(n,function(e){e.active&&e!==t&&(e.active=!1,e.onDeselect())}),t.active=!0,t.onSelect()},e.addTab=function(t){n.push(t),1===n.length?t.active=!0:t.active&&e.select(t)},e.removeTab=function(t){var i=n.indexOf(t);if(t.active&&n.length>1){var r=i==n.length-1?i-1:i+1;e.select(n[r])}n.splice(i,1)}}]).directive("tabset",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(t,e,n){t.vertical=angular.isDefined(n.vertical)?t.$parent.$eval(n.vertical):!1,t.justified=angular.isDefined(n.justified)?t.$parent.$eval(n.justified):!1}}}).directive("tab",["$parse",function(t){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},compile:function(e,n,i){return function(e,n,r,a){e.$watch("active",function(t){t&&a.select(e)}),e.disabled=!1,r.disabled&&e.$parent.$watch(t(r.disabled),function(t){e.disabled=!!t}),e.select=function(){e.disabled||(e.active=!0)},a.addTab(e),e.$on("$destroy",function(){a.removeTab(e)}),e.$transcludeFn=i}}}}]).directive("tabHeadingTransclude",[function(){return{restrict:"A",require:"^tab",link:function(t,e){t.$watch("headingElement",function(t){t&&(e.html(""),e.append(t))})}}}]).directive("tabContentTransclude",function(){function t(t){return t.tagName&&(t.hasAttribute("tab-heading")||t.hasAttribute("data-tab-heading")||"tab-heading"===t.tagName.toLowerCase()||"data-tab-heading"===t.tagName.toLowerCase())}return{restrict:"A",require:"^tabset",link:function(e,n,i){var r=e.$eval(i.tabContentTransclude);r.$transcludeFn(r.$parent,function(e){angular.forEach(e,function(e){t(e)?r.headingElement=e:n.append(e)})})}}}),angular.module("ui.bootstrap.timepicker",[]).constant("timepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0}).controller("TimepickerController",["$scope","$attrs","$parse","$log","$locale","timepickerConfig",function(t,e,n,i,r,a){function o(){var e=parseInt(t.hours,10),n=t.showMeridian?e>0&&13>e:e>=0&&24>e;return n?(t.showMeridian&&(12===e&&(e=0),t.meridian===g[1]&&(e+=12)),e):void 0}function s(){var e=parseInt(t.minutes,10);return e>=0&&60>e?e:void 0}function l(t){return angular.isDefined(t)&&t.toString().length<2?"0"+t:t}function u(t){c(),f.$setViewValue(new Date(p)),d(t)}function c(){f.$setValidity("time",!0),t.invalidHours=!1,t.invalidMinutes=!1}function d(e){var n=p.getHours(),i=p.getMinutes();t.showMeridian&&(n=0===n||12===n?12:n%12),t.hours="h"===e?n:l(n),t.minutes="m"===e?i:l(i),t.meridian=p.getHours()<12?g[0]:g[1]}function h(t){var e=new Date(p.getTime()+6e4*t);p.setHours(e.getHours(),e.getMinutes()),u()}var p=new Date,f={$setViewValue:angular.noop},g=angular.isDefined(e.meridians)?t.$parent.$eval(e.meridians):a.meridians||r.DATETIME_FORMATS.AMPMS;this.init=function(n,i){f=n,f.$render=this.render;var r=i.eq(0),o=i.eq(1),s=angular.isDefined(e.mousewheel)?t.$parent.$eval(e.mousewheel):a.mousewheel;s&&this.setupMousewheelEvents(r,o),t.readonlyInput=angular.isDefined(e.readonlyInput)?t.$parent.$eval(e.readonlyInput):a.readonlyInput,this.setupInputEvents(r,o)};var m=a.hourStep;e.hourStep&&t.$parent.$watch(n(e.hourStep),function(t){m=parseInt(t,10)});var v=a.minuteStep;e.minuteStep&&t.$parent.$watch(n(e.minuteStep),function(t){v=parseInt(t,10)}),t.showMeridian=a.showMeridian,e.showMeridian&&t.$parent.$watch(n(e.showMeridian),function(e){if(t.showMeridian=!!e,f.$error.time){var n=o(),i=s();angular.isDefined(n)&&angular.isDefined(i)&&(p.setHours(n),u())}else d()}),this.setupMousewheelEvents=function(e,n){var i=function(t){t.originalEvent&&(t=t.originalEvent);var e=t.wheelDelta?t.wheelDelta:-t.deltaY;return t.detail||e>0};e.bind("mousewheel wheel",function(e){t.$apply(i(e)?t.incrementHours():t.decrementHours()),e.preventDefault()}),n.bind("mousewheel wheel",function(e){t.$apply(i(e)?t.incrementMinutes():t.decrementMinutes()),e.preventDefault()})},this.setupInputEvents=function(e,n){if(t.readonlyInput)return t.updateHours=angular.noop,void(t.updateMinutes=angular.noop);var i=function(e,n){f.$setViewValue(null),f.$setValidity("time",!1),angular.isDefined(e)&&(t.invalidHours=e),angular.isDefined(n)&&(t.invalidMinutes=n)};t.updateHours=function(){var t=o();angular.isDefined(t)?(p.setHours(t),u("h")):i(!0)},e.bind("blur",function(){!t.invalidHours&&t.hours<10&&t.$apply(function(){t.hours=l(t.hours)})}),t.updateMinutes=function(){var t=s();angular.isDefined(t)?(p.setMinutes(t),u("m")):i(void 0,!0)},n.bind("blur",function(){!t.invalidMinutes&&t.minutes<10&&t.$apply(function(){t.minutes=l(t.minutes)})})},this.render=function(){var t=f.$modelValue?new Date(f.$modelValue):null;isNaN(t)?(f.$setValidity("time",!1),i.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(t&&(p=t),c(),d())},t.incrementHours=function(){h(60*m)},t.decrementHours=function(){h(60*-m)},t.incrementMinutes=function(){h(v)},t.decrementMinutes=function(){h(-v)},t.toggleMeridian=function(){h(720*(p.getHours()<12?1:-1))}}]).directive("timepicker",function(){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",replace:!0,scope:{},templateUrl:"template/timepicker/timepicker.html",link:function(t,e,n,i){var r=i[0],a=i[1];a&&r.init(a,e.find("input"))}}}),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).factory("typeaheadParser",["$parse",function(t){var e=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(n){var i=n.match(e);if(!i)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+n+'".');return{itemName:i[3],source:t(i[4]),viewMapper:t(i[2]||i[1]),modelMapper:t(i[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$position","typeaheadParser",function(t,e,n,i,r,a,o){var s=[9,13,27,38,40];return{require:"ngModel",link:function(l,u,c,d){var h,p=l.$eval(c.typeaheadMinLength)||1,f=l.$eval(c.typeaheadWaitMs)||0,g=l.$eval(c.typeaheadEditable)!==!1,m=e(c.typeaheadLoading).assign||angular.noop,v=e(c.typeaheadOnSelect),y=c.typeaheadInputFormatter?e(c.typeaheadInputFormatter):void 0,b=c.typeaheadAppendToBody?l.$eval(c.typeaheadAppendToBody):!1,x=e(c.ngModel).assign,w=o.parse(c.typeahead),k=l.$new();l.$on("$destroy",function(){k.$destroy()});var $="typeahead-"+k.$id+"-"+Math.floor(1e4*Math.random());u.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":$});var _=angular.element("<div typeahead-popup></div>");_.attr({id:$,matches:"matches",active:"activeIdx",select:"select(activeIdx)",query:"query",position:"position"}),angular.isDefined(c.typeaheadTemplateUrl)&&_.attr("template-url",c.typeaheadTemplateUrl);var C=function(){k.matches=[],k.activeIdx=-1,u.attr("aria-expanded",!1)},M=function(t){return $+"-option-"+t};k.$watch("activeIdx",function(t){0>t?u.removeAttr("aria-activedescendant"):u.attr("aria-activedescendant",M(t))});var D=function(t){var e={$viewValue:t};m(l,!0),n.when(w.source(l,e)).then(function(n){var i=t===d.$viewValue;if(i&&h)if(n.length>0){k.activeIdx=0,k.matches.length=0;for(var r=0;r<n.length;r++)e[w.itemName]=n[r],k.matches.push({id:M(r),label:w.viewMapper(k,e),model:n[r]});k.query=t,k.position=b?a.offset(u):a.position(u),k.position.top=k.position.top+u.prop("offsetHeight"),u.attr("aria-expanded",!0)}else C();i&&m(l,!1)},function(){C(),m(l,!1)})};C(),k.query=void 0;var S,A=function(t){S=i(function(){D(t)},f)},T=function(){S&&i.cancel(S)};d.$parsers.unshift(function(t){return h=!0,t&&t.length>=p?f>0?(T(),A(t)):D(t):(m(l,!1),T(),C()),g?t:t?void d.$setValidity("editable",!1):(d.$setValidity("editable",!0),t)}),d.$formatters.push(function(t){var e,n,i={};return y?(i.$model=t,y(l,i)):(i[w.itemName]=t,e=w.viewMapper(l,i),i[w.itemName]=void 0,n=w.viewMapper(l,i),e!==n?e:t)}),k.select=function(t){var e,n,r={};r[w.itemName]=n=k.matches[t].model,e=w.modelMapper(l,r),x(l,e),d.$setValidity("editable",!0),v(l,{$item:n,$model:e,$label:w.viewMapper(l,r)}),C(),i(function(){u[0].focus()},0,!1)},u.bind("keydown",function(t){0!==k.matches.length&&-1!==s.indexOf(t.which)&&(t.preventDefault(),40===t.which?(k.activeIdx=(k.activeIdx+1)%k.matches.length,k.$digest()):38===t.which?(k.activeIdx=(k.activeIdx?k.activeIdx:k.matches.length)-1,k.$digest()):13===t.which||9===t.which?k.$apply(function(){k.select(k.activeIdx)}):27===t.which&&(t.stopPropagation(),C(),k.$digest()))}),u.bind("blur",function(){h=!1});var E=function(t){u[0]!==t.target&&(C(),k.$digest())};r.bind("click",E),l.$on("$destroy",function(){r.unbind("click",E)});var I=t(_)(k);b?r.find("body").append(I):u.after(I)}}}]).directive("typeaheadPopup",function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"=",select:"&"},replace:!0,templateUrl:"template/typeahead/typeahead-popup.html",link:function(t,e,n){t.templateUrl=n.templateUrl,t.isOpen=function(){return t.matches.length>0},t.isActive=function(e){return t.active==e},t.selectActive=function(e){t.active=e},t.selectMatch=function(e){t.select({activeIdx:e})}}}}).directive("typeaheadMatch",["$http","$templateCache","$compile","$parse",function(t,e,n,i){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(r,a,o){var s=i(o.templateUrl)(r.$parent)||"template/typeahead/typeahead-match.html";t.get(s,{cache:e}).success(function(t){a.replaceWith(n(t.trim())(r))})}}}]).filter("typeaheadHighlight",function(){function t(t){return t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(e,n){return n?(""+e).replace(new RegExp(t(n),"gi"),"<strong>$&</strong>"):e}}),angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(t){t.put("template/accordion/accordion-group.html",'<div class="panel panel-default">\n  <div class="panel-heading">\n    <h4 class="panel-title">\n      <a class="accordion-toggle" ng-click="toggleOpen()" accordion-transclude="heading"><span ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n    </h4>\n  </div>\n  <div class="panel-collapse" collapse="!isOpen">\n	  <div class="panel-body" ng-transclude></div>\n  </div>\n</div>')}]),angular.module("template/accordion/accordion.html",[]).run(["$templateCache",function(t){t.put("template/accordion/accordion.html",'<div class="panel-group" ng-transclude></div>')}]),angular.module("template/alert/alert.html",[]).run(["$templateCache",function(t){t.put("template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissable\' : null]" role="alert">\n    <button ng-show="closeable" type="button" class="close" ng-click="close()">\n        <span aria-hidden="true">&times;</span>\n        <span class="sr-only">Close</span>\n    </button>\n    <div ng-transclude></div>\n</div>\n')}]),angular.module("template/carousel/carousel.html",[]).run(["$templateCache",function(t){t.put("template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n    <ol class="carousel-indicators" ng-show="slides.length > 1">\n        <li ng-repeat="slide in slides track by $index" ng-class="{active: isActive(slide)}" ng-click="select(slide)"></li>\n    </ol>\n    <div class="carousel-inner" ng-transclude></div>\n    <a class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-left"></span></a>\n    <a class="right carousel-control" ng-click="next()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-right"></span></a>\n</div>\n')}]),angular.module("template/carousel/slide.html",[]).run(["$templateCache",function(t){t.put("template/carousel/slide.html","<div ng-class=\"{\n    'active': leaving || (active && !entering),\n    'prev': (next || active) && direction=='prev',\n    'next': (next || active) && direction=='next',\n    'right': direction=='prev',\n    'left': direction=='next'\n  }\" class=\"item text-center\" ng-transclude></div>\n")}]),angular.module("template/datepicker/datepicker.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/datepicker.html",'<div ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n  <daypicker ng-switch-when="day" tabindex="0"></daypicker>\n  <monthpicker ng-switch-when="month" tabindex="0"></monthpicker>\n  <yearpicker ng-switch-when="year" tabindex="0"></yearpicker>\n</div>')}]),angular.module("template/datepicker/day.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/day.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th colspan="{{5 + showWeeks}}"><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n    <tr>\n      <th ng-show="showWeeks" class="text-center"></th>\n      <th ng-repeat="label in labels track by $index" class="text-center"><small aria-label="{{label.full}}">{{label.abbr}}</small></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-show="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="width:100%;" class="btn btn-default btn-sm" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("template/datepicker/month.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/month.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-info\': dt.current}">{{dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("template/datepicker/popup.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/popup.html",'<ul class="dropdown-menu" ng-style="{display: (isOpen && \'block\') || \'none\', top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)">\n	<li ng-transclude></li>\n	<li ng-if="showButtonBar" style="padding:10px 9px 2px">\n		<span class="btn-group">\n			<button type="button" class="btn btn-sm btn-info" ng-click="select(\'today\')">{{ getText(\'current\') }}</button>\n			<button type="button" class="btn btn-sm btn-danger" ng-click="select(null)">{{ getText(\'clear\') }}</button>\n		</span>\n		<button type="button" class="btn btn-sm btn-success pull-right" ng-click="close()">{{ getText(\'close\') }}</button>\n	</li>\n</ul>\n')}]),angular.module("template/datepicker/year.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/year.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th colspan="3"><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-info\': dt.current}">{{dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(t){t.put("template/modal/backdrop.html",'<div class="modal-backdrop fade {{ backdropClass }}"\n     ng-class="{in: animate}"\n     ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("template/modal/window.html",[]).run(["$templateCache",function(t){t.put("template/modal/window.html",'<div tabindex="-1" role="dialog" class="modal fade" ng-class="{in: animate}" ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}" ng-click="close($event)">\n    <div class="modal-dialog" ng-class="{\'modal-sm\': size == \'sm\', \'modal-lg\': size == \'lg\'}"><div class="modal-content" modal-transclude></div></div>\n</div>')}]),angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(t){t.put("template/pagination/pager.html",'<ul class="pager">\n  <li ng-class="{disabled: noPrevious(), previous: align}"><a href ng-click="selectPage(page - 1)">{{getText(\'previous\')}}</a></li>\n  <li ng-class="{disabled: noNext(), next: align}"><a href ng-click="selectPage(page + 1)">{{getText(\'next\')}}</a></li>\n</ul>')}]),angular.module("template/pagination/pagination.html",[]).run(["$templateCache",function(t){t.put("template/pagination/pagination.html",'<ul class="pagination">\n  <li ng-if="boundaryLinks" ng-class="{disabled: noPrevious()}"><a href ng-click="selectPage(1)">{{getText(\'first\')}}</a></li>\n  <li ng-if="directionLinks" ng-class="{disabled: noPrevious()}"><a href ng-click="selectPage(page - 1)">{{getText(\'previous\')}}</a></li>\n  <li ng-repeat="page in pages track by $index" ng-class="{active: page.active}"><a href ng-click="selectPage(page.number)">{{page.text}}</a></li>\n  <li ng-if="directionLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(page + 1)">{{getText(\'next\')}}</a></li>\n  <li ng-if="boundaryLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(totalPages)">{{getText(\'last\')}}</a></li>\n</ul>')}]),angular.module("template/tooltip/tooltip-html-unsafe-popup.html",[]).run(["$templateCache",function(t){t.put("template/tooltip/tooltip-html-unsafe-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner" bind-html-unsafe="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(t){t.put("template/tooltip/tooltip-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("template/popover/popover.html",[]).run(["$templateCache",function(t){t.put("template/popover/popover.html",'<div class="popover {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="arrow"></div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="title" ng-show="title"></h3>\n      <div class="popover-content" ng-bind="content"></div>\n  </div>\n</div>\n')}]),angular.module("template/progressbar/bar.html",[]).run(["$templateCache",function(t){t.put("template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: percent + \'%\'}" aria-valuetext="{{percent | number:0}}%" ng-transclude></div>')}]),angular.module("template/progressbar/progress.html",[]).run(["$templateCache",function(t){t.put("template/progressbar/progress.html",'<div class="progress" ng-transclude></div>')}]),angular.module("template/progressbar/progressbar.html",[]).run(["$templateCache",function(t){t.put("template/progressbar/progressbar.html",'<div class="progress">\n  <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: percent + \'%\'}" aria-valuetext="{{percent | number:0}}%" ng-transclude></div>\n</div>')}]),angular.module("template/rating/rating.html",[]).run(["$templateCache",function(t){t.put("template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}">\n    <i ng-repeat="r in range track by $index" ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')">\n        <span class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n    </i>\n</span>')}]),angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(t){t.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}">\n  <a ng-click="select()" tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(t){t.put("template/tabs/tabset.html",'<div>\n  <ul class="nav nav-{{type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n  <div class="tab-content">\n    <div class="tab-pane" \n         ng-repeat="tab in tabs" \n         ng-class="{active: tab.active}"\n         tab-content-transclude="tab">\n    </div>\n  </div>\n</div>\n')}]),angular.module("template/timepicker/timepicker.html",[]).run(["$templateCache",function(t){t.put("template/timepicker/timepicker.html",'<table>\n	<tbody>\n		<tr class="text-center">\n			<td><a ng-click="incrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n			<td>&nbsp;</td>\n			<td><a ng-click="incrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n			<td ng-show="showMeridian"></td>\n		</tr>\n		<tr>\n			<td style="width:50px;" class="form-group" ng-class="{\'has-error\': invalidHours}">\n				<input type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-mousewheel="incrementHours()" ng-readonly="readonlyInput" maxlength="2">\n			</td>\n			<td>:</td>\n			<td style="width:50px;" class="form-group" ng-class="{\'has-error\': invalidMinutes}">\n				<input type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2">\n			</td>\n			<td ng-show="showMeridian"><button type="button" class="btn btn-default text-center" ng-click="toggleMeridian()">{{meridian}}</button></td>\n		</tr>\n		<tr class="text-center">\n			<td><a ng-click="decrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n			<td>&nbsp;</td>\n			<td><a ng-click="decrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n			<td ng-show="showMeridian"></td>\n		</tr>\n	</tbody>\n</table>\n')}]),angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(t){t.put("template/typeahead/typeahead-match.html",'<a tabindex="-1" bind-html-unsafe="match.label | typeaheadHighlight:query"></a>')
}]),angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(t){t.put("template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen()" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" style="display: block;" role="listbox" aria-hidden="{{!isOpen()}}">\n    <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)" role="option" id="{{match.id}}">\n        <div typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n    </li>\n</ul>\n')}]),/*! jQuery UI - v1.11.4 - 2015-03-11
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, draggable.js, droppable.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade.js, effect-fold.js, effect-highlight.js, effect-puff.js, effect-pulsate.js, effect-scale.js, effect-shake.js, effect-size.js, effect-slide.js, effect-transfer.js, menu.js, progressbar.js, resizable.js, selectable.js, selectmenu.js, slider.js, sortable.js, spinner.js, tabs.js, tooltip.js
* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(e,i){var r,a,o,s=e.nodeName.toLowerCase();return"area"===s?(r=e.parentNode,a=r.name,e.href&&a&&"map"===r.nodeName.toLowerCase()?(o=t("img[usemap='#"+a+"']")[0],!!o&&n(o)):!1):(/^(input|select|textarea|button|object)$/.test(s)?!e.disabled:"a"===s?e.href||i:i)&&n(e)}function n(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}function i(t){for(var e,n;t.length&&t[0]!==document;){if(e=t.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(n=parseInt(t.css("zIndex"),10),!isNaN(n)&&0!==n))return n;t=t.parent()}return 0}function r(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=a(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function a(e){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(n,"mouseout",function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).delegate(n,"mouseover",o)}function o(){t.datepicker._isDisabledDatepicker(v.inline?v.dpDiv.parent()[0]:v.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function s(e,n){t.extend(e,n);for(var i in n)null==n[i]&&(e[i]=n[i]);return e}/*!
 * jQuery UI Spinner 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/spinner/
 */
function l(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}/*!
 * jQuery UI Core 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/category/ui-core/
 */
t.ui=t.ui||{},t.extend(t.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({scrollParent:function(e){var n=this.css("position"),i="absolute"===n,r=e?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter(function(){var e=t(this);return i&&"static"===e.css("position")?!1:r.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==n&&a.length?a:t(this[0].ownerDocument||document)},uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(n){return!!t.data(n,e)}}):function(e,n,i){return!!t.data(e,i[3])},focusable:function(n){return e(n,!isNaN(t.attr(n,"tabindex")))},tabbable:function(n){var i=t.attr(n,"tabindex"),r=isNaN(i);return(r||i>=0)&&e(n,!r)}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],function(e,n){function i(e,n,i,a){return t.each(r,function(){n-=parseFloat(t.css(e,"padding"+this))||0,i&&(n-=parseFloat(t.css(e,"border"+this+"Width"))||0),a&&(n-=parseFloat(t.css(e,"margin"+this))||0)}),n}var r="Width"===n?["Left","Right"]:["Top","Bottom"],a=n.toLowerCase(),o={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(e){return void 0===e?o["inner"+n].call(this):this.each(function(){t(this).css(a,i(this,e)+"px")})},t.fn["outer"+n]=function(e,r){return"number"!=typeof e?o["outer"+n].call(this,e):this.each(function(){t(this).css(a,i(this,e,!0,r)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(n){return arguments.length?e.call(this,t.camelCase(n)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.fn.extend({focus:function(e){return function(n,i){return"number"==typeof n?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),i&&i.call(e)},n)}):e.apply(this,arguments)}}(t.fn.focus),disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(t+".ui-disableSelection",function(t){t.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var n,i,r=t(this[0]);r.length&&r[0]!==document;){if(n=r.css("position"),("absolute"===n||"relative"===n||"fixed"===n)&&(i=parseInt(r.css("zIndex"),10),!isNaN(i)&&0!==i))return i;r=r.parent()}return 0}}),t.ui.plugin={add:function(e,n,i){var r,a=t.ui[e].prototype;for(r in i)a.plugins[r]=a.plugins[r]||[],a.plugins[r].push([n,i[r]])},call:function(t,e,n,i){var r,a=t.plugins[e];if(a&&(i||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(r=0;r<a.length;r++)t.options[a[r][0]]&&a[r][1].apply(t.element,n)}};/*!
 * jQuery UI Widget 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/jQuery.widget/
 */
var u=0,c=Array.prototype.slice;t.cleanData=function(e){return function(n){var i,r,a;for(a=0;null!=(r=n[a]);a++)try{i=t._data(r,"events"),i&&i.remove&&t(r).triggerHandler("remove")}catch(o){}e(n)}}(t.cleanData),t.widget=function(e,n,i){var r,a,o,s,l={},u=e.split(".")[0];return e=e.split(".")[1],r=u+"-"+e,i||(i=n,n=t.Widget),t.expr[":"][r.toLowerCase()]=function(e){return!!t.data(e,r)},t[u]=t[u]||{},a=t[u][e],o=t[u][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new o(t,e)},t.extend(o,a,{version:i.version,_proto:t.extend({},i),_childConstructors:[]}),s=new n,s.options=t.widget.extend({},s.options),t.each(i,function(e,i){return t.isFunction(i)?void(l[e]=function(){var t=function(){return n.prototype[e].apply(this,arguments)},r=function(t){return n.prototype[e].apply(this,t)};return function(){var e,n=this._super,a=this._superApply;return this._super=t,this._superApply=r,e=i.apply(this,arguments),this._super=n,this._superApply=a,e}}()):void(l[e]=i)}),o.prototype=t.widget.extend(s,{widgetEventPrefix:a?s.widgetEventPrefix||e:e},l,{constructor:o,namespace:u,widgetName:e,widgetFullName:r}),a?(t.each(a._childConstructors,function(e,n){var i=n.prototype;t.widget(i.namespace+"."+i.widgetName,o,n._proto)}),delete a._childConstructors):n._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var n,i,r=c.call(arguments,1),a=0,o=r.length;o>a;a++)for(n in r[a])i=r[a][n],r[a].hasOwnProperty(n)&&void 0!==i&&(e[n]=t.isPlainObject(i)?t.isPlainObject(e[n])?t.widget.extend({},e[n],i):t.widget.extend({},i):i);return e},t.widget.bridge=function(e,n){var i=n.prototype.widgetFullName||e;t.fn[e]=function(r){var a="string"==typeof r,o=c.call(arguments,1),s=this;return a?this.each(function(){var n,a=t.data(this,i);return"instance"===r?(s=a,!1):a?t.isFunction(a[r])&&"_"!==r.charAt(0)?(n=a[r].apply(a,o),n!==a&&void 0!==n?(s=n&&n.jquery?s.pushStack(n.get()):n,!1):void 0):t.error("no such method '"+r+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+r+"'")}):(o.length&&(r=t.widget.extend.apply(null,[r].concat(o))),this.each(function(){var e=t.data(this,i);e?(e.option(r||{}),e._init&&e._init()):t.data(this,i,new n(r,this))})),s}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=u++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var i,r,a,o=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(o={},i=e.split("."),e=i.shift(),i.length){for(r=o[e]=t.widget.extend({},this.options[e]),a=0;a<i.length-1;a++)r[i[a]]=r[i[a]]||{},r=r[i[a]];if(e=i.pop(),1===arguments.length)return void 0===r[e]?null:r[e];r[e]=n}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];o[e]=n}return this._setOptions(o),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!e),e&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(e,n,i){var r,a=this;"boolean"!=typeof e&&(i=n,n=e,e=!1),i?(n=r=t(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,r=this.widget()),t.each(i,function(i,o){function s(){return e||a.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof o?a[o]:o).apply(a,arguments):void 0}"string"!=typeof o&&(s.guid=o.guid=o.guid||s.guid||t.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+a.eventNamespace,c=l[2];c?r.delegate(c,u,s):n.bind(u,s)})},_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(n).undelegate(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function n(){return("string"==typeof t?i[t]:t).apply(i,arguments)}var i=this;return setTimeout(n,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,n,i){var r,a,o=this.options[e];if(i=i||{},n=t.Event(n),n.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],a=n.originalEvent)for(r in a)r in n||(n[r]=a[r]);return this.element.trigger(n,i),!(t.isFunction(o)&&o.apply(this.element[0],[n].concat(i))===!1||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,n){t.Widget.prototype["_"+e]=function(i,r,a){"string"==typeof r&&(r={effect:r});var o,s=r?r===!0||"number"==typeof r?n:r.effect||n:e;r=r||{},"number"==typeof r&&(r={duration:r}),o=!t.isEmptyObject(r),r.complete=a,r.delay&&i.delay(r.delay),o&&t.effects&&t.effects.effect[s]?i[e](r):s!==e&&i[s]?i[s](r.duration,r.easing,a):i.queue(function(n){t(this)[e](),a&&a.call(i[0]),n()})}});var d=(t.widget,!1);t(document).mouseup(function(){d=!1});t.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(n){return!0===t.data(n.target,e.widgetName+".preventClickEvent")?(t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!d){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var n=this,i=1===e.which,r="string"==typeof this.options.cancel&&e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return i&&!r&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),d=!0,!0)):!0}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),d=!1,!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}});/*!
 * jQuery UI Position 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/position/
 */
!function(){function e(t,e,n){return[parseFloat(t[0])*(p.test(t[0])?e/100:1),parseFloat(t[1])*(p.test(t[1])?n/100:1)]}function n(e,n){return parseInt(t.css(e,n),10)||0}function i(e){var n=e[0];return 9===n.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(n)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:n.preventDefault?{width:0,height:0,offset:{top:n.pageY,left:n.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var r,a,o=Math.max,s=Math.abs,l=Math.round,u=/left|center|right/,c=/top|center|bottom/,d=/[\+\-]\d+(\.[\d]+)?%?/,h=/^\w+/,p=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==r)return r;var e,n,i=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),a=i.children()[0];return t("body").append(i),e=a.offsetWidth,i.css("overflow","scroll"),n=a.offsetWidth,e===n&&(n=i[0].clientWidth),i.remove(),r=e-n},getScrollInfo:function(e){var n=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),i=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),r="scroll"===n||"auto"===n&&e.width<e.element[0].scrollWidth,a="scroll"===i||"auto"===i&&e.height<e.element[0].scrollHeight;return{width:a?t.position.scrollbarWidth():0,height:r?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var n=t(e||window),i=t.isWindow(n[0]),r=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:i,isDocument:r,offset:n.offset()||{left:0,top:0},scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:i||r?n.width():n.outerWidth(),height:i||r?n.height():n.outerHeight()}}},t.fn.position=function(r){if(!r||!r.of)return f.apply(this,arguments);r=t.extend({},r);var p,g,m,v,y,b,x=t(r.of),w=t.position.getWithinInfo(r.within),k=t.position.getScrollInfo(w),$=(r.collision||"flip").split(" "),_={};return b=i(x),x[0].preventDefault&&(r.at="left top"),g=b.width,m=b.height,v=b.offset,y=t.extend({},v),t.each(["my","at"],function(){var t,e,n=(r[this]||"").split(" ");1===n.length&&(n=u.test(n[0])?n.concat(["center"]):c.test(n[0])?["center"].concat(n):["center","center"]),n[0]=u.test(n[0])?n[0]:"center",n[1]=c.test(n[1])?n[1]:"center",t=d.exec(n[0]),e=d.exec(n[1]),_[this]=[t?t[0]:0,e?e[0]:0],r[this]=[h.exec(n[0])[0],h.exec(n[1])[0]]}),1===$.length&&($[1]=$[0]),"right"===r.at[0]?y.left+=g:"center"===r.at[0]&&(y.left+=g/2),"bottom"===r.at[1]?y.top+=m:"center"===r.at[1]&&(y.top+=m/2),p=e(_.at,g,m),y.left+=p[0],y.top+=p[1],this.each(function(){var i,u,c=t(this),d=c.outerWidth(),h=c.outerHeight(),f=n(this,"marginLeft"),b=n(this,"marginTop"),C=d+f+n(this,"marginRight")+k.width,M=h+b+n(this,"marginBottom")+k.height,D=t.extend({},y),S=e(_.my,c.outerWidth(),c.outerHeight());"right"===r.my[0]?D.left-=d:"center"===r.my[0]&&(D.left-=d/2),"bottom"===r.my[1]?D.top-=h:"center"===r.my[1]&&(D.top-=h/2),D.left+=S[0],D.top+=S[1],a||(D.left=l(D.left),D.top=l(D.top)),i={marginLeft:f,marginTop:b},t.each(["left","top"],function(e,n){t.ui.position[$[e]]&&t.ui.position[$[e]][n](D,{targetWidth:g,targetHeight:m,elemWidth:d,elemHeight:h,collisionPosition:i,collisionWidth:C,collisionHeight:M,offset:[p[0]+S[0],p[1]+S[1]],my:r.my,at:r.at,within:w,elem:c})}),r.using&&(u=function(t){var e=v.left-D.left,n=e+g-d,i=v.top-D.top,a=i+m-h,l={target:{element:x,left:v.left,top:v.top,width:g,height:m},element:{element:c,left:D.left,top:D.top,width:d,height:h},horizontal:0>n?"left":e>0?"right":"center",vertical:0>a?"top":i>0?"bottom":"middle"};d>g&&s(e+n)<g&&(l.horizontal="center"),h>m&&s(i+a)<m&&(l.vertical="middle"),l.important=o(s(e),s(n))>o(s(i),s(a))?"horizontal":"vertical",r.using.call(this,t,l)}),c.offset(t.extend(D,{using:u}))})},t.ui.position={fit:{left:function(t,e){var n,i=e.within,r=i.isWindow?i.scrollLeft:i.offset.left,a=i.width,s=t.left-e.collisionPosition.marginLeft,l=r-s,u=s+e.collisionWidth-a-r;e.collisionWidth>a?l>0&&0>=u?(n=t.left+l+e.collisionWidth-a-r,t.left+=l-n):t.left=u>0&&0>=l?r:l>u?r+a-e.collisionWidth:r:l>0?t.left+=l:u>0?t.left-=u:t.left=o(t.left-s,t.left)},top:function(t,e){var n,i=e.within,r=i.isWindow?i.scrollTop:i.offset.top,a=e.within.height,s=t.top-e.collisionPosition.marginTop,l=r-s,u=s+e.collisionHeight-a-r;e.collisionHeight>a?l>0&&0>=u?(n=t.top+l+e.collisionHeight-a-r,t.top+=l-n):t.top=u>0&&0>=l?r:l>u?r+a-e.collisionHeight:r:l>0?t.top+=l:u>0?t.top-=u:t.top=o(t.top-s,t.top)}},flip:{left:function(t,e){var n,i,r=e.within,a=r.offset.left+r.scrollLeft,o=r.width,l=r.isWindow?r.scrollLeft:r.offset.left,u=t.left-e.collisionPosition.marginLeft,c=u-l,d=u+e.collisionWidth-o-l,h="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(n=t.left+h+p+f+e.collisionWidth-o-a,(0>n||n<s(c))&&(t.left+=h+p+f)):d>0&&(i=t.left-e.collisionPosition.marginLeft+h+p+f-l,(i>0||s(i)<d)&&(t.left+=h+p+f))},top:function(t,e){var n,i,r=e.within,a=r.offset.top+r.scrollTop,o=r.height,l=r.isWindow?r.scrollTop:r.offset.top,u=t.top-e.collisionPosition.marginTop,c=u-l,d=u+e.collisionHeight-o-l,h="top"===e.my[1],p=h?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>c?(i=t.top+p+f+g+e.collisionHeight-o-a,(0>i||i<s(c))&&(t.top+=p+f+g)):d>0&&(n=t.top-e.collisionPosition.marginTop+p+f+g-l,(n>0||s(n)<d)&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,n,i,r,o,s=document.getElementsByTagName("body")[0],l=document.createElement("div");e=document.createElement(s?"div":"body"),i={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},s&&t.extend(i,{position:"absolute",left:"-1000px",top:"-1000px"});for(o in i)e.style[o]=i[o];e.appendChild(l),n=s||document.documentElement,n.insertBefore(e,n.firstChild),l.style.cssText="position: absolute; left: 10.7432222px;",r=t(l).offset().left,a=r>10&&11>r,e.innerHTML="",n.removeChild(e)}()}();t.ui.position,t.widget("ui.accordion",{version:"1.11.4",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||e.active!==!1&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("<span>").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||this.options.active!==!1||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),void("disabled"===t&&(this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e))))},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var n=t.ui.keyCode,i=this.headers.length,r=this.headers.index(e.target),a=!1;switch(e.keyCode){case n.RIGHT:case n.DOWN:a=this.headers[(r+1)%i];break;case n.LEFT:case n.UP:a=this.headers[(r-1+i)%i];break;case n.SPACE:case n.ENTER:this._eventHandler(e);break;case n.HOME:a=this.headers[0];break;case n.END:a=this.headers[i-1]}a&&(t(e.target).attr("tabIndex",-1),t(a).attr("tabIndex",0),a.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&&e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!1?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all"),this.panels=this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide(),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,n=this.options,i=n.heightStyle,r=this.element.parent();this.active=this._findActive(n.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(){var e=t(this),n=e.uniqueId().attr("id"),i=e.next(),r=i.uniqueId().attr("id");e.attr("aria-controls",r),i.attr("aria-labelledby",n)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(n.event),"fill"===i?(e=r.height(),this.element.siblings(":visible").each(function(){var n=t(this),i=n.css("position");"absolute"!==i&&"fixed"!==i&&(e-=n.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===i&&(e=0,this.headers.next().each(function(){e=Math.max(e,t(this).css("height","").height())}).height(e))},_activate:function(e){var n=this._findActive(e)[0];n!==this.active[0]&&(n=n||this.active[0],this._eventHandler({target:n,currentTarget:n,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var n={keydown:"_keydown"};e&&t.each(e.split(" "),function(t,e){n[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,n),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var n=this.options,i=this.active,r=t(e.currentTarget),a=r[0]===i[0],o=a&&n.collapsible,s=o?t():r.next(),l=i.next(),u={oldHeader:i,oldPanel:l,newHeader:o?t():r,newPanel:s};e.preventDefault(),a&&!n.collapsible||this._trigger("beforeActivate",e,u)===!1||(n.active=o?!1:this.headers.index(r),this.active=a?t():r,this._toggle(u),i.removeClass("ui-accordion-header-active ui-state-active"),n.icons&&i.children(".ui-accordion-header-icon").removeClass(n.icons.activeHeader).addClass(n.icons.header),a||(r.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),n.icons&&r.children(".ui-accordion-header-icon").removeClass(n.icons.header).addClass(n.icons.activeHeader),r.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var n=e.newPanel,i=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=n,this.prevHide=i,this.options.animate?this._animate(n,i,e):(i.hide(),n.show(),this._toggleComplete(e)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),n.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):n.length&&this.headers.filter(function(){return 0===parseInt(t(this).attr("tabIndex"),10)}).attr("tabIndex",-1),n.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,n){var i,r,a,o=this,s=0,l=t.css("box-sizing"),u=t.length&&(!e.length||t.index()<e.index()),c=this.options.animate||{},d=u&&c.down||c,h=function(){o._toggleComplete(n)};return"number"==typeof d&&(a=d),"string"==typeof d&&(r=d),r=r||d.easing||c.easing,a=a||d.duration||c.duration,e.length?t.length?(i=t.show().outerHeight(),e.animate(this.hideProps,{duration:a,easing:r,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:a,easing:r,complete:h,step:function(t,n){n.now=Math.round(t),"height"!==n.prop?"content-box"===l&&(s+=n.now):"content"!==o.options.heightStyle&&(n.now=Math.round(i-e.outerHeight()-s),s=0)}})):e.animate(this.hideProps,a,r,h):t.animate(this.showProps,a,r,h)},_toggleComplete:function(t){var e=t.oldPanel;e.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),t.widget("ui.menu",{version:"1.11.4",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var n=t(e.target);!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&t(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var n=t(e.currentTarget);n.siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(e,n)}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var n=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,n)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){var n,i,r,a,o=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:o=!1,i=this.previousFilter||"",r=String.fromCharCode(e.keyCode),a=!1,clearTimeout(this.filterTimer),r===i?a=!0:r=i+r,n=this._filterMenuItems(r),n=a&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n,n.length||(r=String.fromCharCode(e.keyCode),n=this._filterMenuItems(r)),n.length?(this.focus(e,n),this.previousFilter=r,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}o&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(t):this.select(t))},refresh:function(){var e,n,i=this,r=this.options.icons.submenu,a=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),a.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),n=e.parent(),i=t("<span>").addClass("ui-menu-icon ui-icon "+r).data("ui-menu-submenu-carat",!0);n.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",n.attr("id"))}),e=a.add(this.element),n=e.find(this.options.items),n.not(".ui-menu-item").each(function(){var e=t(this);i._isDivider(e)&&e.addClass("ui-widget-content ui-menu-divider")}),n.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),n.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this._super(t,e)},focus:function(t,e){var n,i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),n=e.children(".ui-menu"),n.length&&t&&/^mouse/.test(t.type)&&this._startOpening(n),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var n,i,r,a,o,s;this._hasScroll()&&(n=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,r=e.offset().top-this.activeMenu.offset().top-n-i,a=this.activeMenu.scrollTop(),o=this.activeMenu.height(),s=e.outerHeight(),0>r?this.activeMenu.scrollTop(a+r):r+s>o&&this.activeMenu.scrollTop(a+r-o+s))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var n=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(e,n){clearTimeout(this.timer),this.timer=this._delay(function(){var i=n?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));i.length||(i=this.element),this._close(i),this.blur(e),this.activeMenu=i},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,n){var i;this.active&&(i="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),i&&i.length&&this.active||(i=this.activeMenu.find(this.options.items)[e]()),this.focus(n,i)},nextPage:function(e){var n,i,r;return this.active?void(this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,r=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return n=t(this),n.offset().top-i-r<0}),this.focus(e,n)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var n,i,r;return this.active?void(this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,r=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return n=t(this),n.offset().top-i+r>0}),this.focus(e,n)):this.focus(e,this.activeMenu.find(this.options.items).first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var n={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,n)},_filterMenuItems:function(e){var n=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),i=new RegExp("^"+n,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return i.test(t.trim(t(this).text()))})}});/*!
 * jQuery UI Autocomplete 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/autocomplete/
 */
t.widget("ui.autocomplete",{version:"1.11.4",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,n,i,r=this.element[0].nodeName.toLowerCase(),a="textarea"===r,o="input"===r;this.isMultiLine=a?!0:o?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[a||o?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(r){if(this.element.prop("readOnly"))return e=!0,i=!0,void(n=!0);e=!1,i=!1,n=!1;var a=t.ui.keyCode;switch(r.keyCode){case a.PAGE_UP:e=!0,this._move("previousPage",r);break;case a.PAGE_DOWN:e=!0,this._move("nextPage",r);break;case a.UP:e=!0,this._keyEvent("previous",r);break;case a.DOWN:e=!0,this._keyEvent("next",r);break;case a.ENTER:this.menu.active&&(e=!0,r.preventDefault(),this.menu.select(r));break;case a.TAB:this.menu.active&&this.menu.select(r);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(r),r.preventDefault());break;default:n=!0,this._searchTimeout(r)}},keypress:function(i){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&i.preventDefault());if(!n){var r=t.ui.keyCode;switch(i.keyCode){case r.PAGE_UP:this._move("previousPage",i);break;case r.PAGE_DOWN:this._move("nextPage",i);break;case r.UP:this._keyEvent("previous",i);break;case r.DOWN:this._keyEvent("next",i)}}},input:function(t){return i?(i=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var n=this.menu.element[0];t(e.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(i){i.target===e.element[0]||i.target===n||t.contains(n,i.target)||e.close()})})},menufocus:function(e,n){var i,r;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)})):(r=n.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:r})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(r.value),i=n.item.attr("aria-label")||r.value,void(i&&t.trim(i).length&&(this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))))},menuselect:function(t,e){var n=e.item.data("ui-autocomplete-item"),i=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=i,this._delay(function(){this.previous=i,this.selectedItem=n})),!1!==this._trigger("select",t,{item:n})&&this._value(n.value),this.term=this._value(),this.close(t),this.selectedItem=n}}),this.liveRegion=t("<span>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,n,i=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(n,i){i(t.ui.autocomplete.filter(e,n.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(e,r){i.xhr&&i.xhr.abort(),i.xhr=t.ajax({url:n,data:e,dataType:"json",success:function(t){r(t)},error:function(){r([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),n=this.menu.element.is(":visible"),i=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!n&&!i)&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var n=this.menu.element.empty();this._renderMenu(n,e),this.isNewMenu=!0,this.menu.refresh(),n.show(),this._resizeMenu(),n.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,n){var i=this;t.each(n,function(t,n){i._renderItemData(e,n)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,n){return t("<li>").text(n.label).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,n){var i=new RegExp(t.ui.autocomplete.escapeRegex(n),"i");return t.grep(e,function(t){return i.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var n;this._superApply(arguments),this.options.disabled||this.cancelSearch||(n=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(n).appendTo(this.liveRegion))}});var h,p=(t.ui.autocomplete,"ui-button ui-widget ui-state-default ui-corner-all"),f="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",g=function(){var e=t(this);setTimeout(function(){e.find(":ui-button").button("refresh")},1)},m=function(e){var n=e.name,i=e.form,r=t([]);return n&&(n=n.replace(/'/g,"\\'"),r=i?t(i).find("[name='"+n+"'][type=radio]"):t("[name='"+n+"'][type=radio]",e.ownerDocument).filter(function(){return!this.form})),r};t.widget("ui.button",{version:"1.11.4",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,g),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var e=this,n=this.options,i="checkbox"===this.type||"radio"===this.type,r=i?"":"ui-state-active";null===n.label&&(n.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(p).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){n.disabled||this===h&&t(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){n.disabled||t(this).removeClass(r)}).bind("click"+this.eventNamespace,function(t){n.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}}),i&&this.element.bind("change"+this.eventNamespace,function(){e.refresh()}),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){return n.disabled?!1:void 0}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(n.disabled)return!1;t(this).addClass("ui-state-active"),e.buttonElement.attr("aria-pressed","true");var i=e.element[0];m(i).not(i).map(function(){return t(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return n.disabled?!1:(t(this).addClass("ui-state-active"),h=this,void e.document.one("mouseup",function(){h=null}))}).bind("mouseup"+this.eventNamespace,function(){return n.disabled?!1:void t(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(e){return n.disabled?!1:void((e.keyCode===t.ui.keyCode.SPACE||e.keyCode===t.ui.keyCode.ENTER)&&t(this).addClass("ui-state-active"))}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){t(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&&t(this).click()})),this._setOption("disabled",n.disabled),this._resetButton()},_determineButtonType:function(){var t,e,n;this.type=this.element.is("[type=checkbox]")?"checkbox":this.element.is("[type=radio]")?"radio":this.element.is("input")?"input":"button","checkbox"===this.type||"radio"===this.type?(t=this.element.parents().last(),e="label[for='"+this.element.attr("id")+"']",this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass("ui-helper-hidden-accessible"),n=this.element.is(":checked"),n&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",n)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(p+" ui-state-active "+f).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(t,e){return this._super(t,e),"disabled"===t?(this.widget().toggleClass("ui-state-disabled",!!e),this.element.prop("disabled",!!e),void(e&&this.buttonElement.removeClass("checkbox"===this.type||"radio"===this.type?"ui-state-focus":"ui-state-focus ui-state-active"))):void this._resetButton()},refresh:function(){var e=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOption("disabled",e),"radio"===this.type?m(this.element[0]).each(function(){t(this).is(":checked")?t(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):t(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)return void(this.options.label&&this.element.val(this.options.label));var e=this.buttonElement.removeClass(f),n=t("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),i=this.options.icons,r=i.primary&&i.secondary,a=[];i.primary||i.secondary?(this.options.text&&a.push("ui-button-text-icon"+(r?"s":i.primary?"-primary":"-secondary")),i.primary&&e.prepend("<span class='ui-button-icon-primary ui-icon "+i.primary+"'></span>"),i.secondary&&e.append("<span class='ui-button-icon-secondary ui-icon "+i.secondary+"'></span>"),this.options.text||(a.push(r?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",t.trim(n)))):a.push("ui-button-text-only"),e.addClass(a.join(" "))}}),t.widget("ui.buttonset",{version:"1.11.4",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(t,e){"disabled"===t&&this.buttons.button("option",t,e),this._super(t,e)},refresh:function(){var e="rtl"===this.element.css("direction"),n=this.element.find(this.options.items),i=n.filter(":ui-button");n.not(":ui-button").button(),i.button("refresh"),this.buttons=n.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}});t.ui.button;/*!
 * jQuery UI Datepicker 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/datepicker/
 */
t.extend(t.ui,{datepicker:{version:"1.11.4"}});var v;t.extend(r.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return s(this._defaults,t||{}),this},_attachDatepicker:function(e,n){var i,r,a;i=e.nodeName.toLowerCase(),r="div"===i||"span"===i,e.id||(this.uuid+=1,e.id="dp"+this.uuid),a=this._newInst(t(e),r),a.settings=t.extend({},n||{}),"input"===i?this._connectDatepicker(e,a):r&&this._inlineDatepicker(e,a)},_newInst:function(e,n){var i=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:i,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?a(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,n){var i=t(e);n.append=t([]),n.trigger=t([]),i.hasClass(this.markerClassName)||(this._attachments(i,n),i.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(n),t.data(e,"datepicker",n),n.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,n){var i,r,a,o=this._get(n,"appendText"),s=this._get(n,"isRTL");n.append&&n.append.remove(),o&&(n.append=t("<span class='"+this._appendClass+"'>"+o+"</span>"),e[s?"before":"after"](n.append)),e.unbind("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),i=this._get(n,"showOn"),("focus"===i||"both"===i)&&e.focus(this._showDatepicker),("button"===i||"both"===i)&&(r=this._get(n,"buttonText"),a=this._get(n,"buttonImage"),n.trigger=t(this._get(n,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:a,alt:r,title:r}):t("<button type='button'></button>").addClass(this._triggerClass).html(a?t("<img/>").attr({src:a,alt:r,title:r}):r)),e[s?"before":"after"](n.trigger),n.trigger.click(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,n,i,r,a=new Date(2009,11,20),o=this._get(t,"dateFormat");o.match(/[DM]/)&&(e=function(t){for(n=0,i=0,r=0;r<t.length;r++)t[r].length>n&&(n=t[r].length,i=r);return i},a.setMonth(e(this._get(t,o.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(e(this._get(t,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),t.input.attr("size",this._formatDate(t,a).length)}},_inlineDatepicker:function(e,n){var i=t(e);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(n.dpDiv),t.data(e,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(e),n.dpDiv.css("display","block"))},_dialogDatepicker:function(e,n,i,r,a){var o,l,u,c,d,h=this._dialogInst;return h||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),t("body").append(this._dialogInput),h=this._dialogInst=this._newInst(this._dialogInput,!1),h.settings={},t.data(this._dialogInput[0],"datepicker",h)),s(h.settings,r||{}),n=n&&n.constructor===Date?this._formatDate(h,n):n,this._dialogInput.val(n),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(l=document.documentElement.clientWidth,u=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+c,u/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),h.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",h),this},_destroyDatepicker:function(e){var n,i=t(e),r=t.data(e,"datepicker");i.hasClass(this.markerClassName)&&(n=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===n?(r.append.remove(),r.trigger.remove(),i.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===n||"span"===n)&&i.removeClass(this.markerClassName).empty(),v===r&&(v=null))},_enableDatepicker:function(e){var n,i,r=t(e),a=t.data(e,"datepicker");r.hasClass(this.markerClassName)&&(n=e.nodeName.toLowerCase(),"input"===n?(e.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===n||"span"===n)&&(i=r.children("."+this._inlineClass),i.children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var n,i,r=t(e),a=t.data(e,"datepicker");r.hasClass(this.markerClassName)&&(n=e.nodeName.toLowerCase(),"input"===n?(e.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===n||"span"===n)&&(i=r.children("."+this._inlineClass),i.children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(n){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,n,i){var r,a,o,l,u=this._getInst(e);return 2===arguments.length&&"string"==typeof n?"defaults"===n?t.extend({},t.datepicker._defaults):u?"all"===n?t.extend({},u.settings):this._get(u,n):null:(r=n||{},"string"==typeof n&&(r={},r[n]=i),void(u&&(this._curInst===u&&this._hideDatepicker(),a=this._getDateDatepicker(e,!0),o=this._getMinMaxDate(u,"min"),l=this._getMinMaxDate(u,"max"),s(u.settings,r),null!==o&&void 0!==r.dateFormat&&void 0===r.minDate&&(u.settings.minDate=this._formatDate(u,o)),null!==l&&void 0!==r.dateFormat&&void 0===r.maxDate&&(u.settings.maxDate=this._formatDate(u,l)),"disabled"in r&&(r.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),u),this._autoSize(u),this._setDate(u,a),this._updateAlternate(u),this._updateDatepicker(u))))},_changeDatepicker:function(t,e,n){this._optionDatepicker(t,e,n)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var n=this._getInst(t);n&&(this._setDate(n,e),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(t,e){var n=this._getInst(t);return n&&!n.inline&&this._setDateFromField(n,e),n?this._getDate(n):null},_doKeyDown:function(e){var n,i,r,a=t.datepicker._getInst(e.target),o=!0,s=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),o=!1;break;case 13:return r=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",a.dpDiv),r[0]&&t.datepicker._selectDay(e.target,a.selectedMonth,a.selectedYear,r[0]),n=t.datepicker._get(a,"onSelect"),n?(i=t.datepicker._formatDate(a),n.apply(a.input?a.input[0]:null,[i,a])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(a,"stepBigMonths"):-t.datepicker._get(a,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(a,"stepBigMonths"):+t.datepicker._get(a,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),o=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),o=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,s?1:-1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(a,"stepBigMonths"):-t.datepicker._get(a,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),o=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,s?-1:1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(a,"stepBigMonths"):+t.datepicker._get(a,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),o=e.ctrlKey||e.metaKey;break;default:o=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):o=!1;o&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var n,i,r=t.datepicker._getInst(e.target);return t.datepicker._get(r,"constrainInput")?(n=t.datepicker._possibleChars(t.datepicker._get(r,"dateFormat")),i=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||" ">i||!n||n.indexOf(i)>-1):void 0},_doKeyUp:function(e){var n,i=t.datepicker._getInst(e.target);if(i.input.val()!==i.lastVal)try{n=t.datepicker.parseDate(t.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,t.datepicker._getFormatConfig(i)),n&&(t.datepicker._setDateFromField(i),t.datepicker._updateAlternate(i),t.datepicker._updateDatepicker(i))}catch(r){}return!0},_showDatepicker:function(e){if(e=e.target||e,"input"!==e.nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var n,r,a,o,l,u,c;n=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==n&&(t.datepicker._curInst.dpDiv.stop(!0,!0),n&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),r=t.datepicker._get(n,"beforeShow"),a=r?r.apply(e,[e,n]):{},a!==!1&&(s(n.settings,a),n.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(n),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),o=!1,t(e).parents().each(function(){return o|="fixed"===t(this).css("position"),!o}),l={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(n),l=t.datepicker._checkOffset(n,l,o),n.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":o?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),n.inline||(u=t.datepicker._get(n,"showAnim"),c=t.datepicker._get(n,"duration"),n.dpDiv.css("z-index",i(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[u]?n.dpDiv.show(u,t.datepicker._get(n,"showOptions"),c):n.dpDiv[u||"show"](u?c:null),t.datepicker._shouldFocusInput(n)&&n.input.focus(),t.datepicker._curInst=n))}},_updateDatepicker:function(e){this.maxRows=4,v=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var n,i=this._getNumberOfMonths(e),r=i[1],a=17,s=e.dpDiv.find("."+this._dayOverClass+" a");s.length>0&&o.apply(s.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),r>1&&e.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",a*r+"em"),e.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.focus(),e.yearshtml&&(n=e.yearshtml,setTimeout(function(){n===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),n=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,n,i){var r=e.dpDiv.outerWidth(),a=e.dpDiv.outerHeight(),o=e.input?e.input.outerWidth():0,s=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(i?0:t(document).scrollLeft()),u=document.documentElement.clientHeight+(i?0:t(document).scrollTop());return n.left-=this._get(e,"isRTL")?r-o:0,n.left-=i&&n.left===e.input.offset().left?t(document).scrollLeft():0,n.top-=i&&n.top===e.input.offset().top+s?t(document).scrollTop():0,n.left-=Math.min(n.left,n.left+r>l&&l>r?Math.abs(n.left+r-l):0),n.top-=Math.min(n.top,n.top+a>u&&u>a?Math.abs(a+s):0),n},_findPos:function(e){for(var n,i=this._getInst(e),r=this._get(i,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[r?"previousSibling":"nextSibling"];return n=t(e).offset(),[n.left,n.top]},_hideDatepicker:function(e){var n,i,r,a,o=this._curInst;!o||e&&o!==t.data(e,"datepicker")||this._datepickerShowing&&(n=this._get(o,"showAnim"),i=this._get(o,"duration"),r=function(){t.datepicker._tidyDialog(o)},t.effects&&(t.effects.effect[n]||t.effects[n])?o.dpDiv.hide(n,t.datepicker._get(o,"showOptions"),i,r):o.dpDiv["slideDown"===n?"slideUp":"fadeIn"===n?"fadeOut":"hide"](n?i:null,r),n||r(),this._datepickerShowing=!1,a=this._get(o,"onClose"),a&&a.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var n=t(e.target),i=t.datepicker._getInst(n[0]);(n[0].id!==t.datepicker._mainDivId&&0===n.parents("#"+t.datepicker._mainDivId).length&&!n.hasClass(t.datepicker.markerClassName)&&!n.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||n.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==i)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,n,i){var r=t(e),a=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(a,n+("M"===i?this._get(a,"showCurrentAtPos"):0),i),this._updateDatepicker(a))},_gotoToday:function(e){var n,i=t(e),r=this._getInst(i[0]);this._get(r,"gotoCurrent")&&r.currentDay?(r.selectedDay=r.currentDay,r.drawMonth=r.selectedMonth=r.currentMonth,r.drawYear=r.selectedYear=r.currentYear):(n=new Date,r.selectedDay=n.getDate(),r.drawMonth=r.selectedMonth=n.getMonth(),r.drawYear=r.selectedYear=n.getFullYear()),this._notifyChange(r),this._adjustDate(i)},_selectMonthYear:function(e,n,i){var r=t(e),a=this._getInst(r[0]);a["selected"+("M"===i?"Month":"Year")]=a["draw"+("M"===i?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(r)},_selectDay:function(e,n,i,r){var a,o=t(e);t(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||(a=this._getInst(o[0]),a.selectedDay=a.currentDay=t("a",r).html(),a.selectedMonth=a.currentMonth=n,a.selectedYear=a.currentYear=i,this._selectDate(e,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(e){var n=t(e);this._selectDate(n,"")},_selectDate:function(e,n){var i,r=t(e),a=this._getInst(r[0]);n=null!=n?n:this._formatDate(a),a.input&&a.input.val(n),this._updateAlternate(a),i=this._get(a,"onSelect"),i?i.apply(a.input?a.input[0]:null,[n,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var n,i,r,a=this._get(e,"altField");a&&(n=this._get(e,"altFormat")||this._get(e,"dateFormat"),i=this._getDate(e),r=this.formatDate(n,i,this._getFormatConfig(e)),t(a).each(function(){t(this).val(r)}))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,""]},iso8601Week:function(t){var e,n=new Date(t.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),e=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((e-n)/864e5)/7)+1},parseDate:function(e,n,i){if(null==e||null==n)throw"Invalid arguments";if(n="object"==typeof n?n.toString():n+"",""===n)return null;var r,a,o,s,l=0,u=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),d=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,h=(i?i.dayNames:null)||this._defaults.dayNames,p=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,f=(i?i.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,v=-1,y=-1,b=!1,x=function(t){var n=r+1<e.length&&e.charAt(r+1)===t;return n&&r++,n},w=function(t){var e=x(t),i="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,r="y"===t?i:1,a=new RegExp("^\\d{"+r+","+i+"}"),o=n.substring(l).match(a);if(!o)throw"Missing number at position "+l;return l+=o[0].length,parseInt(o[0],10)},k=function(e,i,r){var a=-1,o=t.map(x(e)?r:i,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(o,function(t,e){var i=e[1];return n.substr(l,i.length).toLowerCase()===i.toLowerCase()?(a=e[0],l+=i.length,!1):void 0}),-1!==a)return a+1;throw"Unknown name at position "+l},$=function(){if(n.charAt(l)!==e.charAt(r))throw"Unexpected literal at position "+l;l++};for(r=0;r<e.length;r++)if(b)"'"!==e.charAt(r)||x("'")?$():b=!1;else switch(e.charAt(r)){case"d":v=w("d");break;case"D":k("D",d,h);break;case"o":y=w("o");break;case"m":m=w("m");break;case"M":m=k("M",p,f);break;case"y":g=w("y");break;case"@":s=new Date(w("@")),g=s.getFullYear(),m=s.getMonth()+1,v=s.getDate();break;case"!":s=new Date((w("!")-this._ticksTo1970)/1e4),g=s.getFullYear(),m=s.getMonth()+1,v=s.getDate();break;case"'":x("'")?$():b=!0;break;default:$()}if(l<n.length&&(o=n.substr(l),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===g?g=(new Date).getFullYear():100>g&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c>=g?0:-100)),y>-1)for(m=1,v=y;;){if(a=this._getDaysInMonth(g,m-1),a>=v)break;m++,v-=a}if(s=this._daylightSavingAdjust(new Date(g,m-1,v)),s.getFullYear()!==g||s.getMonth()+1!==m||s.getDate()!==v)throw"Invalid date";return s},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,n){if(!e)return"";var i,r=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,a=(n?n.dayNames:null)||this._defaults.dayNames,o=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,s=(n?n.monthNames:null)||this._defaults.monthNames,l=function(e){var n=i+1<t.length&&t.charAt(i+1)===e;return n&&i++,n},u=function(t,e,n){var i=""+e;if(l(t))for(;i.length<n;)i="0"+i;return i},c=function(t,e,n,i){return l(t)?i[e]:n[e]},d="",h=!1;if(e)for(i=0;i<t.length;i++)if(h)"'"!==t.charAt(i)||l("'")?d+=t.charAt(i):h=!1;else switch(t.charAt(i)){case"d":d+=u("d",e.getDate(),2);break;case"D":d+=c("D",e.getDay(),r,a);break;case"o":d+=u("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=u("m",e.getMonth()+1,2);break;case"M":d+=c("M",e.getMonth(),o,s);break;case"y":d+=l("y")?e.getFullYear():(e.getYear()%100<10?"0":"")+e.getYear()%100;break;case"@":d+=e.getTime();break;case"!":d+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?d+="'":h=!0;break;default:d+=t.charAt(i)}return d},_possibleChars:function(t){var e,n="",i=!1,r=function(n){var i=e+1<t.length&&t.charAt(e+1)===n;return i&&e++,i};for(e=0;e<t.length;e++)if(i)"'"!==t.charAt(e)||r("'")?n+=t.charAt(e):i=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":r("'")?n+="'":i=!0;break;default:n+=t.charAt(e)}return n},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var n=this._get(t,"dateFormat"),i=t.lastVal=t.input?t.input.val():null,r=this._getDefaultDate(t),a=r,o=this._getFormatConfig(t);try{a=this.parseDate(n,i,o)||r}catch(s){i=e?"":i}t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),t.currentDay=i?a.getDate():0,t.currentMonth=i?a.getMonth():0,t.currentYear=i?a.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,n,i){var r=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},a=function(n){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),n,t.datepicker._getFormatConfig(e))}catch(i){}for(var r=(n.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,a=r.getFullYear(),o=r.getMonth(),s=r.getDate(),l=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=l.exec(n);u;){switch(u[2]||"d"){case"d":case"D":s+=parseInt(u[1],10);break;case"w":case"W":s+=7*parseInt(u[1],10);break;case"m":case"M":o+=parseInt(u[1],10),s=Math.min(s,t.datepicker._getDaysInMonth(a,o));break;case"y":case"Y":a+=parseInt(u[1],10),s=Math.min(s,t.datepicker._getDaysInMonth(a,o))}u=l.exec(n)}return new Date(a,o,s)},o=null==n||""===n?i:"string"==typeof n?a(n):"number"==typeof n?isNaN(n)?i:r(n):new Date(n.getTime());return o=o&&"Invalid Date"===o.toString()?i:o,o&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,n){var i=!e,r=t.selectedMonth,a=t.selectedYear,o=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=o.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=o.getMonth(),t.drawYear=t.selectedYear=t.currentYear=o.getFullYear(),r===t.selectedMonth&&a===t.selectedYear||n||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(i?"":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(e){var n=this._get(e,"stepMonths"),i="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(i,-n,"M")},next:function(){t.datepicker._adjustDate(i,+n,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(i)},selectDay:function(){return t.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(i,this,"Y"),!1}};t(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,n,i,r,a,o,s,l,u,c,d,h,p,f,g,m,v,y,b,x,w,k,$,_,C,M,D,S,A,T,E,I,P,N,O,z,H,L,F,R=new Date,W=this._daylightSavingAdjust(new Date(R.getFullYear(),R.getMonth(),R.getDate())),j=this._get(t,"isRTL"),q=this._get(t,"showButtonPanel"),V=this._get(t,"hideIfNoPrevNext"),B=this._get(t,"navigationAsDateFormat"),U=this._getNumberOfMonths(t),Y=this._get(t,"showCurrentAtPos"),X=this._get(t,"stepMonths"),K=1!==U[0]||1!==U[1],G=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),Z=this._getMinMaxDate(t,"min"),Q=this._getMinMaxDate(t,"max"),J=t.drawMonth-Y,te=t.drawYear;if(0>J&&(J+=12,te--),Q)for(e=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-U[0]*U[1]+1,Q.getDate())),e=Z&&Z>e?Z:e;this._daylightSavingAdjust(new Date(te,J,1))>e;)J--,0>J&&(J=11,te--);for(t.drawMonth=J,t.drawYear=te,n=this._get(t,"prevText"),n=B?this.formatDate(n,this._daylightSavingAdjust(new Date(te,J-X,1)),this._getFormatConfig(t)):n,i=this._canAdjustMonth(t,-1,te,J)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(j?"e":"w")+"'>"+n+"</span></a>":V?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(j?"e":"w")+"'>"+n+"</span></a>",r=this._get(t,"nextText"),r=B?this.formatDate(r,this._daylightSavingAdjust(new Date(te,J+X,1)),this._getFormatConfig(t)):r,a=this._canAdjustMonth(t,1,te,J)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+r+"'><span class='ui-icon ui-icon-circle-triangle-"+(j?"w":"e")+"'>"+r+"</span></a>":V?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+r+"'><span class='ui-icon ui-icon-circle-triangle-"+(j?"w":"e")+"'>"+r+"</span></a>",o=this._get(t,"currentText"),s=this._get(t,"gotoCurrent")&&t.currentDay?G:W,o=B?this.formatDate(o,s,this._getFormatConfig(t)):o,l=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",u=q?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(j?l:"")+(this._isInRange(t,s)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+o+"</button>":"")+(j?"":l)+"</div>":"",c=parseInt(this._get(t,"firstDay"),10),c=isNaN(c)?0:c,d=this._get(t,"showWeek"),h=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),y=this._get(t,"selectOtherMonths"),b=this._getDefaultDate(t),x="",k=0;k<U[0];k++){for($="",this.maxRows=4,_=0;_<U[1];_++){if(C=this._daylightSavingAdjust(new Date(te,J,t.selectedDay)),M=" ui-corner-all",D="",K){if(D+="<div class='ui-datepicker-group",U[1]>1)switch(_){case 0:D+=" ui-datepicker-group-first",M=" ui-corner-"+(j?"right":"left");break;case U[1]-1:D+=" ui-datepicker-group-last",M=" ui-corner-"+(j?"left":"right");break;default:D+=" ui-datepicker-group-middle",M=""}D+="'>"}for(D+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+M+"'>"+(/all|left/.test(M)&&0===k?j?a:i:"")+(/all|right/.test(M)&&0===k?j?i:a:"")+this._generateMonthYearHeader(t,J,te,Z,Q,k>0||_>0,f,g)+"</div><table class='ui-datepicker-calendar'><thead><tr>",S=d?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",w=0;7>w;w++)A=(w+c)%7,S+="<th scope='col'"+((w+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+h[A]+"'>"+p[A]+"</span></th>";for(D+=S+"</tr></thead><tbody>",T=this._getDaysInMonth(te,J),te===t.selectedYear&&J===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,T)),E=(this._getFirstDayOfMonth(te,J)-c+7)%7,I=Math.ceil((E+T)/7),P=K&&this.maxRows>I?this.maxRows:I,this.maxRows=P,N=this._daylightSavingAdjust(new Date(te,J,1-E)),O=0;P>O;O++){for(D+="<tr>",z=d?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(N)+"</td>":"",w=0;7>w;w++)H=m?m.apply(t.input?t.input[0]:null,[N]):[!0,""],L=N.getMonth()!==J,F=L&&!y||!H[0]||Z&&Z>N||Q&&N>Q,z+="<td class='"+((w+c+6)%7>=5?" ui-datepicker-week-end":"")+(L?" ui-datepicker-other-month":"")+(N.getTime()===C.getTime()&&J===t.selectedMonth&&t._keyEvent||b.getTime()===N.getTime()&&b.getTime()===C.getTime()?" "+this._dayOverClass:"")+(F?" "+this._unselectableClass+" ui-state-disabled":"")+(L&&!v?"":" "+H[1]+(N.getTime()===G.getTime()?" "+this._currentClass:"")+(N.getTime()===W.getTime()?" ui-datepicker-today":""))+"'"+(L&&!v||!H[2]?"":" title='"+H[2].replace(/'/g,"&#39;")+"'")+(F?"":" data-handler='selectDay' data-event='click' data-month='"+N.getMonth()+"' data-year='"+N.getFullYear()+"'")+">"+(L&&!v?"&#xa0;":F?"<span class='ui-state-default'>"+N.getDate()+"</span>":"<a class='ui-state-default"+(N.getTime()===W.getTime()?" ui-state-highlight":"")+(N.getTime()===G.getTime()?" ui-state-active":"")+(L?" ui-priority-secondary":"")+"' href='#'>"+N.getDate()+"</a>")+"</td>",N.setDate(N.getDate()+1),N=this._daylightSavingAdjust(N);D+=z+"</tr>"}J++,J>11&&(J=0,te++),D+="</tbody></table>"+(K?"</div>"+(U[0]>0&&_===U[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),$+=D}x+=$}return x+=u,t._keyEvent=!1,x},_generateMonthYearHeader:function(t,e,n,i,r,a,o,s){var l,u,c,d,h,p,f,g,m=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),y=this._get(t,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",x="";if(a||!m)x+="<span class='ui-datepicker-month'>"+o[e]+"</span>";else{for(l=i&&i.getFullYear()===n,u=r&&r.getFullYear()===n,x+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;12>c;c++)(!l||c>=i.getMonth())&&(!u||c<=r.getMonth())&&(x+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+s[c]+"</option>");x+="</select>"}if(y||(b+=x+(!a&&m&&v?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",a||!v)b+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(d=this._get(t,"yearRange").split(":"),h=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-].*/)?n+parseInt(t.substring(1),10):t.match(/[+\-].*/)?h+parseInt(t,10):parseInt(t,10);return isNaN(e)?h:e},f=p(d[0]),g=Math.max(f,p(d[1]||"")),f=i?Math.max(f,i.getFullYear()):f,g=r?Math.min(g,r.getFullYear()):g,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";g>=f;f++)t.yearshtml+="<option value='"+f+"'"+(f===n?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),y&&(b+=(!a&&m&&v?"":"&#xa0;")+x),b+="</div>"},_adjustInstDate:function(t,e,n){var i=t.drawYear+("Y"===n?e:0),r=t.drawMonth+("M"===n?e:0),a=Math.min(t.selectedDay,this._getDaysInMonth(i,r))+("D"===n?e:0),o=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(i,r,a)));t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),("M"===n||"Y"===n)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var n=this._getMinMaxDate(t,"min"),i=this._getMinMaxDate(t,"max"),r=n&&n>e?n:e;return i&&r>i?i:r},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,n,i){var r=this._getNumberOfMonths(t),a=this._daylightSavingAdjust(new Date(n,i+(0>e?e:r[0]*r[1]),1));return 0>e&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(t,a)},_isInRange:function(t,e){var n,i,r=this._getMinMaxDate(t,"min"),a=this._getMinMaxDate(t,"max"),o=null,s=null,l=this._get(t,"yearRange");return l&&(n=l.split(":"),i=(new Date).getFullYear(),o=parseInt(n[0],10),s=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(o+=i),n[1].match(/[+\-].*/)&&(s+=i)),(!r||e.getTime()>=r.getTime())&&(!a||e.getTime()<=a.getTime())&&(!o||e.getFullYear()>=o)&&(!s||e.getFullYear()<=s)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,n,i){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var r=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(i,n,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));
return this.formatDate(this._get(t,"dateFormat"),r,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var n=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(n)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(n)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(n))},t.datepicker=new r,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.11.4";t.datepicker;/*!
 * jQuery UI Draggable 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/draggable/
 */
t.widget("ui.draggable",t.ui.mouse,{version:"1.11.4",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(e){var n=this.options;return this._blurActiveElement(e),this.helper||n.disabled||t(e.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(e),this.handle?(this._blockFrames(n.iframeFix===!0?"iframe":n.iframeFix),!0):!1)},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var n=this.document[0];if(this.handleElement.is(e.target))try{n.activeElement&&"body"!==n.activeElement.nodeName.toLowerCase()&&t(n.activeElement).blur()}catch(i){}},_mouseStart:function(e){var n=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._normalizeRightBottom(),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var i=this._uiHash();if(this._trigger("drag",e,i)===!1)return this._mouseUp({}),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var n=this,i=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(i=t.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){n._trigger("stop",e)!==!1&&n._clear()}):this._trigger("stop",e)!==!1&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.focus(),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(e){var n=this.options,i=t.isFunction(n.helper),r=i?t(n.helper.apply(this.element[0],[e])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return r.parents("body").length||r.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),i&&r[0]===this.element[0]&&this._setPositionRelative(),r[0]===this.element[0]||/(fixed|absolute)/.test(r.css("position"))||r.css("position","absolute"),r},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,i,r=this.options,a=this.document[0];return this.relativeContainer=null,r.containment?"window"===r.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===r.containment?void(this.containment=[0,0,t(a).width()-this.helperProportions.width-this.margins.left,(t(a).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):r.containment.constructor===Array?void(this.containment=r.containment):("parent"===r.containment&&(r.containment=this.helper[0].parentNode),n=t(r.containment),i=n[0],void(i&&(e=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n))):void(this.containment=null)},_convertPositionTo:function(t,e){e||(e=this.position);var n="absolute"===t?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*n,left:e.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*n}},_generatePosition:function(t,e){var n,i,r,a,o=this.options,s=this._isRootNode(this.scrollParent[0]),l=t.pageX,u=t.pageY;return s&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),n=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):n=this.containment,t.pageX-this.offset.click.left<n[0]&&(l=n[0]+this.offset.click.left),t.pageY-this.offset.click.top<n[1]&&(u=n[1]+this.offset.click.top),t.pageX-this.offset.click.left>n[2]&&(l=n[2]+this.offset.click.left),t.pageY-this.offset.click.top>n[3]&&(u=n[3]+this.offset.click.top)),o.grid&&(r=o.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,u=n?r-this.offset.click.top>=n[1]||r-this.offset.click.top>n[3]?r:r-this.offset.click.top>=n[1]?r-o.grid[1]:r+o.grid[1]:r,a=o.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,l=n?a-this.offset.click.left>=n[0]||a-this.offset.click.left>n[2]?a:a-this.offset.click.left>=n[0]?a-o.grid[0]:a+o.grid[0]:a),"y"===o.axis&&(l=this.originalPageX),"x"===o.axis&&(u=this.originalPageY)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_normalizeRightBottom:function(){"y"!==this.options.axis&&"auto"!==this.helper.css("right")&&(this.helper.width(this.helper.width()),this.helper.css("right","auto")),"x"!==this.options.axis&&"auto"!==this.helper.css("bottom")&&(this.helper.height(this.helper.height()),this.helper.css("bottom","auto"))},_trigger:function(e,n,i){return i=i||this._uiHash(),t.ui.plugin.call(this,e,[n,i,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,n,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,n,i){var r=t.extend({},n,{item:i.element});i.sortables=[],t(i.options.connectToSortable).each(function(){var n=t(this).sortable("instance");n&&!n.options.disabled&&(i.sortables.push(n),n.refreshPositions(),n._trigger("activate",e,r))})},stop:function(e,n,i){var r=t.extend({},n,{item:i.element});i.cancelHelperRemoval=!1,t.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,r))})},drag:function(e,n,i){t.each(i.sortables,function(){var r=!1,a=this;a.positionAbs=i.positionAbs,a.helperProportions=i.helperProportions,a.offset.click=i.offset.click,a._intersectsWith(a.containerCache)&&(r=!0,t.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==a&&this._intersectsWith(this.containerCache)&&t.contains(a.element[0],this.element[0])&&(r=!1),r})),r?(a.isOver||(a.isOver=1,i._parent=n.helper.parent(),a.currentItem=n.helper.appendTo(a.element).data("ui-sortable-item",!0),a.options._helper=a.options.helper,a.options.helper=function(){return n.helper[0]},e.target=a.currentItem[0],a._mouseCapture(e,!0),a._mouseStart(e,!0,!0),a.offset.click.top=i.offset.click.top,a.offset.click.left=i.offset.click.left,a.offset.parent.left-=i.offset.parent.left-a.offset.parent.left,a.offset.parent.top-=i.offset.parent.top-a.offset.parent.top,i._trigger("toSortable",e),i.dropped=a.element,t.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,a.fromOutside=i),a.currentItem&&(a._mouseDrag(e),n.position=a.position)):a.isOver&&(a.isOver=0,a.cancelHelperRemoval=!0,a.options._revert=a.options.revert,a.options.revert=!1,a._trigger("out",e,a._uiHash(a)),a._mouseStop(e,!0),a.options.revert=a.options._revert,a.options.helper=a.options._helper,a.placeholder&&a.placeholder.remove(),n.helper.appendTo(i._parent),i._refreshOffsets(e),n.position=i._generatePosition(e,!0),i._trigger("fromSortable",e),i.dropped=!1,t.each(i.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,n,i){var r=t("body"),a=i.options;r.css("cursor")&&(a._cursor=r.css("cursor")),r.css("cursor",a.cursor)},stop:function(e,n,i){var r=i.options;r._cursor&&t("body").css("cursor",r._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,n,i){var r=t(n.helper),a=i.options;r.css("opacity")&&(a._opacity=r.css("opacity")),r.css("opacity",a.opacity)},stop:function(e,n,i){var r=i.options;r._opacity&&t(n.helper).css("opacity",r._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(e,n,i){var r=i.options,a=!1,o=i.scrollParentNotHidden[0],s=i.document[0];o!==s&&"HTML"!==o.tagName?(r.axis&&"x"===r.axis||(i.overflowOffset.top+o.offsetHeight-e.pageY<r.scrollSensitivity?o.scrollTop=a=o.scrollTop+r.scrollSpeed:e.pageY-i.overflowOffset.top<r.scrollSensitivity&&(o.scrollTop=a=o.scrollTop-r.scrollSpeed)),r.axis&&"y"===r.axis||(i.overflowOffset.left+o.offsetWidth-e.pageX<r.scrollSensitivity?o.scrollLeft=a=o.scrollLeft+r.scrollSpeed:e.pageX-i.overflowOffset.left<r.scrollSensitivity&&(o.scrollLeft=a=o.scrollLeft-r.scrollSpeed))):(r.axis&&"x"===r.axis||(e.pageY-t(s).scrollTop()<r.scrollSensitivity?a=t(s).scrollTop(t(s).scrollTop()-r.scrollSpeed):t(window).height()-(e.pageY-t(s).scrollTop())<r.scrollSensitivity&&(a=t(s).scrollTop(t(s).scrollTop()+r.scrollSpeed))),r.axis&&"y"===r.axis||(e.pageX-t(s).scrollLeft()<r.scrollSensitivity?a=t(s).scrollLeft(t(s).scrollLeft()-r.scrollSpeed):t(window).width()-(e.pageX-t(s).scrollLeft())<r.scrollSensitivity&&(a=t(s).scrollLeft(t(s).scrollLeft()+r.scrollSpeed)))),a!==!1&&t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,n,i){var r=i.options;i.snapElements=[],t(r.snap.constructor!==String?r.snap.items||":data(ui-draggable)":r.snap).each(function(){var e=t(this),n=e.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:n.top,left:n.left})})},drag:function(e,n,i){var r,a,o,s,l,u,c,d,h,p,f=i.options,g=f.snapTolerance,m=n.offset.left,v=m+i.helperProportions.width,y=n.offset.top,b=y+i.helperProportions.height;for(h=i.snapElements.length-1;h>=0;h--)l=i.snapElements[h].left-i.margins.left,u=l+i.snapElements[h].width,c=i.snapElements[h].top-i.margins.top,d=c+i.snapElements[h].height,l-g>v||m>u+g||c-g>b||y>d+g||!t.contains(i.snapElements[h].item.ownerDocument,i.snapElements[h].item)?(i.snapElements[h].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[h].item})),i.snapElements[h].snapping=!1):("inner"!==f.snapMode&&(r=Math.abs(c-b)<=g,a=Math.abs(d-y)<=g,o=Math.abs(l-v)<=g,s=Math.abs(u-m)<=g,r&&(n.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),a&&(n.position.top=i._convertPositionTo("relative",{top:d,left:0}).top),o&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:u}).left)),p=r||a||o||s,"outer"!==f.snapMode&&(r=Math.abs(c-y)<=g,a=Math.abs(d-b)<=g,o=Math.abs(l-m)<=g,s=Math.abs(u-v)<=g,r&&(n.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),a&&(n.position.top=i._convertPositionTo("relative",{top:d-i.helperProportions.height,left:0}).top),o&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:u-i.helperProportions.width}).left)),!i.snapElements[h].snapping&&(r||a||o||s||p)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[h].item})),i.snapElements[h].snapping=r||a||o||s||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,n,i){var r,a=i.options,o=t.makeArray(t(a.stack)).sort(function(e,n){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(n).css("zIndex"),10)||0)});o.length&&(r=parseInt(t(o[0]).css("zIndex"),10)||0,t(o).each(function(e){t(this).css("zIndex",r+e)}),this.css("zIndex",r+o.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,n,i){var r=t(n.helper),a=i.options;r.css("zIndex")&&(a._zIndex=r.css("zIndex")),r.css("zIndex",a.zIndex)},stop:function(e,n,i){var r=i.options;r._zIndex&&t(n.helper).css("zIndex",r._zIndex)}});t.ui.draggable;/*!
 * jQuery UI Resizable 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/resizable/
 */
t.widget("ui.resizable",t.ui.mouse,{version:"1.11.4",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseInt(t,10)||0},_isNumber:function(t){return!isNaN(parseInt(t,10))},_hasScroll:function(e,n){if("hidden"===t(e).css("overflow"))return!1;var i=n&&"left"===n?"scrollLeft":"scrollTop",r=!1;return e[i]>0?!0:(e[i]=1,r=e[i]>0,e[i]=0,r)},_create:function(){var e,n,i,r,a,o=this,s=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!s.aspectRatio,aspectRatio:s.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:s.helper||s.ghost||s.animate?s.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=s.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},n=0;n<e.length;n++)i=t.trim(e[n]),a="ui-resizable-"+i,r=t("<div class='ui-resizable-handle "+a+"'></div>"),r.css({zIndex:s.zIndex}),"se"===i&&r.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[i]=".ui-resizable-"+i,this.element.append(r);this._renderAxis=function(e){var n,i,r,a;e=e||this.element;for(n in this.handles)this.handles[n].constructor===String?this.handles[n]=this.element.children(this.handles[n]).first().show():(this.handles[n].jquery||this.handles[n].nodeType)&&(this.handles[n]=t(this.handles[n]),this._on(this.handles[n],{mousedown:o._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=t(this.handles[n],this.element),a=/sw|ne|nw|se|n|s/.test(n)?i.outerHeight():i.outerWidth(),r=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join(""),e.css(r,a),this._proportionallyResize()),this._handles=this._handles.add(this.handles[n])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.mouseover(function(){o.resizing||(this.className&&(r=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=r&&r[1]?r[1]:"se")}),s.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter(function(){s.disabled||(t(this).removeClass("ui-resizable-autohide"),o._handles.show())}).mouseleave(function(){s.disabled||o.resizing||(t(this).addClass("ui-resizable-autohide"),o._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,n=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(n(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),n(this.originalElement),this},_mouseCapture:function(e){var n,i,r=!1;for(n in this.handles)i=t(this.handles[n])[0],(i===e.target||t.contains(i,e.target))&&(r=!0);return!this.options.disabled&&r},_mouseStart:function(e){var n,i,r,a=this.options,o=this.element;return this.resizing=!0,this._renderProxy(),n=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),a.containment&&(n+=t(a.containment).scrollLeft()||0,i+=t(a.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalPosition={left:n,top:i},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof a.aspectRatio?a.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===r?this.axis+"-resize":r),o.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var n,i,r=this.originalMousePosition,a=this.axis,o=e.pageX-r.left||0,s=e.pageY-r.top||0,l=this._change[a];return this._updatePrevProperties(),l?(n=l.apply(this,[e,o,s]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(n=this._updateRatio(n,e)),n=this._respectSize(n,e),this._updateCache(n),this._propagate("resize",e),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1):!1},_mouseStop:function(e){this.resizing=!1;var n,i,r,a,o,s,l,u=this.options,c=this;return this._helper&&(n=this._proportionallyResizeElements,i=n.length&&/textarea/i.test(n[0].nodeName),r=i&&this._hasScroll(n[0],"left")?0:c.sizeDiff.height,a=i?0:c.sizeDiff.width,o={width:c.helper.width()-a,height:c.helper.height()-r},s=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null,l=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null,u.animate||this.element.css(t.extend(o,{top:l,left:s})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!u.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,n,i,r,a,o=this.options;a={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:1/0,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||t)&&(e=a.minHeight*this.aspectRatio,i=a.minWidth/this.aspectRatio,n=a.maxHeight*this.aspectRatio,r=a.maxWidth/this.aspectRatio,e>a.minWidth&&(a.minWidth=e),i>a.minHeight&&(a.minHeight=i),n<a.maxWidth&&(a.maxWidth=n),r<a.maxHeight&&(a.maxHeight=r)),this._vBoundaries=a},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,n=this.size,i=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===i&&(t.left=e.left+(n.width-t.width),t.top=null),"nw"===i&&(t.top=e.top+(n.height-t.height),t.left=e.left+(n.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,n=this.axis,i=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,r=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,a=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,o=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,s=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,u=/sw|nw|w/.test(n),c=/nw|ne|n/.test(n);return a&&(t.width=e.minWidth),o&&(t.height=e.minHeight),i&&(t.width=e.maxWidth),r&&(t.height=e.maxHeight),a&&u&&(t.left=s-e.minWidth),i&&u&&(t.left=s-e.maxWidth),o&&c&&(t.top=l-e.minHeight),r&&c&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,n=[],i=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],r=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];4>e;e++)n[e]=parseInt(i[e],10)||0,n[e]+=parseInt(r[e],10)||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,n=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,n=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var n=this.originalSize,i=this.originalPosition;return{left:i.left+e,width:n.width-e}},n:function(t,e,n){var i=this.originalSize,r=this.originalPosition;return{top:r.top+n,height:i.height-n}},s:function(t,e,n){return{height:this.originalSize.height+n}},se:function(e,n,i){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,n,i]))},sw:function(e,n,i){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,n,i]))},ne:function(e,n,i){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,n,i]))},nw:function(e,n,i){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,n,i]))}},_propagate:function(e,n){t.ui.plugin.call(this,e,[n,this.ui()]),"resize"!==e&&this._trigger(e,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var n=t(this).resizable("instance"),i=n.options,r=n._proportionallyResizeElements,a=r.length&&/textarea/i.test(r[0].nodeName),o=a&&n._hasScroll(r[0],"left")?0:n.sizeDiff.height,s=a?0:n.sizeDiff.width,l={width:n.size.width-s,height:n.size.height-o},u=parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left)||null,c=parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top)||null;n.element.animate(t.extend(l,c&&u?{top:c,left:u}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var i={width:parseInt(n.element.css("width"),10),height:parseInt(n.element.css("height"),10),top:parseInt(n.element.css("top"),10),left:parseInt(n.element.css("left"),10)};r&&r.length&&t(r[0]).css({width:i.width,height:i.height}),n._updateCache(i),n._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,n,i,r,a,o,s,l=t(this).resizable("instance"),u=l.options,c=l.element,d=u.containment,h=d instanceof t?d.get(0):/parent/.test(d)?c.parent().get(0):d;h&&(l.containerElement=t(h),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(h),n=[],t(["Top","Right","Left","Bottom"]).each(function(t,i){n[t]=l._num(e.css("padding"+i))}),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-n[3],width:e.innerWidth()-n[1]},i=l.containerOffset,r=l.containerSize.height,a=l.containerSize.width,o=l._hasScroll(h,"left")?h.scrollWidth:a,s=l._hasScroll(h)?h.scrollHeight:r,l.parentData={element:h,left:i.left,top:i.top,width:o,height:s}))},resize:function(e){var n,i,r,a,o=t(this).resizable("instance"),s=o.options,l=o.containerOffset,u=o.position,c=o._aspectRatio||e.shiftKey,d={top:0,left:0},h=o.containerElement,p=!0;h[0]!==document&&/static/.test(h.css("position"))&&(d=l),u.left<(o._helper?l.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-l.left:o.position.left-d.left),c&&(o.size.height=o.size.width/o.aspectRatio,p=!1),o.position.left=s.helper?l.left:0),u.top<(o._helper?l.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-l.top:o.position.top),c&&(o.size.width=o.size.height*o.aspectRatio,p=!1),o.position.top=o._helper?l.top:0),r=o.containerElement.get(0)===o.element.parent().get(0),a=/relative|absolute/.test(o.containerElement.css("position")),r&&a?(o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.offset.top=o.element.offset().top),n=Math.abs(o.sizeDiff.width+(o._helper?o.offset.left-d.left:o.offset.left-l.left)),i=Math.abs(o.sizeDiff.height+(o._helper?o.offset.top-d.top:o.offset.top-l.top)),n+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-n,c&&(o.size.height=o.size.width/o.aspectRatio,p=!1)),i+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-i,c&&(o.size.width=o.size.height*o.aspectRatio,p=!1)),p||(o.position.left=o.prevPosition.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.height=o.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),n=e.options,i=e.containerOffset,r=e.containerPosition,a=e.containerElement,o=t(e.helper),s=o.offset(),l=o.outerWidth()-e.sizeDiff.width,u=o.outerHeight()-e.sizeDiff.height;e._helper&&!n.animate&&/relative/.test(a.css("position"))&&t(this).css({left:s.left-r.left-i.left,width:l,height:u}),e._helper&&!n.animate&&/static/.test(a.css("position"))&&t(this).css({left:s.left-r.left-i.left,width:l,height:u})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),n=e.options;t(n.alsoResize).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})},resize:function(e,n){var i=t(this).resizable("instance"),r=i.options,a=i.originalSize,o=i.originalPosition,s={height:i.size.height-a.height||0,width:i.size.width-a.width||0,top:i.position.top-o.top||0,left:i.position.left-o.left||0};t(r.alsoResize).each(function(){var e=t(this),i=t(this).data("ui-resizable-alsoresize"),r={},a=e.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(a,function(t,e){var n=(i[e]||0)+(s[e]||0);n&&n>=0&&(r[e]=n||null)}),e.css(r)})},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),n=e.options,i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof n.ghost?n.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,n=t(this).resizable("instance"),i=n.options,r=n.size,a=n.originalSize,o=n.originalPosition,s=n.axis,l="number"==typeof i.grid?[i.grid,i.grid]:i.grid,u=l[0]||1,c=l[1]||1,d=Math.round((r.width-a.width)/u)*u,h=Math.round((r.height-a.height)/c)*c,p=a.width+d,f=a.height+h,g=i.maxWidth&&i.maxWidth<p,m=i.maxHeight&&i.maxHeight<f,v=i.minWidth&&i.minWidth>p,y=i.minHeight&&i.minHeight>f;i.grid=l,v&&(p+=u),y&&(f+=c),g&&(p-=u),m&&(f-=c),/^(se|s|e)$/.test(s)?(n.size.width=p,n.size.height=f):/^(ne)$/.test(s)?(n.size.width=p,n.size.height=f,n.position.top=o.top-h):/^(sw)$/.test(s)?(n.size.width=p,n.size.height=f,n.position.left=o.left-d):((0>=f-c||0>=p-u)&&(e=n._getPaddingPlusBorderDimensions(this)),f-c>0?(n.size.height=f,n.position.top=o.top-h):(f=c-e.height,n.size.height=f,n.position.top=o.top+a.height-f),p-u>0?(n.size.width=p,n.position.left=o.left-d):(p=u-e.width,n.size.width=p,n.position.left=o.left+a.width-p))}});t.ui.resizable,t.widget("ui.dialog",{version:"1.11.4",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"Close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var n=t(this).css(e).offset().top;0>n&&t(this).css("top",e.top-n)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),t=e.parent.children().eq(e.index),t.length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var n,i=this;if(this._isOpen&&this._trigger("beforeClose",e)!==!1){if(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),!this.opener.filter(":focusable").focus().length)try{n=this.document[0].activeElement,n&&"body"!==n.nodeName.toLowerCase()&&t(n).blur()}catch(r){}this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)})}},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,n){var i=!1,r=this.uiDialog.siblings(".ui-front:visible").map(function(){return+t(this).css("z-index")}).get(),a=Math.max.apply(null,r);return a>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",a+1),i=!0),i&&!n&&this._trigger("focus",e),i},open:function(){var e=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=t(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).focus()},_keepFocus:function(e){function n(){var e=this.document[0].activeElement,n=this.uiDialog[0]===e||t.contains(this.uiDialog[0],e);n||this._focusTabbable()}e.preventDefault(),n.call(this),this._delay(n)},_createWrapper:function(){this.uiDialog=t("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var n=this.uiDialog.find(":tabbable"),i=n.filter(":first"),r=n.filter(":last");e.target!==r[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==i[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(function(){r.focus()}),e.preventDefault()):(this._delay(function(){i.focus()}),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(e),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title||t.html("&#160;"),t.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var e=this,n=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(n)||t.isArray(n)&&!n.length?void this.uiDialog.removeClass("ui-dialog-buttons"):(t.each(n,function(n,i){var r,a;i=t.isFunction(i)?{click:i,text:n}:i,i=t.extend({type:"button"},i),r=i.click,i.click=function(){r.apply(e.element[0],arguments)},a={icons:i.icons,text:i.showText},delete i.icons,delete i.showText,t("<button></button>",i).button(a).appendTo(e.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var n=this,i=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(i,r){t(this).addClass("ui-dialog-dragging"),n._blockFrames(),n._trigger("dragStart",i,e(r))},drag:function(t,i){n._trigger("drag",t,e(i))},stop:function(r,a){var o=a.offset.left-n.document.scrollLeft(),s=a.offset.top-n.document.scrollTop();i.position={my:"left top",at:"left"+(o>=0?"+":"")+o+" top"+(s>=0?"+":"")+s,of:n.window},t(this).removeClass("ui-dialog-dragging"),n._unblockFrames(),n._trigger("dragStop",r,e(a))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var n=this,i=this.options,r=i.resizable,a=this.uiDialog.css("position"),o="string"==typeof r?r:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:this._minHeight(),handles:o,start:function(i,r){t(this).addClass("ui-dialog-resizing"),n._blockFrames(),n._trigger("resizeStart",i,e(r))},resize:function(t,i){n._trigger("resize",t,e(i))},stop:function(r,a){var o=n.uiDialog.offset(),s=o.left-n.document.scrollLeft(),l=o.top-n.document.scrollTop();i.height=n.uiDialog.height(),i.width=n.uiDialog.width(),i.position={my:"left top",at:"left"+(s>=0?"+":"")+s+" top"+(l>=0?"+":"")+l,of:n.window},t(this).removeClass("ui-dialog-resizing"),n._unblockFrames(),n._trigger("resizeStop",r,e(a))}}).css("position",a)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),n=t.inArray(this,e);-1!==n&&e.splice(n,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var n=this,i=!1,r={};t.each(e,function(t,e){n._setOption(t,e),t in n.sizeRelatedOptions&&(i=!0),t in n.resizableRelatedOptions&&(r[t]=e)}),i&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",r)},_setOption:function(t,e){var n,i,r=this.uiDialog;"dialogClass"===t&&r.removeClass(this.options.dialogClass).addClass(e),"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:""+e}),"draggable"===t&&(n=r.is(":data(ui-draggable)"),n&&!e&&r.draggable("destroy"),!n&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&(i=r.is(":data(ui-resizable)"),i&&!e&&r.resizable("destroy"),i&&"string"==typeof e&&r.resizable("option","handles",e),i||e===!1||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,n,i=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),i.minWidth>i.width&&(i.width=i.minWidth),t=this.uiDialog.css({height:"auto",width:i.width}).outerHeight(),e=Math.max(0,i.minHeight-t),n="number"==typeof i.maxHeight?Math.max(0,i.maxHeight-t):"none","auto"===i.height?this.element.css({minHeight:e,maxHeight:n,height:"auto"}):this.element.height(Math.max(0,i.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return t(e.target).closest(".ui-dialog").length?!0:!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=t("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("ui-dialog-overlays")-1;t?this.document.data("ui-dialog-overlays",t):this.document.unbind("focusin").removeData("ui-dialog-overlays"),this.overlay.remove(),this.overlay=null}}});/*!
 * jQuery UI Droppable 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/droppable/
 */
t.widget("ui.droppable",{version:"1.11.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,n=this.options,i=n.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(i)?i:function(t){return t.is(i)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e?e:e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(n.scope),n.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e),this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,n){if("accept"===e)this.accept=t.isFunction(n)?n:function(t){return t.is(n)};else if("scope"===e){var i=t.ui.ddmanager.droppables[this.options.scope];this._splice(i),this._addToManager(n)}this._super(e,n)},_activate:function(e){var n=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),n&&this._trigger("activate",e,this.ui(n))},_deactivate:function(e){var n=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),n&&this._trigger("deactivate",e,this.ui(n))},_over:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(n)))},_out:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(n)))},_drop:function(e,n){var i=n||t.ui.ddmanager.current,r=!1;return i&&(i.currentItem||i.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var n=t(this).droppable("instance");return n.options.greedy&&!n.options.disabled&&n.options.scope===i.options.scope&&n.accept.call(n.element[0],i.currentItem||i.element)&&t.ui.intersect(i,t.extend(n,{offset:n.element.offset()}),n.options.tolerance,e)?(r=!0,!1):void 0}),r?!1:this.accept.call(this.element[0],i.currentItem||i.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(i)),this.element):!1):!1},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(){function t(t,e,n){return t>=e&&e+n>t}return function(e,n,i,r){if(!n.offset)return!1;var a=(e.positionAbs||e.position.absolute).left+e.margins.left,o=(e.positionAbs||e.position.absolute).top+e.margins.top,s=a+e.helperProportions.width,l=o+e.helperProportions.height,u=n.offset.left,c=n.offset.top,d=u+n.proportions().width,h=c+n.proportions().height;switch(i){case"fit":return a>=u&&d>=s&&o>=c&&h>=l;case"intersect":return u<a+e.helperProportions.width/2&&s-e.helperProportions.width/2<d&&c<o+e.helperProportions.height/2&&l-e.helperProportions.height/2<h;case"pointer":return t(r.pageY,c,n.proportions().height)&&t(r.pageX,u,n.proportions().width);case"touch":return(o>=c&&h>=o||l>=c&&h>=l||c>o&&l>h)&&(a>=u&&d>=a||s>=u&&d>=s||u>a&&s>d);default:return!1}}}(),t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,n){var i,r,a=t.ui.ddmanager.droppables[e.options.scope]||[],o=n?n.type:null,s=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(i=0;i<a.length;i++)if(!(a[i].options.disabled||e&&!a[i].accept.call(a[i].element[0],e.currentItem||e.element))){for(r=0;r<s.length;r++)if(s[r]===a[i].element[0]){a[i].proportions().height=0;continue t}a[i].visible="none"!==a[i].element.css("display"),a[i].visible&&("mousedown"===o&&a[i]._activate.call(a[i],n),a[i].offset=a[i].element.offset(),a[i].proportions({width:a[i].element[0].offsetWidth,height:a[i].element[0].offsetHeight}))}},drop:function(e,n){var i=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance,n)&&(i=this._drop.call(this,n)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,n)))}),i},dragStart:function(e,n){e.element.parentsUntil("body").bind("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)})},drag:function(e,n){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,n),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var i,r,a,o=t.ui.intersect(e,this,this.options.tolerance,n),s=!o&&this.isover?"isout":o&&!this.isover?"isover":null;s&&(this.options.greedy&&(r=this.options.scope,a=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===r}),a.length&&(i=t(a[0]).droppable("instance"),i.greedyChild="isover"===s)),i&&"isover"===s&&(i.isover=!1,i.isout=!0,i._out.call(i,n)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,n),i&&"isout"===s&&(i.isout=!1,i.isover=!0,i._over.call(i,n)))}})},dragStop:function(e,n){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)}};var y=(t.ui.droppable,"ui-effects-"),b=t;t.effects={effect:{}},/*!
 * jQuery Color Animations v2.1.2
 * https://github.com/jquery/jquery-color
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * Date: Wed Jan 16 08:47:09 2013 -0600
 */
function(t,e){function n(t,e,n){var i=d[e.type]||{};return null==t?n||!e.def?null:e.def:(t=i.floor?~~t:parseFloat(t),isNaN(t)?e.def:i.mod?(t+i.mod)%i.mod:0>t?0:i.max<t?i.max:t)}function i(e){var n=u(),i=n._rgba=[];return e=e.toLowerCase(),f(l,function(t,r){var a,o=r.re.exec(e),s=o&&r.parse(o),l=r.space||"rgba";return s?(a=n[l](s),n[c[l].cache]=a[c[l].cache],i=n._rgba=a._rgba,!1):void 0}),i.length?("0,0,0,0"===i.join()&&t.extend(i,a.transparent),n):a[e]}function r(t,e,n){return n=(n+1)%1,1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}var a,o="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",s=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],u=t.Color=function(e,n,i,r){return new t.Color.fn.parse(e,n,i,r)},c={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},d={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},h=u.support={},p=t("<p>")[0],f=t.each;p.style.cssText="background-color:rgba(1,1,1,.5)",h.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),u.fn=t.extend(u.prototype,{parse:function(r,o,s,l){if(r===e)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&&(r=t(r).css(o),o=e);var d=this,h=t.type(r),p=this._rgba=[];return o!==e&&(r=[r,o,s,l],h="array"),"string"===h?this.parse(i(r)||a._default):"array"===h?(f(c.rgba.props,function(t,e){p[e.idx]=n(r[e.idx],e)}),this):"object"===h?(r instanceof u?f(c,function(t,e){r[e.cache]&&(d[e.cache]=r[e.cache].slice())}):f(c,function(e,i){var a=i.cache;f(i.props,function(t,e){if(!d[a]&&i.to){if("alpha"===t||null==r[t])return;d[a]=i.to(d._rgba)}d[a][e.idx]=n(r[t],e,!0)}),d[a]&&t.inArray(null,d[a].slice(0,3))<0&&(d[a][3]=1,i.from&&(d._rgba=i.from(d[a])))}),this):void 0},is:function(t){var e=u(t),n=!0,i=this;return f(c,function(t,r){var a,o=e[r.cache];return o&&(a=i[r.cache]||r.to&&r.to(i._rgba)||[],f(r.props,function(t,e){return null!=o[e.idx]?n=o[e.idx]===a[e.idx]:void 0})),n}),n},_space:function(){var t=[],e=this;return f(c,function(n,i){e[i.cache]&&t.push(n)}),t.pop()},transition:function(t,e){var i=u(t),r=i._space(),a=c[r],o=0===this.alpha()?u("transparent"):this,s=o[a.cache]||a.to(o._rgba),l=s.slice();return i=i[a.cache],f(a.props,function(t,r){var a=r.idx,o=s[a],u=i[a],c=d[r.type]||{};null!==u&&(null===o?l[a]=u:(c.mod&&(u-o>c.mod/2?o+=c.mod:o-u>c.mod/2&&(o-=c.mod)),l[a]=n((u-o)*e+o,r)))}),this[r](l)},blend:function(e){if(1===this._rgba[3])return this;var n=this._rgba.slice(),i=n.pop(),r=u(e)._rgba;return u(t.map(n,function(t,e){return(1-i)*r[e]+i*t}))},toRgbaString:function(){var e="rgba(",n=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===n[3]&&(n.pop(),e="rgb("),e+n.join()+")"},toHslaString:function(){var e="hsla(",n=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t});return 1===n[3]&&(n.pop(),e="hsl("),e+n.join()+")"},toHexString:function(e){var n=this._rgba.slice(),i=n.pop();return e&&n.push(~~(255*i)),"#"+t.map(n,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),u.fn.parse.prototype=u.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=t[3],s=Math.max(i,r,a),l=Math.min(i,r,a),u=s-l,c=s+l,d=.5*c;return e=l===s?0:i===s?60*(r-a)/u+360:r===s?60*(a-i)/u+120:60*(i-r)/u+240,n=0===u?0:.5>=d?u/c:u/(2-c),[Math.round(e)%360,n,d,null==o?1:o]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,n=t[1],i=t[2],a=t[3],o=.5>=i?i*(1+n):i+n-i*n,s=2*i-o;return[Math.round(255*r(s,o,e+1/3)),Math.round(255*r(s,o,e)),Math.round(255*r(s,o,e-1/3)),a]},f(c,function(i,r){var a=r.props,o=r.cache,l=r.to,c=r.from;u.fn[i]=function(i){if(l&&!this[o]&&(this[o]=l(this._rgba)),i===e)return this[o].slice();var r,s=t.type(i),d="array"===s||"object"===s?i:arguments,h=this[o].slice();return f(a,function(t,e){var i=d["object"===s?t:e.idx];null==i&&(i=h[e.idx]),h[e.idx]=n(i,e)}),c?(r=u(c(h)),r[o]=h,r):u(h)},f(a,function(e,n){u.fn[e]||(u.fn[e]=function(r){var a,o=t.type(r),l="alpha"===e?this._hsla?"hsla":"rgba":i,u=this[l](),c=u[n.idx];return"undefined"===o?c:("function"===o&&(r=r.call(this,c),o=t.type(r)),null==r&&n.empty?this:("string"===o&&(a=s.exec(r),a&&(r=c+parseFloat(a[2])*("+"===a[1]?1:-1))),u[n.idx]=r,this[l](u)))})})}),u.hook=function(e){var n=e.split(" ");f(n,function(e,n){t.cssHooks[n]={set:function(e,r){var a,o,s="";if("transparent"!==r&&("string"!==t.type(r)||(a=i(r)))){if(r=u(a||r),!h.rgba&&1!==r._rgba[3]){for(o="backgroundColor"===n?e.parentNode:e;(""===s||"transparent"===s)&&o&&o.style;)try{s=t.css(o,"backgroundColor"),o=o.parentNode}catch(l){}r=r.blend(s&&"transparent"!==s?s:"_default")}r=r.toRgbaString()}try{e.style[n]=r}catch(l){}}},t.fx.step[n]=function(e){e.colorInit||(e.start=u(e.elem,n),e.end=u(e.end),e.colorInit=!0),t.cssHooks[n].set(e.elem,e.start.transition(e.end,e.pos))}})},u.hook(o),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(n,i){e["border"+i+"Color"]=t}),e}},a=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(b),function(){function e(e){var n,i,r=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,a={};if(r&&r.length&&r[0]&&r[r[0]])for(i=r.length;i--;)n=r[i],"string"==typeof r[n]&&(a[t.camelCase(n)]=r[n]);else for(n in r)"string"==typeof r[n]&&(a[n]=r[n]);return a}function n(e,n){var i,a,o={};for(i in n)a=n[i],e[i]!==a&&(r[i]||(t.fx.step[i]||!isNaN(parseFloat(a)))&&(o[i]=a));return o}var i=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,n){t.fx.step[n]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(b.style(t.elem,n,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(r,a,o,s){var l=t.speed(a,o,s);return this.queue(function(){var a,o=t(this),s=o.attr("class")||"",u=l.children?o.find("*").addBack():o;u=u.map(function(){var n=t(this);return{el:n,start:e(this)}}),a=function(){t.each(i,function(t,e){r[e]&&o[e+"Class"](r[e])})},a(),u=u.map(function(){return this.end=e(this.el[0]),this.diff=n(this.start,this.end),this}),o.attr("class",s),u=u.map(function(){var e=this,n=t.Deferred(),i=t.extend({},l,{queue:!1,complete:function(){n.resolve(e)}});return this.el.animate(this.diff,i),n.promise()}),t.when.apply(t,u.get()).done(function(){a(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(o[0])})})},t.fn.extend({addClass:function(e){return function(n,i,r,a){return i?t.effects.animateClass.call(this,{add:n},i,r,a):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(n,i,r,a){return arguments.length>1?t.effects.animateClass.call(this,{remove:n},i,r,a):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(n,i,r,a,o){return"boolean"==typeof i||void 0===i?r?t.effects.animateClass.call(this,i?{add:n}:{remove:n},r,a,o):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:n},i,r,a)}}(t.fn.toggleClass),switchClass:function(e,n,i,r,a){return t.effects.animateClass.call(this,{add:n,remove:e},i,r,a)}})}(),function(){function e(e,n,i,r){return t.isPlainObject(e)&&(n=e,e=e.effect),e={effect:e},null==n&&(n={}),t.isFunction(n)&&(r=n,i=null,n={}),("number"==typeof n||t.fx.speeds[n])&&(r=i,i=n,n={}),t.isFunction(i)&&(r=i,i=null),n&&t.extend(e,n),i=i||n.duration,e.duration=t.fx.off?0:"number"==typeof i?i:i in t.fx.speeds?t.fx.speeds[i]:t.fx.speeds._default,e.complete=r||n.complete,e}function n(e){return!e||"number"==typeof e||t.fx.speeds[e]?!0:"string"!=typeof e||t.effects.effect[e]?t.isFunction(e)?!0:"object"!=typeof e||e.effect?!1:!0:!0}t.extend(t.effects,{version:"1.11.4",save:function(t,e){for(var n=0;n<e.length;n++)null!==e[n]&&t.data(y+e[n],t[0].style[e[n]])},restore:function(t,e){var n,i;for(i=0;i<e.length;i++)null!==e[i]&&(n=t.data(y+e[i]),void 0===n&&(n=""),t.css(e[i],n))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var n,i;switch(t[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=t[0]/e.height}switch(t[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=t[1]/e.width}return{x:i,y:n}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var n={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},i=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:e.width(),height:e.height()},a=document.activeElement;try{a.id}catch(o){a=document.body}return e.wrap(i),(e[0]===a||t.contains(e[0],a))&&t(a).focus(),i=e.parent(),"static"===e.css("position")?(i.css({position:"relative"}),e.css({position:"relative"})):(t.extend(n,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,i){n[i]=e.css(i),isNaN(parseInt(n[i],10))&&(n[i]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(r),i.css(n).show()},removeWrapper:function(e){var n=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===n||t.contains(e[0],n))&&t(n).focus()),e},setTransition:function(e,n,i,r){return r=r||{},t.each(n,function(t,n){var a=e.cssUnit(n);a[0]>0&&(r[n]=a[0]*i+a[1])}),r}}),t.fn.extend({effect:function(){function n(e){function n(){t.isFunction(a)&&a.call(r[0]),t.isFunction(e)&&e()}var r=t(this),a=i.complete,s=i.mode;(r.is(":hidden")?"hide"===s:"show"===s)?(r[s](),n()):o.call(r[0],i,n)}var i=e.apply(this,arguments),r=i.mode,a=i.queue,o=t.effects.effect[i.effect];return t.fx.off||!o?r?this[r](i.duration,i.complete):this.each(function(){i.complete&&i.complete.call(this)}):a===!1?this.each(n):this.queue(a||"fx",n)},show:function(t){return function(i){if(n(i))return t.apply(this,arguments);var r=e.apply(this,arguments);return r.mode="show",this.effect.call(this,r)}}(t.fn.show),hide:function(t){return function(i){if(n(i))return t.apply(this,arguments);var r=e.apply(this,arguments);return r.mode="hide",this.effect.call(this,r)}}(t.fn.hide),toggle:function(t){return function(i){if(n(i)||"boolean"==typeof i)return t.apply(this,arguments);var r=e.apply(this,arguments);return r.mode="toggle",this.effect.call(this,r)}}(t.fn.toggle),cssUnit:function(e){var n=this.css(e),i=[];return t.each(["em","px","%","pt"],function(t,e){n.indexOf(e)>0&&(i=[parseFloat(n),e])}),i}})}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,n){e[n]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,n){t.easing["easeIn"+e]=n,t.easing["easeOut"+e]=function(t){return 1-n(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?n(2*t)/2:1-n(-2*t+2)/2}})}();t.effects,t.effects.effect.blind=function(e,n){var i,r,a,o=t(this),s=/up|down|vertical/,l=/up|left|vertical|horizontal/,u=["position","top","bottom","left","right","height","width"],c=t.effects.setMode(o,e.mode||"hide"),d=e.direction||"up",h=s.test(d),p=h?"height":"width",f=h?"top":"left",g=l.test(d),m={},v="show"===c;o.parent().is(".ui-effects-wrapper")?t.effects.save(o.parent(),u):t.effects.save(o,u),o.show(),i=t.effects.createWrapper(o).css({overflow:"hidden"}),r=i[p](),a=parseFloat(i.css(f))||0,m[p]=v?r:0,g||(o.css(h?"bottom":"right",0).css(h?"top":"left","auto").css({position:"absolute"}),m[f]=v?a:r+a),v&&(i.css(p,0),g||i.css(f,a+r)),i.animate(m,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){"hide"===c&&o.hide(),t.effects.restore(o,u),t.effects.removeWrapper(o),n()}})},t.effects.effect.bounce=function(e,n){var i,r,a,o=t(this),s=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(o,e.mode||"effect"),u="hide"===l,c="show"===l,d=e.direction||"up",h=e.distance,p=e.times||5,f=2*p+(c||u?1:0),g=e.duration/f,m=e.easing,v="up"===d||"down"===d?"top":"left",y="up"===d||"left"===d,b=o.queue(),x=b.length;for((c||u)&&s.push("opacity"),t.effects.save(o,s),o.show(),t.effects.createWrapper(o),h||(h=o["top"===v?"outerHeight":"outerWidth"]()/3),c&&(a={opacity:1},a[v]=0,o.css("opacity",0).css(v,y?2*-h:2*h).animate(a,g,m)),u&&(h/=Math.pow(2,p-1)),a={},a[v]=0,i=0;p>i;i++)r={},r[v]=(y?"-=":"+=")+h,o.animate(r,g,m).animate(a,g,m),h=u?2*h:h/2;u&&(r={opacity:0},r[v]=(y?"-=":"+=")+h,o.animate(r,g,m)),o.queue(function(){u&&o.hide(),t.effects.restore(o,s),t.effects.removeWrapper(o),n()}),x>1&&b.splice.apply(b,[1,0].concat(b.splice(x,f+1))),o.dequeue()},t.effects.effect.clip=function(e,n){var i,r,a,o=t(this),s=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(o,e.mode||"hide"),u="show"===l,c=e.direction||"vertical",d="vertical"===c,h=d?"height":"width",p=d?"top":"left",f={};t.effects.save(o,s),o.show(),i=t.effects.createWrapper(o).css({overflow:"hidden"}),r="IMG"===o[0].tagName?i:o,a=r[h](),u&&(r.css(h,0),r.css(p,a/2)),f[h]=u?a:0,f[p]=u?0:a/2,r.animate(f,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){u||o.hide(),t.effects.restore(o,s),t.effects.removeWrapper(o),n()}})},t.effects.effect.drop=function(e,n){var i,r=t(this),a=["position","top","bottom","left","right","opacity","height","width"],o=t.effects.setMode(r,e.mode||"hide"),s="show"===o,l=e.direction||"left",u="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l?"pos":"neg",d={opacity:s?1:0};t.effects.save(r,a),r.show(),t.effects.createWrapper(r),i=e.distance||r["top"===u?"outerHeight":"outerWidth"](!0)/2,s&&r.css("opacity",0).css(u,"pos"===c?-i:i),d[u]=(s?"pos"===c?"+=":"-=":"pos"===c?"-=":"+=")+i,r.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&r.hide(),t.effects.restore(r,a),t.effects.removeWrapper(r),n()}})},t.effects.effect.explode=function(e,n){function i(){b.push(this),b.length===d*h&&r()}function r(){p.css({visibility:"visible"}),t(b).remove(),g||p.hide(),n()}var a,o,s,l,u,c,d=e.pieces?Math.round(Math.sqrt(e.pieces)):3,h=d,p=t(this),f=t.effects.setMode(p,e.mode||"hide"),g="show"===f,m=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/h),y=Math.ceil(p.outerHeight()/d),b=[];for(a=0;d>a;a++)for(l=m.top+a*y,c=a-(d-1)/2,o=0;h>o;o++)s=m.left+o*v,u=o-(h-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*v,top:-a*y}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:y,left:s+(g?u*v:0),top:l+(g?c*y:0),opacity:g?0:1}).animate({left:s+(g?0:u*v),top:l+(g?0:c*y),opacity:g?1:0},e.duration||500,e.easing,i)},t.effects.effect.fade=function(e,n){var i=t(this),r=t.effects.setMode(i,e.mode||"toggle");i.animate({opacity:r},{queue:!1,duration:e.duration,easing:e.easing,complete:n})},t.effects.effect.fold=function(e,n){var i,r,a=t(this),o=["position","top","bottom","left","right","height","width"],s=t.effects.setMode(a,e.mode||"hide"),l="show"===s,u="hide"===s,c=e.size||15,d=/([0-9]+)%/.exec(c),h=!!e.horizFirst,p=l!==h,f=p?["width","height"]:["height","width"],g=e.duration/2,m={},v={};t.effects.save(a,o),a.show(),i=t.effects.createWrapper(a).css({overflow:"hidden"}),r=p?[i.width(),i.height()]:[i.height(),i.width()],d&&(c=parseInt(d[1],10)/100*r[u?0:1]),l&&i.css(h?{height:0,width:c}:{height:c,width:0}),m[f[0]]=l?r[0]:c,v[f[1]]=l?r[1]:0,i.animate(m,g,e.easing).animate(v,g,e.easing,function(){u&&a.hide(),t.effects.restore(a,o),t.effects.removeWrapper(a),n()})},t.effects.effect.highlight=function(e,n){var i=t(this),r=["backgroundImage","backgroundColor","opacity"],a=t.effects.setMode(i,e.mode||"show"),o={backgroundColor:i.css("backgroundColor")};"hide"===a&&(o.opacity=0),t.effects.save(i,r),i.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(o,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===a&&i.hide(),t.effects.restore(i,r),n()}})},t.effects.effect.size=function(e,n){var i,r,a,o=t(this),s=["position","top","bottom","left","right","width","height","overflow","opacity"],l=["position","top","bottom","left","right","overflow","opacity"],u=["width","height","overflow"],c=["fontSize"],d=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],h=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=t.effects.setMode(o,e.mode||"effect"),f=e.restore||"effect"!==p,g=e.scale||"both",m=e.origin||["middle","center"],v=o.css("position"),y=f?s:l,b={height:0,width:0,outerHeight:0,outerWidth:0};"show"===p&&o.show(),i={height:o.height(),width:o.width(),outerHeight:o.outerHeight(),outerWidth:o.outerWidth()},"toggle"===e.mode&&"show"===p?(o.from=e.to||b,o.to=e.from||i):(o.from=e.from||("show"===p?b:i),o.to=e.to||("hide"===p?b:i)),a={from:{y:o.from.height/i.height,x:o.from.width/i.width},to:{y:o.to.height/i.height,x:o.to.width/i.width}},("box"===g||"both"===g)&&(a.from.y!==a.to.y&&(y=y.concat(d),o.from=t.effects.setTransition(o,d,a.from.y,o.from),o.to=t.effects.setTransition(o,d,a.to.y,o.to)),a.from.x!==a.to.x&&(y=y.concat(h),o.from=t.effects.setTransition(o,h,a.from.x,o.from),o.to=t.effects.setTransition(o,h,a.to.x,o.to))),("content"===g||"both"===g)&&a.from.y!==a.to.y&&(y=y.concat(c).concat(u),o.from=t.effects.setTransition(o,c,a.from.y,o.from),o.to=t.effects.setTransition(o,c,a.to.y,o.to)),t.effects.save(o,y),o.show(),t.effects.createWrapper(o),o.css("overflow","hidden").css(o.from),m&&(r=t.effects.getBaseline(m,i),o.from.top=(i.outerHeight-o.outerHeight())*r.y,o.from.left=(i.outerWidth-o.outerWidth())*r.x,o.to.top=(i.outerHeight-o.to.outerHeight)*r.y,o.to.left=(i.outerWidth-o.to.outerWidth)*r.x),o.css(o.from),("content"===g||"both"===g)&&(d=d.concat(["marginTop","marginBottom"]).concat(c),h=h.concat(["marginLeft","marginRight"]),u=s.concat(d).concat(h),o.find("*[width]").each(function(){var n=t(this),i={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};f&&t.effects.save(n,u),n.from={height:i.height*a.from.y,width:i.width*a.from.x,outerHeight:i.outerHeight*a.from.y,outerWidth:i.outerWidth*a.from.x},n.to={height:i.height*a.to.y,width:i.width*a.to.x,outerHeight:i.height*a.to.y,outerWidth:i.width*a.to.x},a.from.y!==a.to.y&&(n.from=t.effects.setTransition(n,d,a.from.y,n.from),n.to=t.effects.setTransition(n,d,a.to.y,n.to)),a.from.x!==a.to.x&&(n.from=t.effects.setTransition(n,h,a.from.x,n.from),n.to=t.effects.setTransition(n,h,a.to.x,n.to)),n.css(n.from),n.animate(n.to,e.duration,e.easing,function(){f&&t.effects.restore(n,u)})})),o.animate(o.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===o.to.opacity&&o.css("opacity",o.from.opacity),"hide"===p&&o.hide(),t.effects.restore(o,y),f||("static"===v?o.css({position:"relative",top:o.to.top,left:o.to.left}):t.each(["top","left"],function(t,e){o.css(e,function(e,n){var i=parseInt(n,10),r=t?o.to.left:o.to.top;return"auto"===n?r+"px":i+r+"px"})})),t.effects.removeWrapper(o),n()}})},t.effects.effect.scale=function(e,n){var i=t(this),r=t.extend(!0,{},e),a=t.effects.setMode(i,e.mode||"effect"),o=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"hide"===a?0:100),s=e.direction||"both",l=e.origin,u={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()},c={y:"horizontal"!==s?o/100:1,x:"vertical"!==s?o/100:1};r.effect="size",r.queue=!1,r.complete=n,"effect"!==a&&(r.origin=l||["middle","center"],r.restore=!0),r.from=e.from||("show"===a?{height:0,width:0,outerHeight:0,outerWidth:0}:u),r.to={height:u.height*c.y,width:u.width*c.x,outerHeight:u.outerHeight*c.y,outerWidth:u.outerWidth*c.x},r.fade&&("show"===a&&(r.from.opacity=0,r.to.opacity=1),"hide"===a&&(r.from.opacity=1,r.to.opacity=0)),i.effect(r)},t.effects.effect.puff=function(e,n){var i=t(this),r=t.effects.setMode(i,e.mode||"hide"),a="hide"===r,o=parseInt(e.percent,10)||150,s=o/100,l={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:r,complete:n,percent:a?o:100,from:a?l:{height:l.height*s,width:l.width*s,outerHeight:l.outerHeight*s,outerWidth:l.outerWidth*s}}),i.effect(e)},t.effects.effect.pulsate=function(e,n){var i,r=t(this),a=t.effects.setMode(r,e.mode||"show"),o="show"===a,s="hide"===a,l=o||"hide"===a,u=2*(e.times||5)+(l?1:0),c=e.duration/u,d=0,h=r.queue(),p=h.length;for((o||!r.is(":visible"))&&(r.css("opacity",0).show(),d=1),i=1;u>i;i++)r.animate({opacity:d},c,e.easing),d=1-d;r.animate({opacity:d},c,e.easing),r.queue(function(){s&&r.hide(),n()}),p>1&&h.splice.apply(h,[1,0].concat(h.splice(p,u+1))),r.dequeue()},t.effects.effect.shake=function(e,n){var i,r=t(this),a=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(r,e.mode||"effect"),s=e.direction||"left",l=e.distance||20,u=e.times||3,c=2*u+1,d=Math.round(e.duration/c),h="up"===s||"down"===s?"top":"left",p="up"===s||"left"===s,f={},g={},m={},v=r.queue(),y=v.length;for(t.effects.save(r,a),r.show(),t.effects.createWrapper(r),f[h]=(p?"-=":"+=")+l,g[h]=(p?"+=":"-=")+2*l,m[h]=(p?"-=":"+=")+2*l,r.animate(f,d,e.easing),i=1;u>i;i++)r.animate(g,d,e.easing).animate(m,d,e.easing);r.animate(g,d,e.easing).animate(f,d/2,e.easing).queue(function(){"hide"===o&&r.hide(),t.effects.restore(r,a),t.effects.removeWrapper(r),n()}),y>1&&v.splice.apply(v,[1,0].concat(v.splice(y,c+1))),r.dequeue()},t.effects.effect.slide=function(e,n){var i,r=t(this),a=["position","top","bottom","left","right","width","height"],o=t.effects.setMode(r,e.mode||"show"),s="show"===o,l=e.direction||"left",u="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l,d={};t.effects.save(r,a),r.show(),i=e.distance||r["top"===u?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(r).css({overflow:"hidden"}),s&&r.css(u,c?isNaN(i)?"-"+i:-i:i),d[u]=(s?c?"+=":"-=":c?"-=":"+=")+i,r.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&r.hide(),t.effects.restore(r,a),t.effects.removeWrapper(r),n()}})},t.effects.effect.transfer=function(e,n){var i=t(this),r=t(e.to),a="fixed"===r.css("position"),o=t("body"),s=a?o.scrollTop():0,l=a?o.scrollLeft():0,u=r.offset(),c={top:u.top-s,left:u.left-l,height:r.innerHeight(),width:r.innerWidth()},d=i.offset(),h=t("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(e.className).css({top:d.top-s,left:d.left-l,height:i.innerHeight(),width:i.innerWidth(),position:a?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){h.remove(),n()})},t.widget("ui.progressbar",{version:"1.11.4",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=t("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(t){return void 0===t?this.options.value:(this.options.value=this._constrainedValue(t),void this._refreshValue())},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=t===!1,"number"!=typeof t&&(t=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this._super(t,e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,n=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).toggleClass("ui-corner-right",e===this.options.max).width(n.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectable",t.ui.mouse,{version:"1.11.4",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,n=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e=t(n.options.filter,n.element[0]),e.addClass("ui-selectee"),e.each(function(){var e=t(this),n=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:n.left,top:n.top,right:n.left+e.outerWidth(),bottom:n.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var n=this,i=this.options;this.opos=[e.pageX,e.pageY],this.options.disabled||(this.selectees=t(i.filter,this.element[0]),this._trigger("start",e),t(i.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),i.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var i=t.data(this,"selectable-item");i.startselected=!0,e.metaKey||e.ctrlKey||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",e,{unselecting:i.element}))}),t(e.target).parents().addBack().each(function(){var i,r=t.data(this,"selectable-item");return r?(i=!e.metaKey&&!e.ctrlKey||!r.$element.hasClass("ui-selected"),r.$element.removeClass(i?"ui-unselecting":"ui-selected").addClass(i?"ui-selecting":"ui-unselecting"),r.unselecting=!i,r.selecting=i,r.selected=i,i?n._trigger("selecting",e,{selecting:r.element}):n._trigger("unselecting",e,{unselecting:r.element}),!1):void 0}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var n,i=this,r=this.options,a=this.opos[0],o=this.opos[1],s=e.pageX,l=e.pageY;return a>s&&(n=s,s=a,a=n),o>l&&(n=l,l=o,o=n),this.helper.css({left:a,top:o,width:s-a,height:l-o}),this.selectees.each(function(){var n=t.data(this,"selectable-item"),u=!1;n&&n.element!==i.element[0]&&("touch"===r.tolerance?u=!(n.left>s||n.right<a||n.top>l||n.bottom<o):"fit"===r.tolerance&&(u=n.left>a&&n.right<s&&n.top>o&&n.bottom<l),u?(n.selected&&(n.$element.removeClass("ui-selected"),n.selected=!1),n.unselecting&&(n.$element.removeClass("ui-unselecting"),n.unselecting=!1),n.selecting||(n.$element.addClass("ui-selecting"),n.selecting=!0,i._trigger("selecting",e,{selecting:n.element}))):(n.selecting&&((e.metaKey||e.ctrlKey)&&n.startselected?(n.$element.removeClass("ui-selecting"),n.selecting=!1,n.$element.addClass("ui-selected"),n.selected=!0):(n.$element.removeClass("ui-selecting"),n.selecting=!1,n.startselected&&(n.$element.addClass("ui-unselecting"),n.unselecting=!0),i._trigger("unselecting",e,{unselecting:n.element}))),n.selected&&(e.metaKey||e.ctrlKey||n.startselected||(n.$element.removeClass("ui-selected"),n.selected=!1,n.$element.addClass("ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element})))))}),!1}},_mouseStop:function(e){var n=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var i=t.data(this,"selectable-item");i.$element.removeClass("ui-unselecting"),i.unselecting=!1,i.startselected=!1,n._trigger("unselected",e,{unselected:i.element})}),t(".ui-selecting",this.element[0]).each(function(){var i=t.data(this,"selectable-item");i.$element.removeClass("ui-selecting").addClass("ui-selected"),i.selecting=!1,i.selected=!0,i.startselected=!0,n._trigger("selected",e,{selected:i.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.selectmenu",{version:"1.11.4",defaultElement:"<select>",options:{appendTo:null,disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:null,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this.options.disabled&&this.disable()},_drawButton:function(){var e=this;this.label=t("label[for='"+this.ids.element+"']").attr("for",this.ids.button),this._on(this.label,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=t("<span>",{"class":"ui-selectmenu-button ui-widget ui-state-default ui-corner-all",tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true"}).insertAfter(this.element),t("<span>",{"class":"ui-icon "+this.options.icons.button}).prependTo(this.button),this.buttonText=t("<span>",{"class":"ui-selectmenu-text"}).appendTo(this.button),this._setText(this.buttonText,this.element.find("option:selected").text()),this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){e.menuItems||e._refreshMenu()}),this._hoverable(this.button),this._focusable(this.button)},_drawMenu:function(){var e=this;this.menu=t("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=t("<div>",{"class":"ui-selectmenu-menu ui-front"}).append(this.menu).appendTo(this._appendTo()),this.menuInstance=this.menu.menu({role:"listbox",select:function(t,n){t.preventDefault(),e._setSelection(),e._select(n.item.data("ui-selectmenu-item"),t)
},focus:function(t,n){var i=n.item.data("ui-selectmenu-item");null!=e.focusIndex&&i.index!==e.focusIndex&&(e._trigger("focus",t,{item:i}),e.isOpen||e._select(i,t)),e.focusIndex=i.index,e.button.attr("aria-activedescendant",e.menuItems.eq(i.index).attr("id"))}}).menu("instance"),this.menu.addClass("ui-corner-bottom").removeClass("ui-corner-all"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this._setText(this.buttonText,this._getSelectedItem().text()),this.options.width||this._resizeButton()},_refreshMenu:function(){this.menu.empty();var t,e=this.element.find("option");e.length&&(this._parseOptions(e),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup"),t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this.menuItems?(this.menu.find(".ui-state-focus").removeClass("ui-state-focus"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t))},_position:function(){this.menuWrap.position(t.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderMenu:function(e,n){var i=this,r="";t.each(n,function(n,a){a.optgroup!==r&&(t("<li>",{"class":"ui-selectmenu-optgroup ui-menu-divider"+(a.element.parent("optgroup").prop("disabled")?" ui-state-disabled":""),text:a.optgroup}).appendTo(e),r=a.optgroup),i._renderItemData(e,a)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(e,n){var i=t("<li>");return n.disabled&&i.addClass("ui-state-disabled"),this._setText(i,n.label),i.appendTo(e)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var n,i,r=".ui-menu-item";this.isOpen?n=this.menuItems.eq(this.focusIndex):(n=this.menuItems.eq(this.element[0].selectedIndex),r+=":not(.ui-state-disabled)"),i="first"===t||"last"===t?n["first"===t?"prevAll":"nextAll"](r).eq(-1):n[t+"All"](r).eq(0),i.length&&this.menuInstance.focus(e,i)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex)},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?(t=window.getSelection(),t.removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(e){this.isOpen&&(t(e.target).closest(".ui-selectmenu-menu, #"+this.ids.button).length||this.close(e))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection(),t.rangeCount&&(this.range=t.getRangeAt(0))):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(e){var n=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),n=!1;break;case t.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.ui.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.keyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),n=!1}n&&e.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex);e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var n=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this._setText(this.buttonText,t.label),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==n&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){var e=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(t,e){"icons"===t&&this.button.find("span.ui-icon").removeClass(this.options.icons.button).addClass(e.button),this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"disabled"===t&&(this.menuInstance.option("disabled",e),this.button.toggleClass("ui-state-disabled",e).attr("aria-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)),"width"===t&&this._resizeButton()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.toggleClass("ui-corner-top",this.isOpen).toggleClass("ui-corner-all",!this.isOpen).attr("aria-expanded",this.isOpen),this.menuWrap.toggleClass("ui-selectmenu-open",this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;t||(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){return{disabled:this.element.prop("disabled")}},_parseOptions:function(e){var n=[];e.each(function(e,i){var r=t(i),a=r.parent("optgroup");n.push({element:r,index:e,value:r.val(),label:r.text(),optgroup:a.attr("label")||"",disabled:a.prop("disabled")||r.prop("disabled")})}),this.items=n},_destroy:function(){this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.label.attr("for",this.ids.element)}}),t.widget("ui.slider",t.ui.mouse,{version:"1.11.4",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,n,i=this.options,r=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),a="<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>",o=[];for(n=i.values&&i.values.length||1,r.length>n&&(r.slice(n).remove(),r=r.slice(0,n)),e=r.length;n>e;e++)o.push(a);this.handles=r.add(t(o.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e)})},_createRange:function(){var e=this.options,n="";e.range?(e.range===!0&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=t("<div></div>").appendTo(this.element),n="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(n+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var n,i,r,a,o,s,l,u,c=this,d=this.options;return d.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(n),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var n=Math.abs(i-c.values(e));(r>n||r===n&&(e===c._lastChangedValue||c.values(e)===d.min))&&(r=n,a=t(this),o=e)}),s=this._start(e,o),s===!1?!1:(this._mouseSliding=!0,this._handleIndex=o,a.addClass("ui-state-active").focus(),l=a.offset(),u=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:e.pageX-l.left-a.width()/2,top:e.pageY-l.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,o,i),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,n),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,n,i,r,a;return"horizontal"===this.orientation?(e=this.elementSize.width,n=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,n=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),i=n/e,i>1&&(i=1),0>i&&(i=0),"vertical"===this.orientation&&(i=1-i),r=this._valueMax()-this._valueMin(),a=this._valueMin()+i*r,this._trimAlignValue(a)},_start:function(t,e){var n={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(n.value=this.values(e),n.values=this.values()),this._trigger("start",t,n)},_slide:function(t,e,n){var i,r,a;this.options.values&&this.options.values.length?(i=this.values(e?0:1),2===this.options.values.length&&this.options.range===!0&&(0===e&&n>i||1===e&&i>n)&&(n=i),n!==this.values(e)&&(r=this.values(),r[e]=n,a=this._trigger("slide",t,{handle:this.handles[e],value:n,values:r}),i=this.values(e?0:1),a!==!1&&this.values(e,n))):n!==this.value()&&(a=this._trigger("slide",t,{handle:this.handles[e],value:n}),a!==!1&&this.value(n))},_stop:function(t,e){var n={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(n.value=this.values(e),n.values=this.values()),this._trigger("stop",t,n)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var n={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(n.value=this.values(e),n.values=this.values()),this._lastChangedValue=e,this._trigger("change",t,n)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,n){var i,r,a;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(i=this.options.values,r=arguments[0],a=0;a<i.length;a+=1)i[a]=this._trimAlignValue(r[a]),this._change(null,a);this._refreshValue()},_setOption:function(e,n){var i,r=0;switch("range"===e&&this.options.range===!0&&("min"===n?(this.options.value=this._values(0),this.options.values=null):"max"===n&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(r=this.options.values.length),"disabled"===e&&this.element.toggleClass("ui-state-disabled",!!n),this._super(e,n),e){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue(),this.handles.css("horizontal"===n?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=0;r>i;i+=1)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,n,i;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this.options.values&&this.options.values.length){for(n=this.options.values.slice(),i=0;i<n.length;i+=1)n[i]=this._trimAlignValue(n[i]);return n}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,n=(t-this._valueMin())%e,i=t-n;return 2*Math.abs(n)>=e&&(i+=n>0?e:-e),parseFloat(i.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),n=this.options.step,i=Math.floor(+(t-e).toFixed(this._precision())/n)*n;t=i+e,this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),n=e.indexOf(".");return-1===n?0:e.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshValue:function(){var e,n,i,r,a,o=this.options.range,s=this.options,l=this,u=this._animateOff?!1:s.animate,c={};this.options.values&&this.options.values.length?this.handles.each(function(i){n=(l.values(i)-l._valueMin())/(l._valueMax()-l._valueMin())*100,c["horizontal"===l.orientation?"left":"bottom"]=n+"%",t(this).stop(1,1)[u?"animate":"css"](c,s.animate),l.options.range===!0&&("horizontal"===l.orientation?(0===i&&l.range.stop(1,1)[u?"animate":"css"]({left:n+"%"},s.animate),1===i&&l.range[u?"animate":"css"]({width:n-e+"%"},{queue:!1,duration:s.animate})):(0===i&&l.range.stop(1,1)[u?"animate":"css"]({bottom:n+"%"},s.animate),1===i&&l.range[u?"animate":"css"]({height:n-e+"%"},{queue:!1,duration:s.animate}))),e=n}):(i=this.value(),r=this._valueMin(),a=this._valueMax(),n=a!==r?(i-r)/(a-r)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[u?"animate":"css"](c,s.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:n+"%"},s.animate),"max"===o&&"horizontal"===this.orientation&&this.range[u?"animate":"css"]({width:100-n+"%"},{queue:!1,duration:s.animate}),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:n+"%"},s.animate),"max"===o&&"vertical"===this.orientation&&this.range[u?"animate":"css"]({height:100-n+"%"},{queue:!1,duration:s.animate}))},_handleEvents:{keydown:function(e){var n,i,r,a,o=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,t(e.target).addClass("ui-state-active"),n=this._start(e,o),n===!1))return}switch(a=this.options.step,i=r=this.options.values&&this.options.values.length?this.values(o):this.value(),e.keyCode){case t.ui.keyCode.HOME:r=this._valueMin();break;case t.ui.keyCode.END:r=this._valueMax();break;case t.ui.keyCode.PAGE_UP:r=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:r=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(i===this._valueMax())return;r=this._trimAlignValue(i+a);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i===this._valueMin())return;r=this._trimAlignValue(i-a)}this._slide(e,o,r)},keyup:function(e){var n=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,n),this._change(e,n),t(e.target).removeClass("ui-state-active"))}}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.11.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,n){return t>=e&&e+n>t},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle"),t.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,n){var i=null,r=!1,a=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,a.widgetName+"-item")===a?(i=t(this),!1):void 0}),t.data(e.target,a.widgetName+"-item")===a&&(i=t(e.target)),i&&(!this.options.handle||n||(t(this.options.handle,i).find("*").addBack().each(function(){this===e.target&&(r=!0)}),r))?(this.currentItem=i,this._removeCurrentsFromItems(),!0):!1)},_mouseStart:function(e,n,i){var r,a,o=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),o.containment&&this._setContainment(),o.cursor&&"auto"!==o.cursor&&(a=this.document.find("body"),this.storedCursor=a.css("cursor"),a.css("cursor",o.cursor),this.storedStylesheet=t("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(a)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var n,i,r,a,o=this.options,s=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<o.scrollSensitivity?this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+o.scrollSpeed:e.pageY-this.overflowOffset.top<o.scrollSensitivity&&(this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-o.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<o.scrollSensitivity?this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+o.scrollSpeed:e.pageX-this.overflowOffset.left<o.scrollSensitivity&&(this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-o.scrollSpeed)):(e.pageY-this.document.scrollTop()<o.scrollSensitivity?s=this.document.scrollTop(this.document.scrollTop()-o.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<o.scrollSensitivity&&(s=this.document.scrollTop(this.document.scrollTop()+o.scrollSpeed)),e.pageX-this.document.scrollLeft()<o.scrollSensitivity?s=this.document.scrollLeft(this.document.scrollLeft()-o.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<o.scrollSensitivity&&(s=this.document.scrollLeft(this.document.scrollLeft()+o.scrollSpeed))),s!==!1&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),n=this.items.length-1;n>=0;n--)if(i=this.items[n],r=i.item[0],a=this._intersectsWithPointer(i),a&&i.instance===this.currentContainer&&r!==this.currentItem[0]&&this.placeholder[1===a?"next":"prev"]()[0]!==r&&!t.contains(this.placeholder[0],r)&&("semi-dynamic"===this.options.type?!t.contains(this.element[0],r):!0)){if(this.direction=1===a?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(e,i),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,n){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var i=this,r=this.placeholder.offset(),a=this.options.axis,o={};a&&"x"!==a||(o.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(o.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){i._clear(e)})}else this._clear(e,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var n=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},t(n).each(function(){var n=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);n&&i.push((e.key||n[1]+"[]")+"="+(e.key&&e.expression?n[1]:n[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(e){var n=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},n.each(function(){i.push(t(e.item||this).attr(e.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,n=e+this.helperProportions.width,i=this.positionAbs.top,r=i+this.helperProportions.height,a=t.left,o=a+t.width,s=t.top,l=s+t.height,u=this.offset.click.top,c=this.offset.click.left,d="x"===this.options.axis||i+u>s&&l>i+u,h="y"===this.options.axis||e+c>a&&o>e+c,p=d&&h;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:a<e+this.helperProportions.width/2&&n-this.helperProportions.width/2<o&&s<i+this.helperProportions.height/2&&r-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),i=e&&n,r=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return i?this.floating?a&&"right"===a||"down"===r?2:1:r&&("down"===r?2:1):!1},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),i=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return this.floating&&r?"right"===r&&n||"left"===r&&!n:i&&("down"===i&&e||"up"===i&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function n(){s.push(this)}var i,r,a,o,s=[],l=[],u=this._connectWith();if(u&&e)for(i=u.length-1;i>=0;i--)for(a=t(u[i],this.document[0]),r=a.length-1;r>=0;r--)o=t.data(a[r],this.widgetFullName),o&&o!==this&&!o.options.disabled&&l.push([t.isFunction(o.options.items)?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=l.length-1;i>=0;i--)l[i][0].each(n);return t(s)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var n=0;n<e.length;n++)if(e[n]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var n,i,r,a,o,s,l,u,c=this.items,d=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(n=h.length-1;n>=0;n--)for(r=t(h[n],this.document[0]),i=r.length-1;i>=0;i--)a=t.data(r[i],this.widgetFullName),a&&a!==this&&!a.options.disabled&&(d.push([t.isFunction(a.options.items)?a.options.items.call(a.element[0],e,{item:this.currentItem}):t(a.options.items,a.element),a]),this.containers.push(a));for(n=d.length-1;n>=0;n--)for(o=d[n][1],s=d[n][0],i=0,u=s.length;u>i;i++)l=t(s[i]),l.data(this.widgetName+"-item",o),c.push({item:l,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.floating=this.items.length?"x"===this.options.axis||this._isFloating(this.items[0].item):!1,this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var n,i,r,a;for(n=this.items.length-1;n>=0;n--)i=this.items[n],i.instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?t(this.options.toleranceElement,i.item):i.item,e||(i.width=r.outerWidth(),i.height=r.outerHeight()),a=r.offset(),i.left=a.left,i.top=a.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(n=this.containers.length-1;n>=0;n--)a=this.containers[n].element.offset(),this.containers[n].containerCache.left=a.left,this.containers[n].containerCache.top=a.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var n,i=e.options;i.placeholder&&i.placeholder.constructor!==String||(n=i.placeholder,i.placeholder={element:function(){var i=e.currentItem[0].nodeName.toLowerCase(),r=t("<"+i+">",e.document[0]).addClass(n||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tbody"===i?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(r)):"tr"===i?e._createTrPlaceholder(e.currentItem,r):"img"===i&&r.attr("src",e.currentItem.attr("src")),n||r.css("visibility","hidden"),r},update:function(t,r){(!n||i.forcePlaceholderSize)&&(r.height()||r.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),r.width()||r.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(i.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),i.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,n){var i=this;e.children().each(function(){t("<td>&#160;</td>",i.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(n)})},_contactContainers:function(e){var n,i,r,a,o,s,l,u,c,d,h=null,p=null;for(n=this.containers.length-1;n>=0;n--)if(!t.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(h&&t.contains(this.containers[n].element[0],h.element[0]))continue;h=this.containers[n],p=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",e,this._uiHash(this)),this.containers[n].containerCache.over=0);if(h)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(r=1e4,a=null,c=h.floating||this._isFloating(this.currentItem),o=c?"left":"top",s=c?"width":"height",d=c?"clientX":"clientY",i=this.items.length-1;i>=0;i--)t.contains(this.containers[p].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(l=this.items[i].item.offset()[o],u=!1,e[d]-l>this.items[i][s]/2&&(u=!0),Math.abs(e[d]-l)<r&&(r=Math.abs(e[d]-l),a=this.items[i],this.direction=u?"up":"down"));
if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));a?this._rearrange(e,a,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var n=this.options,i=t.isFunction(n.helper)?t(n.helper.apply(this.element[0],[e,this.currentItem])):"clone"===n.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||t("parent"!==n.appendTo?n.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!i[0].style.width||n.forceHelperSize)&&i.width(this.currentItem.width()),(!i[0].style.height||n.forceHelperSize)&&i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,i,r=this.options;"parent"===r.containment&&(r.containment=this.helper[0].parentNode),("document"===r.containment||"window"===r.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===r.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===r.containment?this.document.width():this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(e=t(r.containment)[0],n=t(r.containment).offset(),i="hidden"!==t(e).css("overflow"),this.containment=[n.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,n.left+(i?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(i?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,n){n||(n=this.position);var i="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(r[0].tagName);return{top:n.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:r.scrollTop())*i,left:n.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:r.scrollLeft())*i}},_generatePosition:function(e){var n,i,r=this.options,a=e.pageX,o=e.pageY,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(s[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(o=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(o=this.containment[3]+this.offset.click.top)),r.grid&&(n=this.originalPageY+Math.round((o-this.originalPageY)/r.grid[1])*r.grid[1],o=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-r.grid[1]:n+r.grid[1]:n,i=this.originalPageX+Math.round((a-this.originalPageX)/r.grid[0])*r.grid[0],a=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-r.grid[0]:i+r.grid[0]:i)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:s.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:s.scrollLeft())}},_rearrange:function(t,e,n,i){n?n[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay(function(){r===this.counter&&this.refreshPositions(!i)})},_clear:function(t,e){function n(t,e,n){return function(i){n._trigger(t,i,e._uiHash(e))}}this.reverting=!1;var i,r=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&r.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||r.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(r.push(function(t){this._trigger("remove",t,this._uiHash())}),r.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||r.push(n("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(r.push(n("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<r.length;i++)r[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var n=e||this;return{helper:n.helper,placeholder:n.placeholder||t([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:e?e.element:null}}}),t.widget("ui.spinner",{version:"1.11.4",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e={},n=this.element;return t.each(["min","max","step"],function(t,i){var r=n.attr(i);void 0!==r&&r.length&&(e[i]=r)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function n(){var t=this.element[0]===this.document[0].activeElement;t||(this.element.focus(),this.previous=i,this._delay(function(){this.previous=i}))}var i;i=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),n.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,n.call(this)}),this._start(e)!==!1&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currentTarget).hasClass("ui-state-active")?this._start(e)===!1?!1:void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var t=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=t.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*t.height())&&t.height()>0&&t.height(t.height()),this.options.disabled&&this.disable()},_keydown:function(e){var n=this.options,i=t.ui.keyCode;switch(e.keyCode){case i.UP:return this._repeat(null,1,e),!0;case i.DOWN:return this._repeat(null,-1,e),!0;case i.PAGE_UP:return this._repeat(null,n.page,e),!0;case i.PAGE_DOWN:return this._repeat(null,-n.page,e),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;</span></a>"},_start:function(t){return this.spinning||this._trigger("start",t)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(t,e,n){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,n)},t),this._spin(e*this.options.step,n)},_spin:function(t,e){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustValue(n+t*this._increment(this.counter)),this.spinning&&this._trigger("spin",e,{value:n})===!1||(this._value(n),this.counter++)},_increment:function(e){var n=this.options.incremental;return n?t.isFunction(n)?n(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),n=e.indexOf(".");return-1===n?0:e.length-n-1},_adjustValue:function(t){var e,n,i=this.options;return e=null!==i.min?i.min:0,n=t-e,n=Math.round(n/i.step)*i.step,t=e+n,t=parseFloat(t.toFixed(this._precision())),null!==i.max&&t>i.max?i.max:null!==i.min&&t<i.min?i.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){if("culture"===t||"numberFormat"===t){var n=this._parse(this.element.val());return this.options[t]=e,void this.element.val(this._format(n))}("max"===t||"min"===t||"step"===t)&&"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(e.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(e.down)),this._super(t,e),"disabled"===t&&(this.widget().toggleClass("ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable"))},_setOptions:l(function(t){this._super(t)}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null===t?!1:t===this._adjustValue(t)},_value:function(t,e){var n;""!==t&&(n=this._parse(t),null!==n&&(e||(n=this._adjustValue(n)),t=this._format(n))),this.element.val(t),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:l(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:l(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:l(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:l(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void l(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),t.widget("ui.tabs",{version:"1.11.4",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var t=/#.*$/;return function(e){var n,i;e=e.cloneNode(!1),n=e.href.replace(t,""),i=location.href.replace(t,"");try{n=decodeURIComponent(n)}catch(r){}try{i=decodeURIComponent(i)}catch(r){}return e.hash.length>1&&n===i}}(),_create:function(){var e=this,n=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",n.collapsible),this._processTabs(),n.active=this._initialActive(),t.isArray(n.disabled)&&(n.disabled=t.unique(n.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(n.active):t(),this._refresh(),this.active.length&&this.load(n.active)},_initialActive:function(){var e=this.options.active,n=this.options.collapsible,i=location.hash.substring(1);return null===e&&(i&&this.tabs.each(function(n,r){return t(r).attr("aria-controls")===i?(e=n,!1):void 0}),null===e&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===e||-1===e)&&(e=this.tabs.length?0:!1)),e!==!1&&(e=this.tabs.index(this.tabs.eq(e)),-1===e&&(e=n?!1:0)),!n&&e===!1&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var n=t(this.document[0].activeElement).closest("li"),i=this.tabs.index(n),r=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:i++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:r=!1,i--;break;case t.ui.keyCode.END:i=this.anchors.length-1;break;case t.ui.keyCode.HOME:i=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(i);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(i===this.options.active?!1:i);default:return}e.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,r),e.ctrlKey||e.metaKey||(n.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.focus())},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,n){function i(){return e>r&&(e=0),0>e&&(e=r),e}for(var r=this.tabs.length-1;-1!==t.inArray(i(),this.options.disabled);)e=n?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).focus(),t},_setOption:function(t,e){return"active"===t?void this._activate(e):"disabled"===t?void this._setupDisabled(e):(this._super(t,e),"collapsible"===t&&(this.element.toggleClass("ui-tabs-collapsible",e),e||this.options.active!==!1||this._activate(0)),"event"===t&&this._setupEvents(e),void("heightStyle"===t&&this._setupHeightStyle(e)))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,n=this.tablist.children(":has(a[href])");e.disabled=t.map(n.filter(".ui-state-disabled"),function(t){return n.index(t)}),this._processTabs(),e.active!==!1&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this,n=this.tabs,i=this.anchors,r=this.panels;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist").delegate("> li","mousedown"+this.eventNamespace,function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=t(),this.anchors.each(function(n,i){var r,a,o,s=t(i).uniqueId().attr("id"),l=t(i).closest("li"),u=l.attr("aria-controls");e._isLocal(i)?(r=i.hash,o=r.substring(1),a=e.element.find(e._sanitizeSelector(r))):(o=l.attr("aria-controls")||t({}).uniqueId()[0].id,r="#"+o,a=e.element.find(r),a.length||(a=e._createPanel(o),a.insertAfter(e.panels[n-1]||e.tablist)),a.attr("aria-live","polite")),a.length&&(e.panels=e.panels.add(a)),u&&l.data("ui-tabs-aria-controls",u),l.attr({"aria-controls":o,"aria-labelledby":s}),a.attr("aria-labelledby",s)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel"),n&&(this._off(n.not(this.tabs)),this._off(i.not(this.anchors)),this._off(r.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1);for(var n,i=0;n=this.tabs[i];i++)e===!0||-1!==t.inArray(i,e)?t(n).addClass("ui-state-disabled").attr("aria-disabled","true"):t(n).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var n={};e&&t.each(e.split(" "),function(t,e){n[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var n,i=this.element.parent();"fill"===e?(n=i.height(),n-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),i=e.css("position");"absolute"!==i&&"fixed"!==i&&(n-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){n-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,n-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(n=0,this.panels.each(function(){n=Math.max(n,t(this).height("").height())}).height(n))},_eventHandler:function(e){var n=this.options,i=this.active,r=t(e.currentTarget),a=r.closest("li"),o=a[0]===i[0],s=o&&n.collapsible,l=s?t():this._getPanelForTab(a),u=i.length?this._getPanelForTab(i):t(),c={oldTab:i,oldPanel:u,newTab:s?t():a,newPanel:l};e.preventDefault(),a.hasClass("ui-state-disabled")||a.hasClass("ui-tabs-loading")||this.running||o&&!n.collapsible||this._trigger("beforeActivate",e,c)===!1||(n.active=s?!1:this.tabs.index(a),this.active=o?t():a,this.xhr&&this.xhr.abort(),u.length||l.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),l.length&&this.load(this.tabs.index(a),e),this._toggle(e,c))},_toggle:function(e,n){function i(){a.running=!1,a._trigger("activate",e,n)}function r(){n.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),o.length&&a.options.show?a._show(o,a.options.show,i):(o.show(),i())}var a=this,o=n.newPanel,s=n.oldPanel;this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){n.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),r()}):(n.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),s.hide(),r()),s.attr("aria-hidden","true"),n.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),o.length&&s.length?n.oldTab.attr("tabIndex",-1):o.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),o.attr("aria-hidden","false"),n.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var n,i=this._findActive(e);i[0]!==this.active[0]&&(i.length||(i=this.active),n=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:n,currentTarget:n,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tablist.unbind(this.eventNamespace),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var e=t(this),n=e.data("ui-tabs-aria-controls");n?e.attr("aria-controls",n).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var n=this.options.disabled;n!==!1&&(void 0===e?n=!1:(e=this._getIndex(e),n=t.isArray(n)?t.map(n,function(t){return t!==e?t:null}):t.map(this.tabs,function(t,n){return n!==e?n:null})),this._setupDisabled(n))},disable:function(e){var n=this.options.disabled;if(n!==!0){if(void 0===e)n=!0;else{if(e=this._getIndex(e),-1!==t.inArray(e,n))return;n=t.isArray(n)?t.merge([e],n).sort():[e]}this._setupDisabled(n)}},load:function(e,n){e=this._getIndex(e);var i=this,r=this.tabs.eq(e),a=r.find(".ui-tabs-anchor"),o=this._getPanelForTab(r),s={tab:r,panel:o},l=function(t,e){"abort"===e&&i.panels.stop(!1,!0),r.removeClass("ui-tabs-loading"),o.removeAttr("aria-busy"),t===i.xhr&&delete i.xhr};this._isLocal(a[0])||(this.xhr=t.ajax(this._ajaxSettings(a,n,s)),this.xhr&&"canceled"!==this.xhr.statusText&&(r.addClass("ui-tabs-loading"),o.attr("aria-busy","true"),this.xhr.done(function(t,e,r){setTimeout(function(){o.html(t),i._trigger("load",n,s),l(r,e)},1)}).fail(function(t,e){setTimeout(function(){l(t,e)},1)})))},_ajaxSettings:function(e,n,i){var r=this;return{url:e.attr("href"),beforeSend:function(e,a){return r._trigger("beforeLoad",n,t.extend({jqXHR:e,ajaxSettings:a},i))}}},_getPanelForTab:function(e){var n=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+n))}}),t.widget("ui.tooltip",{version:"1.11.4",options:{content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_addDescribedBy:function(e,n){var i=(e.attr("aria-describedby")||"").split(/\s+/);i.push(n),e.data("ui-tooltip-id",n).attr("aria-describedby",t.trim(i.join(" ")))},_removeDescribedBy:function(e){var n=e.data("ui-tooltip-id"),i=(e.attr("aria-describedby")||"").split(/\s+/),r=t.inArray(n,i);-1!==r&&i.splice(r,1),e.removeData("ui-tooltip-id"),i=t.trim(i.join(" ")),i?e.attr("aria-describedby",i):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable(),this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(e,n){var i=this;return"disabled"===e?(this[n?"_disable":"_enable"](),void(this.options[e]=n)):(this._super(e,n),void("content"===e&&t.each(this.tooltips,function(t,e){i._updateContent(e.element)})))},_disable:function(){var e=this;t.each(this.tooltips,function(n,i){var r=t.Event("blur");r.target=r.currentTarget=i.element[0],e.close(r,!0)}),this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.is("[title]")&&e.data("ui-tooltip-title",e.attr("title")).removeAttr("title")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})},open:function(e){var n=this,i=t(e?e.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&i.parents().each(function(){var e,i=t(this);i.data("ui-tooltip-open")&&(e=t.Event("blur"),e.target=e.currentTarget=this,n.close(e,!0)),i.attr("title")&&(i.uniqueId(),n.parents[this.id]={element:this,title:i.attr("title")},i.attr("title",""))}),this._registerCloseHandlers(e,i),this._updateContent(i,e))},_updateContent:function(t,e){var n,i=this.options.content,r=this,a=e?e.type:null;return"string"==typeof i?this._open(e,t,i):(n=i.call(t[0],function(n){r._delay(function(){t.data("ui-tooltip-open")&&(e&&(e.type=a),this._open(e,t,n))})}),void(n&&this._open(e,t,n)))},_open:function(e,n,i){function r(t){u.of=t,o.is(":hidden")||o.position(u)}var a,o,s,l,u=t.extend({},this.options.position);if(i){if(a=this._find(n))return void a.tooltip.find(".ui-tooltip-content").html(i);n.is("[title]")&&(e&&"mouseover"===e.type?n.attr("title",""):n.removeAttr("title")),a=this._tooltip(n),o=a.tooltip,this._addDescribedBy(n,o.attr("id")),o.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),i.clone?(l=i.clone(),l.removeAttr("id").find("[id]").removeAttr("id")):l=i,t("<div>").html(l).appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:r}),r(e)):o.position(t.extend({of:n},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.show&&this.options.show.delay&&(s=this.delayedShow=setInterval(function(){o.is(":visible")&&(r(u.of),clearInterval(s))},t.fx.interval)),this._trigger("open",e,{tooltip:o})}},_registerCloseHandlers:function(e,n){var i={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var i=t.Event(e);i.currentTarget=n[0],this.close(i,!0)}}};n[0]!==this.element[0]&&(i.remove=function(){this._removeTooltip(this._find(n).tooltip)}),e&&"mouseover"!==e.type||(i.mouseleave="close"),e&&"focusin"!==e.type||(i.focusout="close"),this._on(!0,n,i)},close:function(e){var n,i=this,r=t(e?e.currentTarget:this.element),a=this._find(r);return a?(n=a.tooltip,void(a.closing||(clearInterval(this.delayedShow),r.data("ui-tooltip-title")&&!r.attr("title")&&r.attr("title",r.data("ui-tooltip-title")),this._removeDescribedBy(r),a.hiding=!0,n.stop(!0),this._hide(n,this.options.hide,function(){i._removeTooltip(t(this))}),r.removeData("ui-tooltip-open"),this._off(r,"mouseleave focusout keyup"),r[0]!==this.element[0]&&this._off(r,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,n){t(n.element).attr("title",n.title),delete i.parents[e]
}),a.closing=!0,this._trigger("close",e,{tooltip:n}),a.hiding||(a.closing=!1)))):void r.removeData("ui-tooltip-open")},_tooltip:function(e){var n=t("<div>").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),i=n.uniqueId().attr("id");return t("<div>").addClass("ui-tooltip-content").appendTo(n),n.appendTo(this.document[0].body),this.tooltips[i]={element:e,tooltip:n}},_find:function(t){var e=t.data("ui-tooltip-id");return e?this.tooltips[e]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var e=this;t.each(this.tooltips,function(n,i){var r=t.Event("blur"),a=i.element;r.target=r.currentTarget=a[0],e.close(r,!0),t("#"+n).remove(),a.data("ui-tooltip-title")&&(a.attr("title")||a.attr("title",a.data("ui-tooltip-title")),a.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}})}),function(t,e,n){"use strict";e.module("ui.sortable",[]).value("uiSortableConfig",{}).directive("uiSortable",["uiSortableConfig","$timeout","$log",function(t,i,r){return{require:"?ngModel",scope:{ngModel:"=",uiSortable:"="},link:function(a,o,s,l){function u(t,e){return e&&"function"==typeof e?function(n,i){t(n,i),e(n,i)}:t}function c(t){var e=t.data("ui-sortable");return e&&"object"==typeof e&&"ui-sortable"===e.widgetFullName?e:null}function d(t,e){var n=t.sortable("option","helper");return"clone"===n||"function"==typeof n&&e.item.sortable.isCustomHelperUsed()}function h(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))}function p(t,e){for(var n=null,i=0;i<t.length;i++){var r=t[i];if(r.element[0]===e[0]){n=r.scope;break}}return n}function f(t,e){e.item.sortable._destroy()}var g,m={},v={"ui-floating":n},y={receive:null,remove:null,start:null,stop:null,update:null},b={helper:null};return e.extend(m,v,t,a.uiSortable),e.element.fn&&e.element.fn.jquery?(l?(a.$watch("ngModel.length",function(){i(function(){c(o)&&o.sortable("refresh")},0,!1)}),y.start=function(t,i){if("auto"===m["ui-floating"]){var r=i.item.siblings(),a=c(e.element(t.target));a.floating=h(r)}i.item.sortable={model:l.$modelValue[i.item.index()],index:i.item.index(),source:i.item.parent(),sourceModel:l.$modelValue,cancel:function(){i.item.sortable._isCanceled=!0},isCanceled:function(){return i.item.sortable._isCanceled},isCustomHelperUsed:function(){return!!i.item.sortable._isCustomHelperUsed},_isCanceled:!1,_isCustomHelperUsed:i.item.sortable._isCustomHelperUsed,_destroy:function(){e.forEach(i.item.sortable,function(t,e){i.item.sortable[e]=n})}}},y.activate=function(t,n){g=o.contents();var i=o.sortable("option","placeholder");if(i&&i.element&&"function"==typeof i.element){var r=i.element();r=e.element(r);var s=o.find('[class="'+r.attr("class")+'"]:not([ng-repeat], [data-ng-repeat])');g=g.not(s)}var l=n.item.sortable._connectedSortables||[];l.push({element:o,scope:a}),n.item.sortable._connectedSortables=l},y.update=function(t,e){if(!e.item.sortable.received){e.item.sortable.dropindex=e.item.index();var n=e.item.parent();e.item.sortable.droptarget=n;var i=p(e.item.sortable._connectedSortables,n);e.item.sortable.droptargetModel=i.ngModel,o.sortable("cancel")}d(o,e)&&!e.item.sortable.received&&"parent"===o.sortable("option","appendTo")&&(g=g.not(g.last())),g.appendTo(o),e.item.sortable.received&&(g=null),e.item.sortable.received&&!e.item.sortable.isCanceled()&&a.$apply(function(){l.$modelValue.splice(e.item.sortable.dropindex,0,e.item.sortable.moved)})},y.stop=function(t,e){!e.item.sortable.received&&"dropindex"in e.item.sortable&&!e.item.sortable.isCanceled()?a.$apply(function(){l.$modelValue.splice(e.item.sortable.dropindex,0,l.$modelValue.splice(e.item.sortable.index,1)[0])}):"dropindex"in e.item.sortable&&!e.item.sortable.isCanceled()||d(o,e)||g.appendTo(o),g=null},y.receive=function(t,e){e.item.sortable.received=!0},y.remove=function(t,e){"dropindex"in e.item.sortable||(o.sortable("cancel"),e.item.sortable.cancel()),e.item.sortable.isCanceled()||a.$apply(function(){e.item.sortable.moved=l.$modelValue.splice(e.item.sortable.index,1)[0]})},b.helper=function(t){return t&&"function"==typeof t?function(e,n){var i=t(e,n);return n.sortable._isCustomHelperUsed=n!==i,i}:t},a.$watch("uiSortable",function(t){var n=c(o);n&&e.forEach(t,function(t,e){return e in v?("ui-floating"!==e||t!==!1&&t!==!0||(n.floating=t),void(m[e]=t)):(y[e]?("stop"===e&&(t=u(t,function(){a.$apply()}),t=u(t,f)),t=u(y[e],t)):b[e]&&(t=b[e](t)),m[e]=t,void o.sortable("option",e,t))})},!0),e.forEach(y,function(t,e){m[e]=u(t,m[e]),"stop"===e&&(m[e]=u(m[e],f))})):r.info("ui.sortable: ngModel not provided!",o),void o.sortable(m)):void r.error("ui.sortable: jQuery should be included before AngularJS!")}}}])}(window,window.angular),function(){function t(t,e,n){for(var i=(n||0)-1,r=t?t.length:0;++i<r;)if(t[i]===e)return i;return-1}function e(e,n){var i=typeof n;if(e=e.cache,"boolean"==i||null==n)return e[n]?0:-1;"number"!=i&&"string"!=i&&(i="object");var r="number"==i?n:b+n;return e=(e=e[i])&&e[r],"object"==i?e&&t(e,n)>-1?0:-1:e?0:-1}function n(t){var e=this.cache,n=typeof t;if("boolean"==n||null==t)e[t]=!0;else{"number"!=n&&"string"!=n&&(n="object");var i="number"==n?t:b+t,r=e[n]||(e[n]={});"object"==n?(r[i]||(r[i]=[])).push(t):r[i]=!0}}function i(t){return t.charCodeAt(0)}function r(t,e){for(var n=t.criteria,i=e.criteria,r=-1,a=n.length;++r<a;){var o=n[r],s=i[r];if(o!==s){if(o>s||"undefined"==typeof o)return 1;if(s>o||"undefined"==typeof s)return-1}}return t.index-e.index}function a(t){var e=-1,i=t.length,r=t[0],a=t[i/2|0],o=t[i-1];if(r&&"object"==typeof r&&a&&"object"==typeof a&&o&&"object"==typeof o)return!1;var s=l();s["false"]=s["null"]=s["true"]=s.undefined=!1;var u=l();for(u.array=t,u.cache=s,u.push=n;++e<i;)u.push(t[e]);return u}function o(t){return"\\"+J[t]}function s(){return g.pop()||[]}function l(){return m.pop()||{array:null,cache:null,criteria:null,"false":!1,index:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,value:null}}function u(t){return"function"!=typeof t.toString&&"string"==typeof(t+"")}function c(t){t.length=0,g.length<w&&g.push(t)}function d(t){var e=t.cache;e&&d(e),t.array=t.cache=t.criteria=t.object=t.number=t.string=t.value=null,m.length<w&&m.push(t)}function h(t,e,n){e||(e=0),"undefined"==typeof n&&(n=t?t.length:0);for(var i=-1,r=n-e||0,a=Array(0>r?0:r);++i<r;)a[i]=t[e+i];return a}function p(n){function g(t){return t&&"object"==typeof t&&!dr(t)&&Vi.call(t,"__wrapped__")?t:new m(t)}function m(t,e){this.__chain__=!!e,this.__wrapped__=t}function w(t){function e(){if(i){var t=h(i);Bi.apply(t,arguments)}if(this instanceof e){var a=ee(n.prototype),o=n.apply(a,t||arguments);return He(o)?o:a}return n.apply(r,t||arguments)}var n=t[0],i=t[2],r=t[4];return cr(e,t),e}function J(t,e,n,i,r){if(n){var a=n(t);if("undefined"!=typeof a)return a}var o=He(t);if(!o)return t;var l=Hi.call(t);if(!X[l]||!lr.nodeClass&&u(t))return t;var d=or[l];switch(l){case R:case W:return new d(+t);case V:case Y:return new d(t);case U:return a=d(t.source,S.exec(t)),a.lastIndex=t.lastIndex,a}var p=dr(t);if(e){var f=!i;i||(i=s()),r||(r=s());for(var g=i.length;g--;)if(i[g]==t)return r[g];a=p?d(t.length):{}}else a=p?h(t):kr({},t);return p&&(Vi.call(t,"index")&&(a.index=t.index),Vi.call(t,"input")&&(a.input=t.input)),e?(i.push(t),r.push(a),(p?wr:Cr)(t,function(t,o){a[o]=J(t,e,n,i,r)}),f&&(c(i),c(r)),a):a}function ee(t){return He(t)?Zi(t):{}}function ne(t,e,n){if("function"!=typeof t)return ai;if("undefined"==typeof e||!("prototype"in t))return t;var i=t.__bindData__;if("undefined"==typeof i&&(lr.funcNames&&(i=!t.name),i=i||!lr.funcDecomp,!i)){var r=ji.call(t);lr.funcNames||(i=!A.test(r)),i||(i=P.test(r),cr(t,i))}if(i===!1||i!==!0&&1&i[1])return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)};case 4:return function(n,i,r,a){return t.call(e,n,i,r,a)}}return jn(t,e)}function ie(t){function e(){var t=l?o:this;if(r){var f=h(r);Bi.apply(f,arguments)}if((a||c)&&(f||(f=h(arguments)),a&&Bi.apply(f,a),c&&f.length<s))return i|=16,ie([n,d?i:-4&i,f,null,o,s]);if(f||(f=arguments),u&&(n=t[p]),this instanceof e){t=ee(n.prototype);var g=n.apply(t,f);return He(g)?g:t}return n.apply(t,f)}var n=t[0],i=t[1],r=t[2],a=t[3],o=t[4],s=t[5],l=1&i,u=2&i,c=4&i,d=8&i,p=n;return cr(e,t),e}function re(n,i){var r=-1,o=ge(),s=n?n.length:0,l=s>=x&&o===t,u=[];if(l){var c=a(i);c?(o=e,i=c):l=!1}for(;++r<s;){var h=n[r];o(i,h)<0&&u.push(h)}return l&&d(i),u}function oe(t,e,n,i){for(var r=(i||0)-1,a=t?t.length:0,o=[];++r<a;){var s=t[r];if(s&&"object"==typeof s&&"number"==typeof s.length&&(dr(s)||be(s))){e||(s=oe(s,e,n));var l=-1,u=s.length,c=o.length;for(o.length+=u;++l<u;)o[c++]=s[l]}else n||o.push(s)}return o}function se(t,e,n,i,r,a){if(n){var o=n(t,e);if("undefined"!=typeof o)return!!o}if(t===e)return 0!==t||1/t==1/e;var l=typeof t,d=typeof e;if(!(t!==t||t&&Q[l]||e&&Q[d]))return!1;if(null==t||null==e)return t===e;var h=Hi.call(t),p=Hi.call(e);if(h==L&&(h=B),p==L&&(p=B),h!=p)return!1;switch(h){case R:case W:return+t==+e;case V:return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case U:case Y:return t==Ti(e)}var f=h==F;if(!f){var g=Vi.call(t,"__wrapped__"),m=Vi.call(e,"__wrapped__");if(g||m)return se(g?t.__wrapped__:t,m?e.__wrapped__:e,n,i,r,a);if(h!=B||!lr.nodeClass&&(u(t)||u(e)))return!1;var v=!lr.argsObject&&be(t)?Si:t.constructor,y=!lr.argsObject&&be(e)?Si:e.constructor;if(v!=y&&!(ze(v)&&v instanceof v&&ze(y)&&y instanceof y)&&"constructor"in t&&"constructor"in e)return!1}var b=!r;r||(r=s()),a||(a=s());for(var x=r.length;x--;)if(r[x]==t)return a[x]==e;var w=0;if(o=!0,r.push(t),a.push(e),f){if(x=t.length,w=e.length,o=w==x,o||i)for(;w--;){var k=x,$=e[w];if(i)for(;k--&&!(o=se(t[k],$,n,i,r,a)););else if(!(o=se(t[w],$,n,i,r,a)))break}}else _r(e,function(e,s,l){return Vi.call(l,s)?(w++,o=Vi.call(t,s)&&se(t[s],e,n,i,r,a)):void 0}),o&&!i&&_r(t,function(t,e,n){return Vi.call(n,e)?o=--w>-1:void 0});return r.pop(),a.pop(),b&&(c(r),c(a)),o}function le(t,e,n,i,r){(dr(e)?rn:Cr)(e,function(e,a){var o,s,l=e,u=t[a];if(e&&((s=dr(e))||Mr(e))){for(var c=i.length;c--;)if(o=i[c]==e){u=r[c];break}if(!o){var d;n&&(l=n(u,e),(d="undefined"!=typeof l)&&(u=l)),d||(u=s?dr(u)?u:[]:Mr(u)?u:{}),i.push(e),r.push(u),d||le(u,e,n,i,r)}}else n&&(l=n(u,e),"undefined"==typeof l&&(l=e)),"undefined"!=typeof l&&(u=l);t[a]=u})}function ue(t,e){return t+Wi(ar()*(e-t+1))}function ce(n,i,r){var o=-1,l=ge(),u=n?n.length:0,h=[],p=!i&&u>=x&&l===t,f=r||p?s():h;if(p){var g=a(f);l=e,f=g}for(;++o<u;){var m=n[o],v=r?r(m,o,n):m;(i?!o||f[f.length-1]!==v:l(f,v)<0)&&((r||p)&&f.push(v),h.push(m))}return p?(c(f.array),d(f)):r&&c(f),h}function de(t){return function(e,n,i){var r={};if(n=g.createCallback(n,i,3),dr(e))for(var a=-1,o=e.length;++a<o;){var s=e[a];t(r,s,n(s,a,e),e)}else wr(e,function(e,i,a){t(r,e,n(e,i,a),a)});return r}}function he(t,e,n,i,r,a){var o=1&e,s=2&e,l=4&e,u=16&e,c=32&e;if(!s&&!ze(t))throw new Ei;u&&!n.length&&(e&=-17,u=n=!1),c&&!i.length&&(e&=-33,c=i=!1);var d=t&&t.__bindData__;if(d&&d!==!0)return d=h(d),d[2]&&(d[2]=h(d[2])),d[3]&&(d[3]=h(d[3])),!o||1&d[1]||(d[4]=r),!o&&1&d[1]&&(e|=8),!l||4&d[1]||(d[5]=a),u&&Bi.apply(d[2]||(d[2]=[]),n),c&&Ki.apply(d[3]||(d[3]=[]),i),d[1]|=e,he.apply(null,d);var p=1==e||17===e?w:ie;return p([t,e,n,i,r,a])}function pe(){Z.shadowedProps=z,Z.array=Z.bottom=Z.loop=Z.top="",Z.init="iterable",Z.useHas=!0;for(var t,e=0;t=arguments[e];e++)for(var n in t)Z[n]=t[n];var i=Z.args;Z.firstArg=/^[^,]+/.exec(i)[0];var r=Ci("baseCreateCallback, errorClass, errorProto, hasOwnProperty, indicatorObject, isArguments, isArray, isString, keys, objectProto, objectTypes, nonEnumProps, stringClass, stringProto, toString","return function("+i+") {\n"+ur(Z)+"\n}");return r(ne,j,Pi,Vi,y,be,dr,je,Z.keys,Ni,Q,sr,Y,Oi,Hi)}function fe(t){return vr[t]}function ge(){var e=(e=g.indexOf)===Cn?t:e;return e}function me(t){return"function"==typeof t&&Li.test(t)}function ve(t){var e,n;return!t||Hi.call(t)!=B||(e=t.constructor,ze(e)&&!(e instanceof e))||!lr.argsClass&&be(t)||!lr.nodeClass&&u(t)?!1:lr.ownLast?(_r(t,function(t,e,i){return n=Vi.call(i,e),!1}),n!==!1):(_r(t,function(t,e){n=e}),"undefined"==typeof n||Vi.call(t,n))}function ye(t){return yr[t]}function be(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Hi.call(t)==L||!1}function xe(t,e,n,i){return"boolean"!=typeof e&&null!=e&&(i=n,n=e,e=!1),J(t,e,"function"==typeof n&&ne(n,i,1))}function we(t,e,n){return J(t,!0,"function"==typeof e&&ne(e,n,1))}function ke(t,e){var n=ee(t);return e?kr(n,e):n}function $e(t,e,n){var i;return e=g.createCallback(e,n,3),Cr(t,function(t,n,r){return e(t,n,r)?(i=n,!1):void 0}),i}function _e(t,e,n){var i;return e=g.createCallback(e,n,3),Me(t,function(t,n,r){return e(t,n,r)?(i=n,!1):void 0}),i}function Ce(t,e,n){var i=[];_r(t,function(t,e){i.push(e,t)});var r=i.length;for(e=ne(e,n,3);r--&&e(i[r--],i[r],t)!==!1;);return t}function Me(t,e,n){var i=pr(t),r=i.length;for(e=ne(e,n,3);r--;){var a=i[r];if(e(t[a],a,t)===!1)break}return t}function De(t){var e=[];return _r(t,function(t,n){ze(t)&&e.push(n)}),e.sort()}function Se(t,e){return t?Vi.call(t,e):!1}function Ae(t){for(var e=-1,n=pr(t),i=n.length,r={};++e<i;){var a=n[e];r[t[a]]=a}return r}function Te(t){return t===!0||t===!1||t&&"object"==typeof t&&Hi.call(t)==R||!1}function Ee(t){return t&&"object"==typeof t&&Hi.call(t)==W||!1}function Ie(t){return t&&1===t.nodeType||!1}function Pe(t){var e=!0;if(!t)return e;var n=Hi.call(t),i=t.length;return n==F||n==Y||(lr.argsClass?n==L:be(t))||n==B&&"number"==typeof i&&ze(t.splice)?!i:(Cr(t,function(){return e=!1}),e)}function Ne(t,e,n,i){return se(t,e,"function"==typeof n&&ne(n,i,2))}function Oe(t){return Ji(t)&&!tr(parseFloat(t))}function ze(t){return"function"==typeof t}function He(t){return!(!t||!Q[typeof t])}function Le(t){return Re(t)&&t!=+t}function Fe(t){return null===t}function Re(t){return"number"==typeof t||t&&"object"==typeof t&&Hi.call(t)==V||!1}function We(t){return t&&Q[typeof t]&&Hi.call(t)==U||!1}function je(t){return"string"==typeof t||t&&"object"==typeof t&&Hi.call(t)==Y||!1}function qe(t){return"undefined"==typeof t}function Ve(t,e,n){var i={};return e=g.createCallback(e,n,3),Cr(t,function(t,n,r){i[n]=e(t,n,r)}),i}function Be(t){var e=arguments,n=2;if(!He(t))return t;if("number"!=typeof e[2]&&(n=e.length),n>3&&"function"==typeof e[n-2])var i=ne(e[--n-1],e[n--],2);else n>2&&"function"==typeof e[n-1]&&(i=e[--n]);for(var r=h(arguments,1,n),a=-1,o=s(),l=s();++a<n;)le(t,r[a],i,o,l);return c(o),c(l),t}function Ue(t,e,n){var i={};if("function"!=typeof e){var r=[];_r(t,function(t,e){r.push(e)}),r=re(r,oe(arguments,!0,!1,1));for(var a=-1,o=r.length;++a<o;){var s=r[a];i[s]=t[s]}}else e=g.createCallback(e,n,3),_r(t,function(t,n,r){e(t,n,r)||(i[n]=t)});return i}function Ye(t){for(var e=-1,n=pr(t),i=n.length,r=wi(i);++e<i;){var a=n[e];r[e]=[a,t[a]]}return r}function Xe(t,e,n){var i={};if("function"!=typeof e)for(var r=-1,a=oe(arguments,!0,!1,1),o=He(t)?a.length:0;++r<o;){var s=a[r];s in t&&(i[s]=t[s])}else e=g.createCallback(e,n,3),_r(t,function(t,n,r){e(t,n,r)&&(i[n]=t)});return i}function Ke(t,e,n,i){var r=dr(t);if(null==n)if(r)n=[];else{var a=t&&t.constructor,o=a&&a.prototype;n=ee(o)}return e&&(e=g.createCallback(e,i,4),(r?wr:Cr)(t,function(t,i,r){return e(n,t,i,r)})),n}function Ge(t){for(var e=-1,n=pr(t),i=n.length,r=wi(i);++e<i;)r[e]=t[n[e]];return r}function Ze(t){var e=arguments,n=-1,i=oe(e,!0,!1,1),r=e[2]&&e[2][e[1]]===t?1:i.length,a=wi(r);for(lr.unindexedChars&&je(t)&&(t=t.split(""));++n<r;)a[n]=t[i[n]];return a}function Qe(t,e,n){var i=-1,r=ge(),a=t?t.length:0,o=!1;return n=(0>n?nr(0,a+n):n)||0,dr(t)?o=r(t,e,n)>-1:"number"==typeof a?o=(je(t)?t.indexOf(e,n):r(t,e,n))>-1:wr(t,function(t){return++i>=n?!(o=t===e):void 0}),o}function Je(t,e,n){var i=!0;if(e=g.createCallback(e,n,3),dr(t))for(var r=-1,a=t.length;++r<a&&(i=!!e(t[r],r,t)););else wr(t,function(t,n,r){return i=!!e(t,n,r)});return i}function tn(t,e,n){var i=[];if(e=g.createCallback(e,n,3),dr(t))for(var r=-1,a=t.length;++r<a;){var o=t[r];e(o,r,t)&&i.push(o)}else wr(t,function(t,n,r){e(t,n,r)&&i.push(t)});return i}function en(t,e,n){if(e=g.createCallback(e,n,3),!dr(t)){var i;return wr(t,function(t,n,r){return e(t,n,r)?(i=t,!1):void 0}),i}for(var r=-1,a=t.length;++r<a;){var o=t[r];if(e(o,r,t))return o}}function nn(t,e,n){var i;return e=g.createCallback(e,n,3),an(t,function(t,n,r){return e(t,n,r)?(i=t,!1):void 0}),i}function rn(t,e,n){if(e&&"undefined"==typeof n&&dr(t))for(var i=-1,r=t.length;++i<r&&e(t[i],i,t)!==!1;);else wr(t,e,n);return t}function an(t,e,n){var i=t,r=t?t.length:0;if(e=e&&"undefined"==typeof n?e:ne(e,n,3),dr(t))for(;r--&&e(t[r],r,t)!==!1;);else{if("number"!=typeof r){var a=pr(t);r=a.length}else lr.unindexedChars&&je(t)&&(i=t.split(""));wr(t,function(t,n,o){return n=a?a[--r]:--r,e(i[n],n,o)})}return t}function on(t,e){var n=h(arguments,2),i=-1,r="function"==typeof e,a=t?t.length:0,o=wi("number"==typeof a?a:0);return rn(t,function(t){o[++i]=(r?e:t[e]).apply(t,n)}),o}function sn(t,e,n){var i=-1,r=t?t.length:0,a=wi("number"==typeof r?r:0);if(e=g.createCallback(e,n,3),dr(t))for(;++i<r;)a[i]=e(t[i],i,t);else wr(t,function(t,n,r){a[++i]=e(t,n,r)});return a}function ln(t,e,n){var r=-1/0,a=r;if("function"!=typeof e&&n&&n[e]===t&&(e=null),null==e&&dr(t))for(var o=-1,s=t.length;++o<s;){var l=t[o];l>a&&(a=l)}else e=null==e&&je(t)?i:g.createCallback(e,n,3),wr(t,function(t,n,i){var o=e(t,n,i);o>r&&(r=o,a=t)});return a}function un(t,e,n){var r=1/0,a=r;if("function"!=typeof e&&n&&n[e]===t&&(e=null),null==e&&dr(t))for(var o=-1,s=t.length;++o<s;){var l=t[o];a>l&&(a=l)}else e=null==e&&je(t)?i:g.createCallback(e,n,3),wr(t,function(t,n,i){var o=e(t,n,i);r>o&&(r=o,a=t)});return a}function cn(t,e,n,i){var r=arguments.length<3;if(e=g.createCallback(e,i,4),dr(t)){var a=-1,o=t.length;for(r&&(n=t[++a]);++a<o;)n=e(n,t[a],a,t)}else wr(t,function(t,i,a){n=r?(r=!1,t):e(n,t,i,a)});return n}function dn(t,e,n,i){var r=arguments.length<3;return e=g.createCallback(e,i,4),an(t,function(t,i,a){n=r?(r=!1,t):e(n,t,i,a)}),n}function hn(t,e,n){return e=g.createCallback(e,n,3),tn(t,function(t,n,i){return!e(t,n,i)})}function pn(t,e,n){if(t&&"number"!=typeof t.length?t=Ge(t):lr.unindexedChars&&je(t)&&(t=t.split("")),null==e||n)return t?t[ue(0,t.length-1)]:f;var i=fn(t);return i.length=ir(nr(0,e),i.length),i}function fn(t){var e=-1,n=t?t.length:0,i=wi("number"==typeof n?n:0);return rn(t,function(t){var n=ue(0,++e);i[e]=i[n],i[n]=t}),i}function gn(t){var e=t?t.length:0;return"number"==typeof e?e:pr(t).length}function mn(t,e,n){var i;if(e=g.createCallback(e,n,3),dr(t))for(var r=-1,a=t.length;++r<a&&!(i=e(t[r],r,t)););else wr(t,function(t,n,r){return!(i=e(t,n,r))});return!!i}function vn(t,e,n){var i=-1,a=dr(e),o=t?t.length:0,u=wi("number"==typeof o?o:0);for(a||(e=g.createCallback(e,n,3)),rn(t,function(t,n,r){var o=u[++i]=l();a?o.criteria=sn(e,function(e){return t[e]}):(o.criteria=s())[0]=e(t,n,r),o.index=i,o.value=t}),o=u.length,u.sort(r);o--;){var h=u[o];u[o]=h.value,a||c(h.criteria),d(h)}return u}function yn(t){return t&&"number"==typeof t.length?lr.unindexedChars&&je(t)?t.split(""):h(t):Ge(t)}function bn(t){for(var e=-1,n=t?t.length:0,i=[];++e<n;){var r=t[e];r&&i.push(r)}return i}function xn(t){return re(t,oe(arguments,!0,!0,1))}function wn(t,e,n){var i=-1,r=t?t.length:0;for(e=g.createCallback(e,n,3);++i<r;)if(e(t[i],i,t))return i;return-1}function kn(t,e,n){var i=t?t.length:0;for(e=g.createCallback(e,n,3);i--;)if(e(t[i],i,t))return i;return-1}function $n(t,e,n){var i=0,r=t?t.length:0;if("number"!=typeof e&&null!=e){var a=-1;for(e=g.createCallback(e,n,3);++a<r&&e(t[a],a,t);)i++}else if(i=e,null==i||n)return t?t[0]:f;return h(t,0,ir(nr(0,i),r))}function _n(t,e,n,i){return"boolean"!=typeof e&&null!=e&&(i=n,n="function"!=typeof e&&i&&i[e]===t?null:e,e=!1),null!=n&&(t=sn(t,n,i)),oe(t,e)}function Cn(e,n,i){if("number"==typeof i){var r=e?e.length:0;i=0>i?nr(0,r+i):i||0}else if(i){var a=Nn(e,n);return e[a]===n?a:-1}return t(e,n,i)}function Mn(t,e,n){var i=0,r=t?t.length:0;if("number"!=typeof e&&null!=e){var a=r;for(e=g.createCallback(e,n,3);a--&&e(t[a],a,t);)i++}else i=null==e||n?1:e||i;return h(t,0,ir(nr(0,r-i),r))}function Dn(){for(var n=[],i=-1,r=arguments.length,o=s(),l=ge(),u=l===t,h=s();++i<r;){var p=arguments[i];(dr(p)||be(p))&&(n.push(p),o.push(u&&p.length>=x&&a(i?n[i]:h)))}var f=n[0],g=-1,m=f?f.length:0,v=[];t:for(;++g<m;){var y=o[0];if(p=f[g],(y?e(y,p):l(h,p))<0){for(i=r,(y||h).push(p);--i;)if(y=o[i],(y?e(y,p):l(n[i],p))<0)continue t;v.push(p)}}for(;r--;)y=o[r],y&&d(y);return c(o),c(h),v}function Sn(t,e,n){var i=0,r=t?t.length:0;if("number"!=typeof e&&null!=e){var a=r;for(e=g.createCallback(e,n,3);a--&&e(t[a],a,t);)i++}else if(i=e,null==i||n)return t?t[r-1]:f;return h(t,nr(0,r-i))}function An(t,e,n){var i=t?t.length:0;for("number"==typeof n&&(i=(0>n?nr(0,i+n):ir(n,i-1))+1);i--;)if(t[i]===e)return i;return-1}function Tn(t){for(var e=arguments,n=0,i=e.length,r=t?t.length:0;++n<i;)for(var a=-1,o=e[n];++a<r;)t[a]===o&&(Xi.call(t,a--,1),r--);return t}function En(t,e,n){t=+t||0,n="number"==typeof n?n:+n||1,null==e&&(e=t,t=0);for(var i=-1,r=nr(0,Fi((e-t)/(n||1))),a=wi(r);++i<r;)a[i]=t,t+=n;return a}function In(t,e,n){var i=-1,r=t?t.length:0,a=[];for(e=g.createCallback(e,n,3);++i<r;){var o=t[i];e(o,i,t)&&(a.push(o),Xi.call(t,i--,1),r--)}return a}function Pn(t,e,n){if("number"!=typeof e&&null!=e){var i=0,r=-1,a=t?t.length:0;for(e=g.createCallback(e,n,3);++r<a&&e(t[r],r,t);)i++}else i=null==e||n?1:nr(0,e);return h(t,i)}function Nn(t,e,n,i){var r=0,a=t?t.length:r;for(n=n?g.createCallback(n,i,1):ai,e=n(e);a>r;){var o=r+a>>>1;n(t[o])<e?r=o+1:a=o}return r}function On(){return ce(oe(arguments,!0,!0))}function zn(t,e,n,i){return"boolean"!=typeof e&&null!=e&&(i=n,n="function"!=typeof e&&i&&i[e]===t?null:e,e=!1),null!=n&&(n=g.createCallback(n,i,3)),ce(t,e,n)}function Hn(t){return re(t,h(arguments,1))}function Ln(){for(var t=-1,e=arguments.length;++t<e;){var n=arguments[t];if(dr(n)||be(n))var i=i?ce(re(i,n).concat(re(n,i))):n}return i||[]}function Fn(){for(var t=arguments.length>1?arguments:arguments[0],e=-1,n=t?ln(Tr(t,"length")):0,i=wi(0>n?0:n);++e<n;)i[e]=Tr(t,e);return i}function Rn(t,e){var n=-1,i=t?t.length:0,r={};for(e||!i||dr(t[0])||(e=[]);++n<i;){var a=t[n];e?r[a]=e[n]:a&&(r[a[0]]=a[1])}return r}function Wn(t,e){if(!ze(e))throw new Ei;return function(){return--t<1?e.apply(this,arguments):void 0}}function jn(t,e){return arguments.length>2?he(t,17,h(arguments,2),null,e):he(t,1,null,null,e)}function qn(t){for(var e=arguments.length>1?oe(arguments,!0,!1,1):De(t),n=-1,i=e.length;++n<i;){var r=e[n];t[r]=he(t[r],1,null,null,t)}return t}function Vn(t,e){return arguments.length>2?he(e,19,h(arguments,2),null,t):he(e,3,null,null,t)}function Bn(){for(var t=arguments,e=t.length;e--;)if(!ze(t[e]))throw new Ei;return function(){for(var e=arguments,n=t.length;n--;)e=[t[n].apply(this,e)];return e[0]}}function Un(t,e){return e="number"==typeof e?e:+e||t.length,he(t,4,null,null,null,e)}function Yn(t,e,n){var i,r,a,o,s,l,u,c=0,d=!1,h=!0;if(!ze(t))throw new Ei;if(e=nr(0,e)||0,n===!0){var p=!0;h=!1}else He(n)&&(p=n.leading,d="maxWait"in n&&(nr(e,n.maxWait)||0),h="trailing"in n?n.trailing:h);var g=function(){var n=e-(Ir()-o);if(0>=n){r&&Ri(r);var d=u;r=l=u=f,d&&(c=Ir(),a=t.apply(s,i),l||r||(i=s=null))}else l=Yi(g,n)},m=function(){l&&Ri(l),r=l=u=f,(h||d!==e)&&(c=Ir(),a=t.apply(s,i),l||r||(i=s=null))};return function(){if(i=arguments,o=Ir(),s=this,u=h&&(l||!p),d===!1)var n=p&&!l;else{r||p||(c=o);var f=d-(o-c),v=0>=f;v?(r&&(r=Ri(r)),c=o,a=t.apply(s,i)):r||(r=Yi(m,f))}return v&&l?l=Ri(l):l||e===d||(l=Yi(g,e)),n&&(v=!0,a=t.apply(s,i)),!v||l||r||(i=s=null),a}}function Xn(t){if(!ze(t))throw new Ei;var e=h(arguments,1);return Yi(function(){t.apply(f,e)},1)}function Kn(t,e){if(!ze(t))throw new Ei;var n=h(arguments,2);return Yi(function(){t.apply(f,n)},e)}function Gn(t,e){if(!ze(t))throw new Ei;var n=function(){var i=n.cache,r=e?e.apply(this,arguments):b+arguments[0];return Vi.call(i,r)?i[r]:i[r]=t.apply(this,arguments)};return n.cache={},n}function Zn(t){var e,n;if(!ze(t))throw new Ei;return function(){return e?n:(e=!0,n=t.apply(this,arguments),t=null,n)}}function Qn(t){return he(t,16,h(arguments,1))}function Jn(t){return he(t,32,null,h(arguments,1))}function ti(t,e,n){var i=!0,r=!0;if(!ze(t))throw new Ei;return n===!1?i=!1:He(n)&&(i="leading"in n?n.leading:i,r="trailing"in n?n.trailing:r),K.leading=i,K.maxWait=e,K.trailing=r,Yn(t,e,K)}function ei(t,e){return he(e,16,[t])}function ni(t){return function(){return t}}function ii(t,e,n){var i=typeof t;if(null==t||"function"==i)return ne(t,e,n);if("object"!=i)return ui(t);var r=pr(t),a=r[0],o=t[a];return 1!=r.length||o!==o||He(o)?function(e){for(var n=r.length,i=!1;n--&&(i=se(e[r[n]],t[r[n]],null,!0)););return i}:function(t){var e=t[a];return o===e&&(0!==o||1/o==1/e)}}function ri(t){return null==t?"":Ti(t).replace(xr,fe)}function ai(t){return t}function oi(t,e,n){var i=!0,r=e&&De(e);e&&(n||r.length)||(null==n&&(n=e),a=m,e=t,t=g,r=De(e)),n===!1?i=!1:He(n)&&"chain"in n&&(i=n.chain);var a=t,o=ze(a);rn(r,function(n){var r=t[n]=e[n];o&&(a.prototype[n]=function(){var e=this.__chain__,n=this.__wrapped__,o=[n];Bi.apply(o,arguments);var s=r.apply(t,o);if(i||e){if(n===s&&He(s))return this;s=new a(s),s.__chain__=e}return s})})}function si(){return n._=zi,this}function li(){}function ui(t){return function(e){return e[t]}}function ci(t,e,n){var i=null==t,r=null==e;if(null==n&&("boolean"==typeof t&&r?(n=t,t=1):r||"boolean"!=typeof e||(n=e,r=!0)),i&&r&&(e=1),t=+t||0,r?(e=t,t=0):e=+e||0,n||t%1||e%1){var a=ar();return ir(t+a*(e-t+parseFloat("1e-"+((a+"").length-1))),e)}return ue(t,e)}function di(t,e){if(t){var n=t[e];return ze(n)?t[e]():n}}function hi(t,e,n){var i=g.templateSettings;t=Ti(t||""),n=$r({},n,i);var r,a=$r({},n.imports,i.imports),s=pr(a),l=Ge(a),u=0,c=n.interpolate||I,d="__p += '",h=Ai((n.escape||I).source+"|"+c.source+"|"+(c===T?D:I).source+"|"+(n.evaluate||I).source+"|$","g");t.replace(h,function(e,n,i,a,s,l){return i||(i=a),d+=t.slice(u,l).replace(N,o),n&&(d+="' +\n__e("+n+") +\n'"),s&&(r=!0,d+="';\n"+s+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=l+e.length,e}),d+="';\n";var p=n.variable,m=p;m||(p="obj",d="with ("+p+") {\n"+d+"\n}\n"),d=(r?d.replace(_,""):d).replace(C,"$1").replace(M,"$1;"),d="function("+p+") {\n"+(m?"":p+" || ("+p+" = {});\n")+"var __t, __p = '', __e = _.escape"+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v="\n/*\n//# sourceURL="+(n.sourceURL||"/lodash/template/source["+H++ +"]")+"\n*/";try{var y=Ci(s,"return "+d+v).apply(f,l)}catch(b){throw b.source=d,b}return e?y(e):(y.source=d,y)}function pi(t,e,n){t=(t=+t)>-1?t:0;var i=-1,r=wi(t);for(e=ne(e,n,1);++i<t;)r[i]=e(i);return r}function fi(t){return null==t?"":Ti(t).replace(br,ye)}function gi(t){var e=++v;return Ti(null==t?"":t)+e}function mi(t){return t=new m(t),t.__chain__=!0,t}function vi(t,e){return e(t),t}function yi(){return this.__chain__=!0,this}function bi(){return Ti(this.__wrapped__)}function xi(){return this.__wrapped__}n=n?ae.defaults(te.Object(),n,ae.pick(te,O)):te;var wi=n.Array,ki=n.Boolean,$i=n.Date,_i=n.Error,Ci=n.Function,Mi=n.Math,Di=n.Number,Si=n.Object,Ai=n.RegExp,Ti=n.String,Ei=n.TypeError,Ii=[],Pi=_i.prototype,Ni=Si.prototype,Oi=Ti.prototype,zi=n._,Hi=Ni.toString,Li=Ai("^"+Ti(Hi).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),Fi=Mi.ceil,Ri=n.clearTimeout,Wi=Mi.floor,ji=Ci.prototype.toString,qi=me(qi=Si.getPrototypeOf)&&qi,Vi=Ni.hasOwnProperty,Bi=Ii.push,Ui=Ni.propertyIsEnumerable,Yi=n.setTimeout,Xi=Ii.splice,Ki=Ii.unshift,Gi=function(){try{var t={},e=me(e=Si.defineProperty)&&e,n=e(t,t,t)&&e}catch(i){}return n}(),Zi=me(Zi=Si.create)&&Zi,Qi=me(Qi=wi.isArray)&&Qi,Ji=n.isFinite,tr=n.isNaN,er=me(er=Si.keys)&&er,nr=Mi.max,ir=Mi.min,rr=n.parseInt,ar=Mi.random,or={};or[F]=wi,or[R]=ki,or[W]=$i,or[q]=Ci,or[B]=Si,or[V]=Di,or[U]=Ai,or[Y]=Ti;var sr={};sr[F]=sr[W]=sr[V]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},sr[R]=sr[Y]={constructor:!0,toString:!0,valueOf:!0},sr[j]=sr[q]=sr[U]={constructor:!0,toString:!0},sr[B]={constructor:!0},function(){for(var t=z.length;t--;){var e=z[t];for(var n in sr)Vi.call(sr,n)&&!Vi.call(sr[n],e)&&(sr[n][e]=!1)}}(),m.prototype=g.prototype;var lr=g.support={};!function(){var t=function(){this.x=1},e={0:1,length:1},i=[];t.prototype={valueOf:1,y:1};for(var r in new t)i.push(r);for(r in arguments);lr.argsClass=Hi.call(arguments)==L,lr.argsObject=arguments.constructor==Si&&!(arguments instanceof wi),lr.enumErrorProps=Ui.call(Pi,"message")||Ui.call(Pi,"name"),lr.enumPrototypes=Ui.call(t,"prototype"),lr.funcDecomp=!me(n.WinRTError)&&P.test(p),lr.funcNames="string"==typeof Ci.name,lr.nonEnumArgs=0!=r,lr.nonEnumShadows=!/valueOf/.test(i),lr.ownLast="x"!=i[0],lr.spliceObjects=(Ii.splice.call(e,0,1),!e[0]),lr.unindexedChars="x"[0]+Si("x")[0]!="xx";try{lr.nodeClass=!(Hi.call(document)==B&&!({toString:0}+""))}catch(a){lr.nodeClass=!0}}(1),g.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:T,variable:"",imports:{_:g}};var ur=function(t){var e="var index, iterable = "+t.firstArg+", result = "+t.init+";\nif (!iterable) return result;\n"+t.top+";";t.array?(e+="\nvar length = iterable.length; index = -1;\nif ("+t.array+") {  ",lr.unindexedChars&&(e+="\n  if (isString(iterable)) {\n    iterable = iterable.split('')\n  }  "),e+="\n  while (++index < length) {\n    "+t.loop+";\n  }\n}\nelse {  "):lr.nonEnumArgs&&(e+="\n  var length = iterable.length; index = -1;\n  if (length && isArguments(iterable)) {\n    while (++index < length) {\n      index += '';\n      "+t.loop+";\n    }\n  } else {  "),lr.enumPrototypes&&(e+="\n  var skipProto = typeof iterable == 'function';\n  "),lr.enumErrorProps&&(e+="\n  var skipErrorProps = iterable === errorProto || iterable instanceof Error;\n  ");var n=[];if(lr.enumPrototypes&&n.push('!(skipProto && index == "prototype")'),lr.enumErrorProps&&n.push('!(skipErrorProps && (index == "message" || index == "name"))'),t.useHas&&t.keys)e+="\n  var ownIndex = -1,\n      ownProps = objectTypes[typeof iterable] && keys(iterable),\n      length = ownProps ? ownProps.length : 0;\n\n  while (++ownIndex < length) {\n    index = ownProps[ownIndex];\n",n.length&&(e+="    if ("+n.join(" && ")+") {\n  "),e+=t.loop+";    ",n.length&&(e+="\n    }"),e+="\n  }  ";else if(e+="\n  for (index in iterable) {\n",t.useHas&&n.push("hasOwnProperty.call(iterable, index)"),n.length&&(e+="    if ("+n.join(" && ")+") {\n  "),e+=t.loop+";    ",n.length&&(e+="\n    }"),e+="\n  }    ",lr.nonEnumShadows){for(e+="\n\n  if (iterable !== objectProto) {\n    var ctor = iterable.constructor,\n        isProto = iterable === (ctor && ctor.prototype),\n        className = iterable === stringProto ? stringClass : iterable === errorProto ? errorClass : toString.call(iterable),\n        nonEnum = nonEnumProps[className];\n      ",k=0;k<7;k++)e+="\n    index = '"+t.shadowedProps[k]+"';\n    if ((!(isProto && nonEnum[index]) && hasOwnProperty.call(iterable, index))",t.useHas||(e+=" || (!nonEnum[index] && iterable[index] !== objectProto[index])"),e+=") {\n      "+t.loop+";\n    }      ";e+="\n  }    "}return(t.array||lr.nonEnumArgs)&&(e+="\n}"),e+=t.bottom+";\nreturn result"};Zi||(ee=function(){function t(){}return function(e){if(He(e)){t.prototype=e;var i=new t;t.prototype=null}return i||n.Object()}}());var cr=Gi?function(t,e){G.value=e,Gi(t,"__bindData__",G)}:li;lr.argsClass||(be=function(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Vi.call(t,"callee")&&!Ui.call(t,"callee")||!1});var dr=Qi||function(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Hi.call(t)==F||!1},hr=pe({args:"object",init:"[]",top:"if (!(objectTypes[typeof object])) return result",loop:"result.push(index)"}),pr=er?function(t){return He(t)?lr.enumPrototypes&&"function"==typeof t||lr.nonEnumArgs&&t.length&&be(t)?hr(t):er(t):[]}:hr,fr={args:"collection, callback, thisArg",top:"callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3)",array:"typeof length == 'number'",keys:pr,loop:"if (callback(iterable[index], index, collection) === false) return result"},gr={args:"object, source, guard",top:"var args = arguments,\n    argsIndex = 0,\n    argsLength = typeof guard == 'number' ? 2 : args.length;\nwhile (++argsIndex < argsLength) {\n  iterable = args[argsIndex];\n  if (iterable && objectTypes[typeof iterable]) {",keys:pr,loop:"if (typeof result[index] == 'undefined') result[index] = iterable[index]",bottom:"  }\n}"},mr={top:"if (!objectTypes[typeof iterable]) return result;\n"+fr.top,array:!1},vr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yr=Ae(vr),br=Ai("("+pr(yr).join("|")+")","g"),xr=Ai("["+pr(vr).join("")+"]","g"),wr=pe(fr),kr=pe(gr,{top:gr.top.replace(";",";\nif (argsLength > 3 && typeof args[argsLength - 2] == 'function') {\n  var callback = baseCreateCallback(args[--argsLength - 1], args[argsLength--], 2);\n} else if (argsLength > 2 && typeof args[argsLength - 1] == 'function') {\n  callback = args[--argsLength];\n}"),loop:"result[index] = callback ? callback(result[index], iterable[index]) : iterable[index]"}),$r=pe(gr),_r=pe(fr,mr,{useHas:!1}),Cr=pe(fr,mr);
ze(/x/)&&(ze=function(t){return"function"==typeof t&&Hi.call(t)==q});var Mr=qi?function(t){if(!t||Hi.call(t)!=B||!lr.argsClass&&be(t))return!1;var e=t.valueOf,n=me(e)&&(n=qi(e))&&qi(n);return n?t==n||qi(t)==n:ve(t)}:ve,Dr=de(function(t,e,n){Vi.call(t,n)?t[n]++:t[n]=1}),Sr=de(function(t,e,n){(Vi.call(t,n)?t[n]:t[n]=[]).push(e)}),Ar=de(function(t,e,n){t[n]=e}),Tr=sn,Er=tn,Ir=me(Ir=$i.now)&&Ir||function(){return(new $i).getTime()},Pr=8==rr($+"08")?rr:function(t,e){return rr(je(t)?t.replace(E,""):t,e||0)};return g.after=Wn,g.assign=kr,g.at=Ze,g.bind=jn,g.bindAll=qn,g.bindKey=Vn,g.chain=mi,g.compact=bn,g.compose=Bn,g.constant=ni,g.countBy=Dr,g.create=ke,g.createCallback=ii,g.curry=Un,g.debounce=Yn,g.defaults=$r,g.defer=Xn,g.delay=Kn,g.difference=xn,g.filter=tn,g.flatten=_n,g.forEach=rn,g.forEachRight=an,g.forIn=_r,g.forInRight=Ce,g.forOwn=Cr,g.forOwnRight=Me,g.functions=De,g.groupBy=Sr,g.indexBy=Ar,g.initial=Mn,g.intersection=Dn,g.invert=Ae,g.invoke=on,g.keys=pr,g.map=sn,g.mapValues=Ve,g.max=ln,g.memoize=Gn,g.merge=Be,g.min=un,g.omit=Ue,g.once=Zn,g.pairs=Ye,g.partial=Qn,g.partialRight=Jn,g.pick=Xe,g.pluck=Tr,g.property=ui,g.pull=Tn,g.range=En,g.reject=hn,g.remove=In,g.rest=Pn,g.shuffle=fn,g.sortBy=vn,g.tap=vi,g.throttle=ti,g.times=pi,g.toArray=yn,g.transform=Ke,g.union=On,g.uniq=zn,g.values=Ge,g.where=Er,g.without=Hn,g.wrap=ei,g.xor=Ln,g.zip=Fn,g.zipObject=Rn,g.collect=sn,g.drop=Pn,g.each=rn,g.eachRight=an,g.extend=kr,g.methods=De,g.object=Rn,g.select=tn,g.tail=Pn,g.unique=zn,g.unzip=Fn,oi(g),g.clone=xe,g.cloneDeep=we,g.contains=Qe,g.escape=ri,g.every=Je,g.find=en,g.findIndex=wn,g.findKey=$e,g.findLast=nn,g.findLastIndex=kn,g.findLastKey=_e,g.has=Se,g.identity=ai,g.indexOf=Cn,g.isArguments=be,g.isArray=dr,g.isBoolean=Te,g.isDate=Ee,g.isElement=Ie,g.isEmpty=Pe,g.isEqual=Ne,g.isFinite=Oe,g.isFunction=ze,g.isNaN=Le,g.isNull=Fe,g.isNumber=Re,g.isObject=He,g.isPlainObject=Mr,g.isRegExp=We,g.isString=je,g.isUndefined=qe,g.lastIndexOf=An,g.mixin=oi,g.noConflict=si,g.noop=li,g.now=Ir,g.parseInt=Pr,g.random=ci,g.reduce=cn,g.reduceRight=dn,g.result=di,g.runInContext=p,g.size=gn,g.some=mn,g.sortedIndex=Nn,g.template=hi,g.unescape=fi,g.uniqueId=gi,g.all=Je,g.any=mn,g.detect=en,g.findWhere=en,g.foldl=cn,g.foldr=dn,g.include=Qe,g.inject=cn,oi(function(){var t={};return Cr(g,function(e,n){g.prototype[n]||(t[n]=e)}),t}(),!1),g.first=$n,g.last=Sn,g.sample=pn,g.take=$n,g.head=$n,Cr(g,function(t,e){var n="sample"!==e;g.prototype[e]||(g.prototype[e]=function(e,i){var r=this.__chain__,a=t(this.__wrapped__,e,i);return r||null!=e&&(!i||n&&"function"==typeof e)?new m(a,r):a})}),g.VERSION="2.4.1",g.prototype.chain=yi,g.prototype.toString=bi,g.prototype.value=xi,g.prototype.valueOf=xi,wr(["join","pop","shift"],function(t){var e=Ii[t];g.prototype[t]=function(){var t=this.__chain__,n=e.apply(this.__wrapped__,arguments);return t?new m(n,t):n}}),wr(["push","reverse","sort","unshift"],function(t){var e=Ii[t];g.prototype[t]=function(){return e.apply(this.__wrapped__,arguments),this}}),wr(["concat","slice","splice"],function(t){var e=Ii[t];g.prototype[t]=function(){return new m(e.apply(this.__wrapped__,arguments),this.__chain__)}}),lr.spliceObjects||wr(["pop","shift","splice"],function(t){var e=Ii[t],n="splice"==t;g.prototype[t]=function(){var t=this.__chain__,i=this.__wrapped__,r=e.apply(i,arguments);return 0===i.length&&delete i[0],t||n?new m(r,t):r}}),g}var f,g=[],m=[],v=0,y={},b=+new Date+"",x=75,w=40,$=" 	\f ﻿\n\r\u2028\u2029 ᠎             　",_=/\b__p \+= '';/g,C=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,S=/\w*$/,A=/^\s*function[ \n\r\t]+\w/,T=/<%=([\s\S]+?)%>/g,E=RegExp("^["+$+"]*0+(?=.$)"),I=/($^)/,P=/\bthis\b/,N=/['\n\r\t\u2028\u2029\\]/g,O=["Array","Boolean","Date","Error","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],z=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],H=0,L="[object Arguments]",F="[object Array]",R="[object Boolean]",W="[object Date]",j="[object Error]",q="[object Function]",V="[object Number]",B="[object Object]",U="[object RegExp]",Y="[object String]",X={};X[q]=!1,X[L]=X[F]=X[R]=X[W]=X[V]=X[B]=X[U]=X[Y]=!0;var K={leading:!1,maxWait:0,trailing:!1},G={configurable:!1,enumerable:!1,value:null,writable:!1},Z={args:"",array:null,bottom:"",firstArg:"",init:"",keys:null,loop:"",shadowedProps:null,support:null,top:"",useHas:!1},Q={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},J={"\\":"\\","'":"'","\n":"n","\r":"r","	":"t","\u2028":"u2028","\u2029":"u2029"},te=Q[typeof window]&&window||this,ee=Q[typeof exports]&&exports&&!exports.nodeType&&exports,ne=Q[typeof module]&&module&&!module.nodeType&&module,ie=ne&&ne.exports===ee&&ee,re=Q[typeof global]&&global;!re||re.global!==re&&re.window!==re||(te=re);var ae=p();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(te._=ae,define(function(){return ae})):ee&&ne?ie?(ne.exports=ae)._=ae:ee._=ae:te._=ae}.call(this),angular.module("ui.dashboard",["ui.bootstrap","ui.sortable"]),angular.module("ui.dashboard").directive("dashboard",["WidgetModel","WidgetDefCollection","$modal","DashboardState","$log",function(t,e,n,i,r){return{restrict:"A",templateUrl:function(t,e){return e.templateUrl?e.templateUrl:"template/dashboard.html"},scope:!0,controller:["$scope","$attrs",function(t,e){var n={stringifyStorage:!0,hideWidgetSettings:!1,hideWidgetClose:!1,settingsModalOptions:{templateUrl:"template/widget-settings-template.html",controller:"WidgetSettingsCtrl"},onSettingsClose:function(t,e){jQuery.extend(!0,e,t)},onSettingsDismiss:function(t){r.info("widget settings were dismissed. Reason: ",t)}};t.options=t.$eval(e.dashboard),t.options.settingsModalOptions=t.options.settingsModalOptions||{},_.each(["settingsModalOptions"],function(e){t.options[e]=t.options[e]||{},_.defaults(t.options[e],n[e])}),_.defaults(t.options,n);var i={stop:function(){t.saveDashboard()},handle:".widget-header"};t.sortableOptions=angular.extend({},i,t.options.sortableOptions||{})}],link:function(r){function a(t){r.options.unsavedChangeCount=0,t&&t.length?r.loadWidgets(t):r.defaultWidgets?r.loadWidgets(r.defaultWidgets):r.clear(!0)}r.defaultWidgets=r.options.defaultWidgets,r.widgetDefs=new e(r.options.widgetDefinitions);var o=1;r.dashboardState=new i(r.options.storage,r.options.storageId,r.options.storageHash,r.widgetDefs,r.options.stringifyStorage),r.addWidget=function(e,n){var i=r.widgetDefs.getByName(e.name);if(!i)throw"Widget "+e.name+" is not found.";var a;a=e.title?e.title:i.title?i.title:"Widget "+o++,e=jQuery.extend(!0,{},i,e);var s=new t(e,{title:a});return r.widgets.push(s),n||r.saveDashboard(),s},r.removeWidget=function(t){r.widgets.splice(_.indexOf(r.widgets,t),1),r.saveDashboard()},r.openWidgetSettings=function(t){var e=_.defaults({scope:r},t.settingsModalOptions,r.options.settingsModalOptions);e.resolve={widget:function(){return t}};var i=n.open(e),a=t.onSettingsClose||r.options.onSettingsClose,o=t.onSettingsDismiss||r.options.onSettingsDismiss;i.result.then(function(e){a(e,t,r),r.$emit("widgetChanged",t)},function(t){o(t,r)})},r.clear=function(t){r.widgets=[],t!==!0&&r.saveDashboard()},r.addWidgetInternal=function(t,e){t.preventDefault(),r.addWidget(e)},r.saveDashboard=function(t){r.options.explicitSave?(angular.isNumber(r.options.unsavedChangeCount)||(r.options.unsavedChangeCount=0),t?(r.options.unsavedChangeCount=0,r.dashboardState.save(r.widgets)):++r.options.unsavedChangeCount):r.dashboardState.save(r.widgets)},r.externalSaveDashboard=function(){r.saveDashboard(!0)},r.loadWidgets=function(t){r.savedWidgetDefs=t,r.clear(!0),_.each(t,function(t){r.addWidget(t,!0)})},r.resetWidgetsToDefault=function(){r.loadWidgets(r.defaultWidgets),r.saveDashboard()};var s=r.dashboardState.load();angular.isArray(s)?a(s):s&&angular.isObject(s)&&angular.isFunction(s.then)?s.then(a,a):a(),r.options.addWidget=r.addWidget,r.options.loadWidgets=r.loadWidgets,r.options.saveDashboard=r.externalSaveDashboard,r.options.removeWidget=r.removeWidget,r.options.openWidgetSettings=r.openWidgetSettings,r.$on("widgetChanged",function(t){t.stopPropagation(),r.saveDashboard()})}}}]),angular.module("ui.dashboard").directive("dashboardLayouts",["LayoutStorage","$timeout","$modal",function(t,e,n){return{scope:!0,templateUrl:function(t,e){return e.templateUrl?e.templateUrl:"template/dashboard-layouts.html"},link:function(i,r,a){i.options=i.$eval(a.dashboardLayouts);var o=new t(i.options);i.layouts=o.layouts,i.createNewLayout=function(){var t={title:"Custom",defaultWidgets:i.options.defaultWidgets||[]};return o.add(t),i.makeLayoutActive(t),o.save(),t},i.removeLayout=function(t){o.remove(t),o.save()},i.makeLayoutActive=function(t){var e=o.getActiveLayout();if(e&&e.dashboard.unsavedChangeCount){var r=n.open({templateUrl:"template/save-changes-modal.html",resolve:{layout:function(){return t}},controller:"SaveChangesModalCtrl"});r.result.then(function(){e.dashboard.saveDashboard(),i._makeLayoutActive(t)},function(){i._makeLayoutActive(t)})}else i._makeLayoutActive(t)},i._makeLayoutActive=function(t){angular.forEach(i.layouts,function(e){e.active=e!==t?!1:!0}),o.save()},i.isActive=function(t){return!!t.active},i.editTitle=function(t){if(!t.locked){var n=r.find('input[data-layout="'+t.id+'"]');t.editingTitle=!0,e(function(){n.focus()[0].setSelectionRange(0,9999)})}},i.saveTitleEdit=function(t){t.editingTitle=!1,o.save()},i.options.saveLayouts=function(){o.save(!0)},i.options.addWidget=function(){var t=o.getActiveLayout();t&&t.dashboard.addWidget.apply(t.dashboard,arguments)},i.options.loadWidgets=function(){var t=o.getActiveLayout();t&&t.dashboard.loadWidgets.apply(t.dashboard,arguments)},i.options.saveDashboard=function(){var t=o.getActiveLayout();t&&t.dashboard.saveDashboard.apply(t.dashboard,arguments)};var s={stop:function(){i.options.saveLayouts()}};i.sortableOptions=angular.extend({},s,i.options.sortableOptions||{})}}}]),angular.module("ui.dashboard").directive("widget",["$injector",function(t){return{controller:"DashboardWidgetCtrl",link:function(e){var n=e.widget,i=n.dataModelType;if(i){var r;if(angular.isFunction(i))r=i;else{if(!angular.isString(i))throw new Error("widget dataModelType should be function or string");t.invoke([i,function(t){r=t}])}var a;a=n.dataModelArgs?new r(n.dataModelArgs):new r,n.dataModel=a,a.setup(n,e),a.init(),e.$on("$destroy",_.bind(a.destroy,a))}e.compileTemplate(),e.$emit("widgetAdded",n)}}}]),angular.module("ui.dashboard").factory("LayoutStorage",function(){function t(t){var n={storage:e,storageHash:"",stringifyStorage:!0};angular.extend(n,t),angular.extend(t,n),this.id=t.storageId,this.storage=t.storage,this.storageHash=t.storageHash,this.stringifyStorage=t.stringifyStorage,this.widgetDefinitions=t.widgetDefinitions,this.defaultLayouts=t.defaultLayouts,this.lockDefaultLayouts=t.lockDefaultLayouts,this.widgetButtons=t.widgetButtons,this.explicitSave=t.explicitSave,this.defaultWidgets=t.defaultWidgets,this.settingsModalOptions=t.settingsModalOptions,this.onSettingsClose=t.onSettingsClose,this.onSettingsDismiss=t.onSettingsDismiss,this.options=t,this.options.unsavedChangeCount=0,this.layouts=[],this.states={},this.load(),this._ensureActiveLayout()}var e={setItem:function(){},getItem:function(){},removeItem:function(){}};return t.prototype={add:function(t){angular.isArray(t)||(t=[t]);var e=this;angular.forEach(t,function(t){t.dashboard=t.dashboard||{},t.dashboard.storage=e,t.dashboard.storageId=t.id=e._getLayoutId.call(e,t),t.dashboard.widgetDefinitions=e.widgetDefinitions,t.dashboard.stringifyStorage=!1,t.dashboard.defaultWidgets=t.defaultWidgets||e.defaultWidgets,t.dashboard.widgetButtons=e.widgetButtons,t.dashboard.explicitSave=e.explicitSave,t.dashboard.settingsModalOptions=e.settingsModalOptions,t.dashboard.onSettingsClose=e.onSettingsClose,t.dashboard.onSettingsDismiss=e.onSettingsDismiss,e.layouts.push(t)})},remove:function(t){var e=this.layouts.indexOf(t);if(e>=0&&(this.layouts.splice(e,1),delete this.states[t.id],t.active&&this.layouts.length)){var n=e>0?e-1:0;this.layouts[n].active=!0}},save:function(){var t={layouts:this._serializeLayouts(),states:this.states,storageHash:this.storageHash};this.stringifyStorage&&(t=JSON.stringify(t)),this.storage.setItem(this.id,t),this.options.unsavedChangeCount=0},load:function(){var t=this.storage.getItem(this.id);this.clear(),t?angular.isObject(t)&&angular.isFunction(t.then)?this._handleAsyncLoad(t):this._handleSyncLoad(t):this._addDefaultLayouts()},clear:function(){this.layouts=[],this.states={}},setItem:function(t,e){this.states[t]=e,this.save()},getItem:function(t){return this.states[t]},removeItem:function(t){delete this.states[t],this.save()},getActiveLayout:function(){for(var t=this.layouts.length,e=0;t>e;e++){var n=this.layouts[e];if(n.active)return n}return!1},_addDefaultLayouts:function(){var t=this,e=this.lockDefaultLayouts?{locked:!0}:{};angular.forEach(this.defaultLayouts,function(n){t.add(angular.extend(_.clone(e),n))})},_serializeLayouts:function(){var t=[];return angular.forEach(this.layouts,function(e){t.push({title:e.title,id:e.id,active:e.active,locked:e.locked,defaultWidgets:e.dashboard.defaultWidgets})}),t},_handleSyncLoad:function(t){var e;if(this.stringifyStorage)try{e=JSON.parse(t)}catch(n){return void this._addDefaultLayouts()}else e=t;return this.storageHash!==e.storageHash?void this._addDefaultLayouts():(this.states=e.states,void this.add(e.layouts))},_handleAsyncLoad:function(t){var e=this;t.then(angular.bind(e,this._handleSyncLoad),angular.bind(e,this._addDefaultLayouts))},_ensureActiveLayout:function(){for(var t=0;t<this.layouts.length;t++){var e=this.layouts[t];if(e.active)return}this.layouts[0]&&(this.layouts[0].active=!0)},_getLayoutId:function(t){if(t.id)return t.id;for(var e=0,n=0;n<this.layouts.length;n++){var i=this.layouts[n].id;e=Math.max(e,1*i)}return e+1}},t}),angular.module("ui.dashboard").factory("DashboardState",["$log","$q",function(t,e){function n(t,e,n,i,r){this.storage=t,this.id=e,this.hash=n,this.widgetDefinitions=i,this.stringify=r}return n.prototype={save:function(t){if(!this.storage)return!0;var e=_.map(t,function(t){var e={title:t.title,name:t.name,style:t.style,size:t.size,dataModelOptions:t.dataModelOptions,storageHash:t.storageHash,attrs:t.attrs};return e}),n={widgets:e,hash:this.hash};return this.stringify&&(n=JSON.stringify(n)),this.storage.setItem(this.id,n),!0},load:function(){if(!this.storage)return null;var t;return t=this.storage.getItem(this.id),t?angular.isObject(t)&&angular.isFunction(t.then)?this._handleAsyncLoad(t):this._handleSyncLoad(t):null},_handleSyncLoad:function(e){var n,i=[];if(!e)return null;if(this.stringify)try{n=JSON.parse(e)}catch(r){return t.warn("Serialized dashboard state was malformed and could not be parsed: ",e),null}else n=e;if(n.hash!==this.hash)return t.info("Serialized dashboard from storage was stale (old hash: "+n.hash+", new hash: "+this.hash+")"),this.storage.removeItem(this.id),null;for(var a=n.widgets,o=0;o<a.length;o++){var s=a[o],l=this.widgetDefinitions.getByName(s.name);l?l.hasOwnProperty("storageHash")&&l.storageHash!==s.storageHash?t.info('Widget Definition Object with name "'+s.name+'" was found but the storageHash property on the widget definition is different from that on the serialized widget loaded from storage. hash from storage: "'+s.storageHash+'", hash from WDO: "'+l.storageHash+'"'):i.push(s):t.warn('Widget with name "'+s.name+'" was not found in given widget definition objects')}return i},_handleAsyncLoad:function(t){var n=this,i=e.defer();return t.then(function(t){var e=n._handleSyncLoad(t);e?i.resolve(e):i.reject(e)},function(t){i.reject(t)}),i.promise}},n}]),angular.module("ui.dashboard").factory("WidgetDataModel",function(){function t(){}return t.prototype={setup:function(t,e){this.dataAttrName=t.dataAttrName,this.dataModelOptions=t.dataModelOptions,this.widgetScope=e},updateScope:function(t){this.widgetScope.widgetData=t},init:function(){},destroy:function(){}},t}),angular.module("ui.dashboard").factory("WidgetDefCollection",function(){function t(t){this.push.apply(this,t);var e={};_.each(t,function(t){e[t.name]=t}),this.map=e}return t.prototype=Object.create(Array.prototype),t.prototype.getByName=function(t){return this.map[t]},t}),angular.module("ui.dashboard").factory("WidgetModel",["$log",function(t){function e(t,e){var n={title:"Widget",name:t.name,attrs:t.attrs,dataAttrName:t.dataAttrName,dataModelType:t.dataModelType,dataModelArgs:t.dataModelArgs,dataModelOptions:t.dataModelOptions,settingsModalOptions:t.settingsModalOptions,onSettingsClose:t.onSettingsClose,onSettingsDismiss:t.onSettingsDismiss,style:t.style||{},size:t.size||{},enableVerticalResize:t.enableVerticalResize===!1?!1:!0};if(e=e||{},angular.extend(this,angular.copy(n),e),this.containerStyle={width:"33%"},this.contentStyle={},this.updateContainerStyle(this.style),t.templateUrl)this.templateUrl=t.templateUrl;else if(t.template)this.template=t.template;else{var i=t.directive||t.name;this.directive=i}this.size&&_.has(this.size,"height")&&this.setHeight(this.size.height),this.style&&_.has(this.style,"width")&&this.setWidth(this.style.width),this.size&&_.has(this.size,"width")&&this.setWidth(this.size.width)}return e.prototype={setWidth:function(e,n){return e=e.toString(),n=n||e.replace(/^[-\.\d]+/,"")||"%",this.widthUnits=n,e=parseFloat(e),0>e||isNaN(e)?(t.warn("malhar-angular-dashboard: setWidth was called when width was "+e),!1):("%"===n&&(e=Math.min(100,e),e=Math.max(0,e)),this.containerStyle.width=e+""+n,this.updateSize(this.containerStyle),!0)},setHeight:function(t){this.contentStyle.height=t,this.updateSize(this.contentStyle)},setStyle:function(t){this.style=t,this.updateContainerStyle(t)},updateSize:function(t){angular.extend(this.size,t)},updateContainerStyle:function(t){angular.extend(this.containerStyle,t)}},e}]),angular.module("ui.dashboard").controller("SaveChangesModalCtrl",["$scope","$modalInstance","layout",function(t,e,n){t.layout=n,t.ok=function(){e.close()},t.cancel=function(){e.dismiss()}}]),angular.module("ui.dashboard").controller("DashboardWidgetCtrl",["$scope","$element","$compile","$window","$timeout",function(t,e,n,i,r){t.status={isopen:!1},t.makeTemplateString=function(){var e=t.widget,n="";return e.templateUrl?n="<div ng-include=\"'"+e.templateUrl+"'\"></div>":e.template?n=e.template:(n="<div "+e.directive,e.dataAttrName&&(e.attrs=e.attrs||{},e.attrs[e.dataAttrName]="widgetData"),e.attrs&&(e.attrs[e.directive]&&(n+='="'+e.attrs[e.directive]+'"'),_.each(e.attrs,function(t,i){i!==e.directive&&(n+=" "+i+'="'+t+'"')})),n+="></div>"),n},t.grabResizer=function(n){var r=t.widget,a=e.find(".widget");if(1===n.which){n.stopPropagation(),n.originalEvent.preventDefault();var o=n.clientX,s=a.width(),l=a.height(),u=r.containerStyle.width,c=r.widthUnits,d=parseFloat(u),h=angular.element('<div class="widget-resizer-marquee" style="height: '+l+"px; width: "+s+'px;"></div>');a.append(h);var p=d/s,f=function(t){var e=t.clientX,n=e-o,i=s+n;h.css("width",i+"px")},g=function(e){jQuery(i).off("mousemove",f),h.remove();var n=e.clientX,a=n-o,s=Math.round(a*p*100)/100,l=1*d+s;r.setWidth(l,c),t.$emit("widgetChanged",r),t.$apply(),t.$broadcast("widgetResized",{width:l})};jQuery(i).on("mousemove",f).one("mouseup",g)}},t.grabSouthResizer=function(n){var r=e.find(".widget");if(1===n.which){n.stopPropagation(),n.originalEvent.preventDefault();var a=n.clientY,o=r.width(),s=r.height(),l=angular.element('<div class="widget-resizer-marquee" style="height: '+s+"px; width: "+o+'px;"></div>');r.append(l);var u=function(t){var e=t.clientY,n=e-a,i=s+n;l.css("height",i+"px")},c=function(e){jQuery(i).off("mousemove",u),l.remove();var n=e.clientY,o=n-a,s=r.find(".widget-content"),c=o,d=parseInt(s.css("height"),10),h=d+c;t.widget.setHeight(h+"px"),t.$emit("widgetChanged",t.widget),t.$apply(),t.$broadcast("widgetResized",{height:h})};jQuery(i).on("mousemove",u).one("mouseup",c)}},t.editTitle=function(t){var n=e.find(".widget");t.editingTitle=!0,r(function(){n.find("form.widget-title input:eq(0)").focus()[0].setSelectionRange(0,9999)})},t.saveTitleEdit=function(e){e.editingTitle=!1,t.$emit("widgetChanged",e)},t.compileTemplate=function(){var i=t.findWidgetContainer(e),r=t.makeTemplateString(),a=angular.element(r);i.empty(),i.append(a),n(a)(t)},t.findWidgetContainer=function(t){return t.find(".widget-content")}}]),angular.module("ui.dashboard").controller("WidgetSettingsCtrl",["$scope","$modalInstance","widget",function(t,e,n){t.widget=n,t.result=jQuery.extend(!0,{},n),t.ok=function(){e.close(t.result)},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("ui.dashboard").run(["$templateCache",function(t){t.put("template/alt-dashboard.html",'<div>\n    <div class="btn-toolbar" ng-if="!options.hideToolbar">\n        <div class="btn-group" ng-if="!options.widgetButtons">\n            <span class="dropdown" on-toggle="toggled(open)">\n              <button type="button" class="btn btn-primary dropdown-toggle" ng-disabled="disabled">\n                Button dropdown <span class="caret"></span>\n              </button>\n              <ul class="dropdown-menu" role="menu">\n                <li ng-repeat="widget in widgetDefs">\n                  <a href="#" ng-click="addWidgetInternal($event, widget);" class="dropdown-toggle">{{widget.name}}</a>\n                </li>\n              </ul>\n            </span>\n        </div>\n\n        <div class="btn-group" ng-if="options.widgetButtons">\n            <button ng-repeat="widget in widgetDefs"\n                    ng-click="addWidgetInternal($event, widget);" type="button" class="btn btn-primary">\n                {{widget.name}}\n            </button>\n        </div>\n\n        <button class="btn btn-warning" ng-click="resetWidgetsToDefault()">Default Widgets</button>\n\n        <button ng-if="options.storage && options.explicitSave" ng-click="options.saveDashboard()" class="btn btn-success" ng-hide="!options.unsavedChangeCount">{{ !options.unsavedChangeCount ? "Alternative - No Changes" : "Save" }}</button>\n\n        <button ng-click="clear();" ng-hide="!widgets.length" type="button" class="btn btn-info">Clear</button>\n    </div>\n\n    <div ui-sortable="sortableOptions" ng-model="widgets" class="dashboard-widget-area">\n        <div ng-repeat="widget in widgets" ng-style="widget.style" class="widget-container" widget>\n            <div class="widget panel panel-default">\n                <div class="widget-header panel-heading">\n                    <h3 class="panel-title">\n                        <span class="widget-title" ng-dblclick="editTitle(widget)" ng-hide="widget.editingTitle">{{widget.title}}</span>\n                        <form action="" class="widget-title" ng-show="widget.editingTitle" ng-submit="saveTitleEdit(widget)">\n                            <input type="text" ng-model="widget.title" class="form-control">\n                        </form>\n                        <span class="label label-primary" ng-if="!options.hideWidgetName">{{widget.name}}</span>\n                        <span ng-click="removeWidget(widget);" class="glyphicon glyphicon-remove" ng-if="!options.hideWidgetClose"></span>\n                        <span ng-click="openWidgetSettings(widget);" class="glyphicon glyphicon-cog" ng-if="!options.hideWidgetSettings"></span>\n                    </h3>\n                </div>\n                <div class="panel-body widget-content"></div>\n                <div class="widget-ew-resizer" ng-mousedown="grabResizer($event)"></div>\n            </div>\n        </div>\n    </div>\n</div>\n'),t.put("template/dashboard-layouts.html",'<ul ui-sortable="sortableOptions" ng-model="layouts" class="nav nav-tabs layout-tabs">\n    <li ng-repeat="layout in layouts" ng-class="{ active: layout.active }">\n        <a ng-click="makeLayoutActive(layout)">\n            <span ng-dblclick="editTitle(layout)" ng-show="!layout.editingTitle">{{layout.title}}</span>\n            <form action="" class="layout-title" ng-show="layout.editingTitle" ng-submit="saveTitleEdit(layout)">\n                <input type="text" ng-model="layout.title" class="form-control" data-layout="{{layout.id}}">\n            </form>\n            <span ng-if="!layout.locked" ng-click="removeLayout(layout)" class="glyphicon glyphicon-remove remove-layout-icon"></span>\n            <!-- <span class="glyphicon glyphicon-pencil"></span> -->\n            <!-- <span class="glyphicon glyphicon-remove"></span> -->\n        </a>\n    </li>\n    <li>\n        <a ng-click="createNewLayout()">\n            <span class="glyphicon glyphicon-plus"></span>\n        </a>\n    </li>\n</ul>\n<div ng-repeat="layout in layouts | filter:isActive" dashboard="layout.dashboard" template-url="template/dashboard.html"></div>'),t.put("template/dashboard.html",'<div>\n    <div class="btn-toolbar" ng-if="!options.hideToolbar">\n        <div class="btn-group" ng-if="!options.widgetButtons">\n            <span class="dropdown" on-toggle="toggled(open)">\n              <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">\n                Button dropdown <span class="caret"></span>\n              </button>\n              <ul class="dropdown-menu" role="menu">\n                <li ng-repeat="widget in widgetDefs">\n                  <a href="#" ng-click="addWidgetInternal($event, widget);" class="dropdown-toggle"><span class="label label-primary">{{widget.name}}</span></a>\n                </li>\n              </ul>\n            </span>\n    </div>\n        <div class="btn-group" ng-if="options.widgetButtons">\n            <button ng-repeat="widget in widgetDefs"\n                    ng-click="addWidgetInternal($event, widget);" type="button" class="btn btn-primary">\n                {{widget.name}}\n            </button>\n        </div>\n\n        <button class="btn btn-warning" ng-click="resetWidgetsToDefault()">Default Widgets</button>\n\n        <button ng-if="options.storage && options.explicitSave" ng-click="options.saveDashboard()" class="btn btn-success" ng-disabled="!options.unsavedChangeCount">{{ !options.unsavedChangeCount ? "all saved" : "save changes (" + options.unsavedChangeCount + ")" }}</button>\n\n        <button ng-click="clear();" type="button" class="btn btn-info">Clear</button>\n    </div>\n\n    <div ui-sortable="sortableOptions" ng-model="widgets" class="dashboard-widget-area">\n        <div ng-repeat="widget in widgets" ng-style="widget.containerStyle" class="widget-container" widget>\n            <div class="widget panel panel-default">\n                <div class="widget-header panel-heading">\n                    <h3 class="panel-title">\n                        <span class="widget-title" ng-dblclick="editTitle(widget)" ng-hide="widget.editingTitle">{{widget.title}}</span>\n                        <form action="" class="widget-title" ng-show="widget.editingTitle" ng-submit="saveTitleEdit(widget)">\n                            <input type="text" ng-model="widget.title" class="form-control">\n                        </form>\n                        <span class="label label-primary" ng-if="!options.hideWidgetName">{{widget.name}}</span>\n                        <span ng-click="removeWidget(widget);" class="glyphicon glyphicon-remove" ng-if="!options.hideWidgetClose"></span>\n                        <span ng-click="openWidgetSettings(widget);" class="glyphicon glyphicon-cog" ng-if="!options.hideWidgetSettings"></span>\n                    </h3>\n                </div>\n                <div class="panel-body widget-content" ng-style="widget.contentStyle"></div>\n                <div class="widget-ew-resizer" ng-mousedown="grabResizer($event)"></div>\n                <div ng-if="widget.enableVerticalResize" class="widget-s-resizer" ng-mousedown="grabSouthResizer($event)"></div>\n            </div>\n        </div>\n    </div>\n</div>'),t.put("template/save-changes-modal.html",'<div class="modal-header">\n    <button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="cancel()">&times;</button>\n  <h3>Unsaved Changes to "{{layout.title}}"</h3>\n</div>\n\n<div class="modal-body">\n    <p>You have {{layout.dashboard.unsavedChangeCount}} unsaved changes on this dashboard. Would you like to save them?</p>\n</div>\n\n<div class="modal-footer">\n    <button type="button" class="btn btn-default" ng-click="cancel()">Don\'t Save</button>\n    <button type="button" class="btn btn-primary" ng-click="ok()">Save</button>\n</div>'),t.put("template/widget-default-content.html",""),t.put("template/widget-settings-template.html",'<div class="modal-header">\n    <button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="cancel()">&times;</button>\n  <h3>Widget Options <small>{{widget.title}}</small></h3>\n</div>\n\n<div class="modal-body">\n    <form name="form" novalidate class="form-horizontal">\n        <div class="form-group">\n            <label for="widgetTitle" class="col-sm-2 control-label">Title</label>\n            <div class="col-sm-10">\n                <input type="text" class="form-control" name="widgetTitle" ng-model="result.title">\n            </div>\n        </div>\n        <div ng-if="widget.settingsModalOptions.partialTemplateUrl"\n             ng-include="widget.settingsModalOptions.partialTemplateUrl"></div>\n    </form>\n</div>\n\n<div class="modal-footer">\n    <button type="button" class="btn btn-default" ng-click="cancel()">Cancel</button>\n    <button type="button" class="btn btn-primary" ng-click="ok()">OK</button>\n</div>')}]),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),/* ========================================================================
 * Bootstrap: transition.js v3.3.4
 * http://getbootstrap.com/javascript/#transitions
 * ========================================================================
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */
+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",function(){n=!0});var r=function(){n||t(i).trigger(t.support.transition.end)};return setTimeout(r,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),/* ========================================================================
 * Bootstrap: alert.js v3.3.4
 * http://getbootstrap.com/javascript/#alerts
 * ========================================================================
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */
+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),r=n.data("bs.alert");r||n.data("bs.alert",r=new i(this)),"string"==typeof e&&r[e].call(n)})}var n='[data-dismiss="alert"]',i=function(e){t(e).on("click",n,this.close)};i.VERSION="3.3.4",i.TRANSITION_DURATION=150,i.prototype.close=function(e){function n(){o.detach().trigger("closed.bs.alert").remove()}var r=t(this),a=r.attr("data-target");a||(a=r.attr("href"),a=a&&a.replace(/.*(?=#[^\s]*$)/,""));var o=t(a);e&&e.preventDefault(),o.length||(o=r.closest(".alert")),o.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n())};var r=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=r,this},t(document).on("click.bs.alert.data-api",n,i.prototype.close)}(jQuery),/* ========================================================================
 * Bootstrap: button.js v3.3.4
 * http://getbootstrap.com/javascript/#buttons
 * ========================================================================
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */
+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.button"),a="object"==typeof e&&e;r||i.data("bs.button",r=new n(this,a)),"toggle"==e?r.toggle():e&&r.setState(e)})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.4",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",i=this.$element,r=i.is("input")?"val":"html",a=i.data();e+="Text",null==a.resetText&&i.data("resetText",i[r]()),setTimeout(t.proxy(function(){i[r](null==a[e]?this.options[e]:a[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n))},this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=t(n.target);i.hasClass("btn")||(i=i.closest(".btn")),e.call(i,"toggle"),n.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),/* ========================================================================
 * Bootstrap: carousel.js v3.3.4
 * http://getbootstrap.com/javascript/#carousel
 * ========================================================================
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */
+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.carousel"),a=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e),o="string"==typeof e?e:a.slide;r||i.data("bs.carousel",r=new n(this,a)),"number"==typeof e?r.to(e):o?r[o]():a.interval&&r.pause().cycle()})}var n=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};n.VERSION="3.3.4",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},n.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},n.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e),i="prev"==t&&0===n||"next"==t&&n==this.$items.length-1;if(i&&!this.options.wrap)return e;var r="prev"==t?-1:1,a=(n+r)%this.$items.length;return this.$items.eq(a)},n.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||0>t?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},n.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){return this.sliding?void 0:this.slide("next")},n.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},n.prototype.slide=function(e,i){var r=this.$element.find(".item.active"),a=i||this.getItemForDirection(e,r),o=this.interval,s="next"==e?"left":"right",l=this;if(a.hasClass("active"))return this.sliding=!1;var u=a[0],c=t.Event("slide.bs.carousel",{relatedTarget:u,direction:s});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,o&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=t(this.$indicators.children()[this.getItemIndex(a)]);d&&d.addClass("active")}var h=t.Event("slid.bs.carousel",{relatedTarget:u,direction:s});return t.support.transition&&this.$element.hasClass("slide")?(a.addClass(e),a[0].offsetWidth,r.addClass(s),a.addClass(s),r.one("bsTransitionEnd",function(){a.removeClass([e,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(h)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(r.removeClass("active"),a.addClass("active"),this.sliding=!1,this.$element.trigger(h)),o&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var r=function(n){var i,r=t(this),a=t(r.attr("data-target")||(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(a.hasClass("carousel")){var o=t.extend({},a.data(),r.data()),s=r.attr("data-slide-to");s&&(o.interval=!1),e.call(a,o),s&&a.data("bs.carousel").to(s),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var n=t(this);e.call(n,n.data())})})}(jQuery),/* ========================================================================
 * Bootstrap: collapse.js v3.3.4
 * http://getbootstrap.com/javascript/#collapse
 * ========================================================================
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */
+function(t){"use strict";function e(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(i)}function n(e){return this.each(function(){var n=t(this),r=n.data("bs.collapse"),a=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);!r&&a.toggle&&/show|hide/.test(e)&&(a.toggle=!1),r||n.data("bs.collapse",r=new i(this,a)),"string"==typeof e&&r[e]()})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.4",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(e=r.data("bs.collapse"),e&&e.transitioning))){var a=t.Event("show.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){r&&r.length&&(n.call(r,"hide"),e||r.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var l=t.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[o](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[n](0).one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(i.TRANSITION_DURATION):r.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,i){var r=t(i);this.addAriaAndCollapsedClass(e(r),r)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=r,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var r=t(this);r.attr("data-target")||i.preventDefault();var a=e(r),o=a.data("bs.collapse"),s=o?"toggle":r.data();n.call(a,s)})}(jQuery),/* ========================================================================
 * Bootstrap: dropdown.js v3.3.4
 * http://getbootstrap.com/javascript/#dropdowns
 * ========================================================================
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */
+function(t){"use strict";function e(e){e&&3===e.which||(t(r).remove(),t(a).each(function(){var i=t(this),r=n(i),a={relatedTarget:this};r.hasClass("open")&&(r.trigger(e=t.Event("hide.bs.dropdown",a)),e.isDefaultPrevented()||(i.attr("aria-expanded","false"),r.removeClass("open").trigger("hidden.bs.dropdown",a)))}))}function n(e){var n=e.attr("data-target");n||(n=e.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(n);return i&&i.length?i:e.parent()}function i(e){return this.each(function(){var n=t(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new o(this)),"string"==typeof e&&i[e].call(n)})}var r=".dropdown-backdrop",a='[data-toggle="dropdown"]',o=function(e){t(e).on("click.bs.dropdown",this.toggle)};o.VERSION="3.3.4",o.prototype.toggle=function(i){var r=t(this);if(!r.is(".disabled, :disabled")){var a=n(r),o=a.hasClass("open");if(e(),!o){"ontouchstart"in document.documentElement&&!a.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e);var s={relatedTarget:this};if(a.trigger(i=t.Event("show.bs.dropdown",s)),i.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),a.toggleClass("open").trigger("shown.bs.dropdown",s)}return!1}},o.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var i=t(this);if(e.preventDefault(),e.stopPropagation(),!i.is(".disabled, :disabled")){var r=n(i),o=r.hasClass("open");if(!o&&27!=e.which||o&&27==e.which)return 27==e.which&&r.find(a).trigger("focus"),i.trigger("click");var s=" li:not(.disabled):visible a",l=r.find('[role="menu"]'+s+', [role="listbox"]'+s);if(l.length){var u=l.index(e.target);38==e.which&&u>0&&u--,40==e.which&&u<l.length-1&&u++,~u||(u=0),l.eq(u).trigger("focus")}}}};var s=t.fn.dropdown;t.fn.dropdown=i,t.fn.dropdown.Constructor=o,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=s,this},t(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",a,o.prototype.toggle).on("keydown.bs.dropdown.data-api",a,o.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',o.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',o.prototype.keydown)}(jQuery),/* ========================================================================
 * Bootstrap: modal.js v3.3.4
 * http://getbootstrap.com/javascript/#modals
 * ========================================================================
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */
+function(t){"use strict";function e(e,i){return this.each(function(){var r=t(this),a=r.data("bs.modal"),o=t.extend({},n.DEFAULTS,r.data(),"object"==typeof e&&e);a||r.data("bs.modal",a=new n(this,o)),"string"==typeof e?a[e](i):o.show&&a.show(i)})}var n=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.4",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},n.prototype.show=function(e){var i=this,r=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var r=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),r&&i.$element[0].offsetWidth,i.$element.addClass("in").attr("aria-hidden",!1),i.enforceFocus();var a=t.Event("shown.bs.modal",{relatedTarget:e});r?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(a)}).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(a)}))},n.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(e){var i=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var a=t.support.transition&&r;if(this.$backdrop=t('<div class="modal-backdrop '+r+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),a&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;a?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):o()}else e&&e()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=n,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=t(this),r=i.attr("href"),a=t(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),o=a.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(r)&&r},a.data(),i.data());i.is("a")&&n.preventDefault(),a.one("show.bs.modal",function(t){t.isDefaultPrevented()||a.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),e.call(a,o,this)})}(jQuery),/* ========================================================================
 * Bootstrap: tooltip.js v3.3.4
 * http://getbootstrap.com/javascript/#tooltip
 * Inspired by the original jQuery.tipsy by Jason Frame
 * ========================================================================
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */
+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.tooltip"),a="object"==typeof e&&e;(r||!/destroy|hide/.test(e))&&(r||i.data("bs.tooltip",r=new n(this,a)),"string"==typeof e&&r[e]())})}var n=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.init("tooltip",t,e)};n.VERSION="3.3.4",n.TRANSITION_DURATION=150,n.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport),this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),a=r.length;a--;){var o=r[a];if("click"==o)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=o){var s="hover"==o?"mouseenter":"focusin",l="hover"==o?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},n.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},n.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n&&n.$tip&&n.$tip.is(":visible")?void(n.hoverState="in"):(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},n.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var r=this,a=this.tip(),o=this.getUID(this.type);this.setContent(),a.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&a.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,u=l.test(s);u&&(s=s.replace(l,"")||"top"),a.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?a.appendTo(this.options.container):a.insertAfter(this.$element);var c=this.getPosition(),d=a[0].offsetWidth,h=a[0].offsetHeight;if(u){var p=s,f=this.options.container?t(this.options.container):this.$element.parent(),g=this.getPosition(f);s="bottom"==s&&c.bottom+h>g.bottom?"top":"top"==s&&c.top-h<g.top?"bottom":"right"==s&&c.right+d>g.width?"left":"left"==s&&c.left-d<g.left?"right":s,a.removeClass(p).addClass(s)}var m=this.getCalculatedOffset(s,c,d,h);this.applyPlacement(m,s);var v=function(){var t=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==t&&r.leave(r)};t.support.transition&&this.$tip.hasClass("fade")?a.one("bsTransitionEnd",v).emulateTransitionEnd(n.TRANSITION_DURATION):v()}},n.prototype.applyPlacement=function(e,n){var i=this.tip(),r=i[0].offsetWidth,a=i[0].offsetHeight,o=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(s)&&(s=0),e.top=e.top+o,e.left=e.left+s,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var l=i[0].offsetWidth,u=i[0].offsetHeight;"top"==n&&u!=a&&(e.top=e.top+a-u);var c=this.getViewportAdjustedDelta(n,e,l,u);c.left?e.left+=c.left:e.top+=c.top;var d=/top|bottom/.test(n),h=d?2*c.left-r+l:2*c.top-a+u,p=d?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(h,i[0][p],d)},n.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},n.prototype.hide=function(e){function i(){"in"!=r.hoverState&&a.detach(),r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),e&&e()}var r=this,a=t(this.$tip),o=t.Event("hide.bs."+this.type);return this.$element.trigger(o),o.isDefaultPrevented()?void 0:(a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i(),this.hoverState=null,this)},n.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},n.prototype.hasContent=function(){return this.getTitle()},n.prototype.getPosition=function(e){e=e||this.$element;var n=e[0],i="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=t.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var a=i?{top:0,left:0}:e.offset(),o={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},s=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},r,o,s,a)},n.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},n.prototype.getViewportAdjustedDelta=function(t,e,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var a=this.options.viewport&&this.options.viewport.padding||0,o=this.getPosition(this.$viewport);if(/right|left/.test(t)){var s=e.top-a-o.scroll,l=e.top+a-o.scroll+i;s<o.top?r.top=o.top-s:l>o.top+o.height&&(r.top=o.top+o.height-l)}else{var u=e.left-a,c=e.left+a+n;u<o.left?r.left=o.left-u:c>o.width&&(r.left=o.left+o.width-c)}return r},n.prototype.getTitle=function(){var t,e=this.$element,n=this.options;return t=e.attr("data-original-title")||("function"==typeof n.title?n.title.call(e[0]):n.title)},n.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},n.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(e){var n=this;e&&(n=t(e.currentTarget).data("bs."+this.type),n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type)})};var i=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=n,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(jQuery),/* ========================================================================
 * Bootstrap: popover.js v3.3.4
 * http://getbootstrap.com/javascript/#popovers
 * ========================================================================
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */
+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.popover"),a="object"==typeof e&&e;(r||!/destroy|hide/.test(e))&&(r||i.data("bs.popover",r=new n(this,a)),"string"==typeof e&&r[e]())})}var n=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.3.4",n.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),n.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=n,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery),/* ========================================================================
 * Bootstrap: scrollspy.js v3.3.4
 * http://getbootstrap.com/javascript/#scrollspy
 * ========================================================================
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */
+function(t){"use strict";function e(n,i){this.$body=t(document.body),this.$scrollElement=t(t(n).is(document.body)?window:n),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=t(this),r=i.data("bs.scrollspy"),a="object"==typeof n&&n;r||i.data("bs.scrollspy",r=new e(this,a)),"string"==typeof n&&r[n]()})}e.VERSION="3.3.4",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),r=e.data("target")||e.attr("href"),a=/^#./.test(r)&&t(r);return a&&a.length&&a.is(":visible")&&[[a[n]().top+i,r]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,a=this.targets,o=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=i)return o!=(t=a[a.length-1])&&this.activate(t);if(o&&e<r[0])return this.activeTarget=null,this.clear();for(t=r.length;t--;)o!=a[t]&&e>=r[t]&&(void 0===r[t+1]||e<r[t+1])&&this.activate(a[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),/* ========================================================================
 * Bootstrap: tab.js v3.3.4
 * http://getbootstrap.com/javascript/#tabs
 * ========================================================================
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */
+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new n(this)),"string"==typeof e&&r[e]()})}var n=function(e){this.element=t(e)};n.VERSION="3.3.4",n.TRANSITION_DURATION=150,n.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=e.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var r=n.find(".active:last a"),a=t.Event("hide.bs.tab",{relatedTarget:e[0]}),o=t.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(a),e.trigger(o),!o.isDefaultPrevented()&&!a.isDefaultPrevented()){var s=t(i);this.activate(e.closest("li"),n),this.activate(s,s.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})}}},n.prototype.activate=function(e,i,r){function a(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var o=i.find("> .active"),s=r&&t.support.transition&&(o.length&&o.hasClass("fade")||!!i.find("> .fade").length);o.length&&s?o.one("bsTransitionEnd",a).emulateTransitionEnd(n.TRANSITION_DURATION):a(),o.removeClass("in")};var i=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var r=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),/* ========================================================================
 * Bootstrap: affix.js v3.3.4
 * http://getbootstrap.com/javascript/#affix
 * ========================================================================
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */
+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.affix"),a="object"==typeof e&&e;r||i.data("bs.affix",r=new n(this,a)),"string"==typeof e&&r[e]()})}var n=function(e,i){this.options=t.extend({},n.DEFAULTS,i),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.4",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,i){var r=this.$target.scrollTop(),a=this.$element.offset(),o=this.$target.height();if(null!=n&&"top"==this.affixed)return n>r?"top":!1;if("bottom"==this.affixed)return null!=n?r+this.unpin<=a.top?!1:"bottom":t-i>=r+o?!1:"bottom";var s=null==this.affixed,l=s?r:a.top,u=s?o:e;return null!=n&&n>=r?"top":null!=i&&l+u>=t-i?"bottom":!1},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},n.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),i=this.options.offset,r=i.top,a=i.bottom,o=t(document.body).height();"object"!=typeof i&&(a=r=i),"function"==typeof r&&(r=i.top(this.$element)),"function"==typeof a&&(a=i.bottom(this.$element));var s=this.getState(o,e,r,a);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),u=t.Event(l+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:o-e-a})}};var i=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var n=t(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),e.call(n,i)})})}(jQuery),/**
 * @license AngularJS v1.3.15
 * (c) 2010-2014 Google, Inc. http://angularjs.org
 * License: MIT
 */
function(t,e){"use strict";function n(){function t(t,n){return e.extend(Object.create(t),n)}function n(t,e){var n=e.caseInsensitiveMatch,i={originalPath:t,regexp:t},r=i.keys=[];return t=t.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(t,e,n,i){var a="?"===i?i:null,o="*"===i?i:null;return r.push({name:n,optional:!!a}),e=e||"",""+(a?"":e)+"(?:"+(a?e:"")+(o&&"(.+?)"||"([^/]+)")+(a||"")+")"+(a||"")}).replace(/([\/$\*])/g,"\\$1"),i.regexp=new RegExp("^"+t+"$",n?"i":""),i}var i={};this.when=function(t,r){var a=e.copy(r);if(e.isUndefined(a.reloadOnSearch)&&(a.reloadOnSearch=!0),e.isUndefined(a.caseInsensitiveMatch)&&(a.caseInsensitiveMatch=this.caseInsensitiveMatch),i[t]=e.extend(a,t&&n(t,a)),t){var o="/"==t[t.length-1]?t.substr(0,t.length-1):t+"/";i[o]=e.extend({redirectTo:t},n(o,a))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(t){return"string"==typeof t&&(t={redirectTo:t}),this.when(null,t),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(n,r,a,o,l,u,c){function d(t,e){var n=e.keys,i={};if(!e.regexp)return null;var r=e.regexp.exec(t);if(!r)return null;for(var a=1,o=r.length;o>a;++a){var s=n[a-1],l=r[a];s&&l&&(i[s.name]=l)}return i}function h(t){var i=b.current;m=f(),v=m&&i&&m.$$route===i.$$route&&e.equals(m.pathParams,i.pathParams)&&!m.reloadOnSearch&&!y,v||!i&&!m||n.$broadcast("$routeChangeStart",m,i).defaultPrevented&&t&&t.preventDefault()}function p(){var t=b.current,i=m;v?(t.params=i.params,e.copy(t.params,a),n.$broadcast("$routeUpdate",t)):(i||t)&&(y=!1,b.current=i,i&&i.redirectTo&&(e.isString(i.redirectTo)?r.path(g(i.redirectTo,i.params)).search(i.params).replace():r.url(i.redirectTo(i.pathParams,r.path(),r.search())).replace()),o.when(i).then(function(){if(i){var t,n,r=e.extend({},i.resolve);return e.forEach(r,function(t,n){r[n]=e.isString(t)?l.get(t):l.invoke(t,null,null,n)}),e.isDefined(t=i.template)?e.isFunction(t)&&(t=t(i.params)):e.isDefined(n=i.templateUrl)&&(e.isFunction(n)&&(n=n(i.params)),n=c.getTrustedResourceUrl(n),e.isDefined(n)&&(i.loadedTemplateUrl=n,t=u(n))),e.isDefined(t)&&(r.$template=t),o.all(r)}}).then(function(r){i==b.current&&(i&&(i.locals=r,e.copy(i.params,a)),n.$broadcast("$routeChangeSuccess",i,t))},function(e){i==b.current&&n.$broadcast("$routeChangeError",i,t,e)}))}function f(){var n,a;return e.forEach(i,function(i){!a&&(n=d(r.path(),i))&&(a=t(i,{params:e.extend({},r.search(),n),pathParams:n}),a.$$route=i)}),a||i[null]&&t(i[null],{params:{},pathParams:{}})}function g(t,n){var i=[];return e.forEach((t||"").split(":"),function(t,e){if(0===e)i.push(t);else{var r=t.match(/(\w+)(?:[?*])?(.*)/),a=r[1];i.push(n[a]),i.push(r[2]||""),delete n[a]}}),i.join("")}var m,v,y=!1,b={routes:i,reload:function(){y=!0,n.$evalAsync(function(){h(),p()})},updateParams:function(t){if(!this.current||!this.current.$$route)throw s("norout","Tried updating route when with no current route");t=e.extend({},this.current.params,t),r.path(g(this.current.$$route.originalPath,t)),r.search(t)}};return n.$on("$locationChangeStart",h),n.$on("$locationChangeSuccess",p),b}]}function i(){this.$get=function(){return{}}}function r(t,n,i){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(r,a,o,s,l){function u(){p&&(i.cancel(p),p=null),d&&(d.$destroy(),d=null),h&&(p=i.leave(h),p.then(function(){p=null}),h=null)}function c(){var o=t.current&&t.current.locals,s=o&&o.$template;if(e.isDefined(s)){var c=r.$new(),p=t.current,m=l(c,function(t){i.enter(t,null,h||a).then(function(){!e.isDefined(f)||f&&!r.$eval(f)||n()}),u()});h=m,d=p.scope=c,d.$emit("$viewContentLoaded"),d.$eval(g)}else u()}var d,h,p,f=o.autoscroll,g=o.onload||"";r.$on("$routeChangeSuccess",c),c()}}}function a(t,e,n){return{restrict:"ECA",priority:-400,link:function(i,r){var a=n.current,o=a.locals;r.html(o.$template);var s=t(r.contents());if(a.controller){o.$scope=i;var l=e(a.controller,o);a.controllerAs&&(i[a.controllerAs]=l),r.data("$ngControllerController",l),r.children().data("$ngControllerController",l)}s(i)}}}var o=e.module("ngRoute",["ng"]).provider("$route",n),s=e.$$minErr("ngRoute");o.provider("$routeParams",i),o.directive("ngView",r),o.directive("ngView",a),r.$inject=["$route","$anchorScroll","$animate"],a.$inject=["$compile","$controller","$route"]}(window,window.angular),/*
 * angular-ui-bootstrap
 * http://angular-ui.github.io/bootstrap/

 * Version: 0.12.1 - 2015-02-20
 * License: MIT
 */
angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/day.html","template/datepicker/month.html","template/datepicker/popup.html","template/datepicker/year.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.transition",[]).factory("$transition",["$q","$timeout","$rootScope",function(t,e,n){function i(t){for(var e in t)if(void 0!==a.style[e])return t[e]}var r=function(i,a,o){o=o||{};var s=t.defer(),l=r[o.animation?"animationEndEventName":"transitionEndEventName"],u=function(){n.$apply(function(){i.unbind(l,u),s.resolve(i)})};return l&&i.bind(l,u),e(function(){angular.isString(a)?i.addClass(a):angular.isFunction(a)?a(i):angular.isObject(a)&&i.css(a),l||s.resolve(i)}),s.promise.cancel=function(){l&&i.unbind(l,u),s.reject("Transition cancelled")},s.promise},a=document.createElement("trans"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},s={WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"};return r.transitionEndEventName=i(o),r.animationEndEventName=i(s),r}]),angular.module("ui.bootstrap.collapse",["ui.bootstrap.transition"]).directive("collapse",["$transition",function(t){return{link:function(e,n,i){function r(e){function i(){u===r&&(u=void 0)}var r=t(n,e);return u&&u.cancel(),u=r,r.then(i,i),r}function a(){c?(c=!1,o()):(n.removeClass("collapse").addClass("collapsing"),r({height:n[0].scrollHeight+"px"}).then(o))}function o(){n.removeClass("collapsing"),n.addClass("collapse in"),n.css({height:"auto"})}function s(){if(c)c=!1,l(),n.css({height:0});else{n.css({height:n[0].scrollHeight+"px"});{n[0].offsetWidth}n.removeClass("collapse in").addClass("collapsing"),r({height:0}).then(l)}}function l(){n.removeClass("collapsing"),n.addClass("collapse")}var u,c=!0;e.$watch(i.collapse,function(t){t?s():a()})}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(t,e,n){this.groups=[],this.closeOthers=function(i){var r=angular.isDefined(e.closeOthers)?t.$eval(e.closeOthers):n.closeOthers;r&&angular.forEach(this.groups,function(t){t!==i&&(t.isOpen=!1)})},this.addGroup=function(t){var e=this;this.groups.push(t),t.$on("$destroy",function(){e.removeGroup(t)})},this.removeGroup=function(t){var e=this.groups.indexOf(t);-1!==e&&this.groups.splice(e,1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",transclude:!0,replace:!1,templateUrl:"template/accordion/accordion.html"}}).directive("accordionGroup",function(){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/accordion/accordion-group.html",scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(t){this.heading=t}},link:function(t,e,n,i){i.addGroup(t),t.$watch("isOpen",function(e){e&&i.closeOthers(t)}),t.toggleOpen=function(){t.isDisabled||(t.isOpen=!t.isOpen)}}}}).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(t,e,n,i,r){i.setHeading(r(t,function(){}))}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(t,e,n,i){t.$watch(function(){return i[n.accordionTransclude]},function(t){t&&(e.html(""),e.append(t))})}}}),angular.module("ui.bootstrap.alert",[]).controller("AlertController",["$scope","$attrs",function(t,e){t.closeable="close"in e,this.close=t.close}]).directive("alert",function(){return{restrict:"EA",controller:"AlertController",templateUrl:"template/alert/alert.html",transclude:!0,replace:!0,scope:{type:"@",close:"&"}}}).directive("dismissOnTimeout",["$timeout",function(t){return{require:"alert",link:function(e,n,i,r){t(function(){r.close()},parseInt(i.dismissOnTimeout,10))}}}]),angular.module("ui.bootstrap.bindHtml",[]).directive("bindHtmlUnsafe",function(){return function(t,e,n){e.addClass("ng-binding").data("$binding",n.bindHtmlUnsafe),t.$watch(n.bindHtmlUnsafe,function(t){e.html(t||"")})}}),angular.module("ui.bootstrap.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).controller("ButtonsController",["buttonConfig",function(t){this.activeClass=t.activeClass||"active",this.toggleEvent=t.toggleEvent||"click"}]).directive("btnRadio",function(){return{require:["btnRadio","ngModel"],controller:"ButtonsController",link:function(t,e,n,i){var r=i[0],a=i[1];a.$render=function(){e.toggleClass(r.activeClass,angular.equals(a.$modelValue,t.$eval(n.btnRadio)))},e.bind(r.toggleEvent,function(){var i=e.hasClass(r.activeClass);(!i||angular.isDefined(n.uncheckable))&&t.$apply(function(){a.$setViewValue(i?null:t.$eval(n.btnRadio)),a.$render()})})}}}).directive("btnCheckbox",function(){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",link:function(t,e,n,i){function r(){return o(n.btnCheckboxTrue,!0)}function a(){return o(n.btnCheckboxFalse,!1)}function o(e,n){var i=t.$eval(e);return angular.isDefined(i)?i:n}var s=i[0],l=i[1];l.$render=function(){e.toggleClass(s.activeClass,angular.equals(l.$modelValue,r()))},e.bind(s.toggleEvent,function(){t.$apply(function(){l.$setViewValue(e.hasClass(s.activeClass)?a():r()),l.$render()})})}}}),angular.module("ui.bootstrap.carousel",["ui.bootstrap.transition"]).controller("CarouselController",["$scope","$timeout","$interval","$transition",function(t,e,n,i){function r(){a();var e=+t.interval;!isNaN(e)&&e>0&&(s=n(o,e))}function a(){s&&(n.cancel(s),s=null)}function o(){var e=+t.interval;l&&!isNaN(e)&&e>0?t.next():t.pause()}var s,l,u=this,c=u.slides=t.slides=[],d=-1;u.currentSlide=null;var h=!1;u.select=t.select=function(n,a){function o(){if(!h){if(u.currentSlide&&angular.isString(a)&&!t.noTransition&&n.$element){n.$element.addClass(a);{n.$element[0].offsetWidth}angular.forEach(c,function(t){angular.extend(t,{direction:"",entering:!1,leaving:!1,active:!1})}),angular.extend(n,{direction:a,active:!0,entering:!0}),angular.extend(u.currentSlide||{},{direction:a,leaving:!0}),t.$currentTransition=i(n.$element,{}),function(e,n){t.$currentTransition.then(function(){s(e,n)},function(){s(e,n)})}(n,u.currentSlide)}else s(n,u.currentSlide);u.currentSlide=n,d=l,r()}}function s(e,n){angular.extend(e,{direction:"",active:!0,leaving:!1,entering:!1}),angular.extend(n||{},{direction:"",active:!1,leaving:!1,entering:!1}),t.$currentTransition=null}var l=c.indexOf(n);void 0===a&&(a=l>d?"next":"prev"),n&&n!==u.currentSlide&&(t.$currentTransition?(t.$currentTransition.cancel(),e(o)):o())},t.$on("$destroy",function(){h=!0}),u.indexOfSlide=function(t){return c.indexOf(t)},t.next=function(){var e=(d+1)%c.length;return t.$currentTransition?void 0:u.select(c[e],"next")},t.prev=function(){var e=0>d-1?c.length-1:d-1;return t.$currentTransition?void 0:u.select(c[e],"prev")},t.isActive=function(t){return u.currentSlide===t},t.$watch("interval",r),t.$on("$destroy",a),t.play=function(){l||(l=!0,r())},t.pause=function(){t.noPause||(l=!1,a())},u.addSlide=function(e,n){e.$element=n,c.push(e),1===c.length||e.active?(u.select(c[c.length-1]),1==c.length&&t.play()):e.active=!1},u.removeSlide=function(t){var e=c.indexOf(t);c.splice(e,1),c.length>0&&t.active?u.select(e>=c.length?c[e-1]:c[e]):d>e&&d--}}]).directive("carousel",[function(){return{restrict:"EA",transclude:!0,replace:!0,controller:"CarouselController",require:"carousel",templateUrl:"template/carousel/carousel.html",scope:{interval:"=",noTransition:"=",noPause:"="}}}]).directive("slide",function(){return{require:"^carousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/carousel/slide.html",scope:{active:"=?"},link:function(t,e,n,i){i.addSlide(t,e),t.$on("$destroy",function(){i.removeSlide(t)}),t.$watch("active",function(e){e&&i.select(t)})}}}),angular.module("ui.bootstrap.dateparser",[]).service("dateParser",["$locale","orderByFilter",function(t,e){function n(t){var n=[],i=t.split("");return angular.forEach(r,function(e,r){var a=t.indexOf(r);if(a>-1){t=t.split(""),i[a]="("+e.regex+")",t[a]="$";for(var o=a+1,s=a+r.length;s>o;o++)i[o]="",t[o]="$";t=t.join(""),n.push({index:a,apply:e.apply})}}),{regex:new RegExp("^"+i.join("")+"$"),map:e(n,"index")}}function i(t,e,n){return 1===e&&n>28?29===n&&(t%4===0&&t%100!==0||t%400===0):3===e||5===e||8===e||10===e?31>n:!0}this.parsers={};var r={yyyy:{regex:"\\d{4}",apply:function(t){this.year=+t}},yy:{regex:"\\d{2}",apply:function(t){this.year=+t+2e3}},y:{regex:"\\d{1,4}",apply:function(t){this.year=+t}},MMMM:{regex:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.MONTH.indexOf(e)}},MMM:{regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.SHORTMONTH.indexOf(e)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(t){this.month=t-1}},M:{regex:"[1-9]|1[0-2]",apply:function(t){this.month=t-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t}},EEEE:{regex:t.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:t.DATETIME_FORMATS.SHORTDAY.join("|")}};this.parse=function(e,r){if(!angular.isString(e)||!r)return e;r=t.DATETIME_FORMATS[r]||r,this.parsers[r]||(this.parsers[r]=n(r));var a=this.parsers[r],o=a.regex,s=a.map,l=e.match(o);if(l&&l.length){for(var u,c={year:1900,month:0,date:1,hours:0},d=1,h=l.length;h>d;d++){var p=s[d-1];p.apply&&p.apply.call(c,l[d])}return i(c.year,c.month,c.date)&&(u=new Date(c.year,c.month,c.date,c.hours)),u}}}]),angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(t,e){function n(t,n){return t.currentStyle?t.currentStyle[n]:e.getComputedStyle?e.getComputedStyle(t)[n]:t.style[n]}function i(t){return"static"===(n(t,"position")||"static")}var r=function(e){for(var n=t[0],r=e.offsetParent||n;r&&r!==n&&i(r);)r=r.offsetParent;return r||n};return{position:function(e){var n=this.offset(e),i={top:0,left:0},a=r(e[0]);a!=t[0]&&(i=this.offset(angular.element(a)),i.top+=a.clientTop-a.scrollTop,i.left+=a.clientLeft-a.scrollLeft);var o=e[0].getBoundingClientRect();return{width:o.width||e.prop("offsetWidth"),height:o.height||e.prop("offsetHeight"),top:n.top-i.top,left:n.left-i.left}},offset:function(n){var i=n[0].getBoundingClientRect();return{width:i.width||n.prop("offsetWidth"),height:i.height||n.prop("offsetHeight"),top:i.top+(e.pageYOffset||t[0].documentElement.scrollTop),left:i.left+(e.pageXOffset||t[0].documentElement.scrollLeft)}},positionElements:function(t,e,n,i){var r,a,o,s,l=n.split("-"),u=l[0],c=l[1]||"center";r=i?this.offset(t):this.position(t),a=e.prop("offsetWidth"),o=e.prop("offsetHeight");var d={center:function(){return r.left+r.width/2-a/2},left:function(){return r.left},right:function(){return r.left+r.width}},h={center:function(){return r.top+r.height/2-o/2},top:function(){return r.top},bottom:function(){return r.top+r.height}};switch(u){case"right":s={top:h[c](),left:d[u]()};break;case"left":s={top:h[c](),left:r.left-a};break;case"bottom":s={top:h[u](),left:d[c]()};break;default:s={top:r.top-o,left:d[c]()}}return s}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).constant("datepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null}).controller("DatepickerController",["$scope","$attrs","$parse","$interpolate","$timeout","$log","dateFilter","datepickerConfig",function(t,e,n,i,r,a,o,s){var l=this,u={$setViewValue:angular.noop};this.modes=["day","month","year"],angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","minMode","maxMode","showWeeks","startingDay","yearRange"],function(n,r){l[n]=angular.isDefined(e[n])?8>r?i(e[n])(t.$parent):t.$parent.$eval(e[n]):s[n]}),angular.forEach(["minDate","maxDate"],function(i){e[i]?t.$parent.$watch(n(e[i]),function(t){l[i]=t?new Date(t):null,l.refreshView()}):l[i]=s[i]?new Date(s[i]):null}),t.datepickerMode=t.datepickerMode||s.datepickerMode,t.uniqueId="datepicker-"+t.$id+"-"+Math.floor(1e4*Math.random()),this.activeDate=angular.isDefined(e.initDate)?t.$parent.$eval(e.initDate):new Date,t.isActive=function(e){return 0===l.compare(e.date,l.activeDate)?(t.activeDateId=e.uid,!0):!1},this.init=function(t){u=t,u.$render=function(){l.render()}},this.render=function(){if(u.$modelValue){var t=new Date(u.$modelValue),e=!isNaN(t);e?this.activeDate=t:a.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.'),u.$setValidity("date",e)}this.refreshView()},this.refreshView=function(){if(this.element){this._refreshView();var t=u.$modelValue?new Date(u.$modelValue):null;u.$setValidity("date-disabled",!t||this.element&&!this.isDisabled(t))}},this.createDateObject=function(t,e){var n=u.$modelValue?new Date(u.$modelValue):null;return{date:t,label:o(t,e),selected:n&&0===this.compare(t,n),disabled:this.isDisabled(t),current:0===this.compare(t,new Date)}},this.isDisabled=function(n){return this.minDate&&this.compare(n,this.minDate)<0||this.maxDate&&this.compare(n,this.maxDate)>0||e.dateDisabled&&t.dateDisabled({date:n,mode:t.datepickerMode})},this.split=function(t,e){for(var n=[];t.length>0;)n.push(t.splice(0,e));return n},t.select=function(e){if(t.datepickerMode===l.minMode){var n=u.$modelValue?new Date(u.$modelValue):new Date(0,0,0,0,0,0,0);n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),u.$setViewValue(n),u.$render()}else l.activeDate=e,t.datepickerMode=l.modes[l.modes.indexOf(t.datepickerMode)-1]},t.move=function(t){var e=l.activeDate.getFullYear()+t*(l.step.years||0),n=l.activeDate.getMonth()+t*(l.step.months||0);l.activeDate.setFullYear(e,n,1),l.refreshView()},t.toggleMode=function(e){e=e||1,t.datepickerMode===l.maxMode&&1===e||t.datepickerMode===l.minMode&&-1===e||(t.datepickerMode=l.modes[l.modes.indexOf(t.datepickerMode)+e])},t.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};var c=function(){r(function(){l.element[0].focus()},0,!1)};t.$on("datepicker.focus",c),t.keydown=function(e){var n=t.keys[e.which];if(n&&!e.shiftKey&&!e.altKey)if(e.preventDefault(),e.stopPropagation(),"enter"===n||"space"===n){if(l.isDisabled(l.activeDate))return;t.select(l.activeDate),c()}else!e.ctrlKey||"up"!==n&&"down"!==n?(l.handleKeyDown(n,e),l.refreshView()):(t.toggleMode("up"===n?1:-1),c())}}]).directive("datepicker",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/datepicker.html",scope:{datepickerMode:"=?",dateDisabled:"&"},require:["datepicker","?^ngModel"],controller:"DatepickerController",link:function(t,e,n,i){var r=i[0],a=i[1];a&&r.init(a)}}}).directive("daypicker",["dateFilter",function(t){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/day.html",require:"^datepicker",link:function(e,n,i,r){function a(t,e){return 1!==e||t%4!==0||t%100===0&&t%400!==0?l[e]:29}function o(t,e){var n=new Array(e),i=new Date(t),r=0;for(i.setHours(12);e>r;)n[r++]=new Date(i),i.setDate(i.getDate()+1);return n}function s(t){var e=new Date(t);e.setDate(e.getDate()+4-(e.getDay()||7));var n=e.getTime();return e.setMonth(0),e.setDate(1),Math.floor(Math.round((n-e)/864e5)/7)+1}e.showWeeks=r.showWeeks,r.step={months:1},r.element=n;var l=[31,28,31,30,31,30,31,31,30,31,30,31];r._refreshView=function(){var n=r.activeDate.getFullYear(),i=r.activeDate.getMonth(),a=new Date(n,i,1),l=r.startingDay-a.getDay(),u=l>0?7-l:-l,c=new Date(a);u>0&&c.setDate(-u+1);for(var d=o(c,42),h=0;42>h;h++)d[h]=angular.extend(r.createDateObject(d[h],r.formatDay),{secondary:d[h].getMonth()!==i,uid:e.uniqueId+"-"+h});e.labels=new Array(7);for(var p=0;7>p;p++)e.labels[p]={abbr:t(d[p].date,r.formatDayHeader),full:t(d[p].date,"EEEE")};if(e.title=t(r.activeDate,r.formatDayTitle),e.rows=r.split(d,7),e.showWeeks){e.weekNumbers=[];for(var f=s(e.rows[0][0].date),g=e.rows.length;e.weekNumbers.push(f++)<g;);}},r.compare=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate())-new Date(e.getFullYear(),e.getMonth(),e.getDate())},r.handleKeyDown=function(t){var e=r.activeDate.getDate();if("left"===t)e-=1;else if("up"===t)e-=7;else if("right"===t)e+=1;else if("down"===t)e+=7;else if("pageup"===t||"pagedown"===t){var n=r.activeDate.getMonth()+("pageup"===t?-1:1);r.activeDate.setMonth(n,1),e=Math.min(a(r.activeDate.getFullYear(),r.activeDate.getMonth()),e)}else"home"===t?e=1:"end"===t&&(e=a(r.activeDate.getFullYear(),r.activeDate.getMonth()));r.activeDate.setDate(e)},r.refreshView()}}}]).directive("monthpicker",["dateFilter",function(t){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/month.html",require:"^datepicker",link:function(e,n,i,r){r.step={years:1},r.element=n,r._refreshView=function(){for(var n=new Array(12),i=r.activeDate.getFullYear(),a=0;12>a;a++)n[a]=angular.extend(r.createDateObject(new Date(i,a,1),r.formatMonth),{uid:e.uniqueId+"-"+a});e.title=t(r.activeDate,r.formatMonthTitle),e.rows=r.split(n,3)},r.compare=function(t,e){return new Date(t.getFullYear(),t.getMonth())-new Date(e.getFullYear(),e.getMonth())},r.handleKeyDown=function(t){var e=r.activeDate.getMonth();if("left"===t)e-=1;else if("up"===t)e-=3;else if("right"===t)e+=1;else if("down"===t)e+=3;else if("pageup"===t||"pagedown"===t){var n=r.activeDate.getFullYear()+("pageup"===t?-1:1);r.activeDate.setFullYear(n)}else"home"===t?e=0:"end"===t&&(e=11);r.activeDate.setMonth(e)},r.refreshView()}}}]).directive("yearpicker",["dateFilter",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/year.html",require:"^datepicker",link:function(t,e,n,i){function r(t){return parseInt((t-1)/a,10)*a+1}var a=i.yearRange;i.step={years:a},i.element=e,i._refreshView=function(){for(var e=new Array(a),n=0,o=r(i.activeDate.getFullYear());a>n;n++)e[n]=angular.extend(i.createDateObject(new Date(o+n,0,1),i.formatYear),{uid:t.uniqueId+"-"+n});t.title=[e[0].label,e[a-1].label].join(" - "),t.rows=i.split(e,5)},i.compare=function(t,e){return t.getFullYear()-e.getFullYear()},i.handleKeyDown=function(t){var e=i.activeDate.getFullYear();"left"===t?e-=1:"up"===t?e-=5:"right"===t?e+=1:"down"===t?e+=5:"pageup"===t||"pagedown"===t?e+=("pageup"===t?-1:1)*i.step.years:"home"===t?e=r(i.activeDate.getFullYear()):"end"===t&&(e=r(i.activeDate.getFullYear())+a-1),i.activeDate.setFullYear(e)},i.refreshView()}}}]).constant("datepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",currentText:"Today",clearText:"Clear",closeText:"Done",closeOnDateSelection:!0,appendToBody:!1,showButtonBar:!0}).directive("datepickerPopup",["$compile","$parse","$document","$position","dateFilter","dateParser","datepickerPopupConfig",function(t,e,n,i,r,a,o){return{restrict:"EA",require:"ngModel",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&"},link:function(s,l,u,c){function d(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function h(t){if(t){if(angular.isDate(t)&&!isNaN(t))return c.$setValidity("date",!0),t;if(angular.isString(t)){var e=a.parse(t,p)||new Date(t);return isNaN(e)?void c.$setValidity("date",!1):(c.$setValidity("date",!0),e)}return void c.$setValidity("date",!1)}return c.$setValidity("date",!0),null}var p,f=angular.isDefined(u.closeOnDateSelection)?s.$parent.$eval(u.closeOnDateSelection):o.closeOnDateSelection,g=angular.isDefined(u.datepickerAppendToBody)?s.$parent.$eval(u.datepickerAppendToBody):o.appendToBody;s.showButtonBar=angular.isDefined(u.showButtonBar)?s.$parent.$eval(u.showButtonBar):o.showButtonBar,s.getText=function(t){return s[t+"Text"]||o[t+"Text"]},u.$observe("datepickerPopup",function(t){p=t||o.datepickerPopup,c.$render()});var m=angular.element("<div datepicker-popup-wrap><div datepicker></div></div>");m.attr({"ng-model":"date","ng-change":"dateSelection()"});var v=angular.element(m.children()[0]);u.datepickerOptions&&angular.forEach(s.$parent.$eval(u.datepickerOptions),function(t,e){v.attr(d(e),t)}),s.watchData={},angular.forEach(["minDate","maxDate","datepickerMode"],function(t){if(u[t]){var n=e(u[t]);if(s.$parent.$watch(n,function(e){s.watchData[t]=e}),v.attr(d(t),"watchData."+t),"datepickerMode"===t){var i=n.assign;s.$watch("watchData."+t,function(t,e){t!==e&&i(s.$parent,t)})}}}),u.dateDisabled&&v.attr("date-disabled","dateDisabled({ date: date, mode: mode })"),c.$parsers.unshift(h),s.dateSelection=function(t){angular.isDefined(t)&&(s.date=t),c.$setViewValue(s.date),c.$render(),f&&(s.isOpen=!1,l[0].focus())},l.bind("input change keyup",function(){s.$apply(function(){s.date=c.$modelValue})}),c.$render=function(){var t=c.$viewValue?r(c.$viewValue,p):"";l.val(t),s.date=h(c.$modelValue)};var y=function(t){s.isOpen&&t.target!==l[0]&&s.$apply(function(){s.isOpen=!1})},b=function(t){s.keydown(t)};l.bind("keydown",b),s.keydown=function(t){27===t.which?(t.preventDefault(),t.stopPropagation(),s.close()):40!==t.which||s.isOpen||(s.isOpen=!0)},s.$watch("isOpen",function(t){t?(s.$broadcast("datepicker.focus"),s.position=g?i.offset(l):i.position(l),s.position.top=s.position.top+l.prop("offsetHeight"),n.bind("click",y)):n.unbind("click",y)}),s.select=function(t){if("today"===t){var e=new Date;angular.isDate(c.$modelValue)?(t=new Date(c.$modelValue),t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate())):t=new Date(e.setHours(0,0,0,0))}s.dateSelection(t)},s.close=function(){s.isOpen=!1,l[0].focus()};var x=t(m)(s);m.remove(),g?n.find("body").append(x):l.after(x),s.$on("$destroy",function(){x.remove(),l.unbind("keydown",b),n.unbind("click",y)})}}}]).directive("datepickerPopupWrap",function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"template/datepicker/popup.html",link:function(t,e){e.bind("click",function(t){t.preventDefault(),t.stopPropagation()})}}}),angular.module("ui.bootstrap.dropdown",[]).constant("dropdownConfig",{openClass:"open"}).service("dropdownService",["$document",function(t){var e=null;this.open=function(r){e||(t.bind("click",n),t.bind("keydown",i)),e&&e!==r&&(e.isOpen=!1),e=r},this.close=function(r){e===r&&(e=null,t.unbind("click",n),t.unbind("keydown",i))};var n=function(t){if(e){var n=e.getToggleElement();t&&n&&n[0].contains(t.target)||e.$apply(function(){e.isOpen=!1})}},i=function(t){27===t.which&&(e.focusToggleElement(),n())}}]).controller("DropdownController",["$scope","$attrs","$parse","dropdownConfig","dropdownService","$animate",function(t,e,n,i,r,a){var o,s=this,l=t.$new(),u=i.openClass,c=angular.noop,d=e.onToggle?n(e.onToggle):angular.noop;this.init=function(i){s.$element=i,e.isOpen&&(o=n(e.isOpen),c=o.assign,t.$watch(o,function(t){l.isOpen=!!t}))},this.toggle=function(t){return l.isOpen=arguments.length?!!t:!l.isOpen},this.isOpen=function(){return l.isOpen},l.getToggleElement=function(){return s.toggleElement},l.focusToggleElement=function(){s.toggleElement&&s.toggleElement[0].focus()},l.$watch("isOpen",function(e,n){a[e?"addClass":"removeClass"](s.$element,u),e?(l.focusToggleElement(),r.open(l)):r.close(l),c(t,e),angular.isDefined(e)&&e!==n&&d(t,{open:!!e})}),t.$on("$locationChangeSuccess",function(){l.isOpen=!1}),t.$on("$destroy",function(){l.$destroy()})}]).directive("dropdown",function(){return{controller:"DropdownController",link:function(t,e,n,i){i.init(e)}}}).directive("dropdownToggle",function(){return{require:"?^dropdown",link:function(t,e,n,i){if(i){i.toggleElement=e;var r=function(r){r.preventDefault(),e.hasClass("disabled")||n.disabled||t.$apply(function(){i.toggle()})};e.bind("click",r),e.attr({"aria-haspopup":!0,"aria-expanded":!1}),t.$watch(i.isOpen,function(t){e.attr("aria-expanded",!!t)}),t.$on("$destroy",function(){e.unbind("click",r)})}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.transition"]).factory("$$stackedMap",function(){return{createNew:function(){var t=[];return{add:function(e,n){t.push({key:e,value:n})},get:function(e){for(var n=0;n<t.length;n++)if(e==t[n].key)return t[n]},keys:function(){for(var e=[],n=0;n<t.length;n++)e.push(t[n].key);return e},top:function(){return t[t.length-1]},remove:function(e){for(var n=-1,i=0;i<t.length;i++)if(e==t[i].key){n=i;break}return t.splice(n,1)[0]},removeTop:function(){return t.splice(t.length-1,1)[0]},length:function(){return t.length}}}}}).directive("modalBackdrop",["$timeout",function(t){return{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",link:function(e,n,i){e.backdropClass=i.backdropClass||"",e.animate=!1,t(function(){e.animate=!0})}}}]).directive("modalWindow",["$modalStack","$timeout",function(t,e){return{restrict:"EA",scope:{index:"@",animate:"="},replace:!0,transclude:!0,templateUrl:function(t,e){return e.templateUrl||"template/modal/window.html"},link:function(n,i,r){i.addClass(r.windowClass||""),n.size=r.size,e(function(){n.animate=!0,i[0].querySelectorAll("[autofocus]").length||i[0].focus()}),n.close=function(e){var n=t.getTop();n&&n.value.backdrop&&"static"!=n.value.backdrop&&e.target===e.currentTarget&&(e.preventDefault(),e.stopPropagation(),t.dismiss(n.key,"backdrop click"))}}}}]).directive("modalTransclude",function(){return{link:function(t,e,n,i,r){r(t.$parent,function(t){e.empty(),e.append(t)})}}}).factory("$modalStack",["$transition","$timeout","$document","$compile","$rootScope","$$stackedMap",function(t,e,n,i,r,a){function o(){for(var t=-1,e=p.keys(),n=0;n<e.length;n++)p.get(e[n]).value.backdrop&&(t=n);return t}function s(t){var e=n.find("body").eq(0),i=p.get(t).value;p.remove(t),u(i.modalDomEl,i.modalScope,300,function(){i.modalScope.$destroy(),e.toggleClass(h,p.length()>0),l()})}function l(){if(c&&-1==o()){var t=d;u(c,d,150,function(){t.$destroy(),t=null}),c=void 0,d=void 0}}function u(n,i,r,a){function o(){o.done||(o.done=!0,n.remove(),a&&a())}i.animate=!1;var s=t.transitionEndEventName;if(s){var l=e(o,r);n.bind(s,function(){e.cancel(l),o(),i.$apply()})}else e(o)}var c,d,h="modal-open",p=a.createNew(),f={};return r.$watch(o,function(t){d&&(d.index=t)}),n.bind("keydown",function(t){var e;27===t.which&&(e=p.top(),e&&e.value.keyboard&&(t.preventDefault(),r.$apply(function(){f.dismiss(e.key,"escape key press")})))}),f.open=function(t,e){p.add(t,{deferred:e.deferred,modalScope:e.scope,backdrop:e.backdrop,keyboard:e.keyboard});var a=n.find("body").eq(0),s=o();if(s>=0&&!c){d=r.$new(!0),d.index=s;var l=angular.element("<div modal-backdrop></div>");l.attr("backdrop-class",e.backdropClass),c=i(l)(d),a.append(c)}var u=angular.element("<div modal-window></div>");u.attr({"template-url":e.windowTemplateUrl,"window-class":e.windowClass,size:e.size,index:p.length()-1,animate:"animate"}).html(e.content);var f=i(u)(e.scope);p.top().value.modalDomEl=f,a.append(f),a.addClass(h)},f.close=function(t,e){var n=p.get(t);n&&(n.value.deferred.resolve(e),s(t))},f.dismiss=function(t,e){var n=p.get(t);n&&(n.value.deferred.reject(e),s(t))},f.dismissAll=function(t){for(var e=this.getTop();e;)this.dismiss(e.key,t),e=this.getTop()},f.getTop=function(){return p.top()},f}]).provider("$modal",function(){var t={options:{backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$http","$templateCache","$controller","$modalStack",function(e,n,i,r,a,o,s){function l(t){return t.template?i.when(t.template):r.get(angular.isFunction(t.templateUrl)?t.templateUrl():t.templateUrl,{cache:a}).then(function(t){return t.data})}function u(t){var n=[];return angular.forEach(t,function(t){(angular.isFunction(t)||angular.isArray(t))&&n.push(i.when(e.invoke(t)))}),n}var c={};return c.open=function(e){var r=i.defer(),a=i.defer(),c={result:r.promise,opened:a.promise,close:function(t){s.close(c,t)},dismiss:function(t){s.dismiss(c,t)}};if(e=angular.extend({},t.options,e),e.resolve=e.resolve||{},!e.template&&!e.templateUrl)throw new Error("One of template or templateUrl options is required.");var d=i.all([l(e)].concat(u(e.resolve)));return d.then(function(t){var i=(e.scope||n).$new();i.$close=c.close,i.$dismiss=c.dismiss;var a,l={},u=1;e.controller&&(l.$scope=i,l.$modalInstance=c,angular.forEach(e.resolve,function(e,n){l[n]=t[u++]}),a=o(e.controller,l),e.controllerAs&&(i[e.controllerAs]=a)),s.open(c,{scope:i,deferred:r,content:t[0],backdrop:e.backdrop,keyboard:e.keyboard,backdropClass:e.backdropClass,windowClass:e.windowClass,windowTemplateUrl:e.windowTemplateUrl,size:e.size})},function(t){r.reject(t)}),d.then(function(){a.resolve(!0)},function(){a.reject(!1)}),c},c}]};return t}),angular.module("ui.bootstrap.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse",function(t,e,n){var i=this,r={$setViewValue:angular.noop},a=e.numPages?n(e.numPages).assign:angular.noop;this.init=function(a,o){r=a,this.config=o,r.$render=function(){i.render()},e.itemsPerPage?t.$parent.$watch(n(e.itemsPerPage),function(e){i.itemsPerPage=parseInt(e,10),t.totalPages=i.calculateTotalPages()}):this.itemsPerPage=o.itemsPerPage},this.calculateTotalPages=function(){var e=this.itemsPerPage<1?1:Math.ceil(t.totalItems/this.itemsPerPage);return Math.max(e||0,1)},this.render=function(){t.page=parseInt(r.$viewValue,10)||1},t.selectPage=function(e){t.page!==e&&e>0&&e<=t.totalPages&&(r.$setViewValue(e),r.$render())},t.getText=function(e){return t[e+"Text"]||i.config[e+"Text"]},t.noPrevious=function(){return 1===t.page},t.noNext=function(){return t.page===t.totalPages},t.$watch("totalItems",function(){t.totalPages=i.calculateTotalPages()}),t.$watch("totalPages",function(e){a(t.$parent,e),t.page>e?t.selectPage(e):r.$render()})}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("pagination",["$parse","paginationConfig",function(t,e){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@"},require:["pagination","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pagination.html",replace:!0,link:function(n,i,r,a){function o(t,e,n){return{number:t,text:e,active:n}}function s(t,e){var n=[],i=1,r=e,a=angular.isDefined(c)&&e>c;a&&(d?(i=Math.max(t-Math.floor(c/2),1),r=i+c-1,r>e&&(r=e,i=r-c+1)):(i=(Math.ceil(t/c)-1)*c+1,r=Math.min(i+c-1,e)));for(var s=i;r>=s;s++){var l=o(s,s,s===t);n.push(l)}if(a&&!d){if(i>1){var u=o(i-1,"...",!1);n.unshift(u)}if(e>r){var h=o(r+1,"...",!1);n.push(h)}}return n}var l=a[0],u=a[1];if(u){var c=angular.isDefined(r.maxSize)?n.$parent.$eval(r.maxSize):e.maxSize,d=angular.isDefined(r.rotate)?n.$parent.$eval(r.rotate):e.rotate;n.boundaryLinks=angular.isDefined(r.boundaryLinks)?n.$parent.$eval(r.boundaryLinks):e.boundaryLinks,n.directionLinks=angular.isDefined(r.directionLinks)?n.$parent.$eval(r.directionLinks):e.directionLinks,l.init(u,e),r.maxSize&&n.$parent.$watch(t(r.maxSize),function(t){c=parseInt(t,10),l.render()
});var h=l.render;l.render=function(){h(),n.page>0&&n.page<=n.totalPages&&(n.pages=s(n.page,n.totalPages))}}}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("pager",["pagerConfig",function(t){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@"},require:["pager","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pager.html",replace:!0,link:function(e,n,i,r){var a=r[0],o=r[1];o&&(e.align=angular.isDefined(i.align)?e.$parent.$eval(i.align):t.align,a.init(o,t))}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){function t(t){var e=/[A-Z]/g,n="-";return t.replace(e,function(t,e){return(e?n:"")+t.toLowerCase()})}var e={placement:"top",animation:!0,popupDelay:0},n={mouseenter:"mouseleave",click:"click",focus:"blur"},i={};this.options=function(t){angular.extend(i,t)},this.setTriggers=function(t){angular.extend(n,t)},this.$get=["$window","$compile","$timeout","$document","$position","$interpolate",function(r,a,o,s,l,u){return function(r,c,d){function h(t){var e=t||p.trigger||d,i=n[e]||e;return{show:e,hide:i}}var p=angular.extend({},e,i),f=t(r),g=u.startSymbol(),m=u.endSymbol(),v="<div "+f+'-popup title="'+g+"title"+m+'" content="'+g+"content"+m+'" placement="'+g+"placement"+m+'" animation="animation" is-open="isOpen"></div>';return{restrict:"EA",compile:function(){var t=a(v);return function(e,n,i){function a(){A.isOpen?d():u()}function u(){(!S||e.$eval(i[c+"Enable"]))&&(y(),A.popupDelay?C||(C=o(f,A.popupDelay,!1),C.then(function(t){t()})):f()())}function d(){e.$apply(function(){g()})}function f(){return C=null,_&&(o.cancel(_),_=null),A.content?(m(),k.css({top:0,left:0,display:"block"}),A.$digest(),T(),A.isOpen=!0,A.$digest(),T):angular.noop}function g(){A.isOpen=!1,o.cancel(C),C=null,A.animation?_||(_=o(v,500)):v()}function m(){k&&v(),$=A.$new(),k=t($,function(t){M?s.find("body").append(t):n.after(t)})}function v(){_=null,k&&(k.remove(),k=null),$&&($.$destroy(),$=null)}function y(){b(),x()}function b(){var t=i[c+"Placement"];A.placement=angular.isDefined(t)?t:p.placement}function x(){var t=i[c+"PopupDelay"],e=parseInt(t,10);A.popupDelay=isNaN(e)?p.popupDelay:e}function w(){var t=i[c+"Trigger"];E(),D=h(t),D.show===D.hide?n.bind(D.show,a):(n.bind(D.show,u),n.bind(D.hide,d))}var k,$,_,C,M=angular.isDefined(p.appendToBody)?p.appendToBody:!1,D=h(void 0),S=angular.isDefined(i[c+"Enable"]),A=e.$new(!0),T=function(){var t=l.positionElements(n,k,A.placement,M);t.top+="px",t.left+="px",k.css(t)};A.isOpen=!1,i.$observe(r,function(t){A.content=t,!t&&A.isOpen&&g()}),i.$observe(c+"Title",function(t){A.title=t});var E=function(){n.unbind(D.show,u),n.unbind(D.hide,d)};w();var I=e.$eval(i[c+"Animation"]);A.animation=angular.isDefined(I)?!!I:p.animation;var P=e.$eval(i[c+"AppendToBody"]);M=angular.isDefined(P)?P:M,M&&e.$on("$locationChangeSuccess",function(){A.isOpen&&g()}),e.$on("$destroy",function(){o.cancel(_),o.cancel(C),E(),v(),A=null})}}}}}]}).directive("tooltipPopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(t){return t("tooltip","tooltip","mouseenter")}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}).directive("tooltipHtmlUnsafe",["$tooltip",function(t){return t("tooltipHtmlUnsafe","tooltip","mouseenter")}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("popoverPopup",function(){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}}).directive("popover",["$tooltip",function(t){return t("popover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("progressConfig",{animate:!0,max:100}).controller("ProgressController",["$scope","$attrs","progressConfig",function(t,e,n){var i=this,r=angular.isDefined(e.animate)?t.$parent.$eval(e.animate):n.animate;this.bars=[],t.max=angular.isDefined(e.max)?t.$parent.$eval(e.max):n.max,this.addBar=function(e,n){r||n.css({transition:"none"}),this.bars.push(e),e.$watch("value",function(n){e.percent=+(100*n/t.max).toFixed(2)}),e.$on("$destroy",function(){n=null,i.removeBar(e)})},this.removeBar=function(t){this.bars.splice(this.bars.indexOf(t),1)}}]).directive("progress",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{},templateUrl:"template/progressbar/progress.html"}}).directive("bar",function(){return{restrict:"EA",replace:!0,transclude:!0,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(t,e,n,i){i.addBar(t,e)}}}).directive("progressbar",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(t,e,n,i){i.addBar(t,angular.element(e.children()[0]))}}}),angular.module("ui.bootstrap.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null}).controller("RatingController",["$scope","$attrs","ratingConfig",function(t,e,n){var i={$setViewValue:angular.noop};this.init=function(r){i=r,i.$render=this.render,this.stateOn=angular.isDefined(e.stateOn)?t.$parent.$eval(e.stateOn):n.stateOn,this.stateOff=angular.isDefined(e.stateOff)?t.$parent.$eval(e.stateOff):n.stateOff;var a=angular.isDefined(e.ratingStates)?t.$parent.$eval(e.ratingStates):new Array(angular.isDefined(e.max)?t.$parent.$eval(e.max):n.max);t.range=this.buildTemplateObjects(a)},this.buildTemplateObjects=function(t){for(var e=0,n=t.length;n>e;e++)t[e]=angular.extend({index:e},{stateOn:this.stateOn,stateOff:this.stateOff},t[e]);return t},t.rate=function(e){!t.readonly&&e>=0&&e<=t.range.length&&(i.$setViewValue(e),i.$render())},t.enter=function(e){t.readonly||(t.value=e),t.onHover({value:e})},t.reset=function(){t.value=i.$viewValue,t.onLeave()},t.onKeydown=function(e){/(37|38|39|40)/.test(e.which)&&(e.preventDefault(),e.stopPropagation(),t.rate(t.value+(38===e.which||39===e.which?1:-1)))},this.render=function(){t.value=i.$viewValue}}]).directive("rating",function(){return{restrict:"EA",require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(t,e,n,i){var r=i[0],a=i[1];a&&r.init(a)}}}),angular.module("ui.bootstrap.tabs",[]).controller("TabsetController",["$scope",function(t){var e=this,n=e.tabs=t.tabs=[];e.select=function(t){angular.forEach(n,function(e){e.active&&e!==t&&(e.active=!1,e.onDeselect())}),t.active=!0,t.onSelect()},e.addTab=function(t){n.push(t),1===n.length?t.active=!0:t.active&&e.select(t)},e.removeTab=function(t){var r=n.indexOf(t);if(t.active&&n.length>1&&!i){var a=r==n.length-1?r-1:r+1;e.select(n[a])}n.splice(r,1)};var i;t.$on("$destroy",function(){i=!0})}]).directive("tabset",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(t,e,n){t.vertical=angular.isDefined(n.vertical)?t.$parent.$eval(n.vertical):!1,t.justified=angular.isDefined(n.justified)?t.$parent.$eval(n.justified):!1}}}).directive("tab",["$parse",function(t){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},compile:function(e,n,i){return function(e,n,r,a){e.$watch("active",function(t){t&&a.select(e)}),e.disabled=!1,r.disabled&&e.$parent.$watch(t(r.disabled),function(t){e.disabled=!!t}),e.select=function(){e.disabled||(e.active=!0)},a.addTab(e),e.$on("$destroy",function(){a.removeTab(e)}),e.$transcludeFn=i}}}}]).directive("tabHeadingTransclude",[function(){return{restrict:"A",require:"^tab",link:function(t,e){t.$watch("headingElement",function(t){t&&(e.html(""),e.append(t))})}}}]).directive("tabContentTransclude",function(){function t(t){return t.tagName&&(t.hasAttribute("tab-heading")||t.hasAttribute("data-tab-heading")||"tab-heading"===t.tagName.toLowerCase()||"data-tab-heading"===t.tagName.toLowerCase())}return{restrict:"A",require:"^tabset",link:function(e,n,i){var r=e.$eval(i.tabContentTransclude);r.$transcludeFn(r.$parent,function(e){angular.forEach(e,function(e){t(e)?r.headingElement=e:n.append(e)})})}}}),angular.module("ui.bootstrap.timepicker",[]).constant("timepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0}).controller("TimepickerController",["$scope","$attrs","$parse","$log","$locale","timepickerConfig",function(t,e,n,i,r,a){function o(){var e=parseInt(t.hours,10),n=t.showMeridian?e>0&&13>e:e>=0&&24>e;return n?(t.showMeridian&&(12===e&&(e=0),t.meridian===g[1]&&(e+=12)),e):void 0}function s(){var e=parseInt(t.minutes,10);return e>=0&&60>e?e:void 0}function l(t){return angular.isDefined(t)&&t.toString().length<2?"0"+t:t}function u(t){c(),f.$setViewValue(new Date(p)),d(t)}function c(){f.$setValidity("time",!0),t.invalidHours=!1,t.invalidMinutes=!1}function d(e){var n=p.getHours(),i=p.getMinutes();t.showMeridian&&(n=0===n||12===n?12:n%12),t.hours="h"===e?n:l(n),t.minutes="m"===e?i:l(i),t.meridian=p.getHours()<12?g[0]:g[1]}function h(t){var e=new Date(p.getTime()+6e4*t);p.setHours(e.getHours(),e.getMinutes()),u()}var p=new Date,f={$setViewValue:angular.noop},g=angular.isDefined(e.meridians)?t.$parent.$eval(e.meridians):a.meridians||r.DATETIME_FORMATS.AMPMS;this.init=function(n,i){f=n,f.$render=this.render;var r=i.eq(0),o=i.eq(1),s=angular.isDefined(e.mousewheel)?t.$parent.$eval(e.mousewheel):a.mousewheel;s&&this.setupMousewheelEvents(r,o),t.readonlyInput=angular.isDefined(e.readonlyInput)?t.$parent.$eval(e.readonlyInput):a.readonlyInput,this.setupInputEvents(r,o)};var m=a.hourStep;e.hourStep&&t.$parent.$watch(n(e.hourStep),function(t){m=parseInt(t,10)});var v=a.minuteStep;e.minuteStep&&t.$parent.$watch(n(e.minuteStep),function(t){v=parseInt(t,10)}),t.showMeridian=a.showMeridian,e.showMeridian&&t.$parent.$watch(n(e.showMeridian),function(e){if(t.showMeridian=!!e,f.$error.time){var n=o(),i=s();angular.isDefined(n)&&angular.isDefined(i)&&(p.setHours(n),u())}else d()}),this.setupMousewheelEvents=function(e,n){var i=function(t){t.originalEvent&&(t=t.originalEvent);var e=t.wheelDelta?t.wheelDelta:-t.deltaY;return t.detail||e>0};e.bind("mousewheel wheel",function(e){t.$apply(i(e)?t.incrementHours():t.decrementHours()),e.preventDefault()}),n.bind("mousewheel wheel",function(e){t.$apply(i(e)?t.incrementMinutes():t.decrementMinutes()),e.preventDefault()})},this.setupInputEvents=function(e,n){if(t.readonlyInput)return t.updateHours=angular.noop,void(t.updateMinutes=angular.noop);var i=function(e,n){f.$setViewValue(null),f.$setValidity("time",!1),angular.isDefined(e)&&(t.invalidHours=e),angular.isDefined(n)&&(t.invalidMinutes=n)};t.updateHours=function(){var t=o();angular.isDefined(t)?(p.setHours(t),u("h")):i(!0)},e.bind("blur",function(){!t.invalidHours&&t.hours<10&&t.$apply(function(){t.hours=l(t.hours)})}),t.updateMinutes=function(){var t=s();angular.isDefined(t)?(p.setMinutes(t),u("m")):i(void 0,!0)},n.bind("blur",function(){!t.invalidMinutes&&t.minutes<10&&t.$apply(function(){t.minutes=l(t.minutes)})})},this.render=function(){var t=f.$modelValue?new Date(f.$modelValue):null;isNaN(t)?(f.$setValidity("time",!1),i.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(t&&(p=t),c(),d())},t.incrementHours=function(){h(60*m)},t.decrementHours=function(){h(60*-m)},t.incrementMinutes=function(){h(v)},t.decrementMinutes=function(){h(-v)},t.toggleMeridian=function(){h(720*(p.getHours()<12?1:-1))}}]).directive("timepicker",function(){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",replace:!0,scope:{},templateUrl:"template/timepicker/timepicker.html",link:function(t,e,n,i){var r=i[0],a=i[1];a&&r.init(a,e.find("input"))}}}),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).factory("typeaheadParser",["$parse",function(t){var e=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(n){var i=n.match(e);if(!i)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+n+'".');return{itemName:i[3],source:t(i[4]),viewMapper:t(i[2]||i[1]),modelMapper:t(i[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$position","typeaheadParser",function(t,e,n,i,r,a,o){var s=[9,13,27,38,40];return{require:"ngModel",link:function(l,u,c,d){var h,p=l.$eval(c.typeaheadMinLength)||1,f=l.$eval(c.typeaheadWaitMs)||0,g=l.$eval(c.typeaheadEditable)!==!1,m=e(c.typeaheadLoading).assign||angular.noop,v=e(c.typeaheadOnSelect),y=c.typeaheadInputFormatter?e(c.typeaheadInputFormatter):void 0,b=c.typeaheadAppendToBody?l.$eval(c.typeaheadAppendToBody):!1,x=l.$eval(c.typeaheadFocusFirst)!==!1,w=e(c.ngModel).assign,k=o.parse(c.typeahead),$=l.$new();l.$on("$destroy",function(){$.$destroy()});var _="typeahead-"+$.$id+"-"+Math.floor(1e4*Math.random());u.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":_});var C=angular.element("<div typeahead-popup></div>");C.attr({id:_,matches:"matches",active:"activeIdx",select:"select(activeIdx)",query:"query",position:"position"}),angular.isDefined(c.typeaheadTemplateUrl)&&C.attr("template-url",c.typeaheadTemplateUrl);var M=function(){$.matches=[],$.activeIdx=-1,u.attr("aria-expanded",!1)},D=function(t){return _+"-option-"+t};$.$watch("activeIdx",function(t){0>t?u.removeAttr("aria-activedescendant"):u.attr("aria-activedescendant",D(t))});var S=function(t){var e={$viewValue:t};m(l,!0),n.when(k.source(l,e)).then(function(n){var i=t===d.$viewValue;if(i&&h)if(n.length>0){$.activeIdx=x?0:-1,$.matches.length=0;for(var r=0;r<n.length;r++)e[k.itemName]=n[r],$.matches.push({id:D(r),label:k.viewMapper($,e),model:n[r]});$.query=t,$.position=b?a.offset(u):a.position(u),$.position.top=$.position.top+u.prop("offsetHeight"),u.attr("aria-expanded",!0)}else M();i&&m(l,!1)},function(){M(),m(l,!1)})};M(),$.query=void 0;var A,T=function(t){A=i(function(){S(t)},f)},E=function(){A&&i.cancel(A)};d.$parsers.unshift(function(t){return h=!0,t&&t.length>=p?f>0?(E(),T(t)):S(t):(m(l,!1),E(),M()),g?t:t?void d.$setValidity("editable",!1):(d.$setValidity("editable",!0),t)}),d.$formatters.push(function(t){var e,n,i={};return y?(i.$model=t,y(l,i)):(i[k.itemName]=t,e=k.viewMapper(l,i),i[k.itemName]=void 0,n=k.viewMapper(l,i),e!==n?e:t)}),$.select=function(t){var e,n,r={};r[k.itemName]=n=$.matches[t].model,e=k.modelMapper(l,r),w(l,e),d.$setValidity("editable",!0),v(l,{$item:n,$model:e,$label:k.viewMapper(l,r)}),M(),i(function(){u[0].focus()},0,!1)},u.bind("keydown",function(t){0!==$.matches.length&&-1!==s.indexOf(t.which)&&(-1!=$.activeIdx||13!==t.which&&9!==t.which)&&(t.preventDefault(),40===t.which?($.activeIdx=($.activeIdx+1)%$.matches.length,$.$digest()):38===t.which?($.activeIdx=($.activeIdx>0?$.activeIdx:$.matches.length)-1,$.$digest()):13===t.which||9===t.which?$.$apply(function(){$.select($.activeIdx)}):27===t.which&&(t.stopPropagation(),M(),$.$digest()))}),u.bind("blur",function(){h=!1});var I=function(t){u[0]!==t.target&&(M(),$.$digest())};r.bind("click",I),l.$on("$destroy",function(){r.unbind("click",I),b&&P.remove()});var P=t(C)($);b?r.find("body").append(P):u.after(P)}}}]).directive("typeaheadPopup",function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"=",select:"&"},replace:!0,templateUrl:"template/typeahead/typeahead-popup.html",link:function(t,e,n){t.templateUrl=n.templateUrl,t.isOpen=function(){return t.matches.length>0},t.isActive=function(e){return t.active==e},t.selectActive=function(e){t.active=e},t.selectMatch=function(e){t.select({activeIdx:e})}}}}).directive("typeaheadMatch",["$http","$templateCache","$compile","$parse",function(t,e,n,i){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(r,a,o){var s=i(o.templateUrl)(r.$parent)||"template/typeahead/typeahead-match.html";t.get(s,{cache:e}).success(function(t){a.replaceWith(n(t.trim())(r))})}}}]).filter("typeaheadHighlight",function(){function t(t){return t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(e,n){return n?(""+e).replace(new RegExp(t(n),"gi"),"<strong>$&</strong>"):e}}),angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(t){t.put("template/accordion/accordion-group.html",'<div class="panel panel-default">\n  <div class="panel-heading">\n    <h4 class="panel-title">\n      <a href class="accordion-toggle" ng-click="toggleOpen()" accordion-transclude="heading"><span ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n    </h4>\n  </div>\n  <div class="panel-collapse" collapse="!isOpen">\n	  <div class="panel-body" ng-transclude></div>\n  </div>\n</div>\n')}]),angular.module("template/accordion/accordion.html",[]).run(["$templateCache",function(t){t.put("template/accordion/accordion.html",'<div class="panel-group" ng-transclude></div>')}]),angular.module("template/alert/alert.html",[]).run(["$templateCache",function(t){t.put("template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissable\' : null]" role="alert">\n    <button ng-show="closeable" type="button" class="close" ng-click="close()">\n        <span aria-hidden="true">&times;</span>\n        <span class="sr-only">Close</span>\n    </button>\n    <div ng-transclude></div>\n</div>\n')}]),angular.module("template/carousel/carousel.html",[]).run(["$templateCache",function(t){t.put("template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n    <ol class="carousel-indicators" ng-show="slides.length > 1">\n        <li ng-repeat="slide in slides track by $index" ng-class="{active: isActive(slide)}" ng-click="select(slide)"></li>\n    </ol>\n    <div class="carousel-inner" ng-transclude></div>\n    <a class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-left"></span></a>\n    <a class="right carousel-control" ng-click="next()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-right"></span></a>\n</div>\n')}]),angular.module("template/carousel/slide.html",[]).run(["$templateCache",function(t){t.put("template/carousel/slide.html","<div ng-class=\"{\n    'active': leaving || (active && !entering),\n    'prev': (next || active) && direction=='prev',\n    'next': (next || active) && direction=='next',\n    'right': direction=='prev',\n    'left': direction=='next'\n  }\" class=\"item text-center\" ng-transclude></div>\n")}]),angular.module("template/datepicker/datepicker.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/datepicker.html",'<div ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n  <daypicker ng-switch-when="day" tabindex="0"></daypicker>\n  <monthpicker ng-switch-when="month" tabindex="0"></monthpicker>\n  <yearpicker ng-switch-when="year" tabindex="0"></yearpicker>\n</div>')}]),angular.module("template/datepicker/day.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/day.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th colspan="{{5 + showWeeks}}"><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n    <tr>\n      <th ng-show="showWeeks" class="text-center"></th>\n      <th ng-repeat="label in labels track by $index" class="text-center"><small aria-label="{{label.full}}">{{label.abbr}}</small></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-show="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="width:100%;" class="btn btn-default btn-sm" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("template/datepicker/month.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/month.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-info\': dt.current}">{{dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("template/datepicker/popup.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/popup.html",'<ul class="dropdown-menu" ng-style="{display: (isOpen && \'block\') || \'none\', top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)">\n	<li ng-transclude></li>\n	<li ng-if="showButtonBar" style="padding:10px 9px 2px">\n		<span class="btn-group pull-left">\n			<button type="button" class="btn btn-sm btn-info" ng-click="select(\'today\')">{{ getText(\'current\') }}</button>\n			<button type="button" class="btn btn-sm btn-danger" ng-click="select(null)">{{ getText(\'clear\') }}</button>\n		</span>\n		<button type="button" class="btn btn-sm btn-success pull-right" ng-click="close()">{{ getText(\'close\') }}</button>\n	</li>\n</ul>\n')}]),angular.module("template/datepicker/year.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/year.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th colspan="3"><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-info\': dt.current}">{{dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(t){t.put("template/modal/backdrop.html",'<div class="modal-backdrop fade {{ backdropClass }}"\n     ng-class="{in: animate}"\n     ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("template/modal/window.html",[]).run(["$templateCache",function(t){t.put("template/modal/window.html",'<div tabindex="-1" role="dialog" class="modal fade" ng-class="{in: animate}" ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}" ng-click="close($event)">\n    <div class="modal-dialog" ng-class="{\'modal-sm\': size == \'sm\', \'modal-lg\': size == \'lg\'}"><div class="modal-content" modal-transclude></div></div>\n</div>')}]),angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(t){t.put("template/pagination/pager.html",'<ul class="pager">\n  <li ng-class="{disabled: noPrevious(), previous: align}"><a href ng-click="selectPage(page - 1)">{{getText(\'previous\')}}</a></li>\n  <li ng-class="{disabled: noNext(), next: align}"><a href ng-click="selectPage(page + 1)">{{getText(\'next\')}}</a></li>\n</ul>')}]),angular.module("template/pagination/pagination.html",[]).run(["$templateCache",function(t){t.put("template/pagination/pagination.html",'<ul class="pagination">\n  <li ng-if="boundaryLinks" ng-class="{disabled: noPrevious()}"><a href ng-click="selectPage(1)">{{getText(\'first\')}}</a></li>\n  <li ng-if="directionLinks" ng-class="{disabled: noPrevious()}"><a href ng-click="selectPage(page - 1)">{{getText(\'previous\')}}</a></li>\n  <li ng-repeat="page in pages track by $index" ng-class="{active: page.active}"><a href ng-click="selectPage(page.number)">{{page.text}}</a></li>\n  <li ng-if="directionLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(page + 1)">{{getText(\'next\')}}</a></li>\n  <li ng-if="boundaryLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(totalPages)">{{getText(\'last\')}}</a></li>\n</ul>')}]),angular.module("template/tooltip/tooltip-html-unsafe-popup.html",[]).run(["$templateCache",function(t){t.put("template/tooltip/tooltip-html-unsafe-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner" bind-html-unsafe="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(t){t.put("template/tooltip/tooltip-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("template/popover/popover.html",[]).run(["$templateCache",function(t){t.put("template/popover/popover.html",'<div class="popover {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="arrow"></div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="title" ng-show="title"></h3>\n      <div class="popover-content" ng-bind="content"></div>\n  </div>\n</div>\n')}]),angular.module("template/progressbar/bar.html",[]).run(["$templateCache",function(t){t.put("template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: percent + \'%\'}" aria-valuetext="{{percent | number:0}}%" ng-transclude></div>')}]),angular.module("template/progressbar/progress.html",[]).run(["$templateCache",function(t){t.put("template/progressbar/progress.html",'<div class="progress" ng-transclude></div>')}]),angular.module("template/progressbar/progressbar.html",[]).run(["$templateCache",function(t){t.put("template/progressbar/progressbar.html",'<div class="progress">\n  <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: percent + \'%\'}" aria-valuetext="{{percent | number:0}}%" ng-transclude></div>\n</div>')}]),angular.module("template/rating/rating.html",[]).run(["$templateCache",function(t){t.put("template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}">\n    <i ng-repeat="r in range track by $index" ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')">\n        <span class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n    </i>\n</span>')}]),angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(t){t.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}">\n  <a href ng-click="select()" tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(t){t.put("template/tabs/tabset.html",'<div>\n  <ul class="nav nav-{{type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n  <div class="tab-content">\n    <div class="tab-pane" \n         ng-repeat="tab in tabs" \n         ng-class="{active: tab.active}"\n         tab-content-transclude="tab">\n    </div>\n  </div>\n</div>\n')}]),angular.module("template/timepicker/timepicker.html",[]).run(["$templateCache",function(t){t.put("template/timepicker/timepicker.html",'<table>\n	<tbody>\n		<tr class="text-center">\n			<td><a ng-click="incrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n			<td>&nbsp;</td>\n			<td><a ng-click="incrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n			<td ng-show="showMeridian"></td>\n		</tr>\n		<tr>\n			<td style="width:50px;" class="form-group" ng-class="{\'has-error\': invalidHours}">\n				<input type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-mousewheel="incrementHours()" ng-readonly="readonlyInput" maxlength="2">\n			</td>\n			<td>:</td>\n			<td style="width:50px;" class="form-group" ng-class="{\'has-error\': invalidMinutes}">\n				<input type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2">\n			</td>\n			<td ng-show="showMeridian"><button type="button" class="btn btn-default text-center" ng-click="toggleMeridian()">{{meridian}}</button></td>\n		</tr>\n		<tr class="text-center">\n			<td><a ng-click="decrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n			<td>&nbsp;</td>\n			<td><a ng-click="decrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n			<td ng-show="showMeridian"></td>\n		</tr>\n	</tbody>\n</table>\n')}]),angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(t){t.put("template/typeahead/typeahead-match.html",'<a tabindex="-1" bind-html-unsafe="match.label | typeaheadHighlight:query"></a>')
}]),angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(t){t.put("template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen()" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" style="display: block;" role="listbox" aria-hidden="{{!isOpen()}}">\n    <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)" role="option" id="{{match.id}}">\n        <div typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n    </li>\n</ul>\n')}]);