import{CSVtoArray as t}from"../utils.js";export class gSheetInterface{constructor(t=null,e=null,s={}){this.sheet=e,this.sheetGids=s,this.target=t}async loadSheetData(t){return await this.loadCSVData(`https://docs.google.com/spreadsheets/d/e/${this.sheet}/pub?output=csv&gid=${this.sheetGids[t]}`,t)}async loadCSVData(e,s){return await fetch(e,{method:this.method}).then((t=>{if(t.ok)return t.text()})).then((e=>t(e)))}}