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