PageSourceSearch

https://koli-sklep.pl/view/new/scheme/public/_common/js/libs/angularjs/angular-material.min.js

js koli-sklep.pl collected 2026-09-27 05:10:57 UTC 91,225 bytes, 6 lines download raw bytes

1/*!
2 * AngularJS Material Design
3 * https://github.com/angular/material
4 * @license MIT
5 * v1.2.5
6 */ !function(e,t,n){"use strict";t.module("ngMaterial",["ng","ngAnimate","ngAria","material.core","material.core.animate","material.core.gestures","material.core.interaction","material.core.layout","material.core.meta","material.core.theming.palette","material.core.theming","material.components.backdrop","material.components.dialog","material.components.sidenav"]),function(){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 n(e,t){e.decorator("$$rAF",["$delegate",o]),e.decorator("$q",["$delegate",r]),t.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("deep-orange").backgroundPalette("grey")}function o(e){return e.throttle=function(t){var n,o,r,i;return function a(){n=arguments,i=this,r=t,o||(o=!0,e(function(){r.apply(i,Array.prototype.slice.call(n)),o=!1}))}},e}function r(e){return e.resolve||(e.resolve=e.when),e}e.$inject=["$log","$injector"],n.$inject=["$provide","$mdThemingProvider"],o.$inject=["$delegate"],r.$inject=["$delegate"],t.module("material.core",["ngAnimate","material.core.animate","material.core.layout","material.core.interaction","material.core.gestures","material.core.theming"]).config(n).run(e)}(),function(){function e(e){return{restrict:"A",link:{pre:function n(o,r,i){var a=i.mdAutoFocus||i.mdAutofocus||i.mdSidenavFocus;function s(e){t.isUndefined(e)&&(e=!0),r.toggleClass("md-autofocus",!!e)}s(e(a)(o)),a&&o.$watch(a,s)}}}}e.$inject=["$parse"],t.module("material.core").directive("mdAutofocus",e)}(),t.module("material.core").factory("$mdColorUtil",function e(){return{rgbaToHex:function e(t){return((t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):"").toUpperCase()},hexToRgba:function e(t){var n="#"===t[0]?t.substr(1):t,o=n.length/3,r=n.substr(0,o),i=n.substr(o,o),a=n.substr(2*o);return 1===o&&(r+=r,i+=i,a+=a),"rgba("+parseInt(r,16)+","+parseInt(i,16)+","+parseInt(a,16)+",0.1)"},rgbToRgba:function e(t){return t.replace(")",", 0.1)").replace("(","a(")},rgbaToRgb:function e(t){return t?t.replace("rgba","rgb").replace(/,[^),]+\)/,")"):"rgb(0,0,0)"}}}),t.module("material.core").factory("$mdConstant",function e(){var n=document.createElement("div"),o=function e(t){var n,o,r=/^(Moz|webkit|ms)(?=[A-Z])/;for(n in t.style)if(o=r.exec(n))return o[0]}(n),r=/webkit/i.test(o),i=/([:\-_]+(.))/g;function a(e){var t,r=(t=o+"-"+e,t.replace(i,function(e,t,n,o){return o?n.toUpperCase():n})),a=r.charAt(0).toLowerCase()+r.substring(1);return s(n,e)?e:s(n,r)?r:s(n,a)?a:e}function s(e,n){return t.isDefined(e.style[n])}var c={isInputKey:function(e){return e.keyCode>=31&&e.keyCode<=90},isNumPadKey:function(e){return 3===e.location&&e.keyCode>=97&&e.keyCode<=105},isMetaKey:function(e){return e.keyCode>=91&&e.keyCode<=93},isFnLockKey:function(e){return e.keyCode>=112&&e.keyCode<=145},isNavigationKey:function(e){var t=c.KEY_CODE;return -1!=[t.SPACE,t.ENTER,t.UP_ARROW,t.DOWN_ARROW].indexOf(e.keyCode)},hasModifierKey:function(e){return e.ctrlKey||e.metaKey||e.altKey},ELEMENT_MAX_PIXELS:1533917,BEFORE_NG_ARIA:210,KEY_CODE:{COMMA:188,SEMICOLON:186,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,TAB:9,BACKSPACE:8,DELETE:46},CSS:{TRANSITIONEND:"transitionend"+(r?" webkitTransitionEnd":""),ANIMATIONEND:"animationend"+(r?" webkitAnimationEnd":""),TRANSFORM:a("transform"),TRANSFORM_ORIGIN:a("transformOrigin"),TRANSITION:a("transition"),TRANSITION_DURATION:a("transitionDuration"),ANIMATION_PLAY_STATE:a("animationPlayState"),ANIMATION_DURATION:a("animationDuration"),ANIMATION_NAME:a("animationName"),ANIMATION_TIMING:a("animationTimingFunction"),ANIMATION_DIRECTION:a("animationDirection")},MEDIA:{xs:"(max-width: 599px)","gt-xs":"(min-width: 600px)",sm:"(min-width: 600px) and (max-width: 959px)","gt-sm":"(min-width: 960px)",md:"(min-width: 960px) and (max-width: 1279px)","gt-md":"(min-width: 1280px)",lg:"(min-width: 1280px) and (max-width: 1919px)","gt-lg":"(min-width: 1920px)",xl:"
6(min-width: 1920px)",landscape:"(orientation: landscape)",portrait:"(orientation: portrait)",print:"print"},MEDIA_PRIORITY:["xl","gt-lg","lg","gt-md","md","gt-sm","sm","gt-xs","xs","landscape","portrait","print"]};return c}),function(){function e(e,n){var o=function(){return!0};e&&!t.isArray(e)&&(e=Array.prototype.slice.call(e)),n=!!n;var r=e||[];return{items:function e(){return[].concat(r)},count:function e(){return r.length},inRange:i,contains:s,indexOf:a,itemAt:function e(t){return i(t)?r[t]:null},findBy:function e(t,n){return r.filter(function(e){return e[t]===n})},add:function e(n,o){return n?(t.isNumber(o)||(o=r.length),r.splice(o,0,n),a(n)):-1},remove:function e(t){s(t)&&r.splice(a(t),1)},first:c,last:l,next:t.bind(null,u,!1),previous:t.bind(null,u,!0),hasPrevious:function e(t){return!!t&&i(a(t)-1)},hasNext:function e(t){return!!t&&i(a(t)+1)}};function i(e){return r.length&&e>-1&&e<r.length}function a(e){return r.indexOf(e)}function s(e){return e&&a(e)>-1}function c(){return r.length?r[0]:null}function l(){return r.length?r[r.length-1]:null}function u(e,s,u,d){u=u||o;for(var f=a(s);;){if(!i(f))return null;var $=f+(e?-1:1),m=null;if(i($)?m=r[$]:n&&($=a(m=e?l():c())),null===m||$===d)return null;if(u(m))return m;t.isUndefined(d)&&(d=$),f=$}}}t.module("material.core").config(["$provide",function(t){t.decorator("$mdUtil",["$delegate",function(t){return t.iterator=e,t}])}])}(),function(){function e(e,n,o){var r={},i={},a={},s={};return c.getResponsiveAttribute=function t(n,o){for(var a=0;a<e.MEDIA_PRIORITY.length;a++){var s=e.MEDIA_PRIORITY[a];if(i[r[s]].matches){var c=d(n,o+"-"+s);if(n[c])return n[c]}}return n[d(n,o)]},c.getQuery=u,c.watchResponsiveAttributes=function n(o,r,i){var a=[];return o.forEach(function(n){var o=d(r,n);for(var s in t.isDefined(r[o])&&a.push(r.$observe(o,t.bind(void 0,i,null))),e.MEDIA)o=d(r,n+"-"+s),t.isDefined(r[o])&&a.push(r.$observe(o,t.bind(void 0,i,s)))}),function e(){a.forEach(function(e){e()})}},c;function c(n){var s,c=r[n];t.isUndefined(c)&&(c=r[n]=(s=n,e.MEDIA[s]||("("!==s.charAt(0)?"("+s+")":s)));var u,d,f=a[c];return t.isUndefined(f)&&(f=(u=c,d=i[u],d||(d=i[u]=o.matchMedia(u)),d.addListener(l),a[d.media]=!!d.matches)),f}function l(e){n.$evalAsync(function(){a[e.media]=!!e.matches})}function u(e){return i[e]}function d(e,t){return s[t]||(s[t]=e.$normalize(t))}}e.$inject=["$mdConstant","$rootScope","$window"],t.module("material.core").factory("$mdMedia",e)}(),function(){function e(e,n){var o=["data","x"];if(e)return n?i(e):r(e);return{buildList:r,buildSelector:i,hasAttribute:function e(t,n){if(!(t=a(t)))return!1;for(var o=r(n),i=0;i<o.length;i++)if(t.hasAttribute(o[i]))return!0;return!1},removeAttribute:function e(t,n){(t=a(t))&&r(n).forEach(function(e){t.removeAttribute(e)})}};function r(e){return(e=t.isArray(e)?e:[e]).forEach(function(t){o.forEach(function(n){e.push(n+"-"+t)})}),e}function i(e){return r(e=t.isArray(e)?e:[e]).map(function(e){return"["+e+"]"}).join(",")}function a(e){if((e=e[0]||e).nodeType)return e}}t.module("material.core").config(["$provide",function(t){t.decorator("$mdUtil",["$delegate",function(t){return t.prefixer=e,t}])}])}(),function(){c.$inject=["$document","$timeout","$compile","$rootScope","$$mdAnimate","$interpolate","$log","$rootElement","$window","$$rAF"];var o,r,i,a=0;if(e.navigator){var s=e.navigator.userAgent||e.navigator.vendor||e.opera;o=s.match(/ipad|iphone|ipod/i),r=s.match(/android/i),i=s.match(/(firefox|minefield)/i)}function c(s,c,l,u,d,f,$,m,p,h){var g=f.startSymbol(),v=f.endSymbol(),b="{{"===g&&"}}"===v;document.contains||(document.contains=function(e){return document.body.contains(e)});var y=function(e,n,o){var r=!1;if(e&&e.length){var i=p.getComputedStyle(e[0]);r=t.isDefined(i[n])&&(!o||i[n]==o)}return r};function _(e){var t,n;return e?(t=e,String(t).indexOf("px")>-1||(n=e,String(n).indexOf("%")>-1))?e:e+"px":"0"}var A={dom:{},isIos:o,isAndroid:r,now:e.performance&&e.performance.now?t.bind(e.performance,e.performance.now):Date.now||function(){return new Date().getTime()},getModelOption:function(e,t){if(e.$options){var n=e.$options;return n.getOption?n.getOption(t):n[t]}},isRtl:function(e){var n=t.isDefined(e)&&e.hasOwnProperty("dir")&&e.dir;switch(n){case"ltr":return!1;case"rtl":return!0}return"rtl"===s[0].dir||"rtl"===s[0].body.dir},bidi:function(e,n,o,r){var i=!this.isRtl();if(0==arguments.length)return i?"ltr":"rtl";var a=t.element(e);i&&t.isDefined(o)?a.css(n,_(o)):!i&&t.isDefined(r)&&a.css(n,_(r))},bidiProperty:function(e,n,o,r){var i=!this.isRtl(),a=t.element(e);i&&t.isDefined(n)?(a.css(n,_(r)),a.css(o,"")):!i&&t.isDefined(o)&&(a.css(o,_(r)),a.css(n,""))},clientRect:function(e,t,n){var o=C(e);t=C(t||o.offsetParent||document.body);var r=o.getBoundingClientRect(),i=n?t.getBoundingClientRect():{left:0,top:0,width:0,height:0};return{left:r.left-i.left,top:r.top-i.top,width:r.width,height:r.height}},offsetRect:function(e,t){return A.clientRect(e,t,!0)},nodesToArray:function(e){var t,n=[];for(t=0,e=e||[];t<e.length;++t)n.push(e.item(t));return n},getViewportTop:function(){return A.disableScrollAround._count&&A.disableScrollAround._viewPortTop?A.disableScrollAround._viewPortTop:p.scrollY||p.pageYOffset||0},findFocusTarget:function(e,n){var o,r=this.prefixer("md-autofocus",!0);return(o=i(e,n||r))||(o=i(e,r)),o;function i(e,n){var o,r=e[0].querySelectorAll(n);return r&&r.length&&r.length&&t.forEach(r,function(e){(e=t.element(e)).hasClass("md-autofocus")&&(o=e)}),o}},disableScrollAround:function(e,n,o){if(o=o||{},A.disableScrollAround._count=Math.max(0,A.disableScrollAround._count||0),A.disableScrollAround._count++,A.disableScrollAround._restoreScroll)return A.disableScrollAround._restoreScroll;var r,i,a,c,l,u,d,f=s[0].body,$=(r=s[0].documentElement,i=r.style.cssText||"",a=f.style.cssText||"",c=A.getViewportTop(),A.disableScrollAround._viewPortTop=c,l=f.clientWidth,u=f.scrollHeight>f.clientHeight+1,d=r.scrollTop>0?r:f,u&&t.element(f).css({position:"fixed",width:"100%",top:-c+"px"}),f.clientWidth<l&&(f.style.overflow="hidden"),function e(){f.style.cssText=a,r.style.cssText=i,d.scrollTop=c}),m=function e(n,o){var r,i=t.element(n||f);function a(e){e.preventDefault()}return o.disableScrollMask?r=i:(r=t.element('<div class="md-scroll-mask">  <div class="md-scroll-mask-bar"></div></div>'),i.append(r)),r.on("wheel touchmove",a),function e(){r.off("wheel touchmove",a),!o.disableScrollMask&&r[0].parentNode&&r[0].parentNode.removeChild(r[0])}}(n,o);return A.disableScrollAround._restoreScroll=function(){--A.disableScrollAround._count<=0&&(delete A.disableScrollAround._viewPortTop,$(),m(),delete A.disableScrollAround._restoreScroll)}},enableScrolling:function(){var e=this.disableScrollAround._restoreScroll;e&&e()},floatingScrollbars:function(){if(n===this.floatingScrollbars.cached){var e=t.element("<div><div></div></div>").css({width:"100%","z-index":-1,position:"absolute",height:"35px","overflow-y":"scroll"});e.children().css("height","60px"),s[0].body.appendChild(e[0]),this.floatingScrollbars.cached=e[0].offsetWidth===e[0].childNodes[0].offsetWidth,e.remove()}return this.floatingScrollbars.cached},forceFocus:function(t){var n=t[0]||t;document.addEventListener("click",function e(t){t.target===n&&t.$focus&&(n.focus(),t.stopImmediatePropagation(),t.preventDefault(),n.removeEventListener("click",e))},!0);var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!1,!0,e,{}
vendor: 4,326 bytes, line 6
6,0,0,0,0,!1,!1,!1,!1,0,null),o.$material=!0,o.$focus=!0,n.dispatchEvent(o)},createBackdrop:function(e,t){return l(A.supplant('<md-backdrop class="{0}">',[t]))(e)},supplant:function(e,t,n){return n=n||/\{([^{}]*)\}/g,e.replace(n,function(e,n){var o=n.split("."),r=t;try{for(var i in o)o.hasOwnProperty(i)&&(r=r[o[i]])}catch(a){r=e}return"string"==typeof r||"number"==typeof r?r:e})},fakeNgModel:function(){return{$fake:!0,$setTouched:t.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:t.noop}},debounce:function(e,t,o,r){var i;return function a(){var s=o,l=Array.prototype.slice.call(arguments);c.cancel(i),i=c(function(){i=n,e.apply(s,l)},t||10,r)}},throttle:function e(t,n){var o;return function e(){var r=arguments,i=A.now();(!o||i-o>n)&&(t.apply(this,r),o=i)}},time:function e(t){var n=A.now();return t(),A.now()-n},valueOnUse:function(e,t,n){var o=null,r=Array.prototype.slice.call(arguments),i=r.length>3?r.slice(3):[];Object.defineProperty(e,t,{get:function(){return null===o&&(o=n.apply(e,i)),o}})},nextUid:function(){return""+a++},disconnectScope:function e(t){if(t&&t.$root!==t&&!t.$$destroyed){var n=t.$parent;t.$$disconnected=!0,n.$$childHead===t&&(n.$$childHead=t.$$nextSibling),n.$$childTail===t&&(n.$$childTail=t.$$prevSibling),t.$$prevSibling&&(t.$$prevSibling.$$nextSibling=t.$$nextSibling),t.$$nextSibling&&(t.$$nextSibling.$$prevSibling=t.$$prevSibling),t.$$nextSibling=t.$$prevSibling=null}},reconnectScope:function e(t){if(t&&t.$root!==t&&t.$$disconnected){var n=t,o=n.$parent;n.$$disconnected=!1,n.$$prevSibling=o.$$childTail,o.$$childHead?(o.$$childTail.$$nextSibling=n,o.$$childTail=n):o.$$childHead=o.$$childTail=n}},getSiblings:function e(n,o){var r=o.toUpperCase();return n instanceof t.element&&(n=n[0]),Array.prototype.filter.call(n.parentNode.children,function(e){return n!==e&&e.tagName.toUpperCase()===r}).map(function(e){return t.element(e)})},getClosest:function e(n,o,r){if(t.isString(o)){var i=o.toUpperCase();o=function(e){return e.nodeName.toUpperCase()===i}}if(n instanceof t.element&&(n=n[0]),r&&(n=n.parentNode),!n)return null;do if(o(n))return n;while(n=n.parentNode);return null},elementContains:function(n,o){return(e.Node&&e.Node.prototype&&Node.prototype.contains?t.bind(n,n.contains):t.bind(n,function(e){return n===o||!!(16&this.compareDocumentPosition(e))}))(o)},extractElementByName:function(e,n,o,r){var i=function e(t){return function e(t){if(t){for(var o=0,r=t.length;o<r;o++)if(t[o].nodeName.toLowerCase()===n)return t[o]}return null}(t)||(o?function t(n){var o;if(n)for(var r=0,i=n.length;r<i;r++){var a=n[r];if(!o)for(var s=0,c=a.childNodes.length;s<c;s++)o=o||e([a.childNodes[s]])}return o}(t):null)}(e);return!i&&r&&$.warn(A.supplant("Unable to find node '{0}' in element '{1}'.",[n,e[0].outerHTML])),t.element(i||e)},initOptionalProperties:function(e,n,o){o=o||{},t.forEach(e.$$isolateBindings,function(r,i){if(r.optional&&t.isUndefined(e[i])){var a=t.isDefined(n[r.attrName]);e[i]=t.isDefined(o[i])?o[i]:a}})},nextTick:function(e,t,n){var o=A.nextTick,r=o.timeout,i=o.queue||[];return i.push({scope:n,callback:e}),null==t&&(t=!0),o.digest=o.digest||t,o.queue=i,r||(o.timeout=c(function e(){var t=o.queue,n=o.digest;o.queue=[],o.timeout=null,o.digest=!1,t.forEach(function(e){e.scope&&e.scope.$$destroyed||e.callback()}),n&&u.$digest()},0,!1))},processTemplate:function(e){return b?e:e&&t.isString(e)?e.replace(/\{\{/g,g).replace(/}}/g,v):e},getParentWithPointerEvents:function(e){for(var t=e.parent();y(t,"pointer-events","none");)t=t.parent();return t},getNearestContentElement:function(e){for(var t=e.parent()[0];t&&t!==m[0]&&t!==document.body&&"MD-CONTENT"!==t.nodeName.toUpperCase();)t=t.parentNode;return t},checkStickySupport:function(){var e,n=t.element("<div>");s[0].body.appendChild(n[0]);for(var o=["sticky","-webkit-sticky"],r=0;r<o.length;++r)if(n.css({position:o[r],top:0,"z-index":2}),n.css("position")==o[r]){e=o[r];break}return n.remove(),e},parseAttributeBoolean:function(e,t){return""===e||!!e&&(!1===t||"false"!==e&&"0"!==e)},hasComputedStyle:y,isParentFormSubmitted:function(e){var n=A.getClosest(e,"form"),o=n?t.element(n).controller("form"):null;return!!o&&o.$submitted}
6,animateScrollTo:function(e,t,n){var o=e.scrollTop,r=t-o,i=o<t,a=A.now();function s(){var c=function e(t,n,o,r){if(t>r)return n+o;var i=(t/=r)*t;return n+o*(-2*(i*t)+3*i)}(A.now()-a,o,r,n||1e3);e.scrollTop=c,(i?c<t:c>t)&&h(s)}h(s)},uniq:function(e){if(e)return e.filter(function(e,t,n){return n.indexOf(e)===t})},getInnerHTML:function(e){var t=new XMLSerializer;return Array.prototype.map.call(e.childNodes,function(e){return t.serializeToString(e)}).join("")},getOuterHTML:function(e){return new XMLSerializer().serializeToString(e)},msie:e.document.documentMode,getTouchAction:function(){for(var e=document.createElement("div"),n=["","webkit","Moz","MS","ms","o"],o=0;o<n.length;o++){var r=n[o],i=r?r+"TouchAction":"touchAction";if(t.isDefined(e.style[i]))return i}},getEventPath:function(t){for(var n=[],o=t.target;o;)n.push(o),o=o.parentElement;return -1===n.indexOf(e)&&-1===n.indexOf(document)&&n.push(document),-1===n.indexOf(e)&&n.push(e),n},sanitize:function(e){return e?e.replace(/[\\^$*+?.()|{}[]/g,"\\$&"):e},isDisabled:function(e){return e.hasAttribute("disabled")},isVisible:function(e){return A.hasGeometry(e)&&"visible"===getComputedStyle(e).visibility},isTabbable:function(e){var t=A.getFrameElement(A.getWindow(e));if(t&&(-1===A.getTabIndexValue(t)||!A.isVisible(t)))return!1;var n=e.nodeName.toLowerCase(),r=A.getTabIndexValue(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==n&&"object"!==n&&(!o||!!A.isPotentiallyTabbableIOS(e))&&("audio"===n?!!e.hasAttribute("controls")&&-1!==r:"video"===n?-1!==r&&(null!==r||i||e.hasAttribute("controls")):e.tabIndex>=0)},isFocusable:function(e){return A.isPotentiallyFocusable(e)&&!A.isDisabled(e)&&A.isVisible(e)},isPotentiallyFocusable:function(e){return!A.isHiddenInput(e)&&(A.isNativeFormElement(e)||A.isAnchorWithHref(e)||e.hasAttribute("contenteditable")||A.hasValidTabIndex(e))},isPotentiallyTabbableIOS:function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t},getTabIndexValue:function(e){if(!A.hasValidTabIndex(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t},hasValidTabIndex:function(e){if(!e.hasAttribute("tabindex")||n===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!!(t&&!isNaN(parseInt(t,10)))},hasGeometry:function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)},getFrameElement:function(e){try{return e.frameElement}catch(t){return null}},getWindow:function(t){return t.ownerDocument&&t.ownerDocument.defaultView||e},isNativeFormElement:function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t},isHiddenInput:function(e){return A.isInputElement(e)&&"hidden"==e.type},isAnchorWithHref:function(e){return A.isAnchorElement(e)&&e.hasAttribute("href")},isInputElement:function(e){return"input"==e.nodeName.toLowerCase()},isAnchorElement:function(e){return"a"==e.nodeName.toLowerCase()},getFirstTabbableElement:function(e){if(A.isFocusable(e)&&A.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var o=t[n].nodeType===s[0].ELEMENT_NODE?A.getFirstTabbableElement(t[n]):null;if(o)return o}return null},getLastTabbableElement:function(e){if(A.isFocusable(e)&&A.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;n>=0;n--){var o=t[n].nodeType===s[0].ELEMENT_NODE?A.getLastTabbableElement(t[n]):null;if(o)return o}return null}};return A.dom.animator=d(A),A;function C(e){return e[0]||e}}t.module("material.core").factory("$mdUtil",c),t.element.prototype.focus=t.element.prototype.focus||function(){return this.length&&this[0].focus(),this},t.element.prototype.blur=t.element.prototype.blur||function(){return this.length&&this[0].blur(),this}}(),t.module("material.core").factory("$$mdAnimate",["$q","$timeout","$mdConstant","$animateCss",function(n,o,r,i){return function(a){var s,c,l,u,d,f;return s=a,c=n,l=o,u=r,d=i,f={translate3d:function(e,t,n,o){return d(e,{from:t,to:n,addClass:o.transitionInClass,removeClass:o.transitionOutClass,duration:o.duration}).start().then(function(){return r});function r(n){return d(e,{to:n||t,addClass:o.transitionOutClass,removeClass:o.transitionInClass,duration:o.duration}).start()}},waitTransitionEnd:function(t,n){var o=3e3;return c(function(r,i){a=(n=n||{}).cachedTransitionStyles,"0s"!==(a=a||e.getComputedStyle(t[0])).transitionDuration&&(a.transition||a.transitionProperty)||(o=0);var a,s=l(c,n.timeout||o);function c(e){e&&e.target!==t[0]||(e&&l.cancel(s),t.off(u.CSS.TRANSITIONEND,c),r())}t.on(u.CSS.TRANSITIONEND,c)})},calculateTransformValues:function(e,t){var n=t.element,o=t.bounds;if(n||o){var r,i,a=n?f.clientRect(n)||(r=e?e.parent():null,i=r?r.parent():null,i?f.clientRect(i):null):f.copyRect(o),s=f.copyRect(e[0].getBoundingClientRect()),c=f.centerPointFor(s),l=f.centerPointFor(a);return{centerX:l.x-c.x,centerY:l.y-c.y,scaleX:Math.round(100*Math.min(.5,a.width/s.width))/100,scaleY:Math.round(100*Math.min(.5,a.height/s.height))/100}}return{centerX:0,centerY:0,scaleX:.5,scaleY:.5}},calculateZoomToOrigin:function(e,n){return t.bind(null,s.supplant,"translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY}
6 )")(f.calculateTransformValues(e,n))},calculateSlideToOrigin:function(e,n){return t.bind(null,s.supplant,"translate3d( {centerX}px, {centerY}px, 0 )")(f.calculateTransformValues(e,n))},toCss:function(e){var n={};return t.forEach(e,function(e,r){if(!t.isUndefined(e)){if("left top right bottom width height x y min-width min-height max-width max-height".indexOf(r)>=0)n[r]=e+"px";else switch(r){case"transition":o(r,u.CSS.TRANSITION,e);break;case"transform":o(r,u.CSS.TRANSFORM,e);break;case"transformOrigin":o(r,u.CSS.TRANSFORM_ORIGIN,e);break;case"font-size":n["font-size"]=e}}}),n;function o(e,o,r){t.forEach(o.split(" "),function(e){n[e]=r})}},toTransformCss:function(e,n,o){var r={};return t.forEach(u.CSS.TRANSFORM.split(" "),function(t){r[t]=e}),n&&(o=o||"all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important",r.transition=o),r},copyRect:function(e,n){return e?(n=n||{},t.forEach("left top right bottom width height".split(" "),function(t){n[t]=Math.round(e[t])}),n.width=n.width||n.right-n.left,n.height=n.height||n.bottom-n.top,n):null},clientRect:function(e){var n,o=t.element(e)[0].getBoundingClientRect();return(n=o)&&n.width>0&&n.height>0?f.copyRect(o):null},centerPointFor:function(e){return e?{x:Math.round(e.left+e.width/2),y:Math.round(e.top+e.height/2)}:{x:0,y:0}}}}}]),t.version.minor>=4?t.module("material.core.animate",[]):function(){var e=t.forEach,n=t.isDefined(document.documentElement.style.WebkitAppearance),o=n?"-webkit-":"",r=(n?"webkitTransitionEnd ":"")+"transitionend",i=(n?"webkitAnimationEnd ":"")+"animationend",a=["$$rAF",function(e){return function(){var t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}],s=["$q","$$rAFMutex",function(n,o){function r(e){this.setHost(e),this._doneCallbacks=[],this._runInAnimationFrame=o(),this._state=0}return r.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:t.noop,getPromise:function(){if(!this.promise){var e=this;this.promise=n(function(t,n){e.done(function(e){!1===e?n():t()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._runInAnimationFrame(function(){t._resolve(e)}))},_resolve:function(t){2!==this._state&&(e(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=2)}},r.all=function(t,n){var o=0,r=!0;function i(e){r=r&&e,++o===t.length&&n(r)}e(t,function(e){e.done(i)})},r}];function c(e){return e.replace(/-[a-z]/g,function(e){return e.charAt(1).toUpperCase()})}t.module("material.core.animate",[]).factory("$$forceReflow",["$document",function(e){return function(){return e[0].body.clientWidth+1}}]).factory("$$AnimateRunner",s).factory("$$rAFMutex",a).factory("$animateCss",["$window","$$rAF","$$AnimateRunner","$$forceReflow","$$jqLite","$timeout","$animate",function(t,a,s,l,u,d,f){function $(e,t){t.addClass&&(u.addClass(e,t.addClass),t.addClass=null),t.removeClass&&(u.removeClass(e,t.removeClass),t.removeClass=null)}function m(t){var n=0;return e((t||"").split(/\s*,\s*/),function(e){"s"==e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,n=n?Math.max(e,n):e}),n}var p,h=[];function g(e,t){t.from&&(e.css(t.from),t.from=null)}function v(e,t){t.to&&(e.css(t.to),t.to=null)}function b(e){for(var t=0;t<e.length;t++)if(1===e[t].nodeType)return e[t]}function y(e,t){var n=b(e),r=c(o+"transition-delay");n.style[r]=t?"-9999s":""}return function u(_,A){var C,w,E=[],T=b(_),x=T&&f.enabled(),k=!1,S=!1;x&&(A.transitionStyle&&E.push([o+"transition",A.transitionStyle]),A.keyframeStyle&&E.push([o+"animation",A.keyframeStyle]),A.delay&&E.push([o+"transition-delay",A.delay+"s"]),A.duration&&E.push([o+"transition-duration",A.duration+"s"]),k=A.keyframeStyle||A.to&&(A.duration>0||A.transitionStyle),S=!!A.addClass||!!A.removeClass,y(_,!0));var D=x&&(k||S);g(_,A);var O=!1;return{close:t.close,start:function(){var u,f=new s;return u=function(){if(y(_,!1),!D)return x();e(E,function(e){var t=e[0],n=e[1];T.style[c(t)]=n}),$(_,A);var a=function e(o){var r,i=b(o),a=t.getComputedStyle(i),s=m(a[d("transitionDuration")]),c=m(a[d("animationDuration")]),l=m(a[d("transitionDelay")]),u=m(a[d("animationDelay")]);return{duration:Math.max(c*=parseInt(a[d("animationIterationCount")],10)||1,s),delay:Math.max(u,l),animationDuration:c,transitionDuration:s,animationDelay:u,transitionDelay:l};function d(e){return n?"Webkit"+e.charAt(0).toUpperCase()+e.substr(1):e}}(_);if(0===a.duration)return x();var s=[];A.easing&&(a.transitionDuration&&s.push([o+"transition-timing-function",A.easing]),a.animationDuration&&s.push([o+"animation-timing-function",A.easing])),A.delay&&a.animationDelay&&s.push([o+"animation-delay",A.delay+"s"]),A.duration&&a.animationDuration&&s.push([o+"animation-duration",A.duration+"s"]),e(s,function(e){var t=e[0],n=e[1];T.style[c(t)]=n,E.push(e)});var l=1e3*a.delay,u=a.duration,f=Date.now();C=[],a.transitionDuration&&C.push(r),a.animationDuration&&C.push(i),C=C.join(" "),w=function(e){e.stopPropagation();var t=e.originalEvent||e,n=t.timeStamp||Date.now(),o=parseFloat(t.elapsedTime.toFixed(3));Math.max(n-f,0)>=l&&o>=u&&x()}
6,_.on(C,w),v(_,A),d(x,l+1.5*(1e3*u),!1)},p&&p(),h.push(u),p=a(function(){p=null;for(var e=l(),t=0;t<h.length;t++)h[t](e);h.length=0}),f;function x(){if(!O){var t,n;return O=!0,C&&w&&_.off(C,w),$(_,A),t=_,g(t,n=A),v(t,n),e(E,function(e){T.style[c(e[0])]=""}),f.complete(!0),f}}}}}}])}(),function(){e.$inject=["$$rAF","$log","$window","$interpolate"],t.module("material.core").provider("$mdAria",function t(){var n={showWarnings:!0};return{disableWarnings:function e(){n.showWarnings=!1},$get:["$$rAF","$log","$window","$interpolate",function(t,o,r,i){return e.apply(n,arguments)}]}});function e(e,n,o,r){var i=this.showWarnings;return{expect:a,expectAsync:s,expectWithText:function e(t,n){var o=c(t)||"";o.indexOf(r.startSymbol())>-1?s(t,n,function(){return c(t)}):a(t,n,o)},expectWithoutText:function e(t,n){var o=c(t);o.indexOf(r.startSymbol())>-1||o||a(t,n,o)},getText:c,hasAriaLabel:l,parentHasAriaLabel:function e(n,o){o=o||1;var r=t.element(n)[0]||n;return!!r.parentNode&&(!!function e(t){if(!l(t))return!1;if(t.hasAttribute("role"))switch(t.getAttribute("role").toLowerCase()){case"command":case"definition":case"directory":case"grid":case"list":case"listitem":case"log":case"marquee":case"menu":case"menubar":case"note":case"presentation":case"separator":case"scrollbar":case"status":case"tablist":return!1}switch(t.tagName.toLowerCase()){case"abbr":case"acronym":case"address":case"applet":case"audio":case"b":case"bdi":case"bdo":case"big":case"blockquote":case"br":case"canvas":case"caption":case"center":case"cite":case"code":case"col":case"data":case"dd":case"del":case"dfn":case"dir":case"div":case"dl":case"em":case"embed":case"fieldset":case"figcaption":case"font":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"hgroup":case"html":case"i":case"ins":case"isindex":case"kbd":case"keygen":case"label":case"legend":case"li":case"map":case"mark":case"menu":case"object":case"ol":case"output":case"pre":case"presentation":case"q":case"rt":case"ruby":case"samp":case"small":case"source":case"span":case"status":case"strike":case"strong":case"sub":case"sup":case"svg":case"tbody":case"td":case"th":case"thead":case"time":case"tr":case"track":case"tt":case"ul":case"var":return!1}return!0}(r.parentNode)||!!--o&&e(r.parentNode,o))}};function a(e,r,a){var s=t.element(e)[0]||e;s&&(!s.hasAttribute(r)||0===s.getAttribute(r).length)&&!function e(t,n){var r=t.hasChildNodes(),i=!1;function a(e){return"none"===(e.currentStyle?e.currentStyle:o.getComputedStyle(e)).display}if(r)for(var s=t.childNodes,c=0;c<s.length;c++){var l=s[c];1===l.nodeType&&l.hasAttribute(n)&&!a(l)&&(i=!0)}return i}(s,r)&&((a=t.isString(a)?a.trim():"").length?e.attr(r,a):i&&n.warn('ARIA: Attribute "',r,'", required for accessibility, is missing on node:',s))}function s(t,n,o){e(function(){a(t,n,o())})}function c(e){e=e[0]||e;for(var t,n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1),o="";t=n.nextNode();)r(t)||(o+=t.textContent);return o.trim()||"";function r(t){for(;t.parentNode&&(t=t.parentNode)!==e;)if(t.getAttribute&&"true"===t.getAttribute("aria-hidden"))return!0}}function l(e){var n=t.element(e)[0]||e;return!!n.hasAttribute&&(n.hasAttribute("aria-label")||n.hasAttribute("aria-labelledby")||n.hasAttribute("aria-describedby"))}}}(),function(){function e(){function e(e,t,n,o,r){this.$q=e,this.$templateRequest=t,this.$injector=n,this.$compile=o,this.$controller=r}this.$get=["$q","$templateRequest","$injector","$compile","$controller",function(t,n,o,r,i){return new e(t,n,o,r,i)}],e.prototype.compile=function(e){return e.contentElement?this._prepareContentElement(e):this._compileTemplate(e)},e.prototype._prepareContentElement=function(e){var t=this._fetchContentElement(e);return this.$q.resolve({element:t.element,cleanup:t.restore,locals:{},link:function(){return t.element}})},e.prototype._compileTemplate=function(e){var n=this,o=e.templateUrl,r=e.template||"",i=t.extend({},e.resolve),a=t.extend({},e.locals),s=e.transformTemplate||t.identity;return t.forEach(i,function(e,o){t.isString(e)?i[o]=n.$injector.get(e):i[o]=n.$injector.invoke(e)}),t.extend(i,a),o?i.$$ngTemplate=this.$templateRequest(o):i.$$ngTemplate=this.$q.when(r),this.$q.all(i).then(function(o){var r=s(o.$$ngTemplate,e),i=e.element||t.element("<div>").html(r.trim()).contents();return n._compileElement(o,i,e)})},e.prototype._compileElement=function(e,n,o){var r=this,i=this.$compile(n),a={element:n,cleanup:n.remove.bind(n),locals:e,link:function s(c){if(e.$scope=c,o.controller){var l=t.extend({},e,{$element:n}),u=r._createController(o,l,e);t.isFunction(u.$onDestroy)&&c.$on("$destroy",function(){t.isFunction(u.$onDestroy)&&u.$onDestroy()}),n.data("$ngControllerController",u),n.children().data("$ngControllerController",u),a.controller=u}return i(c)}};return a},e.prototype._createController=function(e,n,o){var r=this.$controller(e.controller,n);return e.bindToController&&t.extend(r,o),e.controllerAs&&(n.$scope[e.controllerAs]=r),t.isFunction(r.$onInit)&&r.$onInit(),r},e.prototype._fetchContentElement=function(e){var n,o=e.contentElement;return t.isString(o)?n=r(o=document.querySelector(o)):(o=o[0]||o,n=document.contains(o)?r(o):function(){o.parentNode&&o.parentNode.removeChild(o)}),{element:t.element(o),restore:n};function r(e){var t=e.parentNode,n=e.nextElementSibling;return function(){n?t.insertBefore(e,n):t.appendChild(e)}}}}t.module("material.core").provider("$mdCompiler",e),e.$inject=["$compileProvider"]}(),function(){d.$inject=["$$MdGestureHandler","$$rAF","$timeout","$mdUtil"],$.$inject=["$mdGesture","$$MdGestureHandler","$mdUtil"];var n,o,r={},i=6,a=!1,s=!1,c=null,l=!1;function u(){}function d(n,o,s,c){var l=c.getTouchAction(),u=void 0!==e.jQuery&&t.element===e.jQuery,d={handler:function e(o,i){var a=new n(o);return t.extend(a,i),r[o]=a,d},register:function e(t,n,o){var i=r[n.replace(/^\$md./,"")];if(!i)throw Error("Failed to register element with handler "+n+". Available handlers: "+Object.keys(r).join(", "));return i.registerElement(t,o)},isAndroid:c.isAndroid,isIos:c.isIos,isHijackingClicks:(c.isIos||c.isAndroid)&&!u&&!a};function f(e){return function(t,n){n.distance<this.state.options.maxDistance&&this.dispatchEvent(t,e,n)}}return d.isHijackingClicks&&(d.handler("click",{options:{maxDistance:i},onEnd:f("click")}),d.handler("focus",{options:{maxDistance:i},onEnd:function(e,t){t.distance<this.state.options.maxDistance&&b(e.target)&&(this.dispatchEvent(e,"focus",t),e.target.focu
vendor: 9,308 bytes, line 6
6s())}}),d.handler("mouseup",{options:{maxDistance:i},onEnd:f("mouseup")}),d.handler("mousedown",{onStart:function(e){this.dispatchEvent(e,"mousedown")}})),d.handler("press",{onStart:function(e,t){this.dispatchEvent(e,"$md.pressdown")},onEnd:function(e,t){this.dispatchEvent(e,"$md.pressup")}}).handler("hold",{options:{maxDistance:6,delay:500},onCancel:function(){s.cancel(this.state.timeout)},onStart:function(e,n){if(!this.state.registeredParent)return this.cancel();this.state.pos={x:n.x,y:n.y},this.state.timeout=s(t.bind(this,function t(){this.dispatchEvent(e,"$md.hold"),this.cancel()}),this.state.options.delay,!1)},onMove:function(e,t){l||"touchmove"!==e.type||e.preventDefault();var n=this.state.pos.x-t.x,o=this.state.pos.y-t.y;Math.sqrt(n*n+o*o)>this.options.maxDistance&&this.cancel()},onEnd:function(){this.onCancel()}}).handler("drag",{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onSetup:function(e,t){l&&(this.oldTouchAction=e[0].style[l],e[0].style[l]=t.horizontal?"pan-y":"pan-x")},onCleanup:function(e){this.oldTouchAction?e[0].style[l]=this.oldTouchAction:e[0].style[l]=null},onStart:function(e){this.state.registeredParent||this.cancel()},onMove:function(e,t){var n,o;l||"touchmove"!==e.type||e.preventDefault(),this.state.dragPointer?this.dispatchDragMove(e):(this.state.options.horizontal?(n=Math.abs(t.distanceX)>this.state.options.minDistance,o=Math.abs(t.distanceY)>this.state.options.minDistance*this.state.options.cancelMultiplier):(n=Math.abs(t.distanceY)>this.state.options.minDistance,o=Math.abs(t.distanceX)>this.state.options.minDistance*this.state.options.cancelMultiplier),n?(this.state.dragPointer=m(e),g(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragstart",this.state.dragPointer)):o&&this.cancel())},dispatchDragMove:o.throttle(function(e){this.state.isRunning&&(g(e,this.state.dragPointer),this.dispatchEvent(e,"$md.drag",this.state.dragPointer))}),onEnd:function(e,t){this.state.dragPointer&&(g(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragend",this.state.dragPointer))}}).handler("swipe",{options:{minVelocity:.65,minDistance:10},onEnd:function(e,t){var n;Math.abs(t.velocityX)>this.state.options.minVelocity&&Math.abs(t.distanceX)>this.state.options.minDistance?(n="left"==t.directionX?"$md.swipeleft":"$md.swiperight",this.dispatchEvent(e,n)):Math.abs(t.velocityY)>this.state.options.minVelocity&&Math.abs(t.distanceY)>this.state.options.minDistance&&(n="up"==t.directionY?"$md.swipeup":"$md.swipedown",this.dispatchEvent(e,n))}})}function f(e){this.name=e,this.state={}}function $(e,i,a){function u(e){!e.clientX&&!e.clientY||e.$material||e.isIonicTap||h(e)||"mousedown"===e.type&&(b(e.target)||b(document.activeElement))||(e.preventDefault(),e.stopPropagation())}function d(e,t){var o;for(var a in r)(o=r[a])instanceof i&&("start"===e&&o.cancel(),o[e](t,n))}!s&&(!l&&e.isHijackingClicks&&(document.addEventListener("click",function e(n){var o;(o=a.isIos?t.isDefined(n.webkitForce)&&0===n.webkitForce:0===n.clientX&&0===n.clientY)||n.$material||n.isIonicTap||h(n)?(c=null,"label"===n.target.tagName.toLowerCase()&&(c={x:n.x,y:n.y})):(n.preventDefault(),n.stopPropagation(),c=null)},!0),document.addEventListener("mouseup",u,!0),document.addEventListener("mousedown",u,!0),document.addEventListener("focus",u,!0),l=!0),t.element(document).on("mousedown touchstart pointerdown",function e(t){if(!n){var r=+Date.now();(!o||p(t,o)||!(r-o.endTime<1500))&&(n=m(t),d("start",t))}}).on("mousemove touchmove pointermove",function e(t){n&&p(t,n)&&(g(t,n),d("move",t))}).on("mouseup mouseleave touchend touchcancel pointerup pointercancel",function e(t){n&&p(t,n)&&(g(t,n),n.endTime=+Date.now(),"pointercancel"!==t.type&&d("end",t),o=n,n=null)}).on("$$mdGestureReset",function e(){o=n=null}))}function m(e){var t=v(e),n={startTime:+Date.now(),target:e.target,type:e.type.charAt(0)};return n.startX=n.x=t.pageX,n.startY=n.y=t.pageY,n}function p(e,t){return e&&t&&e.type.charAt(0)===t.type}function h(e){return c&&c.x===e.x&&c.y===e.y}function g(e,t){var n=v(e),o=t.x=n.pageX,r=t.y=n.pageY;t.distanceX=o-t.startX,t.distanceY=r-t.startY,t.distance=Math.sqrt(t.distanceX*t.distanceX+t.distanceY*t.distanceY),t.directionX=t.distanceX>0?"right":t.distanceX<0?"left":"",t.directionY=t.distanceY>0?"down":t.distanceY<0?"up":"",t.duration=+Date.now()-t.startTime,t.velocityX=t.distanceX/t.duration,t.velocityY=t.distanceY/t.duration}function v(e){return(e=e.originalEvent||e).touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e}function b(e){return!!e&&"-1"!==e.getAttribute("tabindex")&&!e.hasAttribute("disabled")&&(e.hasAttribute("tabindex")||e.hasAttribute("href")||e.isContentEditable||-1!==["INPUT","SELECT","BUTTON","TEXTAREA","VIDEO","AUDIO"].indexOf(e.nodeName))}t.module("material.core.gestures",[]).provider("$mdGesture",u).factory("$$MdGestureHandler",function o(){var r=void 0!==e.jQuery&&t.element===e.jQuery;return f.prototype={options:{},dispatchEvent:r?function e(o,r,i){i=i||n;var a=new t.element.Event(r);a.$material=!0,a.pointer=i,a.srcEvent=o,t.extend(a,{clientX:i.x,clientY:i.y,screenX:i.x,screenY:i.y,pageX:i.x,pageY:i.y,ctrlKey:o.ctrlKey,altKey:o.altKey,shiftKey:o.shiftKey,metaKey:o.metaKey}),t.element(i.target).trigger(a)}:function t(o,r,i){var a;i=i||n,"click"===r||"mouseup"===r||"mousedown"===r?"function"==typeof e.MouseEvent?a=new MouseEvent(r,{bubbles:!0,cancelable:!0,screenX:Number(o.screenX),screenY:Number(o.screenY),clientX:Number(i.x),clientY:Number(i.y),ctrlKey:o.ctrlKey,altKey:o.altKey,shiftKey:o.shiftKey,metaKey:o.metaKey,button:o.button,buttons:o.buttons,relatedTarget:o.relatedTarget||null}):(a=document.createEvent("MouseEvents")).initMouseEvent(r,!0,!0,e,o.detail,i.x,i.y,i.x,i.y,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.button,o.relatedTarget||null):"function"==typeof e.CustomEvent?a=new CustomEvent(r,{bubbles:!0,cancelable:!0,detail:{}}):(a=document.createEvent("CustomEvent")).initCustomEvent(r,!0,!0,{}),a.$material=!0,a.pointer=i,a.srcEvent=o,i.target.dispatchEvent(a)},onSetup:t.noop,onCleanup:t.noop,onStart:t.noop,onMove:t.noop,onEnd:t.noop,onCancel:t.noop,start:function(e,n){if(!this.state.isRunning){var o=this.getNearestParent(e.target),r=o&&o.$mdGesture[this.name]||{};this.state={isRunning:!0,options:t.extend({},this.options,r),registeredParent:o},this.onStart(e,n)}},move:function(e,t){this.state.isRunning&&this.onMove(e,t)},end:function(e,t){this.state.isRunning&&(this.state.isRunning=!1,this.onEnd(e,t))},cancel:function(e,t){this.onCancel(e,t),this.state={}},getNearestParent:function(e){for(var t=e;t;){if((t.$mdGesture||{})[this.name])return t;t=t.parentNode}return null},registerElement:function(e,t){var n=this;return e[0].$mdGesture=e[0].$mdGesture||{},e[0].$mdGesture[this.name]=t||{},e.on("$destroy",o),n.onSetup(e,t||{}),o;function o(){delete e[0].$mdGesture[n.name],e.off("$destroy",o),n.onCleanup(e,t||{})}}},f}).run($),u.prototype={disableAll:function(){s=!0},skipClickHijack:function(){return a=!0},setMaxClickDistance:function(e){i=parseInt(e)},$get:["$$MdGestureHandler","$$rAF","$timeout","$mdUtil",function(e,t,n,o){return new d(e,t,n,o)}]}}(),function(){function n(n,o,r){this.$timeout=n,this.$mdUtil=o,this.$rootScope=r,this.pointerEvent="MSPointerEvent"in e?"MSPointerDown":"PointerEvent"in e?"pointerdown":null,this.bodyElement=t.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))}n.$inject=["$timeout","$mdUtil","$rootScope"],t.module("material.core.interaction",[]).service("$mdInteraction",n),n.prototype.deregister=function(){this.bodyElement.off("keydown mousedown",this.inputHandler),"ontouchstart"in document.documentElement&&this.bodyElement.off("touchstart",this.bufferedInputHandler),this.pointerEvent&&this.bodyElement.off(this.pointerEvent,this.inputHandler)},n.prototype.initializeEvents=function(){this.bodyElement.on("keydown mousedown",this.inputHandler),"ontouchstart"in document.documentElement&&this.bodyElement.on("touchstart",this.bufferedInputHandler),this.pointerEvent&&this.bodyElement.on(this.pointerEvent,this.inputHandler)},n.prototype.onInputEvent=function(e){if(!this.isBuffering){var t=this.inputEventMap[e.type];"pointer"===t&&(t=this.iePointerMap[e.pointerType]||e.pointerType),this.lastInteractionType=t,this.lastInteractionTime=this.$mdUtil.now()}},n.prototype.onBufferInputEvent=function(e){this.$timeout.cancel(this.bufferTimeout),this.onInputEvent(e),this.isBuffering=!0,this.bufferTimeout=this.$timeout((function(){this.isBuffering=!1}).bind(this),650,!1)},n.prototype.getLastInteractionType=function(){return this.lastInteractionType},n.prototype.isUserInvoked=function(e){var n=t.isNumber(e)?e:15;return this.lastInteractionTime>=this.$mdUtil.now()-n}}(),t.module("material.core").provider("$$interimElement",function e(){return r.$inject=["$document","$q","$rootScope","$timeout","$rootElement","$animate","$mdUtil","$mdCompiler","$mdTheming","$
6injector","$exceptionHandler"],o.$get=r,o;function o(e){s.$inject=["$$interimElement","$injector"];var n=["onHide","onShow","onRemove"],o={},r={presets:{}},i={setDefaults:function e(t){return r.optionsFactory=t.options,r.methods=(t.methods||[]).concat(n),i},addPreset:function t(o,a){if((a=a||{}).methods=a.methods||[],a.options=a.options||function(){return{}},/^cancel|hide|show$/.test(o))throw Error("Preset '"+o+"' in "+e+" is reserved!");if(a.methods.indexOf("_options")>-1)throw Error("Method '_options' in "+e+" is reserved!");return r.presets[o]={methods:a.methods.concat(n),optionsFactory:a.options,argOption:a.argOption},i},addMethod:function e(t,n){return o[t]=n,i},$get:s};return i.addPreset("build",{methods:["controller","controllerAs","resolve","multiple","template","templateUrl","themable","transformTemplate","parent","contentElement"]}),i;function a(e,t,n){r.presets[e][t]=n}function s(n,i){var a,s,c=n(),l={hide:c.hide,cancel:c.cancel,show:function e(n){return(n=n||{})._options&&(n=n._options),c.show(t.extend({},s,n))},destroy:function e(t){return c.destroy(t)}};return a=r.methods||[],s=u(r.optionsFactory,{}),t.forEach(o,function(e,t){l[t]=e}),t.forEach(r.presets,function(e,n){var o=u(e.optionsFactory,{}),r=(e.methods||[]).concat(a);function i(e){this._options=t.extend({},o,e)}t.extend(o,{$type:n}),t.forEach(r,function(e){i.prototype[e]=function(t){return this._options[e]=t,this}}),e.argOption&&(l["show"+n.charAt(0).toUpperCase()+n.slice(1)]=function(e){var t=l[n](e);return l.show(t)}),l[n]=function(n){return arguments.length&&e.argOption&&!t.isObject(n)&&!t.isArray(n)?new i()[e.argOption](n):new i(n)}}),l;function u(t,n){var o={};return o[e]=l,i.invoke(t||function(){return n},{},o)}}}function r(e,o,r,i,a,s,c,l,u,d,f){return function $(){var m,p=[],h=[],g=[];return m={show:function e(t){t=t||{};var n=new b(t||{}),r=t.multiple?o.resolve():o.all(p);t.multiple||(r=r.then(function(){var e=h.concat(g.map(m.cancel));return o.all(e)}));var i=r.then(function(){return n.show().then(function(){g.push(n)}).catch(function(e){return e}).finally(function(){p.splice(p.indexOf(i),1)})});return p.push(i),n.deferred.promise.catch(function(e){return e instanceof Error&&f(e),e}),n.deferred.promise},hide:v(function e(t,r){if((r=r||{}).closeAll)return o.all(g.slice().reverse().map(i));if(n!==r.closeTo)return o.all(g.slice(r.closeTo).map(i));return i(g[g.length-1]);function i(e){if(!e)return o.when(t);var n=e.remove(t,!1,r||{}).catch(function(e){return e}).finally(function(){h.splice(h.indexOf(n),1)});return g.splice(g.indexOf(e),1),h.push(n),e.deferred.promise}}),cancel:v(function e(n,r){var i=g.pop();if(!i)return o.when(n);var a=i.remove(n,!0,r||{}).catch(function(e){return e}).finally(function(){h.splice(h.indexOf(a),1)});return h.push(a),i.deferred.promise.catch(t.noop)}),destroy:function e(n){var r=n?null:g.shift(),i=t.element(n).length&&t.element(n)[0].parentNode;if(i){var a=g.filter(function(e){return e.options.element[0]===i});a.length&&(r=a[0],g.splice(g.indexOf(r),1))}return r?r.remove(!1,!1,{$destroy:!0}):o.when(!1)},$injector_:d};function v(e){return function(){var t=arguments;return g.length?e.apply(m,t):p.length?p[0].finally(function(){return e.apply(m,t)}):o.when("No interim elements currently showing up.")}}function b(d){var f,$,p,h=o.when(!0);return f={options:d=(p=d,(p=p||{}).template&&(p.template=c.processTemplate(p.template)),t.extend({preserveScope:!1,cancelAutoHide:t.noop,scope:p.scope||r.$new(p.isolateScope),onShow:function e(t,n,o){return s.enter(n,o.parent)},onRemove:function e(t,n){return n&&s.leave(n)||o.when()}},p)),deferred:o.defer(),show:function r(){return o(function(r,s){var c;function p(e){f.deferred.reject(e),s(e)}d.onCompiling&&d.onCompiling(d),(c=d,(c.skipCompile?null:l.compile(c))||o(function(e){e({locals:{},link:function(){return c.element}})})).then(function(s){var c,l,f,g,v,b,y;$=(c=s,l=d,t.extend(c.locals,l),f=c.link(l.scope),l.element=f,l.parent=(g=f,v=l,y=v.parent,((y=t.isFunction(y)?y(v.scope,g,v):t.isString(y)?t.element(e[0].querySelector(y)):t.element(y))||{}).length?y:(a[0]&&a[0].querySelector&&(b=a[0].querySelector(":not(svg) > body")),b||(b=a[0]),"#comment"===b.nodeName&&(b=e[0].body),t.element(b))),l.themable&&u(f),f),d.cleanupElement=s.cleanup,h=(function e(r,a,s){var c=a.onShowing||t.noop,l=a.onComplete||t.noop;try{c(a.scope,r,a,s)}catch(u){return o.reject(u)}return o(function(e,s){try{o.when(a.onShow(a.scope,r,a)).then(function(){var o,s;l(a.scope,r,a),s=t.noop,d.hideDelay&&(o=i(m.hide,d.hideDelay),s=function(){i.cancel(o)}),d.cancelAutoHide=function(){s(),d.cancelAutoHide=n},e(r)},s)}catch(c){s(c.message)}})})($,d,s.controller).then(r,p)}).catch(p)})},remove:function e(n,r,i){if(!$)return o.when(!1);if((d=t.extend(d||{},i||{})).cancelAutoHide&&d.cancelAutoHide(),d.element.triggerHandler("$mdInterimElementRemove"),!0===d.$destroy)return g(d.element,d).then(function(){r&&s(n)||a(n)});return o.when(h).finally(function(){g(d.element,d).then(function(){r?s(n):a(n)},s)}),f.deferred.promise;function a(e){f.deferred.resolve(e)}function s(e){f.deferred.reject(e)}}};function g(e,n){var r=n.onRemoving||t.noop;return o(function(t,i){try{var a=o.when(n.onRemove(n.scope,e,n)||!0);r(e,a),n.$destroy?(t(e),!n.preserveScope&&n.scope&&a.then(function(){n.scope.$destroy()})):a.then(function(){!n.preserveScope&&n.scope&&n.scope.$destroy(),t(e)},i)}catch(s){i(s.message)}})}}}}}),function(){var e,n,o,r=/(-gt)?-(sm|md|lg|print)/g,i=/\s+/g,a=["grow","initial","auto","
6none","noshrink","nogrow"],s=["row","column"],c=["","start","center","end","stretch","space-around","space-between"],l=["","start","center","end","stretch"],u={enabled:!0,breakpoints:[]};function d(){var e=!!document.querySelector("[md-layouts-disabled]");u.enabled=!e}function f(){return u.enabled=!1,{restrict:"A",priority:"900"}}function $(r){return["$mdUtil","$interpolate","$log",function(a,s,c){return e=a,n=s,o=c,{restrict:"A",compile:function(e,n){var o;return u.enabled&&(p(r,v(r,n,""),h(e,r,n)),i(null,e),o=i),o||t.noop}}}];function i(e,t){t.addClass(r)}}function m(t,n,o,i){var a,s,c,l=o[0].nodeName.toLowerCase();"flex"===t.replace(r,"")&&("md-button"===l||"fieldset"===l)&&(s="<"+l+" "+t+"></"+l+">",c="https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers",a="Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",i.warn(e.supplant(a,[s,c])))}function p(n,o,u){var d=o;if(!g(o)){switch(n.replace(r,"")){case"layout":b(o,s)||(o=s[0]);break;case"flex":!b(o,a)&&isNaN(o)&&(o="");break;case"flex-offset":case"flex-order":(!o||isNaN(+o))&&(o="0");break;case"layout-align":var f,$,m,p=(f=o,m={main:"start",cross:"stretch"},(0===(f=f||"").indexOf("-")||0===f.indexOf(" "))&&(f="none"+f),($=f.toLowerCase().trim().replace(i,"-").split("-")).length&&"space"===$[0]&&($=[$[0]+"-"+$[1],$[2]]),$.length>0&&(m.main=$[0]||m.main),$.length>1&&(m.cross=$[1]||m.cross),0>c.indexOf(m.main)&&(m.main="start"),0>l.indexOf(m.cross)&&(m.cross="stretch"),m);o=e.supplant("{main}-{cross}",p);break;case"layout-padding":case"layout-margin":case"layout-fill":case"layout-wrap":case"layout-nowrap":o=""}o!==d&&(u||t.noop)(o)}return o?o.trim():""}function h(e,t,n){return function e(o){g(o)||(n[n.$normalize(t)]=o)}}function g(e){return(e||"").indexOf(n.startSymbol())>-1}function v(e,t,n){var o=t.$normalize(e);return t[o]?t[o].trim().replace(i,"-"):n||null}function b(e,t,n){e=n&&e?e.replace(i,n):e;var o=!1;return e&&t.forEach(function(t){t=n?t.replace(i,n):t,o=o||t===e}),o}(function r(a){var s=/^((?:x|data)[:\-_])/i,c=/([:\-_]+(.))/g,l=["layout","flex","flex-order","flex-offset","layout-align"],g=["show","hide","layout-padding","layout-margin"];function b(e){return e.replace(s,"").replace(c,function(e,t,n,o){return o?n.toUpperCase():n})}var y="ng-cloak";t.forEach(["","xs","gt-xs","sm","gt-sm","md","gt-md","lg","gt-lg","xl","print"],function(r){t.forEach(l,function(s){var c=r?s+"-"+r:s;a.directive(b(c),function r(a){return["$mdUtil","$interpolate","$log",function(r,i,c){return e=r,n=i,o=c,{restrict:"A",compile:function(e,n){var r;return u.enabled&&(m(a,n,e,o),p(a,v(a,n,""),h(e,a,n)),r=s),r||t.noop}}}];function s(e,n,o){var r,s,c,l=(r=n,s=a,function e(n){var o=p(s,n||"");t.isDefined(o)&&(c&&r.removeClass(c),c=o?s+"-"+o.trim().replace(i,"-"):s,r.addClass(c))}),u=o.$observe(o.$normalize(a),l);l(v(a,o,"")),e.$on("$destroy",function(){u()})}}(c))}),t.forEach(g,function(e){var t=r?e+"-"+r:e;a.directive(b(t),$(t))})}),a.provider("$$mdLayout",function(){return{$get:t.noop,validateAttributeValue:p,validateAttributeUsage:m,disableLayouts:function(e){u.enabled=!0!==e}}}).directive("mdLayoutCss",f).directive("ngCloak",["$timeout",function(e){return{restrict:"A",priority:-10,compile:function(n){return u.enabled?(n.addClass(y),function(t,n){e(function(){n.removeClass(y)},10,!1)}):t.noop}}}]).directive("layoutWrap",$("layout-wrap")).directive("layoutNowrap",$("layout-nowrap")).directive("layoutNoWrap",$("layout-no-wrap")).directive("layoutFill",$("layout-fill")).config(d)})(t.module("material.core.layout",["ng"]))}(),function(){function e(e){this._$timeout=e,this._liveElement=this._createLiveElement(),this._announceTimeout=100}e.$inject=["$timeout"],t.module("material.core").service("$mdLiveAnnouncer",e),e.prototype.announce=function(e,t){t||(t="polite");var n=this;n._liveElement.textContent="",n._liveElement.setAttribute("aria-live",t),n._$timeout(function(){n._liveElement.textContent=e},n._announceTimeout,!1)},e.prototype._createLiveElement=function(){var e=document.createElement("div");return e.classList.add("md-visually-hidden"),e.setAttribute("role","status"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),document.body.appendChild(e),e}}(),t.module("material.core.meta",[]).provider("$$mdMeta",function(){var e=t.element(document.head),n={};function o(e){if(n[e])return!0;var o=document.getElementsByName(e)[0];return!!o&&(n[e]=t.element(o),!0)}
6var r={setMeta:function r(i,a){if(o(i),n[i])n[i].attr("content",a);else{var s=t.element('<meta name="'+i+'" content="'+a+'"/>');e.append(s),n[i]=s}return function(){n[i].attr("content",""),n[i].remove(),delete n[i]}},getMeta:function e(t){if(!o(t))throw Error("$$mdMeta: could not find a meta tag with the name '"+t+"'");return n[t].attr("content")}};return t.extend({},r,{$get:function(){return r}})}),function(){function e(e,o){var r,i=[],a={};return r={notFoundError:function(t,n){e.error((n||"")+"No instance found for handle",t)},getInstances:function(){return i},get:function(e){var t,n,o;if(!s(e))return null;for(t=0,n=i.length;t<n;t++)if((o=i[t]).$$mdHandle===e)return o;return null},register:function(e,n){var o;return n?(e.$$mdHandle=n,i.push(e),(o=a[n])&&(o.forEach(function(t){t.resolve(e)}),delete a[n]),function t(){var n=i.indexOf(e);-1!==n&&i.splice(n,1)}):t.noop},when:function(e){if(s(e)){var t=o.defer(),i=r.get(e);return i?t.resolve(i):(n===a[e]&&(a[e]=[]),a[e].push(t)),t.promise}return o.reject("Invalid `md-component-id` value.")}};function s(e){return e&&""!==e}}e.$inject=["$log","$q"],t.module("material.core").factory("$mdComponentRegistry",e)}(),function(){function e(e){return{attach:function n(o,r,i){var a;return i=t.extend((a=r,a.hasClass("md-icon-button")?{isMenuItem:a.hasClass("md-menu-item"),fitRipple:!0,center:!0}:{isMenuItem:a.hasClass("md-menu-item"),dimBackground:!0}),i),e.attach(o,r,i)}}}e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdButtonInkRipple",e)}(),function(){function e(e){return{attach:function n(o,r,i){return e.attach(o,r,t.extend({center:!0,dimBackground:!1,fitRipple:!0},i))}}}e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdCheckboxInkRipple",e)}(),function(){function e(e){return{attach:function n(o,r,i){return e.attach(o,r,t.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},i))}}}e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdListInkRipple",e)}(),function(){function e(e,n){return{controller:t.noop,link:function(t,o,r){r.hasOwnProperty("mdInkRippleCheckbox")?n.attach(t,o):e.attach(t,o)}}}function n(e,n,o,r,i,a,s){this.$window=r,this.$timeout=i,this.$mdUtil=a,this.$mdColorUtil=s,this.$scope=e,this.$element=n,this.options=o,this.mousedown=!1,this.ripples=[],this.timeout=null,this.lastRipple=null,a.valueOnUse(this,"container",this.createContainer),this.$element.addClass("md-ink-ripple"),(n.controller("mdInkRipple")||{}).createRipple=t.bind(this,this.createRipple),(n.controller("mdInkRipple")||{}).setColor=t.bind(this,this.color),this.bindEvents()}function o(e,n){(e.mousedown||e.lastRipple)&&(e.mousedown=!1,e.$mdUtil.nextTick(t.bind(e,n),!1))}function r(){return{controller:t.noop}}n.$inject=["$scope","$element","rippleOptions","$window","$timeout","$mdUtil","$mdColorUtil"],e.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],t.module("material.core").provider("$mdInkRipple",function e(){var o=!1;return{disableInkRipple:function e(){o=!0},$get:["$injector",function(e){return{attach:function r(i,a,s){return o||a.controller("mdNoInk")?t.noop:e.instantiate(n,{$scope:i,$element:a,rippleOptions:s})}}}]}}).directive("mdInkRipple",e).directive("mdNoInk",r).directive("mdNoBar",r).directive("mdNoStretch",r),n.prototype.color=function(e){var n,o,r=this;return t.isDefined(e)&&(r._color=r._parseColor(e)),r._color||r._parseColor(r.inkRipple())||r._parseColor((n=r.options&&r.options.colorElement?r.options.colorElement:[],o=n.length?n[0]:r.$element[0],o?r.$window.getComputedStyle(o).color:"rgb(0,0,0)"))},n.prototype.calculateColor=function(){return this.color()},n.prototype._parseColor=function e(t,n){n=n||1;var o=this.$mdColorUtil;if(t){if(0===t.indexOf("rgba"))return t.replace(/\d?\.?\d*\s*\)\s*$/,(.1*n).toString()+")");if(0===t.indexOf("rgb"))return o.rgbToRgba(t);if(0===t.indexOf("#"))return o.hexToRgba(t)}},n.prototype.bindEvents=function(){this.$element.on("mousedown",t.bind(this,this.handleMousedown)),this.$element.on("mouseup touchend",t.bind(this,this.handleMouseup)),this.$element.on("mouseleave",t.bind(this,this.handleMouseup)),this.$element.on("touchmove",t.bind(this,this.handleTouchmove))},n.prototype.handleMousedown=function(e){if(!this.mousedown){if(e.hasOwnProperty("originalEvent")&&(e=e.originalEvent),this.mousedown=!0,this.options.center)this.createRipple(this.container.prop("clientWidth")/2,this.container.prop("clientWidth")/2);else if(e.srcElement!==this.$element[0]){var t=this.$element[0].getBoundingClientRect(),n=e.clientX-t.left,o=e.clientY-t.top;this.createRipple(n,o)}else this.createRipple(e.offsetX,e.offsetY)}},n.prototype.handleMouseup=function(){this.$timeout((function(){o(this,this.clearRipples)}).bind(this))},n.prototype.handleTouchmove=function(){o(this,this.deleteRipples)},n.prototype.deleteRipples=function(){for(var e=0;e<this.ripples.length;e++)this.ripples[e].remove()},n.prototype.clearRipples=function(){for(var e=0;e<this.ripples.length;e++)this.fadeInComplete(this.ripples[e])},n.prototype.createContainer=function(){var e=t.element('<div class="md-ripple-container"></div>');return this.$element.append(e),e},n.prototype.clearTimeout=function(){this.timeout&&(this.$timeout.cancel(this.timeout),this.timeout=null)},n.prototype.isRippleAllowed=function(){var e=this.$element[0];do{if(!e.tagName||"BODY"===e.tagName)break;
vendor: 21,257 bytes, line 6
6if(e&&t.isFunction(e.hasAttribute)&&(e.hasAttribute("disabled")||"false"===this.inkRipple()||"0"===this.inkRipple()))return!1}while(e=e.parentNode);return!0},n.prototype.inkRipple=function(){return this.$element.attr("md-ink-ripple")},n.prototype.createRipple=function(e,n){if(this.isRippleAllowed()){var o,r,i,a=this,s=a.$mdColorUtil,c=t.element('<div class="md-ripple"></div>'),l=this.$element.prop("clientWidth"),u=this.$element.prop("clientHeight"),d=(o=this.options.fitRipple,r=2*Math.max(Math.abs(l-e),e),i=2*Math.max(Math.abs(u-n),n),o?Math.max(r,i):Math.sqrt(Math.pow(r,2)+Math.pow(i,2))),f=this.calculateColor();c.css({left:e+"px",top:n+"px",background:"black",width:d+"px",height:d+"px",backgroundColor:s.rgbaToRgb(f),borderColor:s.rgbaToRgb(f)}),this.lastRipple=c,this.clearTimeout(),this.timeout=this.$timeout(function(){a.clearTimeout(),a.mousedown||a.fadeInComplete(c)},157.5,!1),this.options.dimBackground&&this.container.css({backgroundColor:f}),this.container.append(c),this.ripples.push(c),c.addClass("md-ripple-placed"),this.$mdUtil.nextTick(function(){c.addClass("md-ripple-scaled md-ripple-active"),a.$timeout(function(){a.clearRipples()},450,!1)},!1)}},n.prototype.fadeInComplete=function(e){this.lastRipple===e&&(this.timeout||this.mousedown)||this.removeRipple(e)},n.prototype.removeRipple=function(e){var t=this;0>this.ripples.indexOf(e)||(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))},n.prototype.fadeOutComplete=function(e){e.remove(),this.lastRipple=null}}(),function(){function e(e){return{attach:function n(o,r,i){return e.attach(o,r,t.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},i))}}}e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdTabInkRipple",e)}(),t.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(e){function t(e){var t=!!document.querySelector("[md-themes-disabled]");e.disableTheming(t)}t.$inject=["$mdThemingProvider"],b.$inject=["$mdTheming","$interpolate","$parse","$mdUtil","$q","$log"],y.$inject=["$mdTheming"],v.$inject=["$mdColorPalette","$$mdMetaProvider"],C.$inject=["$injector","$mdTheming"],e.module("material.core.theming",["material.core.theming.palette","material.core.meta"]).directive("mdTheme",b).directive("mdThemable",y).directive("mdThemesDisabled",function e(){return g.disableTheming=!0,{restrict:"A",priority:"900"}}).provider("$mdTheming",v).config(t).run(C);var o,r={},i={name:"dark"},a={name:"light"},s=E("rgba(0,0,0,0.87)"),c=E("rgba(255,255,255,0.87)"),l=E("rgb(255,255,255)"),u=["primary","accent","warn","background"],d={accent:{default:"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"},background:{default:"50","hue-1":"A100","hue-2":"100","hue-3":"300"}},f={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},p={icon:1,secondary:.7,disabled:.5,hint:.5,divider:.12};u.forEach(function(e){var t={default:"500","hue-1":"300","hue-2":"800","hue-3":"A100"};d[e]||(d[e]=t),f[e]||(f[e]=t)});var h=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],g={disableTheming:!1,generateOnDemand:!1,registeredStyles:[],nonce:null};function v(t,r){A.$inject=["$rootScope","$mdUtil","$q","$log"],o={};var s,c={},l=!1,$="default";e.extend(o,t);var m=function(e){var t=r.setMeta("theme-color",e),n=r.setMeta("msapplication-navbutton-color",e);return function(){t(),n()}},p=function(t){var n=(t=e.isObject(t)?t:{}).theme||"default",r=t.hue||"800",i=o[t.palette]||o[c[n].colors[t.palette||"primary"].name],a=e.isObject(i[r])?i[r].hex:i[r];return"#"!==a.substr(0,1)&&(a="#"+a),m(a)};return s={definePalette:function e(t,n){return n=n||{},o[t]=v(t,n),s},extendPalette:function t(n,r){return v(n,e.extend({},o[n]||{},r))},theme:b,configuration:function(){return e.extend({},g,{defaultTheme:$,alwaysWatchTheme:l,registeredStyles:[].concat(g.registeredStyles)})},disableTheming:function(t){g.disableTheming=e.isUndefined(t)||!!t},registerStyles:function(e){g.registeredStyles.push(e)},setNonce:function(e){g.nonce=e},generateThemesOnDemand:function(e){g.generateOnDemand=e},setDefaultTheme:function(e){$=e},alwaysWatchTheme:function(e){l=e},enableBrowserColor:p,$get:A,_LIGHT_DEFAULT_HUES:d,_DARK_DEFAULT_HUES:f,_PALETTES:o,_THEMES:c,_parseRules:_,_rgba:T};function v(e,t){var n=h.filter(function(e){return!t[e]});if(n.length)throw Error("Missing colors %1 in palette %2!".replace("%1",n.join(", ")).replace("%2",e));return t}function b(t,n){if(c[t])return c[t];var o="string"==typeof(n=n||"default")?c[n]:n,r=new y(t);return o&&e.forEach(o.colors,function(t,n){r.colors[n]={name:t.name,hues:e.extend({},t.hues)}}),c[t]=r,r}function y(t){var n=this;function o(t){if(t=0===arguments.length||!!t,t!==n.isDark){n.isDark=t,n.foregroundPalette=n.isDark?a:i,n.foregroundShadow=n.isDark?"1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)":"";var o=n.isDark?f:d,r=n.isDark?d:f;return e.forEach(o,function(e,t){var o=n.colors[t],i=r[t];if(o)for(var a in o.hues)o.hues[a]===i[a]&&(o.hues[a]=e[a])}),n}}n.name=t,n.colors={},n.dark=o,o(!1),u.forEach(function(t){var o=(n.isDark?f:d)[t];n[t+"Palette"]=function r(i,a){var s=n.colors[t]={name:i,hues:e.extend({},o,a)};return Object.keys(s.hues).forEach(function(e){if(!o[e])throw Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4".replace("%1",e).replace("%2",n.name).replace("%3",i).replace("%4",Object.keys(o).join(", ")))}),Object.keys(s.hues).map(function(e){return s.hues[e]}).forEach(function(e){if(-1===h.indexOf(e))throw Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5".replace("%1",e).replace("%2",n.name).replace("%3",t).replace("%4",i).replace("%5",h.join(", ")))}),n}})}function A(t,r,i,a){var s=function(e,o){o===n&&(o=e,e=n),e===n&&(e=t),s.inherit(o,o)};return Object.defineProperty(s,"THEMES",{get:function(){return e.extend({},c)}}),Object.defineProperty(s,"PALETTES",{get:function(){return e.extend({},o)}}),Object.defineProperty(s,"ALWAYS_WATCH",{get:function(){return l}}),s.inherit=function e(t,o){var i=o.controller("mdTheme")||t.data("$mdThemeController"),s=t.scope();if(m(i&&i.$mdTheme||("default"===$?"":$)),i){var c=l||i.$shouldWatch||r.parseAttributeBoolean(t.attr("md-theme-watch"));if(c||i.isAsyncTheme){var d=function(){f&&(f(),f=n)},f=i.registerChanges(function(e){m(e),c||d()});s?s.$on("$destroy",d):t.on("$destroy",d)}}function m(e){if(e){u(e)||a.warn("Attempted to use unregistered theme '"+e+"'. Register it with $mdThemingProvider.theme().");var n=t.data("$mdThemeName");n&&t.removeClass("md-"+n+"-theme"),t.addClass("md-"+e+"-theme"),t.data("$mdThemeName",e),i&&t.data("$mdThemeController",i)}}},s.registered=u,s.defaultTheme=function(){return $},s.generateTheme=function(e){w(c[e],e,g.nonce)},s.defineTheme=function(e,t){t=t||{};var n=b(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),i.resolve(e)},s.setBrowserColor=p,s;function u(e){return e===n||""===e||n!==s.THEMES[e]}}}function b(t,n,o,r,i,a){return{priority:101,link:{pre:function(s,c,l){var u=[],d=n.startSymbol(),f=n.endSymbol(),$=l.mdTheme.trim(),m=$.substr(0,d.length)===d&&$.lastIndexOf(f)===$.length-f.length,p="::"===l.mdTheme.split(d).join("").split(f).join("").trim().substr(0,2),h=function(){var e=n(l.mdTheme)(s);return o(e)(s)||e},g={isAsyncTheme:e.isFunction(h())||e.isFunction(h().then),registerChanges:function(t,n){return n&&(t=e.bind(n,t)),u.push(t),function(){var e=u.indexOf(t);e>-1&&u.splice(e,1)}},$setTheme:function(e){t.registered(e)||a.warn("attempted to use unregistered theme '"+e+"'"),g.$mdTheme=e;for(var n=u.length;n--;)u[n](e)},$shouldWatch:r.parseAttributeBoolean(c.attr("md-theme-watch"))||t.ALWAYS_WATCH||m&&!p};c.data("$mdThemeController",g);var v=function(t){if("string"==typeof t)return g.$setTheme(t);i.when(e.isFunction(t)?t():t).then(function(e){g.$setTheme(e)})};v(h());var b=s.$watch(h,function(e){e&&(v(e),g.$shouldWatch||b())})}}}}function y(e){return e}function _(t,n,r){(function e(t,n){if(!o[(t.colors[n]||{}).name])throw Error("You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3".replace("%1",t.name).replace("%2",n).replace("%3",Object.keys(o).join(", ")))})(t,n),r=r.replace(/THEME_NAME/g,t.name);var i=RegExp("\\.md-"+t.name+"-theme","g"),a=RegExp("(['\"])?{{\\s*([a-zA-Z]+)-?(color|default)?-?(contrast)?-?((?:\\d\\.?\\d*)|(?:[a-zA-Z]+))?\\s*}}([\"'])?","g"),s=t.colors.background.hues.default,c=o[t.colors.background.name][s].contrastType;r=r.replace(/'?"?{{\s*([a-zA-Z]+)-(A?\d+|hue-[0-3]|shadow|default)-?(contrast)?-?((?:\d\.?\d*)|(?:[a-zA-Z]+))?\s*}}'?"?/g,function(e,n,r,i,a){var s=n;if("foreground"===n){if("shadow"===r)return t.foregroundShadow;if(t.foregroundPalette[r])return T(E(t.foregroundPalette[r]));if(t.foregroundPalette["1"])return T(E(t.foregroundPalette["1"]));if(n="background",i="contrast",!a&&r)switch(r){case"2":a="secondary";break;case"3":a="disabled";break;case"4":a="divider"}r="default"}(0===r.indexOf("hue")||"default"===r)&&(r=t.colors[n].hues[r]);var l=o[t.colors[n].name][r]||"";if("background"===n&&i&&"foreground"!==s&&l.contrastType===c)switch(a){case"secondary":case"icon":if(t.foregroundPalette["2"])return T(E(t.foregroundPalette["2"]));break;case"disabled":case"hint":if(t.foregroundPalette["3"])return T(E(t.foregroundPalette["3"]));break;case"divider":if(t.foregroundPalette["4"])return T(E(t.foregroundPalette["4"]));break;default:if(t.foregroundPalette["1"])return T(E(t.foregroundPalette["1"]))}return i&&a&&(a=l.opacity[a]||a),T(l[i?"contrast":"value"],a)});var l=[];return e.forEach(["default","hue-1","hue-2","hue-3"],function(e){var n=r.replace(a,function(n,r,i,a,s,c){var l=t.colors[i],u=o[l.name],d=l.hues[e];return s&&c&&(c=u[d].opacity[c]||c),T(u[d]["color"===a?"value":"contrast"],c)});"default"!==e&&(n=n.replace(i,".md-"+t.name+"-theme.md-"+e)),"default"===t.name&&(n=n.replace(/((?:\s|>|\.|\w|-|:|\(|\)|\[|]|"|'|=)*)\.md-default-theme((?:\s|>|\.|\w|-|:|\(|\)|\[|]|"|'|=)*)/g,function(e,t,n){return e+", "+t+n})),l.push(n)}),l}var A={};function C(t,n){var i=document.head,a=i?i.firstElementChild:null,d=!g.disableTheming&&t.has("$MD_THEME_CSS")?t.get("$MD_THEME_CSS"):"";if(d+=g.registeredStyles.join(""),a&&0!==d.length){e.forEach(o,function t(n){var o=n.contrastDefaultColor,r=n.contrastLightColors||[],i=n.contrastStrongLightColors||[],a=n.contrastDarkColors||[];"string"==typeof r&&(r=r.split(" ")),"string"==typeof i&&(i=i.split(" ")),"string"==typeof a&&(a=a.split(" ")),delete n.contrastDefaultColor,delete n.contrastLightColors,delete n.contrastStrongLightColors,delete n.contrastDarkColors,e.forEach(n,function(t,u){if(!e.isObject(t)){var d=E(t);if(!d)throw Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected.".replace("%1",t).replace("%2",n.name).replace("%3",u));var f,h=(f=u,("light"===o?-1!==a.indexOf(f):-1===r.indexOf(f)&&-1===i.indexOf(f))?"dark":-1!==i.indexOf(f)?"strongLight":"light");n[u]={hex:n[u],value:d,contrastType:h,contrast:function e(t){switch(t){default:case"strongLight":return l;case"light":return c;case"dark":return s}}(h),opacity:function e(t){switch(t){default:case"strongLight":return p;case"light":return m;case"dark":return $}}(h)}}})});var f=(function e(t){for(var n=[],o="",r=0,i=0,a=0;a<t.length;a++){var s=t.charAt(a);if("'"===s||'"'===s){var c=t.substring(a,t.indexOf(s,a+1));o+=c,a+=c.length}else o+=s,"}"===s?++i===r&&(i=0,r=0,n.push(o),o=""):"{"===s&&r++}return""!==o&&n.push(o),n})(d).map(function(e){return e.trim()});u.forEach(function(e){A[e]=""}),f.forEach(function(e){for(var t,n=0;t=u[n];n++)if(e.indexOf(".md-"+t)>-1)return A[t]+=e;for(n=0;t=u[n];n++)if(e.indexOf(t)>-1)return A[t]+=e;return A.primary+=e}),g.generateOnDemand||e.forEach(n.THEMES,function(e){r[e.name]||"default"!==n.defaultTheme()&&"default"===e.name||w(e,e.name,g.nonce)})}}function w(e,t,n){var o=document.head,i=o?o.firstElementChild:null;r[t]||(u.forEach(function(t){for(var r=_(e,t,A[t]);r.length;){var a=r.shift();if(a){var s=document.createElement("style");s.setAttribute("md-theme-style",""),n&&s.setAttribute("nonce",n),s.appendChild(document.createTextNode(a)),o.insertBefore(s,i)}}}),r[e.name]=!0)}function E(t){if(e.isArray(t)&&3===t.length)return t;if(/^rgb/.test(t))return t.replace(/(^\s*rgba?\(|\)\s*$)/g,"").split(",").map(function(e,t){return 3===t?parseFloat(e):parseInt(e,10)});if("#"===t.charAt(0)&&(t=t.substring(1)),/^([a-fA-F0-9]{3}){1,2}$/g.test(t)){var n=t.length/3,o=t.substr(0,n),r=t.substr(n,n),i=t.substr(2*n);return 1===n&&(o+=o,r+=r,i+=i),[parseInt(o,16),parseInt(r,16),parseInt(i,16)]}}function T(t,n){return t?(4===t.length&&(t=e.copy(t),n?t.pop():n=t.pop()),n&&("number"==typeof n||"string"==typeof n&&n.length)?"rgba("+t.join(",")+","+n+")":"rgb("+t.join(",")+")"):"rgb('0,0,0')"}}(e.angular),t.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function e(n,o,r,i,a,s,c,l){return{restrict:"E",link:function e(u,d,f){var $;function m(){var e=parseInt($.height,10)+Math.abs(parseInt($.top,10));d.css("height",e+"px")}r.pin&&r.pin(d,i),c(function(){if("fixed"===($=a.getComputedStyle(l[0].body)).position){var e=o.debounce(function(){$=a.getComputedStyle(l[0].body),m()},60,null,!1);m(),t.element(a).on("resize",e),u.$on("$destroy",function(){t.element(a).off("resize",e)})}var r=d.parent();r.length&&("BODY"===r[0].nodeName&&d.css("position","fixed"),"static"===a.getComputedStyle(r[0]).position&&s.warn("<md-backdrop> may not work properly in a scrolled, static-positioned parent container."),n.inherit(d,r))})}}}]),function(){function e(e,n,o){return{restrict:"E",link:function(r,i){i.addClass("_md"),n(i),e(function(){var e,n=i[0].querySelector("md-dialog-content");function a(){i.toggleClass("md-content-overflow",n.scrollHeight>n.clientHeight)}n&&(e=n.getElementsByTagName("img"),a(),t.element(e).on("load",a)),r.$on("$destroy",function(){o.destroy(i)})})}}}function o(e){var o,r,i;return s.$inject=["$mdDialog","$mdConstant"],c.$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:c}).addPreset("alert",{methods:["title","htmlContent","textContent","ariaLabel","ok","theme","css"],options:a}).addPreset("confirm",{methods:["title","htmlContent","textContent","ariaLabel","ok","cancel","theme","css"],options:a}).addPreset("prompt",{methods:["title","htmlContent","textContent","initialValue","placeholder","ariaLabel","ok","cancel","theme","css","required"],options:a});function a(){return{template:'<md-dialog md-theme="{{ dialog.theme || dialog.defaultTheme }}" aria-label="{{ dialog.ariaLabel }}" ng-class="dialog.css">  <md-dialog-content class="md-dialog-content" role="document" tabIndex="-1">    <h2 class="md-title">{{ dialog.title }}</h2>
6    <div ng-if="::dialog.mdHtmlContent" class="md-dialog-content-body"         ng-bind-html="::dialog.mdHtmlContent"></div>    <div ng-if="::!dialog.mdHtmlContent" class="md-dialog-content-body">      <p>{{::dialog.mdTextContent}}</p>    </div>    <md-input-container md-no-float ng-if="::dialog.$type == \'prompt\'" class="md-prompt-input-container">      <input ng-keypress="dialog.keypress($event)" md-autofocus ng-model="dialog.result"              placeholder="{{::dialog.placeholder}}" ng-required="dialog.required">    </md-input-container>  </md-dialog-content>  <md-dialog-actions>    <md-button ng-if="dialog.$type === \'confirm\' || dialog.$type === \'prompt\'"               ng-click="dialog.abort()" class="md-primary md-cancel-button">      {{ dialog.cancel }}    </md-button>    <md-button ng-click="dialog.hide()" class="md-primary md-confirm-button" md-autofocus="dialog.$type===\'alert\'"               ng-disabled="dialog.required && !dialog.result">      {{ dialog.ok }}    </md-button>  </md-dialog-actions></md-dialog>'.replace(/\s\s+/g,""),controller:s,controllerAs:"dialog",bindToController:!0}}function s(e,n){this.$onInit=function(){var o="prompt"===this.$type;o&&this.initialValue&&(this.result=this.initialValue),this.hide=function(){e.hide(!o||this.result)},this.abort=function(){e.cancel()},this.keypress=function(r){var i=o&&this.required&&!t.isDefined(this.result);r.keyCode!==n.KEY_CODE.ENTER||i||e.hide(this.result)}}}function c(e,a,s,c,l,u,d,f,$,m,p,h,g){return{hasBackdrop:!0,isolateScope:!0,onCompiling:function e(n){n.defaultTheme=p.defaultTheme(),function e(n){n.targetEvent&&n.targetEvent.target&&(o=t.element(n.targetEvent.target));var o,r=o&&o.controller("mdTheme");if(n.hasTheme=!!r,n.hasTheme){n.themeWatch=r.$shouldWatch;var i=n.theme||r.$mdTheme;i&&(n.scope.theme=i);var a=r.registerChanges(function(e){n.scope.theme=e,n.themeWatch||a()})}}(n)},onShow:function m(p,h,y){t.element(u[0].body).addClass("md-dialog-is-showing");var _,A,C,w,E,T,x,k,S,D,O,I,R,N,P,M,L,j,F=h.find("md-dialog");return F.hasClass("ng-cloak")&&$.warn("$mdDialog: using `<md-dialog ng-cloak>` will affect the dialog opening animations.",h[0]),function e(o){function r(e,o){var r=t.element(e||{});if(r&&r.length){var i=t.isFunction(r[0].getBoundingClientRect);return t.extend(o||{},{element:i?r:n,bounds:i?r[0].getBoundingClientRect():t.extend({},{top:0,left:0,height:0,width:0},r[0]),focus:t.bind(r,r.focus)})}}function i(e,n){return t.isString(e)&&(e=u[0].querySelector(e)),t.element(e||n)}o.origin=t.extend({element:null,bounds:null,focus:t.noop},o.origin||{}),o.parent=i(o.parent,f),o.closeTo=r(i(o.closeTo)),o.openFrom=r(i(o.openFrom)),o.targetEvent&&(o.origin=r(o.targetEvent.target,o.origin),o.originInteraction=g.getLastInteractionType())}(y),_=F,C="alert"===(A=y).$type?"alertdialog":"dialog",w=_.find("md-dialog-content"),T="dialogContent_"+((E=_.attr("id"))||s.nextUid()),_.attr({role:C,tabIndex:"-1"}),0===w.length&&(w=_,E&&(T=E)),w.attr("id",T),_.attr("aria-describedby",T),A.ariaLabel?a.expect(_,"aria-label",A.ariaLabel):a.expectAsync(_,"aria-label",function(){if(A.title)return A.title;var e=w.text().split(/\s+/);return e.length>3&&(e=e.slice(0,3).concat("...")),e.join(" ")}),(o=document.createElement("div")).classList.add("md-dialog-focus-trap"),o.tabIndex=0,r=o.cloneNode(!1),x=function(e){if(e.target&&e.target.nextSibling&&"MD-DIALOG"===e.target.nextSibling.nodeName){var n=s.getLastTabbableElement(_[0]);t.isElement(n)&&n.focus()}else _.focus()},o.addEventListener("focus",x),r.addEventListener("focus",x),i=function(){o.removeEventListener("focus",x),r.removeEventListener("focus",x),o&&o.parentNode&&o.parentNode.removeChild(o),r&&r.parentNode&&r.parentNode.removeChild(r)},_[0].parentNode.insertBefore(o,_[0]),_.after(r),k=p,S=h,(D=y).disableParentScroll&&(D.restoreScroll=s.disableScrollAround(S,D.parent)),D.hasBackdrop&&(D.backdrop=s.createBackdrop(k,"md-dialog-backdrop md-opaque"),l.enter(D.backdrop,D.parent)),D.hideBackdrop=function e(t){D.backdrop&&(t?D.backdrop.remove():l.leave(D.backdrop)),D.disableParentScroll&&(D.restoreScroll&&D.restoreScroll(),delete D.restoreScroll),D.hideBackdrop=null},function n(o,r){var i=t.element(d),a=s.debounce(function(){v(o,r)},60),l=[],u=function(){var t="alert"===r.$type?e.hide:e.cancel;s.nextTick(t,!0)};if(r.escapeToClose){var f=r.parent,$=function(e){e.keyCode===c.KEY_CODE.ESCAPE&&(e.stopImmediatePropagation(),e.preventDefault(),u())};
6o.on("keydown",$),f.on("keydown",$),l.push(function(){o.off("keydown",$),f.off("keydown",$)})}if(i.on("resize",a),l.push(function(){i.off("resize",a)}),r.clickOutsideToClose){var m,p=o,h=function(e){m=e.target},g=function(e){m===p[0]&&e.target===p[0]&&(e.stopPropagation(),e.preventDefault(),u())};p.on("mousedown",h),p.on("mouseup",g),l.push(function(){p.off("mousedown",h),p.off("mouseup",g)})}r.deactivateListeners=function(){l.forEach(function(e){e()}),r.deactivateListeners=null}}(h,y),(O=h,I=y,I.parent.append(O),I.reverseContainerStretch=v(O,I),R=O.find("md-dialog"),N=s.dom.animator,P=N.calculateZoomToOrigin,M={transitionInClass:"md-transition-in",transitionOutClass:"md-transition-out"},L=N.toTransformCss(P(R,I.openFrom||I.origin)),j=N.toTransformCss(""),R.toggleClass("md-dialog-fullscreen",!!I.fullscreen),N.translate3d(R,L,j,M).then(function(e){return I.reverseAnimate=function(){return(delete I.reverseAnimate,I.closeTo)?(M={transitionInClass:"md-transition-out",transitionOutClass:"md-transition-in"},L=j,j=N.toTransformCss(P(R,I.closeTo)),N.translate3d(R,L,j,M)):e(j=N.toTransformCss(P(R,I.origin)))},I.clearAnimate=function(){return delete I.clearAnimate,R.removeClass([M.transitionOutClass,M.transitionInClass].join(" ")),N.translate3d(R,j,N.toTransformCss(""),{})},!0})).then(function(){(function e(t,n){var o=!0;function r(e){for(var t=function e(t){for(var n=[];t.parentNode&&t!==document.body;){for(var o=t.parentNode.children,r=0;r<o.length;r++)t===o[r]||b(o[r],["SCRIPT","STYLE"])||o[r].hasAttribute("aria-live")||n.push(o[r]);t=t.parentNode}return n}(e),n=0;n<t.length;n++)t[n].setAttribute("aria-hidden",o)}r(t[0]),n.unlockScreenReader=function(){o=!1,r(t[0]),n.unlockScreenReader=null}})(h,y),y.focusOnOpen&&(s.findFocusTarget(h)||h[0].querySelector(".dialog-close, md-dialog-actions button:last-child")||F).focus()})},onShowing:function e(t,n,o,r){if(r){var i=r.htmlContent||o.htmlContent||"",a=r.textContent||o.textContent||"";if(i&&!m.has("$sanitize"))throw Error("The ngSanitize module must be loaded in order to use htmlContent.");if(i&&a)throw Error("md-dialog cannot have both `htmlContent` and `textContent`");r.mdHtmlContent=i,r.mdTextContent=a}},onRemove:function e(n,o,r){var a,s;return r.deactivateListeners(),r.unlockScreenReader(),r.hideBackdrop(r.$destroy),i&&(i(),i=null),r.$destroy?c():(a=o,s=r,s.reverseAnimate().then(function(){s.contentElement&&s.clearAnimate()})).then(c);function c(){t.element(u[0].body).removeClass("md-dialog-is-showing"),r.contentElement&&r.reverseContainerStretch(),r.cleanupElement(),r.$destroy||"keyboard"!==r.originInteraction||r.origin.focus()}},clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,closeTo:null,openFrom:null,focusOnOpen:!0,disableParentScroll:!0,autoWrap:!0,fullscreen:!1,transformTemplate:function(e,t){var n,o=h.startSymbol(),r=h.endSymbol(),i=o+(t.themeWatch?"":"::")+"theme"+r;return'<div class="md-dialog-container" tabindex="-1" '+(t.hasTheme?'md-theme="'+i+'"':"")+">"+(n=e,t.autoWrap&&!/<\/md-dialog>/g.test(n)?"<md-dialog>"+(n||"")+"</md-dialog>":n||"")+"</div>"}};function v(e,t){var n="fixed"===d.getComputedStyle(u[0].body).position,o=t.backdrop?d.getComputedStyle(t.backdrop[0]):null,r=o?Math.min(u[0].body.clientHeight,Math.ceil(Math.abs(parseInt(o.height,10)))):0,i={top:e.css("top"),height:e.css("height")},a=Math.abs(t.parent[0].getBoundingClientRect().top);return e.css({top:(n?a:0)+"px",height:r?r+"px":"100%"}),function(){e.css(i)}}function b(e,t){return -1!==t.indexOf(e.nodeName)}}}e.$inject=["$$rAF","$mdTheming","$mdDialog"],o.$inject=["$$interimElementProvider"],t.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",e).provider("$mdDialog",o)}(),function(){function e(e,n,o,r){var i="SideNav '{0}' is not available! Did you use md-component-id='{0}'?",a={find:function t(o,a){var s=e.get(o);if(!s&&!a){r.error(n.supplant(i,[o||""]));return}return s},waitFor:s};return function(e,r){if(t.isUndefined(e))return a;var c,l,u,d,f=!0===r,$=a.find(e,f);return!$&&f?a.waitFor(e):!$&&t.isUndefined(r)?(c=a,l=e,u=function(){return!1},d=function(){return o.when(n.supplant(i,[l||""]))},t.extend({isLockedOpen:u,isOpen:u,toggle:d,open:d,close:d,onClose:t.noop,then:function(e){return s(l).then(e||t.noop)}}
6,c)):$};function s(t){return e.when(t).catch(r.error)}}function o(e,o,r,i,a,s,c,l,u,d,f,$,m){return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(e){return e.addClass("md-closed").attr("tabIndex","-1"),p}};function p(c,p,h,g){var v,b,y,_,A,C=null,w=null,E=d.when(!0),T=l(h.mdIsLockedOpen),x=t.element($),k=function(){return T(c.$parent,{$mdMedia:e})};function S(e){return e.keyCode===r.KEY_CODE.ESCAPE?D(e):d.when(!0)}function D(e){return e.preventDefault(),g.close()}h.mdDisableScrollTarget&&((C=f[0].querySelector(h.mdDisableScrollTarget))?C=t.element(C):u.warn(o.supplant('mdSidenav: couldn\'t find element matching selector "{selector}". Falling back to parent.',{selector:h.mdDisableScrollTarget}))),C||(C=p.parent()),h.hasOwnProperty("mdDisableBackdrop")||(b=o.createBackdrop(c,"md-sidenav-backdrop md-opaque ng-enter")),h.hasOwnProperty("mdDisableCloseEvents")&&(y=!0),p.addClass("_md"),i(p),b&&i.inherit(b,p),p.on("$destroy",function(){b&&b.remove(),g.destroy()}),c.$on("$destroy",function(){b&&b.remove()}),c.$watch(k,function e(t,n){c.isLockedOpen=t,t===n?p.toggleClass("md-locked-open",!!t):s[t?"addClass":"removeClass"](p,"md-locked-open"),b&&b.toggleClass("md-locked-open",!!t)}),c.$watch("isOpen",function e(r){var i,l,u=o.findFocusTarget(p)||p,$=p.parent();return!y&&($[r?"on":"off"]("keydown",S),b&&b[r?"on":"off"]("click",D)),i=function e(t,n){var o=p[0],r=t[0].scrollTop;if(n&&r){A={top:o.style.top,bottom:o.style.bottom,height:o.style.height};var i={top:r+"px",bottom:"auto",height:t[0].clientHeight+"px"};p.css(i),b.css(i)}if(!n&&A)return function(){o.style.top=A.top,o.style.bottom=A.bottom,o.style.height=A.height,b[0].style.top=null,b[0].style.bottom=null,b[0].style.height=null,A=null}}($,r),r&&(w=f[0].activeElement,_=a.getLastInteractionType()),(l=r)&&!v?(v=C.css("overflow"),C.css("overflow","hidden")):t.isDefined(v)&&(C.css("overflow",v),v=n),E=d.all([r&&b?s.enter(b,$):b?s.leave(b):d.when(!0),s[r?"removeClass":"addClass"](p,"md-closed")]).then(function(){c.isOpen&&(m(function(){x.triggerHandler("resize")}),u&&u.focus()),i&&i()})}),g.$toggleOpen=function e(t){return c.isOpen===t?d.when(!0):(c.isOpen&&g.onCloseCb&&g.onCloseCb(),d(function(e){c.isOpen=t,o.nextTick(function(){E.then(function(t){!c.isOpen&&w&&"keyboard"===_&&(w.focus(),w=null),e(t)})})}))}}}function r(e,t,n,o,r){var i=this;i.isOpen=function(){return!!e.isOpen},i.isLockedOpen=function(){return!!e.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(!e.isOpen)},i.$toggleOpen=function(t){return o.when(e.isOpen=t)};var a=t.mdComponentId,s=a&&a.indexOf(r.startSymbol())>-1,c=s?r(a)(e.$parent):a;i.destroy=n.register(i,c),s&&t.$observe("mdComponentId",function(e){e&&e!==i.$$mdHandle&&(i.destroy(),i.destroy=n.register(i,e))})}e.$inject=["$mdComponentRegistry","$mdUtil","$q","$log"],o.$inject=["$mdMedia","$mdUtil","$mdConstant","$mdTheming","$mdInteraction","$animate","$compile","$parse","$log","$q","$document","$window","$$rAF"],r.$inject=["$scope","$attrs","$mdComponentRegistry","$q","$interpolate"],t.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",e).directive("mdSidenav",o).controller("$mdSidenavController",r)}()}(window,window.angular),window.ngMaterial={version:{full:"1.2.5"}};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.