/*! * 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").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+">","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'+t+"":"",r=function(){var e=n.find("md-item-template").detach(),t=(e.length?e:n).html();e.length||n.empty();return""+t+""}(),i=n.html(),a=e.tabindex;return o&&n.attr("md-has-not-found",!0),n.attr("tabindex","-1")," "+(e.mdFloatingLabel?'
'+i+"
":' ')+' '+function(e,t){if(e=e?" "+e:"",d(t))return' ":"")+"
";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 `` 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;0u)?(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)?'':''},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:'
',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')({})[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:['',' ','

{{ dialog.title }}

','
','
',"

{{::dialog.mdTextContent}}

","
",' ',' '," ","
"," ",' '," {{ dialog.cancel }}"," ",' '," {{ dialog.ok }}"," "," ","
"].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 `` 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"+(n=e,t.autoWrap&&!/<\/md-dialog>/g.test(n)?""+(n||"")+"":n||"")+""}};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('
')}}}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(){0a)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",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:"
",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')).append(r.contents()),r.addClass("md-proxy-focus")):(a=be.element('
'),t=be.element(''),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'),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(''),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 or ")},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('
'),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
'),r='',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:'
',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'+((o=n?'':o)||"")+""},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:'',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
',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&&-1r.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.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:'
',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('")(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:'
',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 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))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;ee.canvas.clientWidth+p.offsetLeft},p.canPageBack=function(){return 0
'},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:'
{{ toast.content }} {{ toast.dismissHint }} {{ toast.actionHint }} {{ toast.action }}
',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')).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()}),-1d.clientHeight+1,a=0
'),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("
").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('',[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");s[0].body.appendChild(t[0]);for(var n=["sticky","-webkit-sticky"],o=0;o=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.distancethis.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=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 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(''),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');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('
'),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|\.|\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;if.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||(!(eo.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=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('').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(" 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=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='
',t=' ',n=" {{$chip}}",r=' ';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("'},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