text: /*!
   * Angular Material Design
   * https://github.com/angular/material
   * @license MIT
   * v1.1.0-rc.5-master-7f01138
   */
  function MdDialogDirective(e,t,n){return{restrict:"E",link:function(o,i){i.addClass("_md"),t(i),e(function(){function e(){i.toggleClass("md-content-overflow",a.scrollHeight>a.clientHeight)}var t,a=i[0].querySelector("md-dialog-content");a&&(t=a.getElementsByTagName("img"),e(),angular.element(t).on("load",e)),o.$on("$destroy",function(){n.destroy(i)})})}}}function MdDialogProvider(e){function t(e,t){return{template:['<md-dialog md-theme="{{ dialog.theme }}" aria-label="{{ dialog.ariaLabel }}" ng-class="dialog.css">','  <md-dialog-content class="md-dialog-content" role="document" tabIndex="-1">','    <h2 class="md-title">{{ dialog.title }}</h2>','    <div ng-if="::dialog.mdHtmlContent" class="_md-dialog-content-body" ','        ng-bind-html="::dialog.mdHtmlContent"></div>','    <div ng-if="::!dialog.mdHtmlContent" class="_md-dialog-content-body">',"      <p>{{::dialog.mdTextContent}}</p>","    </div>",'    <md-input-container md-no-float ng-if="::dialog.$type == \'prompt\'" class="md-prompt-input-container">','      <input ng-keypress="dialog.keypress($event)" md-autofocus ng-model="dialog.result"              placeholder="{{::dialog.placeholder}}">',"    </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">',"      {{ dialog.cancel }}","    </md-button>",'    <md-button ng-click="dialog.hide()" class="md-primary" md-autofocus="dialog.$type===\'alert\'">',"      {{ dialog.ok }}","    </md-button>","  </md-dialog-actions>","</md-dialog>"].join("").replace(/\s\s+/g,""),controller:function(){var n="prompt"==this.$type;n&&this.initialValue&&(this.result=this.initialValue),this.hide=function(){e.hide(n?this.result:!0)},this.abort=function(){e.cancel()},this.keypress=function(n){n.keyCode===t.KEY_CODE.ENTER&&e.hide(this.result)}},controllerAs:"dialog",bindToController:!0}}function n(e,t,n,a,r,l,d,s,c,m,u){function g(e){v(e)}function p(e,t,n,o){if(o){if(o.mdHtmlContent=o.htmlContent||n.htmlContent||"",o.mdTextContent=o.textContent||n.textContent||o.content||n.content||"",o.mdHtmlContent&&!m.has("$sanitize"))throw Error("The ngSanitize module must be loaded in order to use htmlContent.");if(o.mdHtmlContent&&o.mdTextContent)throw Error("md-dialog cannot have both `htmlContent` and `textContent`")}}function f(e,t,o,i){function a(){t[0].querySelector(".md-actions")&&c.warn("Using a class of md-actions is deprecated, please use <md-dialog-actions>.")}function r(){function e(){var e=t[0].querySelector(".dialog-close");if(!e){var n=t[0].querySelectorAll(".md-actions button, md-dialog-actions button");e=n[n.length-1]}return angular.element(e)}if(o.focusOnOpen){var i=n.findFocusTarget(t)||e();i.focus()}}if(angular.element(l[0].body).addClass("md-dialog-is-showing"),o.contentElement){var d=o.contentElement;angular.isString(d)?(d=document.querySelector(d),o.elementInsertionSibling=d.nextElementSibling,o.elementInsertionParent=d.parentNode):(d=d[0]||d,document.contains(d)&&(o.elementInsertionSibling=d.nextElementSibling,o.elementInsertionParent=d.parentNode)),o.elementInsertionEntry=d,t=angular.element(d)}var s=t.find("md-dialog");if(s.hasClass("ng-cloak")){var m="$mdDialog: using `<md-dialog ng-cloak >` will affect the dialog opening animations.";c.warn(m,t[0])}return C(o),k(s,o),y(e,t,o),S(t,o).then(function(){b(t,o),$(t,o),a(),r()})}function h(e,t,n){function a(){return T(t,n)}function r(){n.contentElement&&(n.reverseContainerStretch(),n.elementInsertionParent?n.elementInsertionSibling?n.elementInsertionParent.insertBefore(n.elementInsertionEntry,n.elementInsertionSibling):n.elementInsertionParent.appendChild(n.elementInsertionEntry):n.elementInsertionEntry.parentNode.removeChild(n.elementInsertionEntry))}function d(){angular.element(l[0].body).removeClass("md-dialog-is-showing"),n.contentElement?r():t.remove(),n.$destroy||n.origin.focus()}return n.deactivateListeners(),n.unlockScreenReader(),n.hideBackdrop(n.$destroy),o&&o.parentNode&&o.parentNode.removeChild(o),i&&i.parentNode&&i.parentNode.removeChild(i),n.$destroy?d():a().then(d)}function v(e){if(!e.theme&&(e.theme=u.defaultTheme(),e.targetEvent&&e.targetEvent.target)){var t=angular.element(e.targetEvent.target);e.theme=(t.controller("mdTheme")||{}).$mdTheme||e.theme}}function C(e){function t(e,t){var n=angular.element(e||{});if(n&&n.length){var o={top:0,left:0,height:0,width:0},i=angular.isFunction(n[0].getBoundingClientRect);return angular.extend(t||{},{element:i?n:void 0,bounds:i?n[0].getBoundingClientRect():angular.extend({},o,n[0]),focus:angular.bind(n,n.focus)})}}function n(e,t){return angular.isString(e)&&(e=l[0].querySelector(e)),angular.element(e||t)}e.origin=angular.extend({element:null,bounds:null,focus:angular.noop},e.origin||{}),e.parent=n(e.parent,s),e.closeTo=t(n(e.closeTo)),e.openFrom=t(n(e.openFrom)),e.targetEvent&&(e.origin=t(e.targetEvent.target,e.origin))}function b(t,o){var i=angular.element(d),r=n.debounce(function(){E(t,o)},60),l=[],s=function(){var t="alert"==o.$type?e.hide:e.cancel;n.nextTick(t,!0)};if(o.escapeToClose){var c=o.parent,m=function(e){e.keyCode===a.KEY_CODE.ESCAPE&&(e.stopPropagation(),e.preventDefault(),s())};t.on("keydown",m),c.on("keydown",m),l.push(function(){t.off("keydown",m),c.off("keydown",m)})}if(i.on("resize",r),l.push(function(){i.off("resize",r)}),o.clickOutsideToClose){var u,g=t,p=function(e){u=e.target},f=function(e){u===g[0]&&e.target===g[0]&&(e.stopPropagation(),e.preventDefault(),s())};g.on("mousedown",p),g.on("mouseup",f),l.push(function(){g.off("mousedown",p),g.off("mouseup",f)})}o.deactivateListeners=function(){l.forEach(function(e){e()}),o.deactivateListeners=null}}function y(e,t,o){o.disableParentScroll&&(o.restoreScroll=n.disableScrollAround(t,o.parent)),o.hasBackdrop&&(o.backdrop=n.createBackdrop(e,"_md-dialog-backdrop md-opaque"),r.enter(o.backdrop,o.parent)),o.hideBackdrop=function(e){o.backdrop&&(e?o.backdrop.remove():r.leave(o.backdrop)),o.disableParentScroll&&(o.restoreScroll(),delete o.restoreScroll),o.hideBackdrop=null}}function k(e,a){var r="alert"===a.$type?"alertdialog":"dialog",l=e.find("md-dialog-content"),d=e.attr("id"),s="dialogContent_"+(d||n.nextUid());e.attr({role:r,tabIndex:"-1"}),0===l.length&&(l=e,d&&(s=d)),l.attr("id",s),e.attr("aria-describedby",s),a.ariaLabel?t.expect(e,"aria-label",a.ariaLabel):t.expectAsync(e,"aria-label",function(){var e=l.text().split(/\s+/);return e.length>3&&(e=e.slice(0,3).concat("...")),e.join(" ")}),o=document.createElement("div"),o.classList.add("_md-dialog-focus-trap"),o.tabIndex=0,i=o.cloneNode(!1);var c=function(){e.focus()};o.addEventListener("focus",c),i.addEventListener("focus",c),e[0].parentNode.insertBefore(o,e[0]),e.after(i)}function $(e,t){function n(e){for(;e.parentNode;){if(e===document.body)return;for(var t=e.parentNode.children,i=0;i<t.length;i++)e===t[i]||x(t[i],["SCRIPT","STYLE"])||t[i].setAttribute("aria-hidden",o);n(e=e.parentNode)}}var o=!0;n(e[0]),t.unlockScreenReader=function(){o=!1,n(e[0]),t.unlockScreenReader=null}}function E(e,t){var o="fixed"==d.getComputedStyle(l[0].body).position,i=t.backdrop?d.getComputedStyle(t.backdrop[0]):null,a=i?Math.min(l[0].body.clientHeight,Math.ceil(Math.abs(parseInt(i.height,10)))):0,r={top:e.css("top"),height:e.css("height")};return e.css({top:(o?n.scrollTop(t.parent):0)+"px",height:a?a+"px":"100%"}),function(){e.css(r)}}function S(e,t){t.parent.append(e),t.reverseContainerStretch=E(e,t);var o=e.find("md-dialog"),i=n.dom.animator,a=i.calculateZoomToOrigin,r={transitionInClass:"_md-transition-in",transitionOutClass:"_md-transition-out"},l=i.toTransformCss(a(o,t.openFrom||t.origin)),d=i.toTransformCss("");return t.fullscreen&&o.addClass("md-dialog-fullscreen"),i.translate3d(o,l,d,r).then(function(e){return t.reverseAnimate=function(){return delete t.reverseAnimate,t.closeTo?(r={transitionInClass:"_md-transition-out",transitionOutClass:"_md-transition-in"},l=d,d=i.toTransformCss(a(o,t.closeTo)),i.translate3d(o,l,d,r)):e(d=i.toTransformCss(a(o,t.origin)))},t.clearAnimate=function(){return delete t.clearAnimate,i.translate3d(o,d,i.toTransformCss(""),{})},!0})}function T(e,t){return t.reverseAnimate().then(function(){t.contentElement&&t.clearAnimate()})}function x(e,t){return-1!==t.indexOf(e.nodeName)?!0:void 0}return{hasBackdrop:!0,isolateScope:!0,onCompiling:g,onShow:f,onShowing:p,onRemove:h,clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,contentElement:null,closeTo:null,openFrom:null,focusOnOpen:!0,disableParentScroll:!0,autoWrap:!0,fullscreen:!1,transformTemplate:function(e,t){function n(e){return t.autoWrap&&!/<\/md-dialog>/g.test(e)?"<md-dialog>"+(e||"")+"</md-dialog>":e||""}return'<div class="md-dialog-container" tabindex="-1">'+n(e)+"</div>"}}}var o,i;return t.$inject=["$mdDialog","$mdConstant"],n.$inject=["$mdDialog","$mdAria","$mdUtil","$mdConstant","$animate","$document","$window","$rootElement","$log","$injector","$mdTheming"],e("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent","closeTo","openFrom","parent","fullscreen","contentElement"],options:n}).addPreset("alert",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","theme","css"],options:t}).addPreset("confirm",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","cancel","theme","css"],options:t}).addPreset("prompt",{methods:["title","htmlContent","textContent","initialValue","content","placeholder","ariaLabel","ok","cancel","theme","css"],options:t})}goog.provide("ng.material.components.dialog"),goog.require("ng.material.components.backdrop"),goog.require("ng.material.core"),angular.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",MdDialogDirective).provider("$mdDialog",MdDialogProvider),MdDialogDirective.$inject=["$$rAF","$mdTheming","$mdDialog"],MdDialogProvider.$inject=["$$interimElementProvider"],ng.material.components.dialog=angular.module("material.components.dialog");