const PersistentStorage={COUNTER_KEY:"eytd_download_counter",HIGH_QUALITY_COUNTER_KEY:"eytd_hq_download_counter",async getDownloadCounter(){try{return void 0,parseInt(localStorage.getItem(this.COUNTER_KEY))||0}catch(t){return void 0,0}},async setDownloadCounter(t){try{localStorage.setItem(this.COUNTER_KEY,t.toString())}catch(t){throw void 0,t}},async incrementDownloadCounter(){try{const t=await this.getDownloadCounter()+1;return await this.setDownloadCounter(t),t}catch(t){throw void 0,t}},async getHighQualityDownloadCounter(){try{return void 0,parseInt(localStorage.getItem(this.HIGH_QUALITY_COUNTER_KEY))||0}catch(t){return void 0,0}},async setHighQualityDownloadCounter(t){try{localStorage.setItem(this.HIGH_QUALITY_COUNTER_KEY,t.toString())}catch(t){throw void 0,t}},async incrementHighQualityDownloadCounter(){try{const t=await this.getHighQualityDownloadCounter()+1;return await this.setHighQualityDownloadCounter(t),await this.incrementDownloadCounter(),t}catch(t){throw void 0,t}},async isHighQualityLimitExceeded(){try{return await this.getHighQualityDownloadCounter()>=51}catch(t){return void 0,!1}}};