text: /* */ 
  "format cjs";
  /*!
   * AngularJS Material Design
   * https://github.com/angular/material
   * @license MIT
   * v1.1.18-master-67826f5
   */
  function MdToastDirective(n){return{restrict:"E",link:function(t,e){e.addClass("_md"),t.$on("$destroy",function(){n.destroy()})}}}function MdToastProvider(t){n.$inject=["$mdToast","$scope","$log"],o.$inject=["$animate","$mdToast","$mdUtil","$mdMedia","$document"];var p,u="ok";function e(t){p=t}return t("$mdToast").setDefaults({methods:["position","hideDelay","capsule","parent","position","toastClass"],options:o}).addPreset("simple",{argOption:"textContent",methods:["textContent","content","action","actionKey","actionHint","highlightAction","highlightClass","theme","parent","dismissHint"],options:["$mdToast","$mdTheming",function(t,e){return{template:'<md-toast md-theme="{{ toast.theme }}" ng-class="{\'md-capsule\': toast.capsule}">  <div class="md-toast-content" aria-live="polite" aria-relevant="all">    <span class="md-toast-text">      {{ toast.content }}    </span>    <span class="md-visually-hidden">{{ toast.dismissHint }}</span>    <span class="md-visually-hidden" ng-if="toast.action && toast.actionKey">      {{ toast.actionHint }}    </span>    <md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()"                ng-class="highlightClasses">      {{ toast.action }}    </md-button>  </div></md-toast>',controller:n,theme:e.defaultTheme(),controllerAs:"toast",bindToController:!0}}]}).addMethod("updateTextContent",e).addMethod("updateContent",e);function n(e,n,o){this.$onInit=function(){var t=this;t.highlightAction&&(n.highlightClasses=["md-highlight",t.highlightClass]),t.action&&!t.actionKey&&o.warn("Toasts with actions should define an actionKey for accessibility.","Details: https://material.angularjs.org/latest/api/service/$mdToast#mdtoast-simple"),t.actionKey&&!t.actionHint&&(t.actionHint='Press Control-"'+t.actionKey+'" to '),t.dismissHint||(t.dismissHint="Press Escape to dismiss."),n.$watch(function(){return p},function(){t.content=p}),this.resolve=function(){e.hide(u)}}}function o(o,r,d,l,m){var c="$md.swipeleft $md.swiperight $md.swipeup $md.swipedown";return{onShow:function(t,a,s){p=s.textContent||s.content;var i=!l("gt-sm");a=d.extractElementByName(a,"md-toast",!0),s.element=a,s.onSwipe=function(t,e){var n=t.type.replace("$md.",""),o=n.replace("swipe","");"down"===o&&-1!==s.position.indexOf("top")&&!i||"up"===o&&(-1!==s.position.indexOf("bottom")||i)||("left"!==o&&"right"!==o||!i)&&(a.addClass("md-"+n),d.nextTick(r.cancel))},s.openClass=(e=s.position,l("gt-xs")?"md-toast-open-"+(-1<e.indexOf("top")?"top":"bottom"):"md-toast-open-bottom"),a.addClass(s.toastClass),s.parent.addClass(s.openClass),d.hasComputedStyle(s.parent,"position","static")&&s.parent.css("position","relative");var e;n=t.toast&&t.toast.actionKey?t.toast.actionKey:void 0,m.on("keydown",function(t){"Escape"===t.key&&r.hide(!1),n&&t.key===n&&t.ctrlKey&&r.hide(u)}),a.on(c,s.onSwipe),a.addClass(i?"md-bottom":s.position.split(" ").map(function(t){return"md-"+t}).join(" ")),s.parent&&s.parent.addClass("md-toast-animating");var n;return o.enter(a,s.parent).then(function(){s.parent&&s.parent.removeClass("md-toast-animating")})},onRemove:function(t,e,n){t.toast&&t.toast.actionKey&&m.off("keydown");e.off(c,n.onSwipe),n.parent&&n.parent.addClass("md-toast-animating");n.openClass&&n.parent.removeClass(n.openClass);return(!0===n.$destroy?e.remove():o.leave(e)).then(function(){n.parent&&n.parent.removeClass("md-toast-animating"),d.hasComputedStyle(n.parent,"position","static")&&n.parent.css("position","")})},toastClass:"",position:"bottom left",themable:!0,hideDelay:3e3,autoWrap:!0,transformTemplate:function(t,e){if(e.autoWrap&&t&&!/md-toast-content/g.test(t)){var n=document.createElement("md-template");n.innerHTML=t;for(var o=0;o<n.children.length;o++)if("MD-TOAST"===n.children[o].nodeName){var a=angular.element('<div class="md-toast-content">');a.append(angular.element(n.children[o].childNodes)),n.children[o].appendChild(a[0])}return n.innerHTML}return t||""}}}}goog.provide("ngmaterial.components.toast"),goog.require("ngmaterial.components.button"),goog.require("ngmaterial.core"),MdToastDirective.$inject=["$mdToast"],MdToastProvider.$inject=["$$interimElementProvider"],angular.module("material.components.toast",["material.core","material.components.button"]).directive("mdToast",MdToastDirective).provider("$mdToast",MdToastProvider),ngmaterial.components.toast=angular.module("material.components.toast");