1var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}let window = _____WB$wombat$assign$function_____("window"); 2let self = _____WB$wombat$assign$function_____("self"); 3let document = _____WB$wombat$assign$function_____("document"); 4let location = _____WB$wombat$assign$function_____("location"); 5let top = _____WB$wombat$assign$function_____("top"); 6let parent = _____WB$wombat$assign$function_____("parent"); 7let frames = _____WB$wombat$assign$function_____("frames"); 8let opener = _____WB$wombat$assign$function_____("opener"); 9import{F as D,r as M}from"./mws_apo_bundle.js";/*! 10 * FilePondPluginFileValidateSize 2.2.8 11 * Licensed under MIT, https://opensource.org/licenses/MIT/ 12 * Please visit https://pqina.nl/filepond/ for details. 13 */const z=({addFilter:a,utils:u})=>{const{Type:t,replaceInString:L,toNaturalFileSize:I}=u;return a("ALLOW_HOPPER_ITEM",(l,{query:i})=>{if(!i("GET_ALLOW_FILE_SIZE_VALIDATION"))return!0;const s=i("GET_MAX_FILE_SIZE");if(s!==null&&l.size>s)return!1;const T=i("GET_MIN_FILE_SIZE");return!(T!==null&&l.size<T)}),a("LOAD_FILE",(l,{query:i})=>new Promise((s,T)=>{if(!i("GET_ALLOW_FILE_SIZE_VALIDATION"))return s(l);const A=i("GET_FILE_VALIDATE_SIZE_FILTER");if(A&&!A(l))return s(l);const S=i("GET_MAX_FILE_SIZE");if(S!==null&&l.size>S){T({status:{main:i("GET_LABEL_MAX_FILE_SIZE_EXCEEDED"),sub:L(i("GET_LABEL_MAX_FILE_SIZE"),{filesize:I(S,".",i("GET_FILE_SIZE_BASE"),i("GET_FILE_SIZE_LABELS",i))})}});return}const o=i("GET_MIN_FILE_SIZE");if(o!==null&&l.size<o){T({status:{main:i("GET_LABEL_MIN_FILE_SIZE_EXCEEDED"),sub:L(i("GET_LABEL_MIN_FILE_SIZE"),{filesize:I(o,".",i("GET_FILE_SIZE_BASE"),i("GET_FILE_SIZE_LABELS",i))})}});return}const F=i("GET_MAX_TOTAL_FILE_SIZE");if(F!==null&&i("GET_ACTIVE_ITEMS").reduce((e,n)=>e+n.fileSize,0)>F){T({status:{main:i("GET_LABEL_MAX_TOTAL_FILE_SIZE_EXCEEDED"),sub:L(i("GET_LABEL_MAX_TOTAL_FILE_SIZE"),{filesize:I(F,".",i("GET_FILE_SIZE_BASE"),i("GET_FILE_SIZE_LABELS",i))})}});return}s(l)})),{options:{allowFileSizeValidation:[!0,t.BOOLEAN],maxFileSize:[null,t.INT],minFileSize:[null,t.INT],maxTotalFileSize:[null,t.INT],fileValidateSizeFilter:[null,t.FUNCTION],labelMinFileSizeExceeded:["File is too small",t.STRING],labelMinFileSize:["Minimum file size is {filesize}",t.STRING],labelMaxFileSizeExceeded:["File is too large",t.STRING],labelMaxFileSize:["Maximum file size is {filesize}",t.STRING],labelMaxTotalFileSizeExceeded:["Maximum total size exceeded",t.STRING],labelMaxTotalFileSize:["Maximum total file size is {filesize}",t.STRING]}}},P=typeof window<"u"&&typeof window.document<"u";P&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:z}));/*! 14 * FilePondPluginFileValidateType 1.2.9 15 * Licensed under MIT, https://opensource.org/licenses/MIT/ 16 * Please visit https://pqina.nl/filepond/ for details. 17 */const O=({addFilter:a,utils:u})=>{const{Type:t,isString:L,replaceInString:I,guesstimateMimeType:l,getExtensionFromFilename:i,getFilenameFromURL:s}=u,T=(E,e)=>{const n=(/^[^/]+/.exec(E)||[]).pop(),_=e.slice(0,-2);return n===_},A=(E,e)=>E.some(n=>/\*$/.test(n)?T(e,n):n===e),S=E=>{let e="";if(L(E)){const n=s(E),_=i(n);_&&(e=l(_))}else e=E.type;return e},o=(E,e,n)=>{if(e.length===0)return!0;const _=S(E);return n?new Promise((p,d)=>{n(E,_).then(c=>{A(e,c)?p():d()}).catch(d)}):A(e,_)},F=E=>e=>E[e]===null?!1:E[e]||e;return a("SET_ATTRIBUTE_TO_OPTION_MAP",E=>Object.assign(E,{accept:"acceptedFileTypes"})),a("ALLOW_HOPPER_ITEM",(E,{query:e})=>e("GET_ALLOW_FILE_TYPE_VALIDATION")?o(E,e("GET_ACCEPTED_FILE_TYPES")):!0),a("LOAD_FILE",(E,{query:e})=>new Promise((n,_)=>{if(!e("GET_ALLOW_FILE_TYPE_VALIDATION")){n(E);return}const p=e("GET_ACCEPTED_FILE_TYPES"),d=e("GET_FILE_VALIDATE_TYPE_DETECT_TYPE"),c=o(E,p,d),m=()=>{const G=p.map(F(e("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP"))).filter(f=>f!==!1),r=G.filter((f,N)=>G.indexOf(f)===N);_({status:{main:e("GET_LABEL_FILE_TYPE_NOT_ALLOWED"),sub:I(e("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES"),{allTypes:r.join(", "),allButLastType:r.slice(0,-1).join(", "),lastType:r[r.length-1]})}})};if(typeof c=="boolean")return c?n(E):m();c.then(()=>{n(E)}).catch(m)})),{options:{allowFileTypeValidation:[!0,t.BOOLEAN],acceptedFileTypes:[[],t.ARRAY],labelFileTypeNotAllowed:["File is of invalid type",t.STRING],fileValidateTypeLabelExpectedTypes:["Expects {allButLastType} or {lastType}",t.STRING],fileValidateTypeLabelExpectedTypesMap:[{},t.OBJECT],fileValidateTypeDetectType:[null,t.FUNCTION]}}},x=typeof window<"u"&&typeof window.document<"u";x&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:O}));M(z);M(O);export{D as default};
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.