(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(l,n){"use strict";l.blueimp.fileupload.prototype.options.processQueue.unshift({action:"loadVideo",prefix:true,fileTypes:"@",maxFileSize:"@",disabled:"@disableVideoPreview"},{action:"setVideo",name:"@videoPreviewName",disabled:"@disableVideoPreview"});l.widget("blueimp.fileupload",l.blueimp.fileupload,{options:{loadVideoFileTypes:/^video\/.*$/},_videoElement:document.createElement("video"),processActions:{loadVideo:function(e,i){if(i.disabled){return e}var o=e.files[e.index],d,t;if(this._videoElement.canPlayType&&this._videoElement.canPlayType(o.type)&&(l.type(i.maxFileSize)!=="number"||o.size<=i.maxFileSize)&&(!i.fileTypes||i.fileTypes.test(o.type))){d=n.createObjectURL(o);if(d){t=this._videoElement.cloneNode(false);t.src=d;t.controls=true;e.video=t;return e}}return e},setVideo:function(e,i){if(e.video&&!i.disabled){e.files[e.index][i.name||"preview"]=e.video}return e}}})});