{"version":3,"file":"ImportCsv.min.js","names":["window","addEventListener","globalData","ProcessFile","file","reader","FileReader","onload","e","csv_file","target","result","delimiter","document","getElementById","value","length","match","sort","a_count","b_count","table","table_element","rawData","csvContent","lines","replace","split","createElement","className","section","rowCounter","line","startsWith","values","RegExp","map","trim","row","insertRow","j","cell","insertCell","textual_content","textContent","createTHead","appendChild","createTBody","createCaption","dataset","i18n","i18nOptions","csvToTable","innerHTML","classList","remove","localize","readAsText","unhighlightDropZone","event","currentTarget","files","forEach","eventType","preventDefault","add","dataTransfer","fileInput","dispatchEvent","Event","async","form","checkValidity","reportValidity","myAlert","i18next","t","submitter","name","disabled","compress","checked","compression","stringified","JSON","stringify","headers","RequestVerificationToken","querySelector","payload","length_of_payload","compressedStream","CompressionStream","compressedPayloadStream","Blob","stream","pipeThrough","compressedPayload","Response","arrayBuffer","byteLength","console","log","response","fetch","method","body","credentials","cache","redirect","referrerPolicy","ok","text","indexOf","json","rowsCount","nonEmptyCellsCount","error","submitToServerApproach","counter","reduce","row_accumulator","cell_acc","countClientSideApproach"],"sources":["ImportCsv.js"],"mappings":"AAEAA,OAAOC,iBAAiB,QAAQ,KAE/B,IAAIC,EAAa,KAUjB,MAkEMC,EAAeC,IACpB,MAAMC,EAAS,IAAIC,WAEnBD,EAAOE,OAAS,SAAUC,GACzB,MAAMC,EAAWD,EAAEE,OAAOC,OAE1B,IAAIC,EAAYC,SAASC,eAAe,aAAaC,MACrD,GAAkB,KAAdH,GAAyC,IAArBA,EAAUI,OAAc,CAY/CJ,EAPoC,CACnC,CAAC,KAAMH,EAASQ,MAAM,OAAS,IAAID,QACnC,CAAC,KAAMP,EAASQ,MAAM,OAAS,IAAID,QACnC,CAAC,MAAOP,EAASQ,MAAM,QAAU,IAAID,QACrC,CAAC,KAAMP,EAASQ,MAAM,QAAU,IAAID,QACpC,CAAC,KAAMP,EAASQ,MAAM,OAAS,IAAID,SAClCE,MAAK,EAAE,CAAEC,IAAW,CAAEC,KAAaA,EAAUD,I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