(function(e){"use strict";if(typeof define==="function"&&define.amd){define(["jquery","load-image","./jquery.fileupload-process.min"],e)}else{e(window.jQuery,window.loadImage)}})(function(u,a){"use strict";u.blueimp.fileupload.prototype.options.processQueue.unshift({action:"loadAudio",prefix:true,fileTypes:"@",maxFileSize:"@",disabled:"@disableAudioPreview"},{action:"setAudio",name:"@audioPreviewName",disabled:"@disableAudioPreview"});u.widget("blueimp.fileupload",u.blueimp.fileupload,{options:{loadAudioFileTypes:/^audio\/.*$/},_audioElement:document.createElement("audio"),processActions:{loadAudio:function(e,i){if(i.disabled){return e}var o=e.files[e.index],d,t;if(this._audioElement.canPlayType&&this._audioElement.canPlayType(o.type)&&(u.type(i.maxFileSize)!=="number"||o.size<=i.maxFileSize)&&(!i.fileTypes||i.fileTypes.test(o.type))){d=a.createObjectURL(o);if(d){t=this._audioElement.cloneNode(false);t.src=d;t.controls=true;e.audio=t;return e}}return e},setAudio:function(e,i){if(e.audio&&!i.disabled){e.files[e.index][i.name||"preview"]=e.audio}return e}}})});