import{i as e,t}from"./useAnalytics-D7ict_xi.js";import{E as n}from"./src-CD6Jsigc.js";var r=function(e){return e[e.Scheduled=0]=`Scheduled`,e[e.Active=1]=`Active`,e[e.Completed=2]=`Completed`,e[e.Abandoned=3]=`Abandoned`,e}({}),i=function(e){return e[e.Standard=0]=`Standard`,e[e.PartialFearless=1]=`PartialFearless`,e[e.Fearless=2]=`Fearless`,e}({}),a=n();function o(e){try{t(`LeagueBroadcast`).setFeatures(e)}catch{}}var s=e(`sessionSetting`,{state(){return{host:`localhost`,useHttps:!1,port:58869,apiRoute:`api`,wsRoute:`ws`,cacheRoute:`cache`,lastBestOfType:localStorage.getItem(`lastBestOfType`)||`BestOf1`,lastMatchRuleSet:i.Standard,lastDefaultGameTime:60,contentHeight:`0px`,contentWidth:`0px`,topMenuHeight:`0px`}},getters:{getHost:e=>e.host,getUseHttps:e=>e.useHttps,getPort:e=>e.port,getApiRoute:e=>e.apiRoute,getWsRoute:e=>e.wsRoute,getCacheRoute:e=>e.cacheRoute,getLastBestOfType:e=>e.lastBestOfType,getLastMatchRuleSet:e=>e.lastMatchRuleSet,getLastDefaultGameTime:e=>e.lastDefaultGameTime,getContentHeight:e=>e.contentHeight,getContentWidth:e=>e.contentWidth,getTopMenuHeight:e=>e.topMenuHeight,features:()=>a.features.value,getFeatures:()=>a.features.value,featuresLoaded:()=>a.loaded.value,hasFeature:()=>a.hasFeature,hasAnyFeature:()=>a.hasAnyFeature},actions:{setHost(e){this.host=e},setUseHttps(e){this.useHttps=e},setPort(e){this.port=e},setApiRoute(e){this.apiRoute=e},setWsRoute(e){this.wsRoute=e},setCacheRoute(e){this.cacheRoute=e},setLastBestOfType(e){this.lastBestOfType=e,localStorage.setItem(`lastBestOfType`,e.toString())},setLastMatchRuleSet(e){this.lastMatchRuleSet=e},setLastDefaultGameTime(e){this.lastDefaultGameTime=e},setContentHeight(e){this.contentHeight=e},setContentWidth(e){this.contentWidth=e},setTopMenuHeight(e){this.topMenuHeight=e},setFeatures(e){a.setFeatures(e),o(e)}}});export{r as n,i as r,s as t};