//third_party/javascript/angular/v1_6/angular.min.js
/*
 AngularJS v1.6.4-local+sha.617b36117
 (c) 2010-2018 Google, Inc. http://angularjs.org
 License: MIT
*/
'use strict';(function(D){'use strict';function te(a){if(G(a))v(a.objectMaxDepth)&&(Uc.objectMaxDepth=ac(a.objectMaxDepth)?a.objectMaxDepth:NaN);else return Uc}function ac(a){return ca(a)&&0<a}function K(a){return function(){var b=arguments[0];var d="["+(a?a+":":"")+b+"] http://errors.angularjs.org/1.6.4-local+sha.617b36117/"+(a?a+"/":"")+b;for(b=1;b<arguments.length;b++){d=d+(1==b?"?":"&")+"p"+(b-1)+"=";var c=encodeURIComponent;var e=arguments[b];e="function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):
"undefined"==typeof e?"undefined":"string"!=typeof e?JSON.stringify(e):e;d+=c(e)}return Error(d)}}function pa(a){if(null==a||cb(a))return!1;if(J(a)||I(a)||x&&a instanceof x)return!0;var b="length"in Object(a)&&a.length;return ca(b)&&(0<=b&&(b-1 in a||a instanceof Array)||"function"===typeof a.item)}function p(a,b,d){var c;if(a)if(A(a))for(g in a)"prototype"!==g&&"length"!==g&&"name"!==g&&a.hasOwnProperty(g)&&b.call(d,a[g],g,a);else if(J(a)||pa(a)){var e="object"!==typeof a;var g=0;for(c=a.length;g<
c;g++)(e||g in a)&&b.call(d,a[g],g,a)}else if(a.forEach&&a.forEach!==p)a.forEach(b,d,a);else if(Vc(a))for(g in a)b.call(d,a[g],g,a);else if("function"===typeof a.hasOwnProperty)for(g in a)a.hasOwnProperty(g)&&b.call(d,a[g],g,a);else for(g in a)ua.call(a,g)&&b.call(d,a[g],g,a);return a}function Wc(a,b,d){for(var c=Object.keys(a).sort(),e=0;e<c.length;e++)b.call(d,a[c[e]],c[e]);return c}function bc(a){return function(b,d){a(d,b)}}function ue(){return++wb}function cc(a,b,d){for(var c=a.$$hashKey,e=0,
g=b.length;e<g;++e){var f=b[e];if(G(f)||A(f))for(var h=Object.keys(f),k=0,l=h.length;k<l;k++){var m=h[k],n=f[m];d&&G(n)?ia(n)?a[m]=new Date(n.valueOf()):xb(n)?a[m]=new RegExp(n):n.nodeName?a[m]=n.cloneNode(!0):dc(n)?a[m]=n.clone():(G(a[m])||(a[m]=J(n)?[]:{}),cc(a[m],[n],!0)):a[m]=n}}c?a.$$hashKey=c:delete a.$$hashKey;return a}function P(a){return cc(a,ya.call(arguments,1),!1)}function ve(a){return cc(a,ya.call(arguments,1),!0)}function ec(a,b){return P(Object.create(a),b)}function H(){}function yb(a){return a}
function la(a){return function(){return a}}function fc(a){return A(a.toString)&&a.toString!==ma}function z(a){return"undefined"===typeof a}function v(a){return"undefined"!==typeof a}function G(a){return null!==a&&"object"===typeof a}function Vc(a){return null!==a&&"object"===typeof a&&!Xc(a)}function I(a){return"string"===typeof a}function ca(a){return"number"===typeof a}function ia(a){return"[object Date]"===ma.call(a)}function gc(a){switch(ma.call(a)){case "[object Error]":return!0;case "[object Exception]":return!0;
case "[object DOMException]":return!0;default:return a instanceof Error}}function A(a){return"function"===typeof a}function xb(a){return"[object RegExp]"===ma.call(a)}function cb(a){return a&&a.window===a}function db(a){return a&&a.$evalAsync&&a.$watch}function Ra(a){return"boolean"===typeof a}function we(a){return a&&ca(a.length)&&xe.test(ma.call(a))}function dc(a){return!(!a||!(a.nodeName||a.prop&&a.attr&&a.find))}function ye(a){var b={};a=a.split(",");var d;for(d=0;d<a.length;d++)b[a[d]]=!0;return b}
function za(a){return N(a.nodeName||a[0]&&a[0].nodeName)}function eb(a,b){b=a.indexOf(b);0<=b&&a.splice(b,1);return b}function Ga(a,b,d){function c(a,b,c){c--;if(0>c)return"...";var d=b.$$hashKey;if(J(a)){var f=0;for(var g=a.length;f<g;f++)b.push(e(a[f],c))}else if(Vc(a))for(f in a)b[f]=e(a[f],c);else if(a&&"function"===typeof a.hasOwnProperty)for(f in a)a.hasOwnProperty(f)&&(b[f]=e(a[f],c));else for(f in a)ua.call(a,f)&&(b[f]=e(a[f],c));d?b.$$hashKey=d:delete b.$$hashKey;return b}function e(a,b){if(!G(a))return a;
var d=f.indexOf(a);if(-1!==d)return h[d];if(cb(a)||db(a))throw qa("cpws");d=!1;var e=g(a);void 0===e&&(e=J(a)?[]:Object.create(Xc(a)),d=!0);f.push(a);h.push(e);return d?c(a,e,b):e}function g(a){switch(ma.call(a)){case "[object Int8Array]":case "[object Int16Array]":case "[object Int32Array]":case "[object Float32Array]":case "[object Float64Array]":case "[object Uint8Array]":case "[object Uint8ClampedArray]":case "[object Uint16Array]":case "[object Uint32Array]":return new a.constructor(e(a.buffer),
a.byteOffset,a.length);case "[object ArrayBuffer]":if(!a.slice){var b=new ArrayBuffer(a.byteLength);(new Uint8Array(b)).set(new Uint8Array(a));return b}return a.slice(0);case "[object Boolean]":case "[object Number]":case "[object String]":case "[object Date]":return new a.constructor(a.valueOf());case "[object RegExp]":return b=new RegExp(a.source,a.toString().match(/[^/]*$/)[0]),b.lastIndex=a.lastIndex,b;case "[object Blob]":return new a.constructor([a],{type:a.type})}if(A(a.cloneNode))return a.cloneNode(!0)}
var f=[],h=[];d=ac(d)?d:NaN;if(b){if(we(b)||"[object ArrayBuffer]"===ma.call(b))throw qa("cpta");if(a===b)throw qa("cpi");J(b)?b.length=0:p(b,function(a,c){"$$hashKey"!==c&&delete b[c]});f.push(a);h.push(b);return c(a,b,d)}return e(a,d)}function hc(a,b){return a===b||a!==a&&b!==b}function va(a,b){if(a===b)return!0;if(null===a||null===b)return!1;if(a!==a&&b!==b)return!0;var d=typeof a,c;if(d===typeof b&&"object"===d)if(J(a)){if(!J(b))return!1;if((d=a.length)===b.length){for(c=0;c<d;c++)if(!va(a[c],
b[c]))return!1;return!0}}else{if(ia(a))return ia(b)?hc(a.getTime(),b.getTime()):!1;if(xb(a))return xb(b)?a.toString()===b.toString():!1;if(db(a)||db(b)||cb(a)||cb(b)||J(b)||ia(b)||xb(b))return!1;d=V();for(c in a)if("$"!==c.charAt(0)&&!A(a[c])){if(!va(a[c],b[c]))return!1;d[c]=!0}for(c in b)if(!(c in d)&&"$"!==c.charAt(0)&&v(b[c])&&!A(b[c]))return!1;return!0}return!1}function fb(a,b,d){return a.concat(ya.call(b,d))}function Xa(a,b){var d=2<arguments.length?ya.call(arguments,2):[];return!A(b)||b instanceof
RegExp?b:d.length?function(){return arguments.length?b.apply(a,fb(d,arguments,0)):b.apply(a,d)}:function(){return arguments.length?b.apply(a,arguments):b.call(a)}}function Yc(a,b){var d=b;"string"===typeof a&&"$"===a.charAt(0)&&"$"===a.charAt(1)?d=void 0:cb(b)?d="$WINDOW":b&&D.document===b?d="$DOCUMENT":db(b)&&(d="$SCOPE");return d}function gb(a,b){if(!z(a))return ca(b)||(b=b?2:null),JSON.stringify(a,Yc,b)}function Zc(a){return I(a)?JSON.parse(a):a}function ic(a,b){a=a.replace(ze,"");a=Date.parse("Jan 01, 1970 00:00:00 "+
a)/6E4;return aa(a)?b:a}function $c(a,b){a=new Date(a.getTime());a.setMinutes(a.getMinutes()+b);return a}function jc(a,b,d){d=d?-1:1;var c=a.getTimezoneOffset();b=ic(b,c);return $c(a,d*(b-c))}function Aa(a){a=x(a).clone().empty();var b=x("<div></div>").append(a).html();try{return a[0].nodeType===Sa?N(b):b.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(a,b){return"<"+N(b)})}catch(d){return N(b)}}function ad(a){try{return decodeURIComponent(a)}catch(b){}}function kc(a){var b={};p((a||"").split("&"),
function(a){if(a){var c=a=a.replace(/\+/g,"%20");var d=a.indexOf("=");if(-1!==d){c=a.substring(0,d);var g=a.substring(d+1)}c=ad(c);v(c)&&(g=v(g)?ad(g):!0,ua.call(b,c)?J(b[c])?b[c].push(g):b[c]=[b[c],g]:b[c]=g)}});return b}function lc(a){var b=[];p(a,function(a,c){J(a)?p(a,function(a){b.push(na(c,!0)+(!0===a?"":"="+na(a,!0)))}):b.push(na(c,!0)+(!0===a?"":"="+na(a,!0)))});return b.length?b.join("&"):""}function hb(a){return na(a,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function na(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 Ae(a,b){var d,c=Ha.length;for(d=0;d<c;++d){var e=Ha[d]+b;if(I(e=a.getAttribute(e)))return e}return null}function Be(a,b){var d,c,e={};p(Ha,function(b){b+="app";!d&&a.hasAttribute&&a.hasAttribute(b)&&(d=a,c=a.getAttribute(b))});p(Ha,function(b){b+="app";var e;!d&&(e=a.querySelector("["+b.replace(":","\\:")+"]"))&&(d=e,c=e.getAttribute(b))});
d&&(Ce?(e.strictDi=null!==Ae(d,"strict-di"),b(d,c?[c]:[],e)):D.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match."))}function bd(a,b,d){G(d)||(d={});d=P({strictDi:!1},d);var c=function(){a=x(a);if(a.injector()){var c=a[0]===D.document?"document":Aa(a);throw qa("btstrpd",c.replace(/</,"&lt;").replace(/>/,"&gt;"));}b=b||[];b.unshift(["$provide",function(b){b.value("$rootElement",a)}]);d.debugInfoEnabled&&b.push(["$compileProvider",
function(a){a.debugInfoEnabled(!0)}]);b.unshift("ng");c=ib(b,d.strictDi);c.invoke(["$rootScope","$rootElement","$compile","$injector",function(a,b,c,d){a.$apply(function(){b.data("$injector",d);c(b)(a)})}]);return c},e=/^NG_ENABLE_DEBUG_INFO!/,g=/^NG_DEFER_BOOTSTRAP!/;D&&e.test(D.name)&&(d.debugInfoEnabled=!0,D.name=D.name.replace(e,""));if(D&&!g.test(D.name))return c();D.name=D.name.replace(g,"");ja.resumeBootstrap=function(a){p(a,function(a){b.push(a)});return c()};A(ja.resumeDeferredBootstrap)&&
ja.resumeDeferredBootstrap()}function De(){D.name="NG_ENABLE_DEBUG_INFO!"+D.name;D.location.reload()}function Ee(a){a=ja.element(a).injector();if(!a)throw qa("test");return a.get("$$testability")}function cd(a,b){b=b||"_";return a.replace(Fe,function(a,c){return(c?b:"")+a.toLowerCase()})}function jb(a,b,d){if(!a)throw qa("areq",b||"?",d||"required");return a}function zb(a,b,d){d&&J(a)&&(a=a[a.length-1]);jb(A(a),b,"not a function, got "+(a&&"object"===typeof a?a.constructor.name||"Object":typeof a));
return a}function Ia(a,b){if("hasOwnProperty"===a)throw qa("badname",b);}function dd(a,b,d){if(!b)return a;b=b.split(".");for(var c,e=a,g=b.length,f=0;f<g;f++)c=b[f],a&&(a=(e=a)[c]);return!d&&A(a)?Xa(e,a):a}function Ab(a){for(var b=a[0],d=a[a.length-1],c,e=1;b!==d&&(b=b.nextSibling);e++)if(c||a[e]!==b)c||(c=x(ya.call(a,0,e))),c.push(b);return c||a}function V(){return Object.create(null)}function mc(a){if(null==a)return"";switch(typeof a){case "string":break;case "number":a=""+a;break;default:a=!fc(a)||
J(a)||ia(a)?gb(a):a.toString()}return a}function Ge(a){function b(a,b,c){return a[b]||(a[b]=c())}var d=K("$injector"),c=K("ng");a=b(a,"angular",Object);a.$$minErr=a.$$minErr||K;return b(a,"module",function(){var a={};return function(e,f,h){var g={};if("hasOwnProperty"===e)throw c("badname","module");f&&a.hasOwnProperty(e)&&(a[e]=null);return b(a,e,function(){function a(a,b,c,d){d||(d=k);return function(){d[c||"push"]([a,b,arguments]);return u}}function b(a,b,c){c||(c=k);return function(d,f){f&&A(f)&&
(f.$$moduleName=e);c.push([a,b,arguments]);return u}}if(!f)throw d("nomod",e);var k=[],t=[],E=[],B=a("$injector","invoke","push",t),u={_invokeQueue:k,_configBlocks:t,_runBlocks:E,info:function(a){if(v(a)){if(!G(a))throw c("aobj","value");g=a;return this}return g},requires:f,name:e,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",t),animation:b("$animateProvider",
"register"),filter:b("$filterProvider","register"),controller:b("$controllerProvider","register"),directive:b("$compileProvider","directive"),component:b("$compileProvider","component"),config:B,run:function(a){E.push(a);return this}};h&&B(h);return u})}})}function ra(a,b){if(J(a)){b=b||[];for(var d=0,c=a.length;d<c;d++)b[d]=a[d]}else if(G(a))for(d in b=b||{},a)if("$"!==d.charAt(0)||"$"!==d.charAt(1))b[d]=a[d];return b||a}function He(a,b){var d=[];ac(b)&&(a=ja.copy(a,null,b));return JSON.stringify(a,
function(a,b){b=Yc(a,b);if(G(b)){if(0<=d.indexOf(b))return"...";d.push(b)}return b})}function Ba(a,b){return b.toUpperCase()}function nc(a){a=a.nodeType;return 1===a||!a||9===a}function ed(a,b){var d=b.createDocumentFragment(),c=[];if(oc.test(a)){b=d.appendChild(b.createElement("div"));var e=(Ie.exec(a)||["",""])[1].toLowerCase();e=oa[e]||oa._default;b.innerHTML=e[1]+a.replace(Je,"<$1></$2>")+e[2];for(a=e[0];a--;)b=b.lastChild;c=fb(c,b.childNodes);b=d.firstChild;b.textContent=""}else c.push(b.createTextNode(a));
d.textContent="";d.innerHTML="";p(c,function(a){d.appendChild(a)});return d}function Y(a){if(a instanceof Y)return a;if(I(a)){a=T(a);var b=!0}if(!(this instanceof Y)){if(b&&"<"!==a.charAt(0))throw pc("nosel");return new Y(a)}if(b){b=D.document;var d;a=(d=Ke.exec(a))?[b.createElement(d[1])]:(d=ed(a,b))?d.childNodes:[];qc(this,a)}else A(a)?fd(a):qc(this,a)}function rc(a){return a.cloneNode(!0)}function Bb(a,b){!b&&nc(a)&&x.cleanData([a]);a.querySelectorAll&&x.cleanData(a.querySelectorAll("*"))}function gd(a,
b,d,c){if(v(c))throw pc("offargs");var e=(c=Cb(a))&&c.events,g=c&&c.handle;if(g)if(b){var f=function(b){var c=e[b];v(d)&&eb(c||[],d);v(d)&&c&&0<c.length||(a.removeEventListener(b,g),delete e[b])};p(b.split(" "),function(a){f(a);Db[a]&&f(Db[a])})}else for(b in e)"$destroy"!==b&&a.removeEventListener(b,g),delete e[b]}function sc(a,b){var d=a.ng339,c=d&&lb[d];c&&(b?delete c.data[b]:(c.handle&&(c.events.$destroy&&c.handle({},"$destroy"),gd(a)),delete lb[d],a.ng339=void 0))}function Cb(a,b){var d=a.ng339;
d=d&&lb[d];b&&!d&&(a.ng339=d=++Le,d=lb[d]={events:{},data:{},handle:void 0});return d}function tc(a,b,d){if(nc(a)){var c,e=v(d),g=!e&&b&&!G(b),f=!b;a=(a=Cb(a,!g))&&a.data;if(e)a[b.replace(Eb,Ba)]=d;else{if(f)return a;if(g)return a&&a[b.replace(Eb,Ba)];for(c in b)a[c.replace(Eb,Ba)]=b[c]}}}function Fb(a,b){return a.getAttribute?-1<(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+b+" "):!1}function Gb(a,b){if(b&&a.setAttribute){var d=(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g,
" "),c=d;p(b.split(" "),function(a){a=T(a);c=c.replace(" "+a+" "," ")});c!==d&&a.setAttribute("class",T(c))}}function Hb(a,b){if(b&&a.setAttribute){var d=(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),c=d;p(b.split(" "),function(a){a=T(a);-1===c.indexOf(" "+a+" ")&&(c+=a+" ")});c!==d&&a.setAttribute("class",T(c))}}function qc(a,b){if(b)if(b.nodeType)a[a.length++]=b;else{var d=b.length;if("number"===typeof d&&b.window!==b){if(d)for(var c=0;c<d;c++)a[a.length++]=b[c]}else a[a.length++]=
b}}function hd(a,b){return Ib(a,"$"+(b||"ngController")+"Controller")}function Ib(a,b,d){9===a.nodeType&&(a=a.documentElement);for(b=J(b)?b:[b];a;){for(var c=0,e=b.length;c<e;c++)if(v(d=x.data(a,b[c])))return d;a=a.parentNode||11===a.nodeType&&a.host}}function id(a){for(Bb(a,!0);a.firstChild;)a.removeChild(a.firstChild)}function Jb(a,b){b||Bb(a);(b=a.parentNode)&&b.removeChild(a)}function Me(a,b){b=b||D;if("complete"===b.document.readyState)b.setTimeout(a);else x(b).on("load",a)}function fd(a){function b(){D.document.removeEventListener("DOMContentLoaded",
b);D.removeEventListener("load",b);a()}"complete"===D.document.readyState?D.setTimeout(a):(D.document.addEventListener("DOMContentLoaded",b),D.addEventListener("load",b))}function jd(a,b){return(b=Kb[b.toLowerCase()])&&kd[za(a)]&&b}function Ne(a,b){var d=function(c,d){c.isDefaultPrevented=function(){return c.defaultPrevented};var e=(d=b[d||c.type])?d.length:0;if(e){if(z(c.immediatePropagationStopped)){var f=c.stopImmediatePropagation;c.stopImmediatePropagation=function(){c.immediatePropagationStopped=
!0;c.stopPropagation&&c.stopPropagation();f&&f.call(c)}}c.isImmediatePropagationStopped=function(){return!0===c.immediatePropagationStopped};var h=d.specialHandlerWrapper||Oe;1<e&&(d=ra(d));for(var k=0;k<e;k++)c.isImmediatePropagationStopped()||h(a,c,d[k])}};d.elem=a;return d}function Oe(a,b,d){d.call(a,b)}function Pe(a,b,d){var c=b.relatedTarget;c&&(c===a||Qe.call(a,c))||d.call(a,b)}function Re(){this.$get=function(){return P(Y,{hasClass:function(a,b){a.attr&&(a=a[0]);return Fb(a,b)},addClass:function(a,
b){a.attr&&(a=a[0]);return Hb(a,b)},removeClass:function(a,b){a.attr&&(a=a[0]);return Gb(a,b)}})}}function Ja(a,b){var d=a&&a.$$hashKey;if(d)return"function"===typeof d&&(d=a.$$hashKey()),d;d=typeof a;return d="function"===d||"object"===d&&null!==a?a.$$hashKey=d+":"+(b||ue)():d+":"+a}function ld(){this._keys=[];this._values=[];this._lastKey=NaN;this._lastIndex=-1}function md(a){a=Function.prototype.toString.call(a).replace(Se,"");return a.match(Te)||a.match(Ue)}function Ve(a){return(a=md(a))?"function("+
(a[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function ib(a,b){function d(a){return function(b,c){if(G(b))p(b,bc(a));else return a(b,c)}}function c(a,b){Ia(a,"service");if(A(b)||J(b))b=t.instantiate(b);if(!b.$get)throw Ca("pget",a);return n[a+"Provider"]=b}function e(a,b){return function(){var c=u.invoke(b,this);if(z(c))throw Ca("undef",a);return c}}function g(a,b,d){return c(a,{$get:!1!==d?e(a,b):b})}function f(a){jb(z(a)||J(a),"modulesToLoad","not an array");var b=[],c;p(a,function(a){function d(a){var b;
var c=0;for(b=a.length;c<b;c++){var d=a[c],e=t.get(d[0]);e[d[1]].apply(e,d[2])}}if(!m.get(a)){m.set(a,!0);try{I(a)?(c=uc(a),u.modules[a]=c,b=b.concat(f(c.requires)).concat(c._runBlocks),d(c._invokeQueue),d(c._configBlocks)):A(a)?b.push(t.invoke(a)):J(a)?b.push(t.invoke(a)):zb(a,"module")}catch(C){throw J(a)&&(a=a[a.length-1]),C.message&&C.stack&&-1===C.stack.indexOf(C.message)&&(C=C.message+"\n"+C.stack),Ca("modulerr",a,C.stack||C.message||C);}}});return b}function h(a,c){function d(b,d){if(a.hasOwnProperty(b)){if(a[b]===
k)throw Ca("cdep",b+" <- "+l.join(" <- "));return a[b]}try{return l.unshift(b),a[b]=k,a[b]=c(b,d),a[b]}catch(w){throw a[b]===k&&delete a[b],w;}finally{l.shift()}}function e(a,c,e){var f=[];a=ib.$$annotate(a,b,e);for(var g=0,h=a.length;g<h;g++){var k=a[g];if("string"!==typeof k)throw Ca("itkn",k);f.push(c&&c.hasOwnProperty(k)?c[k]:d(k,e))}return f}return{invoke:function(a,b,c,d){"string"===typeof c&&(d=c,c=null);c=e(a,c,d);J(a)&&(a=a[a.length-1]);d=a;if(La||"function"!==typeof d)d=!1;else{var f=d.$$ngIsClass;
Ra(f)||(f=d.$$ngIsClass=/^(?:class\b|constructor\()/.test(Function.prototype.toString.call(d)));d=f}return d?(c.unshift(null),new (Function.prototype.bind.apply(a,c))):a.apply(b,c)},instantiate:function(a,b,c){var d=J(a)?a[a.length-1]:a;a=e(a,b,c);a.unshift(null);return new (Function.prototype.bind.apply(d,a))},get:d,annotate:ib.$$annotate,has:function(b){return n.hasOwnProperty(b+"Provider")||a.hasOwnProperty(b)}}}b=!0===b;var k={},l=[],m=new Lb,n={$provide:{provider:d(c),factory:d(g),service:d(function(a,
b){return g(a,["$injector",function(a){return a.instantiate(b)}])}),value:d(function(a,b){return g(a,la(b),!1)}),constant:d(function(a,b){Ia(a,"constant");n[a]=b;E[a]=b}),decorator:function(a,b){var c=t.get(a+"Provider"),d=c.$get;c.$get=function(){var a=u.invoke(d,c);return u.invoke(b,null,{$delegate:a})}}}},t=n.$injector=h(n,function(a,b){ja.isString(b)&&l.push(b);throw Ca("unpr",l.join(" <- "));}),E={},B=h(E,function(a,b){b=t.get(a+"Provider",b);return u.invoke(b.$get,b,void 0,a)}),u=B;n.$injectorProvider=
{$get:la(B)};u.modules=t.modules=V();a=f(a);u=B.get("$injector");u.strictDi=b;p(a,function(a){a&&u.invoke(a)});u.loadNewModules=function(a){p(f(a),function(a){a&&u.invoke(a)})};return u}function We(){var a=!0;this.disableAutoScrolling=function(){a=!1};this.$get=["$window","$location","$rootScope",function(b,d,c){function e(a){var b=null;Array.prototype.some.call(a,function(a){if("a"===za(a))return b=a,!0});return b}function g(a){if(a){a.scrollIntoView();var c=f.yOffset;A(c)?c=c():dc(c)?(c=c[0],c=
"fixed"!==b.getComputedStyle(c).position?0:c.getBoundingClientRect().bottom):ca(c)||(c=0);c&&(a=a.getBoundingClientRect().top,b.scrollBy(0,a-c))}else b.scrollTo(0,0)}function f(a){a=I(a)?a:ca(a)?a.toString():d.hash();var b;a?(b=h.getElementById(a))?g(b):(b=e(h.getElementsByName(a)))?g(b):"top"===a&&g(null):g(null)}var h=b.document;a&&c.$watch(function(){return d.hash()},function(a,b){a===b&&""===a||Me(function(){c.$evalAsync(f)})});return f}]}function mb(a,b){if(!a&&!b)return"";if(!a)return b;if(!b)return a;
J(a)&&(a=a.join(" "));J(b)&&(b=b.join(" "));return a+" "+b}function Xe(a){I(a)&&(a=a.split(" "));var b=V();p(a,function(a){a.length&&(b[a]=!0)});return b}function sa(a){return G(a)?a:{}}function Ye(a,b,d,c){function e(a){try{a.apply(null,ya.call(arguments,1))}finally{if(B--,0===B)for(;u.length;)try{u.pop()()}catch(L){d.error(L)}}}function g(){y=null;h()}function f(){F=C();F=z(F)?null:F;va(F,U)&&(F=U);r=U=F}function h(){var a=r;f();if(O!==k.url()||a!==F)O=k.url(),r=F,p(w,function(a){a(k.url(),F)})}
var k=this,l=a.location,m=a.history,n=a.setTimeout,t=a.clearTimeout,E={};k.isMock=!1;var B=0,u=[];k.$$completeOutstandingRequest=e;k.$$incOutstandingRequestCount=function(){B++};k.notifyWhenNoOutstandingRequests=function(a){0===B?a():u.push(a)};var F,r,O=l.href,kb=b.find("base"),y=null,C=c.history?function(){try{return m.state}catch(Ka){}}:H;f();k.url=function(b,d,e){z(e)&&(e=null);l!==a.location&&(l=a.location);m!==a.history&&(m=a.history);if(b){var g=r===e;if(O===b&&(!c.history||g))return k;var h=
O&&ta(O)===ta(b);O=b;r=e;!c.history||h&&g?(h||(y=b),d?l.replace(b):h?(d=l,e=b.indexOf("#"),e=-1===e?"":b.substr(e),d.hash=e):l.href=b,l.href!==b&&(y=b)):(m[d?"replaceState":"pushState"](e,"",b),f());y&&(y=b);return k}return y||l.href.replace(/%27/g,"'")};k.state=function(){return F};var w=[],W=!1,U=null;k.onUrlChange=function(b){if(!W){if(c.history)x(a).on("popstate",g);x(a).on("hashchange",g);W=!0}w.push(b);return b};k.$$applicationDestroyed=function(){x(a).off("hashchange popstate",g)};k.$$checkUrlChange=
h;k.baseHref=function(){var a=kb.attr("href");return a?a.replace(/^(https?:)?\/\/[^/]*/,""):""};k.defer=function(a,b){B++;var c=n(function(){delete E[c];e(a)},b||0);E[c]=!0;return c};k.defer.cancel=function(a){return E[a]?(delete E[a],t(a),e(H),!0):!1}}function Ze(){this.$get=["$window","$log","$sniffer","$document",function(a,b,d,c){return new Ye(a,c,b,d)}]}function $e(){this.$get=function(){function a(a,c){function d(a){a!==n&&(t?t===a&&(t=a.n):t=a,g(a.n,a.p),g(a,n),n=a,n.n=null)}function g(a,b){a!==
b&&(a&&(a.p=b),b&&(b.n=a))}if(a in b)throw K("$cacheFactory")("iid",a);var f=0,h=P({},c,{id:a}),k=V(),l=c&&c.capacity||Number.MAX_VALUE,m=V(),n=null,t=null;return b[a]={put:function(a,b){if(!z(b)){if(l<Number.MAX_VALUE){var c=m[a]||(m[a]={key:a});d(c)}a in k||f++;k[a]=b;f>l&&this.remove(t.key);return b}},get:function(a){if(l<Number.MAX_VALUE){var b=m[a];if(!b)return;d(b)}return k[a]},remove:function(a){if(l<Number.MAX_VALUE){var b=m[a];if(!b)return;b===n&&(n=b.p);b===t&&(t=b.n);g(b.n,b.p);delete m[a]}a in
k&&(delete k[a],f--)},removeAll:function(){k=V();f=0;m=V();n=t=null},destroy:function(){m=h=k=null;delete b[a]},info:function(){return P({},h,{size:f})}}}var b={};a.info=function(){var a={};p(b,function(b,d){a[d]=b.info()});return a};a.get=function(a){return b[a]};return a}}function af(){this.$get=["$cacheFactory",function(a){return a("templates")}]}function nd(a,b){function d(a,b,c){var d=/^([@&<]|=(\*?))(\??)\s*([\w$]*)$/,e=V();p(a,function(a,f){a=a.trim();if(a in n)e[f]=n[a];else{var g=a.match(d);
if(!g)throw ea("iscp",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};g[4]&&(n[a]=e[f])}});return e}function c(a){var b=a.charAt(0);if(!b||b!==N(b))throw ea("baddir",a);if(a!==a.trim())throw ea("baddir",a);}function e(a){var b=a.require||a.controller&&a.name;!J(b)&&G(b)&&p(b,function(a,c){var d=a.match(l);a.substring(d[0].length)||(b[c]=d[0]+c)});return b}var g={},f=/^\s*directive:\s*([\w-]+)\s+(.*)$/,
h=/(([\w-]+)(?::([^;]+))?;?)/,k=ye("ngSrc,ngSrcset,src,srcset"),l=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,m=/^(on[a-z]+|formaction)$/,n=V();this.directive=function C(b,d){jb(b,"name");Ia(b,"directive");I(b)?(c(b),jb(d,"directiveFactory"),g.hasOwnProperty(b)||(g[b]=[],a.factory(b+"Directive",["$injector","$exceptionHandler",function(a,c){var d=[];p(g[b],function(f,g){try{var h=a.invoke(f);A(h)?h={compile:la(h)}:!h.compile&&h.link&&(h.compile=la(h.link));h.priority=h.priority||0;h.index=g;h.name=h.name||b;h.require=
e(h);g=h;var k=h.restrict;if(k&&(!I(k)||!/[EACM]/.test(k)))throw ea("badrestrict",k,b);g.restrict=k||"EA";h.$$moduleName=f.$$moduleName;d.push(h)}catch(ka){c(ka)}});return d}])),g[b].push(d)):p(b,bc(C));return this};this.component=function w(a,b){function c(a){function c(b){return A(b)||J(b)?function(c,d){return a.invoke(b,this,{$element:c,$attrs:d})}:b}var e=b.template||b.templateUrl?b.template:"",f={controller:d,controllerAs:bf(b.controller)||b.controllerAs||"$ctrl",template:c(e),templateUrl:c(b.templateUrl),
transclude:b.transclude,scope:{},bindToController:b.bindings||{},restrict:"E",require:b.require};p(b,function(a,b){"$"===b.charAt(0)&&(f[b]=a)});return f}if(!I(a))return p(a,bc(Xa(this,w))),this;var d=b.controller||function(){};p(b,function(a,b){"$"===b.charAt(0)&&(c[b]=a,A(d)&&(d[b]=a))});c.$inject=["$injector"];return this.directive(a,c)};this.aHrefSanitizationWhitelist=function(a){return v(a)?(b.aHrefSanitizationWhitelist(a),this):b.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=
function(a){return v(a)?(b.imgSrcSanitizationWhitelist(a),this):b.imgSrcSanitizationWhitelist()};var t=!0;this.debugInfoEnabled=function(a){return v(a)?(t=a,this):t};var E=!1;this.preAssignBindingsEnabled=function(a){return v(a)?(E=a,this):E};var B=!1;this.strictComponentBindingsEnabled=function(a){return v(a)?(B=a,this):B};var u=10;this.onChangesTtl=function(a){return arguments.length?(u=a,this):u};var F=!0;this.commentDirectivesEnabled=function(a){return arguments.length?(F=a,this):F};var r=!0;
this.cssClassDirectivesEnabled=function(a){return arguments.length?(r=a,this):r};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(a,b,c,e,n,Ka,L,Q,R,q){function w(){try{if(!--Ha)throw Wa=void 0,ea("infchng",u);L.$apply(function(){for(var a=0,b=Wa.length;a<b;++a)try{Wa[a]()}catch(wa){c(wa)}Wa=void 0})}finally{Ha++}}function C(a,b){if(b){var c=Object.keys(b),d;var e=0;for(d=c.length;e<d;e++){var f=
c[e];this[f]=b[f]}}else this.$attr={};this.$$element=a}function y(a,b,c){Ea.innerHTML="<span "+b+">";b=Ea.firstChild.attributes;var d=b[0];b.removeNamedItem(d.name);d.value=c;a.attributes.setNamedItem(d)}function W(a,b){try{a.addClass(b)}catch(wa){}}function U(a,b,c,d,e){a instanceof x||(a=x(a));var f=ka(a,b,a,c,d,e);U.$$addScopeClass(a);var g=null;return function(b,c,d){if(!a)throw ea("multilink");jb(b,"scope");e&&e.needsNewScope&&(b=b.$parent.$new());d=d||{};var h=d.parentBoundTranscludeFn,k=d.transcludeControllers;
d=d.futureParentElement;h&&h.$$boundTransclude&&(h=h.$$boundTransclude);g||(g=(d=d&&d[0])?"foreignobject"!==za(d)&&ma.call(d).match(/SVG/)?"svg":"html":"html");d="html"!==g?x(pa(g,x("<div></div>").append(a).html())):c?Za.clone.call(a):a;if(k)for(var l in k)d.data("$"+l+"Controller",k[l].instance);U.$$addScopeInfo(d,b);c&&c(d,b);f&&f(b,d,d,h);c||(a=f=null);return d}}function ka(a,b,c,d,e,f){function g(a,c,d,e){var f,g;if(t){var k=Array(c.length);for(f=0;f<h.length;f+=3){var l=h[f];k[l]=c[l]}}else k=
c;f=0;for(g=h.length;f<g;){var n=k[h[f++]];c=h[f++];l=h[f++];if(c){if(c.scope){var m=a.$new();U.$$addScopeInfo(x(n),m)}else m=a;var w=c.transcludeOnThisElement?K(a,c.transclude,e):!c.templateOnThisElement&&e?e:!e&&b?K(a,b):null;c(l,m,n,d,w)}else l&&l(a,n.childNodes,void 0,e)}}for(var h=[],k=J(a)||a instanceof x,l,n,m,w,t,X=0;X<a.length;X++){l=new C;11===La&&pb(a,X,k);n=xc(a[X],[],l,0===X?d:void 0,e);(f=n.length?da(n,a[X],l,b,c,null,[],[],f):null)&&f.scope&&U.$$addScopeClass(l.$$element);l=f&&f.terminal||
!(m=a[X].childNodes)||!m.length?null:ka(m,f?(f.transcludeOnThisElement||!f.templateOnThisElement)&&f.transclude:b);if(f||l)h.push(X,f,l),w=!0,t=t||f;f=null}return w?g:null}function pb(a,b,c){var d=a[b],e=d.parentNode;if(d.nodeType===Sa)for(;;){var f=e?d.nextSibling:a[b+1];if(!f||f.nodeType!==Sa)break;d.nodeValue+=f.nodeValue;f.parentNode&&f.parentNode.removeChild(f);c&&f===a[b+1]&&a.splice(b+1,1)}}function K(a,b,c){function d(d,e,f,g,h){d||(d=a.$new(!1,h),d.$$transcluded=!0);return b(d,e,{parentBoundTranscludeFn:c,
transcludeControllers:f,futureParentElement:g})}var e=d.$$slots=V(),f;for(f in b.$$slots)e[f]=b.$$slots[f]?K(a,b.$$slots[f],c):null;return d}function xc(a,b,c,d,e){var f=c.$attr;switch(a.nodeType){case 1:var g=za(a);fa(b,Da(g),"E",d,e);for(var k,l,n,m,w=a.attributes,t=0,C=w&&w.length;t<C;t++){var E=!1,y=!1;k=w[t];l=k.name;n=k.value;k=Da(l);(m=Ua.test(k))&&(l=l.replace(od,"").substr(8).replace(/_(.)/g,function(a,b){return b.toUpperCase()}));(k=k.match(Va))&&na(k[1])&&(E=l,y=l.substr(0,l.length-5)+
"end",l=l.substr(0,l.length-6));k=Da(l.toLowerCase());f[k]=l;if(m||!c.hasOwnProperty(k))c[k]=n,jd(a,k)&&(c[k]=!0);Ga(a,b,n,k,m);fa(b,k,"A",d,e,E,y)}"input"===g&&"hidden"===a.getAttribute("type")&&a.setAttribute("autocomplete","off");if(!Qa)break;f=a.className;G(f)&&(f=f.animVal);if(I(f)&&""!==f)for(;a=h.exec(f);)k=Da(a[2]),fa(b,k,"C",d,e)&&(c[k]=T(a[3])),f=f.substr(a.index+a[0].length);break;case Sa:xa(b,a.nodeValue);break;case 8:Oa&&Y(a,b,c,d,e)}b.sort(ra);return b}function Y(a,b,c,d,e){try{var g=
f.exec(a.nodeValue);if(g){var h=Da(g[1]);fa(b,h,"M",d,e)&&(c[h]=T(g[2]))}}catch(wc){}}function Z(a,b,c){var d=[],e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw ea("uterdir",b,c);1===a.nodeType&&(a.hasAttribute(b)&&e++,a.hasAttribute(c)&&e--);d.push(a);a=a.nextSibling}while(0<e)}else d.push(a);return x(d)}function ca(a,b,c){return function(d,e,f,g,h){e=Z(e[0],b,c);return a(d,e,f,g,h)}}function ba(a,b,c,d,e,f){var g;return a?U(b,c,d,e,f):function(){g||(g=U(b,c,d,e,f),b=c=f=null);return g.apply(this,
arguments)}}function da(a,b,d,e,f,g,h,k,l){function n(a,b,c,d){if(a){c&&(a=ca(a,c,d));a.require=r.require;a.directiveName=F;if(L===r||r.$$isolateScope)a=Ba(a,{isolateScope:!0});h.push(a)}if(b){c&&(b=ca(b,c,d));b.require=r.require;b.directiveName=F;if(L===r||r.$$isolateScope)b=Ba(b,{isolateScope:!0});k.push(b)}}function m(a,e,f,g,l){function m(a,b,c,d){var e;db(a)||(d=c,c=b,b=a,a=void 0);Ka&&(e=n);c||(c=Ka?w.parent():w);if(d){var f=l.$$slots[d];if(f)return f(a,b,e,c,q);if(z(f))throw ea("noslot",d,
Aa(w));}else return l(a,b,e,c,q)}var n;if(b===f){g=d;var w=d.$$element}else w=x(f),g=new C(w,d);var r=e;if(L)var u=e.$new(!0);else t&&(r=e.$parent);if(l){var B=m;B.$$boundTransclude=l;B.isSlotFilled=function(a){return!!l.$$slots[a]}}y&&(n=ja(w,g,B,y,u,e,L));if(L){U.$$addScopeInfo(w,u,!0,!(W&&(W===L||W===L.$$originalDirective)));U.$$addScopeClass(w,!0);u.$$isolateBindings=L.$$isolateBindings;var X=ta(e,g,u,u.$$isolateBindings,L);X.removeWatches&&u.$on("$destroy",X.removeWatches)}for(R in n){X=y[R];
var M=n[R];var F=X.$$bindings.bindToController;if(E){M.bindingInfo=F?ta(r,g,M.instance,F,X):{};var Q=M();Q!==M.instance&&(M.instance=Q,w.data("$"+X.name+"Controller",Q),M.bindingInfo.removeWatches&&M.bindingInfo.removeWatches(),M.bindingInfo=ta(r,g,M.instance,F,X))}else M.instance=M(),w.data("$"+X.name+"Controller",M.instance),M.bindingInfo=ta(r,g,M.instance,F,X)}p(y,function(a,b){var c=a.require;a.bindToController&&!J(c)&&G(c)&&P(n[b].instance,aa(b,c,w,n))});p(n,function(a){var b=a.instance;if(A(b.$onChanges))try{b.$onChanges(a.bindingInfo.initialChanges)}catch(yc){c(yc)}if(A(b.$onInit))try{b.$onInit()}catch(yc){c(yc)}A(b.$doCheck)&&
(r.$watch(function(){b.$doCheck()}),b.$doCheck());A(b.$onDestroy)&&r.$on("$destroy",function(){b.$onDestroy()})});var R=0;for(X=h.length;R<X;R++)M=h[R],Ca(M,M.isolateScope?u:e,w,g,M.require&&aa(M.directiveName,M.require,w,n),B);var q=e;L&&(L.template||null===L.templateUrl)&&(q=u);a&&a(q,f.childNodes,void 0,l);for(R=k.length-1;0<=R;R--)M=k[R],Ca(M,M.isolateScope?u:e,w,g,M.require&&aa(M.directiveName,M.require,w,n),B);p(n,function(a){a=a.instance;A(a.$postLink)&&a.$postLink()})}l=l||{};for(var w=-Number.MAX_VALUE,
t=l.newScopeDirective,y=l.controllerDirectives,L=l.newIsolateScopeDirective,W=l.templateDirective,u=l.nonTlbTranscludeDirective,X=!1,M=!1,Ka=l.hasElementTranscludeDirective,B=d.$$element=x(b),r,F,Q,R=e,q,wa=!1,ka=!1,v,Ta=0,Ya=a.length;Ta<Ya;Ta++){r=a[Ta];var Ma=r.$$start,vc=r.$$end;Ma&&(B=Z(b,Ma,vc));Q=void 0;if(w>r.priority)break;if(v=r.scope)r.templateUrl||(G(v)?(ha("new/isolated scope",L||t,r,B),L=r):ha("new/isolated scope",L,r,B)),t=t||r;F=r.name;if(!wa&&(r.replace&&(r.templateUrl||r.template)||
r.transclude&&!r.$$tlb)){for(v=Ta+1;wa=a[v++];)if(wa.transclude&&!wa.$$tlb||wa.replace&&(wa.templateUrl||wa.template)){ka=!0;break}wa=!0}!r.templateUrl&&r.controller&&(y=y||V(),ha("'"+F+"' controller",y[F],r,B),y[F]=r);if(v=r.transclude)if(X=!0,r.$$tlb||(ha("transclusion",u,r,B),u=r),"element"===v)Ka=!0,w=r.priority,Q=B,B=d.$$element=x(U.$$createComment(F,d[F])),b=B[0],qa(f,ya.call(Q,0),b),Q[0].$$parentNode=Q[0].parentNode,R=ba(ka,Q,e,w,g&&g.name,{nonTlbTranscludeDirective:u});else{var S=V();if(G(v)){Q=
[];var wc=V(),D=V();p(v,function(a,b){var c="?"===a.charAt(0);a=c?a.substring(1):a;wc[a]=b;S[b]=null;D[b]=c});p(B.contents(),function(a){var b=wc[Da(za(a))];b?(D[b]=!0,S[b]=S[b]||[],S[b].push(a)):Q.push(a)});p(D,function(a,b){if(!a)throw ea("reqslot",b);});for(var nb in S)S[nb]&&(S[nb]=ba(ka,S[nb],e))}else Q=x(rc(b)).contents();B.empty();R=ba(ka,Q,e,void 0,void 0,{needsNewScope:r.$$isolateScope||r.$$newScope});R.$$slots=S}if(r.template)if(M=!0,ha("template",W,r,B),W=r,v=A(r.template)?r.template(B,
d):r.template,v=Pa(v),r.replace){g=r;Q=oc.test(v)?pd(pa(r.templateNamespace,T(v))):[];b=Q[0];if(1!==Q.length||1!==b.nodeType)throw ea("tplrt",F,"");qa(f,B,b);Ya={$attr:{}};v=xc(b,[],Ya);var H=a.splice(Ta+1,a.length-(Ta+1));(L||t)&&ia(v,L,t);a=a.concat(v).concat(H);la(d,Ya);Ya=a.length}else B.html(v);if(r.templateUrl)M=!0,ha("template",W,r,B),W=r,r.replace&&(g=r),m=oa(a.splice(Ta,a.length-Ta),B,d,f,X&&R,h,k,{controllerDirectives:y,newScopeDirective:t!==r&&t,newIsolateScopeDirective:L,templateDirective:W,
nonTlbTranscludeDirective:u}),Ya=a.length;else if(r.compile)try{q=r.compile(B,d,R);var pb=r.$$originalDirective||r;A(q)?n(null,Xa(pb,q),Ma,vc):q&&n(Xa(pb,q.pre),Xa(pb,q.post),Ma,vc)}catch(ef){c(ef,Aa(B))}r.terminal&&(m.terminal=!0,w=Math.max(w,r.priority))}m.scope=t&&!0===t.scope;m.transcludeOnThisElement=X;m.templateOnThisElement=M;m.transclude=R;l.hasElementTranscludeDirective=Ka;return m}function aa(a,b,c,d){if(I(b)){var e=b.match(l);b=b.substring(e[0].length);var f=e[1]||e[3];e="?"===e[2];if("^^"===
f)c=c.parent();else var g=(g=d&&d[b])&&g.instance;if(!g){var h="$"+b+"Controller";g=f?c.inheritedData(h):c.data(h)}if(!g&&!e)throw ea("ctreq",b,a);}else if(J(b))for(g=[],f=0,e=b.length;f<e;f++)g[f]=aa(a,b[f],c,d);else G(b)&&(g={},p(b,function(b,e){g[e]=aa(a,b,c,d)}));return g||null}function ja(a,b,c,d,e,f,g){var h=V(),k;for(k in d){var l=d[k],n={$scope:l===g||l.$$isolateScope?e:f,$element:a,$attrs:b,$transclude:c},w=l.controller;"@"===w&&(w=b[l.name]);n=Ka(w,n,!0,l.controllerAs);h[l.name]=n;a.data("$"+
l.name+"Controller",n.instance)}return h}function ia(a,b,c){for(var d=0,e=a.length;d<e;d++)a[d]=ec(a[d],{$$isolateScope:b,$$newScope:c})}function fa(b,c,e,f,h,k,l){if(c===h)return null;var n=null;if(g.hasOwnProperty(c)){h=a.get(c+"Directive");for(var w=0,m=h.length;w<m;w++)if(c=h[w],(z(f)||f>c.priority)&&-1!==c.restrict.indexOf(e)){k&&(c=ec(c,{$$start:k,$$end:l}));if(!c.$$bindings){var t=n=c,C=c.name,r={isolateScope:null,bindToController:null};G(t.scope)&&(!0===t.bindToController?(r.bindToController=
d(t.scope,C,!0),r.isolateScope={}):r.isolateScope=d(t.scope,C,!1));G(t.bindToController)&&(r.bindToController=d(t.bindToController,C,!0));if(r.bindToController&&!t.controller)throw ea("noctrl",C);n=n.$$bindings=r;G(n.isolateScope)&&(c.$$isolateBindings=n.isolateScope)}b.push(c);n=c}}return n}function na(b){if(g.hasOwnProperty(b))for(var c=a.get(b+"Directive"),d=0,e=c.length;d<e;d++)if(b=c[d],b.multiElement)return!0;return!1}function la(a,b){var c=b.$attr,d=a.$attr;p(a,function(d,e){"$"!==e.charAt(0)&&
(b[e]&&b[e]!==d&&(d=d.length?d+(("style"===e?";":" ")+b[e]):b[e]),a.$set(e,d,!0,c[e]))});p(b,function(b,e){a.hasOwnProperty(e)||"$"===e.charAt(0)||(a[e]=b,"class"!==e&&"style"!==e&&(d[e]=c[e]))})}function oa(a,b,d,f,g,h,k,l){var n=[],w,m,t=b[0],C=a.shift(),r=ec(C,{templateUrl:null,transclude:null,replace:null,$$originalDirective:C}),L=A(C.templateUrl)?C.templateUrl(b,d):C.templateUrl,y=C.templateNamespace;b.empty();e(L).then(function(c){c=Pa(c);if(C.replace){c=oc.test(c)?pd(pa(y,T(c))):[];var e=c[0];
if(1!==c.length||1!==e.nodeType)throw ea("tplrt",C.name,L);c={$attr:{}};qa(f,b,e);var E=xc(e,[],c);G(C.scope)&&ia(E,!0);a=E.concat(a);la(d,c)}else e=t,b.html(c);a.unshift(r);w=da(a,e,d,g,b,C,h,k,l);p(f,function(a,c){a===e&&(f[c]=b[0])});for(m=ka(b[0].childNodes,g);n.length;){c=n.shift();var u=n.shift();var B=n.shift(),U=n.shift();E=b[0];if(!c.$$destroyed){if(u!==t){var F=u.className;l.hasElementTranscludeDirective&&C.replace||(E=rc(e));qa(B,x(u),E);W(x(E),F)}u=w.transcludeOnThisElement?K(c,w.transclude,
U):U;w(m,c,E,f,u)}}n=null}).catch(function(a){gc(a)&&c(a)});return function(a,b,c,d,e){a=e;b.$$destroyed||(n?n.push(b,c,d,a):(w.transcludeOnThisElement&&(a=K(b,w.transclude,e)),w(m,b,c,d,a)))}}function ra(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 ha(a,b,c,d){function e(a){return a?" (module: "+a+")":""}if(b)throw ea("multidir",b.name,e(b.$$moduleName),c.name,e(c.$$moduleName),a,Aa(d));}function xa(a,c){var d=b(c,!0);d&&a.push({priority:0,
compile:function(a){a=a.parent();var b=!!a.length;b&&U.$$addBindingClass(a);return function(a,c){var e=c.parent();b||U.$$addBindingClass(e);U.$$addBindingInfo(e,d.expressions);a.$watch(d,function(a){c[0].nodeValue=a})}}})}function pa(a,b){a=N(a||"html");switch(a){case "svg":case "math":var c=D.document.createElement("div");c.innerHTML="<"+a+">"+b+"</"+a+">";return c.childNodes[0].childNodes;default:return b}}function Fa(a,b){if("srcdoc"===b)return Q.HTML;a=za(a);if("src"===b||"ngSrc"===b){if(-1===
["img","video","audio","source","track"].indexOf(a))return Q.RESOURCE_URL}else if("xlinkHref"===b||"form"===a&&"action"===b||"link"===a&&"href"===b)return Q.RESOURCE_URL}function Ga(a,c,d,e,f){var g=Fa(a,e),h=k[e]||f,l=b(d,!f,g,h);if(l){if("multiple"===e&&"select"===za(a))throw ea("selmulti",Aa(a));if(m.test(e))throw ea("nodomevents");c.push({priority:100,compile:function(){return{pre:function(a,c,f){c=f.$$observers||(f.$$observers=V());var k=f[e];k!==d&&(l=k&&b(k,!0,g,h),d=k);l&&(f[e]=l(a),(c[e]||
(c[e]=[])).$$inter=!0,(f.$$observers&&f.$$observers[e].$$scope||a).$watch(l,function(a,b){"class"===e&&a!==b?f.$updateClass(a,b):f.$set(e,a)}))}}}})}}function qa(a,b,c){var d=b[0],e=b.length,f=d.parentNode,g;if(a){var h=0;for(g=a.length;h<g;h++)if(a[h]===d){a[h++]=c;g=h+e-1;for(var k=a.length;h<k;h++,g++)g<k?a[h]=a[g]:delete a[h];a.length-=e-1;a.context===d&&(a.context=c);break}}f&&f.replaceChild(c,d);a=D.document.createDocumentFragment();for(h=0;h<e;h++)a.appendChild(b[h]);x.hasData(d)&&(x.data(c,
x.data(d)),x(d).off("$destroy"));x.cleanData(a.querySelectorAll("*"));for(h=1;h<e;h++)delete b[h];b[0]=c;b.length=1}function Ba(a,b){return P(function(){return a.apply(null,arguments)},a,b)}function Ca(a,b,d,e,f,g){try{a(b,d,e,f,g)}catch(cf){c(cf,Aa(d))}}function sa(a,b){if(B)throw ea("missingattr",a,b);}function ta(a,c,d,e,f){function g(b,c,e){A(d.$onChanges)&&!hc(c,e)&&(Wa||(a.$$postDigest(w),Wa=[]),m||(m={},Wa.push(h)),m[b]&&(e=m[b].previousValue),m[b]=new Mb(e,c))}function h(){d.$onChanges(m);
m=void 0}var k=[],l={},m;p(e,function(e,h){var w=e.attrName,m=e.optional;switch(e.mode){case "@":m||ua.call(c,w)||(sa(w,f.name),d[h]=c[w]=void 0);e=c.$observe(w,function(a){if(I(a)||Ra(a))g(h,a,d[h]),d[h]=a});c.$$observers[w].$$scope=a;var t=c[w];I(t)?d[h]=b(t)(a):Ra(t)&&(d[h]=t);l[h]=new Mb(zc,d[h]);k.push(e);break;case "=":if(!ua.call(c,w)){if(m)break;sa(w,f.name);c[w]=void 0}if(m&&!c[w])break;var C=n(c[w]);var r=C.literal?va:hc;var E=C.assign||function(){t=d[h]=C(a);throw ea("nonassign",c[w],w,
f.name);};t=d[h]=C(a);m=function(b){r(b,d[h])||(r(b,t)?E(a,b=d[h]):d[h]=b);return t=b};m.$stateful=!0;e=e.collection?a.$watchCollection(c[w],m):a.$watch(n(c[w],m),null,C.literal);k.push(e);break;case "<":if(!ua.call(c,w)){if(m)break;sa(w,f.name);c[w]=void 0}if(m&&!c[w])break;C=n(c[w]);var L=C.literal,y=d[h]=C(a);l[h]=new Mb(zc,d[h]);e=a.$watch(C,function(a,b){if(b===a){if(b===y||L&&va(b,y))return;b=y}g(h,a,b);d[h]=a},L);k.push(e);break;case "&":m||ua.call(c,w)||sa(w,f.name),C=c.hasOwnProperty(w)?
n(c[w]):H,C===H&&m||(d[h]=function(b){return C(a,b)})}});return{initialChanges:l,removeWatches:k.length&&function(){for(var a=0,b=k.length;a<b;++a)k[a]()}}}var Na=/^\w/,Ea=D.document.createElement("div"),Oa=F,Qa=r,Ha=u,Wa;C.prototype={$normalize:Da,$addClass:function(a){a&&0<a.length&&R.addClass(this.$$element,a)},$removeClass:function(a){a&&0<a.length&&R.removeClass(this.$$element,a)},$updateClass:function(a,b){var c=qd(a,b);c&&c.length&&R.addClass(this.$$element,c);(a=qd(b,a))&&a.length&&R.removeClass(this.$$element,
a)},$set:function(a,b,d,e){var f=jd(this.$$element[0],a),g=rd[a],h=a;f?(this.$$element.prop(a,b),e=f):g&&(this[g]=b,h=g);this[a]=b;e?this.$attr[a]=e:(e=this.$attr[a])||(this.$attr[a]=e=cd(a,"-"));f=za(this.$$element);if("a"===f&&("href"===a||"xlinkHref"===a)||"img"===f&&"src"===a)this[a]=b=null==b?b:q(b,"src"===a);else if("img"===f&&"srcset"===a&&v(b)){f="";g=T(b);var k=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/;k=/\s/.test(g)?k:/(,)/;g=g.split(k);k=Math.floor(g.length/2);for(var l=0;l<k;l++){var w=2*
l;f+=q(T(g[w]),!0);f+=" "+T(g[w+1])}g=T(g[2*l]).split(/\s/);f+=q(T(g[0]),!0);2===g.length&&(f+=" "+T(g[1]));this[a]=b=f}!1!==d&&(null==b?this.$$element.removeAttr(e):Na.test(e)?this.$$element.attr(e,b):y(this.$$element[0],e,b));(a=this.$$observers)&&p(a[h],function(a){try{a(b)}catch(df){c(df)}})},$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers=V()),e=d[a]||(d[a]=[]);e.push(b);L.$evalAsync(function(){e.$$inter||!c.hasOwnProperty(a)||z(c[a])||b(c[a])});return function(){eb(e,b)}}};
var Ia=b.startSymbol(),Ja=b.endSymbol(),Pa="{{"===Ia&&"}}"===Ja?yb:function(a){return a.replace(/\{\{/g,Ia).replace(/}}/g,Ja)},Ua=/^ngAttr[A-Z]/,Va=/^(.+)Start$/;U.$$addBindingInfo=t?function(a,b){var c=a.data("$binding")||[];J(b)?c=c.concat(b):c.push(b);a.data("$binding",c)}:H;U.$$addBindingClass=t?function(a){W(a,"ng-binding")}:H;U.$$addScopeInfo=t?function(a,b,c,d){a.data(c?d?"$isolateScopeNoTemplate":"$isolateScope":"$scope",b)}:H;U.$$addScopeClass=t?function(a,b){W(a,b?"ng-isolate-scope":"ng-scope")}:
H;U.$$createComment=function(a,b){var c="";t&&(c=" "+(a||"")+": ",b&&(c+=b+" "));return D.document.createComment(c)};return U}]}function Mb(a,b){this.previousValue=a;this.currentValue=b}function Da(a){return a.replace(od,"").replace(ff,function(a,d,c){return c?d.toUpperCase():d})}function qd(a,b){var d="";a=a.split(/\s+/);b=b.split(/\s+/);var c=0;a:for(;c<a.length;c++){for(var e=a[c],g=0;g<b.length;g++)if(e===b[g])continue a;d+=(0<d.length?" ":"")+e}return d}function pd(a){a=x(a);var b=a.length;if(1>=
b)return a;for(;b--;){var d=a[b];(8===d.nodeType||d.nodeType===Sa&&""===d.nodeValue.trim())&&gf.call(a,b,1)}return a}function bf(a,b){if(b&&I(b))return b;if(I(a)&&(a=sd.exec(a)))return a[3]}function hf(){var a={},b=!1;this.has=function(b){return a.hasOwnProperty(b)};this.register=function(b,c){Ia(b,"controller");G(b)?P(a,b):a[b]=c};this.allowGlobals=function(){b=!0};this.$get=["$injector","$window",function(d,c){function e(a,b,c,d){if(!a||!G(a.$scope))throw K("$controller")("noscp",d,b);a.$scope[b]=
c}return function(g,f,h,k){var l;h=!0===h;k&&I(k)&&(l=k);if(I(g)){k=g.match(sd);if(!k)throw td("ctrlfmt",g);var m=k[1];l=l||k[3];g=a.hasOwnProperty(m)?a[m]:dd(f.$scope,m,!0)||(b?dd(c,m,!0):void 0);if(!g)throw td("ctrlreg",m);zb(g,m,!0)}if(h){h=(J(g)?g[g.length-1]:g).prototype;var n=Object.create(h||null);l&&e(f,l,n,m||g.name);return P(function(){var a=d.invoke(g,n,f,m);a!==n&&(G(a)||A(a))&&(n=a,l&&e(f,l,n,m||g.name));return n},{instance:n,identifier:l})}n=d.instantiate(g,f,m);l&&e(f,l,n,m||g.name);
return n}}]}function jf(){this.$get=["$window",function(a){return x(a.document)}]}function kf(){this.$get=["$document","$rootScope",function(a,b){function d(){e=c.hidden}var c=a[0],e=c&&c.hidden;a.on("visibilitychange",d);b.$on("$destroy",function(){a.off("visibilitychange",d)});return function(){return e}}]}function lf(){this.$get=["$log",function(a){return function(b,d){a.error.apply(a,arguments)}}]}function Ac(a){return G(a)?ia(a)?a.toISOString():gb(a):a}function mf(){this.$get=function(){return function(a){if(!a)return"";
var b=[];Wc(a,function(a,c){null===a||z(a)||A(a)||(J(a)?p(a,function(a){b.push(na(c)+"="+na(Ac(a)))}):b.push(na(c)+"="+na(Ac(a))))});return b.join("&")}}}function nf(){this.$get=function(){return function(a){function b(a,e,g){null===a||z(a)||(J(a)?p(a,function(a,c){b(a,e+"["+(G(a)?c:"")+"]")}):G(a)&&!ia(a)?Wc(a,function(a,c){b(a,e+(g?"":"[")+c+(g?"":"]"))}):d.push(na(e)+"="+na(Ac(a))))}if(!a)return"";var d=[];b(a,"",!0);return d.join("&")}}}function Bc(a,b){if(I(a)){var d=a.replace(of,"").trim();
if(d){b=(b=b("Content-Type"))&&0===b.indexOf(ud);var c;(c=b)||(c=(c=d.match(pf))&&qf[c[0]].test(d));if(c)try{a=Zc(d)}catch(e){if(!b)return a;throw Nb("baddata",a,e);}}}return a}function vd(a){var b=V(),d;I(a)?p(a.split("\n"),function(a){d=a.indexOf(":");var c=N(T(a.substr(0,d)));a=T(a.substr(d+1));c&&(b[c]=b[c]?b[c]+", "+a:a)}):G(a)&&p(a,function(a,d){d=N(d);a=T(a);d&&(b[d]=b[d]?b[d]+", "+a:a)});return b}function wd(a){var b;return function(d){b||(b=vd(a));return d?(d=b[N(d)],void 0===d&&(d=null),
d):b}}function xd(a,b,d,c){if(A(c))return c(a,b,d);p(c,function(c){a=c(a,b,d)});return a}function rf(){var a=this.defaults={transformResponse:[Bc],transformRequest:[function(a){return G(a)&&"[object File]"!==ma.call(a)&&"[object Blob]"!==ma.call(a)&&"[object FormData]"!==ma.call(a)?gb(a):a}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ra(Cc),put:ra(Cc),patch:ra(Cc)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},
b=!1;this.useApplyAsync=function(a){return v(a)?(b=!!a,this):b};var d=this.interceptors=[],c=this.xsrfWhitelistedOrigins=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(e,g,f,h,k,l,m,n){function t(b){function c(a,b){for(var c=0,d=b.length;c<d;){var e=b[c++],f=b[c++];a=a.then(e,f)}b.length=0;return a}function d(a,b){var c,d={};p(a,function(a,e){A(a)?(c=a(b),null!=c&&(d[e]=c)):d[e]=a});return d}function f(a){var b=P({},a);b.data=
xd(a.data,a.headers,a.status,g.transformResponse);a=a.status;return 200<=a&&300>a?b:l.reject(b)}if(!G(b))throw K("$http")("badreq",b);if(!I(n.valueOf(b.url)))throw K("$http")("badreq",b.url);var g=P({method:"get",transformRequest:a.transformRequest,transformResponse:a.transformResponse,paramSerializer:a.paramSerializer,jsonpCallbackParam:a.jsonpCallbackParam},b);g.headers=function(b){var c=a.headers,e=P({},b.headers),f,g;c=P({},c.common,c[N(b.method)]);a:for(f in c){var h=N(f);for(g in e)if(N(g)===
h)continue a;e[f]=c[f]}return d(e,ra(b))}(b);g.method=Ob(g.method);g.paramSerializer=I(g.paramSerializer)?m.get(g.paramSerializer):g.paramSerializer;e.$$incOutstandingRequestCount();var h=[],k=[];b=l.resolve(g);p(r,function(a){(a.request||a.requestError)&&h.unshift(a.request,a.requestError);(a.response||a.responseError)&&k.push(a.response,a.responseError)});b=c(b,h);b=b.then(function(b){var c=b.headers,d=xd(b.data,wd(c),void 0,b.transformRequest);z(d)&&p(c,function(a,b){"content-type"===N(b)&&delete c[b]});
z(b.withCredentials)&&!z(a.withCredentials)&&(b.withCredentials=a.withCredentials);return E(b,d).then(f,f)});b=c(b,k);return b=b.finally(function(){e.$$completeOutstandingRequest(H)})}function E(c,d){function e(a){if(a){var c={};p(a,function(a,d){c[d]=function(c){function d(){a(c)}b?k.$applyAsync(d):k.$$phase?d():k.$apply(d)}});return c}}function h(a,c,d,e,f){function g(){m(c,a,d,e,f)}q&&(200<=a&&300>a?q.put(S,[a,c,vd(d),e,f]):q.remove(S));b?k.$applyAsync(g):(g(),k.$$phase||k.$apply())}function m(a,
b,d,e,f){b=-1<=b?b:0;(200<=b&&300>b?y.resolve:y.reject)({data:a,status:b,headers:wd(d),config:c,statusText:e,xhrStatus:f})}function r(a){m(a.data,a.status,ra(a.headers()),a.statusText,a.xhrStatus)}function E(){var a=t.pendingRequests.indexOf(c);-1!==a&&t.pendingRequests.splice(a,1)}var y=l.defer(),kb=y.promise,q,ka=c.headers,Ma="jsonp"===N(c.method),S=c.url;Ma?S=n.getTrustedResourceUrl(S):I(S)||(S=n.valueOf(S));S=B(S,c.paramSerializer(c.params));Ma&&(S=u(S,c.jsonpCallbackParam));t.pendingRequests.push(c);
kb.then(E,E);!c.cache&&!a.cache||!1===c.cache||"GET"!==c.method&&"JSONP"!==c.method||(q=G(c.cache)?c.cache:G(a.cache)?a.cache:F);if(q){var x=q.get(S);v(x)?x&&A(x.then)?x.then(r,r):J(x)?m(x[1],x[0],ra(x[2]),x[3],x[4]):m(x,200,{},"OK","complete"):q.put(S,kb)}z(x)&&((x=O(c.url)?f()[c.xsrfCookieName||a.xsrfCookieName]:void 0)&&(ka[c.xsrfHeaderName||a.xsrfHeaderName]=x),g(c.method,S,d,h,ka,c.timeout,c.withCredentials,c.responseType,e(c.eventHandlers),e(c.uploadEventHandlers)));return kb}function B(a,b){0<
b.length&&(a+=(-1===a.indexOf("?")?"?":"&")+b);return a}function u(a,b){var c=a.split("?");if(2<c.length)throw Nb("badjsonp",a);c=kc(c[1]);p(c,function(c,d){if("JSON_CALLBACK"===c)throw Nb("badjsonp",a);if(d===b)throw Nb("badjsonp",b,a);});return a+=(-1===a.indexOf("?")?"?":"&")+b+"=JSON_CALLBACK"}var F=h("$http");a.paramSerializer=I(a.paramSerializer)?m.get(a.paramSerializer):a.paramSerializer;var r=[];p(d,function(a){r.unshift(I(a)?m.get(a):m.invoke(a))});var O=sf(c);t.pendingRequests=[];(function(a){p(arguments,
function(a){t[a]=function(b,c){return t(P({},c||{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){p(arguments,function(a){t[a]=function(b,c,d){return t(P({},d||{},{method:a,url:b,data:c}))}})})("post","put","patch");t.defaults=a;return t}]}function tf(){this.$get=function(){return function(){return new D.XMLHttpRequest}}}function uf(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(a,b,d,c){return vf(a,c,a.defer,b,d[0])}]}function vf(a,b,d,c,e){function g(a,
b,d){a=a.replace("JSON_CALLBACK",b);var f=e.createElement("script"),g=null;f.type="text/javascript";f.src=a;f.async=!0;g=function(a){f.removeEventListener("load",g);f.removeEventListener("error",g);e.body.removeChild(f);f=null;var h=-1,k="unknown";a&&("load"!==a.type||c.wasCalled(b)||(a={type:"error"}),k=a.type,h="error"===a.type?404:200);d&&d(h,k)};f.addEventListener("load",g);f.addEventListener("error",g);e.body.appendChild(f);return g}return function(e,h,k,l,m,n,t,E,B,u){function f(a){C="timeout"===
a;q&&q();y&&y.abort()}function r(a,b,c,e,f,g){v(w)&&d.cancel(w);q=y=null;a(b,c,e,f,g)}h=h||a.url();if("jsonp"===N(e))var O=c.createCallback(h),q=g(h,O,function(a,b){var d=200===a&&c.getResponse(O);r(l,a,d,"",b,"complete");c.removeCallback(O)});else{var y=b(e,h),C=!1;y.open(e,h,!0);p(m,function(a,b){v(a)&&y.setRequestHeader(b,a)});y.onload=function(){var a=y.statusText||"",b="response"in y?y.response:y.responseText,c=1223===y.status?204:y.status;0===c&&(c=b?200:"file"===ha(h).protocol?404:0);r(l,c,
b,y.getAllResponseHeaders(),a,"complete")};y.onerror=function(){r(l,-1,null,null,"","error")};y.ontimeout=function(){r(l,-1,null,null,"","timeout")};y.onabort=function(){r(l,-1,null,null,"",C?"timeout":"abort")};p(B,function(a,b){y.addEventListener(b,a)});p(u,function(a,b){y.upload.addEventListener(b,a)});t&&(y.withCredentials=!0);if(E)try{y.responseType=E}catch(W){if("json"!==E)throw W;}y.send(z(k)?null:k)}if(0<n)var w=d(function(){f("timeout")},n);else n&&A(n.then)&&n.then(function(){f(v(n.$$timeoutId)?
"timeout":"abort")})}}function wf(){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(d,c,e){function g(a){return"\\\\\\"+a}function f(c){return c.replace(n,a).replace(t,b)}function h(a,b,c,d){var e=a.$watch(function(a){e();return d(a)},b,c);return e}function k(g,k,n,t){function r(a){try{var b=a;a=n?e.getTrusted(n,b):e.valueOf(b);return t&&!v(a)?a:mc(a)}catch(ka){c(Na.interr(g,
ka))}}if(!g.length||-1===g.indexOf(a)){if(!k){k=f(g);var E=la(k);E.exp=g;E.expressions=[];E.$$watchDelegate=h}return E}t=!!t;var u,y,C=0,w=[],B=[];E=g.length;for(var F=[],p=[];C<E;)if(-1!==(u=g.indexOf(a,C))&&-1!==(y=g.indexOf(b,u+l)))C!==u&&F.push(f(g.substring(C,u))),C=g.substring(u+l,y),w.push(C),B.push(d(C,r)),C=y+m,p.push(F.length),F.push("");else{C!==E&&F.push(f(g.substring(C)));break}n&&1<F.length&&Na.throwNoconcat(g);if(!k||w.length){var L=function(a){for(var b=0,c=w.length;b<c;b++){if(t&&
z(a[b]))return;F[p[b]]=a[b]}return F.join("")};return P(function(a){var b=0,d=w.length,e=Array(d);try{for(;b<d;b++)e[b]=B[b](a);return L(e)}catch(S){c(Na.interr(g,S))}},{exp:g,expressions:w,$$watchDelegate:function(a,b){var c;return a.$watchGroup(B,function(d,e){var f=L(d);b.call(this,f,d!==e?c:f,a);c=f})}})}}var l=a.length,m=b.length,n=new RegExp(a.replace(/./g,g),"g"),t=new RegExp(b.replace(/./g,g),"g");k.startSymbol=function(){return a};k.endSymbol=function(){return b};return k}]}function xf(){this.$get=
["$rootScope","$window","$q","$$q","$browser",function(a,b,d,c,e){function g(g,k,l,m){function h(){t?g.apply(null,E):g(F)}var t=4<arguments.length,E=t?ya.call(arguments,4):[],B=b.setInterval,u=b.clearInterval,F=0,r=v(m)&&!m,O=(r?c:d).defer(),p=O.promise;l=v(l)?l:0;p.$$intervalId=B(function(){r?e.defer(h):a.$evalAsync(h);O.notify(F++);0<l&&F>=l&&(O.resolve(F),u(p.$$intervalId),delete f[p.$$intervalId]);r||a.$apply()},k);f[p.$$intervalId]=O;return p}var f={};g.cancel=function(a){return a&&a.$$intervalId in
f?(f[a.$$intervalId].promise.$$state.pur=!0,f[a.$$intervalId].reject("canceled"),b.clearInterval(a.$$intervalId),delete f[a.$$intervalId],!0):!1};return g}]}function Dc(a){a=a.split("/");for(var b=a.length;b--;)a[b]=hb(a[b].replace(/%2F/g,"/"));return a.join("/")}function yd(a,b){a=ha(a);b.$$protocol=a.protocol;b.$$host=a.hostname;b.$$port=parseInt(a.port,10)||yf[a.protocol]||null}function zd(a,b,d){if(zf.test(a))throw qb("badpath",a);var c="/"!==a.charAt(0);c&&(a="/"+a);a=ha(a);c=(c&&"/"===a.pathname.charAt(0)?
a.pathname.substring(1):a.pathname).split("/");for(var e=c.length;e--;)c[e]=decodeURIComponent(c[e]),d&&(c[e]=c[e].replace(/\//g,"%2F"));d=c.join("/");b.$$path=d;b.$$search=kc(a.search);b.$$hash=decodeURIComponent(a.hash);b.$$path&&"/"!==b.$$path.charAt(0)&&(b.$$path="/"+b.$$path)}function Ec(a,b){return a.slice(0,b.length)===b}function xa(a,b){if(Ec(b,a))return b.substr(a.length)}function ta(a){var b=a.indexOf("#");return-1===b?a:a.substr(0,b)}function rb(a){return a.replace(/(#.+)|#$/,"$1")}function Fc(a,
b,d){this.$$html5=!0;d=d||"";yd(a,this);this.$$parse=function(a){var c=xa(b,a);if(!I(c))throw qb("ipthprfx",a,b);zd(c,this,!0);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var a=lc(this.$$search),d=this.$$hash?"#"+hb(this.$$hash):"";this.$$url=Dc(this.$$path)+(a?"?"+a:"")+d;this.$$absUrl=b+this.$$url.substr(1);this.$$urlUpdatedByLocation=!0};this.$$parseLinkUrl=function(c,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;if(v(e=xa(a,c))){c=e;var g=d&&v(e=xa(d,e))?b+
(xa("/",e)||e):a+c}else v(e=xa(b,c))?g=b+e:b===c+"/"&&(g=b);g&&this.$$parse(g);return!!g}}function Gc(a,b,d){yd(a,this);this.$$parse=function(c){var e=xa(a,c)||xa(b,c);if(z(e)||"#"!==e.charAt(0))if(this.$$html5)var g=e;else g="",z(e)&&(a=c,this.replace());else g=xa(d,e),z(g)&&(g=e);zd(g,this,!1);c=this.$$path;e=a;var f=/^\/[A-Z]:(\/.*)/;Ec(g,e)&&(g=g.replace(e,""));f.exec(g)||(c=(g=f.exec(c))?g[1]:c);this.$$path=c;this.$$compose()};this.$$compose=function(){var b=lc(this.$$search),e=this.$$hash?"#"+
hb(this.$$hash):"";this.$$url=Dc(this.$$path)+(b?"?"+b:"")+e;this.$$absUrl=a+(this.$$url?d+this.$$url:"");this.$$urlUpdatedByLocation=!0};this.$$parseLinkUrl=function(b,d){return ta(a)===ta(b)?(this.$$parse(b),!0):!1}}function Ad(a,b,d){this.$$html5=!0;Gc.apply(this,arguments);this.$$parseLinkUrl=function(c,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var g,f;a===ta(c)?g=c:(f=xa(b,c))?g=a+d+f:b===c+"/"&&(g=b);g&&this.$$parse(g);return!!g};this.$$compose=function(){var b=lc(this.$$search),e=
this.$$hash?"#"+hb(this.$$hash):"";this.$$url=Dc(this.$$path)+(b?"?"+b:"")+e;this.$$absUrl=a+d+this.$$url;this.$$urlUpdatedByLocation=!0}}function Pb(a){return function(){return this[a]}}function Bd(a,b){return function(d){if(z(d))return this[a];this[a]=b(d);this.$$compose();return this}}function Af(){var a="!",b={enabled:!1,requireBase:!0,rewriteLinks:!0},d=function(a,b,d){return a!==b};this.hashPrefix=function(b){return v(b)?(a=b,this):a};this.html5Mode=function(a){if(Ra(a))return b.enabled=a,this;
if(G(a)){Ra(a.enabled)&&(b.enabled=a.enabled);Ra(a.requireBase)&&(b.requireBase=a.requireBase);if(Ra(a.rewriteLinks)||I(a.rewriteLinks))b.rewriteLinks=a.rewriteLinks;return this}return b};this.compareUrls=function(a){return v(a)?(d=a,this):d};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(c,e,g,f,h){function k(a,b,c){var d=u.url(),f=u.$$state;try{e.url(a,b,c),u.$$state=e.state()}catch(W){throw u.url(d),u.$$state=f,W;}}function l(a,b){c.$broadcast("$locationChangeSuccess",
u.absUrl(),a,u.$$state,b)}var m=e.baseHref(),n=e.url();if(b.enabled){if(!m&&b.requireBase)throw qb("nobase");var t=n.substring(0,n.indexOf("/",n.indexOf("//")+2))+(m||"/");var E=g.history?Fc:Ad}else t=ta(n),E=Gc;var B=t.substr(0,ta(t).lastIndexOf("/")+1);var u=new E(t,B,"#"+a);u.$$parseLinkUrl(n,n);u.$$state=e.state();var F=/^\s*(javascript|mailto):/i;f.on("click",function(a){var d=b.rewriteLinks;if(d&&!a.ctrlKey&&!a.metaKey&&!a.shiftKey&&2!==a.which&&2!==a.button){for(var g=x(a.target);"a"!==za(g[0]);)if(g[0]===
f[0]||!(g=g.parent())[0])return;if(!I(d)||!z(g.attr(d))){d=g.prop("href");var k=g.attr("href")||g.attr("xlink:href");G(d)&&"[object SVGAnimatedString]"===d.toString()&&(d=ha(d.animVal).href);F.test(d)||!d||g.attr("target")||a.isDefaultPrevented()||!u.$$parseLinkUrl(d,k)||(a.preventDefault(),u.absUrl()!==e.url()&&(c.$apply(),h.angular["ff-684208-preventDefault"]=!0))}}});rb(u.absUrl())!==rb(n)&&e.url(u.absUrl(),!0);var r=!0;e.onUrlChange(function(a,b){Ec(a,B)?(c.$evalAsync(function(){var d=u.absUrl(),
e=u.$$state;a=rb(a);u.$$parse(a);u.$$state=b;var f=c.$broadcast("$locationChangeStart",a,d,b,e).defaultPrevented;u.absUrl()===a&&(f?(u.$$parse(d),u.$$state=e,k(d,!1,e)):(r=!1,l(d,e)))}),c.$$phase||c.$digest()):h.location.href=a});c.$watch(function(){if(r||u.$$urlUpdatedByLocation){u.$$urlUpdatedByLocation=!1;var b=rb(e.url()),f=rb(u.absUrl()),h=e.state(),m=u.$$replace,w=d(b,f,function(){return new E(t,B,"#"+a)}),n=u.$$html5&&g.history&&h!==u.$$state,F=b!==f||n;if(r||F)r=!1,c.$evalAsync(function(){var a=
u.absUrl(),d=c.$broadcast("$locationChangeStart",a,b,u.$$state,h).defaultPrevented;u.absUrl()===a&&(d?(u.$$parse(b),u.$$state=h):((r||F&&w)&&k(a,m,h===u.$$state?null:u.$$state),l(b,h)))})}u.$$replace=!1});return u}]}function Bf(){var a=!0,b=this;this.debugEnabled=function(b){return v(b)?(a=b,this):a};this.$get=["$window",function(d){function c(a){gc(a)&&(a.stack&&g?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));return a}function e(a){var b=d.console||{},e=b[a]||b.log||H;return function(){var a=[];p(arguments,function(b){a.push(c(b))});return Function.prototype.apply.call(e,b,a)}}var g=La||/\bEdge\//.test(d.navigator&&d.navigator.userAgent);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 Cf(a){return a+""}function Df(a,b){return"undefined"!==typeof a?a:b}function Cd(a,b){return"undefined"===
typeof a?b:"undefined"===typeof b?a:a+b}function Ef(a,b){switch(a.type){case q.MemberExpression:if(a.computed)return!1;break;case q.UnaryExpression:return 1;case q.BinaryExpression:return"+"!==a.operator?1:!1;case q.CallExpression:return!1}return void 0===b?Dd:b}function Z(a,b,d){var c=a.isPure=Ef(a,d);switch(a.type){case q.Program:var e=!0;p(a.body,function(a){Z(a.expression,b,c);e=e&&a.expression.constant});a.constant=e;break;case q.Literal:a.constant=!0;a.toWatch=[];break;case q.UnaryExpression:Z(a.argument,
b,c);a.constant=a.argument.constant;a.toWatch=a.argument.toWatch;break;case q.BinaryExpression:Z(a.left,b,c);Z(a.right,b,c);a.constant=a.left.constant&&a.right.constant;a.toWatch=a.left.toWatch.concat(a.right.toWatch);break;case q.LogicalExpression:Z(a.left,b,c);Z(a.right,b,c);a.constant=a.left.constant&&a.right.constant;a.toWatch=a.constant?[]:[a];break;case q.ConditionalExpression:Z(a.test,b,c);Z(a.alternate,b,c);Z(a.consequent,b,c);a.constant=a.test.constant&&a.alternate.constant&&a.consequent.constant;
a.toWatch=a.constant?[]:[a];break;case q.Identifier:a.constant=!1;a.toWatch=[a];break;case q.MemberExpression:Z(a.object,b,c);a.computed&&Z(a.property,b,c);a.constant=a.object.constant&&(!a.computed||a.property.constant);a.toWatch=a.constant?[]:[a];break;case q.CallExpression:e=d=a.filter?!b(a.callee.name).$stateful:!1;var g=[];p(a.arguments,function(a){Z(a,b,c);e=e&&a.constant;g.push.apply(g,a.toWatch)});a.constant=e;a.toWatch=d?g:[a];break;case q.AssignmentExpression:Z(a.left,b,c);Z(a.right,b,c);
a.constant=a.left.constant&&a.right.constant;a.toWatch=[a];break;case q.ArrayExpression:e=!0;g=[];p(a.elements,function(a){Z(a,b,c);e=e&&a.constant;g.push.apply(g,a.toWatch)});a.constant=e;a.toWatch=g;break;case q.ObjectExpression:e=!0;g=[];p(a.properties,function(a){Z(a.value,b,c);e=e&&a.value.constant;g.push.apply(g,a.value.toWatch);a.computed&&(Z(a.key,b,!1),e=e&&a.key.constant,g.push.apply(g,a.key.toWatch))});a.constant=e;a.toWatch=g;break;case q.ThisExpression:a.constant=!1;a.toWatch=[];break;
case q.LocalsExpression:a.constant=!1,a.toWatch=[]}}function Ed(a){if(1===a.length){a=a[0].expression;var b=a.toWatch;return 1!==b.length?b:b[0]!==a?b:void 0}}function Fd(a){return a.type===q.Identifier||a.type===q.MemberExpression}function Gd(a){if(1===a.body.length&&Fd(a.body[0].expression))return{type:q.AssignmentExpression,left:a.body[0].expression,right:{type:q.NGValueParameter},operator:"="}}function Hd(a){this.$filter=a}function Id(a){this.$filter=a}function Qb(a,b,d){this.ast=new q(a,d);this.astCompiler=
d.csp?new Id(b):new Hd(b)}function Hc(a){return A(a.valueOf)?a.valueOf():Ff.call(a)}function Gf(){var a=V(),b={"true":!0,"false":!1,"null":null,undefined:void 0},d,c;this.addLiteral=function(a,c){b[a]=c};this.setIdentifierFns=function(a,b){d=a;c=b;return this};this.$get=["$filter",function(e){function g(b,c){switch(typeof b){case "string":var d=b=b.trim();var f=a[d];f||(f=new Rb(t),f=(new Qb(f,e,t)).parse(b),f.constant?f.$$watchDelegate=m:f.oneTime?f.$$watchDelegate=f.literal?l:k:f.inputs&&(f.$$watchDelegate=
h),a[d]=f);return n(f,c);case "function":return n(b,c);default:return n(H,c)}}function f(a,b,c){return null==a||null==b?a===b:"object"!==typeof a||(a=Hc(a),"object"!==typeof a||c)?a===b||a!==a&&b!==b:!1}function h(a,b,c,d,e){var g=d.inputs,h;if(1===g.length){var k=f;g=g[0];return a.$watch(function(a){var b=g(a);f(b,k,g.isPure)||(h=d(a,void 0,void 0,[b]),k=b&&Hc(b));return h},b,c,e)}for(var l=[],w=[],n=0,m=g.length;n<m;n++)l[n]=f,w[n]=null;return a.$watch(function(a){for(var b=!1,c=0,e=g.length;c<
e;c++){var k=g[c](a);if(b||(b=!f(k,l[c],g[c].isPure)))w[c]=k,l[c]=k&&Hc(k)}b&&(h=d(a,void 0,void 0,w));return h},b,c,e)}function k(a,b,c,d,e){function f(a){return d(a)}function g(a,c,d){l=a;A(b)&&b(a,c,d);v(a)&&d.$$postDigest(function(){v(l)&&k()})}var k,l;return k=d.inputs?h(a,g,c,d,e):a.$watch(f,g,c)}function l(a,b,c,d){function e(a){var b=!0;p(a,function(a){v(a)||(b=!1)});return b}var f,g;return f=a.$watch(function(a){return d(a)},function(a,c,d){g=a;A(b)&&b(a,c,d);e(a)&&d.$$postDigest(function(){e(g)&&
f()})},c)}function m(a,b,c,d){var e=a.$watch(function(a){e();return d(a)},b,c);return e}function n(a,b){if(!b)return a;var c=a.$$watchDelegate,d=!1,e=c!==l&&c!==k?function(c,e,f,g){f=d&&g?g[0]:a(c,e,f,g);return b(f,c,e)}:function(c,d,e,f){e=a(c,d,e,f);c=b(e,c,d);return v(e)?c:e};d=!a.inputs;c&&c!==h?(e.$$watchDelegate=c,e.inputs=a.inputs):b.$stateful||(e.$$watchDelegate=h,e.inputs=a.inputs?a.inputs:[a]);e.inputs&&(e.inputs=e.inputs.map(function(a){return a.isPure===Dd?function(b){return a(b)}:a}));
return e}var t={csp:Ea().noUnsafeEval,literals:Ga(b),isIdentifierStart:A(d)&&d,isIdentifierContinue:A(c)&&c};g.$$getAst=function(a){var b=new Rb(t);return(new Qb(b,e,t)).getAst(a).ast};return g}]}function Hf(){var a=!0;this.$get=["$rootScope","$exceptionHandler",function(b,d){return Jd(function(a){b.$evalAsync(a)},d,a)}];this.errorOnUnhandledRejections=function(b){return v(b)?(a=b,this):a}}function If(){var a=!0;this.$get=["$browser","$exceptionHandler",function(b,d){return Jd(function(a){b.defer(a)},
d,a)}];this.errorOnUnhandledRejections=function(b){return v(b)?(a=b,this):a}}function Jd(a,b,d){function c(){return new e}function e(){var a=this.promise=new g;this.resolve=function(b){k(a,b)};this.reject=function(b){m(a,b)};this.notify=function(b){t(a,b)}}function g(){this.$$state={status:0}}function f(){for(;!O&&v.length;){var a=v.shift();if(!a.pur){a.pur=!0;var c=a.value;c="Possibly unhandled rejection: "+("function"===typeof c?c.toString().replace(/ \{[\s\S]*$/,""):z(c)?"undefined":"string"!==
typeof c?He(c,void 0):c);gc(a.value)?b(a.value,c):b(c)}}}function h(c){!d||c.pending||2!==c.status||c.pur||(0===O&&0===v.length&&a(f),v.push(c));!c.processScheduled&&c.pending&&(c.processScheduled=!0,++O,a(function(){var e=c.pending;c.processScheduled=!1;c.pending=void 0;try{for(var g=0,h=e.length;g<h;++g){c.pur=!0;var l=e[g][0];var n=e[g][c.status];try{A(n)?k(l,n(c.value)):1===c.status?k(l,c.value):m(l,c.value)}catch(Q){m(l,Q),Q&&!0===Q.$$passToExceptionHandler&&b(Q)}}}finally{--O,d&&0===O&&a(f)}}))}
function k(a,b){a.$$state.status||(b===a?n(a,r("qcycle",b)):l(a,b))}function l(a,b){function c(b){f||(f=!0,l(a,b))}function d(b){f||(f=!0,n(a,b))}function e(b){t(a,b)}var f=!1;try{if(G(b)||A(b))var g=b.then;A(g)?(a.$$state.status=-1,g.call(b,c,d,e)):(a.$$state.value=b,a.$$state.status=1,h(a.$$state))}catch(R){d(R)}}function m(a,b){a.$$state.status||n(a,b)}function n(a,b){a.$$state.value=b;a.$$state.status=2;h(a.$$state)}function t(c,d){var e=c.$$state.pending;0>=c.$$state.status&&e&&e.length&&a(function(){for(var a,
c,f=0,g=e.length;f<g;f++){c=e[f][0];a=e[f][3];try{t(c,A(a)?a(d):d)}catch(R){b(R)}}})}function E(a){var b=new g;m(b,a);return b}function B(a,b,c){var d=null;try{A(c)&&(d=c())}catch(Ka){return E(Ka)}return d&&A(d.then)?d.then(function(){return b(a)},E):b(a)}function u(a,b,c,d){var e=new g;k(e,a);return e.then(b,c,d)}function q(a){if(!A(a))throw r("norslvr",a);var b=new g;a(function(a){k(b,a)},function(a){m(b,a)});return b}var r=K("$q",TypeError),O=0,v=[];P(g.prototype,{then:function(a,b,c){if(z(a)&&
z(b)&&z(c))return this;var d=new g;this.$$state.pending=this.$$state.pending||[];this.$$state.pending.push([d,a,b,c]);0<this.$$state.status&&h(this.$$state);return d},"catch":function(a){return this.then(null,a)},"finally":function(a,b){return this.then(function(b){return B(b,y,a)},function(b){return B(b,E,a)},b)}});var y=u;q.prototype=g.prototype;q.defer=c;q.reject=E;q.when=u;q.resolve=y;q.all=function(a){var b=new g,c=0,d=J(a)?[]:{};p(a,function(a,e){c++;u(a).then(function(a){d[e]=a;--c||k(b,d)},
function(a){m(b,a)})});0===c&&k(b,d);return b};q.race=function(a){var b=c();p(a,function(a){u(a).then(b.resolve,b.reject)});return b.promise};return q}function Jf(){this.$get=["$window","$timeout",function(a,b){var d=a.requestAnimationFrame||a.webkitRequestAnimationFrame,c=a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.webkitCancelRequestAnimationFrame,e=(a=!!d)?function(a){var b=d(a);return function(){c(b)}}:function(a){var c=b(a,16.66,!1);return function(){b.cancel(c)}};e.supported=a;return e}]}
function Kf(){function a(a){function b(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=++wb;this.$$ChildScope=null;this.$$suspended=!1}b.prototype=a;return b}var b=10,d=K("$rootScope"),c=null,e=null;this.digestTtl=function(a){arguments.length&&(b=a);return b};this.$get=["$exceptionHandler","$parse","$browser",function(g,f,h){function k(a){a.currentScope.$$destroyed=!0}function l(a){9===La&&(a.$$childHead&&
l(a.$$childHead),a.$$nextSibling&&l(a.$$nextSibling));a.$parent=a.$$nextSibling=a.$$prevSibling=a.$$childHead=a.$$childTail=a.$root=a.$$watchers=null}function m(){this.$id=++wb;this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$suspended=this.$$destroyed=!1;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$$isolateBindings=null}function n(a){if(r.$$phase)throw d("inprog",r.$$phase);r.$$phase=
a}function t(a,b){do a.$$watchersCount+=b;while(a=a.$parent)}function E(a,b,c){do a.$$listenerCount[c]-=b,0===a.$$listenerCount[c]&&delete a.$$listenerCount[c];while(a=a.$parent)}function q(){}function u(){for(;y.length;)try{y.shift()()}catch(w){g(w)}e=null}function F(){null===e&&(e=h.defer(function(){r.$apply(u)}))}m.prototype={constructor:m,$new:function(b,c){c=c||this;if(b){var d=new m;d.$root=this.$root}else 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",k);return d},$watch:function(a,b,d,e){var g=f(a);b=A(b)?b:H;if(g.$$watchDelegate)return g.$$watchDelegate(this,b,d,g,a);var h=this,k=h.$$watchers,l={fn:b,last:q,get:g,exp:e||a,eq:!!d};c=null;k||(k=h.$$watchers=[],k.$$digestWatchIndex=-1);k.unshift(l);k.$$digestWatchIndex++;t(this,1);return function(){var a=eb(k,l);0<=a&&(t(h,-1),a<k.$$digestWatchIndex&&k.$$digestWatchIndex--);
c=null}},$watchGroup:function(a,b){function c(){h=!1;k?(k=!1,b(e,e,g)):b(e,d,g)}var d=Array(a.length),e=Array(a.length),f=[],g=this,h=!1,k=!0;if(!a.length){var l=!0;g.$evalAsync(function(){l&&b(e,e,g)});return function(){l=!1}}if(1===a.length)return this.$watch(a[0],function(a,c,f){e[0]=a;d[0]=c;b(e,a===c?e:d,f)});p(a,function(a,b){a=g.$watch(a,function(a,f){e[b]=a;d[b]=f;h||(h=!0,g.$evalAsync(c))});f.push(a)});return function(){for(;f.length;)f.shift()()}},$watchCollection:function(a,b){function c(a){e=
a;var b;if(!z(e)){if(G(e))if(pa(e))for(g!==n&&(g=n,r=g.length=0,l++),a=e.length,r!==a&&(l++,g.length=r=a),b=0;b<a;b++){var c=g[b];var d=e[b];var f=c!==c&&d!==d;f||c===d||(l++,g[b]=d)}else{g!==m&&(g=m={},r=0,l++);a=0;for(b in e)ua.call(e,b)&&(a++,d=e[b],c=g[b],b in g?(f=c!==c&&d!==d,f||c===d||(l++,g[b]=d)):(r++,g[b]=d,l++));if(r>a)for(b in l++,g)ua.call(e,b)||(r--,delete g[b])}else g!==e&&(g=e,l++);return l}}c.$stateful=!0;var d=this,e,g,h,k=1<b.length,l=0;a=f(a,c);var n=[],m={},t=!0,r=0;return this.$watch(a,
function(){t?(t=!1,b(e,e,d)):b(e,h,d);if(k)if(G(e))if(pa(e)){h=Array(e.length);for(var a=0;a<e.length;a++)h[a]=e[a]}else for(a in h={},e)ua.call(e,a)&&(h[a]=e[a]);else h=e})},$digest:function(){var a,f,k,l,m=b,t=[];n("$digest");h.$$checkUrlChange();this===r&&null!==e&&(h.defer.cancel(e),u());c=null;do{var E=!1;var p=this;for(l=0;l<v.length;l++){try{var y=v[l];var B=y.fn;B(y.scope,y.locals)}catch(ob){g(ob)}c=null}v.length=0;a:do{if(l=!p.$$suspended&&p.$$watchers)for(l.$$digestWatchIndex=l.length;l.$$digestWatchIndex--;)try{if(a=
l[l.$$digestWatchIndex]){var F=a.get;if((f=F(p))!==(k=a.last)&&!(a.eq?va(f,k):aa(f)&&aa(k))){if(E=!0,c=a,a.last=a.eq?Ga(f,null):f,B=a.fn,B(f,k===q?f:k,p),5>m){var O=4-m;t[O]||(t[O]=[]);t[O].push({msg:A(a.exp)?"fn: "+(a.exp.name||a.exp.toString()):a.exp,newVal:f,oldVal:k})}}else if(a===c){E=!1;break a}}}catch(ob){g(ob)}if(!(l=!p.$$suspended&&p.$$watchersCount&&p.$$childHead||p!==this&&p.$$nextSibling))for(;p!==this&&!(l=p.$$nextSibling);)p=p.$parent}while(p=l);if((E||v.length)&&!m--)throw r.$$phase=
null,d("infdig",b,t);}while(E||v.length);for(r.$$phase=null;C<x.length;)try{x[C++]()}catch(ob){g(ob)}x.length=C=0;h.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var a=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this===r&&h.$$applicationDestroyed();t(this,-this.$$watchersCount);for(var b in this.$$listenerCount)E(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=H;this.$on=this.$watch=this.$watchGroup=function(){return H};this.$$listeners={};this.$$nextSibling=null;l(this)}},$eval:function(a,b){return f(a)(this,b)},$evalAsync:function(a,
b){r.$$phase||v.length||h.defer(function(){v.length&&r.$digest()});v.push({scope:this,fn:f(a),locals:b})},$$postDigest:function(a){x.push(a)},$apply:function(a){try{n("$apply");try{return this.$eval(a)}finally{r.$$phase=null}}catch(W){g(W)}finally{try{r.$digest()}catch(W){throw g(W),W;}}},$applyAsync:function(a){function b(){c.$eval(a)}var c=this;a&&y.push(b);a=f(a);F()},$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&&(delete c[d],E(e,1,a))}},$emit:function(a,b){var c=[],d=this,e=!1,f={name:a,targetScope:d,stopPropagation:function(){e=!0},preventDefault:function(){f.defaultPrevented=!0},defaultPrevented:!1},h=fb([f],arguments,1),k;do{var l=d.$$listeners[a]||c;f.currentScope=d;var n=0;for(k=l.length;n<k;n++)if(l[n])try{l[n].apply(null,h)}catch(nb){g(nb)}else l.splice(n,1),n--,k--;if(e)break;d=d.$parent}while(d);
f.currentScope=null;return f},$broadcast:function(a,b){var c=this,d=this,e={name:a,targetScope:this,preventDefault:function(){e.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[a])return e;for(var f=fb([e],arguments,1),h,k;c=d;){e.currentScope=c;d=c.$$listeners[a]||[];h=0;for(k=d.length;h<k;h++)if(d[h])try{d[h].apply(null,f)}catch(Ma){g(Ma)}else d.splice(h,1),h--,k--;if(!(d=c.$$listenerCount[a]&&c.$$childHead||c!==this&&c.$$nextSibling))for(;c!==this&&!(d=c.$$nextSibling);)c=c.$parent}e.currentScope=
null;return e}};var r=new m,v=r.$$asyncQueue=[],x=r.$$postDigestQueue=[],y=r.$$applyAsyncQueue=[],C=0;return r}]}function Lf(){var a=/^\s*(https?|s?ftp|mailto|tel|file):/,b=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(b){return v(b)?(a=b,this):a};this.imgSrcSanitizationWhitelist=function(a){return v(a)?(b=a,this):b};this.$get=function(){return function(d,c){c=c?b:a;var e=ha(d&&d.trim()).href;return""===e||e.match(c)?d:"unsafe:"+e}}}function Mf(){this.$get=
["$window","$document",function(a,b){var d={},c=!((!a.nw||!a.nw.process)&&a.chrome&&(a.chrome.app&&a.chrome.app.runtime||!a.chrome.app&&a.chrome.runtime&&a.chrome.runtime.id))&&a.history&&a.history.pushState,e=parseInt((/android (\d+)/.exec(N((a.navigator||{}).userAgent))||[])[1],10);a=/Boxee/i.test((a.navigator||{}).userAgent);var g=b[0]||{};b=g.body&&g.body.style;var f=!1,h=!1;b&&(f=!!("transition"in b||"webkitTransition"in b),h=!!("animation"in b||"webkitAnimation"in b));return{history:!(!c||4>
e||a),hasEvent:function(a){if("input"===a&&La)return!1;if(z(d[a])){var b=g.createElement("div");d[a]="on"+a in b}return d[a]},csp:Ea(),transitions:f,animations:h,android:e}}]}function Nf(){this.$get=["$rootScope","$browser","$location",function(a,b,d){return{findBindings:function(a,b,d){a=a.getElementsByClassName("ng-binding");var c=[];p(a,function(a){var e=ja.element(a).data("$binding");e&&p(e,function(e){d?(new RegExp("(^|\\s)"+b.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")+
"(\\s|\\||$)")).test(e)&&c.push(a):-1!==e.indexOf(b)&&c.push(a)})});return c},findModels:function(a,b,d){for(var c=["ng-","data-ng-","ng\\:"],e=0;e<c.length;++e){var g=a.querySelectorAll("["+c[e]+"model"+(d?"=":"*=")+'"'+b+'"]');if(g.length)return g}},getLocation:function(){return d.url()},setLocation:function(b){b!==d.url()&&(d.url(b),a.$digest())},whenStable:function(a){b.notifyWhenNoOutstandingRequests(a)}}}]}function Of(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(a,
b,d,c,e){function g(g,k,l){A(g)||(l=k,k=g,g=H);var h=ya.call(arguments,3),n=v(l)&&!l,t=(n?c:d).defer(),p=t.promise;var q=b.defer(function(){try{t.resolve(g.apply(null,h))}catch(u){t.reject(u),e(u)}finally{delete f[p.$$timeoutId]}n||a.$apply()},k);p.$$timeoutId=q;f[q]=t;return p}var f={};g.cancel=function(a){return a&&a.$$timeoutId in f?(f[a.$$timeoutId].promise.$$state.pur=!0,f[a.$$timeoutId].reject("canceled"),delete f[a.$$timeoutId],b.defer.cancel(a.$$timeoutId)):!1};return g}]}function ha(a){if(!I(a))return a;
La&&(ba.setAttribute("href",a),a=ba.href);ba.setAttribute("href",a);return{href:ba.href,protocol:ba.protocol?ba.protocol.replace(/:$/,""):"",host:ba.host,search:ba.search?ba.search.replace(/^\?/,""):"",hash:ba.hash?ba.hash.replace(/^#/,""):"",hostname:ba.hostname,port:ba.port,pathname:"/"===ba.pathname.charAt(0)?ba.pathname:"/"+ba.pathname}}function sf(a){var b=[Kd].concat(a.map(ha));return function(a){a=ha(a);return b.some(Ld.bind(null,a))}}function Ld(a,b){a=ha(a);b=ha(b);return a.protocol===b.protocol&&
a.host===b.host}function Pf(){this.$get=la(D)}function Md(a){function b(a){try{return decodeURIComponent(a)}catch(f){return a}}var d=a[0]||{},c={},e="";return function(){var a;try{var f=d.cookie||""}catch(m){f=""}if(f!==e)for(e=f,f=e.split("; "),c={},a=0;a<f.length;a++){var h=f[a];var k=h.indexOf("=");if(0<k){var l=b(h.substring(0,k));z(c[l])&&(c[l]=b(h.substring(k+1)))}}return c}}function Qf(){this.$get=Md}function Nd(a){function b(d,c){if(G(d)){var e={};p(d,function(a,c){e[c]=b(c,a)});return e}return a.factory(d+
"Filter",c)}this.register=b;this.$get=["$injector",function(a){return function(b){return a.get(b+"Filter")}}];b("currency",Od);b("date",Pd);b("filter",Rf);b("json",Sf);b("limitTo",Tf);b("lowercase",Uf);b("number",Qd);b("orderBy",Rd);b("uppercase",Vf)}function Rf(){return function(a,b,d,c){if(!pa(a)){if(null==a)return a;throw K("filter")("notarray",a);}c=c||"$";switch(Ic(b)){case "function":break;case "boolean":case "null":case "number":case "string":var e=!0;case "object":b=Wf(b,d,c,e);break;default:return a}return Array.prototype.filter.call(a,
b)}}function Wf(a,b,d,c){var e=G(a)&&d in a;!0===b?b=va:A(b)||(b=function(a,b){if(z(a))return!1;if(null===a||null===b)return a===b;if(G(b)||G(a)&&!fc(a))return!1;a=N(""+a);b=N(""+b);return-1!==a.indexOf(b)});return function(g){return e&&!G(g)?Oa(g,a[d],b,d,!1):Oa(g,a,b,d,c)}}function Oa(a,b,d,c,e,g){var f=Ic(a),h=Ic(b);if("string"===h&&"!"===b.charAt(0))return!Oa(a,b.substring(1),d,c,e);if(J(a))return a.some(function(a){return Oa(a,b,d,c,e)});switch(f){case "object":var k;if(e){for(k in a)if(k.charAt&&
"$"!==k.charAt(0)&&Oa(a[k],b,d,c,!0))return!0;return g?!1:Oa(a,b,d,c,!1)}if("object"===h){for(k in b)if(g=b[k],!A(g)&&!z(g)&&(f=k===c,!Oa(f?a:a[k],g,d,c,f,f)))return!1;return!0}return d(a,b);case "function":return!1;default:return d(a,b)}}function Ic(a){return null===a?"null":typeof a}function Od(a){var b=a.NUMBER_FORMATS;return function(a,c,e){z(c)&&(c=b.CURRENCY_SYM);z(e)&&(e=b.PATTERNS[1].maxFrac);var d=c?/\u00A4/g:/\s*\u00A4\s*/g;return null==a?a:Sd(a,b.PATTERNS[1],b.GROUP_SEP,b.DECIMAL_SEP,e).replace(d,
c)}}function Qd(a){var b=a.NUMBER_FORMATS;return function(a,c){return null==a?a:Sd(a,b.PATTERNS[0],b.GROUP_SEP,b.DECIMAL_SEP,c)}}function Xf(a){var b=0,d,c,e,g;-1<(d=a.indexOf(Td))&&(a=a.replace(Td,""));0<(c=a.search(/e/i))?(0>d&&(d=c),d+=+a.slice(c+1),a=a.substring(0,c)):0>d&&(d=a.length);for(c=0;a.charAt(c)===Jc;c++);if(c===(g=a.length)){var f=[0];d=1}else{for(g--;a.charAt(g)===Jc;)g--;d-=c;f=[];for(e=0;c<=g;c++,e++)f[e]=+a.charAt(c)}d>Ud&&(f=f.splice(0,Ud-1),b=d-1,d=1);return{d:f,e:b,i:d}}function Yf(a,
b,d,c){var e=a.d,g=e.length-a.i;b=z(b)?Math.min(Math.max(d,g),c):+b;d=b+a.i;c=e[d];if(0<d){e.splice(Math.max(a.i,d));for(var f=d;f<e.length;f++)e[f]=0}else for(g=Math.max(0,g),a.i=1,e.length=Math.max(1,d=b+1),e[0]=0,f=1;f<d;f++)e[f]=0;if(5<=c)if(0>d-1){for(c=0;c>d;c--)e.unshift(0),a.i++;e.unshift(1);a.i++}else e[d-1]++;for(;g<Math.max(0,b);g++)e.push(0);if(b=e.reduceRight(function(a,b,c,d){b+=a;d[c]=b%10;return Math.floor(b/10)},0))e.unshift(b),a.i++}function Sd(a,b,d,c,e){if(!I(a)&&!ca(a)||isNaN(a))return"";
var g=!isFinite(a),f=!1,h=Math.abs(a)+"",k="";if(g)k="\u221e";else{f=Xf(h);Yf(f,e,b.minFrac,b.maxFrac);k=f.d;h=f.i;e=f.e;g=[];for(f=k.reduce(function(a,b){return a&&!b},!0);0>h;)k.unshift(0),h++;0<h?g=k.splice(h,k.length):(g=k,k=[0]);h=[];for(k.length>=b.lgSize&&h.unshift(k.splice(-b.lgSize,k.length).join(""));k.length>b.gSize;)h.unshift(k.splice(-b.gSize,k.length).join(""));k.length&&h.unshift(k.join(""));k=h.join(d);g.length&&(k+=c+g.join(""));e&&(k+="e+"+e)}return 0>a&&!f?b.negPre+k+b.negSuf:b.posPre+
k+b.posSuf}function Sb(a,b,d,c){var e="";if(0>a||c&&0>=a)c?a=-a+1:(a=-a,e="-");for(a=""+a;a.length<b;)a=Jc+a;d&&(a=a.substr(a.length-b));return e+a}function da(a,b,d,c,e){d=d||0;return function(g){g=g["get"+a]();if(0<d||g>-d)g+=d;0===g&&-12===d&&(g=12);return Sb(g,b,c,e)}}function sb(a,b,d){return function(c,e){c=c["get"+a]();var g=Ob((d?"STANDALONE":"")+(b?"SHORT":"")+a);return e[g][c]}}function Vd(a){var b=(new Date(a,0,1)).getDay();return new Date(a,0,(4>=b?5:12)-b)}function Wd(a){return function(b){var d=
Vd(b.getFullYear());b=new Date(b.getFullYear(),b.getMonth(),b.getDate()+(4-b.getDay()));return Sb(1+Math.round((+b-+d)/6048E5),a)}}function Kc(a,b){return 0>=a.getFullYear()?b.ERAS[0]:b.ERAS[1]}function Pd(a){function b(a){var b;if(b=a.match(d)){a=new Date(0);var c=0,f=0,h=b[8]?a.setUTCFullYear:a.setFullYear,k=b[8]?a.setUTCHours:a.setHours;b[9]&&(c=parseInt(b[9]+b[10],10),f=parseInt(b[9]+b[11],10));h.call(a,parseInt(b[1],10),parseInt(b[2],10)-1,parseInt(b[3],10));c=parseInt(b[4]||0,10)-c;f=parseInt(b[5]||
0,10)-f;h=parseInt(b[6]||0,10);b=Math.round(1E3*parseFloat("0."+(b[7]||0)));k.call(a,c,f,h,b)}return a}var d=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(c,d,g){var e="",h=[],k,l;d=d||"mediumDate";d=a.DATETIME_FORMATS[d]||d;I(c)&&(c=Zf.test(c)?parseInt(c,10):b(c));ca(c)&&(c=new Date(c));if(!ia(c)||!isFinite(c.getTime()))return c;for(;d;)(l=$f.exec(d))?(h=fb(h,l,1),d=h.pop()):(h.push(d),d=null);var m=c.getTimezoneOffset();g&&
(m=ic(g,m),c=jc(c,g,!0));p(h,function(b){k=ag[b];e+=k?k(c,a.DATETIME_FORMATS,m):"''"===b?"'":b.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return e}}function Sf(){return function(a,b){z(b)&&(b=2);return gb(a,b)}}function Tf(){return function(a,b,d){b=Infinity===Math.abs(Number(b))?Number(b):parseInt(b,10);if(aa(b))return a;ca(a)&&(a=a.toString());if(!pa(a))return a;d=!d||isNaN(d)?0:parseInt(d,10);d=0>d?Math.max(0,a.length+d):d;return 0<=b?Lc(a,d,d+b):0===d?Lc(a,b,a.length):Lc(a,Math.max(0,d+b),d)}}
function Lc(a,b,d){return I(a)?a.slice(b,d):ya.call(a,b,d)}function Rd(a){function b(b){return b.map(function(b){var c=1,d=yb;if(A(b))d=b;else if(I(b)){if("+"===b.charAt(0)||"-"===b.charAt(0))c="-"===b.charAt(0)?-1:1,b=b.substring(1);if(""!==b&&(d=a(b),d.constant)){var e=d();d=function(a){return a[e]}}}return{get:d,descending:c}})}function d(a){switch(typeof a){case "number":case "boolean":case "string":return!0;default:return!1}}function c(a,b){var c=0,d=a.type,e=b.type;if(d===e){e=a.value;var g=
b.value;"string"===d?(e=e.toLowerCase(),g=g.toLowerCase()):"object"===d&&(G(e)&&(e=a.index),G(g)&&(g=b.index));e!==g&&(c=e<g?-1:1)}else c=d<e?-1:1;return c}return function(a,g,f,h){if(null==a)return a;if(!pa(a))throw K("orderBy")("notarray",a);J(g)||(g=[g]);0===g.length&&(g=["+"]);var e=b(g),l=f?-1:1,m=A(h)?h:c;a=Array.prototype.map.call(a,function(a,b){return{value:a,tieBreaker:{value:b,type:"number",index:b},predicateValues:e.map(function(c){var e=c.get(a);c=typeof e;if(null===e)c="string",e="null";
else if("object"===c)a:{if(A(e.valueOf)&&(e=e.valueOf(),d(e)))break a;fc(e)&&(e=e.toString(),d(e))}return{value:e,type:c,index:b}})}});a.sort(function(a,b){for(var d=0,f=e.length;d<f;d++){var g=m(a.predicateValues[d],b.predicateValues[d]);if(g)return g*e[d].descending*l}return(m(a.tieBreaker,b.tieBreaker)||c(a.tieBreaker,b.tieBreaker))*l});return a=a.map(function(a){return a.value})}}function Pa(a){A(a)&&(a={link:a});a.restrict=a.restrict||"AC";return la(a)}function Tb(a,b,d,c,e){this.$$controls=
[];this.$error={};this.$$success={};this.$pending=void 0;this.$name=e(b.name||b.ngForm||"")(d);this.$dirty=!1;this.$valid=this.$pristine=!0;this.$submitted=this.$invalid=!1;this.$$parentForm=Ub;this.$$element=a;this.$$animate=c;Xd(this)}function Xd(a){a.$$classCache={};a.$$classCache[Yd]=!(a.$$classCache[tb]=a.$$element.hasClass(tb))}function Zd(a){function b(a,b,c){c&&!a.$$classCache[b]?(a.$$animate.addClass(a.$$element,b),a.$$classCache[b]=!0):!c&&a.$$classCache[b]&&(a.$$animate.removeClass(a.$$element,
b),a.$$classCache[b]=!1)}function d(a,c,d){c=c?"-"+cd(c,"-"):"";b(a,tb+c,!0===d);b(a,Yd+c,!1===d)}var c=a.set,e=a.unset;a.clazz.prototype.$setValidity=function(a,f,h){z(f)?(this.$pending||(this.$pending={}),c(this.$pending,a,h)):(this.$pending&&e(this.$pending,a,h),$d(this.$pending)&&(this.$pending=void 0));Ra(f)?f?(e(this.$error,a,h),c(this.$$success,a,h)):(c(this.$error,a,h),e(this.$$success,a,h)):(e(this.$error,a,h),e(this.$$success,a,h));this.$pending?(b(this,"ng-pending",!0),this.$valid=this.$invalid=
void 0,d(this,"",null)):(b(this,"ng-pending",!1),this.$valid=$d(this.$error),this.$invalid=!this.$valid,d(this,"",this.$valid));f=this.$pending&&this.$pending[a]?void 0:this.$error[a]?!1:this.$$success[a]?!0:null;d(this,a,f);this.$$parentForm.$setValidity(a,f,this)}}function $d(a){if(a)for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}function Mc(a){a.$formatters.push(function(b){return a.$isEmpty(b)?b:b.toString()})}function Ua(a,b,d,c,e,g){var f=N(b[0].type);if(!e.android){var h=!1;b.on("compositionstart",
function(){h=!0});b.on("compositionupdate",function(a){if(z(a.data)||""===a.data)h=!1});b.on("compositionend",function(){h=!1;l()})}var k,l=function(a){k&&(g.defer.cancel(k),k=null);if(!h){var e=b.val();a=a&&a.type;"password"===f||d.ngTrim&&"false"===d.ngTrim||(e=T(e));(c.$viewValue!==e||""===e&&c.$$hasNativeValidators)&&c.$setViewValue(e,a)}};if(e.hasEvent("input"))b.on("input",l);else{var m=function(a,b,c){k||(k=g.defer(function(){k=null;b&&b.value===c||l(a)}))};b.on("keydown",function(a){var b=
a.keyCode;91===b||15<b&&19>b||37<=b&&40>=b||m(a,this,this.value)});if(e.hasEvent("paste"))b.on("paste cut drop",m)}b.on("change",l);if(ae[f]&&c.$$hasNativeValidators&&f===d.type)b.on("keydown wheel mousedown",function(a){if(!k){var b=this.validity,c=b.badInput,d=b.typeMismatch;k=g.defer(function(){k=null;b.badInput===c&&b.typeMismatch===d||l(a)})}});c.$render=function(){var a=c.$isEmpty(c.$viewValue)?"":c.$viewValue;b.val()!==a&&b.val(a)}}function Vb(a,b){return function(d,c){if(ia(d))return d;if(I(d)){'"'===
d.charAt(0)&&'"'===d.charAt(d.length-1)&&(d=d.substring(1,d.length-1));if(bg.test(d))return new Date(d);a.lastIndex=0;if(d=a.exec(d)){d.shift();var e=c?{yyyy:c.getFullYear(),MM:c.getMonth()+1,dd:c.getDate(),HH:c.getHours(),mm:c.getMinutes(),ss:c.getSeconds(),sss:c.getMilliseconds()/1E3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0};p(d,function(a,c){c<b.length&&(e[b[c]]=+a)});c=new Date(e.yyyy,e.MM-1,e.dd,e.HH,e.mm,e.ss||0,1E3*e.sss||0);100>e.yyyy&&c.setFullYear(e.yyyy);return c}}return NaN}}function ub(a,
b,d,c){return function(e,g,f,h,k,l,m){function n(a){return a&&!(a.getTime&&a.getTime()!==a.getTime())}function t(a){return v(a)&&!ia(a)?p(a)||void 0:a}function p(a,b){var c=h.$options.getOption("timezone");u&&u!==c&&(b=$c(b,ic(u)));a=d(a,b);!isNaN(a)&&c&&(a=jc(a,c));return a}Nc(e,g,f,h);Ua(e,g,f,h,k,l);var q,u;h.$$parserName=a;h.$parsers.push(function(a){if(h.$isEmpty(a))return null;if(b.test(a))return p(a,q)});h.$formatters.push(function(a){if(a&&!ia(a))throw vb("datefmt",a);if(n(a)){q=a;var b=h.$options.getOption("timezone");
b&&(u=b,q=jc(q,b,!0));return m("date")(a,c,b)}u=q=null;return""});if(v(f.min)||f.ngMin){var F;h.$validators.min=function(a){return!n(a)||z(F)||d(a)>=F};f.$observe("min",function(a){F=t(a);h.$validate()})}if(v(f.max)||f.ngMax){var r;h.$validators.max=function(a){return!n(a)||z(r)||d(a)<=r};f.$observe("max",function(a){r=t(a);h.$validate()})}}}function Nc(a,b,d,c){(c.$$hasNativeValidators=G(b[0].validity))&&c.$parsers.push(function(a){var c=b.prop("validity")||{};return c.badInput||c.typeMismatch?void 0:
a})}function be(a){a.$$parserName="number";a.$parsers.push(function(b){if(a.$isEmpty(b))return null;if(cg.test(b))return parseFloat(b)});a.$formatters.push(function(b){if(!a.$isEmpty(b)){if(!ca(b))throw vb("numfmt",b);b=b.toString()}return b})}function Va(a){v(a)&&!ca(a)&&(a=parseFloat(a));return aa(a)?void 0:a}function Oc(a){var b=a.toString(),d=b.indexOf(".");return-1===d?-1<a&&1>a&&(a=/e-(\d+)$/.exec(b))?Number(a[1]):0:b.length-d-1}function ce(a,b,d){a=Number(a);var c=(a|0)!==a,e=(b|0)!==b,g=(d|
0)!==d;if(c||e||g){var f=c?Oc(a):0,h=e?Oc(b):0,k=g?Oc(d):0;f=Math.pow(10,Math.max(f,h,k));a*=f;b*=f;d*=f;c&&(a=Math.round(a));e&&(b=Math.round(b));g&&(d=Math.round(d))}return 0===(a-b)%d}function de(a,b,d,c,e){if(v(c)){a=a(c);if(!a.constant)throw vb("constexpr",d,c);return a(b)}return e}function Pc(a,b){function d(a,b){if(!a||!a.length)return[];if(!b||!b.length)return a;var c=[],d=0;a:for(;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 c(a){var b=
a;J(a)?b=a.map(c).join(" "):G(a)&&(b=Object.keys(a).filter(function(b){return a[b]}).join(" "));return b}function e(a){var b=a;if(J(a))b=a.map(e);else if(G(a)){var c=!1;b=Object.keys(a).filter(function(b){b=a[b];!c&&z(b)&&(c=!0);return b});c&&b.push(void 0)}return b}a="ngClass"+a;var g;return["$parse",function(f){return{restrict:"AC",link:function(h,k,l){function m(a,b){var c=[];p(a,function(a){if(0<b||r[a])r[a]=(r[a]||0)+b,r[a]===+(0<b)&&c.push(a)});return c.join(" ")}function n(a){if(a===b){var c=
x;c=m(c&&c.split(" "),1);l.$addClass(c)}else c=x,c=m(c&&c.split(" "),-1),l.$removeClass(c);v=a}function t(a){a=c(a);a!==x&&q(a)}function q(a){if(v===b){var c=x&&x.split(" "),e=a&&a.split(" "),f=d(c,e);c=d(e,c);f=m(f,-1);c=m(c,1);l.$addClass(c);l.$removeClass(f)}x=a}var B=l[a].trim(),u=":"===B.charAt(0)&&":"===B.charAt(1);B=f(B,u?e:c);var F=u?t:q,r=k.data("$classCounts"),v=!0,x;r||(r=V(),k.data("$classCounts",r));"ngClass"!==a&&(g||(g=f("$index",function(a){return a&1})),h.$watch(g,n));h.$watch(B,
F,u)}}}]}function Wb(a,b,d,c,e,g,f,h,k){this.$modelValue=this.$viewValue=Number.NaN;this.$$rawModelValue=void 0;this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=void 0;this.$name=k(d.name||"",!1)(a);this.$$parentForm=Ub;this.$options=Qc;this.$$updateEvents="";this.$$updateEventHandler=this.$$updateEventHandler.bind(this);
this.$$parsedNgModel=e(d.ngModel);this.$$parsedNgModelAssign=this.$$parsedNgModel.assign;this.$$ngModelGet=this.$$parsedNgModel;this.$$ngModelSet=this.$$parsedNgModelAssign;this.$$pendingDebounce=null;this.$$parserValid=void 0;this.$$currentValidationRunId=0;Object.defineProperty(this,"$$scope",{value:a});this.$$attr=d;this.$$element=c;this.$$animate=g;this.$$timeout=f;this.$$parse=e;this.$$q=h;this.$$exceptionHandler=b;Xd(this);dg(this)}function dg(a){a.$$scope.$watch(function(b){b=a.$$ngModelGet(b);
b===a.$modelValue||a.$modelValue!==a.$modelValue&&b!==b||a.$$setModelValue(b);return b})}function Rc(a){this.$$options=a}function ee(a,b){p(b,function(b,c){v(a[c])||(a[c]=b)})}function Qa(a,b){a.prop("selected",b);a.attr("selected",b)}function eg(){this.SCE_CONTEXTS=$a;this.resourceUrlWhitelist=function(a){throw fa("noresourceurlwhitelist");};this.resourceUrlBlacklist=function(a){throw fa("noresourceurlblacklist");};this.$get=["$injector",function(a){var b=function(a){throw fa("unsafe");};a.has("$sanitize")&&
(b=a.get("$sanitize"));return{trustAs:function(a,b){throw fa("notrustas");},getTrusted:function(d,c){if(null===c||z(c)||""===c)return c;if("string"==typeof c){if(d==$a.TEMPLATE_URL){d=a.has("html2JsTemplatesCached")?!a.get("html2JsTemplatesCached")():!ng.safehtml.googSceHelper.isCOMPILED();if(d&&Ld(c,Kd))return c;throw fa("insecurl",c);}if(d==$a.RESOURCE_URL)throw fa("insecurl",c);if(d==$a.HTML)return b(c);throw fa("unsafe",d);}if(ng.safehtml.googSceHelper.isGoogHtmlType(c))try{return ng.safehtml.googSceHelper.unwrapGivenContext(d,
c)}catch(e){throw fa("googhtml",c,d);}else throw fa("unsafe",d);},valueOf:function(a){if(ng.safehtml.googSceHelper.isGoogHtmlType(a))try{return ng.safehtml.googSceHelper.unwrapAny(a)}catch(c){throw fa("googhtml",a);}else return a}}}]}function fg(){this.enabled=function(a){if(arguments.length)throw fa("nodisabling");return!0};this.$get=["$parse","$sceDelegate",function(a,b){if(8>La)throw fa("iequirks");if("undefined"==typeof ng||!ng.safehtml||!ng.safehtml.googSceHelper)throw fa("nodep");var d=ra($a);
d.isEnabled=function(){return!0};d.trustAs=b.trustAs;d.getTrusted=b.getTrusted;d.valueOf=b.valueOf;d.parseAs=function(b,c){var e=a(c);return e.literal&&e.constant?e:a(c,function(a){return d.getTrusted(b,a)})};var c=d.parseAs,e=d.getTrusted,g=d.trustAs;p($a,function(a,b){b=N(b);d[("parse_as_"+b).replace(Sc,Ba)]=function(b){return c(a,b)};d[("get_trusted_"+b).replace(Sc,Ba)]=function(b){return e(a,b)};d[("trust_as_"+b).replace(Sc,Ba)]=function(b){return g(a,b)}});return d}]}function gg(){var a;this.httpOptions=
function(b){return b?(a=b,this):a};this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(b,d,c,e,g){function f(h,k){f.totalPendingRequests++;if(!I(h)||z(d.get(h)))h=g.getTrustedTemplateUrl(h);var l=c.defaults&&c.defaults.transformResponse;J(l)?l=l.filter(function(a){return a!==Bc}):l===Bc&&(l=null);return c.get(h,P({cache:d,transformResponse:l},a)).finally(function(){f.totalPendingRequests--}).then(function(a){d.put(h,a.data);return a.data},function(a){k||(a=hg("tpload",h,a.status,
a.statusText),b(a));return e.reject(a)})}f.totalPendingRequests=0;return f}]}var Uc={objectMaxDepth:5},ig=/^\/(.+)\/([a-z]*)$/,ua=Object.prototype.hasOwnProperty,N=function(a){return I(a)?a.toLowerCase():a},Ob=function(a){return I(a)?a.toUpperCase():a},x,Fa,ya=[].slice,gf=[].splice,jg=[].push,ma=Object.prototype.toString,Xc=Object.getPrototypeOf,qa=K("ng"),ja=D.angular||(D.angular={}),uc,wb=0;var La=D.document.documentMode;var aa=Number.isNaN||function(a){return a!==a};H.$inject=[];yb.$inject=[];
var J=Array.isArray,xe=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,T=function(a){return I(a)?a.trim():a},Ea=function(){if(!v(Ea.rules)){var a=D.document.querySelector("[ng-csp]")||D.document.querySelector("[data-ng-csp]");if(a){var b=a.getAttribute("ng-csp")||a.getAttribute("data-ng-csp");Ea.rules={noUnsafeEval:!b||-1!==b.indexOf("no-unsafe-eval"),noInlineStyle:!b||-1!==b.indexOf("no-inline-style")}}else{a=Ea;try{new Function(""),b=!1}catch(d){b=!0}a.rules=
{noUnsafeEval:b,noInlineStyle:!1}}}return Ea.rules},Xb=function(){if(v(Xb.name_))return Xb.name_;var a,b,d=Ha.length;for(b=0;b<d;++b){var c=Ha[b];if(a=D.document.querySelector("["+c.replace(":","\\:")+"jq]")){var e=a.getAttribute(c+"jq");break}}return Xb.name_=e},ze=/:/g,Ha=["ng-","data-ng-","ng:","x-ng-"],Ce=function(a){var b=a.currentScript;if(!b)return!0;if(!(b instanceof D.HTMLScriptElement||b instanceof D.SVGScriptElement))return!1;b=b.attributes;return[b.getNamedItem("src"),b.getNamedItem("href"),
b.getNamedItem("xlink:href")].every(function(b){if(!b)return!0;if(!b.value)return!1;var c=a.createElement("a");c.href=b.value;if(a.location.origin===c.origin)return!0;switch(c.protocol){case "http:":case "https:":case "ftp:":case "blob:":case "file:":case "data:":return!0;default:return!1}})}(D.document),Fe=/[A-Z]/g,fe=!1,Sa=3,kg={full:"1.6.4-local+sha.617b36117",major:1,minor:6,dot:void 0,codeName:"undefined"};Y.expando="ng339";var lb=Y.cache={},Le=1;Y._data=function(a){return this.cache[a[this.expando]]||
{}};var Eb=/-([a-z])/g,lg=/^-ms-/,Db={mouseleave:"mouseout",mouseenter:"mouseover"},pc=K("jqLite"),Ke=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,oc=/<|&#?\w+;/,Ie=/<([\w:-]+)/,Je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,oa={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,"",""]};oa.optgroup=
oa.option;oa.tbody=oa.tfoot=oa.colgroup=oa.caption=oa.thead;oa.th=oa.td;var Qe=D.Node.prototype.contains||function(a){return!!(this.compareDocumentPosition(a)&16)},Za=Y.prototype={ready:fd,toString:function(){var a=[];p(this,function(b){a.push(""+b)});return"["+a.join(", ")+"]"},eq:function(a){return 0<=a?x(this[a]):x(this[this.length+a])},length:0,push:jg,sort:[].sort,splice:[].splice},Kb={};p("multiple selected checked disabled readOnly required open".split(" "),function(a){Kb[N(a)]=a});var kd=
{};p("input select option textarea button form details".split(" "),function(a){kd[a]=!0});var rd={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};p({data:tc,removeData:sc,hasData:function(a){for(var b in lb[a.ng339])return!0;return!1},cleanData:function(a){for(var b=0,d=a.length;b<d;b++)sc(a[b])}},function(a,b){Y[b]=a});p({data:tc,inheritedData:Ib,scope:function(a){return x.data(a,"$scope")||Ib(a.parentNode||a,["$isolateScope","$scope"])},
isolateScope:function(a){return x.data(a,"$isolateScope")||x.data(a,"$isolateScopeNoTemplate")},controller:hd,injector:function(a){return Ib(a,"$injector")},removeAttr:function(a,b){a.removeAttribute(b)},hasClass:Fb,css:function(a,b,d){b=b.replace(lg,"ms-").replace(Eb,Ba);if(v(d))a.style[b]=d;else return a.style[b]},attr:function(a,b,d){var c=a.nodeType;if(c!==Sa&&2!==c&&8!==c&&a.getAttribute){c=N(b);var e=Kb[c];if(v(d))null===d||!1===d&&e?a.removeAttribute(b):a.setAttribute(b,e?c:d);else return a=
a.getAttribute(b),e&&null!==a&&(a=c),null===a?void 0:a}},prop:function(a,b,d){if(v(d))a[b]=d;else return a[b]},text:function(){function a(a,d){if(z(d))return d=a.nodeType,1===d||d===Sa?a.textContent:"";a.textContent=d}a.$dv="";return a}(),val:function(a,b){if(z(b)){if(a.multiple&&"select"===za(a)){var d=[];p(a.options,function(a){a.selected&&d.push(a.value||a.text)});return d}return a.value}a.value=b},html:function(a,b){if(z(b))return a.innerHTML;Bb(a,!0);a.innerHTML=b},empty:id},function(a,b){Y.prototype[b]=
function(b,c){var d,g,f=this.length;if(a!==id&&z(2===a.length&&a!==Fb&&a!==hd?b:c)){if(G(b)){for(d=0;d<f;d++)if(a===tc)a(this[d],b);else for(g in b)a(this[d],g,b[g]);return this}d=a.$dv;f=z(d)?Math.min(f,1):f;for(g=0;g<f;g++){var h=a(this[g],b,c);d=d?d+h:h}return d}for(d=0;d<f;d++)a(this[d],b,c);return this}});p({removeData:sc,on:function(a,b,d,c){if(v(c))throw pc("onargs");if(nc(a)){c=Cb(a,!0);var e=c.events,g=c.handle;g||(g=c.handle=Ne(a,e));c=0<=b.indexOf(" ")?b.split(" "):[b];for(var f=c.length,
h=function(b,c,f){var h=e[b];h||(h=e[b]=[],h.specialHandlerWrapper=c,"$destroy"===b||f||a.addEventListener(b,g));h.push(d)};f--;)b=c[f],Db[b]?(h(Db[b],Pe),h(b,void 0,!0)):h(b)}},off:gd,one:function(a,b,d){a=x(a);a.on(b,function e(){a.off(b,d);a.off(b,e)});a.on(b,d)},replaceWith:function(a,b){var d,c=a.parentNode;Bb(a);p(new Y(b),function(b){d?c.insertBefore(b,d.nextSibling):c.replaceChild(b,a);d=b})},children:function(a){var b=[];p(a.childNodes,function(a){1===a.nodeType&&b.push(a)});return b},contents:function(a){return a.contentDocument||
a.childNodes||[]},append:function(a,b){var d=a.nodeType;if(1===d||11===d){b=new Y(b);d=0;for(var c=b.length;d<c;d++)a.appendChild(b[d])}},prepend:function(a,b){if(1===a.nodeType){var d=a.firstChild;p(new Y(b),function(b){a.insertBefore(b,d)})}},wrap:function(a,b){b=x(b).eq(0).clone()[0];var d=a.parentNode;d&&d.replaceChild(b,a);b.appendChild(a)},remove:Jb,detach:function(a){Jb(a,!0)},after:function(a,b){var d=a;if(a=a.parentNode){b=new Y(b);for(var c=0,e=b.length;c<e;c++){var g=b[c];a.insertBefore(g,
d.nextSibling);d=g}}},addClass:Hb,removeClass:Gb,toggleClass:function(a,b,d){b&&p(b.split(" "),function(b){var c=d;z(c)&&(c=!Fb(a,b));(c?Hb:Gb)(a,b)})},parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},next:function(a){return a.nextElementSibling},find:function(a,b){return a.getElementsByTagName?a.getElementsByTagName(b):[]},clone:rc,triggerHandler:function(a,b,d){var c=b.type||b,e=Cb(a);if(e=(e=e&&e.events)&&e[c]){var g={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===
this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:H,type:c,target:a};b.type&&(g=P(g,b));b=ra(e);var f=d?[g].concat(d):[g];p(b,function(b){g.isImmediatePropagationStopped()||b.apply(a,f)})}}},function(a,b){Y.prototype[b]=function(b,c,e){for(var d,f=0,h=this.length;f<h;f++)z(d)?(d=a(this[f],b,c,e),v(d)&&(d=x(d))):qc(d,a(this[f],b,c,e));return v(d)?d:this}});
Y.prototype.bind=Y.prototype.on;Y.prototype.unbind=Y.prototype.off;var mg=Object.create(null);ld.prototype={_idx:function(a){if(a===this._lastKey)return this._lastIndex;this._lastKey=a;return this._lastIndex=this._keys.indexOf(a)},_transformKey:function(a){return aa(a)?mg:a},get:function(a){a=this._transformKey(a);a=this._idx(a);if(-1!==a)return this._values[a]},set:function(a,b){a=this._transformKey(a);var d=this._idx(a);-1===d&&(d=this._lastIndex=this._keys.length);this._keys[d]=a;this._values[d]=
b},delete:function(a){a=this._transformKey(a);a=this._idx(a);if(-1===a)return!1;this._keys.splice(a,1);this._values.splice(a,1);this._lastKey=NaN;this._lastIndex=-1;return!0}};var Lb=ld,og=[function(){this.$get=[function(){return Lb}]}],Te=/^([^(]+?)=>/,Ue=/^[^(]*\(\s*([^)]*)\)/m,pg=/,/,qg=/^\s*(_?)(\S+?)\1\s*$/,Se=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,Ca=K("$injector");ib.$$annotate=function(a,b,d){var c;if("function"===typeof a){if(!(c=a.$inject)){c=[];if(a.length){if(b)throw I(d)&&d||(d=a.name||Ve(a)),
Ca("strictdi",d);b=md(a);p(b[1].split(pg),function(a){a.replace(qg,function(a,b,d){c.push(d)})})}a.$inject=c}}else J(a)?(b=a.length-1,zb(a[b],"fn"),c=a.slice(0,b)):zb(a,"fn",!0);return c};var ge=K("$animate"),rg=function(){this.$get=H},sg=function(){var a=new Lb,b=[];this.$get=["$$AnimateRunner","$rootScope",function(d,c){function e(a,b,c){var d=!1;b&&(b=I(b)?b.split(" "):J(b)?b:[],p(b,function(b){b&&(d=!0,a[b]=c)}));return d}function g(){p(b,function(b){var c=a.get(b);if(c){var d=Xe(b.attr("class")),
e="",f="";p(c,function(a,b){a!==!!d[b]&&(a?e+=(e.length?" ":"")+b:f+=(f.length?" ":"")+b)});p(b,function(a){e&&Hb(a,e);f&&Gb(a,f)});a.delete(b)}});b.length=0}return{enabled:H,on:H,off:H,pin:H,push:function(f,h,k,l){l&&l();k=k||{};k.from&&f.css(k.from);k.to&&f.css(k.to);if(k.addClass||k.removeClass)if(h=k.addClass,l=k.removeClass,k=a.get(f)||{},h=e(k,h,!0),l=e(k,l,!1),h||l)a.set(f,k),b.push(f),1===b.length&&c.$$postDigest(g);f=new d;f.complete();return f}}}]},tg=["$provide",function(a){var b=this,
d=null,c=null;this.$$registeredAnimations=Object.create(null);this.register=function(c,d){if(c&&"."!==c.charAt(0))throw ge("notcsel",c);var e=c+"-animation";b.$$registeredAnimations[c.substr(1)]=e;a.factory(e,d)};this.customFilter=function(a){1===arguments.length&&(c=A(a)?a:null);return c};this.classNameFilter=function(a){if(1===arguments.length&&(d=a instanceof RegExp?a:null)&&/[(\s|\/)]ng-animate[(\s|\/)]/.test(d.toString()))throw d=null,ge("nongcls","ng-animate");return d};this.$get=["$$animateQueue",
function(a){function b(a,b,c){if(c){var d;a:{for(d=0;d<c.length;d++){var e=c[d];if(1===e.nodeType){d=e;break a}}d=void 0}!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,g){d=d&&x(d);e=e&&x(e);d=d||e.parent();b(c,d,e);return a.push(c,"enter",sa(g))},move:function(c,d,e,g){d=d&&x(d);e=e&&x(e);d=d||e.parent();b(c,d,e);return a.push(c,"move",sa(g))},leave:function(b,
c){return a.push(b,"leave",sa(c),function(){b.remove()})},addClass:function(b,c,d){d=sa(d);d.addClass=mb(d.addclass,c);return a.push(b,"addClass",d)},removeClass:function(b,c,d){d=sa(d);d.removeClass=mb(d.removeClass,c);return a.push(b,"removeClass",d)},setClass:function(b,c,d,e){e=sa(e);e.addClass=mb(e.addClass,c);e.removeClass=mb(e.removeClass,d);return a.push(b,"setClass",e)},animate:function(b,c,d,e,g){g=sa(g);g.from=g.from?P(g.from,c):c;g.to=g.to?P(g.to,d):d;g.tempClasses=mb(g.tempClasses,e||
"ng-inline-animate");return a.push(b,"animate",g)}}}]}],ug=function(){this.$get=["$$rAF",function(a){function b(b){d.push(b);1<d.length||a(function(){for(var a=0;a<d.length;a++)d[a]();d=[]})}var d=[];return function(){var a=!1;b(function(){a=!0});return function(c){a?c():b(c)}}}]},vg=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(a,b,d,c,e){function g(a){this.setHost(a);var b=d();this._doneCallbacks=[];this._tick=function(a){c()?e(a,0,!1):b(a)};
this._state=0}g.chain=function(a,b){function c(){if(d===a.length)b(!0);else a[d](function(a){!1===a?b(!1):(d++,c())})}var d=0;c()};g.all=function(a,b){function c(c){e=e&&c;++d===a.length&&b(e)}var d=0,e=!0;p(a,function(a){a.done(c)})};g.prototype={setHost:function(a){this.host=a||{}},done:function(a){2===this._state?a():this._doneCallbacks.push(a)},progress:H,getPromise:function(){if(!this.promise){var b=this;this.promise=a(function(a,c){b.done(function(b){!1===b?c():a()})})}return this.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)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end();this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel();this._resolve(!1)},complete:function(a){var b=this;0===b._state&&(b._state=1,b._tick(function(){b._resolve(a)}))},
_resolve:function(a){2!==this._state&&(p(this._doneCallbacks,function(b){b(a)}),this._doneCallbacks.length=0,this._state=2)}};return g}]},wg=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(a,b,d){return function(b,e){function c(){a(function(){f.addClass&&(b.addClass(f.addClass),f.addClass=null);f.removeClass&&(b.removeClass(f.removeClass),f.removeClass=null);f.to&&(b.css(f.to),f.to=null);h||k.complete();h=!0});return k}var f=e||{};f.$$prepared||(f=Ga(f));f.cleanupStyles&&(f.from=f.to=
null);f.from&&(b.css(f.from),f.from=null);var h,k=new d;return{start:c,end:c}}}]},ea=K("$compile"),zc=new function(){};nd.$inject=["$provide","$$sanitizeUriProvider"];Mb.prototype.isFirstChange=function(){return this.previousValue===zc};var od=/^((?:x|data)[:\-_])/i,ff=/[:\-_]+(.)/g,td=K("$controller"),sd=/^(\S+)(\s+as\s+([\w$]+))?$/,xg=function(){this.$get=["$document",function(a){return function(b){b?!b.nodeType&&b instanceof x&&(b=b[0]):b=a[0].body;return b.offsetWidth+1}}]},ud="application/json",
Cc={"Content-Type":ud+";charset=utf-8"},pf=/^\[|^\{(?!\{)/,qf={"[":/]$/,"{":/}$/},of=/^\)]\}',?\n/,Nb=K("$http"),Na=ja.$interpolateMinErr=K("$interpolate");Na.throwNoconcat=function(a){throw Na("noconcat",a);};Na.interr=function(a,b){return Na("interr",a,b.toString())};var yg=function(){this.$get=function(){function a(a){var b=function(a){b.data=a;b.called=!0};b.id=a;return b}var b=ja.callbacks,d={};return{createCallback:function(c){c="_"+(b.$$counter++).toString(36);var e="angular.callbacks."+c,
g=a(c);d[e]=b[c]=g;return e},wasCalled:function(a){return d[a].called},getResponse:function(a){return d[a].data},removeCallback:function(a){delete b[d[a].id];delete d[a]}}}},zg=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,yf={http:80,https:443,ftp:21},qb=K("$location"),zf=/^\s*[\\/]{2,}/,Ag={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:Pb("$$absUrl"),url:function(a){if(z(a))return this.$$url;var b=zg.exec(a);(b[1]||""===a)&&this.path(decodeURIComponent(b[1]));(b[2]||b[1]||""===a)&&this.search(b[3]||"");this.hash(b[5]||
"");return this},protocol:Pb("$$protocol"),host:Pb("$$host"),port:Pb("$$port"),path:Bd("$$path",function(a){a=null!==a?a.toString():"";return"/"===a.charAt(0)?a:"/"+a}),search:function(a,b){switch(arguments.length){case 0:return this.$$search;case 1:if(I(a)||ca(a))a=a.toString(),this.$$search=kc(a);else if(G(a))a=Ga(a,{}),p(a,function(b,c){null==b&&delete a[c]}),this.$$search=a;else throw qb("isrcharg");break;default:z(b)||null===b?delete this.$$search[a]:this.$$search[a]=b}this.$$compose();return this},
hash:Bd("$$hash",function(a){return null!==a?a.toString():""}),replace:function(){this.$$replace=!0;return this}};p([Ad,Gc,Fc],function(a){a.prototype=Object.create(Ag);a.prototype.state=function(b){if(!arguments.length)return this.$$state;if(a!==Fc||!this.$$html5)throw qb("nostate");this.$$state=z(b)?null:b;this.$$urlUpdatedByLocation=!0;return this}});var ab=K("$parse"),Ff={}.constructor.prototype.valueOf,Yb=V();p("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(a){Yb[a]=!0});
var Bg={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Rb=function(a){this.options=a};Rb.prototype={constructor:Rb,lex:function(a){this.text=a;this.index=0;for(this.tokens=[];this.index<this.text.length;)if(a=this.text.charAt(this.index),'"'===a||"'"===a)this.readString(a);else if(this.isNumber(a)||"."===a&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(a,"(){}[].,;:?"))this.tokens.push({index:this.index,text:a}),
this.index++;else if(this.isWhitespace(a))this.index++;else{var b=a+this.peek(),d=b+this.peek(2),c=Yb[b],e=Yb[d];Yb[a]||c||e?(a=e?d:c?b:a,this.tokens.push({index:this.index,text:a,operator:!0}),this.index+=a.length):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){a=a||1;return this.index+a<this.text.length?this.text.charAt(this.index+a):!1},isNumber:function(a){return"0"<=a&&"9">=a&&"string"===typeof a},
isWhitespace:function(a){return" "===a||"\r"===a||"\t"===a||"\n"===a||"\v"===a||"\u00a0"===a},isIdentifierStart:function(a){return this.options.isIdentifierStart?this.options.isIdentifierStart(a,this.codePointAt(a)):this.isValidIdentifierStart(a)},isValidIdentifierStart:function(a){return"a"<=a&&"z">=a||"A"<=a&&"Z">=a||"_"===a||"$"===a},isIdentifierContinue:function(a){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(a,this.codePointAt(a)):this.isValidIdentifierContinue(a)},
isValidIdentifierContinue:function(a,b){return this.isValidIdentifierStart(a,b)||this.isNumber(a)},codePointAt:function(a){return 1===a.length?a.charCodeAt(0):(a.charCodeAt(0)<<10)+a.charCodeAt(1)-56613888},peekMultichar:function(){var a=this.text.charAt(this.index),b=this.peek();if(!b)return a;var d=a.charCodeAt(0),c=b.charCodeAt(0);return 55296<=d&&56319>=d&&56320<=c&&57343>=c?a+b:a},isExpOperator:function(a){return"-"===a||"+"===a||this.isNumber(a)},throwError:function(a,b,d){d=d||this.index;b=
v(b)?"s "+b+"-"+this.index+" ["+this.text.substring(b,d)+"]":" "+d;throw ab("lexerr",a,b,this.text);},readNumber:function(){for(var a="",b=this.index;this.index<this.text.length;){var d=N(this.text.charAt(this.index));if("."===d||this.isNumber(d))a+=d;else{var c=this.peek();if("e"===d&&this.isExpOperator(c))a+=d;else if(this.isExpOperator(d)&&c&&this.isNumber(c)&&"e"===a.charAt(a.length-1))a+=d;else if(!this.isExpOperator(d)||c&&this.isNumber(c)||"e"!==a.charAt(a.length-1))break;else this.throwError("Invalid exponent")}this.index++}this.tokens.push({index:b,
text:a,constant:!0,value:Number(a)})},readIdent:function(){var a=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var b=this.peekMultichar();if(!this.isIdentifierContinue(b))break;this.index+=b.length}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 d="",c=a,e=!1;this.index<this.text.length;){var g=this.text.charAt(this.index);c+=g;if(e)"u"===g?(e=this.text.substring(this.index+
1,this.index+5),e.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+e+"]"),this.index+=4,d+=String.fromCharCode(parseInt(e,16))):d+=Bg[g]||g,e=!1;else if("\\"===g)e=!0;else{if(g===a){this.index++;this.tokens.push({index:b,text:c,constant:!0,value:d});return}d+=g}this.index++}this.throwError("Unterminated quote",b)}};var q=function(a,b){this.lexer=a;this.options=b};q.Program="Program";q.ExpressionStatement="ExpressionStatement";q.AssignmentExpression="AssignmentExpression";q.ConditionalExpression=
"ConditionalExpression";q.LogicalExpression="LogicalExpression";q.BinaryExpression="BinaryExpression";q.UnaryExpression="UnaryExpression";q.CallExpression="CallExpression";q.MemberExpression="MemberExpression";q.Identifier="Identifier";q.Literal="Literal";q.ArrayExpression="ArrayExpression";q.Property="Property";q.ObjectExpression="ObjectExpression";q.ThisExpression="ThisExpression";q.LocalsExpression="LocalsExpression";q.NGValueParameter="NGValueParameter";q.prototype={ast:function(a){this.text=
a;this.tokens=this.lexer.lex(a);a=this.program();0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]);return a},program:function(){for(var a=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&a.push(this.expressionStatement()),!this.expect(";"))return{type:q.Program,body:a}},expressionStatement:function(){return{type:q.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var a=this.expression();this.expect("|");)a=this.filter(a);return a},
expression:function(){return this.assignment()},assignment:function(){var a=this.ternary();if(this.expect("=")){if(!Fd(a))throw ab("lval");a={type:q.AssignmentExpression,left:a,right:this.assignment(),operator:"="}}return a},ternary:function(){var a=this.logicalOR();if(this.expect("?")){var b=this.expression();if(this.consume(":")){var d=this.expression();return{type:q.ConditionalExpression,test:a,alternate:b,consequent:d}}}return a},logicalOR:function(){for(var a=this.logicalAND();this.expect("||");)a=
{type:q.LogicalExpression,operator:"||",left:a,right:this.logicalAND()};return a},logicalAND:function(){for(var a=this.equality();this.expect("&&");)a={type:q.LogicalExpression,operator:"&&",left:a,right:this.equality()};return a},equality:function(){for(var a=this.relational(),b;b=this.expect("==","!=","===","!==");)a={type:q.BinaryExpression,operator:b.text,left:a,right:this.relational()};return a},relational:function(){for(var a=this.additive(),b;b=this.expect("<",">","<=",">=");)a={type:q.BinaryExpression,
operator:b.text,left:a,right:this.additive()};return a},additive:function(){for(var a=this.multiplicative(),b;b=this.expect("+","-");)a={type:q.BinaryExpression,operator:b.text,left:a,right:this.multiplicative()};return a},multiplicative:function(){for(var a=this.unary(),b;b=this.expect("*","/","%");)a={type:q.BinaryExpression,operator:b.text,left:a,right:this.unary()};return a},unary:function(){var a;return(a=this.expect("+","-","!"))?{type:q.UnaryExpression,operator:a.text,prefix:!0,argument:this.unary()}:
this.primary()},primary:function(){if(this.expect("(")){var a=this.filterChain();this.consume(")")}else this.expect("[")?a=this.arrayDeclaration():this.expect("{")?a=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?a=Ga(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?a={type:q.Literal,value:this.options.literals[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:q.CallExpression,callee:a,arguments:this.parseArguments()},this.consume(")")):"["===b.text?(a={type:q.MemberExpression,object:a,property:this.expression(),computed:!0},this.consume("]")):"."===b.text?a={type:q.MemberExpression,object:a,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return a},filter:function(a){a=[a];for(var b={type:q.CallExpression,callee:this.identifier(),arguments:a,filter:!0};this.expect(":");)a.push(this.expression());
return b},parseArguments:function(){var a=[];if(")"!==this.peekToken().text){do a.push(this.filterChain());while(this.expect(","))}return a},identifier:function(){var a=this.consume();a.identifier||this.throwError("is not a valid identifier",a);return{type:q.Identifier,name:a.text}},constant:function(){return{type:q.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(","))}this.consume("]");
return{type:q.ArrayExpression,elements:a}},object:function(){var a=[];if("}"!==this.peekToken().text){do{if(this.peek("}"))break;var b={type:q.Property,kind:"init"};this.peek().constant?(b.key=this.constant(),b.computed=!1,this.consume(":"),b.value=this.expression()):this.peek().identifier?(b.key=this.identifier(),b.computed=!1,this.peek(":")?(this.consume(":"),b.value=this.expression()):b.value=b.key):this.peek("[")?(this.consume("["),b.key=this.expression(),this.consume("]"),b.computed=!0,this.consume(":"),
b.value=this.expression()):this.throwError("invalid key",this.peek());a.push(b)}while(this.expect(","))}this.consume("}");return{type:q.ObjectExpression,properties:a}},throwError:function(a,b){throw ab("syntax",b.text,a,b.index+1,this.text,this.text.substring(b.index));},consume:function(a){if(0===this.tokens.length)throw ab("ueoe",this.text);var b=this.expect(a);b||this.throwError("is unexpected, expecting ["+a+"]",this.peek());return b},peekToken:function(){if(0===this.tokens.length)throw ab("ueoe",
this.text);return this.tokens[0]},peek:function(a,b,d,c){return this.peekAhead(0,a,b,d,c)},peekAhead:function(a,b,d,c,e){if(this.tokens.length>a){a=this.tokens[a];var g=a.text;if(g===b||g===d||g===c||g===e||!(b||d||c||e))return a}return!1},expect:function(a,b,d,c){return(a=this.peek(a,b,d,c))?(this.tokens.shift(),a):!1},selfReferential:{"this":{type:q.ThisExpression},$locals:{type:q.LocalsExpression}}};var Dd=2;Hd.prototype={compile:function(a){var b=this;this.state={nextId:0,filters:{},fn:{vars:[],
body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]};Z(a,b.$filter);var d="",c;this.stage="assign";if(c=Gd(a))this.state.computing="assign",d=this.nextId(),this.recurse(c,d),this.return_(d),d="fn.assign="+this.generateFunction("assign","s,v,l");c=Ed(a.body);b.stage="inputs";p(c,function(a,c){var d="fn"+c;b.state[d]={vars:[],body:[],own:{}};b.state.computing=d;var e=b.nextId();b.recurse(a,e);b.return_(e);b.state.inputs.push({name:d,isPure:a.isPure});a.watchId=c});this.state.computing="fn";this.stage=
"main";this.recurse(a);a='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+d+this.watchFns()+"return fn;";a=(new Function("$filter","getStringValue","ifDefined","plus",a))(this.$filter,Cf,Df,Cd);this.state=this.stage=void 0;return a},USE:"use",STRICT:"strict",watchFns:function(){var a=[],b=this.state.inputs,d=this;p(b,function(b){a.push("var "+b.name+"="+d.generateFunction(b.name,"s"));b.isPure&&a.push(b.name,".isPure="+JSON.stringify(b.isPure)+
";")});b.length&&a.push("fn.inputs=["+b.map(function(a){return a.name}).join(",")+"];");return a.join("")},generateFunction:function(a,b){return"function("+b+"){"+this.varsPrefix(a)+this.body(a)+"};"},filterPrefix:function(){var a=[],b=this;p(this.state.filters,function(d,c){a.push(d+"=$filter("+b.escape(c)+")")});return 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,c,e,g){var f=this;c=c||H;if(!g&&v(a.watchId))b=b||this.nextId(),this.if_("i",this.lazyAssign(b,this.computedMember("i",a.watchId)),this.lazyRecurse(a,b,d,c,e,!0));else switch(a.type){case q.Program:p(a.body,function(b,c){f.recurse(b.expression,void 0,void 0,function(a){l=a});c!==a.body.length-1?f.current().body.push(l,";"):f.return_(l)});break;case q.Literal:var h=this.escape(a.value);this.assign(b,h);c(b||h);break;case q.UnaryExpression:this.recurse(a.argument,void 0,void 0,
function(a){l=a});h=a.operator+"("+this.ifDefined(l,0)+")";this.assign(b,h);c(h);break;case q.BinaryExpression:this.recurse(a.left,void 0,void 0,function(a){k=a});this.recurse(a.right,void 0,void 0,function(a){l=a});h="+"===a.operator?this.plus(k,l):"-"===a.operator?this.ifDefined(k,0)+a.operator+this.ifDefined(l,0):"("+k+")"+a.operator+"("+l+")";this.assign(b,h);c(h);break;case q.LogicalExpression:b=b||this.nextId();f.recurse(a.left,b);f.if_("&&"===a.operator?b:f.not(b),f.lazyRecurse(a.right,b));
c(b);break;case q.ConditionalExpression:b=b||this.nextId();f.recurse(a.test,b);f.if_(b,f.lazyRecurse(a.alternate,b),f.lazyRecurse(a.consequent,b));c(b);break;case q.Identifier:b=b||this.nextId();d&&(d.context="inputs"===f.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",a.name)+"?l:s"),d.computed=!1,d.name=a.name);f.if_("inputs"===f.stage||f.not(f.getHasOwnProperty("l",a.name)),function(){f.if_("inputs"===f.stage||"s",function(){e&&1!==e&&f.if_(f.isNull(f.nonComputedMember("s",a.name)),
f.lazyAssign(f.nonComputedMember("s",a.name),"{}"));f.assign(b,f.nonComputedMember("s",a.name))})},b&&f.lazyAssign(b,f.nonComputedMember("l",a.name)));c(b);break;case q.MemberExpression:var k=d&&(d.context=this.nextId())||this.nextId();b=b||this.nextId();f.recurse(a.object,k,void 0,function(){f.if_(f.notNull(k),function(){a.computed?(l=f.nextId(),f.recurse(a.property,l),f.getStringValue(l),e&&1!==e&&f.if_(f.not(f.computedMember(k,l)),f.lazyAssign(f.computedMember(k,l),"{}")),h=f.computedMember(k,
l),f.assign(b,h),d&&(d.computed=!0,d.name=l)):(e&&1!==e&&f.if_(f.isNull(f.nonComputedMember(k,a.property.name)),f.lazyAssign(f.nonComputedMember(k,a.property.name),"{}")),h=f.nonComputedMember(k,a.property.name),f.assign(b,h),d&&(d.computed=!1,d.name=a.property.name))},function(){f.assign(b,"undefined")});c(b)},!!e);break;case q.CallExpression:b=b||this.nextId();if(a.filter){var l=f.filter(a.callee.name);var m=[];p(a.arguments,function(a){var b=f.nextId();f.recurse(a,b);m.push(b)});h=l+"("+m.join(",")+
")";f.assign(b,h);c(b)}else l=f.nextId(),k={},m=[],f.recurse(a.callee,l,k,function(){f.if_(f.notNull(l),function(){p(a.arguments,function(b){f.recurse(b,a.constant?void 0:f.nextId(),void 0,function(a){m.push(a)})});h=k.name?f.member(k.context,k.name,k.computed)+"("+m.join(",")+")":l+"("+m.join(",")+")";f.assign(b,h)},function(){f.assign(b,"undefined")});c(b)});break;case q.AssignmentExpression:l=this.nextId();k={};this.recurse(a.left,void 0,k,function(){f.if_(f.notNull(k.context),function(){f.recurse(a.right,
l);h=f.member(k.context,k.name,k.computed)+a.operator+l;f.assign(b,h);c(b||h)})},1);break;case q.ArrayExpression:m=[];p(a.elements,function(b){f.recurse(b,a.constant?void 0:f.nextId(),void 0,function(a){m.push(a)})});h="["+m.join(",")+"]";this.assign(b,h);c(b||h);break;case q.ObjectExpression:m=[];var n=!1;p(a.properties,function(a){a.computed&&(n=!0)});n?(b=b||this.nextId(),this.assign(b,"{}"),p(a.properties,function(a){a.computed?(k=f.nextId(),f.recurse(a.key,k)):k=a.key.type===q.Identifier?a.key.name:
""+a.key.value;l=f.nextId();f.recurse(a.value,l);f.assign(f.member(b,k,a.computed),l)})):(p(a.properties,function(b){f.recurse(b.value,a.constant?void 0:f.nextId(),void 0,function(a){m.push(f.escape(b.key.type===q.Identifier?b.key.name:""+b.key.value)+":"+a)})}),h="{"+m.join(",")+"}",this.assign(b,h));c(b||h);break;case q.ThisExpression:this.assign(b,"s");c(b||"s");break;case q.LocalsExpression:this.assign(b,"l");c(b||"l");break;case q.NGValueParameter:this.assign(b,"v"),c(b||"v")}},getHasOwnProperty:function(a,
b){var d=a+"."+b,c=this.current().own;c.hasOwnProperty(d)||(c[d]=this.nextId(!1,a+"&&("+this.escape(b)+" in "+a+")"));return c[d]},assign:function(a,b){if(a)return this.current().body.push(a,"=",b,";"),a},filter:function(a){this.state.filters.hasOwnProperty(a)||(this.state.filters[a]=this.nextId(!0));return 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,d){if(!0===a)b();else{var c=this.current().body;c.push("if(",a,"){");b();c.push("}");d&&(c.push("else{"),d(),c.push("}"))}},not:function(a){return"!("+a+")"},isNull:function(a){return a+"==null"},notNull:function(a){return a+"!=null"},nonComputedMember:function(a,b){var d=/[^$_a-zA-Z0-9]/g;return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(b)?a+"."+b:a+'["'+b.replace(d,this.stringEscapeFn)+'"]'},computedMember:function(a,b){return a+"["+b+"]"},member:function(a,b,d){return d?this.computedMember(a,
b):this.nonComputedMember(a,b)},getStringValue:function(a){this.assign(a,"getStringValue("+a+")")},lazyRecurse:function(a,b,d,c,e,g){var f=this;return function(){f.recurse(a,b,d,c,e,g)}},lazyAssign:function(a,b){var d=this;return function(){d.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(I(a))return"'"+a.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(ca(a))return a.toString();
if(!0===a)return"true";if(!1===a)return"false";if(null===a)return"null";if("undefined"===typeof a)return"undefined";throw ab("esc");},nextId:function(a,b){var d="v"+this.state.nextId++;a||this.current().vars.push(d+(b?"="+b:""));return d},current:function(){return this.state[this.state.computing]}};Id.prototype={compile:function(a){var b=this;Z(a,b.$filter);var d;if(d=Gd(a))var c=this.recurse(d);d=Ed(a.body);if(d){var e=[];p(d,function(a,c){var d=b.recurse(a);d.isPure=a.isPure;a.input=d;e.push(d);
a.watchId=c})}var g=[];p(a.body,function(a){g.push(b.recurse(a.expression))});a=0===a.body.length?H:1===a.body.length?g[0]:function(a,b){var c;p(g,function(d){c=d(a,b)});return c};c&&(a.assign=function(a,b,d){return c(a,d,b)});e&&(a.inputs=e);return a},recurse:function(a,b,d){var c=this;if(a.input)return this.inputs(a.input,a.watchId);switch(a.type){case q.Literal:return this.value(a.value,b);case q.UnaryExpression:var e=this.recurse(a.argument);return this["unary"+a.operator](e,b);case q.BinaryExpression:var g=
this.recurse(a.left);e=this.recurse(a.right);return this["binary"+a.operator](g,e,b);case q.LogicalExpression:return g=this.recurse(a.left),e=this.recurse(a.right),this["binary"+a.operator](g,e,b);case q.ConditionalExpression:return this["ternary?:"](this.recurse(a.test),this.recurse(a.alternate),this.recurse(a.consequent),b);case q.Identifier:return c.identifier(a.name,b,d);case q.MemberExpression:return g=this.recurse(a.object,!1,!!d),a.computed||(e=a.property.name),a.computed&&(e=this.recurse(a.property)),
a.computed?this.computedMember(g,e,b,d):this.nonComputedMember(g,e,b,d);case q.CallExpression:var f=[];p(a.arguments,function(a){f.push(c.recurse(a))});a.filter&&(e=this.$filter(a.callee.name));a.filter||(e=this.recurse(a.callee,!0));return a.filter?function(a,c,d,g){for(var h=[],k=0;k<f.length;++k)h.push(f[k](a,c,d,g));a=e.apply(void 0,h,g);return b?{context:void 0,name:void 0,value:a}:a}:function(a,c,d,g){var h=e(a,c,d,g);if(null!=h.value){var k=[];for(var l=0;l<f.length;++l)k.push(f[l](a,c,d,g));
k=h.value.apply(h.context,k)}return b?{value:k}:k};case q.AssignmentExpression:return g=this.recurse(a.left,!0,1),e=this.recurse(a.right),function(a,c,d,f){var h=g(a,c,d,f);a=e(a,c,d,f);h.context[h.name]=a;return b?{value:a}:a};case q.ArrayExpression:return f=[],p(a.elements,function(a){f.push(c.recurse(a))}),function(a,c,d,e){for(var g=[],h=0;h<f.length;++h)g.push(f[h](a,c,d,e));return b?{value:g}:g};case q.ObjectExpression:return f=[],p(a.properties,function(a){a.computed?f.push({key:c.recurse(a.key),
computed:!0,value:c.recurse(a.value)}):f.push({key:a.key.type===q.Identifier?a.key.name:""+a.key.value,computed:!1,value:c.recurse(a.value)})}),function(a,c,d,e){for(var g={},h=0;h<f.length;++h)f[h].computed?g[f[h].key(a,c,d,e)]=f[h].value(a,c,d,e):g[f[h].key]=f[h].value(a,c,d,e);return b?{value:g}:g};case q.ThisExpression:return function(a){return b?{value:a}:a};case q.LocalsExpression:return function(a,c){return b?{value:c}:c};case q.NGValueParameter:return function(a,c,d){return b?{value:d}:d}}},
"unary+":function(a,b){return function(d,c,e,g){d=a(d,c,e,g);d=v(d)?+d:0;return b?{value:d}:d}},"unary-":function(a,b){return function(d,c,e,g){d=a(d,c,e,g);d=v(d)?-d:-0;return b?{value:d}:d}},"unary!":function(a,b){return function(d,c,e,g){d=!a(d,c,e,g);return b?{value:d}:d}},"binary+":function(a,b,d){return function(c,e,g,f){var h=a(c,e,g,f);c=b(c,e,g,f);h=Cd(h,c);return d?{value:h}:h}},"binary-":function(a,b,d){return function(c,e,g,f){var h=a(c,e,g,f);c=b(c,e,g,f);h=(v(h)?h:0)-(v(c)?c:0);return d?
{value:h}:h}},"binary*":function(a,b,d){return function(c,e,g,f){c=a(c,e,g,f)*b(c,e,g,f);return d?{value:c}:c}},"binary/":function(a,b,d){return function(c,e,g,f){c=a(c,e,g,f)/b(c,e,g,f);return d?{value:c}:c}},"binary%":function(a,b,d){return function(c,e,g,f){c=a(c,e,g,f)%b(c,e,g,f);return d?{value:c}:c}},"binary===":function(a,b,d){return function(c,e,g,f){c=a(c,e,g,f)===b(c,e,g,f);return d?{value:c}:c}},"binary!==":function(a,b,d){return function(c,e,g,f){c=a(c,e,g,f)!==b(c,e,g,f);return d?{value:c}:
c}},"binary==":function(a,b,d){return function(c,e,g,f){c=a(c,e,g,f)==b(c,e,g,f);return d?{value:c}:c}},"binary!=":function(a,b,d){return function(c,e,g,f){c=a(c,e,g,f)!=b(c,e,g,f);return d?{value:c}:c}},"binary<":function(a,b,d){return function(c,e,g,f){c=a(c,e,g,f)<b(c,e,g,f);return d?{value:c}:c}},"binary>":function(a,b,d){return function(c,e,g,f){c=a(c,e,g,f)>b(c,e,g,f);return d?{value:c}:c}},"binary<=":function(a,b,d){return function(c,e,g,f){c=a(c,e,g,f)<=b(c,e,g,f);return d?{value:c}:c}},"binary>=":function(a,
b,d){return function(c,e,g,f){c=a(c,e,g,f)>=b(c,e,g,f);return d?{value:c}:c}},"binary&&":function(a,b,d){return function(c,e,g,f){c=a(c,e,g,f)&&b(c,e,g,f);return d?{value:c}:c}},"binary||":function(a,b,d){return function(c,e,g,f){c=a(c,e,g,f)||b(c,e,g,f);return d?{value:c}:c}},"ternary?:":function(a,b,d,c){return function(e,g,f,h){e=a(e,g,f,h)?b(e,g,f,h):d(e,g,f,h);return c?{value:e}:e}},value:function(a,b){return function(){return b?{context:void 0,name:void 0,value:a}:a}},identifier:function(a,
b,d){return function(c,e,g,f){c=e&&a in e?e:c;d&&1!==d&&c&&null==c[a]&&(c[a]={});e=c?c[a]:void 0;return b?{context:c,name:a,value:e}:e}},computedMember:function(a,b,d,c){return function(e,g,f,h){var k=a(e,g,f,h);if(null!=k){var l=b(e,g,f,h);l+="";c&&1!==c&&k&&!k[l]&&(k[l]={});var m=k[l]}return d?{context:k,name:l,value:m}:m}},nonComputedMember:function(a,b,d,c){return function(e,g,f,h){e=a(e,g,f,h);c&&1!==c&&e&&null==e[b]&&(e[b]={});g=null!=e?e[b]:void 0;return d?{context:e,name:b,value:g}:g}},inputs:function(a,
b){return function(d,c,e,g){return g?g[b]:a(d,c,e)}}};Qb.prototype={constructor:Qb,parse:function(a){a=this.getAst(a);var b=this.astCompiler.compile(a.ast),d=a.ast;b.literal=0===d.body.length||1===d.body.length&&(d.body[0].expression.type===q.Literal||d.body[0].expression.type===q.ArrayExpression||d.body[0].expression.type===q.ObjectExpression);b.constant=a.ast.constant;b.oneTime=a.oneTime;return b},getAst:function(a){var b=!1;a=a.trim();":"===a.charAt(0)&&":"===a.charAt(1)&&(b=!0,a=a.substring(2));
return{ast:this.ast.ast(a),oneTime:b}}};var ba=D.document.createElement("a"),Kd=ha(D.location.href);Md.$inject=["$document"];Nd.$inject=["$provide"];var Ud=22,Td=".",Jc="0";Od.$inject=["$locale"];Qd.$inject=["$locale"];var ag={yyyy:da("FullYear",4,0,!1,!0),yy:da("FullYear",2,0,!0,!0),y:da("FullYear",1,0,!1,!0),MMMM:sb("Month"),MMM:sb("Month",!0),MM:da("Month",2,1),M:da("Month",1,1),LLLL:sb("Month",!1,!0),dd:da("Date",2),d:da("Date",1),HH:da("Hours",2),H:da("Hours",1),hh:da("Hours",2,-12),h:da("Hours",
1,-12),mm:da("Minutes",2),m:da("Minutes",1),ss:da("Seconds",2),s:da("Seconds",1),sss:da("Milliseconds",3),EEEE:sb("Day"),EEE:sb("Day",!0),a:function(a,b){return 12>a.getHours()?b.AMPMS[0]:b.AMPMS[1]},Z:function(a,b,d){a=-1*d;return(0<=a?"+":"")+(Sb(Math[0<a?"floor":"ceil"](a/60),2)+Sb(Math.abs(a%60),2))},ww:Wd(2),w:Wd(1),G:Kc,GG:Kc,GGG:Kc,GGGG:function(a,b){return 0>=a.getFullYear()?b.ERANAMES[0]:b.ERANAMES[1]}},$f=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,
Zf=/^-?\d+$/;Pd.$inject=["$locale"];var Uf=la(N),Vf=la(Ob);Rd.$inject=["$parse"];var Cg=la({restrict:"E",compile:function(a,b){if(!b.href&&!b.xlinkHref)return function(a,b){if("a"===b[0].nodeName.toLowerCase()){var c="[object SVGAnimatedString]"===ma.call(b.prop("href"))?"xlink:href":"href";b.on("click",function(a){b.attr(c)||a.preventDefault()})}}}}),Zb={};p(Kb,function(a,b){function d(a,d,e){a.$watch(e[c],function(a){e.$set(b,!!a)})}if("multiple"!==a){var c=Da("ng-"+b),e=d;"checked"===a&&(e=function(a,
b,e){e.ngModel!==e[c]&&d(a,b,e)});Zb[c]=function(){return{restrict:"A",priority:100,link:e}}}});p(rd,function(a,b){Zb[b]=function(){return{priority:100,link:function(a,c,e){if("ngPattern"===b&&"/"===e.ngPattern.charAt(0)&&(c=e.ngPattern.match(ig))){e.$set("ngPattern",new RegExp(c[1],c[2]));return}a.$watch(e[b],function(a){e.$set(b,a)})}}}});p(["src","srcset","href"],function(a){var b=Da("ng-"+a);Zb[b]=function(){return{priority:99,link:function(d,c,e){var g=a,f=a;"href"===a&&"[object SVGAnimatedString]"===
ma.call(c.prop("href"))&&(f="xlinkHref",e.$attr[f]="xlink:href",g=null);e.$observe(b,function(b){b?(e.$set(f,b),La&&g&&c.prop(g,e[f])):"href"===a&&e.$set(f,null)})}}}});var Ub={$addControl:H,$$renameControl:function(a,b){a.$name=b},$removeControl:H,$setValidity:H,$setDirty:H,$setPristine:H,$setSubmitted:H};Tb.$inject=["$element","$attrs","$scope","$animate","$interpolate"];Tb.prototype={$rollbackViewValue:function(){p(this.$$controls,function(a){a.$rollbackViewValue()})},$commitViewValue:function(){p(this.$$controls,
function(a){a.$commitViewValue()})},$addControl:function(a){Ia(a.$name,"input");this.$$controls.push(a);a.$name&&(this[a.$name]=a);a.$$parentForm=this},$$renameControl:function(a,b){var d=a.$name;this[d]===a&&delete this[d];this[b]=a;a.$name=b},$removeControl:function(a){a.$name&&this[a.$name]===a&&delete this[a.$name];p(this.$pending,function(b,d){this.$setValidity(d,null,a)},this);p(this.$error,function(b,d){this.$setValidity(d,null,a)},this);p(this.$$success,function(b,d){this.$setValidity(d,null,
a)},this);eb(this.$$controls,a);a.$$parentForm=Ub},$setDirty:function(){this.$$animate.removeClass(this.$$element,bb);this.$$animate.addClass(this.$$element,$b);this.$dirty=!0;this.$pristine=!1;this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,bb,$b+" ng-submitted");this.$dirty=!1;this.$pristine=!0;this.$submitted=!1;p(this.$$controls,function(a){a.$setPristine()})},$setUntouched:function(){p(this.$$controls,function(a){a.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,
"ng-submitted");this.$submitted=!0;this.$$parentForm.$setSubmitted()}};Zd({clazz:Tb,set:function(a,b,d){var c=a[b];c?-1===c.indexOf(d)&&c.push(d):a[b]=[d]},unset:function(a,b,d){var c=a[b];c&&(eb(c,d),0===c.length&&delete a[b])}});var he=function(a){return["$timeout","$parse",function(b,d){function c(a){return""===a?d('this[""]').assign:d(a).assign||H}return{name:"form",restrict:a?"EAC":"E",require:["form","^^?form"],controller:Tb,compile:function(d,g){d.addClass(bb).addClass(tb);var e=g.name?"name":
a&&g.ngForm?"ngForm":!1;return{pre:function(a,d,f,g){var h=g[0];if(!("action"in f)){var k=function(b){a.$apply(function(){h.$commitViewValue();h.$setSubmitted()});b.preventDefault()};d[0].addEventListener("submit",k);d.on("$destroy",function(){b(function(){d[0].removeEventListener("submit",k)},0,!1)})}(g[1]||h.$$parentForm).$addControl(h);var l=e?c(h.$name):H;e&&(l(a,h),f.$observe(e,function(b){h.$name!==b&&(l(a,void 0),h.$$parentForm.$$renameControl(h,b),l=c(h.$name),l(a,h))}));d.on("$destroy",function(){h.$$parentForm.$removeControl(h);
l(a,void 0);P(h,Ub)})}}}}}]},Dg=he(),Eg=he(!0),bg=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Fg=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Gg=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,cg=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,ie=/^(\d{4,})-(\d{2})-(\d{2})$/,
je=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Tc=/^(\d{4,})-W(\d\d)$/,ke=/^(\d{4,})-(\d\d)$/,le=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ae=V();p(["date","datetime-local","month","time","week"],function(a){ae[a]=!0});var me={text:function(a,b,d,c,e,g){Ua(a,b,d,c,e,g);Mc(c)},date:ub("date",ie,Vb(ie,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":ub("datetimelocal",je,Vb(je,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:ub("time",le,Vb(le,["HH","mm",
"ss","sss"]),"HH:mm:ss.sss"),week:ub("week",Tc,function(a,b){if(ia(a))return a;if(I(a)){Tc.lastIndex=0;var d=Tc.exec(a);if(d){a=+d[1];var c=+d[2],e=d=0,g=0,f=0,h=Vd(a);c=7*(c-1);b&&(d=b.getHours(),e=b.getMinutes(),g=b.getSeconds(),f=b.getMilliseconds());return new Date(a,0,h.getDate()+c,d,e,g,f)}}return NaN},"yyyy-Www"),month:ub("month",ke,Vb(ke,["yyyy","MM"]),"yyyy-MM"),number:function(a,b,d,c,e,g){Nc(a,b,d,c);be(c);Ua(a,b,d,c,e,g);var f,h;if(v(d.min)||d.ngMin)c.$validators.min=function(a){return c.$isEmpty(a)||
z(f)||a>=f},d.$observe("min",function(a){f=Va(a);c.$validate()});if(v(d.max)||d.ngMax)c.$validators.max=function(a){return c.$isEmpty(a)||z(h)||a<=h},d.$observe("max",function(a){h=Va(a);c.$validate()});if(v(d.step)||d.ngStep){var k;c.$validators.step=function(a,b){return c.$isEmpty(b)||z(k)||ce(b,f||0,k)};d.$observe("step",function(a){k=Va(a);c.$validate()})}},url:function(a,b,d,c,e,g){Ua(a,b,d,c,e,g);Mc(c);c.$$parserName="url";c.$validators.url=function(a,b){a=a||b;return c.$isEmpty(a)||Fg.test(a)}},
email:function(a,b,d,c,e,g){Ua(a,b,d,c,e,g);Mc(c);c.$$parserName="email";c.$validators.email=function(a,b){a=a||b;return c.$isEmpty(a)||Gg.test(a)}},radio:function(a,b,d,c){var e=!d.ngTrim||"false"!==T(d.ngTrim);z(d.name)&&b.attr("name",++wb);b.on("click",function(a){if(b[0].checked){var f=d.value;e&&(f=T(f));c.$setViewValue(f,a&&a.type)}});c.$render=function(){var a=d.value;e&&(a=T(a));b[0].checked=a===c.$viewValue};d.$observe("value",c.$render)},range:function(a,b,d,c,e,g){function f(a,c){b.attr(a,
d[a]);d.$observe(a,c)}function h(a){n=Va(a);aa(c.$modelValue)||(m?(a=b.val(),n>a&&(a=n,b.val(a)),c.$setViewValue(a)):c.$validate())}function k(a){t=Va(a);aa(c.$modelValue)||(m?(a=b.val(),t<a&&(b.val(t),a=t<n?n:t),c.$setViewValue(a)):c.$validate())}function l(a){p=Va(a);aa(c.$modelValue)||(m&&c.$viewValue!==b.val()?c.$setViewValue(b.val()):c.$validate())}Nc(a,b,d,c);be(c);Ua(a,b,d,c,e,g);var m=c.$$hasNativeValidators&&"range"===b[0].type,n=m?0:void 0,t=m?100:void 0,p=m?1:void 0,q=b[0].validity;a=v(d.min);
e=v(d.max);g=v(d.step);var u=c.$render;c.$render=m&&v(q.rangeUnderflow)&&v(q.rangeOverflow)?function(){u();c.$setViewValue(b.val())}:u;a&&(c.$validators.min=m?function(){return!0}:function(a,b){return c.$isEmpty(b)||z(n)||b>=n},f("min",h));e&&(c.$validators.max=m?function(){return!0}:function(a,b){return c.$isEmpty(b)||z(t)||b<=t},f("max",k));g&&(c.$validators.step=m?function(){return!q.stepMismatch}:function(a,b){return c.$isEmpty(b)||z(p)||ce(b,n||0,p)},f("step",l))},checkbox:function(a,b,d,c,e,
g,f,h){var k=de(h,a,"ngTrueValue",d.ngTrueValue,!0),l=de(h,a,"ngFalseValue",d.ngFalseValue,!1);b.on("click",function(a){c.$setViewValue(b[0].checked,a&&a.type)});c.$render=function(){b[0].checked=c.$viewValue};c.$isEmpty=function(a){return!1===a};c.$formatters.push(function(a){return va(a,k)});c.$parsers.push(function(a){return a?k:l})},hidden:H,button:H,submit:H,reset:H,file:H},ne=["$browser","$sniffer","$filter","$parse",function(a,b,d,c){return{restrict:"E",require:["?ngModel"],link:{pre:function(e,
g,f,h){h[0]&&(me[N(f.type)]||me.text)(e,g,f,h[0],b,a,d,c)}}}}],Hg=function(){var a={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(a){this.setAttribute("value",a)}};return{restrict:"E",priority:200,compile:function(b,d){if("hidden"===N(d.type))return{pre:function(b,d,g,f){b=d[0];b.parentNode&&b.parentNode.insertBefore(b,b.nextSibling);Object.defineProperty&&Object.defineProperty(b,"value",a)}}}}},Ig=/^(true|false|\d+)$/,Jg=function(){function a(a,
d,c){var b=v(c)?c:9===La?"":null;a.prop("value",b);d.$set("value",c)}return{restrict:"A",priority:100,compile:function(b,d){return Ig.test(d.ngValue)?function(b,d,g){b=b.$eval(g.ngValue);a(d,g,b)}:function(b,d,g){b.$watch(g.ngValue,function(b){a(d,g,b)})}}}},Kg=["$compile",function(a){return{restrict:"AC",compile:function(b){a.$$addBindingClass(b);return function(b,c,e){a.$$addBindingInfo(c,e.ngBind);c=c[0];b.$watch(e.ngBind,function(a){c.textContent=mc(a)})}}}}],Lg=["$interpolate","$compile",function(a,
b){return{compile:function(d){b.$$addBindingClass(d);return function(c,d,g){c=a(d.attr(g.$attr.ngBindTemplate));b.$$addBindingInfo(d,c.expressions);d=d[0];g.$observe("ngBindTemplate",function(a){d.textContent=z(a)?"":a})}}}}],Mg=["$sce","$parse","$compile",function(a,b,d){return{restrict:"A",compile:function(c,e){var g=b(e.ngBindHtml),f=b(e.ngBindHtml,function(b){return a.valueOf(b)});d.$$addBindingClass(c);return function(b,c,e){d.$$addBindingInfo(c,e.ngBindHtml);b.$watch(f,function(){var d=g(b);
c.html(a.getTrustedHtml(d)||"")})}}}}],Ng=la({restrict:"A",require:"ngModel",link:function(a,b,d,c){c.$viewChangeListeners.push(function(){a.$eval(d.ngChange)})}}),Og=Pc("",!0),Pg=Pc("Odd",0),Qg=Pc("Even",1),Rg=Pa({compile:function(a,b){b.$set("ngCloak",void 0);a.removeClass("ng-cloak")}}),Sg=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],oe={},Tg={blur:!0,focus:!0};p("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),
function(a){var b=Da("ng-"+a);oe[b]=["$parse","$rootScope",function(d,c){return{restrict:"A",compile:function(e,g){var f=d(g[b]);return function(b,d){d.on(a,function(d){var e=function(){f(b,{$event:d})};Tg[a]&&c.$$phase?b.$evalAsync(e):b.$apply(e)})}}}}]});var Ug=["$animate","$compile",function(a,b){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(d,c,e,g,f){var h,k,l;d.$watch(e.ngIf,function(d){d?k||f(function(d,f){k=f;d[d.length++]=b.$$createComment("end ngIf",
e.ngIf);h={clone:d};a.enter(d,c.parent(),c)}):(l&&(l.remove(),l=null),k&&(k.$destroy(),k=null),h&&(l=Ab(h.clone),a.leave(l).done(function(a){!1!==a&&(l=null)}),h=null))})}}}],Vg=["$templateRequest","$anchorScroll","$animate",function(a,b,d){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ja.noop,compile:function(c,e){var g=e.ngInclude||e.src,f=e.onload||"",h=e.autoscroll;return function(c,e,m,n,t){var k=0,l,p,q,r=function(){p&&(p.remove(),p=null);l&&(l.$destroy(),l=
null);q&&(d.leave(q).done(function(a){!1!==a&&(p=null)}),p=q,q=null)};c.$watch(g,function(g){var m=function(a){!1===a||!v(h)||h&&!c.$eval(h)||b()},p=++k;g?(a(g,!0).then(function(a){if(!c.$$destroyed&&p===k){var b=c.$new();n.template=a;a=t(b,function(a){r();d.enter(a,null,e).done(m)});l=b;q=a;l.$emit("$includeContentLoaded",g);c.$eval(f)}},function(){c.$$destroyed||p!==k||(r(),c.$emit("$includeContentError",g))}),c.$emit("$includeContentRequested",g)):(r(),n.template=null)})}}}}],Wg=["$compile",function(a){return{restrict:"ECA",
priority:-400,require:"ngInclude",link:function(b,d,c,e){ma.call(d[0]).match(/SVG/)?(d.empty(),a(ed(e.template,D.document).childNodes)(b,function(a){d.append(a)},{futureParentElement:d})):(d.html(e.template),a(d.contents())(b))}}}],Xg=Pa({priority:450,compile:function(){return{pre:function(a,b,d){a.$eval(d.ngInit)}}}}),Yg=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(a,b,d,c){var e=d.ngList||", ",g="false"!==d.ngTrim,f=g?T(e):e;c.$parsers.push(function(a){if(!z(a)){var b=
[];a&&p(a.split(f),function(a){a&&b.push(g?T(a):a)});return b}});c.$formatters.push(function(a){if(J(a))return a.join(e)});c.$isEmpty=function(a){return!a||!a.length}}}},tb="ng-valid",Yd="ng-invalid",bb="ng-pristine",$b="ng-dirty",vb=K("ngModel");Wb.$inject="$scope $exceptionHandler $attrs $element $parse $animate $timeout $q $interpolate".split(" ");Wb.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var a=this.$$parse(this.$$attr.ngModel+"()"),b=this.$$parse(this.$$attr.ngModel+
"($$$p)");this.$$ngModelGet=function(b){var c=this.$$parsedNgModel(b);A(c)&&(c=a(b));return c};this.$$ngModelSet=function(a,c){A(this.$$parsedNgModel(a))?b(a,{$$$p:c}):this.$$parsedNgModelAssign(a,c)}}else if(!this.$$parsedNgModel.assign)throw vb("nonassign",this.$$attr.ngModel,Aa(this.$$element));},$render:H,$isEmpty:function(a){return z(a)||""===a||null===a||a!==a},$$updateEmptyClasses:function(a){this.$isEmpty(a)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,
"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1;this.$pristine=!0;this.$$animate.removeClass(this.$$element,$b);this.$$animate.addClass(this.$$element,bb)},$setDirty:function(){this.$dirty=!0;this.$pristine=!1;this.$$animate.removeClass(this.$$element,bb);this.$$animate.addClass(this.$$element,$b);this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1;this.$untouched=
!0;this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0;this.$untouched=!1;this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce);this.$viewValue=this.$$lastCommittedViewValue;this.$render()},$validate:function(){if(!aa(this.$modelValue)){var a=this.$$lastCommittedViewValue,b=this.$$rawModelValue,d=this.$valid,c=this.$modelValue,e=this.$options.getOption("allowInvalid"),
g=this;this.$$runValidators(b,a,function(a){e||d===a||(g.$modelValue=a?b:void 0,g.$modelValue!==c&&g.$$writeModelToScope())})}},$$runValidators:function(a,b,d){function c(a,b){g===f.$$currentValidationRunId&&f.$setValidity(a,b)}function e(a){g===f.$$currentValidationRunId&&d(a)}this.$$currentValidationRunId++;var g=this.$$currentValidationRunId,f=this;(function(){var a=f.$$parserName||"parse";if(z(f.$$parserValid))c(a,null);else return f.$$parserValid||(p(f.$validators,function(a,b){c(b,null)}),p(f.$asyncValidators,
function(a,b){c(b,null)})),c(a,f.$$parserValid),f.$$parserValid;return!0})()?function(){var d=!0;p(f.$validators,function(e,g){e=!!e(a,b);d=d&&e;c(g,e)});return d?!0:(p(f.$asyncValidators,function(a,b){c(b,null)}),!1)}()?function(){var d=[],g=!0;p(f.$asyncValidators,function(e,f){e=e(a,b);if(!e||!A(e.then))throw vb("nopromise",e);c(f,void 0);d.push(e.then(function(){c(f,!0)},function(){g=!1;c(f,!1)}))});d.length?f.$$q.all(d).then(function(){e(g)},H):e(!0)}():e(!1):e(!1)},$commitViewValue:function(){var a=
this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce);if(this.$$lastCommittedViewValue!==a||""===a&&this.$$hasNativeValidators)this.$$updateEmptyClasses(a),this.$$lastCommittedViewValue=a,this.$pristine&&this.$setDirty(),this.$$parseAndValidate()},$$parseAndValidate:function(){var a=this.$$lastCommittedViewValue,b=this;if(this.$$parserValid=z(a)?void 0:!0)for(var d=0;d<this.$parsers.length;d++)if(a=this.$parsers[d](a),z(a)){this.$$parserValid=!1;break}aa(this.$modelValue)&&(this.$modelValue=
this.$$ngModelGet(this.$$scope));var c=this.$modelValue,e=this.$options.getOption("allowInvalid");this.$$rawModelValue=a;e&&(this.$modelValue=a,b.$modelValue!==c&&b.$$writeModelToScope());this.$$runValidators(a,this.$$lastCommittedViewValue,function(d){e||(b.$modelValue=d?a:void 0,b.$modelValue!==c&&b.$$writeModelToScope())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue);p(this.$viewChangeListeners,function(a){try{a()}catch(b){this.$$exceptionHandler(b)}},this)},
$setViewValue:function(a,b){this.$viewValue=a;this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(b)},$$debounceViewValueCommit:function(a){var b=this.$options.getOption("debounce");ca(b[a])?b=b[a]:ca(b["default"])&&(b=b["default"]);this.$$timeout.cancel(this.$$pendingDebounce);var d=this;0<b?this.$$pendingDebounce=this.$$timeout(function(){d.$commitViewValue()},b):this.$$scope.$root.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){d.$commitViewValue()})},$overrideModelOptions:function(a){this.$options=
this.$options.createChild(a);this.$$setUpdateOnEvents()},$processModelValue:function(){var a=this.$$format();this.$viewValue!==a&&(this.$$updateEmptyClasses(a),this.$viewValue=this.$$lastCommittedViewValue=a,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,H))},$$format:function(){for(var a=this.$formatters,b=a.length,d=this.$modelValue;b--;)d=a[b](d);return d},$$setModelValue:function(a){this.$modelValue=this.$$rawModelValue=a;this.$$parserValid=void 0;this.$processModelValue()},
$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler);if(this.$$updateEvents=this.$options.getOption("updateOn"))this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(a){this.$$debounceViewValueCommit(a&&a.type)}};Zd({clazz:Wb,set:function(a,b){a[b]=!0},unset:function(a,b){delete a[b]}});var Zg=["$rootScope",function(a){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Wb,
priority:1,compile:function(b){b.addClass(bb).addClass("ng-untouched").addClass(tb);return{pre:function(a,b,e,g){var c=g[0];b=g[1]||c.$$parentForm;if(g=g[2])c.$options=g.$options;c.$$initGetterSetters();b.$addControl(c);e.$observe("name",function(a){c.$name!==a&&c.$$parentForm.$$renameControl(c,a)});a.$on("$destroy",function(){c.$$parentForm.$removeControl(c)})},post:function(b,c,e,g){function d(){h.$setTouched()}var h=g[0];h.$$setUpdateOnEvents();c.on("blur",function(){h.$touched||(a.$$phase?b.$evalAsync(d):
b.$apply(d))})}}}}}],$g=/(\s+|^)default(\s+|$)/;Rc.prototype={getOption:function(a){return this.$$options[a]},createChild:function(a){var b=!1;a=P({},a);p(a,function(d,c){"$inherit"===d?"*"===c?b=!0:(a[c]=this.$$options[c],"updateOn"===c&&(a.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===c&&(a.updateOnDefault=!1,a[c]=T(d.replace($g,function(){a.updateOnDefault=!0;return" "})))},this);b&&(delete a["*"],ee(a,this.$$options));ee(a,Qc.$$options);return new Rc(a)}};var Qc=new Rc({updateOn:"",
updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var ah=function(){function a(a,d){this.$$attrs=a;this.$$scope=d}a.$inject=["$attrs","$scope"];a.prototype={$onInit:function(){var a=this.parentCtrl?this.parentCtrl.$options:Qc,d=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=a.createChild(d)}};return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:a}},bh=Pa({terminal:!0,priority:1E3}),ch=K("ngOptions"),dh=/^\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]+?))?$/,
eh=["$compile","$document","$parse",function(a,b,d){function c(a,b,c){function e(a,b,c,d,e){this.selectValue=a;this.viewValue=b;this.label=c;this.group=d;this.disabled=e}function g(a){if(!k&&pa(a))var b=a;else{b=[];for(var c in a)a.hasOwnProperty(c)&&"$"!==c.charAt(0)&&b.push(c)}return b}var f=a.match(dh);if(!f)throw ch("iexp",a,Aa(b));var h=f[5]||f[7],k=f[6];a=/ as /.test(f[0])&&f[1];var p=f[9];b=d(f[2]?f[1]:h);var q=a&&d(a)||b,v=p&&d(p),r=p?function(a,b){return v(c,b)}:function(a){return Ja(a)},
x=function(a,b){return r(a,D(a,b))},z=d(f[2]||f[1]),y=d(f[3]||""),C=d(f[4]||""),w=d(f[8]),A={},D=k?function(a,b){A[k]=b;A[h]=a;return A}:function(a){A[h]=a;return A};return{trackBy:p,getTrackByValue:x,getWatchables:d(w,function(a){var b=[];a=a||[];for(var d=g(a),e=d.length,h=0;h<e;h++){var k=a===d?h:d[h],l=a[k];k=D(l,k);l=r(l,k);b.push(l);if(f[2]||f[1])l=z(c,k),b.push(l);f[4]&&(k=C(c,k),b.push(k))}return b}),getOptions:function(){for(var a=[],b={},d=w(c)||[],f=g(d),h=f.length,k=0;k<h;k++){var l=d===
f?k:f[k],m=D(d[l],l),n=q(c,m);l=r(n,m);var t=z(c,m),u=y(c,m);m=C(c,m);n=new e(l,n,t,u,m);a.push(n);b[l]=n}return{items:a,selectValueMap:b,getOptionFromViewValue:function(a){return b[x(a)]},getViewValueFromOption:function(a){return p?Ga(a.viewValue):a.viewValue}}}}}var e=D.document.createElement("option"),g=D.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(a,b,c,d){d[0].registerOption=H},post:function(d,h,k,l){function f(a){var b=(a=
r.getOptionFromViewValue(a))&&a.element;b&&!b.selected&&(b.selected=!0);return a}function n(a,b){a.element=b;b.disabled=a.disabled;a.label!==b.label&&(b.label=a.label,b.textContent=a.label);b.value=a.selectValue}var t=l[0],q=l[1],B=k.multiple;l=0;for(var u=h.children(),F=u.length;l<F;l++)if(""===u[l].value){t.hasEmptyOption=!0;t.emptyOption=u.eq(l);break}h.empty();l=!!t.emptyOption;x(e.cloneNode(!1)).val("?");var r,z=c(k.ngOptions,h,d),A=b[0].createDocumentFragment();t.generateUnknownOptionValue=
function(a){return"?"};B?(t.writeValue=function(a){if(r){var b=a&&a.map(f)||[];r.items.forEach(function(a){a.element.selected&&-1===Array.prototype.indexOf.call(b,a)&&(a.element.selected=!1)})}},t.readValue=function(){var a=h.val()||[],b=[];p(a,function(a){(a=r.selectValueMap[a])&&!a.disabled&&b.push(r.getViewValueFromOption(a))});return b},z.trackBy&&d.$watchCollection(function(){if(J(q.$viewValue))return q.$viewValue.map(function(a){return z.getTrackByValue(a)})},function(){q.$render()})):(t.writeValue=
function(a){if(r){var b=h[0].options[h[0].selectedIndex],c=r.getOptionFromViewValue(a);b&&b.removeAttribute("selected");c?(h[0].value!==c.selectValue&&(t.removeUnknownOption(),h[0].value=c.selectValue,c.element.selected=!0),c.element.setAttribute("selected","selected")):t.selectUnknownOrEmptyOption(a)}},t.readValue=function(){var a=r.selectValueMap[h.val()];return a&&!a.disabled?(t.unselectEmptyOption(),t.removeUnknownOption(),r.getViewValueFromOption(a)):null},z.trackBy&&d.$watch(function(){return z.getTrackByValue(q.$viewValue)},
function(){q.$render()}));l&&(a(t.emptyOption)(d),h.prepend(t.emptyOption),8===t.emptyOption[0].nodeType?(t.hasEmptyOption=!1,t.registerOption=function(a,b){""===b.val()&&(t.hasEmptyOption=!0,t.emptyOption=b,t.emptyOption.removeClass("ng-scope"),q.$render(),b.on("$destroy",function(){var a=t.$isEmptyOptionSelected();t.hasEmptyOption=!1;t.emptyOption=void 0;a&&q.$render()}))}):t.emptyOption.removeClass("ng-scope"));d.$watchCollection(z.getWatchables,function(){var a=r&&t.readValue();if(r)for(var b=
r.items.length-1;0<=b;b--){var c=r.items[b];v(c.group)?Jb(c.element.parentNode):Jb(c.element)}r=z.getOptions();var d={};r.items.forEach(function(a){if(v(a.group)){var b=d[a.group];b||(b=g.cloneNode(!1),A.appendChild(b),b.label=null===a.group?"null":a.group,d[a.group]=b);var c=e.cloneNode(!1);b.appendChild(c);n(a,c)}else b=e.cloneNode(!1),A.appendChild(b),n(a,b)});h[0].appendChild(A);q.$render();q.$isEmpty(a)||(b=t.readValue(),(z.trackBy||B?va(a,b):a===b)||(q.$setViewValue(b),q.$render()))})}}}}],
fh=["$locale","$interpolate","$log",function(a,b,d){var c=/{}/g,e=/^when(Minus)?(.+)$/;return{link:function(g,f,h){function k(a){f.text(a||"")}var l=h.count,m=h.$attr.when&&f.attr(h.$attr.when),n=h.offset||0,t=g.$eval(m)||{},q={},v=b.startSymbol(),u=b.endSymbol(),x=v+l+"-"+n+u,r=ja.noop,A;p(h,function(a,b){if(a=e.exec(b))a=(a[1]?"-":"")+N(a[2]),t[a]=f.attr(h.$attr[b])});p(t,function(a,d){q[d]=b(a.replace(c,x))});g.$watch(l,function(b){var c=parseFloat(b),e=aa(c);e||c in t||(c=a.pluralCat(c-n));c===
A||e&&aa(A)||(r(),e=q[c],z(e)?(null!=b&&d.debug("ngPluralize: no rule defined for '"+c+"' in "+m),r=H,k()):r=g.$watch(e,k),A=c)})}}}],gh=["$parse","$animate","$compile",function(a,b,d){var c=K("ngRepeat"),e=function(a,b,c,d,e,m,n){a[c]=d;e&&(a[e]=m);a.$index=b;a.$first=0===b;a.$last=b===n-1;a.$middle=!(a.$first||a.$last);a.$odd=!(a.$even=0===(b&1))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1E3,terminal:!0,$$tlb:!0,compile:function(g,f){var h=f.ngRepeat,k=d.$$createComment("end ngRepeat",
h);g=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!g)throw c("iexp",h);f=g[1];var l=g[2],m=g[3],n=g[4];g=f.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/);if(!g)throw c("iidexp",f);var t=g[3]||g[1],q=g[2];if(m&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(m)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(m)))throw c("badident",m);var v,u={$id:Ja};if(n)var x=a(n);else{var r=function(a,
b){return Ja(b)};var z=function(a){return a}}return function(a,d,g,f,n){x&&(v=function(b,c,d){q&&(u[q]=b);u[t]=c;u.$index=d;return x(a,u)});var w=V();a.$watchCollection(l,function(g){var f,l=d[0],u=V();m&&(a[m]=g);if(pa(g)){var x=g;var F=v||r}else for(E in F=v||z,x=[],g)ua.call(g,E)&&"$"!==E.charAt(0)&&x.push(E);var B=x.length;var E=Array(B);for(f=0;f<B;f++){var A=g===x?f:x[f];var C=g[A];var y=F(A,C,f);if(w[y]){var D=w[y];delete w[y];u[y]=D;E[f]=D}else{if(u[y])throw p(E,function(a){a&&a.scope&&(w[a.id]=
a)}),c("dupes",h,y,C);E[f]={id:y,scope:void 0,clone:void 0};u[y]=!0}}for(G in w){D=w[G];y=Ab(D.clone);b.leave(y);if(y[0].parentNode)for(f=0,F=y.length;f<F;f++)y[f].$$NG_REMOVED=!0;D.scope.$destroy()}for(f=0;f<B;f++)if(A=g===x?f:x[f],C=g[A],D=E[f],D.scope){var G=l;do G=G.nextSibling;while(G&&G.$$NG_REMOVED);D.clone[0]!==G&&b.move(Ab(D.clone),null,l);l=D.clone[D.clone.length-1];e(D.scope,f,t,C,q,A,B)}else n(function(a,c){D.scope=c;c=k.cloneNode(!1);a[a.length++]=c;b.enter(a,null,l);l=c;D.clone=a;u[D.id]=
D;e(D.scope,f,t,C,q,A,B)});w=u})}}}}],hh=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,d,c){b.$watch(c.ngShow,function(b){a[b?"removeClass":"addClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],ih=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,d,c){b.$watch(c.ngHide,function(b){a[b?"addClass":"removeClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],jh=Pa(function(a,b,d){a.$watch(d.ngStyle,function(a,d){d&&a!==d&&p(d,function(a,
c){b.css(c,"")});a&&b.css(a)},!0)}),kh=["$animate","$compile",function(a,b){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(d,c,e,g){var f=[],h=[],k=[],l=[],m=function(a,b){return function(c){!1!==c&&a.splice(b,1)}};d.$watch(e.ngSwitch||e.on,function(c){for(var d,e;k.length;)a.cancel(k.pop());d=0;for(e=l.length;d<e;++d){var n=Ab(h[d].clone);l[d].$destroy();(k[d]=a.leave(n)).done(m(k,d))}h.length=0;l.length=0;(f=g.cases["!"+c]||g.cases["?"])&&p(f,function(c){c.transclude(function(d,
e){l.push(e);e=c.element;d[d.length++]=b.$$createComment("end ngSwitchWhen");h.push({clone:d});a.enter(d,e.parent(),e)})})})}}}],lh=Pa({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,d,c,e){a=d.ngSwitchWhen.split(d.ngSwitchWhenSeparator).sort().filter(function(a,b,c){return c[b-1]!==a});p(a,function(a){c.cases["!"+a]=c.cases["!"+a]||[];c.cases["!"+a].push({transclude:e,element:b})})}}),mh=Pa({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,
link:function(a,b,d,c,e){c.cases["?"]=c.cases["?"]||[];c.cases["?"].push({transclude:e,element:b})}}),nh=K("ngTransclude"),oh=["$compile",function(a){return{restrict:"EAC",compile:function(b){var d=a(b.contents());b.empty();return function(a,b,g,f,h){function c(){d(a,function(a){b.append(a)})}if(!h)throw nh("orphan",Aa(b));g.ngTransclude===g.$attr.ngTransclude&&(g.ngTransclude="");g=g.ngTransclude||g.ngTranscludeSlot;h(function(a,d){var e;if(e=a.length)a:{e=0;for(var f=a.length;e<f;e++){var g=a[e];
if(g.nodeType!==Sa||g.nodeValue.trim()){e=!0;break a}}e=void 0}e?b.append(a):(c(),d.$destroy())},null,g);g&&!h.isSlotFilled(g)&&c()}}}}],ph=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(b,d){"text/ng-template"===d.type&&a.put(d.id,b[0].text)}}}],qh={$setViewValue:H,$render:H},rh=["$element","$scope",function(a,b){function d(){f||(f=!0,b.$$postDigest(function(){f=!1;e.ngModelCtrl.$render()}))}function c(a){h||(h=!0,b.$$postDigest(function(){b.$$destroyed||(h=!1,e.ngModelCtrl.$setViewValue(e.readValue()),
a&&e.ngModelCtrl.$render())}))}var e=this,g=new Lb;e.selectValueMap={};e.ngModelCtrl=qh;e.multiple=!1;e.unknownOption=x(D.document.createElement("option"));e.hasEmptyOption=!1;e.emptyOption=void 0;e.renderUnknownOption=function(b){b=e.generateUnknownOptionValue(b);e.unknownOption.val(b);a.prepend(e.unknownOption);Qa(e.unknownOption,!0);a.val(b)};e.updateUnknownOption=function(b){b=e.generateUnknownOptionValue(b);e.unknownOption.val(b);Qa(e.unknownOption,!0);a.val(b)};e.generateUnknownOptionValue=
function(a){return"? "+Ja(a)+" ?"};e.removeUnknownOption=function(){e.unknownOption.parent()&&e.unknownOption.remove()};e.selectEmptyOption=function(){e.emptyOption&&(a.val(""),Qa(e.emptyOption,!0))};e.unselectEmptyOption=function(){e.hasEmptyOption&&Qa(e.emptyOption,!1)};b.$on("$destroy",function(){e.renderUnknownOption=H});e.readValue=function(){var b=a.val();b=b in e.selectValueMap?e.selectValueMap[b]:b;return e.hasOption(b)?b:null};e.writeValue=function(b){var c=a[0].options[a[0].selectedIndex];
c&&Qa(x(c),!1);e.hasOption(b)?(e.removeUnknownOption(),c=Ja(b),a.val(c in e.selectValueMap?c:b),Qa(x(a[0].options[a[0].selectedIndex]),!0)):e.selectUnknownOrEmptyOption(b)};e.addOption=function(a,b){8!==b[0].nodeType&&(Ia(a,'"option value"'),""===a&&(e.hasEmptyOption=!0,e.emptyOption=b),b=g.get(a)||0,g.set(a,b+1),d())};e.removeOption=function(a){var b=g.get(a);b&&(1===b?(g.delete(a),""===a&&(e.hasEmptyOption=!1,e.emptyOption=void 0)):g.set(a,b-1))};e.hasOption=function(a){return!!g.get(a)};e.$hasEmptyOption=
function(){return e.hasEmptyOption};e.$isUnknownOptionSelected=function(){return a[0].options[0]===e.unknownOption[0]};e.$isEmptyOptionSelected=function(){return e.hasEmptyOption&&a[0].options[a[0].selectedIndex]===e.emptyOption[0]};e.selectUnknownOrEmptyOption=function(a){null==a&&e.emptyOption?(e.removeUnknownOption(),e.selectEmptyOption()):e.unknownOption.parent().length?e.updateUnknownOption(a):e.renderUnknownOption(a)};var f=!1,h=!1;e.registerOption=function(a,b,f,g,h){if(f.$attr.ngValue){var k,
l=NaN;f.$observe("value",function(a){var d=b.prop("selected");if(v(l)){e.removeOption(k);delete e.selectValueMap[l];var f=!0}l=Ja(a);k=a;e.selectValueMap[l]=a;e.addOption(a,b);b.attr("value",l);f&&d&&c()})}else g?f.$observe("value",function(a){e.readValue();var d=b.prop("selected");if(v(k)){e.removeOption(k);var f=!0}k=a;e.addOption(a,b);f&&d&&c()}):h?a.$watch(h,function(a,d){f.$set("value",a);var g=b.prop("selected");d!==a&&e.removeOption(d);e.addOption(a,b);d&&g&&c()}):e.addOption(f.value,b);f.$observe("disabled",
function(a){if("true"===a||a&&b.prop("selected"))e.multiple?c(!0):(e.ngModelCtrl.$setViewValue(null),e.ngModelCtrl.$render())});b.on("$destroy",function(){var a=e.readValue(),b=f.value;e.removeOption(b);d();(e.multiple&&a&&-1!==a.indexOf(b)||a===b)&&c(!0)})}}],sh=function(){return{restrict:"E",require:["select","?ngModel"],controller:rh,priority:1,link:{pre:function(a,b,d,c){var e=c[0],g=c[1];if(g){if(e.ngModelCtrl=g,b.on("change",function(){e.removeUnknownOption();a.$apply(function(){g.$setViewValue(e.readValue())})}),
d.multiple){e.multiple=!0;e.readValue=function(){var a=[];p(b.find("option"),function(b){b.selected&&!b.disabled&&(b=b.value,a.push(b in e.selectValueMap?e.selectValueMap[b]:b))});return a};e.writeValue=function(a){p(b.find("option"),function(b){var c=!!a&&(-1!==Array.prototype.indexOf.call(a,b.value)||-1!==Array.prototype.indexOf.call(a,e.selectValueMap[b.value]));c!==b.selected&&Qa(x(b),c)})};var f,h=NaN;a.$watch(function(){h!==g.$viewValue||va(f,g.$viewValue)||(f=ra(g.$viewValue),g.$render());
h=g.$viewValue});g.$isEmpty=function(a){return!a||0===a.length}}}else e.registerOption=H},post:function(a,b,d,c){var e=c[1];if(e){var g=c[0];e.$render=function(){g.writeValue(e.$viewValue)}}}}}},th=["$interpolate",function(a){return{restrict:"E",priority:100,compile:function(b,d){var c;if(!v(d.ngValue))if(v(d.value))var e=a(d.value,!0);else(c=a(b.text(),!0))||d.$set("value",b.text());return function(a,b,d){var f=b.parent();(f=f.data("$selectController")||f.parent().data("$selectController"))&&f.registerOption(a,
b,d,e,c)}}}}],pe=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){c&&(d.required=!0,c.$validators.required=function(a,b){return!d.required||!c.$isEmpty(b)},d.$observe("required",function(){c.$validate()}))}}},qe=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){if(c){var e,g=d.ngPattern||d.pattern;d.$observe("pattern",function(a){I(a)&&0<a.length&&(a=new RegExp("^"+a+"$"));if(a&&!a.test)throw K("ngPattern")("noregexp",g,a,Aa(b));e=a||void 0;c.$validate()});
c.$validators.pattern=function(a,b){return c.$isEmpty(b)||z(e)||e.test(b)}}}}},re=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){if(c){var e=-1;d.$observe("maxlength",function(a){a=parseInt(a,10);e=aa(a)?-1:a;c.$validate()});c.$validators.maxlength=function(a,b){return 0>e||c.$isEmpty(b)||b.length<=e}}}}},se=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){if(c){var e=0;d.$observe("minlength",function(a){e=parseInt(a,10)||0;c.$validate()});c.$validators.minlength=
function(a,b){return c.$isEmpty(b)||b.length>=e}}}}};if(D.angular.bootstrap)D.console&&console.log("WARNING: Tried to load AngularJS more than once.");else{(function(){if(!fe){var a=Xb();if((Fa=z(a)?D.jQuery:a?D[a]:void 0)&&Fa.fn.on){x=Fa;P(Fa.fn,{scope:Za.scope,isolateScope:Za.isolateScope,controller:Za.controller,injector:Za.injector,inheritedData:Za.inheritedData});var b=Fa.cleanData;Fa.cleanData=function(a){for(var c,d=0,g;null!=(g=a[d]);d++)(c=Fa._data(g,"events"))&&c.$destroy&&Fa(g).triggerHandler("$destroy");
b(a)}}else x=Y;ja.element=x;fe=!0}})();(function(a){P(a,{errorHandlingConfig:te,bootstrap:bd,copy:Ga,extend:P,merge:ve,equals:va,element:x,forEach:p,injector:ib,noop:H,bind:Xa,toJson:gb,fromJson:Zc,identity:yb,isUndefined:z,isDefined:v,isString:I,isFunction:A,isObject:G,isNumber:ca,isElement:dc,isArray:J,version:kg,isDate:ia,lowercase:N,uppercase:Ob,callbacks:{$$counter:0},getTestability:Ee,reloadWithDebugInfo:De,$$minErr:K,$$csp:Ea,$$encodeUriSegment:hb,$$encodeUriQuery:na,$$stringify:mc});uc=Ge(D);
uc("ng",["ngLocale"],["$provide",function(a){a.provider({$$sanitizeUri:Lf});a.provider("$compile",nd).directive({a:Cg,input:ne,textarea:ne,form:Dg,script:ph,select:sh,option:th,ngBind:Kg,ngBindHtml:Mg,ngBindTemplate:Lg,ngClass:Og,ngClassEven:Qg,ngClassOdd:Pg,ngCloak:Rg,ngController:Sg,ngForm:Eg,ngHide:ih,ngIf:Ug,ngInclude:Vg,ngInit:Xg,ngNonBindable:bh,ngPluralize:fh,ngRepeat:gh,ngShow:hh,ngStyle:jh,ngSwitch:kh,ngSwitchWhen:lh,ngSwitchDefault:mh,ngOptions:eh,ngTransclude:oh,ngModel:Zg,ngList:Yg,ngChange:Ng,
pattern:qe,ngPattern:qe,required:pe,ngRequired:pe,minlength:se,ngMinlength:se,maxlength:re,ngMaxlength:re,ngValue:Jg,ngModelOptions:ah}).directive({ngInclude:Wg,input:Hg}).directive(Zb).directive(oe);a.provider({$anchorScroll:We,$animate:tg,$animateCss:wg,$$animateJs:rg,$$animateQueue:sg,$$AnimateRunner:vg,$$animateAsyncRun:ug,$browser:Ze,$cacheFactory:$e,$controller:hf,$document:jf,$$isDocumentHidden:kf,$exceptionHandler:lf,$filter:Nd,$$forceReflow:xg,$interpolate:wf,$interval:xf,$http:rf,$httpParamSerializer:mf,
$httpParamSerializerJQLike:nf,$httpBackend:uf,$xhrFactory:tf,$jsonpCallbacks:yg,$location:Af,$log:Bf,$parse:Gf,$rootScope:Kf,$q:Hf,$$q:If,$sce:fg,$sceDelegate:eg,$sniffer:Mf,$templateCache:af,$templateRequest:gg,$$testability:Nf,$timeout:Of,$window:Pf,$$rAF:Jf,$$jqLite:Re,$$Map:og,$$cookieReader:Qf})}]).info({angularVersion:"1.6.4-local+sha.617b36117"})})(ja);ja.module("ngLocale",[],["$provide",function(a){function b(a){a+="";var b=a.indexOf(".");return-1==b?0:a.length-b-1}a.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM",
"PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),WEEKENDRANGE:[5,
6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-\u00a4",negSuf:"",posPre:"\u00a4",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(a,
c){var d=a|0;void 0===c&&(c=Math.min(b(a),3));return 1==d&&0==c?"one":"other"}})}]);var fa=K("$sce"),$a={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",TEMPLATE_URL:"templateUrl",JS:"js"},Sc=/_([a-z])/g,hg=K("$compile");x(function(){Be(D.document,bd)})}})(window);angular.element(document).find("head").append('<style type="text/css">@charset "UTF-8";\n\n[ng\\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak],\n.ng-cloak, .x-ng-cloak,\n.ng-hide:not(.ng-hide-animate) {\n  display: none !important;\n}\n\nng\\:form {\n  display: block;\n}\n\n.ng-animate-shim {\n  visibility:hidden;\n}\n\n.ng-anchor {\n  position:absolute;\n}\n</style>');

//third_party/javascript/angular_material/latest/angular-material.min.js
/*!
 * AngularJS Material Design
 * https://github.com/angular/material
 * @license MIT
 * v1.1.18
 */
!function(B,ce,me){"use strict";ce.module("ngMaterial",["ng","ngAnimate","ngAria","material.core","material.core.animate","material.core.gestures","material.core.interaction","material.core.layout","material.core.meta","material.core.theming.palette","material.core.theming","material.components.autocomplete","material.components.backdrop","material.components.bottomSheet","material.components.button","material.components.card","material.components.checkbox","material.components.chips","material.components.colors","material.components.content","material.components.datepicker","material.components.dialog","material.components.divider","material.components.fabActions","material.components.fabShared","material.components.fabSpeedDial","material.components.fabToolbar","material.components.gridList","material.components.icon","material.components.input","material.components.list","material.components.menu","material.components.menuBar","material.components.navBar","material.components.panel","material.components.progressCircular","material.components.progressLinear","material.components.radioButton","material.components.select","material.components.showHide","material.components.sidenav","material.components.slider","material.components.sticky","material.components.subheader","material.components.swipe","material.components.switch","material.components.tabs","material.components.toast","material.components.toolbar","material.components.tooltip","material.components.truncate","material.components.virtualRepeat","material.components.whiteframe"]),function(){function e(e,t){if(t.has("$swipe")){e.warn("You are using the ngTouch module. \nAngularJS Material already has mobile click, tap, and swipe support... \nngTouch is not supported with AngularJS Material!")}}function t(e,t){e.decorator("$$rAF",["$delegate",n]),e.decorator("$q",["$delegate",o]),t.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("deep-orange").backgroundPalette("grey")}function n(r){return r.throttle=function(e){var t,n,o,i;return function(){t=arguments,i=this,o=e,n||(n=!0,r(function(){o.apply(i,Array.prototype.slice.call(t)),n=!1}))}},r}function o(e){return e.resolve||(e.resolve=e.when),e}e.$inject=["$log","$injector"],t.$inject=["$provide","$mdThemingProvider"],n.$inject=["$delegate"],o.$inject=["$delegate"],ce.module("material.core",["ngAnimate","material.core.animate","material.core.layout","material.core.interaction","material.core.gestures","material.core.theming"]).config(t).run(e)}(),function(){function e(r){return{restrict:"A",link:{pre:function(e,t,n){var o=n.mdAutoFocus||n.mdAutofocus||n.mdSidenavFocus;i(r(o)(e)),o&&e.$watch(o,i);function i(e){ce.isUndefined(e)&&(e=!0),t.toggleClass("md-autofocus",!!e)}}}}}e.$inject=["$parse"],ce.module("material.core").directive("mdAutofocus",e).directive("mdAutoFocus",e).directive("mdSidenavFocus",e)}(),ce.module("material.core").factory("$mdColorUtil",function(){return{rgbaToHex:function(e){return((e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):"").toUpperCase()},hexToRgba:function(e){var t="#"===e[0]?e.substr(1):e,n=t.length/3,o=t.substr(0,n),i=t.substr(n,n),r=t.substr(2*n);return 1===n&&(o+=o,i+=i,r+=r),"rgba("+parseInt(o,16)+","+parseInt(i,16)+","+parseInt(r,16)+",0.1)"},rgbToRgba:function(e){return e.replace(")",", 0.1)").replace("(","a(")},rgbaToRgb:function(e){return e?e.replace("rgba","rgb").replace(/,[^),]+\)/,")"):"rgb(0,0,0)"}}}),ce.module("material.core").factory("$mdConstant",function(){var i=document.createElement("div"),r=function(e){var t,n,o=/^(Moz|webkit|ms)(?=[A-Z])/;for(t in e.style)if(n=o.exec(t))return n[0]}(i),e=/webkit/i.test(r),a=/([:\-_]+(.))/g;function t(e){var t=r+"-"+e,n=t.replace(a,function(e,t,n,o){return o?n.toUpperCase():n}),o=n.charAt(0).toLowerCase()+n.substring(1);return d(i,e)?e:d(i,n)?n:d(i,o)?o:e}function d(e,t){return ce.isDefined(e.style[t])}var o={isInputKey:function(e){return 31<=e.keyCode&&e.keyCode<=90},isNumPadKey:function(e){return 3===e.location&&97<=e.keyCode&&e.keyCode<=105},isMetaKey:function(e){return 91<=e.keyCode&&e.keyCode<=93},isFnLockKey:function(e){return 112<=e.keyCode&&e.keyCode<=145},isNavigationKey:function(e){var t=o.KEY_CODE,n=[t.SPACE,t.ENTER,t.UP_ARROW,t.DOWN_ARROW];return-1!=n.indexOf(e.keyCode)},hasModifierKey:function(e){return e.ctrlKey||e.metaKey||e.altKey},ELEMENT_MAX_PIXELS:1533917,BEFORE_NG_ARIA:210,KEY_CODE:{COMMA:188,SEMICOLON:186,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,TAB:9,BACKSPACE:8,DELETE:46},CSS:{TRANSITIONEND:"transitionend"+(e?" webkitTransitionEnd":""),ANIMATIONEND:"animationend"+(e?" webkitAnimationEnd":""),TRANSFORM:t("transform"),TRANSFORM_ORIGIN:t("transformOrigin"),TRANSITION:t("transition"),TRANSITION_DURATION:t("transitionDuration"),ANIMATION_PLAY_STATE:t("animationPlayState"),ANIMATION_DURATION:t("animationDuration"),ANIMATION_NAME:t("animationName"),ANIMATION_TIMING:t("animationTimingFunction"),ANIMATION_DIRECTION:t("animationDirection")},MEDIA:{xs:"(max-width: 599px)","gt-xs":"(min-width: 600px)",sm:"(min-width: 600px) and (max-width: 959px)","gt-sm":"(min-width: 960px)",md:"(min-width: 960px) and (max-width: 1279px)","gt-md":"(min-width: 1280px)",lg:"(min-width: 1280px) and (max-width: 1919px)","gt-lg":"(min-width: 1920px)",xl:"(min-width: 1920px)",landscape:"(orientation: landscape)",portrait:"(orientation: portrait)",print:"print"},MEDIA_PRIORITY:["xl","gt-lg","lg","gt-md","md","gt-sm","sm","gt-xs","xs","landscape","portrait","print"]};return o}),function(){function t(e,d){var s=function(){return!0};e&&!ce.isArray(e)&&(e=Array.prototype.slice.call(e)),d=!!d;var l=e||[];return{items:function(){return[].concat(l)},count:function(){return l.length},inRange:c,contains:t,indexOf:m,itemAt:function(e){return c(e)?l[e]:null},findBy:function(t,n){return l.filter(function(e){return e[t]===n})},add:function(e,t){if(!e)return-1;ce.isNumber(t)||(t=l.length);return l.splice(t,0,e),m(e)},remove:function(e){t(e)&&l.splice(m(e),1)},first:u,last:p,next:ce.bind(null,n,!1),previous:ce.bind(null,n,!0),hasPrevious:function(e){return!!e&&c(m(e)-1)},hasNext:function(e){return!!e&&c(m(e)+1)}};function c(e){return l.length&&-1<e&&e<l.length}function m(e){return l.indexOf(e)}function t(e){return e&&-1<m(e)}function u(){return l.length?l[0]:null}function p(){return l.length?l[l.length-1]:null}function n(e,t,n,o){n=n||s;for(var i=m(t);;){if(!c(i))return null;var r=i+(e?-1:1),a=null;if(c(r)?a=l[r]:d&&(r=m(a=e?p():u())),null===a||r===o)return null;if(n(a))return a;ce.isUndefined(o)&&(o=r),i=r}}}ce.module("material.core").config(["$provide",function(e){e.decorator("$mdUtil",["$delegate",function(e){return e.iterator=t,e}])}])}(),function(){function e(a,t,i){var r={},d={},s={},n={};return e.getResponsiveAttribute=function(e,t){for(var n=0;n<a.MEDIA_PRIORITY.length;n++){var o=a.MEDIA_PRIORITY[n];if(d[r[o]].matches){var i=c(e,t+"-"+o);if(e[i])return e[i]}}return e[c(e,t)]},e.getQuery=function(e){return d[e]},e.watchResponsiveAttributes=function(e,o,i){var r=[];return e.forEach(function(e){var t=c(o,e);for(var n in ce.isDefined(o[t])&&r.push(o.$observe(t,ce.bind(void 0,i,null))),a.MEDIA)t=c(o,e+"-"+n),ce.isDefined(o[t])&&r.push(o.$observe(t,ce.bind(void 0,i,n)))}),function(){r.forEach(function(e){e()})}},e;function e(e){var t,n=r[e];ce.isUndefined(n)&&(n=r[e]=(t=e,a.MEDIA[t]||("("!==t.charAt(0)?"("+t+")":t)));var o=s[n];return ce.isUndefined(o)&&(o=function(e){var t=d[e];t||(t=d[e]=i.matchMedia(e));return t.addListener(l),s[t.media]=!!t.matches}(n)),o}function l(e){t.$evalAsync(function(){s[e.media]=!!e.matches})}function c(e,t){return n[t]||(n[t]=e.$normalize(t))}}e.$inject=["$mdConstant","$rootScope","$window"],ce.module("material.core").factory("$mdMedia",e)}(),function(){function t(e,t){var o=["data","x"];return e?t?n(e):i(e):{buildList:i,buildSelector:n,hasAttribute:function(e,t){if(!(e=r(e)))return!1;for(var n=i(t),o=0;o<n.length;o++)if(e.hasAttribute(n[o]))return!0;return!1},removeAttribute:function(t,e){if(!(t=r(t)))return;i(e).forEach(function(e){t.removeAttribute(e)})}};function i(n){return(n=ce.isArray(n)?n:[n]).forEach(function(t){o.forEach(function(e){n.push(e+"-"+t)})}),n}function n(e){return i(e=ce.isArray(e)?e:[e]).map(function(e){return"["+e+"]"}).join(",")}function r(e){if((e=e[0]||e).nodeType)return e}}ce.module("material.core").config(["$provide",function(e){e.decorator("$mdUtil",["$delegate",function(e){return e.prefixer=t,e}])}])}(),function(){e.$inject=["$document","$timeout","$compile","$rootScope","$$mdAnimate","$interpolate","$log","$rootElement","$window","$$rAF"];var b=0;function e(s,d,n,a,e,t,r,o,l,m){var i=t.startSymbol(),c=t.endSymbol(),u="{{"===i&&"}}"===c,p=function(e,t,n){var o=!1;if(e&&e.length){var i=l.getComputedStyle(e[0]);o=ce.isDefined(i[t])&&(!n||i[t]==n)}return o};function h(e){return e?-1<String(e).indexOf("px")||-1<String(e).indexOf("%")?e:e+"px":"0"}var f={dom:{},now:B.performance&&B.performance.now?ce.bind(B.performance,B.performance.now):Date.now||function(){return(new Date).getTime()},getModelOption:function(e,t){if(e.$options){var n=e.$options;return n.getOption?n.getOption(t):n[t]}},bidi:function(e,t,n,o){var i=!("rtl"==s[0].dir||"rtl"==s[0].body.dir);if(0==arguments.length)return i?"ltr":"rtl";var r=ce.element(e);i&&ce.isDefined(n)?r.css(t,h(n)):!i&&ce.isDefined(o)&&r.css(t,h(o))},bidiProperty:function(e,t,n,o){var i=!("rtl"==s[0].dir||"rtl"==s[0].body.dir),r=ce.element(e);i&&ce.isDefined(t)?(r.css(t,h(o)),r.css(n,"")):!i&&ce.isDefined(n)&&(r.css(n,h(o)),r.css(t,""))},clientRect:function(e,t,n){var o=g(e);t=g(t||o.offsetParent||document.body);var i=o.getBoundingClientRect(),r=n?t.getBoundingClientRect():{left:0,top:0,width:0,height:0};return{left:i.left-r.left,top:i.top-r.top,width:i.width,height:i.height}},offsetRect:function(e,t){return f.clientRect(e,t,!0)},nodesToArray:function(e){e=e||[];for(var t=[],n=0;n<e.length;++n)t.push(e.item(n));return t},getViewportTop:function(){return f.disableScrollAround._count&&f.disableScrollAround._viewPortTop?f.disableScrollAround._viewPortTop:l.scrollY||l.pageYOffset||0},findFocusTarget:function(e,t){var n,o=this.prefixer("md-autofocus",!0);return(n=i(e,t||o))||t==o||(n=i(e,this.prefixer("md-auto-focus",!0)))||(n=i(e,o)),n;function i(e,t){var n,o=e[0].querySelectorAll(t);return o&&o.length&&o.length&&ce.forEach(o,function(e){(e=ce.element(e)).hasClass("md-autofocus")&&(n=e)}),n}},disableScrollAround:function(e,t,o){if(o=o||{},f.disableScrollAround._count=Math.max(0,f.disableScrollAround._count||0),f.disableScrollAround._count++,f.disableScrollAround._restoreScroll)return f.disableScrollAround._restoreScroll;var d=s[0].body,n=function(){var e=s[0].documentElement,t=e.style.cssText||"",n=d.style.cssText||"",o=f.getViewportTop();f.disableScrollAround._viewPortTop=o;var i=d.clientWidth,r=d.scrollHeight>d.clientHeight+1,a=0<e.scrollTop?e:d;r&&ce.element(d).css({position:"fixed",width:"100%",top:-o+"px"});d.clientWidth<i&&(d.style.overflow="hidden");return function(){d.style.cssText=n,e.style.cssText=t,a.scrollTop=o}}(),i=function(e){var t;e=ce.element(e||d),o.disableScrollMask?t=e:(t=ce.element('<div class="md-scroll-mask">  <div class="md-scroll-mask-bar"></div></div>'),e.append(t));return t.on("wheel",n),t.on("touchmove",n),function(){t.off("wheel"),t.off("touchmove"),!o.disableScrollMask&&t[0].parentNode&&t[0].parentNode.removeChild(t[0])};function n(e){e.preventDefault()}}(t);return f.disableScrollAround._restoreScroll=function(){--f.disableScrollAround._count<=0&&(delete f.disableScrollAround._viewPortTop,n(),i(),delete f.disableScrollAround._restoreScroll)}},enableScrolling:function(){var e=this.disableScrollAround._restoreScroll;e&&e()},floatingScrollbars:function(){if(this.floatingScrollbars.cached===me){var e=ce.element("<div><div></div></div>").css({width:"100%","z-index":-1,position:"absolute",height:"35px","overflow-y":"scroll"});e.children().css("height","60px"),s[0].body.appendChild(e[0]),this.floatingScrollbars.cached=e[0].offsetWidth==e[0].childNodes[0].offsetWidth,e.remove()}return this.floatingScrollbars.cached},forceFocus:function(e){var n=e[0]||e;document.addEventListener("click",function e(t){t.target===n&&t.$focus&&(n.focus(),t.stopImmediatePropagation(),t.preventDefault(),n.removeEventListener("click",e))},!0);var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!1,!0,B,{},0,0,0,0,!1,!1,!1,!1,0,null),t.$material=!0,t.$focus=!0,n.dispatchEvent(t)},createBackdrop:function(e,t){return n(f.supplant('<md-backdrop class="{0}">',[t]))(e)},supplant:function(e,r,t){return t=t||/\{([^{}]*)\}/g,e.replace(t,function(t,e){var n=e.split("."),o=r;try{for(var i in n)n.hasOwnProperty(i)&&(o=o[n[i]])}catch(e){o=t}return"string"==typeof o||"number"==typeof o?o:t})},fakeNgModel:function(){return{$fake:!0,$setTouched:ce.noop,$setViewValue:function(e){this.$viewValue=e,this.$render(e),this.$viewChangeListeners.forEach(function(e){e()})},$isEmpty:function(e){return 0===(""+e).length},$parsers:[],$formatters:[],$viewChangeListeners:[],$render:ce.noop}},debounce:function(n,o,i,r){var a;return function(){var e=i,t=Array.prototype.slice.call(arguments);d.cancel(a),a=d(function(){a=me,n.apply(e,t)},o||10,r)}},throttle:function(n,o){var i;return function(){var e=arguments,t=f.now();(!i||o<t-i)&&(n.apply(this,e),i=t)}},time:function(e){var t=f.now();return e(),f.now()-t},valueOnUse:function(e,t,n){var o=null,i=Array.prototype.slice.call(arguments),r=3<i.length?i.slice(3):[];Object.defineProperty(e,t,{get:function(){return null===o&&(o=n.apply(e,r)),o}})},nextUid:function(){return""+b++},disconnectScope:function(e){if(e&&e.$root!==e&&!e.$$destroyed){var t=e.$parent;e.$$disconnected=!0,t.$$childHead===e&&(t.$$childHead=e.$$nextSibling),t.$$childTail===e&&(t.$$childTail=e.$$prevSibling),e.$$prevSibling&&(e.$$prevSibling.$$nextSibling=e.$$nextSibling),e.$$nextSibling&&(e.$$nextSibling.$$prevSibling=e.$$prevSibling),e.$$nextSibling=e.$$prevSibling=null}},reconnectScope:function(e){if(e&&e.$root!==e&&e.$$disconnected){var t=e,n=t.$parent;t.$$disconnected=!1,t.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=t,n.$$childTail=t):n.$$childHead=n.$$childTail=t}},getClosest:function(e,t,n){if(ce.isString(t)){var o=t.toUpperCase();t=function(e){return e.nodeName.toUpperCase()===o}}if(e instanceof ce.element&&(e=e[0]),n&&(e=e.parentNode),!e)return null;do{if(t(e))return e}while(e=e.parentNode);return null},elementContains:function(t,n){return(B.Node&&B.Node.prototype&&Node.prototype.contains?ce.bind(t,t.contains):ce.bind(t,function(e){return t===n||!!(16&this.compareDocumentPosition(e))}))(n)},extractElementByName:function(e,o,t,n){var i=d(e);return!i&&n&&r.warn(f.supplant("Unable to find node '{0}' in element '{1}'.",[o,e[0].outerHTML])),ce.element(i||e);function d(e){return function(e){if(e)for(var t=0,n=e.length;t<n;t++)if(e[t].nodeName.toLowerCase()===o)return e[t];return null}(e)||(t?function(e){var t;if(e)for(var n=0,o=e.length;n<o;n++){var i=e[n];if(!t)for(var r=0,a=i.childNodes.length;r<a;r++)t=t||d([i.childNodes[r]])}return t}(e):null)}},initOptionalProperties:function(o,i,r){r=r||{},ce.forEach(o.$$isolateBindings,function(e,t){if(e.optional&&ce.isUndefined(o[t])){var n=ce.isDefined(i[e.attrName]);o[t]=ce.isDefined(r[t])?r[t]:n}})},nextTick:function(e,t,n){var o=f.nextTick,i=o.timeout,r=o.queue||[];return r.push({scope:n,callback:e}),null==t&&(t=!0),o.digest=o.digest||t,o.queue=r,i||(o.timeout=d(function(){var e=o.queue,t=o.digest;o.queue=[],o.timeout=null,o.digest=!1,e.forEach(function(e){e.scope&&e.scope.$$destroyed||e.callback()}),t&&a.$digest()},0,!1))},processTemplate:function(e){return u?e:e&&ce.isString(e)?e.replace(/\{\{/g,i).replace(/}}/g,c):e},getParentWithPointerEvents:function(e){for(var t=e.parent();p(t,"pointer-events","none");)t=t.parent();return t},getNearestContentElement:function(e){for(var t=e.parent()[0];t&&t!==o[0]&&t!==document.body&&"MD-CONTENT"!==t.nodeName.toUpperCase();)t=t.parentNode;return t},checkStickySupport:function(){var e,t=ce.element("<div>");s[0].body.appendChild(t[0]);for(var n=["sticky","-webkit-sticky"],o=0;o<n.length;++o)if(t.css({position:n[o],top:0,"z-index":2}),t.css("position")==n[o]){e=n[o];break}return t.remove(),e},parseAttributeBoolean:function(e,t){return""===e||!!e&&(!1===t||"false"!==e&&"0"!==e)},hasComputedStyle:p,isParentFormSubmitted:function(e){var t=f.getClosest(e,"form"),n=t?ce.element(t).controller("form"):null;return!!n&&n.$submitted},animateScrollTo:function(i,r,a){var d=i.scrollTop,s=r-d,l=d<r,c=f.now();m(function e(){var t=(n=a||1e3,o=f.now()-c,function(e,t,n,o){if(o<e)return t+n;var i=(e/=o)*e;return t+n*(i*e*-2+3*i)}(o,d,s,n));var n,o;i.scrollTop=t;(l?t<r:r<t)&&m(e)})},uniq:function(e){if(e)return e.filter(function(e,t,n){return n.indexOf(e)===t})},getInnerHTML:function(e){var t=new XMLSerializer;return Array.prototype.map.call(e.childNodes,function(e){return t.serializeToString(e)}).join("")},getOuterHTML:function(e){return(new XMLSerializer).serializeToString(e)},msie:B.document.documentMode};return f.dom.animator=e(f),f;function g(e){return e[0]||e}}ce.module("material.core").factory("$mdUtil",e),ce.element.prototype.focus=ce.element.prototype.focus||function(){return this.length&&this[0].focus(),this},ce.element.prototype.blur=ce.element.prototype.blur||function(){return this.length&&this[0].blur(),this}}(),ce.module("material.core").factory("$$mdAnimate",["$q","$timeout","$mdConstant","$animateCss",function(n,i,a,d){return function(e){return o=e,t=n,s=i,l=a,r=d,c={translate3d:function(t,n,e,o){return r(t,{from:n,to:e,addClass:o.transitionInClass,removeClass:o.transitionOutClass,duration:o.duration}).start().then(function(){return i});function i(e){return r(t,{to:e||n,addClass:o.transitionOutClass,removeClass:o.transitionInClass,duration:o.duration}).start()}},waitTransitionEnd:function(r,a){var d=3e3;return t(function(t,e){var n;("0s"==(n=(n=(a=a||{}).cachedTransitionStyles)||B.getComputedStyle(r[0])).transitionDuration||!n.transition&&!n.transitionProperty)&&(d=0);var o=s(i,a.timeout||d);function i(e){e&&e.target!==r[0]||(e&&s.cancel(o),r.off(l.CSS.TRANSITIONEND,i),t())}r.on(l.CSS.TRANSITIONEND,i)})},calculateTransformValues:function(e,t){var n,o,i=t.element,r=t.bounds;if(i||r){var a=i?c.clientRect(i)||(n=e?e.parent():null,(o=n?n.parent():null)?c.clientRect(o):null):c.copyRect(r),d=c.copyRect(e[0].getBoundingClientRect()),s=c.centerPointFor(d),l=c.centerPointFor(a);return{centerX:l.x-s.x,centerY:l.y-s.y,scaleX:Math.round(100*Math.min(.5,a.width/d.width))/100,scaleY:Math.round(100*Math.min(.5,a.height/d.height))/100}}return{centerX:0,centerY:0,scaleX:.5,scaleY:.5}},calculateZoomToOrigin:function(e,t){var n=ce.bind(null,o.supplant,"translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )");return n(c.calculateTransformValues(e,t))},calculateSlideToOrigin:function(e,t){var n=ce.bind(null,o.supplant,"translate3d( {centerX}px, {centerY}px, 0 )");return n(c.calculateTransformValues(e,t))},toCss:function(e){var o={};return ce.forEach(e,function(e,t){if(!ce.isUndefined(e))if(0<="left top right bottom width height x y min-width min-height max-width max-height".indexOf(t))o[t]=e+"px";else switch(t){case"transition":n(t,l.CSS.TRANSITION,e);break;case"transform":n(t,l.CSS.TRANSFORM,e);break;case"transformOrigin":n(t,l.CSS.TRANSFORM_ORIGIN,e);break;case"font-size":o["font-size"]=e}}),o;function n(e,t,n){ce.forEach(t.split(" "),function(e){o[e]=n})}},toTransformCss:function(t,e,n){var o={};return ce.forEach(l.CSS.TRANSFORM.split(" "),function(e){o[e]=t}),e&&(n=n||"all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important",o.transition=n),o},copyRect:function(t,n){return t?(n=n||{},ce.forEach("left top right bottom width height".split(" "),function(e){n[e]=Math.round(t[e])}),n.width=n.width||n.right-n.left,n.height=n.height||n.bottom-n.top,n):null},clientRect:function(e){var t,n=ce.element(e)[0].getBoundingClientRect();return(t=n)&&0<t.width&&0<t.height?c.copyRect(n):null},centerPointFor:function(e){return e?{x:Math.round(e.left+e.width/2),y:Math.round(e.top+e.height/2)}:{x:0,y:0}}};var o,t,s,l,r,c}}]),4<=ce.version.minor?ce.module("material.core.animate",[]):function(){var A=ce.forEach,w=ce.isDefined(document.documentElement.style.WebkitAppearance),_=w?"-webkit-":"",k=(w?"webkitTransitionEnd ":"")+"transitionend",x=(w?"webkitAnimationEnd ":"")+"animationend",e=["$q","$$rAFMutex",function(t,n){function e(e){this.setHost(e),this._doneCallbacks=[],this._runInAnimationFrame=n(),this._state=0}return e.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:ce.noop,getPromise:function(){if(!this.promise){var e=this;this.promise=t(function(t,n){e.done(function(e){!1===e?n():t()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._runInAnimationFrame(function(){t._resolve(e)}))},_resolve:function(t){2!==this._state&&(A(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=2)}},e.all=function(t,n){var o=0,i=!0;function r(e){i=i&&e,++o===t.length&&n(i)}A(t,function(e){e.done(r)})},e}];function N(e){return e.replace(/-[a-z]/g,function(e){return e.charAt(1).toUpperCase()})}ce.module("material.core.animate",[]).factory("$$forceReflow",["$document",function(e){return function(){return e[0].body.clientWidth+1}}]).factory("$$AnimateRunner",e).factory("$$rAFMutex",["$$rAF",function(n){return function(){var t=!1;return n(function(){t=!0}),function(e){t?e():n(e)}}}]).factory("$animateCss",["$window","$$rAF","$$AnimateRunner","$$forceReflow","$$jqLite","$timeout","$animate",function(h,r,a,f,n,g,d){function b(e,t){t.addClass&&(n.addClass(e,t.addClass),t.addClass=null),t.removeClass&&(n.removeClass(e,t.removeClass),t.removeClass=null)}function v(e){var t=0,n=(e||"").split(/\s*,\s*/);return A(n,function(e){"s"==e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}var E,$=[];function y(e,t){t.from&&(e.css(t.from),t.from=null)}function C(e,t){t.to&&(e.css(t.to),t.to=null)}function M(e){for(var t=0;t<e.length;t++)if(1===e[t].nodeType)return e[t]}function T(e,t){var n=M(e),o=N(_+"transition-delay");n.style[o]=t?"-9999s":""}return function(o,s){var l=[],c=M(o),e=c&&d.enabled(),t=!1,n=!1;e&&(s.transitionStyle&&l.push([_+"transition",s.transitionStyle]),s.keyframeStyle&&l.push([_+"animation",s.keyframeStyle]),s.delay&&l.push([_+"transition-delay",s.delay+"s"]),s.duration&&l.push([_+"transition-duration",s.duration+"s"]),t=s.keyframeStyle||s.to&&(0<s.duration||s.transitionStyle),n=!!s.addClass||!!s.removeClass,T(o,!0));var m=e&&(t||n);y(o,s);var u,p,i=!1;return{close:h.close,start:function(){var e,n=new a;return e=function(){if(T(o,!1),!m)return d();A(l,function(e){var t=e[0],n=e[1];c.style[N(t)]=n}),b(o,s);var e=function(e){var t=M(e),n=h.getComputedStyle(t),o=v(n[l("transitionDuration")]),i=v(n[l("animationDuration")]),r=v(n[l("transitionDelay")]),a=v(n[l("animationDelay")]);i*=parseInt(n[l("animationIterationCount")],10)||1;var d=Math.max(i,o),s=Math.max(a,r);return{duration:d,delay:s,animationDuration:i,transitionDuration:o,animationDelay:a,transitionDelay:r};function l(e){return w?"Webkit"+e.charAt(0).toUpperCase()+e.substr(1):e}}(o);if(0===e.duration)return d();var t=[];s.easing&&(e.transitionDuration&&t.push([_+"transition-timing-function",s.easing]),e.animationDuration&&t.push([_+"animation-timing-function",s.easing])),s.delay&&e.animationDelay&&t.push([_+"animation-delay",s.delay+"s"]),s.duration&&e.animationDuration&&t.push([_+"animation-duration",s.duration+"s"]),A(t,function(e){var t=e[0],n=e[1];c.style[N(t)]=n,l.push(e)});var i=1e3*e.delay,r=e.duration,n=1e3*r,a=Date.now();u=[],e.transitionDuration&&u.push(k),e.animationDuration&&u.push(x),u=u.join(" "),p=function(e){e.stopPropagation();var t=e.originalEvent||e,n=t.timeStamp||Date.now(),o=parseFloat(t.elapsedTime.toFixed(3));Math.max(n-a,0)>=i&&r<=o&&d()},o.on(u,p),C(o,s),g(d,i+1.5*n,!1)},E&&E(),$.push(e),E=r(function(){E=null;for(var e=f(),t=0;t<$.length;t++)$[t](e);$.length=0}),n;function d(){var e,t;if(!i)return i=!0,u&&p&&o.off(u,p),b(o,s),y(e=o,t=s),C(e,t),A(l,function(e){c.style[N(e[0])]=""}),n.complete(!0),n}}}}}])}(),function(){function r(o,i,s,r){var a=this.showWarnings;return{expect:d,expectAsync:l,expectWithText:function(e,t){var n=c(e)||"";-1<n.indexOf(r.startSymbol())?l(e,t,function(){return c(e)}):d(e,t,n)},expectWithoutText:function(e,t){var n=c(e);-1<n.indexOf(r.startSymbol())||n||d(e,t,n)},getText:c,hasAriaLabel:m,parentHasAriaLabel:function e(t,n){n=n||1;var o=ce.element(t)[0]||t;if(!o.parentNode)return!1;if(i(o.parentNode))return!0;n--;if(n)return e(o.parentNode,n);return!1;function i(e){if(!m(e))return!1;if(e.hasAttribute("role"))switch(e.getAttribute("role").toLowerCase()){case"command":case"definition":case"directory":case"grid":case"list":case"listitem":case"log":case"marquee":case"menu":case"menubar":case"note":case"presentation":case"separator":case"scrollbar":case"status":case"tablist":return!1}switch(e.tagName.toLowerCase()){case"abbr":case"acronym":case"address":case"applet":case"audio":case"b":case"bdi":case"bdo":case"big":case"blockquote":case"br":case"canvas":case"caption":case"center":case"cite":case"code":case"col":case"data":case"dd":case"del":case"dfn":case"dir":case"div":case"dl":case"em":case"embed":case"fieldset":case"figcaption":case"font":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"hgroup":case"html":case"i":case"ins":case"isindex":case"kbd":case"keygen":case"label":case"legend":case"li":case"map":case"mark":case"menu":case"object":case"ol":case"output":case"pre":case"presentation":case"q":case"rt":case"ruby":case"samp":case"small":case"source":case"span":case"status":case"strike":case"strong":case"sub":case"sup":case"svg":case"tbody":case"td":case"th":case"thead":case"time":case"tr":case"track":case"tt":case"ul":case"var":return!1}return!0}}};function d(e,t,n){var o=ce.element(e)[0]||e;!o||o.hasAttribute(t)&&0!==o.getAttribute(t).length||function(e,t){var n=e.hasChildNodes(),o=!1;if(n)for(var i=e.childNodes,r=0;r<i.length;r++){var a=i[r];1===a.nodeType&&a.hasAttribute(t)&&(void 0,"none"!==((d=a).currentStyle?d.currentStyle:s.getComputedStyle(d)).display&&(o=!0))}var d;return o}(o,t)||((n=ce.isString(n)?n.trim():"").length?e.attr(t,n):a&&i.warn('ARIA: Attribute "',t,'", required for accessibility, is missing on node:',o))}function l(e,t,n){o(function(){d(e,t,n())})}function c(t){t=t[0]||t;for(var e,n=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1),o="";e=n.nextNode();)i(e)||(o+=e.textContent);return o.trim()||"";function i(e){for(;e.parentNode&&(e=e.parentNode)!==t;)if(e.getAttribute&&"true"===e.getAttribute("aria-hidden"))return!0}}function m(e){var t=ce.element(e)[0]||e;return!!t.hasAttribute&&(t.hasAttribute("aria-label")||t.hasAttribute("aria-labelledby")||t.hasAttribute("aria-describedby"))}}r.$inject=["$$rAF","$log","$window","$interpolate"],ce.module("material.core").provider("$mdAria",function(){var i={showWarnings:!0};return{disableWarnings:function(){i.showWarnings=!1},$get:["$$rAF","$log","$window","$interpolate",function(e,t,n,o){return r.apply(i,arguments)}]}})}(),function(){function e(r){var a=!1;function d(e,t,n,o,i){this.$q=e,this.$templateRequest=t,this.$injector=n,this.$compile=o,this.$controller=i}this.respectPreAssignBindingsEnabled=function(e){return ce.isDefined(e)?(a=e,this):a},this.$get=["$q","$templateRequest","$injector","$compile","$controller",function(e,t,n,o,i){return new d(e,t,n,o,i)}],d.prototype.compile=function(e){return e.contentElement?this._prepareContentElement(e):this._compileTemplate(e)},d.prototype._prepareContentElement=function(e){var t=this._fetchContentElement(e);return this.$q.resolve({element:t.element,cleanup:t.restore,locals:{},link:function(){return t.element}})},d.prototype._compileTemplate=function(o){var i=this,e=o.templateUrl,t=o.template||"",n=ce.extend({},o.resolve),r=ce.extend({},o.locals),a=o.transformTemplate||ce.identity;return ce.forEach(n,function(e,t){ce.isString(e)?n[t]=i.$injector.get(e):n[t]=i.$injector.invoke(e)}),ce.extend(n,r),n.$$ngTemplate=e?this.$templateRequest(e):this.$q.when(t),this.$q.all(n).then(function(e){var t=a(e.$$ngTemplate,o),n=o.element||ce.element("<div>").html(t.trim()).contents();return i._compileElement(e,n,o)})},d.prototype._compileElement=function(o,i,r){var a=this,d=this.$compile(i),s={element:i,cleanup:i.remove.bind(i),locals:o,link:function(e){if(o.$scope=e,r.controller){var t=ce.extend({},o,{$element:i}),n=a._createController(r,t,o);i.data("$ngControllerController",n),i.children().data("$ngControllerController",n),s.controller=n}return d(e)}};return s},d.prototype._createController=function(e,t,n){var o;if(!a||("function"==typeof r.preAssignBindingsEnabled?r.preAssignBindingsEnabled():1===ce.version.major&&ce.version.minor<6)){var i=this.$controller(e.controller,t,!0);e.bindToController&&ce.extend(i.instance,n),o=i()}else o=this.$controller(e.controller,t),e.bindToController&&ce.extend(o,n);return e.controllerAs&&(t.$scope[e.controllerAs]=o),ce.isFunction(o.$onInit)&&o.$onInit(),o},d.prototype._fetchContentElement=function(e){var t=e.contentElement,n=null;return n=ce.isString(t)?o(t=document.querySelector(t)):(t=t[0]||t,document.contains(t)?o(t):function(){t.parentNode&&t.parentNode.removeChild(t)}),{element:ce.element(t),restore:n};function o(e){var t=e.parentNode,n=e.nextElementSibling;return function(){n?t.insertBefore(e,n):t.appendChild(e)}}}}ce.module("material.core").provider("$mdCompiler",e),e.$inject=["$compileProvider"]}(),function(){i.$inject=["$$MdGestureHandler","$$rAF","$timeout"];var r,o,c={},m=6,u=!(n.$inject=["$mdGesture","$$MdGestureHandler"]),a=!1,d=null,s=!1;function e(){}function i(o,e,n){var t=navigator.userAgent||navigator.vendor||B.opera,i=t.match(/ipad|iphone|ipod/i),r=t.match(/android/i),a=function(){for(var e=document.createElement("div"),t=["","webkit","Moz","MS","ms","o"],n=0;n<t.length;n++){var o=t[n],i=o?o+"TouchAction":"touchAction";if(ce.isDefined(e.style[i]))return i}}(),d=void 0!==B.jQuery&&ce.element===B.jQuery,s={handler:function(e,t){var n=new o(e);return ce.extend(n,t),c[e]=n,s},register:function(e,t,n){var o=c[t.replace(/^\$md./,"")];if(o)return o.registerElement(e,n);throw new Error("Failed to register element with handler "+t+". Available handlers: "+Object.keys(c).join(", "))},isAndroid:r,isIos:i,isHijackingClicks:(i||r)&&!d&&!u};function l(n){return function(e,t){t.distance<this.state.options.maxDistance&&this.dispatchEvent(e,n,t)}}return s.isHijackingClicks&&(s.handler("click",{options:{maxDistance:m},onEnd:l("click")}),s.handler("focus",{options:{maxDistance:m},onEnd:function(e,t){t.distance<this.state.options.maxDistance&&b(e.target)&&(this.dispatchEvent(e,"focus",t),e.target.focus())}}),s.handler("mouseup",{options:{maxDistance:m},onEnd:l("mouseup")}),s.handler("mousedown",{onStart:function(e){this.dispatchEvent(e,"mousedown")}})),s.handler("press",{onStart:function(e,t){this.dispatchEvent(e,"$md.pressdown")},onEnd:function(e,t){this.dispatchEvent(e,"$md.pressup")}}).handler("hold",{options:{maxDistance:6,delay:500},onCancel:function(){n.cancel(this.state.timeout)},onStart:function(e,t){if(!this.state.registeredParent)return this.cancel();this.state.pos={x:t.x,y:t.y},this.state.timeout=n(ce.bind(this,function(){this.dispatchEvent(e,"$md.hold"),this.cancel()}),this.state.options.delay,!1)},onMove:function(e,t){a||"touchmove"!==e.type||e.preventDefault();var n=this.state.pos.x-t.x,o=this.state.pos.y-t.y;Math.sqrt(n*n+o*o)>this.options.maxDistance&&this.cancel()},onEnd:function(){this.onCancel()}}).handler("drag",{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onSetup:function(e,t){a&&(this.oldTouchAction=e[0].style[a],e[0].style[a]=t.horizontal?"pan-y":"pan-x")},onCleanup:function(e){this.oldTouchAction&&(e[0].style[a]=this.oldTouchAction)},onStart:function(e){this.state.registeredParent||this.cancel()},onMove:function(e,t){var n,o;a||"touchmove"!==e.type||e.preventDefault(),this.state.dragPointer?this.dispatchDragMove(e):(o=this.state.options.horizontal?(n=Math.abs(t.distanceX)>this.state.options.minDistance,Math.abs(t.distanceY)>this.state.options.minDistance*this.state.options.cancelMultiplier):(n=Math.abs(t.distanceY)>this.state.options.minDistance,Math.abs(t.distanceX)>this.state.options.minDistance*this.state.options.cancelMultiplier),n?(this.state.dragPointer=p(e),f(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragstart",this.state.dragPointer)):o&&this.cancel())},dispatchDragMove:e.throttle(function(e){this.state.isRunning&&(f(e,this.state.dragPointer),this.dispatchEvent(e,"$md.drag",this.state.dragPointer))}),onEnd:function(e,t){this.state.dragPointer&&(f(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragend",this.state.dragPointer))}}).handler("swipe",{options:{minVelocity:.65,minDistance:10},onEnd:function(e,t){var n;Math.abs(t.velocityX)>this.state.options.minVelocity&&Math.abs(t.distanceX)>this.state.options.minDistance?(n="left"==t.directionX?"$md.swipeleft":"$md.swiperight",this.dispatchEvent(e,n)):Math.abs(t.velocityY)>this.state.options.minVelocity&&Math.abs(t.distanceY)>this.state.options.minDistance&&(n="up"==t.directionY?"$md.swipeup":"$md.swipedown",this.dispatchEvent(e,n))}})}function t(e){this.name=e,this.state={}}function n(e,i){if(!a){document.contains||(document.contains=function(e){return document.body.contains(e)}),!s&&e.isHijackingClicks&&(document.addEventListener("click",function(e){var t=0===e.clientX&&0===e.clientY,n=e.target&&"submit"===e.target.type;t||e.$material||e.isIonicTap||h(e)||n?(d=null,"label"==e.target.tagName.toLowerCase()&&(d={x:e.x,y:e.y})):(e.preventDefault(),e.stopPropagation(),d=null)},!0),document.addEventListener("mouseup",t,!0),document.addEventListener("mousedown",t,!0),document.addEventListener("focus",t,!0),s=!0);ce.element(document).on("mousedown touchstart pointerdown",function(e){if(r)return;var t=+Date.now();if(o&&!l(e,o)&&t-o.endTime<1500)return;r=p(e),n("start",e)}).on("mousemove touchmove pointermove",function(e){if(!r||!l(e,r))return;f(e,r),n("move",e)}).on("mouseup mouseleave touchend touchcancel pointerup pointercancel",function(e){if(!r||!l(e,r))return;f(e,r),r.endTime=+Date.now(),"pointercancel"!==e.type&&n("end",e);o=r,r=null}).on("$$mdGestureReset",function(){o=r=null})}function t(e){!e.clientX&&!e.clientY||e.$material||e.isIonicTap||h(e)||"mousedown"===e.type&&(b(e.target)||b(document.activeElement))||(e.preventDefault(),e.stopPropagation())}function n(e,t){var n;for(var o in c)(n=c[o])instanceof i&&("start"===e&&n.cancel(),n[e](t,r))}}function p(e){var t=g(e),n={startTime:+Date.now(),target:e.target,type:e.type.charAt(0)};return n.startX=n.x=t.pageX,n.startY=n.y=t.pageY,n}function l(e,t){return e&&t&&e.type.charAt(0)===t.type}function h(e){return d&&d.x==e.x&&d.y==e.y}function f(e,t){var n=g(e),o=t.x=n.pageX,i=t.y=n.pageY;t.distanceX=o-t.startX,t.distanceY=i-t.startY,t.distance=Math.sqrt(t.distanceX*t.distanceX+t.distanceY*t.distanceY),t.directionX=0<t.distanceX?"right":t.distanceX<0?"left":"",t.directionY=0<t.distanceY?"down":t.distanceY<0?"up":"",t.duration=+Date.now()-t.startTime,t.velocityX=t.distanceX/t.duration,t.velocityY=t.distanceY/t.duration}function g(e){return(e=e.originalEvent||e).touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e}function b(e){return!!e&&"-1"!==e.getAttribute("tabindex")&&!e.hasAttribute("disabled")&&(e.hasAttribute("tabindex")||e.hasAttribute("href")||e.isContentEditable||-1!==["INPUT","SELECT","BUTTON","TEXTAREA","VIDEO","AUDIO"].indexOf(e.nodeName))}ce.module("material.core.gestures",[]).provider("$mdGesture",e).factory("$$MdGestureHandler",function(){var e=void 0!==B.jQuery&&ce.element===B.jQuery;return t.prototype={options:{},dispatchEvent:e?function(e,t,n){n=n||r;var o=new ce.element.Event(t);o.$material=!0,o.pointer=n,o.srcEvent=e,ce.extend(o,{clientX:n.x,clientY:n.y,screenX:n.x,screenY:n.y,pageX:n.x,pageY:n.y,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey,metaKey:e.metaKey}),ce.element(n.target).trigger(o)}:function(e,t,n){var o;n=n||r,"click"===t||"mouseup"===t||"mousedown"===t?(o=document.createEvent("MouseEvents")).initMouseEvent(t,!0,!0,B,e.detail,n.x,n.y,n.x,n.y,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget||null):(o=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,{}),o.$material=!0,o.pointer=n,o.srcEvent=e,n.target.dispatchEvent(o)},onSetup:ce.noop,onCleanup:ce.noop,onStart:ce.noop,onMove:ce.noop,onEnd:ce.noop,onCancel:ce.noop,start:function(e,t){if(!this.state.isRunning){var n=this.getNearestParent(e.target),o=n&&n.$mdGesture[this.name]||{};this.state={isRunning:!0,options:ce.extend({},this.options,o),registeredParent:n},this.onStart(e,t)}},move:function(e,t){this.state.isRunning&&this.onMove(e,t)},end:function(e,t){this.state.isRunning&&(this.onEnd(e,t),this.state.isRunning=!1)},cancel:function(e,t){this.onCancel(e,t),this.state={}},getNearestParent:function(e){for(var t=e;t;){if((t.$mdGesture||{})[this.name])return t;t=t.parentNode}return null},registerElement:function(e,t){var n=this;return e[0].$mdGesture=e[0].$mdGesture||{},e[0].$mdGesture[this.name]=t||{},e.on("$destroy",o),n.onSetup(e,t||{}),o;function o(){delete e[0].$mdGesture[n.name],e.off("$destroy",o),n.onCleanup(e,t||{})}}},t}).run(n),e.prototype={disableAll:function(){a=!0},skipClickHijack:function(){return u=!0},setMaxClickDistance:function(e){m=parseInt(e)},$get:["$$MdGestureHandler","$$rAF","$timeout",function(e,t,n){return new i(e,t,n)}]}}(),function(){function e(e,t,n){this.$timeout=e,this.$mdUtil=t,this.$rootScope=n,this.pointerEvent="MSPointerEvent"in B?"MSPointerDown":"PointerEvent"in B?"pointerdown":null,this.bodyElement=ce.element(document.body),this.isBuffering=!1,this.bufferTimeout=null,this.lastInteractionType=null,this.lastInteractionTime=null,this.inputHandler=this.onInputEvent.bind(this),this.bufferedInputHandler=this.onBufferInputEvent.bind(this),this.inputEventMap={keydown:"keyboard",mousedown:"mouse",mouseenter:"mouse",touchstart:"touch",pointerdown:"pointer",MSPointerDown:"pointer"},this.iePointerMap={2:"touch",3:"touch",4:"mouse"},this.initializeEvents(),this.$rootScope.$on("$destroy",this.deregister.bind(this))}e.$inject=["$timeout","$mdUtil","$rootScope"],ce.module("material.core.interaction",[]).service("$mdInteraction",e),e.prototype.deregister=function(){this.bodyElement.off("keydown mousedown",this.inputHandler),"ontouchstart"in document.documentElement&&this.bodyElement.off("touchstart",this.bufferedInputHandler),this.pointerEvent&&this.bodyElement.off(this.pointerEvent,this.inputHandler)},e.prototype.initializeEvents=function(){this.bodyElement.on("keydown mousedown",this.inputHandler),"ontouchstart"in document.documentElement&&this.bodyElement.on("touchstart",this.bufferedInputHandler),this.pointerEvent&&this.bodyElement.on(this.pointerEvent,this.inputHandler)},e.prototype.onInputEvent=function(e){if(!this.isBuffering){var t=this.inputEventMap[e.type];"pointer"===t&&(t=this.iePointerMap[e.pointerType]||e.pointerType),this.lastInteractionType=t,this.lastInteractionTime=this.$mdUtil.now()}},e.prototype.onBufferInputEvent=function(e){this.$timeout.cancel(this.bufferTimeout),this.onInputEvent(e),this.isBuffering=!0,this.bufferTimeout=this.$timeout(function(){this.isBuffering=!1}.bind(this),650,!1)},e.prototype.getLastInteractionType=function(){return this.lastInteractionType},e.prototype.isUserInvoked=function(e){var t=ce.isNumber(e)?e:15;return this.lastInteractionTime>=this.$mdUtil.now()-t}}(),ce.module("material.core").provider("$$interimElement",function(){return t.$inject=["$document","$q","$rootScope","$timeout","$rootElement","$animate","$mdUtil","$mdCompiler","$mdTheming","$injector","$exceptionHandler"],e.$get=t,e;function e(i){e.$inject=["$$interimElement","$injector"];var n=["onHide","onShow","onRemove"],r={},l={presets:{}},o={setDefaults:function(e){return l.optionsFactory=e.options,l.methods=(e.methods||[]).concat(n),o},addPreset:function(e,t){if((t=t||{}).methods=t.methods||[],t.options=t.options||function(){return{}},/^cancel|hide|show$/.test(e))throw new Error("Preset '"+e+"' in "+i+" is reserved!");if(-1<t.methods.indexOf("_options"))throw new Error("Method '_options' in "+i+" is reserved!");return l.presets[e]={methods:t.methods.concat(n),optionsFactory:t.options,argOption:t.argOption},o},addMethod:function(e,t){return r[e]=t,o},$get:e};return o.addPreset("build",{methods:["controller","controllerAs","resolve","multiple","template","templateUrl","themable","transformTemplate","parent","contentElement"]}),o;function e(e,o){var a,t,n=e(),d={hide:n.hide,cancel:n.cancel,show:function(e){return(e=e||{})._options&&(e=e._options),n.show(ce.extend({},t,e))},destroy:function(e){return n.destroy(e)}};return a=l.methods||[],t=s(l.optionsFactory,{}),ce.forEach(r,function(e,t){d[t]=e}),ce.forEach(l.presets,function(t,n){var o=s(t.optionsFactory,{}),e=(t.methods||[]).concat(a);function i(e){this._options=ce.extend({},o,e)}if(ce.extend(o,{$type:n}),ce.forEach(e,function(t){i.prototype[t]=function(e){return this._options[t]=e,this}}),t.argOption){var r="show"+n.charAt(0).toUpperCase()+n.slice(1);d[r]=function(e){var t=d[n](e);return d.show(t)}}d[n]=function(e){return arguments.length&&t.argOption&&!ce.isObject(e)&&!ce.isArray(e)?(new i)[t.argOption](e):new i(e)}}),d;function s(e,t){var n={};return n[i]=d,o.invoke(e||function(){return t},{},n)}}}function t(m,u,t,p,h,o,n,f,g,s,l){return function(){var c,i=[],r=[],a=[];return c={show:function(e){var t=new d((e=e||{})||{}),n=e.multiple?u.resolve():u.all(i);e.multiple||(n=n.then(function(){var e=r.concat(a.map(c.cancel));return u.all(e)}));var o=n.then(function(){return t.show().then(function(){a.push(t)}).catch(function(e){return e}).finally(function(){i.splice(i.indexOf(o),1)})});return i.push(o),t.deferred.promise.catch(function(e){return e instanceof Error&&l(e),e}),t.deferred.promise},hide:e(function(n,o){return(o=o||{}).closeAll?u.all(a.slice().reverse().map(e)):o.closeTo!==me?u.all(a.slice(o.closeTo).map(e)):e(a[a.length-1]);function e(e){if(!e)return u.when(n);var t=e.remove(n,!1,o||{}).catch(function(e){return e}).finally(function(){r.splice(r.indexOf(t),1)});return a.splice(a.indexOf(e),1),r.push(t),e.deferred.promise}}),cancel:e(function(e,t){var n=a.pop();if(!n)return u.when(e);var o=n.remove(e,!0,t||{}).catch(function(e){return e}).finally(function(){r.splice(r.indexOf(o),1)});return r.push(o),n.deferred.promise.catch(ce.noop)}),destroy:function(e){var t=e?null:a.shift(),n=ce.element(e).length&&ce.element(e)[0].parentNode;if(n){var o=a.filter(function(e){return e.options.element[0]===n});o.length&&(t=o[0],a.splice(a.indexOf(t),1))}return t?t.remove(!1,!1,{$destroy:!0}):u.when(!1)},$injector_:s};function e(t){return function(){var e=arguments;return a.length?t.apply(c,e):i.length?i[0].finally(function(){return t.apply(c,e)}):u.when("No interim elements currently showing up.")}}function d(a){var r,d,e,s=u.when(!0);return(e=(e=a)||{}).template&&(e.template=n.processTemplate(e.template)),a=ce.extend({preserveScope:!1,cancelAutoHide:ce.noop,scope:e.scope||t.$new(e.isolateScope),onShow:function(e,t,n){return o.enter(t,n.parent)},onRemove:function(e,t){return t&&o.leave(t)||u.when()}},e),r={options:a,deferred:u.defer(),show:function(){return u(function(t,n){var o;function i(e){r.deferred.reject(e),n(e)}a.onCompiling&&a.onCompiling(a),(o=a,(o.skipCompile?null:f.compile(o))||u(function(e){e({locals:{},link:function(){return o.element}})})).then(function(e){d=function(e,t){ce.extend(e.locals,t);var n,o,i,r,a=e.link(t.scope);return t.element=a,t.parent=(n=a,r=(o=t).parent,((r=ce.isFunction(r)?r(o.scope,n,o):ce.isString(r)?ce.element(m[0].querySelector(r)):ce.element(r))||{}).length?r:(h[0]&&h[0].querySelector&&(i=h[0].querySelector(":not(svg) > body")),i||(i=h[0]),"#comment"==i.nodeName&&(i=m[0].body),ce.element(i))),t.themable&&g(a),a}(e,a),a.cleanupElement=e.cleanup,s=function(o,i,e){var t=i.onShowing||ce.noop,r=i.onComplete||ce.noop;try{t(i.scope,o,i,e)}catch(e){return u.reject(e)}return u(function(n,t){try{u.when(i.onShow(i.scope,o,i,e)).then(function(){var e,t;r(i.scope,o,i),t=ce.noop,a.hideDelay&&(e=p(c.hide,a.hideDelay),t=function(){p.cancel(e)}),a.cancelAutoHide=function(){t(),a.cancelAutoHide=me},n(o)},t)}catch(e){t(e.message)}})}(d,a,e.controller).then(t,i)}).catch(i)})},remove:function(e,t,n){return d?((a=ce.extend(a||{},n||{})).cancelAutoHide&&a.cancelAutoHide(),a.element.triggerHandler("$mdInterimElementRemove"),!0===a.$destroy?l(a.element,a).then(function(){t&&i(e)||o(e)}):(u.when(s).finally(function(){l(a.element,a).then(function(){t?i(e):o(e)},i)}),r.deferred.promise)):u.when(!1);function o(e){r.deferred.resolve(e)}function i(e){r.deferred.reject(e)}}};function l(o,i){var r=i.onRemoving||ce.noop;return u(function(e,t){try{var n=u.when(i.onRemove(i.scope,o,i)||!0);r(o,n),i.$destroy?(e(o),!i.preserveScope&&i.scope&&n.then(function(){i.scope.$destroy()})):n.then(function(){!i.preserveScope&&i.scope&&i.scope.$destroy(),e(o)},t)}catch(e){t(e.message)}})}}}}}),function(){var d,l,c,s=/(-gt)?-(sm|md|lg|print)/g,m=/\s+/g,u=["grow","initial","auto","none","noshrink","nogrow"],p=["row","column"],h=["","start","center","end","stretch","space-around","space-between"],f=["","start","center","end","stretch"],g={enabled:!0,breakpoints:[]};function b(){var e=!!document.querySelector("[md-layouts-disabled]");g.enabled=!e}function v(){return g.enabled=!1,{restrict:"A",priority:"900"}}function E(o){return["$mdUtil","$interpolate","$log",function(e,t,n){return d=e,l=t,c=n,{restrict:"A",compile:function(e,t){var n;return g.enabled&&(C(o,A(o,t,""),M(0,o,t)),i(0,e),n=i),n||ce.noop}}}];function i(e,t){t.addClass(o)}}function $(t){var n=t.split("-");return["$log",function(e){return e.warn(t+"has been deprecated. Please use a `"+n[0]+"-gt-<xxx>` variant."),ce.noop}]}function y(e,t,n,o){var i,r=n[0].nodeName.toLowerCase();switch(e.replace(s,"")){case"flex":"md-button"!=r&&"fieldset"!=r||(i="<"+r+" "+e+"></"+r+">",o.warn(d.supplant("Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",[i,"https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers"])))}}function C(e,t,n){if(!T(t)){switch(e.replace(s,"")){case"layout":w(t,p)||(t=p[0]);break;case"flex":w(t,u)||isNaN(t)&&(t="");break;case"flex-offset":case"flex-order":t&&!isNaN(+t)||(t="0");break;case"layout-align":var o=(a={main:"start",cross:"stretch"},0!==(i=(i=t)||"").indexOf("-")&&0!==i.indexOf(" ")||(i="none"+i),(r=i.toLowerCase().trim().replace(m,"-").split("-")).length&&"space"===r[0]&&(r=[r[0]+"-"+r[1],r[2]]),0<r.length&&(a.main=r[0]||a.main),1<r.length&&(a.cross=r[1]||a.cross),h.indexOf(a.main)<0&&(a.main="start"),f.indexOf(a.cross)<0&&(a.cross="stretch"),a);t=d.supplant("{main}-{cross}",o);break;case"layout-padding":case"layout-margin":case"layout-fill":case"layout-wrap":case"layout-nowrap":t=""}null!=t&&(n||ce.noop)(t)}var i,r,a;return t?t.trim():""}function M(e,t,n){return function(e){T(e)||(n[n.$normalize(t)]=e)}}function T(e){return-1<(e||"").indexOf(l.startSymbol())}function A(e,t,n){var o=t.$normalize(e);return t[o]?t[o].trim().replace(m,"-"):n||null}function w(t,e,n){t=n&&t?t.replace(m,n):t;var o=!1;return t&&e.forEach(function(e){e=n?e.replace(m,n):e,o=o||e===t}),o}!function(o){var i,t=/^((?:x|data)[:\-_])/i,n=/([:\-_]+(.))/g,e=["layout","flex","flex-order","flex-offset","layout-align"],r=["show","hide","layout-padding","layout-margin"];function a(e){return e.replace(t,"").replace(n,function(e,t,n,o){return o?n.toUpperCase():n})}ce.forEach(["","xs","gt-xs","sm","gt-sm","md","gt-md","lg","gt-lg","xl","print"],function(n){ce.forEach(e,function(e){var t=n?e+"-"+n:e;o.directive(a(t),function(s){return["$mdUtil","$interpolate","$log",function(e,t,n){return d=e,l=t,c=n,{restrict:"A",compile:function(e,t){var n;return g.enabled&&(y(s,0,e,c),C(s,A(s,t,""),M(0,s,t)),n=o),n||ce.noop}}}];function o(e,t,n){var o,i,r,a=(o=t,i=s,function(e){var t=C(i,e||"");ce.isDefined(t)&&(r&&o.removeClass(r),r=t?i+"-"+t.trim().replace(m,"-"):i,o.addClass(r))}),d=n.$observe(n.$normalize(s),a);a(A(s,n,"")),e.$on("$destroy",function(){d()})}}(t))}),ce.forEach(r,function(e){var t=n?e+"-"+n:e;o.directive(a(t),E(t))})}),o.provider("$$mdLayout",function(){return{$get:ce.noop,validateAttributeValue:C,validateAttributeUsage:y,disableLayouts:function(e){g.enabled=!0!==e}}}).directive("mdLayoutCss",v).directive("ngCloak",(i="ng-cloak",["$timeout",function(n){return{restrict:"A",priority:-10,compile:function(e){return g.enabled?(e.addClass(i),function(e,t){n(function(){t.removeClass(i)},10,!1)}):ce.noop}}}])).directive("layoutWrap",E("layout-wrap")).directive("layoutNowrap",E("layout-nowrap")).directive("layoutNoWrap",E("layout-no-wrap")).directive("layoutFill",E("layout-fill")).directive("layoutLtMd",$("layout-lt-md")).directive("layoutLtLg",$("layout-lt-lg")).directive("flexLtMd",$("flex-lt-md")).directive("flexLtLg",$("flex-lt-lg")).directive("layoutAlignLtMd",$("layout-align-lt-md")).directive("layoutAlignLtLg",$("layout-align-lt-lg")).directive("flexOrderLtMd",$("flex-order-lt-md")).directive("flexOrderLtLg",$("flex-order-lt-lg")).directive("offsetLtMd",$("flex-offset-lt-md")).directive("offsetLtLg",$("flex-offset-lt-lg")).directive("hideLtMd",$("hide-lt-md")).directive("hideLtLg",$("hide-lt-lg")).directive("showLtMd",$("show-lt-md")).directive("showLtLg",$("show-lt-lg")).config(b)}(ce.module("material.core.layout",["ng"]))}(),function(){function e(e){this._$timeout=e,this._liveElement=this._createLiveElement(),this._announceTimeout=100}e.$inject=["$timeout"],ce.module("material.core").service("$mdLiveAnnouncer",e),e.prototype.announce=function(e,t){t||(t="polite");var n=this;n._liveElement.textContent="",n._liveElement.setAttribute("aria-live",t),n._$timeout(function(){n._liveElement.textContent=e},n._announceTimeout,!1)},e.prototype._createLiveElement=function(){var e=document.createElement("div");return e.classList.add("md-visually-hidden"),e.setAttribute("role","status"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),document.body.appendChild(e),e}}(),ce.module("material.core.meta",[]).provider("$$mdMeta",function(){var o=ce.element(document.head),i={};function r(e){if(i[e])return!0;var t=document.getElementsByName(e)[0];return!!t&&(i[e]=ce.element(t),!0)}var e={setMeta:function(e,t){if(r(e),i[e])i[e].attr("content",t);else{var n=ce.element('<meta name="'+e+'" content="'+t+'"/>');o.append(n),i[e]=n}return function(){i[e].attr("content",""),i[e].remove(),delete i[e]}},getMeta:function(e){if(!r(e))throw Error("$$mdMeta: could not find a meta tag with the name '"+e+"'");return i[e].attr("content")}};return ce.extend({},e,{$get:function(){return e}})}),function(){function e(n,o){var i,r=[],a={};return i={notFoundError:function(e,t){n.error((t||"")+"No instance found for handle",e)},getInstances:function(){return r},get:function(e){if(!d(e))return null;var t,n,o;for(t=0,n=r.length;t<n;t++)if((o=r[t]).$$mdHandle===e)return o;return null},register:function(t,e){return e?(t.$$mdHandle=e,r.push(t),(n=a[e])&&(n.forEach(function(e){e.resolve(t)}),delete a[e]),function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}):ce.noop;var n},when:function(e){if(d(e)){var t=o.defer(),n=i.get(e);return n?t.resolve(n):(a[e]===me&&(a[e]=[]),a[e].push(t)),t.promise}return o.reject("Invalid `md-component-id` value.")}};function d(e){return e&&""!==e}}e.$inject=["$log","$q"],ce.module("material.core").factory("$mdComponentRegistry",e)}(),function(){function e(i){return{attach:function(e,t,n){var o;return n=ce.extend((o=t).hasClass("md-icon-button")?{isMenuItem:o.hasClass("md-menu-item"),fitRipple:!0,center:!0}:{isMenuItem:o.hasClass("md-menu-item"),dimBackground:!0},n),i.attach(e,t,n)}}}e.$inject=["$mdInkRipple"],ce.module("material.core").factory("$mdButtonInkRipple",e)}(),function(){function e(o){return{attach:function(e,t,n){return o.attach(e,t,ce.extend({center:!0,dimBackground:!1,fitRipple:!0},n))}}}e.$inject=["$mdInkRipple"],ce.module("material.core").factory("$mdCheckboxInkRipple",e)}(),function(){function e(o){return{attach:function(e,t,n){return o.attach(e,t,ce.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},n))}}}e.$inject=["$mdInkRipple"],ce.module("material.core").factory("$mdListInkRipple",e)}(),function(){r.$inject=["$scope","$element","rippleOptions","$window","$timeout","$mdUtil","$mdColorUtil"],e.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],ce.module("material.core").provider("$mdInkRipple",function(){var i=!1;return{disableInkRipple:function(){i=!0},$get:["$injector",function(o){return{attach:function(e,t,n){return i||t.controller("mdNoInk")?ce.noop:o.instantiate(r,{$scope:e,$element:t,rippleOptions:n})}}}]}}).directive("mdInkRipple",e).directive("mdNoInk",n).directive("mdNoBar",n).directive("mdNoStretch",n);function e(o,i){return{controller:ce.noop,link:function(e,t,n){n.hasOwnProperty("mdInkRippleCheckbox")?i.attach(e,t):o.attach(e,t)}}}function r(e,t,n,o,i,r,a){this.$window=o,this.$timeout=i,this.$mdUtil=r,this.$mdColorUtil=a,this.$scope=e,this.$element=t,this.options=n,this.mousedown=!1,this.ripples=[],this.timeout=null,this.lastRipple=null,r.valueOnUse(this,"container",this.createContainer),this.$element.addClass("md-ink-ripple"),(t.controller("mdInkRipple")||{}).createRipple=ce.bind(this,this.createRipple),(t.controller("mdInkRipple")||{}).setColor=ce.bind(this,this.color),this.bindEvents()}function t(e,t){(e.mousedown||e.lastRipple)&&(e.mousedown=!1,e.$mdUtil.nextTick(ce.bind(e,t),!1))}function n(){return{controller:ce.noop}}r.prototype.color=function(e){var t,n,o=this;return ce.isDefined(e)&&(o._color=o._parseColor(e)),o._color||o._parseColor(o.inkRipple())||o._parseColor((t=o.options&&o.options.colorElement?o.options.colorElement:[],(n=t.length?t[0]:o.$element[0])?o.$window.getComputedStyle(n).color:"rgb(0,0,0)"))},r.prototype.calculateColor=function(){return this.color()},r.prototype._parseColor=function(e,t){t=t||1;var n=this.$mdColorUtil;if(e)return 0===e.indexOf("rgba")?e.replace(/\d?\.?\d*\s*\)\s*$/,(.1*t).toString()+")"):0===e.indexOf("rgb")?n.rgbToRgba(e):0===e.indexOf("#")?n.hexToRgba(e):void 0},r.prototype.bindEvents=function(){this.$element.on("mousedown",ce.bind(this,this.handleMousedown)),this.$element.on("mouseup touchend",ce.bind(this,this.handleMouseup)),this.$element.on("mouseleave",ce.bind(this,this.handleMouseup)),this.$element.on("touchmove",ce.bind(this,this.handleTouchmove))},r.prototype.handleMousedown=function(e){if(!this.mousedown)if(e.hasOwnProperty("originalEvent")&&(e=e.originalEvent),this.mousedown=!0,this.options.center)this.createRipple(this.container.prop("clientWidth")/2,this.container.prop("clientWidth")/2);else if(e.srcElement!==this.$element[0]){var t=this.$element[0].getBoundingClientRect(),n=e.clientX-t.left,o=e.clientY-t.top;this.createRipple(n,o)}else this.createRipple(e.offsetX,e.offsetY)},r.prototype.handleMouseup=function(){this.$timeout(function(){t(this,this.clearRipples)}.bind(this))},r.prototype.handleTouchmove=function(){t(this,this.deleteRipples)},r.prototype.deleteRipples=function(){for(var e=0;e<this.ripples.length;e++)this.ripples[e].remove()},r.prototype.clearRipples=function(){for(var e=0;e<this.ripples.length;e++)this.fadeInComplete(this.ripples[e])},r.prototype.createContainer=function(){var e=ce.element('<div class="md-ripple-container"></div>');return this.$element.append(e),e},r.prototype.clearTimeout=function(){this.timeout&&(this.$timeout.cancel(this.timeout),this.timeout=null)},r.prototype.isRippleAllowed=function(){var e=this.$element[0];do{if(!e.tagName||"BODY"===e.tagName)break;if(e&&ce.isFunction(e.hasAttribute)){if(e.hasAttribute("disabled"))return!1;if("false"===this.inkRipple()||"0"===this.inkRipple())return!1}}while(e=e.parentNode);return!0},r.prototype.inkRipple=function(){return this.$element.attr("md-ink-ripple")},r.prototype.createRipple=function(e,t){if(this.isRippleAllowed()){var n,o,i,r=this,a=r.$mdColorUtil,d=ce.element('<div class="md-ripple"></div>'),s=this.$element.prop("clientWidth"),l=this.$element.prop("clientHeight"),c=2*Math.max(Math.abs(s-e),e),m=2*Math.max(Math.abs(l-t),t),u=(n=this.options.fitRipple,o=c,i=m,n?Math.max(o,i):Math.sqrt(Math.pow(o,2)+Math.pow(i,2))),p=this.calculateColor();d.css({left:e+"px",top:t+"px",background:"black",width:u+"px",height:u+"px",backgroundColor:a.rgbaToRgb(p),borderColor:a.rgbaToRgb(p)}),this.lastRipple=d,this.clearTimeout(),this.timeout=this.$timeout(function(){r.clearTimeout(),r.mousedown||r.fadeInComplete(d)},157.5,!1),this.options.dimBackground&&this.container.css({backgroundColor:p}),this.container.append(d),this.ripples.push(d),d.addClass("md-ripple-placed"),this.$mdUtil.nextTick(function(){d.addClass("md-ripple-scaled md-ripple-active"),r.$timeout(function(){r.clearRipples()},450,!1)},!1)}},r.prototype.fadeInComplete=function(e){this.lastRipple===e&&(this.timeout||this.mousedown)||this.removeRipple(e)},r.prototype.removeRipple=function(e){var t=this;this.ripples.indexOf(e)<0||(this.ripples.splice(this.ripples.indexOf(e),1),e.removeClass("md-ripple-active"),e.addClass("md-ripple-remove"),0===this.ripples.length&&this.container.css({backgroundColor:""}),this.$timeout(function(){t.fadeOutComplete(e)},450,!1))},r.prototype.fadeOutComplete=function(e){e.remove(),this.lastRipple=null}}(),function(){function e(o){return{attach:function(e,t,n){return o.attach(e,t,ce.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},n))}}}e.$inject=["$mdInkRipple"],ce.module("material.core").factory("$mdTabInkRipple",e)}(),ce.module("material.core.theming.palette",[]).constant("$mdColorPalette",{red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100",contrastStrongLightColors:"400 500 600 700 A200 A400 A700"},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"500 600 A200 A400 A700"},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400 A700"},"deep-purple":{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200"},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400"},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100",contrastStrongLightColors:"500 600 700 A200 A400 A700"},"light-blue":{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900 A700",contrastStrongLightColors:"600 700 800 A700"},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4",contrastDefaultColor:"dark",contrastLightColors:"700 800 900",contrastStrongLightColors:"700 800 900"},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},"light-green":{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17",contrastDefaultColor:"dark",contrastLightColors:"700 800 900",contrastStrongLightColors:"700 800 900"},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00",contrastDefaultColor:"dark",contrastLightColors:"900",contrastStrongLightColors:"900"},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600",contrastDefaultColor:"dark"},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00",contrastDefaultColor:"dark"},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00",contrastDefaultColor:"dark",contrastLightColors:"800 900",contrastStrongLightColors:"800 900"},"deep-orange":{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100 A200",contrastStrongLightColors:"500 600 700 800 900 A400 A700"},brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100 A200",contrastStrongLightColors:"300 400"},grey:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#ffffff",A200:"#000000",A400:"#303030",A700:"#616161",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900 A200 A400 A700"},"blue-grey":{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100 A200",contrastStrongLightColors:"400 500 700"}}),function(E){function e(e){var t=!!document.querySelector("[md-themes-disabled]");e.disableTheming(t)}e.$inject=["$mdThemingProvider"],n.$inject=["$mdTheming","$interpolate","$parse","$mdUtil","$q","$log"],o.$inject=["$mdTheming"],t.$inject=["$mdColorPalette","$$mdMetaProvider"],i.$inject=["$injector","$mdTheming"],E.module("material.core.theming",["material.core.theming.palette","material.core.meta"]).directive("mdTheme",n).directive("mdThemable",o).directive("mdThemesDisabled",function(){return y.disableTheming=!0,{restrict:"A",priority:"900"}}).provider("$mdTheming",t).config(e).run(i);var h,s={},d={name:"dark",1:"rgba(0,0,0,0.87)",2:"rgba(0,0,0,0.54)",3:"rgba(0,0,0,0.38)",4:"rgba(0,0,0,0.12)"},l={name:"light",1:"rgba(255,255,255,1.0)",2:"rgba(255,255,255,0.7)",3:"rgba(255,255,255,0.5)",4:"rgba(255,255,255,0.12)"},c="1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)",f="",m=A("rgba(0,0,0,0.87)"),u=A("rgba(255,255,255,0.87)"),p=A("rgb(255,255,255)"),g=["primary","accent","warn","background"],a="primary",b={accent:{default:"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"},background:{default:"50","hue-1":"A100","hue-2":"100","hue-3":"300"}},v={background:{default:"A400","hue-1":"800","hue-2":"900","hue-3":"A200"}};g.forEach(function(e){var t={default:"500","hue-1":"300","hue-2":"800","hue-3":"A100"};b[e]||(b[e]=t),v[e]||(v[e]=t)});var $=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],y={disableTheming:!1,generateOnDemand:!1,registeredStyles:[],nonce:null};function t(e,s){a.$inject=["$rootScope","$mdUtil","$q","$log"];var n,m={},u=!(h={}),p="default";E.extend(h,e);var t=function(e){var t,n,o,i=(e=E.isObject(e)?e:{}).theme||"default",r=e.hue||"800",a=h[e.palette]||h[m[i].colors[e.palette||"primary"].name],d=E.isObject(a[r])?a[r].hex:a[r];return"#"!==d.substr(0,1)&&(d="#"+d),t=d,n=s.setMeta("theme-color",t),o=s.setMeta("msapplication-navbutton-color",t),function(){n(),o()}};return n={definePalette:function(e,t){return t=t||{},h[e]=o(e,t),n},extendPalette:function(e,t){return o(e,E.extend({},h[e]||{},t))},theme:r,configuration:function(){return E.extend({},y,{defaultTheme:p,alwaysWatchTheme:u,registeredStyles:[].concat(y.registeredStyles)})},disableTheming:function(e){y.disableTheming=E.isUndefined(e)||!!e},registerStyles:function(e){y.registeredStyles.push(e)},setNonce:function(e){y.nonce=e},generateThemesOnDemand:function(e){y.generateOnDemand=e},setDefaultTheme:function(e){p=e},alwaysWatchTheme:function(e){u=e},enableBrowserColor:t,$get:a,_LIGHT_DEFAULT_HUES:b,_DARK_DEFAULT_HUES:v,_PALETTES:h,_THEMES:m,_parseRules:C,_rgba:w};function o(e,t){var n=$.filter(function(e){return!t[e]});if(n.length)throw new Error("Missing colors %1 in palette %2!".replace("%1",n.join(", ")).replace("%2",e));return t}function r(e,t){if(m[e])return m[e];var n="string"==typeof(t=t||"default")?m[t]:t,o=new i(e);return n&&E.forEach(n.colors,function(e,t){o.colors[t]={name:e.name,hues:E.extend({},e.hues)}}),m[e]=o}function i(e){var a=this;function t(e){if((e=0===arguments.length||!!e)!==a.isDark){a.isDark=e,a.foregroundPalette=a.isDark?l:d,a.foregroundShadow=a.isDark?c:f;var t=a.isDark?v:b,r=a.isDark?b:v;return E.forEach(t,function(e,t){var n=a.colors[t],o=r[t];if(n)for(var i in n.hues)n.hues[i]===o[i]&&(n.hues[i]=e[i])}),a}}a.name=e,a.colors={},(a.dark=t)(!1),g.forEach(function(o){var i=(a.isDark?v:b)[o];a[o+"Palette"]=function(t,e){var n=a.colors[o]={name:t,hues:E.extend({},i,e)};return Object.keys(n.hues).forEach(function(e){if(!i[e])throw new Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4".replace("%1",e).replace("%2",a.name).replace("%3",t).replace("%4",Object.keys(i).join(", ")))}),Object.keys(n.hues).map(function(e){return n.hues[e]}).forEach(function(e){if(-1==$.indexOf(e))throw new Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5".replace("%1",e).replace("%2",a.name).replace("%3",o).replace("%4",t).replace("%5",$.join(", ")))}),a},a[o+"Color"]=function(){var e=Array.prototype.slice.call(arguments);return console.warn("$mdThemingProviderTheme."+o+"Color() has been deprecated. Use $mdThemingProviderTheme."+o+"Palette() instead."),a[o+"Palette"].apply(a,e)}})}function a(n,s,o,l){var i=function(e,t){t===me&&(t=e,e=me),e===me&&(e=n),i.inherit(t,t)};return Object.defineProperty(i,"THEMES",{get:function(){return E.extend({},m)}}),Object.defineProperty(i,"PALETTES",{get:function(){return E.extend({},h)}}),Object.defineProperty(i,"ALWAYS_WATCH",{get:function(){return u}}),i.inherit=function(n,e){var o=e.controller("mdTheme")||n.data("$mdThemeController"),t=n.scope();if(d(o&&o.$mdTheme||("default"===p?"":p)),o){var i=u||o.$shouldWatch||s.parseAttributeBoolean(n.attr("md-theme-watch"));if(i||o.isAsyncTheme){var r=function(){a&&(a(),a=me)},a=o.registerChanges(function(e){d(e),i||r()});t?t.$on("$destroy",r):n.on("$destroy",r)}}function d(e){if(e){c(e)||l.warn("Attempted to use unregistered theme '"+e+"'. Register it with $mdThemingProvider.theme().");var t=n.data("$mdThemeName");t&&n.removeClass("md-"+t+"-theme"),n.addClass("md-"+e+"-theme"),n.data("$mdThemeName",e),o&&n.data("$mdThemeController",o)}}},i.registered=c,i.defaultTheme=function(){return p},i.generateTheme=function(e){T(m[e],e,y.nonce)},i.defineTheme=function(e,t){t=t||{};var n=r(e);return t.primary&&n.primaryPalette(t.primary,t.primaryHues),t.accent&&n.accentPalette(t.accent,t.accentHues),t.warn&&n.warnPalette(t.warn,t.warnHues),t.background&&n.backgroundPalette(t.background,t.backgroundHues),t.dark&&n.dark(),this.generateTheme(e),o.resolve(e)},i.setBrowserColor=t,i;function c(e){return e===me||""===e||i.THEMES[e]!==me}}}function n(p,h,f,g,b,v){return{priority:101,link:{pre:function(t,e,n){var o=[],i=h.startSymbol(),r=h.endSymbol(),a=n.mdTheme.trim(),d=a.substr(0,i.length)===i&&a.lastIndexOf(r)===a.length-r.length,s="::"===n.mdTheme.split(i).join("").split(r).join("").trim().substr(0,"::".length),l=function(){var e=h(n.mdTheme)(t);return f(e)(t)||e},c={isAsyncTheme:E.isFunction(l())||E.isFunction(l().then),registerChanges:function(t,e){return e&&(t=E.bind(e,t)),o.push(t),function(){var e=o.indexOf(t);-1<e&&o.splice(e,1)}},$setTheme:function(e){p.registered(e)||v.warn("attempted to use unregistered theme '"+e+"'"),c.$mdTheme=e;for(var t=o.length;t--;)o[t](e)},$shouldWatch:g.parseAttributeBoolean(e.attr("md-theme-watch"))||p.ALWAYS_WATCH||d&&!s};e.data("$mdThemeController",c);var m=function(e){if("string"==typeof e)return c.$setTheme(e);b.when(E.isFunction(e)?e():e).then(function(e){c.$setTheme(e)})};m(l());var u=t.$watch(l,function(e){e&&(m(e),c.$shouldWatch||u())})}}}}function o(e){return e}function C(d,e,t){!function(e,t){if(!h[(e.colors[t]||{}).name])throw new Error("You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3".replace("%1",e.name).replace("%2",t).replace("%3",Object.keys(h).join(", ")))}(d,e),t=t.replace(/THEME_NAME/g,d.name);var n=new RegExp("\\.md-"+d.name+"-theme","g");t=t.replace(/'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue-[0-3]|shadow|default)-?(\d\.?\d*)?(contrast)?\s*\}\}'?"?/g,function(e,t,n,o,i){return"foreground"===t?"shadow"==n?d.foregroundShadow:d.foregroundPalette[n]||d.foregroundPalette[1]:(0!==n.indexOf("hue")&&"default"!==n||(n=d.colors[t].hues[n]),w((h[d.colors[t].name][n]||"")[i?"contrast":"value"],o))});var o=new RegExp("('|\")?{{\\s*([a-zA-Z]+)-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|')?","g"),i=[];return E.forEach(["default","hue-1","hue-2","hue-3"],function(a){var e=t.replace(o,function(e,t,n,o,i){var r=d.colors[n];return w(h[r.name][r.hues[a]]["color"===o?"value":"contrast"],i)});"default"!==a&&(e=e.replace(n,".md-"+d.name+"-theme.md-"+a)),"default"==d.name&&(e=e.replace(/((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)\.md-default-theme((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)/g,function(e,t,n){return e+", "+t+n})),i.push(e)}),i}var M={};function i(e,t){var n=document.head,o=n?n.firstElementChild:null,i=!y.disableTheming&&e.has("$MD_THEME_CSS")?e.get("$MD_THEME_CSS"):"";if(i+=y.registeredStyles.join(""),o&&0!==i.length){E.forEach(h,function(o,e){var i=o.contrastDefaultColor,r=o.contrastLightColors||[],a=o.contrastStrongLightColors||[],d=o.contrastDarkColors||[];"string"==typeof r&&(r=r.split(" ")),"string"==typeof a&&(a=a.split(" ")),"string"==typeof d&&(d=d.split(" ")),delete o.contrastDefaultColor,delete o.contrastLightColors,delete o.contrastStrongLightColors,delete o.contrastDarkColors,E.forEach(o,function(e,t){if(!E.isObject(e)){var n=A(e);if(!n)throw new Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected.".replace("%1",e).replace("%2",o.name).replace("%3",t));o[t]={hex:o[t],value:n,contrast:"light"===i?-1<d.indexOf(t)?m:-1<a.indexOf(t)?p:u:-1<r.indexOf(t)?-1<a.indexOf(t)?p:u:m}}})});var r=i.split(/\}(?!(\}|'|"|;))/).filter(function(e){return e&&e.trim().length}).map(function(e){return e.trim()+"}"});g.forEach(function(e){M[e]=""}),r.forEach(function(e){for(var t,n=0;t=g[n];n++)if(-1<e.indexOf(".md-"+t))return M[t]+=e;for(n=0;t=g[n];n++)if(-1<e.indexOf(t))return M[t]+=e;return M[a]+=e}),y.generateOnDemand||E.forEach(t.THEMES,function(e){s[e.name]||"default"!==t.defaultTheme()&&"default"===e.name||T(e,e.name,y.nonce)})}}function T(i,e,r){var a=document.head,d=a?a.firstElementChild:null;s[e]||(g.forEach(function(e){for(var t=C(i,e,M[e]);t.length;){var n=t.shift();if(n){var o=document.createElement("style");o.setAttribute("md-theme-style",""),r&&o.setAttribute("nonce",r),o.appendChild(document.createTextNode(n)),a.insertBefore(o,d)}}}),s[i.name]=!0)}function A(e){if(E.isArray(e)&&3==e.length)return e;if(/^rgb/.test(e))return e.replace(/(^\s*rgba?\(|\)\s*$)/g,"").split(",").map(function(e,t){return 3==t?parseFloat(e,10):parseInt(e,10)});if("#"==e.charAt(0)&&(e=e.substring(1)),/^([a-fA-F0-9]{3}){1,2}$/g.test(e)){var t=e.length/3,n=e.substr(0,t),o=e.substr(t,t),i=e.substr(2*t);return 1===t&&(n+=n,o+=o,i+=i),[parseInt(n,16),parseInt(o,16),parseInt(i,16)]}}function w(e,t){return e?(4==e.length&&(e=E.copy(e),t?e.pop():t=e.pop()),t&&("number"==typeof t||"string"==typeof t&&t.length)?"rgba("+e.join(",")+","+t+")":"rgb("+e.join(",")+")"):"rgb('0,0,0')"}}(B.angular),ce.module("material.components.autocomplete",["material.core","material.components.icon","material.components.virtualRepeat"]),function(){e.$inject=["$scope","$element","$mdUtil","$mdConstant","$mdTheming","$window","$animate","$rootElement","$attrs","$q","$log","$mdLiveAnnouncer"],ce.module("material.components.autocomplete").controller("MdAutocompleteCtrl",e);var ie=48,re=5,ae=8,de=2,se="standard",le="virtual";function e(p,h,f,t,n,e,o,i,g,d,r,a){var s,l,c,m=this,u=p.itemsExpr.split(/ in /i),b=u[1],v=null,E={},$=!1,y=[],C=!1,M=0,T=null,A=null,w=f.debounce(function(){m.hidden||S()}),_=le;s="hidden",l=function(e,t){!e&&t?(S(),Q(!0,x.Count|x.Selected),v&&(f.disableScrollAround(v.ul),T=function(e){function t(e){e.preventDefault()}return e.on("wheel",t),e.on("touchmove",t),function(){e.off("wheel",t),e.off("touchmove",t)}}(ce.element(v.wrap)))):e&&!t&&(f.enableScrolling(),T&&(T(),T=null))},c=!0,Object.defineProperty(m,s,{get:function(){return c},set:function(e){var t=c;l(c=e,t)}}),m.scope=p,m.parent=p.$parent,m.itemName=u[0],m.matches=[],m.loading=!1,m.hidden=!0,m.index=null,m.id=f.nextUid(),m.isDisabled=null,m.isRequired=null,m.isReadonly=null,m.hasNotFound=!1,m.selectedMessage=p.selectedMessage||"selected",m.keydown=function(e){switch(e.keyCode){case t.KEY_CODE.DOWN_ARROW:if(m.loading||W())return;e.stopPropagation(),e.preventDefault(),m.index=Math.min(m.index+1,m.matches.length-1),Z(),Q(!1,x.Selected);break;case t.KEY_CODE.UP_ARROW:if(m.loading||W())return;e.stopPropagation(),e.preventDefault(),m.index=m.index<0?m.matches.length-1:Math.max(0,m.index-1),Z(),Q(!1,x.Selected);break;case t.KEY_CODE.TAB:if(H(),m.hidden||m.loading||m.index<0||m.matches.length<1)return;K(m.index);break;case t.KEY_CODE.ENTER:if(m.hidden||m.loading||m.index<0||m.matches.length<1)return;if(W())return;e.stopImmediatePropagation(),e.preventDefault(),K(m.index);break;case t.KEY_CODE.ESCAPE:if(e.preventDefault(),!(q("blur")||!m.hidden||m.loading||q("clear")&&p.searchText))return;e.stopPropagation(),G(),p.searchText&&q("clear")&&X(),m.hidden=!0,q("blur")&&function(e){e&&(C=$=!1);v.input.blur()}(!0)}},m.blur=function(e){C=!1,$||(m.hidden=U(),oe("ngBlur",{$event:e}))},m.focus=function(e){C=!0,j()&&Y()&&te();m.hidden=U(),oe("ngFocus",{$event:e})},m.clear=function(){G(),X()},m.select=K,m.listEnter=function(){$=!0},m.listLeave=H,m.mouseUp=function(){v.input.focus()},m.getCurrentDisplayValue=V,m.registerSelectedItemWatcher=function(e){-1===y.indexOf(e)&&y.push(e)},m.unregisterSelectedItemWatcher=function(e){var t=y.indexOf(e);-1!==t&&y.splice(t,1)},m.notFoundVisible=ee,m.loadingIsVisible=function(){return m.loading&&!W()},m.positionDropdown=S;var k,x={Count:1,Selected:2};return f.initOptionalProperties(p,g,{searchText:"",selectedItem:null,clearButton:!1,disableVirtualRepeat:!1}),n(h),k=parseInt(p.delay,10)||0,g.$observe("disabled",function(e){m.isDisabled=f.parseAttributeBoolean(e,!1)}),g.$observe("required",function(e){m.isRequired=f.parseAttributeBoolean(e,!1)}),g.$observe("readonly",function(e){m.isReadonly=f.parseAttributeBoolean(e,!1)}),p.$watch("searchText",k?f.debounce(P,k):P),p.$watch("selectedItem",O),ce.element(e).on("resize",w),p.$on("$destroy",I),void f.nextTick(function(){var e;e=function(){var e,t;for(e=h;e.length&&(t=e.attr("md-autocomplete-snap"),!ce.isDefined(t));e=e.parent());if(e.length)return{snap:e[0],wrap:"width"===t.toLowerCase()?e[0]:h.find("md-autocomplete-wrap")[0]};var n=h.find("md-autocomplete-wrap")[0];return{snap:n,wrap:n}}(),(v={main:h[0],scrollContainer:h[0].querySelector(".md-virtual-repeat-container, .md-standard-list-container"),scroller:h[0].querySelector(".md-virtual-repeat-scroller, .md-standard-list-scroller"),ul:h.find("ul")[0],input:h.find("input")[0],wrap:e.wrap,snap:e.snap,root:document.body}).li=v.ul.getElementsByTagName("li"),v.$=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=ce.element(e[n]));return t}(v),_=v.scrollContainer.classList.contains("md-standard-list-container")?se:le,A=v.$.input.controller("ngModel"),v.$.root.length&&(n(v.$.scrollContainer),v.$.scrollContainer.detach(),v.$.root.append(v.$.scrollContainer),o.pin&&o.pin(v.$.scrollContainer,i)),p.autofocus&&h.on("focus",D),p.inputAriaDescribedBy&&v.input.setAttribute("aria-describedby",p.inputAriaDescribedBy),p.floatingLabel||(p.inputAriaLabel?v.input.setAttribute("aria-label",p.inputAriaLabel):p.inputAriaLabelledBy?v.input.setAttribute("aria-labelledby",p.inputAriaLabelledBy):p.placeholder&&v.input.setAttribute("aria-label",p.placeholder))});function N(){p.requireMatch&&A&&A.$setValidity("md-require-match",!!p.selectedItem||!p.searchText)}function S(){if(!v)return f.nextTick(S,!1,p);var e,t=(p.dropdownItems||re)*ie,n=v.wrap.getBoundingClientRect(),o=v.snap.getBoundingClientRect(),i=v.root.getBoundingClientRect(),r=o.bottom-i.top,a=i.bottom-o.top,d=n.left-i.left,s=n.width,l=function(){var e=0,t=h.find("md-input-container");if(t.length){var n=t.find("input");e=t.prop("offsetHeight"),e-=n.prop("offsetTop"),e-=n.prop("offsetHeight"),e+=t.prop("offsetTop")}return e}(),c=p.dropdownPosition,m=i.bottom-o.bottom-ae+f.getViewportTop(),u=o.top-ae;c||(c=t<m?"bottom":t<u?"top":m<u?"top":"bottom"),g.mdFloatingLabel&&(d+=de,s-=2*de),(e={left:d+"px",minWidth:s+"px",maxWidth:Math.max(n.right-i.left,i.right-n.left)-ae+"px"}).maxHeight="top"===c?(e.top="auto",e.bottom=a+"px",Math.min(t,u)+"px"):(m=i.bottom-n.bottom-ae+f.getViewportTop(),e.top=r-l+"px",e.bottom="auto",Math.min(t,m)+"px"),v.$.scrollContainer.css(e),f.nextTick(function(){var e=v.scrollContainer.getBoundingClientRect(),t={};e.right>i.right&&(t.left=n.right-e.width+"px");v.$.scrollContainer.css(t)},!1,p)}function D(){v.input.focus()}function I(){if(m.hidden||f.enableScrolling(),ce.element(e).off("resize",w),v){ce.forEach(["ul","scroller","scrollContainer","input"],function(e){v.$[e].remove()})}}function H(){C||m.hidden||v.input.focus(),$=!1,m.hidden=U()}function O(o,i){N(),o?R(o).then(function(e){var t,n;p.searchText=e,t=o,n=i,y.forEach(function(e){e(t,n)})}):i&&p.searchText&&R(i).then(function(e){ce.isString(p.searchText)&&e.toString().toLowerCase()===p.searchText.toLowerCase()&&(p.searchText="")}),o!==i&&ce.isFunction(p.itemChange)&&p.itemChange(F(p.selectedItem))}function P(t,n){m.index=p.autoselect?0:-1,t!==n&&(N(),R(p.selectedItem).then(function(e){t!==e&&(p.selectedItem=null,t!==n&&ce.isFunction(p.textChange)&&p.textChange(),Y()?te():(B(!(m.matches=[])),Q(!0,x.Count)))}))}function L(){return ce.isNumber(p.minLength)?p.minLength:1}function R(e){return d.when((t=e,(t&&p.itemText?p.itemText(F(t)):null)||e)).then(function(e){return e&&!ce.isString(e)&&r.warn("md-autocomplete: Could not resolve display value to a string. Please check the `md-item-text` attribute."),e});var t}function F(e){if(!e)return me;var t={};return m.itemName&&(t[m.itemName]=e),t}function B(e){m.loading!==e&&(m.loading=e),m.hidden=U()}function U(){return!function(){{if(m.isReadonly)return!1;if(!j())return!1}return Y()&&z()||ee()}()}function j(){return!(m.loading&&!z())&&(!W()&&!!C)}function q(e){return!p.escapeOptions||-1!==p.escapeOptions.toLowerCase().indexOf(e)}function z(){return!!m.matches.length}function W(){return!!m.scope.selectedItem}function V(){return R(m.matches[m.index])}function Y(){return(p.searchText||"").length>=L()}function K(e){f.nextTick(function(){R(m.matches[e]).then(function(e){var t=v.$.input.controller("ngModel");a.announce(e+" "+m.selectedMessage,"assertive"),t.$setViewValue(e),t.$render()}).finally(function(){p.selectedItem=m.matches[e],B(!1)})},!1)}function G(){m.index=0,m.matches=[]}function X(){B(!0),p.searchText="";var e=document.createEvent("CustomEvent");e.initCustomEvent("change",!0,!0,{value:""}),v.input.dispatchEvent(e),v.input.blur(),p.searchText="",v.input.focus()}function Q(e,t){var n=e?"polite":"assertive",o=[];t&x.Selected&&-1!==m.index&&o.push(V()),t&x.Count&&o.push(d.resolve(function(){switch(m.matches.length){case 0:return"There are no matches available.";case 1:return"There is 1 match available.";default:return"There are "+m.matches.length+" matches available."}}())),d.all(o).then(function(e){a.announce(e.join(" "),n)})}function Z(){var e,t,n,o,i,r,a,d,s,l;v.li[0]&&(_===se?(r=v.li[m.index]||v.li[0],a=v.scrollContainer.offsetHeight,d=r&&r.offsetTop||0,s=d+r.clientHeight,l=v.scrollContainer.scrollTop,d<l?J(d):l+a<s&&J(s-a)):(e=v.li[0].offsetHeight,t=e*m.index,n=t+e,o=v.scroller.clientHeight,i=v.scroller.scrollTop,t<i?J(t):i+o<n&&J(n-o)))}function J(e){_===se?v.scrollContainer.scrollTop=e:v.$.scrollContainer.controller("mdVirtualRepeatContainer").scrollTo(e)}function ee(){var e=(m.scope.searchText||"").length;return m.hasNotFound&&!z()&&(!m.loading||0!==M)&&e>=L()&&(C||$)&&!W()}function te(){var e=p.searchText||"",t=e.toLowerCase();!p.noCache&&E[t]?ne(E[t]):function(t){var e=p.$parent.$eval(b),n=t.toLowerCase(),o=ce.isArray(e),i=!!e.then;function r(e){E[n]=e,(t||"")===(p.searchText||"")&&ne(e)}o?r(e):i&&(a=e,a&&(a=d.when(a),M++,B(!0),f.nextTick(function(){a.then(r).finally(function(){0==--M&&B(!1)})},!0,p)));var a}(e),m.hidden=U()}function ne(e){var n,t,o;m.matches=e,m.hidden=U(),m.loading&&B(!1),p.selectOnMatch&&(n=p.searchText,t=m.matches,o=t[0],1===t.length&&R(o).then(function(e){var t=n===e;p.matchInsensitive&&!t&&(t=n.toLowerCase()===e.toLowerCase()),t&&K(0)})),S(),Q(!0,x.Count)}function oe(e,t){g[e]&&p.$parent.$eval(g[e],t||{})}}}(),function(){function e(l){var c="virtual",t=["standard",c];function m(e){return e?(e=e.toLowerCase(),-1<t.indexOf(e)?e:c):c}return{controller:"MdAutocompleteCtrl",controllerAs:"$mdAutocompleteCtrl",scope:{inputName:"@mdInputName",inputMinlength:"@mdInputMinlength",inputMaxlength:"@mdInputMaxlength",searchText:"=?mdSearchText",selectedItem:"=?mdSelectedItem",itemsExpr:"@mdItems",itemText:"&mdItemText",placeholder:"@placeholder",inputAriaDescribedBy:"@?inputAriaDescribedby",inputAriaLabelledBy:"@?inputAriaLabelledby",inputAriaLabel:"@?inputAriaLabel",noCache:"=?mdNoCache",requireMatch:"=?mdRequireMatch",selectOnMatch:"=?mdSelectOnMatch",matchInsensitive:"=?mdMatchCaseInsensitive",itemChange:"&?mdSelectedItemChange",textChange:"&?mdSearchTextChange",minLength:"=?mdMinLength",delay:"=?mdDelay",autofocus:"=?mdAutofocus",floatingLabel:"@?mdFloatingLabel",autoselect:"=?mdAutoselect",menuClass:"@?mdMenuClass",menuContainerClass:"@?mdMenuContainerClass",inputClass:"@?mdInputClass",inputId:"@?mdInputId",escapeOptions:"@?mdEscapeOptions",dropdownItems:"=?mdDropdownItems",dropdownPosition:"@?mdDropdownPosition",clearButton:"=?mdClearButton",selectedMessage:"@?mdSelectedMessage",mdMode:"=?mdMode"},compile:function(e,n){var o=e.find("input");return["md-select-on-focus","md-no-asterisk","ng-trim","ng-pattern"].forEach(function(e){var t=n[n.$normalize(e)];null!==t&&o.attr(e,t)}),function(e,t,n,o){o.hasNotFound=!!t.attr("md-has-not-found"),ce.isDefined(n.mdClearButton)||e.floatingLabel||(e.clearButton=!0),e.mdMode=m(n.mdMode)}},template:function(n,e){var t,o,i=(t=n.find("md-not-found").detach(),(o=t.length?t.html():"")?'<li ng-if="$mdAutocompleteCtrl.notFoundVisible()"                         md-autocomplete-parent-scope>'+o+"</li>":""),r=function(){var e=n.find("md-item-template").detach(),t=e.length?e.html():n.html();e.length||n.empty();return"<md-autocomplete-parent-scope md-autocomplete-replace>"+t+"</md-autocomplete-parent-scope>"}(),a=n.html(),d=e.tabindex;return i&&n.attr("md-has-not-found",!0),n.attr("tabindex","-1"),"        <md-autocomplete-wrap            ng-class=\"{ 'md-whiteframe-z1': !floatingLabel,                         'md-menu-showing': !$mdAutocompleteCtrl.hidden,                         'md-show-clear-button': !!clearButton }\">          "+(e.mdFloatingLabel?'            <md-input-container ng-if="floatingLabel">              <label>{{floatingLabel}}</label>              <input type="search"                '+(null!=d?'tabindex="'+d+'"':"")+'                id="{{ inputId || \'fl-input-\' + $mdAutocompleteCtrl.id }}"                name="{{inputName}}"                ng-class="::inputClass"                autocomplete="off"                ng-required="$mdAutocompleteCtrl.isRequired"                ng-readonly="$mdAutocompleteCtrl.isReadonly"                ng-minlength="inputMinlength"                ng-maxlength="inputMaxlength"                ng-disabled="$mdAutocompleteCtrl.isDisabled"                ng-model="$mdAutocompleteCtrl.scope.searchText"                ng-model-options="{ allowInvalid: true }"                ng-keydown="$mdAutocompleteCtrl.keydown($event)"                ng-blur="$mdAutocompleteCtrl.blur($event)"                ng-focus="$mdAutocompleteCtrl.focus($event)"                aria-label="{{floatingLabel}}"                aria-autocomplete="list"                role="combobox"                aria-haspopup="true"                aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"                aria-owns="ul-{{$mdAutocompleteCtrl.id}}"                ng-attr-aria-activedescendant="{{$mdAutocompleteCtrl.index >= 0 ? \'selected_option\' : undefined}}">              <div md-autocomplete-parent-scope md-autocomplete-replace>'+a+"</div>            </md-input-container>":'            <input type="search"              '+(null!=d?'tabindex="'+d+'"':"")+'              id="{{ inputId || \'input-\' + $mdAutocompleteCtrl.id }}"              name="{{inputName}}"              ng-class="::inputClass"              ng-if="!floatingLabel"              autocomplete="off"              ng-required="$mdAutocompleteCtrl.isRequired"              ng-disabled="$mdAutocompleteCtrl.isDisabled"              ng-readonly="$mdAutocompleteCtrl.isReadonly"              ng-minlength="inputMinlength"              ng-maxlength="inputMaxlength"              ng-model="$mdAutocompleteCtrl.scope.searchText"              ng-keydown="$mdAutocompleteCtrl.keydown($event)"              ng-blur="$mdAutocompleteCtrl.blur($event)"              ng-focus="$mdAutocompleteCtrl.focus($event)"              placeholder="{{placeholder}}"              aria-label="{{placeholder}}"              aria-autocomplete="list"              role="combobox"              aria-haspopup="true"              aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"              aria-owns="ul-{{$mdAutocompleteCtrl.id}}"              ng-attr-aria-activedescendant="{{$mdAutocompleteCtrl.index >= 0 ? \'selected_option\' : undefined}}">')+'          <button type="button" aria-label="Clear Input" tabindex="-1" ng-if="clearButton && $mdAutocompleteCtrl.scope.searchText" ng-click="$mdAutocompleteCtrl.clear($event)"><md-icon md-svg-src="'+l.mdClose+'"></md-icon></button>          <md-progress-linear              class="'+(e.mdFloatingLabel?"md-inline":"")+'"              ng-if="$mdAutocompleteCtrl.loadingIsVisible()"              md-mode="indeterminate"></md-progress-linear>          '+function(e,t){if(e=e?" "+e:"",s(t))return'            <div                 ng-hide="$mdAutocompleteCtrl.hidden"                class="md-standard-list-container md-autocomplete-suggestions-container md-whiteframe-z1'+e+'"                ng-class="{ \'md-not-found\': $mdAutocompleteCtrl.notFoundVisible() }"                role="presentation">              <div class="md-standard-list-scroller" role="presentation">';return'          <md-virtual-repeat-container              md-auto-shrink              md-auto-shrink-min="1"              ng-hide="$mdAutocompleteCtrl.hidden"              class="md-virtual-repeat-container md-autocomplete-suggestions-container md-whiteframe-z1'+e+'"              ng-class="{ \'md-not-found\': $mdAutocompleteCtrl.notFoundVisible() }"              role="presentation">'}(e.mdMenuContainerClass,e.mdMode)+'            <ul class="md-autocomplete-suggestions"                ng-class="::menuClass"                id="ul-{{$mdAutocompleteCtrl.id}}"                ng-mouseenter="$mdAutocompleteCtrl.listEnter()"                ng-mouseleave="$mdAutocompleteCtrl.listLeave()"                ng-mouseup="$mdAutocompleteCtrl.mouseUp()"                role="listbox">              <li '+(s(e.mdMode)?"ng-repeat":"md-virtual-repeat")+' ="item in $mdAutocompleteCtrl.matches"                  ng-class="{ selected: $index === $mdAutocompleteCtrl.index }"                  ng-attr-id="{{$index === $mdAutocompleteCtrl.index ? \'selected_option\' : undefined}}"                  ng-click="$mdAutocompleteCtrl.select($index)"                  role="option"                  aria-setsize="{{$mdAutocompleteCtrl.matches.length}}"                  aria-posinset="{{$index+1}}"                  aria-selected="{{$index === $mdAutocompleteCtrl.index ? true : false}}"                   md-extra-name="$mdAutocompleteCtrl.itemName">                  '+r+"                  </li>"+i+"            </ul>          "+(s(e.mdMode)?"   </div>              </div>            </div>":"</md-virtual-repeat-container>")+"        </md-autocomplete-wrap>";function s(e){return m(e)!==c}}}}e.$inject=["$$mdSvgRegistry"],ce.module("material.components.autocomplete").directive("mdAutocomplete",e)}(),function(){function e(e,c){return{restrict:"AE",compile:function(e,t,l){return function(n,t,e){var o,i,r=n.$mdAutocompleteCtrl,a=r.parent.$new(),d=r.itemName;function s(e,t){a[t]=n[e],n.$watch(e,function(e){c.nextTick(function(){a[t]=e})})}s("$index","$index"),s("item",d),i=o=!1,n.$watch(function(){i||o||(o=!0,n.$$postDigest(function(){i||a.$digest(),o=i=!1}))}),a.$watch(function(){i=!0}),l(a,function(e){t.after(e)})}},terminal:!0,transclude:"element"}}e.$inject=["$compile","$mdUtil"],ce.module("material.components.autocomplete").directive("mdAutocompleteParentScope",e)}(),function(){function e(e,t,n){this.$scope=e,this.$element=t,this.$attrs=n,this.regex=null}e.$inject=["$scope","$element","$attrs"],ce.module("material.components.autocomplete").controller("MdHighlightCtrl",e),e.prototype.init=function(t,n){this.flags=this.$attrs.mdHighlightFlags||"",this.unregisterFn=this.$scope.$watch(function(e){return{term:t(e),contentText:n(e)}}.bind(this),this.onRender.bind(this),!0),this.$element.on("$destroy",this.unregisterFn)},e.prototype.onRender=function(e,t){var n=e.contentText;null!==this.regex&&e.term===t.term||(this.regex=this.createRegex(e.term,this.flags)),e.term?this.applyRegex(n):this.$element.text(n)},e.prototype.applyRegex=function(e){var t=this.resolveTokens(e);this.$element.empty(),t.forEach(function(e){if(e.isMatch){var t=ce.element('<span class="highlight">').text(e.text);this.$element.append(t)}else this.$element.append(document.createTextNode(e))}.bind(this))},e.prototype.resolveTokens=function(o){var i=[],n=0;return o.replace(this.regex,function(e,t){r(n,t),i.push({text:e,isMatch:!0}),n=t+e.length}),r(n),i;function r(e,t){var n=o.slice(e,t);n&&i.push(n)}},e.prototype.createRegex=function(e,t){var n="",o="",i=this.sanitizeRegex(e);return 0<=t.indexOf("^")&&(n="^"),0<=t.indexOf("$")&&(o="$"),new RegExp(n+i+o,t.replace(/[$^]/g,""))},e.prototype.sanitizeRegex=function(e){return e&&e.toString().replace(/[\\^$*+?.()|{}[\]]/g,"\\$&")}}(),function(){function e(n,o){return{terminal:!0,controller:"MdHighlightCtrl",compile:function(e,t){var i=o(t.mdHighlightText),r=n(e.html());return function(e,t,n,o){o.init(i,r)}}}}e.$inject=["$interpolate","$parse"],ce.module("material.components.autocomplete").directive("mdHighlightText",e)}(),ce.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function(d,s,t,n,l,c,m,u){return{restrict:"E",link:function(o,i,e){var r;function a(){var e=parseInt(r.height,10)+Math.abs(parseInt(r.top,10));i.css("height",e+"px")}t.pin&&t.pin(i,n),m(function(){if("fixed"===(r=l.getComputedStyle(u[0].body)).position){var e=s.debounce(function(){r=l.getComputedStyle(u[0].body),a()},60,null,!1);a(),ce.element(l).on("resize",e),o.$on("$destroy",function(){ce.element(l).off("resize",e)})}var t=i.parent();if(t.length){"BODY"===t[0].nodeName&&i.css("position","fixed");var n=l.getComputedStyle(t[0]);"static"===n.position&&c.warn("<md-backdrop> may not work properly in a scrolled, static-positioned parent container."),d.inherit(i,t)}})}}}]),function(){function e(n){return{restrict:"E",link:function(e,t){t.addClass("_md"),e.$on("$destroy",function(){n.destroy()})}}}function t(e){t.$inject=["$animate","$mdConstant","$mdUtil","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture","$log"];var p=.5,h=80;return e("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","clickOutsideToClose"],options:t});function t(i,a,d,r,s,l,c,m){var u;return{themable:!0,onShow:function(e,t,n,o){if((t=d.extractElementByName(t,"md-bottom-sheet")).attr("tabindex","-1"),t.hasClass("ng-cloak")){m.warn("$mdBottomSheet: using `<md-bottom-sheet ng-cloak>` will affect the bottom-sheet opening animations.",t[0])}n.isLockedOpen?(n.clickOutsideToClose=!1,n.escapeToClose=!1):n.cleanupGestures=function(o,e){var t=c.register(e,"drag",{horizontal:!1});return e.on("$md.dragstart",n).on("$md.drag",i).on("$md.dragend",r),function(){t(),e.off("$md.dragstart",n),e.off("$md.drag",i),e.off("$md.dragend",r)};function n(){o.css(a.CSS.TRANSITION_DURATION,"0ms")}function i(e){var t=e.pointer.distanceY;t<5&&(t=Math.max(-h,t/2)),o.css(a.CSS.TRANSFORM,"translate3d(0,"+(h+t)+"px,0)")}function r(e){if(0<e.pointer.distanceY&&(20<e.pointer.distanceY||Math.abs(e.pointer.velocityY)>p)){var t=o.prop("offsetHeight")-e.pointer.distanceY,n=Math.min(t/e.pointer.velocityY*.75,500);o.css(a.CSS.TRANSITION_DURATION,n+"ms"),d.nextTick(s.cancel,!0)}else o.css(a.CSS.TRANSITION_DURATION,""),o.css(a.CSS.TRANSFORM,"")}}(t,n.parent);n.disableBackdrop||((u=d.createBackdrop(e,"md-bottom-sheet-backdrop md-opaque"))[0].tabIndex=-1,n.clickOutsideToClose&&u.on("click",function(){d.nextTick(s.cancel,!0)}),r.inherit(u,n.parent),i.enter(u,n.parent,null));r.inherit(t,n.parent),n.disableParentScroll&&(n.restoreScroll=d.disableScrollAround(t,n.parent));return i.enter(t,n.parent,u).then(function(){var e=d.findFocusTarget(t)||ce.element(t[0].querySelector("button")||t[0].querySelector("a")||t[0].querySelector(d.prefixer("ng-click",!0)))||u;n.escapeToClose&&(n.rootElementKeyupCallback=function(e){e.keyCode===a.KEY_CODE.ESCAPE&&d.nextTick(s.cancel,!0)},l.on("keyup",n.rootElementKeyupCallback),e&&e.focus())})},onRemove:function(e,t,n){n.disableBackdrop||i.leave(u);return i.leave(t).then(function(){n.disableParentScroll&&(n.restoreScroll(),delete n.restoreScroll),n.cleanupGestures&&n.cleanupGestures()})},disableBackdrop:!1,escapeToClose:!0,clickOutsideToClose:!0,disableParentScroll:!0,isLockedOpen:!1}}}e.$inject=["$mdBottomSheet"],t.$inject=["$$interimElementProvider"],ce.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",e).provider("$mdBottomSheet",t)}(),function(){function e(n){return{restrict:"E",link:function(e,t){n(t)}}}function t(o,i,r,a){return{restrict:"EA",replace:!0,transclude:!0,template:function(e,t){{if(d(t))return'<a class="md-button" ng-transclude></a>';var n=void 0===t.type?"button":t.type;return'<button class="md-button" type="'+n+'" ng-transclude></button>'}},link:function(e,t,n){i(t),o.attach(e,t),r.expectWithoutText(t,"aria-label"),d(n)&&ce.isDefined(n.ngDisabled)&&!t.hasClass("_md-nav-button")&&e.$watch(n.ngDisabled,function(e){t.attr("tabindex",e?-1:0)});t.on("click",function(e){!0===n.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}),t.hasClass("md-no-focus")||(t.on("focus",function(){a.isUserInvoked()&&"keyboard"!==a.getLastInteractionType()||t.addClass("md-focused")}),t.on("blur",function(){t.removeClass("md-focused")}))}};function d(e){return ce.isDefined(e.href)||ce.isDefined(e.ngHref)||ce.isDefined(e.ngLink)||ce.isDefined(e.uiSref)}}t.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$mdInteraction"],e.$inject=["$mdTheming"],ce.module("material.components.button",["material.core"]).directive("mdButton",t).directive("a",e)}(),function(){function e(o){return{restrict:"E",link:function(e,t,n){t.addClass("_md"),o(t)}}}e.$inject=["$mdTheming"],ce.module("material.components.card",["material.core"]).directive("mdCard",e)}(),function(){function e(h,f,g,b,v,E){return h=h[0],{restrict:"E",transclude:!0,require:["^?mdInputContainer","?ngModel","?^form"],priority:g.BEFORE_NG_ARIA,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-icon"></div></div><div ng-transclude class="md-label"></div>',compile:function(e,t){return t.$set("tabindex",t.tabindex||"0"),t.$set("type","checkbox"),t.$set("role",t.type),{pre:function(e,t){t.on("click",function(e){this.hasAttribute("disabled")&&e.stopImmediatePropagation()})},post:function(e,i,n,t){var o,r,a,d,s=t[0],l=t[1]||v.fakeNgModel(),c=t[2];if(s){var m=s.isErrorGetter||function(){return l.$invalid&&(l.$touched||c&&c.$submitted)};s.input=i,e.$watch(m,s.setInvalid)}function u(t){i[0].hasAttribute("disabled")||e.skipToggle||e.$apply(function(){var e=n.ngChecked&&n.ngClick?n.checked:!l.$viewValue;l.$setViewValue(e,t&&t.type),l.$render()})}function p(e){(o=!1!==e)&&i.attr("aria-checked","mixed"),i.toggleClass("md-indeterminate",o)}b(i),i.children().on("focus",function(){i.focus()}),v.parseAttributeBoolean(n.mdIndeterminate)&&(p(),e.$watch(n.mdIndeterminate,p)),n.ngChecked&&e.$watch(e.$eval.bind(e,n.ngChecked),function(e){l.$setViewValue(e),l.$render()}),r="ngDisabled",a="tabindex",d={true:"-1",false:n.tabindex},n[r]&&e.$watch(n[r],function(e){d[e]&&i.attr(a,d[e])}),f.expectWithText(i,"aria-label"),h.link.pre(e,{on:ce.noop,0:{}},n,[l]),i.on("click",u).on("keypress",function(e){var t,n,o=e.which||e.keyCode;switch(e.preventDefault(),o){case g.KEY_CODE.SPACE:i.addClass("md-focused"),u(e);break;case g.KEY_CODE.ENTER:(n=v.getClosest(e.target,"form"))&&(t=n.querySelector('button[type="submit"]:enabled, input[type="submit"]:enabled'))&&t.click()}}).on("focus",function(){"keyboard"===E.getLastInteractionType()&&i.addClass("md-focused")}).on("blur",function(){i.removeClass("md-focused")}),l.$render=function(){i.toggleClass("md-checked",!!l.$viewValue&&!o)}}}}}}e.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$mdInteraction"],ce.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",e)}(),ce.module("material.components.chips",["material.core","material.components.autocomplete"]),function(){function e(e,t,n,o,i){this.$scope=e,this.$element=t,this.$mdConstant=n,this.$timeout=o,this.$mdUtil=i,this.isEditing=!1,this.parentController=me,this.enableChipEdit=!1}e.$inject=["$scope","$element","$mdConstant","$timeout","$mdUtil"],ce.module("material.components.chips").controller("MdChipCtrl",e),e.prototype.init=function(e){this.parentController=e,this.enableChipEdit=this.parentController.enableChipEdit,this.enableChipEdit&&(this.$element.on("keydown",this.chipKeyDown.bind(this)),this.$element.on("dblclick",this.chipMouseDoubleClick.bind(this)),this.getChipContent().addClass("_md-chip-content-edit-is-enabled"))},e.prototype.getChipContent=function(){var e=this.$element[0].getElementsByClassName("md-chip-content");return ce.element(e[0])},e.prototype.getContentElement=function(){var e=ce.element(this.getChipContent().children()[0]);return e&&0!==e.length||(e=ce.element(this.getChipContent().contents()[0])),e},e.prototype.getChipIndex=function(){return parseInt(this.$element.attr("index"))},e.prototype.goOutOfEditMode=function(){if(this.isEditing){this.isEditing=!1,this.$element.removeClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="false";var e=this.getChipIndex(),t=this.getContentElement().text();t?(this.parentController.updateChipContents(e,t),this.$mdUtil.nextTick(function(){this.parentController.selectedChip===e&&this.parentController.focusChip(e)}.bind(this))):this.parentController.removeChipAndFocusInput(e)}},e.prototype.selectNodeContents=function(e){var t,n;document.body.createTextRange?((t=document.body.createTextRange()).moveToElementText(e),t.select()):B.getSelection&&(n=B.getSelection(),(t=document.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(t))},e.prototype.goInEditMode=function(){this.isEditing=!0,this.$element.addClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="true",this.getChipContent().on("blur",function(){this.goOutOfEditMode()}.bind(this)),this.selectNodeContents(this.getChipContent()[0])},e.prototype.chipKeyDown=function(e){this.isEditing||e.keyCode!==this.$mdConstant.KEY_CODE.ENTER&&e.keyCode!==this.$mdConstant.KEY_CODE.SPACE?this.isEditing&&e.keyCode===this.$mdConstant.KEY_CODE.ENTER&&(e.preventDefault(),this.goOutOfEditMode()):(e.preventDefault(),this.goInEditMode())},e.prototype.chipMouseDoubleClick=function(){this.enableChipEdit&&!this.isEditing&&this.goInEditMode()}}(),function(){function e(d,e,t,s){return{restrict:"E",require:["^?mdChips","mdChip"],link:function(e,t,n,o){var i=o.shift(),r=o.shift(),a=ce.element(t[0].querySelector(".md-chip-content"));d(t),i&&(r.init(i),a.on("blur",function(){i.resetSelectedChip(),i.$scope.$applyAsync()}));s(function(){i&&i.shouldFocusLastChip&&i.focusLastChipThenInput()})},controller:"MdChipCtrl"}}e.$inject=["$mdTheming","$mdUtil","$compile","$timeout"],ce.module("material.components.chips").directive("mdChip",e)}(),function(){function e(i){return{restrict:"A",require:"^mdChips",scope:!1,link:function(t,e,n,o){e.on("click",function(e){t.$apply(function(){o.removeChip(t.$$replacedScope.$index)})}),i(function(){e.attr({tabindex:"-1","aria-hidden":"true"}),e.find("button").attr("tabindex","-1")})}}}e.$inject=["$timeout"],ce.module("material.components.chips").directive("mdChipRemove",e)}(),function(){function e(a){return{restrict:"EA",terminal:!0,link:function(e,t,n){var o=e.$parent.$mdChipsCtrl,i=o.parent.$new(!1,o.parent);i.$$replacedScope=e,i.$chip=e.$chip,i.$index=e.$index;var r=(i.$mdChipsCtrl=o).$scope.$eval(n.mdChipTransclude);t.html(r),a(t.contents())(i)},scope:!1}}e.$inject=["$compile"],ce.module("material.components.chips").directive("mdChipTransclude",e)}(),function(){e.$inject=["$scope","$attrs","$mdConstant","$log","$element","$timeout","$mdUtil","$mdLiveAnnouncer","$exceptionHandler"];var l=300;function e(e,t,n,o,i,r,a,d,s){this.$timeout=r,this.$mdConstant=n,this.$scope=e,this.parent=e.$parent,this.$mdUtil=a,this.$log=o,this.$mdLiveAnnouncer=d,this.$exceptionHandler=s,this.$element=i,this.$attrs=t,this.ngModelCtrl=null,this.userInputNgModelCtrl=null,this.autocompleteCtrl=null,this.userInputElement=null,this.items=[],this.selectedChip=-1,this.enableChipEdit=a.parseAttributeBoolean(t.mdEnableChipEdit),this.addOnBlur=a.parseAttributeBoolean(t.mdAddOnBlur),this.inputAriaLabel="Chips input.",this.containerHint="Chips container. Use arrow keys to select chips.",this.containerEmptyHint="Chips container. Enter the text area, then type text, and press enter to add a chip.",this.deleteHint="Press delete to remove this chip.",this.deleteButtonLabel="Remove",this.chipBuffer="",this.useTransformChip=!1,this.useOnAdd=!1,this.useOnRemove=!1,this.wrapperId="",this.contentIds=[],this.ariaTabIndex=null,this.chipAppendDelay=l,this.deRegister=[],this.addedMessage="added",this.removedMessage="removed",this.init()}ce.module("material.components.chips").controller("MdChipsCtrl",e),e.prototype.init=function(){var t=this;this.wrapperId="_md-chips-wrapper-"+this.$mdUtil.nextUid(),this.$element.attr("ng-model")||this.setupStaticChips(),this.deRegister.push(this.$scope.$watchCollection("$mdChipsCtrl.items",function(){t.setupInputAria(),t.setupWrapperAria()})),this.deRegister.push(this.$attrs.$observe("mdChipAppendDelay",function(e){t.chipAppendDelay=parseInt(e)||l}))},e.prototype.$onDestroy=function(){for(var e;e=this.deRegister.pop();)e.call(this)},e.prototype.setupInputAria=function(){var e=this.$element.find("input");e&&(e.attr("role","textbox"),e.attr("aria-multiline",!0),this.inputAriaDescribedBy&&e.attr("aria-describedby",this.inputAriaDescribedBy),this.inputAriaLabelledBy?(e.attr("aria-labelledby",this.inputAriaLabelledBy),e.removeAttr("aria-label")):e.attr("aria-label",this.inputAriaLabel))},e.prototype.setupWrapperAria=function(){var e=this,t=this.$element.find("md-chips-wrap");this.items&&this.items.length?(t.attr("role","listbox"),this.contentIds=this.items.map(function(){return e.wrapperId+"-chip-"+e.$mdUtil.nextUid()}),t.attr("aria-owns",this.contentIds.join(" ")),t.attr("aria-label",this.containerHint)):(t.removeAttr("role"),t.removeAttr("aria-owns"),t.attr("aria-label",this.containerEmptyHint))},e.prototype.setupStaticChips=function(){var e,t,n=this,o=this.$element.find("md-chips-wrap");this.$timeout(function(){for(o.attr("role","list"),t=o[0].children,e=0;e<t.length;e++)t[e].setAttribute("role","listitem"),t[e].setAttribute("aria-setsize",t.length);n.inputAriaDescribedBy&&o.attr("aria-describedby",n.inputAriaDescribedBy),n.inputAriaLabelledBy?(o.attr("aria-labelledby",n.inputAriaLabelledBy),o.removeAttr("aria-label")):o.attr("aria-label",n.inputAriaLabel)},10)},e.prototype.inputKeydown=function(e){var t=this.getChipBuffer();if(!(this.autocompleteCtrl&&e.isDefaultPrevented&&e.isDefaultPrevented())){if(e.keyCode===this.$mdConstant.KEY_CODE.BACKSPACE){if(0!==this.getCursorPosition(e.target))return;return e.preventDefault(),e.stopPropagation(),void(this.items.length&&this.selectAndFocusChipSafe(this.items.length-1))}if((!this.separatorKeys||this.separatorKeys.length<1)&&(this.separatorKeys=[this.$mdConstant.KEY_CODE.ENTER]),-1!==this.separatorKeys.indexOf(e.keyCode)){if(this.autocompleteCtrl&&this.requireMatch||!t)return;if(e.preventDefault(),this.hasMaxChipsReached())return;return this.appendChip(t.trim()),this.resetChipBuffer(),!1}}},e.prototype.getCursorPosition=function(t){try{if(t.selectionStart===t.selectionEnd)return t.selectionStart}catch(e){if(!t.value)return 0}},e.prototype.updateChipContents=function(e,t){0<=e&&e<this.items.length&&(this.items[e]=t,this.updateNgModel(!0))},e.prototype.isEditingChip=function(){return!!this.$element[0].querySelector("._md-chip-editing")},e.prototype._isChipObject=function(e){return ce.isObject(e)},e.prototype.isRemovable=function(){return!!this.ngModelCtrl&&(this.readonly?this.removable:!ce.isDefined(this.removable)||this.removable)},e.prototype.chipKeydown=function(e){if(!this.getChipBuffer()&&!this.isEditingChip())switch(e.keyCode){case this.$mdConstant.KEY_CODE.BACKSPACE:case this.$mdConstant.KEY_CODE.DELETE:if(this.selectedChip<0)return;if(e.preventDefault(),!this.isRemovable())return;this.removeAndSelectAdjacentChip(this.selectedChip,e);break;case this.$mdConstant.KEY_CODE.LEFT_ARROW:e.preventDefault(),(this.selectedChip<0||this.readonly&&0===this.selectedChip)&&(this.selectedChip=this.items.length),this.items.length&&this.selectAndFocusChipSafe(this.selectedChip-1);break;case this.$mdConstant.KEY_CODE.RIGHT_ARROW:e.preventDefault(),this.selectAndFocusChipSafe(this.selectedChip+1);break;case this.$mdConstant.KEY_CODE.ESCAPE:case this.$mdConstant.KEY_CODE.TAB:if(this.selectedChip<0)return;e.preventDefault(),this.onFocus()}},e.prototype.getPlaceholder=function(){return this.items&&this.items.length&&(""===this.secondaryPlaceholder||this.secondaryPlaceholder)?this.secondaryPlaceholder:this.placeholder},e.prototype.removeAndSelectAdjacentChip=function(e,t){var n=this,o=n.getAdjacentChipIndex(e);this.$element[0].querySelector("md-chips-wrap"),this.$element[0].querySelector('md-chip[index="'+e+'"]');n.removeChip(e,t),n.$timeout(function(){n.$timeout(function(){n.selectAndFocusChipSafe(o)})})},e.prototype.resetSelectedChip=function(){this.selectedChip=-1,this.ariaTabIndex=null},e.prototype.getAdjacentChipIndex=function(e){var t=this.items.length-1;return 0===t?-1:e===t?e-1:e},e.prototype.appendChip=function(t){if(this.shouldFocusLastChip=!this.addOnBlur,this.useTransformChip&&this.transformChip){var e=this.transformChip({$chip:t});ce.isDefined(e)&&(t=e)}if(ce.isObject(t)&&this.items.some(function(e){return ce.equals(t,e)}))return;if(!(null==t||this.items.indexOf(t)+1)){var n=this.items.push(t)-1;this.updateNgModel();var o=ce.isObject(t)?"":t;this.$mdLiveAnnouncer.announce(o+" "+this.addedMessage,"assertive"),this.useOnAdd&&this.onAdd&&this.onAdd({$chip:t,$index:n})}},e.prototype.useTransformChipExpression=function(){this.useTransformChip=!0},e.prototype.useOnAddExpression=function(){this.useOnAdd=!0},e.prototype.useOnRemoveExpression=function(){this.useOnRemove=!0},e.prototype.useOnSelectExpression=function(){this.useOnSelect=!0},e.prototype.getChipBuffer=function(){var e=this.userInputElement?this.userInputNgModelCtrl?this.userInputNgModelCtrl.$viewValue:this.userInputElement[0].value:this.chipBuffer;return ce.isString(e)?e:""},e.prototype.resetChipBuffer=function(){this.userInputElement?this.userInputNgModelCtrl?(this.userInputNgModelCtrl.$setViewValue(""),this.userInputNgModelCtrl.$render()):this.userInputElement[0].value="":this.chipBuffer=""},e.prototype.hasMaxChipsReached=function(){return ce.isString(this.maxChips)&&(this.maxChips=parseInt(this.maxChips,10)||0),0<this.maxChips&&this.items.length>=this.maxChips},e.prototype.validateModel=function(){this.ngModelCtrl.$setValidity("md-max-chips",!this.hasMaxChipsReached()),this.ngModelCtrl.$validate()},e.prototype.updateNgModel=function(e){e||this.validateModel(),ce.forEach(this.ngModelCtrl.$viewChangeListeners,function(e){try{e()}catch(e){this.$exceptionHandler(e)}})},e.prototype.removeChip=function(e,t){var n=this.items.splice(e,1);this.updateNgModel(),this.ngModelCtrl.$setDirty();var o=ce.isObject(n[0])?"":n[0];this.$mdLiveAnnouncer.announce(o+" "+this.removedMessage,"assertive"),n&&n.length&&this.useOnRemove&&this.onRemove&&this.onRemove({$chip:n[0],$index:e,$event:t})},e.prototype.removeChipAndFocusInput=function(e,t){this.removeChip(e,t),this.autocompleteCtrl?(this.autocompleteCtrl.hidden=!0,this.$mdUtil.nextTick(this.onFocus.bind(this))):this.onFocus()},e.prototype.selectAndFocusChipSafe=function(e){if(!this.items.length||-1===e)return this.focusInput();if(e>=this.items.length){if(!this.readonly)return this.onFocus();e=0}e=Math.max(e,0),e=Math.min(e,this.items.length-1),this.selectChip(e),this.focusChip(e)},e.prototype.focusLastChipThenInput=function(){var e=this;e.shouldFocusLastChip=!1,e.focusChip(this.items.length-1),e.$timeout(function(){e.focusInput()},e.chipAppendDelay)},e.prototype.focusInput=function(){this.selectChip(-1),this.onFocus()},e.prototype.selectChip=function(e){-1<=e&&e<=this.items.length?(this.selectedChip=e,this.useOnSelect&&this.onSelect&&this.onSelect({$chip:this.items[e]})):this.$log.warn("Selected Chip index out of bounds; ignoring.")},e.prototype.selectAndFocusChip=function(e){this.selectChip(e),-1!==e&&this.focusChip(e)},e.prototype.focusChip=function(e){var t=this.$element[0].querySelector('md-chip[index="'+e+'"] .md-chip-content');this.ariaTabIndex=e,t.focus()},e.prototype.configureNgModel=function(e){this.ngModelCtrl=e;var t=this;e.$isEmpty=function(e){return!e||0===e.length},e.$render=function(){t.items=t.ngModelCtrl.$viewValue}},e.prototype.onFocus=function(){var e=this.$element[0].querySelector("input");e&&e.focus(),this.resetSelectedChip()},e.prototype.onInputFocus=function(){this.inputHasFocus=!0,this.setupInputAria(),this.resetSelectedChip()},e.prototype.onInputBlur=function(){this.inputHasFocus=!1,this.shouldAddOnBlur()&&(this.appendChip(this.getChipBuffer().trim()),this.resetChipBuffer())},e.prototype.configureInput=function(e){var t=e.controller("ngModel"),n=this;t&&(this.deRegister.push(this.$scope.$watch(function(){return t.$touched},function(e){e&&n.ngModelCtrl.$setTouched()})),this.deRegister.push(this.$scope.$watch(function(){return t.$dirty},function(e){e&&n.ngModelCtrl.$setDirty()})))},e.prototype.configureUserInput=function(e){var t=(this.userInputElement=e).controller("ngModel");t!==this.ngModelCtrl&&(this.userInputNgModelCtrl=t);var n=this.$scope,o=this,i=function(e,t){n.$evalAsync(ce.bind(o,t,e))};e.attr({tabindex:0}).on("keydown",function(e){i(e,o.inputKeydown)}).on("focus",function(e){i(e,o.onInputFocus)}).on("blur",function(e){i(e,o.onInputBlur)})},e.prototype.configureAutocomplete=function(e){e&&(this.autocompleteCtrl=e,this.$element.attr("container-empty-hint")||(this.containerEmptyHint="Chips container with autocompletion. Enter the text area, type text to search, and then use the up and down arrow keys to select an option. Press enter to add the selected option as a chip.",this.setupWrapperAria()),e.registerSelectedItemWatcher(ce.bind(this,function(e){if(e){if(this.hasMaxChipsReached())return;this.appendChip(e),this.resetChipBuffer()}})),this.$element.find("input").on("focus",ce.bind(this,this.onInputFocus)).on("blur",ce.bind(this,this.onInputBlur)))},e.prototype.shouldAddOnBlur=function(){this.validateModel();var e=this.getChipBuffer().trim(),t=this.ngModelCtrl.$isEmpty(this.ngModelCtrl.$modelValue)||this.ngModelCtrl.$valid,n=this.autocompleteCtrl&&!this.autocompleteCtrl.hidden;return this.userInputNgModelCtrl&&(t=t&&this.userInputNgModelCtrl.$valid),this.addOnBlur&&!this.requireMatch&&e&&t&&!n},e.prototype.hasFocus=function(){return this.inputHasFocus||0<=this.selectedChip},e.prototype.contentIdFor=function(e){return this.contentIds[e]}}(),function(){o.$inject=["$mdTheming","$mdUtil","$compile","$log","$timeout","$$mdSvgRegistry"],ce.module("material.components.chips").directive("mdChips",o);var e='      <md-chips-wrap          id="{{$mdChipsCtrl.wrapperId}}"          tabindex="{{$mdChipsCtrl.readonly ? 0 : -1}}"          ng-keydown="$mdChipsCtrl.chipKeydown($event)"          ng-class="{ \'md-focused\': $mdChipsCtrl.hasFocus(),                       \'md-readonly\': !$mdChipsCtrl.ngModelCtrl || $mdChipsCtrl.readonly,                      \'md-removable\': $mdChipsCtrl.isRemovable() }"          class="md-chips">        <md-chip ng-repeat="$chip in $mdChipsCtrl.items"            index="{{$index}}"             ng-class="{\'md-focused\': $mdChipsCtrl.selectedChip == $index, \'md-readonly\': !$mdChipsCtrl.ngModelCtrl || $mdChipsCtrl.readonly}">          <div class="md-chip-content"              tabindex="{{$mdChipsCtrl.ariaTabIndex === $index ? 0 : -1}}"              id="{{$mdChipsCtrl.contentIdFor($index)}}"              role="option"              aria-selected="{{$mdChipsCtrl.selectedChip === $index}}"              aria-setsize="{{$mdChipsCtrl.items.length}}"              aria-posinset="{{$index+1}}"              ng-click="!$mdChipsCtrl.readonly && $mdChipsCtrl.focusChip($index)"              aria-label="{{$mdChipsCtrl._isChipObject($chip) ? \'\' : $chip + \'. \'}}{{$mdChipsCtrl.isRemovable() ? \'\' + $mdChipsCtrl.deleteHint : \'\'}}"               ng-focus="!$mdChipsCtrl.readonly && $mdChipsCtrl.selectChip($index)"              md-chip-transclude="$mdChipsCtrl.chipContentsTemplate"></div>          <div ng-if="$mdChipsCtrl.isRemovable()"               class="md-chip-remove-container"               tabindex="-1"               md-chip-transclude="$mdChipsCtrl.chipRemoveTemplate"></div>        </md-chip>        <div class="md-chip-input-container" ng-if="!$mdChipsCtrl.readonly && $mdChipsCtrl.ngModelCtrl">          <div md-chip-transclude="$mdChipsCtrl.chipInputTemplate"></div>        </div>      </md-chips-wrap>',t='        <input            class="md-input"            tabindex="0"            aria-label="{{$mdChipsCtrl.inputAriaLabel}}"            placeholder="{{$mdChipsCtrl.getPlaceholder()}}"            ng-model="$mdChipsCtrl.chipBuffer"            ng-focus="$mdChipsCtrl.onInputFocus()"            ng-blur="$mdChipsCtrl.onInputBlur()"            ng-keydown="$mdChipsCtrl.inputKeydown($event)">',n="      <span>{{$chip}}</span>",i='      <button          class="md-chip-remove"          ng-if="$mdChipsCtrl.isRemovable()"          ng-click="$mdChipsCtrl.removeChipAndFocusInput($$replacedScope.$index, $event)"          type="button"          tabindex="-1"          aria-label="{{$mdChipsCtrl.deleteButtonLabel}}{{$mdChipsCtrl._isChipObject($chip) ? \'\' : \' \' + $chip}}">        <md-icon md-svg-src="{{$mdChipsCtrl.mdCloseIcon}}" aria-hidden="true"></md-icon>      </button>';function o(u,p,h,o,f,g){var b={chips:p.processTemplate(e),input:p.processTemplate(t),default:p.processTemplate(n),remove:p.processTemplate(i)};return{template:function(e,t){return t.$mdUserTemplate=e.clone(),b.chips},require:["mdChips"],restrict:"E",controller:"MdChipsCtrl",controllerAs:"$mdChipsCtrl",bindToController:!0,compile:function(e,a){var n=a.$mdUserTemplate;a.$mdUserTemplate=null;var d=t("md-chips>md-chip-template"),s=t(p.prefixer().buildList("md-chip-remove").map(function(e){return"md-chips>*["+e+"]"}).join(","))||b.remove,l=d||b.default,c=t("md-chips>md-autocomplete")||t("md-chips>input")||b.input,m=n.find("md-chip");n[0].querySelector("md-chip-template>*[md-chip-remove]")&&o.warn("invalid placement of md-chip-remove within md-chip-template.");function t(e){if(a.ngModel){var t=n[0].querySelector(e);return t&&t.outerHTML}}return function(e,t,n,o){p.initOptionalProperties(e,a),u(t);var i=o[0];if(d&&(i.enableChipEdit=!1),i.chipContentsTemplate=l,i.chipRemoveTemplate=s,i.chipInputTemplate=c,i.mdCloseIcon=g.mdClose,t.attr({tabindex:-1}).on("focus",function(){i.onFocus()}).on("click",function(){i.readonly||-1!==i.selectedChip||i.onFocus()}),a.ngModel&&(i.configureNgModel(t.controller("ngModel")),n.mdTransformChip&&i.useTransformChipExpression(),n.mdOnAppend&&i.useOnAppendExpression(),n.mdOnAdd&&i.useOnAddExpression(),n.mdOnRemove&&i.useOnRemoveExpression(),n.mdOnSelect&&i.useOnSelectExpression(),c!==b.input&&e.$watch("$mdChipsCtrl.readonly",function(e){e||p.nextTick(function(){if(0===c.indexOf("<md-autocomplete")){var e=t.find("md-autocomplete");i.configureAutocomplete(e.controller("mdAutocomplete"))}i.configureUserInput(t.find("input"))})}),p.nextTick(function(){var e=t.find("input");e&&(i.configureInput(e),e.toggleClass("md-input",!0))})),0<m.length){var r=h(m.clone())(e.$parent);f(function(){t.find("md-chips-wrap").prepend(r)})}}},scope:{readonly:"=?readonly",removable:"=?mdRemovable",placeholder:"@?",secondaryPlaceholder:"@?",maxChips:"@?mdMaxChips",transformChip:"&mdTransformChip",onAppend:"&?mdOnAppend",onAdd:"&?mdOnAdd",onRemove:"&?mdOnRemove",addedMessage:"@?mdAddedMessage",removedMessage:"@?mdRemovedMessage",onSelect:"&?mdOnSelect",inputAriaDescribedBy:"@?inputAriaDescribedby",inputAriaLabelledBy:"@?inputAriaLabelledby",inputAriaLabel:"@?",containerHint:"@?",containerEmptyHint:"@?",deleteHint:"@?",deleteButtonLabel:"@?",separatorKeys:"=?mdSeparatorKeys",requireMatch:"=?mdRequireMatch",chipAppendDelayString:"@?mdChipAppendDelay",ngChange:"&?"}}}}(),function(){function e(e,t,n){this.$element=t,this.$attrs=e,this.$timeout=n,this.selectedItem=null,this.searchText="",this.deRegister=[],this.init()}e.$inject=["$attrs","$element","$timeout"],ce.module("material.components.chips").controller("MdContactChipsCtrl",e),e.prototype.init=function(){var e=this,t=this.deRegister,n=this.$element;this.$timeout(function(){t.push(n.find("md-chips").scope().$watchCollection("$mdChipsCtrl.items",function(){e.setupChipsAria(),e.setupAutocompleteAria()}))})},e.prototype.setupChipsAria=function(){var e=this.$element.find("md-chips"),t=e.controller("mdChips");this.removedMessage&&(t.removedMessage=this.removedMessage),this.containerHint&&(t.containerHint=this.containerHint),this.containerEmptyHint&&(e.attr("container-empty-hint",this.containerEmptyHint),t.containerEmptyHint=this.containerEmptyHint),this.deleteHint&&(t.deleteHint=this.deleteHint),this.inputAriaLabel&&(t.inputAriaLabel=this.inputAriaLabel)},e.prototype.setupAutocompleteAria=function(){var e=this.$element.find("md-chips-wrap").find("md-autocomplete").find("input");this.inputAriaDescribedBy&&e.attr("aria-describedby",this.inputAriaDescribedBy),this.inputAriaLabelledBy&&(e.removeAttr("aria-label"),e.attr("aria-labelledby",this.inputAriaLabelledBy))},e.prototype.queryContact=function(e){return this.contactQuery({$query:e})},e.prototype.inputKeydown=function(e){if(this.separatorKeys&&!(this.separatorKeys.indexOf(e.keyCode)<0)){e.stopPropagation(),e.preventDefault();var t=ce.element(e.target).controller("mdAutocomplete");t.select(t.index)}},e.prototype.itemName=function(e){return e[this.contactName]},e.prototype.$onDestroy=function(){for(var e;e=this.deRegister.pop();)e.call(this)}}(),function(){e.$inject=["$mdTheming","$mdUtil"],ce.module("material.components.chips").directive("mdContactChips",e);var n='      <md-chips class="md-contact-chips"          ng-model="$mdContactChipsCtrl.contacts"          ng-change="$mdContactChipsCtrl.ngChange($mdContactChipsCtrl.contacts)"          md-require-match="$mdContactChipsCtrl.requireMatch"          md-chip-append-delay="{{$mdContactChipsCtrl.chipAppendDelay}}"          md-separator-keys="$mdContactChipsCtrl.separatorKeys"          md-autocomplete-snap>          <md-autocomplete              md-menu-class="md-contact-chips-suggestions"              md-selected-item="$mdContactChipsCtrl.selectedItem"              md-search-text="$mdContactChipsCtrl.searchText"              md-items="item in $mdContactChipsCtrl.queryContact($mdContactChipsCtrl.searchText)"              md-item-text="$mdContactChipsCtrl.itemName(item)"              md-no-cache="true"              md-min-length="$mdContactChipsCtrl.minLength"              md-autoselect              ng-keydown="$mdContactChipsCtrl.inputKeydown($event)"              placeholder="{{$mdContactChipsCtrl.contacts.length === 0 ?                  $mdContactChipsCtrl.placeholder : $mdContactChipsCtrl.secondaryPlaceholder}}">            <div class="md-contact-suggestion">              <img                   ng-src="{{item[$mdContactChipsCtrl.contactImage]}}"                  alt="{{item[$mdContactChipsCtrl.contactName]}}"                  ng-if="item[$mdContactChipsCtrl.contactImage]" />              <span class="md-contact-name" md-highlight-text="$mdContactChipsCtrl.searchText"                    md-highlight-flags="{{$mdContactChipsCtrl.highlightFlags}}">                {{item[$mdContactChipsCtrl.contactName]}}              </span>              <span class="md-contact-email" >{{item[$mdContactChipsCtrl.contactEmail]}}</span>            </div>          </md-autocomplete>          <md-chip-template>            <div class="md-contact-avatar">              <img                   ng-src="{{$chip[$mdContactChipsCtrl.contactImage]}}"                  alt="{{$chip[$mdContactChipsCtrl.contactName]}}"                  ng-if="$chip[$mdContactChipsCtrl.contactImage]" />            </div>            <div class="md-contact-name">              {{$chip[$mdContactChipsCtrl.contactName]}}            </div>          </md-chip-template>      </md-chips>';function e(a,d){return{template:function(e,t){return n},restrict:"E",controller:"MdContactChipsCtrl",controllerAs:"$mdContactChipsCtrl",bindToController:!0,compile:function(e,r){return function(e,t,n,o){var i=o;d.initOptionalProperties(e,r),a(t),t.attr("tabindex","-1"),n.$observe("mdChipAppendDelay",function(e){i.chipAppendDelay=e})}},scope:{contactQuery:"&mdContacts",placeholder:"@?",secondaryPlaceholder:"@?",contactName:"@mdContactName",contactImage:"@mdContactImage",contactEmail:"@mdContactEmail",contacts:"=ngModel",ngChange:"&?",requireMatch:"=?mdRequireMatch",minLength:"=?mdMinLength",highlightFlags:"@?mdHighlightFlags",chipAppendDelay:"@?mdChipAppendDelay",separatorKeys:"=?mdSeparatorKeys",removedMessage:"@?mdRemovedMessage",inputAriaDescribedBy:"@?inputAriaDescribedby",inputAriaLabelledBy:"@?inputAriaLabelledby",inputAriaLabel:"@?",containerHint:"@?",containerEmptyHint:"@?",deleteHint:"@?"}}}}(),function(){t.$inject=["$mdColors","$mdUtil","$log","$parse"],e.$inject=["$mdTheming","$mdUtil","$log"];var a=/^{((\s|,)*?["'a-zA-Z-]+?\s*?:\s*?('|")[a-zA-Z0-9-.]*('|"))+\s*}$/,l=null;function e(r,a,o){return l=l||Object.keys(r.PALETTES),{applyThemeColors:function(e,t){try{t&&e.css((i={},r=(n=t).hasOwnProperty("color"),ce.forEach(n,function(e,t){var n=s(e),o=-1<t.indexOf("background");i[t]=d(n),o&&!r&&(i.color=d(n,!0))}),i))}catch(e){o.error(e.message)}var n,i,r},getThemeColor:function(e){return d(s(e))},hasTheme:function(e){return ce.isDefined(r.THEMES[e.split("-")[0]])}};function d(e,t){t=t||!1;var n=r.PALETTES[e.palette][e.hue];return n=t?n.contrast:n.value,a.supplant("rgba({0}, {1}, {2}, {3})",[n[0],n[1],n[2],n[3]||e.opacity])}function s(e){var t=e.split("-"),n=ce.isDefined(r.THEMES[t[0]])?t.splice(0,1)[0]:r.defaultTheme();return{theme:n,palette:function(e,t){var n=1<e.length&&-1!==l.indexOf(e[1]),o=e[0].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();if(n&&(o=e[0]+"-"+e.splice(1,1)),-1===l.indexOf(o)){var i=r.THEMES[t].colors[o];if(!i)throw new Error(a.supplant("mdColors: couldn't find '{palette}' in the palettes.",{palette:o}));o=i.name}return o}(t,n),hue:function(e,t){var n=r.THEMES[t].colors;if("hue"!==e[1])return e[1]||n[e[0]in n?e[0]:"primary"].hues.default;var o=parseInt(e.splice(2,1)[0],10);if(o<1||3<o)throw new Error(a.supplant("mdColors: 'hue-{hueNumber}' is not a valid hue, can be only 'hue-1', 'hue-2' and 'hue-3'",{hueNumber:o}));if(e[1]="hue-"+o,e[0]in n)return n[e[0]].hues[e[1]];throw new Error(a.supplant("mdColors: 'hue-x' can only be used with [{availableThemes}], but was used with '{usedTheme}'",{availableThemes:Object.keys(n).join(", "),usedTheme:e[0]}))}(t,n),opacity:t[2]||1}}}function t(c,r,m,u){return{restrict:"A",require:["^?mdTheme"],compile:function(e,i){var l=function(){var e=i.mdColors,t=-1<e.indexOf("::"),n=!!t||a.test(i.mdColors);i.mdColors=e.replace("::","");var o=ce.isDefined(i.mdColorsWatch);return!t&&!n&&(!o||r.parseAttributeBoolean(i.mdColorsWatch))}();return function(e,n,t,o){var i=o[0],r={},a=function(n){"string"!=typeof n&&(n=""),t.mdColors||(t.mdColors="{}");var o=u(t.mdColors)(e);return i&&Object.keys(o).forEach(function(e){var t=o[e];c.hasTheme(t)||(o[e]=(n||i.$mdTheme)+"-"+t)}),d(o),o},d=function(e){if(!ce.equals(e,r)){var t=Object.keys(r);r.background&&!t.color&&t.push("color"),t.forEach(function(e){n.css(e,"")})}r=e},s=ce.noop;i&&(s=i.registerChanges(function(e){c.applyThemeColors(n,a(e))})),e.$on("$destroy",function(){s()});try{l?e.$watch(a,ce.bind(this,c.applyThemeColors,n),!0):c.applyThemeColors(n,a())}catch(e){m.error(e.message)}}}}}ce.module("material.components.colors",["material.core"]).directive("mdColors",t).service("$mdColors",e)}(),function(){function e(o){return{restrict:"E",controller:["$scope","$element",function(e,t){this.$scope=e,this.$element=t}],link:function(e,t){var n;t.addClass("_md"),o(t),e.$broadcast("$mdContentLoaded",t),n=t[0],ce.element(n).on("$md.pressdown",function(e){"t"===e.pointer.type&&(e.$materialScrollFixed||(e.$materialScrollFixed=!0,0===n.scrollTop?n.scrollTop=1:n.scrollHeight===n.scrollTop+n.offsetHeight&&(n.scrollTop-=1)))})}}}e.$inject=["$mdTheming"],ce.module("material.components.content",["material.core"]).directive("mdContent",e)}(),ce.module("material.components.datepicker",["material.core","material.components.icon","material.components.virtualRepeat"]),function(){e.$inject=["$element","$scope","$$mdDateUtil","$mdUtil","$mdConstant","$mdTheming","$$rAF","$attrs","$mdDateLocale"],ce.module("material.components.datepicker").directive("mdCalendar",function(){return{template:function(e,t){var n=t.hasOwnProperty("ngIf")?"":'ng-if="calendarCtrl.isInitialized"',o='<div ng-switch="calendarCtrl.currentView" '+n+'><md-calendar-year ng-switch-when="year"></md-calendar-year><md-calendar-month ng-switch-default></md-calendar-month></div>';return o},scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",dateFilter:"=mdDateFilter",_mode:"@mdMode",_currentView:"@mdCurrentView"},require:["ngModel","mdCalendar"],controller:e,controllerAs:"calendarCtrl",bindToController:!0,link:function(e,t,n,o){var i=o[0],r=o[1];r.configureNgModel(i)}}});var m=0,t={day:"month",month:"year"};function e(e,t,n,o,i,r,a,d,s){r(e),this.$element=e,this.$scope=t,this.dateUtil=n,this.$mdUtil=o,this.keyCode=i.KEY_CODE,this.$$rAF=a,this.$mdDateLocale=s,this.today=this.dateUtil.createDateAtMidnight(),this.ngModelCtrl=null,this.SELECTED_DATE_CLASS="md-calendar-selected-date",this.TODAY_CLASS="md-calendar-date-today",this.FOCUSED_DATE_CLASS="md-focus",this.id=m++,this.displayDate=null,this.selectedDate=null,this.firstRenderableDate=null,this.lastRenderableDate=null,this.isInitialized=!1,this.width=0,this.scrollbarWidth=0,d.tabindex||e.attr("tabindex","-1");var l,c=ce.bind(this,this.handleKeyEvent);(l=e.parent().hasClass("md-datepicker-calendar")?ce.element(document.body):e).on("keydown",c),t.$on("$destroy",function(){l.off("keydown",c)}),1===ce.version.major&&ce.version.minor<=4&&this.$onInit()}e.prototype.$onInit=function(){this._mode&&t.hasOwnProperty(this._mode)?(this.currentView=t[this._mode],this.mode=this._mode):(this.currentView=this._currentView||"month",this.mode=null);var e=this.$mdDateLocale;this.minDate&&this.minDate>e.firstRenderableDate?this.firstRenderableDate=this.minDate:this.firstRenderableDate=e.firstRenderableDate,this.maxDate&&this.maxDate<e.lastRenderableDate?this.lastRenderableDate=this.maxDate:this.lastRenderableDate=e.lastRenderableDate},e.prototype.configureNgModel=function(e){var t=this;t.ngModelCtrl=e,t.$mdUtil.nextTick(function(){t.isInitialized=!0}),e.$render=function(){var e=this.$viewValue;t.$scope.$broadcast("md-calendar-parent-changed",e),t.selectedDate||(t.selectedDate=e),t.displayDate||(t.displayDate=t.selectedDate||t.today)}},e.prototype.setNgModelValue=function(e){var t=this.dateUtil.createDateAtMidnight(e);return this.focus(t),this.$scope.$emit("md-calendar-change",t),this.ngModelCtrl.$setViewValue(t),this.ngModelCtrl.$render(),t},e.prototype.setCurrentView=function(e,t){var n=this;n.$mdUtil.nextTick(function(){n.currentView=e,t&&(n.displayDate=ce.isDate(t)?t:new Date(t))})},e.prototype.focus=function(e){if(this.dateUtil.isValidDate(e)){var t=this.$element[0].querySelector("."+this.FOCUSED_DATE_CLASS);t&&t.classList.remove(this.FOCUSED_DATE_CLASS);var n=this.getDateId(e,this.currentView),o=document.getElementById(n);o&&(o.classList.add(this.FOCUSED_DATE_CLASS),o.focus(),this.displayDate=e)}else{var i=this.$element[0].querySelector("[ng-switch]");i&&i.focus()}},e.prototype.changeSelectedDate=function(e){var t=this.SELECTED_DATE_CLASS,n=this.$element[0].querySelector("."+t);if(n&&(n.classList.remove(t),n.setAttribute("aria-selected","false")),e){var o=document.getElementById(this.getDateId(e,this.currentView));o&&(o.classList.add(t),o.setAttribute("aria-selected","true"))}this.selectedDate=e},e.prototype.getActionFromKeyEvent=function(e){var t=this.keyCode;switch(e.which){case t.ENTER:return"select";case t.RIGHT_ARROW:return"move-right";case t.LEFT_ARROW:return"move-left";case t.DOWN_ARROW:return e.metaKey?"move-page-down":"move-row-down";case t.UP_ARROW:return e.metaKey?"move-page-up":"move-row-up";case t.PAGE_DOWN:return"move-page-down";case t.PAGE_UP:return"move-page-up";case t.HOME:return"start";case t.END:return"end";default:return null}},e.prototype.handleKeyEvent=function(t){var n=this;this.$scope.$apply(function(){if(t.which==n.keyCode.ESCAPE||t.which==n.keyCode.TAB)return n.$scope.$emit("md-calendar-close"),void(t.which==n.keyCode.TAB&&t.preventDefault());var e=n.getActionFromKeyEvent(t);e&&(t.preventDefault(),t.stopPropagation(),n.$scope.$broadcast("md-calendar-parent-action",e))})},e.prototype.hideVerticalScrollbar=function(o){var i=this,t=o.$element[0],r=t.querySelector(".md-calendar-scroll-mask");function n(){var e=i.width||340,t=i.scrollbarWidth,n=o.calendarScroller;r.style.width=e+"px",n.style.width=e+t+"px",n.style.paddingRight=t+"px"}0<i.width?n():i.$$rAF(function(){var e=o.calendarScroller;i.scrollbarWidth=e.offsetWidth-e.clientWidth,i.width=t.querySelector("table").offsetWidth,n()})},e.prototype.getDateId=function(e,t){if(!t)throw new Error("A namespace for the date id has to be specified.");return["md",this.id,t,e.getFullYear(),e.getMonth(),e.getDate()].join("-")},e.prototype.updateVirtualRepeat=function(){var e=this.$scope,t=e.$on("$md-resize-enable",function(){e.$$phase||e.$apply(),t()})}}(),function(){t.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdDateLocale"],ce.module("material.components.datepicker").directive("mdCalendarMonth",function(){return{template:'<table aria-hidden="true" class="md-calendar-day-header"><thead></thead></table><div class="md-calendar-scroll-mask"><md-virtual-repeat-container class="md-calendar-scroll-container" md-offset-size="'+(e-n)+'"><table role="grid" tabindex="0" class="md-calendar" aria-readonly="true"><tbody md-calendar-month-body role="rowgroup" md-virtual-repeat="i in monthCtrl.items" md-month-offset="$index" class="md-calendar-month" md-start-index="monthCtrl.getSelectedMonthIndex()" md-item-size="'+n+'"><tr aria-hidden="true" md-force-height="\''+n+"px'\"></tr></tbody></table></md-virtual-repeat-container></div>",require:["^^mdCalendar","mdCalendarMonth"],controller:t,controllerAs:"monthCtrl",bindToController:!0,link:function(e,t,n,o){var i=o[0],r=o[1];r.initialize(i)}}});var n=265,e=45;function t(e,t,n,o,i,r){this.$element=e,this.$scope=t,this.$animate=n,this.$q=o,this.dateUtil=i,this.dateLocale=r,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1;var a=this;this.cellClickHandler=function(){var e=i.getTimestampFromNode(this);a.$scope.$apply(function(){a.calendarCtrl.setNgModelValue(e)})},this.headerClickHandler=function(){a.calendarCtrl.setCurrentView("year",i.getTimestampFromNode(this))}}t.prototype.initialize=function(e){this.items={length:this.dateUtil.getMonthDistance(e.firstRenderableDate,e.lastRenderableDate)+2},this.calendarCtrl=e,this.attachScopeListeners(),e.updateVirtualRepeat(),e.ngModelCtrl&&e.ngModelCtrl.$render()},t.prototype.getSelectedMonthIndex=function(){var e=this.calendarCtrl;return this.dateUtil.getMonthDistance(e.firstRenderableDate,e.displayDate||e.selectedDate||e.today)},t.prototype.changeDisplayDate=function(e){if(!this.isInitialized)return this.buildWeekHeader(),this.calendarCtrl.hideVerticalScrollbar(this),this.isInitialized=!0,this.$q.when();if(!this.dateUtil.isValidDate(e)||this.isMonthTransitionInProgress)return this.$q.when();this.isMonthTransitionInProgress=!0;var t=this.animateDateChange(e);this.calendarCtrl.displayDate=e;var n=this;return t.then(function(){n.isMonthTransitionInProgress=!1}),t},t.prototype.animateDateChange=function(e){if(this.dateUtil.isValidDate(e)){var t=this.dateUtil.getMonthDistance(this.calendarCtrl.firstRenderableDate,e);this.calendarScroller.scrollTop=t*n}return this.$q.when()},t.prototype.buildWeekHeader=function(){for(var e=this.dateLocale.firstDayOfWeek,t=this.dateLocale.shortDays,n=document.createElement("tr"),o=0;o<7;o++){var i=document.createElement("th");i.textContent=t[(o+e)%7],n.appendChild(i)}this.$element.find("thead").append(n)},t.prototype.attachScopeListeners=function(){var n=this;n.$scope.$on("md-calendar-parent-changed",function(e,t){n.calendarCtrl.changeSelectedDate(t),n.changeDisplayDate(t)}),n.$scope.$on("md-calendar-parent-action",ce.bind(this,this.handleKeyEvent))},t.prototype.handleKeyEvent=function(e,t){var n=this.calendarCtrl,o=n.displayDate;if("select"===t)n.setNgModelValue(o);else{var i=null,r=this.dateUtil;switch(t){case"move-right":i=r.incrementDays(o,1);break;case"move-left":i=r.incrementDays(o,-1);break;case"move-page-down":i=r.incrementMonths(o,1);break;case"move-page-up":i=r.incrementMonths(o,-1);break;case"move-row-down":i=r.incrementDays(o,7);break;case"move-row-up":i=r.incrementDays(o,-7);break;case"start":i=r.getFirstDateOfMonth(o);break;case"end":i=r.getLastDateOfMonth(o)}i&&(i=this.dateUtil.clampDate(i,n.minDate,n.maxDate),this.changeDisplayDate(i).then(function(){n.focus(i)}))}}}(),function(){function e(e,t){var d=e('<md-icon md-svg-src="'+t.mdTabsArrow+'"></md-icon>')({})[0];return{require:["^^mdCalendar","^^mdCalendarMonth","mdCalendarMonthBody"],scope:{offset:"=mdMonthOffset"},controller:n,controllerAs:"mdMonthBodyCtrl",bindToController:!0,link:function(e,t,n,o){var i=o[0],r=o[1],a=o[2];a.calendarCtrl=i,a.monthCtrl=r,a.arrowIcon=d.cloneNode(!0),e.$watch(function(){return a.offset},function(e){ce.isNumber(e)&&a.generateContent()})}}}function n(e,t,n){this.$element=e,this.dateUtil=t,this.dateLocale=n,this.monthCtrl=null,this.calendarCtrl=null,this.offset=null,this.focusAfterAppend=null}e.$inject=["$compile","$$mdSvgRegistry"],n.$inject=["$element","$$mdDateUtil","$mdDateLocale"],ce.module("material.components.datepicker").directive("mdCalendarMonthBody",e),n.prototype.generateContent=function(){var e=this.dateUtil.incrementMonths(this.calendarCtrl.firstRenderableDate,this.offset);this.$element.empty().append(this.buildCalendarForMonth(e)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(this.calendarCtrl.FOCUSED_DATE_CLASS),this.focusAfterAppend.focus(),this.focusAfterAppend=null)},n.prototype.buildDateCell=function(e){var t=this.monthCtrl,n=this.calendarCtrl,o=document.createElement("td");if(o.tabIndex=-1,o.classList.add("md-calendar-date"),o.setAttribute("role","gridcell"),e){o.setAttribute("tabindex","-1"),o.setAttribute("aria-label",this.dateLocale.longDateFormatter(e)),o.id=n.getDateId(e,"month"),o.setAttribute("data-timestamp",e.getTime()),this.dateUtil.isSameDay(e,n.today)&&o.classList.add(n.TODAY_CLASS),this.dateUtil.isValidDate(n.selectedDate)&&this.dateUtil.isSameDay(e,n.selectedDate)&&(o.classList.add(n.SELECTED_DATE_CLASS),o.setAttribute("aria-selected","true"));var i=this.dateLocale.dates[e.getDate()];if(this.isDateEnabled(e)){var r=document.createElement("span");r.classList.add("md-calendar-date-selection-indicator"),r.textContent=i,o.appendChild(r),o.addEventListener("click",t.cellClickHandler),n.displayDate&&this.dateUtil.isSameDay(e,n.displayDate)&&(this.focusAfterAppend=o)}else o.classList.add("md-calendar-date-disabled"),o.textContent=i}return o},n.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.calendarCtrl.minDate,this.calendarCtrl.maxDate)&&(!ce.isFunction(this.calendarCtrl.dateFilter)||this.calendarCtrl.dateFilter(e))},n.prototype.buildDateRow=function(e){var t=document.createElement("tr");return t.setAttribute("role","row"),t.setAttribute("aria-label",this.dateLocale.weekNumberFormatter(e)),t},n.prototype.buildCalendarForMonth=function(e){var t=this.dateUtil.isValidDate(e)?e:new Date,n=this.dateUtil.getFirstDateOfMonth(t),o=this.getLocaleDay_(n),i=this.dateUtil.getNumberOfDaysInMonth(t),r=document.createDocumentFragment(),a=1,d=this.buildDateRow(a);r.appendChild(d);var s=this.offset===this.monthCtrl.items.length-1,l=0,c=document.createElement("td"),m=document.createElement("span"),u=this.calendarCtrl;if(m.textContent=this.dateLocale.monthHeaderFormatter(t),c.appendChild(m),c.classList.add("md-calendar-month-label"),u.maxDate&&n>u.maxDate?c.classList.add("md-calendar-month-label-disabled"):u.mode||(c.addEventListener("click",this.monthCtrl.headerClickHandler),c.setAttribute("data-timestamp",n.getTime()),c.setAttribute("aria-label",this.dateLocale.monthFormatter(t)),c.classList.add("md-calendar-label-clickable"),c.appendChild(this.arrowIcon.cloneNode(!0))),o<=2){c.setAttribute("colspan","7");var p=this.buildDateRow();if(p.appendChild(c),r.insertBefore(p,d),s)return r}else l=3,c.setAttribute("colspan","3"),d.appendChild(c);for(var h=l;h<o;h++)d.appendChild(this.buildDateCell());for(var f=o,g=n,b=1;b<=i;b++){if(7===f){if(s)return r;f=0,a++,d=this.buildDateRow(a),r.appendChild(d)}g.setDate(b);var v=this.buildDateCell(g);d.appendChild(v),f++}for(;d.childNodes.length<7;)d.appendChild(this.buildDateCell());for(;r.childNodes.length<6;){for(var E=this.buildDateRow(),$=0;$<7;$++)E.appendChild(this.buildDateCell());r.appendChild(E)}return r},n.prototype.getLocaleDay_=function(e){return(e.getDay()+(7-this.dateLocale.firstDayOfWeek))%7}}(),function(){e.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdUtil"],ce.module("material.components.datepicker").directive("mdCalendarYear",function(){return{template:'<div class="md-calendar-scroll-mask"><md-virtual-repeat-container class="md-calendar-scroll-container"><table role="grid" tabindex="0" class="md-calendar" aria-readonly="true"><tbody md-calendar-year-body role="rowgroup" md-virtual-repeat="i in yearCtrl.items" md-year-offset="$index" class="md-calendar-year" md-start-index="yearCtrl.getFocusedYearIndex()" md-item-size="'+n+'"><tr aria-hidden="true" md-force-height="\''+n+"px'\"></tr></tbody></table></md-virtual-repeat-container></div>",require:["^^mdCalendar","mdCalendarYear"],controller:e,controllerAs:"yearCtrl",bindToController:!0,link:function(e,t,n,o){var i=o[0],r=o[1];r.initialize(i)}}});var n=88;function e(e,t,n,o,i,r){this.$element=e,this.$scope=t,this.$animate=n,this.$q=o,this.dateUtil=i,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1,this.$mdUtil=r;var a=this;this.cellClickHandler=function(){a.onTimestampSelected(i.getTimestampFromNode(this))}}e.prototype.initialize=function(e){this.items={length:this.dateUtil.getYearDistance(e.firstRenderableDate,e.lastRenderableDate)+1},this.calendarCtrl=e,this.attachScopeListeners(),e.updateVirtualRepeat(),e.ngModelCtrl&&e.ngModelCtrl.$render()},e.prototype.getFocusedYearIndex=function(){var e=this.calendarCtrl;return this.dateUtil.getYearDistance(e.firstRenderableDate,e.displayDate||e.selectedDate||e.today)},e.prototype.changeDate=function(e){if(!this.isInitialized)return this.calendarCtrl.hideVerticalScrollbar(this),this.isInitialized=!0,this.$q.when();if(this.dateUtil.isValidDate(e)&&!this.isMonthTransitionInProgress){var t=this,n=this.animateDateChange(e);return t.isMonthTransitionInProgress=!0,t.calendarCtrl.displayDate=e,n.then(function(){t.isMonthTransitionInProgress=!1})}},e.prototype.animateDateChange=function(e){if(this.dateUtil.isValidDate(e)){var t=this.dateUtil.getYearDistance(this.calendarCtrl.firstRenderableDate,e);this.calendarScroller.scrollTop=t*n}return this.$q.when()},e.prototype.handleKeyEvent=function(e,t){var n=this,o=n.calendarCtrl,i=o.displayDate;if("select"===t)n.changeDate(i).then(function(){n.onTimestampSelected(i)});else{var r=null,a=n.dateUtil;switch(t){case"move-right":r=a.incrementMonths(i,1);break;case"move-left":r=a.incrementMonths(i,-1);break;case"move-row-down":r=a.incrementMonths(i,6);break;case"move-row-up":r=a.incrementMonths(i,-6)}if(r){var d=o.minDate?a.getFirstDateOfMonth(o.minDate):null,s=o.maxDate?a.getFirstDateOfMonth(o.maxDate):null;r=a.getFirstDateOfMonth(n.dateUtil.clampDate(r,d,s)),n.changeDate(r).then(function(){o.focus(r)})}}},e.prototype.attachScopeListeners=function(){var n=this;n.$scope.$on("md-calendar-parent-changed",function(e,t){n.calendarCtrl.changeSelectedDate(t?n.dateUtil.getFirstDateOfMonth(t):t),n.changeDate(t)}),n.$scope.$on("md-calendar-parent-action",ce.bind(n,n.handleKeyEvent))},e.prototype.onTimestampSelected=function(e){var t=this.calendarCtrl;t.mode?this.$mdUtil.nextTick(function(){t.setNgModelValue(e)}):t.setCurrentView("month",e)}}(),function(){function e(e,t,n){this.$element=e,this.dateUtil=t,this.dateLocale=n,this.calendarCtrl=null,this.yearCtrl=null,this.offset=null,this.focusAfterAppend=null}e.$inject=["$element","$$mdDateUtil","$mdDateLocale"],ce.module("material.components.datepicker").directive("mdCalendarYearBody",function(){return{require:["^^mdCalendar","^^mdCalendarYear","mdCalendarYearBody"],scope:{offset:"=mdYearOffset"},controller:e,controllerAs:"mdYearBodyCtrl",bindToController:!0,link:function(e,t,n,o){var i=o[0],r=o[1],a=o[2];a.calendarCtrl=i,a.yearCtrl=r,e.$watch(function(){return a.offset},function(e){ce.isNumber(e)&&a.generateContent()})}}}),e.prototype.generateContent=function(){var e=this.dateUtil.incrementYears(this.calendarCtrl.firstRenderableDate,this.offset);this.$element.empty().append(this.buildCalendarForYear(e)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(this.calendarCtrl.FOCUSED_DATE_CLASS),this.focusAfterAppend.focus(),this.focusAfterAppend=null)},e.prototype.buildMonthCell=function(e,t){var n=this.calendarCtrl,o=this.yearCtrl,i=this.buildBlankCell(),r=new Date(e,t,1);i.setAttribute("aria-label",this.dateLocale.monthFormatter(r)),i.id=n.getDateId(r,"year"),i.setAttribute("data-timestamp",String(r.getTime())),this.dateUtil.isSameMonthAndYear(r,n.today)&&i.classList.add(n.TODAY_CLASS),this.dateUtil.isValidDate(n.selectedDate)&&this.dateUtil.isSameMonthAndYear(r,n.selectedDate)&&(i.classList.add(n.SELECTED_DATE_CLASS),i.setAttribute("aria-selected","true"));var a=this.dateLocale.shortMonths[t];if(!this.dateUtil.isMonthWithinRange(r,n.minDate,n.maxDate)||ce.isFunction(this.calendarCtrl.dateFilter)&&!this.calendarCtrl.dateFilter(r))i.classList.add("md-calendar-date-disabled"),i.textContent=a;else{var d=document.createElement("span");d.classList.add("md-calendar-date-selection-indicator"),d.textContent=a,i.appendChild(d),i.addEventListener("click",o.cellClickHandler),n.displayDate&&this.dateUtil.isSameMonthAndYear(r,n.displayDate)&&(this.focusAfterAppend=i)}return i},e.prototype.buildBlankCell=function(){var e=document.createElement("td");return e.tabIndex=-1,e.classList.add("md-calendar-date"),e.setAttribute("role","gridcell"),e.setAttribute("tabindex","-1"),e},e.prototype.buildCalendarForYear=function(e){var t,n=e.getFullYear(),o=document.createDocumentFragment(),i=document.createElement("tr"),r=document.createElement("td");for(r.className="md-calendar-month-label",r.textContent=n,i.appendChild(r),t=0;t<6;t++)i.appendChild(this.buildMonthCell(n,t));o.appendChild(i);var a=document.createElement("tr");for(a.appendChild(this.buildBlankCell()),t=6;t<12;t++)a.appendChild(this.buildMonthCell(n,t));return o.appendChild(a),o}}(),ce.module("material.components.datepicker").config(["$provide",function(e){function t(){this.months=null,this.shortMonths=null,this.days=null,this.shortDays=null,this.dates=null,this.firstDayOfWeek=0,this.formatDate=null,this.parseDate=null,this.monthHeaderFormatter=null,this.weekNumberFormatter=null,this.longDateFormatter=null,this.isDateComplete=null,this.msgCalendar="",this.msgOpenCalendar=""}(t.prototype.$get=function(e,i){for(var t=e.DATETIME_FORMATS.SHORTDAY.map(function(e){return e.substring(0,1)}),n=Array(32),o=1;o<=31;o++)n[o]=o;var r=new Date(1880,0,1),a=new Date(r.getFullYear()+250,0,1),d={months:this.months||e.DATETIME_FORMATS.MONTH,shortMonths:this.shortMonths||e.DATETIME_FORMATS.SHORTMONTH,days:this.days||e.DATETIME_FORMATS.DAY,shortDays:this.shortDays||t,dates:this.dates||n,firstDayOfWeek:this.firstDayOfWeek||0,formatDate:this.formatDate||function(e,t){if(!e)return"";var n=e.toLocaleTimeString(),o=e;return 0!==e.getHours()||-1===n.indexOf("11:")&&-1===n.indexOf("23:")||(o=new Date(e.getFullYear(),e.getMonth(),e.getDate(),1,0,0)),i("date")(o,"M/d/yyyy",t)},parseDate:this.parseDate||function(e){return new Date(e)},isDateComplete:this.isDateComplete||function(e){return e=e.trim(),/^(([a-zA-Z]{3,}|[0-9]{1,4})([ .,]+|[/-])){2}([a-zA-Z]{3,}|[0-9]{1,4})$/.test(e)},monthHeaderFormatter:this.monthHeaderFormatter||function(e){return d.shortMonths[e.getMonth()]+" "+e.getFullYear()},monthFormatter:this.monthFormatter||function(e){return d.months[e.getMonth()]+" "+e.getFullYear()},weekNumberFormatter:this.weekNumberFormatter||function(e){return"Week "+e},longDateFormatter:this.longDateFormatter||function(e){return[d.days[e.getDay()],d.months[e.getMonth()],d.dates[e.getDate()],e.getFullYear()].join(" ")},msgCalendar:this.msgCalendar||"Calendar",msgOpenCalendar:this.msgOpenCalendar||"Open calendar",firstRenderableDate:this.firstRenderableDate||r,lastRenderableDate:this.lastRenderableDate||a};return d}).$inject=["$locale","$filter"],e.provider("$mdDateLocale",new t)}]),ce.module("material.components.datepicker").factory("$$mdDateUtil",function(){return{getFirstDateOfMonth:n,getNumberOfDaysInMonth:i,getDateInNextMonth:o,getDateInPreviousMonth:r,isInNextMonth:function(e,t){return a(o(e),t)},isInPreviousMonth:function(e,t){var n=r(e);return a(t,n)},getDateMidpoint:function(e,t){return c((e.getTime()+t.getTime())/2)},isSameMonthAndYear:a,getWeekOfMonth:function(e){var t=n(e);return Math.floor((t.getDay()+e.getDate()-1)/7)},incrementDays:function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)},incrementMonths:d,getLastDateOfMonth:function(e){return new Date(e.getFullYear(),e.getMonth(),i(e))},isSameDay:function(e,t){return e.getDate()==t.getDate()&&a(e,t)},getMonthDistance:function(e,t){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())},isValidDate:s,setDateTimeToMidnight:l,createDateAtMidnight:c,isDateWithinRange:function(e,t,n){var o=c(e),i=s(t)?c(t):null,r=s(n)?c(n):null;return(!i||i<=o)&&(!r||o<=r)},incrementYears:function(e,t){return d(e,12*t)},getYearDistance:function(e,t){return t.getFullYear()-e.getFullYear()},clampDate:function(e,t,n){var o=e;return t&&e<t&&(o=new Date(t.getTime())),n&&n<e&&(o=new Date(n.getTime())),o},getTimestampFromNode:function(e){if(e&&e.hasAttribute("data-timestamp"))return Number(e.getAttribute("data-timestamp"))},isMonthWithinRange:function(e,t,n){var o=e.getMonth(),i=e.getFullYear();return(!t||t.getFullYear()<i||t.getMonth()<=o)&&(!n||n.getFullYear()>i||n.getMonth()>=o)}};function n(e){return new Date(e.getFullYear(),e.getMonth(),1)}function i(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function o(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function r(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function a(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function d(e,t){var n=new Date(e.getFullYear(),e.getMonth()+t,1),o=i(n);return o<e.getDate()?n.setDate(o):n.setDate(e.getDate()),n}function s(e){return e&&e.getTime&&!isNaN(e.getTime())}function l(e){s(e)&&e.setHours(0,0,0,0)}function c(e){var t;return l(t=ce.isUndefined(e)?new Date:new Date(e)),t}}),function(){function e(a,m,u,p){return{template:function(e,t){var n=t.mdHideIcons,o=t.ariaLabel||t.mdPlaceholder,i="all"===n||"calendar"===n?"":'<md-button class="md-datepicker-button md-icon-button" type="button" tabindex="-1" aria-hidden="true" ng-click="ctrl.openCalendarPane($event)"><md-icon class="md-datepicker-calendar-icon" aria-label="md-calendar" md-svg-src="'+a.mdCalendar+'"></md-icon></md-button>',r="";return"all"!==n&&"triangle"!==n&&(r='<md-button type="button" md-no-ink class="md-datepicker-triangle-button md-icon-button" ng-click="ctrl.openCalendarPane($event)" aria-label="{{::ctrl.locale.msgOpenCalendar}}"><div class="md-datepicker-expand-triangle"></div></md-button>',e.addClass(d)),i+'<div class="md-datepicker-input-container" ng-class="{\'md-datepicker-focused\': ctrl.isFocused}"><input '+(o?'aria-label="'+o+'" ':"")+'class="md-datepicker-input" aria-haspopup="true" aria-expanded="{{ctrl.isCalendarOpen}}" ng-focus="ctrl.setFocused(true)" ng-blur="ctrl.setFocused(false)"> '+r+'</div><div class="md-datepicker-calendar-pane md-whiteframe-z1" id="{{::ctrl.calendarPaneId}}"><div class="md-datepicker-input-mask"><div class="md-datepicker-input-mask-opaque"></div></div><div class="md-datepicker-calendar"><md-calendar role="dialog" aria-label="{{::ctrl.locale.msgCalendar}}" md-current-view="{{::ctrl.currentView}}" md-mode="{{::ctrl.mode}}" md-min-date="ctrl.minDate" md-max-date="ctrl.maxDate" md-date-filter="ctrl.dateFilter" ng-model="ctrl.date" ng-if="ctrl.isCalendarOpen"></md-calendar></div></div>'},require:["ngModel","mdDatepicker","?^mdInputContainer","?^form"],scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",placeholder:"@mdPlaceholder",currentView:"@mdCurrentView",mode:"@mdMode",dateFilter:"=mdDateFilter",isOpen:"=?mdIsOpen",debounceInterval:"=mdDebounceInterval",dateLocale:"=mdDateLocale"},controller:t,controllerAs:"ctrl",bindToController:!0,link:function(e,t,n,o){var i=o[0],r=o[1],a=o[2],d=o[3],s=m.parseAttributeBoolean(n.mdNoAsterisk);if(r.configureNgModel(i,a,p),a){var l=t[0].querySelector(".md-errors-spacer");l&&t.after(ce.element("<div>").append(l)),a.setHasPlaceholder(n.mdPlaceholder),a.input=t,a.element.addClass(h).toggleClass(f,"calendar"!==n.mdHideIcons&&"all"!==n.mdHideIcons),a.label?s||n.$observe("required",function(e){a.label.toggleClass("md-required",!!e)}):u.expect(t,"aria-label",n.mdPlaceholder),e.$watch(a.isErrorGetter||function(){return i.$invalid&&(i.$touched||d&&d.$submitted)},a.setInvalid)}else if(d)var c=e.$watch(function(){return d.$submitted},function(e){e&&(r.updateErrorState(),c())})}}}t.$inject=["$scope","$element","$attrs","$window","$mdConstant","$mdTheming","$mdUtil","$mdDateLocale","$$mdDateUtil","$$rAF","$filter","$timeout"],e.$inject=["$$mdSvgRegistry","$mdUtil","$mdAria","inputDirective"],ce.module("material.components.datepicker").directive("mdDatepicker",e);var a="md-datepicker-invalid",m="md-datepicker-open",h="_md-datepicker-floating-label",f="_md-datepicker-has-calendar-icon",d="_md-datepicker-has-triangle-icon",p=/ipad|iphone|ipod|android/i;function t(e,t,n,o,i,r,a,d,s,l,c,m){this.$window=o,this.dateUtil=s,this.$mdConstant=i,this.$mdUtil=a,this.$$rAF=l,this.$mdDateLocale=d,this.$timeout=m,this.documentElement=ce.element(document.documentElement),this.ngModelCtrl=null,this.inputElement=t[0].querySelector("input"),this.ngInputElement=ce.element(this.inputElement),this.inputContainer=t[0].querySelector(".md-datepicker-input-container"),this.calendarPane=t[0].querySelector(".md-datepicker-calendar-pane"),this.calendarButton=t[0].querySelector(".md-datepicker-button"),this.inputMask=ce.element(t[0].querySelector(".md-datepicker-input-mask-opaque")),this.$element=t,this.$attrs=n,this.$scope=e,this.date=null,this.isFocused=!1,this.isDisabled,this.setDisabled(t[0].disabled||ce.isString(n.disabled)),this.isCalendarOpen=!1,this.openOnFocus=n.hasOwnProperty("mdOpenOnFocus"),this.mdInputContainer=null,this.calendarPaneOpenedFrom=null,this.calendarPaneId="md-date-pane-"+a.nextUid(),this.bodyClickHandler=ce.bind(this,this.handleBodyClick),this.windowEventName=p.test(navigator.userAgent||navigator.vendor||B.opera)?"orientationchange":"resize",this.windowEventHandler=a.debounce(ce.bind(this,this.closeCalendarPane),100),this.windowBlurHandler=ce.bind(this,this.handleWindowBlur),this.ngDateFilter=c("date"),this.leftMargin=20,this.topMargin=null,n.tabindex?(this.ngInputElement.attr("tabindex",n.tabindex),n.$set("tabindex",null)):n.$set("tabindex","-1"),n.$set("aria-owns",this.calendarPaneId),r(t),r(ce.element(this.calendarPane));var u=this;e.$on("$destroy",function(){u.detachCalendarPane()}),n.mdIsOpen&&e.$watch("ctrl.isOpen",function(e){e?u.openCalendarPane({target:u.inputElement}):u.closeCalendarPane()}),1===ce.version.major&&ce.version.minor<=4&&this.$onInit()}t.prototype.$onInit=function(){this.locale=this.dateLocale?ce.extend({},this.$mdDateLocale,this.dateLocale):this.$mdDateLocale,this.installPropertyInterceptors(),this.attachChangeListeners(),this.attachInteractionListeners()},t.prototype.configureNgModel=function(e,t,n){this.ngModelCtrl=e,this.mdInputContainer=t,this.$attrs.$set("type","date"),n[0].link.pre(this.$scope,{on:ce.noop,val:ce.noop,0:{}},this.$attrs,[e]);var o=this;o.ngModelCtrl.$formatters.push(function(e){var t=ce.isDefined(e)?e:null;if(!(e instanceof Date)&&(t=Date.parse(e),!isNaN(t)&&ce.isNumber(t)&&(e=new Date(t)),e&&!(e instanceof Date)))throw Error("The ng-model for md-datepicker must be a Date instance or a value that can be parsed into a date. Currently the model is of type: "+typeof e);return o.onExternalChange(e),e}),e.$viewChangeListeners.unshift(ce.bind(this,this.updateErrorState));var i=o.$mdUtil.getModelOption(e,"updateOn");i&&this.ngInputElement.on(i,ce.bind(this.$element,this.$element.triggerHandler,i))},t.prototype.attachChangeListeners=function(){var n=this;n.$scope.$on("md-calendar-change",function(e,t){n.setModelValue(t),n.onExternalChange(t),n.closeCalendarPane()}),n.ngInputElement.on("input",ce.bind(n,n.resizeInputElement));var e=ce.isDefined(this.debounceInterval)?this.debounceInterval:500;n.ngInputElement.on("input",n.$mdUtil.debounce(n.handleInputEvent,e,n))},t.prototype.attachInteractionListeners=function(){var t=this,n=this.$scope,o=this.$mdConstant.KEY_CODE;t.ngInputElement.on("keydown",function(e){e.altKey&&e.keyCode===o.DOWN_ARROW&&(t.openCalendarPane(e),n.$digest())}),t.openOnFocus&&(t.ngInputElement.on("focus",ce.bind(t,t.openCalendarPane)),t.ngInputElement.on("click",function(e){e.stopPropagation()}),t.ngInputElement.on("pointerdown",function(e){e.target&&e.target.setPointerCapture&&e.target.setPointerCapture(e.pointerId)}),ce.element(t.$window).on("blur",t.windowBlurHandler),n.$on("$destroy",function(){ce.element(t.$window).off("blur",t.windowBlurHandler)})),n.$on("md-calendar-close",function(){t.closeCalendarPane()})},t.prototype.installPropertyInterceptors=function(){var t=this;if(this.$attrs.ngDisabled){var e=this.$scope.$parent;e&&e.$watch(this.$attrs.ngDisabled,function(e){t.setDisabled(e)})}Object.defineProperty(this,"placeholder",{get:function(){return t.inputElement.placeholder},set:function(e){t.inputElement.placeholder=e||""}})},t.prototype.setDisabled=function(e){this.isDisabled=e,this.inputElement.disabled=e,this.calendarButton&&(this.calendarButton.disabled=e)},t.prototype.updateErrorState=function(e){var t=e||this.date;if(this.clearErrorState(),this.dateUtil.isValidDate(t)){if(t=this.dateUtil.createDateAtMidnight(t),this.dateUtil.isValidDate(this.minDate)){var n=this.dateUtil.createDateAtMidnight(this.minDate);this.ngModelCtrl.$setValidity("mindate",n<=t)}if(this.dateUtil.isValidDate(this.maxDate)){var o=this.dateUtil.createDateAtMidnight(this.maxDate);this.ngModelCtrl.$setValidity("maxdate",t<=o)}ce.isFunction(this.dateFilter)&&this.ngModelCtrl.$setValidity("filtered",this.dateFilter(t))}else this.ngModelCtrl.$setValidity("valid",null==t);var i=this.inputElement.value,r=this.locale.parseDate(i);!this.isInputValid(i,r)&&this.ngModelCtrl.$valid&&this.ngModelCtrl.$setValidity("valid",null==t),ce.element(this.inputContainer).toggleClass(a,!this.ngModelCtrl.$valid)},t.prototype.isInputValid=function(e,t){return""===e||this.dateUtil.isValidDate(t)&&this.locale.isDateComplete(e)&&this.isDateEnabled(t)},t.prototype.clearErrorState=function(){this.inputContainer.classList.remove(a),["mindate","maxdate","filtered","valid"].forEach(function(e){this.ngModelCtrl.$setValidity(e,!0)},this)},t.prototype.resizeInputElement=function(){this.inputElement.size=this.inputElement.value.length+3},t.prototype.handleInputEvent=function(){var e=this.inputElement.value,t=e?this.locale.parseDate(e):null;this.dateUtil.setDateTimeToMidnight(t),this.isInputValid(e,t)&&(this.setModelValue(t),this.date=t),this.updateErrorState(t)},t.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.minDate,this.maxDate)&&(!ce.isFunction(this.dateFilter)||this.dateFilter(e))},t.prototype.attachCalendarPane=function(){var e=this.calendarPane,t=document.body;e.style.transform="",this.$element.addClass(m),this.mdInputContainer&&this.mdInputContainer.element.addClass(m),ce.element(t).addClass("md-datepicker-is-showing");var n=this.inputContainer.getBoundingClientRect(),o=t.getBoundingClientRect();(!this.topMargin||this.topMargin<0)&&(this.topMargin=(this.inputMask.parent().prop("clientHeight")-this.ngInputElement.prop("clientHeight"))/2);var i=n.top-o.top-this.topMargin,r=n.left-o.left-this.leftMargin,a=o.top<0&&0==document.body.scrollTop?-o.top:document.body.scrollTop,d=o.left<0&&0==document.body.scrollLeft?-o.left:document.body.scrollLeft,s=a+this.$window.innerHeight,l=d+this.$window.innerWidth;if(this.inputMask.css({position:"absolute",left:this.leftMargin+"px",top:this.topMargin+"px",width:n.width-1+"px",height:n.height-2+"px"}),l<r+360){if(0<l-360)r=l-360;else{r=d;var c=this.$window.innerWidth/360;e.style.transform="scale("+c+")"}e.classList.add("md-datepicker-pos-adjusted")}s<i+368&&a<s-368&&(i=s-368,e.classList.add("md-datepicker-pos-adjusted")),e.style.left=r+"px",e.style.top=i+"px",document.body.appendChild(e),this.$$rAF(function(){e.classList.add("md-pane-open")})},t.prototype.detachCalendarPane=function(){this.$element.removeClass(m),this.mdInputContainer&&this.mdInputContainer.element.removeClass(m),ce.element(document.body).removeClass("md-datepicker-is-showing"),this.calendarPane.classList.remove("md-pane-open"),this.calendarPane.classList.remove("md-datepicker-pos-adjusted"),this.isCalendarOpen&&this.$mdUtil.enableScrolling(),this.calendarPane.parentNode&&this.calendarPane.parentNode.removeChild(this.calendarPane)},t.prototype.openCalendarPane=function(e){if(!this.isCalendarOpen&&!this.isDisabled&&!this.inputFocusedOnWindowBlur){this.isCalendarOpen=this.isOpen=!0,this.calendarPaneOpenedFrom=e.target,this.$mdUtil.disableScrollAround(this.calendarPane),this.attachCalendarPane(),this.focusCalendar(),this.evalAttr("ngFocus");var t=this;this.$mdUtil.nextTick(function(){t.documentElement.on("click touchstart",t.bodyClickHandler)},!1),B.addEventListener(this.windowEventName,this.windowEventHandler)}},t.prototype.closeCalendarPane=function(){if(this.isCalendarOpen){var e=this;e.detachCalendarPane(),e.ngModelCtrl.$setTouched(),e.evalAttr("ngBlur"),e.documentElement.off("click touchstart",e.bodyClickHandler),B.removeEventListener(e.windowEventName,e.windowEventHandler),e.calendarPaneOpenedFrom.focus(),e.calendarPaneOpenedFrom=null,e.openOnFocus?e.$timeout(t):t()}function t(){e.isCalendarOpen=e.isOpen=!1}},t.prototype.getCalendarCtrl=function(){return ce.element(this.calendarPane.querySelector("md-calendar")).controller("mdCalendar")},t.prototype.focusCalendar=function(){var e=this;this.$mdUtil.nextTick(function(){e.getCalendarCtrl().focus()},!1)},t.prototype.setFocused=function(e){e||this.ngModelCtrl.$setTouched(),this.openOnFocus||this.evalAttr(e?"ngFocus":"ngBlur"),this.isFocused=e},t.prototype.handleBodyClick=function(e){this.isCalendarOpen&&(this.$mdUtil.getClosest(e.target,"md-calendar")||this.closeCalendarPane(),this.$scope.$digest())},t.prototype.handleWindowBlur=function(){this.inputFocusedOnWindowBlur=document.activeElement===this.inputElement},t.prototype.evalAttr=function(e){this.$attrs[e]&&this.$scope.$parent.$eval(this.$attrs[e])},t.prototype.setModelValue=function(e){var t=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone");this.ngModelCtrl.$setViewValue(this.ngDateFilter(e,"yyyy-MM-dd",t))},t.prototype.onExternalChange=function(e){var t=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone");this.date=e,this.inputElement.value=this.locale.formatDate(e,t),this.mdInputContainer&&this.mdInputContainer.setHasValue(!!e),this.resizeInputElement(),this.updateErrorState()}}(),function(){function e(e,t,r){return{restrict:"E",link:function(o,i){i.addClass("_md"),t(i),e(function(){var e,t=i[0].querySelector("md-dialog-content");function n(){i.toggleClass("md-content-overflow",t.scrollHeight>t.clientHeight)}t&&(e=t.getElementsByTagName("img"),n(),ce.element(e).on("load",n)),o.$on("$destroy",function(){r.destroy(i)})})}}}function t(e){var $,y;return n.$inject=["$mdDialog","$mdConstant"],o.$inject=["$mdDialog","$mdAria","$mdUtil","$mdConstant","$animate","$document","$window","$rootElement","$log","$injector","$mdTheming","$interpolate","$mdInteraction"],e("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent","closeTo","openFrom","parent","fullscreen","multiple"],options:o}).addPreset("alert",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","theme","css"],options:t}).addPreset("confirm",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","cancel","theme","css"],options:t}).addPreset("prompt",{methods:["title","htmlContent","textContent","initialValue","content","placeholder","ariaLabel","ok","cancel","theme","css","required"],options:t});function t(){return{template:['<md-dialog md-theme="{{ dialog.theme || dialog.defaultTheme }}" aria-label="{{ dialog.ariaLabel }}" ng-class="dialog.css">','  <md-dialog-content class="md-dialog-content" role="document" tabIndex="-1">','    <h2 class="md-title">{{ dialog.title }}</h2>','    <div ng-if="::dialog.mdHtmlContent" class="md-dialog-content-body" ','        ng-bind-html="::dialog.mdHtmlContent"></div>','    <div ng-if="::!dialog.mdHtmlContent" class="md-dialog-content-body">',"      <p>{{::dialog.mdTextContent}}</p>","    </div>",'    <md-input-container md-no-float ng-if="::dialog.$type == \'prompt\'" class="md-prompt-input-container">','      <input ng-keypress="dialog.keypress($event)" md-autofocus ng-model="dialog.result"              placeholder="{{::dialog.placeholder}}" ng-required="dialog.required">',"    </md-input-container>","  </md-dialog-content>","  <md-dialog-actions>",'    <md-button ng-if="dialog.$type === \'confirm\' || dialog.$type === \'prompt\'"               ng-click="dialog.abort()" class="md-primary md-cancel-button">',"      {{ dialog.cancel }}","    </md-button>",'    <md-button ng-click="dialog.hide()" class="md-primary md-confirm-button" md-autofocus="dialog.$type===\'alert\'"               ng-disabled="dialog.required && !dialog.result">',"      {{ dialog.ok }}","    </md-button>","  </md-dialog-actions>","</md-dialog>"].join("").replace(/\s\s+/g,""),controller:n,controllerAs:"dialog",bindToController:!0}}function n(o,i){this.$onInit=function(){var n="prompt"==this.$type;n&&this.initialValue&&(this.result=this.initialValue),this.hide=function(){o.hide(!n||this.result)},this.abort=function(){o.cancel()},this.keypress=function(e){var t=n&&this.required&&!ce.isDefined(this.result);e.keyCode!==i.KEY_CODE.ENTER||t||o.hide(this.result)}}}function o(u,s,p,h,l,c,f,m,g,a,t,d,b){return{hasBackdrop:!0,isolateScope:!0,onCompiling:function(e){e.defaultTheme=t.defaultTheme(),function(t){var e;t.targetEvent&&t.targetEvent.target&&(e=ce.element(t.targetEvent.target));var n=e&&e.controller("mdTheme");if(t.hasTheme=!!n,!t.hasTheme)return;t.themeWatch=n.$shouldWatch;var o=t.theme||n.$mdTheme;o&&(t.scope.theme=o);var i=n.registerChanges(function(e){t.scope.theme=e,t.themeWatch||i()})}(e)},onShow:function(e,t,n,o){ce.element(c[0].body).addClass("md-dialog-is-showing");var i=t.find("md-dialog");if(i.hasClass("ng-cloak")){g.warn("$mdDialog: using `<md-dialog ng-cloak>` will affect the dialog opening animations.",t[0])}return function(e){function t(e,t){var n=ce.element(e||{});if(n&&n.length){var o=ce.isFunction(n[0].getBoundingClientRect);return ce.extend(t||{},{element:o?n:me,bounds:o?n[0].getBoundingClientRect():ce.extend({},{top:0,left:0,height:0,width:0},n[0]),focus:ce.bind(n,n.focus)})}}function n(e,t){return ce.isString(e)&&(e=c[0].querySelector(e)),ce.element(e||t)}e.origin=ce.extend({element:null,bounds:null,focus:ce.noop},e.origin||{}),e.parent=n(e.parent,m),e.closeTo=t(n(e.closeTo)),e.openFrom=t(n(e.openFrom)),e.targetEvent&&(e.origin=t(e.targetEvent.target,e.origin),e.originInteraction=b.getLastInteractionType())}(n),function(e,t){var n="alert"===t.$type?"alertdialog":"dialog",o=e.find("md-dialog-content"),i=e.attr("id"),r="dialogContent_"+(i||p.nextUid());e.attr({role:n,tabIndex:"-1"}),0===o.length&&(o=e,i&&(r=i)),o.attr("id",r),e.attr("aria-describedby",r),t.ariaLabel?s.expect(e,"aria-label",t.ariaLabel):s.expectAsync(e,"aria-label",function(){if(t.title)return t.title;var e=o.text().split(/\s+/);return 3<e.length&&(e=e.slice(0,3).concat("...")),e.join(" ")}),($=document.createElement("div")).classList.add("md-dialog-focus-trap"),$.tabIndex=0,y=$.cloneNode(!1);var a=function(){e.focus()};$.addEventListener("focus",a),y.addEventListener("focus",a),e[0].parentNode.insertBefore($,e[0]),e.after(y)}(i,n),r=e,a=t,d=n,d.disableParentScroll&&(d.restoreScroll=p.disableScrollAround(a,d.parent)),d.hasBackdrop&&(d.backdrop=p.createBackdrop(r,"md-dialog-backdrop md-opaque"),l.enter(d.backdrop,d.parent)),d.hideBackdrop=function(e){d.backdrop&&(e?d.backdrop.remove():l.leave(d.backdrop)),d.disableParentScroll&&(d.restoreScroll&&d.restoreScroll(),delete d.restoreScroll),d.hideBackdrop=null},function(e,t){var n=ce.element(f),o=p.debounce(function(){v(e,t)},60),i=[],r=function(){var e="alert"==t.$type?u.hide:u.cancel;p.nextTick(e,!0)};if(t.escapeToClose){var a=t.parent,d=function(e){e.keyCode===h.KEY_CODE.ESCAPE&&(e.stopImmediatePropagation(),e.preventDefault(),r())};e.on("keydown",d),a.on("keydown",d),i.push(function(){e.off("keydown",d),a.off("keydown",d)})}if(n.on("resize",o),i.push(function(){n.off("resize",o)}),t.clickOutsideToClose){var s,l=e,c=function(e){s=e.target},m=function(e){s===l[0]&&e.target===l[0]&&(e.stopPropagation(),e.preventDefault(),r())};l.on("mousedown",c),l.on("mouseup",m),i.push(function(){l.off("mousedown",c),l.off("mouseup",m)})}t.deactivateListeners=function(){i.forEach(function(e){e()}),t.deactivateListeners=null}}(t,n),function(e,t){t.parent.append(e),t.reverseContainerStretch=v(e,t);var n=e.find("md-dialog"),o=p.dom.animator,i=o.calculateZoomToOrigin,r={transitionInClass:"md-transition-in",transitionOutClass:"md-transition-out"},a=o.toTransformCss(i(n,t.openFrom||t.origin)),d=o.toTransformCss("");return n.toggleClass("md-dialog-fullscreen",!!t.fullscreen),o.translate3d(n,a,d,r).then(function(e){return t.reverseAnimate=function(){return delete t.reverseAnimate,t.closeTo?(r={transitionInClass:"md-transition-out",transitionOutClass:"md-transition-in"},a=d,d=o.toTransformCss(i(n,t.closeTo)),o.translate3d(n,a,d,r)):e(d=o.toTransformCss(i(n,t.origin)))},t.clearAnimate=function(){return delete t.clearAnimate,n.removeClass([r.transitionOutClass,r.transitionInClass].join(" ")),o.translate3d(n,d,o.toTransformCss(""),{})},!0})}(t,n).then(function(){!function(e,t){var o=!0;function n(e){for(var t=function(e){for(var t=[];e.parentNode;){if(e===document.body)return t;for(var n=e.parentNode.children,o=0;o<n.length;o++)e===n[o]||E(n[o],["SCRIPT","STYLE"])||n[o].hasAttribute("aria-live")||t.push(n[o]);e=e.parentNode}return t}(e),n=0;n<t.length;n++)t[n].setAttribute("aria-hidden",o)}n(e[0]),t.unlockScreenReader=function(){o=!1,n(e[0]),t.unlockScreenReader=null}}(t,n),t[0].querySelector(".md-actions")&&g.warn("Using a class of md-actions is deprecated, please use <md-dialog-actions>."),function(){if(n.focusOnOpen){var e=p.findFocusTarget(t)||t[0].querySelector(".dialog-close, md-dialog-actions button:last-child")||i;e.focus()}}()});var r,a,d},onShowing:function(e,t,n,o){if(o){var i=o.htmlContent||n.htmlContent||"",r=o.textContent||n.textContent||o.content||n.content||"";if(i&&!a.has("$sanitize"))throw Error("The ngSanitize module must be loaded in order to use htmlContent.");if(i&&r)throw Error("md-dialog cannot have both `htmlContent` and `textContent`");o.mdHtmlContent=i,o.mdTextContent=r}},onRemove:function(e,t,n){n.deactivateListeners(),n.unlockScreenReader(),n.hideBackdrop(n.$destroy),$&&$.parentNode&&$.parentNode.removeChild($);y&&y.parentNode&&y.parentNode.removeChild(y);return n.$destroy?i():(o=n,o.reverseAnimate().then(function(){o.contentElement&&o.clearAnimate()})).then(i);var o;function i(){ce.element(c[0].body).removeClass("md-dialog-is-showing"),n.contentElement&&n.reverseContainerStretch(),n.cleanupElement(),n.$destroy||"keyboard"!==n.originInteraction||n.origin.focus()}},clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,closeTo:null,openFrom:null,focusOnOpen:!0,disableParentScroll:!0,autoWrap:!0,fullscreen:!1,transformTemplate:function(e,t){var n,o=d.startSymbol(),i=d.endSymbol(),r=o+(t.themeWatch?"":"::")+"theme"+i;return'<div class="md-dialog-container" tabindex="-1" '+(t.hasTheme?'md-theme="'+r+'"':"")+">"+(n=e,t.autoWrap&&!/<\/md-dialog>/g.test(n)?"<md-dialog>"+(n||"")+"</md-dialog>":n||"")+"</div>"}};function v(e,t){var n="fixed"==f.getComputedStyle(c[0].body).position,o=t.backdrop?f.getComputedStyle(t.backdrop[0]):null,i=o?Math.min(c[0].body.clientHeight,Math.ceil(Math.abs(parseInt(o.height,10)))):0,r={top:e.css("top"),height:e.css("height")},a=Math.abs(t.parent[0].getBoundingClientRect().top);return e.css({top:(n?a:0)+"px",height:i?i+"px":"100%"}),function(){e.css(r)}}function E(e,t){if(-1!==t.indexOf(e.nodeName))return!0}}}e.$inject=["$$rAF","$mdTheming","$mdDialog"],t.$inject=["$$interimElementProvider"],ce.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",e).provider("$mdDialog",t)}(),function(){function e(e){return{restrict:"E",link:e}}e.$inject=["$mdTheming"],ce.module("material.components.divider",["material.core"]).directive("mdDivider",e)}(),function(){function e(o){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(e,t){var n=e.children();o.prefixer().hasAttribute(n,"ng-repeat")?n.addClass("md-fab-action-item"):n.wrap('<div class="md-fab-action-item">')}}}e.$inject=["$mdUtil"],ce.module("material.components.fabActions",["material.core"]).directive("mdFabActions",e)}(),function(){function e(t,r,a,d,s,i){var l,c=this,e=0;function n(e){var t,n,o;"click"==e.type&&(n=(t=e).target,d.getClosest(n,"md-fab-trigger")&&c.toggle(),o=t.target,d.getClosest(o,"md-fab-actions")&&c.close()),"focusout"!=e.type||l||(l=i(function(){c.close()},100,!1)),"focusin"==e.type&&l&&(i.cancel(l),l=null)}function m(){c.currentActionIndex=-1}function u(){0<r[0].scrollHeight?a.addClass(r,"_md-animations-ready").then(function(){r.removeClass("md-animations-waiting")}):e<10&&(i(u,100),e+=1)}function p(){r.off("keydown",f),ce.element(document).off("click touchend",h)}function h(e){if(e.target){var t=d.getClosest(e.target,"md-fab-trigger"),n=d.getClosest(e.target,"md-fab-actions");t||n||c.close()}}function f(e){switch(e.which){case s.KEY_CODE.ESCAPE:return c.close(),e.preventDefault(),!1;case s.KEY_CODE.LEFT_ARROW:return i=e,"left"===c.direction?b(i):g(i),!1;case s.KEY_CODE.UP_ARROW:return o=e,"down"===c.direction?g(o):b(o),!1;case s.KEY_CODE.RIGHT_ARROW:return n=e,"left"===c.direction?g(n):b(n),!1;case s.KEY_CODE.DOWN_ARROW:return t=e,"up"===c.direction?g(t):b(t),!1}var t,n,o,i}function g(e){o(e,-1)}function b(e){o(e,1)}function o(e,t){var n,o=(n=v()[0].querySelectorAll(".md-fab-action-item"),ce.forEach(n,function(e){ce.element(ce.element(e).children()[0]).attr("tabindex",-1)}),n);c.currentActionIndex=c.currentActionIndex+t,c.currentActionIndex=Math.min(o.length-1,c.currentActionIndex),c.currentActionIndex=Math.max(0,c.currentActionIndex);var i=ce.element(o[c.currentActionIndex]).children()[0];ce.element(i).attr("tabindex",0),i.focus(),e.preventDefault(),e.stopImmediatePropagation()}function v(){return r.find("md-fab-actions")}c.open=function(){t.$evalAsync("vm.isOpen = true")},c.close=function(){t.$evalAsync("vm.isOpen = false"),r.find("md-fab-trigger")[0].focus()},c.toggle=function(){t.$evalAsync("vm.isOpen = !vm.isOpen")},c.$onInit=function(){var e,o,i;c.direction=c.direction||"down",c.isOpen=c.isOpen||!1,m(),r.addClass("md-animations-waiting"),e=["click","focusin","focusout"],ce.forEach(e,function(e){r.on(e,n)}),t.$on("$destroy",function(){ce.forEach(e,function(e){r.off(e,n)}),p()}),t.$watch("vm.direction",function(e,t){a.removeClass(r,"md-"+t),a.addClass(r,"md-"+e),m()}),t.$watch("vm.isOpen",function(e){m(),o&&i||(o=r.find("md-fab-trigger"),i=v()),e?(r.on("keydown",f),d.nextTick(function(){ce.element(document).on("click touchend",h)})):p();var t=e?"md-is-open":"",n=e?"":"md-is-open";o.attr("aria-haspopup",!0),o.attr("aria-expanded",e),i.attr("aria-hidden",!e),a.setClass(r,t,n)}),u()},1===ce.version.major&&ce.version.minor<=4&&this.$onInit()}e.$inject=["$scope","$element","$animate","$mdUtil","$mdConstant","$timeout"],ce.module("material.components.fabShared",["material.core"]).controller("MdFabController",e)}(),function(){e.$inject=["$timeout"],t.$inject=["$timeout"];var n=300;function e(t){function o(e){t(e,n,!1)}function i(e){if(!e.hasClass("md-animations-waiting")||e.hasClass("_md-animations-ready")){var t=e[0],s=e.controller("mdFabSpeedDial"),o=t.querySelectorAll(".md-fab-action-item"),l=t.querySelector("md-fab-trigger"),n=t.querySelector("._md-css-variables"),i=parseInt(B.getComputedStyle(n).zIndex);ce.forEach(o,function(e,t){var n=e.style;n.transform=n.webkitTransform="",n.transitionDelay="",n.opacity=1,n.zIndex=o.length-t+i}),l.style.zIndex=i+o.length+1,s.isOpen||ce.forEach(o,function(e,t){var n,o,i=e.style,r=(l.clientHeight-e.clientHeight)/2,a=(l.clientWidth-e.clientWidth)/2;switch(s.direction){case"up":n=e.scrollHeight*(t+1)+r,o="Y";break;case"down":n=-(e.scrollHeight*(t+1)+r),o="Y";break;case"left":n=e.scrollWidth*(t+1)+a,o="X";break;case"right":n=-(e.scrollWidth*(t+1)+a),o="X"}var d="translate"+o+"("+n+"px)";i.transform=i.webkitTransform=d})}}return{addClass:function(e,t,n){e.hasClass("md-fling")?(i(e),o(n)):n()},removeClass:function(e,t,n){i(e),o(n)}}}function t(t){function o(e){t(e,n,!1)}function i(e){var t=e[0],i=e.controller("mdFabSpeedDial"),r=t.querySelectorAll(".md-fab-action-item"),n=t.querySelector("._md-css-variables"),a=parseInt(B.getComputedStyle(n).zIndex);ce.forEach(r,function(e,t){var n=e.style,o=65*t;n.opacity=i.isOpen?1:0,n.transform=n.webkitTransform=i.isOpen?"scale(1)":"scale(0)",n.transitionDelay=(i.isOpen?o:r.length-o)+"ms",n.zIndex=r.length-t+a})}return{addClass:function(e,t,n){i(e),o(n)},removeClass:function(e,t,n){i(e),o(n)}}}ce.module("material.components.fabSpeedDial",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabSpeedDial",function(){return{restrict:"E",scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:function(e,t){t.prepend('<div class="_md-css-variables"></div>')}}}).animation(".md-fling",e).animation(".md-scale",t).service("mdFabSpeedDialFlingAnimation",e).service("mdFabSpeedDialScaleAnimation",t)}(),function(){function e(){function o(e,t,n){if(t){var o=e[0],i=e.controller("mdFabToolbar"),r=o.querySelector(".md-fab-toolbar-background"),a=o.querySelector("md-fab-trigger button"),d=o.querySelector("md-toolbar"),s=o.querySelector("md-fab-trigger button md-icon"),l=e.find("md-fab-actions").children();if(a&&r){var c=B.getComputedStyle(a).getPropertyValue("background-color"),m=o.offsetWidth,u=(o.offsetHeight,m/a.offsetWidth*2);r.style.backgroundColor=c,r.style.borderRadius=m+"px",i.isOpen?(d.style.pointerEvents="inherit",r.style.width=a.offsetWidth+"px",r.style.height=a.offsetHeight+"px",r.style.transform="scale("+u+")",r.style.transitionDelay="0ms",s&&(s.style.transitionDelay=".3s"),ce.forEach(l,function(e,t){e.style.transitionDelay=25*(l.length-t)+"ms"})):(d.style.pointerEvents="none",r.style.transform="scale(1)",r.style.top="0",e.hasClass("md-right")&&(r.style.left="0",r.style.right=null),e.hasClass("md-left")&&(r.style.right="0",r.style.left=null),r.style.transitionDelay="200ms",s&&(s.style.transitionDelay="0ms"),ce.forEach(l,function(e,t){e.style.transitionDelay=200+25*t+"ms"}))}}}return{addClass:function(e,t,n){o(e,t),n()},removeClass:function(e,t,n){o(e,t),n()}}}ce.module("material.components.fabToolbar",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabToolbar",function(){return{restrict:"E",transclude:!0,template:'<div class="md-fab-toolbar-wrapper">  <div class="md-fab-toolbar-content" ng-transclude></div></div>',scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:function(e,t,n){t.addClass("md-fab-toolbar"),t.find("md-fab-trigger").find("button").prepend('<div class="md-fab-toolbar-background"></div>')}}}).animation(".md-fab-toolbar",e).service("mdFabToolbarAnimation",e)}(),function(){function e(p,b,v,E){return{restrict:"E",controller:t,scope:{mdOnLayout:"&"},link:function(r,a,d,t){a.addClass("_md"),a.attr("role","list"),t.layoutDelegate=function(e){var o=[].filter.call(a.children(),function(e){return"MD-GRID-TILE"==e.tagName&&!e.$$mdDestroyed}),i={tileSpans:(t=o,[].map.call(t,function(e){var t=ce.element(e).controller("mdGridTile");return{row:parseInt(E.getResponsiveAttribute(t.$attrs,"md-rowspan"),10)||1,col:parseInt(E.getResponsiveAttribute(t.$attrs,"md-colspan"),10)||1}})),colCount:function(){var e=parseInt(E.getResponsiveAttribute(d,"md-cols"),10);if(isNaN(e))throw"md-grid-list: md-cols attribute was not found, or contained a non-numeric value";return e}(),rowMode:m(),rowHeight:function(){var e=E.getResponsiveAttribute(d,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";switch(m()){case"fixed":return u(e);case"ratio":var t=e.split(":");return parseFloat(t[0])/parseFloat(t[1]);case"fit":return 0}}(),gutter:u(E.getResponsiveAttribute(d,"md-gutter")||1)};var t;if(!e&&ce.equals(i,s))return;var n=v(i.colCount,i.tileSpans,o).map(function(e,n){return{grid:{element:a,style:function(e,t,n,o,i){var r={};switch(o){case"fixed":r.height=g({unit:i,span:t,gutter:n}),r.paddingBottom="";break;case"ratio":var a=1===e?0:(e-1)/e,d=1/e*100,s=d*(1/i),l=h({share:s,gutterShare:a,gutter:n});r.height="",r.paddingBottom=g({unit:l,span:t,gutter:n})}return r}(i.colCount,n,i.gutter,i.rowMode,i.rowHeight)},tiles:e.map(function(e,t){return{element:ce.element(o[t]),style:function(e,t,n,o,i,r,a){var d=1/n*100,s=(n-1)/n,l=h({share:d,gutterShare:s,gutter:i}),c="rtl"!=document.dir&&"rtl"!=document.body.dir?{left:f({unit:l,offset:e.col,gutter:i}),width:g({unit:l,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""}:{right:f({unit:l,offset:e.col,gutter:i}),width:g({unit:l,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""};switch(r){case"fixed":c.top=f({unit:a,offset:e.row,gutter:i}),c.height=g({unit:a,span:t.row,gutter:i});break;case"ratio":var m=d/a,u=h({share:m,gutterShare:s,gutter:i});c.paddingTop=g({unit:u,span:t.row,gutter:i}),c.marginTop=f({unit:u,offset:e.row,gutter:i});break;case"fit":var p=(o-1)/o;u=h({share:m=1/o*100,gutterShare:p,gutter:i}),c.top=f({unit:u,offset:e.row,gutter:i}),c.height=g({unit:u,span:t.row,gutter:i})}return c}(e.position,e.spans,i.colCount,n,i.gutter,i.rowMode,i.rowHeight)}})}}).reflow().performance();r.mdOnLayout({$event:{performance:n}}),s=i};var s,n=ce.bind(t,t.invalidateLayout),o=function(){for(var e in b.MEDIA)E(e),E.getQuery(b.MEDIA[e]).addListener(n);return E.watchResponsiveAttributes(["md-cols","md-row-height","md-gutter"],d,i)}();function i(e){null==e?t.invalidateLayout():E(e)&&t.invalidateLayout()}r.$on("$destroy",function(){for(var e in t.layoutDelegate=ce.noop,o(),b.MEDIA)E.getQuery(b.MEDIA[e]).removeListener(n)});var l=p.startSymbol(),c=p.endSymbol();function e(e){return l+e+c}var h=p(e("share")+"% - ("+e("gutter")+" * "+e("gutterShare")+")"),f=p("calc(("+e("unit")+" + "+e("gutter")+") * "+e("offset")+")"),g=p("calc(("+e("unit")+") * "+e("span")+" + ("+e("span")+" - 1) * "+e("gutter")+")");function m(){var e=E.getResponsiveAttribute(d,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";return"fit"==e?"fit":-1!==e.indexOf(":")?"ratio":"fixed"}function u(e){return/\D$/.test(e)?e:e+"px"}}}}function t(e){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=e.nextTick,this.layoutDelegate=ce.noop}function n(s){var l=t;return e.animateWith=function(e){l=ce.isFunction(e)?e:t},e;function e(e,t){var n,o,i,r,a,d;return r=s.time(function(){o=function(i,e){var r=0,a=0,d=function(){for(var e=[],t=0;t<i;t++)e.push(0);return e}();return{positioning:e.map(function(e,t){return{spans:e,position:function(e,t){if(e.col>i)throw"md-grid-list: Tile at position "+t+" has a colspan ("+e.col+") that exceeds the column count ("+i+")";var n=0,o=0;for(;o-n<e.col;)i<=r?s():-1!==(n=d.indexOf(0,r))&&-1!==(o=c(n+1))?r=o+1:(n=o=0,s());return l(n,e.col,e.row),r=n+e.col,{col:n,row:a}}(e,t)}}),rowCount:a+Math.max.apply(Math,d)};function s(){a++,l(r=0,i,-1)}function l(e,t,n){for(var o=e;o<e+t;o++)d[o]=Math.max(d[o]+n,0)}function c(e){var t;for(t=e;t<d.length;t++)if(0!==d[t])return t;if(t===d.length)return t}}(e,t)}),n={layoutInfo:function(){return o},map:function(t){return a=s.time(function(){var e=n.layoutInfo();i=t(e.positioning,e.rowCount)}),n},reflow:function(e){return d=s.time(function(){(e||l)(i.grid,i.tiles)}),n},performance:function(){return{tileCount:t.length,layoutTime:r,mapTime:a,reflowTime:d,totalTime:r+a+d}}}}function t(e,t){e.element.css(e.style),t.forEach(function(e){e.element.css(e.style)})}}function o(r){return{restrict:"E",require:"^mdGridList",template:"<figure ng-transclude></figure>",transclude:!0,scope:{},controller:["$attrs",function(e){this.$attrs=e}],link:function(e,t,n,o){t.attr("role","listitem");var i=r.watchResponsiveAttributes(["md-colspan","md-rowspan"],n,ce.bind(o,o.invalidateLayout));o.invalidateTiles(),e.$on("$destroy",function(){t[0].$$mdDestroyed=!0,i(),o.invalidateLayout()}),ce.isDefined(e.$parent.$index)&&e.$watch(function(){return e.$parent.$index},function(e,t){e!==t&&o.invalidateTiles()})}}}function i(){return{template:"<figcaption ng-transclude></figcaption>",transclude:!0}}t.$inject=["$mdUtil"],n.$inject=["$mdUtil"],e.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia"],o.$inject=["$mdMedia"],ce.module("material.components.gridList",["material.core"]).directive("mdGridList",e).directive("mdGridTile",o).directive("mdGridTileFooter",i).directive("mdGridTileHeader",i).factory("$mdGridLayout",n),t.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(ce.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}}}(),ce.module("material.components.icon",["material.core"]),ce.module("material.components.icon").directive("mdIcon",["$mdIcon","$mdTheming","$mdAria","$sce",function(s,l,c,e){return{restrict:"E",link:function(e,t,n){l(t);var o=n.mdFontIcon,i=s.fontSet(n.mdFontSet);n.mdSvgIcon||n.mdSvgSrc||(n.mdFontIcon&&t.addClass("md-font "+n.mdFontIcon),t.addClass(i)),n.$observe("mdFontIcon",d),n.$observe("mdFontSet",d),t[0].getAttribute(n.$attr.mdSvgSrc);var r,a=n.$normalize(n.$attr.mdSvgIcon||n.$attr.mdSvgSrc||"");function d(){if(!n.mdSvgIcon&&!n.mdSvgSrc){n.mdFontIcon&&(t.removeClass(o),t.addClass(n.mdFontIcon),o=n.mdFontIcon);var e=s.fontSet(n.mdFontSet);i!==e&&(t.removeClass(i),t.addClass(e),i=e)}}n.role||(c.expect(t,"role","img"),n.role="img"),"img"!==n.role||n.ariaHidden||c.hasAriaLabel(t)||(n.alt?c.expect(t,"aria-label",n.alt):c.parentHasAriaLabel(t,2)?c.expect(t,"aria-hidden","true"):(r=n.mdFontIcon||n.mdSvgIcon||t.text())?c.expect(t,"aria-label",r):c.expect(t,"aria-hidden","true")),a&&n.$observe(a,function(e){t.empty(),e&&s(e).then(function(e){t.empty(),t.append(e)})})}}}]),function(){a.$inject=["config","$templateRequest","$q","$log","$mdUtil","$sce"],ce.module("material.components.icon").constant("$$mdSvgRegistry",{mdTabsArrow:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyICIvPjwvZz48L3N2Zz4=",mdClose:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik0xOSA2LjQxbC0xLjQxLTEuNDEtNS41OSA1LjU5LTUuNTktNS41OS0xLjQxIDEuNDEgNS41OSA1LjU5LTUuNTkgNS41OSAxLjQxIDEuNDEgNS41OS01LjU5IDUuNTkgNS41OSAxLjQxLTEuNDEtNS41OS01LjU5eiIvPjwvZz48L3N2Zz4=",mdCancel:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik0xMiAyYy01LjUzIDAtMTAgNC40Ny0xMCAxMHM0LjQ3IDEwIDEwIDEwIDEwLTQuNDcgMTAtMTAtNC40Ny0xMC0xMC0xMHptNSAxMy41OWwtMS40MSAxLjQxLTMuNTktMy41OS0zLjU5IDMuNTktMS40MS0xLjQxIDMuNTktMy41OS0zLjU5LTMuNTkgMS40MS0xLjQxIDMuNTkgMy41OSAzLjU5LTMuNTkgMS40MSAxLjQxLTMuNTkgMy41OSAzLjU5IDMuNTl6Ii8+PC9nPjwvc3ZnPg==",mdMenu:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0zLDZIMjFWOEgzVjZNMywxMUgyMVYxM0gzVjExTTMsMTZIMjFWMThIM1YxNloiIC8+PC9zdmc+",mdToggleArrow:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDggNDgiPjxwYXRoIGQ9Ik0yNCAxNmwtMTIgMTIgMi44MyAyLjgzIDkuMTctOS4xNyA5LjE3IDkuMTcgMi44My0yLjgzeiIvPjxwYXRoIGQ9Ik0wIDBoNDh2NDhoLTQ4eiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==",mdCalendar:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTkgM2gtMVYxaC0ydjJIOFYxSDZ2Mkg1Yy0xLjExIDAtMS45OS45LTEuOTkgMkwzIDE5YzAgMS4xLjg5IDIgMiAyaDE0YzEuMSAwIDItLjkgMi0yVjVjMC0xLjEtLjktMi0yLTJ6bTAgMTZINVY4aDE0djExek03IDEwaDV2NUg3eiIvPjwvc3ZnPg==",mdChecked:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik05IDE2LjE3TDQuODMgMTJsLTEuNDIgMS40MUw5IDE5IDIxIDdsLTEuNDEtMS40MXoiLz48L2c+PC9zdmc+"}).provider("$mdIcon",e);var r={defaultViewBoxSize:24,defaultFontSet:"material-icons",fontSets:[]};function e(){}function o(e,t){this.url=e,this.viewBoxSize=t||r.defaultViewBoxSize}function a(a,r,d,s,c,t){var o={},l={},n=/[-\w@:%+.~#?&//=]{2,}\.[a-z]{2,4}\b(\/[-\w@:%+.~#?&//=]*)?/i,m=/^data:image\/svg\+xml[\s*;\w\-=]*?(base64)?,(.*)$/i;return b.prototype={clone:function(){return this.element.cloneNode(!0)},prepare:function(){var e=this.config?this.config.viewBoxSize:a.defaultViewBoxSize;ce.forEach({fit:"",height:"100%",width:"100%",preserveAspectRatio:"xMidYMid meet",viewBox:this.element.getAttribute("viewBox")||"0 0 "+e+" "+e,focusable:!1},function(e,t){this.element.setAttribute(t,e)},this)}},e.fontSet=function(t){if(ce.isUndefined(t)||!t||!t.length)return a.defaultFontSet;var n=t;return ce.forEach(a.fontSets,function(e){e.alias===t&&(n=e.fontSet||n)}),n},e;function e(e){return e=e||"",ce.isString(e)||(e=t.getTrustedUrl(e)),o[e]?d.when(i(o[e])):n.test(e)||m.test(e)?g(e).then(p(e)):(-1===e.indexOf(":")&&(e="$default:"+e),(a[e]?h:f)(e).then(p(e)))}function i(e){var n,o,i,r,a=e.clone(),d=c.nextUid(),s=["clip-path","color-profile","cursor","fill","filter","href","marker-start","marker-mid","marker-end","mask","stroke","style","vector-effect"],l=a.innerHTML===me;if(!isFinite(Number(d)))throw new Error("Unsafe and unexpected non-number result from $mdUtil.nextUid().");return n="_cache"+d,a.id&&(a.id+=n),ce.forEach(a.querySelectorAll("[id]"),function(t){for(o="",i=0;i<s.length;i++)o+="["+s[i]+'="url(#'+t.id+')"]',i+1<s.length&&(o+=", ");ce.forEach(a.querySelectorAll(o),function(e){u(t,e,l,d)}),ce.forEach(a.querySelectorAll("style"),function(e){u(t,e,l,d)}),ce.forEach(a.querySelectorAll("[*|href]:not([href])"),function(e){(r=e.getAttribute("xlink:href"))&&(r=r.replace("#"+t.id,"#"+t.id+n),e.setAttribute("xlink:href",r))}),t.id+=n}),a}function u(e,t,n,o){var i,r;if(!isFinite(Number(o)))throw new Error("Unsafe and unexpected non-number result for newUid.");r="_cache"+o,n?(i=(i=c.getOuterHTML(t)).replace("url(#"+e.id+")","url(#"+e.id+r+")"),t.textContent=ce.element(i)[0].innerHTML):t.outerHTML=t.outerHTML.replace("url(#"+e.id+")","url(#"+e.id+r+")")}function p(n){return function(e){var t;return o[n]=(t=e,ce.isDefined(t.element)&&ce.isDefined(t.config)?e:new b(e,a[n])),i(o[n])}}function h(e){var t=a[e];return g(t.url).then(function(e){return new b(e,t)})}function f(o){var e=o.substring(0,o.lastIndexOf(":"))||"$default",i=a[e];return i?g(i.url).then(function(e){var t=o.slice(o.lastIndexOf(":")+1),n=e.querySelector("#"+t);return n?new b(n,i):r(o)}):r(o);function r(e){var t="icon "+e+" not found";return s.warn(t),d.reject(t||e)}}function g(e){return m.test(e)?(t=e,n=m.exec(t),i=/base64/i.test(t)?B.atob(n[2]):n[2],d.when(ce.element(i)[0])):(o=e,d(function(t,n){r(o,!0).then(function(e){l[o]||(l[o]=ce.element("<div>").append(e)[0].querySelector("svg")),t(l[o])},function(e){var t=ce.isString(e)?e:e.message||e.data||e.statusText;s.warn(t),n(e)})}));var o,t,n,i}function b(e,t){if(e&&"symbol"===e.tagName.toLowerCase()){var n=e.getAttribute("viewBox");e=e.innerHTML?ce.element('<svg xmlns="http://www.w3.org/2000/svg">').html(e.innerHTML)[0]:ce.element('<svg xmlns="http://www.w3.org/2000/svg">').append(c.getInnerHTML(e))[0],n&&e.setAttribute("viewBox",n)}e&&"svg"!==e.tagName.toLowerCase()&&(e=ce.element('<svg xmlns="http://www.w3.org/2000/svg">').append(e.cloneNode(!0))[0]),e.getAttribute("xmlns")||e.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.element=e,this.config=t,this.prepare()}}e.prototype={icon:function(e,t,n){return-1==e.indexOf(":")&&(e="$default:"+e),r[e]=new o(t,n),this},iconSet:function(e,t,n){return r[e]=new o(t,n),this},defaultIconSet:function(e,t){var n="$default";return r[n]||(r[n]=new o(e,t)),r[n].viewBoxSize=t||r.defaultViewBoxSize,this},defaultViewBoxSize:function(e){return r.defaultViewBoxSize=e,this},fontSet:function(e,t){return r.fontSets.push({alias:e,fontSet:t||e}),this},defaultFontSet:function(e){return r.defaultFontSet=e||"",this},defaultIconSize:function(e){return r.defaultIconSize=e,this},$get:["$templateRequest","$q","$log","$mdUtil","$sce",function(e,t,n,o,i){return a(r,e,t,n,o,i)}]}}(),function(){t.$inject=["$mdTheming","$parse","$$rAF"],n.$inject=["$mdUtil","$window","$mdAria","$timeout","$mdGesture"],o.$inject=["$animate","$mdUtil"],i.$inject=["$compile"],c.$inject=["$mdUtil"],r.$inject=["$document","$timeout"],m.$inject=["$$AnimateRunner","$animateCss","$mdUtil"],u.$inject=["$$AnimateRunner","$animateCss","$mdUtil"],p.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"];var e=ce.module("material.components.input",["material.core"]).directive("mdInputContainer",t).directive("label",function(){return{restrict:"E",require:"^?mdInputContainer",link:function(e,t,n,o){!o||n.mdNoFloat||t.hasClass("md-container-ignore")||(o.label=t,e.$on("$destroy",function(){o.label=null}))}}}).directive("input",n).directive("textarea",n).directive("mdMaxlength",o).directive("placeholder",i).directive("ngMessages",function(){return{restrict:"EA",link:function(e,t,n,o){if(!o)return;t.toggleClass("md-input-messages-animation",!0),t.toggleClass("md-auto-hide",!0),("false"==n.mdAutoHide||(i=n,l.some(function(e){return i[e]})))&&t.toggleClass("md-auto-hide",!1);var i},require:"^^?mdInputContainer"}}).directive("ngMessage",c).directive("ngMessageExp",c).directive("mdSelectOnFocus",r).animation(".md-input-invalid",m).animation(".md-input-messages-animation",u).animation(".md-input-message-animation",p);function t(i,r,a){n.$inject=["$scope","$element","$attrs","$animate"];var e=["INPUT","TEXTAREA","SELECT","MD-SELECT"],t=e.reduce(function(e,t){return e.concat(["md-icon ~ "+t,".md-icon ~ "+t])},[]).join(","),d=e.reduce(function(e,t){return e.concat([t+" ~ md-icon",t+" ~ .md-icon"])},[]).join(",");return{restrict:"E",compile:function(e){var n=e[0].querySelector(t),o=e[0].querySelector(d);return function(e,t){i(t),(n||o)&&a(function(){var e=t[0].querySelector("md-icon")||t[0].querySelector(".md-icon");n&&e&&t.addClass("md-icon-left"),o&&e&&t.addClass("md-icon-right")})}},controller:n};function n(e,t,n,o){var i=this;i.isErrorGetter=n.mdIsError&&r(n.mdIsError),i.delegateClick=function(){i.input.focus()},i.element=t,i.setFocused=function(e){t.toggleClass("md-input-focused",!!e)},i.setHasValue=function(e){t.toggleClass("md-input-has-value",!!e)},i.setHasPlaceholder=function(e){t.toggleClass("md-input-has-placeholder",!!e)},i.setInvalid=function(e){e?o.addClass(t,"md-input-invalid"):o.removeClass(t,"md-input-invalid")},e.$watch(function(){return i.label&&i.input},function(e){e&&!i.label.attr("for")&&i.label.attr("for",i.input.attr("id"))})}}function n(b,v,c,E,$){return{restrict:"E",require:["^?mdInputContainer","?ngModel","?^form"],link:function(m,u,p,e){var h=e[0],f=!!e[1],g=e[1]||b.fakeNgModel(),t=e[2],n=ce.isDefined(p.readonly),o=b.parseAttributeBoolean(p.mdNoAsterisk),i=u[0].tagName.toLowerCase();if(!h)return;{if("hidden"===p.type)return void u.attr("aria-hidden","true");if(h.input){if(h.input[0].contains(u[0]))return;throw new Error("<md-input-container> can only have *one* <input>, <textarea> or <md-select> child element!")}}h.input=u,h.label&&p.$observe("required",function(e){h.label.toggleClass("md-required",e&&!o)});var r=ce.element('<div class="md-errors-spacer">');u.after(r);var a=ce.isString(p.placeholder)?p.placeholder.trim():"";h.label||a.length||c.expect(u,"aria-label");u.addClass("md-input"),u.attr("id")||u.attr("id","input_"+b.nextUid());"input"===i&&"number"===p.type&&p.min&&p.max&&!p.step?u.attr("step","any"):"textarea"===i&&function(){var t=!p.hasOwnProperty("mdNoAutogrow");if(function(){if(!p.hasOwnProperty("mdNoResize")){var e=ce.element('<div class="md-resize-handle"></div>'),t=!1,n=0,o=h.element,i=$.register(e,"drag",{horizontal:!1});u.wrap('<div class="md-resize-wrapper">').after(e),e.on("mousedown",r),o.on("$md.dragstart",a).on("$md.drag",d).on("$md.dragend",s),m.$on("$destroy",function(){e.off("mousedown",r).remove(),o.off("$md.dragstart",a).off("$md.drag",d).off("$md.dragend",s),i(),i=o=e=null})}function r(e){e.preventDefault(),t=!0,e.clientY,n=parseFloat(u.css("height"))||u.prop("offsetHeight")}function a(e){t&&(e.preventDefault(),l(),o.addClass("md-input-resized"))}function d(e){t&&u.css("height",n+e.pointer.distanceY+"px")}function s(e){t&&(t=!1,o.removeClass("md-input-resized"))}}(),!t)return;var r=p.hasOwnProperty("rows")?parseInt(p.rows):NaN,a=p.hasOwnProperty("maxRows")?parseInt(p.maxRows):NaN,n=m.$on("md-resize-textarea",o),d=null,s=u[0];E(function(){b.nextTick(o)},10,!1),u.on("input",o),f&&g.$formatters.push(i);r||u.attr("rows",1);function o(){u.attr("rows",1).css("height","auto").addClass("md-no-flex");var e,t,n=(e=s.offsetHeight,t=s.scrollHeight-e,e+Math.max(t,0));if(!d){var o=u[0].style.padding||"";d=u.css("padding",0).prop("offsetHeight"),u[0].style.padding=o}if(r&&d&&(n=Math.max(n,d*r)),a&&d){var i=d*a;i<n?(u.attr("md-no-autogrow",""),n=i):u.removeAttr("md-no-autogrow")}d&&u.attr("rows",Math.round(n/d)),u.css("height",n+"px").removeClass("md-no-flex")}function i(e){return b.nextTick(o),e}function l(){if(t&&(t=!1,ce.element(v).off("resize",o),n&&n(),u.attr("md-no-autogrow","").off("input",o),f)){var e=g.$formatters.indexOf(i);-1<e&&g.$formatters.splice(e,1)}}if(ce.element(v).on("resize",o),m.$on("$destroy",l),p.hasOwnProperty("mdDetectHidden")){var e=(c=!1,function(){var e=0===s.offsetHeight;!1===e&&!0===c&&o(),c=e});m.$watch(function(){return b.nextTick(e,!1),!0})}var c}();f||l();var d=h.isErrorGetter||function(){return g.$invalid&&(g.$touched||t&&t.$submitted)};m.$watch(d,h.setInvalid),p.ngValue&&p.$observe("value",l);g.$parsers.push(s),g.$formatters.push(s),u.on("input",l),n||u.on("focus",function(e){b.nextTick(function(){h.setFocused(!0)})}).on("blur",function(e){b.nextTick(function(){h.setFocused(!1),l()})});function s(e){return h.setHasValue(!g.$isEmpty(e)),e}function l(){h.setHasValue(0<u.val().length||(u[0].validity||{}).badInput)}m.$on("$destroy",function(){h.setFocused(!1),h.setHasValue(!1),h.input=null})}}}function o(p,h){return{restrict:"A",require:["ngModel","^mdInputContainer"],link:function(e,o,t,n){var i=parseInt(t.mdMaxlength);isNaN(i)&&(i=-1);var r,a,d=n[0],s=n[1],l=!ce.isDefined(t.ngTrim)||h.parseAttributeBoolean(t.ngTrim),c="password"===t.type;function m(e){return(e=l&&!c&&ce.isString(e)?e.trim():e)!==me&&null!==e||(e=""),String(e).length}function u(){r&&r.parent()&&r.text(m(o.val())+" / "+i)}e.$watch(t.mdMaxlength,function(e){i=e}),d.$validators["md-maxlength"]=function(e,t){if(!ce.isNumber(i)||i<0)return!0;u();var n=o.val()||t;return n!==me&&null!==n||(n=""),n=l&&!c&&ce.isString(n)?n.trim():n,String(n).length<=i},d.$isEmpty=function(e){return 0===m(e)},h.nextTick(function(){a=ce.element(s.element[0].querySelector(".md-errors-spacer")),r=ce.element('<div class="md-char-counter">'),a.append(r),t.$observe("ngTrim",function(e){l=!ce.isDefined(e)||h.parseAttributeBoolean(e)}),e.$watch(t.mdMaxlength,function(e){ce.isNumber(e)&&0<e?(r.parent().length||p.enter(r,a),u()):p.leave(r)})})}}}function i(d){return{restrict:"A",require:"^^?mdInputContainer",priority:200,link:{pre:function(e,t,n,o){if(!o)return;var i=o.element.find("label"),r=o.element.attr("md-no-float");if(i&&i.length||""===r||e.$eval(r))return void o.setHasPlaceholder(!0);if("MD-SELECT"!==t[0].nodeName){var a=ce.element('<label ng-click="delegateClick()" tabindex="-1" aria-hidden="true">'+n.placeholder+"</label>");n.$set("placeholder",null),o.element.addClass("md-icon-float").prepend(a),d(a)(e)}}}}}function r(a,d){return{restrict:"A",link:function(e,t,n){if("INPUT"!==t[0].nodeName&&"TEXTAREA"!==t[0].nodeName)return;var o=!1;function i(){d(function(){a[0].activeElement===t[0]&&t[0].select(),o=!1},1,!(o=!0))}function r(e){o&&e.preventDefault()}t.on("focus",i).on("mouseup",r),e.$on("$destroy",function(){t.off("focus",i).off("mouseup",r)})}}}B._mdMocksIncluded&&e.service("$$mdInput",function(){return{messages:{getElement:v}}}).service("mdInputInvalidAnimation",m).service("mdInputMessagesAnimation",u).service("mdInputMessageAnimation",p);var a,d,s,l=["ngIf","ngShow","ngHide","ngSwitchWhen","ngSwitchDefault"];function c(t){return{restrict:"EA",compile:function(n){if(o(n))i(n);else if(function(){var e=n[0];for(;e=e.parentNode;)if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!0;return!1}())return function(e,t){o(t)&&i(n)};function o(e){return!!t.getClosest(e,"md-input-container")}function i(e){e.toggleClass("md-input-message-animation",!0)}},priority:100}}function m(e,t,n){return E(e,t,n),{addClass:function(e,t,n){h(e,n)}}}function u(e,t,n){return E(e,t,n),{enter:function(e,t){h(e,t)},leave:function(e,t){f(e,t)},addClass:function(e,t,n){"ng-hide"==t?f(e,n):n()},removeClass:function(e,t,n){"ng-hide"==t?h(e,n):n()}}}function p(e,t,n,o){return E(e,t,n),{enter:function(e,t){g(e).start().done(t)},leave:function(e,t){b(e).start().done(t)}}}function h(e,t){var n,o=[],i=v(e),r=i.children();0!=i.length&&0!=r.length?(ce.forEach(r,function(e){n=g(ce.element(e)),o.push(n.start())}),a.all(o,t)):t()}function f(e,t){var n,o=[],i=v(e),r=i.children();0!=i.length&&0!=r.length?(ce.forEach(r,function(e){n=b(ce.element(e)),o.push(n.start())}),a.all(o,t)):t()}function g(e){var t=parseInt(B.getComputedStyle(e[0]).height),n=parseInt(B.getComputedStyle(e[0]).marginTop),o=v(e),i=e.controller("mdInputContainer").element;return-t<n||o.hasClass("md-auto-hide")&&!i.hasClass("md-input-invalid")?d(e,{}):d(e,{event:"enter",structural:!0,from:{opacity:0,"margin-top":-t+"px"},to:{opacity:1,"margin-top":"0"},duration:.3})}function b(e){var t=e[0].offsetHeight,n=B.getComputedStyle(e[0]);return 0===parseInt(n.opacity)?d(e,{}):d(e,{event:"leave",structural:!0,from:{opacity:1,"margin-top":0},to:{opacity:0,"margin-top":-t+"px"},duration:.3})}function v(e){return e.hasClass("md-input-messages-animation")?e:e.hasClass("md-input-message-animation")?ce.element(s.getClosest(e,function(e){return e.classList.contains("md-input-messages-animation")})):ce.element(e[0].querySelector(".md-input-messages-animation"))}function E(e,t,n){a=e,d=t,s=n}}(),function(){function e(t){return{restrict:"E",compile:function(e){return e[0].setAttribute("role","list"),t}}}function t(u,p,h,f){var g=["md-checkbox","md-switch","md-menu"];return{restrict:"E",controller:"MdListController",compile:function(r,a){var e,i,t,n=r[0].querySelectorAll(".md-secondary"),o=r;if(r[0].setAttribute("role","listitem"),a.ngClick||a.ngDblclick||a.ngHref||a.href||a.uiSref||a.ngAttrUiSref)l("button");else if(!r.hasClass("md-no-proxy")){for(var d,s=0;d=g[s];++s)if(i=r[0].querySelector(d)){e=!0;break}e?l("div"):r.addClass("md-no-proxy")}function l(e){if("div"==e)(o=ce.element('<div class="md-no-style md-list-item-inner">')).append(r.contents()),r.addClass("md-proxy-focus");else{o=ce.element('<div class="md-button md-no-style">   <div class="md-list-item-inner"></div></div>');var t=ce.element('<md-button class="md-no-style"></md-button>');c(r[0],t[0]),t.attr("aria-label")||t.attr("aria-label",u.getText(r)),r.hasClass("md-no-focus")&&t.addClass("md-no-focus"),o.prepend(t),o.children().eq(1).append(r.contents()),r.addClass("_md-button-wrap")}r[0].setAttribute("tabindex","-1"),r.append(o)}function c(t,n,e){var o=h.prefixer(["ng-if","ng-click","ng-dblclick","aria-label","ng-disabled","ui-sref","href","ng-href","rel","target","ng-attr-ui-sref","ui-sref-opts","download"]);e&&(o=o.concat(h.prefixer(e))),ce.forEach(o,function(e){t.hasAttribute(e)&&(n.setAttribute(e,t.getAttribute(e)),t.removeAttribute(e))})}function m(e){for(var t=e.attributes,n=0;n<t.length;n++)if("ngClick"===a.$normalize(t[n].name))return!0;return!1}return t=ce.element('<div class="md-secondary-container">'),ce.forEach(n,function(e){!function(e,t){if(e&&("MD-BUTTON"!=(o=e.nodeName.toUpperCase())&&"BUTTON"!=o)&&e.hasAttribute("ng-click")){u.expect(e,"aria-label");var n=ce.element('<md-button class="md-secondary md-icon-button">');c(e,n[0],["ng-if","ng-hide","ng-show"]),e.setAttribute("tabindex","-1"),n.append(e),e=n[0]}var o,i;!e||m(e)&&(a.ngClick||(i=e,-1==g.indexOf(i.nodeName.toLowerCase())))||ce.element(e).removeClass("md-secondary"),r.addClass("md-with-secondary"),t.append(e)}(e,t)}),o.append(t),function(){for(var e,t,n=["md-switch","md-checkbox"],o=0;t=n[o];++o)if((e=r.find(t)[0])&&!e.hasAttribute("aria-label")){var i=r.find("p")[0];if(!i)return;e.setAttribute("aria-label","Toggle "+i.textContent)}}(),e&&"MD-MENU"===i.nodeName&&function(){var e=ce.element(i),t=e.parent().hasClass("md-secondary-container")||i.parentNode.firstElementChild!==i,n="left";t&&(n="right");e.attr("md-position-mode")||e.attr("md-position-mode",n+" target");var o=e.children().eq(0);m(o[0])||o.attr("ng-click","$mdMenu.open($event)");o.attr("aria-label")||o.attr("aria-label","Open List Menu")}(),function(e,i,t,n){i.addClass("_md");var o=[],r=i[0].firstElementChild,a=i.hasClass("_md-button-wrap")?r.firstElementChild:r,d=a&&m(a),s=i.hasClass("md-no-proxy");r&&r.children&&!d&&!s&&ce.forEach(g,function(e){ce.forEach(r.querySelectorAll(e+":not(.md-secondary)"),function(e){o.push(e)})}),(1==o.length||d)&&(i.addClass("md-clickable"),d||n.attachRipple(e,ce.element(i[0].querySelector(".md-no-style")))),o.length&&ce.forEach(o,function(t){t=ce.element(t),e.mouseActive=!1,t.on("mousedown",function(){e.mouseActive=!0,f(function(){e.mouseActive=!1},100)}).on("focus",function(){!1===e.mouseActive&&i.addClass("md-focused"),t.on("blur",function e(){i.removeClass("md-focused"),t.off("blur",e)})})});var l=function(e){if("INPUT"!=e.target.nodeName&&"TEXTAREA"!=e.target.nodeName&&!e.target.isContentEditable){var t=e.which||e.keyCode;t==p.KEY_CODE.SPACE&&a&&(a.click(),e.preventDefault(),e.stopPropagation())}};d||o.length||a&&a.addEventListener("keypress",l);i.off("click"),i.off("keypress"),1==o.length&&a&&i.children().eq(0).on("click",function(t){if(!function(e){var t=["md-slider"];if(!e.path)return-1!==t.indexOf(e.target.tagName.toLowerCase());for(var n=e.path.indexOf(i.children()[0]),o=0;o<n;o++)if(-1!==t.indexOf(e.path[o].tagName.toLowerCase()))return!0}(t)){var e=h.getClosest(t.target,"BUTTON");!e&&a.contains(t.target)&&ce.forEach(o,function(e){t.target===e||e.contains(t.target)||("MD-MENU"===e.nodeName&&(e=e.children[0]),ce.element(e).triggerHandler("click"))})}});e.$on("$destroy",function(){a&&a.removeEventListener("keypress",l)})}}}}function n(e,t,n){this.attachRipple=function(e,t){n.attach(e,t,{})}}n.$inject=["$scope","$element","$mdListInkRipple"],e.$inject=["$mdTheming"],t.$inject=["$mdAria","$mdConstant","$mdUtil","$timeout"],ce.module("material.components.list",["material.core"]).controller("MdListController",n).directive("mdList",e).directive("mdListItem",t)}(),ce.module("material.components.menu",["material.core","material.components.backdrop"]),function(){function e(i,t,r,a,d,o,e,n,s){var l,c,m=d.prefixer(),u=this;this.nestLevel=parseInt(t.mdNestLevel,10)||0,this.init=function(e,t){t=t||{},l=e,(c=r[0].querySelector(m.buildSelector(["ng-click","ng-mouseenter"]))).setAttribute("aria-expanded","false"),this.isInMenuBar=t.isInMenuBar,this.nestedMenus=d.nodesToArray(l[0].querySelectorAll(".md-nested-menu")),l.on("$mdInterimElementRemove",function(){u.isOpen=!1,d.nextTick(function(){u.onIsOpenChanged(u.isOpen)})}),d.nextTick(function(){u.onIsOpenChanged(u.isOpen)});var n="menu_container_"+d.nextUid();l.attr("id",n),ce.element(c).attr({"aria-owns":n,"aria-haspopup":"true"}),a.$on("$destroy",ce.bind(this,function(){this.disableHoverListener(),i.destroy()})),l.on("$destroy",function(){i.destroy()})};var p,h,f=[];this.enableHoverListener=function(){f.push(e.$on("$mdMenuOpen",function(e,t){l[0].contains(t[0])&&(u.currentlyOpenMenu=t.controller("mdMenu"),u.isAlreadyOpening=!1,u.currentlyOpenMenu.registerContainerProxy(u.triggerContainerProxy.bind(u)))})),f.push(e.$on("$mdMenuClose",function(e,t){l[0].contains(t[0])&&(u.currentlyOpenMenu=me)})),(h=ce.element(d.nodesToArray(l[0].children[0].children))).on("mouseenter",u.handleMenuItemHover),h.on("mouseleave",u.handleMenuItemMouseLeave)},this.disableHoverListener=function(){for(;f.length;)f.shift()();h&&h.off("mouseenter",u.handleMenuItemHover),h&&h.off("mouseleave",u.handleMenuItemMouseLeave)},this.handleMenuItemHover=function(e){if(!u.isAlreadyOpening){var t=e.target.querySelector("md-menu")||d.getClosest(e.target,"MD-MENU");p=o(function(){if(t&&(t=ce.element(t).controller("mdMenu")),u.currentlyOpenMenu&&u.currentlyOpenMenu!=t){var e=u.nestLevel+1;u.currentlyOpenMenu.close(!0,{closeTo:e}),u.isAlreadyOpening=!!t,t&&t.open()}else t&&!t.isOpen&&t.open&&(u.isAlreadyOpening=!!t,t&&t.open())},t?100:250);var n=e.currentTarget.querySelector(".md-button:not([disabled])");n&&n.focus()}},this.handleMenuItemMouseLeave=function(){p&&(o.cancel(p),p=me)},this.open=function(e){e&&e.stopPropagation(),e&&e.preventDefault(),u.isOpen||(u.enableHoverListener(),u.isOpen=!0,d.nextTick(function(){u.onIsOpenChanged(u.isOpen)}),(c=c||(e?e.target:r[0])).setAttribute("aria-expanded","true"),a.$emit("$mdMenuOpen",r),i.show({scope:a,mdMenuCtrl:u,nestLevel:u.nestLevel,element:l,target:c,preserveElement:!0,parent:"body"}).finally(function(){c.setAttribute("aria-expanded","false"),u.disableHoverListener()}))},this.onIsOpenChanged=function(e){e?(l.attr("aria-hidden","false"),r[0].classList.add("md-open"),ce.forEach(u.nestedMenus,function(e){e.classList.remove("md-open")})):(l.attr("aria-hidden","true"),r[0].classList.remove("md-open")),a.$mdMenuIsOpen=u.isOpen},this.focusMenuContainer=function(){var e=l[0].querySelector(m.buildSelector(["md-menu-focus-target","md-autofocus"]));e||(e=l[0].querySelector(".md-button:not([disabled])")),e.focus()},this.registerContainerProxy=function(e){this.containerProxy=e},this.triggerContainerProxy=function(e){this.containerProxy&&this.containerProxy(e)},this.destroy=function(){return u.isOpen?i.destroy():n.when(!1)},this.close=function(e,t){if(u.isOpen){u.isOpen=!1,d.nextTick(function(){u.onIsOpenChanged(u.isOpen)});var n=ce.extend({},t,{skipFocus:e});if(a.$emit("$mdMenuClose",r,n),i.hide(null,t),!e){var o=u.restoreFocusTo||r.find("button")[0];o instanceof ce.element&&(o=o[0]),o&&o.focus()}}},this.positionMode=function(){var e=(t.mdPositionMode||"target").split(" ");return 1===e.length&&e.push(e[0]),{left:e[0],top:e[1]}},this.offsets=function(){var e=(t.mdOffset||"0 0").split(" ").map(parseFloat);if(2===e.length)return{left:e[0],top:e[1]};if(1===e.length)return{top:e[0],left:e[0]};throw Error("Invalid offsets specified. Please follow format <x, y> or <n>")},a.$mdMenu={open:this.open,close:this.close},a.$mdOpenMenu=ce.bind(this,function(){return s.warn("mdMenu: The $mdOpenMenu method is deprecated. Please use `$mdMenu.open`."),this.open.apply(this,arguments)})}e.$inject=["$mdMenu","$attrs","$element","$scope","$mdUtil","$timeout","$rootScope","$q","$log"],ce.module("material.components.menu").controller("mdMenuCtrl",e)}(),function(){function e(a){var d="Invalid HTML for md-menu: ";return{restrict:"E",require:["mdMenu","?^mdMenuBar"],controller:"mdMenuCtrl",scope:!0,compile:function(e){e.addClass("md-menu");var t=e.children()[0],n=a.prefixer();n.hasAttribute(t,"ng-click")||(t=t.querySelector(n.buildSelector(["ng-click","ng-mouseenter"]))||t);var o="MD-BUTTON"===t.nodeName||"BUTTON"===t.nodeName;t&&o&&!t.hasAttribute("type")&&t.setAttribute("type","button");if(!t)throw Error(d+"Expected the menu to have a trigger element.");if(2!==e.children().length)throw Error(d+"Expected two children elements. The second element must have a `md-menu-content` element.");t&&t.setAttribute("aria-haspopup","true");var i=e[0].querySelectorAll("md-menu"),r=parseInt(e[0].getAttribute("md-nest-level"),10)||0;i&&ce.forEach(a.nodesToArray(i),function(e){e.hasAttribute("md-position-mode")||e.setAttribute("md-position-mode","cascade"),e.classList.add("_md-nested-menu"),e.setAttribute("md-nest-level",r+1)});return s}};function s(e,t,n,o){var i=o[0],r=!!o[1],a=ce.element('<div class="_md md-open-menu-container md-whiteframe-z2"></div>'),d=t.children()[1];t.addClass("_md"),d.hasAttribute("role")||d.setAttribute("role","menu"),a.append(d),t.on("$destroy",function(){a.remove()}),t.append(a),a[0].style.display="none",i.init(a,{isInMenuBar:r})}}e.$inject=["$mdUtil"],ce.module("material.components.menu").directive("mdMenu",e)}(),function(){function e(e){t.$inject=["$mdUtil","$mdTheming","$mdConstant","$document","$window","$q","$$rAF","$animateCss","$animate","$log"];var w=8;return e("$mdMenu").setDefaults({methods:["target"],options:t});function t(C,l,c,M,T,m,u,p,h,f){var A=C.prefixer(),g=C.dom.animator;return{parent:"body",onShow:function(a,n,d){(function(){if(!d.target)throw Error("$mdMenu.show() expected a target to animate from in options.target");ce.extend(d,{alreadyOpen:!1,isRemoved:!1,target:ce.element(d.target),parent:ce.element(d.parent),menuContentEl:ce.element(n[0].querySelector("md-menu-content"))})})(),d.menuContentEl[0]?l.inherit(d.menuContentEl,d.target):f.warn("$mdMenu: Menu elements should always contain a `md-menu-content` element,otherwise interactivity features will not work properly.",n);return d.cleanupResizing=(o=n,i=d,r=u.throttle(function(){if(!d.isRemoved){var e=v(o,i);o.css(g.toCss(e))}}),T.addEventListener("resize",r),T.addEventListener("orientationchange",r),function(){T.removeEventListener("resize",r),T.removeEventListener("orientationchange",r)}),d.hideBackdrop=(e=a,t=d,t.nestLevel?ce.noop:(t.disableParentScroll&&!C.getClosest(t.target,"MD-DIALOG")?t.restoreScroll=C.disableScrollAround(t.element,t.parent):t.disableParentScroll=!1,t.hasBackdrop&&(t.backdrop=C.createBackdrop(e,"md-menu-backdrop md-click-catcher"),h.enter(t.backdrop,M[0].body)),function(){t.backdrop&&t.backdrop.remove(),t.disableParentScroll&&t.restoreScroll()})),(d.parent.append(n),n[0].style.display="",m(function(e){var t=v(n,d);n.removeClass("md-leave"),p(n,{addClass:"md-active",from:g.toCss(t),to:g.toCss({transform:""})}).start().then(e)})).then(function(e){return d.alreadyOpen=!0,d.cleanupInteraction=function(){if(!d.menuContentEl[0])return ce.noop;d.menuContentEl.on("keydown",i),d.menuContentEl[0].addEventListener("click",r,!0);var e=d.menuContentEl[0].querySelector(A.buildSelector(["md-menu-focus-target","md-autofocus"]));if(!e)for(var t=d.menuContentEl[0].children.length,n=0;n<t;n++){var o=d.menuContentEl[0].children[n];if(e=o.querySelector(".md-button:not([disabled])"))break;if(o.firstElementChild&&!o.firstElementChild.disabled){e=o.firstElementChild;break}}return e&&e.focus(),function(){d.menuContentEl.off("keydown",i),d.menuContentEl[0].removeEventListener("click",r,!0)};function i(e){var t;switch(e.keyCode){case c.KEY_CODE.ESCAPE:d.mdMenuCtrl.close(!1,{closeAll:!0}),t=!0;break;case c.KEY_CODE.TAB:d.mdMenuCtrl.close(!1,{closeAll:!0}),t=!1;break;case c.KEY_CODE.UP_ARROW:b(e,d.menuContentEl,d,-1)||d.nestLevel||d.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case c.KEY_CODE.DOWN_ARROW:b(e,d.menuContentEl,d,1)||d.nestLevel||d.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case c.KEY_CODE.LEFT_ARROW:d.nestLevel?d.mdMenuCtrl.close():d.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case c.KEY_CODE.RIGHT_ARROW:var n=C.getClosest(e.target,"MD-MENU");n&&n!=d.parent[0]?e.target.click():d.mdMenuCtrl.triggerContainerProxy(e),t=!0}t&&(e.preventDefault(),e.stopImmediatePropagation())}function r(e){var t=e.target;do{if(t==d.menuContentEl[0])return;if((o(t,["ng-click","ng-href","ui-sref"])||"BUTTON"==t.nodeName||"MD-BUTTON"==t.nodeName)&&!o(t,["md-prevent-menu-close"])){var n=C.getClosest(t,"MD-MENU");t.hasAttribute("disabled")||n&&n!=d.parent[0]||a.$apply(function(){d.mdMenuCtrl.close(!0,{closeAll:!0})});break}}while(t=t.parentNode);function o(e,t){if(!e)return!1;for(var n,o=0;n=t[o];++o)if(A.hasAttribute(e,n))return!0;return!1}}}(),d.cleanupBackdrop=d.backdrop?(d.backdrop.on("click",s),function(){d.backdrop.off("click",s)}):ce.noop,n.addClass("md-clickable"),e});var e,t;var o,i,r;function s(e){e.preventDefault(),e.stopPropagation(),a.$apply(function(){d.mdMenuCtrl.close(!0,{closeAll:!0})})}},onRemove:function(e,n,o){return o.cleanupInteraction(),o.cleanupBackdrop(),o.cleanupResizing(),o.hideBackdrop(),n.removeClass("md-clickable"),!0===o.$destroy?t():p(n,{addClass:"md-leave"}).start().then(t);function t(){var e,t;n.removeClass("md-active"),e=n,(t=o).preserveElement?i(e).style.display="none":i(e).parentNode===i(t.parent)&&i(t.parent).removeChild(i(e)),o.alreadyOpen=!1}},hasBackdrop:!0,disableParentScroll:!0,skipCompile:!0,preserveScope:!0,multiple:!0,themable:!0};function b(e,t,n,o){for(var i,r=C.getClosest(e.target,"MD-MENU-ITEM"),a=C.nodesToArray(t[0].children),d=a.indexOf(r)+o;0<=d&&d<a.length;d+=o){if(i=s(a[d].querySelector(".md-button")))break}return i}function s(e){if(e&&-1!=e.getAttribute("tabindex"))return e.focus(),M[0].activeElement==e}function v(e,t){var n,o=e[0],i=e[0].firstElementChild,r=i.getBoundingClientRect(),a=M[0].body.getBoundingClientRect(),d=T.getComputedStyle(i),s=t.target[0].querySelector(A.buildSelector("md-menu-origin"))||t.target[0],l=s.getBoundingClientRect(),c={left:a.left+w,top:Math.max(a.top,0)+w,bottom:Math.max(a.bottom,Math.max(a.top,0)+a.height)-w,right:a.right-w},m={top:0,left:0,right:0,bottom:0},u={top:0,left:0,right:0,bottom:0},p=t.mdMenuCtrl.positionMode();"target"!==p.top&&"target"!==p.left&&"target-right"!==p.left||(n=function(){for(var e=0;e<i.children.length;++e)if("none"!=T.getComputedStyle(i.children[e]).display)return i.children[e]}())&&(m=(n=(n=n.firstElementChild||n).querySelector(A.buildSelector("md-menu-align-target"))||n).getBoundingClientRect(),u={top:parseFloat(o.style.top||0),left:parseFloat(o.style.left||0)});var h={},f="top ";switch(p.top){case"target":h.top=u.top+l.top-m.top;break;case"cascade":h.top=l.top-parseFloat(d.paddingTop)-s.style.top;break;case"bottom":h.top=l.top+l.height;break;default:throw new Error('Invalid target mode "'+p.top+'" specified for md-menu on Y axis.')}var g="rtl"===C.bidi();switch(p.left){case"target":h.left=u.left+l.left-m.left,f+=g?"right":"left";break;case"target-left":h.left=l.left,f+="left";break;case"target-right":h.left=l.right-r.width+(r.right-m.right),f+="right";break;case"cascade":var b=g?l.left-r.width<c.left:l.right+r.width<c.right;h.left=b?l.right-s.style.left:l.left-s.style.left-r.width,f+=b?"left":"right";break;case"right":g?(h.left=l.right-l.width,f+="left"):(h.left=l.right-r.width,f+="right");break;case"left":g?(h.left=l.right-r.width,f+="right"):(h.left=l.left,f+="left");break;default:throw new Error('Invalid target mode "'+p.left+'" specified for md-menu on X axis.')}var v,E=t.mdMenuCtrl.offsets();h.top+=E.top,h.left+=E.left,(v=h).top=Math.max(Math.min(v.top,c.bottom-o.offsetHeight),c.top),v.left=Math.max(Math.min(v.left,c.right-o.offsetWidth),c.left);var $=Math.round(100*Math.min(l.width/o.offsetWidth,1))/100,y=Math.round(100*Math.min(l.height/o.offsetHeight,1))/100;return{top:Math.round(h.top),left:Math.round(h.left),transform:t.alreadyOpen?me:C.supplant("scale({0},{1})",[$,y]),transformOrigin:f}}}function i(e){return e instanceof ce.element&&(e=e[0]),e}}e.$inject=["$$interimElementProvider"],ce.module("material.components.menu").provider("$mdMenu",e)}(),ce.module("material.components.menuBar",["material.core","material.components.icon","material.components.menu"]),function(){e.$inject=["$scope","$rootScope","$element","$attrs","$mdConstant","$document","$mdUtil","$timeout"],ce.module("material.components.menuBar").controller("MenuBarController",e);var l=["handleKeyDown","handleMenuHover","scheduleOpenHoveredMenu","cancelScheduledOpen"];function e(e,t,n,o,i,r,a,d){this.$element=n,this.$attrs=o,this.$mdConstant=i,this.$mdUtil=a,this.$document=r,this.$scope=e,this.$rootScope=t,this.$timeout=d;var s=this;ce.forEach(l,function(e){s[e]=ce.bind(s,s[e])})}e.prototype.init=function(){var r=this.$element,a=this.$mdUtil,e=this.$scope,d=this,t=[];r.on("keydown",this.handleKeyDown),this.parentToolbar=a.getClosest(r,"MD-TOOLBAR"),t.push(this.$rootScope.$on("$mdMenuOpen",function(e,t){-1!=d.getMenus().indexOf(t[0])&&(r[0].classList.add("md-open"),t[0].classList.add("md-open"),d.currentlyOpenMenu=t.controller("mdMenu"),d.currentlyOpenMenu.registerContainerProxy(d.handleKeyDown),d.enableOpenOnHover())})),t.push(this.$rootScope.$on("$mdMenuClose",function(e,t,n){var o=d.getMenus();if(-1!=o.indexOf(t[0])&&(r[0].classList.remove("md-open"),t[0].classList.remove("md-open")),r[0].contains(t[0])){for(var i=t[0];i&&-1==o.indexOf(i);)i=a.getClosest(i,"MD-MENU",!0);i&&(n.skipFocus||i.querySelector("button:not([disabled])").focus(),d.currentlyOpenMenu=me,d.disableOpenOnHover(),d.setKeyboardMode(!0))}})),e.$on("$destroy",function(){for(d.disableOpenOnHover();t.length;)t.shift()()}),this.setKeyboardMode(!0)},e.prototype.setKeyboardMode=function(e){e?this.$element[0].classList.add("md-keyboard-mode"):this.$element[0].classList.remove("md-keyboard-mode")},e.prototype.enableOpenOnHover=function(){if(!this.openOnHoverEnabled){var e=this;e.openOnHoverEnabled=!0,e.parentToolbar&&(e.parentToolbar.classList.add("md-has-open-menu"),e.$mdUtil.nextTick(function(){ce.element(e.parentToolbar).on("click",e.handleParentClick)},!1)),ce.element(e.getMenus()).on("mouseenter",e.handleMenuHover)}},e.prototype.handleMenuHover=function(e){this.setKeyboardMode(!1),this.openOnHoverEnabled&&this.scheduleOpenHoveredMenu(e)},e.prototype.disableOpenOnHover=function(){this.openOnHoverEnabled&&(this.openOnHoverEnabled=!1,this.parentToolbar&&(this.parentToolbar.classList.remove("md-has-open-menu"),ce.element(this.parentToolbar).off("click",this.handleParentClick)),ce.element(this.getMenus()).off("mouseenter",this.handleMenuHover))},e.prototype.scheduleOpenHoveredMenu=function(e){var t=ce.element(e.currentTarget).controller("mdMenu");this.setKeyboardMode(!1),this.scheduleOpenMenu(t)},e.prototype.scheduleOpenMenu=function(e){var t=this,n=this.$timeout;e!=t.currentlyOpenMenu&&(n.cancel(t.pendingMenuOpen),t.pendingMenuOpen=n(function(){t.pendingMenuOpen=me,t.currentlyOpenMenu&&t.currentlyOpenMenu.close(!0,{closeAll:!0}),e.open()},200,!1))},e.prototype.handleKeyDown=function(e){var t,n,o,i=this.$mdConstant.KEY_CODE,r=this.currentlyOpenMenu,a=r&&r.isOpen;switch(this.setKeyboardMode(!0),e.keyCode){case i.DOWN_ARROW:r?r.focusMenuContainer():this.openFocusedMenu(),t=!0;break;case i.UP_ARROW:r&&r.close(),t=!0;break;case i.LEFT_ARROW:n=this.focusMenu(-1),a&&(o=ce.element(n).controller("mdMenu"),this.scheduleOpenMenu(o)),t=!0;break;case i.RIGHT_ARROW:n=this.focusMenu(1),a&&(o=ce.element(n).controller("mdMenu"),this.scheduleOpenMenu(o)),t=!0}t&&(e&&e.preventDefault&&e.preventDefault(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation())},e.prototype.focusMenu=function(e){var t=this.getMenus(),n=this.getFocusedMenuIndex();-1==n&&(n=this.getOpenMenuIndex());var o=!1;if(-1==n?o=!(n=0):(e<0&&0<n||0<e&&n<t.length-e)&&(n+=e,o=!0),o)return t[n].querySelector("button").focus(),t[n]},e.prototype.openFocusedMenu=function(){var e=this.getFocusedMenu();e&&ce.element(e).controller("mdMenu").open()},e.prototype.getMenus=function(){var e=this.$element;return this.$mdUtil.nodesToArray(e[0].children).filter(function(e){return"MD-MENU"==e.nodeName})},e.prototype.getFocusedMenu=function(){return this.getMenus()[this.getFocusedMenuIndex()]},e.prototype.getFocusedMenuIndex=function(){var e=this.$mdUtil.getClosest(this.$document[0].activeElement,"MD-MENU");return e?this.getMenus().indexOf(e):-1},e.prototype.getOpenMenuIndex=function(){for(var e=this.getMenus(),t=0;t<e.length;++t)if(e[t].classList.contains("md-open"))return t;return-1},e.prototype.handleParentClick=function(e){var t=this.querySelector("md-menu.md-open");t&&!t.contains(e.target)&&ce.element(t).controller("mdMenu").close(!0,{closeAll:!0})}}(),function(){function e(n,i){return{restrict:"E",require:"mdMenuBar",controller:"MenuBarController",compile:function(e,t){return t.ariaRole||e[0].setAttribute("role","menubar"),ce.forEach(e[0].children,function(e){if("MD-MENU"==e.nodeName){e.hasAttribute("md-position-mode")||(e.setAttribute("md-position-mode","left bottom"),e.querySelector("button, a, md-button").setAttribute("role","menuitem"));var t=n.nodesToArray(e.querySelectorAll("md-menu-content"));ce.forEach(t,function(e){e.classList.add("md-menu-bar-menu"),e.classList.add("md-dense"),e.hasAttribute("width")||e.setAttribute("width",5)})}}),e.find("md-menu-item").addClass("md-in-menu-bar"),function(e,t,n,o){t.addClass("_md"),i(e,t),o.init()}}}}e.$inject=["$mdUtil","$mdTheming"],ce.module("material.components.menuBar").directive("mdMenuBar",e)}(),ce.module("material.components.menuBar").directive("mdMenuDivider",function(){return{restrict:"E",compile:function(e,t){t.role||e[0].setAttribute("role","separator")}}}),function(){function e(e,t,n){this.$element=t,this.$attrs=n,this.$scope=e}e.$inject=["$scope","$element","$attrs"],ce.module("material.components.menuBar").controller("MenuItemController",e),e.prototype.init=function(e){var t=this.$element,n=this.$attrs;this.ngModel=e,"checkbox"!=n.type&&"radio"!=n.type||(this.mode=n.type,this.iconEl=t[0].children[0],this.buttonEl=t[0].children[1],e&&this.initClickListeners())},e.prototype.clearNgAria=function(){var t=this.$element[0];ce.forEach(["role","tabindex","aria-invalid","aria-checked"],function(e){t.removeAttribute(e)})},e.prototype.initClickListeners=function(){var e=this,t=this.ngModel,n=this.$scope,o=this.$attrs,i=(this.$element,this.mode);this.handleClick=ce.bind(this,this.handleClick);var r=this.iconEl,a=ce.element(this.buttonEl),d=this.handleClick;function s(e){e?a.off("click",d):a.on("click",d)}o.$observe("disabled",s),s(o.disabled),t.$render=function(){e.clearNgAria(),!function(){{if("radio"!=i)return t.$modelValue;var e=o.ngValue?n.$eval(o.ngValue):o.value;return t.$modelValue==e}}()?(r.style.display="none",a.attr("aria-checked","false")):(r.style.display="",a.attr("aria-checked","true"))},n.$$postDigest(t.$render)},e.prototype.handleClick=function(e){var t,n=this.mode,o=this.ngModel,i=this.$attrs;"checkbox"==n?t=!o.$modelValue:"radio"==n&&(t=i.ngValue?this.$scope.$eval(i.ngValue):i.value),o.$setViewValue(t),o.$render()}}(),function(){function e(c,e,m){return{controller:"MenuItemController",require:["mdMenuItem","?ngModel"],priority:e.BEFORE_NG_ARIA,compile:function(o,e){var t,n,i=e.type,r="md-in-menu-bar";if("checkbox"!=i&&"radio"!=i||!o.hasClass(r))l("role","menuitem",o[0].querySelector("md-button, button, a"));else{var a=o[0].textContent,d=ce.element('<md-button type="button"></md-button>'),s='<md-icon md-svg-src="'+m.mdChecked+'"></md-icon>';d.html(a),d.attr("tabindex","0"),o.html(""),o.append(ce.element(s)),o.append(d),o.addClass("md-indent").removeClass(r),l("role","checkbox"==i?"menuitemcheckbox":"menuitemradio",d),t="ng-disabled",n=c.prefixer(t),ce.forEach(n,function(e){if(o[0].hasAttribute(e)){var t=o[0].getAttribute(e);d[0].setAttribute(e,t),o[0].removeAttribute(e)}})}return function(e,t,n,o){var i=o[0],r=o[1];i.init(r)};function l(e,t,n){(n=n||o)instanceof ce.element&&(n=n[0]),n.hasAttribute(e)||n.setAttribute(e,t)}}}}e.$inject=["$mdUtil","$mdConstant","$$mdSvgRegistry"],ce.module("material.components.menuBar").directive("mdMenuItem",e)}(),function(){function e(i,r){return{restrict:"E",transclude:!0,controller:t,controllerAs:"ctrl",bindToController:!0,scope:{mdSelectedNavItem:"=?",mdNoInkBar:"=?",navBarAriaLabel:"@?"},template:'<div class="md-nav-bar"><nav role="navigation"><ul class="_md-nav-bar-list" ng-transclude role="tablist" ng-focus="ctrl.onFocus()" aria-label="{{ctrl.navBarAriaLabel}}"></ul></nav><md-nav-ink-bar ng-hide="ctrl.mdNoInkBar"></md-nav-ink-bar></div>',link:function(e,t,n,o){r(t),o.navBarAriaLabel||i.expectAsync(t,"aria-label",ce.noop)}}}function t(e,t,n,o){this._$timeout=n,this._$scope=t,this._$mdConstant=o,this.mdSelectedNavItem,this.navBarAriaLabel,this._navBarEl=e[0],this._inkbar;var i=this,r=this._$scope.$watch(function(){return i._navBarEl.querySelectorAll("._md-nav-button").length},function(e){0<e&&(i._initTabs(),r())})}function n(c,e,m,u){return{restrict:"E",require:["mdNavItem","^mdNavBar"],controller:o,bindToController:!0,controllerAs:"ctrl",replace:!0,transclude:!0,template:function(e,t){var n,o,i=t.mdNavClick,r=t.mdNavHref,a=t.mdNavSref,d=t.srefOpts;if(1<(i?1:0)+(r?1:0)+(a?1:0))throw Error("Please do not specify more than one of the md-nav-click, md-nav-href, or md-nav-sref attributes per nav-item directive.");if(i!==me&&null!==i)n='ng-click="ctrl.mdNavClick()"';else if(r!==me&&null!==r)n='ng-href="{{ctrl.mdNavHref}}"';else{if(a===me||null===a)throw Error("Please specify at least one of the md-nav-click, md-nav-href, or md-nav-sref attributes per nav-item directive.");n='ui-sref="{{ctrl.mdNavSref}}"'}return n&&(o='<md-button class="_md-nav-button md-accent" ng-class="ctrl.getNgClassMap()" ng-blur="ctrl.setFocused(false)" ng-disabled="ctrl.disabled" tabindex="-1" role="tab" ng-attr-aria-label="{{ctrl.navItemAriaLabel ? ctrl.navItemAriaLabel : undefined}}" aria-selected="{{ctrl.isSelected()}}" '+(d?'ui-sref-opts="{{ctrl.srefOpts}}" ':"")+n+'><span ng-transclude class="_md-nav-button-text"></span></md-button>'),'<li class="md-nav-item" role="presentation">'+(o||"")+"</li>"},scope:{mdNavClick:"&?",mdNavHref:"@?",mdNavSref:"@?",srefOpts:"=?",name:"@",navItemAriaLabel:"@?"},link:function(n,o,i,r){var a,d,s,l;e(function(){if(d=r[0],s=r[1],l=ce.element(o[0].querySelector("._md-nav-button")),d.name||(d.name=ce.element(o[0].querySelector("._md-nav-button-text")).text().trim()),l.on("keydown",function(e){s.onKeydown(e)}),l.on("focus",function(){s.getFocusedTab()||s.onFocus()}),l.on("click",function(){s.mdSelectedNavItem=d.name,n.$apply()}),d.disabled=m.parseAttributeBoolean(i.disabled,!1),"MutationObserver"in u){var e=o[0],t=new MutationObserver(function(e){m.nextTick(function(){d.disabled=m.parseAttributeBoolean(i[e[0].attributeName],!1)})});t.observe(e,{attributes:!0,attributeFilter:["disabled"]}),a=t.disconnect.bind(t)}else i.$observe("disabled",function(e){d.disabled=m.parseAttributeBoolean(e,!1)});d.navItemAriaLabel||c.expectWithText(l,"aria-label")}),n.$on("destroy",function(){l.off("keydown"),l.off("focus"),l.off("click"),a()})}}}function o(e){this._$element=e,this.mdNavClick,this.mdNavHref,this.mdNavSref,this.srefOpts,this.name,this.navItemAriaLabel,this._selected=!1,this._focused=!1}e.$inject=["$mdAria","$mdTheming"],t.$inject=["$element","$scope","$timeout","$mdConstant"],n.$inject=["$mdAria","$$rAF","$mdUtil","$window"],o.$inject=["$element"],ce.module("material.components.navBar",["material.core"]).controller("MdNavBarController",t).directive("mdNavBar",e).controller("MdNavItemController",o).directive("mdNavItem",n),t.prototype._initTabs=function(){this._inkbar=ce.element(this._navBarEl.querySelector("md-nav-ink-bar"));var n=this;this._$timeout(function(){n._updateTabs(n.mdSelectedNavItem,me)}),this._$scope.$watch("ctrl.mdSelectedNavItem",function(e,t){n._$timeout(function(){n._updateTabs(e,t)})})},t.prototype._updateTabs=function(e,t){var n=this,o=this._getTabs(),i=e===t;if(o){var r=-1,a=-1,d=this._getTabByName(e),s=this._getTabByName(t);s&&(s.setSelected(!1),r=o.indexOf(s)),d&&(d.setSelected(!0),a=o.indexOf(d)),this._$timeout(function(){n._updateInkBarStyles(d,a,r),d&&s&&!i&&n._moveFocus(s,d)})}},t.prototype._updateInkBarStyles=function(e,t,n){if(this._inkbar.toggleClass("_md-left",t<n).toggleClass("_md-right",n<t),this._inkbar.css({display:t<0?"none":""}),e){var o=e.getButtonEl(),i=o.offsetLeft;this._inkbar.css({left:i+"px",width:o.offsetWidth+"px"})}},t.prototype._getTabs=function(){var e=Array.prototype.slice.call(this._navBarEl.querySelectorAll(".md-nav-item")).map(function(e){return ce.element(e).controller("mdNavItem")});return e.indexOf(me)?e:null},t.prototype._getTabByName=function(t){return this._findTab(function(e){return e.getName()===t})},t.prototype._getSelectedTab=function(){return this._findTab(function(e){return e.isSelected()})},t.prototype.getFocusedTab=function(){return this._findTab(function(e){return e.hasFocus()})},t.prototype._findTab=function(e,t){var n=this._getTabs();t!==me&&null!==t||(t=0);for(var o=t;o<n.length;o++)if(e(n[o]))return n[o];return null},t.prototype._findTabReverse=function(e,t){var n=this._getTabs();t!==me&&null!==t||(t=n.length-1);for(var o=t;0<=o;o--)if(e(n[o]))return n[o];return null},t.prototype.onFocus=function(){var e=this._getSelectedTab();e&&e.setFocused(!0)},t.prototype._moveFocus=function(e,t){e.setFocused(!1),t.setFocused(!0)},t.prototype._focusFirstTab=function(){if(this._getTabs()){var e=this._findTab(function(e){return e._isEnabled()});e&&this._moveFocus(this.getFocusedTab(),e)}},t.prototype._focusLastTab=function(){if(this._getTabs()){var e=this._findTabReverse(function(e){return e._isEnabled()});e&&this._moveFocus(this.getFocusedTab(),e)}},t.prototype._focusNextTab=function(e){if(this._getTabs()){var t=this._findTab(function(e){return e._isEnabled()},e+1);t?this._moveFocus(this.getFocusedTab(),t):this._focusFirstTab()}},t.prototype._focusPreviousTab=function(e){if(this._getTabs()){var t=this._findTabReverse(function(e){return e._isEnabled()},e-1);t?this._moveFocus(this.getFocusedTab(),t):this._focusLastTab()}},t.prototype.onKeydown=function(e){var t=this._$mdConstant.KEY_CODE,n=this._getTabs(),o=this.getFocusedTab();if(o&&n){var i=n.indexOf(o);switch(e.keyCode){case t.UP_ARROW:case t.LEFT_ARROW:e.preventDefault(),this._focusPreviousTab(i);break;case t.DOWN_ARROW:case t.RIGHT_ARROW:e.preventDefault(),this._focusNextTab(i);break;case t.SPACE:case t.ENTER:this._$timeout(function(){o.getButtonEl().click()});break;case t.HOME:e.preventDefault(),this._focusFirstTab();break;case t.END:e.preventDefault(),this._focusLastTab()}}},o.prototype.getNgClassMap=function(){return{"md-active":this._selected,"md-primary":this._selected,"md-unselected":!this._selected,"md-focused":this._focused}},o.prototype.getName=function(){return this.name},o.prototype.getButtonEl=function(){return this._$element[0].querySelector("._md-nav-button")},o.prototype.setSelected=function(e){(this._selected=e)?this.getButtonEl().setAttribute("tabindex","0"):this.getButtonEl().setAttribute("tabindex","-1")},o.prototype.isSelected=function(){return this._selected},o.prototype.setFocused=function(e){(this._focused=e)&&this.getButtonEl().focus()},o.prototype.hasFocus=function(){return this._focused},o.prototype._isEnabled=function(){return!this._$element.attr("disabled")}}(),function(){d.$inject=["presets","$rootElement","$rootScope","$injector","$window"],ce.module("material.components.panel",["material.core","material.components.backdrop"]).provider("$mdPanel",function(){return{definePreset:e,getAllPresets:t,clearPresets:o,$get:["$rootElement","$rootScope","$injector","$window",function(e,t,n,o){return new d(i,e,t,n,o)}]}});var r=80,a="_md-panel-hidden",n=ce.element('<div class="_md-panel-focus-trap" tabindex="0"></div>'),i={};function e(e,t){if(!e||!t)throw new Error("mdPanelProvider: The panel preset definition is malformed. The name and preset object are required.");if(i.hasOwnProperty(e))throw new Error("mdPanelProvider: The panel preset you have requested has already been defined.");delete t.id,delete t.position,delete t.animation,i[e]=t}function t(){return ce.copy(i)}function o(){i={}}function d(e,t,n,o,i){this._defaultConfigOptions={bindToController:!0,clickOutsideToClose:!1,disableParentScroll:!1,escapeToClose:!1,focusOnOpen:!0,fullscreen:!1,hasBackdrop:!1,propagateContainerEvents:!1,transformTemplate:ce.bind(this,this._wrapTemplate),trapFocus:!1,zIndex:r},this._config={},this._presets=e,this._$rootElement=t,this._$rootScope=n,this._$injector=o,this._$window=i,this._$mdUtil=this._$injector.get("$mdUtil"),this._trackedPanels={},this._groups=Object.create(null),this.animation=l.animation,this.xPosition=h.xPosition,this.yPosition=h.yPosition,this.interceptorTypes=s.interceptorTypes,this.closeReasons=s.closeReasons,this.absPosition=h.absPosition}function s(e,t){this._$q=t.get("$q"),this._$mdCompiler=t.get("$mdCompiler"),this._$mdConstant=t.get("$mdConstant"),this._$mdUtil=t.get("$mdUtil"),this._$mdTheming=t.get("$mdTheming"),this._$rootScope=t.get("$rootScope"),this._$animate=t.get("$animate"),this._$mdPanel=t.get("$mdPanel"),this._$log=t.get("$log"),this._$window=t.get("$window"),this._$$rAF=t.get("$$rAF"),this.id=e.id,this.config=e,this.panelContainer,this.panelEl,this.isAttached=!1,this._removeListeners=[],this._topFocusTrap,this._bottomFocusTrap,this._backdropRef,this._restoreScroll=null,this._interceptors=Object.create(null),this._compilerCleanup=null,this._restoreCache={styles:"",classes:""}}function h(e){this._$window=e.get("$window"),this._isRTL="rtl"===e.get("$mdUtil").bidi(),this._$mdConstant=e.get("$mdConstant"),this._absolute=!1,this._relativeToEl,this._top="",this._bottom="",this._left="",this._right="",this._translateX=[],this._translateY=[],this._positions=[],this._actualPosition}function l(e){this._$mdUtil=e.get("$mdUtil"),this._openFrom,this._closeTo,this._animationClass="",this._openDuration,this._closeDuration,this._rawDuration}function c(e){var t=ce.isString(e)?document.querySelector(e):e;return ce.element(t)}function m(e){return ce.isNumber(e)?e+"px":e}d.prototype.create=function(e,t){if("string"==typeof e?e=this._getPresetByName(e):"object"!=typeof e||!ce.isUndefined(t)&&t||(t=e,e={}),e=e||{},t=t||{},ce.isDefined(t.id)&&this._trackedPanels[t.id]){var n=this._trackedPanels[t.id];return ce.extend(n.config,t),n}this._config=ce.extend({id:t.id||"panel_"+this._$mdUtil.nextUid(),scope:this._$rootScope.$new(!0),attachTo:this._$rootElement},this._defaultConfigOptions,t,e);var o=new s(this._config,this._$injector);return this._trackedPanels[this._config.id]=o,this._config.groupName&&(ce.isString(this._config.groupName)&&(this._config.groupName=[this._config.groupName]),ce.forEach(this._config.groupName,function(e){o.addToGroup(e)})),this._config.scope.$on("$destroy",ce.bind(o,o.detach)),o},d.prototype.open=function(e,t){var n=this.create(e,t);return n.open().then(function(){return n})},d.prototype._getPresetByName=function(e){if(!this._presets[e])throw new Error("mdPanel: The panel preset configuration that you requested does not exist. Use the $mdPanelProvider to create a preset before requesting one.");return this._presets[e]},d.prototype.newPanelPosition=function(){return new h(this._$injector)},d.prototype.newPanelAnimation=function(){return new l(this._$injector)},d.prototype.newPanelGroup=function(e,t){if(!this._groups[e]){var n={panels:[],openPanels:[],maxOpen:0<(t=t||{}).maxOpen?t.maxOpen:1/0};this._groups[e]=n}return this._groups[e]},d.prototype.setGroupMaxOpen=function(e,t){if(!this._groups[e])throw new Error("mdPanel: Group does not exist yet. Call newPanelGroup().");this._groups[e].maxOpen=t},d.prototype._openCountExceedsMaxOpen=function(e){if(this._groups[e]){var t=this._groups[e];return 0<t.maxOpen&&t.openPanels.length>t.maxOpen}return!1},d.prototype._closeFirstOpenedPanel=function(e){this._groups[e].openPanels[0].close()},d.prototype._wrapTemplate=function(e){return'<div class="md-panel-outer-wrapper">  <div class="md-panel _md-panel-offscreen">'+(e||"")+"</div></div>"},d.prototype._wrapContentElement=function(e){var t=ce.element('<div class="md-panel-outer-wrapper">');return e.addClass("md-panel _md-panel-offscreen"),t.append(e),t},s.interceptorTypes={CLOSE:"onClose"},s.prototype.open=function(){var i=this;return this._$q(function(e,t){var n=i._done(e,i),o=i._simpleBind(i.show,i);i.attach().then(o).then(function(){i.config.groupName&&ce.forEach(i.config.groupName,function(e){i._$mdPanel._openCountExceedsMaxOpen(e)&&i._$mdPanel._closeFirstOpenedPanel(e)})}).then(n).catch(t)})},s.prototype.close=function(r){var a=this;return this._$q(function(o,i){a._callInterceptors(s.interceptorTypes.CLOSE).then(function(){var e=a._done(o,a),t=a._simpleBind(a.detach,a),n=a.config.onCloseSuccess||ce.noop;n=ce.bind(a,n,a,r),a.hide().then(t).then(e).then(n).catch(i)},i)})},s.prototype.attach=function(){if(this.isAttached&&this.panelEl)return this._$q.when(this);var i=this;return this._$q(function(e,t){var n=i._done(e,i),o=i.config.onDomAdded||ce.noop;i._$q.all([i._createBackdrop(),i._createPanel().then(function(e){return i.isAttached=!0,i._addEventListeners(),e}).catch(t)]).then(o).then(n).catch(t)})},s.prototype.detach=function(){if(!this.isAttached)return this._$q.when(this);var o=this,i=o.config.onDomRemoved||ce.noop;return this._restoreScroll&&(this._restoreScroll(),this._restoreScroll=null),this._$q(function(e,t){var n=o._done(e,o);o._$q.all([(o._removeEventListeners(),o._topFocusTrap&&o._topFocusTrap.parentNode&&o._topFocusTrap.parentNode.removeChild(o._topFocusTrap),o._bottomFocusTrap&&o._bottomFocusTrap.parentNode&&o._bottomFocusTrap.parentNode.removeChild(o._bottomFocusTrap),o._restoreCache.classes&&(o.panelEl[0].className=o._restoreCache.classes),o.panelEl[0].style.cssText=o._restoreCache.styles||"",o._compilerCleanup(),o.panelContainer.remove(),o.isAttached=!1,o._$q.when(o)),!o._backdropRef||o._backdropRef.detach()]).then(i).then(n).catch(t)})},s.prototype.destroy=function(){var t=this;this.config.groupName&&ce.forEach(this.config.groupName,function(e){t.removeFromGroup(e)}),this.config.scope.$destroy(),this.config.locals=null,this.config.onDomAdded=null,this.config.onDomRemoved=null,this.config.onRemoving=null,this.config.onOpenComplete=null,this._interceptors=null},s.prototype.show=function(){if(!this.panelContainer)return this._$q(function(e,t){t("mdPanel: Panel does not exist yet. Call open() or attach().")});if(!this.panelContainer.hasClass(a))return this._$q.when(this);var i=this;return this._$q(function(e,t){var n=i._done(e,i),o=i.config.onOpenComplete||ce.noop;i._$q.all([i._backdropRef?i._backdropRef.show():i,(i.panelContainer.removeClass(a),i._animateOpen()).then(function(){i._focusOnOpen()},t)]).then(o).then(function(){i.config.groupName&&ce.forEach(i.config.groupName,function(e){i._$mdPanel._groups[e].openPanels.push(i)})}).then(n).catch(t)})},s.prototype.hide=function(){if(!this.panelContainer)return this._$q(function(e,t){t("mdPanel: Panel does not exist yet. Call open() or attach().")});if(this.panelContainer.hasClass(a))return this._$q.when(this);var i=this;return this._$q(function(e,t){var n=i._done(e,i),o=i.config.onRemoving||ce.noop;i._$q.all([i._backdropRef?i._backdropRef.hide():i,i._animateClose().then(o).then(function(){i.panelContainer.addClass(a)}).then(function(){var t;i.config.groupName&&ce.forEach(i.config.groupName,function(e){e=i._$mdPanel._groups[e],-1<(t=e.openPanels.indexOf(i))&&e.openPanels.splice(t,1)})}).then(function(){var e=i.config.origin;e&&c(e).focus()}).catch(t)]).then(n,t)})},s.prototype.addClass=function(e,t){if(this._$log.warn("mdPanel: The addClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");t||this.panelContainer.hasClass(e)?t&&!this.panelEl.hasClass(e)&&this.panelEl.addClass(e):this.panelContainer.addClass(e)},s.prototype.removeClass=function(e,t){if(this._$log.warn("mdPanel: The removeClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");!t&&this.panelContainer.hasClass(e)?this.panelContainer.removeClass(e):t&&this.panelEl.hasClass(e)&&this.panelEl.removeClass(e)},s.prototype.toggleClass=function(e,t){if(this._$log.warn("mdPanel: The toggleClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");t?this.panelEl.toggleClass(e):this.panelContainer.toggleClass(e)},s.prototype._compile=function(){var o=this;return o._$mdCompiler.compile(o.config).then(function(e){var t=o.config;if(t.contentElement){var n=e.element;o._restoreCache.styles=n[0].style.cssText,o._restoreCache.classes=n[0].className,o.panelContainer=o._$mdPanel._wrapContentElement(n),o.panelEl=n}else o.panelContainer=e.link(t.scope),o.panelEl=ce.element(o.panelContainer[0].querySelector(".md-panel"));return o._compilerCleanup=e.cleanup,c(o.config.attachTo).append(o.panelContainer),o})},s.prototype._createPanel=function(){var n=this;return this._$q(function(e,t){n.config.locals||(n.config.locals={}),(n.config.locals.mdPanelRef=n)._compile().then(function(){n.config.disableParentScroll&&(n._restoreScroll=n._$mdUtil.disableScrollAround(null,n.panelContainer,{disableScrollMask:!0})),n.config.panelClass&&n.panelEl.addClass(n.config.panelClass),n.config.propagateContainerEvents&&(n.panelContainer.css("pointer-events","none"),n.panelEl.css("pointer-events","all")),n._$animate.pin&&n._$animate.pin(n.panelContainer,c(n.config.attachTo)),n._configureTrapFocus(),n._addStyles().then(function(){e(n)},t)},t)})},s.prototype._addStyles=function(){var n=this;return this._$q(function(e){n.panelContainer.css("z-index",n.config.zIndex),n.panelEl.css("z-index",n.config.zIndex+1);var t=function(){n._setTheming(),n.panelEl.removeClass("_md-panel-offscreen"),n.panelContainer.addClass(a),e(n)};if(n.config.fullscreen)return n.panelEl.addClass("_md-panel-fullscreen"),void t();n.config.position?n._$rootScope.$$postDigest(function(){n._updatePosition(!0),n._setTheming(),e(n)}):t()})},s.prototype._setTheming=function(){this._$mdTheming(this.panelEl),this._$mdTheming(this.panelContainer)},s.prototype.updatePosition=function(e){if(!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");this.config.position=e,this._updatePosition()},s.prototype._updatePosition=function(e){var t=this.config.position;t&&(t._setPanelPosition(this.panelEl),e&&(this.panelEl.removeClass("_md-panel-offscreen"),this.panelContainer.addClass(a)),this.panelEl.css(h.absPosition.TOP,t.getTop()),this.panelEl.css(h.absPosition.BOTTOM,t.getBottom()),this.panelEl.css(h.absPosition.LEFT,t.getLeft()),this.panelEl.css(h.absPosition.RIGHT,t.getRight()))},s.prototype._focusOnOpen=function(){if(this.config.focusOnOpen){var e=this;this._$rootScope.$$postDigest(function(){(e._$mdUtil.findFocusTarget(e.panelEl)||e.panelEl).focus()})}},s.prototype._createBackdrop=function(){if(this.config.hasBackdrop){if(!this._backdropRef){var e=this._$mdPanel.newPanelAnimation().openFrom(this.config.attachTo).withAnimation({open:"_md-opaque-enter",close:"_md-opaque-leave"});this.config.animation&&e.duration(this.config.animation._rawDuration);var t={animation:e,attachTo:this.config.attachTo,focusOnOpen:!1,panelClass:"_md-panel-backdrop",zIndex:this.config.zIndex-1};this._backdropRef=this._$mdPanel.create(t)}if(!this._backdropRef.isAttached)return this._backdropRef.attach()}},s.prototype._addEventListeners=function(){this._configureEscapeToClose(),this._configureClickOutsideToClose(),this._configureScrollListener()},s.prototype._removeEventListeners=function(){this._removeListeners&&this._removeListeners.forEach(function(e){e()}),this._removeListeners=[]},s.prototype._configureEscapeToClose=function(){if(this.config.escapeToClose){var e=c(this.config.attachTo),t=this,n=function(e){e.keyCode===t._$mdConstant.KEY_CODE.ESCAPE&&(e.stopPropagation(),e.preventDefault(),t.close(s.closeReasons.ESCAPE))};this.panelContainer.on("keydown",n),e.on("keydown",n),this._removeListeners.push(function(){t.panelContainer.off("keydown",n),e.off("keydown",n)})}},s.prototype._configureClickOutsideToClose=function(){if(this.config.clickOutsideToClose){var t,n=this.config.propagateContainerEvents?ce.element(document.body):this.panelContainer,e=function(e){t=e.target},o=this,i=function(e){o.config.propagateContainerEvents?t===o.panelEl[0]||o.panelEl[0].contains(t)||o.close():t===n[0]&&e.target===n[0]&&(e.stopPropagation(),e.preventDefault(),o.close(s.closeReasons.CLICK_OUTSIDE))};n.on("mousedown",e),n.on("mouseup",i),this._removeListeners.push(function(){n.off("mousedown",e),n.off("mouseup",i)})}},s.prototype._configureScrollListener=function(){if(!this.config.disableParentScroll){var e=ce.bind(this,this._updatePosition),t=this._$$rAF.throttle(e),n=this,o=function(){t()};this._$window.addEventListener("scroll",o,!0),this._removeListeners.push(function(){n._$window.removeEventListener("scroll",o,!0)})}},s.prototype._configureTrapFocus=function(){if(this.panelEl.attr("tabIndex","-1"),this.config.trapFocus){var e=this.panelEl;this._topFocusTrap=n.clone()[0],this._bottomFocusTrap=n.clone()[0];var t=function(){e.focus()};this._topFocusTrap.addEventListener("focus",t),this._bottomFocusTrap.addEventListener("focus",t),this._removeListeners.push(this._simpleBind(function(){this._topFocusTrap.removeEventListener("focus",t),this._bottomFocusTrap.removeEventListener("focus",t)},this)),e[0].parentNode.insertBefore(this._topFocusTrap,e[0]),e.after(this._bottomFocusTrap)}},s.prototype.updateAnimation=function(e){this.config.animation=e,this._backdropRef&&this._backdropRef.config.animation.duration(e._rawDuration)},s.prototype._animateOpen=function(){this.panelContainer.addClass("md-panel-is-showing");var n=this.config.animation;if(!n)return this.panelContainer.addClass("_md-panel-shown"),this._$q.when(this);var o=this;return this._$q(function(e){var t=o._done(e,o);n.animateOpen(o.panelEl).then(t,function(){o._$log.warn("mdPanel: MdPanel Animations failed. Showing panel without animating."),t()})})},s.prototype._animateClose=function(){var n=this.config.animation;if(!n)return this.panelContainer.removeClass("md-panel-is-showing"),this.panelContainer.removeClass("_md-panel-shown"),this._$q.when(this);var o=this;return this._$q(function(e){var t=function(){o.panelContainer.removeClass("md-panel-is-showing"),e(o)};n.animateClose(o.panelEl).then(t,function(){o._$log.warn("mdPanel: MdPanel Animations failed. Hiding panel without animating."),t()})})},s.prototype.registerInterceptor=function(e,t){var n=null;if(ce.isString(e)?ce.isFunction(t)||(n="Interceptor callback must be a function, instead got "+typeof t):n="Interceptor type must be a string, instead got "+typeof e,n)throw new Error("MdPanel: "+n);var o=this._interceptors[e]=this._interceptors[e]||[];return-1===o.indexOf(t)&&o.push(t),this},s.prototype.removeInterceptor=function(e,t){var n=this._interceptors[e]?this._interceptors[e].indexOf(t):-1;return-1<n&&this._interceptors[e].splice(n,1),this},s.prototype.removeAllInterceptors=function(e){return e?this._interceptors[e]=[]:this._interceptors=Object.create(null),this},s.prototype._callInterceptors=function(e){var o=this,i=o._$q;return(o._interceptors&&o._interceptors[e]||[]).reduceRight(function(e,t){var n=t&&ce.isFunction(t.then)?t:null;return e.then(function(){if(!n)try{n=t(o)}catch(e){n=i.reject(e)}return n})},i.resolve(o))},s.prototype._simpleBind=function(t,n){return function(e){return t.apply(n,e)}},s.prototype._done=function(e,t){return function(){e(t)}},s.prototype.addToGroup=function(e){this._$mdPanel._groups[e]||this._$mdPanel.newPanelGroup(e);var t=this._$mdPanel._groups[e];t.panels.indexOf(this)<0&&t.panels.push(this)},s.prototype.removeFromGroup=function(e){if(!this._$mdPanel._groups[e])throw new Error("mdPanel: The group "+e+" does not exist.");var t=this._$mdPanel._groups[e],n=t.panels.indexOf(this);-1<n&&t.panels.splice(n,1)},s.closeReasons={CLICK_OUTSIDE:"clickOutsideToClose",ESCAPE:"escapeToClose"},h.xPosition={CENTER:"center",ALIGN_START:"align-start",ALIGN_END:"align-end",OFFSET_START:"offset-start",OFFSET_END:"offset-end"},h.yPosition={CENTER:"center",ALIGN_TOPS:"align-tops",ALIGN_BOTTOMS:"align-bottoms",ABOVE:"above",BELOW:"below"},h.absPosition={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},h.viewportMargin=8,h.prototype.absolute=function(){return this._absolute=!0,this},h.prototype._setPosition=function(e,t){if(e===h.absPosition.RIGHT||e===h.absPosition.LEFT)this._left=this._right="";else{if(e!==h.absPosition.BOTTOM&&e!==h.absPosition.TOP){var n=Object.keys(h.absPosition).join().toLowerCase();throw new Error("mdPanel: Position must be one of "+n+".")}this._top=this._bottom=""}return this["_"+e]=ce.isString(t)?t:"0",this},h.prototype.top=function(e){return this._setPosition(h.absPosition.TOP,e)},h.prototype.bottom=function(e){return this._setPosition(h.absPosition.BOTTOM,e)},h.prototype.start=function(e){var t=this._isRTL?h.absPosition.RIGHT:h.absPosition.LEFT;return this._setPosition(t,e)},h.prototype.end=function(e){var t=this._isRTL?h.absPosition.LEFT:h.absPosition.RIGHT;return this._setPosition(t,e)},h.prototype.left=function(e){return this._setPosition(h.absPosition.LEFT,e)},h.prototype.right=function(e){return this._setPosition(h.absPosition.RIGHT,e)},h.prototype.centerHorizontally=function(){return this._left="50%",this._right="",this._translateX=["-50%"],this},h.prototype.centerVertically=function(){return this._top="50%",this._bottom="",this._translateY=["-50%"],this},h.prototype.center=function(){return this.centerHorizontally().centerVertically()},h.prototype.relativeTo=function(e){return this._absolute=!1,this._relativeToEl=c(e),this},h.prototype.addPanelPosition=function(e,t){if(!this._relativeToEl)throw new Error("mdPanel: addPanelPosition can only be used with relative positioning. Set relativeTo first.");return this._validateXPosition(e),this._validateYPosition(t),this._positions.push({x:e,y:t}),this},h.prototype._validateYPosition=function(e){if(null!=e){for(var t,n=Object.keys(h.yPosition),o=[],i=0;t=n[i];i++){var r=h.yPosition[t];if(o.push(r),r===e)return}throw new Error("mdPanel: Panel y position only accepts the following values:\n"+o.join(" | "))}},h.prototype._validateXPosition=function(e){if(null!=e){for(var t,n=Object.keys(h.xPosition),o=[],i=0;t=n[i];i++){var r=h.xPosition[t];if(o.push(r),r===e)return}throw new Error("mdPanel: Panel x Position only accepts the following values:\n"+o.join(" | "))}},h.prototype.withOffsetX=function(e){return this._translateX.push(m(e)),this},h.prototype.withOffsetY=function(e){return this._translateY.push(m(e)),this},h.prototype.getTop=function(){return this._top},h.prototype.getBottom=function(){return this._bottom},h.prototype.getLeft=function(){return this._left},h.prototype.getRight=function(){return this._right},h.prototype.getTransform=function(){return(this._reduceTranslateValues("translateX",this._translateX)+" "+this._reduceTranslateValues("translateY",this._translateY)).trim()},h.prototype._setTransform=function(e){return e.css(this._$mdConstant.CSS.TRANSFORM,this.getTransform())},h.prototype._isOnscreen=function(e){var t=parseInt(this.getLeft()),n=parseInt(this.getTop());if(this._translateX.length||this._translateY.length){var o=function(e,t){var n=getComputedStyle(e[0]||e)[t],o=n.indexOf("("),i=n.lastIndexOf(")"),r={x:0,y:0};if(-1<o&&-1<i){var a=n.substring(o+1,i).split(", ").slice(-2);r.x=parseInt(a[0]),r.y=parseInt(a[1])}return r}(e,this._$mdConstant.CSS.TRANSFORM);t+=o.x,n+=o.y}var i=t+e[0].offsetWidth,r=n+e[0].offsetHeight;return 0<=t&&0<=n&&r<=this._$window.innerHeight&&i<=this._$window.innerWidth},h.prototype.getActualPosition=function(){return this._actualPosition},h.prototype._reduceTranslateValues=function(n,e){return e.map(function(e){var t=ce.isFunction(e)?m(e(this)):e;return n+"("+t+")"},this).join(" ")},h.prototype._setPanelPosition=function(e){if(e.removeClass("_md-panel-position-adjusted"),this._absolute)this._setTransform(e);else{if(this._actualPosition)return this._calculatePanelPosition(e,this._actualPosition),this._setTransform(e),void this._constrainToViewport(e);for(var t=0;t<this._positions.length;t++)if(this._actualPosition=this._positions[t],this._calculatePanelPosition(e,this._actualPosition),this._setTransform(e),this._isOnscreen(e))return;this._constrainToViewport(e)}},h.prototype._constrainToViewport=function(e){var t=h.viewportMargin,n=this._top,o=this._left;if(this.getTop()){var i=parseInt(this.getTop()),r=e[0].offsetHeight+i,a=this._$window.innerHeight;i<t?this._top=t+"px":a<r&&(this._top=i-(r-a+t)+"px")}if(this.getLeft()){var d=parseInt(this.getLeft()),s=e[0].offsetWidth+d,l=this._$window.innerWidth;d<t?this._left=t+"px":l<s&&(this._left=d-(s-l+t)+"px")}e.toggleClass("_md-panel-position-adjusted",this._top!==n||this._left!==o)},h.prototype._reverseXPosition=function(e){if(e===h.xPosition.CENTER)return e;return-1<e.indexOf("start")?e.replace("start","end"):e.replace("end","start")},h.prototype._bidi=function(e){return this._isRTL?this._reverseXPosition(e):e},h.prototype._calculatePanelPosition=function(e,t){var n=e[0].getBoundingClientRect(),o=Math.max(n.width,e[0].clientWidth),i=Math.max(n.height,e[0].clientHeight),r=this._relativeToEl[0].getBoundingClientRect(),a=r.left,d=r.right,s=r.width;switch(this._bidi(t.x)){case h.xPosition.OFFSET_START:this._left=a-o+"px";break;case h.xPosition.ALIGN_END:this._left=d-o+"px";break;case h.xPosition.CENTER:var l=a+.5*s-.5*o;this._left=l+"px";break;case h.xPosition.ALIGN_START:this._left=a+"px";break;case h.xPosition.OFFSET_END:this._left=d+"px"}var c=r.top,m=r.bottom,u=r.height;switch(t.y){case h.yPosition.ABOVE:this._top=c-i+"px";break;case h.yPosition.ALIGN_BOTTOMS:this._top=m-i+"px";break;case h.yPosition.CENTER:var p=c+.5*u-.5*i;this._top=p+"px";break;case h.yPosition.ALIGN_TOPS:this._top=c+"px";break;case h.yPosition.BELOW:this._top=m+"px"}},l.animation={SLIDE:"md-panel-animate-slide",SCALE:"md-panel-animate-scale",FADE:"md-panel-animate-fade"},l.prototype.openFrom=function(e){return e=e.target?e.target:e,this._openFrom=this._getPanelAnimationTarget(e),this._closeTo||(this._closeTo=this._openFrom),this},l.prototype.closeTo=function(e){return this._closeTo=this._getPanelAnimationTarget(e),this},l.prototype.duration=function(e){return e&&(ce.isNumber(e)?this._openDuration=this._closeDuration=t(e):ce.isObject(e)&&(this._openDuration=t(e.open),this._closeDuration=t(e.close))),this._rawDuration=e,this;function t(e){if(ce.isNumber(e))return e/1e3}},l.prototype._getPanelAnimationTarget=function(e){return ce.isDefined(e.top)||ce.isDefined(e.left)?{element:me,bounds:{top:e.top||0,left:e.left||0}}:this._getBoundingClientRect(c(e))},l.prototype.withAnimation=function(e){return this._animationClass=e,this},l.prototype.animateOpen=function(e){var t=this._$mdUtil.dom.animator;this._fixBounds(e);var n={},o=e[0].style.transform||"",i=t.toTransformCss(o),r=t.toTransformCss(o);switch(this._animationClass){case l.animation.SLIDE:e.css("opacity","1"),n={transitionInClass:"_md-panel-animate-enter"};var a=t.calculateSlideToOrigin(e,this._openFrom)||"";i=t.toTransformCss(a+" "+o);break;case l.animation.SCALE:n={transitionInClass:"_md-panel-animate-enter"};var d=t.calculateZoomToOrigin(e,this._openFrom)||"";i=t.toTransformCss(d+" "+o);break;case l.animation.FADE:n={transitionInClass:"_md-panel-animate-enter"};break;default:n=ce.isString(this._animationClass)?{transitionInClass:this._animationClass}:{transitionInClass:this._animationClass.open,transitionOutClass:this._animationClass.close}}return n.duration=this._openDuration,t.translate3d(e,i,r,n)},l.prototype.animateClose=function(e){var t=this._$mdUtil.dom.animator,n={},o=e[0].style.transform||"",i=t.toTransformCss(o),r=t.toTransformCss(o);switch(this._animationClass){case l.animation.SLIDE:e.css("opacity","1"),n={transitionInClass:"_md-panel-animate-leave"};var a=t.calculateSlideToOrigin(e,this._closeTo)||"";r=t.toTransformCss(a+" "+o);break;case l.animation.SCALE:n={transitionInClass:"_md-panel-animate-scale-out _md-panel-animate-leave"};var d=t.calculateZoomToOrigin(e,this._closeTo)||"";r=t.toTransformCss(d+" "+o);break;case l.animation.FADE:n={transitionInClass:"_md-panel-animate-fade-out _md-panel-animate-leave"};break;default:n=ce.isString(this._animationClass)?{transitionOutClass:this._animationClass}:{transitionInClass:this._animationClass.close,transitionOutClass:this._animationClass.open}}return n.duration=this._closeDuration,t.translate3d(e,i,r,n)},l.prototype._fixBounds=function(e){var t=e[0].offsetWidth,n=e[0].offsetHeight;this._openFrom&&null==this._openFrom.bounds.height&&(this._openFrom.bounds.height=n),this._openFrom&&null==this._openFrom.bounds.width&&(this._openFrom.bounds.width=t),this._closeTo&&null==this._closeTo.bounds.height&&(this._closeTo.bounds.height=n),this._closeTo&&null==this._closeTo.bounds.width&&(this._closeTo.bounds.width=t)},l.prototype._getBoundingClientRect=function(e){if(e instanceof ce.element)return{element:e,bounds:e[0].getBoundingClientRect()}}}(),ce.module("material.components.progressCircular",["material.core"]),function(){function e($,y,d,C,p,e){var M=$.requestAnimationFrame||$.webkitRequestAnimationFrame||ce.noop,h=$.cancelAnimationFrame||$.webkitCancelAnimationFrame||$.webkitCancelRequestAnimationFrame||ce.noop,f="determinate",T="indeterminate",A="_md-progress-circular-disabled",w="md-mode-indeterminate";return{restrict:"E",scope:{value:"@",mdDiameter:"@",mdMode:"@"},template:'<svg xmlns="http://www.w3.org/2000/svg"><path fill="none"/></svg>',compile:function(e,t){if(e.attr({"aria-valuemin":0,"aria-valuemax":100,role:"progressbar"}),ce.isUndefined(t.mdMode)){var n=t.hasOwnProperty("value")?f:T;t.$set("mdMode",n)}else t.$set("mdMode",t.mdMode.trim());return o}};function o(g,s,l){var b,e,t=s[0],a=ce.element(t.querySelector("svg")),v=ce.element(t.querySelector("path")),n=y.startIndeterminate,o=y.endIndeterminate,i=0,E=0;function c(n,e,t,o,i,r){var a=++E,d=C.now(),s=e-n,l=N(g.mdDiameter),c=S(l),m=t||y.easeFn,u=o||y.duration,p=-90*(i||0),h=r||100;function f(e){v.attr("stroke-dashoffset",k(l,c,e,h)),v.attr("transform","rotate("+p+" "+l/2+" "+l/2+")")}e===n?f(e):b=M(function e(){var t=$.Math.max(0,$.Math.min(C.now()-d,u));f(m(t,n,s,u)),a===E&&t<u&&(b=M(e))})}function r(){c(n,o,y.easeFnIndeterminate,y.durationIndeterminate,i,75),i=++i%4}function m(){e||(e=p(r,y.durationIndeterminate,0,!1),r(),s.addClass(w).removeAttr("aria-valuenow"))}function u(){e&&(p.cancel(e),e=null,s.removeClass(w))}d(s),s.toggleClass(A,l.hasOwnProperty("disabled")),g.mdMode===T&&m(),g.$on("$destroy",function(){u(),b&&h(b)}),g.$watchGroup(["value","mdMode",function(){var e=t.disabled;return!0===e||!1===e?e:ce.isDefined(s.attr("disabled"))}],function(e,t){var n=e[1],o=e[2],i=0,r=0;if(o!==t[2]&&s.toggleClass(A,!!o),o)u();else if(n!==f&&n!==T&&(n=T,l.$set("mdMode",n)),n===T)t[1]===f&&(r=S(i=N(g.mdDiameter)),v.attr("d",_(i,r,!0)),v.attr("stroke-dasharray",(i-r)*$.Math.PI*.75)),m();else{var a=x(e[0]),d=x(t[0]);u(),t[1]===T&&(r=S(i=N(g.mdDiameter)),v.attr("d",_(i,r,!1)),v.attr("stroke-dasharray",(i-r)*$.Math.PI)),s.attr("aria-valuenow",a),c(d,a)}}),g.$watch("mdDiameter",function(e){var t=N(e),n=S(t),o=x(g.value),i=t/2+"px",r={width:t+"px",height:t+"px"};a[0].setAttribute("viewBox","0 0 "+t+" "+t),a.css(r).css("transform-origin",i+" "+i+" "+i),s.css(r),v.attr("stroke-width",n),v.attr("stroke-linecap","square"),g.mdMode==T?(v.attr("d",_(t,n,!0)),v.attr("stroke-dasharray",(t-n)*$.Math.PI*.75),v.attr("stroke-dashoffset",k(t,n,1,75))):(v.attr("d",_(t,n,!1)),v.attr("stroke-dasharray",(t-n)*$.Math.PI),v.attr("stroke-dashoffset",k(t,n,0,100)),c(o,o))})}function _(e,t,n){var o=e/2,i=t/2,r=o+","+i,a=o-i;return"M"+r+"A"+a+","+a+" 0 1 1 "+(i+","+o)+(n?"":"A"+a+","+a+" 0 0 1 "+r)}function k(e,t,n,o){return(e-t)*$.Math.PI*(3*(o||100)/100-n/100)}function x(e){return $.Math.max(0,$.Math.min(e||0,100))}function N(e){var t=y.progressSize;if(e){var n=parseFloat(e);return e.lastIndexOf("%")===e.length-1&&(n=n/100*t),n}return t}function S(e){return y.strokeWidth/100*e}}e.$inject=["$window","$mdProgressCircular","$mdTheming","$mdUtil","$interval","$log"],ce.module("material.components.progressCircular").directive("mdProgressCircular",e)}(),ce.module("material.components.progressCircular").provider("$mdProgressCircular",function(){var t={progressSize:50,strokeWidth:10,duration:100,easeFn:e,durationIndeterminate:1333,startIndeterminate:1,endIndeterminate:149,easeFnIndeterminate:n,easingPresets:{linearEase:e,materialEase:n}};return{configure:function(e){return t=ce.extend(t,e||{})},$get:function(){return t}};function e(e,t,n,o){return n*e/o+t}function n(e,t,n,o){var i=(e/=o)*e,r=i*e;return t+n*(6*r*i+-15*i*i+10*r)}}),function(){function e(m,u,e){var p="determinate",h="indeterminate",f="buffer",g="query",b="_md-progress-linear-disabled";return{restrict:"E",template:'<div class="md-container"><div class="md-dashed"></div><div class="md-bar md-bar1"></div><div class="md-bar md-bar2"></div></div>',compile:function(e,t,n){return e.attr("aria-valuemin",0),e.attr("aria-valuemax",100),e.attr("role","progressbar"),o}};function o(e,n,o){var t;m(n);var i=o.hasOwnProperty("disabled"),r=u.dom.animator.toCss,a=ce.element(n[0].querySelector(".md-bar1")),d=ce.element(n[0].querySelector(".md-bar2")),s=ce.element(n[0].querySelector(".md-container"));function l(){var e=(o.mdMode||"").trim();if(e)switch(e){case p:case h:case f:case g:break;default:e=h}return e}function c(e,t){if(!i&&l()){var n=u.supplant("translateX({0}%) scale({1},1)",[(t-100)/2,t/100]),o=r({transform:n});ce.element(e).css(o)}}n.attr("md-mode",l()).toggleClass(b,i),function(){if(ce.isUndefined(o.mdMode)){var e=ce.isDefined(o.value),t=e?p:h;n.attr("md-mode",t),o.mdMode=t}}(),o.$observe("value",function(e){var t=v(e);n.attr("aria-valuenow",t),l()!=g&&c(d,t)}),o.$observe("mdBufferValue",function(e){c(a,v(e))}),o.$observe("disabled",function(e){i=!0===e||!1===e?!!e:ce.isDefined(e),n.toggleClass(b,i),s.toggleClass(t,!i)}),o.$observe("mdMode",function(e){switch(t&&s.removeClass(t),e){case g:case f:case p:case h:s.addClass(t="md-mode-"+e);break;default:s.addClass(t="md-mode-"+h)}})}function v(e){return Math.max(0,Math.min(e||0,100))}}e.$inject=["$mdTheming","$mdUtil","$log"],ce.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",e)}(),function(){function e(d,s,l,c){return e.prototype={init:function(e){this._ngModelCtrl=e,this._ngModelCtrl.$render=ce.bind(this,this.render)},add:function(e){this._radioButtonRenderFns.push(e)},remove:function(e){var t=this._radioButtonRenderFns.indexOf(e);-1!==t&&this._radioButtonRenderFns.splice(t,1)},render:function(){this._radioButtonRenderFns.forEach(function(e){e()})},setViewValue:function(e,t){this._ngModelCtrl.$setViewValue(e,t),this.render()},getViewValue:function(){return this._ngModelCtrl.$viewValue},selectNext:function(){return t(this.$element,1)},selectPrevious:function(){return t(this.$element,-1)},setActiveDescendant:function(e){this.$element.attr("aria-activedescendant",e)},isDisabled:function(){return this.$element[0].hasAttribute("disabled")}},{restrict:"E",controller:["$element",e],require:["mdRadioGroup","?ngModel"],link:{pre:function(t,o,e,n){o.addClass("_md"),l(o);var i=n[0],r=n[1]||d.fakeNgModel();function a(){o.hasClass("md-focused")||o.addClass("md-focused")}i.init(r),t.mouseActive=!1,o.attr({role:"radiogroup",tabIndex:o.attr("tabindex")||"0"}).on("keydown",function(e){var t=e.which||e.keyCode;if(t!=s.KEY_CODE.ENTER&&e.currentTarget!=e.target)return;switch(t){case s.KEY_CODE.LEFT_ARROW:case s.KEY_CODE.UP_ARROW:e.preventDefault(),i.selectPrevious(),a();break;case s.KEY_CODE.RIGHT_ARROW:case s.KEY_CODE.DOWN_ARROW:e.preventDefault(),i.selectNext(),a();break;case s.KEY_CODE.ENTER:var n=ce.element(d.getClosest(o[0],"form"));0<n.length&&n.triggerHandler("submit")}}).on("mousedown",function(e){t.mouseActive=!0,c(function(){t.mouseActive=!1},100)}).on("focus",function(){!1===t.mouseActive&&i.$element.addClass("md-focused")}).on("blur",function(){i.$element.removeClass("md-focused")})}}};function e(e){this._radioButtonRenderFns=[],this.$element=e}function t(e,t){var n=d.iterator(e[0].querySelectorAll("md-radio-button"),!0);if(n.count()){var o=e[0].querySelector("md-radio-button.md-checked"),i=n[t<0?"previous":"next"](o,function(e){return!ce.element(e).attr("disabled")})||n.first();ce.element(i).triggerHandler("click")}}}function t(l,c,m){var u="md-checked";return{restrict:"E",require:"^mdRadioGroup",transclude:!0,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-off"></div><div class="md-on"></div></div><div ng-transclude class="md-label"></div>',link:function(t,n,o,i){var r;m(n),e=n,e.attr({id:o.id||"radio_"+c.nextUid(),role:"radio","aria-checked":"false"}),l.expectWithText(e,"aria-label"),o.ngValue?c.nextTick(a,!1):a();var e;function a(){if(!i)throw"RadioButton: No RadioGroupController could be found.";i.add(s),o.$observe("value",s),n.on("click",d).on("$destroy",function(){i.remove(s)})}function d(e){n[0].hasAttribute("disabled")||i.isDisabled()||t.$apply(function(){i.setViewValue(o.value,e&&e.type)})}function s(){var e=i.getViewValue()==o.value;e!==r&&("md-radio-group"!==n[0].parentNode.nodeName.toLowerCase()&&n.parent().toggleClass(u,e),e&&i.setActiveDescendant(n.attr("id")),r=e,n.attr("aria-checked",e).toggleClass(u,e))}}}}e.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"],t.$inject=["$mdAria","$mdUtil","$mdTheming"],ce.module("material.components.radioButton",["material.core"]).directive("mdRadioGroup",e).directive("mdRadioButton",t)}(),function(){e.$inject=["$mdSelect","$mdUtil","$mdConstant","$mdTheming","$mdAria","$parse","$sce","$injector"],t.$inject=["$parse","$mdUtil","$mdConstant","$mdTheming"],n.$inject=["$mdButtonInkRipple","$mdUtil","$mdTheming"],o.$inject=["$$interimElementProvider"];var R=8,f=0,c=ce.element('<div class="md-container"><div class="md-icon"></div></div>');function e(k,x,N,S,D,I,H,e){var t=N.KEY_CODE;t.SPACE,t.ENTER,t.UP_ARROW,t.DOWN_ARROW;return{restrict:"E",require:["^?mdInputContainer","mdSelect","ngModel","?^form"],compile:function(e,t){var n=ce.element("<md-select-value><span></span></md-select-value>");n.append('<span class="md-select-icon" aria-hidden="true"></span>'),n.addClass("md-select-value"),n[0].hasAttribute("id")||n.attr("id","select_value_label_"+x.nextUid());var o=e.find("md-content");o.length||e.append(ce.element("<md-content>").append(e.contents()));o.attr("role","presentation"),t.mdOnOpen&&(e.find("md-content").prepend(ce.element('<div> <md-progress-circular md-mode="indeterminate" ng-if="$$loadingAsyncDone === false" md-diameter="25px"></md-progress-circular></div>')),e.find("md-option").attr("ng-show","$$loadingAsyncDone"));if(t.name){var i=ce.element('<select class="md-visually-hidden"></select>');i.attr({name:t.name,"aria-hidden":"true",tabindex:"-1"});var r=e.find("md-option");ce.forEach(r,function(e){var t=ce.element("<option>"+e.innerHTML+"</option>");e.hasAttribute("ng-value")?t.attr("ng-value",e.getAttribute("ng-value")):e.hasAttribute("value")&&t.attr("value",e.getAttribute("value")),i.append(t)}),i.append('<option ng-value="'+t.ngModel+'" selected></option>'),e.parent().append(i)}var _=x.parseAttributeBoolean(t.multiple),a=_?"multiple":"",d='<div class="md-select-menu-container" aria-hidden="true" role="presentation"><md-select-menu role="presentation" {0}>{1}</md-select-menu></div>';d=x.supplant(d,[a,e.html()]),e.empty().append(n),e.append(d),t.tabindex||t.$set("tabindex",0);return function(i,n,r,e){var t,o,a,d,s,l=!0,c=e[0],m=e[1],u=e[2],p=e[3],h=n.find("md-select-value"),f=ce.isDefined(r.readonly),g=x.parseAttributeBoolean(r.mdNoAsterisk);if(g&&n.addClass("md-no-asterisk"),c){var b=c.isErrorGetter||function(){return u.$invalid&&(u.$touched||p&&p.$submitted)};if(c.input&&n.find("md-select-header").find("input")[0]!==c.input[0])throw new Error("<md-input-container> can only have *one* child <input>, <textarea> or <select> element!");c.input=n,c.label||D.expect(n,"aria-label",n.attr("placeholder")),i.$watch(b,c.setInvalid)}!function(){if(a=ce.element(n[0].querySelector(".md-select-menu-container")),d=i,r.mdContainerClass){var e=a[0].getAttribute("class")+" "+r.mdContainerClass;a[0].setAttribute("class",e)}(s=a.find("md-select-menu").controller("mdSelectMenu")).init(u,r.ngModel),n.on("$destroy",function(){a.remove()})}(),S(n);var v,E=u.$render;function $(){a&&(s=s||a.find("md-select-menu").controller("mdSelectMenu"),m.setLabelText(s.selectedLabels()))}function y(){if(o){var e=s.selectedLabels({mode:"aria"});n.attr("aria-label",e.length?o+": "+e:o)}}u.$render=function(){E(),$(),y(),T()},r.$observe("placeholder",u.$render),c&&c.label&&r.$observe("required",function(e){c.label.toggleClass("md-required",e&&!g)}),m.setLabelText=function(e){m.setIsPlaceholder(!e);var t=!1;if(r.mdSelectedText&&r.mdSelectedHtml)throw Error("md-select cannot have both `md-selected-text` and `md-selected-html`");if(r.mdSelectedText||r.mdSelectedHtml)e=I(r.mdSelectedText||r.mdSelectedHtml)(i),t=!0;else if(!e){var n=r.placeholder||(c&&c.label?c.label.text():"");e=n||"",t=!0}var o=h.children().eq(0);r.mdSelectedHtml?o.html(H.getTrustedHtml(e)):t?o.text(e):o.html(e)},m.setIsPlaceholder=function(e){e?(h.addClass("md-select-placeholder"),c&&c.label&&c.label.addClass("md-placeholder")):(h.removeClass("md-select-placeholder"),c&&c.label&&c.label.removeClass("md-placeholder"))},f||(n.on("focus",function(e){c&&c.setFocused(!0)}),n.on("blur",function(e){l&&(l=!1,d._mdSelectIsOpen&&e.stopImmediatePropagation()),d._mdSelectIsOpen||(c&&c.setFocused(!1),T())})),m.triggerClose=function(){I(r.mdOnClose)(i)},i.$$postDigest(function(){!function(){var e=n.attr("aria-label")||n.attr("placeholder");!e&&c&&c.label&&(e=c.label.text());o=e,D.expect(n,"aria-label",e)}(),$(),y()}),i.$watch(function(){return s.selectedLabels()},$),r.$observe("ngMultiple",function(e){v&&v();var t=I(e);v=i.$watch(function(){return t(i)},function(e,t){e===me&&t===me||(e?n.attr("multiple","multiple"):n.removeAttr("multiple"),n.attr("aria-multiselectable",e?"true":"false"),a&&(s.setMultiple(e),E=u.$render,u.$render=function(){E(),$(),y(),T()},u.$render()))})}),r.$observe("disabled",function(e){ce.isString(e)&&(e=!0),t!==me&&t===e||((t=e)?n.attr({"aria-disabled":"true"}).removeAttr("tabindex").off("click",w).off("keydown",A):n.attr({tabindex:r.tabindex,"aria-disabled":"false"}).on("click",w).on("keydown",A))}),r.hasOwnProperty("disabled")||r.hasOwnProperty("ngDisabled")||(n.attr({"aria-disabled":"false"}),n.on("click",w),n.on("keydown",A));var C={role:"listbox","aria-expanded":"false","aria-multiselectable":_&&!r.ngMultiple?"true":"false"};n[0].hasAttribute("id")||(C.id="select_"+x.nextUid());var M="select_container_"+x.nextUid();function T(){x.nextTick(function(){c&&c.setHasValue(0<s.selectedLabels().length||(n[0].validity||{}).badInput)})}function A(e){if(N.isNavigationKey(e))e.preventDefault(),w();else if(F(e,N)){e.preventDefault();var t=s.optNodeForKeyboardSearch(e);if(!t||t.hasAttribute("disabled"))return;var n=ce.element(t).controller("mdOption");s.isMultiple||s.deselect(Object.keys(s.selected)[0]),s.select(n.hashKey,n.value),s.refreshViewValue()}}function w(){d._mdSelectIsOpen=!0,n.attr("aria-expanded","true"),k.show({scope:d,preserveScope:!0,skipCompile:!0,element:a,target:n[0],selectCtrl:m,preserveElement:!0,hasBackdrop:!0,loadingAsync:!!r.mdOnOpen&&(i.$eval(r.mdOnOpen)||!0)}).finally(function(){d._mdSelectIsOpen=!1,n.focus(),n.attr("aria-expanded","false"),u.$setTouched()})}a.attr("id",M),n.find("md-select-menu").length||(C["aria-owns"]=M),n.attr(C),i.$on("$destroy",function(){k.destroy().finally(function(){c&&(c.setFocused(!1),c.setHasValue(!1),c.input=null),u.$setTouched()})})}},controller:function(){}}}function t(p,h,e,i){return{restrict:"E",require:["mdSelectMenu"],scope:!(t.$inject=["$scope","$attrs","$element"]),controller:t,link:{pre:function(r,e,t,n){var a=n[0];function o(e){var t=h.getClosest(e.target,"md-option"),n=t&&ce.element(t).data("$mdOptionController");if(t&&n){if(t.hasAttribute("disabled"))return e.stopImmediatePropagation(),!1;var o=a.hashGetter(n.value),i=ce.isDefined(a.selected[o]);r.$apply(function(){a.isMultiple?i?a.deselect(o):a.select(o,n.value):i||(a.deselect(Object.keys(a.selected)[0]),a.select(o,n.value)),a.refreshViewValue()})}}e.addClass("_md"),i(e),e.on("click",o),e.on("keypress",function(e){13!=e.keyCode&&32!=e.keyCode||o(e)})}}};function t(r,e,i){var a,d=this;d.isMultiple=ce.isDefined(e.multiple),d.selected={},d.options={},r.$watchCollection(function(){return d.options},function(){d.ngModel.$render()}),d.setMultiple=function(e){var t=d.ngModel;if(a=a||t.$isEmpty,d.isMultiple=e,d.isMultiple){var n=!1,o=function(e){n?m():h.nextTick(function(){m(),n=!0})};t.$validators["md-multiple"]=i,t.$render=o,r.$watchCollection(d.modelBinding,function(e){i(e)&&o()}),t.$isEmpty=function(e){return!e||0===e.length}}else delete t.$validators["md-multiple"],t.$render=u;function i(e,t){return ce.isArray(e||t||[])}};var o,s,l,c="";function m(){var n=d.ngModel.$modelValue||d.ngModel.$viewValue||[];if(ce.isArray(n)){var e=Object.keys(d.selected),t=n.map(d.hashGetter);e.filter(function(e){return-1===t.indexOf(e)}).forEach(d.deselect),t.forEach(function(e,t){d.select(e,n[t])})}}function u(){var e=d.ngModel.$viewValue||d.ngModel.$modelValue;Object.keys(d.selected).forEach(d.deselect),d.select(d.hashGetter(e),e)}d.optNodeForKeyboardSearch=function(e){o&&clearTimeout(o),o=setTimeout(function(){c="",s=l=o=me},300),c+=e.key;var t=new RegExp("^"+c,"i");s||(s=i.find("md-option"),l=new Array(s.length),ce.forEach(s,function(e,t){l[t]=e.textContent.trim()}));for(var n=0;n<l.length;++n)if(t.test(l[n]))return s[n]},d.init=function(e,t){d.ngModel=e,d.modelBinding=t,d.ngModel.$isEmpty=function(e){return!d.options[d.hashGetter(e)]};var n=h.getModelOption(e,"trackBy");if(n){var o={},i=p(n);d.hashGetter=function(e,t){return o.$value=e,i(t||r,o)}}else d.hashGetter=function(e){return ce.isObject(e)?"object_"+(e.$$mdSelectId||(e.$$mdSelectId=++f)):e};d.setMultiple(d.isMultiple)},d.selectedLabels=function(e){var t,n=(e=e||{}).mode||"html",o=h.nodesToArray(i[0].querySelectorAll("md-option[selected]"));return o.length?("html"==n?t=function(e){if(e.hasAttribute("md-option-empty"))return"";var t=e.innerHTML,n=e.querySelector(".md-ripple-container");n&&(t=t.replace(n.outerHTML,""));var o=e.querySelector(".md-container");return o&&(t=t.replace(o.outerHTML,"")),t}:"aria"==n&&(t=function(e){return e.hasAttribute("aria-label")?e.getAttribute("aria-label"):e.textContent}),h.uniq(o.map(t)).join(", ")):""},d.select=function(e,t){var n=d.options[e];n&&n.setSelected(!0),d.selected[e]=t},d.deselect=function(e){var t=d.options[e];t&&t.setSelected(!1),delete d.selected[e]},d.addOption=function(e,t){if(ce.isDefined(d.options[e]))throw new Error('Duplicate md-option values are not allowed in a select. Duplicate value "'+t.value+'" found.');d.options[e]=t,ce.isDefined(d.selected[e])&&(d.select(e,t.value),ce.isDefined(d.ngModel.$modelValue)&&d.hashGetter(d.ngModel.$modelValue)===e&&d.ngModel.$validate(),d.refreshViewValue())},d.removeOption=function(e){delete d.options[e]},d.refreshViewValue=function(){var e,t=[];for(var n in d.selected)(e=d.options[n])?t.push(e.value):t.push(d.selected[n]);var o=h.getModelOption(d.ngModel,"trackBy"),i=d.isMultiple?t:t[0],r=d.ngModel.$modelValue;(o?ce.equals(r,i):r+""===i)||(d.ngModel.$setViewValue(i),d.ngModel.$render())}}}function n(o,i,l){return e.$inject=["$element"],{restrict:"E",require:["mdOption","^^mdSelectMenu"],controller:e,compile:function(e,t){e.append(ce.element('<div class="md-text">').append(e.contents())),e.attr("tabindex",t.tabindex||"0"),n=t,o=n.value,i=n.ngValue,o||i||e.attr("md-option-empty","");var n,o,i;return r}};function r(r,t,e,n){var a=n[0],d=n[1];function s(e,t,n){if(d.hashGetter){var o=d.hashGetter(t,r),i=d.hashGetter(e,r);a.hashKey=i,a.value=e,d.removeOption(o,a),d.addOption(i,a)}else n||r.$$postDigest(function(){s(e,t,!0)})}l(t),d.isMultiple&&(t.addClass("md-checkbox-enabled"),t.prepend(c.clone())),ce.isDefined(e.ngValue)?r.$watch(e.ngValue,s):ce.isDefined(e.value)?s(e.value):r.$watch(function(){return t.text().trim()},s),e.$observe("disabled",function(e){e?t.attr("tabindex","-1"):t.attr("tabindex","0")}),r.$$postDigest(function(){e.$observe("selected",function(e){ce.isDefined(e)&&("string"==typeof e&&(e=!0),e?(d.isMultiple||d.deselect(Object.keys(d.selected)[0]),d.select(a.hashKey,a.value)):d.deselect(a.hashKey),d.refreshViewValue())})}),o.attach(r,t),function(){var e={role:"option","aria-selected":"false"};t[0].hasAttribute("id")||(e.id="select_option_"+i.nextUid());t.attr(e)}(),r.$on("$destroy",function(){d.removeOption(a.hashKey,a)})}function e(t){this.selected=!1,this.setSelected=function(e){e&&!this.selected?t.attr({selected:"selected","aria-selected":"true"}):!e&&this.selected&&(t.removeAttr("selected"),t.attr("aria-selected","false")),this.selected=e}}}function o(e){return t.$inject=["$mdSelect","$mdConstant","$mdUtil","$window","$q","$$rAF","$animateCss","$animate","$document"],e("$mdSelect").setDefaults({methods:["target"],options:t});function t(c,m,H,O,r,u,p,h,P){var f=H.dom.animator,g=m.KEY_CODE;return{parent:"body",themable:!0,onShow:function(a,d,s){return s.loadingAsync&&!s.isRemoved&&(a.$$loadingAsyncDone=!1,r.when(s.loadingAsync).then(function(){a.$$loadingAsyncDone=!0,delete s.loadingAsync}).then(function(){u(i)})),function(e,t){var n=d.find("md-select-menu");if(!t.target)throw new Error(H.supplant("$mdSelect.show() expected a target element in options.target but got '{0}'!",[t.target]));ce.extend(t,{isRemoved:!1,target:ce.element(t.target),parent:ce.element(t.parent),selectEl:n,contentEl:d.find("md-content"),optionNodes:n[0].getElementsByTagName("md-option")})}(0,s),s.hideBackdrop=(t=a,o=s,o.disableParentScroll&&!H.getClosest(o.target,"MD-DIALOG")?o.restoreScroll=H.disableScrollAround(o.element,o.parent):o.disableParentScroll=!1,o.hasBackdrop&&(o.backdrop=H.createBackdrop(t,"md-select-backdrop md-click-catcher"),h.enter(o.backdrop,P[0].body,null,{duration:0})),function(){o.backdrop&&o.backdrop.remove(),o.disableParentScroll&&o.restoreScroll(),delete o.restoreScroll}),(n=d,e=s,e.parent!==n.parent()&&n.parent().attr("aria-owns",n.attr("id")),n.parent().find("md-select-value").attr("aria-hidden","true"),e.parent.append(n),r(function(e,t){try{p(n,{removeClass:"md-leave",duration:0}).start().then(i).then(e)}catch(e){t(e)}})).then(function(e){var t,n,o,i,r;return d.attr("aria-hidden","false"),s.alreadyOpen=!0,s.cleanupInteraction=function(){if(!s.isRemoved){var o=s.selectEl,t=o.controller("mdSelectMenu")||{};return d.addClass("md-clickable"),s.backdrop&&s.backdrop.on("click",e),o.on("keydown",n),o.on("click",r),function(){s.backdrop&&s.backdrop.off("click",e),o.off("keydown",n),o.off("click",r),d.removeClass("md-clickable"),s.isRemoved=!0}}function e(e){e.preventDefault(),e.stopPropagation(),s.restoreFocus=!1,H.nextTick(c.hide,!0)}function n(e){switch(e.preventDefault(),e.stopPropagation(),e.keyCode){case g.UP_ARROW:return void i("prev");case g.DOWN_ARROW:return void i("next");case g.SPACE:case g.ENTER:var t=H.getClosest(e.target,"md-option");t&&(o.triggerHandler({type:"click",target:t}),e.preventDefault()),r(e);break;case g.TAB:case g.ESCAPE:e.stopPropagation(),e.preventDefault(),s.restoreFocus=!0,H.nextTick(c.hide,!0);break;default:if(F(e,m)){var n=o.controller("mdSelectMenu").optNodeForKeyboardSearch(e);s.focusedNode=n||s.focusedNode,n&&n.focus()}}}function i(e){for(var t,n=H.nodesToArray(s.optionNodes),o=n.indexOf(s.focusedNode);-1===o?o=0:"next"===e&&o<n.length-1?o++:"prev"===e&&0<o&&o--,(t=n[o]).hasAttribute("disabled")&&(t=me),!t&&o<n.length-1&&0<o;);t&&t.focus(),s.focusedNode=t}function r(i){if(!(i&&"click"==i.type&&i.currentTarget!=o[0]||function(){var e=!1;if(i&&0<i.currentTarget.children.length){var t=i.currentTarget.children[0],n=t.scrollHeight>t.clientHeight;if(n&&0<t.children.length){var o=i.pageX-i.currentTarget.getBoundingClientRect().left;o>t.querySelector("md-option").offsetWidth&&(e=!0)}}return e}())){var e=H.getClosest(i.target,"md-option");e&&e.hasAttribute&&!e.hasAttribute("disabled")&&(i.preventDefault(),i.stopPropagation(),t.isMultiple||(s.restoreFocus=!0,H.nextTick(function(){c.hide(t.ngModel.$viewValue)},!0)))}}}(),s.cleanupResizing=(o=a,i=d,r=s,t=function(){if(!r.isRemoved){var e=b(o,i,r),t=e.container,n=e.dropDown;t.element.css(f.toCss(t.styles)),n.element.css(f.toCss(n.styles))}},(n=ce.element(O)).on("resize",t),n.on("orientationchange",t),function(){n.off("resize",t),n.off("orientationchange",t)}),l(s.focusedNode),e},s.hideBackdrop);var n,e;var t,o;function i(){return r(function(e){if(s.isRemoved)return r.reject(!1);var t=b(a,d,s);t.container.element.css(f.toCss(t.container.styles)),t.dropDown.element.css(f.toCss(t.dropDown.styles)),u(function(){d.addClass("md-active"),t.dropDown.element.css(f.toCss({transform:""})),l(s.focusedNode),e()})})}function l(e){e&&!e.hasAttribute("disabled")&&e.focus()}},onRemove:function(e,t,n){var o=null,i=e.$on("$destroy",function(){o.end()});return(n=n||{}).cleanupInteraction(),n.cleanupResizing(),n.hideBackdrop(),!0===n.$destroy?r():(o=p(t,{addClass:"md-leave"})).start().then(r);function r(){i(),t.removeClass("md-active").attr("aria-hidden","true").css({display:"none",top:"",right:"",bottom:"",left:"","font-size":"","min-width":""}),t.parent().find("md-select-value").removeAttr("aria-hidden"),function(e){var t=e.selectCtrl;if(t){var n=e.selectEl.controller("mdSelectMenu");t.setLabelText(n?n.selectedLabels():""),t.triggerClose()}}(n),!n.$destroy&&n.restoreFocus&&n.target.focus()}},hasBackdrop:!0,disableParentScroll:!0};function b(e,t,n){var o,i,r=t[0],a=n.target[0].children[0],d=P[0].body,s=n.selectEl[0],l=n.contentEl[0],c=d.getBoundingClientRect(),m=a.getBoundingClientRect(),u={left:c.left+R,top:R,bottom:c.height-R,right:c.width-R-(H.floatingScrollbars()?16:0)},p=m.top-u.top,h=(m.left,m.left,m.width,u.bottom-(m.top+m.height)),f=c.width-2*R,g=s.querySelector("md-option[selected]"),b=s.getElementsByTagName("md-option"),v=s.getElementsByTagName("md-optgroup"),E=function(e,t){var n=!1;try{var o=e[0].style.display;e[0].style.display="block",n=t.scrollHeight>t.offsetHeight,e[0].style.display=o}finally{}return n}(t,l);o=(i=n.loadingAsync)&&ce.isFunction(i.then)?l.firstElementChild||l:g||(v.length?v[0]:b.length?b[0]:l.firstElementChild||l),l.offsetWidth>f?l.style["max-width"]=f+"px":l.style.maxWidth=null,E&&s.classList.add("md-overflow");var $=o;"MD-OPTGROUP"===($.tagName||"").toUpperCase()&&(o=$=b[0]||l.firstElementChild||l),n.focusedNode=$,r.style.display="block";var y,C,M,T,A,w,_=s.getBoundingClientRect(),k=(y=o)?{left:y.offsetLeft,top:y.offsetTop,width:y.offsetWidth,height:y.offsetHeight}:{left:0,top:0,width:0,height:0};if(o){var x=O.getComputedStyle(o);k.paddingLeft=parseInt(x.paddingLeft,10)||0,k.paddingRight=parseInt(x.paddingRight,10)||0}if(E){var N=l.offsetHeight/2;l.scrollTop=k.top+k.height/2-N,p<N?l.scrollTop=Math.min(k.top,l.scrollTop+N-p):h<N&&(l.scrollTop=Math.max(k.top+k.height-_.height,l.scrollTop-N+h))}C=m.left+k.left-k.paddingLeft+2,M=Math.floor(m.top+m.height/2-k.height/2-k.top+l.scrollTop)+2,T=k.left+m.width/2+"px "+(k.top+k.height/2-l.scrollTop)+"px 0px",A=Math.min(m.width+k.paddingLeft+k.paddingRight,f),w=B.getComputedStyle(a)["font-size"];var S=r.getBoundingClientRect(),D=Math.round(100*Math.min(m.width/_.width,1))/100,I=Math.round(100*Math.min(m.height/_.height,1))/100;return{container:{element:ce.element(r),styles:{left:Math.floor(L(u.left,C,u.right-S.width)),top:Math.floor(L(u.top,M,u.bottom-S.height)),"min-width":A,"font-size":w}},dropDown:{element:ce.element(s),styles:{transformOrigin:T,transform:n.alreadyOpen?"":H.supplant("scale({0},{1})",[D,I])}}}}}function L(e,t,n){return Math.max(e,Math.min(t,n))}}function F(e,t){var n=String.fromCharCode(e.keyCode),o=e.keyCode<=31;return n&&n.length&&!o&&!t.isMetaKey(e)&&!t.isFnLockKey(e)&&!t.hasModifierKey(e)}ce.module("material.components.select",["material.core","material.components.backdrop"]).directive("mdSelect",e).directive("mdSelectMenu",t).directive("mdOption",n).directive("mdOptgroup",function(){return{restrict:"E",compile:function(t,n){t.parent().find("md-select-header").length||function(){var e=t.find("label");e.length||(e=ce.element("<label>"),t.prepend(e));e.addClass("md-container-ignore"),e.attr("aria-hidden","true"),n.label&&e.text(n.label)}()}}}).directive("mdSelectHeader",function(){return{restrict:"E"}}).provider("$mdSelect",o)}(),function(){function e(s,l){return["$mdUtil","$window",function(a,d){return{restrict:"A",multiElement:!0,link:function(o,i,t){var r=o.$on("$md-resize-enable",function(){r();var e=i[0],n=e.nodeType===d.Node.ELEMENT_NODE?d.getComputedStyle(e):{};o.$watch(t[s],function(e){if(!!e===l){a.nextTick(function(){o.$broadcast("$md-resize")});var t={cachedTransitionStyles:n};a.dom.animator.waitTransitionEnd(i,t).then(function(){o.$broadcast("$md-resize")})}})})}}}]}ce.module("material.components.showHide",["material.core"]).directive("ngShow",e("ngShow",!0)).directive("ngHide",e("ngHide",!1))}(),function(){function e(o,s,l,i){var c="SideNav '{0}' is not available! Did you use md-component-id='{0}'?",m={find:function(e,t){var n=o.get(e);return n||t?n:(i.error(s.supplant(c,[e||""])),me)},waitFor:u};return function(e,t){if(ce.isUndefined(e))return m;var n,o,i,r,a=!0===t,d=m.find(e,a);return!d&&a?m.waitFor(e):!d&&ce.isUndefined(t)?(n=m,o=e,i=function(){return!1},r=function(){return l.when(s.supplant(c,[o||""]))},ce.extend({isLockedOpen:i,isOpen:i,toggle:r,open:r,close:r,onClose:ce.noop,then:function(e){return u(o).then(e||ce.noop)}},n)):d};function u(e){return o.when(e).catch(i.error)}}function t(o,v,i,E,$,y,e,C,M,T,A,w,_){return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(e){return e.addClass("md-closed").attr("tabIndex","-1"),t}};function t(r,a,e,t){var d,s,l,c,m,u=null,p=null,h=T.when(!0),n=C(e.mdIsLockedOpen),f=ce.element(w);function g(e){return e.keyCode===i.KEY_CODE.ESCAPE?b(e):T.when(!0)}function b(e){return e.preventDefault(),t.close()}e.mdDisableScrollTarget&&((u=A[0].querySelector(e.mdDisableScrollTarget))?u=ce.element(u):M.warn(v.supplant('mdSidenav: couldn\'t find element matching selector "{selector}". Falling back to parent.',{selector:e.mdDisableScrollTarget}))),u||(u=a.parent()),e.hasOwnProperty("mdDisableBackdrop")||(s=v.createBackdrop(r,"md-sidenav-backdrop md-opaque ng-enter")),e.hasOwnProperty("mdDisableCloseEvents")&&(l=!0),a.addClass("_md"),E(a),s&&E.inherit(s,a),a.on("$destroy",function(){s&&s.remove(),t.destroy()}),r.$on("$destroy",function(){s&&s.remove()}),r.$watch(function(){return n(r.$parent,{$media:function(e){return M.warn("$media is deprecated for is-locked-open. Use $mdMedia instead."),o(e)},$mdMedia:o})},function(e,t){(r.isLockedOpen=e)===t?a.toggleClass("md-locked-open",!!e):y[e?"addClass":"removeClass"](a,"md-locked-open");s&&s.toggleClass("md-locked-open",!!e)}),r.$watch("isOpen",function(e){var t,n=v.findFocusTarget(a)||v.findFocusTarget(a,"[md-sidenav-focus]")||a,o=a.parent();l||(o[e?"on":"off"]("keydown",g),s&&s[e?"on":"off"]("click",b));t=function(e,t){var n=a[0],o=e[0].scrollTop;if(t&&o){m={top:n.style.top,bottom:n.style.bottom,height:n.style.height};var i={top:o+"px",bottom:"auto",height:e[0].clientHeight+"px"};a.css(i),s.css(i)}if(!t&&m)return function(){n.style.top=m.top,n.style.bottom=m.bottom,n.style.height=m.height,s[0].style.top=null,s[0].style.bottom=null,s[0].style.height=null,m=null}}(o,e),e&&(p=A[0].activeElement,c=$.getLastInteractionType());return i=e,i&&!d?(d=u.css("overflow"),u.css("overflow","hidden")):ce.isDefined(d)&&(u.css("overflow",d),d=me),h=T.all([e&&s?y.enter(s,o):s?y.leave(s):T.when(!0),y[e?"removeClass":"addClass"](a,"md-closed")]).then(function(){r.isOpen&&(_(function(){f.triggerHandler("resize")}),n&&n.focus()),t&&t()});var i}),t.$toggleOpen=function(e){return r.isOpen===e?T.when(!0):(r.isOpen&&t.onCloseCb&&t.onCloseCb(),T(function(t){r.isOpen=e,v.nextTick(function(){h.then(function(e){!r.isOpen&&p&&"keyboard"===c&&(p.focus(),p=null),t(e)})})}))}}}function n(t,e,n,o,i){var r=this;r.isOpen=function(){return!!t.isOpen},r.isLockedOpen=function(){return!!t.isLockedOpen},r.onClose=function(e){return r.onCloseCb=e,r},r.open=function(){return r.$toggleOpen(!0)},r.close=function(){return r.$toggleOpen(!1)},r.toggle=function(){return r.$toggleOpen(!t.isOpen)},r.$toggleOpen=function(e){return o.when(t.isOpen=e)};var a=e.mdComponentId,d=a&&-1<a.indexOf(i.startSymbol()),s=d?i(a)(t.$parent):a;r.destroy=n.register(r,s),d&&e.$observe("mdComponentId",function(e){e&&e!==r.$$mdHandle&&(r.destroy(),r.destroy=n.register(r,e))})}e.$inject=["$mdComponentRegistry","$mdUtil","$q","$log"],t.$inject=["$mdMedia","$mdUtil","$mdConstant","$mdTheming","$mdInteraction","$animate","$compile","$parse","$log","$q","$document","$window","$$rAF"],n.$inject=["$scope","$attrs","$mdComponentRegistry","$q","$interpolate"],ce.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",e).directive("mdSidenav",t).directive("mdSidenavFocus",function(){return{restrict:"A",require:"^mdSidenav",link:function(e,t,n,o){}}}).controller("$mdSidenavController",n)}(),function(){e.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse","$log","$timeout"],ce.module("material.components.slider",["material.core"]).directive("mdSlider",e).directive("mdSliderContainer",function(){return{controller:function(){},compile:function(e){var t=e.find("md-slider");if(t){var n=t.attr("md-vertical");return n!==me&&e.attr("md-vertical",""),t.attr("flex")||t.attr("flex",""),function(e,a,t,n){function o(e){a.children().attr("disabled",e),a.find("input").attr("disabled",e)}a.addClass("_md");var d,i=ce.noop;t.disabled?o(!0):t.ngDisabled&&(i=e.$watch(t.ngDisabled,function(e){o(e)})),e.$on("$destroy",function(){i()}),n.fitInputWidthToTextLength=function(e){var t=a[0].querySelector("md-input-container");if(t){var n=getComputedStyle(t),o=parseInt(n.minWidth),i=parseInt(n.paddingLeft)+parseInt(n.paddingRight);d=d||parseInt(n.maxWidth);var r=Math.max(d,o+i+o/2*e);t.style.maxWidth=r+"px"}}}}}}});var J=10,ee=4;function e(z,W,i,V,Y,K,G,X,Q,Z){return{scope:{},require:["?ngModel","?^mdSliderContainer"],template:'<div class="md-slider-wrapper"><div class="md-slider-content"><div class="md-track-container"><div class="md-track"></div><div class="md-track md-track-fill"></div><div class="md-track-ticks"></div></div><div class="md-thumb-container"><div class="md-thumb"></div><div class="md-focus-thumb"></div><div class="md-focus-ring"></div><div class="md-sign"><span class="md-thumb-text"></span></div><div class="md-disabled-thumb"></div></div></div></div>',compile:function(e,t){var n=ce.element(e[0].getElementsByClassName("md-slider-wrapper")),o=t.tabindex||0;n.attr("tabindex",o),(t.disabled||t.ngDisabled)&&n.attr("tabindex",-1);return n.attr("role","slider"),i.expect(e,"aria-label"),r}};function r(i,r,e,t){K(r);var o=t[0]||{$setViewValue:function(e){this.$viewValue=e,this.$viewChangeListeners.forEach(function(e){e()})},$parsers:[],$formatters:[],$viewChangeListeners:[]},n=t[1],a=(ce.element(V.getClosest(r,"_md-slider-container",!0)),e.ngDisabled?ce.bind(null,X(e.ngDisabled),i.$parent):function(){return r[0].hasAttribute("disabled")}),d=ce.element(r[0].querySelector(".md-thumb")),s=ce.element(r[0].querySelector(".md-thumb-text")),l=d.parent(),c=ce.element(r[0].querySelector(".md-track-container")),m=ce.element(r[0].querySelector(".md-track-fill")),u=ce.element(r[0].querySelector(".md-track-ticks")),p=ce.element(r[0].getElementsByClassName("md-slider-wrapper")),h=(ce.element(r[0].getElementsByClassName("md-slider-content")),V.throttle(S,5e3)),f=ce.isDefined(e.mdVertical),g=ce.isDefined(e.mdDiscrete),b=ce.isDefined(e.mdInvert);ce.isDefined(e.min)?e.$observe("min",w):w(0),ce.isDefined(e.max)?e.$observe("max",_):_(100),ce.isDefined(e.step)?e.$observe("step",k):k(1),ce.isDefined(e.round)?e.$observe("round",x):x(3);ce.noop;function v(){S(),O()}e.ngDisabled&&i.$parent.$watch(e.ngDisabled,function(){r.attr("aria-disabled",!!a())}),G.register(p,"drag",{horizontal:!f}),i.mouseActive=!1,p.on("keydown",function(e){if(a())return;var t,n=Y.KEY_CODE;switch(e.keyCode){case n.DOWN_ARROW:case n.LEFT_ARROW:e.preventDefault(),t=-y;break;case n.UP_ARROW:case n.RIGHT_ARROW:e.preventDefault(),t=y;break;case n.PAGE_DOWN:e.preventDefault(),t=-y*J;break;case n.PAGE_UP:e.preventDefault(),t=y*J;break;case n.HOME:e.preventDefault(),e.stopPropagation(),I(E);break;case n.END:e.preventDefault(),e.stopPropagation(),I($)}t&&(t=b?-t:t,(e.metaKey||e.ctrlKey||e.altKey)&&(t*=ee),e.preventDefault(),e.stopPropagation(),I(o.$viewValue+t))}).on("mousedown",function(){(function(){if(!g||a())return;if(ce.isUndefined(y))return;if(y<=0){var e="Slider step value must be greater than zero when in discrete mode";throw Q.error(e),new Error(e)}var t=Math.floor(($-E)/y);M||(M=ce.element("<canvas>").css("position","absolute"),u.append(M),T=M[0].getContext("2d"));var n,o=D();!o||o.height||o.width||(S(),o=N);M[0].width=o.width,M[0].height=o.height;for(var i=0;i<=t;i++){var r=W.getComputedStyle(u[0]);T.fillStyle=r.color||"black",n=Math.floor((f?o.height:o.width)*(i/t)),T.fillRect(f?0:n-1,f?n-1:0,f?o.width:2,f?2:o.height)}})(),i.mouseActive=!0,p.removeClass("md-focused"),Z(function(){i.mouseActive=!1},100)}).on("focus",function(){!1===i.mouseActive&&p.addClass("md-focused")}).on("blur",function(){p.removeClass("md-focused"),r.removeClass("md-active"),function(){if(M&&T){var e=D();T.clearRect(0,0,e.width,e.height)}}()}).on("$md.pressdown",function(e){if(a())return;r.addClass("md-active"),r[0].focus(),S();var t=P(L(j(U(f?e.pointer.y:e.pointer.x))));i.$apply(function(){H(t),R(q(t))})}).on("$md.pressup",function(e){if(a())return;r.removeClass("md-dragging");var t=P(L(j(U(f?e.pointer.y:e.pointer.x))));i.$apply(function(){H(t),O()})}).on("$md.dragstart",function(e){if(a())return;F=!0,e.stopPropagation(),r.addClass("md-dragging"),B(e)}).on("$md.drag",function(e){if(!F)return;e.stopPropagation(),B(e)}).on("$md.dragend",function(e){if(!F)return;e.stopPropagation(),F=!1}),setTimeout(v,0);var E,$,y,C,M,T,A=z.throttle(v);function w(e){E=parseFloat(e),o.$viewValue=P(o.$modelValue,E,$),p.attr("aria-valuemin",e),v()}function _(e){$=parseFloat(e),o.$viewValue=P(o.$modelValue,E,$),p.attr("aria-valuemax",e),v()}function k(e){y=parseFloat(e)}function x(e){C=P(parseInt(e),0,6)}ce.element(W).on("resize",A),i.$on("$destroy",function(){ce.element(W).off("resize",A)}),o.$render=O,o.$viewChangeListeners.push(O),o.$formatters.push(P),o.$formatters.push(L);var N={};function S(){N=c[0].getBoundingClientRect()}function D(){return h(),N}function I(e){i.$evalAsync(function(){H(e)})}function H(e){o.$setViewValue(P(L(e)))}function O(){isNaN(o.$viewValue)&&(o.$viewValue=o.$modelValue),o.$viewValue=P(o.$viewValue);var e=q(o.$viewValue);i.modelValue=o.$viewValue,p.attr("aria-valuenow",o.$viewValue),R(e),s.text(o.$viewValue)}function P(e,t,n){if(ce.isNumber(e))return t=ce.isNumber(t)?t:E,n=ce.isNumber(n)?n:$,Math.max(t,Math.min(n,e))}function L(e){if(ce.isNumber(e)){var t=Math.round((e-E)/y)*y+E;return t=Math.round(t*Math.pow(10,C))/Math.pow(10,C),n&&n.fitInputWidthToTextLength&&V.debounce(function(){n.fitInputWidthToTextLength(t.toString().length)},100)(),t}}function R(e){var t;t=e;var n=100*(e=Math.max(0,Math.min(t||0,1)))+"%",o=b?100*(1-e)+"%":n;f?l.css("bottom",n):V.bidiProperty(l,"left","right",n),m.css(f?"height":"width",o),r.toggleClass(b?"md-max":"md-min",0===e),r.toggleClass(b?"md-min":"md-max",1===e)}S();var F=!1;function B(e){var t,n,o;g?(n=f?e.pointer.y:e.pointer.x,o=P(L(j(U(n)))),R(U(n)),s.text(o)):(t=f?e.pointer.y:e.pointer.x,i.$evalAsync(function(){H(j(U(t)))}))}function U(e){var t=(e-(f?N.top:N.left))/(f?N.height:N.width);return f||"rtl"!==V.bidi()||(t=1-t),Math.max(0,Math.min(1,f?1-t:t))}function j(e){return E+(b?1-e:e)*($-E)}function q(e){var t=(e-E)/($-E);return b?1-t:t}}}}(),function(){function e(l,c,m,d){var s=m.checkStickySupport();return function(e,t,n){var o=t.controller("mdContent");if(o)if(s)t.css({position:s,top:0,"z-index":2});else{var i=o.$element.data("$$sticky");i||(i=function(e){var o,i=e.$element,r=c.throttle(t);return function(e){var t,n,o=200;function i(){+m.now()-n>o?(t=!1,e.triggerHandler("$scrollend")):(e.triggerHandler("$scroll"),c.throttle(i))}e.on("scroll touchmove",function(){t||(t=!0,c.throttle(i),e.triggerHandler("$scrollstart")),e.triggerHandler("$scroll"),n=+m.now()})}(i),i.on("$scrollstart",r),i.on("$scroll",function e(){var t=i.prop("scrollTop"),n=(e.prevScrollTop||0)<t;if(0!==(e.prevScrollTop=t)){if(n){if(o.next&&o.next.top<=t)return void d(o.next);if(o.current&&o.next&&o.next.top-t<=o.next.height)return void s(o.current,t+(o.next.top-o.next.height-t))}if(!n){if(o.current&&o.prev&&t<o.current.top)return void d(o.prev);if(o.next&&o.current&&t>=o.next.top-o.current.height)return void s(o.current,t+(o.next.top-t-o.current.height))}o.current&&s(o.current,t)}else d(null)}),o={prev:null,current:null,next:null,items:[],add:function(n,e){e.addClass("md-sticky-clone");var t={element:n,clone:e};return o.items.push(t),m.nextTick(function(){i.prepend(t.clone)}),r(),function(){o.items.forEach(function(e,t){e.element[0]===n[0]&&(o.items.splice(t,1),e.clone.remove())}),r()}},refreshElements:t};function t(){var e;o.items.forEach(a),o.items=o.items.sort(function(e,t){return e.top<t.top?-1:1});for(var t=i.prop("scrollTop"),n=o.items.length-1;0<=n;n--)if(t>o.items[n].top){e=o.items[n];break}d(e)}function a(e){var t=e.element[0];for(e.top=0,e.left=0,e.right=0;t&&t!==i[0];)e.top+=t.offsetTop,e.left+=t.offsetLeft,t.offsetParent&&(e.right+=t.offsetParent.offsetWidth-t.offsetWidth-t.offsetLeft),t=t.offsetParent;e.height=e.element.prop("offsetHeight");var n=m.floatingScrollbars()?"0":me;m.bidi(e.clone,"margin-left",e.left,n),m.bidi(e.clone,"margin-right",n,e.right)}function d(e){if(o.current!==e){o.current&&(s(o.current,null),n(o.current,null)),e&&n(e,"active"),o.current=e;var t=o.items.indexOf(e);o.next=o.items[t+1],o.prev=o.items[t-1],n(o.next,"next"),n(o.prev,"prev")}}function n(e,t){e&&e.state!==t&&(e.state&&(e.clone.attr("sticky-prev-state",e.state),e.element.attr("sticky-prev-state",e.state)),e.clone.attr("sticky-state",t),e.element.attr("sticky-state",t),e.state=t)}function s(e,t){e&&(null===t||t===me?e.translateY&&(e.translateY=null,e.clone.css(l.CSS.TRANSFORM,"")):(e.translateY=t,m.bidi(e.clone,l.CSS.TRANSFORM,"translate3d("+e.left+"px,"+t+"px,0)","translateY("+t+"px)")))}}(o),o.$element.data("$$sticky",i));var r=n||d(t.clone())(e),a=i.add(t,r);e.$on("$destroy",a)}}}e.$inject=["$mdConstant","$$rAF","$mdUtil","$compile"],ce.module("material.components.sticky",["material.core","material.components.content"]).factory("$mdSticky",e)}(),function(){function e(d,s,l,c,m){return{restrict:"E",replace:!0,transclude:!0,template:'<div class="md-subheader _md">  <div class="md-subheader-inner">    <div class="md-subheader-content"></div>  </div></div>',link:function(n,o,e,t,i){l(o),o.addClass("_md"),c.prefixer().removeAttribute(o,"ng-repeat");var r=o[0].outerHTML;function a(e){return ce.element(e[0].querySelector(".md-subheader-content"))}e.$set("role","heading"),m.expect(o,"aria-level","2"),i(n,function(e){a(o).append(e)}),o.hasClass("md-no-sticky")||i(n,function(e){var t=s('<div class="md-subheader-wrapper" aria-hidden="true">'+r+"</div>")(n);c.nextTick(function(){a(t).append(e)}),d(n,o,t)})}}}e.$inject=["$mdSticky","$compile","$mdTheming","$mdUtil","$mdAria"],ce.module("material.components.subheader",["material.core","material.components.sticky"]).directive("mdSubheader",e)}(),function(){function e(e){t.$inject=["$parse"];var r="md"+e,a="$md."+e.toLowerCase();return t;function t(i){return{restrict:"A",link:function(n,e,t){var o=i(t[r]);e.on(a,function(e){var t=e.currentTarget;n.$applyAsync(function(){o(n,{$event:e,$target:{current:t}})})})}}}}ce.module("material.components.swipe",["material.core"]).directive("mdSwipeLeft",e("SwipeLeft")).directive("mdSwipeRight",e("SwipeRight")).directive("mdSwipeUp",e("SwipeUp")).directive("mdSwipeDown",e("SwipeDown"))}(),function(){function e(e,m,u,p,h,f,g){var n=e[0];return{restrict:"E",priority:u.BEFORE_NG_ARIA,transclude:!0,template:'<div class="md-container"><div class="md-bar"></div><div class="md-thumb-container"><div class="md-thumb" md-ink-ripple md-ink-ripple-checkbox></div></div></div><div ng-transclude class="md-label"></div>',require:["^?mdInputContainer","?ngModel","?^form"],compile:function(e,t){var c=n.compile(e,t).post;return e.addClass("md-dragging"),function(n,o,e,t){t[0];var i=t[1]||m.fakeNgModel(),r=(t[2],null);null!=e.disabled?r=function(){return!0}:e.ngDisabled&&(r=p(e.ngDisabled));var a,d=ce.element(o[0].querySelector(".md-thumb-container")),s=ce.element(o[0].querySelector(".md-container")),l=ce.element(o[0].querySelector(".md-label"));h(function(){o.removeClass("md-dragging")}),c(n,o,e,t),r&&n.$watch(r,function(e){o.attr("tabindex",e?-1:0)}),e.$observe("mdInvert",function(e){var t=m.parseAttributeBoolean(e);t?o.prepend(l):o.prepend(s),o.toggleClass("md-inverted",t)}),f.register(s,"drag"),s.on("$md.dragstart",function(e){r&&r(n)||(e.stopPropagation(),o.addClass("md-dragging"),a={width:d.prop("offsetWidth")})}).on("$md.drag",function(e){if(a){e.stopPropagation(),e.srcEvent&&e.srcEvent.preventDefault();var t=e.pointer.distanceX/a.width,n=i.$viewValue?1+t:t;n=Math.max(0,Math.min(1,n)),d.css(u.CSS.TRANSFORM,"translate3d("+100*n+"%,0,0)"),a.translate=n}}).on("$md.dragend",function(e){var t;a&&(e.stopPropagation(),o.removeClass("md-dragging"),d.css(u.CSS.TRANSFORM,""),(i.$viewValue?a.translate<.5:.5<a.translate)&&(t=!i.$viewValue,n.$apply(function(){i.$setViewValue(t),i.$render()})),a=null,n.skipToggle=!0,g(function(){n.skipToggle=!1},1))})}}}}e.$inject=["mdCheckboxDirective","$mdUtil","$mdConstant","$parse","$$rAF","$mdGesture","$timeout"],ce.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",e)}(),ce.module("material.components.tabs",["material.core","material.components.icon"]),ce.module("material.components.tabs").service("MdTabsPaginationService",function(){return{decreasePageOffset:function(e,t){var n,o,i=e.canvas,r=d(e);for(n=0;n<r.length;n++)if(r[n]>=t){o=r[n];break}return Math.max(0,o-i.clientWidth)},increasePageOffset:function(e,t){var n,o,i=e.canvas,r=s(e)-i.clientWidth,a=d(e);for(n=0;a.length,a[n]<=t+i.clientWidth;n++)o=a[n];return Math.min(r,o)},getTabOffsets:d,getTotalTabsWidth:s};function d(e){var t,n,o=0,i=[];for(t=0;t<e.tabs.length;t++)n=e.tabs[t],i.push(o),o+=n.offsetWidth;return i}function s(e){var t,n,o=0;for(t=0;t<e.tabs.length;t++)n=e.tabs[t],o+=n.offsetWidth;return o}}),ce.module("material.components.tabs").directive("mdTab",function(){return{require:"^?mdTabs",terminal:!0,compile:function(e,t){var n=s(e,"md-tab-label"),o=s(e,"md-tab-body");if(0===n.length&&(n=ce.element("<md-tab-label></md-tab-label>"),t.label?n.text(t.label):n.append(e.contents()),0===o.length)){var i=e.contents().detach();(o=ce.element("<md-tab-body></md-tab-body>")).append(i)}return e.append(n),o.html()&&e.append(o),r},scope:{active:"=?mdActive",disabled:"=?ngDisabled",select:"&?mdOnSelect",deselect:"&?mdOnDeselect",tabClass:"@mdTabClass"}};function r(e,t,n,o){if(o){var i=o.getTabElementIndex(t),r=s(t,"md-tab-body").remove(),a=s(t,"md-tab-label").remove(),d=o.insertTab({scope:e,parent:e.$parent,index:i,element:t,template:r.html(),label:a.html()},i);e.select=e.select||ce.noop,e.deselect=e.deselect||ce.noop,e.$watch("active",function(e){e&&o.select(d.getIndex(),!0)}),e.$watch("disabled",function(){o.refreshIndex()}),e.$watch(function(){return o.getTabElementIndex(t)},function(e){d.index=e,o.updateTabOrder()}),e.$on("$destroy",function(){o.removeTab(d)})}}function s(e,t){for(var n=e[0].children,o=0,i=n.length;o<i;o++){var r=n[o];if(r.tagName===t.toUpperCase())return ce.element(r)}return ce.element()}}),ce.module("material.components.tabs").directive("mdTabItem",function(){return{require:"^?mdTabs",link:function(e,t,n,o){o&&o.attachRipple(e,t)}}}),ce.module("material.components.tabs").directive("mdTabLabel",function(){return{terminal:!0}}),function(){function e(o){return{restrict:"A",compile:function(e,t){var n=o(t.mdTabScroll,null,!0);return function(t,e){e.on("wheel",function(e){t.$apply(function(){n(t,{$event:e})})})}}}}e.$inject=["$parse"],ce.module("material.components.tabs").directive("mdTabScroll",e)}(),function(){function e(l,c,n,o,i,m,s,r,a,d,t,u,p){var h=this,f=!1,g=[],b=!1,v=!1;function E(t,e){var n=r.$normalize("md-"+t);function o(e){h[t]="false"!==e}e&&P(t,e),r.hasOwnProperty(n)&&o(r[n]),r.$observe(n,o)}function $(){b=!0,ce.element(n).off("resize",N)}function y(){var e=I();ce.element(e.wrapper).toggleClass("md-stretch-tabs",function(){switch(h.stretchTabs){case"always":return!0;case"never":return!1;default:return!h.shouldPaginate&&n.matchMedia("(max-width: 600px)").matches}}()),W()}function C(){h.shouldCenterTabs=H()}function M(t,e){if(t!==e){var n=I();ce.forEach(n.tabs,function(e){e.style.maxWidth=t+"px"}),ce.forEach(n.dummies,function(e){e.style.maxWidth=t+"px"}),m.nextTick(h.updateInkBarStyles)}}function T(e,t){e!==t&&(h.maxTabWidth=F(),h.shouldCenterTabs=H(),m.nextTick(function(){h.maxTabWidth=F(),j(h.selectedIndex)}))}function A(e){c[e?"removeClass":"addClass"]("md-no-tab-content")}function w(e){var t=(h.shouldCenterTabs||Y()?"":"-")+e+"px";t=t.replace("--",""),ce.element(I().paging).css(o.CSS.TRANSFORM,"translate("+t+", 0)"),l.$broadcast("$mdTabsPaginationChanged")}function _(e,t){e!==t&&I().tabs[e]&&(j(),U())}function k(e,t){e!==t&&(h.selectedIndex=O(e),h.lastSelectedIndex=t,h.updateInkBarStyles(),z(),j(e),l.$broadcast("$mdTabsChanged"),h.tabs[t]&&h.tabs[t].scope.deselect(),h.tabs[e]&&h.tabs[e].scope.select())}function x(e,t){f||(h.focusIndex=h.selectedIndex=e),t&&h.noSelectClick||m.nextTick(function(){h.tabs[e].element.triggerHandler("click")},!1)}function N(){h.lastSelectedIndex=h.selectedIndex,h.offsetLeft=V(h.offsetLeft),m.nextTick(function(){h.updateInkBarStyles(),L()})}function S(e){ce.element(I().inkBar).toggleClass("ng-hide",e)}function D(e){c.toggleClass("md-dynamic-height",e)}function I(){var e={},t=c[0];return e.wrapper=t.querySelector("md-tabs-wrapper"),e.canvas=e.wrapper.querySelector("md-tabs-canvas"),e.paging=e.canvas.querySelector("md-pagination-wrapper"),e.inkBar=e.paging.querySelector("md-ink-bar"),e.nextButton=t.querySelector("md-next-button"),e.prevButton=t.querySelector("md-prev-button"),e.contents=t.querySelectorAll("md-tabs-content-wrapper > md-tab-content"),e.tabs=e.paging.querySelectorAll("md-tab-item"),e.dummies=e.canvas.querySelectorAll("md-dummy-tab"),e}function H(){return h.centerTabs&&!h.shouldPaginate}function O(e){if(-1===e)return-1;var t,n,o=Math.max(h.tabs.length-e,e);for(t=0;t<=o;t++){if((n=h.tabs[e+t])&&!0!==n.scope.disabled)return n.getIndex();if((n=h.tabs[e-t])&&!0!==n.scope.disabled)return n.getIndex()}return e}function P(e,n,o){Object.defineProperty(h,e,{get:function(){return o},set:function(e){var t=o;o=e,n&&n(e,t)}})}function L(){h.maxTabWidth=F(),h.shouldPaginate=function(){var e;if(h.noPagination||!v)return!1;var t=c.prop("clientWidth");return ce.forEach(I().tabs,function(e){t-=e.offsetWidth}),e=t<0,m.msie&&(I().paging.style.width=e?"999999px":me),e}()}function R(e){var t=0;return ce.forEach(e,function(e){t+=Math.max(e.offsetWidth,e.getBoundingClientRect().width)}),Math.ceil(t)}function F(){var e=I().canvas.clientWidth;return Math.max(0,Math.min(e-1,264))}function B(e,t){var n,o=t?"focusIndex":"selectedIndex",i=h[o];for(n=i+e;h.tabs[n]&&h.tabs[n].scope.disabled;n+=e);n=(i+e+h.tabs.length)%h.tabs.length,h.tabs[n]&&(h[o]=n)}function U(){h.styleTabItemFocus="keyboard"===t.getLastInteractionType();var e=I().tabs[h.focusIndex];e&&e.focus()}function j(e){var t=I();if(ce.isNumber(e)||(e=h.focusIndex),t.tabs[e]&&!h.shouldCenterTabs){var n=t.tabs[e],o=n.offsetLeft,i=n.offsetWidth+o;if(0!==e)if(Y()){var r=R(Array.prototype.slice.call(t.tabs,0,e)),a=R(Array.prototype.slice.call(t.tabs,0,e+1));h.offsetLeft=Math.min(h.offsetLeft,V(r)),h.offsetLeft=Math.max(h.offsetLeft,V(a-t.canvas.clientWidth))}else h.offsetLeft=Math.max(h.offsetLeft,V(i-t.canvas.clientWidth+32)),h.offsetLeft=Math.min(h.offsetLeft,V(o));else h.offsetLeft=0}}function q(){h.selectedIndex=O(h.selectedIndex),h.focusIndex=O(h.focusIndex)}function z(){if(!h.dynamicHeight)return c.css("height","");if(!h.tabs.length)return g.push(z);var e=I(),t=e.contents[h.selectedIndex],n=t?t.offsetHeight:0,o=e.wrapper.offsetHeight,i=n+o,r=c.prop("clientHeight");if(r!==i){"bottom"===c.attr("md-align-tabs")&&(r-=o,i-=o,c.attr("md-border-bottom")!==me&&++r),f=!0;var a={height:r+"px"},d={height:i+"px"};c.css(a),s(c,{from:a,to:d,easing:"cubic-bezier(0.35, 0, 0.25, 1)",duration:.5}).start().done(function(){c.css({transition:"none",height:""}),m.nextTick(function(){c.css("transition","")}),f=!1})}}function W(e,t){if(!h.noInkBar){var n=I();if(n.tabs[h.selectedIndex])if(h.tabs.length)if(c.prop("offsetParent")){var o=h.selectedIndex,i=n.paging.offsetWidth,r=n.tabs[o],a=r.offsetLeft,d=i-a-r.offsetWidth;if(h.shouldCenterTabs){var s=R(n.tabs);s<i&&e!==i&&t!==s&&u(W,0,!0,i,s)}!function(){var e=I(),t=h.selectedIndex,n=h.lastSelectedIndex,o=ce.element(e.inkBar);if(!ce.isNumber(n))return;o.toggleClass("md-left",t<n).toggleClass("md-right",n<t)}(),ce.element(n.inkBar).css({left:a+"px",right:d+"px"})}else(function e(){e.watcher||(e.watcher=l.$watch(function(){m.nextTick(function(){e.watcher&&c.prop("offsetParent")&&(e.watcher(),e.watcher=null,N())},!1)}))})();else g.push(h.updateInkBarStyles);else ce.element(n.inkBar).css({left:"auto",right:"auto"})}}function V(e){var t=I();if(!t.tabs.length||!h.shouldPaginate)return 0;var n=t.tabs[t.tabs.length-1],o=n.offsetLeft+n.offsetWidth;return e=Y()?(e=Math.min(t.paging.offsetWidth-t.canvas.clientWidth,e),Math.max(0,e)):(e=Math.max(0,e),Math.min(o-t.canvas.clientWidth,e))}function Y(){return"rtl"===m.bidi()}h.$onInit=function(){(function(t,e){var n=r.$normalize("md-"+t);e&&P(t,e);r.$observe(n,function(e){h[t]=e})})("stretchTabs",y),P("focusIndex",_,h.selectedIndex||0),P("offsetLeft",w,0),P("hasContent",A,!1),P("maxTabWidth",M,F()),P("shouldPaginate",T,!1),E("noInkBar",S),E("dynamicHeight",D),E("noPagination"),E("swipeContent"),E("noDisconnect"),E("autoselect"),E("noSelectClick"),E("centerTabs",C),E("enableDisconnect"),h.scope=l,h.parent=l.$parent,h.tabs=[],h.lastSelectedIndex=null,h.hasFocus=!1,h.styleTabItemFocus=!1,h.shouldCenterTabs=H(),h.tabContentPrefix="tab-content-",h.navigationHint="Use the left and right arrow keys to navigate between tabs",h.selectedIndex=h.selectedIndex||0,e=r.$mdTabsTemplate,t=ce.element(c[0].querySelector("md-tab-data")),t.html(e),a(t.contents())(h.parent),delete r.$mdTabsTemplate,l.$watch("$mdTabsCtrl.selectedIndex",k),ce.element(n).on("resize",N),l.$on("$destroy",$),d(c),m.nextTick(function(){z(),j(),W(),h.tabs[h.selectedIndex]&&h.tabs[h.selectedIndex].scope.select(),v=!0,L()});var e,t},h.updatePagination=m.debounce(L,100),h.redirectFocus=U,h.attachRipple=function(e,t){var n=I(),o={colorElement:ce.element(n.inkBar)};i.attach(e,t,o)},h.insertTab=function(e,t){var n=v,o={getIndex:function(){return h.tabs.indexOf(i)},isActive:function(){return this.getIndex()===h.selectedIndex},isLeft:function(){return this.getIndex()<h.selectedIndex},isRight:function(){return this.getIndex()>h.selectedIndex},shouldRender:function(){return!h.noDisconnect||this.isActive()},hasFocus:function(){return h.styleTabItemFocus&&h.hasFocus&&this.getIndex()===h.focusIndex},id:m.nextUid(),hasContent:!(!e.template||!e.template.trim())},i=ce.extend(o,e);ce.isDefined(t)?h.tabs.splice(t,0,i):h.tabs.push(i);return g.forEach(function(e){m.nextTick(e)}),g=[],function(){var e,t=!1;for(e=0;e<h.tabs.length;e++)if(h.tabs[e].hasContent){t=!0;break}h.hasContent=t}(),m.nextTick(function(){L(),function(e){if(e.hasContent){var t=c[0].querySelectorAll('[md-tab-id="'+e.id+'"]');ce.element(t).attr("aria-controls",h.tabContentPrefix+e.id)}}(i),n&&h.autoselect&&m.nextTick(function(){m.nextTick(function(){x(h.tabs.indexOf(i))})})}),i},h.removeTab=function(e){if(b)return;var t=h.selectedIndex,n=h.tabs.splice(e.getIndex(),1)[0];q(),h.selectedIndex===t&&(n.scope.deselect(),h.tabs[h.selectedIndex]&&h.tabs[h.selectedIndex].scope.select());m.nextTick(function(){L(),h.offsetLeft=V(h.offsetLeft)})},h.select=x,h.scroll=function(e){if(!h.shouldPaginate)return;e.preventDefault(),e.deltaY?h.offsetLeft=V(h.offsetLeft+e.deltaY):e.deltaX&&(h.offsetLeft=V(h.offsetLeft+e.deltaX))},h.nextPage=function(){if(!h.canPageForward())return;var e=p.increasePageOffset(I(),h.offsetLeft);h.offsetLeft=V(e)},h.previousPage=function(){if(!h.canPageBack())return;var e=p.decreasePageOffset(I(),h.offsetLeft);h.offsetLeft=V(e)},h.keydown=function(e){switch(e.keyCode){case o.KEY_CODE.LEFT_ARROW:e.preventDefault(),B(-1,!0);break;case o.KEY_CODE.RIGHT_ARROW:e.preventDefault(),B(1,!0);break;case o.KEY_CODE.SPACE:case o.KEY_CODE.ENTER:e.preventDefault(),f||x(h.focusIndex);break;case o.KEY_CODE.TAB:h.focusIndex!==h.selectedIndex&&(h.focusIndex=h.selectedIndex)}},h.canPageForward=function(){var e=I(),t=e.tabs[e.tabs.length-1];if(Y())return h.offsetLeft<e.paging.offsetWidth-e.canvas.offsetWidth;return t&&t.offsetLeft+t.offsetWidth>e.canvas.clientWidth+h.offsetLeft},h.canPageBack=function(){return 0<h.offsetLeft},h.refreshIndex=q,h.incrementIndex=B,h.getTabElementIndex=function(e){var t=c[0].getElementsByTagName("md-tab");return Array.prototype.indexOf.call(t,e[0])},h.updateInkBarStyles=m.debounce(W,100),h.updateTabOrder=m.debounce(function(){var e=h.tabs[h.selectedIndex],t=h.tabs[h.focusIndex];h.tabs=h.tabs.sort(function(e,t){return e.index-t.index}),h.selectedIndex=h.tabs.indexOf(e),h.focusIndex=h.tabs.indexOf(t)},100),h.getFocusedTabId=function(){var e=h.tabs[h.focusIndex];return e&&e.id?"tab-item-"+e.id:null},1===ce.version.major&&ce.version.minor<=4&&this.$onInit()}e.$inject=["$scope","$element","$window","$mdConstant","$mdTabInkRipple","$mdUtil","$animateCss","$attrs","$compile","$mdTheming","$mdInteraction","$timeout","MdTabsPaginationService"],ce.module("material.components.tabs").controller("MdTabsController",e)}(),function(){function e(n){return{scope:{navigationHint:"@?mdNavigationHint",selectedIndex:"=?mdSelected"},template:function(e,t){return t.$mdTabsTemplate=e.html(),'<md-tabs-wrapper> <md-tab-data></md-tab-data> <md-prev-button tabindex="-1" role="button" aria-label="Previous Page" aria-disabled="{{!$mdTabsCtrl.canPageBack()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageBack() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.previousPage()"> <md-icon md-svg-src="'+n.mdTabsArrow+'"></md-icon> </md-prev-button> <md-next-button tabindex="-1" role="button" aria-label="Next Page" aria-disabled="{{!$mdTabsCtrl.canPageForward()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageForward() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.nextPage()"> <md-icon md-svg-src="'+n.mdTabsArrow+'"></md-icon> </md-next-button> <md-tabs-canvas tabindex="{{ $mdTabsCtrl.hasFocus ? -1 : 0 }}" ng-focus="$mdTabsCtrl.redirectFocus()" ng-class="{ \'md-paginated\': $mdTabsCtrl.shouldPaginate, \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" ng-keydown="$mdTabsCtrl.keydown($event)"> <md-pagination-wrapper ng-class="{ \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" md-tab-scroll="$mdTabsCtrl.scroll($event)" role="tablist" aria-label="{{::$mdTabsCtrl.navigationHint}}"><md-tab-item tabindex="{{ tab.isActive() ? 0 : -1 }}" class="md-tab {{::tab.scope.tabClass}}" ng-repeat="tab in $mdTabsCtrl.tabs" role="tab" id="tab-item-{{::tab.id}}" md-tab-id="{{::tab.id}}" aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-click="$mdTabsCtrl.select(tab.getIndex())" ng-focus="$mdTabsCtrl.hasFocus = true" ng-blur="$mdTabsCtrl.hasFocus = false" ng-class="{ \'md-active\':    tab.isActive(), \'md-focused\':   tab.hasFocus(), \'md-disabled\':  tab.scope.disabled }" ng-disabled="tab.scope.disabled" md-swipe-left="$mdTabsCtrl.nextPage()" md-swipe-right="$mdTabsCtrl.previousPage()" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-tab-item> <md-ink-bar></md-ink-bar> </md-pagination-wrapper> <md-tabs-dummy-wrapper aria-hidden="true" class="md-visually-hidden md-dummy-wrapper"> <md-dummy-tab class="md-tab" tabindex="-1" ng-focus="$mdTabsCtrl.hasFocus = true" ng-blur="$mdTabsCtrl.hasFocus = false" ng-repeat="tab in $mdTabsCtrl.tabs" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-dummy-tab> </md-tabs-dummy-wrapper> </md-tabs-canvas> </md-tabs-wrapper> <md-tabs-content-wrapper ng-show="$mdTabsCtrl.hasContent && $mdTabsCtrl.selectedIndex >= 0" class="_md"> <md-tab-content id="{{:: $mdTabsCtrl.tabContentPrefix + tab.id}}" class="_md" role="tabpanel" aria-labelledby="tab-item-{{::tab.id}}" md-swipe-left="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(1)" md-swipe-right="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(-1)" ng-if="tab.hasContent" ng-repeat="(index, tab) in $mdTabsCtrl.tabs" ng-class="{ \'md-no-transition\': $mdTabsCtrl.lastSelectedIndex == null, \'md-active\':        tab.isActive(), \'md-left\':          tab.isLeft(), \'md-right\':         tab.isRight(), \'md-no-scroll\':     $mdTabsCtrl.dynamicHeight }"> <div md-tabs-template="::tab.template" md-connected-if="tab.isActive()" md-scope="::tab.parent" ng-if="$mdTabsCtrl.enableDisconnect || tab.shouldRender()"></div> </md-tab-content> </md-tabs-content-wrapper>'},controller:"MdTabsController",controllerAs:"$mdTabsCtrl",bindToController:!0}}e.$inject=["$$mdSvgRegistry"],ce.module("material.components.tabs").directive("mdTabs",e)}(),function(){function e(s,l){return{require:"^?mdTabs",link:function(e,t,n,o){if(o){var i,r,a=function(){o.updatePagination(),o.updateInkBarStyles()};if("MutationObserver"in l){(i=new MutationObserver(a)).observe(t[0],{childList:!0,subtree:!0,characterData:!0}),r=i.disconnect.bind(i)}else{var d=s.debounce(a,15,null,!1);t.on("DOMSubtreeModified",d),r=t.off.bind(t,"DOMSubtreeModified",d)}e.$on("$destroy",function(){r()})}}}}e.$inject=["$mdUtil","$window"],ce.module("material.components.tabs").directive("mdTabsDummyWrapper",e)}(),function(){function e(a,d){return{restrict:"A",link:function(e,t,n,o){if(!o)return;var i=o.enableDisconnect?e.compileScope.$new():e.compileScope;return t.html(e.template),a(t.contents())(i),d.nextTick(function(){e.$watch("connected",function(e){!1===e?o.enableDisconnect&&d.disconnectScope(i):r()}),e.$on("$destroy",r)});function r(){o.enableDisconnect&&d.reconnectScope(i)}},scope:{template:"=mdTabsTemplate",connected:"=?mdConnectedIf",compileScope:"=mdScope"},require:"^?mdTabs"}}e.$inject=["$compile","$mdUtil"],ce.module("material.components.tabs").directive("mdTabsTemplate",e)}(),function(){function e(n){return{restrict:"E",link:function(e,t){t.addClass("_md"),e.$on("$destroy",function(){n.destroy()})}}}function t(e){n.$inject=["$mdToast","$scope","$log"],o.$inject=["$animate","$mdToast","$mdUtil","$mdMedia","$document"];var u,p="ok";function t(e){u=e}return e("$mdToast").setDefaults({methods:["position","hideDelay","capsule","parent","position","toastClass"],options:o}).addPreset("simple",{argOption:"textContent",methods:["textContent","content","action","actionKey","actionHint","highlightAction","highlightClass","theme","parent","dismissHint"],options:["$mdToast","$mdTheming",function(e,t){return{template:'<md-toast md-theme="{{ toast.theme }}" ng-class="{\'md-capsule\': toast.capsule}">  <div class="md-toast-content" aria-live="polite" aria-relevant="all">    <span class="md-toast-text">      {{ toast.content }}    </span>    <span class="md-visually-hidden">{{ toast.dismissHint }}</span>    <span class="md-visually-hidden" ng-if="toast.action && toast.actionKey">      {{ toast.actionHint }}    </span>    <md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()"                ng-class="highlightClasses">      {{ toast.action }}    </md-button>  </div></md-toast>',controller:n,theme:t.defaultTheme(),controllerAs:"toast",bindToController:!0}}]}).addMethod("updateTextContent",t).addMethod("updateContent",t);function n(t,n,o){this.$onInit=function(){var e=this;e.highlightAction&&(n.highlightClasses=["md-highlight",e.highlightClass]),e.action&&!e.actionKey&&o.warn("Toasts with actions should define an actionKey for accessibility.","Details: https://material.angularjs.org/latest/api/service/$mdToast#mdtoast-simple"),e.actionKey&&!e.actionHint&&(e.actionHint='Press Control-"'+e.actionKey+'" to '),e.dismissHint||(e.dismissHint="Press Escape to dismiss."),n.$watch(function(){return u},function(){e.content=u}),this.resolve=function(){t.hide(p)}}}function o(o,d,s,l,c){var m="$md.swipeleft $md.swiperight $md.swipeup $md.swipedown";return{onShow:function(e,i,r){u=r.textContent||r.content;var a=!l("gt-sm");i=s.extractElementByName(i,"md-toast",!0),r.element=i,r.onSwipe=function(e,t){var n=e.type.replace("$md.",""),o=n.replace("swipe","");"down"===o&&-1!==r.position.indexOf("top")&&!a||"up"===o&&(-1!==r.position.indexOf("bottom")||a)||("left"!==o&&"right"!==o||!a)&&(i.addClass("md-"+n),s.nextTick(d.cancel))},r.openClass=(t=r.position,l("gt-xs")?"md-toast-open-"+(-1<t.indexOf("top")?"top":"bottom"):"md-toast-open-bottom"),i.addClass(r.toastClass),r.parent.addClass(r.openClass),s.hasComputedStyle(r.parent,"position","static")&&r.parent.css("position","relative");var t;n=e.toast&&e.toast.actionKey?e.toast.actionKey:me,c.on("keydown",function(e){"Escape"===e.key&&d.hide(!1),n&&e.key===n&&e.ctrlKey&&d.hide(p)}),i.on(m,r.onSwipe),i.addClass(a?"md-bottom":r.position.split(" ").map(function(e){return"md-"+e}).join(" ")),r.parent&&r.parent.addClass("md-toast-animating");var n;return o.enter(i,r.parent).then(function(){r.parent&&r.parent.removeClass("md-toast-animating")})},onRemove:function(e,t,n){e.toast&&e.toast.actionKey&&c.off("keydown");t.off(m,n.onSwipe),n.parent&&n.parent.addClass("md-toast-animating");n.openClass&&n.parent.removeClass(n.openClass);return(!0===n.$destroy?t.remove():o.leave(t)).then(function(){n.parent&&n.parent.removeClass("md-toast-animating"),s.hasComputedStyle(n.parent,"position","static")&&n.parent.css("position","")})},toastClass:"",position:"bottom left",themable:!0,hideDelay:3e3,autoWrap:!0,transformTemplate:function(e,t){if(t.autoWrap&&e&&!/md-toast-content/g.test(e)){var n=document.createElement("md-template");n.innerHTML=e;for(var o=0;o<n.children.length;o++)if("MD-TOAST"===n.children[o].nodeName){var i=ce.element('<div class="md-toast-content">');i.append(ce.element(n.children[o].childNodes)),n.children[o].appendChild(i[0])}return n.innerHTML}return e||""}}}}e.$inject=["$mdToast"],t.$inject=["$$interimElementProvider"],ce.module("material.components.toast",["material.core","material.components.button"]).directive("mdToast",e).provider("$mdToast",t)}(),function(){function e(f,g,b,e,v){var E=ce.bind(null,b.supplant,"translate3d(0,{0}px,0)");return{template:"",restrict:"E",link:function(u,p,h){p.addClass("_md"),e(p),b.nextTick(function(){p.addClass("_md-toolbar-transitions")},!1),ce.isDefined(h.mdScrollShrink)&&function(){var n,o,i=ce.noop,r=0,a=0,d=h.mdShrinkSpeedFactor||.5,s=f.throttle(t),l=b.debounce(e,5e3);u.$on("$mdContentLoaded",c),h.$observe("mdScrollShrink",function(e){var t=p.parent().find("md-content");!o&&t.length&&c(null,t),!1===(e=u.$eval(e))?i():i=m()}),h.ngShow&&u.$watch(h.ngShow,e);h.ngHide&&u.$watch(h.ngHide,e);function c(e,t){t&&p.parent()[0]===t.parent()[0]&&(o&&o.off("scroll",s),o=t,i=m())}function t(e){var t=e?e.target.scrollTop:a;l(),r=Math.min(n/d,Math.max(0,r+t-a)),p.css(g.CSS.TRANSFORM,E([-r*d])),o.css(g.CSS.TRANSFORM,E([(n-r)*d])),a=t,b.nextTick(function(){var e=p.hasClass("md-whiteframe-z1");e&&!r?v.removeClass(p,"md-whiteframe-z1"):!e&&r&&v.addClass(p,"md-whiteframe-z1")})}function m(){return o?(o.on("scroll",s),o.attr("scroll-shrink","true"),b.nextTick(e,!1),function(){o.off("scroll",s),o.attr("scroll-shrink","false"),e()}):ce.noop}function e(){var e=-(n=p.prop("offsetHeight"))*d+"px";o.css({"margin-top":e,"margin-bottom":e}),t()}u.$on("$destroy",i)}()}}}e.$inject=["$$rAF","$mdConstant","$mdUtil","$mdTheming","$animate"],ce.module("material.components.toolbar",["material.core","material.components.content"]).directive("mdToolbar",e)}(),function(){function e(v,E,$,y,C,M,T,A){var w="focus touchstart mouseenter",_="blur touchcancel mouseleave",k={top:{x:T.xPosition.CENTER,y:T.yPosition.ABOVE},right:{x:T.xPosition.OFFSET_END,y:T.yPosition.CENTER},bottom:{x:T.xPosition.CENTER,y:T.yPosition.BELOW},left:{x:T.xPosition.OFFSET_START,y:T.yPosition.CENTER}};return{restrict:"E",priority:210,scope:{mdZIndex:"=?mdZIndex",mdDelay:"=?mdDelay",mdVisible:"=?mdVisible",mdAutohide:"=?mdAutohide",mdDirection:"@?mdDirection"},link:function(d,o,s){var i,e,r,a,l,c="md-tooltip-"+M.nextUid(),m=M.getParentWithPointerEvents(o),u=$.throttle(f),p=!1,h=null;function t(){d.mdZIndex=d.mdZIndex||100,d.mdDelay=d.mdDelay||0,k[d.mdDirection]||(d.mdDirection="bottom")}function n(e){var t=e||C(o.text().trim())(d.$parent);(!m.attr("aria-label")&&!m.attr("aria-labelledby")||m.attr("md-labeled-by-tooltip"))&&(m.attr("aria-label",t),m.attr("md-labeled-by-tooltip")||m.attr("md-labeled-by-tooltip",c))}function f(){t(),a&&a.panelEl&&a.panelEl.removeClass(i),i="md-origin-"+d.mdDirection,e=k[d.mdDirection],r=T.newPanelPosition().relativeTo(m).addPanelPosition(e.x,e.y),a&&a.panelEl&&(a.panelEl.addClass(i),a.updatePosition(r))}function g(e){g.queued&&g.value===!!e||!g.queued&&d.mdVisible===!!e||(g.value=!!e,g.queued||(e?(g.queued=!0,l=v(function(){d.mdVisible=g.value,g.queued=!1,l=null,d.visibleWatcher||b(d.mdVisible)},d.mdDelay)):M.nextTick(function(){d.mdVisible=!1,d.visibleWatcher||b(!1)})))}function b(e){e?function(){if(!o[0].textContent.trim())throw new Error("Text for the tooltip has not been provided. Please include text within the mdTooltip element.");if(!a){var e=ce.element(document.body),t=T.newPanelAnimation().openFrom(m).closeTo(m).withAnimation({open:"md-show",close:"md-hide"}),n={id:c,attachTo:e,contentElement:o,propagateContainerEvents:!0,panelClass:"md-tooltip",animation:t,position:r,zIndex:d.mdZIndex,focusOnOpen:!1,onDomAdded:function(){a.panelEl.addClass(i)}};a=T.create(n)}a.open().then(function(){a.panelEl.attr("role","tooltip")})}():a&&a.close()}t(),n(),o.detach(),f(),function(){if(m[0]&&"MutationObserver"in E){var e=new MutationObserver(function(e){e.some(function(e){return"disabled"===e.attributeName&&m[0].disabled})});e.observe(m[0],{attributes:!0})}function t(){g(!1)}function n(){h=document.activeElement===m[0]}function o(e){"focus"===e.type&&h?h=!1:d.mdVisible||(m.on(_,i),g(!0),"touchstart"===e.type&&m.one("touchend",function(){M.nextTick(function(){y.one("touchend",i)},!1)}))}function i(){((d.hasOwnProperty("mdAutohide")?d.mdAutohide:s.hasOwnProperty("mdAutohide"))||p||y[0].activeElement!==m[0])&&(l&&(v.cancel(l),g.queued=!1,l=null),m.off(_,i),m.triggerHandler("blur"),g(!1)),p=!1}function r(){p=!0}function a(){A.deregister("scroll",t,!0),A.deregister("blur",n),A.deregister("resize",u),m.off(w,o).off(_,i).off("mousedown",r),i(),e&&e.disconnect()}h=!1,A.register("scroll",t,!0),A.register("blur",n),A.register("resize",u),d.$on("$destroy",a),m.on("mousedown",r),m.on(w,o)}(),function(){if(o[0]&&"MutationObserver"in E){var e=new MutationObserver(function(e){e.forEach(function(e){"md-visible"!==e.attributeName||d.visibleWatcher||(d.visibleWatcher=d.$watch("mdVisible",b))})});e.observe(o[0],{attributes:!0}),s.hasOwnProperty("mdVisible")&&(d.visibleWatcher=d.$watch("mdVisible",b))}else d.visibleWatcher=d.$watch("mdVisible",b);d.$watch("mdDirection",f),o.one("$destroy",t),m.one("$destroy",t),d.$on("$destroy",function(){g(!1),a&&a.destroy(),e&&e.disconnect(),o.remove()}),-1<o.text().indexOf(C.startSymbol())&&d.$watch(function(){return o.text().trim()},n);function t(){d.$destroy()}}()}}}e.$inject=["$timeout","$window","$$rAF","$document","$interpolate","$mdUtil","$mdPanel","$$mdTooltipRegistry"],ce.module("material.components.tooltip",["material.core","material.components.panel"]).directive("mdTooltip",e).service("$$mdTooltipRegistry",function(){var r={},a=ce.element(B);return{register:function(e,t,n){var o=r[e]=r[e]||[];o.length||(n?B.addEventListener(e,d,!0):a.on(e,d));-1===o.indexOf(t)&&o.push(t)},deregister:function(e,t,n){var o=r[e],i=o?o.indexOf(t):-1;-1<i&&(o.splice(i,1),0===o.length&&(n?B.removeEventListener(e,d,!0):a.off(e,d)))}};function d(t){r[t.type]&&r[t.type].forEach(function(e){e.call(this,t)},this)}})}(),function(){function e(e){e.addClass("md-truncate")}e.$inject=["$element"],ce.module("material.components.truncate",["material.core"]).directive("mdTruncate",function(){return{restrict:"AE",controller:e}})}(),function(){function e(e){return'<div class="md-virtual-repeat-scroller" role="presentation"><div class="md-virtual-repeat-sizer" role="presentation"></div><div class="md-virtual-repeat-offsetter" role="presentation">'+e[0].innerHTML+"</div></div>"}t.$inject=["$$rAF","$mdUtil","$mdConstant","$parse","$rootScope","$window","$scope","$element","$attrs"],i.$inject=["$scope","$element","$attrs","$browser","$document","$rootScope","$$rAF","$mdUtil"],n.$inject=["$parse"],ce.module("material.components.virtualRepeat",["material.core","material.components.showHide"]).directive("mdVirtualRepeatContainer",function(){return{controller:t,template:e,compile:function(e,t){e.addClass("md-virtual-repeat-container").addClass(t.hasOwnProperty("mdOrientHorizontal")?"md-orient-horizontal":"md-orient-vertical")}}}).directive("mdVirtualRepeat",n).directive("mdForceHeight",r);function t(e,n,t,o,i,r,a,d,s){this.$rootScope=i,this.$scope=a,this.$element=d,this.$attrs=s,this.size=0,this.scrollSize=0,this.scrollOffset=0,this.horizontal=this.$attrs.hasOwnProperty("mdOrientHorizontal"),this.repeater=null,this.autoShrink=this.$attrs.hasOwnProperty("mdAutoShrink"),this.autoShrinkMin=parseInt(this.$attrs.mdAutoShrinkMin,10)||0,this.originalSize=null,this.offsetSize=parseInt(this.$attrs.mdOffsetSize,10)||0,this.oldElementSize=null,this.maxElementPixels=t.ELEMENT_MAX_PIXELS,this.$attrs.mdTopIndex?(this.bindTopIndex=o(this.$attrs.mdTopIndex),this.topIndex=this.bindTopIndex(this.$scope),ce.isDefined(this.topIndex)||(this.topIndex=0,this.bindTopIndex.assign(this.$scope,0)),this.$scope.$watch(this.bindTopIndex,ce.bind(this,function(e){e!==this.topIndex&&this.scrollToIndex(e)}))):this.topIndex=0,this.scroller=d[0].querySelector(".md-virtual-repeat-scroller"),this.sizer=this.scroller.querySelector(".md-virtual-repeat-sizer"),this.offsetter=this.scroller.querySelector(".md-virtual-repeat-offsetter");var l=ce.bind(this,this.updateSize);e(ce.bind(this,function(){l();var e=n.debounce(l,10,null,!1),t=ce.element(r);this.size||e(),t.on("resize",e),a.$on("$destroy",function(){t.off("resize",e)}),a.$emit("$md-resize-enable"),a.$on("$md-resize",l)}))}function n(o){return{controller:i,priority:1e3,require:["mdVirtualRepeat","^^mdVirtualRepeatContainer"],restrict:"A",terminal:!0,transclude:"element",compile:function(e,t){var n=t.mdVirtualRepeat.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)\s*$/),r=n[1],a=o(n[2]),d=t.mdExtraName&&o(t.mdExtraName);return function(e,t,n,o,i){o[0].link_(o[1],i,r,a,d)}}}}function i(e,t,n,o,i,r,a,d){this.$scope=e,this.$element=t,this.$attrs=n,this.$browser=o,this.$document=i,this.$mdUtil=d,this.$rootScope=r,this.$$rAF=a,this.onDemand=d.parseAttributeBoolean(n.mdOnDemand),this.browserCheckUrlChange=o.$$checkUrlChange,this.newStartIndex=0,this.newEndIndex=0,this.newVisibleEnd=0,this.startIndex=0,this.endIndex=0,this.itemSize=e.$eval(n.mdItemSize)||null,this.isFirstRender=!0,this.isVirtualRepeatUpdating_=!1,this.itemsLength=0,this.unwatchItemSize_=ce.noop,this.blocks={},this.pooledBlocks=[],e.$on("$destroy",ce.bind(this,this.cleanupBlocks_))}function o(e){if(!ce.isFunction(e.getItemAtIndex)||!ce.isFunction(e.getLength))throw Error("When md-on-demand is enabled, the Object passed to md-virtual-repeat must implement functions getItemAtIndex() and getLength().");this.model=e}function r(e){return{restrict:"A",link:function(e,t,n){var o=e.$eval(n.mdForceHeight)||null;o&&t&&(t[0].style.height=o)}}}t.prototype.register=function(e){this.repeater=e,ce.element(this.scroller).on("scroll wheel touchmove touchend",ce.bind(this,this.handleScroll_))},t.prototype.isHorizontal=function(){return this.horizontal},t.prototype.getSize=function(){return this.size},t.prototype.setSize_=function(e){var t=this.getDimensionName_();this.size=e,this.$element[0].style[t]=e+"px"},t.prototype.unsetSize_=function(){this.$element[0].style[this.getDimensionName_()]=this.oldElementSize,this.oldElementSize=null},t.prototype.updateSize=function(){if(!this.originalSize){var e=this.isHorizontal()?this.$element[0].clientWidth:this.$element[0].clientHeight;e&&(this.size=e),this.handleScroll_(),this.repeater&&this.repeater.containerUpdated()}},t.prototype.getScrollSize=function(){return this.scrollSize},t.prototype.getDimensionName_=function(){return this.isHorizontal()?"width":"height"},t.prototype.sizeScroller_=function(e){var t=this.getDimensionName_(),n=this.isHorizontal()?"height":"width";if(this.sizer.innerHTML="",e<this.maxElementPixels)this.sizer.style[t]=e+"px";else{this.sizer.style[t]="auto",this.sizer.style[n]="auto";var o=Math.floor(e/this.maxElementPixels),i=document.createElement("div");i.style[t]=this.maxElementPixels+"px",i.style[n]="1px";for(var r=0;r<o;r++)this.sizer.appendChild(i.cloneNode(!1));i.style[t]=e-o*this.maxElementPixels+"px",this.sizer.appendChild(i)}},t.prototype.autoShrink_=function(e){var t=Math.max(e,this.autoShrinkMin*this.repeater.getItemSize());if(this.autoShrink&&t!==this.size){null===this.oldElementSize&&(this.oldElementSize=this.$element[0].style[this.getDimensionName_()]);var n=this.originalSize||this.size;if(!n||t<n)this.originalSize||(this.originalSize=this.size),this.setSize_(t);else if(null!==this.originalSize){this.unsetSize_();var o=this.originalSize;this.originalSize=null,o||this.updateSize(),this.setSize_(o||this.size)}this.repeater.containerUpdated()}},t.prototype.setScrollSize=function(e){var t=e+this.offsetSize;this.scrollSize!==t&&(this.sizeScroller_(t),this.autoShrink_(t),this.scrollSize=t)},t.prototype.getScrollOffset=function(){return this.scrollOffset},t.prototype.scrollTo=function(e){this.scroller[this.isHorizontal()?"scrollLeft":"scrollTop"]=e,this.handleScroll_()},t.prototype.scrollToIndex=function(e){var t=this.repeater.getItemSize(),n=this.repeater.itemsLength;n<e&&(e=n-1),this.scrollTo(t*e)},t.prototype.resetScroll=function(){this.scrollTo(0)},t.prototype.handleScroll_=function(){var e="rtl"!==document.dir&&"rtl"!==document.body.dir;e||this.maxSize||(this.scroller.scrollLeft=this.scrollSize,this.maxSize=this.scroller.scrollLeft);var t=this.isHorizontal()?e?this.scroller.scrollLeft:this.maxSize-this.scroller.scrollLeft:this.scroller.scrollTop;if(!(this.scrollSize<this.size)&&(t>this.scrollSize-this.size&&(t=this.scrollSize-this.size),t!==this.scrollOffset)){var n=this.repeater.getItemSize();if(n){var o=Math.max(0,Math.floor(t/n)-3),i=(this.isHorizontal()?"translateX(":"translateY(")+(!this.isHorizontal()||e?o*n:-o*n)+"px)";if(this.scrollOffset=t,this.offsetter.style.webkitTransform=i,this.offsetter.style.transform=i,this.bindTopIndex){var r=Math.floor(t/n);r!==this.topIndex&&r<this.repeater.getItemCount()&&(this.topIndex=r,this.bindTopIndex.assign(this.$scope,r),this.$rootScope.$$phase||this.$scope.$digest())}this.repeater.containerUpdated()}}},i.prototype.link_=function(e,t,n,o,i){this.container=e,this.transclude=t,this.repeatName=n,this.rawRepeatListExpression=o,this.extraName=i,this.sized=!1,this.repeatListExpression=ce.bind(this,this.repeatListExpression_),this.container.register(this)},i.prototype.cleanupBlocks_=function(){ce.forEach(this.pooledBlocks,function(e){e.element.remove()})},i.prototype.readItemSize_=function(){if(!this.itemSize){this.items=this.repeatListExpression(this.$scope),this.parentNode=this.$element[0].parentNode;var e=this.getBlock_(0);e.element[0].parentNode||this.parentNode.appendChild(e.element[0]),this.itemSize=e.element[0][this.container.isHorizontal()?"offsetWidth":"offsetHeight"]||null,this.blocks[0]=e,this.poolBlock_(0),this.itemSize&&this.containerUpdated()}},i.prototype.repeatListExpression_=function(e){var t=this.rawRepeatListExpression(e);if(this.onDemand&&t){var n=new o(t);return n.$$includeIndexes(this.newStartIndex,this.newVisibleEnd),n}return t},i.prototype.containerUpdated=function(){if(!this.itemSize)return this.unwatchItemSize_&&this.unwatchItemSize_!==ce.noop&&this.unwatchItemSize_(),this.unwatchItemSize_=this.$scope.$watchCollection(this.repeatListExpression,ce.bind(this,function(e){e&&e.length&&this.readItemSize_()})),void(this.$rootScope.$$phase||this.$scope.$digest());this.sized||(this.items=this.repeatListExpression(this.$scope)),this.sized||(this.unwatchItemSize_(),this.sized=!0,this.$scope.$watchCollection(this.repeatListExpression,ce.bind(this,function(e,t){this.isVirtualRepeatUpdating_||this.virtualRepeatUpdate_(e,t)}))),this.updateIndexes_(),(this.newStartIndex!==this.startIndex||this.newEndIndex!==this.endIndex||this.container.getScrollOffset()>this.container.getScrollSize())&&(this.items instanceof o&&this.items.$$includeIndexes(this.newStartIndex,this.newEndIndex),this.virtualRepeatUpdate_(this.items,this.items))},i.prototype.getItemSize=function(){return this.itemSize},i.prototype.getItemCount=function(){return this.itemsLength},i.prototype.virtualRepeatUpdate_=function(e,t){this.isVirtualRepeatUpdating_=!0;var n=e&&e.length||0,o=!1;if(this.items&&n<this.items.length&&0!==this.container.getScrollOffset()){this.items=e;var i=this.container.getScrollOffset();this.container.resetScroll(),this.container.scrollTo(i)}n!==this.itemsLength&&(o=!0,this.itemsLength=n),((this.items=e)!==t||o)&&this.updateIndexes_(),this.parentNode=this.$element[0].parentNode,o&&this.container.setScrollSize(n*this.itemSize),Object.keys(this.blocks).forEach(function(e){var t=parseInt(e,10);(t<this.newStartIndex||t>=this.newEndIndex)&&this.poolBlock_(t)},this),this.$browser.$$checkUrlChange=ce.noop;var r,a,d=[],s=[];for(r=this.newStartIndex;r<this.newEndIndex&&null==this.blocks[r];r++)a=this.getBlock_(r),this.updateBlock_(a,r),d.push(a);for(;null!=this.blocks[r];r++)this.updateBlock_(this.blocks[r],r);for(var l=r-1;r<this.newEndIndex;r++)a=this.getBlock_(r),this.updateBlock_(a,r),s.push(a);if(d.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(d),this.$element[0].nextSibling),s.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(s),this.blocks[l]&&this.blocks[l].element[0].nextSibling),this.$browser.$$checkUrlChange=this.browserCheckUrlChange,this.startIndex=this.newStartIndex,this.endIndex=this.newEndIndex,this.isFirstRender){this.isFirstRender=!1;var c=this.$attrs.mdStartIndex?this.$scope.$eval(this.$attrs.mdStartIndex):this.container.topIndex;this.$mdUtil.nextTick(function(){this.container.scrollToIndex(c)}.bind(this))}this.isVirtualRepeatUpdating_=!1},i.prototype.getBlock_=function(n){return this.pooledBlocks.length?this.pooledBlocks.pop():(this.transclude(ce.bind(this,function(e,t){o={element:e,new:!0,scope:t},this.updateScope_(t,n),this.parentNode.appendChild(e[0])})),o);var o},i.prototype.updateBlock_=function(e,t){((this.blocks[t]=e).new||e.scope.$index!==t||e.scope[this.repeatName]!==this.items[t])&&(e.new=!1,this.updateScope_(e.scope,t),this.$rootScope.$$phase||e.scope.$digest())},i.prototype.updateScope_=function(e,t){e.$index=t,e[this.repeatName]=this.items&&this.items[t],this.extraName&&(e[this.extraName(this.$scope)]=this.items[t])},i.prototype.poolBlock_=function(e){this.pooledBlocks.push(this.blocks[e]),this.parentNode.removeChild(this.blocks[e].element[0]),delete this.blocks[e]},i.prototype.domFragmentFromBlocks_=function(e){var t=this.$document[0].createDocumentFragment();return e.forEach(function(e){t.appendChild(e.element[0])}),t},i.prototype.updateIndexes_=function(){var e=this.items?this.items.length:0,t=Math.ceil(this.container.getSize()/this.itemSize);this.newStartIndex=Math.max(0,Math.min(e-t,Math.floor(this.container.getScrollOffset()/this.itemSize))),this.newVisibleEnd=this.newStartIndex+t+3,this.newEndIndex=Math.min(e,this.newVisibleEnd),this.newStartIndex=Math.max(0,this.newStartIndex-3)},o.prototype.$$includeIndexes=function(e,t){for(var n=e;n<t;n++)this.hasOwnProperty(n)||(this[n]=this.model.getItemAtIndex(n));this.length=this.model.getLength()},r.$inject=["$mdUtil"]}(),function(){function e(r){return{link:function(e,n,o){var i="";o.$observe("mdWhiteframe",function(e){-1!=(e=parseInt(e,10)||4)&&(24<e||e<1)&&(r.warn("md-whiteframe attribute value is invalid. It should be a number between 1 and 24",n[0]),e=4);var t=-1==e?"":"md-whiteframe-"+e+"dp";o.$updateClass(t,i),i=t})}}}e.$inject=["$log"],ce.module("material.components.whiteframe",["material.core"]).directive("mdWhiteframe",e)}(),ce.module("material.core").constant("$MD_THEME_CSS",'md-autocomplete.md-THEME_NAME-theme{background:"{{background-hue-1}}"}md-autocomplete.md-THEME_NAME-theme[disabled]:not([md-floating-label]){background:"{{background-hue-2}}"}md-autocomplete.md-THEME_NAME-theme button md-icon path{fill:"{{background-600}}"}md-autocomplete.md-THEME_NAME-theme button:after{background:"{{background-600-0.3}}"}md-autocomplete.md-THEME_NAME-theme input{color:"{{foreground-1}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-input-container.md-input-focused .md-input{border-color:"{{accent-color}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-input-container.md-input-focused label,md-autocomplete.md-THEME_NAME-theme.md-accent md-input-container.md-input-focused md-icon{color:"{{accent-color}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-progress-linear .md-container{background-color:"{{accent-100}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-progress-linear .md-bar{background-color:"{{accent-color}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-input-container.md-input-focused .md-input{border-color:"{{warn-A700}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-input-container.md-input-focused label,md-autocomplete.md-THEME_NAME-theme.md-warn md-input-container.md-input-focused md-icon{color:"{{warn-A700}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-progress-linear .md-container{background-color:"{{warn-100}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-progress-linear .md-bar{background-color:"{{warn-color}}"}.md-autocomplete-standard-list-container.md-THEME_NAME-theme,.md-autocomplete-suggestions-container.md-THEME_NAME-theme{background:"{{background-hue-1}}"}.md-autocomplete-standard-list-container.md-THEME_NAME-theme li,.md-autocomplete-suggestions-container.md-THEME_NAME-theme li{color:"{{foreground-1}}"}.md-autocomplete-standard-list-container.md-THEME_NAME-theme li#selected_option,.md-autocomplete-standard-list-container.md-THEME_NAME-theme li:hover,.md-autocomplete-suggestions-container.md-THEME_NAME-theme li#selected_option,.md-autocomplete-suggestions-container.md-THEME_NAME-theme li:hover{background:"{{background-500-0.18}}"}md-backdrop{background-color:"{{background-900-0.0}}"}md-backdrop.md-opaque.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-bottom-sheet.md-THEME_NAME-theme{background-color:"{{background-color}}";border-top-color:"{{background-hue-3}}"}md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item{color:"{{foreground-1}}"}md-bottom-sheet.md-THEME_NAME-theme .md-subheader{background-color:"{{background-color}}";color:"{{foreground-1}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme:not([disabled]):hover{background-color:"{{background-500-0.2}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover{background-color:transparent}.md-button.md-THEME_NAME-theme.md-fab md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab,.md-button.md-THEME_NAME-theme.md-primary.md-raised{color:"{{primary-contrast}}";background-color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon{color:"{{primary-contrast}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover{background-color:"{{primary-600}}"}.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-fab{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-raised{color:"{{background-900}}";background-color:"{{background-50}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) md-icon{color:"{{background-900}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover{background-color:"{{background-50}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused{background-color:"{{background-200}}"}.md-button.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab,.md-button.md-THEME_NAME-theme.md-warn.md-raised{color:"{{warn-contrast}}";background-color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon{color:"{{warn-contrast}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover{background-color:"{{warn-600}}"}.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon{color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab,.md-button.md-THEME_NAME-theme.md-accent.md-raised{color:"{{accent-contrast}}";background-color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon{color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent[disabled],.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled],.md-button.md-THEME_NAME-theme.md-warn[disabled],.md-button.md-THEME_NAME-theme[disabled]{color:"{{foreground-3}}";cursor:default}.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon,.md-button.md-THEME_NAME-theme[disabled] md-icon{color:"{{foreground-3}}"}.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled]{background-color:"{{foreground-4}}"}.md-button.md-THEME_NAME-theme[disabled]{background-color:transparent}._md a.md-THEME_NAME-theme:not(.md-button).md-primary{color:"{{primary-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-primary:hover{color:"{{primary-700}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-accent{color:"{{accent-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-accent:hover{color:"{{accent-A700}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-warn{color:"{{warn-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-warn:hover{color:"{{warn-700}}"}md-card.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-hue-1}}";border-radius:2px}md-card.md-THEME_NAME-theme .md-card-image{border-radius:2px 2px 0 0}md-card.md-THEME_NAME-theme md-card-header md-card-avatar md-icon{color:"{{background-color}}";background-color:"{{foreground-3}}"}md-card.md-THEME_NAME-theme md-card-header md-card-header-text .md-subhead,md-card.md-THEME_NAME-theme md-card-title md-card-title-text:not(:only-child) .md-subhead{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme .md-ripple{color:"{{accent-A700}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple{color:"{{background-600}}"}md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before{background-color:"{{accent-color-0.26}}"}md-checkbox.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon{background-color:"{{accent-color-0.87}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after{border-color:"{{accent-contrast-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple{color:"{{primary-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple{color:"{{background-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple{color:"{{primary-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon{background-color:"{{primary-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after{border-color:"{{primary-contrast-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple{color:"{{warn-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple{color:"{{warn-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon{background-color:"{{warn-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before{background-color:"{{warn-color-0.26}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after{border-color:"{{background-200}}"}md-checkbox.md-THEME_NAME-theme[disabled]:not(.md-checked) .md-icon{border-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon{background-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon:after{border-color:"{{background-200}}"}md-checkbox.md-THEME_NAME-theme[disabled] .md-icon:after{border-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled] .md-label{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips{box-shadow:0 1px "{{foreground-4}}"}md-chips.md-THEME_NAME-theme .md-chips.md-focused{box-shadow:0 2px "{{primary-color}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input{color:"{{foreground-1}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-moz-placeholder,md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-moz-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-ms-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-webkit-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme md-chip{background:"{{background-300}}";color:"{{background-800}}"}md-chips.md-THEME_NAME-theme md-chip md-icon{color:"{{background-700}}"}md-chips.md-THEME_NAME-theme md-chip.md-focused{background:"{{primary-color}}";color:"{{primary-contrast}}"}md-chips.md-THEME_NAME-theme md-chip.md-focused md-icon{color:"{{primary-contrast}}"}md-chips.md-THEME_NAME-theme md-chip._md-chip-editing{background:transparent;color:"{{background-800}}"}md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path{fill:"{{background-500}}"}.md-contact-suggestion span.md-contact-email{color:"{{background-400}}"}md-content.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-default}}"}.md-THEME_NAME-theme .md-calendar{background:"{{background-hue-1}}";color:"{{foreground-1-0.87}}"}.md-THEME_NAME-theme .md-calendar tr:last-child td{border-bottom-color:"{{background-hue-2}}"}.md-THEME_NAME-theme .md-calendar-day-header{background:"{{background-500-0.32}}";color:"{{foreground-1-0.87}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today .md-calendar-date-selection-indicator{border:1px solid "{{primary-500}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today.md-calendar-date-disabled{color:"{{primary-500-0.6}}"}.md-calendar-date.md-focus .md-THEME_NAME-theme .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date-selection-indicator:hover{background:"{{background-500-0.32}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-selected-date .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date.md-focus.md-calendar-selected-date .md-calendar-date-selection-indicator{background:"{{primary-500}}";color:"{{primary-500-contrast}}";border-color:transparent}.md-THEME_NAME-theme .md-calendar-date-disabled,.md-THEME_NAME-theme .md-calendar-month-label-disabled{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-calendar-month-label md-icon,.md-THEME_NAME-theme .md-datepicker-input{color:"{{foreground-1}}"}.md-THEME_NAME-theme .md-datepicker-input:-moz-placeholder,.md-THEME_NAME-theme .md-datepicker-input::-moz-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input:-ms-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input::-webkit-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input-container{border-bottom-color:"{{foreground-4}}"}.md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{primary-color}}"}.md-accent .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{accent-color}}"}.md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-invalid,.md-warn .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{warn-A700}}"}.md-THEME_NAME-theme .md-datepicker-calendar-pane{border-color:"{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-triangle-button .md-datepicker-expand-triangle{border-top-color:"{{foreground-2}}"}.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon{color:"{{primary-color}}"}.md-accent .md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon,.md-THEME_NAME-theme .md-datepicker-open.md-accent .md-datepicker-calendar-icon{color:"{{accent-color}}"}.md-THEME_NAME-theme .md-datepicker-open.md-warn .md-datepicker-calendar-icon,.md-warn .md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon{color:"{{warn-A700}}"}.md-THEME_NAME-theme .md-datepicker-calendar{background:"{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-input-mask-opaque{box-shadow:0 0 0 9999px "{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-input-container{background:"{{background-hue-1}}"}md-dialog.md-THEME_NAME-theme{border-radius:4px;background-color:"{{background-hue-1}}";color:"{{foreground-1}}"}md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions,md-dialog.md-THEME_NAME-theme.md-content-overflow md-dialog-actions,md-divider.md-THEME_NAME-theme{border-top-color:"{{foreground-4}}"}.layout-gt-lg-row>md-divider.md-THEME_NAME-theme,.layout-gt-md-row>md-divider.md-THEME_NAME-theme,.layout-gt-sm-row>md-divider.md-THEME_NAME-theme,.layout-gt-xs-row>md-divider.md-THEME_NAME-theme,.layout-lg-row>md-divider.md-THEME_NAME-theme,.layout-md-row>md-divider.md-THEME_NAME-theme,.layout-row>md-divider.md-THEME_NAME-theme,.layout-sm-row>md-divider.md-THEME_NAME-theme,.layout-xl-row>md-divider.md-THEME_NAME-theme,.layout-xs-row>md-divider.md-THEME_NAME-theme{border-right-color:"{{foreground-4}}"}md-icon.md-THEME_NAME-theme{color:"{{foreground-2}}"}md-icon.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}md-icon.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}md-icon.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}md-input-container.md-THEME_NAME-theme .md-input{color:"{{foreground-1}}";border-color:"{{foreground-4}}"}md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme>md-icon{color:"{{foreground-1}}"}md-input-container.md-THEME_NAME-theme .md-placeholder,md-input-container.md-THEME_NAME-theme label{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme label.md-required:after{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-focused):not(.md-input-invalid) label.md-required:after{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input-message-animation,md-input-container.md-THEME_NAME-theme .md-input-messages-animation{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme .md-input-message-animation .md-char-counter,md-input-container.md-THEME_NAME-theme .md-input-messages-animation .md-char-counter{color:"{{foreground-1}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-moz-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-ms-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-webkit-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-resized .md-input{border-color:"{{primary-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon{color:"{{primary-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input{border-color:"{{accent-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent md-icon{color:"{{accent-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input{border-color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn md-icon{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input{border-color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter,md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input-message-animation,md-input-container.md-THEME_NAME-theme.md-input-invalid label{color:"{{warn-A700}}"}[disabled] md-input-container.md-THEME_NAME-theme .md-input,md-input-container.md-THEME_NAME-theme .md-input[disabled]{border-bottom-color:transparent;color:"{{foreground-3}}";background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4{color:"{{foreground-1}}"}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p{color:"{{foreground-2}}"}md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style{background-color:"{{background-100}}"}md-list.md-THEME_NAME-theme md-list-item .md-avatar-icon{background-color:"{{foreground-3}}";color:"{{background-color}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon{color:"{{foreground-2}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight{color:"{{primary-color}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight.md-accent{color:"{{accent-color}}"}md-menu-content.md-THEME_NAME-theme{background-color:"{{background-hue-1}}"}md-menu-content.md-THEME_NAME-theme md-menu-item{color:"{{foreground-1}}"}md-menu-content.md-THEME_NAME-theme md-menu-item md-icon{color:"{{foreground-2}}"}md-menu-content.md-THEME_NAME-theme md-menu-item .md-button[disabled],md-menu-content.md-THEME_NAME-theme md-menu-item .md-button[disabled] md-icon{color:"{{foreground-3}}"}md-menu-content.md-THEME_NAME-theme md-menu-divider{background-color:"{{foreground-4}}"}md-menu-bar.md-THEME_NAME-theme>button.md-button{color:"{{foreground-1}}";border-radius:2px}md-menu-bar.md-THEME_NAME-theme md-menu>button{color:"{{foreground-1}}"}md-menu-bar.md-THEME_NAME-theme md-menu.md-open>button,md-menu-bar.md-THEME_NAME-theme md-menu>button:focus{outline:none;background-color:"{{ background-500-0.18}}"}md-menu-bar.md-THEME_NAME-theme.md-open:not(.md-keyboard-mode) md-menu:hover>button{background-color:"{{ background-500-0.18}}"}md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:focus,md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:hover{background:transparent}md-menu-content.md-THEME_NAME-theme .md-menu>.md-button:after{color:"{{foreground-2}}"}md-menu-content.md-THEME_NAME-theme .md-menu.md-open>.md-button{background-color:"{{ background-500-0.18}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar{background-color:"{{background-hue-1}}";color:"{{foreground-1}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler{background-color:"{{primary-color}}";color:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler md-icon{color:"{{primary-contrast}}"}md-nav-bar.md-THEME_NAME-theme .md-nav-bar{background-color:transparent;border-color:"{{foreground-4}}"}md-nav-bar.md-THEME_NAME-theme .md-button._md-nav-button.md-unselected{color:"{{foreground-2}}"}md-nav-bar.md-THEME_NAME-theme .md-button._md-nav-button[disabled]{color:"{{foreground-3}}"}md-nav-bar.md-THEME_NAME-theme md-nav-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar{background-color:"{{accent-color}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button{color:"{{accent-A100}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{accent-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{accent-contrast-0.1}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar md-nav-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar{background-color:"{{warn-color}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button{color:"{{warn-100}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{warn-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{warn-contrast-0.1}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar{background-color:"{{primary-color}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button{color:"{{primary-100}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{primary-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{primary-color}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{primary-100}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{primary-contrast}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{accent-A100}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar md-nav-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{warn-100}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{warn-contrast-0.1}}"}._md-panel-backdrop.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-progress-circular.md-THEME_NAME-theme path{stroke:"{{primary-color}}"}md-progress-circular.md-THEME_NAME-theme.md-warn path{stroke:"{{warn-color}}"}md-progress-circular.md-THEME_NAME-theme.md-accent path{stroke:"{{accent-color}}"}md-progress-linear.md-THEME_NAME-theme .md-container{background-color:"{{primary-100}}"}md-progress-linear.md-THEME_NAME-theme .md-bar{background-color:"{{primary-color}}"}md-progress-linear.md-THEME_NAME-theme.md-warn .md-container{background-color:"{{warn-100}}"}md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar{background-color:"{{warn-color}}"}md-progress-linear.md-THEME_NAME-theme.md-accent .md-container{background-color:"{{accent-100}}"}md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar{background-color:"{{accent-color}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-primary .md-bar1{background-color:"{{primary-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-primary .md-dashed:before{background:radial-gradient("{{primary-100}}" 0,"{{primary-100}}" 16%,transparent 42%)}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1{background-color:"{{warn-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before{background:radial-gradient("{{warn-100}}" 0,"{{warn-100}}" 16%,transparent 42%)}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1{background-color:"{{accent-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before{background:radial-gradient("{{accent-100}}" 0,"{{accent-100}}" 16%,transparent 42%)}md-radio-button.md-THEME_NAME-theme .md-off{border-color:"{{foreground-2}}"}md-radio-button.md-THEME_NAME-theme .md-on{background-color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme.md-checked .md-off{border-color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme .md-container .md-ripple{color:"{{accent-A700}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on{background-color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off{border-color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple{color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple{color:"{{primary-600}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on{background-color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off{border-color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple{color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple{color:"{{warn-600}}"}md-radio-button.md-THEME_NAME-theme[disabled],md-radio-group.md-THEME_NAME-theme[disabled]{color:"{{foreground-3}}"}md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on{border-color:"{{foreground-3}}"}md-radio-group.md-THEME_NAME-theme .md-checked .md-ink-ripple{color:"{{accent-color-0.26}}"}md-radio-group.md-THEME_NAME-theme .md-checked:not([disabled]).md-primary .md-ink-ripple,md-radio-group.md-THEME_NAME-theme.md-primary .md-checked:not([disabled]) .md-ink-ripple{color:"{{primary-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused.ng-empty>md-radio-button:first-child .md-container:before{background-color:"{{foreground-3-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before{background-color:"{{accent-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-primary .md-checked .md-container:before{background-color:"{{primary-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-warn .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-warn .md-checked .md-container:before{background-color:"{{warn-color-0.26}}"}md-input-container md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-input-container:not(.md-input-focused):not(.md-input-invalid) md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{foreground-3}}"}md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value,md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{primary-color}}"}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-input-container:not(.md-input-invalid).md-input-focused.md-accent .md-select-value{border-color:"{{accent-color}}"}md-input-container:not(.md-input-invalid).md-input-focused.md-accent .md-select-value span{color:"{{accent-color}}"}md-input-container:not(.md-input-invalid).md-input-focused.md-warn .md-select-value{border-color:"{{warn-A700}}"}md-input-container:not(.md-input-invalid).md-input-focused.md-warn .md-select-value span{color:"{{warn-A700}}"}md-select.md-THEME_NAME-theme[disabled] .md-select-value{border-bottom-color:transparent;background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-select.md-THEME_NAME-theme .md-select-value{border-bottom-color:"{{foreground-4}}"}md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value{border-bottom-color:"{{primary-color}}";color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value.md-select-placeholder{color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-value{border-bottom-color:"{{accent-color}}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-value{border-bottom-color:"{{warn-color}}"}md-select.md-THEME_NAME-theme[disabled] .md-select-icon,md-select.md-THEME_NAME-theme[disabled] .md-select-value,md-select.md-THEME_NAME-theme[disabled] .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-icon{color:"{{foreground-2}}"}md-select-menu.md-THEME_NAME-theme md-content{background-color:"{{background-hue-1}}"}md-select-menu.md-THEME_NAME-theme md-content md-optgroup{color:"{{foreground-2}}"}md-select-menu.md-THEME_NAME-theme md-content md-option{color:"{{foreground-1}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[disabled] .md-text{color:"{{foreground-3}}"}md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):focus,md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):hover{background-color:"{{background-500-0.18}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected]{color:"{{primary-500}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected]:focus{color:"{{primary-600}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent{color:"{{accent-color}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent:focus{color:"{{accent-A700}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ripple{color:"{{primary-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ripple{color:"{{background-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ink-ripple{color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon{background-color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected].md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon:after{border-color:"{{primary-contrast-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}.md-checkbox-enabled.md-THEME_NAME-theme md-option .md-text{color:"{{foreground-1}}"}md-sidenav.md-THEME_NAME-theme,md-sidenav.md-THEME_NAME-theme md-content{background-color:"{{background-hue-1}}"}md-slider.md-THEME_NAME-theme .md-track{background-color:"{{foreground-3}}"}md-slider.md-THEME_NAME-theme .md-track-ticks{color:"{{background-contrast}}"}md-slider.md-THEME_NAME-theme .md-focus-ring{background-color:"{{accent-A200-0.2}}"}md-slider.md-THEME_NAME-theme .md-disabled-thumb{border-color:"{{background-color}}";background-color:"{{background-color}}"}md-slider.md-THEME_NAME-theme.md-min .md-thumb:after{background-color:"{{background-color}}";border-color:"{{foreground-3}}"}md-slider.md-THEME_NAME-theme.md-min .md-focus-ring{background-color:"{{foreground-3-0.38}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-thumb:after{background-color:"{{background-contrast}}";border-color:transparent}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-sign{background-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-sign:after{border-top-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete][md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme .md-track.md-track-fill{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb:after{border-color:"{{accent-color}}";background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-sign{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-sign:after{border-top-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb-text{color:"{{accent-contrast}}"}md-slider.md-THEME_NAME-theme.md-warn .md-focus-ring{background-color:"{{warn-200-0.38}}"}md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill{background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after{border-color:"{{warn-color}}";background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-sign{background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-sign:after{border-top-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text{color:"{{warn-contrast}}"}md-slider.md-THEME_NAME-theme.md-primary .md-focus-ring{background-color:"{{primary-200-0.38}}"}md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill{background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after{border-color:"{{primary-color}}";background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-sign{background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-sign:after{border-top-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text{color:"{{primary-contrast}}"}md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after{border-color:transparent}md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after,md-slider.md-THEME_NAME-theme[disabled][md-discrete] .md-thumb:after{background-color:"{{foreground-3}}";border-color:transparent}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-sign{background-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-sign:after{border-top-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly][md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-disabled-thumb{border-color:transparent;background-color:transparent}md-slider-container[disabled]>:first-child:not(md-slider),md-slider-container[disabled]>:last-child:not(md-slider){color:"{{foreground-3}}"}.md-subheader.md-THEME_NAME-theme{color:"{{ foreground-2-0.23 }}";background-color:"{{background-default}}"}.md-subheader.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}.md-subheader.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}.md-subheader.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme .md-ink-ripple{color:"{{background-500}}"}md-switch.md-THEME_NAME-theme .md-thumb{background-color:"{{background-50}}"}md-switch.md-THEME_NAME-theme .md-bar{background-color:"{{background-500}}"}md-switch.md-THEME_NAME-theme.md-focused:not(.md-checked) .md-thumb:before,md-switch.md-THEME_NAME-theme.md-focused[disabled] .md-thumb:before{background-color:"{{foreground-4}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]) .md-ink-ripple{color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]) .md-thumb{background-color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]) .md-bar{background-color:"{{accent-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-focused .md-thumb:before{background-color:"{{accent-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary .md-ink-ripple{color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary .md-thumb{background-color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary .md-bar{background-color:"{{primary-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary.md-focused .md-thumb:before{background-color:"{{primary-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn .md-ink-ripple{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn .md-thumb{background-color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn .md-bar{background-color:"{{warn-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn.md-focused .md-thumb:before{background-color:"{{warn-color-0.26}}"}md-switch.md-THEME_NAME-theme[disabled] .md-thumb{background-color:"{{background-400}}"}md-switch.md-THEME_NAME-theme[disabled] .md-bar{background-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme md-tabs-wrapper{background-color:transparent;border-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme .md-paginator md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme md-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme .md-tab{color:"{{foreground-2}}"}md-tabs.md-THEME_NAME-theme .md-tab[disabled],md-tabs.md-THEME_NAME-theme .md-tab[disabled] md-icon{color:"{{foreground-3}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-active,md-tabs.md-THEME_NAME-theme .md-tab.md-active md-icon,md-tabs.md-THEME_NAME-theme .md-tab.md-focused,md-tabs.md-THEME_NAME-theme .md-tab.md-focused md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-focused{background:"{{primary-color-0.1}}"}md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper{background-color:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper{background-color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper{background-color:"{{warn-color}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{primary-color}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toast.md-THEME_NAME-theme .md-toast-content{background-color:#323232;color:"{{background-50}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button{color:"{{background-50}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight{color:"{{accent-color}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-primary{color:"{{primary-color}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-warn{color:"{{warn-color}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar){background-color:"{{primary-color}}";color:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-icon{color:"{{primary-contrast}}";fill:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) .md-button[disabled] md-icon{color:"{{primary-contrast-0.26}}";fill:"{{primary-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-ink-ripple{color:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-icon{color:"{{accent-contrast}}";fill:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-button[disabled] md-icon{color:"{{accent-contrast-0.26}}";fill:"{{accent-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn{background-color:"{{warn-color}}";color:"{{warn-contrast}}"}.md-panel.md-tooltip.md-THEME_NAME-theme{color:"{{background-700-contrast}}";background-color:"{{background-700}}"}body.md-THEME_NAME-theme,html.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-color}}"}')}(window,window.angular),window.ngMaterial={version:{full:"1.1.18"}};
//third_party/javascript/angular/v1_6/angular-animate.min.js
/*
 AngularJS v1.6.4-local+sha.617b36117
 (c) 2010-2018 Google, Inc. http://angularjs.org
 License: MIT
*/
'use strict';(function(I,y){'use strict';function Ca(a,b,c){if(!a)throw Qa("areq",b||"?",c||"required");return a}function Da(a,b){if(!a&&!b)return"";if(!a)return b;if(!b)return a;S(a)&&(a=a.join(" "));S(b)&&(b=b.join(" "));return a+" "+b}function Ra(a){var b={};a&&(a.to||a.from)&&(b.to=a.to,b.from=a.from);return b}function T(a,b,c){var d="";a=S(a)?a:a&&D(a)&&a.length?a.split(/\s+/):[];u(a,function(a,m){a&&0<a.length&&(d+=0<m?" ":"",d+=c?b+a:a+b)});return d}function Ea(a){if(a instanceof B)switch(a.length){case 0:return a;
case 1:if(1===a[0].nodeType)return a;break;default:return B(ua(a))}if(1===a.nodeType)return B(a)}function ua(a){if(!a[0])return a;for(var b=0;b<a.length;b++){var c=a[b];if(1===c.nodeType)return c}}function Sa(a,b,c){u(b,function(b){a.addClass(b,c)})}function Ta(a,b,c){u(b,function(b){a.removeClass(b,c)})}function U(a){return function(b,c){c.addClass&&(Sa(a,b,c.addClass),c.addClass=null);c.removeClass&&(Ta(a,b,c.removeClass),c.removeClass=null)}}function oa(a){a=a||{};if(!a.$$prepared){var b=a.domOperation||
M;a.domOperation=function(){a.$$domOperationFired=!0;b();b=M};a.$$prepared=!0}return a}function ha(a,b){Fa(a,b);Ga(a,b)}function Fa(a,b){b.from&&(a.css(b.from),b.from=null)}function Ga(a,b){b.to&&(a.css(b.to),b.to=null)}function V(a,b,c){var d=b.options||{};c=c.options||{};var g=(d.addClass||"")+" "+(c.addClass||""),m=(d.removeClass||"")+" "+(c.removeClass||"");a=Ua(a.attr("class"),g,m);c.preparationClasses&&(d.preparationClasses=W(c.preparationClasses,d.preparationClasses),delete c.preparationClasses);
g=d.domOperation!==M?d.domOperation:null;va(d,c);g&&(d.domOperation=g);d.addClass=a.addClass?a.addClass:null;d.removeClass=a.removeClass?a.removeClass:null;b.addClass=d.addClass;b.removeClass=d.removeClass;return d}function Ua(a,b,c){function d(a){D(a)&&(a=a.split(" "));var b={};u(a,function(a){a.length&&(b[a]=!0)});return b}var g={};a=d(a);b=d(b);u(b,function(a,b){g[b]=1});c=d(c);u(c,function(a,b){g[b]=1===g[b]?null:-1});var m={addClass:"",removeClass:""};u(g,function(b,c){if(1===b){var k="addClass";
var d=!a[c]||a[c+"-remove"]}else-1===b&&(k="removeClass",d=a[c]||a[c+"-add"]);d&&(m[k].length&&(m[k]+=" "),m[k]+=c)});return m}function N(a){return a instanceof B?a[0]:a}function Va(a,b,c){var d="";b&&(d=T(b,"ng-",!0));c.addClass&&(d=W(d,T(c.addClass,"-add")));c.removeClass&&(d=W(d,T(c.removeClass,"-remove")));d.length&&(c.preparationClasses=d,a.addClass(d))}function pa(a,b){b=b?"-"+b+"s":"";ia(a,[ja,b]);return[ja,b]}function wa(a,b){b=b?"paused":"";var c=Z+"PlayState";ia(a,[c,b]);return[c,b]}function ia(a,
b){a.style[b[0]]=b[1]}function W(a,b){return a?b?a+" "+b:a:b}function Ha(a,b,c){var d=Object.create(null),g=a.getComputedStyle(b)||{};u(c,function(a,b){if(a=g[a]){var c=a.charAt(0);if("-"===c||"+"===c||0<=c)a=Wa(a);0===a&&(a=null);d[b]=a}});return d}function Wa(a){var b=0;a=a.split(/\s*,\s*/);u(a,function(a){"s"===a.charAt(a.length-1)&&(a=a.substring(0,a.length-1));a=parseFloat(a)||0;b=b?Math.max(a,b):a});return b}function xa(a){return 0===a||null!=a}function Ia(a,b){var c=R;a+="s";b?c+="Duration":
a+=" linear all";return[c,a]}function Ja(){var a=Object.create(null);return{flush:function(){a=Object.create(null)},count:function(b){return(b=a[b])?b.total:0},get:function(b){return(b=a[b])&&b.value},put:function(b,c){a[b]?a[b].total++:a[b]={total:1,value:c}}}}function Ka(a,b,c){u(c,function(c){a[c]=ya(a[c])?a[c]:b.style.getPropertyValue(c)})}if(void 0===I.ontransitionend&&void 0!==I.onwebkittransitionend){var R="WebkitTransition";var La="webkitTransitionEnd transitionend"}else R="transition",La=
"transitionend";if(void 0===I.onanimationend&&void 0!==I.onwebkitanimationend){var Z="WebkitAnimation";var Ma="webkitAnimationEnd animationend"}else Z="animation",Ma="animationend";var qa=Z+"Delay",za=Z+"Duration",ja=R+"Delay",Na=R+"Duration",Qa=y.$$minErr("ng");"use strict";"use strict";"use strict";var Xa={transitionDuration:Na,transitionDelay:ja,transitionProperty:R+"Property",animationDuration:za,animationDelay:qa,animationIterationCount:Z+"IterationCount"},Ya={transitionDuration:Na,transitionDelay:ja,
animationDuration:za,animationDelay:qa};"use strict";"use strict";"use strict";"use strict";"use strict";"use strict";"use strict";var Aa,va,u,S,ya,aa,Ba,ra,D,P,B,M;y.module("ngAnimate",[],function(){M=y.noop;Aa=y.copy;va=y.extend;B=y.element;u=y.forEach;S=y.isArray;D=y.isString;ra=y.isObject;P=y.isUndefined;ya=y.isDefined;Ba=y.isFunction;aa=y.isElement}).info({angularVersion:"1.6.4-local+sha.617b36117"}).directive("ngAnimateSwap",["$animate","$rootScope",function(a,b){return{restrict:"A",transclude:"element",
terminal:!0,priority:600,link:function(b,d,g,m,k){var c,G;b.$watchCollection(g.ngAnimateSwap||g["for"],function(z){c&&a.leave(c);G&&(G.$destroy(),G=null);if(z||0===z)G=b.$new(),k(G,function(b){c=b;a.enter(b,null,d)})})}}}]).directive("ngAnimateChildren",["$interpolate",function(a){return{link:function(b,c,d){function g(a){c.data("$$ngAnimateChildren","on"===a||"true"===a)}var m=d.ngAnimateChildren;D(m)&&0===m.length?c.data("$$ngAnimateChildren",!0):(g(a(m)(b)),d.$observe("ngAnimateChildren",g))}}}]).factory("$$rAFScheduler",
["$$rAF",function(a){function b(a){g=g.concat(a);c()}function c(){if(g.length){for(var b=g.shift(),k=0;k<b.length;k++)b[k]();d||a(function(){d||c()})}}var d;var g=b.queue=[];b.waitUntilQuiet=function(b){d&&d();d=a(function(){d=null;b();c()})};return b}]).provider("$$animateQueue",["$animateProvider",function(a){function b(a){if(!a)return null;a=a.split(" ");var b=Object.create(null);u(a,function(a){b[a]=!0});return b}function c(a,c){if(a&&c){var k=b(c);return a.split(" ").some(function(a){return k[a]})}}
function d(a,b,c){return m[a].some(function(a){return a(b,c)})}function g(a,b){var c=0<(a.addClass||"").length;a=0<(a.removeClass||"").length;return b?c&&a:c||a}var m=this.rules={skip:[],cancel:[],join:[]};m.join.push(function(a,b){return!a.structural&&g(a)});m.skip.push(function(a,b){return!a.structural&&!g(a)});m.skip.push(function(a,b){return"leave"===b.event&&a.structural});m.skip.push(function(a,b){return b.structural&&2===b.state&&!a.structural});m.cancel.push(function(a,b){return b.structural&&
a.structural});m.cancel.push(function(a,b){return 2===b.state&&a.structural});m.cancel.push(function(a,b){if(b.structural)return!1;var d=a.addClass;a=a.removeClass;var g=b.addClass;b=b.removeClass;return P(d)&&P(a)||P(g)&&P(b)?!1:c(d,b)||c(a,g)});this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(b,c,m,v,Q,K,ka,E,l,J,O){function k(){var a=!1;return function(b){a?b():c.$$postDigest(function(){a=
!0;b()})}}function ba(a,b,c){var e=[],d=h[c];d&&u(d,function(h){z.call(h.node,b)?e.push(h.callback):"leave"===c&&z.call(h.node,a)&&e.push(h.callback)});return e}function f(a,b,c){var e=ua(b);return a.filter(function(a){return!(a.node===e&&(!c||a.callback===c))})}function n(a,h,f){function sa(a,c,e,h){v(function(){var a=ba(m,x,c);a.length?b(function(){u(a,function(a){a(l,e,h)});"close"!==e||x.parentNode||ta.off(x)}):"close"!==e||x.parentNode||ta.off(x)});a.progress(c,e,h)}function n(a){var b=l,c=p;
c.preparationClasses&&(b.removeClass(c.preparationClasses),c.preparationClasses=null);c.activeClasses&&(b.removeClass(c.activeClasses),c.activeClasses=null);Oa(l,p);ha(l,p);p.domOperation();w.complete(!a)}var p=Aa(f),l=Ea(a),x=N(l),m=x&&x.parentNode;p=oa(p);var w=new ka,v=k();S(p.addClass)&&(p.addClass=p.addClass.join(" "));p.addClass&&!D(p.addClass)&&(p.addClass=null);S(p.removeClass)&&(p.removeClass=p.removeClass.join(" "));p.removeClass&&!D(p.removeClass)&&(p.removeClass=null);p.from&&!ra(p.from)&&
(p.from=null);p.to&&!ra(p.to)&&(p.to=null);if(!(e&&x&&Za(x,h,f)&&F(x,p)))return n(),w;var J=0<=["enter","move","leave"].indexOf(h),q=O(),A=q||ea.get(x);f=!A&&H.get(x)||{};var la=!!f.state;A||la&&1===f.state||(A=!fa(x,m,h));if(A)return q&&sa(w,h,"start"),n(),q&&sa(w,h,"close"),w;J&&G(x);q={structural:J,element:l,event:h,addClass:p.addClass,removeClass:p.removeClass,close:n,options:p,runner:w};if(la){if(d("skip",q,f)){if(2===f.state)return n(),w;V(l,f,q);return f.runner}if(d("cancel",q,f))if(2===f.state)f.runner.end();
else if(f.structural)f.close();else return V(l,f,q),f.runner;else if(d("join",q,f))if(2===f.state)V(l,q,{});else return Va(l,J?h:null,p),h=q.event=f.event,p=V(l,f,q),f.runner}else V(l,q,{});(la=q.structural)||(la="animate"===q.event&&0<Object.keys(q.options.to||{}).length||g(q));if(!la)return n(),t(x),w;var z=(f.counter||0)+1;q.counter=z;C(x,1,q);c.$$postDigest(function(){l=Ea(a);var b=H.get(x),c=!b;b=b||{};var e=0<(l.parent()||[]).length&&("animate"===b.event||b.structural||g(b));if(c||b.counter!==
z||!e){c&&(Oa(l,p),ha(l,p));if(c||J&&b.event!==h)p.domOperation(),w.end();e||t(x)}else h=!b.structural&&g(b,!0)?"setClass":b.event,C(x,2),b=K(l,h,b.options),w.setHost(b),sa(w,h,"start",{}),b.done(function(a){n(!a);(a=H.get(x))&&a.counter===z&&t(x);sa(w,h,"close",{})})});return w}function G(a){a=a.querySelectorAll("[data-ng-animate]");u(a,function(a){var b=parseInt(a.getAttribute("data-ng-animate"),10),c=H.get(a);if(c)switch(b){case 2:c.runner.end();case 1:H.delete(a)}})}function t(a){a.removeAttribute("data-ng-animate");
H.delete(a)}function fa(a,b,c){c=v[0].body;var e=N(m),h=a===c||"HTML"===a.nodeName,f=a===e,d=!1,p=ea.get(a),l;for((a=B.data(a,"$ngAnimatePin"))&&(b=N(a));b;){f||(f=b===e);if(1!==b.nodeType)break;a=H.get(b)||{};if(!d){var n=ea.get(b);if(!0===n&&!1!==p){p=!0;break}else!1===n&&(p=!1);d=a.structural}if(P(l)||!0===l)a=B.data(b,"$$ngAnimateChildren"),ya(a)&&(l=a);if(d&&!1===l)break;h||(h=b===c);if(h&&f)break;if(!f&&(a=B.data(b,"$ngAnimatePin"))){b=N(a);continue}b=b.parentNode}return(!d||l)&&!0!==p&&f&&
h}function C(a,b,c){c=c||{};c.state=b;a.setAttribute("data-ng-animate",b);c=(b=H.get(a))?va(b,c):c;H.set(a,c)}var H=new Q,ea=new Q,e=null,x=c.$watch(function(){return 0===E.totalPendingRequests},function(a){a&&(x(),c.$$postDigest(function(){c.$$postDigest(function(){null===e&&(e=!0)})}))}),h=Object.create(null);Q=a.customFilter();var w=a.classNameFilter();J=function(){return!0};var Za=Q||J,F=w?function(a,b){a=[a.getAttribute("class"),b.addClass,b.removeClass].join(" ");return w.test(a)}:J,Oa=U(l),
z=I.Node.prototype.contains||function(a){return this===a||!!(this.compareDocumentPosition(a)&16)},ta={on:function(a,b,c){var e=ua(b);h[a]=h[a]||[];h[a].push({node:e,callback:c});B(b).on("$destroy",function(){H.get(e)||ta.off(a,b,c)})},off:function(a,b,c){if(1!==arguments.length||D(arguments[0])){var e=h[a];e&&(h[a]=1===arguments.length?null:f(e,b,c))}else for(e in b=arguments[0],h)h[e]=f(h[e],b)},pin:function(a,b){Ca(aa(a),"element","not an element");Ca(aa(b),"parentElement","not an element");a.data("$ngAnimatePin",
b)},push:function(a,b,c,e){c=c||{};c.domOperation=e;return n(a,b,c)},enabled:function(a,b){var c=arguments.length;if(0===c)b=!!e;else if(aa(a)){var h=N(a);1===c?b=!ea.get(h):ea.set(h,!b)}else b=e=!!a;return b}};return ta}]}]).provider("$$animation",["$animateProvider",function(a){var b=this.drivers=[];this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler",function(a,d,g,m,k,z){function c(a){function b(a){if(a.processed)return a;a.processed=!0;var d=a.domNode,f=d.parentNode;
g.set(d,a);for(var n;f;){if(n=g.get(f)){n.processed||(n=b(n));break}f=f.parentNode}(n||c).children.push(a);return a}var c={children:[]},d,g=new k;for(d=0;d<a.length;d++){var m=a[d];g.set(m.domNode,a[d]={domNode:m.domNode,fn:m.fn,children:[]})}for(d=0;d<a.length;d++)b(a[d]);return function(a){var b=[],c=[],d;for(d=0;d<a.children.length;d++)c.push(a.children[d]);a=c.length;var l=0,g=[];for(d=0;d<c.length;d++){var m=c[d];0>=a&&(a=l,l=0,b.push(g),g=[]);g.push(m.fn);m.children.forEach(function(a){l++;
c.push(a)});a--}g.length&&b.push(g);return b}(c)}var v=[],Q=U(a);return function(k,G,E){function l(a){a=a.hasAttribute("ng-animate-ref")?[a]:a.querySelectorAll("[ng-animate-ref]");var b=[];u(a,function(a){var c=a.getAttribute("ng-animate-ref");c&&c.length&&b.push(a)});return b}function J(a){var b=[],c={};u(a,function(a,e){var d=N(a.element),h=0<=["enter","move"].indexOf(a.event);d=a.structural?l(d):[];if(d.length){var f=h?"to":"from";u(d,function(a){var b=a.getAttribute("ng-animate-ref");c[b]=c[b]||
{};c[b][f]={animationID:e,element:B(a)}})}else b.push(a)});var h={},d={};u(c,function(c,e){e=c.from;c=c.to;if(e&&c){var f=a[e.animationID],l=a[c.animationID],g=e.animationID.toString();if(!d[g]){var n=d[g]={structural:!0,beforeStart:function(){f.beforeStart();l.beforeStart()},close:function(){f.close();l.close()},classes:O(f.classes,l.classes),from:f,to:l,anchors:[]};n.classes.length?b.push(n):(b.push(f),b.push(l))}d[g].anchors.push({out:e.element,"in":c.element})}else e=e?e.animationID:c.animationID,
c=e.toString(),h[c]||(h[c]=!0,b.push(a[e]))});return b}function O(a,b){a=a.split(" ");b=b.split(" ");for(var c=[],e=0;e<a.length;e++){var d=a[e];if("ng-"!==d.substring(0,3))for(var f=0;f<b.length;f++)if(d===b[f]){c.push(d);break}}return c.join(" ")}function A(a){for(var c=b.length-1;0<=c;c--){var d=g.get(b[c])(a);if(d)return d}}function ba(a,b){function c(a){(a=a.data("$$animationRunner"))&&a.setHost(b)}a.from&&a.to?(c(a.from.element),c(a.to.element)):c(a.element)}function f(){var a=k.data("$$animationRunner");
!a||"leave"===G&&E.$$domOperationFired||a.end()}function n(b){k.off("$destroy",f);k.removeData("$$animationRunner");Q(k,E);ha(k,E);E.domOperation();C&&a.removeClass(k,C);k.removeClass("ng-animate");t.complete(!b)}E=oa(E);var Pa=0<=["enter","move","leave"].indexOf(G),t=new m({end:function(){n()},cancel:function(){n(!0)}});if(!b.length)return n(),t;k.data("$$animationRunner",t);var fa=Da(k.attr("class"),Da(E.addClass,E.removeClass)),C=E.tempClasses;C&&(fa+=" "+C,E.tempClasses=null);if(Pa){var H="ng-"+
G+"-prepare";a.addClass(k,H)}v.push({element:k,classes:fa,event:G,structural:Pa,options:E,beforeStart:function(){k.addClass("ng-animate");C&&a.addClass(k,C);H&&(a.removeClass(k,H),H=null)},close:n});k.on("$destroy",f);if(1<v.length)return t;d.$$postDigest(function(){var a=[];u(v,function(b){b.element.data("$$animationRunner")?a.push(b):b.close()});v.length=0;var b=J(a),d=[];u(b,function(a){d.push({domNode:N(a.from?a.from.element:a.element),fn:function(){a.beforeStart();var b=a.close;if((a.anchors?
a.from.element||a.to.element:a.element).data("$$animationRunner")){var c=A(a);if(c)var e=c.start}e?(e=e(),e.done(function(a){b(!a)}),ba(a,e)):b()}})});z(c(d))});return t}}]}]).provider("$animateCss",["$animateProvider",function(a){var b=Ja(),c=Ja();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(a,g,m,k,z,G,v,Q){function d(a,b){var c=a.parentNode;return(c.$$ngAnimateParentKey||(c.$$ngAnimateParentKey=++O))+"-"+a.getAttribute("class")+
"-"+b}function y(d,f,l,k){if(0<b.count(l)){var n=c.get(l);n||(f=T(f,"-stagger"),g.addClass(d,f),n=Ha(a,d,k),n.animationDuration=Math.max(n.animationDuration,0),n.transitionDuration=Math.max(n.transitionDuration,0),g.removeClass(d,f),c.put(l,n))}return n||{}}function E(a){A.push(a);v.waitUntilQuiet(function(){b.flush();c.flush();for(var a=z(),d=0;d<A.length;d++)A[d](a);A.length=0})}function l(c,d,l){d=b.get(l);d||(d=Ha(a,c,Xa),"infinite"===d.animationIterationCount&&(d.animationIterationCount=1));
b.put(l,d);c=d;l=c.animationDelay;d=c.transitionDelay;c.maxDelay=l&&d?Math.max(l,d):l||d;c.maxDuration=Math.max(c.animationDuration*c.animationIterationCount,c.transitionDuration);return c}var J=U(g),O=0,A=[];return function(a,c){function f(){t()}function v(){t(!0)}function t(b){if(!(O||ba&&A)){O=!0;A=!1;e.$$skipPreparationClasses||g.removeClass(a,da);g.removeClass(a,V);wa(h,!1);pa(h,!1);u(w,function(a){h.style[a[0]]=""});J(a,e);ha(a,e);Object.keys(x).length&&u(x,function(a,b){a?h.style.setProperty(b,
a):h.style.removeProperty(b)});if(e.onDone)e.onDone();K&&K.length&&a.off(K.join(" "),H);var c=a.data("$$animateCss");c&&(k.cancel(c[0].timer),a.removeData("$$animateCss"));B&&B.complete(!b)}}function fa(a){r.blockTransition&&pa(h,a);r.blockKeyframeAnimation&&wa(h,!!a)}function C(){B=new m({end:f,cancel:v});E(M);t();return{$$willAnimate:!1,start:function(){return B},end:f}}function H(a){a.stopPropagation();var b=a.originalEvent||a;b.target===h&&(a=b.$manualTimeStamp||Date.now(),b=parseFloat(b.elapsedTime.toFixed(3)),
Math.max(a-ka,0)>=W&&b>=L&&(ba=!0,t()))}function ea(){function b(){if(!O){fa(!1);u(w,function(a){h.style[a[0]]=a[1]});J(a,e);g.addClass(a,V);if(r.recalculateTimingStyles){I=h.getAttribute("class")+" "+da;ma=d(h,I);q=l(h,I,ma);Y=q.maxDelay;na=Math.max(Y,0);L=q.maxDuration;if(0===L){t();return}r.hasTransitions=0<q.transitionDuration;r.hasAnimations=0<q.animationDuration}r.applyAnimationDelay&&(Y="boolean"!==typeof e.delay&&xa(e.delay)?parseFloat(e.delay):Y,na=Math.max(Y,0),q.animationDelay=Y,ca=[qa,
Y+"s"],w.push(ca),h.style[ca[0]]=ca[1]);W=1E3*na;aa=1E3*L;if(e.easing){var b=e.easing;if(r.hasTransitions){var f=R+"TimingFunction";w.push([f,b]);h.style[f]=b}r.hasAnimations&&(f=Z+"TimingFunction",w.push([f,b]),h.style[f]=b)}q.transitionDuration&&K.push(La);q.animationDuration&&K.push(Ma);ka=Date.now();var C=W+1.5*aa;f=ka+C;b=a.data("$$animateCss")||[];var m=!0;if(b.length){var n=b[0];(m=f>n.expectedEndTime)?k.cancel(n.timer):b.push(t)}m&&(C=k(c,C,!1),b[0]={timer:C,expectedEndTime:f},b.push(t),a.data("$$animateCss",
b));if(K.length)a.on(K.join(" "),H);e.to&&(e.cleanupStyles&&Ka(x,h,Object.keys(e.to)),Ga(a,e))}}function c(){var b=a.data("$$animateCss");if(b){for(var c=1;c<b.length;c++)b[c]();a.removeData("$$animateCss")}}if(!O)if(h.parentNode){var f=function(a){if(ba)A&&a&&(A=!1,t());else if(A=!a,q.animationDuration)if(a=wa(h,A),A)w.push(a);else{var b=w,c=b.indexOf(a);0<=a&&b.splice(c,1)}},C=0<U&&(q.transitionDuration&&0===X.transitionDuration||q.animationDuration&&0===X.animationDuration)&&Math.max(X.animationDelay,
X.transitionDelay);C?k(b,Math.floor(C*U*1E3),!1):b();p.resume=function(){f(!0)};p.pause=function(){f(!1)}}else t()}var e=c||{};e.$$prepared||(e=oa(Aa(e)));var x={},h=N(a);if(!h||!h.parentNode||!Q.enabled())return C();var w=[],z=a.attr("class"),F=Ra(e),O,A,ba,B,p,ka,K=[];if(0===e.duration||!G.animations&&!G.transitions)return C();var D=e.event&&S(e.event)?e.event.join(" "):e.event,P="";c="";D&&e.structural?P=T(D,"ng-",!0):D&&(P=D);e.addClass&&(c+=T(e.addClass,"-add"));e.removeClass&&(c.length&&(c+=
" "),c+=T(e.removeClass,"-remove"));e.applyClassesEarly&&c.length&&J(a,e);var da=[P,c].join(" ").trim(),I=z+" "+da,V=T(da,"-active");z=F.to&&0<Object.keys(F.to).length;if(!(0<(e.keyframeStyle||"").length||z||da))return C();if(0<e.stagger){F=parseFloat(e.stagger);var X={transitionDelay:F,animationDelay:F,transitionDuration:0,animationDuration:0}}else{var ma=d(h,I);X=y(h,da,ma,Ya)}e.$$skipPreparationClasses||g.addClass(a,da);e.transitionStyle&&(F=[R,e.transitionStyle],ia(h,F),w.push(F));0<=e.duration&&
(F=0<h.style[R].length,F=Ia(e.duration,F),ia(h,F),w.push(F));e.keyframeStyle&&(F=[Z,e.keyframeStyle],ia(h,F),w.push(F));var U=X?0<=e.staggerIndex?e.staggerIndex:b.count(ma):0;(D=0===U)&&!e.skipBlocking&&pa(h,9999);var q=l(h,I,ma),Y=q.maxDelay;var na=Math.max(Y,0);var L=q.maxDuration;var r={};r.hasTransitions=0<q.transitionDuration;r.hasAnimations=0<q.animationDuration;r.hasTransitionAll=r.hasTransitions&&"all"===q.transitionProperty;r.applyTransitionDuration=z&&(r.hasTransitions&&!r.hasTransitionAll||
r.hasAnimations&&!r.hasTransitions);r.applyAnimationDuration=e.duration&&r.hasAnimations;r.applyTransitionDelay=xa(e.delay)&&(r.applyTransitionDuration||r.hasTransitions);r.applyAnimationDelay=xa(e.delay)&&r.hasAnimations;r.recalculateTimingStyles=0<c.length;if(r.applyTransitionDuration||r.applyAnimationDuration)L=e.duration?parseFloat(e.duration):L,r.applyTransitionDuration&&(r.hasTransitions=!0,q.transitionDuration=L,F=0<h.style[R+"Property"].length,w.push(Ia(L,F))),r.applyAnimationDuration&&(r.hasAnimations=
!0,q.animationDuration=L,w.push([za,L+"s"]));if(0===L&&!r.recalculateTimingStyles)return C();if(null!=e.delay){if("boolean"!==typeof e.delay){var ca=parseFloat(e.delay);na=Math.max(ca,0)}r.applyTransitionDelay&&w.push([ja,ca+"s"]);r.applyAnimationDelay&&w.push([qa,ca+"s"])}null==e.duration&&0<q.transitionDuration&&(r.recalculateTimingStyles=r.recalculateTimingStyles||D);var W=1E3*na;var aa=1E3*L;e.skipBlocking||(r.blockTransition=0<q.transitionDuration,r.blockKeyframeAnimation=0<q.animationDuration&&
0<X.animationDelay&&0===X.animationDuration);e.from&&(e.cleanupStyles&&Ka(x,h,Object.keys(e.from)),Fa(a,e));r.blockTransition||r.blockKeyframeAnimation?fa(L):e.skipBlocking||pa(h,!1);return{$$willAnimate:!0,end:f,start:function(){if(!O)return p={end:f,cancel:v,resume:null,pause:null},B=new m(p),E(ea),B}}}}]}]).provider("$$animateCssDriver",["$$animationProvider",function(a){a.drivers.push("$$animateCssDriver");this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite",
"$document",function(a,c,d,g,m,k,z){function b(a,b){D(a)&&(a=a.split(" "));D(b)&&(b=b.split(" "));return a.filter(function(a){return-1===b.indexOf(a)}).join(" ")}function v(c,g,k){function l(a){var b={},c=N(a).getBoundingClientRect();u(["width","height","top","left"],function(a){var d=c[a];switch(a){case "top":d+=y.scrollTop;break;case "left":d+=y.scrollLeft}b[a]=Math.floor(d)+"px"});return b}function m(){var c=(k.attr("class")||"").replace(/\bng-\S+\b/g,""),d=b(c,v);c=b(v,c);d=a(n,{to:l(k),addClass:"ng-anchor-in "+
d,removeClass:"ng-anchor-out "+c,delay:!0});return d.$$willAnimate?d:null}function f(){n.remove();g.removeClass("ng-animate-shim");k.removeClass("ng-animate-shim")}var n=B(N(g).cloneNode(!0)),v=(n.attr("class")||"").replace(/\bng-\S+\b/g,"");g.addClass("ng-animate-shim");k.addClass("ng-animate-shim");n.addClass("ng-anchor");E.append(n);c=function(){var b=a(n,{addClass:"ng-anchor-out",delay:!0,from:l(g)});return b.$$willAnimate?b:null}();if(!c){var t=m();if(!t)return f()}var z=c||t;return{start:function(){function a(){c&&
c.end()}var b,c=z.start();c.done(function(){c=null;if(!t&&(t=m()))return c=t.start(),c.done(function(){c=null;f();b.complete()}),c;f();b.complete()});return b=new d({end:a,cancel:a})}}}function Q(a,b,c,g){var l=K(a,M),f=K(b,M),k=[];u(g,function(a){(a=v(c,a.out,a["in"]))&&k.push(a)});if(l||f||0!==k.length)return{start:function(){function a(){u(b,function(a){a.end()})}var b=[];l&&b.push(l.start());f&&b.push(f.start());u(k,function(a){b.push(a.start())});var c=new d({end:a,cancel:a});d.all(b,function(a){c.complete(a)});
return c}}}function K(b){var c=b.element,d=b.options||{};b.structural&&(d.event=b.event,d.structural=!0,d.applyClassesEarly=!0,"leave"===b.event&&(d.onDone=d.domOperation));d.preparationClasses&&(d.event=W(d.event,d.preparationClasses));b=a(c,d);return b.$$willAnimate?b:null}if(!m.animations&&!m.transitions)return M;var y=z[0].body;c=N(g);var E=B(c.parentNode&&11===c.parentNode.nodeType||y.contains(c)?c:y);return function(a){return a.from&&a.to?Q(a.from,a.to,a.classes,a.anchors):K(a)}}]}]).provider("$$animateJs",
["$animateProvider",function(a){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(b,c,d){function g(c){c=S(c)?c:c.split(" ");for(var d=[],g={},k=0;k<c.length;k++){var m=c[k],u=a.$$registeredAnimations[m];u&&!g[m]&&(d.push(b.get(u)),g[m]=!0)}return d}var m=U(d);return function(a,b,d,v){function k(){v.domOperation();m(a,v)}function z(a,b,d,f,e){switch(d){case "animate":b=[b,f.from,f.to,e];break;case "setClass":b=[b,G,B,e];break;case "addClass":b=[b,G,e];break;case "removeClass":b=[b,B,e];
break;default:b=[b,e]}b.push(f);if(a=a.apply(a,b))if(Ba(a.start)&&(a=a.start()),a instanceof c)a.done(e);else if(Ba(a))return a;return M}function y(a,b,d,f,e){var g=[];u(f,function(f){var h=f[e];h&&g.push(function(){var e=!1,f=function(a){e||(e=!0,(k||M)(a),g.complete(!a))};var g=new c({end:function(){f()},cancel:function(){f(!0)}});var k=z(h,a,b,d,function(a){f(!1===a)});return g})});return g}function E(a,b,d,f,e){var g=y(a,b,d,f,e);if(0===g.length){if("beforeSetClass"===e){var h=y(a,"removeClass",
d,f,"beforeRemoveClass");var k=y(a,"addClass",d,f,"beforeAddClass")}else"setClass"===e&&(h=y(a,"removeClass",d,f,"removeClass"),k=y(a,"addClass",d,f,"addClass"));h&&(g=g.concat(h));k&&(g=g.concat(k))}if(0!==g.length)return function(a){var b=[];g.length&&u(g,function(a){b.push(a())});b.length?c.all(b,a):a();return function(a){u(b,function(b){a?b.cancel():b.end()})}}}var l=!1;3===arguments.length&&ra(d)&&(v=d,d=null);v=oa(v);d||(d=a.attr("class")||"",v.addClass&&(d+=" "+v.addClass),v.removeClass&&(d+=
" "+v.removeClass));var G=v.addClass,B=v.removeClass,A=g(d),D;if(A.length){if("leave"===b){var f="leave";var n="afterLeave"}else f="before"+b.charAt(0).toUpperCase()+b.substr(1),n=b;"enter"!==b&&"move"!==b&&(D=E(a,b,v,A,f));var I=E(a,b,v,A,n)}if(D||I){var t;return{$$willAnimate:!0,end:function(){t?t.end():(l=!0,k(),ha(a,v),t=new c,t.complete(!0));return t},start:function(){function b(b){l=!0;k();ha(a,v);t.complete(b)}if(t)return t;t=new c;var d,f=[];D&&f.push(function(a){d=D(a)});f.length?f.push(function(a){k();
a(!0)}):k();I&&f.push(function(a){d=I(a)});t.setHost({end:function(){l||((d||M)(void 0),b(void 0))},cancel:function(){l||((d||M)(!0),b(!0))}});c.chain(f,b);return t}}}}}]}]).provider("$$animateJsDriver",["$$animationProvider",function(a){a.drivers.push("$$animateJsDriver");this.$get=["$$animateJs","$$AnimateRunner",function(a,c){function b(b){return a(b.element,b.event,b.classes,b.options)}return function(a){if(a.from&&a.to){var d=b(a.from),g=b(a.to);return d||g?{start:function(){function a(){return function(){u(b,
function(a){a.end()})}}var b=[];d&&b.push(d.start());g&&b.push(g.start());c.all(b,function(a){k.complete(a)});var k=new c({end:a(),cancel:a()});return k}}:void 0}return b(a)}}]}])})(window,window.angular);

//third_party/javascript/angular/v1_6/angular-aria.min.js
/*
 AngularJS v1.6.4-local+sha.617b36117
 (c) 2010-2018 Google, Inc. http://angularjs.org
 License: MIT
*/
'use strict';(function(t,p){'use strict';var d="BUTTON A INPUT TEXTAREA SELECT DETAILS SUMMARY".split(" "),h=function(a,b){if(-1!==b.indexOf(a[0].nodeName))return!0};p.module("ngAria",["ng"]).info({angularVersion:"1.6.4-local+sha.617b36117"}).provider("$aria",function(){function a(a,d,k,m){return function(e,f,c){var g=c.$normalize(d);!b[g]||h(f,k)||c[g]||e.$watch(c[a],function(a){a=m?!a:!!a;f.attr(d,a)})}}var b={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,
tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};this.config=function(a){b=p.extend(b,a)};this.$get=function(){return{config:function(a){return b[a]},$$watchExpr:a}}}).directive("ngShow",["$aria",function(a){return a.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(a){return a.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(a){return a.$$watchExpr("ngValue","aria-checked",d,!1)}]).directive("ngChecked",["$aria",function(a){return a.$$watchExpr("ngChecked",
"aria-checked",d,!1)}]).directive("ngReadonly",["$aria",function(a){return a.$$watchExpr("ngReadonly","aria-readonly",d,!1)}]).directive("ngRequired",["$aria",function(a){return a.$$watchExpr("ngRequired","aria-required",d,!1)}]).directive("ngModel",["$aria",function(a){function b(k,b,e,f){return a.config(b)&&!e.attr(k)&&(f||!h(e,d))}function f(a,b){return!b.attr("role")&&b.attr("type")===a&&!h(b,d)}function l(a,b){b=a.type;a=a.role;return"checkbox"===(b||a)||"menuitemcheckbox"===a?"checkbox":"radio"===
(b||a)||"menuitemradio"===a?"radio":"range"===b||"progressbar"===a||"slider"===a?"range":""}return{restrict:"A",require:"ngModel",priority:200,compile:function(d,m){var e=l(m,d);return{post:function(d,c,g,n){function m(){return n.$modelValue}function h(a){c.attr("aria-checked",g.value==n.$viewValue)}function l(){c.attr("aria-checked",!n.$isEmpty(n.$viewValue))}var k=b("tabindex","tabindex",c,!1);switch(e){case "radio":case "checkbox":f(e,c)&&c.attr("role",e);b("aria-checked","ariaChecked",c,!1)&&
d.$watch(m,"radio"===e?h:l);k&&c.attr("tabindex",0);break;case "range":f(e,c)&&c.attr("role","slider");if(a.config("ariaValue")){var q=!c.attr("aria-valuemin")&&(g.hasOwnProperty("min")||g.hasOwnProperty("ngMin")),p=!c.attr("aria-valuemax")&&(g.hasOwnProperty("max")||g.hasOwnProperty("ngMax")),r=!c.attr("aria-valuenow");q&&g.$observe("min",function(a){c.attr("aria-valuemin",a)});p&&g.$observe("max",function(a){c.attr("aria-valuemax",a)});r&&d.$watch(m,function(a){c.attr("aria-valuenow",a)})}k&&c.attr("tabindex",
0)}!g.hasOwnProperty("ngRequired")&&n.$validators.required&&b("aria-required","ariaRequired",c,!1)&&g.$observe("required",function(){c.attr("aria-required",!!g.required)});b("aria-invalid","ariaInvalid",c,!0)&&d.$watch(function(){return n.$invalid},function(a){c.attr("aria-invalid",!!a)})}}}}}]).directive("ngDisabled",["$aria",function(a){return a.$$watchExpr("ngDisabled","aria-disabled",d,!1)}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(a,b,d,h){b.attr("aria-live")||
b.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(a,b){return{restrict:"A",compile:function(f,l){var k=b(l.ngClick);return function(b,e,f){if(!h(e,d)&&(a.config("bindRoleForClick")&&!e.attr("role")&&e.attr("role","button"),a.config("tabindex")&&!e.attr("tabindex")&&e.attr("tabindex",0),a.config("bindKeydown")&&!f.ngKeydown&&!f.ngKeypress&&!f.ngKeyup))e.on("keydown",function(a){function c(){k(b,{$event:a})}var d=a.which||a.keyCode;32!==d&&13!==d||b.$apply(c)})}}}}]).directive("ngDblclick",
["$aria",function(a){return function(b,f,l){!a.config("tabindex")||f.attr("tabindex")||h(f,d)||f.attr("tabindex",0)}}])})(window,window.angular);

