/**
 * kbApp - v1.1.3 - 2017-07-11
 * http://kostal.com
 *
 * Copyright (c) 2017 Guido Hartwig
 */

!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b="length"in a&&a.length,c=_.type(a);return"function"===c||_.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}function d(a,b,c){if(_.isFunction(b))return _.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return _.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(ha.test(b))return _.filter(b,a,c);b=_.filter(b,a)}return _.grep(a,function(a){return U.call(b,a)>=0!==c})}function e(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function f(a){var b=oa[a]={};return _.each(a.match(na)||[],function(a,c){b[c]=!0}),b}function g(){Z.removeEventListener("DOMContentLoaded",g,!1),a.removeEventListener("load",g,!1),_.ready()}function h(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=_.expando+h.uid++}function i(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(ua,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:ta.test(c)?_.parseJSON(c):c}catch(e){}sa.set(a,b,c)}else c=void 0;return c}function j(){return!0}function k(){return!1}function l(){try{return Z.activeElement}catch(a){}}function m(a,b){return _.nodeName(a,"table")&&_.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function n(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function o(a){var b=Ka.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function p(a,b){for(var c=0,d=a.length;d>c;c++)ra.set(a[c],"globalEval",!b||ra.get(b[c],"globalEval"))}function q(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(ra.hasData(a)&&(f=ra.access(a),g=ra.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)_.event.add(b,e,j[e][c])}sa.hasData(a)&&(h=sa.access(a),i=_.extend({},h),sa.set(b,i))}}function r(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&_.nodeName(a,b)?_.merge([a],c):c}function s(a,b){var c=b.nodeName.toLowerCase();"input"===c&&ya.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function t(b,c){var d,e=_(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:_.css(e[0],"display");return e.detach(),f}function u(a){var b=Z,c=Oa[a];return c||(c=t(a,b),"none"!==c&&c||(Na=(Na||_("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=Na[0].contentDocument,b.write(),b.close(),c=t(a,b),Na.detach()),Oa[a]=c),c}function v(a,b,c){var d,e,f,g,h=a.style;return c=c||Ra(a),c&&(g=c.getPropertyValue(b)||c[b]),c&&(""!==g||_.contains(a.ownerDocument,a)||(g=_.style(a,b)),Qa.test(g)&&Pa.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function w(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}function x(a,b){if(b in a)return b;for(var c=b[0].toUpperCase()+b.slice(1),d=b,e=Xa.length;e--;)if(b=Xa[e]+c,b in a)return b;return d}function y(a,b,c){var d=Ta.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function z(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=_.css(a,c+wa[f],!0,e)),d?("content"===c&&(g-=_.css(a,"padding"+wa[f],!0,e)),"margin"!==c&&(g-=_.css(a,"border"+wa[f]+"Width",!0,e))):(g+=_.css(a,"padding"+wa[f],!0,e),"padding"!==c&&(g+=_.css(a,"border"+wa[f]+"Width",!0,e)));return g}function A(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ra(a),g="border-box"===_.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=v(a,b,f),(0>e||null==e)&&(e=a.style[b]),Qa.test(e))return e;d=g&&(Y.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+z(a,b,c||(g?"border":"content"),d,f)+"px"}function B(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=ra.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&xa(d)&&(f[g]=ra.access(d,"olddisplay",u(d.nodeName)))):(e=xa(d),"none"===c&&e||ra.set(d,"olddisplay",e?c:_.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function C(a,b,c,d,e){return new C.prototype.init(a,b,c,d,e)}function D(){return setTimeout(function(){Ya=void 0}),Ya=_.now()}function E(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=wa[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function F(a,b,c){for(var d,e=(cb[b]||[]).concat(cb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function G(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},n=a.style,o=a.nodeType&&xa(a),p=ra.get(a,"fxshow");c.queue||(h=_._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,_.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[n.overflow,n.overflowX,n.overflowY],j=_.css(a,"display"),k="none"===j?ra.get(a,"olddisplay")||u(a.nodeName):j,"inline"===k&&"none"===_.css(a,"float")&&(n.display="inline-block")),c.overflow&&(n.overflow="hidden",l.always(function(){n.overflow=c.overflow[0],n.overflowX=c.overflow[1],n.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],$a.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(o?"hide":"show")){if("show"!==e||!p||void 0===p[d])continue;o=!0}m[d]=p&&p[d]||_.style(a,d)}else j=void 0;if(_.isEmptyObject(m))"inline"===("none"===j?u(a.nodeName):j)&&(n.display=j);else{p?"hidden"in p&&(o=p.hidden):p=ra.access(a,"fxshow",{}),f&&(p.hidden=!o),o?_(a).show():l.done(function(){_(a).hide()}),l.done(function(){var b;ra.remove(a,"fxshow");for(b in m)_.style(a,b,m[b])});for(d in m)g=F(o?p[d]:0,d,l),d in p||(p[d]=g.start,o&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function H(a,b){var c,d,e,f,g;for(c in a)if(d=_.camelCase(c),e=b[d],f=a[c],_.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=_.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function I(a,b,c){var d,e,f=0,g=bb.length,h=_.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Ya||D(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:_.extend({},b),opts:_.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:Ya||D(),duration:c.duration,tweens:[],createTween:function(b,c){var d=_.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(H(k,j.opts.specialEasing);g>f;f++)if(d=bb[f].call(j,a,k,j.opts))return d;return _.map(k,F,j),_.isFunction(j.opts.start)&&j.opts.start.call(a,j),_.fx.timer(_.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}function J(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(na)||[];if(_.isFunction(c))for(;d=f[e++];)"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function K(a,b,c,d){function e(h){var i;return f[h]=!0,_.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||g||f[j]?g?!(i=j):void 0:(b.dataTypes.unshift(j),e(j),!1)}),i}var f={},g=a===tb;return e(b.dataTypes[0])||!f["*"]&&e("*")}function L(a,b){var c,d,e=_.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&_.extend(!0,a,d),a}function M(a,b,c){for(var d,e,f,g,h=a.contents,i=a.dataTypes;"*"===i[0];)i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function N(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];for(f=k.shift();f;)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}function O(a,b,c,d){var e;if(_.isArray(b))_.each(b,function(b,e){c||yb.test(a)?d(a,e):O(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==_.type(b))d(a,b);else for(e in b)O(a+"["+e+"]",b[e],c,d)}function P(a){return _.isWindow(a)?a:9===a.nodeType&&a.defaultView}var Q=[],R=Q.slice,S=Q.concat,T=Q.push,U=Q.indexOf,V={},W=V.toString,X=V.hasOwnProperty,Y={},Z=a.document,$="2.1.4",_=function(a,b){return new _.fn.init(a,b)},aa=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ba=/^-ms-/,ca=/-([\da-z])/gi,da=function(a,b){return b.toUpperCase()};_.fn=_.prototype={jquery:$,constructor:_,selector:"",length:0,toArray:function(){return R.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:R.call(this)},pushStack:function(a){var b=_.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return _.each(this,a,b)},map:function(a){return this.pushStack(_.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(R.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:T,sort:Q.sort,splice:Q.splice},_.extend=_.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||_.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(_.isPlainObject(d)||(e=_.isArray(d)))?(e?(e=!1,f=c&&_.isArray(c)?c:[]):f=c&&_.isPlainObject(c)?c:{},g[b]=_.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},_.extend({expando:"jQuery"+($+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===_.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!_.isArray(a)&&a-parseFloat(a)+1>=0},isPlainObject:function(a){return"object"!==_.type(a)||a.nodeType||_.isWindow(a)?!1:!a.constructor||X.call(a.constructor.prototype,"isPrototypeOf")},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?V[W.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=_.trim(a),a&&(1===a.indexOf("use strict")?(b=Z.createElement("script"),b.text=a,Z.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(ba,"ms-").replace(ca,da)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,d){var e,f=0,g=a.length,h=c(a);if(d){if(h)for(;g>f&&(e=b.apply(a[f],d),e!==!1);f++);else for(f in a)if(e=b.apply(a[f],d),e===!1)break}else if(h)for(;g>f&&(e=b.call(a[f],f,a[f]),e!==!1);f++);else for(f in a)if(e=b.call(a[f],f,a[f]),e===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(aa,"")},makeArray:function(a,b){var d=b||[];return null!=a&&(c(Object(a))?_.merge(d,"string"==typeof a?[a]:a):T.call(d,a)),d},inArray:function(a,b,c){return null==b?-1:U.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,d){var e,f=0,g=a.length,h=c(a),i=[];if(h)for(;g>f;f++)e=b(a[f],f,d),null!=e&&i.push(e);else for(f in a)e=b(a[f],f,d),null!=e&&i.push(e);return S.apply([],i)},guid:1,proxy:function(a,b){var c,d,e;return"string"==typeof b&&(c=a[b],b=a,a=c),_.isFunction(a)?(d=R.call(arguments,2),e=function(){return a.apply(b||this,d.concat(R.call(arguments)))},e.guid=a.guid=a.guid||_.guid++,e):void 0},now:Date.now,support:Y}),_.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){V["[object "+b+"]"]=b.toLowerCase()});var ea=function(a){function b(a,b,c,d){var e,f,g,h,i,j,l,n,o,p;if((b?b.ownerDocument||b:O)!==G&&F(b),b=b||G,c=c||[],h=b.nodeType,"string"!=typeof a||!a||1!==h&&9!==h&&11!==h)return c;if(!d&&I){if(11!==h&&(e=sa.exec(a)))if(g=e[1]){if(9===h){if(f=b.getElementById(g),!f||!f.parentNode)return c;if(f.id===g)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(g))&&M(b,f)&&f.id===g)return c.push(f),c}else{if(e[2])return $.apply(c,b.getElementsByTagName(a)),c;if((g=e[3])&&v.getElementsByClassName)return $.apply(c,b.getElementsByClassName(g)),c}if(v.qsa&&(!J||!J.test(a))){if(n=l=N,o=b,p=1!==h&&a,1===h&&"object"!==b.nodeName.toLowerCase()){for(j=z(a),(l=b.getAttribute("id"))?n=l.replace(ua,"\\$&"):b.setAttribute("id",n),n="[id='"+n+"'] ",i=j.length;i--;)j[i]=n+m(j[i]);o=ta.test(a)&&k(b.parentNode)||b,p=j.join(",")}if(p)try{return $.apply(c,o.querySelectorAll(p)),c}catch(q){}finally{l||b.removeAttribute("id")}}}return B(a.replace(ia,"$1"),b,c,d)}function c(){function a(c,d){return b.push(c+" ")>w.cacheLength&&delete a[b.shift()],a[c+" "]=d}var b=[];return a}function d(a){return a[N]=!0,a}function e(a){var b=G.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function f(a,b){for(var c=a.split("|"),d=a.length;d--;)w.attrHandle[c[d]]=b}function g(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||V)-(~a.sourceIndex||V);if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function h(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function i(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function j(a){return d(function(b){return b=+b,d(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function k(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}function l(){}function m(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function n(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=Q++;return b.first?function(b,c,f){for(;b=b[d];)if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[P,f];if(g){for(;b=b[d];)if((1===b.nodeType||e)&&a(b,c,g))return!0}else for(;b=b[d];)if(1===b.nodeType||e){if(i=b[N]||(b[N]={}),(h=i[d])&&h[0]===P&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function o(a){return a.length>1?function(b,c,d){for(var e=a.length;e--;)if(!a[e](b,c,d))return!1;return!0}:a[0]}function p(a,c,d){for(var e=0,f=c.length;f>e;e++)b(a,c[e],d);return d}function q(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function r(a,b,c,e,f,g){return e&&!e[N]&&(e=r(e)),f&&!f[N]&&(f=r(f,g)),d(function(d,g,h,i){var j,k,l,m=[],n=[],o=g.length,r=d||p(b||"*",h.nodeType?[h]:h,[]),s=!a||!d&&b?r:q(r,m,a,h,i),t=c?f||(d?a:o||e)?[]:g:s;if(c&&c(s,t,h,i),e)for(j=q(t,n),e(j,[],h,i),k=j.length;k--;)(l=j[k])&&(t[n[k]]=!(s[n[k]]=l));if(d){if(f||a){if(f){for(j=[],k=t.length;k--;)(l=t[k])&&j.push(s[k]=l);f(null,t=[],j,i)}for(k=t.length;k--;)(l=t[k])&&(j=f?aa(d,l):m[k])>-1&&(d[j]=!(g[j]=l))}}else t=q(t===g?t.splice(o,t.length):t),f?f(null,g,t,i):$.apply(g,t)})}function s(a){for(var b,c,d,e=a.length,f=w.relative[a[0].type],g=f||w.relative[" "],h=f?1:0,i=n(function(a){return a===b},g,!0),j=n(function(a){return aa(b,a)>-1},g,!0),k=[function(a,c,d){var e=!f&&(d||c!==C)||((b=c).nodeType?i(a,c,d):j(a,c,d));return b=null,e}];e>h;h++)if(c=w.relative[a[h].type])k=[n(o(k),c)];else{if(c=w.filter[a[h].type].apply(null,a[h].matches),c[N]){for(d=++h;e>d&&!w.relative[a[d].type];d++);return r(h>1&&o(k),h>1&&m(a.slice(0,h-1).concat({value:" "===a[h-2].type?"*":""})).replace(ia,"$1"),c,d>h&&s(a.slice(h,d)),e>d&&s(a=a.slice(d)),e>d&&m(a))}k.push(c)}return o(k)}function t(a,c){var e=c.length>0,f=a.length>0,g=function(d,g,h,i,j){var k,l,m,n=0,o="0",p=d&&[],r=[],s=C,t=d||f&&w.find.TAG("*",j),u=P+=null==s?1:Math.random()||.1,v=t.length;for(j&&(C=g!==G&&g);o!==v&&null!=(k=t[o]);o++){if(f&&k){for(l=0;m=a[l++];)if(m(k,g,h)){i.push(k);break}j&&(P=u)}e&&((k=!m&&k)&&n--,d&&p.push(k))}if(n+=o,e&&o!==n){for(l=0;m=c[l++];)m(p,r,g,h);if(d){if(n>0)for(;o--;)p[o]||r[o]||(r[o]=Y.call(i));r=q(r)}$.apply(i,r),j&&!d&&r.length>0&&n+c.length>1&&b.uniqueSort(i)}return j&&(P=u,C=s),p};return e?d(g):g}var u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N="sizzle"+1*new Date,O=a.document,P=0,Q=0,R=c(),S=c(),T=c(),U=function(a,b){return a===b&&(E=!0),0},V=1<<31,W={}.hasOwnProperty,X=[],Y=X.pop,Z=X.push,$=X.push,_=X.slice,aa=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},ba="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ca="[\\x20\\t\\r\\n\\f]",da="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ea=da.replace("w","w#"),fa="\\["+ca+"*("+da+")(?:"+ca+"*([*^$|!~]?=)"+ca+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ea+"))|)"+ca+"*\\]",ga=":("+da+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+fa+")*)|.*)\\)|)",ha=new RegExp(ca+"+","g"),ia=new RegExp("^"+ca+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ca+"+$","g"),ja=new RegExp("^"+ca+"*,"+ca+"*"),ka=new RegExp("^"+ca+"*([>+~]|"+ca+")"+ca+"*"),la=new RegExp("="+ca+"*([^\\]'\"]*?)"+ca+"*\\]","g"),ma=new RegExp(ga),na=new RegExp("^"+ea+"$"),oa={ID:new RegExp("^#("+da+")"),CLASS:new RegExp("^\\.("+da+")"),TAG:new RegExp("^("+da.replace("w","w*")+")"),ATTR:new RegExp("^"+fa),PSEUDO:new RegExp("^"+ga),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ca+"*(even|odd|(([+-]|)(\\d*)n|)"+ca+"*(?:([+-]|)"+ca+"*(\\d+)|))"+ca+"*\\)|)","i"),bool:new RegExp("^(?:"+ba+")$","i"),needsContext:new RegExp("^"+ca+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ca+"*((?:-\\d)?\\d*)"+ca+"*\\)|)(?=[^-]|$)","i")},pa=/^(?:input|select|textarea|button)$/i,qa=/^h\d$/i,ra=/^[^{]+\{\s*\[native \w/,sa=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ta=/[+~]/,ua=/'|\\/g,va=new RegExp("\\\\([\\da-f]{1,6}"+ca+"?|("+ca+")|.)","ig"),wa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},xa=function(){F()};try{$.apply(X=_.call(O.childNodes),O.childNodes),X[O.childNodes.length].nodeType}catch(ya){$={apply:X.length?function(a,b){Z.apply(a,_.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}v=b.support={},y=b.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},F=b.setDocument=function(a){var b,c,d=a?a.ownerDocument||a:O;return d!==G&&9===d.nodeType&&d.documentElement?(G=d,H=d.documentElement,c=d.defaultView,c&&c!==c.top&&(c.addEventListener?c.addEventListener("unload",xa,!1):c.attachEvent&&c.attachEvent("onunload",xa)),I=!y(d),v.attributes=e(function(a){return a.className="i",!a.getAttribute("className")}),v.getElementsByTagName=e(function(a){return a.appendChild(d.createComment("")),!a.getElementsByTagName("*").length}),v.getElementsByClassName=ra.test(d.getElementsByClassName),v.getById=e(function(a){return H.appendChild(a).id=N,!d.getElementsByName||!d.getElementsByName(N).length}),v.getById?(w.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&I){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},w.filter.ID=function(a){var b=a.replace(va,wa);return function(a){return a.getAttribute("id")===b}}):(delete w.find.ID,w.filter.ID=function(a){var b=a.replace(va,wa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),w.find.TAG=v.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):v.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){for(;c=f[e++];)1===c.nodeType&&d.push(c);return d}return f},w.find.CLASS=v.getElementsByClassName&&function(a,b){return I?b.getElementsByClassName(a):void 0},K=[],J=[],(v.qsa=ra.test(d.querySelectorAll))&&(e(function(a){H.appendChild(a).innerHTML="<a id='"+N+"'></a><select id='"+N+"-\f]' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&J.push("[*^$]="+ca+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||J.push("\\["+ca+"*(?:value|"+ba+")"),a.querySelectorAll("[id~="+N+"-]").length||J.push("~="),a.querySelectorAll(":checked").length||J.push(":checked"),a.querySelectorAll("a#"+N+"+*").length||J.push(".#.+[+~]")}),e(function(a){var b=d.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&J.push("name"+ca+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||J.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),J.push(",.*:")})),(v.matchesSelector=ra.test(L=H.matches||H.webkitMatchesSelector||H.mozMatchesSelector||H.oMatchesSelector||H.msMatchesSelector))&&e(function(a){v.disconnectedMatch=L.call(a,"div"),L.call(a,"[s!='']:x"),K.push("!=",ga)}),J=J.length&&new RegExp(J.join("|")),K=K.length&&new RegExp(K.join("|")),b=ra.test(H.compareDocumentPosition),M=b||ra.test(H.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1},U=b?function(a,b){if(a===b)return E=!0,0;var c=!a.compareDocumentPosition-!b.compareDocumentPosition;return c?c:(c=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&c||!v.sortDetached&&b.compareDocumentPosition(a)===c?a===d||a.ownerDocument===O&&M(O,a)?-1:b===d||b.ownerDocument===O&&M(O,b)?1:D?aa(D,a)-aa(D,b):0:4&c?-1:1)}:function(a,b){if(a===b)return E=!0,0;var c,e=0,f=a.parentNode,h=b.parentNode,i=[a],j=[b];if(!f||!h)return a===d?-1:b===d?1:f?-1:h?1:D?aa(D,a)-aa(D,b):0;if(f===h)return g(a,b);for(c=a;c=c.parentNode;)i.unshift(c);for(c=b;c=c.parentNode;)j.unshift(c);for(;i[e]===j[e];)e++;return e?g(i[e],j[e]):i[e]===O?-1:j[e]===O?1:0},d):G},b.matches=function(a,c){return b(a,null,null,c)},b.matchesSelector=function(a,c){if((a.ownerDocument||a)!==G&&F(a),c=c.replace(la,"='$1']"),v.matchesSelector&&I&&(!K||!K.test(c))&&(!J||!J.test(c)))try{var d=L.call(a,c);if(d||v.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return b(c,G,null,[a]).length>0},b.contains=function(a,b){return(a.ownerDocument||a)!==G&&F(a),M(a,b)},b.attr=function(a,b){(a.ownerDocument||a)!==G&&F(a);var c=w.attrHandle[b.toLowerCase()],d=c&&W.call(w.attrHandle,b.toLowerCase())?c(a,b,!I):void 0;return void 0!==d?d:v.attributes||!I?a.getAttribute(b):(d=a.getAttributeNode(b))&&d.specified?d.value:null},b.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},b.uniqueSort=function(a){var b,c=[],d=0,e=0;if(E=!v.detectDuplicates,D=!v.sortStable&&a.slice(0),a.sort(U),E){for(;b=a[e++];)b===a[e]&&(d=c.push(e));for(;d--;)a.splice(c[d],1)}return D=null,a},x=b.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(1===e||9===e||11===e){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=x(a)}else if(3===e||4===e)return a.nodeValue}else for(;b=a[d++];)c+=x(b);return c},w=b.selectors={cacheLength:50,createPseudo:d,match:oa,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(va,wa),a[3]=(a[3]||a[4]||a[5]||"").replace(va,wa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||b.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&b.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return oa.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&ma.test(c)&&(b=z(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(va,wa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=R[a+" "];return b||(b=new RegExp("(^|"+ca+")"+a+"("+ca+"|$)"))&&R(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,c,d){return function(e){var f=b.attr(e,a);return null==f?"!="===c:c?(f+="","="===c?f===d:"!="===c?f!==d:"^="===c?d&&0===f.indexOf(d):"*="===c?d&&f.indexOf(d)>-1:"$="===c?d&&f.slice(-d.length)===d:"~="===c?(" "+f.replace(ha," ")+" ").indexOf(d)>-1:"|="===c?f===d||f.slice(0,d.length+1)===d+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){for(;p;){for(l=b;l=l[p];)if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){for(k=q[N]||(q[N]={}),j=k[a]||[],n=j[0]===P&&j[1],m=j[0]===P&&j[2],l=n&&q.childNodes[n];l=++n&&l&&l[p]||(m=n=0)||o.pop();)if(1===l.nodeType&&++m&&l===b){k[a]=[P,n,m];break}}else if(s&&(j=(b[N]||(b[N]={}))[a])&&j[0]===P)m=j[1];else for(;(l=++n&&l&&l[p]||(m=n=0)||o.pop())&&((h?l.nodeName.toLowerCase()!==r:1!==l.nodeType)||!++m||(s&&((l[N]||(l[N]={}))[a]=[P,m]),l!==b)););return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,c){var e,f=w.pseudos[a]||w.setFilters[a.toLowerCase()]||b.error("unsupported pseudo: "+a);return f[N]?f(c):f.length>1?(e=[a,a,"",c],w.setFilters.hasOwnProperty(a.toLowerCase())?d(function(a,b){for(var d,e=f(a,c),g=e.length;g--;)d=aa(a,e[g]),a[d]=!(b[d]=e[g])}):function(a){return f(a,0,e)}):f}},pseudos:{not:d(function(a){var b=[],c=[],e=A(a.replace(ia,"$1"));return e[N]?d(function(a,b,c,d){for(var f,g=e(a,null,d,[]),h=a.length;h--;)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,d,f){return b[0]=a,e(b,null,f,c),b[0]=null,!c.pop()}}),has:d(function(a){return function(c){return b(a,c).length>0}}),contains:d(function(a){return a=a.replace(va,wa),function(b){return(b.textContent||b.innerText||x(b)).indexOf(a)>-1}}),lang:d(function(a){return na.test(a||"")||b.error("unsupported lang: "+a),a=a.replace(va,wa).toLowerCase(),function(b){var c;do if(c=I?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===H},focus:function(a){return a===G.activeElement&&(!G.hasFocus||G.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!w.pseudos.empty(a)},header:function(a){return qa.test(a.nodeName)},input:function(a){return pa.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:j(function(){return[0]}),last:j(function(a,b){return[b-1]}),eq:j(function(a,b,c){return[0>c?c+b:c]}),even:j(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:j(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:j(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:j(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},w.pseudos.nth=w.pseudos.eq;for(u in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[u]=h(u);for(u in{submit:!0,reset:!0})w.pseudos[u]=i(u);return l.prototype=w.filters=w.pseudos,w.setFilters=new l,z=b.tokenize=function(a,c){var d,e,f,g,h,i,j,k=S[a+" "];if(k)return c?0:k.slice(0);for(h=a,i=[],j=w.preFilter;h;){d&&!(e=ja.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),d=!1,(e=ka.exec(h))&&(d=e.shift(),f.push({value:d,type:e[0].replace(ia," ")}),h=h.slice(d.length));for(g in w.filter)!(e=oa[g].exec(h))||j[g]&&!(e=j[g](e))||(d=e.shift(),f.push({value:d,type:g,matches:e}),h=h.slice(d.length));if(!d)break}return c?h.length:h?b.error(a):S(a,i).slice(0)},A=b.compile=function(a,b){var c,d=[],e=[],f=T[a+" "];if(!f){for(b||(b=z(a)),c=b.length;c--;)f=s(b[c]),f[N]?d.push(f):e.push(f);f=T(a,t(e,d)),f.selector=a}return f},B=b.select=function(a,b,c,d){var e,f,g,h,i,j="function"==typeof a&&a,l=!d&&z(a=j.selector||a);if(c=c||[],1===l.length){if(f=l[0]=l[0].slice(0),f.length>2&&"ID"===(g=f[0]).type&&v.getById&&9===b.nodeType&&I&&w.relative[f[1].type]){if(b=(w.find.ID(g.matches[0].replace(va,wa),b)||[])[0],!b)return c;j&&(b=b.parentNode),a=a.slice(f.shift().value.length)}for(e=oa.needsContext.test(a)?0:f.length;e--&&(g=f[e],!w.relative[h=g.type]);)if((i=w.find[h])&&(d=i(g.matches[0].replace(va,wa),ta.test(f[0].type)&&k(b.parentNode)||b))){if(f.splice(e,1),a=d.length&&m(f),!a)return $.apply(c,d),c;break}}return(j||A(a,l))(d,b,!I,c,ta.test(a)&&k(b.parentNode)||b),c},v.sortStable=N.split("").sort(U).join("")===N,v.detectDuplicates=!!E,F(),v.sortDetached=e(function(a){return 1&a.compareDocumentPosition(G.createElement("div"))}),e(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||f("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),v.attributes&&e(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||f("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),e(function(a){return null==a.getAttribute("disabled")})||f(ba,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),b}(a);_.find=ea,_.expr=ea.selectors,_.expr[":"]=_.expr.pseudos,_.unique=ea.uniqueSort,_.text=ea.getText,_.isXMLDoc=ea.isXML,_.contains=ea.contains;var fa=_.expr.match.needsContext,ga=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ha=/^.[^:#\[\.,]*$/;_.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?_.find.matchesSelector(d,a)?[d]:[]:_.find.matches(a,_.grep(b,function(a){return 1===a.nodeType}))},_.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(_(a).filter(function(){
for(b=0;c>b;b++)if(_.contains(e[b],this))return!0}));for(b=0;c>b;b++)_.find(a,e[b],d);return d=this.pushStack(c>1?_.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(d(this,a||[],!1))},not:function(a){return this.pushStack(d(this,a||[],!0))},is:function(a){return!!d(this,"string"==typeof a&&fa.test(a)?_(a):a||[],!1).length}});var ia,ja=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ka=_.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:ja.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||ia).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof _?b[0]:b,_.merge(this,_.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:Z,!0)),ga.test(c[1])&&_.isPlainObject(b))for(c in b)_.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=Z.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=Z,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):_.isFunction(a)?"undefined"!=typeof ia.ready?ia.ready(a):a(_):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),_.makeArray(a,this))};ka.prototype=_.fn,ia=_(Z);var la=/^(?:parents|prev(?:Until|All))/,ma={children:!0,contents:!0,next:!0,prev:!0};_.extend({dir:function(a,b,c){for(var d=[],e=void 0!==c;(a=a[b])&&9!==a.nodeType;)if(1===a.nodeType){if(e&&_(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),_.fn.extend({has:function(a){var b=_(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(_.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=fa.test(a)||"string"!=typeof a?_(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&_.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?_.unique(f):f)},index:function(a){return a?"string"==typeof a?U.call(_(a),this[0]):U.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(_.unique(_.merge(this.get(),_(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}}),_.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return _.dir(a,"parentNode")},parentsUntil:function(a,b,c){return _.dir(a,"parentNode",c)},next:function(a){return e(a,"nextSibling")},prev:function(a){return e(a,"previousSibling")},nextAll:function(a){return _.dir(a,"nextSibling")},prevAll:function(a){return _.dir(a,"previousSibling")},nextUntil:function(a,b,c){return _.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return _.dir(a,"previousSibling",c)},siblings:function(a){return _.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return _.sibling(a.firstChild)},contents:function(a){return a.contentDocument||_.merge([],a.childNodes)}},function(a,b){_.fn[a]=function(c,d){var e=_.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=_.filter(d,e)),this.length>1&&(ma[a]||_.unique(e),la.test(a)&&e.reverse()),this.pushStack(e)}});var na=/\S+/g,oa={};_.Callbacks=function(a){a="string"==typeof a?oa[a]||f(a):_.extend({},a);var b,c,d,e,g,h,i=[],j=!a.once&&[],k=function(f){for(b=a.memory&&f,c=!0,h=e||0,e=0,g=i.length,d=!0;i&&g>h;h++)if(i[h].apply(f[0],f[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,i&&(j?j.length&&k(j.shift()):b?i=[]:l.disable())},l={add:function(){if(i){var c=i.length;!function f(b){_.each(b,function(b,c){var d=_.type(c);"function"===d?a.unique&&l.has(c)||i.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),d?g=i.length:b&&(e=c,k(b))}return this},remove:function(){return i&&_.each(arguments,function(a,b){for(var c;(c=_.inArray(b,i,c))>-1;)i.splice(c,1),d&&(g>=c&&g--,h>=c&&h--)}),this},has:function(a){return a?_.inArray(a,i)>-1:!(!i||!i.length)},empty:function(){return i=[],g=0,this},disable:function(){return i=j=b=void 0,this},disabled:function(){return!i},lock:function(){return j=void 0,b||l.disable(),this},locked:function(){return!j},fireWith:function(a,b){return!i||c&&!j||(b=b||[],b=[a,b.slice?b.slice():b],d?j.push(b):k(b)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!c}};return l},_.extend({Deferred:function(a){var b=[["resolve","done",_.Callbacks("once memory"),"resolved"],["reject","fail",_.Callbacks("once memory"),"rejected"],["notify","progress",_.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return _.Deferred(function(c){_.each(b,function(b,f){var g=_.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&_.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?_.extend(a,d):d}},e={};return d.pipe=d.then,_.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b,c,d,e=0,f=R.call(arguments),g=f.length,h=1!==g||a&&_.isFunction(a.promise)?g:0,i=1===h?a:_.Deferred(),j=function(a,c,d){return function(e){c[a]=this,d[a]=arguments.length>1?R.call(arguments):e,d===b?i.notifyWith(c,d):--h||i.resolveWith(c,d)}};if(g>1)for(b=new Array(g),c=new Array(g),d=new Array(g);g>e;e++)f[e]&&_.isFunction(f[e].promise)?f[e].promise().done(j(e,d,f)).fail(i.reject).progress(j(e,c,b)):--h;return h||i.resolveWith(d,f),i.promise()}});var pa;_.fn.ready=function(a){return _.ready.promise().done(a),this},_.extend({isReady:!1,readyWait:1,holdReady:function(a){a?_.readyWait++:_.ready(!0)},ready:function(a){(a===!0?--_.readyWait:_.isReady)||(_.isReady=!0,a!==!0&&--_.readyWait>0||(pa.resolveWith(Z,[_]),_.fn.triggerHandler&&(_(Z).triggerHandler("ready"),_(Z).off("ready"))))}}),_.ready.promise=function(b){return pa||(pa=_.Deferred(),"complete"===Z.readyState?setTimeout(_.ready):(Z.addEventListener("DOMContentLoaded",g,!1),a.addEventListener("load",g,!1))),pa.promise(b)},_.ready.promise();var qa=_.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===_.type(c)){e=!0;for(h in c)_.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,_.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(_(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};_.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType},h.uid=1,h.accepts=_.acceptData,h.prototype={key:function(a){if(!h.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=h.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,_.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(_.isEmptyObject(f))_.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,_.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{_.isArray(b)?d=b.concat(b.map(_.camelCase)):(e=_.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(na)||[])),c=d.length;for(;c--;)delete g[d[c]]}},hasData:function(a){return!_.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var ra=new h,sa=new h,ta=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ua=/([A-Z])/g;_.extend({hasData:function(a){return sa.hasData(a)||ra.hasData(a)},data:function(a,b,c){return sa.access(a,b,c)},removeData:function(a,b){sa.remove(a,b)},_data:function(a,b,c){return ra.access(a,b,c)},_removeData:function(a,b){ra.remove(a,b)}}),_.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=sa.get(f),1===f.nodeType&&!ra.get(f,"hasDataAttrs"))){for(c=g.length;c--;)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=_.camelCase(d.slice(5)),i(f,d,e[d])));ra.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){sa.set(this,a)}):qa(this,function(b){var c,d=_.camelCase(a);if(f&&void 0===b){if(c=sa.get(f,a),void 0!==c)return c;if(c=sa.get(f,d),void 0!==c)return c;if(c=i(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=sa.get(this,d);sa.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&sa.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){sa.remove(this,a)})}}),_.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=ra.get(a,b),c&&(!d||_.isArray(c)?d=ra.access(a,b,_.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=_.queue(a,b),d=c.length,e=c.shift(),f=_._queueHooks(a,b),g=function(){_.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return ra.get(a,c)||ra.access(a,c,{empty:_.Callbacks("once memory").add(function(){ra.remove(a,[b+"queue",c])})})}}),_.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?_.queue(this[0],a):void 0===b?this:this.each(function(){var c=_.queue(this,a,b);_._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&_.dequeue(this,a)})},dequeue:function(a){return this.each(function(){_.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=_.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};for("string"!=typeof a&&(b=a,a=void 0),a=a||"fx";g--;)c=ra.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var va=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,wa=["Top","Right","Bottom","Left"],xa=function(a,b){return a=b||a,"none"===_.css(a,"display")||!_.contains(a.ownerDocument,a)},ya=/^(?:checkbox|radio)$/i;!function(){var a=Z.createDocumentFragment(),b=a.appendChild(Z.createElement("div")),c=Z.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),Y.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",Y.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var za="undefined";Y.focusinBubbles="onfocusin"in a;var Aa=/^key/,Ba=/^(?:mouse|pointer|contextmenu)|click/,Ca=/^(?:focusinfocus|focusoutblur)$/,Da=/^([^.]*)(?:\.(.+)|)$/;_.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=ra.get(a);if(q)for(c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=_.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return typeof _!==za&&_.event.triggered!==b.type?_.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(na)||[""],j=b.length;j--;)h=Da.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=_.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=_.event.special[n]||{},k=_.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&_.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),_.event.global[n]=!0)},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=ra.hasData(a)&&ra.get(a);if(q&&(i=q.events)){for(b=(b||"").match(na)||[""],j=b.length;j--;)if(h=Da.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){for(l=_.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;f--;)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||_.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)_.event.remove(a,n+b[j],c,d,!0);_.isEmptyObject(i)&&(delete q.handle,ra.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,j,k,l,m=[d||Z],n=X.call(b,"type")?b.type:b,o=X.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||Z,3!==d.nodeType&&8!==d.nodeType&&!Ca.test(n+_.event.triggered)&&(n.indexOf(".")>=0&&(o=n.split("."),n=o.shift(),o.sort()),j=n.indexOf(":")<0&&"on"+n,b=b[_.expando]?b:new _.Event(n,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=o.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:_.makeArray(c,[b]),l=_.event.special[n]||{},e||!l.trigger||l.trigger.apply(d,c)!==!1)){if(!e&&!l.noBubble&&!_.isWindow(d)){for(i=l.delegateType||n,Ca.test(i+n)||(g=g.parentNode);g;g=g.parentNode)m.push(g),h=g;h===(d.ownerDocument||Z)&&m.push(h.defaultView||h.parentWindow||a)}for(f=0;(g=m[f++])&&!b.isPropagationStopped();)b.type=f>1?i:l.bindType||n,k=(ra.get(g,"events")||{})[b.type]&&ra.get(g,"handle"),k&&k.apply(g,c),k=j&&g[j],k&&k.apply&&_.acceptData(g)&&(b.result=k.apply(g,c),b.result===!1&&b.preventDefault());return b.type=n,e||b.isDefaultPrevented()||l._default&&l._default.apply(m.pop(),c)!==!1||!_.acceptData(d)||j&&_.isFunction(d[n])&&!_.isWindow(d)&&(h=d[j],h&&(d[j]=null),_.event.triggered=n,d[n](),_.event.triggered=void 0,h&&(d[j]=h)),b.result}},dispatch:function(a){a=_.event.fix(a);var b,c,d,e,f,g=[],h=R.call(arguments),i=(ra.get(this,"events")||{})[a.type]||[],j=_.event.special[a.type]||{};if(h[0]=a,a.delegateTarget=this,!j.preDispatch||j.preDispatch.call(this,a)!==!1){for(g=_.event.handlers.call(this,a,i),b=0;(e=g[b++])&&!a.isPropagationStopped();)for(a.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!a.isImmediatePropagationStopped();)a.namespace_re&&!a.namespace_re.test(f.namespace)||(a.handleObj=f,a.data=f.data,d=((_.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()));return j.postDispatch&&j.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?_(e,this).index(i)>=0:_.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},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(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||Z,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},fix:function(a){if(a[_.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];for(g||(this.fixHooks[e]=g=Ba.test(e)?this.mouseHooks:Aa.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new _.Event(f),b=d.length;b--;)c=d[b],a[c]=f[c];return a.target||(a.target=Z),3===a.target.nodeType&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},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&&_.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return _.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=_.extend(new _.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?_.event.trigger(e,null,b):_.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},_.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)},_.Event=function(a,b){return this instanceof _.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?j:k):this.type=a,b&&_.extend(this,b),this.timeStamp=a&&a.timeStamp||_.now(),void(this[_.expando]=!0)):new _.Event(a,b)},_.Event.prototype={isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=j,a&&a.preventDefault&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=j,a&&a.stopPropagation&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=j,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){_.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||_.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),Y.focusinBubbles||_.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){_.event.simulate(b,a.target,_.event.fix(a),!0)};_.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=ra.access(d,b);e||d.addEventListener(a,c,!0),ra.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=ra.access(d,b)-1;e?ra.access(d,b,e):(d.removeEventListener(a,c,!0),ra.remove(d,b))}}}),_.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(g in a)this.on(g,b,c,a[g],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=k;else if(!d)return this;return 1===e&&(f=d,d=function(a){return _().off(a),f.apply(this,arguments)},d.guid=f.guid||(f.guid=_.guid++)),this.each(function(){_.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,_(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=k),this.each(function(){_.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){_.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?_.event.trigger(a,b,c,!0):void 0}});var Ea=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Fa=/<([\w:]+)/,Ga=/<|&#?\w+;/,Ha=/<(?:script|style|link)/i,Ia=/checked\s*(?:[^=]|=\s*.checked.)/i,Ja=/^$|\/(?:java|ecma)script/i,Ka=/^true\/(.*)/,La=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ma={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,"",""]};Ma.optgroup=Ma.option,Ma.tbody=Ma.tfoot=Ma.colgroup=Ma.caption=Ma.thead,Ma.th=Ma.td,_.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=_.contains(a.ownerDocument,a);if(!(Y.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||_.isXMLDoc(a)))for(g=r(h),f=r(a),d=0,e=f.length;e>d;d++)s(f[d],g[d]);if(b)if(c)for(f=f||r(a),g=g||r(h),d=0,e=f.length;e>d;d++)q(f[d],g[d]);else q(a,h);return g=r(h,"script"),g.length>0&&p(g,!i&&r(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,n=a.length;n>m;m++)if(e=a[m],e||0===e)if("object"===_.type(e))_.merge(l,e.nodeType?[e]:e);else if(Ga.test(e)){for(f=f||k.appendChild(b.createElement("div")),g=(Fa.exec(e)||["",""])[1].toLowerCase(),h=Ma[g]||Ma._default,f.innerHTML=h[1]+e.replace(Ea,"<$1></$2>")+h[2],j=h[0];j--;)f=f.lastChild;_.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));for(k.textContent="",m=0;e=l[m++];)if((!d||-1===_.inArray(e,d))&&(i=_.contains(e.ownerDocument,e),f=r(k.appendChild(e),"script"),i&&p(f),c))for(j=0;e=f[j++];)Ja.test(e.type||"")&&c.push(e);return k},cleanData:function(a){for(var b,c,d,e,f=_.event.special,g=0;void 0!==(c=a[g]);g++){if(_.acceptData(c)&&(e=c[ra.expando],e&&(b=ra.cache[e]))){if(b.events)for(d in b.events)f[d]?_.event.remove(c,d):_.removeEvent(c,d,b.handle);ra.cache[e]&&delete ra.cache[e]}delete sa.cache[c[sa.expando]]}}}),_.fn.extend({text:function(a){return qa(this,function(a){return void 0===a?_.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=m(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=m(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?_.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||_.cleanData(r(c)),c.parentNode&&(b&&_.contains(c.ownerDocument,c)&&p(r(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(_.cleanData(r(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return _.clone(this,a,b)})},html:function(a){return qa(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!Ha.test(a)&&!Ma[(Fa.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ea,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(_.cleanData(r(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,_.cleanData(r(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=S.apply([],a);var c,d,e,f,g,h,i=0,j=this.length,k=this,l=j-1,m=a[0],p=_.isFunction(m);if(p||j>1&&"string"==typeof m&&!Y.checkClone&&Ia.test(m))return this.each(function(c){var d=k.eq(c);p&&(a[0]=m.call(this,c,d.html())),d.domManip(a,b)});if(j&&(c=_.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(e=_.map(r(c,"script"),n),f=e.length;j>i;i++)g=c,i!==l&&(g=_.clone(g,!0,!0),f&&_.merge(e,r(g,"script"))),b.call(this[i],g,i);if(f)for(h=e[e.length-1].ownerDocument,_.map(e,o),i=0;f>i;i++)g=e[i],Ja.test(g.type||"")&&!ra.access(g,"globalEval")&&_.contains(h,g)&&(g.src?_._evalUrl&&_._evalUrl(g.src):_.globalEval(g.textContent.replace(La,"")))}return this}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){_.fn[a]=function(a){for(var c,d=[],e=_(a),f=e.length-1,g=0;f>=g;g++)c=g===f?this:this.clone(!0),_(e[g])[b](c),T.apply(d,c.get());return this.pushStack(d)}});var Na,Oa={},Pa=/^margin/,Qa=new RegExp("^("+va+")(?!px)[a-z%]+$","i"),Ra=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)};!function(){function b(){g.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",g.innerHTML="",e.appendChild(f);var b=a.getComputedStyle(g,null);c="1%"!==b.top,d="4px"===b.width,e.removeChild(f)}var c,d,e=Z.documentElement,f=Z.createElement("div"),g=Z.createElement("div");g.style&&(g.style.backgroundClip="content-box",g.cloneNode(!0).style.backgroundClip="",Y.clearCloneStyle="content-box"===g.style.backgroundClip,f.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",f.appendChild(g),a.getComputedStyle&&_.extend(Y,{pixelPosition:function(){return b(),c},boxSizingReliable:function(){return null==d&&b(),d},reliableMarginRight:function(){var b,c=g.appendChild(Z.createElement("div"));return c.style.cssText=g.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",g.style.width="1px",e.appendChild(f),b=!parseFloat(a.getComputedStyle(c,null).marginRight),e.removeChild(f),g.removeChild(c),b}}))}(),_.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Sa=/^(none|table(?!-c[ea]).+)/,Ta=new RegExp("^("+va+")(.*)$","i"),Ua=new RegExp("^([+-])=("+va+")","i"),Va={position:"absolute",visibility:"hidden",display:"block"},Wa={letterSpacing:"0",fontWeight:"400"},Xa=["Webkit","O","Moz","ms"];_.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=v(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=_.camelCase(b),i=a.style;return b=_.cssProps[h]||(_.cssProps[h]=x(i,h)),g=_.cssHooks[b]||_.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Ua.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(_.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||_.cssNumber[h]||(c+="px"),Y.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=_.camelCase(b);return b=_.cssProps[h]||(_.cssProps[h]=x(a.style,h)),g=_.cssHooks[b]||_.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=v(a,b,d)),"normal"===e&&b in Wa&&(e=Wa[b]),""===c||c?(f=parseFloat(e),c===!0||_.isNumeric(f)?f||0:e):e}}),_.each(["height","width"],function(a,b){_.cssHooks[b]={get:function(a,c,d){return c?Sa.test(_.css(a,"display"))&&0===a.offsetWidth?_.swap(a,Va,function(){return A(a,b,d)}):A(a,b,d):void 0},set:function(a,c,d){var e=d&&Ra(a);return y(a,c,d?z(a,b,d,"border-box"===_.css(a,"boxSizing",!1,e),e):0)}}}),_.cssHooks.marginRight=w(Y.reliableMarginRight,function(a,b){return b?_.swap(a,{display:"inline-block"},v,[a,"marginRight"]):void 0}),_.each({margin:"",padding:"",border:"Width"},function(a,b){_.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+wa[d]+b]=f[d]||f[d-2]||f[0];return e}},Pa.test(a)||(_.cssHooks[a+b].set=y)}),_.fn.extend({css:function(a,b){return qa(this,function(a,b,c){var d,e,f={},g=0;if(_.isArray(b)){for(d=Ra(a),e=b.length;e>g;g++)f[b[g]]=_.css(a,b[g],!1,d);return f}return void 0!==c?_.style(a,b,c):_.css(a,b)},a,b,arguments.length>1)},show:function(){return B(this,!0)},hide:function(){return B(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){xa(this)?_(this).show():_(this).hide()})}}),_.Tween=C,C.prototype={constructor:C,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(_.cssNumber[c]?"":"px")},cur:function(){var a=C.propHooks[this.prop];return a&&a.get?a.get(this):C.propHooks._default.get(this)},run:function(a){var b,c=C.propHooks[this.prop];return this.options.duration?this.pos=b=_.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):C.propHooks._default.set(this),this}},C.prototype.init.prototype=C.prototype,C.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=_.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){_.fx.step[a.prop]?_.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[_.cssProps[a.prop]]||_.cssHooks[a.prop])?_.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},C.propHooks.scrollTop=C.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},_.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},_.fx=C.prototype.init,_.fx.step={};var Ya,Za,$a=/^(?:toggle|show|hide)$/,_a=new RegExp("^(?:([+-])=|)("+va+")([a-z%]*)$","i"),ab=/queueHooks$/,bb=[G],cb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=_a.exec(b),f=e&&e[3]||(_.cssNumber[a]?"":"px"),g=(_.cssNumber[a]||"px"!==f&&+d)&&_a.exec(_.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,_.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};_.Animation=_.extend(I,{tweener:function(a,b){_.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],cb[c]=cb[c]||[],cb[c].unshift(b)},prefilter:function(a,b){b?bb.unshift(a):bb.push(a)}}),_.speed=function(a,b,c){var d=a&&"object"==typeof a?_.extend({},a):{complete:c||!c&&b||_.isFunction(a)&&a,duration:a,easing:c&&b||b&&!_.isFunction(b)&&b};return d.duration=_.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in _.fx.speeds?_.fx.speeds[d.duration]:_.fx.speeds._default,null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){_.isFunction(d.old)&&d.old.call(this),d.queue&&_.dequeue(this,d.queue)},d},_.fn.extend({fadeTo:function(a,b,c,d){return this.filter(xa).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=_.isEmptyObject(a),f=_.speed(b,c,d),g=function(){var b=I(this,_.extend({},a),f);(e||ra.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=_.timers,g=ra.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&ab.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||_.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=ra.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=_.timers,g=d?d.length:0;for(c.finish=!0,_.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),
f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),_.each(["toggle","show","hide"],function(a,b){var c=_.fn[b];_.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(E(b,!0),a,d,e)}}),_.each({slideDown:E("show"),slideUp:E("hide"),slideToggle:E("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){_.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),_.timers=[],_.fx.tick=function(){var a,b=0,c=_.timers;for(Ya=_.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||_.fx.stop(),Ya=void 0},_.fx.timer=function(a){_.timers.push(a),a()?_.fx.start():_.timers.pop()},_.fx.interval=13,_.fx.start=function(){Za||(Za=setInterval(_.fx.tick,_.fx.interval))},_.fx.stop=function(){clearInterval(Za),Za=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(a,b){return a=_.fx?_.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a=Z.createElement("input"),b=Z.createElement("select"),c=b.appendChild(Z.createElement("option"));a.type="checkbox",Y.checkOn=""!==a.value,Y.optSelected=c.selected,b.disabled=!0,Y.optDisabled=!c.disabled,a=Z.createElement("input"),a.value="t",a.type="radio",Y.radioValue="t"===a.value}();var db,eb,fb=_.expr.attrHandle;_.fn.extend({attr:function(a,b){return qa(this,_.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){_.removeAttr(this,a)})}}),_.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===za?_.prop(a,b,c):(1===f&&_.isXMLDoc(a)||(b=b.toLowerCase(),d=_.attrHooks[b]||(_.expr.match.bool.test(b)?eb:db)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=_.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void _.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(na);if(f&&1===a.nodeType)for(;c=f[e++];)d=_.propFix[c]||c,_.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)},attrHooks:{type:{set:function(a,b){if(!Y.radioValue&&"radio"===b&&_.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),eb={set:function(a,b,c){return b===!1?_.removeAttr(a,c):a.setAttribute(c,c),c}},_.each(_.expr.match.bool.source.match(/\w+/g),function(a,b){var c=fb[b]||_.find.attr;fb[b]=function(a,b,d){var e,f;return d||(f=fb[b],fb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,fb[b]=f),e}});var gb=/^(?:input|select|textarea|button)$/i;_.fn.extend({prop:function(a,b){return qa(this,_.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[_.propFix[a]||a]})}}),_.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!_.isXMLDoc(a),f&&(b=_.propFix[b]||b,e=_.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){return a.hasAttribute("tabindex")||gb.test(a.nodeName)||a.href?a.tabIndex:-1}}}}),Y.optSelected||(_.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_.propFix[this.toLowerCase()]=this});var hb=/[\t\r\n\f]/g;_.fn.extend({addClass:function(a){var b,c,d,e,f,g,h="string"==typeof a&&a,i=0,j=this.length;if(_.isFunction(a))return this.each(function(b){_(this).addClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(na)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(hb," "):" ")){for(f=0;e=b[f++];)d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=_.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0===arguments.length||"string"==typeof a&&a,i=0,j=this.length;if(_.isFunction(a))return this.each(function(b){_(this).removeClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(na)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(hb," "):"")){for(f=0;e=b[f++];)for(;d.indexOf(" "+e+" ")>=0;)d=d.replace(" "+e+" "," ");g=a?_.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):_.isFunction(a)?this.each(function(c){_(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if("string"===c)for(var b,d=0,e=_(this),f=a.match(na)||[];b=f[d++];)e.hasClass(b)?e.removeClass(b):e.addClass(b);else c!==za&&"boolean"!==c||(this.className&&ra.set(this,"__className__",this.className),this.className=this.className||a===!1?"":ra.get(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(hb," ").indexOf(b)>=0)return!0;return!1}});var ib=/\r/g;_.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=_.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,_(this).val()):a,null==e?e="":"number"==typeof e?e+="":_.isArray(e)&&(e=_.map(e,function(a){return null==a?"":a+""})),b=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=_.valHooks[e.type]||_.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(ib,""):null==c?"":c)}}}),_.extend({valHooks:{option:{get:function(a){var b=_.find.attr(a,"value");return null!=b?b:_.trim(_.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],(c.selected||i===e)&&(Y.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!_.nodeName(c.parentNode,"optgroup"))){if(b=_(c).val(),f)return b;g.push(b)}return g},set:function(a,b){for(var c,d,e=a.options,f=_.makeArray(b),g=e.length;g--;)d=e[g],(d.selected=_.inArray(d.value,f)>=0)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),_.each(["radio","checkbox"],function(){_.valHooks[this]={set:function(a,b){return _.isArray(b)?a.checked=_.inArray(_(a).val(),b)>=0:void 0}},Y.checkOn||(_.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})}),_.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(a,b){_.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),_.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var jb=_.now(),kb=/\?/;_.parseJSON=function(a){return JSON.parse(a+"")},_.parseXML=function(a){var b,c;if(!a||"string"!=typeof a)return null;try{c=new DOMParser,b=c.parseFromString(a,"text/xml")}catch(d){b=void 0}return b&&!b.getElementsByTagName("parsererror").length||_.error("Invalid XML: "+a),b};var lb=/#.*$/,mb=/([?&])_=[^&]*/,nb=/^(.*?):[ \t]*([^\r\n]*)$/gm,ob=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,pb=/^(?:GET|HEAD)$/,qb=/^\/\//,rb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,sb={},tb={},ub="*/".concat("*"),vb=a.location.href,wb=rb.exec(vb.toLowerCase())||[];_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:vb,type:"GET",isLocal:ob.test(wb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ub,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":_.parseJSON,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?L(L(a,_.ajaxSettings),b):L(_.ajaxSettings,a)},ajaxPrefilter:J(sb),ajaxTransport:J(tb),ajax:function(a,b){function c(a,b,c,g){var i,k,r,s,u,w=b;2!==t&&(t=2,h&&clearTimeout(h),d=void 0,f=g||"",v.readyState=a>0?4:0,i=a>=200&&300>a||304===a,c&&(s=M(l,v,c)),s=N(l,s,v,i),i?(l.ifModified&&(u=v.getResponseHeader("Last-Modified"),u&&(_.lastModified[e]=u),u=v.getResponseHeader("etag"),u&&(_.etag[e]=u)),204===a||"HEAD"===l.type?w="nocontent":304===a?w="notmodified":(w=s.state,k=s.data,r=s.error,i=!r)):(r=w,!a&&w||(w="error",0>a&&(a=0))),v.status=a,v.statusText=(b||w)+"",i?o.resolveWith(m,[k,w,v]):o.rejectWith(m,[v,w,r]),v.statusCode(q),q=void 0,j&&n.trigger(i?"ajaxSuccess":"ajaxError",[v,l,i?k:r]),p.fireWith(m,[v,w]),j&&(n.trigger("ajaxComplete",[v,l]),--_.active||_.event.trigger("ajaxStop")))}"object"==typeof a&&(b=a,a=void 0),b=b||{};var d,e,f,g,h,i,j,k,l=_.ajaxSetup({},b),m=l.context||l,n=l.context&&(m.nodeType||m.jquery)?_(m):_.event,o=_.Deferred(),p=_.Callbacks("once memory"),q=l.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!g)for(g={};b=nb.exec(f);)g[b[1].toLowerCase()]=b[2];b=g[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(l.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return d&&d.abort(b),c(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,l.url=((a||l.url||vb)+"").replace(lb,"").replace(qb,wb[1]+"//"),l.type=b.method||b.type||l.method||l.type,l.dataTypes=_.trim(l.dataType||"*").toLowerCase().match(na)||[""],null==l.crossDomain&&(i=rb.exec(l.url.toLowerCase()),l.crossDomain=!(!i||i[1]===wb[1]&&i[2]===wb[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(wb[3]||("http:"===wb[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=_.param(l.data,l.traditional)),K(sb,l,b,v),2===t)return v;j=_.event&&l.global,j&&0===_.active++&&_.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!pb.test(l.type),e=l.url,l.hasContent||(l.data&&(e=l.url+=(kb.test(e)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=mb.test(e)?e.replace(mb,"$1_="+jb++):e+(kb.test(e)?"&":"?")+"_="+jb++)),l.ifModified&&(_.lastModified[e]&&v.setRequestHeader("If-Modified-Since",_.lastModified[e]),_.etag[e]&&v.setRequestHeader("If-None-Match",_.etag[e])),(l.data&&l.hasContent&&l.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",l.contentType),v.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+ub+"; q=0.01":""):l.accepts["*"]);for(k in l.headers)v.setRequestHeader(k,l.headers[k]);if(l.beforeSend&&(l.beforeSend.call(m,v,l)===!1||2===t))return v.abort();u="abort";for(k in{success:1,error:1,complete:1})v[k](l[k]);if(d=K(tb,l,b,v)){v.readyState=1,j&&n.trigger("ajaxSend",[v,l]),l.async&&l.timeout>0&&(h=setTimeout(function(){v.abort("timeout")},l.timeout));try{t=1,d.send(r,c)}catch(w){if(!(2>t))throw w;c(-1,w)}}else c(-1,"No Transport");return v},getJSON:function(a,b,c){return _.get(a,b,c,"json")},getScript:function(a,b){return _.get(a,void 0,b,"script")}}),_.each(["get","post"],function(a,b){_[b]=function(a,c,d,e){return _.isFunction(c)&&(e=e||d,d=c,c=void 0),_.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),_._evalUrl=function(a){return _.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},_.fn.extend({wrapAll:function(a){var b;return _.isFunction(a)?this.each(function(b){_(this).wrapAll(a.call(this,b))}):(this[0]&&(b=_(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var a=this;a.firstElementChild;)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return _.isFunction(a)?this.each(function(b){_(this).wrapInner(a.call(this,b))}):this.each(function(){var b=_(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=_.isFunction(a);return this.each(function(c){_(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){_.nodeName(this,"body")||_(this).replaceWith(this.childNodes)}).end()}}),_.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0},_.expr.filters.visible=function(a){return!_.expr.filters.hidden(a)};var xb=/%20/g,yb=/\[\]$/,zb=/\r?\n/g,Ab=/^(?:submit|button|image|reset|file)$/i,Bb=/^(?:input|select|textarea|keygen)/i;_.param=function(a,b){var c,d=[],e=function(a,b){b=_.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=_.ajaxSettings&&_.ajaxSettings.traditional),_.isArray(a)||a.jquery&&!_.isPlainObject(a))_.each(a,function(){e(this.name,this.value)});else for(c in a)O(c,a[c],b,e);return d.join("&").replace(xb,"+")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=_.prop(this,"elements");return a?_.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!_(this).is(":disabled")&&Bb.test(this.nodeName)&&!Ab.test(a)&&(this.checked||!ya.test(a))}).map(function(a,b){var c=_(this).val();return null==c?null:_.isArray(c)?_.map(c,function(a){return{name:b.name,value:a.replace(zb,"\r\n")}}):{name:b.name,value:c.replace(zb,"\r\n")}}).get()}}),_.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(a){}};var Cb=0,Db={},Eb={0:200,1223:204},Fb=_.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in Db)Db[a]()}),Y.cors=!!Fb&&"withCredentials"in Fb,Y.ajax=Fb=!!Fb,_.ajaxTransport(function(a){var b;return Y.cors||Fb&&!a.crossDomain?{send:function(c,d){var e,f=a.xhr(),g=++Cb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)f.setRequestHeader(e,c[e]);b=function(a){return function(){b&&(delete Db[g],b=f.onload=f.onerror=null,"abort"===a?f.abort():"error"===a?d(f.status,f.statusText):d(Eb[f.status]||f.status,f.statusText,"string"==typeof f.responseText?{text:f.responseText}:void 0,f.getAllResponseHeaders()))}},f.onload=b(),f.onerror=b("error"),b=Db[g]=b("abort");try{f.send(a.hasContent&&a.data||null)}catch(h){if(b)throw h}},abort:function(){b&&b()}}:void 0}),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return _.globalEval(a),a}}}),_.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),_.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=_("<script>").prop({async:!0,charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),Z.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Gb=[],Hb=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Gb.pop()||_.expando+"_"+jb++;return this[a]=!0,a}}),_.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Hb.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Hb.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=_.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Hb,"$1"+e):b.jsonp!==!1&&(b.url+=(kb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||_.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Gb.push(e)),g&&_.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),_.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||Z;var d=ga.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=_.buildFragment([a],b,e),e&&e.length&&_(e).remove(),_.merge([],d.childNodes))};var Ib=_.fn.load;_.fn.load=function(a,b,c){if("string"!=typeof a&&Ib)return Ib.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=_.trim(a.slice(h)),a=a.slice(0,h)),_.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&_.ajax({url:a,type:e,dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?_("<div>").append(_.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,f||[a.responseText,b,a])}),this},_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){_.fn[b]=function(a){return this.on(b,a)}}),_.expr.filters.animated=function(a){return _.grep(_.timers,function(b){return a===b.elem}).length};var Jb=a.document.documentElement;_.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=_.css(a,"position"),l=_(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=_.css(a,"top"),i=_.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),_.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},_.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){_.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,_.contains(b,d)?(typeof d.getBoundingClientRect!==za&&(e=d.getBoundingClientRect()),c=P(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===_.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),_.nodeName(a[0],"html")||(d=a.offset()),d.top+=_.css(a[0],"borderTopWidth",!0),d.left+=_.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-_.css(c,"marginTop",!0),left:b.left-d.left-_.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||Jb;a&&!_.nodeName(a,"html")&&"static"===_.css(a,"position");)a=a.offsetParent;return a||Jb})}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,c){var d="pageYOffset"===c;_.fn[b]=function(e){return qa(this,function(b,e,f){var g=P(b);return void 0===f?g?g[c]:b[e]:void(g?g.scrollTo(d?a.pageXOffset:f,d?f:a.pageYOffset):b[e]=f)},b,e,arguments.length,null)}}),_.each(["top","left"],function(a,b){_.cssHooks[b]=w(Y.pixelPosition,function(a,c){return c?(c=v(a,b),Qa.test(c)?_(a).position()[b]+"px":c):void 0})}),_.each({Height:"height",Width:"width"},function(a,b){_.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){_.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return qa(this,function(b,c,d){var e;return _.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?_.css(b,c,g):_.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),_.fn.size=function(){return this.length},_.fn.andSelf=_.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return _});var Kb=a.jQuery,Lb=a.$;return _.noConflict=function(b){return a.$===_&&(a.$=Lb),b&&a.jQuery===_&&(a.jQuery=Kb),_},typeof b===za&&(a.jQuery=a.$=_),_}),function(a,b,c){"use strict";function d(a,b){return b=b||Error,function(){var c,d,e=2,f=arguments,g=f[0],h="["+(a?a+":":"")+g+"] ",i=f[1];for(h+=i.replace(/\{\d+\}/g,function(a){var b=+a.slice(1,-1),c=b+e;return c<f.length?ta(f[c]):a}),h+="\nhttp://errors.angularjs.org/1.4.4/"+(a?a+"/":"")+g,d=e,c="?";d<f.length;d++,c="&")h+=c+"p"+(d-e)+"="+encodeURIComponent(ta(f[d]));return new b(h)}}function e(a){if(null==a||C(a))return!1;var b="length"in Object(a)&&a.length;return a.nodeType===Sd&&b?!0:x(a)||Jd(a)||0===b||"number"==typeof b&&b>0&&b-1 in a}function f(a,b,c){var d,g;if(a)if(A(a))for(d in a)"prototype"==d||"length"==d||"name"==d||a.hasOwnProperty&&!a.hasOwnProperty(d)||b.call(c,a[d],d,a);else if(Jd(a)||e(a)){var h="object"!=typeof a;for(d=0,g=a.length;g>d;d++)(h||d in a)&&b.call(c,a[d],d,a)}else if(a.forEach&&a.forEach!==f)a.forEach(b,c,a);else if(w(a))for(d in a)b.call(c,a[d],d,a);else if("function"==typeof a.hasOwnProperty)for(d in a)a.hasOwnProperty(d)&&b.call(c,a[d],d,a);else for(d in a)sd.call(a,d)&&b.call(c,a[d],d,a);return a}function g(a,b,c){for(var d=Object.keys(a).sort(),e=0;e<d.length;e++)b.call(c,a[d[e]],d[e]);return d}function h(a){return function(b,c){a(c,b)}}function i(){return++Hd}function j(a,b){b?a.$$hashKey=b:delete a.$$hashKey}function k(a,b,c){for(var d=a.$$hashKey,e=0,f=b.length;f>e;++e){var g=b[e];if(v(g)||A(g))for(var h=Object.keys(g),i=0,l=h.length;l>i;i++){var m=h[i],n=g[m];c&&v(n)?z(n)?a[m]=new Date(n.valueOf()):B(n)?a[m]=new RegExp(n):(v(a[m])||(a[m]=Jd(n)?[]:{}),k(a[m],[n],!0)):a[m]=n}}return j(a,d),a}function l(a){return k(a,Ad.call(arguments,1),!1)}function m(a){return k(a,Ad.call(arguments,1),!0)}function n(a){return parseInt(a,10)}function o(a,b){return l(Object.create(a),b)}function p(){}function q(a){return a}function r(a){return function(){return a}}function s(a){return A(a.toString)&&a.toString!==Object.prototype.toString}function t(a){return"undefined"==typeof a}function u(a){return"undefined"!=typeof a}function v(a){return null!==a&&"object"==typeof a}function w(a){return null!==a&&"object"==typeof a&&!Ed(a)}function x(a){return"string"==typeof a}function y(a){return"number"==typeof a}function z(a){return"[object Date]"===Dd.call(a)}function A(a){return"function"==typeof a}function B(a){return"[object RegExp]"===Dd.call(a)}function C(a){return a&&a.window===a}function D(a){return a&&a.$evalAsync&&a.$watch}function E(a){return"[object File]"===Dd.call(a)}function F(a){return"[object FormData]"===Dd.call(a)}function G(a){return"[object Blob]"===Dd.call(a)}function H(a){return"boolean"==typeof a}function I(a){return a&&A(a.then)}function J(a){return Kd.test(Dd.call(a))}function K(a){return!(!a||!(a.nodeName||a.prop&&a.attr&&a.find))}function L(a){var b,c={},d=a.split(",");for(b=0;b<d.length;b++)c[d[b]]=!0;return c}function M(a){return rd(a.nodeName||a[0]&&a[0].nodeName)}function N(a,b){var c=a.indexOf(b);return c>=0&&a.splice(c,1),c}function O(a,b,c,d){if(C(a)||D(a))throw Fd("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(J(b))throw Fd("cpta","Can't copy! TypedArray destination cannot be mutated.");if(b){if(a===b)throw Fd("cpi","Can't copy! Source and destination are identical.");c=c||[],d=d||[],v(a)&&(c.push(a),d.push(b));var e;if(Jd(a)){b.length=0;for(var g=0;g<a.length;g++)b.push(O(a[g],null,c,d))}else{var h=b.$$hashKey;if(Jd(b)?b.length=0:f(b,function(a,c){delete b[c]}),w(a))for(e in a)b[e]=O(a[e],null,c,d);else if(a&&"function"==typeof a.hasOwnProperty)for(e in a)a.hasOwnProperty(e)&&(b[e]=O(a[e],null,c,d));else for(e in a)sd.call(a,e)&&(b[e]=O(a[e],null,c,d));j(b,h)}}else if(b=a,v(a)){var i;if(c&&-1!==(i=c.indexOf(a)))return d[i];if(Jd(a))return O(a,[],c,d);if(J(a))b=new a.constructor(a);else if(z(a))b=new Date(a.getTime());else{if(!B(a)){var k=Object.create(Ed(a));return O(a,k,c,d)}b=new RegExp(a.source,a.toString().match(/[^\/]*$/)[0]),b.lastIndex=a.lastIndex}d&&(c.push(a),d.push(b))}return b}function P(a,b){if(Jd(a)){b=b||[];for(var c=0,d=a.length;d>c;c++)b[c]=a[c]}else if(v(a)){b=b||{};for(var e in a)"$"===e.charAt(0)&&"$"===e.charAt(1)||(b[e]=a[e])}return b||a}function Q(a,b){if(a===b)return!0;if(null===a||null===b)return!1;if(a!==a&&b!==b)return!0;var d,e,f,g=typeof a,h=typeof b;if(g==h&&"object"==g){if(!Jd(a)){if(z(a))return z(b)?Q(a.getTime(),b.getTime()):!1;if(B(a))return B(b)?a.toString()==b.toString():!1;if(D(a)||D(b)||C(a)||C(b)||Jd(b)||z(b)||B(b))return!1;f=qa();for(e in a)if("$"!==e.charAt(0)&&!A(a[e])){if(!Q(a[e],b[e]))return!1;f[e]=!0}for(e in b)if(!(e in f||"$"===e.charAt(0)||b[e]===c||A(b[e])))return!1;return!0}if(!Jd(b))return!1;if((d=a.length)==b.length){for(e=0;d>e;e++)if(!Q(a[e],b[e]))return!1;return!0}}return!1}function R(a,b,c){return a.concat(Ad.call(b,c))}function S(a,b){return Ad.call(a,b||0)}function T(a,b){var c=arguments.length>2?S(arguments,2):[];return!A(b)||b instanceof RegExp?b:c.length?function(){return arguments.length?b.apply(a,R(c,arguments,0)):b.apply(a,c)}:function(){return arguments.length?b.apply(a,arguments):b.call(a)}}function U(a,d){var e=d;return"string"==typeof a&&"$"===a.charAt(0)&&"$"===a.charAt(1)?e=c:C(d)?e="$WINDOW":d&&b===d?e="$DOCUMENT":D(d)&&(e="$SCOPE"),e}function V(a,b){return"undefined"==typeof a?c:(y(b)||(b=b?2:null),JSON.stringify(a,U,b))}function W(a){return x(a)?JSON.parse(a):a}function X(a,b){var c=Date.parse("Jan 01, 1970 00:00:00 "+a)/6e4;return isNaN(c)?b:c}function Y(a,b){return a=new Date(a.getTime()),a.setMinutes(a.getMinutes()+b),a}function Z(a,b,c){c=c?-1:1;var d=X(b,a.getTimezoneOffset());return Y(a,c*(d-a.getTimezoneOffset()))}function $(a){a=xd(a).clone();try{a.empty()}catch(b){}var c=xd("<div>").append(a).html();try{return a[0].nodeType===Ud?rd(c):c.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+rd(b)})}catch(b){return rd(c)}}function _(a){try{return decodeURIComponent(a)}catch(b){}}function aa(a){var b={};return f((a||"").split("&"),function(a){var c,d,e;a&&(d=a=a.replace(/\+/g,"%20"),c=a.indexOf("="),-1!==c&&(d=a.substring(0,c),e=a.substring(c+1)),d=_(d),u(d)&&(e=u(e)?_(e):!0,sd.call(b,d)?Jd(b[d])?b[d].push(e):b[d]=[b[d],e]:b[d]=e))}),b}function ba(a){var b=[];return f(a,function(a,c){Jd(a)?f(a,function(a){b.push(da(c,!0)+(a===!0?"":"="+da(a,!0)))}):b.push(da(c,!0)+(a===!0?"":"="+da(a,!0)))}),b.length?b.join("&"):""}function ca(a){return da(a,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function da(a,b){return encodeURIComponent(a).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,b?"%20":"+")}function ea(a,b){var c,d,e=Pd.length;for(d=0;e>d;++d)if(c=Pd[d]+b,x(c=a.getAttribute(c)))return c;return null}function fa(a,b){var c,d,e={};f(Pd,function(b){var e=b+"app";!c&&a.hasAttribute&&a.hasAttribute(e)&&(c=a,d=a.getAttribute(e))}),f(Pd,function(b){var e,f=b+"app";!c&&(e=a.querySelector("["+f.replace(":","\\:")+"]"))&&(c=e,d=e.getAttribute(f))}),c&&(e.strictDi=null!==ea(c,"strict-di"),b(c,d?[d]:[],e))}function ga(c,d,e){v(e)||(e={});var g={strictDi:!1};e=l(g,e);var h=function(){if(c=xd(c),c.injector()){var a=c[0]===b?"document":$(c);throw Fd("btstrpd","App Already Bootstrapped with this Element '{0}'",a.replace(/</,"&lt;").replace(/>/,"&gt;"))}d=d||[],d.unshift(["$provide",function(a){a.value("$rootElement",c)}]),e.debugInfoEnabled&&d.push(["$compileProvider",function(a){a.debugInfoEnabled(!0)}]),d.unshift("ng");var f=$a(d,e.strictDi);return f.invoke(["$rootScope","$rootElement","$compile","$injector",function(a,b,c,d){a.$apply(function(){b.data("$injector",d),c(b)(a)})}]),f},i=/^NG_ENABLE_DEBUG_INFO!/,j=/^NG_DEFER_BOOTSTRAP!/;return a&&i.test(a.name)&&(e.debugInfoEnabled=!0,a.name=a.name.replace(i,"")),a&&!j.test(a.name)?h():(a.name=a.name.replace(j,""),Gd.resumeBootstrap=function(a){return f(a,function(a){d.push(a)}),h()},void(A(Gd.resumeDeferredBootstrap)&&Gd.resumeDeferredBootstrap()))}function ha(){a.name="NG_ENABLE_DEBUG_INFO!"+a.name,a.location.reload()}function ia(a){var b=Gd.element(a).injector();if(!b)throw Fd("test","no injector found for element argument to getTestability");return b.get("$$testability")}function ja(a,b){return b=b||"_",a.replace(Qd,function(a,c){return(c?b:"")+a.toLowerCase()})}function ka(){var b;if(!Rd){var d=Od();yd=a.jQuery,u(d)&&(yd=null===d?c:a[d]),yd&&yd.fn.on?(xd=yd,l(yd.fn,{scope:ke.scope,isolateScope:ke.isolateScope,controller:ke.controller,injector:ke.injector,inheritedData:ke.inheritedData}),b=yd.cleanData,yd.cleanData=function(a){var c;if(Id)Id=!1;else for(var d,e=0;null!=(d=a[e]);e++)c=yd._data(d,"events"),c&&c.$destroy&&yd(d).triggerHandler("$destroy");b(a)}):xd=Ca,Gd.element=xd,Rd=!0}}function la(a,b,c){if(!a)throw Fd("areq","Argument '{0}' is {1}",b||"?",c||"required");return a}function ma(a,b,c){return c&&Jd(a)&&(a=a[a.length-1]),la(A(a),b,"not a function, got "+(a&&"object"==typeof a?a.constructor.name||"Object":typeof a)),a}function na(a,b){if("hasOwnProperty"===a)throw Fd("badname","hasOwnProperty is not a valid {0} name",b)}function oa(a,b,c){if(!b)return a;for(var d,e=b.split("."),f=a,g=e.length,h=0;g>h;h++)d=e[h],a&&(a=(f=a)[d]);return!c&&A(a)?T(f,a):a}function pa(a){var b=a[0],c=a[a.length-1],d=[b];do{if(b=b.nextSibling,!b)break;d.push(b)}while(b!==c);return xd(d)}function qa(){return Object.create(null)}function ra(a){function b(a,b,c){return a[b]||(a[b]=c())}var c=d("$injector"),e=d("ng"),f=b(a,"angular",Object);return f.$$minErr=f.$$minErr||d,b(f,"module",function(){var a={};return function(d,f,g){var h=function(a,b){if("hasOwnProperty"===a)throw e("badname","hasOwnProperty is not a valid {0} name",b)};return h(d,"module"),f&&a.hasOwnProperty(d)&&(a[d]=null),b(a,d,function(){function a(a,b,c,d){return d||(d=e),function(){return d[c||"push"]([a,b,arguments]),k}}function b(a,b){return function(c,f){return f&&A(f)&&(f.$$moduleName=d),e.push([a,b,arguments]),k}}if(!f)throw c("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.",d);var e=[],h=[],i=[],j=a("$injector","invoke","push",h),k={_invokeQueue:e,_configBlocks:h,_runBlocks:i,requires:f,name:d,provider:b("$provide","provider"),factory:b("$provide","factory"),service:b("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),decorator:b("$provide","decorator"),animation:b("$animateProvider","register"),filter:b("$filterProvider","register"),controller:b("$controllerProvider","register"),directive:b("$compileProvider","directive"),config:j,run:function(a){return i.push(a),this}};return g&&j(g),k})}})}function sa(a){var b=[];return JSON.stringify(a,function(a,c){if(c=U(a,c),v(c)){if(b.indexOf(c)>=0)return"<<already seen>>";b.push(c)}return c})}function ta(a){return"function"==typeof a?a.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof a?"undefined":"string"!=typeof a?sa(a):a}function ua(b){l(b,{bootstrap:ga,copy:O,extend:l,merge:m,equals:Q,element:xd,forEach:f,injector:$a,noop:p,bind:T,toJson:V,fromJson:W,identity:q,isUndefined:t,isDefined:u,isString:x,isFunction:A,isObject:v,isNumber:y,isElement:K,isArray:Jd,version:Yd,isDate:z,lowercase:rd,uppercase:td,callbacks:{counter:0},getTestability:ia,$$minErr:d,$$csp:Nd,reloadWithDebugInfo:ha}),(zd=ra(a))("ng",["ngLocale"],["$provide",function(a){a.provider({$$sanitizeUri:oc}),a.provider("$compile",ib).directive({a:lf,input:Cf,textarea:Cf,form:qf,script:ug,select:xg,style:zg,option:yg,ngBind:Ff,ngBindHtml:Hf,ngBindTemplate:Gf,ngClass:Jf,ngClassEven:Lf,ngClassOdd:Kf,ngCloak:Mf,ngController:Nf,ngForm:rf,ngHide:og,ngIf:Qf,ngInclude:Rf,ngInit:Tf,ngNonBindable:fg,ngPluralize:jg,ngRepeat:kg,ngShow:ng,ngStyle:pg,ngSwitch:qg,ngSwitchWhen:rg,ngSwitchDefault:sg,ngOptions:ig,ngTransclude:tg,ngModel:cg,ngList:Uf,ngChange:If,pattern:Bg,ngPattern:Bg,required:Ag,ngRequired:Ag,minlength:Dg,
ngMinlength:Dg,maxlength:Cg,ngMaxlength:Cg,ngValue:Ef,ngModelOptions:eg}).directive({ngInclude:Sf}).directive(mf).directive(Of),a.provider({$anchorScroll:_a,$animate:ze,$animateCss:Ae,$$animateQueue:ye,$$AnimateRunner:xe,$browser:fb,$cacheFactory:gb,$controller:nb,$document:ob,$exceptionHandler:pb,$filter:Cc,$$forceReflow:Fe,$interpolate:Db,$interval:Eb,$http:zb,$httpParamSerializer:rb,$httpParamSerializerJQLike:sb,$httpBackend:Bb,$location:Sb,$log:Tb,$parse:ic,$rootScope:nc,$q:jc,$$q:kc,$sce:sc,$sceDelegate:rc,$sniffer:tc,$templateCache:hb,$templateRequest:uc,$$testability:vc,$timeout:wc,$window:zc,$$rAF:mc,$$jqLite:Va,$$HashMap:oe,$$cookieReader:Bc})}])}function va(){return++$d}function wa(a){return a.replace(be,function(a,b,c,d){return d?c.toUpperCase():c}).replace(ce,"Moz$1")}function xa(a){return!ge.test(a)}function ya(a){var b=a.nodeType;return b===Sd||!b||b===Wd}function za(a){for(var b in Zd[a.ng339])return!0;return!1}function Aa(a,b){var c,d,e,g,h=b.createDocumentFragment(),i=[];if(xa(a))i.push(b.createTextNode(a));else{for(c=c||h.appendChild(b.createElement("div")),d=(he.exec(a)||["",""])[1].toLowerCase(),e=je[d]||je._default,c.innerHTML=e[1]+a.replace(ie,"<$1></$2>")+e[2],g=e[0];g--;)c=c.lastChild;i=R(i,c.childNodes),c=h.firstChild,c.textContent=""}return h.textContent="",h.innerHTML="",f(i,function(a){h.appendChild(a)}),h}function Ba(a,c){c=c||b;var d;return(d=fe.exec(a))?[c.createElement(d[1])]:(d=Aa(a,c))?d.childNodes:[]}function Ca(a){if(a instanceof Ca)return a;var b;if(x(a)&&(a=Ld(a),b=!0),!(this instanceof Ca)){if(b&&"<"!=a.charAt(0))throw ee("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Ca(a)}b?Ma(this,Ba(a)):Ma(this,a)}function Da(a){return a.cloneNode(!0)}function Ea(a,b){if(b||Ga(a),a.querySelectorAll)for(var c=a.querySelectorAll("*"),d=0,e=c.length;e>d;d++)Ga(c[d])}function Fa(a,b,c,d){if(u(d))throw ee("offargs","jqLite#off() does not support the `selector` argument");var e=Ha(a),g=e&&e.events,h=e&&e.handle;if(h)if(b)f(b.split(" "),function(b){if(u(c)){var d=g[b];if(N(d||[],c),d&&d.length>0)return}ae(a,b,h),delete g[b]});else for(b in g)"$destroy"!==b&&ae(a,b,h),delete g[b]}function Ga(a,b){var d=a.ng339,e=d&&Zd[d];if(e){if(b)return void delete e.data[b];e.handle&&(e.events.$destroy&&e.handle({},"$destroy"),Fa(a)),delete Zd[d],a.ng339=c}}function Ha(a,b){var d=a.ng339,e=d&&Zd[d];return b&&!e&&(a.ng339=d=va(),e=Zd[d]={events:{},data:{},handle:c}),e}function Ia(a,b,c){if(ya(a)){var d=u(c),e=!d&&b&&!v(b),f=!b,g=Ha(a,!e),h=g&&g.data;if(d)h[b]=c;else{if(f)return h;if(e)return h&&h[b];l(h,b)}}}function Ja(a,b){return a.getAttribute?(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+b+" ")>-1:!1}function Ka(a,b){b&&a.setAttribute&&f(b.split(" "),function(b){a.setAttribute("class",Ld((" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Ld(b)+" "," ")))})}function La(a,b){if(b&&a.setAttribute){var c=(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");f(b.split(" "),function(a){a=Ld(a),-1===c.indexOf(" "+a+" ")&&(c+=a+" ")}),a.setAttribute("class",Ld(c))}}function Ma(a,b){if(b)if(b.nodeType)a[a.length++]=b;else{var c=b.length;if("number"==typeof c&&b.window!==b){if(c)for(var d=0;c>d;d++)a[a.length++]=b[d]}else a[a.length++]=b}}function Na(a,b){return Oa(a,"$"+(b||"ngController")+"Controller")}function Oa(a,b,d){a.nodeType==Wd&&(a=a.documentElement);for(var e=Jd(b)?b:[b];a;){for(var f=0,g=e.length;g>f;f++)if((d=xd.data(a,e[f]))!==c)return d;a=a.parentNode||a.nodeType===Xd&&a.host}}function Pa(a){for(Ea(a,!0);a.firstChild;)a.removeChild(a.firstChild)}function Qa(a,b){b||Ea(a);var c=a.parentNode;c&&c.removeChild(a)}function Ra(b,c){c=c||a,"complete"===c.document.readyState?c.setTimeout(b):xd(c).on("load",b)}function Sa(a,b){var c=le[b.toLowerCase()];return c&&me[M(a)]&&c}function Ta(a,b){var c=a.nodeName;return("INPUT"===c||"TEXTAREA"===c)&&ne[b]}function Ua(a,b){var c=function(c,d){c.isDefaultPrevented=function(){return c.defaultPrevented};var e=b[d||c.type],f=e?e.length:0;if(f){if(t(c.immediatePropagationStopped)){var g=c.stopImmediatePropagation;c.stopImmediatePropagation=function(){c.immediatePropagationStopped=!0,c.stopPropagation&&c.stopPropagation(),g&&g.call(c)}}c.isImmediatePropagationStopped=function(){return c.immediatePropagationStopped===!0},f>1&&(e=P(e));for(var h=0;f>h;h++)c.isImmediatePropagationStopped()||e[h].call(a,c)}};return c.elem=a,c}function Va(){this.$get=function(){return l(Ca,{hasClass:function(a,b){return a.attr&&(a=a[0]),Ja(a,b)},addClass:function(a,b){return a.attr&&(a=a[0]),La(a,b)},removeClass:function(a,b){return a.attr&&(a=a[0]),Ka(a,b)}})}}function Wa(a,b){var c=a&&a.$$hashKey;if(c)return"function"==typeof c&&(c=a.$$hashKey()),c;var d=typeof a;return c="function"==d||"object"==d&&null!==a?a.$$hashKey=d+":"+(b||i)():d+":"+a}function Xa(a,b){if(b){var c=0;this.nextUid=function(){return++c}}f(a,this.put,this)}function Ya(a){var b=a.toString().replace(se,""),c=b.match(pe);return c?"function("+(c[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function Za(a,b,c){var d,e,g,h;if("function"==typeof a){if(!(d=a.$inject)){if(d=[],a.length){if(b)throw x(c)&&c||(c=a.name||Ya(a)),te("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",c);e=a.toString().replace(se,""),g=e.match(pe),f(g[1].split(qe),function(a){a.replace(re,function(a,b,c){d.push(c)})})}a.$inject=d}}else Jd(a)?(h=a.length-1,ma(a[h],"fn"),d=a.slice(0,h)):ma(a,"fn",!0);return d}function $a(a,b){function d(a){return function(b,c){return v(b)?void f(b,h(a)):a(b,c)}}function e(a,b){if(na(a,"service"),(A(b)||Jd(b))&&(b=y.instantiate(b)),!b.$get)throw te("pget","Provider '{0}' must define $get factory method.",a);return w[a+q]=b}function g(a,b){return function(){var c=B.invoke(b,this);if(t(c))throw te("undef","Provider '{0}' must return a value from $get factory method.",a);return c}}function i(a,b,c){return e(a,{$get:c!==!1?g(a,b):b})}function j(a,b){return i(a,["$injector",function(a){return a.instantiate(b)}])}function k(a,b){return i(a,r(b),!1)}function l(a,b){na(a,"constant"),w[a]=b,z[a]=b}function m(a,b){var c=y.get(a+q),d=c.$get;c.$get=function(){var a=B.invoke(d,c);return B.invoke(b,null,{$delegate:a})}}function n(a){la(t(a)||Jd(a),"modulesToLoad","not an array");var b,c=[];return f(a,function(a){function d(a){var b,c;for(b=0,c=a.length;c>b;b++){var d=a[b],e=y.get(d[0]);e[d[1]].apply(e,d[2])}}if(!u.get(a)){u.put(a,!0);try{x(a)?(b=zd(a),c=c.concat(n(b.requires)).concat(b._runBlocks),d(b._invokeQueue),d(b._configBlocks)):A(a)?c.push(y.invoke(a)):Jd(a)?c.push(y.invoke(a)):ma(a,"module")}catch(e){throw Jd(a)&&(a=a[a.length-1]),e.message&&e.stack&&-1==e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),te("modulerr","Failed to instantiate module {0} due to:\n{1}",a,e.stack||e.message||e)}}}),c}function o(a,c){function d(b,d){if(a.hasOwnProperty(b)){if(a[b]===p)throw te("cdep","Circular dependency found: {0}",b+" <- "+s.join(" <- "));return a[b]}try{return s.unshift(b),a[b]=p,a[b]=c(b,d)}catch(e){throw a[b]===p&&delete a[b],e}finally{s.shift()}}function e(a,c,e,f){"string"==typeof e&&(f=e,e=null);var g,h,i,j=[],k=$a.$$annotate(a,b,f);for(h=0,g=k.length;g>h;h++){if(i=k[h],"string"!=typeof i)throw te("itkn","Incorrect injection token! Expected service name as string, got {0}",i);j.push(e&&e.hasOwnProperty(i)?e[i]:d(i,f))}return Jd(a)&&(a=a[g]),a.apply(c,j)}function f(a,b,c){var d=Object.create((Jd(a)?a[a.length-1]:a).prototype||null),f=e(a,d,b,c);return v(f)||A(f)?f:d}return{invoke:e,instantiate:f,get:d,annotate:$a.$$annotate,has:function(b){return w.hasOwnProperty(b+q)||a.hasOwnProperty(b)}}}b=b===!0;var p={},q="Provider",s=[],u=new Xa([],!0),w={$provide:{provider:d(e),factory:d(i),service:d(j),value:d(k),constant:d(l),decorator:m}},y=w.$injector=o(w,function(a,b){throw Gd.isString(b)&&s.push(b),te("unpr","Unknown provider: {0}",s.join(" <- "))}),z={},B=z.$injector=o(z,function(a,b){var d=y.get(a+q,b);return B.invoke(d.$get,d,c,a)});return f(n(a),function(a){a&&B.invoke(a)}),B}function _a(){var a=!0;this.disableAutoScrolling=function(){a=!1},this.$get=["$window","$location","$rootScope",function(b,c,d){function e(a){var b=null;return Array.prototype.some.call(a,function(a){return"a"===M(a)?(b=a,!0):void 0}),b}function f(){var a=h.yOffset;if(A(a))a=a();else if(K(a)){var c=a[0],d=b.getComputedStyle(c);a="fixed"!==d.position?0:c.getBoundingClientRect().bottom}else y(a)||(a=0);return a}function g(a){if(a){a.scrollIntoView();var c=f();if(c){var d=a.getBoundingClientRect().top;b.scrollBy(0,d-c)}}else b.scrollTo(0,0)}function h(a){a=x(a)?a:c.hash();var b;a?(b=i.getElementById(a))?g(b):(b=e(i.getElementsByName(a)))?g(b):"top"===a&&g(null):g(null)}var i=b.document;return a&&d.$watch(function(){return c.hash()},function(a,b){a===b&&""===a||Ra(function(){d.$evalAsync(h)})}),h}]}function ab(a,b){return a||b?a?b?(Jd(a)&&(a=a.join(" ")),Jd(b)&&(b=b.join(" ")),a+" "+b):a:b:""}function bb(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.nodeType===ve)return c}}function cb(a){x(a)&&(a=a.split(" "));var b=qa();return f(a,function(a){a.length&&(b[a]=!0)}),b}function db(a){return v(a)?a:{}}function eb(a,b,c,d){function e(a){try{a.apply(null,S(arguments,1))}finally{if(s--,0===s)for(;u.length;)try{u.pop()()}catch(b){c.error(b)}}}function g(a){var b=a.indexOf("#");return-1===b?"":a.substr(b)}function h(){j(),k()}function i(){try{return n.state}catch(a){}}function j(){v=i(),v=t(v)?null:v,Q(v,C)&&(v=C),C=v}function k(){x===l.url()&&w===v||(x=l.url(),w=v,f(A,function(a){a(l.url(),v)}))}var l=this,m=(b[0],a.location),n=a.history,o=a.setTimeout,q=a.clearTimeout,r={};l.isMock=!1;var s=0,u=[];l.$$completeOutstandingRequest=e,l.$$incOutstandingRequestCount=function(){s++},l.notifyWhenNoOutstandingRequests=function(a){0===s?a():u.push(a)};var v,w,x=m.href,y=b.find("base"),z=null;j(),w=v,l.url=function(b,c,e){if(t(e)&&(e=null),m!==a.location&&(m=a.location),n!==a.history&&(n=a.history),b){var f=w===e;if(x===b&&(!d.history||f))return l;var h=x&&Jb(x)===Jb(b);return x=b,w=e,!d.history||h&&f?(h&&!z||(z=b),c?m.replace(b):h?m.hash=g(b):m.href=b):(n[c?"replaceState":"pushState"](e,"",b),j(),w=v),l}return z||m.href.replace(/%27/g,"'")},l.state=function(){return v};var A=[],B=!1,C=null;l.onUrlChange=function(b){return B||(d.history&&xd(a).on("popstate",h),xd(a).on("hashchange",h),B=!0),A.push(b),b},l.$$applicationDestroyed=function(){xd(a).off("hashchange popstate",h)},l.$$checkUrlChange=k,l.baseHref=function(){var a=y.attr("href");return a?a.replace(/^(https?\:)?\/\/[^\/]*/,""):""},l.defer=function(a,b){var c;return s++,c=o(function(){delete r[c],e(a)},b||0),r[c]=!0,c},l.defer.cancel=function(a){return r[a]?(delete r[a],q(a),e(p),!0):!1}}function fb(){this.$get=["$window","$log","$sniffer","$document",function(a,b,c,d){return new eb(a,d,b,c)}]}function gb(){this.$get=function(){function a(a,c){function e(a){a!=m&&(n?n==a&&(n=a.n):n=a,f(a.n,a.p),f(a,m),m=a,m.n=null)}function f(a,b){a!=b&&(a&&(a.p=b),b&&(b.n=a))}if(a in b)throw d("$cacheFactory")("iid","CacheId '{0}' is already taken!",a);var g=0,h=l({},c,{id:a}),i={},j=c&&c.capacity||Number.MAX_VALUE,k={},m=null,n=null;return b[a]={put:function(a,b){if(!t(b)){if(j<Number.MAX_VALUE){var c=k[a]||(k[a]={key:a});e(c)}return a in i||g++,i[a]=b,g>j&&this.remove(n.key),b}},get:function(a){if(j<Number.MAX_VALUE){var b=k[a];if(!b)return;e(b)}return i[a]},remove:function(a){if(j<Number.MAX_VALUE){var b=k[a];if(!b)return;b==m&&(m=b.p),b==n&&(n=b.n),f(b.n,b.p),delete k[a]}delete i[a],g--},removeAll:function(){i={},g=0,k={},m=n=null},destroy:function(){i=null,h=null,k=null,delete b[a]},info:function(){return l({},h,{size:g})}}}var b={};return a.info=function(){var a={};return f(b,function(b,c){a[c]=b.info()}),a},a.get=function(a){return b[a]},a}}function hb(){this.$get=["$cacheFactory",function(a){return a("templates")}]}function ib(a,d){function e(a,b,c){var d=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,e={};return f(a,function(a,f){var g=a.match(d);if(!g)throw Be("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",b,f,a,c?"controller bindings definition":"isolate scope definition");e[f]={mode:g[1][0],collection:"*"===g[2],optional:"?"===g[3],attrName:g[4]||f}}),e}function g(a,b){var c={isolateScope:null,bindToController:null};if(v(a.scope)&&(a.bindToController===!0?(c.bindToController=e(a.scope,b,!0),c.isolateScope={}):c.isolateScope=e(a.scope,b,!1)),v(a.bindToController)&&(c.bindToController=e(a.bindToController,b,!0)),v(c.bindToController)){var d=a.controller,f=a.controllerAs;if(!d)throw Be("noctrl","Cannot bind to controller without directive '{0}'s controller.",b);if(!mb(d,f))throw Be("noident","Cannot bind to controller without identifier for directive '{0}'.",b)}return c}function i(a){var b=a.charAt(0);if(!b||b!==rd(b))throw Be("baddir","Directive name '{0}' is invalid. The first character must be a lowercase letter",a);if(a!==a.trim())throw Be("baddir","Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces",a)}var j={},k="Directive",m=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,n=/(([\w\-]+)(?:\:([^;]+))?;?)/,s=L("ngSrc,ngSrcset,src,srcset"),w=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,y=/^(on[a-z]+|formaction)$/;this.directive=function B(b,c){return na(b,"directive"),x(b)?(i(b),la(c,"directiveFactory"),j.hasOwnProperty(b)||(j[b]=[],a.factory(b+k,["$injector","$exceptionHandler",function(a,c){var d=[];return f(j[b],function(e,f){try{var h=a.invoke(e);A(h)?h={compile:r(h)}:!h.compile&&h.link&&(h.compile=r(h.link)),h.priority=h.priority||0,h.index=f,h.name=h.name||b,h.require=h.require||h.controller&&h.name,h.restrict=h.restrict||"EA";var i=h.$$bindings=g(h,h.name);v(i.isolateScope)&&(h.$$isolateBindings=i.isolateScope),h.$$moduleName=e.$$moduleName,d.push(h)}catch(j){c(j)}}),d}])),j[b].push(c)):f(b,h(B)),this},this.aHrefSanitizationWhitelist=function(a){return u(a)?(d.aHrefSanitizationWhitelist(a),this):d.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(a){return u(a)?(d.imgSrcSanitizationWhitelist(a),this):d.imgSrcSanitizationWhitelist()};var z=!0;this.debugInfoEnabled=function(a){return u(a)?(z=a,this):z},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(a,d,e,g,h,i,r,u,B,C,E){function F(a,b){try{a.addClass(b)}catch(c){}}function G(a,b,c,d,e){a instanceof xd||(a=xd(a)),f(a,function(b,c){b.nodeType==Ud&&b.nodeValue.match(/\S+/)&&(a[c]=xd(b).wrap("<span></span>").parent()[0])});var g=I(a,b,a,c,d,e);G.$$addScopeClass(a);var h=null;return function(b,c,d){la(b,"scope"),d=d||{};var e=d.parentBoundTranscludeFn,f=d.transcludeControllers,i=d.futureParentElement;e&&e.$$boundTransclude&&(e=e.$$boundTransclude),h||(h=H(i));var j;if(j="html"!==h?xd(_(h,xd("<div>").append(a).html())):c?ke.clone.call(a):a,f)for(var k in f)j.data("$"+k+"Controller",f[k].instance);return G.$$addScopeInfo(j,b),c&&c(j,b),g&&g(b,j,j,e),j}}function H(a){var b=a&&a[0];return b&&"foreignobject"!==M(b)&&b.toString().match(/SVG/)?"svg":"html"}function I(a,b,d,e,f,g){function h(a,d,e,f){var g,h,i,j,k,l,m,n,q;if(o){var r=d.length;for(q=new Array(r),k=0;k<p.length;k+=3)m=p[k],q[m]=d[m]}else q=d;for(k=0,l=p.length;l>k;)if(i=q[p[k++]],g=p[k++],h=p[k++],g){if(g.scope){j=a.$new(),G.$$addScopeInfo(xd(i),j);var s=g.$$destroyBindings;s&&(g.$$destroyBindings=null,j.$on("$destroyed",s))}else j=a;n=g.transcludeOnThisElement?J(a,g.transclude,f):!g.templateOnThisElement&&f?f:!f&&b?J(a,b):null,g(h,j,i,e,n,g)}else h&&h(a,i.childNodes,c,f)}for(var i,j,k,l,m,n,o,p=[],q=0;q<a.length;q++)i=new ga,j=K(a[q],[],i,0===q?e:c,f),k=j.length?P(j,a[q],i,b,d,null,[],[],g):null,k&&k.scope&&G.$$addScopeClass(i.$$element),m=k&&k.terminal||!(l=a[q].childNodes)||!l.length?null:I(l,k?(k.transcludeOnThisElement||!k.templateOnThisElement)&&k.transclude:b),(k||m)&&(p.push(q,k,m),n=!0,o=o||k),g=null;return n?h:null}function J(a,b,c){var d=function(d,e,f,g,h){return d||(d=a.$new(!1,h),d.$$transcluded=!0),b(d,e,{parentBoundTranscludeFn:c,transcludeControllers:f,futureParentElement:g})};return d}function K(a,b,c,d,e){var f,g,h=a.nodeType,i=c.$attr;switch(h){case Sd:T(b,jb(M(a)),"E",d,e);for(var j,k,l,o,p,q,r=a.attributes,s=0,t=r&&r.length;t>s;s++){var u=!1,w=!1;j=r[s],k=j.name,p=Ld(j.value),o=jb(k),(q=ma.test(o))&&(k=k.replace(Ce,"").substr(8).replace(/_(.)/g,function(a,b){return b.toUpperCase()}));var y=o.replace(/(Start|End)$/,"");U(y)&&o===y+"Start"&&(u=k,w=k.substr(0,k.length-5)+"end",k=k.substr(0,k.length-6)),l=jb(k.toLowerCase()),i[l]=k,!q&&c.hasOwnProperty(l)||(c[l]=p,Sa(a,l)&&(c[l]=!0)),ba(a,b,p,l,q),T(b,l,"A",d,e,u,w)}if(g=a.className,v(g)&&(g=g.animVal),x(g)&&""!==g)for(;f=n.exec(g);)l=jb(f[2]),T(b,l,"C",d,e)&&(c[l]=Ld(f[3])),g=g.substr(f.index+f[0].length);break;case Ud:if(11===wd)for(;a.parentNode&&a.nextSibling&&a.nextSibling.nodeType===Ud;)a.nodeValue=a.nodeValue+a.nextSibling.nodeValue,a.parentNode.removeChild(a.nextSibling);Z(b,a.nodeValue);break;case Vd:try{f=m.exec(a.nodeValue),f&&(l=jb(f[1]),T(b,l,"M",d,e)&&(c[l]=Ld(f[2])))}catch(z){}}return b.sort(X),b}function L(a,b,c){var d=[],e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw Be("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",b,c);a.nodeType==Sd&&(a.hasAttribute(b)&&e++,a.hasAttribute(c)&&e--),d.push(a),a=a.nextSibling}while(e>0)}else d.push(a);return xd(d)}function O(a,b,c){return function(d,e,f,g,h){return e=L(e[0],b,c),a(d,e,f,g,h)}}function P(a,d,f,g,h,j,k,l,m){function n(a,b,c,d){a&&(c&&(a=O(a,c,d)),a.require=r.require,a.directiveName=s,(E===r||r.$$isolateScope)&&(a=da(a,{isolateScope:!0})),k.push(a)),b&&(c&&(b=O(b,c,d)),b.require=r.require,b.directiveName=s,(E===r||r.$$isolateScope)&&(b=da(b,{isolateScope:!0})),l.push(b))}function o(a,b,c,d){var e;if(x(b)){var f=b.match(w),g=b.substring(f[0].length),h=f[1]||f[3],i="?"===f[2];if("^^"===h?c=c.parent():(e=d&&d[g],e=e&&e.instance),!e){var j="$"+g+"Controller";e=h?c.inheritedData(j):c.data(j)}if(!e&&!i)throw Be("ctreq","Controller '{0}', required by directive '{1}', can't be found!",g,a)}else if(Jd(b)){e=[];for(var k=0,l=b.length;l>k;k++)e[k]=o(a,b[k],c,d)}return e||null}function p(a,b,c,d,e,f){var g=qa();for(var h in d){var j=d[h],k={$scope:j===E||j.$$isolateScope?e:f,$element:a,$attrs:b,$transclude:c},l=j.controller;"@"==l&&(l=b[j.name]);var m=i(l,k,!0,j.controllerAs);g[j.name]=m,M||a.data("$"+j.name+"Controller",m.instance)}return g}function q(a,b,e,g,h,i){function j(a,b,d){var e;return D(a)||(d=b,b=a,a=c),M&&(e=t),d||(d=M?v.parent():v),h(a,b,e,d,H)}var m,n,q,r,s,t,u,v,w;if(d===e?(w=f,v=f.$$element):(v=xd(e),w=new ga(v,f)),E&&(s=b.$new(!0)),h&&(u=j,u.$$boundTransclude=h),C&&(t=p(v,w,u,C,s,b)),E&&(G.$$addScopeInfo(v,s,!0,!(F&&(F===E||F===E.$$originalDirective))),G.$$addScopeClass(v,!0),s.$$isolateBindings=E.$$isolateBindings,fa(b,w,s,s.$$isolateBindings,E,s)),t){var x,y,z=E||B;z&&t[z.name]&&(x=z.$$bindings.bindToController,r=t[z.name],r&&r.identifier&&x&&(y=r,i.$$destroyBindings=fa(b,w,r.instance,x,z)));for(m in t){r=t[m];var A=r();A!==r.instance&&(r.instance=A,v.data("$"+m+"Controller",A),r===y&&(i.$$destroyBindings(),i.$$destroyBindings=fa(b,w,A,x,z)))}}for(m=0,n=k.length;n>m;m++)q=k[m],ea(q,q.isolateScope?s:b,v,w,q.require&&o(q.directiveName,q.require,v,t),u);var H=b;for(E&&(E.template||null===E.templateUrl)&&(H=s),a&&a(H,e.childNodes,c,h),m=l.length-1;m>=0;m--)q=l[m],ea(q,q.isolateScope?s:b,v,w,q.require&&o(q.directiveName,q.require,v,t),u)}m=m||{};for(var r,s,t,u,y,z=-Number.MAX_VALUE,B=m.newScopeDirective,C=m.controllerDirectives,E=m.newIsolateScopeDirective,F=m.templateDirective,H=m.nonTlbTranscludeDirective,I=!1,J=!1,M=m.hasElementTranscludeDirective,N=f.$$element=xd(d),P=j,Q=g,T=0,U=a.length;U>T;T++){r=a[T];var X=r.$$start,Z=r.$$end;if(X&&(N=L(d,X,Z)),t=c,z>r.priority)break;if((y=r.scope)&&(r.templateUrl||(v(y)?(Y("new/isolated scope",E||B,r,N),E=r):Y("new/isolated scope",E,r,N)),B=B||r),s=r.name,!r.templateUrl&&r.controller&&(y=r.controller,C=C||qa(),Y("'"+s+"' controller",C[s],r,N),C[s]=r),(y=r.transclude)&&(I=!0,r.$$tlb||(Y("transclusion",H,r,N),H=r),"element"==y?(M=!0,z=r.priority,t=N,N=f.$$element=xd(b.createComment(" "+s+": "+f[s]+" ")),d=N[0],ca(h,S(t),d),Q=G(t,g,z,P&&P.name,{nonTlbTranscludeDirective:H})):(t=xd(Da(d)).contents(),N.empty(),Q=G(t,g))),r.template)if(J=!0,Y("template",F,r,N),F=r,y=A(r.template)?r.template(N,f):r.template,y=ka(y),r.replace){if(P=r,t=xa(y)?[]:lb(_(r.templateNamespace,Ld(y))),d=t[0],1!=t.length||d.nodeType!==Sd)throw Be("tplrt","Template for directive '{0}' must have exactly one root element. {1}",s,"");ca(h,N,d);var aa={$attr:{}},ba=K(d,[],aa),ha=a.splice(T+1,a.length-(T+1));E&&R(ba),a=a.concat(ba).concat(ha),V(f,aa),U=a.length}else N.html(y);if(r.templateUrl)J=!0,Y("template",F,r,N),F=r,r.replace&&(P=r),q=W(a.splice(T,a.length-T),N,f,h,I&&Q,k,l,{controllerDirectives:C,newScopeDirective:B!==r&&B,newIsolateScopeDirective:E,templateDirective:F,nonTlbTranscludeDirective:H}),U=a.length;else if(r.compile)try{u=r.compile(N,f,Q),A(u)?n(null,u,X,Z):u&&n(u.pre,u.post,X,Z)}catch(ia){e(ia,$(N))}r.terminal&&(q.terminal=!0,z=Math.max(z,r.priority))}return q.scope=B&&B.scope===!0,q.transcludeOnThisElement=I,q.templateOnThisElement=J,q.transclude=Q,m.hasElementTranscludeDirective=M,q}function R(a){for(var b=0,c=a.length;c>b;b++)a[b]=o(a[b],{$$isolateScope:!0})}function T(b,d,f,g,h,i,l){if(d===h)return null;var m=null;if(j.hasOwnProperty(d))for(var n,p=a.get(d+k),q=0,r=p.length;r>q;q++)try{n=p[q],(g===c||g>n.priority)&&-1!=n.restrict.indexOf(f)&&(i&&(n=o(n,{$$start:i,$$end:l})),b.push(n),m=n)}catch(s){e(s)}return m}function U(b){if(j.hasOwnProperty(b))for(var c,d=a.get(b+k),e=0,f=d.length;f>e;e++)if(c=d[e],c.multiElement)return!0;return!1}function V(a,b){var c=b.$attr,d=a.$attr,e=a.$$element;f(a,function(d,e){"$"!=e.charAt(0)&&(b[e]&&b[e]!==d&&(d+=("style"===e?";":" ")+b[e]),a.$set(e,d,!0,c[e]))}),f(b,function(b,f){"class"==f?(F(e,b),a["class"]=(a["class"]?a["class"]+" ":"")+b):"style"==f?(e.attr("style",e.attr("style")+";"+b),a.style=(a.style?a.style+";":"")+b):"$"==f.charAt(0)||a.hasOwnProperty(f)||(a[f]=b,d[f]=c[f])})}function W(a,b,c,d,e,h,i,j){var k,l,m=[],n=b[0],p=a.shift(),q=o(p,{templateUrl:null,transclude:null,replace:null,$$originalDirective:p}),r=A(p.templateUrl)?p.templateUrl(b,c):p.templateUrl,s=p.templateNamespace;return b.empty(),g(r).then(function(g){var o,t,u,w;if(g=ka(g),p.replace){if(u=xa(g)?[]:lb(_(s,Ld(g))),o=u[0],1!=u.length||o.nodeType!==Sd)throw Be("tplrt","Template for directive '{0}' must have exactly one root element. {1}",p.name,r);t={$attr:{}},ca(d,b,o);var x=K(o,[],t);v(p.scope)&&R(x),a=x.concat(a),V(c,t)}else o=n,b.html(g);for(a.unshift(q),k=P(a,o,c,e,b,p,h,i,j),f(d,function(a,c){a==o&&(d[c]=b[0])}),l=I(b[0].childNodes,e);m.length;){var y=m.shift(),z=m.shift(),A=m.shift(),B=m.shift(),C=b[0];if(!y.$$destroyed){if(z!==n){var D=z.className;j.hasElementTranscludeDirective&&p.replace||(C=Da(o)),ca(A,xd(z),C),F(xd(C),D)}w=k.transcludeOnThisElement?J(y,k.transclude,B):B,k(l,y,C,d,w,k)}}m=null}),function(a,b,c,d,e){var f=e;b.$$destroyed||(m?m.push(b,c,d,f):(k.transcludeOnThisElement&&(f=J(b,k.transclude,e)),k(l,b,c,d,f,k)))}}function X(a,b){var c=b.priority-a.priority;return 0!==c?c:a.name!==b.name?a.name<b.name?-1:1:a.index-b.index}function Y(a,b,c,d){function e(a){return a?" (module: "+a+")":""}if(b)throw Be("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",b.name,e(b.$$moduleName),c.name,e(c.$$moduleName),a,$(d))}function Z(a,b){var c=d(b,!0);c&&a.push({priority:0,compile:function(a){var b=a.parent(),d=!!b.length;return d&&G.$$addBindingClass(b),function(a,b){var e=b.parent();d||G.$$addBindingClass(e),G.$$addBindingInfo(e,c.expressions),a.$watch(c,function(a){b[0].nodeValue=a})}}})}function _(a,c){switch(a=rd(a||"html")){case"svg":case"math":var d=b.createElement("div");return d.innerHTML="<"+a+">"+c+"</"+a+">",d.childNodes[0].childNodes;default:return c}}function aa(a,b){if("srcdoc"==b)return B.HTML;var c=M(a);return"xlinkHref"==b||"form"==c&&"action"==b||"img"!=c&&("src"==b||"ngSrc"==b)?B.RESOURCE_URL:void 0}function ba(a,b,c,e,f){var g=aa(a,e);f=s[e]||f;var h=d(c,!0,g,f);if(h){if("multiple"===e&&"select"===M(a))throw Be("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",$(a));b.push({priority:100,compile:function(){return{pre:function(a,b,i){var j=i.$$observers||(i.$$observers={});if(y.test(e))throw Be("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");var k=i[e];k!==c&&(h=k&&d(k,!0,g,f),c=k),h&&(i[e]=h(a),(j[e]||(j[e]=[])).$$inter=!0,(i.$$observers&&i.$$observers[e].$$scope||a).$watch(h,function(a,b){"class"===e&&a!=b?i.$updateClass(a,b):i.$set(e,a)}))}}}})}}function ca(a,c,d){var e,f,g=c[0],h=c.length,i=g.parentNode;if(a)for(e=0,f=a.length;f>e;e++)if(a[e]==g){a[e++]=d;for(var j=e,k=j+h-1,l=a.length;l>j;j++,k++)l>k?a[j]=a[k]:delete a[j];a.length-=h-1,a.context===g&&(a.context=d);break}i&&i.replaceChild(d,g);var m=b.createDocumentFragment();m.appendChild(g),xd.hasData(g)&&(xd(d).data(xd(g).data()),yd?(Id=!0,yd.cleanData([g])):delete xd.cache[g[xd.expando]]);for(var n=1,o=c.length;o>n;n++){var p=c[n];xd(p).remove(),m.appendChild(p),delete c[n]}c[0]=d,c.length=1}function da(a,b){return l(function(){return a.apply(null,arguments)},a,b)}function ea(a,b,c,d,f,g){try{a(b,c,d,f,g)}catch(h){e(h,$(c))}}function fa(a,b,c,e,g,i){var j;f(e,function(e,f){var i,k,l,m,n=e.attrName,o=e.optional,q=e.mode;switch(q){case"@":o||sd.call(b,n)||(c[f]=b[n]=void 0),b.$observe(n,function(a){x(a)&&(c[f]=a)}),b.$$observers[n].$$scope=a,x(b[n])&&(c[f]=d(b[n])(a));break;case"=":if(!sd.call(b,n)){if(o)break;b[n]=void 0}if(o&&!b[n])break;k=h(b[n]),m=k.literal?Q:function(a,b){return a===b||a!==a&&b!==b},l=k.assign||function(){throw i=c[f]=k(a),Be("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",b[n],g.name)},i=c[f]=k(a);var r=function(b){return m(b,c[f])||(m(b,i)?l(a,b=c[f]):c[f]=b),i=b};r.$stateful=!0;var s;s=e.collection?a.$watchCollection(b[n],r):a.$watch(h(b[n],r),null,k.literal),j=j||[],j.push(s);break;case"&":if(k=b.hasOwnProperty(n)?h(b[n]):p,k===p&&o)break;c[f]=function(b){return k(a,b)}}});var k=j?function(){for(var a=0,b=j.length;b>a;++a)j[a]()}:p;return i&&k!==p?(i.$on("$destroy",k),p):k}var ga=function(a,b){if(b){var c,d,e,f=Object.keys(b);for(c=0,d=f.length;d>c;c++)e=f[c],this[e]=b[e]}else this.$attr={};this.$$element=a};ga.prototype={$normalize:jb,$addClass:function(a){a&&a.length>0&&C.addClass(this.$$element,a)},$removeClass:function(a){a&&a.length>0&&C.removeClass(this.$$element,a)},$updateClass:function(a,b){var c=kb(a,b);c&&c.length&&C.addClass(this.$$element,c);var d=kb(b,a);d&&d.length&&C.removeClass(this.$$element,d)},$set:function(a,b,d,g){var h,i=this.$$element[0],j=Sa(i,a),k=Ta(i,a),l=a;if(j?(this.$$element.prop(a,b),g=j):k&&(this[k]=b,l=k),this[a]=b,g?this.$attr[a]=g:(g=this.$attr[a],g||(this.$attr[a]=g=ja(a,"-"))),h=M(this.$$element),"a"===h&&"href"===a||"img"===h&&"src"===a)this[a]=b=E(b,"src"===a);else if("img"===h&&"srcset"===a){for(var m="",n=Ld(b),o=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,p=/\s/.test(n)?o:/(,)/,q=n.split(p),r=Math.floor(q.length/2),s=0;r>s;s++){var t=2*s;m+=E(Ld(q[t]),!0),m+=" "+Ld(q[t+1])}var u=Ld(q[2*s]).split(/\s/);m+=E(Ld(u[0]),!0),2===u.length&&(m+=" "+Ld(u[1])),this[a]=b=m}d!==!1&&(null===b||b===c?this.$$element.removeAttr(g):this.$$element.attr(g,b));var v=this.$$observers;v&&f(v[l],function(a){try{a(b)}catch(c){e(c)}})},$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers=qa()),e=d[a]||(d[a]=[]);return e.push(b),r.$evalAsync(function(){e.$$inter||!c.hasOwnProperty(a)||t(c[a])||b(c[a])}),function(){N(e,b)}}};var ha=d.startSymbol(),ia=d.endSymbol(),ka="{{"==ha||"}}"==ia?q:function(a){return a.replace(/\{\{/g,ha).replace(/}}/g,ia)},ma=/^ngAttr[A-Z]/;return G.$$addBindingInfo=z?function(a,b){var c=a.data("$binding")||[];Jd(b)?c=c.concat(b):c.push(b),a.data("$binding",c)}:p,G.$$addBindingClass=z?function(a){F(a,"ng-binding")}:p,G.$$addScopeInfo=z?function(a,b,c,d){var e=c?d?"$isolateScopeNoTemplate":"$isolateScope":"$scope";a.data(e,b)}:p,G.$$addScopeClass=z?function(a,b){F(a,b?"ng-isolate-scope":"ng-scope")}:p,G}]}function jb(a){return wa(a.replace(Ce,""))}function kb(a,b){var c="",d=a.split(/\s+/),e=b.split(/\s+/);a:for(var f=0;f<d.length;f++){for(var g=d[f],h=0;h<e.length;h++)if(g==e[h])continue a;c+=(c.length>0?" ":"")+g}return c}function lb(a){a=xd(a);var b=a.length;if(1>=b)return a;for(;b--;){var c=a[b];c.nodeType===Vd&&Bd.call(a,b,1)}return a}function mb(a,b){if(b&&x(b))return b;if(x(a)){var c=Ee.exec(a);if(c)return c[3]}}function nb(){var a={},b=!1;this.register=function(b,c){na(b,"controller"),v(b)?l(a,b):a[b]=c},this.allowGlobals=function(){b=!0},this.$get=["$injector","$window",function(e,f){function g(a,b,c,e){if(!a||!v(a.$scope))throw d("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",e,b);a.$scope[b]=c}return function(d,h,i,j){var k,m,n,o;if(i=i===!0,j&&x(j)&&(o=j),x(d)){if(m=d.match(Ee),!m)throw De("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",d);n=m[1],o=o||m[3],d=a.hasOwnProperty(n)?a[n]:oa(h.$scope,n,!0)||(b?oa(f,n,!0):c),ma(d,n,!0)}if(i){var p=(Jd(d)?d[d.length-1]:d).prototype;k=Object.create(p||null),o&&g(h,o,k,n||d.name);var q;return q=l(function(){var a=e.invoke(d,k,h,n);return a!==k&&(v(a)||A(a))&&(k=a,o&&g(h,o,k,n||d.name)),k},{instance:k,identifier:o})}return k=e.instantiate(d,h,n),o&&g(h,o,k,n||d.name),k}}]}function ob(){this.$get=["$window",function(a){return xd(a.document)}]}function pb(){this.$get=["$log",function(a){return function(b,c){a.error.apply(a,arguments)}}]}function qb(a){return v(a)?z(a)?a.toISOString():V(a):a}function rb(){this.$get=function(){return function(a){if(!a)return"";var b=[];return g(a,function(a,c){null===a||t(a)||(Jd(a)?f(a,function(a,d){b.push(da(c)+"="+da(qb(a)))}):b.push(da(c)+"="+da(qb(a))))}),b.join("&")}}}function sb(){this.$get=function(){return function(a){function b(a,d,e){null===a||t(a)||(Jd(a)?f(a,function(a,c){b(a,d+"["+(v(a)?c:"")+"]")}):v(a)&&!z(a)?g(a,function(a,c){b(a,d+(e?"":"[")+c+(e?"":"]"))}):c.push(da(d)+"="+da(qb(a))))}if(!a)return"";var c=[];return b(a,"",!0),c.join("&")}}}function tb(a,b){if(x(a)){var c=a.replace(Ke,"").trim();if(c){var d=b("Content-Type");(d&&0===d.indexOf(Ge)||ub(c))&&(a=W(c))}}return a}function ub(a){var b=a.match(Ie);return b&&Je[b[0]].test(a)}function vb(a){function b(a,b){a&&(d[a]=d[a]?d[a]+", "+b:b)}var c,d=qa();return x(a)?f(a.split("\n"),function(a){c=a.indexOf(":"),b(rd(Ld(a.substr(0,c))),Ld(a.substr(c+1)))}):v(a)&&f(a,function(a,c){b(rd(c),Ld(a))}),d}function wb(a){var b;return function(c){if(b||(b=vb(a)),c){var d=b[rd(c)];return void 0===d&&(d=null),d}return b}}function xb(a,b,c,d){return A(d)?d(a,b,c):(f(d,function(d){a=d(a,b,c)}),a)}function yb(a){return a>=200&&300>a}function zb(){var a=this.defaults={transformResponse:[tb],transformRequest:[function(a){return!v(a)||E(a)||G(a)||F(a)?a:V(a)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:P(He),put:P(He),patch:P(He)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},b=!1;this.useApplyAsync=function(a){return u(a)?(b=!!a,this):b};var e=!0;this.useLegacyPromiseExtensions=function(a){return u(a)?(e=!!a,this):e};var g=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(h,i,j,k,m,n){function o(b){function g(a){var b=l({},a);return a.data?b.data=xb(a.data,a.headers,a.status,j.transformResponse):b.data=a.data,yb(a.status)?b:m.reject(b)}function h(a,b){var c,d={};return f(a,function(a,e){A(a)?(c=a(b),null!=c&&(d[e]=c)):d[e]=a}),d}function i(b){var c,d,e,f=a.headers,g=l({},b.headers);f=l({},f.common,f[rd(b.method)]);
a:for(c in f){d=rd(c);for(e in g)if(rd(e)===d)continue a;g[c]=f[c]}return h(g,P(b))}if(!Gd.isObject(b))throw d("$http")("badreq","Http request configuration must be an object.  Received: {0}",b);var j=l({method:"get",transformRequest:a.transformRequest,transformResponse:a.transformResponse,paramSerializer:a.paramSerializer},b);j.headers=i(b),j.method=td(j.method),j.paramSerializer=x(j.paramSerializer)?n.get(j.paramSerializer):j.paramSerializer;var k=function(b){var d=b.headers,e=xb(b.data,wb(d),c,b.transformRequest);return t(e)&&f(d,function(a,b){"content-type"===rd(b)&&delete d[b]}),t(b.withCredentials)&&!t(a.withCredentials)&&(b.withCredentials=a.withCredentials),r(b,e).then(g,g)},o=[k,c],p=m.when(j);for(f(y,function(a){(a.request||a.requestError)&&o.unshift(a.request,a.requestError),(a.response||a.responseError)&&o.push(a.response,a.responseError)});o.length;){var q=o.shift(),s=o.shift();p=p.then(q,s)}return e?(p.success=function(a){return ma(a,"fn"),p.then(function(b){a(b.data,b.status,b.headers,j)}),p},p.error=function(a){return ma(a,"fn"),p.then(null,function(b){a(b.data,b.status,b.headers,j)}),p}):(p.success=Me("success"),p.error=Me("error")),p}function p(a){f(arguments,function(a){o[a]=function(b,c){return o(l({},c||{},{method:a,url:b}))}})}function q(a){f(arguments,function(a){o[a]=function(b,c,d){return o(l({},d||{},{method:a,url:b,data:c}))}})}function r(d,e){function f(a,c,d,e){function f(){g(c,a,d,e)}n&&(yb(a)?n.put(y,[a,c,vb(d),e]):n.remove(y)),b?k.$applyAsync(f):(f(),k.$$phase||k.$apply())}function g(a,b,c,e){b=Math.max(b,0),(yb(b)?q.resolve:q.reject)({data:a,status:b,headers:wb(c),config:d,statusText:e})}function j(a){g(a.data,a.status,P(a.headers()),a.statusText)}function l(){var a=o.pendingRequests.indexOf(d);-1!==a&&o.pendingRequests.splice(a,1)}var n,p,q=m.defer(),r=q.promise,x=d.headers,y=s(d.url,d.paramSerializer(d.params));if(o.pendingRequests.push(d),r.then(l,l),!d.cache&&!a.cache||d.cache===!1||"GET"!==d.method&&"JSONP"!==d.method||(n=v(d.cache)?d.cache:v(a.cache)?a.cache:w),n&&(p=n.get(y),u(p)?I(p)?p.then(j,j):Jd(p)?g(p[1],p[0],P(p[2]),p[3]):g(p,200,{},"OK"):n.put(y,r)),t(p)){var z=yc(d.url)?i()[d.xsrfCookieName||a.xsrfCookieName]:c;z&&(x[d.xsrfHeaderName||a.xsrfHeaderName]=z),h(d.method,y,e,f,x,d.timeout,d.withCredentials,d.responseType)}return r}function s(a,b){return b.length>0&&(a+=(-1==a.indexOf("?")?"?":"&")+b),a}var w=j("$http");a.paramSerializer=x(a.paramSerializer)?n.get(a.paramSerializer):a.paramSerializer;var y=[];return f(g,function(a){y.unshift(x(a)?n.get(a):n.invoke(a))}),o.pendingRequests=[],p("get","delete","head","jsonp"),q("post","put","patch"),o.defaults=a,o}]}function Ab(){return new a.XMLHttpRequest}function Bb(){this.$get=["$browser","$window","$document",function(a,b,c){return Cb(a,Ab,a.defer,b.angular.callbacks,c[0])}]}function Cb(a,b,d,e,g){function h(a,b,c){var d=g.createElement("script"),f=null;return d.type="text/javascript",d.src=a,d.async=!0,f=function(a){ae(d,"load",f),ae(d,"error",f),g.body.removeChild(d),d=null;var h=-1,i="unknown";a&&("load"!==a.type||e[b].called||(a={type:"error"}),i=a.type,h="error"===a.type?404:200),c&&c(h,i)},_d(d,"load",f),_d(d,"error",f),g.body.appendChild(d),f}return function(g,i,j,k,l,m,n,o){function q(){t&&t(),v&&v.abort()}function r(b,e,f,g,h){y!==c&&d.cancel(y),t=v=null,b(e,f,g,h),a.$$completeOutstandingRequest(p)}if(a.$$incOutstandingRequestCount(),i=i||a.url(),"jsonp"==rd(g)){var s="_"+(e.counter++).toString(36);e[s]=function(a){e[s].data=a,e[s].called=!0};var t=h(i.replace("JSON_CALLBACK","angular.callbacks."+s),s,function(a,b){r(k,a,e[s].data,"",b),e[s]=p})}else{var v=b();v.open(g,i,!0),f(l,function(a,b){u(a)&&v.setRequestHeader(b,a)}),v.onload=function(){var a=v.statusText||"",b="response"in v?v.response:v.responseText,c=1223===v.status?204:v.status;0===c&&(c=b?200:"file"==xc(i).protocol?404:0),r(k,c,b,v.getAllResponseHeaders(),a)};var w=function(){r(k,-1,null,null,"")};if(v.onerror=w,v.onabort=w,n&&(v.withCredentials=!0),o)try{v.responseType=o}catch(x){if("json"!==o)throw x}v.send(j)}if(m>0)var y=d(q,m);else I(m)&&m.then(q)}}function Db(){var a="{{",b="}}";this.startSymbol=function(b){return b?(a=b,this):a},this.endSymbol=function(a){return a?(b=a,this):b},this.$get=["$parse","$exceptionHandler","$sce",function(c,d,e){function f(a){return"\\\\\\"+a}function g(c){return c.replace(m,a).replace(n,b)}function h(a){if(null==a)return"";switch(typeof a){case"string":break;case"number":a=""+a;break;default:a=V(a)}return a}function i(f,i,m,n){function o(a){try{return a=C(a),n&&!u(a)?a:h(a)}catch(b){d(Ne.interr(f,b))}}n=!!n;for(var p,q,r,s=0,v=[],w=[],x=f.length,y=[],z=[];x>s;){if(-1==(p=f.indexOf(a,s))||-1==(q=f.indexOf(b,p+j))){s!==x&&y.push(g(f.substring(s)));break}s!==p&&y.push(g(f.substring(s,p))),r=f.substring(p+j,q),v.push(r),w.push(c(r,o)),s=q+k,z.push(y.length),y.push("")}if(m&&y.length>1&&Ne.throwNoconcat(f),!i||v.length){var B=function(a){for(var b=0,c=v.length;c>b;b++){if(n&&t(a[b]))return;y[z[b]]=a[b]}return y.join("")},C=function(a){return m?e.getTrusted(m,a):e.valueOf(a)};return l(function(a){var b=0,c=v.length,e=new Array(c);try{for(;c>b;b++)e[b]=w[b](a);return B(e)}catch(g){d(Ne.interr(f,g))}},{exp:f,expressions:v,$$watchDelegate:function(a,b){var c;return a.$watchGroup(w,function(d,e){var f=B(d);A(b)&&b.call(this,f,d!==e?c:f,a),c=f})}})}}var j=a.length,k=b.length,m=new RegExp(a.replace(/./g,f),"g"),n=new RegExp(b.replace(/./g,f),"g");return i.startSymbol=function(){return a},i.endSymbol=function(){return b},i}]}function Eb(){this.$get=["$rootScope","$window","$q","$$q",function(a,b,c,d){function e(e,g,h,i){var j=arguments.length>4,k=j?S(arguments,4):[],l=b.setInterval,m=b.clearInterval,n=0,o=u(i)&&!i,p=(o?d:c).defer(),q=p.promise;return h=u(h)?h:0,q.then(null,null,j?function(){e.apply(null,k)}:e),q.$$intervalId=l(function(){p.notify(n++),h>0&&n>=h&&(p.resolve(n),m(q.$$intervalId),delete f[q.$$intervalId]),o||a.$apply()},g),f[q.$$intervalId]=p,q}var f={};return e.cancel=function(a){return a&&a.$$intervalId in f?(f[a.$$intervalId].reject("canceled"),b.clearInterval(a.$$intervalId),delete f[a.$$intervalId],!0):!1},e}]}function Fb(a){for(var b=a.split("/"),c=b.length;c--;)b[c]=ca(b[c]);return b.join("/")}function Gb(a,b){var c=xc(a);b.$$protocol=c.protocol,b.$$host=c.hostname,b.$$port=n(c.port)||Pe[c.protocol]||null}function Hb(a,b){var c="/"!==a.charAt(0);c&&(a="/"+a);var d=xc(a);b.$$path=decodeURIComponent(c&&"/"===d.pathname.charAt(0)?d.pathname.substring(1):d.pathname),b.$$search=aa(d.search),b.$$hash=decodeURIComponent(d.hash),b.$$path&&"/"!=b.$$path.charAt(0)&&(b.$$path="/"+b.$$path)}function Ib(a,b){return 0===b.indexOf(a)?b.substr(a.length):void 0}function Jb(a){var b=a.indexOf("#");return-1==b?a:a.substr(0,b)}function Kb(a){return a.replace(/(#.+)|#$/,"$1")}function Lb(a){return a.substr(0,Jb(a).lastIndexOf("/")+1)}function Mb(a){return a.substring(0,a.indexOf("/",a.indexOf("//")+2))}function Nb(a,b,d){this.$$html5=!0,d=d||"",Gb(a,this),this.$$parse=function(a){var c=Ib(b,a);if(!x(c))throw Qe("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',a,b);Hb(c,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var a=ba(this.$$search),c=this.$$hash?"#"+ca(this.$$hash):"";this.$$url=Fb(this.$$path)+(a?"?"+a:"")+c,this.$$absUrl=b+this.$$url.substr(1)},this.$$parseLinkUrl=function(e,f){if(f&&"#"===f[0])return this.hash(f.slice(1)),!0;var g,h,i;return(g=Ib(a,e))!==c?(h=g,i=(g=Ib(d,g))!==c?b+(Ib("/",g)||g):a+h):(g=Ib(b,e))!==c?i=b+g:b==e+"/"&&(i=b),i&&this.$$parse(i),!!i}}function Ob(a,b,c){Gb(a,this),this.$$parse=function(d){function e(a,b,c){var d,e=/^\/[A-Z]:(\/.*)/;return 0===b.indexOf(c)&&(b=b.replace(c,"")),e.exec(b)?a:(d=e.exec(a),d?d[1]:a)}var f,g=Ib(a,d)||Ib(b,d);t(g)||"#"!==g.charAt(0)?this.$$html5?f=g:(f="",t(g)&&(a=d,this.replace())):(f=Ib(c,g),t(f)&&(f=g)),Hb(f,this),this.$$path=e(this.$$path,f,a),this.$$compose()},this.$$compose=function(){var b=ba(this.$$search),d=this.$$hash?"#"+ca(this.$$hash):"";this.$$url=Fb(this.$$path)+(b?"?"+b:"")+d,this.$$absUrl=a+(this.$$url?c+this.$$url:"")},this.$$parseLinkUrl=function(b,c){return Jb(a)==Jb(b)?(this.$$parse(b),!0):!1}}function Pb(a,b,c){this.$$html5=!0,Ob.apply(this,arguments),this.$$parseLinkUrl=function(d,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var f,g;return a==Jb(d)?f=d:(g=Ib(b,d))?f=a+c+g:b===d+"/"&&(f=b),f&&this.$$parse(f),!!f},this.$$compose=function(){var b=ba(this.$$search),d=this.$$hash?"#"+ca(this.$$hash):"";this.$$url=Fb(this.$$path)+(b?"?"+b:"")+d,this.$$absUrl=a+c+this.$$url}}function Qb(a){return function(){return this[a]}}function Rb(a,b){return function(c){return t(c)?this[a]:(this[a]=b(c),this.$$compose(),this)}}function Sb(){var a="",b={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(b){return u(b)?(a=b,this):a},this.html5Mode=function(a){return H(a)?(b.enabled=a,this):v(a)?(H(a.enabled)&&(b.enabled=a.enabled),H(a.requireBase)&&(b.requireBase=a.requireBase),H(a.rewriteLinks)&&(b.rewriteLinks=a.rewriteLinks),this):b},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(c,d,e,f,g){function h(a,b,c){var e=j.url(),f=j.$$state;try{d.url(a,b,c),j.$$state=d.state()}catch(g){throw j.url(e),j.$$state=f,g}}function i(a,b){c.$broadcast("$locationChangeSuccess",j.absUrl(),a,j.$$state,b)}var j,k,l,m=d.baseHref(),n=d.url();if(b.enabled){if(!m&&b.requireBase)throw Qe("nobase","$location in HTML5 mode requires a <base> tag to be present!");l=Mb(n)+(m||"/"),k=e.history?Nb:Pb}else l=Jb(n),k=Ob;var o=Lb(l);j=new k(l,o,"#"+a),j.$$parseLinkUrl(n,n),j.$$state=d.state();var p=/^\s*(javascript|mailto):/i;f.on("click",function(a){if(b.rewriteLinks&&!a.ctrlKey&&!a.metaKey&&!a.shiftKey&&2!=a.which&&2!=a.button){for(var e=xd(a.target);"a"!==M(e[0]);)if(e[0]===f[0]||!(e=e.parent())[0])return;var h=e.prop("href"),i=e.attr("href")||e.attr("xlink:href");v(h)&&"[object SVGAnimatedString]"===h.toString()&&(h=xc(h.animVal).href),p.test(h)||!h||e.attr("target")||a.isDefaultPrevented()||j.$$parseLinkUrl(h,i)&&(a.preventDefault(),j.absUrl()!=d.url()&&(c.$apply(),g.angular["ff-684208-preventDefault"]=!0))}}),Kb(j.absUrl())!=Kb(n)&&d.url(j.absUrl(),!0);var q=!0;return d.onUrlChange(function(a,b){return t(Ib(o,a))?void(g.location.href=a):(c.$evalAsync(function(){var d,e=j.absUrl(),f=j.$$state;j.$$parse(a),j.$$state=b,d=c.$broadcast("$locationChangeStart",a,e,b,f).defaultPrevented,j.absUrl()===a&&(d?(j.$$parse(e),j.$$state=f,h(e,!1,f)):(q=!1,i(e,f)))}),void(c.$$phase||c.$digest()))}),c.$watch(function(){var a=Kb(d.url()),b=Kb(j.absUrl()),f=d.state(),g=j.$$replace,k=a!==b||j.$$html5&&e.history&&f!==j.$$state;(q||k)&&(q=!1,c.$evalAsync(function(){var b=j.absUrl(),d=c.$broadcast("$locationChangeStart",b,a,j.$$state,f).defaultPrevented;j.absUrl()===b&&(d?(j.$$parse(a),j.$$state=f):(k&&h(b,g,f===j.$$state?null:j.$$state),i(a,f)))})),j.$$replace=!1}),j}]}function Tb(){var a=!0,b=this;this.debugEnabled=function(b){return u(b)?(a=b,this):a},this.$get=["$window",function(c){function d(a){return a instanceof Error&&(a.stack?a=a.message&&-1===a.stack.indexOf(a.message)?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line)),a}function e(a){var b=c.console||{},e=b[a]||b.log||p,g=!1;try{g=!!e.apply}catch(h){}return g?function(){var a=[];return f(arguments,function(b){a.push(d(b))}),e.apply(b,a)}:function(a,b){e(a,null==b?"":b)}}return{log:e("log"),info:e("info"),warn:e("warn"),error:e("error"),debug:function(){var c=e("debug");return function(){a&&c.apply(b,arguments)}}()}}]}function Ub(a,b){if("__defineGetter__"===a||"__defineSetter__"===a||"__lookupGetter__"===a||"__lookupSetter__"===a||"__proto__"===a)throw Se("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",b);return a}function Vb(a,b){if(a){if(a.constructor===a)throw Se("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",b);if(a.window===a)throw Se("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",b);if(a.children&&(a.nodeName||a.prop&&a.attr&&a.find))throw Se("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",b);if(a===Object)throw Se("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",b)}return a}function Wb(a,b){if(a){if(a.constructor===a)throw Se("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",b);if(a===Te||a===Ue||a===Ve)throw Se("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",b)}}function Xb(a,b){return"undefined"!=typeof a?a:b}function Yb(a,b){return"undefined"==typeof a?b:"undefined"==typeof b?a:a+b}function Zb(a,b){var c=a(b);return!c.$stateful}function $b(a,b){var c,d;switch(a.type){case Ze.Program:c=!0,f(a.body,function(a){$b(a.expression,b),c=c&&a.expression.constant}),a.constant=c;break;case Ze.Literal:a.constant=!0,a.toWatch=[];break;case Ze.UnaryExpression:$b(a.argument,b),a.constant=a.argument.constant,a.toWatch=a.argument.toWatch;break;case Ze.BinaryExpression:$b(a.left,b),$b(a.right,b),a.constant=a.left.constant&&a.right.constant,a.toWatch=a.left.toWatch.concat(a.right.toWatch);break;case Ze.LogicalExpression:$b(a.left,b),$b(a.right,b),a.constant=a.left.constant&&a.right.constant,a.toWatch=a.constant?[]:[a];break;case Ze.ConditionalExpression:$b(a.test,b),$b(a.alternate,b),$b(a.consequent,b),a.constant=a.test.constant&&a.alternate.constant&&a.consequent.constant,a.toWatch=a.constant?[]:[a];break;case Ze.Identifier:a.constant=!1,a.toWatch=[a];break;case Ze.MemberExpression:$b(a.object,b),a.computed&&$b(a.property,b),a.constant=a.object.constant&&(!a.computed||a.property.constant),a.toWatch=[a];break;case Ze.CallExpression:c=a.filter?Zb(b,a.callee.name):!1,d=[],f(a.arguments,function(a){$b(a,b),c=c&&a.constant,a.constant||d.push.apply(d,a.toWatch)}),a.constant=c,a.toWatch=a.filter&&Zb(b,a.callee.name)?d:[a];break;case Ze.AssignmentExpression:$b(a.left,b),$b(a.right,b),a.constant=a.left.constant&&a.right.constant,a.toWatch=[a];break;case Ze.ArrayExpression:c=!0,d=[],f(a.elements,function(a){$b(a,b),c=c&&a.constant,a.constant||d.push.apply(d,a.toWatch)}),a.constant=c,a.toWatch=d;break;case Ze.ObjectExpression:c=!0,d=[],f(a.properties,function(a){$b(a.value,b),c=c&&a.value.constant,a.value.constant||d.push.apply(d,a.value.toWatch)}),a.constant=c,a.toWatch=d;break;case Ze.ThisExpression:a.constant=!1,a.toWatch=[]}}function _b(a){if(1==a.length){var b=a[0].expression,d=b.toWatch;return 1!==d.length?d:d[0]!==b?d:c}}function ac(a){return a.type===Ze.Identifier||a.type===Ze.MemberExpression}function bc(a){return 1===a.body.length&&ac(a.body[0].expression)?{type:Ze.AssignmentExpression,left:a.body[0].expression,right:{type:Ze.NGValueParameter},operator:"="}:void 0}function cc(a){return 0===a.body.length||1===a.body.length&&(a.body[0].expression.type===Ze.Literal||a.body[0].expression.type===Ze.ArrayExpression||a.body[0].expression.type===Ze.ObjectExpression)}function dc(a){return a.constant}function ec(a,b){this.astBuilder=a,this.$filter=b}function fc(a,b){this.astBuilder=a,this.$filter=b}function gc(a){return"constructor"==a}function hc(a){return A(a.valueOf)?a.valueOf():_e.call(a)}function ic(){var a=qa(),b=qa();this.$get=["$filter",function(d){function e(a,b){return null==a||null==b?a===b:"object"==typeof a&&(a=hc(a),"object"==typeof a)?!1:a===b||a!==a&&b!==b}function g(a,b,d,f,g){var h,i=f.inputs;if(1===i.length){var j=e;return i=i[0],a.$watch(function(a){var b=i(a);return e(b,j)||(h=f(a,c,c,[b]),j=b&&hc(b)),h},b,d,g)}for(var k=[],l=[],m=0,n=i.length;n>m;m++)k[m]=e,l[m]=null;return a.$watch(function(a){for(var b=!1,d=0,g=i.length;g>d;d++){var j=i[d](a);(b||(b=!e(j,k[d])))&&(l[d]=j,k[d]=j&&hc(j))}return b&&(h=f(a,c,c,l)),h},b,d,g)}function h(a,b,c,d){var e,f;return e=a.$watch(function(a){return d(a)},function(a,c,d){f=a,A(b)&&b.apply(this,arguments),u(a)&&d.$$postDigest(function(){u(f)&&e()})},c)}function i(a,b,c,d){function e(a){var b=!0;return f(a,function(a){u(a)||(b=!1)}),b}var g,h;return g=a.$watch(function(a){return d(a)},function(a,c,d){h=a,A(b)&&b.call(this,a,c,d),e(a)&&d.$$postDigest(function(){e(h)&&g()})},c)}function j(a,b,c,d){var e;return e=a.$watch(function(a){return d(a)},function(a,c,d){A(b)&&b.apply(this,arguments),e()},c)}function k(a,b){if(!b)return a;var c=a.$$watchDelegate,d=c!==i&&c!==h,e=d?function(c,d,e,f){var g=a(c,d,e,f);return b(g,c,d)}:function(c,d,e,f){var g=a(c,d,e,f),h=b(g,c,d);return u(g)?h:g};return a.$$watchDelegate&&a.$$watchDelegate!==g?e.$$watchDelegate=a.$$watchDelegate:b.$stateful||(e.$$watchDelegate=g,e.inputs=a.inputs?a.inputs:[a]),e}var l=Nd().noUnsafeEval,m={csp:l,expensiveChecks:!1},n={csp:l,expensiveChecks:!0};return function(c,e,f){var l,o,q;switch(typeof c){case"string":c=c.trim(),q=c;var r=f?b:a;if(l=r[q],!l){":"===c.charAt(0)&&":"===c.charAt(1)&&(o=!0,c=c.substring(2));var s=f?n:m,t=new Ye(s),u=new $e(t,d,s);l=u.parse(c),l.constant?l.$$watchDelegate=j:o?l.$$watchDelegate=l.literal?i:h:l.inputs&&(l.$$watchDelegate=g),r[q]=l}return k(l,e);case"function":return k(c,e);default:return p}}}]}function jc(){this.$get=["$rootScope","$exceptionHandler",function(a,b){return lc(function(b){a.$evalAsync(b)},b)}]}function kc(){this.$get=["$browser","$exceptionHandler",function(a,b){return lc(function(b){a.defer(b)},b)}]}function lc(a,b){function e(a,b,c){function d(b){return function(c){e||(e=!0,b.call(a,c))}}var e=!1;return[d(b),d(c)]}function g(){this.$$state={status:0}}function h(a,b){return function(c){b.call(a,c)}}function i(a){var d,e,f;f=a.pending,a.processScheduled=!1,a.pending=c;for(var g=0,h=f.length;h>g;++g){e=f[g][0],d=f[g][a.status];try{A(d)?e.resolve(d(a.value)):1===a.status?e.resolve(a.value):e.reject(a.value)}catch(i){e.reject(i),b(i)}}}function j(b){!b.processScheduled&&b.pending&&(b.processScheduled=!0,a(function(){i(b)}))}function k(){this.promise=new g,this.resolve=h(this,this.resolve),this.reject=h(this,this.reject),this.notify=h(this,this.notify)}function m(a){var b=new k,c=0,d=Jd(a)?[]:{};return f(a,function(a,e){c++,s(a).then(function(a){d.hasOwnProperty(e)||(d[e]=a,--c||b.resolve(d))},function(a){d.hasOwnProperty(e)||b.reject(a)})}),0===c&&b.resolve(d),b.promise}var n=d("$q",TypeError),o=function(){return new k};l(g.prototype,{then:function(a,b,c){if(t(a)&&t(b)&&t(c))return this;var d=new k;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([d,a,b,c]),this.$$state.status>0&&j(this.$$state),d.promise},"catch":function(a){return this.then(null,a)},"finally":function(a,b){return this.then(function(b){return r(b,!0,a)},function(b){return r(b,!1,a)},b)}}),l(k.prototype,{resolve:function(a){this.promise.$$state.status||(a===this.promise?this.$$reject(n("qcycle","Expected promise to be resolved with value other than itself '{0}'",a)):this.$$resolve(a))},$$resolve:function(a){var c,d;d=e(this,this.$$resolve,this.$$reject);try{(v(a)||A(a))&&(c=a&&a.then),A(c)?(this.promise.$$state.status=-1,c.call(a,d[0],d[1],this.notify)):(this.promise.$$state.value=a,this.promise.$$state.status=1,j(this.promise.$$state))}catch(f){d[1](f),b(f)}},reject:function(a){this.promise.$$state.status||this.$$reject(a)},$$reject:function(a){this.promise.$$state.value=a,this.promise.$$state.status=2,j(this.promise.$$state)},notify:function(c){var d=this.promise.$$state.pending;this.promise.$$state.status<=0&&d&&d.length&&a(function(){for(var a,e,f=0,g=d.length;g>f;f++){e=d[f][0],a=d[f][3];try{e.notify(A(a)?a(c):c)}catch(h){b(h)}}})}});var p=function(a){var b=new k;return b.reject(a),b.promise},q=function(a,b){var c=new k;return b?c.resolve(a):c.reject(a),c.promise},r=function(a,b,c){var d=null;try{A(c)&&(d=c())}catch(e){return q(e,!1)}return I(d)?d.then(function(){return q(a,b)},function(a){return q(a,!1)}):q(a,b)},s=function(a,b,c,d){var e=new k;return e.resolve(a),e.promise.then(b,c,d)},u=s,w=function x(a){function b(a){d.resolve(a)}function c(a){d.reject(a)}if(!A(a))throw n("norslvr","Expected resolverFn, got '{0}'",a);if(!(this instanceof x))return new x(a);var d=new k;return a(b,c),d.promise};return w.defer=o,w.reject=p,w.when=s,w.resolve=u,w.all=m,w}function mc(){this.$get=["$window","$timeout",function(a,b){function c(){for(var a=0;a<k.length;a++){var b=k[a];b&&(k[a]=null,b())}j=k.length=0}function d(a){var b=k.length;return j++,k.push(a),0===b&&(i=h(c)),function(){b>=0&&(k[b]=null,b=null,0===--j&&i&&(i(),i=null,k.length=0))}}var e=a.requestAnimationFrame||a.webkitRequestAnimationFrame,f=a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.webkitCancelRequestAnimationFrame,g=!!e,h=g?function(a){var b=e(a);return function(){f(b)}}:function(a){var c=b(a,16.66,!1);return function(){b.cancel(c)}};d.supported=g;var i,j=0,k=[];return d}]}function nc(){function a(a){function b(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=i(),this.$$ChildScope=null}return b.prototype=a,b}var b=10,c=d("$rootScope"),g=null,h=null;this.digestTtl=function(a){return arguments.length&&(b=a),b},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(d,j,k,l){function m(a){a.currentScope.$$destroyed=!0}function n(){this.$id=i(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function o(a){if(y.$$phase)throw c("inprog","{0} already in progress",y.$$phase);y.$$phase=a}function q(){y.$$phase=null}function r(a,b){do a.$$watchersCount+=b;while(a=a.$parent)}function s(a,b,c){do a.$$listenerCount[c]-=b,0===a.$$listenerCount[c]&&delete a.$$listenerCount[c];while(a=a.$parent)}function u(){}function w(){for(;C.length;)try{C.shift()()}catch(a){j(a)}h=null}function x(){null===h&&(h=l.defer(function(){y.$apply(w)}))}n.prototype={constructor:n,$new:function(b,c){var d;return c=c||this,b?(d=new n,d.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=a(this)),d=new this.$$ChildScope),d.$parent=c,d.$$prevSibling=c.$$childTail,c.$$childHead?(c.$$childTail.$$nextSibling=d,c.$$childTail=d):c.$$childHead=c.$$childTail=d,(b||c!=this)&&d.$on("$destroy",m),d},$watch:function(a,b,c,d){var e=k(a);if(e.$$watchDelegate)return e.$$watchDelegate(this,b,c,e,a);var f=this,h=f.$$watchers,i={fn:b,last:u,get:e,exp:d||a,eq:!!c};return g=null,A(b)||(i.fn=p),h||(h=f.$$watchers=[]),h.unshift(i),r(this,1),function(){N(h,i)>=0&&r(f,-1),g=null}},$watchGroup:function(a,b){function c(){i=!1,j?(j=!1,b(e,e,h)):b(e,d,h)}var d=new Array(a.length),e=new Array(a.length),g=[],h=this,i=!1,j=!0;if(!a.length){var k=!0;return h.$evalAsync(function(){k&&b(e,e,h)}),function(){k=!1}}return 1===a.length?this.$watch(a[0],function(a,c,f){e[0]=a,d[0]=c,b(e,a===c?e:d,f)}):(f(a,function(a,b){var f=h.$watch(a,function(a,f){e[b]=a,d[b]=f,i||(i=!0,h.$evalAsync(c))});g.push(f)}),function(){for(;g.length;)g.shift()()})},$watchCollection:function(a,b){function c(a){f=a;var b,c,d,h,i;if(!t(f)){if(v(f))if(e(f)){g!==n&&(g=n,q=g.length=0,l++),b=f.length,q!==b&&(l++,g.length=q=b);for(var j=0;b>j;j++)i=g[j],h=f[j],d=i!==i&&h!==h,d||i===h||(l++,g[j]=h)}else{g!==o&&(g=o={},q=0,l++),b=0;for(c in f)f.hasOwnProperty(c)&&(b++,h=f[c],i=g[c],c in g?(d=i!==i&&h!==h,d||i===h||(l++,g[c]=h)):(q++,g[c]=h,l++));if(q>b){l++;for(c in g)f.hasOwnProperty(c)||(q--,delete g[c])}}else g!==f&&(g=f,l++);return l}}function d(){if(p?(p=!1,b(f,f,i)):b(f,h,i),j)if(v(f))if(e(f)){h=new Array(f.length);for(var a=0;a<f.length;a++)h[a]=f[a]}else{h={};for(var c in f)sd.call(f,c)&&(h[c]=f[c])}else h=f}c.$stateful=!0;var f,g,h,i=this,j=b.length>1,l=0,m=k(a,c),n=[],o={},p=!0,q=0;return this.$watch(m,d)},$digest:function(){var a,d,e,f,i,k,m,n,p,r,s=b,t=this,v=[];o("$digest"),l.$$checkUrlChange(),this===y&&null!==h&&(l.defer.cancel(h),w()),g=null;do{for(k=!1,n=t;z.length;){try{r=z.shift(),r.scope.$eval(r.expression,r.locals)}catch(x){j(x)}g=null}a:do{if(f=n.$$watchers)for(i=f.length;i--;)try{if(a=f[i])if((d=a.get(n))===(e=a.last)||(a.eq?Q(d,e):"number"==typeof d&&"number"==typeof e&&isNaN(d)&&isNaN(e))){if(a===g){k=!1;break a}}else k=!0,g=a,a.last=a.eq?O(d,null):d,a.fn(d,e===u?d:e,n),5>s&&(p=4-s,v[p]||(v[p]=[]),v[p].push({msg:A(a.exp)?"fn: "+(a.exp.name||a.exp.toString()):a.exp,newVal:d,oldVal:e}))}catch(x){j(x)}if(!(m=n.$$watchersCount&&n.$$childHead||n!==t&&n.$$nextSibling))for(;n!==t&&!(m=n.$$nextSibling);)n=n.$parent}while(n=m);if((k||z.length)&&!s--)throw q(),c("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",b,v)}while(k||z.length);for(q();B.length;)try{B.shift()()}catch(x){j(x)}},$destroy:function(){if(!this.$$destroyed){var a=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===y&&l.$$applicationDestroyed(),r(this,-this.$$watchersCount);for(var b in this.$$listenerCount)s(this,this.$$listenerCount[b],b);a&&a.$$childHead==this&&(a.$$childHead=this.$$nextSibling),a&&a.$$childTail==this&&(a.$$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=p,this.$on=this.$watch=this.$watchGroup=function(){return p},this.$$listeners={},this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null}},$eval:function(a,b){return k(a)(this,b)},$evalAsync:function(a,b){y.$$phase||z.length||l.defer(function(){z.length&&y.$digest()}),z.push({scope:this,expression:a,locals:b})},$$postDigest:function(a){B.push(a)},$apply:function(a){try{o("$apply");try{return this.$eval(a)}finally{q()}}catch(b){j(b)}finally{try{y.$digest()}catch(b){throw j(b),b}}},$applyAsync:function(a){function b(){c.$eval(a)}var c=this;a&&C.push(b),x()},$on:function(a,b){var c=this.$$listeners[a];c||(this.$$listeners[a]=c=[]),c.push(b);var d=this;do d.$$listenerCount[a]||(d.$$listenerCount[a]=0),d.$$listenerCount[a]++;while(d=d.$parent);var e=this;return function(){var d=c.indexOf(b);-1!==d&&(c[d]=null,s(e,1,a))}},$emit:function(a,b){var c,d,e,f=[],g=this,h=!1,i={name:a,targetScope:g,stopPropagation:function(){h=!0},preventDefault:function(){i.defaultPrevented=!0},defaultPrevented:!1},k=R([i],arguments,1);do{for(c=g.$$listeners[a]||f,i.currentScope=g,d=0,e=c.length;e>d;d++)if(c[d])try{c[d].apply(null,k)}catch(l){j(l)}else c.splice(d,1),d--,e--;if(h)return i.currentScope=null,i;g=g.$parent}while(g);return i.currentScope=null,i},$broadcast:function(a,b){var c=this,d=c,e=c,f={name:a,targetScope:c,preventDefault:function(){f.defaultPrevented=!0},defaultPrevented:!1};if(!c.$$listenerCount[a])return f;for(var g,h,i,k=R([f],arguments,1);d=e;){for(f.currentScope=d,g=d.$$listeners[a]||[],h=0,i=g.length;i>h;h++)if(g[h])try{g[h].apply(null,k)}catch(l){j(l)}else g.splice(h,1),h--,i--;if(!(e=d.$$listenerCount[a]&&d.$$childHead||d!==c&&d.$$nextSibling))for(;d!==c&&!(e=d.$$nextSibling);)d=d.$parent}return f.currentScope=null,f}};var y=new n,z=y.$$asyncQueue=[],B=y.$$postDigestQueue=[],C=y.$$applyAsyncQueue=[];return y}]}function oc(){var a=/^\s*(https?|ftp|mailto|tel|file):/,b=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(b){return u(b)?(a=b,this):a},this.imgSrcSanitizationWhitelist=function(a){return u(a)?(b=a,this):b},this.$get=function(){return function(c,d){var e,f=d?b:a;return e=xc(c).href,""===e||e.match(f)?c:"unsafe:"+e}}}function pc(a){if("self"===a)return a;if(x(a)){if(a.indexOf("***")>-1)throw af("iwcard","Illegal sequence *** in string matcher.  String: {0}",a);return a=Md(a).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+a+"$")}if(B(a))return new RegExp("^"+a.source+"$");throw af("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function qc(a){var b=[];return u(a)&&f(a,function(a){b.push(pc(a))}),b}function rc(){this.SCE_CONTEXTS=bf;var a=["self"],b=[];this.resourceUrlWhitelist=function(b){return arguments.length&&(a=qc(b)),a},this.resourceUrlBlacklist=function(a){return arguments.length&&(b=qc(a)),b},this.$get=["$injector",function(d){function e(a,b){return"self"===a?yc(b):!!a.exec(b.href)}function f(c){var d,f,g=xc(c.toString()),h=!1;for(d=0,f=a.length;f>d;d++)if(e(a[d],g)){h=!0;break}if(h)for(d=0,f=b.length;f>d;d++)if(e(b[d],g)){h=!1;break}return h}function g(a){var b=function(a){this.$$unwrapTrustedValue=function(){return a}};return a&&(b.prototype=new a),b.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},b.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},b}function h(a,b){var d=m.hasOwnProperty(a)?m[a]:null;if(!d)throw af("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",a,b);if(null===b||b===c||""===b)return b;if("string"!=typeof b)throw af("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",a);return new d(b)}function i(a){return a instanceof l?a.$$unwrapTrustedValue():a}function j(a,b){if(null===b||b===c||""===b)return b;var d=m.hasOwnProperty(a)?m[a]:null;if(d&&b instanceof d)return b.$$unwrapTrustedValue();if(a===bf.RESOURCE_URL){if(f(b))return b;throw af("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",b.toString())}if(a===bf.HTML)return k(b);throw af("unsafe","Attempting to use an unsafe value in a safe context.")}var k=function(a){throw af("unsafe","Attempting to use an unsafe value in a safe context.")};d.has("$sanitize")&&(k=d.get("$sanitize"));var l=g(),m={};return m[bf.HTML]=g(l),m[bf.CSS]=g(l),m[bf.URL]=g(l),m[bf.JS]=g(l),m[bf.RESOURCE_URL]=g(m[bf.URL]),{trustAs:h,getTrusted:j,valueOf:i}}]}function sc(){var a=!0;this.enabled=function(b){return arguments.length&&(a=!!b),a},this.$get=["$parse","$sceDelegate",function(b,c){if(a&&8>wd)throw af("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 d=P(bf);d.isEnabled=function(){return a},d.trustAs=c.trustAs,d.getTrusted=c.getTrusted,d.valueOf=c.valueOf,a||(d.trustAs=d.getTrusted=function(a,b){return b},d.valueOf=q),d.parseAs=function(a,c){var e=b(c);return e.literal&&e.constant?e:b(c,function(b){return d.getTrusted(a,b)})};var e=d.parseAs,g=d.getTrusted,h=d.trustAs;return f(bf,function(a,b){var c=rd(b);d[wa("parse_as_"+c)]=function(b){return e(a,b)},d[wa("get_trusted_"+c)]=function(b){return g(a,b)},d[wa("trust_as_"+c)]=function(b){return h(a,b)}}),d}]}function tc(){this.$get=["$window","$document",function(a,b){var c,d,e={},f=n((/android (\d+)/.exec(rd((a.navigator||{}).userAgent))||[])[1]),g=/Boxee/i.test((a.navigator||{}).userAgent),h=b[0]||{},i=/^(Moz|webkit|ms)(?=[A-Z])/,j=h.body&&h.body.style,k=!1,l=!1;if(j){for(var m in j)if(d=i.exec(m)){c=d[0],c=c.substr(0,1).toUpperCase()+c.substr(1);break}c||(c="WebkitOpacity"in j&&"webkit"),k=!!("transition"in j||c+"Transition"in j),l=!!("animation"in j||c+"Animation"in j),!f||k&&l||(k=x(j.webkitTransition),l=x(j.webkitAnimation))}return{history:!(!a.history||!a.history.pushState||4>f||g),hasEvent:function(a){if("input"===a&&11>=wd)return!1;if(t(e[a])){var b=h.createElement("div");e[a]="on"+a in b}return e[a]},csp:Nd(),vendorPrefix:c,transitions:k,animations:l,android:f}}]}function uc(){this.$get=["$templateCache","$http","$q","$sce",function(a,b,c,d){function e(f,g){function h(a){if(!g)throw Be("tpload","Failed to load template: {0} (HTTP status: {1} {2})",f,a.status,a.statusText);return c.reject(a)}e.totalPendingRequests++,x(f)&&a.get(f)||(f=d.getTrustedResourceUrl(f));var i=b.defaults&&b.defaults.transformResponse;Jd(i)?i=i.filter(function(a){return a!==tb}):i===tb&&(i=null);var j={cache:a,transformResponse:i};return b.get(f,j)["finally"](function(){
e.totalPendingRequests--}).then(function(b){return a.put(f,b.data),b.data},h)}return e.totalPendingRequests=0,e}]}function vc(){this.$get=["$rootScope","$browser","$location",function(a,b,c){var d={};return d.findBindings=function(a,b,c){var d=a.getElementsByClassName("ng-binding"),e=[];return f(d,function(a){var d=Gd.element(a).data("$binding");d&&f(d,function(d){if(c){var f=new RegExp("(^|\\s)"+Md(b)+"(\\s|\\||$)");f.test(d)&&e.push(a)}else-1!=d.indexOf(b)&&e.push(a)})}),e},d.findModels=function(a,b,c){for(var d=["ng-","data-ng-","ng\\:"],e=0;e<d.length;++e){var f=c?"=":"*=",g="["+d[e]+"model"+f+'"'+b+'"]',h=a.querySelectorAll(g);if(h.length)return h}},d.getLocation=function(){return c.url()},d.setLocation=function(b){b!==c.url()&&(c.url(b),a.$digest())},d.whenStable=function(a){b.notifyWhenNoOutstandingRequests(a)},d}]}function wc(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(a,b,c,d,e){function f(f,h,i){A(f)||(i=h,h=f,f=p);var j,k=S(arguments,3),l=u(i)&&!i,m=(l?d:c).defer(),n=m.promise;return j=b.defer(function(){try{m.resolve(f.apply(null,k))}catch(b){m.reject(b),e(b)}finally{delete g[n.$$timeoutId]}l||a.$apply()},h),n.$$timeoutId=j,g[j]=m,n}var g={};return f.cancel=function(a){return a&&a.$$timeoutId in g?(g[a.$$timeoutId].reject("canceled"),delete g[a.$$timeoutId],b.defer.cancel(a.$$timeoutId)):!1},f}]}function xc(a){var b=a;return wd&&(cf.setAttribute("href",b),b=cf.href),cf.setAttribute("href",b),{href:cf.href,protocol:cf.protocol?cf.protocol.replace(/:$/,""):"",host:cf.host,search:cf.search?cf.search.replace(/^\?/,""):"",hash:cf.hash?cf.hash.replace(/^#/,""):"",hostname:cf.hostname,port:cf.port,pathname:"/"===cf.pathname.charAt(0)?cf.pathname:"/"+cf.pathname}}function yc(a){var b=x(a)?xc(a):a;return b.protocol===df.protocol&&b.host===df.host}function zc(){this.$get=r(a)}function Ac(a){function b(a){try{return decodeURIComponent(a)}catch(b){return a}}var d=a[0]||{},e={},f="";return function(){var a,g,h,i,j,k=d.cookie||"";if(k!==f)for(f=k,a=f.split("; "),e={},h=0;h<a.length;h++)g=a[h],i=g.indexOf("="),i>0&&(j=b(g.substring(0,i)),e[j]===c&&(e[j]=b(g.substring(i+1))));return e}}function Bc(){this.$get=Ac}function Cc(a){function b(d,e){if(v(d)){var g={};return f(d,function(a,c){g[c]=b(c,a)}),g}return a.factory(d+c,e)}var c="Filter";this.register=b,this.$get=["$injector",function(a){return function(b){return a.get(b+c)}}],b("currency",Hc),b("date",Uc),b("filter",Dc),b("json",Vc),b("limitTo",Wc),b("lowercase",jf),b("number",Ic),b("orderBy",Xc),b("uppercase",kf)}function Dc(){return function(a,b,c){if(!e(a)){if(null==a)return a;throw d("filter")("notarray","Expected array but received: {0}",a)}var f,g,h=Gc(b);switch(h){case"function":f=b;break;case"boolean":case"null":case"number":case"string":g=!0;case"object":f=Ec(b,c,g);break;default:return a}return Array.prototype.filter.call(a,f)}}function Ec(a,b,c){var d,e=v(a)&&"$"in a;return b===!0?b=Q:A(b)||(b=function(a,b){return t(a)?!1:null===a||null===b?a===b:v(b)||v(a)&&!s(a)?!1:(a=rd(""+a),b=rd(""+b),-1!==a.indexOf(b))}),d=function(d){return e&&!v(d)?Fc(d,a.$,b,!1):Fc(d,a,b,c)}}function Fc(a,b,c,d,e){var f=Gc(a),g=Gc(b);if("string"===g&&"!"===b.charAt(0))return!Fc(a,b.substring(1),c,d);if(Jd(a))return a.some(function(a){return Fc(a,b,c,d)});switch(f){case"object":var h;if(d){for(h in a)if("$"!==h.charAt(0)&&Fc(a[h],b,c,!0))return!0;return e?!1:Fc(a,b,c,!1)}if("object"===g){for(h in b){var i=b[h];if(!A(i)&&!t(i)){var j="$"===h,k=j?a:a[h];if(!Fc(k,i,c,j,j))return!1}}return!0}return c(a,b);case"function":return!1;default:return c(a,b)}}function Gc(a){return null===a?"null":typeof a}function Hc(a){var b=a.NUMBER_FORMATS;return function(a,c,d){return t(c)&&(c=b.CURRENCY_SYM),t(d)&&(d=b.PATTERNS[1].maxFrac),null==a?a:Jc(a,b.PATTERNS[1],b.GROUP_SEP,b.DECIMAL_SEP,d).replace(/\u00A4/g,c)}}function Ic(a){var b=a.NUMBER_FORMATS;return function(a,c){return null==a?a:Jc(a,b.PATTERNS[0],b.GROUP_SEP,b.DECIMAL_SEP,c)}}function Jc(a,b,c,d,e){if(v(a))return"";var f=0>a;a=Math.abs(a);var g=a===1/0;if(!g&&!isFinite(a))return"";var h=a+"",i="",j=!1,k=[];if(g&&(i="∞"),!g&&-1!==h.indexOf("e")){var l=h.match(/([\d\.]+)e(-?)(\d+)/);l&&"-"==l[2]&&l[3]>e+1?a=0:(i=h,j=!0)}if(g||j)e>0&&1>a&&(i=a.toFixed(e),a=parseFloat(i));else{var m=(h.split(ef)[1]||"").length;t(e)&&(e=Math.min(Math.max(b.minFrac,m),b.maxFrac)),a=+(Math.round(+(a.toString()+"e"+e)).toString()+"e"+-e);var n=(""+a).split(ef),o=n[0];n=n[1]||"";var p,q=0,r=b.lgSize,s=b.gSize;if(o.length>=r+s)for(q=o.length-r,p=0;q>p;p++)(q-p)%s===0&&0!==p&&(i+=c),i+=o.charAt(p);for(p=q;p<o.length;p++)(o.length-p)%r===0&&0!==p&&(i+=c),i+=o.charAt(p);for(;n.length<e;)n+="0";e&&"0"!==e&&(i+=d+n.substr(0,e))}return 0===a&&(f=!1),k.push(f?b.negPre:b.posPre,i,f?b.negSuf:b.posSuf),k.join("")}function Kc(a,b,c){var d="";for(0>a&&(d="-",a=-a),a=""+a;a.length<b;)a="0"+a;return c&&(a=a.substr(a.length-b)),d+a}function Lc(a,b,c,d){return c=c||0,function(e){var f=e["get"+a]();return(c>0||f>-c)&&(f+=c),0===f&&-12==c&&(f=12),Kc(f,b,d)}}function Mc(a,b){return function(c,d){var e=c["get"+a](),f=td(b?"SHORT"+a:a);return d[f][e]}}function Nc(a,b,c){var d=-1*c,e=d>=0?"+":"";return e+=Kc(Math[d>0?"floor":"ceil"](d/60),2)+Kc(Math.abs(d%60),2)}function Oc(a){var b=new Date(a,0,1).getDay();return new Date(a,0,(4>=b?5:12)-b)}function Pc(a){return new Date(a.getFullYear(),a.getMonth(),a.getDate()+(4-a.getDay()))}function Qc(a){return function(b){var c=Oc(b.getFullYear()),d=Pc(b),e=+d-+c,f=1+Math.round(e/6048e5);return Kc(f,a)}}function Rc(a,b){return a.getHours()<12?b.AMPMS[0]:b.AMPMS[1]}function Sc(a,b){return a.getFullYear()<=0?b.ERAS[0]:b.ERAS[1]}function Tc(a,b){return a.getFullYear()<=0?b.ERANAMES[0]:b.ERANAMES[1]}function Uc(a){function b(a){var b;if(b=a.match(c)){var d=new Date(0),e=0,f=0,g=b[8]?d.setUTCFullYear:d.setFullYear,h=b[8]?d.setUTCHours:d.setHours;b[9]&&(e=n(b[9]+b[10]),f=n(b[9]+b[11])),g.call(d,n(b[1]),n(b[2])-1,n(b[3]));var i=n(b[4]||0)-e,j=n(b[5]||0)-f,k=n(b[6]||0),l=Math.round(1e3*parseFloat("0."+(b[7]||0)));return h.call(d,i,j,k,l),d}return a}var c=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(c,d,e){var g,h,i="",j=[];if(d=d||"mediumDate",d=a.DATETIME_FORMATS[d]||d,x(c)&&(c=hf.test(c)?n(c):b(c)),y(c)&&(c=new Date(c)),!z(c)||!isFinite(c.getTime()))return c;for(;d;)h=gf.exec(d),h?(j=R(j,h,1),d=j.pop()):(j.push(d),d=null);var k=c.getTimezoneOffset();return e&&(k=X(e,c.getTimezoneOffset()),c=Z(c,e,!0)),f(j,function(b){g=ff[b],i+=g?g(c,a.DATETIME_FORMATS,k):b.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),i}}function Vc(){return function(a,b){return t(b)&&(b=2),V(a,b)}}function Wc(){return function(a,b,c){return b=Math.abs(Number(b))===1/0?Number(b):n(b),isNaN(b)?a:(y(a)&&(a=a.toString()),Jd(a)||x(a)?(c=!c||isNaN(c)?0:n(c),c=0>c&&c>=-a.length?a.length+c:c,b>=0?a.slice(c,c+b):0===c?a.slice(b,a.length):a.slice(Math.max(0,c+b),c)):a)}}function Xc(a){function b(b,c){return c=c?-1:1,b.map(function(b){var d=1,e=q;if(A(b))e=b;else if(x(b)&&("+"!=b.charAt(0)&&"-"!=b.charAt(0)||(d="-"==b.charAt(0)?-1:1,b=b.substring(1)),""!==b&&(e=a(b),e.constant))){var f=e();e=function(a){return a[f]}}return{get:e,descending:d*c}})}function c(a){switch(typeof a){case"number":case"boolean":case"string":return!0;default:return!1}}function d(a,b){return"function"==typeof a.valueOf&&(a=a.valueOf(),c(a))?a:s(a)&&(a=a.toString(),c(a))?a:b}function f(a,b){var c=typeof a;return null===a?(c="string",a="null"):"string"===c?a=a.toLowerCase():"object"===c&&(a=d(a,b)),{value:a,type:c}}function g(a,b){var c=0;return a.type===b.type?a.value!==b.value&&(c=a.value<b.value?-1:1):c=a.type<b.type?-1:1,c}return function(a,c,d){function h(a,b){return{value:a,predicateValues:j.map(function(c){return f(c.get(a),b)})}}function i(a,b){for(var c=0,d=0,e=j.length;e>d&&!(c=g(a.predicateValues[d],b.predicateValues[d])*j[d].descending);++d);return c}if(!e(a))return a;Jd(c)||(c=[c]),0===c.length&&(c=["+"]);var j=b(c,d);j.push({get:function(){return{}},descending:d?-1:1});var k=Array.prototype.map.call(a,h);return k.sort(i),a=k.map(function(a){return a.value})}}function Yc(a){return A(a)&&(a={link:a}),a.restrict=a.restrict||"AC",r(a)}function Zc(a,b){a.$name=b}function $c(a,b,d,e,g){var h=this,i=[],j=h.$$parentForm=a.parent().controller("form")||nf;h.$error={},h.$$success={},h.$pending=c,h.$name=g(b.name||b.ngForm||"")(d),h.$dirty=!1,h.$pristine=!0,h.$valid=!0,h.$invalid=!1,h.$submitted=!1,j.$addControl(h),h.$rollbackViewValue=function(){f(i,function(a){a.$rollbackViewValue()})},h.$commitViewValue=function(){f(i,function(a){a.$commitViewValue()})},h.$addControl=function(a){na(a.$name,"input"),i.push(a),a.$name&&(h[a.$name]=a)},h.$$renameControl=function(a,b){var c=a.$name;h[c]===a&&delete h[c],h[b]=a,a.$name=b},h.$removeControl=function(a){a.$name&&h[a.$name]===a&&delete h[a.$name],f(h.$pending,function(b,c){h.$setValidity(c,null,a)}),f(h.$error,function(b,c){h.$setValidity(c,null,a)}),f(h.$$success,function(b,c){h.$setValidity(c,null,a)}),N(i,a)},nd({ctrl:this,$element:a,set:function(a,b,c){var d=a[b];if(d){var e=d.indexOf(c);-1===e&&d.push(c)}else a[b]=[c]},unset:function(a,b,c){var d=a[b];d&&(N(d,c),0===d.length&&delete a[b])},parentForm:j,$animate:e}),h.$setDirty=function(){e.removeClass(a,Xf),e.addClass(a,Yf),h.$dirty=!0,h.$pristine=!1,j.$setDirty()},h.$setPristine=function(){e.setClass(a,Xf,Yf+" "+of),h.$dirty=!1,h.$pristine=!0,h.$submitted=!1,f(i,function(a){a.$setPristine()})},h.$setUntouched=function(){f(i,function(a){a.$setUntouched()})},h.$setSubmitted=function(){e.addClass(a,of),h.$submitted=!0,j.$setSubmitted()}}function _c(a){a.$formatters.push(function(b){return a.$isEmpty(b)?b:b.toString()})}function ad(a,b,c,d,e,f){bd(a,b,c,d,e,f),_c(d)}function bd(a,b,c,d,e,f){var g=rd(b[0].type);if(!e.android){var h=!1;b.on("compositionstart",function(a){h=!0}),b.on("compositionend",function(){h=!1,i()})}var i=function(a){if(j&&(f.defer.cancel(j),j=null),!h){var e=b.val(),i=a&&a.type;"password"===g||c.ngTrim&&"false"===c.ngTrim||(e=Ld(e)),(d.$viewValue!==e||""===e&&d.$$hasNativeValidators)&&d.$setViewValue(e,i)}};if(e.hasEvent("input"))b.on("input",i);else{var j,k=function(a,b,c){j||(j=f.defer(function(){j=null,b&&b.value===c||i(a)}))};b.on("keydown",function(a){var b=a.keyCode;91===b||b>15&&19>b||b>=37&&40>=b||k(a,this,this.value)}),e.hasEvent("paste")&&b.on("paste cut",k)}b.on("change",i),d.$render=function(){var a=d.$isEmpty(d.$viewValue)?"":d.$viewValue;b.val()!==a&&b.val(a)}}function cd(a,b){if(z(a))return a;if(x(a)){yf.lastIndex=0;var c=yf.exec(a);if(c){var d=+c[1],e=+c[2],f=0,g=0,h=0,i=0,j=Oc(d),k=7*(e-1);return b&&(f=b.getHours(),g=b.getMinutes(),h=b.getSeconds(),i=b.getMilliseconds()),new Date(d,0,j.getDate()+k,f,g,h,i)}}return NaN}function dd(a,b){return function(c,d){var e,g;if(z(c))return c;if(x(c)){if('"'==c.charAt(0)&&'"'==c.charAt(c.length-1)&&(c=c.substring(1,c.length-1)),sf.test(c))return new Date(c);if(a.lastIndex=0,e=a.exec(c))return e.shift(),g=d?{yyyy:d.getFullYear(),MM:d.getMonth()+1,dd:d.getDate(),HH:d.getHours(),mm:d.getMinutes(),ss:d.getSeconds(),sss:d.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},f(e,function(a,c){c<b.length&&(g[b[c]]=+a)}),new Date(g.yyyy,g.MM-1,g.dd,g.HH,g.mm,g.ss||0,1e3*g.sss||0)}return NaN}}function ed(a,b,d,e){return function(f,g,h,i,j,k,l){function m(a){return a&&!(a.getTime&&a.getTime()!==a.getTime())}function n(a){return u(a)?z(a)?a:d(a):c}fd(f,g,h,i),bd(f,g,h,i,j,k);var o,p=i&&i.$options&&i.$options.timezone;if(i.$$parserName=a,i.$parsers.push(function(a){if(i.$isEmpty(a))return null;if(b.test(a)){var e=d(a,o);return p&&(e=Z(e,p)),e}return c}),i.$formatters.push(function(a){if(a&&!z(a))throw ag("datefmt","Expected `{0}` to be a date",a);return m(a)?(o=a,o&&p&&(o=Z(o,p,!0)),l("date")(a,e,p)):(o=null,"")}),u(h.min)||h.ngMin){var q;i.$validators.min=function(a){return!m(a)||t(q)||d(a)>=q},h.$observe("min",function(a){q=n(a),i.$validate()})}if(u(h.max)||h.ngMax){var r;i.$validators.max=function(a){return!m(a)||t(r)||d(a)<=r},h.$observe("max",function(a){r=n(a),i.$validate()})}}}function fd(a,b,d,e){var f=b[0],g=e.$$hasNativeValidators=v(f.validity);g&&e.$parsers.push(function(a){var d=b.prop(qd)||{};return d.badInput&&!d.typeMismatch?c:a})}function gd(a,b,d,e,f,g){if(fd(a,b,d,e),bd(a,b,d,e,f,g),e.$$parserName="number",e.$parsers.push(function(a){return e.$isEmpty(a)?null:vf.test(a)?parseFloat(a):c}),e.$formatters.push(function(a){if(!e.$isEmpty(a)){if(!y(a))throw ag("numfmt","Expected `{0}` to be a number",a);a=a.toString()}return a}),u(d.min)||d.ngMin){var h;e.$validators.min=function(a){return e.$isEmpty(a)||t(h)||a>=h},d.$observe("min",function(a){u(a)&&!y(a)&&(a=parseFloat(a,10)),h=y(a)&&!isNaN(a)?a:c,e.$validate()})}if(u(d.max)||d.ngMax){var i;e.$validators.max=function(a){return e.$isEmpty(a)||t(i)||i>=a},d.$observe("max",function(a){u(a)&&!y(a)&&(a=parseFloat(a,10)),i=y(a)&&!isNaN(a)?a:c,e.$validate()})}}function hd(a,b,c,d,e,f){bd(a,b,c,d,e,f),_c(d),d.$$parserName="url",d.$validators.url=function(a,b){var c=a||b;return d.$isEmpty(c)||tf.test(c)}}function id(a,b,c,d,e,f){bd(a,b,c,d,e,f),_c(d),d.$$parserName="email",d.$validators.email=function(a,b){var c=a||b;return d.$isEmpty(c)||uf.test(c)}}function jd(a,b,c,d){t(c.name)&&b.attr("name",i());var e=function(a){b[0].checked&&d.$setViewValue(c.value,a&&a.type)};b.on("click",e),d.$render=function(){var a=c.value;b[0].checked=a==d.$viewValue},c.$observe("value",d.$render)}function kd(a,b,c,d,e){var f;if(u(d)){if(f=a(d),!f.constant)throw ag("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",c,d);return f(b)}return e}function ld(a,b,c,d,e,f,g,h){var i=kd(h,a,"ngTrueValue",c.ngTrueValue,!0),j=kd(h,a,"ngFalseValue",c.ngFalseValue,!1),k=function(a){d.$setViewValue(b[0].checked,a&&a.type)};b.on("click",k),d.$render=function(){b[0].checked=d.$viewValue},d.$isEmpty=function(a){return a===!1},d.$formatters.push(function(a){return Q(a,i)}),d.$parsers.push(function(a){return a?i:j})}function md(a,b){return a="ngClass"+a,["$animate",function(c){function d(a,b){var c=[];a:for(var d=0;d<a.length;d++){for(var e=a[d],f=0;f<b.length;f++)if(e==b[f])continue a;c.push(e)}return c}function e(a){var b=[];return Jd(a)?(f(a,function(a){b=b.concat(e(a))}),b):x(a)?a.split(" "):v(a)?(f(a,function(a,c){a&&(b=b.concat(c.split(" ")))}),b):a}return{restrict:"AC",link:function(g,h,i){function j(a){var b=l(a,1);i.$addClass(b)}function k(a){var b=l(a,-1);i.$removeClass(b)}function l(a,b){var c=h.data("$classCounts")||qa(),d=[];return f(a,function(a){(b>0||c[a])&&(c[a]=(c[a]||0)+b,c[a]===+(b>0)&&d.push(a))}),h.data("$classCounts",c),d.join(" ")}function m(a,b){var e=d(b,a),f=d(a,b);e=l(e,1),f=l(f,-1),e&&e.length&&c.addClass(h,e),f&&f.length&&c.removeClass(h,f)}function n(a){if(b===!0||g.$index%2===b){var c=e(a||[]);if(o){if(!Q(a,o)){var d=e(o);m(d,c)}}else j(c)}o=P(a)}var o;g.$watch(i[a],n,!0),i.$observe("class",function(b){n(g.$eval(i[a]))}),"ngClass"!==a&&g.$watch("$index",function(c,d){var f=1&c;if(f!==(1&d)){var h=e(g.$eval(i[a]));f===b?j(h):k(h)}})}}}]}function nd(a){function b(a,b,i){b===c?d("$pending",a,i):e("$pending",a,i),H(b)?b?(l(h.$error,a,i),k(h.$$success,a,i)):(k(h.$error,a,i),l(h.$$success,a,i)):(l(h.$error,a,i),l(h.$$success,a,i)),h.$pending?(f(_f,!0),h.$valid=h.$invalid=c,g("",null)):(f(_f,!1),h.$valid=od(h.$error),h.$invalid=!h.$valid,g("",h.$valid));var j;j=h.$pending&&h.$pending[a]?c:h.$error[a]?!1:h.$$success[a]?!0:null,g(a,j),m.$setValidity(a,j,h)}function d(a,b,c){h[a]||(h[a]={}),k(h[a],b,c)}function e(a,b,d){h[a]&&l(h[a],b,d),od(h[a])&&(h[a]=c)}function f(a,b){b&&!j[a]?(n.addClass(i,a),j[a]=!0):!b&&j[a]&&(n.removeClass(i,a),j[a]=!1)}function g(a,b){a=a?"-"+ja(a,"-"):"",f(Vf+a,b===!0),f(Wf+a,b===!1)}var h=a.ctrl,i=a.$element,j={},k=a.set,l=a.unset,m=a.parentForm,n=a.$animate;j[Wf]=!(j[Vf]=i.hasClass(Vf)),h.$setValidity=b}function od(a){if(a)for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}var pd=/^\/(.+)\/([a-z]*)$/,qd="validity",rd=function(a){return x(a)?a.toLowerCase():a},sd=Object.prototype.hasOwnProperty,td=function(a){return x(a)?a.toUpperCase():a},ud=function(a){return x(a)?a.replace(/[A-Z]/g,function(a){return String.fromCharCode(32|a.charCodeAt(0))}):a},vd=function(a){return x(a)?a.replace(/[a-z]/g,function(a){return String.fromCharCode(-33&a.charCodeAt(0))}):a};"i"!=="I".toLowerCase()&&(rd=ud,td=vd);var wd,xd,yd,zd,Ad=[].slice,Bd=[].splice,Cd=[].push,Dd=Object.prototype.toString,Ed=Object.getPrototypeOf,Fd=d("ng"),Gd=a.angular||(a.angular={}),Hd=0;wd=b.documentMode,p.$inject=[],q.$inject=[];var Id,Jd=Array.isArray,Kd=/^\[object (Uint8(Clamped)?)|(Uint16)|(Uint32)|(Int8)|(Int16)|(Int32)|(Float(32)|(64))Array\]$/,Ld=function(a){return x(a)?a.trim():a},Md=function(a){return a.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Nd=function(){function a(){try{return new Function(""),!1}catch(a){return!0}}if(!u(Nd.rules)){var c=b.querySelector("[ng-csp]")||b.querySelector("[data-ng-csp]");if(c){var d=c.getAttribute("ng-csp")||c.getAttribute("data-ng-csp");Nd.rules={noUnsafeEval:!d||-1!==d.indexOf("no-unsafe-eval"),noInlineStyle:!d||-1!==d.indexOf("no-inline-style")}}else Nd.rules={noUnsafeEval:a(),noInlineStyle:!1}}return Nd.rules},Od=function(){if(u(Od.name_))return Od.name_;var a,c,d,e,f=Pd.length;for(c=0;f>c;++c)if(d=Pd[c],a=b.querySelector("["+d.replace(":","\\:")+"jq]")){e=a.getAttribute(d+"jq");break}return Od.name_=e},Pd=["ng-","data-ng-","ng:","x-ng-"],Qd=/[A-Z]/g,Rd=!1,Sd=1,Td=2,Ud=3,Vd=8,Wd=9,Xd=11,Yd={full:"1.4.4",major:1,minor:4,dot:4,codeName:"pylon-requirement"};Ca.expando="ng339";var Zd=Ca.cache={},$d=1,_d=function(a,b,c){a.addEventListener(b,c,!1)},ae=function(a,b,c){a.removeEventListener(b,c,!1)};Ca._data=function(a){return this.cache[a[this.expando]]||{}};var be=/([\:\-\_]+(.))/g,ce=/^moz([A-Z])/,de={mouseleave:"mouseout",mouseenter:"mouseover"},ee=d("jqLite"),fe=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ge=/<|&#?\w+;/,he=/<([\w:]+)/,ie=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,je={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,"",""]};je.optgroup=je.option,je.tbody=je.tfoot=je.colgroup=je.caption=je.thead,je.th=je.td;var ke=Ca.prototype={ready:function(c){function d(){e||(e=!0,c())}var e=!1;"complete"===b.readyState?setTimeout(d):(this.on("DOMContentLoaded",d),Ca(a).on("load",d))},toString:function(){var a=[];return f(this,function(b){a.push(""+b)}),"["+a.join(", ")+"]"},eq:function(a){return xd(a>=0?this[a]:this[this.length+a])},length:0,push:Cd,sort:[].sort,splice:[].splice},le={};f("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(a){le[rd(a)]=a});var me={};f("input,select,option,textarea,button,form,details".split(","),function(a){me[a]=!0});var ne={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};f({data:Ia,removeData:Ga,hasData:za},function(a,b){Ca[b]=a}),f({data:Ia,inheritedData:Oa,scope:function(a){return xd.data(a,"$scope")||Oa(a.parentNode||a,["$isolateScope","$scope"])},isolateScope:function(a){return xd.data(a,"$isolateScope")||xd.data(a,"$isolateScopeNoTemplate")},controller:Na,injector:function(a){return Oa(a,"$injector")},removeAttr:function(a,b){a.removeAttribute(b)},hasClass:Ja,css:function(a,b,c){return b=wa(b),u(c)?void(a.style[b]=c):a.style[b]},attr:function(a,b,d){var e=a.nodeType;if(e!==Ud&&e!==Td&&e!==Vd){var f=rd(b);if(le[f]){if(!u(d))return a[b]||(a.attributes.getNamedItem(b)||p).specified?f:c;d?(a[b]=!0,a.setAttribute(b,f)):(a[b]=!1,a.removeAttribute(f))}else if(u(d))a.setAttribute(b,d);else if(a.getAttribute){var g=a.getAttribute(b,2);return null===g?c:g}}},prop:function(a,b,c){return u(c)?void(a[b]=c):a[b]},text:function(){function a(a,b){if(t(b)){var c=a.nodeType;return c===Sd||c===Ud?a.textContent:""}a.textContent=b}return a.$dv="",a}(),val:function(a,b){if(t(b)){if(a.multiple&&"select"===M(a)){var c=[];return f(a.options,function(a){a.selected&&c.push(a.value||a.text)}),0===c.length?null:c}return a.value}a.value=b},html:function(a,b){return t(b)?a.innerHTML:(Ea(a,!0),void(a.innerHTML=b))},empty:Pa},function(a,b){Ca.prototype[b]=function(b,d){var e,f,g=this.length;if(a!==Pa&&(2==a.length&&a!==Ja&&a!==Na?b:d)===c){if(v(b)){for(e=0;g>e;e++)if(a===Ia)a(this[e],b);else for(f in b)a(this[e],f,b[f]);return this}for(var h=a.$dv,i=h===c?Math.min(g,1):g,j=0;i>j;j++){var k=a(this[j],b,d);h=h?h+k:k}return h}for(e=0;g>e;e++)a(this[e],b,d);return this}}),f({removeData:Ga,on:function Eg(a,b,c,d){if(u(d))throw ee("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(ya(a)){var e=Ha(a,!0),f=e.events,g=e.handle;g||(g=e.handle=Ua(a,f));for(var h=b.indexOf(" ")>=0?b.split(" "):[b],i=h.length;i--;){b=h[i];var j=f[b];j||(f[b]=[],"mouseenter"===b||"mouseleave"===b?Eg(a,de[b],function(a){var c=this,d=a.relatedTarget;d&&(d===c||c.contains(d))||g(a,b)}):"$destroy"!==b&&_d(a,b,g),j=f[b]),j.push(c)}}},off:Fa,one:function(a,b,c){a=xd(a),a.on(b,function d(){a.off(b,c),a.off(b,d)}),a.on(b,c)},replaceWith:function(a,b){var c,d=a.parentNode;Ea(a),f(new Ca(b),function(b){c?d.insertBefore(b,c.nextSibling):d.replaceChild(b,a),c=b})},children:function(a){var b=[];return f(a.childNodes,function(a){a.nodeType===Sd&&b.push(a)}),b},contents:function(a){return a.contentDocument||a.childNodes||[]},append:function(a,b){var c=a.nodeType;if(c===Sd||c===Xd){b=new Ca(b);for(var d=0,e=b.length;e>d;d++){var f=b[d];a.appendChild(f)}}},prepend:function(a,b){if(a.nodeType===Sd){var c=a.firstChild;f(new Ca(b),function(b){a.insertBefore(b,c)})}},wrap:function(a,b){b=xd(b).eq(0).clone()[0];var c=a.parentNode;c&&c.replaceChild(b,a),b.appendChild(a)},remove:Qa,detach:function(a){Qa(a,!0)},after:function(a,b){var c=a,d=a.parentNode;b=new Ca(b);for(var e=0,f=b.length;f>e;e++){var g=b[e];d.insertBefore(g,c.nextSibling),c=g}},addClass:La,removeClass:Ka,toggleClass:function(a,b,c){b&&f(b.split(" "),function(b){var d=c;t(d)&&(d=!Ja(a,b)),(d?La:Ka)(a,b)})},parent:function(a){var b=a.parentNode;return b&&b.nodeType!==Xd?b:null},next:function(a){return a.nextElementSibling},find:function(a,b){return a.getElementsByTagName?a.getElementsByTagName(b):[]},clone:Da,triggerHandler:function(a,b,c){var d,e,g,h=b.type||b,i=Ha(a),j=i&&i.events,k=j&&j[h];k&&(d={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:p,type:h,target:a},b.type&&(d=l(d,b)),e=P(k),g=c?[d].concat(c):[d],f(e,function(b){d.isImmediatePropagationStopped()||b.apply(a,g)}))}},function(a,b){Ca.prototype[b]=function(b,c,d){for(var e,f=0,g=this.length;g>f;f++)t(e)?(e=a(this[f],b,c,d),u(e)&&(e=xd(e))):Ma(e,a(this[f],b,c,d));return u(e)?e:this},Ca.prototype.bind=Ca.prototype.on,Ca.prototype.unbind=Ca.prototype.off}),Xa.prototype={put:function(a,b){this[Wa(a,this.nextUid)]=b},get:function(a){return this[Wa(a,this.nextUid)]},remove:function(a){var b=this[a=Wa(a,this.nextUid)];return delete this[a],b}};var oe=[function(){this.$get=[function(){return Xa}]}],pe=/^[^\(]*\(\s*([^\)]*)\)/m,qe=/,/,re=/^\s*(_?)(\S+?)\1\s*$/,se=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,te=d("$injector");$a.$$annotate=Za;var ue=d("$animate"),ve=1,we="ng-animate",xe=function(){this.$get=["$q","$$rAF",function(a,b){function c(){}return c.all=p,c.chain=p,c.prototype={end:p,cancel:p,resume:p,pause:p,complete:p,then:function(c,d){return a(function(a){b(function(){a()})}).then(c,d)}},c}]},ye=function(){var a=new Xa,b=[];this.$get=["$$AnimateRunner","$rootScope",function(c,d){function e(c,e,g){var h=a.get(c);h||(a.put(c,h={}),b.push(c));var i=function(a,b){var c=!1;return a&&(a=x(a)?a.split(" "):Jd(a)?a:[],f(a,function(a){a&&(c=!0,h[a]=b)})),c},j=i(e,!0),k=i(g,!1);!j&&!k||b.length>1||d.$$postDigest(function(){f(b,function(b){var c=a.get(b);if(c){var d=cb(b.attr("class")),e="",g="";f(c,function(a,b){var c=!!d[b];a!==c&&(a?e+=(e.length?" ":"")+b:g+=(g.length?" ":"")+b)}),f(b,function(a){e&&La(a,e),g&&Ka(a,g)}),a.remove(b)}}),b.length=0})}return{enabled:p,on:p,off:p,pin:p,push:function(a,b,d,f){return f&&f(),d=d||{},d.from&&a.css(d.from),d.to&&a.css(d.to),(d.addClass||d.removeClass)&&e(a,d.addClass,d.removeClass),new c}}}]},ze=["$provide",function(a){var b=this;this.$$registeredAnimations=Object.create(null),this.register=function(c,d){if(c&&"."!==c.charAt(0))throw ue("notcsel","Expecting class selector starting with '.' got '{0}'.",c);var e=c+"-animation";b.$$registeredAnimations[c.substr(1)]=e,a.factory(e,d)},this.classNameFilter=function(a){if(1===arguments.length&&(this.$$classNameFilter=a instanceof RegExp?a:null,this.$$classNameFilter)){var b=new RegExp("(\\s+|\\/)"+we+"(\\s+|\\/)");if(b.test(this.$$classNameFilter.toString()))throw ue("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',we)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(a){function b(a,b,c){if(c){var d=bb(c);!d||d.parentNode||d.previousElementSibling||(c=null)}c?c.after(a):b.prepend(a)}return{on:a.on,off:a.off,pin:a.pin,enabled:a.enabled,cancel:function(a){a.end&&a.end()},enter:function(c,d,e,f){return d=d&&xd(d),e=e&&xd(e),d=d||e.parent(),b(c,d,e),a.push(c,"enter",db(f))},move:function(c,d,e,f){return d=d&&xd(d),e=e&&xd(e),d=d||e.parent(),b(c,d,e),a.push(c,"move",db(f))},leave:function(b,c){return a.push(b,"leave",db(c),function(){b.remove()})},addClass:function(b,c,d){return d=db(d),d.addClass=ab(d.addclass,c),a.push(b,"addClass",d)},removeClass:function(b,c,d){return d=db(d),d.removeClass=ab(d.removeClass,c),a.push(b,"removeClass",d)},setClass:function(b,c,d,e){return e=db(e),e.addClass=ab(e.addClass,c),e.removeClass=ab(e.removeClass,d),a.push(b,"setClass",e)},animate:function(b,c,d,e,f){return f=db(f),f.from=f.from?l(f.from,c):c,f.to=f.to?l(f.to,d):d,e=e||"ng-inline-animate",f.tempClasses=ab(f.tempClasses,e),a.push(b,"animate",f)}}}]}],Ae=function(){this.$get=["$$rAF","$q",function(a,b){var c=function(){};return c.prototype={done:function(a){this.defer&&this.defer[a===!0?"reject":"resolve"]()},end:function(){this.done()},cancel:function(){this.done(!0)},getPromise:function(){return this.defer||(this.defer=b.defer()),this.defer.promise},then:function(a,b){return this.getPromise().then(a,b)},"catch":function(a){return this.getPromise()["catch"](a)},"finally":function(a){return this.getPromise()["finally"](a)}},function(b,d){function e(){return a(function(){f(),g||h.done(),g=!0}),h}function f(){d.addClass&&(b.addClass(d.addClass),d.addClass=null),d.removeClass&&(b.removeClass(d.removeClass),d.removeClass=null),d.to&&(b.css(d.to),d.to=null)}d.from&&(b.css(d.from),d.from=null);var g,h=new c;return{start:e,end:e}}}]},Be=d("$compile");ib.$inject=["$provide","$$sanitizeUriProvider"];var Ce=/^((?:x|data)[\:\-_])/i,De=d("$controller"),Ee=/^(\S+)(\s+as\s+(\w+))?$/,Fe=function(){this.$get=["$document",function(a){return function(b){return b?!b.nodeType&&b instanceof xd&&(b=b[0]):b=a[0].body,b.offsetWidth+1}}]},Ge="application/json",He={"Content-Type":Ge+";charset=utf-8"},Ie=/^\[|^\{(?!\{)/,Je={"[":/]$/,"{":/}$/},Ke=/^\)\]\}',?\n/,Le=d("$http"),Me=function(a){return function(){throw Le("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",a)}},Ne=Gd.$interpolateMinErr=d("$interpolate");Ne.throwNoconcat=function(a){throw Ne("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)},Ne.interr=function(a,b){return Ne("interr","Can't interpolate: {0}\n{1}",a,b.toString())};var Oe=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,Pe={http:80,https:443,ftp:21},Qe=d("$location"),Re={$$html5:!1,$$replace:!1,absUrl:Qb("$$absUrl"),url:function(a){if(t(a))return this.$$url;var b=Oe.exec(a);return(b[1]||""===a)&&this.path(decodeURIComponent(b[1])),(b[2]||b[1]||""===a)&&this.search(b[3]||""),this.hash(b[5]||""),this},protocol:Qb("$$protocol"),host:Qb("$$host"),port:Qb("$$port"),path:Rb("$$path",function(a){return a=null!==a?a.toString():"","/"==a.charAt(0)?a:"/"+a}),search:function(a,b){switch(arguments.length){case 0:return this.$$search;case 1:if(x(a)||y(a))a=a.toString(),this.$$search=aa(a);else{if(!v(a))throw Qe("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");a=O(a,{}),f(a,function(b,c){null==b&&delete a[c]}),this.$$search=a}break;default:t(b)||null===b?delete this.$$search[a]:this.$$search[a]=b}return this.$$compose(),this},hash:Rb("$$hash",function(a){return null!==a?a.toString():""}),replace:function(){return this.$$replace=!0,this}};f([Pb,Ob,Nb],function(a){a.prototype=Object.create(Re),a.prototype.state=function(b){if(!arguments.length)return this.$$state;if(a!==Nb||!this.$$html5)throw Qe("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=t(b)?null:b,this}});var Se=d("$parse"),Te=Function.prototype.call,Ue=Function.prototype.apply,Ve=Function.prototype.bind,We=qa();f("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(a){We[a]=!0});var Xe={n:"\n",f:"\f",r:"\r",t:"	",v:"\x0B","'":"'",'"':'"'},Ye=function(a){this.options=a};Ye.prototype={constructor:Ye,lex:function(a){for(this.text=a,this.index=0,this.tokens=[];this.index<this.text.length;){var b=this.text.charAt(this.index);if('"'===b||"'"===b)this.readString(b);else if(this.isNumber(b)||"."===b&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(b))this.readIdent();else if(this.is(b,"(){}[].,;:?"))this.tokens.push({index:this.index,text:b}),this.index++;else if(this.isWhitespace(b))this.index++;else{var c=b+this.peek(),d=c+this.peek(2),e=We[b],f=We[c],g=We[d];if(e||f||g){var h=g?d:f?c:b;this.tokens.push({index:this.index,text:h,operator:!0}),this.index+=h.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(a,b){return-1!==b.indexOf(a)},peek:function(a){var b=a||1;return this.index+b<this.text.length?this.text.charAt(this.index+b):!1},isNumber:function(a){return a>="0"&&"9">=a&&"string"==typeof a},isWhitespace:function(a){return" "===a||"\r"===a||"	"===a||"\n"===a||"\x0B"===a||" "===a},isIdent:function(a){return a>="a"&&"z">=a||a>="A"&&"Z">=a||"_"===a||"$"===a},isExpOperator:function(a){return"-"===a||"+"===a||this.isNumber(a)},throwError:function(a,b,c){c=c||this.index;var d=u(b)?"s "+b+"-"+this.index+" ["+this.text.substring(b,c)+"]":" "+c;throw Se("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",a,d,this.text)},readNumber:function(){for(var a="",b=this.index;this.index<this.text.length;){var c=rd(this.text.charAt(this.index));if("."==c||this.isNumber(c))a+=c;else{var d=this.peek();if("e"==c&&this.isExpOperator(d))a+=c;else if(this.isExpOperator(c)&&d&&this.isNumber(d)&&"e"==a.charAt(a.length-1))a+=c;else{if(!this.isExpOperator(c)||d&&this.isNumber(d)||"e"!=a.charAt(a.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:b,text:a,constant:!0,value:Number(a)})},readIdent:function(){for(var a=this.index;this.index<this.text.length;){var b=this.text.charAt(this.index);if(!this.isIdent(b)&&!this.isNumber(b))break;this.index++}this.tokens.push({index:a,text:this.text.slice(a,this.index),identifier:!0})},readString:function(a){var b=this.index;this.index++;for(var c="",d=a,e=!1;this.index<this.text.length;){var f=this.text.charAt(this.index);if(d+=f,e){if("u"===f){var g=this.text.substring(this.index+1,this.index+5);g.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+g+"]"),this.index+=4,c+=String.fromCharCode(parseInt(g,16));
}else{var h=Xe[f];c+=h||f}e=!1}else if("\\"===f)e=!0;else{if(f===a)return this.index++,void this.tokens.push({index:b,text:d,constant:!0,value:c});c+=f}this.index++}this.throwError("Unterminated quote",b)}};var Ze=function(a,b){this.lexer=a,this.options=b};Ze.Program="Program",Ze.ExpressionStatement="ExpressionStatement",Ze.AssignmentExpression="AssignmentExpression",Ze.ConditionalExpression="ConditionalExpression",Ze.LogicalExpression="LogicalExpression",Ze.BinaryExpression="BinaryExpression",Ze.UnaryExpression="UnaryExpression",Ze.CallExpression="CallExpression",Ze.MemberExpression="MemberExpression",Ze.Identifier="Identifier",Ze.Literal="Literal",Ze.ArrayExpression="ArrayExpression",Ze.Property="Property",Ze.ObjectExpression="ObjectExpression",Ze.ThisExpression="ThisExpression",Ze.NGValueParameter="NGValueParameter",Ze.prototype={ast:function(a){this.text=a,this.tokens=this.lexer.lex(a);var b=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),b},program:function(){for(var a=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&a.push(this.expressionStatement()),!this.expect(";"))return{type:Ze.Program,body:a}},expressionStatement:function(){return{type:Ze.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var a,b=this.expression();a=this.expect("|");)b=this.filter(b);return b},expression:function(){return this.assignment()},assignment:function(){var a=this.ternary();return this.expect("=")&&(a={type:Ze.AssignmentExpression,left:a,right:this.assignment(),operator:"="}),a},ternary:function(){var a,b,c=this.logicalOR();return this.expect("?")&&(a=this.expression(),this.consume(":"))?(b=this.expression(),{type:Ze.ConditionalExpression,test:c,alternate:a,consequent:b}):c},logicalOR:function(){for(var a=this.logicalAND();this.expect("||");)a={type:Ze.LogicalExpression,operator:"||",left:a,right:this.logicalAND()};return a},logicalAND:function(){for(var a=this.equality();this.expect("&&");)a={type:Ze.LogicalExpression,operator:"&&",left:a,right:this.equality()};return a},equality:function(){for(var a,b=this.relational();a=this.expect("==","!=","===","!==");)b={type:Ze.BinaryExpression,operator:a.text,left:b,right:this.relational()};return b},relational:function(){for(var a,b=this.additive();a=this.expect("<",">","<=",">=");)b={type:Ze.BinaryExpression,operator:a.text,left:b,right:this.additive()};return b},additive:function(){for(var a,b=this.multiplicative();a=this.expect("+","-");)b={type:Ze.BinaryExpression,operator:a.text,left:b,right:this.multiplicative()};return b},multiplicative:function(){for(var a,b=this.unary();a=this.expect("*","/","%");)b={type:Ze.BinaryExpression,operator:a.text,left:b,right:this.unary()};return b},unary:function(){var a;return(a=this.expect("+","-","!"))?{type:Ze.UnaryExpression,operator:a.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var a;this.expect("(")?(a=this.filterChain(),this.consume(")")):this.expect("[")?a=this.arrayDeclaration():this.expect("{")?a=this.object():this.constants.hasOwnProperty(this.peek().text)?a=O(this.constants[this.consume().text]):this.peek().identifier?a=this.identifier():this.peek().constant?a=this.constant():this.throwError("not a primary expression",this.peek());for(var b;b=this.expect("(","[",".");)"("===b.text?(a={type:Ze.CallExpression,callee:a,arguments:this.parseArguments()},this.consume(")")):"["===b.text?(a={type:Ze.MemberExpression,object:a,property:this.expression(),computed:!0},this.consume("]")):"."===b.text?a={type:Ze.MemberExpression,object:a,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return a},filter:function(a){for(var b=[a],c={type:Ze.CallExpression,callee:this.identifier(),arguments:b,filter:!0};this.expect(":");)b.push(this.expression());return c},parseArguments:function(){var a=[];if(")"!==this.peekToken().text)do a.push(this.expression());while(this.expect(","));return a},identifier:function(){var a=this.consume();return a.identifier||this.throwError("is not a valid identifier",a),{type:Ze.Identifier,name:a.text}},constant:function(){return{type:Ze.Literal,value:this.consume().value}},arrayDeclaration:function(){var a=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;a.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:Ze.ArrayExpression,elements:a}},object:function(){var a,b=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;a={type:Ze.Property,kind:"init"},this.peek().constant?a.key=this.constant():this.peek().identifier?a.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),a.value=this.expression(),b.push(a)}while(this.expect(","));return this.consume("}"),{type:Ze.ObjectExpression,properties:b}},throwError:function(a,b){throw Se("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",b.text,a,b.index+1,this.text,this.text.substring(b.index))},consume:function(a){if(0===this.tokens.length)throw Se("ueoe","Unexpected end of expression: {0}",this.text);var b=this.expect(a);return b||this.throwError("is unexpected, expecting ["+a+"]",this.peek()),b},peekToken:function(){if(0===this.tokens.length)throw Se("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(a,b,c,d){return this.peekAhead(0,a,b,c,d)},peekAhead:function(a,b,c,d,e){if(this.tokens.length>a){var f=this.tokens[a],g=f.text;if(g===b||g===c||g===d||g===e||!b&&!c&&!d&&!e)return f}return!1},expect:function(a,b,c,d){var e=this.peek(a,b,c,d);return e?(this.tokens.shift(),e):!1},constants:{"true":{type:Ze.Literal,value:!0},"false":{type:Ze.Literal,value:!1},"null":{type:Ze.Literal,value:null},undefined:{type:Ze.Literal,value:c},"this":{type:Ze.ThisExpression}}},ec.prototype={compile:function(a,b){var d=this,e=this.astBuilder.ast(a);this.state={nextId:0,filters:{},expensiveChecks:b,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},$b(e,d.$filter);var g,h="";if(this.stage="assign",g=bc(e)){this.state.computing="assign";var i=this.nextId();this.recurse(g,i),h="fn.assign="+this.generateFunction("assign","s,v,l")}var j=_b(e.body);d.stage="inputs",f(j,function(a,b){var c="fn"+b;d.state[c]={vars:[],body:[],own:{}},d.state.computing=c;var e=d.nextId();d.recurse(a,e),d.return_(e),d.state.inputs.push(c),a.watchId=b}),this.state.computing="fn",this.stage="main",this.recurse(e);var k='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+h+this.watchFns()+"return fn;",l=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","ifDefined","plus","text",k)(this.$filter,Ub,Vb,Wb,Xb,Yb,a);return this.state=this.stage=c,l.literal=cc(e),l.constant=dc(e),l},USE:"use",STRICT:"strict",watchFns:function(){var a=[],b=this.state.inputs,c=this;return f(b,function(b){a.push("var "+b+"="+c.generateFunction(b,"s"))}),b.length&&a.push("fn.inputs=["+b.join(",")+"];"),a.join("")},generateFunction:function(a,b){return"function("+b+"){"+this.varsPrefix(a)+this.body(a)+"};"},filterPrefix:function(){var a=[],b=this;return f(this.state.filters,function(c,d){a.push(c+"=$filter("+b.escape(d)+")")}),a.length?"var "+a.join(",")+";":""},varsPrefix:function(a){return this.state[a].vars.length?"var "+this.state[a].vars.join(",")+";":""},body:function(a){return this.state[a].body.join("")},recurse:function(a,b,d,e,g,h){var i,j,k,l,m=this;if(e=e||p,!h&&u(a.watchId))return b=b||this.nextId(),void this.if_("i",this.lazyAssign(b,this.computedMember("i",a.watchId)),this.lazyRecurse(a,b,d,e,g,!0));switch(a.type){case Ze.Program:f(a.body,function(b,d){m.recurse(b.expression,c,c,function(a){j=a}),d!==a.body.length-1?m.current().body.push(j,";"):m.return_(j)});break;case Ze.Literal:l=this.escape(a.value),this.assign(b,l),e(l);break;case Ze.UnaryExpression:this.recurse(a.argument,c,c,function(a){j=a}),l=a.operator+"("+this.ifDefined(j,0)+")",this.assign(b,l),e(l);break;case Ze.BinaryExpression:this.recurse(a.left,c,c,function(a){i=a}),this.recurse(a.right,c,c,function(a){j=a}),l="+"===a.operator?this.plus(i,j):"-"===a.operator?this.ifDefined(i,0)+a.operator+this.ifDefined(j,0):"("+i+")"+a.operator+"("+j+")",this.assign(b,l),e(l);break;case Ze.LogicalExpression:b=b||this.nextId(),m.recurse(a.left,b),m.if_("&&"===a.operator?b:m.not(b),m.lazyRecurse(a.right,b)),e(b);break;case Ze.ConditionalExpression:b=b||this.nextId(),m.recurse(a.test,b),m.if_(b,m.lazyRecurse(a.alternate,b),m.lazyRecurse(a.consequent,b)),e(b);break;case Ze.Identifier:b=b||this.nextId(),d&&(d.context="inputs"===m.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",a.name)+"?l:s"),d.computed=!1,d.name=a.name),Ub(a.name),m.if_("inputs"===m.stage||m.not(m.getHasOwnProperty("l",a.name)),function(){m.if_("inputs"===m.stage||"s",function(){g&&1!==g&&m.if_(m.not(m.nonComputedMember("s",a.name)),m.lazyAssign(m.nonComputedMember("s",a.name),"{}")),m.assign(b,m.nonComputedMember("s",a.name))})},b&&m.lazyAssign(b,m.nonComputedMember("l",a.name))),(m.state.expensiveChecks||gc(a.name))&&m.addEnsureSafeObject(b),e(b);break;case Ze.MemberExpression:i=d&&(d.context=this.nextId())||this.nextId(),b=b||this.nextId(),m.recurse(a.object,i,c,function(){m.if_(m.notNull(i),function(){a.computed?(j=m.nextId(),m.recurse(a.property,j),m.addEnsureSafeMemberName(j),g&&1!==g&&m.if_(m.not(m.computedMember(i,j)),m.lazyAssign(m.computedMember(i,j),"{}")),l=m.ensureSafeObject(m.computedMember(i,j)),m.assign(b,l),d&&(d.computed=!0,d.name=j)):(Ub(a.property.name),g&&1!==g&&m.if_(m.not(m.nonComputedMember(i,a.property.name)),m.lazyAssign(m.nonComputedMember(i,a.property.name),"{}")),l=m.nonComputedMember(i,a.property.name),(m.state.expensiveChecks||gc(a.property.name))&&(l=m.ensureSafeObject(l)),m.assign(b,l),d&&(d.computed=!1,d.name=a.property.name))},function(){m.assign(b,"undefined")}),e(b)},!!g);break;case Ze.CallExpression:b=b||this.nextId(),a.filter?(j=m.filter(a.callee.name),k=[],f(a.arguments,function(a){var b=m.nextId();m.recurse(a,b),k.push(b)}),l=j+"("+k.join(",")+")",m.assign(b,l),e(b)):(j=m.nextId(),i={},k=[],m.recurse(a.callee,j,i,function(){m.if_(m.notNull(j),function(){m.addEnsureSafeFunction(j),f(a.arguments,function(a){m.recurse(a,m.nextId(),c,function(a){k.push(m.ensureSafeObject(a))})}),i.name?(m.state.expensiveChecks||m.addEnsureSafeObject(i.context),l=m.member(i.context,i.name,i.computed)+"("+k.join(",")+")"):l=j+"("+k.join(",")+")",l=m.ensureSafeObject(l),m.assign(b,l)},function(){m.assign(b,"undefined")}),e(b)}));break;case Ze.AssignmentExpression:if(j=this.nextId(),i={},!ac(a.left))throw Se("lval","Trying to assing a value to a non l-value");this.recurse(a.left,c,i,function(){m.if_(m.notNull(i.context),function(){m.recurse(a.right,j),m.addEnsureSafeObject(m.member(i.context,i.name,i.computed)),l=m.member(i.context,i.name,i.computed)+a.operator+j,m.assign(b,l),e(b||l)})},1);break;case Ze.ArrayExpression:k=[],f(a.elements,function(a){m.recurse(a,m.nextId(),c,function(a){k.push(a)})}),l="["+k.join(",")+"]",this.assign(b,l),e(l);break;case Ze.ObjectExpression:k=[],f(a.properties,function(a){m.recurse(a.value,m.nextId(),c,function(b){k.push(m.escape(a.key.type===Ze.Identifier?a.key.name:""+a.key.value)+":"+b)})}),l="{"+k.join(",")+"}",this.assign(b,l),e(l);break;case Ze.ThisExpression:this.assign(b,"s"),e("s");break;case Ze.NGValueParameter:this.assign(b,"v"),e("v")}},getHasOwnProperty:function(a,b){var c=a+"."+b,d=this.current().own;return d.hasOwnProperty(c)||(d[c]=this.nextId(!1,a+"&&("+this.escape(b)+" in "+a+")")),d[c]},assign:function(a,b){return a?(this.current().body.push(a,"=",b,";"),a):void 0},filter:function(a){return this.state.filters.hasOwnProperty(a)||(this.state.filters[a]=this.nextId(!0)),this.state.filters[a]},ifDefined:function(a,b){return"ifDefined("+a+","+this.escape(b)+")"},plus:function(a,b){return"plus("+a+","+b+")"},return_:function(a){this.current().body.push("return ",a,";")},if_:function(a,b,c){if(a===!0)b();else{var d=this.current().body;d.push("if(",a,"){"),b(),d.push("}"),c&&(d.push("else{"),c(),d.push("}"))}},not:function(a){return"!("+a+")"},notNull:function(a){return a+"!=null"},nonComputedMember:function(a,b){return a+"."+b},computedMember:function(a,b){return a+"["+b+"]"},member:function(a,b,c){return c?this.computedMember(a,b):this.nonComputedMember(a,b)},addEnsureSafeObject:function(a){this.current().body.push(this.ensureSafeObject(a),";")},addEnsureSafeMemberName:function(a){this.current().body.push(this.ensureSafeMemberName(a),";")},addEnsureSafeFunction:function(a){this.current().body.push(this.ensureSafeFunction(a),";")},ensureSafeObject:function(a){return"ensureSafeObject("+a+",text)"},ensureSafeMemberName:function(a){return"ensureSafeMemberName("+a+",text)"},ensureSafeFunction:function(a){return"ensureSafeFunction("+a+",text)"},lazyRecurse:function(a,b,c,d,e,f){var g=this;return function(){g.recurse(a,b,c,d,e,f)}},lazyAssign:function(a,b){var c=this;return function(){c.assign(a,b)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)},escape:function(a){if(x(a))return"'"+a.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(y(a))return a.toString();if(a===!0)return"true";if(a===!1)return"false";if(null===a)return"null";if("undefined"==typeof a)return"undefined";throw Se("esc","IMPOSSIBLE")},nextId:function(a,b){var c="v"+this.state.nextId++;return a||this.current().vars.push(c+(b?"="+b:"")),c},current:function(){return this.state[this.state.computing]}},fc.prototype={compile:function(a,b){var c=this,d=this.astBuilder.ast(a);this.expression=a,this.expensiveChecks=b,$b(d,c.$filter);var e,g;(e=bc(d))&&(g=this.recurse(e));var h,i=_b(d.body);i&&(h=[],f(i,function(a,b){var d=c.recurse(a);a.input=d,h.push(d),a.watchId=b}));var j=[];f(d.body,function(a){j.push(c.recurse(a.expression))});var k=0===d.body.length?function(){}:1===d.body.length?j[0]:function(a,b){var c;return f(j,function(d){c=d(a,b)}),c};return g&&(k.assign=function(a,b,c){return g(a,c,b)}),h&&(k.inputs=h),k.literal=cc(d),k.constant=dc(d),k},recurse:function(a,b,d){var e,g,h,i=this;if(a.input)return this.inputs(a.input,a.watchId);switch(a.type){case Ze.Literal:return this.value(a.value,b);case Ze.UnaryExpression:return g=this.recurse(a.argument),this["unary"+a.operator](g,b);case Ze.BinaryExpression:return e=this.recurse(a.left),g=this.recurse(a.right),this["binary"+a.operator](e,g,b);case Ze.LogicalExpression:return e=this.recurse(a.left),g=this.recurse(a.right),this["binary"+a.operator](e,g,b);case Ze.ConditionalExpression:return this["ternary?:"](this.recurse(a.test),this.recurse(a.alternate),this.recurse(a.consequent),b);case Ze.Identifier:return Ub(a.name,i.expression),i.identifier(a.name,i.expensiveChecks||gc(a.name),b,d,i.expression);case Ze.MemberExpression:return e=this.recurse(a.object,!1,!!d),a.computed||(Ub(a.property.name,i.expression),g=a.property.name),a.computed&&(g=this.recurse(a.property)),a.computed?this.computedMember(e,g,b,d,i.expression):this.nonComputedMember(e,g,i.expensiveChecks,b,d,i.expression);case Ze.CallExpression:return h=[],f(a.arguments,function(a){h.push(i.recurse(a))}),a.filter&&(g=this.$filter(a.callee.name)),a.filter||(g=this.recurse(a.callee,!0)),a.filter?function(a,d,e,f){for(var i=[],j=0;j<h.length;++j)i.push(h[j](a,d,e,f));var k=g.apply(c,i,f);return b?{context:c,name:c,value:k}:k}:function(a,c,d,e){var f,j=g(a,c,d,e);if(null!=j.value){Vb(j.context,i.expression),Wb(j.value,i.expression);for(var k=[],l=0;l<h.length;++l)k.push(Vb(h[l](a,c,d,e),i.expression));f=Vb(j.value.apply(j.context,k),i.expression)}return b?{value:f}:f};case Ze.AssignmentExpression:return e=this.recurse(a.left,!0,1),g=this.recurse(a.right),function(a,c,d,f){var h=e(a,c,d,f),j=g(a,c,d,f);return Vb(h.value,i.expression),h.context[h.name]=j,b?{value:j}:j};case Ze.ArrayExpression:return h=[],f(a.elements,function(a){h.push(i.recurse(a))}),function(a,c,d,e){for(var f=[],g=0;g<h.length;++g)f.push(h[g](a,c,d,e));return b?{value:f}:f};case Ze.ObjectExpression:return h=[],f(a.properties,function(a){h.push({key:a.key.type===Ze.Identifier?a.key.name:""+a.key.value,value:i.recurse(a.value)})}),function(a,c,d,e){for(var f={},g=0;g<h.length;++g)f[h[g].key]=h[g].value(a,c,d,e);return b?{value:f}:f};case Ze.ThisExpression:return function(a){return b?{value:a}:a};case Ze.NGValueParameter:return function(a,c,d,e){return b?{value:d}:d}}},"unary+":function(a,b){return function(c,d,e,f){var g=a(c,d,e,f);return g=u(g)?+g:0,b?{value:g}:g}},"unary-":function(a,b){return function(c,d,e,f){var g=a(c,d,e,f);return g=u(g)?-g:0,b?{value:g}:g}},"unary!":function(a,b){return function(c,d,e,f){var g=!a(c,d,e,f);return b?{value:g}:g}},"binary+":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g),i=b(d,e,f,g),j=Yb(h,i);return c?{value:j}:j}},"binary-":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g),i=b(d,e,f,g),j=(u(h)?h:0)-(u(i)?i:0);return c?{value:j}:j}},"binary*":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)*b(d,e,f,g);return c?{value:h}:h}},"binary/":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)/b(d,e,f,g);return c?{value:h}:h}},"binary%":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)%b(d,e,f,g);return c?{value:h}:h}},"binary===":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)===b(d,e,f,g);return c?{value:h}:h}},"binary!==":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)!==b(d,e,f,g);return c?{value:h}:h}},"binary==":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)==b(d,e,f,g);return c?{value:h}:h}},"binary!=":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)!=b(d,e,f,g);return c?{value:h}:h}},"binary<":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)<b(d,e,f,g);return c?{value:h}:h}},"binary>":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)>b(d,e,f,g);return c?{value:h}:h}},"binary<=":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)<=b(d,e,f,g);return c?{value:h}:h}},"binary>=":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)>=b(d,e,f,g);return c?{value:h}:h}},"binary&&":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)&&b(d,e,f,g);return c?{value:h}:h}},"binary||":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)||b(d,e,f,g);return c?{value:h}:h}},"ternary?:":function(a,b,c,d){return function(e,f,g,h){var i=a(e,f,g,h)?b(e,f,g,h):c(e,f,g,h);return d?{value:i}:i}},value:function(a,b){return function(){return b?{context:c,name:c,value:a}:a}},identifier:function(a,b,d,e,f){return function(g,h,i,j){var k=h&&a in h?h:g;e&&1!==e&&k&&!k[a]&&(k[a]={});var l=k?k[a]:c;return b&&Vb(l,f),d?{context:k,name:a,value:l}:l}},computedMember:function(a,b,c,d,e){return function(f,g,h,i){var j,k,l=a(f,g,h,i);return null!=l&&(j=b(f,g,h,i),Ub(j,e),d&&1!==d&&l&&!l[j]&&(l[j]={}),k=l[j],Vb(k,e)),c?{context:l,name:j,value:k}:k}},nonComputedMember:function(a,b,d,e,f,g){return function(h,i,j,k){var l=a(h,i,j,k);f&&1!==f&&l&&!l[b]&&(l[b]={});var m=null!=l?l[b]:c;return(d||gc(b))&&Vb(m,g),e?{context:l,name:b,value:m}:m}},inputs:function(a,b){return function(c,d,e,f){return f?f[b]:a(c,d,e)}}};var $e=function(a,b,c){this.lexer=a,this.$filter=b,this.options=c,this.ast=new Ze(this.lexer),this.astCompiler=c.csp?new fc(this.ast,b):new ec(this.ast,b)};$e.prototype={constructor:$e,parse:function(a){return this.astCompiler.compile(a,this.options.expensiveChecks)}};var _e=(qa(),qa(),Object.prototype.valueOf),af=d("$sce"),bf={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Be=d("$compile"),cf=b.createElement("a"),df=xc(a.location.href);Ac.$inject=["$document"],Cc.$inject=["$provide"],Hc.$inject=["$locale"],Ic.$inject=["$locale"];var ef=".",ff={yyyy:Lc("FullYear",4),yy:Lc("FullYear",2,0,!0),y:Lc("FullYear",1),MMMM:Mc("Month"),MMM:Mc("Month",!0),MM:Lc("Month",2,1),M:Lc("Month",1,1),dd:Lc("Date",2),d:Lc("Date",1),HH:Lc("Hours",2),H:Lc("Hours",1),hh:Lc("Hours",2,-12),h:Lc("Hours",1,-12),mm:Lc("Minutes",2),m:Lc("Minutes",1),ss:Lc("Seconds",2),s:Lc("Seconds",1),sss:Lc("Milliseconds",3),EEEE:Mc("Day"),EEE:Mc("Day",!0),a:Rc,Z:Nc,ww:Qc(2),w:Qc(1),G:Sc,GG:Sc,GGG:Sc,GGGG:Tc},gf=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,hf=/^\-?\d+$/;Uc.$inject=["$locale"];var jf=r(rd),kf=r(td);Xc.$inject=["$parse"];var lf=r({restrict:"E",compile:function(a,b){return b.href||b.xlinkHref?void 0:function(a,b){if("a"===b[0].nodeName.toLowerCase()){var c="[object SVGAnimatedString]"===Dd.call(b.prop("href"))?"xlink:href":"href";b.on("click",function(a){b.attr(c)||a.preventDefault()})}}}}),mf={};f(le,function(a,b){function c(a,c,e){a.$watch(e[d],function(a){e.$set(b,!!a)})}if("multiple"!=a){var d=jb("ng-"+b),e=c;"checked"===a&&(e=function(a,b,e){e.ngModel!==e[d]&&c(a,b,e)}),mf[d]=function(){return{restrict:"A",priority:100,link:e}}}}),f(ne,function(a,b){mf[b]=function(){return{priority:100,link:function(a,c,d){if("ngPattern"===b&&"/"==d.ngPattern.charAt(0)){var e=d.ngPattern.match(pd);if(e)return void d.$set("ngPattern",new RegExp(e[1],e[2]))}a.$watch(d[b],function(a){d.$set(b,a)})}}}}),f(["src","srcset","href"],function(a){var b=jb("ng-"+a);mf[b]=function(){return{priority:99,link:function(c,d,e){var f=a,g=a;"href"===a&&"[object SVGAnimatedString]"===Dd.call(d.prop("href"))&&(g="xlinkHref",e.$attr[g]="xlink:href",f=null),e.$observe(b,function(b){return b?(e.$set(g,b),void(wd&&f&&d.prop(f,e[g]))):void("href"===a&&e.$set(g,null))})}}}});var nf={$addControl:p,$$renameControl:Zc,$removeControl:p,$setValidity:p,$setDirty:p,$setPristine:p,$setSubmitted:p},of="ng-submitted";$c.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var pf=function(a){return["$timeout","$parse",function(b,d){function e(a){return""===a?d('this[""]').assign:d(a).assign||p}var f={name:"form",restrict:a?"EAC":"E",controller:$c,compile:function(d,f){d.addClass(Xf).addClass(Vf);var g=f.name?"name":a&&f.ngForm?"ngForm":!1;return{pre:function(a,d,f,h){if(!("action"in f)){var i=function(b){a.$apply(function(){h.$commitViewValue(),h.$setSubmitted()}),b.preventDefault()};_d(d[0],"submit",i),d.on("$destroy",function(){b(function(){ae(d[0],"submit",i)},0,!1)})}var j=h.$$parentForm,k=g?e(h.$name):p;g&&(k(a,h),f.$observe(g,function(b){h.$name!==b&&(k(a,c),j.$$renameControl(h,b),(k=e(h.$name))(a,h))})),d.on("$destroy",function(){j.$removeControl(h),k(a,c),l(h,nf)})}}}};return f}]},qf=pf(),rf=pf(!0),sf=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,tf=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,uf=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,vf=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,wf=/^(\d{4})-(\d{2})-(\d{2})$/,xf=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,yf=/^(\d{4})-W(\d\d)$/,zf=/^(\d{4})-(\d\d)$/,Af=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Bf={text:ad,date:ed("date",wf,dd(wf,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":ed("datetimelocal",xf,dd(xf,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:ed("time",Af,dd(Af,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:ed("week",yf,cd,"yyyy-Www"),month:ed("month",zf,dd(zf,["yyyy","MM"]),"yyyy-MM"),number:gd,url:hd,email:id,radio:jd,checkbox:ld,hidden:p,button:p,submit:p,reset:p,file:p},Cf=["$browser","$sniffer","$filter","$parse",function(a,b,c,d){return{restrict:"E",require:["?ngModel"],link:{pre:function(e,f,g,h){h[0]&&(Bf[rd(g.type)]||Bf.text)(e,f,g,h[0],b,a,c,d)}}}}],Df=/^(true|false|\d+)$/,Ef=function(){return{restrict:"A",priority:100,compile:function(a,b){return Df.test(b.ngValue)?function(a,b,c){c.$set("value",a.$eval(c.ngValue))}:function(a,b,c){a.$watch(c.ngValue,function(a){c.$set("value",a)})}}}},Ff=["$compile",function(a){return{restrict:"AC",compile:function(b){return a.$$addBindingClass(b),function(b,d,e){a.$$addBindingInfo(d,e.ngBind),d=d[0],b.$watch(e.ngBind,function(a){d.textContent=a===c?"":a})}}}}],Gf=["$interpolate","$compile",function(a,b){return{compile:function(d){return b.$$addBindingClass(d),function(d,e,f){var g=a(e.attr(f.$attr.ngBindTemplate));b.$$addBindingInfo(e,g.expressions),e=e[0],f.$observe("ngBindTemplate",function(a){e.textContent=a===c?"":a})}}}}],Hf=["$sce","$parse","$compile",function(a,b,c){return{restrict:"A",compile:function(d,e){var f=b(e.ngBindHtml),g=b(e.ngBindHtml,function(a){return(a||"").toString()});return c.$$addBindingClass(d),function(b,d,e){c.$$addBindingInfo(d,e.ngBindHtml),b.$watch(g,function(){d.html(a.getTrustedHtml(f(b))||"")})}}}}],If=r({restrict:"A",require:"ngModel",link:function(a,b,c,d){d.$viewChangeListeners.push(function(){a.$eval(c.ngChange)})}}),Jf=md("",!0),Kf=md("Odd",0),Lf=md("Even",1),Mf=Yc({compile:function(a,b){b.$set("ngCloak",c),a.removeClass("ng-cloak")}}),Nf=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Of={},Pf={blur:!0,focus:!0};f("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(a){var b=jb("ng-"+a);Of[b]=["$parse","$rootScope",function(c,d){return{restrict:"A",compile:function(e,f){var g=c(f[b],null,!0);return function(b,c){c.on(a,function(c){var e=function(){g(b,{$event:c})};Pf[a]&&d.$$phase?b.$evalAsync(e):b.$apply(e)})}}}}]});var Qf=["$animate",function(a){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(c,d,e,f,g){var h,i,j;c.$watch(e.ngIf,function(c){c?i||g(function(c,f){i=f,c[c.length++]=b.createComment(" end ngIf: "+e.ngIf+" "),h={clone:c},a.enter(c,d.parent(),d)}):(j&&(j.remove(),j=null),i&&(i.$destroy(),i=null),h&&(j=pa(h.clone),a.leave(j).then(function(){j=null}),h=null))})}}}],Rf=["$templateRequest","$anchorScroll","$animate",function(a,b,c){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Gd.noop,compile:function(d,e){var f=e.ngInclude||e.src,g=e.onload||"",h=e.autoscroll;return function(d,e,i,j,k){var l,m,n,o=0,p=function(){m&&(m.remove(),m=null),l&&(l.$destroy(),l=null),n&&(c.leave(n).then(function(){m=null}),m=n,n=null)};d.$watch(f,function(f){var i=function(){!u(h)||h&&!d.$eval(h)||b()},m=++o;f?(a(f,!0).then(function(a){if(m===o){var b=d.$new();j.template=a;var h=k(b,function(a){p(),c.enter(a,null,e).then(i)});l=b,n=h,l.$emit("$includeContentLoaded",f),d.$eval(g)}},function(){m===o&&(p(),d.$emit("$includeContentError",f))}),d.$emit("$includeContentRequested",f)):(p(),j.template=null)})}}}}],Sf=["$compile",function(a){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(c,d,e,f){return/SVG/.test(d[0].toString())?(d.empty(),void a(Aa(f.template,b).childNodes)(c,function(a){d.append(a)},{futureParentElement:d})):(d.html(f.template),void a(d.contents())(c))}}}],Tf=Yc({priority:450,compile:function(){return{pre:function(a,b,c){a.$eval(c.ngInit)}}}}),Uf=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(a,b,d,e){var g=b.attr(d.$attr.ngList)||", ",h="false"!==d.ngTrim,i=h?Ld(g):g,j=function(a){if(!t(a)){var b=[];return a&&f(a.split(i),function(a){a&&b.push(h?Ld(a):a)}),b}};e.$parsers.push(j),e.$formatters.push(function(a){return Jd(a)?a.join(g):c}),e.$isEmpty=function(a){return!a||!a.length}}}},Vf="ng-valid",Wf="ng-invalid",Xf="ng-pristine",Yf="ng-dirty",Zf="ng-untouched",$f="ng-touched",_f="ng-pending",ag=d("ngModel"),bg=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(a,b,d,e,g,h,i,j,k,l){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=c,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=c,this.$name=l(d.name||"",!1)(a);var m,n=g(d.ngModel),o=n.assign,q=n,r=o,s=null,v=this;this.$$setOptions=function(a){if(v.$options=a,a&&a.getterSetter){var b=g(d.ngModel+"()"),c=g(d.ngModel+"($$$p)");q=function(a){var c=n(a);return A(c)&&(c=b(a)),c},r=function(a,b){A(n(a))?c(a,{$$$p:v.$modelValue}):o(a,v.$modelValue)}}else if(!n.assign)throw ag("nonassign","Expression '{0}' is non-assignable. Element: {1}",d.ngModel,$(e))},this.$render=p,this.$isEmpty=function(a){return t(a)||""===a||null===a||a!==a};var w=e.inheritedData("$formController")||nf,x=0;nd({ctrl:this,$element:e,set:function(a,b){a[b]=!0},unset:function(a,b){delete a[b]},parentForm:w,$animate:h}),this.$setPristine=function(){v.$dirty=!1,v.$pristine=!0,h.removeClass(e,Yf),h.addClass(e,Xf)},this.$setDirty=function(){v.$dirty=!0,v.$pristine=!1,h.removeClass(e,Xf),h.addClass(e,Yf),w.$setDirty()},this.$setUntouched=function(){v.$touched=!1,v.$untouched=!0,h.setClass(e,Zf,$f)},this.$setTouched=function(){v.$touched=!0,v.$untouched=!1,h.setClass(e,$f,Zf)},this.$rollbackViewValue=function(){i.cancel(s),v.$viewValue=v.$$lastCommittedViewValue,v.$render()},this.$validate=function(){if(!y(v.$modelValue)||!isNaN(v.$modelValue)){var a=v.$$lastCommittedViewValue,b=v.$$rawModelValue,d=v.$valid,e=v.$modelValue,f=v.$options&&v.$options.allowInvalid;v.$$runValidators(b,a,function(a){f||d===a||(v.$modelValue=a?b:c,v.$modelValue!==e&&v.$$writeModelToScope())})}},this.$$runValidators=function(a,b,d){function e(){var a=v.$$parserName||"parse";return m!==c?(m||(f(v.$validators,function(a,b){i(b,null)}),f(v.$asyncValidators,function(a,b){i(b,null)})),i(a,m),m):(i(a,null),!0)}function g(){var c=!0;return f(v.$validators,function(d,e){var f=d(a,b);c=c&&f,i(e,f)}),c?!0:(f(v.$asyncValidators,function(a,b){i(b,null)}),!1)}function h(){var d=[],e=!0;f(v.$asyncValidators,function(f,g){var h=f(a,b);if(!I(h))throw ag("$asyncValidators","Expected asynchronous validator to return a promise but got '{0}' instead.",h);i(g,c),d.push(h.then(function(){i(g,!0)},function(a){e=!1,i(g,!1)}))}),d.length?k.all(d).then(function(){j(e)},p):j(!0)}function i(a,b){l===x&&v.$setValidity(a,b)}function j(a){l===x&&d(a)}x++;var l=x;return e()&&g()?void h():void j(!1)},this.$commitViewValue=function(){var a=v.$viewValue;i.cancel(s),(v.$$lastCommittedViewValue!==a||""===a&&v.$$hasNativeValidators)&&(v.$$lastCommittedViewValue=a,v.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function b(){v.$modelValue!==g&&v.$$writeModelToScope()}var d=v.$$lastCommittedViewValue,e=d;if(m=t(e)?c:!0)for(var f=0;f<v.$parsers.length;f++)if(e=v.$parsers[f](e),t(e)){m=!1;break}y(v.$modelValue)&&isNaN(v.$modelValue)&&(v.$modelValue=q(a));var g=v.$modelValue,h=v.$options&&v.$options.allowInvalid;v.$$rawModelValue=e,h&&(v.$modelValue=e,b()),v.$$runValidators(e,v.$$lastCommittedViewValue,function(a){h||(v.$modelValue=a?e:c,b())})},this.$$writeModelToScope=function(){r(a,v.$modelValue),f(v.$viewChangeListeners,function(a){try{a()}catch(c){b(c)}})},this.$setViewValue=function(a,b){v.$viewValue=a,v.$options&&!v.$options.updateOnDefault||v.$$debounceViewValueCommit(b)},this.$$debounceViewValueCommit=function(b){var c,d=0,e=v.$options;e&&u(e.debounce)&&(c=e.debounce,y(c)?d=c:y(c[b])?d=c[b]:y(c["default"])&&(d=c["default"])),i.cancel(s),d?s=i(function(){v.$commitViewValue()},d):j.$$phase?v.$commitViewValue():a.$apply(function(){v.$commitViewValue()})},a.$watch(function(){var b=q(a);if(b!==v.$modelValue&&(v.$modelValue===v.$modelValue||b===b)){v.$modelValue=v.$$rawModelValue=b,m=c;for(var d=v.$formatters,e=d.length,f=b;e--;)f=d[e](f);v.$viewValue!==f&&(v.$viewValue=v.$$lastCommittedViewValue=f,v.$render(),v.$$runValidators(b,f,p))}return b})}],cg=["$rootScope",function(a){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:bg,priority:1,compile:function(b){return b.addClass(Xf).addClass(Zf).addClass(Vf),{pre:function(a,b,c,d){var e=d[0],f=d[1]||nf;e.$$setOptions(d[2]&&d[2].$options),f.$addControl(e),c.$observe("name",function(a){e.$name!==a&&f.$$renameControl(e,a)}),a.$on("$destroy",function(){
f.$removeControl(e)})},post:function(b,c,d,e){var f=e[0];f.$options&&f.$options.updateOn&&c.on(f.$options.updateOn,function(a){f.$$debounceViewValueCommit(a&&a.type)}),c.on("blur",function(c){f.$touched||(a.$$phase?b.$evalAsync(f.$setTouched):b.$apply(f.$setTouched))})}}}}}],dg=/(\s+|^)default(\s+|$)/,eg=function(){return{restrict:"A",controller:["$scope","$attrs",function(a,b){var d=this;this.$options=O(a.$eval(b.ngModelOptions)),this.$options.updateOn!==c?(this.$options.updateOnDefault=!1,this.$options.updateOn=Ld(this.$options.updateOn.replace(dg,function(){return d.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},fg=Yc({terminal:!0,priority:1e3}),gg=d("ngOptions"),hg=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,ig=["$compile","$parse",function(a,c){function d(a,b,d){function f(a,b,c,d,e){this.selectValue=a,this.viewValue=b,this.label=c,this.group=d,this.disabled=e}function g(a){var b;if(!j&&e(a))b=a;else{b=[];for(var c in a)a.hasOwnProperty(c)&&"$"!==c.charAt(0)&&b.push(c)}return b}var h=a.match(hg);if(!h)throw gg("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",a,$(b));var i=h[5]||h[7],j=h[6],k=/ as /.test(h[0])&&h[1],l=h[9],m=c(h[2]?h[1]:i),n=k&&c(k),o=n||m,p=l&&c(l),q=l?function(a,b){return p(d,b)}:function(a){return Wa(a)},r=function(a,b){return q(a,x(a,b))},s=c(h[2]||h[1]),t=c(h[3]||""),u=c(h[4]||""),v=c(h[8]),w={},x=j?function(a,b){return w[j]=b,w[i]=a,w}:function(a){return w[i]=a,w};return{trackBy:l,getTrackByValue:r,getWatchables:c(v,function(a){var b=[];a=a||[];for(var c=g(a),e=c.length,f=0;e>f;f++){var i=a===c?f:c[f],j=(a[i],x(a[i],i)),k=q(a[i],j);if(b.push(k),h[2]||h[1]){var l=s(d,j);b.push(l)}if(h[4]){var m=u(d,j);b.push(m)}}return b}),getOptions:function(){for(var a=[],b={},c=v(d)||[],e=g(c),h=e.length,i=0;h>i;i++){var j=c===e?i:e[i],k=c[j],m=x(k,j),n=o(d,m),p=q(n,m),w=s(d,m),y=t(d,m),z=u(d,m),A=new f(p,n,w,y,z);a.push(A),b[p]=A}return{items:a,selectValueMap:b,getOptionFromViewValue:function(a){return b[r(a)]},getViewValueFromOption:function(a){return l?Gd.copy(a.viewValue):a.viewValue}}}}}var g=b.createElement("option"),h=b.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","?ngModel"],link:function(b,c,e,i){function j(a,b){a.element=b,b.disabled=a.disabled,a.value!==b.value&&(b.value=a.selectValue),a.label!==b.label&&(b.label=a.label,b.textContent=a.label)}function k(a,b,c,d){var e;return b&&rd(b.nodeName)===c?e=b:(e=d.cloneNode(!1),b?a.insertBefore(e,b):a.appendChild(e)),e}function l(a){for(var b;a;)b=a.nextSibling,Qa(a),a=b}function m(a){var b=p&&p[0],c=w&&w[0];if(b||c)for(;a&&(a===b||a===c);)a=a.nextSibling;return a}function n(){var a=x&&q.readValue();x=y.getOptions();var b={},d=c[0].firstChild;if(v&&c.prepend(p),d=m(d),x.items.forEach(function(a){var e,f,i;a.group?(e=b[a.group],e||(f=k(c[0],d,"optgroup",h),d=f.nextSibling,f.label=a.group,e=b[a.group]={groupElement:f,currentOptionElement:f.firstChild}),i=k(e.groupElement,e.currentOptionElement,"option",g),j(a,i),e.currentOptionElement=i.nextSibling):(i=k(c[0],d,"option",g),j(a,i),d=i.nextSibling)}),Object.keys(b).forEach(function(a){l(b[a].currentOptionElement)}),l(d),o.$render(),!o.$isEmpty(a)){var e=q.readValue();(y.trackBy?Q(a,e):a===e)||(o.$setViewValue(e),o.$render())}}var o=i[1];if(o){for(var p,q=i[0],r=e.multiple,s=0,t=c.children(),u=t.length;u>s;s++)if(""===t[s].value){p=t.eq(s);break}var v=!!p,w=xd(g.cloneNode(!1));w.val("?");var x,y=d(e.ngOptions,c,b),z=function(){v||c.prepend(p),c.val(""),p.prop("selected",!0),p.attr("selected",!0)},A=function(){v||p.remove()},B=function(){c.prepend(w),c.val("?"),w.prop("selected",!0),w.attr("selected",!0)},C=function(){w.remove()};r?(o.$isEmpty=function(a){return!a||0===a.length},q.writeValue=function(a){x.items.forEach(function(a){a.element.selected=!1}),a&&a.forEach(function(a){var b=x.getOptionFromViewValue(a);b&&!b.disabled&&(b.element.selected=!0)})},q.readValue=function(){var a=c.val()||[],b=[];return f(a,function(a){var c=x.selectValueMap[a];c&&!c.disabled&&b.push(x.getViewValueFromOption(c))}),b},y.trackBy&&b.$watchCollection(function(){return Jd(o.$viewValue)?o.$viewValue.map(function(a){return y.getTrackByValue(a)}):void 0},function(){o.$render()})):(q.writeValue=function(a){var b=x.getOptionFromViewValue(a);b&&!b.disabled?c[0].value!==b.selectValue&&(C(),A(),c[0].value=b.selectValue,b.element.selected=!0,b.element.setAttribute("selected","selected")):null===a||v?(C(),z()):(A(),B())},q.readValue=function(){var a=x.selectValueMap[c.val()];return a&&!a.disabled?(A(),C(),x.getViewValueFromOption(a)):null},y.trackBy&&b.$watch(function(){return y.getTrackByValue(o.$viewValue)},function(){o.$render()})),v?(p.remove(),a(p)(b),p.removeClass("ng-scope")):p=xd(g.cloneNode(!1)),n(),b.$watchCollection(y.getWatchables,n)}}}}],jg=["$locale","$interpolate","$log",function(a,b,c){var d=/{}/g,e=/^when(Minus)?(.+)$/;return{link:function(g,h,i){function j(a){h.text(a||"")}var k,l=i.count,m=i.$attr.when&&h.attr(i.$attr.when),n=i.offset||0,o=g.$eval(m)||{},q={},r=b.startSymbol(),s=b.endSymbol(),u=r+l+"-"+n+s,v=Gd.noop;f(i,function(a,b){var c=e.exec(b);if(c){var d=(c[1]?"-":"")+rd(c[2]);o[d]=h.attr(i.$attr[b])}}),f(o,function(a,c){q[c]=b(a.replace(d,u))}),g.$watch(l,function(b){var d=parseFloat(b),e=isNaN(d);if(e||d in o||(d=a.pluralCat(d-n)),d!==k&&!(e&&y(k)&&isNaN(k))){v();var f=q[d];t(f)?(null!=b&&c.debug("ngPluralize: no rule defined for '"+d+"' in "+m),v=p,j()):v=g.$watch(f,j),k=d}})}}}],kg=["$parse","$animate",function(a,g){var h="$$NG_REMOVED",i=d("ngRepeat"),j=function(a,b,c,d,e,f,g){a[c]=d,e&&(a[e]=f),a.$index=b,a.$first=0===b,a.$last=b===g-1,a.$middle=!(a.$first||a.$last),a.$odd=!(a.$even=0===(1&b))},k=function(a){return a.clone[0]},l=function(a){return a.clone[a.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(d,m){var n=m.ngRepeat,o=b.createComment(" end ngRepeat: "+n+" "),p=n.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!p)throw i("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",n);var q=p[1],r=p[2],s=p[3],t=p[4];if(p=q.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!p)throw i("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",q);var u=p[3]||p[1],v=p[2];if(s&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(s)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(s)))throw i("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",s);var w,x,y,z,A={$id:Wa};return t?w=a(t):(y=function(a,b){return Wa(b)},z=function(a){return a}),function(a,b,d,m,p){w&&(x=function(b,c,d){return v&&(A[v]=b),A[u]=c,A.$index=d,w(a,A)});var q=qa();a.$watchCollection(r,function(d){var m,r,t,w,A,B,C,D,E,F,G,H,I=b[0],J=qa();if(s&&(a[s]=d),e(d))E=d,D=x||y;else{D=x||z,E=[];for(var K in d)d.hasOwnProperty(K)&&"$"!==K.charAt(0)&&E.push(K)}for(w=E.length,G=new Array(w),m=0;w>m;m++)if(A=d===E?m:E[m],B=d[A],C=D(A,B,m),q[C])F=q[C],delete q[C],J[C]=F,G[m]=F;else{if(J[C])throw f(G,function(a){a&&a.scope&&(q[a.id]=a)}),i("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",n,C,B);G[m]={id:C,scope:c,clone:c},J[C]=!0}for(var L in q){if(F=q[L],H=pa(F.clone),g.leave(H),H[0].parentNode)for(m=0,r=H.length;r>m;m++)H[m][h]=!0;F.scope.$destroy()}for(m=0;w>m;m++)if(A=d===E?m:E[m],B=d[A],F=G[m],F.scope){t=I;do t=t.nextSibling;while(t&&t[h]);k(F)!=t&&g.move(pa(F.clone),null,xd(I)),I=l(F),j(F.scope,m,u,B,v,A,w)}else p(function(a,b){F.scope=b;var c=o.cloneNode(!1);a[a.length++]=c,g.enter(a,null,xd(I)),I=c,F.clone=a,J[F.id]=F,j(F.scope,m,u,B,v,A,w)});q=J})}}}}],lg="ng-hide",mg="ng-hide-animate",ng=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,c,d){b.$watch(d.ngShow,function(b){a[b?"removeClass":"addClass"](c,lg,{tempClasses:mg})})}}}],og=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,c,d){b.$watch(d.ngHide,function(b){a[b?"addClass":"removeClass"](c,lg,{tempClasses:mg})})}}}],pg=Yc(function(a,b,c){a.$watch(c.ngStyle,function(a,c){c&&a!==c&&f(c,function(a,c){b.css(c,"")}),a&&b.css(a)},!0)}),qg=["$animate",function(a){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(c,d,e,g){var h=e.ngSwitch||e.on,i=[],j=[],k=[],l=[],m=function(a,b){return function(){a.splice(b,1)}};c.$watch(h,function(c){var d,e;for(d=0,e=k.length;e>d;++d)a.cancel(k[d]);for(k.length=0,d=0,e=l.length;e>d;++d){var h=pa(j[d].clone);l[d].$destroy();var n=k[d]=a.leave(h);n.then(m(k,d))}j.length=0,l.length=0,(i=g.cases["!"+c]||g.cases["?"])&&f(i,function(c){c.transclude(function(d,e){l.push(e);var f=c.element;d[d.length++]=b.createComment(" end ngSwitchWhen: ");var g={clone:d};j.push(g),a.enter(d,f.parent(),f)})})})}}}],rg=Yc({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,c,d,e){d.cases["!"+c.ngSwitchWhen]=d.cases["!"+c.ngSwitchWhen]||[],d.cases["!"+c.ngSwitchWhen].push({transclude:e,element:b})}}),sg=Yc({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,c,d,e){d.cases["?"]=d.cases["?"]||[],d.cases["?"].push({transclude:e,element:b})}}),tg=Yc({restrict:"EAC",link:function(a,b,c,e,f){if(!f)throw d("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",$(b));f(function(a){b.empty(),b.append(a)})}}),ug=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(b,c){if("text/ng-template"==c.type){var d=c.id,e=b[0].text;a.put(d,e)}}}}],vg={$setViewValue:p,$render:p},wg=["$element","$scope","$attrs",function(a,d,e){var f=this,g=new Xa;f.ngModelCtrl=vg,f.unknownOption=xd(b.createElement("option")),f.renderUnknownOption=function(b){var c="? "+Wa(b)+" ?";f.unknownOption.val(c),a.prepend(f.unknownOption),a.val(c)},d.$on("$destroy",function(){f.renderUnknownOption=p}),f.removeUnknownOption=function(){f.unknownOption.parent()&&f.unknownOption.remove()},f.readValue=function(){return f.removeUnknownOption(),a.val()},f.writeValue=function(b){f.hasOption(b)?(f.removeUnknownOption(),a.val(b),""===b&&f.emptyOption.prop("selected",!0)):null==b&&f.emptyOption?(f.removeUnknownOption(),a.val("")):f.renderUnknownOption(b)},f.addOption=function(a,b){na(a,'"option value"'),""===a&&(f.emptyOption=b);var c=g.get(a)||0;g.put(a,c+1)},f.removeOption=function(a){var b=g.get(a);b&&(1===b?(g.remove(a),""===a&&(f.emptyOption=c)):g.put(a,b-1))},f.hasOption=function(a){return!!g.get(a)}}],xg=function(){return{restrict:"E",require:["select","?ngModel"],controller:wg,link:function(a,b,c,d){var e=d[1];if(e){var g=d[0];if(g.ngModelCtrl=e,e.$render=function(){g.writeValue(e.$viewValue)},b.on("change",function(){a.$apply(function(){e.$setViewValue(g.readValue())})}),c.multiple){g.readValue=function(){var a=[];return f(b.find("option"),function(b){b.selected&&a.push(b.value)}),a},g.writeValue=function(a){var c=new Xa(a);f(b.find("option"),function(a){a.selected=u(c.get(a.value))})};var h,i=NaN;a.$watch(function(){i!==e.$viewValue||Q(h,e.$viewValue)||(h=P(e.$viewValue),e.$render()),i=e.$viewValue}),e.$isEmpty=function(a){return!a||0===a.length}}}}}},yg=["$interpolate",function(a){function b(a){a[0].hasAttribute("selected")&&(a[0].selected=!0)}return{restrict:"E",priority:100,compile:function(c,d){if(t(d.value)){var e=a(c.text(),!0);e||d.$set("value",c.text())}return function(a,c,d){var f="$selectController",g=c.parent(),h=g.data(f)||g.parent().data(f);h&&h.ngModelCtrl&&(e?a.$watch(e,function(a,e){d.$set("value",a),e!==a&&h.removeOption(e),h.addOption(a,c),h.ngModelCtrl.$render(),b(c)}):(h.addOption(d.value,c),h.ngModelCtrl.$render(),b(c)),c.on("$destroy",function(){h.removeOption(d.value),h.ngModelCtrl.$render()}))}}}}],zg=r({restrict:"E",terminal:!1}),Ag=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,c,d){d&&(c.required=!0,d.$validators.required=function(a,b){return!c.required||!d.$isEmpty(b)},c.$observe("required",function(){d.$validate()}))}}},Bg=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,e,f){if(f){var g,h=e.ngPattern||e.pattern;e.$observe("pattern",function(a){if(x(a)&&a.length>0&&(a=new RegExp("^"+a+"$")),a&&!a.test)throw d("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",h,a,$(b));g=a||c,f.$validate()}),f.$validators.pattern=function(a){return f.$isEmpty(a)||t(g)||g.test(a)}}}}},Cg=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,c,d){if(d){var e=-1;c.$observe("maxlength",function(a){var b=n(a);e=isNaN(b)?-1:b,d.$validate()}),d.$validators.maxlength=function(a,b){return 0>e||d.$isEmpty(b)||b.length<=e}}}}},Dg=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,c,d){if(d){var e=0;c.$observe("minlength",function(a){e=n(a)||0,d.$validate()}),d.$validators.minlength=function(a,b){return d.$isEmpty(b)||b.length>=e}}}}};return a.angular.bootstrap?void console.log("WARNING: Tried to load angular more than once."):(ka(),ua(Gd),Gd.module("ngLocale",[],["$provide",function(a){function b(a){a+="";var b=a.indexOf(".");return-1==b?0:a.length-b-1}function d(a,d){var e=d;c===e&&(e=Math.min(b(a),3));var f=Math.pow(10,e),g=(a*f|0)%f;return{v:e,f:g}}var e={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",pluralCat:function(a,b){var c=0|a,f=d(a,b);return 1==c&&0==f.v?e.ONE:e.OTHER}})}]),void xd(b).ready(function(){fa(b,ga)}))}(window,document),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),function(a,b,c){"use strict";function d(){function a(a,c){return b.extend(Object.create(a),c)}function c(a,b){var c=b.caseInsensitiveMatch,d={originalPath:a,regexp:a},e=d.keys=[];return a=a.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(a,b,c,d){var f="?"===d?d:null,g="*"===d?d:null;return e.push({name:c,optional:!!f}),b=b||"",""+(f?"":b)+"(?:"+(f?b:"")+(g&&"(.+?)"||"([^/]+)")+(f||"")+")"+(f||"")}).replace(/([\/$\*])/g,"\\$1"),d.regexp=new RegExp("^"+a+"$",c?"i":""),d}var d={};this.when=function(a,e){var f=b.copy(e);if(b.isUndefined(f.reloadOnSearch)&&(f.reloadOnSearch=!0),b.isUndefined(f.caseInsensitiveMatch)&&(f.caseInsensitiveMatch=this.caseInsensitiveMatch),d[a]=b.extend(f,a&&c(a,f)),a){var g="/"==a[a.length-1]?a.substr(0,a.length-1):a+"/";d[g]=b.extend({redirectTo:a},c(g,f))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(a){return"string"==typeof a&&(a={redirectTo:a}),this.when(null,a),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(c,e,f,g,h,j,k){function l(a,b){var c=b.keys,d={};if(!b.regexp)return null;var e=b.regexp.exec(a);if(!e)return null;for(var f=1,g=e.length;g>f;++f){var h=c[f-1],i=e[f];h&&i&&(d[h.name]=i)}return d}function m(a){var d=t.current;q=o(),r=q&&d&&q.$$route===d.$$route&&b.equals(q.pathParams,d.pathParams)&&!q.reloadOnSearch&&!s,r||!d&&!q||c.$broadcast("$routeChangeStart",q,d).defaultPrevented&&a&&a.preventDefault()}function n(){var a=t.current,d=q;r?(a.params=d.params,b.copy(a.params,f),c.$broadcast("$routeUpdate",a)):(d||a)&&(s=!1,t.current=d,d&&d.redirectTo&&(b.isString(d.redirectTo)?e.path(p(d.redirectTo,d.params)).search(d.params).replace():e.url(d.redirectTo(d.pathParams,e.path(),e.search())).replace()),g.when(d).then(function(){if(d){var a,c,e=b.extend({},d.resolve);return b.forEach(e,function(a,c){e[c]=b.isString(a)?h.get(a):h.invoke(a,null,null,c)}),b.isDefined(a=d.template)?b.isFunction(a)&&(a=a(d.params)):b.isDefined(c=d.templateUrl)&&(b.isFunction(c)&&(c=c(d.params)),b.isDefined(c)&&(d.loadedTemplateUrl=k.valueOf(c),a=j(c))),b.isDefined(a)&&(e.$template=a),g.all(e)}}).then(function(e){d==t.current&&(d&&(d.locals=e,b.copy(d.params,f)),c.$broadcast("$routeChangeSuccess",d,a))},function(b){d==t.current&&c.$broadcast("$routeChangeError",d,a,b)}))}function o(){var c,f;return b.forEach(d,function(d,g){!f&&(c=l(e.path(),d))&&(f=a(d,{params:b.extend({},e.search(),c),pathParams:c}),f.$$route=d)}),f||d[null]&&a(d[null],{params:{},pathParams:{}})}function p(a,c){var d=[];return b.forEach((a||"").split(":"),function(a,b){if(0===b)d.push(a);else{var e=a.match(/(\w+)(?:[?*])?(.*)/),f=e[1];d.push(c[f]),d.push(e[2]||""),delete c[f]}}),d.join("")}var q,r,s=!1,t={routes:d,reload:function(){s=!0,c.$evalAsync(function(){m(),n()})},updateParams:function(a){if(!this.current||!this.current.$$route)throw i("norout","Tried updating route when with no current route");a=b.extend({},this.current.params,a),e.path(p(this.current.$$route.originalPath,a)),e.search(a)}};return c.$on("$locationChangeStart",m),c.$on("$locationChangeSuccess",n),t}]}function e(){this.$get=function(){return{}}}function f(a,c,d){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(e,f,g,h,i){function j(){n&&(d.cancel(n),n=null),l&&(l.$destroy(),l=null),m&&(n=d.leave(m),n.then(function(){n=null}),m=null)}function k(){var g=a.current&&a.current.locals,h=g&&g.$template;if(b.isDefined(h)){var k=e.$new(),n=a.current,q=i(k,function(a){d.enter(a,null,m||f).then(function(){!b.isDefined(o)||o&&!e.$eval(o)||c()}),j()});m=q,l=n.scope=k,l.$emit("$viewContentLoaded"),l.$eval(p)}else j()}var l,m,n,o=g.autoscroll,p=g.onload||"";e.$on("$routeChangeSuccess",k),k()}}}function g(a,b,c){return{restrict:"ECA",priority:-400,link:function(d,e){var f=c.current,g=f.locals;e.html(g.$template);var h=a(e.contents());if(f.controller){g.$scope=d;var i=b(f.controller,g);f.controllerAs&&(d[f.controllerAs]=i),e.data("$ngControllerController",i),e.children().data("$ngControllerController",i)}h(d)}}}var h=b.module("ngRoute",["ng"]).provider("$route",d),i=b.$$minErr("ngRoute");h.provider("$routeParams",e),h.directive("ngView",f),h.directive("ngView",g),f.$inject=["$route","$anchorScroll","$animate"],g.$inject=["$compile","$controller","$route"]}(window,window.angular),function(a,b,c){"use strict";function d(a,d,e){function f(a,e,f){var h,i;f=f||{},i=f.expires,h=b.isDefined(f.path)?f.path:g,e===c&&(i="Thu, 01 Jan 1970 00:00:00 GMT",e=""),b.isString(i)&&(i=new Date(i));var j=encodeURIComponent(a)+"="+encodeURIComponent(e);j+=h?";path="+h:"",j+=f.domain?";domain="+f.domain:"",j+=i?";expires="+i.toUTCString():"",j+=f.secure?";secure":"";var k=j.length+1;return k>4096&&d.warn("Cookie '"+a+"' possibly not set or overflowed because it was too large ("+k+" > 4096 bytes)!"),j}var g=e.baseHref(),h=a[0];return function(a,b,c){h.cookie=f(a,b,c)}}b.module("ngCookies",["ng"]).provider("$cookies",[function(){function a(a){return a?b.extend({},d,a):d}var d=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(d,e){return{get:function(a){return d()[a]},getObject:function(a){var c=this.get(a);return c?b.fromJson(c):c},getAll:function(){return d()},put:function(b,c,d){e(b,c,a(d))},putObject:function(a,c,d){this.put(a,b.toJson(c),d)},remove:function(b,d){e(b,c,a(d))}}}]}]),b.module("ngCookies").factory("$cookieStore",["$cookies",function(a){return{get:function(b){return a.getObject(b)},put:function(b,c){a.putObject(b,c)},remove:function(b){a.remove(b)}}}]),d.$inject=["$document","$log","$browser"],b.module("ngCookies").provider("$$cookieWriter",function(){this.$get=d})}(window,window.angular),angular.module("pascalprecht.translate",["ng"]).run(["$translate",function(a){var b=a.storageKey(),c=a.storage();c?c.get(b)?a.use(c.get(b)):angular.isString(a.preferredLanguage())?a.use(a.preferredLanguage()):c.set(b,a.use()):angular.isString(a.preferredLanguage())&&a.use(a.preferredLanguage())}]),angular.module("pascalprecht.translate").provider("$translate",["$STORAGE_KEY",function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q={},r=[],s=a,t=[],u=!1,v="translate-cloak",w=!1,x=".",y="2.4.2",z=function(){var a=window.navigator;return((angular.isArray(a.languages)?a.languages[0]:a.language||a.browserLanguage||a.systemLanguage||a.userLanguage)||"").split("-").join("_")},A=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},B=function(){return this.replace(/^\s+|\s+$/g,"")},C=function(a){for(var b=[],d=angular.lowercase(a),e=0,f=r.length;f>e;e++)b.push(angular.lowercase(r[e]));if(A(b,d)>-1)return a;if(c){var g;for(var h in c){var i=!1,j=Object.prototype.hasOwnProperty.call(c,h)&&angular.lowercase(h)===angular.lowercase(a);if("*"===h.slice(-1)&&(i=h.slice(0,-1)===a.slice(0,h.length-1)),(j||i)&&(g=c[h],A(b,angular.lowercase(g))>-1))return g}}var k=a.split("_");return k.length>1&&A(b,angular.lowercase(k[0]))>-1?k[0]:a},D=function(a,b){if(!a&&!b)return q;if(a&&!b){if(angular.isString(a))return q[a]}else angular.isObject(q[a])||(q[a]={}),angular.extend(q[a],E(b));return this};this.translations=D,this.cloakClassName=function(a){return a?(v=a,this):v};var E=function(a,b,c,d){var e,f,g,h;b||(b=[]),c||(c={});for(e in a)Object.prototype.hasOwnProperty.call(a,e)&&(h=a[e],angular.isObject(h)?E(h,b.concat(e),c,e):(f=b.length?""+b.join(x)+x+e:e,b.length&&e===d&&(g=""+b.join(x),c[g]="@:"+f),c[f]=h));return c};this.addInterpolation=function(a){return t.push(a),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(a){return k=a,this},this.useSanitizeValueStrategy=function(a){return u=a,this},this.preferredLanguage=function(a){return F(a),this};var F=function(a){return a&&(b=a),b};this.translationNotFoundIndicator=function(a){return this.translationNotFoundIndicatorLeft(a),this.translationNotFoundIndicatorRight(a),this},this.translationNotFoundIndicatorLeft=function(a){return a?(n=a,this):n},this.translationNotFoundIndicatorRight=function(a){return a?(o=a,this):o},this.fallbackLanguage=function(a){return G(a),this};var G=function(a){return a?(angular.isString(a)?(e=!0,d=[a]):angular.isArray(a)&&(e=!1,d=a),angular.isString(b)&&A(d,b)<0&&d.push(b),this):e?d[0]:d};this.use=function(a){if(a){if(!q[a]&&!l)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+a+"'");return f=a,this}return f};var H=function(a){return a?void(s=a):i?i+s:s};this.storageKey=H,this.useUrlLoader=function(a,b){return this.useLoader("$translateUrlLoader",angular.extend({url:a},b))},this.useStaticFilesLoader=function(a){return this.useLoader("$translateStaticFilesLoader",a)},this.useLoader=function(a,b){return l=a,m=b||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(a){return h=a,this},this.storagePrefix=function(a){return a?(i=a,this):a},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(a){return j=a,this},this.usePostCompiling=function(a){return w=!!a,this},this.determinePreferredLanguage=function(a){var c=a&&angular.isFunction(a)?a():z();return b=r.length?C(c):c,this},this.registerAvailableLanguageKeys=function(a,b){return a?(r=a,b&&(c=b),this):r},this.useLoaderCache=function(a){return a===!1?p=void 0:a===!0?p=!0:"undefined"==typeof a?p="$translationCache":a&&(p=a),this},this.$get=["$log","$injector","$rootScope","$q",function(a,c,i,r){var x,z,I,J=c.get(k||"$translateDefaultInterpolation"),K=!1,L={},M={},N=function(a,c,e){if(angular.isArray(a)){var g=function(a){for(var b={},d=[],f=function(a){var d=r.defer(),f=function(c){b[a]=c,d.resolve([a,c])};return N(a,c,e).then(f,f),d.promise},g=0,h=a.length;h>g;g++)d.push(f(a[g]));return r.all(d).then(function(){return b})};return g(a)}var i=r.defer();a&&(a=B.apply(a));var j=function(){var a=b?M[b]:M[f];if(z=0,h&&!a){var c=x.get(s);if(a=M[c],d&&d.length){var e=A(d,c);z=0===e?1:0,A(d,b)<0&&d.push(b)}}return a}();return j?j.then(function(){Z(a,c,e).then(i.resolve,i.reject)},i.reject):Z(a,c,e).then(i.resolve,i.reject),i.promise},O=function(a){return n&&(a=[n,a].join(" ")),o&&(a=[a,o].join(" ")),a},P=function(a){f=a,i.$emit("$translateChangeSuccess",{language:a}),h&&x.set(N.storageKey(),f),J.setLocale(f),angular.forEach(L,function(a,b){L[b].setLocale(f)}),i.$emit("$translateChangeEnd",{language:a})},Q=function(a){if(!a)throw"No language key specified for loading.";var b=r.defer();i.$emit("$translateLoadingStart",{language:a}),K=!0;var d=p;"string"==typeof d&&(d=c.get(d));var e=angular.extend({},m,{key:a,$http:angular.extend({},{cache:d},m.$http)});return c.get(l)(e).then(function(c){var d={};i.$emit("$translateLoadingSuccess",{language:a}),angular.isArray(c)?angular.forEach(c,function(a){angular.extend(d,E(a))}):angular.extend(d,E(c)),K=!1,b.resolve({key:a,table:d}),i.$emit("$translateLoadingEnd",{language:a})},function(a){i.$emit("$translateLoadingError",{language:a}),b.reject(a),i.$emit("$translateLoadingEnd",{language:a})}),b.promise};if(h&&(x=c.get(h),!x.get||!x.set))throw new Error("Couldn't use storage '"+h+"', missing get() or set() method!");angular.isFunction(J.useSanitizeValueStrategy)&&J.useSanitizeValueStrategy(u),t.length&&angular.forEach(t,function(a){var d=c.get(a);d.setLocale(b||f),angular.isFunction(d.useSanitizeValueStrategy)&&d.useSanitizeValueStrategy(u),L[d.getInterpolationIdentifier()]=d});var R=function(a){var b=r.defer();return Object.prototype.hasOwnProperty.call(q,a)?b.resolve(q[a]):M[a]?M[a].then(function(a){D(a.key,a.table),b.resolve(a.table)},b.reject):b.reject(),b.promise},S=function(a,b,c,d){var e=r.defer();return R(a).then(function(g){Object.prototype.hasOwnProperty.call(g,b)?(d.setLocale(a),e.resolve(d.interpolate(g[b],c)),d.setLocale(f)):e.reject()},e.reject),e.promise},T=function(a,b,c,d){var e,g=q[a];return Object.prototype.hasOwnProperty.call(g,b)&&(d.setLocale(a),e=d.interpolate(g[b],c),d.setLocale(f)),e},U=function(a){if(j){var b=c.get(j)(a,f);return void 0!==b?b:a}return a},V=function(a,b,c,e){var f=r.defer();if(a<d.length){var g=d[a];S(g,b,c,e).then(f.resolve,function(){V(a+1,b,c,e).then(f.resolve)})}else f.resolve(U(b));return f.promise},W=function(a,b,c,e){var f;if(a<d.length){var g=d[a];f=T(g,b,c,e),f||(f=W(a+1,b,c,e))}return f},X=function(a,b,c){return V(I>0?I:z,a,b,c)},Y=function(a,b,c){return W(I>0?I:z,a,b,c)},Z=function(a,b,c){var e=r.defer(),g=f?q[f]:q,h=c?L[c]:J;if(g&&Object.prototype.hasOwnProperty.call(g,a)){var i=g[a];"@:"===i.substr(0,2)?N(i.substr(2),b,c).then(e.resolve,e.reject):e.resolve(h.interpolate(i,b))}else{var k;j&&!K&&(k=U(a)),f&&d&&d.length?X(a,b,h).then(function(a){e.resolve(a)},function(a){e.reject(O(a))}):j&&!K&&k?e.resolve(k):e.reject(O(a))}return e.promise},$=function(a,b,c){var e,g=f?q[f]:q,h=c?L[c]:J;if(g&&Object.prototype.hasOwnProperty.call(g,a)){var i=g[a];e="@:"===i.substr(0,2)?$(i.substr(2),b,c):h.interpolate(i,b)}else{var k;j&&!K&&(k=U(a)),f&&d&&d.length?(z=0,e=Y(a,b,h)):e=j&&!K&&k?k:O(a)}return e};if(N.preferredLanguage=function(a){return a&&F(a),b},N.cloakClassName=function(){return v},N.fallbackLanguage=function(a){if(void 0!==a&&null!==a){if(G(a),l&&d&&d.length)for(var b=0,c=d.length;c>b;b++)M[d[b]]||(M[d[b]]=Q(d[b]));N.use(N.use())}return e?d[0]:d},N.useFallbackLanguage=function(a){if(void 0!==a&&null!==a)if(a){var b=A(d,a);b>-1&&(I=b)}else I=0},N.proposedLanguage=function(){return g},N.storage=function(){return x},N.use=function(a){if(!a)return f;var b=r.defer();i.$emit("$translateChangeStart",{language:a});var c=C(a);return c&&(a=c),q[a]||!l||M[a]?(b.resolve(a),P(a)):(g=a,M[a]=Q(a).then(function(c){D(c.key,c.table),b.resolve(c.key),P(c.key),g===a&&(g=void 0)},function(a){g===a&&(g=void 0),i.$emit("$translateChangeError",{language:a}),b.reject(a),i.$emit("$translateChangeEnd",{language:a})})),b.promise},N.storageKey=function(){return H()},N.isPostCompilingEnabled=function(){return w},N.refresh=function(a){function b(){e.resolve(),i.$emit("$translateRefreshEnd",{language:a})}function c(){e.reject(),i.$emit("$translateRefreshEnd",{language:a})}if(!l)throw new Error("Couldn't refresh translation table, no loader registered!");var e=r.defer();if(i.$emit("$translateRefreshStart",{language:a}),a)q[a]?Q(a).then(function(c){D(c.key,c.table),a===f&&P(f),b()},c):c();else{var g=[],h={};if(d&&d.length)for(var j=0,k=d.length;k>j;j++)g.push(Q(d[j])),h[d[j]]=!0;f&&!h[f]&&g.push(Q(f)),r.all(g).then(function(a){angular.forEach(a,function(a){q[a.key]&&delete q[a.key],D(a.key,a.table)}),f&&P(f),b()})}return e.promise},N.instant=function(a,c,e){if(null===a||angular.isUndefined(a))return a;if(angular.isArray(a)){for(var g={},h=0,i=a.length;i>h;h++)g[a[h]]=N.instant(a[h],c,e);return g}if(angular.isString(a)&&a.length<1)return a;a&&(a=B.apply(a));var k,l=[];b&&l.push(b),f&&l.push(f),d&&d.length&&(l=l.concat(d));for(var m=0,n=l.length;n>m;m++){var o=l[m];if(q[o]&&"undefined"!=typeof q[o][a]&&(k=$(a,c,e)),"undefined"!=typeof k)break}return k||""===k||(k=J.interpolate(a,c),j&&!K&&(k=U(a))),k},N.versionInfo=function(){return y},N.loaderCache=function(){return p},l&&(angular.equals(q,{})&&N.use(N.use()),d&&d.length))for(var _=function(a){D(a.key,a.table),i.$emit("$translateChangeEnd",{language:a.key})},aa=0,ba=d.length;ba>aa;aa++)M[d[aa]]=Q(d[aa]).then(_);return N}]}]),angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",["$interpolate",function(a){var b,c={},d="default",e=null,f={escaped:function(a){var b={};for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=angular.element("<div></div>").text(a[c]).html());return b}},g=function(a){var b;return b=angular.isFunction(f[e])?f[e](a):a};return c.setLocale=function(a){b=a},c.getInterpolationIdentifier=function(){return d},c.useSanitizeValueStrategy=function(a){return e=a,this},c.interpolate=function(b,c){return e&&(c=g(c)),a(b)(c||{})},c}]),angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",["$translate","$q","$interpolate","$compile","$parse","$rootScope",function(a,b,c,d,e,f){return{restrict:"AE",scope:!0,compile:function(b,g){var h=g.translateValues?g.translateValues:void 0,i=g.translateInterpolation?g.translateInterpolation:void 0,j=b[0].outerHTML.match(/translate-value-+/i),k="^(.*)("+c.startSymbol()+".*"+c.endSymbol()+")(.*)";return function(b,l,m){if(b.interpolateParams={},b.preText="",b.postText="",m.$observe("translate",function(a){if(angular.equals(a,"")||!angular.isDefined(a)){var d=l.text().match(k);angular.isArray(d)?(b.preText=d[1],
b.postText=d[3],b.translationId=c(d[2])(b.$parent)):b.translationId=l.text().replace(/^\s+|\s+$/g,"")}else b.translationId=a}),m.$observe("translateDefault",function(a){b.defaultText=a}),h&&m.$observe("translateValues",function(a){a&&b.$parent.$watch(function(){angular.extend(b.interpolateParams,e(a)(b.$parent))})}),j){var n=function(a){m.$observe(a,function(c){b.interpolateParams[angular.lowercase(a.substr(14,1))+a.substr(15)]=c})};for(var o in m)Object.prototype.hasOwnProperty.call(m,o)&&"translateValue"===o.substr(0,14)&&"translateValues"!==o&&n(o)}var p=function(b,c,e){e||"undefined"==typeof c.defaultText||(b=c.defaultText),l.html(c.preText+b+c.postText);var f=a.isPostCompilingEnabled(),h="undefined"!=typeof g.translateCompile,i=h&&"false"!==g.translateCompile;(f&&!h||i)&&d(l.contents())(c)},q=function(){return h||j?function(){var c=function(){b.translationId&&b.interpolateParams&&a(b.translationId,b.interpolateParams,i).then(function(a){p(a,b,!0)},function(a){p(a,b,!1)})};b.$watch("interpolateParams",c,!0),b.$watch("translationId",c)}:function(){var c=b.$watch("translationId",function(d){b.translationId&&d&&a(d,{},i).then(function(a){p(a,b,!0),c()},function(a){p(a,b,!1),c()})},!0)}}(),r=f.$on("$translateChangeSuccess",q);q(),b.$on("$destroy",r)}}}}]),angular.module("pascalprecht.translate").directive("translateCloak",["$rootScope","$translate",function(a,b){return{compile:function(c){var d=function(){c.addClass(b.cloakClassName())},e=function(){c.removeClass(b.cloakClassName())},f=a.$on("$translateChangeEnd",function(){e(),f(),f=null});return d(),function(a,c,f){f.translateCloak&&f.translateCloak.length&&f.$observe("translateCloak",function(a){b(a).then(e,d)})}}}}]),angular.module("pascalprecht.translate").filter("translate",["$parse","$translate",function(a,b){var c=function(c,d,e){return angular.isObject(d)||(d=a(d)(this)),b.instant(c,d,e)};return c.$stateful=!0,c}]),function(a,b,c){"use strict";function d(a){function b(a,b){return a?e(a)?a.indexOf(b)>=0:a.hasOwnProperty(b):void 0}return["$animate",function(a){return{restrict:"AE",transclude:"element",terminal:!0,require:"^^ngMessages",link:function(c,d,f,g,h){var i,j=d[0],k=f.ngMessage||f.when,l=f.ngMessageExp||f.whenExp,m=function(a){i=a?e(a)?a:a.split(/[\s,]+/):null,g.reRender()};l?(m(c.$eval(l)),c.$watchCollection(l,m)):m(k);var n,o;g.register(j,o={test:function(a){return b(i,a)},attach:function(){n||h(c,function(b){a.enter(b,null,d),n=b,n.on("$destroy",function(){n&&(g.deregister(j),o.detach())})})},detach:function(){if(n){var b=n;n=null,a.leave(b)}}})}}}]}var e=b.isArray,f=b.forEach,g=b.isString,h=b.element;b.module("ngMessages",[]).directive("ngMessages",["$animate",function(a){function b(a,b){return g(b)&&0===b.length||c(a.$eval(b))}function c(a){return g(a)?a.length:!!a}var d="ng-active",e="ng-inactive";return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(g,h,i){function j(a,b){for(var c=b,d=[];c&&c!==a;){var e=c.$$ngMessageNode;if(e&&e.length)return q[e];c.childNodes.length&&-1==d.indexOf(c)?(d.push(c),c=c.childNodes[c.childNodes.length-1]):c=c.previousSibling||c.parentNode}}function k(a,b,c){var d=q[c];if(o.head){var e=j(a,b);e?(d.next=e.next,e.next=d):(d.next=o.head,o.head=d)}else o.head=d}function l(a,b,c){var d=q[c],e=j(a,b);e?e.next=d.next:o.head=d.next}var m,n,o=this,p=0,q=this.messages={};this.render=function(j){j=j||{},m=!1,n=j;for(var k=b(h,i.ngMessagesMultiple)||b(h,i.multiple),l=[],p={},q=o.head,r=!1,s=0;null!=q;){s++;var t=q.message,u=!1;r||f(j,function(a,b){if(!u&&c(a)&&t.test(b)){if(p[b])return;p[b]=!0,u=!0,t.attach()}}),u?r=!k:l.push(t),q=q.next}f(l,function(a){a.detach()}),l.length!==s?a.setClass(g,d,e):a.setClass(g,e,d)},h.$watchCollection(i.ngMessages||i["for"],o.render),this.reRender=function(){m||(m=!0,h.$evalAsync(function(){m&&n&&o.render(n)}))},this.register=function(a,b){var c=p.toString();q[c]={message:b},k(g[0],a,c),a.$$ngMessageNode=c,p++,o.reRender()},this.deregister=function(a){var b=a.$$ngMessageNode;delete a.$$ngMessageNode,l(g[0],a,b),delete q[b],o.reRender()}}]}}]).directive("ngMessagesInclude",["$templateRequest","$document","$compile",function(a,b,c){return{restrict:"AE",require:"^^ngMessages",link:function(d,e,f){var g=f.ngMessagesInclude||f.src;a(g).then(function(a){c(a)(d,function(a){e.after(a);var c=h(b[0].createComment(" ngMessagesInclude: "+g+" "));e.after(c),e.remove()})})}}}]).directive("ngMessage",d("AE")).directive("ngMessageExp",d("A"))}(window,window.angular),function(){var a=this,b=a._,c={},d=Array.prototype,e=Object.prototype,f=Function.prototype,g=d.push,h=d.slice,i=d.concat,j=e.toString,k=e.hasOwnProperty,l=d.forEach,m=d.map,n=d.reduce,o=d.reduceRight,p=d.filter,q=d.every,r=d.some,s=d.indexOf,t=d.lastIndexOf,u=Array.isArray,v=Object.keys,w=f.bind,x=function(a){return a instanceof x?a:this instanceof x?void(this._wrapped=a):new x(a)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=x),exports._=x):a._=x,x.VERSION="1.6.0";var y=x.each=x.forEach=function(a,b,d){if(null==a)return a;if(l&&a.forEach===l)a.forEach(b,d);else if(a.length===+a.length){for(var e=0,f=a.length;f>e;e++)if(b.call(d,a[e],e,a)===c)return}else for(var g=x.keys(a),e=0,f=g.length;f>e;e++)if(b.call(d,a[g[e]],g[e],a)===c)return;return a};x.map=x.collect=function(a,b,c){var d=[];return null==a?d:m&&a.map===m?a.map(b,c):(y(a,function(a,e,f){d.push(b.call(c,a,e,f))}),d)};var z="Reduce of empty array with no initial value";x.reduce=x.foldl=x.inject=function(a,b,c,d){var e=arguments.length>2;if(null==a&&(a=[]),n&&a.reduce===n)return d&&(b=x.bind(b,d)),e?a.reduce(b,c):a.reduce(b);if(y(a,function(a,f,g){e?c=b.call(d,c,a,f,g):(c=a,e=!0)}),!e)throw new TypeError(z);return c},x.reduceRight=x.foldr=function(a,b,c,d){var e=arguments.length>2;if(null==a&&(a=[]),o&&a.reduceRight===o)return d&&(b=x.bind(b,d)),e?a.reduceRight(b,c):a.reduceRight(b);var f=a.length;if(f!==+f){var g=x.keys(a);f=g.length}if(y(a,function(h,i,j){i=g?g[--f]:--f,e?c=b.call(d,c,a[i],i,j):(c=a[i],e=!0)}),!e)throw new TypeError(z);return c},x.find=x.detect=function(a,b,c){var d;return A(a,function(a,e,f){return b.call(c,a,e,f)?(d=a,!0):void 0}),d},x.filter=x.select=function(a,b,c){var d=[];return null==a?d:p&&a.filter===p?a.filter(b,c):(y(a,function(a,e,f){b.call(c,a,e,f)&&d.push(a)}),d)},x.reject=function(a,b,c){return x.filter(a,function(a,d,e){return!b.call(c,a,d,e)},c)},x.every=x.all=function(a,b,d){b||(b=x.identity);var e=!0;return null==a?e:q&&a.every===q?a.every(b,d):(y(a,function(a,f,g){return(e=e&&b.call(d,a,f,g))?void 0:c}),!!e)};var A=x.some=x.any=function(a,b,d){b||(b=x.identity);var e=!1;return null==a?e:r&&a.some===r?a.some(b,d):(y(a,function(a,f,g){return e||(e=b.call(d,a,f,g))?c:void 0}),!!e)};x.contains=x.include=function(a,b){return null==a?!1:s&&a.indexOf===s?-1!=a.indexOf(b):A(a,function(a){return a===b})},x.invoke=function(a,b){var c=h.call(arguments,2),d=x.isFunction(b);return x.map(a,function(a){return(d?b:a[b]).apply(a,c)})},x.pluck=function(a,b){return x.map(a,x.property(b))},x.where=function(a,b){return x.filter(a,x.matches(b))},x.findWhere=function(a,b){return x.find(a,x.matches(b))},x.max=function(a,b,c){if(!b&&x.isArray(a)&&a[0]===+a[0]&&a.length<65535)return Math.max.apply(Math,a);var d=-(1/0),e=-(1/0);return y(a,function(a,f,g){var h=b?b.call(c,a,f,g):a;h>e&&(d=a,e=h)}),d},x.min=function(a,b,c){if(!b&&x.isArray(a)&&a[0]===+a[0]&&a.length<65535)return Math.min.apply(Math,a);var d=1/0,e=1/0;return y(a,function(a,f,g){var h=b?b.call(c,a,f,g):a;e>h&&(d=a,e=h)}),d},x.shuffle=function(a){var b,c=0,d=[];return y(a,function(a){b=x.random(c++),d[c-1]=d[b],d[b]=a}),d},x.sample=function(a,b,c){return null==b||c?(a.length!==+a.length&&(a=x.values(a)),a[x.random(a.length-1)]):x.shuffle(a).slice(0,Math.max(0,b))};var B=function(a){return null==a?x.identity:x.isFunction(a)?a:x.property(a)};x.sortBy=function(a,b,c){return b=B(b),x.pluck(x.map(a,function(a,d,e){return{value:a,index:d,criteria:b.call(c,a,d,e)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;if(c!==d){if(c>d||void 0===c)return 1;if(d>c||void 0===d)return-1}return a.index-b.index}),"value")};var C=function(a){return function(b,c,d){var e={};return c=B(c),y(b,function(f,g){var h=c.call(d,f,g,b);a(e,h,f)}),e}};x.groupBy=C(function(a,b,c){x.has(a,b)?a[b].push(c):a[b]=[c]}),x.indexBy=C(function(a,b,c){a[b]=c}),x.countBy=C(function(a,b){x.has(a,b)?a[b]++:a[b]=1}),x.sortedIndex=function(a,b,c,d){c=B(c);for(var e=c.call(d,b),f=0,g=a.length;g>f;){var h=f+g>>>1;c.call(d,a[h])<e?f=h+1:g=h}return f},x.toArray=function(a){return a?x.isArray(a)?h.call(a):a.length===+a.length?x.map(a,x.identity):x.values(a):[]},x.size=function(a){return null==a?0:a.length===+a.length?a.length:x.keys(a).length},x.first=x.head=x.take=function(a,b,c){return null!=a?null==b||c?a[0]:0>b?[]:h.call(a,0,b):void 0},x.initial=function(a,b,c){return h.call(a,0,a.length-(null==b||c?1:b))},x.last=function(a,b,c){return null!=a?null==b||c?a[a.length-1]:h.call(a,Math.max(a.length-b,0)):void 0},x.rest=x.tail=x.drop=function(a,b,c){return h.call(a,null==b||c?1:b)},x.compact=function(a){return x.filter(a,x.identity)};var D=function(a,b,c){return b&&x.every(a,x.isArray)?i.apply(c,a):(y(a,function(a){x.isArray(a)||x.isArguments(a)?b?g.apply(c,a):D(a,b,c):c.push(a)}),c)};x.flatten=function(a,b){return D(a,b,[])},x.without=function(a){return x.difference(a,h.call(arguments,1))},x.partition=function(a,b){var c=[],d=[];return y(a,function(a){(b(a)?c:d).push(a)}),[c,d]},x.uniq=x.unique=function(a,b,c,d){x.isFunction(b)&&(d=c,c=b,b=!1);var e=c?x.map(a,c,d):a,f=[],g=[];return y(e,function(c,d){(b?d&&g[g.length-1]===c:x.contains(g,c))||(g.push(c),f.push(a[d]))}),f},x.union=function(){return x.uniq(x.flatten(arguments,!0))},x.intersection=function(a){var b=h.call(arguments,1);return x.filter(x.uniq(a),function(a){return x.every(b,function(b){return x.contains(b,a)})})},x.difference=function(a){var b=i.apply(d,h.call(arguments,1));return x.filter(a,function(a){return!x.contains(b,a)})},x.zip=function(){for(var a=x.max(x.pluck(arguments,"length").concat(0)),b=new Array(a),c=0;a>c;c++)b[c]=x.pluck(arguments,""+c);return b},x.object=function(a,b){if(null==a)return{};for(var c={},d=0,e=a.length;e>d;d++)b?c[a[d]]=b[d]:c[a[d][0]]=a[d][1];return c},x.indexOf=function(a,b,c){if(null==a)return-1;var d=0,e=a.length;if(c){if("number"!=typeof c)return d=x.sortedIndex(a,b),a[d]===b?d:-1;d=0>c?Math.max(0,e+c):c}if(s&&a.indexOf===s)return a.indexOf(b,c);for(;e>d;d++)if(a[d]===b)return d;return-1},x.lastIndexOf=function(a,b,c){if(null==a)return-1;var d=null!=c;if(t&&a.lastIndexOf===t)return d?a.lastIndexOf(b,c):a.lastIndexOf(b);for(var e=d?c:a.length;e--;)if(a[e]===b)return e;return-1},x.range=function(a,b,c){arguments.length<=1&&(b=a||0,a=0),c=arguments[2]||1;for(var d=Math.max(Math.ceil((b-a)/c),0),e=0,f=new Array(d);d>e;)f[e++]=a,a+=c;return f};var E=function(){};x.bind=function(a,b){var c,d;if(w&&a.bind===w)return w.apply(a,h.call(arguments,1));if(!x.isFunction(a))throw new TypeError;return c=h.call(arguments,2),d=function(){if(!(this instanceof d))return a.apply(b,c.concat(h.call(arguments)));E.prototype=a.prototype;var e=new E;E.prototype=null;var f=a.apply(e,c.concat(h.call(arguments)));return Object(f)===f?f:e}},x.partial=function(a){var b=h.call(arguments,1);return function(){for(var c=0,d=b.slice(),e=0,f=d.length;f>e;e++)d[e]===x&&(d[e]=arguments[c++]);for(;c<arguments.length;)d.push(arguments[c++]);return a.apply(this,d)}},x.bindAll=function(a){var b=h.call(arguments,1);if(0===b.length)throw new Error("bindAll must be passed function names");return y(b,function(b){a[b]=x.bind(a[b],a)}),a},x.memoize=function(a,b){var c={};return b||(b=x.identity),function(){var d=b.apply(this,arguments);return x.has(c,d)?c[d]:c[d]=a.apply(this,arguments)}},x.delay=function(a,b){var c=h.call(arguments,2);return setTimeout(function(){return a.apply(null,c)},b)},x.defer=function(a){return x.delay.apply(x,[a,1].concat(h.call(arguments,1)))},x.throttle=function(a,b,c){var d,e,f,g=null,h=0;c||(c={});var i=function(){h=c.leading===!1?0:x.now(),g=null,f=a.apply(d,e),d=e=null};return function(){var j=x.now();h||c.leading!==!1||(h=j);var k=b-(j-h);return d=this,e=arguments,0>=k?(clearTimeout(g),g=null,h=j,f=a.apply(d,e),d=e=null):g||c.trailing===!1||(g=setTimeout(i,k)),f}},x.debounce=function(a,b,c){var d,e,f,g,h,i=function(){var j=x.now()-g;b>j?d=setTimeout(i,b-j):(d=null,c||(h=a.apply(f,e),f=e=null))};return function(){f=this,e=arguments,g=x.now();var j=c&&!d;return d||(d=setTimeout(i,b)),j&&(h=a.apply(f,e),f=e=null),h}},x.once=function(a){var b,c=!1;return function(){return c?b:(c=!0,b=a.apply(this,arguments),a=null,b)}},x.wrap=function(a,b){return x.partial(b,a)},x.compose=function(){var a=arguments;return function(){for(var b=arguments,c=a.length-1;c>=0;c--)b=[a[c].apply(this,b)];return b[0]}},x.after=function(a,b){return function(){return--a<1?b.apply(this,arguments):void 0}},x.keys=function(a){if(!x.isObject(a))return[];if(v)return v(a);var b=[];for(var c in a)x.has(a,c)&&b.push(c);return b},x.values=function(a){for(var b=x.keys(a),c=b.length,d=new Array(c),e=0;c>e;e++)d[e]=a[b[e]];return d},x.pairs=function(a){for(var b=x.keys(a),c=b.length,d=new Array(c),e=0;c>e;e++)d[e]=[b[e],a[b[e]]];return d},x.invert=function(a){for(var b={},c=x.keys(a),d=0,e=c.length;e>d;d++)b[a[c[d]]]=c[d];return b},x.functions=x.methods=function(a){var b=[];for(var c in a)x.isFunction(a[c])&&b.push(c);return b.sort()},x.extend=function(a){return y(h.call(arguments,1),function(b){if(b)for(var c in b)a[c]=b[c]}),a},x.pick=function(a){var b={},c=i.apply(d,h.call(arguments,1));return y(c,function(c){c in a&&(b[c]=a[c])}),b},x.omit=function(a){var b={},c=i.apply(d,h.call(arguments,1));for(var e in a)x.contains(c,e)||(b[e]=a[e]);return b},x.defaults=function(a){return y(h.call(arguments,1),function(b){if(b)for(var c in b)void 0===a[c]&&(a[c]=b[c])}),a},x.clone=function(a){return x.isObject(a)?x.isArray(a)?a.slice():x.extend({},a):a},x.tap=function(a,b){return b(a),a};var F=function(a,b,c,d){if(a===b)return 0!==a||1/a==1/b;if(null==a||null==b)return a===b;a instanceof x&&(a=a._wrapped),b instanceof x&&(b=b._wrapped);var e=j.call(a);if(e!=j.call(b))return!1;switch(e){case"[object String]":return a==String(b);case"[object Number]":return a!=+a?b!=+b:0==a?1/a==1/b:a==+b;case"[object Date]":case"[object Boolean]":return+a==+b;case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline==b.multiline&&a.ignoreCase==b.ignoreCase}if("object"!=typeof a||"object"!=typeof b)return!1;for(var f=c.length;f--;)if(c[f]==a)return d[f]==b;var g=a.constructor,h=b.constructor;if(g!==h&&!(x.isFunction(g)&&g instanceof g&&x.isFunction(h)&&h instanceof h)&&"constructor"in a&&"constructor"in b)return!1;c.push(a),d.push(b);var i=0,k=!0;if("[object Array]"==e){if(i=a.length,k=i==b.length)for(;i--&&(k=F(a[i],b[i],c,d)););}else{for(var l in a)if(x.has(a,l)&&(i++,!(k=x.has(b,l)&&F(a[l],b[l],c,d))))break;if(k){for(l in b)if(x.has(b,l)&&!i--)break;k=!i}}return c.pop(),d.pop(),k};x.isEqual=function(a,b){return F(a,b,[],[])},x.isEmpty=function(a){if(null==a)return!0;if(x.isArray(a)||x.isString(a))return 0===a.length;for(var b in a)if(x.has(a,b))return!1;return!0},x.isElement=function(a){return!(!a||1!==a.nodeType)},x.isArray=u||function(a){return"[object Array]"==j.call(a)},x.isObject=function(a){return a===Object(a)},y(["Arguments","Function","String","Number","Date","RegExp"],function(a){x["is"+a]=function(b){return j.call(b)=="[object "+a+"]"}}),x.isArguments(arguments)||(x.isArguments=function(a){return!(!a||!x.has(a,"callee"))}),"function"!=typeof/./&&(x.isFunction=function(a){return"function"==typeof a}),x.isFinite=function(a){return isFinite(a)&&!isNaN(parseFloat(a))},x.isNaN=function(a){return x.isNumber(a)&&a!=+a},x.isBoolean=function(a){return a===!0||a===!1||"[object Boolean]"==j.call(a)},x.isNull=function(a){return null===a},x.isUndefined=function(a){return void 0===a},x.has=function(a,b){return k.call(a,b)},x.noConflict=function(){return a._=b,this},x.identity=function(a){return a},x.constant=function(a){return function(){return a}},x.property=function(a){return function(b){return b[a]}},x.matches=function(a){return function(b){if(b===a)return!0;for(var c in a)if(a[c]!==b[c])return!1;return!0}},x.times=function(a,b,c){for(var d=Array(Math.max(0,a)),e=0;a>e;e++)d[e]=b.call(c,e);return d},x.random=function(a,b){return null==b&&(b=a,a=0),a+Math.floor(Math.random()*(b-a+1))},x.now=Date.now||function(){return(new Date).getTime()};var G={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}};G.unescape=x.invert(G.escape);var H={escape:new RegExp("["+x.keys(G.escape).join("")+"]","g"),unescape:new RegExp("("+x.keys(G.unescape).join("|")+")","g")};x.each(["escape","unescape"],function(a){x[a]=function(b){return null==b?"":(""+b).replace(H[a],function(b){return G[a][b]})}}),x.result=function(a,b){if(null!=a){var c=a[b];return x.isFunction(c)?c.call(a):c}},x.mixin=function(a){y(x.functions(a),function(b){var c=x[b]=a[b];x.prototype[b]=function(){var a=[this._wrapped];return g.apply(a,arguments),M.call(this,c.apply(x,a))}})};var I=0;x.uniqueId=function(a){var b=++I+"";return a?a+b:b},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var J=/(.)^/,K={"'":"'","\\":"\\","\r":"r","\n":"n","	":"t","\u2028":"u2028","\u2029":"u2029"},L=/\\|'|\r|\n|\t|\u2028|\u2029/g;x.template=function(a,b,c){var d;c=x.defaults({},c,x.templateSettings);var e=new RegExp([(c.escape||J).source,(c.interpolate||J).source,(c.evaluate||J).source].join("|")+"|$","g"),f=0,g="__p+='";a.replace(e,function(b,c,d,e,h){return g+=a.slice(f,h).replace(L,function(a){return"\\"+K[a]}),c&&(g+="'+\n((__t=("+c+"))==null?'':_.escape(__t))+\n'"),d&&(g+="'+\n((__t=("+d+"))==null?'':__t)+\n'"),e&&(g+="';\n"+e+"\n__p+='"),f=h+b.length,b}),g+="';\n",c.variable||(g="with(obj||{}){\n"+g+"}\n"),g="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+g+"return __p;\n";try{d=new Function(c.variable||"obj","_",g)}catch(h){throw h.source=g,h}if(b)return d(b,x);var i=function(a){return d.call(this,a,x)};return i.source="function("+(c.variable||"obj")+"){\n"+g+"}",i},x.chain=function(a){return x(a).chain()};var M=function(a){return this._chain?x(a).chain():a};x.mixin(x),y(["pop","push","reverse","shift","sort","splice","unshift"],function(a){var b=d[a];x.prototype[a]=function(){var c=this._wrapped;return b.apply(c,arguments),"shift"!=a&&"splice"!=a||0!==c.length||delete c[0],M.call(this,c)}}),y(["concat","join","slice"],function(a){var b=d[a];x.prototype[a]=function(){return M.call(this,b.apply(this._wrapped,arguments))}}),x.extend(x.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),"function"==typeof define&&define.amd&&define("underscore",[],function(){return x})}.call(this),function(){var a;a=angular.module("ngQuickDate",[]),a.provider("ngQuickDateDefaults",function(){return{options:{dateFormat:"M/d/yyyy",timeFormat:"h:mm a",labelFormat:null,placeholder:"Click to Set Date",hoverText:null,buttonIconHtml:null,closeButtonHtml:"&times;",nextLinkHtml:"Next &rarr;",prevLinkHtml:"&larr; Prev",disableTimepicker:!1,disableClearButton:!1,defaultTime:null,dayAbbreviations:["Su","M","Tu","W","Th","F","Sa"],dateFilter:null,parseDateFunction:function(a){var b;return b=Date.parse(a),isNaN(b)?null:new Date(b)}},$get:function(){return this.options},set:function(a,b){var c,d,e;if("object"==typeof a){e=[];for(c in a)d=a[c],e.push(this.options[c]=d);return e}return this.options[a]=b}}}),a.directive("quickDatepicker",["ngQuickDateDefaults","$filter","$sce",function(a,b,c){return{restrict:"E",require:"?ngModel",scope:{dateFilter:"=?",onChange:"&",required:"@"},replace:!0,link:function(d,e,f,g){var h,i,j,k,l,m,n,o,p,q,r,s,t,u;return n=function(){var a;return r(),d.toggleCalendar(!1),d.weeks=[],d.inputDate=null,d.inputTime=null,d.invalid=!0,"string"==typeof f.initValue&&g.$setViewValue(f.initValue),d.defaultTime||(a=new Date(2013,0,1,12,0),d.datePlaceholder=b("date")(a,d.dateFormat),d.timePlaceholder=b("date")(a,d.timeFormat)),q(),p()},r=function(){var b,e;for(b in a)e=a[b],b.match(/[Hh]tml/)?d[b]=c.trustAsHtml(a[b]||""):!d[b]&&f[b]?d[b]=f[b]:d[b]||(d[b]=a[b]);return d.labelFormat||(d.labelFormat=d.dateFormat,d.disableTimepicker||(d.labelFormat+=" "+d.timeFormat)),f.iconClass&&f.iconClass.length?d.buttonIconHtml=c.trustAsHtml("<i ng-show='iconClass' class='"+f.iconClass+"'></i>"):void 0},i=!1,window.document.addEventListener("click",function(a){return d.calendarShown&&!i&&(d.toggleCalendar(!1),d.$apply()),i=!1}),angular.element(e[0])[0].addEventListener("click",function(a){return i=!0}),p=function(){var a;return a=g.$modelValue?o(g.$modelValue):null,t(),s(a),d.mainButtonStr=a?b("date")(a,d.labelFormat):d.placeholder,d.invalid=g.$invalid},s=function(a){return null!=a?(d.inputDate=b("date")(a,d.dateFormat),d.inputTime=b("date")(a,d.timeFormat)):(d.inputDate=null,d.inputTime=null)},q=function(a){var b;return null==a&&(a=null),b=null!=a?new Date(a):new Date,"Invalid Date"===b.toString()&&(b=new Date),b.setDate(1),d.calendarDate=new Date(b)},t=function(){var a,b,c,e,f,h,i,k,l,n,o,p,q,r;for(h=d.calendarDate.getDay(),e=m(d.calendarDate.getFullYear(),d.calendarDate.getMonth()),f=Math.ceil((h+e)/7),o=[],a=new Date(d.calendarDate),a.setDate(a.getDate()+-1*h),i=p=0,r=f-1;r>=0?r>=p:p>=r;i=r>=0?++p:--p)for(o.push([]),c=q=0;6>=q;c=++q)b=new Date(a),d.defaultTime&&(l=d.defaultTime.split(":"),b.setHours(l[0]||0),b.setMinutes(l[1]||0),b.setSeconds(l[2]||0)),k=g.$modelValue&&b&&j(b,g.$modelValue),n=j(b,new Date),o[i].push({date:b,selected:k,disabled:"function"==typeof d.dateFilter?!d.dateFilter(b):!1,other:b.getMonth()!==d.calendarDate.getMonth(),today:n}),a.setDate(a.getDate()+1);return d.weeks=o},g.$parsers.push(function(a){return d.required&&null==a?(g.$setValidity("required",!1),null):angular.isDate(a)?(g.$setValidity("required",!0),a):angular.isString(a)?(g.$setValidity("required",!0),d.parseDateFunction(a)):null}),g.$formatters.push(function(a){return angular.isDate(a)?a:angular.isString(a)?d.parseDateFunction(a):void 0}),h=function(a,c){return b("date")(a,c)},u=function(a){return"string"==typeof a?o(a):a},o=a.parseDateFunction,j=function(a,b,c){return null==c&&(c=!1),c?a-b===0:(a=u(a),b=u(b),a&&b&&a.getYear()===b.getYear()&&a.getMonth()===b.getMonth()&&a.getDate()===b.getDate())},k=function(a,b){return a&&b?parseInt(a.getTime()/6e4)===parseInt(b.getTime()/6e4):!1},m=function(a,b){return[31,a%4===0&&a%100!==0||a%400===0?29:28,31,30,31,30,31,31,30,31,30,31][b]},l=function(a,b){var c,d,e,f,g,h;return g=c=d=h=f=null,e=function(){var a;return a=+new Date-h,g=b>a&&a>0?setTimeout(e,b-a):null},function(){return d=this,c=arguments,h=+new Date,g||(g=setTimeout(e,b),f=a.apply(d,c),d=c=null),f}},g.$render=function(){return q(g.$viewValue),p()},g.$viewChangeListeners.unshift(function(){return q(g.$viewValue),p(),d.onChange?d.onChange():void 0}),d.$watch("calendarShown",function(a,b){var c;return a?(c=angular.element(e[0].querySelector(".quickdate-date-input"))[0],c.select()):void 0}),d.toggleCalendar=l(function(a){return isFinite(a)?d.calendarShown=a:d.calendarShown=!d.calendarShown},150),d.selectDate=function(a,b){var c;return null==b&&(b=!0),c=!g.$viewValue&&a||g.$viewValue&&!a||a&&g.$viewValue&&a.getTime()!==g.$viewValue.getTime(),"function"!=typeof d.dateFilter||d.dateFilter(a)?(g.$setViewValue(a),b&&d.toggleCalendar(!1),!0):!1},d.selectDateFromInput=function(a){var b,c,e,f;null==a&&(a=!1);try{if(c=o(d.inputDate),!c)throw"Invalid Date";if(!d.disableTimepicker&&d.inputTime&&d.inputTime.length&&c){if(f=d.disableTimepicker?"00:00:00":d.inputTime,e=o(""+d.inputDate+" "+f),!e)throw"Invalid Time";c=e}if(!k(g.$viewValue,c)&&!d.selectDate(c,!1))throw"Invalid Date";return a&&d.toggleCalendar(!1),d.inputDateErr=!1,d.inputTimeErr=!1}catch(h){if(b=h,"Invalid Date"===b)return d.inputDateErr=!0;if("Invalid Time"===b)return d.inputTimeErr=!0}},d.onDateInputTab=function(){return d.disableTimepicker&&d.toggleCalendar(!1),!0},d.onTimeInputTab=function(){return d.toggleCalendar(!1),!0},d.nextMonth=function(){return q(new Date(new Date(d.calendarDate).setMonth(d.calendarDate.getMonth()+1))),p()},d.prevMonth=function(){return q(new Date(new Date(d.calendarDate).setMonth(d.calendarDate.getMonth()-1))),p()},d.clear=function(){return d.selectDate(null,!0)},n()},template:"<div class='quickdate'>\n  <a href='' ng-focus='toggleCalendar()' ng-click='toggleCalendar()' class='quickdate-button' title='{{hoverText}}'><div ng-hide='iconClass' ng-bind-html='buttonIconHtml'></div>{{mainButtonStr}}</a>\n  <div class='quickdate-popup' ng-class='{open: calendarShown}'>\n    <a href='' tabindex='-1' class='quickdate-close' ng-click='toggleCalendar()'><div ng-bind-html='closeButtonHtml'></div></a>\n    <div class='quickdate-text-inputs'>\n      <div class='quickdate-input-wrapper'>\n        <label>Date</label>\n        <input class='quickdate-date-input' ng-class=\"{'ng-invalid': inputDateErr}\" name='inputDate' type='text' ng-model='inputDate' placeholder='{{ datePlaceholder }}' ng-enter=\"selectDateFromInput(true)\" ng-blur=\"selectDateFromInput(false)\" on-tab='onDateInputTab()' />\n      </div>\n      <div class='quickdate-input-wrapper' ng-hide='disableTimepicker'>\n        <label>Time</label>\n        <input class='quickdate-time-input' ng-class=\"{'ng-invalid': inputTimeErr}\" name='inputTime' type='text' ng-model='inputTime' placeholder='{{ timePlaceholder }}' ng-enter=\"selectDateFromInput(true)\" ng-blur=\"selectDateFromInput(false)\" on-tab='onTimeInputTab()'>\n      </div>\n    </div>\n    <div class='quickdate-calendar-header'>\n      <a href='' class='quickdate-prev-month quickdate-action-link' tabindex='-1' ng-click='prevMonth()'><div ng-bind-html='prevLinkHtml'></div></a>\n      <span class='quickdate-month'>{{calendarDate | date:'MMMM yyyy'}}</span>\n      <a href='' class='quickdate-next-month quickdate-action-link' ng-click='nextMonth()' tabindex='-1' ><div ng-bind-html='nextLinkHtml'></div></a>\n    </div>\n    <table class='quickdate-calendar'>\n      <thead>\n        <tr>\n          <th ng-repeat='day in dayAbbreviations'>{{day}}</th>\n        </tr>\n      </thead>\n      <tbody>\n        <tr ng-repeat='week in weeks'>\n          <td ng-mousedown='selectDate(day.date, true, true)' ng-click='$event.preventDefault()' ng-class='{\"other-month\": day.other, \"disabled-date\": day.disabled, \"selected\": day.selected, \"is-today\": day.today}' ng-repeat='day in week'>{{day.date | date:'d'}}</td>\n        </tr>\n      </tbody>\n    </table>\n    <div class='quickdate-popup-footer'>\n      <a href='' class='quickdate-clear' tabindex='-1' ng-hide='disableClearButton' ng-click='clear()'>Clear</a>\n    </div>\n  </div>\n</div>"}}]),a.directive("ngEnter",function(){return function(a,b,c){return b.bind("keydown keypress",function(b){return 13===b.which?(a.$apply(c.ngEnter),b.preventDefault()):void 0})}}),a.directive("onTab",function(){return{restrict:"A",link:function(a,b,c){return b.bind("keydown keypress",function(b){return 9!==b.which||b.shiftKey?void 0:a.$apply(c.onTab)})}}})}.call(this),function(a){function b(a,b,c){switch(arguments.length){case 2:return null!=a?a:b;case 3:return null!=a?a:null!=b?b:c;default:throw new Error("Implement me")}}function c(a,b){return za.call(a,b)}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function e(a){ta.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+a)}function f(a,b){var c=!0;return m(function(){return c&&(e(a),c=!1),b.apply(this,arguments)},b)}function g(a,b){qb[a]||(e(b),qb[a]=!0)}function h(a,b){return function(c){return p(a.call(this,c),b)}}function i(a,b){return function(c){return this.localeData().ordinal(a.call(this,c),b)}}function j(){}function k(a,b){b!==!1&&F(a),n(this,a),this._d=new Date(+a._d)}function l(a){var b=y(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+1e3*j+6e4*i+36e5*h,this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._locale=ta.localeData(),this._bubble()}function m(a,b){for(var d in b)c(b,d)&&(a[d]=b[d]);return c(b,"toString")&&(a.toString=b.toString),c(b,"valueOf")&&(a.valueOf=b.valueOf),a}function n(a,b){var c,d,e;if("undefined"!=typeof b._isAMomentObject&&(a._isAMomentObject=b._isAMomentObject),"undefined"!=typeof b._i&&(a._i=b._i),"undefined"!=typeof b._f&&(a._f=b._f),"undefined"!=typeof b._l&&(a._l=b._l),"undefined"!=typeof b._strict&&(a._strict=b._strict),"undefined"!=typeof b._tzm&&(a._tzm=b._tzm),"undefined"!=typeof b._isUTC&&(a._isUTC=b._isUTC),"undefined"!=typeof b._offset&&(a._offset=b._offset),"undefined"!=typeof b._pf&&(a._pf=b._pf),"undefined"!=typeof b._locale&&(a._locale=b._locale),Ia.length>0)for(c in Ia)d=Ia[c],e=b[d],"undefined"!=typeof e&&(a[d]=e);return a}function o(a){return 0>a?Math.ceil(a):Math.floor(a)}function p(a,b,c){for(var d=""+Math.abs(a),e=a>=0;d.length<b;)d="0"+d;return(e?c?"+":"":"-")+d}function q(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months,"M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function r(a,b){var c;return b=K(b,a),a.isBefore(b)?c=q(a,b):(c=q(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c}function s(a,b){return function(c,d){var e,f;return null===d||isNaN(+d)||(g(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period)."),f=c,c=d,d=f),c="string"==typeof c?+c:c,e=ta.duration(c,d),t(this,e,a),this}}function t(a,b,c,d){var e=b._milliseconds,f=b._days,g=b._months;d=null==d?!0:d,e&&a._d.setTime(+a._d+e*c),f&&na(a,"Date",ma(a,"Date")+f*c),g&&la(a,ma(a,"Month")+g*c),d&&ta.updateOffset(a,f||g)}function u(a){return"[object Array]"===Object.prototype.toString.call(a)}function v(a){return"[object Date]"===Object.prototype.toString.call(a)||a instanceof Date}function w(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;e>d;d++)(c&&a[d]!==b[d]||!c&&A(a[d])!==A(b[d]))&&g++;return g+f}function x(a){if(a){var b=a.toLowerCase().replace(/(.)s$/,"$1");a=jb[a]||kb[b]||b}return a}function y(a){var b,d,e={};for(d in a)c(a,d)&&(b=x(d),b&&(e[b]=a[d]));return e}function z(b){var c,d;if(0===b.indexOf("week"))c=7,d="day";else{if(0!==b.indexOf("month"))return;c=12,d="month"}ta[b]=function(e,f){var g,h,i=ta._locale[b],j=[];if("number"==typeof e&&(f=e,e=a),h=function(a){var b=ta().utc().set(d,a);return i.call(ta._locale,b,e||"")},null!=f)return h(f);for(g=0;c>g;g++)j.push(h(g));return j}}function A(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=b>=0?Math.floor(b):Math.ceil(b)),c}function B(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function C(a,b,c){return ha(ta([a,11,31+b-c]),b,c).week}function D(a){return E(a)?366:365}function E(a){return a%4===0&&a%100!==0||a%400===0}function F(a){var b;a._a&&-2===a._pf.overflow&&(b=a._a[Ba]<0||a._a[Ba]>11?Ba:a._a[Ca]<1||a._a[Ca]>B(a._a[Aa],a._a[Ba])?Ca:a._a[Da]<0||a._a[Da]>24||24===a._a[Da]&&(0!==a._a[Ea]||0!==a._a[Fa]||0!==a._a[Ga])?Da:a._a[Ea]<0||a._a[Ea]>59?Ea:a._a[Fa]<0||a._a[Fa]>59?Fa:a._a[Ga]<0||a._a[Ga]>999?Ga:-1,a._pf._overflowDayOfYear&&(Aa>b||b>Ca)&&(b=Ca),a._pf.overflow=b)}function G(b){return null==b._isValid&&(b._isValid=!isNaN(b._d.getTime())&&b._pf.overflow<0&&!b._pf.empty&&!b._pf.invalidMonth&&!b._pf.nullInput&&!b._pf.invalidFormat&&!b._pf.userInvalidated,b._strict&&(b._isValid=b._isValid&&0===b._pf.charsLeftOver&&0===b._pf.unusedTokens.length&&b._pf.bigHour===a)),b._isValid}function H(a){return a?a.toLowerCase().replace("_","-"):a}function I(a){for(var b,c,d,e,f=0;f<a.length;){for(e=H(a[f]).split("-"),b=e.length,c=H(a[f+1]),c=c?c.split("-"):null;b>0;){if(d=J(e.slice(0,b).join("-")))return d;
if(c&&c.length>=b&&w(e,c,!0)>=b-1)break;b--}f++}return null}function J(a){var b=null;if(!Ha[a]&&Ja)try{b=ta.locale(),require("./locale/"+a),ta.locale(b)}catch(c){}return Ha[a]}function K(a,b){var c,d;return b._isUTC?(c=b.clone(),d=(ta.isMoment(a)||v(a)?+a:+ta(a))-+c,c._d.setTime(+c._d+d),ta.updateOffset(c,!1),c):ta(a).local()}function L(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function M(a){var b,c,d=a.match(Na);for(b=0,c=d.length;c>b;b++)pb[d[b]]?d[b]=pb[d[b]]:d[b]=L(d[b]);return function(e){var f="";for(b=0;c>b;b++)f+=d[b]instanceof Function?d[b].call(e,a):d[b];return f}}function N(a,b){return a.isValid()?(b=O(b,a.localeData()),lb[b]||(lb[b]=M(b)),lb[b](a)):a.localeData().invalidDate()}function O(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Oa.lastIndex=0;d>=0&&Oa.test(a);)a=a.replace(Oa,c),Oa.lastIndex=0,d-=1;return a}function P(a,b){var c,d=b._strict;switch(a){case"Q":return Za;case"DDDD":return _a;case"YYYY":case"GGGG":case"gggg":return d?ab:Ra;case"Y":case"G":case"g":return cb;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return d?bb:Sa;case"S":if(d)return Za;case"SS":if(d)return $a;case"SSS":if(d)return _a;case"DDD":return Qa;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Ua;case"a":case"A":return b._locale._meridiemParse;case"x":return Xa;case"X":return Ya;case"Z":case"ZZ":return Va;case"T":return Wa;case"SSSS":return Ta;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return d?$a:Pa;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Pa;case"Do":return d?b._locale._ordinalParse:b._locale._ordinalParseLenient;default:return c=new RegExp(Y(X(a.replace("\\","")),"i"))}}function Q(a){a=a||"";var b=a.match(Va)||[],c=b[b.length-1]||[],d=(c+"").match(hb)||["-",0,0],e=+(60*d[1])+A(d[2]);return"+"===d[0]?-e:e}function R(a,b,c){var d,e=c._a;switch(a){case"Q":null!=b&&(e[Ba]=3*(A(b)-1));break;case"M":case"MM":null!=b&&(e[Ba]=A(b)-1);break;case"MMM":case"MMMM":d=c._locale.monthsParse(b,a,c._strict),null!=d?e[Ba]=d:c._pf.invalidMonth=b;break;case"D":case"DD":null!=b&&(e[Ca]=A(b));break;case"Do":null!=b&&(e[Ca]=A(parseInt(b.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":null!=b&&(c._dayOfYear=A(b));break;case"YY":e[Aa]=ta.parseTwoDigitYear(b);break;case"YYYY":case"YYYYY":case"YYYYYY":e[Aa]=A(b);break;case"a":case"A":c._isPm=c._locale.isPM(b);break;case"h":case"hh":c._pf.bigHour=!0;case"H":case"HH":e[Da]=A(b);break;case"m":case"mm":e[Ea]=A(b);break;case"s":case"ss":e[Fa]=A(b);break;case"S":case"SS":case"SSS":case"SSSS":e[Ga]=A(1e3*("0."+b));break;case"x":c._d=new Date(A(b));break;case"X":c._d=new Date(1e3*parseFloat(b));break;case"Z":case"ZZ":c._useUTC=!0,c._tzm=Q(b);break;case"dd":case"ddd":case"dddd":d=c._locale.weekdaysParse(b),null!=d?(c._w=c._w||{},c._w.d=d):c._pf.invalidWeekday=b;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":a=a.substr(0,1);case"gggg":case"GGGG":case"GGGGG":a=a.substr(0,2),b&&(c._w=c._w||{},c._w[a]=A(b));break;case"gg":case"GG":c._w=c._w||{},c._w[a]=ta.parseTwoDigitYear(b)}}function S(a){var c,d,e,f,g,h,i;c=a._w,null!=c.GG||null!=c.W||null!=c.E?(g=1,h=4,d=b(c.GG,a._a[Aa],ha(ta(),1,4).year),e=b(c.W,1),f=b(c.E,1)):(g=a._locale._week.dow,h=a._locale._week.doy,d=b(c.gg,a._a[Aa],ha(ta(),g,h).year),e=b(c.w,1),null!=c.d?(f=c.d,g>f&&++e):f=null!=c.e?c.e+g:g),i=ia(d,e,f,h,g),a._a[Aa]=i.year,a._dayOfYear=i.dayOfYear}function T(a){var c,d,e,f,g=[];if(!a._d){for(e=V(a),a._w&&null==a._a[Ca]&&null==a._a[Ba]&&S(a),a._dayOfYear&&(f=b(a._a[Aa],e[Aa]),a._dayOfYear>D(f)&&(a._pf._overflowDayOfYear=!0),d=da(f,0,a._dayOfYear),a._a[Ba]=d.getUTCMonth(),a._a[Ca]=d.getUTCDate()),c=0;3>c&&null==a._a[c];++c)a._a[c]=g[c]=e[c];for(;7>c;c++)a._a[c]=g[c]=null==a._a[c]?2===c?1:0:a._a[c];24===a._a[Da]&&0===a._a[Ea]&&0===a._a[Fa]&&0===a._a[Ga]&&(a._nextDay=!0,a._a[Da]=0),a._d=(a._useUTC?da:ca).apply(null,g),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()+a._tzm),a._nextDay&&(a._a[Da]=24)}}function U(a){var b;a._d||(b=y(a._i),a._a=[b.year,b.month,b.day||b.date,b.hour,b.minute,b.second,b.millisecond],T(a))}function V(a){var b=new Date;return a._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function W(b){if(b._f===ta.ISO_8601)return void $(b);b._a=[],b._pf.empty=!0;var c,d,e,f,g,h=""+b._i,i=h.length,j=0;for(e=O(b._f,b._locale).match(Na)||[],c=0;c<e.length;c++)f=e[c],d=(h.match(P(f,b))||[])[0],d&&(g=h.substr(0,h.indexOf(d)),g.length>0&&b._pf.unusedInput.push(g),h=h.slice(h.indexOf(d)+d.length),j+=d.length),pb[f]?(d?b._pf.empty=!1:b._pf.unusedTokens.push(f),R(f,d,b)):b._strict&&!d&&b._pf.unusedTokens.push(f);b._pf.charsLeftOver=i-j,h.length>0&&b._pf.unusedInput.push(h),b._pf.bigHour===!0&&b._a[Da]<=12&&(b._pf.bigHour=a),b._isPm&&b._a[Da]<12&&(b._a[Da]+=12),b._isPm===!1&&12===b._a[Da]&&(b._a[Da]=0),T(b),F(b)}function X(a){return a.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e})}function Y(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Z(a){var b,c,e,f,g;if(0===a._f.length)return a._pf.invalidFormat=!0,void(a._d=new Date(NaN));for(f=0;f<a._f.length;f++)g=0,b=n({},a),null!=a._useUTC&&(b._useUTC=a._useUTC),b._pf=d(),b._f=a._f[f],W(b),G(b)&&(g+=b._pf.charsLeftOver,g+=10*b._pf.unusedTokens.length,b._pf.score=g,(null==e||e>g)&&(e=g,c=b));m(a,c||b)}function $(a){var b,c,d=a._i,e=db.exec(d);if(e){for(a._pf.iso=!0,b=0,c=fb.length;c>b;b++)if(fb[b][1].exec(d)){a._f=fb[b][0]+(e[6]||" ");break}for(b=0,c=gb.length;c>b;b++)if(gb[b][1].exec(d)){a._f+=gb[b][0];break}d.match(Va)&&(a._f+="Z"),W(a)}else a._isValid=!1}function _(a){$(a),a._isValid===!1&&(delete a._isValid,ta.createFromInputFallback(a))}function aa(a,b){var c,d=[];for(c=0;c<a.length;++c)d.push(b(a[c],c));return d}function ba(b){var c,d=b._i;d===a?b._d=new Date:v(d)?b._d=new Date(+d):null!==(c=Ka.exec(d))?b._d=new Date(+c[1]):"string"==typeof d?_(b):u(d)?(b._a=aa(d.slice(0),function(a){return parseInt(a,10)}),T(b)):"object"==typeof d?U(b):"number"==typeof d?b._d=new Date(d):ta.createFromInputFallback(b)}function ca(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 1970>a&&h.setFullYear(a),h}function da(a){var b=new Date(Date.UTC.apply(null,arguments));return 1970>a&&b.setUTCFullYear(a),b}function ea(a,b){if("string"==typeof a)if(isNaN(a)){if(a=b.weekdaysParse(a),"number"!=typeof a)return null}else a=parseInt(a,10);return a}function fa(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function ga(a,b,c){var d=ta.duration(a).abs(),e=ya(d.as("s")),f=ya(d.as("m")),g=ya(d.as("h")),h=ya(d.as("d")),i=ya(d.as("M")),j=ya(d.as("y")),k=e<mb.s&&["s",e]||1===f&&["m"]||f<mb.m&&["mm",f]||1===g&&["h"]||g<mb.h&&["hh",g]||1===h&&["d"]||h<mb.d&&["dd",h]||1===i&&["M"]||i<mb.M&&["MM",i]||1===j&&["y"]||["yy",j];return k[2]=b,k[3]=+a>0,k[4]=c,fa.apply({},k)}function ha(a,b,c){var d,e=c-b,f=c-a.day();return f>e&&(f-=7),e-7>f&&(f+=7),d=ta(a).add(f,"d"),{week:Math.ceil(d.dayOfYear()/7),year:d.year()}}function ia(a,b,c,d,e){var f,g,h=da(a,0,1).getUTCDay();return h=0===h?7:h,c=null!=c?c:e,f=e-h+(h>d?7:0)-(e>h?7:0),g=7*(b-1)+(c-e)+f+1,{year:g>0?a:a-1,dayOfYear:g>0?g:D(a-1)+g}}function ja(b){var c,d=b._i,e=b._f;return b._locale=b._locale||ta.localeData(b._l),null===d||e===a&&""===d?ta.invalid({nullInput:!0}):("string"==typeof d&&(b._i=d=b._locale.preparse(d)),ta.isMoment(d)?new k(d,!0):(e?u(e)?Z(b):W(b):ba(b),c=new k(b),c._nextDay&&(c.add(1,"d"),c._nextDay=a),c))}function ka(a,b){var c,d;if(1===b.length&&u(b[0])&&(b=b[0]),!b.length)return ta();for(c=b[0],d=1;d<b.length;++d)b[d][a](c)&&(c=b[d]);return c}function la(a,b){var c;return"string"==typeof b&&(b=a.localeData().monthsParse(b),"number"!=typeof b)?a:(c=Math.min(a.date(),B(a.year(),b)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c),a)}function ma(a,b){return a._d["get"+(a._isUTC?"UTC":"")+b]()}function na(a,b,c){return"Month"===b?la(a,c):a._d["set"+(a._isUTC?"UTC":"")+b](c)}function oa(a,b){return function(c){return null!=c?(na(this,a,c),ta.updateOffset(this,b),this):ma(this,a)}}function pa(a){return 400*a/146097}function qa(a){return 146097*a/400}function ra(a){ta.duration.fn[a]=function(){return this._data[a]}}function sa(a){"undefined"==typeof ender&&(ua=xa.moment,a?xa.moment=f("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",ta):xa.moment=ta)}for(var ta,ua,va,wa="2.8.4",xa="undefined"!=typeof global?global:this,ya=Math.round,za=Object.prototype.hasOwnProperty,Aa=0,Ba=1,Ca=2,Da=3,Ea=4,Fa=5,Ga=6,Ha={},Ia=[],Ja="undefined"!=typeof module&&module&&module.exports,Ka=/^\/?Date\((\-?\d+)/i,La=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Ma=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Na=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,Oa=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Pa=/\d\d?/,Qa=/\d{1,3}/,Ra=/\d{1,4}/,Sa=/[+\-]?\d{1,6}/,Ta=/\d+/,Ua=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Va=/Z|[\+\-]\d\d:?\d\d/gi,Wa=/T/i,Xa=/[\+\-]?\d+/,Ya=/[\+\-]?\d+(\.\d{1,3})?/,Za=/\d/,$a=/\d\d/,_a=/\d{3}/,ab=/\d{4}/,bb=/[+-]?\d{6}/,cb=/[+-]?\d+/,db=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,eb="YYYY-MM-DDTHH:mm:ssZ",fb=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],gb=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],hb=/([\+\-]|\d\d)/gi,ib=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),jb={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},kb={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},lb={},mb={s:45,m:45,h:22,d:26,M:11},nb="DDD w W M D d".split(" "),ob="M D H h m s w W".split(" "),pb={M:function(){return this.month()+1},MMM:function(a){return this.localeData().monthsShort(this,a)},MMMM:function(a){return this.localeData().months(this,a)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(a){return this.localeData().weekdaysMin(this,a)},ddd:function(a){return this.localeData().weekdaysShort(this,a)},dddd:function(a){return this.localeData().weekdays(this,a)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return p(this.year()%100,2)},YYYY:function(){return p(this.year(),4)},YYYYY:function(){return p(this.year(),5)},YYYYYY:function(){var a=this.year(),b=a>=0?"+":"-";return b+p(Math.abs(a),6)},gg:function(){return p(this.weekYear()%100,2)},gggg:function(){return p(this.weekYear(),4)},ggggg:function(){return p(this.weekYear(),5)},GG:function(){return p(this.isoWeekYear()%100,2)},GGGG:function(){return p(this.isoWeekYear(),4)},GGGGG:function(){return p(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return A(this.milliseconds()/100)},SS:function(){return p(A(this.milliseconds()/10),2)},SSS:function(){return p(this.milliseconds(),3)},SSSS:function(){return p(this.milliseconds(),3)},Z:function(){var a=-this.zone(),b="+";return 0>a&&(a=-a,b="-"),b+p(A(a/60),2)+":"+p(A(a)%60,2)},ZZ:function(){var a=-this.zone(),b="+";return 0>a&&(a=-a,b="-"),b+p(A(a/60),2)+p(A(a)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},qb={},rb=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];nb.length;)va=nb.pop(),pb[va+"o"]=i(pb[va],va);for(;ob.length;)va=ob.pop(),pb[va+va]=h(pb[va],2);pb.DDDD=h(pb.DDD,3),m(j.prototype,{set:function(a){var b,c;for(c in a)b=a[c],"function"==typeof b?this[c]=b:this["_"+c]=b;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(a){return this._months[a.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(a){return this._monthsShort[a.month()]},monthsParse:function(a,b,c){var d,e,f;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),d=0;12>d;d++){if(e=ta.utc([2e3,d]),c&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(e,"").replace(".","")+"$","i"),this._shortMonthsParse[d]=new RegExp("^"+this.monthsShort(e,"").replace(".","")+"$","i")),c||this._monthsParse[d]||(f="^"+this.months(e,"")+"|^"+this.monthsShort(e,""),this._monthsParse[d]=new RegExp(f.replace(".",""),"i")),c&&"MMMM"===b&&this._longMonthsParse[d].test(a))return d;if(c&&"MMM"===b&&this._shortMonthsParse[d].test(a))return d;if(!c&&this._monthsParse[d].test(a))return d}},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(a){return this._weekdays[a.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(a){return this._weekdaysShort[a.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(a){return this._weekdaysMin[a.day()]},weekdaysParse:function(a){var b,c,d;for(this._weekdaysParse||(this._weekdaysParse=[]),b=0;7>b;b++)if(this._weekdaysParse[b]||(c=ta([2e3,1]).day(b),d="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[b]=new RegExp(d.replace(".",""),"i")),this._weekdaysParse[b].test(a))return b},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(a){var b=this._longDateFormat[a];return!b&&this._longDateFormat[a.toUpperCase()]&&(b=this._longDateFormat[a.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a]=b),b},isPM:function(a){return"p"===(a+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(a,b,c){var d=this._calendar[a];return"function"==typeof d?d.apply(b,[c]):d},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(a,b,c,d){var e=this._relativeTime[c];return"function"==typeof e?e(a,b,c,d):e.replace(/%d/i,a)},pastFuture:function(a,b){var c=this._relativeTime[a>0?"future":"past"];return"function"==typeof c?c(b):c.replace(/%s/i,b)},ordinal:function(a){return this._ordinal.replace("%d",a)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(a){return a},postformat:function(a){return a},week:function(a){return ha(a,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),ta=function(b,c,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._i=b,g._f=c,g._l=e,g._strict=f,g._isUTC=!1,g._pf=d(),ja(g)},ta.suppressDeprecationWarnings=!1,ta.createFromInputFallback=f("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))}),ta.min=function(){var a=[].slice.call(arguments,0);return ka("isBefore",a)},ta.max=function(){var a=[].slice.call(arguments,0);return ka("isAfter",a)},ta.utc=function(b,c,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._useUTC=!0,g._isUTC=!0,g._l=e,g._i=b,g._f=c,g._strict=f,g._pf=d(),ja(g).utc()},ta.unix=function(a){return ta(1e3*a)},ta.duration=function(a,b){var d,e,f,g,h=a,i=null;return ta.isDuration(a)?h={ms:a._milliseconds,d:a._days,M:a._months}:"number"==typeof a?(h={},b?h[b]=a:h.milliseconds=a):(i=La.exec(a))?(d="-"===i[1]?-1:1,h={y:0,d:A(i[Ca])*d,h:A(i[Da])*d,m:A(i[Ea])*d,s:A(i[Fa])*d,ms:A(i[Ga])*d}):(i=Ma.exec(a))?(d="-"===i[1]?-1:1,f=function(a){var b=a&&parseFloat(a.replace(",","."));return(isNaN(b)?0:b)*d},h={y:f(i[2]),M:f(i[3]),d:f(i[4]),h:f(i[5]),m:f(i[6]),s:f(i[7]),w:f(i[8])}):"object"==typeof h&&("from"in h||"to"in h)&&(g=r(ta(h.from),ta(h.to)),h={},h.ms=g.milliseconds,h.M=g.months),e=new l(h),ta.isDuration(a)&&c(a,"_locale")&&(e._locale=a._locale),e},ta.version=wa,ta.defaultFormat=eb,ta.ISO_8601=function(){},ta.momentProperties=Ia,ta.updateOffset=function(){},ta.relativeTimeThreshold=function(b,c){return mb[b]===a?!1:c===a?mb[b]:(mb[b]=c,!0)},ta.lang=f("moment.lang is deprecated. Use moment.locale instead.",function(a,b){return ta.locale(a,b)}),ta.locale=function(a,b){var c;return a&&(c="undefined"!=typeof b?ta.defineLocale(a,b):ta.localeData(a),c&&(ta.duration._locale=ta._locale=c)),ta._locale._abbr},ta.defineLocale=function(a,b){return null!==b?(b.abbr=a,Ha[a]||(Ha[a]=new j),Ha[a].set(b),ta.locale(a),Ha[a]):(delete Ha[a],null)},ta.langData=f("moment.langData is deprecated. Use moment.localeData instead.",function(a){return ta.localeData(a)}),ta.localeData=function(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return ta._locale;if(!u(a)){if(b=J(a))return b;a=[a]}return I(a)},ta.isMoment=function(a){return a instanceof k||null!=a&&c(a,"_isAMomentObject")},ta.isDuration=function(a){return a instanceof l};for(va=rb.length-1;va>=0;--va)z(rb[va]);ta.normalizeUnits=function(a){return x(a)},ta.invalid=function(a){var b=ta.utc(NaN);return null!=a?m(b._pf,a):b._pf.userInvalidated=!0,b},ta.parseZone=function(){return ta.apply(null,arguments).parseZone()},ta.parseTwoDigitYear=function(a){return A(a)+(A(a)>68?1900:2e3)},m(ta.fn=k.prototype,{clone:function(){return ta(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var a=ta(this).utc();return 0<a.year()&&a.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():N(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):N(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var a=this;return[a.year(),a.month(),a.date(),a.hours(),a.minutes(),a.seconds(),a.milliseconds()]},isValid:function(){return G(this)},isDSTShifted:function(){return this._a?this.isValid()&&w(this._a,(this._isUTC?ta.utc(this._a):ta(this._a)).toArray())>0:!1},parsingFlags:function(){return m({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(a){return this.zone(0,a)},local:function(a){return this._isUTC&&(this.zone(0,a),this._isUTC=!1,a&&this.add(this._dateTzOffset(),"m")),this},format:function(a){var b=N(this,a||ta.defaultFormat);return this.localeData().postformat(b)},add:s(1,"add"),subtract:s(-1,"subtract"),diff:function(a,b,c){var d,e,f,g=K(a,this),h=6e4*(this.zone()-g.zone());return b=x(b),"year"===b||"month"===b?(d=432e5*(this.daysInMonth()+g.daysInMonth()),e=12*(this.year()-g.year())+(this.month()-g.month()),f=this-ta(this).startOf("month")-(g-ta(g).startOf("month")),f-=6e4*(this.zone()-ta(this).startOf("month").zone()-(g.zone()-ta(g).startOf("month").zone())),e+=f/d,"year"===b&&(e/=12)):(d=this-g,e="second"===b?d/1e3:"minute"===b?d/6e4:"hour"===b?d/36e5:"day"===b?(d-h)/864e5:"week"===b?(d-h)/6048e5:d),c?e:o(e)},from:function(a,b){return ta.duration({to:this,from:a}).locale(this.locale()).humanize(!b)},fromNow:function(a){return this.from(ta(),a)},calendar:function(a){var b=a||ta(),c=K(b,this).startOf("day"),d=this.diff(c,"days",!0),e=-6>d?"sameElse":-1>d?"lastWeek":0>d?"lastDay":1>d?"sameDay":2>d?"nextDay":7>d?"nextWeek":"sameElse";return this.format(this.localeData().calendar(e,this,ta(b)))},isLeapYear:function(){return E(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(a){var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=ea(a,this.localeData()),this.add(a-b,"d")):b},month:oa("Month",!0),startOf:function(a){switch(a=x(a)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===a?this.weekday(0):"isoWeek"===a&&this.isoWeekday(1),"quarter"===a&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(b){return b=x(b),b===a||"millisecond"===b?this:this.startOf(b).add(1,"isoWeek"===b?"week":b).subtract(1,"ms")},isAfter:function(a,b){var c;return b=x("undefined"!=typeof b?b:"millisecond"),"millisecond"===b?(a=ta.isMoment(a)?a:ta(a),+this>+a):(c=ta.isMoment(a)?+a:+ta(a),c<+this.clone().startOf(b))},isBefore:function(a,b){var c;return b=x("undefined"!=typeof b?b:"millisecond"),"millisecond"===b?(a=ta.isMoment(a)?a:ta(a),+a>+this):(c=ta.isMoment(a)?+a:+ta(a),+this.clone().endOf(b)<c)},isSame:function(a,b){var c;return b=x(b||"millisecond"),"millisecond"===b?(a=ta.isMoment(a)?a:ta(a),+this===+a):(c=+ta(a),+this.clone().startOf(b)<=c&&c<=+this.clone().endOf(b))},min:f("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(a){return a=ta.apply(null,arguments),this>a?this:a}),max:f("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(a){return a=ta.apply(null,arguments),a>this?this:a}),zone:function(a,b){var c,d=this._offset||0;return null==a?this._isUTC?d:this._dateTzOffset():("string"==typeof a&&(a=Q(a)),Math.abs(a)<16&&(a=60*a),!this._isUTC&&b&&(c=this._dateTzOffset()),this._offset=a,this._isUTC=!0,null!=c&&this.subtract(c,"m"),d!==a&&(!b||this._changeInProgress?t(this,ta.duration(d-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ta.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(a){return a=a?ta(a).zone():0,(this.zone()-a)%60===0},daysInMonth:function(){return B(this.year(),this.month())},dayOfYear:function(a){var b=ya((ta(this).startOf("day")-ta(this).startOf("year"))/864e5)+1;return null==a?b:this.add(a-b,"d")},quarter:function(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)},weekYear:function(a){var b=ha(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==a?b:this.add(a-b,"y")},isoWeekYear:function(a){var b=ha(this,1,4).year;return null==a?b:this.add(a-b,"y")},week:function(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")},isoWeek:function(a){var b=ha(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")},weekday:function(a){var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")},isoWeekday:function(a){return null==a?this.day()||7:this.day(this.day()%7?a:a-7)},isoWeeksInYear:function(){return C(this.year(),1,4)},weeksInYear:function(){var a=this.localeData()._week;return C(this.year(),a.dow,a.doy)},get:function(a){return a=x(a),this[a]()},set:function(a,b){return a=x(a),"function"==typeof this[a]&&this[a](b),this},locale:function(b){var c;return b===a?this._locale._abbr:(c=ta.localeData(b),null!=c&&(this._locale=c),this)},lang:f("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(b){return b===a?this.localeData():this.locale(b)}),localeData:function(){return this._locale},_dateTzOffset:function(){return 15*Math.round(this._d.getTimezoneOffset()/15)}}),ta.fn.millisecond=ta.fn.milliseconds=oa("Milliseconds",!1),ta.fn.second=ta.fn.seconds=oa("Seconds",!1),ta.fn.minute=ta.fn.minutes=oa("Minutes",!1),ta.fn.hour=ta.fn.hours=oa("Hours",!0),ta.fn.date=oa("Date",!0),ta.fn.dates=f("dates accessor is deprecated. Use date instead.",oa("Date",!0)),ta.fn.year=oa("FullYear",!0),ta.fn.years=f("years accessor is deprecated. Use year instead.",oa("FullYear",!0)),ta.fn.days=ta.fn.day,ta.fn.months=ta.fn.month,ta.fn.weeks=ta.fn.week,ta.fn.isoWeeks=ta.fn.isoWeek,ta.fn.quarters=ta.fn.quarter,ta.fn.toJSON=ta.fn.toISOString,m(ta.duration.fn=l.prototype,{_bubble:function(){var a,b,c,d=this._milliseconds,e=this._days,f=this._months,g=this._data,h=0;g.milliseconds=d%1e3,a=o(d/1e3),g.seconds=a%60,b=o(a/60),g.minutes=b%60,c=o(b/60),g.hours=c%24,e+=o(c/24),h=o(pa(e)),e-=o(qa(h)),f+=o(e/30),e%=30,h+=o(f/12),f%=12,g.days=e,g.months=f,g.years=h},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return o(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*A(this._months/12)},humanize:function(a){var b=ga(this,!a,this.localeData());return a&&(b=this.localeData().pastFuture(+this,b)),this.localeData().postformat(b)},add:function(a,b){var c=ta.duration(a,b);return this._milliseconds+=c._milliseconds,this._days+=c._days,this._months+=c._months,this._bubble(),this},subtract:function(a,b){var c=ta.duration(a,b);return this._milliseconds-=c._milliseconds,this._days-=c._days,this._months-=c._months,this._bubble(),this},get:function(a){return a=x(a),this[a.toLowerCase()+"s"]()},as:function(a){var b,c;if(a=x(a),"month"===a||"year"===a)return b=this._days+this._milliseconds/864e5,c=this._months+12*pa(b),"month"===a?c:c/12;switch(b=this._days+Math.round(qa(this._months/12)),a){case"week":return b/7+this._milliseconds/6048e5;case"day":return b+this._milliseconds/864e5;case"hour":return 24*b+this._milliseconds/36e5;case"minute":return 24*b*60+this._milliseconds/6e4;case"second":return 24*b*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(24*b*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+a)}},lang:ta.fn.lang,locale:ta.fn.locale,toIsoString:f("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var a=Math.abs(this.years()),b=Math.abs(this.months()),c=Math.abs(this.days()),d=Math.abs(this.hours()),e=Math.abs(this.minutes()),f=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(a?a+"Y":"")+(b?b+"M":"")+(c?c+"D":"")+(d||e||f?"T":"")+(d?d+"H":"")+(e?e+"M":"")+(f?f+"S":""):"P0D"},localeData:function(){return this._locale}}),ta.duration.fn.toString=ta.duration.fn.toISOString;for(va in ib)c(ib,va)&&ra(va.toLowerCase());ta.duration.fn.asMilliseconds=function(){return this.as("ms")},ta.duration.fn.asSeconds=function(){return this.as("s")},ta.duration.fn.asMinutes=function(){return this.as("m")},ta.duration.fn.asHours=function(){return this.as("h")},ta.duration.fn.asDays=function(){return this.as("d")},ta.duration.fn.asWeeks=function(){return this.as("weeks")},ta.duration.fn.asMonths=function(){return this.as("M")},ta.duration.fn.asYears=function(){return this.as("y")},ta.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=1===A(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),Ja?module.exports=ta:"function"==typeof define&&define.amd?(define("moment",function(a,b,c){return c.config&&c.config()&&c.config().noGlobal===!0&&(xa.moment=ua),ta}),sa(!0)):sa()}.call(this);var mixinsBV=angular.module("kbApp.mixins.bv",[]);mixinsBV.factory("bvService",[function(){var a=10,b=290,c=(Math.PI/180,2*Math.PI),d=40,e=40,f=.001875,g=3,h=.4,i=1.05,j=10,k=2,l=450,m=250,n=.4,o=1.5,p=.8,q=1,r=.005,s=4e-4,t=5e-4,u=.17,v=10,w=["ball.png","kostal.jpg"],x={"Kostal Hagen":"kostal.jpg"},y={Set:"The set has been won by {0}!",Start:"Good luck and have fun!",Over:"Over, over, the game is over...\nThe winner is {0}!",Replay:"Replay"};!function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){},Class.extend=function(c){function d(){!a&&this.init&&this.init.apply(this,arguments)}var e=this.prototype;a=!0;var f=new this;a=!1;for(var g in c)f[g]="function"==typeof c[g]&&"function"==typeof e[g]&&b.test(c[g])?function(a,b){return function(){var c=this._super;this._super=e[a];var d=b.apply(this,arguments);return this._super=c,d}}(g,c[g]):c[g];return d.prototype=f,d.prototype.constructor=d,d.extend=arguments.callee,d}}();var z=document.getElementById("canvas").getContext("2d"),A=z.canvas.width,B=z.canvas.height,C={},D=Class.extend({init:function(){},random:function(a,b){var c=b-a;return Math.min(Math.floor(Math.random()*c),b-1)+a},format:function(a){for(var b=1;b<arguments.length;b++)a=a.replace(new RegExp("\\{"+(b-1)+"\\}","g"),arguments[b]);return a}}),E=Class.extend({init:function(a){this.toload=a,this.resources={}},loaded:function(){this.toload--},setResource:function(a,b){this.resources[a]=b},getResource:function(a){return this.resources[a]}}),F=E.extend({init:function(a,b){var c=this;c._super(b.length);for(var d=0;d<b.length;d++){var e=document.createElement("img");e.src=a+"/"+b[d],e.onload=function(){c.loaded()},c.setResource(b[d],e)}}}),G=D.extend({init:function(a,b,c){this.beach=a,this.ballx=b.x,this.bally=b.y,this.data=[],this.players=[],this.count=0,this.contacts=0;for(var d=0;d<c.length;d++)this.players.push({color:c[d].color,name:c[d].name,points:c[d].points,sets:c[d].sets})},addData:function(a){var b=[];this.contacts=0;for(var c=0;c<a.length;c++)b.push(a[c].input.copy()),this.contacts+=a[c].totalContacts;if(0===this.count){for(var d=!1,c=b.length;c--;)if(b[c]){d=!0;break}if(!d)return}this.data.push(b),this.count++},play:function(a,b){a.pause();var c=this.count,f=0,g=[],h=new O(a.field),i=new P(a.field),j=new M(g,a.field,h,i);j.setBackground(this.beach),i.x=this.ballx,i.y=this.bally;for(var k=this.data,l=0;l<this.players.length;l++){var m=new R(a,a.players[l].container);m.setIdentity(this.players[l].name,this.players[l].color),g.push(m)}var n=setInterval(function(){if(f===c)return clearInterval(n),b&&b.apply(a),void a.play();for(var d=k[f++],l=g.length;l--;)g[l].steer(d[l]);for(var m=e;m--;){i.logic(),h.logic();for(var l=g.length;l--;)g[l].logic(),i.collision(g[l]);i.collision(h)}j.paint(i,g)},d/2)},stop:function(){}}),H=Class.extend({init:function(a,b,c,d){this.setPosition(a||0,b||0),this.width=c||0,this.height=d||0},setPosition:function(a,b){this.x=a,this.y=b},paint:function(){}}),I=(Class.extend({init:function(){}}),H.extend({init:function(a,b){this._super(a,0,b,B),this.wh=b/2,this.hh=B/2}})),J=I.extend({init:function(){this._super(0,A)},
paint:function(){z.strokeStyle="#cccccc",z.beginPath(),z.rect(0,0,A,B),z.closePath(),z.stroke()}}),K=I.extend({init:function(b,c){var d=A/c-a/2;this._super((d+a)*b,d)}}),L=H.extend({init:function(a){this._super(0,0,A,B),this.field=a.field,this.players=a.players,this.net=a.net,this.ball=a.ball,this.game=a,this.message=[],this.persistent=!1,this.timeLeft=0,this.radius=v},setup:function(){this.sets=2*this.game.maxSets-1,this.factor=2.5,this.offset=(this.game.maxSets-1)*this.radius*this.factor,this.shift=2*this.radius},setMessage:function(a,b){this.message=a.split("\n"),this.persistent=!b,b&&(this.timeLeft=b)},clearMessage:function(){this.message=[],this.persistent=!1,this.timeLeft=0},setBackground:function(a){this.background=C.images.getResource(x[a]),document.getElementById("beach").innerHTML=a},paint:function(){z.clearRect(0,0,A,B),z.drawImage(this.background,0,0),this.field.paint(),this.net.paint(),this.ball.paint();for(var a=this.players.length;a--;)this.players[a].paint();this.ball.getBottom()>B&&this.paintCursor(this.ball.x),this.paintScore();for(var a=this.players.length;a--;)this.players[a].paintPulse();this.paintMessage()},paintMessage:function(){if(!this.persistent){if(!this.timeLeft)return;this.timeLeft--}z.save(),z.translate(A/2,B/2),z.textAlign="center",z.fillStyle="#8A2BE2",z.font="32pt Merge";for(var a=0;a<this.message.length;a++)z.fillText(this.message[a],0,50*a);z.restore()},paintScore:function(){z.save(),z.translate(this.field.wh-this.offset,30);for(var a=0;a<this.sets;a++)this.game.sets.length>a?z.fillStyle=this.game.sets[a].color:z.fillStyle="#cccccc",z.strokeStyle="#666666",z.beginPath(),z.arc(this.factor*a*this.radius,0,this.radius,0,c,!1),z.fill(),z.stroke(),z.closePath();z.fillStyle="#dddddd",z.font="32pt Merge",z.textAlign="right",z.fillText(this.players[0].points,-this.shift,15),z.textAlign="left",z.fillText(this.players[1].points,2*this.offset+this.shift,15),z.restore()},paintCursor:function(a){z.save(),z.translate(a,10),z.fillStyle="#000000",z.beginPath(),z.moveTo(0,-5),z.lineTo(5,5),z.lineTo(-5,5),z.closePath(),z.fill(),z.restore()}}),M=L.extend({init:function(a,b,c,d){var e={players:a,field:b,net:c,ball:d};this._super(e),this.setMessage(y.Replay)},setup:function(){},paintScore:function(){}}),N=H.extend({init:function(a,b,c){this.container=a,this._super(0,0,b,c),this.friction=p,this.wh=this.width/2,this.hh=this.height/2,this.setPositionFromContainerOrigin(),this.setVelocity(0,0)},setPositionFromContainerOrigin:function(){var a=this.container.x+this.container.wh,b=this.hh;this.setPosition(a,b)},getTotalVelocity:function(){return Math.sqrt(this.vx*this.vx+this.vy*this.vy)},setVelocity:function(a,b){this.vx=a,this.vy=b},setPosition:function(a,b){this.x=a,this.y=b},getBottom:function(){return this.y-this.hh},getTop:function(){return this.y+this.hh},getLeft:function(){return this.x-this.wh},getRight:function(){return this.x+this.wh},checkField:function(){this.y<this.hh&&(this.y=this.hh,this.vy=0),this.getLeft()<this.container.x?(this.vx=0,this.x=this.container.x+this.wh):this.getRight()>this.container.x+this.container.width&&(this.vx=0,this.x=this.container.x+this.container.width-this.wh)},collision:function(){},logic:function(){this.vy-=f,this.x+=this.vx,this.y+=this.vy,this.checkField()},paint:function(){},hit:function(a,b,c){var d=a*a+b*b,e=Math.atan2(b,a),f=c.getTotalVelocity(),g=Math.cos(e)*this.friction*f,h=Math.sin(e)*this.friction*f;g+=q*c.omega*b/d,h-=q*c.omega*a/d,c.setVelocity(g,h)}}),O=N.extend({init:function(c){this._super(c,a,b),this.radius=a/2,this.y=b,this.originX=this.x,this.friction=1},reset:function(){this.x=this.originX,this.vx=0},collision:function(a){var b=a.x-this.x,c=a.y-this.y,d=a.radius+this.radius;if(0>=c){var e=0;return a.vx>0&&b+d>=0&&b<=this.radius?e=-1:a.vx<0&&0>=b-d&&b+this.radius>=0&&(e=1),void(0!=e&&(this.vx=5*a.vx,a.vx=-a.vx,a.vy+=e*a.omega))}Math.sqrt(b*b+c*c)<=d&&this.hit(b,c,a)},hit:function(a,b,c){this._super(a,b,c),c.spin(this.vx,this.vy,a,b)},logic:function(){this.x+=this.vx,this.vx-=this.x-this.originX,this.vx*=.99},paint:function(){z.save(),z.translate(this.originX,this.container.height);var a=Math.atan2(this.x-this.originX,this.height);z.rotate(a),z.strokeStyle="#666666",z.fillStyle="#b0ca33",z.lineWidth=1,z.beginPath(),z.arc(0,-this.y,this.wh,0,Math.PI,!0),z.lineTo(-this.wh,0),z.lineTo(this.wh,0),z.lineTo(this.wh,-this.y),z.fill(),z.stroke(),z.closePath(),z.restore()}}),P=N.extend({init:function(a){this.radius=48,this.diameter=2*this.radius,this._super(a,this.diameter,this.diameter),this.rotation=0,this.omega=0,this.sleeping=!0,this.dead=!1},setVelocity:function(a,b){this.sleeping=!1,this._super(a,b)},setServe:function(a){var b=a.x+a.width/2,c=m;this.sleeping=!0,this.dead=!1,this.omega=0,this.rotation=0,this.vx=0,this.vy=0,this.setPosition(b,c)},collision:function(a){return this.dead?void(a instanceof Q&&(this.x<a.container.x||this.x>a.container.x+a.container.width)&&a.scorePoint()):void a.collision(this)},checkField:function(){this.y<=this.radius&&(this.dead=!0,this.y=this.radius)},logic:function(){if(!this.sleeping&&!this.dead){if(this.x<=this.radius?(this.vx*=-1,this.vy+=this.omega):this.x>=this.container.width-this.radius&&(this.vx*=-1,this.vy-=this.omega),this.omega){var a=this.getTotalVelocity(),b=this.vy*this.omega*r/a,c=-(this.vx*this.omega*r)/a;this.vx+=b,this.vy+=c}this.rotation+=this.omega,this._super()}},changeSpin:function(a,b,c,d,e){var f=c*c+d*d,g=(c*a+d*b)/f,h=a+e*c*g,i=b+e*d*g;this.omega+=(h*d-i*c)/f},spin:function(a,b,c,d){this.changeSpin(this.vx,this.vy,c,d,1),this.changeSpin(a,b,c,d,-1)},paint:function(){z.save(),z.translate(this.x,this.container.height-this.y),z.rotate(this.rotation),z.drawImage(C.images.getResource("ball.png"),-this.radius,-this.radius),z.restore()}}),Q=N.extend({init:function(a,b,c){this.radius=48,this.diameter=2*this.radius,this._super(b,this.diameter,this.diameter),this.game=a,this.input=c,this.points=0,this.sets=0,this.pulses=[],this.color="rgb(0, 0, 0)",this.name="Player",this.reset()},addContact:function(){return this.isTouching?!0:(this.isTouching=!0,this.contacts++,this.totalContacts++,!1)},reset:function(){this.input.reset(),this.setVelocity(0,0),this.setPositionFromContainerOrigin(),this.pulse=1,this.contacts=0,this.totalContacts=0,this.isTouching=!1},scorePoint:function(){if(this.points++,this.game.setServe(this.container),this.points>=this.game.maxPoints){for(var a=!0,b=this.game.players.length;b--;)if(this.game.players[b]!==this&&Math.abs(this.game.players[b].points-this.points)<2){a=!1;break}if(a)return this.game.setWon(this)}},hit:function(a,b,c){var d=c.sleeping?o:n;this._super(a,b,c);var e=a*this.vx+b*this.vy;if(e>0){var f=d*e/(a*a+b*b);c.vx+=a*f,c.vy+=b*f}c.spin(this.vx,this.vy,a,b)},collision:function(a){var b=a.x-this.x,c=a.y-this.y,d=Math.sqrt(b*b+c*c),e=a.radius+this.radius;if(d>e)return void(this.isTouching=!1);var f=e/d,h=f*b,i=f*c;return a.setPosition(this.x+h,this.y+i),this.game.contact(this)?void 0:this.contacts>g?void(a.dead=!0):void this.hit(b,c,a)},setIdentity:function(a,b){this.name=a,this.color=b},updatePulse:function(){this.pulses.push(this.pulse),this.pulses.length>100&&this.pulses.shift()},steer:function(){this.input.update(),this.updatePulse()},logic:function(){this.input.left?(this.vx=-this.pulse*h,this.pulse-=t):this.input.right?(this.vx=this.pulse*h,this.pulse-=t):this.vx=0,this.y===this.hh&&this.input.up&&(this.vy=i+f,this.pulse-=u),this.pulse=Math.max(Math.min(1,this.pulse+s),.5),this._super()},paint:function(){z.save(),z.translate(this.x,this.container.height-this.y),z.fillStyle=this.color,z.beginPath(),z.arc(0,0,this.radius,0,c,!0),z.fill(),z.closePath(),z.restore()},paintPulse:function(){z.save(),z.translate(this.container.x?this.container.x+this.container.width-250:50,45),z.fillStyle="rgba(150, 150, 150, 0.2)",z.fillRect(0,-30,200,30),z.beginPath(),z.moveTo(0,0);for(var a=0;a<this.pulses.length;a++)z.lineTo(2*a,-30*(1/this.pulses[a]-1));z.strokeStyle=this.color,z.stroke(),z.closePath(),z.fillStyle="#cccccc",z.textAlign="center",z.font="24px Merge",z.fillText(this.name,100,-10),z.restore()}}),R=(Q.extend({init:function(a,b){this._super(a,b,new S),this.setIdentity("Computer","#FF6633")},steer:function(){var a=Math.floor(6*Math.random());switch(a){case 0:this.input.setUp(!0);break;case 1:this.input.setLeft(!0),this.input.setRight(!1);break;case 2:this.input.setRight(!0),this.input.setLeft(!1);break;case 4:this.input.setRight(!1),this.input.setLeft(!1);break;case 5:this.input.setUp(!1)}this._super()}}),Q.extend({init:function(a,b){this._super(a,b,new S)},steer:function(a){a&&(this.input.setUp(!!a.u),this.input.setLeft(!!a.l),this.input.setRight(!!a.r)),this._super()},scorePoint:function(){}})),S=D.extend({init:function(){this.reset(),this._super()},update:function(){this.previousUp=this.up,this.previousLeft=this.left,this.previousRight=this.right,this.left=this.bufferLeft,this.up=this.bufferUp,this.right=this.bufferRight},reset:function(){this.up=!1,this.left=!1,this.right=!1,this.bufferUp=!1,this.bufferLeft=!1,this.bufferRight=!1,this.previousUp=!1,this.previousLeft=!1,this.previousRight=!1},setUp:function(a){this.bufferUp=a},setLeft:function(a){this.bufferLeft=a},setRight:function(a){this.bufferRight=a},bind:function(){},unbind:function(){},cancelBubble:function(a){var b=a||event;b.preventDefault?b.preventDefault():b.returnValue=!1,b.stopPropagation?b.stopPropagation():b.cancelBubble=!0},copy:function(){return this.previousUp===this.up&&this.previousRight===this.right&&this.previousLeft===this.left?0:{l:this.left?1:0,u:this.up?1:0,r:this.right?1:0}}}),T=S.extend({init:function(a){var b=this;b._super(),b.codes={},b.codes[a[0]]=b.setUp,b.codes[a[1]]=b.setLeft,b.codes[a[2]]=b.setRight;var c=!1;this.downhandler=function(a){return c=b.handler(a,!0)},this.uphandler=function(a){return c=b.handler(a,!1)},this.presshandler=function(a){return c||b.cancelBubble(a),c}},bind:function(){var a=document.attachEvent||document.addEventListener;a("keydown",this.downhandler),a("keyup",this.uphandler),a("keypress",this.presshandler)},unbind:function(){},handler:function(a,b){return this.codes[a.keyCode]?(this.codes[a.keyCode].apply(this,[b]),this.cancelBubble(a),!1):!0}}),U=(S.extend({init:function(a){this._super()}}),D.extend({init:function(){this.messages=[],this.created=new Date}})),V=(D.extend({init:function(){}}),D.extend({init:function(){this.ready=!1,this.load(),this.players=[],this.observers=[],this.replays=[],this.instantReplay=null,this.sets=[],this.lobby=new U,this.field=new J,this.ball=new P(this.field),this.net=new O(this.field),this.viewPort=new L(this),this.loop=null,this.running=!1,this.maxPoints=j,this.maxSets=k,this.wait=0,this.beach="",this.beaches=[];for(var a in x)this.beaches.push(a)},contact:function(a){for(var b=!1,c=this.players.length;c--;){var d=this.players[c];d===a?b=d.addContact():d.contacts=0}return b},reset:function(){var a;for(a=this.players.length;a--;)this.players.pop();for(a=this.observers.length;a--;)this.observers.pop();for(a=this.replays.length;a--;)this.replays.pop();for(a=this.sets.length;a--;)this.sets.pop()},setWon:function(a){for(var b=0;b<this.players.length;b++)this.players[b].points=0;a.sets++,this.sets.push(a),a.sets===this.maxSets?(this.viewPort.setMessage(this.format(y.Over,a.name)),this.endMatch()):this.viewPort.setMessage(this.format(y.Set,a.name),2*this.wait)},addPlayer:function(a){this.players.push(a)},addObserver:function(a){this.observers.push(a)},saveReplay:function(){this.replays.push(this.instantReplay)},recordReplay:function(){this.instantReplay=new G(this.beach,this.ball,this.players)},detectInstantReplay:function(){if(this.replays.length){var a=this.replays[this.replays.length-1];if(a.contacts>8&&a.count>220)return!0}return!1},playLastReplay:function(a){this.replays.length&&this.replays[this.replays.length-1].play(this,a)},continuation:function(){this.net.reset();for(var a=this.players.length;a--;)this.players[a].reset();this.recordReplay()},setServe:function(a){return this.saveReplay(),this.ball.setServe(a),this.detectInstantReplay()?void this.playLastReplay(this.continuation):(this.wait=Math.ceil(l/d),void this.continuation())},tick:function(){if(this.wait)this.wait--;else{for(var a=this.players.length;a--;)this.players[a].steer();this.instantReplay.addData(this.players);for(var b=e;b--;){this.ball.logic(),this.net.logic();for(var a=this.players.length;a--;)this.players[a].logic(),this.ball.collision(this.players[a]);this.ball.collision(this.net)}}this.viewPort.paint(this.ball,this.players)},beginMatch:function(){var a=this.random(0,this.beaches.length);this.viewPort.setMessage(y.Start,100),this.beach=this.beaches[a],this.viewPort.setBackground(this.beach),this.viewPort.setup(),a=this.random(0,this.players.length),this.ball.setServe(this.players[a].container),this.continuation(),this.play()},endMatch:function(){this.saveReplay(),this.viewPort.paint(this.ball,this.players),this.pause()},play:function(){var a=this;if(!a.running){a.running=!0;for(var b=this.players.length;b--;)this.players[b].input.bind();a.loop=setInterval(function(){a.tick()},d)}},pause:function(){if(this.running){this.running=!1;for(var a=this.players.length;a--;)this.players[a].input.unbind();clearInterval(this.loop)}},load:function(){this.ready=!0,C.images=new F("assets/bv",w)}})),W=function(){var a=new V,b=new K(0,2),c=new T([87,65,68]),d=new Q(a,b,c);d.setIdentity("Player1","#0000FF"),a.addPlayer(d);var e=new K(1,2),f=new T([38,37,39]),g=new Q(a,e,f);g.setIdentity("Player2","#FF0000"),a.addPlayer(g),a.beginMatch()};return{startBV:W}}]);var CryptoJS=CryptoJS||function(a,b){var c={},d=c.lib={},e=function(){},f=d.Base={extend:function(a){e.prototype=this;var b=new e;return a&&b.mixIn(a),b.hasOwnProperty("init")||(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var a=this.extend();return a.init.apply(a,arguments),a},init:function(){},mixIn:function(a){for(var b in a)a.hasOwnProperty(b)&&(this[b]=a[b]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},g=d.WordArray=f.extend({init:function(a,c){a=this.words=a||[],this.sigBytes=c!=b?c:4*a.length},toString:function(a){return(a||i).stringify(this)},concat:function(a){var b=this.words,c=a.words,d=this.sigBytes;if(a=a.sigBytes,this.clamp(),d%4)for(var e=0;a>e;e++)b[d+e>>>2]|=(c[e>>>2]>>>24-8*(e%4)&255)<<24-8*((d+e)%4);else if(65535<c.length)for(e=0;a>e;e+=4)b[d+e>>>2]=c[e>>>2];else b.push.apply(b,c);return this.sigBytes+=a,this},clamp:function(){var b=this.words,c=this.sigBytes;b[c>>>2]&=4294967295<<32-8*(c%4),b.length=a.ceil(c/4)},clone:function(){var a=f.clone.call(this);return a.words=this.words.slice(0),a},random:function(b){for(var c=[],d=0;b>d;d+=4)c.push(4294967296*a.random()|0);return new g.init(c,b)}}),h=c.enc={},i=h.Hex={stringify:function(a){var b=a.words;a=a.sigBytes;for(var c=[],d=0;a>d;d++){var e=b[d>>>2]>>>24-8*(d%4)&255;c.push((e>>>4).toString(16)),c.push((15&e).toString(16))}return c.join("")},parse:function(a){for(var b=a.length,c=[],d=0;b>d;d+=2)c[d>>>3]|=parseInt(a.substr(d,2),16)<<24-4*(d%8);return new g.init(c,b/2)}},j=h.Latin1={stringify:function(a){var b=a.words;a=a.sigBytes;for(var c=[],d=0;a>d;d++)c.push(String.fromCharCode(b[d>>>2]>>>24-8*(d%4)&255));return c.join("")},parse:function(a){for(var b=a.length,c=[],d=0;b>d;d++)c[d>>>2]|=(255&a.charCodeAt(d))<<24-8*(d%4);return new g.init(c,b)}},k=h.Utf8={stringify:function(a){try{return decodeURIComponent(escape(j.stringify(a)))}catch(b){throw Error("Malformed UTF-8 data")}},parse:function(a){return j.parse(unescape(encodeURIComponent(a)))}},l=d.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new g.init,this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=k.parse(a)),this._data.concat(a),this._nDataBytes+=a.sigBytes},_process:function(b){var c=this._data,d=c.words,e=c.sigBytes,f=this.blockSize,h=e/(4*f),h=b?a.ceil(h):a.max((0|h)-this._minBufferSize,0);if(b=h*f,e=a.min(4*b,e),b){for(var i=0;b>i;i+=f)this._doProcessBlock(d,i);i=d.splice(0,b),c.sigBytes-=e}return new g.init(i,e)},clone:function(){var a=f.clone.call(this);return a._data=this._data.clone(),a},_minBufferSize:0});d.Hasher=l.extend({cfg:f.extend(),init:function(a){this.cfg=this.cfg.extend(a),this.reset()},reset:function(){l.reset.call(this),this._doReset()},update:function(a){return this._append(a),this._process(),this},finalize:function(a){return a&&this._append(a),this._doFinalize()},blockSize:16,_createHelper:function(a){return function(b,c){return new a.init(c).finalize(b)}},_createHmacHelper:function(a){return function(b,c){return new m.HMAC.init(a,c).finalize(b)}}});var m=c.algo={};return c}(Math);!function(){var a=CryptoJS,b=a.lib,c=b.WordArray,d=b.Hasher,e=[],b=a.algo.SHA1=d.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(a,b){for(var c=this._hash.words,d=c[0],f=c[1],g=c[2],h=c[3],i=c[4],j=0;80>j;j++){if(16>j)e[j]=0|a[b+j];else{var k=e[j-3]^e[j-8]^e[j-14]^e[j-16];e[j]=k<<1|k>>>31}k=(d<<5|d>>>27)+i+e[j],k=20>j?k+((f&g|~f&h)+1518500249):40>j?k+((f^g^h)+1859775393):60>j?k+((f&g|f&h|g&h)-1894007588):k+((f^g^h)-899497514),i=h,h=g,g=f<<30|f>>>2,f=d,d=k}c[0]=c[0]+d|0,c[1]=c[1]+f|0,c[2]=c[2]+g|0,c[3]=c[3]+h|0,c[4]=c[4]+i|0},_doFinalize:function(){var a=this._data,b=a.words,c=8*this._nDataBytes,d=8*a.sigBytes;return b[d>>>5]|=128<<24-d%32,b[(d+64>>>9<<4)+14]=Math.floor(c/4294967296),b[(d+64>>>9<<4)+15]=c,a.sigBytes=4*b.length,this._process(),this._hash},clone:function(){var a=d.clone.call(this);return a._hash=this._hash.clone(),a}});a.SHA1=d._createHelper(b),a.HmacSHA1=d._createHmacHelper(b)}();var CryptoJS=CryptoJS||function(a,b){var c={},d=c.lib={},e=d.Base=function(){function a(){}return{extend:function(b){a.prototype=this;var c=new a;return b&&c.mixIn(b),c.hasOwnProperty("init")||(c.init=function(){c.$super.init.apply(this,arguments)}),c.init.prototype=c,c.$super=this,c},create:function(){var a=this.extend();return a.init.apply(a,arguments),a},init:function(){},mixIn:function(a){for(var b in a)a.hasOwnProperty(b)&&(this[b]=a[b]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=d.WordArray=e.extend({init:function(a,c){a=this.words=a||[],c!=b?this.sigBytes=c:this.sigBytes=4*a.length},toString:function(a){return(a||h).stringify(this)},concat:function(a){var b=this.words,c=a.words,d=this.sigBytes,e=a.sigBytes;if(this.clamp(),d%4)for(var f=0;e>f;f++){var g=c[f>>>2]>>>24-f%4*8&255;b[d+f>>>2]|=g<<24-(d+f)%4*8}else if(c.length>65535)for(var f=0;e>f;f+=4)b[d+f>>>2]=c[f>>>2];else b.push.apply(b,c);return this.sigBytes+=e,this},clamp:function(){var b=this.words,c=this.sigBytes;b[c>>>2]&=4294967295<<32-c%4*8,b.length=a.ceil(c/4)},clone:function(){var a=e.clone.call(this);return a.words=this.words.slice(0),a},random:function(b){for(var c=[],d=0;b>d;d+=4)c.push(4294967296*a.random()|0);return new f.init(c,b)}}),g=c.enc={},h=g.Hex={stringify:function(a){for(var b=a.words,c=a.sigBytes,d=[],e=0;c>e;e++){var f=b[e>>>2]>>>24-e%4*8&255;d.push((f>>>4).toString(16)),d.push((15&f).toString(16))}return d.join("")},parse:function(a){for(var b=a.length,c=[],d=0;b>d;d+=2)c[d>>>3]|=parseInt(a.substr(d,2),16)<<24-d%8*4;return new f.init(c,b/2)}},i=g.Latin1={stringify:function(a){for(var b=a.words,c=a.sigBytes,d=[],e=0;c>e;e++){var f=b[e>>>2]>>>24-e%4*8&255;d.push(String.fromCharCode(f))}return d.join("")},parse:function(a){for(var b=a.length,c=[],d=0;b>d;d++)c[d>>>2]|=(255&a.charCodeAt(d))<<24-d%4*8;return new f.init(c,b)}},j=g.Utf8={stringify:function(a){try{return decodeURIComponent(escape(i.stringify(a)))}catch(b){throw new Error("Malformed UTF-8 data")}},parse:function(a){return i.parse(unescape(encodeURIComponent(a)))}},k=d.BufferedBlockAlgorithm=e.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=j.parse(a)),this._data.concat(a),this._nDataBytes+=a.sigBytes},_process:function(b){var c=this._data,d=c.words,e=c.sigBytes,g=this.blockSize,h=4*g,i=e/h;i=b?a.ceil(i):a.max((0|i)-this._minBufferSize,0);var j=i*g,k=a.min(4*j,e);if(j){for(var l=0;j>l;l+=g)this._doProcessBlock(d,l);var m=d.splice(0,j);c.sigBytes-=k}return new f.init(m,k)},clone:function(){var a=e.clone.call(this);return a._data=this._data.clone(),a},_minBufferSize:0}),l=(d.Hasher=k.extend({cfg:e.extend(),init:function(a){this.cfg=this.cfg.extend(a),this.reset()},reset:function(){k.reset.call(this),this._doReset()},update:function(a){return this._append(a),this._process(),this},finalize:function(a){a&&this._append(a);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(a){return function(b,c){return new a.init(c).finalize(b)}},_createHmacHelper:function(a){return function(b,c){return new l.HMAC.init(a,c).finalize(b)}}}),c.algo={});return c}(Math);CryptoJS.lib.Cipher||function(a){var b=CryptoJS,c=b.lib,d=c.Base,e=c.WordArray,f=c.BufferedBlockAlgorithm,g=b.enc,h=(g.Utf8,g.Base64),i=b.algo,j=i.EvpKDF,k=c.Cipher=f.extend({cfg:d.extend(),createEncryptor:function(a,b){return this.create(this._ENC_XFORM_MODE,a,b)},createDecryptor:function(a,b){return this.create(this._DEC_XFORM_MODE,a,b)},init:function(a,b,c){this.cfg=this.cfg.extend(c),this._xformMode=a,this._key=b,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(a){return this._append(a),this._process()},finalize:function(a){a&&this._append(a);var b=this._doFinalize();return b},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function a(a){return"string"==typeof a?w:t}return function(b){return{encrypt:function(c,d,e){return a(d).encrypt(b,c,d,e)},decrypt:function(c,d,e){return a(d).decrypt(b,c,d,e)}}}}()}),l=(c.StreamCipher=k.extend({_doFinalize:function(){var a=this._process(!0);return a},blockSize:1}),b.mode={}),m=c.BlockCipherMode=d.extend({createEncryptor:function(a,b){return this.Encryptor.create(a,b)},createDecryptor:function(a,b){return this.Decryptor.create(a,b)},init:function(a,b){this._cipher=a,this._iv=b}}),n=l.CBC=function(){function b(b,c,d){var e=this._iv;if(e){var f=e;this._iv=a}else var f=this._prevBlock;for(var g=0;d>g;g++)b[c+g]^=f[g]}var c=m.extend();return c.Encryptor=c.extend({processBlock:function(a,c){var d=this._cipher,e=d.blockSize;b.call(this,a,c,e),d.encryptBlock(a,c),this._prevBlock=a.slice(c,c+e)}}),c.Decryptor=c.extend({processBlock:function(a,c){var d=this._cipher,e=d.blockSize,f=a.slice(c,c+e);d.decryptBlock(a,c),b.call(this,a,c,e),this._prevBlock=f}}),c}(),o=b.pad={},p=o.Pkcs7={pad:function(a,b){for(var c=4*b,d=c-a.sigBytes%c,f=d<<24|d<<16|d<<8|d,g=[],h=0;d>h;h+=4)g.push(f);var i=e.create(g,d);a.concat(i)},unpad:function(a){var b=255&a.words[a.sigBytes-1>>>2];a.sigBytes-=b}},q=(c.BlockCipher=k.extend({cfg:k.cfg.extend({mode:n,padding:p}),reset:function(){k.reset.call(this);var a=this.cfg,b=a.iv,c=a.mode;if(this._xformMode==this._ENC_XFORM_MODE)var d=c.createEncryptor;else{var d=c.createDecryptor;this._minBufferSize=1}this._mode=d.call(c,this,b&&b.words)},_doProcessBlock:function(a,b){this._mode.processBlock(a,b)},_doFinalize:function(){var a=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){a.pad(this._data,this.blockSize);var b=this._process(!0)}else{var b=this._process(!0);a.unpad(b)}return b},blockSize:4}),c.CipherParams=d.extend({init:function(a){this.mixIn(a)},toString:function(a){return(a||this.formatter).stringify(this)}})),r=b.format={},s=r.OpenSSL={stringify:function(a){var b=a.ciphertext,c=a.salt;if(c)var d=e.create([1398893684,1701076831]).concat(c).concat(b);else var d=b;return d.toString(h)},parse:function(a){var b=h.parse(a),c=b.words;if(1398893684==c[0]&&1701076831==c[1]){var d=e.create(c.slice(2,4));c.splice(0,4),b.sigBytes-=16}return q.create({ciphertext:b,salt:d})}},t=c.SerializableCipher=d.extend({cfg:d.extend({format:s}),encrypt:function(a,b,c,d){d=this.cfg.extend(d);var e=a.createEncryptor(c,d),f=e.finalize(b),g=e.cfg;return q.create({ciphertext:f,key:c,iv:g.iv,algorithm:a,mode:g.mode,padding:g.padding,blockSize:a.blockSize,formatter:d.format})},decrypt:function(a,b,c,d){d=this.cfg.extend(d),b=this._parse(b,d.format);var e=a.createDecryptor(c,d).finalize(b.ciphertext);return e},_parse:function(a,b){return"string"==typeof a?b.parse(a,this):a}}),u=b.kdf={},v=u.OpenSSL={execute:function(a,b,c,d){d||(d=e.random(8));var f=j.create({keySize:b+c}).compute(a,d),g=e.create(f.words.slice(b),4*c);return f.sigBytes=4*b,q.create({key:f,iv:g,salt:d})}},w=c.PasswordBasedCipher=t.extend({cfg:t.cfg.extend({kdf:v}),encrypt:function(a,b,c,d){d=this.cfg.extend(d);var e=d.kdf.execute(c,a.keySize,a.ivSize);d.iv=e.iv;var f=t.encrypt.call(this,a,b,e.key,d);return f.mixIn(e),f},decrypt:function(a,b,c,d){d=this.cfg.extend(d),b=this._parse(b,d.format);var e=d.kdf.execute(c,a.keySize,a.ivSize,b.salt);d.iv=e.iv;var f=t.decrypt.call(this,a,b,e.key,d);return f}})}(),function(){var a=CryptoJS,b=a.lib,c=b.BlockCipher,d=a.algo,e=[],f=[],g=[],h=[],i=[],j=[],k=[],l=[],m=[],n=[];!function(){for(var a=[],b=0;256>b;b++)128>b?a[b]=b<<1:a[b]=b<<1^283;for(var c=0,d=0,b=0;256>b;b++){var o=d^d<<1^d<<2^d<<3^d<<4;o=o>>>8^255&o^99,e[c]=o,f[o]=c;var p=a[c],q=a[p],r=a[q],s=257*a[o]^16843008*o;g[c]=s<<24|s>>>8,h[c]=s<<16|s>>>16,i[c]=s<<8|s>>>24,j[c]=s;var s=16843009*r^65537*q^257*p^16843008*c;k[o]=s<<24|s>>>8,l[o]=s<<16|s>>>16,m[o]=s<<8|s>>>24,n[o]=s,c?(c=p^a[a[a[r^p]]],d^=a[a[d]]):c=d=1}}();var o=[0,1,2,4,8,16,32,64,128,27,54],p=d.AES=c.extend({_doReset:function(){for(var a=this._key,b=a.words,c=a.sigBytes/4,d=this._nRounds=c+6,f=4*(d+1),g=this._keySchedule=[],h=0;f>h;h++)if(c>h)g[h]=b[h];else{var i=g[h-1];h%c?c>6&&h%c==4&&(i=e[i>>>24]<<24|e[i>>>16&255]<<16|e[i>>>8&255]<<8|e[255&i]):(i=i<<8|i>>>24,i=e[i>>>24]<<24|e[i>>>16&255]<<16|e[i>>>8&255]<<8|e[255&i],i^=o[h/c|0]<<24),g[h]=g[h-c]^i}for(var j=this._invKeySchedule=[],p=0;f>p;p++){var h=f-p;if(p%4)var i=g[h];else var i=g[h-4];4>p||4>=h?j[p]=i:j[p]=k[e[i>>>24]]^l[e[i>>>16&255]]^m[e[i>>>8&255]]^n[e[255&i]]}},encryptBlock:function(a,b){this._doCryptBlock(a,b,this._keySchedule,g,h,i,j,e)},decryptBlock:function(a,b){var c=a[b+1];a[b+1]=a[b+3],a[b+3]=c,this._doCryptBlock(a,b,this._invKeySchedule,k,l,m,n,f);var c=a[b+1];a[b+1]=a[b+3],a[b+3]=c},_doCryptBlock:function(a,b,c,d,e,f,g,h){for(var i=this._nRounds,j=a[b]^c[0],k=a[b+1]^c[1],l=a[b+2]^c[2],m=a[b+3]^c[3],n=4,o=1;i>o;o++){var p=d[j>>>24]^e[k>>>16&255]^f[l>>>8&255]^g[255&m]^c[n++],q=d[k>>>24]^e[l>>>16&255]^f[m>>>8&255]^g[255&j]^c[n++],r=d[l>>>24]^e[m>>>16&255]^f[j>>>8&255]^g[255&k]^c[n++],s=d[m>>>24]^e[j>>>16&255]^f[k>>>8&255]^g[255&l]^c[n++];j=p,k=q,l=r,m=s}var p=(h[j>>>24]<<24|h[k>>>16&255]<<16|h[l>>>8&255]<<8|h[255&m])^c[n++],q=(h[k>>>24]<<24|h[l>>>16&255]<<16|h[m>>>8&255]<<8|h[255&j])^c[n++],r=(h[l>>>24]<<24|h[m>>>16&255]<<16|h[j>>>8&255]<<8|h[255&k])^c[n++],s=(h[m>>>24]<<24|h[j>>>16&255]<<16|h[k>>>8&255]<<8|h[255&l])^c[n++];a[b]=p,a[b+1]=q,a[b+2]=r,a[b+3]=s},keySize:8});a.AES=c._createHelper(p)}(),function(a){var b=CryptoJS,c=b.lib,d=c.CipherParams,e=b.enc,f=e.Hex,g=b.format;g.Hex={stringify:function(a){return a.ciphertext.toString(f)},parse:function(a){var b=f.parse(a);return d.create({ciphertext:b})}}}(),function(){var a=CryptoJS,b=a.lib,c=b.Base,d=b.WordArray,e=a.algo,f=e.MD5,g=e.EvpKDF=c.extend({cfg:c.extend({keySize:4,hasher:f,iterations:1}),init:function(a){this.cfg=this.cfg.extend(a)},compute:function(a,b){for(var c=this.cfg,e=c.hasher.create(),f=d.create(),g=f.words,h=c.keySize,i=c.iterations;g.length<h;){j&&e.update(j);var j=e.update(a).finalize(b);e.reset();for(var k=1;i>k;k++)j=e.finalize(j),e.reset();f.concat(j)}return f.sigBytes=4*h,f}});a.EvpKDF=function(a,b,c){return g.create(c).compute(a,b)}}(),CryptoJS.pad.ZeroPadding={pad:function(a,b){var c=4*b;a.clamp(),a.sigBytes+=c-(a.sigBytes%c||c)},unpad:function(a){for(var b=a.words,c=a.sigBytes-1;!(b[c>>>2]>>>24-c%4*8&255);)c--;a.sigBytes=c+1}},function(){var a=CryptoJS,b=a.lib,c=b.WordArray,d=a.enc;d.Base64={stringify:function(a){var b=a.words,c=a.sigBytes,d=this._map;a.clamp();for(var e=[],f=0;c>f;f+=3)for(var g=b[f>>>2]>>>24-f%4*8&255,h=b[f+1>>>2]>>>24-(f+1)%4*8&255,i=b[f+2>>>2]>>>24-(f+2)%4*8&255,j=g<<16|h<<8|i,k=0;4>k&&c>f+.75*k;k++)e.push(d.charAt(j>>>6*(3-k)&63));var l=d.charAt(64);if(l)for(;e.length%4;)e.push(l);return e.join("")},parse:function(a){var b=a.length,d=this._map,e=d.charAt(64);if(e){var f=a.indexOf(e);-1!=f&&(b=f)}for(var g=[],h=0,i=0;b>i;i++)if(i%4){var j=d.indexOf(a.charAt(i-1))<<i%4*2,k=d.indexOf(a.charAt(i))>>>6-i%4*2;g[h>>>2]|=(j|k)<<24-h%4*8,h++}return c.create(g,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),angular.module("progressbar-directive",[]),angular.module("progressbar-directive").directive("progressBar",function(){return{restrict:"E",replace:!0,link:function(a,b,c){function d(){if(b.children().css({width:e.toString()+"%"}),void 0!==c.frontbarclasses){var a=-1;angular.forEach(f,function(c){c>=e&&e>a&&(b.children().attr("class","processbarBaseFront frontBar"+c.toString()),a=c)})}if(void 0!==c.backbarclasses){var d=-1;angular.forEach(g,function(a){a>=e&&e>d&&(b.attr("class","processbarBaseBack backBar"+a.toString()),d=a)})}}b.children().html(""),a.barValue=c.barValue;var e=0,f=JSON.parse(c.frontbarclasses),g=JSON.parse(c.backbarclasses);a.$watch(c.barValue,function(a){void 0!==a&&(e=a>100?100:a,d())})},template:'<div class="processbarBaseBack"> <div class="processbarBaseFront"></div></div>'}}),function(a){"use strict";if(a.URL=a.URL||a.webkitURL,a.Blob&&a.URL)try{return void new Blob}catch(b){}var c=a.BlobBuilder||a.WebKitBlobBuilder||a.MozBlobBuilder||function(a){var b=function(a){return Object.prototype.toString.call(a).match(/^\[object\s(.*)\]$/)[1]},c=function(){this.data=[]},d=function(a,b,c){this.data=a,this.size=a.length,this.type=b,this.encoding=c},e=c.prototype,f=d.prototype,g=a.FileReaderSync,h=function(a){this.code=this[this.name=a]},i="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),j=i.length,k=a.URL||a.webkitURL||a,l=k.createObjectURL,m=k.revokeObjectURL,n=k,o=a.btoa,p=a.atob,q=a.ArrayBuffer,r=a.Uint8Array,s=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(d.fake=f.fake=!0;j--;)h.prototype[i[j]]=j+1;return k.createObjectURL||(n=a.URL=function(a){var b,c=document.createElementNS("http://www.w3.org/1999/xhtml","a");return c.href=a,"origin"in c||("data:"===c.protocol.toLowerCase()?c.origin=null:(b=a.match(s),c.origin=b&&b[1])),c}),n.createObjectURL=function(a){var b,c=a.type;return null===c&&(c="application/octet-stream"),a instanceof d?(b="data:"+c,"base64"===a.encoding?b+";base64,"+a.data:"URI"===a.encoding?b+","+decodeURIComponent(a.data):o?b+";base64,"+o(a.data):b+","+encodeURIComponent(a.data)):l?l.call(k,a):void 0},n.revokeObjectURL=function(a){"data:"!==a.substring(0,5)&&m&&m.call(k,a)},e.append=function(a){var c=this.data;if(r&&(a instanceof q||a instanceof r)){for(var e="",f=new r(a),i=0,j=f.length;j>i;i++)e+=String.fromCharCode(f[i]);c.push(e)}else if("Blob"===b(a)||"File"===b(a)){if(!g)throw new h("NOT_READABLE_ERR");var k=new g;c.push(k.readAsBinaryString(a))}else a instanceof d?"base64"===a.encoding&&p?c.push(p(a.data)):"URI"===a.encoding?c.push(decodeURIComponent(a.data)):"raw"===a.encoding&&c.push(a.data):("string"!=typeof a&&(a+=""),c.push(unescape(encodeURIComponent(a))))},e.getBlob=function(a){return arguments.length||(a=null),new d(this.data.join(""),a,"raw")},e.toString=function(){return"[object BlobBuilder]"},f.slice=function(a,b,c){var e=arguments.length;return 3>e&&(c=null),new d(this.data.slice(a,e>1?b:this.data.length),c,this.encoding)},f.toString=function(){return"[object Blob]"},f.close=function(){this.size=0,delete this.data},c}(a);a.Blob=function(a,b){var d=b?b.type||"":"",e=new c;if(a)for(var f=0,g=a.length;g>f;f++)Uint8Array&&a[f]instanceof Uint8Array?e.append(a[f].buffer):e.append(a[f]);var h=e.getBlob(d);return!h.slice&&h.webkitSlice&&(h.slice=h.webkitSlice),
h};var d=Object.getPrototypeOf||function(a){return a.__proto__};a.Blob.prototype=d(new a.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this);var saveAs=saveAs||function(a){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var b=a.document,c=function(){return a.URL||a.webkitURL||a},d=b.createElementNS("http://www.w3.org/1999/xhtml","a"),e="download"in d,f=function(a){var b=new MouseEvent("click");a.dispatchEvent(b)},g=a.webkitRequestFileSystem,h=a.requestFileSystem||g||a.mozRequestFileSystem,i=function(b){(a.setImmediate||a.setTimeout)(function(){throw b},0)},j="application/octet-stream",k=0,l=500,m=function(b){var d=function(){"string"==typeof b?c().revokeObjectURL(b):b.remove()};a.chrome?d():setTimeout(d,l)},n=function(a,b,c){b=[].concat(b);for(var d=b.length;d--;){var e=a["on"+b[d]];if("function"==typeof e)try{e.call(a,c||a)}catch(f){i(f)}}},o=function(a){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\ufeff",a],{type:a.type}):a},p=function(b,i,l){l||(b=o(b));var p,q,r,s=this,t=b.type,u=!1,v=function(){n(s,"writestart progress write writeend".split(" "))},w=function(){if(!u&&p||(p=c().createObjectURL(b)),q)q.location.href=p;else{var d=a.open(p,"_blank");void 0==d&&"undefined"!=typeof safari&&(a.location.href=p)}s.readyState=s.DONE,v(),m(p)},x=function(a){return function(){return s.readyState!==s.DONE?a.apply(this,arguments):void 0}},y={create:!0,exclusive:!1};return s.readyState=s.INIT,i||(i="download"),e?(p=c().createObjectURL(b),d.href=p,d.download=i,void setTimeout(function(){f(d),v(),m(p),s.readyState=s.DONE})):(a.chrome&&t&&t!==j&&(r=b.slice||b.webkitSlice,b=r.call(b,0,b.size,j),u=!0),g&&"download"!==i&&(i+=".download"),(t===j||g)&&(q=a),h?(k+=b.size,void h(a.TEMPORARY,k,x(function(a){a.root.getDirectory("saved",y,x(function(a){var c=function(){a.getFile(i,y,x(function(a){a.createWriter(x(function(c){c.onwriteend=function(b){q.location.href=a.toURL(),s.readyState=s.DONE,n(s,"writeend",b),m(a)},c.onerror=function(){var a=c.error;a.code!==a.ABORT_ERR&&w()},"writestart progress write abort".split(" ").forEach(function(a){c["on"+a]=s["on"+a]}),c.write(b),s.abort=function(){c.abort(),s.readyState=s.DONE},s.readyState=s.WRITING}),w)}),w)};a.getFile(i,{create:!1},x(function(a){a.remove(),c()}),x(function(a){a.code===a.NOT_FOUND_ERR?c():w()}))}),w)}),w)):void w())},q=p.prototype,r=function(a,b,c){return new p(a,b,c)};return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(a,b,c){return c||(a=o(a)),navigator.msSaveOrOpenBlob(a,b||"download")}:(q.abort=function(){var a=this;a.readyState=a.DONE,n(a,"abort")},q.readyState=q.INIT=0,q.WRITING=1,q.DONE=2,q.error=q.onwritestart=q.onprogress=q.onwrite=q.onabort=q.onerror=q.onwriteend=null,r)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=saveAs:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return saveAs}),function(a){"use strict";angular.module("tmh.dynamicLocale",[]).config(["$provide",function(a){function b(a){return a.$stateful=!0,a}a.decorator("dateFilter",["$delegate",b]),a.decorator("numberFilter",["$delegate",b]),a.decorator("currencyFilter",["$delegate",b])}]).constant("tmhDynamicLocale.STORAGE_KEY","tmhDynamicLocale.locale").provider("tmhDynamicLocale",["tmhDynamicLocale.STORAGE_KEY",function(a){function b(a,b,c,d){var e=document.createElement("script"),f=document.getElementsByTagName("body")[0],g=!1;e.type="text/javascript",e.readyState?e.onreadystatechange=function(){"complete"!==e.readyState&&"loaded"!==e.readyState||(e.onreadystatechange=null,d(function(){g||(g=!0,f.removeChild(e),b())},30,!1))}:(e.onload=function(){g||(g=!0,f.removeChild(e),b())},e.onerror=function(){g||(g=!0,f.removeChild(e),c())}),e.src=a,e.async=!1,f.appendChild(e)}function c(a,c,d,g,h,k,l){function m(a,b){f===d&&(angular.forEach(a,function(c,d){b[d]?angular.isArray(b[d])&&(a[d].length=b[d].length):delete a[d]}),angular.forEach(b,function(c,d){angular.isArray(b[d])||angular.isObject(b[d])?(a[d]||(a[d]=angular.isArray(b[d])?[]:{}),m(a[d],b[d])):a[d]=b[d]}))}if(j[d])return j[d];var n,o=h.defer();return d===f?o.resolve(c):(n=k.get(d))?(f=d,g.$evalAsync(function(){m(c,n),g.$broadcast("$localeChangeSuccess",d,c),e.put(i,d),o.resolve(c)})):(f=d,j[d]=o.promise,b(a,function(){var a=angular.injector(["ngLocale"]),b=a.get("$locale");m(c,b),k.put(d,b),delete j[d],g.$apply(function(){g.$broadcast("$localeChangeSuccess",d,c),e.put(i,d),o.resolve(c)})},function(){delete j[d],g.$apply(function(){f===d&&(f=c.id),g.$broadcast("$localeChangeError",d),o.reject(d)})},l)),o.promise}var d,e,f,g="angular/i18n/angular-locale_{{locale}}.js",h="tmhDynamicLocaleStorageCache",i=a,j={};this.localeLocationPattern=function(a){return a?(g=a,this):g},this.useStorage=function(a){h=a},this.useCookieStorage=function(){this.useStorage("$cookieStore")},this.defaultLocale=function(a){d=a},this.storageKey=function(a){return a?(i=a,this):i},this.$get=["$rootScope","$injector","$interpolate","$locale","$q","tmhDynamicLocaleCache","$timeout",function(a,b,j,k,l,m,n){var o=j(g);return e=b.get(h),a.$evalAsync(function(){var b;(b=e.get(i)||d)&&c(o({locale:b}),k,b,a,l,m,n)}),{set:function(b){return c(o({locale:b}),k,b,a,l,m,n)},get:function(){return f}}}]}]).provider("tmhDynamicLocaleCache",function(){this.$get=["$cacheFactory",function(a){return a("tmh.dynamicLocales")}]}).provider("tmhDynamicLocaleStorageCache",function(){this.$get=["$cacheFactory",function(a){return a("tmh.dynamicLocales.store")}]}).run(["tmhDynamicLocale",angular.noop])}(window),function(window,angular,undefined){var appControllers=angular.module("kbApp.controllers",[]);appControllers.controller("kbAppCtrl",["kbAppService","$rootScope","$scope","$q","$timeout","kbAppProperties","kbAppPageService","authService","$location","dxsService","utilService",function(a,b,c,d,e,f,g,h,i,j,k){c.appPageInfo=g.pageInfo||{},c.appIsLogedIn=!1,c.appUserTranslationId=h.getSession().user.translationId,c.appIsInitialized=a.isInitialized,c.appIsMatchingProperties=f.match,c.appIsUserAuthorized=h.authorized,c.appIsLoggedInStateMatch=h.isLoggedInStateMatch,c.appDate=new Date("2010-01-01 00:00:00");var l=j.getInstance(),m={dxsId:268436225,value:1262304e3};l.addDataRd(m),l.getDataRd(1e4).then(null,null,function(a){a===!0&&(c.appDate=k.unixTimeStampToDate(m.value))}),c.$watch(function(){return h.isLoggedIn()},function(a,b){a!==b&&(c.appIsLogedIn=a)}),c.$watch(function(){return h.getSession().user.translationId},function(a,b){a!==b&&(c.appUserTranslationId=a)}),b.$on("$routeChangeStart",function(a,b,c){h.authorized(b.user)===!1&&i.path("/home")}),b.$on("appPropertiesRefreshed",function(){c.inverterTypeName=f.getInverterTypeName(),c.inverterName=f.getInverterName()}),b.$on("$routeChangeError",function(a,b,c){var d="/";angular.isDefined(c)&&(d=c.originalPath),i.path(d)})}]);var appServices=angular.module("kbApp.services",["kbApp.dxs.services","kbApp.mixins"]);appServices.factory("kbAppService",["initService","$timeout","$rootScope","$q",function(a,b,c,d){var e=!1,f=function(){var a=d.defer();return e===!0?b(function(){a.resolve()},2):c.$on("appInitialized",function(){e=!0,a.resolve()}),a.promise};return{isInitialized:e,isInitializedPromise:f}}]),appServices.constant("kbAppPropertiesMap",{STRG_ASYNC_INTERFACE:1,PIKO_FUTURE:2,STRING_2:4,STRING_3:8,STRING_4:16,"3_PHASE":32,FAN:64,ARCDETECTION:128,MODEM_SLOT_PRESENT:256,MODEM_PRESENT:512,MODEM_GSM:1024,CAN:2048,RS485_2:4096,BATTERY:8192,EXT_CURRENT_SENS:16384,EXT_CURRENT_SENS_POS1:32768,EXT_CURRENT_SENS_POS2:65536,AUTO_IP:131072,ESB:262144,WINTERMODE_SUPPORTED:524288,WINTERMODE_AUTO:1048576,BATTERY_LION:2097152,MODBUS:4194304,PV_MODULE_REGULATION:8388608,SHADING_TRACKER_STRING_1:16777216,SHADING_TRACKER_STRING_2:33554432,SHADING_TRACKER_STRING_3:67108864,WEATHER_FORECAST:134217728,OVERVOLTAGE_PROT_AC:268435456,OVERVOLTAGE_PROT_DC:536870912,PARALLEL_CONNECTION:1073741824}),appServices.factory("kbAppProperties",["kbAppPropertiesMap","dxsService","$q","$timeout","$rootScope","KbError","KbErrorTypes",function(kbAppPropertiesMap,dxsService,$q,$timeout,$rootScope,KbError,KbErrorTypes){var properties=0,inverterName="",inverterTypeName="",init=function(){var a=$q.defer(),b=dxsService.getInstance(),c={dxsId:16780288},d={dxsId:16777984},e={dxsId:16780544};return b.addDataRd(c),b.addDataRd(d),b.addDataRd(e),b.getDataRd(1e4).then(null,null,function(b){b===!0?(properties=c.value,inverterName=d.value,inverterTypeName=e.value,$rootScope.$broadcast("appPropertiesRefreshed"),a.resolve("Properties received successful")):a.reject(new KbError("System Properties could not be loaded",KbErrorTypes.ERR_INTERNAL))}),a.promise},match=function(prop){var result=0,propResult=prop.replace(/\s+/g,""),propArray=propResult.split(/[&|() !]+/);propArray=propArray.filter(Boolean);for(var i=0;i<propArray.length;i++){var tmpResult=0;if(kbAppPropertiesMap.hasOwnProperty(propArray[i])){var tmpProp=kbAppPropertiesMap[propArray[i]];(tmpProp&properties)==tmpProp&&(tmpResult=1)}propResult=propResult.replace(propArray[i],tmpResult)}return result=eval(propResult),1==result||result===!0},getInverterName=function(){return inverterName},getInverterTypeName=function(){return inverterTypeName};return{init:init,match:match,getInverterName:getInverterName,getInverterTypeName:getInverterTypeName}}]),appServices.factory("kbAppPageService",["$rootScope","$q","$timeout","KbErrorTypes",function(a,b,c,d){var e={loadingInProgress:!1,loadingFailed:!1,submitInProgress:!1,submitSuccessful:!1,submitFailed:!1,displayMsgId:""},f=null,g=function(a,g){null!=f&&c.cancel(f),e.submitInProgress=!0;var h=b.when(a);h.then(function(a){e.submitInProgress=!1,e.submitSuccessful=!0,e.submitFailed=!1,e.displayMsgId="",angular.isDefined(a)&&angular.isDefined(a.type)&&angular.isDefined(a.msg)&&angular.isDefined(a.data)&&a.type,angular.isDefined(g)&&angular.isFunction(g)&&g("success")},function(a){if(e.submitInProgress=!1,e.submitSuccessful=!1,e.submitFailed=!0,e.displayMsgId="",angular.isDefined(a)&&angular.isDefined(a.type)&&angular.isDefined(a.msg)&&angular.isDefined(a.data))switch(a.type){case d.ERR_AUTHENTICATION:e.displayMsgId="ID_367";break;case d.ERR_PARAMETER:e.displayMsgId="ID_368";break;case d.ERR_BUSY:e.displayMsgId="ID_XXX";break;case d.ERR_NOT_DEFINED:case d.ERR_INTERNAL:e.displayMsgId="ID_369";break;case d.ERR_COMMUNICATION:e.displayMsgId="ID_371";break;case d.ERR_LOGIN_PARAMETER:e.displayMsgId="ID_370"}angular.isDefined(g)&&angular.isFunction(g)&&g("error")}),h["finally"](function(){f=c(function(){e.submitInProgress=!1,e.submitSuccessful=!1,e.submitFailed=!1,e.displayMsgId="",f=null},5e3)})};return a.$on("$routeChangeStart",function(){e.loadingInProgress=!0,e.loadingFailed=!1,e.submitInProgress=!1,e.submitSuccessful=!1,e.submitFailed=!1,e.displayMsgId=""}),a.$on("kbPageLoaded",function(){e.loadingInProgress=!1,e.loadingFailed=!1,e.displayMsgId=""}),a.$on("kbPageLoadFailed",function(){e.loadingInProgress=!1,e.loadingFailed=!0,e.displayMsgId=""}),{pageInfo:e,submitHelper:g}}]);var kbApp=angular.module("kbApp",["kbApp.services","kbApp.controllers","ngRoute","ngMessages","ngQuickDate","templates-app","templates-common","kbApp.pages","kbApp.init","kbApp.mixins","kbApp.auth","kbApp.language","kbApp.navigation","kbApp.dxs","progressbar-directive","kb-elements"]);kbApp.config(["$routeProvider",function(a){a.when("/home",{templateUrl:"pages/home/home.tpl.html",controller:"homeCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]}}).when("/current-values/pv-generator",{templateUrl:"pages/current-values/pv-generator/current-values-pv-generator.tpl.html",controller:"current-values-pv-generatorCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/current-values/battery",{templateUrl:"pages/current-values/battery/current-values-battery.tpl.html",controller:"current-values-batteryCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/current-values/home",{templateUrl:"pages/current-values/home/current-values-home.tpl.html",controller:"current-values-homeCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/current-values/grid",{templateUrl:"pages/current-values/grid/current-values-grid.tpl.html",controller:"current-values-gridCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/current-values/analog-inputs",{templateUrl:"pages/current-values/analog-inputs/current-values-analog-inputs.tpl.html",controller:"current-values-analog-inputsCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/current-values/s0-in",{templateUrl:"pages/current-values/s0-in/current-values-s0-in.tpl.html",controller:"current-values-s0-inCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/statistics/day",{templateUrl:"pages/statistics/day/statistics-day.tpl.html",controller:"statistics-dayCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/statistics/total",{templateUrl:"pages/statistics/total/statistics-total.tpl.html",controller:"statistics-totalCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/statistics/log-data",{templateUrl:"pages/statistics/log-data/statistics-log-data.tpl.html",controller:"statistics-log-dataCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/settings/general/inverter-name",{templateUrl:"pages/settings/general/inverter-name/settings-general-inverter-name.tpl.html",controller:"settings-general-inverter-nameCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/settings/general/date-time",{templateUrl:"pages/settings/general/date-time/settings-general-date-time.tpl.html",controller:"settings-general-date-timeCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/settings/general/login",{templateUrl:"pages/settings/general/login/settings-general-login.tpl.html",controller:"settings-general-loginCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/settings/communication/inverter-address",{templateUrl:"pages/settings/communication/inverter-address/settings-communication-inverter-address.tpl.html",controller:"settings-communication-inverter-addressCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/settings/communication/network",{templateUrl:"pages/settings/communication/network/settings-communication-network.tpl.html",controller:"settings-communication-networkCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/settings/communication/rs485",{templateUrl:"pages/settings/communication/rs485/settings-communication-rs485.tpl.html",controller:"settings-communication-rs485Ctrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/settings/communication/modem",{templateUrl:"pages/settings/communication/modem/settings-communication-modem.tpl.html",controller:"settings-communication-modemCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/settings/portal-configuration",{templateUrl:"pages/settings/portal-configuration/settings-portal-configuration.tpl.html",controller:"settings-portal-configurationCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/settings/data-logger",{templateUrl:"pages/settings/data-logger/settings-data-logger.tpl.html",controller:"settings-data-loggerCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/settings/overvoltage-protection",{templateUrl:"pages/settings/overvoltage-protection/settings-overvoltage-protection.tpl.html",controller:"settings-overvoltage-protectionCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/settings/generator-configuration",{templateUrl:"pages/settings/generator-configuration/settings-generator-configuration.tpl.html",controller:"settings-generator-configurationCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/settings/battery-configuration",{templateUrl:"pages/settings/battery-configuration/settings-battery-configuration.tpl.html",controller:"settings-battery-configurationCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/settings/switching-output",{templateUrl:"pages/settings/switching-output/settings-switching-output.tpl.html",controller:"settings-switching-outputCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/settings/analog-inputs",{templateUrl:"pages/settings/analog-inputs/settings-analog-inputs.tpl.html",controller:"settings-analog-inputsCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/info/events",{templateUrl:"pages/info/events/info-events.tpl.html",controller:"info-eventsCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]},user:"PLANT_OWNER, INSTALLER, DEVELOPER, SERVICE"}).when("/info/versions",{templateUrl:"pages/info/versions/info-versions.tpl.html",controller:"info-versionsCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]}}).when("/login",{templateUrl:"pages/login/login.tpl.html",controller:"loginCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]}}).when("/logout",{templateUrl:"pages/logout/logout.tpl.html",controller:"logoutCtrl",resolve:{initialized:["kbAppService",function(a){return a.isInitializedPromise()}]}}).otherwise({redirectTo:"/home"})}]);var authServices=angular.module("kbApp.auth.services",["kbApp.mixins"]);authServices.factory("authService",["$http","$q","$timeout","$location","KbError","KbErrorTypes",function(a,b,c,d,e,f){"use strict";var g=null,h={DEFAULT:{roleId:0,translationId:"ID_374"},INSTALLER:{roleId:1,translationId:"ID_363"},PLANT_OWNER:{roleId:2,translationId:"ID_362"},SERVICE:{roleId:3,translationId:"ID_390"},DEVELOPER:{roleId:7,translationId:"ID_389"}},i=function(){g={id:0,key:"",chiperIV:"",user:{userId:"default",roleId:h.DEFAULT.roleId,translationId:h.DEFAULT.translationId},isLoggedIn:!1,logoutInProgress:!1}};i();var j=function(a,b){if("undefined"!=typeof a){"undefined"!=typeof b&&(g.user.userId=b);for(var c in h)if(h.hasOwnProperty(c)){var d=h[c];if(a==d.roleId)return g.user.roleId=a,void(g.user.translationId=d.translationId)}}i()},k=function(){var a={};return a.id=g.id,a.user=g.user,a},l=function(a,b){angular.isDefined(a)&&0!==a?(g.id=a,j(b)):0!==g.id&&(i(),d.path("/login"))},m=function(a,b){for(var c=[],d=0;d<a.length;d++)for(var e=0;e<b.length;e++)if(a.charAt(d)===b.charAt(e)){c.push(e);break}return c},n=function(a,b){var c,d,e=-1;return b<=5*a.length-1&&(c=parseInt(b/5,10),d=b%5,e=a[c]>>d&1),e},o=function(d,h){var i=b.defer(),j={};return angular.isDefined(d)===!1?c(function(){i.reject(new e("userId is empty or not defined!!!",f.ERR_LOGIN_PARAMETER))},5):angular.isDefined(h)===!1?c(function(){i.reject(new e("password is empty or not defined!!!",f.ERR_LOGIN_PARAMETER))},5):a({method:"GET",url:"/api/login.json"}).success(function(b){if(angular.isDefined(b)!==!0)i.reject(new e("No data has been returned",f.ERR_INTERNAL));else if(angular.isDefined(b.session)!==!0)i.reject(new e("No Session has been returned",f.ERR_INTERNAL));else if(angular.isDefined(b.session.sessionId)!==!0||0===b.session.sessionId)i.reject(new e("Session Id is invalid",f.ERR_INTERNAL));else if(angular.isDefined(b.salt)!==!0||28!=b.salt.length)i.reject(new e("Salt is invalid",f.ERR_INTERNAL));else{g.user.userId=d,g.key=CryptoJS.SHA1(b.salt+h).toString(CryptoJS.enc.Base64).substr(0,16),g.chiperIV=CryptoJS.SHA1(b.salt+g.key).toString(CryptoJS.enc.Base64).substr(0,16);var c=h+b.salt;j.mode=1,j.userId=g.user.userId,j.pwh=CryptoJS.SHA1(c),j.pwh=j.pwh.toString(CryptoJS.enc.Base64),a({method:"POST",url:"/api/login.json",data:j}).success(function(a){if(angular.isDefined(a)===!1||angular.isDefined(a.session)===!1)i.reject(new e("Authentication failed! No session has been returned",f.ERR_LOGIN_PARAMETER));else if(angular.isDefined(a.status)!==!0||angular.isDefined(a.status.code)!==!0)i.reject(new e("No status is returned",f.ERR_INTERNAL));else switch(a.status.code){case f.ERR_OK:g.isLoggedIn=!0,i.resolve("Authentication successful");break;case f.ERR_LOGIN_PARAMETER:i.reject(new e("Wrong Username or Password",f.ERR_LOGIN_PARAMETER));break;default:i.reject(new e("Unknown error",f.ERR_INTERNAL))}}).error(function(){i.reject(new e("Authentication failed! No answer",f.ERR_COMMUNICATION))})}}).error(function(){i.reject(new e("Cant get a session! No answer",f.ERR_COMMUNICATION))}),i.promise},p=function(c){var d,h,i=b.defer(),j={},k=[];if(angular.isDefined(c)!==!0||8!=c.length)i.reject(new e("Service Code is invalid!!!",f.ERR_LOGIN_PARAMETER));else{for(k=m(c,"ABCDEFGHJKMNPQRSTVWXYZ0123456789"),d=n(k,8)<<0,d|=n(k,38)<<1,d|=n(k,24)<<2,d|=n(k,2)<<3,d|=n(k,15)<<4,d|=n(k,10)<<5,d|=n(k,11)<<6,d|=n(k,4)<<7,d|=n(k,34)<<8,d|=n(k,30)<<9,d|=n(k,20)<<10,d|=n(k,12)<<11,d|=n(k,0)<<12,d|=n(k,33)<<13,d|=n(k,32)<<14,d|=n(k,18)<<15,d|=n(k,9)<<16,d|=n(k,3)<<17,d|=n(k,39)<<18,d|=n(k,25)<<19,d|=n(k,37)<<20,d|=n(k,13)<<21,d|=n(k,28)<<22,d|=n(k,23)<<23,d=""+d;d.length<6;)d="0"+d;h=n(k,31)<<0,h+=n(k,6)<<1,h+=n(k,22)<<2,a({method:"GET",url:"/api/login.json"}).success(function(b){if(angular.isDefined(b)!==!0)i.reject(new e("No data has been returned",f.ERR_INTERNAL));else if(angular.isDefined(b.session)!==!0)i.reject(new e("No Session has been returned",f.ERR_INTERNAL));else if(angular.isDefined(b.session.sessionId)!==!0||0===b.session.sessionId)i.reject(new e("Session Id is invalid",f.ERR_INTERNAL));else if(angular.isDefined(b.salt)!==!0||28!=b.salt.length)i.reject(new e("Salt is invalid",f.ERR_INTERNAL));else{g.user.userId=d+"_"+h,g.key=CryptoJS.SHA1(b.salt+c).toString(CryptoJS.enc.Base64).substr(0,16),g.chiperIV=CryptoJS.SHA1(b.salt+g.key).toString(CryptoJS.enc.Base64).substr(0,16);var k=c+b.salt;j.mode=2,j.userId=g.user.userId,j.pwh=CryptoJS.SHA1(k),j.pwh=j.pwh.toString(CryptoJS.enc.Base64),a({method:"POST",url:"/api/login.json",data:j}).success(function(a){if(angular.isDefined(a)===!1||angular.isDefined(a.session)===!1)i.reject(new e("Authentication failed! No session has been returned",f.ERR_LOGIN_PARAMETER));else if(angular.isDefined(a.status)!==!0||angular.isDefined(a.status.code)!==!0)i.reject(new e("No status is returned",f.ERR_INTERNAL));else switch(a.status.code){case f.ERR_OK:g.isLoggedIn=!0,i.resolve("Authentication successful");break;case f.ERR_LOGIN_PARAMETER:i.reject(new e("Wrong Username or Password",f.ERR_LOGIN_PARAMETER));break;default:i.reject(new e("Unknown error",f.ERR_INTERNAL))}}).error(function(){i.reject(new e("Authentication failed! No answer",f.ERR_COMMUNICATION))})}}).error(function(){i.reject(new e("Cant get a session! No answer",f.ERR_COMMUNICATION))})}return i.promise},q=function(){return g.isLoggedIn},r=function(a){var b=!0;return a!==!1&&a!==!0||a!=g.isLoggedIn&&(b=!1),b},s=function(){var h=b.defer();return g.logoutInProgress===!1&&q()?(g.logoutInProgress=!0,a({method:"POST",url:"/api/logout.json"}).success(function(a){if(angular.isDefined(a)&&angular.isDefined(a.status)&&angular.isDefined(a.status.code))switch(a.status.code){case f.ERR_OK:i(),d.path("/login"),h.resolve("Successful logout");break;default:h.reject(new e("Unknown error",f.ERR_INTERNAL))}else h.reject(new e("Unknown error",f.ERR_INTERNAL));g.logoutInProgress=!1}).error(function(){h.reject(new e("Failed to logout, No answer",f.ERR_COMMUNICATION)),g.logoutInProgress=!1})):c(function(){h.resolve("Successful logout")},5),h.promise},t=function(a){var b=!1;if(angular.isDefined(a)&&""!==a&&0!==a&&null!==a){if(angular.isNumber(a)&&(d=a,0===(g.user.roleId&d)&&0!==d||(b=!0)),angular.isString(a))for(var c=a.split(/[, ;]+/),d=-1,e=0;e<c.length;e++)if(h.hasOwnProperty(c[e])&&(-1==d&&(d=0),d=h[c[e]].roleId,g.user.roleId==d)){b=!0;break}}else b=!0;return b},u=function(a){var b=null;if(0!==g.id){var c=CryptoJS.enc.Utf8.parse(g.key),d=CryptoJS.enc.Utf8.parse(g.chiperIV);b=CryptoJS.AES.encrypt(a.toString(),c,{mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding,iv:d}),b=b.toString(CryptoJS.format.Hex)}return b};return{getSession:k,setSession:l,loginUserPw:o,loginServiceCode:p,isLoggedIn:q,isLoggedInStateMatch:r,logout:s,authorized:t,encrypt:u}}]),authServices.factory("authHttpInterceptor",["$q","$injector",function(a,b){return{request:function(c){if(!c.url.match(/.*\.tpl\..*/)){var d=b.get("authService");angular.isDefined(c.params)===!1&&(c.params={}),0!==d.getSession().id?c.params.sessionId=d.getSession().id:delete c.params.sessionId}return c||a.when(c)},requestError:function(b){return a.reject(b)},response:function(c){var d=b.get("authService");return angular.isDefined(c)&&angular.isDefined(c.data)&&angular.isDefined(c.data.session)&&d.setSession(c.data.session.sessionId,c.data.session.roleId),c||a.when(c)},responseError:function(b){return a.reject(b)}}}]),authServices.config(["$httpProvider",function(a){a.interceptors.push("authHttpInterceptor")}]),angular.module("kbApp.auth",["kbApp.auth.services"]);var dxsServices=angular.module("kbApp.dxs.services",["kbApp.mixins"]);dxsServices.factory("dxsService",["$http","$q","$timeout","authService","KbError","KbErrorTypes",function(a,b,c,d,e,f){var g=[],h=2e4,i=function(){function a(a,b){return Math.floor(Math.random()*(b-a))+a}var b={dataRd:[],dataWr:[],timer:"undefined",addDataRd:k,delDataRd:l,addDataWr:m,delDataWr:n,getDataRd:o,getDataWr:p,setDataWr:q,clear:r};return b.id=a(0,4294967295),b.canceled=!1,g.push(b),g[g.length-1]},j=function(a,b){var c,d=!0;if("[object Array]"!=Object.prototype.toString.call(a))d=!1;else if("[object Array]"!=Object.prototype.toString.call(b.dxsEntries))d=!1;else for(var e=0;e<a.length;e++)if("undefined"==typeof a[e].readProhibited||a[e].readProhibited===!1){c=!1,a[e].value="-";for(var f=0;f<b.dxsEntries.length;f++)if("undefined"!=typeof b.dxsEntries[f].dxsId&&"undefined"!=typeof b.dxsEntries[f].value&&b.dxsEntries[f].dxsId==a[e].dxsId){a[e].value=b.dxsEntries[f].value,c=!0;break}c===!1&&(d=!1)}return d},k=function(a){var b=!1;return"object"==typeof a&&"undefined"!=typeof a.dxsId&&("string"==typeof a.dxsId&&("0x"==a.dxsId.substr(0,2)?a.dxsId=parseInt(a.dxsId,16):a.dxsId=parseInt(a.dxsId,10)),this.dataRd.push(a),b=!0),b},l=function(a){var b=!1;if("object"==typeof a&&"undefined"!=typeof a.dxsId){"string"==typeof a.dxsId&&("0x"==a.dxsId.substr(0,2)?a.dxsId=parseInt(a.dxsId,16):a.dxsId=parseInt(a.dxsId,10));for(var c=0;c<this.dataRd.length;c++)if(this.dataRd[c].dxsId==a.dxsId){this.dataRd.splice(c,1),b=!0;break}}return b},m=function(a){var b,c=!1,d=!1;if("object"==typeof a&&"undefined"!=typeof a.dxsId){for("string"==typeof a.dxsId&&("0x"==a.dxsId.substr(0,2)?a.dxsId=parseInt(a.dxsId,16):a.dxsId=parseInt(a.dxsId,10)),b=0;b<this.dataWr.length;b++)if(this.dataWr[b].dxsId==a.dxsId){d=!0;break}d===!1&&this.dataWr.push(a),c=!0}return c},n=function(a){var b=!1;if("object"==typeof a&&"undefined"!=typeof a.dxsId){"string"==typeof a.dxsId&&("0x"==a.dxsId.substr(0,2)?a.dxsId=parseInt(a.dxsId,16):a.dxsId=parseInt(a.dxsId,10));for(var c=0;c<this.dataWr.length;c++)if(this.dataWr[c].dxsId==a.dxsId){this.dataWr.splice(c,1),b=!0;break}}return b},o=function(d){var e,f=this,g={},i=d||1e3;if(0===d&&(i=0),g.dxsEntries=[],e=b.defer(),f.dataRd.length<=0)return c(function(){e.notify(!0)},2),e.promise;for(var k=0;k<f.dataRd.length;k++)g.dxsEntries.push(f.dataRd[k].dxsId);var l=function(){a({url:"/api/dxs.json",method:"GET",timeout:h,params:g}).then(function(a){j(f.dataRd,a.data)?e.notify(!0):e.notify(!1),f.canceled!==!0&&0!==i&&(f.timer=c(l,i))},function(){e.notify(!1);for(var a=0;a<f.dataRd.length;a++)f.dataRd[a].value="-";f.canceled!==!0&&0!==i&&(f.timer=c(l,i))})};return l(),e.promise},p=function(){var d,g={},i=this,k=0;if(g.dxsEntries=[],d=b.defer(),i.dataWr.length<=0)return c(function(){d.resolve()},2),d.promise;for(var l=0;l<i.dataWr.length;l++)"undefined"!=typeof i.dataWr[l].readProhibited&&i.dataWr[l].readProhibited!==!1||g.dxsEntries.push(i.dataWr[l].dxsId);var m=function(){a({url:"/api/dxs.json",method:"GET",timeout:h,params:g}).then(function(a){j(i.dataWr,a.data)?(d.resolve(),k=0):(k++,3>k?m():d.reject(new e("Answer dont match requested data",f.ERR_INTERNAL)))},function(){k++,3>k?m():d.reject(new e("No Answer",f.ERR_COMMUNICATION))})};return m(),d.promise},q=function(){var g,i={},j=this,k=!1;if(i.dxsEntries=[],g=b.defer(),j.dataWr.length<=0)return c(function(){g.resolve()},2),g.promise;for(var l=0;l<j.dataWr.length;l++)if(angular.isDefined(j.dataWr[l].enc)){var m=d.encrypt(j.dataWr[l].value),n=d.encrypt("LK_3421!");null!==m&&null!==n||(k=!0),i.dxsEntries.push({dxsId:j.dataWr[l].dxsId,enc:n,value:m})}else i.dxsEntries.push({dxsId:j.dataWr[l].dxsId,value:j.dataWr[l].value});return k===!0?c(function(){g.reject(new e("Internal Error",f.ERR_INTERNAL))},2):a({url:"/api/dxs.json",method:"POST",timeout:h,data:i}).then(function(a){if("undefined"!=typeof a.data.status)if(0===a.data.status.code)g.resolve();else{var b=a.data.status.dxsId||-1;switch(a.data.status.code){case 1:g.reject(new e("Authentication required for dxsID: "+b,f.ERR_AUTHENTICATION));break;case 2:g.reject(new e("Got invalid Parameter",f.ERR_INTERNAL));break;case 4:g.reject(new e("Internal Error",f.ERR_INTERNAL));break;default:g.reject(new e("Internal Error",f.ERR_INTERNAL))}}else g.reject(new e("Wrong data returned",f.ERR_INTERNAL))},function(){g.reject(new e("No answer",f.ERR_COMMUNICATION))}),g.promise},r=function(){for(var a=0;a<g.length;a++){var b=g[a];if("undefined"===b)g.splice(a,1);else if(b.id==this.id)return b.canceled=!0,c.cancel(b.timer),void g.splice(a,1)}};return{getInstance:i}}]),angular.module("kbApp.dxs",["kbApp.dxs.services"]);var initDirectives=angular.module("kbApp.init.directives",[]);initDirectives.directive("kbHideAfterInit",["$timeout",function(a){return{restrict:"A",link:function(b,c,d){b.$on("appInitialized",function(){a(function(){c.fadeOut(1e3)},2e3)}),b.$on("appNotInitialized",function(a,b){c.find("i").removeClass("icon-spinner animate-spin").addClass("icon-error"),c.find("#errorMsg").text(b.msg)})}}}]);var initServices=angular.module("kbApp.init.services",["kbApp.services","kbApp.auth.services","kbApp.language.services","kbApp.navigation.services"]);initServices.factory("initService",["$q","$rootScope","$browser",function(a,b,c){
var d=["initSystemProperties","initLanguage","initNavigation"],e={},f=!1,g=function(){var d=[],g=function(){c.defer(function(){f=!0,b.$apply(function(){b.$broadcast("appInitialized")})})};angular.forEach(e,function(a){d.push(a())}),a.all(d).then(g,function(a){b.$broadcast("appNotInitialized",a)})},h=function(){var a=_.keys(e),b=_.partial(_.contains,a);_.every(d,b)&&g()},i=function(b,c,d){e[b]=function(){var b=null;return b=angular.isFunction(c)===!0?a.all(c()):a.all(c),b.then(d)},h()};return i.watchAfterInit=function(a,b,c,d){a.$watch(b,function(a,b,d){f&&c(a,b,d)},d)},i.onAfterInit=function(a,b,c){a.$on(b,function(a){f&&c(a)})},i.isInitialized=function(){return f},i}]),initServices.run(["kbAppProperties","initService","languageService","navigationService",function(a,b,c,d){b("initLanguage",null,c.init),b("initNavigation",null,d.init),b("initSystemProperties",null,a.init)}]),angular.module("kbApp.init",["kbApp.init.services","kbApp.init.directives"]);var languageControllers=angular.module("kbApp.language.controllers",["kbApp.language.services","kbApp.init.services"]);languageControllers.controller("languageSelCtrl",["$scope","initService","languageService",function(a,b,c){a.languages=[],a.selectLanguage=c.selectLanguage,a.activeLanguage=c.activeLanguage,b.onAfterInit(a,"appInitialized",function(){a.languages=c.languages})}]);var languageDirectives=angular.module("kbApp.language.directives",[]);languageDirectives.directive("kbLanguageSelectItem",[function(){return{restrict:"A",templateUrl:"language/languageSelectItem.tpl.html",link:function(a,b,c){a.$watch("activeLanguage()",function(c){a.language==c?b.find("a").addClass("active"):b.find("a").removeClass("active")})}}}]);var languageServices=angular.module("kbApp.language.services",["pascalprecht.translate","ngCookies","kbApp.mixins","tmh.dynamicLocale"]).config(["$translateProvider","tmhDynamicLocaleProvider",function(a,b){a.useLoader("translationProvider",{}),b.localeLocationPattern("assets/language/i18n/angular-locale_{{locale}}.js")}]);languageServices.factory("translationProvider",["$q","$timeout","languageService",function(a,b,c){return function(d){var e=a.defer();return b(function(){c.languages.indexOf(d.key)>-1?e.resolve(c.translations[d.key]):e.reject(d.key)},10),e.promise}}]),languageServices.factory("languageService",["$http","$q","$translate","tmhDynamicLocale","$cookies","KbError","KbErrorTypes",function(a,b,c,d,e,f,g){var h=[],i=[],j=function(){var c=b.defer();return a.get("/assets/language/translation.json").then(function(a){var b=a.data;if("[object Array]"!=Object.prototype.toString.call(b))return void c.reject(new f("Structure of translation mismatch expecting structure"));if(0===b.length)return void c.reject(new f("No content in data"));for(var d=0;d<b.length;d++)"undefined"!=typeof b[d].language&&"undefined"!=typeof b[d].translations&&(h.push(b[d].language),i[b[d].language]=b[d].translations);c.resolve()},function(){c.reject(new f("No answer",g.ERR_COMMUNICATION))}),c.promise},k=function(a){function b(a){var b,c,d,e="en_GB";if(angular.isString(a)){for(b=0;b<h.length;b++)if(d=h[b],c=new RegExp(".*"+a.replace("-","_")+".*","i"),null!==d.match(c))return d}else if(angular.isArray(a))for(var f=0;f<a.length;f++){var g=a[f];for(b=0;b<h.length;b++)if(d=h[b],c=new RegExp(".*"+g.replace("-","_")+".*","i"),null!==d.match(c))return d}return e}var f=b(a);return c.use(f).then(function(){var a=new Date,b=new Date(a.getFullYear()+1,a.getMonth(),a.getDate());e.put("language",f,{expires:b}),d.set(f.toLowerCase().replace("_","-"))})},l=function(){var a,c,d=b.defer();return d.notify("Load translations"),j().then(function(){a=e.get("language"),c=a||window.navigator.languages||window.navigator.userLanguage||window.navigator.language,k(c).then(function(){d.resolve("Load translations successful")},function(){d.reject(new f("Load translations failed"))})},function(){d.reject(new f("Load translations failed"))}),d.promise};return{init:l,languages:h,translations:i,selectLanguage:k,activeLanguage:function(){return c.use()}}}]),angular.module("kbApp.language",["kbApp.language.services","kbApp.language.directives","kbApp.language.controllers"]);var mixinsBV=angular.module("kbApp.mixins.bv",[]);mixinsBV.factory("bvService",[function(){var a=10,b=290,c=(Math.PI/180,2*Math.PI),d=40,e=40,f=.001875,g=3,h=.4,i=1.05,j=10,k=2,l=450,m=250,n=.4,o=1.5,p=.8,q=1,r=.005,s=4e-4,t=5e-4,u=.17,v=10,w=["ball.png","kostal.jpg"],x={"Kostal Hagen":"kostal.jpg"},y={Set:"The set has been won by {0}!",Start:"Good luck and have fun!",Over:"Over, over, the game is over...\nThe winner is {0}!",Replay:"Replay"};!function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){},Class.extend=function(c){function d(){!a&&this.init&&this.init.apply(this,arguments)}var e=this.prototype;a=!0;var f=new this;a=!1;for(var g in c)f[g]="function"==typeof c[g]&&"function"==typeof e[g]&&b.test(c[g])?function(a,b){return function(){var c=this._super;this._super=e[a];var d=b.apply(this,arguments);return this._super=c,d}}(g,c[g]):c[g];return d.prototype=f,d.prototype.constructor=d,d.extend=arguments.callee,d}}();var z=document.getElementById("canvas").getContext("2d"),A=z.canvas.width,B=z.canvas.height,C={},D=Class.extend({init:function(){},random:function(a,b){var c=b-a;return Math.min(Math.floor(Math.random()*c),b-1)+a},format:function(a){for(var b=1;b<arguments.length;b++)a=a.replace(new RegExp("\\{"+(b-1)+"\\}","g"),arguments[b]);return a}}),E=Class.extend({init:function(a){this.toload=a,this.resources={}},loaded:function(){this.toload--},setResource:function(a,b){this.resources[a]=b},getResource:function(a){return this.resources[a]}}),F=E.extend({init:function(a,b){var c=this;c._super(b.length);for(var d=0;d<b.length;d++){var e=document.createElement("img");e.src=a+"/"+b[d],e.onload=function(){c.loaded()},c.setResource(b[d],e)}}}),G=D.extend({init:function(a,b,c){this.beach=a,this.ballx=b.x,this.bally=b.y,this.data=[],this.players=[],this.count=0,this.contacts=0;for(var d=0;d<c.length;d++)this.players.push({color:c[d].color,name:c[d].name,points:c[d].points,sets:c[d].sets})},addData:function(a){var b=[];this.contacts=0;for(var c=0;c<a.length;c++)b.push(a[c].input.copy()),this.contacts+=a[c].totalContacts;if(0===this.count){for(var d=!1,c=b.length;c--;)if(b[c]){d=!0;break}if(!d)return}this.data.push(b),this.count++},play:function(a,b){a.pause();var c=this.count,f=0,g=[],h=new O(a.field),i=new P(a.field),j=new M(g,a.field,h,i);j.setBackground(this.beach),i.x=this.ballx,i.y=this.bally;for(var k=this.data,l=0;l<this.players.length;l++){var m=new R(a,a.players[l].container);m.setIdentity(this.players[l].name,this.players[l].color),g.push(m)}var n=setInterval(function(){if(f===c)return clearInterval(n),b&&b.apply(a),void a.play();for(var d=k[f++],l=g.length;l--;)g[l].steer(d[l]);for(var m=e;m--;){i.logic(),h.logic();for(var l=g.length;l--;)g[l].logic(),i.collision(g[l]);i.collision(h)}j.paint(i,g)},d/2)},stop:function(){}}),H=Class.extend({init:function(a,b,c,d){this.setPosition(a||0,b||0),this.width=c||0,this.height=d||0},setPosition:function(a,b){this.x=a,this.y=b},paint:function(){}}),I=(Class.extend({init:function(){}}),H.extend({init:function(a,b){this._super(a,0,b,B),this.wh=b/2,this.hh=B/2}})),J=I.extend({init:function(){this._super(0,A)},paint:function(){z.strokeStyle="#cccccc",z.beginPath(),z.rect(0,0,A,B),z.closePath(),z.stroke()}}),K=I.extend({init:function(b,c){var d=A/c-a/2;this._super((d+a)*b,d)}}),L=H.extend({init:function(a){this._super(0,0,A,B),this.field=a.field,this.players=a.players,this.net=a.net,this.ball=a.ball,this.game=a,this.message=[],this.persistent=!1,this.timeLeft=0,this.radius=v},setup:function(){this.sets=2*this.game.maxSets-1,this.factor=2.5,this.offset=(this.game.maxSets-1)*this.radius*this.factor,this.shift=2*this.radius},setMessage:function(a,b){this.message=a.split("\n"),this.persistent=!b,b&&(this.timeLeft=b)},clearMessage:function(){this.message=[],this.persistent=!1,this.timeLeft=0},setBackground:function(a){this.background=C.images.getResource(x[a]),document.getElementById("beach").innerHTML=a},paint:function(){z.clearRect(0,0,A,B),z.drawImage(this.background,0,0),this.field.paint(),this.net.paint(),this.ball.paint();for(var a=this.players.length;a--;)this.players[a].paint();this.ball.getBottom()>B&&this.paintCursor(this.ball.x),this.paintScore();for(var a=this.players.length;a--;)this.players[a].paintPulse();this.paintMessage()},paintMessage:function(){if(!this.persistent){if(!this.timeLeft)return;this.timeLeft--}z.save(),z.translate(A/2,B/2),z.textAlign="center",z.fillStyle="#8A2BE2",z.font="32pt Merge";for(var a=0;a<this.message.length;a++)z.fillText(this.message[a],0,50*a);z.restore()},paintScore:function(){z.save(),z.translate(this.field.wh-this.offset,30);for(var a=0;a<this.sets;a++)this.game.sets.length>a?z.fillStyle=this.game.sets[a].color:z.fillStyle="#cccccc",z.strokeStyle="#666666",z.beginPath(),z.arc(this.factor*a*this.radius,0,this.radius,0,c,!1),z.fill(),z.stroke(),z.closePath();z.fillStyle="#dddddd",z.font="32pt Merge",z.textAlign="right",z.fillText(this.players[0].points,-this.shift,15),z.textAlign="left",z.fillText(this.players[1].points,2*this.offset+this.shift,15),z.restore()},paintCursor:function(a){z.save(),z.translate(a,10),z.fillStyle="#000000",z.beginPath(),z.moveTo(0,-5),z.lineTo(5,5),z.lineTo(-5,5),z.closePath(),z.fill(),z.restore()}}),M=L.extend({init:function(a,b,c,d){var e={players:a,field:b,net:c,ball:d};this._super(e),this.setMessage(y.Replay)},setup:function(){},paintScore:function(){}}),N=H.extend({init:function(a,b,c){this.container=a,this._super(0,0,b,c),this.friction=p,this.wh=this.width/2,this.hh=this.height/2,this.setPositionFromContainerOrigin(),this.setVelocity(0,0)},setPositionFromContainerOrigin:function(){var a=this.container.x+this.container.wh,b=this.hh;this.setPosition(a,b)},getTotalVelocity:function(){return Math.sqrt(this.vx*this.vx+this.vy*this.vy)},setVelocity:function(a,b){this.vx=a,this.vy=b},setPosition:function(a,b){this.x=a,this.y=b},getBottom:function(){return this.y-this.hh},getTop:function(){return this.y+this.hh},getLeft:function(){return this.x-this.wh},getRight:function(){return this.x+this.wh},checkField:function(){this.y<this.hh&&(this.y=this.hh,this.vy=0),this.getLeft()<this.container.x?(this.vx=0,this.x=this.container.x+this.wh):this.getRight()>this.container.x+this.container.width&&(this.vx=0,this.x=this.container.x+this.container.width-this.wh)},collision:function(){},logic:function(){this.vy-=f,this.x+=this.vx,this.y+=this.vy,this.checkField()},paint:function(){},hit:function(a,b,c){var d=a*a+b*b,e=Math.atan2(b,a),f=c.getTotalVelocity(),g=Math.cos(e)*this.friction*f,h=Math.sin(e)*this.friction*f;g+=q*c.omega*b/d,h-=q*c.omega*a/d,c.setVelocity(g,h)}}),O=N.extend({init:function(c){this._super(c,a,b),this.radius=a/2,this.y=b,this.originX=this.x,this.friction=1},reset:function(){this.x=this.originX,this.vx=0},collision:function(a){var b=a.x-this.x,c=a.y-this.y,d=a.radius+this.radius;if(0>=c){var e=0;return a.vx>0&&b+d>=0&&b<=this.radius?e=-1:a.vx<0&&0>=b-d&&b+this.radius>=0&&(e=1),void(0!=e&&(this.vx=5*a.vx,a.vx=-a.vx,a.vy+=e*a.omega))}Math.sqrt(b*b+c*c)<=d&&this.hit(b,c,a)},hit:function(a,b,c){this._super(a,b,c),c.spin(this.vx,this.vy,a,b)},logic:function(){this.x+=this.vx,this.vx-=this.x-this.originX,this.vx*=.99},paint:function(){z.save(),z.translate(this.originX,this.container.height);var a=Math.atan2(this.x-this.originX,this.height);z.rotate(a),z.strokeStyle="#666666",z.fillStyle="#b0ca33",z.lineWidth=1,z.beginPath(),z.arc(0,-this.y,this.wh,0,Math.PI,!0),z.lineTo(-this.wh,0),z.lineTo(this.wh,0),z.lineTo(this.wh,-this.y),z.fill(),z.stroke(),z.closePath(),z.restore()}}),P=N.extend({init:function(a){this.radius=48,this.diameter=2*this.radius,this._super(a,this.diameter,this.diameter),this.rotation=0,this.omega=0,this.sleeping=!0,this.dead=!1},setVelocity:function(a,b){this.sleeping=!1,this._super(a,b)},setServe:function(a){var b=a.x+a.width/2,c=m;this.sleeping=!0,this.dead=!1,this.omega=0,this.rotation=0,this.vx=0,this.vy=0,this.setPosition(b,c)},collision:function(a){return this.dead?void(a instanceof Q&&(this.x<a.container.x||this.x>a.container.x+a.container.width)&&a.scorePoint()):void a.collision(this)},checkField:function(){this.y<=this.radius&&(this.dead=!0,this.y=this.radius)},logic:function(){if(!this.sleeping&&!this.dead){if(this.x<=this.radius?(this.vx*=-1,this.vy+=this.omega):this.x>=this.container.width-this.radius&&(this.vx*=-1,this.vy-=this.omega),this.omega){var a=this.getTotalVelocity(),b=this.vy*this.omega*r/a,c=-(this.vx*this.omega*r)/a;this.vx+=b,this.vy+=c}this.rotation+=this.omega,this._super()}},changeSpin:function(a,b,c,d,e){var f=c*c+d*d,g=(c*a+d*b)/f,h=a+e*c*g,i=b+e*d*g;this.omega+=(h*d-i*c)/f},spin:function(a,b,c,d){this.changeSpin(this.vx,this.vy,c,d,1),this.changeSpin(a,b,c,d,-1)},paint:function(){z.save(),z.translate(this.x,this.container.height-this.y),z.rotate(this.rotation),z.drawImage(C.images.getResource("ball.png"),-this.radius,-this.radius),z.restore()}}),Q=N.extend({init:function(a,b,c){this.radius=48,this.diameter=2*this.radius,this._super(b,this.diameter,this.diameter),this.game=a,this.input=c,this.points=0,this.sets=0,this.pulses=[],this.color="rgb(0, 0, 0)",this.name="Player",this.reset()},addContact:function(){return this.isTouching?!0:(this.isTouching=!0,this.contacts++,this.totalContacts++,!1)},reset:function(){this.input.reset(),this.setVelocity(0,0),this.setPositionFromContainerOrigin(),this.pulse=1,this.contacts=0,this.totalContacts=0,this.isTouching=!1},scorePoint:function(){if(this.points++,this.game.setServe(this.container),this.points>=this.game.maxPoints){for(var a=!0,b=this.game.players.length;b--;)if(this.game.players[b]!==this&&Math.abs(this.game.players[b].points-this.points)<2){a=!1;break}if(a)return this.game.setWon(this)}},hit:function(a,b,c){var d=c.sleeping?o:n;this._super(a,b,c);var e=a*this.vx+b*this.vy;if(e>0){var f=d*e/(a*a+b*b);c.vx+=a*f,c.vy+=b*f}c.spin(this.vx,this.vy,a,b)},collision:function(a){var b=a.x-this.x,c=a.y-this.y,d=Math.sqrt(b*b+c*c),e=a.radius+this.radius;if(d>e)return void(this.isTouching=!1);var f=e/d,h=f*b,i=f*c;return a.setPosition(this.x+h,this.y+i),this.game.contact(this)?void 0:this.contacts>g?void(a.dead=!0):void this.hit(b,c,a)},setIdentity:function(a,b){this.name=a,this.color=b},updatePulse:function(){this.pulses.push(this.pulse),this.pulses.length>100&&this.pulses.shift()},steer:function(){this.input.update(),this.updatePulse()},logic:function(){this.input.left?(this.vx=-this.pulse*h,this.pulse-=t):this.input.right?(this.vx=this.pulse*h,this.pulse-=t):this.vx=0,this.y===this.hh&&this.input.up&&(this.vy=i+f,this.pulse-=u),this.pulse=Math.max(Math.min(1,this.pulse+s),.5),this._super()},paint:function(){z.save(),z.translate(this.x,this.container.height-this.y),z.fillStyle=this.color,z.beginPath(),z.arc(0,0,this.radius,0,c,!0),z.fill(),z.closePath(),z.restore()},paintPulse:function(){z.save(),z.translate(this.container.x?this.container.x+this.container.width-250:50,45),z.fillStyle="rgba(150, 150, 150, 0.2)",z.fillRect(0,-30,200,30),z.beginPath(),z.moveTo(0,0);for(var a=0;a<this.pulses.length;a++)z.lineTo(2*a,-30*(1/this.pulses[a]-1));z.strokeStyle=this.color,z.stroke(),z.closePath(),z.fillStyle="#cccccc",z.textAlign="center",z.font="24px Merge",z.fillText(this.name,100,-10),z.restore()}}),R=(Q.extend({init:function(a,b){this._super(a,b,new S),this.setIdentity("Computer","#FF6633")},steer:function(){var a=Math.floor(6*Math.random());switch(a){case 0:this.input.setUp(!0);break;case 1:this.input.setLeft(!0),this.input.setRight(!1);break;case 2:this.input.setRight(!0),this.input.setLeft(!1);break;case 4:this.input.setRight(!1),this.input.setLeft(!1);break;case 5:this.input.setUp(!1)}this._super()}}),Q.extend({init:function(a,b){this._super(a,b,new S)},steer:function(a){a&&(this.input.setUp(!!a.u),this.input.setLeft(!!a.l),this.input.setRight(!!a.r)),this._super()},scorePoint:function(){}})),S=D.extend({init:function(){this.reset(),this._super()},update:function(){this.previousUp=this.up,this.previousLeft=this.left,this.previousRight=this.right,this.left=this.bufferLeft,this.up=this.bufferUp,this.right=this.bufferRight},reset:function(){this.up=!1,this.left=!1,this.right=!1,this.bufferUp=!1,this.bufferLeft=!1,this.bufferRight=!1,this.previousUp=!1,this.previousLeft=!1,this.previousRight=!1},setUp:function(a){this.bufferUp=a},setLeft:function(a){this.bufferLeft=a},setRight:function(a){this.bufferRight=a},bind:function(){},unbind:function(){},cancelBubble:function(a){var b=a||event;b.preventDefault?b.preventDefault():b.returnValue=!1,b.stopPropagation?b.stopPropagation():b.cancelBubble=!0},copy:function(){return this.previousUp===this.up&&this.previousRight===this.right&&this.previousLeft===this.left?0:{l:this.left?1:0,u:this.up?1:0,r:this.right?1:0}}}),T=S.extend({init:function(a){var b=this;b._super(),b.codes={},b.codes[a[0]]=b.setUp,b.codes[a[1]]=b.setLeft,b.codes[a[2]]=b.setRight;var c=!1;this.downhandler=function(a){return c=b.handler(a,!0)},this.uphandler=function(a){return c=b.handler(a,!1)},this.presshandler=function(a){return c||b.cancelBubble(a),c}},bind:function(){var a=document.attachEvent||document.addEventListener;a("keydown",this.downhandler),a("keyup",this.uphandler),a("keypress",this.presshandler)},unbind:function(){},handler:function(a,b){return this.codes[a.keyCode]?(this.codes[a.keyCode].apply(this,[b]),this.cancelBubble(a),!1):!0}}),U=(S.extend({init:function(a){this._super()}}),D.extend({init:function(){this.messages=[],this.created=new Date}})),V=(D.extend({init:function(){}}),D.extend({init:function(){this.ready=!1,this.load(),this.players=[],this.observers=[],this.replays=[],this.instantReplay=null,this.sets=[],this.lobby=new U,this.field=new J,this.ball=new P(this.field),this.net=new O(this.field),this.viewPort=new L(this),this.loop=null,this.running=!1,this.maxPoints=j,this.maxSets=k,this.wait=0,this.beach="",this.beaches=[];for(var a in x)this.beaches.push(a)},contact:function(a){for(var b=!1,c=this.players.length;c--;){var d=this.players[c];d===a?b=d.addContact():d.contacts=0}return b},reset:function(){var a;for(a=this.players.length;a--;)this.players.pop();for(a=this.observers.length;a--;)this.observers.pop();for(a=this.replays.length;a--;)this.replays.pop();for(a=this.sets.length;a--;)this.sets.pop()},setWon:function(a){for(var b=0;b<this.players.length;b++)this.players[b].points=0;a.sets++,this.sets.push(a),a.sets===this.maxSets?(this.viewPort.setMessage(this.format(y.Over,a.name)),this.endMatch()):this.viewPort.setMessage(this.format(y.Set,a.name),2*this.wait)},addPlayer:function(a){this.players.push(a)},addObserver:function(a){this.observers.push(a)},saveReplay:function(){this.replays.push(this.instantReplay)},recordReplay:function(){this.instantReplay=new G(this.beach,this.ball,this.players)},detectInstantReplay:function(){if(this.replays.length){var a=this.replays[this.replays.length-1];if(a.contacts>8&&a.count>220)return!0}return!1},playLastReplay:function(a){this.replays.length&&this.replays[this.replays.length-1].play(this,a)},continuation:function(){this.net.reset();for(var a=this.players.length;a--;)this.players[a].reset();this.recordReplay()},setServe:function(a){return this.saveReplay(),this.ball.setServe(a),this.detectInstantReplay()?void this.playLastReplay(this.continuation):(this.wait=Math.ceil(l/d),void this.continuation())},tick:function(){if(this.wait)this.wait--;else{for(var a=this.players.length;a--;)this.players[a].steer();this.instantReplay.addData(this.players);for(var b=e;b--;){this.ball.logic(),this.net.logic();for(var a=this.players.length;a--;)this.players[a].logic(),this.ball.collision(this.players[a]);this.ball.collision(this.net)}}this.viewPort.paint(this.ball,this.players)},beginMatch:function(){var a=this.random(0,this.beaches.length);this.viewPort.setMessage(y.Start,100),this.beach=this.beaches[a],this.viewPort.setBackground(this.beach),this.viewPort.setup(),a=this.random(0,this.players.length),this.ball.setServe(this.players[a].container),this.continuation(),this.play()},endMatch:function(){this.saveReplay(),this.viewPort.paint(this.ball,this.players),this.pause()},play:function(){var a=this;if(!a.running){a.running=!0;for(var b=this.players.length;b--;)this.players[b].input.bind();a.loop=setInterval(function(){a.tick()},d)}},pause:function(){if(this.running){this.running=!1;for(var a=this.players.length;a--;)this.players[a].input.unbind();clearInterval(this.loop)}},load:function(){this.ready=!0,C.images=new F("assets/bv",w)}})),W=function(){var a=new V,b=new K(0,2),c=new T([87,65,68]),d=new Q(a,b,c);d.setIdentity("Player1","#0000FF"),a.addPlayer(d);var e=new K(1,2),f=new T([38,37,39]),g=new Q(a,e,f);g.setIdentity("Player2","#FF0000"),a.addPlayer(g),a.beginMatch()};return{startBV:W}}]);var mixinsDirectives=angular.module("kbApp.mixins.directives",["kbApp.auth","kbApp.services"]);mixinsDirectives.directive("kbMaxLength",["$compile",function(a){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){c.$set("ngTrim","false");var e=parseInt(c.kbMaxLength,10);d.$parsers.push(function(a){return a.length>e&&(a=a.substr(0,e),d.$setViewValue(a),d.$render()),a})}}}]),mixinsDirectives.directive("kbPasswordConfirm",[function(){return{restrict:"A",require:"?ngModel",link:function(a,b,c,d){if(d){a.$watch(c.ngModel,function(){e()}),c.$observe("kbPasswordConfirm",function(a){e()});var e=function(){var a=d.$viewValue,b=c.kbPasswordConfirm;d.$setValidity("kbPasswordConfirm",!a||!b||a===b)}}}}}]),mixinsDirectives.directive("kbInteger",[function(){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){if(d){var e=[];"string"==typeof c.kbInteger&&""!==c.kbInteger&&(e=c.kbInteger.split(","));var f=function(a){var b=!0;angular.isString(a)&&(b=/^[0-9]+$/.test(a));var c=parseInt(a,10);if(isNaN(c)||b===!1)d.$setValidity("integer",!1);else{var f=!1;if(e.length>0)for(var g=0;g<e.length;g++){var h=e[g];if(h.indexOf("-")>-1){var i=h.split("-");if(2==i.length){var j=parseInt(i[0],10),k=parseInt(i[1],10);c>=j&&k>=c&&(f=!0)}}else{var l=parseInt(h,10);l==c&&(f=!0)}}else f=!0;d.$setValidity("integer",f)}return c};d.$parsers.push(f),d.$formatters.unshift(f)}}}}]),mixinsDirectives.directive("kbTime",[function(){return{restrict:"A",require:"ngModel",link:function(a,b,c,d){d.$parsers.push(function(a){var b=NaN;a.search(/^([0-1]?[0-9]|[2][0-3]):([0-5][0-9])$/);if(-1!=a.search(/^([0-1]?[0-9]|[2][0-3]):([0-5][0-9])$/)){d.$setValidity("time",!0);var c=a.split(":");b=3600*c[0]+60*c[1]}else d.$setValidity("time",!1);return b}),d.$formatters.unshift(function(a){var b,c,e,f="xx:xx",g=function(a,b,c){return c=c||"0",a+="",a.length>=b?a:new Array(b-a.length+1).join(c)+a};return a=parseInt(a,10),angular.isNumber(a)&&!isNaN(a)?(d.$setValidity("time",!0),b=a,c=parseInt(b/3600,10),b%=3600,e=parseInt(b/60,10),f=g(c,2)+":"+g(e,2)):d.$setValidity("time",!1),f})}}}]);var filters=angular.module("kbApp.mixins.filters",[]);filters.filter("kbDynUnit",["$filter",function(a){return function(b,c,d,e,f){c=c||"",e=e||0,f=f||1,d=Number(d)||0;var g=null===b?null:Number(b),h="";return angular.isNumber(g)&&null!==g&&isFinite(g)?(g*=f,0!==d&&(d>=1?(Math.abs(g)>=d&&(g/=1e3,h="k"),Math.abs(g)>=d&&(g/=1e3,h="M"),Math.abs(g)>=d&&(g/=1e3,h="G")):(Math.abs(g)<=d&&(g*=1e3,h="m"),Math.abs(g)<=d&&(g*=1e3,h="µ"))),g=a("number")(g,e)):(g="-",h="",c=""),g=g+h+c}}]),angular.module("kbApp.mixins",["kbApp.mixins.bv","kbApp.mixins.services","kbApp.mixins.directives","kbApp.mixins.filters"]);var mixinsServices=angular.module("kbApp.mixins.services",[]);mixinsServices.constant("KbErrorTypes",{ERR_NOT_DEFINED:-1,ERR_OK:0,ERR_AUTHENTICATION:1,ERR_PARAMETER:2,ERR_BUSY:3,ERR_INTERNAL:4,ERR_COMMUNICATION:5,ERR_LOGIN_PARAMETER:6}),mixinsServices.factory("utilService",["$compile",function(a){var b=function(b,c){angular.isFunction(c)&&(c={post:c});var d,e=b.contents().remove();return{pre:c&&c.pre?c.pre:null,post:function(b,f){d||(d=a(e)),d(b,function(a){f.append(a)}),c&&c.post&&c.post.apply(null,arguments)}}},c=function(a,b){var c=navigator.userAgent.match(/MSIE\s([\d.]+)/),d=navigator.userAgent.match(/Trident\/7.0/)&&navigator.userAgent.match(/rv:11/),e=c?c[1]:d?11:-1;if(c&&10>e)return void console.log("No blobs on IE ver<10");var f=new Blob([a],{type:"text/plain;charset=utf-8"});saveAs(f,b)},d=function(a){var b=moment.unix(a);return b.add(b.zone(),"minute"),b.isValid()?b.utc().toDate():null},e=function(a){var b=moment(a);return b.unix()-60*b.zone()};return{unixTimeStampToDate:d,dateToUnixTimestamp:e,compileRecursive:b,serveDataToFile:c}}]),mixinsServices.factory("KbError",["KbErrorTypes",function(a){var b=function(b,c,d){this.msg=b||"",this.type=c||a.ERR_NOT_DEFINED,this.data=d||null};return b}]);var navigationControllers=angular.module("kbApp.navigation.controllers",["kbApp.navigation.services","kbApp.init.services"]);navigationControllers.controller("navigationCtrl",["$scope","initService","navigationService","$location",function(a,b,c,d){a.menu=[],a.breadcrumbs=c.breadcrumbs,b.onAfterInit(a,"$locationChangeSuccess",function(){c.activeStatusSet(d.path())}),b.onAfterInit(a,"appInitialized",function(){a.menu=c.menu,a.breadcrumbs=c.breadcrumbs})}]);var navigationDirectives=angular.module("kbApp.navigation.directives",["kbApp.navigation.services","kbApp.mixins","pascalprecht.translate"]);navigationDirectives.directive("kbNavigation",["utilService",function(a){return{restrict:"E",scope:{nodes:"="},templateUrl:"navigation/navigationNav.tpl.html",compile:function(b){return a.compileRecursive(b,function(a,b,c){})}}}]),navigationDirectives.directive("kbNavigationNode",["utilService","navigationService","$translate",function(a,b,c){return{restrict:"E",scope:{node:"="},templateUrl:"navigation/navigationNavNode.tpl.html",compile:function(c){return a.compileRecursive(c,function(a,c,d){a.showNode=b.showNode,a.toggleCollapse=function(){b.collapseStatusToggle(a.node)},a.isActive=function(){return a.node.active},a.$watch("node.collapse",function(a){a===!0?c.find("ul:first").hide("slow"):c.find("ul:first").show("slow")}),a.node.collapse===!0?c.find("ul:first").hide():c.find("ul:first").show()})}}}]),navigationDirectives.directive("kbNavigationBreadcrumb",[function(){return{restrict:"E",scope:{breadcrumbs:"="},templateUrl:"navigation/navigationBreadcrumb.tpl.html"}}]);var navigationServices=angular.module("kbApp.navigation.services",["kbApp.mixins"]);navigationServices.factory("navigationService",["$http","$q","$location","kbAppProperties","authService","KbError","KbErrorTypes",function(a,b,c,d,e,f,g){var h=[],i=[],j=function(){var c=b.defer();return a.get("/src/app/navigation/nav.json").then(function(a){h.length=0;for(var b=0;b<a.data.length;b++)h.push(a.data[b]);angular.isArray(h)===!1?c.reject(new f("Structure of returned menu object don`t fit expected structure",g.ERR_INTERNAL)):0===h.length?c.reject(new f("No content in Menu Object",g.ERR_INTERNAL)):c.resolve()},function(){c.reject(new f("No Answer",g.ERR_COMMUNICATION))}),c.promise},k=function(a,b){var c=function(a,b){var d="";return d=angular.isDefined(b)?"/"+a.name+b:"/"+a.name,angular.isDefined(a.parent)&&(d=c(a.parent,d)),d};if(angular.isArray(a))for(var d=0,e=a.length;e>d;d++)angular.isDefined(b)&&(a[d].parent=b),angular.isDefined(a[d].nodes)&&angular.isArray(a[d].nodes)?k(a[d].nodes,a[d]):a[d].nodes=[],"undefined"==typeof a[d].icon&&(a[d].icon=""),a[d].path=c(a[d])},l=function(a){function b(a,c){var d=null;if(angular.isArray(a))for(var e=0;e<a.length;e++){if(a[e].name==c){d=a[e];break}angular.isArray(a[e].nodes)&&(d=b(a[e].nodes,c))}return d}return b(h,a)},m=function(a){var b=!0;if(angular.isString(a)===!0)if(""!==a)try{a=angular.fromJson(a)}catch(c){b=!1}else b=!1;return angular.isDefined(a)===!0&&null!==a&&angular.isObject(a)===!0&&b===!0&&((angular.isDefined(a.user)===!1||angular.isString(a.user)===!1&&angular.isNumber(a.user)===!1)&&(a.user=null),(angular.isDefined(a.loginStatus)===!1||a.loginStatus!==!1&&a.loginStatus!==!0)&&(a.loginStatus=null),(angular.isDefined(a.properties)===!1||angular.isString(a.properties)===!1&&angular.isNumber(a.properties)===!1)&&(a.properties=null),null!==a.user&&e.authorized(a.user)===!1&&(b=!1),null!==a.loginStatus&&e.isLoggedInStateMatch(a.loginStatus)===!1&&(b=!1),null!==a.properties&&d.match(a.properties)===!1&&(b=!1)),b},n=function(a){if(angular.isDefined(a)===!1&&(a=h),angular.isArray(a))for(var b=0,c=a.length;c>b;b++)a[b].collapse=!0,a[b].active=!1,angular.isArray(a[b].nodes)&&a[b].nodes.length>0&&n(a[b].nodes)},o=function(a){"undefined"!=typeof a&&"undefined"!=typeof a.collapse&&(a.collapse=!a.collapse)},p=function(a){var b=function(a,c){var d;if(angular.isDefined(a)&&angular.isArray(a))for(var e=0;e<a.length;e++)a[e].path==c?(a[e].active=!0,d=a[e]):a[e].active=!1,"undefined"==typeof d?d=b(a[e].nodes,c):b(a[e].nodes,c);return d},c=function(a){angular.isDefined(a)&&angular.isDefined(a.parent)&&(a.parent.collapse=!1,c(a.parent))},d=function(a){angular.isDefined(a)&&(i.unshift(a),angular.isDefined(a.parent)&&d(a.parent))},e=b(h,a);if("undefined"!=typeof e){for(c(e);i.length>0;)i.pop();d(e)}};return{menu:h,breadcrumbs:i,collapseStatusToggle:o,activeStatusSet:p,getNodeFromPath:l,showNode:m,init:function(){var a=b.defer();return a.notify("Load menu"),j().then(function(){try{k(h),n(h),p(c.path()),a.resolve("Load menu successful")}catch(b){a.reject(new f("Load menu failed"))}},function(){a.reject(new f("Load menu failed"))}),a.promise}}}]),angular.module("kbApp.navigation",["kbApp.navigation.services","kbApp.navigation.controllers","kbApp.navigation.directives"]),angular.module("kbApp.pages.current-values.analog-inputs",[]).controller("current-values-analog-inputsCtrl",["$scope","dxsService",function(a,b){var c=b.getInstance();a.Analog1={dxsId:167772417},c.addDataRd(a.Analog1),a.Analog2={dxsId:167772673},c.addDataRd(a.Analog2),a.Analog3={dxsId:167772929},c.addDataRd(a.Analog3),a.Analog4={dxsId:167773185},c.addDataRd(a.Analog4),c.getDataRd().then(null,null,function(b){b===!0&&a.$emit("kbPageLoaded")}),a.$on("$destroy",function(){c.clear()})}]),angular.module("kbApp.pages.current-values.battery",[]).controller("current-values-batteryCtrl",["$scope","dxsService",function(a,b){var c=b.getInstance();a.Voltage={dxsId:33556226},c.addDataRd(a.Voltage),a.Charge={dxsId:33556229},c.addDataRd(a.Charge),a.Current={dxsId:33556238},c.addDataRd(a.Current),a.CurrentDir={dxsId:33556230},c.addDataRd(a.CurrentDir),a.ChargeCycles={dxsId:33556228},c.addDataRd(a.ChargeCycles),a.Temperature={dxsId:33556227},c.addDataRd(a.Temperature),c.getDataRd().then(null,null,function(b){b===!0&&a.$emit("kbPageLoaded")}),a.$on("$destroy",function(){c.clear()})}]),angular.module("kbApp.pages.current-values.grid",[]).controller("current-values-gridCtrl",["$scope","dxsService","kbAppProperties",function(a,b,c){var d=b.getInstance();a.GridOutputPower={dxsId:67109120},d.addDataRd(a.GridOutputPower),a.GridFreq={dxsId:67110400},d.addDataRd(a.GridFreq),a.GridCosPhi={dxsId:67110656},d.addDataRd(a.GridCosPhi),a.GridLimitation={dxsId:67110144},d.addDataRd(a.GridLimitation),a.GridVoltageL1={dxsId:67109378},d.addDataRd(a.GridVoltageL1),a.GridCurrentL1={dxsId:67109377},d.addDataRd(a.GridCurrentL1),a.GridPowerL1={dxsId:67109379},d.addDataRd(a.GridPowerL1),c.match("3_PHASE")&&(a.GridVoltageL2={dxsId:67109634},d.addDataRd(a.GridVoltageL2),a.GridCurrentL2={dxsId:67109633},d.addDataRd(a.GridCurrentL2),a.GridPowerL2={dxsId:67109635},d.addDataRd(a.GridPowerL2),a.GridVoltageL3={dxsId:67109890},d.addDataRd(a.GridVoltageL3),a.GridCurrentL3={dxsId:67109889},d.addDataRd(a.GridCurrentL3),a.GridPowerL3={dxsId:67109891},d.addDataRd(a.GridPowerL3)),d.getDataRd().then(null,null,function(b){b===!0&&a.$emit("kbPageLoaded")}),a.$on("$destroy",function(){d.clear()})}]),angular.module("kbApp.pages.current-values.home",[]).controller("current-values-homeCtrl",["$scope","dxsService",function(a,b){var c=b.getInstance();a.AktHomeConsumptionSolar={dxsId:83886336},c.addDataRd(a.AktHomeConsumptionSolar),
a.AktHomeConsumptionBat={dxsId:83886592},c.addDataRd(a.AktHomeConsumptionBat),a.AktHomeConsumptionGrid={dxsId:83886848},c.addDataRd(a.AktHomeConsumptionGrid),a.PhaseSelHomeConsumpL1={dxsId:83887106},c.addDataRd(a.PhaseSelHomeConsumpL1),a.PhaseSelHomeConsumpL2={dxsId:83887362},c.addDataRd(a.PhaseSelHomeConsumpL2),a.PhaseSelHomeConsumpL3={dxsId:83887618},c.addDataRd(a.PhaseSelHomeConsumpL3),c.getDataRd().then(null,null,function(b){b===!0&&a.$emit("kbPageLoaded")}),a.$on("$destroy",function(){c.clear()})}]),angular.module("kbApp.pages.current-values.pv-generator",[]).controller("current-values-pv-generatorCtrl",["$scope","dxsService","kbAppProperties",function(a,b,c){var d=b.getInstance();a.dc1Voltage={dxsId:33555202},d.addDataRd(a.dc1Voltage),a.dc1Current={dxsId:33555201},d.addDataRd(a.dc1Current),a.dc1Power={dxsId:33555203},d.addDataRd(a.dc1Power),c.match("STRING_2")&&(a.dc2Voltage={dxsId:33555458},d.addDataRd(a.dc2Voltage),a.dc2Current={dxsId:33555457},d.addDataRd(a.dc2Current),a.dc2Power={dxsId:33555459},d.addDataRd(a.dc2Power)),c.match("STRING_3")&&(a.dc3Voltage={dxsId:33555714},d.addDataRd(a.dc3Voltage),a.dc3Current={dxsId:33555713},d.addDataRd(a.dc3Current),a.dc3Power={dxsId:33555715},d.addDataRd(a.dc3Power)),d.getDataRd().then(null,null,function(b){b===!0&&a.$emit("kbPageLoaded")}),a.$on("$destroy",function(){d.clear()})}]),angular.module("kbApp.pages.current-values.s0-in",[]).controller("current-values-s0-inCtrl",["$scope","dxsService",function(a,b){var c=b.getInstance();a.S0InPulseCnt={dxsId:184549632},c.addDataRd(a.S0InPulseCnt),a.Loginterval={dxsId:150995968},c.addDataRd(a.Loginterval);var d=function(a){var b="-";if(angular.isNumber(a)){var c=parseInt(a,10),d=parseInt(Math.floor(c/60),10),e=parseInt(Math.floor(d/60),10);c-=60*d,d-=60*e,b="",0===a&&(b="0s"),0!==c&&(b=c+"s"),0!==d&&(b=d+"min "+b),0!==e&&(b=e+"h "+b)}return b};a.LogintervalReadable=d(a.Loginterval.value),a.$watch("Loginterval.value",function(b,c){a.LogintervalReadable=d(b)}),c.getDataRd().then(null,null,function(b){b===!0&&a.$emit("kbPageLoaded")}),a.$on("$destroy",function(){c.clear()})}]),angular.module("kbApp.pages.home",[]).controller("homeCtrl",["$scope","dxsService","kbAppProperties",function(a,b,c){var d=b.getInstance();a.dcPowerPV={dxsId:33556736},d.addDataRd(a.dcPowerPV),a.acPower={dxsId:67109120},d.addDataRd(a.acPower),c.match("EXT_CURRENT_SENS")&&(a.ownConsumption={dxsId:83888128},d.addDataRd(a.ownConsumption)),c.match("BATTERY")&&(a.batStateOfCharge={dxsId:33556229},d.addDataRd(a.batStateOfCharge)),a.operatingStatus={dxsId:16780032},d.addDataRd(a.operatingStatus),a.operatingStatusTranslationId="",d.getDataRd().then(null,null,function(b){if(b===!0)switch(a.$emit("kbPageLoaded"),a.operatingStatus.value){case 0:a.operatingStatusTranslationId="ID_92";break;case 1:a.operatingStatusTranslationId="ID_93";break;case 2:a.operatingStatusTranslationId="ID_94";break;case 3:a.operatingStatusTranslationId="ID_191";break;case 4:a.operatingStatusTranslationId="ID_96";break;case 5:a.operatingStatusTranslationId="ID_95";break;case 6:a.operatingStatusTranslationId="ID_361";break;case 7:a.operatingStatusTranslationId="ID_360";break;case 8:a.operatingStatusTranslationId="ID_366";break;default:a.operatingStatusTranslationId=""}}),a.$on("$destroy",function(){d.clear()})}]),angular.module("kbApp.pages.info.events",[]).controller("info-eventsCtrl",["$scope","dxsService","utilService",function(a,b,c){var d=10,e=b.getInstance(),f=[],g={dxsId:234881792,value:0};e.addDataRd(g);for(var h=0;d>h;h++)f.push({dxsId:234881537+h}),e.addDataRd(f[h]);a.EventCnt=0,a.Events=[];var i=function(){a.EventCnt=g.value,a.Events.splice(0,a.Events.length);for(var b=0;b<a.EventCnt;b++){var d=f[b].value;a.Events.push({date:c.unixTimeStampToDate((d[0]<<0)+(d[1]<<8)+(d[2]<<16)+(d[3]<<24)),code:(d[4]<<0)+(d[5]<<8),env:("0000"+((d[6]<<0)+(d[7]<<8)).toString(16)).toUpperCase().substr(this.length-4,4)+"h"})}};e.getDataRd().then(null,null,function(b){b===!0&&(a.$emit("kbPageLoaded"),i())}),a.$on("$destroy",function(){e.clear()})}]),angular.module("kbApp.pages.info.versions",[]).controller("info-versionsCtrl",["$scope","dxsService",function(a,b){var c=b.getInstance();a.VersionUI={dxsId:16779267},c.addDataRd(a.VersionUI),a.VersionFW={dxsId:16779265},c.addDataRd(a.VersionFW),a.VersionHW={dxsId:16779266},c.addDataRd(a.VersionHW),a.VersionPAR={dxsId:16779268},c.addDataRd(a.VersionPAR),a.SerialNumber={dxsId:16777728},c.addDataRd(a.SerialNumber),a.ArticelNumber={dxsId:16777472},c.addDataRd(a.ArticelNumber),a.CountrySettingsName={dxsId:16779522},c.addDataRd(a.CountrySettingsName),a.CountrySettingsVersion={dxsId:16779521},c.addDataRd(a.CountrySettingsVersion),c.getDataRd(0).then(null,null,function(b){b===!0&&a.$emit("kbPageLoaded")}),a.$on("$destroy",function(){c.clear()})}]),angular.module("kbApp.pages.login",[]).controller("loginCtrl",["$scope","authService","kbAppPageService","$q","$location","KbError","KbErrorTypes",function(a,b,c,d,e,f,g){var h=function(){angular.isDefined(a.password)&&(a.password.value=""),angular.isDefined(a.userName)&&(a.userName.value=""),angular.isDefined(a.servicecode)&&(a.servicecode.value=""),a.form.$setPristine()};a.userList=[{translationId:"ID_362",value:"user"},{translationId:"ID_363",value:"installer"}],a.userSelected=angular.copy(a.userList[0].value),a.login=function(i){var j;"user"==i?(j=b.loginUserPw(a.userName.value,a.password.value),c.submitHelper(j,h)):"installer"==i?(j=b.loginServiceCode(a.servicecode.value.toUpperCase()),c.submitHelper(j,h)):(j=d.defer(),j.reject(new f("Wrong user selected (Error in Code)",g.ERR_INTERNAL)),c.submitHelper(j.promise,h)),j.then(function(){e.path("/")})},a.$emit("kbPageLoaded")}]),angular.module("kbApp.pages.logout",[]).controller("logoutCtrl",["$scope","authService","$location","kbAppPageService",function(a,b,c,d){a.logoutFail=!1;var e;b.isLoggedIn()===!1?c.path("/login"):(e=b.logout(),d.submitHelper(e)),a.$emit("kbPageLoaded")}]),angular.module("kbApp.pages",["kbApp.pages.home","kbApp.pages.current-values.pv-generator","kbApp.pages.current-values.battery","kbApp.pages.current-values.home","kbApp.pages.current-values.grid","kbApp.pages.current-values.analog-inputs","kbApp.pages.current-values.s0-in","kbApp.pages.statistics.day","kbApp.pages.statistics.total","kbApp.pages.statistics.log-data","kbApp.pages.settings.general.inverter-name","kbApp.pages.settings.general.date-time","kbApp.pages.settings.general.login","kbApp.pages.settings.communication.inverter-address","kbApp.pages.settings.communication.network","kbApp.pages.settings.communication.rs485","kbApp.pages.settings.communication.modem","kbApp.pages.settings.portal-configuration","kbApp.pages.settings.data-logger","kbApp.pages.settings.overvoltage-protection","kbApp.pages.settings.generator-configuration","kbApp.pages.settings.battery-configuration","kbApp.pages.settings.switching-output","kbApp.pages.settings.analog-inputs","kbApp.pages.info.versions","kbApp.pages.info.events","kbApp.pages.login","kbApp.pages.logout"]),angular.module("kbApp.pages.settings.analog-inputs",[]).controller("settings-analog-inputsCtrl",["$scope","dxsService","kbAppPageService",function(a,b,c){a.modes=[];var d=b.getInstance();a.mode={dxsId:167773696},d.addDataWr(a.mode),a.submitForm=function(){c.submitHelper(d.setDataWr(),function(){a.form.$setPristine()})},a.resetForm=function(){c.submitHelper(d.getDataWr(),function(){a.form.$setPristine()})},d.getDataWr().then(function(){switch(a.mode.value){case 0:a.modes.push({translationId:"ID_345",value:0});break;case 1:case 3:a.modes.push({translationId:"ID_345",value:1}),a.modes.push({translationId:"ID_346",value:3});break;case 2:a.modes.push({translationId:"ID_345",value:1}),a.modes.push({translationId:"ID_394",value:2}),a.modes.push({translationId:"ID_346",value:3})}a.$emit("kbPageLoaded")},function(){a.$emit("kbPageLoadFailed")}),a.$on("$destroy",function(){d.clear()})}]),angular.module("kbApp.pages.settings.battery-configuration",[]).controller("settings-battery-configurationCtrl",["$scope","dxsService","kbAppPageService","kbAppProperties","authService","$locale",function(a,b,c,d,e,f){var g,h=b.getInstance();for(a.dischargeHysteresisOn={dxsId:33556249},a.wintermode={dxsId:83888896},a.wintermodes=[],a.eps={dxsId:83888640},a.weatherForecast={dxsId:33556484},a.chargeTimeStart={dxsId:33556239},a.chargeTimeEnd={dxsId:33556240},a.months=[],a.maintenanceCharge={dxsId:33556236},a.minSoCManual={dxsId:33556231},a.minSoCManualInc={dxsId:33556232},a.minSoCManualIncStart={dxsId:33556233},a.minSoCManualIncEnd={dxsId:33556234},a.minSoCAutomatic={dxsId:33556247},a.minSoCDynamic={dxsId:33556248},a.minSoCs=[],a.minSoCAutomaticViewValue={},d.match("WINTERMODE_SUPPORTED | !BATTERY_LION")&&h.addDataWr(a.wintermode),e.authorized("INSTALLER, SERVICE, DEVELOPER")&&(d.match("ESB")&&h.addDataWr(a.eps),h.addDataWr(a.maintenanceCharge)),d.match("WEATHER_FORECAST")&&(h.addDataWr(a.weatherForecast),h.addDataWr(a.dischargeHysteresisOn),h.addDataWr(a.minSoCAutomatic),h.addDataWr(a.minSoCDynamic)),h.addDataWr(a.chargeTimeStart),h.addDataWr(a.chargeTimeEnd),h.addDataWr(a.minSoCManual),h.addDataWr(a.minSoCManualInc),h.addDataWr(a.minSoCManualIncStart),h.addDataWr(a.minSoCManualIncEnd),d.match("BATTERY_LION")===!1&&a.wintermodes.push({translationId:"ID_357",value:0}),d.match("WINTERMODE_SUPPORTED")===!0&&(a.wintermodes.push({translationId:"ID_358",value:1}),a.wintermodes.push({translationId:"ID_427",value:2})),g=0;g<f.DATETIME_FORMATS.SHORTMONTH.length;g++)a.months.push({text:f.DATETIME_FORMATS.SHORTMONTH[g],value:g});var i,j;for(d.match("BATTERY_LION")?(i=10,j=100):(i=50,j=100),g=i;j>=g;g+=5)a.minSoCs.push({text:g.toString(),value:g});a.minSoCAutomaticViewValue={value:i};var k=function(b){0!==b?(d.match("WEATHER_FORECAST")===!0&&(h.addDataWr(a.minSoCAutomatic),h.addDataWr(a.minSoCDynamic),h.addDataWr(a.weatherForecast),l(a.weatherForecast.value)),h.delDataWr(a.maintenanceCharge),h.delDataWr(a.minSoCManual),h.delDataWr(a.minSoCManualInc),h.delDataWr(a.minSoCManualIncStart),h.delDataWr(a.minSoCManualIncEnd)):0===b?(e.authorized("INSTALLER, SERVICE, DEVELOPER")&&h.addDataWr(a.maintenanceCharge),d.match("BATTERY_LION")===!1&&(h.addDataWr(a.minSoCManual),h.addDataWr(a.minSoCManualInc),h.addDataWr(a.minSoCManualIncStart),h.addDataWr(a.minSoCManualIncEnd)),h.delDataWr(a.minSoCAutomatic),h.delDataWr(a.minSoCDynamic),h.delDataWr(a.weatherForecast),l(!1)):(h.delDataWr(a.maintenanceCharge),h.delDataWr(a.minSoCManual),h.delDataWr(a.minSoCManualInc),h.delDataWr(a.minSoCManualIncStart),h.delDataWr(a.minSoCManualIncEnd),h.delDataWr(a.minSoCAutomatic),h.delDataWr(a.minSoCDynamic),h.delDataWr(a.weatherForecast),l(!1))};a.minSoCAutomaticViewValueChange=function(){"dynamic"==a.minSoCAutomaticViewValue.value?(a.minSoCAutomatic.value=i,a.minSoCDynamic.value=!0):(a.minSoCAutomatic.value=a.minSoCAutomaticViewValue.value,a.minSoCDynamic.value=!1)};var l=function(b){b===!0&&0!==a.wintermode.value?("undefined"==typeof a.minSoCs[0].translationId&&a.minSoCs.unshift({translationId:"ID_433",value:"dynamic"}),h.delDataWr(a.chargeTimeStart),h.delDataWr(a.chargeTimeEnd)):("undefined"!=typeof a.minSoCs[0].translationId&&("dynamic"==a.minSoCAutomaticViewValue.value&&(a.minSoCAutomaticViewValue.value=i,a.minSoCAutomaticViewValueChange()),a.minSoCs.shift()),h.addDataWr(a.chargeTimeStart),h.addDataWr(a.chargeTimeEnd))};a.$on("$localeChangeSuccess",function(){for(var b=0;b<f.DATETIME_FORMATS.SHORTMONTH.length;b++)a.months[b]={text:f.DATETIME_FORMATS.SHORTMONTH[b],value:b}}),a.submitForm=function(){c.submitHelper(h.setDataWr(),function(){a.form.$setPristine()})},a.resetForm=function(){c.submitHelper(h.getDataWr(),function(){a.form.$setPristine()})},h.getDataWr().then(function(){a.minSoCDynamic.value===!0?a.minSoCAutomaticViewValue.value="dynamic":a.minSoCAutomaticViewValue.value=a.minSoCAutomatic.value,a.minSoCAutomaticViewValueChange(),a.$watch("wintermode.value",k),a.$watch("weatherForecast.value",l),a.form.$setPristine(),a.$emit("kbPageLoaded")},function(){a.$emit("kbPageLoadFailed")}),a.$on("$destroy",function(){h.clear()})}]),angular.module("kbApp.pages.settings.communication.inverter-address",[]).controller("settings-communication-inverter-addressCtrl",["$scope","dxsService","kbAppPageService","kbAppProperties",function(a,b,c,d){var e=b.getInstance();a.inverterAddress={dxsId:117441025},e.addDataWr(a.inverterAddress),a.submitForm=function(){c.submitHelper(e.setDataWr(),function(){a.form.$setPristine()})},a.resetForm=function(){c.submitHelper(e.getDataWr(),function(){a.form.$setPristine()})},e.getDataWr().then(function(){a.$emit("kbPageLoaded")},function(){a.$emit("kbPageLoadFailed")}),a.$on("$destroy",function(){e.clear()})}]),angular.module("kbApp.pages.settings.communication.modem",[]).controller("settings-communication-modemCtrl",["$scope","dxsService","kbAppPageService","kbAppProperties",function(a,b,c,d){var e=b.getInstance();a.publicLineNum={dxsId:117441282},a.gsmPin={dxsId:117441283,value:""},a.gsmSigQual={dxsId:117441284},a.modem="",a.modem_trans_id="ID_377",a.submitForm=function(){c.submitHelper(e.setDataWr(),function(){a.form.$setPristine()})},a.resetForm=function(){c.submitHelper(e.getDataWr(),function(){a.form.$setPristine()})};var f=function(){var b="NO_MODEM";return d.match("MODEM_SLOT_PRESENT & MODEM_PRESENT & MODEM_GSM")?(b="GSM_MODEM",a.modem_trans_id="ID_379"):d.match("MODEM_SLOT_PRESENT & MODEM_PRESENT")?(b="ANALOG_MODEM",a.modem_trans_id="ID_378"):(b="NO_MODEM",a.modem_trans_id="ID_377"),b},g=function(){var c=f();if(c!=a.modem)switch(e.clear(),e=b.getInstance(),c){case"ANALOG_MODEM":e.addDataWr(a.publicLineNum),e.getDataWr().then(function(){a.modem=c,a.$emit("kbPageLoaded")},function(){a.$emit("kbPageLoadFailed")});break;case"GSM_MODEM":e.addDataWr(a.gsmPin),e.addDataRd(a.gsmSigQual),e.getDataRd().then(null,function(){a.$emit("kbPageLoadFailed")},function(){a.modem=c,a.$emit("kbPageLoaded")});break;default:a.modem=c,a.$emit("kbPageLoaded")}};g(),a.$watch(function(){return f()},function(a,b){a!==b&&g()}),a.$on("$destroy",function(){e.clear()})}]),angular.module("kbApp.pages.settings.communication.network",[]).controller("settings-communication-networkCtrl",["$scope","dxsService","kbAppPageService",function(a,b,c){var d=b.getInstance();a.settingIpAuto={dxsId:117440769},d.addDataWr(a.settingIpAuto),a.settingIp1={dxsId:117440770},d.addDataWr(a.settingIp1),a.settingIp2={dxsId:117440771},d.addDataWr(a.settingIp2),a.settingIp3={dxsId:117440772},d.addDataWr(a.settingIp3),a.settingIp4={dxsId:117440773},d.addDataWr(a.settingIp4),a.settingSubnetmask1={dxsId:117440774},d.addDataWr(a.settingSubnetmask1),a.settingSubnetmask2={dxsId:117440775},d.addDataWr(a.settingSubnetmask2),a.settingSubnetmask3={dxsId:117440776},d.addDataWr(a.settingSubnetmask3),a.settingSubnetmask4={dxsId:117440777},d.addDataWr(a.settingSubnetmask4),a.settingGateway1={dxsId:117440779},d.addDataWr(a.settingGateway1),a.settingGateway2={dxsId:117440780},d.addDataWr(a.settingGateway2),a.settingGateway3={dxsId:117440781},d.addDataWr(a.settingGateway3),a.settingGateway4={dxsId:117440782},d.addDataWr(a.settingGateway4),a.settingExtGateway={dxsId:117440778},d.addDataWr(a.settingExtGateway),a.dns2_1={dxsId:117440787},d.addDataWr(a.dns2_1),a.dns2_2={dxsId:117440788},d.addDataWr(a.dns2_2),a.dns2_3={dxsId:117440789},d.addDataWr(a.dns2_3),a.dns2_4={dxsId:117440790},d.addDataWr(a.dns2_4),a.netInfoIp1={dxsId:117440791},d.addDataRd(a.netInfoIp1),a.netInfoIp2={dxsId:117440792},d.addDataRd(a.netInfoIp2),a.netInfoIp3={dxsId:117440793},d.addDataRd(a.netInfoIp3),a.netInfoIp4={dxsId:117440794},d.addDataRd(a.netInfoIp4),a.netInfoSubnetmask1={dxsId:117440795},d.addDataRd(a.netInfoSubnetmask1),a.netInfoSubnetmask2={dxsId:117440796},d.addDataRd(a.netInfoSubnetmask2),a.netInfoSubnetmask3={dxsId:117440797},d.addDataRd(a.netInfoSubnetmask3),a.netInfoSubnetmask4={dxsId:117440798},d.addDataRd(a.netInfoSubnetmask4),a.netInfoGateway1={dxsId:117440799},d.addDataRd(a.netInfoGateway1),a.netInfoGateway2={dxsId:117440800},d.addDataRd(a.netInfoGateway2),a.netInfoGateway3={dxsId:117440801},d.addDataRd(a.netInfoGateway3),a.netInfoGateway4={dxsId:117440802},d.addDataRd(a.netInfoGateway4),a.netInfoDns1_1={dxsId:117440803},d.addDataRd(a.netInfoDns1_1),a.netInfoDns1_2={dxsId:117440804},d.addDataRd(a.netInfoDns1_2),a.netInfoDns1_3={dxsId:117440805},d.addDataRd(a.netInfoDns1_3),a.netInfoDns1_4={dxsId:117440806},d.addDataRd(a.netInfoDns1_4),a.netInfoDns2_1={dxsId:117440807},d.addDataRd(a.netInfoDns2_1),a.netInfoDns2_2={dxsId:117440808},d.addDataRd(a.netInfoDns2_2),a.netInfoDns2_3={dxsId:117440809},d.addDataRd(a.netInfoDns2_3),a.netInfoDns2_4={dxsId:117440810},d.addDataRd(a.netInfoDns2_4),a.netInfoMacAddress={dxsId:117440811},d.addDataRd(a.netInfoMacAddress),a.submitForm=function(){c.submitHelper(d.setDataWr(),function(){a.form.$setPristine()})},a.resetForm=function(){c.submitHelper(d.getDataWr(),function(){a.form.$setPristine()})},d.getDataWr().then(function(){d.getDataRd(1e3).then(null,null,function(b){b===!0&&a.$emit("kbPageLoaded")})},function(){a.$emit("kbPageLoadFailed")}),a.$on("$destroy",function(){d.clear()})}]),angular.module("kbApp.pages.settings.communication.rs485",[]).controller("settings-communication-rs485Ctrl",["$scope","dxsService","kbAppPageService","kbAppProperties",function(a,b,c,d){var e=b.getInstance();a.inverterAddress={dxsId:117441025},e.addDataRd(a.inverterAddress),a.rs485Termination={dxsId:117441027},e.addDataWr(a.rs485Termination),a.rs485Preload={dxsId:117441026},e.addDataWr(a.rs485Preload),d.match("PIKO_FUTURE")&&(a.rs485Mode={dxsId:117441028},e.addDataWr(a.rs485Mode),a.rs485Baudrate={dxsId:117441029},e.addDataWr(a.rs485Baudrate),a.rs485Modes=[{translationId:"ID_415",value:0},{translationId:"ID_416",value:1}],a.rs485Baudrates=[{text:"9600",value:9600},{text:"19200",value:19200}]),a.submitForm=function(){c.submitHelper(e.setDataWr(),function(){a.form.$setPristine()})},a.resetForm=function(){c.submitHelper(e.getDataWr(),function(){a.form.$setPristine()})},e.getDataWr().then(function(){e.getDataRd().then(null,null,function(b){b===!0&&a.$emit("kbPageLoaded")})},function(){a.$emit("kbPageLoadFailed")}),a.$on("$destroy",function(){e.clear()})}]),angular.module("kbApp.pages.settings.data-logger",[]).controller("settings-data-loggerCtrl",["$scope","dxsService","kbAppProperties","kbAppPageService",function(a,b,c,d){a.logintervals=[],c.match("PIKO_FUTURE")&&a.logintervals.push({text:"5",value:300}),a.logintervals.push({text:"15",value:900}),a.logintervals.push({text:"60",value:3600});var e=b.getInstance();a.selLoginterval={dxsId:150995968},e.addDataWr(a.selLoginterval),a.submitForm=function(){d.submitHelper(e.setDataWr(),function(){a.form.$setPristine()})},a.resetForm=function(){d.submitHelper(e.getDataWr(),function(){a.form.$setPristine()})},e.getDataWr().then(function(){a.$emit("kbPageLoaded")},function(){a.$emit("kbPageLoadFailed")}),a.$on("$destroy",function(){e.clear()})}]),angular.module("kbApp.pages.settings.general.date-time",[]).controller("settings-general-date-timeCtrl",["$scope","dxsService","kbAppPageService","utilService",function(a,b,c,d){var e=b.getInstance();a.unixTimestamp={dxsId:268436225,value:1262304e3},e.addDataWr(a.unixTimestamp),a.date=new Date(a.unixTimestamp.value),a.submitForm=function(){c.submitHelper(e.setDataWr(),function(){a.form.$setPristine()})},a.resetForm=function(){c.submitHelper(e.getDataWr(),function(){a.form.$setPristine(),a.date=d.unixTimeStampToDate(a.unixTimestamp.value)})},a.setDateToPcTime=function(){a.date=new Date,a.unixTimestamp.value=d.dateToUnixTimestamp(a.date),a.form.$setDirty()},e.getDataWr().then(function(){a.$emit("kbPageLoaded"),a.date=d.unixTimeStampToDate(a.unixTimestamp.value)},function(){a.$emit("kbPageLoadFailed")}),a.dateChangeCB=function(){a.unixTimestamp.value=d.dateToUnixTimestamp(a.date)},a.$on("$destroy",function(){e.clear()})}]).config(["ngQuickDateDefaultsProvider",function(a){a.set("parseDateFunction",function(a){var b=moment();return angular.isString(a)?b=moment(a,"DD.MM.YYYY HH:mm"):angular.isDate(a)&&(b=moment(a)),b.year()<1970?b=moment("01.01.1970 00:00:00","DD.MM.YYYY HH:mm:ss"):b.year()>2050&&(b=moment("01.01.2050 00:00:00","DD.MM.YYYY HH:mm:ss")),b.toDate()}),a.set("closeButtonHtml",'<i class="icon-close"></i>'),a.set("prevLinkHtml",'<i class="icon-arrow-left"></i>'),a.set("nextLinkHtml",'<i class="icon-arrow-right"></i>'),a.set("buttonIconHtml",'<i class="icon-calendar"></i>')}]),angular.module("kbApp.pages.settings.general.inverter-name",[]).controller("settings-general-inverter-nameCtrl",["$scope","dxsService","kbAppPageService","kbAppProperties",function(a,b,c,d){var e=b.getInstance();a.InverterName={dxsId:16777984},e.addDataWr(a.InverterName),a.submitForm=function(){c.submitHelper(e.setDataWr(),function(){a.form.$setPristine()})},a.resetForm=function(){c.submitHelper(e.getDataWr(),function(){a.form.$setPristine()})},e.getDataWr().then(function(){a.$emit("kbPageLoaded")},function(){a.$emit("kbPageLoadFailed")}),a.$on("$destroy",function(){e.clear()})}]),angular.module("kbApp.pages.settings.general.login",[]).controller("settings-general-loginCtrl",["$scope","dxsService","kbAppPageService",function(a,b,c){var d=b.getInstance();a.OldPwd="",a.NewPwd="",a.NewPwdRepeat="";var e={dxsId:16780800,enc:!0,value:""};d.addDataWr(e),a.submitForm=function(){e.value=a.OldPwd+";"+a.NewPwd,c.submitHelper(d.setDataWr(),function(){a.form.$setPristine(),a.OldPwd="",a.NewPwd="",a.NewPwdRepeat=""})},a.resetForm=function(){a.form.$setPristine(),a.OldPwd="",a.NewPwd="",a.NewPwdRepeat=""},a.$emit("kbPageLoaded"),a.$on("$destroy",function(){d.clear()})}]),angular.module("kbApp.pages.settings.generator-configuration",[]).controller("settings-generator-configurationCtrl",["$scope","dxsService","kbAppPageService","kbAppProperties",function(a,b,c,d){var e=b.getInstance();a.parallelConnection={dxsId:33556481,value:!1},d.match("PARALLEL_CONNECTION")&&e.addDataWr(a.parallelConnection),a.generatorManagementSelect="default",a.generatorManagements=[],a.generatorManagements.push({text:"-",value:"default"}),a.shadingTracker={dxsId:33556483,value:0,string1:!1,string2:!1,string3:!1},d.match("SHADING_TRACKER_STRING_1 | SHADING_TRACKER_STRING_2 | SHADING_TRACKER_STRING_3")&&(e.addDataWr(a.shadingTracker),a.generatorManagements.push({translationId:"ID_435",value:"shadow_tracking"})),a.pvModuleRegulation={dxsId:33556482},d.match("PV_MODULE_REGULATION")&&(e.addDataWr(a.pvModuleRegulation),a.generatorManagements.push({translationId:"ID_423",value:"pv_module_regulation"}));var f=function(){angular.isDefined(a.shadingTracker.value)&&0!==a.shadingTracker.value?(a.generatorManagementSelect="shadow_tracking",1&a.shadingTracker.value&&(a.shadingTracker.string1=!0),2&a.shadingTracker.value&&(a.shadingTracker.string2=!0),4&a.shadingTracker.value&&(a.shadingTracker.string3=!0)):angular.isDefined(a.pvModuleRegulation.value)&&a.pvModuleRegulation.value===!0?a.generatorManagementSelect="pv_module_regulation":a.generatorManagementSelect="default"};a.generatorManagementSelectChange=function(){switch(a.generatorManagementSelect){case"default":a.shadingTracker.string1=!1,a.shadingTracker.string2=!1,a.shadingTracker.string3=!1,a.pvModuleRegulation.value=!1;break;case"shadow_tracking":a.shadingTracker.string1=!1,a.shadingTracker.string2=!1,a.shadingTracker.string3=!1,d.match("SHADING_TRACKER_STRING_1")&&a.parallelConnection.value===!1&&(a.shadingTracker.string1=!0),d.match("SHADING_TRACKER_STRING_2")&&a.parallelConnection.value===!1&&(a.shadingTracker.string2=!0),d.match("SHADING_TRACKER_STRING_3")&&(a.shadingTracker.string3=!0),a.pvModuleRegulation.value=!1;break;case"pv_module_regulation":a.shadingTracker.string1=!1,a.shadingTracker.string2=!1,a.shadingTracker.string3=!1,a.pvModuleRegulation.value=!0;break;default:a.shadingTracker.string1=!1,a.shadingTracker.string2=!1,a.shadingTracker.string3=!1,a.pvModuleRegulation.value=!1}},a.$watch("shadingTracker",function(b,c){angular.isUndefined(c)||(a.shadingTracker.value=0,a.shadingTracker.string1===!0&&(a.shadingTracker.value+=1),a.shadingTracker.string2===!0&&(a.shadingTracker.value+=2),a.shadingTracker.string3===!0&&(a.shadingTracker.value+=4))},!0),a.$watch("parallelConnection.value",function(b){b===!0&&(a.shadingTracker.string1=!1,a.shadingTracker.string2=!1)}),a.submitForm=function(){c.submitHelper(e.setDataWr(),function(){a.form.$setPristine()})},a.resetForm=function(){c.submitHelper(e.getDataWr(),function(){f(),a.generatorManagementSelectChange(),a.form.$setPristine()})},e.getDataWr().then(function(){f(),a.form.$setPristine(),a.$emit("kbPageLoaded")},function(){a.$emit("kbPageLoadFailed")}),a.$on("$destroy",function(){e.clear()})}]),angular.module("kbApp.pages.settings.overvoltage-protection",[]).controller("settings-overvoltage-protectionCtrl",["$scope","dxsService","kbAppPageService","kbAppProperties",function(a,b,c,d){var e=b.getInstance();a.overvoltageProtectionDc={dxsId:33556485},d.match("OVERVOLTAGE_PROT_DC")&&e.addDataWr(a.overvoltageProtectionDc),a.overvoltageProtectionAc={dxsId:67110913},d.match("OVERVOLTAGE_PROT_AC")&&e.addDataWr(a.overvoltageProtectionAc),a.submitForm=function(){c.submitHelper(e.setDataWr(),function(){a.form.$setPristine()})},a.resetForm=function(){c.submitHelper(e.getDataWr(),function(){a.form.$setPristine()})},e.getDataWr().then(function(){a.$emit("kbPageLoaded")},function(){a.$emit("kbPageLoadFailed")}),a.$on("$destroy",function(){e.clear()})}]),angular.module("kbApp.pages.settings.portal-configuration",[]).controller("settings-portal-configurationCtrl",["$scope","dxsService","kbAppPageService","bvService",function(a,b,c,d){var e=b.getInstance();a.portalCode={dxsId:117441537,readProhibited:!0},a.portalExport={dxsId:117441539},e.addDataWr(a.portalExport),a.portalName={dxsId:117441538},e.addDataRd(a.portalName),a.lastPortalCon={dxsId:117441542},e.addDataRd(a.lastPortalCon),a.submitForm=function(){e.delDataWr(a.portalCode),angular.isDefined(a.portalCode.value)&&a.portalCode.value.length>4&&e.addDataWr(a.portalCode),c.submitHelper(e.setDataWr(),function(b){"success"===b&&(e.getDataRd(0),e.getDataWr(),a.portalCode.value="",a.form.$setPristine())})},a.resetForm=function(){c.submitHelper(e.getDataWr(),function(){a.form.$setPristine(),a.portalCode.value=""})},e.getDataWr().then(function(){e.getDataRd(),a.$emit("kbPageLoaded")},function(){a.$emit("kbPageLoadFailed"),e.clear()}),a.BV=!1,a.$watch("portalCode.value",function(b){"playBV"==b&&(a.BV=!0,d.startBV())}),a.$on("$destroy",function(){e.clear()})}]),angular.module("kbApp.pages.settings.switching-output",[]).controller("settings-switching-outputCtrl",["$scope","dxsService","kbAppPageService","kbAppProperties",function(a,b,c,d){var e=b.getInstance();a.S0Function={dxsId:201326848},e.addDataWr(a.S0Function),a.OwnConsumpCtrlFunction={dxsId:201327105},e.addDataWr(a.OwnConsumpCtrlFunction),a.DelayError={dxsId:201327113},e.addDataWr(a.DelayError),a.DelayErrorEnable={dxsId:201327106},e.addDataWr(a.DelayErrorEnable),a.Fc1PowerThreshold={dxsId:201327107},e.addDataWr(a.Fc1PowerThreshold),a.Fc1ExceedTime={dxsId:201327108},e.addDataWr(a.Fc1ExceedTime),a.Fc1Runtime={dxsId:201327109},e.addDataWr(a.Fc1Runtime),a.Fc1MaxActivationsDay={dxsId:201327110},e.addDataWr(a.Fc1MaxActivationsDay),a.Fc2ThresholdOn={dxsId:201327111},e.addDataWr(a.Fc2ThresholdOn),a.Fc2ThresholdOff={dxsId:201327112},e.addDataWr(a.Fc2ThresholdOff),d.match("BATTERY")&&(a.UseBattery={dxsId:201327114},e.addDataWr(a.UseBattery)),a.switchingOutputOptions=[{translationId:"ID_331",value:0},{translationId:"ID_332",value:1},{translationId:"ID_287",value:2}],d.match("EXT_CURRENT_SENS")&&a.switchingOutputOptions.push({translationId:"ID_288",value:4}),a.submitForm=function(){c.submitHelper(e.setDataWr(),function(){a.form.$setPristine()})},a.resetForm=function(){c.submitHelper(e.getDataWr(),function(){a.form.$setPristine()})},e.getDataWr().then(function(){a.$emit("kbPageLoaded")},function(){a.$emit("kbPageLoadFailed")}),a.$on("$destroy",function(){e.clear()})}]),angular.module("kbApp.pages.statistics.day",[]).controller("statistics-dayCtrl",["$scope","dxsService","kbAppProperties",function(a,b,c){var d=b.getInstance();a.Yield={dxsId:251658754},d.addDataRd(a.Yield),c.match("EXT_CURRENT_SENS")&&(a.HomeConsumption={dxsId:251659010},d.addDataRd(a.HomeConsumption),a.OwnConsumption={dxsId:251659266},d.addDataRd(a.OwnConsumption),a.OwnConsRate={dxsId:251659278},d.addDataRd(a.OwnConsRate),a.AutonomyDegree={dxsId:251659279},d.addDataRd(a.AutonomyDegree)),d.getDataRd().then(null,null,function(b){b===!0&&a.$emit("kbPageLoaded")}),a.$on("$destroy",function(){d.clear()})}]),angular.module("kbApp.pages.statistics.log-data",[]).controller("statistics-log-dataCtrl",["$scope","$q","$http","kbAppPageService","utilService","KbError","KbErrorTypes",function(a,b,c,d,e,f,g){var h=function(){var a=b.defer();return c({url:"/LogDaten.dat",method:"GET"}).then(function(b){a.resolve(),e.serveDataToFile(b.data,"LogData.dat")},function(b){401==b.status?a.reject(new f("No Authentication",g.ERR_AUTHENTICATION)):a.reject(new f("Internal Error",g.ERR_INTERNAL))}),a.promise};d.submitHelper(h()),a.$emit("kbPageLoaded")}]),angular.module("kbApp.pages.statistics.total",[]).controller("statistics-totalCtrl",["$scope","dxsService","kbAppProperties",function(a,b,c){var d=b.getInstance();a.Yield={dxsId:251658753},d.addDataRd(a.Yield),a.OperatingTime={dxsId:251658496},d.addDataRd(a.OperatingTime),c.match("EXT_CURRENT_SENS")&&(a.HomeConsumption={dxsId:251659009},d.addDataRd(a.HomeConsumption),a.OwnConsumption={dxsId:251659265},d.addDataRd(a.OwnConsumption),a.OwnConsRate={dxsId:251659280},d.addDataRd(a.OwnConsRate),a.AutonomyDegree={dxsId:251659281},d.addDataRd(a.AutonomyDegree)),d.getDataRd().then(null,null,function(b){b===!0&&a.$emit("kbPageLoaded")}),a.$on("$destroy",function(){d.clear()})}]),angular.module("kb-elements",["kb-elements.select"]);var kbSelect=angular.module("kb-elements.select",[]);kbSelect.run(["$templateCache",function(a){a.put("kbElements/templates/select/selectItem.html",[].join(""))}]),kbSelect.directive("kbSelect",["kbSelectService","$translate","$rootScope",function(a,b,c){return{template:'<div class="kb-select"><span></span><i class="icon-arrow-small-down"></i><ul class="dropdown"><li kb-select-item="item" ng-repeat="item in itemList"/></ul></div>',restrict:"E",replace:!0,require:"ngModel",scope:{itemList:"=",ngModel:"="},link:function(d,e,f,g){function h(a){for(var b="",c=0;c<d.itemList.length;c++){var e=d.itemList[c];if(e.value==a){b=angular.copy(e);break}}return b}function i(a){var b="";return angular.isDefined(a.value)&&(b=angular.copy(a.value)),b}angular.isDefined(d.itemList)===!1&&(d.itemList=[]),g.$setPristine(),a.register(e),e.bind("click",function(b){b.stopPropagation(),a.toggleActive(e)}),d.$on("$destroy",function(){a.unregister(e)}),g.$validators.itemInItemlist=function(a){for(var b=0;b<d.itemList.length;b++){var c=d.itemList[b];if(c.value==a)return!0}return!1},g.$render=function(){angular.isDefined(g.$viewValue.text)?e.find("span").text(g.$viewValue.text):angular.isDefined(g.$viewValue.translationId)&&e.find("span").text(b.instant(g.$viewValue.translationId))},c.$on("$translateChangeSuccess",function(){g.$render()}),d.$watch("itemList",function(){for(var a=0;a<d.itemList.length;a++){var b=d.itemList[a];if(b.value==d.ngModel){d.selectItem(b),g.$render();break}}},!0),g.$formatters.push(h),g.$parsers.push(i),d.selectItem=function(a){a!==g.$viewValue&&(angular.isDefined(a)&&angular.isDefined(a.value)?g.$setViewValue(angular.copy(a)):g.$render())},g.$viewChangeListeners.push(function(){g.$render()})},controller:["$scope","$element",function(a,b){this.select=function(b){a.selectItem(b)}}]}}]),kbSelect.directive("kbSelectItem",[function(){return{template:'<li><a ng-click="selectItem()">{{kbSelectItem.text}}{{kbSelectItem.translationId | translate}}</a></li>',require:"^kbSelect",restrict:"A",replace:!0,scope:{kbSelectItem:"="},link:function(a,b,c,d){a.selectItem=function(){d.select(a.kbSelectItem)}}}}]),kbSelect.factory("kbSelectService",["$document",function(a){var b=a.find("body"),c={},d=[];
return b.bind("click",function(){angular.forEach(d,function(a){a.removeClass("active")})}),c.register=function(a){d.push(a)},c.unregister=function(a){var b;b=d.indexOf(a),b>-1&&d.splice(b,1)},c.toggleActive=function(a){angular.forEach(d,function(b){b!==a&&b.removeClass("active")}),a.toggleClass("active")},c}]),angular.module("templates-app",[]).run(["$templateCache",function(a){a.put("language/languageSelectItem.tpl.html",'<div id="languageSelectItem">\n   <a href="" ng-click="selectLanguage(language)">\n      <div ng-class="\'img_language_flags_f_\' + language"></div>\n   </a>\n</div>'),a.put("navigation/navigationBreadcrumb.tpl.html",'<div class="breadcrumb">\n   <div class="breadcrumbAnchor"></div>\n   <div ng-repeat="node in breadcrumbs">\n      <p class="breadcrumbItem" translate="{{\'ID_\'+node.textId}}"></p>\n\n      <div ng-class="{\'breadcrumbSeparator\':!$last}"></div>\n   </div>\n</div>'),a.put("navigation/navigationNav.tpl.html",'<ul>\n   <kb-navigation-node ng-repeat="node in nodes" node="node"></kb-navigation-node>\n</ul>'),a.put("navigation/navigationNavNode.tpl.html",'<li ng-show="showNode(node.options)" ng-class="{separation: node.options.separation}">\n   <div ng-if="node.nodes.length <= 0">\n      <a href="{{\'#\'+node.path}}" ng-class="{\'active\':isActive()}">\n         <i ng-if="node.icon != \'\'" class="{{node.icon}}"></i>\n         <div translate="{{\'ID_\'+node.textId}}"></div>\n      </a>\n   </div>\n\n   <div ng-if="node.nodes.length > 0">\n      <a ng-click="toggleCollapse()">\n         <i ng-if="node.icon != \'\'" class="{{node.icon}}"></i>\n         <div translate="{{\'ID_\'+node.textId}}"></div>\n      </a>\n   </div>\n\n   <ul ng-if="node.nodes.length > 0">\n      <kb-navigation-node ng-repeat="node in node.nodes" node="node">\n   </ul>\n</li>'),a.put("pages/current-values/analog-inputs/current-values-analog-inputs.tpl.html",'<fieldset>\n   <div class="row">\n      <label translate="ID_307"></label><div class="value">{{Analog1.value | kbDynUnit:\'V\':100:2}}</div>\n   </div>\n   <div class="row">\n      <label class="label" translate="ID_308"></label><div class="value">{{Analog2.value | kbDynUnit:\'V\':100:2}}</div>\n   </div>\n   <div class="row">\n      <label class="label" translate="ID_309"></label><div class="value">{{Analog3.value | kbDynUnit:\'V\':100:2}}</div>\n   </div>\n   <div class="row">\n      <label class="label" translate="ID_310"></label><div class="value">{{Analog4.value | kbDynUnit:\'V\':100:2}}</div>\n   </div>\n</fieldset>'),a.put("pages/current-values/battery/current-values-battery.tpl.html",'<fieldset>\n   <div class="row">\n      <label translate="ID_38"></label><div class="value">{{Voltage.value | kbDynUnit:\'V\':1000}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_198"></label><div class="value">{{Charge.value | kbDynUnit:\'%\':101:1}}</div>\n   </div>\n   <div class="row">\n      <label ng-if="CurrentDir.value == 0" translate="ID_199"></label><label ng-if="CurrentDir.value != 0" translate="ID_242"></label><div class="value">{{Current.value | kbDynUnit:\'A\':100:1}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_267"></label><div class="value">{{ChargeCycles.value | kbDynUnit:\'\':1000000}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_44"></label><div class="value">{{Temperature.value | kbDynUnit:\'°C\':1000:1}}</div>\n   </div>\n</fieldset>'),a.put("pages/current-values/grid/current-values-grid.tpl.html",'<fieldset>\n   <legend translate="ID_265"></legend>\n   <div class="row">\n      <label translate="ID_34"></label><div class="value">{{GridOutputPower.value | kbDynUnit:\'W\':1000:1}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_83"></label><div class="value">{{GridFreq.value | kbDynUnit:\'Hz\':1000:1}}</div>\n   </div>\n   <div class="row" ng-if="appIsMatchingProperties(&quot;PIKO_FUTURE&quot;)">\n      <label translate="ID_395"></label><div class="value">{{GridCosPhi.value | kbDynUnit:\'\':10:2}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_266"></label><div class="value">{{GridLimitation.value | kbDynUnit:\'%\':101:1}}</div>\n   </div>\n</fieldset>\n\n<fieldset>\n   <legend translate="ID_208"></legend>\n   <div class="row">\n      <label translate="ID_38"></label><div class="value">{{GridVoltageL1.value | kbDynUnit:\'V\':1000:0}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_40"></label><div class="value">{{GridCurrentL1.value | kbDynUnit:\'A\':100:1}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_42"></label><div class="value">{{GridPowerL1.value | kbDynUnit:\'W\':1000:1}}</div>\n   </div>\n</fieldset>\n\n<fieldset ng-if="appIsMatchingProperties(&quot;3_PHASE&quot;)">\n   <legend translate="ID_209"></legend>\n   <div class="row">\n      <label translate="ID_38"></label><div class="value">{{GridVoltageL2.value | kbDynUnit:\'V\':1000:0}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_40"></label><div class="value">{{GridCurrentL2.value | kbDynUnit:\'A\':100:1}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_42"></label><div class="value">{{GridPowerL2.value | kbDynUnit:\'W\':1000:1}}</div>\n   </div>\n</fieldset>\n\n<fieldset ng-if="appIsMatchingProperties(&quot;3_PHASE&quot;)">\n   <legend translate="ID_210"></legend>\n   <div class="row">\n      <label translate="ID_38"></label><div class="value">{{GridVoltageL3.value | kbDynUnit:\'V\':1000:0}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_40"></label><div class="value">{{GridCurrentL3.value | kbDynUnit:\'A\':100:1}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_42"></label><div class="value">{{GridPowerL3.value | kbDynUnit:\'W\':1000:1}}</div>\n   </div>\n</fieldset>'),a.put("pages/current-values/home/current-values-home.tpl.html",'<fieldset>\n   <legend translate="ID_391"></legend>\n   <div class="row">\n      <label translate="ID_201"></label><div class="value">{{AktHomeConsumptionSolar.value | kbDynUnit:\'W\':1000:1}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_200"></label><div class="value">{{AktHomeConsumptionBat.value | kbDynUnit:\'W\':1000:1}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_202"></label><div class="value">{{AktHomeConsumptionGrid.value | kbDynUnit:\'W\':1000:1}}</div>\n   </div>\n</fieldset>\n\n<fieldset>\n   <legend translate="ID_392"></legend>\n   <div class="row">\n      <label translate="ID_208"></label><div class="value">{{PhaseSelHomeConsumpL1.value | kbDynUnit:\'W\':1000:1}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_209"></label><div class="value">{{PhaseSelHomeConsumpL2.value | kbDynUnit:\'W\':1000:1}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_210"></label><div class="value">{{PhaseSelHomeConsumpL3.value | kbDynUnit:\'W\':1000:1}}</div>\n   </div>\n</fieldset>'),a.put("pages/current-values/pv-generator/current-values-pv-generator.tpl.html",'<fieldset>\n   <legend translate="ID_2"></legend>\n   <div class="row">\n      <label translate="ID_38"></label><div class="value">{{dc1Voltage.value | kbDynUnit:\'V\':10000:1}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_40"></label><div class="value">{{dc1Current.value | kbDynUnit:\'A\':100:2}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_42"></label><div class="value">{{dc1Power.value | kbDynUnit:\'W\':1000:1}}</div>\n   </div>\n</fieldset>\n<fieldset ng-if="appIsMatchingProperties(&quot;STRING_2&quot;)">\n   <legend translate="ID_3"></legend>\n   <div class="row">\n      <label translate="ID_38"></label><div class="value">{{dc2Voltage.value | kbDynUnit:\'V\':10000:1}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_40"></label><div class="value">{{dc2Current.value | kbDynUnit:\'A\':100:2}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_42"></label><div class="value">{{dc2Power.value | kbDynUnit:\'W\':1000:1}}</div>\n   </div>\n</fieldset>\n<fieldset ng-if="appIsMatchingProperties(&quot;STRING_3&quot;)">\n   <legend translate="ID_4"></legend>\n   <div class="row">\n      <label translate="ID_38"></label><div class="value">{{dc3Voltage.value | kbDynUnit:\'V\':10000:1}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_40"></label><div class="value">{{dc3Current.value | kbDynUnit:\'A\':100:2}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_42"></label><div class="value">{{dc3Power.value | kbDynUnit:\'W\':1000:1}}</div>\n   </div>\n</fieldset>'),a.put("pages/current-values/s0-in/current-values-s0-in.tpl.html",'<fieldset>\n   <div class="row">\n      <label translate="ID_350"></label><div class="value"><div>{{S0InPulseCnt.value}} / {{LogintervalReadable}}</div>\n   </div>\n</div></fieldset>'),a.put("pages/home/home.tpl.html",'<form name="form" novalidate>\n   \n   <fieldset>\n      <legend translate="ID_31"></legend>\n      \n      <div class="row">\n         <label translate="ID_1"></label><div class="value">{{dcPowerPV.value | kbDynUnit:\'W\':10000:1}}</div>\n      </div>\n      \n      <div class="row">\n         <label translate="ID_34"></label><div class="value">{{acPower.value | kbDynUnit:\'W\':10000:1}}</div>\n      </div>\n      \n      <div class="row" ng-if="appIsMatchingProperties(&quot;EXT_CURRENT_SENS&quot;)">\n         <label translate="ID_273"></label><div class="value">{{ownConsumption.value | kbDynUnit:\'W\':10000:1}}</div>\n      </div>\n   </fieldset>\n   \n   <fieldset ng-if="appIsMatchingProperties(&quot;BATTERY&quot;)">\n      <legend translate="ID_200"></legend>\n      \n      <div class="row">\n         <label translate="ID_198"></label><div class="value">{{batStateOfCharge.value | kbDynUnit:\'%\':101:1}}</div>\n      </div>\n   </fieldset>\n   \n   <fieldset>\n      <legend translate="ID_49"></legend>\n      \n      <div class="row">\n         <label translate="ID_388"></label><div class="value">{{operatingStatusTranslationId | translate}}</div>\n      </div>\n   </fieldset>\n</form>'),a.put("pages/info/events/info-events.tpl.html",'<fieldset>\n   <table ng-if="EventCnt > 0" class="table">\n      <tr>\n         <th></th>\n         <th translate="ID_386"></th>\n         <th translate="ID_229"></th>\n      </tr>\n      <tr ng-repeat="Event in Events">\n         <td>{{$index + 1}}</td>\n         <td>{{Event.date | date:\'dd.M.yyyy H:mm\'}}</td>\n         <td>{{Event.code}} ( {{Event.env}} )</td>\n      </tr>\n   </table>\n   <table ng-if="EventCnt <= 0" class="table">\n      <tr>\n         <th translate="ID_387"></th>\n      </tr>\n   </table>\n</fieldset>'),a.put("pages/info/versions/info-versions.tpl.html",'<fieldset>\n   <div class="row">\n      <label translate="ID_75"></label><div class="value">{{VersionUI.value}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_74"></label><div class="value">{{VersionFW.value}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_73"></label><div class="value">{{VersionHW.value}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_76"></label><div class="value">{{VersionPAR.value}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_21"></label><div class="value">{{SerialNumber.value}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_314"></label><div class="value">{{ArticelNumber.value}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_215"></label><div class="value">{{CountrySettingsName.value}}</div><div class="value">&nbsp({{CountrySettingsVersion.value}})</div>\n   </div>\n</fieldset>'),a.put("pages/login/login.tpl.html",'<form name="form" novalidate>\n   <fieldset>\n      <div class="row">\n         \n         <label translate="ID_365"></label>\n         <kb-select ng-model="userSelected" item-list="userList"></kb-select>\n      </div>\n\n      \n      <div ng-show="userSelected == \'user\'">\n         <div class="row">\n            \n            <label translate="ID_71"></label>\n            <input type="text" name="userName" ng-model="userName.value" ng-maxlength="16">\n            <div class="info-error" ng-messages="form.userName.$error" ng-if="form.userName.$dirty">\n               <div ng-message="maxlength"><span>{{"ID_398"| translate}}</span></div> \n            </div>\n         </div>\n         <div class="row">\n            \n            <label translate="ID_72"></label>\n            <input type="password" name="password" ng-model="password.value" ng-maxlength="16">\n            <div class="info-error" ng-messages="form.password.$error" ng-if="form.password.$dirty">\n               <div ng-message="maxlength"><span>{{"ID_398"| translate}}</span></div> \n            </div>\n         </div>\n      </div>\n\n      \n      <div ng-show="userSelected == \'installer\'">\n         <div class="row">\n            \n            <label translate="ID_155"></label>\n            <input type="password" name="servicecode" ng-model="servicecode.value" ng-maxlength="16">\n            <div class="info-error" ng-messages="form.servicecode.$error" ng-if="form.servicecode.$dirty">\n               <div ng-message="maxlength"><span>{{"ID_398"| translate}}</span></div> \n            </div>\n         </div>\n      </div>\n\n      <div class="bottomframe">\n         <button translate="ID_315" class="right" type="submit" ng-click="login(userSelected)" ng-disabled="form.$invalid || form.$pristine || appPageInfo.submitInProgress"></button>\n      </div>\n   </fieldset>\n</form>'),a.put("pages/logout/logout.tpl.html",""),a.put("pages/settings/analog-inputs/settings-analog-inputs.tpl.html",'<form name="form" novalidate>\n   <fieldset>\n      <div class="row">\n         <label translate="ID_344"></label>\n         <kb-select ng-model="mode.value" item-list="modes"></kb-select>\n      </div>\n      <div class="bottomframe">\n         <button type="button" translate="ID_317" class="left" ng-click="resetForm()" ng-disabled="form.$pristine || appPageInfo.submitInProgress">Reset</button>\n         <button type="submit" translate="ID_86" class="right" ng-click="submitForm()" ng-disabled="form.$invalid || form.$pristine || appPageInfo.submitInProgress"></button>\n      </div>\n   </fieldset>\n</form>'),a.put("pages/settings/battery-configuration/settings-battery-configuration.tpl.html",'<form name="form" novalidate>\n   <fieldset>\n      \n      <div class="row" ng-if="appIsMatchingProperties(\'WEATHER_FORECAST\')">\n         <label translate="ID_425"></label>\n         <div class="value">\n            <input type="text" kb-integer="50-10000" class="medium" name="BatDischargeHysteresisOn" ng-model="dischargeHysteresisOn.value">\n         </div>\n         <label>W</label>\n         <div class="info-error" ng-messages="form.BatDischargeHysteresisOn.$error" ng-if="form.BatDischargeHysteresisOn.$dirty">\n            <div ng-message="integer"><span>{{"ID_400"| translate}} (50-10000W)</span></div> \n         </div>\n      </div>\n\n      \n      <div class="row" ng-if="appIsMatchingProperties(\'WINTERMODE_SUPPORTED | !BATTERY_LION\')">\n         <label translate="ID_436"></label>\n         <div class="value">\n            <kb-select class="validate-on-pristine" ng-model="wintermode.value" item-list="wintermodes"></kb-select>\n         </div>\n      </div>\n\n      \n      <div class="row" ng-if="appIsMatchingProperties(\'ESB\') && appIsUserAuthorized(\'INSTALLER, DEVELOPER, SERVICE\')">\n         <label translate="ID_303"></label>\n         <div class="value">\n            <input type="checkbox" name="EPS" ng-model="eps.value">\n         </div>\n      </div>\n      \n      <fieldset ng-if="(appIsMatchingProperties(\'WEATHER_FORECAST\') && wintermode.value != 0) || (weatherForecast.value !== true || wintermode.value == 0)">\n         <legend translate="ID_428"></legend>\n         \n         <div class="row" ng-if="appIsMatchingProperties(\'WEATHER_FORECAST\') && wintermode.value != 0">\n            <label translate="ID_437"></label>\n            <div class="value">\n               <input type="checkbox" name="weatherForecast" ng-model="weatherForecast.value">\n            </div>\n         </div>\n         \n         <div class="row" ng-if="weatherForecast.value !== true || wintermode.value == 0">\n            <label translate="ID_276"></label>\n            <div class="value">\n               <input type="text" kb-time class="time" name="chargeTimeStart" ng-model="chargeTimeStart.value"> -\n               <input type="text" kb-time class="time" name="chargeTimeEnd" ng-model="chargeTimeEnd.value">\n            </div>\n         </div>\n         \n         <div class="row" ng-if="appIsUserAuthorized(&quot;INSTALLER, DEVELOPER, SERVICE&quot;) && wintermode.value == 0">\n            <label translate="ID_234"></label>\n            <input type="checkbox" id="maintenanceCharge" name="maintenanceCharge" ng-model="maintenanceCharge.value">\n            <label for="maintenanceCharge" translate="ID_240"></label>\n         </div>\n      </fieldset>\n      \n      \n      <fieldset ng-if="wintermode.value == 0">\n         <legend translate="ID_429"></legend>\n         <div>\n            \n            <div class="row">\n               <label translate="ID_430"></label>\n            </div>\n\n            \n            <div class="row">\n               <div class="indent"></div>\n               <label translate="ID_431"></label>\n               <div class="value">\n                  <kb-select class="validate-on-pristine" ng-model="minSoCManual.value" item-list="minSoCs" style="width: 70px"></kb-select>\n                  <span>%</span>\n                  <label translate="ID_434" style="width: auto; margin-left: 20px; margin-right: 20px"></label>\n                  <kb-select class="validate-on-pristine" ng-model="minSoCManualIncEnd.value" item-list="months" style="width: 70px"></kb-select>\n               </div>\n            </div>\n            \n            <div class="row">\n               <div class="indent"></div>\n               <label translate="ID_432"></label>\n               <div class="value">\n                  <kb-select class="validate-on-pristine" ng-model="minSoCManualInc.value" item-list="minSoCs" style="width: 70px"></kb-select>\n                  <span>%</span>\n                  <label translate="ID_434" style="width: auto; margin-left: 20px; margin-right: 20px"></label>\n                  <kb-select class="validate-on-pristine" ng-model="minSoCManualIncStart.value" item-list="months" style="width: 70px"></kb-select>\n               </div>\n            </div>\n         </div>\n      </fieldset>\n      \n      <fieldset ng-if="wintermode.value != 0 && appIsMatchingProperties(\'WEATHER_FORECAST & WINTERMODE_SUPPORTED\')">\n         <legend translate="ID_429"></legend>\n         <div class="row">\n            <label translate="ID_430"></label>\n            <div class="value">\n               <kb-select ng-model="minSoCAutomaticViewValue.value" item-list="minSoCs" ng-change="minSoCAutomaticViewValueChange()" style="width: 120px"></kb-select>\n               <span ng-if="minSoCDynamic.value === false">%</span>\n            </div>\n         </div>\n      </fieldset>\n\n      <div class="bottomframe">\n         <button type="button" translate="ID_317" class="left" ng-click="resetForm()" ng-disabled="form.$pristine || appPageInfo.submitInProgress">Reset</button>\n         <button type="submit" translate="ID_86" class="right" ng-click="submitForm()" ng-disabled="form.$invalid || form.$pristine || appPageInfo.submitInProgress"></button>\n      </div>\n   </fieldset>\n</form>'),a.put("pages/settings/communication/inverter-address/settings-communication-inverter-address.tpl.html",'<form name="form" novalidate>\n   <fieldset>\n      <div class="row">\n         <label translate="ID_319"></label>\n         <input ng-if="!appIsMatchingProperties(&quot;MODBUS&quot;)" type="text" kb-integer="1-220,255" kb-max-length="3" class="small" name="inverterAddress" ng-model="inverterAddress.value">\n         <input ng-if="appIsMatchingProperties(&quot;MODBUS&quot;)" type="text" kb-integer="1-247" kb-max-length="3" class="small" name="inverterAddress" ng-model="inverterAddress.value">\n         <div class="info-error" ng-messages="form.inverterAddress.$error" ng-if="form.inverterAddress.$dirty">\n            <div ng-if="!appIsMatchingProperties(&quot;MODBUS&quot;)" ng-message="integer"><span>{{"ID_400"| translate}} (1-220, 255)</span></div> \n            <div ng-if="appIsMatchingProperties(&quot;MODBUS&quot;)" ng-message="integer"><span>{{"ID_400"| translate}} (1-247)</span></div> \n         </div>\n      </div>\n      <div class="bottomframe">\n         <button type="button" translate="ID_317" class="left" ng-click="resetForm()" ng-disabled="form.$pristine || appPageInfo.submitInProgress">Reset</button>\n         <button type="submit" translate="ID_86" class="right" ng-click="submitForm()" ng-disabled="form.$invalid || form.$pristine || appPageInfo.submitInProgress"></button>\n      </div>\n   </fieldset>\n</form>'),a.put("pages/settings/communication/modem/settings-communication-modem.tpl.html",'<form name="form" novalidate>\n   <fieldset>\n      <div class="row">\n         <label translate="ID_144"></label>\n         <div class="value">{{modem_trans_id|translate}}</div>\n      </div>\n      \n      <div class="row" ng-if="modem == \'ANALOG_MODEM\'">\n         <label translate="ID_381"></label>\n         <input type="text" class="small" ng-model="publicLineNum.value" kb-integer="0-9999" maxlength="4">\n      </div>\n      \n      <div class="row" ng-if="modem != \'ANALOG_MODEM\'">\n         <label translate="ID_380"></label>\n         <input name="gsmPin" type="password" class="gsm-pin" ng-model="gsmPin.value" maxlength="4" ng-pattern="/[0-9]{4}/">\n         <div class="info-error" ng-if="form.gsmPin.$dirty && form.gsmPin.$invalid">\n            <div><span>{{"ID_400"| translate}} (0000-9999)</span></div> \n         </div>\n      </div>\n      <div class="row" ng-if="modem == \'GSM_MODEM\'">\n         <label translate="ID_148"></label>\n         <div class="value">\n            <progress-bar bar-value="gsmSigQual.value" frontbarclasses="[0,25,75,100]" backbarclasses="[100]">\n\n            </progress-bar>\n         </div>\n      </div>\n      <div class="bottomframe">\n         <button type="button" translate="ID_317" class="left" ng-click="resetForm()" ng-disabled="form.$pristine || appPageInfo.submitInProgress">Reset</button>\n         <button type="submit" translate="ID_86" class="right" ng-click="submitForm()" ng-disabled="form.$invalid || form.$pristine || appPageInfo.submitInProgress"></button>\n      </div>\n   </fieldset>\n</form>'),a.put("pages/settings/communication/network/settings-communication-network.tpl.html",'<form name="form" novalidate>\n   <fieldset>\n      <fieldset>\n         <legend translate="ID_323"></legend>\n         \n         <div class="row">\n            <input id="optAutoIpOn" name="optAutoIp" type="radio" ng-model="settingIpAuto.value" ng-value="true">\n            <label for="optAutoIpOn" translate="ID_59"></label>\n         </div>\n         <div class="row">\n            <input id="optAutoIpOff" name="optAutoIp" type="radio" ng-model="settingIpAuto.value" ng-value="false">\n            <label for="optAutoIpOff" translate="ID_326"></label>\n         </div>\n         \n         <div class="row">\n            <div class="indent"></div>\n            <label ng-class="{disabled:ipAuto.value}" translate="ID_60"></label>\n            <input type="text" name="ip1" class="small" ng-disabled="settingIpAuto.value" ng-model="settingIp1.value" kb-integer="0-255" kb-max-length="3">\n            <input type="text" name="ip2" class="small" ng-disabled="settingIpAuto.value" ng-model="settingIp2.value" kb-integer="0-255" kb-max-length="3">\n            <input type="text" name="ip3" class="small" ng-disabled="settingIpAuto.value" ng-model="settingIp3.value" kb-integer="0-255" kb-max-length="3">\n            <input type="text" name="ip4" class="small" ng-disabled="settingIpAuto.value" ng-model="settingIp4.value" kb-integer="0-255" kb-max-length="3">\n         </div>\n         \n         <div class="row">\n            <div class="indent"></div>\n            <label ng-class="{disabled:ipAuto.value}" translate="ID_62"></label>\n            <input type="text" class="small" ng-disabled="settingIpAuto.value" ng-model="settingSubnetmask1.value" kb-integer="0-255" kb-max-length="3">\n            <input type="text" class="small" ng-disabled="settingIpAuto.value" ng-model="settingSubnetmask2.value" kb-integer="0-255" kb-max-length="3">\n            <input type="text" class="small" ng-disabled="settingIpAuto.value" ng-model="settingSubnetmask3.value" kb-integer="0-255" kb-max-length="3">\n            <input type="text" class="small" ng-disabled="settingIpAuto.value" ng-model="settingSubnetmask4.value" kb-integer="0-255" kb-max-length="3">\n         </div>\n         \n         <div class="row">\n            <div class="indent"></div>\n            <label ng-class="{disabled:ipAuto.value}" translate="ID_404"></label>\n            <input type="text" class="small" ng-disabled="settingIpAuto.value" ng-model="settingGateway1.value" kb-integer="0-255" kb-max-length="3">\n            <input type="text" class="small" ng-disabled="settingIpAuto.value" ng-model="settingGateway2.value" kb-integer="0-255" kb-max-length="3">\n            <input type="text" class="small" ng-disabled="settingIpAuto.value" ng-model="settingGateway3.value" kb-integer="0-255" kb-max-length="3">\n            <input type="text" class="small" ng-disabled="settingIpAuto.value" ng-model="settingGateway4.value" kb-integer="0-255" kb-max-length="3">\n         </div>\n         \n         <div class="row">\n            <div class="indent"></div>\n            <label ng-class="{disabled:ipAuto.value}" translate="ID_408"></label>\n            <input type="text" class="small" ng-disabled="settingIpAuto.value" ng-model="dns2_1.value" kb-integer="0-255" kb-max-length="3">\n            <input type="text" class="small" ng-disabled="settingIpAuto.value" ng-model="dns2_2.value" kb-integer="0-255" kb-max-length="3">\n            <input type="text" class="small" ng-disabled="settingIpAuto.value" ng-model="dns2_3.value" kb-integer="0-255" kb-max-length="3">\n            <input type="text" class="small" ng-disabled="settingIpAuto.value" ng-model="dns2_4.value" kb-integer="0-255" kb-max-length="3">\n         </div>\n         <br>\n         <div class="row"><i class="icon-info info-info" translate="ID_329"></i></div>\n      </fieldset>\n      <fieldset>\n         \n         <legend translate="ID_70"></legend>\n         \n         <div class="row">\n            <input id="optExtRouterOn" name="optExtRouter" type="radio" ng-model="settingExtGateway.value" ng-value="true">\n            <label for="optExtRouterOn" translate="ID_404"></label>\n         </div>\n         \n         <div class="row">\n            <input id="optExtRouterOff" name="optExtRouter" type="radio" ng-model="settingExtGateway.value" ng-value="false">\n            <label for="optExtRouterOff" translate="ID_405"></label>\n         </div>\n      </fieldset>\n      <fieldset>\n         \n         <legend translate="ID_406"></legend>\n         \n         <div class="row">\n            <label translate="ID_60"></label>\n            <div class="value">{{netInfoIp1.value + "." + netInfoIp2.value + "." + netInfoIp3.value + "." + netInfoIp4.value}}</div>\n         </div>\n         \n         <div class="row">\n            <label translate="ID_62"></label>\n            <div class="value">{{netInfoSubnetmask1.value + "." + netInfoSubnetmask2.value + "." + netInfoSubnetmask3.value + "." + netInfoSubnetmask4.value}}</div>\n         </div>\n         \n         <div class="row">\n            <label translate="ID_404"></label>\n            <div class="value">{{netInfoGateway1.value + "." + netInfoGateway2.value + "." + netInfoGateway3.value + "." + netInfoGateway4.value}}</div>\n         </div>\n         \n         <div class="row">\n            <label translate="ID_409"></label>\n            <div class="value">{{netInfoDns1_1.value + "." + netInfoDns1_2.value + "." + netInfoDns1_3.value + "." + netInfoDns1_4.value}}</div>\n         </div>\n         \n         <div class="row">\n            <label translate="ID_410"></label>\n            <div class="value">{{netInfoDns2_1.value + "." + netInfoDns2_2.value + "." + netInfoDns2_3.value + "." + netInfoDns2_4.value}}</div>\n         </div>\n         \n         <div class="row">\n            <label translate="ID_407"></label>\n            <div class="value">{{netInfoMacAddress.value}}</div>\n         </div>\n      </fieldset>\n      <div class="bottomframe">\n         <button type="button" translate="ID_317" class="left" ng-click="resetForm()" ng-disabled="form.$pristine || appPageInfo.submitInProgress">Reset</button>\n         <button type="submit" translate="ID_86" class="right" ng-click="submitForm()" ng-disabled="form.$invalid || form.$pristine || appPageInfo.submitInProgress"></button>\n      </div>\n   </fieldset>\n\n</form>'),a.put("pages/settings/communication/rs485/settings-communication-rs485.tpl.html",'<form name="form" novalidate>\n   <fieldset>\n      \n      <div class="row">\n         <label translate="ID_65"></label>\n         <input type="checkbox" name="rs485Termination" ng-model="rs485Termination.value">\n      </div>\n      \n      <div class="row">\n         <label translate="ID_67"></label>\n         <input type="checkbox" name="rs485Preload" ng-model="rs485Preload.value">\n      </div>\n      \n      <div class="row" ng-if="appIsMatchingProperties(&quot;PIKO_FUTURE&quot;)">\n         <label translate="ID_413"></label>\n         <kb-select ng-model="rs485Mode.value" item-list="rs485Modes" style="width: 90px"></kb-select>\n      </div>\n      \n      <div class="row" ng-if="appIsMatchingProperties(&quot;PIKO_FUTURE&quot;)">\n         <label translate="ID_414"></label>\n         <kb-select ng-model="rs485Baudrate.value" item-list="rs485Baudrates" style="width: 90px"></kb-select>\n      </div>\n      <div class="row">\n         <label translate="ID_319"></label>\n         <div class="value">{{inverterAddress.value}}</div>\n      </div>\n      <div class="bottomframe">\n         <button type="button" translate="ID_317" class="left" ng-click="resetForm()" ng-disabled="form.$pristine || appPageInfo.submitInProgress">Reset</button>\n         <button type="submit" translate="ID_86" class="right" ng-click="submitForm()" ng-disabled="form.$invalid || form.$pristine || appPageInfo.submitInProgress"></button>\n      </div>\n   </fieldset>\n</form>'),a.put("pages/settings/data-logger/settings-data-logger.tpl.html",'<form name="form" novalidate>\n   <fieldset>\n      <div class="row">\n         <label translate="ID_375"></label>\n         <kb-select ng-model="selLoginterval.value" item-list="logintervals" style="width: 50px"></kb-select>\n         <label translate="ID_124"></label>\n      </div>\n      <div class="bottomframe">\n         <button type="button" translate="ID_317" class="left" ng-click="resetForm()" ng-disabled="form.$pristine || appPageInfo.submitInProgress">Reset</button>\n         <button type="submit" translate="ID_86" class="right" ng-click="submitForm()" ng-disabled="form.$invalid || form.$pristine || appPageInfo.submitInProgress"></button>\n      </div>\n   </fieldset>\n</form>'),a.put("pages/settings/general/date-time/settings-general-date-time.tpl.html",'<form name="form" novalidate>\n   <fieldset>\n      <div class="row">\n         <label translate="ID_11"></label>\n         <quick-datepicker name="datetime" ng-model="date" date-format="dd.MM.yyyy" time-format="HH:mm" on-change="dateChangeCB()" label-format="dd.MM.yyyy | HH:mm" disable-clear-button="true">\n         </quick-datepicker>\n         <button ng-click="setDateToPcTime()" translate="ID_318"></button>\n      </div>\n      <div class="bottomframe">\n         <button type="button" translate="ID_317" class="left" ng-click="resetForm()" ng-disabled="form.$pristine || appPageInfo.submitInProgress">Reset</button>\n         <button type="submit" translate="ID_86" class="right" ng-click="submitForm()" ng-disabled="form.$invalid || form.$pristine || appPageInfo.submitInProgress"></button>\n      </div>\n   </fieldset>\n</form>'),
a.put("pages/settings/general/inverter-name/settings-general-inverter-name.tpl.html",'<form name="form" novalidate>\n   <fieldset>\n      <div class="row">\n         <label translate="ID_9"></label>\n         <input type="text" name="inverterName" style="width: 150px" ng-model="InverterName.value" ng-pattern="/^[a-zA-Z0-9_]*$/" ng-minlength="1" ng-maxlength="15" ng-required="true">\n         <div class="info-error" ng-messages="form.inverterName.$error" ng-if="form.inverterName.$dirty">\n            <div ng-message="required"><span>{{"ID_396"| translate}}</span></div> \n            <div ng-message="minlength"><span>{{"ID_397"| translate}}</span></div> \n            <div ng-message="maxlength"><span>{{"ID_398"| translate}}</span></div> \n            <div ng-message="pattern"><span>{{"ID_399"| translate}} (a-z, A-Z, 0-9, _)</span></div> \n         </div>\n      </div>\n      <div class="bottomframe">\n         <button type="button" translate="ID_317" class="left" ng-click="resetForm()" ng-disabled="form.$pristine || appPageInfo.submitInProgress">Reset</button>\n         <button type="submit" translate="ID_86" class="right" ng-click="submitForm()" ng-disabled="form.$invalid || form.$pristine || appPageInfo.submitInProgress"></button>\n      </div>\n   </fieldset>\n</form>'),a.put("pages/settings/general/login/settings-general-login.tpl.html",'<form name="form" novalidate>\n   <fieldset>\n      <div class="row">\n         \n         <label translate="ID_384"></label>\n         <input type="password" name="OldPwd" ng-model="OldPwd" ng-pattern="/^[a-zA-Z0-9_]*$/" ng-minlength="4" ng-maxlength="15" ng-required="true">\n         <div class="info-error" ng-messages="form.OldPwd.$error" ng-if="form.OldPwd.$dirty">\n            <div ng-message="required"><span>{{"ID_396"| translate}}</span></div> \n            <div ng-message="minlength"><span>{{"ID_397"| translate}}</span></div> \n            <div ng-message="maxlength"><span>{{"ID_398"| translate}}</span></div> \n            <div ng-message="pattern"><span>{{"ID_399"| translate}} (a-z, A-Z, 0-9, _)</span></div> \n         </div>\n      </div>\n\n      <br>\n\n      <div class="row">\n         \n         <label translate="ID_382"></label>\n         <input type="password" name="NewPwd" ng-model="NewPwd" ng-pattern="/^[a-zA-Z0-9_]*$/" ng-minlength="4" ng-maxlength="15" ng-required="true">\n         <div class="info-error" ng-messages="form.NewPwd.$error" ng-if="form.NewPwd.$dirty">\n            <div ng-message="required"><span>{{"ID_396"| translate}}</span></div> \n            <div ng-message="minlength"><span>{{"ID_397"| translate}}</span></div> \n            <div ng-message="maxlength"><span>{{"ID_398"| translate}}</span></div> \n            <div ng-message="pattern"><span>{{"ID_399"| translate}} (a-z, A-Z, 0-9, _)</span></div> \n         </div>\n      </div>\n      <div class="row">\n         \n         <label translate="ID_383"></label>\n         <input type="password" name="NewPwdRepeat" ng-model="NewPwdRepeat" ng-pattern="/^[a-zA-Z0-9_]*$/" ng-minlength="4" ng-maxlength="15" ng-required="true" kb-password-confirm="{{NewPwd}}">\n         <div class="info-error" ng-messages="form.NewPwdRepeat.$error" ng-if="form.NewPwdRepeat.$dirty">\n            <div ng-message="required"><span>{{"ID_396"| translate}}</span></div> \n            <div ng-message="minlength"><span>{{"ID_397"| translate}}</span></div> \n            <div ng-message="maxlength"><span>{{"ID_398"| translate}}</span></div> \n            <div ng-message="pattern"><span>{{"ID_399"| translate}} (a-z, A-Z, 0-9, _)</span></div> \n            <div ng-message="kbPasswordConfirm"><span>{{"ID_401"| translate}}</span></div> \n         </div>\n      </div>\n      <div class="bottomframe">\n         <button type="button" translate="ID_317" class="left" ng-click="resetForm()" ng-disabled="form.$pristine || appPageInfo.submitInProgress">Reset</button>\n         <button type="submit" translate="ID_86" class="right" ng-click="submitForm()" ng-disabled="form.$invalid || form.$pristine || appPageInfo.submitInProgress"></button>\n      </div>\n   </fieldset>\n</form>'),a.put("pages/settings/generator-configuration/settings-generator-configuration.tpl.html",'<form name="form" novalidate>\n   <fieldset>\n      \n      <div class="row" ng-if="appIsMatchingProperties(&quot;PARALLEL_CONNECTION&quot;)">\n         <label translate="ID_270" ng-class="{disabled:!appIsUserAuthorized(&quot;INSTALLER, DEVELOPER, SERVICE&quot;)}"></label>\n         <input type="checkbox" name="parallelConnection" ng-model="parallelConnection.value" ng-disabled="!appIsUserAuthorized(&quot;INSTALLER, DEVELOPER, SERVICE&quot;)">\n      </div>\n      \n      <div class="row" ng-show="appIsMatchingProperties(&quot;SHADING_TRACKER_STRING_1 | SHADING_TRACKER_STRING_2 | SHADING_TRACKER_STRING_3 | PV_MODULE_REGULATION&quot;)">\n         <label translate="ID_422"></label>\n         <kb-select ng-model="generatorManagementSelect" item-list="generatorManagements" ng-change="generatorManagementSelectChange()" style="width: 200px"></kb-select>\n      </div>\n      \n      <fieldset ng-show="generatorManagementSelect == \'shadow_tracking\'">\n         <legend translate="ID_435"></legend>\n         \n         <div class="row" ng-if="appIsMatchingProperties(&quot;SHADING_TRACKER_STRING_1&quot;) && parallelConnection.value === false">\n            <label><span translate="ID_424"></span><span> 1</span></label>\n            <input type="checkbox" name="shadowTrackerString1" ng-model="shadingTracker.string1">\n         </div>\n         \n         <div class="row" ng-if="appIsMatchingProperties(&quot;SHADING_TRACKER_STRING_2&quot;) && parallelConnection.value === false">\n            <label><span translate="ID_424"></span><span> 2</span></label>\n            <input type="checkbox" name="shadowTrackerString2" ng-model="shadingTracker.string2">\n         </div>\n         \n         <div class="row" ng-if="appIsMatchingProperties(&quot;SHADING_TRACKER_STRING_3&quot;)">\n            <label><span translate="ID_424"></span><span> 3</span></label>\n            <input type="checkbox" name="shadowTrackerString3" ng-model="shadingTracker.string3">\n         </div>\n         \n         <div class="row" ng-show="parallelConnection.value == true"><i class="icon-info info-info" translate="ID_448"></i></div>\n      </fieldset>\n      <div class="bottomframe">\n         <button type="button" translate="ID_317" class="left" ng-click="resetForm()" ng-disabled="form.$pristine || appPageInfo.submitInProgress">Reset</button>\n         <button type="submit" translate="ID_86" class="right" ng-click="submitForm()" ng-disabled="form.$invalid || form.$pristine || appPageInfo.submitInProgress"></button>\n      </div>\n   </fieldset>\n</form>'),a.put("pages/settings/overvoltage-protection/settings-overvoltage-protection.tpl.html",'<form name="form" novalidate>\n   <fieldset>\n      <div class="row">\n         <label class="wide" translate="ID_447"></label>\n      </div>\n      \n      <div class="row" ng-if="appIsMatchingProperties(&quot;OVERVOLTAGE_PROT_DC&quot;)">\n         <label translate="ID_446"></label>\n         <input type="checkbox" name="overvoltageProtectionDc" ng-model="overvoltageProtectionDc.value">\n      </div>\n      \n      <div class="row" ng-if="appIsMatchingProperties(&quot;OVERVOLTAGE_PROT_AC&quot;)">\n         <label translate="ID_445"></label>\n         <input type="checkbox" name="overvoltageProtectionAc" ng-model="overvoltageProtectionAc.value">\n      </div>\n      <div class="bottomframe">\n         <button type="button" translate="ID_317" class="left" ng-click="resetForm()" ng-disabled="form.$pristine || appPageInfo.submitInProgress">Reset</button>\n         <button type="submit" translate="ID_86" class="right" ng-click="submitForm()" ng-disabled="form.$invalid || form.$pristine || appPageInfo.submitInProgress"></button>\n      </div>\n   </fieldset>\n</form>'),a.put("pages/settings/portal-configuration/settings-portal-configuration.tpl.html",'<form name="form" novalidate>\n   <fieldset>\n      <div class="row">\n         <label translate="ID_69"></label>\n         <input type="text" name="portalCode" ng-model="portalCode.value" ng-pattern="/^[a-zA-Z0-9_ ]*$/">\n      </div>\n      <div class="row">\n         <label translate="ID_330"></label>\n         <div class="value">{{portalName.value}}</div>\n      </div>\n      <div class="row">\n         \n         <label translate="ID_347"></label>\n         <div ng-if="lastPortalCon.value <= 691200" class="value"><span translate="ID_348"></span> {{lastPortalCon.value/60 | number:0}} <span translate="ID_349"></span></div>\n         <div ng-if="lastPortalCon.value > 691200" class="value">-</div>\n      </div>\n      <div class="row" ng-show="portalName.value.length > 3">\n         <label translate="ID_70"></label>\n         <input type="checkbox" name="portalExport" ng-model="portalExport.value">\n      </div>\n      <div class="bottomframe">\n         <button type="button" translate="ID_317" class="left" ng-click="resetForm()" ng-disabled="form.$pristine || appPageInfo.submitInProgress">Reset</button>\n         <button type="submit" translate="ID_86" class="right" ng-click="submitForm()" ng-disabled="form.$invalid || form.$pristine || appPageInfo.submitInProgress"></button>\n      </div>\n   </fieldset>\n   \n   <div id="BV" ng-show="BV" style="z-index: 5000">\n      <div id="beach"></div>\n      <canvas id="canvas" width="1000" height="600">Your browser is too old. Please consider upgrading your browser.</canvas>\n   </div>\n</form>'),a.put("pages/settings/switching-output/settings-switching-output.tpl.html",'<form name="form" novalidate>\n   <fieldset>\n      <div class="row">\n         \n         <label translate="ID_343"></label>\n         <kb-select ng-model="S0Function.value" item-list="switchingOutputOptions" style="width: 300px"></kb-select>\n      </div>\n\n      \n      <fieldset ng-show="S0Function.value == 2 || S0Function.value == 4">\n         <legend translate="ID_287"></legend>\n         \n         <div class="row">\n            <input type="radio" kb-integer id="optOwnConsumpCtrlFunc1" name="optOwnConsumpCtrlFunc" ng-model="OwnConsumpCtrlFunction.value" ng-value="1">\n            <label for="optOwnConsumpCtrlFunc1" translate="ID_333"></label>\n         </div>\n         <div class="row">\n            \n            <div class="indent"></div><label translate="ID_335"></label>\n            <input type="text" kb-integer="0-1000000" ng-model="Fc1PowerThreshold.value" class="medium" ng-disabled="OwnConsumpCtrlFunction.value != 1">\n            <label>W</label>\n         </div>\n         <div class="row">\n            \n            <div class="indent"></div><label translate="ID_336"></label>\n            <input type="text" kb-integer="0-720" ng-model="Fc1ExceedTime.value" class="medium" ng-disabled="OwnConsumpCtrlFunction.value != 1">\n            <label>min</label>\n         </div>\n         <div class="row">\n            \n            <div class="indent"></div><label translate="ID_337"></label>\n            <input type="text" kb-integer="0-1440" ng-model="Fc1Runtime.value" class="medium" ng-disabled="OwnConsumpCtrlFunction.value != 1">\n            <label>min</label>\n         </div>\n         <div class="row">\n            \n            <div class="indent"></div><label translate="ID_338"></label>\n            <input type="text" kb-integer="0-999" ng-model="Fc1MaxActivationsDay.value" class="medium" ng-disabled="OwnConsumpCtrlFunction.value != 1">\n            <label translate="ID_339"></label>\n         </div>\n         \n         <div class="row">\n            <input type="radio" id="optOwnConsumpCtrlFunc2" name="optOwnConsumpCtrlFunc" ng-model="OwnConsumpCtrlFunction.value" ng-value="2">\n            <label for="optOwnConsumpCtrlFunc2" translate="ID_334"></label>\n         </div>\n         <div class="row">\n            \n            <div class="indent"></div><label translate="ID_340"></label>\n            <input type="text" kb-integer="0-1000000" ng-model="Fc2ThresholdOn.value" class="medium" ng-disabled="OwnConsumpCtrlFunction.value != 2">\n            <label>W</label>\n         </div>\n         <div class="row">\n            \n            <div class="indent"></div><label translate="ID_341"></label>\n            <input type="text" kb-integer="0-1000000" ng-model="Fc2ThresholdOff.value" class="medium" ng-disabled="OwnConsumpCtrlFunction.value != 2">\n            <label>W</label>\n         </div>\n      </fieldset>\n\n      <fieldset ng-show="S0Function.value == 2 || S0Function.value == 4">\n         <legend translate="ID_420"></legend>\n\n         \n         <div class="row">\n            <input type="checkbox" id="cbDelayErrorEnable" ng-model="DelayErrorEnable.value">\n            <label for="cbDelayErrorEnable" class="wide" translate="ID_342"></label>\n         </div>\n         <div class="row">\n            <div class="indent"></div>\n            <input type="text" kb-integer="0-720" ng-model="DelayError.value" class="medium" ng-disabled="!DelayErrorEnable.value">\n            <label>min</label>\n         </div>\n         <div class="row"></div>\n         \n         <div class="row" ng-if="appIsMatchingProperties(&quot;BATTERY&quot;)">\n            <input type="checkbox" id="cbUseBattery" ng-model="UseBattery.value">\n            <label for="cbUseBattery" class="wide" translate="ID_419"></label>\n         </div>\n      </fieldset>\n\n\n      <div class="bottomframe">\n         <button type="button" translate="ID_317" class="left" ng-click="resetForm()" ng-disabled="form.$pristine || appPageInfo.submitInProgress">Reset</button>\n         <button type="submit" translate="ID_86" class="right" ng-click="submitForm()" ng-disabled="form.$invalid || form.$pristine || appPageInfo.submitInProgress"></button>\n      </div>\n   </fieldset>\n</form>'),a.put("pages/statistics/day/statistics-day.tpl.html",'<fieldset>\n   <div class="row">\n      <label translate="ID_77"></label><div class="value">{{Yield.value | kbDynUnit:\'Wh\':1000:1}}</div>\n   </div>\n   <div class="row" ng-if="appIsMatchingProperties(&quot;EXT_CURRENT_SENS&quot;)">\n      <label translate="ID_313"></label><div class="value">{{HomeConsumption.value | kbDynUnit:\'Wh\':1000:1}}</div>\n   </div>\n   <div class="row" ng-if="appIsMatchingProperties(&quot;EXT_CURRENT_SENS&quot;)">\n      <label translate="ID_273"></label><div class="value">{{OwnConsumption.value | kbDynUnit:\'Wh\':1000:1}}</div>\n   </div>\n   <div class="row" ng-if="appIsMatchingProperties(&quot;EXT_CURRENT_SENS&quot;)">\n      <label translate="ID_393"></label><div class="value">{{OwnConsRate.value | kbDynUnit:\'%\':101:1}}</div>\n   </div>\n   <div class="row" ng-if="appIsMatchingProperties(&quot;EXT_CURRENT_SENS&quot;)">\n      <label translate="ID_402"></label><div class="value">{{AutonomyDegree.value | kbDynUnit:\'%\':101:1}}</div>\n   </div>\n</fieldset>'),a.put("pages/statistics/log-data/statistics-log-data.tpl.html",""),a.put("pages/statistics/total/statistics-total.tpl.html",'<fieldset>\n   <div class="row">\n      <label translate="ID_77"></label><div class="value">{{Yield.value | kbDynUnit:\'Wh\':1000000:1:1000}}</div>\n   </div>\n   <div class="row" ng-if="appIsMatchingProperties(&quot;EXT_CURRENT_SENS&quot;)">\n      <label translate="ID_313"></label><div class="value">{{HomeConsumption.value | kbDynUnit:\'Wh\':1000:1:1000}}</div>\n   </div>\n   <div class="row" ng-if="appIsMatchingProperties(&quot;EXT_CURRENT_SENS&quot;)">\n      <label translate="ID_273"></label><div class="value">{{OwnConsumption.value | kbDynUnit:\'Wh\':1000:1:1000}}</div>\n   </div>\n   <div class="row" ng-if="appIsMatchingProperties(&quot;EXT_CURRENT_SENS&quot;)">\n      <label translate="ID_393"></label><div class="value">{{OwnConsRate.value | kbDynUnit:\'%\':101:1}}</div>\n   </div>\n   <div class="row" ng-if="appIsMatchingProperties(&quot;EXT_CURRENT_SENS&quot;)">\n      <label translate="ID_402"></label><div class="value">{{AutonomyDegree.value | kbDynUnit:\'%\':101:1}}</div>\n   </div>\n   <div class="row">\n      <label translate="ID_78"></label><div class="value">{{OperatingTime.value | kbDynUnit:\'h\':100000}}</div>\n   </div>\n</fieldset>')}]),angular.module("templates-common",[])}(window,window.angular);
//# sourceMappingURL=../kbApp-1.1.3.map