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 s(t){try{c(i["throw"](t))}catch(t){u(t)}}function c(t){t.done?e(t.value):r(t.value).then(o,s)}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:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(n){return c([t,n])}}function c(s){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(e=0)),e)try{if(i=1,r&&(u=s[0]&2?r["return"]:s[0]?r["throw"]||((u=r["return"])&&u.call(r),0):r.next)&&!(u=u.call(r,s[1])).done)return u;if(r=0,u)s=[s[0]&2,u.value];switch(s[0]){case 0:case 1:u=s;break;case 4:e.label++;return{value:s[1],done:false};case 5:e.label++;r=s[1];s=[0];continue;case 7:s=e.ops.pop();e.trys.pop();continue;default:if(!(u=e.trys,u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){e.label=s[1];break}if(s[0]===6&&e.label<u[1]){e.label=u[1];u=s;break}if(u&&e.label<u[2]){e.label=u[2];e.ops.push(s);break}if(u[2])e.ops.pop();e.trys.pop();continue}s=n.call(t,e)}catch(t){s=[6,t];r=0}finally{i=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-f451342c.system.js","./p-6722281a.system.js","./p-f007532e.system.js","./p-039ebc60.system.js","./p-4d03a77e.system.js","./p-f337d917.system.js","./p-35736a66.system.js","./p-019c8a9e.system.js"],(function(t,n){"use strict";var e,i,r,u,o,s,c,a,f,h,l,p;return{setters:[function(t){e=t.r;i=t.c;r=t.h;u=t.H;o=t.g},function(t){s=t.b},function(t){c=t.b},function(t){a=t.b},function(t){f=t.d;h=t.r},function(t){l=t.L},function(t){p=t.i},function(){}],execute:function(){var b=":root{--bal-app-height:100%}.bal-app{position:relative;display:block}.bal-body.is-ready{visibility:inherit}";var y=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 s=t.length-1;s>=0;s--)if(o=t[s])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.balAppLoad=i(this,"balAppLoad",7);this.debouncedNotify=f((function(){return n.notifyResize()}),100);this.notifyResize=function(){return __awaiter(n,void 0,void 0,(function(){var t;return __generator(this,(function(n){if(s.hasDocument&&s.hasWindow){t=document.documentElement;t.style.setProperty("--bal-app-height","".concat(window.innerHeight,"px"))}return[2]}))}))};this.mode="css";this.animated=true;this.ready=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.connectedCallback=function(){p(this.mode);a(this.animated);if(s.hasWindow){window.addEventListener("resize",this.debouncedNotify);this.debouncedNotify()}};t.prototype.componentDidLoad=function(){var t=this;h((function(){return __awaiter(t,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){this.balAppLoad.emit(true);this.ready=true;n.import("./p-22031556.system.js").then((function(n){return t.focusVisible=n.startFocusVisible()}));return[2]}))}))}))};t.prototype.disconnectedCallback=function(){if(s.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 r(u,{role:"application",class:{"bal-app":true,"bal-app--safari":s.isSafari,"bal-app--touch":c.hasTouchScreen}},r("slot",null))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());y([l("bal-app")],d.prototype,"createLogger",null);d.style={css:b}}}}));