var __awaiter=this&&this.__awaiter||function(t,n,e,i){function r(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,u){function o(t){try{c(i.next(t))}catch(t){u(t)}}function a(t){try{c(i["throw"](t))}catch(t){u(t)}}function c(t){t.done?e(t.value):r(t.value).then(o,a)}c((i=i.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,r,u,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(n){return c([t,n])}}function c(a){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(e=0)),e)try{if(i=1,r&&(u=a[0]&2?r["return"]:a[0]?r["throw"]||((u=r["return"])&&u.call(r),0):r.next)&&!(u=u.call(r,a[1])).done)return u;if(r=0,u)a=[a[0]&2,u.value];switch(a[0]){case 0:case 1:u=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;r=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(u=e.trys,u=u.length>0&&u[u.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!u||a[1]>u[0]&&a[1]<u[3])){e.label=a[1];break}if(a[0]===6&&e.label<u[1]){e.label=u[1];u=a;break}if(u&&e.label<u[2]){e.label=u[2];e.ops.push(a);break}if(u[2])e.ops.pop();e.trys.pop();continue}a=n.call(t,e)}catch(t){a=[6,t];r=0}finally{i=u=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-432920d7.system.js","./p-df0014ec.system.js","./p-61c16aaa.system.js","./p-379464d8.system.js","./p-9b35c8a3.system.js","./p-e1deb153.system.js","./p-f4a83740.system.js"],(function(t,n){"use strict";var e,i,r,u,o,a,c,f,s,h;return{setters:[function(t){e=t.r;i=t.h;r=t.H;u=t.g},function(t){o=t.b},function(t){a=t.b},function(t){c=t.h;f=t.k},function(t){s=t.L},function(t){h=t.b},function(){}],execute:function(){var l=":root{--bal-app-height:100%}.bal-app{position:relative;display:block}";var p=l;var b=undefined&&undefined.__decorate||function(t,n,e,i){var r=arguments.length,u=r<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,e):i,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")u=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)if(o=t[a])u=(r<3?o(u):r>3?o(n,e,u):o(n,e))||u;return r>3&&u&&Object.defineProperty(n,e,u),u};var d=t("bal_app",function(){function t(t){var n=this;e(this,t);this.debouncedNotify=c((function(){return n.notifyResize()}),100);this.notifyResize=function(){return __awaiter(n,void 0,void 0,(function(){var t;return __generator(this,(function(n){if(o.hasDocument&&o.hasWindow){t=document.documentElement;t.style.setProperty("--bal-app-height","".concat(window.innerHeight,"px"))}return[2]}))}))};this.animated=true;this.ready=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.connectedCallback=function(){h(this.animated);if(o.hasWindow){window.addEventListener("resize",this.debouncedNotify);this.debouncedNotify()}};t.prototype.componentDidLoad=function(){var t=this;f((function(){return __awaiter(t,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){this.ready=true;n.import("./p-3fa122eb.system.js").then((function(n){return t.focusVisible=n.startFocusVisible()}));return[2]}))}))}))};t.prototype.disconnectedCallback=function(){if(o.hasWindow){window.removeEventListener("resize",this.debouncedNotify)}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){if(this.focusVisible){this.focusVisible.setFocus(t)}return[2]}))}))};t.prototype.render=function(){return i(r,{class:{"bal-app":true,"bal-app--safari":o.isSafari,"bal-app--touch":a.hasTouchScreen}},i("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});return t}());b([s("bal-app")],d.prototype,"createLogger",null);d.style=p}}}));