!function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define([],t):"object"==typeofexports?exports["angular-file-upload"]=t():e["angular-file-upload"]=t()}(this,function(){returnfunction(o){varn={};functionr(e){if(n[e])returnn[e].exports;vart=n[e]={exports:{},id:e,loaded:!1};returno[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}returnr.m=o,r.c=n,r.p="",r(0)}([function(e,t,o){"use strict";varn=v(o(1)),r=v(o(2)),i=v(o(3)),s=v(o(4)),a=v(o(5)),l=v(o(6)),u=v(o(7)),p=v(o(8)),c=v(o(9)),f=v(o(10)),d=v(o(11)),h=v(o(12)),y=v(o(13));functionv(e){returne&&e.__esModule?e:{default:e}}angular.module(n.default.name,[]).value("fileUploaderOptions",r.default).factory("FileUploader",i.default).factory("FileLikeObject",s.default).factory("FileItem",a.default).factory("FileDirective",l.default).factory("FileSelect",u.default).factory("FileDrop",c.default).factory("FileOver",f.default).factory("Pipeline",p.default).directive("nvFileSelect",d.default).directive("nvFileDrop",h.default).directive("nvFileOver",y.default).run(["FileUploader","FileLikeObject","FileItem","FileDirective","FileSelect","FileDrop","FileOver","Pipeline",function(e,t,o,n,r,i,s,a){e.FileLikeObject=t,e.FileItem=o,e.FileDirective=n,e.FileSelect=r,e.FileDrop=i,e.FileOver=s,e.Pipeline=a}])},function(e,t){e.exports={name:"angularFileUpload"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={url:"/",alias:"file",headers:{},queue:[],progress:0,autoUpload:!1,removeAfterUpload:!1,method:"POST",filters:[],formData:[],queueLimit:Number.MAX_VALUE,withCredentials:!1,disableMultipart:!1}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});varh=function(e,t){if(Array.isArray(e))returne;if(Symbol.iteratorinObject(e))returnfunction(e,t){varo=[],n=!0,r=!1,i=void0;try{for(vars,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(o.push(s.value),!t||o.length!==t);n=!0);}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throwi}}returno}(e,t);thrownewTypeError("Invalid attempt to destructure non-iterable instance")};t.default=s;varn,r=o(1);(n=r)&&n.__esModule;vari=angular,l=i.bind,u=i.copy,p=i.extend,y=i.forEach,v=i.isObject,m=i.isNumber,_=i.isDefined,g=i.isArray,b=i.isUndefined,F=i.element;functions(n,e,r,t,s,c,f,d){vari=t.File,a=t.FormData,o=function(){functiono(e){!function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,o);vart=u(n);p(this,t,e,{isUploading:!1,_nextIndex:0,_directives:{select:[],drop:[],over:[]}}),this.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.filters.unshift({name:"folder",fn:this._folderFilter})}returno.prototype.addToQueue=function(e,r,t){vars=this,a=this.isArrayLikeObject(e)?Array.prototype.slice.call(e):[e],l=this._getFilters(t),o=this.queue.length,u=[],p=function(){s.queue.length!==o&&(s._onAfterAddingAll(u),s.progress=s._getTotalProgress()),s._render(),s.autoUpload&&s.uploadAll()};!functioni(){vare=a.shift();if(b(e))returnp();vart=s.isFile(e)?e:newc(e),o=s._convertFiltersToPipes(l),n=newd(o);n.onThrown=function(e){vart=e.pipe.originalFilter,o=h(e.args,2),n=o[0],r=o[1];s._onWhenAddingFileFailed(n,t,r),i()},n.onSuccessful=function(e,t){varo=newf(s,e,t);u.push(o),s.queue.push(o),s._onAfterAddingFile(o),i()},n.exec(t,r)}()},o.prototype.removeFromQueue=function(e){vart=this.getIndexOfItem(e),o=this.queue[t];o.isUploading&&o.cancel(),this.queue.splice(t,1),o._destroy(),this.progress=this._getTotalProgress()},o.prototype.clearQueue=function(){for(;this.queue.length;)this.queue[0].remove();this.progress=0},o.prototype.uploadItem=function(e){vart=this.getIndexOfItem(e),o=this.queue[t],n=this.isHTML5?"_xhrTransport":"_iframeTransport";o._prepareToUploading(),this.isUploading||(this._onBeforeUploadItem(o),o.isCancel||(o.isUploading=!0,this.isUploading=!0,this[n](o),this._render()))},o.prototype.cancelItem=function(e){vart,o=this,n=this.getIndexOfItem(e),r=this.queue[n],i=this.isHTML5?"_xhr":"_form";r&&(r.isCancel=!0,r