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

//third_party/javascript/angular_material/latest/angular-material.min.js
/*!
 * AngularJS Material Design
 * https://github.com/angular/material
 * @license MIT
 * v1.1.20
 */
!function(R,fe,ge){"use strict";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}function i(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){fe.isUndefined(e)&&(e=!0),t.toggleClass("md-autofocus",!!e)}}}}}function r(e,d){function s(){return!0}e&&!fe.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;fe.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:fe.bind(null,n,!1),previous:fe.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;fe.isUndefined(o)&&(o=r),i=r}}}function a(a,t,o){var r={},d={},i={},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=l(e,t+"-"+o);if(e[i])return e[i]}}return e[l(e,t)]},e.getQuery=function(e){return d[e]},e.watchResponsiveAttributes=function(e,o,i){var r=[];return e.forEach(function(e){var t=l(o,e);for(var n in fe.isDefined(o[t])&&r.push(o.$observe(t,fe.bind(void 0,i,null))),a.MEDIA)t=l(o,e+"-"+n),fe.isDefined(o[t])&&r.push(o.$observe(t,fe.bind(void 0,i,n)))}),function(){r.forEach(function(e){e()})}},e;function e(e){var t=r[e];fe.isUndefined(t)&&(t=r[e]=function(e){return a.MEDIA[e]||("("!==e.charAt(0)?"("+e+")":e)}(e));var n=i[t];return fe.isUndefined(n)&&(n=function(e){var t=d[e];t=t||(d[e]=o.matchMedia(e));return t.addListener(s),i[t.media]=!!t.matches}(t)),n}function s(e){t.$evalAsync(function(){i[e.media]=!!e.matches})}function l(e,t){return n[t]||(n[t]=e.$normalize(t))}}function d(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=fe.isArray(n)?n:[n]).forEach(function(t){o.forEach(function(e){n.push(e+"-"+t)})}),n}function n(e){return i(e=fe.isArray(e)?e:[e]).map(function(e){return"["+e+"]"}).join(",")}function r(e){if((e=e[0]||e).nodeType)return e}}function A(e){return e.replace(/-[a-z]/g,function(e){return e.charAt(1).toUpperCase()})}var w,_,k,x,N,s,l,c,m,u,p,h,f,g,b,v,E,$,y,C,M,T;function S(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=fe.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=fe.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)&&"none"!==((d=a).currentStyle?d.currentStyle:s.getComputedStyle(d)).display&&(o=!0)}var d;return o}(o,t)||((n=fe.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=fe.element(e)[0]||e;return!!t.hasAttribute&&(t.hasAttribute("aria-label")||t.hasAttribute("aria-labelledby")||t.hasAttribute("aria-describedby"))}}function D(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 fe.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=fe.extend({},o.resolve),r=fe.extend({},o.locals),a=o.transformTemplate||fe.identity;return fe.forEach(n,function(e,t){fe.isString(e)?n[t]=i.$injector.get(e):n[t]=i.$injector.invoke(e)}),fe.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||fe.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=fe.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===fe.version.major&&fe.version.minor<6)){var i=this.$controller(e.controller,t,!0);e.bindToController&&fe.extend(i.instance,n),o=i()}else o=this.$controller(e.controller,t),e.bindToController&&fe.extend(o,n);return e.controllerAs&&(t.$scope[e.controllerAs]=o),fe.isFunction(o.$onInit)&&o.$onInit(),o},d.prototype._fetchContentElement=function(e){var t=e.contentElement,n=null;return n=fe.isString(t)?o(t=document.querySelector(t)):(t=t[0]||t,document.contains(t)?o(t):function(){t.parentNode&&t.parentNode.removeChild(t)}),{element:fe.element(t),restore:n};function o(e){var t=e.parentNode,n=e.nextElementSibling;return function(){n?t.insertBefore(e,n):t.appendChild(e)}}}}function I(e,t,n){this.$timeout=e,this.$mdUtil=t,this.$rootScope=n,this.pointerEvent="MSPointerEvent"in R?"MSPointerDown":"PointerEvent"in R?"pointerdown":null,this.bodyElement=fe.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))}function H(e){return e.replace(h,"").replace(f,function(e,t,n,o){return o?n.toUpperCase():n})}function O(){var e=!!document.querySelector("[md-layouts-disabled]");T.enabled=!e}function P(){return T.enabled=!1,{restrict:"A",priority:"900"}}function L(o){return["$mdUtil","$interpolate","$log",function(e,t,n){return l=e,c=t,m=n,{restrict:"A",compile:function(e,t){var n;return T.enabled&&(U(o,z(o,t,""),j(e,o,t)),i(null,e),n=i),n||fe.noop}}}];function i(e,t){t.addClass(o)}}function F(t){var n=t.split("-");return["$log",function(e){return e.warn(t+"has been deprecated. Please use a `"+n[0]+"-gt-<xxx>` variant."),fe.noop}]}function B(e,t,n,o){var i,r=n[0].nodeName.toLowerCase();switch(e.replace(v,"")){case"flex":"md-button"!=r&&"fieldset"!=r||(i="<"+r+" "+e+"></"+r+">","https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers","Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",o.warn(l.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 U(e,t,n){if(!q(t)){switch(e.replace(v,"")){case"layout":W(t,y)||(t=y[0]);break;case"flex":W(t,$)||isNaN(t)&&(t="");break;case"flex-offset":case"flex-order":t&&!isNaN(+t)||(t="0");break;case"layout-align":var o=function(e){var t,n={main:"start",cross:"stretch"};0!==(e=e||"").indexOf("-")&&0!==e.indexOf(" ")||(e="none"+e);(t=e.toLowerCase().trim().replace(E,"-").split("-")).length&&"space"===t[0]&&(t=[t[0]+"-"+t[1],t[2]]);0<t.length&&(n.main=t[0]||n.main);1<t.length&&(n.cross=t[1]||n.cross);C.indexOf(n.main)<0&&(n.main="start");M.indexOf(n.cross)<0&&(n.cross="stretch");return n}(t);t=l.supplant("{main}-{cross}",o);break;case"layout-padding":case"layout-margin":case"layout-fill":case"layout-wrap":case"layout-nowrap":t=""}null!=t&&(n||fe.noop)(t)}return t?t.trim():""}function j(e,t,n){return function(e){q(e)||(n[n.$normalize(t)]=e)}}function q(e){return-1<(e||"").indexOf(c.startSymbol())}function z(e,t,n){var o=t.$normalize(e);return t[o]?t[o].trim().replace(E,"-"):n||null}function W(t,e,n){t=n&&t?t.replace(E,n):t;var o=!1;return t&&e.forEach(function(e){e=n?e.replace(E,n):e,o=o||e===t}),o}function V(e){this._$timeout=e,this._liveElement=this._createLiveElement(),this._announceTimeout=100}function Y(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)}):fe.noop;var n},when:function(e){if(d(e)){var t=o.defer(),n=i.get(e);return n?t.resolve(n):(a[e]===ge&&(a[e]=[]),a[e].push(t)),t.promise}return o.reject("Invalid `md-component-id` value.")}};function d(e){return e&&""!==e}}function K(o){return{attach:function(e,t,n){return n=fe.extend(function(e){return e.hasClass("md-icon-button")?{isMenuItem:e.hasClass("md-menu-item"),fitRipple:!0,center:!0}:{isMenuItem:e.hasClass("md-menu-item"),dimBackground:!0}}(t),n),o.attach(e,t,n)}}}function G(o){return{attach:function(e,t,n){return o.attach(e,t,fe.extend({center:!0,dimBackground:!1,fitRipple:!0},n))}}}function X(o){return{attach:function(e,t,n){return o.attach(e,t,fe.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},n))}}}function Q(o){return{attach:function(e,t,n){return o.attach(e,t,fe.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},n))}}}function Z(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"),fe.isDefined(n.mdClearButton)||e.floatingLabel||(e.clearButton=!0),e.mdMode=m(n.mdMode),t.on("click touchstart touchend",function(e){e.stopPropagation()})}},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="text"                '+(null!=d?'tabindex="'+d+'"':"")+'                id="{{inputId || \'fl-input-\' + $mdAutocompleteCtrl.id}}"                name="{{inputName || \'fl-input-\' + $mdAutocompleteCtrl.id }}"                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-mousedown="$mdAutocompleteCtrl.focusInput()"                ng-keydown="$mdAutocompleteCtrl.keydown($event)"                ng-blur="$mdAutocompleteCtrl.blur($event)"                ng-focus="$mdAutocompleteCtrl.focus($event)"                aria-label="{{floatingLabel}}"                ng-attr-aria-autocomplete="{{$mdAutocompleteCtrl.isDisabled ? undefined : \'list\'}}"                ng-attr-role="{{$mdAutocompleteCtrl.isDisabled ? undefined : \'combobox\'}}"                aria-haspopup="{{!$mdAutocompleteCtrl.isDisabled}}"                aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"                ng-attr-aria-owns="{{$mdAutocompleteCtrl.hidden || $mdAutocompleteCtrl.isDisabled ? undefined : \'ul-\' + $mdAutocompleteCtrl.id}}"                ng-attr-aria-activedescendant="{{!$mdAutocompleteCtrl.hidden && $mdAutocompleteCtrl.activeOption ? $mdAutocompleteCtrl.activeOption : undefined}}">              <div md-autocomplete-parent-scope md-autocomplete-replace>'+a+"</div>            </md-input-container>":'            <input type="text"              '+(null!=d?'tabindex="'+d+'"':"")+'              id="{{inputId || \'input-\' + $mdAutocompleteCtrl.id}}"              name="{{inputName || \'input-\' + $mdAutocompleteCtrl.id }}"              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-mousedown="$mdAutocompleteCtrl.focusInput()"              ng-keydown="$mdAutocompleteCtrl.keydown($event)"              ng-blur="$mdAutocompleteCtrl.blur($event)"              ng-focus="$mdAutocompleteCtrl.focus($event)"              placeholder="{{placeholder}}"              aria-label="{{placeholder}}"              ng-attr-aria-autocomplete="{{$mdAutocompleteCtrl.isDisabled ? undefined : \'list\'}}"              ng-attr-role="{{$mdAutocompleteCtrl.isDisabled ? undefined : \'combobox\'}}"              aria-haspopup="{{!$mdAutocompleteCtrl.isDisabled}}"              aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"              ng-attr-aria-owns="{{$mdAutocompleteCtrl.hidden || $mdAutocompleteCtrl.isDisabled ? undefined : \'ul-\' + $mdAutocompleteCtrl.id}}"              ng-attr-aria-activedescendant="{{!$mdAutocompleteCtrl.hidden && $mdAutocompleteCtrl.activeOption ? $mdAutocompleteCtrl.activeOption : undefined}}">')+'          <button type="button" aria-label="Clear Input" tabindex="0" 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.focusInput()"                role="listbox">              <li class="md-autocomplete-suggestion" '+(s(e.mdMode)?"ng-repeat":"md-virtual-repeat")+' ="item in $mdAutocompleteCtrl.matches"                  ng-class="{ selected: $index === $mdAutocompleteCtrl.index }"                  ng-attr-id="{{\'md-option-\' + $mdAutocompleteCtrl.id + \'-\' + $index}}"                  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}}}}function J(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"}}function ee(e,t,n){this.$scope=e,this.$element=t,this.$attrs=n,this.regex=null}function te(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)}}}}function ne(n){return{restrict:"E",link:function(e,t){t.addClass("_md"),e.$on("$destroy",function(){n.destroy()})}}}function oe(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)||fe.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}}}function ie(n){return{restrict:"E",link:function(e,t){n(t)}}}function re(o,i,r,a){return{restrict:"EA",replace:!0,transclude:!0,template:function(e,t){{return d(t)?'<a class="md-button" ng-transclude></a>':'<button class="md-button" type="'+(void 0===t.type?"button":t.type)+'" ng-transclude></button>'}},link:function(e,t,n){i(t),o.attach(e,t),r.expectWithoutText(t,"aria-label"),d(n)&&fe.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 fe.isDefined(e.href)||fe.isDefined(e.ngHref)||fe.isDefined(e.ngLink)||fe.isDefined(e.uiSref)}}function ae(o){return{restrict:"E",link:function(e,t,n){t.addClass("_md"),o(t)}}}function de(m,u,p,h,f,g){return m=m[0],{restrict:"E",transclude:!0,require:["^?mdInputContainer","?ngModel","?^form"],priority:p.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(o,i,r,e){var t,n=e[0],a=e[1]||f.fakeNgModel(),d=e[2];if(n){var s=n.isErrorGetter||function(){return a.$invalid&&(a.$touched||d&&d.$submitted)};n.input=i,o.$watch(s,n.setInvalid)}h(i),i.children().on("focus",function(){i.focus()}),f.parseAttributeBoolean(r.mdIndeterminate)&&(c(),o.$watch(r.mdIndeterminate,c));r.ngChecked&&o.$watch(o.$eval.bind(o,r.ngChecked),function(e){a.$setViewValue(e),a.$render()});function l(t){i[0].hasAttribute("disabled")||o.skipToggle||o.$apply(function(){var e=r.ngChecked&&r.ngClick?r.checked:!a.$viewValue;a.$setViewValue(e,t&&t.type),a.$render()})}function c(e){(t=!1!==e)&&i.attr("aria-checked","mixed"),i.toggleClass("md-indeterminate",t)}(function(e,t,n){r[e]&&o.$watch(r[e],function(e){n[e]&&i.attr(t,n[e])})})("ngDisabled","tabindex",{true:"-1",false:r.tabindex}),u.expectWithText(i,"aria-label"),m.link.pre(o,{on:fe.noop,0:{}},r,[a]),i.on("click",l).on("keypress",function(e){var t,n,o=e.which||e.keyCode;switch(e.preventDefault(),o){case p.KEY_CODE.SPACE:i.addClass("md-focused"),l(e);break;case p.KEY_CODE.ENTER:(n=f.getClosest(e.target,"form"))&&(t=n.querySelector('button[type="submit"]:enabled, input[type="submit"]:enabled'))&&t.click()}}).on("focus",function(){"keyboard"===g.getLastInteractionType()&&i.addClass("md-focused")}).on("blur",function(){i.removeClass("md-focused")}),a.$render=function(){i.toggleClass("md-checked",!!a.$viewValue&&!t)}}}}}}function se(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=ge,this.enableChipEdit=!1}function le(d,e,t,s){return{restrict:"E",require:["^?mdChips","mdChip"],link:function(e,t,n,o){var i=o.shift(),r=o.shift(),a=fe.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"}}function ce(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")})}}}function me(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}}function ue(e,t,n){this.$element=t,this.$attrs=e,this.$timeout=n,this.selectedItem=null,this.searchText="",this.deRegister=[],this.init()}function pe(n){return{restrict:"E",controller:["$scope","$element",function(e,t){this.$scope=e,this.$element=t}],link:function(e,t){t.addClass("_md"),n(t),e.$broadcast("$mdContentLoaded",t),function(t){fe.element(t).on("$md.pressdown",function(e){"t"===e.pointer.type&&(e.$materialScrollFixed||(e.$materialScrollFixed=!0,0===t.scrollTop?t.scrollTop=1:t.scrollHeight===t.scrollTop+t.offsetHeight&&(t.scrollTop-=1)))})}(t[0])}}}function he(e,t){var d=e('<md-icon md-svg-src="'+t.mdTabsArrow+'"></md-icon>')({})[0];return{require:["^^mdCalendar","^^mdCalendarMonth","mdCalendarMonthBody"],scope:{offset:"=mdMonthOffset"},controller:be,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){fe.isNumber(e)&&a.generateContent()})}}}function be(e,t,n){this.$element=e,this.dateUtil=t,this.dateLocale=n,this.monthCtrl=null,this.calendarCtrl=null,this.offset=null,this.focusAfterAppend=null}function ve(e,t,n){this.$element=e,this.dateUtil=t,this.dateLocale=n,this.calendarCtrl=null,this.yearCtrl=null,this.offset=null,this.focusAfterAppend=null}function Ee(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(),fe.element(e).on("load",n)),o.$on("$destroy",function(){r.destroy(i)})})}}}function $e(e){var E,$;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&&!fe.isDefined(this.result);e.keyCode!==i.KEY_CODE.ENTER||t||o.hide(this.result)}}}function o(u,d,p,h,r,s,f,a,l,c,t,m,g){return{hasBackdrop:!0,isolateScope:!0,onCompiling:function(e){e.defaultTheme=t.defaultTheme(),function(t){var e;t.targetEvent&&t.targetEvent.target&&(e=fe.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){fe.element(s[0].body).addClass("md-dialog-is-showing");var i=t.find("md-dialog");if(i.hasClass("ng-cloak")){l.warn("$mdDialog: using `<md-dialog ng-cloak>` will affect the dialog opening animations.",t[0])}return function(e){e.origin=fe.extend({element:null,bounds:null,focus:fe.noop},e.origin||{}),e.parent=n(e.parent,a),e.closeTo=t(n(e.closeTo)),e.openFrom=t(n(e.openFrom)),e.targetEvent&&(e.origin=t(e.targetEvent.target,e.origin),e.originInteraction=g.getLastInteractionType());function t(e,t){var n=fe.element(e||{});if(n&&n.length){var o=fe.isFunction(n[0].getBoundingClientRect);return fe.extend(t||{},{element:o?n:ge,bounds:o?n[0].getBoundingClientRect():fe.extend({},{top:0,left:0,height:0,width:0},n[0]),focus:fe.bind(n,n.focus)})}}function n(e,t){return fe.isString(e)&&(e=s[0].querySelector(e)),fe.element(e||t)}}(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?d.expect(e,"aria-label",t.ariaLabel):d.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(" ")});(E=document.createElement("div")).classList.add("md-dialog-focus-trap"),E.tabIndex=0,$=E.cloneNode(!1);function a(){e.focus()}E.addEventListener("focus",a),$.addEventListener("focus",a),e[0].parentNode.insertBefore(E,e[0]),e.after($)}(i,n),function(e,t,n){n.disableParentScroll&&(n.restoreScroll=p.disableScrollAround(t,n.parent));n.hasBackdrop&&(n.backdrop=p.createBackdrop(e,"md-dialog-backdrop md-opaque"),r.enter(n.backdrop,n.parent));n.hideBackdrop=function(e){n.backdrop&&(e?n.backdrop.remove():r.leave(n.backdrop)),n.disableParentScroll&&(n.restoreScroll&&n.restoreScroll(),delete n.restoreScroll),n.hideBackdrop=null}}(e,t,n),function(e,t){function n(){var e="alert"==t.$type?u.hide:u.cancel;p.nextTick(e,!0)}var o=fe.element(f),i=p.debounce(function(){b(e,t)},60),r=[];if(t.escapeToClose){var a=t.parent,d=function(e){e.keyCode===h.KEY_CODE.ESCAPE&&(e.stopImmediatePropagation(),e.preventDefault(),n())};e.on("keydown",d),a.on("keydown",d),r.push(function(){e.off("keydown",d),a.off("keydown",d)})}if(o.on("resize",i),r.push(function(){o.off("resize",i)}),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(),n())};l.on("mousedown",c),l.on("mouseup",m),r.push(function(){l.off("mousedown",c),l.off("mouseup",m)})}t.deactivateListeners=function(){r.forEach(function(e){e()}),t.deactivateListeners=null}}(t,n),function(e,t){t.parent.append(e),t.reverseContainerStretch=b(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]||v(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")&&l.warn("Using a class of md-actions is deprecated, please use <md-dialog-actions>."),function(){if(n.focusOnOpen){(p.findFocusTarget(t)||t[0].querySelector(".dialog-close, md-dialog-actions button:last-child")||i).focus()}}()})},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&&!c.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),E&&E.parentNode&&E.parentNode.removeChild(E);$&&$.parentNode&&$.parentNode.removeChild($);return n.$destroy?o():function(e,t){return t.reverseAnimate().then(function(){t.contentElement&&t.clearAnimate()})}(0,n).then(o);function o(){fe.element(s[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=m.startSymbol(),i=m.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 b(e,t){var n="fixed"==f.getComputedStyle(s[0].body).position,o=t.backdrop?f.getComputedStyle(t.backdrop[0]):null,i=o?Math.min(s[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 v(e,t){if(-1!==t.indexOf(e.nodeName))return!0}}}function ye(e){return{restrict:"E",link:e}}function Ce(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">')}}}function Me(t,r,a,d,n,o){var i,s=this,e=0;function l(e){"click"==e.type&&function(e){!function(e){return d.getClosest(e,"md-fab-trigger")}(e.target)||s.toggle();!function(e){return d.getClosest(e,"md-fab-actions")}(e.target)||s.close()}(e),"focusout"!=e.type||i||(i=o(function(){s.close()},100,!1)),"focusin"==e.type&&i&&(o.cancel(i),i=null)}function c(){s.currentActionIndex=-1}function m(){0<r[0].scrollHeight?a.addClass(r,"_md-animations-ready").then(function(){r.removeClass("md-animations-waiting")}):e<10&&(o(m,100),e+=1)}function u(){r.off("keydown",h),fe.element(document).off("click touchend",p)}function p(e){if(e.target){var t=d.getClosest(e.target,"md-fab-trigger"),n=d.getClosest(e.target,"md-fab-actions");t||n||s.close()}}function h(e){switch(e.which){case n.KEY_CODE.ESCAPE:return s.close(),e.preventDefault(),!1;case n.KEY_CODE.LEFT_ARROW:return function(e){"left"===s.direction?g(e):f(e)}(e),!1;case n.KEY_CODE.UP_ARROW:return function(e){"down"===s.direction?f(e):g(e)}(e),!1;case n.KEY_CODE.RIGHT_ARROW:return function(e){"left"===s.direction?f(e):g(e)}(e),!1;case n.KEY_CODE.DOWN_ARROW:return function(e){"up"===s.direction?f(e):g(e)}(e),!1}}function f(e){b(e,-1)}function g(e){b(e,1)}function b(e,t){var n=function(){var e=v()[0].querySelectorAll(".md-fab-action-item");return fe.forEach(e,function(e){fe.element(fe.element(e).children()[0]).attr("tabindex",-1)}),e}();s.currentActionIndex=s.currentActionIndex+t,s.currentActionIndex=Math.min(n.length-1,s.currentActionIndex),s.currentActionIndex=Math.max(0,s.currentActionIndex);var o=fe.element(n[s.currentActionIndex]).children()[0];fe.element(o).attr("tabindex",0),o.focus(),e.preventDefault(),e.stopImmediatePropagation()}function v(){return r.find("md-fab-actions")}s.open=function(){t.$evalAsync("vm.isOpen = true")},s.close=function(){t.$evalAsync("vm.isOpen = false"),r.find("md-fab-trigger")[0].focus()},s.toggle=function(){t.$evalAsync("vm.isOpen = !vm.isOpen")},s.$onInit=function(){s.direction=s.direction||"down",s.isOpen=s.isOpen||!1,c(),r.addClass("md-animations-waiting"),function(){var e=["click","focusin","focusout"];fe.forEach(e,function(e){r.on(e,l)}),t.$on("$destroy",function(){fe.forEach(e,function(e){r.off(e,l)}),u()})}(),function(){var o,i;t.$watch("vm.direction",function(e,t){a.removeClass(r,"md-"+t),a.addClass(r,"md-"+e),c()}),t.$watch("vm.isOpen",function(e){c(),o&&i||(o=r.find("md-fab-trigger"),i=v()),e?(r.on("keydown",h),d.nextTick(function(){fe.element(document).on("click touchend",p)})):u();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)})}(),m()},1===fe.version.major&&fe.version.minor<=4&&this.$onInit()}function Te(){function o(e,t){if(t){var n=e[0],o=e.controller("mdFabToolbar"),i=n.querySelector(".md-fab-toolbar-background"),r=n.querySelector("md-fab-trigger button"),a=n.querySelector("md-toolbar"),d=n.querySelector("md-fab-trigger button md-icon"),s=e.find("md-fab-actions").children();if(r&&i){var l=R.getComputedStyle(r).getPropertyValue("background-color"),c=n.offsetWidth,m=(n.offsetHeight,c/r.offsetWidth*2);i.style.backgroundColor=l,i.style.borderRadius=c+"px",o.isOpen?(a.style.pointerEvents="inherit",i.style.width=r.offsetWidth+"px",i.style.height=r.offsetHeight+"px",i.style.transform="scale("+m+")",i.style.transitionDelay="0ms",d&&(d.style.transitionDelay=".3s"),fe.forEach(s,function(e,t){e.style.transitionDelay=25*(s.length-t)+"ms"})):(a.style.pointerEvents="none",i.style.transform="scale(1)",i.style.top="0",e.hasClass("md-right")&&(i.style.left="0",i.style.right=null),e.hasClass("md-left")&&(i.style.right="0",i.style.left=null),i.style.transitionDelay="200ms",d&&(d.style.transitionDelay="0ms"),fe.forEach(s,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()}}}function Ae(u,b,v,E,$){return{restrict:"E",controller:we,scope:{mdOnLayout:"&"},link:function(n,r,p,t){r.addClass("_md"),r.attr("role","list"),t.layoutDelegate=function(e){var o=[].filter.call(r.children(),function(e){return"MD-GRID-TILE"==e.tagName&&!e.$$mdDestroyed}),i={tileSpans:function(e){return[].map.call(e,function(e){var t=fe.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}})}(o),colCount:function(){var e=parseInt(E.getResponsiveAttribute(p,"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:c(),rowHeight:function(){var e=E.getResponsiveAttribute(p,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";switch(c()){case"fixed":return m(e);case"ratio":var t=e.split(":");return parseFloat(t[0])/parseFloat(t[1]);case"fit":return 0}}(),gutter:m(E.getResponsiveAttribute(p,"md-gutter")||1)};if(!e&&fe.equals(i,a))return;var t=v(i.colCount,i.tileSpans,o).map(function(e,n){return{grid:{element:r,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=h({share:1/i*(1/e*100),gutterShare:1===e?0:(e-1)/e,gutter:n});r.height="",r.paddingBottom=g({unit:a,span:t,gutter:n})}return r}(i.colCount,n,i.gutter,i.rowMode,i.rowHeight)},tiles:e.map(function(e,t){return{element:fe.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=$.isRtl(p)?{right:f({unit:l,offset:e.col,gutter:i}),width:g({unit:l,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""}:{left: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":u=h({share:m=1/o*100,gutterShare:(o-1)/o,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();n.mdOnLayout({$event:{performance:t}}),a=i};var a,o=fe.bind(t,t.invalidateLayout),i=function(){for(var e in b.MEDIA)E(e),E.getQuery(b.MEDIA[e]).addListener(o);return E.watchResponsiveAttributes(["md-cols","md-row-height","md-gutter"],p,d)}();function d(e){null==e?t.invalidateLayout():E(e)&&t.invalidateLayout()}n.$on("$destroy",function(){for(var e in t.layoutDelegate=fe.noop,i(),b.MEDIA)E.getQuery(b.MEDIA[e]).removeListener(o)});var s=u.startSymbol(),l=u.endSymbol();function e(e){return s+e+l}var h=u(e("share")+"% - ("+e("gutter")+" * "+e("gutterShare")+")"),f=u("calc(("+e("unit")+" + "+e("gutter")+") * "+e("offset")+")"),g=u("calc(("+e("unit")+") * "+e("span")+" + ("+e("span")+" - 1) * "+e("gutter")+")");function c(){var e=E.getResponsiveAttribute(p,"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 m(e){return/\D$/.test(e)?e:e+"px"}}}}function we(e){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=e.nextTick,this.layoutDelegate=fe.noop}function _e(s){var l=t;return e.animateWith=function(e){l=fe.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 ke(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,fe.bind(o,o.invalidateLayout));o.invalidateTiles(),e.$on("$destroy",function(){t[0].$$mdDestroyed=!0,i(),o.invalidateLayout()}),fe.isDefined(e.$parent.$index)&&e.$watch(function(){return e.$parent.$index},function(e,t){e!==t&&o.invalidateTiles()})}}}function xe(){return{template:"<figcaption ng-transclude></figcaption>",transclude:!0}}function Ne(t){return{restrict:"E",compile:function(e){return e[0].setAttribute("role","list"),t}}}function Se(u,p,h,f){var g=["md-checkbox","md-switch","md-menu"];return{restrict:"E",controller:"MdListController",compile:function(r,o){var e,i,t,n=r[0].querySelectorAll(".md-secondary"),a=r;if(r[0].setAttribute("role","listitem"),o.ngClick||o.ngDblclick||o.ngHref||o.href||o.uiSref||o.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)(a=fe.element('<div class="md-no-style md-list-item-inner">')).append(r.contents()),r.addClass("md-proxy-focus");else{a=fe.element('<div class="md-button md-no-style">   <div class="md-list-item-inner"></div></div>');var t=fe.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"),a.prepend(t),a.children().eq(1).append(r.contents()),r.addClass("_md-button-wrap")}r[0].setAttribute("tabindex","-1"),r.append(a)}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))),fe.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"===o.$normalize(t[n].name))return!0;return!1}return t=fe.element('<div class="md-secondary-container">'),fe.forEach(n,function(e){!function(e,t){if(e&&!function(e){var t=e.nodeName.toUpperCase();return"MD-BUTTON"==t||"BUTTON"==t}(e)&&e.hasAttribute("ng-click")){u.expect(e,"aria-label");var n=fe.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]}e&&(!m(e)||!o.ngClick&&function(e){return-1!=g.indexOf(e.nodeName.toLowerCase())}(e))&&fe.element(e).removeClass("md-secondary"),r.addClass("md-with-secondary"),t.append(e)}(e,t)}),a.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=fe.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&&fe.forEach(g,function(e){fe.forEach(r.querySelectorAll(e+":not(.md-secondary)"),function(e){o.push(e)})}),1!=o.length&&!d||(i.addClass("md-clickable"),d||n.attachRipple(e,fe.element(i[0].querySelector(".md-no-style")))),o.length&&fe.forEach(o,function(t){t=fe.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)})})});function l(e){"INPUT"==e.target.nodeName||"TEXTAREA"==e.target.nodeName||e.target.isContentEditable||(e.which||e.keyCode)==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){(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)||!h.getClosest(t.target,"BUTTON")&&a.contains(t.target)&&fe.forEach(o,function(e){t.target===e||e.contains(t.target)||("MD-MENU"===e.nodeName&&(e=e.children[0]),fe.element(e).triggerHandler("click"))})});e.$on("$destroy",function(){a&&a.removeEventListener("keypress",l)})}}}}function De(e,t,n){this.attachRipple=function(e,t){n.attach(e,t,{})}}function Ie(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),fe.element(c).attr({"aria-owns":n,"aria-haspopup":"true"}),a.$on("$destroy",fe.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=ge)})),(h=fe.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&&fe.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=ge)},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"),fe.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])")).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=fe.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 fe.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=fe.bind(this,function(){return s.warn("mdMenu: The $mdOpenMenu method is deprecated. Please use `$mdMenu.open`."),this.open.apply(this,arguments)})}function He(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&&fe.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=fe.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})}}function Oe(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,e,s,M,T,o,i,r,l,c){var A=C.prefixer(),m=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");fe.extend(d,{alreadyOpen:!1,isRemoved:!1,target:fe.element(d.target),parent:fe.element(d.parent),menuContentEl:fe.element(n[0].querySelector("md-menu-content"))})})(),d.menuContentEl[0]?e.inherit(d.menuContentEl,d.target):c.warn("$mdMenu: Menu elements should always contain a `md-menu-content` element,otherwise interactivity features will not work properly.",n);return d.cleanupResizing=function(){var e=function(t,n){return i.throttle(function(){if(!d.isRemoved){var e=h(t,n);t.css(m.toCss(e))}})}(n,d);return T.addEventListener("resize",e),T.addEventListener("orientationchange",e),function(){T.removeEventListener("resize",e),T.removeEventListener("orientationchange",e)}}(),d.hideBackdrop=function(e,t,n){if(n.nestLevel)return fe.noop;n.disableParentScroll&&!C.getClosest(n.target,"MD-DIALOG")?n.restoreScroll=C.disableScrollAround(n.element,n.parent):n.disableParentScroll=!1;n.hasBackdrop&&(n.backdrop=C.createBackdrop(e,"md-menu-backdrop md-click-catcher"),l.enter(n.backdrop,M[0].body));return function(){n.backdrop&&n.backdrop.remove(),n.disableParentScroll&&n.restoreScroll()}}(a,0,d),function(){return d.parent.append(n),n[0].style.display="",o(function(e){var t=h(n,d);n.removeClass("md-leave"),r(n,{addClass:"md-active",from:m.toCss(t),to:m.toCss({transform:""})}).start().then(e)})}().then(function(e){return d.alreadyOpen=!0,d.cleanupInteraction=function(){if(!d.menuContentEl[0])return fe.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 s.KEY_CODE.ESCAPE:d.mdMenuCtrl.close(!1,{closeAll:!0}),t=!0;break;case s.KEY_CODE.TAB:d.mdMenuCtrl.close(!1,{closeAll:!0}),t=!1;break;case s.KEY_CODE.UP_ARROW:u(e,d.menuContentEl,d,-1)||d.nestLevel||d.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case s.KEY_CODE.DOWN_ARROW:u(e,d.menuContentEl,d,1)||d.nestLevel||d.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case s.KEY_CODE.LEFT_ARROW:d.nestLevel?d.mdMenuCtrl.close():d.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case s.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",t),function(){d.backdrop.off("click",t)}):fe.noop,n.addClass("md-clickable"),e});function t(e){e.preventDefault(),e.stopPropagation(),a.$apply(function(){d.mdMenuCtrl.close(!0,{closeAll:!0})})}},onRemove:function(e,t,n){return n.cleanupInteraction(),n.cleanupBackdrop(),n.cleanupResizing(),n.hideBackdrop(),t.removeClass("md-clickable"),!0===n.$destroy?o():function(){return r(t,{addClass:"md-leave"}).start()}().then(o);function o(){t.removeClass("md-active"),function(e,t){t.preserveElement?a(e).style.display="none":a(e).parentNode===a(t.parent)&&a(t.parent).removeChild(a(e))}(t,n),n.alreadyOpen=!1}},hasBackdrop:!0,disableParentScroll:!0,skipCompile:!0,preserveScope:!0,multiple:!0,themable:!0};function u(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=p(a[d].querySelector(".md-button")))break}return i}function p(e){if(e&&-1!=e.getAttribute("tabindex"))return e.focus(),M[0].activeElement==e}function h(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=C.isRtl(e);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?ge:C.supplant("scale({0},{1})",[$,y]),transformOrigin:f}}}function a(e){return e instanceof fe.element&&(e=e[0]),e}}function Pe(n,i){return{restrict:"E",require:"mdMenuBar",controller:"MenuBarController",compile:function(e,t){return t.ariaRole||e[0].setAttribute("role","menubar"),fe.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"));fe.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()}}}}function Le(e,t,n){this.$element=t,this.$attrs=n,this.$scope=e}function Re(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=fe.element('<md-button type="button"></md-button>'),s='<md-icon md-svg-src="'+m.mdChecked+'"></md-icon>';d.html(a),d.attr("tabindex","0"),fe.isDefined(e.mdPreventMenuClose)&&d.attr("md-prevent-menu-close",e.mdPreventMenuClose),o.html(""),o.append(fe.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),fe.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 fe.element&&(n=n[0]),n.hasAttribute(e)||n.setAttribute(e,t)}}}}function Fe(i,r){return{restrict:"E",transclude:!0,controller:Be,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",fe.noop)}}}function Be(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 Ue(c,e,m,u){return{restrict:"E",require:["mdNavItem","^mdNavBar"],controller:je,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!==ge&&null!==i)n='ng-click="ctrl.mdNavClick()"';else if(r!==ge&&null!==r)n='ng-href="{{ctrl.mdNavHref}}"';else{if(a===ge||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=fe.element(o[0].querySelector("._md-nav-button")),d.name||(d.name=fe.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 je(e){this._$element=e,this.mdNavClick,this.mdNavHref,this.mdNavSref,this.srefOpts,this.name,this.navItemAriaLabel,this._selected=!1,this._focused=!1}function qe($,y,d,C,p,e){var M=$.requestAnimationFrame||$.webkitRequestAnimationFrame||fe.noop,h=$.cancelAnimationFrame||$.webkitCancelAnimationFrame||$.webkitCancelRequestAnimationFrame||fe.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"}),fe.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=fe.element(t.querySelector("svg")),v=fe.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:fe.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}}function ze(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,t){var o;m(n);var i=t.hasOwnProperty("disabled"),r=u.dom.animator.toCss,a=fe.element(n[0].querySelector(".md-bar1")),d=fe.element(n[0].querySelector(".md-bar2")),s=fe.element(n[0].querySelector(".md-container"));function l(){var e=(t.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});fe.element(e).css(o)}}n.attr("md-mode",l()).toggleClass(b,i),function(){if(fe.isUndefined(t.mdMode)){var e=fe.isDefined(t.value)?p:h;n.attr("md-mode",e),t.mdMode=e}}(),t.$observe("value",function(e){var t=v(e);n.attr("aria-valuenow",t),l()!=g&&c(d,t)}),t.$observe("mdBufferValue",function(e){c(a,v(e))}),t.$observe("disabled",function(e){i=!0===e||!1===e?!!e:fe.isDefined(e),n.toggleClass(b,i),s.toggleClass(o,!i)}),t.$observe("mdMode",function(e){switch(o&&s.removeClass(o),e){case g:case f:case p:case h:s.addClass(o="md-mode-"+e);break;default:s.addClass(o="md-mode-"+h)}})}function v(e){return Math.max(0,Math.min(e||0,100))}}function We(d,s,l,c){return e.prototype={init:function(e){this._ngModelCtrl=e,this._ngModelCtrl.$render=fe.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)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=fe.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!fe.element(e).attr("disabled")})||n.first();fe.element(i).triggerHandler("click")}}}function Ve(s,l,c){var m="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;c(n),function(e){e.attr({id:o.id||"radio_"+l.nextUid(),role:"radio","aria-checked":"false"}),s.expectWithText(e,"aria-label")}(n),o.ngValue?l.nextTick(e,!1):e();function e(){if(!i)throw"RadioButton: No RadioGroupController could be found.";i.add(d),o.$observe("value",d),n.on("click",a).on("$destroy",function(){i.remove(d)})}function a(e){n[0].hasAttribute("disabled")||i.isDisabled()||t.$apply(function(){i.setViewValue(o.value,e&&e.type)})}function d(){var e=i.getViewValue()==o.value;e!==r&&("md-radio-group"!==n[0].parentNode.nodeName.toLowerCase()&&n.parent().toggleClass(m,e),e&&i.setActiveDescendant(n.attr("id")),r=e,n.attr("aria-checked",e).toggleClass(m,e))}}}}function Ye(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")})}})})}}}]}function Ke(o,i,r,a){var d="SideNav '{0}' is not available! Did you use md-component-id='{0}'?",s={find:function(e,t){var n=o.get(e);return n||t?n:(a.error(i.supplant(d,[e||""])),ge)},waitFor:l};return function(e,t){if(fe.isUndefined(e))return s;var n=!0===t,o=s.find(e,n);return!o&&n?s.waitFor(e):!o&&fe.isUndefined(t)?function(e,t){function n(){return!1}function o(){return r.when(i.supplant(d,[t||""]))}return fe.extend({isLockedOpen:n,isOpen:n,toggle:o,open:o,close:o,onClose:fe.noop,then:function(e){return l(t).then(e||fe.noop)}},e)}(s,e):o};function l(e){return o.when(e).catch(a.error)}}function Ge(o,b,v,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(i,r,e,t){var a,d,s,l,c,m=null,u=null,p=T.when(!0),n=C(e.mdIsLockedOpen),h=fe.element(w);function f(e){return e.keyCode===v.KEY_CODE.ESCAPE?g(e):T.when(!0)}function g(e){return e.preventDefault(),t.close()}e.mdDisableScrollTarget&&((m=A[0].querySelector(e.mdDisableScrollTarget))?m=fe.element(m):M.warn(b.supplant('mdSidenav: couldn\'t find element matching selector "{selector}". Falling back to parent.',{selector:e.mdDisableScrollTarget}))),m=m||r.parent(),e.hasOwnProperty("mdDisableBackdrop")||(d=b.createBackdrop(i,"md-sidenav-backdrop md-opaque ng-enter")),e.hasOwnProperty("mdDisableCloseEvents")&&(s=!0),r.addClass("_md"),E(r),d&&E.inherit(d,r),r.on("$destroy",function(){d&&d.remove(),t.destroy()}),i.$on("$destroy",function(){d&&d.remove()}),i.$watch(function(){return n(i.$parent,{$media:function(e){return M.warn("$media is deprecated for is-locked-open. Use $mdMedia instead."),o(e)},$mdMedia:o})},function(e,t){(i.isLockedOpen=e)===t?r.toggleClass("md-locked-open",!!e):y[e?"addClass":"removeClass"](r,"md-locked-open");d&&d.toggleClass("md-locked-open",!!e)}),i.$watch("isOpen",function(e){var t,n=b.findFocusTarget(r)||b.findFocusTarget(r,"[md-sidenav-focus]")||r,o=r.parent();s||(o[e?"on":"off"]("keydown",f),d&&d[e?"on":"off"]("click",g));t=function(e,t){var n=r[0],o=e[0].scrollTop;if(t&&o){c={top:n.style.top,bottom:n.style.bottom,height:n.style.height};var i={top:o+"px",bottom:"auto",height:e[0].clientHeight+"px"};r.css(i),d.css(i)}if(!t&&c)return function(){n.style.top=c.top,n.style.bottom=c.bottom,n.style.height=c.height,d[0].style.top=null,d[0].style.bottom=null,d[0].style.height=null,c=null}}(o,e),e&&(u=A[0].activeElement,l=$.getLastInteractionType());return function(e){e&&!a?(a=m.css("overflow"),m.css("overflow","hidden")):fe.isDefined(a)&&(m.css("overflow",a),a=ge)}(e),p=T.all([e&&d?y.enter(d,o):d?y.leave(d):T.when(!0),y[e?"removeClass":"addClass"](r,"md-closed")]).then(function(){i.isOpen&&(_(function(){h.triggerHandler("resize")}),n&&n.focus()),t&&t()})}),t.$toggleOpen=function(e){return i.isOpen===e?T.when(!0):(i.isOpen&&t.onCloseCb&&t.onCloseCb(),T(function(t){i.isOpen=e,b.nextTick(function(){p.then(function(e){!i.isOpen&&u&&"keyboard"===l&&(u.focus(),u=null),t(e)})})}))}}}function Xe(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))})}function Qe(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");var n=(e.prevScrollTop||0)<t;e.prevScrollTop=t;if(0===t)return void d(null);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)}),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":ge;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===ge?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)}}}function Ze(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 fe.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)})}}}function Je(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}})})})}}}}function et(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(t,n,e,o){o[0];var i=o[1]||m.fakeNgModel(),r=(o[2],null);null!=e.disabled?r=function(){return!0}:e.ngDisabled&&(r=p(e.ngDisabled));var a,d=fe.element(n[0].querySelector(".md-thumb-container")),s=fe.element(n[0].querySelector(".md-container")),l=fe.element(n[0].querySelector(".md-label"));h(function(){n.removeClass("md-dragging")}),c(t,n,e,o),r&&t.$watch(r,function(e){n.attr("tabindex",e?-1:0)}),e.$observe("mdInvert",function(e){var t=m.parseAttributeBoolean(e);t?n.prepend(l):n.prepend(s),n.toggleClass("md-inverted",t)}),f.register(s,"drag"),s.on("$md.dragstart",function(e){if(r&&r(t))return;e.stopPropagation(),n.addClass("md-dragging"),a={width:d.prop("offsetWidth")}}).on("$md.drag",function(e){if(!a)return;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){if(!a)return;e.stopPropagation(),n.removeClass("md-dragging"),d.css(u.CSS.TRANSFORM,""),(i.$viewValue?a.translate<.5:.5<a.translate)&&function(e){t.$apply(function(){i.$setViewValue(e),i.$render()})}(!i.$viewValue);a=null,t.skipToggle=!0,g(function(){t.skipToggle=!1},1)})}}}}function tt(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})})})}}}}function nt(l,c,t,n,i,m,s,r,o,e,a,u,d){var p=this,h=!1,f=[],g=!1,b=!1;function v(t,e){var n=r.$normalize("md-"+t);function o(e){p[t]="false"!==e}e&&O(t,e),r.hasOwnProperty(n)&&o(r[n]),r.$observe(n,o)}function E(){g=!0,fe.element(t).off("resize",x)}function $(){var e=D();fe.element(e.wrapper).toggleClass("md-stretch-tabs",function(){switch(p.stretchTabs){case"always":return!0;case"never":return!1;default:return!p.shouldPaginate&&t.matchMedia("(max-width: 600px)").matches}}()),z()}function y(){p.shouldCenterTabs=I()}function C(t,e){if(t!==e){var n=D();fe.forEach(n.tabs,function(e){e.style.maxWidth=t+"px"}),fe.forEach(n.dummies,function(e){e.style.maxWidth=t+"px"}),m.nextTick(p.updateInkBarStyles)}}function M(e,t){e!==t&&(p.maxTabWidth=R(),p.shouldCenterTabs=I(),m.nextTick(function(){p.maxTabWidth=R(),U(p.selectedIndex)}))}function T(e){c[e?"removeClass":"addClass"]("md-no-tab-content")}function A(e){var t=(p.shouldCenterTabs||V()?"":"-")+e+"px";t=t.replace("--",""),fe.element(D().paging).css(n.CSS.TRANSFORM,"translate("+t+", 0)"),l.$broadcast("$mdTabsPaginationChanged")}function w(e,t){e!==t&&D().tabs[e]&&(U(),B())}function _(e,t){e!==t&&(p.selectedIndex=H(e),p.lastSelectedIndex=t,p.updateInkBarStyles(),q(),U(e),l.$broadcast("$mdTabsChanged"),p.tabs[t]&&p.tabs[t].scope.deselect(),p.tabs[e]&&p.tabs[e].scope.select())}function k(e,t){h||(p.focusIndex=p.selectedIndex=e),t&&p.noSelectClick||m.nextTick(function(){p.tabs[e].element.triggerHandler("click")},!1)}function x(){p.lastSelectedIndex=p.selectedIndex,p.offsetLeft=W(p.offsetLeft),m.nextTick(function(){p.updateInkBarStyles(),P()})}function N(e){fe.element(D().inkBar).toggleClass("ng-hide",e)}function S(e){c.toggleClass("md-dynamic-height",e)}function D(){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 I(){return p.centerTabs&&!p.shouldPaginate}function H(e){if(-1===e)return-1;var t,n,o=Math.max(p.tabs.length-e,e);for(t=0;t<=o;t++){if((n=p.tabs[e+t])&&!0!==n.scope.disabled)return n.getIndex();if((n=p.tabs[e-t])&&!0!==n.scope.disabled)return n.getIndex()}return e}function O(e,n,o){Object.defineProperty(p,e,{get:function(){return o},set:function(e){var t=o;o=e,n&&n(e,t)}})}function P(){p.maxTabWidth=R(),p.shouldPaginate=function(){var e;if(p.noPagination||!b)return!1;var t=c.prop("clientWidth");return fe.forEach(D().tabs,function(e){t-=e.offsetWidth}),e=t<0,m.msie&&(D().paging.style.width=e?"999999px":ge),e}()}function L(e){var t=0;return fe.forEach(e,function(e){t+=Math.max(e.offsetWidth,e.getBoundingClientRect().width)}),Math.ceil(t)}function R(){var e=D().canvas.clientWidth;return Math.max(0,Math.min(e-1,264))}function F(e,t){var n,o=t?"focusIndex":"selectedIndex",i=p[o];for(n=i+e;p.tabs[n]&&p.tabs[n].scope.disabled;n+=e);n=(i+e+p.tabs.length)%p.tabs.length,p.tabs[n]&&(p[o]=n)}function B(){p.styleTabItemFocus="keyboard"===a.getLastInteractionType();var e=D().tabs[p.focusIndex];e&&e.focus()}function U(e){var t=D();if(fe.isNumber(e)||(e=p.focusIndex),t.tabs[e]&&!p.shouldCenterTabs){var n=t.tabs[e],o=n.offsetLeft,i=n.offsetWidth+o;if(0!==e)if(V()){var r=L(Array.prototype.slice.call(t.tabs,0,e)),a=L(Array.prototype.slice.call(t.tabs,0,e+1));p.offsetLeft=Math.min(p.offsetLeft,W(r)),p.offsetLeft=Math.max(p.offsetLeft,W(a-t.canvas.clientWidth))}else p.offsetLeft=Math.max(p.offsetLeft,W(i-t.canvas.clientWidth+32)),p.offsetLeft=Math.min(p.offsetLeft,W(o));else p.offsetLeft=0}}function j(){p.selectedIndex=H(p.selectedIndex),p.focusIndex=H(p.focusIndex)}function q(){if(!p.dynamicHeight)return c.css("height","");if(!p.tabs.length)return f.push(q);var e=D(),t=e.contents[p.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")!==ge&&++r),h=!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","")}),h=!1})}}function z(e,t){if(!p.noInkBar){var n=D();if(n.tabs[p.selectedIndex])if(p.tabs.length)if(c.prop("offsetParent")){var o=p.selectedIndex,i=n.paging.offsetWidth,r=n.tabs[o],a=r.offsetLeft,d=i-a-r.offsetWidth;if(p.shouldCenterTabs){var s=L(n.tabs);s<i&&e!==i&&t!==s&&u(z,0,!0,i,s)}!function(){var e=D(),t=p.selectedIndex,n=p.lastSelectedIndex,o=fe.element(e.inkBar);if(!fe.isNumber(n))return;o.toggleClass("md-left",t<n).toggleClass("md-right",n<t)}(),fe.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,x())},!1)}))})();else f.push(p.updateInkBarStyles);else fe.element(n.inkBar).css({left:"auto",right:"auto"})}}function W(e){var t=D();if(!t.tabs.length||!p.shouldPaginate)return 0;var n=t.tabs[t.tabs.length-1],o=n.offsetLeft+n.offsetWidth;return e=V()?(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 V(){return m.isRtl(r)}p.$onInit=function(){(function(t,e){var n=r.$normalize("md-"+t);e&&O(t,e);r.$observe(n,function(e){p[t]=e})})("stretchTabs",$),O("focusIndex",w,p.selectedIndex||0),O("offsetLeft",A,0),O("hasContent",T,!1),O("maxTabWidth",C,R()),O("shouldPaginate",M,!1),v("noInkBar",N),v("dynamicHeight",S),v("noPagination"),v("swipeContent"),v("noDisconnect"),v("autoselect"),v("noSelectClick"),v("centerTabs",y),v("enableDisconnect"),p.scope=l,p.parent=l.$parent,p.tabs=[],p.lastSelectedIndex=null,p.hasFocus=!1,p.styleTabItemFocus=!1,p.shouldCenterTabs=I(),p.tabContentPrefix="tab-content-",p.navigationHint="Use the left and right arrow keys to navigate between tabs",p.selectedIndex=p.selectedIndex||0,function(){var e=r.$mdTabsTemplate,t=fe.element(c[0].querySelector("md-tab-data"));t.html(e),o(t.contents())(p.parent),delete r.$mdTabsTemplate}(),l.$watch("$mdTabsCtrl.selectedIndex",_),fe.element(t).on("resize",x),l.$on("$destroy",E),e(c),m.nextTick(function(){q(),U(),z(),p.tabs[p.selectedIndex]&&p.tabs[p.selectedIndex].scope.select(),b=!0,P()})},p.updatePagination=m.debounce(P,100),p.redirectFocus=B,p.attachRipple=function(e,t){var n=D(),o={colorElement:fe.element(n.inkBar)};i.attach(e,t,o)},p.insertTab=function(e,t){var n=b,o={getIndex:function(){return p.tabs.indexOf(i)},isActive:function(){return this.getIndex()===p.selectedIndex},isLeft:function(){return this.getIndex()<p.selectedIndex},isRight:function(){return this.getIndex()>p.selectedIndex},shouldRender:function(){return!p.noDisconnect||this.isActive()},hasFocus:function(){return p.styleTabItemFocus&&p.hasFocus&&this.getIndex()===p.focusIndex},id:m.nextUid(),hasContent:!(!e.template||!e.template.trim())},i=fe.extend(o,e);fe.isDefined(t)?p.tabs.splice(t,0,i):p.tabs.push(i);return function(){f.forEach(function(e){m.nextTick(e)}),f=[]}(),function(){var e,t=!1;for(e=0;e<p.tabs.length;e++)if(p.tabs[e].hasContent){t=!0;break}p.hasContent=t}(),m.nextTick(function(){P(),function(e){if(e.hasContent){var t=c[0].querySelectorAll('[md-tab-id="'+e.id+'"]');fe.element(t).attr("aria-controls",p.tabContentPrefix+e.id)}}(i),n&&p.autoselect&&m.nextTick(function(){m.nextTick(function(){k(p.tabs.indexOf(i))})})}),i},p.removeTab=function(e){if(g)return;var t=p.selectedIndex,n=p.tabs.splice(e.getIndex(),1)[0];j(),p.selectedIndex===t&&(n.scope.deselect(),p.tabs[p.selectedIndex]&&p.tabs[p.selectedIndex].scope.select());m.nextTick(function(){P(),p.offsetLeft=W(p.offsetLeft)})},p.select=k,p.scroll=function(e){if(!p.shouldPaginate)return;e.preventDefault(),e.deltaY?p.offsetLeft=W(p.offsetLeft+e.deltaY):e.deltaX&&(p.offsetLeft=W(p.offsetLeft+e.deltaX))},p.nextPage=function(){if(!p.canPageForward())return;var e=d.increasePageOffset(D(),p.offsetLeft);p.offsetLeft=W(e)},p.previousPage=function(){if(!p.canPageBack())return;var e=d.decreasePageOffset(D(),p.offsetLeft);p.offsetLeft=W(e)},p.keydown=function(e){switch(e.keyCode){case n.KEY_CODE.LEFT_ARROW:e.preventDefault(),F(-1,!0);break;case n.KEY_CODE.RIGHT_ARROW:e.preventDefault(),F(1,!0);break;case n.KEY_CODE.SPACE:case n.KEY_CODE.ENTER:e.preventDefault(),h||k(p.focusIndex);break;case n.KEY_CODE.TAB:p.focusIndex!==p.selectedIndex&&(p.focusIndex=p.selectedIndex)}},p.canPageForward=function(){var e=D(),t=e.tabs[e.tabs.length-1];if(V())return p.offsetLeft<e.paging.offsetWidth-e.canvas.offsetWidth;return t&&t.offsetLeft+t.offsetWidth>e.canvas.clientWidth+p.offsetLeft},p.canPageBack=function(){return 0<p.offsetLeft},p.refreshIndex=j,p.incrementIndex=F,p.getTabElementIndex=function(e){var t=c[0].getElementsByTagName("md-tab");return Array.prototype.indexOf.call(t,e[0])},p.updateInkBarStyles=m.debounce(z,100),p.updateTabOrder=m.debounce(function(){var e=p.tabs[p.selectedIndex],t=p.tabs[p.focusIndex];p.tabs=p.tabs.sort(function(e,t){return e.index-t.index}),p.selectedIndex=p.tabs.indexOf(e),p.focusIndex=p.tabs.indexOf(t)},100),p.getFocusedTabId=function(){var e=p.tabs[p.focusIndex];return e&&e.id?"tab-item-"+e.id:null},1===fe.version.major&&fe.version.minor<=4&&this.$onInit()}function ot(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}}function it(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()})}}}}function rt(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"}}function at(n){return{restrict:"E",link:function(e,t){t.addClass("_md"),e.$on("$destroy",function(){n.destroy()})}}}function dt(e){n.$inject=["$mdToast","$scope","$log"],o.$inject=["$animate","$mdToast","$mdUtil","$mdMedia","$document"];var m,u="ok";function t(e){m=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 m},function(){e.content=m}),this.resolve=function(){t.hide(u)}}}function o(o,d,s,t,l){var c="$md.swipeleft $md.swiperight $md.swipeup $md.swipedown";return{onShow:function(e,i,r){m=r.textContent||r.content;var a=!t("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=function(e){return t("gt-xs")?"md-toast-open-"+(-1<e.indexOf("top")?"top":"bottom"):"md-toast-open-bottom"}(r.position),i.addClass(r.toastClass),r.parent.addClass(r.openClass),s.hasComputedStyle(r.parent,"position","static")&&r.parent.css("position","relative");(function(t){l.on("keydown",function(e){"Escape"===e.key&&d.hide(!1),t&&e.key===t&&e.ctrlKey&&d.hide(u)})})(e.toast&&e.toast.actionKey?e.toast.actionKey:ge),i.on(c,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");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&&l.off("keydown");t.off(c,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=fe.element('<div class="md-toast-content">');i.append(fe.element(n.children[o].childNodes)),n.children[o].appendChild(i[0])}return n.innerHTML}return e||""}}}}function st(f,g,b,e,v){var E=fe.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),fe.isDefined(h.mdScrollShrink)&&function(){var n,o,i=fe.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()}):fe.noop}function e(){var e=-(n=p.prop("offsetHeight"))*d+"px";o.css({"margin-top":e,"margin-bottom":e}),t()}u.$on("$destroy",i)}()}}}function lt(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(a,o,d){var i,e,r,s,l,c="md-tooltip-"+M.nextUid(),m=M.getParentWithPointerEvents(o),u=$.throttle(f),p=!1,h=null;function t(){a.mdZIndex=a.mdZIndex||100,a.mdDelay=a.mdDelay||0,k[a.mdDirection]||(a.mdDirection="bottom")}function n(e){var t=e||C(o.text().trim())(a.$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(),s&&s.panelEl&&s.panelEl.removeClass(i),i="md-origin-"+a.mdDirection,e=k[a.mdDirection],r=T.newPanelPosition().relativeTo(m).addPanelPosition(e.x,e.y),s&&s.panelEl&&(s.panelEl.addClass(i),s.updatePosition(r))}function g(e){g.queued&&g.value===!!e||!g.queued&&a.mdVisible===!!e||(g.value=!!e,g.queued||(e?(g.queued=!0,l=v(function(){a.mdVisible=g.value,g.queued=!1,l=null,a.visibleWatcher||b(a.mdVisible)},a.mdDelay)):M.nextTick(function(){a.mdVisible=!1,a.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(!s){var e=fe.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:a.mdZIndex,focusOnOpen:!1,onDomAdded:function(){s.panelEl.addClass(i)}};s=T.create(n)}s.open().then(function(){s.panelEl.attr("role","tooltip")})}():s&&s.close()}t(),n(),o.detach(),f(),function(){if(m[0]&&"MutationObserver"in E){var e=new MutationObserver(function(e){!function(e){return e.some(function(e){return"disabled"===e.attributeName&&m[0].disabled}),!1}(e)||M.nextTick(function(){g(!1)})});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:a.mdVisible||(m.on(_,i),g(!0),"touchstart"===e.type&&m.one("touchend",function(){M.nextTick(function(){y.one("touchend",i)},!1)}))}function i(){((a.hasOwnProperty("mdAutohide")?a.mdAutohide:d.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}h=!1,A.register("scroll",t,!0),A.register("blur",n),A.register("resize",u),a.$on("$destroy",function(){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()}),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||a.visibleWatcher||(a.visibleWatcher=a.$watch("mdVisible",b))})});e.observe(o[0],{attributes:!0}),d.hasOwnProperty("mdVisible")&&(a.visibleWatcher=a.$watch("mdVisible",b))}else a.visibleWatcher=a.$watch("mdVisible",b);function t(){a.$destroy()}a.$watch("mdDirection",f),o.one("$destroy",t),m.one("$destroy",t),a.$on("$destroy",function(){g(!1),s&&s.destroy(),e&&e.disconnect(),o.remove()}),-1<o.text().indexOf(C.startSymbol())&&a.$watch(function(){return o.text().trim()},n)}()}}}function ct(e){e.addClass("md-truncate")}function mt(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})}}}fe.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"]),e.$inject=["$log","$injector"],t.$inject=["$provide","$mdThemingProvider"],n.$inject=["$delegate"],o.$inject=["$delegate"],fe.module("material.core",["ngAnimate","material.core.animate","material.core.layout","material.core.interaction","material.core.gestures","material.core.theming"]).config(t).run(e),i.$inject=["$parse"],fe.module("material.core").directive("mdAutofocus",i).directive("mdAutoFocus",i).directive("mdSidenavFocus",i),fe.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)"}}}),fe.module("material.core").factory("$mdConstant",function(){var o=document.createElement("div"),i=function(e){var t,n,o=/^(Moz|webkit|ms)(?=[A-Z])/;for(t in e.style)if(n=o.exec(t))return n[0]}(o),e=/webkit/i.test(i),r=/([:\-_]+(.))/g;function t(e){var t=function(e){return e.replace(r,function(e,t,n,o){return o?n.toUpperCase():n})}(i+"-"+e),n=t.charAt(0).toLowerCase()+t.substring(1);return a(o,e)?e:a(o,t)?t:a(o,n)?n:e}function a(e,t){return fe.isDefined(e.style[t])}var n={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=n.KEY_CODE;return-1!=[t.SPACE,t.ENTER,t.UP_ARROW,t.DOWN_ARROW].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 n}),fe.module("material.core").config(["$provide",function(e){e.decorator("$mdUtil",["$delegate",function(e){return e.iterator=r,e}])}]),a.$inject=["$mdConstant","$rootScope","$window"],fe.module("material.core").factory("$mdMedia",a),fe.module("material.core").config(["$provide",function(e){e.decorator("$mdUtil",["$delegate",function(e){return e.prefixer=d,e}])}]),function(){t.$inject=["$document","$timeout","$compile","$rootScope","$$mdAnimate","$interpolate","$log","$rootElement","$window","$$rAF"];var b,v,E=0;if(R.navigator){var e=R.navigator.userAgent||R.navigator.vendor||R.opera;b=e.match(/ipad|iphone|ipod/i),v=e.match(/android/i)}function t(s,d,n,a,e,t,r,o,l,m){var i=t.startSymbol(),c=t.endSymbol(),u="{{"===i&&"}}"===c;document.contains||(document.contains=function(e){return document.body.contains(e)});function p(e,t,n){var o=!1;if(e&&e.length){var i=l.getComputedStyle(e[0]);o=fe.isDefined(i[t])&&(!n||i[t]==n)}return o}function h(e){return e?function(e){return-1<String(e).indexOf("px")}(e)||function(e){return-1<String(e).indexOf("%")}(e)?e:e+"px":"0"}var f={dom:{},isIos:b,isAndroid:v,now:R.performance&&R.performance.now?fe.bind(R.performance,R.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]}},isRtl:function(e){switch(fe.isDefined(e)&&e.hasOwnProperty("dir")&&e.dir){case"ltr":return!1;case"rtl":return!0}return"rtl"===s[0].dir||"rtl"===s[0].body.dir},bidi:function(e,t,n,o){var i=!this.isRtl();if(0==arguments.length)return i?"ltr":"rtl";var r=fe.element(e);i&&fe.isDefined(n)?r.css(t,h(n)):!i&&fe.isDefined(o)&&r.css(t,h(o))},bidiProperty:function(e,t,n,o){var i=!this.isRtl(),r=fe.element(e);i&&fe.isDefined(t)?(r.css(t,h(o)),r.css(n,"")):!i&&fe.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=(n=i(e,this.prefixer("md-auto-focus",!0)))||i(e,o)),n;function i(e,t){var n,o=e[0].querySelectorAll(t);return o&&o.length&&o.length&&fe.forEach(o,function(e){(e=fe.element(e)).hasClass("md-autofocus")&&(n=e)}),n}},disableScrollAround:function(e,t,n){if(n=n||{},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,o=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&&fe.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,t){var n,o=fe.element(e||d);t.disableScrollMask?n=o:(n=fe.element('<div class="md-scroll-mask">  <div class="md-scroll-mask-bar"></div></div>'),o.append(n));function i(e){e.preventDefault()}return n.on("wheel touchmove",i),function(){n.off("wheel touchmove",i),!t.disableScrollMask&&n[0].parentNode&&n[0].parentNode.removeChild(n[0])}}(t,n);return f.disableScrollAround._restoreScroll=function(){--f.disableScrollAround._count<=0&&(delete f.disableScrollAround._viewPortTop,o(),i(),delete f.disableScrollAround._restoreScroll)}},enableScrolling:function(){var e=this.disableScrollAround._restoreScroll;e&&e()},floatingScrollbars:function(){if(this.floatingScrollbars.cached===ge){var e=fe.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,R,{},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:fe.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:fe.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=ge,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""+E++},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(fe.isString(t)){var o=t.toUpperCase();t=function(e){return e.nodeName.toUpperCase()===o}}if(e instanceof fe.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(R.Node&&R.Node.prototype&&Node.prototype.contains?fe.bind(t,t.contains):fe.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])),fe.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||{},fe.forEach(o.$$isolateBindings,function(e,t){if(e.optional&&fe.isUndefined(o[t])){var n=fe.isDefined(i[e.attrName]);o[t]=fe.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&&fe.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=fe.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?fe.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:R.document.documentMode};return f.dom.animator=e(f),f;function g(e){return e[0]||e}}fe.module("material.core").factory("$mdUtil",t),fe.element.prototype.focus=fe.element.prototype.focus||function(){return this.length&&this[0].focus(),this},fe.element.prototype.blur=fe.element.prototype.blur||function(){return this.length&&this[0].blur(),this}}(),fe.module("material.core").factory("$$mdAnimate",["$q","$timeout","$mdConstant","$animateCss",function(t,n,o,i){return function(e){return function(n,e,s,l,r){var c;return 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 e(function(t,e){var n;"0s"!=(n=(n=(a=a||{}).cachedTransitionStyles)||R.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){return fe.bind(null,n.supplant,"translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )")(c.calculateTransformValues(e,t))},calculateSlideToOrigin:function(e,t){return fe.bind(null,n.supplant,"translate3d( {centerX}px, {centerY}px, 0 )")(c.calculateTransformValues(e,t))},toCss:function(e){var o={};return fe.forEach(e,function(e,t){if(!fe.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(0,l.CSS.TRANSITION,e);break;case"transform":n(0,l.CSS.TRANSFORM,e);break;case"transformOrigin":n(0,l.CSS.TRANSFORM_ORIGIN,e);break;case"font-size":o["font-size"]=e}}),o;function n(e,t,n){fe.forEach(t.split(" "),function(e){o[e]=n})}},toTransformCss:function(t,e,n){var o={};return fe.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||{},fe.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=fe.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}}}}(e,t,n,o,i)}}]),4<=fe.version.minor?fe.module("material.core.animate",[]):(w=fe.forEach,_=fe.isDefined(document.documentElement.style.WebkitAppearance),k=_?"-webkit-":"",x=(_?"webkitTransitionEnd ":"")+"transitionend",N=(_?"webkitAnimationEnd ":"")+"animationend",s=["$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:fe.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&&(w(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)}w(t,function(e){e.done(r)})},e}],fe.module("material.core.animate",[]).factory("$$forceReflow",["$document",function(e){return function(){return e[0].body.clientWidth+1}}]).factory("$$AnimateRunner",s).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 w(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=A(k+"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([k+"transition",s.transitionStyle]),s.keyframeStyle&&l.push([k+"animation",s.keyframeStyle]),s.delay&&l.push([k+"transition-delay",s.delay+"s"]),s.duration&&l.push([k+"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=new a;return function(e){E&&E(),$.push(e),E=r(function(){E=null;for(var e=f(),t=0;t<$.length;t++)$[t](e);$.length=0})}(function(){if(T(o,!1),!m)return d();w(l,function(e){var t=e[0],n=e[1];c.style[A(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 _?"Webkit"+e.charAt(0).toUpperCase()+e.substr(1):e}}(o);if(0===e.duration)return d();var t=[];s.easing&&(e.transitionDuration&&t.push([k+"transition-timing-function",s.easing]),e.animationDuration&&t.push([k+"animation-timing-function",s.easing])),s.delay&&e.animationDelay&&t.push([k+"animation-delay",s.delay+"s"]),s.duration&&e.animationDuration&&t.push([k+"animation-duration",s.duration+"s"]),w(t,function(e){var t=e[0],n=e[1];c.style[A(t)]=n,l.push(e)});var i=1e3*e.delay,r=e.duration,n=1e3*r,a=Date.now();u=[],e.transitionDuration&&u.push(x),e.animationDuration&&u.push(N),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;function d(){if(!i)return i=!0,u&&p&&o.off(u,p),b(o,s),function(e,t){y(e,t),C(e,t)}(o,s),w(l,function(e){c.style[A(e[0])]=""}),e.complete(!0),e}}}}}])),S.$inject=["$$rAF","$log","$window","$interpolate"],fe.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 S.apply(i,arguments)}]}}),fe.module("material.core").provider("$mdCompiler",D),D.$inject=["$compileProvider"],function(){i.$inject=["$$MdGestureHandler","$$rAF","$timeout","$mdUtil"];var r,a,s={},l=6,c=!(n.$inject=["$mdGesture","$$MdGestureHandler","$mdUtil"]),d=!1,m=null,u=!1;function e(){}function i(o,e,n,t){var i=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(fe.isDefined(e.style[i]))return i}}(),r=void 0!==R.jQuery&&fe.element===R.jQuery,a={handler:function(e,t){var n=new o(e);return fe.extend(n,t),s[e]=n,a},register:function(e,t,n){var o=s[t.replace(/^\$md./,"")];if(o)return o.registerElement(e,n);throw new Error("Failed to register element with handler "+t+". Available handlers: "+Object.keys(s).join(", "))},isAndroid:t.isAndroid,isIos:t.isIos,isHijackingClicks:(t.isIos||t.isAndroid)&&!r&&!c};function d(n){return function(e,t){t.distance<this.state.options.maxDistance&&this.dispatchEvent(e,n,t)}}return a.isHijackingClicks&&(a.handler("click",{options:{maxDistance:l},onEnd:d("click")}),a.handler("focus",{options:{maxDistance:l},onEnd:function(e,t){t.distance<this.state.options.maxDistance&&v(e.target)&&(this.dispatchEvent(e,"focus",t),e.target.focus())}}),a.handler("mouseup",{options:{maxDistance:l},onEnd:d("mouseup")}),a.handler("mousedown",{onStart:function(e){this.dispatchEvent(e,"mousedown")}})),a.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(fe.bind(this,function(){this.dispatchEvent(e,"$md.hold"),this.cancel()}),this.state.options.delay,!1)},onMove:function(e,t){i||"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){i&&(this.oldTouchAction=e[0].style[i],e[0].style[i]=t.horizontal?"pan-y":"pan-x")},onCleanup:function(e){this.oldTouchAction&&(e[0].style[i]=this.oldTouchAction)},onStart:function(e){this.state.registeredParent||this.cancel()},onMove:function(e,t){var n,o;i||"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),g(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragstart",this.state.dragPointer)):o&&this.cancel())},dispatchDragMove:e.throttle(function(e){this.state.isRunning&&(g(e,this.state.dragPointer),this.dispatchEvent(e,"$md.drag",this.state.dragPointer))}),onEnd:function(e,t){this.state.dragPointer&&(g(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,n){if(!d){!u&&e.isHijackingClicks&&(document.addEventListener("click",function(e){var t;t=n.isIos?fe.isDefined(e.webkitForce)&&0===e.webkitForce:0===e.clientX&&0===e.clientY;t||e.$material||e.isIonicTap||f(e)?(m=null,"label"===e.target.tagName.toLowerCase()&&(m={x:e.x,y:e.y})):(e.preventDefault(),e.stopPropagation(),m=null)},!0),document.addEventListener("mouseup",t,!0),document.addEventListener("mousedown",t,!0),document.addEventListener("focus",t,!0),u=!0);fe.element(document).on("mousedown touchstart pointerdown",function(e){if(r)return;var t=+Date.now();if(a&&!h(e,a)&&t-a.endTime<1500)return;r=p(e),o("start",e)}).on("mousemove touchmove pointermove",function(e){if(!r||!h(e,r))return;g(e,r),o("move",e)}).on("mouseup mouseleave touchend touchcancel pointerup pointercancel",function(e){if(!r||!h(e,r))return;g(e,r),r.endTime=+Date.now(),"pointercancel"!==e.type&&o("end",e);a=r,r=null}).on("$$mdGestureReset",function(){a=r=null})}function t(e){!e.clientX&&!e.clientY||e.$material||e.isIonicTap||f(e)||"mousedown"===e.type&&(v(e.target)||v(document.activeElement))||(e.preventDefault(),e.stopPropagation())}function o(e,t){var n;for(var o in s)(n=s[o])instanceof i&&("start"===e&&n.cancel(),n[e](t,r))}}function p(e){var t=b(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 h(e,t){return e&&t&&e.type.charAt(0)===t.type}function f(e){return m&&m.x===e.x&&m.y===e.y}function g(e,t){var n=b(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 b(e){return(e=e.originalEvent||e).touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e}function v(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))}fe.module("material.core.gestures",[]).provider("$mdGesture",e).factory("$$MdGestureHandler",function(){var e=void 0!==R.jQuery&&fe.element===R.jQuery;return t.prototype={options:{},dispatchEvent:e?function(e,t,n){n=n||r;var o=new fe.element.Event(t);o.$material=!0,o.pointer=n,o.srcEvent=e,fe.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}),fe.element(n.target).trigger(o)}:function(e,t,n){var o;n=n||r,"click"===t||"mouseup"===t||"mousedown"===t?"function"==typeof R.MouseEvent?o=new MouseEvent(t,{bubbles:!0,cancelable:!0,screenX:Number(e.screenX),screenY:Number(e.screenY),clientX:Number(n.x),clientY:Number(n.y),ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey,metaKey:e.metaKey,button:e.button,buttons:e.buttons,relatedTarget:e.relatedTarget||null}):(o=document.createEvent("MouseEvents")).initMouseEvent(t,!0,!0,R,e.detail,n.x,n.y,n.x,n.y,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget||null):"function"==typeof R.CustomEvent?o=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:{}}):(o=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,{});o.$material=!0,o.pointer=n,o.srcEvent=e,n.target.dispatchEvent(o)},onSetup:fe.noop,onCleanup:fe.noop,onStart:fe.noop,onMove:fe.noop,onEnd:fe.noop,onCancel:fe.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:fe.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.state.isRunning=!1,this.onEnd(e,t))},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(){d=!0},skipClickHijack:function(){return c=!0},setMaxClickDistance:function(e){l=parseInt(e)},$get:["$$MdGestureHandler","$$rAF","$timeout","$mdUtil",function(e,t,n,o){return new i(e,t,n,o)}]}}(),I.$inject=["$timeout","$mdUtil","$rootScope"],fe.module("material.core.interaction",[]).service("$mdInteraction",I),I.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)},I.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)},I.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()}},I.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)},I.prototype.getLastInteractionType=function(){return this.lastInteractionType},I.prototype.isUserInvoked=function(e){var t=fe.isNumber(e)?e:15;return this.lastInteractionTime>=this.$mdUtil.now()-t},fe.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(fe.extend({},t,e))},destroy:function(e){return n.destroy(e)}};return a=l.methods||[],t=s(l.optionsFactory,{}),fe.forEach(r,function(e,t){d[t]=e}),fe.forEach(l.presets,function(t,n){var o=s(t.optionsFactory,{}),e=(t.methods||[]).concat(a);function i(e){this._options=fe.extend({},o,e)}if(fe.extend(o,{$type:n}),fe.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&&!fe.isObject(e)&&!fe.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!==ge?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(fe.noop)}),destroy:function(e){var t=e?null:a.shift(),n=fe.element(e).length&&fe.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,s=u.when(!0);return a=function(e){return(e=e||{}).template&&(e.template=n.processTemplate(e.template)),fe.extend({preserveScope:!1,cancelAutoHide:fe.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)}(a),r={options:a,deferred:u.defer(),show:function(){return u(function(t,n){function o(e){r.deferred.reject(e),n(e)}a.onCompiling&&a.onCompiling(a),function(t){return(t.skipCompile?null:f.compile(t))||u(function(e){e({locals:{},link:function(){return t.element}})})}(a).then(function(e){d=function(e,t){fe.extend(e.locals,t);var n=e.link(t.scope);return t.element=n,t.parent=function(e,t){var n,o=t.parent;return((o=fe.isFunction(o)?o(t.scope,e,t):fe.isString(o)?fe.element(m[0].querySelector(o)):fe.element(o))||{}).length?o:(h[0]&&h[0].querySelector&&(n=h[0].querySelector(":not(svg) > body")),"#comment"==(n=n||h[0]).nodeName&&(n=m[0].body),fe.element(n))}(n,t),t.themable&&g(n),n}(e,a),a.cleanupElement=e.cleanup,s=function(n,o,i){var e=o.onShowing||fe.noop,r=o.onComplete||fe.noop;try{e(o.scope,n,o,i)}catch(e){return u.reject(e)}return u(function(e,t){try{u.when(o.onShow(o.scope,n,o,i)).then(function(){r(o.scope,n,o),function(){var e,t=fe.noop;a.hideDelay&&(e=p(c.hide,a.hideDelay),t=function(){p.cancel(e)}),a.cancelAutoHide=function(){t(),a.cancelAutoHide=ge}}(),e(n)},t)}catch(e){t(e.message)}})}(d,a,e.controller).then(t,o)}).catch(o)})},remove:function(e,t,n){return d?((a=fe.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||fe.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)}})}}}}}),v=/(-gt)?-(sm|md|lg|print)/g,E=/\s+/g,$=["grow","initial","auto","none","noshrink","nogrow"],y=["row","column"],C=["","start","center","end","stretch","space-around","space-between"],M=["","start","center","end","stretch"],T={enabled:!0,breakpoints:[]},p=fe.module("material.core.layout",["ng"]),h=/^((?:x|data)[:\-_])/i,f=/([:\-_]+(.))/g,g=["layout","flex","flex-order","flex-offset","layout-align"],b=["show","hide","layout-padding","layout-margin"],fe.forEach(["","xs","gt-xs","sm","gt-sm","md","gt-md","lg","gt-lg","xl","print"],function(n){fe.forEach(g,function(e){var t=n?e+"-"+n:e;p.directive(H(t),function(r){return["$mdUtil","$interpolate","$log",function(e,t,n){return l=e,c=t,m=n,{restrict:"A",compile:function(e,t){var n;return T.enabled&&(B(r,0,e,m),U(r,z(r,t,""),j(0,r,t)),n=o),n||fe.noop}}}];function o(e,t,n){var o=function(n,o){var i;return function(e){var t=U(o,e||"");fe.isDefined(t)&&(i&&n.removeClass(i),i=t?o+"-"+t.trim().replace(E,"-"):o,n.addClass(i))}}(t,r),i=n.$observe(n.$normalize(r),o);o(z(r,n,"")),e.$on("$destroy",function(){i()})}}(t))}),fe.forEach(b,function(e){var t=n?e+"-"+n:e;p.directive(H(t),L(t))})}),p.provider("$$mdLayout",function(){return{$get:fe.noop,validateAttributeValue:U,validateAttributeUsage:B,disableLayouts:function(e){T.enabled=!0!==e}}}).directive("mdLayoutCss",P).directive("ngCloak",(u="ng-cloak",["$timeout",function(n){return{restrict:"A",priority:-10,compile:function(e){return T.enabled?(e.addClass(u),function(e,t){n(function(){t.removeClass(u)},10,!1)}):fe.noop}}}])).directive("layoutWrap",L("layout-wrap")).directive("layoutNowrap",L("layout-nowrap")).directive("layoutNoWrap",L("layout-no-wrap")).directive("layoutFill",L("layout-fill")).directive("layoutLtMd",F("layout-lt-md")).directive("layoutLtLg",F("layout-lt-lg")).directive("flexLtMd",F("flex-lt-md")).directive("flexLtLg",F("flex-lt-lg")).directive("layoutAlignLtMd",F("layout-align-lt-md")).directive("layoutAlignLtLg",F("layout-align-lt-lg")).directive("flexOrderLtMd",F("flex-order-lt-md")).directive("flexOrderLtLg",F("flex-order-lt-lg")).directive("offsetLtMd",F("flex-offset-lt-md")).directive("offsetLtLg",F("flex-offset-lt-lg")).directive("hideLtMd",F("hide-lt-md")).directive("hideLtLg",F("hide-lt-lg")).directive("showLtMd",F("show-lt-md")).directive("showLtLg",F("show-lt-lg")).config(O),V.$inject=["$timeout"],fe.module("material.core").service("$mdLiveAnnouncer",V),V.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)},V.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},fe.module("material.core.meta",[]).provider("$$mdMeta",function(){var o=fe.element(document.head),i={};function r(e){if(i[e])return!0;var t=document.getElementsByName(e)[0];return!!t&&(i[e]=fe.element(t),!0)}var e={setMeta:function(e,t){if(r(e),i[e])i[e].attr("content",t);else{var n=fe.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 fe.extend({},e,{$get:function(){return e}})}),Y.$inject=["$log","$q"],fe.module("material.core").factory("$mdComponentRegistry",Y),K.$inject=["$mdInkRipple"],fe.module("material.core").factory("$mdButtonInkRipple",K),G.$inject=["$mdInkRipple"],fe.module("material.core").factory("$mdCheckboxInkRipple",G),X.$inject=["$mdInkRipple"],fe.module("material.core").factory("$mdListInkRipple",X),function(){r.$inject=["$scope","$element","rippleOptions","$window","$timeout","$mdUtil","$mdColorUtil"],e.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],fe.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")?fe.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:fe.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=fe.bind(this,this.createRipple),(t.controller("mdInkRipple")||{}).setColor=fe.bind(this,this.color),this.bindEvents()}function t(e,t){(e.mousedown||e.lastRipple)&&(e.mousedown=!1,e.$mdUtil.nextTick(fe.bind(e,t),!1))}function n(){return{controller:fe.noop}}r.prototype.color=function(e){var t,n,o=this;return fe.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",fe.bind(this,this.handleMousedown)),this.$element.on("mouseup touchend",fe.bind(this,this.handleMouseup)),this.$element.on("mouseleave",fe.bind(this,this.handleMouseup)),this.$element.on("touchmove",fe.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=fe.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&&fe.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=fe.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}}(),Q.$inject=["$mdInkRipple"],fe.module("material.core").factory("$mdTabInkRipple",Q),fe.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 C.disableTheming=!0,{restrict:"A",priority:"900"}}).provider("$mdTheming",t).config(e).run(i);var p,s={},l={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)"},c={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)"},h="1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)",f="",m=w("rgba(0,0,0,0.87)"),u=w("rgba(255,255,255,0.87)"),g=w("rgb(255,255,255)"),b=["primary","accent","warn","background"],a="primary",v={accent:{default:"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"},background:{default:"50","hue-1":"A100","hue-2":"100","hue-3":"300"}},$={background:{default:"A400","hue-1":"800","hue-2":"900","hue-3":"A200"}};b.forEach(function(e){var t={default:"500","hue-1":"300","hue-2":"800","hue-3":"A100"};v[e]||(v[e]=t),$[e]||($[e]=t)});var y=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],C={disableTheming:!1,generateOnDemand:!1,registeredStyles:[],nonce:null};function t(e,r){s.$inject=["$rootScope","$mdUtil","$q","$log"];var n,a={},m=!(p={}),u="default";E.extend(p,e);var t=function(e){var t=(e=E.isObject(e)?e:{}).theme||"default",n=e.hue||"800",o=p[e.palette]||p[a[t].colors[e.palette||"primary"].name],i=E.isObject(o[n])?o[n].hex:o[n];return"#"!==i.substr(0,1)&&(i="#"+i),function(e){var t=r.setMeta("theme-color",e),n=r.setMeta("msapplication-navbutton-color",e);return function(){t(),n()}}(i)};return n={definePalette:function(e,t){return t=t||{},p[e]=o(e,t),n},extendPalette:function(e,t){return o(e,E.extend({},p[e]||{},t))},theme:d,configuration:function(){return E.extend({},C,{defaultTheme:u,alwaysWatchTheme:m,registeredStyles:[].concat(C.registeredStyles)})},disableTheming:function(e){C.disableTheming=E.isUndefined(e)||!!e},registerStyles:function(e){C.registeredStyles.push(e)},setNonce:function(e){C.nonce=e},generateThemesOnDemand:function(e){C.generateOnDemand=e},setDefaultTheme:function(e){u=e},alwaysWatchTheme:function(e){m=e},enableBrowserColor:t,$get:s,_LIGHT_DEFAULT_HUES:v,_DARK_DEFAULT_HUES:$,_PALETTES:p,_THEMES:a,_parseRules:M,_rgba:_};function o(e,t){var n=y.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 d(e,t){if(a[e])return a[e];var n="string"==typeof(t=t||"default")?a[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)}}),a[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?c:l,a.foregroundShadow=a.isDark?h:f;var t=a.isDark?$:v,r=a.isDark?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),b.forEach(function(o){var i=(a.isDark?$:v)[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==y.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",y.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 s(n,s,o,l){var i=function(e,t){t===ge&&(t=e,e=ge),e===ge&&(e=n),i.inherit(t,t)};return Object.defineProperty(i,"THEMES",{get:function(){return E.extend({},a)}}),Object.defineProperty(i,"PALETTES",{get:function(){return E.extend({},p)}}),Object.defineProperty(i,"ALWAYS_WATCH",{get:function(){return m}}),i.inherit=function(n,e){var o=e.controller("mdTheme")||n.data("$mdThemeController"),t=n.scope();if(d(o&&o.$mdTheme||("default"===u?"":u)),o){var i=m||o.$shouldWatch||s.parseAttributeBoolean(n.attr("md-theme-watch"));if(i||o.isAsyncTheme){var r=function(){a&&(a(),a=ge)},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 u},i.generateTheme=function(e){A(a[e],e,C.nonce)},i.defineTheme=function(e,t){t=t||{};var n=d(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===ge||""===e||i.THEMES[e]!==ge}}}function n(p,h,f,g,b,v){return{priority:101,link:{pre:function(t,e,n){function o(){var e=h(n.mdTheme)(t);return f(e)(t)||e}var i=[],r=h.startSymbol(),a=h.endSymbol(),d=n.mdTheme.trim(),s=d.substr(0,r.length)===r&&d.lastIndexOf(a)===d.length-a.length,l="::"===n.mdTheme.split(r).join("").split(a).join("").trim().substr(0,"::".length),c={isAsyncTheme:E.isFunction(o())||E.isFunction(o().then),registerChanges:function(t,e){return e&&(t=E.bind(e,t)),i.push(t),function(){var e=i.indexOf(t);-1<e&&i.splice(e,1)}},$setTheme:function(e){p.registered(e)||v.warn("attempted to use unregistered theme '"+e+"'"),c.$mdTheme=e;for(var t=i.length;t--;)i[t](e)},$shouldWatch:g.parseAttributeBoolean(e.attr("md-theme-watch"))||p.ALWAYS_WATCH||s&&!l};function m(e){if("string"==typeof e)return c.$setTheme(e);b.when(E.isFunction(e)?e():e).then(function(e){c.$setTheme(e)})}e.data("$mdThemeController",c),m(o());var u=t.$watch(o,function(e){e&&(m(e),c.$shouldWatch||u())})}}}}function o(e){return e}function M(d,e,t){!function(e,t){if(!p[(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(p).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]),_((p[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 _(p[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 T={};function i(e,t){var n=document.head,o=n?n.firstElementChild:null,i=!C.disableTheming&&e.has("$MD_THEME_CSS")?e.get("$MD_THEME_CSS"):"";if(i+=C.registeredStyles.join(""),o&&0!==i.length){E.forEach(p,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=w(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)?g:u:-1<r.indexOf(t)?-1<a.indexOf(t)?g:u:m}}})});var r=i.split(/\}(?!(\}|'|"|;))/).filter(function(e){return e&&e.trim().length}).map(function(e){return e.trim()+"}"});b.forEach(function(e){T[e]=""}),r.forEach(function(e){for(var t,n=0;t=b[n];n++)if(-1<e.indexOf(".md-"+t))return T[t]+=e;for(n=0;t=b[n];n++)if(-1<e.indexOf(t))return T[t]+=e;return T[a]+=e}),C.generateOnDemand||E.forEach(t.THEMES,function(e){s[e.name]||"default"!==t.defaultTheme()&&"default"===e.name||A(e,e.name,C.nonce)})}}function A(i,e,r){var a=document.head,d=a?a.firstElementChild:null;s[e]||(b.forEach(function(e){for(var t=M(i,e,T[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 w(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 _(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')"}}(R.angular),fe.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"],fe.module("material.components.autocomplete").controller("MdAutocompleteCtrl",e);var le=48,ce=5,me=8,ue=2,pe="standard",he="virtual";function e(p,h,f,t,e,n,o,i,g,a,r,d){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()}),_=he;m.documentElement=fe.element(document.documentElement),s="hidden",l=function(e,t){var n;v&&(n=fe.element(v.scrollContainer));!e&&t?(S(),ne(!0,x.Count|x.Selected),v&&(f.disableScrollAround(v.scrollContainer),T=function(e){var t=fe.element(e);return t.on("wheel touchmove",O),function(){t.off("wheel touchmove",O)}}(v.wrap),f.isIos&&(m.documentElement.on("touchend",L),n&&n.on("touchstart touchmove touchend",P)),f.nextTick(I))):e&&!t&&(f.isIos&&(m.documentElement.off("touchend",L),n&&n.off("touchstart touchmove touchend",P)),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=-1,m.activeOption=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||X())return;e.stopPropagation(),e.preventDefault(),m.index=Math.min(m.index+1,m.matches.length-1),f.nextTick(I),oe();break;case t.KEY_CODE.UP_ARROW:if(m.loading||X())return;e.stopPropagation(),e.preventDefault(),m.index=m.index<0?m.matches.length-1:Math.max(0,m.index-1),f.nextTick(I),oe();break;case t.KEY_CODE.TAB:if(R(),m.hidden||m.loading||m.index<0||m.matches.length<1)return;J(m.index);break;case t.KEY_CODE.ENTER:if(m.hidden||m.loading||m.index<0||m.matches.length<1)return;if(X())return;e.stopImmediatePropagation(),e.preventDefault(),J(m.index);break;case t.KEY_CODE.ESCAPE:if(e.preventDefault(),!(K("blur")||!m.hidden||m.loading||K("clear")&&p.searchText))return;e.stopPropagation(),ee(),p.searchText&&K("clear")&&te(),m.hidden=!0,K("blur")&&U(!0)}},m.blur=function(e){C=!1,$||(m.hidden=V(),se("ngBlur",{$event:e}))},m.focus=function(e){C=!0,Y()&&Z()&&ae();m.hidden=V(),se("ngFocus",{$event:e})},m.clear=function(e){e&&e.stopPropagation();ee(),te()},m.select=J,m.listEnter=function(){$=!0},m.listLeave=R,m.focusInput=D,m.getCurrentDisplayValue=Q,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=re,m.loadingIsVisible=function(){return m.loading&&!X()},m.positionDropdown=S;var k,x={Count:1,Selected:2};return f.initOptionalProperties(p,g,{searchText:"",selectedItem:null,clearButton:!1,disableVirtualRepeat:!1}),e(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(B,k):B),p.$watch("selectedItem",F),fe.element(n).on("resize",w),void p.$on("$destroy",H),void f.nextTick(function(){!function(){var e=function(){var e,t;for(e=h;e.length&&(t=e.attr("md-autocomplete-snap"),!fe.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]=fe.element(e[n]));return t}(v),_=v.scrollContainer.classList.contains("md-standard-list-container")?pe:he,A=v.$.input.controller("ngModel")}(),v.$.root.length&&(e(v.$.scrollContainer),v.$.scrollContainer.detach(),v.$.root.append(v.$.scrollContainer),o.pin&&o.pin(v.$.scrollContainer,i)),h.on("touchstart",D),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||ce)*le,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-me+f.getViewportTop(),u=o.top-me;c=c||(t<m?"bottom":t<u?"top":m<u?"top":"bottom"),g.mdFloatingLabel&&(d+=ue,s-=2*ue),e={left:d+"px",minWidth:s+"px",maxWidth:Math.max(n.right-i.left,i.right-n.left)-me+"px"},"top"===c?(e.top="auto",e.bottom=a+"px",e.maxHeight=Math.min(t,u)+"px"):(m=i.bottom-n.bottom-me+f.getViewportTop(),e.top=r-l+"px",e.bottom="auto",e.maxHeight=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(){var e=v.scroller.querySelector(".selected");m.activeOption=e?e.id:null}function H(){if(m.hidden||f.enableScrolling(),fe.element(n).off("resize",w),v){fe.forEach(["ul","scroller","scrollContainer","input"],function(e){v.$[e].remove()})}}function O(e){e.preventDefault()}function P(e){e.stopPropagation()}function L(e){U(m.hidden=!0)}function R(){C||m.hidden||v.input.focus(),$=!1,m.hidden=V()}function F(t,n){N(),t?q(t).then(function(e){p.searchText=e,function(t,n){y.forEach(function(e){e(t,n)})}(t,n)}):n&&p.searchText&&q(n).then(function(e){fe.isString(p.searchText)&&e.toString().toLowerCase()===p.searchText.toLowerCase()&&(p.searchText="")}),t!==n&&fe.isFunction(p.itemChange)&&p.itemChange(z(p.selectedItem))}function B(t,n){m.index=p.autoselect?0:-1,t!==n&&(N(),q(p.selectedItem).then(function(e){t!==e&&(p.selectedItem=null,t!==n&&fe.isFunction(p.textChange)&&p.textChange(),Z()?ae():(W(!(m.matches=[])),ne(!0,x.Count)))}))}function U(e){e&&(C=$=!1),v.input.blur()}function j(){return fe.isNumber(p.minLength)?p.minLength:1}function q(e){return a.when(((t=e)&&p.itemText?p.itemText(z(t)):null)||e).then(function(e){return e&&!fe.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 z(e){if(!e)return ge;var t={};return m.itemName&&(t[m.itemName]=e),t}function W(e){m.loading!==e&&(m.loading=e),m.hidden=V()}function V(){return!function(){{if(m.isReadonly)return!1;if(!Y())return!1}return Z()&&G()||re()}()}function Y(){return!(m.loading&&!G())&&(!X()&&!!C)}function K(e){return!p.escapeOptions||-1!==p.escapeOptions.toLowerCase().indexOf(e)}function G(){return!!m.matches.length}function X(){return!!m.scope.selectedItem}function Q(){return q(m.matches[m.index])}function Z(){return(p.searchText||"").length>=j()}function J(e){f.nextTick(function(){q(m.matches[e]).then(function(e){var t=v.$.input.controller("ngModel");d.announce(e+" "+m.selectedMessage,"assertive"),t.$setViewValue(e),t.$render()}).finally(function(){p.selectedItem=m.matches[e],W(!1)})},!1)}function ee(){m.index=-1,f.nextTick(I),m.matches=[]}function te(){W(!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 ne(e,t){var n=e?"polite":"assertive",o=[];t&x.Selected&&-1!==m.index&&o.push(Q()),t&x.Count&&o.push(a.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."}}())),a.all(o).then(function(e){d.announce(e.join(" "),n)})}function oe(){v.li[0]&&(_===pe?function(){var e=v.li[Math.max(0,m.index)],t=v.scrollContainer.offsetHeight,n=e&&e.offsetTop||0,o=n+e.clientHeight,i=v.scrollContainer.scrollTop;n<i?ie(n):i+t<o&&ie(o-t)}():function(){var e=v.li[0].offsetHeight,t=e*Math.max(0,m.index),n=t+e,o=v.scroller.clientHeight,i=v.scroller.scrollTop;t<i?ie(t):i+o<n&&ie(n-o)}())}function ie(e){_===pe?v.scrollContainer.scrollTop=e:v.$.scrollContainer.controller("mdVirtualRepeatContainer").scrollTo(e)}function re(){var e=(m.scope.searchText||"").length;return m.hasNotFound&&!G()&&(!m.loading||0!==M)&&e>=j()&&(C||$)&&!X()}function ae(){var e=p.searchText||"",t=e.toLowerCase();!p.noCache&&E[t]?de(E[t]):function(t){var e=p.$parent.$eval(b),n=t.toLowerCase(),o=fe.isArray(e),i=!!e.then;function r(e){E[n]=e,(t||"")===(p.searchText||"")&&de(e)}o?r(e):i&&function(e){if(!e)return;e=a.when(e),M++,W(!0),f.nextTick(function(){e.then(r).finally(function(){0==--M&&W(!1)})},!0,p)}(e)}(e),m.hidden=V()}function de(e){m.matches=e,m.hidden=V(),m.loading&&W(!1),p.selectOnMatch&&function(){var n=p.searchText,e=m.matches,t=e[0];1===e.length&&q(t).then(function(e){var t=n===e;p.matchInsensitive&&!t&&(t=n.toLowerCase()===e.toLowerCase()),t&&J(0)})}(),S(),ne(!0,x.Count)}function se(e,t){g[e]&&p.$parent.$eval(g[e],t||{})}}}(),Z.$inject=["$$mdSvgRegistry"],fe.module("material.components.autocomplete").directive("mdAutocomplete",Z),J.$inject=["$compile","$mdUtil"],fe.module("material.components.autocomplete").directive("mdAutocompleteParentScope",J),ee.$inject=["$scope","$element","$attrs"],fe.module("material.components.autocomplete").controller("MdHighlightCtrl",ee),ee.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)},ee.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)},ee.prototype.applyRegex=function(e){var t=this.resolveTokens(e);this.$element.empty(),t.forEach(function(e){if(e.isMatch){var t=fe.element('<span class="highlight">').text(e.text);this.$element.append(t)}else this.$element.append(document.createTextNode(e))}.bind(this))},ee.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)}},ee.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,""))},ee.prototype.sanitizeRegex=function(e){return e&&e.toString().replace(/[\\^$*+?.()|{}[\]]/g,"\\$&")},te.$inject=["$interpolate","$parse"],fe.module("material.components.autocomplete").directive("mdHighlightText",te),fe.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function(a,d,t,s,l,c,m,u){return{restrict:"E",link:function(n,o,e){var i;function r(){var e=parseInt(i.height,10)+Math.abs(parseInt(i.top,10));o.css("height",e+"px")}t.pin&&t.pin(o,s),m(function(){if("fixed"===(i=l.getComputedStyle(u[0].body)).position){var e=d.debounce(function(){i=l.getComputedStyle(u[0].body),r()},60,null,!1);r(),fe.element(l).on("resize",e),n.$on("$destroy",function(){fe.element(l).off("resize",e)})}var t=o.parent();t.length&&("BODY"===t[0].nodeName&&o.css("position","fixed"),"static"===l.getComputedStyle(t[0]).position&&c.warn("<md-backdrop> may not work properly in a scrolled, static-positioned parent container."),a.inherit(o,t))})}}}]),ne.$inject=["$mdBottomSheet"],oe.$inject=["$$interimElementProvider"],fe.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",ne).provider("$mdBottomSheet",oe),re.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$mdInteraction"],ie.$inject=["$mdTheming"],fe.module("material.components.button",["material.core"]).directive("mdButton",re).directive("a",ie),ae.$inject=["$mdTheming"],fe.module("material.components.card",["material.core"]).directive("mdCard",ae),de.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$mdInteraction"],fe.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",de),fe.module("material.components.chips",["material.core","material.components.autocomplete"]),se.$inject=["$scope","$element","$mdConstant","$timeout","$mdUtil"],fe.module("material.components.chips").controller("MdChipCtrl",se),se.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"))},se.prototype.getChipContent=function(){var e=this.$element[0].getElementsByClassName("md-chip-content");return fe.element(e[0])},se.prototype.getContentElement=function(){var e=fe.element(this.getChipContent().children()[0]);return e&&0!==e.length||(e=fe.element(this.getChipContent().contents()[0])),e},se.prototype.getChipIndex=function(){return parseInt(this.$element.attr("index"))},se.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)}},se.prototype.selectNodeContents=function(e){var t,n;document.body.createTextRange?((t=document.body.createTextRange()).moveToElementText(e),t.select()):R.getSelection&&(n=R.getSelection(),(t=document.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(t))},se.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])},se.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())},se.prototype.chipMouseDoubleClick=function(){this.enableChipEdit&&!this.isEditing&&this.goInEditMode()},le.$inject=["$mdTheming","$mdUtil","$compile","$timeout"],fe.module("material.components.chips").directive("mdChip",le),ce.$inject=["$timeout"],fe.module("material.components.chips").directive("mdChipRemove",ce),me.$inject=["$compile"],fe.module("material.components.chips").directive("mdChipTransclude",me),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()}fe.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 fe.isObject(e)},e.prototype.isRemovable=function(){return!!this.ngModelCtrl&&(this.readonly?this.removable:!fe.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});fe.isDefined(e)&&(t=e)}if(fe.isObject(t)&&this.items.some(function(e){return fe.equals(t,e)}))return;if(!(null==t||this.items.indexOf(t)+1)){var n=this.items.push(t)-1;this.updateNgModel();var o=fe.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 fe.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 fe.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(),fe.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=fe.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);function n(e,t){o.$evalAsync(fe.bind(i,t,e))}var o=this.$scope,i=this;e.attr({tabindex:0}).on("keydown",function(e){n(e,i.inputKeydown)}).on("focus",function(e){n(e,i.onInputFocus)}).on("blur",function(e){n(e,i.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(fe.bind(this,function(e){if(e){if(this.hasMaxChipsReached())return;this.appendChip(e),this.resetChipBuffer()}})),this.$element.find("input").on("focus",fe.bind(this,this.onInputFocus)).on("blur",fe.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"],fe.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:"&?"}}}}(),ue.$inject=["$attrs","$element","$timeout"],fe.module("material.components.chips").controller("MdContactChipsCtrl",ue),ue.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()}))})},ue.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)},ue.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))},ue.prototype.queryContact=function(e){return this.contactQuery({$query:e})},ue.prototype.inputKeydown=function(e){if(this.separatorKeys&&!(this.separatorKeys.indexOf(e.keyCode)<0)){e.stopPropagation(),e.preventDefault();var t=fe.element(e.target).controller("mdAutocomplete");t.select(t.index)}},ue.prototype.itemName=function(e){return e[this.contactName]},ue.prototype.$onDestroy=function(){for(var e;e=this.deRegister.pop();)e.call(this)},function(){e.$inject=["$mdTheming","$mdUtil"],fe.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,n){return l=l||Object.keys(r.PALETTES),{applyThemeColors:function(e,t){try{t&&e.css(function(e){var i={},r=e.hasOwnProperty("color");return fe.forEach(e,function(e,t){var n=s(e),o=-1<t.indexOf("background");i[t]=d(n),o&&!r&&(i.color=d(n,!0))}),i}(t))}catch(e){n.error(e.message)}},getThemeColor:function(e){return d(s(e))},hasTheme:function(e){return fe.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=fe.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=fe.isDefined(i.mdColorsWatch);return!t&&!n&&(!o||r.parseAttributeBoolean(i.mdColorsWatch))}();return function(e,n,t,o){function i(n){"string"!=typeof n&&(n=""),t.mdColors||(t.mdColors="{}");var o=u(t.mdColors)(e);return r&&Object.keys(o).forEach(function(e){var t=o[e];c.hasTheme(t)||(o[e]=(n||r.$mdTheme)+"-"+t)}),d(o),o}var r=o[0],a={},d=function(e){if(!fe.equals(e,a)){var t=Object.keys(a);a.background&&!t.color&&t.push("color"),t.forEach(function(e){n.css(e,"")})}a=e},s=fe.noop;r&&(s=r.registerChanges(function(e){c.applyThemeColors(n,i(e))})),e.$on("$destroy",function(){s()});try{l?e.$watch(i,fe.bind(this,c.applyThemeColors,n),!0):c.applyThemeColors(n,i())}catch(e){m.error(e.message)}}}}}fe.module("material.components.colors",["material.core"]).directive("mdColors",t).service("$mdColors",e)}(),pe.$inject=["$mdTheming"],fe.module("material.components.content",["material.core"]).directive("mdContent",pe),fe.module("material.components.datepicker",["material.core","material.components.icon","material.components.virtualRepeat"]),function(){e.$inject=["$element","$scope","$$mdDateUtil","$mdUtil","$mdConstant","$mdTheming","$$rAF","$attrs","$mdDateLocale"],fe.module("material.components.datepicker").directive("mdCalendar",function(){return{template:function(e,t){return'<div ng-switch="calendarCtrl.currentView" '+(t.hasOwnProperty("ngIf")?"":'ng-if="calendarCtrl.isInitialized"')+'><md-calendar-year ng-switch-when="year"></md-calendar-year><md-calendar-month ng-switch-default></md-calendar-month></div>'},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];o[1].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=fe.bind(this,this.handleKeyEvent);(l=e.parent().hasClass("md-datepicker-calendar")?fe.element(document.body):e).on("keydown",c),t.$on("$destroy",function(){l.off("keydown",c)}),1===fe.version.major&&fe.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=fe.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"],fe.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];o[1].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",fe.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)}))}}}(),he.$inject=["$compile","$$mdSvgRegistry"],be.$inject=["$element","$$mdDateUtil","$mdDateLocale"],fe.module("material.components.datepicker").directive("mdCalendarMonthBody",he),be.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)},be.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},be.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.calendarCtrl.minDate,this.calendarCtrl.maxDate)&&(!fe.isFunction(this.calendarCtrl.dateFilter)||this.calendarCtrl.dateFilter(e))},be.prototype.buildDateRow=function(e){var t=document.createElement("tr");return t.setAttribute("role","row"),t.setAttribute("aria-label",this.dateLocale.weekNumberFormatter(e)),t},be.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},be.prototype.getLocaleDay_=function(e){return(e.getDay()+(7-this.dateLocale.firstDayOfWeek))%7},function(){e.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdUtil"],fe.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];o[1].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",fe.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)}}(),ve.$inject=["$element","$$mdDateUtil","$mdDateLocale"],fe.module("material.components.datepicker").directive("mdCalendarYearBody",function(){return{require:["^^mdCalendar","^^mdCalendarYear","mdCalendarYearBody"],scope:{offset:"=mdYearOffset"},controller:ve,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){fe.isNumber(e)&&a.generateContent()})}}}),ve.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)},ve.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)||fe.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},ve.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},ve.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},fe.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)}]),fe.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=fe.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="dialog" 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(fe.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"],fe.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=fe.element(document.documentElement),this.ngModelCtrl=null,this.inputElement=t[0].querySelector("input"),this.ngInputElement=fe.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=fe.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=ge,this.setDisabled(t[0].disabled||fe.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=fe.bind(this,this.handleBodyClick),this.windowEventName=p.test(navigator.userAgent||navigator.vendor||R.opera)?"orientationchange":"resize",this.windowEventHandler=a.debounce(fe.bind(this,this.closeCalendarPane),100),this.windowBlurHandler=fe.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(fe.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===fe.version.major&&fe.version.minor<=4&&this.$onInit()}t.prototype.$onInit=function(){this.locale=this.dateLocale?fe.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:fe.noop,val:fe.noop,0:{}},this.$attrs,[e]);var o=this;o.ngModelCtrl.$formatters.push(function(e){var t=fe.isDefined(e)?e:null;if(!(e instanceof Date)&&(t=Date.parse(e),!isNaN(t)&&fe.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(fe.bind(this,this.updateErrorState));var i=o.$mdUtil.getModelOption(e,"updateOn");i&&this.ngInputElement.on(i,fe.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",fe.bind(n,n.resizeInputElement));var e=fe.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",fe.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)}),fe.element(t.$window).on("blur",t.windowBlurHandler),n.$on("$destroy",function(){fe.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)}fe.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),fe.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)&&(!fe.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),fe.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),fe.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),R.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),R.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 fe.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()}}(),Ee.$inject=["$$rAF","$mdTheming","$mdDialog"],$e.$inject=["$$interimElementProvider"],fe.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",Ee).provider("$mdDialog",$e),ye.$inject=["$mdTheming"],fe.module("material.components.divider",["material.core"]).directive("mdDivider",ye),Ce.$inject=["$mdUtil"],fe.module("material.components.fabActions",["material.core"]).directive("mdFabActions",Ce),Me.$inject=["$scope","$element","$animate","$mdUtil","$mdConstant","$timeout"],fe.module("material.components.fabShared",["material.core"]).controller("MdFabController",Me),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(R.getComputedStyle(n).zIndex);fe.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||fe.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(R.getComputedStyle(n).zIndex);fe.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)}}}fe.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)}(),fe.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",Te).service("mdFabToolbarAnimation",Te),we.$inject=["$mdUtil"],_e.$inject=["$mdUtil"],Ae.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia","$mdUtil"],ke.$inject=["$mdMedia"],fe.module("material.components.gridList",["material.core"]).directive("mdGridList",Ae).directive("mdGridTile",ke).directive("mdGridTileFooter",xe).directive("mdGridTileHeader",xe).factory("$mdGridLayout",_e),we.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(fe.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}},fe.module("material.components.icon",["material.core"]),fe.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"],fe.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 n={},l={},o=/[-\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;fe.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(fe.isUndefined(t)||!t||!t.length)return a.defaultFontSet;var n=t;return fe.forEach(a.fontSets,function(e){e.alias===t&&(n=e.fontSet||n)}),n},e;function e(e){return e=e||"",fe.isString(e)||(e=t.getTrustedUrl(e)),n[e]?d.when(i(n[e])):o.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===ge;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),fe.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+=", ");fe.forEach(a.querySelectorAll(o),function(e){u(t,e,l,d)}),fe.forEach(a.querySelectorAll("style"),function(e){u(t,e,l,d)}),fe.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=fe.element(i)[0].innerHTML):t.outerHTML=t.outerHTML.replace("url(#"+e.id+")","url(#"+e.id+r+")")}function p(t){return function(e){return n[t]=function(e){return fe.isDefined(e.element)&&fe.isDefined(e.config)}(e)?e:new b(e,a[t]),i(n[t])}}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)?R.atob(n[2]):n[2],d.when(fe.element(i)[0])):(o=e,d(function(t,n){r(o,!0).then(function(e){l[o]||(l[o]=fe.element("<div>").append(e)[0].querySelector("svg")),t(l[o])},function(e){var t=fe.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?fe.element('<svg xmlns="http://www.w3.org/2000/svg">').html(e.innerHTML)[0]:fe.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=fe.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=fe.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&&!function(t){return l.some(function(e){return t[e]})}(n)||t.toggleClass("md-auto-hide",!1)},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(g,b,v,E,$){return{restrict:"E",require:["^?mdInputContainer","?ngModel","?^form"],link:function(c,m,u,e){var p=e[0],h=!!e[1],f=e[1]||g.fakeNgModel(),t=e[2],n=fe.isDefined(u.readonly),o=g.parseAttributeBoolean(u.mdNoAsterisk),i=m[0].tagName.toLowerCase();if(!p)return;{if("hidden"===u.type)return void m.attr("aria-hidden","true");if(p.input){if(p.input[0].contains(m[0]))return;throw new Error("<md-input-container> can only have *one* <input>, <textarea> or <md-select> child element!")}}p.input=m,p.label&&u.$observe("required",function(e){p.label.toggleClass("md-required",e&&!o)});var r=fe.element('<div class="md-errors-spacer">');m.after(r);var a=fe.isString(u.placeholder)?u.placeholder.trim():"";p.label||a.length||v.expect(m,"aria-label");m.addClass("md-input"),m.attr("id")||m.attr("id","input_"+g.nextUid());"input"===i&&"number"===u.type&&u.min&&u.max&&!u.step?m.attr("step","any"):"textarea"===i&&function(){var t=!u.hasOwnProperty("mdNoAutogrow");if(function(){if(u.hasOwnProperty("mdNoResize"))return;var e=fe.element('<div class="md-resize-handle"></div>'),t=!1,n=0,o=p.element,i=$.register(e,"drag",{horizontal:!1});function r(e){e.preventDefault(),t=!0,e.clientY,n=parseFloat(m.css("height"))||m.prop("offsetHeight")}function a(e){t&&(e.preventDefault(),l(),o.addClass("md-input-resized"))}function d(e){t&&m.css("height",n+e.pointer.distanceY+"px")}function s(e){t&&(t=!1,o.removeClass("md-input-resized"))}m.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),c.$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})}(),!t)return;var o=u.hasOwnProperty("rows")?parseInt(u.rows):NaN,i=u.hasOwnProperty("maxRows")?parseInt(u.maxRows):NaN,n=c.$on("md-resize-textarea",d),r=null,a=m[0];E(function(){g.nextTick(d)},10,!1),m.on("input",d),h&&f.$formatters.push(s);o||m.attr("rows",1);function d(){m.attr("rows",1).css("height","auto").addClass("md-no-flex");var e=function(){var e=a.offsetHeight,t=a.scrollHeight-e;return e+Math.max(t,0)}();if(!r){var t=m[0].style.padding||"";r=m.css("padding",0).prop("offsetHeight"),m[0].style.padding=t}if(o&&r&&(e=Math.max(e,r*o)),i&&r){var n=r*i;n<e?(m.attr("md-no-autogrow",""),e=n):m.removeAttr("md-no-autogrow")}r&&m.attr("rows",Math.round(e/r)),m.css("height",e+"px").removeClass("md-no-flex")}function s(e){return g.nextTick(d),e}function l(){if(t&&(t=!1,fe.element(b).off("resize",d),n&&n(),m.attr("md-no-autogrow","").off("input",d),h)){var e=f.$formatters.indexOf(s);-1<e&&f.$formatters.splice(e,1)}}if(fe.element(b).on("resize",d),c.$on("$destroy",l),u.hasOwnProperty("mdDetectHidden")){var e=function(){var t=!1;return function(){var e=0===a.offsetHeight;!1==e&&!0===t&&d(),t=e}}();c.$watch(function(){return g.nextTick(e,!1),!0})}}();h||l();var d=p.isErrorGetter||function(){return f.$invalid&&(f.$touched||t&&t.$submitted)};c.$watch(d,p.setInvalid),u.ngValue&&u.$observe("value",l);f.$parsers.push(s),f.$formatters.push(s),m.on("input",l),n||m.on("focus",function(e){g.nextTick(function(){p.setFocused(!0)})}).on("blur",function(e){g.nextTick(function(){p.setFocused(!1),l()})});function s(e){return p.setHasValue(!f.$isEmpty(e)),e}function l(){p.setHasValue(0<m.val().length||(m[0].validity||{}).badInput)}c.$on("$destroy",function(){p.setFocused(!1),p.setHasValue(!1),p.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=!fe.isDefined(t.ngTrim)||h.parseAttributeBoolean(t.ngTrim),c="password"===t.type;function m(e){return(e=l&&!c&&fe.isString(e)?e.trim():e)!==ge&&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(!fe.isNumber(i)||i<0)return!0;u();var n=o.val()||t;return n!==ge&&null!==n||(n=""),n=l&&!c&&fe.isString(n)?n.trim():n,String(n).length<=i},d.$isEmpty=function(e){return 0===m(e)},h.nextTick(function(){a=fe.element(s.element[0].querySelector(".md-errors-spacer")),r=fe.element('<div class="md-char-counter">'),a.append(r),t.$observe("ngTrim",function(e){l=!fe.isDefined(e)||h.parseAttributeBoolean(e)}),e.$watch(t.mdMaxlength,function(e){fe.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=fe.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)})}}}R._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?(fe.forEach(r,function(e){n=g(fe.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?(fe.forEach(r,function(e){n=b(fe.element(e)),o.push(n.start())}),a.all(o,t)):t()}function g(e){var t=parseInt(R.getComputedStyle(e[0]).height),n=parseInt(R.getComputedStyle(e[0]).marginTop),o=v(e),i=function(e){return e.controller("mdInputContainer").element}(e);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=R.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")?fe.element(s.getClosest(e,function(e){return e.classList.contains("md-input-messages-animation")})):fe.element(e[0].querySelector(".md-input-messages-animation"))}function E(e,t,n){a=e,d=t,s=n}}(),De.$inject=["$scope","$element","$mdListInkRipple"],Ne.$inject=["$mdTheming"],Se.$inject=["$mdAria","$mdConstant","$mdUtil","$timeout"],fe.module("material.components.list",["material.core"]).controller("MdListController",De).directive("mdList",Ne).directive("mdListItem",Se),fe.module("material.components.menu",["material.core","material.components.backdrop"]),Ie.$inject=["$mdMenu","$attrs","$element","$scope","$mdUtil","$timeout","$rootScope","$q","$log"],fe.module("material.components.menu").controller("mdMenuCtrl",Ie),He.$inject=["$mdUtil"],fe.module("material.components.menu").directive("mdMenu",He),Oe.$inject=["$$interimElementProvider"],fe.module("material.components.menu").provider("$mdMenu",Oe),fe.module("material.components.menuBar",["material.core","material.components.icon","material.components.menu"]),function(){e.$inject=["$scope","$rootScope","$element","$attrs","$mdConstant","$document","$mdUtil","$timeout"],fe.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;fe.forEach(l,function(e){s[e]=fe.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=ge,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(){fe.element(e.parentToolbar).on("click",e.handleParentClick)},!1)),fe.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"),fe.element(this.parentToolbar).off("click",this.handleParentClick)),fe.element(this.getMenus()).off("mouseenter",this.handleMenuHover))},e.prototype.scheduleOpenHoveredMenu=function(e){var t=fe.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=ge,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=fe.element(n).controller("mdMenu"),this.scheduleOpenMenu(o)),t=!0;break;case i.RIGHT_ARROW:n=this.focusMenu(1),a&&(o=fe.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&&fe.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)&&fe.element(t).controller("mdMenu").close(!0,{closeAll:!0})}}(),Pe.$inject=["$mdUtil","$mdTheming"],fe.module("material.components.menuBar").directive("mdMenuBar",Pe),fe.module("material.components.menuBar").directive("mdMenuDivider",function(){return{restrict:"E",compile:function(e,t){t.role||e[0].setAttribute("role","separator")}}}),Le.$inject=["$scope","$element","$attrs"],fe.module("material.components.menuBar").controller("MenuItemController",Le),Le.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())},Le.prototype.clearNgAria=function(){var t=this.$element[0];fe.forEach(["role","tabindex","aria-invalid","aria-checked"],function(e){t.removeAttribute(e)})},Le.prototype.initClickListeners=function(){var e=this,t=this.ngModel,n=this.$scope,o=this.$attrs,i=(this.$element,this.mode);this.handleClick=fe.bind(this,this.handleClick);var r=this.iconEl,a=fe.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="",a.attr("aria-checked","true")):(r.style.display="none",a.attr("aria-checked","false"))},n.$$postDigest(t.$render)},Le.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()},Re.$inject=["$mdUtil","$mdConstant","$$mdSvgRegistry"],fe.module("material.components.menuBar").directive("mdMenuItem",Re),Fe.$inject=["$mdAria","$mdTheming"],Be.$inject=["$element","$scope","$timeout","$mdConstant"],Ue.$inject=["$mdAria","$$rAF","$mdUtil","$window"],je.$inject=["$element"],fe.module("material.components.navBar",["material.core"]).controller("MdNavBarController",Be).directive("mdNavBar",Fe).controller("MdNavItemController",je).directive("mdNavItem",Ue),Be.prototype._initTabs=function(){this._inkbar=fe.element(this._navBarEl.querySelector("md-nav-ink-bar"));var n=this;this._$timeout(function(){n._updateTabs(n.mdSelectedNavItem,ge)}),this._$scope.$watch("ctrl.mdSelectedNavItem",function(e,t){n._$timeout(function(){n._updateTabs(e,t)})})},Be.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)})}},Be.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"})}},Be.prototype._getTabs=function(){var e=Array.prototype.slice.call(this._navBarEl.querySelectorAll(".md-nav-item")).map(function(e){return fe.element(e).controller("mdNavItem")});return e.indexOf(ge)?e:null},Be.prototype._getTabByName=function(t){return this._findTab(function(e){return e.getName()===t})},Be.prototype._getSelectedTab=function(){return this._findTab(function(e){return e.isSelected()})},Be.prototype.getFocusedTab=function(){return this._findTab(function(e){return e.hasFocus()})},Be.prototype._findTab=function(e,t){var n=this._getTabs();t!==ge&&null!==t||(t=0);for(var o=t;o<n.length;o++)if(e(n[o]))return n[o];return null},Be.prototype._findTabReverse=function(e,t){var n=this._getTabs();t!==ge&&null!==t||(t=n.length-1);for(var o=t;0<=o;o--)if(e(n[o]))return n[o];return null},Be.prototype.onFocus=function(){var e=this._getSelectedTab();e&&e.setFocused(!0)},Be.prototype._moveFocus=function(e,t){e.setFocused(!1),t.setFocused(!0)},Be.prototype._focusFirstTab=function(){if(this._getTabs()){var e=this._findTab(function(e){return e._isEnabled()});e&&this._moveFocus(this.getFocusedTab(),e)}},Be.prototype._focusLastTab=function(){if(this._getTabs()){var e=this._findTabReverse(function(e){return e._isEnabled()});e&&this._moveFocus(this.getFocusedTab(),e)}},Be.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()}},Be.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()}},Be.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()}}},je.prototype.getNgClassMap=function(){return{"md-active":this._selected,"md-primary":this._selected,"md-unselected":!this._selected,"md-focused":this._focused}},je.prototype.getName=function(){return this.name},je.prototype.getButtonEl=function(){return this._$element[0].querySelector("._md-nav-button")},je.prototype.setSelected=function(e){(this._selected=e)?this.getButtonEl().setAttribute("tabindex","0"):this.getButtonEl().setAttribute("tabindex","-1")},je.prototype.isSelected=function(){return this._selected},je.prototype.setFocused=function(e){(this._focused=e)&&this.getButtonEl().focus()},je.prototype.hasFocus=function(){return this._focused},je.prototype._isEnabled=function(){return!this._$element.attr("disabled")},function(){d.$inject=["presets","$rootElement","$rootScope","$injector","$window"],fe.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=fe.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 fe.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:fe.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=e.get("$mdUtil").isRtl(),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=fe.isString(e)?document.querySelector(e):e;return fe.element(t)}function m(e){return fe.isNumber(e)?e+"px":e}d.prototype.create=function(e,t){if("string"==typeof e?e=this._getPresetByName(e):"object"!=typeof e||!fe.isUndefined(t)&&t||(t=e,e={}),e=e||{},t=t||{},fe.isDefined(t.id)&&this._trackedPanels[t.id]){var n=this._trackedPanels[t.id];return fe.extend(n.config,t),n}this._config=fe.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&&(fe.isString(this._config.groupName)&&(this._config.groupName=[this._config.groupName]),fe.forEach(this._config.groupName,function(e){o.addToGroup(e)})),this._config.scope.$on("$destroy",fe.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=fe.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&&fe.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||fe.noop;n=fe.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||fe.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||fe.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&&fe.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||fe.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&&fe.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||fe.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&&fe.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=fe.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);function t(){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?fe.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=fe.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){function t(){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(fe.isString(e)?fe.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&&fe.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]=fe.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=fe.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&&(fe.isNumber(e)?this._openDuration=this._closeDuration=t(e):fe.isObject(e)&&(this._openDuration=t(e.open),this._closeDuration=t(e.close))),this._rawDuration=e,this;function t(e){if(fe.isNumber(e))return e/1e3}},l.prototype._getPanelAnimationTarget=function(e){return fe.isDefined(e.top)||fe.isDefined(e.left)?{element:ge,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(o+" "+d);break;case l.animation.FADE:n={transitionInClass:"_md-panel-animate-enter"};break;default:n=fe.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(o+" "+d);break;case l.animation.FADE:n={transitionInClass:"_md-panel-animate-fade-out _md-panel-animate-leave"};break;default:n=fe.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 fe.element)return{element:e,bounds:e[0].getBoundingClientRect()}}}(),fe.module("material.components.progressCircular",["material.core"]),qe.$inject=["$window","$mdProgressCircular","$mdTheming","$mdUtil","$interval","$log"],fe.module("material.components.progressCircular").directive("mdProgressCircular",qe),fe.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=fe.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)}}),ze.$inject=["$mdTheming","$mdUtil","$log"],fe.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",ze),We.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"],Ve.$inject=["$mdAria","$mdUtil","$mdTheming"],fe.module("material.components.radioButton",["material.core"]).directive("mdRadioGroup",We).directive("mdRadioButton",Ve),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 P=8,f=0,c=fe.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=fe.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(fe.element("<md-content>").append(e.contents()));o.attr("role","presentation"),t.mdOnOpen&&(e.find("md-content").prepend(fe.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=fe.element('<select class="md-visually-hidden"></select>');i.attr({name:t.name,"aria-hidden":"true",tabindex:"-1"});var r=e.find("md-option");fe.forEach(r,function(e){var t=fe.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(o,n,i,e){var t,r,a,d,s,l=!0,c=e[0],m=e[1],u=e[2],p=e[3],h=n.find("md-select-value"),f=fe.isDefined(i.readonly),g=x.parseAttributeBoolean(i.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")),o.$watch(b,c.setInvalid)}!function(){if(a=fe.element(n[0].querySelector(".md-select-menu-container")),d=o,i.mdContainerClass){var e=a[0].getAttribute("class")+" "+i.mdContainerClass;a[0].setAttribute("class",e)}(s=a.find("md-select-menu").controller("mdSelectMenu")).init(u,i.ngModel),n.on("$destroy",function(){a.remove()})}(),S(n);var v,E=u.$render;if(u.$render=function(){E(),$(),y(),T()},i.$observe("placeholder",u.$render),c&&c.label&&i.$observe("required",function(e){c.label.toggleClass("md-required",e&&!g)}),m.setLabelText=function(e){m.setIsPlaceholder(!e);var t=!1;if(i.mdSelectedText&&i.mdSelectedHtml)throw Error("md-select cannot have both `md-selected-text` and `md-selected-html`");if(i.mdSelectedText||i.mdSelectedHtml)e=I(i.mdSelectedText||i.mdSelectedHtml)(o),t=!0;else if(!e){e=i.placeholder||(c&&c.label?c.label.text():"")||"",t=!0}var n=h.children().eq(0);i.mdSelectedHtml?n.html(H.getTrustedHtml(e)):t?n.text(e):n.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()),c&&c.setFocused(!1),T()})}function $(){a&&(s=s||a.find("md-select-menu").controller("mdSelectMenu"),m.setLabelText(s.selectedLabels()))}function y(){if(r){var e=s.selectedLabels({mode:"aria"});n.attr("aria-label",e.length?r+": "+e:r)}}m.triggerClose=function(){I(i.mdOnClose)(o)},o.$$postDigest(function(){!function(){var e=n.attr("aria-label")||n.attr("placeholder");!e&&c&&c.label&&(e=c.label.text());r=e,D.expect(n,"aria-label",e)}(),$(),y()}),o.$watch(function(){return s.selectedLabels()},$),i.$observe("ngMultiple",function(e){v&&v();var t=I(e);v=o.$watch(function(){return t(o)},function(e,t){e===ge&&t===ge||(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()))})}),i.$observe("disabled",function(e){fe.isString(e)&&(e=!0),t!==ge&&t===e||((t=e)?n.attr({"aria-disabled":"true"}).removeAttr("tabindex").off("click",w).off("keydown",A):n.attr({tabindex:i.tabindex,"aria-disabled":"false"}).on("click",w).on("keydown",A))}),i.hasOwnProperty("disabled")||i.hasOwnProperty("ngDisabled")||(n.attr({"aria-disabled":"false"}),n.on("click",w),n.on("keydown",A));var C={role:"listbox","aria-expanded":"false","aria-multiselectable":_&&!i.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(L(e,N)){e.preventDefault();var t=s.optNodeForKeyboardSearch(e);if(!t||t.hasAttribute("disabled"))return;var n=fe.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:!!i.mdOnOpen&&(o.$eval(i.mdOnOpen)||!0)}).finally(function(){d._mdSelectIsOpen=!1,n.attr("aria-expanded","false"),u.$setTouched()})}a.attr("id",M),n.find("md-select-menu").length||(C["aria-owns"]=M),n.attr(C),o.$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&&fe.element(t).data("$mdOptionController");if(t&&n){if(t.hasAttribute("disabled"))return e.stopImmediatePropagation(),!1;var o=a.hashGetter(n.value),i=fe.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=fe.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 fe.isArray(e||t||[])}};var o,s,l,c="";function m(){var n=d.ngModel.$modelValue||d.ngModel.$viewValue||[];if(fe.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=ge},300),c+=e.key;var t=new RegExp("^"+c,"i");s||(s=i.find("md-option"),l=new Array(s.length),fe.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 fe.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(fe.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,fe.isDefined(d.selected[e])&&(d.select(e,t.value),fe.isDefined(d.ngModel.$$rawModelValue)&&d.hashGetter(d.ngModel.$$rawModelValue)===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?fe.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(fe.element('<div class="md-text">').append(e.contents())),e.attr("tabindex",t.tabindex||"0"),function(e){var t=e.value,n=e.ngValue;return t||n}(t)||e.attr("md-option-empty","");return n}};function n(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())),fe.isDefined(e.ngValue)?r.$watch(e.ngValue,s):fe.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){fe.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(s,l,D,I,r,c,m,u,H){var p=D.dom.animator,h=l.KEY_CODE;return{parent:"body",themable:!0,onShow:function(n,a,d){return function(){d.loadingAsync&&!d.isRemoved&&(n.$$loadingAsyncDone=!1,r.when(d.loadingAsync).then(function(){n.$$loadingAsyncDone=!0,delete d.loadingAsync}).then(function(){c(o)}))}(),function(e,t){var n=a.find("md-select-menu");if(!t.target)throw new Error(D.supplant("$mdSelect.show() expected a target element in options.target but got '{0}'!",[t.target]));fe.extend(t,{isRemoved:!1,target:fe.element(t.target),parent:fe.element(t.parent),selectEl:n,contentEl:a.find("md-content"),optionNodes:n[0].getElementsByTagName("md-option")})}(0,d),d.hideBackdrop=function(e,t,n){n.disableParentScroll&&!D.getClosest(n.target,"MD-DIALOG")?n.restoreScroll=D.disableScrollAround(n.element,n.parent):n.disableParentScroll=!1;n.hasBackdrop&&(n.backdrop=D.createBackdrop(e,"md-select-backdrop md-click-catcher"),u.enter(n.backdrop,H[0].body,null,{duration:0}));return function(){n.backdrop&&n.backdrop.remove(),n.disableParentScroll&&n.restoreScroll(),delete n.restoreScroll}}(n,0,d),function(e,n,t){t.parent!==n.parent()&&n.parent().attr("aria-owns",n.attr("id"));return n.parent().find("md-select-value").attr("aria-hidden","true"),t.parent.append(n),r(function(e,t){try{m(n,{removeClass:"md-leave",duration:0}).start().then(o).then(e)}catch(e){t(e)}})}(0,a,d).then(function(e){return a.attr("aria-hidden","false"),d.alreadyOpen=!0,d.cleanupInteraction=function(){if(d.isRemoved)return;var o=d.selectEl,t=o.controller("mdSelectMenu")||{};return a.addClass("md-clickable"),d.backdrop&&d.backdrop.on("click",e),o.on("keydown",n),o.on("click",r),function(){d.backdrop&&d.backdrop.off("click",e),o.off("keydown",n),o.off("click",r),a.removeClass("md-clickable"),d.isRemoved=!0};function e(e){e.preventDefault(),e.stopPropagation(),d.restoreFocus=!1,D.nextTick(s.hide,!0)}function n(e){switch(e.preventDefault(),e.stopPropagation(),e.keyCode){case h.UP_ARROW:return void i("prev");case h.DOWN_ARROW:return void i("next");case h.SPACE:case h.ENTER:var t=D.getClosest(e.target,"md-option");t&&(o.triggerHandler({type:"click",target:t}),e.preventDefault()),r(e);break;case h.TAB:case h.ESCAPE:e.stopPropagation(),e.preventDefault(),d.restoreFocus=!0,D.nextTick(s.hide,!0);break;default:if(L(e,l)){var n=o.controller("mdSelectMenu").optNodeForKeyboardSearch(e);d.focusedNode=n||d.focusedNode,n&&n.focus()}}}function i(e){for(var t,n=D.nodesToArray(d.optionNodes),o=n.indexOf(d.focusedNode);-1===o?o=0:"next"===e&&o<n.length-1?o++:"prev"===e&&0<o&&o--,(t=n[o]).hasAttribute("disabled")&&(t=ge),!t&&o<n.length-1&&0<o;);t&&t.focus(),d.focusedNode=t}function r(n){if(!(n&&"click"==n.type&&n.currentTarget!=o[0]||function(){var e=!1;if(n&&0<n.currentTarget.children.length){var t=n.currentTarget.children[0];if(t.scrollHeight>t.clientHeight&&0<t.children.length)n.pageX-n.currentTarget.getBoundingClientRect().left>t.querySelector("md-option").offsetWidth&&(e=!0)}return e}())){var e=D.getClosest(n.target,"md-option");e&&e.hasAttribute&&!e.hasAttribute("disabled")&&(n.preventDefault(),n.stopPropagation(),t.isMultiple||(d.restoreFocus=!0,D.nextTick(function(){s.hide(t.ngModel.$viewValue)},!0)))}}}(),d.cleanupResizing=function(){var e=function(o,i,r){return function(){if(!r.isRemoved){var e=f(o,i,r),t=e.container,n=e.dropDown;t.element.css(p.toCss(t.styles)),n.element.css(p.toCss(n.styles))}}}(n,a,d),t=fe.element(I);return t.on("resize",e),t.on("orientationchange",e),function(){t.off("resize",e),t.off("orientationchange",e)}}(),i(d.focusedNode),e},d.hideBackdrop);function o(){return r(function(e){if(d.isRemoved)return r.reject(!1);var t=f(n,a,d);t.container.element.css(p.toCss(t.container.styles)),t.dropDown.element.css(p.toCss(t.dropDown.styles)),c(function(){a.addClass("md-active"),t.dropDown.element.css(p.toCss({transform:""})),i(d.focusedNode),e()})})}function i(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():function(){return(o=m(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 f(e,t,n){var o,i=t[0],r=n.target[0].children[0],a=H[0].body,d=n.selectEl[0],s=n.contentEl[0],l=a.getBoundingClientRect(),c=r.getBoundingClientRect(),m={left:l.left+P,top:P,bottom:l.height-P,right:l.width-P-(D.floatingScrollbars()?16:0)},u=c.top-m.top,p=(c.left,c.left,c.width,m.bottom-(c.top+c.height)),h=l.width-2*P,f=d.querySelector("md-option[selected]"),g=d.getElementsByTagName("md-option"),b=d.getElementsByTagName("md-optgroup"),v=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,s);o=function(e){return e&&fe.isFunction(e.then)}(n.loadingAsync)?s.firstElementChild||s:f||(b.length?b[0]:g.length?g[0]:s.firstElementChild||s),s.offsetWidth>h?s.style["max-width"]=h+"px":s.style.maxWidth=null,v&&d.classList.add("md-overflow");var E=o;"MD-OPTGROUP"===(E.tagName||"").toUpperCase()&&(o=E=g[0]||s.firstElementChild||s),n.focusedNode=E,i.style.display="block";var $,y,C,M,T,A=d.getBoundingClientRect(),w=function(e){return e?{left:e.offsetLeft,top:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}:{left:0,top:0,width:0,height:0}}(o);if(o){var _=I.getComputedStyle(o);w.paddingLeft=parseInt(_.paddingLeft,10)||0,w.paddingRight=parseInt(_.paddingRight,10)||0}if(v){var k=s.offsetHeight/2;s.scrollTop=w.top+w.height/2-k,u<k?s.scrollTop=Math.min(w.top,s.scrollTop+k-u):p<k&&(s.scrollTop=Math.max(w.top+w.height-A.height,s.scrollTop-k+p))}$=c.left+w.left-w.paddingLeft+2,y=Math.floor(c.top+c.height/2-w.height/2-w.top+s.scrollTop)+2,C=w.left+c.width/2+"px "+(w.top+w.height/2-s.scrollTop)+"px 0px",M=Math.min(c.width+w.paddingLeft+w.paddingRight,h),T=R.getComputedStyle(r)["font-size"];var x=i.getBoundingClientRect(),N=Math.round(100*Math.min(c.width/A.width,1))/100,S=Math.round(100*Math.min(c.height/A.height,1))/100;return{container:{element:fe.element(i),styles:{left:Math.floor(O(m.left,$,m.right-x.width)),top:Math.floor(O(m.top,y,m.bottom-x.height)),"min-width":M,"font-size":T}},dropDown:{element:fe.element(d),styles:{transformOrigin:C,transform:n.alreadyOpen?"":D.supplant("scale({0},{1})",[N,S])}}}}}function O(e,t,n){return Math.max(e,Math.min(t,n))}}function L(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)}fe.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=fe.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)}(),fe.module("material.components.showHide",["material.core"]).directive("ngShow",Ye("ngShow",!0)).directive("ngHide",Ye("ngHide",!1)),Ke.$inject=["$mdComponentRegistry","$mdUtil","$q","$log"],Ge.$inject=["$mdMedia","$mdUtil","$mdConstant","$mdTheming","$mdInteraction","$animate","$compile","$parse","$log","$q","$document","$window","$$rAF"],Xe.$inject=["$scope","$attrs","$mdComponentRegistry","$q","$interpolate"],fe.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",Ke).directive("mdSidenav",Ge).directive("mdSidenavFocus",function(){return{restrict:"A",require:"^mdSidenav",link:function(e,t,n,o){}}}).controller("$mdSidenavController",Xe),function(){e.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse","$log","$timeout"],fe.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)return t.attr("md-vertical")!==ge&&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=fe.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=fe.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(n,o,i,e){K(o);var r=e[0]||{$setViewValue:function(e){this.$viewValue=e,this.$viewChangeListeners.forEach(function(e){e()})},$parsers:[],$formatters:[],$viewChangeListeners:[]},a=e[1],d=(fe.element(V.getClosest(o,"_md-slider-container",!0)),i.ngDisabled?fe.bind(null,X(i.ngDisabled),n.$parent):function(){return o[0].hasAttribute("disabled")}),t=fe.element(o[0].querySelector(".md-thumb")),s=fe.element(o[0].querySelector(".md-thumb-text")),l=t.parent(),c=fe.element(o[0].querySelector(".md-track-container")),m=fe.element(o[0].querySelector(".md-track-fill")),u=fe.element(o[0].querySelector(".md-track-ticks")),p=fe.element(o[0].getElementsByClassName("md-slider-wrapper")),h=(fe.element(o[0].getElementsByClassName("md-slider-content")),V.throttle(S,5e3)),f=fe.isDefined(i.mdVertical),g=fe.isDefined(i.mdDiscrete),b=fe.isDefined(i.mdInvert);fe.isDefined(i.min)?i.$observe("min",w):w(0),fe.isDefined(i.max)?i.$observe("max",_):_(100),fe.isDefined(i.step)?i.$observe("step",k):k(1),fe.isDefined(i.round)?i.$observe("round",x):x(3);fe.noop;function v(){S(),O()}i.ngDisabled&&n.$parent.$watch(i.ngDisabled,function(){o.attr("aria-disabled",!!d())}),G.register(p,"drag",{horizontal:!f}),n.mouseActive=!1,p.on("keydown",function(e){if(d())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(r.$viewValue+t))}).on("mousedown",function(){(function(){if(!g||d())return;if(fe.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=fe.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)}})(),n.mouseActive=!0,p.removeClass("md-focused"),Z(function(){n.mouseActive=!1},100)}).on("focus",function(){!1===n.mouseActive&&p.addClass("md-focused")}).on("blur",function(){p.removeClass("md-focused"),o.removeClass("md-active"),function(){if(M&&T){var e=D();T.clearRect(0,0,e.width,e.height)}}()}).on("$md.pressdown",function(e){if(d())return;o.addClass("md-active"),o[0].focus(),S();var t=P(L(j(U(f?e.pointer.y:e.pointer.x))));n.$apply(function(){H(t),R(q(t))})}).on("$md.pressup",function(e){if(d())return;o.removeClass("md-dragging");var t=P(L(j(U(f?e.pointer.y:e.pointer.x))));n.$apply(function(){H(t),O()})}).on("$md.dragstart",function(e){if(d())return;F=!0,e.stopPropagation(),o.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),r.$viewValue=P(r.$modelValue,E,$),p.attr("aria-valuemin",e),v()}function _(e){$=parseFloat(e),r.$viewValue=P(r.$modelValue,E,$),p.attr("aria-valuemax",e),v()}function k(e){y=parseFloat(e)}function x(e){C=P(parseInt(e),0,6)}fe.element(W).on("resize",A),n.$on("$destroy",function(){fe.element(W).off("resize",A)}),r.$render=O,r.$viewChangeListeners.push(O),r.$formatters.push(P),r.$formatters.push(L);var N={};function S(){N=c[0].getBoundingClientRect()}function D(){return h(),N}function I(e){n.$evalAsync(function(){H(e)})}function H(e){r.$setViewValue(P(L(e)))}function O(){isNaN(r.$viewValue)&&(r.$viewValue=r.$modelValue),r.$viewValue=P(r.$viewValue);var e=q(r.$viewValue);n.modelValue=r.$viewValue,p.attr("aria-valuenow",r.$viewValue),R(e),s.text(r.$viewValue)}function P(e,t,n){if(fe.isNumber(e))return t=fe.isNumber(t)?t:E,n=fe.isNumber(n)?n:$,Math.max(t,Math.min(n,e))}function L(e){if(fe.isNumber(e)){var t=Math.round((e-E)/y)*y+E;return t=Math.round(t*Math.pow(10,C))/Math.pow(10,C),a&&a.fitInputWidthToTextLength&&V.debounce(function(){a.fitInputWidthToTextLength(t.toString().length)},100)(),t}}function R(e){var t=100*(e=function(e){return Math.max(0,Math.min(e||0,1))}(e))+"%",n=b?100*(1-e)+"%":t;f?l.css("bottom",t):V.bidiProperty(l,"left","right",t),m.css(f?"height":"width",n),o.toggleClass(b?"md-max":"md-min",0===e),o.toggleClass(b?"md-min":"md-max",1===e)}S();var F=!1;function B(e){g?function(e){var t=P(L(j(U(e))));R(U(e)),s.text(t)}(f?e.pointer.y:e.pointer.x):function(e){n.$evalAsync(function(){H(j(U(e)))})}(f?e.pointer.y:e.pointer.x)}function U(e){var t=(e-(f?N.top:N.left))/(f?N.height:N.width);return!f&&V.isRtl(i)&&(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}}}}(),Qe.$inject=["$mdConstant","$$rAF","$mdUtil","$compile"],fe.module("material.components.sticky",["material.core","material.components.content"]).factory("$mdSticky",Qe),Ze.$inject=["$mdSticky","$compile","$mdTheming","$mdUtil","$mdAria"],fe.module("material.components.subheader",["material.core","material.components.sticky"]).directive("mdSubheader",Ze),fe.module("material.components.swipe",["material.core"]).directive("mdSwipeLeft",Je("SwipeLeft")).directive("mdSwipeRight",Je("SwipeRight")).directive("mdSwipeUp",Je("SwipeUp")).directive("mdSwipeDown",Je("SwipeDown")),et.$inject=["mdCheckboxDirective","$mdUtil","$mdConstant","$parse","$$rAF","$mdGesture","$timeout"],fe.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",et),fe.module("material.components.tabs",["material.core","material.components.icon"]),fe.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=0;for(t=0;t<e.tabs.length;t++)n+=e.tabs[t].offsetWidth;return n}}),fe.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=fe.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=fe.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||fe.noop,e.deselect=e.deselect||fe.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 fe.element(r)}return fe.element()}}),fe.module("material.components.tabs").directive("mdTabItem",function(){return{require:"^?mdTabs",link:function(e,t,n,o){o&&o.attachRipple(e,t)}}}),fe.module("material.components.tabs").directive("mdTabLabel",function(){return{terminal:!0}}),tt.$inject=["$parse"],fe.module("material.components.tabs").directive("mdTabScroll",tt),nt.$inject=["$scope","$element","$window","$mdConstant","$mdTabInkRipple","$mdUtil","$animateCss","$attrs","$compile","$mdTheming","$mdInteraction","$timeout","MdTabsPaginationService"],fe.module("material.components.tabs").controller("MdTabsController",nt),ot.$inject=["$$mdSvgRegistry"],fe.module("material.components.tabs").directive("mdTabs",ot),it.$inject=["$mdUtil","$window"],fe.module("material.components.tabs").directive("mdTabsDummyWrapper",it),rt.$inject=["$compile","$mdUtil"],fe.module("material.components.tabs").directive("mdTabsTemplate",rt),at.$inject=["$mdToast"],dt.$inject=["$$interimElementProvider"],fe.module("material.components.toast",["material.core","material.components.button"]).directive("mdToast",at).provider("$mdToast",dt),st.$inject=["$$rAF","$mdConstant","$mdUtil","$mdTheming","$animate"],fe.module("material.components.toolbar",["material.core","material.components.content"]).directive("mdToolbar",st),lt.$inject=["$timeout","$window","$$rAF","$document","$interpolate","$mdUtil","$mdPanel","$$mdTooltipRegistry"],fe.module("material.components.tooltip",["material.core","material.components.panel"]).directive("mdTooltip",lt).service("$$mdTooltipRegistry",function(){var r={},a=fe.element(R);return{register:function(e,t,n){var o=r[e]=r[e]||[];o.length||(n?R.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?R.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)}}),ct.$inject=["$element"],fe.module("material.components.truncate",["material.core"]).directive("mdTruncate",function(){return{restrict:"AE",controller:ct}}),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"],fe.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.ltr=!n.isRtl(this.$attrs),this.$attrs.mdTopIndex?(this.bindTopIndex=o(this.$attrs.mdTopIndex),this.topIndex=this.bindTopIndex(this.$scope),fe.isDefined(this.topIndex)||(this.topIndex=0,this.bindTopIndex.assign(this.$scope,0)),this.$scope.$watch(this.bindTopIndex,fe.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=fe.bind(this,this.updateSize);e(fe.bind(this,function(){l();var e=n.debounce(l,10,null,!1),t=fe.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_=fe.noop,this.blocks={},this.pooledBlocks=[],e.$on("$destroy",fe.bind(this,this.cleanupBlocks_))}function o(e){if(!fe.isFunction(e.getItemAtIndex)||!fe.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,fe.element(this.scroller).on("scroll wheel touchmove touchend",fe.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(){this.ltr||this.maxSize||(this.scroller.scrollLeft=this.scrollSize,this.maxSize=this.scroller.scrollLeft);var e=this.isHorizontal()?this.ltr?this.scroller.scrollLeft:this.maxSize-this.scroller.scrollLeft:this.scroller.scrollTop;if(!(this.scrollSize<this.size)&&(e>this.scrollSize-this.size&&(e=this.scrollSize-this.size),e!==this.scrollOffset)){var t=this.repeater.getItemSize();if(t){var n=Math.max(0,Math.floor(e/t)-3),o=(this.isHorizontal()?"translateX(":"translateY(")+(!this.isHorizontal()||this.ltr?n*t:-n*t)+"px)";if(this.scrollOffset=e,this.offsetter.style.webkitTransform=o,this.offsetter.style.transform=o,this.bindTopIndex){var i=Math.floor(e/t);i!==this.topIndex&&i<this.repeater.getItemCount()&&(this.topIndex=i,this.bindTopIndex.assign(this.$scope,i),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=fe.bind(this,this.repeatListExpression_),this.container.register(this)},i.prototype.cleanupBlocks_=function(){fe.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_!==fe.noop&&this.unwatchItemSize_(),this.unwatchItemSize_=this.$scope.$watchCollection(this.repeatListExpression,fe.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,fe.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=fe.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(fe.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"]}(),mt.$inject=["$log"],fe.module("material.components.whiteframe",["material.core"]).directive("mdWhiteframe",mt),fe.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 .md-autocomplete-suggestion,.md-autocomplete-suggestions-container.md-THEME_NAME-theme .md-autocomplete-suggestion{color:"{{foreground-1}}"}.md-autocomplete-standard-list-container.md-THEME_NAME-theme .md-autocomplete-suggestion.selected,.md-autocomplete-standard-list-container.md-THEME_NAME-theme .md-autocomplete-suggestion:hover,.md-autocomplete-suggestions-container.md-THEME_NAME-theme .md-autocomplete-suggestion.selected,.md-autocomplete-suggestions-container.md-THEME_NAME-theme .md-autocomplete-suggestion: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::-webkit-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-ms-input-placeholder,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::placeholder{color:"{{foreground-3}}"}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}}";opacity:1}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::-webkit-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input:-ms-input-placeholder,.md-THEME_NAME-theme .md-datepicker-input::-ms-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input::placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input:-moz-placeholder,.md-THEME_NAME-theme .md-datepicker-input::-moz-placeholder{color:"{{foreground-3}}";opacity:1}.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::-webkit-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder,md-input-container.md-THEME_NAME-theme .md-input::-ms-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input::placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder{color:"{{foreground-2}}";opacity:1}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-2}}"}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::-webkit-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-ms-input-placeholder,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::placeholder{color:"{{foreground-2}}"}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}}";opacity:1}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.20"}};
//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(Ba,ha){'use strict';function Va(a,b,d){if(!a)throw jb("areq",b||"?",d||"required");return a}function Wa(a,b){if(!a&&!b)return"";if(!a)return b;if(!b)return a;sa(a)&&(a=a.join(" "));sa(b)&&(b=b.join(" "));return a+" "+b}function kb(a){var b={};a&&(a.to||a.from)&&(b.to=a.to,b.from=a.from);return b}function ta(a,b,d){var k="";a=sa(a)?a:a&&pa(a)&&a.length?a.split(/\s+/):[];L(a,function(r,x){r&&0<r.length&&(k+=0<x?" ":"",k+=d?b+r:r+b)});return k}function Xa(a){if(a instanceof ja)switch(a.length){case 0:return a;
case 1:if(1===a[0].nodeType)return a;break;default:return ja(Na(a))}if(1===a.nodeType)return ja(a)}function Na(a){if(!a[0])return a;for(var b=0;b<a.length;b++){var d=a[b];if(1===d.nodeType)return d}}function lb(a,b,d){L(b,function(k){a.addClass(k,d)})}function mb(a,b,d){L(b,function(k){a.removeClass(k,d)})}function Ga(a){return function(b,d){d.addClass&&(lb(a,b,d.addClass),d.addClass=null);d.removeClass&&(mb(a,b,d.removeClass),d.removeClass=null)}}function Ha(a){a=a||{};if(!a.$$prepared){var b=a.domOperation||
ka;a.domOperation=function(){a.$$domOperationFired=!0;b();b=ka};a.$$prepared=!0}return a}function ya(a,b){Ya(a,b);Za(a,b)}function Ya(a,b){b.from&&(a.css(b.from),b.from=null)}function Za(a,b){b.to&&(a.css(b.to),b.to=null)}function Ca(a,b,d){var k=b.options||{};d=d.options||{};var r=(k.addClass||"")+" "+(d.addClass||""),x=(k.removeClass||"")+" "+(d.removeClass||"");a=nb(a.attr("class"),r,x);d.preparationClasses&&(k.preparationClasses=Ia(d.preparationClasses,k.preparationClasses),delete d.preparationClasses);
r=k.domOperation!==ka?k.domOperation:null;Oa(k,d);r&&(k.domOperation=r);k.addClass=a.addClass?a.addClass:null;k.removeClass=a.removeClass?a.removeClass:null;b.addClass=k.addClass;b.removeClass=k.removeClass;return k}function nb(a,b,d){function k(e){pa(e)&&(e=e.split(" "));var g={};L(e,function(y){y.length&&(g[y]=!0)});return g}var r={};a=k(a);b=k(b);L(b,function(e,g){r[g]=1});d=k(d);L(d,function(e,g){r[g]=1===r[g]?null:-1});var x={addClass:"",removeClass:""};L(r,function(e,g){if(1===e){var y="addClass";
var C=!a[g]||a[g+"-remove"]}else-1===e&&(y="removeClass",C=a[g]||a[g+"-add"]);C&&(x[y].length&&(x[y]+=" "),x[y]+=g)});return x}function ma(a){return a instanceof ja?a[0]:a}function ob(a,b,d){var k="";b&&(k=ta(b,"ng-",!0));d.addClass&&(k=Ia(k,ta(d.addClass,"-add")));d.removeClass&&(k=Ia(k,ta(d.removeClass,"-remove")));k.length&&(d.preparationClasses=k,a.addClass(k))}function Ja(a,b){b=b?"-"+b+"s":"";Da(a,[Ea,b]);return[Ea,b]}function Pa(a,b){b=b?"paused":"";var d=va+"PlayState";Da(a,[d,b]);return[d,
b]}function Da(a,b){a.style[b[0]]=b[1]}function Ia(a,b){return a?b?a+" "+b:a:b}function $a(a,b,d){var k=Object.create(null),r=a.getComputedStyle(b)||{};L(d,function(x,e){if(x=r[x]){var g=x.charAt(0);if("-"===g||"+"===g||0<=g)x=pb(x);0===x&&(x=null);k[e]=x}});return k}function pb(a){var b=0;a=a.split(/\s*,\s*/);L(a,function(d){"s"===d.charAt(d.length-1)&&(d=d.substring(0,d.length-1));d=parseFloat(d)||0;b=b?Math.max(d,b):d});return b}function Qa(a){return 0===a||null!=a}function ab(a,b){var d=qa;a+=
"s";b?d+="Duration":a+=" linear all";return[d,a]}function bb(){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,d){a[b]?a[b].total++:a[b]={total:1,value:d}}}}function cb(a,b,d){L(d,function(k){a[k]=Ra(a[k])?a[k]:b.style.getPropertyValue(k)})}if(void 0===Ba.ontransitionend&&void 0!==Ba.onwebkittransitionend){var qa="WebkitTransition";var db="webkitTransitionEnd transitionend"}else qa=
"transition",db="transitionend";if(void 0===Ba.onanimationend&&void 0!==Ba.onwebkitanimationend){var va="WebkitAnimation";var eb="webkitAnimationEnd animationend"}else va="animation",eb="animationend";var Ka=va+"Delay",Sa=va+"Duration",Ea=qa+"Delay",fb=qa+"Duration",jb=ha.$$minErr("ng");"use strict";"use strict";"use strict";var qb={transitionDuration:fb,transitionDelay:Ea,transitionProperty:qa+"Property",animationDuration:Sa,animationDelay:Ka,animationIterationCount:va+"IterationCount"},rb={transitionDuration:fb,
transitionDelay:Ea,animationDuration:Sa,animationDelay:Ka};"use strict";"use strict";"use strict";"use strict";"use strict";"use strict";"use strict";var Ta,Oa,L,sa,Ra,La,Ua,Ma,pa,za,ja,ka;ha.module("ngAnimate",[],function(){ka=ha.noop;Ta=ha.copy;Oa=ha.extend;ja=ha.element;L=ha.forEach;sa=ha.isArray;pa=ha.isString;Ma=ha.isObject;za=ha.isUndefined;Ra=ha.isDefined;Ua=ha.isFunction;La=ha.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(d,k,r,x,e){var g,y;d.$watchCollection(r.ngAnimateSwap||r["for"],function(C){g&&a.leave(g);y&&(y.$destroy(),y=null);if(C||0===C)y=d.$new(),e(y,function(T){g=T;a.enter(T,null,k)})})}}}]).directive("ngAnimateChildren",["$interpolate",function(a){return{link:function(b,d,k){function r(e){d.data("$$ngAnimateChildren","on"===e||"true"===e)}var x=k.ngAnimateChildren;pa(x)&&0===x.length?d.data("$$ngAnimateChildren",
!0):(r(a(x)(b)),k.$observe("ngAnimateChildren",r))}}}]).factory("$$rAFScheduler",["$$rAF",function(a){function b(x){r=r.concat(x);d()}function d(){if(r.length){for(var x=r.shift(),e=0;e<x.length;e++)x[e]();k||a(function(){k||d()})}}var k;var r=b.queue=[];b.waitUntilQuiet=function(x){k&&k();k=a(function(){k=null;x();d()})};return b}]).provider("$$animateQueue",["$animateProvider",function(a){function b(e){if(!e)return null;e=e.split(" ");var g=Object.create(null);L(e,function(y){g[y]=!0});return g}
function d(e,g){if(e&&g){var y=b(g);return e.split(" ").some(function(C){return y[C]})}}function k(e,g,y){return x[e].some(function(C){return C(g,y)})}function r(e,g){var y=0<(e.addClass||"").length;e=0<(e.removeClass||"").length;return g?y&&e:y||e}var x=this.rules={skip:[],cancel:[],join:[]};x.join.push(function(e,g){return!e.structural&&r(e)});x.skip.push(function(e,g){return!e.structural&&!r(e)});x.skip.push(function(e,g){return"leave"===g.event&&e.structural});x.skip.push(function(e,g){return g.structural&&
2===g.state&&!e.structural});x.cancel.push(function(e,g){return g.structural&&e.structural});x.cancel.push(function(e,g){return 2===g.state&&e.structural});x.cancel.push(function(e,g){if(g.structural)return!1;var y=e.addClass;e=e.removeClass;var C=g.addClass;g=g.removeClass;return za(y)&&za(e)||za(C)&&za(g)?!1:d(y,g)||d(e,C)});this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(e,
g,y,C,T,I,Y,V,z,P,M){function N(){var h=!1;return function(l){h?l():g.$$postDigest(function(){h=!0;l()})}}function n(h,l,q){var G=[],W=f[q];W&&L(W,function(A){X.call(A.node,l)?G.push(A.callback):"leave"===q&&X.call(A.node,h)&&G.push(A.callback)});return G}function t(h,l,q){var G=Na(l);return h.filter(function(W){return!(W.node===G&&(!q||W.callback===q))})}function u(h,l,q){function G(p,ca,ba,ra){wa(function(){var ea=n(na,O,ca);ea.length?e(function(){L(ea,function(la){la(Q,ba,ra)});"close"!==ba||O.parentNode||
aa.off(O)}):"close"!==ba||O.parentNode||aa.off(O)});p.progress(ca,ba,ra)}function W(p){var ca=Q,ba=A;ba.preparationClasses&&(ca.removeClass(ba.preparationClasses),ba.preparationClasses=null);ba.activeClasses&&(ca.removeClass(ba.activeClasses),ba.activeClasses=null);R(Q,A);ya(Q,A);A.domOperation();U.complete(!p)}var A=Ta(q),Q=Xa(h),O=ma(Q),na=O&&O.parentNode;A=Ha(A);var U=new Y,wa=N();sa(A.addClass)&&(A.addClass=A.addClass.join(" "));A.addClass&&!pa(A.addClass)&&(A.addClass=null);sa(A.removeClass)&&
(A.removeClass=A.removeClass.join(" "));A.removeClass&&!pa(A.removeClass)&&(A.removeClass=null);A.from&&!Ma(A.from)&&(A.from=null);A.to&&!Ma(A.to)&&(A.to=null);if(!(c&&O&&J(O,l,q)&&B(O,A)))return W(),U;var ua=0<=["enter","move","leave"].indexOf(l),F=M(),ia=F||m.get(O);q=!ia&&D.get(O)||{};var oa=!!q.state;ia||oa&&1===q.state||(ia=!H(O,na,l));if(ia)return F&&G(U,l,"start"),W(),F&&G(U,l,"close"),U;ua&&S(O);F={structural:ua,element:Q,event:l,addClass:A.addClass,removeClass:A.removeClass,close:W,options:A,
runner:U};if(oa){if(k("skip",F,q)){if(2===q.state)return W(),U;Ca(Q,q,F);return q.runner}if(k("cancel",F,q))if(2===q.state)q.runner.end();else if(q.structural)q.close();else return Ca(Q,q,F),q.runner;else if(k("join",F,q))if(2===q.state)Ca(Q,F,{});else return ob(Q,ua?l:null,A),l=F.event=q.event,A=Ca(Q,q,F),q.runner}else Ca(Q,F,{});(oa=F.structural)||(oa="animate"===F.event&&0<Object.keys(F.options.to||{}).length||r(F));if(!oa)return W(),v(O),U;var da=(q.counter||0)+1;F.counter=da;w(O,1,F);g.$$postDigest(function(){Q=
Xa(h);var p=D.get(O),ca=!p;p=p||{};var ba=0<(Q.parent()||[]).length&&("animate"===p.event||p.structural||r(p));if(ca||p.counter!==da||!ba){ca&&(R(Q,A),ya(Q,A));if(ca||ua&&p.event!==l)A.domOperation(),U.end();ba||v(O)}else l=!p.structural&&r(p,!0)?"setClass":p.event,w(O,2),p=I(Q,l,p.options),U.setHost(p),G(U,l,"start",{}),p.done(function(ra){W(!ra);(ra=D.get(O))&&ra.counter===da&&v(O);G(U,l,"close",{})})});return U}function S(h){h=h.querySelectorAll("[data-ng-animate]");L(h,function(l){var q=parseInt(l.getAttribute("data-ng-animate"),
10),G=D.get(l);if(G)switch(q){case 2:G.runner.end();case 1:D.delete(l)}})}function v(h){h.removeAttribute("data-ng-animate");D.delete(h)}function H(h,l,q){q=C[0].body;var G=ma(y),W=h===q||"HTML"===h.nodeName,A=h===G,Q=!1,O=m.get(h),na;for((h=ja.data(h,"$ngAnimatePin"))&&(l=ma(h));l;){A||(A=l===G);if(1!==l.nodeType)break;h=D.get(l)||{};if(!Q){var U=m.get(l);if(!0===U&&!1!==O){O=!0;break}else!1===U&&(O=!1);Q=h.structural}if(za(na)||!0===na)h=ja.data(l,"$$ngAnimateChildren"),Ra(h)&&(na=h);if(Q&&!1===
na)break;W||(W=l===q);if(W&&A)break;if(!A&&(h=ja.data(l,"$ngAnimatePin"))){l=ma(h);continue}l=l.parentNode}return(!Q||na)&&!0!==O&&A&&W}function w(h,l,q){q=q||{};q.state=l;h.setAttribute("data-ng-animate",l);q=(l=D.get(h))?Oa(l,q):q;D.set(h,q)}var D=new T,m=new T,c=null,E=g.$watch(function(){return 0===V.totalPendingRequests},function(h){h&&(E(),g.$$postDigest(function(){g.$$postDigest(function(){null===c&&(c=!0)})}))}),f=Object.create(null);T=a.customFilter();var K=a.classNameFilter();P=function(){return!0};
var J=T||P,B=K?function(h,l){h=[h.getAttribute("class"),l.addClass,l.removeClass].join(" ");return K.test(h)}:P,R=Ga(z),X=Ba.Node.prototype.contains||function(h){return this===h||!!(this.compareDocumentPosition(h)&16)},aa={on:function(h,l,q){var G=Na(l);f[h]=f[h]||[];f[h].push({node:G,callback:q});ja(l).on("$destroy",function(){D.get(G)||aa.off(h,l,q)})},off:function(h,l,q){if(1!==arguments.length||pa(arguments[0])){var G=f[h];G&&(f[h]=1===arguments.length?null:t(G,l,q))}else for(G in l=arguments[0],
f)f[G]=t(f[G],l)},pin:function(h,l){Va(La(h),"element","not an element");Va(La(l),"parentElement","not an element");h.data("$ngAnimatePin",l)},push:function(h,l,q,G){q=q||{};q.domOperation=G;return u(h,l,q)},enabled:function(h,l){var q=arguments.length;if(0===q)l=!!c;else if(La(h)){var G=ma(h);1===q?l=!m.get(G):m.set(G,!l)}else l=c=!!h;return l}};return aa}]}]).provider("$$animation",["$animateProvider",function(a){var b=this.drivers=[];this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner",
"$$Map","$$rAFScheduler",function(d,k,r,x,e,g){function y(I){function Y(N){if(N.processed)return N;N.processed=!0;var n=N.domNode,t=n.parentNode;P.set(n,N);for(var u;t;){if(u=P.get(t)){u.processed||(u=Y(u));break}t=t.parentNode}(u||V).children.push(N);return N}var V={children:[]},z,P=new e;for(z=0;z<I.length;z++){var M=I[z];P.set(M.domNode,I[z]={domNode:M.domNode,fn:M.fn,children:[]})}for(z=0;z<I.length;z++)Y(I[z]);return function(N){var n=[],t=[],u;for(u=0;u<N.children.length;u++)t.push(N.children[u]);
N=t.length;var S=0,v=[];for(u=0;u<t.length;u++){var H=t[u];0>=N&&(N=S,S=0,n.push(v),v=[]);v.push(H.fn);H.children.forEach(function(w){S++;t.push(w)});N--}v.length&&n.push(v);return n}(V)}var C=[],T=Ga(d);return function(I,Y,V){function z(m){m=m.hasAttribute("ng-animate-ref")?[m]:m.querySelectorAll("[ng-animate-ref]");var c=[];L(m,function(E){var f=E.getAttribute("ng-animate-ref");f&&f.length&&c.push(E)});return c}function P(m){var c=[],E={};L(m,function(J,B){var R=ma(J.element),X=0<=["enter","move"].indexOf(J.event);
R=J.structural?z(R):[];if(R.length){var aa=X?"to":"from";L(R,function(h){var l=h.getAttribute("ng-animate-ref");E[l]=E[l]||{};E[l][aa]={animationID:B,element:ja(h)}})}else c.push(J)});var f={},K={};L(E,function(J,B){B=J.from;J=J.to;if(B&&J){var R=m[B.animationID],X=m[J.animationID],aa=B.animationID.toString();if(!K[aa]){var h=K[aa]={structural:!0,beforeStart:function(){R.beforeStart();X.beforeStart()},close:function(){R.close();X.close()},classes:M(R.classes,X.classes),from:R,to:X,anchors:[]};h.classes.length?
c.push(h):(c.push(R),c.push(X))}K[aa].anchors.push({out:B.element,"in":J.element})}else B=B?B.animationID:J.animationID,J=B.toString(),f[J]||(f[J]=!0,c.push(m[B]))});return c}function M(m,c){m=m.split(" ");c=c.split(" ");for(var E=[],f=0;f<m.length;f++){var K=m[f];if("ng-"!==K.substring(0,3))for(var J=0;J<c.length;J++)if(K===c[J]){E.push(K);break}}return E.join(" ")}function N(m){for(var c=b.length-1;0<=c;c--){var E=r.get(b[c])(m);if(E)return E}}function n(m,c){function E(f){(f=f.data("$$animationRunner"))&&
f.setHost(c)}m.from&&m.to?(E(m.from.element),E(m.to.element)):E(m.element)}function t(){var m=I.data("$$animationRunner");!m||"leave"===Y&&V.$$domOperationFired||m.end()}function u(m){I.off("$destroy",t);I.removeData("$$animationRunner");T(I,V);ya(I,V);V.domOperation();w&&d.removeClass(I,w);I.removeClass("ng-animate");v.complete(!m)}V=Ha(V);var S=0<=["enter","move","leave"].indexOf(Y),v=new x({end:function(){u()},cancel:function(){u(!0)}});if(!b.length)return u(),v;I.data("$$animationRunner",v);var H=
Wa(I.attr("class"),Wa(V.addClass,V.removeClass)),w=V.tempClasses;w&&(H+=" "+w,V.tempClasses=null);if(S){var D="ng-"+Y+"-prepare";d.addClass(I,D)}C.push({element:I,classes:H,event:Y,structural:S,options:V,beforeStart:function(){I.addClass("ng-animate");w&&d.addClass(I,w);D&&(d.removeClass(I,D),D=null)},close:u});I.on("$destroy",t);if(1<C.length)return v;k.$$postDigest(function(){var m=[];L(C,function(f){f.element.data("$$animationRunner")?m.push(f):f.close()});C.length=0;var c=P(m),E=[];L(c,function(f){E.push({domNode:ma(f.from?
f.from.element:f.element),fn:function(){f.beforeStart();var K=f.close;if((f.anchors?f.from.element||f.to.element:f.element).data("$$animationRunner")){var J=N(f);if(J)var B=J.start}B?(B=B(),B.done(function(R){K(!R)}),n(f,B)):K()}})});g(y(E))});return v}}]}]).provider("$animateCss",["$animateProvider",function(a){var b=bb(),d=bb();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(k,r,x,e,g,y,C,T){function I(n,t){var u=
n.parentNode;return(u.$$ngAnimateParentKey||(u.$$ngAnimateParentKey=++M))+"-"+n.getAttribute("class")+"-"+t}function Y(n,t,u,S){if(0<b.count(u)){var v=d.get(u);v||(t=ta(t,"-stagger"),r.addClass(n,t),v=$a(k,n,S),v.animationDuration=Math.max(v.animationDuration,0),v.transitionDuration=Math.max(v.transitionDuration,0),r.removeClass(n,t),d.put(u,v))}return v||{}}function V(n){N.push(n);C.waitUntilQuiet(function(){b.flush();d.flush();for(var t=g(),u=0;u<N.length;u++)N[u](t);N.length=0})}function z(n,t,
u){t=b.get(u);t||(t=$a(k,n,qb),"infinite"===t.animationIterationCount&&(t.animationIterationCount=1));b.put(u,t);n=t;u=n.animationDelay;t=n.transitionDelay;n.maxDelay=u&&t?Math.max(u,t):u||t;n.maxDuration=Math.max(n.animationDuration*n.animationIterationCount,n.transitionDuration);return n}var P=Ga(r),M=0,N=[];return function(n,t){function u(){v()}function S(){v(!0)}function v(ea){if(!(R||aa&&X)){R=!0;X=!1;c.$$skipPreparationClasses||r.removeClass(n,Q);r.removeClass(n,na);Pa(f,!1);Ja(f,!1);L(K,function(xa){f.style[xa[0]]=
""});P(n,c);ya(n,c);Object.keys(E).length&&L(E,function(xa,Fa){xa?f.style.setProperty(Fa,xa):f.style.removeProperty(Fa)});if(c.onDone)c.onDone();G&&G.length&&n.off(G.join(" "),D);var la=n.data("$$animateCss");la&&(e.cancel(la[0].timer),n.removeData("$$animateCss"));h&&h.complete(!ea)}}function H(ea){p.blockTransition&&Ja(f,ea);p.blockKeyframeAnimation&&Pa(f,!!ea)}function w(){h=new x({end:u,cancel:S});V(ka);v();return{$$willAnimate:!1,start:function(){return h},end:u}}function D(ea){ea.stopPropagation();
var la=ea.originalEvent||ea;la.target===f&&(ea=la.$manualTimeStamp||Date.now(),la=parseFloat(la.elapsedTime.toFixed(3)),Math.max(ea-q,0)>=ba&&la>=da&&(aa=!0,v()))}function m(){function ea(){if(!R){H(!1);L(K,function(gb){f.style[gb[0]]=gb[1]});P(n,c);r.addClass(n,na);if(p.recalculateTimingStyles){O=f.getAttribute("class")+" "+Q;wa=I(f,O);F=z(f,O,wa);ia=F.maxDelay;oa=Math.max(ia,0);da=F.maxDuration;if(0===da){v();return}p.hasTransitions=0<F.transitionDuration;p.hasAnimations=0<F.animationDuration}p.applyAnimationDelay&&
(ia="boolean"!==typeof c.delay&&Qa(c.delay)?parseFloat(c.delay):ia,oa=Math.max(ia,0),F.animationDelay=ia,ca=[Ka,ia+"s"],K.push(ca),f.style[ca[0]]=ca[1]);ba=1E3*oa;ra=1E3*da;if(c.easing){var Z=c.easing;if(p.hasTransitions){var fa=qa+"TimingFunction";K.push([fa,Z]);f.style[fa]=Z}p.hasAnimations&&(fa=va+"TimingFunction",K.push([fa,Z]),f.style[fa]=Z)}F.transitionDuration&&G.push(db);F.animationDuration&&G.push(eb);q=Date.now();var Aa=ba+1.5*ra;fa=q+Aa;Z=n.data("$$animateCss")||[];var hb=!0;if(Z.length){var ib=
Z[0];(hb=fa>ib.expectedEndTime)?e.cancel(ib.timer):Z.push(v)}hb&&(Aa=e(la,Aa,!1),Z[0]={timer:Aa,expectedEndTime:fa},Z.push(v),n.data("$$animateCss",Z));if(G.length)n.on(G.join(" "),D);c.to&&(c.cleanupStyles&&cb(E,f,Object.keys(c.to)),Za(n,c))}}function la(){var Z=n.data("$$animateCss");if(Z){for(var fa=1;fa<Z.length;fa++)Z[fa]();n.removeData("$$animateCss")}}if(!R)if(f.parentNode){var xa=function(Z){if(aa)X&&Z&&(X=!1,v());else if(X=!Z,F.animationDuration)if(Z=Pa(f,X),X)K.push(Z);else{var fa=K,Aa=
fa.indexOf(Z);0<=Z&&fa.splice(Aa,1)}},Fa=0<ua&&(F.transitionDuration&&0===U.transitionDuration||F.animationDuration&&0===U.animationDuration)&&Math.max(U.animationDelay,U.transitionDelay);Fa?e(ea,Math.floor(Fa*ua*1E3),!1):ea();l.resume=function(){xa(!0)};l.pause=function(){xa(!1)}}else v()}var c=t||{};c.$$prepared||(c=Ha(Ta(c)));var E={},f=ma(n);if(!f||!f.parentNode||!T.enabled())return w();var K=[],J=n.attr("class"),B=kb(c),R,X,aa,h,l,q,G=[];if(0===c.duration||!y.animations&&!y.transitions)return w();
var W=c.event&&sa(c.event)?c.event.join(" "):c.event,A="";t="";W&&c.structural?A=ta(W,"ng-",!0):W&&(A=W);c.addClass&&(t+=ta(c.addClass,"-add"));c.removeClass&&(t.length&&(t+=" "),t+=ta(c.removeClass,"-remove"));c.applyClassesEarly&&t.length&&P(n,c);var Q=[A,t].join(" ").trim(),O=J+" "+Q,na=ta(Q,"-active");J=B.to&&0<Object.keys(B.to).length;if(!(0<(c.keyframeStyle||"").length||J||Q))return w();if(0<c.stagger){B=parseFloat(c.stagger);var U={transitionDelay:B,animationDelay:B,transitionDuration:0,animationDuration:0}}else{var wa=
I(f,O);U=Y(f,Q,wa,rb)}c.$$skipPreparationClasses||r.addClass(n,Q);c.transitionStyle&&(B=[qa,c.transitionStyle],Da(f,B),K.push(B));0<=c.duration&&(B=0<f.style[qa].length,B=ab(c.duration,B),Da(f,B),K.push(B));c.keyframeStyle&&(B=[va,c.keyframeStyle],Da(f,B),K.push(B));var ua=U?0<=c.staggerIndex?c.staggerIndex:b.count(wa):0;(W=0===ua)&&!c.skipBlocking&&Ja(f,9999);var F=z(f,O,wa),ia=F.maxDelay;var oa=Math.max(ia,0);var da=F.maxDuration;var p={};p.hasTransitions=0<F.transitionDuration;p.hasAnimations=
0<F.animationDuration;p.hasTransitionAll=p.hasTransitions&&"all"===F.transitionProperty;p.applyTransitionDuration=J&&(p.hasTransitions&&!p.hasTransitionAll||p.hasAnimations&&!p.hasTransitions);p.applyAnimationDuration=c.duration&&p.hasAnimations;p.applyTransitionDelay=Qa(c.delay)&&(p.applyTransitionDuration||p.hasTransitions);p.applyAnimationDelay=Qa(c.delay)&&p.hasAnimations;p.recalculateTimingStyles=0<t.length;if(p.applyTransitionDuration||p.applyAnimationDuration)da=c.duration?parseFloat(c.duration):
da,p.applyTransitionDuration&&(p.hasTransitions=!0,F.transitionDuration=da,B=0<f.style[qa+"Property"].length,K.push(ab(da,B))),p.applyAnimationDuration&&(p.hasAnimations=!0,F.animationDuration=da,K.push([Sa,da+"s"]));if(0===da&&!p.recalculateTimingStyles)return w();if(null!=c.delay){if("boolean"!==typeof c.delay){var ca=parseFloat(c.delay);oa=Math.max(ca,0)}p.applyTransitionDelay&&K.push([Ea,ca+"s"]);p.applyAnimationDelay&&K.push([Ka,ca+"s"])}null==c.duration&&0<F.transitionDuration&&(p.recalculateTimingStyles=
p.recalculateTimingStyles||W);var ba=1E3*oa;var ra=1E3*da;c.skipBlocking||(p.blockTransition=0<F.transitionDuration,p.blockKeyframeAnimation=0<F.animationDuration&&0<U.animationDelay&&0===U.animationDuration);c.from&&(c.cleanupStyles&&cb(E,f,Object.keys(c.from)),Ya(n,c));p.blockTransition||p.blockKeyframeAnimation?H(da):c.skipBlocking||Ja(f,!1);return{$$willAnimate:!0,end:u,start:function(){if(!R)return l={end:u,cancel:S,resume:null,pause:null},h=new x(l),V(m),h}}}}]}]).provider("$$animateCssDriver",
["$$animationProvider",function(a){a.drivers.push("$$animateCssDriver");this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(b,d,k,r,x,e,g){function y(z,P){pa(z)&&(z=z.split(" "));pa(P)&&(P=P.split(" "));return z.filter(function(M){return-1===P.indexOf(M)}).join(" ")}function C(z,P,M){function N(w){var D={},m=ma(w).getBoundingClientRect();L(["width","height","top","left"],function(c){var E=m[c];switch(c){case "top":E+=Y.scrollTop;break;
case "left":E+=Y.scrollLeft}D[c]=Math.floor(E)+"px"});return D}function n(){var w=(M.attr("class")||"").replace(/\bng-\S+\b/g,""),D=y(w,S);w=y(S,w);D=b(u,{to:N(M),addClass:"ng-anchor-in "+D,removeClass:"ng-anchor-out "+w,delay:!0});return D.$$willAnimate?D:null}function t(){u.remove();P.removeClass("ng-animate-shim");M.removeClass("ng-animate-shim")}var u=ja(ma(P).cloneNode(!0)),S=(u.attr("class")||"").replace(/\bng-\S+\b/g,"");P.addClass("ng-animate-shim");M.addClass("ng-animate-shim");u.addClass("ng-anchor");
V.append(u);z=function(){var w=b(u,{addClass:"ng-anchor-out",delay:!0,from:N(P)});return w.$$willAnimate?w:null}();if(!z){var v=n();if(!v)return t()}var H=z||v;return{start:function(){function w(){m&&m.end()}var D,m=H.start();m.done(function(){m=null;if(!v&&(v=n()))return m=v.start(),m.done(function(){m=null;t();D.complete()}),m;t();D.complete()});return D=new k({end:w,cancel:w})}}}function T(z,P,M,N){var n=I(z,ka),t=I(P,ka),u=[];L(N,function(S){(S=C(M,S.out,S["in"]))&&u.push(S)});if(n||t||0!==u.length)return{start:function(){function S(){L(v,
function(w){w.end()})}var v=[];n&&v.push(n.start());t&&v.push(t.start());L(u,function(w){v.push(w.start())});var H=new k({end:S,cancel:S});k.all(v,function(w){H.complete(w)});return H}}}function I(z){var P=z.element,M=z.options||{};z.structural&&(M.event=z.event,M.structural=!0,M.applyClassesEarly=!0,"leave"===z.event&&(M.onDone=M.domOperation));M.preparationClasses&&(M.event=Ia(M.event,M.preparationClasses));z=b(P,M);return z.$$willAnimate?z:null}if(!x.animations&&!x.transitions)return ka;var Y=
g[0].body;d=ma(r);var V=ja(d.parentNode&&11===d.parentNode.nodeType||Y.contains(d)?d:Y);return function(z){return z.from&&z.to?T(z.from,z.to,z.classes,z.anchors):I(z)}}]}]).provider("$$animateJs",["$animateProvider",function(a){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(b,d,k){function r(e){e=sa(e)?e:e.split(" ");for(var g=[],y={},C=0;C<e.length;C++){var T=e[C],I=a.$$registeredAnimations[T];I&&!y[T]&&(g.push(b.get(I)),y[T]=!0)}return g}var x=Ga(k);return function(e,g,y,C){function T(){C.domOperation();
x(e,C)}function I(H,w,D,m,c){switch(D){case "animate":w=[w,m.from,m.to,c];break;case "setClass":w=[w,P,M,c];break;case "addClass":w=[w,P,c];break;case "removeClass":w=[w,M,c];break;default:w=[w,c]}w.push(m);if(H=H.apply(H,w))if(Ua(H.start)&&(H=H.start()),H instanceof d)H.done(c);else if(Ua(H))return H;return ka}function Y(H,w,D,m,c){var E=[];L(m,function(f){var K=f[c];K&&E.push(function(){var J=!1,B=function(aa){J||(J=!0,(X||ka)(aa),R.complete(!aa))};var R=new d({end:function(){B()},cancel:function(){B(!0)}});
var X=I(K,H,w,D,function(aa){B(!1===aa)});return R})});return E}function V(H,w,D,m,c){var E=Y(H,w,D,m,c);if(0===E.length){if("beforeSetClass"===c){var f=Y(H,"removeClass",D,m,"beforeRemoveClass");var K=Y(H,"addClass",D,m,"beforeAddClass")}else"setClass"===c&&(f=Y(H,"removeClass",D,m,"removeClass"),K=Y(H,"addClass",D,m,"addClass"));f&&(E=E.concat(f));K&&(E=E.concat(K))}if(0!==E.length)return function(J){var B=[];E.length&&L(E,function(R){B.push(R())});B.length?d.all(B,J):J();return function(R){L(B,
function(X){R?X.cancel():X.end()})}}}var z=!1;3===arguments.length&&Ma(y)&&(C=y,y=null);C=Ha(C);y||(y=e.attr("class")||"",C.addClass&&(y+=" "+C.addClass),C.removeClass&&(y+=" "+C.removeClass));var P=C.addClass,M=C.removeClass,N=r(y),n;if(N.length){if("leave"===g){var t="leave";var u="afterLeave"}else t="before"+g.charAt(0).toUpperCase()+g.substr(1),u=g;"enter"!==g&&"move"!==g&&(n=V(e,g,C,N,t));var S=V(e,g,C,N,u)}if(n||S){var v;return{$$willAnimate:!0,end:function(){v?v.end():(z=!0,T(),ya(e,C),v=new d,
v.complete(!0));return v},start:function(){function H(m){z=!0;T();ya(e,C);v.complete(m)}if(v)return v;v=new d;var w,D=[];n&&D.push(function(m){w=n(m)});D.length?D.push(function(m){T();m(!0)}):T();S&&D.push(function(m){w=S(m)});v.setHost({end:function(){z||((w||ka)(void 0),H(void 0))},cancel:function(){z||((w||ka)(!0),H(!0))}});d.chain(D,H);return v}}}}}]}]).provider("$$animateJsDriver",["$$animationProvider",function(a){a.drivers.push("$$animateJsDriver");this.$get=["$$animateJs","$$AnimateRunner",
function(b,d){function k(r){return b(r.element,r.event,r.classes,r.options)}return function(r){if(r.from&&r.to){var x=k(r.from),e=k(r.to);return x||e?{start:function(){function g(){return function(){L(y,function(T){T.end()})}}var y=[];x&&y.push(x.start());e&&y.push(e.start());d.all(y,function(T){C.complete(T)});var C=new d({end:g(),cancel:g()});return C}}:void 0}return k(r)}}]}])})(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(A,r){'use strict';var m="BUTTON A INPUT TEXTAREA SELECT DETAILS SUMMARY".split(" "),q=function(b,d){if(-1!==d.indexOf(b[0].nodeName))return!0};r.module("ngAria",["ng"]).info({angularVersion:"1.6.4-local+sha.617b36117"}).provider("$aria",function(){function b(h,n,c,e){return function(f,l,a){var g=a.$normalize(n);!d[g]||q(l,c)||a[g]||f.$watch(a[h],function(k){k=e?!k:!!k;l.attr(n,k)})}}var d={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,
tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};this.config=function(h){d=r.extend(d,h)};this.$get=function(){return{config:function(h){return d[h]},$$watchExpr:b}}}).directive("ngShow",["$aria",function(b){return b.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(b){return b.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(b){return b.$$watchExpr("ngValue","aria-checked",m,!1)}]).directive("ngChecked",["$aria",function(b){return b.$$watchExpr("ngChecked",
"aria-checked",m,!1)}]).directive("ngReadonly",["$aria",function(b){return b.$$watchExpr("ngReadonly","aria-readonly",m,!1)}]).directive("ngRequired",["$aria",function(b){return b.$$watchExpr("ngRequired","aria-required",m,!1)}]).directive("ngModel",["$aria",function(b){function d(c,e,f,l){return b.config(e)&&!f.attr(c)&&(l||!q(f,m))}function h(c,e){return!e.attr("role")&&e.attr("type")===c&&!q(e,m)}function n(c,e){e=c.type;c=c.role;return"checkbox"===(e||c)||"menuitemcheckbox"===c?"checkbox":"radio"===
(e||c)||"menuitemradio"===c?"radio":"range"===e||"progressbar"===c||"slider"===c?"range":""}return{restrict:"A",require:"ngModel",priority:200,compile:function(c,e){var f=n(e,c);return{post:function(l,a,g,k){function t(){return k.$modelValue}function v(p){a.attr("aria-checked",g.value==k.$viewValue)}function w(){a.attr("aria-checked",!k.$isEmpty(k.$viewValue))}var u=d("tabindex","tabindex",a,!1);switch(f){case "radio":case "checkbox":h(f,a)&&a.attr("role",f);d("aria-checked","ariaChecked",a,!1)&&
l.$watch(t,"radio"===f?v:w);u&&a.attr("tabindex",0);break;case "range":h(f,a)&&a.attr("role","slider");if(b.config("ariaValue")){var x=!a.attr("aria-valuemin")&&(g.hasOwnProperty("min")||g.hasOwnProperty("ngMin")),y=!a.attr("aria-valuemax")&&(g.hasOwnProperty("max")||g.hasOwnProperty("ngMax")),z=!a.attr("aria-valuenow");x&&g.$observe("min",function(p){a.attr("aria-valuemin",p)});y&&g.$observe("max",function(p){a.attr("aria-valuemax",p)});z&&l.$watch(t,function(p){a.attr("aria-valuenow",p)})}u&&a.attr("tabindex",
0)}!g.hasOwnProperty("ngRequired")&&k.$validators.required&&d("aria-required","ariaRequired",a,!1)&&g.$observe("required",function(){a.attr("aria-required",!!g.required)});d("aria-invalid","ariaInvalid",a,!0)&&l.$watch(function(){return k.$invalid},function(p){a.attr("aria-invalid",!!p)})}}}}}]).directive("ngDisabled",["$aria",function(b){return b.$$watchExpr("ngDisabled","aria-disabled",m,!1)}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(b,d,h,n){d.attr("aria-live")||
d.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(b,d){return{restrict:"A",compile:function(h,n){var c=d(n.ngClick);return function(e,f,l){if(!q(f,m)&&(b.config("bindRoleForClick")&&!f.attr("role")&&f.attr("role","button"),b.config("tabindex")&&!f.attr("tabindex")&&f.attr("tabindex",0),b.config("bindKeydown")&&!l.ngKeydown&&!l.ngKeypress&&!l.ngKeyup))f.on("keydown",function(a){function g(){c(e,{$event:a})}var k=a.which||a.keyCode;32!==k&&13!==k||e.$apply(g)})}}}}]).directive("ngDblclick",
["$aria",function(b){return function(d,h,n){!b.config("tabindex")||h.attr("tabindex")||q(h,m)||h.attr("tabindex",0)}}])})(window,window.angular);

