"use strict";!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.File=t()}(window,function(){return function(t,i){const n=t.querySelector('input[type="file"]');if(!n)throw new Error('Element input[type="file"] not found.');i=i||{};const e=e=>{n.files.length?1<n.files.length?t.dataset.file=i.multipleText||t.dataset.multipleText||"Multiple files.":t.dataset.file=n.files[0].name:t.dataset.file=i.emptyText||t.dataset.emptyText||"No file chosen."};return n.hasAttribute("multiple")||(n.addEventListener("change",e),e()),{updateFile:e}}});