var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{s(r.next(e))}catch(t){a(t)}}function u(e){try{s(r["throw"](e))}catch(t){a(t)}}function s(e){e.done?n(e.value):i(e.value).then(o,u)}s((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return s([e,t])}}function s(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(u){o=[6,u];i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register([],(function(e){"use strict";return{execute:function(){e("t",s);var t=undefined&&undefined.__classPrivateFieldGet||function(e,t){if(!t.has(e)){throw new TypeError("attempted to get private field on non-instance")}return t.get(e)};var n=undefined&&undefined.__classPrivateFieldSet||function(e,t,n){if(!t.has(e)){throw new TypeError("attempted to set private field on non-instance")}t.set(e,n);return n};var r,i;var a=function(){function e(e,t,n){r.set(this,void 0);i.set(this,void 0);this.id=e;this.name=t;this.type=n.type;this.blob=n}e.prototype.hash=function(e,a){if(e===void 0){e="SHA-256"}if(a===void 0){a="hex"}return __awaiter(this,void 0,void 0,(function(){var o,u;return __generator(this,(function(s){switch(s.label){case 0:if(!(!t(this,r)||t(this,i)!==e))return[3,3];return[4,new Response(this.blob).arrayBuffer()];case 1:o=s.sent();return[4,crypto.subtle.digest(e,o)];case 2:u=s.sent();n(this,i,e);n(this,r,Array.from(new Uint8Array(u)));s.label=3;case 3:switch(a){default:case"array":return[2,t(this,r)];case"hex":return[2,t(this,r).map((function(e){return e.toString(16).padStart(2,"0")})).join("")]}return[2]}}))}))};return e}();e("B",a);r=new WeakMap,i=new WeakMap;var o=e("m",(function(e,t){return(e%t+t)%t}));var u=e("r",(function(e,t){var n=document.createElement("bce-ripple");var r=e.getBoundingClientRect();n.x=t.clientX-r.left;n.y=t.clientY-r.top;e.appendChild(n);setTimeout((function(){return n.parentElement.removeChild(n)}),500)}));function s(e,t,n){if(t===void 0){t=200}if(n===void 0){n={}}var r=Object.assign({ensureLast:false},n);var i=false;var a=null;var o=[];return function(){a=this;o=arguments;if(i)return;e.apply(a,o);i=true;setTimeout((function(){i=false;if(r.ensureLast)e.apply(a,o)}),t)}}}}}));