7 lines
415 KiB
JavaScript
7 lines
415 KiB
JavaScript
/*!
|
|
* AngularJS Material Design
|
|
* https://github.com/angular/material
|
|
* @license MIT
|
|
* v1.2.3
|
|
*/
|
|
!function(y,be,ge){"use strict";function e(e,t){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(i){return i.throttle=function(e){var t,n,o,r;return function(){t=arguments,r=this,o=e,n||(n=!0,i(function(){o.apply(r,Array.prototype.slice.call(t)),n=!1}))}},i}function o(e){return e.resolve||(e.resolve=e.when),e}function r(r){return{restrict:"A",link:{pre:function(e,t,n){n=n.mdAutoFocus||n.mdAutofocus||n.mdSidenavFocus;o(r(n)(e)),n&&e.$watch(n,o);function o(e){be.isUndefined(e)&&(e=!0),t.toggleClass("md-autofocus",!!e)}}}}}function i(e,d){function s(){return!0}e&&!be.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;be.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:be.bind(null,n,!1),previous:be.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 r=m(t);;){if(!c(r))return null;var i=r+(e?-1:1),a=null;if(c(i)?a=l[i]:d&&(i=m(a=(e?p:u)())),null===a||i===o)return null;if(n(a))return a;be.isUndefined(o)&&(o=i),r=i}}}function a(a,t,o){var r={},i={},d={},n={};return e.getResponsiveAttribute=function(e,t){for(var n=0;n<a.MEDIA_PRIORITY.length;n++){var o=a.MEDIA_PRIORITY[n];if(i[r[o]].matches){o=l(e,t+"-"+o);if(e[o])return e[o]}}return e[l(e,t)]},e.getQuery=function(e){return i[e]},e.watchResponsiveAttributes=function(e,o,r){var i=[];return e.forEach(function(e){var t,n=l(o,e);for(t in be.isDefined(o[n])&&i.push(o.$observe(n,be.bind(void 0,r,null))),a.MEDIA)n=l(o,e+"-"+t),be.isDefined(o[n])&&i.push(o.$observe(n,be.bind(void 0,r,t)))}),function(){i.forEach(function(e){e()})}},e;function e(e){var t=r[e];be.isUndefined(t)&&(t=r[e]=(n=e,a.MEDIA[n]||("("!==n.charAt(0)?"("+n+")":n)));var n=d[t];return n=be.isUndefined(n)?function(e){var t=i[e];t=t||(i[e]=o.matchMedia(e));return t.addListener(s),d[t.media]=!!t.matches}(t):n}function s(e){t.$evalAsync(function(){d[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:r)(e):{buildList:r,buildSelector:n,hasAttribute:function(e,t){if(!(e=i(e)))return!1;for(var n=r(t),o=0;o<n.length;o++)if(e.hasAttribute(n[o]))return!0;return!1},removeAttribute:function(t,e){(t=i(t))&&r(e).forEach(function(e){t.removeAttribute(e)})}};function r(n){return(n=be.isArray(n)?n:[n]).forEach(function(t){o.forEach(function(e){n.push(e+"-"+t)})}),n}function n(e){return r(e=be.isArray(e)?e:[e]).map(function(e){return"["+e+"]"}).join(",")}function i(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,b,g,E,v,$,M,C,T;function S(o,r,d,i){var a=this.showWarnings;return{expect:s,expectAsync:l,expectWithText:function(e,t){var n=c(e)||"";-1<n.indexOf(i.startSymbol())?l(e,t,function(){return c(e)}):s(e,t,n)},expectWithoutText:function(e,t){var n=c(e);-1<n.indexOf(i.startSymbol())||n||s(e,t,n)},getText:c,hasAriaLabel:m,parentHasAriaLabel:function e(t,n){n=n||1;t=be.element(t)[0]||t;if(!t.parentNode)return!1;if(o(t.parentNode))return!0;n--;if(n)return e(t.parentNode,n);return!1;function o(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 s(e,t,n){var o=be.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 r=e.childNodes,i=0;i<r.length;i++){var a=r[i];1===a.nodeType&&a.hasAttribute(t)&&!function(e){return"none"===(e.currentStyle||d.getComputedStyle(e)).display}(a)&&(o=!0)}return o}(o,t)||((n=be.isString(n)?n.trim():"").length?e.attr(t,n):a&&r.warn('ARIA: Attribute "',t,'", required for accessibility, is missing on node:',o))}function l(e,t,n){o(function(){s(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();)!function(e){for(;e.parentNode&&(e=e.parentNode)!==t;)if(e.getAttribute&&"true"===e.getAttribute("aria-hidden"))return!0}(e)&&(o+=e.textContent);return o.trim()||""}function m(e){e=be.element(e)[0]||e;return!!e.hasAttribute&&(e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")||e.hasAttribute("aria-describedby"))}}function D(){function i(e,t,n,o,r){this.$q=e,this.$templateRequest=t,this.$injector=n,this.$compile=o,this.$controller=r}this.$get=["$q","$templateRequest","$injector","$compile","$controller",function(e,t,n,o,r){return new i(e,t,n,o,r)}],i.prototype.compile=function(e){return e.contentElement?this._prepareContentElement(e):this._compileTemplate(e)},i.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}})},i.prototype._compileTemplate=function(n){var o=this,e=n.templateUrl,t=n.template||"",r=be.extend({},n.resolve),i=be.extend({},n.locals),a=n.transformTemplate||be.identity;return be.forEach(r,function(e,t){be.isString(e)?r[t]=o.$injector.get(e):r[t]=o.$injector.invoke(e)}),be.extend(r,i),r.$$ngTemplate=e?this.$templateRequest(e):this.$q.when(t),this.$q.all(r).then(function(e){var t=a(e.$$ngTemplate,n),t=n.element||be.element("<div>").html(t.trim()).contents();return o._compileElement(e,t,n)})},i.prototype._compileElement=function(o,r,i){var a=this,d=this.$compile(r),s={element:r,cleanup:r.remove.bind(r),locals:o,link:function(e){{var t,n;o.$scope=e,i.controller&&(t=be.extend({},o,{$element:r}),n=a._createController(i,t,o),be.isFunction(n.$onDestroy)&&e.$on("$destroy",function(){be.isFunction(n.$onDestroy)&&n.$onDestroy()}),r.data("$ngControllerController",n),r.children().data("$ngControllerController",n),s.controller=n)}return d(e)}};return s},i.prototype._createController=function(e,t,n){var o=this.$controller(e.controller,t);return e.bindToController&&be.extend(o,n),e.controllerAs&&(t.$scope[e.controllerAs]=o),be.isFunction(o.$onInit)&&o.$onInit(),o},i.prototype._fetchContentElement=function(e){var t=e.contentElement,e=be.isString(t)?n(t=document.querySelector(t)):(t=t[0]||t,document.contains(t)?n(t):function(){t.parentNode&&t.parentNode.removeChild(t)});return{element:be.element(t),restore:e};function n(e){var t=e.parentNode,n=e.nextElementSibling;return function(){n?t.insertBefore(e,n):t.appendChild(e)}}}}function H(e,t,n){this.$timeout=e,this.$mdUtil=t,this.$rootScope=n,this.pointerEvent="MSPointerEvent"in y?"MSPointerDown":"PointerEvent"in y?"pointerdown":null,this.bodyElement=be.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 I(e){return e.replace(p,"").replace(h,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&&(F(o,j(o,t,""),B(0,o,t)),r(0,e),n=r),n||be.noop}}}];function r(e,t){t.addClass(o)}}function R(e,t,n,o){n=n[0].nodeName.toLowerCase();"flex"===e.replace(g,"")&&("md-button"!==n&&"fieldset"!==n||o.warn(l.supplant("Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",["<"+n+" "+e+"></"+n+">","https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers"])))}function F(e,t,n){var o=t;if(!U(t)){switch(e.replace(g,"")){case"layout":z(t,$)||(t=$[0]);break;case"flex":z(t,v)||isNaN(t)&&(t="");break;case"flex-offset":case"flex-order":t&&!isNaN(+t)||(t="0");break;case"layout-align":var r=function(e){var t={main:"start",cross:"stretch"};0!==(e=e||"").indexOf("-")&&0!==e.indexOf(" ")||(e="none"+e);(e=e.toLowerCase().trim().replace(E,"-").split("-")).length&&"space"===e[0]&&(e=[e[0]+"-"+e[1],e[2]]);0<e.length&&(t.main=e[0]||t.main);1<e.length&&(t.cross=e[1]||t.cross);M.indexOf(t.main)<0&&(t.main="start");C.indexOf(t.cross)<0&&(t.cross="stretch");return t}(t);t=l.supplant("{main}-{cross}",r);break;case"layout-padding":case"layout-margin":case"layout-fill":case"layout-wrap":case"layout-nowrap":t=""}t!==o&&(n||be.noop)(t)}return t?t.trim():""}function B(e,t,n){return function(e){U(e)||(n[n.$normalize(t)]=e)}}function U(e){return-1<(e||"").indexOf(c.startSymbol())}function j(e,t,n){e=t.$normalize(e);return t[e]?t[e].trim().replace(E,"-"):n||null}function z(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 q(e){this._$timeout=e,this._liveElement=this._createLiveElement(),this._announceTimeout=100}function V(n,o){var r,i=[],a={};return r={notFoundError:function(e,t){n.error((t||"")+"No instance found for handle",e)},getInstances:function(){return i},get:function(e){if(!d(e))return null;for(var t,n=0,o=i.length;n<o;n++)if((t=i[n]).$$mdHandle===e)return t;return null},register:function(t,e){return e?(t.$$mdHandle=e,i.push(t),(n=a[e])&&(n.forEach(function(e){e.resolve(t)}),delete a[e]),function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}):be.noop;var n},when:function(e){if(d(e)){var t=o.defer(),n=r.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 W(r){return{attach:function(e,t,n){var o;return n=be.extend((o=t).hasClass("md-icon-button")?{isMenuItem:o.hasClass("md-menu-item"),fitRipple:!0,center:!0}:{isMenuItem:o.hasClass("md-menu-item"),dimBackground:!0},n),r.attach(e,t,n)}}}function Y(o){return{attach:function(e,t,n){return o.attach(e,t,be.extend({center:!0,dimBackground:!1,fitRipple:!0},n))}}}function K(o){return{attach:function(e,t,n){return o.attach(e,t,be.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},n))}}}function G(o){return{attach:function(e,t,n){return o.attach(e,t,be.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},n))}}}function X(s){var l="virtual",t=["standard",l];function c(e){return e?(e=e.toLowerCase(),-1<t.indexOf(e)?e:l):l}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",noMatchMessage:"@?mdNoMatchMessage",singleMatchMessage:"@?mdSingleMatchMessage",multipleMatchStartMessage:"@?mdMultipleMatchStartMessage",multipleMatchEndMessage:"@?mdMultipleMatchEndMessage",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"),be.isDefined(n.mdClearButton)||e.floatingLabel||(e.clearButton=!0),e.mdMode=c(n.mdMode),t.on("click touchstart touchend",function(e){e.stopPropagation()})}},template:function(n,e){var t,o=(t=(t=n.find("md-not-found").detach()).length?t.html():"")?'<li ng-if="$mdAutocompleteCtrl.notFoundVisible()" class="md-autocomplete-suggestion" md-autocomplete-parent-scope>'+t+"</li>":"",r=function(){var e=n.find("md-item-template").detach(),t=(e.length?e:n).html();e.length||n.empty();return"<md-autocomplete-parent-scope md-autocomplete-replace>"+t+"</md-autocomplete-parent-scope>"}(),i=n.html(),a=e.tabindex;return o&&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!=a?'tabindex="'+a+'"':"")+' 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>'+i+"</div> </md-input-container>":' <input type="text" '+(null!=a?'tabindex="'+a+'"':"")+' 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="'+s.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:"",d(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() }" ng-mouseenter="$mdAutocompleteCtrl.listEnter()" ng-mouseleave="$mdAutocompleteCtrl.listLeave()" 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() }" ng-mouseenter="$mdAutocompleteCtrl.listEnter()" ng-mouseleave="$mdAutocompleteCtrl.listLeave()" role="presentation">'}(e.mdMenuContainerClass,e.mdMode)+' <ul class="md-autocomplete-suggestions" ng-class="::menuClass" id="ul-{{$mdAutocompleteCtrl.id}}" ng-mouseup="$mdAutocompleteCtrl.focusInput()" role="listbox"> <li class="md-autocomplete-suggestion" '+(d(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>"+o+" </ul> "+(d(e.mdMode)?" </div> </div> </div>":"</md-virtual-repeat-container>")+" </md-autocomplete-wrap>";function d(e){return c(e)!==l}}}}function Z(e,l){return{restrict:"AE",compile:function(e,t,s){return function(n,t,e){var o,r,i=n.$mdAutocompleteCtrl,a=i.parent.$new(),i=i.itemName;function d(e,t){a[t]=n[e],n.$watch(e,function(e){l.nextTick(function(){a[t]=e})})}d("$index","$index"),d("item",i),r=o=!1,n.$watch(function(){r||o||(o=!0,n.$$postDigest(function(){r||a.$digest(),o=r=!1}))}),a.$watch(function(){r=!0}),s(a,function(e){t.after(e)})}},terminal:!0,transclude:"element"}}function Q(e,t,n,o){this.$scope=e,this.$element=t,this.$attrs=n,this.$mdUtil=o,this.regex=null}function J(n,o){return{terminal:!0,controller:"MdHighlightCtrl",compile:function(e,t){var r=o(t.mdHighlightText),i=n(e.html());return function(e,t,n,o){o.init(r,i)}}}}function ee(n){return{restrict:"E",link:function(e,t){t.addClass("_md"),e.$on("$destroy",function(){n.destroy()})}}}function te(e){t.$inject=["$animate","$mdConstant","$mdUtil","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture","$log"];var u=.5,p=80;return e("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","clickOutsideToClose"],options:t});function t(o,a,d,r,s,i,l,c){var m;return{themable:!0,onShow:function(e,t,n){(t=d.extractElementByName(t,"md-bottom-sheet")).attr("tabindex","-1"),t.hasClass("ng-cloak")&&c.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(n,e){var t=l.register(e,"drag",{horizontal:!1});return e.on("$md.dragstart",o).on("$md.drag",r).on("$md.dragend",i),function(){t(),e.off("$md.dragstart",o),e.off("$md.drag",r),e.off("$md.dragend",i)};function o(){n.css(a.CSS.TRANSITION_DURATION,"0ms")}function r(e){e=e.pointer.distanceY;e<5&&(e=Math.max(-p,e/2)),n.css(a.CSS.TRANSFORM,"translate3d(0,"+(p+e)+"px,0)")}function i(e){var t;0<e.pointer.distanceY&&(20<e.pointer.distanceY||Math.abs(e.pointer.velocityY)>u)?(t=n.prop("offsetHeight")-e.pointer.distanceY,e=Math.min(t/e.pointer.velocityY*.75,500),n.css(a.CSS.TRANSITION_DURATION,e+"ms"),d.nextTick(s.cancel,!0)):(n.css(a.CSS.TRANSITION_DURATION,""),n.css(a.CSS.TRANSFORM,""))}}(t,n.parent);n.disableBackdrop||((m=d.createBackdrop(e,"md-bottom-sheet-backdrop md-opaque"))[0].tabIndex=-1,n.clickOutsideToClose&&m.on("click",function(){d.nextTick(s.cancel,!0)}),r.inherit(m,n.parent),o.enter(m,n.parent,null));r.inherit(t,n.parent),n.disableParentScroll&&(n.restoreScroll=d.disableScrollAround(t,n.parent));return o.enter(t,n.parent,m).then(function(){var e=d.findFocusTarget(t)||be.element(t[0].querySelector("button")||t[0].querySelector("a")||t[0].querySelector(d.prefixer("ng-click",!0)))||m;n.escapeToClose&&(n.rootElementKeyupCallback=function(e){e.keyCode===a.KEY_CODE.ESCAPE&&d.nextTick(s.cancel,!0)},i.on("keyup",n.rootElementKeyupCallback),e&&e.focus())})},onRemove:function(e,t,n){n.disableBackdrop||o.leave(m);return o.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 ne(n){return{restrict:"E",link:function(e,t){n(t)}}}function oe(o,r,i,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){r(t),o.attach(e,t),i.expectWithoutText(t,"aria-label"),d(n)&&be.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 be.isDefined(e.href)||be.isDefined(e.ngHref)||be.isDefined(e.ngLink)||be.isDefined(e.uiSref)}}function re(o){return{restrict:"E",link:function(e,t,n){t.addClass("_md"),o(t)}}}function ie(u,p,h,f,b,g){return u=u[0],{restrict:"E",transclude:!0,require:["^?mdInputContainer","?ngModel","?^form"],priority:h.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),e.addClass("md-auto-horizontal-margin"),{pre:function(e,t){t.on("click",function(e){this.hasAttribute("disabled")&&e.stopImmediatePropagation()})},post:function(o,r,i,e){var t,n=e[0],a=e[1]||b.fakeNgModel(),d=e[2],s=0<r.find("a").length;s&&(e="label-"+b.nextUid(),i.$set("aria-labelledby",e),l=r.children()[1],be.element(l).remove(),l.removeAttribute("ng-transclude"),l.className="md-checkbox-link-label",l.setAttribute("id",e),r.after(l),r.next().on("click",c));{var l;n&&(l=n.isErrorGetter||function(){return a.$invalid&&(a.$touched||d&&d.$submitted)},n.input=r,o.$watch(l,n.setInvalid))}f(r),r.children().on("focus",function(){r.focus()}),b.parseAttributeBoolean(i.mdIndeterminate)&&(m(),o.$watch(i.mdIndeterminate,m));i.ngChecked&&o.$watch(o.$eval.bind(o,i.ngChecked),function(e){a.$setViewValue(e),a.$render()});(function(e,t,n){i[e]&&o.$watch(i[e],function(e){n[e]&&r.attr(t,n[e])})})("ngDisabled","tabindex",{true:"-1",false:i.tabindex}),s||p.expectWithText(r,"aria-label");function c(t){r[0].hasAttribute("disabled")||o.skipToggle||"A"===t.target.tagName||o.$apply(function(){var e=i.ngChecked&&i.ngClick?i.checked:!a.$viewValue;a.$setViewValue(e,t&&t.type),a.$render()})}function m(e){(t=!1!==e)&&r.attr("aria-checked","mixed"),r.toggleClass("md-indeterminate",t),a.$render()}u.link.pre(o,{on:be.noop,0:{}},i,[a]),r.on("click",c).on("keypress",function(e){var t,n,o=e.which||e.keyCode;switch(e.preventDefault(),o){case h.KEY_CODE.SPACE:r.addClass("md-focused"),c(e);break;case h.KEY_CODE.ENTER:(n=b.getClosest(e.target,"form"))&&(t=n.querySelector('button[type="submit"]:enabled, input[type="submit"]:enabled'))&&t.click()}}).on("focus",function(){"keyboard"===g.getLastInteractionType()&&r.addClass("md-focused")}).on("blur",function(){r.removeClass("md-focused")}),a.$render=function(){var e=!!a.$viewValue&&!t;r.toggleClass("md-checked",e),t||(e?r.attr("aria-checked","true"):r.attr("aria-checked","false"))}}}}}}function ae(e,t,n,o,r){this.$scope=e,this.$element=t,this.$mdConstant=n,this.$timeout=o,this.$mdUtil=r,this.isEditing=!1,this.parentController=ge,this.enableChipEdit=!1}function de(a,e,t,d){return{restrict:"E",require:["^?mdChips","mdChip"],link:function(e,t,n,o){var r=o.shift(),i=o.shift(),o=be.element(t[0].querySelector(".md-chip-content"));a(t),r&&(i.init(r),o.on("blur",function(){r.resetSelectedChip(),r.$scope.$applyAsync()}));d(function(){r&&r.shouldFocusLastChip&&r.focusLastChipThenInput()})},controller:"MdChipCtrl"}}function se(r){return{restrict:"A",require:"^mdChips",scope:!1,link:function(e,t,n,o){t.on("click",function(){e.$apply(function(){o.removeChip(e.$$replacedScope.$index)})}),r(function(){t.attr({tabindex:"-1","aria-hidden":"true"}),t.find("button").attr("tabindex","-1")})}}}function le(i){return{restrict:"EA",terminal:!0,link:function(e,t,n){var o=e.$parent.$mdChipsCtrl,r=o.parent.$new(!1,o.parent);r.$$replacedScope=e,r.$chip=e.$chip,r.$index=e.$index;n=(r.$mdChipsCtrl=o).$scope.$eval(n.mdChipTransclude);t.html(n),i(t.contents())(r)},scope:!1}}function ce(e,t,n){this.$element=t,this.$attrs=e,this.$timeout=n,this.selectedItem=null,this.searchText="",this.deRegister=[],this.init()}function me(o){return{restrict:"E",controller:["$scope","$element",function(e,t){this.$scope=e,this.$element=t}],link:function(e,t){var n;t.addClass("_md"),o(t),e.$broadcast("$mdContentLoaded",t),n=t[0],be.element(n).on("$md.pressdown",function(e){"t"===e.pointer.type&&(e.$materialScrollFixed||(e.$materialScrollFixed=!0,0===n.scrollTop?n.scrollTop=1:n.scrollHeight===n.scrollTop+n.offsetHeight&&--n.scrollTop))})}}}function ue(e,t){var d=e('<md-icon md-svg-src="'+t.mdTabsArrow+'"></md-icon>')({})[0];return{require:["^^mdCalendar","^^mdCalendarMonth","mdCalendarMonthBody"],scope:{offset:"=mdMonthOffset"},controller:pe,controllerAs:"mdMonthBodyCtrl",bindToController:!0,link:function(e,t,n,o){var r=o[0],i=o[1],a=o[2];a.calendarCtrl=r,a.monthCtrl=i,a.arrowIcon=d.cloneNode(!0),e.$watch(function(){return a.offset},function(e){be.isNumber(e)&&a.generateContent()})}}}function pe(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 he(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 fe(e,t,i){return{restrict:"E",link:function(o,r){r.addClass("_md"),t(r),e(function(){var e,t=r[0].querySelector("md-dialog-content");function n(){r.toggleClass("md-content-overflow",t.scrollHeight>t.clientHeight)}t&&(e=t.getElementsByTagName("img"),n(),be.element(e).on("load",n)),o.$on("$destroy",function(){i.destroy(r)})})}}}function Ee(e){var m,g,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","ariaLabel","ok","theme","css"],options:t}).addPreset("confirm",{methods:["title","htmlContent","textContent","ariaLabel","ok","cancel","theme","css"],options:t}).addPreset("prompt",{methods:["title","htmlContent","textContent","initialValue","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,r){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&&!be.isDefined(this.result);e.keyCode!==r.KEY_CODE.ENTER||t||o.hide(this.result)}}}function o(u,d,p,h,o,s,f,l,t,i,n,a,c){return{hasBackdrop:!0,isolateScope:!0,onCompiling:function(e){e.defaultTheme=n.defaultTheme(),function(t){t.targetEvent&&t.targetEvent.target&&(e=be.element(t.targetEvent.target));var e,n,o=e&&e.controller("mdTheme");t.hasTheme=!!o,t.hasTheme&&(t.themeWatch=o.$shouldWatch,(e=t.theme||o.$mdTheme)&&(t.scope.theme=e),n=o.registerChanges(function(e){t.scope.theme=e,t.themeWatch||n()}))}(e)},onShow:function(e,r,i){be.element(s[0].body).addClass("md-dialog-is-showing");var a=r.find("md-dialog");a.hasClass("ng-cloak")&&t.warn("$mdDialog: using `<md-dialog ng-cloak>` will affect the dialog opening animations.",r[0]);return function(e){e.origin=be.extend({element:null,bounds:null,focus:be.noop},e.origin||{}),e.parent=n(e.parent,l),e.closeTo=t(n(e.closeTo)),e.openFrom=t(n(e.openFrom)),e.targetEvent&&(e.origin=t(e.targetEvent.target,e.origin),e.originInteraction=c.getLastInteractionType());function t(e,t){var n=be.element(e||{});if(n&&n.length){e=be.isFunction(n[0].getBoundingClientRect);return be.extend(t||{},{element:e?n:ge,bounds:e?n[0].getBoundingClientRect():be.extend({},{top:0,left:0,height:0,width:0},n[0]),focus:be.bind(n,n.focus)})}}function n(e,t){return be.isString(e)&&(e=s[0].querySelector(e)),be.element(e||t)}}(i),function(t,n){var e="alert"===n.$type?"alertdialog":"dialog",o=t.find("md-dialog-content"),r=t.attr("id"),i="dialogContent_"+(r||p.nextUid());t.attr({role:e,tabIndex:"-1"}),0===o.length&&(o=t,r&&(i=r));o.attr("id",i),t.attr("aria-describedby",i),n.ariaLabel?d.expect(t,"aria-label",n.ariaLabel):d.expectAsync(t,"aria-label",function(){if(n.title)return n.title;var e=o.text().split(/\s+/);return(e=3<e.length?e.slice(0,3).concat("..."):e).join(" ")});(m=document.createElement("div")).classList.add("md-dialog-focus-trap"),m.tabIndex=0,g=m.cloneNode(!1);function a(e){e.target&&e.target.nextSibling&&"MD-DIALOG"===e.target.nextSibling.nodeName?(e=p.getLastTabbableElement(t[0]),be.isElement(e)&&e.focus()):t.focus()}m.addEventListener("focus",a),g.addEventListener("focus",a),E=function(){m.removeEventListener("focus",a),g.removeEventListener("focus",a),m&&m.parentNode&&m.parentNode.removeChild(m),g&&g.parentNode&&g.parentNode.removeChild(g)},t[0].parentNode.insertBefore(m,t[0]),t.after(g)}(a,i),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"),o.enter(n.backdrop,n.parent));n.hideBackdrop=function(e){n.backdrop&&(e?n.backdrop.remove():o.leave(n.backdrop)),n.disableParentScroll&&(n.restoreScroll&&n.restoreScroll(),delete n.restoreScroll),n.hideBackdrop=null}}(e,r,i),function(e,t){function n(){var e="alert"===t.$type?u.hide:u.cancel;p.nextTick(e,!0)}var o,r=be.element(f),i=p.debounce(function(){b(e,t)},60),a=[];{var d,s;t.escapeToClose&&(d=t.parent,s=function(e){e.keyCode===h.KEY_CODE.ESCAPE&&(e.stopImmediatePropagation(),e.preventDefault(),n())},e.on("keydown",s),d.on("keydown",s),a.push(function(){e.off("keydown",s),d.off("keydown",s)}))}{var l,c,m;r.on("resize",i),a.push(function(){r.off("resize",i)}),t.clickOutsideToClose&&(c=function(e){o=e.target},m=function(e){o===l[0]&&e.target===l[0]&&(e.stopPropagation(),e.preventDefault(),n())},(l=e).on("mousedown",c),l.on("mouseup",m),a.push(function(){l.off("mousedown",c),l.off("mouseup",m)}))}t.deactivateListeners=function(){a.forEach(function(e){e()}),t.deactivateListeners=null}}(r,i),function(e,t){t.parent.append(e),t.reverseContainerStretch=b(e,t);var n=e.find("md-dialog"),o=p.dom.animator,r=o.calculateZoomToOrigin,i={transitionInClass:"md-transition-in",transitionOutClass:"md-transition-out"},a=o.toTransformCss(r(n,t.openFrom||t.origin)),d=o.toTransformCss("");return n.toggleClass("md-dialog-fullscreen",!!t.fullscreen),o.translate3d(n,a,d,i).then(function(e){return t.reverseAnimate=function(){return delete t.reverseAnimate,t.closeTo?(i={transitionInClass:"md-transition-out",transitionOutClass:"md-transition-in"},a=d,d=o.toTransformCss(r(n,t.closeTo)),o.translate3d(n,a,d,i)):e(d=o.toTransformCss(r(n,t.origin)))},t.clearAnimate=function(){return delete t.clearAnimate,n.removeClass([i.transitionOutClass,i.transitionInClass].join(" ")),o.translate3d(n,d,o.toTransformCss(""),{})},!0})}(r,i).then(function(){function e(e){for(var t=function(e){for(var t,n=[];e.parentNode;){if(e===document.body)return n;for(var o=e.parentNode.children,r=0;r<o.length;r++)e===o[r]||(t=o[r],-1!==["SCRIPT","STYLE"].indexOf(t.nodeName))||o[r].hasAttribute("aria-live")||n.push(o[r]);e=e.parentNode}return n}(e),n=0;n<t.length;n++)t[n].setAttribute("aria-hidden",o)}var t,n,o;n=i,o=!0,e((t=r)[0]),n.unlockScreenReader=function(){o=!1,e(t[0]),n.unlockScreenReader=null},i.focusOnOpen&&(p.findFocusTarget(r)||r[0].querySelector(".dialog-close, md-dialog-actions button:last-child")||a).focus()})},onShowing:function(e,t,n,o){if(o){var r=o.htmlContent||n.htmlContent||"",n=o.textContent||n.textContent||"";if(r&&!i.has("$sanitize"))throw Error("The ngSanitize module must be loaded in order to use htmlContent.");if(r&&n)throw Error("md-dialog cannot have both `htmlContent` and `textContent`");o.mdHtmlContent=r,o.mdTextContent=n}},onRemove:function(e,t,n){n.deactivateListeners(),n.unlockScreenReader(),n.hideBackdrop(n.$destroy),E&&(E(),E=null);return n.$destroy?o():function(e){return e.reverseAnimate().then(function(){e.contentElement&&e.clearAnimate()})}(n).then(o);function o(){be.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=a.startSymbol(),r=a.endSymbol(),r=o+(t.themeWatch?"":"::")+"theme"+r;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,o=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")},t=Math.abs(t.parent[0].getBoundingClientRect().top);return e.css({top:(n?t:0)+"px",height:o?o+"px":"100%"}),function(){e.css(r)}}}}function ve(e){return{restrict:"E",link:e}}function $e(r){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(e,t){var n=e.children(),o=r.prefixer().hasAttribute(n,"ng-repeat"),e=e.find("md-button");be.forEach(e,function(e){e.setAttribute("tabindex",-1)}),o?n.addClass("md-fab-action-item"):n.wrap('<div class="md-fab-action-item">')}}}function Me(t,i,a,d,r,n){var o,s=this,e=0;function l(e){"click"==e.type&&function(e){var t=e.target?function(e){return d.getClosest(e,"button")||d.getClosest(e,"md-button")}(e.target):null;t&&!t.disabled&&(!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||o||(o=n(function(){s.close()},100,!1)),"focusin"==e.type&&o&&(n.cancel(o),o=null)}function c(){s.currentActionIndex=-1}function m(){0<i[0].scrollHeight?a.addClass(i,"_md-animations-ready").then(function(){i.removeClass("md-animations-waiting")}):e<10&&(n(m,100),e+=1)}function u(){i.off("keydown",h),be.element(document).off("click touchend",p)}function p(e){var t;e.target&&(t=d.getClosest(e.target,"md-fab-trigger"),e=d.getClosest(e.target,"md-fab-actions"),t||e||s.close())}function h(e){switch(e.which){case r.KEY_CODE.ESCAPE:return s.close(),e.preventDefault(),!1;case r.KEY_CODE.LEFT_ARROW:return o=e,("left"===s.direction?b:f)(o),!1;case r.KEY_CODE.UP_ARROW:return n=e,("down"===s.direction?f:b)(n),!1;case r.KEY_CODE.RIGHT_ARROW:return n=e,("left"===s.direction?f:b)(n),!1;case r.KEY_CODE.DOWN_ARROW:return t=e,("up"===s.direction?f:b)(t),!1;case r.KEY_CODE.TAB:return((t=e).shiftKey?f:b)(t),!1}var t,n,o}function f(e){g(e,-1)}function b(e){g(e,1)}function g(e,t){var n=E()[0].querySelectorAll(".md-fab-action-item"),o=s.currentActionIndex;s.currentActionIndex=s.currentActionIndex+t,s.currentActionIndex=Math.min(n.length-1,s.currentActionIndex),s.currentActionIndex=Math.max(0,s.currentActionIndex),e.which===r.KEY_CODE.TAB&&o===s.currentActionIndex||(be.element(n[s.currentActionIndex]).children()[0].focus(),e.preventDefault(),e.stopImmediatePropagation())}function E(){return i.find("md-fab-actions")}s.open=function(){t.$evalAsync("ctrl.isOpen = true")},s.close=function(){t.$evalAsync("ctrl.isOpen = false"),i.find("md-fab-trigger")[0].focus()},s.toggle=function(){t.$evalAsync("ctrl.isOpen = !ctrl.isOpen")},s.$onInit=function(){var e,o,r;s.direction=s.direction||"down",s.isOpen=s.isOpen||!1,c(),i.addClass("md-animations-waiting"),e=["click","focusin","focusout"],be.forEach(e,function(e){i.on(e,l)}),t.$on("$destroy",function(){be.forEach(e,function(e){i.off(e,l)}),u()}),t.$watch("ctrl.direction",function(e,t){a.removeClass(i,"md-"+t),a.addClass(i,"md-"+e),c()}),t.$watch("ctrl.isOpen",function(e){c(),o&&r||(o=i.find("md-fab-trigger"),r=E()),e?(i.on("keydown",h),d.nextTick(function(){be.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),r.attr("aria-hidden",!e),a.setClass(i,t,n)}),m()},1===be.version.major&&be.version.minor<=4&&this.$onInit()}function ye(){function o(e,t){var n,o,r,i,a,d,s,l;t&&(l=e[0],n=e.controller("mdFabToolbar"),o=l.querySelector(".md-fab-toolbar-background"),r=l.querySelector("md-fab-trigger button"),i=l.querySelector("md-toolbar"),a=l.querySelector("md-fab-trigger button md-icon"),d=e.find("md-fab-actions").children(),r&&o&&(s=y.getComputedStyle(r).getPropertyValue("background-color"),t=l.offsetWidth,l.offsetHeight,l=t/r.offsetWidth*2,o.style.backgroundColor=s,o.style.borderRadius=t+"px",n.isOpen?(i.style.pointerEvents="inherit",o.style.width=r.offsetWidth+"px",o.style.height=r.offsetHeight+"px",o.style.transform="scale("+l+")",o.style.transitionDelay="0ms",a&&(a.style.transitionDelay=".3s"),be.forEach(d,function(e,t){e.style.transitionDelay=25*(d.length-t)+"ms"})):(i.style.pointerEvents="none",o.style.transform="scale(1)",o.style.top="0",e.hasClass("md-right")&&(o.style.left="0",o.style.right=null),e.hasClass("md-left")&&(o.style.right="0",o.style.left=null),o.style.transitionDelay="200ms",a&&(a.style.transitionDelay="0ms"),be.forEach(d,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 Ce(b,g,E,v,$){return{restrict:"E",controller:Te,scope:{mdOnLayout:"&"},link:function(t,i,u,n){i.addClass("_md"),i.attr("role","list"),n.layoutDelegate=function(e){var o=[].filter.call(i.children(),function(e){return"MD-GRID-TILE"==e.tagName&&!e.$$mdDestroyed}),r={tileSpans:function(e){return[].map.call(e,function(e){e=be.element(e).controller("mdGridTile");return{row:parseInt(v.getResponsiveAttribute(e.$attrs,"md-rowspan"),10)||1,col:parseInt(v.getResponsiveAttribute(e.$attrs,"md-colspan"),10)||1}})}(o),colCount:function(){var e=parseInt(v.getResponsiveAttribute(u,"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=v.getResponsiveAttribute(u,"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(v.getResponsiveAttribute(u,"md-gutter")||1)};!e&&be.equals(r,a)||(e=E(r.colCount,r.tileSpans,o).map(function(e,n){return{grid:{element:i,style:function(e,t,n,o,r){var i={};switch(o){case"fixed":i.height=f({unit:r,span:t,gutter:n}),i.paddingBottom="";break;case"ratio":var a=p({share:1/r*(1/e*100),gutterShare:1===e?0:(e-1)/e,gutter:n});i.height="",i.paddingBottom=f({unit:a,span:t,gutter:n})}return i}(r.colCount,n,r.gutter,r.rowMode,r.rowHeight)},tiles:e.map(function(e,t){return{element:be.element(o[t]),style:function(e,t,n,o,r,i,a){var d=1/n*100,s=(n-1)/n,n=p({share:d,gutterShare:s,gutter:r}),l=$.isRtl(u)?{right:h({unit:n,offset:e.col,gutter:r}),width:f({unit:n,span:t.col,gutter:r}),paddingTop:"",marginTop:"",top:"",height:""}:{left:h({unit:n,offset:e.col,gutter:r}),width:f({unit:n,span:t.col,gutter:r}),paddingTop:"",marginTop:"",top:"",height:""};switch(i){case"fixed":l.top=h({unit:a,offset:e.row,gutter:r}),l.height=f({unit:a,span:t.row,gutter:r});break;case"ratio":var c=d/a,m=p({share:c,gutterShare:s,gutter:r});l.paddingTop=f({unit:m,span:t.row,gutter:r}),l.marginTop=h({unit:m,offset:e.row,gutter:r});break;case"fit":m=p({share:c=1/o*100,gutterShare:(o-1)/o,gutter:r}),l.top=h({unit:m,offset:e.row,gutter:r}),l.height=f({unit:m,span:t.row,gutter:r})}return l}(e.position,e.spans,r.colCount,n,r.gutter,r.rowMode,r.rowHeight)}})}}).reflow().performance(),t.mdOnLayout({$event:{performance:e}}),a=r)};var a,o=be.bind(n,n.invalidateLayout),r=function(){for(var e in g.MEDIA)v(e),v.getQuery(g.MEDIA[e]).addListener(o);return v.watchResponsiveAttributes(["md-cols","md-row-height","md-gutter"],u,d)}();function d(e){(null==e||v(e))&&n.invalidateLayout()}t.$on("$destroy",function(){for(var e in n.layoutDelegate=be.noop,r(),g.MEDIA)v.getQuery(g.MEDIA[e]).removeListener(o)});var s=b.startSymbol(),l=b.endSymbol();function e(e){return s+e+l}var p=b(e("share")+"% - ("+e("gutter")+" * "+e("gutterShare")+")"),h=b("calc(("+e("unit")+" + "+e("gutter")+") * "+e("offset")+")"),f=b("calc(("+e("unit")+") * "+e("span")+" + ("+e("span")+" - 1) * "+e("gutter")+")");function c(){var e=v.getResponsiveAttribute(u,"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 Te(e){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=e.nextTick,this.layoutDelegate=be.noop}function Ae(d){var s=t;return e.animateWith=function(e){s=be.isFunction(e)?e:t},e;function e(t,n){var o,c,r,e,i,a=d.time(function(){function r(){s++,i(d=0,a,-1)}function i(e,t,n){for(var o=e;o<e+t;o++)l[o]=Math.max(l[o]+n,0)}var a,e,d,s,l;a=t,e=n,s=d=0,l=function(){for(var e=[],t=0;t<a;t++)e.push(0);return e}(),c={positioning:e.map(function(e,t){return{spans:e,position:function(e,t){if(e.col>a)throw"md-grid-list: Tile at position "+t+" has a colspan ("+e.col+") that exceeds the column count ("+a+")";var n=0,o=0;for(;o-n<e.col;)a<=d?r():-1!==(n=l.indexOf(0,d))&&-1!==(o=function(e){var t;for(t=e;t<l.length;t++)if(0!==l[t])return t;if(t===l.length)return t}(n+1))?d=o+1:(n=o=0,r());return i(n,e.col,e.row),d=n+e.col,{col:n,row:s}}(e,t)}}),rowCount:s+Math.max.apply(Math,l)}});return o={layoutInfo:function(){return c},map:function(t){return e=d.time(function(){var e=o.layoutInfo();r=t(e.positioning,e.rowCount)}),o},reflow:function(e){return i=d.time(function(){(e||s)(r.grid,r.tiles)}),o},performance:function(){return{tileCount:n.length,layoutTime:a,mapTime:e,reflowTime:i,totalTime:a+e+i}}}}function t(e,t){e.element.css(e.style),t.forEach(function(e){e.element.css(e.style)})}}function we(i){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 r=i.watchResponsiveAttributes(["md-colspan","md-rowspan"],n,be.bind(o,o.invalidateLayout));o.invalidateTiles(),e.$on("$destroy",function(){t[0].$$mdDestroyed=!0,r(),o.invalidateLayout()}),be.isDefined(e.$parent.$index)&&e.$watch(function(){return e.$parent.$index},function(e,t){e!==t&&o.invalidateTiles()})}}}function _e(){return{template:"<figcaption ng-transclude></figcaption>",transclude:!0}}function ke(t){return{restrict:"E",compile:function(e){return e[0].setAttribute("role","list"),t}}}function xe(m,u,p,h){var f=["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)s("button");else if(!r.hasClass("md-no-proxy")){for(var d=0;d<f.length;++d)if(null!==(i=r[0].querySelector(f[d]))){e=!0;break}e?s("div"):r.addClass("md-no-proxy")}function s(e){var t;"div"===e?((a=be.element('<div class="md-no-style md-list-item-inner">')).append(r.contents()),r.addClass("md-proxy-focus")):(a=be.element('<div class="md-button md-no-style"> <div class="md-list-item-inner"></div></div>'),t=be.element('<md-button class="md-no-style"></md-button>'),l(r[0],t[0]),t.attr("aria-label")||(t.attr("aria-label",m.getText(r)),(e=a[0].querySelector(".md-list-item-inner"))&&e.setAttribute("aria-hidden","true")),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 l(t,n,e){var o=p.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(p.prefixer(e))),be.forEach(o,function(e){t.hasAttribute(e)&&(n.setAttribute(e,t.getAttribute(e)),t.removeAttribute(e))})}function c(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=be.element('<div class="md-secondary-container">'),be.forEach(n,function(e){!function(e,t){{var n;e&&!function(e){e=e.nodeName.toUpperCase();return"MD-BUTTON"===e||"BUTTON"===e}(e)&&e.hasAttribute("ng-click")&&(m.expect(e,"aria-label"),n=be.element('<md-button class="md-secondary md-icon-button">'),l(e,n[0],["ng-if","ng-hide","ng-show"]),e.setAttribute("tabindex","-1"),n.append(e),e=n[0])}e&&(!c(e)||!o.ngClick&&function(e){return-1!==f.indexOf(e.nodeName.toLowerCase())}(e))&&be.element(e).removeClass("md-secondary");r.addClass("md-with-secondary"),t.append(e)}(e,t)}),a.append(t),function(){for(var e,t=["md-switch","md-checkbox"],n=0;n<t.length;++n)if((e=r.find(t[n])[0])&&!e.hasAttribute("aria-label")){var o=r.find("p")[0];if(!(o=o||r.find("span")[0]))return;e.setAttribute("aria-label","Toggle "+o.textContent)}}(),e&&"MD-MENU"===i.nodeName&&function(){var e=be.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");e=e.children().eq(0);c(e[0])||e.attr("ng-click","$mdMenu.open($event)");e.attr("aria-label")||e.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&&c(a),s=i.hasClass("md-no-proxy");r&&r.children&&!d&&!s&&be.forEach(f,function(e){be.forEach(r.querySelectorAll(e+":not(.md-secondary)"),function(e){o.push(e)})}),1!==o.length&&!d||(i.addClass("md-clickable"),d||n.attachRipple(e,be.element(i[0].querySelector(".md-no-style")))),o.length&&be.forEach(o,function(t){t=be.element(t),e.mouseActive=!1,t.on("mousedown",function(){e.mouseActive=!0,h(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)===u.KEY_CODE.SPACE&&a&&(a.click(),e.preventDefault(),e.stopPropagation())}d||o.length||a&&a.addEventListener("keypress",l);i.off("click"),i.off("keypress"),i.off("keydown"),1===o.length&&a&&i.children().eq(0).on("click",function(t){(function(e){var t=["md-slider"],n=p.getEventPath(e);if(!n||0===n.length)return-1!==t.indexOf(e.target.tagName.toLowerCase());for(var o=n.indexOf(i.children()[0]),r=0;r<o;r++)if(-1!==t.indexOf(n[r].tagName.toLowerCase()))return 1})(t)||!p.getClosest(t.target,"BUTTON")&&a.contains(t.target)&&be.forEach(o,function(e){t.target===e||e.contains(t.target)||("MD-MENU"===e.nodeName&&(e=e.children[0]),be.element(e).triggerHandler("click"))})});e.$on("$destroy",function(){a&&a.removeEventListener("keypress",l)})}}}}function Ne(e,t,n){this.attachRipple=function(e,t){n.attach(e,t,{})}}function Se(o,t,r,i,a,n,e,d,s){var l,c,m=a.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.mdMenuBarCtrl=t.mdMenuBarCtrl,this.nestedMenus=a.nodesToArray(l[0].querySelectorAll(".md-nested-menu")),l.on("$mdInterimElementRemove",function(){u.isOpen=!1,a.nextTick(function(){u.onIsOpenChanged(u.isOpen)})}),a.nextTick(function(){u.onIsOpenChanged(u.isOpen)});t="menu_container_"+a.nextUid();l.attr("id",t),be.element(c).attr({"aria-owns":t,"aria-haspopup":"true"}),i.$on("$destroy",be.bind(this,function(){this.disableHoverListener(),o.destroy()})),l.on("$destroy",function(){o.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=be.element(a.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){var t;u.isAlreadyOpening||(t=e.target.querySelector("md-menu")||a.getClosest(e.target,"MD-MENU"),p=n(function(){var e;t=t&&be.element(t).controller("mdMenu"),u.currentlyOpenMenu&&u.currentlyOpenMenu!=t?(e=u.nestLevel+1,u.currentlyOpenMenu.close(!0,{closeTo:e}),u.isAlreadyOpening=!!t,t&&t.open()):t&&!t.isOpen&&t.open&&(u.isAlreadyOpening=!!t,t&&t.open())},t?100:250),(e=e.currentTarget.querySelector(".md-button:not([disabled])"))&&e.focus())},this.handleMenuItemMouseLeave=function(){p&&(n.cancel(p),p=ge)},this.open=function(e){e&&e.stopPropagation(),e&&e.preventDefault(),u.isOpen||(u.enableHoverListener(),u.isOpen=!0,a.nextTick(function(){u.onIsOpenChanged(u.isOpen)}),(c=c||(e?e.target:r[0])).setAttribute("aria-expanded","true"),i.$emit("$mdMenuOpen",r),o.show({scope:i,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"),be.forEach(u.nestedMenus,function(e){e.classList.remove("md-open")})):(l.attr("aria-hidden","true"),r[0].classList.remove("md-open")),i.$mdMenuIsOpen=u.isOpen},this.focusMenuContainer=function(){(l[0].querySelector(m.buildSelector(["md-menu-focus-target","md-autofocus"]))||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?o.destroy():d.when(!1)},this.close=function(e,t){var n;u.isOpen&&(u.isOpen=!1,a.nextTick(function(){u.onIsOpenChanged(u.isOpen)}),n=be.extend({},t,{skipFocus:e}),i.$emit("$mdMenuClose",r,n),o.hide(null,t),e||(e=(e=u.restoreFocusTo||r.find("button")[0])instanceof be.element?e[0]:e)&&e.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>")},i.$mdMenu={open:this.open,close:this.close}}function De(r){var i="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=r.prefixer();n.hasAttribute(t,"ng-click")||(t=t.querySelector(n.buildSelector(["ng-click","ng-mouseenter"]))||t);n="MD-BUTTON"===t.nodeName||"BUTTON"===t.nodeName;t&&n&&!t.hasAttribute("type")&&t.setAttribute("type","button");if(!t)throw Error(i+"Expected the menu to have a trigger element.");if(2!==e.children().length)throw Error(i+"Expected two children elements. The second element must have a `md-menu-content` element.");t&&t.setAttribute("aria-haspopup","true");var t=e[0].querySelectorAll("md-menu"),o=parseInt(e[0].getAttribute("md-nest-level"),10)||0;t&&be.forEach(r.nodesToArray(t),function(e){e.hasAttribute("md-position-mode")||e.setAttribute("md-position-mode","cascade"),e.classList.add("_md-nested-menu"),e.setAttribute("md-nest-level",o+1)});return a}};function a(e,t,n,o){var r=o[0],i=!!o[1],a=o[1],d=be.element('<div class="_md md-open-menu-container md-whiteframe-z2"></div>'),o=t.children()[1];t.addClass("_md"),o.hasAttribute("role")||o.setAttribute("role","menu"),d.append(o),t.on("$destroy",function(){d.remove()}),t.append(d),d[0].style.display="none",r.init(d,{isInMenuBar:i,mdMenuBarCtrl:a})}}function He(e){t.$inject=["$mdUtil","$mdTheming","$mdConstant","$document","$window","$q","$$rAF","$animateCss","$animate","$log"];var C=8;return e("$mdMenu").setDefaults({methods:["target"],options:t});function t(v,e,s,$,M,o,r,i,l,c){var y=v.prefixer(),m=v.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");be.extend(d,{alreadyOpen:!1,isRemoved:!1,target:be.element(d.target),parent:be.element(d.parent),menuContentEl:be.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 r.throttle(function(){var e;d.isRemoved||(e=p(t,n),t.css(m.toCss(e)))})}(n,d);return M.addEventListener("resize",e),M.addEventListener("orientationchange",e),function(){M.removeEventListener("resize",e),M.removeEventListener("orientationchange",e)}}(),d.hideBackdrop=function(e,t){if(t.nestLevel)return be.noop;t.disableParentScroll&&!v.getClosest(t.target,"MD-DIALOG")?t.restoreScroll=v.disableScrollAround(t.element,t.parent):t.disableParentScroll=!1;t.hasBackdrop&&(t.backdrop=v.createBackdrop(e,"md-menu-backdrop md-click-catcher"),l.enter(t.backdrop,t.backdropParent||$[0].body));return function(){t.backdrop&&t.backdrop.remove(),t.disableParentScroll&&t.restoreScroll()}}(a,d),d.parent.append(n),n[0].style.display="",o(function(e){var t=p(n,d);n.removeClass("md-leave"),i(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 be.noop;d.menuContentEl.on("keydown",r),d.menuContentEl[0].addEventListener("click",i,!0);var e=d.menuContentEl[0].querySelector(y.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&&!o.firstElementChild.getAttribute("disabled")){e=o.firstElementChild;break}}return e&&e.focus(),function(){d.menuContentEl.off("keydown",r),d.menuContentEl[0].removeEventListener("click",i,!0)};function r(e){var t;switch(e.keyCode){case s.KEY_CODE.ESCAPE:d.nestLevel?d.mdMenuCtrl.close():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,0,-1)||d.nestLevel||d.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case s.KEY_CODE.DOWN_ARROW:u(e,d.menuContentEl,0,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=v.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 i(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=v.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)for(var n,o=0;n=t[o];++o)if(y.hasAttribute(e,n))return 1}}}(),d.cleanupBackdrop=d.backdrop?(d.backdrop.on("click",t),function(){d.backdrop.off("click",t)}):be.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,n,o){return o.cleanupInteraction(),o.cleanupBackdrop(),o.cleanupResizing(),o.hideBackdrop(),n.removeClass("md-clickable"),!0===o.$destroy?t():i(n,{addClass:"md-leave"}).start().then(t);function t(){var e,t;n.removeClass("md-active"),e=n,(t=o).preserveElement?a(e).style.display="none":a(e).parentNode===a(t.parent)&&a(t.parent).removeChild(a(e)),o.alreadyOpen=!1}},hasBackdrop:!0,disableParentScroll:!0,skipCompile:!0,preserveScope:!0,multiple:!0,themable:!0};function u(e,t,n,o){for(var r,e=v.getClosest(e.target,"MD-MENU-ITEM"),i=v.nodesToArray(t[0].children),a=i.indexOf(e)+o;0<=a&&a<i.length;a+=o)if(r=function(e){if(e&&-1!=e.getAttribute("tabindex"))return e.focus(),$[0].activeElement==e}(i[a].querySelector(".md-button")))break;return r}function p(e,t){var n=e[0],o=e[0].firstElementChild,r=o.getBoundingClientRect(),i=$[0].body.getBoundingClientRect(),a=M.getComputedStyle(o),d=t.target[0].querySelector(y.buildSelector("md-menu-origin"))||t.target[0],s=d.getBoundingClientRect(),l={left:i.left+C,top:Math.max(i.top,0)+C,bottom:Math.max(i.bottom,Math.max(i.top,0)+i.height)-C,right:i.right-C},c={top:0,left:0,right:0,bottom:0},m={top:0,left:0,right:0,bottom:0},u=t.mdMenuCtrl.positionMode();"target"!==u.top&&"target"!==u.left&&"target-right"!==u.left||(E=function(){for(var e=0;e<o.children.length;++e)if("none"!=M.getComputedStyle(o.children[e]).display)return o.children[e]}())&&(c=(E=(E=E.firstElementChild||E).querySelector(y.buildSelector("md-menu-align-target"))||E).getBoundingClientRect(),m={top:parseFloat(n.style.top||0),left:parseFloat(n.style.left||0)});var p={},h="top ";switch(u.top){case"target":p.top=m.top+s.top-c.top;break;case"cascade":p.top=s.top-parseFloat(a.paddingTop)-d.style.top;break;case"bottom":p.top=s.top+s.height;break;default:throw new Error('Invalid target mode "'+u.top+'" specified for md-menu on Y axis.')}var f=v.isRtl(e);switch(u.left){case"target":p.left=m.left+s.left-c.left,h+=f?"right":"left";break;case"target-left":p.left=s.left,h+="left";break;case"target-right":p.left=s.right-r.width+(r.right-c.right),h+="right";break;case"cascade":var b=f?s.left-r.width<l.left:s.right+r.width<l.right;p.left=b?s.right-d.style.left:s.left-d.style.left-r.width,h+=b?"left":"right";break;case"right":f?(p.left=s.right-s.width,h+="left"):(p.left=s.right-r.width,h+="right");break;case"left":f?(p.left=s.right-r.width,h+="right"):(p.left=s.left,h+="left");break;default:throw new Error('Invalid target mode "'+u.left+'" specified for md-menu on X axis.')}var g,E=t.mdMenuCtrl.offsets();p.top+=E.top,p.left+=E.left,(g=p).top=Math.max(Math.min(g.top,l.bottom-n.offsetHeight),l.top),g.left=Math.max(Math.min(g.left,l.right-n.offsetWidth),l.left);e=Math.round(100*Math.min(s.width/n.offsetWidth,1))/100,E=Math.round(100*Math.min(s.height/n.offsetHeight,1))/100;return{top:Math.round(p.top),left:Math.round(p.left),transform:t.alreadyOpen?ge:v.supplant("scale({0},{1})",[e,E]),transformOrigin:h}}}function a(e){return e=e instanceof be.element?e[0]:e}}function Ie(n,r){return{restrict:"E",require:"mdMenuBar",controller:"MenuBarController",compile:function(e,t){return t.ariaRole||e[0].setAttribute("role","menubar"),be.forEach(e[0].children,function(e){"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")),e=n.nodesToArray(e.querySelectorAll("md-menu-content")),be.forEach(e,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"),r(e,t),o.init()}}}}function Oe(e,t,n){this.$element=t,this.$attrs=n,this.$scope=e}function Pe(s,e,l){return{controller:"MenuItemController",require:["mdMenuItem","?ngModel"],priority:e.BEFORE_NG_ARIA,compile:function(o,e){var t,n,r,i=e.type,a="md-in-menu-bar";return"checkbox"!==i&&"radio"!==i||!o.hasClass(a)?d("role","menuitem",o[0].querySelector("md-button, button, a")):(t=o[0].textContent,n=be.element('<md-button type="button"></md-button>'),r='<md-icon md-svg-src="'+l.mdChecked+'"></md-icon>',n.html(t),n.attr("tabindex","0"),be.isDefined(e.mdPreventMenuClose)&&n.attr("md-prevent-menu-close",e.mdPreventMenuClose),o.html(""),o.append(be.element(r)),o.append(n),o.addClass("md-indent").removeClass(a),d("role","checkbox"===i?"menuitemcheckbox":"menuitemradio",n),function(e){e=s.prefixer(e);be.forEach(e,function(e){var t;o[0].hasAttribute(e)&&(t=o[0].getAttribute(e),n[0].setAttribute(e,t),o[0].removeAttribute(e))})}("ng-disabled")),function(e,t,n,o){var r=o[0],o=o[1];r.init(o)};function d(e,t,n){(n=(n=n||o)instanceof be.element?n[0]:n).hasAttribute(e)||n.setAttribute(e,t)}}}}function Le(i,a,d,s){return{restrict:"E",transclude:!0,controller:Re,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){function r(){o.width!==d.innerWidth&&(o.updateSelectedTabInkBar(),o.width=d.innerWidth,e.$digest())}o.width=d.innerWidth,be.element(d).on("resize",s.debounce(r,300)),e.$on("$destroy",function(){be.element(d).off("resize",r)}),a(t),o.navBarAriaLabel||i.expectAsync(t,"aria-label",be.noop)}}}function Re(e,t,n,o){this._$timeout=n,this._$scope=t,this._$mdConstant=o,this.mdSelectedNavItem,this.navBarAriaLabel,this._navBarEl=e[0],this._inkbar;var r=this,i=this._$scope.$watch(function(){return r._navBarEl.querySelectorAll("._md-nav-button").length},function(e){0<e&&(r._initTabs(),i())})}function Fe(c,e,m,u){return{restrict:"E",require:["mdNavItem","^mdNavBar"],controller:Be,bindToController:!0,controllerAs:"ctrl",replace:!0,transclude:!0,template:function(e,t){var n,o,r=t.mdNavClick,i=t.mdNavHref,a=t.mdNavSref,t=t.srefOpts;if(1<(r?1:0)+(i?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(r!==ge&&null!==r)n='ng-click="ctrl.mdNavClick()"';else if(i!==ge&&null!==i)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'<li class="md-nav-item" role="presentation">'+((o=n?'<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()}}" '+(t?'ui-sref-opts="{{ctrl.srefOpts}}" ':"")+n+'><span ng-transclude class="_md-nav-button-text"></span></md-button>':o)||"")+"</li>"},scope:{mdNavClick:"&?",mdNavHref:"@?",mdNavSref:"@?",srefOpts:"=?",name:"@",navItemAriaLabel:"@?"},link:function(n,o,r,i){var a,d,s,l;e(function(){var e,t;d=i[0],s=i[1],l=be.element(o[0].querySelector("._md-nav-button")),d.name||(d.name=be.element(o[0].querySelector("._md-nav-button-text")).text().trim()),l.on("keydown",function(e){s.onKeydown(e)}),l.on("focus",function(){d._focused=!0}),l.on("click",function(){s.mdSelectedNavItem=d.name,n.$apply()}),d.disabled=m.parseAttributeBoolean(r.disabled,!1),"MutationObserver"in u?(e=o[0],(t=new MutationObserver(function(e){m.nextTick(function(){d.disabled=m.parseAttributeBoolean(r[e[0].attributeName],!1)})})).observe(e,{attributes:!0,attributeFilter:["disabled"]}),a=t.disconnect.bind(t)):r.$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 Be(e){this._$element=e,this.mdNavClick,this.mdNavHref,this.mdNavSref,this.srefOpts,this.name,this.navItemAriaLabel,this._selected=!1,this.isFocused=!1}function Ue($,M,u,y,p,e){var C=$.requestAnimationFrame||$.webkitRequestAnimationFrame||be.noop,h=$.cancelAnimationFrame||$.webkitCancelAnimationFrame||$.webkitCancelRequestAnimationFrame||be.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){return e.attr({"aria-valuemin":0,"aria-valuemax":100,role:"progressbar"}),be.isUndefined(t.mdMode)?(e=t.hasOwnProperty("value")?f:T,t.$set("mdMode",e)):t.$set("mdMode",t.mdMode.trim()),n}};function n(b,a,d){var g,e,t=a[0],i=be.element(t.querySelector("svg")),E=be.element(t.querySelector("path")),n=M.startIndeterminate,o=M.endIndeterminate,r=0,v=0;function s(n,e,t,o,r,i){var a=++v,d=y.now(),s=e-n,l=N(b.mdDiameter),c=S(l),m=t||M.easeFn,u=o||M.duration,p=-90*(r||0),h=i||100;function f(e){E.attr("stroke-dashoffset",k(l,c,e,h)),E.attr("transform","rotate("+p+" "+l/2+" "+l/2+")")}e===n?f(e):g=C(function e(){var t=$.Math.max(0,$.Math.min(y.now()-d,u));f(m(t,n,s,u)),a===v&&t<u&&(g=C(e))})}function l(){s(n,o,M.easeFnIndeterminate,M.durationIndeterminate,r,75),r=++r%4}function c(){e||(e=p(l,M.durationIndeterminate,0,!1),l(),a.addClass(w).removeAttr("aria-valuenow"))}function m(){e&&(p.cancel(e),e=null,a.removeClass(w))}u(a),a.toggleClass(A,d.hasOwnProperty("disabled")),b.mdMode===T&&c(),b.$on("$destroy",function(){m(),g&&h(g)}),b.$watchGroup(["value","mdMode",function(){var e=t.disabled;return!0===e||!1===e?e:be.isDefined(a.attr("disabled"))}],function(e,t){var n=e[1],o=e[2],r=0,i=0;o!==t[2]&&a.toggleClass(A,!!o),o?m():(n!==f&&n!==T&&d.$set("mdMode",n=T),n===T?(t[1]===f&&(i=S(r=N(b.mdDiameter)),E.attr("d",_(r,i,!0)),E.attr("stroke-dasharray",D(r,i,75))),c()):(n=x(e[0]),e=x(t[0]),m(),t[1]===T&&(i=S(r=N(b.mdDiameter)),E.attr("d",_(r,i,!1)),E.attr("stroke-dasharray",D(r,i,100))),a.attr("aria-valuenow",n),s(e,n)))}),b.$watch("mdDiameter",function(e){var t=N(e),n=S(t),o=x(b.value),r=t/2+"px",e={width:t+"px",height:t+"px"};i[0].setAttribute("viewBox","0 0 "+t+" "+t),i.css(e).css("transform-origin",r+" "+r+" "+r),a.css(e),E.attr("stroke-width",n),E.attr("stroke-linecap","square"),b.mdMode==T?(E.attr("d",_(t,n,!0)),E.attr("stroke-dasharray",D(t,n,75)),E.attr("stroke-dashoffset",k(t,n,1,75))):(E.attr("d",_(t,n,!1)),E.attr("stroke-dasharray",D(t,n,100)),E.attr("stroke-dashoffset",k(t,n,0,100)),s(o,o))})}function _(e,t,n){var o=e/2,r=t/2,e=o+","+r,t=o-r;return"M"+e+"A"+t+","+t+" 0 1 1 "+(r+","+o)+(n?"":"A"+t+","+t+" 0 0 1 "+e)}function k(e,t,n,o){return r(e,t)*((o-n)/100)}function x(e){return $.Math.max(0,$.Math.min(e||0,100))}function N(e){var t=M.progressSize;if(e){var n=parseFloat(e);return n=e.lastIndexOf("%")===e.length-1?n/100*t:n}return t}function S(e){return M.strokeWidth/100*e}function D(e,t,n){return r(e,t)*(n/100)}function r(e,t){return(e-t)*$.Math.PI}}function je(m,u,e){var p="determinate",h="indeterminate",f="buffer",b="query",g="_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,t,n){var o;m(t);var r=n.hasOwnProperty("disabled"),i=u.dom.animator.toCss,a=be.element(t[0].querySelector(".md-bar1")),d=be.element(t[0].querySelector(".md-bar2")),s=be.element(t[0].querySelector(".md-container"));function l(){var e=(n.mdMode||"").trim();if(e)switch(e){case p:case h:case f:case b:break;default:e=h}return e}function c(e,t){!r&&l()&&(t=u.supplant("translateX({0}%) scale({1},1)",[(t-100)/2,t/100]),t=i({transform:t}),be.element(e).css(t))}t.attr("md-mode",l()).toggleClass(g,r),function(){{var e;be.isUndefined(n.mdMode)&&(e=be.isDefined(n.value)?p:h,t.attr("md-mode",e),n.mdMode=e)}}(),n.$observe("value",function(e){e=E(e);t.attr("aria-valuenow",e),l()!=b&&c(d,e)}),n.$observe("mdBufferValue",function(e){c(a,E(e))}),n.$observe("disabled",function(e){r=!0===e||!1===e?!!e:be.isDefined(e),t.toggleClass(g,r),s.toggleClass(o,!r)}),n.$observe("mdMode",function(e){switch(o&&s.removeClass(o),e){case b:case f:case p:case h:s.addClass(o="md-mode-"+e);break;default:s.addClass(o="md-mode-"+h)}})}function E(e){return Math.max(0,Math.min(e||0,100))}}function ze(s,l){return["$mdUtil","$window",function(a,d){return{restrict:"A",multiElement:!0,link:function(n,o,r){var i=n.$on("$md-resize-enable",function(){i();var e=o[0],t=e.nodeType===d.Node.ELEMENT_NODE?d.getComputedStyle(e):{};n.$watch(r[s],function(e){!!e===l&&(a.nextTick(function(){n.$broadcast("$md-resize")}),a.dom.animator.waitTransitionEnd(o,{cachedTransitionStyles:t}).then(function(){n.$broadcast("$md-resize")}))})})}}}]}function qe(o,d,s,r){var l="SideNav '{0}' is not available! Did you use md-component-id='{0}'?",c={find:function(e,t){var n=o.get(e);return n||t?n:(r.error(d.supplant(l,[e||""])),ge)},waitFor:m};return function(e,t){if(be.isUndefined(e))return c;var n,o=!0===t,r=c.find(e,o);return!r&&o?c.waitFor(e):!r&&be.isUndefined(t)?(t=c,n=e,be.extend({isLockedOpen:i,isOpen:i,toggle:a,open:a,close:a,onClose:be.noop,then:function(e){return m(n).then(e||be.noop)}},t)):r;function i(){return!1}function a(){return s.when(d.supplant(l,[n||""]))}};function m(e){return o.when(e).catch(r.error)}}function Ve(o,g,E,v,$,M,e,y,C,T,A,w,_){return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(e){return e.addClass("md-closed").attr("tabIndex","-1"),t}};function t(r,i,e,t){var a,d,s,l,c,m=null,u=null,p=T.when(!0),n=y(e.mdIsLockedOpen),h=be.element(w);function f(e){return e.keyCode===E.KEY_CODE.ESCAPE?b(e):T.when(!0)}function b(e){return e.preventDefault(),t.close()}e.mdDisableScrollTarget&&((m=A[0].querySelector(e.mdDisableScrollTarget))?m=be.element(m):C.warn(g.supplant('mdSidenav: couldn\'t find element matching selector "{selector}". Falling back to parent.',{selector:e.mdDisableScrollTarget}))),m=m||i.parent(),e.hasOwnProperty("mdDisableBackdrop")||(d=g.createBackdrop(r,"md-sidenav-backdrop md-opaque ng-enter")),e.hasOwnProperty("mdDisableCloseEvents")&&(s=!0),i.addClass("_md"),v(i),d&&v.inherit(d,i),i.on("$destroy",function(){d&&d.remove(),t.destroy()}),r.$on("$destroy",function(){d&&d.remove()}),r.$watch(function(){return n(r.$parent,{$mdMedia:o})},function(e,t){(r.isLockedOpen=e)===t?i.toggleClass("md-locked-open",!!e):M[e?"addClass":"removeClass"](i,"md-locked-open");d&&d.toggleClass("md-locked-open",!!e)}),r.$watch("isOpen",function(e){var t,n=g.findFocusTarget(i)||i,o=i.parent();s||(o[e?"on":"off"]("keydown",f),d&&d[e?"on":"off"]("click",b));t=function(e,t){var n=i[0],o=e[0].scrollTop;t&&o&&(c={top:n.style.top,bottom:n.style.bottom,height:n.style.height},e={top:o+"px",bottom:"auto",height:e[0].clientHeight+"px"},i.css(e),d.css(e));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")):be.isDefined(a)&&(m.css("overflow",a),a=ge)}(e),p=T.all([e&&d?M.enter(d,o):d?M.leave(d):T.when(!0),M[e?"removeClass":"addClass"](i,"md-closed")]).then(function(){r.isOpen&&(_(function(){h.triggerHandler("resize")}),n&&n.focus()),t&&t()})}),t.$toggleOpen=function(e){return r.isOpen===e?T.when(!0):(r.isOpen&&t.onCloseCb&&t.onCloseCb(),T(function(t){r.isOpen=e,g.nextTick(function(){p.then(function(e){!r.isOpen&&u&&"keyboard"===l&&(u.focus(),u=null),t(e)})})}))}}}function We(t,e,n,o,r){var i=this;i.isOpen=function(){return!!t.isOpen},i.isLockedOpen=function(){return!!t.isLockedOpen},i.onClose=function(e){return i.onCloseCb=e,i},i.open=function(){return i.$toggleOpen(!0)},i.close=function(){return i.$toggleOpen(!1)},i.toggle=function(){return i.$toggleOpen(!t.isOpen)},i.$toggleOpen=function(e){return o.when(t.isOpen=e)};var a=e.mdComponentId,d=a&&-1<a.indexOf(r.startSymbol()),a=d?r(a)(t.$parent):a;i.destroy=n.register(i,a),d&&e.$observe("mdComponentId",function(e){e&&e!==i.$$mdHandle&&(i.destroy(),i.destroy=n.register(i,e))})}function Ye(h,f,b,g){var E=b.checkStickySupport();return function(e,t,n){var o,r,i,a,d=t.controller("mdContent");function s(){var e;r.items.forEach(l),r.items=r.items.sort(function(e,t){return e.top<t.top?-1:1});for(var t=i.prop("scrollTop"),n=r.items.length-1;0<=n;n--)if(t>r.items[n].top){e=r.items[n];break}m(e)}function l(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=b.floatingScrollbars()?"0":ge;b.bidi(e.clone,"margin-left",e.left,n),b.bidi(e.clone,"margin-right",n,e.right)}function c(){var e=i.prop("scrollTop"),t=e>(c.prevScrollTop||0);if(0!==(c.prevScrollTop=e)){if(t){if(r.next&&r.next.top<=e)return void m(r.next);if(r.current&&r.next&&r.next.top-e<=r.next.height)return void p(r.current,e+(r.next.top-r.next.height-e))}if(!t){if(r.current&&r.prev&&e<r.current.top)return void m(r.prev);if(r.next&&r.current&&e>=r.next.top-r.current.height)return void p(r.current,e+(r.next.top-e-r.current.height))}r.current&&p(r.current,e)}else m(null)}function m(e){r.current!==e&&(r.current&&(p(r.current,null),u(r.current,null)),e&&u(e,"active"),r.current=e,e=r.items.indexOf(e),r.next=r.items[e+1],r.prev=r.items[e-1],u(r.next,"next"),u(r.prev,"prev"))}function u(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 p(e,t){e&&(null===t||t===ge?e.translateY&&(e.translateY=null,e.clone.css(h.CSS.TRANSFORM,"")):(e.translateY=t,b.bidi(e.clone,h.CSS.TRANSFORM,"translate3d("+e.left+"px,"+t+"px,0)","translateY("+t+"px)")))}d&&(E?t.css({position:E,top:0,"z-index":2}):((o=d.$element.data("$$sticky"))||(i=d.$element,a=f.throttle(s),function(e){var t,n,o=200;function r(){+b.now()-n>o?(t=!1,e.triggerHandler("$scrollend")):(e.triggerHandler("$scroll"),f.throttle(r))}e.on("scroll touchmove",function(){t||(t=!0,f.throttle(r),e.triggerHandler("$scrollstart")),e.triggerHandler("$scroll"),n=+b.now()})}(i),i.on("$scrollstart",a),i.on("$scroll",c),o=r={prev:null,current:null,next:null,items:[],add:function(n,e){e.addClass("md-sticky-clone");var t={element:n,clone:e};return r.items.push(t),b.nextTick(function(){i.prepend(t.clone)}),a(),function(){r.items.forEach(function(e,t){e.element[0]===n[0]&&(r.items.splice(t,1),e.clone.remove())}),a()}},refreshElements:s},d.$element.data("$$sticky",o)),n=n||g(t.clone())(e),n=o.add(t,n),e.$on("$destroy",n)))}}function Ke(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,r){l(o),o.addClass("_md"),c.prefixer().removeAttribute(o,"ng-repeat");var i=o[0].outerHTML;function a(e){return be.element(e[0].querySelector(".md-subheader-content"))}e.$set("role","heading"),m.expect(o,"aria-level","2"),r(n,function(e){a(o).append(e)}),o.hasClass("md-no-sticky")||r(n,function(e){var t=s('<div class="md-subheader-wrapper" aria-hidden="true">'+i+"</div>")(n);c.nextTick(function(){a(t).append(e)}),d(n,o,t)})}}}function Ge(e){t.$inject=["$parse"];var i="md"+e,a="$md."+e.toLowerCase();return t;function t(r){return{restrict:"A",link:function(n,e,t){var o=r(t[i]);e.on(a,function(e){var t=e.currentTarget;n.$applyAsync(function(){o(n,{$event:e,$target:{current:t}})})})}}}}function Xe(e,m,u,p,h,f,b){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 r=o[1]||m.fakeNgModel(),i=(o[2],null);null!=e.disabled?i=function(){return!0}:e.ngDisabled&&(i=p(e.ngDisabled));var a,d=be.element(n[0].querySelector(".md-thumb-container")),s=be.element(n[0].querySelector(".md-container")),l=be.element(n[0].querySelector(".md-label"));h(function(){n.removeClass("md-dragging")}),c(t,n,e,o),i&&t.$watch(i,function(e){n.attr("tabindex",e?-1:0)}),e.$observe("mdInvert",function(e){e=m.parseAttributeBoolean(e);e?n.prepend(l):n.prepend(s),n.toggleClass("md-inverted",e)}),f.register(s,"drag"),s.on("$md.dragstart",function(e){i&&i(t)||(e.stopPropagation(),n.addClass("md-dragging"),a={width:d.prop("offsetWidth")})}).on("$md.drag",function(e){a&&(e.stopPropagation(),e.srcEvent&&e.srcEvent.preventDefault(),e=e.pointer.distanceX/a.width,e=r.$viewValue?1+e:e,e=Math.max(0,Math.min(1,e)),d.css(u.CSS.TRANSFORM,"translate3d("+100*e+"%,0,0)"),a.translate=e)}).on("$md.dragend",function(e){a&&(e.stopPropagation(),n.removeClass("md-dragging"),d.css(u.CSS.TRANSFORM,""),(r.$viewValue?a.translate<.5:.5<a.translate)&&function(e){t.$apply(function(){r.$setViewValue(e),r.$render()})}(!r.$viewValue),a=null,t.skipToggle=!0,b(function(){t.skipToggle=!1},1))})}}}}function Ze(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 Qe(n,d,t,o,r,i,a,s,l,e,c,m,u){var p=this,h=!1,f=[],b=!1,g=!1;function E(t,e){var n=s.$normalize("md-"+t);function o(e){p[t]="false"!==e}e&&P(t,e,ge),s.hasOwnProperty(n)&&o(s[n]),s.$observe(n,o)}function v(){b=!0,be.element(t).off("resize",N)}function $(){var e=H();be.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}}()),V()}function M(){p.shouldCenterTabs=I()}function y(t,e){t!==e&&(e=H(),be.forEach(e.tabs,function(e){e.style.maxWidth=t+"px"}),be.forEach(e.dummies,function(e){e.style.maxWidth=t+"px"}),i.nextTick(p.updateInkBarStyles))}function C(e,t){e!==t&&(p.maxTabWidth=F(),p.shouldCenterTabs=I(),i.nextTick(function(){p.maxTabWidth=F(),j(p.selectedIndex)}))}function T(e){d[e?"removeClass":"addClass"]("md-no-tab-content")}function A(e){e=(e=(p.shouldCenterTabs||Y()?"":"-")+e+"px").replace("--","");be.element(H().paging).css(o.CSS.TRANSFORM,"translate("+e+", 0)"),n.$broadcast("$mdTabsPaginationChanged")}function w(e,t){e!==t&&H().tabs[e]&&(j(),U())}function _(e,t){e!==t&&(p.selectedIndex=O(e),p.lastSelectedIndex=t,p.updateInkBarStyles(),q(),j(e),n.$broadcast("$mdTabsChanged"),p.tabs[t]&&p.tabs[t].scope.deselect(),p.tabs[e]&&p.tabs[e].scope.select())}function k(){k.watcher||(k.watcher=n.$watch(function(){i.nextTick(function(){k.watcher&&d.prop("offsetParent")&&(k.watcher(),k.watcher=null,N())},!1)}))}function x(e,t){h||(p.focusIndex=p.selectedIndex=e),t&&p.noSelectClick||i.nextTick(function(){p.tabs[e].element.triggerHandler("click")},!1)}function N(){p.lastSelectedIndex=p.selectedIndex,p.offsetLeft=W(p.offsetLeft),i.nextTick(function(){p.updateInkBarStyles(),L()})}function S(e){be.element(H().inkBar).toggleClass("ng-hide",e)}function D(e){d.toggleClass("md-dynamic-height",e)}function H(){var e={},t=d[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 O(e){if(-1===e)return-1;for(var t,n=Math.max(p.tabs.length-e,e),o=0;o<=n;o++){if((t=p.tabs[e+o])&&!0!==t.scope.disabled)return t.getIndex();if((t=p.tabs[e-o])&&!0!==t.scope.disabled)return t.getIndex()}return e}function P(e,n,o){Object.defineProperty(p,e,{get:function(){return o},set:function(e){var t=o;o=e,n&&n(e,t)}})}function L(){p.maxTabWidth=F(),p.shouldPaginate=function(){var e;if(p.noPagination||!g)return!1;var t=d.prop("clientWidth");return be.forEach(H().tabs,function(e){t-=e.offsetWidth}),e=t<0,i.msie&&(H().paging.style.width=e?"999999px":ge),e}()}function R(e){var t=0;return be.forEach(e,function(e){t+=Math.max(e.offsetWidth,e.getBoundingClientRect().width)}),Math.ceil(t)}function F(){var e=H().canvas.clientWidth;return Math.max(0,Math.min(e-1,264))}function B(e,t){for(var n=t?"focusIndex":"selectedIndex",t=p[n],o=t+e;p.tabs[o]&&p.tabs[o].scope.disabled;o+=e);o=(t+e+p.tabs.length)%p.tabs.length,p.tabs[o]&&(p[n]=o)}function U(){p.styleTabItemFocus="keyboard"===c.getLastInteractionType();var e=H().tabs[p.focusIndex];e&&e.focus()}function j(e){var t,n,o,r=H();be.isNumber(e)||(e=p.focusIndex),r.tabs[e]&&(p.shouldCenterTabs||(t=(o=r.tabs[e]).offsetLeft,n=o.offsetWidth+t,0!==e?Y()?(o=R(Array.prototype.slice.call(r.tabs,0,e)),e=R(Array.prototype.slice.call(r.tabs,0,e+1)),p.offsetLeft=Math.min(p.offsetLeft,W(o)),p.offsetLeft=Math.max(p.offsetLeft,W(e-r.canvas.clientWidth))):(p.offsetLeft=Math.max(p.offsetLeft,W(n-r.canvas.clientWidth+32)),p.offsetLeft=Math.min(p.offsetLeft,W(t))):p.offsetLeft=0))}function z(){p.selectedIndex=O(p.selectedIndex),p.focusIndex=O(p.focusIndex)}function q(){if(!p.dynamicHeight)return d.css("height","");if(!p.tabs.length)return f.push(q);var e=H(),t=e.contents[p.selectedIndex],n=t?t.offsetHeight:0,t=e.wrapper.offsetHeight,e=n+t,n=d.prop("clientHeight");n!==e&&("bottom"===d.attr("md-align-tabs")&&(n-=t,e-=t,d.attr("md-border-bottom")!==ge&&++n),h=!0,e={height:e+"px"},d.css(n={height:n+"px"}),a(d,{from:n,to:e,easing:"cubic-bezier(0.35, 0, 0.25, 1)",duration:.5}).start().done(function(){d.css({transition:"none",height:""}),i.nextTick(function(){d.css("transition","")}),h=!1}))}function V(e,t){var n,o,r,i,a;p.noInkBar||((n=H()).tabs[p.selectedIndex]?p.tabs.length?d.prop("offsetParent")?(o=p.selectedIndex,r=(i=n.paging.offsetWidth)-(o=(r=n.tabs[o]).offsetLeft)-r.offsetWidth,!p.shouldCenterTabs||(a=R(n.tabs))<i&&e!==i&&t!==a&&m(V,0,!0,i,a),t=H(),i=p.selectedIndex,a=p.lastSelectedIndex,t=be.element(t.inkBar),be.isNumber(a)&&t.toggleClass("md-left",i<a).toggleClass("md-right",a<i),be.element(n.inkBar).css({left:o+"px",right:r+"px"})):k():f.push(p.updateInkBarStyles):be.element(n.inkBar).css({left:"auto",right:"auto"}))}function W(e){var t=H();if(!t.tabs.length||!p.shouldPaginate)return 0;var n=t.tabs[t.tabs.length-1],n=n.offsetLeft+n.offsetWidth;return e=Y()?(e=Math.min(t.paging.offsetWidth-t.canvas.clientWidth,e),Math.max(0,e)):(e=Math.max(0,e),Math.min(n-t.canvas.clientWidth,e))}function Y(){return i.isRtl(s)}p.$onInit=function(){(function(t,e){var n=s.$normalize("md-"+t);e&&P(t,e);s.$observe(n,function(e){p[t]=e})})("stretchTabs",$),P("focusIndex",w,p.selectedIndex||0),P("offsetLeft",A,0),P("hasContent",T,!1),P("maxTabWidth",y,F()),P("shouldPaginate",C,!1),E("noInkBar",S),E("dynamicHeight",D),E("noPagination"),E("swipeContent"),E("autoselect"),E("noSelectClick"),E("centerTabs",M),E("enableDisconnect"),p.scope=n,p.parent=n.$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=s.$mdTabsTemplate,t=be.element(d[0].querySelector("md-tab-data"));t.html(e),l(t.contents())(p.parent),delete s.$mdTabsTemplate}(),n.$watch("$mdTabsCtrl.selectedIndex",_),be.element(t).on("resize",N),n.$on("$destroy",v),e(d),i.nextTick(function(){q(),j(),V(),p.tabs[p.selectedIndex]&&p.tabs[p.selectedIndex].scope.select(),g=!0,L()})},p.updatePagination=i.debounce(L,100),p.redirectFocus=U,p.attachRipple=function(e,t){var n=H(),n={colorElement:be.element(n.inkBar)};r.attach(e,t,n)},p.insertTab=function(e,t){var n=g,o={getIndex:function(){return p.tabs.indexOf(r)},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.dynamicHeight||this.isActive()},hasFocus:function(){return p.styleTabItemFocus&&p.hasFocus&&this.getIndex()===p.focusIndex},id:i.nextUid(),hasContent:!(!e.template||!e.template.trim())},r=be.extend(o,e);be.isDefined(t)?p.tabs.splice(t,0,r):p.tabs.push(r);return f.forEach(function(e){i.nextTick(e)}),void(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}(),i.nextTick(function(){L(),function(e){{var t;e.hasContent&&(t=d[0].querySelectorAll('[md-tab-id="'+e.id+'"]'),be.element(t).attr("aria-controls",p.tabContentPrefix+e.id))}}(r),n&&p.autoselect&&i.nextTick(function(){i.nextTick(function(){x(p.tabs.indexOf(r))})})}),r},p.removeTab=function(e){var t;b||(t=p.selectedIndex,e=p.tabs.splice(e.getIndex(),1)[0],z(),p.selectedIndex===t&&(e.scope.deselect(),p.tabs[p.selectedIndex]&&p.tabs[p.selectedIndex].scope.select()),i.nextTick(function(){L(),p.offsetLeft=W(p.offsetLeft)}))},p.select=x,p.scroll=function(e){p.shouldPaginate&&(e.preventDefault(),e.deltaY?p.offsetLeft=W(p.offsetLeft+e.deltaY):e.deltaX&&(p.offsetLeft=W(p.offsetLeft+e.deltaX)))},p.nextPage=function(){var e;p.canPageForward()&&(e=u.increasePageOffset(H(),p.offsetLeft),p.offsetLeft=W(e))},p.previousPage=function(){var e;p.canPageBack()&&(e=u.decreasePageOffset(H(),p.offsetLeft),p.offsetLeft=W(e))},p.keydown=function(e){switch(e.keyCode){case o.KEY_CODE.LEFT_ARROW:e.preventDefault(),B(-1,!0);break;case o.KEY_CODE.RIGHT_ARROW:e.preventDefault(),B(1,!0);break;case o.KEY_CODE.SPACE:case o.KEY_CODE.ENTER:e.preventDefault(),h||x(p.focusIndex);break;case o.KEY_CODE.TAB:p.focusIndex!==p.selectedIndex&&(p.focusIndex=p.selectedIndex)}},p.canPageForward=function(){var e=H(),t=e.tabs[e.tabs.length-1];if(Y())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=z,p.incrementIndex=B,p.getTabElementIndex=function(e){var t=d[0].getElementsByTagName("md-tab");return Array.prototype.indexOf.call(t,e[0])},p.updateInkBarStyles=i.debounce(V,100),p.updateTabOrder=i.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===be.version.major&&be.version.minor<=4&&this.$onInit()}function Je(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 et(d,s){return{require:"^?mdTabs",link:function(e,t,n,o){var r,i,a;o&&(i=function(){o.updatePagination(),o.updateInkBarStyles()},a="MutationObserver"in s?((r=new MutationObserver(i)).observe(t[0],{childList:!0,subtree:!0,characterData:!0}),r.disconnect.bind(r)):(i=d.debounce(i,15,null,!1),t.on("DOMSubtreeModified",i),t.off.bind(t,"DOMSubtreeModified",i)),e.$on("$destroy",function(){a()}))}}}function tt(a,d){return{restrict:"A",link:function(e,t,n,o){if(o){var r=o.enableDisconnect?e.compileScope.$new():e.compileScope;return t.html(e.template),a(t.contents())(r),d.nextTick(function(){e.$watch("connected",function(e){!1===e?o.enableDisconnect&&d.disconnectScope(r):i()}),e.$on("$destroy",i)})}function i(){o.enableDisconnect&&d.reconnectScope(r)}},scope:{template:"=mdTabsTemplate",connected:"=?mdConnectedIf",compileScope:"=mdScope"},require:"^?mdTabs"}}function nt(n){return{restrict:"E",link:function(e,t){t.addClass("_md"),e.$on("$destroy",function(){n.destroy()})}}}function ot(e){n.$inject=["$mdToast","$scope","$log"],t.$inject=["$animate","$mdToast","$mdUtil","$mdMedia","$document","$q"];var m,u="ok";return e("$mdToast").setDefaults({methods:["position","hideDelay","capsule","parent","position","toastClass"],options:t}).addPreset("simple",{argOption:"textContent",methods:["textContent","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",function(e){m=e});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 t(i,a,d,s,l,o){var c="$md.swipeleft $md.swiperight $md.swipeup $md.swipedown";return{onShow:function(e,n,o){m=o.textContent;var r=!s("gt-sm");n=d.extractElementByName(n,"md-toast",!0),o.element=n,o.onSwipe=function(e){var t=e.type.replace("$md.",""),e=t.replace("swipe","");"down"===e&&-1!==o.position.indexOf("top")&&!r||"up"===e&&(-1!==o.position.indexOf("bottom")||r)||("left"===e||"right"===e)&&r||(n.addClass("md-"+t),d.nextTick(a.cancel))},o.openClass=function(e){return s("gt-xs")?"md-toast-open-"+(-1<e.indexOf("top")?"top":"bottom"):"md-toast-open-bottom"}(o.position),n.addClass(o.toastClass),o.parent.addClass(o.openClass),d.hasComputedStyle(o.parent,"position","static")&&o.parent.css("position","relative");(function(t){l.on("keydown",function(e){"Escape"===e.key&&a.hide(!1),t&&e.key===t&&e.ctrlKey&&a.hide(u)})})(e.toast&&e.toast.actionKey?e.toast.actionKey:ge),n.on(c,o.onSwipe);var t=!1,e=o.position.split(" ").map(function(e){if(e){e="md-"+e;return"md-top"!=e&&"md-bottom"!=e||(t=!0),e}return"md-bottom"});t||e.push("md-bottom");n.addClass(r?"md-bottom":e.join(" ")),o.parent&&o.parent.addClass("md-toast-animating");return i.enter(n,o.parent).then(function(){o.parent&&o.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?o.when(t.remove()):i.leave(t)).then(function(){n.parent&&n.parent.removeClass("md-toast-animating"),d.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,r=0;r<n.children.length;r++)"MD-TOAST"===n.children[r].nodeName&&((o=be.element('<div class="md-toast-content">')).append(be.element(n.children[r].childNodes)),n.children[r].appendChild(o[0]));return n.innerHTML}return e||""}}}}function rt(f,b,g,e,E,v){var $=be.bind(null,g.supplant,"translate3d(0,{0}px,0)");return{template:"",restrict:"E",link:function(u,p,h){p.addClass("_md"),e(p),g.nextTick(function(){p.addClass("_md-toolbar-transitions")},!1),be.isDefined(h.mdScrollShrink)&&function(){var t,n,o=be.noop,r=0,i=0,a=h.mdShrinkSpeedFactor||.5,d=f.throttle(c),s=g.debounce(e,5e3);u.$on("$mdContentLoaded",l),h.$observe("mdScrollShrink",function(e){var t=g.getSiblings(p,"md-content");!n&&t.length&&l(0,t[0]);!1===(e=u.$eval(e))?o():o=m()}),h.ngShow&&u.$watch(h.ngShow,e);h.ngHide&&u.$watch(h.ngHide,e);function l(e,t){t&&p.parent()[0]===t.parent()[0]&&(n&&n.off("scroll",d),n=t,o=m())}function c(e){e=e?e.target.scrollTop:i;s(),r=Math.min(t/a,Math.max(0,r+e-i)),p.css(b.CSS.TRANSFORM,$([-r*a])),n.css(b.CSS.TRANSFORM,$([(t-r)*a])),i=e,g.nextTick(function(){var e=p.hasClass("md-whiteframe-z1");e&&!r?E.removeClass(p,"md-whiteframe-z1"):!e&&r&&E.addClass(p,"md-whiteframe-z1")})}function m(){return n?(n.on("scroll",d),n.attr("scroll-shrink","true"),v(e),function(){n.off("scroll",d),n.attr("scroll-shrink","false"),e()}):be.noop}function e(){var e=-(t=p.prop("offsetHeight"))*a+"px";n.css({"margin-top":e,"margin-bottom":e}),c()}u.$on("$destroy",o)}()}}}function it(E,v,$,M,y,C,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,n,d){var o,e,r,i,s,l="md-tooltip-"+C.nextUid(),c=C.getParentWithPointerEvents(n),m=$.throttle(f),u=!1,p=null;function t(){a.mdZIndex=a.mdZIndex||100,a.mdDelay=a.mdDelay||0,k[a.mdDirection]||(a.mdDirection="bottom")}function h(e){e=e||y(n.text().trim())(a.$parent);(c.attr("aria-label")||c.attr("aria-labelledby"))&&!c.attr("md-labeled-by-tooltip")||(c.attr("aria-label",e),c.attr("md-labeled-by-tooltip")||c.attr("md-labeled-by-tooltip",l))}function f(){t(),i&&i.panelEl&&i.panelEl.removeClass(o),o="md-origin-"+a.mdDirection,e=k[a.mdDirection],r=T.newPanelPosition().relativeTo(c).addPanelPosition(e.x,e.y),i&&i.panelEl&&(i.panelEl.addClass(o),i.updatePosition(r))}function b(e){b.queued&&b.value===!!e||!b.queued&&a.mdVisible===!!e||(b.value=!!e,b.queued||(e?(b.queued=!0,s=E(function(){a.mdVisible=b.value,b.queued=!1,s=null,a.visibleWatcher||g(a.mdVisible)},a.mdDelay)):C.nextTick(function(){a.mdVisible=!1,a.visibleWatcher||g(!1)})))}function g(e){e?function(){if(!n[0].textContent.trim())throw new Error("Text for the tooltip has not been provided. Please include text within the mdTooltip element.");{var e,t;i||(e=be.element(document.body),t=T.newPanelAnimation().openFrom(c).closeTo(c).withAnimation({open:"md-show",close:"md-hide"}),t={id:l,attachTo:e,contentElement:n,propagateContainerEvents:!0,panelClass:"md-tooltip",animation:t,position:r,zIndex:a.mdZIndex,focusOnOpen:!1,onDomAdded:function(){i.panelEl.addClass(o)}},i=T.create(t))}i.open().then(function(){i.panelEl.attr("role","tooltip")})}():i&&i.close()}t(),h(),n.detach(),f(),function(){var e;function t(){b(!1)}function n(){p=document.activeElement===c[0]}function o(e){"focus"===e.type&&p?p=!1:a.mdVisible||(c.on(_,r),b(!0),"touchstart"===e.type&&c.one("touchend",function(){C.nextTick(function(){M.one("touchend",r)},!1)}))}function r(){((a.hasOwnProperty("mdAutohide")?a.mdAutohide:d.hasOwnProperty("mdAutohide"))||u||M[0].activeElement!==c[0])&&(s&&(E.cancel(s),b.queued=!1,s=null),c.off(_,r),c.triggerHandler("blur"),b(!1)),u=!1}function i(){u=!0}c[0]&&"MutationObserver"in v&&(e=new MutationObserver(function(e){e.some(function(e){return"disabled"===e.attributeName&&c[0].disabled})})).observe(c[0],{attributes:!0}),p=!1,A.register("scroll",t,!0),A.register("blur",n),A.register("resize",m),a.$on("$destroy",function(){A.deregister("scroll",t,!0),A.deregister("blur",n),A.deregister("resize",m),c.off(w,o).off(_,r).off("mousedown",i),r(),e&&e.disconnect()}),c.on("mousedown",i),c.on(w,o)}(),function(){var e;function t(){a.$destroy()}n[0]&&"MutationObserver"in v?((e=new MutationObserver(function(e){e.forEach(function(e){"md-visible"!==e.attributeName||a.visibleWatcher||(a.visibleWatcher=a.$watch("mdVisible",g))})})).observe(n[0],{attributes:!0}),d.hasOwnProperty("mdVisible")&&(a.visibleWatcher=a.$watch("mdVisible",g))):a.visibleWatcher=a.$watch("mdVisible",g),a.$watch("mdDirection",f),n.one("$destroy",t),c.one("$destroy",t),a.$on("$destroy",function(){b(!1),i&&i.destroy(),e&&e.disconnect(),n.remove()}),-1<n.text().indexOf(y.startSymbol())&&a.$watch(function(){return n.text().trim()},h)}()}}}function at(e){e.addClass("md-truncate")}function dt(r){return{link:function(e,t,n){var o="";n.$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",t[0]),e=4);e=-1==e?"":"md-whiteframe-"+e+"dp";n.$updateClass(e,o),o=e})}}}be.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"],be.module("material.core",["ngAnimate","material.core.animate","material.core.layout","material.core.interaction","material.core.gestures","material.core.theming"]).config(t).run(e),r.$inject=["$parse"],be.module("material.core").directive("mdAutofocus",r),be.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=(o="#"===e[0]?e.substr(1):e).length/3,n=o.substr(0,t),e=o.substr(t,t),o=o.substr(2*t);return 1==t&&(n+=n,e+=e,o+=o),"rgba("+parseInt(n,16)+","+parseInt(e,16)+","+parseInt(o,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)"}}}),be.module("material.core").factory("$mdConstant",function(){var o=document.createElement("div"),r=function(e){var t,n,o=/^(Moz|webkit|ms)(?=[A-Z])/;for(t in e.style)if(n=o.exec(t))return n[0]}(o),e=/webkit/i.test(r),i=/([:\-_]+(.))/g;function t(e){var t=(r+"-"+e).replace(i,function(e,t,n,o){return o?n.toUpperCase():n}),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 be.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}),be.module("material.core").config(["$provide",function(e){e.decorator("$mdUtil",["$delegate",function(e){return e.iterator=i,e}])}]),a.$inject=["$mdConstant","$rootScope","$window"],be.module("material.core").factory("$mdMedia",a),be.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 e,g,E,v,$=0;function t(s,d,n,a,e,t,i,o,r,l){var c=t.startSymbol(),m=t.endSymbol(),u="{{"===c&&"}}"===m;document.contains||(document.contains=function(e){return document.body.contains(e)});function p(e,t,n){var o=!1;return e&&e.length&&(e=r.getComputedStyle(e[0]),o=be.isDefined(e[t])&&(!n||e[t]==n)),o}function h(e){return e?-1<String(e).indexOf("px")||-1<String(e).indexOf("%")?e:e+"px":"0"}var f={dom:{},isIos:g,isAndroid:E,now:y.performance&&y.performance.now?be.bind(y.performance,y.performance.now):Date.now||function(){return(new Date).getTime()},getModelOption:function(e,t){if(e.$options){e=e.$options;return e.getOption?e.getOption(t):e[t]}},isRtl:function(e){switch(be.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 r=!this.isRtl();if(0==arguments.length)return r?"ltr":"rtl";e=be.element(e);r&&be.isDefined(n)?e.css(t,h(n)):!r&&be.isDefined(o)&&e.css(t,h(o))},bidiProperty:function(e,t,n,o){var r=!this.isRtl(),e=be.element(e);r&&be.isDefined(t)?(e.css(t,h(o)),e.css(n,"")):!r&&be.isDefined(n)&&(e.css(n,h(o)),e.css(t,""))},clientRect:function(e,t,n){e=b(e);t=b(t||e.offsetParent||document.body);e=e.getBoundingClientRect(),t=n?t.getBoundingClientRect():{left:0,top:0,width:0,height:0};return{left:e.left-t.left,top:e.top-t.top,width:e.width,height:e.height}},offsetRect:function(e,t){return f.clientRect(e,t,!0)},nodesToArray:function(e){var t,n=[];for(e=e||[],t=0;t<e.length;++t)n.push(e.item(t));return n},getViewportTop:function(){return f.disableScrollAround._count&&f.disableScrollAround._viewPortTop?f.disableScrollAround._viewPortTop:r.scrollY||r.pageYOffset||0},findFocusTarget:function(e,t){var n=this.prefixer("md-autofocus",!0),t=o(e,t||n);return t=t||o(e,n);function o(e,t){var n,t=e[0].querySelectorAll(t);return t&&t.length&&t.length&&be.forEach(t,function(e){(e=be.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 r=d.clientWidth,i=d.scrollHeight>d.clientHeight+1,a=0<e.scrollTop?e:d;i&&be.element(d).css({position:"fixed",width:"100%",top:-o+"px"});d.clientWidth<r&&(d.style.overflow="hidden");return function(){d.style.cssText=n,e.style.cssText=t,a.scrollTop=o}}(),r=function(e,t){var n,e=be.element(e||d);t.disableScrollMask?n=e:(n=be.element('<div class="md-scroll-mask"> <div class="md-scroll-mask-bar"></div></div>'),e.append(n));function o(e){e.preventDefault()}return n.on("wheel touchmove",o),function(){n.off("wheel touchmove",o),!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(),r(),delete f.disableScrollAround._restoreScroll)}},enableScrolling:function(){var e=this.disableScrollAround._restoreScroll;e&&e()},floatingScrollbars:function(){var e;return this.floatingScrollbars.cached===ge&&((e=be.element("<div><div></div></div>").css({width:"100%","z-index":-1,position:"absolute",height:"35px","overflow-y":"scroll"})).children().css("height","60px"),s[0].body.appendChild(e[0]),this.floatingScrollbars.cached=e[0].offsetWidth===e[0].childNodes[0].offsetWidth,e.remove()),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);e=document.createEvent("MouseEvents");e.initMouseEvent("click",!1,!0,y,{},0,0,0,0,!1,!1,!1,!1,0,null),e.$material=!0,e.$focus=!0,n.dispatchEvent(e)},createBackdrop:function(e,t){return n(f.supplant('<md-backdrop class="{0}">',[t]))(e)},supplant:function(e,i,t){return e.replace(t=t||/\{([^{}]*)\}/g,function(t,e){var n=e.split("."),o=i;try{for(var r in n)n.hasOwnProperty(r)&&(o=o[n[r]])}catch(e){o=t}return"string"==typeof o||"number"==typeof o?o:t})},fakeNgModel:function(){return{$fake:!0,$setTouched:be.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:be.noop}},debounce:function(n,o,r,i){var a;return function(){var e=r,t=Array.prototype.slice.call(arguments);d.cancel(a),a=d(function(){a=ge,n.apply(e,t)},o||10,i)}},throttle:function(n,o){var r;return function(){var e=arguments,t=f.now();(!r||o<t-r)&&(n.apply(this,e),r=t)}},time:function(e){var t=f.now();return e(),f.now()-t},valueOnUse:function(e,t,n){var o=null,r=Array.prototype.slice.call(arguments),i=3<r.length?r.slice(3):[];Object.defineProperty(e,t,{get:function(){return o=null===o?n.apply(e,i):o}})},nextUid:function(){return""+$++},disconnectScope:function(e){var t;e&&e.$root!==e&&(e.$$destroyed||(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){var t;e&&e.$root!==e&&e.$$disconnected&&(e=(t=e).$parent,t.$$disconnected=!1,t.$$prevSibling=e.$$childTail,e.$$childHead?(e.$$childTail.$$nextSibling=t,e.$$childTail=t):e.$$childHead=e.$$childTail=t)},getSiblings:function(t,e){var n=e.toUpperCase();return t instanceof be.element&&(t=t[0]),Array.prototype.filter.call(t.parentNode.children,function(e){return t!==e&&e.tagName.toUpperCase()===n}).map(function(e){return be.element(e)})},getClosest:function(e,t,n){var o;if(be.isString(t)&&(o=t.toUpperCase(),t=function(e){return e.nodeName.toUpperCase()===o}),e instanceof be.element&&(e=e[0]),!(e=n?e.parentNode:e))return null;do{if(t(e))return e}while(e=e.parentNode);return null},elementContains:function(t,n){return(y.Node&&y.Node.prototype&&Node.prototype.contains?be.bind(t,t.contains):be.bind(t,function(e){return t===n||!!(16&this.compareDocumentPosition(e))}))(n)},extractElementByName:function(e,o,t,n){var r=d(e);return!r&&n&&i.warn(f.supplant("Unable to find node '{0}' in element '{1}'.",[o,e[0].outerHTML])),be.element(r||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 r=e[n];if(!t)for(var i=0,a=r.childNodes.length;i<a;i++)t=t||d([r.childNodes[i]])}return t}(e):null)}},initOptionalProperties:function(n,o,r){r=r||{},be.forEach(n.$$isolateBindings,function(e,t){e.optional&&be.isUndefined(n[t])&&(e=be.isDefined(o[e.attrName]),n[t]=be.isDefined(r[t])?r[t]:e)})},nextTick:function(e,t,n){var o=f.nextTick,r=o.timeout,i=o.queue||[];return i.push({scope:n,callback:e}),null==t&&(t=!0),o.digest=o.digest||t,o.queue=i,r||(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&&be.isString(e)?e.replace(/\{\{/g,c).replace(/}}/g,m):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=be.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){e=f.getClosest(e,"form"),e=e?be.element(e).controller("form"):null;return!!e&&e.$submitted},animateScrollTo:function(n,o,t){var r=n.scrollTop,i=o-r,a=r<o,d=f.now();function s(){var e=t||1e3;return function(e,t,n,o){if(o<e)return t+n;o=(e/=o)*e;return t+n*(o*e*-2+3*o)}(f.now()-d,r,i,e)}l(function e(){var t=s();n.scrollTop=t;(a?t<o:o<t)&&l(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:y.document.documentMode,getTouchAction:function(){for(var e=document.createElement("div"),t=["","webkit","Moz","MS","ms","o"],n=0;n<t.length;n++){var o=t[n],o=o?o+"TouchAction":"touchAction";if(be.isDefined(e.style[o]))return o}},getEventPath:function(e){for(var t=[],n=e.target;n;)t.push(n),n=n.parentElement;return-1===t.indexOf(y)&&-1===t.indexOf(document)&&t.push(document),-1===t.indexOf(y)&&t.push(y),t},sanitize:function(e){return e&&e.replace(/[\\^$*+?.()|{}[]/g,"\\$&")},isDisabled:function(e){return e.hasAttribute("disabled")},isVisible:function(e){return f.hasGeometry(e)&&"visible"===getComputedStyle(e).visibility},isTabbable:function(e){var t=f.getFrameElement(f.getWindow(e));if(t){if(-1===f.getTabIndexValue(t))return!1;if(!f.isVisible(t))return!1}var n=e.nodeName.toLowerCase(),t=f.getTabIndexValue(e);return e.hasAttribute("contenteditable")?-1!==t:"iframe"!==n&&"object"!==n&&(!(g&&!f.isPotentiallyTabbableIOS(e))&&("audio"===n?!!e.hasAttribute("controls")&&-1!==t:"video"===n?-1!==t&&(null!==t||(v||e.hasAttribute("controls"))):0<=e.tabIndex))},isFocusable:function(e){return f.isPotentiallyFocusable(e)&&!f.isDisabled(e)&&f.isVisible(e)},isPotentiallyFocusable:function(e){return!f.isHiddenInput(e)&&(f.isNativeFormElement(e)||f.isAnchorWithHref(e)||e.hasAttribute("contenteditable")||f.hasValidTabIndex(e))},isPotentiallyTabbableIOS:function(e){var t=e.nodeName.toLowerCase(),e="input"===t&&e.type;return"text"===e||"password"===e||"select"===t||"textarea"===t},getTabIndexValue:function(e){if(!f.hasValidTabIndex(e))return null;e=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e},hasValidTabIndex:function(e){if(!e.hasAttribute("tabindex")||e.tabIndex===ge)return!1;e=e.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))},hasGeometry:function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)},getFrameElement:function(e){try{return e.frameElement}catch(e){return null}},getWindow:function(e){return e.ownerDocument&&e.ownerDocument.defaultView||y},isNativeFormElement:function(e){e=e.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e},isHiddenInput:function(e){return f.isInputElement(e)&&"hidden"==e.type},isAnchorWithHref:function(e){return f.isAnchorElement(e)&&e.hasAttribute("href")},isInputElement:function(e){return"input"==e.nodeName.toLowerCase()},isAnchorElement:function(e){return"a"==e.nodeName.toLowerCase()},getFirstTabbableElement:function(e){if(f.isFocusable(e)&&f.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var o=t[n].nodeType===s[0].ELEMENT_NODE?f.getFirstTabbableElement(t[n]):null;if(o)return o}return null},getLastTabbableElement:function(e){if(f.isFocusable(e)&&f.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;0<=n;n--){var o=t[n].nodeType===s[0].ELEMENT_NODE?f.getLastTabbableElement(t[n]):null;if(o)return o}return null}};return f.dom.animator=e(f),f;function b(e){return e[0]||e}}y.navigator&&(e=y.navigator.userAgent||y.navigator.vendor||y.opera,g=e.match(/ipad|iphone|ipod/i),E=e.match(/android/i),v=e.match(/(firefox|minefield)/i)),be.module("material.core").factory("$mdUtil",t),be.element.prototype.focus=be.element.prototype.focus||function(){return this.length&&this[0].focus(),this},be.element.prototype.blur=be.element.prototype.blur||function(){return this.length&&this[0].blur(),this}}(),be.module("material.core").factory("$$mdAnimate",["$q","$timeout","$mdConstant","$animateCss",function(o,r,d,c){return function(e){return n=e,t=o,s=r,l=d,i=c,a={translate3d:function(t,n,e,o){return i(t,{from:n,to:e,addClass:o.transitionInClass,removeClass:o.transitionOutClass,duration:o.duration}).start().then(function(){return r});function r(e){return i(t,{to:e||n,addClass:o.transitionOutClass,removeClass:o.transitionInClass,duration:o.duration}).start()}},waitTransitionEnd:function(i,a){var d=3e3;return t(function(t,e){var n;"0s"!==(n=(n=(a=a||{}).cachedTransitionStyles)||y.getComputedStyle(i[0])).transitionDuration&&(n.transition||n.transitionProperty)||(d=0);var o=s(r,a.timeout||d);function r(e){e&&e.target!==i[0]||(e&&s.cancel(o),i.off(l.CSS.TRANSITIONEND,r),t())}i.on(l.CSS.TRANSITIONEND,r)})},calculateTransformValues:function(e,t){var n,o=t.element,r=t.bounds;if(o||r){var i=o?a.clientRect(o)||((n=(n=e?e.parent():null)?n.parent():null)?a.clientRect(n):null):a.copyRect(r),t=a.copyRect(e[0].getBoundingClientRect()),o=a.centerPointFor(t),r=a.centerPointFor(i);return{centerX:r.x-o.x,centerY:r.y-o.y,scaleX:Math.round(100*Math.min(.5,i.width/t.width))/100,scaleY:Math.round(100*Math.min(.5,i.height/t.height))/100}}return{centerX:0,centerY:0,scaleX:.5,scaleY:.5}},calculateZoomToOrigin:function(e,t){return be.bind(null,n.supplant,"translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )")(a.calculateTransformValues(e,t))},calculateSlideToOrigin:function(e,t){return be.bind(null,n.supplant,"translate3d( {centerX}px, {centerY}px, 0 )")(a.calculateTransformValues(e,t))},toCss:function(e){var o={};return be.forEach(e,function(e,t){if(!be.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){be.forEach(t.split(" "),function(e){o[e]=n})}},toTransformCss:function(t,e,n){var o={};return be.forEach(l.CSS.TRANSFORM.split(" "),function(e){o[e]=t}),e&&(o.transition=n=n||"all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important"),o},copyRect:function(t,n){return t?(n=n||{},be.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=be.element(e)[0].getBoundingClientRect();return(t=n)&&0<t.width&&0<t.height?a.copyRect(n):null},centerPointFor:function(e){return e?{x:Math.round(e.left+e.width/2),y:Math.round(e.top+e.height/2)}:{x:0,y:0}}};var n,t,s,l,i,a}}]),4<=be.version.minor?be.module("material.core.animate",[]):(w=be.forEach,_=be.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:be.noop,getPromise:function(){var e;return this.promise||((e=this).promise=t(function(t,n){e.done(function(e){(!1===e?n:t)()})})),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,r=!0;function i(e){r=r&&e,++o===t.length&&n(r)}w(t,function(e){e.done(i)})},e}],be.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(p,r,h,f,n,b,i){function g(e,t){t.addClass&&(n.addClass(e,t.addClass),t.addClass=null),t.removeClass&&(n.removeClass(e,t.removeClass),t.removeClass=null)}function E(e){var t=0,e=(e||"").split(/\s*,\s*/);return w(e,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 v,$=[];function M(e,t){t.from&&(e.css(t.from),t.from=null)}function y(e,t){t.to&&(e.css(t.to),t.to=null)}function C(e){for(var t=0;t<e.length;t++)if(1===e[t].nodeType)return e[t]}function T(e,t){var n=C(e),e=A(k+"transition-delay");n.style[e]=t?"-9999s":""}return function(a,d){var s=[],l=C(a),e=l&&i.enabled(),t=!1,n=!1;e&&(d.transitionStyle&&s.push([k+"transition",d.transitionStyle]),d.keyframeStyle&&s.push([k+"animation",d.keyframeStyle]),d.delay&&s.push([k+"transition-delay",d.delay+"s"]),d.duration&&s.push([k+"transition-duration",d.duration+"s"]),t=d.keyframeStyle||d.to&&(0<d.duration||d.transitionStyle),n=!!d.addClass||!!d.removeClass,T(a,!0));var c=e&&(t||n);M(a,d);var m,u,o=!1;return{close:p.close,start:function(){var n=new h;return function(e){v&&v();$.push(e),v=r(function(){v=null;for(var e=f(),t=0;t<$.length;t++)$[t](e);$.length=0})}(function(){if(T(a,!1),!c)return i();w(s,function(e){var t=e[0],e=e[1];l.style[A(t)]=e}),g(a,d);var e=function(e){var t=C(e),n=p.getComputedStyle(t),o=E(n[a("transitionDuration")]),r=E(n[a("animationDuration")]),i=E(n[a("transitionDelay")]),e=E(n[a("animationDelay")]);r*=parseInt(n[a("animationIterationCount")],10)||1;t=Math.max(r,o),n=Math.max(e,i);return{duration:t,delay:n,animationDuration:r,transitionDuration:o,animationDelay:e,transitionDelay:i};function a(e){return _?"Webkit"+e.charAt(0).toUpperCase()+e.substr(1):e}}(a);if(0===e.duration)return i();var t=[];d.easing&&(e.transitionDuration&&t.push([k+"transition-timing-function",d.easing]),e.animationDuration&&t.push([k+"animation-timing-function",d.easing])),d.delay&&e.animationDelay&&t.push([k+"animation-delay",d.delay+"s"]),d.duration&&e.animationDuration&&t.push([k+"animation-duration",d.duration+"s"]),w(t,function(e){var t=e[0],n=e[1];l.style[A(t)]=n,s.push(e)});var n=1e3*e.delay,o=e.duration,t=1e3*o,r=Date.now();m=[],e.transitionDuration&&m.push(x),e.animationDuration&&m.push(N),m=m.join(" "),u=function(e){e.stopPropagation();var t=e.originalEvent||e,e=t.timeStamp||Date.now(),t=parseFloat(t.elapsedTime.toFixed(3));Math.max(e-r,0)>=n&&o<=t&&i()},a.on(m,u),y(a,d),b(i,n+1.5*t,!1)}),n;function i(){var e,t;if(!o)return o=!0,m&&u&&a.off(m,u),g(a,d),M(e=a,t=d),y(e,t),w(s,function(e){l.style[A(e[0])]=""}),n.complete(!0),n}}}}}])),S.$inject=["$$rAF","$log","$window","$interpolate"],be.module("material.core").provider("$mdAria",function(){var r={showWarnings:!0};return{disableWarnings:function(){r.showWarnings=!1},$get:["$$rAF","$log","$window","$interpolate",function(e,t,n,o){return S.apply(r,arguments)}]}}),be.module("material.core").provider("$mdCompiler",D),D.$inject=["$compileProvider"],function(){r.$inject=["$$MdGestureHandler","$$rAF","$timeout","$mdUtil"];var i,a,s={},l=6,c=!(n.$inject=["$mdGesture","$$MdGestureHandler","$mdUtil"]),d=!1,m=null,u=!1;function e(){}function r(o,e,n,t){var r=t.getTouchAction(),i=void 0!==y.jQuery&&be.element===y.jQuery,a={handler:function(e,t){var n=new o(e);return be.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)&&!i&&!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&&g(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(be.bind(this,function(){this.dispatchEvent(e,"$md.hold"),this.cancel()}),this.state.options.delay,!1)},onMove:function(e,t){r||"touchmove"!==e.type||e.preventDefault();e=this.state.pos.x-t.x,t=this.state.pos.y-t.y;Math.sqrt(e*e+t*t)>this.options.maxDistance&&this.cancel()},onEnd:function(){this.onCancel()}}).handler("drag",{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onSetup:function(e,t){r&&(this.oldTouchAction=e[0].style[r],e[0].style[r]=t.horizontal?"pan-y":"pan-x")},onCleanup:function(e){this.oldTouchAction?e[0].style[r]=this.oldTouchAction:e[0].style[r]=null},onStart:function(e){this.state.registeredParent||this.cancel()},onMove:function(e,t){var n;r||"touchmove"!==e.type||e.preventDefault(),this.state.dragPointer?this.dispatchDragMove(e):(t=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),b(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragstart",this.state.dragPointer)):t&&this.cancel())},dispatchDragMove:e.throttle(function(e){this.state.isRunning&&(b(e,this.state.dragPointer),this.dispatchEvent(e,"$md.drag",this.state.dragPointer))}),onEnd:function(e,t){this.state.dragPointer&&(b(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,r,n){function t(e){!e.clientX&&!e.clientY||e.$material||e.isIonicTap||f(e)||"mousedown"===e.type&&(g(e.target)||g(document.activeElement))||(e.preventDefault(),e.stopPropagation())}function o(e,t){var n,o;for(o in s)(n=s[o])instanceof r&&("start"===e&&n.cancel(),n[e](t,i))}d||(!u&&e.isHijackingClicks&&(document.addEventListener("click",function(e){var t;t=n.isIos?be.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),be.element(document).on("mousedown touchstart pointerdown",function(e){var t;i||(t=+Date.now(),a&&!h(e,a)&&t-a.endTime<1500||(i=p(e),o("start",e)))}).on("mousemove touchmove pointermove",function(e){i&&h(e,i)&&(b(e,i),o("move",e))}).on("mouseup mouseleave touchend touchcancel pointerup pointercancel",function(e){i&&h(e,i)&&(b(e,i),i.endTime=+Date.now(),"pointercancel"!==e.type&&o("end",e),a=i,i=null)}).on("$$mdGestureReset",function(){a=i=null}))}function p(e){var t=o(e),e={startTime:+Date.now(),target:e.target,type:e.type.charAt(0)};return e.startX=e.x=t.pageX,e.startY=e.y=t.pageY,e}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 b(e,t){var n=o(e),e=t.x=n.pageX,n=t.y=n.pageY;t.distanceX=e-t.startX,t.distanceY=n-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 o(e){return(e=e.originalEvent||e).touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e}function g(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))}be.module("material.core.gestures",[]).provider("$mdGesture",e).factory("$$MdGestureHandler",function(){var e=void 0!==y.jQuery&&be.element===y.jQuery;return t.prototype={options:{},dispatchEvent:e?function(e,t,n){n=n||i;t=new be.element.Event(t);t.$material=!0,t.pointer=n,t.srcEvent=e,be.extend(t,{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}),be.element(n.target).trigger(t)}:function(e,t,n){var o;n=n||i,"click"===t||"mouseup"===t||"mousedown"===t?"function"==typeof y.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,y,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 y.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:be.noop,onCleanup:be.noop,onStart:be.noop,onMove:be.noop,onEnd:be.noop,onCancel:be.noop,start:function(e,t){var n,o;this.state.isRunning||(o=(n=this.getNearestParent(e.target))&&n.$mdGesture[this.name]||{},this.state={isRunning:!0,options:be.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 r(e,t,n,o)}]}}(),H.$inject=["$timeout","$mdUtil","$rootScope"],be.module("material.core.interaction",[]).service("$mdInteraction",H),H.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)},H.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)},H.prototype.onInputEvent=function(e){var t;this.isBuffering||("pointer"===(t=this.inputEventMap[e.type])&&(t=this.iePointerMap[e.pointerType]||e.pointerType),this.lastInteractionType=t,this.lastInteractionTime=this.$mdUtil.now())},H.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)},H.prototype.getLastInteractionType=function(){return this.lastInteractionType},H.prototype.isUserInvoked=function(e){e=be.isNumber(e)?e:15;return this.lastInteractionTime>=this.$mdUtil.now()-e},be.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(r){e.$inject=["$$interimElement","$injector"];var n=["onHide","onShow","onRemove"],s={},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 "+r+" is reserved!");if(-1<t.methods.indexOf("_options"))throw new Error("Method '_options' in "+r+" is reserved!");return l.presets[e]={methods:t.methods.concat(n),optionsFactory:t.options,argOption:t.argOption},o},addMethod:function(e,t){return s[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 t=e(),i={hide:t.hide,cancel:t.cancel,show:function(e){(e=e||{})._options&&(e=e._options);return t.show(be.extend({},n,e))},destroy:function(e){return t.destroy(e)}},a=l.methods||[],n=d(l.optionsFactory,{});return be.forEach(s,function(e,t){i[t]=e}),be.forEach(l.presets,function(t,n){var o=d(t.optionsFactory,{}),e=(t.methods||[]).concat(a);function r(e){this._options=be.extend({},o,e)}be.extend(o,{$type:n}),be.forEach(e,function(t){r.prototype[t]=function(e){return this._options[t]=e,this}}),t.argOption&&(e="show"+n.charAt(0).toUpperCase()+n.slice(1),i[e]=function(e){e=i[n](e);return i.show(e)}),i[n]=function(e){return arguments.length&&t.argOption&&!be.isObject(e)&&!be.isArray(e)?(new r)[t.argOption](e):new r(e)}}),i;function d(e,t){var n={};return n[r]=i,o.invoke(e||function(){return t},{},n)}}}function t(m,u,t,p,h,o,n,f,b,s,l){return function(){var c,r=[],i=[],a=[];return c={show:function(e){var t=new d((e=e||{})||{}),n=e.multiple?u.resolve():u.all(r);e.multiple||(n=n.then(function(){var e=i.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(){r.splice(r.indexOf(o),1)})});return r.push(o),t.deferred.promise.catch(function(e){return e instanceof Error&&l(e),e}),t.deferred.promise},hide:e(function(n,o){{if((o=o||{}).closeAll)return u.all(a.slice().reverse().map(e));if(o.closeTo!==ge)return u.all(a.slice(o.closeTo).map(e))}return 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(){i.splice(i.indexOf(t),1)});return a.splice(a.indexOf(e),1),i.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(){i.splice(i.indexOf(o),1)});return i.push(o),n.deferred.promise.catch(be.noop)}),destroy:function(e){var t=e?null:a.shift(),n=be.element(e).length&&be.element(e)[0].parentNode;!n||(e=a.filter(function(e){return e.options.element[0]===n})).length&&(t=e[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):r.length?r[0].finally(function(){return t.apply(c,e)}):u.when("No interim elements currently showing up.")}}function d(i){var a,d,s=u.when(!0);return i=function(e){(e=e||{}).template&&(e.template=n.processTemplate(e.template));return be.extend({preserveScope:!1,cancelAutoHide:be.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)}(i),a={options:i,deferred:u.defer(),show:function(){return u(function(t,n){var o;function r(e){a.deferred.reject(e),n(e)}i.onCompiling&&i.onCompiling(i),(((o=i).skipCompile?null:f.compile(o))||u(function(e){e({locals:{},link:function(){return o.element}})})).then(function(e){d=function(e,t){be.extend(e.locals,t);e=e.link(t.scope);t.element=e,t.parent=function(e,t){var n,o=t.parent;o=be.isFunction(o)?o(t.scope,e,t):be.isString(o)?be.element(m[0].querySelector(o)):be.element(o);if((o||{}).length)return o;h[0]&&h[0].querySelector&&(n=h[0].querySelector(":not(svg) > body"));n=n||h[0];"#comment"===n.nodeName&&(n=m[0].body);return be.element(n)}(e,t),t.themable&&b(e);return e}(e,i),i.cleanupElement=e.cleanup,s=function(n,o,e){var t=o.onShowing||be.noop,r=o.onComplete||be.noop;try{t(o.scope,n,o,e)}catch(e){return u.reject(e)}return u(function(e,t){try{u.when(o.onShow(o.scope,n,o)).then(function(){r(o.scope,n,o),function(){var e,t=be.noop;i.hideDelay&&(e=p(c.hide,i.hideDelay),t=function(){p.cancel(e)});i.cancelAutoHide=function(){t(),i.cancelAutoHide=ge}}(),e(n)},t)}catch(e){t(e.message)}})}(d,i,e.controller).then(t,r)}).catch(r)})},remove:function(e,t,n){if(!d)return u.when(!1);return(i=be.extend(i||{},n||{})).cancelAutoHide&&i.cancelAutoHide(),i.element.triggerHandler("$mdInterimElementRemove"),!0===i.$destroy?l(i.element,i).then(function(){t&&r(e)||o(e)}):(u.when(s).finally(function(){l(i.element,i).then(function(){(t?r:o)(e)},r)}),a.deferred.promise);function o(e){a.deferred.resolve(e)}function r(e){a.deferred.reject(e)}}};function l(o,r){var i=r.onRemoving||be.noop;return u(function(e,t){try{var n=u.when(r.onRemove(r.scope,o,r)||!0);i(o,n),r.$destroy?(e(o),!r.preserveScope&&r.scope&&n.then(function(){r.scope.$destroy()})):n.then(function(){!r.preserveScope&&r.scope&&r.scope.$destroy(),e(o)},t)}catch(e){t(e.message)}})}}}}}),g=/(-gt)?-(sm|md|lg|print)/g,E=/\s+/g,v=["grow","initial","auto","none","noshrink","nogrow"],$=["row","column"],M=["","start","center","end","stretch","space-around","space-between"],C=["","start","center","end","stretch"],T={enabled:!0,breakpoints:[]},u=be.module("material.core.layout",["ng"]),p=/^((?:x|data)[:\-_])/i,h=/([:\-_]+(.))/g,f=["layout","flex","flex-order","flex-offset","layout-align"],b=["show","hide","layout-padding","layout-margin"],be.forEach(["","xs","gt-xs","sm","gt-sm","md","gt-md","lg","gt-lg","xl","print"],function(t){be.forEach(f,function(e){var d,e=t?e+"-"+t:e;function o(e,t,n){var o,r,i,t=(o=t,r=d,function(e){e=F(r,e||"");be.isDefined(e)&&(i&&o.removeClass(i),i=e?r+"-"+e.trim().replace(E,"-"):r,o.addClass(i))}),a=n.$observe(n.$normalize(d),t);t(j(d,n,"")),e.$on("$destroy",function(){a()})}u.directive(I(e),(d=e,["$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&&(R(d,0,e,m),F(d,j(d,t,""),B(0,d,t)),n=o),n||be.noop}}}]))}),be.forEach(b,function(e){e=t?e+"-"+t:e;u.directive(I(e),L(e))})}),u.provider("$$mdLayout",function(){return{$get:be.noop,validateAttributeValue:F,validateAttributeUsage:R,disableLayouts:function(e){T.enabled=!0!==e}}}).directive("mdLayoutCss",P).directive("ngCloak",function(o){return["$timeout",function(n){return{restrict:"A",priority:-10,compile:function(e){return T.enabled?(e.addClass(o),function(e,t){n(function(){t.removeClass(o)},10,!1)}):be.noop}}}]}("ng-cloak")).directive("layoutWrap",L("layout-wrap")).directive("layoutNowrap",L("layout-nowrap")).directive("layoutNoWrap",L("layout-no-wrap")).directive("layoutFill",L("layout-fill")).config(O),q.$inject=["$timeout"],be.module("material.core").service("$mdLiveAnnouncer",q),q.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)},q.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},be.module("material.core.meta",[]).provider("$$mdMeta",function(){var n=be.element(document.head),o={};function r(e){if(o[e])return 1;var t=document.getElementsByName(e)[0];return t&&(o[e]=be.element(t),1)}var e={setMeta:function(e,t){return r(e),o[e]?o[e].attr("content",t):(t=be.element('<meta name="'+e+'" content="'+t+'"/>'),n.append(t),o[e]=t),function(){o[e].attr("content",""),o[e].remove(),delete o[e]}},getMeta:function(e){if(!r(e))throw Error("$$mdMeta: could not find a meta tag with the name '"+e+"'");return o[e].attr("content")}};return be.extend({},e,{$get:function(){return e}})}),V.$inject=["$log","$q"],be.module("material.core").factory("$mdComponentRegistry",V),W.$inject=["$mdInkRipple"],be.module("material.core").factory("$mdButtonInkRipple",W),Y.$inject=["$mdInkRipple"],be.module("material.core").factory("$mdCheckboxInkRipple",Y),K.$inject=["$mdInkRipple"],be.module("material.core").factory("$mdListInkRipple",K),function(){i.$inject=["$scope","$element","rippleOptions","$window","$timeout","$mdUtil","$mdColorUtil"],e.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],be.module("material.core").provider("$mdInkRipple",function(){var r=!1;return{disableInkRipple:function(){r=!0},$get:["$injector",function(o){return{attach:function(e,t,n){return r||t.controller("mdNoInk")?be.noop:o.instantiate(i,{$scope:e,$element:t,rippleOptions:n})}}}]}}).directive("mdInkRipple",e).directive("mdNoInk",n).directive("mdNoBar",n).directive("mdNoStretch",n);function e(o,r){return{controller:be.noop,link:function(e,t,n){(n.hasOwnProperty("mdInkRippleCheckbox")?r:o).attach(e,t)}}}function i(e,t,n,o,r,i,a){this.$window=o,this.$timeout=r,this.$mdUtil=i,this.$mdColorUtil=a,this.$scope=e,this.$element=t,this.options=n,this.mousedown=!1,this.ripples=[],this.timeout=null,this.lastRipple=null,i.valueOnUse(this,"container",this.createContainer),this.$element.addClass("md-ink-ripple"),(t.controller("mdInkRipple")||{}).createRipple=be.bind(this,this.createRipple),(t.controller("mdInkRipple")||{}).setColor=be.bind(this,this.color),this.bindEvents()}function t(e,t){(e.mousedown||e.lastRipple)&&(e.mousedown=!1,e.$mdUtil.nextTick(be.bind(e,t),!1))}function n(){return{controller:be.noop}}i.prototype.color=function(e){var t,n=this;return be.isDefined(e)&&(n._color=n._parseColor(e)),n._color||n._parseColor(n.inkRipple())||n._parseColor((t=((t=n.options&&n.options.colorElement?n.options.colorElement:[]).length?t:n.$element)[0])?n.$window.getComputedStyle(t).color:"rgb(0,0,0)")},i.prototype.calculateColor=function(){return this.color()},i.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},i.prototype.bindEvents=function(){this.$element.on("mousedown",be.bind(this,this.handleMousedown)),this.$element.on("mouseup touchend",be.bind(this,this.handleMouseup)),this.$element.on("mouseleave",be.bind(this,this.handleMouseup)),this.$element.on("touchmove",be.bind(this,this.handleTouchmove))},i.prototype.handleMousedown=function(e){var t,n;this.mousedown||(e.hasOwnProperty("originalEvent")&&(e=e.originalEvent),this.mousedown=!0,this.options.center?this.createRipple(this.container.prop("clientWidth")/2,this.container.prop("clientWidth")/2):e.srcElement!==this.$element[0]?(n=this.$element[0].getBoundingClientRect(),t=e.clientX-n.left,n=e.clientY-n.top,this.createRipple(t,n)):this.createRipple(e.offsetX,e.offsetY))},i.prototype.handleMouseup=function(){this.$timeout(function(){t(this,this.clearRipples)}.bind(this))},i.prototype.handleTouchmove=function(){t(this,this.deleteRipples)},i.prototype.deleteRipples=function(){for(var e=0;e<this.ripples.length;e++)this.ripples[e].remove()},i.prototype.clearRipples=function(){for(var e=0;e<this.ripples.length;e++)this.fadeInComplete(this.ripples[e])},i.prototype.createContainer=function(){var e=be.element('<div class="md-ripple-container"></div>');return this.$element.append(e),e},i.prototype.clearTimeout=function(){this.timeout&&(this.$timeout.cancel(this.timeout),this.timeout=null)},i.prototype.isRippleAllowed=function(){var e=this.$element[0];do{if(!e.tagName||"BODY"===e.tagName)break;if(e&&be.isFunction(e.hasAttribute)){if(e.hasAttribute("disabled"))return!1;if("false"===this.inkRipple()||"0"===this.inkRipple())return!1}}while(e=e.parentNode);return!0},i.prototype.inkRipple=function(){return this.$element.attr("md-ink-ripple")},i.prototype.createRipple=function(e,t){var n,o,r,i,a,d,s,l;this.isRippleAllowed()&&(o=(n=this).$mdColorUtil,r=be.element('<div class="md-ripple"></div>'),i=this.$element.prop("clientWidth"),l=this.$element.prop("clientHeight"),i=2*Math.max(Math.abs(i-e),e),l=2*Math.max(Math.abs(l-t),t),a=this.options.fitRipple,d=i,s=l,i=a?Math.max(d,s):Math.sqrt(Math.pow(d,2)+Math.pow(s,2)),l=this.calculateColor(),r.css({left:e+"px",top:t+"px",background:"black",width:i+"px",height:i+"px",backgroundColor:o.rgbaToRgb(l),borderColor:o.rgbaToRgb(l)}),this.lastRipple=r,this.clearTimeout(),this.timeout=this.$timeout(function(){n.clearTimeout(),n.mousedown||n.fadeInComplete(r)},157.5,!1),this.options.dimBackground&&this.container.css({backgroundColor:l}),this.container.append(r),this.ripples.push(r),r.addClass("md-ripple-placed"),this.$mdUtil.nextTick(function(){r.addClass("md-ripple-scaled md-ripple-active"),n.$timeout(function(){n.clearRipples()},450,!1)},!1))},i.prototype.fadeInComplete=function(e){this.lastRipple===e&&(this.timeout||this.mousedown)||this.removeRipple(e)},i.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))},i.prototype.fadeOutComplete=function(e){e.remove(),this.lastRipple=null}}(),G.$inject=["$mdInkRipple"],be.module("material.core").factory("$mdTabInkRipple",G),be.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 400 500 600 A100 A200 A400",contrastStrongLightColors:"700 800 900 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 300 400 A100 A200 A400",contrastStrongLightColors:"500 600 700 800 900 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 300 A100 A200 A400",contrastStrongLightColors:"400 500 600 700 800 900 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 300 A100",contrastStrongLightColors:"400 500 600 700 800 900 A200 A400 A700"},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 300 A100 A200",contrastStrongLightColors:"400 500 600 700 800 900 A400 A700"},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 500 600 A100 A200",contrastStrongLightColors:"700 800 900 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",contrastStrongLightColors:"800 900 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",contrastStrongLightColors:"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",contrastStrongLightColors:"600 700 800 900"},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",contrastStrongLightColors:"700 800 900"},"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",contrastStrongLightColors:"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",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",contrastStrongLightColors:"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:"dark",contrastStrongLightColors:"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 300 A100 A200",contrastStrongLightColors:"400 500 600 700 800 900 A400 A700"},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:"700 800 900 A200 A400 A700",contrastStrongLightColors:"600"},"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 400 A100 A200 A400",contrastStrongLightColors:"500 600 700 800 900 A700"}}),function(b){function e(e){var t=!!document.querySelector("[md-themes-disabled]");e.disableTheming(t)}e.$inject=["$mdThemingProvider"],n.$inject=["$mdTheming","$interpolate","$parse","$mdUtil","$q","$log"],i.$inject=["$mdTheming"],t.$inject=["$mdColorPalette","$$mdMetaProvider"],a.$inject=["$injector","$mdTheming"],b.module("material.core.theming",["material.core.theming.palette","material.core.meta"]).directive("mdTheme",n).directive("mdThemable",i).directive("mdThemesDisabled",function(){return T.disableTheming=!0,{restrict:"A",priority:"900"}}).provider("$mdTheming",t).config(e).run(a);var p,o={},s={name:"dark"},l={name:"light"},h="1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)",f="",c=k("rgba(0,0,0,0.87)"),m=k("rgba(255,255,255,0.87)"),u=k("rgb(255,255,255)"),g=["primary","accent","warn","background"],r="primary",E={accent:{default:"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"},background:{default:"50","hue-1":"A100","hue-2":"100","hue-3":"300"}},v={background:{default:"A400","hue-1":"800","hue-2":"900","hue-3":"A200"}},$={icon:.54,secondary:.54,disabled:.38,hint:.38,divider:.12},M={icon:.87,secondary:.7,disabled:.5,hint:.5,divider:.12},y={icon:1,secondary:.7,disabled:.5,hint:.5,divider:.12};g.forEach(function(e){var t={default:"500","hue-1":"300","hue-2":"800","hue-3":"A100"};E[e]||(E[e]=t),v[e]||(v[e]=t)});var C=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],T={disableTheming:!1,generateOnDemand:!1,registeredStyles:[],nonce:null};function t(e,i){d.$inject=["$rootScope","$mdUtil","$q","$log"];var n,a={},c=!(p={}),m="default";b.extend(p,e);var t=function(e){var t,n,o=(e=b.isObject(e)?e:{}).theme||"default",r=e.hue||"800",e=p[e.palette]||p[a[o].colors[e.palette||"primary"].name],r=b.isObject(e[r])?e[r].hex:e[r];return"#"!==r.substr(0,1)&&(r="#"+r),r=r,t=i.setMeta("theme-color",r),n=i.setMeta("msapplication-navbutton-color",r),function(){t(),n()}};return n={definePalette:function(e,t){return t=t||{},p[e]=o(e,t),n},extendPalette:function(e,t){return o(e,b.extend({},p[e]||{},t))},theme:u,configuration:function(){return b.extend({},T,{defaultTheme:m,alwaysWatchTheme:c,registeredStyles:[].concat(T.registeredStyles)})},disableTheming:function(e){T.disableTheming=b.isUndefined(e)||!!e},registerStyles:function(e){T.registeredStyles.push(e)},setNonce:function(e){T.nonce=e},generateThemesOnDemand:function(e){T.generateOnDemand=e},setDefaultTheme:function(e){m=e},alwaysWatchTheme:function(e){c=e},enableBrowserColor:t,$get:d,_LIGHT_DEFAULT_HUES:E,_DARK_DEFAULT_HUES:v,_PALETTES:p,_THEMES:a,_parseRules:A,_rgba:x};function o(e,t){var n=C.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 u(e,t){if(a[e])return a[e];var t="string"==typeof(t=t||"default")?a[t]:t,n=new r(e);return t&&b.forEach(t.colors,function(e,t){n.colors[t]={name:e.name,hues:b.extend({},e.hues)}}),a[e]=n}function r(e){var a=this;function t(e){if((e=0===arguments.length||!!e)!==a.isDark){a.isDark=e,a.foregroundPalette=a.isDark?l:s,a.foregroundShadow=a.isDark?h:f;var e=a.isDark?v:E,i=a.isDark?E:v;return b.forEach(e,function(e,t){var n=a.colors[t],o=i[t];if(n)for(var r in n.hues)n.hues[r]===o[r]&&(n.hues[r]=e[r])}),a}}a.name=e,a.colors={},(a.dark=t)(!1),g.forEach(function(o){var r=(a.isDark?v:E)[o];a[o+"Palette"]=function(t,e){var n=a.colors[o]={name:t,hues:b.extend({},r,e)};return Object.keys(n.hues).forEach(function(e){if(!r[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(r).join(", ")))}),Object.keys(n.hues).map(function(e){return n.hues[e]}).forEach(function(e){if(-1===C.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",C.join(", ")))}),a}})}function d(n,d,o,s){var r=function(e,t){t===ge&&(t=e,e=ge),e===ge&&(e=n),r.inherit(t,t)};return Object.defineProperty(r,"THEMES",{get:function(){return b.extend({},a)}}),Object.defineProperty(r,"PALETTES",{get:function(){return b.extend({},p)}}),Object.defineProperty(r,"ALWAYS_WATCH",{get:function(){return c}}),r.inherit=function(n,e){var o=e.controller("mdTheme")||n.data("$mdThemeController"),e=n.scope();{var t,r,i;a(o&&o.$mdTheme||("default"===m?"":m)),o&&((t=c||o.$shouldWatch||d.parseAttributeBoolean(n.attr("md-theme-watch")))||o.isAsyncTheme)&&(r=function(){i&&(i(),i=ge)},i=o.registerChanges(function(e){a(e),t||r()}),e?e.$on("$destroy",r):n.on("$destroy",r))}function a(e){var t;e&&(l(e)||s.warn("Attempted to use unregistered theme '"+e+"'. Register it with $mdThemingProvider.theme()."),(t=n.data("$mdThemeName"))&&n.removeClass("md-"+t+"-theme"),n.addClass("md-"+e+"-theme"),n.data("$mdThemeName",e),o&&n.data("$mdThemeController",o))}},r.registered=l,r.defaultTheme=function(){return m},r.generateTheme=function(e){_(a[e],e,T.nonce)},r.defineTheme=function(e,t){t=t||{};var n=u(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)},r.setBrowserColor=t,r;function l(e){return e===ge||""===e||r.THEMES[e]!==ge}}}function n(c,m,u,p,h,f){return{priority:101,link:{pre:function(t,e,n){var o=[],r=m.startSymbol(),i=m.endSymbol(),a=n.mdTheme.trim(),a=a.substr(0,r.length)===r&&a.lastIndexOf(i)===a.length-i.length,r="::"===n.mdTheme.split(r).join("").split(i).join("").trim().substr(0,"::".length),i=function(){var e=m(n.mdTheme)(t);return u(e)(t)||e},d={isAsyncTheme:b.isFunction(i())||b.isFunction(i().then),registerChanges:function(t,e){return e&&(t=b.bind(e,t)),o.push(t),function(){var e=o.indexOf(t);-1<e&&o.splice(e,1)}},$setTheme:function(e){c.registered(e)||f.warn("attempted to use unregistered theme '"+e+"'"),d.$mdTheme=e;for(var t=o.length;t--;)o[t](e)},$shouldWatch:p.parseAttributeBoolean(e.attr("md-theme-watch"))||c.ALWAYS_WATCH||a&&!r};e.data("$mdThemeController",d);function s(e){if("string"==typeof e)return d.$setTheme(e);h.when(b.isFunction(e)?e():e).then(function(e){d.$setTheme(e)})}s(i());var l=t.$watch(i,function(e){e&&(s(e),d.$shouldWatch||l())})}}}}function i(e){return e}function A(s,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(", ")))}(s,e),t=t.replace(/THEME_NAME/g,s.name);var n=new RegExp("\\.md-"+s.name+"-theme","g"),o=new RegExp("(['\"])?{{\\s*([a-zA-Z]+)-?(color|default)?-?(contrast)?-?((?:\\d\\.?\\d*)|(?:[a-zA-Z]+))?\\s*}}([\"'])?","g"),e=s.colors.background.hues.default,a=p[s.colors.background.name][e].contrastType;t=t.replace(/'?"?{{\s*([a-zA-Z]+)-(A?\d+|hue-[0-3]|shadow|default)-?(contrast)?-?((?:\d\.?\d*)|(?:[a-zA-Z]+))?\s*}}'?"?/g,function(e,t,n,o,r){var i=t;if("foreground"===t){if("shadow"===n)return s.foregroundShadow;if(s.foregroundPalette[n])return x(k(s.foregroundPalette[n]));if(s.foregroundPalette[1])return x(k(s.foregroundPalette[1]));if(t="background",o="contrast",!r&&n)switch(n){case"2":r="secondary";break;case"3":r="disabled";break;case"4":r="divider"}n="default"}0!==n.indexOf("hue")&&"default"!==n||(n=s.colors[t].hues[n]);n=p[s.colors[t].name][n]||"";if("background"===t&&o&&"foreground"!==i&&n.contrastType===a)switch(r){case"secondary":case"icon":if(s.foregroundPalette[2])return x(k(s.foregroundPalette[2]));break;case"disabled":case"hint":if(s.foregroundPalette[3])return x(k(s.foregroundPalette[3]));break;case"divider":if(s.foregroundPalette[4])return x(k(s.foregroundPalette[4]));break;default:if(s.foregroundPalette[1])return x(k(s.foregroundPalette[1]))}return o&&r&&(r=n.opacity[r]||r),x(n[o?"contrast":"value"],r)});var r=[];return b.forEach(["default","hue-1","hue-2","hue-3"],function(d){var e=t.replace(o,function(e,t,n,o,r,i){var a=s.colors[n],n=p[a.name],a=a.hues[d];return r&&i&&(i=n[a].opacity[i]||i),x(n[a]["color"===o?"value":"contrast"],i)});"default"!==d&&(e=e.replace(n,".md-"+s.name+"-theme.md-"+d)),"default"===s.name&&(e=e.replace(/((?:\s|>|\.|\w|-|:|\(|\)|\[|]|"|'|=)*)\.md-default-theme((?:\s|>|\.|\w|-|:|\(|\)|\[|]|"|'|=)*)/g,function(e,t,n){return e+", "+t+n})),r.push(e)}),r}var w={};function a(e,t){var n=document.head,n=n?n.firstElementChild:null,e=!T.disableTheming&&e.has("$MD_THEME_CSS")?e.get("$MD_THEME_CSS"):"";e+=T.registeredStyles.join(""),n&&0!==e.length&&(b.forEach(p,function(o){var r=o.contrastDefaultColor,i=o.contrastLightColors||[],a=o.contrastStrongLightColors||[],d=o.contrastDarkColors||[];"string"==typeof i&&(i=i.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,b.forEach(o,function(e,t){if(!b.isObject(e)){var n=k(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));e=(e=t,("light"===r?-1!==d.indexOf(e):-1===i.indexOf(e)&&-1===a.indexOf(e))?"dark":-1!==a.indexOf(e)?"strongLight":"light");o[t]={hex:o[t],value:n,contrastType:e,contrast:function(e){switch(e){default:case"strongLight":return u;case"light":return m;case"dark":return c}}(e),opacity:function(e){switch(e){default:case"strongLight":return y;case"light":return M;case"dark":return $}}(e)}}})}),e=function(e){for(var t=[],n="",o=0,r=0,i=0;i<e.length;i++){var a,d=e.charAt(i);"'"===d||'"'===d?(a=e.substring(i,e.indexOf(d,i+1)),n+=a,i+=a.length):(n+=d,"}"===d?++r===o&&(o=r=0,t.push(n),n=""):"{"===d&&o++)}""!==n&&t.push(n);return t}(e).map(function(e){return e.trim()}),g.forEach(function(e){w[e]=""}),e.forEach(function(e){for(var t,n=0;t=g[n];n++)if(-1<e.indexOf(".md-"+t))return w[t]+=e;for(n=0;t=g[n];n++)if(-1<e.indexOf(t))return w[t]+=e;return w[r]+=e}),T.generateOnDemand||b.forEach(t.THEMES,function(e){o[e.name]||"default"!==t.defaultTheme()&&"default"===e.name||_(e,e.name,T.nonce)}))}function _(r,e,i){var a=document.head,d=a?a.firstElementChild:null;o[e]||(g.forEach(function(e){for(var t=A(r,e,w[e]);t.length;){var n,o=t.shift();o&&((n=document.createElement("style")).setAttribute("md-theme-style",""),i&&n.setAttribute("nonce",i),n.appendChild(document.createTextNode(o)),a.insertBefore(n,d))}}),o[r.name]=!0)}function k(e){if(b.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):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),e=e.substr(2*t);return 1==t&&(n+=n,o+=o,e+=e),[parseInt(n,16),parseInt(o,16),parseInt(e,16)]}}function x(e,t){return e?(4===e.length&&(e=b.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')"}}(y.angular),be.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"],be.module("material.components.autocomplete").controller("MdAutocompleteCtrl",e);var ce=48,me=5,ue=8,pe=2,he="standard",fe="virtual";function e(m,u,p,t,n,o,r,i,h,d,a,s){var e,l,c,f=this,b=m.itemsExpr.split(/ in /i),g=b[1],E=null,v={},$=!1,M=[],y=!1,C=0,T=null,A=null,w=p.debounce(function(){f.hidden||N()}),_=fe;f.documentElement=be.element(document.documentElement),e="hidden",l=function(e,t){var n;E&&(n=be.element(E.scrollContainer));!e&&t?(N(),oe(!0,k.Count|k.Selected),E&&(p.disableScrollAround(E.scrollContainer),T=function(e){var t=be.element(e);return t.on("wheel touchmove",I),function(){t.off("wheel touchmove",I)}}(E.wrap),p.isIos&&(f.documentElement.on("touchend",P),n&&n.on("touchstart touchmove touchend",O)),f.index=q(),p.nextTick(function(){D(),re()}))):e&&!t&&(p.isIos&&(f.documentElement.off("touchend",P),n&&n.off("touchstart touchmove touchend",O)),p.enableScrolling(),T&&(T(),T=null))},c=!0,Object.defineProperty(f,e,{get:function(){return c},set:function(e){var t=c;l(c=e,t)}}),f.scope=m,f.parent=m.$parent,f.itemName=b[0],f.matches=[],f.loading=!1,f.hidden=!0,f.index=-1,f.activeOption=null,f.id=p.nextUid(),f.isDisabled=null,f.isRequired=null,f.isReadonly=null,f.hasNotFound=!1,f.selectedMessage=m.selectedMessage||"selected",f.noMatchMessage=m.noMatchMessage||"There are no matches available.",f.singleMatchMessage=m.singleMatchMessage||"There is 1 match available.",f.multipleMatchStartMessage=m.multipleMatchStartMessage||"There are ",f.multipleMatchEndMessage=m.multipleMatchEndMessage||" matches available.",f.defaultEscapeOptions="clear",f.keydown=function(e){switch(e.keyCode){case t.KEY_CODE.DOWN_ARROW:if(f.loading||X())return;e.stopPropagation(),e.preventDefault(),f.index=f.index+1>f.matches.length-1?0:Math.min(f.index+1,f.matches.length-1),p.nextTick(D),re();break;case t.KEY_CODE.UP_ARROW:if(f.loading||X())return;e.stopPropagation(),e.preventDefault(),f.index=f.index-1<0?f.matches.length-1:Math.max(0,f.index-1),p.nextTick(D),re();break;case t.KEY_CODE.TAB:if(L(),f.hidden||f.loading||f.index<0||f.matches.length<1)return;J(f.index);break;case t.KEY_CODE.ENTER:if(f.hidden||f.loading||f.index<0||f.matches.length<1)return;if(X())return;e.stopImmediatePropagation(),e.preventDefault(),J(f.index);break;case t.KEY_CODE.ESCAPE:if(e.preventDefault(),!(K("blur")||!f.hidden||f.loading||K("clear")&&m.searchText))return;e.stopPropagation(),ee(),m.searchText&&K("clear")&&te(),f.hidden=!0,K("blur")&&B(!0)}},f.blur=function(e){y=!1,$?be.isObject(e)&&e.stopImmediatePropagation():(f.hidden=W(),le("ngBlur",{$event:e}))},f.focus=function(e){y=!0,Y()&&Q()&&de();f.hidden=W(),le("ngFocus",{$event:e})},f.clear=function(e){e&&e.stopPropagation();ee(),te()},f.select=J,f.listEnter=function(){$=!0},f.listLeave=L,f.focusInput=S,f.getCurrentDisplayValue=Z,f.registerSelectedItemWatcher=function(e){-1===M.indexOf(e)&&M.push(e)},f.unregisterSelectedItemWatcher=function(e){e=M.indexOf(e);-1!==e&&M.splice(e,1)},f.notFoundVisible=ae,f.loadingIsVisible=function(){return f.loading&&!X()},f.positionDropdown=N;var k={Count:1,Selected:2};function x(){m.requireMatch&&A&&A.$setValidity("md-require-match",!!m.selectedItem||!m.searchText)}function N(){if(!E)return p.nextTick(N,!1,m);var e=(m.dropdownItems||me)*ce,n=E.wrap.getBoundingClientRect(),t=E.snap.getBoundingClientRect(),o=E.root.getBoundingClientRect(),r=t.bottom-o.top,i=o.bottom-t.top,a=n.left-o.left,d=n.width,s=function(){var e=0,t=u.find("md-input-container");{var n;t.length&&(n=t.find("input"),e=t.prop("offsetHeight"),e-=n.prop("offsetTop"),e-=n.prop("offsetHeight"),e+=t.prop("offsetTop"))}return e}(),l=m.dropdownPosition,c=o.bottom-t.bottom-ue+p.getViewportTop(),t=t.top-ue;l=l||(!(e<c)&&(e<t||c<t)?"top":"bottom"),h.mdFloatingLabel&&(a+=pe,d-=2*pe),d={left:a+"px",minWidth:d+"px",maxWidth:Math.max(n.right-o.left,o.right-n.left)-ue+"px"},"top"===l?(d.top="auto",d.bottom=i+"px",d.maxHeight=Math.min(e,t)+"px"):(c=o.bottom-n.bottom-ue+p.getViewportTop(),d.top=r-s+"px",d.bottom="auto",d.maxHeight=Math.min(e,c)+"px"),E.$.scrollContainer.css(d),p.nextTick(function(){var e=E.scrollContainer.getBoundingClientRect(),t={};e.right>o.right&&(t.left=n.right-e.width+"px");E.$.scrollContainer.css(t)},!1,m)}function S(){E.input.focus()}function D(){var e=E.scroller.querySelector(".selected");f.activeOption=e?e.id:null}function H(){f.hidden||p.enableScrolling(),be.element(o).off("resize",w),E&&be.forEach(["ul","scroller","scrollContainer","input"],function(e){E.$[e].remove()})}function I(e){e.preventDefault()}function O(e){e.stopPropagation()}function P(e){B(f.hidden=!0)}function L(){y||f.hidden||E.input.focus(),$=!1,f.hidden=W()}function R(o,r){x(),o?j(o).then(function(e){var t,n;m.searchText=e,t=o,n=r,M.forEach(function(e){e(t,n)})}):r&&m.searchText&&j(r).then(function(e){be.isString(m.searchText)&&e.toString().toLowerCase()===m.searchText.toLowerCase()&&(m.searchText="")}),o!==r&&be.isFunction(m.itemChange)&&m.itemChange(z(m.selectedItem))}function F(t,n){f.index=q(),t!==n&&(x(),j(m.selectedItem).then(function(e){t!==e&&(m.selectedItem=null,t!==n&&be.isFunction(m.textChange)&&m.textChange(),Q()?de():(f.matches=[],V(!1),oe(!0,k.Count)))}))}function B(e){e&&(y=$=!1),E.input.blur()}function U(){return be.isNumber(m.minLength)?m.minLength:1}function j(e){return d.when(((t=e)&&m.itemText?m.itemText(z(t)):null)||e).then(function(e){return e&&!be.isString(e)&&a.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 f.itemName&&(t[f.itemName]=e),t}function q(){return m.autoselect?0:-1}function V(e){f.loading!==e&&(f.loading=e),f.hidden=W()}function W(){return!function(){{if(f.isReadonly)return!1;if(!Y())return!1}return Q()&&G()||ae()}()}function Y(){return(!f.loading||G())&&(!X()&&!!y)}function K(e){return be.isString(m.escapeOptions)?-1!==m.escapeOptions.toLowerCase().indexOf(e):-1!==f.defaultEscapeOptions.indexOf(e)}function G(){return!!f.matches.length}function X(){return!!f.scope.selectedItem}function Z(){return j(f.matches[f.index])}function Q(){return(m.searchText||"").length>=U()}function J(e){p.nextTick(function(){j(f.matches[e]).then(function(e){var t=E.$.input.controller("ngModel");s.announce(e+" "+f.selectedMessage,"assertive"),t.$setViewValue(e),t.$render()}).finally(function(){m.selectedItem=f.matches[e],V(!1)})},!1)}function ee(){f.index=-1,p.nextTick(D),f.matches=[]}function te(){V(!0),m.searchText="";var e=document.createEvent("CustomEvent");e.initCustomEvent("change",!0,!0,{value:""}),E.input.dispatchEvent(e),E.input.blur(),m.searchText="",E.input.focus()}function ne(t){var e,n=m.$parent.$eval(g),o=t.toLowerCase(),r=be.isArray(n),i=!!n.then;function a(e){v[o]=e,(t||"")===(m.searchText||"")&&se(e)}r?a(n):!i||(e=n)&&(e=d.when(e),C++,V(!0),p.nextTick(function(){e.then(a).finally(function(){0==--C&&V(!1)})},!0,m))}function oe(e,t){var n=e?"polite":"assertive",e=[];t&k.Selected&&-1!==f.index&&e.push(Z()),t&k.Count&&e.push(d.resolve(function(){switch(f.matches.length){case 0:return f.noMatchMessage;case 1:return f.singleMatchMessage;default:return f.multipleMatchStartMessage+f.matches.length+f.multipleMatchEndMessage}}())),d.all(e).then(function(e){s.announce(e.join(" "),n)})}function re(){var e,t,n,o;E.li[0]&&(_===he?(e=E.li[Math.max(0,f.index)],t=E.scrollContainer.offsetHeight,n=e&&e.offsetTop||0,o=n+e.clientHeight,e=E.scrollContainer.scrollTop,n<e?ie(n):e+t<o&&ie(o-t)):(n=E.li[0].offsetHeight,e=n*Math.max(0,f.index),o=e+n,t=E.scroller.clientHeight,n=E.scroller.scrollTop,e<n?ie(e):n+t<o&&ie(o-t)))}function ie(e){_===he?E.scrollContainer.scrollTop=e:E.$.scrollContainer.controller("mdVirtualRepeatContainer").scrollTo(e)}function ae(){var e=(f.scope.searchText||"").length;return f.hasNotFound&&!G()&&(!f.loading||0!==C)&&e>=U()&&(y||$)&&!X()}function de(){var e=m.searchText||"",t=e.toLowerCase();!m.noCache&&v[t]?se(v[t]):ne(e),f.hidden=W()}function se(e){var n,t;f.matches=e,f.hidden=W(),f.loading&&V(!1),m.selectOnMatch&&(n=m.searchText,t=f.matches,e=t[0],1===t.length&&j(e).then(function(e){var t=n===e;(t=m.matchInsensitive&&!t?n.toLowerCase()===e.toLowerCase():t)&&J(0)})),N(),oe(!0,k.Count)}function le(e,t){h[e]&&m.$parent.$eval(h[e],t||{})}p.initOptionalProperties(m,h,{searchText:"",selectedItem:null,clearButton:!1,disableVirtualRepeat:!1}),n(u),function(){var e=parseInt(m.delay,10)||0;h.$observe("disabled",function(e){f.isDisabled=p.parseAttributeBoolean(e,!1)}),h.$observe("required",function(e){f.isRequired=p.parseAttributeBoolean(e,!1)}),h.$observe("readonly",function(e){f.isReadonly=p.parseAttributeBoolean(e,!1)}),m.$watch("searchText",e?p.debounce(F,e):F),m.$watch("selectedItem",R),be.element(o).on("resize",w),m.$on("$destroy",H)}(),p.nextTick(function(){var e;e=function(){var e,t;for(e=u;e.length&&(t=e.attr("md-autocomplete-snap"),!be.isDefined(t));e=e.parent());if(e.length)return{snap:e[0],wrap:("width"===t.toLowerCase()?e:u.find("md-autocomplete-wrap"))[0]};var n=u.find("md-autocomplete-wrap")[0];return{snap:n,wrap:n}}(),(E={main:u[0],scrollContainer:u[0].querySelector(".md-virtual-repeat-container, .md-standard-list-container"),scroller:u[0].querySelector(".md-virtual-repeat-scroller, .md-standard-list-scroller"),ul:u.find("ul")[0],input:u.find("input")[0],wrap:e.wrap,snap:e.snap,root:document.body}).li=E.ul.getElementsByTagName("li"),E.$=function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=be.element(e[t]));return n}(E),_=E.scrollContainer.classList.contains("md-standard-list-container")?he:fe,A=E.$.input.controller("ngModel"),E.$.root.length&&(n(E.$.scrollContainer),E.$.scrollContainer.detach(),E.$.root.append(E.$.scrollContainer),r.pin&&r.pin(E.$.scrollContainer,i)),u.on("touchstart",S),m.autofocus&&u.on("focus",S),m.inputAriaDescribedBy&&E.input.setAttribute("aria-describedby",m.inputAriaDescribedBy),m.floatingLabel||(m.inputAriaLabel?E.input.setAttribute("aria-label",m.inputAriaLabel):m.inputAriaLabelledBy?E.input.setAttribute("aria-labelledby",m.inputAriaLabelledBy):m.placeholder&&E.input.setAttribute("aria-label",m.placeholder))})}}(),X.$inject=["$$mdSvgRegistry"],be.module("material.components.autocomplete").directive("mdAutocomplete",X),Z.$inject=["$compile","$mdUtil"],be.module("material.components.autocomplete").directive("mdAutocompleteParentScope",Z),Q.$inject=["$scope","$element","$attrs","$mdUtil"],be.module("material.components.autocomplete").controller("MdHighlightCtrl",Q),Q.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)},Q.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)},Q.prototype.applyRegex=function(e){e=this.resolveTokens(e);this.$element.empty(),e.forEach(function(e){var t;e.isMatch?(t=be.element('<span class="highlight">').text(e.text),this.$element.append(t)):this.$element.append(document.createTextNode(e))}.bind(this))},Q.prototype.resolveTokens=function(n){var o=[],r=0;return n.replace(this.regex,function(e,t){i(r,t),o.push({text:e,isMatch:!0}),r=t+e.length}),i(r),o;function i(e,t){t=n.slice(e,t);t&&o.push(t)}},Q.prototype.createRegex=function(e,t){var n="",o="",e=this.$mdUtil.sanitize(e);return 0<=t.indexOf("^")&&(n="^"),0<=t.indexOf("$")&&(o="$"),new RegExp(n+e+o,t.replace(/[$^]/g,""))},J.$inject=["$interpolate","$parse"],be.module("material.components.autocomplete").directive("mdHighlightText",J),be.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){t.pin&&t.pin(o,s);var r;function i(){var e=parseInt(r.height,10)+Math.abs(parseInt(r.top,10));o.css("height",e+"px")}m(function(){var e;"fixed"===(r=l.getComputedStyle(u[0].body)).position&&(e=d.debounce(function(){r=l.getComputedStyle(u[0].body),i()},60,null,!1),i(),be.element(l).on("resize",e),n.$on("$destroy",function(){be.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))})}}}]),ee.$inject=["$mdBottomSheet"],te.$inject=["$$interimElementProvider"],be.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",ee).provider("$mdBottomSheet",te),oe.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$mdInteraction"],ne.$inject=["$mdTheming"],be.module("material.components.button",["material.core"]).directive("mdButton",oe).directive("a",ne),re.$inject=["$mdTheming"],be.module("material.components.card",["material.core"]).directive("mdCard",re),ie.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$mdInteraction"],be.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",ie),be.module("material.components.chips",["material.core","material.components.autocomplete"]),ae.$inject=["$scope","$element","$mdConstant","$timeout","$mdUtil"],be.module("material.components.chips").controller("MdChipCtrl",ae),ae.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"))},ae.prototype.getChipContent=function(){var e=this.$element[0].getElementsByClassName("md-chip-content");return be.element(e[0])},ae.prototype.getContentElement=function(){var e=be.element(this.getChipContent().children()[0]);return e=!e||0===e.length?be.element(this.getChipContent().contents()[0]):e},ae.prototype.getChipIndex=function(){return parseInt(this.$element.attr("index"))},ae.prototype.goOutOfEditMode=function(){var e,t;this.isEditing&&(this.isEditing=!1,this.$element.removeClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="false",e=this.getChipIndex(),(t=this.getContentElement().text())?(this.parentController.updateChipContents(e,t),this.$mdUtil.nextTick(function(){this.parentController.selectedChip===e&&this.parentController.focusChip(e)}.bind(this))):this.parentController.removeChipAndFocusInput(e))},ae.prototype.selectNodeContents=function(e){var t,n;document.body.createTextRange?((t=document.body.createTextRange()).moveToElementText(e),t.select()):y.getSelection&&(n=y.getSelection(),(t=document.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(t))},ae.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])},ae.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())},ae.prototype.chipMouseDoubleClick=function(){this.enableChipEdit&&!this.isEditing&&this.goInEditMode()},de.$inject=["$mdTheming","$mdUtil","$compile","$timeout"],be.module("material.components.chips").directive("mdChip",de),se.$inject=["$timeout"],be.module("material.components.chips").directive("mdChipRemove",se),le.$inject=["$compile"],be.module("material.components.chips").directive("mdChipTransclude",le),function(){e.$inject=["$scope","$attrs","$mdConstant","$log","$element","$timeout","$mdUtil","$mdLiveAnnouncer","$exceptionHandler"];var l=300;function e(e,t,n,o,r,i,a,d,s){this.$timeout=i,this.$mdConstant=n,this.$scope=e,this.parent=e.$parent,this.$mdUtil=a,this.$log=o,this.$mdLiveAnnouncer=d,this.$exceptionHandler=s,this.$element=r,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.inputClass="",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()}be.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()))return e.keyCode===this.$mdConstant.KEY_CODE.BACKSPACE?0!==this.getCursorPosition(e.target)?void 0:(e.preventDefault(),e.stopPropagation(),void(this.items.length&&this.selectAndFocusChipSafe(this.items.length-1))):((!this.separatorKeys||this.separatorKeys.length<1)&&(this.separatorKeys=[this.$mdConstant.KEY_CODE.ENTER]),-1===this.separatorKeys.indexOf(e.keyCode)||this.autocompleteCtrl&&this.requireMatch||!t||(e.preventDefault(),this.hasMaxChipsReached())?void 0:(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 be.isObject(e)},e.prototype.isRemovable=function(){return!!this.ngModelCtrl&&(!this.readonly&&!be.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){var e,n;if((this.shouldFocusLastChip=!this.addOnBlur,this.useTransformChip&&this.transformChip&&(n=this.transformChip({$chip:t}),be.isDefined(n)&&(t=n)),be.isObject(t))&&this.items.some(function(e){return be.equals(t,e)}))return;null==t||this.items.indexOf(t)+1||(e=this.items.push(t)-1,this.updateNgModel(),n=be.isObject(t)?"":t,this.$mdLiveAnnouncer.announce(n+" "+this.addedMessage,"assertive"),this.useOnAdd&&this.onAdd&&this.onAdd({$chip:t,$index:e}))},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 be.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 be.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(),be.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=be.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.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(be.bind(r,t,e))}var o=this.$scope,r=this;e.attr({tabindex:0}).on("keydown",function(e){n(e,r.inputKeydown)}).on("focus",function(e){n(e,r.onInputFocus)}).on("blur",function(e){n(e,r.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(be.bind(this,function(e){e&&(this.hasMaxChipsReached()||(this.appendChip(e),this.resetChipBuffer()))})),this.$element.find("input").on("focus",be.bind(this,this.onInputFocus)).on("blur",be.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"],be.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{{ $mdChipsCtrl.inputClass ? \' \' + $mdChipsCtrl.inputClass: \'\'}}" 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>",r=' <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,b){var g={chips:p.processTemplate(e),input:p.processTemplate(t),default:p.processTemplate(n),remove:p.processTemplate(r)};return{template:function(e,t){return t.$mdUserTemplate=e.clone(),g.chips},require:["mdChips"],restrict:"E",controller:"MdChipsCtrl",controllerAs:"$mdChipsCtrl",bindToController:!0,compile:function(e,a){var t=a.$mdUserTemplate;a.$mdUserTemplate=null;var d=n("md-chips>md-chip-template"),s=n(p.prefixer().buildList("md-chip-remove").map(function(e){return"md-chips>*["+e+"]"}).join(","))||g.remove,l=d||g.default,c=n("md-chips>md-autocomplete")||n("md-chips>input")||g.input,m=t.find("md-chip");t[0].querySelector("md-chip-template>*[md-chip-remove]")&&o.warn("invalid placement of md-chip-remove within md-chip-template.");function n(e){if(a.ngModel){e=t[0].querySelector(e);return e&&e.outerHTML}}return function(e,t,n,o){p.initOptionalProperties(e,a),u(t);var r,i=o[0];d&&(i.enableChipEdit=!1),i.chipContentsTemplate=l,i.chipRemoveTemplate=s,i.chipInputTemplate=c,i.mdCloseIcon=b.mdCancel,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.mdOnAdd&&i.useOnAddExpression(),n.mdOnRemove&&i.useOnRemoveExpression(),n.mdOnSelect&&i.useOnSelectExpression(),c!==g.input&&e.$watch("$mdChipsCtrl.readonly",function(e){e||p.nextTick(function(){var e;0===c.indexOf("<md-autocomplete")&&(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&&(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",onAdd:"&?mdOnAdd",onRemove:"&?mdOnRemove",addedMessage:"@?mdAddedMessage",removedMessage:"@?mdRemovedMessage",onSelect:"&?mdOnSelect",inputClass:"@?mdInputClass",inputAriaDescribedBy:"@?inputAriaDescribedby",inputAriaLabelledBy:"@?inputAriaLabelledby",inputAriaLabel:"@?",containerHint:"@?",containerEmptyHint:"@?",deleteHint:"@?",deleteButtonLabel:"@?",separatorKeys:"=?mdSeparatorKeys",requireMatch:"=?mdRequireMatch",chipAppendDelayString:"@?mdChipAppendDelay",ngChange:"&?"}}}}(),ce.$inject=["$attrs","$element","$timeout"],be.module("material.components.chips").controller("MdContactChipsCtrl",ce),ce.prototype.init=function(){var e=this,t=this.deRegister,n=this.$element;this.$timeout(function(){t.push(n.find("md-chips").controller("mdChips").$scope.$watchCollection("$mdChipsCtrl.items",function(){e.setupChipsAria(),e.setupAutocompleteAria()}))})},ce.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),this.inputClass&&(t.inputClass=this.inputClass)},ce.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))},ce.prototype.queryContact=function(e){return this.contactQuery({$query:e})},ce.prototype.inputKeydown=function(e){!this.separatorKeys||this.separatorKeys.indexOf(e.keyCode)<0||(e.stopPropagation(),e.preventDefault(),(e=be.element(e.target).controller("mdAutocomplete")).select(e.index))},ce.prototype.itemName=function(e){return e[this.contactName]},ce.prototype.$onDestroy=function(){for(var e;e=this.deRegister.pop();)e.call(this)},function(){e.$inject=["$mdTheming","$mdUtil"],be.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-max-chips="{{$mdContactChipsCtrl.maxChips}}" 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-attr-md-input-class="{{$mdContactChipsCtrl.inputClass}}" 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,i){return function(e,t,n,o){var r=o;d.initOptionalProperties(e,i),a(t),t.attr("tabindex","-1"),n.$observe("mdChipAppendDelay",function(e){r.chipAppendDelay=e})}},scope:{contactQuery:"&mdContacts",placeholder:"@?",secondaryPlaceholder:"@?",contactName:"@mdContactName",contactImage:"@mdContactImage",contactEmail:"@mdContactEmail",contacts:"=ngModel",ngChange:"&?",requireMatch:"=?mdRequireMatch",minLength:"=?mdMinLength",maxChips:"=?mdMaxChips",highlightFlags:"@?mdHighlightFlags",chipAppendDelay:"@?mdChipAppendDelay",separatorKeys:"=?mdSeparatorKeys",removedMessage:"@?mdRemovedMessage",inputClass:"@?mdInputClass",inputAriaDescribedBy:"@?inputAriaDescribedby",inputAriaLabelledBy:"@?inputAriaLabelledby",inputAriaLabel:"@?",containerHint:"@?",containerEmptyHint:"@?",deleteHint:"@?"}}}}(),function(){t.$inject=["$mdColors","$mdUtil","$log","$parse"],e.$inject=["$mdTheming","$mdUtil","$log"];var i=/^{((\s|,)*?["'a-zA-Z-]+?\s*?:\s*?(['"])[a-zA-Z0-9-.]*(['"]))+\s*}$/,s=null;function e(r,i,n){return s=s||Object.keys(r.PALETTES),{applyThemeColors:function(e,t){try{t&&e.css(function(e){var o={},r=e.hasOwnProperty("color");return be.forEach(e,function(e,t){var n=d(e),e=-1<t.indexOf("background");o[t]=a(n),e&&!r&&(o.color=a(n,!0))}),o}(t))}catch(e){n.error(e.message)}},getThemeColor:function(e){return a(d(e))},hasTheme:function(e){return be.isDefined(r.THEMES[e.split("-")[0]])}};function a(e,t){var n=r.PALETTES[e.palette][e.hue],n=(t=t||!1)?n.contrast:n.value;return i.supplant("rgba({0}, {1}, {2}, {3})",[n[0],n[1],n[2],n[3]||e.opacity])}function d(e){var t=e.split("-"),e=be.isDefined(r.THEMES[t[0]])?t.splice(0,1)[0]:r.defaultTheme();return{theme:e,palette:function(e,t){var n=1<e.length&&-1!==s.indexOf(e[1]),o=e[0].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();n&&(o=e[0]+"-"+e.splice(1,1));if(-1===s.indexOf(o)){t=r.THEMES[t].colors[o];if(!t)throw new Error(i.supplant("mdColors: couldn't find '{palette}' in the palettes.",{palette:o}));o=t.name}return o}(t,e),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;t=parseInt(e.splice(2,1)[0],10);if(t<1||3<t)throw new Error(i.supplant("mdColors: 'hue-{hueNumber}' is not a valid hue, can be only 'hue-1', 'hue-2' and 'hue-3'",{hueNumber:t}));if(e[1]="hue-"+t,e[0]in n)return n[e[0]].hues[e[1]];throw new Error(i.supplant("mdColors: 'hue-x' can only be used with [{availableThemes}], but was used with '{usedTheme}'",{availableThemes:Object.keys(n).join(", "),usedTheme:e[0]}))}(t,e),opacity:t[2]||1}}}function t(c,r,m,u){return{restrict:"A",require:["^?mdTheme"],compile:function(e,o){var l=function(){var e=o.mdColors,t=-1<e.indexOf("::"),n=t||i.test(o.mdColors);o.mdColors=e.replace("::","");e=be.isDefined(o.mdColorsWatch);return!t&&!n&&(!e||r.parseAttributeBoolean(o.mdColorsWatch))}();return function(e,n,t,o){function r(n){"string"!=typeof n&&(n=""),t.mdColors||(t.mdColors="{}");var o=u(t.mdColors)(e);return i&&Object.keys(o).forEach(function(e){var t=o[e];c.hasTheme(t)||(o[e]=(n||i.$mdTheme)+"-"+t)}),d(o),o}var i=o[0],a={},d=function(e){var t;be.equals(e,a)||(t=Object.keys(a),a.background&&!t.color&&t.push("color"),t.forEach(function(e){n.css(e,"")})),a=e},s=be.noop;i&&(s=i.registerChanges(function(e){c.applyThemeColors(n,r(e))})),e.$on("$destroy",function(){s()});try{l?e.$watch(r,be.bind(this,c.applyThemeColors,n),!0):c.applyThemeColors(n,r())}catch(e){m.error(e.message)}}}}}be.module("material.components.colors",["material.core"]).directive("mdColors",t).service("$mdColors",e)}(),me.$inject=["$mdTheming"],be.module("material.components.content",["material.core"]).directive("mdContent",me),be.module("material.components.datepicker",["material.core","material.components.icon","material.components.virtualRepeat"]),function(){function e(i){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",monthFilter:"=mdMonthFilter",_mode:"@mdMode",_currentView:"@mdCurrentView"},require:["ngModel","mdCalendar"],controller:n,controllerAs:"calendarCtrl",bindToController:!0,link:function(e,t,n,o){var r=o[0];o[1].configureNgModel(r,i)}}}n.$inject=["$element","$scope","$$mdDateUtil","$mdUtil","$mdConstant","$mdTheming","$$rAF","$attrs","$mdDateLocale","$filter","$document"],e.$inject=["inputDirective"],be.module("material.components.datepicker").directive("mdCalendar",e);var p=0,t={day:"month",month:"year"};function n(e,t,n,o,r,i,a,d,s,l,c){i(e),this.$element=e,this.$scope=t,this.$attrs=d,this.dateUtil=n,this.$mdUtil=o,this.keyCode=r.KEY_CODE,this.$$rAF=a,this.$mdDateLocale=s,this.ngDateFilter=l("date"),this.today=this.dateUtil.createDateAtMidnight(),this.ngModelCtrl=ge,this.SELECTED_DATE_CLASS="md-calendar-selected-date",this.TODAY_CLASS="md-calendar-date-today",this.FOCUSED_DATE_CLASS="md-focus",this.id=p++,this.displayDate=null,this.mode=null,this.selectedDate=null,this.firstRenderableDate=null,this.lastRenderableDate=null,this.isInitialized=!1,this.width=0,this.scrollbarWidth=0,this.standaloneMode=!1,d.tabindex||e.attr("tabindex","-1");var m=be.bind(this,this.handleKeyEvent),u=e.parent().hasClass("md-datepicker-calendar")?be.element(c[0].body):(this.standaloneMode=!0,e);u.on("keydown",m),t.$on("$destroy",function(){u.off("keydown",m)}),1===be.version.major&&be.version.minor<=4&&this.$onInit()}n.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),this.minDate&&this.minDate>this.$mdDateLocale.firstRenderableDate?this.firstRenderableDate=this.minDate:this.firstRenderableDate=this.$mdDateLocale.firstRenderableDate,this.maxDate&&this.maxDate<this.$mdDateLocale.lastRenderableDate?this.lastRenderableDate=this.maxDate:this.lastRenderableDate=this.$mdDateLocale.lastRenderableDate},n.prototype.configureNgModel=function(e,t){var n=this;n.ngModelCtrl=e,this.$attrs.$set("type","date"),t[0].link.pre(this.$scope,{on:be.noop,val:be.noop,0:{}},this.$attrs,[e]),e.$render=function(){var e,t=this.$viewValue;n.dateUtil.isValidDate(t)||(e=n.dateUtil.removeLocalTzAndReparseDate(new Date(t)),n.dateUtil.isValidDate(e)&&(t=e)),n.$scope.$broadcast("md-calendar-parent-changed",t),n.selectedDate||(n.selectedDate=t),n.displayDate||(n.displayDate=n.selectedDate||n.today)},n.$mdUtil.nextTick(function(){n.isInitialized=!0})},n.prototype.setNgModelValue=function(e){var t=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone"),e=this.dateUtil.createDateAtMidnight(e);return this.focusDate(e),this.$scope.$emit("md-calendar-change",e),null==t||e.getTimezoneOffset()<0?this.ngModelCtrl.$setViewValue(this.ngDateFilter(e,"yyyy-MM-dd"),"default"):this.ngModelCtrl.$setViewValue(this.ngDateFilter(e,"yyyy-MM-dd",t),"default"),this.ngModelCtrl.$render(),e},n.prototype.setCurrentView=function(e,t){var n=this;n.$mdUtil.nextTick(function(){n.currentView=e,t&&(n.displayDate=be.isDate(t)?t:new Date(t))})},n.prototype.focusDate=function(e){var t;this.dateUtil.isValidDate(e)?((t=this.$element[0].querySelector("."+this.FOCUSED_DATE_CLASS))&&t.classList.remove(this.FOCUSED_DATE_CLASS),t=this.getDateId(e,this.currentView),(t=document.getElementById(t))&&(t.classList.add(this.FOCUSED_DATE_CLASS),t.focus(),this.displayDate=e)):(e=this.$element[0].querySelector("[ng-switch]"))&&e.focus()},n.prototype.changeSelectedDate=function(e){var t=this.SELECTED_DATE_CLASS,n=this.$element[0].querySelector("."+t);n&&(n.classList.remove(t),n.setAttribute("aria-selected","false")),!e||(n=document.getElementById(this.getDateId(e,this.currentView)))&&(n.classList.add(t),n.setAttribute("aria-selected","true")),this.selectedDate=e},n.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}},n.prototype.handleKeyEvent=function(t){var n=this;this.$scope.$apply(function(){return t.which===n.keyCode.ESCAPE||t.which===n.keyCode.TAB&&!n.standaloneMode?(n.$scope.$emit("md-calendar-close"),void(t.which===n.keyCode.TAB&&t.preventDefault())):void(t.which===n.keyCode.TAB&&n.standaloneMode||(e=n.getActionFromKeyEvent(t))&&(t.preventDefault(),t.stopPropagation(),n.$scope.$broadcast("md-calendar-parent-action",e)));var e})},n.prototype.hideVerticalScrollbar=function(o){var r=this,t=o.$element[0],i=t.querySelector(".md-calendar-scroll-mask");function n(){var e=r.width||340,t=r.scrollbarWidth,n=o.calendarScroller;i.style.width=e+"px",n.style.width=e+t+"px",n.style.paddingRight=t+"px"}0<r.width?n():r.$$rAF(function(){var e=o.calendarScroller;r.scrollbarWidth=e.offsetWidth-e.clientWidth,r.width=t.querySelector("table").offsetWidth,n()})},n.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("-")},n.prototype.updateVirtualRepeat=function(){var e=this.$scope,t=e.$on("$md-resize-enable",function(){e.$$phase||e.$apply(),t()})}}(),function(){n.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdDateLocale"],be.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-t)+'"><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="'+t+'"><tr aria-hidden="true" md-force-height="\''+t+"px'\"></tr></tbody></table></md-virtual-repeat-container></div>",require:["^^mdCalendar","mdCalendarMonth"],controller:n,controllerAs:"monthCtrl",bindToController:!0,link:function(e,t,n,o){var r=o[0];o[1].initialize(r)}}});var t=265,e=45;function n(e,t,n,o,r,i){this.$element=e,this.$scope=t,this.$animate=n,this.$q=o,this.dateUtil=r,this.dateLocale=i,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1;var a=this;this.cellClickHandler=function(){var e=r.getTimestampFromNode(this);a.$scope.$apply(function(){a.calendarCtrl.setNgModelValue(new Date(e))})},this.headerClickHandler=function(){a.calendarCtrl.setCurrentView("year",r.getTimestampFromNode(this))}}n.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()},n.prototype.getSelectedMonthIndex=function(){var e=this.calendarCtrl;return this.dateUtil.getMonthDistance(e.firstRenderableDate,e.displayDate||e.selectedDate||e.today)},n.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},n.prototype.animateDateChange=function(e){return this.dateUtil.isValidDate(e)&&(e=this.dateUtil.getMonthDistance(this.calendarCtrl.firstRenderableDate,e),this.calendarScroller.scrollTop=e*t),this.$q.when()},n.prototype.buildWeekHeader=function(){for(var e=this.dateLocale.firstDayOfWeek,t=this.dateLocale.shortDays,n=document.createElement("tr"),o=0;o<7;o++){var r=document.createElement("th");r.textContent=t[(o+e)%7],n.appendChild(r)}this.$element.find("thead").append(n)},n.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",be.bind(this,this.handleKeyEvent))},n.prototype.handleKeyEvent=function(e,t){var n=this.calendarCtrl,o=n.displayDate;if("select"===t)n.setNgModelValue(o);else{var r=null,i=this.dateUtil;switch(t){case"move-right":r=i.incrementDays(o,1);break;case"move-left":r=i.incrementDays(o,-1);break;case"move-page-down":r=i.incrementMonths(o,1);break;case"move-page-up":r=i.incrementMonths(o,-1);break;case"move-row-down":r=i.incrementDays(o,7);break;case"move-row-up":r=i.incrementDays(o,-7);break;case"start":r=i.getFirstDateOfMonth(o);break;case"end":r=i.getLastDateOfMonth(o)}r&&(r=this.dateUtil.clampDate(r,n.minDate,n.maxDate),this.changeDisplayDate(r).then(function(){n.focusDate(r)}))}}}(),ue.$inject=["$compile","$$mdSvgRegistry"],pe.$inject=["$element","$$mdDateUtil","$mdDateLocale"],be.module("material.components.datepicker").directive("mdCalendarMonthBody",ue),pe.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=null)},pe.prototype.buildDateCell=function(e){var t,n,o=this.monthCtrl,r=this.calendarCtrl,i=document.createElement("td");return i.tabIndex=-1,i.classList.add("md-calendar-date"),i.setAttribute("role","gridcell"),e&&(i.setAttribute("tabindex","-1"),i.setAttribute("aria-label",this.dateLocale.longDateFormatter(e)),i.id=r.getDateId(e,"month"),i.setAttribute("data-timestamp",e.getTime()),this.dateUtil.isSameDay(e,r.today)&&i.classList.add(r.TODAY_CLASS),this.dateUtil.isValidDate(r.selectedDate)&&this.dateUtil.isSameDay(e,r.selectedDate)&&(i.classList.add(r.SELECTED_DATE_CLASS),i.setAttribute("aria-selected","true")),t=this.dateLocale.dates[e.getDate()],this.isDateEnabled(e)?((n=document.createElement("span")).classList.add("md-calendar-date-selection-indicator"),n.textContent=t,i.appendChild(n),i.addEventListener("click",o.cellClickHandler),r.displayDate&&this.dateUtil.isSameDay(e,r.displayDate)&&(this.focusAfterAppend=i)):(i.classList.add("md-calendar-date-disabled"),i.textContent=t)),i},pe.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.calendarCtrl.minDate,this.calendarCtrl.maxDate)&&(!be.isFunction(this.calendarCtrl.dateFilter)||this.calendarCtrl.dateFilter(e))},pe.prototype.buildDateRow=function(e){var t=document.createElement("tr");return t.setAttribute("role","row"),t.setAttribute("aria-label",this.dateLocale.weekNumberFormatter(e)),t},pe.prototype.buildCalendarForMonth=function(e){var t=this.dateUtil.isValidDate(e)?e:new Date,n=this.dateUtil.getFirstDateOfMonth(t),o=this.getLocaleDay_(n),r=this.dateUtil.getNumberOfDaysInMonth(t),i=document.createDocumentFragment(),a=1,d=this.buildDateRow(a);i.appendChild(d);var s=this.offset===this.monthCtrl.items.length-1,l=0,c=document.createElement("td"),m=document.createElement("span"),e=this.calendarCtrl;if(m.textContent=this.dateLocale.monthHeaderFormatter(t),c.appendChild(m),c.classList.add("md-calendar-month-label"),e.maxDate&&n>e.maxDate?c.classList.add("md-calendar-month-label-disabled"):e.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");t=this.buildDateRow();if(t.appendChild(c),i.insertBefore(t,d),s)return i}else l=3,c.setAttribute("colspan","3"),d.appendChild(c);for(var u=l;u<o;u++)d.appendChild(this.buildDateCell());for(var p=o,h=n,f=1;f<=r;f++){if(7===p){if(s)return i;p=0,a++,d=this.buildDateRow(a),i.appendChild(d)}h.setDate(f);var b=this.buildDateCell(h);d.appendChild(b),p++}for(;d.childNodes.length<7;)d.appendChild(this.buildDateCell());for(;i.childNodes.length<6;){for(var g=this.buildDateRow(),E=0;E<7;E++)g.appendChild(this.buildDateCell());i.appendChild(g)}return i},pe.prototype.getLocaleDay_=function(e){return(e.getDay()+(7-this.dateLocale.firstDayOfWeek))%7},function(){e.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdUtil"],be.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="'+t+'"><tr aria-hidden="true" md-force-height="\''+t+"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 r=o[0];o[1].initialize(r)}}});var t=88;function e(e,t,n,o,r,i){this.$element=e,this.$scope=t,this.$animate=n,this.$q=o,this.dateUtil=r,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1,this.$mdUtil=i;var a=this;this.cellClickHandler=function(){a.onTimestampSelected(r.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){return this.dateUtil.isValidDate(e)&&(e=this.dateUtil.getYearDistance(this.calendarCtrl.firstRenderableDate,e),this.calendarScroller.scrollTop=e*t),this.$q.when()},e.prototype.handleKeyEvent=function(e,t){var n=this,o=n.calendarCtrl,r=o.displayDate;if("select"===t)n.changeDate(r).then(function(){n.onTimestampSelected(r)});else{var i,a=null,d=n.dateUtil;switch(t){case"move-right":a=d.incrementMonths(r,1);break;case"move-left":a=d.incrementMonths(r,-1);break;case"move-row-down":a=d.incrementMonths(r,6);break;case"move-row-up":a=d.incrementMonths(r,-6)}a&&(i=o.minDate?d.getFirstDateOfMonth(o.minDate):null,t=o.maxDate?d.getFirstDateOfMonth(o.maxDate):null,a=d.getFirstDateOfMonth(n.dateUtil.clampDate(a,i,t)),n.changeDate(a).then(function(){o.focusDate(a)}))}},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)),n.changeDate(t)}),n.$scope.$on("md-calendar-parent-action",be.bind(n,n.handleKeyEvent))},e.prototype.onTimestampSelected=function(e){var t=this.calendarCtrl;t.mode?this.$mdUtil.nextTick(function(){t.setNgModelValue(new Date(e))}):t.setCurrentView("month",e)}}(),he.$inject=["$element","$$mdDateUtil","$mdDateLocale"],be.module("material.components.datepicker").directive("mdCalendarYearBody",function(){return{require:["^^mdCalendar","^^mdCalendarYear","mdCalendarYearBody"],scope:{offset:"=mdYearOffset"},controller:he,controllerAs:"mdYearBodyCtrl",bindToController:!0,link:function(e,t,n,o){var r=o[0],i=o[1],a=o[2];a.calendarCtrl=r,a.yearCtrl=i,e.$watch(function(){return a.offset},function(e){be.isNumber(e)&&a.generateContent()})}}}),he.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=null)},he.prototype.buildMonthCell=function(e,t){var n=this.calendarCtrl,o=this.yearCtrl,r=this.buildBlankCell(),i=new Date(e,t,1);r.setAttribute("aria-label",this.dateLocale.monthFormatter(i)),r.id=n.getDateId(i,"year"),r.setAttribute("data-timestamp",String(i.getTime())),this.dateUtil.isSameMonthAndYear(i,n.today)&&r.classList.add(n.TODAY_CLASS),this.dateUtil.isValidDate(n.selectedDate)&&this.dateUtil.isSameMonthAndYear(i,n.selectedDate)&&(r.classList.add(n.SELECTED_DATE_CLASS),r.setAttribute("aria-selected","true"));e=this.dateLocale.shortMonths[t];return!this.dateUtil.isMonthWithinRange(i,n.minDate,n.maxDate)||be.isFunction(n.monthFilter)&&!n.monthFilter(i)?(r.classList.add("md-calendar-date-disabled"),r.textContent=e):((t=document.createElement("span")).classList.add("md-calendar-date-selection-indicator"),t.textContent=e,r.appendChild(t),r.addEventListener("click",o.cellClickHandler),n.displayDate&&this.dateUtil.isSameMonthAndYear(i,n.displayDate)&&(this.focusAfterAppend=r)),r},he.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},he.prototype.buildCalendarForYear=function(e){var t,n=e.getFullYear(),o=document.createDocumentFragment(),r=document.createElement("tr"),e=document.createElement("td");for(e.className="md-calendar-month-label",e.textContent=String(n),r.appendChild(e),t=0;t<6;t++)r.appendChild(this.buildMonthCell(n,t));o.appendChild(r);var i=document.createElement("tr");for(i.appendChild(this.buildBlankCell()),t=6;t<12;t++)i.appendChild(this.buildMonthCell(n,t));return o.appendChild(i),o},be.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,r){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 i=new Date(1880,0,1),a=new Date(i.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)),r("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||i,lastRenderableDate:this.lastRenderableDate||a};return d}).$inject=["$locale","$filter"],e.provider("$mdDateLocale",new t)}]),be.module("material.components.datepicker").factory("$$mdDateUtil",["$mdDateLocale",function(t){return{getFirstDateOfMonth:n,getNumberOfDaysInMonth:o,getDateInNextMonth:r,getDateInPreviousMonth:i,isInNextMonth:function(e,t){return a(r(e),t)},isInPreviousMonth:function(e,t){e=i(e);return a(t,e)},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(),o(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){e=c(e),t=s(t)?c(t):null,n=s(n)?c(n):null;return(!t||t<=e)&&(!n||e<=n)},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;t&&e<t&&(o=new Date(t.getTime()));n&&n<e&&(o=new Date(n.getTime()));return 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(),e=e.getFullYear();return(!t||t.getFullYear()<e||t.getMonth()<=o)&&(!n||n.getFullYear()>e||n.getMonth()>=o)},removeLocalTzAndReparseDate:function(e){return e=new Date(e.getTime()+6e4*e.getTimezoneOffset()),e=t.formatDate(e),t.parseDate(e)}};function n(e){return new Date(e.getFullYear(),e.getMonth(),1)}function o(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function r(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function i(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),t=o(n);return t<e.getDate()?n.setDate(t):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){e=be.isDate(e)?e:be.isNumber(e)?new Date(e):new Date;return l(e),e}}]),function(){function e(s,c,m,u){return{template:function(e,t){var n=t.mdHideIcons,o=t.inputAriaDescribedby,r=t.inputAriaLabelledby,i=t.ariaLabel||t.mdPlaceholder,a=t.ngModelOptions,d="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="'+s.mdCalendar+'"></md-icon></md-button>',t="";return"all"!==n&&"triangle"!==n&&(t='<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(l)),d+'<div class="md-datepicker-input-container" ng-class="{\'md-datepicker-focused\': ctrl.isFocused}"><input '+(i?'aria-label="'+i+'" ':"")+(o?'aria-describedby="'+o+'" ':"")+(r?'aria-labelledby="'+r+'" ':"")+'class="md-datepicker-input" aria-haspopup="dialog" ng-focus="ctrl.setFocused(true)" ng-blur="ctrl.setFocused(false)"> '+t+'</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" md-month-filter="ctrl.monthFilter" '+(a?'ng-model-options="'+a+'" ':"")+'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",monthFilter:"=mdMonthFilter",isOpen:"=?mdIsOpen",debounceInterval:"=mdDebounceInterval",dateLocale:"=mdDateLocale"},controller:t,controllerAs:"ctrl",bindToController:!0,link:function(e,t,n,o){var r,i=o[0],a=o[1],d=o[2],s=o[3],l=c.parseAttributeBoolean(n.mdNoAsterisk);a.configureNgModel(i,d,u),d?((o=t[0].querySelector(".md-errors-spacer"))&&t.after(be.element("<div>").append(o)),d.setHasPlaceholder(n.mdPlaceholder),d.input=t,d.element.addClass(p).toggleClass(h,"calendar"!==n.mdHideIcons&&"all"!==n.mdHideIcons),d.label?l||n.$observe("required",function(e){d.label.toggleClass("md-required",!!e)}):m.expect(t,"aria-label",n.mdPlaceholder),e.$watch(d.isErrorGetter||function(){return i.$invalid&&(i.$touched||s&&s.$submitted)},d.setInvalid)):s&&(r=e.$watch(function(){return s.$submitted},function(e){e&&(a.updateErrorState(),r())}))}}}t.$inject=["$scope","$element","$attrs","$window","$mdConstant","$mdTheming","$mdUtil","$mdDateLocale","$$mdDateUtil","$$rAF","$filter","$timeout"],e.$inject=["$$mdSvgRegistry","$mdUtil","$mdAria","inputDirective"],be.module("material.components.datepicker").directive("mdDatepicker",e);var o="md-datepicker-invalid",s="md-datepicker-open",p="_md-datepicker-floating-label",h="_md-datepicker-has-calendar-icon",l="_md-datepicker-has-triangle-icon",f=/ipad|iphone|ipod|android/i;function t(e,t,n,o,r,i,a,d,s,l,c,m){this.$window=o,this.dateUtil=s,this.$mdConstant=r,this.$mdUtil=a,this.$$rAF=l,this.$mdDateLocale=d,this.$timeout=m,this.documentElement=be.element(document.documentElement),this.ngModelCtrl=null,this.inputElement=t[0].querySelector("input"),this.ngInputElement=be.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=be.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||be.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=be.bind(this,this.handleBodyClick),this.windowEventName=f.test(navigator.userAgent||navigator.vendor||y.opera)?"orientationchange":"resize",this.windowEventHandler=a.debounce(be.bind(this,this.closeCalendarPane),100),this.windowBlurHandler=be.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),i(t),i(be.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===be.version.major&&be.version.minor<=4&&this.$onInit()}t.prototype.$onInit=function(){this.locale=this.dateLocale?be.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:be.noop,val:be.noop,0:{}},this.$attrs,[e]);var o=this;o.ngModelCtrl.$formatters.push(function(e){var t;be.isDefined(e);if(!(e instanceof Date)&&(t=Date.parse(e),(e=!isNaN(t)&&be.isNumber(t)?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(be.bind(this,this.updateErrorState));e=o.$mdUtil.getModelOption(e,"updateOn");e&&this.ngInputElement.on(e,be.bind(this.$element,this.$element.triggerHandler,e))},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",be.bind(n,n.resizeInputElement));var e=be.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",be.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)}),be.element(t.$window).on("blur",t.windowBlurHandler),n.$on("$destroy",function(){be.element(t.$window).off("blur",t.windowBlurHandler)})),n.$on("md-calendar-close",function(){t.closeCalendarPane()})},t.prototype.installPropertyInterceptors=function(){var e,t=this;!this.$attrs.ngDisabled||(e=this.$scope.$parent)&&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){e=e?new Date(e.valueOf()):be.isString(this.ngModelCtrl.$modelValue)?new Date(this.ngModelCtrl.$modelValue):be.copy(this.ngModelCtrl.$modelValue),this.clearErrorState(),this.dateUtil.isValidDate(e)?(e=this.dateUtil.createDateAtMidnight(e),this.dateUtil.isValidDate(this.minDate)&&(t=this.dateUtil.createDateAtMidnight(this.minDate),this.ngModelCtrl.$setValidity("mindate",t<=e)),this.dateUtil.isValidDate(this.maxDate)&&(n=this.dateUtil.createDateAtMidnight(this.maxDate),this.ngModelCtrl.$setValidity("maxdate",e<=n)),be.isFunction(this.dateFilter)&&this.ngModelCtrl.$setValidity("filtered",this.dateFilter(e)),be.isFunction(this.monthFilter)&&this.ngModelCtrl.$setValidity("filtered",this.monthFilter(e))):this.ngModelCtrl.$setValidity("valid",null==e);var t=this.inputElement.value,n=this.locale.parseDate(t);!this.isInputValid(t,n)&&this.ngModelCtrl.$valid&&this.ngModelCtrl.$setValidity("valid",null==e),be.element(this.inputContainer).toggleClass(o,this.ngModelCtrl.$invalid&&(this.ngModelCtrl.$touched||this.ngModelCtrl.$submitted))},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(o),["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)&&(!be.isFunction(this.dateFilter)||this.dateFilter(e))&&(!be.isFunction(this.monthFilter)||this.monthFilter(e))},t.prototype.attachCalendarPane=function(){var e=this.calendarPane,t=document.body;e.style.transform="",this.$element.addClass(s),this.mdInputContainer&&this.mdInputContainer.element.addClass(s),be.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 r=n.top-o.top-this.topMargin,i=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,t=a+this.$window.innerHeight,o=d+this.$window.innerWidth;this.inputMask.css({position:"absolute",left:this.leftMargin+"px",top:this.topMargin+"px",width:n.width-1+"px",height:n.height-2+"px"}),o<i+360&&(0<o-360?i=o-360:(i=d,d=this.$window.innerWidth/360,e.style.transform="scale("+d+")"),e.classList.add("md-datepicker-pos-adjusted")),t<r+368&&a<t-368&&(r=t-368,e.classList.add("md-datepicker-pos-adjusted")),e.style.left=i+"px",e.style.top=r+"px",document.body.appendChild(e),this.$$rAF(function(){e.classList.add("md-pane-open")})},t.prototype.detachCalendarPane=function(){this.$element.removeClass(s),this.mdInputContainer&&this.mdInputContainer.element.removeClass(s),be.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){var t;this.isCalendarOpen||this.isDisabled||this.inputFocusedOnWindowBlur?this.inputFocusedOnWindowBlur&&this.resetInputFocused():(this.isCalendarOpen=this.isOpen=!0,this.calendarPaneOpenedFrom=e.target,this.$mdUtil.disableScrollAround(this.calendarPane),this.attachCalendarPane(),this.focusCalendar(),this.evalAttr("ngFocus"),(t=this).$mdUtil.nextTick(function(){t.documentElement.on("click touchstart",t.bodyClickHandler)},!1),y.addEventListener(this.windowEventName,this.windowEventHandler))},t.prototype.closeCalendarPane=function(){var e;function t(){e.isCalendarOpen=e.isOpen=!1}this.isCalendarOpen&&((e=this).detachCalendarPane(),e.ngModelCtrl.$setTouched(),e.evalAttr("ngBlur"),e.documentElement.off("click touchstart",e.bodyClickHandler),y.removeEventListener(e.windowEventName,e.windowEventHandler),e.calendarPaneOpenedFrom.focus(),e.calendarPaneOpenedFrom=null,e.openOnFocus?e.$timeout(t):t())},t.prototype.getCalendarCtrl=function(){return be.element(this.calendarPane.querySelector("md-calendar")).controller("mdCalendar")},t.prototype.focusCalendar=function(){var e=this;this.$mdUtil.nextTick(function(){e.getCalendarCtrl().focusDate(e.date)},!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.resetInputFocused=function(){this.inputFocusedOnWindowBlur=!1},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");null==t||null==e||e.getTimezoneOffset()<0?this.ngModelCtrl.$setViewValue(this.ngDateFilter(e,"yyyy-MM-dd"),"default"):this.ngModelCtrl.$setViewValue(this.ngDateFilter(e,"yyyy-MM-dd",t),"default")},t.prototype.onExternalChange=function(e){var t=this,n=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone");this.dateUtil.isValidDate(e)&&null!=n&&0<=e.getTimezoneOffset()?this.date=this.dateUtil.removeLocalTzAndReparseDate(e):this.date=e,null==n||null==e||e.getTimezoneOffset()<0?this.inputElement.value=this.locale.formatDate(e):this.inputElement.value=this.locale.formatDate(e,n),this.mdInputContainer&&this.mdInputContainer.setHasValue(!!e),this.resizeInputElement(),this.$mdUtil.nextTick(function(){t.updateErrorState()},!1,t.$scope)}}(),fe.$inject=["$$rAF","$mdTheming","$mdDialog"],Ee.$inject=["$$interimElementProvider"],be.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",fe).provider("$mdDialog",Ee),ve.$inject=["$mdTheming"],be.module("material.components.divider",["material.core"]).directive("mdDivider",ve),$e.$inject=["$mdUtil"],be.module("material.components.fabActions",["material.core"]).directive("mdFabActions",$e),Me.$inject=["$scope","$element","$animate","$mdUtil","$mdConstant","$timeout"],be.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 r(e){var d,n,s,t,o;e.hasClass("md-animations-waiting")&&!e.hasClass("_md-animations-ready")||(t=e[0],d=e.controller("mdFabSpeedDial"),n=t.querySelectorAll(".md-fab-action-item"),s=t.querySelector("md-fab-trigger"),t=t.querySelector("._md-css-variables"),o=parseInt(y.getComputedStyle(t).zIndex),be.forEach(n,function(e,t){e=e.style;e.transform=e.webkitTransform="",e.transitionDelay="",e.opacity=d.isOpen?1:0,e.zIndex=n.length-t+o}),s.style.zIndex=o+n.length+1,d.isOpen||be.forEach(n,function(e,t){var n,o,r=e.style,i=(s.clientHeight-e.clientHeight)/2,a=(s.clientWidth-e.clientWidth)/2;switch(d.direction){case"up":n=e.scrollHeight*(t+1)+i,o="Y";break;case"down":n=-(e.scrollHeight*(t+1)+i),o="Y";break;case"left":n=e.scrollWidth*(t+1)+a,o="X";break;case"right":n=-(e.scrollWidth*(t+1)+a),o="X"}r.transform=r.webkitTransform="translate"+o+"("+n+"px)"}))}return{addClass:function(e,t,n){e.hasClass("md-fling")?(r(e),o(n)):n()},removeClass:function(e,t,n){r(e),o(n)}}}function t(t){function o(e){t(e,n,!1)}function r(e){var t=e[0],o=e.controller("mdFabSpeedDial"),r=t.querySelectorAll(".md-fab-action-item"),t=t.querySelector("._md-css-variables"),i=parseInt(y.getComputedStyle(t).zIndex);be.forEach(r,function(e,t){var n=e.style,e=65*t;n.opacity=o.isOpen?1:0,n.transform=n.webkitTransform=o.isOpen?"scale(1)":"scale(0)",n.transitionDelay=(o.isOpen?e:r.length-e)+"ms",n.zIndex=r.length-t+i})}return{addClass:function(e,t,n){r(e),o(n)},removeClass:function(e,t,n){r(e),o(n)}}}be.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:"ctrl",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)}(),be.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:"ctrl",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",ye).service("mdFabToolbarAnimation",ye),Te.$inject=["$mdUtil"],Ae.$inject=["$mdUtil"],Ce.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia","$mdUtil"],we.$inject=["$mdMedia"],be.module("material.components.gridList",["material.core"]).directive("mdGridList",Ce).directive("mdGridTile",we).directive("mdGridTileFooter",_e).directive("mdGridTileHeader",_e).factory("$mdGridLayout",Ae),Te.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(be.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}},be.module("material.components.icon",["material.core"]),be.module("material.components.icon").directive("mdIcon",["$mdIcon","$mdTheming","$mdAria","$sce",function(d,s,l,e){return{restrict:"E",link:function(e,t,n){s(t);var o=n.mdFontIcon,r=d.fontSet(n.mdFontSet);n.mdSvgIcon||n.mdSvgSrc||(n.mdFontIcon&&t.addClass("md-font "+n.mdFontIcon),t.addClass(r)),n.$observe("mdFontIcon",a),n.$observe("mdFontSet",a),n.role||(l.expect(t,"role","img"),n.role="img");t[0].hasAttribute("aria-label")&&""===n.ariaLabel&&t.attr("aria-hidden",!0);"img"!==n.role||n.ariaHidden||l.hasAriaLabel(t)||(t[0].hasAttribute("alt")&&""===n.alt?t.attr("aria-hidden",!0):n.alt?l.expect(t,"aria-label",n.alt):!l.parentHasAriaLabel(t,2)&&(n.mdFontIcon||n.mdSvgIcon||t.text())?l.expect(t,"aria-label",n.mdFontIcon||n.mdSvgIcon||t.text()):l.expect(t,"aria-hidden","true"));var i=n.$normalize(n.$attr.mdSvgIcon||n.$attr.mdSvgSrc||"");i&&n.$observe(i,function(e){t.empty(),e&&d(e).then(function(e){t.empty(),t.append(e)})});function a(){var e;n.mdSvgIcon||n.mdSvgSrc||(n.mdFontIcon&&(t.removeClass(o),t.addClass(n.mdFontIcon),o=n.mdFontIcon),e=d.fontSet(n.mdFontSet),r!==e&&(t.removeClass(r),t.addClass(e),r=e))}}}}]),function(){a.$inject=["config","$templateRequest","$q","$log","$mdUtil","$sce"],be.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 i={defaultViewBoxSize:24,defaultFontSet:"material-icons",fontSets:[]};function e(){}function o(e,t){this.url=e,this.viewBoxSize=t||i.defaultViewBoxSize}function a(i,r,a,d,c,t){var o={},s={},n=/[-\w@:%+.~#?&//=]{2,}\.[a-z]{2,4}\b(\/[-\w@:%+.~#?&//=]*)?/i,l=/^data:image\/svg\+xml[\s*;\w\-=]*?(base64)?,(.*)$/i;return g.prototype={clone:function(){return this.element.cloneNode(!0)},prepare:function(){var e=this.config?this.config.viewBoxSize:i.defaultViewBoxSize;be.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(be.isUndefined(t)||!t||!t.length)return i.defaultFontSet;var n=t;return be.forEach(i.fontSets,function(e){e.alias===t&&(n=e.fontSet||n)}),n},e;function e(e){return be.isString(e=e||"")||(e=t.getTrustedUrl(e)),o[e]?a.when(m(o[e])):n.test(e)||l.test(e)?b(e).then(p(e)):(-1===e.indexOf(":")&&(e="$default:"+e),(i[e]?h:f)(e).then(p(e)))}function m(e){var n,o,r,i,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),be.forEach(a.querySelectorAll("[id]"),function(t){for(o="",r=0;r<s.length;r++)o+="["+s[r]+'="url(#'+t.id+')"]',r+1<s.length&&(o+=", ");be.forEach(a.querySelectorAll(o),function(e){u(t,e,l,d)}),be.forEach(a.querySelectorAll("style"),function(e){u(t,e,l,d)}),be.forEach(a.querySelectorAll("[*|href]:not([href])"),function(e){(i=e.getAttribute("xlink:href"))&&(i=i.replace("#"+t.id,"#"+t.id+n),e.setAttribute("xlink:href",i))}),t.id+=n}),a}function u(e,t,n,o){if(!isFinite(Number(o)))throw new Error("Unsafe and unexpected non-number result for newUid.");o="_cache"+o,n?(n=(n=c.getOuterHTML(t)).replace("url(#"+e.id+")","url(#"+e.id+o+")"),t.textContent=be.element(n)[0].innerHTML):t.outerHTML=t.outerHTML.replace("url(#"+e.id+")","url(#"+e.id+o+")")}function p(n){return function(e){var t;return o[n]=(t=e,be.isDefined(t.element)&&be.isDefined(t.config)?e:new g(e,i[n])),m(o[n])}}function h(e){var t=i[e];return b(t.url).then(function(e){return new g(e,t)})}function f(n){var e=n.substring(0,n.lastIndexOf(":"))||"$default",o=i[e];return o?b(o.url).then(function(e){var t=n.slice(n.lastIndexOf(":")+1),t=e.querySelector("#"+t);return t?new g(t,o):r(n)}):r(n);function r(e){var t="icon "+e+" not found";return d.warn(t),a.reject(t||e)}}function b(e){return l.test(e)?(t=e,n=l.exec(t),n=/base64/i.test(t)?y.atob(n[2]):n[2],a.when(be.element(n)[0])):(o=e,a(function(t,n){r(o,!0).then(function(e){s[o]||(s[o]=be.element("<div>").append(e)[0].querySelector("svg")),t(s[o])},function(e){var t=be.isString(e)?e:e.message||e.data||e.statusText;d.warn(t),n(e)})}));var o,t,n}function g(e,t){var n;e&&"symbol"===e.tagName.toLowerCase()&&(n=e.getAttribute("viewBox"),e=(e.innerHTML?be.element('<svg xmlns="http://www.w3.org/2000/svg">').html(e.innerHTML):be.element('<svg xmlns="http://www.w3.org/2000/svg">').append(c.getInnerHTML(e)))[0],n&&e.setAttribute("viewBox",n)),(e=e&&"svg"!==e.tagName.toLowerCase()?be.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),i[e]=new o(t,n),this},iconSet:function(e,t,n){return i[e]=new o(t,n),this},defaultIconSet:function(e,t){var n="$default";return i[n]||(i[n]=new o(e,t)),i[n].viewBoxSize=t||i.defaultViewBoxSize,this},defaultViewBoxSize:function(e){return i.defaultViewBoxSize=e,this},fontSet:function(e,t){return i.fontSets.push({alias:e,fontSet:t||e}),this},defaultFontSet:function(e){return i.defaultFontSet=e||"",this},defaultIconSize:function(e){return i.defaultIconSize=e,this},$get:["$templateRequest","$q","$log","$mdUtil","$sce",function(e,t,n,o,r){return a(i,e,t,n,o,r)}]}}(),function(){t.$inject=["$mdTheming","$parse","$$rAF"],n.$inject=["$mdUtil","$window","$mdAria","$timeout","$mdGesture"],o.$inject=["$animate","$mdUtil"],r.$inject=["$compile"],c.$inject=["$mdUtil"],i.$inject=["$document","$timeout"],m.$inject=["$$AnimateRunner","$animateCss","$mdUtil"],u.$inject=["$$AnimateRunner","$animateCss","$mdUtil"],p.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"];var e=be.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",r).directive("ngMessages",function(){return{restrict:"EA",link:function(e,t,n,o){o&&(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",i).animation(".md-input-invalid",m).animation(".md-input-messages-animation",u).animation(".md-input-message-animation",p);function t(r,i,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){r(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 r=this;t.addClass("md-auto-horizontal-margin"),r.isErrorGetter=n.mdIsError&&i(n.mdIsError),r.delegateClick=function(){r.input.focus()},r.element=t,r.setFocused=function(e){t.toggleClass("md-input-focused",!!e)},r.setHasValue=function(e){t.toggleClass("md-input-has-value",!!e)},r.setHasPlaceholder=function(e){t.toggleClass("md-input-has-placeholder",!!e)},r.setInvalid=function(e){e?o.addClass(t,"md-input-invalid"):o.removeClass(t,"md-input-invalid")},e.$watch(function(){return r.label&&r.input},function(e){e&&!r.label.attr("for")&&r.label.attr("for",r.input.attr("id"))})}}function n(b,g,d,E,v){return{restrict:"E",require:["^?mdInputContainer","?ngModel","?^form"],link:function(c,m,u,e){var p=e[0],h=!!e[1],f=e[1]||b.fakeNgModel(),t=e[2],n=be.isDefined(u.readonly),o=b.parseAttributeBoolean(u.mdNoAsterisk),r=m[0].tagName.toLowerCase();if(p)if("hidden"!==u.type){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&&p.label.toggleClass("md-required",e&&!o)});e=be.element('<div class="md-errors-spacer">');m.after(e);e=be.isString(u.placeholder)?u.placeholder.trim():"";p.label||e.length||d.expect(m,"aria-label"),m.addClass("md-input"),m.attr("id")||m.attr("id","input_"+b.nextUid()),"input"===r&&"number"===u.type&&u.min&&u.max&&!u.step?m.attr("step","any"):"textarea"===r&&function(){var o,r,t,i,a,e,n=!u.hasOwnProperty("mdNoAutogrow");function d(){m.attr("rows",1).css("height","auto").addClass("md-no-flex");var e,t,n,t=(e=a.offsetHeight,t=a.scrollHeight-e,e+Math.max(t,0));i||(n=m[0].style.padding||"",i=m.css("padding",0).prop("offsetHeight"),m[0].style.padding=n),o&&i&&(t=Math.max(t,i*o)),r&&i&&((n=i*r)<t?(m.attr("md-no-autogrow",""),t=n):m.removeAttr("md-no-autogrow")),i&&m.attr("rows",Math.round(t/i)),m.css("height",t+"px").removeClass("md-no-flex")}function s(e){return b.nextTick(d),e}function l(){var e;n&&(n=!1,be.element(g).off("resize",d),t&&t(),m.attr("md-no-autogrow","").off("input",d),!h||-1<(e=f.$formatters.indexOf(s))&&f.$formatters.splice(e,1))}(function(){var e,t,n,o,r;function i(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"))}u.hasOwnProperty("mdNoResize")||(e=be.element('<div class="md-resize-handle"></div>'),t=!1,n=0,o=p.element,r=v.register(e,"drag",{horizontal:!1}),m.wrap('<div class="md-resize-wrapper">').after(e),e.on("mousedown",i),o.on("$md.dragstart",a).on("$md.drag",d).on("$md.dragend",s),c.$on("$destroy",function(){e.off("mousedown",i).remove(),o.off("$md.dragstart",a).off("$md.drag",d).off("$md.dragend",s),r(),r=o=e=null}))})(),n&&(o=u.hasOwnProperty("rows")?parseInt(u.rows):NaN,r=u.hasOwnProperty("maxRows")?parseInt(u.maxRows):NaN,t=c.$on("md-resize-textarea",d),i=null,a=m[0],E(function(){b.nextTick(d)},10,!1),m.on("input",d),h&&f.$formatters.push(s),o||m.attr("rows",1),be.element(g).on("resize",d),c.$on("$destroy",l),u.hasOwnProperty("mdDetectHidden")&&(e=function(){var t=!1;return function(){var e=0===a.offsetHeight;!1==e&&!0===t&&d(),t=e}}(),c.$watch(function(){return b.nextTick(e,!1),!0})))}(),h||a();r=p.isErrorGetter||function(){return f.$invalid&&(f.$touched||t&&t.$submitted)};c.$watch(r,p.setInvalid),u.ngValue&&u.$observe("value",a),f.$parsers.push(i),f.$formatters.push(i),m.on("input",a),n||m.on("focus",function(e){b.nextTick(function(){p.setFocused(!0)})}).on("blur",function(e){b.nextTick(function(){p.setFocused(!1),a()})}),c.$on("$destroy",function(){p.setFocused(!1),p.setHasValue(!1),p.input=null})}else m.attr("aria-hidden","true");function i(e){return p.setHasValue(!f.$isEmpty(e)),e}function a(){p.setHasValue(0<m.val().length||(m[0].validity||{}).badInput)}}}}function o(p,h){return{restrict:"A",require:["ngModel","^mdInputContainer"],link:function(e,n,t,o){var r=parseInt(t.mdMaxlength);isNaN(r)&&(r=-1);var i,a,d=o[0],s=o[1],l=!be.isDefined(t.ngTrim)||h.parseAttributeBoolean(t.ngTrim),c="password"===t.type;function m(e){return(e=l&&!c&&be.isString(e)?e.trim():e)!==ge&&null!==e||(e=""),String(e).length}function u(){i&&i.parent()&&i.text(m(n.val())+" / "+r)}e.$watch(t.mdMaxlength,function(e){r=e}),d.$validators["md-maxlength"]=function(e,t){if(!be.isNumber(r)||r<0)return!0;u();t=n.val()||t;return t!==ge&&null!==t||(t=""),t=l&&!c&&be.isString(t)?t.trim():t,String(t).length<=r},d.$isEmpty=function(e){return 0===m(e)},h.nextTick(function(){a=be.element(s.element[0].querySelector(".md-errors-spacer")),i=be.element('<div class="md-char-counter">'),a.append(i),t.$observe("ngTrim",function(e){l=!be.isDefined(e)||h.parseAttributeBoolean(e)}),e.$watch(t.mdMaxlength,function(e){be.isNumber(e)&&0<e?(i.parent().length||p.enter(i,a),u()):p.leave(i)})})}}}function r(a){return{restrict:"A",require:"^^?mdInputContainer",priority:200,link:{pre:function(e,t,n,o){var r,i;o&&(r=o.element.find("label"),i=o.element.attr("md-no-float"),r&&r.length||""===i||e.$eval(i)?o.setHasPlaceholder(!0):"MD-SELECT"!==t[0].nodeName&&(t=be.element('<label ng-click="delegateClick()" tabindex="-1" aria-hidden="true">'+n.placeholder+"</label>"),n.$set("placeholder",null),o.element.addClass("md-icon-float").prepend(t),a(t)(e)))}}}}function i(a,d){return{restrict:"A",link:function(e,t,n){var o;function r(){d(function(){a[0].activeElement===t[0]&&t[0].select(),o=!1},1,!(o=!0))}function i(e){o&&e.preventDefault()}"INPUT"!==t[0].nodeName&&"TEXTAREA"!==t[0].nodeName||(o=!1,t.on("focus",r).on("mouseup",i),e.$on("$destroy",function(){t.off("focus",r).off("mouseup",i)}))}}}y._mdMocksIncluded&&e.service("$$mdInput",function(){return{messages:{getElement:E}}}).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))r(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)&&r(n)};function o(e){return t.getClosest(e,"md-input-container")}function r(e){e.toggleClass("md-input-message-animation",!0)}},priority:100}}function m(e,t,n){return v(e,t,n),{addClass:function(e,t,n){h(e,n)}}}function u(e,t,n){return v(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 v(e,t,n),{enter:function(e,t){b(e).start().done(t)},leave:function(e,t){g(e).start().done(t)}}}function h(e,t){var n,o=[],r=E(e),e=r.children();0!=r.length&&0!=e.length?(be.forEach(e,function(e){n=b(be.element(e)),o.push(n.start())}),a.all(o,t)):t()}function f(e,t){var n,o=[],r=E(e),e=r.children();0!=r.length&&0!=e.length?(be.forEach(e,function(e){n=g(be.element(e)),o.push(n.start())}),a.all(o,t)):t()}function b(e){var t=parseInt(y.getComputedStyle(e[0]).height),n=parseInt(y.getComputedStyle(e[0]).marginTop),o=E(e),r=e.controller("mdInputContainer").element;return-t<n||o.hasClass("md-auto-hide")&&!r.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 g(e){var t=e[0].offsetHeight,n=y.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 E(e){return e.hasClass("md-input-messages-animation")?e:e.hasClass("md-input-message-animation")?be.element(s.getClosest(e,function(e){return e.classList.contains("md-input-messages-animation")})):be.element(e[0].querySelector(".md-input-messages-animation"))}function v(e,t,n){a=e,d=t,s=n}}(),Ne.$inject=["$scope","$element","$mdListInkRipple"],ke.$inject=["$mdTheming"],xe.$inject=["$mdAria","$mdConstant","$mdUtil","$timeout"],be.module("material.components.list",["material.core"]).controller("MdListController",Ne).directive("mdList",ke).directive("mdListItem",xe),be.module("material.components.menu",["material.core","material.components.backdrop"]),Se.$inject=["$mdMenu","$attrs","$element","$scope","$mdUtil","$timeout","$rootScope","$q","$log"],be.module("material.components.menu").controller("mdMenuCtrl",Se),De.$inject=["$mdUtil"],be.module("material.components.menu").directive("mdMenu",De),He.$inject=["$$interimElementProvider"],be.module("material.components.menu").provider("$mdMenu",He),be.module("material.components.menuBar",["material.core","material.components.icon","material.components.menu"]),function(){e.$inject=["$scope","$rootScope","$element","$attrs","$mdConstant","$document","$mdUtil","$timeout"],be.module("material.components.menuBar").controller("MenuBarController",e);var l=["handleKeyDown","handleMenuHover","scheduleOpenHoveredMenu","cancelScheduledOpen"];function e(e,t,n,o,r,i,a,d){this.$element=n,this.$attrs=o,this.$mdConstant=r,this.$mdUtil=a,this.$document=i,this.$scope=e,this.$rootScope=t,this.$timeout=d;var s=this;be.forEach(l,function(e){s[e]=be.bind(s,s[e])})}e.prototype.init=function(){var a=this.$element,d=this.$mdUtil,e=this.$scope,s=this,t=[];a.on("keydown",this.handleKeyDown),this.parentToolbar=d.getClosest(a,"MD-TOOLBAR"),t.push(this.$rootScope.$on("$mdMenuOpen",function(e,t){-1!=s.getMenus().indexOf(t[0])&&(a[0].classList.add("md-open"),t[0].classList.add("md-open"),s.currentlyOpenMenu=t.controller("mdMenu"),s.currentlyOpenMenu.registerContainerProxy(s.handleKeyDown),s.enableOpenOnHover())})),t.push(this.$rootScope.$on("$mdMenuClose",function(e,t,n){var o=s.getMenus();-1!=o.indexOf(t[0])&&(a[0].classList.remove("md-open"),t[0].classList.remove("md-open"));var r=be.element(t[0]).controller("mdMenu");if(r.isInMenuBar&&r.mdMenuBarCtrl===s){for(var i=t[0];i&&-1==o.indexOf(i);)i=d.getClosest(i,"MD-MENU",!0);i&&(n.skipFocus||i.querySelector("button:not([disabled])").focus(),s.currentlyOpenMenu=ge),s.disableOpenOnHover(),s.setKeyboardMode(!0)}})),e.$on("$destroy",function(){for(s.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(){var e;this.openOnHoverEnabled||((e=this).openOnHoverEnabled=!0,e.parentToolbar&&(e.parentToolbar.classList.add("md-has-open-menu"),e.$mdUtil.nextTick(function(){be.element(e.parentToolbar).on("click",e.handleParentClick)},!1)),be.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"),be.element(this.parentToolbar).off("click",this.handleParentClick)),be.element(this.getMenus()).off("mouseenter",this.handleMenuHover))},e.prototype.scheduleOpenHoveredMenu=function(e){e=be.element(e.currentTarget).controller("mdMenu");this.setKeyboardMode(!1),this.scheduleOpenMenu(e)},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,r=this.$mdConstant.KEY_CODE,i=this.currentlyOpenMenu,a=i&&i.isOpen;switch(this.setKeyboardMode(!0),e.keyCode){case r.DOWN_ARROW:i?i.focusMenuContainer():this.openFocusedMenu(),t=!0;break;case r.UP_ARROW:i&&i.close(),t=!0;break;case r.LEFT_ARROW:n=this.focusMenu(-1),a&&(o=be.element(n).controller("mdMenu"),this.scheduleOpenMenu(o)),t=!0;break;case r.RIGHT_ARROW:n=this.focusMenu(1),a&&(o=be.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(),o=!1;if(-1==(n=-1==n?this.getOpenMenuIndex():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&&be.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)&&be.element(t).controller("mdMenu").close(!0,{closeAll:!0})}}(),Ie.$inject=["$mdUtil","$mdTheming"],be.module("material.components.menuBar").directive("mdMenuBar",Ie),be.module("material.components.menuBar").directive("mdMenuDivider",function(){return{restrict:"E",compile:function(e,t){t.role||e[0].setAttribute("role","separator")}}}),Oe.$inject=["$scope","$element","$attrs"],be.module("material.components.menuBar").controller("MenuItemController",Oe),Oe.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())},Oe.prototype.clearNgAria=function(){var t=this.$element[0];be.forEach(["role","tabindex","aria-invalid","aria-checked"],function(e){t.removeAttribute(e)})},Oe.prototype.initClickListeners=function(){var e=this,t=this.ngModel,n=this.$scope,o=this.$attrs,r=(this.$element,this.mode);this.handleClick=be.bind(this,this.handleClick);var i=this.iconEl,a=be.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"!=r)return t.$modelValue;var e=o.ngValue?n.$eval(o.ngValue):o.value;return t.$modelValue==e}}()?(i.style.display="none",a.attr("aria-checked","false")):(i.style.display="",a.attr("aria-checked","true"))},n.$$postDigest(t.$render)},Oe.prototype.handleClick=function(e){var t,n=this.mode,o=this.ngModel,r=this.$attrs;"checkbox"==n?t=!o.$modelValue:"radio"==n&&(t=r.ngValue?this.$scope.$eval(r.ngValue):r.value),o.$setViewValue(t),o.$render()},Pe.$inject=["$mdUtil","$mdConstant","$$mdSvgRegistry"],be.module("material.components.menuBar").directive("mdMenuItem",Pe),Le.$inject=["$mdAria","$mdTheming","$window","$mdUtil"],Re.$inject=["$element","$scope","$timeout","$mdConstant"],Fe.$inject=["$mdAria","$$rAF","$mdUtil","$window"],Be.$inject=["$element"],be.module("material.components.navBar",["material.core"]).controller("MdNavBarController",Re).directive("mdNavBar",Le).controller("MdNavItemController",Be).directive("mdNavItem",Fe),Re.prototype._initTabs=function(){this._inkbar=be.element(this._navBarEl.querySelector("md-nav-ink-bar"));var n=this;this._$timeout(function(){n._updateTabs(n.mdSelectedNavItem,null)}),this._$scope.$watch("ctrl.mdSelectedNavItem",function(e,t){n._$timeout(function(){n._updateTabs(e,t)})})},Re.prototype._updateTabs=function(e,t){var n,o,r,i=this,a=this._getTabs(),d=e===t;a&&(n=-1,o=this._getTabByName(e),(r=this._getTabByName(t))&&r.setSelected(!1),o&&(o.setSelected(!0),n=a.indexOf(o)),this._$timeout(function(){i._updateInkBarStyles(o,n),o&&r&&!d&&i._moveFocus(r,o)}))},Re.prototype._updateInkBarStyles=function(e,t){var n;this._inkbar.css({display:t<0?"none":""}),e&&(t=(n=e.getButtonEl()).offsetLeft,e=n.offsetWidth,n=this._navBarEl.getBoundingClientRect().width,this._inkbar.css({transform:"translateX("+t/n*100+"%) scaleX("+e/n+")"}))},Re.prototype.updateSelectedTabInkBar=function(){this._updateInkBarStyles(this._getSelectedTab())},Re.prototype._getTabs=function(){var e=Array.prototype.slice.call(this._navBarEl.querySelectorAll(".md-nav-item")).map(function(e){return be.element(e).controller("mdNavItem")});return e.indexOf(ge)?e:[]},Re.prototype._getTabByName=function(t){return this._findTab(function(e){return e.getName()===t})},Re.prototype._getSelectedTab=function(){return this._findTab(function(e){return e.isSelected()})},Re.prototype.getFocusedTab=function(){return this._findTab(function(e){return e.hasFocus()})},Re.prototype._findTab=function(e,t){for(var n=this._getTabs(),o=t=null==t?0:t;o<n.length;o++)if(e(n[o]))return n[o];return null},Re.prototype._findTabReverse=function(e,t){for(var n=this._getTabs(),o=t=t===ge||null===t?n.length-1:t;0<=o;o--)if(e(n[o]))return n[o];return null},Re.prototype.onFocus=function(){var e=this._getSelectedTab();e&&!e.isFocused&&e.setFocused(!0)},Re.prototype._moveFocus=function(e,t){e.setFocused(!1),t.setFocused(!0)},Re.prototype._focusFirstTab=function(){var e;!this._getTabs()||(e=this._findTab(function(e){return e._isEnabled()}))&&this._moveFocus(this.getFocusedTab(),e)},Re.prototype._focusLastTab=function(){var e;!this._getTabs()||(e=this._findTabReverse(function(e){return e._isEnabled()}))&&this._moveFocus(this.getFocusedTab(),e)},Re.prototype._focusNextTab=function(e){this._getTabs()&&((e=this._findTab(function(e){return e._isEnabled()},e+1))?this._moveFocus(this.getFocusedTab(),e):this._focusFirstTab())},Re.prototype._focusPreviousTab=function(e){this._getTabs()&&((e=this._findTabReverse(function(e){return e._isEnabled()},e-1))?this._moveFocus(this.getFocusedTab(),e):this._focusLastTab())},Re.prototype.onKeydown=function(e){var t=this._$mdConstant.KEY_CODE,n=this._getTabs(),o=this.getFocusedTab();if(o&&n){var r=n.indexOf(o);switch(e.keyCode){case t.UP_ARROW:case t.LEFT_ARROW:e.preventDefault(),this._focusPreviousTab(r);break;case t.DOWN_ARROW:case t.RIGHT_ARROW:e.preventDefault(),this._focusNextTab(r);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()}}},Be.prototype.getNgClassMap=function(){return{"md-active":this._selected,"md-primary":this._selected,"md-unselected":!this._selected,"md-focused":this.isFocused}},Be.prototype.getName=function(){return this.name},Be.prototype.getButtonEl=function(){return this._$element[0].querySelector("._md-nav-button")},Be.prototype.setSelected=function(e){(this._selected=e)?this.getButtonEl().setAttribute("tabindex","0"):this.getButtonEl().setAttribute("tabindex","-1")},Be.prototype.isSelected=function(){return this._selected},Be.prototype.setFocused=function(e){(this.isFocused=e)&&this.getButtonEl().focus()},Be.prototype.hasFocus=function(){return this.isFocused},Be.prototype._isEnabled=function(){return!this._$element.attr("disabled")},function(){s.$inject=["presets","$rootElement","$rootScope","$injector","$window"],be.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 s(a,e,t,n,o)}]}});var i=80,r="_md-panel-hidden",n=be.element('<div class="_md-panel-focus-trap" tabindex="0"></div>'),a={};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(a.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,a[e]=t}function t(){return be.copy(a)}function o(){a={}}function d(e){return e=be.isString(e)?[e]:e}function s(e,t,n,o,r){this._defaultConfigOptions={bindToController:!0,clickOutsideToClose:!1,disableParentScroll:!1,escapeToClose:!1,focusOnOpen:!0,fullscreen:!1,hasBackdrop:!1,propagateContainerEvents:!1,transformTemplate:be.bind(this,this._wrapTemplate),trapFocus:!1,zIndex:i},this._config={},this._presets=e,this._$rootElement=t,this._$rootScope=n,this._$injector=o,this._$window=r,this._$mdUtil=this._$injector.get("$mdUtil"),this._trackedPanels={},this._groups=Object.create(null),this.animation=c.animation,this.xPosition=m.xPosition,this.yPosition=m.yPosition,this.interceptorTypes=l.interceptorTypes,this.closeReasons=l.closeReasons,this.absPosition=m.absPosition}function l(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=ge,this.panelEl=ge,this.innerWrapper=ge,this.isAttached=!1,this._removeListeners=[],this._topFocusTrap=ge,this._bottomFocusTrap=ge,this._backdropRef=ge,this._restoreScroll=null,this._interceptors=Object.create(null),this._compilerCleanup=null,this._restoreCache={styles:"",classes:""}}function m(e){this._$window=e.get("$window"),this._isRTL=e.get("$mdUtil").isRtl(),this._$mdConstant=e.get("$mdConstant"),this._absolute=!1,this._relativeToEl=ge,this._top="",this._bottom="",this._left="",this._right="",this._translateX=[],this._translateY=[],this._positions=[],this._actualPosition=ge}function c(e){this._$mdUtil=e.get("$mdUtil"),this._openFrom,this._closeTo,this._animationClass="",this._openDuration,this._closeDuration,this._rawDuration}function u(e){e=be.isString(e)?document.querySelector(e):e;return be.element(e)}function p(e,t){if(null!==t&&!be.isUndefined(t)){for(var n=Object.keys(e),o=[],r=0;i=n[r];r++){var i=e[i];if(o.push(i),i===t)return}throw new Error("Panel position only accepts the following values:\n"+o.join(" | "))}}function h(e){return be.isNumber(e)?e+"px":e}s.prototype.create=function(e,t){if("string"==typeof e?e=this._getPresetByName(e):"object"!=typeof e||!be.isUndefined(t)&&t||(t=e,e={}),e=e||{},be.isDefined((t=t||{}).id)&&this._trackedPanels[t.id]){var n=this._trackedPanels[t.id];return be.extend(n.config,t),n}this._config=be.extend({id:t.id||"panel_"+this._$mdUtil.nextUid(),scope:this._$rootScope.$new(!0),attachTo:this._$rootElement},this._defaultConfigOptions,t,e);var o=new l(this._config,this._$injector);return this._trackedPanels[this._config.id]=o,this._config.groupName&&(this._config.groupName=d(this._config.groupName),be.forEach(this._config.groupName,function(e){o.addToGroup(e)})),this._config.scope.$on("$destroy",be.bind(o,o.detach)),o},s.prototype.open=function(e,t){var n=this.create(e,t);return n.open().then(function(){return n})},s.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]},s.prototype.newPanelPosition=function(){return new m(this._$injector)},s.prototype.newPanelAnimation=function(){return new c(this._$injector)},s.prototype.newPanelGroup=function(e,t){return this._groups[e]||(this._groups[e]={panels:[],openPanels:[],maxOpen:0<(t=t||{}).maxOpen?t.maxOpen:1/0}),this._groups[e]},s.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},s.prototype._openCountExceedsMaxOpen=function(e){if(this._groups[e]){e=this._groups[e];return 0<e.maxOpen&&e.openPanels.length>e.maxOpen}return!1},s.prototype._closeFirstOpenedPanel=function(e){e=this._groups[e];e&&e.openPanels.length&&e.openPanels[0].close()},s.prototype._wrapTemplate=function(e){return'<div class="md-panel-outer-wrapper"><div class="md-panel-inner-wrapper _md-panel-offscreen"><div class="md-panel _md-panel-offscreen">'+(e||"")+"</div></div></div>"},s.prototype._wrapContentElement=function(e){var t=be.element('<div class="md-panel-outer-wrapper"><div class="md-panel-inner-wrapper _md-panel-offscreen"></div></div>');return e.addClass("md-panel _md-panel-offscreen"),t.children().eq(0).append(e),t},l.interceptorTypes={CLOSE:"onClose"},l.prototype.open=function(){var o=this;return this._$q(function(e,t){var n=o._done(e,o),e=o._simpleBind(o.show,o);o.attach().then(e).then(function(){o.config.groupName&&(o.config.groupName=d(o.config.groupName),be.forEach(o.config.groupName,function(e){o._$mdPanel._openCountExceedsMaxOpen(e)&&o._$mdPanel._closeFirstOpenedPanel(e)}))}).then(n).catch(t)})},l.prototype.close=function(i){var a=this;return this._$q(function(o,r){a._callInterceptors(l.interceptorTypes.CLOSE).then(function(){var e=a._done(o,a),t=a._simpleBind(a.detach,a),n=a.config.onCloseSuccess||be.noop,n=be.bind(a,n,a,i);a.hide().then(t).then(e).then(n).catch(r)},r)})},l.prototype.attach=function(){if(this.isAttached&&this.panelEl)return this._$q.when(this);var o=this;return this._$q(function(e,t){var n=o._done(e,o),e=o.config.onDomAdded||be.noop;o._$q.all([o._createBackdrop(),o._createPanel().then(function(e){return o.isAttached=!0,o._addEventListeners(),e}).catch(t)]).then(e).then(n).catch(t)})},l.prototype.detach=function(){if(!this.isAttached)return this._$q.when(this);var n=this,o=n.config.onDomRemoved||be.noop;return this._restoreScroll&&(this._restoreScroll(),this._restoreScroll=null),this._$q(function(e,t){e=n._done(e,n);n._$q.all([(n._removeEventListeners(),n._topFocusTrap&&n._topFocusTrap.parentNode&&n._topFocusTrap.parentNode.removeChild(n._topFocusTrap),n._bottomFocusTrap&&n._bottomFocusTrap.parentNode&&n._bottomFocusTrap.parentNode.removeChild(n._bottomFocusTrap),n._restoreCache.classes&&(n.panelEl[0].className=n._restoreCache.classes),n.panelEl[0].style.cssText=n._restoreCache.styles||"",n._compilerCleanup(),n.panelContainer.remove(),n.isAttached=!1,n._$q.when(n)),!n._backdropRef||n._backdropRef.detach()]).then(o).then(e).catch(t)})},l.prototype.destroy=function(){var t=this;this.config.groupName&&(this.config.groupName=d(this.config.groupName),be.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=ge},l.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(r))return this._$q.when(this);var o=this;return this._$q(function(e,t){var n=o._done(e,o),e=o.config.onOpenComplete||be.noop;o._$q.all([o._backdropRef?o._backdropRef.show():o,(o.panelContainer.removeClass(r),o._animateOpen().then(function(){o._focusOnOpen()},t))]).then(e).then(function(){o.config.groupName&&(o.config.groupName=d(o.config.groupName),be.forEach(o.config.groupName,function(e){(e=o._$mdPanel._groups[e])&&e.openPanels.push(o)}))}).then(n).catch(t)})},l.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(r))return this._$q.when(this);var o=this;return this._$q(function(e,t){var n=o._done(e,o),e=o.config.onRemoving||be.noop;o._$q.all([o._backdropRef?o._backdropRef.hide():o,o._animateClose().then(e).then(function(){o.panelContainer.addClass(r)}).then(function(){var t;o.config.groupName&&(o.config.groupName=d(o.config.groupName),be.forEach(o.config.groupName,function(e){e=o._$mdPanel._groups[e],-1<(t=e.openPanels.indexOf(o))&&e.openPanels.splice(t,1)}))}).then(function(){var e=o.config.origin;e&&u(e).focus()}).catch(t)]).then(n,t)})},l.prototype._compile=function(){var o=this;return o._$mdCompiler.compile(o.config).then(function(e){var t,n=o.config;return n.contentElement?(t=e.element,o._restoreCache.styles=t[0].style.cssText,o._restoreCache.classes=t[0].className,o.panelContainer=o._$mdPanel._wrapContentElement(t),o.panelEl=t):(o.panelContainer=e.link(n.scope),o.panelEl=be.element(o.panelContainer[0].querySelector(".md-panel"))),o.innerWrapper=be.element(o.panelContainer[0].querySelector(".md-panel-inner-wrapper")),o._compilerCleanup=e.cleanup,u(o.config.attachTo).append(o.panelContainer),o})},l.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,u(n.config.attachTo)),n._configureTrapFocus(),n._addStyles().then(function(){e(n)},t)},t)})},l.prototype._addStyles=function(){var n=this;return this._$q(function(e){n.panelContainer.css("z-index",n.config.zIndex),n.innerWrapper.css("z-index",n.config.zIndex+1);function t(){n._setTheming(),n.panelEl.removeClass("_md-panel-offscreen"),n.innerWrapper.removeClass("_md-panel-offscreen"),n.panelContainer.addClass(r),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()})},l.prototype._setTheming=function(){this._$mdTheming(this.panelEl),this._$mdTheming(this.panelContainer)},l.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()},l.prototype._updatePosition=function(e){var t=this.config.position;t&&(t._setPanelPosition(this.innerWrapper),e&&(this.panelEl.removeClass("_md-panel-offscreen"),this.innerWrapper.removeClass("_md-panel-offscreen"),this.panelContainer.addClass(r)),this.innerWrapper.css(m.absPosition.TOP,t.getTop()),this.innerWrapper.css(m.absPosition.BOTTOM,t.getBottom()),this.innerWrapper.css(m.absPosition.LEFT,t.getLeft()),this.innerWrapper.css(m.absPosition.RIGHT,t.getRight()))},l.prototype._focusOnOpen=function(){var e;this.config.focusOnOpen&&(e=this)._$rootScope.$$postDigest(function(){(e._$mdUtil.findFocusTarget(e.panelEl)||e.panelEl).focus()})},l.prototype._createBackdrop=function(){var e;if(this.config.hasBackdrop&&(this._backdropRef||(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),e={animation:e,attachTo:this.config.attachTo,focusOnOpen:!1,panelClass:"_md-panel-backdrop",zIndex:this.config.zIndex-1},this._backdropRef=this._$mdPanel.create(e)),!this._backdropRef.isAttached))return this._backdropRef.attach()},l.prototype._addEventListeners=function(){this._configureEscapeToClose(),this._configureClickOutsideToClose(),this._configureScrollListener()},l.prototype._removeEventListeners=function(){this._removeListeners&&this._removeListeners.forEach(function(e){e()}),this._removeListeners=[]},l.prototype._configureEscapeToClose=function(){var e,t,n;this.config.escapeToClose&&(e=u(this.config.attachTo),(t=this).panelContainer.on("keydown",n=function(e){e.keyCode===t._$mdConstant.KEY_CODE.ESCAPE&&(e.stopPropagation(),e.preventDefault(),t.close(l.closeReasons.ESCAPE))}),e.on("keydown",n),this._removeListeners.push(function(){t.panelContainer.off("keydown",n),e.off("keydown",n)}))},l.prototype._configureClickOutsideToClose=function(){var t,n,e,o,r;this.config.clickOutsideToClose&&(t=this.config.propagateContainerEvents?be.element(document.body):this.panelContainer,e=function(e){n=e.target},o=this,r=function(e){o.config.propagateContainerEvents?n===o.panelEl[0]||o.panelEl[0].contains(n)||o.close():n===t[0]&&e.target===t[0]&&(e.stopPropagation(),e.preventDefault(),o.close(l.closeReasons.CLICK_OUTSIDE))},t.on("mousedown",e),t.on("mouseup",r),this._removeListeners.push(function(){t.off("mousedown",e),t.off("mouseup",r)}))},l.prototype._configureScrollListener=function(){var e,t,n,o;this.config.disableParentScroll||(e=be.bind(this,this._updatePosition),t=this._$$rAF.throttle(e),(n=this)._$window.addEventListener("scroll",o=function(){t()},!0),this._removeListeners.push(function(){n._$window.removeEventListener("scroll",o,!0)}))},l.prototype._configureTrapFocus=function(){var e,t;this.panelEl.attr("tabIndex","-1"),this.config.trapFocus&&(e=this.panelEl,this._topFocusTrap=n.clone()[0],this._bottomFocusTrap=n.clone()[0],this._topFocusTrap.addEventListener("focus",t=function(){e.focus()}),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))},l.prototype.updateAnimation=function(e){this.config.animation=e,this._backdropRef&&this._backdropRef.config.animation.duration(e._rawDuration)},l.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()})})},l.prototype._animateClose=function(){var n=this,o=this.config.animation;return o?this._$q(function(e){function t(){n.panelContainer.removeClass("md-panel-is-showing"),n.panelEl.css("transform",""),e(n)}o.animateClose(n.panelEl).then(t,function(){n._$log.warn("mdPanel: MdPanel Animations failed. Hiding panel without animating."),t()})}):(this.panelContainer.removeClass("md-panel-is-showing"),this.panelContainer.removeClass("_md-panel-shown"),this._$q.when(this))},l.prototype.registerInterceptor=function(e,t){var n=null;if(be.isString(e)?be.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);e=this._interceptors[e]=this._interceptors[e]||[];return-1===e.indexOf(t)&&e.push(t),this},l.prototype.removeInterceptor=function(e,t){t=this._interceptors[e]?this._interceptors[e].indexOf(t):-1;return-1<t&&this._interceptors[e].splice(t,1),this},l.prototype.removeAllInterceptors=function(e){return e?this._interceptors[e]=[]:this._interceptors=Object.create(null),this},l.prototype._callInterceptors=function(e){var o=this,r=o._$q;return(o._interceptors&&o._interceptors[e]||[]).reduceRight(function(e,t){var n=t&&be.isFunction(t.then)?t:null;return e.then(function(){if(!n)try{n=t(o)}catch(e){n=r.reject(e)}return n})},r.resolve(o))},l.prototype._simpleBind=function(t,n){return function(e){return t.apply(n,e)}},l.prototype._done=function(e,t){return function(){e(t)}},l.prototype.addToGroup=function(e){this._$mdPanel._groups[e]||this._$mdPanel.newPanelGroup(e);e=this._$mdPanel._groups[e];e.panels.indexOf(this)<0&&e.panels.push(this)},l.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],e=t.panels.indexOf(this);-1<e&&t.panels.splice(e,1)},l.closeReasons={CLICK_OUTSIDE:"clickOutsideToClose",ESCAPE:"escapeToClose"},m.xPosition={CENTER:"center",ALIGN_START:"align-start",ALIGN_END:"align-end",OFFSET_START:"offset-start",OFFSET_END:"offset-end"},m.yPosition={CENTER:"center",ALIGN_TOPS:"align-tops",ALIGN_BOTTOMS:"align-bottoms",ABOVE:"above",BELOW:"below"},m.absPosition={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},m.viewportMargin=8,m.prototype.absolute=function(){return this._absolute=!0,this},m.prototype._setPosition=function(e,t){if(e===m.absPosition.RIGHT||e===m.absPosition.LEFT)this._left=this._right="";else{if(e!==m.absPosition.BOTTOM&&e!==m.absPosition.TOP){var n=Object.keys(m.absPosition).join().toLowerCase();throw new Error("mdPanel: Position must be one of "+n+".")}this._top=this._bottom=""}return this["_"+e]=be.isString(t)?t:"0",this},m.prototype.top=function(e){return this._setPosition(m.absPosition.TOP,e)},m.prototype.bottom=function(e){return this._setPosition(m.absPosition.BOTTOM,e)},m.prototype.start=function(e){var t=this._isRTL?m.absPosition.RIGHT:m.absPosition.LEFT;return this._setPosition(t,e)},m.prototype.end=function(e){var t=this._isRTL?m.absPosition.LEFT:m.absPosition.RIGHT;return this._setPosition(t,e)},m.prototype.left=function(e){return this._setPosition(m.absPosition.LEFT,e)},m.prototype.right=function(e){return this._setPosition(m.absPosition.RIGHT,e)},m.prototype.centerHorizontally=function(){return this._left="50%",this._right="",this._translateX=["-50%"],this},m.prototype.centerVertically=function(){return this._top="50%",this._bottom="",this._translateY=["-50%"],this},m.prototype.center=function(){return this.centerHorizontally().centerVertically()},m.prototype.relativeTo=function(e){return this._absolute=!1,this._relativeToEl=u(e),this},m.prototype.addPanelPosition=function(e,t){if(!this._relativeToEl)throw new Error("mdPanel: addPanelPosition can only be used with relative positioning. Set relativeTo first.");return p(m.xPosition,e),p(m.yPosition,t),this._positions.push({x:e,y:t}),this},m.prototype.withOffsetX=function(e){return this._translateX.push(h(e)),this},m.prototype.withOffsetY=function(e){return this._translateY.push(h(e)),this},m.prototype.getTop=function(){return this._top},m.prototype.getBottom=function(){return this._bottom},m.prototype.getLeft=function(){return this._left},m.prototype.getRight=function(){return this._right},m.prototype.getTransform=function(){return(this._reduceTranslateValues("translateX",this._translateX)+" "+this._reduceTranslateValues("translateY",this._translateY)).trim()},m.prototype._setTransform=function(e){return e.css(this._$mdConstant.CSS.TRANSFORM,this.getTransform())},m.prototype._isOnscreen=function(e){var t=parseInt(this.getLeft()),n=parseInt(this.getTop());(this._translateX.length||this._translateY.length)&&(t+=(o=function(e,t){var n=getComputedStyle(e[0]||e)[t],o=n.indexOf("("),e=n.lastIndexOf(")"),t={x:0,y:0};-1<o&&-1<e&&(e=n.substring(o+1,e).split(", ").slice(-2),t.x=parseInt(e[0]),t.y=parseInt(e[1]));return t}(e,this._$mdConstant.CSS.TRANSFORM)).x,n+=o.y);var o=t+e[0].offsetWidth,e=n+e[0].offsetHeight;return 0<=t&&0<=n&&e<=this._$window.innerHeight&&o<=this._$window.innerWidth},m.prototype.getActualPosition=function(){return this._actualPosition},m.prototype._reduceTranslateValues=function(t,e){return e.map(function(e){e=be.isFunction(e)?h(e(this)):e;return t+"("+e+")"},this).join(" ")},m.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)}},m.prototype._constrainToViewport=function(e){var t,n,o,r=m.viewportMargin,i=this._top,a=this._left;this.getTop()&&(t=parseInt(this.getTop()),n=e[0].offsetHeight+t,o=this._$window.innerHeight,t<r?this._top=r+"px":o<n&&(this._top=t-(n-o+r)+"px")),this.getLeft()&&(t=parseInt(this.getLeft()),n=e[0].offsetWidth+t,o=this._$window.innerWidth,t<r?this._left=r+"px":o<n&&(this._left=t-(n-o+r)+"px")),e.toggleClass("_md-panel-position-adjusted",this._top!==i||this._left!==a)},m.prototype._reverseXPosition=function(e){if(e===m.xPosition.CENTER)return e;return-1<e.indexOf("start")?e.replace("start","end"):e.replace("end","start")},m.prototype._bidi=function(e){return this._isRTL?this._reverseXPosition(e):e},m.prototype._calculatePanelPosition=function(e,t){var n=e[0].getBoundingClientRect(),o=Math.max(n.width,e[0].clientWidth),r=Math.max(n.height,e[0].clientHeight),e=this._relativeToEl[0].getBoundingClientRect(),i=e.left,a=e.right,d=e.width;switch(this._bidi(t.x)){case m.xPosition.OFFSET_START:this._left=i-o+"px";break;case m.xPosition.ALIGN_END:this._left=a-o+"px";break;case m.xPosition.CENTER:this._left=i+.5*d-.5*o+"px";break;case m.xPosition.ALIGN_START:this._left=i+"px";break;case m.xPosition.OFFSET_END:this._left=a+"px"}var s=e.top,l=e.bottom,c=e.height;switch(t.y){case m.yPosition.ABOVE:this._top=s-r+"px";break;case m.yPosition.ALIGN_BOTTOMS:this._top=l-r+"px";break;case m.yPosition.CENTER:this._top=s+.5*c-.5*r+"px";break;case m.yPosition.ALIGN_TOPS:this._top=s+"px";break;case m.yPosition.BELOW:this._top=l+"px"}},c.animation={SLIDE:"md-panel-animate-slide",SCALE:"md-panel-animate-scale",FADE:"md-panel-animate-fade"},c.prototype.openFrom=function(e){return e=e.target||e,this._openFrom=this._getPanelAnimationTarget(e),this._closeTo||(this._closeTo=this._openFrom),this},c.prototype.closeTo=function(e){return this._closeTo=this._getPanelAnimationTarget(e),this},c.prototype.duration=function(e){return e&&(be.isNumber(e)?this._openDuration=this._closeDuration=t(e):be.isObject(e)&&(this._openDuration=t(e.open),this._closeDuration=t(e.close))),this._rawDuration=e,this;function t(e){if(be.isNumber(e))return e/1e3}},c.prototype._getPanelAnimationTarget=function(e){return be.isDefined(e.top)||be.isDefined(e.left)?{element:ge,bounds:{top:e.top||0,left:e.left||0}}:this._getBoundingClientRect(u(e))},c.prototype.withAnimation=function(e){return this._animationClass=e,this},c.prototype.animateOpen=function(e){var t=this._$mdUtil.dom.animator;this._fixBounds(e);var n={},o=e[0].style.transform||"",r=t.toTransformCss(o),i=t.toTransformCss(o);switch(this._animationClass){case c.animation.SLIDE:e.css("opacity","1");var n={transitionInClass:"_md-panel-animate-enter",transitionOutClass:"_md-panel-animate-leave"},a=t.calculateSlideToOrigin(e,this._openFrom)||"",r=t.toTransformCss(a+" "+o);break;case c.animation.SCALE:n={transitionInClass:"_md-panel-animate-enter"};a=t.calculateZoomToOrigin(e,this._openFrom)||"";r=t.toTransformCss(o+" "+a);break;case c.animation.FADE:n={transitionInClass:"_md-panel-animate-enter"};break;default:n=be.isString(this._animationClass)?{transitionInClass:this._animationClass}:{transitionInClass:this._animationClass.open,transitionOutClass:this._animationClass.close}}return n.duration=this._openDuration,t.translate3d(e,r,i,n)},c.prototype.animateClose=function(e){var t=this._$mdUtil.dom.animator,n={},o=e[0].style.transform||"",r=t.toTransformCss(o),i=t.toTransformCss(o);switch(this._animationClass){case c.animation.SLIDE:e.css("opacity","1");var n={transitionInClass:"_md-panel-animate-leave",transitionOutClass:"_md-panel-animate-enter _md-panel-animate-leave"},a=t.calculateSlideToOrigin(e,this._closeTo)||"",i=t.toTransformCss(a+" "+o);break;case c.animation.SCALE:n={transitionInClass:"_md-panel-animate-scale-out _md-panel-animate-leave",transitionOutClass:"_md-panel-animate-scale-out _md-panel-animate-enter _md-panel-animate-leave"};a=t.calculateZoomToOrigin(e,this._closeTo)||"";i=t.toTransformCss(o+" "+a);break;case c.animation.FADE:n={transitionInClass:"_md-panel-animate-fade-out _md-panel-animate-leave",transitionOutClass:"_md-panel-animate-fade-out _md-panel-animate-enter _md-panel-animate-leave"};break;default:n=be.isString(this._animationClass)?{transitionOutClass:this._animationClass}:{transitionInClass:this._animationClass.close,transitionOutClass:this._animationClass.open}}return n.duration=this._closeDuration,t.translate3d(e,r,i,n)},c.prototype._fixBounds=function(e){var t=e[0].offsetWidth,e=e[0].offsetHeight;this._openFrom&&null==this._openFrom.bounds.height&&(this._openFrom.bounds.height=e),this._openFrom&&null==this._openFrom.bounds.width&&(this._openFrom.bounds.width=t),this._closeTo&&null==this._closeTo.bounds.height&&(this._closeTo.bounds.height=e),this._closeTo&&null==this._closeTo.bounds.width&&(this._closeTo.bounds.width=t)},c.prototype._getBoundingClientRect=function(e){if(e instanceof be.element)return{element:e,bounds:e[0].getBoundingClientRect()}}}(),be.module("material.components.progressCircular",["material.core"]),Ue.$inject=["$window","$mdProgressCircular","$mdTheming","$mdUtil","$interval","$log"],be.module("material.components.progressCircular").directive("mdProgressCircular",Ue),be.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=be.extend(t,e||{})},$get:function(){return t}};function e(e,t,n,o){return n*e/o+t}function n(e,t,n,o){o=(e/=o)*e,e*=o;return t+n*(6*e*o+-15*o*o+10*e)}}),je.$inject=["$mdTheming","$mdUtil","$log"],be.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",je),function(){e.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"],t.$inject=["$mdAria","$mdUtil","$mdTheming"],be.module("material.components.radioButton",["material.core"]).directive("mdRadioGroup",e).directive("mdRadioButton",t);var r=Object.freeze({PREVIOUS:-1,CURRENT:0,NEXT:1});function e(a,d,s,l){return e.prototype={init:function(e){this._ngModelCtrl=e,this._ngModelCtrl.$render=be.bind(this,this.render)},add:function(e){this._radioButtonRenderFns.push(e)},remove:function(e){e=this._radioButtonRenderFns.indexOf(e);-1!==e&&this._radioButtonRenderFns.splice(e,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},selectCurrent:function(){return t(this.$element,r.CURRENT)},selectNext:function(){return t(this.$element,r.NEXT)},selectPrevious:function(){return t(this.$element,r.PREVIOUS)},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(e,o,t,n){o.addClass("_md"),s(o);var r=n[0],n=n[1]||a.fakeNgModel();function i(){o.hasClass("md-focused")||o.addClass("md-focused")}r.init(n),e.mouseActive=!1,o.attr({role:"radiogroup",tabIndex:o.attr("tabindex")||"0"}).on("keydown",function(e){var t=e.which||e.keyCode;if(t===d.KEY_CODE.ENTER||e.currentTarget===e.target)switch(t){case d.KEY_CODE.LEFT_ARROW:case d.KEY_CODE.UP_ARROW:e.preventDefault(),r.selectPrevious(),i();break;case d.KEY_CODE.RIGHT_ARROW:case d.KEY_CODE.DOWN_ARROW:e.preventDefault(),r.selectNext(),i();break;case d.KEY_CODE.SPACE:e.preventDefault(),r.selectCurrent();break;case d.KEY_CODE.ENTER:var n=be.element(a.getClosest(o[0],"form"));0<n.length&&n.triggerHandler("submit")}}).on("mousedown",function(){e.mouseActive=!0,l(function(){e.mouseActive=!1},100)}).on("focus",function(){!1===e.mouseActive&&r.$element.addClass("md-focused")}).on("blur",function(){r.$element.removeClass("md-focused")}),a.nextTick(function(){var e=c(r.$element);e.count()&&!r.$element[0].hasAttribute("aria-activedescendant")&&r.setActiveDescendant(e.first().id)})}}};function e(e){this._radioButtonRenderFns=[],this.$element=e}function c(e){return a.iterator(e[0].querySelectorAll("md-radio-button"),!0)}function t(e,t){var n,o=c(e);o.count()&&((e=e[0].querySelector("md-radio-button.md-checked"))?t!==r.PREVIOUS&&t!==r.NEXT||(n=o[t===r.PREVIOUS?"previous":"next"](e,function(e){return!be.element(e).attr("disabled")})):n=o.first(),n&&be.element(n).triggerHandler("click"))}}function t(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,r){var i;c(n),function(e){e.attr({id:o.id||"radio_"+l.nextUid(),role:"radio","aria-checked":"false"}),s.expectWithText(e,"aria-label")}(n),n.addClass("md-auto-horizontal-margin"),o.ngValue?l.nextTick(e,!1):e();function e(){if(!r)throw"RadioButton: No RadioGroupController could be found.";r.add(d),o.$observe("value",d),n.on("click",a).on("$destroy",function(){r.remove(d)})}function a(e){n[0].hasAttribute("disabled")||r.isDisabled()||t.$apply(function(){r.setViewValue(o.value,e&&e.type)})}function d(){var e=r.getViewValue()==o.value;e!==i&&(n[0]&&n[0].parentNode&&"md-radio-group"!==n[0].parentNode.nodeName.toLowerCase()&&n.parent().toggleClass(m,e),e&&r.setActiveDescendant(n.attr("id")),i=e,n.attr("aria-checked",e).toggleClass(m,e))}}}}}(),function(){e.$inject=["$mdSelect","$mdUtil","$mdConstant","$mdTheming","$mdAria","$parse","$sce"],t.$inject=["$parse","$mdUtil","$mdConstant","$mdTheming"],n.$inject=["$mdButtonInkRipple","$mdUtil","$mdTheming"],o.$inject=["$$interimElementProvider"],i.$inject=["$element"];var M=8,b=0,c=be.element('<div class="md-container"><div class="md-icon"></div></div>');function e(H,I,O,P,L,R,F){return{restrict:"E",require:["^?mdInputContainer","mdSelect","ngModel","?^form"],compile:function(e,t){var n=I.parseAttributeBoolean(t.multiple);e.addClass("md-auto-horizontal-margin");var o=be.element("<md-select-value><span></span></md-select-value>");o.append('<span class="md-select-icon" aria-hidden="true"></span>'),o.addClass("md-select-value"),o[0].hasAttribute("id")||o.attr("id","select_value_label_"+I.nextUid());var r=e.find("md-content");r.length||(e.append(be.element("<md-content>").append(e.contents())),r=e.find("md-content"));r.attr("role","listbox"),r.attr("tabindex","-1"),n?r.attr("aria-multiselectable","true"):r.attr("aria-multiselectable","false");t.mdOnOpen&&(e.find("md-content").prepend(be.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"));{var i;t.name&&((i=be.element('<select class="md-visually-hidden"></select>')).attr({name:t.name,"aria-hidden":"true",tabindex:"-1"}),a=e.find("md-option"),be.forEach(a,function(e){var t=be.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 r=n?"multiple":"",a=t.ngModelOptions?I.supplant('ng-model-options="{0}"',[t.ngModelOptions]):"",n='<div class="md-select-menu-container" aria-hidden="true" role="presentation"> <md-select-menu role="presentation" {0} {1}>{2}</md-select-menu></div>';n=I.supplant('<div class="md-select-menu-container" aria-hidden="true" role="presentation"> <md-select-menu role="presentation" {0} {1}>{2}</md-select-menu></div>',[r,a,e.html()]),e.empty().append(o),e.append(n),t.tabindex||t.$set("tabindex",0);return function(r,i,a,e){var t,n,o,d,s,l,c=!0,m=e[0],u=e[1],p=e[2],h=e[3],f=i.find("md-select-value"),b=be.isDefined(a.readonly),g=I.parseAttributeBoolean(a.mdNoAsterisk),E=be.isDefined(a.ariaLabelledby),v=i.find("md-content"),$=i.attr("placeholder");if(g&&i.addClass("md-no-asterisk"),m){var M=m.isErrorGetter||function(){return p.$invalid&&(p.$touched||h&&h.$submitted)};if(m.input&&i.find("md-select-header").find("input")[0]!==m.input[0])throw new Error("<md-input-container> can only have *one* child <input>, <textarea>, or <select> element!");m.input=i,m.label?(m.label.attr("aria-hidden","true"),v.attr("aria-label",m.label.text()),m.setHasPlaceholder(!!$)):(L.expect(i,"aria-label",$),e=(e=i.attr("aria-label"))||$,v.attr("aria-label",e));var y=r.$watch(M,m.setInvalid)}l=be.element(i[0].querySelector(".md-select-menu-container")),d=r,a.mdContainerClass&&l.addClass(a.mdContainerClass),(s=l.find("md-select-menu").controller("mdSelectMenu")).init(p,a),i.on("$destroy",function(){l.remove()}),o=l,P(i);var C=p.$render;p.$render=function(){C(),_(),N()};var T=a.$observe("placeholder",p.$render),A=a.$observe("required",function(e){m&&m.label&&m.label.toggleClass("md-required",e&&!g),i.removeAttr("aria-required"),e?v.attr("aria-required","true"):v.removeAttr("aria-required")});u.setSelectValueText=function(e){var t=e===ge||""===e,n=!1;if(u.setIsPlaceholder(!e),a.mdSelectedText&&a.mdSelectedHtml)throw Error("md-select cannot have both `md-selected-text` and `md-selected-html`");a.mdSelectedText||a.mdSelectedHtml?(e=R(a.mdSelectedText||a.mdSelectedHtml)(r),n=!0):t&&(e=a.placeholder||(m&&m.label?m.label.text():"")||"",n=!0);var o=f.children().eq(0);a.mdSelectedHtml?o.html(F.getTrustedHtml(e)):n?o.text(e):o.html(e),t?(f.attr("aria-hidden","true"),E||i.removeAttr("aria-labelledby")):(f.removeAttr("aria-hidden"),E||i.attr("aria-labelledby",i[0].id+" "+f[0].id))},u.setIsPlaceholder=function(e){e?(f.addClass("md-select-placeholder"),m&&m.label&&!i.attr("placeholder")&&m.label.addClass("md-placeholder")):(f.removeClass("md-select-placeholder"),m&&m.label&&!i.attr("placeholder")&&m.label.removeClass("md-placeholder"))},b||(i.on("focus",function(){m&&m.setFocused(!0)}),i.on("blur",function(e){c&&(c=!1,d._mdSelectIsOpen&&e.stopImmediatePropagation()),m&&m.setFocused(!1),N()})),u.triggerClose=function(){R(a.mdOnClose)(r)},r.$$postDigest(function(){!function(){var e=i.attr("aria-label")||i.attr("placeholder");!e&&m&&m.label&&(e=m.label.text());L.expect(i,"aria-label",e)}(),_()});var w=r.$watch(function(){return s.getSelectedLabels()},_);function _(){s=s||o.find("md-select-menu").controller("mdSelectMenu"),u.setSelectValueText(s.getSelectedLabels())}var k=a.$observe("mdMultiple",function(e){n&&n();var t=R(e);n=r.$watch(function(){return t(r)},function(e,t){var n=o.find("md-select-menu");e===ge&&t===ge||(e?(i.attr(t={multiple:"multiple"}),n.attr(t)):(i.removeAttr("multiple"),n.removeAttr("multiple")),i.find("md-content").attr("aria-multiselectable",e?"true":"false"),o&&(s.setMultiple(Boolean(e)),C=p.$render,p.$render=function(){C(),_(),N()},p.$render()))})}),x=a.$observe("disabled",function(e){be.isString(e)&&(e=!0),t!==ge&&t===e||((t=e)?i.attr({"aria-disabled":"true"}).removeAttr("tabindex").removeAttr("aria-expanded").removeAttr("aria-haspopup").off("click",D).off("keydown",S):i.attr({tabindex:a.tabindex,"aria-haspopup":"listbox"}).removeAttr("aria-disabled").on("click",D).on("keydown",S))});a.hasOwnProperty("disabled")||a.hasOwnProperty("ngDisabled")||(i.attr({"aria-disabled":"false"}),i.on("click",D),i.on("keydown",S));M={role:"button","aria-haspopup":"listbox"};i[0].hasAttribute("id")||(M.id="select_"+I.nextUid());b="select_container_"+I.nextUid();o.attr("id",b);b="select_listbox_"+I.nextUid();function N(){I.nextTick(function(){m&&m.setHasValue(0<s.getSelectedLabels().length||(i[0].validity||{}).badInput)})}function S(e){O.isNavigationKey(e)?(e.preventDefault(),D()):B(e,O)&&(e.preventDefault(),(e=s.optNodeForKeyboardSearch(e))&&!e.hasAttribute("disabled")&&(e=be.element(e).controller("mdOption"),s.isMultiple||be.forEach(Object.keys(s.selected),function(e){s.deselect(e)}),s.select(e.hashKey,e.value),s.refreshViewValue()))}function D(){d._mdSelectIsOpen=!0,i.attr("aria-expanded","true"),H.show({scope:d,preserveScope:!0,skipCompile:!0,element:o,target:i[0],selectCtrl:u,preserveElement:!0,hasBackdrop:!0,loadingAsync:!!a.mdOnOpen&&(r.$eval(a.mdOnOpen)||!0)}).finally(function(){d._mdSelectIsOpen=!1,i.removeAttr("aria-expanded"),i.removeAttr("aria-activedescendant"),p.$setTouched()})}o.find("md-content").attr("id",b),i.find("md-select-menu").length||(M["aria-owns"]=b),i.attr(M),r.$on("$destroy",function(){A&&A(),x&&x(),n&&n(),k&&k(),w&&w(),T&&T(),y&&y(),i.off("focus"),i.off("blur"),H.destroy().finally(function(){m&&(m.setFocused(!1),m.setHasValue(!1),m.input=null),p.$setTouched()})})}},controller:function(){}}}function t(h,f,e,r){return{restrict:"E",require:["mdSelectMenu"],scope:!(t.$inject=["$scope","$attrs","$element"]),controller:t,link:{pre:function(i,e,t,n){var a=n[0];function o(e){var t,n,o=f.getClosest(e.target,"md-option"),r=o&&be.element(o).data("$mdOptionController");o&&r?o.hasAttribute("disabled")?e.stopImmediatePropagation():(t=a.hashGetter(r.value),n=be.isDefined(a.selected[t]),i.$apply(function(){a.isMultiple?n?a.deselect(t):a.select(t,r.value):n||(be.forEach(Object.keys(a.selected),function(e){a.deselect(e)}),a.select(t,r.value)),a.refreshViewValue()})):e.target&&e.target.parentNode&&"MD-SELECT-HEADER"===e.target.parentNode.tagName&&e.stopImmediatePropagation()}e.addClass("_md"),r(e),e.on("click",o),e.on("keypress",function(e){13!==e.keyCode&&32!==e.keyCode||o(e)})}}};function t(i,o,r){var a,d,s,l,c=this,m="";function u(){var e,t,n=c.ngModel.$modelValue||c.ngModel.$viewValue||[];be.isArray(n)&&(e=Object.keys(c.selected),t=n.map(c.hashGetter),e.filter(function(e){return-1===t.indexOf(e)}).forEach(c.deselect),t.forEach(function(e,t){c.select(e,n[t])}))}function p(){var e=c.ngModel.$viewValue||c.ngModel.$modelValue;Object.keys(c.selected).forEach(c.deselect),c.select(c.hashGetter(e),e)}c.isMultiple=be.isDefined(o.multiple),c.selected={},c.options={},i.$watchCollection(function(){return c.options},function(){c.ngModel.$render(),function(){var e,t;if(r.find("md-optgroup").length)for(t=r.find("md-option"),e=0;e<t.length;e++)t[e].setAttribute("aria-setsize",t.length),t[e].setAttribute("aria-posinset",e+1)}()}),c.setMultiple=function(e){var t,n,o=c.ngModel;function r(e,t){return be.isArray(e||t||[])}a=a||o.$isEmpty,c.isMultiple=e,c.isMultiple?(t=!1,n=function(e){t?u():f.nextTick(function(){u(),t=!0})},o.$validators["md-multiple"]=r,o.$render=n,i.$watchCollection(c.modelBinding,function(e){r(e)&&n()}),o.$isEmpty=function(e){return!e||0===e.length}):(delete o.$validators["md-multiple"],o.$render=p)},c.optNodeForKeyboardSearch=function(e){var t,n;for(d&&clearTimeout(d),d=setTimeout(function(){m="",s=l=d=ge},300),m+=e.key,t=new RegExp("^"+f.sanitize(m),"i"),s||(s=r.find("md-option"),l=new Array(s.length),be.forEach(s,function(e,t){l[t]=e.textContent.trim()})),n=0;n<l.length;++n)if(t.test(l[n]))return s[n]},c.init=function(e,t){function n(e){return be.isObject(e)&&!be.isArray(e)?"object_"+(e.$$mdSelectId||(e.$$mdSelectId=++b)):e+""}c.ngModel=e,c.modelBinding=t.ngModel,c.ngModel.$isEmpty=function(e){e=c.options[c.hashGetter(e)]?c.options[c.hashGetter(e)].value:null;return!be.isDefined(e)||null===e||""===e||e!=e},o.ngModelOptions?c.hashGetter=function(e){var t=h(o.ngModelOptions)(i),t=t&&t.trackBy;return t?h(t)(i,{$value:e}):be.isObject(e)?n(e):e}:c.hashGetter=n,c.setMultiple(c.isMultiple),t.hasOwnProperty("mdSelectOnlyOption")&&f.nextTick(function(){var e=Object.keys(c.options);1===e.length&&(e=c.options[e[0]],c.deselect(Object.keys(c.selected)[0]),c.select(c.hashGetter(e.value),e.value),c.refreshViewValue(),c.ngModel.$setPristine())},!1)},c.setActiveDescendant=function(e){be.isDefined(e)?r.find("md-content").attr("aria-activedescendant",e):r.find("md-content").removeAttr("aria-activedescendant")},c.getSelectedLabels=function(e){var t,n=(e=e||{}).mode||"html",e=f.nodesToArray(r[0].querySelectorAll("md-option[selected]"));return e.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,""));e=e.querySelector(".md-container");return t=e?t.replace(e.outerHTML,""):t}:"aria"===n&&(t=function(e){return e.hasAttribute("aria-label")?e.getAttribute("aria-label"):e.textContent}),f.uniq(e.map(t)).join(", ")):""},c.select=function(e,t){var n=c.options[e];n&&n.setSelected(!0,c.isMultiple),c.selected[e]=t},c.deselect=function(e){var t=c.options[e];t&&t.setSelected(!1,c.isMultiple),delete c.selected[e]},c.addOption=function(e,t){if(be.isDefined(c.options[e]))throw new Error('Duplicate md-option values are not allowed in a select. Duplicate value "'+t.value+'" found.');c.options[e]=t,be.isDefined(c.selected[e])&&(c.select(e,t.value),be.isDefined(c.ngModel.$$rawModelValue)&&c.hashGetter(c.ngModel.$$rawModelValue)===e&&c.ngModel.$validate(),c.refreshViewValue())},c.removeOption=function(e){delete c.options[e]},c.refreshViewValue=function(){var e,t,n=[];for(t in c.selected)(e=c.options[t])?n.push(e.value):n.push(c.selected[t]);var o=c.isMultiple?n:n[0];!function(e,t){{if(c.isMultiple){if(be.isArray(e)){if(e.length!==t.length)return!1;var n=e.map(function(e){return c.hashGetter(e)});return t.every(function(e){var t=c.hashGetter(e);return n.some(function(e){return e===t})})}return!1}return c.hashGetter(e)===c.hashGetter(t)}}(c.ngModel.$modelValue,o)&&(c.ngModel.$setViewValue(o),c.ngModel.$render())}}}function n(o,r,l){return{restrict:"E",require:["mdOption","^^mdSelectMenu"],controller:i,compile:function(e,t){e.append(be.element('<div class="md-text">').append(e.contents())),e.attr("tabindex",t.tabindex||"0"),function(e){var t=e.value,e=e.ngValue;return t||e}(t)||e.attr("md-option-empty","");return n}};function n(i,n,e,t){var a=t[0],d=t[1];function s(e,t,n){var o,r;d.hashGetter?(o=d.hashGetter(t,i),r=d.hashGetter(e,i),a.hashKey=r,a.value=e,d.removeOption(o,a),d.addOption(r,a)):n||i.$$postDigest(function(){s(e,t,!0)})}l(n),d.isMultiple&&(n.addClass("md-checkbox-enabled"),n.prepend(c.clone())),be.isDefined(e.ngValue)?i.$watch(e.ngValue,function(e,t){s(e,t),n.removeAttr("aria-checked")}):be.isDefined(e.value)?s(e.value):i.$watch(function(){return n.text().trim()},s),e.$observe("disabled",function(e){e?n.attr("tabindex","-1"):n.attr("tabindex","0")}),i.$$postDigest(function(){e.$observe("selected",function(e){be.isDefined(e)&&((e="string"==typeof 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(i,n),function(){var e={role:"option"};d.isMultiple&&(e["aria-selected"]="false");n[0].hasAttribute("id")||(e.id="select_option_"+r.nextUid());n.attr(e)}(),i.$on("$destroy",function(){d.removeOption(a.hashKey,a)})}}function i(n){this.setSelected=function(e,t){e?n.attr({selected:"true","aria-selected":"true"}):(n.removeAttr("selected"),t?n.attr("aria-selected","false"):n.removeAttr("aria-selected"))}}function o(e){return t.$inject=["$mdSelect","$mdConstant","$mdUtil","$window","$q","$$rAF","$animateCss","$animate","$document"],e("$mdSelect").setDefaults({methods:["target"],options:t});function t(l,c,g,E,t,e,m,n,v){var i=g.dom.animator,u=c.KEY_CODE;return{parent:"body",themable:!0,onShow:function(o,a,d){return void(d.loadingAsync&&!d.isRemoved&&(o.$$loadingAsyncDone=!1,t.when(d.loadingAsync).then(function(){o.$$loadingAsyncDone=!0,delete d.loadingAsync}).then(function(){e(r)}))),function(e){var t=a.find("md-select-menu");if(!e.target)throw new Error(g.supplant("$mdSelect.show() expected a target element in options.target but got '{0}'!",[e.target]));be.extend(e,{isRemoved:!1,target:be.element(e.target),parent:be.element(e.parent),selectEl:t,contentEl:a.find("md-content"),optionNodes:t[0].getElementsByTagName("md-option")})}(d),d.hideBackdrop=function(e,t){t.disableParentScroll&&!g.getClosest(t.target,"MD-DIALOG")?t.restoreScroll=g.disableScrollAround(t.element,t.parent):t.disableParentScroll=!1;t.hasBackdrop&&(t.backdrop=g.createBackdrop(e,"md-select-backdrop md-click-catcher"),n.enter(t.backdrop,v[0].body,null,{duration:0}));return function(){t.backdrop&&t.backdrop.remove(),t.disableParentScroll&&t.restoreScroll(),delete t.restoreScroll}}(o,d),function(n,e){e.parent!==n.parent()&&n.parent().attr("aria-owns",n.find("md-content").attr("id"));return e.parent.append(n),t(function(e,t){try{m(n,{removeClass:"md-leave",duration:0}).start().then(r).then(e)}catch(e){t(e)}})}(a,d).then(function(e){var t,n;return a.attr("aria-hidden","false"),d.alreadyOpen=!0,d.cleanupInteraction=function(){if(!d.isRemoved){var o=d.selectEl,i=o.controller("mdSelectMenu")||{};return a.addClass("md-clickable"),d.backdrop&&d.backdrop.on("click",e),o.on("keydown",t),o.on("click",r),function(){d.backdrop&&d.backdrop.off("click",e),o.off("keydown",t),o.off("click",r),a.removeClass("md-clickable"),d.isRemoved=!0}}function e(e){e.preventDefault(),e.stopPropagation(),d.restoreFocus=!1,g.nextTick(l.hide,!0)}function t(e){switch(e.preventDefault(),e.stopPropagation(),e.keyCode){case u.UP_ARROW:return void n("prev");case u.DOWN_ARROW:return void n("next");case u.SPACE:case u.ENTER:d.focusedNode&&(o.triggerHandler({type:"click",target:d.focusedNode}),e.preventDefault()),r(e);break;case u.TAB:case u.ESCAPE:e.stopPropagation(),e.preventDefault(),d.restoreFocus=!0,g.nextTick(l.hide,!0);break;default:var t;!B(e,c)||(t=i.optNodeForKeyboardSearch(e))&&!t.hasAttribute("disabled")&&s(d.focusedNode,t,i)}}function n(e){for(var t,n=g.nodesToArray(d.optionNodes),o=n.indexOf(d.focusedNode),r=n[o];-1===o?o=0:"next"===e&&o<n.length-1?o++:"prev"===e&&0<o&&o--,!(t=(t=n[o]).hasAttribute("disabled")?null:t)&&o<n.length-1&&0<o;);s(r,t,i)}function r(n){n&&"click"===n.type&&n.currentTarget!==o[0]||function(){var e=!1;{var t;n&&0<n.currentTarget.children.length&&((t=n.currentTarget.children[0]).scrollHeight>t.clientHeight&&0<t.children.length&&n.pageX-n.currentTarget.getBoundingClientRect().left>t.querySelector("md-option").offsetWidth&&(e=!0))}return e}()||d.focusedNode&&d.focusedNode.hasAttribute&&!d.focusedNode.hasAttribute("disabled")&&(n.preventDefault(),n.stopPropagation(),i.isMultiple||(d.restoreFocus=!0,g.nextTick(function(){l.hide(i.ngModel.$viewValue),d.focusedNode.classList.remove("md-focused")},!0)))}}(),d.cleanupResizing=(t=function(e,n,o){return function(){var e,t;o.isRemoved||(e=(t=p(0,n,o)).container,t=t.dropDown,e.element.css(i.toCss(e.styles)),t.element.css(i.toCss(t.styles)))}}(o,a,d),(n=be.element(E)).on("resize",t),n.on("orientationchange",t),function(){n.off("resize",t),n.off("orientationchange",t)}),d.contentEl[0].focus(),e},d.hideBackdrop);function r(){return t(function(n){if(d.isRemoved)return t.reject(!1);var o=p(0,a,d);o.container.element.css(i.toCss(o.container.styles)),o.dropDown.element.css(i.toCss(o.dropDown.styles)),e(function(){var e,t;a.addClass("md-active"),o.dropDown.element.css(i.toCss({transform:""})),(e=d.focusedNode)&&!e.hasAttribute("disabled")&&(t=d.selectEl.controller("mdSelectMenu"),s(null,e,t)),n()})})}function s(e,t,n){var o=d.contentEl[0];t&&(e&&e.classList.remove("md-focused"),t.classList.add("md-focused"),n&&n.setActiveDescendant&&n.setActiveDescendant(t.id),o.scrollHeight>o.clientHeight&&(o.clientHeight+o.scrollTop<(e=t.offsetTop+t.offsetHeight)?o.scrollTop=e-o.clientHeight:t.offsetTop<o.scrollTop&&(o.scrollTop=t.offsetTop)),d.focusedNode=t,n&&n.refreshViewValue&&n.refreshViewValue())}},onRemove:function(e,n,o){var t=null,r=e.$on("$destroy",function(){t.end()});return(o=o||{}).cleanupInteraction(),o.cleanupResizing(),o.hideBackdrop(),!0===o.$destroy?i():(t=m(n,{addClass:"md-leave"})).start().then(i);function i(){var e,t;r(),n.removeClass("md-active").attr("aria-hidden","true").css({display:"none",top:"",right:"",bottom:"",left:"","font-size":"","min-width":""}),(t=(e=o).selectCtrl)&&(e=e.selectEl.controller("mdSelectMenu"),t.setSelectValueText(e?e.getSelectedLabels():""),t.triggerClose()),o.$destroy||(o.restoreFocus?o.target.focus():g.nextTick(function(){o.target.triggerHandler("blur")},!0))}},hasBackdrop:!0,disableParentScroll:!0};function p(e,t,n){var o=t[0],r=n.target[0].children[0],i=v[0].body,a=n.selectEl[0],d=n.contentEl[0],s=i.getBoundingClientRect(),l=r.getBoundingClientRect(),c={left:s.left+M,top:M,bottom:s.height-M,right:s.width-M-(g.floatingScrollbars()?16:0)},m=l.top-c.top,u=(l.left,l.left,l.width,c.bottom-(l.top+l.height)),p=s.width-2*M,h=a.querySelector("md-option[selected]"),f=a.getElementsByTagName("md-option"),i=a.getElementsByTagName("md-optgroup"),s=function(e,t){var n=!1;{var o=e[0].style.display;e[0].style.display="block",n=t.scrollHeight>t.offsetHeight,e[0].style.display=o}return n}(t,d),h=(t=n.loadingAsync)&&be.isFunction(t.then)?d.firstElementChild||d:h||(i.length?i[0]:f.length?f[0]:d.firstElementChild||d);d.offsetWidth>p?d.style["max-width"]=p+"px":d.style.maxWidth=null,s&&a.classList.add("md-overflow");i=h;"MD-OPTGROUP"===(i.tagName||"").toUpperCase()&&(h=i=f[0]||d.firstElementChild||d),n.focusedNode=i,o.style.display="block";f=a.getBoundingClientRect(),i=(i=h)?{left:i.offsetLeft,top:i.offsetTop,width:i.offsetWidth,height:i.offsetHeight}:{left:0,top:0,width:0,height:0};h&&(h=E.getComputedStyle(h),i.paddingLeft=parseInt(h.paddingLeft,10)||0,i.paddingRight=parseInt(h.paddingRight,10)||0),s&&(b=d.offsetHeight/2,d.scrollTop=i.top+i.height/2-b,m<b?d.scrollTop=Math.min(i.top,d.scrollTop+b-m):u<b&&(d.scrollTop=Math.max(i.top+i.height-f.height,d.scrollTop-b+u)));var m=l.left+i.left-i.paddingLeft,b=Math.floor(l.top+l.height/2-i.height/2-i.top+d.scrollTop)+2,u=i.left+l.width/2+"px "+(i.top+i.height/2-d.scrollTop)+"px 0px",d=Math.min(l.width+i.paddingLeft+i.paddingRight,p),i=y.getComputedStyle(r)["font-size"],p=o.getBoundingClientRect(),r=Math.round(100*Math.min(l.width/f.width,1))/100,f=Math.round(100*Math.min(l.height/f.height,1))/100;return{container:{element:be.element(o),styles:{left:Math.floor($(c.left,m,c.right-d)),top:Math.floor($(c.top,b,c.bottom-p.height)),"min-width":d,"font-size":i}},dropDown:{element:be.element(a),styles:{transformOrigin:u,transform:n.alreadyOpen?"":g.supplant("scale({0},{1})",[r,f])}}}}}function $(e,t,n){return Math.max(e,Math.min(t,n))}}function B(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)}be.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=be.element("<label>"),t.prepend(e));e.addClass("md-container-ignore"),e.attr("aria-hidden","true"),n.label&&e.text(n.label);t.attr("aria-label",e.text())}();t.attr("role","group")}}}).directive("mdSelectHeader",function(){return{restrict:"E"}}).provider("$mdSelect",o)}(),be.module("material.components.showHide",["material.core"]).directive("ngShow",ze("ngShow",!0)).directive("ngHide",ze("ngHide",!1)),qe.$inject=["$mdComponentRegistry","$mdUtil","$q","$log"],Ve.$inject=["$mdMedia","$mdUtil","$mdConstant","$mdTheming","$mdInteraction","$animate","$compile","$parse","$log","$q","$document","$window","$$rAF"],We.$inject=["$scope","$attrs","$mdComponentRegistry","$q","$interpolate"],be.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",qe).directive("mdSidenav",Ve).controller("$mdSidenavController",We),function(){e.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse","$log","$timeout"],be.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,i,t,n){function o(e){i.children().attr("disabled",e),i.find("input").attr("disabled",e)}i.addClass("_md");var a,r=be.noop;t.disabled?o(!0):t.ngDisabled&&(r=e.$watch(t.ngDisabled,function(e){o(e)})),e.$on("$destroy",function(){r()}),n.fitInputWidthToTextLength=function(e){var t,n,o,r=i[0].querySelector("md-input-container");r&&(t=getComputedStyle(r),n=parseInt(t.minWidth),o=parseInt(t.paddingLeft)+parseInt(t.paddingRight),a=a||parseInt(t.maxWidth),e=Math.max(a,n+o+n/2*e),r.style.maxWidth=e+"px")}}}}});var Q=10,J=4;function e(z,q,r,V,W,Y,K,G,X,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=be.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"),r.expect(e,"aria-label"),i}};function i(r,o,t,e){Y(o);var i=e[0]||{$setViewValue:function(e){this.$viewValue=e,this.$viewChangeListeners.forEach(function(e){e()})},$parsers:[],$formatters:[],$viewChangeListeners:[]},n=e[1],a=(be.element(V.getClosest(o,"_md-slider-container",!0)),t.ngDisabled?be.bind(null,G(t.ngDisabled),r.$parent):function(){return o[0].hasAttribute("disabled")}),e=be.element(o[0].querySelector(".md-thumb")),d=be.element(o[0].querySelector(".md-thumb-text")),s=e.parent(),l=be.element(o[0].querySelector(".md-track-container")),c=be.element(o[0].querySelector(".md-track-fill")),m=be.element(o[0].querySelector(".md-track-ticks")),u=be.element(o[0].getElementsByClassName("md-slider-wrapper")),p=(be.element(o[0].getElementsByClassName("md-slider-content")),V.throttle(N,5e3)),h=be.isDefined(t.mdVertical),f=be.isDefined(t.mdDiscrete),b=be.isDefined(t.mdInvert);be.isDefined(t.min)?t.$observe("min",A):A(0),be.isDefined(t.max)?t.$observe("max",w):w(100),be.isDefined(t.step)?t.$observe("step",_):_(1),be.isDefined(t.round)?t.$observe("round",k):k(3);be.noop;function g(){N(),I()}t.ngDisabled&&r.$parent.$watch(t.ngDisabled,function(){o.attr("aria-disabled",!!a())}),K.register(u,"drag",{horizontal:!h}),r.mouseActive=!1,u.on("keydown",function(e){if(!a()){var t,n=W.KEY_CODE;switch(e.keyCode){case n.DOWN_ARROW:case n.LEFT_ARROW:e.preventDefault(),t=-$;break;case n.UP_ARROW:case n.RIGHT_ARROW:e.preventDefault(),t=$;break;case n.PAGE_DOWN:e.preventDefault(),t=-$*Q;break;case n.PAGE_UP:e.preventDefault(),t=$*Q;break;case n.HOME:e.preventDefault(),e.stopPropagation(),D(E);break;case n.END:e.preventDefault(),e.stopPropagation(),D(v)}t&&(t=b?-t:t,(e.metaKey||e.ctrlKey||e.altKey)&&(t*=J),e.preventDefault(),e.stopPropagation(),D(i.$viewValue+t))}}).on("mousedown",function(){(function(){if(f&&!a()&&!be.isUndefined($)){if($<=0){var e="Slider step value must be greater than zero when in discrete mode";throw X.error(e),new Error(e)}var t=Math.floor((v-E)/$);y||(y=be.element("<canvas>").css("position","absolute"),m.append(y),C=y[0].getContext("2d"));var n=S();!n||n.height||n.width||(N(),n=x),y[0].width=n.width,y[0].height=n.height;for(var o=0;o<=t;o++){var r=q.getComputedStyle(m[0]);C.fillStyle=r.color||"black",r=Math.floor((h?n.height:n.width)*(o/t)),C.fillRect(h?0:r-1,h?r-1:0,h?n.width:2,h?2:n.height)}}})(),r.mouseActive=!0,u.removeClass("md-focused"),Z(function(){r.mouseActive=!1},100)}).on("focus",function(){!1===r.mouseActive&&u.addClass("md-focused")}).on("blur",function(){u.removeClass("md-focused"),o.removeClass("md-active"),function(){{var e;y&&C&&(e=S(),C.clearRect(0,0,e.width,e.height))}}()}).on("$md.pressdown",function(e){var t;a()||(o.addClass("md-active"),o[0].focus(),N(),t=O(P(U(B(h?e.srcEvent.clientY:e.srcEvent.clientX)))),r.$apply(function(){H(t),L(j(t))}))}).on("$md.pressup",function(e){var t;a()||(o.removeClass("md-dragging"),t=O(P(U(B(h?e.srcEvent.clientY:e.srcEvent.clientX)))),r.$apply(function(){H(t),I()}))}).on("$md.dragstart",function(e){a()||(R=!0,e.stopPropagation(),o.addClass("md-dragging"),F(e))}).on("$md.drag",function(e){R&&(e.stopPropagation(),F(e))}).on("$md.dragend",function(e){R&&(e.stopPropagation(),R=!1)}),setTimeout(g,0);var E,v,$,M,y,C,T=z.throttle(g);function A(e){E=parseFloat(e),i.$viewValue=O(i.$modelValue,E,v),u.attr("aria-valuemin",e),g()}function w(e){v=parseFloat(e),i.$viewValue=O(i.$modelValue,E,v),u.attr("aria-valuemax",e),g()}function _(e){$=parseFloat(e)}function k(e){M=O(parseInt(e),0,6)}be.element(q).on("resize",T),r.$on("$destroy",function(){be.element(q).off("resize",T)}),i.$render=I,i.$viewChangeListeners.push(I),i.$formatters.push(O),i.$formatters.push(P);var x={};function N(){x=l[0].getBoundingClientRect()}function S(){return p(),x}function D(e){r.$evalAsync(function(){H(e)})}function H(e){i.$setViewValue(O(P(e)))}function I(){isNaN(i.$viewValue)&&(i.$viewValue=i.$modelValue),i.$viewValue=O(i.$viewValue);var e=j(i.$viewValue);r.modelValue=i.$viewValue,u.attr("aria-valuenow",i.$viewValue),L(e),d.text(i.$viewValue)}function O(e,t,n){if(be.isNumber(e))return t=be.isNumber(t)?t:E,n=be.isNumber(n)?n:v,Math.max(t,Math.min(n,e))}function P(e){if(be.isNumber(e)){var t=Math.round((e-E)/$)*$+E,t=Math.round(t*Math.pow(10,M))/Math.pow(10,M);return n&&n.fitInputWidthToTextLength&&V.debounce(function(){n.fitInputWidthToTextLength(t.toString().length)},100)(),t}}function L(e){n=e;var t=100*(e=Math.max(0,Math.min(n||0,1)))+"%",n=b?100*(1-e)+"%":t;h?s.css("bottom",t):V.bidiProperty(s,"left","right",t),c.css(h?"height":"width",n),o.toggleClass(b?"md-max":"md-min",0===e),o.toggleClass(b?"md-min":"md-max",1===e)}N();var R=!1;function F(e){var t,n,o;f?(n=h?e.srcEvent.clientY:e.srcEvent.clientX,o=O(P(U(B(n)))),L(B(n)),d.text(o)):(t=h?e.srcEvent.clientY:e.srcEvent.clientX,r.$evalAsync(function(){H(U(B(t)))}))}function B(e){e=(e-(h?x.top:x.left))/(h?x.height:x.width);return!h&&V.isRtl(t)&&(e=1-e),Math.max(0,Math.min(1,h?1-e:e))}function U(e){return E+(b?1-e:e)*(v-E)}function j(e){e=(e-E)/(v-E);return b?1-e:e}}}}(),Ye.$inject=["$mdConstant","$$rAF","$mdUtil","$compile"],be.module("material.components.sticky",["material.core","material.components.content"]).factory("$mdSticky",Ye),Ke.$inject=["$mdSticky","$compile","$mdTheming","$mdUtil","$mdAria"],be.module("material.components.subheader",["material.core","material.components.sticky"]).directive("mdSubheader",Ke),be.module("material.components.swipe",["material.core"]).directive("mdSwipeLeft",Ge("SwipeLeft")).directive("mdSwipeRight",Ge("SwipeRight")).directive("mdSwipeUp",Ge("SwipeUp")).directive("mdSwipeDown",Ge("SwipeDown")),Xe.$inject=["mdCheckboxDirective","$mdUtil","$mdConstant","$parse","$$rAF","$mdGesture","$timeout"],be.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",Xe),be.module("material.components.tabs",["material.core","material.components.icon"]),be.module("material.components.tabs").service("MdTabsPaginationService",function(){return{decreasePageOffset:function(e,t){var n,o,r=e.canvas,i=d(e);for(n=0;n<i.length;n++)if(i[n]>=t){o=i[n];break}return Math.max(0,o-r.clientWidth)},increasePageOffset:function(e,t){var n,o,r=e.canvas,i=s(e)-r.clientWidth,a=d(e);for(n=0;a.length,a[n]<=t+r.clientWidth;n++)o=a[n];return Math.min(i,o)},getTabOffsets:d,getTotalTabsWidth:s};function d(e){for(var t,n=0,o=[],r=0;r<e.tabs.length;r++)t=e.tabs[r],o.push(n),n+=t.offsetWidth;return o}function s(e){for(var t=0,n=0;n<e.tabs.length;n++)t+=e.tabs[n].offsetWidth;return t}}),be.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");return 0===n.length&&(n=be.element("<md-tab-label></md-tab-label>"),t.label?n.text(t.label):n.append(e.contents()),0===o.length&&(t=e.contents().detach(),(o=be.element("<md-tab-body></md-tab-body>")).append(t))),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){var r,i,a,d;o&&(r=o.getTabElementIndex(t),i=s(t,"md-tab-body").remove(),a=s(t,"md-tab-label").remove(),d=o.insertTab({scope:e,parent:e.$parent,index:r,element:t,template:i.html(),label:a.html()},r),e.select=e.select||be.noop,e.deselect=e.deselect||be.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,r=n.length;o<r;o++){var i=n[o];if(i.tagName===t.toUpperCase())return be.element(i)}return be.element()}}),be.module("material.components.tabs").directive("mdTabItem",function(){return{require:"^?mdTabs",link:function(e,t,n,o){o&&o.attachRipple(e,t)}}}),be.module("material.components.tabs").directive("mdTabLabel",function(){return{terminal:!0}}),Ze.$inject=["$parse"],be.module("material.components.tabs").directive("mdTabScroll",Ze),Qe.$inject=["$scope","$element","$window","$mdConstant","$mdTabInkRipple","$mdUtil","$animateCss","$attrs","$compile","$mdTheming","$mdInteraction","$timeout","MdTabsPaginationService"],be.module("material.components.tabs").controller("MdTabsController",Qe),Je.$inject=["$$mdSvgRegistry"],be.module("material.components.tabs").directive("mdTabs",Je),et.$inject=["$mdUtil","$window"],be.module("material.components.tabs").directive("mdTabsDummyWrapper",et),tt.$inject=["$compile","$mdUtil"],be.module("material.components.tabs").directive("mdTabsTemplate",tt),nt.$inject=["$mdToast"],ot.$inject=["$$interimElementProvider"],be.module("material.components.toast",["material.core","material.components.button"]).directive("mdToast",nt).provider("$mdToast",ot),rt.$inject=["$$rAF","$mdConstant","$mdUtil","$mdTheming","$animate","$timeout"],be.module("material.components.toolbar",["material.core","material.components.content"]).directive("mdToolbar",rt),it.$inject=["$timeout","$window","$$rAF","$document","$interpolate","$mdUtil","$mdPanel","$$mdTooltipRegistry"],be.module("material.components.tooltip",["material.core","material.components.panel"]).directive("mdTooltip",it).service("$$mdTooltipRegistry",function(){var r={},i=be.element(y);return{register:function(e,t,n){var o=r[e]=r[e]||[];o.length||(n?y.addEventListener(e,a,!0):i.on(e,a));-1===o.indexOf(t)&&o.push(t)},deregister:function(e,t,n){var o=r[e],t=o?o.indexOf(t):-1;-1<t&&(o.splice(t,1),0===o.length&&(n?y.removeEventListener(e,a,!0):i.off(e,a)))}};function a(t){r[t.type]&&r[t.type].forEach(function(e){e.call(this,t)},this)}}),at.$inject=["$element"],be.module("material.components.truncate",["material.core"]).directive("mdTruncate",function(){return{restrict:"AE",controller:at}}),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"],r.$inject=["$scope","$element","$attrs","$browser","$document","$rootScope","$$rAF","$mdUtil"],n.$inject=["$parse"],be.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",i);function t(e,n,t,o,r,i,a,d,s){this.$rootScope=r,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),be.isDefined(this.topIndex)||(this.topIndex=0,this.bindTopIndex.assign(this.$scope,0)),this.$scope.$watch(this.bindTopIndex,be.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=be.bind(this,this.updateSize);e(be.bind(this,function(){l();var e=n.debounce(l,10,null,!1),t=be.element(i);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:r,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*$/),i=n[1],a=o(n[2]),d=t.mdExtraName&&o(t.mdExtraName);return function(e,t,n,o,r){o[0].link_(o[1],r,i,a,d)}}}}function r(e,t,n,o,r,i,a,d){this.$scope=e,this.$element=t,this.$attrs=n,this.$browser=o,this.$document=r,this.$mdUtil=d,this.$rootScope=i,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_=be.noop,this.blocks={},this.pooledBlocks=[],e.$on("$destroy",be.bind(this,this.cleanupBlocks_))}function o(e){if(!be.isFunction(e.getItemAtIndex)||!be.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 i(e){return{restrict:"A",link:function(e,t,n){n=e.$eval(n.mdForceHeight)||null;n&&t&&(t[0].style.height=n)}}}t.prototype.register=function(e){this.repeater=e,be.element(this.scroller).on("scroll wheel touchmove touchend",be.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(){var e;this.originalSize||((e=this.isHorizontal()?this.$element[0].clientWidth:this.$element[0].clientHeight)&&(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),r=document.createElement("div");r.style[t]=this.maxElementPixels+"px",r.style[n]="1px";for(var i=0;i<o;i++)this.sizer.appendChild(r.cloneNode(!1));r.style[t]=e-o*this.maxElementPixels+"px",this.sizer.appendChild(r)}},t.prototype.autoShrink_=function(e){var t=Math.max(e,this.autoShrinkMin*this.repeater.getItemSize());this.autoShrink&&t!==this.size&&(null===this.oldElementSize&&(this.oldElementSize=this.$element[0].style[this.getDimensionName_()]),!(e=this.originalSize||this.size)||t<e?(this.originalSize||(this.originalSize=this.size),this.setSize_(t)):null!==this.originalSize&&(this.unsetSize_(),t=this.originalSize,this.originalSize=null,t||this.updateSize(),this.setSize_(t||this.size)),this.repeater.containerUpdated())},t.prototype.setScrollSize=function(e){e+=this.offsetSize;this.scrollSize!==e&&(this.sizeScroller_(e),this.autoShrink_(e),this.scrollSize=e)},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;this.scrollTo(t*(e=n<e?n-1: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,t,n=this.isHorizontal()?this.ltr?this.scroller.scrollLeft:this.maxSize-this.scroller.scrollLeft:this.scroller.scrollTop;this.scrollSize<this.size||(n=n>this.scrollSize-this.size?this.scrollSize-this.size:n)===this.scrollOffset||(t=this.repeater.getItemSize())&&(e=Math.max(0,Math.floor(n/t)-3),e=(this.isHorizontal()?"translateX(":"translateY(")+(!this.isHorizontal()||this.ltr?e*t:-e*t)+"px)",this.scrollOffset=n,this.offsetter.style.webkitTransform=e,this.offsetter.style.transform=e,!this.bindTopIndex||(t=Math.floor(n/t))!==this.topIndex&&t<this.repeater.getItemCount()&&(this.topIndex=t,this.bindTopIndex.assign(this.$scope,t),this.$rootScope.$$phase||this.$scope.$digest()),this.repeater.containerUpdated())},r.prototype.link_=function(e,t,n,o,r){this.container=e,this.transclude=t,this.repeatName=n,this.rawRepeatListExpression=o,this.extraName=r,this.sized=!1,this.repeatListExpression=be.bind(this,this.repeatListExpression_),this.container.register(this)},r.prototype.cleanupBlocks_=function(){be.forEach(this.pooledBlocks,function(e){e.element.remove()})},r.prototype.readItemSize_=function(){var e;this.itemSize||(this.items=this.repeatListExpression(this.$scope),this.parentNode=this.$element[0].parentNode,(e=this.getBlock_(0)).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())},r.prototype.repeatListExpression_=function(e){var t=this.rawRepeatListExpression(e);if(this.onDemand&&t){e=new o(t);return e.$$includeIndexes(this.newStartIndex,this.newVisibleEnd),e}return t},r.prototype.containerUpdated=function(){if(!this.itemSize)return this.unwatchItemSize_&&this.unwatchItemSize_!==be.noop&&this.unwatchItemSize_(),this.unwatchItemSize_=this.$scope.$watchCollection(this.repeatListExpression,be.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,be.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))},r.prototype.getItemSize=function(){return this.itemSize},r.prototype.getItemCount=function(){return this.itemsLength},r.prototype.virtualRepeatUpdate_=function(e,t){this.isVirtualRepeatUpdating_=!0;var n,o=e&&e.length||0,r=!1;this.items&&o<this.items.length&&0!==this.container.getScrollOffset()&&(this.items=e,n=this.container.getScrollOffset(),this.container.resetScroll(),this.container.scrollTo(n)),o!==this.itemsLength&&(r=!0,this.itemsLength=o),(this.items=e)===t&&!r||this.updateIndexes_(),this.parentNode=this.$element[0].parentNode,r&&this.container.setScrollSize(o*this.itemSize),Object.keys(this.blocks).forEach(function(e){e=parseInt(e,10);(e<this.newStartIndex||e>=this.newEndIndex)&&this.poolBlock_(e)},this),this.$browser.$$checkUrlChange=be.noop;for(var i,a=[],d=[],s=this.newStartIndex;s<this.newEndIndex&&null==this.blocks[s];s++)i=this.getBlock_(s),this.updateBlock_(i,s),a.push(i);for(;null!=this.blocks[s];s++)this.updateBlock_(this.blocks[s],s);for(var l,o=s-1;s<this.newEndIndex;s++)i=this.getBlock_(s),this.updateBlock_(i,s),d.push(i);a.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(a),this.$element[0].nextSibling),d.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(d),this.blocks[o]&&this.blocks[o].element[0].nextSibling),this.$browser.$$checkUrlChange=this.browserCheckUrlChange,this.startIndex=this.newStartIndex,this.endIndex=this.newEndIndex,this.isFirstRender&&(this.isFirstRender=!1,l=this.$attrs.mdStartIndex?this.$scope.$eval(this.$attrs.mdStartIndex):this.container.topIndex,this.$mdUtil.nextTick(function(){this.container.scrollToIndex(l)}.bind(this))),this.isVirtualRepeatUpdating_=!1},r.prototype.getBlock_=function(n){return this.pooledBlocks.length?this.pooledBlocks.pop():(this.transclude(be.bind(this,function(e,t){o={element:e,new:!0,scope:t},this.updateScope_(t,n),this.parentNode.appendChild(e[0])})),o);var o},r.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())},r.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])},r.prototype.poolBlock_=function(e){this.pooledBlocks.push(this.blocks[e]),this.parentNode.removeChild(this.blocks[e].element[0]),delete this.blocks[e]},r.prototype.domFragmentFromBlocks_=function(e){var t=this.$document[0].createDocumentFragment();return e.forEach(function(e){t.appendChild(e.element[0])}),t},r.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()},i.$inject=["$mdUtil"]}(),dt.$inject=["$log"],be.module("material.components.whiteframe",["material.core"]).directive("mdWhiteframe",dt),be.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{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab 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-primary{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab,.md-button.md-THEME_NAME-theme.md-primary.md-raised{background-color:"{{primary-color}}";color:"{{primary-contrast}}"}.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-raised{background-color:"{{background-50}}";color:"{{background-900}}"}.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{background-color:"{{warn-color}}";color:"{{warn-contrast}}"}.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{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}.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{background-color:"{{background-hue-1}}";border-radius:2px;color:"{{foreground-1}}"}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{background-color:"{{foreground-3}}";color:"{{background-color}}"}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:"{{background-default}}"}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[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-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{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-ms-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::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-container button.md-chip-remove md-icon,md-chips.md-THEME_NAME-theme .md-chip-remove-container buttonmd-chip-remove md-icon{fill:"{{foreground-2}}";color:"{{foreground-2}}"}.md-contact-suggestion span.md-contact-email{color:"{{background-400}}"}md-content.md-THEME_NAME-theme{background-color:"{{background-default}}";color:"{{foreground-1}}"}.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}}";border-color:transparent;color:"{{primary-500-contrast}}"}.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{color:"{{foreground-3}}"}.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{background-color:"{{background-hue-1}}";border-radius:4px;color:"{{foreground-1}}"}md-dialog.md-THEME_NAME-theme.md-content-overflow md-dialog-actions{border-top-color:"{{foreground-4}}"}md-divider.md-THEME_NAME-theme{border-color:"{{foreground-4}}"}md-fab-speed-dial.md-THEME_NAME-theme md-fab-trigger .md-fab.md-button[disabled]{background-color:"{{foreground-4}}"}md-fab-speed-dial.md-THEME_NAME-theme md-fab-actions .md-fab-action-item .md-button.md-fab.md-raised.md-mini.md-focused,md-fab-speed-dial.md-THEME_NAME-theme md-fab-actions .md-fab-action-item .md-button.md-fab.md-raised.md-mini:hover{background-color:"{{background-500}}"}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{border-color:"{{background-default-contrast-divider}}";color:"{{background-default-contrast}}"}md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder{color:"{{background-default-contrast-secondary}}"}md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder{color:"{{background-default-contrast-secondary}}"}md-input-container.md-THEME_NAME-theme .md-input::-ms-input-placeholder{color:"{{background-default-contrast-secondary}}"}md-input-container.md-THEME_NAME-theme .md-input::placeholder{color:"{{background-default-contrast-secondary}}"}md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder{color:"{{background-default-contrast-secondary}}";opacity:1}md-input-container.md-THEME_NAME-theme>md-icon{color:"{{background-default-contrast}}"}md-input-container.md-THEME_NAME-theme .md-placeholder,md-input-container.md-THEME_NAME-theme label{color:"{{background-default-contrast-secondary}}"}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:"{{background-default-contrast-secondary}}"}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:"{{background-default-contrast}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-webkit-input-placeholder{color:"{{background-default-contrast-secondary}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-ms-input-placeholder{color:"{{background-default-contrast-secondary}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-ms-input-placeholder{color:"{{background-default-contrast-secondary}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::placeholder{color:"{{background-default-contrast-secondary}}"}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:"{{background-default-contrast-secondary}}";opacity:1}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label{color:"{{background-default-contrast-secondary}}"}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]{background-image:linear-gradient(90deg,"{{background-default-contrast-disabled}}" 0,"{{background-default-contrast-disabled}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{background-default-contrast-disabled}}" 100%);border-bottom-color:transparent;color:"{{background-default-contrast-disabled}}"}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{border-radius:2px;color:"{{foreground-1}}"}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{background-color:"{{ background-500-0.18}}";outline:none}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{background:"{{accent-color}}";color:"{{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{background:"{{primary-600-1}}";color:"{{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{background:"{{primary-600-1}}";color:"{{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{border-bottom-color:"{{warn-A700}}"!important;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{background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%);border-bottom-color:transparent}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{border-bottom-color:"{{warn-A700}}"!important;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]):hover{background-color:"{{background-500-0.10}}"}md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]).md-focused,md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):focus{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].md-focused,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.md-focused,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{background-color:"{{background-color}}";border-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-left-color:"{{background-400}}";border-top-color:transparent}md-slider.md-THEME_NAME-theme .md-track.md-track-fill{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb:after{background-color:"{{accent-color}}";border-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-left-color:"{{accent-color}}";border-top-color:transparent}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{background-color:"{{warn-color}}";border-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-left-color:"{{warn-color}}";border-top-color:transparent}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{background-color:"{{primary-color}}";border-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-left-color:"{{primary-color}}";border-top-color:transparent}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-left-color:"{{background-400}}";border-top-color:transparent}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-disabled-thumb{background-color:transparent;border-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{background-color:"{{background-default}}";color:"{{ foreground-2-0.54 }}"}.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-next-button md-icon,md-tabs.md-THEME_NAME-theme md-prev-button md-icon{color:"{{foreground-2}}"}md-tabs.md-THEME_NAME-theme md-ink-bar{background:"{{accent-color}}";color:"{{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:"{{accent-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-500}}"}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,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper md-next-button md-icon,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper md-prev-button md-icon{color:"{{accent-500-contrast-0.7}}"}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-500-contrast-1}}"}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-500-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{background:"{{accent-500-contrast}}";color:"{{accent-500-contrast}}"}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-next-button md-icon,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper md-prev-button 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-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-contrast-0.7}}"}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-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{background:"{{accent-color}}";color:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme.md-primary.md-no-ink-bar-color>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{background:"{{primary-contrast}}";color:"{{primary-contrast}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper{background-color:"{{warn-500}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper md-next-button md-icon,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper md-prev-button md-icon{color:"{{warn-500-contrast}}"}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-500-contrast-0.7}}"}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-500-contrast-1}}"}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-500-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{background:"{{warn-500-contrast}}";color:"{{warn-500-contrast}}"}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-next-button md-icon,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper md-prev-button 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-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-contrast-0.7}}"}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-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{background:"{{accent-color}}";color:"{{accent-color}}"}md-toolbar>md-tabs.md-THEME_NAME-theme.md-no-ink-bar-color>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{background:"{{primary-contrast}}";color:"{{primary-contrast}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{accent-500}}"}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,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper md-next-button md-icon,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper md-prev-button md-icon{color:"{{accent-500-contrast-0.7}}"}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-500-contrast-1}}"}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-500-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{background:"{{accent-500-contrast}}";color:"{{accent-500-contrast}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{warn-500}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper md-next-button md-icon,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper md-prev-button md-icon{color:"{{warn-500-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-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-500-contrast-0.7}}"}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-500-contrast-1}}"}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-500-contrast-0.1}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{background:"{{warn-500-contrast}}";color:"{{warn-500-contrast}}"}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{fill:"{{primary-contrast}}";color:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) .md-button[disabled] md-icon{fill:"{{primary-contrast-0.26}}";color:"{{primary-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float] .md-input{border-color:"{{primary-default-contrast-divider}}";color:"{{primary-default-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float] .md-input::-webkit-input-placeholder{color:"{{primary-default-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float] .md-input:-ms-input-placeholder{color:"{{primary-default-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float] .md-input::-ms-input-placeholder{color:"{{primary-default-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float] .md-input::placeholder{color:"{{primary-default-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float] .md-input:-moz-placeholder,md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float] .md-input::-moz-placeholder{color:"{{primary-default-contrast-hint}}";opacity:1}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float].md-input-focused .md-input::-webkit-input-placeholder{color:"{{primary-default-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float].md-input-focused .md-input:-ms-input-placeholder{color:"{{primary-default-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float].md-input-focused .md-input::-ms-input-placeholder{color:"{{primary-default-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float].md-input-focused .md-input::placeholder{color:"{{primary-default-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float].md-input-focused .md-input:-moz-placeholder,md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float].md-input-focused .md-input::-moz-placeholder{color:"{{primary-default-contrast-secondary}}";opacity:1}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float]:not(.md-input-invalid).md-input-focused .md-input,md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float]:not(.md-input-invalid).md-input-resized .md-input{border-color:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float]:not(.md-input-invalid).md-input-focused.md-accent .md-input{border-color:"{{accent-color}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float]:not(.md-input-invalid).md-input-focused.md-warn .md-input{border-color:"{{warn-A700}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent{background-color:"{{accent-500}}";color:"{{accent-500-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-ink-ripple{color:"{{accent-500-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-icon{fill:"{{accent-500-contrast}}";color:"{{accent-500-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-button[disabled] md-icon{fill:"{{accent-500-contrast-0.26}}";color:"{{accent-500-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float] .md-input{border-color:"{{accent-500-contrast-divider}}";color:"{{accent-500-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float] .md-input::-webkit-input-placeholder{color:"{{accent-500-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float] .md-input:-ms-input-placeholder{color:"{{accent-500-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float] .md-input::-ms-input-placeholder{color:"{{accent-500-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float] .md-input::placeholder{color:"{{accent-500-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float] .md-input:-moz-placeholder,md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float] .md-input::-moz-placeholder{color:"{{accent-500-contrast-hint}}";opacity:1}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float].md-input-focused .md-input::-webkit-input-placeholder{color:"{{accent-500-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float].md-input-focused .md-input:-ms-input-placeholder{color:"{{accent-500-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float].md-input-focused .md-input::-ms-input-placeholder{color:"{{accent-500-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float].md-input-focused .md-input::placeholder{color:"{{accent-500-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float].md-input-focused .md-input:-moz-placeholder,md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float].md-input-focused .md-input::-moz-placeholder{color:"{{accent-500-contrast-secondary}}";opacity:1}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float]:not(.md-input-invalid).md-input-focused .md-input,md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float]:not(.md-input-invalid).md-input-resized .md-input{border-color:"{{primary-color}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float]:not(.md-input-invalid).md-input-focused.md-accent .md-input{border-color:"{{accent-500-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float]:not(.md-input-invalid).md-input-focused.md-warn .md-input{border-color:"{{warn-A700}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn{background-color:"{{warn-500}}";color:"{{warn-500-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-icon{fill:"{{warn-500-contrast}}";color:"{{warn-500-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float] .md-input{border-color:"{{warn-500-contrast-divider}}";color:"{{warn-500-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float] .md-input::-webkit-input-placeholder{color:"{{warn-500-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float] .md-input:-ms-input-placeholder{color:"{{warn-500-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float] .md-input::-ms-input-placeholder{color:"{{warn-500-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float] .md-input::placeholder{color:"{{warn-500-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float] .md-input:-moz-placeholder,md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float] .md-input::-moz-placeholder{color:"{{warn-500-contrast-hint}}";opacity:1}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float].md-input-focused .md-input::-webkit-input-placeholder{color:"{{warn-500-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float].md-input-focused .md-input:-ms-input-placeholder{color:"{{warn-500-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float].md-input-focused .md-input::-ms-input-placeholder{color:"{{warn-500-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float].md-input-focused .md-input::placeholder{color:"{{warn-500-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float].md-input-focused .md-input:-moz-placeholder,md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float].md-input-focused .md-input::-moz-placeholder{color:"{{warn-500-contrast-secondary}}";opacity:1}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float]:not(.md-input-invalid).md-input-focused .md-input,md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float]:not(.md-input-invalid).md-input-resized .md-input{border-color:"{{primary-color}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float]:not(.md-input-invalid).md-input-focused.md-accent .md-input{border-color:"{{accent-color}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float]:not(.md-input-invalid).md-input-focused.md-warn .md-input{border-color:"{{warn-500-contrast}}"}.md-panel.md-tooltip.md-THEME_NAME-theme{background-color:"{{background-700}}";color:"{{background-700-contrast}}"}body.md-THEME_NAME-theme,html.md-THEME_NAME-theme{background-color:"{{background-color}}";color:"{{foreground-1}}"}')}(window,window.angular),window.ngMaterial={version:{full:"1.2.3"}}; |