var __awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,u){function i(e){try{c(r.next(e))}catch(e){u(e)}}function a(e){try{c(r["throw"](e))}catch(e){u(e)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(i,a)}c((r=r.apply(e,t||[])).next())})};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},r,o,u,i;return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(e){return function(t){return c([e,t])}}function c(i){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(u=i[0]&2?o["return"]:i[0]?o["throw"]||((u=o["return"])&&u.call(o),0):o.next)&&!(u=u.call(o,i[1])).done)return u;if(o=0,u)i=[i[0]&2,u.value];switch(i[0]){case 0:case 1:u=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;o=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(u=n.trys,u=u.length>0&&u[u.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!u||i[1]>u[0]&&i[1]<u[3])){n.label=i[1];break}if(i[0]===6&&n.label<u[1]){n.label=u[1];u=i;break}if(u&&n.label<u[2]){n.label=u[2];n.ops.push(i);break}if(u[2])n.ops.pop();n.trys.pop();continue}i=t.call(e,n)}catch(e){i=[6,e];o=0}finally{r=u=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};System.register(["./p-48e53d14.system.js"],function(e){"use strict";var t,n;return{setters:[function(e){t=e.r;n=e.g}],execute:function(){var r=function(){function e(){}return e}();var o=function(){function e(e){t(this,e);this.snackQueue=[]}e.prototype.create=function(e){return __awaiter(this,void 0,void 0,function(){var t;var n=this;return __generator(this,function(o){this.controllerEl=document.querySelector("materials-snackbar-controller");if(!this.controllerEl){this.controllerEl=document.body.appendChild(document.createElement("materials-snackbar-controller"))}t=document.createElement("materials-snackbar");Object.assign(t,new r,e);t.addEventListener("close",function(e){var t=e.target;t.remove();n.controllerEl.sliceQueue()});this.controllerEl.pushToQueue(t);return[2]})})};e.prototype.pushToQueue=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){this.snackQueue=this.snackQueue.concat([e]);return[2]})})};e.prototype.sliceQueue=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){this.snackQueue=this.snackQueue.length>1?this.snackQueue.slice(1,this.snackQueue.length).slice():[];return[2]})})};e.prototype.handleQueue=function(e,t){if(e.length>0&&(t.length>e.length||e.length===1)){document.body.appendChild(e[0])}};Object.defineProperty(e.prototype,"host",{get:function(){return n(this)},enumerable:true,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{snackQueue:["handleQueue"]}},enumerable:true,configurable:true});return e}();e("materials_snackbar_controller",o)}}});