vendor: 2,442 bytes, lines 1-6
1/*! 2 * FilePondPluginFileValidateType 1.2.9 3 * Licensed under MIT, https://opensource.org/licenses/MIT/ 4 * Please visit https://pqina.nl/filepond/ for details. 5 */ 6!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).FilePondPluginFileValidateType=t()}(this,function(){"use strict";var e=function plugin(e){var t=e.addFilter,n=e.utils,i=n.Type,l=n.isString,T=n.replaceInString,o=n.guesstimateMimeType,a=n.getExtensionFromFilename,E=n.getFilenameFromURL,r=function isValidMimeType(e,t){return e.some(function(e){return/\*$/.test(e)?function mimeTypeMatchesWildCard(e,t){return(/^[^/]+/.exec(e)||[]).pop()===t.slice(0,-2)}(t,e):e===t})},u=function validateFile(e,t,n){if(0===t.length)return!0;var i=function getItemType(e){var t="";if(l(e)){var n=E(e),i=a(n);i&&(t=o(i))}else t=e.type;return t}(e);return n?new Promise(function(l,T){n(e,i).then(function(e){r(t,e)?l():T()}).catch(T)}):r(t,i)};return t("SET_ATTRIBUTE_TO_OPTION_MAP",function(e){return Object.assign(e,{accept:"acceptedFileTypes"})}),t("ALLOW_HOPPER_ITEM",function(e,t){var n=t.query;return!n("GET_ALLOW_FILE_TYPE_VALIDATION")||u(e,n("GET_ACCEPTED_FILE_TYPES"))}),t("LOAD_FILE",function(e,t){var n=t.query;return new Promise(function(t,i){if(n("GET_ALLOW_FILE_TYPE_VALIDATION")){var l=n("GET_ACCEPTED_FILE_TYPES"),o=n("GET_FILE_VALIDATE_TYPE_DETECT_TYPE"),a=u(e,l,o),E=function handleRejection(){var e=l.map(function applyMimeTypeMap(e){return function(t){return null!==e[t]&&(e[t]||t)}}(n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP"))).filter(function(e){return!1!==e}),t=e.filter(function(t,n){return e.indexOf(t)===n});i({status:{main:n("GET_LABEL_FILE_TYPE_NOT_ALLOWED"),sub:T(n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES"),{allTypes:t.join(", "),allButLastType:t.slice(0,-1).join(", "),lastType:t[t.length-1]})}})};if("boolean"==typeof a)return a?t(e):E();a.then(function(){t(e)}).catch(E)}else t(e)})}),{options:{allowFileTypeValidation:[!0,i.BOOLEAN],acceptedFileTypes:[[],i.ARRAY],labelFileTypeNotAllowed:["File is of invalid type",i.STRING],fileValidateTypeLabelExpectedTypes:["Expects {allButLastType} or {lastType}",i.STRING],fileValidateTypeLabelExpectedTypesMap:[{},i.OBJECT],fileValidateTypeDetectType:[null,i.FUNCTION]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:e})),e});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.