}}}}functiono(e,t){e.element.css(e.style),t.forEach(function(e){e.element.css(e.style)})}functionr(e,t){functionn(t,n){if(t.col>e)throw"md-grid-list: Tile at position "+n+" has a colspan ("+t.col+") that exceeds the column count ("+e+")";for(vara=0,s=0;s-a<t.col;)d>=e?o():(a=l.indexOf(0,d),-1!==a&&-1!==(s=i(a+1))?d=s+1:(a=s=0,o()));returnr(a,t.col,t.row),d=a+t.col,{col:a,row:c}}functiono(){d=0,c++,r(0,e,-1)}functionr(e,t,n){for(varo=e;e+t>o;o++)l[o]=Math.max(l[o]+n,0)}functioni(e){vart;for(t=e;t<l.length;t++)if(0!==l[t])returnt;returnt===l.length?t:void0}functiona(){for(vart=[],n=0;e>n;n++)t.push(0);returnt}vard=0,c=0,l=a();return{positioning:t.map(function(e,t){return{spans:e,position:n(e,t)}}),rowCount:c+Math.max.apply(Math,l)}}vari=o;returnn.animateWith=function(e){i=t.isFunction(e)?e:o},n}functionr(e){functionn(n,o,r,i){o.attr("role","listitem");vara=e.watchResponsiveAttributes(["md-colspan","md-rowspan"],r,t.bind(i,i.invalidateLayout));i.invalidateTiles(),n.$on("$destroy",function(){a(),i.invalidateLayout()}),t.isDefined(n.$parent.$index)&&n.$watch(function(){returnn.$parent.$index},function(e,t){e!==t&&i.invalidateTiles()})}return{restrict:"E",require:"^mdGridList",template:"<figure ng-transclude></figure>",transclude:!0,scope:{},controller:["$attrs",function(e){this.$attrs=e}],link:n}}functioni(){return{template:"<figcaption ng-transclude></figcaption>",transclude:!0}}t.module("material.components.gridList",["material.core"]).directive("mdGridList",e).directive("mdGridTile",r).directive("mdGridTileFooter",i).directive("mdGridTileHeader",i).factory("$mdGridLayout",o),e.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia"],n.$inject=["$mdUtil"],n.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(t.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}},o.$inject=["$mdUtil"],r.$inject=["$mdMedia"]}(),function(){t.module("material.components.icon",["material.core"])}(),function(){functione(e,t){functionn(t,n,o){e(n)}functiono(e,n,o){varr=this;r.isErrorGetter=o.mdIsError&&t(o.mdIsError),r.delegateClick=function(){r.input.focus()},r.element=n,r.setFocused=function(e){n.toggleClass("md-input-focused",!!e)},r.setHasValue=function(e){n.toggleClass("md-input-has-value",!!e)},r.setInvalid=function(e){n.toggleClass("md-input-invalid",!!e)},e.$watch(function(){returnr.label&&r.input},function(e){e&&!r.label.attr("for")&&r.label.attr("for",r.input.attr("id"))})}returno.$inject=["$scope","$element","$attrs"],{restrict:"E",link:n,controller:o}}functionn(){return{restrict:"E",require:"^?mdInputContainer",link:function(e,t,n,o){o&&!n.mdNoFloat&&(o.label=t,e.$on("$destroy",function(){o.label=null}))}}}functiono(e,n,o){functionr(r,i,a,d){functionc(e){returnm.setHasValue(!h.$isEmpty(e)),e}functionl(){m.setHasValue(i.val().length>0||(i[0].validity||{}).badInput)}functions(){functiono(e){returnf(),e}functiona(){if(s.style.height=s.offsetHeight+"px",i.addClass("md-no-flex"),isNaN(u)){l.style.height="auto",l.scrollTop=0;vare=d();e&&(l.style.height=e+"px")}else{l.setAttribute("rows",1),p||(l.style.minHeight="0",p=i.prop("clientHeight"),l.style.minHeight=null);vart=Math.max(u,Math.round(l.scrollHeight/p));l.setAttribute("rows",t)}i.removeClass("md-no-flex"),s.style.height="auto"}functiond(){vare=l.scrollHeight-l.offsetHeight;returnl.offsetHeight+(e>0?e:0)}functionc(e){l.scrollTop=0;vart=l.scrollHeight-l.offsetHeight,n=l.offsetHeight+t;l.style.height=n+"px"}if(!t.isDefined(i.attr("md-no-autogrow"))){varl=i[0],s=m.element[0],u=NaN,p=null;l.hasAttribute("rows")&&(u=parseInt(l.getAttribute("rows")));varf=e.debounce(a,1);h?(h.$formatters.push(o),h.$viewChangeListeners.push(o)):f(),i.on("keydown input",f),isNaN(u)&&(i.attr("rows","1"),i.on("scroll",c)),t.element(n).on("resize",f),r.$on("$destroy",function(){t.element(n).off("resize",f)})}}varm=d[0],u=!!d[1],h=
d.isOpen&&t&&t.focus()})}functionb(e){varo=u.parent();e&&!$?($=o.css("overflow"),o.css("overflow","hidden")):t.isDefined($)&&(o.css("overflow",$),$=n)}functionE(e){returnd.isOpen==e?s.when(!0):s(function(t){d.isOpen=e,o.nextTick(function(){C.then(function(e){d.isOpen||(y&&y.focus(),y=null),t(e)})})})}functionv(e){vart=e.keyCode===r.KEY_CODE.ESCAPE;returnt?M(e):s.when(!0)}functionM(e){returne.preventDefault(),e.stopPropagation(),p.close()}var$,y=null,C=s.when(!0),A=c(h.mdIsLockedOpen),T=function(){returnA(d.$parent,{$media:function(t){returnl.warn("$media is deprecated for is-locked-open. Use $mdMedia instead."),e(t)},$mdMedia:e})},k=o.createBackdrop(d,"md-sidenav-backdrop md-opaque ng-enter");u.on("$destroy",p.destroy),i.inherit(k,u),d.$watch(T,f),d.$watch("isOpen",g),p.$toggleOpen=E}return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(e){returne.addClass("md-closed"),e.attr("tabIndex","-1"),u}}}functioni(e,t,n,o,r){vari=this;i.isOpen=function(){return!!e.isOpen},i.isLockedOpen=function(){return!!e.isLockedOpen},i.open=function(){returni.$toggleOpen(!0)},i.close=function(){returni.$toggleOpen(!1)},i.toggle=function(){returni.$toggleOpen(!e.isOpen)},i.$toggleOpen=function(t){returnr.when(e.isOpen=t)},i.destroy=o.register(i,n.mdComponentId)}t.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",e).directive("mdSidenav",r).directive("mdSidenavFocus",o).controller("$mdSidenavController",i),e.$inject=["$mdComponentRegistry","$q"],r.$inject=["$mdMedia","$mdUtil","$mdConstant","$mdTheming","$animate","$compile","$parse","$log","$q","$document"],i.$inject=["$scope","$element","$attrs","$mdComponentRegistry","$q"]}(),function(){functione(e,n,o,r,i,a,d,c,l){functions(e,t){returne.attr({tabIndex:0,role:"slider"}),o.expect(e,"aria-label"),m}functionm(o,s,m,u){functionh(){v(),C(),E()}functionp(e){G=parseFloat(e),s.attr("aria-valuemin",e),h()}functionf(e){X=parseFloat(e),s.attr("aria-valuemax",e),h()}functiong(e){Q=parseFloat(e),E()}functionb(e){s.attr("aria-disabled",!!e)}functionE(){if(t.isDefined(m.mdDiscrete)&&!t.isUndefined(Q)){if(0>=Q){vare="Slider step value must be greater than zero when in discrete mode";throwl.error(e),newError(e)}varo=Math.floor((X-G)/Q);if(!Z){Z=t.element('<canvas style="position:absolute;">'),V.append(Z);varr=n.getComputedStyle(V[0]);J=Z[0].getContext("2d"),J.fillStyle=r.backgroundColor||"black"}vari=M();Z[0].width=i.width,Z[0].height=i.height;for(vara,d=0;o>=d;d++)a=Math.floor(i.width*(d/o)),J.fillRect(a-1,0,2,i.height)}}functionv(){ee=z[0].getBoundingClientRect()}functionM(){returnW(),ee}function$(e){if(!s[0].hasAttribute("disabled")){vart;e.keyCode===i.KEY_CODE.LEFT_ARROW?t=-Q:e.keyCode===i.KEY_CODE.RIGHT_ARROW&&(t=Q),t&&((e.metaKey||e.ctrlKey||e.altKey)&&(t*=4),e.preventDefault(),e.stopPropagation(),o.$evalAsync(function(){y(u.$viewValue+t)}))}}functiony(e){u.$setViewValue(A(T(e)))}functionC(){isNaN(u.$viewValue)&&(u.$viewValue=u.$modelValue);vare=(u.$viewValue-G)/(X-G);o.modelValue=u.$viewValue,s.attr("aria-valuenow",u.$viewValue),k(e),U.text(u.$viewValue)}functionA(e){returnt.isNumber(e)?Math.max(G,Math.min(X,e)):void0}functionT(e){if(t.isNumber(e)){varn=Math.round(e/Q)*Q;returnMath.round(1e3*n)/1e3}}functionk(e){j.css("width",100*e+"%"),q.css("left",100*e+"%"),s.toggleClass("md-min",0===e)}functionw(e){if(!F()){s.addClass("active"),s[0].focus(),v();vart=R(O(e.pointer.x)),n=A(T(t));o.$apply(function(){y(n),k(L(n))})}}functionx(e){if(!F()){s.removeClass("dragging active");vart=R(O(e.pointer.x)),n=A(T(t));o.$apply(function(){y(n),C()})}}functionN(e){F()||(te=!0,e.stopPropagation(),s.addClass("dragging"),H(e))}function_(e){te&&(e.stopPropagation(),H(e))}functionS(e){te&&(e.stopPropagation(),te=!1)}functionH(e){ne?I(e.pointer.x):D(e.pointer.x)}functionD(e){o.$evalAsync(function(){y(R(O(e)))})}functionI(e){vart=R(O(e)),n=A(T(t));k(O(e)),U.text(n)}functionO(e){returnMath.max(0,Math.min(1,(e-ee.left)/ee.width))}functionR(e){returnG+e*(X-G)}f
b(t,i.menuContentEl,i,1)||i.mdMenuCtrl.triggerContainerProxy(t),n=!0;break;casea.KEY_CODE.LEFT_ARROW:i.nestLevel?i.mdMenuCtrl.close():i.mdMenuCtrl.triggerContainerProxy(t),n=!0;break;casea.KEY_CODE.RIGHT_ARROW:varo=e.getClosest(t.target,"MD-MENU");o&&o!=i.parent[0]?t.target.click():i.mdMenuCtrl.triggerContainerProxy(t),n=!0}n&&(t.preventDefault(),t.stopImmediatePropagation())}functiono(e){e.preventDefault(),e.stopPropagation(),n.$apply(function(){i.mdMenuCtrl.close(!0,{closeAll:!0})})}functiond(t){functiono(){n.$apply(function(){i.mdMenuCtrl.close(!0,{closeAll:!0})})}functionr(e,t){if(!e)return!1;for(varn,o=0;n=t[o];++o)for(varr,i=[n,"data-"+n,"x-"+n],a=0;r=i[a];++a)if(e.hasAttribute(r))return!0;return!1}vara=t.target;do{if(a==i.menuContentEl[0])return;if(r(a,["ng-click","ng-href","ui-sref"])||"BUTTON"==a.nodeName||"MD-BUTTON"==a.nodeName){vard=e.getClosest(a,"MD-MENU");a.hasAttribute("disabled")||d&&d!=i.parent[0]||o();break}}while(a=a.parentNode)}r.addClass("md-clickable"),i.backdrop&&i.backdrop.on("click",o),i.menuContentEl.on("keydown",t),i.menuContentEl[0].addEventListener("click",d,!0);varc=i.menuContentEl[0].querySelector("[md-menu-focus-target]")||i.menuContentEl[0].firstElementChild.querySelector("[tabindex]")||i.menuContentEl[0].firstElementChild.firstElementChild;returnc.focus(),function(){r.removeClass("md-clickable"),i.backdrop&&i.backdrop.off("click",o),i.menuContentEl.off("keydown",t),i.menuContentEl[0].removeEventListener("click",d,!0)}}returnu(i),o.inherit(i.menuContentEl,i.target),i.cleanupResizing=h(),i.hideBackdrop=p(n,r,i),d().then(function(e){returni.alreadyOpen=!0,i.cleanupInteraction=f(),e})}functionb(t,n,o,r){for(vari,a=e.getClosest(t.target,"MD-MENU-ITEM"),d=e.nodesToArray(n[0].children),c=d.indexOf(a),l=c+r;l>=0&&l<d.length;l+=r){vars=d[l].querySelector(".md-button");if(i=E(s))break}returni}functionE(e){returne&&-1!=e.getAttribute("tabindex")?(e.focus(),d[0].activeElement==e):void0}functionv(e,t){t.preserveElement?r(e).style.display="none":r(e).parentNode===r(t.parent)&&r(t.parent).removeChild(r(e))}functionM(t,o){functionr(e){e.top=Math.max(Math.min(e.top,M.bottom-u.offsetHeight),M.top),e.left=Math.max(Math.min(e.left,M.right-u.offsetWidth),M.left)}functiona(){for(vare=0;e<h.children.length;++e)if("none"!=c.getComputedStyle(h.children[e]).display)returnh.children[e]}varl,s,m,u=t[0],h=t[0].firstElementChild,p=h.getBoundingClientRect(),f=d[0].body,g=f.getBoundingClientRect(),b=c.getComputedStyle(h),E=o.target[0].querySelector("[md-menu-origin]")||o.target[0],v=E.getBoundingClientRect(),M={left:g.left+i,top:Math.max(g.top,0)+i,bottom:Math.max(g.bottom,Math.max(g.top,0)+g.height)-i,right:g.right-i},$=o.mdMenuCtrl.positionMode();if("target"==$.top||"target"==$.left||"target-right"==$.left){if(l=a(),!l)throwError("Error positioning menu. No visible children.");l=l.firstElementChild||l,l=l.querySelector("[md-menu-align-target]")||l,s=l.getBoundingClientRect(),m={top:parseFloat(u.style.top||0),left:parseFloat(u.style.left||0)}}vary={},C="top ";switch($.top){case"target":y.top=m.top+v.top-s.top;break;case"cascade":y.top=v.top-parseFloat(b.paddingTop)-E.style.top;break;case"bottom":y.top=v.top+v.height;break;default:thrownewError('Invalid target mode "'+$.top+'" specified for md-menu on Y axis.')}switch($.left){case"target":y.left=m.left+v.left-s.left,C+="left";break;case"target-right":y.left=v.right-p.width+(p.right-s.right),C+="right";break;case"cascade":varA=v.right+p.width<M.right;y.left=A?v.right-E.style.left:v.left-E.style.left-p.width,C+=A?"left":"right";break;case"left":y.left=v.left,C+="left";break;default:thrownewError('Invalid target mode "'+$.left+'" specified for md-menu on X axis.')}varT=o.mdMenuCtrl.offsets();y.top+=T.top,y.left+=T.left,r(y);vark=Math.round(100*Math.min(v.width/u.offsetWidth,1))/100,w=Math.round(100*Math.min(v.height/u.offsetHeight,1))/100;return{top:Math.round(y.top),left:Math.round(y.left),transform:o.alreadyOpen?n:e.supplant("scale({0},{1})",[k,w]),transformOrigin:C}}var$=e.dom.animator;return{parent:"body",onShow:g,onRemove:f,ha