text: /*!
   * Angular Material Design
   * https://github.com/angular/material
   * @license MIT
   * v0.9.0-rc1-master-aff50d5
   */
  !function(){"use strict";function e(e,t){return{restrict:"E",link:function(n,o,a){t(o),e(function(){var e=o[0].querySelector("md-content");e&&e.scrollHeight>e.clientHeight&&o.addClass("md-content-overflow")})}}}function t(e){function t(e,t){return{template:['<md-dialog md-theme="{{ dialog.theme }}" aria-label="{{ dialog.ariaLabel }}">','<md-content role="document" tabIndex="0">','<h2 class="md-title">{{ dialog.title }}</h2>',"<p>{{ dialog.content }}</p>","</md-content>",'<div class="md-actions">','<md-button ng-if="dialog.$type == \'confirm\'" ng-click="dialog.abort()">',"{{ dialog.cancel }}","</md-button>",'<md-button ng-click="dialog.hide()" class="md-primary">',"{{ dialog.ok }}","</md-button>","</div>","</md-dialog>"].join(""),controller:function(){this.hide=function(){e.hide(!0)},this.abort=function(){e.cancel()}},controllerAs:"dialog",bindToController:!0,theme:t.defaultTheme()}}function n(e,t,n,o,a,i,r,l,d,c,s){function m(e){var t=document.querySelector("md-dialog");t&&!t.contains(e.target)&&(e.stopImmediatePropagation(),t.focus())}function u(e,c,s){function u(){var e=c[0].querySelector(".dialog-close");if(!e){var t=c[0].querySelectorAll(".md-actions button");e=t[t.length-1]}return angular.element(e)}c=n.extractElementByName(c,"md-dialog"),s.parent=angular.element(s.parent),s.popInTarget=angular.element((s.targetEvent||{}).target);var p=u();if(s.hasBackdrop){var f=s.parent[0]==t[0].body&&t[0].documentElement&&t[0].documentElement.scrollTop?angular.element(t[0].documentElement):s.parent,v=f.prop("scrollTop");s.backdrop=angular.element('<md-backdrop class="md-dialog-backdrop md-opaque">'),s.backdrop.css("top",v+"px"),a.inherit(s.backdrop,s.parent),d.enter(s.backdrop,s.parent),c.css("top",v+"px")}var k="dialog",C=p;return"alert"===s.$type&&(k="alertdialog",C=c.find("md-content")),g(c.find("md-dialog"),k,s),document.addEventListener("focus",m,!0),s.disableParentScroll&&(s.lastOverflow=s.parent.css("overflow"),s.parent.css("overflow","hidden")),b(c,s.parent,s.popInTarget&&s.popInTarget.length&&s.popInTarget).then(function(){h(c,!0),s.escapeToClose&&(s.rootElementKeyupCallback=function(e){e.keyCode===o.KEY_CODE.ESCAPE&&r(i.cancel)},l.on("keyup",s.rootElementKeyupCallback)),s.clickOutsideToClose&&(s.dialogClickOutsideCallback=function(e){e.target===c[0]&&r(i.cancel)},c.on("click",s.dialogClickOutsideCallback)),s.focusOnOpen&&C.focus()})}function p(e,t,n){return n.backdrop&&d.leave(n.backdrop),n.disableParentScroll&&(n.parent.css("overflow",n.lastOverflow),delete n.lastOverflow),n.escapeToClose&&l.off("keyup",n.rootElementKeyupCallback),n.clickOutsideToClose&&t.off("click",n.dialogClickOutsideCallback),h(t,!1),document.removeEventListener("focus",m,!0),v(t,n.parent,n.popInTarget&&n.popInTarget.length&&n.popInTarget).then(function(){n.scope.$destroy(),t.remove(),n.popInTarget&&n.popInTarget.focus()})}function g(t,o,a){t.attr({role:o,tabIndex:"-1"});var i=t.find("md-content");0===i.length&&(i=t);var r=t.attr("id")||"dialog_"+n.nextUid();i.attr("id",r),t.attr("aria-describedby",r),a.ariaLabel?e.expect(t,"aria-label",a.ariaLabel):e.expectAsync(t,"aria-label",function(){var e=i.text().split(/\s+/);return e.length>3&&(e=e.slice(0,3).concat("...")),e.join(" ")})}function f(e,t){return-1!==t.indexOf(e.nodeName)?!0:void 0}function h(e,t){function n(e){for(;e.parentNode;){if(e===document.body)return;for(var a=e.parentNode.children,i=0;i<a.length;i++)e===a[i]||f(a[i],["SCRIPT","STYLE"])||a[i].setAttribute(o,t);n(e=e.parentNode)}}var o="aria-hidden";e=e[0],n(e)}function b(e,t,a){var i=e.find("md-dialog");return t.append(e),k(i,a),c(function(){i.addClass("transition-in").css(o.CSS.TRANSFORM,"")}),n.transitionEndPromise(i)}function v(e,t,o){var a=e.find("md-dialog");return a.addClass("transition-out").removeClass("transition-in"),k(a,o),n.transitionEndPromise(a)}function k(e,t){if(t){var n=t[0].getBoundingClientRect(),a=e[0].getBoundingClientRect(),i=Math.min(.5,n.width/a.width),r=Math.min(.5,n.height/a.height);e.css(o.CSS.TRANSFORM,"translate3d("+(-a.left+n.left+n.width/2-a.width/2)+"px,"+(-a.top+n.top+n.height/2-a.height/2)+"px,0) scale("+i+","+r+")")}}return{hasBackdrop:!0,isolateScope:!0,onShow:u,onRemove:p,clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,focusOnOpen:!0,disableParentScroll:!0,transformTemplate:function(e){return'<div class="md-dialog-container">'+e+"</div>"}}}return t.$inject=["$mdDialog","$mdTheming"],n.$inject=["$mdAria","$document","$mdUtil","$mdConstant","$mdTheming","$mdDialog","$timeout","$rootElement","$animate","$$rAF","$q"],e("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent","parent"],options:n}).addPreset("alert",{methods:["title","content","ariaLabel","ok","theme"],options:t}).addPreset("confirm",{methods:["title","content","ariaLabel","ok","cancel","theme"],options:t})}angular.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",e).provider("$mdDialog",t),e.$inject=["$$rAF","$mdTheming"],t.$inject=["$$interimElementProvider"]}();